rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

ClamAV is free, open source, and quite good. There are other options out there as well, but commercial ones that will cost you some $$.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry CimmerianX, but this is a college, not a company system/network. Such lockdowns for colleges is just, in my opinion, stupid! Some firewall protections and such make sense. Limiting the applications students can use is counter-productive.

@Michael_35 - yes, a dual monitor KVM switch is pricey. I have one, so I know. You can deal with the keyboard/mouse issue by using a wireless (radio controlled) keyboard and mouse, but when you switch from one system to the other, you will have to move the transceiver to the other system. If you do have the KVM, then you can plug that dongle into the KVM and when you switch systems, it will automatically switch your keyboard and mouse to the active system. No free lunch here, I'm afraid! :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

When proprietary software is hacked, you are SOL in terms of fixing it since you do not have access to the source code. FOSS is not such, and since you can access the source code, you can analyze and fix it as necessary. So, in relative terms, Open Source software is MUCH more secure than proprietary code. I do not run proprietary code any longer. No malware on my Linux systems!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You missed Libre Office for office applications (word processing, spreadsheets, etc) which is available for the Mac - and free/open source as well!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you know what an MVC is? That is an acronym for Model-View-Controller API. Understand that first, then look at the various API's that implement it, such as Spring, et al.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

When does Easter Sunday occur?

Easter celebrates the resurrection of Jesus Christ. The day of Easter falls on a Sunday based on the lunisolar calendar, not a fixed date on the Gregorian or Julian calendar. It has been determined to fall on the Sunday after the full moon that occurs on or closest to March 21.

So, you need to determine when the full moon occures on or closest to March 21 for each year and then determine date that the following sunday occurs after that... :-) Have fun!

P.S. I was going to suggest using a Julian calender computation, but given this, that would not work! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can use the open source ffmpeg tool to convert any video stream to just about any other. In this case, if she wants it on her iPhone, then convert it to a .mov format, or mp4.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Windows systems since version 7 have not played nice with virtual machines, especially VirtualBox. Why? I think it is because they want to write data, such as the system ID, to the system BIOS Flash memory chip, which is not avilable on most virtual machines. This is one of the reasons why I no longer run ANY Microsoft operating systems, even in virtual machines! The last I could run without problems in a Linux VM was XP... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming that the new power supply provides at least the same current rating and voltage of the old one, and has a compatible connector, then you should be ok. You definitely DO NOT want to use it if the current rating is lower than the old power supply, otherwise you are in danger of burning out the electronics of the CD/DVD burner.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, the PC is not a laptop/portable unit? It started acting like this after a big rain storm? Is this correct?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Use a map, based upon the Name field. If the Name field is not unique, then use a multimap.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to provide the context and code where you call NSUndoManager(). In any case, that error should point you in the right direction to fix this.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, I don't mean to say that it will take you 15+ years to become a professional game developer. Just it will take that long to become one of the best. At the least, however, it will take you 4 or 5 years to learn enough to become employable in the industry. Equivalent to a BS degree. I have plenty of friends who did that, and went on to become top developers in that, or in many cases, other fields. Game programming and game theory expertise opens a lot of doors for the software engineer.

There are exceptions, but they are rare, geniuses that intuitively understand the domain. The fact that you asked the question(s) you did tell me you are not one of those. My grandson is. I am not. I am a top software engineer, but it took me a good 10 years to get "my chops" so to speak. My grandson makes me look like a doofus, and he is just 21 now. He was doing stuff I could only imagine when he was 8 or 10. This is a guy that builds his own CNC machines so he can mod his motorcycle... He then fixes bugs in some of the components he has to purchase, and sells the fixes for those back to the manufacturer. :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That and two weeks I can make you an astrophysicist. Get real! This is not simple stuff, "give me all related things to the game developement"! Study, experiment, study some more, experiment some more, ...

And to become an astrophysicist you need 4 years for a BS, 2 more for an MS, and up to 6+ years for a PhD. My father was one, so I understand a bit of that. My wife is a particle physicist. After her BS, it took her 6 years to get her PhD at a top university, then another 10 years of post doctoral research before she got a permanent position on staff at a top international research laboratory.

