132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jiraiya

Hi everyone, I'm having a little problem I'm sure someone can help me with. I'm trying to read in 10 png images and save them in an ArrayList as BufferedImage objects (I think this is the right way to go about it but if not plaease say so). Here is …

Software Development java
Member Avatar for jiraiya
0
2K
Member Avatar for rahul8590

i did go thru a google search and found some functions .. but those results where horrifying , i guess i am using a wrong method of finding time . [code] def test(): "Stupid test function" L = [] for i in range(100): L.append(i) if __name__=='__main__': from timeit import Timer …

Software Development python
Member Avatar for Beat_Slayer
0
850
Member Avatar for new_programmer

I want detailed explanation about static int var; final int var; static final int var; Please explain it in the memory implementation level. If there is any mistake in these please explain. __________________

Software Development java
Member Avatar for masijade
0
427
Member Avatar for titan5

I have written a program which checks whether the entered list is a circular list or not. I am successfully able to make the circular list. But as soon as I call the check_circular fucntion my program hangs. Can anybody find the error please? And yes the programs hangs when …

Software Development c
Member Avatar for titan5
0
103
Member Avatar for prathoven

Their is difficulty in changing the name of the columnheader of list view constantly by using the loop in button click method...Is their any way to change the textname by using loop??? :S

Software Development listview
Member Avatar for prathoven
0
3K
Member Avatar for dexter1984

