<?xml version="1.0"?>
<?xml-stylesheet href="http://bertrand.gotpike.org/static/rss.css" type="text/css"?>
<rss version="2.0">
  <channel><title>start</title><link>http://bertrand.gotpike.org/</link><description></description><generator>Fins 0.9.7</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><link>http://bertrand.gotpike.org//space/start/2014-12/mac_os_x_:_virtualbox__and_vagrant__crash_at_startup_with_error_ns_error_factory_not_registered__0x80040154_</link><guid isPermaLink="1">http://bertrand.gotpike.org//space/start/2014-12/mac_os_x_:_virtualbox__and_vagrant__crash_at_startup_with_error_ns_error_factory_not_registered__0x80040154_</guid><title>Mac OS X : VirtualBox (and Vagrant) crash at startup with error NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)</title><pubDate>Wed, 24 Dec 2014 04:55:57 -0500</pubDate><description>I daily use Vagrant (and thus, VirtualBox) to manage a bunch a Linux VMs for my daily work.&lt;p/&gt;
Today, i can't start Vagrant, due to a VirtualBox error. It crashes at startup with the following error :&lt;p/&gt;
NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)&lt;p/&gt;
Looking on the net, you'll find a load of webpages, mostly related to VirtualBox running on Linux boxen, giving obscure recipes to tweak symlinks and dealing with files permissions.&lt;p/&gt;
Those are mostly relevant to Linux systems, and I'd advise not to apply them on your MacOS X computer.&lt;p/&gt;
Instead:
&lt;ul class="star"&gt;
&lt;li&gt;launch Disk Utilities.app&lt;/li&gt;
&lt;li&gt;choose your drive on the left panel&lt;/li&gt;
&lt;li&gt;click on "Repair disk permissions" button&lt;p/&gt;&lt;/li&gt;
&lt;/ul&gt;This did the trick for me.
</description></item><item><link>http://bertrand.gotpike.org//space/start/2008-09-11/1</link><guid isPermaLink="1">http://bertrand.gotpike.org//space/start/2008-09-11/1</guid><title>Linksys WAP4400N Vs MacOS X 10.5 Leopard</title><pubDate>Thu, 11 Sep 2008 04:06:35 -0400</pubDate><description>I bought a &lt;b class="bold"&gt;Linksys WAP4400N&lt;/b&gt; WiFi access point for offering basic wireless networking in my company. Setup with WPA2 was plain easy and worked perfectly for my 10.4 PowerBook and some Windows XP guinea pigs using 802.11g.&lt;p class="paragraph"/&gt;
However, impossible to get it working with my two &lt;b class="bold"&gt;MacOS X 10.5 MacIntel&lt;/b&gt; machines, using 802.11n. It just sees the network, tries to connect and complains about some kind of timeout.&lt;p class="paragraph"/&gt;
&lt;div class="code"&gt;&lt;pre&gt;&lt;pre&gt;&#xD;
Aug 29 09:58:02 welcome System Preferences&amp;#91;581]: Error joining Linkeo: Delai de connexion (-6 timeout connecting)&#xD;
&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class="paragraph"/&gt;
&#xD;
Hopefully, there was a firmware update for the Linksys WAP4400N to version 1.2.14.&lt;p class="paragraph"/&gt;
I downloaded a firmware image from Linksys website labelled WAP4400N_Firmware_R1.2.14_01152008.img. It should be corrupted because i never managed to get it recognised by the Linksys device.&lt;p class="paragraph"/&gt;
Hopefully, there's a &lt;b class="bold"&gt;WAP4400N_Firmware_R1.2.14.9-ETSI_01202008.img&lt;/b&gt; firmware available on linksys-uk website which is usable.&lt;p class="paragraph"/&gt;
&lt;a href="Got it here" class="wiki_link_external" &gt;http://www-uk.linksys.com/servlet/Satellite?blobcol&lt;/a&gt;&lt;p class="paragraph"/&gt;
Since the firmware update, my 10.5 802.11n MacIntel work perfectly with the Linksys WAP4400N device.</description></item><item><link>http://bertrand.gotpike.org//space/start/2008-05-23/1</link><guid isPermaLink="1">http://bertrand.gotpike.org//space/start/2008-05-23/1</guid><title>MacOS X: Configuring Linksys SRW2024/SRW2048</title><pubDate>Fri, 23 May 2008 05:35:10 -0400</pubDate><description>We use a bunch of Linksys SRW2024/SRW2048 at work, and they are doing their jobs quite pretty well.&lt;p/&gt;
The interface is web-based, and is known to work only with Internet Explorer under MS-Windows.&lt;p/&gt;
Hopefully, if you'd like to configure your linksys switch with MacOS X, &lt;a href="Opera" class="wiki_link_external" &gt;http://www.opera.com/&lt;/a&gt; does quite a good job at it.&lt;p/&gt;
</description></item><item><link>http://bertrand.gotpike.org//space/start/2007-12-11/1</link><guid isPermaLink="1">http://bertrand.gotpike.org//space/start/2007-12-11/1</guid><title>Linux: multiple bonding interfaces</title><pubDate>Tue, 11 Dec 2007 06:46:11 -0500</pubDate><description>I'm using bonding on my Linux servers for quite some time now, and it's really helpful in case of a switch, cable or network card failure.&lt;p class="paragraph"/&gt;
I just decided it would be time to add that to my 4 interfaces Linux router.&lt;p class="paragraph"/&gt;
The machine is a Dell PowerEdge 1950 running GNU/Linux Debian etch. I just added a second Intel 1000GT quad port card, so that the machine now sport 10 1Gb/s ethernet ports. The goal was to bond 2 links, using a total of 6 interfaces and keeping 4 of them free.&lt;p class="paragraph"/&gt;
Adding the first bonding interface was plain easy, as usual. In fact, it was easier than usual because the bonding module were already compiled in, configured and loaded, the bond0 interface already created. In fact, that's what caused me trouble :)&lt;p class="paragraph"/&gt;
Adding the second one was more problematic: i never used more than one bonding interface to a Linux machine and didn't thought it could be problematic before trying.&lt;p class="paragraph"/&gt;
While trying to run ifenslave on bond1: i got the following error:&#xD;
&lt;div class="code"&gt;&lt;pre&gt;&lt;pre&gt;&#xD;
Master 'bond1': Error: handshake with driver failed. Aborting&#xD;
&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class="paragraph"/&gt;
&#xD;
The error is not quite user-friendly. You really imagine you've now a big big complicated problem.&#xD;
More, when using your friend google, you only find a total of 20 results composed of asian pages you don't understand and&amp;#8230; source code :)&#xD;
This really help you to think you're lost.&lt;p class="paragraph"/&gt;
That's obviously not the case.&lt;p class="paragraph"/&gt;
Just got to the bonding module configuration again. I've never mentionned how much "max_bonds" i wanted. The default is one, thus, only the bond0 interface was created.&lt;p class="paragraph"/&gt;
I just added the following at the end of the /etc/modprobe.d/aliases file:&#xD;
&lt;div class="code"&gt;&lt;pre&gt;&lt;pre&gt;&#xD;
 alias bond0 bonding&#xD;
 alias bond1 bonding&#xD;
 alias bond2 bonding&#xD;
 alias bond3 bonding&#xD;
 alias bond4 bonding&#xD;
 options bonding mode=1 miimon=100 downdelay=200 updelay=200 max_bonds=5&#xD;
