`mkvirtualenv` doesn't work after install anaconda Python
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
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
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
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...
newFixedThreadPool slower than single threaded program
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
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?
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?
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...
bash sed does not replace several occurences of search pattern
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
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
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
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++)
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
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
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
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
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?
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...