Posts

Showing posts from September, 2010

c# - Speech recognition adding recognized speach to a string -

hi ive been trying on week enable custom searches on web via use of speech recognition. want when speak web search program add recognized speech , append string can add end of url in order search web any appreciated here current code using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.linq; using system.text; using system.windows.forms; using system.speech.recognition; using system.speech.synthesis; namespace aid { public partial class form1 : form { speechsynthesizer s = new speechsynthesizer(); speechrecognitionengine reg = new speechrecognitionengine(); public form1() { initializecomponent(); } private void form1_load(object sender, eventargs e) { string test = "12345".tostring().replace("123", ""); s.speak("booting up"); s.speak(...

ssas - MDX Group Dimensions y new Dimension -

i'm brand new in cube world , need query extending values form dimensions. example: having dimension [time].[numeric month], values [time].[numeric month].&[1]..[time].[numeric month].&[12] what need group values this [time].[numeric month].&[1]...[time].[numeric month].&[4] = [time].[numeric month].&[5]...[time].[numeric month].&[12] = b (is example) and perform query wich result show on rows a |->1 |->2 |->3 |->4 b |->5 |->6 |->7 |->8 |->9 |->10 |->11 |->12 i grouping when tried use same hierarchy used grouping level of row i've error(it make sense) of hierarchy used more once it's possible kind of query? this mdx: with member [tiempo].[mes numerico].[a] [tiempo].[mes numerico].&[1] member [tiempo].[mes numerico].[a ] aggregate ( { [tiempo].[mes numerico].&[1] ,[tiempo].[mes numerico].&[2] ,[tiempo].[mes numerico].&[3] ...

Dynamic Linq Select -

i having trouble wrapping head around dynamic linq select. have read scott gu's blog , each of suggested posts still cannot little brain understand. need query entity object passing in variable column name. assume entity (table) containing 3 columns named: mon, tue & wed. these contain data each record. not know column hit @ compile time need pass column name query. how can accomplish either using dlink or directly using expression trees? don't need dynamic linq that... var columniwant="mon"; // or "tue" or "wed" var query=db.stuff here; iqueryable<string> result; switch(columniwant) { case "mon": result=query.select(q=>q.mon); break; case "tue": result=query.select(q=>q.tue); break; case "wed": result=query.select(q=>q.wed); break; } that said, think work: var result=db.stuff here.select(columniwant);

php - Foreign value relations to store in revisionable -

i using venturecraft/revisionable in laravel project. wanted work on multiple models @ once, since revisionable doesn't allow me so, did in single models. there 1 instance, got revisionable output this chris changed status 4 5. but, instead this, wanted this: chris changed status new in progress. 4 , 5 foreign keys name new , in progress. how can use foreign value relations in revisionable. i've never used package, looking @ documentation looks need implement identifiablename() method in related model. instead of displaying foreign keys, display whatever returned identifiablename() method. so, if related model status , like: class status extends eloquent { use venturecraft\revisionable\revisionabletrait; public function identifiablename() { return $this->name; } }

mysql where not in to left outer join -

i have following query , convert using left outer join instead of not in see if run faster way. it's taking query 40 seconds run on our database. i'm not familiar enough using outer joins type of thing convert myself. select c.contact_id contact_id, c.orgid organization_id, c.first_name first_name, c.last_name last_name, a.address_state state cnx_contact c inner join cnx_address on c.home_address_uid = a.address_uid a.address_state = 'oh' , (c.orgid = 45 or c.orgid = 55) , c.contact_id not in ( select pc.contact_id cnx_contact c inner join cnx_address on c.home_address_uid = a.address_uid inner join cnx_contact_group_participant gp on c.contact_id = gp.contact_id inner join cnx_contact_participant_role cr on gp.participant_role_uid = cr.participant_role_uid inner join cnx_contact_group cg on gp.group_uid = cg.group_uid inner join cnx_contact_group_participant pgp on cg.primary_participant_uid = pgp.participant_uid ...

android - How to measure the shortest distance between two geological points? -

how measure shortest distance between 2 geological points? got(location.todistance() , manually made equation) , gives longest distance. suppose trying distance dhaka new delhi, earth round, there can 2 distances--one 1 side, , other side. getting biggest one. how can shortest one? this should out. location class in android has distancebetween , distanceto method.

python - Running Enthought Canopy GUI in a virtual environment -

this seems simple question i've looked around , cannot find simple answer. i've set virtual environment in project folder using canopy_cli venv <myvenv> , , can run plain python in environment. how can run canopy gui using virtual environment instead? your launch script have activate virtual environment: $ source myenv/bin/activate $ python my_app.py or equivalent in windows: c:> /scripts/activate.bat c:> python my_app.py see here details.

html - Unwanted White Space -

i wanted add 3 horizontal paragraphs next eachother. way figure out using position property got result. http://postimg.org/image/ti454xgz7/ i'm trying make clean possible appears way , code: <!doctype html> <html> <head> <meta charset="utf-8"> <title>promotions </title> <link href="project.css" rel="stylesheet" type="text/css"> </head> <body class="body"> <ul id="menu"> <li><a href="tyre plus.html">home</a></li> <li><a href="promotions.html">promotions</a></li> <li><a href="#">services</a></li> <li><a href="#">customers</a></li> <li><a href="#"> contact us</a></li> <li><a href="#">order now</a></li> <li><a href=...

sass - Is there a way to use the & on the same line as the parent selector? -

this question has answer here: ampersand (&) @ end, , part of, selector in sass 1 answer what trying apply same styles button's default state focused state. this, way more 1 line of styling: .my-button { color: red; &:focus: { color: red; } } in order avoid having duplicate styling, i'm hoping can write like: .my-button, &:focus { color: red; } but of course that's not how & works. there way this? i know write .my-button, .my-button:focus { ... } . i'm trying learn if possible sass. you use parent selector on own, &, &:focus : .my-button { &, &:focus { color: red; } }

php - I want to insert data to my database but it does not work -

everything seems fine , should work not variables should dont know why not insert data in database code: <?php date_default_timezone_set("europe/vilnius"); if(isset($_post['priduot'])){ $data =date("y.m.d"); $vardas=$_post[vardas]; $pavarde=$_post[pavarde]; $uzsakymas=$_post[uzsakymas]; $kiekis =$_post[kiekis]; $busena=$_post[busena]; $dbhost = "mysql.hostinger.lt"; $dbname = "u878197685_vehub"; $dbusername = "u878197685_ryzuh"; $dbpassword = "svetaineairida"; $lentele = "uzsakymai"; //the part not work $conn = new pdo("mysql:host=$dbhost;dbname=$dbname",$dbusername,$dbpassword); $statement = $conn->prepare("insert `$lentele ` ( `vardas`, `pavarde`, `uzsakymas`, `kiekis`, `uzsakymobusena`, `uzsakymodata`) values (:vardas, :pavarde, :uzsakymas, :kiekis, :uzsakymobusena, :uzsakymodata)"); $statement->execute(array( "vardas" => $var...

How to access a Static Class Private fields to unit test its methods using Microsoft Fakes in C# -

i have below static class , method in need unit test. able method has if condition uses boolean private variable , if value of false executes steps in if condition. public static class logger { private static bool bnoerror = true; public static void log() { if (!bnoerror) { //then execute logic here } else { //else condition logic here } } } is there way can set private field bnoerror value true can have 1 test method tests logic in if condition. for unittesting purposes, microsoft has implemented few helper classes ( privatetype , privateobject ) use reflection scenarios this. privatetype mytypeaccessor = new privatetype(typeof(typetoaccess)); mytypeaccessor.setstaticfieldorproperty("bnoerror", false); privatetype intended static access, whereas privateobject testing against instantiated objects instead. you need include microsoft.visualstudio.testtools.unittesti...

java - CXF web service ClassCastException on assignment of return type when using WS-Reliable Messaging -

i have wsdl-first web service using cxf 2.7.6, using wrapped-style. getstate web service interface method returns int value. however, when call web service cxf client code, classcastexception message 'can't cast getstateresponse object integer'. because classcastexception not occur every time make web service call. intermittently similar classcastexception on calls other methods in web service interface. interestingly, exception occurs ws-reliable messaging configured. deploying on jboss eap 6 server using cxf libraries directly (rather using jboss' built-in webservices subsystem) i'm able work-around issue assigning return value object , determining type , handling accordingly, definite hack , i'd find root cause of issue. below excerpts wsdl, schema , interface class. wsdl excerpts: <wsdl:definitions> <wsdl:message name="getstate"> <wsdl:part name="parameters" element="msgs:getstate"/> ...

regex - Parsing specific text from cell -

i having in google spreadsheet multiple cells following text(only language changes): lorem ipsum dolor. sit.com<br><br>languages: english dutch<br/><br/> i display english dutch in separate cell. i tried this: =regexextract(d2,"<br>(.*?)</br>") however, not come far solution, because getting #n/a . suggestion do? i appreciate replies! maybe try =regexextract(d2, ":\s(.*?)<")

bpmn - jBPM 6.2 How to add an user that can execute all tasks? -

in jbpm 6.2, can assign user task either actor or group such potential owners of these tasks. there user can define in code or bpmn file can execute user tasks regardless of fact task assigned him or not? create user username "administrator", or use 1 of existing users , add group "administrators". gives user(s) in question access task businessadministrator. should work of requirements. if experience challenges approach, option implement own custom task assignment behaviour in 'human task' workitemhandler, let's first try approach mentioned above. as requested code example of approach be: implement class test.customhtworkitemhandler extends localhtworkitemhandler ( https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-workitems/src/main/java/org/jbpm/services/task/wih/localhtworkitemhandler.java ). give new consuctor: public customhtworkitemhandler(runtimemanager runtimemanager){ super.setruntimemanag...

javascript - PHP headers always give error Undefined Index even using $_SERVER global -

i performing ajax request cross domain. have been trying use functions return headers in array find undefined index though can return values in ajax request , print them screen. i have found posts on said should using $_server globals. switched method same results. here jquery: settimeout(function() { jquery.ajax({ url: 'http://something.com', type:"post", datatype:"json", crossdomain:true, contenttype:"application/json", data: jsondata, processdata:false, cache:false, beforesend: function( xhr ) { xhr.setrequestheader("authorization",api_key[index]); xhr.setrequestheader("action","push"); }, success: function(data) { ...

python - AVBin in cxfreeze -

i'm having bit of trouble in python 3 lately. i have program uses pyglet , avbin play sound game. it's 1 of socket tests, want test game doesn't own python. used use cx_freeze of projects, im having huge problem one, because of pyglet , avbin. appreciate if can give answer question in very simple manner. i've seen answered few times, didn't people said. compiling windows 7, python 3. avbin , pyglet required. the question: how compile python 3 script uses avbin , pyglet windows executable, using cx_freeze? since first time on stack exchange, couldn't describe question should be. but, researched few hours, , got working! had upload pyglet library executable cx_freeze made, , include avbin dll executable. i'm sorry asking question in first place. i'll make sure next questions more detailed.

android - GCM same message received multiple times on server -

i have implemented gcm ccs server-client architecture, send upstream messages. works same message received multiple times. searched on web didn't find explanation issue. happen when cellphone has bad connection takes time receive ack? solutions make solve issue? we had same issue , caused because same device has 2 or more google registration id, check code validation avoid this. i'm not pretty sure in how time google detects registration id same device , proceeds unregister leave one.

javascript - Bad format in JSON response AJAX -

i have follow code, it's call web service in other pc server. data parameters ok. "{ controlid: 'zasociated_26037', taskid: 1495613, userid: 166396, tbodyid: ''}" $.ajax({ type: "post", cache: false, datatype: "json", contenttype: "application/json; charset=utf-8", data: "{ controlid: '" + controlid + "', taskid: " + taskid + ", userid: " + userid + ", tbodyid: '" + $(tbody).attr("id") + "'}", url: getwspath() + "/getzasociatedresults", // cargar aqui la direccion del webserivce success: function (data) { if (data != null && data.d != "[]") loadasociatedtable(controlid, data.d); $("#loadingimg" + controlid).remove(); }, error: function (xhr, ajaxoptions, thrownerror) { ...

Passing UTM parameters using Google Tag Manager on iOS -

i trying pass utm campaign parameter (which have locally in app different source) google tag manager along transaction event able associate transactions campaigns. use data layer send data: [self.tagmanager.datalayer push:combinedparameters] event set transaction in combinedparameters . the transaction data being tracked correctly there no associated campaign data utm_source , utm_medium etc. visible in analytics website. passing of them in combinedparameters . tried sending through [self.tagmanager.datalayer pushvalue:val forkey:key]; using utm_source etc keys , using kgaicampaigncontent . none of worked. there no documentation (atleast find) helps in understanding how pass utm data through gtm. available 1 google analytics 1 not work in case. any appreciated. it's easier wrap head around if consider sdk hit builder measurement protocol. in gtm, can add mp fields tag using settings found under more settings > fields set . set 3 required campaign para...

r - Piping variable name into dataframe columns -

i've been trying create function can pipe name of variable names of columns data.frame created in function. for example: #create variable var1 <- c(1,1,2,2,3,3) #create function dummy codes variable , renames them rename_dummies <- function(x){ m <- model.matrix(~factor(x)) colnames(m)[1] <- "dummy1" colnames(m)[2] <- "dummy2" colnames(m)[3] <- "dummy3" m <<- data.frame(m) } rename_dummies(var1) now, can add function that "var1" automatically placed in front of "dummy" in each of variable names? ideally end 3 variables this... > names(m) [1] "var1_dummy1" "var1_dummy2" "var1_dummy3" try below code. key in deparse(substitute) . modified function not use global assignment operator <<- , poor practice. var1 <- c(1,1,2,2,3,3) #create function dummy codes variable , renames them rename_dummies <- function(x){ nm = ...

javascript - How to implement a scene graph to WebGL -

Image
i have trouble organizing various matrix-multiplications implement scene graph webgl-scene. until now, used have 3 matrices, projectionmatrix , viewmatrix , modelmatrix (the normalmatrix aside), multiplicated in same order. have node -object, holds information needed draw something. while projectionmatrix , viewmatrix updated separately drawscene -function, modelmatrix equal each nodes localmatrix , - every drawing-call - set identity , transformed way want. the nodes stored in array ( nodelist ) , when drawscene -function called, loop through list , tell each node draw itself. now i've read tutorial implementing scene graph webgl on www.webglfundamentals.org , tried add feature scene -function, though tutorial written, still bit confused of how done. following tutorial, each node has have not localmatrix , worldmatrix . then, if node root -element (i.e. when has no parent-node), localmatrix , worldmatrix identical, otherwise, if there is parent-node, worl...

ios - Swift clearing JSON cache? -

i'm working api data gets updated frequently. i discovered data not update on phone, when it's updated on server. after hours on hours trying troubleshoot this, tried deleting app phone, , reinstalling in. , worked. after further testing discovered it's printing out old json. once delete app , reinstall it, prints out correct updated json. from gathered it's issue phone caching old json data somehow. so how can go clearing cache in swift? or forcing make new request. (i'm using swiftyjson, although don't think has specific problem) i did find 1 other question this, it's old (2014 in obj-c) , there no answers. here's how data: var request = nsurlrequest(url: formulaapi!) var data = nsurlconnection.sendsynchronousrequest(request, returningresponse: nil, error: nil) var formula = json(data: data!) // loop through api data. (index: string, portfolio: json) in formula["portfolio"] { ...

Google AppEngine - Uncaught exception 'Google_IO_Exception' Unable to connect -

every receive following errors in logs. appears happening during following actions: commit , lookup , runquery this start of each error: php fatal error: uncaught exception 'google_io_exception' message 'http error: unable connect: 'fopen(https://www.googleapis.com/datastore/v1beta2/datasets/{appengine_id}/commit): failed open stream: unsupported ssl context options set. following options present, have been ignored: cafile php fatal error: uncaught exception 'google_io_exception' message 'http error: unable connect: 'fopen(https://www.googleapis.com/datastore/v1beta2/datasets/{appengine_id}/lookup): failed open stream: unsupported ssl context options set. following options present, have been ignored: cafile php fatal error: uncaught exception 'google_io_exception' message 'http error: unable connect: 'fopen(https://www.googleapis.com/datastore/v1beta2/datasets/{appengine_id}/runquery): failed open stream: unsupported ssl cont...

algorithm - Sorting rows and columns of adjacency matrix to reveal cliques -

Image
i'm looking reordering technique group connected components of adjacency matrix together. for example, i've made illustration 2 groups, blue , green. '1's entries distributed across rows , columns of matrix. reordering rows , columns, '1''s can located in 2 contiguous sections of matrix, revealing blue , green components more clearly. i can't remember reordering technique called. i've searched many combinations of adjacency matrix, clique, sorting, , reordering. the closest hits i've found are symrcm moves elements closer diagonal, not make groups. is there way reorder rows , columns of matrix create dense corner, in r? focuses on removing empty rows , columns please either provide common name technique can google more effectively, or point me in direction of matlab function. i don't know whether there better alternative should give direct results, here 1 approach may serve purpose. your input: >> = ...

c# - Entity Framework - many to many related data loads into the navigation property collection, properties contain nulls except for the Id -

i have many many relationship below: public class student { public int studentid { get; set; } public string studentname { get; set; } public virtual icollection<course> courses { get; set; } } public class course { public int courseid { get; set; } public string coursename { get; set; } public virtual icollection<student> students { get; set; } } the database migration creates junction table named studentcourse. using eager loading load data: var student = context.students .include(x => x.courses) .firstordefault(); my observations: student.courses.count = 5 student.courses[0].courseid = 1 student.courses[0].coursename = null why courses.coursename property null?

jquery - Chrome JavaScript calculate line-height, position different -

i'm making simple text reader has line easy-reading. it uses keyboard arrow , down key each excutes adjust 'top' position of red-line based on line-height property. here function. var line = example.$line[0], $text = example.$text, top = parsefloat(line.style.top).tofixed(1) / 1, lineheight = parsefloat($text.css('line-height')).tofixed(1) / 1; // key pressed if (move == 'up') { line.style.top = (top - lineheight) + 'px'; return; } // down key pressed if (move == 'down') { line.style.top = (top + lineheight) + 'px'; } but, chrome seems different results. how can fix it? http://jsfiddle.net/laires/f93t1ado/ using line-height in px fix issue. see working fiddle (i tested on chrome). i have changed css this: line-height: 1.8; to that: line-height: 22px;

How to split data monthly in R -

i have dataset corresponding register of buys in store, this: date buyid price description category 2010-01-01 101028 100 ... ... 2010-01-01 101028 100 ... ... 2010-01-01 101028 100 ... ... 2010-01-01 101028 100 ... ... ... the dates in dataframe goes 2010-01-10 2015-04-01 , split monthly can plot volume of buys per month in each year, mean like: date count 2010-jan 19128 2010-feb 1232 ... ... 2015-mar 28363 2015-apr 12834 i've been having hard time specially because i'm pretty new r , don't know many functions. i tried split data using split couldn't make it. have clue how can this? you can use dplyr this: df %>% mutate(new.date = cut.date(as.date(date, format = '%y-%m-%d'), "month")) %>% group_by(new.date) %>% summarise(count = n()) mutate create new column cutted dates, g...

tomcat - Servlet not working :Error 500 -

i'm new tomcat , try access project located @ http://127.0.0.1:8080/eb-api/rest , following error.. javax.servlet.servletexception: "servlet.init ()" eb-api servlet threw exception org.apache.catalina.authenticator.authenticatorbase.invoke (authenticatorbase.java:501) org.apache.catalina.valves.errorreportvalve.invoke (errorreportvalve.java:98) org.apache.catalina.valves.accesslogvalve.invoke (accesslogvalve.java:950) org.apache.catalina.connector.coyoteadapter.service (coyoteadapter.java:408) org.apache.coyote.http11.abstracthttp11processor.process (abstracthttp11processor.java:1040) org.apache.coyote.abstractprotocol $ abstractconnectionhandler.process (abstractprotocol.java:607) org.apache.tomcat.util.net.jioendpoint $ socketprocessor.run (jioendpoint.java:313) java.util.concurrent.threadpoolexecutor $ worker.runtask (threadpoolexecutor.java:886) java.util.concurrent.threadpoolexecutor $ worker.run (threadpoolexecutor.java:908) java.lang.thread.run (thre...

jquery - Hide item after deleting it with ajax in asp.net mvc -

in asp.net mvc4 application, have portfilio list , use ajax delete portfolio items, want hide <li> that item has been deleted. how can achive this. view: <ul > @foreach (var item in model.portfolios) { <li > <div class="row"> <div class="col-xs-4"> </div> @using (ajax.beginform("delete", "admin", new ajaxoptions { httpmethod = "post", onbegin = "beginrequest", oncomplete = "endrequest", onsuccess = "successrequest", onfailure = "failrequest" })) { <div class="form-group"> <input type="hidden" value=@...

openMP reduction and thread number control -

i use openmp as: #pragma omp parallel reduction(+:average_stroke_width) for(int = 0; < gb_name.size(); ++i) {...} i know can use : #pragma omp parallel num_threads(thread) for(int index = 0; index < gb_name.size(); ++index){...} how can control thread number when use reduction? how can control thread number when use reduction? both clauses can used togehter: #pragma omp parallel reduction(+:average_stroke_width) num_threads(thread) for(int = 0; < gb_name.size(); ++i) {...} note reduction involves threads, cannot have parallel loop 8 threads , perform reduction 4 threads only. reduction combines local values in threads , therefore of them need participate.

javascript - Ajax function not being hit in submitHandler -

form validation works, can't ajax call fire correctly. submithandler being reached, ajax call isn't. have included fiddle @ bottom, can't fire ajax calls there. $(".player-code, .submit").hide(); //validation $(function () { $("#form").validate({ rules: { playerclass: { required: true } }, submithandler: function () { var accountnumber = $(".accountnumber").val(); var domain = $(".domain").val(); var playerclass = $(".playerclass").val(); var datastring = accountnumber + playerclass; //save form data........ $.ajax({ type: "post", datatype: "json", url: "/", contenttype: "application/json", data: datastring, success: function () { ...

objective c - How to determine, in an app with several ViewControllers attached to NavigationControllers, what the currently displayed View is? -

i have ios 8 app, built objective-c, tabbarcontroller , 3 tabs. each tab links navigationcontroller (so there 3 navigationcontroller s), , each navigationcontroller has stack several viewcontroller s in it. so, @ given time, app's user can on, say, viewcontroller 2 of navigationcontroller 1 (which means tab 1 selected). , hop tab 3 ( navigationcontroller 3) , seeing viewcontroller 1, say. the question is, no matter viewcontroller app user seeing (and therefore, no matter navigationcontroller / tabbar tab in effect), how can determine (i.e., pointer/reference to) viewcontroller being shown? do need tabbarcontroller , array of navigationcontrollers , arrays of of viewcontrollers , , cycle through each element see top viewcontroller ? or there short-cut way of determining viewcontroller being shown - , thereby parent navigationcontroller , tab/ tabbar ? so, like, there "global" handle in ios points 1 view active , being displayed @ given time? thank...

ruby on rails - Backbone fetch not receiving server response -

i'm learning backbone , working through mock twitter tutorial. seems should working, i'm getting undefined object @ point of trying re-render collection view on fetch({reset: true}). i can see in network resources nicely formatted response rails server- [{id: 1, content: ...},{id: 2..}...] , on. if stop @ breakpoints throughout code - backbone's own success callback, response (or resp in bb's source code) undefined. also, first stackoverflow post after lurking here , solving problems other folks questions months! wonderful community. relevant code here: $(document).ready(function(){ var tweets = new tweetscollection; var stream = new tweetsview({collection: tweets}); stream.render(); $(".container").append(stream.el); tweets.fetch(); stream.addall(); }) var tweetscollection = backbone.collection.extend({ model: tweet, url: 'tweets/recent', parse: function (response) { console.log(...

java - adding AsyncTask to onClick listener -

this question has answer here: aplying onpostexecute onclicklistener 1 answer i have made program works asynctask prints list of json data when program executed, problem want execute when press button. how results of asynctask onclick button listener ? how call asynctask onclick? public class mainactivity extends actionbaractivity implements locationlistener { double[] avstand; jsonarray jarray; locationmanager lm; textview lt, ln; string provider; location l; listview list; stasjonadapter adapter; arraylist<stasjoner> stasjonliste; button nbutton; textview test; gpstracker gps; stasjoner stasjon; double minvalue; string geouri; button instbutton; button bildebutton; button kjortil; button visliste; file mphotofile; uri mphotofileuri; string mdisplayfolder; @overrid...

visual studio 2010 - Is it possible to set the version number of the MSI when building a setup project(vdproj) from command line? -

i need build setup project command line , set version number of built msi parameter. possible accomplish that? no, not possible. you'd have rewrite .vdproj prebuild step or update msi postbuild step. 1 of many limitations of toolset

routes - Redirecting Ethernet traffic through another interface -

i'm working on project want redirect ethernet traffic through interface. setup follow: i have computer working internet connection. have mbed lpc1768 board can connect usb computer. can upload binary file device , run it. example, can let act keyboard , send key strokes computer. can let device act mouse , send mouse events. now want device act ethernet interface. since device connected using usb, thinking ethernet-over-usb protocol. i've chosen usbcdc-ecm protocol works on linux , os x. when plugging in device, device correctly identified ethernet interface. moreover, run dhcp server on embedded device computer gets assigned ip address. note device not have working internet connection outside world (the computer have one). so embedded device can capture internet traffic computer. when device gets packet, want analyze packet, send computer , have redirected through working interface. so example, have laptop , working connection on interface wlan0 . plug in device. g...