Wednesday, January 30, 2008

Java Exceptions

****************************************************************************

java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65
)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at org.postgresql.PG_Stream.flush(PG_Stream.java:352)
at org.postgresql.core.QueryExecutor.sendQuery(QueryExecutor.java:159)
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:70)
at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Con
nection.java:505)
at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Stat
ement.java:320)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stat
ement.java:48)
at org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc
1Statement.java:153)
at org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc
1Statement.java:141)
at it.codegen.tbx.accountsmanager.TBXAccountsManager.getTimeZone(TBXAcco
untsManager.java:1602)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.systinet.wasp.server.adaptor.JavaInvoker.invokeService(JavaInvoke
r.java:1373)
at com.systinet.wasp.server.adaptor.JavaInvoker.beginInvoke(JavaInvoker.
java:444)
at com.idoox.wasp.server.adaptor.JavaAdaptorImpl.beginInvoke(JavaAdaptor
Impl.java:83)
at com.idoox.wasp.server.AdaptorTemplate.javaInvocation(AdaptorTemplate.
java:269)
at com.idoox.wasp.server.AdaptorTemplate.doDispatch(AdaptorTemplate.java
:217)
at com.idoox.wasp.server.AdaptorTemplate.dispatch(AdaptorTemplate.java:1
87)
at com.idoox.wasp.server.ServiceConnector.dispatch(ServiceConnector.java
:368)
at com.systinet.wasp.ServiceManagerImpl.dispatchRequest(ServiceManagerIm
pl.java:559)
at com.systinet.wasp.ServiceManagerImpl.dispatch(ServiceManagerImpl.java
:439)
at com.systinet.wasp.ServiceManagerImpl$DispatcherConnHandler.handlePost
(ServiceManagerImpl.java:2672)
at com.idoox.transport.http.server.Jetty$WaspHttpHandler.handle(Jetty.ja
va:97)
at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1087)
at com.mortbay.HTTP.HttpServer.service(HttpServer.java:675)
at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:457)
at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:317)
at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:
99)
at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:254)
at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:60
7)
at java.lang.Thread.run(Thread.java:595)
End of Stack Trace

at org.postgresql.PG_Stream.flush(PG_Stream.java:356)
at org.postgresql.core.QueryExecutor.sendQuery(QueryExecutor.java:159)
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:70)
at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Con
nection.java:505)
at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Stat
ement.java:320)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stat
ement.java:48)
at org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc
1Statement.java:153)
at org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc
1Statement.java:141)
at it.codegen.tbx.accountsmanager.TBXAccountsManager.getTimeZone(TBXAcco
untsManager.java:1602)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.systinet.wasp.server.adaptor.JavaInvoker.invokeService(JavaInvoke
r.java:1373)
at com.systinet.wasp.server.adaptor.JavaInvoker.beginInvoke(JavaInvoker.
java:444)
at com.idoox.wasp.server.adaptor.JavaAdaptorImpl.beginInvoke(JavaAdaptor
Impl.java:83)
at com.idoox.wasp.server.AdaptorTemplate.javaInvocation(AdaptorTemplate.
java:269)
at com.idoox.wasp.server.AdaptorTemplate.doDispatch(AdaptorTemplate.java
:217)
at com.idoox.wasp.server.AdaptorTemplate.dispatch(AdaptorTemplate.java:1
87)
at com.idoox.wasp.server.ServiceConnector.dispatch(ServiceConnector.java
:368)
at com.systinet.wasp.ServiceManagerImpl.dispatchRequest(ServiceManagerIm
pl.java:559)
at com.systinet.wasp.ServiceManagerImpl.dispatch(ServiceManagerImpl.java
:439)
at com.systinet.wasp.ServiceManagerImpl$DispatcherConnHandler.handlePost
(ServiceManagerImpl.java:2672)
at com.idoox.transport.http.server.Jetty$WaspHttpHandler.handle(Jetty.ja
va:97)
at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1087)
at com.mortbay.HTTP.HttpServer.service(HttpServer.java:675)
at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:457)
at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:317)
at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:
99)
at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:254)
at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:60
7)
at java.lang.Thread.run(Thread.java:595)
An I/O error has occured while flushing the output - Exception: java.net.SocketE
xception: Broken pipe
Stack Trace:

***************************************************************************

why this exception comes

I was wondering why this came and how to fix this issue, broken pipe
as normal i was helpless when i saw this message

my system uses Java, Wasp server with PostgreSql database

Reason for the error
The program is assigned to a specific socket when it is working
So this error comes when another program uses the socket which is assigned to this program
so the answer to the problem is .....
change the socket
so your prorgam can uses that new socket and there want to any broken pipe as long as another program tries to connect to new socket
In my issue the socket to my program was fixed , to prevent unnecessary overhead of communication where , if you uses random sockets you have to inform others all the time that Hey....... I am using this socket so do not use that

So restart the server
probably not a good solution
other person would have got this exception and may be trying to speak to the god............
or ..... God !!!!!!!!!!
find me this issue

Tuesday, January 29, 2008

Most Eggs Crushed With The Toes In 30 Seconds

http://www.youtube.com/watch?v=eOzz-D82VjA&feature=dir

VAT ang GST

Small Business Law

Value-added tax (VAT)

