199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sofia85

Hi, I have this data set consisting of some values for which I want to get the distribution for through random sampling. How would could I do that in Python. I'm new to Python and don't know where to start. Is there a python package that could do this, i.e. …

Member Avatar for Gribouillis
0
105
Member Avatar for kalookakoo

I'd really like to know the simplest way to implement music while people play the game I created, and for sounds to play during certain events. (such as dying)

Member Avatar for TrustyTony
0
196
Member Avatar for pro_learner

I have developed a Java GUI App.I want to connect that with mysql.I have already connected a seperate java file with mysql.That java class is also in the same package in my Netbeans project.I want to know is it possible connect DB by using that seperate java class?

Member Avatar for pro_learner
0
149
Member Avatar for carlbrooks

I have a dropdown menu and some buttons below in my HTML: [CODE]<p> <select name="numberDrop" id="numberDropId" onClick="getButtons()"> <option value=""></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> </p> <p> <input class="answerBtns" name="answerA" type="button" value="A" /> <input class="answerBtns" name="answerB" type="button" value="B" /> <input class="answerBtns" name="answerC" type="button" value="C" /> <input class="answerBtns" …

Member Avatar for urtrivedi
0
2K
Member Avatar for bwilson1

I have been working on my code today and have minimalized my errors. Sadly, I still have a few errors left I can't figure out how to solve. [code] 28 F:\Program6-Arrays2.8.cpp cannot convert `double' to `double*' for argument `1' to `double getInput(double*, int)' [/code] [code] #include<iostream> #include<cmath> #include<conio.h> #include<iomanip> //needed …

Member Avatar for MandrewP
0
122
Member Avatar for kavi4u

Hi , I am using the connection string as below in my c # .net .. i will give the connection string in all the forms and i will give con.open in the form load. is there any other shortest way is there to specify the connection at only once. …

Member Avatar for thines01
0
189
Member Avatar for Navlag

Hello all, I am building a small file system in c++ that builds a table in a file called test.txt from information on another file. I am trying to copy the information over and then access a specific part of it based on the date. The data is copied over …

Member Avatar for Navlag
0
269
Member Avatar for Srcee

Hi, I am a beginner (not a total beginner though) in C#. I am writing here because I want someone to give me advice on what to program in my free time in order to learn C# more. For example, I know how to zip/unzip files, read/write from xml files, …

Member Avatar for berniefitz
0
192
Member Avatar for puvi

Hi ppl... I have a piece of html code like this, to generate 10 radio button having values from 1 to 10. When the user selects a radio button, i want to print only that value. Any inputs on how i can achieve this is very much appreciated. [CODE] <!DOCTYPE …

Member Avatar for jmichae3
0
2K
Member Avatar for javabeg123

i have to create a Weight application that prompts the user for their gender (male or female) and their height and then determines their ideal body weight. The following formula is used to approximate ideal body weight: men: Ideal Body Weight (in kilograms) = 60+ 2.3 kg per inch over …

Member Avatar for IcantC
0
182
Member Avatar for AlexFG

Hello everyone, I'm taking a C++ class in college and the last assignment for the semester is to write a sub hunter game that's worth 25% of my grade so needless to say I have to do a very good job on it. The due date is in 9 days …

Member Avatar for AlexFG
0
203
Member Avatar for Arkinder

I am not exactly sure what information is relevant, so my apologies for any useless/redundant information. On my Mac (Snow Leopard 10.6.8) with xCode (gcc) compiled and run through the terminal the following works fine (ignore code and continue reading): [CODE]#include <istream> #include <string> #include <iostream> #include <fstream> enum Year …

Member Avatar for Arkinder
0
396
Member Avatar for badnack

hi at all, i'm wirting a program (a chat) to connect two process via socket using ssl connection. In order to make portable this chat i've written a single body formed by two threads, the first has a client behaviour (users can connect to other users) and the second thread …

Member Avatar for badnack
0
347
Member Avatar for superheroo

i want some help i have this progamm and i want to add points when a letter is found 10 points PLZ HELP ME! i also want to make it for two players Module Module1 Public zoes As Byte Sub Main () Dim un As String un = Console.ReadLine() Dim …

