<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-654896374642579389</id><updated>2024-08-28T17:06:35.141-07:00</updated><category term="android"/><category term="12.04"/><category term="adb"/><category term="best practices"/><category term="ps3 media server"/><category term="sdk"/><category term="ubuntu"/><category term="ubuntu 11"/><category term="windows"/><title type='text'>npDev</title><subtitle type='html'>Software development, git, linux, ubuntu, android and everything in between.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>48</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-2300848455956842685</id><published>2017-06-01T23:27:00.000-07:00</published><updated>2017-06-01T23:27:20.805-07:00</updated><title type='text'>Sign all vbox modules</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;for item in $(find /lib/modules/$(uname -r) -name &#39;*vbox*&#39; -type f -print | awk -F/ &#39;{print $NF}&#39; | awk -F. &#39;{print $1}&#39;); do echo &quot;Working on $item&quot; &amp;amp;&amp;amp; sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ~/vboxdrv.priv ~/vboxdrv.der $(modinfo -n $item); done;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/2300848455956842685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2017/06/sign-all-vbox-modules.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/2300848455956842685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/2300848455956842685'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2017/06/sign-all-vbox-modules.html' title='Sign all vbox modules'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-76109951541180763</id><published>2016-06-23T11:49:00.001-07:00</published><updated>2016-08-03T17:28:35.808-07:00</updated><title type='text'>iOS 9 Calendars out of sync - duplicate events - etc</title><content type='html'>If you are experiencing exchange calendar even issues, try this &quot;daily iOS calendar hygiene&quot; steps:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD4OxOn8u4V3C5iOHPhm_dNk-M6ReXFzpiT0VAhpgJQT2wDTpHHXiC18snL9bGA-MpcCtlvuziN3Nkz0-wVItIG7hOfGqVLrcSLlpHmrMO2SfUJAR-TgU-gDm4_ZwAyuFKu8SDmn8L-bOy/s1600/exchange_sample_sync.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD4OxOn8u4V3C5iOHPhm_dNk-M6ReXFzpiT0VAhpgJQT2wDTpHHXiC18snL9bGA-MpcCtlvuziN3Nkz0-wVItIG7hOfGqVLrcSLlpHmrMO2SfUJAR-TgU-gDm4_ZwAyuFKu8SDmn8L-bOy/s320/exchange_sample_sync.png&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
This should fix:&lt;br /&gt;
- duplicate events&lt;br /&gt;
- missing events&lt;br /&gt;
&lt;br /&gt;
done.</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/76109951541180763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2016/06/ios-9-calendars-out-of-sync-duplicate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/76109951541180763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/76109951541180763'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2016/06/ios-9-calendars-out-of-sync-duplicate.html' title='iOS 9 Calendars out of sync - duplicate events - etc'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD4OxOn8u4V3C5iOHPhm_dNk-M6ReXFzpiT0VAhpgJQT2wDTpHHXiC18snL9bGA-MpcCtlvuziN3Nkz0-wVItIG7hOfGqVLrcSLlpHmrMO2SfUJAR-TgU-gDm4_ZwAyuFKu8SDmn8L-bOy/s72-c/exchange_sample_sync.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-8278468577241034646</id><published>2016-05-19T12:10:00.000-07:00</published><updated>2016-05-19T12:10:01.436-07:00</updated><title type='text'>OSX Messages Fezz: Couldn&#39;t create saved chat path at /Library/Messages/Archive</title><content type='html'>I could not see any pictures in my Message App but when browsing around my system logs, also found this:&lt;br /&gt;&lt;br /&gt;If you are seeing these messages in your Console (100x of times):&lt;br /&gt;
&lt;br /&gt;
5/19/16 11:58:45.499 AM Messages[3234]: [Warning] Fezz: Couldn&#39;t create saved chat sub-path at (null)&lt;br /&gt;
5/19/16 11:58:45.499 AM Messages[3234]: [Warning] Fezz: Couldn&#39;t create saved chat path at /Users/&amp;lt;username&amp;gt;/Library/Messages/Archive&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Problem is apparently with this folder in /Library/Messages/Archive and Library/Messages/Attachments. The need to be deleted and recreated &lt;b&gt;as folders&lt;/b&gt;, not files.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To get to Library/Messages on Mac, easiest method I found is: Finder -&amp;gt; Go -&amp;gt; (Press Opt/Alt on keyboard) -&amp;gt; Select &quot;Library&quot;, then &quot;Messages&quot;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enjoy using iMessage, part of benefits of all Apple ecosystem.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/8278468577241034646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2016/05/osx-messages-fezz-couldnt-create-saved.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/8278468577241034646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/8278468577241034646'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2016/05/osx-messages-fezz-couldnt-create-saved.html' title='OSX Messages Fezz: Couldn&#39;t create saved chat path at /Library/Messages/Archive'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-6875545170310664450</id><published>2016-02-22T13:18:00.000-08:00</published><updated>2016-02-22T13:19:08.063-08:00</updated><title type='text'>iCal remove clear event invites (without responding)</title><content type='html'>Go from:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9j6ElDNQyzHV4XDunRblL3Pb80Gf4z1U_4xnJtvPBJki3t-sxFry3q7bnJSfBmCrASKofwN3EWaajmmtElO7KxEE6n2Qp5nFIGhQTBA_HuMTUW_csw8iEnMvhRWC80V-RDpi0gQvtCMD2/s1600/1456163835.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9j6ElDNQyzHV4XDunRblL3Pb80Gf4z1U_4xnJtvPBJki3t-sxFry3q7bnJSfBmCrASKofwN3EWaajmmtElO7KxEE6n2Qp5nFIGhQTBA_HuMTUW_csw8iEnMvhRWC80V-RDpi0gQvtCMD2/s400/1456163835.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
to:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgAq5Bh3ub26IbEQYYdETS3ZqYqgtIWZWf6Vv7_XlT-jGzrrLG69q5yp00XEIADFcmt6By-8os8eV3YzPXjQ10dRE9SeE6DKnGakQ5d52xklLEn3hKaJltWzZc0G4s-huo26dNRPBUhyphenhyphenSA/s1600/1456166170.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgAq5Bh3ub26IbEQYYdETS3ZqYqgtIWZWf6Vv7_XlT-jGzrrLG69q5yp00XEIADFcmt6By-8os8eV3YzPXjQ10dRE9SeE6DKnGakQ5d52xklLEn3hKaJltWzZc0G4s-huo26dNRPBUhyphenhyphenSA/s400/1456166170.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
with:&lt;br /&gt;

&lt;script src=&quot;https://gist.github.com/karolw/f5f152007643f52f55cf.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/6875545170310664450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2016/02/ical-remove-clear-event-invites-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/6875545170310664450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/6875545170310664450'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2016/02/ical-remove-clear-event-invites-without.html' title='iCal remove clear event invites (without responding)'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9j6ElDNQyzHV4XDunRblL3Pb80Gf4z1U_4xnJtvPBJki3t-sxFry3q7bnJSfBmCrASKofwN3EWaajmmtElO7KxEE6n2Qp5nFIGhQTBA_HuMTUW_csw8iEnMvhRWC80V-RDpi0gQvtCMD2/s72-c/1456163835.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-7465540621320107201</id><published>2015-05-05T11:29:00.000-07:00</published><updated>2015-05-05T11:29:45.323-07:00</updated><title type='text'>Git &amp; completion in OSX</title><content type='html'>Getting &#39;-bash: __git_ps1: command not found&#39; ? Lets get git installed correctly:

&lt;script src=&quot;https://gist.github.com/karolw/2ea30f1f5330f765bdf9.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/7465540621320107201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2015/05/git-completion-in-osx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/7465540621320107201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/7465540621320107201'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2015/05/git-completion-in-osx.html' title='Git &amp; completion in OSX'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-3241786136997549581</id><published>2015-04-04T13:50:00.005-07:00</published><updated>2016-02-16T09:50:48.211-08:00</updated><title type='text'>Expense reporting help with bash</title><content type='html'>Part of the laborious expense reports is being able to sort / classify receipts by day.&lt;br /&gt;
&lt;br /&gt;
Using this bash script can at least help to automate the &quot;buckets&quot; for your receipts:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;for day in $(seq 16 27); do echo &quot;Creating 03_&quot;$day&quot;_15&quot; &amp;amp;&amp;amp; mkdir &quot;03_&quot;$day&quot;_15&quot; ; done;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
A trip from March 16 to 27.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Will post if I find some OCR api improvement. Do you have any recommendations for that part?&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/3241786136997549581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2015/04/expense-reporting-help-with-bash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/3241786136997549581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/3241786136997549581'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2015/04/expense-reporting-help-with-bash.html' title='Expense reporting help with bash'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-3533408682371831717</id><published>2014-06-03T09:07:00.000-07:00</published><updated>2014-06-03T10:25:08.638-07:00</updated><title type='text'>OSX IntelliJ or Eclipse says it needs Java 6</title><content type='html'>1) Download&amp;nbsp; Java 6 2014 from Apple:&lt;br /&gt;
&lt;a href=&quot;http://support.apple.com/kb/DL1572&quot;&gt;http://support.apple.com/kb/DL1572&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2) Install Oracle JDK 7&lt;br /&gt;
&lt;a href=&quot;http://www.oracle.com/technetwork/java/javase/downloads/index.html&quot;&gt;http://www.oracle.com/technetwork/java/javase/downloads/index.html &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Troubleshooting &lt;br /&gt;
Missing libserver.dylib?. If you follow the above instructions you should not have this problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other:&lt;br /&gt;
Installing Oracle JDK 7 by itself is almost good but not good enough for Apple OSX. Most apps do not complain.&lt;br /&gt;
&lt;br /&gt;
Enjoy:&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/19563766/eclipse-kepler-for-os-x-mavericks-request-java-se-6&quot;&gt;http://stackoverflow.com/questions/19563766/eclipse-kepler-for-os-x-mavericks-request-java-se-6&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Low level shell commands replacement:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;cp Info.plist Info.plist.backup&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;sudo emacs Info.plist&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
new file:&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;key&amp;gt;JVMCapabilities&amp;lt;/key&amp;gt;&lt;br /&gt;&amp;lt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;array&amp;gt;&lt;br /&gt;&amp;lt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string&amp;gt;JNI&amp;lt;/string&amp;gt;&lt;br /&gt;&amp;lt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string&amp;gt;BundledApp&amp;lt;/string&amp;gt;&lt;br /&gt;&amp;lt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string&amp;gt;WebStart&amp;lt;/string&amp;gt;&lt;br /&gt;&amp;lt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string&amp;gt;Applets&amp;lt;/string&amp;gt;&lt;br /&gt;&amp;lt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string&amp;gt;CommandLine&amp;lt;/string&amp;gt;&lt;br /&gt;&amp;lt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;/array&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;... &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;old file:&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;key&amp;gt;JVMCapabilities&amp;lt;/key&amp;gt;&lt;br /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;array&amp;gt;&lt;br /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string&amp;gt;CommandLine&amp;lt;/string&amp;gt;&lt;br /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/array&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/3533408682371831717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2014/06/osx-intellij-or-eclipse-says-it-needs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/3533408682371831717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/3533408682371831717'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2014/06/osx-intellij-or-eclipse-says-it-needs.html' title='OSX IntelliJ or Eclipse says it needs Java 6'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-9026547972059088563</id><published>2014-03-17T12:26:00.003-07:00</published><updated>2015-04-04T13:56:31.828-07:00</updated><title type='text'>Emacs insert new line in minimized CSV</title><content type='html'>Minimized CSV file content:&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&quot;2013-01-12&quot;,&quot;test&quot;, &quot;123&quot;,&quot;2013-01-12&quot;,&quot;test&quot;, &quot;123&quot;,&quot;2013-01-12&quot;,&quot;test&quot;, &quot;123&quot;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
to convert to CSV (new line at each &quot;yyyy-mm-dd&quot;, &quot;test&quot; tuple):&lt;br /&gt;
M-x replace-regexp&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;\(&quot;[0-9]+&quot;,\)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
replace with: (new line insert)&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;\1&amp;lt;C-q C-j&amp;gt;n&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Done</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/9026547972059088563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2014/03/emacs-insert-new-line-in-minimized-csv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/9026547972059088563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/9026547972059088563'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2014/03/emacs-insert-new-line-in-minimized-csv.html' title='Emacs insert new line in minimized CSV'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-7881725277981152625</id><published>2014-03-17T07:45:00.002-07:00</published><updated>2014-03-20T09:57:28.801-07:00</updated><title type='text'>Hadoop on OSX</title><content type='html'>To get Hadoop 2.+ working on OSX, not using brew, just a pure installation from Hadoop homepage follow this tutorial:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/&quot;&gt;http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Seeing &#39;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Unable to load realm mapping info from SCDynamicStore&lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&#39; use this &lt;a href=&quot;http://stackoverflow.com/questions/7134723/hadoop-on-osx-unable-to-load-realm-info-from-scdynamicstore&quot;&gt;step&lt;/a&gt;&amp;nbsp;-&amp;nbsp;You might have better luck with this setting, however my setup still complains about this.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Thank you for making these articles available for free. Click on some ads while you are there :)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/7881725277981152625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2014/03/hadoop-on-osx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/7881725277981152625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/7881725277981152625'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2014/03/hadoop-on-osx.html' title='Hadoop on OSX'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-3767071697743801512</id><published>2013-11-11T16:52:00.001-08:00</published><updated>2015-12-23T09:50:35.474-08:00</updated><title type='text'>Lenovo K1 How to add Google Apps?</title><content type='html'>How to add Google Apps?&lt;br /&gt;
&lt;br /&gt;
Are you looking for a simple answer on how to put Google Apps on your Lenovo K1 tablet? Did you just flash the updated Lenovo K1 stock image and noticed it had no Google Apps?&lt;br /&gt;
&lt;br /&gt;
You should let me know how, a company of worth few billions of dollars manages not to give instruction how to do it easily?&lt;br /&gt;
&lt;br /&gt;
Yes?&lt;br /&gt;
&lt;br /&gt;
----------------------------&lt;br /&gt;
&lt;br /&gt;
Few solutions for Lenovo K1:&lt;br /&gt;
&lt;b&gt;Paper weight&lt;/b&gt;: use your Lenovo tablet to hold some papers in place. Or continue to sort the web (keep that google index fresh) how &quot;monkey doodles&quot; &quot;ABC magic&quot; and &quot;super duper&quot; trick you into downloading some spyware :D - Welcome to Android!&lt;br /&gt;
&lt;b&gt;Hang it on a wall&lt;/b&gt;: when kids stop by - you could point to it and say - this is what happens when $ to maintain something like a Lenovo K1 Android port cost &amp;gt; benefit to Lenovo.&lt;br /&gt;
&lt;br /&gt;
----------------------------&lt;br /&gt;
&lt;b&gt;Bottom line with non Google products:&lt;/b&gt;&lt;br /&gt;
Do not buy another tablet unless it is of Google&#39;s Nexus brand - everything else is complete WASTE of your money!&lt;br /&gt;
&lt;br /&gt;
I think I was saying the same thing 2 years ago. haha!</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/3767071697743801512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/11/lenovo-k1-how-to-add-google-apps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/3767071697743801512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/3767071697743801512'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/11/lenovo-k1-how-to-add-google-apps.html' title='Lenovo K1 How to add Google Apps?'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-8417653307814563737</id><published>2013-11-06T06:39:00.000-08:00</published><updated>2013-11-20T11:49:45.611-08:00</updated><title type='text'>Removing VMs from VirtualBox gui</title><content type='html'>Deleted files backing the VM? &quot;Remove&quot; option does not work?&lt;br /&gt;
&lt;br /&gt;
edit /Users/&amp;lt;userName&amp;gt;/Library/VirtualBox/VirtualBox.xml and remove entries with the name of your VM. Removing options like LastSomethingSomething was safe to do in my experimentation but the main section is here:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;lt;MachineRegistry&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;lt;MachineEntry uuid=&quot;{ee2edf14-bc0f-4436-9cb2-beb983425c8f}&quot; src=&quot;/Users/user1/VirtualBox VMs/ui_vm/ui_vm.vbox&quot;/&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;lt;MachineEntry uuid=&quot;{911ad5ce-a269-4549-8cdc-b1d8df47df72}&quot; src=&quot;/Users/&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;user1&lt;/b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;/VirtualBox VMs/ui_vm_w_ga/ui_vm_w_ga.vbox&quot;/&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;/MachineRegistry&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/8417653307814563737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/11/removing-vms-from-virtualbox-gui.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/8417653307814563737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/8417653307814563737'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/11/removing-vms-from-virtualbox-gui.html' title='Removing VMs from VirtualBox gui'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-2451270258881191294</id><published>2013-07-15T11:48:00.002-07:00</published><updated>2014-06-03T09:08:37.686-07:00</updated><title type='text'>Disable click anywhere in IntelliJ</title><content type='html'>If you are using this awesome IDE - it has an annoying default with virtual space!&lt;br /&gt;
&lt;br /&gt;
Here is how to disable it:&amp;nbsp;http://stackoverflow.com/questions/593214/how-do-i-turn-off-the-unlimited-whitespace-in-intellij-editor&lt;br /&gt;
&lt;br /&gt;
Enjoy!</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/2451270258881191294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/07/disable-click-anywhere-in-intellij-12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/2451270258881191294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/2451270258881191294'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/07/disable-click-anywhere-in-intellij-12.html' title='Disable click anywhere in IntelliJ'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-8780196798627232380</id><published>2013-07-12T20:08:00.002-07:00</published><updated>2013-07-12T20:08:37.928-07:00</updated><title type='text'>Enable Hibernate on Ubuntu 12.04</title><content type='html'>Best article - stop wasting time and try out this tutorial:&lt;br /&gt;
&lt;a href=&quot;http://www.howtogeek.com/113923/how-to-re-enable-hibernate-in-ubuntu-12.04/&quot;&gt;http://www.howtogeek.com/113923/how-to-re-enable-hibernate-in-ubuntu-12.04/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/8780196798627232380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/07/enable-hibernate-on-ubuntu-1204.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/8780196798627232380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/8780196798627232380'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/07/enable-hibernate-on-ubuntu-1204.html' title='Enable Hibernate on Ubuntu 12.04'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-7847913507762392921</id><published>2013-06-02T10:13:00.003-07:00</published><updated>2013-06-02T10:14:36.772-07:00</updated><title type='text'>Create custom shortcut for Anki on OSX</title><content type='html'>Using &lt;a href=&quot;http://stackoverflow.com/questions/281372/executing-shell-scripts-from-the-os-x-dock&quot;&gt;this guide&lt;/a&gt; you can create an application shortcut and have it &quot;open at login&quot;.&lt;br /&gt;
&lt;br /&gt;
The command to run in &quot;Run Shell Script&quot; is:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;/Applications/Anki.app/Contents/MacOS/Anki -b ~/Dropbox/Documents/Anki&lt;/b&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/7847913507762392921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/06/create-shortcut-for-anki-with-custom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/7847913507762392921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/7847913507762392921'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/06/create-shortcut-for-anki-with-custom.html' title='Create custom shortcut for Anki on OSX'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-382212183334742191</id><published>2013-05-26T14:59:00.002-07:00</published><updated>2013-07-06T19:34:32.690-07:00</updated><title type='text'>OSX Open under Linux </title><content type='html'>&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Tested under Ubuntu 12.04LTS&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;echo &quot;alias open=&#39;nautilus $1&#39;&quot; &amp;gt;&amp;gt; ~/.bash_aliases&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;source ~/.bash_aliases&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To make things more&amp;nbsp;permanent, you might want to log out - in so that entire bash environment gets refreshed.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/382212183334742191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/05/osx-open-under-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/382212183334742191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/382212183334742191'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/05/osx-open-under-linux.html' title='OSX Open under Linux '/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-6434442784461005348</id><published>2013-04-22T10:32:00.001-07:00</published><updated>2013-04-22T10:32:04.051-07:00</updated><title type='text'>Access EC2 from Terminal on OSX</title><content type='html'>Create/Append to &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;~/.ssh/config&lt;/b&gt;&lt;/span&gt;:&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;...&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;# EC2 Shared keys configuration &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;Host *.computer.amazonaws.com &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp;User ec2-user &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp;HostName *.computer.amazonaws.com &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp;IdentityFile ~/.ssh/&amp;lt;your_pem_key&amp;gt;.pem&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;...&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
then just&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;ssh &amp;lt;hostNameEndingWithRegexInConfig&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Done.&lt;br /&gt;&lt;br /&gt;
Didn&#39;t work? Tell me about it in the comments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/6434442784461005348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/04/access-ec2-from-terminal-on-osx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/6434442784461005348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/6434442784461005348'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/04/access-ec2-from-terminal-on-osx.html' title='Access EC2 from Terminal on OSX'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-148396208752629564</id><published>2013-02-24T12:17:00.003-08:00</published><updated>2013-07-05T10:31:01.935-07:00</updated><title type='text'>Emacs favorites so far - (Work in progress)</title><content type='html'>Shortcuts:&lt;br /&gt;
M-: - block comment&lt;br /&gt;
M-/ - auto complete from context&lt;br /&gt;
C-M-% - regex-replace&lt;br /&gt;
C-q &amp;lt;specialChar&amp;gt; - C-q &amp;lt;TAB&amp;gt;, &amp;lt;SPACE&amp;gt; inserts those special chars&lt;br /&gt;
&lt;br /&gt;
Commands:&lt;br /&gt;
M-x whitespace-mode - see all the cursing characters... :-P&lt;br /&gt;
M-x man RET cmd - view a man page properly in emacs&lt;br /&gt;
&lt;br /&gt;
Startup file location ~/.emacs