VAT is paid by each producer or distributor who handles the goods before they reach the consumer or end user, who is usually a member of the public. It is called value-added tax, because tax is paid at every stage where value is added to the product.

VAT was introduced in 1991 and it replaced general sales tax (GST). GST was a tax which was paid only by the end user or consumer.

Example of the difference between VAT and GST: Cozy Cotton is a factory, which weaves cotton into material. It sells the material to Fabulous Furniture, a factory which uses the material to make furniture. Fabulous Furniture sells its furniture to The Family Furniture Shop, which sells a couch to Liziwe. Under the old system of GST, the only person who would pay tax, would be Liziwe, the person buying the furniture from the shop. The person buying the furniture from the shop to use at home is called the end user. Under the new system of VAT, the Cozy Cotton factory would pay tax (VAT) when it buys the cotton; Fabulous Furniture would pay tax when it buys the material; The Family Furniture Shop would pay tax when it buys the furniture, and the end consumer would pay tax. The tax is therefore shared between four parties.


VAT vendors

When a business is registered as a vendor, it means two things:

  • The vendor must collect VAT from customers and pay this VAT to the Receiver.
  • The vendor can claim back any VAT that is paid on anything bought for the business.


Who should register as a vendor?

If the turnover (the total of all the sales, without subtracting the costs) of a business is more than R300 000 per year, then the business must be registered as a vendor. When you start a business, if you think the turnover will be more than R300 000, then you have to register as a vendor.

If the turnover of the business is less than R300 000 per year, the owner can choose to register or not. It is a lot of work to pay VAT to the Receiver regularly and to keep all the records the Receiver wants a vendor to have. If you don’t have to register, it is only a good idea to register if the business buys lots of things from suppliers and can claim back VAT to reduce the amount of VAT you owe SARS.’

See PROBLEM 3: Is being a VAT vendor worth it?

If the business is a sole trader or a partnership, the owners must register in their own names.
If the business is a CC or a company, the owners must register in the name of the business.


How do you register?

The owner of the business must get a form VAT101 from the Receiver of Revenue. You must fill in the form, and send or deliver it to the Receiver of Revenue. The Receiver will send the owner of the business a registration number.


How does it work?

The Receiver of Revenue will give the business a registration number, which is called a VAT invoice number. This number allows the person or business to charge 14% VAT on goods or services the business sells.

Example: Nomawhethu types letters for other people. She is registered as a vendor. She charges R20 to type one page. She must charge 14% VAT on top of that. 14% of R20 is R2,80. So she charges R20 + R2,80 = R22,80 altogether.


VAT invoices

Vendors must give their customers a VAT invoice, to charge them for the goods or services. The invoice must have the following written on it:

  • the words ‘Tax Invoice"
  • the VAT registration number of the business
  • the amount of VAT paid by the customer separately from the price of the goods or services.

Remember to check that the VAT invoices you receive from other businesses have all these details on them if you are going to claim the VAT back from SARS. If an invoice does not have all these things on it, you cannot claim the VAT back.


What records must be kept

Businesses registered for VAT must keep records, which show how much VAT they have collected. For example these records must be kept:

  • invoices from your business to customers
  • invoices from your suppliers to you
  • a list of debtors (that owe the business money) and creditors (that the business owes money to)
  • bank statements, deposit slips, copies of cheques
  • books of account, where the owner of the business writes down how much money has come into the business every month, and how much money has been spent and on what

It is a good idea to ask an accountant to help set up books, or to go on a short course which teaches people how to keep books.

Records must be kept for five years.

The owner of the business must also have a bank account.


Paying VAT to the SARS

The owner of the business has to pay the VAT over to the Receiver of Revenue every two months. The Receiver will tell you how your two-month cycle will work. You will be put into category A or category B.

If your return is late, you will have to pay interest and a fine.

You can pay on-line or into the SARS account at First National Bank.

Category A vendors have to pay like this:

  • VAT collected from customers from 1 December to 31 January must be paid to the Receiver by 25 February
  • VAT collected from 1 February to 31 March must be paid to the Receiver by 25 April
  • VAT collected from 1 April to 31 May must be paid to the Receiver by 25 June and so on.

Category B vendors have to pay like this:

  • VAT collected from 1 January to 28 February must be paid to the Receiver by 25 March
  • VAT collected from 1 March to 30 April must be paid to the Receiver by 25 May
  • VAT collected from 1 May to 30 June must be paid to the Receiver by 25 July and so on.

The owner of the business must calculate how much VAT you owe the Receiver. Send the Receiver a cheque with a form called a return. The return is form VAT201. If your returns often get to the Receiver late, the Receiver can tell you to send the VAT every month instead of every two months.

Businesses have to pay VAT on goods or services if they have invoiced customers. This is called paying VAT on an invoice basis. It means that if the owner of the business invoices customers, the owner has to pay over the VAT to the Receiver even if the customer has not yet paid. This could cause cash flow problems for the business.

The owner of the business can do three things:

  • Apply to the Receiver in writing to pay VAT on a payments basis. This means that you only pay VAT to the Receiver when your customers have paid.
  • Ask customers to pay their account immediately when they buy the goods or when they receive the service.
  • Charge customers interest if they do not pay your invoices within 30 days.


Claiming input credits

The vendor can claim back any VAT that is paid on anything bought for the business. The VAT which the vendor can claim back is called an input credit.

