Posts

Featured post

math - "ELO Rating" and how does "TSR Rating" work? -

i don't know if belongs in math stack exchange or correct forum is, @ least used fitness model evolution of algorithms, or perhaps matchmaking algorithm specific player ranking in team based games. i'm posting here programming subset of mathematics, considering how elo in use. i member of dota 1 community transitioned "elo ranking system" , new ranking system named "tsr"; community , it's website died on year ago , can no longer find information regarding it's calculation. experience tsr system more accurate elo, shame if lost. does know how calculate tsr according "tsr ranking system"? here internet archive of site there literature on subject, cannot find exact page in question. http://web.archive.org/web/20110923152416/http://www.dotacash.com/index.php?p=news

java - Where to find notes.exe from within an RCP plug-in -

i have rcp eclipse plug-in goes ibm lotus notes . need call notes.exe binary arguments (kind of .bat file), , know how when know where notes installed. how find out ibm lotus notes installed, can know call notes.exe from? note: please don't suggest in typical install folder, i'd able regardless of whether it's typical default folder or not. thanks look in windows registry under hkey_classes_root\notes\shell\open\command see answers old stackoverflow question java code can read/write registry.

java - JOOQ forcedTypes to Boolean -

code generation worked fine. db char(1) field1,field2 mapped boolean in code base. <forcedtypes> <forcedtype> <name>boolean</name> <expressions>field1,field2 </expressions> </forcedtype> </forcedtypes> but while doing insert db, a truncation error encountered trying shrink char 'false' length 1. error the sql generated jooq insert mytable ("field1", "field2", ) values (cast(? boolean), cast(? boolean)) this trying insert false/true in db want insert 1 or 0. need help. i have derby dev functional testing , oracle other environments. use same jooq generated stubs(generated using derby db) both db's. seems working fine oracle not derby. http://blog.jooq.org/tag/boolean-data-type/ states oracle supports , derby not support conversion. need work around. using data type rewritin...

How to understand that a user gets database access in SQL Server -

i have been tasked auditing security on sql server. but, when @ login in sql server management studio, don't see checkbox beside master db login. how can determine databases login has access to? if see login match user in manner, login has access database. select sp.name 'login', dp.name 'user' sys.database_principals dp join sys.server_principals sp on dp.sid = sp.sid order sp.name, dp.name; you can in sql server 2005/2008

R studio graph not appearing in plots window -

i having trouble getting graphs appear in 'plots' window of r studio - once run script appear in separate r graphics window, separate r studio, 'plots' tab blank. is there setting or code should use change this? thank in advance,

How can do a tuple comparison in coffeescript similar to that in python? -

this function st3 = (x, y) -> console.log "#{x?}, #{y?}" if [x?, y?] [true, true] # <- line 'good' 'bad' this output true, true bad i want able tuple comparison in python. in python, if can written as if (x, y) == (true, false): return 'good' the coffescript if loop translated javascript such if ([x != null, y != null] === [true, true]) { 'good'; } that's why not evaluated true. is there alternative way express in coffeescript? if want check see if of arguments not none , this: def check_all(*args): return all(arg not none arg in args) if wanted check if they're true (like literally true) use def check_all(*args): return all(arg true arg in args) if wanted take in list (instead of variable number of parameters, remove asterisk.

Ace editor blurring the text -

Image
i'd use ace editor display program code part of tutorial, twilio does. how can tell ace highlight text , blur rest? see below. add css class applying blur filter, , add blur class lines afterrender event editor.renderer.on("afterrender", function(e, renderer) { var textlayer = renderer.$textlayer; var config = textlayer.config; var session = textlayer.session; var first = config.firstrow; var last = config.lastrow; var lineelements = textlayer.element.childnodes; var lineelementsidx = 0; var row = first; var foldline = session.getnextfoldline(row); var foldstart = foldline ? foldline.start.row : infinity; var usegroups = textlayer.$uselinegroups(); while (true) { if (row > foldstart) { row = foldline.end.row + 1; foldline = textlayer.session.getnextfoldline(row, foldline); foldstart = foldline ? foldline.start.row : infinity; ...