<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>dainiuxt</title>
 <link href="http://dainiuxt.github.io/atom.xml" rel="self"/>
 <link href="http://dainiuxt.github.io/"/>
 <updated>2022-06-25T16:22:21+00:00</updated>
 <id>http://dainiuxt.github.io</id>
 <author>
   <name></name>
   <email></email>
 </author>

 
 <entry>
   <title>A Developer's Notebook - Repurposing an old Android phone as a Ruby web server</title>
   <link href="http://dainiuxt.github.io/2022/06/25/make-webserver-from-old-andoid-phone.html"/>
   <updated>2022-06-25T00:00:00+00:00</updated>
   <id>http://dainiuxt.github.io/2022/06/25/make-webserver-from-old-andoid-phone</id>
   <content type="html">&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://lbrito1.github.io/blog/2020/02/repurposing-android.html&quot;&gt;Original link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tags: ruby android phone server&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Install/Update Portable R and RStudio on Windows</title>
   <link href="http://dainiuxt.github.io/2016/02/02/Install-update-portable-r-rstudio-windows.html"/>
   <updated>2016-02-02T00:00:00+00:00</updated>
   <id>http://dainiuxt.github.io/2016/02/02/Install-update-portable-r-rstudio-windows</id>
   <content type="html">&lt;p&gt;If you should work on windows machine where you don’t have administrative privilegies, you can very easily make portable R/Rstudio installation.&lt;/p&gt;

&lt;p&gt;Download &lt;a href=&quot;https://cran.r-project.org/&quot;&gt;recent version of R&lt;/a&gt; from CRAN site and recent version of &lt;a href=&quot;https://www.rstudio.com/products/rstudio/download/&quot;&gt;RStudio&lt;/a&gt;. After download extract RStudio installation exec with 7Zip and copy files from $_OUTDIR to desired location (in case you making an update, simply overwrite all files, that already exist). Your RStudio executable will be in&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;your-chosen-directory/bin/rstudio.exe
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then run CRAN-R installation, ignore warning that you don’t have administrative privilegies and go forward untill installation will complete. Run RStudio, from menu&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Tools-&amp;gt;Global Options
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;locate where your R installation is located.&lt;/p&gt;

&lt;p&gt;If you performing update (more recent version of R), copy all files from &lt;em&gt;library&lt;/em&gt; subfolder of old R installation into new, but this time DON’T OVERWRITE! This operation vill preserve the packages you have installed in previous version of R. After copying update all your packages from RStudio window (Packages-&amp;gt;Update). When packages update process will end check which packages failed to update (You will see warning messages near them in RStudio console). Remove these packages (write down names of failed packages and delete corresponding folders from &lt;em&gt;library&lt;/em&gt; subfolder). For this you will ned to exit from RStudio. After deletion lauch RStudio again and execute packages install command in RStudio console:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-r&quot; data-lang=&quot;r&quot;&gt;&lt;span class=&quot;n&quot;&gt;install.packages&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;package1&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;package2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;package3&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Congratulations, You are ready to go!&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Shortcut for setting ODBC data sources is pointing to the 32bit data sources instead of 64bit</title>
   <link href="http://dainiuxt.github.io/2015/10/20/shortcut-for-setting-odbc-data-sources-is-pointing-to-the-32bit-data-sources-instead-of-64bit.html"/>
   <updated>2015-10-20T00:00:00+00:00</updated>
   <id>http://dainiuxt.github.io/2015/10/20/shortcut-for-setting-odbc-data-sources-is-pointing-to-the-32bit-data-sources-instead-of-64bit</id>
   <content type="html">&lt;p&gt;Go to control panel -&amp;gt; administrative tools –&amp;gt; select data sources(ODBC) –&amp;gt; then right click on that file –&amp;gt; go to properties –&amp;gt; in the shortcut tab -&amp;gt; change the path from&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;%windir%\System32\odbcad32.exe
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;%windir%\SysWOW64\odbcad32.exe
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Install R packages on demand (if require)</title>
   <link href="http://dainiuxt.github.io/2015/10/20/install-r-packages-on-demand-if-require.html"/>
   <updated>2015-10-20T00:00:00+00:00</updated>
   <id>http://dainiuxt.github.io/2015/10/20/install-r-packages-on-demand-if-require</id>
   <content type="html">
