Tuesday, December 14, 2010
A simple google homepage!!!
Long ago, I was wondering why GOOGLE, which is the biggest search giant, has such a simple HOMEPAGE. The reason for it is that the GOOGLE founders SERGEY BRIN and LARRY PAGE didn't know HTML in 1998, when they found google and they didn't have a webmaster also for this at that time. So they designed a simple home page for google with HTML tags and thats why Google's homepage has always been simple.. :)
Saturday, November 6, 2010
long long int a[1000000000] !!!
So today when i was coding for a problem on a website, I encountered an error by declaring
long long int a[1000000000];
I was compiling through C++(4.3.2)..
and the error was size of array 'a' is too large
Now the thing is "long long int"is like 8 bytes and 10^9*8 is nearly equal to 8GB and this space couldn't be allocated by compiler..the funda behind it is that the memory allocated by a compiler is allocated on either stack or heap..Whenever we allocate on heap then it depends on the memory we have and in case of stack it depends on size of STACK FRAME..so the above declaration tries to allocate memory on stack but its size is insufficient to handle it..
long long int a[1000000000];
I was compiling through C++(4.3.2)..
and the error was size of array 'a' is too large
Now the thing is "long long int"is like 8 bytes and 10^9*8 is nearly equal to 8GB and this space couldn't be allocated by compiler..the funda behind it is that the memory allocated by a compiler is allocated on either stack or heap..Whenever we allocate on heap then it depends on the memory we have and in case of stack it depends on size of STACK FRAME..so the above declaration tries to allocate memory on stack but its size is insufficient to handle it..
Sunday, October 31, 2010
Problem in updating a column of type string of a db in matlab
Hey guyzz
I am facing a problem in MATLAB..
I have a column named 'address' of type text in 'Table1' and the its an MS ACCESS database...Now i want to update the row where roll=3 with the string 'hell' in matlab.....i m using the following command...
update(connA,'Table1',{'address'},{hell},'where roll=''3''');
Now it is giving the error as
??? Error using ==> database.update at 180
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
Error in ==> db at 96
update(connA,'Table1',{'address'},{hell},'where roll=''3''');
Will post the solution as soon as i get to know..:
Thursday, October 28, 2010
My First blog!!!!!!!!!!!
Hey guyzz this my first post here...Yeah i am a final year student at Delhi college of engineering with BE in Information Technology...I am building interest in blogging and i will keep posting about some of difficulties faced by me in technical areas and there solutions and other stuff...Hope u enjoy my posts and my blog :) :)
Subscribe to:
Posts (Atom)