My space in the world

Code is poetry

Posted by Sayak
July - 13 - 2010

Just one week without my laptop and I am already going crazy. No matter how great the phone is, it simply cannot replace my precious notebook. No clue what I am mumbling about? Well, I am in the middle of a two week training at my company. They don’t allow personal laptops inside the campus so I had to leave mine back at home. And I already am banging my head hard on the walls. πŸ™

Actually, this was anticipated. But still, I often come across some situations where I might need the source of a webpage of a JS console, and I realize that my Opera Mobile 10 doesn’t allow me to have either, it simply .. sucks. πŸ˜›
I am using a Nokia E71 with Opera Mobile 10 to surf. As of certificate issues (even after disabling certificate verification), I couldn’t use S60 based IRC clients like mIRGGI, so I had to fall back to Virca. Virca isn’t thatΒ bad, but it lacks quite a few stuff. But again, what more can you expect of a Java app. For social networking, I use Facebook and Orkut apps, although I personally think that surfing them from the mobile browser is better. For mail, I use Nokia mail with GMail that I purchased unknowingly with my handset (apparently it was included in the price). And for rest of the stuff, I simply fall back to Opera.

I don’t have 3G access at my location so all I have is Edge connectivity, giving me a maximum of 360 Kb/s. I was suffering with terrible low speed until I realized the Opera Turbo was slowing down the network. Disabling Opera Turbo now gives me acceptable browsing speed. It is about 1/10th of my home bandwidth, but do I have a choice?

For now, I have no idea how long this exile will go on, probably another week. Till then, I’ll live with “saas bahu”Β serials as FIFA just wrapped up (although well, I still am celebrating Spain’s victory.. Too bad Germany didn’t win, but I prefer Spain over Holland). Or maybe Cartoon Network? πŸ˜›

Posted by Sayak
June - 23 - 2010

Yesterday while stumbling across FB, I discovered a video from a guy who used to be a classmate during my high school days.
Man, I couldn’t help loving the song. Here’s the original version:

So again, for the day, I have found ‘my song’ which I can listen over and over again. Till date, my personal favorites include The book of love (Peter Gabriel),Β Here without you (3 doors down), Crazy for this girl (Evan & Jaron), Wisemen (James Blunt), The scientist (Coldplay), The reason (Hoobastank), Red to black (Fort Minor), Lonely (Akon), One more day (Vast) .. and many more I can’t recall at this moment.
But ironically, during the last few years, I’ve found thousands of ‘my songs’ which eventually went boring as I listened to them over and over again.

So I wonder if anybody really has a song who he/she can listen over and over again, probably the perfect song.. Do you have a perfect song?

Posted by Sayak
January - 13 - 2010

Ever since I watched the movie Avatar, I can’t help but watch it all over again and again. But well, what I actually look for are the scenes where Neytiri fought, or flew etc. The way she defended Jake, the way she saved his life in the end, she is pure and strong at the same time; she has a really sweet smile – she is perfect! I wonder if I am going nuts 😐

Well, on a serious note, I have been doing some homework, and apparently I’m not the only one who is totally intimidated by her. There are communities on Neytiri fans who love her for reasons similar to mine. Thanks to those, I now have a bunch of HQ wallpapers of her. But every time I look at my desktop, I am saddened by the fact that she isn’t real. But I really do hope to find someone like her, or well, a little less blue πŸ™‚

Neytiri the princess

Neytiri the princess

Posted by Sayak
November - 11 - 2009

