<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CUIHR3Y4cCp7ImA9WhRUFkU.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911</id><updated>2012-01-28T00:58:56.838+08:00</updated><category term="Coding" /><category term="Unix" /><category term="Python" /><category term="Linux Mint" /><category term="Technology" /><category term="Plugins Blogger" /><category term="Debian" /><category term="Outlook" /><category term="VirtualBox" /><category term="Frontrow" /><category term="Getting Referenced" /><category term="Kernel" /><category term="Perl" /><category term="Oracle" /><category term="Fun" /><category term="Mercurial" /><category term="Getting Things Done" /><category term="Adsense" /><category term="GTD" /><category term="hgsubversion" /><category term="Tips And Tricks" /><category term="Core Dump" /><category term="Zenphoto" /><category term="SEO" /><category term="Svn" /><category term="easy_install" /><category term="Linux" /><category term="Eclipse" /><category term="Mac" /><category term="Solaris" /><category term="Quantmod" /><category term="Bash" /><category term="Regular Expression" /><category term="BootCamp" /><category term="Blog" /><category term="CPAN" /><category term="R" /><category term="Windows 7" /><category term="Excel" /><title>XiuxiXiuxi</title><subtitle type="html">Sit back and enjoy.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://xiuxixiuxi.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://xiuxixiuxi.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/blogspot/vranK" /><feedburner:info uri="blogspot/vrank" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DU4HQH06eip7ImA9WhRREUU.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-8824138829790956914</id><published>2011-11-25T10:10:00.001+08:00</published><updated>2011-11-25T10:25:31.312+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-25T10:25:31.312+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="easy_install" /><category scheme="http://www.blogger.com/atom/ns#" term="Python" /><title>How to use easy_install through a proxy</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QlP6lC36IyqUM16fYaK5TqeLlcI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QlP6lC36IyqUM16fYaK5TqeLlcI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QlP6lC36IyqUM16fYaK5TqeLlcI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QlP6lC36IyqUM16fYaK5TqeLlcI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
You first need to make sure that the shell variable http_proxy is defined:&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;pre class="brush: shell"&gt;
$ env | grep http_proxy
http_proxy=http://your-proxy.com:yourport
&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
On this done you can run simply run easy_install as follow:&lt;/div&gt;
&lt;pre class="brush: shell"&gt;
sudo -E easy_install your_package
&lt;/pre&gt;

The "-E" parameter for sudo preserves your environment (namely variables) which is not the default behavior.
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-8824138829790956914?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/SEogegoQO-k" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/8824138829790956914?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/8824138829790956914?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/SEogegoQO-k/how-to-use-easyinstall-through-proxy.html" title="How to use easy_install through a proxy" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/11/how-to-use-easyinstall-through-proxy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIGRXw8fSp7ImA9WhRUFEo.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-5787916302498937473</id><published>2011-11-22T06:45:00.001+08:00</published><updated>2012-01-25T14:38:44.275+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-25T14:38:44.275+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7" /><title>How to fix windows 7 install stuck at step "Finalizing your settings"</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PcEcmGDhR89gxT3PGj3pxoHeCRc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PcEcmGDhR89gxT3PGj3pxoHeCRc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PcEcmGDhR89gxT3PGj3pxoHeCRc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PcEcmGDhR89gxT3PGj3pxoHeCRc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
While trying to install windows 7 on my shiny Macbook, after the whole ordeal i had went through (See &lt;a href="http://xiuxixiuxi.blogspot.com/2011/11/install-windows-7-with-bootcamp-on-mac.html"&gt;here &lt;/a&gt;and &lt;a href="http://xiuxixiuxi.blogspot.com/2011/11/install-windows-7-with-bootcamp-on-mac_21.html" target="_blank"&gt;here&lt;/a&gt; for more details), I finally had the install going and was at the last step.&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
By last step I mean my computer had already rebooted several times, went through "Setting up your computer for first time use", and was at the step "Finalizing your settings".&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
Unfortunatly this last step took forever. By Forever i mean, after leaving my computer at it the whole night,&amp;nbsp;was still&amp;nbsp;stuck there in the morning.&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
After a&amp;nbsp;bit of investigation on Mr Google, i found out that you can start a console by pressing "Shift-F10". I then typed:&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;pre class="brush: shell"&gt;tasklist /v | more



