199,114 Archived Topics
Remove Filter ![]() | |
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. … | |
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) | |
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? | |
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" … | |
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 … | |
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. … | |
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 … | |
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, … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
<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='<%# … | |
[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 ) … | |
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? | |
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 … | |
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. … | |
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 … | |
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 … ![]() | |
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 … | |
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; … | |
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 … | |
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 … | |
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 | |
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 … | |
[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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
Hi, Can anyone tell me the c code for taking snap and saving it to directory. Thanks | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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", … | |
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 … | |
// 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, … | |
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 … |
The End.