&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-r&quot; data-lang=&quot;r&quot;&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;data.table&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;install.packages&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;data.table&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;reshape2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;install.packages&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;reshape2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;data.table&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;reshape2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
</content>
 </entry>
 
 <entry>
   <title>Locale setting in R/RStudio</title>
   <link href="http://dainiuxt.github.io/2015/10/19/locale-setting-in-r-rstudio.html"/>
   <updated>2015-10-19T00:00:00+00:00</updated>
   <id>http://dainiuxt.github.io/2015/10/19/locale-setting-in-r-rstudio</id>
   <content type="html">&lt;p&gt;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.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-r&quot; data-lang=&quot;r&quot;&gt;&lt;span class=&quot;n&quot;&gt;Sys.setlocale&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;LC_TIME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;C&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;do the trick and bypass&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-r&quot; data-lang=&quot;r&quot;&gt;&lt;span class=&quot;n&quot;&gt;OS&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reports&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;request&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;set&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;locale&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;EN&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cannot&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;be&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;honored&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;error which is pretty common if you use command&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-r&quot; data-lang=&quot;r&quot;&gt;&lt;span class=&quot;n&quot;&gt;Sys.setlocale&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;LC_TIME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;English&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
</content>
 </entry>
 
 <entry>
   <title>Connect MS Access database (.accdb) to R under Win7(x64)</title>
   <link href="http://dainiuxt.github.io/2015/10/19/connect-ms-access-database-accdb-to-r-under-win7-x64.html"/>
   <updated>2015-10-19T00:00:00+00:00</updated>
   <id>http://dainiuxt.github.io/2015/10/19/connect-ms-access-database-accdb-to-r-under-win7-x64</id>
   <content type="html">&lt;p&gt;The very first tip for this case is you should use 32 bit version of R. To change your active R version you can go in menu Tools-&amp;gt;Global Options while using Rstudio IDE and select prefered version of R.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-r&quot; data-lang=&quot;r&quot;&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;RODBC&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#load package
&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;file.path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;C:/path/to/your/database.accdb&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#connect database.
&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#Note the UNIX style slash (/). &quot;\&quot; is &quot;escape character&quot; so all &quot;\&quot;  you should replace either with &quot;/&quot; or &quot;\\&quot;
&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;channel&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;odbcConnectAccess2007&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#internal RODBC function
&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dataSetName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sqlFetch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;channel&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;TableName&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#read particular table from Access database file.
&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;channel&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#do not forget this, otherwise you lock access database from editing.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;So far this works only in Windows but not in linux.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Beginner's resources for R</title>
   <link href="http://dainiuxt.github.io/2015/10/19/beginner-s-resources-for-r.html"/>
   <updated>2015-10-19T00:00:00+00:00</updated>
   <id>http://dainiuxt.github.io/2015/10/19/beginner-s-resources-for-r</id>
   <content type="html">&lt;p&gt;&lt;a href=&quot;http://www.r-project.org/&quot; target=&quot;_blank&quot;&gt;Core R site&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://cran.r-project.org/&quot; target=&quot;_blank&quot;&gt;The Comprehensive R Archive Network&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;R-esources for R&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://journal.r-project.org/index.html&quot; target=&quot;_blank&quot;&gt;The R Journal&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.r-bloggers.com/&quot; target=&quot;_blank&quot;&gt;R-bloggers&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://rwiki.sciviews.org/doku.php?id=start&quot; target=&quot;_blank&quot;&gt;R Wiki&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.rdocumentation.org/&quot; target=&quot;_blank&quot;&gt;Rdocumentation (info of all packages)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tips and learning&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://pj.freefaculty.org/R/Rtips.html&quot; target=&quot;_blank&quot;&gt;Rtips. Revival 2014!&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.ats.ucla.edu/stat/r/&quot; target=&quot;_blank&quot;&gt;Learn and use R&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.cyclismo.org/tutorial/R/index.html&quot; target=&quot;_blank&quot;&gt;R Tutorial&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://adv-r.had.co.nz/&quot; target=&quot;_blank&quot;&gt;Advanced R Programming&lt;/a&gt;&lt;/p&gt;
</content>
 </entry>
 

</feed>
