345 Posted Topics
Re: Daniweb needs some fresh blood for these threads to go anywhere. As far as I can tell I was the only American commenting on the Trump thread. You need some Southerners and Conservatives to chime in. I'm neither. Thus I have zero cognitive dissonance in bashing Jefferson Davis and the … | |
Re: It all depends on how the mailing is triggered. If, for example, a button is clicked which creates POST data to this page with a value like `sendmail=yes` and the code checks for that and sends the mail if and only if that happens, you can append a random number … | |
Re: Ah, mazes. Love 'em. I read your posts a few times and I sort of get what you're going for, but not entirely. I'm a little confused about the dilemma of "finding" an intersection. If you have a choice of going straight, left, or right, you've "found" an intersection. "Found" … | |
I am brand new to Android development. Hopefully this is an easy one. Relevant code (I hope) below. import android.location.LocationManager; import android.content.Context; LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); I get the following: Error: error: cannot find symbol method getSystemService(String) All the code samples I am seeing say to do the above. … | |
Re: > educating users against unsafe practices. This might be beyond the scope of your article, but how does Randsomware work? Most of us have been educated at least to the point where we know to scan any executables that we download for KNOWN malware, to try to spot the difference … | |
Re: Are you sure about that link? I clicked once and it appears to be a boilerplate "for sale" page and now I get a broken link from the Daniweb parser when I click on it. So i can't see precisely what you are trying to read. However, you did say … | |
Re: A few questions for anyone who might know... 1. What's the price to charge the car? Same rate as elecricity rates everywhere else? If so, at least here in California the electricity rates are much cheaper at night than in the day so I assume folks charge it in the … | |
Re: The spec seems to give you a lot of latitude on how to implement this. That's a good thing and a bad thing. It's good because it lets you get your creative juices flowing and try different things. It's bad because... well, hmmm, is it a bad thing? If you're … | |
Re: Ditto what Coller said. Or even forget the asserts for now. Just run the program for some obvious tests. IV seems to return 6 instead of 4. When it passes all the obvious stuff you can throw at it, then worry about Unit Testing IMO. | |
Re: For the first one, try replacing apple.com with something else. In particular, create a very simple Hello World webpage with a single file, no CSS, no Javascript, no redirect code, no authentication or anti-spam or anti-bot code, etc., and see if it works perfectly. My guess is it will. Then … ![]() | |
Re: > I'll wake-up and come to my senses and think why didn't I keep my mouth shut and just build the damn projects and then show it to everyone for feed back and approval. If I created something that made Google bankrupt, I wouldn't bother seeking feedback or approval. The … | |
Re: I'm seeing a trend in your posts... I went on that del.icio.us site. No description of what the hell it's all about, just the option to sign in, sign up, or download something. Just so I could respond intelligently, I picked "Sign Up". Result was a form asking for e-mail … | |
![]() | Re: At the risk of psychoanalyzing and doing a regression analysis/correlation with too few data points, I'll note a downslope in the severity/outrageousness of the problem and an upslope in the motives/intelligence of the offending posters in Diafol's posts with relation to time elapsed from whatever may have caused his early-morning … |
Re: I will share my opinion in a subsequent post. Before I do, however, you must upvote that post before reading it, and tell the world how wonderful the post that I have yet to write is. Then and only then will I share my opinion. But trust me. It will … | |
Re: Can't seem to upvote w/ comment on Diafol's post. Hmm. This will be my last time commenting on any of your posts UI. In case you didn't realize, this is a major breach of forum etiquette. If you didn't know that, now would be the time to simply acknowledge that. … | |
Re: Asked a week ago. See my response. Problem remains. This should anwer your question. Job one is to fix this very obvious problem. There is no trick and no shortcut. Answer the question "Why would someone hire you?". Your website should reflect that reason. https://www.daniweb.com/programming/web-development/threads/508552/how-to-get-more-leads-in-my-business | |
Re: I see metrikhive.com and metrikhive.in. Same business? Perhaps a link between the two or simply forward one to the other? On the ".com" site... Clean up http://www.metrikhive.com/jobs/ You have this... > This job listing was created using Job Manager for WordPress, by Tom Townsend. And a link to a 404 … | |
Re: People move websites to different domains all the time. You just copy all the relevant files and databases and stick it where it needs to go. It's pretty fast. One click? Not quite THAT fast and generally there's at least a LITTLE thinking involved, but I imagine there are scripts … | |
Re: As a general comment, you've had many threads dealing with buffer overflows, NULL pointers, spacing issues, conversion issues, etc., etc. that would appear to be less problematic is you used C++ rather than C. I'm not a purist, so I'm all for leaving stuff in C and not fixing what … | |
Re: You should describe what you're TRYING to do in simple English sentences. I'm guessing here, but it LOOKS like you MAY be trying to test whether the character at index 1 of "this is a string" is the letter 'h'. If so... #include <iostream> #include<string> using namespace std; int main(int … | |
Re: You can "flag" a bad post, though that's generally for spam, illegal stuff, porn, bad language, racism, etc., etc. Stuff to be deleted ASAP. It's generally pretty obvious stuff. I don't know that plagiarism and "Do my work/homework for me" quite rise to the "Flag bad post" level. Perhaps a … | |
Re: Very little experience on streaming audio and video and that experience was largely unsuccessful, so this post comes from that perspective. That said, a few points... 1. This is clearly Intro To Sockets skeleton code that you have posted. If you are new to sockets, I'd advise that you learn … | |
Re: I don't necessarily have a gripe against "Do this in order to unlock content" schemes PROVIDED that you fully inform people upfront exactly what the requirements are. What ad folks do very often is demand things piecemeal. Thus I'm told I have to fill out a survey to access the … ![]() | |
Re: > Your first choice should be the opposite of your opponent's second choice. Not sure if that was part of the "typo", but the description does not match the graphic in post 1: "THT" (graphic) in response to "HTH". By the description, you'd pick "**H**HT" in response to "H**T**H". I … | |
Re: > jkon, essentially what you're asking for seems to me like a combination of reputation and post comments. For example, https://www.daniweb.com/members/479282/jkon/comments ... > How is that different than what we have via our existing member comments page, which has the added bonus of tying into reputation and being able to … | |
Re: > or do you think I should take a girl to dinner and buy flowers before I try and get in her pants? (ie. just get hosting and install phpBB or the like).. I'm usually pretty good at analogies, but I'm having trouble with this one. The girl is the … ![]() | |
The bad-word filter didn't add the asterisks. I did. I got passed a link to this "Computer Language" by a parent who asked me if I knew anything about it and was this a worthwhile endeavor for her teenage son to learn. I assumed by the name that it was … | |
Re: "Permutations" and "combinations" have specific definitions in Combinatorics/Probability. 4-4-4 would not be a permutation since repeats are not allowed. Ditto combinations. Combinations are permutations where the order does not count, so 1-2-4 and 4-2-1 would be different permutations, but the same combination. Thus any formula taking an exponent to a … | |
Re: > my thesis will be on july I have no advice to offer regarding OpenCV, but I'll offer some generic advice. If you're writing a graduate/professional level thesis, that's usually a huge project, generally far too big for an online forum where the posters are anonymous and the advice is … | |
Re: > and I need you guys to explait it into detailt Translation: "I want you to spend 100 times more time crafting a response for free that does not benefit you than the time I was willing to spend crafting the question. If you are willing to do this, I … | |
Re: > i want to store the x- coordinates of all points in 2D array Why only x? Why not store the x AND y coordinates? Your question is difficult to answer as we don't know your current C++ skill level. Storing x AND Y doubles the memory size for a … | |
Re: Guessing from the "MyApp" and the context and the error message that the OP is using Android Studio to develop an Android Application that is crashing. This is only an educated guess. OP, if true, see this link... http://stackoverflow.com/questions/23353173/unfortunately-myapp-has-stopped-how-can-i-solve-this It's a pretty useless error message, but that's because it's intended … | |
Re: Cats are cool. I like watching 'em. There's also a new trend of Live Eagle Cams and they can be fascinating (there are a bunch of em, so I won't link to one: google "Live Eagle Cam") and addicting. I watched one for six hours straight and I wasn't even … | |
Re: Every language that displays human-readable text has "non-printable" characters that must be "displayed" sometimes. When coding, you need to somehow be able to display those characters (in the code, not during execution) in a human-readable way or you'd go insane trying to read the code. Thus language needs to be … | |
Re: I'm confused why PHP chose to return FALSE rather than -1 (not found) like C++ (string::npos) here. It's returning an index. Why bother mixing types? What's the advantage? A negative integer representing an obviously non-existent index if not found or a non-negative integer representing the real index if found seems … | |
Re: > It is the fgets and sscanf that do not seem to be working correctly. Garbage in, garbage out. fgets is reading wrong and the scanf code requires that fgets reads correctly in order to do its job. Looking at the very first line, it appears that fgets fails on … | |
Re: Non-security guy here, but putting on my tinfoil hat and thinking about this comment... > Is this the most secure hard drive ever made? Who can tell? Certainly not me, as I am not privy to the inner workings of government agencies. Is it the most secure hard drive I … | |
Re: > Yes, I just have not find the answer yet. That's why I posted the same questions on two threads. I will close the thread once I find out the answer. Wrong answer. Not to over-analyze, but the repeated use of the word "I" coupled with the lack of any … | |
Re: >what will be the complexity of An Area of a circle 42. Most people write it as O(1), but since the constant doesn't matter, stick in your favorite number. No variables. Multiply the radius times itself, then times PI. Constant time. Well this is weird. My "42" in paragraph above … | |
Re: Yep, it's the dot. Just call your class split_file or SplitFile or something. This thread made me browse the web for the naming conventions and do a little experimentation. Interestingly enough, I could stick a $ character in my class name and get away with it. But not a dot. … | |
Re: That deep-breathing stuff works. I was angry reading this thread, so if you're a troll, congratulations on your success in sowing discord, albeit temporarily. Then I followed your advice. Breathe in. Breathe out. Ahh. This is one of the rare times I actually have something pertinent to add to a … | |
Re: > write(2, "Fixed point: {0:f}", 50.0); You're trying to find the integer value between 'f' and '}', correct? In this case, there is none, so that value should be 0, correct? > write(2, "Fixed point: {0:f3}", 50.0); And in this case it would be 3, correct? If so, you seem … | |
Re: A phone screening or phone anything isn't particularly a good vehicle for learning someone's programming skills IMO. The fact that they haven't specified a language would add to my guess that they may be screening for experience and aptitude rather than actual skill in coding. By all means do call … | |
Re: Forget about FINDING what he's looking for. What exactly is he looking for? He's Bono. He's led one hell of a life. He should be satisfied. Looking at the lyrics, it appears that he's looking for a girl, though my friend shook his head in disgust at me when I … | |
Re: I think there's a fortune to be made for anyone able and willing to start privacy-centered companies. Companies who value privacy for real and don't snoop or let others snoop and protect their clients/customers. Surely someone can start manufacturing TV's, phones, cars, etc., and the software/firewalls/operating systems to go along … | |
Re: What's supposed to go into the output file? Just each month's rent, but no totals? It appears to be that way now. Assuming that is correct, I'm seeing a variable called total used in lines 37 and 43 that appears to calculate the total rent for each complex. However, I … | |
Re: Line 99: Replace with this line to see what is going on... printf("A non-bracket was entered\n", line, str, c); > when i run it for example on this "(){}" it still giving the printf() at the end anyway.. "Works" for me. I don't get that printout. Can't see why you … | |
Re: > I find contributor's quarreling in the comments of what works and what not. As on Daniweb or anywhere else. > Obviously, one of them is right and the other wrong. Sometimes it is not so cut and dry. If there is an actual BUG, generally it is pointed out … | |
Re: Here's a semi-start, simply doing a few cut-pastes in your code. Player and Zombie seem like good classes. To start you off, I've changed the Player to a Plain-Old-Data structure. A structure is a class, except its default access is public, not private. Google "C++ struct vs. class" for more … | |
Consider my post in this thread... https://www.daniweb.com/programming/software-development/threads/508038/how-to-change-this-program-to-fully-oop Consider this code... int main() { srand(time(NULL)); char enter; // game starts Player player; // title cout << "Welcome to Zombie War." << endl << "Press [ENTER] to start."; cin.get(); // player name cout << "Please enter your name: "; cin >> player.playerName; … |
The End.