<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>idimmu . net</title> <atom:link href="http://www.idimmu.net/feed/" rel="self" type="application/rss+xml" /><link>http://www.idimmu.net</link> <description>A web based memory replacement service.</description> <lastBuildDate>Mon, 15 Apr 2013 19:21:01 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.5.1</generator> <item><title>Bing The Most Altruistic Search Engine</title><link>http://www.idimmu.net/2013/04/15/bing-the-most-altruistic-search-engine/</link> <comments>http://www.idimmu.net/2013/04/15/bing-the-most-altruistic-search-engine/#comments</comments> <pubDate>Mon, 15 Apr 2013 19:21:01 +0000</pubDate> <dc:creator>rus</dc:creator> <category><![CDATA[Microsoft]]></category> <category><![CDATA[bing]]></category><guid isPermaLink="false">http://www.idimmu.net/?p=606</guid> <description><![CDATA[I needed to access Bing&#8217;s Webmaster Tools to have a look at the configuration for this site. I couldn&#8217;t remember the URL off hand so I decided to &#8216;Google&#8217; the search term using Bing! That&#8217;s very nice of them &#8230; I guess part of Bing&#8217;s preference engine might rank pages higher depending on where the [...]]]></description> <content:encoded><![CDATA[<p>I needed to access Bing&#8217;s Webmaster Tools to have a look at the configuration for this site. I couldn&#8217;t remember the URL off hand so I decided to &#8216;Google&#8217; the search term using Bing!</p><p><img class="aligncenter size-full wp-image-607" alt="Bing The Most Altruistic Search Engine" src="http://www.idimmu.net/wp-content/uploads/2013/04/Bing-The-Most-Altruistic-Search-Engine.png" width="650" height="251" /></p><p>That&#8217;s very nice of them &#8230; I guess part of Bing&#8217;s preference engine might rank pages higher depending on where the search words are in the title of your page or something!</p> ]]></content:encoded> <wfw:commentRss>http://www.idimmu.net/2013/04/15/bing-the-most-altruistic-search-engine/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Think Carefully About Your Clever Project Names</title><link>http://www.idimmu.net/2013/04/04/think-carefully-about-your-clever-project-names/</link> <comments>http://www.idimmu.net/2013/04/04/think-carefully-about-your-clever-project-names/#comments</comments> <pubDate>Thu, 04 Apr 2013 13:30:09 +0000</pubDate> <dc:creator>rus</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[pcs]]></category> <category><![CDATA[stupid]]></category><guid isPermaLink="false">http://www.idimmu.net/?p=597</guid> <description><![CDATA[We&#8217;re building a new exciting cluster at work using Linux HA and stuff to make it work magically. In the olden days of yore RedHat and co were using Pacemaker with the old crm (Cluster Resource Manager / Cluster Relationship Manager, pick one..) tool for cluster management, which was nice. Now it looks like RedHat [...]]]></description> <content:encoded><![CDATA[<p><img src="http://www.idimmu.net/wp-content/uploads/2013/04/idiot-300x208.jpg" alt="Idiot" width="300" height="208" class="alignleft size-medium wp-image-598" /> We&#8217;re building a new exciting cluster at work using <a href="http://www.linux-ha.org/wiki/Main_Page">Linux HA</a> and stuff to make it work magically.</p><p>In the olden days of yore RedHat and co were using Pacemaker with the old crm (Cluster Resource Manager / Cluster Relationship Manager, pick one..) tool for cluster management, which was nice. Now it looks like RedHat have removed the crm command from their repositories and have switched to <a href="http://oss.clusterlabs.org/pipermail/pacemaker/2012-June/014274.html">PCS</a> which stands for either Pacemaker/Corosync Configuration System or is the plural of PC (Personal Computers).</p><p>This makes searching for anything useful on the Internet quite difficult.</p><p><a href="http://www.idimmu.net/wp-content/uploads/2013/04/Screen-Shot-2013-04-04-at-14.24.40.png"><img src="http://www.idimmu.net/wp-content/uploads/2013/04/Screen-Shot-2013-04-04-at-14.24.40-298x300.png" alt="PCS Clustering" width="298" height="300" class="aligncenter size-medium wp-image-599" /></a></p><p>It would have been better to go with a random pronouncable alpha-character string non word, than the stupid PCS acronym, and probably get you some delicious Web 2.0 VC!</p> ]]></content:encoded> <wfw:commentRss>http://www.idimmu.net/2013/04/04/think-carefully-about-your-clever-project-names/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Income Report March 2013</title><link>http://www.idimmu.net/2013/04/02/income-report-march-2013/</link> <comments>http://www.idimmu.net/2013/04/02/income-report-march-2013/#comments</comments> <pubDate>Tue, 02 Apr 2013 13:54:10 +0000</pubDate> <dc:creator>rus</dc:creator> <category><![CDATA[Income Reports]]></category><guid isPermaLink="false">http://www.idimmu.net/?p=588</guid> <description><![CDATA[Following on from last month&#8217;s report March was quite an interesting month. Changing perspective from using this site as a simple memory dump to one that people, other than myself, would find useful lead to some interesting usage patterns, from both myself and my visitors as well as some changes to the blog! Due to [...]]]></description> <content:encoded><![CDATA[<p><img src="http://www.idimmu.net/wp-content/uploads/2013/04/GoogleAdsense-150x150.jpg" alt="GoogleAdsense" width="150" height="150" class="alignleft size-thumbnail wp-image-589" /> Following on from last month&#8217;s <a href="2013/03/05/income-report-february-2013/" title="Income Report February 2013">report</a> March was quite an interesting month. Changing perspective from using this site as a simple memory dump to one that people, other than myself, would find useful lead to some interesting usage patterns, from both myself and my visitors as well as some changes to the blog!</p><p>Due to my change of attitude I actually watched my traffic stats, where I noticed some <a href="http://www.idimmu.net/2013/03/27/odd-occurrences-in-apache-access-logs/">odd things</a> in my logs, I thought I fixed the problem&#8230; It turns out having an URL or page with the phrase &#8216;apache access logs&#8217; in it is a really bad thing as now that page is plagued with bot hits using Russian domains as a referrer, trying to get a back link for their domain in my web stats. It&#8217;s receiving about 1500 unique hits a day at the moment which is skewing my stats quite heavily.</p><p>As an experiment I increased the size of the Adsense banners to their larger size, which fit in my new theme. I also attempted to monetize some of the more applicable pages with affiliate links back to O&#8217;Reilly products. I think I&#8217;m going to have to start to use the number of Adsense views as an indicator of traffic, rather than awstats from now on, due to these pesky Russians. I hope they aren&#8217;t mafia!</p><h2>March 2013 Income Report</p><p>Adsense Page Views: 5227<br /> Adsense Clicks: 19<br /> Adsense: £7.50</p><p>O&#8217;Reilly Page Views: 7022<br /> O&#8217;Reilly Clicks: 85<br /> O&#8217;Reilly: £0.00</p><p>So that&#8217;s a really interesting increase, up from £0.33 last month, purely by changing the size of the Adsense banner. Awstats is reporting 8361 unique visitors, up from 6332 in February, but unfortunately I can&#8217;t trust that metric any more due to the heavy bot activity skewing the stats. Adsense is reporting 3,889 page views for February so it does look like I am actually getting more traffic.</p><p>After speaking to the owner of <a href="http://www.lampdocs.com/">Lampdocs</a> after a recent post they made about trying to monetize a Linux blog, the main conclusion we came to was more traffic and Adsense. Unfortunately my strength comes from my personal systems administration and development skills, I wonder if I can come up with a killer product worth selling ..</p> ]]></content:encoded> <wfw:commentRss>http://www.idimmu.net/2013/04/02/income-report-march-2013/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Installing Magento</title><link>http://www.idimmu.net/2013/04/02/installing-magento/</link> <comments>http://www.idimmu.net/2013/04/02/installing-magento/#comments</comments> <pubDate>Tue, 02 Apr 2013 12:37:10 +0000</pubDate> <dc:creator>rus</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[magento]]></category><guid isPermaLink="false">http://www.idimmu.net/?p=590</guid> <description><![CDATA[One of my clients wanted an E-Commerce solution for his website and after a little bit of analysis we opted for the community edition of Magento. We wanted something based on the usual LAMP stack, that was OpenSource so it could be extended, was free as in beer, had great international support, was fully featured [...]]]></description> <content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-591" alt="Installing Magento" src="http://www.idimmu.net/wp-content/uploads/2013/04/installing-magento-150x150.jpg" width="150" height="150" /> One of my clients wanted an E-Commerce solution for his website and after a little bit of analysis we opted for the community edition of <a title="Magento" href="http://www.magentocommerce.com/">Magento</a>.</p><p>We wanted something based on the usual LAMP stack, that was OpenSource so it could be extended, was free as in beer, had great international support, was fully featured and enterprise ready, could pass PCI DSS compliance, allowed reasonable payment gateway options, could scale and was easy to extend as well as backup. Also we wanted complete control of the deployment, rather than integrating with a 3rd party cloud service provider such as Shopify to keep costs down and retain flexibility.</p><h2>Installing Magento</h2><p>With out going in to the specifics of configuring an Apache VirtualHost or installing MySQL here&#8217;s a rough guide on how to install Magento.</p><p>Download Magento from their <a title="Download Magento" href="http://www.magentocommerce.com/download">download</a> page. Always opt for the latest version as it includes important security fixes. You will need to create an account on their site for this.</p><p>Create a new MySQL database for the installation and note it&#8217;s credentials for later use.</p><p>Extract the Magento archive to your document root.</p><p>You will need to set write permissions for the web server to write to the following files and directories.</p><ul><li>var</li><li>var/.htaccess</li><li>app/etc</li></ul><p>You can either chmod 777 or get a little cleverer about ownership. e.g.</p><p><code>sudo chmod -R 777 var var/.htaccess app/etc</code></p><p>Assuming Apache is correctly configured you can now use your web browser to visit the <em>install</em> directory at the URL you&#8217;ve installed Magento at and follow the online install guide. e.g. http://www.shopidimmu.net/, then the wizard will be located here: http://www.shopidimmu.net/install/.</p><h2>Choosing A Credit Card Processor</h2><p>After we&#8217;d correctly installed and configured Magento, I left it to the web team to get on with populating it with products and get it to look pretty but we still had to find the <a title="Best Credit Card Processor" href="http://www.creditcardprocessingspace.com/">best credit card processor</a> to accept payments as we didn&#8217;t want to use Paypal. We also wanted someone who offered physical solutions to accept card payments with chip and pin.</p><p>After checking out some <a title="Merchant Warehouse Review" href="http://www.creditcardprocessingspace.com/merchant-warehouse-review/">reviews for Merchant Warehouse</a> and <a title="Charge.com Review" href="http://www.creditcardprocessingspace.com/charge-com-review/">Charge.com</a> we decided to opt with Merchant Warehouse as they offer really easy integration with Magento with their <a title="MerchantWare" href="http://www.magentocommerce.com/magento-connect/merchantware.html">MerchantWare</a> plugin.</p><p>Installing the Magento Connect MerchantWare plugin was trivial and just required copying and pasting our extension key in to the Magento Connect Manager and clicking install.</p> ]]></content:encoded> <wfw:commentRss>http://www.idimmu.net/2013/04/02/installing-magento/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>monit: error connecting to the monit daemon</title><link>http://www.idimmu.net/2013/03/28/monit-error-connecting-to-the-monit-daemon/</link> <comments>http://www.idimmu.net/2013/03/28/monit-error-connecting-to-the-monit-daemon/#comments</comments> <pubDate>Thu, 28 Mar 2013 11:48:53 +0000</pubDate> <dc:creator>rus</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[monit]]></category><guid isPermaLink="false">http://www.idimmu.net/?p=581</guid> <description><![CDATA[We&#8217;re rolling out monit on our new platform at the request of a vendor to manage their new service. I&#8217;ve always been dead against these kinds of automated failure recovery tools as they often require human intervention after the fact anyway and all the platforms I&#8217;ve managed will have failed the server anyway so why [...]]]></description> <content:encoded><![CDATA[<p><img src="http://www.idimmu.net/wp-content/uploads/2013/03/linuxterminal-150x150.png" alt="monit: error connecting to the monit daemon" width="150" height="150" class="alignleft size-thumbnail wp-image-582" /> We&#8217;re rolling out <a href="http://mmonit.com/monit/" title="monit">monit</a> on our new platform at the request of a vendor to manage their new service. I&#8217;ve always been dead against these kinds of automated failure recovery tools as they often require human intervention after the fact anyway and all the platforms I&#8217;ve managed will have failed the server anyway so why not restart the services after the root cause analysis is done? My tune is slowly changing though and I&#8217;m coming to appreciate this method of systems recovery a lot more.</p><p>Whilst playing with it though I got the following error</p><p><code>root@newshiny:~# monit summary<br /> monit: error connecting to the monit daemon</code></p><p>What what? The daemon&#8217;s definitely running, why can&#8217;t I pole it&#8217;s status?</p><p><code>root@newshiny:~# ps aux | grep monit<br /> root      325293  0.0  0.0  16440  1276 ?        Sl   Mar27   0:10 /usr/bin/monit<br /> root      496627  0.0  0.0 105348   832 pts/0    S+   11:43   0:00 grep monit<br /> root@newshiny:~# service monit status<br /> monit (pid  325293) is running...</code></p><p>After reading the documentation this <strong>monit: error connecting to the monit daemon</strong> seemed to be an epic case of rushing in to things, skimming the documentation and PEBCAK!</p><h2>Solving monit: error connecting to the monit daemon</h2><p>Monit can present an HTTP interface which I didn&#8217;t enable as I thought it was just for me, it turns out it&#8217;s also for the command line tools!</p><p>It&#8217;s really easy to enable, in /etc/monit.conf or wherever your conf file is located just add</p><p><code>set httpd port 2812 and<br /> use address localhost<br /> allow localhost</code></p><p>and restart monit with</p><p><code>service monit restart</code></p><p>and Bob&#8217;s your mother&#8217;s brother.</p><p><code>root@newshiny:~# netstat -lpn | grep 2812<br /> tcp        0      0 127.0.0.1:2812              0.0.0.0:*                   LISTEN      325293/monit</code></p><p><code>root@newshiny:~# monit summary<br /> The Monit daemon 5.2.5 uptime: 19h 18m</p><p>Process 'shiny_manager'           running<br /> Process 'shiny_proxy'             running<br /> Process 'shiny_server'            running<br /> System 'system_newshiny'          running</code></p><p>Problem solved!</p> ]]></content:encoded> <wfw:commentRss>http://www.idimmu.net/2013/03/28/monit-error-connecting-to-the-monit-daemon/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Odd Occurrences In Apache Access Logs</title><link>http://www.idimmu.net/2013/03/27/odd-occurrences-in-apache-access-logs/</link> <comments>http://www.idimmu.net/2013/03/27/odd-occurrences-in-apache-access-logs/#comments</comments> <pubDate>Wed, 27 Mar 2013 23:33:21 +0000</pubDate> <dc:creator>rus</dc:creator> <category><![CDATA[Security]]></category> <category><![CDATA[apache]]></category><guid isPermaLink="false">http://www.idimmu.net/?p=574</guid> <description><![CDATA[I&#8217;ve been watching my Awstats installation this month as idimmu.net is about to peak with over 7000 unique visitors in a month for the first time in it&#8217;s history, which is pretty awesome. But there&#8217;s been something really weird going on in the results .. This is kind of ironic as in a recent job [...]]]></description> <content:encoded><![CDATA[<p><img src="http://www.idimmu.net/wp-content/uploads/2013/03/apache_logo1.png" alt="Apache" width="150" height="149" class="alignleft size-full wp-image-575" /> I&#8217;ve been watching my Awstats installation this month as idimmu.net is about to peak with over 7000 unique visitors in a month for the first time in it&#8217;s history, which is pretty awesome. But there&#8217;s been something really weird going on in the results ..</p><p>This is kind of ironic as in a recent job interview I was asked</p><p>&nbsp;</p><blockquote><p>What would you look for to ascertain suspicious activity on an instance of Apache serving static image assets?</p></blockquote><p>Obviously I aced the question, and whilst my server isn&#8217;t limited to static assets, it does have the GNU tool chain installed <img src='http://www.idimmu.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><p><img src="http://www.idimmu.net/wp-content/uploads/2013/03/Screen-Shot-2013-03-27-at-23.02.30.png" alt="Awstats" width="554" height="56" class="aligncenter size-full wp-image-576" /></p><p>6487 views for my <a href="http://www.idimmu.net/2011/11/21/elgg-1-8-tidypics-group-fix/">Elgg CSS Fix</a> page this month. For the record at the time of writing the site has had 6908 unique views and the next highest viewed page is only at 2446 views. Something is up! I wonder what ..</p><p><code>root@holly /var/log/apache2 # grep elgg idimmu.net.access.log | head<br /> 91.198.94.225 - - [24/Mar/2013:06:44:52 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/ HTTP/1.0" 200 37928 "http://www.idimmu.net/2011/11/21/elgg-1-8-tidypics-group-fix/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1.0 Safari/537.11"<br /> 91.198.94.225 - - [24/Mar/2013:06:44:52 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/ HTTP/1.0" 200 37928 "http://www.idimmu.net/2011/11/21/elgg-1-8-tidypics-group-fix/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1.0 Safari/537.11"<br /> 91.198.94.225 - - [24/Mar/2013:06:44:53 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/index.php HTTP/1.0" 301 471 "http://www.idimmu.net/index.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1.0 Safari/537.11"<br /> 91.198.94.225 - - [24/Mar/2013:06:44:53 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/index.php HTTP/1.0" 301 471 "http://www.idimmu.net/index.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1.0 Safari/537.11"<br /> 91.198.94.225 - - [24/Mar/2013:06:47:54 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/ HTTP/1.0" 200 37928 "http://www.idimmu.net/2011/11/21/elgg-1-8-tidypics-group-fix/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"<br /> 91.198.94.225 - - [24/Mar/2013:06:47:54 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/ HTTP/1.0" 200 37928 "http://www.idimmu.net/2011/11/21/elgg-1-8-tidypics-group-fix/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"<br /> 91.198.94.225 - - [24/Mar/2013:06:47:54 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/index.php HTTP/1.0" 301 471 "http://www.idimmu.net/index.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"<br /> 91.198.94.225 - - [24/Mar/2013:06:47:55 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/index.php HTTP/1.0" 301 471 "http://www.idimmu.net/index.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"<br /> 216.152.249.243 - - [24/Mar/2013:06:49:34 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/ HTTP/1.1" 200 9931 "http://www.idimmu.net/" "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.0) Opera 7.02 Bork-edition [en]"<br /> 91.198.94.225 - - [24/Mar/2013:06:50:55 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/ HTTP/1.0" 200 37927 "http://www.idimmu.net/2011/11/21/elgg-1-8-tidypics-group-fix/" "Opera/9.80 (Windows NT 6.2; WOW64) Presto/2.12.388 Version/12.11"</code></p><p>Ok, so my access log rotated out on the 24th March but the data is still meaningful with out having to put together exact logs for the entire month! One IP 91.198.94.225 seems to be retrieving the Elgg page over and over again, several times a minute?!</p><p><code>root@holly /var/log/apache2 # grep 91.198.94.225 idimmu.net.access.log | wc -l<br /> 5876<br /> root@holly /var/log/apache2 # grep elgg idimmu.net.access.log | grep 91.198.94.225 | wc -l<br /> 5876</code></p><p>And seemingly that same IP address is ONLY requesting my Elgg page, no other pages!</p><p><code>root@holly /var/log/apache2 # grep index.php idimmu.net.access.log | grep 91.198.94.225 | head -n 1<br /> 91.198.94.225 - - [24/Mar/2013:06:44:53 +0000] "GET /2011/11/21/elgg-1-8-tidypics-group-fix/index.php HTTP/1.0" 301 471 "http://www.idimmu.net/index.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1.0 Safari/537.11"<br /> root@holly /var/log/apache2 # grep index.php idimmu.net.access.log | grep 91.198.94.225 | wc -l<br /> 2938<br /> root@holly /var/log/apache2 # grep -v index.php idimmu.net.access.log | grep 91.198.94.225 | wc -l<br /> 2938</code></p><p>Also half of it&#8217;s requests are for _/2011/11/21/elgg-1-8-tidypics-group-fix/index.php_ and the other half are for _/2011/11/21/elgg-1-8-tidypics-group-fix_ which is double weird. The index.php page extension just redirects to the extension-less URL due to the incredible intellectual artificial intelligence running the CMS platform I use!</p><p>The Elgg page has maybe 1 or 2 back links out there, none are to the index.php extended URL and looking at the Apache logs the referrer is http://www.idimmu.net/index.php which isn&#8217;t a valid URL anyway, which suggests whatever is doing this is spoofing the referrer.</p><p>Also also, what kind of browser definition is</p><p><code>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1.0 Safari/537.11</code></p><p>Some random <a href="http://infosec.e-sushi.net/user_agents/chrome/6c475e70c524231e23648045ddac71015a19b7ede0d719677054da255d0704fc/">infosec</a> page I&#8217;ve never heard of suggests it&#8217;s a valid Chrome user agent running on Windows. You can write lots of interesting plugins for Chrome, including scrapers and bots so this is possibly a valid option. Why it also mentions Safari I&#8217;ve no idea though!</p><p>The 91.198.94.225 IP appears in Google several times for <a href="http://www.stopforumspam.com/ipcheck/91.198.94.225">spamming</a> so possibly that&#8217;s the point of the bot. Judging by the rest of the search results there appears to be a LOT of comment spam to old PHP <a href="http://bbcvt.co.uk/guestbook/">guestbook</a> <a href="http://www.barbaragreenministries.org/guestbook/">implementations</a> that look to have seemingly trivial captures, so maybe the bot thinks my site is running one of these? It does appear to be stuck in some kind of infinite loop on one page however <img src='http://www.idimmu.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p><p>Whois says it&#8217;s an IP located in Poland! Has anyone else seen any &#8216;interesting&#8217; impressions from this IP address, or anything similar? Fortunately I&#8217;m pretty good with computers.</p><p><code>iptables -A INPUT -s 91.198.94.225 -j DROP</code></p><p>In your face Polish!</p><p><a href="/more/iptables" target="_top" onmouseover="window.status='http://oreilly.com';return true;" onmouseout="window.status=' ';return true;"><img src="http://akamaicovers.oreilly.com/images/9780596005696/cat.gif" border="0" alt="Linux iptables Pocket Reference"/></a><img src="http://www.lduhtrp.net/image-7061338-11260198" width="1" height="1" border="0"/> For more iptables related nonsense I suggest you try O&#8217;Reilly&#8217;s <a href="/more/iptables">Linux iptables Pocket Reference</a> or man iptables if you don&#8217;t want to buy anything <img src='http://www.idimmu.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> Or you know, just keep reading my stuff!</p> ]]></content:encoded> <wfw:commentRss>http://www.idimmu.net/2013/03/27/odd-occurrences-in-apache-access-logs/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Experiments In Bitcoin</title><link>http://www.idimmu.net/2013/03/25/experiments-in-bitcoin/</link> <comments>http://www.idimmu.net/2013/03/25/experiments-in-bitcoin/#comments</comments> <pubDate>Mon, 25 Mar 2013 23:48:02 +0000</pubDate> <dc:creator>rus</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[bitcoin]]></category><guid isPermaLink="false">http://www.idimmu.net/?p=564</guid> <description><![CDATA[Earlier today I got in to discussing Bitcoin Arbitrage with a mate of mine, with the cunning plan of creating a bot to monitor different exchanges and profit on the difference in trading prices. After an analysis this was deemed a silly idea, or conversely we aren&#8217;t good enough, as moving real money or bitcoins [...]]]></description> <content:encoded><![CDATA[<p><img class=" wp-image-565 alignleft" alt="bitcoin" src="http://www.idimmu.net/wp-content/uploads/2013/03/bitcoin.png" width="194" height="194" /> Earlier today I got in to discussing Bitcoin Arbitrage with a mate of mine, with the cunning plan of creating a bot to monitor different exchanges and profit on the difference in trading prices. After an analysis this was deemed a silly idea, or conversely we aren&#8217;t good enough, as moving real money or bitcoins around the exchanges seems to be an extremely painful process. The first step though was creating a wallet!</p><h2>Bitcoind</h2><p><a title="Multibit" href="https://multibit.org/">Multibit</a> is a fantastic cross platform GUI Bitcoin wallet which is super easy to use but limits you to only using the workstation you&#8217;ve installed your wallet on, unless you get all remote desktopy. There are also <a href="https://www.strongcoin.com/">numerous</a> <a href="https://blockchain.info/wallet/">places</a> that let you host your own wallets and most <a href="https://mtgox.com">exchanges</a> also feature a wallet too, but I&#8217;m very DIY! <a title="BitcoinD" href="https://en.bitcoin.it/wiki/Bitcoind">BitcoinD</a> however is a little cross platform daemon that just sits their ticking away, managing your wallet, whislt responding to JSON-RPC over HTTP. Perfect for me!</p><p>&#8216;Installation&#8217; on Linux was easy, just download the tar.gz, extract, then run the bitcoind binary of choice! I run mine in a screen but there are <a href="https://bitcointalk.org/?topic=965.0">init scripts</a> if that&#8217;s your thing. It creates a wallet file in <em>~/.bitcoin</em>. When it starts it suggests you configure a username and password for the RPC interface. You should do this. My <em>~/.bitcoin/bitcoin.conf</em> looks like this:</p><p><code>rpcuser=rusisawesome<br /> rpcpassword=thisismysecretpassword</code></p><h2>GUI</h2><p>Ok, so you&#8217;ve a deamon running, now what. Well it logs to <em>~/.bitcoin/debug.log</em> which is some indicator that it&#8217;s working, but a pretty GUI would be nice. I opted for <a href="http://tcatm.github.com/bitcoin-js-remote/">bitcoin-js-remote</a>, a nice javascript web app app, that comes with it&#8217;s own daemon or can be served over Apache. I&#8217;ve got Apache installed at home so I opted for that.</p><p>Extract bitcoin-js-remote somewhere nice, e.g. <em>/var/www/bjr</em> and configure Apache. You&#8217;ll want to use HTTP Basic Auth to protect the directory, which we&#8217;ll go in to, and ideally use SSL (best practice ftw) which we won&#8217;t go in to!</p><p>You&#8217;ll need to create, or add to, an htpasswd file with the RPC credentials you&#8217;ve configured bitcoind to use earlier.</p><p><code>htpasswd -b -c /etc/apache2/htpasswd.pass rusisawesome thisismysecretpassword</code></p><p>BitcoinD by default will listen on port 8332 on localhost, and the bitcoin-js-remote will call back via Apache to talk to it so we need to configure Apache to do a bit of proxying as discussed <a href="https://en.bitcoin.it/wiki/Bitcoin-js-remote">here</a>.</p><p>&nbsp;</p><p>AuthType Basic<br /> AuthName Restricted<br /> AuthUserFile /etc/apache2/htpasswd.pass<br /> Require valid-user</p><p>ProxyPass /lbc/ http://127.0.0.1:8332/</p><p>AuthType Basic<br /> AuthName &#8220;Bitcoin Access&#8221;<br /> AuthUserFile /etc/apache2/htpasswd.pass<br /> Require user rusisawesome<br /> Order deny,allow<br /> Allow from all</p><p>Restart Apache and jobs a good&#8217;n.</p><p>Bitcoin-js-remote also has a settings.json file. I&#8217;m not sure if it&#8217;s necessary but I added my credentials to that:</p><p><code>{<br /> "RPC": {<br /> "url": "/lbc/",<br /> "user": "rusisawesome",<br /> "password": "thisismysecretpassword",<br /> "account": ""<br /> },<br /> "labelsmode": 1<br /> }</code></p><p>I don&#8217;t think this is necessary to be honest. You can now connect to your webserver, present the basic auth credentials and it should log you straight in to your new shiny web based client!</p><p><a href="http://www.idimmu.net/wp-content/uploads/2013/03/bitcoin-js-remote.png"><img class="aligncenter size-full wp-image-567" alt="bitcoin-js-remote" src="http://www.idimmu.net/wp-content/uploads/2013/03/bitcoin-js-remote.png" width="601" height="367" /></a></p><p>If you are hosting your own wallet, it&#8217;s advisable to <a href="https://en.bitcoin.it/wiki/Securing_your_wallet#Automated_Backups_using_Cron.2C_Bash_and_GNU.2FLinux">back it up</a>, as if you lose it, you lose all the money that&#8217;s inside it!</p><p>There are some <a href="http://www.bitvisitor.com/">free</a> sources on the Internet that you can use to get some meagre BTC to play around with, I think I&#8217;ve got around $0.15 worth, though as you can see I&#8217;m still waiting for transactions to come through, so far the fastest has taken 3 hours and the slowest over 12 hours. Moving BTC around different exchanges for arbitrage purposes is kind of hopeless &#8230;</p><p>My Bitcoin address is <a href="bitcoin:13gcobY9ofgnokCsU436yNVgCqGB3PVW6z">13gcobY9ofgnokCsU436yNVgCqGB3PVW6z</a>, there are even nice <a href="http://payb.tc/idimmu">bitcoin URL shortners</a> so I don&#8217;t have to remember that monstrosity!</p><p>The Blockchain site, as well as offering wallet hosting, lets you observe and track all the transactions going on in the Bitcoin network as well as see the state of all the wallets on the network (if you know the address). The details of my wallet are <a href="https://blockchain.info/address/13gcobY9ofgnokCsU436yNVgCqGB3PVW6z">here</a> and the first transaction made to it earlier today is <a href="https://blockchain.info/tx/1945d1f47aea61eb2f8b49def09e4dc17b30016125781824169a85c6b446460b">here</a>. I have to say when I saw that transaction I got all excited by the prospect of almost 5 BTC, but it appears that multiple transactions can be done in the same block, mine was the smaller one at 0.002 BTC <img src='http://www.idimmu.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><p>I ran a <a href="http://bitminter.com/">Bitcoin miner</a> on my MacBook at work earlier and it reckoned it would take 10,000 days to generate 1BTC. I think I&#8217;ve missed the bubble there <img src='http://www.idimmu.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><p>At the moment Bitcoin feels a little like the <a href="http://en.wikipedia.org/wiki/Esperanto">Esperanto</a> of the financial world, but you can already by <a href="http://www.wired.co.uk/news/archive/2013-02/01/silk-road-crackdown">drugs</a> and pay for <a href="http://www.reddit.com/r/GirlsGoneBitcoin">strippers</a> and <a href="http://pizzaforcoins.com/">pizza</a> with it, which is probably more than Esperanto will let you do!</p><p>What&#8217;s really awesome about bitcoin is the bitcoin community itself. Reading about it feels like there&#8217;s a lot of entrepreneurial adventure going on whilst everyone is making land grabs to provide previously taken for granted services in new and exciting ways due to the financial flexibility that bitcoin provides. I think it&#8217;s exciting.</p> ]]></content:encoded> <wfw:commentRss>http://www.idimmu.net/2013/03/25/experiments-in-bitcoin/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Android Create AVD</title><link>http://www.idimmu.net/2013/03/23/android-create-avd/</link> <comments>http://www.idimmu.net/2013/03/23/android-create-avd/#comments</comments> <pubDate>Sat, 23 Mar 2013 17:55:06 +0000</pubDate> <dc:creator>rus</dc:creator> <category><![CDATA[Android]]></category> <category><![CDATA[android avd]]></category> <category><![CDATA[eclipse]]></category><guid isPermaLink="false">http://www.idimmu.net/?p=519</guid> <description><![CDATA[The second part of this series covers creating our first Android Virtual Device or AVD. The Android Virtual Device (AVD) is basically a configuration for the Android SDK&#8217;s emulator that lets you define the hardware and software characteristics of an actual Android advice that you can then test your code on. Whilst not being as [...]]]></description> <content:encoded><![CDATA[<p>The second part of this series covers creating our first Android Virtual Device or AVD. The Android Virtual Device (AVD) is basically a configuration for the Android SDK&#8217;s emulator that lets you define the hardware and software characteristics of an actual Android advice that you can then test your code on. Whilst not being as good as running your app on real hardware, testing it on an AVD is the next best thing!</p><p><iframe width="500" height="281" src="http://www.youtube.com/embed/yoeCgwEp58M?feature=oembed" frameborder="0" allowfullscreen></iframe></p><p>You can either watch the <strong>Android Create AVD</strong> video above or follow the steps below, it&#8217;s dead easy!</p><div id="attachment_45" class="wp-caption aligncenter" style="width: 409px"><img class="size-full wp-image-45" title="Start The AVD Manager" alt="Start The AVD Manager" src="http://www.idimmu.net/wp-content/uploads/2013/03/Android-Create-AVD-1.png" width="399" height="420" /><p class="wp-caption-text">Start The AVD Manager</p></div><p>First we need to start the <em>AVD Manager</em> by going to <strong>Window</strong> -&gt; <strong>AVD Manager</strong></p><div id="attachment_46" class="wp-caption aligncenter" style="width: 513px"><a href="http://www.idimmu.net/wp-content/uploads/2013/03/Android-Create-AVD-2.png"><img class=" wp-image-46 " title="Create A New AVD" alt="Create A New AVD" src="http://www.idimmu.net/wp-content/uploads/2013/03/Android-Create-AVD-2.png" width="503" height="362" /></a><p class="wp-caption-text">Create A New AVD</p></div><p>Then click on <strong>New</strong> to bring up the <em>AVD Configuration Dialog</em>.</p><div id="attachment_47" class="wp-caption aligncenter" style="width: 423px"><img class="size-full wp-image-47" title="Choose AVD Settings" alt="Choose AVD Settings" src="http://www.idimmu.net/wp-content/uploads/2013/03/Android-Create-AVD-3.png" width="413" height="573" /><p class="wp-caption-text">Choose AVD Settings</p></div><p>Enter an appropriate name, select your API target, the size of the SD card and skin/resolution you want to use then click <strong>Create AVD</strong>.</p><div id="attachment_48" class="wp-caption aligncenter" style="width: 515px"><a href="http://www.idimmu.net/wp-content/uploads/2013/03/Android-Create-AVD-4.png"><img class=" wp-image-48 " title="Android Create AVD" alt="AVD Will Appear In The List" src="http://www.idimmu.net/wp-content/uploads/2013/03/Android-Create-AVD-4.png" width="505" height="78" /></a><p class="wp-caption-text">AVD Will Appear In The List</p></div><p>The AVD creation will take about 1 minute to run, but then the new AVD will appear in your list of available AVDs. It&#8217;s possible to make many different AVDs to test your application on many different screen sizes and hardware profiles!</p><p><a href="/more/android/" target="_top" onmouseover="window.status='http://oreilly.com';return true;" onmouseout="window.status=' ';return true;"><img src="http://akamaicovers.oreilly.com/images/0636920010883/cat.gif" border="0" alt="Learning Android"/></a><img src="http://www.tqlkg.com/image-7061338-11260198" width="1" height="1" border="0"/></p><p>If you&#8217;re new to the Android mobile operating system, <a href="/more/android/">Learning Android</a> is the perfect way to master the fundamentals. This gentle introduction shows you how to use Android&#8217;s basic building blocks to develop user interfaces, store data, and more. You&#8217;ll build an example application throughout the course of book, adding new features with each chapter. You&#8217;ll also build your own toolbox of code patterns that will help you program any type of Android application with ease.</p> ]]></content:encoded> <wfw:commentRss>http://www.idimmu.net/2013/03/23/android-create-avd/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Install Android Eclipse</title><link>http://www.idimmu.net/2013/03/23/install-android-eclipse/</link> <comments>http://www.idimmu.net/2013/03/23/install-android-eclipse/#comments</comments> <pubDate>Sat, 23 Mar 2013 17:50:16 +0000</pubDate> <dc:creator>rus</dc:creator> <category><![CDATA[Android]]></category> <category><![CDATA[eclipse]]></category><guid isPermaLink="false">http://www.idimmu.net/?p=517</guid> <description><![CDATA[Hi guys, when telling a story it&#8217;s always best to start at the beginning, so the first thing to do on my journey is talk about how are we going to install Android Eclipse. My workstation is a MacBook but the process is the same on both Windows and Linux. I&#8217;ve put together a short [...]]]></description> <content:encoded><![CDATA[<p>Hi guys, when telling a story it&#8217;s always best to start at the beginning, so the first thing to do on my journey is talk about how are we going to <strong>install Android Eclipse</strong>. My workstation is a MacBook but the process is the same on both Windows and Linux. I&#8217;ve put together a short video of the entire thing, from downloading Eclipse and the Android SDK to installing Eclipse, the ADT (Android Development Tools) plugin and then configuring ADT to use the Android SDK!</p><p><iframe width="500" height="281" src="http://www.youtube.com/embed/btMh3ETXrIw?feature=oembed" frameborder="0" allowfullscreen></iframe></p><p>The steps are really simple.</p><ol><li>Download and install the <em>Eclipse IDE for Java Developers</em> from <a title="Eclipse Downloads" href="http://www.eclipse.org/downloads/" target="_blank">http://www.eclipse.org/downloads/</a></li><li>Download and extract the Android SDK from <a title="Android SDK" href="http://developer.android.com/sdk/index.html" target="_blank">http://developer.android.com/sdk/index.html</a></li><li><a title="Install the ADT plugin in Eclipse" href="http://developer.android.com/sdk/eclipse-adt.html#installing" target="_blank">Install the ADT plugin in Eclipse</a></li></ol><p>After following these 3 easy steps to install Android Eclipse you should be ready to go!</p><p><a href="/more/android/" target="_top" onmouseover="window.status='http://oreilly.com';return true;" onmouseout="window.status=' ';return true;"><img src="http://akamaicovers.oreilly.com/images/0636920010883/cat.gif" border="0" alt="Learning Android"/></a><img src="http://www.tqlkg.com/image-7061338-11260198" width="1" height="1" border="0"/></p><p>If you&#8217;re new to the Android mobile operating system, <a href="/more/android/">Learning Android</a> is the perfect way to master the fundamentals. This gentle introduction shows you how to use Android&#8217;s basic building blocks to develop user interfaces, store data, and more. You&#8217;ll build an example application throughout the course of book, adding new features with each chapter. You&#8217;ll also build your own toolbox of code patterns that will help you program any type of Android application with ease.</p> ]]></content:encoded> <wfw:commentRss>http://www.idimmu.net/2013/03/23/install-android-eclipse/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>10 Most Used Linux Commands</title><link>http://www.idimmu.net/2013/03/07/10-most-used-linux-commands/</link> <comments>http://www.idimmu.net/2013/03/07/10-most-used-linux-commands/#comments</comments> <pubDate>Thu, 07 Mar 2013 16:26:24 +0000</pubDate> <dc:creator>rus</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[commands]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[top 10]]></category><guid isPermaLink="false">http://www.idimmu.net/?p=374</guid> <description><![CDATA[Whilst skimming my Bash history today looking for an esoteric one liner I&#8217;d written earlier I started to ponder what my most used commands were, it&#8217;s easy enough to find out! This is actually output from my Mac, not a Linux box, I tricked you Chill:~ rus$ history &#124; awk {'print $2'} &#124; sort &#124; [...]]]></description> <content:encoded><![CDATA[<p>Whilst skimming my Bash history today looking for an esoteric one liner I&#8217;d written earlier I started to ponder what my most used commands were, it&#8217;s easy enough to find out! This is actually output from my Mac, not a Linux box, I tricked you <img src='http://www.idimmu.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p><p><code>Chill:~ rus$ history | awk {'print $2'} | sort | uniq -c | sort -nr | head -n 10<br /> 106 ssh<br /> 49 ls<br /> 44 cd<br /> 42 curl<br /> 34 scp<br /> 25 vi<br /> 15 mv<br /> 15 cp<br /> 12 grep<br /> 10 rm</code></p><p>ssh looks to be number one, which is understandable as I do a lot of work on remote machines.. so what does my usage pattern on remote servers look like?</p><p><code>root@xflipnag2:~# history | awk {'print $2'} | sort | uniq -c | sort -nr | head -n 10<br /> 211 vi<br /> 160 ls<br /> 150 cd<br /> 89 svn<br /> 39 grep<br /> 38 ps<br /> 28 cat<br /> 24 /usr/lib/nagios/plugins/check_http<br /> 24 puppet<br /> 20 puppetapply</code></p><p>This time it really is a Linux box, running OEl6 if you must know! Pretty similar, it&#8217;s a monitoring node so recently I&#8217;ve been using the check_http command to run some HTTP tests. Puppetapply is an alias of ours to run Puppet in a manner that will make changes, by default it runs noop.</p><p>It&#8217;s nice to see grep rocking, one of my favourite commands really. Though I&#8217;m surprised sed hasn&#8217;t shown up anywhere!</p><p>What are your 10 most used commands?</p> ]]></content:encoded> <wfw:commentRss>http://www.idimmu.net/2013/03/07/10-most-used-linux-commands/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>