Tux

...making Linux just a little more fun!

Device driver program

Maneesh M P [maneesh.poyil at gmail.com]


Wed, 11 Feb 2009 00:55:35 +0530

[[[ How surprising that this was sent in .html, eh? -- Kat, rolling her eyes in irony. ]]]

Hello,

I have read the article of yours from http://linuxgazette.net/136/anonymous.html . Sounds interesting and it was very informative too. Thanks for sharing it.

I have a requirement, i need a device driver program which reads ctrl +k, this key sequence will send a SIGUSR1 signal to another application program which will just do a multiplication or sort of few numbers once its recieve the SIGUSR1 signal.

We have written the application program, which is pretty easy though. Now in need of a device driver program which reads ctrl + m and send SIGUSR1 signal.

I will be really thankful if you could help me in this.

- Regards, Maneesh(=E0=B4=AE=E0=B4=A8=E0=B5=80=E0=B4=B7=E0=B5=8D )


Top    Back


Ben Okopnik [ben at linuxgazette.net]


Tue, 10 Feb 2009 15:39:14 -0500

On Wed, Feb 11, 2009 at 12:55:35AM +0530, Maneesh M P wrote:

>    Hello,
>     
>     I have read the article of yours from
>    http://linuxgazette.net/136/anonymous.html . Sounds interesting and it was
>    very informative too. Thanks for sharing it.
>     
>    I have a requirement

No, what you have is homework - and you're trying to get someone else to do it for you. Please stop doing that.

That's in your interest, too: if your professor happens to read the Linux Gazette, he's going to see your name, find out that you tried to cheat, and... well. I know what I would do if I was in his position. Suffice it to say that you would be a very, very unhappy student - and so would the person paying your tuition.

