Wednesday, December 05, 2012

My eyes...

It's so hard to get starting to type... To write something... To complete a sentence in my mind and then put it on the screen... My eyelids closing with drug-induced sleep which is not sleep, I feel awake but my eyes want to close and then... Then what? Dream about something I won't remember even 5 seconds after I wake up with the alarms buzzing and beeping and screaming into my ears? It's so hard to put two and two together and come up with a description of the massive scene in my mind, leave alone a story plot... My eyes really want to close all by themselves so I do, my mind is numb but still running fast, no satisfying sleep is anywhere near. It's more like passing out eventually...

Saturday, October 20, 2012

Fuck you Ubuntu, fuck you Shuttleworth!

Seriously? Tossers! Time to switch to something else. NOW!


Tuesday, June 26, 2012

Best late birthday present ever!

Ordered yanks ago, arrived yesterday, no HDMI/DVI to plugin but got SSH working! WHOHOOOO!!!


pi@raspberrypi:~$ cat /proc/cpuinfo
Processor       : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2708
Revision        : 0002
Serial          : 0000000043b92fd8

Saturday, June 16, 2012

Compiling wspr & wsjt etc. on (x/k/l/)ubuntu

See here, excellent guide. This is on a i386 env based on that guide. Tested on Ubuntu 12.04.

Warning, this checks out trunk code so it might not work some days. Check out the development mailing lists / raise a bug / go have a cuppa and try a couple of days later.


sudo apt-get install subversion python-dev python-numpy python-imaging-tk python-pmw libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 python-dev build-essential


svn checkout http://svn.berlios.de/svnroot/repos/wsjt/trunk wsjt-code
svn checkout http://svn.berlios.de/svnroot/repos/wsjt/branches/wspr wspr-code
svn checkout http://svn.berlios.de/svnroot/repos/wsjt/branches/wsjt8 wsjt8-code
svn checkout http://svn.berlios.de/svnroot/repos/wsjt/branches/map65 map65-code
svn checkout http://svn.berlios.de/svnroot/repos/wsjt/branches/map65iq map65iq-code

cd ~/wsjt-code

./configure --with-portaudio-lib-dir=/usr/lib/i386-linux-gnu --with-portaudio-include-dir=/usr/include && make && sudo make install



cd ~/wspr-code
./configure  --with-portaudio-lib-dir=/usr/lib/i386-linux-gnu --with-portaudio-include-dir=/usr/include  && make && sudo make install

but unfortunately it ignores the prefix for Python stuff. In the end I gave up on the prefix etc. and compiled it on the Eee 701 directly, wasting space on the packages. The original idea was to compile it on a 32-bit "development" VM and then copy stuff around. Anyhooow... The going is very slow on Eee, esp. with the fldigi running and decoding bpsk31 14.070 in the background. A lot of warnings are generated during the build.

I haven't compiled the rest. Maybe they will work.

Anyway, I have had problems running it off the installed path, also wsjt's startup script has some logic problems.

Simply run python wsjt.py or python wspr.py from the source directory and it all works fine!

Tuesday, April 24, 2012

Ben niye bi mok yazamiyom yaaa


Bu günlük iş yeter, saat 6'yı geçti, Radyo 4'teki 6:30 komedisini kaçırmadan eve gitmeli. Laylaylom, çanta toplandı. Tamam, pass, yarın görüşürüz İan... Ha? Ne? Almanlarda yine mi sorun çıkmış, tamam biraz hakkında konuşalım, ne yapabiliriz filan feşmekan, oki bu akşam bir bakarım serverlerine sorun çıkartıyor mu, 10'da mı duruyorlardı? Ha tamam, 9'da, saat farkı da var. Oki hadi bay! Çat küt araba kapısı. Ulan saate bak, 7 olcak neredeyse, direk eve. Çok acıktım. Telsizde bir şey duluyor mu bakalım tepeden aşağı inerken. 145.7375'te bir şey var ama pek anlaşılmıyor, çok fade in out var.... Neyse eve geldik zaten. Çat küt kapı. Yaa, evvelki hafta Freecycle'daki adamdan aldığım turntable hala arabanın arkasında yahu, dur onu da yüklenelim, spikerler kalsın şimdi, hepsini birden taşıyamam.

