<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.4" -->
<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/"
	>

<channel>
	<title>~flupps</title>
	<link>http://www.flupps.org</link>
	<description>(I wanna be emo too)</description>
	<pubDate>Thu, 15 Nov 2007 20:57:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>
	<language>en</language>
			<item>
		<title>Keeping a second table in sync with a main table</title>
		<link>http://www.flupps.org/2007/11/15/keeping-a-second-table-in-sync-with-a-main-table/</link>
		<comments>http://www.flupps.org/2007/11/15/keeping-a-second-table-in-sync-with-a-main-table/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 20:45:18 +0000</pubDate>
		<dc:creator>flupps</dc:creator>
		
	<category>MySQL</category>
		<guid isPermaLink="false">http://www.flupps.org/2007/11/15/keeping-a-second-table-in-sync-with-a-main-table/</guid>
		<description><![CDATA[Sometimes you may want all changes recorded to another table and keep them in sync.
There are of course a few different ways of doing this, you could play with binlogs and such. I got asked by a course attendee to do it in a specific way using triggers, so I wrote this up, and it [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may want all changes recorded to another table and keep them in sync.<br />
There are of course a few different ways of doing this, you could play with binlogs and such. I got asked by a course attendee to do it in a specific way using triggers, so I wrote this up, and it should work: <code /></p>
<p><code>mysql> CREATE TABLE t1 ( a INT, b CHAR(5) );<br />
Query OK, 0 rows affected (0.02 sec)</code></p>
<p><code>mysql> CREATE TABLE t2 ( a INT, b CHAR(5) );<br />
Query OK, 0 rows affected (0.01 sec)</code></p>
<p><code>mysql> CREATE TRIGGER trg1 AFTER INSERT ON t1 FOR EACH ROW<br />
->   INSERT INTO t2 VALUES (NEW.a, NEW.b);<br />
Query OK, 0 rows affected (0.01 sec)</code></p>
<p><code>mysql> CREATE TRIGGER trg2 AFTER DELETE ON t1 FOR EACH ROW<br />
->   DELETE FROM t2 WHERE a = OLD.a AND b = OLD.b LIMIT 1;<br />
Query OK, 0 rows affected (0.00 sec)</code></p>
<p><code>mysql> CREATE TRIGGER trg3 AFTER UPDATE ON t1 FOR EACH ROW<br />
->   UPDATE t2 SET a = NEW.a, b = NEW.b WHERE a = OLD.a AND b = OLD.b LIMIT 1;<br />
Query OK, 0 rows affected (0.00 sec)</code></p>
<p><code>mysql> INSERT INTO t1 VALUES (1, 'a');<br />
Query OK, 1 row affected (0.00 sec)</code></p>
<p><code>mysql> INSERT INTO t1 VALUES (2, 'a');<br />
Query OK, 1 row affected (0.00 sec)</code></p>
<p><code>mysql> INSERT INTO t1 VALUES (2, 'b');<br />
Query OK, 1 row affected (0.00 sec)</code></p>
<p><code>mysql> INSERT INTO t1 VALUES (2, 'b');<br />
Query OK, 1 row affected (0.00 sec)</code></p>
<p><code>mysql> INSERT INTO t1 VALUES (2, 'b');<br />
Query OK, 1 row affected (0.00 sec)</code></p>
<p><code>mysql> DELETE FROM t1 WHERE a = 1;<br />
Query OK, 1 row affected (0.00 sec)</code></p>
<p><code>mysql> UPDATE t1 SET a = 1 WHERE b = 'b' LIMIT 1;<br />
Query OK, 1 row affected (0.00 sec)<br />
Rows matched: 1  Changed: 1  Warnings: 0</code></p>
<p><code>                mysql> SELECT * FROM t1;<br />
+---+---+<br />
| a    | b    |<br />
+---+---+<br />
|    2 | a    |<br />
|    1 | b    |<br />
|    2 | b    |<br />
|    2 | b    |<br />
+---+---+<br />
4 rows in set (0.00 sec)                  mysql> SELECT * FROM t2;<br />
+---+---+<br />
| a    | b    |<br />
+---+---+<br />
|    2 | a    |<br />
|    1 | b    |<br />
|    2 | b    |<br />
|    2 | b    |<br />
+---+---+<br />
4 rows in set (0.00 sec)   </code>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.flupps.org/2007/11/15/keeping-a-second-table-in-sync-with-a-main-table/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>If I ever get the IRC twitch and no computer is close</title>
		<link>http://www.flupps.org/2007/07/25/if-i-ever-get-the-irc-twitch-and-no-computer-is-close/</link>
		<comments>http://www.flupps.org/2007/07/25/if-i-ever-get-the-irc-twitch-and-no-computer-is-close/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 05:45:32 +0000</pubDate>
		<dc:creator>flupps</dc:creator>
		
	<category>Geeky</category>
		<guid isPermaLink="false">http://www.flupps.org/2007/07/25/if-i-ever-get-the-irc-twitch-and-no-computer-is-close/</guid>
		<description><![CDATA[Nice to have putty on the cellphone to ssh home over 3G and irc. Unfortunately the keys you use a lot on *nix systems are some 16-20 key presses in on the special symbol button ( / * ; : etc).


]]></description>
			<content:encoded><![CDATA[<p>Nice to have putty on the cellphone to ssh home over 3G and irc. Unfortunately the keys you use a lot on *nix systems are some 16-20 key presses in on the special symbol button ( / * ; : etc).</p>
<p><img title="Putty running on Nokia's N95" alt="Putty running on Nokia's N95" src="http://www.flupps.org/pics/n95-putty.jpg" />
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.flupps.org/2007/07/25/if-i-ever-get-the-irc-twitch-and-no-computer-is-close/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Maybe time to replace the harddrive in my laptop&#8230;</title>
		<link>http://www.flupps.org/2007/03/16/maybe-time-to-replace-the-harddrive-in-my-laptop/</link>
		<comments>http://www.flupps.org/2007/03/16/maybe-time-to-replace-the-harddrive-in-my-laptop/#comments</comments>
		<pubDate>Fri, 16 Mar 2007 16:22:59 +0000</pubDate>
		<dc:creator>flupps</dc:creator>
		
	<category>Geeky</category>
		<guid isPermaLink="false">http://www.flupps.org/2007/03/16/maybe-time-to-replace-the-harddrive-in-my-laptop/</guid>
		<description><![CDATA[Mar 16 17:01:49 flupps KernelEventAgent[61]: tid 00000000 received unknown event (256)
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).
Mar 16 17:01:49 [...]]]></description>
			<content:encoded><![CDATA[<p>Mar 16 17:01:49 flupps KernelEventAgent[61]: tid 00000000 received unknown event (256)<br />
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).<br />
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).<br />
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).<br />
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).<br />
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).<br />
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).<br />
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).<br />
Mar 16 17:01:49 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).<br />
Mar 16 17:02:01 flupps kernel[0]: disk0s3: 0xe0030005 (UNDEFINED).</p>
<p>I hate taking backups and stuff like that, there&#8217;s always something you forget, or some setting that is stored in some obscure place&#8230;
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.flupps.org/2007/03/16/maybe-time-to-replace-the-harddrive-in-my-laptop/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>I think I owe someone a beer&#8230;</title>
		<link>http://www.flupps.org/2007/03/09/i-think-i-owe-someone-a-beer/</link>
		<comments>http://www.flupps.org/2007/03/09/i-think-i-owe-someone-a-beer/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 11:34:15 +0000</pubDate>
		<dc:creator>flupps</dc:creator>
		
	<category>MySQL</category>
	<category>PlanetMySQL</category>
		<guid isPermaLink="false">http://www.flupps.org/2007/03/09/i-think-i-owe-someone-a-beer/</guid>
		<description><![CDATA[&#8230;whoever wrote this patch:
Server version: 5.0.33-log flupps build (probably not stable&#8230;)
Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.
mysql> use world;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> SELECT * FROM country, city, city c, city c2, [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;whoever wrote this patch:</p>
<p>Server version: 5.0.33-log flupps build (probably not stable&#8230;)</p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql> use world;<br />
Reading table information for completion of table and column names<br />
You can turn off this feature to get a quicker startup with -A</p>
<p>Database changed<br />
mysql> SELECT * FROM country, city, city c, city c2, city c3;<br />
^CQuery aborted by Ctrl+C<br />
ERROR 1317 (70100): Query execution was interrupted<br />
mysql></p>
<p>It doesn&#8217;t abort the client to Control-C now, just the query&#8230;<br />
Swwwweeeeeeetttttt&#8230;&#8230;.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.flupps.org/2007/03/09/i-think-i-owe-someone-a-beer/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Sorting US Address Data.</title>
		<link>http://www.flupps.org/2007/02/01/sorting-us-address-data/</link>
		<comments>http://www.flupps.org/2007/02/01/sorting-us-address-data/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 19:34:39 +0000</pubDate>
		<dc:creator>flupps</dc:creator>
		
	<category>Geeky</category>
	<category>MySQL</category>
	<category>PlanetMySQL</category>
		<guid isPermaLink="false">http://www.flupps.org/2007/02/01/sorting-us-address-data/</guid>
		<description><![CDATA[So, in Europe the street name comes first, then the number of the building.
In the US the number of the building comes first, then the actual street, which makes it a little bit rougher to sort.
Imagine a table like this:
mysql> SELECT * FROM numsort;
+&#8212;&#8212;+
&#124; a    &#124;
+&#8212;&#8212;+
&#124; 5    &#124;
&#124; a [...]]]></description>
			<content:encoded><![CDATA[<p>So, in Europe the <a title="Address Formats" target="_blank" href="http://www.bitboost.com/ref/international-address-formats.html">street name comes first</a>, then the number of the building.<br />
In the US the number of the building comes first, then the actual street, which makes it a little bit rougher to sort.</p>
<p>Imagine a table like this:</p>
<blockquote><p>mysql> SELECT * FROM numsort;</p></blockquote>
<blockquote><p>+&#8212;&#8212;+<br />
| a    |<br />
+&#8212;&#8212;+<br />
| 5    |<br />
| a    |<br />
| 2    |<br />
| d    |<br />
| 22   |<br />
| c    |<br />
| 33   |<br />
| 3    |<br />
+&#8212;&#8212;+<br />
8 rows in set (0.00 sec)</p></blockquote>
<p>The desired order in this case would be 2, 3, 5, 22, 33, a, b, c, d.</p>
<blockquote><p>mysql> SELECT * FROM numsort ORDER BY a;<br />
+&#8212;&#8212;+<br />
| a    |<br />
+&#8212;&#8212;+<br />
| 2    |<br />
| 22   |<br />
| 3    |<br />
| 33   |<br />
| 5    |<br />
| a    |<br />
| c    |<br />
| d    |<br />
+&#8212;&#8212;+<br />
8 rows in set (0.00 sec)</p></blockquote>
<p>Ok, we&#8217;re far from what we&#8217;re looking for here&#8230;<br />
Let&#8217;s <a title="Cast Functions" target="_blank" href="http://dev.mysql.com/doc/refman/4.1/en/cast-functions.html">cast</a> it to a numeric, even if it&#8217;s a character, each character will then be converted to a 0 and generate a warning:</p>
<blockquote><p>mysql> SELECT * FROM numsort ORDER BY CAST(a AS UNSIGNED);<br />
+&#8212;&#8212;+<br />
| a    |<br />
+&#8212;&#8212;+<br />
| a    |<br />
| d    |<br />
| c    |<br />
| 2    |<br />
| 3    |<br />
| 5    |<br />
| 22   |<br />
| 33   |<br />
+&#8212;&#8212;+<br />
8 rows in set, 3 warnings (0.00 sec)</p></blockquote>
<blockquote><p>| Warning | 1292 | Truncated incorrect INTEGER value: &#8216;a&#8217; |</p></blockquote>
<p>Ok, getting closer, the numbers are ok, and the characters first, but there&#8217;s no ordering internally for the numbers, and we&#8217;re getting warnings that aren&#8217;t pretty.<br />
Something like a IS_NUMERIC() function would be nice here&#8230;</p>
<p>Fortunately (?) you can take a string + 0 to get the same effect, but for some reason it doesn&#8217;t generate a warning (not sure it&#8217;s good, but for this example I guess it works&#8230;).</p>
<p>So, let&#8217;s put numerics first, then the characters:</p>
<blockquote><p>mysql> SELECT a FROM numsort ORDER BY a+0 = 0, a+0;<br />
+&#8212;&#8212;+<br />
| a    |<br />
+&#8212;&#8212;+<br />
| 2    |<br />
| 3    |<br />
| 5    |<br />
| 22   |<br />
| 33   |<br />
| a    |<br />
| d    |<br />
| c    |<br />
+&#8212;&#8212;+<br />
8 rows in set (0.00 sec)</p></blockquote>
<p>Our characters aren&#8217;t sorted here, though, so let&#8217;s add that to the sort list as well:</p>
<p>mysql> SELECT a FROM numsort ORDER BY a+0 = 0, a+0, a;</p>
<blockquote><p>+&#8212;&#8212;+<br />
| a    |<br />
+&#8212;&#8212;+<br />
| 2    |<br />
| 3    |<br />
| 5    |<br />
| 22   |<br />
| 33   |<br />
| a    |<br />
| c    |<br />
| d    |<br />
+&#8212;&#8212;+<br />
8 rows in set (0.00 sec)</p></blockquote>
<p>So&#8230; we&#8217;re putting characters here as 0, what happens if something would have an address starting with a 0?</p>
<p>mysql> INSERT INTO numsort VALUES (0);<br />
Query OK, 1 row affected (0.00 sec)</p>
<p>mysql> SELECT a FROM numsort ORDER BY a+0 = 0, a+0, a;</p>
<blockquote><p>+&#8212;&#8212;+<br />
| a    |<br />
+&#8212;&#8212;+<br />
| 2    |<br />
| 3    |<br />
| 5    |<br />
| 22   |<br />
| 33   |<br />
| 0    |<br />
| a    |<br />
| c    |<br />
| d    |<br />
+&#8212;&#8212;+<br />
9 rows in set (0.00 sec)</p></blockquote>
<p>Bah&#8230;<br />
Ok, let&#8217;s <a title="Freestyle..." target="_blank" href="http://www.secondtonone.com/images/photos/freestyle%2085/1freestyle85.jpg">freestyle</a> a bit more&#8230; Let&#8217;s do a comparison, before the conversion - that&#8217;s the only way we can find if it&#8217;s 0 or a string, at least quickly&#8230;</p>
<blockquote><p>mysql> INSERT INTO numsort VALUES (0);<br />
Query OK, 1 row affected (0.00 sec)</p></blockquote>
<blockquote><p>mysql> SELECT a FROM numsort ORDER BY IF(a = 0, 0, 1), a+0 = 0, a+0, a;<br />
+&#8212;&#8212;+<br />
| a    |<br />
+&#8212;&#8212;+<br />
| 0    |<br />
| a    |<br />
| c    |<br />
| d    |<br />
| 2    |<br />
| 3    |<br />
| 5    |<br />
| 22   |<br />
| 33   |<br />
+&#8212;&#8212;+<br />
9 rows in set (0.00 sec)</p></blockquote>
<p>Ok, that didn&#8217;t work&#8230; why not? - AH! a=0 actually converts it to a number, since we&#8217;re doing a numeric comparison&#8230; I guess we could check if our 0 is a string or not&#8230; Since a numeric 0 will actually compare to the string &#8216;0&#8242; as true (god, this is starting to get <a title="ugly..." target="_blank" href="http://www.doggienews.com/uploaded_images/rascal-worlds-ugliest-dog-747829.jpg">ugly</a>&#8230;)</p>
<blockquote><p>mysql> SELECT a FROM numsort ORDER BY IF(a = &#8216;0&#8242;, 0, 1), a+0 = 0, a+0, a;<br />
+&#8212;&#8212;+<br />
| a    |<br />
+&#8212;&#8212;+<br />
| 0    |<br />
| 2    |<br />
| 3    |<br />
| 5    |<br />
| 22   |<br />
| 33   |<br />
| a    |<br />
| c    |<br />
| d    |<br />
+&#8212;&#8212;+<br />
9 rows in set (0.00 sec)</p></blockquote>
<p>And to get rid of the IF() and make it shorter:</p>
<blockquote><p>mysql> SELECT a FROM numsort ORDER BY a <> &#8216;0&#8242;, a+0 = 0, a+0, a;<br />
+&#8212;&#8212;+<br />
| a    |<br />
+&#8212;&#8212;+<br />
| 0    |<br />
| 2    |<br />
| 3    |<br />
| 5    |<br />
| 22   |<br />
| 33   |<br />
| a    |<br />
| c    |<br />
| d    |<br />
+&#8212;&#8212;+<br />
9 rows in set (0.00 sec)</p></blockquote>
<p>I got to admit, though&#8230;</p>
<p>This makes me feel <a title="dirty martini..." target="_blank" href="http://tn3-1.deviantart.com/300W/images3.deviantart.com/i/2005/155/3/5/Martini_by_Bnimble.jpg">dirty</a>&#8230;
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.flupps.org/2007/02/01/sorting-us-address-data/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Desperate for Connectivity</title>
		<link>http://www.flupps.org/2006/09/29/desperate-connectivity/</link>
		<comments>http://www.flupps.org/2006/09/29/desperate-connectivity/#comments</comments>
		<pubDate>Fri, 29 Sep 2006 14:40:01 +0000</pubDate>
		<dc:creator>flupps</dc:creator>
		
	<category>Geeky</category>
		<guid isPermaLink="false">http://www.flupps.org/2006/09/29/desperate-connectivity/</guid>
		<description><![CDATA[Was just going back home after being out for a while the other day and I saw this in my stairs:


]]></description>
			<content:encoded><![CDATA[<p>Was just going back home after being out for a while the other day and I saw this in my stairs:</p>
<p><img align="middle" alt="Desperate Connectivity" title="Desperate Connectivity" src="http://www.flupps.org/blogimg/rfcable.jpg" />
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.flupps.org/2006/09/29/desperate-connectivity/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Tic toc tic kets</title>
		<link>http://www.flupps.org/2006/08/31/tic-toc-tic-kets/</link>
		<comments>http://www.flupps.org/2006/08/31/tic-toc-tic-kets/#comments</comments>
		<pubDate>Thu, 31 Aug 2006 19:11:52 +0000</pubDate>
		<dc:creator>flupps</dc:creator>
		
	<category>Music</category>
		<guid isPermaLink="false">http://www.flupps.org/2006/08/31/tic-toc-tic-kets/</guid>
		<description><![CDATA[
Now I just have to find some people to go with.

]]></description>
			<content:encoded><![CDATA[<p><img align="middle" alt="Red hot chili peppers concert tickets" title="Red hot chili peppers concert tickets" src="http://www.flupps.org/blogimg/rhcp.jpg" /></p>
<p>Now I just have to find some people to go with.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.flupps.org/2006/08/31/tic-toc-tic-kets/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Blink: The Power of Thinking Without Thinking</title>
		<link>http://www.flupps.org/2006/08/07/blink-the-power-of-thinking-without-thinking-malcolm-gladwell-review/</link>
		<comments>http://www.flupps.org/2006/08/07/blink-the-power-of-thinking-without-thinking-malcolm-gladwell-review/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 10:08:57 +0000</pubDate>
		<dc:creator>flupps</dc:creator>
		
	<category>Books</category>
		<guid isPermaLink="false">http://www.flupps.org/2006/08/07/blink-the-power-of-thinking-without-thinking-malcolm-gladwell-review/</guid>
		<description><![CDATA[You ever been in the situation where something makes you feel uneasy about a person or situation, but you stayed in it, and after being with that person or in that situation longer, you started feeling more comfortable.
Then a long time later something bad happens and you wish you would have listened to that initial [...]]]></description>
			<content:encoded><![CDATA[<p><img align="right" alt="Blink!" title="Blink!" src="http://www.flupps.org/blogimg/blink.jpg" />You ever been in the situation where something makes you feel uneasy about a person or situation, but you stayed in it, and after being with that person or in that situation longer, you started feeling more comfortable.<br />
Then a long time later something bad happens and you wish you would have listened to that initial reaction?<br />
Or, when you are about to buy something - you feel strongly for one brand or one model, but do more research and the research gets you to pick something else, then later on the thing you passed on becomes a really popular item?<br />
That&#8217;s what this book is about.<br />
Just like the examples above, if you think, by now, that this would be interesting, get the book, don&#8217;t read more - it may ruin your judgement about this book.<br />
<a id="more-6"></a></p>
<p>So, by now you&#8217;re not interested in the book, so now I can explain what it&#8217;s about.</p>
<p>It&#8217;s written by  Malcolm Gladwell who also wrote the book Tipping Point (I may just have to get this one later).</p>
<p>I picked this book up at the Heathrow airport when I realized that I had forgotten to bring the book I was supposed to read next at home.<br />
I picked it as the last book out of a &#8220;pick 3, pay for 2&#8243; deal, but I started reading it before any of the other books I got at the same occasion.<br />
Orie is reading this for her English class, so since she had talked about it, and I saw it at the store I was browsing books at, and also needed a third book for my 3 for 2 deal - my snap decision was to buy it.</p>
<p>The book is about how your subsecond first &#8220;gut feelings&#8221; can actually be more accurate than even years of research on something - especially if you&#8217;re an expert on the area to start with.</p>
<p>He starts out with an example of a very old art statue that a museum is evaluating if they want to buy. They do all kinds of tests on it to make sure it&#8217;s not fake. They run tests on the surface, they do everything.<br />
After years or tests and research they find out that the object just has to be authentic.<br />
Later on they bring an expert into the room, and after just looking at it for a second, the expert knows it&#8217;s a fake. Can&#8217;t say why or what&#8217;s wrong, but just knows.<br />
This book is about how a part of our brain is handling a lot of data at insane speeds in our subconscious to help us get by in day to day tasks without having to stop by and process all possible information before taking action.</p>
<p>I remember back when I was doing sports a lot, I was sitting down after the games trying to understand why in certain situations I was doing a cross forehand instead of a straight or why I decided to do certain things in certain parts of the match, but if I sat down and analyzed what I should have done, I came to a different conclusion - so in the next game I tried that, and it ended up worse. Why? With my experience I should be able to predict, with enough time, the best course of action for a certain situation.<br />
The problem with this of course, is that out of the hundreds of thousand (or millions?) of times that I&#8217;d hit the ball over the net, my brain has subconsciously made statistics about what works, and without actually thinking in most situations I just reactionally hit the ball a certain way.</p>
<p>This processing is interesting, because it takes things into consideration that we can&#8217;t really put into words, sometimes you can realize you don&#8217;t feel comfortable about a situation or person, but can&#8217;t explain why, but your subconscious picked up on something from something in this waste amount of data that references to a bad experience or similar in the past.</p>
<p>The book is filled with anecdotes for example the New Coke, Aeron Chair, sports references and unfortunately some mishaps with police men during stress to show an example when this split second judgement fails when your heart rate goes too high.</p>
<p>The one I liked the most was a big war simulation program that was written in the US in the early years of the millenium where they simulated a battle in the middle east.<br />
The blue side (US and allies) had access to all kinds of information systems and intelligence. For the red side they took in a retired General from the Vietnam days whos trademark was that he was always in the field and put his men in training even during the days of war - but this side was relying on less verbose systems and information.<br />
It ended up showing that if you spend too much time analyzing, you can actually make bad decisions because you trust your external data much more than your experience data that you can&#8217;t read, but your brain can process.</p>
<p>A scary example of this is if you go to the <a title="Implicit Association Test" target="_blank" href="https://implicit.harvard.edu/implicit/demo/selectatest.jsp">Implicit Association Test website</a>.<br />
I will not admit to being racist or discriminating consciously in any situation, and for everyone that is like me, this page can be a harsh realization about how our subconscious process data.<br />
It&#8217;s a pretty easy test based on a reaction test where we put things into two columns, one column is Good and one is Bad, for example. Then we&#8217;re fed words that are either positive and negative and we put them in the appropriate column.<br />
Then we add another layer to this, so that we put either positive words and pictures of old people in one column, and negative words and pictures of young people in the same column.<br />
Then we turn this around and put old people and negative words in the same column. The test measures your response time and in those &#8220;hidden&#8221; discriminative cases the brain process it slower to put some of those together.<br />
Apparently I associate scientific jobs with men slightly more than Artsy jobs, I have a slight bias towards younger people than old people.<br />
When it comes to work vs. family with men and women, I actually didn&#8217;t show bias towards any gender for being a provider versus taking care of the family, which I credit the way it&#8217;s been in Sweden while I&#8217;ve been growing up with increased minister and leader positions in companies being held by women.<br />
It&#8217;s quite easy to trick your brain for this kind of tests, however. The book uses an example of a test where you have a racial bias - by reading newspaper articles about people of the group that you have a bias against and for that puts them in an opposite light for a long time, then do the test again, your reaction times will change.<br />
I liked this book quite a bit, was engulfed by it for the most part of my plane trip back from India and nicely finished it up 10 minutes before the train pulled in at my home town station.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.flupps.org/2006/08/07/blink-the-power-of-thinking-without-thinking-malcolm-gladwell-review/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Anthony Kiedis - Scar Tissue</title>
		<link>http://www.flupps.org/2006/07/29/anthony-kiedis-scar-tissue/</link>
		<comments>http://www.flupps.org/2006/07/29/anthony-kiedis-scar-tissue/#comments</comments>
		<pubDate>Sat, 29 Jul 2006 08:11:03 +0000</pubDate>
		<dc:creator>flupps</dc:creator>
		
	<category>Books</category>
		<guid isPermaLink="false">http://www.flupps.org/2006/07/29/anthony-kiedis-scar-tissue/</guid>
		<description><![CDATA[ I&#8217;ve been reading this book now for a while during travels. I picked it up sometime in June in London and have been just paging through is slowly.
It&#8217;s a biography co-written with Larry Sloman and covers the time from before Anthony was born and up until the fall 2004.
It&#8217;s basically a story about sex, [...]]]></description>
			<content:encoded><![CDATA[<p><img align="right" alt="Scar Tissue Cover" title="Scar Tissue Cover" src="http://www.flupps.org/blogimg/scar_tissue.jpg" /> I&#8217;ve been reading this book now for a while during travels. I picked it up sometime in June in London and have been just paging through is slowly.</p>
<p>It&#8217;s a biography co-written with Larry Sloman and covers the time from before Anthony was born and up until the fall 2004.</p>
<p>It&#8217;s basically a story about sex, drugs and rock n&#8217; roll (with the major focus on drugs, drugs and a also quite a bit of sex - although not explained very graphically on the sex parts).</p>
<p>I did like the book a lot, but I&#8217;m not sure if someone that hasn&#8217;t grown up with bands like Nirvana, Pearl Jam, Red Hot Chili Peppers, Stone Temple Pilots, etc can relate to it.</p>
<p><a id="more-4"></a></p>
<p>One of the main things I love was to find out how certain songs became written and what the lyrics actually refer to. Take &#8220;<em>First time I saw you, you were sitting backstage in a dress - a perfect mess</em>&#8221; from <em>Tearjerker</em>, for example. This describes the first time he ran into Kurt Cobain.</p>
<p>The book is far from happy, though, it&#8217;s a long drawn out description of a life of relapsing into drug use, womanizing and somehow being able to focus for the crucial weeks of finishing up albums.</p>
<p>One of the strongest stories is how he trades an electric guitar signed by all the Rolling Stones members for a tiny piece of heroin that will just keep him high until the banks open so he can go and withdraw cash.</p>
<p>His womanizing tendencies throughout the book describes meetings with a smaller army of women and how he seduces them. One of the examples that shows his thoughts on the subject is this girl he&#8217;s been with for quite a few years in the start of his career. While he&#8217;s been on tour he&#8217;s been cheating on her with basically one female every gig (it&#8217;s the impression that he gives - even if it&#8217;s not spelled out fully). He later finds out that she cheated on him <strong>once</strong> and leaves her in a big fight about it.</p>
<p>There are a lot of celebrities mentioned through this book, everything from meetings with Nirvana, Pearl Jam (who gives an extremely sympathetic impression), Neil Young, Gwen Stephani (who was listening to them practive in Flea&#8217;s garage when John just re-joined the band and hadn&#8217;t played guitar for a long time), Smashing Pumpkins, Cher, Sinead O&#8217;Connor, and the list goes on almost endlessly.</p>
<p>It&#8217;s not a very flattering book, since most of it covers how he got hooked on drugs and all the stupid shit he pulled off while under the influence - but he doesn&#8217;t write about it in the style &#8220;<em>Hey, look what I did</em>&#8220;, he just calmly seems to explain what happened.</p>
<p>The book pulled me in and I got quite emotionally involved in the story, if you like the sex, drugs and rock&#8217;n'roll style - especially if you&#8217;re a RHCP fan, I&#8217;d recommend this book - If nothing else just for the pictures of the young peppers with Hillel and the awesome look of Anthony&#8217;s dad (Some of Anthony&#8217;s girlfriends are also gorgeous of course&#8230;)
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.flupps.org/2006/07/29/anthony-kiedis-scar-tissue/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>US Immigration problems</title>
		<link>http://www.flupps.org/2006/04/30/us-immigration-problems/</link>
		<comments>http://www.flupps.org/2006/04/30/us-immigration-problems/#comments</comments>
		<pubDate>Sun, 30 Apr 2006 14:11:42 +0000</pubDate>
		<dc:creator>flupps</dc:creator>
		
	<category>Travel</category>
	<category>MySQL</category>
		<guid isPermaLink="false">http://www.flupps.org/2006/04/30/us-immigration-problems/</guid>
		<description><![CDATA[In April this year I had a run-in with the US Customs and got turned around. I got permanently stripped of my rights as a EU citizen to enter the US under the VISA Waiver program. Here&#8217;s the short story about what happened. (Everything is fixed now, though, but took a lot of paperwork and [...]]]></description>
			<content:encoded><![CDATA[<p>In April this year I had a run-in with the US Customs and got turned around. I got permanently stripped of my rights as a EU citizen to enter the US under the VISA Waiver program. Here&#8217;s the short story about what happened. (Everything is fixed now, though, but took a lot of paperwork and months to fix)<br />
<a id="more-3"></a></p>
<p>After getting off my flight I walk down to the customs and immigration part of the Detroir airport, it&#8217;s been a really long day by now, I arrived at the airport hotel in Copenhagen around midnight, got some sleep and had to get up at 4:30AM to check in to my first flight of the day.<br />
I had a layover in Amsterdam as well, which was quite a few hours, but I needed it to prepare for work the following week - needless to say, after standing in lines at the airport for about an hour, 90 minutes flight to Amsterdam, then another couple of lines and lining up for the US safety checks in Amsterdam and a long layover where I force myself to stay awake not to miss my flight; I&#8217;m quite tired.</p>
<p>I get to the front of my line. I should have switched lines when I noticed that my line took longer to process, that&#8217;s never a good sign, cause it means that you have one of those pedantic agents that try to look for reasons to get you in trouble.</p>
<p>I reach the front of the line and states that I&#8217;m here to teach a training class where one of our new hires will sit in so he can teach it in the future and I won&#8217;t have to go to the US to do it.</p>
<p>She asks a bit about what kind of training, what kind of software, etc. Just like normal. She then starts to look through the stamps in my passport and makes a small comment on that there are quite a few US stamps in there. I say that we hold meetings, conferences and training in the US, so as a business man it&#8217;s not really that much, since I almost never stay more than a couple of days up to a week.</p>
<p>She says she still wants to check this out more and takes me to another room behind the whole area. There&#8217;s about three people sitting in here already, the room is made up out of a big long desk with around 6 working spots with computers. There are chairs in behind each computer, the wall behind the working desk have windows and there&#8217;s an office in there with printers and another desk. The middle of the room has a block of attached plastic chairs, approximately 40 of them, all the chairs are solidly fused together onto a big piece of metal that is fixed to the floor.</p>
<p>All the colors are in this sterile grey and dark blue (anyone ever visit US immigration/customs will know the colors).</p>
<p>On the sides of the room there are little &#8220;Interview&#8221; rooms which have a small chair for the person being &#8220;interviewed&#8221; (I&#8217;m using quotes here cause it&#8217;s more a process of interrogation than just interviewing) in wood and a big comfy high desk chair for the officer interviewing, a small flatscreen based computer and a desk. There&#8217;s not even any watches in there, so you can&#8217;t see how long they&#8217;re keeping you waiting for if you like in my case only have a clock on your cellphone (which you&#8217;re obviously not allowed to use).</p>
<p>They put me down on one of the chairs in the middle of the room. There&#8217;s 3 other people here when I arrive, one looks to be from the middle east somewhere, and two business men from Japan.</p>
<p>After a few minutes a few more people come in. One of the officers take one of those people and lead him in the arm to one of the &#8220;Interview&#8221; rooms, he lets go in a way that half pushes this man into the room and slams the door in his face, then yells through the glass of the interview room <em>&#8220;Just wait here then, and don&#8217;t come out, we&#8217;ll get to you when we feel like it, since you don&#8217;t want to answer our questions properly&#8221;</em>.</p>
<p><em>&#8220;Ah, so that&#8217;s how it works, huh&#8221;</em> I think quietly, makes me smile a bit thinking about where the &#8220;Good cop&#8221; archetype is hiding out.</p>
<p>About 3 hours pass, there&#8217;s been a heavy circulation of people in the room by now, I&#8217;d estimate the number to be around 30 people that have come in and left. The Japanese business men are long gone, the Saudi man they hassled a bit with information, I&#8217;m guessing to make sure that his passport wasn&#8217;t fake. They asked him about his father&#8217;s and mother&#8217;s lives and where he was born, if he had any best friends growing up - after each question the officer took a 10 minute break to cross reference answers with some database. They took ink fingerprints of the person and then let him go.</p>
<p>He kept asking for a phone call while he was there, cause he had friends waiting to pick him up. After about 20 minutes the officer did call his friend for him to say that he was delayed, but would be out in just a bit.</p>
<p>An indonasian lady got sent off on a plane back. I&#8217;ve not been here for about 4 hours and noone has yet spoken to me, lots of people have been through and out, and only one got departed back so far. The man they put into the room that they would talk to &#8220;when they felt like it&#8221; is long gone as well.</p>
<p>So, an officer finally calls my name up to the desk. He asks some questions, basically the same as usual, what are you doing here, what&#8217;s your job, etc. I answer same as always, that I&#8217;m here to perform business for my Swedish company doing software training. He kept asking me questions about the setup of the companies financially, the flow of money and similar things, and I said I couldn&#8217;t answer that, cause I&#8217;m a technichal worker, not with Finance or Administration. So, he asked some about MySQL AB, MySQL INC. relationships, so I said that they&#8217;re subsidiaries and I&#8217;m employed by MySQL AB. He left for about two hours.</p>
<p>The most annoying part here is that they have a lot of people waiting for them. Most are missing flights and have people waiting for them. And all they do is standing in a bunch of 7-8 officers and talk about sports or have coffee and talk about mortgages or whatever is on their mind for the moment. It just seems so arrogant.</p>
<p>After about another hour, he comes over and talks to me again, asking the same questions, I give the same answers, he doesn&#8217;t seem to happy, so he waves in another guy, that asks the same questions again. The first guy takes notes on a computer (writing about about 5 wpm).</p>
<p>All the way through this, they are watching an Internet-broadcasted stream of the last game of the season for the Detroit Basketball team, so every now and then while we&#8217;re talking they were making comments about the game and the score to eachother, and when someone was walking by, they made comments about the game to them and pointed to the bottom of their screen.</p>
<p>They keep asking the same questions over and over again, trying to angle them differently, like they&#8217;re just waiting for me to give an answer that they&#8217;re looking for.</p>
<p>After a while they leave again.</p>
<p>Now I&#8217;m alone here with another person, and there&#8217;s the two of us and about 10 officers. Their shifts seems to be ending soon, maybe of them are getting ready to leave. After a while the guy that&#8217;s been talking to me most of the time comes up and puts a paper in my hand and asks me to sign. It&#8217;s 4 sheets, he quickly opens up the last page of the stapled bunch and shows me where to sign. I ask to read what this paper is that I&#8217;m signing, because maybe I can&#8217;t agree to what it says I&#8217;ve said since I&#8217;ve been under oath if it&#8217;s been misinterpreted. He scoffs and lets me read.</p>
<p>This is basically the transcript:</p>
<p>===========================================================</p>
<p>(legal jada jada  about the visa waiver, etc)</p>
<p>Q. Do you understand what I have said to you? A: Yes</p>
<p>Q. Any statement you make must be given freely and voluntarily. Are you willing answer my questions at this time? A. Yes</p>
<p>Q. Do you swear or affirm that all the statements you are about to make are true and complete? A. Yes</p>
<p>(Name, date of birth, country here)</p>
<p>Q. Do you make any claim to being a citizen or permanent resident of the US? A. No</p>
<p>Q. Have you ever been arrested anywhere in the world? A. No</p>
<p>Q. Do you have any applications or petitions pending with the US Citizenship and Immigration Service? A. No</p>
<p>Q. Do you have any relatives who are citizens or permanent residens of the US? A. No</p>
<p>Q. What is the purpose of your trip to the U.S? A. I will training a US co-worker how to teach software training [sic]</p>
<p>Q. Who do you work for? A. MySQL AB. US company is MySQL Inc.</p>
<p>Q. Where is the company based out of A. Sweden</p>
<p>Q. What relationship do these two companies have A. They are the same</p>
<p>(At this point when I&#8217;m reading here I&#8217;m asking him what exactly this means, It doesn&#8217;t really look right - he just waves his hand in a way as to tell me that it doesn&#8217;t matter)</p>
<p>Q. What type of company is this? A. Database software</p>
<p>(Some questions about what I do for the company, how long I&#8217;ve been there, etc)</p>
<p>Q. Who is paying for your expertise in this venture? A. MySQL Inc.</p>
<p>(This one I missed while reading through, and later on this is why I think that they didn&#8217;t like me, but it&#8217;s contradictory to the next question:)</p>
<p>Q. How much will you be paid A. It&#8217;s included in my monthly salary</p>
<p>(So, if I&#8217;m employed for the Swedish company, and it&#8217;s in my salary, it means that I can&#8217;t possibly be paid by the US company&#8230; Now, I definitely should have caught this at the time of reading, but at this point I had been awake for over 24 hours and the last 13 hours I hadn&#8217;t eaten or been drinking anything, so I was extremely light headed and just wanted to get out at this point. I was also refused a phonecall, so once I started getting into trouble I could not call my boss and get backup plans started up.)</p>
<p>Q. Where was this software developed that you will be teaching A. It was developed worldwide, including the US</p>
<p>(The US part is apparently important, cause when he asked me this question during the talk, I kept saying worldwide, but he kept asking specifically about the US and I said &#8220;Worldwide&#8221; again, and he kept asking until I said &#8220;If a developer for our company is working out of the US, sure&#8221;. He asked at that point if someone currently was employed in the US as a developer, I said yes)</p>
<p>Q. Are there american workers who are capable of giving the same instrution you are? [sic] A. No one yet, after this week yes</p>
<p>(Because of the situation we had at that point I was the only one that had done this course, and I had other instructors supposed to sit in this time)</p>
<p>Q. How many times have you entered the US doing this type of work? A. Ten or Fifteen times.</p>
<p>(Derived from my answer <em>&#8220;I have no idea, ten to fifteen maybe, maybe more if you let me get my passport I can count&#8221;</em> - since they took my passport on arrival and I hadn&#8217;t seen it since)</p>
<p>Q. Has your company applied or intend to apply for a visa on behalf of you? A. No</p>
<p>Q. How much money are you bringing to the U.S Today? A. About forty dollars, I have a credit card.</p>
<p>Q. How is it possible that you are training people on this new product (which a part of it was made in the United States) and there are no American workers capable of giving this training? A. Not yet, I am training people to train other people, the software developers just develope [sic] they don&#8217;t train people on the product.</p>
<p>===========================================================<br />
That was the contents that I signed, seems pretty inefficient for hours and hours of qustions and running back and forth, doesn&#8217;t it?</p>
<p>Once I signed he rushed off with his jacket, it was obvious his shift ended a while earlier, which explains his excitement to get me to sign this fast, cause nothing else they did the whole day seemed to be in a rush to get done except those last couple of minutes of work.</p>
<p>Anyways, the rejection comment is what really makes me upset, because it&#8217;s just beyond me how I can tell him something probably 15 times and he still gets it wrong every time.</p>
<p>BASED ON THE FACT THAT YOU HAVE STATED THAT YOU ARE COMING TO THE US TO PROVIDE TRAINING TO AMERICAN WORKERS AND WILL BE PAID BY AN [sic] US COMPANY, IT HAS BEEN DEEMED THE [sic] YOU ARE INADMISSIBLE TO THE UNITED STATES UNDER THE VISA WAIVER PROGRAM. IT APPEARS THAT YOU NEED A VISA TO DO THE TRAINING THAT YOU ARE COMING HERE TO DO. YOU ARE NO LONGER ABLE TO USE THE VISA WAIVER PROGRAM. YOU MUST OBTAIN A VISA TO ENTER THE US IN THE FUTURE.</p>
<p>Another guy comes up with a paper with the above comment, I told him the comment about me being paid by an American company was wrong and that I could easily prove it. He just said <em>&#8220;I cannot make any changes to your case, since I&#8217;m not the officer that has been working on it with you.&#8221;</em>. So, naturally I asked for that officer, but of course he was off shift and would not be back until the next morning. The officer nicely informed me that I could wait if I wanted to, but he would have to call the police and have me wait in a cell until the morning, and also have a criminal record opened in my name if I chose that - which would guarantee me never be able to return to the US ever again. Now, I didn&#8217;t believe him with what he said here, but I also realized that there&#8217;s no chance that I could be where I was supposed to be in the morning for work. So, I just had to get out quickly so I could call my boss and we could make other arrangements.</p>
<p>After that it was just a matter of waiting for the next flight, someone else took over and went and got me tickets for the next flight home and also checked my luggage. I was not allowed to get my jacket from it or put items I bought in Amsterdam into it. I was not allowed to go anywhere to get food, so during this whole time I only had access to a small water fountain (which I couldn&#8217;t use, since I get sick from US tap water). There was one bath room to share for all the people in this room, which didn&#8217;t have any lock on it, and it had an obvious one-side mirror taking up one whole end of the wall.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.flupps.org/2006/04/30/us-immigration-problems/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
