669 Posted Topics
Re: Have you tried Editra? Editra is a lightweight text editor (written entirely in Python) with really fast code-completion/auto-completion for python. It also has call-tips/code-hinting for variables in your code (as per your screenshot!), but the call-tips are a little slower than the auto-completion. You have to select the variable-name and … | |
Re: I strongly suggest that you have a go at doing your own homework as per the community rules: https://www.daniweb.com/community/rules If you have trouble finding it, under the "Keep It Organized" section is this rule: Do provide evidence of having done some work yourself if posting questions from school or work … | |
Re: I strongly suggest that you have a go at doing your own homework as per the community rules: https://www.daniweb.com/community/rules If you have trouble finding it, under the "Keep It Organized" section is this rule: Do provide evidence of having done some work yourself if posting questions from school or work … | |
![]() | Re: Heh heh, to paraphrase that famous bit of badly translated script from Zero Wing: All your post are belong to Dani! XD |
Re: There are a number of ways that you could install Ubuntu on a USB drive and it all depends on what you want. Do you just want a live environment on the USB drive? or do you want to be able to save documents and make changes to the settings … | |
Re: Can you post a link to the original video? That might yield further clues! It's definitely not one of the major distros (unless it has simply been heavily modified). And I agree with Mike the bottom bar definitely hints that the desktop could be Kde or lxde based. The dock … | |
Re: A quick bit of duckduckgo-fu yielded this: http://xlinux.nist.gov/dads//HTML/btree.html Which looks like it contains all the information you need to get started, including links to tutorials/implementations and descriptions of the various specialisations of B-trees. Is that any help? | |
Re: Line 9: Remove the & from &friends. That'll fix it! Using &friends causes the address of the int variable called friends to be printed via printf. Remove the & and the value stored in the friends variable will be printed! | |
Re: Another alternative to SDL is [SFML](http://www.sfml-dev.org/) - Small Fast Media Library. It's in C++ and is extremely simple to use! | |
Re: At a guess, it's because you are passing the GdiPlus::Image class constructor (for the img member of your image class) a wchar_t when it wants a pointer to wchar_t, a WCHAR\*. Have you tried this: image( const string & filename) : graphics(hdcimage),img(&(towstring(filename))) { //............. That will pass the address of … | |
Re: I've been sporting a long goatee beard for the last 15 years or so. Don't know too many people in the IT/programming field with beards, but I know plenty of bearded bikers, metallers and musicians! | |
Re: Took me a little while to spot this, but I think you are going to kick yourself! Have a close look at what your loadSurface function is doing: Line 140: You load the image into an SDL_surface pointer called loadedSurface. Line 149: if the image loaded sucessfully, you optimise the … | |
Re: You have a wide range of options: On Windows you could install the free version of Visual C++ Express (or buy a licence for one of the full versions of VS) and use the Visual Studio IDE and compiler. Or you could use a free IDE like Code::Blocks with Mingw … | |
Re: The OPs questions are in the comments in the code. @OP: How you would populate the vector of records would depend entirely on how the data has been stored in the input file. You need to read the data from the file and convert that to records that you can … | |
Re: The only obvious thing that I can see that would cause a crash is at lines 10 and 11. At line 10, you attempt to open and get a pointer to a file with the filename you have set-up. But you haven't performed any kind of check on the pointer … | |
Re: That's strange! Are you saying that compiling the program causes the wrapper-library to throw an exception?? That doesn't seem at all right! From what you've posted, it looks more like your code compiled just fine and that you're getting a crash at runtime, due to an unhandled exception thrown by … | |
Re: I'm having a similar problem. I just tried attaching a patch file to one of my posts as .patch.gz (compressed), .patch (uncompressed) and .txt and it keeps telling me that it is not allowed. I'm using Firefox on Kubuntu 14.04. | |
Re: You could try installing and using the Tagpy library to tag the mp3 files. Tagpy should be available in the repos of most distros - I think the package is called python-tagpy on Debian/Ubuntu based distros. Not sure what it's called on others. | |
Re: Personally, I like a mixture of the two. At home I like good old-fashioned paper books. I have my own little geek library, which I use for reference/general study and entertainment... Yes, that's right. I said entertainment! There is some fiction in there, it's not all technical manuals! Heh heh! … | |
Re: AFAIK, with most Linux distros which use Bash as the default shell; many of them already have $PATH set up to check for a bin sub-directory in the users home directory (or it might be something in .bashrc... can't remember offhand! But it's definitely there!). So if you create a … | |
Re: Over the last couple of days the sky's been a funny bright-blue colour and there's been a strange, bright, round-thing in the sky....Not sure what it's called. But I think I have childhood memories of this kind of weather! Heh heh. It certainly makes a change from all the cold, … | |
Re: I'd have to echo Rubberman! The first thing I'd suggest is clean up your indentation and your general code-formatting, it's all over the place. As your code currently stands, it's pretty unreadable. Nobody is going to try and read it in its current state. Secondly, I recommend putting your classes … | |
Re: As the MyCon objects have all been allocated on the heap with new, you should probably iterate through the map and delete all of the MyCon elements before the std::map drops out of scope! So iterate through the map, delete each MyCon pointer and perhaps use map.erase to remove each … | |
| |
Re: I have a copy of Apress [Pro Linux Systems Administration](https://www.linux.com/directory/Books/pro-linux-systems-administration) by James Turnbull, Peter Lieverdink and Dennis Matotek. It covers pretty much everything from the basics, including partitioning and user management. Right up to much more advanced topics like managing large-scale deployment/configuration of Linux over a network using Puppet. It … | |
Re: Your reverseNode function takes a double as a parameter. But in your recursive call to reverseNode at line 56 you are dereferencing rest, which is declared as a pointer to a ListNode. So you are effectively passing a ListNode into the recursive call, NOT a double, which is what the … | |
Re: I've never really messed with vi/vim scripts, other than making a few minor modifications to my .vimrc startup file. Using vim, you could sort the file using the command `:sort`. That will sort the file in exactly the manner you have described. It's only a simple alphabetic sort, so there … | |
Re: The command line used to compile the program looks completely incorrect. When using QT, the best bet is to use qmake, I think it comes with QT when you download the QT development files, but it might be a separate package..... Been a long while since I installed it! To … | |
![]() | Re: It is almost certain that the kernel module/driver for the sound-card is in use. If Alsa is running, that would also be using the kernel module for the sound card. So something (either the driver or ALSA) is claiming ownership of the sound device and this is most likely stopping … ![]() |
Re: You need to be root in order to create directories at that location, so you need to use sudo at the beginning of the command. Eg. sudo mkdir -p /red5/blahblahblah.............. | |
Re: As Labdabeta pointed out in your other thread, localtime_s takes a pointer to a tm struct as the 1st parameter and a pointer to a time_t as the 2nd. So this is all you need: time_t now = time(0); tm ltm; localtime_s(<m, &now); Instead of a tm pointer, you now … | |
![]() | Re: Do you have wxWidgets installed? From the look of the one error you've listed, i'm guessing you don't.... Otherwise, it could be that the path to the wx libraries have not been set up properly. The project templates in C::B will only work if the libraries the project depends on … |
Re: Tinstaafl is correct. You need to remove the cin.ignore() at line 29. That does not need to be there. But wherever you use cin to get input from the user (i.e. using `cin >>`), you need to use a call to cin.ignore() immediately afterwards. But it's not necessary to use … | |
![]() | Re: As somebody who has gone "full-freetard", I only run Linux at home and have no need for more than one OS on any of my machines. But I have to use Windows at work and have no real justification to install any other OSes on my work machine either. So … ![]() |
Re: It should be possible to updgrade from 10.10 to 12.04, but to be honest, it would probably be quicker and easier to do a clean install of 12.04. Assuming you still have the update manager installed: (Note: You will still need the update manager - if you do not have … | |
Re: To install sox in ubuntu, you can just use: `sudo apt-get install sox` According to the [Package lists](http://packages.ubuntu.com/search?suite=precise&searchon=names&keywords=sox) maintained by Ubuntu.com, Ubuntu 12.04 currently uses version 14.3.31. Which is newer than v12.xx of sox. So the version which is currently in the Ubuntu repos should be good enough! But if … | |
Re: It depends on whether OpenMeetings wants the path to the tools that make up ImageMagick, or the path to the ImageMagick libraries. The ImageMagick tools (convert, identify, mogrify, composite, montage etc) should all be installed to `/usr/bin/`. To confirm you have them installed, try `which convert`, which should give you … | |
Re: Actually, Sanchit is incorrect. You need to be using sudo to move the file. root is the owner of /usr/lib/, so in order to move the red52 folder to /usr/lib/, you will need to be root. So try this instead: `sudo mv red52/ /usr/lib/` That should work! | |
Re: It depends how you interpret the OPs original question. I'd interpret it in the same way as ddanbe. Rather than wanting to count each occurrence of each individual character in those ranges, the OP wants to count the following: - The number of numeric digit characters - The number of … | |
Re: I know this has already been solved. But as an addendum: If you use a lot of different compressed formats(.7z, .zip, .tar.gz, .rar, .ace) and you want to be able to extract them on the command line, but without having to remember all of the different command line switches and … ![]() | |
Re: To expand Mochops answer a little: The modulus operator '%' divides the number to its left, by the number to its right and returns the remainder. As moschops pointed out 10%20 is 10. Because 10 divides by 20 zero times, leaving a remainder of 10. Whereas 20%10 is 0. Because … | |
![]() | Re: See that semicolon at the end of line 70? That's your problem! Thanks to the semicolon, you've effectively set up an infinite loop at line 70. ![]() |
Re: OK, first off; you have posted in the incorrect section of the site. This question belongs in the C section, NOT the web development section.... But I'm sure one of the mods will rectify that shortly! Secondly, can you post more details on the program that is experiencing the segfault? … | |
Re: Rubberman was suggesting that you use the strdup function found in string.h. In his post he posted the definition of the function as found in the header: `char* strdup(const char* source);` In other words strdup is a function which takes a const char\* as a parameter and returns a char\*. … | |
Re: Regenesis by Kinasis Yes, my own band.... Sad, I know! But we have a gig in Bristol tomorrow night and I've been drumming along on my practice pads in preparation. And it was the last song I ran through.. So nah! Heh heh! :P Here's the official lyric vid for … | |
Re: To clarify L7Sqr's point: At the end of the day a number is just a number. It doesn't matter what base it is in, it ultimately has the same value. When a number is stored in an int variable, it is actually stored in memory as a binary value. Octal, … | |
Re: Or as you want to go up a level from the current path, perhaps use find_last_of: #include <iostream> #include <string> int main () { std::string src, dst; src = "C:\\Windows\\subfolder"; dst = src.substr (0, src.find_last_of ("\\") + 1); std::cout << "Original: " << src << std::endl; std::cout << "Modified: " … | |
Re: Which version of Ubuntu are you using? [This](http://neanderslob.com/2013/09/27/how-to-install-open-meetings-on-ubuntu-12-04/) blog post explains how to do it in Ubuntu 12.04. The instructions should work on any other recent versions of Ubuntu from what I can see. I haven't tested it myself, but it looks like it should work. According to the article, … ![]() | |
![]() | Re: I remember reading an article somewhere online in the last couple of weeks discussing this very issue. Pear OS was a one man effort, so it is possible that David Tavares simply decided to end the project. However that is unlikely because before the Pear OS website was taken down … |
The End.