Posts

extjs - Query for child component with a specific xtype -

Is there a method for querying a child component of xtype 'myxtype'? For example, you have a panel, and there is a custom proxy located on a toolbar inside this panel. The searcher works great to type backups, but there is no method like FindBildType and the method below only works on the elements Ext.ComponentQuery is a singleton, but not for xtypes? Another way to ask about the component? yourCt.down yourCt .child will do the same, but is limited to children directly, the first example of a container with the specified type of component children and lineage will be found. Container. yourCt.query will be all of matching components under the container as an array. yourCt.up will be available to the guardian before the matching container. Oh, and Ext.ComponentQuery.query can move an optional object that is used as the starting point for the query. These are all basic (and clearly documented)

linux - send mulitple args to system() in C -

Suppose I have a line bash script that executes in all the arguments #! / Bin / bash $ 1 Then, the command ./ one_line_script.sh "ls -lh" works fine except that I have a code which is Accept logic and sends them to my bass script int main (int argc, char * argv []) {char command [1000]; Sprintf (command, "/ path / to / one_line_scripts.ss% s", RGR [1]); System (order); Return 0; } And I have a problem here, because ./ c_program "ls -lh" gives only ls outputs some arguments Do not understand how I need to modify my code, so can it accept some arguments? I have issues with fork and exec For example, to avoid completely quote, consider for example that if any ' is contained within an argument - when sprintf is doing the CMD-line, but it The cutting line breaks if the cutting line is broken. int pud = fork (); If (pid == 0) {execl ("/ bin / sh", "sh", "-c", arg1, arg2, arg3, 0); } Else {in...

Send google analytics event in loop -

I'm a newbie in analytics. I have created a track record event every time a time-tracking creates time-records in the web application, but the user records a one-time record for several dates Who should do a record-created event for each new record? Is the job of a simple loop or Google thinks my event is coming very fast to them? Do I have a setTimeout ? _. Each (date, function () (ga ('send', 'event', 'record-created') should be added; // perhaps wrap up the line in one setout?}); : Each analytics.js tracker object starts with 20 hits, which is 2 Hit is loaded per second. It applies to all hits except ecommerce (item or transaction). Plus you have "only" 500 interaction hits per session , So you have too many Iv Will not leave replies to or GA data

Exist a service like in android for windows phone 8? -

I want to create a service like Android that is always running Accelerometer data in the background. I have searched for a background agent but I have read that you can not get data from the sensor but the information is not very clear. Is there any problem that can solve this problem? Thanks All sections in Microsoft.Devices.Sensors namespace are unsupported Source in Agents: You Can not Do It

php - While shows only one result -

itemprop = "text"> I have this code: & lt; Php (includes "config.php"); // mysql connect and clear mysql (i) filter $ cislonakupus = $ _GET ['cislonakupu']; $ Su = mysql_query ("Select * from 'count_size` where' caslonacupu '=' $ cislonakupus'"); While ($ line = mysql_fetch_array ($ su)) {$ pid1 = $ row ['idproduktu']; $ S9 = $ line ['s']; Echo $ s9; Die (); }? & Gt; And as shown below, my table shows two records. table "count_size" cislonakupu = 123, S = 1 cislonakupu = 123, s = 2 echo first record only print out s as 1, and s as 2 Why is that so? You have a dye in the loop

asp.net - Defining a WebAPI route without the /api/{controller} prefix -

I want to request in the format without the prefix / api / {controller} (like www.myapp.com /download/image1.jpg ) by a WebAPI controller method. Is it possible or do I need to switch to the MVC controller? I have set the following route: config.routes.MapHttpRoute (name: "check", path: "download", default: new {controller = "download", action = "check in "}); But unfortunately this does not work, the controller is not even created (I have a mark in the constructor) Try attribute routing (only available in Web API2)

How do I set/unset cookie with jQuery? -

How can I set and set cookies using jQuery, for example test Create a cookie and set the value to 1 View the plugin: You can then: $ Cookie ("test", 1); To delete: $. Removecookie ("test"); Additionally, to set a fixed amount of fixed days (10 here) on the cookie: $. Cookie ("test", 1, {expiration: 10}); If the timeout option is omitted, the cookie becomes a session cookie, and the browser is deleted when exited. To cover all options: $ The cookie ("test", 1, {expires: 10, // 10 day path is ending: '/', // the value of the path attribute of the cookie // (default: path of the cookie page) domain: 'Jquery.com', // the value of the domain's attribute of the cookie // (default: the domain of the page that creates the cookie): safe: true // If the cookie's safe feature is set / and cookie transmission / / Will need a secure protocol (default to false).}); To read the value of the cook...