rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Until you are comfortable with Ubuntu installation and configuration then I would recommend that you install Windows 7 as the host operating system, and install Ubuntu in a virtual machine such as VirtualBox (free). At least with a virtual machine you can remove/reinstall and reconfigure the OS as many times as you want without affecting the functioning host.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most file managers for Linux GUIs have a "properties" item when you right-click on the item. Usually there you will find a tab titled something like "Open With" which will usually let you set the default application to use when double-clicking on the file type in question.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The one very popular IDE that Mike2K didn't mention is Eclipse which runs on just about anything. It has a C/C++ plugin which works a treat. Myself, I prefer to use a good editor and make, but for less experienced people, the tools that a good IDE provide for editing, compiling, and debugging are very valuable in getting started.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If your laptop is showing no connections (ssid's) active at all, then there is either a hardware or software problem with the laptop. First, shut it down completely. Then, after a couple of minutes try rebooting. If it works then, it is probably a software issue, which can happen if you typically sleep or hibernate your system instead of shutting it down cold. If not, then your WiFi is broken and needs to be replaced. On most laptops, it is an internally connected USB device. If out of warranty, you might be better off getting an external WiFi dongle which won't be too expensive and should work just fine.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What kind of graphics card does your system use?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

To output in hex: std::cout << std::hex << (int)someChar;

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

OCR in 50 words or less.

  1. Scan input
  2. Extract each item (character) from the input
  3. Apply pattern matching algorithm to each item
  4. Generate output
  5. Validate output

Have fun...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I prefer Linux myself, but Windows 7 is a good option for learning systems used by many corporations.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most old keyboards are what were PS2 boards and plugged into a round port in the back of the computer. If your computer doesn't have such a port, then you can get a PS2 to USB adapter for a few $$ from most online computer gear suppliers such as Rakuten (formerly Buy.com), Tiger Direct, and others. Here is an example: http://www.rakuten.com/prod/usb-male-to-ps2-ps-2-female-for-keyboard-mouse-mice-adapter/226169506.html

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sometimes, drivers miss a hardware event/interrupt and get into some space where they cannot continue to operate normally. At that point, it is time for the 3-finger salute, as you found out. As far as I'm concerned, drivers should be able to recover from this, but that is not a trivial exercise to accomplish in many cases.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Replying to your own post with what is effectively the same message is not helpful and won't get responses from the rest of us any more quickly.

Assuming that the system is plugged into main power (not battery), then I think you have a hardware problem and need to take/send it in for diagnosis and repair at an HP certified repair depot.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Some compilers will bitch at you if you try to assign a string literal to a char* (often depending upon how you set the strictness level of type-checking for the compiler). You SHOULD use a const char* instead in such cases. The first case is a clear violation of intentional programming - do what you intend. If you INTEND for the string to be mutable, then use the char var[] = "a string" construct. You can use var as a char or const char pointer as necessary without needing to any casting.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Myself, I like Wirth's "Algorithms + Data Structures = Programs". It's a bit dated, but it was the seminal treatise on the subject.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Since this is C++, why are you building your own sort routine? Either use C's qsort (with an appropriate comparison function), and then simply walk the array and output the names, or for a purely C++ approach, you can use a map with the key being the lastname,firstname and the value being same thing, insert the name pairs into the map, and then simply iterate through the map and output the key data. Unfortunately, the STL doesn't have a sorted array type which would be less clunky than using a map, though you could simply use a NULL value for each entry since it is the sorted key you are interested in.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but though I have quite a bit of experience working with Wireshark (and the associated tcpdump tool), I have not knowleged of (that I am aware of) of .pcapng, and certainly no experience with .json formats; however, it wouldn't take me long to figure them out, which is what you need to do. This may take a bit of effort, and/or google searches to find some appropriate documentation and such for them.

