Thursday, July 24, 2008

Artistik Expressionz on Eniac '08

    Eniac '08 is a national level technical symposium being organised by the Electrical & Electronics department of Govt. Rajiv Gandhi Institute of Technology, Kottayam.

   Ae got the opportunity for designing the poster, brochure,flex, website and logo for the event. Most of the work is completed by now.

  For further information go to http://www.eniac08.com

Check back for updated info.

Calculate File size with C++

Programming .....

  The following is a C++ program to calculate file size of a file. It has been tested to correctly report file sizes upto 4Gb, ofcourse used 32 bit compiler!

--Begin--

/* getFileSize.cpp
 * Gets the file size of a DiskFile
 *
 * Midhun Hk (Centrum inc Software Solutions)
 * July 2008
 * $ v 0.1
 **/

# inculde <ifstream>
# include <iostream>

void main()
{
    ifstream is;
    unsigned long fileSize = 0L;

    is.open("FileName.bin");   // Open the file
    if(is.good())                    // If file is opened successfully
    {
           // calculate FileSize
           is.seekg(0,ios::end); // move 0 bytes from end
           fileSize = is.tellg();   // get offset
           is.seekg(0,ios::beg); // rewind
     }

      cout<<"File Size is : "<<fileSize<<:" bytes";
}

--End--

Hope this has been useful.

Monday, July 21, 2008

Restarting IIS Service , Installation of IIS after dot net

   This is a technical post that i guess most dot net developers might find useful. I was looking for this for a long time and had to do a lot of time wasting techniques to get stuff sorted out earlier.

   If you are trying to do some ASP.NET programming, and if for some reason installed the IIS Server (Internet Information Services) after installing Visual Studio, the web application would not run. I did this using Microsft Visual Studio.net 2003, so dont know about what differences there are in this respect with 2005 and 2008.

   In this scenario, i was told to uninsatll IIS and Visual Studio, restart the PC, Install IIS first and then the Visual Studio. This was so time consuming and this was the scenerio in our college lab. So most of my classmates had to do this tedious process when they had to run their mini projects. The problem was aggrevated with the lab having only 2 CD Drives.

  Ok, so whats the solution? There is an application called "Administration Utility". It manages the installation and uninstallation of multiple versions of ASP.NET on a single machine.

   Located in the directory "%windir%\Microsoft.NET\Framework\v1.1.4322", where %windir% points to your windows installation dirtectory like c:\winnt\ or d:\windows\

  If multiple versions of the framework are insatlled, you can see various directories in the Framework folder with the version numbers of the frameworks.

  Open up the command Prompt and reach this directory, use

      cd "%windir%\Microsoft.NET\Framework\v1.1.4322" 

at the command prompt to reach there.

Okay, now you need to invoke the application named "aspnet_regiis.exe". This is the administration utility and is command oriented.

If you type "aspnet_regiis" at the command prompt, it will display the syntax to use. Of them the first two may be of interest.

 -i - Install this version of ASP.NET and update scriptmaps
  at the IIS metabase root and for all scriptmaps below
  the root. Existing scriptmaps of lower version are
  upgraded to this version.

 -ir - Install this version of ASP.NET, register only. Do
  not update scriptmaps in IIS.

So you may use  

    aspnet_regiis -i

or

    aspnet_regiis -ir

to do the job.

Hope this has been useful, :)

Friday, June 20, 2008

Liverpool vs Arsenal - UEFA CL quarter Final 2008

   Yes it was heart break at the end, but it was a match in which the young Theo matured and showed all his doubters that he is a world class player. It all happened at Anfield on 7th April 2008, in the second leg of the champions league quarter final match. 

   Liverpool were ahead after scoring an away goal at the Emirates in the first leg although the score was 1-1, they needed just a draw to secure their birth semi finals. I knew they would play shitty football to ensure this, and thats what Liverpool did. 

   Arsenal had massive amounts of possession, but lacked the cool finish and Liverpool players were all over in the box with just one or two players near the middle line. Some time into the second half and the score was 2 - 1 to Liverpool . We were losing although playing beautiful football. Some refereeing decisions did go against us.

   Then in the second half, Arsene Wenger introduced "Theo Walcott" hoping he would be able to make the same effect as he had done at San Siro when we beat AC Milan at their home 0 - 2, thanks to a howler from Cesc and the second was crafted by Theo giving an incisive pass to Adebayor....

    What hapened that night at Anfield?

"Theo Walcott gets past atleast four Liverpool players and then finishes his remarkable run with the perfect assist to Adebayor!"

   Watch the video for words cannot really explain the class.







http://www.youtube.com/watch?v=l-jaLTCRAMY

Sunday, June 01, 2008

New favicon for Google!

      Hey Google have changed their favicon. For those new to this term,a favicon is a small 16X16 image that is displayed next to the address of the site and propably seen in Opera and Firefox. Blogger has a kindof B in its favicon. It is just a graphic used to associate something with a site.

       Google had been sporting this image as their favicon for a long time. It consisted of a capital G surrounded by four lines that make a box with different colors (those of the Google logo).


     It had a sort of corporate mean look to it. And it also looks boring and a bit complex with the different colors and all. So i guess the google developers have finally decided that its time to change.. Have a look at this :



    This is the new favicon. Its a blue small case g from the Google logo. It also sports a small shadow as well adn looks deliciously fantastic. I guess it signifies some freedom from the old bounded coroprate logo.  This one is more close to the styles of Google.

     To see it for urself make sure you clean your cache and type in any of google.com, image.google.com or any other google based service...