Posts

html - safari - different calculation div percent -

i have 2 divs column. problem is, right div higher left div. why? want work percent. i have problem in safari i hope can me. don't understand problem. <!doctype html> <html lang = "de"> <head> <meta charset = "utf-8"> <link rel = "stylesheet" href = "./css/smartphone/480.css" media = "screen , (min-device-width: 1px) , (max-device-width: 480px)"> <link rel = "stylesheet" href = "./css/smartphone/1024.css" media = "screen , (min-device-width: 481px) , (max-device-width: 1024px)"> <link rel = "stylesheet" href = "./css/desktop/desktop.css" media = "screen , (min-device-width: 1025px)"> </head> <body> <div id = "links"> <div style = "height:20%; background-color:#ececec;"> </div...

javascript - How to Create JS Object from string -

i have string value (according console.log()): j:{"address":"north road 34 ","zip":"00002 ","state":"texas ","city":"dallas ","country":"us"} i dont know why starts letter 'j', interested in inside it. have tried json.parse() throws error: 'unexpected token: 'j'. the eval() solution doesn't seems work either , throws 'unexpected token: ':' thank you! well... explanation shouldn't start j: since it's invalid json, (probably because of bug). you can fix string make valid removing invalid prefix json string. var obj = json.parse(yourstring.replace(/^j:/, ''));

python - Grouping Data into Clusters Based on DataFrame Columns -

i have dataframe (df) resembles following: a b 1 2 1 3 1 4 2 5 4 6 4 7 8 9 9 8 i add column determines related cluster based upon values in columns , b: a b c 1 2 1 3 1 4 2 5 3 1 3 2 4 6 4 7 8 9 b 9 8 b note since 1 (in a) related 2 (in b), , 2 (in a) related 5 (in b), these placed in same cluster. 8 (in a) related 9 (in b) , therefore placed in cluster. to sum up, how define clusters based upon pairwise connections pairs defined 2 columns in dataframe? you can view set consolidation problem (with each row describing set) or connected component problem (with each row describing edge between 2 nodes). afaik there's no native support this, although i've considered submitting pr adding utility tools. anyway, like: def consolidate(sets): # http://rosettacode.org/wiki/set_consolidation#python:_iterative setlist = [s s in sets if s] i, s1 in enum...

continuous integration - Is it possible to trigger dependent job in Jenkins BEFORE main job starts? -

there few jobs: a , b , others. a depends b , i.e a job triggers b one, no vice versa. a , b cannot run simultaneously. so, problem jobs lock each other: a waits while b finished, when b can't start, because a started (is waiting completion of b ). is possible trigger b job before a job starts? up- , downstream features , found plugins can't solve issue. other jobs can start b job too. of jobs have not artifact dependencies. any ideas? try parameterized trigger plugin post build action -> trigger parametrized build on other project

java - MySql Azure in android? -

i writing application android . there need create database . there mysql database in ms azure. here's how record data application , read them not know. you might want take @ azure mobile services. it's service let expose database thru rest api (among other other things). http://azure.microsoft.com/en-gb/services/app-service/mobile/ here's link getting started page: https://azure.microsoft.com/en-gb/documentation/articles/mobile-services-android-get-started/

jquery - Bootstrap form-control class conflicting with Knockout databind -

i'm experiencing weird bug ie10 , doesn't happen in chrome or firefox. the bug when use form-control bootstrap combine on pair of parent-child select elements knockout data binding, child select takes forever refresh. if mouse on child element, refreshes right away. here's js reproduce it. try browse link ie10 , change value in first select , second select not refresh unless wait long time or mouse on second select . but if not use form-control class select elements, problem goes away in link . html <label for="cats">categories</label> <select id="cats" data-bind="options: availablecats, optionstext: 'name', value: selectedcat, event: {change: populateitems}" class="xform-control"></select> <label for="items">items</label> <select id="items" data-bind="options: availableitems, optionstext: 'name', value: selecteditem" class=...

Excel VBA Formatting of Text -

i have code printing text given set of cells shown below: 'sample sheets("sheet1").range("a11") = "b. test samples" sheets("sheet1").range("b12") = "ss" sheets("sheet1").range("c12") = "part no." sheets("sheet1").range("c12:h12").merge sheets("sheet1").range("c12:h12").horizontalalignment = xlcenter sheets("sheet1").range("i12") = "valve code" sheets("sheet1").range("i12:m12").merge sheets("sheet1").range("i12:m12").horizontalalignment = xlcenter sheets("sheet1").range("n12") = "type" sheets("sheet1").range("n12:p12").merge sheets("sheet1").range("n12:p12").horizontalalignment = xlcenter sheets("sheet1").range("q12") = "ta/sealed" sheets("sheet1").range("q12:t12...