Thursday, January 03, 2008

maven with on the fly editing for java webapps


Valleywag, Silicon Valley's Tech Gossip Rag
Balaji's blog - Inplace or On-the-fly editing of Java webapp’s
Inplace or On-the-fly editing of Java webapp’s

While developing and testing the Java EE web applications, people often needs a way to immediately web-view the changes that they have made in their JSP or HTML or Javascript.

For people who are using Eclipse or intelliJ as their IDE might also like to see their changes in serverside Java files applied over the deployed webapp's immediately.

Lets see how this can be done using Maven
In general, to view the changes immediately, people will edit those files on the exploded directory under webapp. Later, they have to manually copy the changes
to their original workspace. This is a pain for projects which has version control enabled.

Maven comes for resque:)

Some of the common goals used in Maven based build process includes test, clean, package, install. Apart from this maven provides excellent plugin capability.
One of such plugin allows you to directly deploy your webapp on your java application server like Tomcat/Jetty/Websphere etc.,
Lets see how we can make use of that plugin for inplace or on-the-fly editing and still be on hold with version control system.


Wednesday, January 02, 2008

fat people eat too much


Valleywag, Silicon Valley's Tech Gossip Rag
'Hearty Eater' Says Buffet Banned Him
Ricky Labit, a disabled offshore worker, said he had been a regular for eight months at the Manchuria Restaurant in Houma, eating there as often as three times a week.

On his most recent visit, he said, a waitress gave him and his wife's cousin, 44-year-old Michael Borrelli, a bill for $46.40, roughly double the buffet price for two adults.

"She says, 'Y'all fat, and y'all eat too much,'" Labit said.

Labit and Borrelli said they felt discriminated against because of their size. "I was stunned, that somebody would say something like that. I ain't that fat, I only weigh 277," Borrelli said, adding that a waitress told him he looked like he a had a "baby in the belly."

Houma accountant Thomas Campo said the men were charged an extra $10 each on Dec. 21 because they made a habit of dining exclusively on the more expensive seafood dishes, including crab legs and frog legs.

"We have a lot of big people there," said Campo, who spoke for owner Li Shang, whose English is limited. "We don't discriminate."

Monday, December 24, 2007

Credit problems


Unpaid credit cards bedevil Americans - Yahoo! News
Experts say these signs of the deterioration of finances of many households are partly a byproduct of the subprime mortgage crisis and could spell more trouble ahead for an already sputtering economy.

"Debt eventually leaks into other areas, whether it starts with the mortgage and goes to the credit card or vice versa," said Cliff Tan, a visiting scholar at Stanford University and an expert on credit risk. "We're starting to see leaks now."


Don't use credit cards as a bank! the interest rate will get you! I know a few friends that had this problem... one missed payment.... pow!

Saturday, December 22, 2007

Blackberry link to download facebook

http://www.blackberry.com/facebook/mobiledownload

I had a hard time finding the link to download facebook for the blackberry. you think you would be able to easily get it over the air(OTA.)

Traffic Gauge worth getting?

TrafficGauge Mobile Traffic Map of Los Angeles and Orange County

My wife drives through about 2 hours of traffic every day. It's the reality of living in LA. Most people I talk to in Los Angeles commute on average about 40 minutes a day. The traffic gauge provides real time wireless traffic. Price 80 to buy, then 10 bux a month for the subscription for real time traffic info. 

Thursday, December 13, 2007

test cat 2

testcat

 

where does the cat live?

live writer test!

funny pictures

Thursday, December 06, 2007

underground hackers


DailyTech - Study: Insight into Chinese Underground Hacking Economy
In all, the study claims that 1.49% of Chinese websites have malicious content within them. The study measures 145,000 of the most commonly visited Chinese websites and found that 2,149 of them contained malicious content. Each time a visitor to the websites containing malicious content visited that had certain software vulnerabilities in their browser or applications, the machine was compromised and some sort of malware was installed unbeknownst to the computer user. This kind of attack is known as drive-by-download-attack and the malware is typically a Trojan of some sort that harvests information and sends it to the attacker.

The study describes what it calls actors from the underground economy. The first actor is the Virus Writer, who has a certain degree of technical background allowing them to program viruses and zero day exploits. The virus writers are driven by profits says the study. On the underground market virus writers typically earn around the equivalent of $1.34 USD for the sell of Trojans they write.

