669 Posted Topics

Member Avatar for Tcll

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 …

Member Avatar for Tcll
0
630
Member Avatar for rk1993

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 …

Member Avatar for gtcorwin
0
186
Member Avatar for Avladimir

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 …

Member Avatar for vegaseat
0
156
Member Avatar for vickietende
Member Avatar for jmichae3

Heh heh, to paraphrase that famous bit of badly translated script from Zero Wing: All your post are belong to Dani! XD

Member Avatar for Dani
0
378
Member Avatar for psx2001

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 …

Member Avatar for Elmehdi_1
0
252
Member Avatar for yeyo_1

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 …

Member Avatar for Gribouillis
0
327
Member Avatar for hurtmemore

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?

Member Avatar for JasonHippy
0
119
Member Avatar for Marumarsu

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!

Member Avatar for rubberman
0
121
Member Avatar for lewashby

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!

Member Avatar for lewashby
0
703
Member Avatar for cambalinho

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 …

Member Avatar for JasonHippy
0
443
Member Avatar for happygeek

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!

Member Avatar for DistantGalaxy
1
520
Member Avatar for skiboy209

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 …

Member Avatar for JasonHippy
0
357
Member Avatar for rose_2

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 …

Member Avatar for JasonHippy
0
234
Member Avatar for aluhnev

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 …

Member Avatar for JasonHippy
0
330
Member Avatar for Jeroen Mathon

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 …

Member Avatar for JasonHippy
0
183
Member Avatar for Jeroen Mathon

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 …

Member Avatar for JasonHippy
0
568
Member Avatar for Violet_82

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.

Member Avatar for JasonHippy
0
208
Member Avatar for lewashby

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.

Member Avatar for JasonHippy
0
246
Member Avatar for ckide

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

Member Avatar for hericles
0
377
Member Avatar for ObSys

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 …

Member Avatar for JasonHippy
0
259
Member Avatar for iAssistant

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

Member Avatar for Stuugie
0
4K
Member Avatar for bc230201818

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 …

Member Avatar for bc230201818
0
279
Member Avatar for Jsplinter

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 …

Member Avatar for JasonHippy
0
727
Member Avatar for phony
Member Avatar for ckide

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 …

Member Avatar for ckide
0
203
Member Avatar for chubbyy.putto

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 …

Member Avatar for chubbyy.putto
0
206
Member Avatar for endri_1

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 …

Member Avatar for endri_1
0
551
Member Avatar for lewashby
Re: qt

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 …

Member Avatar for JasonHippy
0
148
Member Avatar for m.a.u.

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 …

Member Avatar for m.a.u.
0
752
Member Avatar for davy_yg

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

Member Avatar for JasonHippy
0
476
Member Avatar for CreatorZeus

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(&ltm, &now); Instead of a tm pointer, you now …

Member Avatar for JasonHippy
0
246
Member Avatar for m.a.u.

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 …

Member Avatar for JasonHippy
0
273
Member Avatar for jhender4880

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 …

Member Avatar for tinstaafl
0
2K
Member Avatar for m.a.u.

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 …

Member Avatar for m.a.u.
0
314
Member Avatar for Priti_P

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 …

Member Avatar for JasonHippy
0
932
Member Avatar for davy_yg

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 …

Member Avatar for JasonHippy
0
772
Member Avatar for davy_yg

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 …

Member Avatar for JasonHippy
0
794
Member Avatar for davy_yg

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!

Member Avatar for Abhishek_14
0
646
Member Avatar for JOHN-shirley

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 …

Member Avatar for David W
0
232
Member Avatar for davy_yg

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 …

Member Avatar for iamthwee
0
397
Member Avatar for vinay L

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 …

Member Avatar for rajii93
0
207
Member Avatar for 111100/11000

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.

Member Avatar for 111100/11000
0
1K
Member Avatar for Sai Ravi Teja

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

Member Avatar for Ancient Dragon
0
127
Member Avatar for COKEDUDE

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

Member Avatar for rubberman
0
1K
Member Avatar for azareth

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 …

Member Avatar for GrimJack
0
1K
Member Avatar for COKEDUDE

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

Member Avatar for JasonHippy
0
294
Member Avatar for kal_crazy

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

Member Avatar for Kristian_2
0
216
Member Avatar for davy_yg

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

Member Avatar for iamthwee
0
418
Member Avatar for iamthwee

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 …

Member Avatar for JasonHippy
0
264

The End.