Also, did you install this Chrome instance yourself, or did someone else do it? If someone else, are you sure they didn't install a proxy bypass tool or configure it to tell the proxy to let it pass? On the systems for my old company (Nokia) we had to configure it to allow the proxy to allow us to bypass the firewall - necessary for developers who were writing web browser tools...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most systems use a "coin cell" battery similar to the batteries in garage-door openers and automobile security keyfobs. You need to get the battery out and see what the type is, such as CR-2032 (3V). If you go to the Acer web site, you should be able to get that information from their support pages for your computer. That said, most are 3 volt devices, but some are 6 volt, some more, some less...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A bit of advice. If things suddenly change behavior and you didn't (you think) do anything to alter that behavior, then reinstallation and reconfiguration are likely not to help (as you have seen). This is when you need to start looking for other possible explanations, such as software updates (Microsoft has a reputation for updates that NEVER adversely affect any of your software - right... and $5 will get you a nice latte at Starbucks!). That said, do you have your system configured to accept automatic updates, or do you require that you authorize them first? What about other environmental changes (anti-virus updates, new software installations, etc)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Mike2K
I have a WiFi extender that I used to use before I decided to go the powerline connection route with multiple access points. I think it's a d-link (not used for years - in a box in the basement somewhere), but it worked very well and eliminated the need for a cable. I had it connected to an ethernet switch which my work gear was plugged into. Worked a treat. Things changed and that wasn't really practical any longer, which was the reason for the change. I've been using that setup for about 7 years now without any issues.

Don't know, but you may be correct about being able to use the same SSID. I never thought about trying that, and our current setup works well. When you go out of range of one, if your laptop or cell phone is configured to reconnect automatically, then it fails over to the stronger signal. In my office, my phone is connected to one AP, and when I go to the bedroom at the other end of the house (and on another floor) it reconnects to the other.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As usual, Mike2K gives great advice. My only comment is about the performance issue, though there WILL be some impact. There are several things you can do to improve the performance of a VirtualBox virtual machine. Some of these are as follows (experiment to find out what works best on your system):

  1. If your system is 64-bit, then install the 64-bit version of linux that you want to use.
  2. Enable the VT-x (Intel) or AMD-V (AMD) extensions in the BIOS. Which depends upon your processor.
  3. Allocate 1/2 of the number of real cores (not virtual hyperthreaded ones) that your system has to the VM.
  4. Allocate at least 2GB of RAM to the VM.
  5. Assuming you are using a GUI, allocate the maximum memory to the virtual video card (128MB currently).
  6. Make sure you download and install the extension pack. That will enable you to use your USB devices and some other stuff in the VM.
  7. After you install and boot the new OS, install the "Guest Additions" on the virtual machine. That will provide significant enhancements such as full-screen video, shared folders with the host, and more (see the VirtualBox documentation for a full list of enhancements).

When configured correctly, I can even run full-screen video (1920x1200) on a 24" HD display in a virtual machine with little or no "stutter", so performance is not necessarily an issue (conditions may vary, depending upon your video card and whether or not you have 2D/3D extensions enabled). That said, I wouldn't …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Rar files, or file sets, are NOT zip files, though they may (or may not) be compressed. There is a free (shareware) Windows tool for that called WinRAR. Works great. There are also rar extractors for Linux (open source).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What is the inteface that it uses? Is it a standard floppy controller interface (not often found on current computers), USB, RS-232, what? That is the question. The cable is probibly the easy part. How it connects to the system something else entirely. There are a number of after-market floppy drives that have USB interconnections. Also, is this a 3 1/2" 1.44MB drive that you need? Here is a link to such that you can purchase new for $9.99 USD including shipping (warranteed): http://www.rakuten.com/prod/3-5-external-usb-2-0-portable-1-44mb-floppy-disk-drive-diskette-fdd/266887473.html

The vendor, Rakuten (formerly Buy.com) is a reliable vendor that I have used for most of my computer hardware add-on gear for many years. They have other similar devices at various prices, but most seem to be in the $10 to $15 range for an external USB floppy drive.

P.S. I may buy one myself since I would like to get some of my old R&D code off of floppies and all of my old systems that have floppies haven't been fired up for years. Who knows if they still run? I would first have to clean them out of the rodent nests or dust bunnies that likely inhabit them... :-) Ten bucks would be worth the investment.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You are not providing nearly enough information to help you. Saying "I have a problem - please fix it." is not productive. Tell us what your were doing when it stopped working, and what you did just before it stopped working, IN DETAIL.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You didn't perform a system image backup first, did you? This is the god of computing's lesson for you - NEVER mung with system disc formatting issues without doing a bit-image backup first to an external drive, so you can restore the system as it was if you or your tools mess it up...

