rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Some AP's provide an unsecured "guest" option, which is what I think is happening here. Make sure you are connecting to the secure ssid, and have used the correct passphrase with which you configured the AP. Best guess? If you use the wrong passphrase, or ssid, it will fall ack to the public/guest ssid, hence your problem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It sounds like the system isn't restarting the backlight when coming out of hibernation. Did you talk with the techs? I'm sure there is some connection that was either not done, or not done properly that has to be used to trigger restarting the backlight. Since it works if you shut down the system and restart it, then it may be a hibernate or driver problem. I'm just guessing here since I haven't seen this problem myself.

Last question: did you replace the backlight yourself, or had it done by some service?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you mean repeater (for the WiFi access point), or bridge (use the router as a switch/bridge and not do routing)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most of these that have no slip-off access covers, or screws to remove the back, can be pried apart, but will probably require one of those plastic prying tools that can help do that without damaging the case. My Palm Pilot was such, as I recall.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How is the drive connected? USB I presume? Have you tried rebooting the computer with the drive attached. That will often fix this issue. If you initialize the drive, you WILL lose all your data.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Show us the structure of the inventory table. Use the SQL command "describe inventory" to get that data.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is /media/garrett/DX50/update.img an application that runs on your computer to import/remove files from the device, or is it on the device to do same? Or do you just copy your media files to some directory on the device?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most coding problems with PHP is that people don't use it as it was intended. They try to mix PHP and HTML (which you can do). It is an object-oriented language very similar to C++. Don't just output HTML. Embed it in strings constructed in the methods in your classes. Once everything is ready, then do your output, such as your CSS structures, headers, and then the HTML/JS data. This will allow you to better debug the code and improve performance (less network I/O to the client browser). PHP is a powerful language and can, if used properly, greatly increase the security and flexibility of your web applications.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Study the PHP documentation: http://php.net/docs.php
The reference docs are very useful. FWIW, use the mysqli classes and interfaces for MySQL access from PHP these days instead of the deprecated mysql apis.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, I'm psychic and telepathic (in my dreams). The problem is he hasn't posted his code... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Modula maybe. It certainly isn't C.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It is failing. It isn't the display led's that are failing, but likely the underlying electronics such as capacitors or scan chips. Time to send it in for repair.

FWIW, I have 2 Dell 24" (1920x1600) monitors that are 7 and 9 years old. So far, no problems with either of them.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Buy or burn a liveDVD copy of Linux to disc, boot, and learn. Alternatively, install VirtualBox on your Windows system, and install Unix or Linux to a virtual machine, boot, and learn!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And you are using Turbo-C because? It is old, outdated, non-standard, and definitely not complient with current standards. Stuff you write with Turbo-C won't work on anything but a Windows system - and I'm not sure about current Win7/8/8.1 systems either.

All that aside, try this:

    #include <stdio.h>
    int main(void)
    {
        float price = 0.0;
        float discount = 0.50;
        printf("Enter Item Price: ");
        fflush(stdout);
        scanf("%f",&price);
        printf("The discounted price is: %.2f\n", price - (price*discount));
        return 0;
    }

At least it works with gcc on Linux without problems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Excellent question! I'm going to need to do some thinking about this before I answer it better, though I'm not sure what this has to do with class factories. I wrote a generic class factory for C++ - create an instance of a class from a name or class id without needing to know anything about that class. When you compiled a class, it would register itself with the factory instantiator. I'm not sure if that is what you are getting at.

In any case, method injection (register a method with a class at run-time vs. compile-time) can be useful, but like most such constructs, usage when needed is good, but over-usage can, as you have seen, create real issues, especially with regard to code maintenance.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What operating system are you using?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Look up Knuth's "The Art of Computer Programming". Now 4 volumes (v.4 took a long time to come out - I just got it last year). Covers sorting/searching and many other critical CS topics.

pritaeas commented: The absolute best +14
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is also the prime factorization problem - look it up. Every number is divisible by some number of primes. That's all the help you will get until you try solving the problem itself.

