669 Posted Topics

Member Avatar for rubberman

I agree. Free software has come a long way in the last 10 years or so! It is stunning what can be done with free tools nowadays. There are many free programs that can at least come close to their highly polished, proprietary cousins. There are probably also a few …

Member Avatar for JasonHippy
3
449
Member Avatar for IndieDeV2002

So you want to go from OSX Mavericks to Ubuntu? And you don't want to use a CD drive or a VM..... The only solution I can think of is to try putting the .iso for the Ubuntu liveCD installer onto a USB thumb drive. NOTE: I'm not a Mac …

Member Avatar for JasonHippy
0
203
Member Avatar for tony75

The compiler is complaining because it cannot find ntstatus.h. Either you do not have it installed, or it has been put somewhere outside of the systems search path for header files. Also you should be aware that ntstatus.h is a windows-only header file. It is not available for Linux. You …

Member Avatar for JasonHippy
0
5K
Member Avatar for Alaa_6

Looks like you need to install libcurl-dev. Offhand, I'm not sure of the exact package names on Ubuntu. Your best bet would be to take a look for them in the software centre or to try opening a terminal and run the command `apt-cache search --names-only libcurl | grep -i …

Member Avatar for JasonHippy
0
8K
Member Avatar for ckide

I don't know of any direct Swishmax clones/alternatives on Linux. The closest I can think of is Synfig - a 2D animation program which I believe can export animations as flash/.swf format (amongst many other formats). So synfig might be OK if you only want to create animations. Blender (although …

Member Avatar for JasonHippy
0
367
Member Avatar for shaneetra.graham

As L7Sqr has said, your command structure should not contain the command history. The command history should be a separate entity and should maintain a list of commands entered by the user. WRT the implementation of the history: I think you'll need to implement a FIFO stack/queue (from now on …

Member Avatar for L7Sqr
0
2K
Member Avatar for joe_5

No, you don't need to reinstall the whole OS. You might just need to download some drivers. Rubberman was merely stating that there might be some pieces of hardware on your machine which require proprietary drivers and that proprietary drivers might not be installed when the Ubuntu operating system is …

Member Avatar for joe_5
0
292
Member Avatar for Labdabeta

According to [MSDN](http://msdn.microsoft.com/en-us/library/windows/desktop/dd144909%28v=vs.85%29.aspx) GetPixel returns the error value 0xFFFFFFFF / CLR_INVALID under 3 very specific conditions. 1. The pixel is outside the boundaries of the current clipping area 2. The device does not support GetPixel 3. There is no bitmap selected within the device context Best bet is to take …

Member Avatar for BobS0327
0
1K
Member Avatar for shaneetra.graham

If you look at the braces in your program, The while loop declared at line 29 ends at line 94, which is commented as "End token loop". So you are stuck in an endless loop where you are just getting input from the user. The code in the 2nd half …

Member Avatar for JasonHippy
0
223
Member Avatar for mary.fatulalohr

Aside from the missing left brace on line 5, there are a few other problems I can see straight off the bat. For starters: In order to use setw, you'll need to `#include <iomanip>`. Then there's your '3D' array; which from your initialisers, looks more like a 4D array. So …

Member Avatar for David W
0
163
Member Avatar for BboyTurok1990

The only thing I can imediately see is that there's a 'do' at line 25 with no opening brace and no corresponding while statement further down in the code. I imagine the cout at line 27 is where the error is being thrown. And this is almost certainly because of …

Member Avatar for JasonHippy
0
271
Member Avatar for debasisdas
Member Avatar for James_28
8
17K
Member Avatar for Emma_3

Keep a set of counter variables to count the number of A's, B's, C's etc. Initialise them to zero at the beginning of your program, increment the appropriate counter when a grade is assigned in your block of if..else if statements. e.g. Declare some counters with the rest of your …

Member Avatar for JasonHippy
0
181
Member Avatar for arunpawar

Well, take a look at the url from a search page on google. I went to google.com and did a search for daniweb.com and got this URL for the results page: https://www.google.co.uk/?gws_rd=cr&ei=f0UFU-y9CoeK1AW4joGgCw#q=daniweb.com Looking at that URL, the question mark "?" in the URL indicates the start of the variables that …

Member Avatar for arunpawar
0
261
Member Avatar for archie.herbias

Is the projector physically connected to the laptop before you boot your laptop? Or are you plugging it in after the laptop has booted? I often plug my Linux laptop into a projector at work. The only times I've ever had problems is when I plug the projector in after …

Member Avatar for archie.herbias
0
1K
Member Avatar for Damian_2

I don't think you can initialise a std::map like that. You can initialise std::map in a similar way using `map_list_of` in the boost::assign library. Which would allow you to do something like this (if memory serves): void ArcherArmor::ArcherArmor_shop(){ soldier_armor = boost::assign::map_list_of<int, Armor> (1, Armor("Meito Ichimonji", 4, 150, 1)) (2, Armor("Shusui", …

Member Avatar for Damian_2
0
746
Member Avatar for Vaaal

The compiler does not know where COLOR_BGR2HSV is defined. I suggest you take a look at the documentation for the OpenCV library and see if you can find the header file that COLOR_BGR2HSV is defined in and ensure it is #included in your source file. Second thoughts: From a quick …

Member Avatar for JasonHippy
0
3K
Member Avatar for Ancient Dragon
Member Avatar for nitish.mohiputlall

C++ is case sensitive. Change line 5 of your header file from `class salaried` to `class Salaried` (Note the uppercase S) and that problem should go away! Effectively you have declared a class called salaried in your header, yet your cpp file contains definitions for Salaried. So the compiler is …

Member Avatar for Moschops
0
2K
Member Avatar for theashman88

What about: `cp*[24680].enc` or `cp*[24680].*` ? So if the files are all in the current directory and you want to copy the even numbered ones to a sub-directory called "even" you could do the following: Using cp (or mv): `cp ./cp*[24680].enc ./even/` or `cp ./cp*[24680].* ./even/` or using the find …

Member Avatar for rubberman
0
1K
Member Avatar for lewashby

BUFSIZE is exactly what its name implies. It is the buffer size. The maximum amount of data to send/receive in bytes. Regarding the error message: This error is exactly the same error I encountered and fixed in your other thread. It is to do with the strings used in python3's …

Member Avatar for JasonHippy
0
356
Member Avatar for KBL

I assume that sub1 - sub6 are the sub-totals for each person. In which case, rather than having 6 separate sub-totals, would it make sense to put them into a single array? Also with the totals in an array, you could then use a loop to go through each persons …

Member Avatar for KBL
0
232
Member Avatar for emorjon2

I recommend running a debug build of your program from your IDE. There should be an option somewhere to Debug, or start debugging, or some-such. I haven't used Dev-c++ for at least 8 years, so I really can't remember a lot about it. Anyway, switch your build profile to a …

Member Avatar for mike_2000_17
0
568
Member Avatar for lewashby

In answer to your questions: 1: I think the first socket in socket.socket is the package name and the second one refers to the socket class which resides in that package. 2: I don't know, but it does! Heh heh! No, seriously... It is possible for Python functions to return …

Member Avatar for lewashby
0
906
Member Avatar for thenewguy1

I don't know of any built in pow function in Haskell (I'm still a novice with it myself), but off the top of my head, you should be able to create a simple pow function like this: pow :: Int -> Int -> Int pow x y = x^y Which …

