Posts

ios - building xcode project from jenkins fails. when building in command line runs just fine. why? -

ios - building xcode project from jenkins fails. when building in command line runs just fine. why? - building xcode project jenkins fails. when building in command line runs fine. why? is error get: [beror]code sign error: no matching provisioning profile found: build settings specify provisioning profile uuid “_uuid_”, however, no such provisioning profile found. [beror]codesign error: code signing required product type 'application' in sdk 'ios 7.1' this command line used: xcodebuild -project projectname.xcodeproj/ -target targetname -configuration release -sdk iphoneos7.1 clean build ps: object censored question can appear online, there real info there before. are using login key-chain or did create different key-chain jenkins builds app signing? if using login key-chain create sure unlock key-chain during build. if using different key-chain create sure swap key-chains , unlock it. jenkins - xcode build works codesign fails - threa...

Sql statement JavaScript -

Sql statement JavaScript - i see statement in executesql below: addtodo: function (text) { app.db.transaction(function (tx) { var ts = new date(); tx.executesql("insert todo(todo, added_on) values (?,?)", [text, ts], app.onsuccess, app.onerror); }); }, my question is: " values (?,?) " mean? that's prepared statement, should utilize prevent sql injection attacks. e.g. var text = "foo"; var ts = "bar"; tx.executesql("insert todo(todo, added_on) values (?,?)", [text, ts]); is same as: tx.executesql("insert todo(todo, added_on) values ('foo','bar')"); javascript sql sqlite

Bash process substitution in Python with Popen -

Bash process substitution in Python with Popen - i'm attempting create looped video file calling ffmpeg python subprocess library. here's part that's giving me problems: import subprocess sp sp.popen(['ffmpeg', '-f', 'concat', '-i', "<(for f in ~/desktop/*.mp4; echo \"file \'$f\'\"; done)", "-c", "copy", "~/desktop/sample3.mp4"]) with above code i'm getting next error: <(for f in /home/delta/desktop/*.mp4; echo "file '$f'"; done): no such file or directory i did find phrased question here. i'm not sure how solution might apply solving issue. edit: help everyone! next advice in comments , looking elsewhere ended changing code this: sp.popen("ffmpeg -f concat -i <(for f in ~/desktop/*.mp4; echo \"file \'$f\'\"; done) -c re-create ~/desktop/sample3.mp4", shell=true, executable="/bin/bash") ...

c++ - Does boost offer make_zip_range? -

c++ - Does boost offer make_zip_range? - here: http://stackoverflow.com/a/20703588/1593077 comment suggests useful construct, similar make_zip_iterator , ranges: takes tuple of ranges , produces new range - begin() , end() iterators appropriate zip iterators. now, should not hard implement, wondering - isn't offered boost somehow? boost.range providing combine() function zip_iterator 's range. http://www.boost.org/doc/libs/1_56_0/libs/range/doc/html/range/reference/utilities/combine.html c++ boost iterator tuples commutativity

javascript - Weird behaviour with 'use strict' and read only properties -

javascript - Weird behaviour with 'use strict' and read only properties - on mdn strict mode reference page says any assignment silently fails in normal code (assignment non-writable property, assignment getter-only property, assignment new property on non-extensible object) throw in strict mode so, using example, doing next throws typeerror "use strict"; var obj1 = {}; object.defineproperty(obj1, "x", { value: 42, writable: false }); obj1.x = 9; // throws typeerror however ran illustration seems 'use strict' beingness little overzealous rule. here setup definelol.js object.defineproperty(object.prototype, 'lol', { value: 'wat' }) setlol.js 'use strict'; console.log('here 0'); var sugar = { lol: '123' } console.log('here 1'); var verbose = {}; verbose.lol = '123'; console.log('here 2'); console.log('sugar.lol:', sugar.lol); console.log(...

ios - UITableView in a Today Extension not receiving row taps -

ios - UITableView in a Today Extension not receiving row taps - i have ios 8 app today extension. extension has uitableview in , rendering correctly. however, didselectrowatindexpath doesn't seem called reliably. guessing because notification center uiscrollview , embedding uitableview in causes issues, not sure. does know might causing issue? workaround: set opacity 0.01 this: self.view.backgroundcolor = [uicolor colorwithwhite:1 alpha:0.01]; ios ios8-today-widget

Matlab, how to see the source code of the function mean()? -

Matlab, how to see the source code of the function mean()? - i know built-in functions cannot accessed in matlab, true functions simple ones? can see somewhere source code of predefined function mean(), , in case of complex numbers z^5 5 solutions complex number (because matlab displays 1 solution) ? type "edit mean" command window. matlab