Showing posts with label Geek Stuff. Show all posts
Showing posts with label Geek Stuff. Show all posts

Aug 31, 2011

Page Rating on Wikipedia

Social media craze has finally caught up with Wikipedia, the ubiquitous Like button is now showing up in many articles albeit in a different avatar as Page Ratings.This interesting new way of crowd ranking of articles aligns perfectly with Wikipedia's philosophy of creating an crowd sourced encyclopedia.

Page Rating
This nifty little widget at the bottom of the article lets you rate the page by giving 1 to 5 stars on the following properties:
  • Trustworthy : Do you feel that this page has sufficient citations and that the citations come from a trustworthy source?
  • Objective : Do you feel that this page shows a fair representation of all the perspectives on the subject?
  • Complete : Do you feel that the page covers the essential topic areas that it should?
  • Well-Written : Do you feel that this page is well-organized and well-written?
You Can also see the current rankings of the page by clicking on the "View page ratings" link which brings up the page ratings like shown below:

Whats the use?
As we have all come to know that too many of the articles on Wikipedia can not be trusted and are poorly written which was kind of defeating the whole purpose of its existence. But hopefully this page ranking system would help the good articles[which is most of the wiki pages] to float above the poor ones.

Its is crowd sourced so the next time you are on wikipedia looking at some article do not forget to check its rating and provide your own rating too.


Apr 11, 2011

Trivia : The Google Way



What's that?

Google announced today on its blog that its launching a daily trivia game called "A Google a day". According to Google "A Google a Day is a new daily puzzle that can be solved using your creativity and clever search skills on Google." Unlike traditional trivia games where you cant cheat by looking up the answer on Google , here the questions are so tricky/complex that you are encouraged to use Google to find the answer.

Can't I just Google someone Else's Answer?


Nope, you can't. For this Google has created what it calls "Deja Google", "A wormhole inspired time machine that searches the Internet as it existed before the game began.". Also to make sure no one else can spoil the fun of you use your super sleuth googleing skills by posting the answer in a tweet / or blog post google suggests you use agoogleaday.com instead of google.com which excludes real-time updates and other things that are likely to include spoilers as people post the answers to the puzzle online.

Your answers can be posted on agoogleaday.com. The correct answers are displayed the next day under the Question on agoogleaday.com. Also it lets you share the question on all the social media sites , you can even follow agoogleaday on facebook or twitter to get notified when a new questions is posted.


Why Should I bother?

This is an attempt by google to encourage people to use google in innovative and meaningful ways and to demonstrate the power of search. It will not be an understatement to say that google search's computational powers have hardly been put to use, through this google expects user to realize its full power.

So go ahead jump in have fun.

Dec 29, 2010

My First Time Lapse

After making us (DESI) New Englanders (lol!) wait quite some time for snow this winter the weather gods finally decided to make it up to us on the Christmas weekend and threw in a freaking blizzard.

To capture it all on camera I decided to do a time lapse video capturing the view of the blizzard from the window of my home. So I charged the batteries for my Canon A 590 IS , copied the CHDK stuff to the memory card along with the intervalometer I wrote and rigged everything on the handle of on the handle of my window door.
The resultant video below is the result of my first attempt at this so go easy on me. :)

Yeah , I know you can't really see a bunch of car head lights after the first few seconds and you can see the light inside my house reflecting off of the window glass too. But ,hey this was only my first time !

These are the tools I used for making it if you'd like to try it yourself some time.
  • I used my Canon A590 IS camera with CHDK, any high end camera[DSLRs] can be used or you can use most Canon point and shoot cameras with CHDK to run the Intervalometer script. 
  • I used a intervalometer script I wrote myself but I found out there are free and better  intervalometer scripts out there. Here is one which should work for most cases. Ultra Intervalometer by
    Keoeeit.
  • I used PhotoLapse 3 to combine the stills to make the video but I guess you can also use windows movie maker but PhotoLapse 3 gives better quality and more options.
  • Also used Youtube's video editor to add some music and that's pretty much all you need.

Best of luck if decide give a it a try , hope your video turns out better than mine.

Nov 1, 2010

Common Threading Error [SimpleDateFormat/DecimalFormat]

I have come across a common threading mistake related to Threading in JAVA[I did the same mistake too and spent quite a few sleepless nights thinking what is causing this weird behavior ]. This is related to the The java.text.*Format classes, in java these classes for the most part are NOT thread safe. This is stated in the java doc. Under high volume when the shared/static class is run in two different threads at the same time in the same JVM the data from one thread will be transferred to another thread. These issues most likely will not be reproducible due to timing and are extremely hard to debug .

The Issue
While creating formatters to be used in the java application many people declare the formatters as static elements. e.g.:
  • private static final SimpleDateFormat LOG_DATE_TIME_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
  • private static final DecimalFormat LOG_AMOUNT_FORMAT = new DecimalFormat("###########0.00");