Off nasıl acıktım yaa, hemen hafta sonu dondurduğum yemeklerden birisini mikrodalgaya atalım ama önce laptopu açalım hazırlansın. Lay lay lom, bir podcast mı dinlesem o arada, bir BBC komedisi arşivlerden iyi gider. Yemeği de ısıttık yiyelim, bir yandan birikmiş Private Eye sayılarının birisini okuyayım. Vay hayvan Tori politikacıları vay vay. Of sinir bozdu. Bir kahve koyalım, kolombia mı yoksa bilmemne fil kahvesi mi olsa, ne bileyim yaaa, kafein olsun da yeter.

Oki, bilgisayarın başına oturduk, hemen maillere bi bakalım, TODO listesi mailleri gelmiş Google Kalender'den. Eeee, dur şunların bi kısmını yarına alayım, bu gün uğraşılmaz, 8 oldu zaten saat. Zaten Bram Stoker yazısı yazmam gerekiyor, ona öncelik verelim ama önce bi Reader'i temizleyelim. Ulan ofisten çıkıp buraya gelene kadar 165 yeni post gelmiş. Neyse, çoğunluğu The Grauniad'ın haberleri. Mark all as Read. Oki. Wired, ditto, uğraşamam. Dur bakalım, Arm Control Wonk'dan yeni yazı var, bu okunmalı. Oha be çüş. Neyse, karikatürlere de hızlıca bir bakalım, 30 küsür birikmiş... Io9 yazılarını sonra okuruz. Bu gün yine daraltıcı şeylerle dolu, biraz Not Always Right bakıp keyfimizi yerimize getirelim. Başka ne vardı, hızlıca Scalzi ne demiş bakalım... Oha saate bak, 9:30, of yaaa nereye gitti bu zaman. Kafa kalmadı, Stoker'i az sonra ele alırım. TODO listesine bakalım. HF anten kablosunu test et, oki. çok zaman almaz, buna hemen bakalım. Ayrıcana bu gün kimleri duymuş acaba FT-847, hemen PSK Reporter'e bakalım. Vay vay vay, hayvan herif Küba'dan iki kişi duymuşuz bu gun. Yarın WSPR çalıştırayım bar. Anten tamam gibi, madem bunlara bakıyoruz şu magmount'un kopmuş kablosunu lehimleyeyim. Lehimleyen aleti tutan zımbırtım nerde yaa... Dolap aç, kapa. Dolap aç, kapa. Dolap aç, kapa. Dolap aç, kapa. Yatağın altına bak. Kutuların içine bak. Ciyak, ne lan bu kayboldu. Oha beee pes ettim, sonra yaparım. Saat kaç oldu, OHA 10:30! Manyak!

Oki, sakin. Önce kocaman bir meyve çayı yapalım. Kayna su kayna. Humm, orman bögürtlenleri mi, Mango-portakal-bimokdaha mı, böğürtlen. Şu geçen ay başladığım Terry Pratchett YA kitabına bir daha gireyim nerde kaldığımı unutmadan. 110. sayfada kalmışız. Kalorifer yanındaki koltuk en rahatı, üstümüze battaniyeyi çekelim, bakalım nerde kalmıştık... (20 sayfa sonra) Horrrrr...... Hunkgngz.z..z.z. hooorrr... HAAAA???? Lan uyuyakalmışım. Saat kaç, oha 2 olmuş. En iyisi lensleri çıkarıp yatayım yatağımda.. Yarın sabah erken kalkıp Stoker yazısına bakarım.

Aaaaa! Alarmı kapatmışım, oha saat 8 olacak, hemen bir duş, arkasından ofise. Çatküt kapı vınnn... Günaydıın... Hassiktir, pass'ı evde unutmuşuz, yaa Michelle, bi zahmet beni içeri alır mısın? Alooo! Pfff hatun telefonda, dur bakalım birisinin gelmesini bekleyelim, arkasından takılırız... Dün ben ne yapacaktım yaa.. Unuttum, neyse akşam TODO listesine bakar çıkartırız.

Friday, February 24, 2012

Oracle 11gR2 + Ubuntu 11.10

First prereqs:

sudo apt-get install build-essential libaio1 libaio-dev lesstif2 lesstif2-dev libc6-i386 libc6-dev-i386 gawk ksh libmotif3 alien libtool lsb-rpm lib32stdc++6 lib32z1 ia32-libs sysstat rlwrap unixodbc unixodbc-dev elfutils rpm x11-utils ksh libxp6

wget http://ftp3.nrc.ca/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-18_amd64.deb
dpkg -i libstdc++5_3.3.6-18_amd64.deb

