Wednesday, December 28, 2011

The Luhny Bin Coding Challenge

Hans Peter Luhn
During my scarce free time I have decided to go through the recent coding challenge raised by Square which revolves around writing a log filter that masks any potential credit cards with placeholders such as XXXX-XXXX-XXXX-XXXX.

The neat thing about this coding challenge is that it's backed up by a test-suite which attempts several log patterns at your implementation. In order to satisfy them, you'll have to be careful in not missing any possible credit-card pattern.

The caught credit-card patterns need to be verified by the Luhn checksum as to whether they qualify as being credit-cards or not.

I have published my Java implementation which heavily relies on regular expressions for the detection of the possible credit card patterns, plus it's possible to further expand this implementation with further checksum algorithms as needed.

Go ahead, take your chance, fork their repository and get started !

Tuesday, December 27, 2011

How to choose the republic's president ?

Reading through Dr. Ragheb's book How to choose the republic's president ? I believe it's worth sharing to everyone such that the benefit spreads out. The book is a small one which should take from 1 to 2 hours to finish it for the average reader. The book is available at several local bookstores in Egypt, so it shouldn't be a problem to get hold of it (I got mine from Dar Al Salam).

The book's sole target is to educate people on how to choose a proper president for their republic, especially that Egyptians are approaching the presidential elections which they have been practically deprived from for the past 30 years.

Reading through the book, you will come up with the characteristics of a decent president to look for when the elections come around. Consider it as a proposal to what should constitute a proper president for our country. I believe the current period is a good chance to start building our opinions.

Tuesday, October 4, 2011

Introducing Mohamed Gamal

Mohamed Gamal is the name that I amazingly heard during an electrical engineering training that I attended at the Ras Shoker petrol plant a couple of years ago during college. Mohamed Gamal worked there around 45 years ago and till now you can hear his name being praised by the workers there. He was one of the legendary people working at that plant long ago.
So what did that man do to have his name mentioned there after 45 years ?



Digging into his history, you'll find out how much work and dedication he has given to his career in addition to the non-career category as well. How much care he has put in being fair enough with all of his relationships. I will be posting more about him in upcoming posts but for now, just know that he's my father !

Sunday, August 21, 2011

Getting better PDFs out of LinkedIn !

Maintaining your resume over a publicly known resume website such as LinkedIn has turned out to be a great method to expose yourself to the world. Though, when it comes to sending your resume to a company, you will have to either send some private resume (possibly in Word format) you have been keeping around or generate a PDF version from your online profile (if it's possible).
Unfortunately, what really counts is what reaches to the company you're aiming for. Therefore, your online profile will better be available in a neat PDF form, or you will find yourself copying most of your online information back and forth between a private Word file and your online profile.
I have been using LinkedIn for quite a while and have found that the PDF format of the online profiles to be somehow too basic compared with today's quality resumes. Someone may favor it's simplicity, but I was looking for something that's really eye-catching. Recently, I bumped into a LinkedIn Labs web application called Resume Builder. It turned out this is what I really needed after all.

To sum it up, the resume builder web application allows you to pull your linkedin profile into any of the pre-defined templates (looking forward to create our own templates !). Once you're profile has been pulled, you can show/hide/re-order the segments of your resume to look the way you want it to. After you have performed this, you can generate a nicely looking PDF version of your resume. If you have updated your LinkedIn profile at anytime later on, you can basically just pull it again into the resume builder.

You can go even further to write your original profile in the Markdown wiki syntax and it will be automatically rendered in your resume. This is something that's really lacking in LinkedIn's original features.