rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Generally you don't need to do so, assuming you are not modifying Apache code itself, but are simply writing new classes of your own. You might want to insert your own copyright notice however, if you plan on distributing your code to others in a source format.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

what operating system are you running?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The card may be broken. You can remove the entry for the card from your hardware management page and then restart the computer (a full shuntdown and then power it back on). When the operating system starts it will scan for new hardware and reinstall the driver for the card. If it is still showing this problem after you do that, then the card itself is probably at fault.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What kind of computer and operating system are you running?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

When you first start the computer (power on from a cold shutdown), hold down either the F2 or Esc key and keep it held down until you get the BIOS screen. If that doesn't work, then it is likely a hardware problem - most likely not the disc itself.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a couple of issues here.

1) You aren't casting the results of malloc() and realloc() to the appropriate type. They return a void* and that should be cast as needed.

2) You don't test the results of the calls for NULL which would indicate an error, such as an out-of-memory condition.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sure. However, you are not providing enough information to help. Also, are you sure you own this cash drawer, and aren't just trying to break into someone else's $$? :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, to be clear, you want any specific user to be able to only start one instance, no matter which machine they are running on? IE, 1 user, 1 instance == OK. 1 user, multiple systems != OK?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What ChrisHunter said, plus we don't don't do your homework for you, no matter how much of it you have! Make a decent effort, and many of us will help you sort out your issues, but until then, don't bother asking!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is called a hashmap. It has two template arguments. IE,

hashmap<T1 key, T2 value>

When searching, it looks up the key via its hashed value (T1), to return the container value (T2). I don't see that you are using this construct in your code.

FWIW, it may be spelled HashMap<KeyType, ValType>...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You may just have a bad RAM chip. Assuming you aren't using ECC (error-corrected code) RAM, this is a distinct possibility. Run a memory tester to see.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a gazillion (a lot) of devices, ranging from simple I/O devices (relay controllable) to PLC's (programmable logic controllers), and there are a tonne of PLC's out there, using any number of I/O methods (serial, ethernet, usb, ieee-488, etc) to communicate with. So, what I am asking is that you be more specific as to what you want to do. FWIW, I have spent 30+ years in the embedded systems and real-time device control world. This is a subject I am familiar with, and have developed PC-based servers to control many devices of many sorts in the manufacturing and industrial controls arena.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Cat5e is extended length twisted pair cable, and the sender/receiver nodes should be using balanced line-drivers, which would (should) minimize interference and cross-talk from other cables. If this is not the case, then something is running "hotter" than it should and you need to determine which element is causing that issue. IE, disconnect one item at a time until the problem stops. Then you will know which is the culprit. It is also possible that the cable run for the cat5e is too long. How long is it? More than 50 feet (16 meters) is problematic. In such a case, you probably need cat7 cable (more twists and a longer effective run).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Download and install LibreOffice instead - open source (free) and can read/write MS Word (and other MS Office) documents quite nicely.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please explain exactly what you mean by "bad signals". In any case, it is probably a case of bad hardware (cell phone transceivers) in which case it will require a visit to the warranty repair center.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Between 7 and 8.0? 7 definitely. Windows 8.1 is a big improvement over 8.0, but most corporate systems still use 7 - there are a lot of issues with software that runs on 7 but won't run on 8 as yet.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Either should be just fine. What operating system are you running, Linux or Windows (or other)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Internet connections can be via WiFi, cable (via some sort of hard-wired link, such as a modem, DSL, or other media), BlueTooth (to a device that can act as a modem), or a LAN that has internet access.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

More likely it is that there are other access points in range that are using that channel (13) and have more power than yours. Good solution though! :-) Usually, you just see reduced throughput instead of an inability to connect - that may be a bug in the phone's WiFi software.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, you flagged this thread as "solved". What did you do to solve it?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is just so totally unclear! Please get into MUCH more detail!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you know C++, php is pretty simple, and can include HTML code quite nicely. That said, I have encountered some pretty significant php bugs in dealing with HTTP conversations, one of which (dealing with transmitting "chunked" data and URL encoding) required some php code updates. I have posted these changes to the appropriate php / pear web sites, but when/if they will be incorporated into the code base is another question.

FWIW, I used php to write a cell-phone web browser emulator for performance testing of our proxy browsers.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you. If this were in England, it would be a 4th form problem... Post your code attempts here and we may help you debug them.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Time to go back to the book! There are plenty of stats texts (hard copy and online) to help you with this, and wikipedia may help as well.