You can only claim input credits for the amount of VAT shown on VAT invoices that you paid. Remember to file invoices to prove what you have spent money on. For example, you must keep salary slips, invoices from suppliers, slips to show how much petrol you have used if you use a car for business reasons, and so on.

Example

John is the only member of a CC called Better Copy. Better Copy is a printing and photocopy business. Better Copy is registered as a vendor. Better Copy must charge 14% VAT on all copying and printing that John and his employees do for customers. John must give a Better Copy VAT invoice to every customer.

Mary wants 20 copies made of a knitting pattern. Better Copy charges R5,00 to do this. John must add 14% VAT, which would be 70c. Mary must pay R5,70. John will send the 70c to the Receiver of Revenue, with all the other VAT paid by other customers over 2 months.

Better Copy bought a photocopy machine from IBM for R10 000. He paid R1 400 VAT on the machine. He therefore paid R11 400. IBM gave Better Copy an invoice with IBM's VAT registration number on it. Better Copy can claim the R1 400 from the Receiver because Better Copy is registered as a vendor. This R1 400 is called an input credit.

At the end of January, John adds up all the VAT which he has collected from his customers. The total is R5 000, which he owes to the Receiver. He has an input credit of R1 400, which is VAT he can claim back from the Receiver. John subtracts the R1 400 input credit from the R5 000 collected from customers. John must pay the Receiver R3 600.


http://www.paralegaladvice.org.za/docs/chap14/06.html




Monday, January 28, 2008

Nokia N810 Internet Tablet


Nokia N810 Internet Tablet, signifying a new phase in portable internet communication. You have ability to connect this pocket-sized device to the nearest Wi-Fi hotspot or over your Bluetooth mobile phone. The Nokia N810 allows you to make internet calls; check your e-mail or watch the latest videos or update your blog using the device's slide-out keyboard along with its stunning touch screen. Its built-in maps and satellite navigation helps you to find your way.

Whether you are at home, in the park or in a coffee shop, with the Nokia N810 you will never be far away. With the ability to check emails, read the latest gossip online or IM to your friends, share your moods on your favorite social sites; call via internet, or get closer by the video chat - with the integrated VGA camera - you'll never be far away from those you want to keep in contact with.

You may feel lost without it, but with the Nokia N810, you'll never lose your way. The Nokia N810 has an integrated GPS receiver which allows you to pinpoint your position and find a wide variety of points-of-interests.


Specifications

Operating System and Software
Operating System Internet Tablet OS 2008
Operating System Version 2008
Operating System Other
Included Software Clock, File Manager, Drivers, PDF Viewer

Display
Display Type TFT active matrix
Display Resolution 800 x 480
Memory and Proccessor
Installed Memory 128 MB
Installed ROM 256 MB
Memory Technology DDR SDRAM
Processor Class OMAP2420
Processor Speed 400 MHz
Communications
Slot Types Provided SD Memory Card
Wireless Connectivity Bluetooth 2.0 EDR, IEEE 802.11b, IEEE 802.11g
Interface Provided 1 x Hi-Speed USB, 1 x headphones - mini-phone stereo 3.5 mm
Cell Phone Features
Standby Time 330 Hours
Minimum Requirements
System Type PC
Power
Average Battery Life 4 hours
General Product Info
Included Devices Carrying case, Stand
Input Method Keyboard, Touch-screen, Stylus
Also known as Nokia N810, Nokia N810 Internet Tablet, Nokia





Aussie Open winner Tennis Beauty Sharapova says she'll retire from tennis by 30


MELBOURNE (AFP) - The only shrieking Maria Sharapova wants to hear 10 years from now will be coming from her babies, with the newly-crowned Australian Open champion vowing to quit tennis before she hits 30.


The Russian queen of scream is just 20 years old but secured her third Grand Slam at Melbourne Park with a straight sets win over Ana Ivanovic.

US-based Sharapova said she had a deep love of the game but also wanted to have a family and would not stretch out her career for too long.

"No. Definitely not," she replied when asked if she would play on until 2018.

"I hope by that time I'll have a nice husband and a few kids."

Sharapova also ruled out making a comeback as a racquet-wielding tennis mum like Lindsay Davenport, who she beat in the second round on her way to claiming the Australian title.

"I don't think you'll see me back playing, take my word for it," she said.

Sharapova said she felt she had earned the rewards that tennis success had brought, giving her a sense of accomplishment that allowed her to hold her head high when branded a "spoiled brat".

"When I see other 20-year-olds that might be driving in their Range Rover I know that I worked for mine, I have that satisfaction," said the world number five, who picked up a 1.2 million US dollar winners at the Australian Open.

"Sometimes you get those dirty looks, where they're looking at you and thinking 'that spoiled brat, who is that, her father probably bought her a Range Rover'.

"Like 'no honey!' I bought that myself.

"In those moments you feel mature."

Sharapova said she had been forced to grow up quickly after winning Wimbledon as a teenager in 2004.

"Because I achieved success so early in my career by winning Wimbledon at 17, I think it just automatically makes you older because all of a sudden you're a Grand Slam champion," she said.

"You're expected to win more Grand Slams, you're expected to win every tournament you play and it makes you so much more mature."

She said the grind of being on the women's tour also had its downsides, including lengthy enforced separations for her parents Yuri, who accompanies her on tour, and mother Yelena, who is rarely seen at tennis tournaments.

