<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>

  var _gaq = _gaq || [];
  _gaq.push([‘_setAccount’, ‘UA-10827258-1’]);
  _gaq.push([‘_trackPageview’]);

  (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
  })();</description><title>Backward compatible</title><generator>Tumblr (3.0; @babuskov)</generator><link>http://www.backwardcompatible.net/</link><item><title>Why PHP is better than JavaScript</title><description>&lt;p&gt;I started developing a small project using node.js with express and socket.io. Node is a nice server and socket.io is great. However, I&amp;#8217;m having issues with javascript. Currently, two things really get on my nerves:&lt;/p&gt;
&lt;p&gt;1. the plus operator&lt;/p&gt;
&lt;p&gt;Most of the hard-to-debug bugs in my javascript code come from the + operator. It decides to concatenate strings instead of add numbers. Considering that all stuff that goes over the wire (i.e. socket.io) is treated as strings, it&amp;#8217;s really painful and ugly to have parseInt(&amp;#8230;, 10) everywhere. PHP solves this issue with simple dot operator. Simple, no-brainer and always does what you expect. You don&amp;#8217;t have to think where does the data come from.&lt;/p&gt;
&lt;p&gt;2. foreach&lt;/p&gt;
&lt;p&gt;I miss PHP&amp;#8217;s foreach so bad. Consider:&lt;/p&gt;
&lt;pre&gt;for (ix in really.long[expression].toGet.theStuff) {&lt;br/&gt;    if (really.long[expression].toGet.theStuff[ix].value &amp;lt; 10 &amp;amp;&amp;amp; really.long[expression].toGet.theStuff[ix] &amp;gt; 5) {&lt;br/&gt;        ...do something&lt;/pre&gt;
&lt;p&gt;versus PHP&amp;#8217;s:&lt;/p&gt;
&lt;pre&gt;foreach ($really.long[expression].toGet.theStuff as $ix=&amp;gt;$value) {&lt;br/&gt;    if ($value &amp;lt; 10 &amp;amp;&amp;amp; $value &amp;gt; 5) {&lt;br/&gt;        ....do something&lt;/pre&gt;
&lt;p&gt;Of course, one could assign the array element to some local variable, and so I have local variables all around wasting code lines and making code error prone (if you need to change the collection you are iterating, you have to change in two places).&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/22920871319</link><guid>http://www.backwardcompatible.net/post/22920871319</guid><pubDate>Sat, 12 May 2012 21:56:00 +0200</pubDate><category>php</category><category>javascript</category></item><item><title>Google multi-account get screwd up again</title><description>&lt;p&gt;Looks like guys at Google really have trouble with multi-accounts and sessions. Everything was working fine for months now, but they messed it up again. What does the problem look like:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;I have 2 google accounts, one @gmail.com and other @mydomain.com&lt;/li&gt;
&lt;li&gt;I cannot login into @gmail one directly. I have to log into @mydomain and then use the &amp;#8220;switch account&amp;#8221; feature&lt;/li&gt;
&lt;li&gt;I cannot bookmark both gmails. Although bookmarks are different, both open @mydomain account&lt;/li&gt;
&lt;li&gt;Most other google services I use (ex. Analytics) are tied to my @gmail account. I cannot access those at all, unless I log out of everything, clear all the cookies and then log just into @gmail.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;My user experience with google is getting worse every day:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;multi-account login problems&lt;/li&gt;
&lt;li&gt;google docs become painfully slow when spreadsheets grow 300+ rows (only about 10 columns though)&lt;/li&gt;
&lt;li&gt;search is polluted with g+ spam, translation offerings, etc.&lt;/li&gt;
&lt;li&gt;on one of my computers it shows my location in the wrong country and I cannot find a way to tell it differently. &lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;If someone build free replacements, I would surely give those a shot.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/22771382524</link><guid>http://www.backwardcompatible.net/post/22771382524</guid><pubDate>Thu, 10 May 2012 10:30:49 +0200</pubDate><category>gmail</category><category>google</category></item><item><title>GMail ignores Reply-to header [SOLVED]</title><description>&lt;p&gt;I have a conact form on my website. People can leave their e-mail so that I contact them back. I set it up so that e-mail is sent From my e-mail address (general rule: never put user&amp;#8217;s e-mail in From field), and Reply-to set to user&amp;#8217;s e-mail address.&lt;/p&gt;
&lt;p&gt;However, when I click &amp;#8220;Reply&amp;#8221; in GMail, the reply gets sent to back to me. Looks like some glitch in GMail&amp;#8217;s design, and they did not bother to fix it for a long time.&lt;/p&gt;
&lt;p&gt;The solution is rather simple, just change the From field to some other address you own (different from GMail account address). For example if your e-mail is office@example.com, you can use support@example.com in the header. After this little change, Reply-to started working properly.&lt;/p&gt;
&lt;p&gt;I hope this helps someone.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/22375391764</link><guid>http://www.backwardcompatible.net/post/22375391764</guid><pubDate>Fri, 04 May 2012 11:30:21 +0200</pubDate><category>gmail</category><category>reply-to</category></item><item><title>How to extract mp3 from YouTube video using Linux?</title><description>&lt;p&gt;It&amp;#8217;s rather easy. I used 3 components:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;DownloadHelper extension for Firefox&lt;/li&gt;
&lt;li&gt;MPlayer&lt;/li&gt;
&lt;li&gt;lame&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;When DownloadHelper is installed and you open a YouTube video, it gives you the options to download the .flv or .mp4 file to your computer.&lt;/p&gt;
&lt;p&gt;After the file is downloaded, we can use MPlayer to play it and also to dump the audio. It&amp;#8217;s nice because it plays both .flv and .mp4, so you just need one program. To dump the audio to .WAV format use:&lt;/p&gt;
&lt;pre&gt;mplayer -ao pcm:waveheader FILENAME.flv&lt;/pre&gt;
&lt;p&gt;This will create file called audiodump.wav. Now, use mp3lame to encode it to mp3 format. You can also use oggenc to convert it to OGG if you perfer open formats.&lt;/p&gt;
&lt;pre&gt;lame audiodump.wav song.mp3&lt;/pre&gt;
&lt;p&gt;That&amp;#8217;s all. I put these commands in a simple shell script (video2mp3.sh):&lt;/p&gt;
&lt;pre&gt;mplayer -ao pcm:waveheader $1&lt;br/&gt;lame audiodump.wav $1.mp3&lt;/pre&gt;
&lt;p&gt;Run it from command line like this:&lt;/p&gt;
&lt;pre&gt;. video2mp3.sh FILENAME.flv&lt;/pre&gt;</description><link>http://www.backwardcompatible.net/post/21932707384</link><guid>http://www.backwardcompatible.net/post/21932707384</guid><pubDate>Fri, 27 Apr 2012 23:33:34 +0200</pubDate></item><item><title>Lean Startup vs Rework
Some time ago I finished reading the Lean...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_m2b6d3gBid1r1vk9bo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;strong&gt;Lean Startup vs Rework&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Some time ago I finished reading the Lean Startup book by Eric Ries. Although I have been using some techniques from it before I have learned a lot. Yesterday, I found a mention of Rework on some website. Rework is a book by founders of 37 Signals, which I also read before. I started to compare the content of Lean Startup and Rework and I got some interesting conclusions.&lt;/p&gt;
&lt;p&gt;Rework and 37 signals business model is really only a sub-set of Lean Startup philosophy. Basically, Rework stops somewhere during lean startup process and says “we’re content with this”. You build MVP, test it with customers, tweak a little bit and whoa, if you get good product market fit, what’s next? Depends who you ask: 37signals guys would tell you: “Well done, now enjoy your success”. They refuse to grow business, add features and go for a larger market. I’m not saying this is bad, sometimes you need to know what is your field of competence and stay there.&lt;/p&gt;
&lt;p&gt;Which one would you follow? It depends on your personality. If you’re going to become a serial entrepreneur, rework is not enough. If you have an urge to move forward, discover new horizons, you might need to use Lean Startup in each new project again. After all, one can hardly call 37signals a startup anymore. They behave like established business, not a startup. As DHH said on Twist, “if you’re not doing your best idea now, you’re doing it wrong”. But, how do you know what is your best idea going to be if you do not explore? Maybe something looks like my best idea now, and I should be working on it. But, by the time that project becomes mature and stable, I might get a dozen of better ideas. And once I can turn the reigns of the current project to some good manager, I can go back to “startup” mode and explore new boundaries.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/20896750879</link><guid>http://www.backwardcompatible.net/post/20896750879</guid><pubDate>Wed, 11 Apr 2012 11:29:27 +0200</pubDate></item><item><title>Twitter Timestamp out of bounds [solved]</title><description>&lt;p&gt;Some time ago, automatic sending of status updates from one of my applications stopped working. I haven&amp;#8217;t changed anything on the server, so this was strange. Looking into error message from Twitter:&lt;/p&gt;
&lt;pre&gt;[request] =&amp;gt; /1/statuses/update_with_media.json &lt;br/&gt;[error] =&amp;gt; Timestamp out of bounds&lt;/pre&gt;
&lt;p&gt;well, that&amp;#8217;s strange. I recall time was moved to DST (daylight savings) Summer time in US recently, and apparently so did Twitter&amp;#8217;s servers. The rest of the world - bah, they don&amp;#8217;t seem to be interested, they can barely run the servers for US users apparently.&lt;/p&gt;
&lt;p&gt;So, until DST change comes to the rest of the world, we need a hack. At first I thought that Twitter does not like timestamps to be in the future, so I thought about decreasing the timestamp of tweets. That did not work. So, I tried to increase the timestamp and everything is working now. The change is quite simple, just increase OAuth oauth_timestamp by a couple of hours and you&amp;#8217;re done. In PHP OAuth client it looks like this (I added 5 hours):&lt;/p&gt;
&lt;pre&gt;  private static function generate_timestamp() {&lt;br/&gt;    return time()+5*3600;&lt;br/&gt;  }&lt;br/&gt;&lt;br/&gt;&lt;/pre&gt;</description><link>http://www.backwardcompatible.net/post/19779184235</link><guid>http://www.backwardcompatible.net/post/19779184235</guid><pubDate>Fri, 23 Mar 2012 12:40:52 +0100</pubDate></item><item><title>What's the conversion on e-mail newsletter with a call to action?</title><description>&lt;p&gt;I have measured that in the past week. One of my websites has more than 500.000 user accounts. I picked the users who were not on the site in the last week, because they have already seen the news on the site, and got some 384.000+ distinct e-mail addresses. I needed to contact them regarding an important issue about the website. The e-mail was composed like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Hello,&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;you are reading this mail because you are a member of [mysite link].&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Issue explained and link with [call to action]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Regards,&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Your webmaster&lt;/em&gt;&lt;br/&gt;&lt;em&gt;[mysite link]&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Links where not plain text, but special URLs I used to track the clicks.&lt;/p&gt;
&lt;p&gt;I sent the e-mail slowely over a 7 day period. I wanted to track weekends and working days as well.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And here are the stats:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;384408 different e-mail addresses&lt;/li&gt;
&lt;li&gt;13966 bounced back (3.6% bounce rate)&lt;/li&gt;
&lt;li&gt;9345 clicks (yielding 2.5% conversion rate)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Hot spots in the e-mail message:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;23% clicks on link in the first sentence&lt;/li&gt;
&lt;li&gt;65% clicks on call-to-action&lt;/li&gt;
&lt;li&gt;12% clicks on website link in signature&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Here are the weekday stats:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Monday 13%&lt;/li&gt;
&lt;li&gt;Tuesday 16%&lt;/li&gt;
&lt;li&gt;Wednesday 18%&lt;/li&gt;
&lt;li&gt;Thursday 18%&lt;/li&gt;
&lt;li&gt;Friday 15%&lt;/li&gt;
&lt;li&gt;Saturday 9%&lt;/li&gt;
&lt;li&gt;Sunday 11%&lt;/li&gt;
&lt;/ul&gt;</description><link>http://www.backwardcompatible.net/post/18143023354</link><guid>http://www.backwardcompatible.net/post/18143023354</guid><pubDate>Thu, 23 Feb 2012 21:19:00 +0100</pubDate><category>email</category><category>conversion</category><category>newsletter</category></item><item><title>Using JavaScript to split text string into word tokens, taking account of punctuation and whitespace and UTF-8 charset</title><description>&lt;p&gt;I got an interesting problem today. I was supposed to check some HTML form before submitting to see if the text entered by the user in textarea has some specific words in it. Googling around I found a lot of stuff like &amp;#8220;how to split text separated by commas&amp;#8221; and such, but I simply wanted to extract words from a paragraph like this one.&lt;/p&gt;
&lt;p&gt;My instinct was to use String.split() function, but it splits on a single character and I would have to write a recursive or iterative function to split on all non-word characters. Not being able to predict all the crap users can enter, this did not look like the right choice.&lt;/p&gt;
&lt;p&gt;Luckily, I discovered String.match() which uses regex and is able to split text into an array of words, using something like this:&lt;/p&gt;
&lt;pre&gt;var arr = inputString.match(/\w+/g);&lt;/pre&gt;
&lt;p&gt;Cool, eh? Now, this all went fine for ASCII English text. But I need to work with UTF-8, or more specifically, Serbian language. Serbian Latin script used by my users has only 5 characters that are not from ASCII set, so I wrote a small replace function to replace those 5 with their closest matches. The final code looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;br/&gt;var s = srb2lat(inputString.toUpperCase());&lt;br/&gt;var a = s.match(/\w+/g);&lt;br/&gt;for (var i = 0; a &amp;amp;&amp;amp; i &amp;lt; a.length; i++)&lt;br/&gt;{&lt;br/&gt;    if (a[i] == 'SPECIAL')&lt;br/&gt;        alert('Special word found!');&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;function srb2lat(str)&lt;br/&gt;{&lt;br/&gt;    var len = str.length;&lt;br/&gt;    var res = '';&lt;br/&gt;    var rules = { 'Đ':'DJ', 'Ž':'Z', 'Ć':'C', 'Č':'C', 'Š':'S'};&lt;br/&gt;    for (var i = 0; i &amp;lt; len; i++)&lt;br/&gt;    {&lt;br/&gt;        var ch = str.substring(i, i+1);&lt;br/&gt;        if (rules[ch])&lt;br/&gt;            res += rules[ch];&lt;br/&gt;        else&lt;br/&gt;            res += ch;&lt;br/&gt;    }&lt;br/&gt;    return res;&lt;br/&gt;}&lt;br/&gt;";&lt;/pre&gt;
&lt;p&gt;If you use some other language, just replace the rules array with different transliteration rules.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/18088664478</link><guid>http://www.backwardcompatible.net/post/18088664478</guid><pubDate>Wed, 22 Feb 2012 22:37:00 +0100</pubDate><category>javascript</category><category>UTF-8</category><category>parsing</category><category>tokens</category></item><item><title>How to use IDB files of Quicken Home Inventory on 64 bit Windows?</title><description>&lt;p&gt;Directly load your IDB file from Quicken Home Inventory on any 64 bit Windows system. It works on 32 bit as well, of course. Today, a new version of Attic Manager is released, version 3.00. This version is able to load data directly from IDB files, there is no need to install any additional software. You don&amp;#8217;t even have to have Quicken installed. This also means that you can run this option on 64 bit Windows 7 for example, or even on Linux.&lt;/p&gt;
&lt;p&gt;Attic Manager can also load the inventory data from QHI and MDF files. QHI files are also loaded without any additional software.&lt;/p&gt;
&lt;p&gt;For MDF files you need to have Microsoft SQL Server Express Edition installed. This is a freeware from Microsoft that comes with QHIM, so if you already have Quicken installed on the same computer, you don&amp;#8217;t need to install anything.&lt;/p&gt;
&lt;p&gt;In any case, Attic Manager is now unique software on the market, being able to load all Quicken Home Inventory formats and allowing you to keep track of your items on any PC.&lt;/p&gt;
&lt;p&gt;There are even hints of Mac version coming soon.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/15584192485</link><guid>http://www.backwardcompatible.net/post/15584192485</guid><pubDate>Mon, 09 Jan 2012 23:17:17 +0100</pubDate><category>quicken</category><category>quicken home inventory</category><category>qhim</category><category>Windows7</category></item><item><title>Why aren't you using InnoDB instead of MyISAM?</title><description>&lt;p&gt;For this particular application, I simply cannot afford it. MyISAM is able to cache index and data separately, using it I can keep the whole index in RAM and website works great. I tried to convert to InnoDB, the result was 4x larger database and 20 times worse performance, mostly due to the fast that index and data gets the same priority for caching so it was killed by disk I/O. If this website was earning enough money to buy at least 4 x more RAM it might not be a bad idea. However, it this case I’d rather use Firebird - it has a similar memory footprint as InnoDB, but has much more features (*real* stored procedures and triggers that work without problems, ability to use table aliases in delete statements, database events functionality, better resistance to system crashes, etc.)&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/15300704893</link><guid>http://www.backwardcompatible.net/post/15300704893</guid><pubDate>Wed, 04 Jan 2012 19:07:40 +0100</pubDate></item><item><title>Why is MySQL still a toy database</title><description>&lt;p&gt;I have been using MySQL for a very intensive read-write web application (averaging 102 queries per second) for more than two years. I had ups and downs with it, like crazy MyISAM behavior that readers can block writers AND OTHER READERS. Basically, a table level lock is issued for read. I have 100+ million records in a table, so it takes a while to find anything that is not indexed. In the meantime, users are pondering (102qps, remember) and load goes up so much because of web server processes queuing like crazy. Ok, I learned not to do that anymore. I now use binary logging, restore to a different server and query there. Maybe a switch to InnoDB would be a good idea, but in this case I&amp;#8217;d rather use a serious MVCC database like Firebird. Why, you might ask&amp;#8230; well, here&amp;#8217;s one of many reasons, the one that prompted my to write this:&lt;/p&gt;
&lt;p&gt;In Firebird, I can happily do this:&lt;/p&gt;
&lt;pre&gt;delete from atable a1 &lt;br/&gt;where exists ( &lt;br/&gt;select 1 from atable a2 where a1.data = a2.data and a1.id &amp;lt;&amp;gt; a2.id );&lt;/pre&gt;
&lt;p&gt;It just does it, and fast, because index on primary key field ID is used. In MySQL, to quote the manual:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;#8220;Currently, you cannot delete from a table and select from the same table in a subquery.&amp;#8221;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Come on, this is one of the most basic database operation. So, what am I now to do? Waste my time dumping the list of IDs to delete to some temporary location, and then iterating that list to delete. :(&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/15237592490</link><guid>http://www.backwardcompatible.net/post/15237592490</guid><pubDate>Tue, 03 Jan 2012 12:53:00 +0100</pubDate><category>mysql</category><category>firebird</category></item><item><title>Scrolling back in screen</title><description>&lt;p&gt;A few years ago I discovered screen, a nice Linux tool that enables you to detached from terminal with commands running and all in the background. You can even connect later from a different computer and continue where you left off. I initially used it for rtorrent, but now I also use it to administer remote computers, for example when I start to do something that might take more than a day, I can log back in tomorrow. Also loggin in from home/work to complete some task, etc. Another use is administering remote computers on dial-up (yes, there are some) or slow and unstable 3G connections. Even if connection breaks down, I can log in later and pick up where it stopped.&lt;/p&gt;
&lt;p&gt;One of the annoying &amp;#8220;problems&amp;#8221; with screen is that shift+page up/down does not scroll the buffer. This is due to the fact that screen has its own buffers. To work with them you need to enter the &amp;#8220;copy mode&amp;#8221; using &lt;strong&gt;Ctrl+a followed by [&lt;/strong&gt;. Since I use non-English keyboard that&amp;#8217;s Ctrl+a, AltGr+f. Hard to remember when you don&amp;#8217;t use it often.&lt;/p&gt;
&lt;p&gt;I use Konsole, and I found a way to make it work by adding the following lines to .screenrc (in my home directory):&lt;/p&gt;
&lt;pre&gt;termcapinfo xterm|xterms|xs|rxvt ti@:te@&lt;/pre&gt;</description><link>http://www.backwardcompatible.net/post/15023657993</link><guid>http://www.backwardcompatible.net/post/15023657993</guid><pubDate>Fri, 30 Dec 2011 13:26:43 +0100</pubDate><category>screen</category><category>linux</category><category>konsole</category><category>kde</category><category>remote administration</category><category>dialup</category></item><item><title>Why is Firebird better DBMS than Oracle?</title><description>&lt;p&gt;Beside being free (both as beer and also open source), you don&amp;#8217;t need 24x7 DBA and there are generally less headaches. Here&amp;#8217;s a nice example explained by Norman Dumbar in a mailing-list post. Norman administers over 600 Oracle databases and about 40 Firebird ones:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Oracle uses log files for REDO and has ROLLBACK_SEGMENTS or UNDO Segments (depending on Oracle version) for UNDO. It never uses log files for UNDO - and UNDO is what provides Read Consistency/MVCC in an Oracle database.&lt;br/&gt;&lt;br/&gt;Changes are written to the LOG_BUFFER (n memory) and periodically - on commit, every 3 seconds max, or when the buffer is 33% full - flushed to the REDO logs. These REDO logs might be archived to disc when they fill up. That Depends on the database archive log mode though.&lt;br/&gt;&lt;br/&gt;These logs are used when a database is restored and rolled forward (using the RECOVER DATABASE command, for example).&lt;br/&gt;&lt;br/&gt;In order to roll back changes and to ensure read consistency, UNDO is used. These do live on disc - as tablespace files - but remain in memory in the buffer cache alongside data blocks etc.&lt;br/&gt;&lt;br/&gt;When a SELECT is started, the data returned are the data from the data blocks. Each row in a block has an indicator that tells when it was last updated. If a pending update is taking place (currently uncommitted) or if a commit has taken place since this SELECT started then the data read from that data block has changed - and is not consistent with the start time of this SELECT transaction.&lt;br/&gt;&lt;br/&gt;When this is detected, Oracle &amp;#8220;rolls back&amp;#8221; the changes to the start time of the SELECT taking place by looking for the UNDO block(s) associated with the transaction that made the changes. If that results in the correct (consistent) data, that&amp;#8217;s what you get.&lt;br/&gt;&lt;br/&gt;If it turns out that there were other transactions that also changed the data, they too will be detected and undone.&lt;br/&gt;&lt;br/&gt;In this way you only ever see data that was consistent at the start of your own transaction.&lt;br/&gt;&lt;br/&gt;As long as the DBA correctly sizes the UNDO tablespace and correctly sets the UNDO_RETENTION parameter to a decent enough value, data changes are able to be rolled back happily all the time.&lt;br/&gt;&lt;br/&gt;If the DBA failed miserably in his/her duties, the ORA-01555 Snapshot too old&amp;#8221; errors are the result. And are most irritating. Long running SELECTS - batch reports for example - tend to show up this error mostly.&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Of course, you would never see such problems with Firebird, because the old record versions are stored in database and not the log files. You don&amp;#8217;t have to care if system crashes - after reboot it simply works.&lt;/p&gt;
&lt;p&gt;You might think that engineers who build Firebird are smarter than Oracle&amp;#8217;s but sometimes I think Oracle is deliberately made so complicated to require DBA and also offer them job security. And also makes sure nobody can complain it&amp;#8217;s too easy to use.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/14304762777</link><guid>http://www.backwardcompatible.net/post/14304762777</guid><pubDate>Fri, 16 Dec 2011 12:07:33 +0100</pubDate><category>firebird</category><category>oracle</category><category>dmbs</category></item><item><title>Using Quicken Home Inventory Manager on 64bit systems [FINALLY]</title><description>&lt;p&gt;No, Quicken does not support 64bit Windows 7 yet. And there are no plans to do so. A few months back, GuacoSoft has released a new version of Attic Manager that is able to load data from Quicken directly. You can then export it into csv, excel, whatever OR simply use Attic Manager to manage the inventory.&lt;/p&gt;
&lt;p&gt;Initial version of Attic Manager with this support (2.03) was only able to load data from .MDF files. However, a new version (2.50) is out now that supports .QHI files as well. It can load all data from .MDF. For files with .QHI extension, it loads all the data except image thumbnails. However, if you still keep your original images on the disk in same location where they were when you loaded them into QHIM, the Attic Manager will pick them up while importing and create thumbnails automatically. Not only that, but it will store a copy of each image into it&amp;#8217;s database, so that you never lose it in the future.&lt;/p&gt;
&lt;p&gt;So far, this is the only way to extract data from Quicken, and it&amp;#8217;s really the only Home Inventory program on the market that enables you to transfer all your data before migrating to a new program.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/13643162676</link><guid>http://www.backwardcompatible.net/post/13643162676</guid><pubDate>Fri, 02 Dec 2011 20:59:17 +0100</pubDate><category>quicken home inventory</category><category>quicken</category><category>qhim</category><category>qhi</category><category>export</category></item><item><title>YouTube bug report bug LOL</title><description>&lt;p&gt;Looking for a way to report a problem with YouTube software I found a link &amp;#8220;Report a bug&amp;#8221; a the bottom of the page. However, when I clicked it, I got redirected to:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.google.com/tools/feedback/intl/en/error.html"&gt;http://www.google.com/tools/feedback/intl/en/error.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Which says:&lt;/p&gt;
&lt;blockquote&gt;
&lt;h2&gt;An error has occurred&lt;/h2&gt;
&lt;p&gt;We are sorry but we were not able to capture your feedback.&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://www.backwardcompatible.net/post/12522915887</link><guid>http://www.backwardcompatible.net/post/12522915887</guid><pubDate>Tue, 08 Nov 2011 21:29:22 +0100</pubDate><category>google</category><category>youtube</category><category>bugreport</category></item><item><title>Stuck SSH session</title><description>&lt;p&gt;When logging from my laptop to remote SSH servers I had a strange problem. Whenever a big chunk of text needs to be returned, my SSH session would stuck and completely stop working. It would not disconnect, but just stay there doing nothing. I would have to log in again. By &amp;#8220;big chunk&amp;#8221; I mean something like 20+ lines. Output of &amp;#8220;ps ax&amp;#8221; for example.&lt;/p&gt;
&lt;p&gt;This mad me so mad, because if was working on server for a few minutes making sure that I &amp;#8220;head&amp;#8221; and &amp;#8220;tail&amp;#8221; every command to reduce output and then I would forget that some command might output more. For example, using &amp;#8220;vi&amp;#8221; or &amp;#8220;mcedit&amp;#8221; was completely impossible.&lt;/p&gt;
&lt;p&gt;My Internet connection goes through PPPoE. Websites work fine, HTTP works really well, but SSH&amp;#8230; no go. The server on the other side is behind a firewall, so tunneling and port forwarding are here.&lt;/p&gt;
&lt;p&gt;I searched around, and found that TCP/IP packet size might be the problem, so I tried different MTU values for my PPPoE connection, but without much luck. I was able to get a little bit more before it would stuck again.&lt;/p&gt;
&lt;p&gt;And then I landed on this Debian bug report from 2005:&lt;/p&gt;
&lt;p&gt;&lt;a title="Stuck SSH session" target="_blank" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=296811"&gt;&lt;a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=296811"&gt;http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=296811&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Apparently still valid. It looks like it only relates to some D-Link routers, although I have no clue what&amp;#8217;s at the other end where the server is connected. The solution is to reduce MTU server-side. Luckily, I can still run a one-liner command, and so I did:&lt;/p&gt;
&lt;pre class="message"&gt;/sbin/ifconfig eth0 mtu 1000&lt;br/&gt;&lt;/pre&gt;
&lt;p&gt;Everything runs fine now. I just wonder if this would decrease server through-output on the local LAN where it runs.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/12465645267</link><guid>http://www.backwardcompatible.net/post/12465645267</guid><pubDate>Mon, 07 Nov 2011 12:58:03 +0100</pubDate></item><item><title>Reducing dentry (slab) usage on machines with a lot of...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_ltxw09px2w1r1vk9bo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;strong&gt;Reducing dentry (slab) usage on machines with a lot of RAM&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Recently I switched my main website from 2-core AMD 4GB RAM machine to 8-core 16GB RAM Intel i7 one. I also switched from CentOS 5 to CentOS 6. I set up everything the same, but suddenly the system was using much more RAM than before. And I’m not talking about filesystem cache here. I thought that increasing RAM would only increase filesystem cache, but something else was occupying RAM like crazy. Looking at output of “free”, “top” and “ps” I simply could not determine what eats RAM because running processes were fine.&lt;/p&gt;
&lt;p&gt;So, I googled a little bit, and found that problem was in dentry cache used by Linux kernel. You can see the kernel memory usage with “slabtop” command, and my dentry was crazy, something like 5GB and growing. Googling even more, I found horror stories about servers going down, OOM killing vital processes like Apache or MySQL, etc. So I wanted to stop this.&lt;/p&gt;
&lt;p&gt;Quick fix is to clear the cache manually. Some people even “solved” this problem by adding the command to cron job.&lt;/p&gt;
&lt;pre class="html"&gt;echo 2 &gt; /proc/sys/vm/drop_caches&lt;/pre&gt;
&lt;p&gt;On the MRTG screenshot you can see the dentry cache size in megabytes marked as a blue line. 4000 means 4GB of cache. I have 16GB, remember. When you run the drop_caches command above, you get the effect marked by the red arrow.&lt;/p&gt;
&lt;p&gt;I did not like the approach of adding this to crontab, so I investigated further, asked at mailing lists, learned that Linus himself says that “unused memory is dead memory” and that’s why kernel is hungry. Still, I decided to reduce the hunger and added this to /etc/sysctl.conf&lt;/p&gt;
&lt;pre&gt;vm.vfs_cache_pressure=10000&lt;/pre&gt;
&lt;p&gt;That did slow it down, but it was still growing. You can run sysctl -p to apply changes to the running kernel without restarting. Next I added these as well:&lt;/p&gt;
&lt;pre&gt;vm.overcommit_ratio=2&lt;br/&gt;vm.dirty_background_ratio=5&lt;br/&gt;vm.dirty_ratio=20&lt;/pre&gt;
&lt;p&gt;However, it was still growing, and I decided to leave it be and see what happens. Is my server going to crash, become unavailable, or something. 24 hours later, dentry was again going up like crazy and suddenly it dropped. By itself. See the blue arrow in the screenshot. It seems like kernel figure out that RAM is going to be exhausted, filesystem cache would be reduced, etc. After this point, everything went back to normal.&lt;/p&gt;
&lt;p&gt;I tried this experiment again, about a week later, with same results. High-rise, drop and things going back to normal. So, if you’re worried your dentry cache is growing like crazy, don’t. Just tweak those settings in sysctl and wait for at least 48 hours before drawing any conclusions.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/12164037212</link><guid>http://www.backwardcompatible.net/post/12164037212</guid><pubDate>Mon, 31 Oct 2011 17:48:00 +0100</pubDate><category>linux</category><category>kernel</category><category>slabtop</category><category>dentry</category></item><item><title>Disabling alerts stops JavaScript execution in #Firefox</title><description>&lt;p&gt;Today I learned about interesting issue with newer versions of Firefox (I use FF7). It has a nice web developer-friendly feature to disable alerts. This is really useful when you place alert() by mistake in some loop and you can&amp;#8217;t get out because as soon as you click OK, you get another one.&lt;/p&gt;
&lt;p&gt;New Firefox has a checkbox to disable future alerts. And this is great. So, what&amp;#8217;s the problem? Once you disable alerts, and javascript code is executed that would display it, it does not keep running, but rather throws an exception. This does not look like correct behavior to me.&lt;/p&gt;
&lt;p&gt;Imagine a web application that alerts user about something and then keeps running to finish the job. If user disabled alerts because he was in a hurry and clicked fast on different message boxes, the script would not keep going but stop. And there is no way to revert that short of reloading the page (yikes!).&lt;/p&gt;
&lt;p&gt;I found a workaround, I created a function called tryalert that wraps the alert in try..catch block. It looks like this:&lt;/p&gt;
&lt;pre&gt;function tryalert(message) &lt;br/&gt;{ &lt;br/&gt;    try { alert(message); } catch(e) {} &lt;br/&gt;}&lt;/pre&gt;
&lt;p&gt;This is a fine workaround. Now instead of alert() I call tryalert() and although the alert is not displayed anymore, the code keeps going as if user has been alerted.&lt;/p&gt;
&lt;p&gt;The problem is introducing tryalert to ALL applications I&amp;#8217;ve written so far. It&amp;#8217;s impossible. I hope Firefox team changes this.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/12122119174</link><guid>http://www.backwardcompatible.net/post/12122119174</guid><pubDate>Sun, 30 Oct 2011 18:34:00 +0100</pubDate><category>firefox</category><category>javascript</category><category>alert</category></item><item><title>How to export data from QHI?</title><description>&lt;a href="http://www.guacosoft.com/attic"&gt;How to export data from QHI?&lt;/a&gt;: &lt;p&gt;Unfortunately, Quicken Home Inventory does not work on Windows 7, and you might have a hard time switching to another program because QHI does not have an option to export the data.&lt;/p&gt;
&lt;p&gt;However, there’s a way to work around this. A program called Attic Manager, can import the data directly from Quicken database, even if you don’t have Quicken installed. It even works on 64bit Windows. You just need to have your QHI.MDF database backup file.&lt;/p&gt;
&lt;p&gt;Once data is in &lt;a title="Export data from Quicken Home Inventory" href="http://www.guacosoft.com/attic"&gt;Attic Manager&lt;/a&gt; you can export it to CSV format which can be imported into Excel, OpenOffice and almost all the other Home Inventory software. Or, maybe once you try it, you would stick to using Attic Manager.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/12075765945</link><guid>http://www.backwardcompatible.net/post/12075765945</guid><pubDate>Sat, 29 Oct 2011 17:58:20 +0200</pubDate><category>quicken</category><category>quicken home inventory</category><category>inventory</category><category>export</category></item><item><title>How to use Quicken Home Inventory on Windows 7 [SOLVED]</title><description>&lt;p&gt;If you are looking for a way to use all the data you have already entered on Windows 7 box, you came to the right place. Although the short answer is: &amp;#8220;you really can&amp;#8217;t do that with QHI&amp;#8221;, there is an easy solution to this problem&amp;#8230;&lt;/p&gt;
&lt;p&gt;There is a nice inexpensive replacement called &lt;a title="Home Inventory Software" href="http://www.guacosoft.com/attic"&gt;Attic Manager&lt;/a&gt;, which is able to &lt;a title="Load QHI data on Windows 7" href="http://www.guacosoft.com/qhi"&gt;load data from QHI even on Windows 7&lt;/a&gt; computer without Quicken instalation.&lt;/p&gt;
&lt;p&gt;It can load locations, categories, items and images (photos) of items.&lt;/p&gt;
&lt;p&gt;Most importantly, it runs on all modern operating systems including Windows 7 and various Linux distributions.&lt;/p&gt;
&lt;p&gt;If you don&amp;#8217;t have access to your old copy of QHI or Quicken Classic, it does not really matter, because Attic Manager can load the data directly from QHI database.&lt;/p&gt;
&lt;p&gt;P.S. If you decide to buy it, use the coupon code CNVRT4 to get 40% discount off the price.&lt;/p&gt;</description><link>http://www.backwardcompatible.net/post/11949519719</link><guid>http://www.backwardcompatible.net/post/11949519719</guid><pubDate>Wed, 26 Oct 2011 16:20:10 +0200</pubDate><category>quicken home inventory</category><category>windows7</category><category>qhi</category><category>home inventory</category></item></channel></rss>

