Posts

bash - Setting popup box with osascript and a 10 second delay -

bash - Setting popup box with osascript and a 10 second delay - i'm looking setup popup box users see has 10 sec delay before exits , script continues. far i've got following. osascript -e 'tell app "system events" display dialog delay "10" "running health check \r \rplease allow 30 seconds or more complete." title "health check"' i've read can utilize "delay" function, i'm having problems getting inline. i found answer, needed add together in following... giving after 10 so overall script looks this... osascript -e 'tell app "system events" display dialog delay "10" "running health check \r \rplease allow 30 seconds or more complete." giving after 10 title "health check"' bash osascript

BizTalk integration with google drive -

BizTalk integration with google drive - i looking integrate biztalk 2010 google drive basic operations such create folders, upload files, share , alter permissions. has thought it? google-drive-sdk biztalk biztalk-2010

javascript - collapse article when next article is expanded (Readmore.js - Extension) -

javascript - collapse article when next article is expanded (Readmore.js - Extension) - i'm using readmore.js plugin. looked various solutions next issue none of them seemed perfect. i want add together function collapses expanded article - if any, when readmore pressed. thank's josh, manage flag variable isopen true or false when article expanded/collapsed. i'm trying figure out how collapse article when new 1 expanded. <script> $('#info').readmore({ morelink: '<a href="#">more examples , options</a>', maxheight: 390, aftertoggle: function(trigger, element, expanded) { if(! expanded) { // "close" link clicked $('html, body').animate( { scrolltop: element.offset().top }, {duration: 100 } ); } } }); $('article').readmore({maxheight: 240}); var isopen = true; $('article').readmore({ aftertoggle: function(trigger, element, expanded) { if (expanded) { isopen = true; } if(! expa...

android - When an sqlite3 query returns ? for some character, what does this mean about the underlying data? How do i vew that data in its unicode form? -

android - When an sqlite3 query returns ? for some character, what does this mean about the underlying data? How do i vew that data in its unicode form? - i'm receiving: ������ sqlite3 queries, , i'm trying determine means underlying data. these characters supposed cyrillic alphabet characters. these queries on desktop. i attempting render them on android application, values returned related queries in android application (when viewed in debugger at-least) are: \u0003Ȓ\u0001-500-300 in text view show them in see number of empty squares. i believe there must kind of encoding issue somewhere, i'm sure how check , see actual values stored in db, vs i'm getting etc... android sql unicode sqlite3

ruby on rails - Nginx timeout on Digital Ocean -

ruby on rails - Nginx timeout on Digital Ocean - i have ruby on rails application running on digitalocean. maintain running 504 gateway timeout error nginx. happened when running service unicorn restart , service nginx restart . don't see apparent in production logs problems nginx or unicorn. in fact saying root view rendered, despite me getting time out error. i'm bit confused might causing error , i'm not little unsure info can provide in question of help. edit unicorn config @ /home/unicorn/unicorn.conf , comment out line user 'rails' then: service unicorn restart ruby-on-rails nginx unicorn digital-ocean

xcode - Importing whole NSArray to core data -

xcode - Importing whole NSArray to core data - i have uitextview, user come in copied text, structured in lines: peter paul sonia edgar then run script store text in lines in nsarray. finally, want import array core data, imports lastly object - edgar - why? i have 2 functions - 1 fill array , sec loop through array , save context: - (ibaction)savearray:(id)sender { if ([inputtv.text length] > 0) { // --------- decrypt text nsstring *importtxt = inputtv.text; nsmutablearray *importedtext = [[nsmutablearray alloc] init]; nscharacterset *cs = [nscharacterset newlinecharacterset]; nsscanner *scanner = [nsscanner scannerwithstring:importtxt]; nsstring *line; while (![scanner isatend]) { if ([scanner scanuptocharactersfromset:cs intostring:&line]) { nsstring *copy = [nsstring stringwithstring:line]; nslog(@"copy: %@",copy); [importedtext addobject:copy]; //[newmanagedobject ...

user interface - How to add multiple Jquery UI sliders on a page -

user interface - How to add multiple Jquery UI sliders on a page - kindly check illustration of jquery ui slider. using 3 sliders on single page. when scroll slider other sliders move. drag 1 scroll other 2 scroll remain on same place inner content scroll. there alot of code in example. how can utilize 3 sliders minimal redundant code. kindly see illustration below , click view source link on page. http://jqueryui.com/slider/#side-scroll sample code $(function() { //scrollpane parts var scrollpane = $( ".scroll-pane" ), scrollcontent = $( ".scroll-content" ); //build slider var scrollbar = $( ".scroll-bar" ).slider({ slide: function( event, ui ) { if ( scrollcontent.width() > scrollpane.width() ) { scrollcontent.css( "margin-left", math.round( ui.value / 100 * ( scrollpane.width() - scrollcontent.width() ) ) + "px" ); } else { scrollcontent.css( "margin-left", 0 ); ...