Posts

javascript - Running a serverside PHP with JQuery slider -

i've been looking new project further learn php after finishing codecademy course... however, i've run dead end , think has ajax-part of it, can't figure out what/where , how it's going wrong. the code: <html> <head> <meta charset="utf-8"> <script src="https://cdn.jsdelivr.net/jquery/1.11.3/jquery.min.js"></script> <link href="https://cdn.jsdelivr.net/jquery.roundslider/1.3/roundslider.min.css" rel="stylesheet" /> <script src="https://cdn.jsdelivr.net/jquery.roundslider/1.3/roundslider.min.js"></script> </head> <body> <div id="slider"></div> <!-- use roundsliderui documentation this: http://roundsliderui.com/ --> <script type="text/javascript"> $("#slider").roundslider({ radius: 80, min: 0, ...

How to combine two different Parameter arrays into a single array using Loadrunner? -

i using loadrunner vugen script. in script use web_reg_save_param saving array. instance; web_reg_save_param("timeslot","lb={\"datetime\":\"","rb=\",\"status\"", "ord=all",last); web_reg_save_param("timeslot1","lb={\"datetime\":\"","rb=\",\"status\"", "ord=all",last); we different timeslots in each request. need combine these 2 arrays single array values. any pointers help. here code should (roughly) like, assuming go loadrunner array called alltimeslots. code directly head keyboard without execution in loadrunner, take small defects par course type of on paper draft. int index, timeslot_limit, timeslot1_limit; char arrayname[20]="", sourcename[20]=""; ... timeslot_limit=atoi( lr_eval_string("{timeslot_count}") ); timeslot1_limit=atoi( lr_eval_string("{timeslot1_count}...

GAS: How to use UrlFetchApp to search private repo via GitHub API, with authentication? -

am trying scrape data private repo using github's api via google apps script (gas). i have accesstoken seems work normal things, when comes doing searches issues , accesstoken not accepted. https://api.github.com/search/issues?q=repo:esaruoho/ztracker_mac+state:open (+at) i'm trying access private repo (not 1 linked here, public, , link works) , attach ?access_token=token at end, reason not seem work. there other way of authentication? i'm trying figure out how modify urlfetchapp.fetch input required headers authenticate, i'm not figuring out kind of stuff github authenticates with here's trying do: https://api.github.com/search/issues?q=repo:esaruoho/ztracker_mac+state:open?access_token=yourtoken notice how have question mark (?) in url, can't put 2 in, have change question mark ampersand (&) https://api.github.com/search/issues?q=repo:esaruoho/ztracker_mac+state:open&access_token=yourtoken

ibm - Android Intent Service Class cast exception while doing App upgrade -

i have used intent service schedule service calls interval. service declared in androidmanifest file. , have created new intent service different name. then commented out intentservice1 , declared intentservice2 in manifest. problem starts here, when doing app upgrade test app upgrade scenario app getting crashed. have removed intentservice1 class project folder still crashing class cast exception. caused by: java.lang.classcastexception: com.xtify.sdk.alarm.metricsintentservice cannot cast com.ibm.mce.sdk.wi.alarmlistener @ com.ibm.mce.sdk.wi.abstractalarmscheduler.ensurealive(unknown source) @ com.ibm.mce.sdk.api.mceapplication$mceactivitylifecyclecallbacks.onactivityresumed(unknown source) @ android.app.application.dispatchactivityresumed(application.java:238) @ android.app.activity.onresume(activity.java:1372) @ android.support.v4.app.fragmentactivity.onresume(fragmentactivity.java:480) @ com.android.app.common.ui.activity.baseactivity.onresume(baseactivity.java:561) @ ...

c# - For loop only writing to my mssql stored procedure once? -

i have loop collects data c# web form , writes each item finds database via stored procedure. the problem i'm having it's writing database once. have stepped through code in visual studio , inserted test variables check data there , being captured, is. because stored procedure executing correctly first time know it's working. so think problem might how i've got try catch in loop? or possibly else entirely - fresh pair of eyes , point me in right direction! protected void log_hd_number() { ////write results db. sqlconnection conn = new sqlconnection("data source=;initial catalog=;integrated security=true"); sqlcommand cmd = conn.createcommand(); sqldatareader reader; cmd.commandtype = commandtype.storedprocedure; cmd.commandtext = "insert_requested_hd"; dictionary<string, string> hdsize = new dictionary<string, string>(); hdsize.add("harddisksizedata1", harddisksizedata1.text); hds...

pandas - Python: Sorting pivot table (multi index) -

i'm trying sort pivot table's values in descending order after putting 2 "row labels" (excel term) on pivot. to create pivot, i'm using following function: pt = pd.pivot_table(x, index = ['col1', 'col2'], values = 'col3', aggfunc = np.sum) i'm unable paste in table, in words, variable pt first sort col1 , values of col2 within col1 col3 within of those. great, sort col3 (the values) while keeping groups broken out in col2 (this column can order , shuffled around). the target output ( col3 in descending order order in col2 group of col1 ): col3 col1 col2 1 1.67 2 0.75 3 0.50 b 2 2.25 3 2.00 1 0.50 c 3 2.75 1 2.65 2 2.50 i have tried code below, sorts entire pivot table values , loses grouping (i'm looking sorting within group). ...

php - Thujohn\Twitter\Twitter::__construct() must be an instance of Illuminate\Config\Repository, instance of October\Rain\Config\Repository given -

how can pass illuminate\config\repository sentence instead of october\rain\config\repository . i'm try use thujohn twitter library. thujohn\twitter constructor has reference illuminate\config\repository in plugin.php, boot() method, have: app::register(\thujohn\twitter\twitterserviceprovider::class); $alias = aliasloader::getinstance(); $alias->alias('twitter', \thujohn\twitter\facades\twitter::class); thanks