"It's strange because my career, though amazing, has brought us a lot of downfalls," she said.

"My parents don't get to see each other very often. But those are the sacrifices that I and my family have to make. We've been through a much tougher process (than others) with not seeing my mum when I was younger."

Despite the talk of retirement, Sharapova said she retained her passion for tennis.

"To do something that you love to do and being good at it, there's no better gift," she said.

"When I step on the court, it's a place I love to be in and nothing will ever change that

"I forget about past matches, I just draw my attention to the things I want to work on, all those things, positive or negative, they just go away.

"There's a holiday break, Christmas-time, two great days off and then you're back on the court and it's like it never ended.

"When I go on there everything else is gone."

Friday, January 25, 2008

Star Wars: The Force Unleashed Webdoc 3

Got what it takes to be a Dark Jedi? Thanks to a trio of technological breakthroughs, the next big Star Wars game is truly a force to be reckoned with.



By now, anyone with even a cursory understanding of the Star Wars mythology knows that the nefarious Darth Vader is the proud papa of rebellious twins Luke Skywalker and Princess Leia. We know that he was once a nice enough guy, but the fear of losing his love prompted him to commit unforgivable acts of treason and murder. We also know that, try as he might, Vader was unable to convert his baby boy into a willing accomplice. Luke simply wasn't interested in the Sith family business.

But what if Darth Vader was just trying to find a replacement? What if, in fact, he already had a Jedi helper bee? And what if his name was you?


To watch videos visit

EXCLUSIVE VIDEO UNVEILED:



http://cosmos.bcst.yahoo.com/up/player/popup/?rn=1475790&cl=6060618

n the upcoming Star Wars video game The Force Unleashed, you'll take on the role of Darth Vader's secret apprentice. You'll study the ways of the Dark Side, wielding inconceivable amounts of destructive Force power as you aid your asthmatic master in his quest for redemption. And along the way, you'll witness the convergence of the most exciting new technology to grace video game software in years.

All this and more is revealed in the third official Force Unleashed webdoc, found exclusively on Yahoo! Video Games. Detailing how the team behind The Force Unleashed managed to combine three cutting-edge simulation technologies into one seamless experience, it delivers a compelling, behind-the-scenes look at the game's development.

Lucas Arts is keeping specific details about the plot tightly under wraps, but here's what we know so far. The game takes place in the roughly twenty-year interim between the end of Episode III and the start of Episode IV. Under the watchful eye of Emperor Palpatine and led by the iron hand of Darth Vader, the Empire has tightened its grip on the Republic and the few remaining Jedi have all but vanished. But unbeknownst to the Emperor, Vader isn't simply in it to bring order to the cosmos. He's got other plans.

That's where you come in. As Vader's undercover agent, you take on deadly, top-secret missions all across the famous galaxy far, far away. It's a tale of duplicity, as not even the Emperor knows about your actions, and at the moment, neither do we. More details about the game's intriguing story - as well as insight into what famous characters you might meet up with along the way - will hopefully be revealed in the coming months.

For now, we'll focus on the crux of this third-person action extravaganza: the gameplay, and the amazing technology that powers it.

TATA Nano-The world's cheapest car



The Tata Nano is a city car launched by India's Tata Motors. The model was unveiled at the 9th annual New Delhi Auto Expo on January 10, 2008 at Pragati Maidan, New Delhi, India. The initial production target set by Tata Motors is 250,000 units per year.
According to Tata Group's Chairman Ratan Tata, the Nano is a 33 PS (33 hp/24 kW) car with a 624 cc rear engine, making it the first time a 2-cylinder gasoline engine will be used in a car with a single balancer shaft, and has a mileage of 4.55 L/100 km (51.7 mpg (US), 62.8 mpg (UK)) under city road conditions, and 3.85 L/100 km on highways (61.1 mpg (US), 73.4 mpg (UK)).
Tata claims that the Nano complies with Bharat Stage-III and Euro-IV emission standards. The Nano is 21% more spacious from the interior and 8% smaller from the exterior as compared to its closest rival, the Maruti 800. The standard version (without air conditioning, radio and power steering) will cost Rs 100,000 (not including levies such as VAT/LT, transport and delivery charges) (US$2500, GB£1277, €1700), making it the cheapest production car in the world. The choice of price has led to the Nano being called the "1-lakh car". The car will come in different variants, including one standard and two deluxe variants. The Deluxe variant will have air conditioning, but no power steering.

Tuesday, January 22, 2008

Apple 2Q Outlook Spooks Investors

SAN JOSE, Calif. (AP) — With a broader economic slowdown looming over technology stocks, investors flocked to Apple Inc. in recent months hoping the stock would be a surefire holiday-season winner and safe haven from the market's overall turmoil.

But when Apple's outlook for its second quarter showed even it might not be impervious, many shareholders retreated Tuesday from their bets on Apple, pushing its stock down $17.06, or nearly 11 percent, to $138.58 in after-hours trading.

Apple forecast profit in the second fiscal quarter of 94 cents per share, far short of the $1.09 per share that analysts were expecting. Revenue is also expected to be lower, coming in around $6.8 billion, compared with the $6.99 billion forecast by analysts.

