345 Posted Topics

Member Avatar for noname_5

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 …

Member Avatar for AssertNull
0
943
Member Avatar for happygeek

> 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 …

Member Avatar for Siberian
0
507
Member Avatar for Dani

> 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, …

Member Avatar for Dani
6
1K
Member Avatar for diafol

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 …

Member Avatar for diafol
0
453
Member Avatar for Dani

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 …

Member Avatar for AssertNull
0
703
Member Avatar for can-mohan

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. …

Member Avatar for can-mohan
0
4K
Member Avatar for Ama_1

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 …

Member Avatar for AssertNull
0
454
Member Avatar for happygeek

> 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 …

Member Avatar for happygeek
0
465
Member Avatar for Stefce

> 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 …

Member Avatar for William_16
0
470
Member Avatar for Dani

> 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 …

Member Avatar for Reverend Jim
0
731
Member Avatar for Sherwin_4

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à. …

Member Avatar for Sherwin_4
0
2K
Member Avatar for Inter Results

> 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 …

Member Avatar for AssertNull
-1
285
Member Avatar for Dani

> @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 …

Member Avatar for Dani
0
683
Member Avatar for kasis

>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 …

Member Avatar for JamesCherrill
0
476
Member Avatar for it@61@sec

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 …

Member Avatar for rubberman
2
883
Member Avatar for AssertNull

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 …

Member Avatar for Dani
0
496
Member Avatar for Aeonix

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 …

Member Avatar for cereal
0
475
Member Avatar for Sherwin_4

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 …

Member Avatar for JamesCherrill
0
783
Member Avatar for Sherwin_4

> 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 …

Member Avatar for Sherwin_4
0
2K
Member Avatar for Adm666

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 …

Member Avatar for JamesCherrill
0
411
Member Avatar for Adm666

> 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 …

Member Avatar for Adm666
0
4K
Member Avatar for Dani

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 …

Member Avatar for Dani
1
971
Member Avatar for Alex_60

> 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 …

Member Avatar for Dani
0
506
Member Avatar for Peter_36

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 …

Member Avatar for JamesCherrill
0
491
Member Avatar for Sam_31

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 …

Member Avatar for AssertNull
0
289
Member Avatar for hinaraees

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 …

Member Avatar for happygeek
0
443
Member Avatar for Jen_3

> 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 …

Member Avatar for Reverend Jim
0
466
Member Avatar for can-mohan

> 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 …

Member Avatar for JamesCherrill
0
485
Member Avatar for eel

>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 …

Member Avatar for JamesCherrill
0
837
Member Avatar for Lucas_10

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 …

Member Avatar for Lee_15
-2
440
Member Avatar for Stefce

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 …

Member Avatar for cereal
0
439
Member Avatar for rose_2

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 …

Member Avatar for AssertNull
0
354
Member Avatar for zike_1

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 …

Member Avatar for jwenting
0
207
Member Avatar for AssertNull

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 …

Member Avatar for Dani
1
1K
Member Avatar for can-mohan

> 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 …

Member Avatar for can-mohan
0
477
Member Avatar for ChangWon

> 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 …

Member Avatar for ChangWon
0
256
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
294
Member Avatar for Smain

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 …

Member Avatar for AssertNull
-1
424
Member Avatar for David_87

> 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, …

Member Avatar for rproffitt
0
412
Member Avatar for shalu_1
Re: c++

I'm happy to write you a program that you can compile and run. It will compile and run with no errors. I want no money for this. This is your lucky day since you need not put any effort into this at all. In fact, it works best if you …

Member Avatar for ddanbe
-1
380
Member Avatar for markdean1989

> 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 …

Member Avatar for markdean1989
0
307
Member Avatar for brothman01

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 …

Member Avatar for JamesCherrill
0
3K
Member Avatar for gangstaXP

> 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 …

Member Avatar for gangstaXP
0
404
Member Avatar for f.krueger

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. …

Member Avatar for f.krueger
0
880
Member Avatar for AssertNull

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 …

Member Avatar for AssertNull
0
2K
Member Avatar for Ric-Albert

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 …

Member Avatar for brothman01
0
253
Member Avatar for Dani

> 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 …

Member Avatar for Dani
0
916
Member Avatar for Aeonix

> 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. …

Member Avatar for rubberman
0
347
Member Avatar for AssertNull

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 …

Member Avatar for Dani
0
352
Member Avatar for Muhammad_122

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? …

Member Avatar for rubberman
-1
457

The End.