Archive for category My Activities

What exactly can I do now?

Now a days I am getting too bored. All my entertainment stuffs (mostly PC Games :P ) are out-of-date. My last weekend was so boring that I decided to think and wrote 3 posts in a single day. So now I am  out of stock, and have no idea about what to write about :(

From evening I am doing nothing but staring at my WordPress stats hoping for it to goto peak in a single day :P Realising that way of entertainment didn’t work out, I decided to try out new IE9 Beta. Started downloading it with my poor dial-up connection. Finally when it was downloaded and I tried to install it. Too bad the setup gave an error that my Service Pack is not updated :(  Then I started staring at my Facebook and Gmail accounts with a hope to come across something good. But my bad luck there was nothing interesting there also :( Not even a single buddy to chat with as well as no new mails and interesting updates. Then I decided to do some thing so that my great effort of staring at my browser so long did not go in vain.  So finally decided to write this crap :D

Now that the post is done I still have no idea of what to do next :( Let me see what happens…

Leave a Comment

Playing with registry using Python

The inbuilt library in python provides us many useful ways to access the windows registry and make changes to them. I just learnt some stuffs regarding it and thought I can share them with you all ;-) Following explains how you can perform some basic operations in registry:

  • The first thing we need to do is to import the library using the following command:

        import _winreg as reg
  • Next step will be to open the key to which you need to make the changes.

key = reg.OpenKey(reg.HKEY_LOCAL_MACHINE,”SOFTWARE\x\y\z”,0,reg.KEY_ALL_ACCESS)

  • Now to get the values use the following command:

reg.EnumValue(key, index)

  • Now to create a string value or modify a exsisting one:

reg.SetValueEx(key,’name’),0,1,value)

That's all for now. Hope this post helped you :-) 

Leave a Comment

Blog Adda – The most annoying way of verification

Many of you may wonder what the last post is about and why I wrote it… This is how a blog managing service “Blog Adda” verifies the blog. Their whole idea of helping the bloggers is great. But isn’t this way of verification annoying? They will verify my blog only if I post something about them??? I think this is a very bad idea. Hope those guys will find a better way of verification soon… ;)

,

Leave a Comment

Am back

Sorry every one. Its long time since i made a post. I was busy searching for a job these days ;-) so didn’t post anything. Now am back…

Leave a Comment

Parallelport Access Using VC# .NET

Parallel port or printer port can be used to control any hardware easily. In our project we first planned to control stepper motors through parallel port. We did our project in VC# .NET. Actually we didn’t know that .NET doesn’t have any inbuilt controls to access parallel port directly. We got stuck up and started to search for a solution.

Finally we found how to do it. :) The easiest way to do it will be to use a dll file that provides an easy access to the parallel port. Here is how u can do it:

1.Download the dll file from the downloads tab of this blog and save it to windows\system32\ folder.

2.Create a new class and name it as ParallelPort.

3.Copy the code given below to the class you created before:

using System;
using System.Runtime.InteropServices;
namespace ParallelPort
{
Private class PortAccess
{
[DllImport("inpout32.dll", EntryPoint="Out32")]
public static extern void Output(int adress, int value);

[DllImport("inpout32.dll", EntryPoint="Inp32")]
public static extern void Input( int adress);
}

4.Now you can send data using the command:
ParallelPort.PortAcess.Output(address,data);

5.The data refers to the decimal value of the data to be sent and the address is the address of the parallel port in the computer (usually it’s value is 888).

,

3 Comments

Unexpected Victory

Yesterday(Apr 1) was a happiest day for me. After 4 months of struggle finally our project is ready :-) The project was to design a printer to print the layout diagram on a single side copper board. I took care of the software part. I did it using c#.net :) This was my first project in c#(Actually i started to learn how to work with c# only the day our project stared). I never taught that c# will be so easy. I even wondered if we can finish the project when we chose it. But now after a great struggle and some help from my friend Sahas we made it :)

, , ,

1 Comment

Follow

Get every new post delivered to your Inbox.