FWIW, I did this "exercise" as a mental problem about 30 years ago. Another reference - Goedel numbers. Also, prime factorization is key to breaking public key encryption algorithms. If you figure out a fast way to factorize a large (2048 bit or higher) number, the NSA will want to talk to you!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Forget this - need to re-analyze the original code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ain't software great? You can use older versions of a compiler to write/build a new version of the same. You can use software that analyzes other software to analyze itself. Look up Ouroboros! :-) https://en.wikipedia.org/wiki/Ouroboros

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you tried removing, blowing out dust with compressed air, and then reseating the memory sticks? It may just be a matter of dirt causing bad connections between the memory SIMMs and the sockets.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Some settings are universal and others are personal. When as root you set up some GUI configurations, many of those are "global", so you get them as a normal user. As for your question "is there any way to ..um .. maybe use root's session without the previliges until password is entered?" - you really, really do not want to do that! It would leave your system very open to security exploits.

So, please explain why, exactly, you want to do this?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

PHP has deprecated the mysql apis in favor of the mysqli classes and apis. Try that instead. FWIW, what version of PHP are you using?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is when having a class to handle this cruft is called for. That way, you can deal with the new/delete cruft in the constructors/distructor and when you are done with the instance, just delete the class instance. IE,

void 2darrayfunct(size_t height, size_t width)
{
    2darray array = 2darray(height, width);
    // Do stuff with array here.
    .
    .
    .
    // Now, done with array.
}

Leaving the function, the array is automatically destroyed as it has gone out of scope. Simple, complete, no leaks (assuming the 2darray class destructor is properly implemented).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. Java is C++ with training wheels.
  2. Java doesn't support multiple inheritance, other than via interface types, which in my opinion are really useless. Every concrete class that inherents an interface class has to separately implement each function in the interface! Gah!
  3. C++ doesn't leak memory. Only badly written applications do. I wrote a smart-pointer implementation for C++ that handled recursive object references (in deterministic time suitable for real-time applications) without leaking. No deletes and no leaks in 10M lines of application code! That code is still in use today (has to run 24x365) to run most semiconductor, flat-panel display, and disc drive manufacturing plants. I have seen major Java applications leak like a sieve because of unintended references. Also, the default Java garbage collection tools suck! When you server "stops" for minutes at a time while cleaning up the heap, you are well and totally fubar'd!

And yes, I have written, debugged, and fixed a LOT of major Java code (including standard Java libraries such as Jetty/Netty) in my career, and I once had a (now broken) Java mug given me by none other than James Gosling (the author of Java) himself! Smart guy, but nothing (in my opinion) compared to Stroustrup.

~s.o.s~ commented: Interesting :) +15
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That is a problem if this is all of your code. Please be more complete... There is nothing regarding to opening the port, writing/reading data to/from it, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What AD says. There are an infinite number of projects that you can write in C or C++. Something that may be useful are tools that can monitor system performance such as CPU usage, file system I/O rates, network usage, etc. That will also help you to learn about operating system interfaces for such. Using C/C++ by itself isn't too useful unless you also utilize it to do something meaningful.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I would complain to Gateway - if a system fails hard like this one month after warranty, I think they should still service it, if only to replace it with a reconditioned unit, vs a new one.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What Hiroshe said. Also, are you sure your Explorer settings aren't configured to create shortcuts for copies instead of real copies? So, how do you do these "copies". Finally, does the pen drive appear to use the actual space of these files, or something less?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is why I run Linux - no activations, registrations, other people pwning my system credentials...

Rant finished.

It is possible that either MS "lost" your registration/activiation, or someone (malware) has tried to activate a Windows system with your key (possible). What happens when you actually try to re-activate your license?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It probably isn't needed, but look in the add/remove applications tool to see if the system thinks it is installed. If so, use the tool to remove it, and then you can remove the directory. If the tool doesn't know about it, then first try renaming the directory (or moving it to /TEMP) and see if some other application starts to complain.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You have changed the baseurl target to a local directory in /media. This is either incorrect, or the required data that should be there isn't. Why did you do this? Changing enable = 0 to enable = 1 isn't the issue here.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, what IS your problem. You seem to have determined that the row doesn't contain the "and clothes" term searched for, hence the lack of results. Please be more specific about what you are trying to accomplish.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Read the PHP and HTML manuals yet?

Sarcasm aside, normally, you do this with a form that calls either the same or another php page using either POST or GET variables. Then, when the called page executes, you can get the data via $_POST['name'] or $_GET['name'] values. Post is better for stuff you don't want to be visible in the URL called. GET variables are included in the URL as in "www.xyzzy.com/phpfile?valuex=x&valuey=y..." so it is not appropriate to use GET variables for things like passwords, etc.

