Tuesday, April 3, 2012

nohup and background an already running process

So I have found myself in this situation more than once. I have a long running process running in a foreground, and i need to disconnect but dont want to loose the work already done by the process. The process is cpu intensive and thus is not responding to usual control+z. Here are steps you can take to force it into background and nohup it, making it possible to safely close the terminal window

open a new terminal window, find the process id of the long running process and do this

; suspend the process

kill -20

; or you can also use this

kill -stop

this should cause the process to be suspended in the original process. now you can background it. backgrounding it alone will not cause it continue running if the window is closed. you will need to disown it.

bg disown -h

the process is still suspended, so now resume it

; resume the process

kill -18

; or you can also use this

kill -cont

Saturday, December 31, 2011

2011 in retrospect



Looking back at the year this last day of the year the following tech stories stood out.


Social Media fueled Arab Spring

This year social media like Facebook & Twitter truly became mainstream, they are no longer something the tech elite use. They have also reached a critical mass that allows an innocuous looking post to to spread across the society like a wildfire and snowball into something thats capable of bringing down decades old deeply entrenched autocracies.



Evolution of more natural UX

This year also saw maturing of technologies like Voice control (think Siri), Touch (think iPhone) & gestures (think XBox Kinect) becoming more mainstream and ubiquitous. This sets the stage for changing the way we all  interact with devices.. We are already seeing some of these technologies that matured in the mobile space bleeding into mainstream OSes (Mac os Lion & Metro UI in Windows 8). If the trajectory continues very soon we will be using touch/gestures/voice control on most of our devices at home.



Rise of HTML5

This year saw Adobe finally concede defeat and adopt HTML5 as the defacto standard in developing UI. This is a great news for developer community as they can focus on building great apps and not worry about rehashing the same app using different technology stacks. Dream of having the same app run on the  phone, computer, TV, set-top boxes, tablets etc came much more closer this year.



Rise of Android

Android has finally matured to be an formidable competitor to the iOS ecosystem. Being an open platform facilitates this wide adoption. Today android has become the defacto  platform to build an smart device on. Apple due to its lead had locked up the supply chain, meaning that competitors had to either compromise on quality or have their wares at higher prices. But seeing Amazon enter this market in a big way with its “razor and blade” strategy was an interesting development. Amazon has a wide variety of content and thus can afford to subside its devices and thus pose first serious challenge to Apple.



Passing away of Steve Jobs

Steve’s life can be summed up nicely by borrowing one of the Apples motto “think different”. By doing so he fundamentally changed multiple industries, created new ones and forced others to imitate him. In my opinion his biggest contribution to the tech world was as he called: merging liberal arts with technology. One can argue has made technology much more accessible to the masses and caused the first four things listed above to happen. Dots are there to connect him to arab spring!  His passing away brings an era to end, but hopefully his legacy will live on and the lessons learned will be built upon and thus, the technology will continue to be simplified, digested and prepared for mass consumption.

Friday, December 9, 2011

think about "checking out" instead of "checking in"

Popularity of social sites has been making us obsessive compulsive share everything maniac.  We all know please who have to broadcast to the world by "checking in" via foursquare/gowalla (oh well)/facebook places and then cross post it to twitter/facebook/google+ etc, all the time. This cross posting of the checkin activity to twitter makes it very public. just try searching for 4sq on twitter.

Everytime  a "checkin" is broadcasted to the world, in addition to  telling everyone where you are, it also tells the world where you are  NOT i.e. your house. You might already be sharing the  location of your house via unkowingly geotagging the pics/tweets etc. Sites like PleaseRobme are  popular for raising awareness on this issue.

I do understand the urge to share. Winning mayorships, badges, points can be addictive. Moreover foursquare and shopkick have been experimenting by making the checkins earn real dollars by giving coupons/discounts.

Here is my attempt to making checking a little  "safer" :

1.  Check out instead of checking in :  Unless  your friends use your foursquare feed to run into you, checking out of a place is usually safer than checking in without loosing any functionality. You still get your mayorships, badges, points etc without revealing the estimated time you will be at the exact location. eg. your checkin at a movie theatre/restaurant ties you to the location for a few hours vs checking out

2. Dont cross post your checkins via twitter/facebook etc. Believe me there is nothing more irritating seeing the twitter feed full of crap like that. It makes your checkins a little less public

3.  Think about making your checkins private.  this ensures your location is available to your "friends" and not anyone at internet.

Sunday, December 4, 2011

Reenable your kids locked google accounts.

Google does not allow any new accounts for kids under 13. If you have managed to get an account for them  perviously (say email) , and they try to activate any of the other services (say youtube or g+) google will ask for a birthdate, entering it will immediately lock the google account itself ( thus locking them out of all services). They site

Under our policies, Google doesn't allow users who are under the age of 13 to have Google Accounts, unless they are using Google Apps for Education accounts through their school. This is similar to a lot of online services, as it's very complicated for many providers to offer better solutions for children that meet the relevant regulations. It's not as simple as just asking a parent for consent to let their child have an account -- there are associated implications for data and privacy involved.

One of the reason for google to this is Children's Online Privacy Protection Act. Its important to note that Yahoo does provide a way for kids to have accounts via the Yahoo Family Plan.