&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class="paragraph"/&gt;
&#xD;
Now works as expected.&lt;p class="paragraph"/&gt;
Don't forget to read Documentation/networking/bonding.txt in the kernel source.</description></item><item><link>http://bertrand.gotpike.org//space/start/2007-03-16/1</link><guid isPermaLink="1">http://bertrand.gotpike.org//space/start/2007-03-16/1</guid><title>Pike: Generate logins from wide strings</title><pubDate>Fri, 16 Mar 2007 00:00:00 -0400</pubDate><description>I had hard time to find it back using Google, so i'm putting it here since that's quite interresting:&lt;p/&gt;
&lt;div class="code"&gt;&lt;pre&gt;&lt;pre&gt;
$ pike
Pike v7.6 release 104 running Hilfe v3.5 (Incremental Pike Frontend)
&amp;gt; (&lt;b&gt;&lt;font color=darkgreen&gt;string&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color=darkbrown&gt;&lt;/font&gt;&lt;/b&gt;)filter((&lt;b&gt;&lt;font color=darkgreen&gt;array&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color=darkbrown&gt;&lt;/font&gt;&lt;/b&gt;)Unicode.normalize(&lt;i&gt;&lt;font color=darkred&gt;"&#xC5; i &#xE5;a &#xE4; e &#xF6;."&lt;/font&gt;&lt;/i&gt;, &lt;i&gt;&lt;font color=darkred&gt;"DK"&lt;/font&gt;&lt;/i&gt;), `&amp;lt;, 256);
(1) Result: &lt;i&gt;&lt;font color=darkred&gt;"A i aa a e o."&lt;/font&gt;&lt;/i&gt;
&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p/&gt;
Original thread on the &lt;a href="Pike language mailing list" class="wiki_link_external" &gt;http://pike.ida.liu.se/forums/&lt;/a&gt;:&lt;p/&gt;
&lt;span class="nobr"&gt;&lt;img height="9" width="8" src="/static/images/Icon-Extlink.png" alt="&amp;#91;external]"/&gt;&lt;a href="http://arcknowledge.com/gmane.comp.lang.pike.user/2006-11/msg00016.html"&gt;http://arcknowledge.com/gmane.comp.lang.pike.user/2006-11/msg00016.html&lt;/a&gt;&lt;/span&gt;</description></item><item><link>http://bertrand.gotpike.org//space/start/2006-08-18/1</link><guid isPermaLink="1">http://bertrand.gotpike.org//space/start/2006-08-18/1</guid><title>Coldplay Vs Kraftwerk</title><pubDate>Fri, 18 Aug 2006 08:34:32 -0400</pubDate><description>Do you like Coldplay? Kraftwerk?&lt;p class="paragraph"/&gt;
Did you ever noticed some similarities in Coldplay's &lt;b class="bold"&gt;Talk&lt;/b&gt; and Kraftwerk's &lt;b class="bold"&gt;Computer Love&lt;/b&gt;?&lt;p class="paragraph"/&gt;
&lt;a href="PartyBen" class="wiki_link_external" &gt;http://partyben.com/&lt;/a&gt; did. Check out his &lt;b class="bold"&gt;&lt;a href="Computer Talk" class="wiki_link_external" &gt;http://www.partyben123.com/PartyBen-ComputerTalk.mp3&lt;/a&gt;&lt;/b&gt; bootleg, it's really nice.</description></item><item><link>http://bertrand.gotpike.org//space/start/2006-08-16/1</link><guid isPermaLink="1">http://bertrand.gotpike.org//space/start/2006-08-16/1</guid><title>iproute2 debugging</title><pubDate>Wed, 16 Aug 2006 05:03:59 -0400</pubDate><description>While adding some special routes for some machines i figured some errors on the router:&lt;p class="paragraph"/&gt;
&lt;div class="code"&gt;&lt;pre&gt;&lt;pre&gt;&#xD;
kernel: martian source 6827efd8 &lt;b&gt;&lt;font color=darkblue&gt;for&lt;/font&gt;&lt;/b&gt; f738d456, dev ppp0&#xD;
&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class="paragraph"/&gt;
&#xD;
Some comments found on the net stated these were MAC addresses, while it appears those was too short. More, i couldn't find something that look like that in our servers MAC addresses.&lt;p class="paragraph"/&gt;
The light came after installing Pike's &lt;a href="IP.v4" class="wiki_link_external" &gt;http://modules.gotpike.org/module_info.html?module_id&lt;/a&gt; using &lt;a href="monger" class="wiki_link_external" &gt;http://modules.gotpike.org/docs/UsingMonger.html&lt;/a&gt;.&lt;p class="paragraph"/&gt;
&lt;div class="code"&gt;&lt;pre&gt;&lt;pre&gt;&#xD;
$ pike&#xD;
Pike v7.6 release 86 running Hilfe v3.5 (Incremental Pike Frontend)&#xD;
&amp;gt; IP.v4.Address(0x6827efd8);&#xD;
(1) Result: IP.v4.Address(&lt;i&gt;&lt;font color=darkred&gt;"104.39.239.216"&lt;/font&gt;&lt;/i&gt;)&#xD;
&amp;gt; IP.v4.Address(0xf738d456);&#xD;
(2) Result: IP.v4.Address(&lt;i&gt;&lt;font color=darkred&gt;"247.56.212.86"&lt;/font&gt;&lt;/i&gt;)&#xD;
&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class="paragraph"/&gt;
&#xD;
It's now more clear that my router bothers about one of Google's IP (216.239.39.104) talking to my ppp0 IP (86.212.56.247) on the ppp0 interface.&lt;p class="paragraph"/&gt;
Now, i can make more tests using &lt;b class="bold"&gt;ip route get&lt;/b&gt; pointed out by &lt;b class="bold"&gt;redax&lt;/b&gt; on #pike:&lt;p class="paragraph"/&gt;
&lt;div class="code"&gt;&lt;pre&gt;&lt;pre&gt;&#xD;
&lt;font color=brown&gt;# ip route get 247.56.212.86 from 216.239.39.104 iif ppp0&#xD;
&lt;/font&gt;RTNETLINK answers: Invalid argument&#xD;
&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class="paragraph"/&gt;
&#xD;
Fixing this is a different story, but i can now name what's wrong.&#xD;
</description></item><item><link>http://bertrand.gotpike.org//space/start/2006-08-08/1</link><guid isPermaLink="1">http://bertrand.gotpike.org//space/start/2006-08-08/1</guid><title>MacOS X: Bengali font</title><pubDate>Tue, 8 Aug 2006 05:57:43 -0400</pubDate><description>How to be able to visit Bengali websites using Safari?&#xD;
&lt;ul class="minus"&gt;
&lt;li&gt;download a Bengli font on &lt;span class="nobr"&gt;&lt;img height="9" width="8" src="/static/images/Icon-Extlink.png" alt="&amp;#91;external]"/&gt;&lt;a href="http://salrc.uchicago.edu/resources/fonts/available/bengali/"&gt;http://salrc.uchicago.edu/resources/fonts/available/bengali/&lt;/a&gt;&lt;/span&gt; or another location;&lt;/li&gt;
&lt;li&gt;put the font in /Library/Fonts/ if you have administrator rights, ~/Library/Fonts otherwise;&lt;/li&gt;
&lt;li&gt;reload your Bengali page;&lt;/li&gt;
&lt;/ul&gt;Enjoy Wikipedia in Bengali: &lt;span class="nobr"&gt;&lt;img height="9" width="8" src="/static/images/Icon-Extlink.png" alt="&amp;#91;external]"/&gt;&lt;a href="http://bn.wikipedia.org/"&gt;http://bn.wikipedia.org/&lt;/a&gt;&lt;/span&gt;&lt;p class="paragraph"/&gt;
Just in case you mind, i don't read bengali.</description></item><item><link>http://bertrand.gotpike.org//space/start/2006-07-06/1</link><guid isPermaLink="1">http://bertrand.gotpike.org//space/start/2006-07-06/1</guid><title>reiserfsck --rebuild-tree and when backup saves your life</title><pubDate>Thu, 6 Jul 2006 05:29:57 -0400</pubDate><description>After a powerfailure on my main file server, reiserfsck said some errors was found on a reiserfs partition, and &lt;b class="bold"&gt;reiserfsck --rebuild-tree&lt;/b&gt; was required.&lt;p class="paragraph"/&gt;
Off course, RAID 1 doesn't help in this case.&lt;p class="paragraph"/&gt;
The reiserfsck man page says you'd better backup your data before proceeding with &lt;b class="bold"&gt;--rebuild-tree&lt;/b&gt;.&lt;p class="paragraph"/&gt;
__Believe them__.&lt;p class="paragraph"/&gt;
Following this advice, i hopefully made a last backup before proceeding. The reiserfs partition was perfectly readable, except some files.&lt;p class="paragraph"/&gt;
Crawling the web, i learned on multiple sites that until &lt;b class="bold"&gt;reiserfsck --rebuild-tree&lt;/b&gt; hasn't finished it's job, the partition was unusable at all.&lt;p class="paragraph"/&gt;
This operation really takes a long time. Don't estimate the time remaining on the number on remaining blocks and the blocks/seconds. Mine was stuck for many hours on pass #2, eating as much as CPU as possible.&lt;p class="paragraph"/&gt;
Waiting for more than 12 hours for repairing a 200GB partition was fruitless: it ended up saying there were not enough space left on the drive. Not only the drive had a powerfailure while writing data, but some people here were uploading lots of data and there were very little space left (around 5MB). That's something like Murphy's law.&lt;p class="paragraph"/&gt;
The backup was put in place, i strongly believed the original reiserfs partition were lost forever. I better understand now the amount of blocks reserved for root on ext2/ext3 filesystems. I think i'll have a look if this kind of option is available on reiser, too.&lt;p class="paragraph"/&gt;
I relaunched the check, mostly for educational purpose. Noone were complaining about lack of data nor data corruption on the backup.&lt;p class="paragraph"/&gt;
It runned all the night, and on the next morning the drive was &lt;b class="bold"&gt;totally fixed&lt;/b&gt;.&lt;p class="paragraph"/&gt;
OK, &lt;b class="bold"&gt;reiserfsck --rebuild-tree&lt;/b&gt; did it's job. Thanx to all reiserfs crew.&#xD;
It didn't ate data, but it took almost 24 hours to do that, an amount of time i couldn't make my users wait for.&lt;p class="paragraph"/&gt;
I discovered i'm now too old to live with the fsck adrenalin :) I hereby promise to make stronger backups now.&lt;p class="paragraph"/&gt;
Better spend some minutes a day backuping and making sure it's backuped than loose many hours of your life and hours/weeks/month/years of others people work on a power/hard drive failure.&#xD;
</description></item><item><link>http://bertrand.gotpike.org//space/start/2006-06-29/1</link><guid isPermaLink="1">http://bertrand.gotpike.org//space/start/2006-06-29/1</guid><title>Fink: pike7.6-7.6.86-6 - GTK improved</title><pubDate>Thu, 29 Jun 2006 08:23:21 -0400</pubDate><description>&lt;b class="bold"&gt;GTK.GlArea&lt;/b&gt; and &lt;b class="bold"&gt;GTK.GladeXML&lt;/b&gt; are now supported. As a drawback, they can't be dissociated from the GTK support.&#xD;
Since these features depends on &lt;b class="bold"&gt;libglade-shlibs&lt;/b&gt; once built, the &lt;b class="bold"&gt;pike7.6-gtk&lt;/b&gt; splitoff has been created.&lt;p class="paragraph"/&gt;
In short, the following command:&#xD;
&lt;div class="code"&gt;&lt;pre&gt;&lt;pre&gt;&#xD;
sudo fink install pike7.6-gtk&#xD;
&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class="paragraph"/&gt;
enables GTK, GTK.GlArea and GTK.GladeXML.&lt;p class="paragraph"/&gt;
More, &lt;b class="bold"&gt;gtkglarea&lt;/b&gt; and &lt;b class="bold"&gt;libglade&lt;/b&gt; (and their dependencies...) are now required for building pike7.6 from source.&lt;p class="paragraph"/&gt;
&lt;div class="code"&gt;&lt;pre&gt;&lt;pre&gt;&#xD;
features:&#xD;
dynamic loading..... yes&#xD;
threads............. yes (posix)&#xD;
signal handler...... wait thread&#xD;
cdebug.............. yes&#xD;
rtldebug............ no&#xD;
dmalloc............. no&#xD;
mmx................. no (no mmx.h found)&#xD;
byte code format.... ppc32&#xD;
module reloc........ no&#xD;
use machine code.... yes&#xD;
&lt;b&gt;&lt;font color=darkgreen&gt;int &lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color=darkbrown&gt;type............&lt;/font&gt;&lt;/b&gt; long (4 bytes)&#xD;
&lt;b&gt;&lt;font color=darkgreen&gt;float &lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color=darkbrown&gt;type..........&lt;/font&gt;&lt;/b&gt; double (8 bytes) (ieee big endian)&#xD;
pointer size........ 4 bytes&#xD;
svalue size......... 12 bytes (2+2+8)&lt;p class="paragraph"/&gt;
Bz2................. yes (using libbz2)&#xD;
DVB................. no (dependencies failed)&#xD;
FFmpeg.............. yes (using libavcodec)&#xD;
GLUT................ no (dependencies failed)&#xD;
GTK................. yes&#xD;
GTK.GlArea.......... yes&#xD;
GTK.GladeXML........ yes&#xD;
Gdbm................ yes&#xD;
Gmp (bignums)....... yes (version 4.1.3, using libgmp)&#xD;
Gnome............... no (applet-widget.h not found)&#xD;
Gz.................. yes (libz)&#xD;
Image............... yes&#xD;
Image.FreeType...... yes&#xD;
Image.GIF........... yes&#xD;
Image.JPEG.......... yes&#xD;
Image.SVG........... yes&#xD;
Image.TIFF.......... yes&#xD;
Image.TTF........... yes&#xD;
Image.XFace......... yes&#xD;
Java................ yes (/System/Library/Frameworks/JavaVM.framework/Versions/1&#xD;
.5.0/../../JavaVM )&#xD;
Kerberos............ yes&#xD;
MIME................ yes&#xD;
Math................ yes&#xD;
Math.Transforms.FFT. yes&#xD;
Mird................ no (libmird/mird.h not found)&#xD;
Mysql............... yes (libmysqlclient)&#xD;
Nettle.............. yes&#xD;
Odbc................ yes&#xD;
Oracle.............. no (dependencies failed)&#xD;
PDF.PDFlib.......... yes&#xD;
PDF.Panda........... no (dependencies failed)&#xD;
Perl................ yes&#xD;
Postgres............ yes&#xD;
Regexp.PCRE......... yes (libpcre)&#xD;
SDL................. yes&#xD;
SDL_mixer........... no (dependencies failed)&#xD;
Ssleay.............. no (use --with-ssleay to compile it)&#xD;
sybase.............. no (dependencies failed)&#xD;
&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class="paragraph"/&gt;
&#xD;
As usual, build instructions on &lt;span class="nobr"&gt;&lt;img height="9" width="8" src="/static/images/Icon-Extlink.png" alt="&amp;#91;external]"/&gt;&lt;a href="http://www.gotpike.org/PikeWiki/index.pike?page=Installing%20Pike"&gt;http://www.gotpike.org/PikeWiki/index.pike?page=Installing%20Pike&lt;/a&gt;&lt;/span&gt;</description></item></channel>
</rss>
