rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can setup routes on your computer, either windows or Linux, so the computer can access other systems. Essentially, you are turning your computer into a router.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are several package management tools for Debian - based systems, most of which are based upon aptitude. There's the synaptic GUI tool and the command line tool apt-get. As a new user, you are best off using Synaptic.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Linux usb modems are a species of serial modem. You need to use the network management tool to configure it properly, as a PPP device.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are many good articles on the net, including Wikipedia, that will explain these concepts to you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

All of the ram will run at the full speed.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can use sudo to do this, as in "sudo userid tar -zxvf filename.tgz".

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I don't understand the question. What exactly do you want?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

One could always compute the size of temp[] and temp1[] at runtime, malloc() the arrays, and then use memset() to initialize them, resulting in a pretty much infinite triangle size. Of course, you still need to be sure that the initial array sizes are odd, otherwise you miss the pointy bit at the end. Aren't "edge" cases fun! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Why do you have 3 main() functions here? Are you trying to show various approaches you have attempted? If so, then break them into separate code blocks, or postings to this thread. Thanks.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think your problem is here:

for (int i = 0; i < messageList.Length; i ++)
{
    if (messageUserList[i].Contains("_0"))
    {
        .
        .
        .
    }
}

You probably need to set the guard barrier i < messageList.Length to i <= messageListPos. You have initialized the strings in messageList and messageUserList up to the value of messageUserPos, but everything beyond that is not initialized. The messageList.Length I believe would contain the number of slots in the list, which is the size of 16-bit integer - about 32000 items.

That said, before you start your loops you could first set every slot in messageList and messageUserList to an empty string. It will make your code slower because each iteration through the outer loop will require a full iteration in the inner loop, looking for the "_0" string. So, my advice is to rethink your nesting of these operations to determine if there is a more efficient way to accomplish your purposes.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Start by describing what entities you need (classes such as Student, Professor, Subject, Schedule, etc) to deal with, and how they interact (methods such as subjectTaughtBy(const Subject*, const Professor*);). An object-oriented approach to C programming can help a great deal, even if you don't have classes per se. It helps you partition the problem into data domains and their interactions.

All that aside, we don't do your homework for you. :-) Make an honest effort and we will help you sort out your errors and pitfalls.

FWIW, structures in C are the analogue of classes in C++ and Java. Unfortunately, you cannot embed methods, constructors, and such in them. They are just plain-old-data (POD), with member variables that are equivalent to C++ class member variables.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you verified that both the basic lapack and blas packages have been properly installed? Look in /usr/lib for the appropriate libraries, or download and install them directly.

In any case, lapack and lapack++ are system performance testing tools, primarily to scope the math processing capabilities of a system. Is that what you are trying to do?

Also, libraries in /usr/local/lib will not be seen by default. There are other ./configure options that will find them there. In addition, you may need to set the configuration to use static libraries instead of the default shared libraries (such as libblas.so, etc). Execute the command ./configure --help for a full lising of the options.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I read this in SlashDot or similar blogs the other day. So, when your e-smoking friend complains about headaches, just say it is the NSA or GCHQ scanning his memory! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

All of my monitors are now LCD monitors. The backing light can be fluorescent (older tech - more common) or LED (newer, becoming much more mainstream). So, what did you mean by LED monitors? FWIW, LED backing lights are much more efficient and long-lasting, in theory at least.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Walk through the directory structure, looking for files that match the name you input, or that contain data that matches. You can use the grep command (Unix/Linux) to do that. In fact, Linux and Unix have a very neat command line tool called "find" that can handle that very well. I use it for such purposes all the time.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You could write a bash script to start it up on login (calling the script from ~/.bash_profile which is run when you login) to the system where it could ask for the password required. Anything else, keeping it in the script file for example, would not be safe as noted above.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Apparently the lapack++ configuration tool thinks not. Remember, to install from source, the sub-packages need to have their developer modules (headers) installed as well. Even if you have blas/lapack installed, you probably don't have the headers needed, which is what configure is looking for.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are you sure you have compatible versions of Blas and Lapack installed? Also, what is the output of ../configure when you run it in the extracted directory for lapack++?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ah! A personal education project? Been there - done that! Post your work here and I'll at least be happy to comment. Remember, every operating system differs, depending upon their low-level GUI tool set. Linux/Unix == X-Windows/Xorg, Windows == whatever, QNX == Neutrino and/or Xorg. If you want to get lower into the process stack, then you will be writing a lot of assembler code to control the specific video devices used as well. IE, don't try to write the entire stack. Work with what is provided as a foundation.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What NathanOliver said, plus we aren't here to help you cheat on your homework assignments. Make an honest effort to solve the problem, post your work here, and we will make appropriate comments.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

