rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I would suggest booting a live CD/DVD of Linux and see if the keyboard works with that. Also, check your BIOS settings. You may need to reset that and clear out the flash memory that it uses. Usually you either need to turn the system off, remove the battery, and then hold down the power button for a minute. Some systems will require that you short out a couple of contacts on the motherboard. You have find out from your system hardware vendor's tech support department how to do that.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The fans are controlled by thermal sensors. If the motherboard and other stuff (power supply, etc) are dusty, this can exascerbate the problem of high internal temperatures. Take the cover off, and vacuum out the system (unplugged preferably). For hard-to-get at nooks and crannies, you can also use some compressed air in a can to blow the detritis out to be vacuumed up.

Sources of heat in a system? CPU, RAM, power supply, disc drives are prime candidates.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, if you want the data to be sorted, then use a set<int> or multiset<int>. A set is ordered, where a vector is not, and it will only allow unique values (duplicates are rejected). A multiset will allow multiple identical values, so it may be appropriate if you want to see how many instances of 1234 you have, for example.

Here is the reference doc for set/multiset: http://www.cplusplus.com/reference/set/

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to either store the data externally, or have plenty of memory. Don't use an array per-se, or you will get a stack overflow as you are seeing. Use a C++ vector<int> to store the data. It will resize itself intelligently as you add data to it. It will be on the heap so a stack overflow won't happen.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@ddanbe - I think it is a continuation of main, but he exits main in his while(choice) loop back on line 79. And there is no final return value at the end (line 140).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It could also be a faulty hardware issue. Is this a desktop or a laptop? If desktop, have you tried an add-on audio card and disabling the integrated one? Also, try booting a Linux live DVD and playing some audio to see if it has the same problem. If so, then you can be pretty sure it is a hardware issue.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It is likely that dirt in your keyboard is causing this. Get some compressed air and blow the dirt, dust, and detritis out of the keyboard (also holding it upside down and shaking sometimes will dislodge stuff stuck inside). Then try again.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not a simple topic. You need to do some research on this. There are many approaches to solving this problem. Which is best for you depends upon whether or not you want to pay for the tools, whether or not you want the package to be encrypted so that the password is required to decrypt it for installation, etc, etc, ad infinitum. Remember, Google (or DuckDuckGo) is your friend!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not asking for much, are you? :rolleyes:

Read some programming books and take some tutorials on the language(s) you are interesting in learning. Programming is basically an exercise in structured thought and logic. Decide what you want to do. Determine how you might solve the problem. Write out the steps in a concise, logical manner (diagrams help). And then start programming. Bingo, you are now a programmer!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Glad you got the issue resolved, but posting what the issue really was and how you resolved it may help others. :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. The curly brace on line terminates main(). Get rid of it.
  2. There is no "End while" (line 125) in C or C++. A while() loop will terminate with a curly brace.
  3. The while statement on line 22 should be while (option == 'Y') and you need to define option as a char type variable

There are other mistakes as well. This will get you started.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It depends upon how current the malware is and what type it is. Some have well-known keys, or discoverable keys. You need to do some web searching to see what's what. In the future, you will want to a disc image backup to an external drive that is only attached to the system when you do the backup. Also, keep backups of your new or changed files between the image backups. That way, you can recover your system and most of your data if you get hit by this cruft again. What I do, even for Windows systems, is to boot from a Linux live DVD, mount the external drive, that you have installed a linux file system on, and then use the Linux 'dd' command to copy the ENTIRE drive (including partition table and all partitions and file systems) to the backup disc. That can be easily compressed to save storage space. Here is an example of how to do it:

mkdir /mnt/backup
mount /dev/sdxN /mnt/backup
# The x is the drive number, and N is the partition, such as /dev/sdb1
dd if=/dev/sda bs=1M | gzip -c >/mnt/backup/system.date.gz
# Where date is the current date and /dev/sda is the system drive.

You would do this as the root user.
FWIW, this has saved my bacon and that of my clients numerous times in the past. It works with Linux drives as well as Windows ones.

To restore your drive image you would do this after booting the …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a ton of RMS and POS systems out there, most of which are from small niche software companies, so finding the right one (or a close fit) for your needs will take time. Whatever, you will want a source-code license so you can modify it to meet your actual requirements, such as easy integration with your databases.

