These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.
Tags: Api, Database, Design, File, Javascript, Json, Keyboard, Lock, Mysql, Onehanededtyping, Python, Sql, Sqlserver, Ubuntu, Utilitymill, Web.Py, Webservices, Win32, Work, Xmlrpc
Posted by Greg Pinero (Primary Searcher) as Uncategorized at 3:30 AM MST
1 Comment »
These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.
Characterizing one-class datasetsHow do you classify examples when you only have one class? The trick is to think about the task as outlier detection instead of standard classification. This paper provides an informative overview of the task.
Mouse clicking issues - Ubuntu ForumsMy mouse is double clicking when I only single click. This forum suggests changing the mouse protocol to IMPS/2 in the xorg.conf file. I’ll try this soon. .. suggests the keyboard and mouse could be plugging into the wrong on your computer ie switched.
Tags: Ai, Apt-Get, Backup, Datamining, Dpkg, Machine_Learning, Mouse, Mysql, Package, Python, Pyton, Snippets, Synaptic, Toread, Ubuntu
Posted by Greg Pinero (Primary Searcher) as Uncategorized at 3:30 AM MST
Comments Off
I came across my first Python script using Tkinter tonight while looking through old files. It creates a big screen where you can click anywhere on it and it makes your computer beep. Your Y position controls the frequency and your X position controls the duration.
Well, I wanted to give it a run for old time’s sake, but alas:
ImportError: No module named winsound (On Linux)
So I looked up the problem and decided to go with the beep package installed by running:
sudo apt-get install beep
Then I updated my script to run on both Windows and Linux. Enjoy*:
#!usr/bin/env/python
from Tkinter import *
try:
import winsound
except ImportError:
import os
def playsound(frequency,duration):
#apt-get install beep
os.system('beep -f %s -l %s' % (frequency,duration))
else:
def playsound(frequency,duration):
winsound.Beep(frequency,duration)
root = Tk()
def callback(event):
print "clicked at", event.x, event.y
frequency=event.y * 6
duration=event.x/2
print "Freq= ", frequency, "HZ"
print "duration=",duration, "ms"
print ""
if (frequency < 32000) and (frequency>40):
playsound(frequency,duration)
frame = Frame(root, width=1000, height=800)
frame.bind(”<Button-1>”, callback)
frame.pack()
#message=Label(frame)
root.mainloop()
* Or annoy those near you …
Posted by Greg Pinero (Primary Searcher) as win32, Python, Ubuntu at 11:14 PM MST
Comments Off
These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.
Open Office - How to do Page Specific HeadersMake sure the stylist is visible (Format|Stylist, F11). Click the "Page Styles" icon in the Stylist. Double click on "First Page" in the list in the stylist. Then you can do Insert|Header|First Page from the main menus, and enter the page specific…
Tags: Biofeedback, Computer, Css, Diy, Electromyograph, Electronics, Ie, Iis, Openoffice, Python, Win32, Work
Posted by Greg Pinero (Primary Searcher) as Uncategorized at 3:30 AM MST
Comments Off
These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.
Tags: Ajax, Barcode, Coupon, Database, Design, Filter, Html, Javascript, Lake, Patterns, Pond, Programming, Python, Sort, Table, Textarea, Webdev, Work, Wrap
Posted by Greg Pinero (Primary Searcher) as Uncategorized at 3:30 AM MST
1 Comment »