Posts

angularjs - Trying to access facebook graph api via angular js http get returns error -

angularjs - Trying to access facebook graph api via angular js http get returns error - i'm trying utilize code below user links via facebook graph api. not work. $http.get('https://graph.facebook.com/me?access_token='+response.authresponse.accesstoken).success(function(data) { alert(data); }).error(function(data, status, headers, config) { alert(data+status+headers+config); }); angularjs

xml - JAXB @XmlAnyElement ignoring CDATA -

xml - JAXB @XmlAnyElement ignoring CDATA - our application working fine till encountered cdata section in incoming xml. know cdata in xml quite mutual case. how forgot it. using jaxb mapping in next way @xmlrootelement(name="myroot") @xmlaccessortype(xmlaccesstype.field) public class myroot { @xmlelement(name="one") private string one; @xmlelement(name="three") private string three; @xmlanyelement private list<object> remaining = new arraylist<object>(); public myroot() { } } i receive next xml application. didn't understand why jaxb ignoring cdata in /myroot/two/bla2/one. after transformation see output <two><bla><bla> <bla2><one> function matchwo(a,b) { if (a < b && < 0) { homecoming 1;} else { homecoming 0;}} </one></bla2> <two> (notice there no cdata) here xml <myroot> <one></one> <two> <...

php - How to print out the value in view file? -

php - How to print out the value in view file? - i have array that, want print out in view file, it's empty, array array( (int) 0 => array( 'productsusernode' => array( 'product_user_node_id' => '155', 'user_node_id' => '53', 'product_id' => '1', 'is_active' => '1', 'expiry' => '0000-00-00', 'created' => '2013-01-10 10:27:22', 'modified' => '2013-01-10 10:27:22', 'created_view' => '10:27 am, jan 10,2013', 'modified_view' => '10:27 am, jan 10,2013' ), 'usernode' => array( 'user_node_id' => '53', 'division_id' => '28', 'role_id' => '4', 'user_id' => '56', 'created' => '2...

asp.net mvc - Automatically close window after some time using JQuery -

asp.net mvc - Automatically close window after some time using JQuery - i want close window automatically after 5 seconds using jquery. tried not working. function submitdesignrequestform() { var frm = $("#frmdesignrequestform").serialize(); $.post("/admin/savedesignrequestform", frm, function(data) { notify("success", "saved successfully"); settimeout(function() { window.close(); }, 500); }); }); } but above function show message not close windows. settimeout(function() { notify("success", "saved successfully"); window.close(); }, 5000); from above function "saved successfully" pops window not close. please guide! the problem not in code, tried identical one: info empty string otherwise same. and worked perfectly, in google chrome, see these links problem can firefox , ie: firefox: window.close() doesn't work on f...

android - Delete a unpublished app from Google Play -

android - Delete a unpublished app from Google Play - i create new app in google play account. did not publish yet. ready publish. is there way delete permanently business relationship since not published yet? i can not find remove or delete button. read here , here, couldn't find delete button. there unofficial delete might perchance bug/glitch in old android developer console. instructions below. switch old developer panel select application deletion , create sure it's description , necessary publishing components filled out. (you may utilize false info) save application draft. not publish select apk tab press delete on current activated apk , draft application should deleted. might need press "switch advanced" screen show. crucial - application must not have been published before. android google-play

django - How can I know was a video-file already viewed in that day? -

django - How can I know was a video-file already viewed in that day? - i have internet-shop purchase video lessons. now, consider, need add together constrain: people can see video lesson 1 time per day (24 hours). how can know video-file viewed in day? create new model map user , vido date video viewed. can check if user has viewed video on day. class videoviewed(models.model): user = models.foreignkey(user) page = models.foreignkey(video) date = models.datetimefield() manager = resultmanager() django nginx

php - Apollo activemq ack -

php - Apollo activemq ack - hy, utilize apollo activemq broker , stomp. wrote 2 methods 1 sending message broker , 1 reading message queue. when send 1 message borker , read it, ok, can read , acknowledge message,my problem appear when run multiple times sending message , have many message in queue, when seek read , acknowledge message every time receive first message queue. if run loop " while ($con->hasframe) { $msg = $con->readframe(); $con->ack($msg); } everything ok, can read , acknowledge message queue. update : activemq not removing messages queue when ack received php. ack homecoming true message still there in queue. update : problem seems "prefetchsize" default 1000, want set 1, utilize stomp interact broker, please give me hint should alter value 1000 1. try adding activemq.prefetchsize:1 header in subscribe frame. php activemq stomp apollo