This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\rmcauley\Documents\ruby\ucp>ruby -d comodotest.rb | |
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:1113 - no such file to load -- rubygems/defaults/operating_system | |
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- selenium-webdriver | |
Exception `NoMethodError' at C:/Ruby187/lib/ruby/1.8/rational.rb:78 - undefined method `gcd' for Rational(1, 2):Rational | |
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- yajl/json_gem | |
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - no such file to load -- yajl/json_gem | |
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- json/ext/parser | |
Using c extension for JSON. | |
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- term/ansicolor | |
Exception `LoadError' at C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Console log: 2010-11-22 17:56:21 *** | |
Item Installed via directory addition to Install Location: app-global Item ID: {972ce4c6-7e08-4474-a285-3208198ce6fd}, attempting to register... | |
Item Installed/Upgraded at Install Location: app-global Item ID: {972ce4c6-7e08-4474-a285-3208198ce6fd}, attempting to register... | |
... success, item is compatible | |
Item Installed via directory addition to Install Location: app-profile Item ID: fxdriver@googlecode.com, attempting to register... | |
Item Installed/Upgraded at Install Location: app-profile Item ID: fxdriver@googlecode.com, attempting to register... | |
... success, item is compatible | |
[JavaScript Error: "Warning: unrecognized command line flag --verbose | |
" {file: "file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/components/nsBrowserContentHandler.js" line: 742}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (vector<TimeReleaseOptions>::iterator i = offairoptions.begin(); i != offairoptions.end(); i++) { | |
if (i->maxexpiretime == -1) continue; | |
// get the song's category name (ie: get album if i->category is album) | |
if (!db.query("SELECT " + i->category + " FROM " + db.TBL_SONGS + " WHERE song_id = " + itoa(song_id))) { | |
log << Logger::WARN << "PlaylistControl implementOffAirTimes: Database error while attempting to select category " << i->category << " data." << endl; | |
break; | |
} | |
if (db.fetchRow()) { | |
long id = db.getLong(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Work in Progress] | |
Brace yourself! This post is not for the faint of heart. If you just want to skim and hit the high points, they've been identified. Also, I use the 'code' tag loosely. I'm no programmer :P. Also: feel free to ridicule my variable naming conventions... they don't necessarily correlate to 'LiquidRain' standards. | |
Link to my notes | |
The high point: (1) | |
Baseline cooldown (CD) times need to be re-visited. I propose some amendments to the formula which will make the base CD value more dynamic and flexible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This is a sample Icecast2 server config you can use to relay rainwave.cc. | |
Please note that relaying is whitelisted by IP address - if you actually | |
want to relay Rainwave, you'll have to arrange for that. :) | |
Please reference icecast.org for full documentation about this file. | |
This config file is based off the default config for a Debian Jessie install. (2.3.3) | |
If you have custom compiled your own or use a different distro, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DNS REFERENCE | |
------------- | |
F:\Downloads\BIND9.10.3.x64>dig +trace @8.8.8.8 getpocket.com A | |
; <<>> DiG 9.10.3 <<>> +trace @8.8.8.8 getpocket.com A | |
; (1 server found) | |
;; global options: +cmd | |
. 20628 IN NS a.root-servers.net. | |
. 20628 IN NS b.root-servers.net. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="mobile_rating unselectable needsclick" bind="el"> | |
<div class="mobile_rating_header"> | |
{{ $l("slide_to_rate") }} | |
</div> | |
<div class="mobile_rating_slider"> | |
<div class="mobile_rating_on" bind="r1_0">1</div> | |
<div class="pointfive" bind="r1_5">.5</div> | |
<div bind="r2_0">2</div> | |
<div class="pointfive" bind="r2_5">.5</div> | |
<div bind="r3_0">3</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
only_faved = db.c.fetch_list("SELECT user_id FROM r4_album_ratings WHERE album_id = %s, album_rating_user IS NULL AND album_fave = TRUE", (self.id,)) | |
# TODO: Carry over old_faved using INSERTs | |
db.c.update("DELETE FROM r4_album_ratings WHERE album_id = %s album_rating_user IS NULL AND album_fave = TRUE", (self.id,)) | |
db.c.update( | |
"WITH old_fave AS ( " | |
"DELETE FROM r4_album_ratings " | |
"WHERE album_id = %s AND album_fave = TRUE AND album_rating_user IS NOT NULL " | |
"RETURNING * " | |
") " | |
"INSERT INTO r4_album_ratings (album_id, user_id, album_fave, album_rating_complete, album_rating_user) " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH | |
faves AS ( | |
SELECT album_id, album_fave, user_id, 0 AS album_rating_user | |
FROM (DELETE FROM r4_album_ratings WHERE album_id = 390 RETURNING *) | |
), | |
ratings AS ( | |
SELECT album_id, FALSE AS album_fave, user_id, ROUND(CAST(AVG(song_rating_user) AS NUMERIC), 1) AS album_rating_user | |
FROM r4_song_album LEFT JOIN r4_song_ratings USING (song_id) | |
WHERE r4_song_album.album_id = 390 | |
GROUP BY album_id, user_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tornado.httpclient | |
class DealWithResponse(Object): | |
def __init__(self, arg1, arg2): | |
self.arg1 = arg1 | |
self.arg2 = arg2 | |
def respond(self, response): | |
print self.arg1 |