Reputation
1,206
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 24 53
Impact
~210k people reached

  • 0 posts edited
  • 1 helpful flag
  • 467 votes cast
13h
comment Driving Linux input events from serial device
@smeeb When a keystroke is pressed or the mouse is moved, your code can listen for such a hardware interrupt. This is the most effective method to handle keystrokes and mouse.
13h
comment Driving Linux input events from serial device
@smeeb Interrupts can do anything and everything. If you study interrupts and have an interrupt service routine you'll also learn how to make a context switch. You can read about this in the book "Operating Systems" by Andrew Tanenbaum.
19h
revised For loop and recursion for a new shell in C
removed the code because I changed the code. added link to the project
19h
answered Driving Linux input events from serial device
1d
awarded  Nice Question
2d
comment For loop and recursion for a new shell in C
The recursion I've come up with is 1. Check if command contains the pipeline delimiter and call a function that is recursive for every substring, save the substring and make recursion until the substring doesn't contain a delimiter, and I will end up with a delimited list that a can execute: {echo} {'foo bar'} {|} {awk} {'{print$1}'} {>} {output.txt} and the state machine can depend on the current delimiter (', ", |, <...)
2d
revised For loop and recursion for a new shell in C
added 507 characters in body
Apr
26
asked algorithm for shell language interpreter to find if a char is between quotes
Apr
26
comment After breaking our code into reusable bits, how do we test and deploy?
If you please include estimates KLOC (1000 lines of code) and byte measures of the code we can easily get an idea of the size for example "2000 lines of code. 50 kilobytes source code." or "40 KLOC, 2 GB XML". . It seems what you need to just migrating to git and git has import functions. You can start by reading the git book.
Apr
26
accepted For loop and recursion for a new shell in C
Apr
25
awarded  Popular Question
Apr
25
asked For loop and recursion for a new shell in C
Apr
15
awarded  Notable Question
Feb
26
accepted Why is it non-trivial to write mathematics on the web?
Feb
19
revised Why is it non-trivial to write mathematics on the web?
added 33 characters in body
Feb
19
asked Why is it non-trivial to write mathematics on the web?
Feb
3
awarded  Famous Question
Jan
23
awarded  Popular Question
Jan
11
awarded  Yearling
Dec
7
revised Why is %s better than + for concatenation?
added 307 characters in body