Member Avatar for sepp2k
0
376
Member Avatar for sad951226031
Re: ask

rmp file? As in a RealAudio media file? Have you tried installing a media player that can play them?? Or do you mean a .rpm file? If so, which Linux distro are you running? If it is a distro which uses the Red Hat package management system, it could be …

Member Avatar for JasonHippy
0
131
Member Avatar for JasonHippy

It's not often I start a new thread, but I've hit a bit of an unusual problem...Admittedly one of my own making... I have a laptop with a completely dead HD, which I've been using for a while with Ubuntu 9.10 installed on a bootable 8Gb USB stick with approx …

Member Avatar for JasonHippy
0
960
Member Avatar for pelle12

Until I got to grips with vim, I used to use nano quite a lot for editing text files on the command line. It took a little while to get my head around using vim, but learning to use it properly was time well spent IMHO! Nowadays, I seem to …

Member Avatar for mike_2000_17
0
379
Member Avatar for Ahtsham

The modulus operator returns the remainder after the division operation. So 3%5 returns 3 because 3 divides by 5 zero times and the remainder is 3.

Member Avatar for richieking
0
278
Member Avatar for mrnutty

Edit: Sorry, looks like my phone accidentally posted this midway through composing my response. Didn't notice until I'd posted the one below... I hate this phone sometimes. It has a mind of it's own!

Member Avatar for Reverend Jim
0
687
Member Avatar for toniann.midori

Seeing as you haven't posted the actual error message, I'm guessing you're getting an error or a warning about the call to scanf_s at line 6. Basically you don't need the & operator before name. scanf_s expects a char \* to be passed in as the 2nd parameter. And in …

Member Avatar for cmps
0
123
Member Avatar for k D chuki

First ensure your package lists are up to date: `sudo apt-get update` Then install VLC: `sudo apt-get install vlc`

Member Avatar for kevinedwards
0
215
Member Avatar for newbie14

I could be wrong, but it looks like you are missing some developer libraries/headers required to build tcpdump. You can probably ignore the ac_nonexistent.h error, I think that is just a test used in the configuration script to see how your build environment deals with non-existent headers. But the other …

Member Avatar for newbie14
0
1K
Member Avatar for sireiz

The reason you are seeing "scientific notation type numbers" in your output is because your program is storing and manipulating double values. And double is a floating point type which can represent a greater range of values than float and uses scientific notation to represent values. If you want your …

