<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-323303896831619875</id><updated>2011-04-21T22:00:57.258-07:00</updated><category term='seo'/><category term='linux'/><category term='ranting'/><category term='css'/><category term='javascript'/><category term='bash'/><category term='actionscript as3 flash tweens'/><category term='tips'/><category term='prototype'/><category term='google'/><title type='text'>Tiny Tiger's Cave</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tinytigerscave.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tinytigerscave.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>tinytiger</name><uri>http://www.blogger.com/profile/12627505993597330289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-323303896831619875.post-2075835230865019150</id><published>2009-04-24T01:54:00.000-07:00</published><updated>2009-05-19T01:29:44.698-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='seo'/><category scheme='http://www.blogger.com/atom/ns#' term='tips'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><title type='text'>Google results in other countries</title><content type='html'>Also nice to know: If you want to see country specific Google search results, navigate to &lt;br /&gt;&lt;br /&gt;https://adwords.google.com/select/AdTargetingPreviewTool&lt;br /&gt;&lt;br /&gt;You can choose a country, a specific area or even geo coordinates!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/323303896831619875-2075835230865019150?l=tinytigerscave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tinytigerscave.blogspot.com/feeds/2075835230865019150/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://tinytigerscave.blogspot.com/2009/04/google-results-in-other-countries.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/2075835230865019150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/2075835230865019150'/><link rel='alternate' type='text/html' href='http://tinytigerscave.blogspot.com/2009/04/google-results-in-other-countries.html' title='Google results in other countries'/><author><name>tinytiger</name><uri>http://www.blogger.com/profile/12627505993597330289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-323303896831619875.post-5970207711570105537</id><published>2009-04-23T01:13:00.000-07:00</published><updated>2009-04-23T01:16:49.960-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tips'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><title type='text'>Direct Google Link</title><content type='html'>Nice to know: Who wants to go directly to Google's international homepage from a non-US conuntry, can just enter www.google.com/ncr. "ncr" stands for "no country redirect". Voila!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/323303896831619875-5970207711570105537?l=tinytigerscave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tinytigerscave.blogspot.com/feeds/5970207711570105537/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://tinytigerscave.blogspot.com/2009/04/direct-google-link.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/5970207711570105537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/5970207711570105537'/><link rel='alternate' type='text/html' href='http://tinytigerscave.blogspot.com/2009/04/direct-google-link.html' title='Direct Google Link'/><author><name>tinytiger</name><uri>http://www.blogger.com/profile/12627505993597330289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-323303896831619875.post-8690465046261279208</id><published>2009-03-13T12:01:00.000-07:00</published><updated>2009-03-13T12:06:07.792-07:00</updated><title type='text'>Display calendar weeks in google calendar</title><content type='html'>I like to use google calendar to organize my schedules. Its is easy to use, always available and has a lot of functions under the surface if you need something more advanced.&lt;br /&gt;&lt;br /&gt;The following is a small tip how to show calendar weeks (german: Kalenderwochen oder KW) in Google. Just add the following publich calendar to your account:&lt;br /&gt;&lt;br /&gt;http://www.google.com/calendar/feeds/g0k1sv1gsdief8q28kvek83ps4%40group.calendar.google.com/public/basic&lt;br /&gt;&lt;br /&gt;Thats it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/323303896831619875-8690465046261279208?l=tinytigerscave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tinytigerscave.blogspot.com/feeds/8690465046261279208/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://tinytigerscave.blogspot.com/2009/03/display-calendar-weeks-in-google.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/8690465046261279208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/8690465046261279208'/><link rel='alternate' type='text/html' href='http://tinytigerscave.blogspot.com/2009/03/display-calendar-weeks-in-google.html' title='Display calendar weeks in google calendar'/><author><name>tinytiger</name><uri>http://www.blogger.com/profile/12627505993597330289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-323303896831619875.post-8036324231359371597</id><published>2009-03-03T02:16:00.000-08:00</published><updated>2009-03-03T02:20:41.222-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='tips'/><title type='text'>Deleting a lot of files</title><content type='html'>In Linux, if you want to delete the content of a directory with many files, you might try&lt;br /&gt;&lt;br /&gt;&lt;code&gt;rm *&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and get the response &lt;br /&gt;&lt;br /&gt;&lt;code&gt;/bin/rm: Argument list too long.&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This is the way to quickly delete a lot of files which I prefer:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;find . -type f -delete&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;or if you want to print the names of the files during deletion:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;find . -type d -print -delete&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/323303896831619875-8036324231359371597?l=tinytigerscave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tinytigerscave.blogspot.com/feeds/8036324231359371597/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://tinytigerscave.blogspot.com/2009/03/deleting-lot-of-files.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/8036324231359371597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/8036324231359371597'/><link rel='alternate' type='text/html' href='http://tinytigerscave.blogspot.com/2009/03/deleting-lot-of-files.html' title='Deleting a lot of files'/><author><name>tinytiger</name><uri>http://www.blogger.com/profile/12627505993597330289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-323303896831619875.post-7885657524262686434</id><published>2009-02-20T04:40:00.001-08:00</published><updated>2009-02-20T05:40:04.275-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ranting'/><title type='text'>Please don't use "my" Variables</title><content type='html'>Please, dear Programmer, please don't use Variables with a "my" Prefix. It seems to be kind of a well established custom to prefix a class name with a "my" to name a variable. "mySprite", "myTimer", "myTwenn".. What sense does it make? Can't you think of a more significant name like "ballonSprite" or just "balloon"? "animationTimer", "rotationTween".. You even should not make the class name part of the variable's name every time.&lt;br /&gt;&lt;br /&gt;If it has to be myTween, do you also write myNumber, myString. Why dont you write yourTween, that would at least more polite - "my" seems so selfish. Honestly, if you buy a car, do you refer to it as myCar? Is the banana you are eating "myBanana". And you dont just have diarrhea but myDiarrhea?&lt;br /&gt;&lt;br /&gt;Think about that for a while and please be more creative with your variable names.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/323303896831619875-7885657524262686434?l=tinytigerscave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tinytigerscave.blogspot.com/feeds/7885657524262686434/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://tinytigerscave.blogspot.com/2009/02/please-dont-use-my-variables.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/7885657524262686434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/7885657524262686434'/><link rel='alternate' type='text/html' href='http://tinytigerscave.blogspot.com/2009/02/please-dont-use-my-variables.html' title='Please don&apos;t use &quot;my&quot; Variables'/><author><name>tinytiger</name><uri>http://www.blogger.com/profile/12627505993597330289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-323303896831619875.post-3355662703748600321</id><published>2009-02-20T04:01:00.000-08:00</published><updated>2009-02-20T05:39:29.406-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='actionscript as3 flash tweens'/><title type='text'>Tweens and Adobe Flash's nasty garbage collection</title><content type='html'>These days I started with my first bigger Flash application using Actionscript 3 and so far everything worked fine. Actionscript 3 has many advantages over Actionscript 2 that makes me far more productive. I dont want to dig into that further but a very good introductory &lt;a href="http://www.insideria.com/2008/01/actionscript-30-is-it-hard-or.html" target="_blank"&gt;comparison of AS2 and AS3&lt;/a&gt; was created by &lt;a href="http://www.oreillynet.com/pub/au/568" target="_blank"&gt;Colin Moock.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As I said, everything worked fine so far and I was happy working with a rather mature scripting language that gives me much less headache than actionscript 2. But then I came across a strange problem. My application uses tweens to animate some Sprites in parallel. Using the Tween Class, everything was smooth on the local flash player, but once I viewed it in my browser, strange things started to happen. Some of the tweens just stopped in the middle, some didn't start at all, my sprites very stuck in varios states of unfinished animations. And all this happened very unpredictable. I took me a while to find the origin of these problems: Flash's garbage collection!&lt;br /&gt;&lt;br /&gt;In Flash, all objects that have no active reference within the running program, become candidates for garbage collection. When this garbage collection will happen is unpredictable, it is managed internally by the flash player and can not be started programmatically.&lt;br /&gt;&lt;br /&gt;Thats what happened to my tweens, which I created as local variables in a function. Suddenly, while they were running, Flash decided that its time to clean up a bit and removed them.  This somehow contradicts my intuition - I would have expected that Flash wouldn't delete a running tween. But it makes sense and when you know it, you just have to take care that your tweens stay reachable during they are executed.&lt;br /&gt;&lt;br /&gt;Solution: don't use local variables for tweens but class instance variables.&lt;br /&gt;&lt;br /&gt;Instead of&lt;br /&gt;&lt;code&gt;&lt;br /&gt; public class ExampleTweenClass extends Sprite {&lt;br /&gt;   public function ExampleTweenClass () {&lt;br /&gt;     var tween:Tween = new Tween(this, "x", Strong.easeOut, 0, 100, 3, true);&lt;br /&gt;   }&lt;br /&gt; }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;use a class instance variable&lt;br /&gt;&lt;code&gt;&lt;br /&gt; public class ExampleTweenClass extends Sprite {&lt;br /&gt;   private var tween:Tween;&lt;br /&gt;&lt;br /&gt;   public function ExampleTweenClass () {&lt;br /&gt;     tween = new Tween(this, "x", Strong.easeOut, 0, 100, 3, true);&lt;br /&gt;   }&lt;br /&gt; }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Problem solved.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/323303896831619875-3355662703748600321?l=tinytigerscave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tinytigerscave.blogspot.com/feeds/3355662703748600321/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://tinytigerscave.blogspot.com/2009/02/tweens-and-adobe-flashs-nasty-garbage.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/3355662703748600321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/3355662703748600321'/><link rel='alternate' type='text/html' href='http://tinytigerscave.blogspot.com/2009/02/tweens-and-adobe-flashs-nasty-garbage.html' title='Tweens and Adobe Flash&apos;s nasty garbage collection'/><author><name>tinytiger</name><uri>http://www.blogger.com/profile/12627505993597330289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-323303896831619875.post-1089838974490406802</id><published>2009-01-11T03:27:00.000-08:00</published><updated>2009-01-11T03:43:32.359-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='prototype'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>Clear text input field on focus</title><content type='html'>On many sites we see a feature where a text input field, mostly a search field, is pre-filled with a text like "Enter your search term here". On focus, this text field is emptied and sometimes also changes the style. Here is my simple solution to this, using the &lt;a href="http://www.prototypejs.org/"&gt;Prototype&lt;/a&gt; Javascript library:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&amp;lt;script src="prototype.js" type="text/javascript"&amp;gt;&lt;/code&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;/script&lt;/code&gt;&lt;code&gt;&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script src="clearonfocus.js" type="text/javascript"&lt;/code&gt;&lt;code&gt;&amp;gt;&lt;/code&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;/script&lt;/code&gt;&lt;code&gt;&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;....clearonfocus.js :&lt;br /&gt;&lt;br /&gt;init = function (){&lt;br /&gt;&lt;br /&gt;if ($$('.clearonfocus')){&lt;br /&gt;  $$('.clearonfocus').map( function(element){&lt;br /&gt;      element.observe('click', function(event){&lt;br /&gt;          var element = Event.element(event);&lt;br /&gt;          element.removeClassName('clearonfocus');&lt;br /&gt;          element.writeAttribute('value', '');&lt;br /&gt;      });&lt;br /&gt;    });&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Event.observe(window, 'load', init, false);&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;After the document has loaded, the desired functionality is added to each text input field with the CSS class 'clearonfocus'. In your CSS file, you can define any style you want to that pre-filled state of the text field, like gray color etc.&lt;br /&gt;&lt;br /&gt;On click, the text field is emptied and the class is removed.&lt;br /&gt;&lt;br /&gt;This seems to work pretty well!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/323303896831619875-1089838974490406802?l=tinytigerscave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tinytigerscave.blogspot.com/feeds/1089838974490406802/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://tinytigerscave.blogspot.com/2009/01/clear-text-input-field-on-focus.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/1089838974490406802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/323303896831619875/posts/default/1089838974490406802'/><link rel='alternate' type='text/html' href='http://tinytigerscave.blogspot.com/2009/01/clear-text-input-field-on-focus.html' title='Clear text input field on focus'/><author><name>tinytiger</name><uri>http://www.blogger.com/profile/12627505993597330289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
