randomizer only generating up to 99 c++
Vote count: 0 So I am trying to generate 10,000 random numbers from 1-100, but it is only generating up to 99 numbers because when I display it I can only see from 1-99, unless it is my code for finding it. Here is my code: vector<int> vint; for (int i = 0; i < 10000; i++) { int x = (rand() % 100) +...
How to fix a messed up Git project using SourceTree
Vote count: 0 Somewhere I made a bunch of changes and I need to go back to an earlier version. I copied my current projects out of my local directory that contains the project. The project contains about 5 directories. I copied out two of them and then deleted those two folders. I now need to reset ...
How can I get a value from an URL?
Vote count: 0 Asuming I have something like var url = 'http://stackoverflow.com/questions/24a34b83c72/js-regex-get-values-between-two-characters' How could I get the 24a34b83c72 ID using pure javascript? I know that it's always after the questions/ part and that regardless if it contains a number or...
How implments in a web app a role and user module
Vote count: -1 I need to know how I can do a module of roles and users, I read about asp.net identity but I don't understand anything, I want to create a web app with my own data base and implements a role module. I try saving a user's rol in a session variable and in the controller I ask using an i...
How to compress JPEG with good quality on Android?
Vote count: 0 This is not a straightforward problem, please read through! I want to manipulate a JPEG file and save it again as JPEG. The problem is that even without manipulation there's significant (visible) quality loss. Question: what option or API am I missing to be able to re-compress JPEG wit...
Fading images web design
Vote count: 0 <!DOCTYPE html> <html lang="en-US"> <head> <style> body { background-image: url("bg.jpg"); } <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <...
Bayesian belief network calculations
Vote count: 0 I am using MSBNX (microsoft's bbn software) and I ca ot figure out how it makes its calculations. This is what my network looks like. The probabilities for rain are: Yes-> 0.2 , no -> 0.8 JakesLawn wet and rain -> 0.9, not wet and rain -> 0.1, no rain and wet -> 0.2, no rain and not we...
How to change the array display order in IOS?
Vote count: 0 I have a code writing like this in Objective-C: Feets = @[@"0ft", @"1ft", @"2ft", @"3ft", @"4ft", @"5ft", @"6ft", @"7ft", @"8ft", @"9ft"]; Inchs = @[@"0in", @"1in", @"2in", @"3in", @"4in", @"5in", @"6in", @"7in", @"8in", @"9in", @"10in", @"11in"]; This is the pickerView component. but ...
Getting "ScreenCaptureError" in Chrome Kurento
Vote count: 0 I'm trying to share my screen with Kurento WebRtc server. But getting this error: NavigatorUserMediaError {name: "ScreenCaptureError", message: "", constraintName: ""} There is no errors in Firefox with same code. Constraints using for webrtc: var constraints = { audio: true, video: { ...
Upload an image using html/javascript/Mongodb/WebServices
Vote count: 0 I want to upload an image from the user's disk to my MongoDB. When I have the all path, it works. But with <input id ='image_upload' type='file' name='image_upload' />, it doesn't works (not the complete path, and it's normal, for the security ...) So I want to know if there is an othe...
getting rid of grids in histogram in mtlab
Vote count: 0 I used the following lines and used the help from Is it possible to make hist3 plots smoother? but I can not get rid of that line. Would you please help me what should I do? enter image description here asked 1 min agofarzaneh Let's block ads! (Why?)
Print Biórn instead of Biórn from js object
Vote count: 1 I think I am lacking in the correct vocabulary to be able to state this question correctly. But I have searched everything I can think of, including "javascript object ascii", "javascript object to unicode", but the answer I'm looking for just won't show. My problem is that I have a Ja...