To become a top game developer, it will take a similar amount of time. Don't give up. Just don't be impatient, and make small steps at first until you understand what you are doing. There is a lot of sources on the internet to help you, but until you actually start writing games and understanding the subtleties of the subject, anything else is just simple B.S.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Fastest way is for the factory to create maps of class names and ids to constructors for each. If you know the id (an integer of some sort - either 32 or 64 bit), then you don't have to interpret the string.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Unfortunately, Windows hasn't always handled buffering of large amounts of data when reading/writing to external drives very well. You don't mention which verion of Windows you are using, but I would guess XP? Linux? Never had such a problem (I regularly read/write/copy/move 100's of gigabytes of data without issue). Windows? Not so lucky. This isn't a screed against Windows (ok - it is), but this is not an unknown problem. As rproffitt said, at least (as you said) you did a copy/paste, so the original data should be there. There may be a problem with data that had previously been stored on the USB drive. You should be able to run the Windows disc recovery tools to fix that, though you might lose some data.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

No terminating semicolon?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

To continue on Moschops post, the only way to return multiple values from a function is to put them in a structure or object, and then return that. This will require modifying the signature of the function accordingly.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think you posted this question previously. What responses did you get?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please do not double-post your questions. See my response on your other one and then delete this post.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is where your interests and imagination come into play. We can't tell you what to do, but we can advise you in regard to your choices. Hot buttons these days are web and mobile applications. Both big data and security are hot topics. Do some research on your areas of greatest interest to see what seems to be the best fit for you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

for (int i = 0; i < terminatorvalue; i++) { do some stuff }
while (somevalue < terminatorvalue) { do some stuff }
do { some stuff } while (somevalue < terminatorvalue);

These are examples of C/C++ looping constructs. Alter to your needs. Then post your code for your class problems. Until you make a reasonable attempt to solve them, this is as much help as you will get here.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are you the creator/owner of the document? Are you having problems starting Word, or is it accessing the contents of a document? Have you tried Libre Office?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, I think that line 8 should just be system.out.println(c);
The compiler will probably complain about the (sum c)-> - it is non-terminated (no semicolon) and there isn't some value or method that the "pointer-to" operator references.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@pritaeas - The codez? I think they are on a disc around here, somewhere... :-)

FWIW, the code now belongs to Applied Materials, the 800lb gorilla of semiconductor manufacturing equipment and software.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is a case for a do ... while construct. Try this:

    #include <stdio.h>
    int main()
    {
      int n,count=0;
      do
      {
          printf("Enter an integer: ");
          scanf("%d", &n);
          if (n != 0)
          {
              n/=10;             /* n=n/10 */
              ++count;
          }
      }
      while (n != 0);
      printf("Number of digits: %d",count);
    }

I also think this is not doing what you want, but it may help.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, study AI for about 4 years at a college level. Next, learn CLIPS because an inference engine needs a rule engine to work. While you are doing that, learn to program in LISP and Prolog which are the two major AI programming languages. I have a nice shelf of books that are standards in the domain... FWIW, I wrote a rule engine in C++ about 15 years ago that is used to help run semiconductor manufacturing plants. It is extensively used in most 300mm semiconductor fabs in the world today.

pritaeas commented: Great! Now gimme the codez ;) +14
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Contact MS or the hardware vendor to see if you can get a copy of the key. The vendor may be the better bet since you can give them the serial number of the machine and they should (maybe, if you are lucky) be able to look it up in their database. That said, stick with Windows 7. It is more secure and reliable.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As has been said numerous times before, we DO NOT do your homework for you! Make an effort to write the code, post it here, and we will consider helping you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

We don't do your homework for you. Your examples of $c_start are possible return values from C functions. Diff compares two files and outputs the differences between them. What EXACTLY are you trying to do? You say "extract C functions from diff output" basically. Show examples of what you are dealing with, PRECISELY!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you. Turbo-C is irrevalent here. Try to solve the problem, write the code, and when you are still having problems, post the code here. At that point, we may help you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. We don't do your homework for you.
  2. English is the preferred language for this site.
  3. If this is Vietnamese or a similar south-east asian language, not many of us can read it. See #2.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

