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:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/firefox/launcher.rb:81:in `connect_until_stable': unable to obtain stable firefox connection in 60 seconds (Selenium::WebDriver::Error::WebDriverError) | |
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/firefox/launcher.rb:37:in `launch' | |
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/firefox/socket_lock.rb:32:in `locked' | |
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/firefox/launcher.rb:32:in `launch' | |
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/firefox/bridge.rb:21:in `initialize' | |
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/common/driver.rb:38:in `new' | |
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/common/driver.rb:38:in `for' | |
from C:/R |
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
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:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb |
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
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 |
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
GAME | |
---- | |
"cooldown_percentage": 0.6, | |
"cooldown_highest_rating_multiplier": 0.6, | |
"cooldown_size_min_multiplier": 0.4, | |
"cooldown_size_max_multiplier": 1.0, | |
"cooldown_size_slope": 0.1, | |
"cooldown_size_slope_start": 20, | |
"cooldown_song_min_multiplier": 0.2, |
OlderNewer