Solution/Fix

The same code that is thread safe can be written like so:
private static final String LOG_AMOUNT_FORMAT = "###########0.00";

then in your method create a new instance locally.
SimpleDateFormat dateFormatter = new SimpleDateFormat(LOG_AMOUNT_FORMAT);
String formattedDate = dateFormatter.format(myDate);


Hope this helps people avoid the horrible nightmares I had with this issue.

Feb 11, 2009

What a Geek wants from the Managers

Its Appraisal time in my Company and as with most companies there is a section in the appraisal process where you are asked what do you expect from the managers.
I don't really know what they want/expect as an answer . I proud myself of being a Geek as most IT folk. And I don't mean geek in the derogatory sense it most often used.In My dictionary Geek means "an enthusiast or expert especially in a technological field or activity".

The main reason IT people are unhappy at work is bad relations with management, often because geeks and managers have fundamentally different personalities, professional backgrounds and ambitions. Some people conclude that geeks hate managers and are impossible to lead. The expression “managing geeks is like herding cats” is sometimes used, but that’s just plain BULLSHIT.

Here are some top ways that I wish my managers managers understood then they can lead IT team or Geeks effectively and respectfully.

1.Value training. If a boss thinks that training is a waste of money and expects you to teach yourself, you feel pretty demotivated in any job. Training matters, especially in IT, and managers must realize that and budget for it. Sometimes you get the argument that “if I give them training a competitor will hire them away.” That may be true, but the alternative is to only have employees who are too unskilled to work anywhere else. Also, if you pay them well and have good benefits, they won't go somewhere else.

2.Give recognition. Since managers may not understand the work geeks do very well, it’s hard for them to recognize and reward a job well done, which hurts motivation. The solution is to work together to define a set of goals that both parties agree on. When these goals are met the geeks are doing a great job.

3.Don't Overwork the Geek. Avoid taking the approach of wringing as much as possible out of IT employees just because you figure they don't lead a normal life. Wrong! That’s a huge mistake and overworked geeks burn out or simply quit.

4.Avoid using management-speak. Geeks hate management-speak and see it as superficial and dishonest. I am not saying manages should learn to speak tech, but they should drop the biz-buzzwords. For Example a manager can say “We need to proactively impact our time-to-market” or simply use plain English and stick to “We gotta be on time with this project”. The latter makes total sense to everyone involved.

5.Don't try to be smarter than the geeks. When managers don’t know anything about a technical question, they should simply admit it. Geeks respect them for that, but not for pretending to know. And we will catch it - geeks are smart.

6.Act consistently. Geeks have an ingrained sense of fairness, probably related to the fact that in IT, structure and consistency is critical. The documentation can’t say one thing while the code does something else, and similarly, managers can’t say one thing and then do something else.

7.Include them in decisions. Never make decisions without consulting geeks. Geeks usually know the technical side of the business better than the manager, so making a technical decision without consulting them is one of the biggest mistakes a leader can make. For Example when managers come to us and say, "I have already committed to this deadline for delivery, You have get this done before the deadline." Dude!! You should have asked the geek how much time it would take before committing the date.

8.Give them the tools needed. A fast computer may cost more money than an older one and it may not be corporate standard, but geeks use computers differently. A slow computer lowers productivity and is a daily annoyance. So is outdated software. Give them the tools they need. Understand that tools come in many forms. Caffeine is considered a standard tool among Geeks. It's good to keep a supply of the caffeinated beverages your team prefers handy.

9.Remember that geeks are creative workers. Programming is a creative process, not an industrial one[like management]. Geeks must constantly come up with solutions to new problems and rarely ever solve the same problem twice. Therefore they need leeway and flexibility. Strict dress codes and too much red tape kill all innovation. They also need creative surroundings to avoid “death by cubicle”.

10.Geeks don't like dead weight. No one does. If you have any, get rid of it, and your team will be better off. Teams only work when everyone is pulling their weight.

Last but not the least "Geeks are smart. Don't assume smart people always have sound judgment- they don't. Rely on the ones who have it; learn from them- evolve.". Everybody is entitled to make mistakes, even the Geek.

Jan 15, 2009

New Fav Icon for Google

If you have online recently I bet you have noticed the catchy,color full and lowercase 'g' fav icon of the Google site.

As per the official Google blog post this and a complete set of new Logo's and icons are part of Google's new branding strategy for newer platforms like iPhone.

If you ask me i liked the old one with the capital G much better. Then again i am not Google CEO. If they have decided to change it after 8.5 years they must be having good reasons to do so.

If you like the new logo on the other hand and would like to see it in your Firefox search box also then here's how you can do it.

Jan 8, 2009

Get Windows 7 Free

