<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-3155499665242933860</atom:id><lastBuildDate>Sat, 28 Sep 2024 00:39:20 +0000</lastBuildDate><category>ubuntu</category><category>browser</category><category>fonts</category><category>google</category><category>mysql</category><category>password</category><category>python</category><category>quirks</category><category>ruby/rails</category><title>Developer Binder</title><description>I&#39;m going with Joe-e&#39;s concept of a &quot;work binder&quot;:  a blog to collect the tiny stuff that I might need to go back to..</description><link>http://devbinder.blogspot.com/</link><managingEditor>noreply@blogger.com (Nikki!)</managingEditor><generator>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3155499665242933860.post-8907708402884264306</guid><pubDate>Wed, 02 Sep 2009 08:44:00 +0000</pubDate><atom:updated>2009-09-02T16:44:24.332+08:00</atom:updated><title>Internet Explorer Does Not Create Session Cookies</title><description>Reference:  &lt;a href=&quot;http://genotrance.wordpress.com/2006/11/23/session-cookies-rejected-by-internet-explorer/&quot;&gt;http://genotrance.wordpress.com/2006/11/23/session-cookies-rejected-by-internet-explorer/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Initial encounter (IE and Chrome problem) was a timezone issue.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;u&gt;Timezone issue&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a title=&quot;DEAD LINK&quot;&gt;A third website&lt;/a&gt; suggested that IE was calculating session cookie timeouts incorrectly such that they seemed to expire in the past. As a result, these already expired cookies were rejected immediately. For example, if the server was in Hawaii and the client in Australia and the server requested a session timeout of one hour, the timeout would have already occurred as far as the client in Australia was concerned.&lt;br /&gt;
&lt;br /&gt;
Firefox didn’t have this issue since it converts both the server as well as the client time to UTC and then calculates the timeout. As interesting as this was, this didn’t seem as the problem since both my laptop client as well as my server were in the same timezone.&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Next encounter (after setting up VirtualHosts) was a hostname issue, where underscores are not accepted by IE.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;(&lt;a href=&quot;http://genotrance.wordpress.com/2006/11/23/session-cookies-rejected-by-internet-explorer/#comment-102&quot;&gt;In the comments section of the article&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
I was just researching a similar issue I had locally on my laptop, running apache and php. Every request was generating a new session file, but only in IE and not in FireFox.&lt;br /&gt;
&lt;br /&gt;
I traced the problem back to the URL used to access the site. As I develop locally I’m using non-existent URL schemes and I enter them in my hosts file manually.&lt;br /&gt;
test1.loc&lt;br /&gt;
test2.loc&lt;br /&gt;
test_3.loc&lt;br /&gt;
&lt;br /&gt;
When using underscores, IE rejects the cookie… Just thought I’d complete your list.&lt;br /&gt;
&lt;/blockquote&gt;</description><link>http://devbinder.blogspot.com/2009/09/internet-explorer-does-not-create.html</link><author>noreply@blogger.com (Nikki!)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3155499665242933860.post-8458109612162993502</guid><pubDate>Mon, 17 Aug 2009 07:04:00 +0000</pubDate><atom:updated>2009-08-17T15:07:32.870+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">browser</category><category domain="http://www.blogger.com/atom/ns#">quirks</category><title>Can&#39;t Login in IE7 or Chrome, Cookie Not Set</title><description>From &lt;a href=&quot;https://help.webfaction.com/index.php?_m=knowledgebase&amp;_a=viewarticle&amp;kbarticleid=168&quot;&gt;https://help.webfaction.com/index.php?_m=knowledgebase&amp;_a=viewarticle&amp;kbarticleid=168&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;If you are using Internet Explorer 7 or Google Chrome ( Chromium ) and are unable to log into [some website], make sure that your computer&#39;s clock is set to the correct time, as well as the correct time zone.&lt;br /&gt;&lt;br /&gt;IE7 and Chrome both handle web browser cookie expiration times based on your local computer&#39;s clock.  So if your clock is off, your cookies can expire before they are ever even used.&lt;br /&gt;&lt;/blockquote&gt;</description><link>http://devbinder.blogspot.com/2009/08/cant-login-in-ie7-or-chrome-cookie-not.html</link><author>noreply@blogger.com (Nikki!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3155499665242933860.post-975837528025433369</guid><pubDate>Tue, 28 Jul 2009 10:44:00 +0000</pubDate><atom:updated>2009-07-28T18:44:44.632+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">python</category><title>Generate Radnom String in Python</title><description>Source:  &lt;a href=&quot;http://ostas.blogspot.com/2006/12/python-generate-random-strings.html&quot;&gt;http://ostas.blogspot.com/2006/12/python-generate-random-strings.html&lt;/a&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;import string&lt;br /&gt;import random&lt;br /&gt;&quot;&quot;.join(random.sample(string.letters+string.digits, 8))&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;</description><link>http://devbinder.blogspot.com/2009/07/generate-radnom-string-in-python.html</link><author>noreply@blogger.com (Nikki!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3155499665242933860.post-3915482757353926142</guid><pubDate>Wed, 15 Jul 2009 11:36:00 +0000</pubDate><atom:updated>2009-07-15T19:36:20.868+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>How to Play MIDI files in Ubuntu</title><description>Copy-pasta!&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=58859&quot;&gt;Howto: Easy MIDI&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I was trying to play scummvm with alsa, and I coudlnt get it to play midis.. So I did a Little research, and found this. He did an excellent job at adding midi in hoary, so this is kind of a translation and a bit of fix.&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Install timidity &amp; pmidi:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install timidity pmidi&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo gedit /etc/modules&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;and add the following lines:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;snd-seq-device&lt;br /&gt;snd-seq-midi&lt;br /&gt;snd-seq-oss&lt;br /&gt;snd-seq-midi-event&lt;br /&gt;snd-seq&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Download the Unison Soundfont:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;wget ftp://ftp.personalcopy.net/pub/Unison.sf2.gz&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Extract it to /etc/sounds:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo mkdir /etc/sounds/&lt;br /&gt;tar -xzf Unison.sf2.gz&lt;br /&gt;mv Unison.SF2 Unison.sf2&lt;br /&gt;sudo mv Unison.sf2 /etc/sounds/&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo gedit /etc/timidity/timidity.cfg&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;It should look like this (No more, no less):&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;soundfont /etc/sounds/Unison.sf2&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo gedit /etc/init.d/timidity&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;variable &lt;tt&gt;TIM_ALSASEQPARAMS&lt;/tt&gt; (variable 22 I think), should look like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;TIM_ALSASEQPARAMS=&quot;-iA -B2,8 -Os1l -s 44100&quot;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo gedit /etc/default/timidity&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Uncomment the two TIM variables. It should look like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;# Defaults for TiMidity++ scripts&lt;br /&gt;# sourced by /etc/init.d/timidity&lt;br /&gt;# installed at /etc/default/timidity by the maintainer scripts&lt;br /&gt;# $Id: timidity.default,v 1.3 2004/08/07 14:33:26 hmh Exp $&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# This is a POSIX shell fragment&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Enable MIDI sequencer (ALSA), default is disabled&lt;br /&gt;TIM_ALSASEQ=true&lt;br /&gt;&lt;br /&gt;# Setting overrides (of /etc/timidity.conf) for the ALSA sequencer daemon&lt;br /&gt;TIM_ALSASEQPARAMS=&quot;-iA -B2,8 -Os1l -s 44100&quot;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;gedit ~/.bashrc&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Add the following line (A good idea is to add it after line 9):&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;export ALSA_OUTPUT_PORTS=&quot;128:0&quot;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Done! Now you can play midis with pmidi. Like this:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;pmidi Song.mid&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;If it doesnt work, reboot (just to be sure... Damn windows tick!)&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;Bonus: SCUMMVM&lt;br /&gt;Now you can play scumm vm through alsa! Just follow these steps:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;gedit ~/.bashrc&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Add the following line (Again, after line 9 is a good idea):&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;export SCUMMVM_PORT=128:0&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;(If you want to create a launcher)&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;gedit ~/.gnomerc&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Add the folowing lines:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;export ALSA_OUTPUT_PORTS=&quot;128:0&quot;&lt;br /&gt;export SCUMMVM_PORT=128:0&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;In scummvm, go to options, audio, music driver: ALSA&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;Good luck.&lt;br /&gt;&lt;br /&gt;PD: Thanks to:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://www.ubuntu-es.org/node/3777&quot;&gt;http://www.ubuntu-es.org/node/3777&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://www.ubuntulinux.org/wiki/MidiSoftwareSynthesisHowTo&quot;&gt;http://www.ubuntulinux.org/wiki/Midi...SynthesisHowTo&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://www.personalcopy.com/home.htm&quot;&gt;http://www.personalcopy.com/home.htm&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=30559&amp;highlight=timidity&quot;&gt;http://ubuntuforums.org/showthread.p...light=timidity&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Note: I think Ubuntu should have MIDI support by default&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Last edited by RastaMahata; August 21st, 2005 at 08:52 PM.. &lt;/i&gt;</description><link>http://devbinder.blogspot.com/2009/07/how-to-play-midi-files-in-ubuntu.html</link><author>noreply@blogger.com (Nikki!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3155499665242933860.post-696453434462806487</guid><pubDate>Mon, 13 Jul 2009 09:28:00 +0000</pubDate><atom:updated>2009-07-13T17:30:01.280+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">google</category><title>Google AdSense Login Problem</title><description>Had a problem loggin in.  This solved it:  &lt;a href=&quot;https://www.google.com/adsense/support/bin/request.py?contact=troubleshooter_login&quot;&gt;https://www.google.com/adsense/support/bin/request.py?contact=troubleshooter_login&lt;/a&gt;</description><link>http://devbinder.blogspot.com/2009/07/google-adsense-login-problem.html</link><author>noreply@blogger.com (Nikki!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3155499665242933860.post-9019332198592705988</guid><pubDate>Fri, 10 Jul 2009 13:39:00 +0000</pubDate><atom:updated>2009-07-10T21:39:21.578+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ruby/rails</category><title>Tips about Ruby / Rails Arrays</title><description>Array Subsets and Supersets&lt;br /&gt;&lt;a href=&quot;http://adzdavies.blogspot.com/2008/02/array-subsets-and-supersets.html&quot;&gt;http://adzdavies.blogspot.com/2008/02/array-subsets-and-supersets.html&lt;/a&gt;&lt;br /&gt;-- useful tip about converting arrays into sets&lt;br /&gt;&lt;br /&gt;Understanding Ruby Arrays&lt;br /&gt;&lt;a href=&quot;http://www.techotopia.com/index.php/Understanding_Ruby_Arrays&quot;&gt;http://www.techotopia.com/index.php/Understanding_Ruby_Arrays&lt;/a&gt;&lt;br /&gt;-- general info&lt;br /&gt;&lt;br /&gt;Range checking -- lesson:  KEEP IT SIMPLE, no need to be overly clever about your code&lt;br /&gt;&lt;a href=&quot;http://stackoverflow.com/questions/699448/ruby-how-do-you-check-whether-a-range-contains-a-subset-of-another-range&quot;&gt;http://stackoverflow.com/questions/699448/ruby-how-do-you-check-whether-a-range-contains-a-subset-of-another-range&lt;/a&gt;</description><link>http://devbinder.blogspot.com/2009/07/tips-about-ruby-rails-arrays.html</link><author>noreply@blogger.com (Nikki!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3155499665242933860.post-7906591009309479102</guid><pubDate>Thu, 09 Jul 2009 10:15:00 +0000</pubDate><atom:updated>2009-07-09T18:16:14.914+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">password</category><title>Resetting the Root MySQL Password</title><description>(Source: &lt;a href=&quot;http://www.tech-faq.com/reset-mysql-password.shtml&quot;&gt;http://www.tech-faq.com/reset-mysql-password.shtml&lt;/a&gt;)&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;  &lt;li&gt;Stop the &lt;tt&gt;mysqld&lt;/tt&gt; daemon process.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;Start the &lt;tt&gt;mysqld&lt;/tt&gt; daemon process with the &lt;tt&gt;--skip-grant-tables&lt;/tt&gt; option.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;Start the &lt;tt&gt;mysql&lt;/tt&gt; client with the &lt;tt&gt;-u root&lt;/tt&gt; option.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;Execute: &lt;code&gt;UPDATE mysql.user SET Password=PASSWORD(&#39;password&#39;) WHERE User=&#39;root&#39;;&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;Execute: &lt;code&gt;FLUSH PRIVILEGES;&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;These steps reset the password for the &quot;root&quot; account to &quot;password&quot;. To change the password for a different account, or to set a different password, just edit the variables in single-quotes in step 4.&lt;br /&gt;&lt;br /&gt;If you know your existing MySQL root password, steps 1-3 are not necessary.</description><link>http://devbinder.blogspot.com/2009/07/resetting-root-mysql-password.html</link><author>noreply@blogger.com (Nikki!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3155499665242933860.post-6052091430015754440</guid><pubDate>Wed, 08 Jul 2009 02:35:00 +0000</pubDate><atom:updated>2009-07-08T10:40:18.377+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">fonts</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Install the Wingdings font on Ubuntu</title><description>&lt;dl&gt;&lt;br /&gt;  &lt;dt&gt;Objective:&lt;/dt&gt;&lt;br /&gt;  &lt;dd&gt;Install the Wingdings font on Ubuntu&lt;/dd&gt;&lt;br /&gt;&lt;/dl&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;  &lt;li&gt;Download the font file (&lt;tt&gt;wingding.ttf&lt;/tt&gt;) here:  &lt;a href=&quot;http://www.afosteo.org/Download/Fonts/&quot;&gt;http://www.afosteo.org/Download/Fonts/&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;Copy the font file to &lt;tt&gt;~/.fonts&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;Refresh the font cache (according to &lt;a href=&quot;https://answers.launchpad.net/ubuntu/+question/70185&quot;&gt;https://answers.launchpad.net/ubuntu/+question/70185&lt;/a&gt;):&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;sudo fc-cache -fv&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;  &lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;</description><link>http://devbinder.blogspot.com/2009/07/install-wingdings-font-on-ubuntu.html</link><author>noreply@blogger.com (Nikki!)</author><thr:total>0</thr:total></item></channel></rss>