DiS – Darkness is Spreading Version 08.1218

A new version of DiS – Darkness is Spreading Version is out. Version 08.1218

I have added a whole host of features. I wish I had a list, but I don’t!

Here’s a picture:

DiS - Darkness is Spreading Version 08.1218
DiS - Darkness is Spreading Version 08.1218

Here is the page on sourceforge:
http://dis-game.sourceforge.net/

Here is the Play page on sourceforge:
http://dis-game.sourceforge.net/play.php

DiS – Darkness is Spreading

dis - darkness is spreading

I coded this puzzle game that I now have hosted on Sourceforge here:
http://dis-game.sourceforge.net

It’s written in PHP and it is based off the game Flood-it. It takes the general principle and changes it some.

The levels are easily made and can be added pretty easily too.

I’d like to make a level editor, but that is defiantly for a later release.

Here is the plan:
-Make it look better
-Add Score
-Add Level Editor

Whitehart – Minimal Firefox Theme, Great

whitehart
Whitehart is a very good theme.

I have been using it for a while and I thought I would let you know.

It’s the type of theme that really simplifies what Firefox shows you. It looks like someone went through the default theme and removed the color and made things a tad smaller.

I recommend it.

https://addons.mozilla.org/en-US/firefox/addon/364

/Daniel

Wiki Based Directory of Online Free TV Shows

I really wanted to make a exhaustive list of TV shows that networks like NBC, ABC, CBS, Comedy Central and more have listed for free on their website.

Some of these shows have full catalogs and some have just the current season or clips.

I would love to have people contribute and add to the listing.

I have it hosted here on Zoho. It’s basically an open source version of Google docs plus tons of other features.

http://freetvshowsus.wiki.zoho.com/

Thanks,
Enjoy

Python: Wunderground Todays Weather to Email SMS to Phone

wunderground

I could see somebody setting this as a cron task to send every morning so when you wake up, you get the current weather as a text message. 

I am about to set it up. 

Enjoy
————————————————————

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
import urllib2
import time
ZIP = "20190"
ACCOUNT = "d37"  # put your gmail email account name here
PASSWORD = "neah"  # put your gmail email account password here
to_addrs = "[email protected], [email protected]"
subject = "Wunderground Email"
 
try:
	f = urllib2.urlopen('http://www.wund.com/cgi-bin/findweather/getForecast?query='+ZIP)
	page = f.read()
	i = page.find('<div id="main">')
	page2 = page[i:]
	i = page2.find("<span>")+6
	page = page2[i:]
	i = page.find("</span>")
	temperature = page[:i]
 
	i = page.find("<h4>")+4
	page = page[i:]
	i = page.find("</h4>")
	current = page[:i]
 
	i = page.find("<span>")+6
	page = page[i:]
	i = page.find("</span>")
	wind = page[:i]
 
 
	i = page.find("<span>")+6
        page = page[i:]
        i = page.find("</span>")
        dewpoint = page[:i]
 
 
	i = page.find("<b>")+3
        page = page[i:]
        i = page.find("</b>")
        pressure = page[:i]
 
 
        i = page.find('<div class="b">')+15
        page = page[i:]
        i = page.find("</div>")
        humidity = page[:i]
 
 
        i = page.find("<span>")+6
        page = page[i:]
        i = page.find("</span>")
        visibility = page[:i]
 
 
	page = page[9:]
 
        i = page.find("</span>")+8
        page = page[i:]
        i = page.find("</h5")
        updated = page[:i]
 
 
	i = page.find('<div id="forecast">')
	page = page[i:]
        i = page.find('<span>')+6
        page = page[i:]
	i=page.find('</span>')
	d1n = page[:i]
 
	i = page.find('<div>')+4
	page = page[i:]
	i = page.find('<div>')+5
	page = page[i:]
	i = page.find('</div>')
	d1 = page[:i]
 
	page = page[i:]
	i = page.find('<span>')+6
	page = page[i:]
	i = page.find('</span>')
        d1h = page[:i]
 
	page = page[i:]
        i = page.find('<span>')+6
        page = page[i:]
        i = page.find('</span>')
        d1l = page[:i]
 
	i = page.find('<td')
	page = page[i:]
 
#===================
        i = page.find('<span>')+6
        page = page[i:]
        i=page.find('</span>')
        d2n = page[:i]
 
        i = page.find('<div>')+4
        page = page[i:]
        i = page.find('<div>')+5
        page = page[i:]
        i = page.find('</div>')
        d2 = page[:i]
 
        page = page[i:]
        i = page.find('<span>')+6
        page = page[i:]
        i = page.find('</span>')
        d2h = page[:i]
 
        page = page[i:]
        i = page.find('<span>')+6
        page = page[i:]
        i = page.find('</span>')
        d2l = page[:i]
 
        i = page.find('<td')
        page = page[i:]
 
