C++ program to calculate tomorrow’s date

Q. How do I write C++ program that calculate tomorrow’s date? For example user input a date 30/03/2007, then it should print 31/03/2007. Your program must take care of following issues:
=> Leap year
=> Validate date for month, day etc
=> Change of date/month/year should be handled properly.
Continue reading “C++ program to calculate tomorrow’s date”

Windows Vista File System Virtualization

This looks neat and claver solution for Windows Vista.

One of the security features within Windows Vista that is not evident is file system virtualization. This type of virtualization allows an application a silo’d virtual store where it can read and write to without compromising the system.

Let’s say you have an appication that attempts to write to System32. Instead of allowing the application to do so, Vista creates a virtual System32 in the user’s profile that the application will use. Application developers can code their applications to automatically run virtualized or you can set this manually. IE7 running in protected mode utilizes this functionality so when you visit a webpage that tries to insert a file into the Startup folder, it instead is placed in the virtual startup folder and will not execute upon the next boot. Let’s look at a simple example.

File System Virtualization

Meet the worst spam offender – indiatimes.com

I tried all different methods to contact them to remove my email ID from their database but nothing worked out so far. I never subscribed to any of their website sections, but still receives email from so called MNCs. I tried to contact them using

a) Online contact form
b) Email extracted from whois indiatimes.com (it was also bounced back)

Here is the list of companies who have used their shity spammy service
a) IBM/ Lenovo Desktop/Laptop
b) HP
c) UTI Bank and many others to send spam

I’m going to block entire indiatimes.com domain on my mail server. Sorry if you use indiatimes email id I suggest Gmail / Yahoo free email service or setup your own mail server. We don’t have very good spam laws here.

AOL India launches its portal – WWW.AOL.IN

My friend told me about AOL India portal.

According to their site statement:

AOL India provides products and services ranging from the renowned AOL Messenger and free e-mail to compelling content that includes News, comprehensive coverage of Cricket, Bollywood, Hollywood, International Music and scintillating ringtones. AOL India especially caters to the informational needs of Kids and students; not to forget sage advice from Gurus from around the world.

The first thing I’ve noticed that it is not all compatible with Firefox. Many things are not rendered correctly. They need to fix this issue as well as add more content. AOL India has city guide.

AOL India launches its portal

Visit AOL India Online.

Use Windows Vista ReadyBoost Feature with any USB drive

For those who aren’t keen on opening up their PC to put in more memory, Windows Vista has a handy little feature called ReadyBoost that can use USB sticks for additional memory.

From the article:

Sooner or later, everyone’s computer tends to slow down. Call it old age or simply doing too much, but even the most cutting edge PC’s seem to lag after a year or so of use.

Unfortunately, Windows Vista doesn’t take kindly to the slower sticks on the market and refuses to use them. Proving once again that we control the computer and not the other way around, here’s four simple steps to get around this limitation and use any USB stick you have to increase your computers memory.

Use any USB stick to ReadyBoost your computer

Earth like planet found in Habitable Zone capable of having liquid water

Astronomers find first earth-like planet in habitable zone, outside our Solar System to date, an exoplanet with a radius only 50% larger than the Earth and capable of having liquid water. Using the ESO 3.6-m telescope, a team of Swiss, French and Portuguese scientists discovered a super-Earth about 5 times the mass of the Earth that orbits a red dwarf, already known to harbour a Neptune-mass planet. The astronomers have also strong evidence for the presence of a third planet with a mass about 8 Earth masses.
The Planetary System Around Gliese 581
(Artist’s impression of the planetary system around Gliese 581. Courtesy ESO.)

But remember, Gliese 581 is cooler than the Sun, so at this distance the planet would actually be very temperate: models show it would be between 0 and 40 Celsius! If that doesn’t grab you, then consider this:

That is warm enough for water to be a liquid.

20 Light year away, a place just like home

Earth facts:

  • Temperature : -88 c to 58 c
  • Rotation : 24 hours
  • Home of many species

GL 581 c Facts:

  • Temperature : 0 c to 40 c
  • Rotation : Unknown
  • Doe anybody lives there? – No idea but it had habitable conditions for millions of years, I guess. The surface could be rocky with large oceans.

So what we may have here is a terrestrial planet with liquid water on its surface.

Read more

Rare Borneo rhino video and pictures

A video camera trap positioned inside the jungle has captured rare footage of an elusive Borneo rhino, WWF and Malaysia’s Sabah Wildlife Department announced today.

Very few rhinos now survive outside protected areas. Several rhinoceros species became extinct within geologically recent times, notably the Giant Unicorn and the Woolly Rhinoceros in Eurasia; the extent to which climate change or human predation was responsible is debated. Current evidence indicates that they probably had survived many climate changes before modern man arrived. Scientists estimate there are only between 25 and 50 rhinos left on the island of Borneo

Rare Borneo rhino video and pictures

The 2 minute video — showing the animal eating, walking to the camera and sniffing the equipment – is the first-ever footage of observing the behavior in the wild of one of the world’s rarest rhinos.

WWF captures extraordinary video of rare Borneo rhino

High Speed Internet 2 Record Set At 9.08 Gbps

University Corporation for Advanced Internet Development) is a non-profit consortium which develops and deploys advanced network applications and technologies, for education and high-speed data transfer purposes. International Team Lead by the University of Tokyo sets two new consecutive IPv6 records and speed transfer record. The entire network route used in this experiment is IPv6, Jumbo-frame capable.

Operators of the high-speed Internet2 network announced Tuesday that the researchers on Dec. 30 sent data at 7.67 gigabits per second, using standard communications protocols. The next day, using modified protocols, the team broke the record again by sending data over the same 20,000-mile path at 9.08 Gbps.

Dr. Kei Hiraki, professor at the University of Tokyo and LSR team leader said:

These records are final for the 10Gbps network era because they represent more than 98% of the upper limit of network capacity. Through collaboration by a number of institutions, we have demonstrated the ability to overcome the distance and achieve this newest mark.

More info available here. You can see MRTG graphs along the network route here