Sunday, January 31, 2010

Saari umr hum ......

 
A friend forwarded this mail to me....and I just had to share it with the world.

 
Saari umr hum
coding main mar gaye
Ek pal to ab humein jeene do
jeene do
 
Saari umr hum
coding main mar gaye
Ek pal to ab humein jeene do
jeene do
 
Na na na….Na na na….Na na na….Na na nana na….
 
Give me some flight
Give me some train
Give me another chance
I wanna go home once again
 
Give me some flight
Give me some train
Give me another chance
I wanna go home once again
 
Kandhon ko laptop
Ke bojh ne jhukaya
 
Client se jhoot bolna tho khud
Manager ne sikhaya
 
CRR4 rating laaoge to chhuti, varna kismat futi
Code kar kar ke pada Ungaliyon pe
JAVA, PHP, ORACLE aur MySQL ka chaala
 
Is Project ne to sala poora..
Poora bheja pakka daala
 
Career to gaya
GF bhi gayi
Ek pal to ab humein
jeene do jeene do
 
Career to gaya
GF bhi gayi
Ek pal to ab humein
jeene do jeene do
 
Saari umru hum
coding main jee liye
Ek pal to ab humein jeene do
jeene do
Na na na….Na na na….Na na na….Na na nana na….
Give me some flight
Give me some train
Give me another chance
I wanna go home once again

Give me some flight
Give me some train
Give me another chance
I wanna go home once again
Na na na….Na na na….Na na na….Na na nana na….
Na na na….Na na na….Na na na….Na na nana na….

 

Wednesday, January 27, 2010

Fwd: Coffee makes you dance around like a goat!

 
 
 

via Geek In Disguise by stevecla01 on 1/23/10

coffee

Hence why I'm cutting down my intake these days Smile I am actually cutting down a lot on my afternoon & evening caffeine and woe does it make a difference to the quality of sleep I get. I know that's obvious but I'm just a bit slow on this stuff

via theoatmeal.com




 
 
 



--

Ranjith Ravindran

http://cleartext.blogspot.com
http://tinyurl.com/ybkdp66

Fwd: Rules for Writing Well (Iain D Campbell)



 

 
 

via Reformation21 Blog on 1/11/10

some basic rule's of grammar to which we would all Do well to adhere, to:


26 Golden Rules for Writing Well


1.Don't abbrev.

2.Check to see if you any words out.

3.Be carefully to use adjectives and adverbs correct.

4.About sentence fragments.

5.When dangling, don't use participles.

6.Don't use no double negatives.

7.Each pronoun agrees with their antecedent.

8.Just between you and I, case is important.

9.Join clauses good, like a conjunction should.

10.Don't use commas, that aren't necessary.

11.Its important to use apostrophe's right.

12.It's better not to unnecessarily split an infinitive.

13.Never leave a transitive verb just lay there without an object.

14.Only Proper Nouns should be capitalized. also a sentence should begin with a capital letter and end with a full stop

15.Use hyphens in compound-words, not just in any two-word phrase.

16.In letters compositions reports and things like that we use commas to keep a string of items apart.

17.Watch out for irregular verbs that have creeped into our language.

18.Verbs has to agree with their subjects.

19.Avoid unnecessary redundancy.

20.A writer mustn't shift your point of view.

21.Don't write a run-on sentence you've got to punctuate it.

22.A preposition isn't a good thing to end a sentence with.

23.Avoid cliches like the plague.

24.1 final thing is to never start a sentence with a number.

25.Always check your work for accuracy and completeness.

 



 


Saturday, January 9, 2010

Scald Your Eyes With Daybreakers' Bloody, Futuristic Vision Of Vampirism [Mo...

 

via io9 by Annalee Newitz on 1/8/10

Daybreakers will hook you from the very first scenes, which slam you into a bleak, frenetic near-future where most humans have gone vampire without contemplating the consequences. Like how quickly the world will reach peak blood when everybody drinks it.

Written and directed by the Spierig Brothers, Daybreakers is a welcome reminder that the vampire legend is a versatile one, and overlaps nicely with many themes in contemporary science fiction. The Spierigs have a background in visual effects, and it shows in their careful worldbuilding of a city in 2019 where almost everybody is a night-dweller. Gleaming skyscrapers are connected by webs of covered walkways; the "subwalk" system coils beneath abandoned daylight streets. Cars have been fitted with webcam systems that allow people to drive via roof-mounted cameras with the windows blacked out. Indeed, all mirrors are replaced with webcams so the non-reflecting vamps can check themselves out. It's a cyberpunk vampire scenario, with all the awesomeness and camp that epithet implies.

