another snippet | code

Uncyclopedia App for Android – On GitHub

I’ve decided to open source the Uncyclopedia app for Android, which some of you may remember was available on the Play store during the first quarter this year. Browse the code on GitHub. The source code is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.

recursive get from an FTP server

As we all know, downloading a directory from an FTP server over FTP over the command line is not possible. Some, have found mget to be the holy grail, I certainly do not. I was restoring my music backup from my NAS, and I didn’t want to do it the GUI way, so CLI is…

SEED hits the pit again #iknowvention

SEED continues to make mistakes. So is today’s challenge: #include int main(int argc, char *argv[]) { printf(“%d”,4["seed"]); return 0; } The answer for the above is 0, as the fourth element in the array “seed” does not exist. This is because of the index value, which starts from 0. Had it been 3, then it…

SEED makes Blunder! #iknowvention

Alright, so I’m taking part in this SEED Infotech C programming contest, and here’s one of yesterday’s challenges: main() { if(printf(“C for yourself how it works \n”); main(); } One of the options were a) C for yourself how it works infinate times Now isn’t that catchy? Look at it clearly, there’s on pair of…

/usr/local/bin/waitpid

A quick script to wait for a certain pid, then once that quits, execute a command. You may ask, why not just do command1 && command2 ? Well, if command1 exits with a non-zero exit status value, command2 will not get executed. Hence, I’ve brewed a quick script for this purpose. File: /usr/local/bin/waitpid #!/bin/sh #…

Coloured /var/log/messages at tty12

Reading logs could never become any more easier, at just a keystroke, you have your logs displayed where you want, in some fancy colour. They look great too. TTY’s can be accessed by pressing Alt + Ctrl + F[1 - 12] simultaneously. In the following, you’ll get a decent, colourized log display of /var/log/messages when…

QEMU | Quick Networking for TCP/UDP

Networking with a guest in QEMU is often a headache, TUN/TAP, seriously? Too hectic, let’s stick to the basics, TCP/UDP based. Instead of setting up a really complex set of configuration files, wouldn’t it be easy to just emulate the network card, DHCP the guest, and let it work right out of the box? Well…

visual basic 6 revisited – linux – wine

Earlier this year, I had written an article on running Visual Basic 6 on linux under wine, this is an update for it, the prior one is depreciated Getting Visual Basic 6 to work on linux is pretty easy, not much trouble, all the basic things work, as of what I’ve tested. Here’s how you…

noCD? |boot from usb| Sabayon Linux

I had a pen-drive lying around, and so I decided to try out a new distribution of linux, Sabayon Linux. Why Sabayon? On a base install, everything is there and just works perfectly For a newbie, the hard part is often getting playback codecs, well, Sabayon has them pre-installed Sabayon has focused on the base…

Restore Broken Package DB on Sabayon

System database not found or corrupted, running in safe mode using temporary, empty repository phoenix jude # equo rescue resurrect >> ####### ATTENTION: The installed package database will be resurrected, this will take a LOT of time. >> ####### ATTENTION: Please use this function ONLY if you are using an Entropy-aware distribution. Can I continue…

Easily Sort Your Music Library

Here is a very simple script to sort your whole music library according to their artists, #!/bin/bash # sortMusic v0.4 # make sure this script in in the music directory and you execute this script from there # know issue: will display many errors, but it does it fine, those errors are not to be…

1 of 2
12