Thursday, February 10, 2011

IE9 Release Candidate (RC)

I never liked IE personally to use, specially IE6 which gave so many heart attacks (headache precisely) to almost every web developer and I'm a victim too. But after listening so many feedback and research work, I'm keen to try the new IE9 RC, and I hope this become irrelevant



Few good points in terms of performance and standards, which I hope stands true are
  • Faster with real world sites
  • Faster script engine
  • Improved rest of the browser
  • Network cache Tuning
  • New Compiler optimization

Read more & Download  IE9 here:

Friday, February 4, 2011

Become a better developer

Search for the term ‘better developer’ and you find nearly 61 million results. It seems like everybody has an opinion on how to become a better developer, even the bad developers will tell you how to be a better programmer. After reading many of these programming self-help articles on being a better developer I found that the core message was all the same! If I could boil down the advice of all these results into a succinct list of how to be the best developer we are left with the following…

  • Read Everything
  • Learn Fast
  • Practice What You Know
  • Try New Things
  • Strive for Simplicity
  • Write and Teach
  • Assume Nothing
  • Question Everything
  • It is Not Personal
  • Rinse and Repeat
There is no one Golden Rule for becoming a better developer. Instead of single rule or a unifying theory of software development we have a set of core beliefs and best practices.

Here is the insight from many other developers on how to be a better software developer. In reading their advice, think what is universally true for all developers. What can we learn from each other, no matter
the development platform or programming language we use?
  •  Becoming a Better Developer
    • Find/Rediscover Your Passion
    • Remove Distractions
    • Listen tPodcasts & Read Blogs
    • Blog
    • Learn a New Technology Each Month
    • Get Involved in an Open Source Project
    • Seek out Local .NET Groups or Nerd Dinners
  • 8 Tips To Become A Better Developer
    • Write the simplest code possible
    • Use the simplest technology
    • Focus on your actual task
    • Dnot write temporary code or it will last forever
    • Invest time tthink about the best technology and approach tuse
    • Apply design patterns and good OOP principles
    • Write semantic code
    • Don't be afraid of saying “I don’t know”
  • How to be a better developer?
    • Assume You Know Nothing
    • Listen tPodCasts
    • Watch WebCasts
    • Watch ScreenCasts
    • Forum Participation
    • User groups meetings / Community meetings
    • Read Books
    • Read Blogs
    • Learn tuse other technologies
    • Adopt a Development Methodology
    • Dnot procrastinate
    • Try thang up with people that love software development
  • 7 ways to be a better developer
    • Keep your ear tthe ground
    • Give your users a place ttalk teach other
    • Start a public bug tracking system
    • Release early, release often
    • Talk tyour users
    • Be responsive
    • Participate in the development community
  • How to be a better developer?
    • Know what your framework has toffer, use it
    • Extend the wheel, dnot reinvent it
    • Write technical articles
    • Give technical presentations
    • Write quality code
    • Dnot write “temporary code”
    • Test your code
  • Being A Better Programmer
    • Plan For The Worst
    • Expect TForget
    • Document Choice
    • Human Error and Monkey Business
    • Admit Your Own Limits
    • Fix It, Don’t Hack It
    • Step Softly and Carry Nothing
    • Don’t Get Personal
  • Six ways to build a better developer
    • Never stop learning
    • Reuse, reuse, reuse
    • Understand the business side
    • Get a mentor, or be one
    • Don’t be afraid to critique your code
    • Be nice to nontechies
  • Becoming a Better Developer
    • Ensure your foundations
    • Target what interests you
    • Read beyond the official documentation
    • Write code regularly
    • Try explaining what you’ve learnt tothers
    • Enjoy it
    • Look at and learn from other people’s code
    • Learn from other developers mistakes
    • Know yourself
  • Becoming a Better Developer
    • Know Your Core Competencies
    • Enjoy the Panorama
    • Know What You’re Building
    • Don’t Use a Dull Knife
    • Become a Manager
    • Know Your Archetype
    • What DYour Colleagues Think of You?
    • Get a Massage (and Get Your Boss tPay For it)
  • Being a Better Developer… in 6 months
    • Reading
    • Writing
    • Speaking
    • Community
    • Learning
    • Code, Code, Code and more Code
  • 4 ways to become a better programmer
    • Read
    • Write
    • Review
    • Contribute
  • 8 ways to be a better programmer in 6 minutes
    • Use a bigger font size
    • Make hard-coded strings look ugly
    • Pick an ‘obscure’ keyword and master it
    • Increase code-coverage by 1%
    • Read the code from an open source project
    • Run a static analysis tool against your code
    • Pick an ugly method trefactor
    • Stop reading, start writing
  • Become a Better Developer in 6 months. How?
    • Spending more time looking at art works
    • I’m going tstart playing with Lego’s again
    • I’ll start learning Ruby On Rails
    • Play chess a bit more
    • Read Freakonomics
    • Keep blogging, writing articles and answering questions in the forums
Source : email

Monday, September 6, 2010

Flex in a week

Upgrade and update your developer skills with Adobe Flex video training with Easily accessible content for 5-day self-paced learning environment.

What is Flex? A powerful open source framework for rapidly building expressive, highly interactive multi-platform rich internet Applications

What is Adobe Flash Builder? A professional-grade, Eclipse-based development tool for building multi-platform rich Internet applications (RIAs) and content using the open source Flex framework

To get started:
  • Download and install Flash Builder 4 (requires free Adobe membership).
  • Watch a short overview video (6:21) to learn what to expect from this training.
  • Download the project files for each training day.
    • Project files include starter and solution files for the exercises and video transcripts. If you prefer, you can download the files for each exercise individually from the respective exercise pages.
  • To maximize your learning, view the videos and complete the exercises in the order listed.