If you're suffering from Twilight Fatigue Syndrome (TFS), this gritty, unromantic tale will be a welcome break. Our main character is Ed (Ethan Hawke), a top hematologist who is working for megacorporation Bromley Marks. Ed's trek to the office leads him past a grim Starbucks-style stand selling blood-spiked coffee ("Still serving 20 percent real blood!" their slogan promises) and a massive human blood farm where naked, unconscious people hang from a wall of machines that slowly suck their life out. Sam Neill is evilly unctuous as Bromley, the corporate exec who's gotten rich off factory blood farming. And poor, emo Ed, who refuses to drink human blood, is working for Bromley purely for humanitarian reasons: He wants to create a synthetic blood substitute so that they can stop killing humans.

So you've got your stock vamp movie characters: The good vamp who won't eat humans; the evil vamp who wants to rule a vamp-dominated world with his blood-soaked fist; and, of course, filling out the cast is a scrappy ex-vampire with a crossbow named Elvis (Willem Dafoe) who likes fast cars and wants to stop the killing.

The characters may be recognizable, but this movie works because the world they inhabit is completely original. Blood represents a natural resource that's running out, much like oil. But implanting that resource into humans turns a potentially clunky allegory into something much more interesting. We're not killing the planet - we're killing ourselves. We're drinking ourselves in our coffee, and selling ourselves in wine bottles. When the blood runs out, eating becomes so expensive that many of the vamps starve, and the hungriest turn into "subsiders," animalistic creatures with wings and brains of mush. The subsiders are hunted by authorities who roust them from what look like homeless encampments under the subwalks and condemn them to death by sunlight. So we've got a new caste system, with rich vampires on top, poor vamps and subsiders beneath them, and humans all the way at the bottom.

Luckily our heroic scientist Ed runs (literally) into Elvis and dedicates himself to finding out how the guy cured his own vampirism. There are a lot of action-packed, slightly silly scenes where Ed's frantic experiments are contrasted with the rapid degeneration of vampire society as blood runs out. Though the film's conclusion is preposterous and contradictory, it's hard to have too many hard feelings about it because, well, this is a scifi action vampire movie. And Daybreakers packs a punch on so many fronts - original story ideas, creatively gross fight scenes, acting that's hammy in a fun way - that you'll leave the theater feeling soundly entertained.


 


