Particularly I have been using JavaScript, Ruby, Sass, ect for so long I wanted to come back to where I learned to program and brush up on some c++. I find it hard to program something pointlessly...
Type: Posts; User: Lesshardtofind
Particularly I have been using JavaScript, Ruby, Sass, ect for so long I wanted to come back to where I learned to program and brush up on some c++. I find it hard to program something pointlessly...
Thanks again for your information. I tried using the fork and exec commands and ran into some issues that require prompts. So far I have had to settle for letting the user go through these prompts....
Thanks for the response and suggestions on how to analyze it. I was surprised because my assumption was that each execution would be done asynchronously rather than synchronously waiting for the...
Hey I was just messing around with g++ on mac to make programs that would execute other terminal commands. I ran into a situation that I don't quite understand and was curious of this is expected...
Well since the size is 9 and i can end up being 7 by the end of the loop and you randomly generate a number between 0-7 and then add to it. Well worst case scenario you just tried to access the 14th...
I'd say you left out a few important pieces of code.
int currentRow[size] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
int obeysSudokuRules;
if (row == size)
return 1;
I will preface this with it has been a while since I've programmed C++ so I may make a few mistakes, but I have programmed two sudoku generators one in C++ and one in JavaScript. Hopefully anything I...
I'm guessing you still use some sort of version control.
Very interesting. Wish I could see the code. I agree with the paying sentiment. I usually get all my shims and libraries from github,...
Me too
Anything. I've spent alot of time doing single player interactive games/apps, but I still haven't gotten around to putting multiplier connections into it. I've made apps that run html...
I agree 100%. The things that made JavaScript weird to me when I started learning it are what I love about the langauge now.
When you get something going using them share it with me. I'm...
You aren't wrong at all this is a tough spot in JavaScript it gets real racey in those parts (pardon the pun xD). I still get confused by it, but it usually comes down to everything behaving exactly...
Its just a tool. When you learn how to use it then you will find it helpful, but when you don't expect its results it can be frustrating.
The same thing happens in the DOM though imagine your...
We are just finalizing the last components and going through QA on a site that cost nearly a quarter of a million dollars and required us to support back to IE8. We will be working on another very...
Thats intense I got about 3 1/2 to go to get there lol.
Comparatively to a year ago I will definitely submit to your point. I do spend quite a bit less time worrying about it. But we get the occasional client that requires IE8 and it becomes a pain.
...
I like that code. You nest really hard in the return but its efficient.
I haven't gotten into sockets enough yet. I've been stuck doing a ton of ajax event based stuff at work and been working...
And makes testing a hell of alot easier. I'd prefer it to assertion tests in the dom with phantom.js.
Fat arrow is used for binding of the parent object calling the function. It is important...
if (String(tableData[i].name).contains(phrase))
JavaScript `string.contains()` what is this which craft? lol
Maybe a:
if (String(tableData[i].name).indexOf(phrase) > -1)
Congratulations xD
average = average - highest + lowest;
Think about that for a second. C++ handles the operator order of addition and subtraction from left to right so you aren't getting the value you think you...
Your if statement is all mangled now. You are saying if value isn't highest or lowest then calculate the average. So if your last value input is the highest or lowest you won't even average.
At...
I read through that Serial communication for the arduino before. It is useful for communication control via the console that runs from your PC. Receiving the data and opening the relays is the easy...
1. Yes I planned on just using one of my old laptops to run the simulator on.
2. The Uno doesn't, but I'm sure I can buy an extension for it.
I was hoping for a cheap solution rather than a...
Hi,
I am working on a project with my dad to turn a 7/8 replica spitfire into a flight simulator program on a hydraulic platform. I bought an arduino uno and have panned out the basics of...
Well the problem is void functions don't return anything. So when you use it to calculate a number the data inside the function will be deleted after the function runs. Well not necessarily...