Monday, December 6, 2010

recover git-svn clone after it gets interrupted

I keep running into this problem especially when the repo i am cloning is huge or the network is flicky. Before this i had no idea how to pickup the process from where the network problem happened so i use to delete the repo and re-clone the entire thing from the start. But this is a extremely frustrating and waste of time.

Fortunately, this is not necessary; just go into your partially retrieved git-svn repo and execute git-svn fetch. This continues fetching the svn revisions from where you left off.

# git svn clone git://url/project.git
..... connection breaks :(
#move to project directory
# cd project
# git svn fetch
.. fetch continues from where the connection was lost

This works like butter but if you gets a empty directory after git-svn fetch completes. Don't worry, just rebase hard the project

# git rebase --hard

and you are ready to code next generation features in the project you donwloaded ;-)

Cheers,

Support WikiLeaks

I am truly shaken from the ferver attempts with which American govt has tried to intimidate Wikileaks. They wants to crush transparency and silence the debate on the issues raised by the leaks.

In 2007 the median number of Iraqi civilians deaths due to the invasion estimated by the American public was 9,890. The minimum number credibly reported was over 40,000 and other studies have come up with estimates ranging from 200,00 to 700,000. This excludes the many hundreds of thousands of children who died from malnutrition during the preceding embargo. These, the consequence of silence and secrecy.

“In March 2006, after an afternoon of card playing, sex talk and drinking Iraqi whiskey, Pfc. Green and three other soldiers went to the home of 14-year-old Abeer Qassim al-Janabi near Mahmoudiya, about 20 miles south of Baghdad. Green shot and killed the teen's mother, father and sister, then became the third soldier to rape the girl before shooting her in the face.” (MSNBC).

The recent WikiLeaks points to a consistent policy of allowing mercenaries like Blackwater to murder innocent Iraqi civilians and remain unpunished. It is these and the many stories of innocent Iraqi deaths that should be told all over the world. The lack of information on these events has allowed western society to lose its moral compass on the true human cost of the aftermath of 9/11. The release of these documents should be resulting in war crime charges and a sense of revulsion in every city of the world.

I urge you to support WikiLeaks.

Wednesday, September 1, 2010

Apache Thrift

Yesterday I spent the day with Thrift. Thrift is a framework developed at Facebook for “gluing” together programming languages. The Thrift framework enables efficient and scalable communication between C++, Java, Python, PHP, XSD, Ruby, C#, Perl, Objective C, Erlang, Smalltalk, OCaml, and Haskell. Thrift allows you to chose the right programming language for the job at hand. With Thrift you won’t have to chose between development speed and performance – you can have your cake and eat it too. Thrift is still very much in its infancy.I hope to shed some light on Thrift and make it just a little bit easier to get up and running. I will write a follow-up post on how to use Thrift to communicate between Java, Python and C++.

Cheers,

Thursday, July 29, 2010

Syntax Highlight test

finally i configured syntax highlighter on blogger.

Here is the test. If it goes well i hope to share more code snippets and discuss about the interesting part of them.

so without waiting lets see if this works or not.

#include < iostream >
using namespace std;

int main() {
     cout << "Hello World!" << endl;
}


puts "Hello World"

it reflects my state of mind

I know why you're here, Neo. I know what you've been doing... why you hardly sleep, why you live alone, and why night after night, you sit by your computer. You're looking for him. I know because I was once looking for the same thing. And when he found me, he told me I wasn't really looking for him. I was looking for an answer. It's the question that drives us, Neo. It's the question that brought you here. You know the question, just as I did


Tuesday, July 27, 2010

I'm back

Guess which computer science field helps in estimation of amount of glucose in blood of a diabetic person, from the infra-red absorption spectrum of that person's blood.

tell tell ;-)

yes im back,,,, not able to find a decide a new place so thought will come back

kahte hai subah ka bhula sham ko ghar chala aa aaye to usse bhula nahi khate :P    

Cheers,

Sunday, June 13, 2010

Abondaned !!

I am in destructive mood these days... after deleting facebook account, disabling google buzz, removing everything from orkut profile .. i guess its time to abandon blogger as well.. will create a fresh blog somewhere .. just don't know where and when ....
Alvida..