Explaining The Entire Plot Of Kick-Ass Just Makes Us Want To See It More [Ki...

 
 

via io9 by Charlie Jane Anders on 1/8/10

The new Kick-Ass trailer is out, and it pretty much narrates the entire film — which only makes us more desperate to fill in the ultra-violent, blatantly wrong and nasty blanks. Plus the A-Team trailer has turned up online too.

Here's the new Kick-Ass trailer — you can watch it in high res over at Yahoo! Movies.


And the A-Team trailer turned up online earlier today. Like James Bond and MacGyver, The A-Team takes place in a world of slightly fantastic technologies, but I'm not sure it's quite science-fictional enough for us — on the other hand, as reader Chris Hunt points out, it does have a tank flying through the sky. Anyway, judge for yourself. It's no longer online in an embeddable format, but here's a non-embeddable version on Youtube. (Thanks OMGWTFLOLBBQBYE!)

[Kick-Ass trailer via Collider]



Friday, January 1, 2010

BIP: Grouping and Parent Access

 

I found an interesting question on stackoverflow in the BI-Publisher tag. At first I thought BIP could not handle this requirement, but a little bit of trial and error taught me something. cleartext.blogspot.com

With this xml:

<root>
    <OrderEntry-Orders>
        <CwaChannel>Customer Portal</CwaChannel>
        <CwaOrderType>UT Sales</CwaOrderType>
        <ListOfOrderEntry-LineItems>
            <OrderEntry-LineItems>
                <CwaLineTotalAmount2>1000</CwaLineTotalAmount2>
                <CwaProductCode>001</CwaProductCode>
            </OrderEntry-LineItems>
            <OrderEntry-LineItems>
                <CwaLineTotalAmount2>1000</CwaLineTotalAmount2>
                <CwaProductCode>005</CwaProductCode>
            </OrderEntry-LineItems>
        </ListOfOrderEntry-LineItems>
    </OrderEntry-Orders>
    <OrderEntry-Orders>
        <CwaChannel>Customer Portal</CwaChannel>
        <CwaOrderType>UT Sales</CwaOrderType>
        <ListOfOrderEntry-LineItems>
            <OrderEntry-LineItems>
                <CwaLineTotalAmount2>1000</CwaLineTotalAmount2>
                <CwaProductCode>005</CwaProductCode>
            </OrderEntry-LineItems>
        </ListOfOrderEntry-LineItems>
    </OrderEntry-Orders>
    <OrderEntry-Orders>
        <CwaChannel>Customer Portal</CwaChannel>
        <CwaOrderType>UT Redemption</CwaOrderType>
        <ListOfOrderEntry-LineItems>
            <OrderEntry-LineItems>
                <CwaLineTotalAmount2>1000</CwaLineTotalAmount2>
                <CwaProductCode>005</CwaProductCode>
            </OrderEntry-LineItems>
        </ListOfOrderEntry-LineItems> cleartext.blogspot.com
    </OrderEntry-Orders>
</root>

 

This BIP code :

<?for-each-group: OrderEntry-LineItems; CwaProductCode?>

<?CwaProductCode?>

<?if:../../CwaOrderType='UT Sales' and ../../CwaChannel='Customer Portal'?>

<?'True'?>

<?end if?>

<?../../CwaOrderType?>

<?count(current-group()/.)?>

<?end for-each-group?>

Produces this output:

001

True

UT Sales

1

005

True

UT Sales

3

The count function returns a value of 3, but it prints only one value of OrderType. So it looks like the if condition is not filtering at all and always returns True.

The count returning 3 gives us the clue that there are two more elements there which need to be processed.

This code:

<?for-each-group: OrderEntry-LineItems; CwaProductCode?>

<?CwaProductCode?>

<?for-each:current-group()?>

<?if:../../CwaOrderType='UT Sales' and ../../CwaChannel='Customer Portal'?>

<?'True'?>

<?end if?>

<?../../CwaOrderType?>

<?end for-each?>

<?count(current-group()/.)?>

<?end for-each-group?>

Returns the answer: cleartext.blogspot.com

001

True

UT Sales

1

005

True

UT Sales

True

UT Sales

UT Redemption

3

Here the second True is print only once, as it iterates through the parents of the grouped node. cleartext.blogspot.com

So when there is a grouping done, and you need to check if its parent satisfies a condition, one single if statement will not suffce. Instead one more “ for-each:current-group() “ is required to iterate through all the grouped elements , and then the if statement should be added after that.

 

So the original BIP code in the question: cleartext.blogspot.com

 

<?for-each-group: OrderEntry-LineItems; CwaProductCode?>
<?if:../../CwaOrderType='UT Sales' and ../../CwaChannel='Customer Portal'?>
<?for-each: current-group()?>
<?CwaProductCode?>
<?xdoxslt:set_variable($_XDOCTX, 'countFund', xdoxslt:get_variable($_XDOCTX, 'countFund')+1)?>
<?xdoxslt:set_variable($_XDOCTX, 'TotalCount', xdoxslt:get_variable($_XDOCTX, 'TotalCount')+1)?>
<?xdoxslt:get_variable($_XDOCTX, 'countFund')?>
<?xdoxslt:set_variable($_XDOCTX, 'countFund', 0)?>
<?end if?>
<?end for-each-group?>
<?xdoxslt:get_variable($_XDOCTX, 'TotalCount')?>

Returns:

001

1

1

 

005

1

005

1

005

1

4

Can be re-written as

<?for-each-group: OrderEntry-LineItems; CwaProductCode?>

<?CwaProductCode?>

<?for-each: current-group()?>

<?if:../../CwaOrderType='UT Sales' and ../../CwaChannel='Customer Portal'?>

<?xdoxslt:set_variable($_XDOCTX, 'countFund', xdoxslt:get_variable($_XDOCTX, 'countFund')+1)?>

<?xdoxslt:set_variable($_XDOCTX, 'TotalCount', xdoxslt:get_variable($_XDOCTX, 'TotalCount')+1)?>

<?xdoxslt:get_variable($_XDOCTX, 'countFund')?>

<?xdoxslt:set_variable($_XDOCTX, 'countFund', 0)?>

<?end if?>

<?end for-each-group?>

<?end for-each-group?>

<?xdoxslt:get_variable($_XDOCTX, 'TotalCount')?>

 

Which returns: cleartext.blogspot.com

cleartext.blogspot.comcleartext.blogspot.com

001

1

005

1

1

3