Once Google locks the account, the only way to unlock the account is by proving your kids age by one of the following ways

  • Credit card verification
  • Uploading a scanned govt issued ID
  • Snail mailing a copy  govt issued ID
If your kid does not meet the age requirements obviously none of these are going to help. I did find myself in this situation when I tried to sign up my 7 yr old son to his youtube account so he can post videos that I encouraged him to create.

I decided to give credit card verification a try. I put in my age and name and credit card details and like magic my kids account was unlocked.  So looks like the credit card that is needed for verification need not be in the kids name! BTW google will charge $0.30 for this trouble. It was well worth it compared with the trama my son was going through for loosing his email & blog accounts.



Thursday, December 1, 2011

So how do you use your "likes" "favorites" "+1" "digs" etc.


The social apps today want us to  “interact” with them by encouraging us  to click on a button labelled “dig”, “+1”, “like” “favorite” etc.

Clicking on them is beneficial to at least 2 of the 3 parties involved.

Poster :
   - It increases his/her “social influence”
   - It validates the “social graph”
   - “Retweeting/Reposting” can increase the traffic which could lead to increasing ad revenue
   - Provides ego boost

Service Provider
    - Helps profile the person interacting based on context information of the link/post
    - Marketing the social profile to its consumer or targeting ads/marketing campaign/research etc
    - Helps profile the poster by examining the social network
    - Help gauge the social acceptance of the topics/things discussed in the post

Clicker
    Its kinda hard to come up with the reasons on how clicking on “like”/+1/favorite helps the clicker. here is what I could come up with
    - Makes him/her socially relevant
    - Might “believe” in getting profiled in order to see more relevant ads etc.

How I want to use the “like” button (just like I use the favorite button on twitter)

Today I get majority of my tech news via twitter and social news via Facebook. Most of the news items in both of my streams are interesting links to other websites/videos etc. Thus for me Facebook & twitter stream  largely define the slice of web I surf. The problem with both of them is that they are a non stop stream of information which is almost like drinking from a fire-hose. If I do not have the time to follow the link posted, chances are that the link along with the post will fade away from my stream within hours. The “half life” of a link shared in a social media is just a few hours.

Thus if I am trading my privacy by clicking on a link, I expect this in return :

I want the service provider to provide me with the history of all the links I have interacted with. Thus I can go back and preview them at leisure. Twitter does this already and I use it extensively, both on my macbook & my iPhone. I check twitter often and “favorite” the posts catch my eye and then later in the evening or week when I have time I read the linked post/watch the video what ever. This is not possible on Facebook unfortunately, so I use service like read it later. using a browser plugin makes it easy, but still is not seemless. Also as its not supported natively, and doesn’t work on my mobile phone where I do most of my facebooking.



Hopefully Facebook will see value in making it available to us and not just the paying customters!


Sunday, October 30, 2011

Steve Jobs Apple Logo Pumpkin carving stencil

I wanted to pay tribute to Mr Jobs, by carving an halloween pumpkin in his honor. I googled around for a while, but could not find one. Thus I ended up creating my own. I took the Steve Memorial Apple logo, inverted the colors, and lightened the black, to save some printer ink . here is the original image
here is the stencil

Monday, September 19, 2011

Have a Elevator Pitch ready!

I had recently switched jobs. I traded the job at a big corporation for a one at a small company. I was very well established at my old job and never felt a need to prove myself or sell myself. This all changed as one usually starts at the ground floor at any new job.

At my new job I met new people everyday. It being a small company, I would run into executives quite often. We would exchange the normal courtesies and thats it. I realized much later that I had not used the “first impression” opportunity. If I had something worthwhile to say, they might mentally file me under “guy worth my time” folder, rather than “just another guy” folder.

Once I realized that, I realized to have something similar to an elevator pitch ready at all times. Elevator pitch is typically associated with startups trying to impress potential investors as captive audience for the duration of the elevator ride. A more generic form of elevator pitch is just having something sensible to say so that there person you are interacting with thinks that you are worth his time.

The elevator pitch in its “generic form” should not be construed as a sales pitch or ad ad of yourself. It is supposed to help once cause and not hurt (sales pitch/Ads can be turnoff). For me its basically the 3rd or a 4th sentence in an conversation with someone I am trying of impress, so that the conversation can last long enough for the person to remember me among scores of other people he would meet.

I think some folks are natural charmers or inherently good conversationalist. They don’t have to prepare themselves for stuff like this. I am not blessed with this natural charm and find it challenging. Thus the need to have some “preparation” in this area.

I think one does need to have a list of relevant open ended questions or just a list of cool ideas to form the basis for conversation if an opportunity presented itself. eg. What does I say if I ran into Steve Jobs at an apple store ? ok. well that is highly unlikely to happen, but still can be very though provoking. I more realistic scenario, specially in a small to midsize company is what should I talk about If I find myself standing next to the CEO, or VP of engineering.

And if the homework is well done, I might find myself seeking them at gatherings, rather than trying to steer myself away.. just because I don’t know what to say!

also, I think having talking points might help in general social settings outside work too. specially those with some sort of social anxiety.