tag:blogger.com,1999:blog-27023753334596211222024-03-04T16:38:46.630+00:00Roland SchulzRolandhttp://www.blogger.com/profile/15007027365887236970noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-2702375333459621122.post-31841549397219251712011-03-31T06:37:00.002+01:002011-03-31T06:42:10.876+01:00Eclipse plug-in in GroovyBecause I couldn't find it anywhere else, here the steps to create a Groovy Eclipse plug-in:<div>1) Create Java Eclipse Plugin project</div><div>2) Convert to Groovy project</div><div>3) add org.codehaus.groovy to Require-Bundle or add</div><div><div>Import-Package: groovy.lang,</div><div> org.codehaus.groovy.reflection,</div><div> org.codehaus.groovy.runtime,</div><div> org.codehaus.groovy.runtime.callsite</div></div><div><br /></div><div>This is all. At least for an extremely simple example this works great. I haven't tested anything complicated yet.</div>Roland Schulzhttp://www.blogger.com/profile/03817400543978969432noreply@blogger.com84tag:blogger.com,1999:blog-2702375333459621122.post-70711290323408304042010-01-05T03:07:00.003+00:002010-01-05T03:11:43.797+00:00Revert serveral git commitsA small git trick I just learned:<br /><br />To undo a single bad commit "git revert" is great.<br />But it is tedious to do this for many.<br />For that the best is:<br />git diff HEAD {last-good-id} | git apply<br /><br />Before doing this check the logs of all commits which will be undone, with:<br />git log {last-good-id}..<br /><br />Hope this helps someone else.Rolandhttp://www.blogger.com/profile/15007027365887236970noreply@blogger.com24tag:blogger.com,1999:blog-2702375333459621122.post-34672895674156364832009-11-12T00:23:00.006+00:002010-03-25T07:00:32.003+00:00Dell Studio 1557 (Mobile Core i7) with (k)ubuntuI currently don't have time to write a long post. But I got my new Dell Studio laptop 1557 with Core i7 and so far I'm happy. Besides some problem with suspend, everything works with linux and the performance is great. E.g. compiling is >2x faster than on my 2 year old Core2 Duo.<br /><br />To get the hardware working on Linux:<br /><br />Wireless:<br />install: bcmwl-kernel-source, bcmwl-modaliases<br />bcmwl needed to make wireless work. After install either reboot or remove sbb, b43 b44 and then load wl.<br /><br />Graphic/Fan:<br />install: fglrx-amdcccle, fglrx-kernel-source, fglrx-modaliases, xorg-driver-fglrx<br />With the open-source graphic card driver the 3D Desktop does not work and more important the fan runs on full speed because the powermanagement of the graphic card does not work correctly. Restart X-Server.<br /><br />Sound:<br />add<br />options snd-hda-intel model=dell-m6<br />to /etc/modprobe.d/alsa-base.conf. Reboot or reload module.<br /><br />Other hardware (e.g. camera) works out of the box.<br /><br />Problems:<br />Resume from Suspend does not always work (in ~4/5 cases it works). This is really annoying. Please write in the comment if you know how to fix that.<br />Keyboard: the sound volume special keys don't work.(https://bugs.launchpad.net/ubuntu/+bug/465250)<div><br /></div><div>Update:</div><div>The suspend problem is still not fixed. This is very annoying. More details at: https://bugs.launchpad.net/ubuntu/+bug/391628</div><div>As I wrote their: I suggest to write to Dell. Hopefully there are enough people writing so that Dell lets ATI know they should fix it.</div>Rolandhttp://www.blogger.com/profile/15007027365887236970noreply@blogger.com54tag:blogger.com,1999:blog-2702375333459621122.post-66365832850413810592008-09-29T18:26:00.002+01:002008-09-29T18:30:13.053+01:00OpenSuse 11So far the new version seems to work very well.<br /><br />I updated to KDE 4.1.<br /><br />The trick with Alt-Gr No-Dead Key is now built in. No need for own keyboard table anymore.<br /><br />Setting brightness was a big pain. The add to modprobe.conf.local:<br />options thinkpad-acpi brightness_enable=1<br />blacklist video<br /><br />and in /usr/share/hal/fdi/information/10freedesktop/10-laptop-panel-hardware.fdi<br />setting laptop_panel.brightness_in_hardware to falseRolandhttp://www.blogger.com/profile/15007027365887236970noreply@blogger.com13tag:blogger.com,1999:blog-2702375333459621122.post-53414566963972699662008-09-13T20:00:00.005+01:002011-03-03T01:29:42.109+00:00SSH ProxyCommand without netcatThe ProxyCommand is very useful when hosts are only indirectly accessible. With netcat it is relative strait forward:<br />ProxyCommand ssh {gw} netcat -w 1 {host} 22<div><br /></div><div>Here {gw }and {host} are placeholders for the gateway and the host.<br /><br />But it is also possible when netcat is not installed on the gateway:<br />ProxyCommand ssh {gw} 'exec 3<>/dev/tcp/{host}/22; cat <&3 & cat >&3;kill $!'<br /><br />The /dev/tcp is a built-in feature of standard bash. The files don't exist. To check whether bash has this feature built-in use run cat < /dev/tcp/google.com/80 on the gateway. To make sure that bash is used, use:</div><div>ProxyCommand ssh {gw} "/bin/bash -c 'exec 3<>/dev/tcp/{host}/22; cat <&3 & cat >&3;kill $!'"</div><div><br /></div><div>And it even works together with ControlMaster.<br /><br />(Updated on Oct 22 to include kill to clean up background cat)</div><div>(Updated on Mar 3 2011 to make placeholders more clear and explain /dev/tcp)</div>Rolandhttp://www.blogger.com/profile/15007027365887236970noreply@blogger.com43tag:blogger.com,1999:blog-2702375333459621122.post-75354269248054810922008-05-04T06:12:00.002+01:002008-05-04T06:20:59.647+01:00Linux: Connecting projector without X restartBecause projector usually have a different resolution then high resolution laptop LCDs one has to change the resultion of the X Server after connecting the projector. This used to require an X server restart. With RandR 1.2 this is possible without. It does not work with Xgl though. Thus to use compiz with it one has to use Aiglx (which in turn requires to<a href="http://forum.compiz-fusion.org/showthread.php?t=1152"> change the video plug-ins</a>). One can set the resolution either with xrandr or more comfortable with krandrtray under KDE.Rolandhttp://www.blogger.com/profile/15007027365887236970noreply@blogger.com18tag:blogger.com,1999:blog-2702375333459621122.post-24888213470375422192008-05-04T06:05:00.002+01:002008-05-04T06:08:36.890+01:00Thinkpad T61 Hotkeys for OpenSuse 10.3To get the hotkeys working for the T61 under OpenSuse 10.3 I added to /usr/lib/hotkey-setup/thinkpad_hotkey_handler for switching on off the toupad:<br /> 4104) HOTKEY="Fn+F8"<br /> /usr/bin/synclient TouchpadOff=$[! `/usr/bin/synclient -l|grep TouchpadOff|/usr/bin/awk '{print $3}'`]<br /> ACTION="toggle touchpad"<br /> ;;<br /><br />for changing the screen brighness:<br /> 4112) HOTKEY="Fn+Home"<br /> ACTION="brighter display"<br /> echo up > /proc/acpi/ibm/brightness<br /> ;;<br /> 4113) HOTKEY="Fn+End"<br /> ACTION="darker display"<br /> echo down > /proc/acpi/ibm/brightness<br /> ;;<br /><br />and to suspend when closing the lid:<br /> 20481) HOTKEY="close lid"<br /> ACTION="suspend"<br /> powersave -u<br /> ;;Rolandhttp://www.blogger.com/profile/15007027365887236970noreply@blogger.com14tag:blogger.com,1999:blog-2702375333459621122.post-41448731649778133062008-05-04T05:42:00.003+01:002008-05-04T05:55:07.143+01:00International character without dead keysFor typing international characters the <a href="http://en.wikipedia.org/wiki/Keyboard_layout#US-International">US-International keyboard layout</a> is very convenient. The disadvantage is that the so called dead keys are very inconvenient for programming where a lot of keys ', `, " are used. Thus I created a variant which uses the second Alt as the US international but does not use the dead keys. This way I do not have to switch between standard US for programming and US international for internal text.<br /><br />For any Unix with X you create this variant by adding to /usr/share/X11/xkb/symbols the following:<br /><br />> partial alphanumeric_keys<br />> xkb_symbols "intl-nodeadkeys" {<br />><br />> name[Group1]= "U.S. English - International (without dead keys)";<br />><br />> include "us(basic)"<br />><br />> // Alphanumeric section<br />> key <tlde> { [ grave, asciitilde,dead_grave, dead_tilde ] };<br />> key <ae01> { [ 1, exclam, exclamdown, onesuperior ] };<br />> key <ae02> { [ 2, at, twosuperior, dead_doubleacute ] };<br />> key <ae03> { [ 3, numbersign, threesuperior, dead_macron ] };<br />> key <ae04> { [ 4, dollar, currency, sterling ] };<br />> key <ae05> { [ 5, percent, EuroSign ] };<br />> key <ae06> { [ 6, asciicircum, onequarter, dead_circumflex ] };<br />> key <ae07> { [ 7, ampersand, onehalf, dead_horn ] };<br />> key <ae08> { [ 8, asterisk, threequarters, dead_ogonek ] };<br />> key <ae09> { [ 9, parenleft, leftsinglequotemark, dead_breve ] };<br />> key <ae10> { [ 0, parenright, rightsinglequotemark, dead_abovering ] };<br />> key <ae11> { [ minus, underscore, yen, dead_belowdot ] };<br />> key <ae12> { [ equal, plus, multiply, division ] };<br />><br />> key <ad01> { [ q, Q, adiaeresis, Adiaeresis ] };<br />> key <ad02> { [ w, W, aring, Aring ] };<br />> key <ad03> { [ e, E, eacute, Eacute ] };<br />> key <ad04> { [ r, R, registered, registered ] };<br />> key <ad05> { [ t, T, thorn, THORN ] };<br />> key <ad06> { [ y, Y, udiaeresis, Udiaeresis ] };<br />> key <ad07> { [ u, U, uacute, Uacute ] };<br />> key <ad08> { [ i, I, iacute, Iacute ] };<br />> key <ad09> { [ o, O, oacute, Oacute ] };<br />> key <ad10> { [ p, P, odiaeresis, Odiaeresis ] };<br />> key <ad11> { [ bracketleft, braceleft, guillemotleft, guillemotleft ] };<br />> key <ad12> { [bracketright, braceright, guillemotright,guillemotright ] };<br />><br />> key <ac01> { [ a, A, aacute, Aacute ] };<br />> key <ac02> { [ s, S, ssharp, section ] };<br />> key <ac03> { [ d, D, eth, ETH ] };<br />> key <ac08> { [ k, K, oe, OE ] };<br />><br />> key <ac09> { [ l, L, oslash, Ooblique ] };<br />> key <ac10> { [ semicolon, colon, paragraph, degree ] };<br />> key <ac11> { [ apostrophe, quotedbl, dead_acute, dead_diaeresis ] };<br />><br />> key <ab01> { [ z, Z, ae, AE ] };<br />> key <ab03> { [ c, C, copyright, cent ] };<br />> key <ab06> { [ n, N, ntilde, Ntilde ] };<br />> key <ab07> { [ m, M, mu, mu ] };<br />> key <ab08> { [ comma, less, ccedilla, Ccedilla ] };<br />> key <ab09> { [ period, greater, dead_abovedot, dead_caron ] };<br />> key <ab10> { [ slash, question, questiondown, dead_hook ] };<br />> key <bksl> { [ backslash, bar, notsign, brokenbar ] };<br />><br />> include "level3(ralt_switch)"<br />> };Rolandhttp://www.blogger.com/profile/15007027365887236970noreply@blogger.com1tag:blogger.com,1999:blog-2702375333459621122.post-39919037886287774312008-05-02T03:05:00.001+01:002008-05-02T03:07:29.931+01:00Myrinet and TauTo use Tau with Myrinet Mpich one needs to give:<br />-mpilibrary="-lmyriexpress -Lpath"<br /><br />In my case for helics the full configure is:<br /><br />./configure -pdt=/home/thor2/rschulz/software/pdt -prefix=/home/thor2/rschulz/software/tau -c++=g++ -cc=gcc -fortran=gfortran -mpi -mpiinc=/opt/mpich-mx/1.2.7..5/gcc-4.1.2/include/ -mpilib=/opt/mpich-mx/1.2.7..5/gcc-4.1.2/lib/ -PROFILE -mpilibrary="-lmyriexpress -L/opt/mx/1.2.4/kernel-2.6.22.9/lib64"Rolandhttp://www.blogger.com/profile/15007027365887236970noreply@blogger.com7tag:blogger.com,1999:blog-2702375333459621122.post-83737418766869699562007-05-02T23:58:00.000+01:002008-12-10T16:04:20.943+00:00Royal - Sarkozy ; 20:1 for Royal at ARTE voting<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfhK0iB01pkdpzzFcigvOVnOVQnZeqod9BDQVIxG2iPwjOjUpHyy68xI_IX8rTKqLDxrEPzgzSLMitq8XTBBcoIJh_TFAZNnAiqcDHdH3bRf_d6_8rO5K-LDd4gpYsW3ScmAz1A32HHQ/s1600-h/klassisch2.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfhK0iB01pkdpzzFcigvOVnOVQnZeqod9BDQVIxG2iPwjOjUpHyy68xI_IX8rTKqLDxrEPzgzSLMitq8XTBBcoIJh_TFAZNnAiqcDHdH3bRf_d6_8rO5K-LDd4gpYsW3ScmAz1A32HHQ/s400/klassisch2.png" alt="" id="BLOGGER_PHOTO_ID_5060101943289383010" border="0" /></a>The voting during the live <a href="http://www.arte.tv/de/1557600.html">broadcast</a> (translated to German) of ARTE, resulted in a 20:1 win for Royal! In case Frensh viewers think only a little bit the same, the vote on sunday will be different than most expect.Rolandhttp://www.blogger.com/profile/15007027365887236970noreply@blogger.com11