Just remember, there are lies, damned lies, and then there are statistics! In any case (joke not-withstanding), statistical correlations require pretty simple maths, but all stats require a good body of data, otherwise value-skew is inevitable, and that will throw your game off significantly. IE, you can't just take a few points and extrapolate a likely outcome.

Yeah, not the answer you wanted, but the best I could come up with in 2 minutes! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to install php directly (it probably wasn't by default). Either you can get it from the Apple Store, or you will need to install from source.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A 350 watt power supply is VERY underpowered for most current systems. It will not play nicely with most current video cards that often pull more than that. The biggest problem is that having an under-performing power supply will often cause serious system hardware failures as when the voltage drops due to power loads, the current increases. At some point, stuff starts to let the magic smoke out... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You poor schlub! NEVER let someone plug an unknown device into your computer!!! (emphasis intended)

To help people with recharge problems, keep a wall-powered usb charging cable available. No issue with pwning your systems.

Since this happened, you need to do the following:

  1. Reset your WiFi router to factor settings (may not be sufficient).
  2. Scan ALL of your computers (including your cash registers) for viruses using the latest (and multiple) A/V scanners.
  3. You are in deep!

And yes, doing this - plugging into your computer directly - can allow someone with a "simple" mobile phone, to pwn (own) all systems in your network. Lesson? Listen to your instincts... :-( Remember, that modern phones are fully capable 32 or 64 bit computers with the resources that a super-computer of 10 years ago would be hard-pressed to equal.

P.S. You might want to bring in a professional computer security services company and/or consultant to analyze your systems. Also, contact your banks to be sure your accounts aren't being drained...

One final note - make a police report about this.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Don't assume this is a BIOS problem. It may be, but first make sure that you don't have a bad RAM SIMM. In any case, your older system is still using a standard BIOS, not a UEFI BIOS, hence the error you are seeing when trying to install the flash update. IE, contact the ASUS tech support team to see if a) your basic BIOS supports 8GB of RAM (it may not), b) if it is UEFI compatible (it probably isn't), c) whether or not they have a standard BIOS update to support 8GB of RAM and this CPU.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It is likely that the laptop belongs to a work workgroup. Your desktop doesn't belong to that group. Changing the laptop's workgroup is probably not a good idea as it may make the system unable to connect to other shares at work, and it may, or may not be possible to reassign your desktop to the work workgroup. If you can do that, it may help your situation.

Also, on my work laptop, it will usually automatically try to connect via a VPN to my work network, making this issue even more difficult. You may want to check that out. If so, then you may need to first disconnect the VPN. IE, if I want my desktop at home to have normal shares with my laptop, I have to disable the VPN so it is only visible to my home LAN.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Since your other phones are still working with the access point of the router, I would still suspect the phone. This may be a software problem. Try this:

  1. Delete the connection to the d-link on the phone, and turn off the WiFi.
  2. Shut the phone down entirely, and after at least 10 seconds, restart the phone.
  3. Restart the WiFi and let the phone re-discover the d-link.
  4. Reconnect to the d-link - you will need to re-enter the passphrase.
  5. Let us know if this works.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Although the range extender has an IP address in order to configure it, in operation, that should not appear in the route as it is basically operating as a radio repeater at that point. IE, your computer is (in)directly communicating with the router itself and the extender is simply relaying your signal to the router's access point.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please post the error output of your compilation here. Without that, it is really difficult to tell. Source code also helps.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Phones can usually connect to WiFi services easily, but if the service is not "open" - ie, requires a WAP or WPA key or passphrase, then the user has to input that information in order to make the connection. If you want your application to do this automatically, I cannot say how you may do that unless the phone already knows the key/passphrase.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Here is the 10 penny description.

A switch statement allows you to execute code based upon the value of an integer (or comparable - unsigned, long, etc is ok). Let's say that 0 == off, 1 == on, 2 == on+bright, and anything else is an error (or does nothing). Following me so far? Then look at this:

for (int setting = 0; i < 10; i++)
{
    switch (setting)
    {
        case 0: // Turn off light.
            break;
        case 1: // Turn on light.
            break;
        case 2: // Make light bright.
            break;
        default:
            // Not a valid value.
            break;
    }
    sleep(10);
}

Assuming you had the extra code to control the lights, this would result in no light, 10 seconds later the light would turn on, and 10 seconds after that the light would be set to a bright setting. Anything else would not change the light setting (the default case). Also note the "break;" statements. Those keep your code from "falling through" to the next case, effectively breaking out of the switch block.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I'm looking at my copy of the ARM (Ellis and Stroustrup, Annotated Reference Manual for C++) now...

Ok. Can't find my ARM - it's probably at work, but now I'm looking at Stroustrup's C++ Programming Language, Second Edition.

He has several sections on pointers, but the short story is that they are variables that contain the address of the type they are a pointer to. IE,

int i = 0;
int* pToI = &i;

So, if you increment i (++i for example), then *pToI as well as i == 1. The * operator on a pointer to a type results in a reference to that entity (i in this case). In any case, you can redirect pToI to another integer and it will no longer be associated with the original variable. Example:

int i = 0;
int* pToI = &i;
int ii = 100;

++i;
++ii;
Now, i and *pToI == 1

pToI = &ii;
Now, ii and *pToI == 101

Confused yet? Good, then you are on your way! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It sounds like there is already an Oracle plugin registered with your installation of Eclipse. Have you tried enabling/using that? FWIW, most versions of Oracle since 8 or 9 use the same API's, so that would not change. IE, installing an 11g eclipse plugin would not be any different (likely) than a 10g one.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

GPS is a satellite-based location tool that gives you your coordinates to within a specified error factor. If you want to orient yourself to a specific set of coordinates (Longitude+Latitude), then you need to compute your GPS location in relation to the specified (base) coordinates, and use that to orient the "compass".

As an aside, normal compasses point to magnetic north, which varies and is NOT at the "North Pole". You could align your GPS compass with the actual North Pole (coordinates 0,0) for real location accuracy. Then, adjusting the locator to point to any arbitrary location on the globe becomes a trivial exercise in mathematics.

So, good luck with your app!

<M/> commented: thanks for the info! +9
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please provide the source for your "graphics.h" and "graphics.c" (or .cpp).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Whatever you do, DO NOT download an antivirus from these knuckleheads! It is (to me at least) an obvious attempt to pwn your system and add it to some malware botnet. As to how to remove it, have you tried mainstream A/V software, including legitimate free/open-source ones like ClamAV?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have no clue, but it may be a bug in Reader 11. Post a report of this to the Adobe support site and/or user forums.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not enough information. What problems are you encountering? What have you tried? What are the details of your project? Etc, ad infinitum.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Show your linker directives. It is obvious that you aren't linking in the required libraries for zlib or whatever.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Performance engineering is my business. The number of significant factors are as numerous as the stars in the sky... To determine how one method compares to another in any given environment, you have to construct equivalent code sets for each of the tools you are testing, along with appropriate (for your usage) applications, and then run them in a controlled environment. Then you may be able to measure their relative performance.

So, what I am saying is that this is NOT a question that has a simple answer. It is WHOLELY dependent upon your application needs and systems environment. A vs. X may work better for your needs, but X vs. A may be better for mine.

All that aside, Intel writes some very good software, and will usually serve you well, for a price. MPI is well-established and open source, and will also perform well in most scenarios, and cheap at twice the price (free).

FYI, I have spent 30+ years designing and writing large-scale distributed systems code. Personally, I don't use either, but have worked with both.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assembler languages are not likely to get many answers here - the expertise required is not common, unless you go to Google. I think a professor at Pepperdine University invented the language as a teaching tool. So, here is a link: http://code.google.com/p/pep8-1/

Unfortunately, I couldn't find any user discussion forums there, or otherwise.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

RTFM? Go online and look at Oracle's Java documents. It is all covered there. This is not a simple question to answer here without you posting the code with which you have tried to accomplish this.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. No need.
  2. Probably not, unless the function call was system(cmd.exe cls); - unfortunately since most of my programming is Unix/Linux I can't say. The Linux command to clear the screen is "clear" which is actually "/usr/bin/clear", so it should work, assuming the call was made in a program running in a console shell.
  3. This is why it is much more preferable to use full paths, and also the exec...() functions instead of system(...);

Final note - in your example, if the current working directory (.) is not before the directory holding "notepad.exe" in your PATH environment, then it will not work as you specify. I think this holds for both Linux and Windows systems; however, that is a MAJOR caveat! As in "caveat programmer"... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, array indices in C/C++ are zero-based, not 1 based like some languages we won't mention here, UNLESS you want to skip over the first element...
Secondly, you need to remove the semi-colon from then end of line 1. :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you get any lights flashing or beeps when you cold-boot the system? Have you tried removing the battery and then holding down the power button for about 30 seconds, then reinstalling the battery and rebooting (this resets some bits that may be a problem)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Great! We're happy you figured this out. Sometimes, without being able to look at the system in detail, advice can only be approximate... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The best tool I have found for video transcoding is ffmpeg. There are binary builds for Linux, OSX, and Windows, plus source code of course. Here is a link to their download page: https://www.ffmpeg.org/download.html