Image Name                     PID Session Name        Session#    Mem Usage Status          User Name                                              CPU Time Window Title                                                            
========================= ======== ================ =========== ============ =============== ================================================== ============ ========================================================================
System Idle Process              0 Services                   0         24 K Unknown         NT AUTHORITY\SYSTEM                                    13:03:01 N/A                                                                     
System                           4 Services                   0        500 K Unknown         NT AUTHORITY\SYSTEM                                     0:00:27 N/A                                                                     
...
svchost.exe                   1840 Services                   0      1,908 K Unknown         NT AUTHORITY\LOCAL SERVICE                              0:00:00 N/A                                                                     
SearchIndexer.exe              752 Services                   0     10,956 K Unknown         NT AUTHORITY\SYSTEM                                     0:00:03 N/A                                                                     
cmd.exe                       1176 Console                    1      7,372 K Running         NT AUTHORITY\SYSTEM                                     0:00:00 \sources\$oem$\post\kb890830-x86.exe                                    
conhost.exe                   1244 Console                    1      1,392 K Unknown         NT AUTHORITY\SYSTEM                                     0:00:00 N/A                                                                     
svchost.exe                    240 Services                   0      2,020 K Unknown         NT AUTHORITY\LOCAL SERVICE                              0:00:00 N/A                                                                     
svchost.exe                   1956 Services                   0      5,828 K Unknown         NT AUTHORITY\SYSTEM                                     0:00:00 N/A                                                                     
cmd.exe                       3816 Console                    1      2,672 K Running         NT AUTHORITY\SYSTEM                                     0:00:00 Administrator: C:\Windows\system32\cmd.exe - tasklist  /v
&lt;/pre&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
And there&amp;nbsp;I saw this KB installer which didn't seem to be doing anything. So i simply killed it with "taskkill /PID 1176"&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
And tadam, the computer finally finished installed.&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;" xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-5787916302498937473?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/aZMXARXBiAE" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/5787916302498937473?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/5787916302498937473?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/aZMXARXBiAE/how-to-fix-windows-7-install-stuck-at.html" title="How to fix windows 7 install stuck at step &quot;Finalizing your settings&quot;" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/11/how-to-fix-windows-7-install-stuck-at.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIHR3Y_cSp7ImA9WhRUFkU.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-1664723402657743993</id><published>2011-11-21T19:28:00.001+08:00</published><updated>2012-01-28T00:58:56.849+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T00:58:56.849+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="BootCamp" /><category scheme="http://www.blogger.com/atom/ns#" term="Mac" /><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox" /><title>Install Windows 7 with bootcamp on mac (Part 2)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/o6i8OjDNS78pnmftLhm5q5mSQhA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/o6i8OjDNS78pnmftLhm5q5mSQhA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/o6i8OjDNS78pnmftLhm5q5mSQhA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/o6i8OjDNS78pnmftLhm5q5mSQhA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Small resume from &lt;a href="http://xiuxixiuxi.blogspot.com/2011/11/install-windows-7-with-bootcamp-on-mac.html"&gt;Part 1&lt;/a&gt;:&lt;/div&gt;
&lt;div&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li style="text-align: justify;"&gt;I am the (un)happy owner of a late 2008 Macbook Pro&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;My super Drive is DEAD&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;I have Mac OS X Lion installed on my mac&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;For whatever (foolish) reason I want to install Windows 7 on a Bootcamp partition&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;I used Bootcamp 4.0.1&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
In the guide below i will explain how i managed to (finally) install Windows 7 on my bootcamp partition. But before we go further, some important warning. This whole procedure is at best dangerous, and is not for the faint hearted. It can possibly screw up your disk, follow it at your own risk. I strongly advise that you read this guide completely before starting this whole procedure by yourself. Now that you've been warned, let's get started.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Pre-requisite:&lt;/div&gt;
&lt;div&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;Have &lt;a href="http://www.virtualbox.org/"&gt;Virtual Box &lt;/a&gt;installed on you Mac&lt;/li&gt;
&lt;li&gt;Have everything back up because there's a possibility that this procedure screw up your disk&lt;/li&gt;
&lt;li&gt;Download and put on a separate USB disk the&amp;nbsp;WindowsSupport (using bootcamp assistant)&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
What this guide does is essentially do the initial install step of windows (copying all the files, formatting ...) from inside a VM, stop the VM right after the first reboot, &amp;nbsp;and then reboot your real machine this time to continue and finish the install.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
At the time of writing this guide i have VirtualBox 4.1.6 r74713, and i'm running Mac OS 10.7.2.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 0&lt;/b&gt;: BACK UP ! and make sure you have an install CD / DVD / USB handy.&lt;/div&gt;
&lt;div&gt;
Use whatever solution you like, to backup your data, be it Time Machine, &lt;a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html"&gt;SuperDuper&lt;/a&gt; or &lt;a href="http://www.grapefruit.ch/iBackup/CNFJcLGa21dBvLIBDtThpBh0675RqQ"&gt;iBackup&lt;/a&gt;. &amp;nbsp;If you still don't have back up do it now.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 1&lt;/b&gt;: Create a Bootcamp partition using the bootcamp assistant&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 2&lt;/b&gt;: Unmount / Eject Bootcamp partition if you can see it in your Finder&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-zJNFUp9zACs/TspFHv2PArI/AAAAAAAACr0/gp3JXINlUPk/s1600/Screen+Shot+2011-11-21+at+7.27.00+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="330" src="http://4.bp.blogspot.com/-zJNFUp9zACs/TspFHv2PArI/AAAAAAAACr0/gp3JXINlUPk/s400/Screen+Shot+2011-11-21+at+7.27.00+PM.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 3&lt;/b&gt;: Create Virtual disk&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
I created a folder that will contain the virtual disk and the VM itself.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class="brush: shell"&gt;mkdir -p ~/VirtualBox VMs/B7
cd ~/VirtualBox VMs/B7
sudo chmod 777 /dev/disk0s3
VBoxManage internalcommands createrawvmdk -rawdisk /dev/disk0 -filename bootcamp.vmdk -partitions 3
sudo chmod 777 *.vmdk
&lt;/pre&gt;
&lt;br /&gt;
&lt;div&gt;
The step above assume that your bootcamp partition is the 3rd one on the first disk (using "diskutil list" in a terminal):&lt;/div&gt;
&lt;div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-id4eN6mQN7I/TspQxUClQUI/AAAAAAAACsk/y3GeLcJN69c/s1600/Screen+Shot+2011-11-21+at+9.22.51+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="58" src="http://1.bp.blogspot.com/-id4eN6mQN7I/TspQxUClQUI/AAAAAAAACsk/y3GeLcJN69c/s400/Screen+Shot+2011-11-21+at+9.22.51+PM.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 4&lt;/b&gt;: Create a VM Using the vmdk you just created:&lt;br /&gt;
Once you have the virtual disk created, you can start VirtualBox and create a new virtual machine, make sure you use the disk you just create as the VM disk.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-MLUY-26d-qc/TspRVnYsBjI/AAAAAAAACss/XfHENdoDISU/s1600/Screen+Shot+2011-11-21+at+9.25.17+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="222" src="http://2.bp.blogspot.com/-MLUY-26d-qc/TspRVnYsBjI/AAAAAAAACss/XfHENdoDISU/s400/Screen+Shot+2011-11-21+at+9.25.17+PM.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 5&lt;/b&gt;: Format and Install Windows 7&lt;/div&gt;
&lt;div&gt;
Once the above is done, you can start booting up the VM on your install CD/ISO. When you get to the screen of partition selection make sure to select the one named "BOOTCAMP":&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-R6YfS9oIueg/TspFKjV1yzI/AAAAAAAACr8/hAjcoIVklpY/s1600/Screen+Shot+2011-11-21+at+7.31.42+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="512" src="http://3.bp.blogspot.com/-R6YfS9oIueg/TspFKjV1yzI/AAAAAAAACr8/hAjcoIVklpY/s640/Screen+Shot+2011-11-21+at+7.31.42+PM.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
﻿&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
Then Click on "Drive options" and then "Format":&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-kje52ox22AY/TspFNusC5gI/AAAAAAAACsE/wYPUhZ2VrkE/s1600/Screen+Shot+2011-11-21+at+7.32.14+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="321" src="http://1.bp.blogspot.com/-kje52ox22AY/TspFNusC5gI/AAAAAAAACsE/wYPUhZ2VrkE/s400/Screen+Shot+2011-11-21+at+7.32.14+PM.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-jwhsNDnsfdE/TspFQrCewXI/AAAAAAAACsM/EQd43awtztU/s1600/Screen+Shot+2011-11-21+at+7.33.55+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-jwhsNDnsfdE/TspFQrCewXI/AAAAAAAACsM/EQd43awtztU/s400/Screen+Shot+2011-11-21+at+7.33.55+PM.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
Note that after formatting the disk the name of the partition is changed to basically nothing. Nothing to be alarmed about. You can then proceed to the next step and let windows do its job, until it reaches the first reboot.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
When you reach the first reboot, let the VM shutdown properly, but when it restarts, turn it off for good. It now time to reboot your real machine and continue the setup in "Hardware mode" so to speak. When your Mac reboots, don't forget to hold the "Option" key to be able to boot on the windows partition.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
Thanks to &lt;a href="http://dashes.com/anil/2009/10/how-to-run-windows-7-under-mac-os-x-106-for-free.html" target="_blank"&gt;Anil Dash&lt;/a&gt; from which i got the idea of create a virtual disk pointing to a real partition.&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;
Hope this guide will help.&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
PS: There was an unforseen &lt;a href="http://xiuxixiuxi.blogspot.com/2011/11/how-to-fix-windows-7-install-stuck-at.html" target="_blank"&gt;Part 3&lt;/a&gt; where the Windows Installer got stuck.&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-1664723402657743993?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/Y6-XZH5ijEw" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/1664723402657743993?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/1664723402657743993?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/Y6-XZH5ijEw/install-windows-7-with-bootcamp-on-mac_21.html" title="Install Windows 7 with bootcamp on mac (Part 2)" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-zJNFUp9zACs/TspFHv2PArI/AAAAAAAACr0/gp3JXINlUPk/s72-c/Screen+Shot+2011-11-21+at+7.27.00+PM.png" height="72" width="72" /><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/11/install-windows-7-with-bootcamp-on-mac_21.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIMR3g_fCp7ImA9WhRUFEo.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-5411419565555942711</id><published>2011-11-21T19:24:00.001+08:00</published><updated>2012-01-25T14:39:46.644+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-25T14:39:46.644+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="BootCamp" /><category scheme="http://www.blogger.com/atom/ns#" term="Mac" /><title>Install Windows 7 with bootcamp on mac (Part 1)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Toro9J-tL1q6FLxYCipjYEr3jRI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Toro9J-tL1q6FLxYCipjYEr3jRI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Toro9J-tL1q6FLxYCipjYEr3jRI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Toro9J-tL1q6FLxYCipjYEr3jRI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
In this serie of articles, i will describe the steps I followed while trying to install a Windows 7 in bootcamp. I will try to make this guide as detailed as possible in hope it'll be helpful to other people. But before i dive in a bit of context, that has its importance.&lt;br /&gt;
&lt;br /&gt;
My computer is a MacBook Pro of late 2008, whose Superdrive is unfortunately dead, which meant i was not able to simple put in the DVD install of Windows 7, which left me with trying to install it from a USB Key. Unfortunately, my Mac being from late 2008, it means that boot from USB is out of the question, which i only discovered after trying to the steps below.&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
The guide below will detail how to create a bootable USB on a 2008 MacBook Pro (and by extension on a Mac that doesn't support boot on USB). If that's not of interest you can skip to &lt;a href="http://xiuxixiuxi.blogspot.com/2011/11/install-windows-7-with-bootcamp-on-mac_21.html" target="_blank"&gt;Part 2&lt;/a&gt; directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also important point I have OSX Lion installed, more importantly Bootcamp 4.0.1.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-OXGToZSmnPk/Tso-USGR4-I/AAAAAAAACrk/AE72e5vuW-g/s1600/Screen+Shot+2011-11-21+at+8.03.13+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-OXGToZSmnPk/Tso-USGR4-I/AAAAAAAACrk/AE72e5vuW-g/s1600/Screen+Shot+2011-11-21+at+8.03.13+PM.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
It has a very nice option that allows you to create a USB boot disk (on top of creating bootcamp partition, and downloading Windows Support files). Having read that i wanted to give it a try. But when i started it, the "Create a Windows 7 install disk" was grayed:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-gkco_EokvPk/TspBz6kGjsI/AAAAAAAACrs/sQUXi4ayYv0/s1600/Screen+Shot+2011-11-21+at+8.14.54+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="277" src="http://3.bp.blogspot.com/-gkco_EokvPk/TspBz6kGjsI/AAAAAAAACrs/sQUXi4ayYv0/s400/Screen+Shot+2011-11-21+at+8.14.54+PM.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
That is due, as I understand, to the fact that my Mac model is not supposed to be able to boot from USB. In order to solve that I had to tinker with the "Boot Camp Assistant" application.&lt;br /&gt;
&lt;br /&gt;
First Ctrl+Click on&amp;nbsp;"Boot Camp Assistant", then "Show Package Contents" &amp;gt; Contents, then edit "info.plist:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: xml"&gt;&lt;key&gt;USBBootSupportedModels&lt;/key&gt;
&lt;array&gt;
    &lt;string&gt;MBP51&lt;/string&gt; 
    &lt;string&gt;IM130&lt;/string&gt;
    &lt;string&gt;MM50&lt;/string&gt;
    &lt;string&gt;MP60&lt;/string&gt;
    &lt;string&gt;MB80&lt;/string&gt;
    &lt;string&gt;MBP90&lt;/string&gt;
    &lt;string&gt;MBA40&lt;/string&gt;
&lt;/array&gt;
&lt;/pre&gt;
&lt;br /&gt;
To figure out the model use the "System Information", next to "Model Identifier":&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-qUlU4RcmjCs/TspKIYmKMII/AAAAAAAACsU/UgdfUb-s8PM/s1600/Screen+Shot+2011-11-21+at+8.54.25+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="44" src="http://1.bp.blogspot.com/-qUlU4RcmjCs/TspKIYmKMII/AAAAAAAACsU/UgdfUb-s8PM/s320/Screen+Shot+2011-11-21+at+8.54.25+PM.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
From the name it was pretty easy to figure out the reference is &lt;i&gt;MBP51&lt;/i&gt;. A MacBook would have been &lt;i&gt;MBxx&lt;/i&gt; and a MacBook Air &amp;nbsp;&lt;i&gt;MBAxx.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After saving the file, i was able to create a USB Boot Disk using the assistant.&lt;br /&gt;
&lt;br /&gt;
Also this whole procedure didn't work (and probably won't work for anyone in the same situation), it might be helpful if you need to create an usb boot disk for another new machine.&lt;br /&gt;
&lt;br /&gt;
Now for the meaty bits, head over to &lt;a href="http://xiuxixiuxi.blogspot.com/2011/11/install-windows-7-with-bootcamp-on-mac_21.html" target="_blank"&gt;Part 2&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-5411419565555942711?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/oKnTBLz9rDA" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/5411419565555942711?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/5411419565555942711?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/oKnTBLz9rDA/install-windows-7-with-bootcamp-on-mac.html" title="Install Windows 7 with bootcamp on mac (Part 1)" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-OXGToZSmnPk/Tso-USGR4-I/AAAAAAAACrk/AE72e5vuW-g/s72-c/Screen+Shot+2011-11-21+at+8.03.13+PM.png" height="72" width="72" /><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/11/install-windows-7-with-bootcamp-on-mac.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4CRXs5fSp7ImA9WhRQEUo.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-8914905745470499985</id><published>2011-11-17T12:08:00.001+08:00</published><updated>2011-12-06T21:26:04.525+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-06T21:26:04.525+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="Debian" /><category scheme="http://www.blogger.com/atom/ns#" term="Python" /><title>How to install cx_Oracle and oracle client on debian</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/157-tWWTWwmo4rtge5uE8AqdzOw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/157-tWWTWwmo4rtge5uE8AqdzOw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/157-tWWTWwmo4rtge5uE8AqdzOw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/157-tWWTWwmo4rtge5uE8AqdzOw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
In this post i'm going to explain how to install and use the python lib named cx_Oracle on a debian box. To make things a little more &lt;i&gt;spicy, &lt;/i&gt;i will start from the assumption that oracle is not installed on the box, and that i don't want to install a full fledged oracle server on my box.&lt;br /&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
So after this procedure i will have a minimal install of oracle libs, that means the bare minimum to use cx_Oracle. More precisely, that means no oracle client, no sqlplus will be on that box.&lt;br /&gt;
&lt;br /&gt;
The first step is to download the oracle instant client and the cx_Oracle library that matches. Out of&amp;nbsp;laziness, i decided to use the pre compiled version of&amp;nbsp;cx_Oracle.&lt;br /&gt;
&lt;br /&gt;
Do download oracle instant client, go on oracle website &lt;a href="http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html"&gt;here&lt;/a&gt;. Then choose the&amp;nbsp;platform&amp;nbsp;that / library that matches your oracle server. For me it was &lt;i&gt;"instantclient-basiclite-linux32-11.2.0.2.0.zip"&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
Once you have downloaded that file unzip it and install it. I personnaly chose to install it in (i.e move the unzipped folder) into&amp;nbsp;/usr/local/lib.&lt;br /&gt;
&lt;br /&gt;
Once this done, you need to define two variables:&lt;br /&gt;
&lt;pre class="brush: shell"&gt;export ORACLE_HOME=/usr/local/lib/instantclient_11_1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/instantclient_11_1
&lt;/pre&gt;
&lt;br /&gt;
Once this is done, we can move on to install cx_Oracle. I downloaded the RPM version that matches my python and oracle version, in my case&amp;nbsp;&lt;i&gt;cx_Oracle-5.1.1-11g-py26-1.i386.rpm.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
Being under debian, RPM is not the favored method to install packages. Fortunately there's an utility that allows to convert RPMs to DEB files called alien. Here's the steps to install alien and cx_Oracle:&lt;br /&gt;
&lt;pre class="brush: shell"&gt;# install alien
sudo apt-get install alien

