Tuesday, June 26, 2007

Awake

No! I was not sleeping or forgot the fact that I need to write something here. Every week I tried to post and I was not able to. Held up on certain things! Lots to write from my side of the month. But to begin with here is a coffee code conversation with one of my colleague here. He marched to the white board and wrote this,

{
printf("suresh\0kumar");
printf("12345\06789");
}

doesn't it look simple. try your C skills on this. Solution at the end.

In my office one can see the friendly chameleon sketches stuck in many walls. Some even started coloring them with their own style. :) The SUSE hack week started this Monday (June 25th). Look this video of how it really started :). I was just reading & listening to some of the ideas. They looked cool hacks.

An interesting thought struck me yesterday night. Most corporate citizens have X allowance and Y allowance, so here is one to include in that boring list. "Auto Allowance" - applicable for Bangalore makkal alone. But now the question arises how will you reclaim this allowance, since the Finance dept will ask for the bills. I have a suggestion for that too. Install prepaid tickets issuing counters at very close proximity (say every BMTC Bus stop). Let it be automated, where we type in and get the ticket. Also pay the autowala with the prepaid amount. But how will you be sure of the genuineness of the tickets. Suggestions?

Next bloggers around me were really active and wrote many. Out of them few I found interesting like this and this and this. I had been very dormant when compared.


I saw Shivaji on the 3rd day, Our Super Star is back at his best. A through full time entertainment of 180 mins. Vivek's comedy, Music, screenplay, dialog, theme everything was good. For a fan its eternity after watching this film. A nice review was here and here

solution: suresh12345789
because 067 is ascii equivalent of 7 in octet.

P.S: Suggestions/Feedback/Critics/Anything else ↴ leave a comment

12 comments:

Srihari said...

To your C snippet , Iam not sure what happened to kumar in printf(suresh\0kumar) ...

Sivaji was a nice watch.. Iam lucky to watch the movie on the first day .. And it so happened i had to watch it again on my friends b'day ...

Vijesh said...

Srihari,

printf terminates when reads '\0'. It prints only up to that!

Anonymous said...

Hmm. Isnt it undefined ? Means it might vary from vendor to vendor.

Srihari said...

Auto Allowances :

Since all auto rickshaws are
run by the government , install a billing machine along with the meter so that u get the bill right away on demand..


But the autowalas wont be doing great business here ..

Vijesh said...

Sankar,
To be very specific you are right! But then with default parameters it terminates!

Srihari,
But how will you stop false claims on this. What if Mr.X can get 'n' number of false autowala bills to claim. :)

VV said...

I have one idea....
Like a person can be given a particular amounted coupon...more like a checklist of Kilometers...

so when he travels in an auto, at the end of the trip the driver can deduct the KMS travelled (just striking out...)

no one is going out to strike their own KMS and also not going to try and rub the markings...

may be further modification will help... :).

Vijesh said...

Varlu,
Again who will authenticate the kms strike. If autowala is your frnd he can strike more and charge you less.

VV said...

For that we can have something like agencies who can keep track of the autos.... Like for call taxis there is a centre to take care right??

of course there are some holes... still a better method is required...

Srihari said...

Let make the system simple and transparent .. Because we are talking about a sensitive issue and most autowalas dont even want a meter (like chennai) , U cant take away the gains from the autowalas for your gains ..

Call taxis are run privately , their business working model wont work here ..

The basic idea is satisfied with a billing machine , u have the bill in ur hand and keep HR's mouth shut ..

Vijesh said...

Srihari,
how do you say billing machine will solve it? billing machine in every auto or some freq prepaid stands avail near by?

Vijesh said...
This comment has been removed by the author.
Vijesh said...

My SOLUTION
We need to bring in some coupons like sodexo for this auto allowance from the company. Say this auto allowance is 500/- in company XYZ. Now that such auto allowance coupons should be given at various denominations (by company) such that they meet the autowala "change kodi" problem. Now these autowala just need to produce the coupons to prepaid stands or some banks to get those coupons cashed. So here the employee can also not make false claims.. since no one will give them free for autowala.. also the unused tokens will not be charged to the organizations.. Next worst level of fraudulent could be employee himself claiming money for those coupons.. Its prevention is simple, show the drivers identity to claims.. I guess this will be a good solutions without the use of any Technology.

Is there any loop holes in the Sys?