Jumble.py

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/env python
def find_jumble(jumble, word_file='/users/charleslsnyder/dictionary.txt'): 
#you have to reset the word file to your dictionary and path
sorted_jumble = sort_chars(jumble)
for dictword in open(word_file, 'r').xreadlines():
if sorted_jumble == sort_chars(dictword):
yield dictword
 
def sort_chars(word):
w = list(word.strip().lower())
w.sort()
return w
 
while(1):
inp = raw_input("Enter word: ")
if not inp: break
for ans in find_jumble(inp):
print "Answer = ", ans

Apple Keyboard Tips

  1. cmd + k – Transmit is my favorite FTP app, but for quick and easy FTP stuff, cmd + k is OS X’s built-in “Connect to Server” command, found under the Go menu in the Finder. Not nearly as feature-packed as most apps, but it’s fine for any basic work.
  2. cmd + opt + i – Most of us know about cmd + i, which is the Get Info command, but if you throw opt into the mix you now have a window widely known (yet undocumented) as “Super Get Info.” This handy window is basically a live Get Info window, changing with each file and folder you click on, enabling you to view and alter many file and folder stats (such as Spotlight Comments and what apps open what files) with one single window. Continue reading

Wikis

What traits are desireable in a Wiki?

There are many variants available – TiddlyWiki, MediaWiki, etc. Many blogs programs are essentially wikis as well. What should the optimal wiki do?

  1. Doesn’t require cumbersome markup to enter text (==words==)
  2. Supports Tagging to jump around and identify groups
  3. Editable online and offline
  4. Able to create new pages from within the program
  5. Able to insert media
  6. Wide variant of formating options