Search Ali's Blog

Wednesday, December 05, 2012

How to compile Linux kernel for ARM

Friday, August 10, 2012

Mozilla Thunderbird & Microsoft Outlook & Linux Patches

Tested on Thunderbird 14.0 (2012)
Microsoft Outlook is commonly used by many enterprises, it has a lot of nice features, but it cannot be used by Linux kernel hackers to exchange Emails and submit/review patches, because it doesn't support the formatting required by the Linux kernel community, Outlook client does "too much" to beautify the Email, and end up breaking the Email headers and formatting, in such a way that all attempts to fix it have failed.

Mozilla Thunderbird on the other hand, has very nice GUI interface, and can be configured as you wish. It also supports Apple OS X.

So if your company uses Microsoft outlook for internal Email exchanges, and you'd like to take part in sending/receiving Emails with the Linux kernel community, you may find it useful to move to Thunderbird.

Note that Thunderbird doesn't support Microsoft Exchange server (w/o IMAP/POP3), so you may want to have separate Email email for Linux kernel development (could be even a Gmail or Google Apps Email, this is good for archiving and for searching Emails). My attempts of using Thunderbird with Web Outlook interface didn't show good results, also using software proxy solutions such as DevMail showed very low speed. So I don't recommend making Thunderbird work with Microsoft Web outlook or Exchange server if it's not supported natively in Thunderbird (as for version Thunderbird 14.0 - 2012, it's not supported).

Configuring your Email with Thunderbird is pretty easy, the automatic configuration tools that comes with the Thunderbird client did the job, and it worked like a charm.

Now the tricky part is how to configure Thunderbird Email formatting to work properly with Linux patches. I found some links that explains how to do so, but the instructions seem to be outdated. Below is step-by-step instructions to configure Thunderbird properly for Linux kernel patches submission/reviews or discussions (tested with Thunderbird 14.0).

1. Go to Tools/Options/Advanced, under General tab, click on Config Editor

2. Set the following:
mailnews.send_plaintext_flowed = fals
email.identity.default.compose_html = fals
eprefs.converted-to-utf8 = true
mail.wrap_long_lines = true
mailnews.wraplength = 72

3. You're ready.

Note: if for some reason, you've received an Email on Outlook, and you'd like to reply from Thunderbird, you can export the Email from outlook, and import it into Thunderbird.
- To export an Email from Outlook: drag and drop the Email item to (e..g) your desktop
- To import to Thunderbird: File/Open saved message, then select "all files" and open the Outlook exported Email.
- You may want to automatically CC your outlook address on all outgoing Emails from Thunderbird: Go to Tools -> Account Settings, then Copies and Folders (under you e-mail account name). CC/BCC any other Email address/addresses.
- To send an Email from Thunderbird "on behalf of" your Email in outlook, you can add new identity in Thunderbird by going to Tools/ Account/ Manage Identities, then you need to enable the new identity also on the server side, in case of Gmail-based account, go to Gmail/ Settings/ Accounts and Import, then click on "Add another email address you own", to change the default "From" field in Thunderbird you may find CorrectIdentity plugin useful.



Saturday, June 23, 2012

[MAC OS] Automatic subtitle with VLC

Subdownloader is a nice application to automatically download the subtitle of a movie.
It parses your files and connects and uses OpenSubtitles to get the list of available subtitles for a particular movie, it can be configured to fetch your favorite language(s).

With VLC player, this would be a perfect combination.
To enable "play" button on Subdownloader to automatically launch VLC player, go to Preferences -> Others -> and then fill the fields as in the snapshot below.



Thursday, June 21, 2012

How to save websites passwords

There are too many web accounts to remember, and their username/password plicy may vary, I bet you recall all of them. On the other hand, it's hard to trust the tools out there that promise to collect all your passwords and back them up.

Since I use my Gmail daily, and it has valuable information, it also has 2-step verification process for extra security, so I will take the chances and use Gmail to store my web account passwords. this way I need only to remember my Gmail account password (this is no big deal) and then you can use Gmail search engine to easily find the website username/password you're looking for.

  • Normally websites send you a verification Email with your username to your Gmail account, I forward this Email to myself with the password, and move it to "passwords" label.

  • If I change my password, I look for the Email in my Gmail account that holds my previous password, and reply (to myself) with the newer password
  • Many times, Google Chrome saves my password, with time it holds a lot of passwords that most likely I forgot.. so once in a while, I export all Chrome passwords and send it as a text file to my Gmail account (use text file to allow Gmail search to find them for you). This tool (ChromePass) is pretty simple and does the job.
  • Some sites don't allow you to save the password (when you log in, you won't see the "save password" button (in chrome). When you hit such a website, and you still want it to save the password:
    • Right Click on the username field, and select "inspect element"
    • Find the token autocomplete="off" and change it to "on", hit enter
    • go back to the username/password fields, and you'll see the "save password" button right after you fill your information

Monday, April 16, 2012

[MAC OS] Synergy for PC/MAC

Synergy is a cool app that lets you share your mouse and keyboard between multiple computers. If you use Macbook Air (2011), you probably know that the embedded graphical controller doesn't support dual monitor.. this is where Synergy become handy.

I've install Synergy today on my DELL 6410 laptop as a server, and on my Macbook Air 2011 as client. The idea behind the application is great, however it still have some bugs especially in the interoperability part between PC and MAC.

The first problem I've encountered is that the shift key doesn't pass from PC server to MAC client, thanks to this post, I installed the following versions and was able to have successful integration:
Win 7 - x86 version 1.4.8
MAC 10.7.x -  x86_64 version 1.4.7