git stash --keep-index
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.
Saturday, April 26, 2014
https://help.github.com/articles/fork-a-repo
https://help.github.com/articles/syncing-a-fork
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.
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
Decimal to Binary in ruby
puts ("%08b" % 127).scan(/.{1,4}/).join(' ')
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)
send(:method_name, argument_for_it)
Subscribe to:
Posts (Atom)