Archive for the 'from the road' Category

Have a great spring break!

March 19th, 2010 | Category: from the road

Hope everyone gets some time off. I’m in Miami about to get on a big boat and head to the Bahamas. Can’t wait to be back on a beach its been almost three months.
Cheers!

Sent from my Verizon Wireless BlackBerry

1 comment

Implicit declaration of function stpcpy

February 27th, 2010 | Category: from the road

A very irritating compiler warning:

tarc.c:174: warning: implicit declaration of function “stpcpy”
tarc.c:174: warning: incompatible implicit declaration of built-in
function “stpcpy”

No clear way to fix it. Upon first thought you
#include string.h

But that doesn’t work.

The only workaround is to add a function prototype to your .h file or
to the top of your .c file:
//function prototype for external function
extern char *stpcpy (char *__dest, const char *__src);

This declaration is the fix you need to supress that warning. Stpcpy
is extern’d from usr/include/string.h

Stpcpy: http://www.opengroup.org/onlinepubs/9699919799/functions/stpcpy.html

No comments

Graduate school teaches you…

February 04th, 2010 | Category: from the road

Graduate school teaches you -
* Patience – Because a class may be incredibly awesome or absolutely
terrible. Either way, it is still 5 months long. No one, no matter how
smart or special they are, can make the class go by any faster. You
just have to be patient and deal with it.

* Tolerance – A professor might be a genius in his field, Here are ( 1
), ( 2 ), and ( 3 ) who I can give as examples. They are pioneers in
their research, and some are personable and good teachers. But others
are not at all interested in giving lecturers and have very little perception of what the
student brings to the class, what students need to know and what they are
lacking.

* Time management – No work now, more work than 10 donkies, 10 mules,
and 10 graduate students can do come April. What are you going to do
about it?

* Interesting applications for your Blackberry / iPhone – because face
it, some lectures are going to be boring as fcuk and you have to sit
through the entire thing to catch the one pertinent fact that will be
mentioned all day

* Discipline – Picking your nose in class will get you a dirty look
and no one will want to work together with you. If you’re bored find
then another hobby.

No comments

Happy New Years from India

January 01st, 2010 | Category: from the road

Happy 2010 from Mumbai! Having a blast out here.

2 comments

Can’t compile the example WordCount.java (Hadoop)

December 02nd, 2009 | Category: from the road,geek out,popular

http://mail-archives.apache.org/mod_mbox/hadoop-common-user/200907.mbox/%3Cd6d7c4410907201717t672e4caet3f369d7e4327ff7b@mail.gmail.com%3E

Seen this?

Rajat@rtde ~/java
$ javac -classpath /home/Rajat/hadoop-0.20.1/hadoop-0.20.1-core.jar -d
wordcount_classes WordCount.java

WordCount.java:5: package org.apache.hadoop.fs does not exist
import org.apache.hadoop.fs.Path;

WordCount.java:6: package org.apache.hadoop.conf does not exist
import org.apache.hadoop.conf.*;
^
WordCount.java:7: package org.apache.hadoop.io does not exist
import org.apache.hadoop.io.*;
^
WordCount.java:8: package org.apache.hadoop.mapred does not exist
import org.apache.hadoop.mapred.*;
^
WordCount.java:9: package org.apache.hadoop.util does not exist
import org.apache.hadoop.util.*;

And running CygWin on Windows? Tried everything for your classpath
huh? Try this:

$ javac -verbose -classpath C:\\cygwin\\home\\Rajat\\hadoop-0.20.1\\hadoop-0.20.1-core.jar -d wordcount_classes WordCount.java

(Change your cygwin path, obviously)

Use the -verbose flag to show the entire class search path.


No comments

Aircrack NG on iwl3945

November 25th, 2009 | Category: from the road,geek out

The iwl3945 would not go into monitor mode as easily as some of the
documentation says.

To get this to work, I had to go through a peculiar set of steps.
Notice the changing argument, wlan0 or wifi0.

1. airmon-ng stop wlan0
( will say “monitor mode disabled)

2. airmon-ng stop wifi0
(will say nothing much)

3. airmon-ng start wlan0
(now it agrees to go into monitor mode:
(Monitor mode enabled on mon0)

No comments

Next Page »