A website master/cracker is the next player who attracts web traffic to a site with free goods like music or applications. These webmasters/crackers then sell the traffic to “envelope stealers” for around 40 -60 RMB ($4-$8 USD) per 10,000 visits. The envelope stealers attempt to harvest username and password combos for given sites, like online games. These envelope stealers then sell the harvested information to virtual asset stealers for tens of RMB, or around $1.35 USD. These players also sell access to infected computers for pennies to about $1.35 USD.

Virtual asset stealers buy the password, username combos from envelope sellers and then gain access to accounts in popular online games where they steal game assets like weapons and coins to sell for real world profits. What the study calls one QQ coin sells for about $0.70 USD. The final piece of the underground economy is the players who buy the stolen game goods. The study says these players are most often teenage males very into online games who spend their parent’s money.


apache deployments!


Indigio Blog - Colorado’s premier Interactive Agency blog - specializing in SEO, Creative Design, Development and Analytics » Blog Archive » Easier Production Releases
Set up an external dns entry for example.com and www.example.com (and the appropriate firewall rules to get port 80 of that IP to this apache box) and you now have a website that load balances over two separate clusters. You’re ready for a release during BUSINESS HOURS!

Choose a cluster to release to first and comment out all of its servers in the web-prod balancer. Run an apachectl graceful and you should then have no traffic going to that cluster. Shutdown the cluster, do your release thing, start up the cluster and then send QA off to test the cluster using the specific prod-a or prod-b.example.com url. Once QA confirms it’s good, uncomment the cluster from the web-prod balancer and comment out the other one. Fire off another graceful restart and repeat the release procedure on that cluster.

And *poof* you just rolled out a release with no downtime and very little impact to end users! Of course, this was just a very simple example. You can get much more detailed in your cluster design, especially with JBoss and different components. Just remember your individual clusters have to be completely separate. They can’t share any resources. Although, in all my experience they’ve always shared a database. You just need to make certain that any database updates the devs require you to make for the upgrade won’t cause the older release any harm.

This concept should work in most situations, just could take more planning/design/set up. I’ve got a similar set up running with 36 JBoss servers, 18 in each cluster. Quite a bit more had to be configured, especially to make sure that each individual cluster acts independently, and then there’s the SSL issues and sticky session requirements. But it’s so worth it though, and everyone will love you for cutting out the need for past midnight release “parties”.


I should set this up!

Monday, December 03, 2007

pooor kity


Cat survives 19 days with jar on head - Yahoo! News
BARTLETT, Tenn. - Tabitha Cain has fed a feral cat she calls Wild Oats for several years, but now she's thinking of changing the feline's name to Survivor.

That's because she says the cat survived for 19 days with a peanut butter jar stuck on its head.

"We tried to get her, but being the type of cat you can't catch, she kept running and hiding," said Doretha Cain, Tabitha's mother.

The family saw the cat several times with the jar on its head and tried in vain to catch it. But after not seeing the cat for a week, the Cains feared the worst.

"I thought she was going to die with that jar on her head," said Tabitha Cain, 25.

They found the once chubby cat on Wednesday, too thin and weak to flee. They caught her with a fishing net and used some oil to get the jar off her head.


Friday, November 30, 2007

dun buy that beagle


Our view on animal welfare: Beware of doggie in window - Yahoo! News
Under federal rules, a beagle could legally spend its life in a dishwasher-sized cage. Nor are there enough inspectors: 105 are charged with overseeing about 10,000 facilities, including kennels, zoos and research labs. High-volume operations that sell directly to the public don't need a federal license, and most state laws and enforcement are weak.

snogo i promise to be good


Fearing Divorce, Japanese Husbands Learn to Be Loving
Everything boiled down to the desire of wives to hear their husbands say "three magic phrases" more often: "Thank you," "Sorry," and "I love you".

Perched on a beer case serving as a makeshift podium in central Tokyo, a group of middle-aged Japanese men are standing up to save their marriages -- and, they hope, marriage in Japan generally. "I'm sorry I always forget to put the toilet seat down," said one man in a suit and tie confessed as he balanced on the beer box at Shimbashi, Tokyo's hub of "salaryman" corporate workers.

"I hereby declare that I will stop going to the hostess bar, I'm sorry," said another man as his wife looked on amid a crowd of curious bystanders.

Said another man: "I love you, even though I don't really say it."

In a country where reticence about one's private life is the norm, these men are trying to prove their worth to their wives by making their vows as public as possible.

