Meta-decisions


You want to make a decision about an important thing. You getting advises of a lot of people as it should be. However, your mind is wandering. The state of mind falls into a mode of ‘pendulum’. Today you decide to go, tomorrow you decide to remain. In that state of mind, you should review…

Selenium with Python


Selenium is the popular testing package. It has library for Java, C#, nd Python. It is not only for testing  but also very good choice for web scraping task. I have used it during my PhD Thesis for scraping news from Google News. In fact usage of it with Python slightly easier and readable. For Python…

Fixing Error of Metronic Theme PagedList component


Metronic Theme have PagedList component which provide users prepare paged list quickly. However, it have a issue: When user clicks the number of active page link number page thwors error. Because link of active page misdefined. To fix this I’ve prepared a jquery patch. $(document).ready(function () { //fixing pagedlist bug-patch s.atan $(“.pagination > .active >…

Batch DOC/DOCX to Text Converter


To perform text mining task I mostly require convert MSWord files into text file. I have found a tiny and powerfull application to do that: ZillaWorld. It can convert hunderds of word files to texts.

Human Friendly ASP.MVC Serie


As a veteran Python programmer, I am used to coding in the clear and lazy way because Python has not red tape and fantastic overwhelming details. Nowadays I have to code with ASP.MVC 5 with Razor, however.  Gradually, I am coding and learning.  First and foremost attribute of I’ve noticed is ASP.MVC requires a lot of red…

Apply Function in R: Apply same function to for each cell of a matrix


R provides powerful functions. Apply function is one of them. It keeps you from writing boring loops(while and for). For insance: # create a matrix of 10 rows x 2 columnsm <- matrix(c(1:10, 11:20), nrow = 10, ncol = 2) # divide all values by apply apply(m, 1:2, function(x) x/2) Thanks for nsaunders

Connect to Java Libraries and call native Java functions from R


R provides very interesting and useful properties for its users. Sometimes you couldn’t find the required library in R libraries like me. For “Natural Language Processing” library in Turkish there is no library in R. Yet I have found a Java Library to be able to do my task. Initially, I have confused then if…

Set operations with CRAN-R


A discovered life-saving library for computing set theory relevant issues. Name of library is set. Here is simple definition and using cartesian function: library(sets) a=set(“x”,“y”,“z”) b=set(“y,q”) set_cartesian(a,a)

Are you frustrated with unfinishing Latex Errors and Poor-looking Markdown?


As a PhD scholar, oftentimes i’m frustrating with Latex caprices with badboxes,errors and warnings. As for, basic markdown doesn’t provide citation option. MSWord is absoultely horrible for working long times on a same file because of style and content are as clear as mud. I discovered Rmarkdown today with a my friend (@hakanemekci) recommendation. I…

T-Test in Statistics


A bottle filling machine is set to fill bottles with soft drink to a volume of 500 ml. The actual volume is known to follow a normal distribution. The manufacturer believes the machine is under-filling bottles. A sample of 20 bottles is taken and the volume of liquid inside is measured. Good and sweat guide…