My guess is that your system is FUBAR, and you will need to reinstall it. It may be possible to recover some of your data from the partitions with an external tool such as a Linux cd/dvd/usb drive, but that is not possible to say without physical access to your system.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Windows usually uses the entire disc, so even if you think your Windows system uses only 75GB of the disc, that is likely only the amount currently in use. Also, current Windows systems use the EFI boot format, and depending upon your SUSE version, it may be looking at the boot partition as a pre-EFI standard boot partition.

Myself, I would suggest using a virtual machine manager such as VirtualBox on your Windows host, and installing OpenSUSE in a virtual machine with that, eliminating this problem altogether. The only issues you would have with that is if you need to develop hardware drivers for SUSE, in which case I would recommend that you install OpenSUSE on an external drive and boot that when necessary. Dual boot systems, especially these days, is often much more trouble than they are worth.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Linux GUI's have a number of tools for assisting disabled persons (visually impaired, etc). There are definitely which will read back text as audio that you can use. I don't know offhand what they are, but as Hiroshe said, Google is your friend! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You could update to CentOS 7 to fix this, but I suspect that package won't work on CentOS 6.x.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It can be reconfigured from a router to a bridge, but as for the WiFi access point, not really. You can use it with an SSID that is different from the other one, connect them with an Ethernet cable, and then connect to either to get internet access. I do this at home, but use a powerline ethernet plug to connect them instead of an Ethernet cable.

That said, there may be firmware available for the device to do what you want, so you don't need to physically connect the two devices. I don't know about that however.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry. We don't do your homework for you. Create a program to solve this problem (it is a trivial one) and when you have issues with it, then post your code here for help.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The problem is that the CentOS 6.5 repository's version of glibc is 2.12. You might be able to build 2.15 from source and install it so that the application can run. Unfortunately, you will then probably run into other dependency issues. FWIW, if you are running steam and steam games on Linux, you probably want to run a more up-to-date distribution such as Fedora, Debian (and derivatives such as Ubuntu, Mint, et al), etc. They will have a newer glibc which will eliminate this issue.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Yes, I read it - irrelevant since it does eventually boot and you can use the external screen. Even though the main screen doesn't display during the boot process, the technique I described (crudely) should still work.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

steamcmd seems to want to write state data to /home/gmod and I assume that you are running steamcmd from your account. So, you probably need to be sure that you have the appropriate rwx permissions on /home/gmod. Also, since you are downloading/installing gmod at the same time, it is likely (possible) that the gmod installation has altered the permissions on /home/gmod, causing this problem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

PHP is a server-side language - it typically runs in the web (Apache, IIS, etc) or application (Tomcat, JBoss, etc) server. It can emit HTML, JavaScript, CSS blocks etc that are processed by the client. It is an object-oriented language with a lot of functional similarity to C++ (with enough differences to drive one nuts). It allows you to use object-oriented principals to design and build your web applications in a secure manner, and to debug them if you use it properly.

VB.net can be used to build web applications, but it is fundamentally a client-side application development tool, just using VB code instead of C#, etc. You can also use C# to build web apps, and MS has some nice tools that let you do that with either language. The only issue is that you are limiting yourself to a Microsoft environment, and that is not suitable (in my opinion) in today's world.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Reading the gcc man page is also a good idea. It's really long, but all the options are covered pretty well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is a lot of noise about systemd's faults all over the net. I've been in a discussion on the LinkedIn Linux Experts group about this very topic. Honestly, in many regards it is a hacked design for such a system-critical component (no formal methodology, modeling, verification, etc.) and many of us are of the opinion this is going to become a serious problem instead of the solution it purports to be. If I were Linus, I would be butting heads also!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok. Boot it up. Go to the computer menu, select options for the hard drive, go to tools, and set it up to do a full disc scan and repair. It will say that you will need to reboot since it cannot do that when it is online. When you reboot, it will scan and repair (if possible) the disc.

The only other option is to boot a live Linux CD/DVD/USB drive, install the ntfs file system tools, and then run fsck.ntfs on the ntfs partition of the hard drive. I have done that before. The only problem is if the drive is encrypted.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

