248 Posted Topics
Re: Two main methods: * Plug into an existing utility (`wget` or `curl` for example) * Link against an existing library with the level of abstraction you need | |
Re: We don't do your homework for you, and this sounds like a homework assignment. What code have you got so far? Where are you stuck? | |
Re: I've got a function for doing that sitting on my PC, but to save me digging it up and to help you through the problem, could you show us the pseudo routine and/or assembly code for your integer to string conversion? Smiley faces are either 0x1 or 0x2, 0x1 being … | |
![]() | Re: Which errors are you getting? ![]() |
Re: >Should I get ubuntu on my mac? I've never been so unfortunate as to own a Mac, but I'm sure it's possible. Should you? If you want to, go for it. >Is it good for programming? As good as any other distribution of linux. >Does DirectX support linux? As Greg_z … | |
Re: >Mods, since no one has responded, can you take this post down? Look on the bright side, someone might come up with a solution and it may solve someone else's problem many, many years into the future.... | |
Re: Good for you :L What's your question? | |
Re: You sure can ask, but AFAIK you probably won't get a good answer unless you provide more detail and context. | |
Re: >Happy New Year! (in advance or belated, depending on where you are!) Belated, seeing as we're UTC+13. Here in New Zealand we're 175°E-ish so 5° of longitude away from being the first in the word to enter the new year. | |
Re: The cut_str() isn't included in the standard PHP installation, it's probably been written by you or someone else, in a PHP source file. Nobody else has a copy of this function's code because it only exists in your code. Please post the `cut_str` function's code. | |
Re: >It really depends on what granularity you're looking for. More precise timing becomes more and more difficult, as you mentioned, for various reasons. Anyone going to be cheeky and submit a snippet which uses the PIT? Wait, no it wouldn't be portable - it'd be doomed for use on DOS … | |
Re: >Any help? You'll have to be more patient, please wait more than simply 4 hours before bumping like that. Give it at least 24 hours, as some people aren't in the same timezone as you. | |
Re: >how can I hide this error!? You really should use mysqli_* or else one day in the future when you upgrade PHP, your code will just stop working, and you'll have PHP complaining that mysql_connect() doesn't exist. When functions are deprecated, it is a sign that you must begin migrating … | |
Re: Would people please **stop reviving this thread**? Can we get a mod to lock it or something? | |
Re: Ohh crap, here we go with a potential flame/argument/back-and-forward/opinion thread. Oh well, it's been civilised so far, let's keep it that way. I've used both `vi` and `nano` and prefer nano simply because I find it more user friendly. Then again, I never do serious editing in a terminal. | |
Re: You can sort-of dynamically create tuples, for example: name = "Jim" last_name = "Beam" mytuple = (name, last_name) However, you'd not be able to dynamically change the size of a tuple. That sort of thing's hard-coded. | |
Re: A whole hour? That's nothing ;) But seriously, good on you for soliving the problem yourself and posting the solution for others. | |
Re: >Go to a decent store selling musical instruments I second this. I had a cousin who picked up a $60 electric guitar + amp package from what was basically a supermarket bargain bin simply because it was cheap. He thrashed the whammy bar while playing some band like Burzum and … | |
Re: >Can anyone help me? You can help us help you by asking your question more clearly and first showing some effort towards solving the problem. | |
Re: You agreed to [these rules](http://www.daniweb.com/community/rules) when you signed up. I'll quote from that very page: >Do provide evidence of having done some work yourself if posting questions from school or work assignments | |
Re: >I think you can use any compiler which has the ability modify the linker, GNU's compiler has linker scripts which controls this important aspect. No, no, no, no, don't make that assumption. Unfortunately, it's more complicated than that. A toolchain is compiled to handle the quirks and twists of the … | |
Re: >they can increase the tax on it. Thus penalising everyone for a minority's mistakes? ![]() | |
Re: In case you don't get it, what deceptikon is talking about is the homework policy. | |
Re: What do you think is going to change inFile's boolean state to quit the loop? | |
Re: As long as a new HDD can connect to the motherboard, you should be fine on that issue. AFAIK, all new HDDs now have a SATA interface, so your mobo would need a SATA connector. That's the main thing to check just off the top of my head. | |
Re: `set /p` is a `set` command with a 'prompt' flag fed to it, meaning that it will prompt the user for a value to set the variable to. Example (untested): set /p "myvar=Enter a value: " echo You said %myvar% To answer your second question, check out [DosTips](http://dostips.com). | |
Re: Let's take AD's point to the extreme: >someone can always replace the intended program with his/her own malicious one Okay, what if someone replaces libc with their own malicious one, with all of the original code in there, such that programs will still run, but there will be malicious code … | |
Re: >Hai can any one modify this code to produce the combination that will be able to pronounce? I mean if the input is abc then it should produce cab and bac only. not all of it. To do this, you'd have to sit down and write out pairs (maybe even … | |
Re: Also, if you're not explicitly required to write a string length function, you can use `strlen()`. And if you're into optimising your function, you could do something like the following, but if you're only just starting C++, then don't listen to the next bit :) unsigned int Count_characters(const char *string) … | |
Re: We don't do your homework for you, you must first show us your code/progress so far. | |
Re: For a start, some compilers allow a declaration of a variable inside a for loop, eg `for(int i=0;...`. Also, you can cut out comparisons with 0 like `if(i%3==0&&i%5!=0)`. If `i%3` is 0, then it is effectively a boolean with value FALSE, otherwise it's a boolean TRUE. Also, you don't need … | |
Re: Do you mean that Ubuntu set up a tiny partition and is only using that? Maybe post a summary of `sudo cfdisk /dev/your-hdd-or-disk-or-whatever`. You can extend and shrink partitions fairly safely using gParted, remembering to run it from a disk which isn't the one you're changing. | |
Re: @JeffGrigg the downvoter, this is a code snippet, not a thread. You might like to look a little more carefully before asking what the OP's question is :) | |
| |
Re: While we're on the topic of the buttons, I find them a bit standy-outy. I find them to draw attention away from the post. Maybe if they were more pale? Maybe it's just me. | |
Re: I'm afraid you'll need to explain more clearly before anyone can help you - maybe provide a screenshot of what these popups look like too. | |
Re: That's a statement, what's your question? What have you done so far? | |
Re: We don't do your homework for you. Show some effort or an attempt and come back with a specific question. | |
Re: Search Engines are smarter than to take 3 links to your website on the same thread and count them as backlinks. | |
Re: If it's on the 'Deep Web' (ie if it's a hidden ToR service) then no. Otherwise, you might as well have a try at getting it shut down - talk to local authorities. | |
Re: Are you sure that there is more than one result being returned? | |
Re: >On my end, the load time is 0.28 seconds (further from the server, I guess) AFAIK, (and if you're talking about the thing in the footer), it's how long it took for the page to be generated, before dispatch to the client, so your distace from the server or link … ![]() | |
Re: Care to share your solution for people who might have the same problem in future? | |
Re: You're forgetting that the compiler can optimise. Who's to say the compiler doesn't change a multiplication into something like #1, and simplify #2 to #1? There are too many variables here to say for sure which is the fastest when it is put into practice. >The only minus is the … | |
Re: >I understand but I've already deleted it. You could undelete it, then shred it. OR you could use `dd if=/dev/urandom of=filler` to fill up the empty space on your disk with random data. Just to be sure that the file's data still isnt there | |
Re: >If you work at home, then yes you can. That would be omitting the fact that a lot of clients are driven away by people who aren't suit-wearing, conforming pricks. But four posts up, happygeek dealed with that issue. | |
![]() | Re: Looks fine for me, although I'm running Firefox and Chromium on Linux, not Chrome on Win7 ![]() |
The End.