Also, don't let a flashy UI blind you. The underlying code base is the critical part. UI's can be crafted with available tools PDQ, but transaction processing frameworks (an area I am an expert in) and secure network interfaces are critical and difficult to get right, especially for a 24x365 operation as yours probably is.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@rproffitt has it right. Set a timer after alarm is raised, or set a number of events to process before raising another alarm within some specified (and adaptable) time frame.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Current versions of PHP (5.x and later at least) use a time-based reference-counted garbage collector. IE, every so often any object with 0 references will be removed from memory. The class is irrelevant. A class may be an object, but it isn't an "object" in the sense of something instantiated for operational purposes. As for "instance" for each connection, it may create a thread. I'm not sure about that, but the php documentation covers this stuff in great detail. Check www.php.net for details. FWIW, I have had to, in the past, dig into and fix php source code bugs, but I never had to deal with its threading/process model.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, describe the problem, how you would solve it in plain language, and the step-by-step process that you would follow to implement the solution - this is sometimes called pseudo code. That will help you develop the logic needed for the program, which we can help you with. Then you need to translate that into C# (or other language of preference), and see if that works, which we can also help you with. In your pseudo code, cover the program in as much detail as possible, such as "Display dialog to user to get input on budget constraints and anticipated water usage."

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First your compiler should complain about your Points class and the initialization of index to -1. You need to write the appropriate constructor so that you can properly initialize those private variables. And if you want to access them without getter methods, then you will need to make the member variables public as by default they are private, so your construction code for Points will not work. If you change Points from a class to a structure (a class where unless otherwise specified, everything is public) then your consturction of them will work appropriately.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What have you done to find such information from Twitter? If you can get the basic information on how many followers every user of a specific category there are then the rest is simple statistics. The question is whether Twitter groups users, or tags users, by professional and/or other category.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There has to be a service running on the host that you are telneting to that is listening for connection requests on port 23.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Either ssh (secure shell) or vnc (a desktop viewing tool).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And yes, I see that you are using a mutex, but your mistake here is that you don't lock the mutex on entry to your odd/even functions, even though it is effectively what you are trying to do in your code. IE, stop trying to be clever. Remember the KISS principle!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You cannot determine the order that threads will run in (scheduled), or how much time they will be allocated. To accomplish what you want, each thread will have to syncronize with a mutex, basically turning your code into a single thread. Why do you want to do this?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you are using SSL (such as via https instead of plain old http) then this should not be necessary as it will be encrypted before it leaves your system. That said, you could configure your client-side web page to do that - probably using javascript.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, at least move to 5.5.4 or later for php! That way, you can run php as a web server for simpler testing purposes. You won't need an entire LAMP stack running! And can run it on any appropriate client.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I meant to restructure your Index.php file. Make it pure php. Build up the HTML strings in a php variable, and then output that. Also in the Ajax.php file, build php string variables with the select, insert, update strings that mysqli (again DO NOT use the old mysql api's!) will use. Then when you are debugging your scripts, you can easily add in an output command that will display the string for you so you can verify it is what you are looking to do. I used that technique extensively at Nokia when I was building complex web applications for our QA department, including a cell phone emulator that could run in a browser.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It also could be the Exchange server getting overloaded from time to time, network congestion, or if the email is hosted on the internet your ISP / internet pipe is overloaded. Any of these things are possible given the intermittent nature of the problem. Several minutes is excessive though - although if it is a TCP issue, the length of the delay could be attributable to her computer's TCP/IP timeout settings. I've had such issues in the past where things basically came to a stop until the TCP driver timeout hit and the NIC or driver reset itself and retried sending/receiving the message. Some of these things are configurable (shorter TCP timeouts for example), but usually not easily. I used to do this in Unix systems, but not sure about Windows.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How old is this bugger? My wife had a Vaio years ago which was a bit of a pig. She switched to an Apple Macbook Pro and never looked back.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The 950gtx is a very good GPU. How fast, and how many cores does your HP laptop CPU have? Also, are you trying to stream 1080p, or 720? 1080p is very bandwidth intensive, as well as a CPU hog. Also, your media application is important. Assuming you are running MS Windows, then you are probably running the default MS video application. Install VLC and use that instead. It is much more efficient, and handles more video types without the need to install additional plugins and drivers.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Does your Mac Mini use a DHCP address, or a static one? Also, you probably want to make sure the TCP/IP v4 configuration for your Windows partition is using DHCP, and then you likely should disable IPv6 on it as well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I suspect that your hardware, specifically the extender for the front office which is giving the problems, is starting to fail. To verify that, then swap it with one of the others that is not exhibiting these issues. If the problems move with the extender, voila! Time for a visit to the Apple Store for replacement or repairs. If as I suspect you don't have an Apple Store nearby, then you may need to order a new one online and send the bad one in for repairs. This is where I recommend that you keep the old one after it is fixed as a backup.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The php runs on the server and the html/javascript/etc run on the client, so instead of mixing your html and php, build up your html strings in php as string variables. When ready, then output that. It is much more efficient that way. Also, you should build up php strings for your mysql queries, etc. That way you can debug/output the strings to see if they are what you expect. Finally, GET RID OF YOUR MySQL and move to mysqli apis instead! Not only are the old mysql apis deprecated, they are also very buggy!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Nice thing about open source code is that you can see how others do it. Take a look at the LibreOffice source. They have one-click printing capabilities.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, besides the additional lines of code here from your other post, what is your question. Also, please don't double post like this. Just edit the old post and add the new lines.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, what exactly is your question?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try it in the x4 slot first. If it affects the video, try one of the others. Myself I have to ask why you want a PCI device and not a USB one. The USB dongle will be a LOT cheaper, and with the speeds of USB 2 and 3 these days, throughput should not be a major issue.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sounds like IE on the file server doesn't have the video driver it needs. Solution, use FF or Chrome. If you have to use IE on the server, see if you can find the driver / plugin to decode it. My guess is that the versions of IE are different between the server and desktop.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

School work. So, how would you do this? If you don't understand the exercise, see your professor.
Also, read the terms of service for these forums. We DO NOT do your homework for you...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can use your phone as an internet gateway (tethering) or a wifi hot-spot (router and WAP). I've used my phone for both in the past (until AT&T said I'd lose my unlimited data plan doing that). The tethering option is good when you just want to use your phone like any internet modem. The hot-spot option allows others to use the phone to get on the internet as well. I used both as a teaching tool when giving classes in internet/cell-phone technology to AT&T techs a few years ago.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Get rid of Windows 10? Sorry, sarcasm showing up here...

