How to insert children to a growing tree by vector in c++?
◷
تاریخ انتشار: 1395/3/9 | ساعت: 0:57
Vote count: -1 My problem is that I wa a build a tree by giving a number N, which follows N lines .In the next N lines, each line will contain two numbers, and the first integer a will be the parent of second integer b, and the number in the n+1 line R represents the roots of the tree. Here's an exa...
Play SMIL video files windows 10
◷
تاریخ انتشار: 1395/3/9 | ساعت: 0:57
Vote count: 0 How can i play smil file ? I want to play the downloadable file here. energy based models part 1 introduction. http://www.cs.nyu.edu/~ya /research/ebm/ asked 3 mins agoAlex winkler Let's block ads! (Why?)
Excluding unwanted names from json with jq
◷
تاریخ انتشار: 1395/3/8 | ساعت: 23:46
Vote count: 0 Suppose I curl a json file, like so: curl https://api.github.com/repos/ruby/ruby/tags -o ruby.json I can then run cat ruby.json | jq '.[0] | .tarball_url' and get the latest tarball for Ruby. However, I'd like to not fetch any tarballs that are previews of Ruby or contain something lik...
Calculated value displays in template type description
◷
تاریخ انتشار: 1395/3/8 | ساعت: 23:46
Vote count: 0 After calculating field in model I want to display this field in my template model: def _get_total(self): from inventory.models import Inventory from purchase.models import POproduct from sales.models import SOproduct # "Retu s the total" retu Inventory.objects.filter(warehouse_Bin__ma...
Django : gaierror: Name or service not ???
◷
تاریخ انتشار: 1395/3/8 | ساعت: 23:46
Vote count: 0 I have done this application in order to send e-mails asynchronously with showing a graph of temperature's values because I haven't succeeded in adding a thread . To explain my code : -1 the function foo() retu s a table containing temperature sensor's values-2 conf retu s the frequenc...
PHP Composer Satis is not connecting to the VCS repository via HTTPS
◷
تاریخ انتشار: 1395/3/8 | ساعت: 21:57
Vote count: 0 I am trying to get set up with a VCS (Subversion) repository on my inte al network, my hope was to then have that repository mirrored by Satis so that the clients can download their packages quickly. However, I keep getting errors that the security certificate could not be verified. I ...
Switch not working properly
◷
تاریخ انتشار: 1395/3/8 | ساعت: 21:57
Vote count: 0 I'm using a switch in order to understand which button was clicked. There are 6 total buttons. I'm using this: public void characterClick(View v){ if(status){ switch (v.getId()){ case R.id.first: demoniacList.add(new Demoniac()); first.setEnabled(false); case R.id.second: guardList.add...
Konfiguring Hortonworks NiFI with kerberized Kafka
◷
تاریخ انتشار: 1395/3/8 | ساعت: 21:57
Vote count: 0 I have been trying to configure HDF 1.2.0 Nifi to work with kerberized Kafka, but to no avail. Here my zookeeper-jaas.conf: Client { com.sun.security.auth.module.Krb5LoginModule required useKeyTab=true keyTab="./conf/user.keytab" storeKey=true useTicketCache=false principal="user@REALM...
Listing all the variables in a Python class
◷
تاریخ انتشار: 1395/3/8 | ساعت: 20:51
Vote count: 0 I've made a class, and after the program has finished ru ing, I want to list all the variables I have kinda like so var1: val var2: val etc my class looks like this class character: name = 'Player1' level = 1 str = 100 con = 80 sta = 150 critchance = 0.1 critdmg = 0.5 # for battle hp =...
iOS - In-app purchases and beta testing
◷
تاریخ انتشار: 1395/3/8 | ساعت: 20:51
Vote count: 0 I am about to test my app with my exte al testers. I will give them a sandbox account to test my in-app purchases. My in-app purchases are hosted with Apple. My question is, after the testing finishes, I disable app testing in iTunesCo ect, I submit my app to Apple, and my app becomes ...
Different between Eliminate left-recursion and construct an equivalent unambiguous grammar
◷
تاریخ انتشار: 1395/3/8 | ساعت: 20:51
Vote count: 0 For example: R → R bar R|RR|R star|(R)|a|b construct an equivalent unambiguous grammar: R → S|RbarS S→T|ST T → U|Tstar U→a|b|(R) How about Eliminate left-recursion for R → R bar R|RR|R star|(R)|a|b ? What's the different between Eliminate left-recursion and construct an equivalent unam...
Is it a bad practice to use php transactions with every query?
◷
تاریخ انتشار: 1395/3/8 | ساعت: 19:51
Vote count: 0 In PHP you can start transactions when you are performing queries. But when should you use it? Is it bad to use this feature with every query? Or should you only use this query when you are adding/removing/updating large quantities of data? Example of a transaction: try { $db->beginTra...
Test each element of array for factors of 5 in C++
◷
تاریخ انتشار: 1395/3/8 | ساعت: 19:51
Vote count: -4 I had a question for the following problem (FCTRL from Codechef) I am trying to enter in an arraysize. I am then trying to test each number in the array. The test for each number in the array is how many powers of 5 go into to it. i.e if the number is 4617; 5^1 : 4617 ÷ 5 = 923.4, so ...
Adjust height and width of GridViewItems in GridView according to different screen sizes
◷
تاریخ انتشار: 1395/3/8 | ساعت: 19:51
Vote count: 0 I'm developing an UWP app and I'm trying to adjust the size of tiles in GridView. I want to give minimum specific height and width to the tile. And I want size of the tiles to increase as the screen size differs. This will happen if I give specific height and width to tile. And I want ...
Strange thing with onmousemove javascript
◷
تاریخ انتشار: 1395/3/8 | ساعت: 18:43
Vote count: 0 Hi guys:)If I pass on the div in the example with mouse's pointer the function print in console two times,this menans that onmousemove event is triggered two times.Hoe is possible that onmousemove event is triggered considered that the div is 1 pixel width?How is possible that onmousem...
ng pattern in angularjs for email of abc domain
◷
تاریخ انتشار: 1395/3/8 | ساعت: 18:43
Vote count: 0 I'm trying to validate an input text field in angularjs such that only users of abc dot com domain can register. Can you please share the code for this patte validation? asked 36 secs agoAddi R Let's block ads! (Why?)
Web design w/ illustrator, i need vital first steps
◷
تاریخ انتشار: 1395/3/8 | ساعت: 18:43
Vote count: 0 I'm a bit lost with what i actually need and don't need to lea to build a nice looking one page website. Some say you need to lea whole of Javascript, or "frameworks" as angularJS. Some say you can start building one page with illustrator so I looked at youtube and saw it was a very vi...
Naming of indexes for setTimeout's array
◷
تاریخ انتشار: 1395/3/8 | ساعت: 17:42
Vote count: 0 I have a for loop, and I would like to save a setTimeout for each iteration, using the loop's index as setTimeout's array index, so that I am able to use clearTimeout later on with an specific index. for(var i=0; i < 5 ; i++) { ... (function(delay, timeouts, i){ // Keeps a reference of...
How edit job in sidekiq queue?
◷
تاریخ انتشار: 1395/3/8 | ساعت: 17:42
Vote count: 0 I have a queue that happened to contain wrong parameters for the perform_async worker. I don't want to loose the jobs, but edit arguments so they will succeed next time or on forced retry. Is this possible? asked 1 min agosuperego Let's block ads! (Why?)
issues in running ap in android studio
◷
تاریخ انتشار: 1395/3/8 | ساعت: 17:42
Vote count: 0 I am moving my projects from eclipse to Android Studio. While ru ing one of my app I get the following error. Not able to find any solution. I have enabled multidex as well. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.Transfor...