These days, malware can hide in the BIOS flash area, or in disc drive flash memory. They are almost impossible to detect, and remove. The NSA uses these techniques, and they are the most sophisticated "hackers" in the world. If you keep getting infected on reboot, first try erasing/resetting your BIOS flash memory (this may require shorting out physical contacts on your motherboard). If that doesn't work, do that again, and replace your disc drive(s). I don't know of a way to remove malware from a disc drive flash cache. If anyone knows how to do that, I would love to hear about it!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Go back, and read the book! In any case, I don't see where you have implemented f1D1 or f1D2, etc. Also, D1 is bogus since the argument 'a' is not defined as type and it isn't used in the function, and further b and c that are used there are not really declared/defined anywhere. you may think so with the D1.c declaration, but it is not valid. As I said, go back to the text and study some more...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, please DO NOT post multiple copies of your issue. That is just bad and improper etiquete...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Send it back as defective and insist on a new system. And whatever you do, DO NOT accept a "refurbished" system. You should get a brand new, unused system instead. Insist on that. Also, don't let your brother NEAR to the new system!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Read each line separately (see man page for getline), and then process the contents of the string read for the line. You really do not want to use fscanf() for this purpose. After you have read the line into a string buffer, you can sscanf() instead to read the contents of that line.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Watch the movie Idiocracy...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not really. WiFi is a radio link. You can connect your PC's ethernet port to a WiFi router, and that can then be accessed via wifi-enabled devices, but you still only have one WiFi access point. 2 points == 2 devices, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The file /etc/php.ini should be owned by root, and only root has access to it. If the permissions are not -rw-r----- then it is not correctly configured in the file system. IE, if correctly configured, users should not be able to alter the file and give themselves additional permissions other than what are allowed.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You would most likely need to use assembly language to do this, but if you want to perform meaningful I/O, then you still need OS or BIOS support. IE, you might be able to invoke BIOS interrupts to do things like read/write bits to various I/O ports. This is what the OS does for you, since it is a LOT of work to do yourself. Read the Linux system source code, or for something a bit simpler, Minix (what Linus used to learn OS coding). There are a number of good books on the subject (none particularly inexpensive), and some may be available free on the internet. Time for you to do some Google searching I think.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, all ethernet interface ports (NIC - Network Interface Controller) have a MAC address. They don't need an IP address since they are only handling traffic at the transmission layer. As I mentioned above, it is the firmware (usually an FPGA or similar device) that deals with where (what MACs) the incoming/outgoing packets are going to be directed to.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I'll respond when I have a minute. Right now I have to take my car in to be serviced after a long cross country drive last week.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

In theory you can't, but the terms of service for this web site indicate that even if I knew how, I couldn't tell you anyway. Please search the web for this information.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The cost per gallon is an integer, so decimals won't work for any integer value where you need to input a fractional value. Use doubles for those as well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

PHP is an object-oriented langauge. Use it that way! See my tutorial post about that. It will make your life much simpler, with a little forethought and setup.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What do you mean by a "result card"?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Can you tolerate lost data? If so, then you should use rsyslog to a networked stream. If not, log to a local file and have a daemon that uses inotify to learn when the log is updated, and that can stream the data to a remote system. From your code, I assume you are running a Linux/Unix system. If Windows, then all bets are off!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A pointer to member function still has to be invoked with an object of the appropriate type. You might be able to declare the pointer like this: void (A.*ptr)(void); A.ptr = a.show; but I'm not 100% certain of that. In any case, this would be, IMHO, really crappy code. It violates the KISS principal in so many ways!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are some excellent Linux systems for business desktops and laptops, many of which are based upon the Debian system. I'll mention some in a moment. As for office automation tools (word processing, slide shows and presentations, spreadsheets, etc) there is Libre Office, an advanced fork of Open Office. For web browsing, there are Chrome, Firefox, Opera, and a number of clones of Firefox, etc. There are excellent audio/video tools for playback as well as audio/video editing, or format conversion. There are also CD/DVD authoring tools, and many other things, most all of which are FOSS (Free and Open Source).

Debian-based distributions you may want to check out:

  1. Point Linux: pointlinux.org
  2. Linux Mint: linuxmint.com
  3. Ubuntu: ubuntu.com

Have fun!