# convert cx_Oracle-5.1.1-11g-py26-1.i386.rpm to cx_Oracle-5.1.1-11g-py26-1.i386.deb and install it
alien -i cx_Oracle-5.1.1-11g-py26-1.i386.rpm

&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Once that done, there's one last step. This installed cx_Oracle library was installed under &lt;i&gt;/usr/lib/python2.6/site-packages&lt;/i&gt;. Unfortunatly by default, site-packages wasn't part of the default python search path. There's several ways to go around that which i won't describe at length (more details &lt;a href="http://docs.python.org/install/index.html"&gt;here &lt;/a&gt;under "Modifying Python’s Search Path"). I chose to modify site.py under&amp;nbsp;&lt;i&gt;/usr/lib/python2.6/ &lt;/i&gt;(mostly because it's the first but probably not the last package that will be installed in site-packages).&lt;br /&gt;
&lt;br /&gt;
In order to do that I simply edited site.py and searched for&amp;nbsp;addsitepackages and edited it as follow:&lt;br /&gt;
&lt;pre style="background: #000000; color: #d1d1d1;"&gt;&lt;span style="color: #e66170; font-weight: bold;"&gt;def&lt;/span&gt; addsitepackages&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;known_paths&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;
    &lt;span style="color: #9999a9;"&gt;"""Add site-packages (and possibly site-python) to sys.path"""&lt;/span&gt;
    sitedirs &lt;span style="color: #d2cd86;"&gt;=&lt;/span&gt; &lt;span style="color: #d2cd86;"&gt;[&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;]&lt;/span&gt;
    seen &lt;span style="color: #d2cd86;"&gt;=&lt;/span&gt; &lt;span style="color: #d2cd86;"&gt;[&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;]&lt;/span&gt;

    &lt;span style="color: #e66170; font-weight: bold;"&gt;for&lt;/span&gt; prefix &lt;span style="color: #e66170; font-weight: bold;"&gt;in&lt;/span&gt; PREFIXES&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;
        &lt;span style="color: #e66170; font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: #e66170; font-weight: bold;"&gt;not&lt;/span&gt; prefix &lt;span style="color: #e66170; font-weight: bold;"&gt;or&lt;/span&gt; prefix &lt;span style="color: #e66170; font-weight: bold;"&gt;in&lt;/span&gt; seen&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;
            &lt;span style="color: #e66170; font-weight: bold;"&gt;continue&lt;/span&gt;
        seen&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;append&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;prefix&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;

        &lt;span style="color: #e66170; font-weight: bold;"&gt;if&lt;/span&gt; sys&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;platform &lt;span style="color: #e66170; font-weight: bold;"&gt;in&lt;/span&gt; &lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;&lt;span style="color: #00c4c4;"&gt;'os2emx'&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;'riscos'&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;
            sitedirs&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;append&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;os&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;path&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;join&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;prefix&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"Lib"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"site-packages"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;
        &lt;span style="color: #e66170; font-weight: bold;"&gt;elif&lt;/span&gt; os&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;sep &lt;span style="color: #d2cd86;"&gt;=&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;=&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;'/'&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;
            sitedirs&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;append&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;os&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;path&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;join&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;prefix&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"local/lib"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt;
                                        &lt;span style="color: #00c4c4;"&gt;"python"&lt;/span&gt; &lt;span style="color: #d2cd86;"&gt;+&lt;/span&gt; sys&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;version&lt;span style="color: #d2cd86;"&gt;[&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;&lt;span style="color: #008c00;"&gt;3&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;]&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt;
                                        &lt;span style="color: #00c4c4;"&gt;"dist-packages"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;
            sitedirs&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;append&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;os&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;path&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;join&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;prefix&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"lib"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt;
                                        &lt;span style="color: #00c4c4;"&gt;"python"&lt;/span&gt; &lt;span style="color: #d2cd86;"&gt;+&lt;/span&gt; sys&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;version&lt;span style="color: #d2cd86;"&gt;[&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;&lt;span style="color: #008c00;"&gt;3&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;]&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt;
                                        &lt;span style="color: #00c4c4;"&gt;"dist-packages"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;
            sitedirs&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;append&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;os&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;path&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;join&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;prefix&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"lib"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"dist-python"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;

            &lt;span style="color: #9999a9;"&gt;##################&lt;/span&gt;
        &lt;span style="color: #9999a9;"&gt;# added following line to make site-packages part of default search path&lt;/span&gt;
            &lt;span style="color: #9999a9;"&gt;#################&lt;/span&gt;
            sitedirs&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;append&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;os&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;path&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;join&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;prefix&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"lib"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt;
                                        &lt;span style="color: #00c4c4;"&gt;"python"&lt;/span&gt; &lt;span style="color: #d2cd86;"&gt;+&lt;/span&gt; sys&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;version&lt;span style="color: #d2cd86;"&gt;[&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;&lt;span style="color: #008c00;"&gt;3&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;]&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt;
                                        &lt;span style="color: #00c4c4;"&gt;"site-packages"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;

        &lt;span style="color: #e66170; font-weight: bold;"&gt;else&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;
            sitedirs&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;append&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;prefix&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;
            sitedirs&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;append&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;os&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;path&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;join&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;prefix&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"lib"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"site-packages"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;

        &lt;span style="color: #e66170; font-weight: bold;"&gt;if&lt;/span&gt; sys&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;platform &lt;span style="color: #d2cd86;"&gt;=&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;=&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"darwin"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;
            &lt;span style="color: #9999a9;"&gt;# for framework builds *only* we add the standard Apple&lt;/span&gt;
            &lt;span style="color: #9999a9;"&gt;# locations. Currently only per-user, but /Library and&lt;/span&gt;
            &lt;span style="color: #9999a9;"&gt;# /Network/Library could be added too&lt;/span&gt;
            &lt;span style="color: #e66170; font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;'Python.framework'&lt;/span&gt; &lt;span style="color: #e66170; font-weight: bold;"&gt;in&lt;/span&gt; prefix&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;
                sitedirs&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;append&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;
                    os&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;path&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;expanduser&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;
                        os&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;path&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;join&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;&lt;span style="color: #00c4c4;"&gt;"~"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"Library"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"Python"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt;
                                     sys&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;version&lt;span style="color: #d2cd86;"&gt;[&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;&lt;span style="color: #008c00;"&gt;3&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;]&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; &lt;span style="color: #00c4c4;"&gt;"site-packages"&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;

    &lt;span style="color: #e66170; font-weight: bold;"&gt;for&lt;/span&gt; sitedir &lt;span style="color: #e66170; font-weight: bold;"&gt;in&lt;/span&gt; sitedirs&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;
        &lt;span style="color: #e66170; font-weight: bold;"&gt;if&lt;/span&gt; os&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;path&lt;span style="color: #d2cd86;"&gt;.&lt;/span&gt;isdir&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;sitedir&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;&lt;span style="color: #d2cd86;"&gt;:&lt;/span&gt;
            addsitedir&lt;span style="color: #d2cd86;"&gt;(&lt;/span&gt;sitedir&lt;span style="color: #d2cd86;"&gt;,&lt;/span&gt; known_paths&lt;span style="color: #d2cd86;"&gt;)&lt;/span&gt;

    &lt;span style="color: #e66170; font-weight: bold;"&gt;return&lt;/span&gt; known_paths
&lt;/pre&gt;
&lt;br /&gt;
After all that, you should be able to type "import cx_Oracle".
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-8914905745470499985?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/pB1MzqNmKcM" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/8914905745470499985?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/8914905745470499985?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/pB1MzqNmKcM/how-to-install-cxoracle-and-oracle.html" title="How to install cx_Oracle and oracle client on debian" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/11/how-to-install-cxoracle-and-oracle.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0MARnw-cCp7ImA9WhdaFkw.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-5502545886137011140</id><published>2011-10-26T14:43:00.002+08:00</published><updated>2011-10-26T14:44:07.258+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-26T14:44:07.258+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse" /><category scheme="http://www.blogger.com/atom/ns#" term="Coding" /><title>Eclipse syntax highlighting: how to configure same occurrence color properly</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/URerXotU9VHlTe4OLPX5euPaAs0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/URerXotU9VHlTe4OLPX5euPaAs0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/URerXotU9VHlTe4OLPX5euPaAs0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/URerXotU9VHlTe4OLPX5euPaAs0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Eclipse has some nice syntax highlighting feature, especially with the popular&amp;nbsp;add-on&amp;nbsp;"Eclipse Color Theme" from the Market place. The result is pretty nice, at least for my taste:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-KujXGN0PZY4/TqeqMtax0QI/AAAAAAAACrI/_qNJNFiFaQ4/s1600/eclipse+color+theme.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="130" src="http://4.bp.blogspot.com/-KujXGN0PZY4/TqeqMtax0QI/AAAAAAAACrI/_qNJNFiFaQ4/s400/eclipse+color+theme.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;i&gt;(here the obsidian theme)&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
On very nice feature is the ability to highlight automatically same&amp;nbsp;occurrences&amp;nbsp;of same.&amp;nbsp;Unfortunately&amp;nbsp;as you see here the "follow" keyword is totally bloated and unreadable.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
This can be configured, but it's that there's a legion of option for syntax highlighting. This one is actually controlled by "annotations", more specifically "C++ occurences":&lt;br /&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-48lE7W61hFI/Tqer48j8s2I/AAAAAAAACrQ/nv0ZIGVBIyk/s1600/eclipse+annotation+color.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="496" src="http://4.bp.blogspot.com/-48lE7W61hFI/Tqer48j8s2I/AAAAAAAACrQ/nv0ZIGVBIyk/s640/eclipse+annotation+color.JPG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
And its&amp;nbsp;suddenly&amp;nbsp;much more readable.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-5502545886137011140?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/mxgTryulTRw" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/5502545886137011140?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/5502545886137011140?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/mxgTryulTRw/eclipse-syntax-highlighting-how-to.html" title="Eclipse syntax highlighting: how to configure same occurrence color properly" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-KujXGN0PZY4/TqeqMtax0QI/AAAAAAAACrI/_qNJNFiFaQ4/s72-c/eclipse+color+theme.JPG" height="72" width="72" /><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/10/eclipse-syntax-highlighting-how-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcDSX85cSp7ImA9WhdbFUU.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-7459105287784800919</id><published>2011-10-14T18:11:00.001+08:00</published><updated>2011-10-14T18:11:18.129+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-14T18:11:18.129+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Debian" /><category scheme="http://www.blogger.com/atom/ns#" term="Tips And Tricks" /><title>Enabling proxy under Debian</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EboSotijwB8s7IhUzZS6W-TKEdk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EboSotijwB8s7IhUzZS6W-TKEdk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EboSotijwB8s7IhUzZS6W-TKEdk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EboSotijwB8s7IhUzZS6W-TKEdk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
In order to enabled a proxy, there's two main places (at least for my use this did the trick, there's probably are others). The first one is simple defining the following variables:&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
export http_proxy="http://your.proxy.com:your_port"&lt;/div&gt;
&lt;div&gt;
export ftp_proxy="http://your.proxy.com:your_port"&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Secondly in order to have apt-get work through proxy, you need to update&amp;nbsp;/etc/apt/apt.conf.d/proxy (or create it):&lt;/div&gt;
&lt;div&gt;
Acquire::http::Proxy "http:///your.proxy.com:your_port";&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-7459105287784800919?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/R1lDZ3OXaxw" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/7459105287784800919?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/7459105287784800919?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/R1lDZ3OXaxw/enabling-proxy-under-debian.html" title="Enabling proxy under Debian" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/10/enabling-proxy-under-debian.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8FQ3gzeip7ImA9WhdbFUU.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-8304371419428348736</id><published>2011-10-14T18:06:00.003+08:00</published><updated>2011-10-14T18:06:52.682+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-14T18:06:52.682+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox" /><title>VirtualBox: Creating new VM by duplicating existing one</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/a3UnkmBSzca8NDRSKW0tNjWYhSw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/a3UnkmBSzca8NDRSKW0tNjWYhSw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/a3UnkmBSzca8NDRSKW0tNjWYhSw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/a3UnkmBSzca8NDRSKW0tNjWYhSw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
The other day i tried to create a new VM by duplicating an existing one. Everything worked perfectly ... except all network interface were disable. And it was impossible to mount up those network interfaces.&lt;br /&gt;
&lt;br /&gt;
If you duplicated a new VM from an existing one, you have to do a couple of things. First MAC addresses should be changed in new VM.&lt;br /&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Then once the VM is created, disabled all network interface and boot it up. Once the machine is started, there's a couple of files to update for the hostname. I'm using a Debian squeeze, so path may change in other distributions:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/etc/hosts&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/etc/hostname&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Then you need to need to edit&amp;nbsp;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="background-color: #e1ebf2;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="background-color: #e1ebf2; font-weight: bold;"&gt;/etc/udev/rules.d/.&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;b&gt;&amp;nbsp; &lt;/b&gt;What happens is it maps the "new" mac address to a new interface.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;"&gt;You just need to remove the old one and rename the new one (thanks to the solution from this forum:&amp;nbsp;&lt;/span&gt;&lt;a href="https://forums.virtualbox.org/viewtopic.php?t=7749"&gt;https://forums.virtualbox.org/viewtopic.php?t=7749&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: seagreen; font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: seagreen; font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px; line-height: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-8304371419428348736?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/S-V3LNXH2Tw" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/8304371419428348736?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/8304371419428348736?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/S-V3LNXH2Tw/virtualbox-creating-new-vm-by.html" title="VirtualBox: Creating new VM by duplicating existing one" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/10/virtualbox-creating-new-vm-by.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04CSX86eSp7ImA9WhZUFk8.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-4492615113164001665</id><published>2011-06-09T21:26:00.000+08:00</published><updated>2011-06-09T21:26:08.111+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-09T21:26:08.111+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse" /><category scheme="http://www.blogger.com/atom/ns#" term="R" /><title>Using Eclipse as your R IDE</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/y9DKOyrBDUMnryG6XE-P7IS-dtw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y9DKOyrBDUMnryG6XE-P7IS-dtw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/y9DKOyrBDUMnryG6XE-P7IS-dtw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y9DKOyrBDUMnryG6XE-P7IS-dtw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;There's a bunch of possible IDE which are R specific, amongst which to name a few:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;RKWard&lt;/li&gt;
&lt;li&gt;R Studio (my personal favorite)&lt;/li&gt;
&lt;li&gt;Rattle&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;There's a very long list each with their own pros and cons, which I &amp;nbsp;don't intend to discuss in this post.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;What i do want to discuss is the usage of Eclipse as a R IDE. Why use it compared to other. Well being a developer during the day, I rather like the idea of using the same tool at night so to speak. Another added bonus on top of syntax completion, object inspection, is the integration with an which ever SCM you like to use. For me that's the icing on the cake. Time being of the essence I don't want to look anything and relying on a SCM is a perfect way to do that.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now enough talk. In order to have that integration working you need a couple of things:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;StatET: that's the eclipse plugin&amp;nbsp;(see &lt;a href="http://www.walware.de/?page=/it/statet/"&gt;here&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;rj : that's the "other side of StatET (see &lt;a href="http://www.walware.de/?page=/it/statet/"&gt;here&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;rJava: that's a java binder with R&amp;nbsp;(see &lt;a href="http://www.rforge.net/rJava/"&gt;here&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Then follow the excellent step by step guide &lt;a href="http://lukemiller.org/index.php/2010/04/eclipse-and-statet-a-nice-working-environment-for-r/"&gt;here&lt;/a&gt; on how to setup Eclipse itself in order to work with R.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Enjoy&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-4492615113164001665?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/qa4aNIF8bOM" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/4492615113164001665?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/4492615113164001665?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/qa4aNIF8bOM/using-eclipse-as-your-r-ide.html" title="Using Eclipse as your R IDE" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/06/using-eclipse-as-your-r-ide.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEARH84cCp7ImA9WhZVEU4.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-1507646088197128639</id><published>2011-05-23T16:17:00.000+08:00</published><updated>2011-05-23T16:17:25.138+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-23T16:17:25.138+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="hgsubversion" /><category scheme="http://www.blogger.com/atom/ns#" term="Svn" /><category scheme="http://www.blogger.com/atom/ns#" term="Mercurial" /><title>Mercurial integration with SVN.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jDLx6XsndT8QH6sDk-h4K27DMQk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jDLx6XsndT8QH6sDk-h4K27DMQk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jDLx6XsndT8QH6sDk-h4K27DMQk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jDLx6XsndT8QH6sDk-h4K27DMQk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I've recently been evaluating integration of SVN with some other distributed source control systems, mainly Git and Mercurial. The idea is to have a distributed source control system that would integrate&amp;nbsp;seamlessly&amp;nbsp;with a central SVN repository (very slow and painfull access over internet). That allows a certain number of things, amongst which there is fast access to commit history, cheap branches to experiment...&lt;br /&gt;
&lt;br /&gt;
At some point I had both Mercurial and Git installed, and decided it was time to do a bit of cleanup.&amp;nbsp;I have a bias towards Mercurial because it has a better integration in Windows explorer through TortoiseHG (you can call that lazyness).&lt;br /&gt;
&lt;br /&gt;
After uninstalling everything I started clean, installed the latest TortoiseHG version (which btw has a very nice GUI), as well as hgsubversion as explained here:&amp;nbsp;&lt;a href="http://mercurial.aragost.com/kick-start/en/hgsubversion/"&gt;Getting started with HGSubversion&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;/div&gt;&lt;div&gt;Mercurial was working fine but I was running into the following error each time I tried to clone our repo:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
hg clone svn+ssh://myuser@myrepo.com/someotherpath&lt;br /&gt;
destination directory: someotherpath&lt;br /&gt;
abort: Can't create tunnel: The system cannot find the file specified.&lt;br /&gt;
&lt;/code&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;
That error message has been driving me nuts for a while, and after trying a lot of things (uninstalling everything, installing Git again, checking library versions ...), I stumbled upon &lt;a href="http://www.svnforum.org/threads/38997-Windows-SVN-SSH-PuTTY-plink-quot-Can-t-create-tunnel...-qu"&gt;the solution&amp;nbsp;&lt;/a&gt;:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
set SVN_SSH="C:\\Program Files\\PuTTY\\plink.exe"&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
As simple as that... Just define that variable&amp;nbsp;SVN_SSH and it worked flowlessly. After that I justed defined it in my user environment to make it persist.&lt;br /&gt;
&lt;br /&gt;
Hopefully this will help someone else.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-1507646088197128639?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/oiW3zSwpz-8" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/1507646088197128639?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/1507646088197128639?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/oiW3zSwpz-8/mercurial-integration-with-svn.html" title="Mercurial integration with SVN." /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/05/mercurial-integration-with-svn.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEASHo9fCp7ImA9WhZXF04.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-7746340803232613369</id><published>2011-05-07T11:24:00.000+08:00</published><updated>2011-05-07T11:24:09.464+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-07T11:24:09.464+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Quantmod" /><category scheme="http://www.blogger.com/atom/ns#" term="R" /><title>K-means clustering using R</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BglJpDK9Y5n7lDU0zxjFCGlo724/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BglJpDK9Y5n7lDU0zxjFCGlo724/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BglJpDK9Y5n7lDU0zxjFCGlo724/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BglJpDK9Y5n7lDU0zxjFCGlo724/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I'm trying to learn R, and I'm a firm believer that there's not better way to learn than by getting your hands dirty. After reading an excellent &lt;a href="http://intelligenttradingtech.blogspot.com/2010/06/quantitative-candlestick-pattern.html"&gt;post on Intelligent Trading blog&lt;/a&gt;, it got me thinking how you would do a clustering analysis with R, using K-means.&lt;br /&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;In the rest of this post I will try to detail the different steps that I followed, in hope that it can be&amp;nbsp;useful&amp;nbsp;to others. In this post I will be using a couple of R packages, namely quantmod, fpc and a few others. The most crucial is quantmod. You can install it with:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;script src="http://pastebin.com/embed_js.php?i=MdQvHWax"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;They are used for:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;quantmod: this is your bread and butter to ease time series analysis&lt;/li&gt;
&lt;li&gt;graphics, scatterplot3d, gplots RColorBrewer are used for plotting&lt;/li&gt;
&lt;li&gt;fpc: this packages is package dedicated to clustering&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;First this article supposes that you already have your data handy in a xts object used by quantmot. If it's not the case have a look at &lt;a href="http://xiuxixiuxi.blogspot.com/2011/04/how-to-load-csv-data-with-quantmod-in-r.html"&gt;this article&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
In the details below, "x" is the name of the object that contains my timeserie. Now let dig into it.&lt;br /&gt;
&lt;br /&gt;
The first thing you need to do is create matrix with the different criteria you want to use for the clustering. In my case I'm going to use three normalized ratios, Close / Open, High / Open, &amp;nbsp;Low / Open , and then stuff them into a matrix.&amp;nbsp;Then you want to process the actual cluster and display it:&lt;/div&gt;&lt;script src="http://pastebin.com/embed_js.php?i=RhqGp1JT"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;The result looks like:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-gKWfy7EboBo/TcS5Lts3liI/AAAAAAAACpw/jjU6WWs_gUA/s1600/clusterPlot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-gKWfy7EboBo/TcS5Lts3liI/AAAAAAAACpw/jjU6WWs_gUA/s400/clusterPlot.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;This works pretty well, except you have to specify a number of cluster you're looking for. Another may to do this is through the pamk function from the fpc package, for for which you don't specify the actual number of cluster, it will be calculated (you provide a range of value though):&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;script src="http://pastebin.com/embed_js.php?i=dzjUcsXa"&gt;
&lt;/script&gt;&lt;/div&gt;&lt;br /&gt;
Note the difference with kmeans method, the cluster information is packed into a pam object. That why you access the cluster details through zpamk$pamobject.&lt;br /&gt;
&lt;br /&gt;
Enjoy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-7746340803232613369?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/8xb2y9lprIU" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/7746340803232613369?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/7746340803232613369?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/8xb2y9lprIU/k-means-clustering-using-r.html" title="K-means clustering using R" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-gKWfy7EboBo/TcS5Lts3liI/AAAAAAAACpw/jjU6WWs_gUA/s72-c/clusterPlot.png" height="72" width="72" /><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/05/k-means-clustering-using-r.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEABQngzeyp7ImA9WhZXFkQ.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-2715426745604032295</id><published>2011-05-06T22:38:00.002+08:00</published><updated>2011-05-06T22:39:13.683+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-06T22:39:13.683+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Zenphoto" /><category scheme="http://www.blogger.com/atom/ns#" term="Tips And Tricks" /><category scheme="http://www.blogger.com/atom/ns#" term="Bash" /><title>Thumbnails for Videos</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/t3thkYlutklIVMZVabwo9WHgkYc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t3thkYlutklIVMZVabwo9WHgkYc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/t3thkYlutklIVMZVabwo9WHgkYc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t3thkYlutklIVMZVabwo9WHgkYc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I recently installed a web gallery to host photos and videos named Zenphoto. It works perfectly to my taste except for a small detail. Video galleries load a flash player named flowplayer, which does the job nicely,&amp;nbsp;but until you click on the actual video to make the flash player load, you can't see a thumbnail of the video.&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;The solution to have thumbnails for videos in Zenphotos, the same way you have for photos, is to place a jpg with the same name as the video. For instance if you have a video named &lt;i&gt;a.mp4&lt;/i&gt;, create a jpeg named &lt;i&gt;a.jpg&lt;/i&gt; in the same folder as the video. This photo will be used as thumbnail for you video.&lt;br /&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;It's fine to do a few manually ... but call me lazy I don't fancy the extra manual step each time I need to add a new video. So a create a little script to generate the thumbnails.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Before digging in the details, it assumes a few things. First this only works under linux, so you must not be afraid of command line. Secondly it relies on ffmpeg to extract a frame automatically.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;If you don't have ffmpeg and you're using an Ubuntu / Debian type:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;script src="http://pastebin.com/embed_js.php?i=sBBrH2gX"&gt;
&lt;/script&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Then you into the folder under which the videos are and type:&lt;/div&gt;&lt;div&gt;&lt;script src="http://pastebin.com/embed_js.php?i=LWcwKE5m"&gt;
&lt;/script&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;And paste the following content into the file:&lt;/div&gt;&lt;div&gt;&lt;script src="http://pastebin.com/embed_js.php?i=wgytyQJG"&gt;
&lt;/script&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
Run the script and you're done.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-2715426745604032295?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/1FvrWG3ZriU" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/2715426745604032295?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/2715426745604032295?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/1FvrWG3ZriU/thumbnails-for-videos.html" title="Thumbnails for Videos" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/05/thumbnails-for-videos.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkIFRn08fip7ImA9WhZQFE0.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-5102567931441204547</id><published>2011-04-21T22:59:00.002+08:00</published><updated>2011-04-21T23:41:57.376+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-21T23:41:57.376+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Quantmod" /><category scheme="http://www.blogger.com/atom/ns#" term="R" /><title>How to load csv data with quantmod in R</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SxHgsjMb45mnPIrEITzUSt-Qaas/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SxHgsjMb45mnPIrEITzUSt-Qaas/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/SxHgsjMb45mnPIrEITzUSt-Qaas/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SxHgsjMb45mnPIrEITzUSt-Qaas/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;In this article I'm going to describe how to load data in an xts object, which is the&amp;nbsp;preferred&amp;nbsp;object to handle time series quantmod from a CSV file. This article is really for beginner (like myself), hopefully those can be helpful to others.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Let's imagine you have some csv data that look like:&lt;/div&gt;&lt;div&gt;&lt;script src="http://pastebin.com/embed_js.php?i=kxDKE3d0"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;/div&gt;&lt;div&gt;First thing you need to make sure is that you column headers have names that contain &amp;nbsp;Open, High, Low and Close. This will make you life much easier. Secondly, your csv file should only contain dates, and numerical data, otherwise it's kind of a hassle and you have to go and manually convert data afterwards. So &amp;nbsp;what your data should really look like is:&lt;/div&gt;&lt;script src="http://pastebin.com/embed_js.php?i=Db1UuWVR"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
Personnally I "massaged" the data in R, but you could very well do that in Excel, Perl, Python, or whatever tool you fancy (or simply correct the data at the source ;) ) but for the sake of example this is how I did it:&lt;/div&gt;&lt;script src="http://pastebin.com/embed_js.php?i=KqQZQnyQ"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
Now that you have the correct data, it's pretty simple to load :&lt;br /&gt;
&lt;br /&gt;
&lt;script src="http://pastebin.com/embed_js.php?i=4mdCqeai"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
You're now the proud owner of an xts object that you can start abusing in all the ways you'd like ;)&lt;br /&gt;
&lt;br /&gt;
&lt;script src="http://pastebin.com/embed_js.php?i=GFFkpVfq"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
Hope this helps&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-5102567931441204547?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/0BrW20jnJCE" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/5102567931441204547?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/5102567931441204547?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/0BrW20jnJCE/how-to-load-csv-data-with-quantmod-in-r.html" title="How to load csv data with quantmod in R" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/04/how-to-load-csv-data-with-quantmod-in-r.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0MNR388eSp7ImA9WhZQEUk.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-4173233577993481345</id><published>2011-04-18T23:44:00.000+08:00</published><updated>2011-04-18T23:44:56.171+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-18T23:44:56.171+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="Debian" /><title>How to extract a DEB file</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/erTnl67Fx5NxH4-OgBjWwIIR11c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/erTnl67Fx5NxH4-OgBjWwIIR11c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/erTnl67Fx5NxH4-OgBjWwIIR11c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/erTnl67Fx5NxH4-OgBjWwIIR11c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;DEB files are &lt;em&gt;ar archives&lt;/em&gt;, which contain three files:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;debian-binary&lt;/li&gt;
&lt;li&gt;control.tar.gz&lt;/li&gt;
&lt;li&gt;data.tar.gz&lt;/li&gt;
&lt;/ul&gt;The actual data is contained into data.tar.gz. You can extract it with the following command:&lt;br /&gt;
&lt;/div&gt;&lt;pre class="brush: bash"&gt;ar p yourfile.deb data.tar.gz | tar xz
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-4173233577993481345?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/ZLocXXamnuw" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/4173233577993481345?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/4173233577993481345?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/ZLocXXamnuw/how-to-extract-deb-file.html" title="How to extract a DEB file" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/04/how-to-extract-deb-file.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEQMRXo9fSp7ImA9WhZQEUk.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-1088461754275268848</id><published>2011-04-17T10:02:00.003+08:00</published><updated>2011-04-18T23:59:44.465+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-18T23:59:44.465+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux Mint" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="Kernel" /><category scheme="http://www.blogger.com/atom/ns#" term="Debian" /><title>Compiling a linux kernel on a Debian "like" distribution</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3w1WWZ9lAl72qiZZ5SfyGyZxQIA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3w1WWZ9lAl72qiZZ5SfyGyZxQIA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3w1WWZ9lAl72qiZZ5SfyGyZxQIA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3w1WWZ9lAl72qiZZ5SfyGyZxQIA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;I recently had to re-compile a kernel, and there's a few preliminaries. You need to install a bunch of packages :&lt;/div&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;pre class="brush: bash"&gt;sudo apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge
sudo apt-get install kernel-package&lt;/pre&gt;&lt;/div&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;After that you can follow the excellent guide here:&lt;/div&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;a href="https://help.ubuntu.com/community/Kernel/Compile#Alternate%20Build%20Method:%20The%20Old-Fashioned%20Debian%20Way"&gt;Compilling a Kernel the Old Debian Fashionned Way&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;One point which I had missed though is where are the packages once you've finished compiling (although it's written in the guide). So if like they recommend in the you've extracted the kernel source under ~/src/linux-source-2.6.35 for instance, then the deb packages will be in ~/src.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Enjoy.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-1088461754275268848?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/TzMk-kP3U_w" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/1088461754275268848?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/1088461754275268848?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/TzMk-kP3U_w/compiling-linux-kernel-on-debian-like.html" title="Compiling a linux kernel on a Debian &quot;like&quot; distribution" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/04/compiling-linux-kernel-on-debian-like.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEECSHw6eip7ImA9WhZRFEk.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-3139745564923963565</id><published>2011-04-10T22:44:00.002+08:00</published><updated>2011-04-10T22:44:29.212+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-10T22:44:29.212+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Mac" /><category scheme="http://www.blogger.com/atom/ns#" term="Excel" /><title>Edit Formula: Alternative to F2 for Excel Mac</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JzbvW62o7zeLliY0PykYtc6dd1U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JzbvW62o7zeLliY0PykYtc6dd1U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/JzbvW62o7zeLliY0PykYtc6dd1U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JzbvW62o7zeLliY0PykYtc6dd1U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br class="Apple-interchange-newline" /&gt;One of the most used keyboard shortcut is F2, which allows to edit the formula in a cell without using the mouse. Unfortunately that shortcut is different between Office for Mac and Office Windows.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;This shortcut was F2 in a PC, but in Excel for Mac it turns into Ctrl + U.&amp;nbsp; Unfortunately not the most effective shortcut, as it's rather difficult to press Ctrl + U with one hand on most keyboards.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-style: italic;"&gt;Windows Shortcut:&lt;/span&gt;&amp;nbsp;F2&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-weight: bold;"&gt;Mac Shortcut:&amp;nbsp;&lt;/span&gt;&lt;span style="color: red;"&gt;Ctrl + U&lt;/span&gt;&lt;/div&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-3139745564923963565?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/rzowsRDVnG0" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/3139745564923963565?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/3139745564923963565?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/rzowsRDVnG0/edit-formula-alternative-to-f2-for.html" title="Edit Formula: Alternative to F2 for Excel Mac" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/04/edit-formula-alternative-to-f2-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEEGQX0_eyp7ImA9WhZRFEk.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-539126081087953107</id><published>2011-04-10T22:43:00.002+08:00</published><updated>2011-04-10T22:43:40.343+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-10T22:43:40.343+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Mac" /><category scheme="http://www.blogger.com/atom/ns#" term="Excel" /><title>Excel Mac: Cell Reference Lock  - F4 Alternative</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0lxMWK7mVuDCErzbBuLqb0TykMU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0lxMWK7mVuDCErzbBuLqb0TykMU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0lxMWK7mVuDCErzbBuLqb0TykMU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0lxMWK7mVuDCErzbBuLqb0TykMU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br class="Apple-interchange-newline" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;One of the first major problem that I faced when I first began using Excel on a Mac, was the appropriate shortcut replacement for F4, which adds $ signs to cell references to lock cell/range references from moving if dragged to another cell. After a great deal of frustration, and after trawling a number of excel forums I eventually found the solution which is shown below.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;i&gt;Windows Shortcut&lt;/i&gt;:&amp;nbsp;&lt;span class="Apple-style-span" style="color: #666666;"&gt;F4&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Mac Shortcut :&lt;/b&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="color: red;"&gt;Cmd + T&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-539126081087953107?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/pqWOi6rEIp0" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/539126081087953107?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/539126081087953107?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/pqWOi6rEIp0/excel-mac-cell-reference-lock-f4.html" title="Excel Mac: Cell Reference Lock  - F4 Alternative" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/04/excel-mac-cell-reference-lock-f4.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMBQng5eyp7ImA9WhZRFEk.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-3379769845769710233</id><published>2011-04-10T22:40:00.000+08:00</published><updated>2011-04-10T22:40:53.623+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-10T22:40:53.623+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Perl" /><category scheme="http://www.blogger.com/atom/ns#" term="CPAN" /><title>Install from Perl modules from CPAN without confirmation</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-lKPcNTspW0g8Ndnv9kYY8LI0sE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-lKPcNTspW0g8Ndnv9kYY8LI0sE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-lKPcNTspW0g8Ndnv9kYY8LI0sE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-lKPcNTspW0g8Ndnv9kYY8LI0sE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;If need to install modules from CPAN, especially if you want to install a whole bunch in one go without having to confirm every ten seconds try running your install as follow:&lt;br /&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;title&gt;&lt;/title&gt;   &lt;style type="text/css"&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 14.0px Consolas; background-color: #eeeeee}
span.s1 {color: #80000b}
&lt;/style&gt;   &lt;br /&gt;
&lt;div class="p1"&gt;PERL_MM_USE_DEFAULT=&lt;span class="s1"&gt;1&lt;/span&gt; perl -MCPAN -e &lt;span class="s1"&gt;'install My::Module'&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Additionally&amp;nbsp;if you want to make sure that the install script will pull all the required dependencies (should be by default, but heh ...):&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;title&gt;&lt;/title&gt;   &lt;style type="text/css"&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 14.0px Consolas; background-color: #eeeeee}
&lt;/style&gt;   &lt;br /&gt;
&lt;div class="p1"&gt;  &lt;title&gt;&lt;/title&gt;   &lt;style type="text/css"&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 14.0px Consolas; background-color: #eeeeee}
&lt;/style&gt;   &lt;br /&gt;
&lt;div class="p1"&gt;cpan&lt;/div&gt;&lt;div class="p1"&gt;cpan&amp;gt; o conf prerequisites_policy follow&lt;/div&gt;&lt;div class="p1"&gt;cpan&amp;gt; o conf commit&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;That's it.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-3379769845769710233?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/PErrOllXwvQ" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/3379769845769710233?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/3379769845769710233?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/PErrOllXwvQ/install-from-perl-modules-from-cpan.html" title="Install from Perl modules from CPAN without confirmation" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/04/install-from-perl-modules-from-cpan.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkANRn48fyp7ImA9WhZSGUo.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-457791521593931672</id><published>2011-04-05T10:13:00.001+08:00</published><updated>2011-04-05T10:33:17.077+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-05T10:33:17.077+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux Mint" /><category scheme="http://www.blogger.com/atom/ns#" term="Debian" /><title>Find closest and fastest repository for your Debian</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/STg_a7AKXhvqpY3YJAF5odeyTaY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/STg_a7AKXhvqpY3YJAF5odeyTaY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/STg_a7AKXhvqpY3YJAF5odeyTaY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/STg_a7AKXhvqpY3YJAF5odeyTaY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I &lt;a href="http://xiuxixiuxi.blogspot.com/2011/04/update-debian-squeeze-to-mint-aka.html"&gt;recently installed&lt;/a&gt; a new distrib with linux mint based on Debian. I've done that scores of times, but one thing i never remember is how to find the best repo (and the fastest of course) based on your location.&lt;br /&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;There's a very neet package that will do the work for your:&lt;/div&gt;&lt;pre class="brush: bash"&gt;sudo apt-get install netselect-apt
sudo netselect-apt
&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;
And Voila, you're done.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-457791521593931672?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/yJT_xwdiyiI" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/457791521593931672?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/457791521593931672?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/yJT_xwdiyiI/find-closest-and-fastest-repository-for.html" title="Find closest and fastest repository for your Debian" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/04/find-closest-and-fastest-repository-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4EQHc_eip7ImA9WhZSGU8.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-566226493555493173</id><published>2011-04-04T22:38:00.000+08:00</published><updated>2011-04-04T22:38:21.942+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-04T22:38:21.942+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux Mint" /><category scheme="http://www.blogger.com/atom/ns#" term="Debian" /><title>Update Debian Squeeze to Mint ~ a.k.a Mintify your Debian</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0eEAR_Kzlss1tReckO-5jrFWxAI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0eEAR_Kzlss1tReckO-5jrFWxAI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0eEAR_Kzlss1tReckO-5jrFWxAI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0eEAR_Kzlss1tReckO-5jrFWxAI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;/div&gt;&lt;div&gt;I've been willing to install a new linux for a while, more precisely a Linux Mint distrib for various reasons. Call me lazy i didn't wanted to download and burn a full DVD. So the came the idea to use a Debian install as a base (since there is a version called LMDE base on Debian instead of Ubuntu.&lt;br /&gt;
&lt;br /&gt;
At the time of this post, Debian has recently updated Squeeze to stable, so that the freshly baked Linux Mint isn't too far away (LMDE is supposed to be based on the current testing debian).&lt;br /&gt;
&lt;br /&gt;
If you want to follow the same steps as me, this post assumes a couple of things:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;You can and will use command line without fear&lt;/li&gt;
&lt;li&gt;You know what debian is and can read log messages or use test installer&lt;/li&gt;
&lt;li&gt;You computer is already connected to internet&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;br /&gt;
Some thanks to those two posts which i used as a base and mix together with my own twist:&lt;br /&gt;
&lt;a href="http://forums.linuxmint.com/viewtopic.php?f=141&amp;amp;t=59075"&gt;HOWTO: Create a custom, minimal LMDE install&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://koroshiyaitchy.wordpress.com/2011/01/06/mintifying-debian/"&gt;Mintifying Debian&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Enough talk, let's get down to it. First you'll need to download a ISO of Debian, i used the businesscard version. You can find other version fitting to your need / architecture here:&lt;br /&gt;
&lt;a href="http://www.debian.org/releases/squeeze/debian-installer/"&gt;http://www.debian.org/releases/squeeze/debian-installer/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
1) Download it, burn it or put it on a USB key, which ever you prefer and install debian.&lt;br /&gt;
&lt;br /&gt;
Once the install is completed, and you've added yourself as a sudoer ,you can proceed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) Then you may want to add the contrib and non-free Debian repositories by editing the file /etc/apt/sources.list and adding “contrib non-free” without quotes right at the end of each line ending with “main”.&lt;br /&gt;
&lt;br /&gt;
4) Next you add the Debian Multimedia and the Mint repositories. You can for instance create a file within /etc/apt/sources.list.d called “lmde.list” and add these two lines into it:&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;"&gt;deb http://packages.linuxmint.com/ debian main upstream import&lt;br /&gt;
deb http://www.debian-multimedia.org squeeze main non-free&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;5) Updates :&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: bash"&gt;sudo apt-get update
sudo apt-get install linuxmint-keyring
wget -c http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2010.12.26_all.deb
sudo dpkg -i debian-multimedia-keyring_2010.12.26_all.deb
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;Now the trick start here. Apparently when Squeeze went from testing to stable a particular package called "&lt;i&gt;&lt;b&gt;gstreamer0.10-pitfdll&lt;/b&gt;&lt;/i&gt;" has been removed from Debian repo cause the all meta package&amp;nbsp;&lt;b&gt;mint-meta-debian&lt;/b&gt; to fall to pieces. With some error message that look like:&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;The following packages have unmet dependencies:&lt;br /&gt;
mint-meta-debian : Depends: mint-meta-codecs but it is not going to be installed&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;
The following packages have unmet dependencies:&lt;br /&gt;
mint-meta-codecs : Depends: gstreamer0.10-pitfdll but it is not installable&lt;br /&gt;
E: Broken packages&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;But fear not, here's the solution:&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;wget -c http://debian.securedservers.com/debian/pool/contrib/g/gstreamer0.10-pitfdll/gstreamer0.10-pitfdll_0.9.1.1+cvs20080215-1_i386.deb&lt;/span&gt;&lt;br /&gt;
&lt;pre class="brush: bash"&gt;dpkg -i gstreamer0.10-pitfdll_0.9.1.1+cvs20080215-1_i386.deb
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Now you can safely proceeed to the Mintifying of your debian:&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;apt-get install mint-meta-debian&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;Enjoy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-566226493555493173?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/CsCwc03HQE4" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/566226493555493173?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/566226493555493173?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/CsCwc03HQE4/update-debian-squeeze-to-mint-aka.html" title="Update Debian Squeeze to Mint ~ a.k.a Mintify your Debian" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2011/04/update-debian-squeeze-to-mint-aka.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUFSHw7fip7ImA9WxNbGEU.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-9155210027493694148</id><published>2009-11-22T18:02:00.001+08:00</published><updated>2009-11-22T18:03:39.206+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-22T18:03:39.206+08:00</app:edited><title>Parallels Desktop: Garbled or no sound problem</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_8USj8ep4KCY5hPHgF_Uh3pkhnM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_8USj8ep4KCY5hPHgF_Uh3pkhnM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_8USj8ep4KCY5hPHgF_Uh3pkhnM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_8USj8ep4KCY5hPHgF_Uh3pkhnM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;br /&gt;
Last week I decided that I wanted to try Parallels Desktop on OS X. I wanted to test playing games in a VM on OS X. So I created a virtual machine with windows XP installed on it. I used a install CD I still had form the time I still had a PC.&lt;br /&gt;
&lt;br /&gt;
Everything worked out pretty, and the machine was up and kicking in no time, except for one thing, the sound. I search for quite some time on internet, including on Parallels forum before figuring it out.&lt;br /&gt;
&lt;br /&gt;
The problem I had was, I had either no sound at all, or some all garbled up sound. The multimedia wasn't detected properly. I tried different drivers, installed Realtek AC'97 Driver, and a couple of other, but nothing wotked. I kept getting crappy sound or nothing at all. If you ask me I prefered no sound at all to garbled sound. That's just terrible.&lt;br /&gt;
&lt;br /&gt;
Now the solution to my problem, and other in the past it seems is quite simple. The source of the problem is that Parallels Desktop (I'm using version 4) is emulating an Intel onboard sound card (Intel 82801BA/BAM AC'97 Audio Controller to be precise). And the Windows XP installation CD I used happens to be missing that particular driver (probably because it was an OEM cd from an old computer). So I just reinstalled my Parallels Desktop VM using a proper retail Windows XP installation CD, and it worked like a charm.&lt;br /&gt;
&lt;br /&gt;
Everything is now detected properly:&lt;br /&gt;
&lt;table border-style="none"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt;&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/_c6EoFREX61U/SwkKkhQwJ-I/AAAAAAAACUw/vH94dzpHttA/s1600/Parallels%20Desktop%20Driver%20details.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/_c6EoFREX61U/SwkKkhQwJ-I/AAAAAAAACUw/vH94dzpHttA/s320/Parallels%20Desktop%20Driver%20details.png" width="289" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/_c6EoFREX61U/SwkKk-Yb_VI/AAAAAAAACU0/fC6lQNcQhy0/s1600/Parallels%20Multimedia%20controller.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="224" src="http://3.bp.blogspot.com/_c6EoFREX61U/SwkKk-Yb_VI/AAAAAAAACU0/fC6lQNcQhy0/s320/Parallels%20Multimedia%20controller.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
Now everything is working properly and I was able to try out playing games inside a VM. And let me tell you it works just fine. So far i've tried playing Eve Online and DDO inside a VM and with decent details its quite fluid.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-9155210027493694148?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/lJdch2necEY" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/9155210027493694148?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/9155210027493694148?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/lJdch2necEY/parallels-desktop-garbled-or-no-sound.html" title="Parallels Desktop: Garbled or no sound problem" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_c6EoFREX61U/SwkKkhQwJ-I/AAAAAAAACUw/vH94dzpHttA/s72-c/Parallels%20Desktop%20Driver%20details.png" height="72" width="72" /><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2009/11/parallels-desktop-garbled-or-no-sound.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUQASX05eCp7ImA9WxNWGE4.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-7395258021924977038</id><published>2009-10-18T11:04:00.002+08:00</published><updated>2009-10-18T11:42:28.320+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-18T11:42:28.320+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Adsense" /><category scheme="http://www.blogger.com/atom/ns#" term="Tips And Tricks" /><category scheme="http://www.blogger.com/atom/ns#" term="Blog" /><title>How to get Adsense ads more relevant to your site content</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/B-cInnBDyC_XkqTpRKgvGeb9t4U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/B-cInnBDyC_XkqTpRKgvGeb9t4U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/B-cInnBDyC_XkqTpRKgvGeb9t4U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/B-cInnBDyC_XkqTpRKgvGeb9t4U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Adsense is a great tool to generate revenue on your pages, and very easy to use. A couple of click and editing into your site or blog (widget installation maybe), and you're good to go.&lt;br /&gt;
&lt;br /&gt;
But you may have noticed that something the ads displayed on your site by Adsense, are not that relevant, it not totally out of it. The reason why this happens, is because, Adsense just like Google (the search engine side of the business ;) ) uses bots to crawl on your site and analyze its content. Up to here nothing that you wouldn't expect. The catch is, everything that is on your site may not always be relevant content, and those bots have no way to identify what is and what's not.&lt;br /&gt;
&lt;br /&gt;
Naturally, the trick would be to be able to "guide" those bots in the right direction and clearly indicate the content they have to consider. This can be done with the help of two specific tags that you need to include into the code of your site. If you have a blog, that's around the body of your article, any part, box, div, etc.. that wraps what you want to be indexed. Those two tags are &lt;i&gt;&lt;/i&gt; and &lt;i&gt;.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
The explanation that follow are a bit specific to blogger since that's what I'm using, but the general procedure is similar whatever the blog or site.&lt;br /&gt;
&lt;br /&gt;
So in blogger you have to edit your template. If you don't know how to edit your template your can check &lt;a href="http://xiuxixiuxi.blogspot.com/2009/10/edit-your-blogger-template.html"&gt;this article&lt;/a&gt;. Now that you're editing your template you want to start searching the following:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: xml;"&gt;&amp;lt;data:post.body&amp;gt; &lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
And replace it with:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: xml;"&gt;&amp;lt;!-- google_ad_section_start--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;data:post.body/&amp;gt;
&amp;lt;!-- google_ad_section_end --&amp;gt; &lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Here you notice that we point for Adsense the content we want to be used for your ads. Now you want want to do the opposite instead, that is point to the sections you don't want to be considered. In order to do that you have to wrap the content to ignore the same way we wrapped the post's body above:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- google_ad_section_start(weight=ignore)--&amp;gt;&lt;br /&gt;
Your content to ignore goes here&lt;br /&gt;
&amp;lt;!-- google_ad_section_end --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And That's it. It is as simple as that. One important note is, the change in your ads won't be immediate, and it may take up to two weeks for the change to actually reflect in the content of your ads.&lt;br /&gt;
&lt;br /&gt;
I hope this will be useful to you, don't hesitate to drop me a line if you that post helped you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-7395258021924977038?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/03bVDh7vawc" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/7395258021924977038?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/7395258021924977038?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/03bVDh7vawc/how-to-get-adsense-ads-more-relevant-to.html" title="How to get Adsense ads more relevant to your site content" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2009/10/how-to-get-adsense-ads-more-relevant-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMNRXY_fSp7ImA9WxNWGUU.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-3777916820565377277</id><published>2009-10-14T17:08:00.002+08:00</published><updated>2009-10-20T05:41:34.845+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-20T05:41:34.845+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tips And Tricks" /><category scheme="http://www.blogger.com/atom/ns#" term="Plugins Blogger" /><category scheme="http://www.blogger.com/atom/ns#" term="Blog" /><title>Related post plugin for blogger</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IZaUG-aURK4uQzd3qJLaNSSBhiQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IZaUG-aURK4uQzd3qJLaNSSBhiQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IZaUG-aURK4uQzd3qJLaNSSBhiQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IZaUG-aURK4uQzd3qJLaNSSBhiQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;br /&gt;
Since I started using blogger, I've always wondered why this feature is not present by default. To me having a list of related post is very important, because that's a nice way to put forward more relevant content to you dear reader ;)&lt;br /&gt;
&lt;br /&gt;
So i've search on internet, and found a flurry of so called plugin or widget. The most common one seems to have been written by Hoctro. But none of those never really satisfied me.&lt;br /&gt;
&lt;br /&gt;
As a result I decided to write my own using a bit of Ajax query to make everything smooth and nice. The result is a plugin that display on articles pages (not on the front page for now) a list of post related to the current one. It is relying on the post labels and the google API to display thoses.&lt;br /&gt;
&lt;br /&gt;
And here it is:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: xml;"&gt;&amp;lt;b:if cond='data:blog.pageType == &amp;amp;quot;item&amp;amp;quot;'&amp;gt;

