669 Posted Topics
Re: I don't know too many of the internals of Linux (not as many as I'd like). But if you run the ls -a -l command in a directory, you see complete information on the listed files. In the file permissions part of the listing for each item, the first property … | |
Re: Empathy is another program on Ubuntu which also uses several different chat protocols. Up in the top bar of 10.04 and 10.10, there is an image of an envelope. If you click on the envelope, a context menu will pop up and there will be an entry in there that … | |
Re: If Ubuntu is installed on the logical 'D:' volume; when you are running Ubuntu, you ARE accessing the D drive and it IS mounted. It's just not called 'D:' The thing to bear in mind here is that the various Linux file-systems are completely different to the NTFS/FAT based file-systems … | |
Re: As far as I understand it, [B][U]everything[/U][/B] is treated as a file in Unix and Linux. Even devices and running processes. Typically, the file-system entries for all connected hardware/devices can be found in the /dev directory (and its sub-directories). If you open up a terminal and cd to /dev and … | |
Re: [QUOTE=;][/QUOTE] As you have Windows 7 installed on your PC, I recommend using the Windows version of unetbootin. So to get OpenSuse onto your USB drive you'll need to do the following: [LIST=1] [*] Boot into Windows and login to your desktop. [*] Download and install the windows version of … | |
Re: Have you tried installing VLC? VLC will play just about any multimedia file-type. There is a VLC browser plugin available for Linux, but I can't remember if it is included in the installation of the main VLC player package or if it is a separate package. Best bet would be … | |
Re: Your implementations of calcpercent and calclargest do not have their parameter lists included. You've declared them before main as taking (int, int) and (int, int, int) parameters respectively. E.g.: [code] int calcpercent (int xx,int yy); int calclargest (int pp, int rr, int qq); [/code] Yet in your actual implementation of … | |
Re: [QUOTE=aaloo;1674482]none of them r impressive[/QUOTE] Even if none of the links brought up by the link in cwarn23's post are exactly what you're after, at least take a look at the tutorials and/or any source code for those websites that were kind enough to provide them. Try to understand how … | |
Re: From what I can see, the variable 'i' shouldn't be in scope in your item_onmouseup function because it is declared as a local variable in the for loop in the main bit of AS code in your keyframe. So you should really be getting some kind of error about an … | |
Re: Hmm, very unusual. Not sure what could be causing that, never seen any bugs like that before in the software centre. Have you tried installing it from the command line instead? If you open up a terminal in Ubuntu (You can do this by pressing Ctrl+Alt+T or by going to … | |
Re: The line: [code=c++] aa.getAttribute() = Id; [/code] Is where you're going wrong here.... The assignment operator assigns the left hand operand the value of the right operand. So you are trying to assign the value of id to the value of the getAttribute function....Which is nonsense. What you really want … | |
Re: [QUOTE=Jen0608;778053]Does Anyone know how to convert ordinary images to vector images in photoshop? How do you do it in the simplest way?[/QUOTE] [QUOTE=AHMD.M;838151]You can use illustrator by importing the image and use the "live trace" and this is the easy way..u can draw it also using pen tool. another way … | |
Re: Hey Andy. You might want to try adding an event listener for the ENTER_FRAME event and set up a handler function to update the text box each time the event is detected. The ENTER_FRAME event is an event which is dispatched by Flash's event dispatcher each time a new frame … | |
Re: Hey Will. Gerard, Caligula... and Greywolf are correct. In order to understand why your code is not working, take another look at the definition of _matrix in your code. _matrix is declared as [icode]std::vector<std::vector<float>>[/icode]. So it's a std::vector, NOT an instance of your Matrix class. So this code: [icode]_matrix.GetM(i,k)[/icode] is … | |
Re: Well, for starters have a good think about your problem. Take another look at your desired output and really think about it for a minute. After the user has entered a number (num) between 1-10, you want the first line to count down from num to 1, so your initial … | |
Re: try: [code] tar -xfz /home/liveuser/Downloads/pckg.tar.bz2 [/code] or: [code] cd /home/liveuser/Downloads tar -xfz pckg.tar.bz2 [/code] EDIT: If I'm not mistaken; because you are trying to extract a .bz2 archive, I think you need to use -xjf rather than -xzf. -xzf is for .tar.gz, -xjf is for .tar.bz2. Alternatively, you could just … | |
Re: Try this: [CODE] #include <iostream> using namespace std; int main() { cout << "Hello World /n"; return 0; } [/CODE] | |
Re: [QUOTE=jbirdsall;1594703]With both issues, I see what you've copies seems to mention and E: drive and a W: drive.[/QUOTE] E: and W: are not referring to drives at all, this is Linux NOT Windows! The lines of text with 'E:' at the start are error messages. The ones with 'W:' at … | |
Re: The answer is pretty simple. 1. Input a number as an int (as you're doing) 2. Cast the number to double in your log calculation and store the result of the calculation in a double variable. e.g. [CODE] double calcVal = log((double)num)/log(2.0); [/CODE] 3. Create an int version of the … | |
Re: Piriform do a great free file recovery tool called recuva, which I highly recommend. Take a look at [url]www.recuva.com[/url]. I've used it several times to recover files when friends or relatives have accidentally deleted important files on their PC's. I carry a copy everywhere on one of my USB sticks … | |
Re: Compiles and runs fine, there is nothing wrong with it! This is the example code from the [URL="http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx#Y2800"]link[/URL] that Narue directed you to in your [URL="http://www.daniweb.com/software-development/cpp/threads/369343"]other thread[/URL] isn't it? Exactly what problems are you having? | |
Re: From what I've seen there are two main camps who are opposed to Mono. There are the Microsoft haters, many of whom simply dislike Mono because it implements C# and emulates the .NET runtime, which are both 'evil' Microsoft technologies. Others see the Mono runtime as an unnecessary, unwelcome and … | |
Re: I lurk there sometimes. It's usually pretty quiet. Sometimes there are several people on there not talking to each other, heh heh. But occasionally somebody might break the silence and start a conversation! | |
Re: At the end of the day it is a completely subjective topic. The 'best' distro is the one that works best on your hardware and best fits your work-flow and your needs. If you are new to Linux, I recommend getting hold of some livecd's for different distros and see … | |
Re: If it's not available in the Software Centre, or via Synaptic package manager; a stable version of Chrome is available directly from google as a .deb package. You can simply download the package and install it yourself! Here's the link: [url]https://encrypted.google.com/chrome?platform=linux&hl=en&lr=all[/url] Personally I'd check the software centre or synaptic first, … | |
Hey all. Figured this might be a good place to post this. After seeing some pics on Facebook of a recent Daniweb sponsored event; seeing all of that Daniweb swag made me wonder if Dani or one of her minions have considered setting up an online store to sell some … | |
Re: You could try a free open-source javascript script called 'swfObject.js', which is a cross-platform, cross-browser compatible javascript file which can detect the type of browser being used and attempts to detect the version of flashplayer installed before generating appropriate, browser specific HTML to embed the .swf at runtime. If no … | |
Re: Try this: [code] sudo update-grub [/code] Or this: [code] sudo grub-mkconfig -o /boot/grub/grub.cfg [/code] That should reconfigure and update the grub2 bootloader menu. | |
Re: AFAIK, on Linux .bin files are usually self-extracting files. Things like the linux versions of the Oracle/Sun Java runtime and Flashplayer are often distributed as .bin files, which self-extract and then run an installer/script to install the program. In order to use .bin files, you usually just need to run … | |
Re: I'd also recommend Gimp as a free alternative, but it's not the most intuitive editor out there. It does involve a bit of a learning curve, but it's worth taking the time to learn as it is extremely powerful once you know your way around it. If you're running Windows, … | |
Re: If you liked Ubuntu 10.10 with Gnome 2 and you wanted to go back to it, you could use the 'classic' mode instead of unity in 11.04. At the 11.04 login screen, you can change the WM/Session type to 'classic' and when you log in it gives you the familiar … | |
Re: Assuming that the problem is a damaged or dirty DVD drive and you can't afford to replace the drive; you could try installing the .iso for the liveCD onto a USB thumb-drive if you have one. I think you need at least a 2Gb USB drive to do this. For … | |
Re: In your posted code, because you used the constructor argument, it will allocate space for 10 int objects in the vector and initialise them all to 0. Then in your for loop, you're pushing back 10 more int values (remember push_back pushes additional objects into the end of the vector) … | |
Re: If you want to create your own distro completely from scratch, go to [URL="http://www.kernel.org"]http://www.kernel.org[/URL] and download the source code for the core Linux Kernel. You might want to take a look at [URL="http://www.linuxfromscratch.org/"]http://www.linuxfromscratch.org/[/URL] too, which will guide you through the steps required to build your own distro. It'll be a … | |
Re: Declarations of for loops have three sections that are in a specific order: [CODE]for({initialiser}; {break_condition}; {increment/decrement})[/CODE] But the increment and conditional sections in all of your for loops are in the wrong place. And because you're putting things in the wrong place, your loops are not doing what you're expecting … | |
Re: Perhaps take a look at this: [url]http://www.codeproject.com/KB/threads/getprocessid.aspx[/url] Discusses getting the PID's of any running instances of a particular program. There is a post in the comments about closing process here: [url]http://www.codeproject.com/KB/threads/getprocessid.aspx?msg=1473071#xx1473071xx[/url] Might be what you're looking for! | |
Re: Wow, it's been absolutely ages since I used the Flash IDE. My memory of it is hazy to say the least. I use the Flex SDK nowadays and do everything exclusively in AS3 code. But if memory serves I think shape-tweening is only available to shape objects on the stage. … ![]() | |
Re: The code for the USB driver will more likely be a Kernel module, so I think you'll need to take a look at the Linux kernel source code. The source for the kernel used in Ubuntu 10.10 should be in the repos. If you want to create your own kernel … | |
Re: Personally, I'd agree with whoever reviewed your code. If you have any accessor functions in your class which allow other modules to get/set the values of these statics, you should promote them to be static class members and declare them in the header file for your class. Otherwise if they … | |
Re: I think only RGB is supported in Flash (or ARGB for formats like .png), so you might need to create a copy of your CMYK image and convert it to RGB or ARGB in Photoshop and perhaps tweak it a bit to match the original if there are any massive … | |
Re: If you use wxWidgets with Code::Blocks there's a RAD/GUI plugin called wxSmith which gives you the ability to drag and drop wxwidgets controls onto a design view and the plugin will auto-generate some boiler-plate code for you. Very similar to using visual studio with MFC and Windows Forms applications. | |
Re: Looking at the code you've posted (which is C rather than C++), it seems to be using a simple sockets connection to determine whether the website is up or down. The headers included in the listing that you don't have, or don't recognise are all Linux/Unix specific headers. I'm still … | |
Re: I'm not sure what you're after here, your post isn't worded particularly clearly. But if I understand correctly, and from looking at your code, I think you may have got things a little mixed up here. The OnButtonStart() function is definitely a C++ function. So no real problems there (other … | |
Re: Download the Fedora 15 Live CD .iso and burn that to disk instead. The Live CD won't have all of the extra packages that are on the DVD, but it will allow you to install the base system. Once you've installed Fedora from the Live CD, you can use yum … | |
Re: There are plenty of book recommendations in [url="http://www.daniweb.com/software-development/cpp/threads/70096"]this sticky[/url], which is listed at the very top of the C++ section here on Daniweb! | |
Re: Take a look at this: [url]http://en.wikipedia.org/wiki/Inode[/url] | |
Re: The problem is not a linking error, it's a compilation error! If you take a look at the definition of Playsound in mmsystem.h: [code] WINMMAPI BOOL WINAPI PlaySoundA( IN LPCSTR pszSound, IN HMODULE hmod, IN DWORD fdwSound); WINMMAPI BOOL WINAPI PlaySoundW( IN LPCWSTR pszSound, IN HMODULE hmod, IN DWORD fdwSound); … | |
Re: Mixing C and C++ is not really recommended. Typically when using C libraries in a C++ program, it is best to create or use some kind of wrapper API. Whether this is a third party wrapper or one you create yourself is entirely up to you. I'd recommend at least … ![]() | |
Re: 1. Check your distros package manager and make sure you have the [icode]libx11-dev[/icode] package installed (on debian based distros) OR [icode]libx11-devel[/icode] (on Fedora/rpm based distros). This provides the basic headers that will allow you to create client programs using Xlib. The runtime binaries should already be installed. If you need … | |
Re: There is no 'magic eraser' in gimp. But there are several different ways to remove the background from an image. If the image background is simple and only uses a few colours you can use the 'fuzzy select tool' to achieve a similar effect (press U or select the magic … |
The End.