Thursday, May 28, 2009

TuxGuitar: GPL'ed guitar tablature editor and player



This is TuxGuitar, the GPL'ed guitar tablature editor and player, written in Java Swing. It has support for opening Guitar Pro 3/4/5 tablature file format. I really love this application. I want to participate for this project but i know nothing about Java programming ;p. The developer must be rocker guy.

TuxGuitar Project

Saturday, May 23, 2009

Tremonti



This is Mark Tremonti, former of Creed and now in Alter Bridge, one of my favourite rock guitarist!, i like his rockn' style too.

He use his special PRS signature guitar named as his name: Tremonti series.

Thursday, May 21, 2009

Linus hate C++



Linus said:

C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it.

C++ is in that inconvenient spot where it doesn't help make things simple enough to be truly usable for prototyping or simple GUI programming, and yet isn't the lean system programming language that C is that actively encourages you to use simple and direct constructs.

Sunday, May 17, 2009

AutoFS: The linux's kernel automounter



Last night i began to build CSD and CSR development system, use Debian Lenny with Linux's kernel-2.6.26. The CSD and CSR cartridge has a USB disk to write some useful infos such as cartridge's usage, cartridge id, and a list of smartcards data that filled in the cartridge.

Autofs or the kernel automounter is actually a additional module to linux kernel, it's work by mounting a filesystem when they are accessed and unmounting them when they are no longer in use.

I use autofs version 4 fetched from a Debian repo server, write some autofs's configuration files.

/etc/auto.master
# The fs should be mounted on /mnt directroy
# and i'll need 3 secs timeout before autofs unmount the fs
/mnt /etc/auto.mnt --timeout=3


/etc/auto.mnt
disk -fstype=auto,rw,nosuid,nodev :/dev/sda

Restart autofs daemon and write a small demonstration codes, i know when the disk already mounted or not by polling a file in the disk with open() system call (ENOENT error code), but the real problem is: how does my codes receive a kernel's event when disk is plugged.

Saturday, May 16, 2009

Meet in Arion



(the image above is a Metallica's logo, not the black album's cover ;p)


Still remember Rawamangun post? the girl? shit, i almost wait for 1 hour, two times in late, buy her some Dunkin Donut's donuts and get lost. Tonight, im refreshing my memory about the POSIX message queue, Linux page faults, compiler and linker system.

Keep rockn'

Thursday, May 14, 2009

Night beer



Tonight im continuing some project's development: tct and gbilling. A can of Heineken beer maybe help to trigger many new ideas and cool codes. Rock on!

Wednesday, May 13, 2009

Cool pointer

Have you try a code like this?

int main (void)
{
  int date[12][31];
  int (*m)[31];
  int *d;

  for (m = date; m < &date[12]; m++)
    {
      **m = 0;
      for (d = *m; d < &(*m)[31]; d++)
        *d = 0;
    }
  return 0;
}

Tuesday, May 12, 2009

PCM-1028 Multi Serial Ports



It's been 2 days i worked on TCT boards, PCM-4386 SBC from Advantech. Use Debian 5.0 (Lenny) with Linux kernel-2.6.26, good news that Lenny's kernel already built with extended 8520 / 16550 serial ports support to use with PCM-1028 multi-serial board, i only need to pass kernel parameters:

8250.nr_uarts=12

since the total port will be 12 ports. I got difficulties when installing the PCM-1028, have been tried many configurations:

- Use independent IRQ address for each port as default setting provide. (not work, mouse device was not work, possibility is IRQ conflict).
- Change interrupt address and base address, still not work too.
- Share one IRQ to all ports. Seem to work, but...

The data is not valid, i can't receive or send valid characters through minicom and my own codes. I assumed a baud base issue, so i change to the PCM-1028 maximum supported baud base. Not work, i only receive dumb characters, i don't believe what i see, i don't believe the serial cable, so i switch another serial cable, and fucking shit, the characters received correctly. I admit, the old cable fuck me in 2 days!

This is a example serial configuration on TCT board:

/dev/ttyS4 uart 16550 port 0x200 irq 7 baud_base 921600 skip_test

Note that Debian store setserial config file to it's own location, /var/lib/setserial/autoserial.conf, other setting just follow it's default configuration.

Updated on Thursday, May 14 2009 11:16 AM
Oww, the PCM-4386 already assigned IRQ 7 to the parallel port 0x378. I change IRQ sharing to 11.

Saturday, May 09, 2009

Meet Ferda



About 11 AM, i'm going to Mall Lippo Karawaci, AJA pick me up at Pulogadung, arrive there for about 1 hour, AJA drop me at a small path direct to the Mall and i love that, because i got some experiences in a town that I never been visited before. Entering the Mall, there are many cool shits and eye candies there ;p.

I call Ferda, she ask me to wait her at J.CO (someone like donut?). So i wait there, after a long time she came, i was just next to her when she in the elevator, shit... she was growing to be pretty woman now. I say hi, shake her hand. She offer me Pizza Hut, why not i like pizzas. Be a good audience and less talk, i like the way she are! everything in this world changes (but you know rock n' roll ;p). Thanks for your time, it's nice to meet you too, im only your old-time fan. Get out from the mall and make sure she got a cab, call Gonzalez at Cikokol to ask about Dwi, but he was not there!, watch a small accident and get lost.

Updated on 11:43 PM
I think i began think her too much, i'm hearing Ozzy Osbourne - Here For You

Sunday, May 10 2009 @ 12:56 AM
I can't code like this! shhhh...... i'm hearing Creed - Hide

Friday, May 08, 2009

Fucking mesum



Today, Mr. Mesum call me into his room office, told me not to 'stay', what the fuck? who the fuck he think he is? im not taking seriously with this looser!. Everybody know this man is a kind of loser. Big fucking loser.

Okay, forget about Mr. Shit, why Ferda was still not replying my last post? i'll confirm to her for our meeting in the Mall Lippo Karawaci, Tengerang.

Tuesday, May 05, 2009

Tuesday as usual...

This would be a hard month, i assist TCT programmer in move into Linux using RTAI kernel patch, X, and GTK+ interfaces. I mainly create it's GUI interface, checking code and make sure it doesn't sucks, create a low level kernel module to communicate with I/O using RTAI API to use by TCT for controlling some devices. I have to move into my new desk after a project's discussion. And i'm now entering real card dispenser development.

Also we got company from IEI, our main SBC (Single Board Computer) manufacturer from Taiwan, good to meet these guys!

Meanwhile, Irna (have i tell you in Rawamagun post? ;-) call and seduce me, send many sms, so i call her back, then she ask about something sound like a date. gzz... keep rockn'

Saturday, May 02, 2009

Hey.... so there are you are!



She is my friend when i was at medium school - SMPN 1 Kendari, 1994 - 1997, her name is 'Ferda', actually not a close friend but at least we know each other. I know, i don't make a good relationship with her in the past, i find her in the Facebook, now we are sending messages to each other, it has been several weeks. Okay, so they you are Ferda, long time no see, where have you been?