Well, I’m quite certain that there are a million tutorials on this subject. But I felt that the way I set up my Grub was really easy Β and worth sharing. What I am trying to do here is to install a splashimage with the Grub2 bootloader on a (K)ubuntu (or equivalent) system. So here goes…

  1. To begin with, you’d need to install the “grub2-splashimages” package. Please make sure that you’re running Grub2 and not an older version before you continue.
    $ sudo apt-get install grub2-splashimages
  2. Once you do that, you should have a bunch of images under the folder: /usr/share/images/grub/
  3. By default, Grub should offer you a 640×480 resolution. In most cases, the graphics card supports a higher resolution. You can check the highest available resolution by entering into the Grub command mode (press ‘c’ at the boot menu) and typingΒ vbeinfo. Let us assume that your graphics card can support upto 1024×768 resolution at a 32-bit color depth.
  4. Once you know the resolution, you can scale your own image to that size and save it as a TarGA (tga) image (use an image editor like Gimp) within the /usr/share/images/grub/ folder.
  5. Now we edit the theme script. To do that, enter the following in your terminal:
    $ sudo kate /etc/grub.d/05_debian_theme

    Where you can use your favourite text editor where I used kate. In that file, find the following line:

    for i in {/boot/grub,/usr/share/images/desktop-base}/moreblue-orbit-grub.{png,tga} ; do

    … and change it to:

    for i in {/boot/grub,/usr/share/images/desktop-base,/usr/share/images/grub}/splashimage.{png,tga} ; do

    Note: Replace theΒ splashimage part with the filename. For example, you are using “tulips.png” as your image, replace “splashimage” with “tulips”.

  6. Now to set the resolution, edit theΒ /etc/default/grub file and change GRUB_GFXMODE to 1024×768 (or whatever your supported resolution is).
  7. Once you are done with everything, run:
    $ sudo update-grub

    Once you execute the above, look for the following line in the output:

    Found Debian background: splashimage.tga

    And that should be all!

If you wish to change the text color, you may change the /boot/grub/grub.cfg file to edit the menu_color_normal and menu_color_highlight values (those are written as foreground/background format).

GRUB2 Splash-image preview
Posted by Sayak
November - 6 - 2009

I finally got rid of the last theme I had and installed something that, as per my conventions, looks quite professional. This is a modified version of the CreativePress wordpress theme, which offers a range of nice eyecandy effects using jQuery. Setting up the theme was quite a tedious job — removing my feeds from the planets (sounds ironic), doing the whole theme changes, and software upgrade and all that without access to db (why? well, our college university filter blocks it under category “hacking sites”….).

Anyway, of all the features, I can brag about:

  1. The preview slider: I can set the slider to take up posts from a fixed category, “featured posts” in my case. Once I attach a “custom field” called ‘preview’, the slider picks up the image and scales it accordingly to use it as a thumbnail.
  2. A nice homepage: It gives me a nice homepage. Hence now, I have completely removed the “blog” subdomain from my server and I am left with only one wordpress install in contrast to the two independent installs on different domains.
  3. WordPress 2.8.5: Just upgraded from 2.7 to 2.8.5, and I hope that things get a bit more stable now :p Apparently 2.8.5 has some much needed security fixes, which IMHO was worth the pain incurred from upgrading.

Honestly, I did have a bunch of points in my mind, but I can’t remember what they were 😐