https://www.virtualbox.org/
An IDE is a programming tool/environment such as Visual Studio, Eclipse, Code::Blocks, etc.
A virtual machine is an emulated computer that runs as a guest in your own system.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What operating system are you running?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Real time applications? As in deterministic, schedule-constrained applications?

Those questions aside (but need answers), the standard system shell (such as bash on Linux) should be a strictly interpreted language which can be deterministic (all other issues being equal). Other scripting languages such as perl, python, javascript, et al are what I would call semi-compiled languages with garbage collection (memory management) and such, and as such, they are not deterministic and able to guarantee meeting real-time deadlines.

Terminology in tech fields is critical. So again, what do YOU mean by "real time"?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please do NOT ask us to do your homework for you. You have to work at solving the assignment first - a good, honest effort. After that, we may decide to help you with your errors, provided we don't think you are trying to con us into giving you the answers.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As I recall, these are the names of the various releases of Eclipse. Get the latest stable release and you should be ok. I think they are in alphabetical order, so Luna should be the latest.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ivzirnalsradeys, you keep asking us to do your homework for you. If we do that, then what do you learn? Make a proper effort to solve the problems, show what you have done, describe the errors you are getting, and THEN we may decide to help you sort this stuff out. Until then, you are on your own!

Ivzirnalsradeys commented: i understand and sory +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As for the validation of February dates, this is a simple leap year calculation (easily found in Wikipedia):

boolean isleap(year)
{
    boolean leapyear = false;
    if (year is not divisible by 4) then (it is a common year)
    else
    if (year is not divisible by 100) then (it is a leap year)
    else
    if (year is not divisible by 400) then (it is a common year)
    else (it is a leap year)
    return leapyear;
}

This is a better algorithm than yours as it is generic and applicable to any year. Then, you just need to decide:

if (month == February)
{
    if ((isleap(year) and day <= 29) or (day <= 28)) then
    {
        date is ok
    }
    else
    {
        date is bogus
    }
}

Do note that this is pseudo-code, but easily translatable into either C or C++.

Ivzirnalsradeys commented: thanks +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How old is this system? Assuming these issues have appeared fairly recently, I can only assume that the system is starting to suffer hardware failure.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A Linux IDE for Windows? Do you mean an IDE that can run on Windows and Linux? Develop Linux apps on Windows? What?

As far as I'm concerned, the best common IDE for Windows and Linux is Eclipse. If you want a Linux-like environment for Windows, install Cygwin (you can run Eclipse there also). If you want a real Linux system running with Windows, then install a virtual machine manager such as VirtualBox and Linux in a virtual machine. Then, run Eclipse or some of the other Linux IDE's there.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As Nathan said, there is no standard way. The normal way we do this is to read one character at a time, and for each character we output one asterisk, flushing the output stream so it appears on the terminal/window immediately. It would be a loop with only about 3 lines of code to do. Write it and then put it into your personal toolbox to use when needed.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are the logs from a Linux system? What kind of data do they contain (you just need to provide a general description of what they are)? Are they consistently formatted (at least by type)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It would seem that way to me. Software engineering encompasses a lot of computer science principles, but not necessarily the other way around. It's like the difference between a mathemetician and an electrical engineer. The engineer needs a good grounding in math, but the mathemetician may know nothing about electrical engineering.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What Moschops said. In the first case, you would have some code like this (not suitable for class or production):

switch (selection)
{
    case 1: system(program1); break;
    case 2: system(program2); break;
    .
    .
    .
    default: fprintf(stderr, "Invalid selection made (%d)\n", selection);
    break;
}

This should give you an idea to continue with.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The thing about xml is that each tag doesn't have to be on a separate line - an entire file can be one line. You have to parse it directly. You can either do this yourself, or use a library such as xerxes. I have done it both ways. Generally, for really high speed or high volume needs, I roll my own parser and generic structures to model the xml found.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It looks like a unit test method that can be called by unit tests. If it cannot find the interface for database scripting, it will throw an exception, otherwise it will do something (not yet defined). In any case, the code is not what I'd call "professional quality" in that instead of an else {} it uses a test for not-null, after it already did a test for null of the interface object - extra unneeded code, and more prone to error.