browse with netbios

April 30, 2007 · Filed Under Open Source · 1 Comment 

sedang tidak^W^WSudah terstruktur, jadinya informasi ini tidak^W disebarkan dalam bentuk blog.

Sudah lama kiranya, bagi yang belum tahu, di linux kita gk bisa browsing komputer LAN dengan memakai nama NETBIOS. Salah satu solusi adalah dengan menambahkan nama komputer2 di LAN, satu persatu via /etc/hosts. Tapi bagaimana klo IPnya berubah? Repot dong.

Meet /etc/nsswitch. Sesuai man, nsswitch ini berfungsi untuk menata urutan darimana dan kemana harus mencari IP dari suatu nama/domain. By default nsswitch hanya mensupport beberapa protocol, misalnya: dns, file, nis, nisplus (lihat di manual). tapi dalam manual juga disebutkan, meski tidak eksplisit, bahwa kemampuan nsswitch ini bisa diupgrade. Setiap protocol di nsswtich diwakili oleh sebuah library libnss_SERVICE.so. Jadi, jika ada libnss_xxx.so yang mengimplementasikan semua interface nsswitch (sesuai spek), maka otomatis kita bisa memakai protokol xxx di /etc/nsswitch.conf. Gampangannya gitu :).

Dalam komputer saya ternyata ada banyak libnss_SERVICE.so. Coba lihat:

[geek@toni ~]$ ls /lib/libnss_*
/lib/libnss_compat-2.5.so  /lib/libnss_ldap-2.4.90.so
/lib/libnss_compat.so.2    /lib/libnss_ldap.so.2
/lib/libnss_db-2.2.so      /lib/libnss_mdns-0.2.so
/lib/libnss_db.so.2        /lib/libnss_mdns.so.2
/lib/libnss_dns-2.5.so     /lib/libnss_nis-2.5.so
/lib/libnss_dns.so.2       /lib/libnss_nisplus-2.5.so
/lib/libnss_files-2.5.so   /lib/libnss_nisplus.so.2
/lib/libnss_files.so.2     /lib/libnss_nis.so.2
/lib/libnss_hesiod-2.5.so  /lib/libnss_winbind.so.2
/lib/libnss_hesiod.so.2    /lib/libnss_wins.so.2

Yang libnss_mdns itu baru saja saya dapat setelah mengisntlal mDNSResponder (zeroconf). Oh, ternyta di list tersebut juga ada libnss_wins. Ini berarti saya bisa memakai nama netbios di tempat lain tanpa via sambaclient ataupun konqueror dengan \\NAMA. oke, mari kita edit /etc/nsswitch.conf. Kita tambahkan di bagian hosts:

hosts: wins mdns files dns

baris di atas dibaca: cari dulu via NETBIOS, setelah itu mDNS (zeroconf), lalu di /etc/hosts, setelah itu baru cari via layanan DNS (nameserver)

Yak, mari kita test. Sebelumnya saya harus menggunakan nmblookup untuk mendapatkan IP komputer teman-teman. sekrang saya sudah bisa langsung.

[geek@toni data]$ nmblookup herman
querying herman on 192.168.1.255
192.168.1.73 herman<00>

Nah sekarang sudah tidak perlu nmblookup lagi

[geek@toni data]$ ping herman
PING herman (192.168.1.73) 56(84) bytes of data.
64 bytes from 192.168.1.73: icmp_seq=1 ttl=128 time=0.206 ms
64 bytes from 192.168.1.73: icmp_seq=2 ttl=128 time=0.204 ms
64 bytes from 192.168.1.73: icmp_seq=3 ttl=128 time=0.216 ms

Langsung resolved!

Yang di bawah ini masih gagal:

Dan karena tadi saya juga menambahkan entri mdns, sekarang saya juga bsia mengakses langsung resource-resource zerocnf via konqueror. Sebelumnya saya selalu menemui error akibat domain yang tidak resolved. Jangan lupa untuk membypass .local di setting global proxy KDE.

Simple Record Solution

April 23, 2007 · Filed Under Dev Hours, Web 2.0 · Comment 

In case you were in the need on a simple record storage solution, which one would you pick? Build your own simple from-scratch-solution, or going for third party alternative. In my case, first option was not available. Dear oh dear, CRUD is just what I have the most :p. O yeah, I love to make simple thing difficult. Obviously, I’d go for third party solution. Why? Because it’s cool :p, and because I want to experience the know how of utilizing third party solution.

Speaking about third party solution, I came up with three options. First, Zoho. Zoho has a quite cool Creator which coincidently resembles the ol’ trusted MS Access. No API yet thought. However, Zoho’s spreadsheet has the API I need. It provide access into spreadsheet content from outside Zoho. Unfortunately, there’s only read access, no write access. So, in this particular case, Google’s spreadsheet really beats Zoho down to its knee. As the second option, Google has it all. Read and write, query with filter, and maybe function execution (haven’t confirm this). It was unfortunate though, the cost we have to pay to consume the features is quite a fortune. I would say it’ll be tiresome, unless you use Java — which is luckily listed under the fleet of official client library. Well, there’s actually GData library written in PHP. But currently, spreadsheet isn’t listed in their supported features. There’s still possibility to extend in from the current GData class, but apparently it’ll took quite sometime as spreadsheet is not as simple as Google Calendar or Google Base. As it’ll took extra effort, I turn my eyes to third option, ie: Ning.

