WordSquared bot
Looks like i wrote a good enough bot for http://wordsquared.com/
Version 0.1b at youtube: http://www.youtube.com/watch?v=NilCjtRIvng
It was more laggy, than current :)
As below log shows, its completing words with 2-4w per 1s, but this affected only by my current internet connection.
Later i’ll move it to dedicated server in hetzner.de to test European’s speed.
P.S. from 3k point to 10k in 10 mins :) P.S.S. Still using http://wordsolver.net/ word’s database -.-
Logged as Bubonic Pestilence
Loading game .. OK
@ws.tiles: 1.678851842880249 parse: 0.00460505485534668
9958 6998 A DIRECTION: bottom SIZE: 11 WORD: ALB
9918 6997 H DIRECTION: left SIZE: 11 WORD: LECH
9958 6997 L DIRECTION: left SIZE: 11 WORD: EXCEL
9958 6996 B DIRECTION: right SIZE: 11 WORD: BECK
9959 6996 E DIRECTION: bottom SIZE: 11 WORD: EMEU
9961 6996 K DIRECTION: bottom SIZE: 11 WORD: KAYO
9921 6995 O DIRECTION: bottom SIZE: 11 WORD: OAT
9923 6995 E DIRECTION: top SIZE: 3 WORD: DYE
9961 6995 A DIRECTION: right SIZE: 11 WORD: AFT
9963 6995 T DIRECTION: bottom SIZE: 11 WORD: TAXI
9921 6994 A DIRECTION: left SIZE: 11 WORD: RAJA
9950 6994 J DIRECTION: right SIZE: 8 WORD: JAWS
9951 6994 A DIRECTION: top SIZE: 9 WORD: HANSA
9952 6994 W DIRECTION: top SIZE: 8 WORD: SHAW
9953 6994 S DIRECTION: bottom SIZE: 5 WORD: SAINS
9959 6994 E DIRECTION: left SIZE: 5 WORD: HAME
9963 6994 A DIRECTION: right SIZE: 11 WORD: AHI
9921 6993 T DIRECTION: right SIZE: 2 WORD: TI
9922 6993 I DIRECTION: bottom SIZE: 3 WORD: IRE
9945 6993 R DIRECTION: left SIZE: 3 WORD: PUR
9950 6993 A DIRECTION: left SIZE: 3 WORD: BA
9953 6993 A DIRECTION: right SIZE: 3 WORD: AVE
9955 6993 E DIRECTION: bottom SIZE: 6 WORD: EDS
9953 6992 I DIRECTION: left SIZE: 2 WORD: TI
9963 6992 I DIRECTION: right SIZE: 11 WORD: IN
9922 6991 E DIRECTION: left SIZE: 11 WORD: RE
9925 6990 E DIRECTION: bottom SIZE: 11 WORD: EF
9926 6990 A DIRECTION: bottom SIZE: 11 WORD: ADZ
9951 6985 E DIRECTION: bottom SIZE: 11 WORD: EF
9957 7029 I DIRECTION: left SIZE: 11 WORD: QI
9959 7029 I DIRECTION: right SIZE: 11 WORD: IF
9891 7028 R DIRECTION: right SIZE: 2 WORD: RE
9897 7028 B DIRECTION: bottom SIZE: 2 WORD: BE
9940 7028 E DIRECTION: right SIZE: 4 WORD: ED
9897 7027 E DIRECTION: left SIZE: 5 WORD: DICE
9897 7025 E DIRECTION: left SIZE: 11 WORD: WE
9942 7025 O DIRECTION: bottom SIZE: 3 WORD: OS
9961 7025 D DIRECTION: right SIZE: 11 WORD: DIG
9962 7025 I DIRECTION: top SIZE: 11 WORD: QI
9963 7025 G DIRECTION: bottom SIZE: 11 WORD: GINKS
9954 7024 Y DIRECTION: top SIZE: 11 WORD: BY
A reproduction from an 18th century remake of an 11-meter handscroll by artists of the Qing court, published in “A City of Cathay”
Awesome japanesse eyes ;)
Mac now supporting Windows
How to Run SSD’s TRIM on a Mac
To force cleaning of unused blocks, boot in Single-User Mode:
Chameleon's flag: -s
Original mac: Hold ⌘+s
When you see command prompt, write this:
fsck -fy && mount -uw / && exit
After process finished, your Mac will be booted with TRIMed blocks ;)
Best video about iPhone’s Siri
Bug with Chameleon, affects performance of nVidia cards
Found that newest Chameleon(that support FaceTime fix) lowers performance of GTX 470GT 1280 (i think all nvidia’s) to about 20% of total.
For example, My normal Minecraft’s FPS around 300, with newest Chameleon i got about 34.
Fix
Just add to Boot Flags in org.chameleon.Boot.plist: SkipFTFix=Yes
Atheism description
Twenty
A short film by William Wilkinson. (previously)
Playing with Ruby + Processing + Audio
Don’t really know, what i wrote… but this thing can react on audio beats ))) and you can specify channels to visualize(circle).
Controls:
“a”, “s” — sets minimum & maximum samples to display as circle
“d” — output current min & max
“x” — exit xD
And don’t forget to put sound.mp3 near .rb file
You need ruby-processing gem. Tested at 1.9.2
require "pp"
class Visualizer < Processing::App
load_library "minim"
import "ddf.minim"
import "ddf.minim.analysis"
def setup
smooth
color_mode(RGB, 255)
size(1280, 600)
background(0)
@min = 0
@max = 2
setup_sound
end
def setup_sound
@minim = Minim.new(self)
@input = @minim.get_line_in
@input = @minim.loadFile("sound.mp3", 1024)
@input.play
@fft = FFT.new(@input.bufferSize, @input.sampleRate)
end
def draw
background(0)
avg = 0
@fft.forward(@input.left)
@fft.specSize.times { |i|
stroke(255)
case i
when @min..@max
stroke(255, 0, 0)
# remove if statement for pure detection
avg += @fft.getBand(i) if @fft.getBand(i) > 100
end
line(i, 600, i, @fft.getBand(i));
}
avg = (avg / (@max - @min)) * 10
noStroke
fill(255, 255, 0)
ellipse(800, 300, avg, avg)
end
def keyPressed
case key
when "a"
@min = mouseX if mouseX < @max && mouseX >= 0
when "s"
@max = mouseX if mouseX > @min && mouseX <= @fft.specSize
when "d"
puts "#{@min} #{@max}"
when "x"
exit
end
end
def stop
@input.pause
@minim.stop
super
end
end
Visualizer.new :title => "Visualizer"

