A Developer's Notebook - Repurposing an old Android phone as a Ruby web server

Do you have an old Android phone? Sure you do! There’s a mind-blowing amount of electronic waste of all kinds, and with the average person in developed countries discarding their phones every couple of years, discarded smartphones are probably one of the most common forms of e-waste. Original link Tags:... Read more »

Install/Update Portable R and RStudio on Windows

If you should work on windows machine where you don’t have administrative privilegies, you can very easily make portable R/Rstudio installation. Download recent version of R from CRAN site and recent version of RStudio. After download extract RStudio installation exec with 7Zip and copy files from $_OUTDIR to desired location... Read more »

Shortcut for setting ODBC data sources is pointing to the 32bit data sources instead of 64bit

Go to control panel -> administrative tools –> select data sources(ODBC) –> then right click on that file –> go to properties –> in the shortcut tab -> change the path from %windir%\System32\odbcad32.exe to %windir%\SysWOW64\odbcad32.exe Read more »

Install R packages on demand (if require)

if (!require("data.table")) { install.packages("data.table") } if (!require("reshape2")) { install.packages("reshape2") } require("data.table") require("reshape2") Read more »

Locale setting in R/RStudio

If you have different locale from English (usually living outside US or UK), then pretty common problem can be simple task - get weekdays in English from dates. Sys.setlocale("LC_TIME", "C") do the trick and bypass OS reports request to set locale to "EN" cannot be honored error which is pretty... Read more »