Have you looked on the MS web site for what that error means, and how to fix it?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can have multiple GCC compiler packages installed on your system (great for development if you have a dependency upon an earlier/later version). If you look in /bin for gcc* (ls /bin/gcc*) you should see the different versions installed. You may have to alter your Makefile's macros for CPP and such accordingly to use the new version.

Sorry, I meant to look in /usr/bin, not /bin... Stupid keyboard!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, what is the directory tree for the production site, and your local site? Also, have you made sure that none of the directories are links to elsewhere?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you know what the encryption algorithm was? If not, and you don't have the key, then you are probably SOL.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please tell us what you are trying to accomplish. Is this for a "sleep" function? Or some sort of asyncronous timer?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

(Sarcasm ahead)
1. Boot up
2. Login
3. Press num-lock key

This is just so difficult!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. You aren't saying what/where the errors are.
  2. You are asking us to analyze 400 lines of html/javascript code - get real!
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most apps for android are written in Java, using the android Dalvik compiler (different byte code than javac produces), but the source is still mostly pure java. You should be right at home! :-) Google has excellent resources, documentation, and other materials to help you with this effort.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, I've been using the ethernet-over-powerline wall plug approach for almost 10 years. Absolutely (knock on wood) reliable. It provides 50-100mbps which is 2-4x faster than my internet connection.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That may work, but I'd still go with the multiple WAP approach, one WAP for each major area of the house/apt. You are correct in that concrete walls with a lot of rebar are bad for WiFi signals, and a high power range extender may not get you the results you want. Using an ethernet-over-powerline approach (wall plugs) elminates the need to run physical cable between the areas, and still provides good throughput. We have an ssid for each WAP, but use the same password (simpler to remember). Once you have connected with one, your computer/ipad/phone will remember the connection information, and can switch between them when connections become unstable.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. The building systems must be on their own subnet that is not accessible from the tenant subnet.
  2. Each apartment should have its own subnet, but with gateway access to the Internet.

Doing this, they can plug in their own router with a 192.168... local unroutable domain and all the WiFi or hard-wire connections to that will be local. They need to point their router to the building's gateway so the tenants and their guests can get on the Internet.

Note that you should provide detailed instructions to the tenants how to do this, as well as how to setup an SSID for their WAP that also is secured with WPA-2 and appropriate password. Of course they could leave their SSID open so others in the area can use their connection, but then if they do that, neighbors who are into "bad stuff" can mask their location and cause the tenant serious legal issues...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I got a wifi repeater a long time ago. Worked pretty good. Don't use it any more. What we do now is to have two access points and one router. The router has one access point, and the other which also acts as a switch for direct connections, is connected to the router via a power-line ethernet adapter. IE, there is a wall plug in my office where the router is (and the access point for the front part of the house) that is connected to one of the router's ethernet ports. In my wife's office there is another wall plug that her access point/switch is connected to. Works great. The only downside is that when I'm in the bedroom in the back of the house, I have to switch SSID's on my phone if the connection is too iffy. Usually that isn't a problem.

We are both heavy computer users (desktops, laptops, iPads, ebook readers, phones, etc) and this has worked very well for us. My wife only complains when I suck up too much bandwidth on our internet connection (25+mbps) and she is trying to work from home in the evening! :-)