Rahul Jose me@rahuljose.com

Rahul Jose is a Bangalore based student Engineer with a passion for Technology,Startups and Statistics and is currently undergoing training on Embedded Systems

You can contact him at
me[at]rahuljose[dot]com
Feb 08
Permalink
gamefreaksnz:

mapenvelop : beste miray
The MapEnvelop project prints your current location inside of your letter’s  envelope.

gamefreaksnz:

mapenvelop : beste miray

The MapEnvelop project prints your current location inside of your letter’s envelope.

Permalink

My Sparkfun Shopping Cart

My Sparkfun Shopping Cart

The Action on IRC

The Action on IRC

Another one from IRC

Another one from IRC

Sparkfun Free Day:-

Sadly wasn’t able to snag anything for free,even the new servers weren’t able to deal with the number of people trying to get things for free.Was really looking forward to getting a free arduino and a few other components(look at the pic).I did take away a few pointers from the whole episode.

  • Reinforced my awe for the power of free-people were awake at all kinds of ungodly hours(across the world)to take advantage of the free day.The IRC server had more users on the sparkfun channel than the Ubuntu and Debian channels.
  • Offering stuff for free probably is not the best way to make friends.Best summed up by a comment I read somewhere which went something like this “they probably made a 1000 friends and a lot more enemies”

Well my Arduino controlled Christmas Lights will have to wait till I have some money in my pocket.All said and done really loved the initiative by Sparkfun you really can’t blame them,would love to do business with them in the future.

The most interesting thing is that according to one of the sparkfun employees Free Day paid for itself within a few hours that’s huge.

This post has been in the draft for quite a while(been out of town) but there has been an interesting update an Indian website tried emulating the same free day approach but offered around 500Rs  or 10USD worth of free stuff from the website though they did not have an Arduino Board I was able to snag a Breadboard,IR Sensor,IR LED’s and an alphanumeric display which I want to use in a future project.They actually called and confirmed the order with me I was pretty impressed by the Customer Support.So here’s a hat tip to them and a link to their website if you are into robotics you should find the place pretty interesting.

Dec 31
Permalink
via Indexed
First seen here at this very interesting post.
Wishing everyone a Happy and Prosperous New Year,2010 its got a nice ring to it Twenty Ten Sounds right for a Sci-Fi flick.

via Indexed

First seen here at this very interesting post.

Wishing everyone a Happy and Prosperous New Year,2010 its got a nice ring to it Twenty Ten Sounds right for a Sci-Fi flick.

Dec 16
Permalink
Dec 05
Permalink

Finding the Number of zeroes in the product of all numbers between 1 and 100

life-src:

rahuljose:

I am sure there is a simpler mathematical solution but this is good enough for now I have always been a brute force guy sadly

#include<stdio.h>
void main()
{
int i;
long double p=1;
for(i=1;i<101;i++)
{
p=p*i;
}
printf("Product of all numbers between 1&100 is %LG \n",p);
}


No Compiler installed no issues head to http://codepad.org/

PS:-

The answer is 152 zeroes.

My takeaway from this is the printf Format placeholder for Long Double-%LG


Actually, there is a better (and more accurate way. Note that your double isn’t large enough to hold a value as large as 100, neither is the unsigned long. But Java does have the BigNumber object that can be used to store numbers larger than you can imagine. What you’d have to do in C is to keep an array to keep track of all those digits and then perform the computation as if you were writing it down on pen and paper, take each thing one-by-one and multiply. I will work on a possible solution to this.

I really screwed this one up should have guessed 152 is way large a number hope this helps someone.100! is definitely a much simpler approach and combined with Wolframalpha the best.What happened here was the answer provided by the program was a approximation of the final result.The data structure is definitely big enough to hold the result no need to fix that.I shall re-post the program with precision later.

PS: The correct result is 24 as pointed out by Manu and Wolframalpha

Dec 04
Permalink
Nov 30
Permalink

:) Great take on Apple’s Advertising Loved it

Nov 25
Permalink

Penguin Cafe Orchestra-Perpetuum mobile

From the Soundtrack of Mary and Max

Links of Interest:-

Penguin Cafe Orchestra

Perpetuum mobile

Nov 24
Permalink
Nov 23
Permalink