5,331 Posted Topics
Re: Your second example should work. What platform+version+kernel+bash version are you running? You could try this: `TS20="710000\/393"` as an option. | |
Re: The gcc variants for Windows are MingW, and the gcc native compilers in Cygwin. In any case, RTFM with regard to optimization settings (-ON where N is the optimization level). As for you specific code, the only thing I can see at the C level (sorry - bad pun) is … | |
Re: Is this an X-Windows program, or a text-based one? I don't have it on my RHEL 6.4 system, and it doesn't appear in any of my repositories. | |
Re: Make an effort, show us the code, and we might help you debug it; however, we DO NOT do your homework for you. | |
Re: Ask HP support. It is unlikely that there are any simulators for this gear available, unless HP has one. | |
Re: It is possible that the optical emitter or lenses are out of alignment. If this unit is under warranty, send it in for repair. Optionally, get a second, DVD, drive. You can purchase good DVD read/write drives for under $50 USD these days. | |
Re: This is not simple. First how is the keypad and display connected to the 8051 - via uarts, or other I/O? If direct I/O to the 8051, which pins are involved with each? Do you know how to read the pins (set/read registers, etc)? Have you written out the pseudo-code … | |
Re: Pointers to integers are often used in C programming when you want to set an external variable inside a function, and return some other value. Example: typedef struct { int sizeofbuffer; char buffer[1]; } somestruct_t; int getSizeOfData(somestruct_t* pStruct, int* pBufSize) { int err = 0; if (pStruct == 0) { … | |
![]() | Re: After ptr is incremented, it is pointing past the end of the stack frame, so if someone had placed some bad data on the stack in the right location, it could execute malicious code when you access it for the next output statment. ![]() |
Re: This is where you use the back-quote method, as in SSID=`grep ${FILE} -o empty-ssid` You do need the file "empty-ssid" to exist in the local directory however or you will still get the "No such file or directory" error. | |
Re: Have you tried booting into safe mode, or into the recovery partition? | |
Re: Study good code. There are some great examples out in the open source world. You should visit the gnu.org web site - all their tools have source available. Start with small utilities at first, and try to understand what they are doing to implement the functionality that the tool provides. … | |
Re: I have also used unetbootin without problems in the past except that some older thumb drives don't seem to want to boot. I haven't had problems with newer drives. So, are your thumb drives just units that have been sitting around and you thought you'd use them? Or are they … | |
Re: I think you can use a multi-entry crontab like this: 0 0,5,10,15,20 * * * cmd-to-run 12 1,6,11,16,21 * * * cmd-to-run 24 2,7,12,17,22 * * * cmd-to-run 36 3,8,13,18,23 * * * cmd-to-run 48 4,9,14,19 * * * cmd-to-run | |
Re: I use both, and home and work, but my main systems are all Linux. In point of fact, Linux and Unix (including OS-X) are both more secure than Windows because of how they are designed. That isn't to say that they have no vulnerabilities, but in point of fact it … | |
Re: If you are writing Linux kernel code and drivers (or for Solaris/BSD Unix), it is STRONGLY recommended that you stick with C and not C++. C is often considered a high-level assembler language, whereas though there are C++ implementations that are targeted at real-time applications and possibly kernel development, they … | |
Re: Agree with Reverend Jim. Given costs, going with a 250GB or bigger drive will be a lot more cost effective than an 160GB drive. The reason is in manufacturing scale. More drives shipped == lower price per unit. Since very few people purchase drives smaller than 250GB these days, those … | |
Re: Have you tried to boot the recovery partition, or a Linux Live CD/DVD disc? | |
Re: The output you see is absolutely correct. See AD's advice above. If bit1 was 2 bits instead of one, it would have output the expected answer. IE, an integer value with all bits set == -1 in decimal. That is what you have in your example. This is a good … | |
Re: Good observation caperjack. As he said, the audio subsystem is still functioning. You can use the headphone plug to connect with a PC speaker system. I assume you have two plugs - one on the front for headphones (normally) and one in the rear for speakers (normally). They are usually … | |
Re: > Looking increasingly like b... Except that spammers usually don't reply quite so quickly. Perhaps the poster (cigala) is still trying to figure out how to use the forum interface? Or is having a difficult time writing his post in English. If that is the case, then try using Google … | |
Re: What OS are you running? Windows of some sort I presume? | |
Re: 1. Keep eyes open. 2. Observe. 3. Ask questions, such as "Why are we doing that?", "What advantages does that gear give us?", "Why Fast Ethernet, and not gigabit?", "What management tools (snmp, nagios, etc) are we going to use?", "What about a firewall?"... Sounds like a good situation for … | |
Re: This has been a Windows problem for just about ever, especially with XP. It is basically the software trying to push data to the drive faster than it can write it until the hardware buffer overflows... The OS then puts the device into read-only mode. You can remove and re-insert … | |
Re: What are you really trying to do? Understand how pointers adn pointer arithmetic work and the relationship between pointers and arrays? | |
Re: It was working before you cleaned it up? Check again for broken connections and such. Make sure all socketed chips are well seated and that their connections are clean also. A can of compressed air is your friend here... :-) I think it is worth a second pass on the … | |
Re: Is this for production use, or to test/evaluate? If the latter, then install it on a virtual machine. | |
Re: Do what interests you. There are a gazillion (technical term for a very large number) things you could explore. | |
Re: This might work in C++, but not C. To copy array data like this from one variable to another in C, you would either do a member-by-member assignment, or alternatively a memcpy() operation. Example: void copyarray(array var1) { array var2; memcpy((void*)&var2, (const void*)&var1, sizeof(array)); } | |
Re: One way is to encode the strings into an array and pass the index to the switch. However, it would not be particularly efficient unless the array is sorted and you can use a bsearch() to find the index. This is good for reasonably large data sets, but not for … | |
Re: It may be a usb power problem. Not all ports on some PC's provide adequate power for such dongles - WiFi devices have a pretty high power cost. Try other ports on your system. At least one probably has a higher power load capability. | |
Re: Not sure where you can put them, but .aax files are generally encrypted with DRM. Some versions of iTunes can play them, but others cannot. From what I have read, your iPod can play them and deal with the DRM, but you probably need to run iTunes to install them … | |
Re: In this code: double PEmployee :: set_salary(double new_salary) const { double salary = new_salary ; return salary ; } You are creating a local variable "salary" which will override the class member salary. IE, it won't set the instance member like you think. Remove the "double" declaration. There may be … | |
Re: With Windows systems, sometimes it seems to lose connections with devices - a problem I have with USB drives on occasion. The solution is to go to the device manager and remove the device and controller from the system, then reboot. The driver will be reinstalled and reconfigured on reboot, … | |
Re: What JorgeM said. If you want general information, then visit our friends Google and Wikipedia. | |
Re: It depends upon what you want to do. In bash scripts you can assign the output of any other executable to a variable using the back-quote character, as in: varname=`md5sum filename` | |
Re: There are some execellent books on the subject. Two that I have used are Fischer and Blank "Crafting a Compiler" and Holub's "Compiler Design in C". | |
![]() | Re: What you propose is essentially what the Hadoop hdfs (hadoop distributed file system) does - it stores your data in chunks of a fixed (configurable) size. Go to the Apache Hadoop web pages and read the design documentation for more ideas. FWIW, you can install hdfs on a single computer. … ![]() |
Re: Sorry, but you have to try first, and then we'll help. How would you approach the problem? Show some work... | |
Re: Assuming this is a tree structure with one data point per node, then you need a node structure/class that contains an int value and left/right nodes that point to items less than value (left) and those with more (right). So, what you are doing is counting the number of nodes … | |
Re: Well, if you don't understand derivatives (basic calculus), then you first need to focus on your maths! AI for the most part has a (as you observed) big dependency upon integral and differential calculus. Here is a link to a program which may help with that (shameless plug): http://www.helpwithmath.com/index.php The … | |
Re: If you don't replace the drive, you first need to boot into a live cd/dvd/usb device and run the badblocks command on the first sectors of the disc. If the boot sector (first sector on disc) is bad, then you will have to replace the drive. If not, then format … | |
Re: Even if you purchase one (probably about $5 from Best Buy or Office Despot), you should post a complaint with Amazon - they owe you either a cord, or credit. If you don't, then they won't know to review packaging/shipping processes with their providers... | |
Re: Decoder for what? Small domain space here... :rolleyes: | |
Re: Some modems will auto-adapt to the cable configuration. Others won't. I think that for the BT modem you need what is called a patch cable. It has to do with how the wires are cross-connected. | |
Re: You need to reinstall CodeBlocks for XP. You can't run Win7 software on an XP system. | |
![]() | Re: There are a lot more factors involved with this than just the CPU. The GPU (graphics processor) is much more important. Post the entire build list and specs that you have come up with, including such things as motherboard, power supply, video card, memory (speed and amount), etc. |
The End.