A quick tip for command line users: if you want to convert .png files to .pdf:
convert *.png filename.pdf
Simple! If you want to keep control of page sequence or specific files to convert:
convert page1.png page2.png page3.png filename.pdf
Needless to say, but I’ll say it anyways, the .pdf won’t be in vector graphics, so not scalable but that is because .png is not a vector graphics format.
Just keeping a note to self (and others who could find it useful). How to install Ejabberd on Ubuntu server 12.04:
- aptitude install ejabberd (for some reason apt-get didn’t work out that well);
- go to wherever you manage your DNS records and add a SVR record as mentioned here;
- edit /etc/ejabberd/ejabberd.cfg and add admin user as mentioned here .
All of these steps are to avoid placing hosts as localhost on your ejabberd.cfg file which could work but than you might have problems with clients trying to connect.
For those who are vim fans, a quick tip on how to run a diff/merge task:
Open the files with:
vimdiff file1 file2 file3 –> Vertical split is default
vimdiff -o file1 file2 file3 –> If you’d like horizontal split of files
To jump between files:
To jump places where differences are found:
]c –> to see next part of a change
[c --> to go back to the start of a previous part of a change
These are just the quick basics, there are a ton of other commands listed on Vim’s documentation page.
I’m tired of waiting for T-Mobile NL to give me FroYo (Android 2.2). Besides, that controlling which apps I can or can’t have access to.
So, let’s get to it ourselves!
Starting this process I didn’t have the needed warm and fuzzy feeling because the tutorials I found were not so detailed. Which is why I’ll describe step-by-step what I did (actually typing while I’m going through the process myself):
Note: I’m not responsible for anything that happens to your phone and I can’t provide any support or additional information. I ran it on my own doing some research, please try to do the same if you get stuck.
- First, backup your apps. I did it with an app called “Astro File Manager”
- To get root, go to Unrevoked. Select your mobile device and your OS.
- I’m on a Linux machine, so after I have reflash.tar.gz downloaded on your computer, untar it, than run sudo ./reflash
- You’ll be guided about the next steps (connect your phone as disk drive, turn on USB Debugging).
- Once everything is done, I got on my phone a “ClockworkMod Recovery” boot screen. Just to be extra safe, I ran through “Backup and restore” to create a backup. After the backup was done, I chose “reboot system now”
- Now you should have root! The phone should restart the looking the same as it did before.
- Let’s prepare to install something else. From your computer download the latest version of the radio. I got the link from here . Move the zip file to the root of your phone’s SD card.
- Go to the Android Market and find/install “ROM Manager” (I used the free version). After it is installed, run it and choose to boot in recovery mode. You should get a screen asking you if the action has root access, allow it and run it again.
- Now back in ClockworkMod Recovery, choose “install zip from sdcard”. Find the zip file you just downloaded and install it.
- Reboot your phone.
- Now back into your normal looking phone again. Go back to ROM Manager and select “Download ROM”
- Let’s pick CyanogenMod, latest build is given and select Google Apps as well.
- Once everything is downloaded, click both checkboxes “Backup existing ROM” and “Wipe Data and Cache”. Press ok.
- You’ll now reboot to CyanogenMod! Process done!
Here is a simple and quick way for you to encrypt files in Linux:
gpg –output doc.gpg –encrypt –recipient EmailofRecipient@blah.com original_file.doc
- –output (or -o) is the name of the encrypted file
- –recipient (or -r) is the person who will be decrypting the file. If the file is for yourself only, use the email address of your GPG key.
gpg --output output_file.doc --decrypt doc.gpg
I recently used this to encrypt a sensitive file before placing it on my Dropbox account. Nice safe way to place a private document in the cloud.
Reference, GnuPG manual.
Want to know how to download a YouTube video? Just go and watch the video! It’ll automatically be downloaded for you. Let me explain further…
While you watch the video on the web it is being downloaded for you to your /tmp directory. Try it out:
- go watch any YouTube video
- go to /tmp
- you’ll find a mysterious file name there without any extension reference. Double click and you should see that is is your video. If you’d like change the file name to something you’ll remember better and move it to whichever folder you want.
The file downloaded will be .flv so if you want another format later on, please use a converter app.
A quick tip to get the dust out of our blog
If you hear the fan of your computer going way up, most likely that was because some application or process is using too much CPU. Find out which one and terminate it by:
1. Open the terminal
2. Run “top”
3. Press “k” and the number on “pid” column of the process which appears on the top of the list.
Gwibber, an open source microblogging app for Gnome has now reached version 2.0!
Although at 2.0, the developers are not considering this a stable release yet and not making it available on the stable distribution channels. What I could notice first from the upgrade was the UI from:
- it is now easier to jump between different accounts (Gwibber supports Identi.ca, Twitter, Facebook, Digg, StatusNet, Flickr and more).
- You can easily post to only one account.
- Easy “re-dent” / “re-tweet”.
I’m sure there are more behind the scenes improvements but so far I haven’t seen any list. For now, the upgrade was worthwhile.
If you’re trying to recover deleted files or files in a corrupted partition, you might want to give Magic Rescue a try. With this command-line tool you will basically be looking for specific file types (searching by their extension). So, for a massive file recovery task, it will not be a good approach.
The program uses what it calls “recipes” as the instruction of which files to look for and how to do so. On a standard installation of Magic Rescue on my Ubuntu 9.04 distro, I got the following recipes (located at /usr/share/magicrescue/recipes) :
If you’d like you can write your own recipe, the man page will instruct you how to do so.
To start looking for files, make sure you create an output directory and than execute:
magicrescue -r [name of recipe] -d [output directory] [DEVICE PATH, eg /dev/sda]
*more options and parameters are available, the above are the mandatory ones.
I used it testing .avi extensions and it worked pretty well to recover some files I had deleted even a long time ago.
If you want to run a WebKit web browser with no strings attached (unlike Safari and Google Chrome), Arora is surely worth a try.
First plus is that it runs on Linux, Windows and MacOS X. It is fast, has private browsing and looks like it has some plug-in support. Another good news is the announcement Kubuntu will carry Arora as its default browser in the 9.10 release.