And finally, writing good PHP code is not simple! Having a good grasp of C++ and object-oriented development is critical (PHP is based upon C++). You want to minimize the amount of in-line HTML code you use. It is better (and more efficient) to construct your html output strings as variables in some PHP class, and then output them after all the parsing, GET/POST variables are extracted, etc. This also allows more sane debugging when necessary.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It is more a matter of cursor location. Just because the display is "blank" in some areas doesn't mean that the system doesn't know that the cursor is located there. Unfortunately, the visual feedback you usually have is not there... There are keyboard commands that will move the cursor from one item to another. Some experimentation may help, but it will not be easy, or accurate, as in "oops - I didn't want to delete that directory!". My advice is to go "laptop-free" until the replacement arrives. Also, make sure you can copy your data from the old to the new system - my usual approach for this is that if the replacement is compatible, I will remove the new system drive and replace it with the old system drive. That way, assuming it works, I have all of my applications and data intact. It has worked for me in the past when my Dell laptop fried its motherboard.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, can you get the messages? If so, please provide an example. Second, if you do get the messages, then parsing them mostly depends upon how the elements are separated - via white space, commas, tags, other? Generic parsers are difficult - I know because I have written many. Parsers for specific character sequences are not so difficult - I know because...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The reverend's solution should work with MS-SQL. Basically, a Word file is a BLOB of unknown size. If you aren't using MS-SQL, then the definition and possibly access will differ. I don't think the solution will work for Oracle, for example.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Yeah. This is a 5 year old question, to which the correct answer should have been "Do your own homework idiot!"... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need a baseline value range to determine if scaling is necessary for your situation, and that may vary depending upon your audio gear. Just remember that data is just data - you need to determine if it makes sense in your situation. Some audio gear may deal with the scaling (down-sampling) if necessary. Others may not. You might want to look at some open source audio tools like VLC to see what they do.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you. What have you tried so far?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Posting your code can be helpful. Hiroshe has made valid points, and without your code, we can't be more specific than that.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

No.

  1. Read a book.
  2. Study code.
  3. Write code.
  4. See what works for you. Go back to 1.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How are you pushing the data to the next page - via Posts or Gets? That's the key. You can call the same page in a form and either use POST or GET values (POST values are not visible in the URL) and then obtain their values in your code via $_POST['name'] or $_GET['name'] constructs.

If this is confusing, let me know and I can give some examples.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If the device has Linux driver support, this should not be difficult, and most Linux GUI's should support it. If not, then you have some serious coding (interrupt handlers and such) to do. I wrote some of the first code to teach developers how to interface to touch pads in the 1980's. Those weren't even interrupt-driven - used analog game controller interfaces. I also wrote the curve-smoothing algorithms and code that still is in use widely on touch pads / screens, etc. Honestly, I wouldn't bother - I'd give the job to my grandson who does this stuff in his sleep! :-)

FWIW, I also wrote a driver for Unix/Linux back when (in the early 90's) that would let the pad look to the system like a mouse for the X-11 system.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is a chicken and egg problem. No drive, cd/dvd won't work. You either need to get an external drive, or have someone write it to a USB thumb drive that your system can boot from.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is this what you are talking about? https://www.rapid7.com/db/modules/payload/windows/shell/reverse_tcp

In any case, what exactly are you trying to accomplish?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

iOS 8 on a Windows machine? iOS is an Apple OS and won't run there. Are you sure you don't mean Windows 8? Also, there is a 32-bit and a 64-bit version of Win8 and if your system is old, and doesn't have a current CPU or enough memory, then you are SOL with Win8 as well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What David said. The laptop should be able to be switched to use only an external display with an FN key press.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I love it when the clueless try to reinvent the wheel, using straight elements (no curves). My wife, a particle physicist gets equally p.o'd when I try to explain the fundamentals of mesons, even though I have at least 1/2 a clue...

So good luck, and I'll send your regards to Don Quixote as he tilts with that windmill of his.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a number of good discussions on the internet about this - try a google search on the terms "java operator overloading". The short answer is that java does copy-by-reference vs. C++ (and I assume C#) using copy-by-value. Here is one link for you that tries to explain it: http://stackoverflow.com/questions/77718/why-doesnt-java-offer-operator-overloading