Wednesday, March 13, 2013

// // Leave a Comment

Arrgh, Matey - Or the saga of the white hat pirate

Before i begin, let me qualify two things

1. I have no satisfactory solution to the problem.
2. I am not advocating piracy.

What I'm getting at is this - Pirating is just simpler and more efficient than purchasing books online every step of the way

To set the stage, my inventory of devices looks like this -
Dell 6400 / Windows 7
Kindle 4th Generation
Nexus 7 / Android

Lenovo T400 / Window7

















Macbook Pro / Snow Leopard
Micoromax Ninja / Android
Xbox 360
iPad 1




Step 1: Discovery 

For a pirated digital copy, I simply need to type in the name of the book + "torrent". That's it. I don't have to deal with any specific stores search like for Amazon or Flipkart. What's more, I get presented in one screen EVERYTHING for my search including format options, books, movies, and yes, even porn dedicated to the subject (see rule 34 of the internet). I have a choice of formats depending upon my download appetite and gadget compatibility. For instance, if I also had a PS3 (urgh), I might want the Blue-ray version as well.



Step 2 : Download 

It's no secret that the much-maligned BitTorrent protocol is the most efficient way to download anything. The media companies, however, have managed to equate it with piracy - but that's the same as saying internal combustion technology cause war. Anyways, the BitTorrent protocol is so awesome because it harnesses the distributed power of the internet by using peer-to-peer connections to download files. it's resilient, fast and distributed - Holy grail, Batman! 

Of course protocols are just that - an agreement of how to do stuff. The "stuff" needs to be done. And here comes in the client - µTorrent - a very tiny BitTorrent client, the undisputed champion weighing in at just 1 MB. Yep - read that again - 1 MB. Many web pages these days amount to more than that simply to give us the update on the Kardashians (<-- My idea of SEO: dropping celebrity names) 

And no - its not the download of a downloader; Another bit of chicanery that incenses me when i download a 2 MB installer which proceeds to download hundreds of additional megs for the target application, usually a ploy to install yet another toolbar on my browser[Deep breath ... 1 .... 2 .... 10]. I'm fine now.



The small download footprint is deceptive, because this is an incredible little full-featured application. Does what it says and does it very well. Running on my machine this is taking about 20 MB of ram, almost exactly as much as every individual tab on chrome.

Step 3: Formats 

As i mentioned earlier, i now have a choice of formats and resolutions. In case of books I can have the pdf version for "Read Later" and "Instapaper". and the .mobi version for my kindle.In any case I can use a plethora of converters to format the pdf to whatever format I choose. If i buy a digital copy I'm locked to a fraction of the devices that i own. 

Conclusion

So there we go - money didn't even figure in the equation. I would happily part with the cost of a coffee to acquire the brain juice of an intelligent person (umm.. book), but the current state of the eco-system does not incentivise me to do that. 

The villians of the piece are the distribution agencies, and not necessarily the content producers. The distribution companies have the most to lose here. Authors have already started self-publishing via amazon to free up their content. I won't go on much about this because there is enough being discussed on this topic by people more knowledgeable than I. My focus was on the technology and usability flows of pirated content versus DRM protected content acquisition. 

One short term, slightly hippy-ish solution, would be for the content producers to set up channels for people like me to make "donations" to assuage the piracy guilt but still use the best of breed technology to acquire content.



Read More

Friday, March 08, 2013

// // 1 comment

Its getting "cloud"y out here

Firstly, apologies for the pun, but it IS getting overcast in Bangalore the last few days. I've noticed that I've quite naturally migrated away from most desktop apps towards a "cloud" based solution. Or as we used to say a year ago - online solutions.

But, hype and buzzwords aside, I really only took notice the last couple of weeks since my work laptop fried and I've been messing around with multiple laptops. What popped out was that I really didn't need to install much to keep going at work because I had been progressively preferring online solutions to desktop ones.

Outlook Desktop -> Outlook Web Access.

The Microsoft OWA 2012 release has done a tremendous job of ensuring desktop parity in feature and UX which has made the transition so simple that i didn't even notice that i had stopped using the desktop client. The web client retains many of the keyboard short cuts, alert sounds and visuals that are really key to bringing the full experience to the net. The best part is that unlike the previous versions, this web client works well across most of the browsers.




Visio -> Lucid Chart, Gliffy

I feel a little sad for Visio. As an architect, I should have loved this product. This was supposed to my home where i merrily drew boxes and layers and clouds building enterprise dreams of interconnected systems. But Visio let me down with their latest 2013 release. I don't know what segment the team targets, but the software is unnecessarily bloated with all sorts of themes and art works, but makes a complete hash of the most simple thing that I need - connecting shapes easily and in an intuitive manner.