Tip: Avoid too many non-standard configurations. Keep your configuration file small and lean. If you evolve and/or heavily modify your environment, it will be increasingly harder to stay productive when you move over machines and won&#39;t have access to your superCustomized.el &lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
Hypothesis 1: make your file available through some http service. curl it down. run with emacs and watch for errors?&lt;br /&gt;
i.e. `emacs some option &amp;lt;yourConfig&amp;gt;.el` if $? == 1 { #don&#39;t move HEAD, latest emacs does not work }. You should let me know once you figure this out. :D&lt;br /&gt;
&lt;br /&gt;
Reference links:&lt;br /&gt;
&lt;a href=&quot;http://sachachua.com/&quot;&gt;http://sachachua.com&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/148396208752629564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/02/emacs-favorites-so-far-work-in-progress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/148396208752629564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/148396208752629564'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/02/emacs-favorites-so-far-work-in-progress.html' title='Emacs favorites so far - (Work in progress)'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-1897954423489656381</id><published>2013-02-24T11:38:00.001-08:00</published><updated>2013-02-24T11:48:02.534-08:00</updated><title type='text'>Rename bunch of files with Python </title><content type='html'>&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#!/usr/bin/env python &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;import os, re, commands&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;fileNameRegEx = &#39;^([0-9])+&#39;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;pattern = re.compile( fileNameRegEx )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;filesRenamed = 0&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;for f in os.listdir( &#39;.&#39; ):&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; match = pattern.search( f )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; if match:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newFileName = &quot;{0}.regex&quot;.format( match.group(0) )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;print &quot;Renaming {0} to {1}&quot;.format( f, newFileName )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;statusTuple = commands.getstatusoutput( &#39;mv {0} {1}&#39;.format( f, newFileName ) )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if (statusTuple[0] == 0): filesRenamed += 1&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;print &quot;Total files renamed {0}&quot;.format ( filesRenamed )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/1897954423489656381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/02/rename-bunch-of-files-with-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/1897954423489656381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/1897954423489656381'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/02/rename-bunch-of-files-with-python.html' title='Rename bunch of files with Python '/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-5021063442621008356</id><published>2013-02-07T07:26:00.000-08:00</published><updated>2013-02-07T07:26:41.117-08:00</updated><title type='text'>Music - Above &amp; Beyond</title><content type='html'>A post completely? (almost) unrelated to programming, software engineering. Big fan of above and beyond podcast. (&lt;a href=&quot;http://www.mixcloud.com/aboveandbeyond&quot;&gt;http://www.mixcloud.com/aboveandbeyond&lt;/a&gt;). Check it out, if you like electronic, trance music and code away that python &amp;lt;insertYourLangHere&amp;gt; script, class away.</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/5021063442621008356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/02/music-above-beyond.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/5021063442621008356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/5021063442621008356'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/02/music-above-beyond.html' title='Music - Above &amp; Beyond'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-1550276661649648881</id><published>2013-02-06T19:25:00.003-08:00</published><updated>2013-02-06T19:26:19.553-08:00</updated><title type='text'>Managing multiple identities with git and ssh</title><content type='html'>If you have multiple git repositories, you should create an &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;~/.ssh/config&lt;/b&gt;&lt;/span&gt; file to reflect your &quot;identities&quot;, here is mine:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# Default GitHub user&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Host github.com&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;HostName github.com&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;PreferredAuthentications publickey&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;IdentityFile ~/.ssh/personalPrivateKey&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# Work user account&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Host supercode.com&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;HostName supercode.com&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;PreferredAuthentications publickey&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;IdentityFile ~/.ssh/my_workplace_companyPrivateKey&lt;/span&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/1550276661649648881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/02/managing-multiple-identities-with-git.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/1550276661649648881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/1550276661649648881'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/02/managing-multiple-identities-with-git.html' title='Managing multiple identities with git and ssh'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-2631652656308733078</id><published>2013-01-29T18:06:00.000-08:00</published><updated>2013-02-08T08:53:32.388-08:00</updated><title type='text'>Reset MacOSX Lion Password from terminal</title><content type='html'>Boot from Install Disc.&lt;br /&gt;
&lt;br /&gt;
Open terminal.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;$ resetpassword&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Follow the gui and you are done.&lt;br /&gt;
&lt;br /&gt;
This was really quick.</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/2631652656308733078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/01/reset-macosx-lion-password-from-terminal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/2631652656308733078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/2631652656308733078'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/01/reset-macosx-lion-password-from-terminal.html' title='Reset MacOSX Lion Password from terminal'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-2876176065624968786</id><published>2013-01-20T16:47:00.006-08:00</published><updated>2013-02-24T11:41:58.456-08:00</updated><title type='text'>groovy with emacs on ubuntu 12.04 lts</title><content type='html'>List of steps to get groovy syntax highlighting working with emacs:&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1) Get all &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;*.el&lt;/b&gt;&lt;/span&gt; for supporting syntax (this step assumes you have a configured github account, if false, you can manually download from github)&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;git clone git://github.com/russel/Emacs-Groovy-Mode.git&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2) Create symbolic links to new .el groovy supporting files: (assuming you performed cmd 1 and in the same folder)&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;ln -s `pwd`/*.el /home/yourUserName/.emacs.d/&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3) Create/append to &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;init.el&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;(message &quot;Loading emacs init.el&quot;)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;;;;... &amp;lt;body of init.el&amp;gt; ...&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;;;; pick up modules into load path&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;(add-to-list &#39;load-path &quot;/home/&amp;lt;yourUserName&amp;gt;/.emacs.d/&quot;)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;;;; use groovy-mode when file ends in .groovy or has #!/bin/groovy at start&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;(autoload &#39;groovy-mode &quot;groovy-mode&quot; &quot;Major mode for editing Groovy code.&quot; t)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;(add-to-list &#39;auto-mode-alist &#39;(&quot;\.groovy$&quot; . groovy-mode))&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;(add-to-list &#39;interpreter-mode-alist &#39;(&quot;groovy&quot; . groovy-mode))&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;;;; make Groovy mode electric by default.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;(add-hook &#39;groovy-mode-hook&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;(lambda ()&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(require &#39;groovy-electric)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(groovy-electric-mode)))&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;;;;... &amp;lt;end of body of init.el&amp;gt; ...&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;(message &quot;Done loading emacs init.el&quot;)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;(provide &#39;init)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3) On Ubuntu 12.04 LTS the default .emacs file is present but we need to load our newly modified &lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/etc/&amp;lt;userName&amp;gt;/init .el&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
so:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;rm ~/.emacs&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;ln -s /home/&amp;lt;yourUserName&amp;gt;/.emacs.d/init.el /home/&amp;lt;yourUserName&amp;gt;/.emacs&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Optionally if you do not have your emacs configured, you will see 2 windows coming up. Make sure you enable inhibit start up screen option. That way your editor will always come up with the argument file or folder you passed.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If I missed anything, please let me know in the comments!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Happy Coding!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/2876176065624968786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/01/groovy-with-emacs-on-ubuntu-1204-lts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/2876176065624968786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/2876176065624968786'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/01/groovy-with-emacs-on-ubuntu-1204-lts.html' title='groovy with emacs on ubuntu 12.04 lts'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-3131211830218900258</id><published>2013-01-16T09:44:00.000-08:00</published><updated>2013-11-20T13:17:49.317-08:00</updated><title type='text'>git-svn adventures</title><content type='html'>&lt;h2&gt;
Checkout:&lt;/h2&gt;
How to correctly checkout an existing svn repo, following a standard svn layout:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;git svn clone http://svnRepoAddress.com/project --stdlayout&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
verify that you can see branches from svn:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;git branch -r&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Checkout a branch (notice the appended &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&quot;Local&quot;&lt;/b&gt;&lt;/span&gt;):&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;git checkout -b featureBranchLocal remotes/featureBranch&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;If you are trying to create a branch, refer to this &lt;a href=&quot;http://stackoverflow.com/questions/266395/git-svn-how-do-i-create-a-new-svn-branch-via-git&quot;&gt;SO post&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;git checkout featureBranchLocal&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;git svn rebase&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
How to revert a commit from SVN using git-svn (I recommend doing it in order from HEAD, top-down, haven&#39;t tried otherwise but it would seem you would be resolving unnecessary conflicts):&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;git revert &amp;lt;commitHash&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;git revert &amp;lt;commitAnotherHash&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;git svn dcommit&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SVN should have applications of reverted commits.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;h2&gt;
Pull down new svn branches: Fetch&lt;/h2&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;git svn fetch&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Credit: SO posts: &lt;a href=&quot;http://stackoverflow.com/questions/3239759/checkout-remote-branch-using-git-svn&quot;&gt;1&lt;/a&gt;, &lt;a href=&quot;http://stackoverflow.com/questions/964802/git-svn-revert-a-commit-from-a-not-master-branch&quot;&gt;2&lt;/a&gt;, &lt;a href=&quot;http://stackoverflow.com/questions/5319538/use-git-svn-to-roll-back-some-changes-on-the-svn-server&quot;&gt;3&lt;/a&gt;.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/3131211830218900258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/01/git-svn-adventures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/3131211830218900258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/3131211830218900258'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/01/git-svn-adventures.html' title='git-svn adventures'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-2309377244411182576</id><published>2013-01-13T15:04:00.000-08:00</published><updated>2015-04-11T12:42:39.923-07:00</updated><title type='text'>HTC Sensation 4G - TMobile stuck on ICS</title><content type='html'>HTC and T-Mobile pretty much gave the finger to HTC Sensation 4G users. No Jelly Bean update. While it is infuriating to browse the countless Google Search results of garbage results, i.e.: how &quot;monkey-balls&quot; and &quot;super-duper&quot; solve your problems, I really just wanted simple, step by step guide on how to upgrade once and forget it.&lt;br /&gt;
&lt;br /&gt;
Apps like Gmail should be run the way Google intended it to.&amp;nbsp;HTC is better off devoting their resources to making some killer apps and&amp;nbsp;monetizing&amp;nbsp;on those efforts rather than making bunch of f* &quot;glossy widgets&quot;.&lt;br /&gt;
&lt;br /&gt;
Best, no-nonsense guide on how to effectively put Jelly Bean 4.2 (ok, OpenSensation is at 4.1.2, still far better than HTC stock image) on your phone:&lt;br /&gt;
&lt;br /&gt;
Basic run down of steps:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Pay attention in guides to your phone&#39;s firmware version. The guide and links below mostly mention on how to do this without replacing the existing firmware.&lt;/li&gt;
&lt;li&gt;Backup your phone. The adb command offers backup options as cli argument.&lt;/li&gt;
&lt;/ul&gt;
If you are reading this and thinking I need to spend $5 on Android backup software, just stop here and have your tech savvy friends take care of this &quot;upgrade&quot;).&lt;br /&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;Unlock your HTC Bootloader from HTC Dev&lt;/li&gt;
&lt;li&gt;Install 4EXT Recovery Image (see the 1st link, its basically a &quot;high level, boot loader/rescue CD&quot; &amp;nbsp;for your desktop computer)&lt;/li&gt;
&lt;li&gt;Download the custom image you want (link 1 from supporting links) and place it as zip on your sdcard.&lt;/li&gt;
&lt;li&gt;Reboot into recovery (see guide 1st link) and navigate within the 4EXT to install from zip. (Make sure here you wipe any &quot;cached&quot; settings and format the system partitions. Getting this right means the difference between a stable phone and bunch of random resets and lockups.&lt;/li&gt;
&lt;li&gt;Get the gapps (3rd supporting link) for your image/version.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Optional next steps:&lt;/div&gt;
&lt;br /&gt;
Fed up with T-Mobile horrible service (your service is probably OK if you live in a dense, urban area)? Changing providers?&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Get your phone IMEI # (behind battery)&lt;/li&gt;
&lt;li&gt;Call them up while you have service, request your phone be unlocked.&amp;nbsp;Classic excuse would be &quot;traveling internationally&quot;.&lt;/li&gt;
&lt;li&gt;Cancel service when you are ready. Verify that new sim works with your existing phone.&lt;/li&gt;
&lt;/ol&gt;
My cancelation fee per line is in ~$100-$150 (~half-off), so in most cases the earlier you cancel and start with some conservative plan, you will save money. ( $monthBill * 24 months &amp;gt; paying $100 a year of services like H20, Virgin Mobile or even (yes!) TMobile prepaid). &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Update: Feb 27 2013&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Jumping off carriers &lt;b&gt;did not work&lt;/b&gt; for me as planned. The TMobile and HTC partnership goes through great lengths to lock you down to a network. Firmware on the phone is designed with that partnership in mind. It does some work to ensure that business is as usual. &lt;b&gt;Best choices&lt;/b&gt;, I think, at this point are to get the &lt;b&gt;$30 - unlimited data/text, 100 mins from TMobile&lt;/b&gt;. Its &quot;month-to-month&quot; still far better than my current bill of $130. Other &quot;virtual operators&quot; leasing TMobile service are probably good choices too.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Update: March 27 2013&lt;/b&gt;&lt;br /&gt;
Only issues so far is location. There were instances where enabling location without a phone reboot &quot;dead locked&quot; to the phone. Instant hangups and long pauses. The only &quot;workaround&quot; for this was to enable location and reboot the phone right away. Otherwise, there have been occasional lock ups but nothing major. Phone has been operating well for weeks.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Update: Jul 15 2013&lt;/b&gt;&lt;br /&gt;
Cancelled T-Mobile - after prepaid having essentially no &quot;internet&quot; data available this plan was ridiculous - for a smartphone. But TMobile knows this very well, that&#39;s why these plans are designed this way.&lt;br /&gt;
What am I using now? (with a new affordable phone from Ting.com)&lt;br /&gt;
&lt;a href=&quot;https://z186ed17nb3.ting.com/&quot;&gt;Ting.com&lt;/a&gt;. ~$25/month - pay for what you use at very reasonable rates. 12 * $25 = $300 &amp;lt; 12 * $120 = $1440.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Update: Nov 6 2013&lt;/b&gt;&lt;br /&gt;
Looks like &lt;a href=&quot;http://www.lycamobile.us/en/&quot;&gt;LycaMobile&lt;/a&gt; might get your GSM phone down to $16-20 monthly cost range. $8 for the sim/shipping. Know only 1 person that uses this, not sure what the service quality is.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Read carefully:&lt;br /&gt;
&lt;a href=&quot;http://forum.xda-developers.com/showthread.php?t=1631861&quot;&gt;http://forum.xda-developers.com/showthread.php?t=1631861&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Supporting links:&lt;br /&gt;
&lt;a href=&quot;http://tips4droid.com/top-5-custom-rom-for-t-mobile-htc-sensation-4g/&quot;&gt;http://tips4droid.com/top-5-custom-rom-for-t-mobile-htc-sensation-4g/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://forum.xda-developers.com/showthread.php?t=1494373&quot;&gt;http://forum.xda-developers.com/showthread.php?t=1494373&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://goo.im/gapps&quot;&gt;http://goo.im/gapps&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://forum.xda-developers.com/showthread.php?t=1494373&quot;&gt;http://forum.xda-developers.com/showthread.php?t=1494373&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://files.tamcore.eu/android/?dir=pyramid&quot;&gt;http://files.tamcore.eu/android/?dir=pyramid&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Good luck,&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/2309377244411182576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2013/01/htc-sensation-4g-tmobile-stuck-on-ics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/2309377244411182576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/2309377244411182576'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2013/01/htc-sensation-4g-tmobile-stuck-on-ics.html' title='HTC Sensation 4G - TMobile stuck on ICS'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-654896374642579389.post-5597642906675237533</id><published>2012-10-13T20:53:00.000-07:00</published><updated>2012-10-13T20:53:09.325-07:00</updated><title type='text'>Choppy audio in Ubuntu 12.04</title><content type='html'>This problem seems to affect ALC XXXX chips, it has to do with some &lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=1979191&quot;&gt;wrong settings for pulse-audio&lt;/a&gt;. &amp;nbsp;Try this to move forward:&lt;br /&gt;
&lt;br /&gt;
Edit &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;/etc/modprobe.d/alsa-base.conf&lt;/b&gt;&lt;/span&gt;:&lt;br /&gt;
And append this:&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;options snd-hda-intel model=generic
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
or try this one-liner:&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;echo &quot;options snd-hda-intel model=generic&quot; &amp;gt;&amp;gt;&amp;nbsp;/etc/modprobe.d/alsa-base.conf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;How do you know if you have this card?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;bgs@dev1:~/Desktop$ dmesg | grep intel&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;[ &amp;nbsp; &amp;nbsp;1.103778] intel_idle: MWAIT substates: 0x1120&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;[ &amp;nbsp; &amp;nbsp;1.103793] intel_idle: v0.4 model 0x1E&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;[ &amp;nbsp; &amp;nbsp;1.103794] intel_idle: lapic_timer_reliable_states 0x2&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;[ &amp;nbsp; 20.411326] snd_hda_intel 0000:00:1b.0: PCI INT A -&amp;gt; GSI 22 (level, low) -&amp;gt; IRQ 22&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;[ &amp;nbsp; 20.411378] snd_hda_intel 0000:00:1b.0: irq 50 for MSI/MSI-X&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;[ &amp;nbsp; 20.411403] snd_hda_intel 0000:00:1b.0: setting latency timer to 64&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;[ &amp;nbsp; 20.465477] snd_hda_intel 0000:01:00.1: PCI INT B -&amp;gt; GSI 17 (level, low) -&amp;gt; IRQ 17&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;[ &amp;nbsp; 20.465480] hda_intel: Disabling MSI&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;[ &amp;nbsp; 20.465508] snd_hda_intel 0000:01:00.1: setting latency timer to 64&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;bgs@dev1:~/Desktop$ lsmod | grep intel&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;snd_hda_intel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;32765 &amp;nbsp;6&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;snd_hda_codec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 109562 &amp;nbsp;2 snd_hda_codec_hdmi,snd_hda_intel&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;snd_pcm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80845 &amp;nbsp;5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;snd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;62064 &amp;nbsp;24 snd_usb_audio,snd_usbmidi_lib,snd_hda_codec_hdmi,snd_rawmidi,snd_seq,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer,snd_seq_device&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;snd_page_alloc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14108 &amp;nbsp;2 snd_hda_intel,snd_pcm&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;bgs@dev1:~/Desktop$&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://npdev.blogspot.com/feeds/5597642906675237533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://npdev.blogspot.com/2012/10/choppy-audio-in-ubuntu-1204.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/5597642906675237533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/654896374642579389/posts/default/5597642906675237533'/><link rel='alternate' type='text/html' href='http://npdev.blogspot.com/2012/10/choppy-audio-in-ubuntu-1204.html' title='Choppy audio in Ubuntu 12.04'/><author><name>BGS</name><uri>http://www.blogger.com/profile/01820367995282468918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>