5,331 Posted Topics
Re: @ddanbe - I think it is a continuation of main, but he exits main in his while(choice) loop back on line 79. And there is no final return value at the end (line 140). | |
Re: You need to either store the data externally, or have plenty of memory. Don't use an array per-se, or you will get a stack overflow as you are seeing. Use a C++ vector<int> to store the data. It will resize itself intelligently as you add data to it. It will … | |
Re: Not a simple topic. You need to do some research on this. There are many approaches to solving this problem. Which is best for you depends upon whether or not you want to pay for the tools, whether or not you want the package to be encrypted so that the … | |
Re: 1. The curly brace on line terminates main(). Get rid of it. 2. There is no "End while" (line 125) in C or C++. A while() loop will terminate with a curly brace. 3. The while statement on line 22 should be `while (option == 'Y')` and you need to … | |
Re: Current versions of PHP (5.x and later at least) use a time-based reference-counted garbage collector. IE, every so often any object with 0 references will be removed from memory. The class is irrelevant. A class may be an object, but it isn't an "object" in the sense of something instantiated … | |
Re: It depends upon how current the malware is and what type it is. Some have well-known keys, or discoverable keys. You need to do some web searching to see what's what. In the future, you will want to a disc image backup to an external drive that is only attached … | |
Re: How old is this bugger? My wife had a Vaio years ago which was a bit of a pig. She switched to an Apple Macbook Pro and never looked back. | |
Re: Good answers Jorge! I'd give you an up-vote but I see you already got a bunch for your replies to this! No sense in spoiling you... :-) | |
| |
Re: There are a ton of RMS and POS systems out there, most of which are from small niche software companies, so finding the right one (or a close fit) for your needs will take time. Whatever, you will want a source-code license so you can modify it to meet your … | |
Re: Does your Mac Mini use a DHCP address, or a static one? Also, you probably want to make sure the TCP/IP v4 configuration for your Windows partition is using DHCP, and then you likely should disable IPv6 on it as well. | |
Re: Everyone was a noob once. I won't say in which century I was, but let's just say that Fortran IV was a newish thing then... :-) And folks, why was @adele downvoted? I've giving her an upvote. Just stating she is a noob to the forums and programming isn't cause … | |
Re: def isValidFormat(str): if len(str) == 11 and str[4 and 7] == "_": valid = True else: valid = False You are testing for an underscore and not a hyphen in this part of your code. Try this instead: def isValidFormat(str): if len(str) == 11 and str[4 and 7] == "-": … | |
Re: First your compiler should complain about your Points class and the initialization of index to -1. You need to write the appropriate constructor so that you can properly initialize those private variables. And if you want to access them without getter methods, then you will need to make the member … | |
Re: What have you done to find such information from Twitter? If you can get the basic information on how many followers every user of a specific category there are then the rest is simple statistics. The question is whether Twitter groups users, or tags users, by professional and/or other category. | |
Re: Do you know what the encryption algorithm was? If not, and you don't have the key, then you are probably SOL. | |
Re: I got a wifi repeater a long time ago. Worked pretty good. Don't use it any more. What we do now is to have two access points and one router. The router has one access point, and the other which also acts as a switch for direct connections, is connected … | |
Re: It also could be the Exchange server getting overloaded from time to time, network congestion, or if the email is hosted on the internet your ISP / internet pipe is overloaded. Any of these things are possible given the intermittent nature of the problem. Several minutes is excessive though - … | |
Re: There has to be a service running on the host that you are telneting to that is listening for connection requests on port 23. | |
Re: If you need portability, get a Macbook Pro - prices start at $1199. If you have a nice monitor and don't need portability, get a Mac Mini - prices range from $599 to $999. Then there is the integrated iMac - 21" models start at $1299. Here is a link … | |
Re: You cannot determine the order that threads will run in (scheduled), or how much time they will be allocated. To accomplish what you want, each thread will have to syncronize with a mutex, basically turning your code into a single thread. Why do you want to do this? | |
Re: If the problem persists it could be a faulty battery cell. I've had old batteries do this and could not charge above 60-70%. | |
Re: The php runs on the server and the html/javascript/etc run on the client, so instead of mixing your html and php, build up your html strings in php as string variables. When ready, then output that. It is much more efficient that way. Also, you should build up php strings … | |
![]() | Re: So, what is the directory tree for the production site, and your local site? Also, have you made sure that none of the directories are links to elsewhere? ![]() |
Re: I suspect that your hardware, specifically the extender for the front office which is giving the problems, is starting to fail. To verify that, then swap it with one of the others that is not exhibiting these issues. If the problems move with the extender, voila! Time for a visit … | |
Re: Most apps for android are written in Java, using the android Dalvik compiler (different byte code than javac produces), but the source is still mostly pure java. You should be right at home! :-) Google has excellent resources, documentation, and other materials to help you with this effort. | |
Re: Sounds like IE on the file server doesn't have the video driver it needs. Solution, use FF or Chrome. If you have to use IE on the server, see if you can find the driver / plugin to decode it. My guess is that the versions of IE are different … | |
Re: So, besides the additional lines of code here from your other post, what is your question. Also, please don't double post like this. Just edit the old post and add the new lines. | |
Re: Nice thing about open source code is that you can see how others do it. Take a look at the LibreOffice source. They have one-click printing capabilities. | |
Re: Try it in the x4 slot first. If it affects the video, try one of the others. Myself I have to ask why you want a PCI device and not a USB one. The USB dongle will be a LOT cheaper, and with the speeds of USB 2 and 3 … | |
Re: Get rid of Windows 10? Sorry, sarcasm showing up here... Have you looked on the MS web site for what that error means, and how to fix it? | |
Re: School work. So, how would you do this? If you don't understand the exercise, see your professor. Also, read the terms of service for these forums. We DO NOT do your homework for you... | |
Re: You can use your phone as an internet gateway (tethering) or a wifi hot-spot (router and WAP). I've used my phone for both in the past (until AT&T said I'd lose my unlimited data plan doing that). The tethering option is good when you just want to use your phone … | |
Re: You can have multiple GCC compiler packages installed on your system (great for development if you have a dependency upon an earlier/later version). If you look in /bin for gcc* (ls /bin/gcc*) you should see the different versions installed. You may have to alter your Makefile's macros for CPP and … | |
Re: Class pop-quiz question? What do YOU think is the difference? Tell us here, and we might decide to correct your misunderstanding. | |
Re: What was the application, and why didn't just use the tools provided by the operating system? | |
Re: 1. The building systems must be on their own subnet that is not accessible from the tenant subnet. 2. Each apartment should have its own subnet, but with gateway access to the Internet. Doing this, they can plug in their own router with a 192.168... local unroutable domain and all … | |
Re: Lithium Ion batteries such are commonly used in laptops and other mobile devices have a 1-2 year life expectency. IE, if your system is over a year old, you probably need a new battery. You can purchase one from the system manufacturer for probably a hundred USD, but most are … | |
Re: In some cases, you want to escalate warnings to errors, or at least warnings over a certain level. Most compilers can do this. If you are building safety/mission-critical systems that should be required. Then there was the missing semi-colon that caused a satellite to crash into the sun instead of … | |
Re: Please tell us what you are trying to accomplish. Is this for a "sleep" function? Or some sort of asyncronous timer? | |
Re: 1. You aren't saying what/where the errors are. 2. You are asking us to analyze 400 lines of html/javascript code - get real! | |
Re: You can also set your compiler to use (for gcc) the -S option, which will generate assembly code as the output. Then, you can look at what that does. Other compilers have similar options, depending upon the operating system and such. There are also gcc options to generate mips code … | |
Re: You can edit a running bash script, but it will probably crash, or you will have to restart it in any case. In any case, post the original code, and yours here for better comments and feedback. | |
Re: No code? No real help. What language is the program written in? | |
Re: No code there for cropping the image. What have you tried? Here is the manual page from php.net for imagecrop(): http://php.net/manual/en/function.imagecrop.php And yes, Google (or DuckDuckGo) is your friend! | |
Re: Show what your web page in the browser does show. | |
Re: So, given a specific input, show the output. | |
Re: Except at the most fundamental level, chemistry is not math. You can do this with a rules-based language or API that "understands" chemical interactions and can transform your input (left side of the equation) into the output (right side). Not simple, but a very good senior or graduate level (masters … | |
Re: Assuming your web server is running with PHP, there is a rand() function that you can use to generate a random number for each entry, and sort it by that. Here is the manual page: http://php.net/manual/en/function.rand.php |
The End.