Prerequisite knowledge:
  • Basic programming concepts, processes, and constructs
  • XML, HTML, and CSS
  • Basic understanding of how Flex and Flash Builder work together
Want to view Flex in a Week videos offline? You can download the videos from this page.

Tuesday, June 29, 2010

Dropping key on huge MySQL table

Table alteration is never a cheap task to do, specially when dealing with large tables containing hundreds of GB data. ALTER TABLE may be required to add/remove column or indexes. Easiest solution to run it on production is to take the server one by one out of rotation, alter table, put it back in and sync up the data in between with other servers.
However, If it can't be done the only solution adopted by normal users is to fire the ALTER TABLE on production ending in ages to finish it, resulting in website down.
If some key is need to be dropped with the condition of no writes, we have one alternate solution for the same, to make ALTER TABLE faster.

Say there is some huge test table containing lot of data:

CREATE TABLE `test` (
`rollno` INT UNSIGNED NOT NULL DEFAULT '0',
`name` varchar(100) DEFAULT NULL,
`score` MEDIUMINT UNSIGNED DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM;

Now If there is a requirement to drop unique key 'name', so create a new table say test_new:
CREATE TABLE `test_new` (
`rollno` INT UNSIGNED NOT NULL DEFAULT '0',
`name` varchar(100) DEFAULT NULL,
`score` MEDIUMINT UNSIGNED DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;

Flush both tables with read lock:
mysql> FLUSH TABLES WITH READ LOCK;

Open another terminal. And go to the mysql/data/ directory. Do the following:
mysql/data/test $ mv test.frm test_old.frm; mv test_new.frm test.frm; mv test.MYI test_old.MYI; mv test_new.MYI test.MYI;

Table definitions are switched here. The table definition of test now doesn't contain unique key.

Now unlock the tables in the main window. And run repair tables to remove any issues.
mysql> UNLOCK TABLES;

mysql> REPAIR TABLES test;
+---------------+--------+----------+-------------------------------------------+
| Table         | Op     | Msg_type | Msg_text                                  |
+---------------+--------+----------+-------------------------------------------+
| test.testhack | repair | warning  | Number of rows changed from 0 to 20000000 | 
| test.testhack | repair | status   | OK                                        | 
+---------------+--------+----------+-------------------------------------------+

The repair table rebuilds the indexes. It is faster since it skips the use of key_cache for rebuilding the index (which is used in a normal alter table scenario).
Note, don't forget to take the backup in the advance in case if anything goes wrong.

Thursday, March 25, 2010

Turn off the lights

On March 27, 2010 the whole world will come together and turn off the lights for an hour to express solidarity and commitment towards Mother Earth. The Earth Hour, an initiative by World Wildlife Fund (WWF) is a reminder to all global citizens of the challenges posed by climate change.

The Earth hour is symbolic of the small but substantial steps that each one of us can take towards a sustainable future. Read below some simple energy saving steps for a greener tomorrow.
  • Turn off the monitor instead of using a screensaver
  • Lower down the brightness of your monitor
  • Use built in power saving features
  • While not using printers, scanners and speakers turn them off
  • Turn off the computer, while taking a long break!
Pledge your support and join the 'Earth Hour' by switching off all lights this Saturday - 8.30 PM - 9.30 PM. To know more log onto www.earthhour.in

Thursday, March 11, 2010

RubyConf India 2010

The Ruby Community in India, together with the Innovation & Technology Trust, is pleased to announce RubyConf India 2010 on Mar 20, 21 at the Royal Orchid Hotel, Old Airport Road, Bangalore.

This dual-track event will feature prominent speakers like:
Yukihiro Matsumoto “Matz” - the creator of Ruby, will deliver a talk via video-con.
Chad Fowler author of “The Passionate Programmer” and “My Job Went to India”
Obie Fernandez author of “The Rails Way”
Ola Bini core-committer to JRuby since 2006
Ivan Porto Carrero core-committer to IronRuby
Nick Sieger of Engine Yard and JRuby fameArun Gupta lead developer on GlassFish

Ruby is an OS dynamic language that offers an ideal development environment for Agile practitioners. It has one of the most active open source communities worldwide which produces and supports tools and projects like Ruby on Rails - a powerful web application development framework that works well on different platforms, and
significantly reduces time-to-market and operating costs.

Brainstorm, Network and Learn about the latest technology changes first-hand!

Follow on twitter : http://twitter.com/rubyconfindia

Details : http://rubyconfindia.org/about.html

Monday, March 8, 2010

Introduction to Greasemonkey

What is the need?
Sometimes it is needed that you want to execute some scripts automatically at your page using some client side language (e.g. Javascript). Some good examples are like Mob Wars, Mafia wars or FarmVille where attacks etc are automatically done with certain defined rules . Another example may be automatically retrieving data from other sites to make two sites more interconnected.

What is Greasemonkey?
"Greasemonkey is a Firefox extension that allows you to write scripts that alter the web pages you visit." Using Greasemonkey extension many script can be executed as a hack to the Firefox to make your work smoother.

How to install?
Download from http://www.greasespot.net/, install and restart the browser (Firefox). Scripts can be installed then after. It name must end in .user.js
http://dunck.us/collab/GreaseMonkeyUserScripts is the script repository containing hundreds of scripts

Example please!
// ==UserScript==
// @name Hello World (helloworld.user.js)
// @namespace http://vishnu-agarwal.blogspot.com
// @description example script to alert "Hello world!" on every page
// @include *
// @exclude http://timir126.blogspot.com/*
// ==/UserScript==


Further help?

LinkWithin

Related Posts with Thumbnails