&amp;lt;div class='similiar'&amp;gt;

 &amp;lt;div class='widget-content'&amp;gt;
  &amp;lt;div id='relatedPosts' /&amp;gt; &amp;lt;br/&amp;gt;
  &amp;lt;div expr:id='&amp;amp;quot;relatedPosts_&amp;amp;quot; + data:post.id'/&amp;gt; &amp;lt;br/&amp;gt;

  &amp;lt;script type='text/javascript'&amp;gt;

  var blogURL = &amp;amp;quot;&amp;lt;data:blog.homepageUrl/&amp;gt;&amp;amp;quot;;
  var maxNumberOfLabels = 10;
  var nPost = 0;
  var maxPosts = 5;
  var numLabel = 0;
  var receivedResult = 0;

  var outputDone = false;

  var txt = document.createTextNode(&amp;amp;quot;You may also want to read:&amp;amp;quot;); 
  var ul = document.createElement(&amp;amp;#39;ul&amp;amp;#39;);
  var labelRelatedPost = document.createElement(&amp;amp;#39;h3&amp;amp;#39;);
  labelRelatedPost.appendChild(txt);
  var postsFound = [];

  function listEntries(result, postID) 
  { 

   var json = JSON.parse(result);

   receivedResult = receivedResult+1;

   // calculate the number of remaining post to add to the list
   var RemainingPosts = (maxPosts - nPost);
   var nPostToParse = (json.feed.entry.length &amp;amp;lt;= RemainingPosts) ? json.feed.entry.length : RemainingPosts;

   for (var i = 0; i &amp;amp;lt; RemainingPosts; i++) {
    var entry = json.feed.entry[i];
    if(entry)
    { 
     var postURL;
     var title = entry.title.$t

     // parse the link array to find the post URL
     for (var k = 0; k &amp;amp;lt; entry.link.length; k++) {
      if (entry.link[k].rel == &amp;amp;#39;alternate&amp;amp;#39;) {
       postURL = entry.link[k].href;
       break;
      }
     }

     // check the post is not the same as the current post
     if (postURL != location.href) 
     {
      if (postAlreadyKnown(postURL) == false)
      {
       nPost++;

       //alert("Other post found "+nPost);
       var li = document.createElement(&amp;amp;#39;li&amp;amp;#39;);
       var a = document.createElement(&amp;amp;#39;a&amp;amp;#39;);
       var txt = document.createTextNode(entry.title.$t);
       a.href = postURL; 
       a.appendChild(txt);
       li.appendChild(a);
       ul.appendChild(li);   
      }


     }
    }

   }

   // check if everything's been received
   if (receivedResult == numLabel ) {
    if (outputDone == false &amp;amp;amp;&amp;amp;amp; nPost &amp;amp;gt; 0) 
    {
     outputDone = true;
     var relatedPostSection =  'relatedPosts_'+postID;
     var relatedDiv = document.getElementById('relatedPosts_'+postID);
     if (relatedDiv) {
      relatedDiv.appendChild(labelRelatedPost);
      relatedDiv.appendChild(ul);
      
      //
      var providedBy = document.createElement(&amp;amp;#39;h5&amp;amp;#39;);
      var em = document.createElement(&amp;amp;#39;em&amp;amp;#39;);
      var a = document.createElement(&amp;amp;#39;a&amp;amp;#39;);
      a.href = "http://xiuxixiuxi.blogspot.com/2009/10/related-post-plugin-for-blogger.html"
      var txt = document.createTextNode("Provided by XiuxiXiuxi");
      a.appendChild(txt);
      em.appendChild(a);
      providedBy.appendChild(em);
      relatedDiv.appendChild(providedBy);
     }
    }
   }

  }

  function postAlreadyKnown(postURL) {
   for(var i= 0; i &amp;amp;lt; postsFound.length;i++)
   {
    if(postsFound[i] == postURL) 
    {
     return true;
    }
   }
   postsFound[postsFound.length] = postURL;
   return false;
  }

  function searchQuery(query, label) {

   var script = document.createElement(&amp;amp;#39;script&amp;amp;#39;);


   var xhr = new XMLHttpRequest();
   xhr.onreadystatechange = function() {

    if (xhr.readyState == 4) {
     // Your callback code goes here
     listEntries(xhr.responseText, &amp;amp;quot;&amp;lt;data:post.id/&amp;gt;&amp;amp;quot;);
    }
   }
   xhr.open(&amp;amp;#39;GET&amp;amp;#39;, query+ &amp;amp;#39;feeds/posts/default/-/&amp;amp;#39; + label + &amp;amp;#39;?alt=json&amp;amp;#39; , true);
   xhr.send(null);
  }



  &amp;lt;b:if cond='data:post.labels'&amp;gt;
  &amp;lt;data:postLabelsLabel/&amp;gt;
  &amp;lt;b:loop values='data:post.labels' var='label'&amp;gt;
  var textLabel = &amp;amp;quot;&amp;lt;data:label.name/&amp;gt;&amp;amp;quot;
  //alert(textLabel);
  if (numLabel &amp;amp;lt; maxNumberOfLabels) {
   searchQuery(blogURL, textLabel);
   numLabel++;
  }
  &amp;lt;/b:loop&amp;gt;
  &amp;lt;/b:if&amp;gt;
  &amp;lt;/script&amp;gt;
 &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/b:if&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
Now where to put that code. You need to edit your blog layout.To do that, go to your blogger dashboard and click on "Layout", click on "Edit HTML", and click on "Expand Widget Templates". Now search for:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: xml;"&gt;&amp;lt;data:post.body&amp;gt; &lt;/pre&gt;&lt;br /&gt;
and paste the code above just after that.&lt;br /&gt;
&lt;br /&gt;
And your done. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-3777916820565377277?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/mxKiwwKSCDs" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/3777916820565377277?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/3777916820565377277?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/mxKiwwKSCDs/related-post-plugin-for-blogger.html" title="Related post plugin for blogger" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2009/10/related-post-plugin-for-blogger.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0MNRnw5cCp7ImA9WxNWEkg.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-7651252002146789562</id><published>2009-10-11T16:49:00.002+08:00</published><updated>2009-10-11T16:58:17.228+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-11T16:58:17.228+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tips And Tricks" /><category scheme="http://www.blogger.com/atom/ns#" term="Plugins Blogger" /><category scheme="http://www.blogger.com/atom/ns#" term="Blog" /><title>Code Syntax Highlingting plugin</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CQJJewk0-oSxMnu0dYppMBwav2c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CQJJewk0-oSxMnu0dYppMBwav2c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CQJJewk0-oSxMnu0dYppMBwav2c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CQJJewk0-oSxMnu0dYppMBwav2c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;br /&gt;
If you post any source code on your blog (site) and want to have some syntax highlighting like this on your website then this posts is for you:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: js"&gt;alert("Hello World");
 // Example of code
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I will concentrate here on how to set it up for blogger but it's basically vadid for any website. More details on that at the end of the post. But let's talk about the plugin a bit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Supported Languages&lt;br /&gt;
&lt;/h2&gt;This plugin at the time I'm writing this article supports the following languages:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;ActionScript3 &lt;/li&gt;
&lt;li&gt;Bash/shell &lt;/li&gt;
&lt;li&gt;C# &lt;/li&gt;
&lt;li&gt;C++ &lt;/li&gt;
&lt;li&gt;CSS &lt;/li&gt;
&lt;li&gt;Delphi &lt;/li&gt;
&lt;li&gt;Diff &lt;/li&gt;
&lt;li&gt;Groovy  &lt;/li&gt;
&lt;li&gt;JavaScript &lt;/li&gt;
&lt;li&gt;Java  &lt;/li&gt;
&lt;li&gt;JavaFX  &lt;/li&gt;
&lt;li&gt;Perl  &lt;/li&gt;
&lt;li&gt;PHP  &lt;/li&gt;
&lt;li&gt;Plain &lt;/li&gt;
&lt;li&gt;PowerShell &lt;/li&gt;
&lt;li&gt;Python  &lt;/li&gt;
&lt;li&gt;Ruby  &lt;/li&gt;
&lt;li&gt;Scala &lt;/li&gt;
&lt;li&gt;SQL &lt;/li&gt;
&lt;li&gt;Visual Basic&lt;/li&gt;
&lt;li&gt;XML (as well as xslt, html, xhtml) &lt;/li&gt;
&lt;/ul&gt;Not bad heh ;) And there are much much more which haven't made they way to the official package.   &lt;br /&gt;
&lt;h2&gt;Installing the plugin &lt;/h2&gt;In order to set this up you will have to edit your template layout. To do that, go to your blogger dashboard and click on "Layout" and then click on "Edit HTML", and search for:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: xml;"&gt;]]&amp;gt;&amp;lt;/b:skin&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
and paste the following code.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: xml"&gt;&amp;lt;link href="http://alexgorbatchev.com/pub/sh/current/styles/shCore.css" rel="stylesheet" type="text/css"&amp;gt;
&amp;lt;link href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css" rel="stylesheet" type="text/css"&amp;gt;
&amp;lt;script src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js" type="text/javascript"&amp;gt;
&amp;lt;script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js' type='text/javascript'/&amp;gt;
&amp;lt;script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js' type='text/javascript'/&amp;gt;
&amp;lt;script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js' type='text/javascript'/&amp;gt;
&amp;lt;script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js' type='text/javascript'/&amp;gt;
&amp;lt;script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js' type='text/javascript'/&amp;gt;
&amp;lt;script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushVb.js' type='text/javascript'/&amp;gt;
&amp;lt;!-- add brushes here --&amp;gt;
&amp;lt;script type='text/javascript'&amp;gt;
SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.all();
&amp;lt;/script&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Using the plugin &lt;/h2&gt;Once you've completed previous step, all you have to do is to start writing a post, and when you have to put some code, switch to the "Edit HTML" tab and use pre tags as follow:   &lt;br /&gt;
&lt;pre class="brush: xml"&gt;&amp;lt;pre class="brush: js"&amp;gt;
 &amp;lt;!-- Your code goes here --&amp;gt;
&amp;lt;/pre&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
You need to change the language code (in this case js) to match the language you want to highlight.&lt;br /&gt;
&lt;br /&gt;
Make sure to replace all instances of &amp;lt; with &amp;amp;lt;.&lt;br /&gt;
&lt;br /&gt;
Don't worry if your text looks funny in the "Compose" tab, it's going to be fine when you few the post normally.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;h2&gt;Where to know more about it:&amp;nbsp; &lt;/h2&gt;This little baby is named SyntaxHighlighter ans it is the fruit of several years of Alex Gorbatchev efforts. You can find more on his &lt;a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter"&gt;website&lt;/a&gt;. You will find there the full list of scripts you can include to get syntax highlighting for different languages. There's also different theme css.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I hope this will be useful to you as well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-7651252002146789562?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/SdhDLU0ujbY" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/7651252002146789562?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/7651252002146789562?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/SdhDLU0ujbY/code-syntax-highlingting-plugin.html" title="Code Syntax Highlingting plugin" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2009/10/code-syntax-highlingting-plugin.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMMQHk6fyp7ImA9WxNXGEQ.&quot;"><id>tag:blogger.com,1999:blog-4194045693156146911.post-6433682537550689990</id><published>2009-10-07T14:54:00.000+08:00</published><updated>2009-10-07T14:54:41.717+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-07T14:54:41.717+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Regular Expression" /><title>2 greats tools to develop and test regular expressions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8Y3W4RwbsXrRtcWKNkPanCA5Dvg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8Y3W4RwbsXrRtcWKNkPanCA5Dvg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8Y3W4RwbsXrRtcWKNkPanCA5Dvg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8Y3W4RwbsXrRtcWKNkPanCA5Dvg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Regular expression are a very powerful tool that every developer should know, use, and I'd even dare say abuse. But just because they are useful doesn't mean they are easy to use and master. It can even be rather painful to develop and test them.&lt;br /&gt;
&lt;br /&gt;
This is mostly due to the lack of good tools to help test regular expression. By lack I mean that there is not a lot, but there's two that I've found pretty useful and up to the task.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Expresso&lt;/h2&gt;Expresso is a very need piece of software that allow you create test, and debug your regular expression. It has everything one may want to work with regular expressions:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_c6EoFREX61U/Ssv8Lo7aG2I/AAAAAAAACTw/JgxgrjrJmSA/s1600-h/expresso.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_c6EoFREX61U/Ssv8Lo7aG2I/AAAAAAAACTw/JgxgrjrJmSA/s400/expresso.PNG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;It has 3 differents tabs:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;the first one regular expression testing&lt;/li&gt;
&lt;li&gt;the second one is a regular expression designer&lt;/li&gt;
&lt;li&gt;the last one is your regular expression library, which contains a set of commonly used regular expression, but also the history of regular expression you've used recently&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp;It can even generate C# code to use the regular expression you've designed. You can export to several languages ( C#, VB, C++)&lt;br /&gt;
&lt;br /&gt;
All in all that the one I most often use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Rubular&lt;/h2&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;The second one is called Rubular and comes in the form of an online tool. It is much simpler and doesn't boast as much features as Expresso, but what it does it does well. If you just want a quick testing tool for your regular expression, without installing anything, then Rubular is what you want:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_c6EoFREX61U/Ssw6VtpAS1I/AAAAAAAACT4/rs12HWd0mV4/s1600-h/rubular.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_c6EoFREX61U/Ssw6VtpAS1I/AAAAAAAACT4/rs12HWd0mV4/s400/rubular.PNG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Quick &amp;amp; easy, straightforward and efficient.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now where to find those. For Expresso, you can find it &lt;a href="http://www.ultrapico.com/Expresso.htm"&gt;here&lt;/a&gt;, and for Rubular it's available at this &lt;a href="http://www.rubular.com/"&gt;address&lt;/a&gt;. I hope you find those tools useful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194045693156146911-6433682537550689990?l=xiuxixiuxi.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/vranK/~4/CP0lJTBHbbY" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/6433682537550689990?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4194045693156146911/posts/default/6433682537550689990?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/vranK/~3/CP0lJTBHbbY/2-greats-tools-to-develop-and-test.html" title="2 greats tools to develop and test regular expressions" /><author><name>Alex</name><uri>http://www.blogger.com/profile/11861570098974719573</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://4.bp.blogspot.com/-PXJoW_6FVmk/Ts5fFRxupHI/AAAAAAAACs4/PHTAns1ZBsY/s1600/73b34927f93107b8f704f2c5dfb4386c.png" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_c6EoFREX61U/Ssv8Lo7aG2I/AAAAAAAACTw/JgxgrjrJmSA/s72-c/expresso.PNG" height="72" width="72" /><feedburner:origLink>http://xiuxixiuxi.blogspot.com/2009/10/2-greats-tools-to-develop-and-test.html</feedburner:origLink></entry></feed>