Microsoft's CEO Steve Ballmer today announced that Windows 7 the long awaited sequel to Microsoft's somewhat crappy previous windows release Vista will be available FREE as a public BETA release on Friday 9th Jan 2009.

Though Windows 7 beta has been available through the Bit Torrent from the next day it was unveiled but if you were waiting for a more genuine copy of the OS to try your hands on this is your lucky chance. Grab a copy and take it for a Spin !!

MS goes on to claim that Windows 7 has sub 30 second boot time.Cool!!.

If you are thinking of giving it a try here is what you would need to run Windows 7:
A 1GHz processor (32- or 64-bit),
1GB of main memory,
16GB of available disk space,
support for DX9 graphics with 128MB of memory (for the Aero interface), and a DVD-R/W drive.

Go ahead have fun!!

Jan 7, 2009

The Satyam Debacle


Early morning today B Ramalinga Raju — the founder of Satyam Computers, one of India’s largest IT companies — dropped a bombshell when he sent a five-page letter to the 2 stock exchanges confessing to one of the biggest frauds ever seen.

He as part of his confession letter revealed that Satyam had NO BALANCE SHEET and was cooking up the numbers to fool the share holders and independent directors since several quarters.

The markets reacted quickly to this news and Satyam's share[BSE:SATCOM] was down almost 75% at the end of days trading.The NYSE even stopped trading for the Satyam Computer ADR.

Raju is a well connected man in India. It would be interesting to see if law catches up with him. Even if he escapes in India, what about the SEC the federal agency that oversees the exchange of securities to protect investors in US? However US also is not free of corporate scandals. Enron, the recent Madoff $50B scandal are best examples for this. Will the US lawyers RUSH on behalf of Satyam shareholders to sue Raju?

This leavs us with many daunting questions about corporate governance in India and trasparancy in corporate audits.
How did the auditor sign the balance sheet?
Will that audit firm Price Waterhouse in India be asked to shut?
Is this a sign or a sample case, how (are) the highly honoured audit firms are working in India?
How did the World Council for Corporate Governance named the company winner as recently as in Sept 2008?!!


The word 'Satyam' in many Indian languages means 'Truth'. Unfortunately that is the name of this company where every corporate act was false.

It all started when Mr Raju Chairman of Satyam Computers decided to buy out ‘Maytas’ which is his son’s ailing infrastructure company.

With this move, Raju destroyed the image of India as an attractive investment destination and notion of corporate governance. Initial reports say that Ramalinga Raju may face criminal proceeding and 10 year jail term. The finance ministry has swung into action on the Satyam issue. It has asked stock market regulator Securities and Exchange Board of India (SEBI) and Ministry of corporate affairs to give a report on the issue.Market regulator SEBI on Wednesday, Jan 7 said it would take all steps under the law for which it has started discussions with government and bourses.

"We are in touch with Ministry of Corporate Affairs... we are also in discussion with them as to what steps need to be taken from the perspective of power they have under the law and SEBI has under the law," SEBI Chairman C B Bhave said. The National Association of Software and Service Companies (Nasscom) may look at banning Satyam Computer Services from its membership. "The entire incident came AS a shock to us. Also, this kind of a fiasco is an unprecedented one in the history of Nasscom.We are looking into the matter on what steps can be taken. Considering the magnitude and implications of the incident, we can even look at banning the company from Nasscom," said Ganesh Natarajan, Chairman of Nasscom.


Latest reports even suggest Raju has fled to Dubai to avoid getting arrested!!

If we look at the big picture here , its going to impact every body from Other IT biggies like Infosys,TCS and Wipro to the Auditing firms like Price Waterhouse..the most hit would be the poor employees and share holders of Satyam.My heart goes out for all my friends who either hold Satyam shares or are employees.

Dec 29, 2008

Computing on the go from MS

There was this cool patent registration yesterday.Microsoft had applied for a patent in 2007 for a concept called computing on the go.

The Patent's abstract explains this as "a standard PC is given away or heavily subsidized. The consumer then pays to use the computer, with charges based on length of usage time and performance levels.".

What this means is for example:
Consider a situation involving three "bundles" of applications and performance: office, gaming, and browsing.
"The office bundle may include word-processing and spreadsheet applications, medium graphics performance and two of three processor cores," the document reads. "The gaming bundle may include no productivity applications but may include 3D graphics support and three of three processor cores. The browsing bundle may include no productivity applications, medium graphics performance and high-speed network interface."

"Charging for the various bundles may be by bundle and by duration. For example, the office bundle may be $1.00 [68 pence] per hour, the gaming bundle may be $1.25 per hour and the browsing bundle may be $0.80 per hour. The usage charges may be abstracted to 'units/hour' to make currency conversions simpler. Alternatively, a bundle may incur a one-time charge that is operable until changed or for a fixed-usage period,"
Debasys