tag:blogger.com,1999:blog-72122949476457192712024-02-20T19:18:14.979-08:00Engineeringzowershttp://www.blogger.com/profile/16626494736053813806noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-7212294947645719271.post-90074522504733255132010-01-15T20:48:00.001-08:002010-01-15T20:53:06.523-08:00python craziness<pre><br />class f:<br /> def __init__( self, f ): self.f = f<br /><br />class v:<br /> def f( self ): return f( self )<br /><br />print v()<br />print v().f()<br />print v().f().f<br /></pre><br />Output:<br /><pre><br /><__main__.v instance at 0x006B7120><br /><__main__.f instance at 0x006B7148><br /><__main__.v instance at 0x006B7148><br /></pre>zowershttp://www.blogger.com/profile/16626494736053813806noreply@blogger.com2tag:blogger.com,1999:blog-7212294947645719271.post-12692235325728521242009-02-21T08:42:00.000-08:002009-02-21T08:58:52.414-08:00MiroThere is an interesting open-source free HD video player called Miro.<br />It works allows to subscribe to video RSS feeds through companion site Miro Guide, which contains a lot of interesting video feeds.<br /><br />Miro player is available for most Linux distros, Windows and Mac OS X.<br /><br />Miro: <a href="http://www.getmiro.com/">http://www.getmiro.com/</a><br />Miro Guide: <a href="https://miroguide.com/">https://miroguide.com/</a><br /><br /><center><embed src="http://blip.tv/play/t2Hr0lQA" type="application/x-shockwave-flash" width="550" height="397" allowscriptaccess="always" allowfullscreen="true"></embed></center>zowershttp://www.blogger.com/profile/16626494736053813806noreply@blogger.com1tag:blogger.com,1999:blog-7212294947645719271.post-83330750521640802712009-01-27T16:56:00.000-08:002009-01-27T17:17:37.794-08:00Enabling MP3 audio CD importing in BansheeTo be able to import audio CDs in <a href="http://banshee-project.org/">Banshee Media Player</a> install gstreamer0.10-lame: GStreamer lame plugins using<br /><code>sudo aptitude install gstreamer0.10-lame</code><br />then restart Banshee and select Edit/Preferences/Audio CD/"MP3 (LAME Encoder)".zowershttp://www.blogger.com/profile/16626494736053813806noreply@blogger.com0tag:blogger.com,1999:blog-7212294947645719271.post-69529467883181122802009-01-27T16:46:00.000-08:002009-01-27T17:09:21.113-08:00Enabling Xvid files in Xine and KaffeineTo allow xine and kaffeine to play video files encoded using <a href="http://xvid.org/">Xvid codec</a> install libxine1-ffmpeg and libavutil49 using<br /><code>sudo aptitude install libxine1-ffmpeg libavutil49</code><br />See also: <a href=http://bugs.debian.org/512946>#512946<br />[libavcodec51] Undefined symbols with latest libavutil49</a>zowershttp://www.blogger.com/profile/16626494736053813806noreply@blogger.com1tag:blogger.com,1999:blog-7212294947645719271.post-83071289473183260392008-12-10T17:16:00.000-08:002009-01-27T17:05:49.104-08:00HowTo Uninstall Internet Explorer 6 on WINETo uninstall IE6 under WINE do the following:<br /><li> Edit ~/.wine/system.reg<br /><li> Search for the following string in the file: <span style="font-weight:bold;">"ComponentID"="BASEIE40_W2K"</span><br />You will find a section with following content:<br /><code>[Software\\Microsoft\\Active Setup\\Installed Components\\{89820200-ECBD-11cf-8B85-00AA005B4383}] 1228955475<br />@="Internet Explorer 6"<br />"ComponentID"="BASEIE40_W2K"<br /><span style="font-weight:bold;">"IsInstalled"=dword:00000001</span><br />"Locale"="en"<br />"StubPath"="C:\\windows\\system32\\ie4uinit.exe"<br />"Version"="6,0,2800,1106"</code><br /><li> Change <span style="font-weight:bold;">"IsInstalled"=dword:00000001</span> to <span style="font-weight:bold;">"IsInstalled"=dword:00000000</span>zowershttp://www.blogger.com/profile/16626494736053813806noreply@blogger.com2