Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live

make info show up in label from controls in windows form application

I am new to vb and to this forum so please let me know if you need more info I am trying to get the information a user enters in the controls such as masked text box (phone number) and some radio...

View Article


glob() not returning anything

Okay, so this works on my website: PHP: <?php $directory = "./images/featured/"; $images = glob($directory . "*.*"); ?> JS: var imgArr = <?= json_encode($images) ?>; then I put it in a...

View Article


How to update a array to track wins, loss, ties

i know how to make an array but i cant figure out how to update it to track the wins and losses of a game track_array = ["wins", "losses", "ties"] thats my array i cant think of the code to keep track...

View Article

Thumbnail/ Preview of document (.doc/ .pdf) getting uploaded jsp

I got a project of forms uploading for my college. Its my major project and the help I need is : We have to upload forms provided my college in .pdf or .doc format. I have module of uploading the forms...

View Article

card deck null pointer exception

OK. So I've been working on a project and cannot seem to get on why the code is giving me the following error message: "Exception in thread "main" java.lang.NullPointerException at...

View Article


why does this while run the way it does?

int main() { string previous = " "; string current; while (cin>>current) { if(previous==current) cout << "repeated word: " << current << ".\n"; previous=current; } return 0; }...

View Article

Image may be NSFW.
Clik here to view.

[SOLVED] Linker Error When Initializing Winsock

Hi, I'm trying to write a small program to fetch a .txt file from a URL. I know that there are easier ways to do it than messing around with sockets, but I want to take the opportunity to learn. I'm...

View Article

Hallmark Problem [Please help]

Howdy friends; I have another assignment that I could use some guidance on. Below I have provided the assignments, my questions, and my code so far. The Assignment: QuoteHallmark has asked you to...

View Article


Story on: how the EVE Online servers deal with a 3,000 person battle

http://penny-arcade.com/report/editorial-article/planning-for-war-how-the-eve-online-servers-deal-with-a-3000-person-battle An interesting read on how the Eve team deal with a 3000 person battle a few...

View Article


Focus Window

Hi again, i was thinking on how can i see wich window is focus? Like when open something, know the name of the window, where should i look for it?

View Article

Completion Table with PHP and MySQL

I need a table that lists challenges and then to the right lists "completed" or "uncompleted" Currently I have 3 tables. the first is Members, in this table I have Member_Names. my 2nd table is called...

View Article

Show/hide badge on a loop item based on input field contents

Sorry in advance for my crappy terminology. I'm not hip with the proper php lingo so please bear with me. So i have this php file called single-portfolio.php. In that file I have some code that makes...

View Article

Image may be NSFW.
Clik here to view.

Homework help: Parse Apache log files

Hi I'm new to java and I have an assignment that I just cant figure out how to begin for the life of me and its due in 2 days. Can someone please help me write the code for the following? Write a small...

View Article


help refactor some code

hi, I was wondering if someone can help me refactor this code further if possible. this is a method which takes a reservation collection holding reservations of updated data. the method then intends to...

View Article

help refactor some code

hi, I was wondering if someone can help me refactor this code further if possible. this is a method which takes a reservation collection holding reservations of updated data. the method then intends to...

View Article


wrong in if C#

double pris, skatt; Console.Write("Skriv in hur mycket du tjänar: "); pris = double.Parse(Console.ReadLine()); if (10000<50000) { skatt = 0.5; Console.WriteLine("\nDin skatt är " + pris * skatt); }...

View Article

Optimizing query

So I was asked to change a query and optimize it as it was calling all columns of a table that was huge. I submitted this code: SELECT COUNT(TVCPMF) FROM TVCLIB.TVCAGTP WHERE TVAGTP = ? AND TVCPMF IN...

View Article


Array structure and text boxes

Hello, I am brand new to Visual Basic. I have an assignment where I have to create a project that will allow a user to look up a country by its 2 letter abbreviation. The user will have the options to...

View Article

Game programming after computer engineering help!

Hi guys. I am about to finish Computer Engeenering college, but I want to be a game programmer. I will finish my 3rd year of college as computer engeener and I want to know if I am to late to study...

View Article

Calling Class Error: The Sequel

Wasn't sure if to continue with the old thread since it's vaguely similar in terms of what the problem is; unlike my last problem where I had multiple classes within a single file, I've had to split my...

View Article
Browsing all 51036 articles
Browse latest View live