O Little Flower See Your Lover

One of the most amazing song with the craziest lyrics, I have ever heard! From the movie, Quick Gun Murugun

A must listen for all!

Chat Mangni Lover

O Little Flower See Your Lover
See Your Lover Cute Chat Mangani Pat Byaah Lover

O Ho Ho Ho Ho Little Flower See Your Lover
See Your Lover Cute Chat Mangani Pat Byaah Lover

Aa Ha Chatur Chapal Chaal Aisi Teri
Baawala Behaka Bulbula Mera Hriday

Iss Naadaan Ko Samjhaana Kathin Hai
Hey Bhraham Hai Yeh Bhraham Preet Yeh Isaki Re

Ho Little Flower See Your Lover
See Your Lover Cute Chat Mangani Pat Byaah Lover

Aa Ha Turant Prakat Ho Na Mere Liye
Na Shak Maanasi Kathin Tan Hai Yeh

Sanaka Sehama Mann Hai Tere Liye
Hai Yeh Bhraham Hai Yeh Bhraham Preet Yeh Isaki Re

Ho Little Flower Be My Lover
Be My Lover Cute Chat Mangani Pat Byaah Lover

Aa Ha Tanik Saral Kar Na Mere Liye, Prem Lataka Ataka ?? Mein
Satyam Shivam Sundaram Kar Use
Hai Yeh Bhraham Hai Yeh Bhraham Preet Yeh Isaki Re

Ho Little Flower See Your Lover
See Your Lover Cute Chat Mangani Pat Byaah Lover

Confusion between Form Validation and Model Validation in Django

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design-- www.djangoproject.com

Using Django Model Form can make it fast and powerful to validate input data. But new Django programmer can be confused between form validation and model validation. Both of these are defined in models.py

class Report(models.Model):
    name = models.CharField(_('Name'), max_length=20, blank=False, null=False, default=None)

When you define "null=False" and "blank=False" to the model field, let see what you will get?

"null = False", sure thing that it's gonna raise IntegrityError when you try to save but didn't assign value to the field.

"blank=False", Do you suppose that it's gonna work at model level?

If so, you will be disappointed because "blank=False" will take effect only at form level. Means that you can save the instance using the shell.

(InteractiveConsole)
>>> from report.models import Report
>>> new_report = Report()
>>> new_report.save()
>>> Traceback (most recent call last):
...
>>> IntegrityError: report_report.name may not be NULL

 Assign blank name.

>>> new_report.name = ''
>>> new_report.save()

Now you get the Report object with blank in the name field in the database!

To avoid this, let's create the helper:

from django.db import IntegrityError
def not_null_not_blank(instance, attribute_name_iter ):
    for attribute_name in attribute_name_iter:
        if not getattr(instance, attribute_name):
            raise IntegrityError('%s.%s may not be NULL or BLANK' % (instance.__class__.__name__, attribute_name )) #This line is inspired by Nattapon (@wrongite)

And override your model's save function:

class Report(models.Model):
    name = models.CharField(_('Name'), max_length=20, blank=False, null=False, default=None)
    def save(self, force_insert=False, force_update=False):
        not_null_not_blank(self,('name',  ))
        return super(Report , self).save(force_insert=force_insert, force_update=force_update)

