132,726 Archived Topics
Remove Filter ![]() | |
![]() | Hey, I just learnt the basics of smtplib module, and now know how to successfully send emails using Python. My next step is to learn how to use Python to 'use' the web, as in, download files from a specified URL, or something like that. What module is required for … Software Development python |
![]() | i have a program that converts text into morse code and then outputs it using a module i found in the snippets section but whenever i try to run it, it raises the error that "utext is not iterable" here is the code: [code=python] morse_code={ "a":beeps.a(), "b":beeps.b(), "c":beeps.c(), "d":beeps.d(), "e":beeps.e(), … Software Development python ![]() |
I saw many project resize with change screen resulation. I mean I work with my project in 800 by 600 pixel resulation. when I run It 1024 by 768 pixels then its many control change. but I want it match with changing resulation. example: I have a image control with … Software Development visual-basic | |
hello!!!! i m a student of 3rd year.....and i want some mini projetcs in java..... so can u please help me........ from Radhika Software Development java | |
can someone check my codes where my error was?! [code] import java.io.*; import java.util.Arrays; public class exer06_01{ public static void main(String [] argv)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String sh = " "; String str = new String(sh); System.out.print("Enter a string: "); str = br.readLine(); System.out.println("The reverse: "+ReverseString.reverseIt(str)); … Software Development java | |
Hi there. I received an assignment to sort Strings alphabetically which a user inputs. So far I've been able to produce the first word that would be top in the sort, so if someones inputs ("All Big Cats"), the first would be All. Anyways that is where I am now … Software Development java | |
What code to find Max value and min value in this Array... ? Help me Please..? import java.util.Scanner; import java.lang.Math; class Work4_1 { public static void main(String[] args) { Scanner input=new Scanner(System.in); int[] value=new int[10]; int max,min; for(int i=1;i<value.length;i++) { System.out.print("Enter Value : "); value[i]=input.nextInt(); } Math.max(value[i]); <<< It's True...? … Software Development java | |
why my coding find data only can find 1 data, then can't find any other data. if i want find other i need restart my vb.net.. what the problem anyone can help me please? [CODE]Private Sub btnCari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCari.Click sql = ("SELECT * … Software Development vb.net | |
Hello, I need help to learn how to edit memory references. Don't worry, I'm not gonna hack NASA or anything. Just minesweeper to start out with. What I need to know is this: What is the code for editing memory references? I know you have to use a memory reference … Software Development c++ | |
i have installed mysql , and JDK . I wrote the following code to test jdbc . But it didnt work [code] public class Test { public static void main(String[] args) { try { Class.forName("root.mysql.jdbc.Driver").newInstance(); System.out.println("Good to go"); } catch (Exception E) { System.out.println("JDBC Driver error"); } } } [/code] … Software Development java | |
Please can any one help me in my investigation I am developing an application whose purpose is to change the proxy settings for all applications requir WAN just like firefox,Googole talk ,yahoo,opera ..... etc so far I could do so for IE as I change its own conniectivity settings but … Software Development socket-programming | |
Hi, I can use webbrowser.open_new(url) to open an browser window easily, but how do I close this browser window ? I have searched the web and still not able to find a solution. Another way of doing this might be to start the browser window in a separate program (progA) … Software Development python web-browser | |
I want to specify a global variable and read/write that variable in various contexts, do you guys know how I do this? because I want to read from various context I want to be able set this global var within the public static void Main(string[] args) and then read this, … Software Development | |
Hi guys I wrote this program that interacts with Excel and it was working pretty darn well. I was off work sick for a week and came back to a fresh windows install and a program that now hangs on this line: oSheet = (Excel.Worksheet)oWB.ActiveSheet; with the following error: Invalid … Software Development | |
Hi I am a new bee, I am trying to insert data into a database white the use of parameters. When I run this code I get an error message: "No value given for one or more required parameters." Any help will be appreciated conn.Open() sql = "INSERT INTO Categories(Name) … Software Development vb.net | |
hi 'm aparna... Am developing a web application with j2ee and sql 2005 Express edition as the back end.. When i connect with the jdbc driver in system DSN and test the connection, the connection turns out to be successful, and when I run the application, the web page is … Software Development java | |
Hello I have a function that writes some text to a text file. [B]My Problem is:[/B] At one point I try to erase an element from a vector ,but I get an error & I dont know why, it looks sytaxically (is that a word? :)) correct & I am … Software Development c++ ![]() | |
I have a server which uses MySQL and supports many clients, and everything works perfectly fine when the MySQL database is on the same machine as the server. However, when it's on another machine, due to what I believe is the slow connection there are several requests from different clients … Software Development client-server java mysql | |
Hi , I'm confused on dataset/datatable updating to datasource. According to one view, mass updating of datasource with datatable.rowstatechanges thru dataadapter is not professional and not to be used in real production environment. On the other hand, a lot of sources in internet and else talks about how to use … Software Development dataset | |
Hi there! I've been looking everywhere around the internet and I couldn't find an exact code to help me create a working countdown timer in my WFA project. What I want to do basically, is make it so that when after I click my button, the timer will count down … Software Development | |
hey everyone, ive been making some simple games recently with c++ and sdl, I use Dev-cpp as my compiler. I just was making a game where a missle follows after a planet, and it freezes after a few seconds of playing. When I debug it however it doesnt freeze. I'm … Software Development c++ | |
I have this encryption program that I spend a lot of time writing I am a beginner but I consider it a nice program except that is is way to slow, can you see anyway to speed this up? Thanks. I know you don't like doing stuff for us but … Software Development c++ encryption | |
can someone please check my code because it doesnt update my database.. i set the room no. as the primary key.. can you please help, its urgent.. i need it tomorrow.. thanks. [CODE]Dim con As New OleDb.OleDbConnection con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=..\data\YayaDB.mdb" con.Open() Dim query = "UPDATE Rooms SET … Software Development open-source vb.net | |
I wrote a few code to test fork like following: [code]#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <signal.h> #include <errno.h> #include <unistd.h> int DemoFork() { pid_t pid,par_pid; par_pid = getpid(); pid = fork(); switch (pid) { case -1: printf("failure!\n"); break; case 0: printf("I am child!, parent is %d(\n",par_pid); break; default: … Software Development c data-structure | |
Hi all, I'm writing a program which will replace certain words in entered text and output the modified sentence. I've opted to use StringTokenizer to split the sentence, put the words into a string array, use a 'for' loop to replace the necessary words and then output the array once … Software Development java | |
Well trying to conserve memory I'm trying to get my program to only make an array of what is needed nothing more. I've already figured out that the only variable i could use to set how many there is in a array is a [B][COLOR="blue"]const[/COLOR][/B] but according the the compiler … Software Development c++ | |
Hi.! uhm i just partially finished my card game project "Lucky Nine" in simple java application.. The results of the game are just printed in System.out.println, and i cant manage to turn it into just JOptionPane.. uhm, anyways, i need you guys to help me how to load images from … Software Development image java java-swing | |
Hi, [B][I am experienced][/B] I would like to create a virtual 3D world. I am familiar with SDL and 2d graphics programming. I am experienced with C++ and I know a little Java (I have enough programming experience to learn a language quickly). I am familiar with the traditional game … Software Development api c++ opengl operating-system | |
this program is supposed to sort an input list and then remove all duplicates. so I'm not quite sure what is wrong with my program, but the output for the original list is a very long list of the same random number(it doesn't change with the input numbers) and the … Software Development c | |
How do you add a character containing a number char to a number int? What does it mean when '0'+3 is '3'? (3 being an int) I remember being told once, but never got the hang of it. Software Development c++ | |
[CODE]#include <iostream> using namespace std; struct student { int ID; char name; char nationality; char gender; }; void record(student array[]); int main() { cout <<"Welcome to student recording system"<<endl; cout <<"Please choose one of the following option"<<endl; cout <<"1.Insert new record"<<endl; cout <<"2.Delete record"<<endl; cout <<"3.Sort record"<<endl; cout <<"4.Display record"<<endl; … Software Development c++ | |
Hello, I'm learning C++, then i want to know how i can do a convertion of an decimal number to an hexamal number, i know the calculation form to do this, but the thing that i don't know is how i can represent the remain in the formula. Here is … Software Development c++ | |
Please help me with this question. That's multiple choice questions. Which of the following are true about using ADO.NET DataSets and DataTables? 1) The connection to the database must remain valid for the life of the data objects. 2) All tables in a dataset must come from the same database. … Software Development dataset | |
Hello, I'm beginning in the OS development(In Assembly, Nasm as Assembler) and i need to implement a command-line on it, but i don't know how to do this, but what i want to say as command-line is like MS-DOS or UNIX: [CODE]> ver BerlOS v.0.0.1 > _[/CODE] But i don't … | |
Hi, I'm trying to understand how the Calendar, GregorianCalendar and Locale classes work. Say I instantiate two Locale objects and then two Calendar objects, each with their respective Locale. Then ask for the always troublesome DAY_OF_WEEK on every Calendar object as in the following code: [CODE=java] import java.util.Calendar; import java.util.Calendar.*; … Software Development java | |
I have been trying for about 3 days now trying to find a way to open multiple instances of a simple program and have had no luck. It is being used to log into a site multiple times and the web browser component uses the same cookie which is stopping … Software Development vb.net web-browser | |
I select Multiple images from file and show their thumbnails in the panel. here is code i write for this:: [CODE] //files is string type array Containing the image Location //left, top, picWidth, picHeight are int variables. foreach(string file in files) { Bitmap bit = new Bitmap(file); ratio = (double)bit.Width … Software Development image | |
i need to save doc file in sql database but have no idea to choose the field data type, i think it'll require binary data type. and how to save selected doc file from window based application using c#.net ,please share any solution regarding this.... Software Development sql | |
Hi, I am an old VB6 programmer converting to C#, so I hope you forgive stupid questions. I am developing a C# app to run on Windows Mobile and Windows CE (handheld terminals). I have figured out how to read data from text files but what is screwing me up … Software Development file-system | |
int main(int argc, char *argv[]) { int mobile, pond; float a; cout<< "input mobile price:"; cin>>mobile; cout<< "input 1 pound how many BTH:"; cin>>pond; mobile+pond==a cout<<a; | |
who know how to make data show at textbox from this code. from the below code, i only can check if that data got in database or not, if got it show a msgbox. but i want the all data show at text.. [B]example[/B] i search data use a NoIC … Software Development open-source vb.net | |
Hi, I was just wondering how to convert a vector<string> to vector<int>. I am using the transform function from <algorithm> but I am not sure what the format is. [code] vector <string > string; vector <int> int; tranform(string.begin(), string.end(), int.begin(), atoi); [/code] Get a compile error. Could anyone tell me … | |
Hi, I need an array of approx. 2,00,000 elements.But malloc fails to allocate beyond 65872. When I give (short int*)malloc(sizeof(short int)*65000); It works but seg faults when I give (short int*)malloc(sizeof(short int)*66000); whatsup with that? Software Development c | |
I've spent a few hours tonight reviewing basic java syntax, but did not learn how to create applets or windows. I was reading tutorials on java3D, but sadly they were all pretty bad.. They didn't explain what was going on, and were using classes extending Applet and other java libraries … | |
I use a treeview control to show a logical hieracy. But I cant get it to refresh when the values change. Running the code again just add more detail to the bottom of the previous nodes. I know it must be a simple requery or refresh but am stuck. Please … Software Development visual-basic | |
Hey Programmers, Is there any better way to write the below recusive functions, plz help me so i can improve my programming... 1- Write a recursive function that takes a nonnegitive integer and returns the sum of its digits, [code=cpp] int DigitSum(int n){ if(n == 0){ return 0; }else{ return … Software Development c++ | |
Well I am making an AFK Bot for a FPS game called Combat arms. What it is supposed to do is Move Up, Down, Left, and Right by itself while I am AFK. I want it to press Spacebar to jump too. I also want it to Press the Left … Software Development c++ | |
hi I am talking C# this semester, can anybody help me with my assignment? Here is the problem: Determines whether a number is prime by checking whether 2,3,4,5,6..., n/2 is a divisor. If a divisor is found, not is not a prime number. A more efficient approach to determine whether … Software Development | |
I have a message Box with two options, Retry or Cancel. Upon clicking cancel, I want to close the MessageBox and then load the main Form. Any idea how to do that? This function is already within a button_click function and I want to get out of this function and … |
The End.