Thursday, August 30, 2007
Wednesday, August 29, 2007
Google Phone Confirmed By HTC Insider

On the software side, they're going to build a special version of Google Maps (complete with GPS), as well as have Gmail and Calendar compatibility. It's most likely going to have Google Docs compatibility too, but that wasn't specified. What's even cooler is that Google Talk, their free VoIP app, will be part of the suite. The OS could be Windows Mobile 6, or it could be a Linux-based OS, which would be even more interesting
Labels: Google, Google Phone
Friday, August 24, 2007
IPHONE
http://www.engadget.com/2007/08/24/iphone-unlocked-atandt-loses-iphone-exclusivity-august-24-2007/
ATLAST
ATLAST
Thursday, August 23, 2007
Principle of Software Development
I have list down some principles of software development which I have learned from my previous experience with projects,people and books.
1. Quality is #1: "Just say no" when you are asked to speed up testing, ignore few bugs, or code before agreeing on a set of requirements.
2. Production and quality are inversely related. Higher the quality lower the production and vice versa.
3. Never loose sight with customers/users: It is very important to understand the actual need of the software
4. Prioritize Requirements
5. Use strict penalty for late delivery
6. Build the right feature in prototype
7. Changes during development is inevitable
8. Don't ignore technology
9. Use Documentation standard
10. Poor requirement mean poor cost/time estimation
11. Don't reinvent the wheel
12. Keep it Simple
13. Developers cannot be testers
14. Good management is more important then good technology
15. Don't set unrealistic deadlines
16. Save Everything
Although we are in Web world but I had referred everything as software in above statements
1. Quality is #1: "Just say no" when you are asked to speed up testing, ignore few bugs, or code before agreeing on a set of requirements.
2. Production and quality are inversely related. Higher the quality lower the production and vice versa.
3. Never loose sight with customers/users: It is very important to understand the actual need of the software
4. Prioritize Requirements
5. Use strict penalty for late delivery
6. Build the right feature in prototype
7. Changes during development is inevitable
8. Don't ignore technology
9. Use Documentation standard
10. Poor requirement mean poor cost/time estimation
11. Don't reinvent the wheel
12. Keep it Simple
13. Developers cannot be testers
14. Good management is more important then good technology
15. Don't set unrealistic deadlines
16. Save Everything
Although we are in Web world but I had referred everything as software in above statements
Labels: Principle, Remember, Software Development
How to install SVN Server
http://www.excastle.com/blog/archive/2005/05/31/1048.aspx
http://sourceforge.net/project/downloading.php?groupname=tortoisesvn&filename=TortoiseSVN-1.4.4.9706-win32-svn-1.4.4.msi&use_mirror=internap
I downloaded following file first:
http://subversion.tigris.org/files/documents/15/36797/svn-1.4.3-setup.exe
Please install version controlling on our local server. Also tell me can we install the SVN on our webserver?
http://sourceforge.net/project/downloading.php?groupname=tortoisesvn&filename=TortoiseSVN-1.4.4.9706-win32-svn-1.4.4.msi&use_mirror=internap
I downloaded following file first:
http://subversion.tigris.org/files/documents/15/36797/svn-1.4.3-setup.exe
Please install version controlling on our local server. Also tell me can we install the SVN on our webserver?
Labels: SVN, Version control
Ruby On Rail Edge
Tutorial today was not as good as I was expecting. Although there is always things to learn.
Labels: conference, Ruby on rail, USA
Another claim to unlock iPhone in next 48 hours
http://www.iphonesimfree.com/
Mansi:
Go to the college. See the guy who claim he has iPhone, See it with your eyes and also ask him if you can make a call with it. Ask the proce he paid.
In USA they are fighting to unlock iPhone and still not able to.
Mansi:
Go to the college. See the guy who claim he has iPhone, See it with your eyes and also ask him if you can make a call with it. Ask the proce he paid.
In USA they are fighting to unlock iPhone and still not able to.
Labels: iphone
Friday, August 17, 2007
Innovation
http://www.dancewithshadows.com/autoindia/tata-mdi-compressed-air-car.asp
See this its awesome thing... although related to quite an old story about a mini car, but this will seriously bring a REVOLUTION. It will cost JUst RS 90 per 150200 KM.....
WOWW MAN!!
See this its awesome thing... although related to quite an old story about a mini car, but this will seriously bring a REVOLUTION. It will cost JUst RS 90 per 150200 KM.....
WOWW MAN!!
Post a Comment(2 comments)
Problem with Skype
http://heartbeat.skype.com/2007/08/problems_with_skype_login.html
"UPDATED 14:02 GMT: Some of you may be having problems logging into Skype. Our engineering team has determined that it’s a software issue. We expect this to be resolved within 12 to 24 hours. Meanwhile, you can simply leave your Skype client running and as soon as the issue is resolved, you will be logged in. We apologize for the inconvenience.
Additionally, downloads of Skype have been temporarily disabled. We will make downloads available again as quickly as possible."
"UPDATED 14:02 GMT: Some of you may be having problems logging into Skype. Our engineering team has determined that it’s a software issue. We expect this to be resolved within 12 to 24 hours. Meanwhile, you can simply leave your Skype client running and as soon as the issue is resolved, you will be logged in. We apologize for the inconvenience.
Additionally, downloads of Skype have been temporarily disabled. We will make downloads available again as quickly as possible."
Thursday, August 16, 2007
MySql DeadLock!!!!
I was thinking before that i will never find situations like deadlock. But today i get trapped
What happened i was working in mysql while restoring database from backup "which was in write lock" i found need to kill the process. when i do so "kills the process but never release lock" database become of no use because i cant run query "use table" here how i solve it
try 1.
i run the mysql with -A option
now i was able to use table but even execution of query "unlock tables" was not solution as other queries was already in process
try 2
i try to find which queries are in process and which process is holding lock
ps was of course not a solution
so i found "show processlist" which give me all details about the queries in queue with pid now simply typing kill from sql prompt solves the problum
What happened i was working in mysql while restoring database from backup "which was in write lock" i found need to kill the process. when i do so "kills the process but never release lock" database become of no use because i cant run query "use table" here how i solve it
try 1.
i run the mysql with -A option
now i was able to use table but even execution of query "unlock tables" was not solution as other queries was already in process
try 2
i try to find which queries are in process and which process is holding lock
ps was of course not a solution
so i found "show processlist" which give me all details about the queries in queue with pid now simply typing kill
Wednesday, August 8, 2007
OOXML
http://en.wikipedia.org/wiki/Office_Open_XML
Hey please tell me about this!
And also like to know why all of the major IT companies are denying to Accept this new thing!
Hey please tell me about this!
And also like to know why all of the major IT companies are denying to Accept this new thing!
Wealthiest Man!!
You know Who is the new Wealthiest Man of the World ??
BILL GATES, naaaaa. Its Carlos Slim Helu, the founder of America Movil a Mexican Telecom company has a staggering worth of $59 Billion .
Fortune said Slim's companies ranging from a restaurant chain to a bank, made up a third of the Mexican stock market and his family's holdings represented more than 5% of Mexican GDP last year.
WHO"S NEXT??? ;-)
BILL GATES, naaaaa. Its Carlos Slim Helu, the founder of America Movil a Mexican Telecom company has a staggering worth of $59 Billion .
Fortune said Slim's companies ranging from a restaurant chain to a bank, made up a third of the Mexican stock market and his family's holdings represented more than 5% of Mexican GDP last year.
WHO"S NEXT??? ;-)
Labels: WORLD NEWS
Windows server 2003 Backdoor
By default a Windows 2003 Server does only allow 2 simultaneous terminal server connections for remote management. "Log Off" closes the Session and releases the connection, but "Disconnecting" such as hitting the "X" to close the Remote Desktop Client leaves your session running and leaves your connection active, so that you can reconnect if your connection information hasn't changed. But what to do if your connection information has changed and you can't reconnect and the second connection is also not available?
There is one backdoor which can be used. Since Windows 2003 there is a little known feature which helps in a "too many connections" situation. The Remote Desktop client offers an option which allows you to connect to the console. This gives you a 3rd connection. If someone is logged into the console you have to have the sufficient permissions then the session will be logged out and you can log in. If nobody is logged into the console it will let you log in.
Start -> Run -> CMD
mstsc -v:x.x.x.x /console
x.x.x.x IP of server
You will be logged in to server as normal and if you want to disconnect the bad sessions simpley on end task click on user , select user you want to disconnect and click disconnect
Older versions of the client (i.e. windows 2000) seem to ignore the -v and pop up a connection window. Use the IP number, not the hostname, to start the connection. You will continue to get the too many services error if you use the hostname.
There is one backdoor which can be used. Since Windows 2003 there is a little known feature which helps in a "too many connections" situation. The Remote Desktop client offers an option which allows you to connect to the console. This gives you a 3rd connection. If someone is logged into the console you have to have the sufficient permissions then the session will be logged out and you can log in. If nobody is logged into the console it will let you log in.
Start -> Run -> CMD
mstsc -v:x.x.x.x /console
x.x.x.x IP of server
You will be logged in to server as normal and if you want to disconnect the bad sessions simpley on end task click on user , select user you want to disconnect and click disconnect
Older versions of the client (i.e. windows 2000) seem to ignore the -v and pop up a connection window. Use the IP number, not the hostname, to start the connection. You will continue to get the too many services error if you use the hostname.
Sample .mac web gallery
http://gallery.mac.com/emily_parker
I am sure we can learn/Copy lots of stuff out of this.
Some initial thoughts,
1. I notice they are not calling events every time the scrollbar is moved rather they resize the image after every n sec on the basis of the current scroller size. This way they do not make script heavy. I like the idea.
2. No Flash
3. I really found the mosaic view useful.
4. I love the way they had implemented the album viewing with changing pictures with little scrollbar movements. Love that. I had never seen that before in a web application.
5. Either you do a right click or left on an image, it brings the image to full size.
6. Overlay to write comments on the image. Also notice the shadow created by overlay itself
am very excited to open this on iPhone Safari browser and see the result. I am sure it will run on it.
FYI following are the major library used in iWeb:
http://gallery.mac.com/g/javascripts/prototype.js 94912Bytes
http://gallery.mac.com/g/javascripts/scriptaculous.js 125549Bytes
http://gallery.mac.com/g/javascripts/sproutcore.js 199759Bytes
http://gallery.mac.com/g/javascripts/dotmac.js 32285Bytes
http://gallery.mac.com/g/javascripts/gallery.js 414604Bytes
Total: 846 KB
Also if you noticed they are using scriptaculus and prototype.js
Hardeep: I am sure this will be a very good benchmark to our RIG. What do you think?
I am sure we can learn/Copy lots of stuff out of this.
Some initial thoughts,
1. I notice they are not calling events every time the scrollbar is moved rather they resize the image after every n sec on the basis of the current scroller size. This way they do not make script heavy. I like the idea.
2. No Flash
3. I really found the mosaic view useful.
4. I love the way they had implemented the album viewing with changing pictures with little scrollbar movements. Love that. I had never seen that before in a web application.
5. Either you do a right click or left on an image, it brings the image to full size.
6. Overlay to write comments on the image. Also notice the shadow created by overlay itself
am very excited to open this on iPhone Safari browser and see the result. I am sure it will run on it.
FYI following are the major library used in iWeb:
http://gallery.mac.com/g/javascripts/prototype.js 94912Bytes
http://gallery.mac.com/g/javascripts/scriptaculous.js 125549Bytes
http://gallery.mac.com/g/javascripts/sproutcore.js 199759Bytes
http://gallery.mac.com/g/javascripts/dotmac.js 32285Bytes
http://gallery.mac.com/g/javascripts/gallery.js 414604Bytes
Total: 846 KB
Also if you noticed they are using scriptaculus and prototype.js
Hardeep: I am sure this will be a very good benchmark to our RIG. What do you think?
Tuesday, August 7, 2007
innoDB
innodb Tuning
http://forums.mysql.com/read.php?22,154582,158481
innoDB v/s MyISAM
http://en.wikipedia.org/wiki/InnoDB
http://forums.mysql.com/read.php?22,154582,158481
innoDB v/s MyISAM
http://en.wikipedia.org/wiki/InnoDB
three must conditions for setting forign key
In order to set up a foreign key relationship between two MySQL tables, three conditions must be met:
- Both tables must be of the InnoDB table type.
- The fields used in the foreign key relationship must be indexed.
- The fields used in the foreign key relationship must be similar in data type.
The indepth of Random
generate a bit string using Random(0,1) (the length of the bit string should be ceil (lg(b-a+1)) )...
e.g. random(3,8) means we have to generate a random bit string of length ceil lg 6 which is 3... now if the decimal value of the generated bit string is > 8-3 (i.e if the bit string is either 111, 110) then repeat the procedure... finally return 3 + [decimal val. of generated bit string]...
random(a,b)
{
int dec_val = b-a+1;
while(dec_val > b-a)
{
dec_val = 0;
for j = 1 to ceil(lg(b-a+1))
dec_val = 2*dec_val + random(0,1)
}
return dec_val+a;
}
expected running time calculation: here n is b-a+1
T(n) =
Pr{getting past while loop first time}*lg n
+ Pr{getting past while loop after 2 try}*(2 lg n) + .....
Pr{getting past while loop first time}
= Pr{bit string of length ceil(lg(b-a+1)) has value <= b-a}
= p
now p >= 0.5 (can u see why?)
therefore 0.5 <= p <= 1 and p can be computed but we don't need its value to perform the asymptotic analysis...
T(n) = p(lgn) + (1-p)p(2lg n) + (1-p)^2*p(3 lg n) + .....
= p(lg n)(1 + 2(1-p) + 3(1-p)^2 + 4(1-p)^3 + ... )
now 1 + 1-p + (1-p)^2 + (1-p)^3 + .... = 1/p
differentiating w.r.t p we get 1 + 2(1-p) + 3(1-p)^2 + ... = 1/p^2
therefore T(n) = (lg n)/p
which is O(lg n) or O(lg (b-a+1)) (since 0.5 <= p <= 1, that is p cannot be arbitrarily small)
e.g. random(3,8) means we have to generate a random bit string of length ceil lg 6 which is 3... now if the decimal value of the generated bit string is > 8-3 (i.e if the bit string is either 111, 110) then repeat the procedure... finally return 3 + [decimal val. of generated bit string]...
random(a,b)
{
int dec_val = b-a+1;
while(dec_val > b-a)
{
dec_val = 0;
for j = 1 to ceil(lg(b-a+1))
dec_val = 2*dec_val + random(0,1)
}
return dec_val+a;
}
expected running time calculation: here n is b-a+1
T(n) =
Pr{getting past while loop first time}*lg n
+ Pr{getting past while loop after 2 try}*(2 lg n) + .....
Pr{getting past while loop first time}
= Pr{bit string of length ceil(lg(b-a+1)) has value <= b-a}
= p
now p >= 0.5 (can u see why?)
therefore 0.5 <= p <= 1 and p can be computed but we don't need its value to perform the asymptotic analysis...
T(n) = p(lgn) + (1-p)p(2lg n) + (1-p)^2*p(3 lg n) + .....
= p(lg n)(1 + 2(1-p) + 3(1-p)^2 + 4(1-p)^3 + ... )
now 1 + 1-p + (1-p)^2 + (1-p)^3 + .... = 1/p
differentiating w.r.t p we get 1 + 2(1-p) + 3(1-p)^2 + ... = 1/p^2
therefore T(n) = (lg n)/p
which is O(lg n) or O(lg (b-a+1)) (since 0.5 <= p <= 1, that is p cannot be arbitrarily small)
Monday, August 6, 2007
MySQL
I have configured the mysql data directory to /mnt/mysql_db
You can immediately start insert to the database. It will automatically stored in the mnt folder
To install mysql
type : yum install mysql php-mysql mysql-server
To find config file
whereis my.cnf
To modify data directory
Edit my.cnf
To check disk space
use : df or du
You can immediately start insert to the database. It will automatically stored in the mnt folder
To install mysql
type : yum install mysql php-mysql mysql-server
To find config file
whereis my.cnf
To modify data directory
Edit my.cnf
To check disk space
use : df or du
Labels: ec2, lifeshadow, mysql, unix
Sunday, August 5, 2007
Simple hash function
h(x) = sum( a[0] + a[1] + ... a[n-1] )
-allowing overflow
then bucket = h(x) / prime number near 5 million
use linked list off has table of 5 million buckets...
like struct {
KEY char[21]
PVOID next; 4 byte pointer
}
generate random 10 million 20 char 'KEYS' ... it doesn't matter if they are
readable...just 0..255 in value per BYTE.
I'll want to review the code after your test.
We should get 1 million / second or higher...just my guess.
This should be in C/C++ not C# or other.
-allowing overflow
then bucket = h(x) / prime number near 5 million
use linked list off has table of 5 million buckets...
like struct {
KEY char[21]
PVOID next; 4 byte pointer
}
generate random 10 million 20 char 'KEYS' ... it doesn't matter if they are
readable...just 0..255 in value per BYTE.
I'll want to review the code after your test.
We should get 1 million / second or higher...just my guess.
This should be in C/C++ not C# or other.
Labels: c, hashing, lifeshadow, todo