GUI toolkits are VERY complex. Moschops has identified many of the issues you face. My advice is to study other GUI toolkits, such as Qt, WxWin, etc for some perspective on the issues involved. Also, how many years do you have to spend on this project? :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are too many fundamental errors in your code to begin commenting on it. You have stuff in your .cpp files that should be in the headers. You are using constructors with values that are not visible in their scope. You are initializing class member variables inside constructor bodies when they should be in the constructor initialization block before the body executes. I could go on. Make another attempt and I'll comment as appropriate.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. Learn to write code in C++ (not a trivial exercise).
  2. Learn some C++ game API's that will make your work easier (not a trivial exercise either).
  3. Design and model your game (what, where, how).
  4. Implement it in the API of choice.

FWIW, NathanOliver's post was spot on.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Huh? Please be more expressive of what you are trying to do, and the systems you are trying to do it on.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The address of 'x' won't change. The value of ptr may. First, ptr is assigned the address of x, then it is changed to '200'. IE, the results of the output values of 'x' and 'ptr' will differ. However, some systems will generate a core dump (segfault) when accessing the value of 'ptr' because it may point to protected memory - caveate programmer!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Nutster is a newbie poster here, but is giving a lot of very good advice from what I have read so far. I am giving her/him a big thumbs-up.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What Nutster said. I assume you mean a Nokia cell phone? They already have an RTC. Nokia phones use HTML and JavaScript for application development. Have you visited the Nokia/Microsoft web site(s) to get information about application development on their mobile systems? In any case, you want to utilize the "approved" API's to build software that you can install on these systems. "Jailbreaking" them is not a good idea for standard development purposes.

Also, FWIW, I was a senior engineer at Nokia Mobile Phones for 2 1/2 years.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What Nutster said. I assume you mean a Nokia cell phone? They already have an RTC. Nokia phones use HTML and JavaScript for application development. Have you visited the Nokia/Microsoft web site(s) to get information about application development on their mobile systems?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have used Lex and Yacc and hate them! Part of the problem is that writing parsing rules is not trivial, and the other part is that they generate in-line code that cannot be easily modified - any changes are wiped out the next time you generate the code. My preference, after having written a number of parsers over the years, is to utilize an optimizing finite-state-machine that can use a text-based description of the event-state transitions to build a parser. Once the basic functions are defined, you can just adjust the description to change the behavior of the state machine - no recompilation required. I have used this to build display processors, ftp and other TCP/IP protocols, and others. I have found that this approach is better, faster, and more efficient than the Lex+Yacc approach.

That said, this approach is not without a lot of up-front work, but downstream, it provides a lot of leverage. The first thing is that you REALLY need to understand how finite-state-machines work.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This may be a keyboard connectivity issue. Is it USB, or other? Have you tried to install CentOS 6.x? Does it behave similarly? CentOS 7.x is very new, so there may be some hardware issues that the team needs to know about. If 6.x installs OK, then report this to the CentOS user forums.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I would suspect a problem with your HDMI gear. If your system is JUST out of warranty, bitch loudly to Toshiba. They will probably fix it gratis in order to keep a customer. Threaten them that you will NEVER purchase another Toshiba device if they don't fix it...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Solved, maybe, but a good discussion nonetheless. :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, Windows and its applications are still the 800lb gorilla target of malware writers (viewing all the credit card hacks recently at Target, Home Depot, et al that infected Windows cashier terminals), though Mac OSX is getting more attention these days. I personally believe that Linux is still the most secure OS, especially if you keep it properly updated and if you don't allow root logins and require a password for sudo operations by trusted users (needed to install new software, run system management tools, etc). Part of the problem with Windows and Mac is that the default user is usually set up on installation to have system management permissions, which is a MAJOR system vulnerability. If the default user doesn't have admin capabilities by default, most of these hacks would not work, at least without some additional assistance by the user.

