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

Read Columns with Numpy

I have a file with lets say with the following X,Y,Z columns #file.csv X,Y,Z 1,2,3 4,2,5 15,9,1 # I am trying to use numpy to read column X and give me the average, standard deviation and other...

View Article


Loop uptime questions (Bash)

As of now I have two questions but I will have a few more questions once these two have been resolved. 1. First how can I make the script output like this 1 Machine 1 2 Machine 2 3 Machine 3 instead of...

View Article


snippet concerning circular lists

Hi. Can anyone explain me why do I need the following snippet in main: // ???? if(element == NULL) element = clist_next(clist_head(&list)); else element = clist_next(element); void...

View Article

I am having a trouble adding a loop or while loop to my program

I am currently in a intro java programming course at my college. My code works fine I am just trying to add a loop that will ask the user (y or n) if they would like to input another weight. The...

View Article

Semaphore's

hi, I've got a problem with that program. I wan't to make program which writes byte by byte to file, after written every sign is read and written to another file. How have i to organise semaphores? I...

View Article


About User Input in vb.net

I am trying to create an informationBox which should just work like Balloon Tip I want to hide the informationBox while user moves his mouse or presses any key on his keyboard How should I detect that...

View Article

Command Prompt

Hi all I am new to this site greetings. I have a query about HelloWorld basic startup in Java I have saved the code in a notepad file in my C drive and am trying to open it in command prompt. I open...

View Article

Command Prompt

Hi all I am new to this site greetings. I have a query about HelloWorld basic startup in Java I have saved the code in a notepad file in my C drive and am trying to open it in command prompt. I open...

View Article


JOptionPane password

Could someone show me an example how to create a JOptionPane password?i have searched around but i didnt found something evaluated.

View Article


Image may be NSFW.
Clik here to view.

TicTacToe

//class public class TicTacToe { private String [][] board; private static final int ROWS=3; private static final int COLUMNS = 3; public TicTacToe() { board = new String[ROWS][COLUMNS]; //write code...

View Article

serialio How to close port?

Hello Guys and gals, I am trying to use the Java Serialio created by Eker676. I have down loaded the Serialio library and used the supplied code. Everything works as expected.... but how do you close...

View Article

Process.Start not working within if statement

Hi guys I have an if statement that doesn't seem to work when i put a point break and went through step by step the code works but if I just run it only the first process.start is run if (Copy1 != "")...

View Article

Image may be NSFW.
Clik here to view.

JPasswordField not working

What im doing work bt1.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent ae) { char[] input = password.getPassword(); char[] correctPass = {'H','I'}; if(input...

View Article


Calling Class Error

Not really an error and yet an error. It doesn't seem to "break" anything or halt the program, but it appeared shortly after the defining of my UI class and prompts as soon as the program is executed....

View Article

Love2D, Lua, No clue whats wrong with my game's code!

okay so i have been trying to create a simple turn based combat system for use in a,hopefully , larger project. Mainly what i have been having issues with is adding the AI system to the game. code...

View Article


Image may be NSFW.
Clik here to view.

Display Date From Array Indexes

Hi Everyone. I have an array as displayed: Dim Date_Array(30, 11, 9998) As Integer What i want to do is display the date dependent on the index position displayed... for example: Displaying information...

View Article

Image may be NSFW.
Clik here to view.

What's the new standard library(s) for making multiplayer games

I am after learning Directx11 and was wondering how multiplayer games were made using it. I know DirectPlay was depreciated a long time ago and now I'm unsure whether I should learn WinSoc or use XNA...

View Article


Question about Cash Register change in change?

So, the point of this assignment is to get the change for the customer in the exact quarters, dimes, nickels, and pennies. I have already calculated how to get the total change and everything. I feel...

View Article

Should I handle InputMismatches?

My teacher and textbook say runtime exceptions should not be handled because they're usually bugs in our code that we should fix. But what if I'm parsing a String inputted from a user into an Integer...

View Article

Confused in changing timezone? Java experts guidance

Valid Time Zones are integers ranging from -12 to +12 (including 0) Be sure to add a method called getZone() to return the Time Zone as an integer. Also provide a setZone() method, even though the...

View Article
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>