I’ve known Ning since it was still infant. Not sure how old it was, but it was during its early days. No Network Creator feature, just some base app as template to create your desired app. What so cool about Ning, and is emphasized within its “Jobs at Ning” point, is its content storage technology. The concept I can see right now is, Ning follows the “Store and annotate” philosophy. And have I mention that creating new content is amazingly simple. Yes, you can start with a very plain content, even without any annotation (attributes). Obviously this will save enough effort for not going over complex within the early phase of application development. Further more, Ning provide enough APi to keep you happy. Yep, the CRUD API. And as extra bonus, we’ll get messaging and other social network functionality via JSON/REST API as well. Neat, eh? It’s not as complex as Google, it’s more into “create and extend”, pretty much fit my current requirement.

Nyebahi

April 21, 2007 · Filed Under Mood · Comment 

Saya nyebahi, semuanya juga nyebahi. Mbuh. Mending main GData sajah. Cuih.

I’m suck, all other are suck as well. Whatever. Better playing with GData. Darn.

Ohhhh

April 17, 2007 · Filed Under Web 2.0 · Comment 



dapper new look

Originally uploaded by Framed Geek.

Almost orgasm, bwahahahahha. I meant, Dapper did not only revamp its Use Dapp page, but also the whole thing. I’ve just tried the new Dapp Builder today. It’s very intuitive and much much more superiorly friendly than the previous UI. The wizard has been reworked into sporting clearer steps. And the dapp canvas has also been updated. Thicker selection box, and crunchy Field editor. Ajax experience were really lifted up some serious sleeves here.

And then, I’ve check my gmail this morning. Found a newsletter from Snap Preview Anywhere. I cannot say much thing further than ooh .. whoa .. wth .. HOLY-BATMAN!!




snap preview anywhere

Originally uploaded by Framed Geek.

Uh oh, BTW, YUI looks good so far. Kinda matching with my “UI Guideline”

21cineplex Dapper Widget

April 15, 2007 · Filed Under Web 2.0 · 2 Comments 



cineplex21 dapper widget

Originally uploaded by Framed Geek.

Well well, out of the blue, without paying attention to my “journey to the west”, Dapper provides new friendly UI and widget creation support. I am tremendeously happy. The only thing I can think about is how Momon would react to this ;). RSS was good enough, but what about a holy-batman widget?!

Not only you’ve had the option of subscribing to STUDIO (Ambarukmo Plaza 21Cineplex theater) schedule via RSS, now, you can also have a choice to put the schedule on your own site via widget.

 Add to your site   powered by Dapper 

Read more

Our timeline

April 14, 2007 · Filed Under General · Comment 

our timeline

This site, has been there since August 2005. Kinda antique eh? And since there’re not enough links to it, the page doesn’t show up much in Google. I added a lit bit of sugar into it. Copying the header from my toukakouka.com, and mixed adsense into. The divs are the same old div since 2005, ie: fixed width and *will* be broken under less than 1024×768 resolution. Hey, that’s already exceptional for a non HTML wizard ;)

So, now you can read what’s going on between Yogyakarta and Jakarta. No need to travel back and forth. Just drop by and you’ll get both news. There should be more things to come. More accessories. But I’ll keep it for later excitement :p

mod_musicindex

April 13, 2007 · Filed Under General · Comment 



mod_musicindex

Originally uploaded by Framed Geek.

Enough IPDN already, please. Let’s look into something else. I, obviously, didn’t have much to talk about. Brain is already exploited for daily task. WTF, hahahha. Actually it’s kinda slow lately. It’s hard to get into complex mode. So things tends to go more into the simple sides recently. Or that’s what suppose to happen. Well, back to blog. I finally got the traction (Only God knows how I am running out of interesting readings) to fill the blank. After reading planet.terasi.net (thanks to William’s del.icio.us link), I become aware of things like mod_musicindex. It’s an Apache mod that indexes music files, and serve it in a css-ified meta-aware page. just like and index page but flavored with custom css and music infos. mod_musicindex supports Vorbis, mp3, FLAC, and err one more format. Though search feature is very very slow (I guess that’s the most you can possibly get form flat file index), the index page is actually amusing. It’s not a great alternative to daap protocol but still, indeed, a good stuff.

Uh oh, and I keep reading meebo as moodle. Moodle? No, it’s Meebo here. For this particular link, I don’t know why it got into del.icio.us. I mean, it talks about how webapps doesn’t do right for it costs a lot of CPU and memory, which apparently and old news :p. Actually, the article started nice and insightful. But I just can’t agree to his conclusion. No, using web apps is not bad. What can be bad is the way you use it. But, to think positively, I think the writer was stressing on how webapps should not try to blindy obsoleting desktop apps. Well, not at the moment perhaps. not Within the state where simple (but sometimes useful and straight forward) functionality sometimes may consume a fortune of resource (for somes’ mileage)

A productive monday, sleepy tuesday

April 3, 2007 · Filed Under Dev Hours · Comment 

Yep, it’d been a very productive Monday. Finished the db backended session storage and also the shm (shared memory storage) feature. Though I found a bug on the session feature today, it was pretty much ready on monday. And tuesday, it’s a sleepy day. My wife has gone back to Jakarta, left me alone with no one around.

Weekend was definitely rocks. Wife’s around :). Watched “meet the robinsons” with Momon (and friend), met Willy which apparently has been there since Mr.Bean schedule. Sunday was spent for buying ticket for my wife, and then stops by at Malioboro Mall. As always, we checked what’s new in Kids Station. Yep, my fave spot. I use to look for small cheap figures or discounted Gundam. This time I was looking for RC car. Nothing good, worse there’s none at all. There’s only a small and compact RC helicopter, with styrofoam body. Looks very neat and interesting. Unfortunately it was sold at 399 thousands rupiah. Grrrhh! I was about to be happy.

Not much ideas on my current task, so I try to play a bit with my old toy, the office-brew framework (as mentioned in first paragraph). Thinkering application server, in PHP. There’s been some prototype or stopped prject out there. However, my approach was different. Can’t tell much now. There’s nothing much to see anyway :p