ddanbe commented: Good tip! +15
Stuugie commented: Great points. +6
hefaz commented: Thanks alot for the topic +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Yes? And what errors are you getting? Compiler errors, or runtime errors? Show the output. Asking us to analyze 167 lines of beginner code is asking a bit much...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you. I assume you have some C coding text books? There is also plenty of tutorial stuff on the internet for this. In any case, first writing out the processes and procedures you program will implement (pseudo code) is a good first step to take. It will help you determine what you will need to do when you get to the coding phase. Remember the axiom - 90% modeling/design + 10% coding == functional software.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Go to the Adobe web site and download and install it manually. BTW, what browser are you using?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What make/model of phone do you have? Current Android phones (I have several) have a flashing light at the top of the phone that is an indicator of your battery life remaining. Blue and green are good. Orange and red indicate you need to charge the device.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You don't provide enough information. Did you do a full GUI install, or just a command-line server install? Do you get to a login screen or window? If so, after the first part of the installation and it boots for the first time, it should ask for a user ID and password. Did you get that? Also, when installed, it should have asked for a root user password. Did you set that?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Linux? :-) Sorry, but assuming this is a valid Windows 7 system installation disc purchased from Microsoft or HP, you will have to contact either Microsoft or HP support. You will probably have to pay for Microsoft support... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You may be able to recover it, but most likely not without a lot of effort. Search the web for Mac data recovery software. There are tools for Windows and Linux as well. In the deep, dark past, I have had to personally resort to physically searching disc sectors for the data lost, and then copy that back to an offline drive sector by sector, such as a thumb drive - DO NOT copy anything back to the system drive or you will likely make the situation worse!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You aren't providing enough information. Does the system boot up ok? If not, do you get some indication that the BIOS is starting the system? Is your system using an older BIOS or one of the newer UEFI chip sets? What happens if you hold down a key (such as ESC or one of the function keys) during boot?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How old is it? What version of Windows? Have you contacted the support people at Acer's web site?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You will either need to purchase a new Windows 7 installation disc (with new key) from Microsoft, or get one from HP. Getting one from HP for your specific system will probably be better as it will contain all the drivers you need for the HP hardware cruft that your system has. Alternatively, you can get and install Linux (free) on a new disc and access what is left of your data on the old hard drive. An external esata/usb carrier that you can plug your old drive into for data recovery purposes after replacing the system drive will cost you $25-$50 USD.

Myself, I would go the Linux route as it has replacement tools for most MS stuff (LibreOffice vs. MS Office, etc), as well as much better system monitoring tools. The biggest issue is WiFi device support. You should be able to deal with that at the wireless.kernel.org web site. The site used to be a private open-source project, but is now sponsored and managed by kernel.org, part of The Linux Foundation I believe. As a result, it is much more up-to-date with drivers for various devices and Linux versions. I have found it invaluable for a number of years to get my Linux laptops to work with the built-in WiFi hardware nicely.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Can you boot into the BIOS? If so, most have a verbose setting that will show you all of the POST (Power-On Self Test) output. That is the system doing a sanity check of the things you noted in your post. If they all check out and the system still won't boot, then you probably have a system disc problem. If you can't boot to the BIOS, then likely there is a CPU or motherboard problem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Time to upgrade to Windows 7 or later perhaps?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If the socket fits, it is probably compatible.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The disk read error at the bottom of you lising would indicate that the drive is starting to fail. You likely need to replace it asap, reinstall Windows on the new drive, and copy your data files to the new disk.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It is a matter of operator precidence. Multiplication and division are of equal precidence, as are addition and subtraction. Multiplication and division have higher precidence than addition or subtraction. Therefore, you must put the desired expressions inside parentheses. IE: (2*5/6+3-8*3/2) would be likely equivalent to ((2*5)/6)+3-((8*3)/2). Is this your intention? Other possibilities could be (2*(5/6))+((3-8)*(3/2)). There are other permutations that could be applied, and in most cases the results are very different.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need an outer loop before the while (x == false) loop and after the end of the while (x == true) loop. IE:

while (true)
{
    while (x == false)
    {
    }
    if (conditions)
    {
        x = true;
    }
    while (x == true)
    {
        if (a == b)
        {
            //....
        }
        else
        {
            x = false;
        }
    }
}

You do need to determine if this outer loop needs another terminating condition. IE, this is a "forever" loop.