5,331 Posted Topics
Re: The cost per gallon is an integer, so decimals won't work for any integer value where you need to input a fractional value. Use doubles for those as well. | |
Re: A pointer to member function still has to be invoked with an object of the appropriate type. You might be able to declare the pointer like this: `void (A.*ptr)(void); A.ptr = a.show;` but I'm not 100% certain of that. In any case, this would be, IMHO, really crappy code. It … | |
Re: PHP is an object-oriented langauge. Use it that way! See my tutorial post about that. It will make your life much simpler, with a little forethought and setup. | |
Re: Other comments. The signature of fun() is this: `int16_t fun(char* iaddr);` However, you never return anything from the function, which is what the int rc is intended for. Also, you should initialize rc to a sane value when you declare it. Next, the iaddr argument should be a `const char*` … | |
Re: I assume you have tried Powerpoint. What about Libre Office (the latest version)? It handles MS Office cruft much better than Open Office does. Anyway, the pertinent question is why did this happen? Do you have a disc that is starting to fail? Have you run disc analysis and recovery … | |
Re: The fact that it can shut down properly about 1x out of 5 (20% of the time) tells me that this is probably not a driver problem, but some process or other service that is out of control. Look at the services running and see if there are any that … | |
Re: (Somewhat sarcastically), have you tried installing Linux on the system? :-) Sorry, but I couldn't help myself! I think Win7 was the last decent Windows distribution. | |
Re: Safe mode disables some services (optional ones mostly) that may be causing problems when running in normal mode. FWIW, you do NOT want to always run in safe mode. Have you looked in add/remove programs in the control panel? Also, what version of Windows are you running, and have you … | |
Re: You may be right Jim. If you were running Linux, I could help you PDQ. I think there are Windows tools and management applications that can tell you what applications are using what devices, but I don't remember offhand. Sorry! :-( | |
Re: Ignorance is bliss... We were doing continuous integration back in the 1990's where CVS was our source repository. Code that was released into production would automatically be checked out by our make files when system tests were run. Errors in a module would cause it to be pushed back into … | |
Re: 1. send_string() is not a standard C function unless this is a Windows system, in which case I don't know about it. 2. Obviously you are trying to control a PIC and UART(s). Most of your code are either defined elsewhere, are macros, or who knows. IE, there is not … | |
Re: Using the Gregorian calendar for date computations is just so stupid! Any rational date class will use Julian dates (a floating point representation of date + time) which can be used easily in date arithmetic and provide accurate answers, even accounting for leap years, and if done right, leap seconds. … | |
Re: I don't think this is a repository problem, but a DNS problem since the system cannot resolve ftp.us.debian.org. What happens when you try to ping that, or use nslookup to find it? | |
Re: Normally, a blown power supply does == fried motherboard. Once voltage drops below certain specs, current goes up to compensate, and that generally fries stuff. Whether or not your hard drives got fried also is questionable. Pull them out, place in some sort of drive dock or enclosure, and try … | |
Re: Adobe has been working on patching Flash Player to eliminate these issues. In fact, I just got an update for that on my Linux system this morning. Yes, there are vulnerabilities in any software - that is the nature of the beast - but responsible companies will attempt to deal … | |
Re: Are you sure it isn't using the same product key that your old Windows OS used? Have you looked in the registry? | |
Re: I'm not 100% positive, but I think that the active (always on) cooling will only be activated if the device is plugged into mains power - not using the battery. | |
Re: It probably isn't Deep Freeze but more likely a hardware problem such as a failing memory chip. | |
Re: Write the code. Post it here if you have problems or errors. Then we may help you. | |
Re: You may want to contact Adobe tech support for help with this. | |
Re: Probably not. Apple is in full control of this stuff. Getting them to allow a retrograde installation is very unlikely... :-( That said, there are a lot of security upgrades in the new versions of firmware. | |
Re: To become a creative programmer you first need to get basic programming skills, and then learn how to "think outside of the box". As Thomas Edison once said, invention is 10% inspiration and 90% perspiration. I had an idea years ago on how one could extend classes, both structures and … | |
Re: Lots of good answers here! In this particular example, const is not required, but may, as indicated by others, allow the compiler to utilize some optimizations which may (or may not) help performance. | |
Re: We don't do your homework for you. Make an effort to solve this simple problem and post your code here. Try working it out on paper first. | |
Re: You need to use sane/xsane to scan directly to a file in Linux. That is separate from the CUPS printer driver. I assume that the HPLIP program uses CUPS for actual printer output. I use xsane to scan with my Epson scanner. | |
Re: Huh? Mayan math is not my forte. You might want to contact someone at the National Anthropoligal Museum in Mexico City about this. | |
Re: Have you considered that the blockage may originate at the site? Daycare centers have to be careful about who has access to their video feeds. Contact them to find out. If you have a legitimate reason to access the feed, they should be able to allow it (maybe). | |
Re: Are you sure you are adding the .jar file to a directory where Eclipse can find it? Have you tried using the precise location in the Eclipse configuration for the ODCB file? | |
Re: If the argument to Fun ()is a reference and not a copy, then that should also work. | |
Re: We don't do your homework for you. Read the terms of service for these forums. Make an effort and post your code here along with any errors or problems you are having. | |
![]() | Re: One suggestion would be to use the SQL command line and do a query that outputs the data in CSV format. Then you can easily load that into Excel. |
Re: You need to show us the actual errors that you are getting. | |
Re: Re-read the protocol? Study some implementations? Do some research? This is non-trivial stuff, and I honestly doubt that many of us could, without study, answer your questions correctly. I have implemented triple-des algorithms, but in the deep, dark past (like 20+ years ago). I can't remember all of the details... … | |
Re: Based upon your question, I assume you have a 5.25" disc you want to use? Any box with a 5.25" external bay will include slide to attach to your disc that will let it "slide into" the bay as you wish. The size of tower you get will limit the … | |
Re: It depends. Some seem to indicate the percentage of the CPU that the process is using. Others will indicate what percentage of cache hits don't find the data needed in the cache and so require reloading the data from memory (ram). You might want to read the man page for … | |
Re: A VPN is a network connection to a remote network. It will only route traffic that is pointed to endpoints in that remote network. IE, most stuff will not be so routed. IE, if 192.168.1.101 is an endpoint on the remote network that has a web server, then the browser … | |
![]() | Re: Can you get into the BIOS? If not, then the computer likely has a physical defect and needs professional care, or replacement. However, since you say you can boot into Ubuntu from a USB drive, then the system is still alive. Have you tried replacing the hard drive? Can you … ![]() |
Re: So you have 100 users. What is your internet connection speed? If 100 users are hitting the internet pretty constantly, divide that speed by 100 and you will get what your personal throughput would be. IE, 6mbps / 100 == 60kbps. Timeouts and retries increase exponentially as well. You need … | |
Re: I have sent them (NetFort) a request for information as to what platforms they support for hosting servers - Windows-only, or Linux as well since that information is not obviously available on their web site. It is quite pricey - $30USD / year / user. So if you have 500 … | |
Re: Glad you figured it out. This is very basic Java/C++/C# coding. The type of variable that is passed to an overloaded function (which f1() is) will determine which instance of the function is invoked. Since you passed a double (x1), it invoked `public static double f1( double m1 )` and … | |
Re: Assuming perf top is single threaded, then it has to go through the process table linearly, and it may have then found that ComputeDotProduct_ref had reduced its CPU load in the interim, hence listing it again. These tools aren't "exact science", but are for general monitoring purposes. IE, the results … | |
Re: You can use VLC (one of the best open-source media players available) on your Mac. Here is a link to what you need to get it to play commercial (encrypted) BD discs: http://vlc-bluray.whoknowsmy.name/ Do bear in mind that you may need to update the keys file from time to time … | |
Re: Have you tried this and seen what it does? That will likely give you a clue. | |
Re: Note the terms of service for Daniweb. We don't do your homework for you. Make an effort, post your code, and then we may decide to help. Otherwise, don't ask us to help you cheat! | |
Re: Adobe cruft is not Linux-oriented, though you might be able to use their Creative Cloud versions on Linux via an appropriate Web browser. I haven't tried that, but it may be possible. I worked for Adobe for awhile, but I ran everyting on Windows 7. Never tried it on Linux. | |
Re: You might want to drop iptables and use pcap to capture network traffic in "promiscuous" mode, and then wireshark to filter and analyze it. That has worked well for me in the past. FWIW, to convert KBytes to Bytes, multiply by 1024. Also, this line "The actual value is : … |
The End.