<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-25253594</id><updated>2012-01-27T16:43:32.828+01:00</updated><category term='debian'/><category term='linux'/><category term='java'/><category term='photography'/><category term='development'/><title type='text'>Nada</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-25253594.post-5781763128176167305</id><published>2011-08-29T16:26:00.002+02:00</published><updated>2011-08-29T16:46:43.421+02:00</updated><title type='text'>Ubuntu, Eclipse, Subclipse</title><content type='html'>&lt;span class="Apple-style-span" &gt;Subclipse 1.6.18 installed on Eclipse 3.7 on Ubuntu didn't work complaining about:&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;org.tigris.subversion.javahl.ClientException: svn: REPORT of '$FILENAME_REMOVED': 400 Bad Request ($REPO_URL_REMOVED)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;Installing 'libsvn-java' package and changing 'SVN Interface' in Eclipse ('Window -&amp;gt; Preferences -&amp;gt; SVN') to  JavaHL (JNI) helps.&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/25253594-5781763128176167305?l=anshee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/5781763128176167305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25253594&amp;postID=5781763128176167305' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/5781763128176167305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/5781763128176167305'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/2011/08/ubuntu-eclipse-subclipse.html' title='Ubuntu, Eclipse, Subclipse'/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25253594.post-1615943172328139112</id><published>2011-05-05T14:23:00.006+02:00</published><updated>2011-05-05T14:47:13.889+02:00</updated><title type='text'></title><content type='html'>&lt;div  style="text-align: justify; font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;If your Node Manager complains during start-up that it cannot read its state:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;p  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;java.io.IOException: Invalid state file format. State file contents:&lt;br /&gt;at weblogic.nodemanager.common.StateInfo.load(StateInfo.java:135)&lt;br /&gt;at weblogic.nodemanager.server.ServerMonitor.loadStateInfo(ServerMonitor.java:475)&lt;br /&gt;at weblogic.nodemanager.server.ServerMonitor.isCleanupAfterCrashNeeded(ServerMonitor.java:139)&lt;br /&gt;at weblogic.nodemanager.server.ServerManager.recoverServer(ServerManager.java:255)&lt;br /&gt;at weblogic.nodemanager.server.DomainManager.initialize(DomainManager.java:103)&lt;br /&gt;at weblogic.nodemanager.server.DomainManager.(DomainManager.java:55)&lt;br /&gt;at weblogic.nodemanager.server.NMServer.initDomains(NMServer.java:219)&lt;br /&gt;at weblogic.nodemanager.server.NMServer.start(NMServer.java:199)&lt;br /&gt;at weblogic.nodemanager.server.NMServer.main(NMServer.java:355)&lt;br /&gt;at weblogic.NodeManager.main(NodeManager.java:31)&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;then you need to remove the following file:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;d:\bea\user_projects\domains\$DOMAIN_NAME\servers\C_0-S0\data\nodemanager\C_0-S0.state&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25253594-1615943172328139112?l=anshee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/1615943172328139112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25253594&amp;postID=1615943172328139112' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/1615943172328139112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/1615943172328139112'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/2011/05/if-your-node-manager-complains-during.html' title=''/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25253594.post-5927571463078011689</id><published>2008-05-23T21:26:00.003+02:00</published><updated>2008-05-23T21:35:22.705+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>So i upgraded ATI drivers</title><content type='html'>... and all I got was this lousy, corrupted display in Google Earth. Sigh.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_0NNzIbQ5Q2g/SDcbbyD5oEI/AAAAAAAAAA0/j1ZebFVtaRw/s1600-h/GE_corrupted-display0.png"&gt;&lt;br /&gt;&lt;img src="http://bp1.blogger.com/_0NNzIbQ5Q2g/SDcbbyD5oEI/AAAAAAAAAA0/j1ZebFVtaRw/s320/GE_corrupted-display0.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5203658058558447682" /&gt;&lt;/a&gt; &lt;br /&gt;Thankfully, it's usable, ie. it flickers  briefly and only becomes very annoying when there are lots of lines (roads, borders) on the screen. But still: sigh.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25253594-5927571463078011689?l=anshee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/5927571463078011689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25253594&amp;postID=5927571463078011689' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/5927571463078011689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/5927571463078011689'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/2008/05/so-i-upgraded-ati-drivers.html' title='So i upgraded ATI drivers'/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_0NNzIbQ5Q2g/SDcbbyD5oEI/AAAAAAAAAA0/j1ZebFVtaRw/s72-c/GE_corrupted-display0.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25253594.post-4001828491585675264</id><published>2008-05-22T21:56:00.004+02:00</published><updated>2008-05-22T22:06:28.819+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>ATI proprietary drivers on Debian</title><content type='html'>&lt;strong&gt;&lt;br /&gt;1) get binary package from ATI&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;2) generate packages:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ ./ati-driver-installer-8-5-x86.x86_64.run --buildpkg Debian/etch&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;3) install generated packages&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ wajig install fglrx-driver_8.493-1_i386.deb fglrx-amdcccle_8.493-1_i386.deb fglrx-driver-dev_8.493-1_i386.deb fglrx-kernel-src_8.493-1_i386.deb&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;If you installed fglrx-glx from official Debian repos before (like my experimentally inclined self) you may get an error with clashing diversions (see &lt;a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475007"&gt;bug475007&lt;/a&gt;):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;dpkg-divert: `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/diversions/libGL.so.1.2 by fglrx-driver' clashes with `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/diversions/libGL.so.1.2 by fglrx-glx'&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Remove the offending diversion then:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ dpkg-divert --remove /usr/lib/libGL.so.1.2&lt;br /&gt;Removing `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/diversions/libGL.so.1.2 by fglrx-glx'&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;4) compile kernel module&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;After installing fglrx-kernel-src you should have module source tarball under /usr/src:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ ls -la fgl*&lt;br /&gt;-rw-rw-r-- 1 root root 1228049 2008-05-22 16:04 fglrx.tar.bz2&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Make sure this is the right one, module-assistant by default operates on source found under /usr/src. You can change this behavior via &lt;code&gt;MOD_SRCDIR&lt;/code&gt; environment variable. Now build it (&lt;strong&gt;do not&lt;/strong&gt; m-a update or m-a auto-install because it would download source from repo):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ m-a build,install fglrx-kernel-src&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;5) Hold packages&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Put manually generated packages on hold so they won't get auto-updated during your usual update routine&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ wajig  hold fglrx-amdcccle fglrx-kernel-src fglrx-driver fglrx-driver-dev&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;or, if you don't use &lt;code&gt;wajig&lt;/code&gt;:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ echo "fglrx-amdcccle hold" | dpkg --set-selections&lt;br /&gt;$ echo "fglrx-kernel-src hold" | dpkg --set-selections&lt;br /&gt;$ echo "fglrx-driver hold" | dpkg --set-selections&lt;br /&gt;$ echo "fglrx-driver-dev hold" | dpkg --set-selections&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;6. update xorg.conf&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;If you don't have proper entries in your xorg.conf yet, create them using&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ aticonfig --initial&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;7. reboot&lt;br /&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25253594-4001828491585675264?l=anshee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/4001828491585675264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25253594&amp;postID=4001828491585675264' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/4001828491585675264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/4001828491585675264'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/2008/05/ati-proprietary-drivers-on-debian.html' title='ATI proprietary drivers on Debian'/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25253594.post-6797907639023491600</id><published>2008-05-02T22:04:00.013+02:00</published><updated>2008-05-02T23:12:55.863+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>Multiple versions of Java on Debian</title><content type='html'>Goal: To install both Java6 and Java7 from Sun and configure a simple way to change which one is used as system default.&lt;br /&gt;&lt;br /&gt;Procedure:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;I. Install Java6.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;After Sun went GPL with Java, Debian started to include it in the repos, but it usually seriously lags behind, so we will install Java from Sun binary packages which can be downloaded from Sun's website. For this we will need two packages: &lt;i&gt;fakeroot&lt;/i&gt; and&lt;i&gt; java-package&lt;/i&gt;. The whole process is described &lt;a href="http://www.debian-administration.org/articles/142"&gt;here&lt;/a&gt; and in short looks like:&lt;br /&gt;&lt;br /&gt;1) as a non-root user copy *.bin file to the directory where you have write permission&lt;br /&gt;2) still as a non-root:&lt;br /&gt;&lt;code&gt;$ fakeroot make-jpkg $name_of_java_binary_package&lt;/code&gt;&lt;br /&gt;3) accept licence, wait a while when .deb builds&lt;br /&gt;4) as a root install .deb created in pt.3&lt;br /&gt;&lt;br /&gt;Remember though that there are some packages that depend explicitly on '&lt;i&gt;sun-jre-1.6&lt;/i&gt;' (package provided by java from Debian repositories), while java created with&lt;i&gt; java-package&lt;/i&gt; provides more general '&lt;i&gt;j2re1.6&lt;/i&gt;'. There are also packages that depend specifically on GNU Java (&lt;i&gt;scala&lt;/i&gt; for&lt;a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=46455"&gt; example&lt;/a&gt;) so installing those will pull whole new Java stacks. Did anyone say 'dependency mess'?&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;II. Install java7.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Above works like charm for java6, but will fail with java7 because &lt;i&gt;java-package&lt;/i&gt; knows nothing about java7 yet. We will have to prepare the configuration ourselves. Basing on info found &lt;a href="http://claus.freakempire.de/2007/04/19/java-package-linux-java-jre-version-6-update-1/"&gt;here &lt;/a&gt;that's what we're going to do:&lt;br /&gt;&lt;br /&gt;1) use the configuration for java6 as the basis:&lt;br /&gt;&lt;code&gt;$ cp -a /usr/share/java-package/sun-j2sdk1.6 /usr/share/java-package/sun-j2sdk1.7&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;2) Edit 'install' and 'remove' scripts:&lt;br /&gt;a) update line starting with 'suffix': suffix=j2sdk1.7-sun&lt;br /&gt;b) as of beta26 java7 constains the same list of binaries as java6, so we can leave 'update-alternatives' configuration unchanged&lt;br /&gt;&lt;br /&gt;3) update 'sun-j2sdk.sh', add the following to the case statement responsible for handling your architecture:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#jdk-7-ea-bin-b26-linux-i586-24_apr_2008.bin&lt;br /&gt;# WARNING:     change following  when beta numbers &gt; 99&lt;br /&gt;  "jdk-7-ea-bin-b"[0-9][0-9]"-linux-i586"*)&lt;br /&gt;  j2se_version=1.7+beta${archive_name:14:2}${revision}&lt;br /&gt;  j2se_expected_min_size=130&lt;br /&gt;  found=true&lt;br /&gt;  ;;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now .deb should build without problems, just like with java6. Install it using your package management software of choice (&lt;i&gt;wajig&lt;/i&gt; in my case):&lt;br /&gt;&lt;br /&gt;&lt;code&gt;banshee:/usr/src/java# wajig install sun-j2sdk1.7_1.7+beta26_i386.deb&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;At this point, basically everything is configured, you may use update-alternatives to set which java will be used across the system:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;banshee:/etc/alternatives# update-alternatives --config java&lt;br /&gt;&lt;br /&gt;There are 4 alternatives which provide `java'.&lt;br /&gt;Selection    Alternative&lt;br /&gt;-----------------------------------------------&lt;br /&gt;+        1    /usr/lib/jvm/java-gcj/jre/bin/java&lt;br /&gt;*         2    /usr/lib/j2sdk1.6-sun/bin/java&lt;br /&gt;  3    /usr/lib/j2sdk1.7-sun/bin/java&lt;br /&gt;  4    /usr/bin/gij-4.3&lt;br /&gt;&lt;br /&gt;Press enter to keep the default[*], or type selection number: 3&lt;br /&gt;Using '/usr/lib/j2sdk1.7-sun/bin/java' to provide 'java'.&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;III. A bit more fun with update-alternatives&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To avoid having to manually switch all binaries that come with Java (like&lt;i&gt; javac&lt;/i&gt;,&lt;i&gt; javap&lt;/i&gt; etc) you can write two simple scripts which will automate the process:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;banshee:/etc/alternatives# cat /usr/bin/switch_to_java6&lt;br /&gt;#! /bin/sh&lt;br /&gt;for i in $(ls /usr/lib/j2sdk1.6-sun/bin/); do&lt;br /&gt;  update-alternatives --set $i /usr/lib/j2sdk1.6-sun/bin/$i;&lt;br /&gt;done;&lt;br /&gt;&lt;br /&gt;banshee:/etc/alternatives# cat /usr/bin/switch_to_java7&lt;br /&gt;#! /bin/sh&lt;br /&gt;for i in $(ls /usr/lib/j2sdk1.7-sun/bin/); do&lt;br /&gt;  update-alternatives --set $i /usr/lib/j2sdk1.7-sun/bin/$i;&lt;br /&gt;done;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;You will see some warnings like:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Using '/usr/lib/j2sdk1.7-sun/bin/jconsole' to provide 'jconsole'.&lt;br /&gt;update-alternatives: Cannot find alternative `/usr/lib/j2sdk1.7-sun/bin/jcontrol'.&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;That's because not everything contained in jdk's bin/ directory is provided as an alternative. Those warnings are harmless.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25253594-6797907639023491600?l=anshee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/6797907639023491600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25253594&amp;postID=6797907639023491600' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/6797907639023491600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/6797907639023491600'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/2008/05/multiple-versions-of-java-on-debian.html' title='Multiple versions of Java on Debian'/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25253594.post-7678814691293870487</id><published>2007-10-16T21:35:00.000+02:00</published><updated>2007-10-16T21:43:36.806+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='development'/><title type='text'>javac -XD-printflat</title><content type='html'>As a self-remainder, extremely useful 'hidden' javac option I found &lt;a href="http://blogs.sun.com/sundararajan/entry/javac_s_hidden_options"&gt;here&lt;/a&gt;:&lt;br&gt;&lt;br /&gt;$ javac -XD-printflat&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25253594-7678814691293870487?l=anshee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/7678814691293870487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25253594&amp;postID=7678814691293870487' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/7678814691293870487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/7678814691293870487'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/2007/10/as-self-remainder-extremely-useful.html' title='javac -XD-printflat'/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25253594.post-5723845986391612940</id><published>2007-06-04T19:28:00.000+02:00</published><updated>2007-06-04T19:56:38.836+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='photography'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Copying EXIF tags</title><content type='html'>Somewhere along my image processing worklow (RAW -&gt; ufraw -&gt; tiff -&gt; GIMP -&gt; jpg -&gt; flickr) I lost EXIF data. Probably it'd been stripped during conversion to tiff using ufraw. Hmm, how to automagically copy EXIF meta-data from CR2 RAW files to post-processed jpgs? Exiftool to rescue!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/home/banshee# wajig install libimage-exiftool-perl&lt;br /&gt;/home/banshee# cd $ImagesDir&lt;br /&gt;$ImagesDir# exiftool -tagsfromfile %d%f.CR2 -r -ext jpg .&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;From exiftool manpage: exiftool -tagsfromfile %d%f.CRW -r -ext JPG dir&lt;br /&gt;*Recursively* rewrite all "JPG" images in "dir" with information copied from the corresponding "CRW" images in the same directories.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25253594-5723845986391612940?l=anshee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/5723845986391612940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25253594&amp;postID=5723845986391612940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/5723845986391612940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/5723845986391612940'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/2007/06/copying-exif-tags.html' title='Copying EXIF tags'/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25253594.post-8822414711847370137</id><published>2007-02-08T15:30:00.000+01:00</published><updated>2007-03-08T20:05:13.638+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='development'/><title type='text'></title><content type='html'>As a sidenote to future self, next time before you spend an hour on debugging a completely unrelated issue, please check if you enabled auto-generating primary keys on this 'one-time debug' copy of the database... FFS.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25253594-8822414711847370137?l=anshee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/8822414711847370137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25253594&amp;postID=8822414711847370137' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/8822414711847370137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/8822414711847370137'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/2007/02/asasidenote-to-future-selfnext-time.html' title=''/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25253594.post-5767860701773897701</id><published>2007-01-27T14:33:00.000+01:00</published><updated>2007-01-28T15:13:38.775+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Mounting external ntfs partitions using ntfs-3g</title><content type='html'>When you use removable media you probably want to mount it always to the same mount point regardless of its physical dev node location which can can change depending on the order you connect the devices or the slot you connect them to. This is where LABEL/UUID fstab options come in handy.&lt;br /&gt;&lt;br /&gt;So, instead of a fstab entry like this:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-family:courier new;"&gt;/dev/sda5  /mnt/FOTO_BCKP    ntfs defaults   0 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;you make an entry like this:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-family:courier new;"&gt;LABEL=FOTO_BCKP  /mnt/FOTO_BCKP    ntfs defaults   0 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;But if, instead of a default ntfs driver, you want to use a new ntfs-3g driver, there's a small problem: ntfs-3g, at the time of writing this, doesn't support LABEL or UUID options. A nice workaround, which I found &lt;here&gt;&lt;a href="http://forum.ntfs-3g.org/viewtopic.php?p=517&amp;sid=e8f348a581ea9ef2bd73c666d5aece08"&gt;here&lt;/a&gt; is to use /dev/disk/by-label/:&lt;br /&gt;&lt;br /&gt;&lt;here&gt;&lt;here&gt;&lt;here&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-family:courier new;"&gt;/dev/disk/by-label/FOTO_BCKP /mnt/FOTO_BCKP ntfs-3g defaults,user   0       0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/here&gt;&lt;/here&gt;&lt;/here&gt;&lt;here&gt;&lt;here&gt;&lt;here&gt;&lt;br /&gt;&lt;br /&gt;&lt;/here&gt;&lt;/here&gt;To check labels or uuids, connect your media and simply list /dev/disk subdirectories:&lt;br /&gt;&lt;br /&gt;&lt;/here&gt;&lt;span style="font-family:courier new;"&gt;&lt;here&gt;&lt;span&gt;ls -l /dev/disk/by-label/&lt;br /&gt;ls -l /dev/disk/by-uuid/&lt;/span&gt;&lt;/here&gt;&lt;/span&gt;&lt;here&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;To set the ntfs partition's label use `ntfslabel` from ntfsprogs package.&lt;br /&gt;&lt;/span&gt;&lt;/here&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25253594-5767860701773897701?l=anshee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/5767860701773897701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25253594&amp;postID=5767860701773897701' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/5767860701773897701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/5767860701773897701'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/2007/01/mounting-external-ntfs-partitions-using.html' title='Mounting external ntfs partitions using ntfs-3g'/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25253594.post-3680301256037216619</id><published>2007-01-10T12:11:00.001+01:00</published><updated>2008-05-22T21:55:00.992+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>How to make BCM4318 on Acer5024 work on Debian Etch</title><content type='html'>&lt;strong&gt;WARNING&lt;/strong&gt;: for kernels &gt;= 2.6.24 this note is deprecated. Use b43 driver + acer-wmi instead. I'll try to write about it in a while.&lt;br /&gt;&lt;br /&gt;== original blognote follows ==&lt;br /&gt;&lt;br /&gt;BCM4318 is a wireless chipset from Broadcom Corporation. Full name, as given by lspci is: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller.&lt;br /&gt;&lt;br /&gt;Broadcom released only Windows driver for this chipset, so to make this card work under Linux you have two choices:&lt;br /&gt;&lt;br /&gt;- &lt;a href="http://bcm43xx.berlios.de/"&gt;native, open source driver&lt;/a&gt; included in the kernel since 2.6.17-rc2. Because Broadcom refused to provide any kind of specification for this chipset, development on this driver is based on reverse-engineering.&lt;br /&gt;- Windows &lt;a href="http://en.wikipedia.org/wiki/Binary_blob"&gt;binary-only driver&lt;/a&gt; and ndiswrapper&lt;br /&gt;&lt;br /&gt;There's an ongoing flamew^Wdiscussion whether using binary drivers as a fast way to support more hardware under Linux is a good or a bad thing. It's actually pretty interesting, if you feel like reading some more you can start by pointing your browser at &lt;a href="http://lkml.org/"&gt;Linux Kernel Mailing List Archive&lt;/a&gt;.&lt;br /&gt;Even if you don't care much for security or ethical reasons, in the long term native driver would be a better choice because it is possible that at some point in the future kernel will &lt;a href="http://lkml.org/lkml/2006/12/13/266"&gt;ban binary modules&lt;/a&gt;. So, one of these choices has a future, and one of them does not, Mr. Anderson.&lt;br /&gt;But reality bites and as of january 2007 native driver is said to be still in an experimental state, there's no WPA support, connection is not stable, speed is limited to 11 Mbps/sec and there are some power issues with BCM4318 in particular. Tough luck. The choice is yours :-)&lt;br /&gt;&lt;br /&gt;For now I decided to use ndiswrapper. This is a step-by-step description how I made this little Broadcom's beast work on my Acer Aspire 5024 laptop under Debian Etch using ndiswrapper:&lt;br /&gt;&lt;br /&gt;You will need:&lt;br /&gt;&lt;br /&gt;&lt;li&gt;BCM4318 driver for Windows, I got mine from &lt;a href="ftp://ftp.support.acer-euro.com/notebook/aspire_3020_5020/driver/80211g.zip"&gt;Acer ftp&lt;/a&gt;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.archernar.co.uk/acer_acpi/acer_acpi_main.html"&gt;acer_acpi&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;ndiswrapper&lt;/li&gt;&lt;br /&gt;&lt;li&gt;kernel headers for your kernel's version, this is a prerequisite for compiling acer_acpi and ndiswrapper modules&lt;/li&gt;&lt;br /&gt;Also it's really helpful to have an extra console window running `&lt;span&gt;tail -f /var/log/messages&lt;/span&gt;` open during the process, just to see what's going on, make sure you're on the right track or diagnose problems if you are not :-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing acer_acpi:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;0. Download tarball from the location given above, unpack it to&lt;span&gt; /usr/src/&lt;/span&gt; or /usr/local/src and cd to acer_acpi directory.&lt;br /&gt;&lt;br /&gt;1. Read 'INSTALL' file :-)&lt;br /&gt;&lt;br /&gt;2. As advised in 'INSTALL' file:&lt;br /&gt;&lt;span&gt;&lt;span&gt;make acer_acpi.ko&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;3. Copy acer_acpi.ko to lib/modules/$kernelversion/kernel/drivers/char/&lt;br /&gt;&lt;br /&gt;4. &lt;span&gt;&lt;span&gt;depmod -a&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;5. &lt;span&gt;&lt;span&gt;modprobe acer_acpi&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing ndiswrapper:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;0. You can get ndiswrapper from Debian repositories, so simply:&lt;br /&gt;&lt;span&gt;apt-get install ndiswrapper-utils-1.9&lt;br /&gt;apt-get install ndiswrapper-source&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Unpack ndiswrapper-source to /usr/src or /usr/local/src and cd to its directory.&lt;br /&gt;&lt;br /&gt;2. Install ndiswrapper module:&lt;br /&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;make install&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;Alternatively you could use module-assistant to get, build and install ndiswrapper kernel module:&lt;br /&gt;&lt;span&gt;&lt;span&gt;m-a a-i ndiswrapper&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;3. Download windows driver, unpack it to any directory (AFAIR you only need bcmw5.inf and bcmw5.sys files) and cd there.&lt;br /&gt;&lt;br /&gt;4. Install driver&lt;br /&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;ndiswrapper -i bcm5.inf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;Check if driver installed succesfully:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;ndiswrapper -l&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;5. Unload native bcm43xx driver&lt;br /&gt;&lt;span&gt;modprobe -r bcm43xx&lt;/span&gt;&lt;br /&gt;and put it on a blacklist so it doesn't load automatically by adding entry in /etc/modprobe.d/blacklist file:&lt;br /&gt;&lt;span&gt;&lt;span&gt;blacklist bcm43xx&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;6. Load ndiswrapper module&lt;br /&gt;&lt;span&gt;&lt;span&gt;modprobe ndiswrapper&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can read &lt;a href="http://kernel-handbook.alioth.debian.org/ch-modules.html"&gt;here&lt;/a&gt; a bit more about managing modules on Debian.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Configuring wireless card:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;acer_acpi module creates entries under /proc/acpi/acer. Now you can enable the hardware. Linux equivalent of pushing the wi-fi button on Windows is:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span&gt;echo "enabled : 1" &gt; /proc/acpi/acer/wireless&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Show that to your girlfriend for that extra 'You're weirdo...' look :-)&lt;br /&gt;&lt;br /&gt;Of course typing this manually every time you want to turn your wireless on/off is out of question, so put that in your network interface configuration. On Debian you do that in /etc/networking/interfaces. Read &lt;b&gt;man interfaces&lt;/b&gt; and &lt;b&gt;man wireless&lt;/b&gt; for more info on commands and syntax. Here's how my wireless entry looks like:&lt;br /&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;# wireless&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet dhcp&lt;br /&gt;   pre-up modprobe ndiswrapper&lt;br /&gt;   pre-up modprobe acer_acpi&lt;br /&gt;   pre-up echo "enabled : 1" &gt; /proc/acpi/acer/wireless; sleep 1;&lt;br /&gt;   post-down echo "enabled : 0" &gt; /proc/acpi/acer/wireless&lt;br /&gt;   wireless-ESSID yourESSID&lt;br /&gt;   wireless-key yourKey&lt;br /&gt;   wireless-mode auto&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;So ifup at first loads ndiswrapper, then acer_acpi module, then enables the hardware and finally configures interface with wireless-&lt;&gt; commands. These are the same parameters you would give to iwconfig.&lt;br /&gt;Note that sleeping after enabling wireless is crucial (at least on my machine...), otherwise ifup tries to configure the card too early, while it's not  really enabled yet (just a guess but it behaved like that).&lt;br /&gt;&lt;br /&gt;Now, if everything went okay, `&lt;span&gt;ifup eth0&lt;/span&gt;` should give you working wireless connection. Hopefully :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25253594-3680301256037216619?l=anshee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anshee.blogspot.com/feeds/3680301256037216619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25253594&amp;postID=3680301256037216619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/3680301256037216619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25253594/posts/default/3680301256037216619'/><link rel='alternate' type='text/html' href='http://anshee.blogspot.com/2007/01/how-to-make-bcm4318-on-acer5024-work-on.html' title='How to make BCM4318 on Acer5024 work on Debian Etch'/><author><name>banshee</name><uri>http://www.blogger.com/profile/10305613712756456893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://photos1.blogger.com/blogger/2553/2635/1600/banshee.jpg'/></author><thr:total>0</thr:total></entry></feed>
