rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Telnet is insecure. Most servers have disabled it so you probably cannot access them with it. Try ssh instead.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok. What do you need?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

More information than a simple "Permission Denied" would be helpful. I don't know if this will help... http://ocxocx.com/ocx/

Unfortunately, I don't know much about this (OLE Controls) as I try to keep as far from MS application development as possible these days - it just irritates the heck out of me!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Tcll - ah, another Linux user I see! FWIW, you can also find me on the Linux Forums, also under the handle Rubberman. Holler if you need any help, or have advice for all the lurkers there! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Glad you sorted it out. Keep in mind that there is a move to migrate to HTML5 for video playback instead of flash since it is a public standard, which flash is not.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Tcll - yes, you can get malware on Linux, but it is a LOT harder than with MS systems. The fact that the default Linux user is not the sysadmin is part of that. If you disable sysadmin privileges to the default Windows user, then it becomes much more robust in that regard. Ditto, Mac OSX systems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What Moschops said. You need to use the appropriate -L <library-dir> and -l <lib-name> in your linker variable LDFLAGS in your Makefile. FWIW, my wife uses the boost libraries all the time on both Linux and Mac systems without problems. Do read the make man pages.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I switched to Linux exclusively a long time ago (about 10 years) and have not regretted it in the least! I still run WinXP and Win7 in virtual machines, and they do catch viruses occasionally. Linux? Never a problem.

Tcll commented: just be careful not to elude people into thinking linux can't get viruses ;) +4
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is this search engine called Google that can help you find out this sort of information, and in depth...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Any recent system will have USB 2.0 and/or 3.0 connections. What is your motherboard? If it is old, then you may be able to purchase a PCI usb hub to plug into the backplane. Until I know exactly what MB you have, then I cannot help any further than this general info.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most WiFi networks are secured. Are you sure you are using the correct passphrase or password? FWIW, if a WiFi access point (AP) is using WEP, then you may need the entire 48 hex-digit key and not a passphrase. If WPA, then a passphrase should work. I have an android mobile as well (Samsung Galaxy S5) and have no problems, other than needing upon occasion a full 48 digit key for WEP-encoded connections. Most AP's these days use WPA, but there are still some WEP configured devices out there. My wife's old AP was WEP, and I had to use the 48 hex-digit key for that. She switched to a new device (the old one finally died) and is now using WPA, so the simpler passphrase works nicely.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you. Make an effort, show your code, describe your errors, and then we may help you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Look at ClamAV (ClamWin for Windows). It is an open source A/V program so you can look at the source, learn from it, and adapt it to your needs. It is used by a lot of A/V appliances for networks.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you are running 64-bit firefox, you need the 64-bit flash player, and vice versa with 32-bit versions. I don't have any problem with flash on my system running 64-bit Firefox 38.0. I am running the flash-plugin.x86_64 v.11.2.202.460 (latest from Adobe for RHEL 6.x systems).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What browser are you using, and which version/build of Android is it running?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What do you mean by "duplicates itself automatically"? A description of the files/folders it creates would be helpful. Also, what A/V programs have you used to try and remove this "infection".

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try placing your cell phone into airplane mode and see it is a possible cause. Also, make sure your phone's wifi is off, which should happen when you put it into airplane mode.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you smell that crispy odor and hear sizzling? That's your power supply getting toasted... :-) It should trip a breaker or fuse, but don't depend on that!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you have other radios on the farm that might interfer with the frequencies that the access point and laptop use (2.4GHz and 5GHz)? If you are using 2.4GHz, and your gear supports 5GHz, you might want to try the higher frequency, though distance will suffer. Since you say that the laptop is only 12 feet from the router/access point then this is not likely to be a problem.

