Posts

google analytics - pandas.io.ga not working for me -

so have worked through hello analytics tutorial confirm oauth2 working expected me, i'm not having luck pandas.io.ga module. in particular, stuck error: in [1]: pandas.io import ga in [2]: df = ga.read_ga("pageviews", "pagepath", "2014-07-08") /usr/local/lib/python2.7/dist-packages/pandas/core/index.py:1162: futurewarning: using '-' provide set differences indexes deprecated, use .difference() "use .difference()",futurewarning) /usr/local/lib/python2.7/dist-packages/pandas/core/index.py:1147: futurewarning: using '+' provide set union indexes deprecated, use '|' or .union() "use '|' or .union()",futurewarning) --------------------------------------------------------------------------- typeerror traceback (most recent call last) <ipython-input-2-b5343faf9ae6> in <module>() ----> 1 df = ga.read_ga("pageviews", "pagepath", ...

api - WordPress new comment xmlrpc.php -

i've got problem: need post new comment using xmlrpc.php , post request. i read documentation , wrote xml request. sent blog/xmlrpc.php, there problem: faultcode -32700 parse error. not formed.i tried find solution, other xml not work too. my xml: <?xml version="1.0" encoding="utf-8"?> <methodcall> <methodname>wp.newcomment</methodname> <params> <param> <value> <int>1</int> </value> </param> <param> <value> <string>grinj</string> </value> </param> <param> <value> <string>0</string> </value> </param> <param> <value> <int>1406</int> </value> </param> ...

How to read outside of {% %} using nunjucks parser for creating an extension -

i trying create extension data binding. due unavailability of parse documentation, stuck. for below syntax, how check/read "type", i.e. how read outside of {% %}. <input type="text" id="categoryname" {% data-bind "category.name" %} /> <input type="checkbox" id="categoryistop" {% data-bind "category.istoplevel" %} /> the below syntaxes work fine , use if above not possible. {% input "id=categoryname, value=category.name, type=text" %} {% input "id=categoryistop, value=category.istoplevel, type=checkbox %} <input id="categoryname" {% data-bind "text category.name" %} /> <input id="categoryistop" {% data-bind "checkbox category.istoplevel" %} />

c# - Change color of a cell of a datagridview inside a tabpanel -

i got tabcontrol 2 tabpanels inside. tabpanels contains datagridview , i'm trying change color of cell. if change color of first datagrid contained in first tabpanel works. if same other tabpanel code didn't nothing. dgvinthefirsttabpanel.rows[0].cells[6].style.backcolor = color.yellow; this work fine, but... dgvinthesecondtabpanel.rows[0].cells[6].style.backcolor = color.yellow; this didn't work, think problem change of tab panel active. i solve problem, exist bug don't recognize tabs if didn't click inside 1 of them. solve can in load of form. in way can modify objects contain in others tab. private void main_load(object sender, eventargs e) { //scan tabs tabcontrol1.selectedtab = tabcontrol1.tabpages[1]; tabcontrol1.selectedtab = tabcontrol1.tabpages[2]; tabcontrol1.selectedtab = tabcontrol1.tabpages[0]; ... } best regards then can modify color of cell or property of da...

debugging - Cannot debug a javascript issue in Chrome Developer Tools/Firebug -

i have simple javascript syntax error in 1 of pages. in console chrome developer tools following message: uncaught syntaxerror: unexpected token ( ... my_file.php(line 1799) and failed load resource: net::err_cache_miss however, cannot inspect page's source. shows in blank, or not loaded. i looked resource tab, script file , searched affected line. line 1799 has commented instruction: //location.reload(); it doesn't make sense , not first time had report in chrome find out problem in line or file. in firebug nothing reported, despite fact javascript not work. what steps try figure out error coming from? i tried: refreshing page. it's common knowledge script loads after load page second time; inspecting file's script in source tab - shows in blank (regardless of how many times refresh); inspecting file's script in resources tab - error shows in commented line. line 1799 shows commented instruction; inspecting file's script in fire...

android - sending and receiving emoticons to webservice -

i have implemented https://github.com/ankushsachdeva/emojicon lib emoticons , emoticons displayed in edit text. have edit text takes in both text , emoticons. want text/emoticons entered in edit text sent web service. when text edit text can see '??' of emoticons on server.i know got convert emoticon unicode , send don't know how implement , how decode emoticons in edit text. please me. i text edit text , save in 'userstatus' string , pass json as list<namevaluepair> params = new arraylist<namevaluepair>(); log.d("userstatus",userstatus); params.add(new basicnamevaluepair("my_status",userstatus)); params.add(new basicnamevaluepair("user_id",userid)); try{ // getting json string url jsonobject json3 = jparser.makehttprequest(url_updateprofilestatus, "post", params); my json class public class jsonparser { static inputstream = null...

ActiveMq Inflight Count not decreasing -

i using activemq 5.5.0 version in project. i facing 1 problem due reason inflight count keep on increasing , rate of increment not high. after days become equal prefetch size queue stops responding. could can me how make inflight count 0 without deleting queue ? you can make in-flight count go 0 purging queue web console (there's purge link on each queue on queues page); delete messages in queue without deleting queue itself. that satisfy question you've asked it, though suspect it's not want , meant "without deleting messages queue". if i'm wrong , wanted, great; if not, answer questions in comment added , we'll go there.