And the report of a robust holiday quarter — when profits jumped 57 percent during the three months ended Dec. 29 — was not enough to overcome worries that Apple will struggle in 2008.

More than $40 billion in shareholder wealth has vanished since the end of December, when Apple's stock hit its 52-week high of $202.96.

Apple became emblematic Tuesday of the broader market tumble, in which the tech-laden Nasdaq composite index fell 47.75 points to 2,292.27. Apple shares ended regular trading Tuesday down $5.72 at $155.64, before the earnings report and second-quarter guidance were released.

Some analysts said the fears about slowing consumer spending were overblown and the company may have been a victim of its own past successes.

"I think it's more of the whisper numbers on Apple just got incredibly high," said Jane Snorek, senior analyst of technology stocks for First American Funds. "(There were rumors) of $10 billion in sales and $2 per share in earnings and that they might raise their guidance. And when they kind of report in line and guide down like they're supposed to, like they should be doing, it's a big letdown."

Apple's guidance has historically been conservative, but such a divergence from Wall Street's estimate rattled investors already skittish about the economy.

The stock plunge was likely worsened, Snorek said, by the exodus of a large number of investors who had hoped Apple's stock would be a refuge from the economic pressures hurting the overall stock market.

"There was a lot of money hiding in this stock," she said.

Still, Apple managed to blow past Wall Street's bullish expectations in the first fiscal quarter, aided by soaring sales of Macintosh computers and continued rising sales of iPod digital music players.

Chief Executive Steve Jobs said the company notched the highest sales and earnings figures in the company's history.

Apple's net profit was $1.58 billion, or $1.76 per share, for the three months ended Dec. 29. That was 14 cents higher than the average estimate of analysts polled by Thomson Financial.

Net income during the same period a year earlier was $1 billion, or $1.14 per share.

Sales during the first quarter were $9.61 billion, also higher than the $9.47 billion Wall Street was expecting and 35 percent more than the $7.1 billion of the year-ago period.

Apple is profiting from sharply accelerating gains in the personal computer market in the United States, where the company has hovered for years in the 2 percent to 3 percent market share range. By the end of 2007, however, Apple had scooped out a share of more than 6 percent, according to market researcher Gartner Inc.

Those gains were reflected in the latest quarter with a 59 percent jump in sales of desktop Macintosh computers to $1.51 billion, and a 40 percent jump in laptop sales to $2.04 billion.

Still, iPod sales eclipsed both of those categories, underscoring Apple's transition from purely a personal computer maker and into a delivery vehicle for all forms of digital entertainment, from music to television shows to movies.

Earlier this month, the company took the plunge into online movie rentals through its iTunes service and upgraded its Apple TV device to allow consumers to download and play movies directly through the box itself, obviating the need for a personal computer for those transactions.

In the first quarter, iPod sales jumped 17 percent over last year to $3.99 billion. Total personal computer sales were $3.55 billion.

Apple executives declined to comment on economic factors such as sluggish consumer spending that may have weighed on second-quarter guidance.

Instead, the company pointed to bustling Apple retail stores, which saw more than 10 million more people come through their doors in the first quarter than during the same period last year.

Apple executives also noted that second-quarter guidance, while lower than what Wall Street was expecting, still predicts a revenue jump of 29 percent over last year, which is a faster rate of growth than in previous years.

"Our business performed very well in the December quarter, and we remain very confident in our products and our strategy," said Apple chief financial officer Peter Oppenheimer.

The iPhone, Apple's combination iPod-cell phone-wireless Internet browser, also remains a closely watched indicator of Apple's success. More than 2.3 million of the devices and accessories were sold during the latest quarter.

Jobs said during the Macworld Conference & Expo earlier this month that Apple has sold 4 million iPhones since they went on sale June 29 in the United States. Subsequent launches in Britain, Germany and France have boosted sales while sparking legal fights over Apple's strategy of striking exclusive deals with mobile operators in each region. Apple is also in talks to bring the device to China and Japan.

Company executives said Tuesday that Apple remains on track to sell 10 million iPhones by the end of 2008, which would give the device roughly 1 percent of the worldwide cell phone market.


AP

Friday, January 18, 2008

Oracle-BEA deal expands lock-in strategy, offers new risks and opportunities for Red Hat

Oracle’s $8.5 billion dollar buyout of BEA dramatically shifts the enterprise applications software market once again, as well as additional pressure and opportunities for Red Hat’s JBoss Division — and the whole open source apps community in general.

The deal, if approved, expands Oracle’s immense enterprise applications software kingdom, and should give CIOs pause before signing over their souls to Larry Ellison. Although Red Hat is still digesting its acquisition of open source middleware JBoss, as well as its appointment of a new CEO late last year, the company should move fast to capitalize on its powerful rival’s key weakness: its never ending quest to own the aps market and lock in customers.

For years, Red Hat and other open source backers have pointed to freedom and choice as the most valuable assets offered by open source. At the same time, proprietary database giant Oracle has worked feverishly to amass a virtual monopoly in the enterprise applications software market, extending its iron grip into the middleware and SOA space in an effort to lock in customers and stymie IBM, Microsoft, Red Hat and the spread of open source itself.

Make no mistake: Oracle’’s acquisition binge has put an end to the “best of breed” apps era and while irritating its traditional rivals also increasingly pits its proprietary software stack directly against the emerging open source software stack.