Into /etc/sysctl.conf:
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576

Into /etc/security/limits.conf
oracle soft nproc 2048
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

and the other usual stuff.

When you get the nnfyboot error:

export LD_LIBRARY_PATH=$ORACLE_HOME/lib
ln -­s /usr/bin/basename /bin/basename
ln ­-s $ORACLE_HOME/lib/libclient10.a $ORACLE_HOME/lib/libagtsh.a
$ORACLE_HOME/bin/genagtsh $ORACLE_HOME/lib/libagtsh.so 1.0

(Edit for 11.2.0.3)

mkdir /usr/lib64
ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64
ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64

Also see here for the following instructions:

During relinking operation OUI will fail and in $ORACLE_HOME/install/make.log  you will find following error.
/u01/app/dev/Middleware/agent11g/lib/libnnz11.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [/u01/app/dev/Middleware/agent11g/sysman/lib/emdctl] Error 1
make[1]: Leaving directory `/u01/app/dev/Middleware/agent11g/sysman/lib'
Solution:
======
When you start to install with ./runInstaller, run in another terminal window (as root)
ls $ORACLE_HOME/sysman/lib/ins_emagent.mk
At first this will produce an error, as the installer wont have created this file yet.
Once the file exists, do:
vi $ORACLE_HOME/sysman/lib/ins_emagent.mk
Search for the line
$(MK_EMAGENT_NMECTL)
Change it to:
$(MK_EMAGENT_NMECTL) -lnnz11

What's more, insanely for some reason we could link Oracle libraries with the GCC 4.6 on 10.2.0.2 but not on 10.2.0.3. gcc is a symlink to /usr/bin/gcc4.6 by default.

apt-get install gcc-4.4
cd /usr/bin
rm gcc
ln -s gcc-4.4 gcc
once it's all linked w/o errors
rm gcc
ln -s gcc-4.6 gcc

and then retry and retry and retry. Insane!

Until Ubuntu gets Oracle certified, it's server won't be taken seriously. On the other hand, Oracle hasn't certified OEL6 with Oracle 11gR2 so I'm not taking Oracle seriously either.

Saturday, February 11, 2012

VMWare ESX Killing trick


Nice way

  • locate the VM:
  vmware-cmd -l
  • Shutdown the VM:
   vmware-cmd /vmfs/volumes///.vmx stop
  • Just turn the power off:
   vmware-cmd /vmfs/volumes///.vmx stop hard

Nasty way

   ps auxfww|grep 
  kill -9 

Skype, qjackctl and pulse notes

Tested on Dell Latitute and Asus Eee.

Also should work fine with any recording device (including on-board / webcam mikes), mixer is used to provide better mikes and multiple people recording).

Plug the UCA-202 into the laptop.

Setup

Add the following to .asoundrc:



hakan@hakan-laptop:23:28:55:~$ cat .asoundrc 
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}


Start qjackctl and add the following to the execute script after startup bit:

pactl load-module module-jack-sink channels=2; pactl load-module module-jack-source channels=2;pacmd set-default-sink jack_out

Verify /proc/asound/cards and set the hardware to the correct one.

Then start up the jack daemon, open the connections, disconnect all.

Start up a 4-track Timemachine: timemachine -c 4

Connections
  • Connect the PulseAudio Jack Sink left & right to Timemachine channels 1 & 2.
  • Connect System-capture 1 & 2 to Timemachine channels 3&4.
  • Connect System-capture 1 & 2 to Pulseaudio Jack Source channels left and right (so that Skype people can hear you talking via the mike).
  • To monitor yourself, connect System-capture 1&2 to System playback 1 &2 (Folio Notebook master mix/tape button must be depressed to achieve this - which causes a lot of 50Hz hum), other mixer to be tested.
Power up the mixer, send the mike 1 to left channel, mike 2 to right channel. Test both channels to see if you are recording into Timemachine. 

Start Pavucontrol and mute all devices apart from the USB one. 
Set Pavucontrol Recording: Skype : Input from: Jack Source (PulseAudio Jack Source).

Set up a Skype test call and check if you can hear it via the mixer headphones and the mixer mike is played back to you. If you are using a second PC to test in the same room, Skype's echo cancellation makes it very tricky. Also make sure that the pavucontrol input volume is set to 100% at least to start with. 

Saturday, January 21, 2012

Can't.... Write.... Block.... .