`mkvirtualenv` doesn't work after install anaconda Python
◷
تاریخ انتشار: 1395/4/12 | ساعت: 12:41
Vote count: 0 Before I installed anaconda, I usually start project with virtualenvwrapper : mkvirtualenv --python=python3.5 myproject workon pystagram myproject where which python3.5 shows, >> /usr/local/bin/python3.5 But, after I installed anaconda, system-based-python changed to ananconda versions...
C# MongoDb Driver
◷
تاریخ انتشار: 1395/4/12 | ساعت: 11:29
Vote count: 0 I'm new at using mongoDb with .net Now I'm using C3 mongoDb Driver and I'm mapping my collection to my own C# class. when I query to get a specific document by Title Attribute the result is 3 items in the list each with different Id but the same data. here's my C# code class Program { ...
sorting hashes, 4 digit number causing issues
◷
تاریخ انتشار: 1395/4/12 | ساعت: 11:29
Vote count: 0 I am sorting an array filled with hashes using the below: array.sort_by {|hash| hash[:key_name]} When I sort by array[:damagemin] all the numbers sort except the lone 4-digit number which is being sorted as if it is a "1": bydamagemin => [{:heroname=>"Bastion", :winrate=>"53.6%", :dama...
Adding info from xml to string array, Android Studio
◷
تاریخ انتشار: 1395/4/12 | ساعت: 11:29
Vote count: 0 I got problems when I try to get info from XML to a string array. Is works fine if I only have one if statment withinf the: if (eventType == XmlPullParser.START_TAG) {...} The thing is tho, I want to diffrent things to my array, both "Allergen" and "Artikelbenamning". Not sure if the p...
How do I get Pycharm to find a file that I want to use in my code?
◷
تاریخ انتشار: 1395/4/12 | ساعت: 10:18
Vote count: 0 How do I get pycharm to find the .txt file that i want to open? I'm trying to open a file with a simple piece of code and i keep getting this error message. error message I have tried adding a init.py file to the folder containing the file, and I have changed the parent folder to a sou...
newFixedThreadPool slower than single threaded program
◷
تاریخ انتشار: 1395/4/12 | ساعت: 10:18
Vote count: 0 Here's a quick rundown of my predicament. I am lea ing multi-threading and therefore decided to make a thumbnail creator program to process around 300 images. At first, I did all the thumbnail creation on a single thread and that took around 99 seconds. So I figured that using newFixed...
React setState empties old state
◷
تاریخ انتشار: 1395/4/12 | ساعت: 10:18
Vote count: 0 I'm ru ing into a problem, looking for help. I have a function called mapRanks. It gets called in componentWillMount and basically setState of elements using map through array of strings. It works fine with one array but I need to run it multiple times with multiple different arrays. W...
Boostrap 3 active state button. How get total active button?
◷
تاریخ انتشار: 1395/4/12 | ساعت: 9:07
Vote count: 0 At page I have many button active state of type. I bind to the event click and check how many button have active status. But when I click at first button I get zero. $(".btn-quote").on("click", function (e) { var totalActiveQiote = $(".btn-quote.active").length; if (totalActiveQiote > ...
How to insert columns with adding sequence column?
◷
تاریخ انتشار: 1395/4/12 | ساعت: 9:07
Vote count: 0 In an Oracle database (11gR2), I have a table my_table with columns (sequence, col1, col2, col3). I want to insert values into the table that are queried from other tables, i.e. insert into my_table select <query from other tables>. The problem is that the primary key is the four colum...
gcc C++ Linker make "type of 'X' does not match original declaration" an error?
◷
تاریخ انتشار: 1395/4/12 | ساعت: 9:07
Vote count: 0 How do I make the following linker wa ing about a wrong exte declaration an error? I am compiling & linking with gcc version 4.8.3 Sourcery CodeBench uilding target: xxxxx.elf Invoking: Cross ARM C++ Linker arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 ...
bash sed does not replace several occurences of search pattern
◷
تاریخ انتشار: 1395/4/12 | ساعت: 7:44
Vote count: 0 Given string: var nav_str = "/index.html,/upgrade.html,/backup.html,/clock.html,/reset.html"; should be converted to: var nav_str = "/home/sz/index.html,/home/sz/upgrade.html,/home/sz/backup.html,/home/sz/clock.html,/home/sz/reset.html"; using that code: sed -i -e "s|/(.*.html)|$(pwd)&...
Query Row Error
◷
تاریخ انتشار: 1395/4/12 | ساعت: 7:44
Vote count: 0 I'm trying to run a query in GOLANG using QueryRow as I only need one row but it keeps spitting out an error of: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL se rver version for the right syntax to use near 'set @accID = (select id f...
Kitchen sink has a messy layout Framework7
◷
تاریخ انتشار: 1395/4/12 | ساعت: 7:44
Vote count: 0 I am starting to use Framework7 and I have successfully ran the kitchen sink on localhost:3000. However, it gives me something like this can anybody please tell me why? thanks asked 49 secs agoCyval Let's block ads! (Why?)
three.js canvasrenderer very slow
◷
تاریخ انتشار: 1395/4/12 | ساعت: 6:26
Vote count: 0 I have this panoramic viewer: http://ulrichbangert.de/heimat/Goslar_Kirchen/2016-06-30_Marktkirche_Panorama.html Initially I used the WebGL renderer but as it didn't work on my mobile I switched to the canvas renderer. Works in Opera on my mobile but the performance is very poor: Autom...
Problems loading Textures in SFML (C++)
◷
تاریخ انتشار: 1395/4/12 | ساعت: 6:26
Vote count: 0 I started using SFML recently and I was doing well until I got to textures. Every time I use .loadFromFile it make the execution break with the exception: Exception thrown at 0x6E18DC07 (vcruntime140.dll) in SFML Vertex Arrrays.exe: 0xC0000005: Access violation reading location 0x00EA3...
Simple JQuery selector working, vanilla js isn't
◷
تاریخ انتشار: 1395/4/12 | ساعت: 6:25
Vote count: 0 I have the following code in my js file. The JQuery is working, the vanilla js is not, I'd love to know why! Thanks for any help! $('.chartContainer').text('bar-1'); //works document.querySelectorAll('.chartContainer').i erHTML = 'bar-2'; //doesn't work output (from chrome inspector): ...
urllib2 not accepting credentials in URL
◷
تاریخ انتشار: 1395/4/12 | ساعت: 5:08
Vote count: 0 The form-based login for a webpage can often by bypassed with the following URL structure: https://myuse ame:mypassword@myserver.com (note: I know there are security conce s here; that is beyond the scope of this question). urllib2 doesn't like this: urllib2.urlopen('http://myuse ame:m...
Reduce distance between textviews using gallery in android
◷
تاریخ انتشار: 1395/4/12 | ساعت: 5:08
Vote count: 0 I want to scroll listview horizontally in my android application. I found many solutions on inte et but that doesn't work for me. Anywhere i found a solution to use gallery instead of listview. But now problem is that, the distance between two consecutive textviews is very much, as sho...
AngularJS - Nested ng-repeat using two objects
◷
تاریخ انتشار: 1395/4/12 | ساعت: 5:08
Vote count: 0 Controller: $scope.init = function(team){ $http.get("/getLeaderByTeamID/"+team.id) .success(function (data, status, headers, config) { // this is the object that I need to list in the table $scope.leader = data; }) .error(function (data, status, header, config) { $log.error("Error!"); ...
How to condense or make this code efficient?
◷
تاریخ انتشار: 1395/4/12 | ساعت: 3:49
Vote count: -1 I am wondering if there is a way to make the following code concise. for(unsigned it = 0; it < indicator.size(); it++){ int cnt = count(router.begin(), router.end(), indicator[it].second); if(cnt == 3){ unocc += (abs(Tripfeed[indicator[it].first][routing[indicator[it].second-1].second...