Posts

ftp - In PhpStorm, what do I need a "HTTP connection" for? -

Image
i want create project remote files via ftp connection. in "add remote server" dialog, set ftp connection. "test connection" told me it's valid, , can choose root directory, ftp working. however, right under it, there "web server root url" input , "don't check http connection server" checkbox. need these for? what's point of http connection, when using ftp? documentation doesn't explain in no sense. i had check latter box, otherwise couldn't continue import/synchronizing: says "connection failed: connection refused", although ftp connection stable. made me think needed ftp and http. for visualisation purposes:

java - ForkJoinTask understanding -

what happens after subtask.fork() returns forkjointask<int> object? compute() method invoked many times after , how? i'm new java , i'm trying learn concept of fork/join framework. saw code below online. know after reading java api subtask.fork() returns object of forkjointask<v> , forkjointask<int> in case. couldn't understand happens after that? output indicate compute() method have been invoked many times after , how? public class myrecursiveaction extends recursiveaction { public static void main(string[] args) { myrecursiveaction mra1 = new myrecursiveaction(100); forkjoinpool fjp1 = new forkjoinpool(); fjp1.invoke(mra1); } private long workload = 0; public myrecursiveaction(long workload) { this.workload = workload; } @override protected void compute() { //if work above threshold, break tasks smaller tasks if(this.workload > 16) { system.out.pr...

php - Trying to use an array value as an SQL insert value -

hey guys trying use value got previous query in new one, value string stored in array, $name , $email variables, looks when var_dump them... string 'nathgold' (length=8) .... want use nathgold value in insert of new query. error notice: array string conversion in c:\wamp\www\login\post.php on line 30 <?php include_once('connect-db.php'); session_start(); if(!isset($_session['islogged'])) { header("location: home.php"); die(); } if (!isset($_request['mbid'])) exit; if (!isset($_request['parent'])) { $parent = 0; } else { $parent = $_request['parent']; } if (isset($_post['title'])) { $user_info=mysqli_query($connection, "select * usertest id=".$_session['user']); $userrow=mysqli_fetch_array($user_info); $name = $userrow=['username']; $email = $userrow=['email']; $title = mysqli_real_escape_string($c...

javascript - ReactJS - What is the best way to push data in an array within an array? -

i wanted push data inside object(orders). orders have array inside products, parts , prints. want push data in prints only. meaning have 2 buttons, 1st button push data of orders while 2nd button push portion of orders, prints. can see prints under orders. can suggest way on how can this? below array of orders have. want push data orders.prints orders: [{ product: { ptype: '', name: '', brand: '', color: '', files: [] }, parts: [], prints: [{ name: '', width: '', height: '', colors: '' }], breakdown: [{ size: '', quantity: 0 }] }] got working adding value in orders set index. orders[0] onaddprint = () => { var newprints = this.state.ord...

c# - How can I bind a model property to another property of the same instance of that model? -

Image
tl;dr : <usercontrol.datacontext> <foo:bar> <foo:bar.baz blat={binding source={relativesource self}, path=bing, mode=twoway}"/> results in following error message : system.windows.data warning: 40 : bindingexpression path error: 'bing' property not found on 'object' 'relativesource' (hashcode=38995967)'. bindingexpression:path=bing; dataitem='relativesource' (hashcode=38995967); target element 'bar' (hashcode=53937671); target property 'baz' (type 'baz')` and ends binding failing - why? the meat of problem i have rather convoluted colormodel class in have inherited dependencyobject inotifypropertychanged : [serializable] public class colormodel : dependencyobject, inotifypropertychanged { } within class 4 double values - alpha , red , green , blue : //the latter 3 dependencyproperties pretty same : public static readonly dependencypro...

ios - Upload a new version to app store? -

i downloaded source code of app github built else. have made quite few changes in app. test app on iphone, changed bundle id, codesigning, provisioning profile etc. issue how update app on appstore? need download provisioning profiles or other files upload safely? how code sign app again no problems occur? kindly help. if app created on developer account can not change bundle id it. you need delete appid developer account , create new appid , assign new bundle id , create certificate, provisional profile initial.

Alternative to simulink transparent subsystem -

Image
i need organize set of elements in simulink. first method create subsystem. problem subsystem elements inside no longer visible. alternative method create colorized box , put behind set of elements background. makes lot of troubles during selection of elements. the ideal method have subsystem transparent can see elements inside it. can make large , see inside without opening it. what feasible alternative method? knowing there no support simulink doing this, possibility use mask icon shows content. following rough prototype mask code: model='s1/subsystem'; loc=fullfile(pwd,[model,'.png']); print(['-s' model], ['-dpng'], '-r300', loc); image(loc); port_label('input',1,'in1'); port_label('output',1,'out1'); obviously prototype has multiple issues must addressed when using code: remove hard-coded directory. set in- , outports automatically. create required folder structure. (folder s1 must...