#===================
        i = page.find('<span>')+6
        page = page[i:]
        i=page.find('</span>')
        d3n = page[:i]
 
        i = page.find('<div>')+4
        page = page[i:]
        i = page.find('<div>')+5
        page = page[i:]
        i = page.find('</div>')
        d3 = page[:i]
 
        page = page[i:]
        i = page.find('<span>')+6
        page = page[i:]
        i = page.find('</span>')
        d3h = page[:i]
 
        page = page[i:]
        i = page.find('<span>')+6
        page = page[i:]
        i = page.find('</span>')
        d3l = page[:i]
 
        i = page.find('<td')
        page = page[i:]
 
#===================
        i = page.find('<span>')+6
        page = page[i:]
        i=page.find('</span>')
        d4n = page[:i]
 
        i = page.find('<div>')+4
        page = page[i:]
        i = page.find('<div>')+5
        page = page[i:]
        i = page.find('</div>')
        d4 = page[:i]
 
        page = page[i:]
        i = page.find('<span>')+6
        page = page[i:]
        i = page.find('</span>')
        d4h = page[:i]
 
        page = page[i:]
        i = page.find('<span>')+6
        page = page[i:]
        i = page.find('</span>')
        d4l = page[:i]
 
        i = page.find('<td')
        page = page[i:]
 
#===================
        i = page.find('<span>')+6
        page = page[i:]
        i=page.find('</span>')
        d5n = page[:i]
 
        i = page.find('<div>')+4
        page = page[i:]
        i = page.find('<div>')+5
        page = page[i:]
        i = page.find('</div>')
        d5 = page[:i]
 
        page = page[i:]
        i = page.find('<span>')+6
        page = page[i:]
        i = page.find('</span>')
        d5h = page[:i]
 
        page = page[i:]
        i = page.find('<span>')+6
        page = page[i:]
        i = page.find('</span>')
        d5l = page[:i]
 
        i = page.find('<td')
        page = page[i:]
 
 
except URLError, e:
	print e.code
	print e.read()
 
#print "Temp:" + temperature
#print "Current" + current
#print "Wind: " + wind
##print "Dew: "+ dewpoint
#print "Pressure:" + pressure
#print "Humid:" + humidity
#print "Visib:" + visibility
#print "Updated: " + updated
 
#print d1n + "-" + d1 + ":" + d1h + "/" + d1l
#print d2n + "-" + d2 + ":" + d2h + "/" + d2l
#print d3n + "-" + d3 + ":" + d3h + "/" + d3l
#print d4n + "-" + d4 + ":" + d4h + "/" + d4l
#print d5n + "-" + d5 + ":" + d5h + "/" + d5l
 
#temperature, current, wind, dewpoint, pressure, humidity, visibility
#	updated, dXn, dX, dXh, hXl (x=1-5, h=high, l=low, n=name)
 
subject += updated
msg = "Now:"+current+"-"+temperature
msg += "\r\nHum:"+humidity
msg += "\r\n"+d1n + "-" + d1 + ":" + d1h + "/" + d1l
msg += "\r\n"+d2n + "-" + d2 + ":" + d2h + "/" + d2l
msg += "\r\nUpdated:"+updated
 
 
 
 
import smtplib
HOST = "smtp.gmail.com"
PORT = 587
 
try:
	server = smtplib.SMTP(HOST,PORT)
	#server.set_debuglevel(1)    # you don't need this
	server.ehlo()
	server.starttls()
	server.ehlo()
	server.login(ACCOUNT, PASSWORD)
	headers = "From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n" % (ACCOUNT, to_addrs, subject)
	server.sendmail(ACCOUNT, to_addrs, headers + msg)
	server.quit()
except:
	time.sleep(1)

Python – Cell Phone Number Pad Input

Here is the first version of a little python program I made that will translate input from a cellphone text pad or a number pad to text.
UPDATE: VERSION 2
It’s pretty darn simple.

It would go perfect with this:
http://www.flickr.com/photos/svofski/3383950702/in/pool-make

Continue reading “Python – Cell Phone Number Pad Input”

Netflix Player by Roku Runs Linux

roku netflix linuxThis $100 dollar wonder runs Linux. At least this is why I believe it does. By looking at their agreements we can see:

Certain components of the software included with the Roku Product are subject to separate license
terms, including “free” or “open source” software (“Separately Licensed Code”). Some of the Separately Licensed Code is licensed
under the terms and conditions of the “free” or “open source” license and is not subject to the License above or the Limited
Warranty below. As required by the terms of the relevant Separately Licensed Code licenses, Roku makes the “free” and “open
source” code provided under such licenses, and Roku’s modifications to such code, available on Roku’s website, at no charge. The
following third party software is also included.

Which does not defiantly mean that it runs Linux but:

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/).

Which also does not defiantly mean Linux, but:
With it’s small form factor and the fact that it is sub-$100 and it runs off of flash memory, I believe it does.

If this is the case, then I would love to see how to stream Netflix on a normal Linux/Mac box without having to use IE.

I believe that if they are implementing IE and Windows media formats behind the scenes that they might be infringing on some sort of License agreement with Microsoft. Which sucks.

Leave comments!!!!!!