Saturday, March 15, 2008

Battery Problems



In the past two years, more than 10 million lithium ion batteries for laptop computers have been recalled following concerns they were defective, including those in machines made by Dell, Apple, Toshiba, Lenovo, and Sony.

Various companies declared this Problem officially and replaced them a great example NOKIA

Apple computers
iPod Nano has caught fire unexpectedly a person claimed that his one-and-a-half-year-old iPod Nano caught fire while in his pocket and burned for 15 seconds. Apple is still investigating the incident also a claim
iPod devices apparently shot out sparks while being recharged by its owner in Japan.

http://technology.timesonline.co.uk/tol/news/tech_and_web/article3537454.ece

Friday, March 14, 2008

Google Sky

Google sky now in web interface.

Google Sky

Thursday, March 13, 2008

AIRTEL site has been hacked

Do you know friends, the AIRTEL site (airtel.com) has been hacked, when I opened the airtel.com site the VODAFONE site opens. I am observing these since two days. So, check these out friends.

Monday, March 10, 2008

Difference Between PHP and PHP CLI

Contrary to popular belief, PHP is not just a web server language. PHP can also be used to create regular programs. PHP can be used to create GUI applications, shell scripts, and even daemons, among other things.

The boon is that all (or most) of the usual PHP libraries are available to your PHP CLI program too. MySQL, XML, etc. It's all (or mostly) still available.



Difference Between PHP and PHP CLI

There are some important differences between server-side PHP and PHP CLI. Here's a list of them:

1. There is no $_GET super global array.
2. There is no $_POST super global array.
3. There is no $_COOKIE super global array.
4. When you do a print, the output goes to the standard output and not a web browser.
5. You can get command line arguments via the $argv variable.
6. You can get the number of command line arguments via the $argc variable.


eg:
<?php
print('ARGC = ' . $argc ."\n\n");
foreach ($argv as $k=>$v) {
print("ARGV[$k] = $v\n");
}
?>

on command line
php test1.php apple orange banana pineapple

output
ARGC = 4

ARGV[0] = test1.php
ARGV[1] = apple
ARGV[2] = orange
ARGV[3] = banana
ARGV[4] = pineapple

Saturday, March 8, 2008

Embed Media Player for web Site

Windows Media Player Object Model Reference

Working in IE6 and IE7

<OBJECT ID="Player" width="0" height="0"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<embed type="application/x-mplayer2" id="Player"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"
width="0" height="0" src="song.mp3"
filename="1.mp3" autostart="False"
showcontrols="True" showstatusbar="False"
showdisplay="False" autorewind="True"></embed>
</object>

Method and Properties :-
Player.playState // to get The State of Player (Play,Pause or stop)
Player.controls.play() //to Play
Player.controls.pause() //to Pause
Player.controls.stop() //to Stop
Player.controls.currentPosition //to get Current Postion of File
Player.currentMedia.duration //to get Length of the file


Please Find More Information : -
http://msdn2.microsoft.com/en-us/library/bb249259(VS.85).aspx
http://msdn2.microsoft.com/en-us/library/bb249259%28VS.85%29.aspx> // for Settings object
http://msdn2.microsoft.com/en-us/library/bb262747(VS.85).aspx // for Media Object
http://msdn2.microsoft.com/en-us/library/bb249349(VS.85).aspx // for Player Object

Friday, March 7, 2008

Apple realease IPhone SDK

As you all know Apple just released there iPhone SDK. I was very excited to see it and see what its capability it.

Here are some notes I have gathered while watching iPhone SDK development videos.

iPhone SDK

Development tools in SDK
  • Xcode is the IDE
    • iPhone Management : Making your iphone for development. TEsting with different version
    • Coding
    • Building and Debugging
    • Analysis
  • Instruments: Debugger/tracing
  • Dashcode: Something related to Web applications. ??????
  • Simulator: Run and debug application without iphone





Core OS/Services: fundamental System Services. LibSystem Library

  • Media: Audio/video/Graphic Technology
  • Graphics
    •  Quartz
    •  Core Animation
    •  OpenGL ES


Cocoa Touch
  •  UIKit framework: For controls/Video/Accelerometer
  •  Addressbook framework
  •  Addressbook UI framework
 
 


*Right now Interface Builder is missing in SDK




I took some screenshot of the demo for reference.