Monday, November 16, 2015

Life of Coders Compared with Knights


Even in the early days of mankind were arrows and Flintstones were used to make food and other necessities, I bet there were this distinct people who where rather unique from the groups who experiment on ideas and bring changes despite the challenges. For instance, I don’t think the cave drawings of those times were meant to have artistic value but rather used as blue print or tactical drawing for improved hunting capability or better yet exciting for the contemporary animal right activists, it was used for taming/grazing strategies some wild animals (I bet it was a feat that was seen as a work of divine power or pure science fiction at that time).Those were the men and women who were behind the prehistoric futuristic S.W.A.T 

At any time of man kind struggle for betterment of Life such individuals are indispensable. At our times, computers have given a way to smarter devices, unimaginable interconnection and endless possibilities. We may not desperately need Iron smith or a reputed royal sword maker. Yet the same zenith filled individual is needed in the field of computers. Human intellectual evolution has been witnessed through out human history. Upon focusing our lenses towards coders things get even much interesting.

Lets compare Coders/programmers/developers to the middle age noble knights who where considered the elite of their times (not by the current standard of course) due to the facts that they were the only few who travel to strange lands, read posters, bring justice to the mass, read maps, explain about the ancient Roman ruins to the ignorant village people, speak Latin, go deep into the woods, learn lessons from the Arabs and Turks, and live for a cause! 

A Knight can only serve one Lord for his life time, but a Coder can (in fact must) serve at least more than three Lord like programming languages.
 
A Knight with light yet durable armor has many advantages over his companions with unwieldy armors, as for a coder with a laptop of the size of dead-man chest from the movie Pirate of the Caribbean will always be tempted to switch his love of his life to an ultra-thin laptop.
A Knight fight against bandits, foe land lord, witches, dragons and not often but with demons all one at a time, but a coder deals with sudden demonic like user interface errors, performance issues which equals dark ages, horribly ugly code bugs that are similar to black death symptoms, deal with hunchbacked algorithm implementation, documentation as large as library of Alexandria, and the internet menace all at the same time.
After a battle, a Knight retires in a lavish a royal bowl with drinks, foods, and women (sorry ladies it’s the middle age) that last like months. But a coder who just delivered a successful project is expected to reply in 12 hours for any bug report, email request.
A Knight severely wounded or even killed in a battle is given a high rank, his name written in royal archive, cathedral bell rang on his name, but if a coder failed to deliver a working package then he is sued, trialed if guilty state prison is a possibility.
For a Knight there is always this lady to be saved (not necessarily one though) that awaits him, who can deliver her from toil of every day, evil step mother, evil land Lord, so on and on. But for a coder such scenario is only a folk story, as there are lady coders who are too awesome to fall for such poetic incidents.
One mistake in a battle for a Knight can cost him his life or worse ,living in dungeon like Count of Monte Cristo, as for a coder there is plenty of room for a mistake as long as it abides with the contractual agreement …
To be a Knight you need to have a royal blood in you, simply you need to be destined to be one. For a coder such racist beliefs do not pass system requirement check.

From this comparison, one can be tempted to contemplate over how human beings have evolved in the past 1000 years be it culture, technology. The question I must ask you, is how will our greatest achievements in field of computer technology will be seen a thousands years later? Instead of searching for answer, just start working on your latest ideas, who knows they could be placed next to a Knight armor as mankind greatest achievements in the future museums.

Great Achievement to All


Wednesday, September 2, 2015

Display View (Textview, Images and Buttons) at runtime on Android



 
Here are the simple steps

Get yourself  Layout in our case its Linear


/
//linearLayout -->BLUE
LinearLayout linearLayout=new LinearLayout(this);
             
               linearLayout.setOrientation(LinearLayout.HORIZONTAL);
               //vp  --> RED
               LinearLayout.LayoutParams vp=new  
               LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
 
create your views  [TextView, Button and Image] and add them to the  created linear layout àvp object for Text and button and àiv object for image

TextView tv = new TextView(this);
              tv.setText("tic");
          linearLayout.addView(tv,vp);

Button btn = new Button(this);
              btn.setVisibility(View.VISIBLE);
              btn.setText("ClickToStart");
          linearLayout.addView(btn, vp);

ImageView imageView= new ImageView(this);
             
              imageView.setImageResource(R.drawable.ic_launcher);
              imageView.setVisibility(View.VISIBLE);
          imageView.setBackgroundColor(0xFFFF00FF);
//Iv --> GREEN
LinearLayout.LayoutParams Iv=new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
              linearLayout.addView(imageView,Iv);
          setContentView(linearLayout,vp);

more than happy to read comments (not harsh i suppose)
until next time.



 

Monday, August 17, 2015

Is skynet really around the corner... 2017 is near people

You cud be code fanatics like me, or codophobics ...( guess i just discovered a  new word) developer or just tech savvy... just few weeks ago i just watched the most awaited block buster movie finale of our time TERMINATOR -Genisys. of course i watched it like with my child-hood awe and excitement, after all its Arnold Schwarzenegger with his accent and  going to a chopper (literally).  those who is not a fan of the movie--- BITE ME ...
Now  the year we are at is summer of 2015 ... too bad we can't see really working hover board from the movie Back To The Future. But there are other earth shuttering innovations...
There is Cloud Computing which is honestly hard to convince people of its security... The security experts know it very well...but its very convenient  it does boost everything a company needs but security... when SONY entertainment  servers where hacked a year ago, the cost was millions, not to mention the terror it spread around corporate companies and obviously a confidence boost to tech pirates...Arrrrrrr. what can happen if such hideous act is being cooked on mission critical systems  like Health centers.
There is Artificial Intelligence ... only if Alen Turrin can take a glimpse of it, various techniques like "Deep learning" and "Neural Research" are showing great promises which wud seem a pure sci-fi a decade ago.
There is IOT - Internet Of Things, basically its goal is to connect every thing we use in our daily lives to the internet which has an electronic chip inside it. its possibilities are endless. its in its infancy age...many experts compare 2015 age of IOT with 1995 age of the web.
When those three earth mightiest innovations reach their prime and are connected... what can possibly happen. if we go back a 100  plus years back ... in the field of Physical science when science was wrapping its understanding on physical world there was an explosion of new era of Quantum world... science was back to its excitements and achieved  humanity greatest discovery only to unleash horror in few years.  and back to our time... its beyond exciting for tech experts with all cloud and smart butt robots rocking it so hard.
The question is, will we ever learn from history and guide the evolution of those three technological siblings or let our grand children face terrible fate of some sci-fi nightmares.
great summer to all.