Monday, March 7, 2011

CrazyEngineers Forum - Computer Science & IT Engineering

CrazyEngineers Forum - Computer Science & IT Engineering


Awesome jQuery plugin which I liked very much: Fly to Basket

Posted: 06 Mar 2011 09:35 PM PST

Hey people,
When I was about to do a project in my office, I had to do a comparison basket stuff. I was wondering what to use for it. Luckily I found this nifty plugin which made my work simpler. You can also download the stuff.

Check this out: Creating A Slick Ajaxed Add-To-Basket With jQuery And PHP



Try it out and say your views in adding your flavours in it! :)
Here, when the user selects a product to add it to the basket, it literally flies from the product page to the basket! Remember, NO FLASH, NO PLUGINS! :) Pure HTML & jQuery!!! :)

jQuery Demo: Creating A Sliding Image Puzzle Plug-In

Posted: 06 Mar 2011 09:29 PM PST

Since I have been getting into jQuery a lot lately, what with reading the books and playing around with code, I felt I should try a more complicated type of plug-in. As such, I have created this jQuery demo plug-in which creates sliding-image puzzles based on containers that have images. Running the demo page we get this output:


Instructions and Demo: jQuery Demo: Creating A Sliding Image Puzzle
Enjoy! :happy:

Programing With C/C++!

Posted: 06 Mar 2011 03:12 PM PST

I have Programing course this year and I must learn c and c++.Please tell me websites and if you have send me source about c and c++!

File Handling in PHP

Posted: 06 Mar 2011 08:30 AM PST

Opening and Closing Files
Files are opened in PHP using the fopen command. The command takes two parameters, the file to be opened, and the mode in which to open the file. The function returns a file pointer if successful, otherwise zero (false). Files are opened with fopen for reading or writing.
PHP Code:

$fp fopen("myfile.txt""r"); 

If fopen is unable to open the file, it returns 0. This can be used to exit the function with an appropriate message.
PHP Code:

if ( !($fp fopen("myfile.txt""r") ) )
    exit(
"Unable to open the input file."); 

C++ Pointers-Concept Explained

Posted: 06 Mar 2011 07:14 AM PST

C++ pointers are the address variables that are used to access some memory location.

Declaration: int *p;
Here 'p' is an identifier that is used to store some address. The content of this memory address will of type 'int' as we mentioned in the declaration. We use any other data type also as per the type of content to be stored.
So the content of the p will be integer type not p itself.

Lets take an example.
Code:

int a=5;
int *ptr;
ptr=&a;        //ptr now refers to the address of 'a'
cout<<ptr;    //it'll print the address of 'a' in hexadecimal code
cout<<*ptr;  //it'll print the contents of a ie value of the variable a.

So now if we do:
Code:

ptr=ptr+1;
cout<<ptr;

The result is that the pointer variable 'ptr' will be incremented as:
ptr=ptr+(1*size of int)
ie initally if ptr was refering to the memory address say 1000, now it'll refer to the memory address 1002 because size of int is 2 bytes. Here we have added the size of int because our ptr stores the integer value.
Had it stored a float or some other value, we would had used the size of float or the appropriate data type instead.

So now we come to know that we can increment or decrement address value using pointers. But we can increment, decrement or even multiply pointers only with integer values no matter what type of data is stored in it.

basic software devolopment

Posted: 06 Mar 2011 07:11 AM PST

I am very interested in developing software. I read the deitel book on C programming.
Book explained a lot on coding.
Now I want to learn how to develop a proper interactive software i.e myob, skype, media player.
what should I do next.Is there a way to acquire knowledge fast on programming?
thank you for your time.

Arm processor simulator...

Posted: 06 Mar 2011 06:37 AM PST

dear all frieds....
i need a simulator and assmbler for arm processor...
plz suggest name of some good simulators....

Write protect your USB Mass Storage Device

Posted: 06 Mar 2011 04:06 AM PST

It happens with me many time that I had to copy some files from my pen drive to our college lab and the moment I plugged in my pen drive, it gets infected with dozens of viruses. Yes, its true that our college labs are too infected. Now before I can use the pen drive again, I need to make sure to clean it first so that the virus may not spread on more computers. I scan for my pen drive using NOD32 and no doubt it completely remove all traces of virus but it wastes my time as I always have over 2 GB of files that I carry with me all the time.

So I came to know of this trick of write protecting the drive so that I can safely copy things I want without the worry of virus being copied on my USB drive. Although you won't be able to write any thing on your pen drive, its still very useful in case you want something to copy from your pen drive and don't want to get infected. Before proceeding I must tell you that playing with the registry can be harmful for your Operating System (OS) and I advise you to take a backup of your registry in case anything goes wrong.

This trick works only on XP SP2 and you need to have administrator privileges.
  1. Open Registry Editor by Start - Run.
  2. Type in regedit.
  3. Browse to HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \
  4. Locate the sub-key StorageDevicePolicies. If it doesn't exist then create it first. Create a new key under Control by right clicking on it so that you don't create it elsewhere by mistake (as shown in the above screenshot).
  5. Right click in the blank area of the sub key you just created and create a new DWORD value by the name WriteProtect.
  6. Double-click it and set the value data as 1 (and 0 for disabling it).
  7. Click OK, close the Registry Editor and restart the PC.
The drawback of this trick is that you need to remember this trick by yourself and you need to restart the PC after applying this trick. Killing explorer.exe and restarting it will not do the job everytime. I am still looking for any other ways fo protecting your drives and I will post in on my blog if I found a better trick than this one. Share your thoughts in the reply.

Graphic design code

Posted: 06 Mar 2011 03:53 AM PST

Can anyone post a simply graphic design code in c or c++?
(the output of the code should look like a design(example:name or ball shape)

Pen drive Project Help

Posted: 06 Mar 2011 12:28 AM PST

Hi all,
I have a project using a pen drive. i want to store data in it, which can be read in any system but can't be formatted or over write. pleas help.
s.k.sahoo

No comments:

Post a Comment