Posts

DELIMITER in mysql does not work -

the below code works correctly when use command line (mysql.exe) execute, incorrect when use sql query in phpmyadmin or using scriptrunner (java) execute. the error: error syntax execute delimiter $$ how can solve problem? -- procedures -- delimiter $$ create definer=`root`@`localhost` procedure `upload_photo`( in owner_id int, in photo_name text, in photo_url text, in thumbnail text ) begin declare inserted_id int unsigned default 0; insert photo(`owner_id`, `photo_name`, `photo_url`, `thumbnail`) values(owner_id, photo_name, photo_url, thumbnail); set inserted_id = last_insert_id(); select * photo photo_id = inserted_id; end$$ -- delimiter ; phpmyadmin uses mysqli doesn't support delimiter. see if delimiter needed @ all. running script multiple rows , mysql runs of them semicolons delimiters.

windows 8 - Unable to debug Win 8 app using Mixed (Managed and Native) debugger -

in winrt app when switching debugger type mixed (from managed), application fails start.. pausing debugger shows execution at: static void main(string[] args) { global::windows.ui.xaml.application.start((p) => new app()); } the output window continually shows eetypeloadexceptions different memory locations: first-chance exception @ 0x757e4b32 in applicationname.exe: microsoft c++ exception: eetypeloadexception @ memory location 0x0bf7d134. it looks clr exception is: clr:(c:\windows\microsoft.net\assembly\gac_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll) rejecting native image because native image dependency c:\windows\microsoft.net\assembly\gac_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll had different identity expected i need use native debugger sos debugging extension (sos.dll) when creating new blank app , adding same dependencies app, don't experience problem, specific app. any ideas on issue or how troubleshoot furthe...

android - Exception "inflating class fragment" -

getting run time exception "inflating class fragment" when tried add google map in android application. go through previous comments similar have posted. couldn't solve it. log file attached here 08-07 05:30:41.587: e/androidruntime(2574): fatal exception: main 08-07 05:30:41.587: e/androidruntime(2574): java.lang.runtimeexception: unable start activity componentinfo{com.example.newapp/com.example.newapp.newapp}: android.view.inflateexception: binary xml file line #17: error inflating class fragment 08-07 05:30:41.587: e/androidruntime(2574): @ android.app.activitythread.performlaunchactivity(activitythread.java:2211) 08-07 05:30:41.587: e/androidruntime(2574): @ android.app.activitythread.handlelaunchactivity(activitythread.java:2261) 08-07 05:30:41.587: e/androidruntime(2574): @ android.app.activitythread.access$600(activitythread.java:141) 08-07 05:30:41.587: e/androidruntime(2574): @ android.app.activitythread$h.handlemessage(activitythread.java...

Why my request get stuck when mule is secured by HTTP Basic Authentication? -

i new mule, , configured mule security http basic authentication following: <spring:beans> <!-- setup authentication --> <ss:authentication-manager alias="authenticationmanager"> <ss:authentication-provider user-service-ref="appauthservice"> </ss:authentication-provider> </ss:authentication-manager> <spring:bean id="appauthservice" class="org.jamee.demo.mule.rest.appauthservice" /> <ss:global-method-security jsr250-annotations="enabled" /> </spring:beans> <flow name="muleflow1" doc:name="muleflow1"> <http:inbound-endpoint exchange-pattern="request-response" host="0.0.0.0" port="8081" path="rest" doc:name="http"> <mule-ss:http-security-filter realm="mule-realm" /> </http:inbound-endpoint> <jersey:resources doc:name="rest"> <component...

hdfs - Hadoop dfs put fails -

i getting error (hadoop dfs -put) when process triggered shell script (run jenkins) during nigh, however, runs ok if try manually later. put: lease mismatch on /shared/file1.tsv._copying_ owned dfsclient_nonmapreduce_-2031300157_1 accessed dfsclient_nonmapreduce_-1375175076_1 13/08/07 07:11:39 error hdfs.dfsclient: failed close file /shared/epg/programs/programs/20130812/programs__20130812_20130807.tsv._copying_ any suggestion why might happen?

java - Why does my Android app stops, when I move it to the background? -

i'm developing android application , have following code lines: @override public boolean onkeydown(int keycode, keyevent event) { if (keycode == keyevent.keycode_back || keycode == keyevent.keycode_home) { movetasktoback(true); return true; } [... more code ...] } when test on emulator, works , closes app , opens @ point before. when load apk on real device, stops application , starts new, when open again. loading screen. where problem? have tried saving state of activity ? solution here

javascript - Firebase transaction does not update actual value in the Firebase DB -

i using angularjs , firebase in app. when user press button want increase price of auctioning item $0.01 , after has been committed firebase db - deduct $1.00 user's balance. use firebase transaction() that, value of item not updated in firebase db: $scope.auctionpriceref = travelbidsfirebaseref.child('auction/' + $scope.auction.id + '/price'); $scope.auctionpriceref.transaction(function(currentvalue) { console.log("current val + 0.01: " + (currentvalue + 0.01)); return currentvalue + 0.01; }, function(error, committed, snapshot) { if (error) { console.error("error increasing auction price: " + error); } if (committed) { console.log("successfully increased auction price to: " + snapshot.val()); $rootscope.authuser.balance -= 1.0; } }); this code executes without errors , can see following output @ console (the initial price of item 1.00): current val + 0.01: 1.01 increased auction price to: 1 the collback execute...