-
Replied To a Post in How to count the number of days from January 1, 0000 to any given date
The simplest way is to convert the dates to Julian dates (days since start of "time"), and subtract one from the other. Bingo, done... Wikipedia has some good articles about … -
Replied To a Post in getting Centos VM box online
This should not be a problem at all with VBox. How have you configured the virtual network adapter for your VM? Is it nat'd or bridged? If bridged, are you … -
Replied To a Post in please suggest a good freeware firewall for windows
I never advise a software firewall, but a hardware one. Most personal LAN routers provide this service quite reasonably. Set your computers to use DHCP, or a local static IP … -
Replied To a Post in slow internet speed in network
So you have 100 users. What is your internet connection speed? If 100 users are hitting the internet pretty constantly, divide that speed by 100 and you will get what … -
Replied To a Post in Where Should BSA's Post?
I think this is as good of a forum as any for that. If we think your posts are off-topic, we'll let you know. -
Replied To a Post in null pointer error
A major part of the problem why we can't help you is this: if (user.likes.get(e).equals(Stranger.likes.get(e))) { if ((Stranger.howDoYouLike(likes.get(e)))== 1 && user.howDoYouLike(likes.get(e))==1) { numOfCommonLikes=numOfCommonLikes+1; } } else if (user.dislikes.get(e).equals(Stranger.dislikes.get(e))) { if … -
Gave Reputation to JasonHippy in How to delete a word using the vi editor in last-line command mode
Rubbermans suggestion is the best one for last line mode. But in command mode there are several methods of removing text other than using x. Assuming the cursor is placed … -
Gave Reputation to pzuurveen in how to solve this error
$id =$_POST['user_id']; -
Replied To a Post in installing CentOS on Oracle VM
JorgeM pretty much hit this on the head. All the data in a VirtualBox VM are stored in system files. You do want to use the incremental expansion option for … -
Gave Reputation to phorce in c++ static member
You have not declared the method prototype correctly in your class. static std::map<std::pair<u32, u32>, CreateSessInfo> m_mSessionId2CCRNum2DefaultBearerId; Shoudl be: static std::map<std::pair<u32, u32>, CreateSessInfo> m_mSessionId2CCRNum2DefaultBearerId() { // Logic here return map; } … -
Replied To a Post in change prompt in ssh
There is a command escape sequence that you can use with bash to set your prompt. Read the bash man page for information on how to set this. The default … -
Replied To a Post in Network connection fall down suddenly!
Please provide more information. Does it work when you first boot the computer and attach the modem? If so, how long before it stops working? -
Replied To a Post in Blackberry USB Connection
Try leaving the Curve attached to the computer. Shut the computer off (cold shutdown - not a restart). Then reboot the computer and see if the device is detected. Note … -
Replied To a Post in IP Hack
If your relative got your system infected with malware then you will need at the least to do a factory reset. Unfortunately, that will mean losing all your data on … -
Replied To a Post in Cusor confined within VM, arghh !
As pointed out by the other posters here, most VM managers have tools that you can install to deal with this cursor "stickyness". With VirtualBox it is the "guest additions" … -
Replied To a Post in How to delete a word using the vi editor in last-line command mode
If you want to get rid of the "and" and leave the spaces, then do this: $s/ and/ / If you want to get rid of the "and" and the … -
Replied To a Post in VB to Android
Do you want to run this as a native mobile application, or as a web application? If native, then iOS and Android use very different programming languages. If web, then … -
Replied To a Post in class myArray
Let's start with this: cout << "Enter 5 integers: "; for (i = 0; i <= 10; i++) { cin >> i; } First, you loop for 10, not 5 … -
Replied To a Post in why handle invalid with SetTimer()?
Did you initialize WindowMain to NULL when you created it? If not, then it contained arbitrary data from the stack and it would not be NULL in your test in … -
Replied To a Post in Round Robin Algorithm
Man, this is getting boring! How many times do we have to tell folks that we do NOT do your homework for you! Make an effort. Post your code (with … -
Replied To a Post in No signal when connect PC to LG 32CS410 (HDMI TV)
On my TV I have to select the port for display using the control pad. Some might auto-discover the ports connected, and others may not. -
Replied To a Post in biose update needed
Look on the Fujitsu web site for bios updates for this system. You might find what you need here: http://support.ts.fujitsu.com/Download/Index.asp This is a new system, just released this year as … -
Replied To a Post in biose update needed
Look on the Fujitsu web site for bios updates for this system. You might find what you need here: http://support.ts.fujitsu.com/Download/Index.asp -
Replied To a Post in blue screen problem in windows 7
Is this related to your reported HP notebook overheating problem? Again, we need more information. -
Replied To a Post in problem with my HP notebook (heating)
Sorry, but we need more details. By heating, I assume you mean overheating. And what do you mean by "when power goes off it starts struck..."? We can't provide solutions … -
Replied To a Post in internal fragmentation
What do you mean by "internal fragmentation"? Memory fragmentation? Disc fragmentation? Other? -
Replied To a Post in discusion
Actually, I have found that upon occasion (though not often) a do ... while() loop has advantages over a simple for(;;) or while() construct, just as the goto statement, while … -
Replied To a Post in How to Adjust to Coding Standards?
Yes, I've been there! In my opinion, less is more, and simpler is better. Good naming conventions are very useful, such as m_Varname for scalar member variables of a class, … -
Replied To a Post in Finding last name
My advice is to read the entire line - not just one word - and parse that. You can easily scan the string from right-to-left to get the last name, … -
Replied To a Post in Open Internal website from outside in vmware Bridge Network
Is this a VMware, or a VirtualBox VM? You say that the VM is using a bridged network. If so, then it should get its IP address from the local … -
Replied To a Post in Borland v.5.02 program window just flashes and disappears
After the cout (and add an `<< endl` to the line), you need to pause the problem. Usually this is done by taking some input, such as a line like … -
Replied To a Post in C programming,Taking an order to a customer
1. We don't do your homework for you (this is a repeat from my post on your other thread). 2. Show your work. If you don't make an effort, we … -
Replied To a Post in help on how to create a Menu of choices
1. We don't do your homework for you. 2. Why Turbo-C? It is so out-of-date that it probably won't work on most modern machines. -
Replied To a Post in How to install SDL, gcc, etc for Graphics
Why do you think SDL is dependent upon Code::Blocks? It is a development library with standard headers. Have you been to the SDL web site? Here is a link: http://libsdl.org/ -
Replied To a Post in Need Help with Writing a program
It's a start at least. Take the input. Print it out to verify what you got. This may be what the teacher of the class wants at this point. So … -
Replied To a Post in MIPS Assembly Help!!! atan2f Function
So, your 33 lines of C code generates 383 lines of assembler. And you expect us (most of us have day jobs) to analyze it? You set both ax and … -
Replied To a Post in i dont know how to answer this project
What ddanbe said. Start with the math. Then code. Then when you have some problems with the code, post it here and we may be able to help you sort … -
Replied To a Post in An Android Application
Really, the only significance between "pure" Java and Android is the virtual machine that runs the byte code the respective compilers generate. For Android, that is called Dalvik. Its compiler … -
Replied To a Post in learning C++ and python adivice
Python is a run-time compiled scripting language. C++ is a compiled machine-level language. With python, you can edit your source code and run/test it immediately. With C++, you have to … -
Replied To a Post in Insert system disk message on start up
And what happens when you press the "any key"? Is this a new problem with the system? Was it working ok before this started? Have you tried booting into the … -
Replied To a Post in Vista VM won't boot successfully ?
What virtual machine manager are you using? What is the host operating system? Did you verify the ISO or DVD that you used to install Vista - the disc checksum … -
Replied To a Post in How can I do both play music and move at same time.. ?
This is a case where you need to incorporate multiple threads - one to handle the character, and another to play the music. In a single thread, only one activity … -
Replied To a Post in How to make updateable program?
What do YOU mean by "an updateable program"? Any program you have the source code for can be updated. So, please clarify what you want to accomplish. -
Replied To a Post in Computer Science Degree Vs. Software Engineering Degree
Pick either and do your best! :-) @Mike2K - I spent a couple of months sitting in front of a computer in a huge hangar sized warehouse where the PC … -
Replied To a Post in PHP help
And that is just the start! :-) Remember, PHP is an object-oriented language. If you approach it that way (C++ for web sites), then you will do well. If not, … -
Replied To a Post in array
No. We don't do your homework for you. You do the work, post your code with errors when you are stuck. Then we may help. -
Replied To a Post in New data types encountered while developing linux kernel modules
These are "abstract" types that express certain types that are compatible with the architecture of the CPU you are running on. For example, size_t is the size of an unsigned … -
Replied To a Post in Computer Science Degree Vs. Software Engineering Degree
And don't be afraid of the math! In any case, formal logic is a subject you should take for either CS or SE. I took it in engineering school, and … -
Replied To a Post in Computer Science Degree Vs. Software Engineering Degree
I think that CS is more academically oriented, and SE is more application oriented. Science vs. Engineering. You can't have engineering without the science. :-) IE, it is not hard … -
Replied To a Post in weird thing on my network
Assuming that your modem provides a real ethernet connection/port, then it should be capable of use by any of the ports on your router. So, if the WAN port is …
The End.