[CODE=cpp] while (j < i) { cin.ignore(); cout << "Please type enter to display: "; cin >> enter2; if (strcmp(enter, enter2) == 0) { cout << "ID: " << students[j].ID << endl; cout << "Name: " <<students[j].name << endl; cout << "Address: " <<students[j].address << endl; cout << "Telephone: " …

Software Development c++
Member Avatar for ponce_jelie31
0
87
Member Avatar for sanz

hi, how can we make typing tutor software in c language. plz guide me. thnks

Software Development c
Member Avatar for Adak
0
2K
Member Avatar for VJTechno

Hello Friends, I was reading about the orthogonality and it's advantages. Then heard something like "Java is an Orthogonal Language". Can anyone explain me what do we mean by a particular programing language being orthogonal? If I am using Java for development of my application, does it imply that my …

Software Development java web-design
Member Avatar for VJTechno
0
607
Member Avatar for simranjit kaur

ah i am I.T 2nd yr student making my project in core java.Can any one tell how to make event in mind fiddler game (e.g kbc). can any one give me codification in making my project get started.plzzzz results needed...

Software Development java
Member Avatar for peter_budo
0
133
Member Avatar for siddhc

Hi, I made a simple Form1, with Text.Box1 (starting value=1) and Text.Box2 (starting value = 100000), as shown in the attachment : I wanted that, when the Form loads,value of Text.Box1 keeps on increasing by 2 and value of Text.Box2 keeps on decreasing by 3. I wanted to achieve this …

Software Development gui vb.net
Member Avatar for GeekByChoiCe
0
153
Member Avatar for anurag.kyal

I have a forked child process running which executes a system command killing the child using os.kill(child_pid, SIGKILL) stops the child process but the system process continues ! Can something be done to stop the system process also? A part of the code is something like this: #Child child_pid = …

Software Development python
Member Avatar for jcao219
0
159
Member Avatar for arsenal_fan

There is an array of odd and even numbers. Now, sort them in such a way that the [B]top portion of the array contains odd numbers, bottom portion contains even numbers. The odd numbers are to be sorted in descending order and the even numbers in ascending order[/B]. If the …

Software Development c
Member Avatar for griswolf
0
95
Member Avatar for Jaydenn

I'm making an application which searches all the lines of my text files in a directory, and writes the specific search match to my output box. The only problem is I need to split a string like this: [CODE]character-item = 0 996 1500000[/CODE] How it works: You search for the …

Software Development
Member Avatar for Jaydenn
0
124
Member Avatar for trpsjt2008

Hi How To Make This Faster [CODE] Private Sub MonMove() For A = 0 To (Cnt - 1) MyControlArray(A).Location = New Point(MyControlArray(A).Left _ - 1,MyControlArray(A).Top) Next End Sub[/CODE] first i make A Hundred of PictureBox Later I use Array How To Make it Faster ,When It Appear More than 20 …

Software Development vb.net
Member Avatar for trpsjt2008
0
119
Member Avatar for surk23

My program has 8 JButtons and 1 JTextField. Each button should change the text in the text field to something different. I started out having an action listener for each button but i would like to link all the buttons to just 1 action listener and have it recognise which …

Software Development java
Member Avatar for tong1
0
1K
Member Avatar for creeps

I've written the following binary search algorithm and it worked on [i]my[/i] tests. I want to know if there is something I'm missing, as this is the first time I try to write it, so give me a case in which it would fail, and I'll try fixing it. I …

Software Development algorithm c
Member Avatar for Adak
0
149
Member Avatar for emmas4impact

Hello i will like to have an explanation to this task: Make a midlet (called "NetworkSettings") that has List (IMPLICIT type called "mainList") as its main view. "mainList" contains following items: "Encryption", "Basic data" and "Summary" (actually items will describe views). When user selects one of those items from "mainList" …

Software Development encryption java
Member Avatar for emmas4impact
0
223
Member Avatar for Garrett2011

Suppose we've got two integer and character variables: [CODE]int adad=12345; char character;[/CODE] Assuming we're discussing a platform in which, length of an integer variable is longer than or equal to three bytes, I want to access third byte of this integer and put it in the character variable, with that …

Software Development assembly c++
Member Avatar for r.evrard
0
214
Member Avatar for rtllz

hi, i was wondering if someone could help me make a number generator. By that i mean have it start from 0 then go 00 then 000 and so on until lets five zeros(00000) and after that make it change the last number by 1. Any help would be appreciated, …

Software Development c++
Member Avatar for mrnutty
0
126
Member Avatar for Suzie999

Hi. So far I have been moving along relatively steadily with my learning of C#. One thing I havently really bothered with yet is try and catch. The reason I havent looked into this is I dont really know in what cases I would need to use it. So my …

Software Development
Member Avatar for Suzie999
0
194
Member Avatar for qqwushi12345

What is the definition of memory in C++? thank you.

Software Development c++
Member Avatar for mrnutty
0
64
Member Avatar for deeapk_kapdi

Hi, I am a beginner in Python. I have created 1 script in notepad++ and trying to execute the script from command line but it's giving an error. I have set the PATH of Python in the environment variables also. Can anyone send me the complete steps for executing the …

Software Development python
Member Avatar for TrustyTony
0
9K
Member Avatar for therobot

I've got a small project that I'm working on, and the core *.exe that I'm building has a decent amount of dependancies. I keep this, right now, in a folder of all the includes and a *.lib file for all the implementations. My question is, is there a way to …

Software Development c++
Member Avatar for Ancient Dragon
0
90
Member Avatar for PaKmAn

So I have to create a multiplication table but it has to be the size of a number I enter from 5 to 31. I think I understand creating a multiplication table without an input, but how do I do it when it has to be a specified size? [code] …

Software Development c++
Member Avatar for Ancient Dragon
0
119
Member Avatar for mayursharma

hello...i m makin a calculator which inputs a expression n gives the result. suppose i hv entered an expression( e.g. 12 + 3*5 -7) into an string variable .now if i want to check the string from starting index that it contains an integer or not ,then what is the …

Software Development java
Member Avatar for jon.kiparsky
0
174
Member Avatar for Xufyan
Member Avatar for Xufyan
0
143
Member Avatar for jenzilla

Hi.. I've been trying to get this to work for hours now but I'm not understanding what to do. Basically I'm creating a quiz on python with 5 questions. I have a function that is only for the quiz. Another function is to display the highest quiz score. I want …

Software Development file-system python
Member Avatar for Beat_Slayer
0
4K
Member Avatar for mayank.dyl

I created a executable jar using command [CODE]jar cvfm swingDemo.jar manifest.txt *.class[/CODE] But when i open it then it does not work and also do not show any error message. I used 'extcheck' tool on this jar then it showed following message: 'The target file does not have specification title'. …

Software Development java
Member Avatar for NormR1
0
118
Member Avatar for maniza

how to convert a XML file into XSD format??? can someone say an easy way to do it..

Software Development xml
Member Avatar for maniza
0
138
Member Avatar for new_programmer

What is the difference between pointer and reference Please explain in detail. I want its full concept , so pls explain in detail

Software Development c++
Member Avatar for daviddoria
0
93
Member Avatar for SethR

Someone please help me before I smash my computer. Every time I try to update a database using my data adapters update method I get the following error.....[B]Object variable or With block variable not set.[/B] I can't for the life of me figure out why this is happening. Here's the …

Software Development dataset vb.net
Member Avatar for reenez
0
442
Member Avatar for ish13

I am having a problem with the data I have collected. When I write the data to a file it is shown like this. (231.2314,32434.344,134.2342,345.345,1234.45) (2323.567,32.6754,12323.8776,12323.575,233.5673) now when I read data and put it in a list it looks like this. data = ['(231.2314,32434.344,134.2342,345.345,1234.45) \n','(2323.567,32.6754,12323.8776,12323.575,233.5673)\n'] is there any way i …

Software Development python
Member Avatar for TrustyTony
0
191
Member Avatar for fekioh

I am new in Python. I wrote a program that reads-in large text files using xreadlines, stores some values in lists (and arrays) and does some calculations. It runs fine for individual files, but when I try to consecutively process files from a folder, I get a memory error. my …

Software Development python
Member Avatar for TrustyTony
0
157
Member Avatar for elanch

hi all! In Vb i have used Data Grid viewer.It is used to display the textbox content in form, whenever <ADD> button is clicked. When i click the <ADD> button I'st time, the text box content is displaying correctly. When i click the <ADD> button II'nd time, the text box …

Software Development visual-basic
Member Avatar for udaraps
0
104
Member Avatar for TrueVb.NetNoob

Hi Guys! Lately starting to make a project which involving calculations in it, Unfortunately I got some trouble because the calculation which is displayed out is wrong. The main idea is that I set a event where you pay 5 "Gcoins" to play the "paper scissors stone" game against the …

Software Development pay-per-click vb.net
Member Avatar for TrueVb.NetNoob
0
129
Member Avatar for drnshaw

I'm using the SQLite java Wrapper from [url]http://www.ch-werner.de/javasqlite/overview-summary.html#jdbc_driver[/url]. The only changes I made to the Windows MS Visual C++ make file (javasqlite3.mak) were to the locations of JAVA_HOME (mine is not in the C:\ directory. But when I run it I get the following error: "Unexpected token 'javasqlite.mak' in expression …

Software Development java microsoft-access sqlite visual-studio
Member Avatar for ~s.o.s~
0
451
Member Avatar for qk00001

Hi people, I am trying to read a text file and count each words length. I have got these 2 things working, but I can't write the wordLength into text file. anyone can help me out. thanks a lot~~ there is the text file like: ------------- absent absolute absolutely absorb …

Software Development c++
Member Avatar for qk00001
0
98
Member Avatar for Sesshokotsu

hey um i kind of been trying to figure this out for awhile now...well the program is supposed to convert numbers like 123 into words such as one two three the only problem is my program writes the numbers back words such as three two one...does anyone have any ideas …

Software Development c
Member Avatar for soulcandra44
0
173
Member Avatar for King_Alucard

I have to finish the code but I am having several errors with this and I can't figure it out can somebody give me some insight on what I can do to fix this and also explain what am I doing wrong. Here are the errors I am getting Error …

Software Development c++ visual-studio
Member Avatar for jonsca
0
119
Member Avatar for gauravk_bhanot

[CODE]import javax.swing.*; import java.awt.*; class drawer extends JPanel { Color color; int x; drawer(int x,Color color){ this.color=color;//color of rectangle this.x=x;//size } public void paintComponent(Graphics g) { super.paintComponent(g); g.drawRect(0,0,x,x); g.setColor(color); g.fillRect(0,0,x,x); } } public class layers { public static void main(String[] args) { JLayeredPane layerd=new JLayeredPane(); layerd.setSize(800,800); layerd.setVisible(true); layerd.add(new drawer(50,Color.BLUE),2); layerd.validate(); …

Software Development java java-swing
Member Avatar for new_programmer
0
308
Member Avatar for bleedi

So, here's my problem: I have a superclass: [CODE] Class SuperClass { virtual someMethod() = 0; } [/CODE] ... and then I have multiple classes that inherit SuperClass. Now, if I want to put objects made from the subclasses to a single vector<SuperClass>, how could I get the abstract function …

Software Development c++
Member Avatar for bleedi
0
447
Member Avatar for hunhistory

Hello everyone, I am learning 16-bit 8086 assembly(for DOS). I would like to know how to make/draw/display VGA graphics with code, like making a "picture". I googled a lot, but I couldn't find anything to solve my problem. All I need is a code for 16-bit Assembly that draws/displays some …

Software Development assembly display
Member Avatar for NotNull
0
2K
Member Avatar for ThrasherK

I am trying to finish this hangman game I started. I know how to do everything I have left to do except for one thing. When I run the program and start guessing letters for instance in the word technical, if I guess the letter c, it only puts one …

Software Development c++
Member Avatar for VernonDozier
0
236
Member Avatar for runee1000

Hi: I'm working on a mini-game ish sort of applet using Eclipse. I am trying to get a picture I have in my folder of a dot to show on my applet. and be able to move it freely. Since I have other parts of the game planned out, parts …

Software Development java java-swing
Member Avatar for MTSranger
0
104
Member Avatar for neo_31591

hey..im new to JAVA...i wanna use an Icon for a JButton..i did it already but unable to do so in the project that im making.... the back.gif is in the same folder as the .java file...it compiles well... just shows a blank white icon.... can you please find the problem …

Software Development java java-swing
Member Avatar for tong1
0
114
Member Avatar for lewashby

[CODE]import pygame from pygame.locals import * from sys import exit from random import randint pygame.init() screen = pygame.display.set_mode((640, 480), 0, 32) while True: for event in pygame.event.get(): if event.type == QUIT: exit() rand_col = (randint(0, 255), randint(0, 255), randint(0, 255)) for _ in xrange(100): rand_pos = (randint(0, 630), randint(0, 479)) …

Software Development python
Member Avatar for vegaseat
0
260
Member Avatar for muhamin

wat is the problem here [CODE]cmd1 = New OleDbCommand("Update tblParking SET status = 'Available' Where exp_date <='" & Date.Today & "'", cn)[/CODE] i want update the field status to "Available" when exp_date is less then todays date.. wat do i need to do.

Software Development sql vb.net
Member Avatar for crapulency
0
174
Member Avatar for teddypwns

How do I get a recursive function to return a value other than None? For example: [CODE]def function(depth): if depth > 0: function(depth - 1) else: return 10 function(5)[/CODE] returns None, and not 10.

Software Development python
Member Avatar for ultimatebuster
0
11K
Member Avatar for TrueVb.NetNoob

Hi Guys! I coded my textbox to be only type in numeric numbers. But the backspace doesn't work when I run the program anymore, Can't delete what has typed in the textbox. Anyone can help me? Here is my code [CODE]Private Sub AmountTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) …

Software Development vb.net
Member Avatar for TrueVb.NetNoob
0
200
Member Avatar for jenzilla

Hi. So, I'm coding this GUI into a sort of quiz. I'm not sure how to explain what I plan to do so I will write it out in a pseudo code. I know this isn't the most efficient way at all to do this, but I'm just focused on …

Software Development gui python
Member Avatar for ultimatebuster
0
2K

The End.