Anyway, I’m just happy that this went well. If you decide to give the theme a shot, I’m sure you’ll enjoy it as much as I am. πŸ™‚

    Posted by Sayak
    September - 29 - 2009

    Once again, we are more than happy to release yet another of our wonderful ‘value added services’ at the KDE Community Forums

    KDialogue is the ideal place for any KDE user and/or fanboy to ask questions to KDE contributors. And well, the questions can be about anything, not necessarily related to KDE, and we will gladly approve the question as long as it follows the rules. Every KDialogue session will involve interviewing one KDE contributor. Once we have a kdialog session running for a predefined time, we’ll close down the topic and submit the most popular questions (based on voting statistics) to the contributor, which will be then published on behindkde.org.

    But you already know all this, don’t you? So why wait? Come and join the first interview session with Jonathan Riddell. Ask your questions, or vote upon the ones you find exciting! So see you there πŸ™‚

    Posted by Sayak
    September - 21 - 2009

    As always, a LOT is going on at the KDE Forums. From the top of my head, I could think of the following features we now offer:

    • KDialogue: KDialogue offers a chance to all members of the KDE Community to ask questions that they always wanted to ask. In short, we are offering a open-to-all behindkde.org – and by open-to-all, I mean every user who is enthusiastic about KDE desktop and wishes to know more about the KDE developers and contributors who make KDE possible. We will be contacting a developer at regular intervals. If the developer is available, we will open a topic at the appropriate area where users can post their questions.
      All questions will be voted upon and the questions with the highest number of votes will be passed on to be published at behindkde.org
    • A better, faster search engine: We now use sphinx as our search backend. With sphinx, the minimum 4 character limit for keywords isn’t applicable anymore. Most common words like ‘kde’ can be searched within milliseconds. We later plan to further enhance the search system by integrating tagsearch and a custom RSS feed, all using sphinx.
    • We love git: We are growing more into a code repository! With the extensive amount of new features being added, we needed a better way to update our server. Now we host a git repository locally on the KDE Forum server. The repo serves two purposes:
      1. It keeps the forum copy of the software updated.
      2. It sends commit information to CIA.vc which then announces the commits at our channel #kde-forum (using an IRC bot).

      Moving to GIT has really eased up updating data on our server. Can’t wait to see KDE moving to GIT πŸ˜‰

    • A new admin! Well, this was somewhat pre-planned. Luca “einar” Beltrame of Italy had been with the forums since the very beginning. Luca conducted a Klassroom course in the initial days. We discovered that he wished to do more, so he joined the global moderators. With his excellent work towards forum promo activities, he quickly became our PR guy. Now as we needed yet another guy who could take care of our baby, we didn’t hesitate in offering him the position of forum administrator and we are really happy that he accepted it gladly.
    • Much more to come! Ofcourse.. but we are also looking for more volunteers. With new ideas coming up everyday, we at this point need some help with code, or other work like translations. By code, I mean coding in PHP for the board software we run (phpBB). So if you are a PHP coder, and you’re interested in participating with the forum team, don’t hesitate to find us on IRC at #kde-forum (network: freenode)

    That’s all for today! Stay tuned for more πŸ™‚

    Posted by Sayak
    August - 3 - 2009

    We finally take the endeavour to announce the release of the brand new KDE Brainstorm. This is one of the largest MODs installed on our forum software, yet integrates smoothly with phpBB, the board that runs KDE Community Forums.

    This upgrade involves numerous changes. I’ll try to cover a few of them here, although there’s much more than these on the menu! πŸ™‚

    • A full AJAX interface

      KDE Brainstorm offers a 100% AJAX interface supported by all modern Gecko and Webkit browsers. For browsers that do not support JavaScript and for our members who like a non-JS environment, the brainstorm interface will provide full functionality and access to all features by switching to a non-JS environment.
    • Dashboard

      Users can choose from a range of filter functionalities offered by the Dashboard. The dashboard allows a user to show unvoted ideas, random selections, popular ideas and ideas held for moderator approval. It also allows the user to limit the number of ideas to a defined age (date of submission).
    • Idea Vault: The idea vault is a storage location for ideas awaiting moderator approval. The vault locks voting on ideas that are not approved. But all other activities like adding comments, editing, deleting and reporting can be done without any restrictions.
    • Inline Editing

      All ideas and comments can be edited easily by the inline edit function. This feature works without JavaScript as well.
    • Easy dupe reporting

      Duplicates can now be reported with just a mouse click (actually, two πŸ˜‰ ) straight from an Idea-view page.
    • Comment permalinks

      Individual comments can be tracked by their permalinks. Permalink pages only show one comment, linking back to the idea.

    • Hashed link system: The portal uses hashed links in the form brainstorm.php#idea12 and brainstorm.php#cat2_page5 — This linking system is fully compatible with the standard (non-JS) linking system. For example, brainstorm.php?mode=idea&i=5 will redirect to brainstorm.php#idea5. Please note that the hashed linking only works with an AJAX enabled interface.
    • Eyecandy! The portal uses some smooth fade, shrink, hilight and scroll effects for navigation — mainly aimed towards further improving usage experience.

    … and many more! A big credit goes to KDE Community Forum staff who devoted their time to thoroughly test the interface for any potential errors in code. Although, I request you to report all bugs you come across at the forum feedback area. Also, please note that this RC1 is a feature freeze release, ie. for now, we’ll not be immediately working on new feature requests.

    KDE Brainstorm is a sub-category inside the KDE Community Forums. It is managed and administered by the Forum Staff itself. Furthermore, you will need to register for a forum account in order to have write access to KDE Brainstorm. Contact the forum team at the feedback area or on IRC ( #kde-forum on irc.freenode.net ) if you have any questions.

    Posted by Sayak
    June - 28 - 2009

    We finally finished upgrading the KDE Community Forums to a shiny new board!

    We changed a range of things, some of them being:

    • The board software: KDE Community Forum now uses phpBB 3.0.5. We thank all phpBB team members, especially Chris Smith (cs278), Ashley Pinner (NeoThermic), Nils Adermann (naderman) for always being around and monitoring the progress.
    • A great new theme, a fine work by one of our admins, Ingo Malchow (neverendingo)KDEsign4 - A KDE Forum Theme
    • A fresh new look to KDE Brainstorm:
    • Topic tagging and tag cloud
    • A little more AJAX here and there πŸ˜‰
    • A lot of optimizations

    We hope to have a smooth ride with this nascent change. Many thanks to the forum staff who made this possible.

    Oh, and as there have been numerous things to look at, it is probable that we missed out a broken edge somewhere, since afterall, we are all humans πŸ™‚
    So if you find a bug anywhere on the forum, we request you to report it at the Upgrade problems thread or inform a staffer at #kde-forum on irc.freenode.net (See /msg sKreamer forumstaff for a list of staff)

    Thanks, and enjoy!

    Posted by Sayak
    June - 26 - 2009

    So as I finally got my hands on this new laptop, I cut out a drive about half the size of the full HDD (leaving me with a 160 GB and a 142GB partition). As I had a Kubuntu Jaunty disk shipped, I popped it in and went through the usual process, the same I have done countless times. With having Kubuntu 9.04 x86 installed on an ext4 partition, I could comfortably dual boot with the pre-loaded Windows Vista Premium and Jaunty. I noticed a big list of stuff that I needed to fix before having the box usable, unlike my older laptop which had everything working out of the box immediately after install.
    So anyway, I began with the GPU, an ATI Radeon HD 4570 card, and finally this guide worked out for me. Also a backport modules installation gave me my sounds.

    I am pretty happy with the performance, and it works out fairly well for me right now. Although there are a few things that don’t work yet. But I just cant seem to find the time from my office projects and other high priority stuff like the KDE Forum upgrade work in order to do extensive research on how to get these issues fixed. Or honestly, I am really lazy.. πŸ˜› Not that these glitches bother me much, as I have started focusing on more critical stuff, I guess. So here’s what all that don’t work:

    • The thing that bothers me the most, my display brightness. As for the articles google gave me, I found some unsolved issues with my model, and no workaround. It’s strange, and somewhat funny.. the keys are very moody. They work fine when I boot in, ie. before Kubuntu loads. Now if I adjust them beforehand, the keys works for a short duration even when kubuntu has loaded. If I don’t nudge them before bootup, I’m left with full brightness until I reboot. I also read that switching to the tty’s and back to tty7 can make the keys operational for some users, but not me.
    • Next come sleep and hibernate.. I can’t suspend anymore, unfortunately. If I suspend to RAM, the laptop never wakes up. If I suspend to disk, upon waking up, I lose my display. But considering Kubuntu takes not more than a minute right from Grub to desktop, I can live with it for now.
    • My bluetooth button.. its a combo button with F2, and well, Jaunty doesn’t seem to care if I go crazy hitting on those buttons hard. But as a pretty acceptable workaround, I switched my bluetooth on by booting into Vista a few days back, and never switched it off since then πŸ˜‰

    But yet again, these are small issues, or “good to have” if you may call it. I’ll try to file bug reports if not reported already. I also need to configure Jaunty to recognize my full RAM (4GB of memory) which is currently shown as around 3 GB. I tried out the server kernel, but guess I need something else to have 4GB RAM on a x86 OS. Or if I manage, I’ll switch to x64 soonish. Save these points, other stuff like KWin works seamlessly, HDMI and media controls work fine as well.

    So overall, it’s really good to have *buntu working on a Dell πŸ™‚

    About Me

    A son, brother and friend. Enjoys scripting and making small bits of apps here and there. Wants to conquer the world (well, who doesnt). A geek who has an obsession for ponies. Loves acoustic and wants to play guitar sitting on the Hollywood hill one day!

    A Word About KDE

    KDE is a versatile software compilation for all platforms. It is an intuitive and powerful desktop environment that focuses on finding innovative solutions to old and new problems, and creating a vibrant, open atmosphere for experimentation.

    » http://www.kde.org