5,331 Posted Topics

Member Avatar for JukesK

Your second example should work. What platform+version+kernel+bash version are you running? You could try this: `TS20="710000\/393"` as an option.

Member Avatar for Watael
0
287
Member Avatar for ShiftLeft

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 …

Member Avatar for ShiftLeft
0
431
Member Avatar for singularity~

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.

Member Avatar for rubberman
0
176
Member Avatar for jakarias

Make an effort, show us the code, and we might help you debug it; however, we DO NOT do your homework for you.

Member Avatar for jwenting
0
221
Member Avatar for mrgreen

Ask HP support. It is unlikely that there are any simulators for this gear available, unless HP has one.

Member Avatar for rubberman
0
181
Member Avatar for ozstylo

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.

Member Avatar for rubberman
0
153
Member Avatar for Kignoumba

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 …

Member Avatar for rubberman
0
281
Member Avatar for Razahcy

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) { …

Member Avatar for rubberman
0
386
Member Avatar for Rahul47

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.

Member Avatar for Rahul47
0
368
Member Avatar for jiggaseige

There is also unetbootin: http://unetbootin.sourceforge.net/

Member Avatar for rubberman
0
183
Member Avatar for lewashby

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.

Member Avatar for lewashby
0
685
Member Avatar for victor1244
Member Avatar for victor1244
0
794
Member Avatar for revelator

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. …

Member Avatar for rubberman
0
242
Member Avatar for ddm
Member Avatar for h(OM)e

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 …

Member Avatar for best4earn
0
227
Member Avatar for chophouse

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

Member Avatar for Watael
0
573
Member Avatar for f14dtom

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 …

Member Avatar for Vasvi
3
745
Member Avatar for MasterHacker110

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 …

Member Avatar for MasterHacker110
0
215
Member Avatar for katman

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 …

Member Avatar for katman
0
191
Member Avatar for fhoebe.jose

Have you tried to boot the recovery partition, or a Linux Live CD/DVD disc?

Member Avatar for best4earn
0
192
Member Avatar for ram619

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 …

Member Avatar for Ancient Dragon
0
147
Member Avatar for Leander_1

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 …

Member Avatar for Rik_
0
340
Member Avatar for cigala

> 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 …

Member Avatar for rubberman
0
132
Member Avatar for rectifryer
Member Avatar for ibthevivin

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 …

Member Avatar for mrgreen
0
262
Member Avatar for grvale

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 …

Member Avatar for PhilliePhan
0
1K
Member Avatar for ram619

What are you really trying to do? Understand how pointers adn pointer arithmetic work and the relationship between pointers and arrays?

Member Avatar for ram619
0
205
Member Avatar for stevzev57

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 …

Member Avatar for steve787
0
139
Member Avatar for newbie14

Is this for production use, or to test/evaluate? If the latter, then install it on a virtual machine.

Member Avatar for newbie14
0
181
Member Avatar for Saqlainz

Do what interests you. There are a gazillion (technical term for a very large number) things you could explore.

Member Avatar for happygeek
-3
113
Member Avatar for hg_fs2002

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)); }

Member Avatar for rubberman
0
247
Member Avatar for pars99

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 …

Member Avatar for pars99
1
216
Member Avatar for Kraai

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.

Member Avatar for Kraai
0
210
Member Avatar for lewashby

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 …

Member Avatar for lewashby
0
276
Member Avatar for charles.dupree.37

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 …

Member Avatar for rubberman
0
3K
Member Avatar for gikonyo

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, …

Member Avatar for jamessmith
0
212
Member Avatar for derrick.kofi.14

What JorgeM said. If you want general information, then visit our friends Google and Wikipedia.

Member Avatar for arundlk
0
143
Member Avatar for leghorn

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`

Member Avatar for masijade
0
153
Member Avatar for NardCake

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".

Member Avatar for NardCake
0
163
Member Avatar for kohkohkoh

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. …

Member Avatar for kohkohkoh
0
186
Member Avatar for mcnickn
Re: c++

Knuth, Volume 3, Sorting and Searching, has all the information you need. You should be able to find it in your school library...

Member Avatar for Dewey1040
-3
168
Member Avatar for Alxprog

Sorry, but you have to try first, and then we'll help. How would you approach the problem? Show some work...

Member Avatar for Labdabeta
1
329
Member Avatar for harde_1

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 …

Member Avatar for harde_1
0
446
Member Avatar for MrEARTHSHAcKER

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 …

Member Avatar for jwenting
0
248
Member Avatar for m_ishwar

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 …

Member Avatar for paulas24
0
379
Member Avatar for NardCake

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...

Member Avatar for NardCake
0
144
Member Avatar for onon.innocomzzy
Member Avatar for rubberman
-1
76
Member Avatar for goldburg

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.

Member Avatar for rubberman
0
188
Member Avatar for michaellooks

You need to reinstall CodeBlocks for XP. You can't run Win7 software on an XP system.

Member Avatar for michaellooks
0
91
Member Avatar for ingeborgdot@yah

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.

Member Avatar for steve787
0
179

The End.