>  , i need a device driver program which reads ctrl
>    +k, this key sequence will send a SIGUSR1 signal to another
>    application program which will just do a multiplication or sort of few
>    numbers once its recieve the SIGUSR1 signal.
>     
>    We have written the application program, which is pretty easy though. Now
>    in need of a device driver program which reads ctrl + m and send SIGUSR1
>    signal.
>     
>    I will be really thankful if you could help me in this.
> 
>    -
>    Regards,
>    Maneesh(`a'(R)`a'"`au*`a'.`au* )

I'll give you a hint: you don't need a "device driver program" to intercept keystrokes. Study the source code for "xev" and "showcode" for ideas. You'll still be cheating to an extent, but at least you will have done some work in order to get there - and you might even end up learning something by doing so.

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *


Top    Back


Mulyadi Santosa [mulyadi.santosa at gmail.com]


Wed, 11 Feb 2009 08:32:30 +0700

On Wed, Feb 11, 2009 at 3:39 AM, Ben Okopnik <[email protected]> wrote:

> On Wed, Feb 11, 2009 at 12:55:35AM +0530, Maneesh M P wrote:
>>    Hello,
>>
>>     I have read the article of yours from
>>    http://linuxgazette.net/136/anonymous.html . Sounds interesting and it was
>>    very informative too. Thanks for sharing it.
>>
>>    I have a requirement
>
> No, what you have is homework - and you're trying to get someone else to
> do it for you. Please stop doing that.

Ben, you're a true educator!!!!! Wish we have more like you in our country to reduce cheating ...at least not as "legal habit" any longer.

Sorry for the rants ....

regards,

Mulyadi.


Top    Back


Maneesh M P [maneesh.poyil at gmail.com]


Wed, 11 Feb 2009 09:02:25 +0530

[[[ Oh, and top-posted after that...! -- Kat ]]]

Hello Ben,

Oh no!!... I am not a school student anymore , i have been working with one of the leading software companies in India for the past 4.5 years. So no cheating business:) I am working in embedded firmware testing all these while, so i have actually knowledge in tcl and shell script, not in C. I do know C but not the very extent that i could write a device driver program.

Wondering why i need this program? its for actually our internal requirement. Anyway i understand your emotions, but you made the statements too early without knowing the fact.:) It would be great if you[or anyone] could help, else thanks a lot for the article and your reply. Thanks and Regards, Maneesh


Top    Back


Maneesh M P [maneesh.poyil at gmail.com]


Wed, 11 Feb 2009 09:04:05 +0530

Oh Ben,

I didnt see the tips at the end. Thanks a lot for that:) I will try to explore something there if i can.

[[[ Massive amounts of excessive quoting elided. -- Kat ]]]

Regards, Maneesh(=E0=B4=AE=E0=B4=A8=E0=B5=80=E0=B4=B7=E0=B5=8D )


Top    Back


Ben Okopnik [ben at linuxgazette.net]


Wed, 11 Feb 2009 10:56:53 -0500

On Wed, Feb 11, 2009 at 09:02:25AM +0530, Maneesh M P wrote:

>    Hello Ben,
>     
>    Oh no!!... I am not a school student anymore , i have been working with
>    one of the leading software companies in India for the past 4.5 years. So
>    no cheating business:)
>     
>    I am working in embedded firmware testing all these while, so i have
>    actually knowledge in tcl and shell script, not in C. I do know C but not
>    the very extent that i could write a  device driver program.  

That's interesting. How is it that someone supposedly working in the field - a programmer, no less - can be unaware of standard methods for writing a program? The language is irrelevant; the process varies very little. You show absolutely no understanding of that basic principle; score -100 on the believability scale.

Next, the "problem" that you're asking about is purely a learning exercise. There has never been, and there will never be a company with a desperate need like this:

> >    i need a device driver program which reads ctrl
> >    +k, this key sequence will send a SIGUSR1 signal to another
> >    application program which will just do a multiplication or sort of
> >    few numbers once its recieve the SIGUSR1 signal.

...unless your company's name is 'SIGUSR1 Generators' or something similar. That's another -100, right there.

So, did I speak too soon? Well, no: you tried to "explain" your situation too late. If I catch someone in the act of sneaking off with my wallet in their pocket, I'm fully justified in assuming that they're a thief - although I'd be willing to listen to their story about how they were REALLY just trying to save my life because the Martians were about to invade our planet and were going to kill everybody with this kind of wallet in their pocket. This would at least entertain me while I handed the jerk over to the cops (or, if I was feeling merciful, just took my wallet back and left the print of my big shoe on his ass.)

>    Wondering why i need this program?  its for actually our internal
>    requirement.

Uh-huh. Maneesh, "internal requirement" might impress somebody else - but for me, "I need it because we need it" is just another strike against your believability.

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *


Top    Back


Charles Norrie [cbnorrie at hotmail.com]


Wed, 11 Feb 2009 16:07:11 +0000

[[[ Written in response to Ben's last reply to Maneesh. .html and top-posting removed. -- Kat ]]]

It is if you do APL. The APL community prefers its recruits to know nothing about programming whatsoever, because it is so conceptually different.

Charles Norrie


Top    Back


Ben Okopnik [ben at linuxgazette.net]


Wed, 11 Feb 2009 11:42:04 -0500

On Wed, Feb 11, 2009 at 09:04:05AM +0530, Maneesh M P wrote:

>    Oh Ben,
>     
>      I didnt see the tips at the end. Thanks a lot for that:) I will try to
>    explore something there if i can.

That's a tradition here at LG: even if we have to administer a spanking, we try to make sure that it has some value. We've had a number of querents on this list who very wisely decided to stop doing the wrong things and keep on doing the right ones; they've done well as a result.

In that vein, I strongly suggest reading "Asking Questions of The Answer Gang" at 'http://linuxgazette.net/tag/ask-the-gang.html'. This should be helpful not only here, but in any help forum.

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *


Top    Back


Ben Okopnik [ben at linuxgazette.net]


Wed, 11 Feb 2009 12:01:47 -0500

On Wed, Feb 11, 2009 at 08:32:30AM +0700, Mulyadi Santosa wrote:

> 
> Ben, you're a true educator!!!!! Wish we have more like you in our
> country to reduce cheating ...at least not as "legal habit" any
> longer.

I try to do my best, although sometimes I feel like I'm pushing that big rock up the mountain for the thousandth time. In some places, it seems, cheating is an ancient institution - and it's not about to go away since it does pay off in the short term. I won't go off on a rant of my own about how that becomes a race to the bottom, with bad money driving out good money and so on.

> Sorry for the rants ....

It's fine by me; I have my own kit of rants that pop up once in a while. :)

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *


Top    Back