The best part is that at my workplace, Lucid Chart is integrated with the collaboration platform - JIVE, making it even simpler to move away from Visio

Notepad -> Writability

Ok - so this one may be a bit of stretch because it really is javascript code that enables you to write in the browser. But if you're signed into chrome bookmarks get ported over to the instance and its almost like an application in the cloud.


Windows Live Writer -> Blogger.com editor.


I've waited a long time for this. Windows live writer was a great alternative to Rich text areas for creating blog content. But i recently logged into blogger and found the new editor powerful enough to discard live writer. In fact, this single change is allowing me to blog a lot more. I don't know if other engines have powerful editors, but I'm happy to stick with my Google profile and hence blogger.

Word -> Jive

Now this may not really be an option for everyone, but at my workplace we've deployed Jive for business collaboration and I am amazed at the transformation it has brought about to the company DNA. What once used to be silo'ed divisions with serpentine communication channels is now a thriving community of collaborators. I can't say enough about this. Every large organization needs this.

Strictly speaking, there isn't a direct mapping from Word to Jive, but because of the platform I rarely create documents. Instead the platform allows me to create blog posts.

Skype -> Google + 


I still use skype on a daily basis because of my perception that the call quality is better. For personal calls, where I'm willing to live with a little more disturbance, I tend to use the Google + hangouts. Strangely enough, google+ has more features than skype - most notably the ability to screen share

Of course there are some applications I use on a regular basis that simply don't have equivalent replacements yet -
  • IDEs - Visual Studio
  • Excel 
  • Media Players (but for music only i use a combination of sound cloud, pandora etc.. )

I have a bunch of other applications but they are mostly BECAUSE i am on a desktop and would be irrelevant in a fully cloudy world - zip software, networking stuff, media players, editors.

The future of desktop applications does indeed look bleak.

Read More

Tuesday, February 26, 2013

// // Leave a Comment

Using Chrome Profiles for Development setup

Part of a being developer is doing a lot of research on the net. However, i find myself quiet annoyed many times when personal tabs and work tabs get intermingled. Chrome has an elegant solution to this - user profiles.

This allows you to have multiple chrome windows, each within a specific context. For instance, I have 3 profiles

  1. Personal - this is where i'm signed into Facebook, Gmail etc...
  2. Work profile - All my work related bookmarks live in this profile, along with any work related sites signed in.
  3. Personal Work Profile - this is for my current side-project with links to the development server site and Heroku, GAE etc signed in and bookmarked as well.

This makes it easier to switch context and open up tabs in the correct windows, so that i don't have to hunt through the usual hundreds of tabs that i would typically have open on a regular day / night.

Personally, I love the little Avatars that show up on the top left corner helping me identify the context that i am currently in. If you want to make this more explicit, then set up different themes for each of the profiles.

Screenshot         Screenshot

Even though each of the profiles can be linked to a gmail account, I prefer to not have my work and personal work profiles logged in simply to make it harder for me to randomly open up gmail and other stuff in the work context.

To activate this go to Chrome > Settings > Users. it should be pretty obvious from there.

Read More

Wednesday, February 20, 2013

// // Leave a Comment

DDMT done wrong

oh IE - why do you do this to yourself ? While every other brower (chrome / firefox) is intelligent enough to detect OS and version, the India IE site does not even provide a link to the x64 version. I downloaded the incorrect version and had to hunt for the x64 version.

Which then downloaded the installer of the installer. Of course, restart required. Not cool, IE .. not cool.

Screenshot
Read More
// // Leave a Comment