Sure, Oracle launched its own brand of Linux but no doubt the gesture was a not-so-veiled slap at Red Hat for buying JBoss. Any CIO who hopes Oracle will offer its most lucrative apps — including WebLogic — under the GPL or anything like it are dreaming.

The time is right for Red Hat — and other open source apps vendors — to strike a blow at Oracle and turn up the volume on ithat vendor’s lock-in strategy. The open source community has been quite vocal against Microsoft for existing at all, and yet has given Oracle a free ride. Why? Because Oracle offers its software on Linux — Microsoft’s nemesis?

Who is the real enemy of open source?

Even Microsoft has attempted to soften its stance with customers, pledging to make it software at least interoperable with leading open source offerings. Through its acquisition binge, it seems as if Oracle is trying to crush any and all prospects for emerging open source applications as well as those of proprietary rivals. Red Hat and open source companies should turn up the volume on this stratey and target nervous customers who may be tiring of the Redwood City, Calif. company’s power play.


MySQL: Sun's Billion-Dollar Baby - SUN on Business

Sun put its money where its mouth is Wednesday, with the announcement that it would buy open source database vendor MySQL for a whopping $1 billion.

f the price tag set tongues wagging, however, it was no more tantalizing than the question that immediately sprung to the minds of IT managers everywhere: Now that Sun owns MySQL, what on earth does it plan to do with it?

Sun has toyed with the idea of a database offering of its own for at least two years. But in a market where basic relational database functionality is increasingly considered a commodity, competing successfully is no mean feat, even when playing the open source card.

Certainly, Sun isn't the first to try it. In 2001, leading Linux vendor Red Hat launched its own branded version of the open source PostgreSQL database, only to scrap the project a year later after deciding that servicing and supporting a database was not its core competency. Similarly, Computer Associates opened the source of the Ingres database in hopes of becoming a one-stop shop for customers in need of an enterprise application stack, but had little luck winning market share away from the likes of IBM, Microsoft, and Oracle. CA spun Ingres off into its own company in 2005, where continues to nurture a small installed base.

In his blog announcing the MySQL acquisition Wednesday, Sun CEO Jonathan Schwartz remains characteristically effusive. "Until now, no platform vendor has assembled all the core elements of a completely open source operating system for the internet," he wrote. "No company has been able to deliver a comprehensive alternative to the leading proprietary OS."

Yet CA's and Red Hat's experiences seem to discredit the idea that a stem-to-stern platform offering from a single vendor is what customers really want. Not to mention the fact that Sun already offers enterprise support for PostgreSQL, a competing open source database that is widely perceived as being technologically superior to MySQL. Schwartz reaffirmed Sun's commitment to PostgreSQL in a conference call Wednesday, causing some analysts to speculate whether the MySQL acquisition was anything more than a billion-dollar PR stunt.

Good Will Worth the Money?

But there may be method to Sun's madness. The considerable goodwill that MySQL has cultivated among enterprise customers could have benefits for Sun that technology alone never could.

"I think the answer is simple: ubiquity," says Andy Astor, CEO of EnterpriseDB, which markets a high-performance, commercial database product based on PostgreSQL. "[Sun is] a big company; to move their needle, they need to see millions of potential users, which MySQL provides."

According to the company MySQL's own estimates, there are already some 11 million active installations of the MySQL database worldwide. What's more, MySQL is virtually the de facto standard relational database for rapid application development, particularly for the Web. In future, as these fledgling sites mature and their needs broaden, they will become natural customers for Sun's enterprise support offerings.

Sun's new role as steward of MySQL is sure to ruffle feathers in the software industry, as well -- particularly at Oracle, which, with its recent acquisitions, increasingly competes with Sun in the enterprise application platform arena. In 2005, Oracle bought Innobase, makers of a plug-in component that adds advanced features to MySQL, in what was widely perceived as a competitive swipe at the open source upstart.

For his part, MySQL CEO MÃ¥rten Mickos has repeatedly denied that his company's aim is to displace high-end databases such as Oracle's. And that's only appropriate; for those customers who demand Oracle's most advanced features, no other product will do. But Mickos's protestations verge on false modesty. On the low end, MySQL is an absolute pandemic, and it's already making headway into the mid-tier territory traditionally owned by the likes of Microsoft. That trend is only likely to accelerate with Sun's backing.

From http://www.pcworld.com/businesscenter/article/141475/mysql_suns_billiondollar_baby.html

Wednesday, January 9, 2008

World Cheapest Car From India

Tata set to launch world's cheapest car
where is Sri Lanka
New Delhi - India's giant Tata Group plans to launch the world's cheapest car early in January while also looking set to drive off with two of the poshest marques - Ford's iconic Jaguar and Land Rover brands.


Ratan Tata, head of the tea-to-steel Tata conglomerate, will unveil the "People's Car" January 10 at a New Delhi auto show that will carry a sticker price of 100 000, or $2 500, which some analysts say could revolutionise automobile costs worldwide.


And Tata, which has been on an aggressive overseas expansion drive, is also expected to win its reported $2bn bid for the British Land Rover and Jaguar brands in January - putting it in the unusual position of making two prestige cars as well as the world's lowest-cost automobile.


The cheap car, a pet project of Cornell-trained architect Ratan Tata that he helped design, is aimed at getting India's masses off their motorbikes and into cars.