Now exit the shell and open it again ( to reload new code you've just changed )

(InteractiveConsole)
>>> from report.models import Report
>>> another_report = Report()
>>> another_report.name=''
>>> another_report.save()
>>> Traceback (most recent call last):
...
>>> IntegrityError: Report.name may not be NULL or BLANK

Now you're good to go!! ; )


Sourced from: http://proteus-tech.com/blog/code-garden/confusion-between-form-validation-n-model-validation-in-django/ The website was not working on the day I tried to access it. Accessed it from the Google cache.

A Promise

A friend of mine, Omkar Nisal, had put this promise up on his FaceBook profile. Reading through it I realised, I must also try and keep this promise.

A Promise

  • To be strong that nothing can disturb your peace of mind
  • To talk health, happiness and prosperity to every person you meet
  • To make all your friends feel that there is something worthwhile in them
  • To look at the sunny side of everything and make your optimism come true
  • To think only of the best, to work only for the best and to expect only the best
  • To be just as enthusiastic about the success of others as you are about your own
  • To forget mistakes of the past and press on to greater achievements of the future
  • To wear a cheerful expression at all times and give smile to every living creature you meet
  • To give so much time to improving yourself that you have no time to critise others
  • To be too large for worry, too noble for anger, too strong for fear and too happy to permit the presence of trouble
  • To think well of yourself and to proclaim this fact to the world, not in a loud word, but great deeds
  • To live in faith that the whole world is on your side, so long as you are true to the best that is in you

-- Sri Sri...

How to save your global business

Woodward: Global logistics need not be nightmarish. Photo: E2open

Woodward: Global logistics need not be nightmarish. Photo: E2open

Globalization is complex, but it doesn't have to be complicated.

By Mark Woodward, president and CEO, E2open

“It has been said that arguing against globalization is like arguing against the laws of gravity.” – Kofi Annan

In today’s world, we can resist globalization about as readily as we can resist the downward pull of gravity. We may try—with our Icarian wings and desperate toning and tightening at the gym—but the Newtonian law remains: what goes up, will assuredly come back down.

And so it has become with globalization, an inevitable force of nature, “flattening” our world and forcing us to think and act internationally.

Nowadays, global outsourcing and distributed manufacturing environments are pervasive. What this means for the supply chain is that it involves more players in more parts of the world, each with different languages, processes, and protocols. To make matters more complicated, consumer demand is anything but constant—fluctuating according to perplexing “natural laws” of its own.

The supply chain—like the global economy—has undergone drastic change in the past decade, setting new requirements for effective management of global demand-supply network processes. For many, it is a logistics nightmare, and solving these challenges is defeating some of the largest corporations in the world.

But change—and even economic recession—doesn’t necessarily mean corporate disaster. Some industry leaders have responded intelligently, adapting their systems and processes to accommodate an increasingly outsourced, complex value network. They’ve recognized that the supply chains of the twentieth century are no longer, and that their technologies had better reflect that change.

Future Proofing the Supply Chain

Just as gravity is responsible for keeping our galaxy’s planets in orbit, visibility, collaboration, and control are now the crucial elements in effectively balancing demand with supply. And some companies are getting it. One multi-billion dollar corporation in the high tech sector has been riding the wave of new demand-supply network technology with marked success.

As the discombobulated offspring of two industry giants, this company was not only determined to keep its head above water in the current climate, it was also committed to investing its resources in the future health of its supply chain. What was once a disjointed, manually-based supply chain is today a shining example of demand-supply network efficiency and intelligence.

So how’d they get there? Gradually. But with enough executive foresight and dedication to make a long-term supply chain strategy actually work. And by “work” I mean a supply chain that is wholly adapted to today’s global, networked, automated world.

Four easy steps to get your supply chain functioning as effectively as our exemplar’s? Not quite, but I’ve whittled my list of the company’s key demand-supply network achievements down to a digestible bunch. And it’s certainly a good place to start.

  1. To reach its supply chain goals, the newly created high tech firm had to connect to its trading partners and customers; this was accomplished via a single on-demand virtual platform.
  2. Once connected, our high tech company leveraged its on-demand technology to enable near real-time collaboration and data exchange—making it possible to “see” a dynamic picture of the ever-changing value network.
  3. The company’s abilities to connect and collaborate with trading partners, though, were only advantageous because its network processes were sufficiently flexible to catch and respond to issues before they became financial liabilities (correct mismatches in supply and demand or reroute inventory mid-transit, for example).
  4. And what this all boils down to is actionable insight. This company has remained competitive despite an economic recession because it is equipped with an information system that provides a “single version of the truth,” in addition to the data and analytics necessary to make informed, strategic decisions.

What’s required of your company is the same thing that was required of our case study—a shift in focus. On-premise is out; on-demand is in. Supply that dictates demand? I don’t think so. Let’s face it, demand may be fickle—even stingy—but it will always be boss. The natural laws of the universe are at it again…But darn! If only what went down would so assuredly come back up.

Woodard is president and CEO of E2open, a Foster City, Calif.-based company that offers software-as-a-service solutions to help corporate clients manage their global demand-supply networks.

Success of Google!

"I've hired hundreds of researchers over the course of my professional life; today I get answers from Google far faster than it would take to explain most of my questions to a live assistant" - Peter Huber, Senior fellow, Manhattan Institute (*).

This is, I believe success of Google. Ease of finding answers to complex questions.


* Source: Forbes India, 28 August 2009 Issue

To All Female Drivers

This is a hilarious video compilation...

Jai Maharashtra

A photo I received in the mail today.

 

Unknownname

 
 

आम्ही आणि क्रेडिट कार्ड वाली कन्या

आपण कुठल्या ना कुठल्या कामात असताना ह्या क्रेडिट कार्ड वाल्यांचा फोन येत नाही असे होत नाही. आधि मला सुध्दा संताप यायचा पण मग आता आम्ही ह्याचा आनंद घ्यायला शिकलो आहे, आणी आता तर आमची खात्रीच झाली आहे कि हे फोन आम्हाला तणावमुक्त करण्यासाठीच येतात. आपल्यालाहि ह्यातुन काही फायदा व्हावा ह्या सदहेतुने आमचे संभाषण येथे देत आहोत. (ह्यात कोणालाहि दुखवायचा हेतु नाही.)

वेळ :- दुपारी २.१५ (गरगरित जेवण करुन नुकतेच आडवे झालो आहोत)

कन्या :- गुड आफ्टरनून सर, आय एम कॉलींग फ्रॉम दरोडा बॅंक.
आम्ही :- जय महाराष्ट्र ! (पहिल्याच चेंडुवर षटकार)
कन्या :- नमस्ते सर, मी दरोडा बॅंकेमधुन बोलतीये, आम्ही एक नविन क्रेडिट कार्ड लॉंच करतोय त्या विषयी माहिति द्यायला हा फोन केला होता सर. तुम्ही इंट्रेस्टेड आहात का सर ?
आम्ही :- कोणाच्यात ?
कन्या :- सर कार्डमध्ये हो
आम्ही :- ओह्ह अच्छा , काय आहे ना कि आयुष्यात पहिल्यांदा कोणीतरी येवढ्या गोड आवाजात इंट्रेस्टेड आहात का ? असे विचारले हो, त्यामुळे जरा गोंधळ उडाला बघा.
कन्या :- (मनातल्या मनात खुश झाली असावी) मग सर तुम्हाला कधि वेळ आहे ?
आम्ही :- अहो तुमच्या साठी वेळच वेळ आहे आमच्याकडे !
कन्या :- तसे नाही सर, ह्या कार्ड विषयी माहिती देण्यासाठी.
आम्ही :- अहो असे मला गोंधळवु नका हो, एक तर सुंदर मुलीशी बोलायचे म्हणजे आमची आधिच वाचा बसते. मला सांगा तुमच्याच कार्डची माहिती मी तुम्हाला कशी आणी का द्यायची ?
कन्या :- (डबल खुश होत ) अय्या अहो सर म्हणजे तुम्हाला कधी वेळ आहे ? आमचा प्रतिनिधी येउन तुम्हाला पुर्ण माहिती देइल.
आम्ही :- एक प्रश्न विचारतो रागवु नका, तुमचे नाव मंजिरी आहे का हो ? आणी तुम्ही अहिल्यादेवी शाळेत होता का ?
कन्या :- नाही ! आपण कार्ड विषयी बोलुयात का ?
आम्ही :- बघा रागवलात ना तुम्ही ? आहो एक खुप चांगली मैत्रिण होती हो माझी ह्या नावाची, अगदी असाच गोड आवाज आणी असेच जड जड मराठी शब्द वापरायची सवय होती हो तिला. तुमचा आवाज ऐकला आणी तिच आठवली बघा पटकन, माफ़ करा मला. म्हणतात ना आपली दुख: हि लोकासाठी विनोद असतात तेच खरे.


कन्या :- (भावुक स्वरात) नाही रागावले नाही सर. कुठे असतात त्या आता ? त्या पण बॅंकेत असतात का ?
आम्ही :- नाही हो, लहानपणीचा ताटातुट झाली आमची, कुठे आहे काय करते ... काही काही माहीत नाही हो. (आम्ही जमेल तेव्हड्या दु:खी सुरात)
कन्या :- (चिकाटी न सोडता) ओह, सो सॉरी सर. आज वेळ काढु शकाल का सर तुम्ही ?
आम्ही :- हो जरूर, तुम्हाला भेटुन आनंदच होइल मला. पुन्हा त्या जुन्या आठवणी ताज्या होतील आणी मग आज तरी निदान दारू ची गरज लागणार नाही मला... (फुल्ल टु देवदास इस्टायील)
कन्या :- सर, मला भेटुन ? आमचा त्या भागातला एजंट येउन भेटेल सर तुम्हाला. मी नाही. (हळु हळु कन्या त्रासीक स्वरात बोलायला लागली आहे.)
आम्ही :- अरे असे कसे ? फोन करणार तुम्ही, वेळ देणार आम्ही तुम्हाला, आणी तो का भेटायला येणार ? मेहनत करे मुर्गा आपले मुर्गी आणी अंडा खाये फकीर  ?
कन्या :- (प्रचंड नाराजीने) सर, आम्ही फक्त कॉल सेंटर साठी काम करतो. लोकांना भेटण्यासाठी वेगळी माणसे नेमली आहेत.
आम्ही :- अच्छा म्हणजे फोनवर टोप्या घालणारी आणी प्रत्यक्षात टोप्या घालणारी वेगवेगळी माणसे आहेत तर !!
कन्या :- पार्डन सर ?? (आतुन संतापाचे स्फोट होत असावेत त्यामुळे कन्या परत इंग्लिश वर घसरली आहे)
आम्ही :- नाही म्हणजे तुमच्या भेटिचा योग नाहीच म्हणा की, काये मन कसे वेडे असते बघा, लगेच तुमच्या भेटीची स्वप्न रंगवुन तय्यार. लबाड कुठले !
कन्या :- सर सध्या तुम्ही कुठले कार्ड वापरत आहात ?
आम्ही :- नेटवाला.कॉम चे. पण ४ वर्ष झाली अजुन कसे आणी कुठे वापरायचे ते कळाले नाहिये.
कन्या :- सर, मी क्रेडिट कार्ड बद्दल बोलत आहे.
आम्ही :- हो, ते तुम्ही फोन उचलल्या उचलल्या सांगीतलेत की !
कन्या :- सर, आय मिन सध्या तुम्ही कुठले क्रेडिट कार्ड वापरता ?
आम्ही :- अहो रेशन कार्ड नाहिये माझ्याकडे अजुन, क्रेडिट कार्ड बद्दल काय विचारताय ? पण खरच आपण नाहि का हो भेटु शकणार ? अगदी तुमच्या सोयीच्या वेळी.
कन्या :- सर तुम्हाला कार्ड हवे आहे का ? मला बाकीच्या ग्राहकांना सुध्दा फोन करायचे आहेत. प्लिज कार्ड विषयी बोला.
आम्ही :- तुम्ही तुमचे काम उरकुन घ्या ना निवांत. माझा नंबर तर आहेच तुमच्याकडे, संध्याकाळी तुम्ही मोकळ्या झाल्यात की मग एक मिस कॉल द्या, मी करतो तुम्हाला फोन.
(पलिकडुन असभ्य काहितरी पुटपुटल्याचे ऐकु येउन खाडकन फोन आदळला जातो.)

Source: http://bit.ly/ByYxq

Convert *.mkv video file to *.avi

Recently my brother got me some movies in a .mkv format. Hi-Res rips of movies suitable to play on HD Screens.

But these files do not directly play on some DVD players. We need to convert them to a .avi format.

mencoder -mc 0 -noskip -vf expand=:::::16/9,scale=720:480,hqdn3d,harddup -ovc xvid -oac mp3lame -xvidencopts fixed_quant=3.8:me_quality=6:noqpel:nogmc:trellis:chroma_me:chroma_opt:hq_ac:vhq=4:lumi_mask:max_key_interval=300:quant_type=mpeg:max_bframes=2:closed_gop:nopacked:profile=asp5:autoaspect:bvhq=1 -lameopts vbr=2:q=6:aq=2 -o outfile.avi infile.mkv

A open source application mencoder, helped me convert the file to an .avi format

Open-source software in the recession: Born free

Open-source software in the recession

Born free

May 28th 2009
From The Economist print edition

Open-source software firms are flourishing, but are also becoming less distinctive

MANY technology firms are floundering amid the recession. But many of the ones that offer services tied to open-source software—free programs written by volunteers who collaborate online—are boasting double-digit growth. Sales at Red Hat, the world’s biggest independent open-source firm with annual revenues of $653m, grew by 18% year-on-year in the first quarter. More and more firms, particularly in Europe, seem prepared to embrace open source (see chart). “Budgets are tight and we think that is good for open source,” said Jim Whitehurst, Red Hat’s boss, when announcing the results.

Indeed, open source is so widely accepted that traditional software firms are beginning to dabble in it, while some open-source firms are starting to sell proprietary add-ons to open-source programs instead of charging to provide support to firms using open-source software. If current trends hold, traditional software firms and their open-source rivals will soon be hard to tell apart. “A new pragmatism is rising,” says Matt Asay, an open-source advocate and an executive at Alfresco, which makes open-source software that helps firms manage digital content.

The “free and open-source software” movement, as it is officially called, has come a long way from its anti-establishment origins. Pioneers such as Richard Stallman did not want users to be locked into monolithic products, but to be able to change programs in whatever way they wanted, and to share their modifications.

For years, this software commons was no more than an obscure sideshow. But then the internet provided volunteer programmers with a way to co-operate cheaply. IBM and Oracle, two industry giants, threw their weight behind the Linux operating system, in part to weaken their rival Microsoft. After the dotcom bubble burst in 2001, many firms turned to Linux and other open-source software to save money.

Cost is once again the main reason why companies are turning to open source, says Jeffrey Hammond of Forrester Research, a consultancy. Its success is no longer limited to basic software, such as Linux or Apache, a program that powers web servers. Open-source firms are flourishing in databases (Ingres, for instance), business intelligence (JasperSoft), customer-relationship management and other business applications (SugarCRM, Alfresco). In addition, open-source firms have started to move into new markets without proprietary rivals. For instance, a company called Cloudera distributes a version of Hadoop, a program which helps firms process and analyse the unprecedented volumes of data generated by large websites.

But cost is not the only reason for open source’s growing popularity. Many firms now know that it offers more flexibility than proprietary programs, the licences for which often include restrictions on how they can be used, explains Matthew Aslett, of the 451 Group, a market-research firm. And companies no longer perceive free software as riskier, he adds. Getting sued for running programs that inadvertently violate somebody else’s intellectual property, for instance, has proven not to be as big an issue as once feared. Most open-source firms indemnify their customers against such lawsuits in any case.

All this has led many companies to develop a much more pragmatic approach to open-source software. In the late 1990s installing Linux was often something of a gesture of defiance against Microsoft’s domination of the software industry. Today decisions are more rational. The key question is whether the savings in licensing fees for proprietary products outweigh the additional costs in manpower to integrate and operate the free alternative. “Open-source software has become a means to an end,” says Forrester’s Mr Hammond. “Most firms don’t really care that it is libre, as in freedom, but that it is gratis, as in beer.”

Open-source firms themselves have also become increasingly pragmatic. Red Hat and Novell, its main rival, still make money by giving away Linux and charging for support: customers sign up for a subscription that gives them the right to all the updates and someone to call if something goes wrong. Yet recent years have seen a flowering of different business models. A popular approach is to sell proprietary extensions to an open-source core. “The support model does not scale well,” Mr Aslett explains. It does not generate the returns expected by venture capitalists, who invested more than $3 billion in 163 open-source firms between 1997 and 2008, according to a study by the 451 Group.

Conversely, having realised that they can economise on resources and garner good ideas, proprietary software firms are increasingly taking a liking to open-source programs, albeit mostly at the edges of their offerings. IBM has sprinkled open-source software throughout its product line and is rumoured to be interested in buying Red Hat. If Oracle’s acquisition of Sun Microsystems goes through, it will have an even bigger open-source portfolio including MySQL, a popular program for databases. Even Microsoft now carefully embraces what its managers once described as a “cancer”.

Cloud computing—the delivery of processing power over the internet from vast warehouses of shared machines—will further blur the lines between proprietary and open-source software. Most of the firms peddling this model, such as Amazon and Google, use open-source software, since having to pay licensing fees would make the business unprofitable. But their services also rely on code developed in-house, which is not given away free. Microsoft, meanwhile, is building a huge cloud using its own software. If computing becomes a service delivered over the internet, it will hardly matter how the underlying software is developed.

Does this mean that the quest for openness in software is obsolete? On the contrary. If they are not careful, companies and consumers could get locked into a cloud even more tightly than into a piece of software. This is because data residing in the cloud can be hard to move to another service. “If you have a gigabyte somewhere, it develops a certain inertia,” says Mike Olson, the boss of Cloudera, which recently found it could not switch from a poor storage service because there was no way to move the data.

This sort of problem has spawned an open-data movement. In March a group of technology firms led by IBM published an “Open Cloud Manifesto” that has since received the support of more than 150 companies and organisations. It is only a beginning, but perhaps this time around the industry will not have to go through a long proprietary period before rediscovering the virtues of openness.

Something for the people who are still apprehensive to move onto the open source bus!!

About

A software professional & an amateur wildlife photographer