Member Avatar for KingGold171
0
388
Member Avatar for ananth3125

in the below coding the files selected in the dialog box are dispalyed in the list-box, but while selecting the format i need to display only the selected format files to be displayed , how to modify the coding to keep like that. [CODE]Imports System.IO Public Class Form1 Dim fdlg …

Member Avatar for chriswelborn
0
126
Member Avatar for UNDER-18 FG

Hey guys, I wrote a program and this 2 lines came up with the same error declaration: [ICODE]Scanf("((%d/%d)*%d)", &Mark1, 40, 100; Printf("Average of marks is: %.3f", Avg);[/ICODE] Both these lines came up with these error comments below: Line 1: Function "Scanf" should have a prototype. Line 2: Function "Printf" should …

Member Avatar for UNDER-18 FG
0
155
Member Avatar for pelin

The question is ask the user for 20 numbers one at a time, saves the numbers in list, and then printsa 2 column table with each number in the list entered in the first column and its square root in the second column. Each column should be 6 characters wide …

Member Avatar for pelin
0
125
Member Avatar for Morten Brendefu

Dear enlighted ones. I happen to try to finsh a kind of a function library that my Main program can utilize. As of now, Everything work great... but. I would like to implement some kind of error handling. The way I do this also work, but the error is generated …

Member Avatar for Morten Brendefu
0
588
Member Avatar for ibpet11

Good day, 1. Do anybody has already done code for image processing application in VB.net? in a case of none, how can I process image for (saturation, intensity, brightness, hue, darkness e.t.c) 2. What code can I pass for a button so that when I click it, PictureBox will show …

Member Avatar for Unhnd_Exception
0
412
Member Avatar for beforetheyknew

Hi guys, Question 1. I'm a pretty rubbish coder, haven't really done much of it in the couple of years since my degree, at work they've recently expressed an interest in getting me back into it. My problem is that i feel as though I've been taught the syntax (which …

Member Avatar for beforetheyknew
0
106
Member Avatar for calebcook

I am trying to create a licensing system where you have a license key as a variable in a file. Then, it includes a file that's on an external server. The server then does all the validating, and returns whether the key is valid or not. The problem is, an …

Member Avatar for moneeshot
0
190
Member Avatar for sumit sam

<asp:GridView ID="lvMainModule" GridLines="None" CssClass="gridviewShow" AutoGenerateColumns="false" DataKeyNames="LinkMasterId" OnRowDataBound="lvMainModule_ItemDataBound" runat="server"> <Columns> <asp:TemplateField> <ItemTemplate> <asp:Label ID="ModuleNameLabel" runat="server" Font-Bold="true" Text='<%# Eval("LinkMasterType") %>' /> <asp:Label ID="LinkMasterId" runat="server" Visible="false" Text='<%# Eval("LinkMasterId") %>' /> <br /> <br /> <asp:GridView ID="lvSubModule" GridLines="None" OnRowEditing ="lvSubModule_RowEditing" CssClass="gridviewShow" AutoGenerateColumns="false" ShowHeader="false" DataKeyNames="Id" runat="server"> <Columns> <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" /> <asp:TemplateField> <ItemTemplate> <asp:HyperLink name='<%# …

Member Avatar for |-|x
0
208
Member Avatar for suzan alamassy

[COLOR="Red"]please i want help : i want rotate picture in (90) , (180) , (270) or any degress using this function ::[/COLOR] def rotating ( picture ,pict ) : # we have to pick to picture and then put them as parameter in th function : pic=makePicture(picture) canvas=makePicture( pict ) …

0
120
Member Avatar for tuse

I need to check if a databse user exists and if not, create that user. However, I do not know the statement to check if a user already exits. How to check if a user already exists in MySQL?

Member Avatar for Offirmo
0
1K
Member Avatar for mc3330418

What is the easiest fastest way to see what's in these three arrays. I just want to see what 's in there to make sure my function is working correctly. [CODE] #include <iostream> #include <iomanip> #include <fstream> using namespace std; const int MAX_ITEMS = 50; int readData(string studentNames [], int …

Member Avatar for mazzica1
0
82
Member Avatar for MousehDragon

So I have 3 classes, matrix.h, matrix.cc, and shortestPath.cc shortestPath includes the .h file, which includes the matrix.cc file. In shortestPath I've tried to call a Get method I wrote in the matrix.cc file, but I can't figure out how to call the function on the object of that class. …

Member Avatar for mazzica1
0
301
Member Avatar for iGuardian

In this excersize you will write a program that reads in two positive intigers that are 20 or fewer digits in length and then outputs the sum of the two numbers. Your program will read in the digits as values of type char so that the number 1234 is read …

Member Avatar for WaltP
0
137
Member Avatar for jeevsmyd

I used to write PL/SQL programs in oracle 9i.Since windows 7 doesnt support it, switched to oracle 10g express edition. All my SQL programs are alright. But I cant put mutiple queries on a single run though. Like insert into many rows. But PL SQL programs are going crazy. Too …

Member Avatar for hfx642
0
525
Member Avatar for Pointblank5600

Hey all. Im just learning VB and i want to make a login screen for my program. there will be two textboxes and a command button. When you click the command button it checks the information with whats in the database and if its correct loads the next form and …

Member Avatar for Auton710
0
426
Member Avatar for mazdasa

actually I had a problem to reverse my string using stack.. can anyone help me? this is a sample of my code : [ICODE]#include<iostream> #include<stdlib.h> using namespace std; void push(); void display(); void pop(); struct words { char data [20]; struct words *next; }; words *head; main() { int i; …

Member Avatar for WaltP
0
254
Member Avatar for sirlink99

I have a program, and I would like to rotate the image (4 directions) I am wondering if there is an easy way to rotate the image. here is the code, and where I would like to rotate the image. [CODE] import java.awt.*; import java.awt.image.ImageObserver; import java.io.*; import javax.imageio.ImageIO; public …

Member Avatar for mKorbel
0
171
Member Avatar for oldezwe

I'm having a hell of a time trying to make a login form. This is what I have at the moment.... [CODE]import javax.swing.*; import java.sql.*; import java.awt.*; import java.awt.event.*; class LoginDemo extends JFrame{ JButton SUBMIT; JLabel label1,label2; final JTextField text1,text2; LoginDemo(){ setTitle("Login Form"); setLayout(null); label1 = new JLabel(); label1.setText("Username:"); text1 …

Member Avatar for JamesCherrill
0
2K
Member Avatar for umair jameel

public class First { public static void main(String[] args) { int a; a=EasyIn.getInt(); System.out.println(" the value of a " +a); }} // this code is showing an error of " easy In " not finding symble. // help me

Member Avatar for NormR1
0
842
Member Avatar for suiram

I have a text file which has data in it in the following format: string string char int double string Each field is separated by a tab character. The last string of every line contains multiple words. The file can have up to 50 lines (I am guessing if I …

Member Avatar for Clinton Portis
0
258
Member Avatar for Suzan Al-amassy

[COLOR="Red"]when i try to scail picture down (( i did not have any problem )) using :[/COLOR] def generalscailing (picture ,pict , n ) : # we have to pick to picture and then put them as parameter in th function : pic=makePicture( picture ) canvas=makePicture( pict ) SourceX=0 width …

Member Avatar for TrustyTony
0
156
Member Avatar for UltimateKnight

Hi guys. What my problem is basically either some typo, or I am doing something extremelly wrong. Can't think of something else. After some time off with C++ I got back with it, creating the simple project to see how well my memory serves me. I am pretty sure that …

Member Avatar for UltimateKnight
0
101
Member Avatar for asif49

How is a "extends" relationship shown on a uml CLASS diagram. If [CODE]public class classA extends classB { ... }[/CODE] How will this be shown on a uml class diagram?

Member Avatar for JamesCherrill
0
100
Member Avatar for sirlink99

I am getting this error. [CODE] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 >= 0 at java.util.Vector.elementAt(Unknown Source) at Game.collision(Game.java:176) at Game.<init>(Game.java:20) at Frame.<init>(Frame.java:12) at Frame.main(Frame.java:31) [/CODE] The game was working, but when the enemies came on the screen it started lagging, so I made another thread, and just copied the …

Member Avatar for sirlink99
0
172
Member Avatar for Thermalnuke

Im having problem with this code I made for finding the average rain fall. When the program starts. it is suppose to go through each month and you are able to input the rainfall. When the months show up in the CMD it is just a bunch of numbers and …

Member Avatar for Thermalnuke
0
144
Member Avatar for WhosThatGuy

Hello everyone, Ive been stuck with this little problem for quite some time and if someone could help id be much obliged. I have this code that contains an array with several numbers in put by the user and i don't want any of the numbers in the array to …

Member Avatar for WhosThatGuy
0
183
Member Avatar for steffisusan

Hi, Can anyone tell me the c code for taking snap and saving it to directory. Thanks

Member Avatar for Tumlee
0
147
Member Avatar for manjushreekaran

hello all, after tried so much now posting here. i have two programs sql.php and form.jsp. i want to do insert values into mssql database from user input form. sql.php is able to insert the values into database. i have connected database using ODBC.form.jsp is able to give user input …

Member Avatar for cereal
0
209
Member Avatar for Behseini

Hi Guys, I am trying to display a selected file name by user(using OpenFileDialog class and FileName property) as [CODE] if (dlgOpen.ShowDialog() == DialogResult.OK) { txtFileName.Text = dlgOpen.FileName; } [/CODE] but the problem is this return all path info which I do not need! Can you please let me know …

Member Avatar for Behseini
0
120
Member Avatar for paddi_1

Dear all, I have php file which is returning result from server which are shown as group list, this result i want to pass to the dialog box as in drop-down selection, posting the code as below of group.php. I am getting php result correctly but need to integrate in …

Member Avatar for qazplm114477
0
170
Member Avatar for asif49

Is there any possible way to allow multiple different types of identifiers on a class. I.e. on ArrayLists you can do: private ArrayList<Employees> e = new ArrayList<Employees>(); the "Employees" is the identifier and can be accepted along with many others. But if I've created my own class and I want …

Member Avatar for stultuske
0
97
Member Avatar for cisumma

Hello all. I have never updated a single column in a specific record. I am using Apache derby embedded database. I have used the update prepared statement to up date a single field with the String value but it updates all the like of every record. How can I update …

Member Avatar for cisumma
0
141
Member Avatar for mattgwilson

Hi, I'm opening up text files created by another program which leaves an EOL character (which is a square box) to separate lines. I'm reading through these files and extracting data from them, I know where my data starts because I know the name of the parameter eg. "FOOD TYPE", …

Member Avatar for TrustyTony
0
352
Member Avatar for JwhateverJ

I'm writing an application launcher program. The launcher will launch applications based on the files found in the working directory. (Example: a folder containing files with the extensions .docx, .xlsx, .sln, and .txt, would give the user the option to launch Word, Excel, Visual Studio and Notepad loading any of …

Member Avatar for cox44
0
927
Member Avatar for lgbagabuyo

// Loel Jolito NiƱo C. Bagabuyo package marathon; public class Marathon { public static void main(String[] args) { String[] names = { "Jessabel", "Jerome", "Kristine", "Rodel", "Grajen", "Reymart", "Kevin", "Sherwin", "Orniel", "John", "Kirk", "Jovert", "Rhea", "Mariella","Melart", "Michael" }; double[] times = { 341.0, 273.0, 278.0, 329.0, 445.0, 402.0, 388.0, 275.0, …

Member Avatar for lgbagabuyo
0
2K
Member Avatar for jacob21

hello sir i have problem related to entity framwork 4.0 when i insert data into client table then it show below error plz help me sir Violation of PRIMARY KEY constraint 'PK_client'. Cannot insert duplicate key in object 'dbo.client'. The statement has been terminated. Description: An unhandled exception occurred during …

Member Avatar for sufyan2011
0
793

The End.