Posts

Facebook PHP SDK- Storing user data in MySql database not working -

i have been using fb sdk can user login fb account, during phase want user data stored on db , after following multiple solutions on doesn't seem work. data printing out variable proving there nothing wrong that, think there wrong sql insert statement cant seem see it. my code main page given below: <?php // path php-sdk include('config.php'); require '......./src/facebook.php '; $facebook = new facebook(array( 'appid' => '', 'secret' => '', )); /* $facebook = new facebook(array( 'appid' => appinfo::appid(), 'secret' => appinfo::appsecret(), 'sharedsession' => true, 'trustforwarded' => true, )); */ // see if there user cookie ## connect mysql server $mysqli = new mysqli(db_server, db_username, db_password, db_database); # check connection if ($mysqli->connect_errno) { echo "<p>mysql error no {$mysqli->connect_errno} : {$mysqli->connec...

c# - ILNumerics: manually created ticks -

i created manual ticks shown on ilnumerics page: http://ilnumerics.net/axis-configuration.html . let take first example dates on x-axis. problem following: in program want use interactive mouse zoom , drag. if tick labels , gridlines drawn out of left , right borders of plotcube. (also in mentioned example.) i found out can fix gridline problem using clipping property of plotcube. panel size looks this: plotcub.clipping = new ilclipparams{ plane0 = new vector4(1, 0, 0, 0.63f), plane1 = new vector4(-1, 0, 0, 0.63f) }; but tick labels still drawn outside borders. workaround right place panels on left , right of plotcube. guess there better way deal that?!? and problem clipping fits current panel size. want change panel size @ runtime , clipping doesn't fit more. didn't find out how correct factors clipping. or there another/better solution? thanks in advance help! edit: sorry, seems blind!! used tickcreationfunc @ http://...

javascript - filling ul li with images -

i have problem ul li fill <ul> <li></li> <li></li> <li></li> <li></li> </ul> i need put in li javascript but please without example : $("ul").html("<li><img src='something' /></li>"); because need ul li before javascript load. i want after javascript : <ul> <li><img src='something' /></li> <li><img src='something' /></li> <li><img src='something' /></li> <li><img src='something' /></li> </ul> my question : how fill ul li images. and javascript work loop. because maybe have variant : <ul> <li></li> <li></li> <li></li> <li></li> </ul> 4 li , 2 image, , : <ul> <li><img src='something' /></li>...

How to start Logstash config-file -

i have problem logstash when want start config file command"bin/logstash -f logstash-rt.conf" return: error: no config files found: logstash-rt.conf can make sure path logstash config file? may interested in '--configtest' flag can use validate logstash's configuration before choose restart running system. can me ? thanks you need put config file in logstash folder , path should of logstash folder when execute command bin/logstash relative path when run conf file is.

android - how to detect and notify user of message from server? -

app sent transaction server, user closes app, message needs sent phone server 10+ minutes later. phone may asleep, or user might checking email. question have is: how can phone notified message has been received server ? how display message ? a possible solution google cloud messaging, still not able answer these 2 questions 1) have use service that. 2) , show message. do this. the variable , method members of service class: public final static string action = "com.apps.example.mainactivity"; private void messagefromserver()//this method sends broadcast messages { intent intent = new intent(movement_update); string messagefromserver=servermessage //here put server message intent.putextra("messagefromserver", messagefromserver); sendbroadcast(intent); } and methods main activity: you have register receiver in onresume method: @override public void onresume() { intentfilter intentfilter; intentfilter= ne...

Android stack of fragments view -

Image
now i'm developing app in 1 of functions showing users profiles. profiles designed stack of fragment or views. each fragment or view under previous fragment or view , can swiped animation. can see on image: but don't know how this. maybe there libs me thing or ideas ? thx this great fragment transaction library https://github.com/desarrolloantonio/fragmenttransactionextended you can use fragmenttransactions replace, add, remove etc. http://developer.android.com/reference/android/app/fragmenttransaction.html

ios uitextfield to get text and manage label and image how to manage this -

Image
i want make speech bubble app , if have demo link please share me ,here share image please me have 1 text field , textfield text set in label dynamic height , image set dynamic height width here share image link please check link image screenshot have facing lost of problem here code here code -(void)textheight { nsstring *message = txtmain.text; cgsize size = [message sizewithfont:[uifont fontwithname:fontname size:fontsize] constrainedtosize:cgsizemake(lbltextinbubbles.frame.size.width, 9999.0f) linebreakmode:nslinebreakbycharwrapping]; cgfloat height = size.height+60; cgfloat width = size.width+50; // nslog(@"w== %f,, h==%f",width,height); if(lblpositionwidth < 210) { if(lblpositiondynamicchange > 33) { lblpositiondynamicchange=lblpositiondynamicchange-3; } lbltextinbubbles.frame=cgrectmake(lblpositiondynamicchange, lbltextinbubbles.frame.origin.y, width, height); lblp...