"I hope to make a contribution to making life safer for them (the masses)," said reclusive tycoon Ratan Tata, who has spearheaded the growth strategy of the company known for its philanthropic values and paternal management style.


"That's what drove me - a man on a two-wheeler with a child standing in front, his wife sitting behind, add to that the wet roads - a family in potential danger," Tata, who turned 70 on Friday, said on the company website.


But despite its low price and safety factors, analysts say the four-door, five-seater could be a tough sell for Tata's vehicle arm, Tata Motors, even with an economy growing by a scorching nine percent, creating new affluence.


If motorbike owners wanted to graduate to cars, there are a lot of good second-hand cars for 100 000 rupees or less, analysts say.


'Won't be profitable immediately'


"You don't find large sections of two-wheeler owners buying second-hand cars simply because they don't find them as attractive a proposition," said Mahantesh Sabarad, analyst at Mumbai brokerage Prabhudas Lilladher.


"A two-wheeler, the most popular kind, would cost 35 000 to 40 000 rupees, so it's still a big jump up," Sabarad said, adding cars cost far more to maintain.


"It will not be an immediately profitable venture, it will take a longer time to break even - at least three years," said Angel Broking analyst Vaishali Jajoo.


Tata has said it's targeting the car at Indian and eventually other emerging markets. A Tata Motors board member recently revealed the car would get a significant 25 kilometres per litre.


"Acceleration wise, it's the same as a Maruti 800," board member RA Mashelkar said, referring to the most popular budget model made by Japanese-owned rival Maruti Suzuki that sells for $4 800.


A lot is riding on the cheap car with Tata Motors "betting large sums of money," said Sabarad.


"The projected expenditure of Tata Motors and suppliers on the project is 25 to 30 billion rupees. Half of that amount is what Tata Motors would spend."


Tata Motors is taking on the challenge at a time when its share price has slid some 20% this year due to a decline in its vehicle sales.


Analysts, meanwhile, are also wary of Tata's bid for Jaguar and Land Rover, saying a global economic slowdown would hit luxury car sales.


'New market'


"I really doubt Tata Motors can do better than Ford did with these brands over the past decade," said Sabarad.


"They're definitely not looking at a near-term view in their strategy," added Jajoo.


If the cheap car is a winner, environmentalists fear it will further congest India's clogged roads and add to choking pollution.


But Tata says the car will create no more pollution than a motorbike and is confident of its success.


"We should be able to create a new market that does not exist," said Ratan Tata, forecasting an annual market of a million cars.


Total two-wheeler sales were nearly eight million last year while car sales were around one million, said Sachin Mathur, research head at leading Indian credit rating agency Crisil.


"The cost of motorcycle ownership is three to four times lower than that for a car. That's why you won't see car sale volumes going from one million to eight million overnight," he said.


But a cheaper car "will provide some acceleration to market growth" at the same time as forcing other automakers to cut prices as well as produce cheaper cars, Mathur said.


- AFP

Sunday, January 6, 2008

The Difference



Gmail Hack Leads to Domain Theft

As recounted in Domain Name Wire, a Google Gmail hack allowed a thief to steal a domain.

The Gmail flaw, probably the one detailed here (since supposedly fixed by Google), allowed the attacker to read all of the Gmail user's mail by forcing his account to forward all e-mail to an outside address.

The domain owner/victim had a domain for which the Administrative account had a Gmail address. The thief created a support ticket on the owner's registrar (also his web host) asking for them to unlock the domain and send the transfer code. The registrar, which in this case seems to have very lax security procedures, e-mailed the information to the address on the Administrative account, meaning the Gmail account, and therefore the thief got it too. The thief took the information and transferred the domain to a GoDaddy account without the owner's knowledge.

There was a happy ending; for all of GoDaddy's flaws, they are alert and savvy enough to recognize crimes like this. The owner was able to work with them to get the domain back. Things wouldn't have been so easy if the thief had used Shady-East-European-Registrar.com.

Make sure to read the Domain Name Wire article on this event. It has good advice for domain name owners to avoid this happening to them, and some other relevant analysis.

Thursday, January 3, 2008

Leather´s New Guise

Wooww................
ASUS has made a sexy white notebook


The ASUS F8P Amazing White series is the ultimate expression of mix and match. The hand picked and crafted premium leather adds tactile warmth to the notebook design while the painted surface keeps it sleek.


Mix & Match


Mobile Multimedia, catch Your Favorite TV Programs
Equipped with a Hybrid TV tuner*, the F8 gives the user maximum versatility with the ability to take advantage of both digital and analog signals. A card type remote control is incorporated, in line with the chic portability of the F8 lifestyle, giving the user the ability to take charge of entertainment while being easily carried. *Optional feature

Choice of Advanced Technology

The new level of fusion is further complemented with state-of-the-art computing technologies, including Intel® Centrino® Duo Processor Technology and Genuine Windows Vista® operating system. In addition, with a built-in swivel webcam, video communication now goes live without wires! Get connected with friends and family and share the splendor and magic this holiday season.

Extensive Connectivity
The built-in WLAN 802.11 a/g/n ensures wireless Internet access whenever reception is available. The F8 also provides Bluetooth 2.0 EDR – an enhanced data rate that transmits three times faster than the standard Bluetooth, for increased connectivity and synchronization between digital devices. In addition, a complete range of input / output ports that includes 5 USB ports, a S-video TV-out port and express card slots will provide you with dynamic data transfer and storage options.


