Change Mouse Focus Behavior – Gnome

You can use dconf-editor to change the default mouse behavior. I prefer sloppy focus, but I do want the focus to change the active window. Not sure how to accomplish that because as soon as you move the mouse the focus is then changed to the previously-active window, not the one that just popped up….

Continue Reading

Python Print Newline Drama

When using the following: def processSerialData():     line = ser.readline()     if len(line) > 2:         print line         appendToFile(line) You’ll notice that the output will automatically append an additional newline sequence ‘/n/r’ If you change print line to print line, (notice the comma following the variable…

Continue Reading

#Trapped Note To Self

Always set hard deadlines when hard deadlines are set. Example: 1. Friend says “I need X by Y” 2. I say “I need Z by N” This now breaks down into a simple conditional statement. Here’s the algorithm in C if(N && !Z) { return 0; }

Continue Reading