The 20 men taking part in the unlikely rally chant their slogan together: "Say 'thank you' without hesitating. Say 'sorry' without being scared. Say 'I love you' without being shy."


hi snogo. i promise to put away the dishes every night.

Thursday, November 29, 2007

please give me my money


Lottery winner wasn't supposed to gamble - Yahoo! News
BOSTON - The winner of a $1 million lottery scratch ticket may not be so lucky after all: He's a convicted bank robber who isn't supposed to gamble. Timothy Elliott faces a Dec. 7 court hearing over whether he violated his probation when he bought the $10 ticket for the $800 Million Spectacular game at a supermarket in Hyannis.
ADVERTISEMENT

Elliott was placed on five years' probation after pleading guilty in October 2006 to unarmed robbery for a January 2006 heist at a bank on Cape Cod. Under terms of his probation, he "may not gamble, purchase lottery tickets or visit an establishment where gaming is conducted, including restaurants where Keno may be played."

Thursday, November 22, 2007

Please dress my doggie


Dog owners go barking mad for fancy dress - Yahoo! News
Sales soared by 300 percent over Halloween. Now costumiers have lined up a festive big seller -- the one-size-fits-all Santa pet hat for the dog determined to have a great Christmas.

"Some cynics would say the British love their dogs more than they do other people," said Benjamin Webb, spokesman for Angels Fancy Dress who have been supplying costumes for humans since 1840 and are now on a canine winning streak.


Wednesday, November 21, 2007

american eagle loses bags!


Travelers’ Odds Decline on Airline Baggage - New York Times
Counting together American and the regional airline it owns, American Eagle, mishandled bags rise to 8.69 for every thousand passengers, or a total of 639,146 through Sept. 30.

American Eagle had the worst bag-handling record of 20 airlines tracked by the Bureau of Transportation Statistics during that period, the agency reported.


lost luggage recovery!



Travelers’ Odds Decline on Airline Baggage - New York Times
“We never hit 100 percent — 90 percent is acceptable,” she said. Airlines are fond of saying that they have a success rate of more than 99 percent in getting luggage to its destination along with its owner. And every big airline has stepped up efforts to improve its operations. But the baggage problem is getting worse. One in every 138 checked bags was lost during the first nine months of this year, compared with one in 155 bags a year earlier.

Monday, November 19, 2007

free evdo!


Techcrunch
But Amazon must be taking a big hit up front on this. My Sprint EVDO data plan costs $60 a month. That is a consumer price. Obviously, Amazon was able to negotiate a much lower price. Even at $10 a month per Kindle, Amazon would need to sell a dozen books just to recoup its wireless network costs. Maybe it got a better deal than that, since the device is designed more for a download-and-read experience than an always-on experience. So the Kindles may not end up using a lot of bandwidth. It is not like most people are going to be downloading a new book everyday. If Amazon was able to negotiate the rate down closer to $1 a month, that would make more sense, because that would only require one or two book downloads per customer to pay for a year’s worth of wireless access. Amazon would not comment on how much it is paying for the wireless network. If it is paying Sprint on a per-device basis, it won’t really matter unless the Kindle takes off in sales.



The new device has evdo! this is great!

Saturday, November 17, 2007

To get mysql to autostart on startup


LAMP (Linux, Apache, MySQL, PHP) HOWTO: Installing MySQL and Apache with PHP support on Linux
/sbin/chkconfig --level 3 mysql on



I had to use:

/sbin/chkconfig --level 3 mysqld on

instead

Friday, November 16, 2007

goodbye doogggie


Dog gives up life to save man from fire - Yahoo! News
CARTER LAKE, Iowa - Bryan Smith has pictures of his dog in his coat pocket, a reminder of the pet that sacrificed itself to save him from his burning house.
ADVERTISEMENT

It was Tuesday night when Storm jumped on the slumbering Smith and alerted him to the growing smoke and flames outside his bedroom.

Smith says he grabbed his curtains, wet them for a mask and grabbed his puppy Daisy while the older dog ran ahead.


Thursday, November 15, 2007

aiden gets his revenge


Popular NYC eatery shut down for rodents - Yahoo! News
While serendipity may be the art of finding pleasant things by chance, what health inspectors found at celebrated eatery Serendipity 3 was not very agreeable.
ADVERTISEMENT

Officials closed the restaurant Wednesday night after it failed its second inspection in a month. An inspector spotted a live mouse and mouse droppings, fruit flies, house flies and more than 100 live cockroaches.