Portable Audio/Video Communication
Built-in accessories like the microphone and the 1.3M high-resolution Swivel webcam will make video conferencing hassle-free. Strategically placed speakers at the front end of the notebook will enhance face-to-face communications by focusing on spoken words and limiting distracting sounds.

Built-in high resolution webcam for wire-free video communication
With the built-in webcam supporting high resolution right out of the box, the F8P enables portable video conferencing without the hassle of bringing a bulky camera and tangling cables. Combined with ASUS LifeFrame2, an exclusive software program for convenient image recording, you can take group photos, film parties, see your pal´s face when chatting online and host a video conference.


RF Biometric Fingerprint Reader
The F8 series adopt the unique semiconductor based RF biometric fingerprint scanner. The RF electronic imaging mechanism reads the fingerprint pattern from the live layer of skin that lies just beneath the skins dry outer surface layer. Therefore, the sensor is less affected by common skin surface conditions, including dry, worn, calloused, dirty or oily skin,that can impair the ability of other sensors to acquire accurate fingerprint images.


ASUS Splendid Video Intelligence technology
The exclusive ASUS Splendid Video Intelligence technology is especially effective for human skin tones, green stretches of grass and trees and blue sky and sea. It takes PC graphics capability to the next level by enhancing depth and color intensity in real time. It further improves contrast, brightness, skin tone and color saturation for vivid image display. Incorporated with the exclusive ASUS Splendid Video Intelligence Engine (activation hot key: Fn+C), the LCD presents clear and sharp images in their true vibrant colors.

Tuesday, January 1, 2008

Will Java Be the next COBOL

Computer and IT is the fastest developing sector in this world.
It change so fast....... one day you go to sleep and next day when you wake up in the morning everything has change
that's the speed of this sector

Computer world has experienced so many rich languages in her small history.
COBOL, C were one of the most prominent of those and today carry a big legacy record.
In the present JAVA and .NET play a big competitive role in the programming environment.


But for how long will they survive ?????????

This is what world says about JAVA


Java, the oldest new programming language around, is falling out of favor with developers. When it comes to developing the increasingly common rich Internet applications, Java is losing ground to Ruby on Rails, PHP, AJAX and other cool new languages. And there are even reports that Microsoft’s .Net, of all things, is pushing Java out of the enterprise. Makes you wonder whether Sun was smart to change its stock-ticker code to JAVA last summer.

Simply put, developers are saying that Java slows them down. “There were big promises that Java would solve incompatibility problems [across platforms]. But now there are different versions and different downloads, creating complications,” says Peter Thoneny, CEO of Twiki.net, which produces a certified version of the open source Twiki wiki-platform software. “It has not gotten easier. It’s more complicated,” concurs Ofer Ronen, CEO of Sendori, which routes domain traffic to online advertisers and ad networks. Sendori has moved to Ruby on Rails. Ronen says Ruby offers pre-built structures — say, a shopping cart for an e-commerce site — that you’d have to code from the ground up using Java.

Another area of weakness is the development of mobile applications. Java’s UI capabilities and its memory footprint simply don’t measure up, says Samir Shah, CEO of software testing provider Zephyr. No wonder the mobile edition of Java has all but disappeared, and no wonder Google is creating its own version (Android).

These weaknesses are having a real effect. Late last month, Info-Tech Research Group said its survey of 1,850 businesses found .Net the choice over Java among businesses of all sizes and industries, thanks to its promotion via Visual Studio and SharePoint. Microsoft is driving uptake of the .Net platform at the expense of Java," says George Goodall, a senior research analyst at Info-Tech.

One bit of good news: developers and analysts agree that Java is alive and well for internally developed enterprise apps. “On the back end, there is still a substantial amount of infrastructure available that makes Java a very strong contender,” says Zephyr’s Shah


The Bottom Line: Now that Java is no longer the unchallenged champ for Internet-delivered apps, it makes sense for companies to find programmers who are skilled in the new languages. If you’re a Java developer, now’s the time to invest in new skills.





convert a String to a long with Java?

public class s2l {

public static void main (String[] args) {

// String s = "fred"; // do this if you want an exception

String s = "100";

try {
long l = Long.parseLong(s.trim());
System.out.println("long l = " + l);
} catch (NumberFormatException nfe) {
System.out.println("NumberFormatException: " + nfe.getMessage());
}

}






Other notes

  • Long.toString(long l) is used to convert in the other direction, from long to String.
  • If you're interested in converting a String to a Long object, use the valueOf() method of the Long class instead of the parseLong() method.



}

Convert Long to Date & String to Date

long amal = 11891;
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");

try
{
Date today = df.parse("20/12/2005");
System.out.println("Today = " + df.format(today)+ "*********");
System.out.println( "long = "+ df.format( new Date(amal)) );
} catch (ParseException e)
{
e.printStackTrace();
}

How do I convert String to Date object in Java

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import java.util.Date;

public class StringToDate
{
public static void main(String[] args)
{
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");

try
{
Date today = df.parse("20/12/2005");
System.out.println("Today = " + df.format(today));
} catch (ParseException e)
{
e.printStackTrace();
}
}
}