345 Posted Topics
Re: Your description is a little confusing. I see you mentioning (x,y,z) calculations, but you say you are inputling the latitude and longitude, which I assume is x and y. What is z? Altitude? You say that the points are "on the Earth", which would imply there is no altitude, so … | |
Re: > Something like a cross of a philosopher and a rhino but a better temperament. Famous Prison Saying: "Don't lose your temper till it's time to lose your temper. Then lose your temper." Works well for moderating and life in general, though the bad word filter can get in the … | |
Re: > Maybe an idea to keep the editor toolbar with it? Otherwise the allowed subset of markdown has to be memorised / guessed. Yep, and I think both a down-and-dirty guide and a more complete guide should be pinned or on a big menu option, something that can't be missed, … | |
![]() | Re: Never go against your true nature. In your case, according to your post in another thread, your true nature is "fat bondage nurses". Embrace it. You're not alone. I'm getting similar ads. On Daniweb no less. At first I tried to go back and figure out what I posted to … ![]() |
Re: Numbers 2 and 3 seem identical to me. Same two sentences, just in reversed order. I vote number 1 because it immediately informs me that signing up for Dazah is mandatory if I want to sign up for Daniweb. Numbers 2 and 3 can be misconstrued as ENCOURAGING me to … | |
Re: You can do that. OR since you already know the exact command already, you can use C++ to execute that command exactly and do whatever you need to do to get the output where you want it to go (STDOUT or wherever) using the system command, popen, execvp, pipes, whatever. … | |
Re: Lines 10, 11, 12 : You ask the user to enter the test score and you will determine the grade from that, but line 12 takes input for grade, not testScore? testScore < 60.0; < is used to compare two values. It is not used all by itself in a … | |
Re: > Not that they really need an i7 of course, an i5 is perfectly capable for their demands. An i5 might be perfectly capable for their needs NOW, but who knows what the near future holds? What awesome application doing whatever is going to come out in 2017 or 2018 … | |
Re: > 5 years pass and the site is not up and they are 6 figures and approaching 7 when the owner finally blows the project up. Took them 5 years and almost 7 figures to figure that out? Slow learner. How 'bout sell it using GoDaddy WHILE you're creating the … | |
Re: > Please let me know what you think, and whether this kind of thing might be useful in drawing more contributions from members or not. This is the kind of thing that appeals to me moreso than newbie coding (not a dis on newbie coding, but there's not much stimulating … | |
Re: Not the question you asked, but again, if there is no reason to have temp, get rid of it. int newER(int n) { int* R = new int[n]; int temp = 1; for(int index = 1; index == n; index++) { R[index] = (temp); temp++; } return R; } Voilà . … | |
Re: > C'mon experts! What's keeping you? Sorry. I was busy doing someone else's work for free. I'm here now, chomping at the bit at the opportunity to do even more pro-bono work since I have absolutely nothing else to do with my time. To the OP: As mentioned, I exist … | |
Re: > @Dani, in what way is JS broken? I dont know, you tell me as you are sysadmin here..... I'm guessing Dani is asking for a bug report from you since one assumes you believe you've found a bug. Telling her the JS is broken is too vague. The developer … | |
Re: >I just want to start in right way how to start by giving my giving effort Excellent. Glad you want to show efffort and start off on the right foot. However, your posts are coming off as a bit demanding and vague. Not saying that was your INTENT. Just saying … | |
Re: Line in/line out seems like it would be line in/line out regardless of what the input is (cassette player/CD Player/Microphone/speakers/musical instrument/whatever). The cassette player is going to produce analog output. You should have a line/microphone in jack on your computer. The software you use would largely be user preference. I … | |
My screenshot software seems to be having problems, so I'll have to just describe it. So I gave James +rep here in this thread. https://www.daniweb.com/programming/threads/507505/java-is-strictly-pass-by-value It shows up in the main Activity Stream that I did it (time 9:50 Pacific - five minutes ago). But it doesn't show up on … | |
Re: You need to re-calibrate your tinfoil hat. I don't demand much in this world, but I do demand consistency. For the record, I LOVE discussing nefarious plots, conspiracies, and "what if" doom and gloom tinfoil hat achieve-world-domination-through-fonts theories. Some people would write you off as a lunatic for worrying about … | |
Re: Consider n = 9 (it could be any positive integer). Hailstone sequence is as follows... `9 28 14 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1` Split this into 2 pieces (first element, remaining elements), like so. 1. `9` 2. `28 … | |
Re: > It's way too complex. and the temp variables are not needed. Agree. The extra variables detract from the readability and the logic. Temporary variables are used when you can't simply overwrite a variable and be done with it. You need to keep its former value for whatever reason because … | |
Re: How about creating an array containing the indexes of the zeroes? For your array { 1 , 0 , 2 , 5 , 1 , 3 , 0 , 1 , 1 , 0 } Your zeroes would be at indexes `{1, 6, 9}`. Creating this array requires one pass … | |
Re: > just....a liiiittle thing left to correct is the situation where str2 would have a char that is not included in str1 which should return false. That may or may not be a little thing. This is one of those problems where I have a bit of a problem figuring … | |
Re: It IS a marketing pitch. Was it somehow intended as anything else? And how is that a bad thing? In advance, I have neither the skillset to deliver the product you need, nor am I in a position to benefit from the opportunity you are offering. I will, however, offer … | |
Re: > How do i should start when I want to build it from the ground up and which language No one knows you or your team or the project you are attempting or your experience levels or your skillsets or your deadlines or any of the particulars, so no one … | |
Re: Changing line 9 to `y = x` should make no difference. The only POSSIBLE difference I can think of MIGHT be if you entered a value that is the negative limit of an integer. Subtracting 1 would take you out the range of an integer, then adding 1 might not … | |
Re: A few points... 1. You posted here too. https://www.daniweb.com/programming/software-development/code/355645/optimizing-matrix-multiplication That's bad for a number of reasons. One, you're posting the same exact question in two threads. Two, the other thread was a code SNIPPET, not a normal thread. Responses in a code snippet thread should be highly relevant to the … | |
Re: Hacking is just like anything else. It can be used for good or evil. Of course, the definition of "good" and "evil" will vary from person to person. Is WikiLeaks good or evil? Was it good or evil to hack into DNC computers? Could it be good in the right … | |
Re: > I took a screen shot of it and was able to crop it into a photo Might have been better uncropped. I applaud you for putting in the effort of only posting what you thought the relevant info was as opposed to many people who just dump everything. Thanks … | |
Re: > Have you identified the relationship between n and the exact manipulation yet? Agree. That needs to be nailed down. > exact manipulation would be based on user selection value which is supported If n is 5 and the number of words is 13, what order do you print the … | |
Re: >This is difficult, if only because the problem isn't rich enough to require much in the way of OO design or implementation. Agree. This is a tough project to start your Object-Oriented career on. Note James' examples. > (Car has Engine, Transmission. Employee has a Job. etc) This is easy … | |
Re: No one but you knows what game you should program. We don't know anything about you or your personality or your skill level or anything else. How could we suggest what you should create? Me, I like a good Solitaire game or a strategy game or a crossword puzzle game … | |
Re: Given the terms you are using ("no access to the server", "man in the middle", "stop it from execution", "intercept/change the code"), the short answer is no. PHP is a server side language. The php code will be interpreted and executed on the server and the process to send the … | |
Re: You don't add Big-O values. You can multiply them or do any number of other operations on two or more Big-O values, but you don't add or subtract them. This is independent of what the two Big-O values might represent and whether they are classes or subclasses or how the … | |
Re: A quick Google of some of the OP's language gets you a larger document. The OP's post seems to be a verbatim copy/paste of that larger document. I'll not link it here. The questions are why the copy/paste, why only part, why no link? Depending on how it's used, I … | |
Howdy! AssertNull here. I just created a new account. I'm not engaging in sock-puppetry here and you won't find 100 upvotes and comments about how helpful AssertNull is in answering questions and I won't be answering programming questions under this account if I can help it. The other account is … | |
Re: > I despise C++ ... should have been strangled at birth Blasphemy. > You have one variable x that is defined in A and inherited in all its subclasses. > That variable can only have one value at any one time. Yep. I'm seeing a mix of singular ("value") and … | |
Re: > i want to stop add after array[3] 3 is an illegal index for your array, which is size 3, which means that the legal indexes are 0, 1, and 2 given line 4 above. a is the index, you have no check in place to make sure it is … | |
Re: My PHP is more than a little rusty and my SQL even rustier, but this looks off... while($row = $result->fetch_assoc()) { $arrayName = array($row["$field"]); } Looks like $arrayName will keep getting overwritten in the while loop? Are you trying to APPEND to $arrayName every trip through the while loop? If … | |
Re: Who's challenging who and with what and for what purpose? If you're challenging us, you should know something about the material or have some type of an opinion or context or something , none of which appears anywhere in your post. If YOU'RE being challenged by someone else, that's something … | |
Re: > I want to say thank you for taking the time to share how to go about fixing this. So it's fixed? >I did not find the solution. Guess not. Therefore we can assume that if some helpful newbie posts the exact same "solution" that didn't work the last time, … | |
Re: > Most companies expect you do attend meetings, drink coffee, document your code, fill in time sheets etc etc. No one likes going to meetings, but if you're not expected to go to meetings, there's a decent chance it's because no one thinks you have anything to say that's worth … | |
Re: Scroll down to near the bottom for the start() function. https://docs.oracle.com/javase/8/docs/api/java/lang/ProcessBuilder.html > public Process start() > throws IOException Look at your error... > Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - unreported exception java.io.IOException; must be caught or declared to be thrown You aren't catching the IOException in your … | |
Re: > Is/was the copy of XP a legit one or a pirated/cracked jobby? Surely Microsoft has now made available legit XP downloads and legit product keys now? Regarding getting files, you can also boot up any Linux Live Boot CD/DVD and bypass Windows altogether and retrieve the files in Linux … | |
Re: No clue about WordPress and I'm not a web developer, so normally that would make me the wrong guy to answer questions like this. In this case, though, it probably makes me the RIGHT guy as I can tell you how I, a fellow novice at this, would do it. … | |
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World … | |
Re: For the user input part, see this snippet. https://www.daniweb.com/programming/code/506346/a-simpler-safer-alternative-to-java-util-scanner Or google "Java input integer". You'll need to declare an integer called highestEvenNumberEntered and initialize it to something less than the lowest legitimate even integer, so anything less than two. You'll also need an integer variable called userInput. Set up a … | |
Re: > I know you guys aren't really seeing the full benefits of Dazah quite yet I'm trying to remember what you said Dazah was a while back. If I recall correctly your basic theme was "I'm not done yet, it's really hard to explain, it'll make much more sense when … | |
Re: > I can't see anything on the internet You didn't actually write this, did you? I won't post a Let Me Google That For You link... This time... :-) > We're assuming latest of hardware, and no limits when it comes to money. No need to wait for new hardware. … | |
Just responded to a post that I made a typo in, did an edit, fixed the typo, and filled in the reason for editing field. It doesn't show up in the Recent Activity that I've made the edit, only that I made the reply, nor does it show anywhere that … | |
Re: So you not only expect us to write the program for you, but on top of that, we also have to figure out what the pattern/formula that generates "8 12 17 24 28 33 40...100" before we can even write the program? What's our incentive to do this for you? … |
The End.