Posts

Chrome Extension sendMessage error from content script to background html -

i updated chrome extension json version 2, , trying extension work again. problem sendrequest depreciated along way. copy code https://developer.chrome.com/extensions/messaging.html script , modify own variable names, , doesn't work. so go , put in original code , still doesn't work. have read multiple questions similar [and won't closed duplicate, because none of them same situation]. manifest.json: { "background": { "page": "background.html" }, ... ... ... "content_scripts": [ { "css": [ "style.css" ], "js": [ "jq.js", "script.js" ], "matches": [ "http://*.craigslist.org/*/*.htm*" ] } ], ... ... ... "permissions": [ "tabs", "http://*.craigslist.org/*/*.htm*" ], "manifest_version": 2, "update_url": "http://clients2.google.com/service/updat...

Loop through an array consisting of numbers and strings, but return sum of only numbers ActionScript -

this should pretty basic, there aren't many tutorials actionscript out there. javascript close, can't find how either. want able have mixed array consisting of string , number data types, loop through array , sum of numbers while ignoring strings. example array: var myarray:array = [13, 10, "blah", 5, "eh", 10, "twenty", "thirty"]; something following should trick: var total:number = 0.0; (var i:int=0; i<myarray.length; i++) { if(myarray[i] number) total += myarray[i]; } trace(total);

knockout.js how to init tinymce? -

i trying integrate timymce knockout, idea is, when click on link, show content non-editable, click on test edit open tinymce. , create button save , switch edit model view model. here sample code , tinymce didn't work now... help. and how should debug knockout? sample code here: http://jsfiddle.net/princa/zadek/3/ 1) need these bindings bind tinymce knockout model. https://github.com/stevesanderson/knockout/wiki/bindings---tinymce 2) html textareas , display areas. <a href="javascript:void(0)" data-bind="click:function(){showeditor(true)}">show editor</a> | <a href="javascript:void(0)" data-bind="click:function(){showeditor(false)}">hide editor</a> <br/> <div data-bind="text: fieldone, visible:!showeditor()"></div> <div data-bind="css:{'nodisplay':!showeditor()}"> <textarea class="tinymce" data-bind="tinymce: fieldone...

grails - Paypal Sandbox IPN always fails -

i'm developing grails app using http://grails.org/plugin/paypal plugin. i've followed instructions, configured app work dyndns (no-ip). i can access app outside network. payment correct, if click on "back test's store" link returns site. the problem no ipn sent ipn handler. in ipn history can see transactions in error state, no http response code shown. it retries 8 times each message. notification url correct. what else can try? i answer myself, looks paypal not send ipn posts url ports other 80 or 443

powershell - cmdlet says parameter cannot be retrieved: expression must be readable -

my cmdlet has get-deal command, receive value pipeline: [cmdlet(verbscommon.get, "deal")] public class getdealcmdlet : insightbasecmdlet { private list<object> _legalentities = new list<object>(); [parameter(position = 0, mandatory = true, valuefrompipeline = true,valuefrompipelinebypropertyname = true)] public list<object> legalentity { set { _legalentities = value; } } protected override void processrecord() {...} } it works fine if passed list of string or other types. if passed object created in search-deal : foreach (...) { psobject dealvalue = new psobject(); dealvalue.properties.add(new psnoteproperty(legalentity,convert.toint32($deal.properties["legalentityid"].value.tostring()))); dealvalue.properties.add(new psnoteproperty("name",deal.properties["name"].value.tostring())); writeobject(dealvalue); } i error : pipeline input cannot processed because default value of pa...

javascript - this.parentNode returns undefined when run using Firefox -

when following code run via firefox , click x button, javascript returns tmpfield undefined. need parentnode of button div. <head> <title></title> <script type ="text/javascript"> function removeitem() { if (document.addeventlistener) { var container = document.getelementbyid("inputcontainer"); var tmpfield = this.parentnode; alert("field: " + tmpfield); } } </script> </head> <body> <table width="100%"> <tr> <td style="width: 10%; vertical-align:top;">field:</td> <td id="inputcontainer"> <div id="divinput1" style="display: inline;"> <input id="txtcomment1" name="txtcomment" type="text" maxlength="35" /> ...

python - Qt: Alternatives to QTable for large datasets -

i'm writing application displays content of database table. application shall display image associated each tuple/row, among textual , numeric data. the trouble dealing huge data sets (up 50k entries). user will, of course, never see more few entries @ once. should still able browse data in table-like view. regarding visual appearance, qtable job. but, after reading blog posts this, qtable seems pretty slowish such tasks, understandable since, let's 50k entries, on order of 50k widgets qobjects need created. i though of using qslider replacement scrollbar of table , fixed layout. whenever slider changed, content of gui-elements make rows adjusted. however, there widget and/or solution provides , feel of qtable allows me generate widgets displayed? many in advance. overriding paint-method of corresponding delegate-class solves problem. cmannett85.