FWIW, both 802.11a and 802.11n support the higher frequency, but you will need to configure your laptop and/or router wifi devices accordingly most likely.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Which of these 3 lines is generating the compiler error?

    for(list<int>::iterator it = wlist.begin(); it != wlist.end(); it++)
    {
        for (row = adj.begin(); row != adj.end(); row++) {
            for (col = row->begin(); col != row->end(); col++) {
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, I don't think you are writing to cr. You create it, and then close it, but nothing is written to it.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Better. I'll look at it when I have a minute. This will help others to analyze and comment as well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you. FWIW, the actual formula is ((9/5)*C) + 32. Make sure you get your parens correct!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is not adequate. Please provide all of your relevant code, variable definitions, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What ddanbe is trying to say, is that you need to show ALL of your code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As usual, Moschops hits the nail on the head!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

In truth, this isn't a C++ issue. It is a Visual Studio issue. Ok, I may be nit-picking now, but this ISN'T a C++ problem!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Stupid Python indentation rules! One of the many reasons I despise the language! Personally, I think the authors of the language took their Monty Python analogies way too far! Not to mention that they were too lazy to input a couple of squiggly braces to scope stuff. Who knows. Maybe their keyboard(s) were broken and the squiggly braces didn't work!

Ok. Done ranting now... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

RTFM? What package? Where is the documentation for it? What is "ForeignKey" supposed to refer to? IE, until you produce your code, we can't help you very much. Also, we don't do your homework for you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, don't bother writing your own sorting and searching functions - chances are you will get them wrong! Use qsort() and bsearch() instead. These are standard C functions (usable in C++ as well), or if you have to use C++ classes/methods, then things like maps that automatically sort elements are appropriate. IE, these techniques will reduce your code to a few lines...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Look at your power profile. It is likely that the system is set to turn off or hibernate if the lid is closed, or there is no input, for some period of time. These parameters can be adjusted, so when you are plugged into wall power it won't shut off, sleep, or hibernate.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Actually, in C++, you can use C functions, or C++ stream functions, including doing things like turning off echo in input streams, so you can do the mapping of input characters to things like '*'. The program can still get the real data and process it appropriately.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What Schol-R-LEA said, plus asking people to analyize almost 1500 lines of code is insulting! Narrow your code example down to where you are having a problem. If you don't know, then it is time to start using your debugger!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

VLC supports multiple playlists. You can export a current playlist to a file, and then reload that later via Media->Open File.

Slavi commented: +1 +6
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Thanks cis7850 for the lead. It sounds like this is a dedicated device that would do what I suggested "in the raw". :-) Ain't tech great? To quote some wag or other, "Never do yourself what someone has already built and sells at Best Buy."!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Aeonix's post was spot on, in my opinion. The core-M Intel processor family is designed for low-power mobile (hence the M designation) applications and devices. It is slower, smaller, and very good on minimizing power consumption. It is NOT intended for laptop and desktop/server situations, and should not be considered for such, unless your laptop needs to run for many hours without a battery recharge.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, this is an interesting discussion that will continue for some time. The jury is still out as to whether cloud vs. premises systems are more secure. In my "not so" humble opinion, is that they are about equal, and a similar amount of effort is required to secure either. If you have really valuable "family jewels", then you should probably trust them to a bank vault, and not to a wall safe behind your cheap copy of a Rembrandt! In the case of data, a 4K public key encryption policy is probably the equivalent of the bank vault...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, is there a question here, or are you just telling us what we already know? And in a very simplified explanation... I have to assume you just finished a course in operating systems. Feel confident to explain how schedulers work? Real-time systems (hard vs. soft)? What about interrupt priority inversions?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FTP is useful if you don't want to trust your data to the cloud, but bear in mind that raw FTP is inherently insecure. There are secure FTP versions available. FTP is part of the basic TCP/IP protocol stack.

Most cloud storage solutions have decent security and encryption these days, and they are convenient - all you need is an internet connection to use. Part of the issue is how much storage space will you need, and what is the biggest file you will be storing.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are issues with SSD's that most people are not aware of, such as the loss of data when the power is off for extended periods of time (recently reported information). A 7200 rpm drive will provide faster raw access speeds to data, but the overall speedup will depend upon whether you are accessing recently used data, or not. Most modern operating systems cache recently accessed disc data so that if you want to re-read that file, it will already be in memory so access is at RAM speeds - far faster than SSD's or getting it off of the spinning media once again.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

In the first example, you have allocated room for 5 characters, but you need 6 to include the string's terminating null byte. Also, you have specified that "Happy" is a wide character string, which requires 12 (2x6) to properly handle it.

As for the difference between the two, you haven't defined what T is as yet. I assume a vector or similar. In the case of t1, that is a pointer, and t2 is an array (a pointer to be sure, but not necessarily in the view of the compiler).

So the issue here is one of consistent treatment of your data. If you are using pointers, then use pointers consistently. If you are using arrays, then use arrays consistently. Yes, they may work together OK, but don't make assumptions you cannot prove!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are many for just about any operating system. What OS are you running, and where did you look? GNU has compilers for just about anything.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, we don't do your homework. Second, what don't you understand about the sequence? Read the program line by line and explain what it does.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need a number of tools for this, including a harness that will provide a load similar to what the system would generate. In addition, you need diagnostic tools such as a volt-ohm-ampmeter and possibly a scope. Not a job for the inexperienced or the ill-prepared.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I've been having a discussion on the Linux Forums recently with a fellow about his migration to Linux for gaming. Between Steam and Wine he has managed to get most of his favorite games working great. I think he is using a recent version of Ubuntu.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Where are you downloading from?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Simple. The number of grains on any square == (2 ^ square number) - 1. I leave the computation for the total number of grains on all squares up to the max as an exercise! :-)

FWIW, this kind of reminds me of that old quip, "How many pounds are in a fortnight?". :LOL:

And if you don't get the joke, just ask someone from England! I'm not from there, but I spent a year there when I was a teenager, so I learned a lot of those things. :-)

FWIW, a fortnight is 15 days.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@jwenting - I suspect the assignment was written 6 years ago, but they just got it assigned now. That said in their defense, I would reiterate Schol-R-LEA's comment... What have you tried so far? :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. All of them.
  2. See #1

Yes, PhP is programmed primarily in C++. Have you looked at the code? It is not trivial, and there are security issues there, I'm sure. I have delved into it to some extent in order to fix some HTTP bugs, and it wasn't fun!

In any case, these questions are at a Masters or PhD level of investigation/research. None are trivial, and require deep understanding of the source code for each system, such as MySQL. Also, WHICH version of MySQL? Which version of PHP? Which libraries that are used by Apache and MySQL?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What CPU? Assembly language (machine instruction sets) vary greatly from CPU to CPU. Intel x86 instructions are very different from ARM, Mips, PowerPC, and other chip sets.