Thursday, April 30, 2015

$ git config --global core.pager 'less -r'
overrides the default option (less) by giving it the ability to wrap long lines in text files. That way you can see what's really different on two rows that begin in a similar fashion but differs at the end.

Thursday, May 8, 2014

Selecting git stashing

This will stash everything that you haven't added to the index. Just git add the things you want to keep, then run it.

git stash --keep-index

Saturday, April 26, 2014

https://help.github.com/articles/fork-a-repo
https://help.github.com/articles/syncing-a-fork

Friday, April 4, 2014

Applying a patch file on a windows machine using git

git apply --ignore-space-change --ignore-whitespace --whitespace=nowarn file.patch

source: 
http://stackoverflow.com/a/8056005/878451
http://stackoverflow.com/a/7143348/878451

Sunday, March 9, 2014

Make sure all your gmail contacts sync to your iOS device

http://www.techhive.com/article/242654/make_sure_all_your_google_contacts_sync_to_your_ios_device.html

My wife recently made the switch from a clunky old Android phone to a spiffy new iPhone 4S. When she asked if all her contacts could be moved from the former to the latter, I confidently replied, "Sure, no problem!" After all, Android phones sync with Google Contacts, and iTunes has the ability to do likewise. Easy-peasy, right?

After making sure that the Android phone had done one final Contacts sync, I fired up iTunes, plugged in the iPhone, and clicked it in the navbar on the left. Then I clicked the Info tab and focused my efforts on the Sync Contacts section.

Specifically, I enabled the option, then clicked the contacts selector (a pull-down menu) and chose Google Contacts. iTunes asked me for my wife's account info, which I provided, and then I just sat back while the software worked its syncing magic.

Just one problem: not all her contacts landed on her iPhone. Many did, but a good chunk of them were missing. I signed into Google proper, and sure enough, there they were. So what was causing the disconnect?

I won't keep you in suspense. iTunes syncs only those contacts in Google's My Contacts group. If you have contacts in other groups, as my wife did, those won't make it through to the iPhone.


Fortunately, it's an easy problem to remedy. While viewing your Google Contacts (via Gmail), click a group to select it, click the uppermost checkbox to select all the contacts in that group, and then click the Groups button. Choose My Contacts and you're done. (That doesn't make any actual changes to any of your contacts, it merely adds them to the My Contacts group.) Repeat the process with any other groups you might have.

Now sync your iDevice again and you should find all your contacts present and accounted for.

Saturday, February 1, 2014

Thursday, January 16, 2014

Learning Ruby I

The operators that seem like they're part of the language are just syntactic sugar for calling and writing methods on the objects.

send(:method_name, argument_for_it)

Friday, September 27, 2013

EBook Reader

So this time around, I am messing with different Ebook readers. This much is for sure that I am going to have different ones for different file extensions. In my experience, the applications that deal with all kinds of files, aren't all that great. So though diverse file format support is appreciated, it's not a consideration in my selection.

So - for PDF reading:
Adobe reader is perfect for android.
For PC, Adobe is good enough. If more functionality is needed, let's go for Nitro Reader, it's also good.

For epub
For android, I like the feel of Google Play, and I like that you can upload your books to it. So that's it for androi.
For PC - this is what's all the fuss about. I am trying and testing. I want something light and clean, and something that I can comment on, highlight on, make notes, that kind of stuff. But even if this functionality isn't there, being light, clean and beautiful is something I can't compromise on. So here's the list:
- In chrome app: EPUBReader-App
- Booki.sh (haven't tested it yet). Also in-browser app.
- http://www.fbreader.org/ - this is a bit too much, but I think I will install as I will need more features. Not now though.


And while doing my own little research, I stumbled upon this review: http://www.jedisaber.com/eBooks/Readers.shtml - highly recommended. Very scientific. I just love it. I wish I had such a review for every app I needed :) Thank you! Whoever did it. I think after going through this, I will go for Adobe Digital Editions for my computer.


Thursday, July 18, 2013

Google Reader

Google retired it. And which brings me to try all these other alternatives to find out which one's the best for my needs. I miss reading at least two blogs! One of them is Scooby, so I need a reader which is clean, light and quick. Anyway, here's a list I am gonna try:

Won't post a full-on analytical review, but just minor observations.

http://www.skimr.co/
http://newsblur.com/
http://www.netvibes.com/en
http://smashingreader.com/
https://feedbin.me/

I have a feeling this is going to be the winner:
http://readable.cc

Sunday, January 13, 2013

Adobe Garamond Pro


Some math I did for my own sake:

100 pixels per inch.
100 pixels per 72 points.
100/72 pixels per 1 point.
100/72*12 per 12 points.