Wednesday, October 22, 2014

Kids these days

Last weekend I was fortunate to be a technical evaluator of a hackathon. Yes, I'm trying to be vague here, as my company sponsored this event at a most reputed university of our state,  this post is just my view.

There were 9 team participated out of which 3 teams dropped off and only 5 were presented at the end of 48 hour hackathon.

The funny thing is organizers of this programme was surprised that the students are completely prepared, I heard they didn't raise any question at the end of our opening speech. Their only worry was which of their idea can be executed within the given time which was a surprise for our team.

All of their ideas are good, though I was aware of similar apps, I didn't share any of my feedback as I thought it might demotivate them as I only joined at the end of the hackathon. One of the team was thinking they are having next billion dollar idea, and they were referring themselves as a competitor to a famous site of their domain. I happen to agree, if they pitch to right people they could definitely make few millions.

Kids are between 2nd-4th year of CS background. One of the team people actually left for like 4 hrs to participate in another programme. All of the participates already secured a 6 digit income per month :-)

I was really impressed by their talents especially the knowledge of tools. All of them aware of native/hybrid mobile development and right framework. For eg., most of them developed app using jQuery mobile and Cordova to package, codiqa to get the UI up and running, and their knowledge in the plugins one of the team actually published their plugin in GitHub. Another team started with a style guide, only few of my project starts with a branding guidelines in my decade old professional experience.

If I own a time machine and I'll travel back in time to kick myself in the butt for not getting high scores which could have changed my life. What can I say, I was, and still is a day dreamer.

Monday, July 7, 2014

Configuring your Airtel Broadband DSL with your modem + wifi router

My modem failed last week(frequent drops), and I was not willing to repair this time. I've taken a screenshots of configuration from my old modem, with the help I was able to configure my new D-Link 2750u.

Sunday, June 22, 2014

How to run any iPad (iOS) applications in Kiosk mode

This is the one feature I know since the release but never bothered to try. Recently I had to provide the steps for a client on how to setup. After trying multiple methods without any success, I figured out the steps.

Find the steps to follow below to run iPad application in kiosk mode.

  • Goto Settings -> General -> Accessibility -> Guided Access
  • Set Guided Access ON
  • Set a Passcode, so you an end Guided Access anytime you want.
  • Also Set Accessibility Shortcut ON
  • Exit settings
  • Launch the app you want run in kiosk mode
  • Triple click the home button to show the kiosk/guided access mode options.
  • Tap Start at the top to let iOS run your app in kiosk mode

To end, you need to triple click the home button and tap End button at the top right.

Refer steps with screenshots here:

Monday, June 16, 2014

Functional Special characters in Mavericks

I was one of the very few people who held on to the last cat OS X (Mountain Lion). I had to switch to Mavericks at office to play with the new shiny language Swift.
One of my teammate was looking for unicode character (comma) to use citation marks in one of our iPad application. i.e., We need a comma in between superscripted citation, but we need it in text instead of attributed string for various reasons.
I knew that in OSX, Characters palette (Edit -> Special Characters… ⌥ ⌘ T) allows you to search by Name and it also provide two additional features I use the most called Related characters and Font variations. As every unicode character or emoji has unique name defined. On a side note, please refer last year WWDC NSHipster video if you haven’t already, the same feature is available for all cocoa developer as well.
Back to our current day, I realise that Mavericks didn’t have the familiar window. I ended up finding the characters required in another machine running OS X Mountain Lion.
I was so upset, the same day I discovered the new Keynote app is to full of popovers to see everywhere like the overused Linen texture in the past now Gaussian blur.
Over this weekend, I find out a way to access functional characters window. The trick is, just drag the popover. As they say, it is obvious once you figured it out.
Here are the steps and video in action:
  1. Bring the default Special characters palette by pressing ⌃ + ⌘ + (Ctrl + Cmd + Space)
  2. It will show the popover menu with emoji
  3. Drag the popover to reveal its own window with toolbar
  4. Click the character icon on top right to view the our good old character viewer
  5. This will be your default, from next instance of ⌃ + ⌘ + SPACE
  6. You can go back to popover, but why would you?

Sunday, June 8, 2014

100th Post

Sachin Tendulkar: First to reach 200 runs in an ODI and 100 International centuries.

There have been many people who climbed Mt.Everest since Edmund Hillary & Tenzing Norgay. How many of them you remember?

Sehwag already broke the record of highest score in ODI and Kohli is the best bet to break 100 centuries. But Sachin is the first one to break 10-second barrier equivalent in the world of cricket.

Sunday, April 27, 2014

The bug that haunts me *still*

My recent project was to build an html5 app on top of Salesforce1. As usual after the development is complete we send it to QA for approval. And then they log this bug.

Almost 10 years ago, when I started developing websites, I kind of aware of this bug and I ignored it because, I did not know the solution and I never expected any valid/meaningful users would enter such junk values.

However, I was looking for solutions as I grow up, this is before the CSS era when font
tag was most used one in webpages. All then dev forums are either ignoring it saying there are no acceptable solutions.

When I learnt about CSS I discovered the gem called overflow:hidden and waited for  I started overusing this property. But the testers still log an issue related to this, not all the entered text are visible.

Eventually, I discovered couple of new CSS properties word-wrap:break-word and text-overflow:ellipsis to overcome this issue. Again, these are _recently_ added and only now it is commonly supported in all the browsers. Still, text-overflow ellipsis works only for single line text at the moment?(why!)

To summarise, this is the bug which shoots my blood-pressure as high as Mount Himalayas. Because I get this even before the functionalities are tested.


While rereading the post, I noticed I didn't explain my current solution. At the moment, I just use javascript and add ellipsis by truncating if the content length is greater than arbitrary number (n). For eg., the following use 500 as 'n'.

I am still not happy with it, as you see in the image. We can't use the number 500 for all string unless you use fixed-width font. And I am not aware of solutions to identify the (n) based on the given font size & container size. (Refer: NSAttributedString)

Matter of the fact, I just can't set text-overflow:ellipsis to all in my normalize.css or reset.css because this is not expected from any useful data.