The DMMT (don't make me think) principle done right

I've been looking to upgrade my ram on the laptop and the first step of the process is figuring out compatibility options. Its this sort of stuff that pushes people to Macs away from PCs. The choice and options are as astounding as they are incompatible.

Crucial has a good solution for this problem. Simply download their scanner and it will give you the compatible options for the laptop. the scanner is a non-bloatware targeted program that produces extremely readable and more importantly, actionable results. Noice!


Read More

Tuesday, February 19, 2013

// // Leave a Comment

Sample Indian Data

I've been prototyping some stuff, and hate using foreign names and address for sample data input. So - i created my own. Enjoy!

https://docs.google.com/file/d/0BxHZTpcWRBHiTExpQnVEM2pQajQ/edit?usp=sharing

There are some random name generator out there but none of them seem to cater to Indian names. Also - refer this thread
Read More

Monday, February 11, 2013

// // Leave a Comment

Mashups

Last month I did a fair bit of research into mash-up options for developing a framework that collates widgets from different sources. A couple of articles on the oracle site (that strangely seem to have been de-linked)  are a good starting point -

Mashup Overview and Server Side mashups - http://192.9.162.55/developer/technicalArticles/J2EE/mashup_1/

Client side mashups - http://192.9.162.55/developer/technicalArticles/J2EE/mashup_2

My evaluation is based on an enterprise environment where multiple teams host their modules independently but now need to be collated into a mashup style. This, of course, is a big company problem. You know, the sorts that buy multi million dollar enterprise bus solutions.

In this instance mashup refers to the case when multiple sources contribute to the creation of a single page. these multiple sources provide both widgets and data that are displayed on the page. The container page is simple a holder for the widgets and does not interpret any data or design provide by the widget sources.


There are 2 high level options for building a mashup framework - Server side and client side.

Server Side Mashup

As the name suggests, this approach involves collating the widgets on the server side from multiple sources and composing a single page that is sent out to the client. Subsequent data (ajax) calls from the widgets are all routed through this central server and the responses channelled back to the client. 

This, of course is the simplest solution as the client side code  / browser is not even aware of any composition. This is the same in concept as any regular client server application. All the complexity of composing from multiple sources is on the server itself. 





There are a couple of flavours to this approach. Both the widget html and the data can be sourced off the widget server OR only the data can be sourced off the widget servers and the html composed on the mashup server. 
Option A

Option B

In an enterprise environment there are some issues with this approach
  • Infrastructure for the mashup server. Assuming that the individual widgets servers are already scaled for capacity, an additional mashup server means that this hardware layer now needs to scale to usage of the most heavily used widget. 
  • In case of option B, operationally, this creates a big challenge to now maintain the API connectivity between the widget HTML and the widget source API for the widget data.
  • In case of option A, a widget design and interaction guideline must be developed and adhered to by the widget source owners. This may prove to be challenging in a large scale deployment.
  • Requires the creation of a team to maintain this mashup server and its contents
There are also advantages to this approach - 
  • No complexity on the client side to understand the mashups. The client simply works as a regular client-server application.
  • Potential for data caching and other operations on the mashup server.
  • Of option B selected, then it's easier to standardize the UX elements. 

Client Side Mashup

In the client side mashup design, the widgets are composed and aggregated purely on the client side, i.e. - browser. Although this may seem like the logical option simply because it eliminates the middle man, remember that browsers are specifically implemented to disallow cross-domain requests. This is known as the same-origin policy. 

What it means that a single HTML page (excluding frames in this context) can only communicate with a single domain. This is to prevent malicious sites from getting jiggy with data they are not supposed to in the web page. This also means that legitimate mashups are a little bit more difficult to implement.

There are a few options to get around this security issue

Proxy Server

In this approach we place a proxy server in between the container page and the widget source servers. This means that all requests go through this proxy server and are routed to the respective servers. It's similar to the server side composition option, but the server is a dumb router. It could even be a purely hardware based solution. All we are doing is satisfying the same origin policy requirement. 

IFRAME

An IFRAME within a HTML document allows loading content from different sources. However, since iframes cannot communicate with each other, achieving a seamless look on the page is a big issues. Without DOM level communication, sizing and merging the frames in a consistent manner is nearly impossible. So, even though technically the content is on the same page, each iframe processes and displays its data independently.

With the HTML 5 specification of postMessage, this limitation can be worked around. It is only available on IE 8 and above.

For older versions of IE there are libraries like easyXDM to get around the X-domain communication issue between frames.

JSON-P

Another way to get around this limitation is to exploit the fact that scripts can be requested from different domains. JSON with Padding requests for JS code using the <SCRIPT> element. Except that instead of receiving pure code, now a javascript function along with data will be returned to the browser. Since this is interpreted by the javascript engine, the function will be executed which usually invokes a callback on the main page with the data. The final result is that this enables data to be served up from multiple domains.

JSONP, however is not a recognized standard even though there exists libraries to support usage. It also means that source servers have to put out data in a certain non-standard format to enable consumption by the JSON P technique. 

Cross Domain Requests

CORS is the HTML 5 specification to enable cross domain requests from browsers. Only IE 10 has support for this standard

IE 8 has support for XDR, which is a Microsoft proprietary way of enabling cross domain requests. This implementation has some limitations, but should be mostly workable.



Read More