Member Avatar for David W
0
219
Member Avatar for f14dtom

Linux is my OS of choice for reasons already outlined by Mike, Rubberman and a few others. (So I won't repeat them!). The only place I use Windows nowadays is at work. And I don't have any choice over that. But I do use a lot of free and/or open-source …

Member Avatar for Vasvi
3
743
Member Avatar for Dan_1

But the descriptions contain links to the source code, which is probably why Tony posted these vids. Take another look at the videos and follow the links in the description. Then you can download and examine the source code for the examples demonstrated in the vids. From taking a quick …

Member Avatar for JasonHippy
0
1K
Member Avatar for Dannjeru2013

Show us your code and we'll show you ours! :P Check out the [community rules](http://www.daniweb.com/community/rules), particularly this rule: > * Do provide evidence of having done some work yourself if posting questions from school or work assignments In your post, you have provided no evidence that you have done anything …

Member Avatar for JasonHippy
-1
470
Member Avatar for erinkay528

From looking at your cout statements, e.g. line 58: `cout << name << age << sex << score << endl;` Your output is not being spaced because you aren't putting any spaces between any of the output values. You might want to consider inserting some whitespace between each variable you …

Member Avatar for JasonHippy
0
158
Member Avatar for boshu

I think this might be to do with the version of sed that you are using. I think the default version of sed which ships with recent versions of the Mac OSes is based on the FreeBSD version, which doesn't contain the GNU extended regex syntax. You could try using …

Member Avatar for JasonHippy
0
273
Member Avatar for Linuks

I wouldn't have thought that there is any specific software for the Windows phone on Ubuntu or any other Linux distro. What is it that you want to do with it? If you just want to transfer files to/from your phone, have you tried plugging it in via USB? With …

Member Avatar for vasvigupt
0
269
Member Avatar for red23

I have Notepad++ installed on my Windows PC at work and there are three plugins which I use for writing Python scripts: 1. Python Indent - This plugin is very handy. It will automatically indent your code as you type (but you need to enable it after installing it by …

Member Avatar for JasonHippy
0
3K
Member Avatar for soche123

After you've deleted a record and pressed 'y' to go back to the menu, what happens if you select option "b) List Employee Records"? Does the list still contain the record you just deleted? (Your screenshot does not show this information) If so, then you are correct, you have a …

Member Avatar for tinstaafl
0
707
Member Avatar for lewashby

I was just going to say, rather than writing an over-complicated script, would it be simpler to just use a one liner e.g.: `mv ~/Pictures/*.png ~/Pictures/ScreenShots` Or if the files all contain a particular structure to the name. e.g. `ScreenShot-dd-mm-yyyy.png` You could use: `mv ~/Pictures/ScreenShot*.png ~/Pictures/ScreenShots` But it sounds like …

Member Avatar for lewashby
0
736
Member Avatar for Abhinisha

That's a boolean expression, so the value of F will be true or false dependent on the value of i. The ! (NOT) operator in the expression inverts the result of the i>10 comparison. So if the value of i is greater than 10, the result of the expression i>10 …

Member Avatar for Abhinisha
0
99
Member Avatar for daino

With an IDE you have the convenience of having a lot of things taken care of for you. Any IDE worth its salt should be able to handle any project, regardless of how simple or complex it is. And CodeBlocks is a very good IDE. So IMHO, if you are …

Member Avatar for rubberman
0
258
Member Avatar for pooh1234qwerty

Although, if you use a typedef instead of a macro your original code would work: #include<stdio.h> typedef char* CH; int main() { CH a,b; printf("%d %d\n",sizeof(a),sizeof(b)); return 0; } Now we've defined a new type called CH, which is a char\*, so now a and b are both of type …

Member Avatar for JasonHippy
0
177
Member Avatar for sireiz

Yup, as Moschops has said, it's because your constructor is not initialising anything. Which is what I said in my post in your other thread. You are taking in the four parameters, but you still aren't doing anything with them. You need to use the passed-in parameters to initialise the …

Member Avatar for sireiz
0
438
Member Avatar for CPT

This works, but I wouldn't recommend it! : `#define E MyClass::E` Which would cause the pre-processor to expand any instance of E in the cpp file to MyClass::E. So you could use: `E(1,2,3)` in your code and the pre-processor will expand the macro to `MyClass::E(1,2,3)` But the downside is, if …

Member Avatar for JasonHippy
0
313
Member Avatar for sireiz

If you had posted the exact errors you were getting from the compiler we could pinpoint problems more quickly! As you haven't posted any error messages; other than what Moschops has spotted, I can see only one other thing that could cause the compiler to throw an error: At line …

Member Avatar for sireiz
0
199
Member Avatar for Knoxarama

It's all down to the order in which things were being declared and used. Some things were being used in the code before they had been declared. The following compiles, but crashes at runtime. I'll leave you to debug it! All I did was move the declarations for the System …

Member Avatar for JasonHippy
0
208

The End.