132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kosco

Hi, I am simulating wireless networks and the simulator keeps putting runtime data to the output and eventually to my results file. to give you an idea .... 1 8724593564 2 153 465 1 8725120550 14 900 259 Node 0 sends packet to 1 1 8725375953 22 654 339 1 …

Software Development python
Member Avatar for vukman
0
286
Member Avatar for ihatehippies

In order for my code to be efficient, loops need to be terminated prematurely to prevent unnecessary iterations. I know that list comprehension is fast that the 'for' statement, but I'm having trouble finding a suitable way to break them. Here's what I've come up with [CODE=python]try: [x if x …

Software Development python
Member Avatar for snippsat
0
11K
Member Avatar for Maryaa

I am new with allegro.I dont know from where I must study for write pacman with allegro in c.please help first what I must do and from where I can study.

Software Development c
Member Avatar for Maryaa
0
73
Member Avatar for Chaos3737

Please help with my C++ OpenGL code! I am trying to make a simple game in OpenGL with C++ (my first). The issue I'm having is that the WSAD keys move the sphere AND the cube. Since the goal of the game is going to be to get points by …

Software Development c++ image opengl
Member Avatar for VBNick
0
462
Member Avatar for Duki

Hey Everyone, I'm trying to have a form autosize when a user clicks on a Link Label. When the Link Label is clicked, I want the form to expand slightly, and show a tab control that I've created. I can't figure out how to use the this.autosize feature correctly for …

Software Development
Member Avatar for Duki
0
2K
Member Avatar for Bips123

Hi, is there a way to avoid the conventional Black Background of C program While its execution? can the fonts be changed or can we include graphics/photos in C so that we can view it during its execution?

Software Development c
Member Avatar for Adak
0
76
Member Avatar for kymarscheng

[U]Which is the best IDE for C?[/U] Currently using Dev-Cpp. I am just wondering if there's any other better IDE around. Eclipse, NetBeans, Dev-Cpp, CodeBlocks or other??? thanks!

Software Development c ide
Member Avatar for tokenjoker187
0
257
Member Avatar for idblack

Hi, im currently studying for my final test in java beginner class, so there is a problem that i couldn't solved until now, i'm totally beginner and have search the solution for almost two days :( The program is taking variabel n from other text file, then this n will …

Software Development java
Member Avatar for Taywin
0
169
Member Avatar for hery

hello all, i want to ask how to i set variable in asp:sqldatasource in sqlcommand in asp.net c#.... This is my code asp.net [code] <dx:ASPxListBox ID="lsAssignToko" runat="server" DataSourceID="SqlDataSource6" TextField="NAMA" ValueField="ID" AutoPostBack="true" EnableCallbackMode="True" SelectionMode="CheckColumn" onselectedIndexChanged="lsAssignToko_SelectedIndexChanged"> <Columns> <dx:ListBoxColumn FieldName="ID"/> <dx:ListBoxColumn FieldName="NAMA" /> </Columns> </dx:ASPxListBox> <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:Ora2010 %>" ProviderName="<%$ ConnectionStrings:Ora2010.ProviderName …

Software Development asp asp.net c# session
Member Avatar for Lusiphur
0
753
Member Avatar for ttboy04

Hello, I am having problems in bMethod. The program compiles but there is no output display for bMethod. I am trying obtain a set from aMethod and assign this set to a suitable local variable in bMethod. Which I think where the problem is. I want trying to display both …

Software Development java
Member Avatar for Taywin
0
161
Member Avatar for haro2x

Hello I have made a simple gui tic tac toe game using glade and python 2.6/ Now I want to change the text of the button when i click it. Does anyone know how to do this?? code: [CODE]#!/usr/bin/env python import gtk import gtk.glade import sys class iksoks: wTree = …

Software Development gui python xml
Member Avatar for haro2x
0
153
Member Avatar for sofia24

Hi I'm creating a parser using Visual C++ and I'm having a problem reading the contents of a file per line. I tried using fread but you have to specify that size of the record you need to store in the buffer. Length of each line record is variable so …

Software Development c++
Member Avatar for Taywin
0
421
Member Avatar for echellwig

Hi, I'm trying to replace an item in a list I made with 0. [CODE]popdata[0][5].replace(0.02,0)[/CODE] when I run this it gives me the error TypeError: expected a character buffer object. I was wondering what this error meant and how I would go about fixing it. Thanks! Elise

Software Development python
Member Avatar for echellwig
0
576
Member Avatar for Zinderin

I am still learning C#. I come from a Delphi and C past. I am used to being to create flat data files of of records. Example: [CODE] // Sample Delphi code... type SectorRecord = Record iIdx : integer; iCoordX : integer; iCoordY : integer; sName : String[60]; end; ..... …

Software Development c# delphi
Member Avatar for Zinderin
0
277
Member Avatar for YasaminKh

Hi, I'm new to programming and especially to Python. I have this xml file that has parts like this: <VECTOR_AVERAGE name="Density Correlations" nvalues="15625"> <SCALAR_AVERAGE indexvalue="( 1,2,0 ) -- ( 3,4,5)"> <COUNT>204160</COUNT> <MEAN method="jackknife">6.368e-05</MEAN> <ERROR converged="yes" method="jackknife">2.89e-05</ERROR> <VARIANCE method="simple">6.37e-05</VARIANCE> <AUTOCORR method="jackknife">0.843</AUTOCORR> I need to save MEAN and ERROR. I wrote the …

Software Development data-structure python xml
Member Avatar for TrustyTony
0
332
Member Avatar for YasaminKh

Hi, I'm working with an xml file in python.here is the coed that i have: [CODE] import sys from xml.dom.minidom import parse # Load XML into tree structure tree = parse(sys.stdin) #Find all VECTOR_AVERAGE nodes va_list = tree.getElementsByTagName('SIMULATION')[0].getElementsByTagName('AVERAGES')[0].getElementsByTagName('VECTOR_AVERAGE') #Find the 'Density Correlations' node in the list of VECTOR_AVERAGEs for va …

Software Development data-structure python xml
Member Avatar for YasaminKh
0
187
Member Avatar for judithSampathwa

hi there, i have a mask text box in a form to enter the money amount in the text box.(displayed as $________.__) whee the user enters $___555__.__ how can i validate it.to get the value 555to the database. how ca i do this. hey anybody has any tutorials regarding validating …

Software Development c#
Member Avatar for Lusiphur
0
807
Member Avatar for emcyroyale

*I don't really know what to title this...sorry Hello everyone, I am taking a class to learn c++. But throughout the class all we did were make simple program using visual studio 08 with one source file. We are using C++ Programming :Program design Including Data structures by D.S. Malik. …

Member Avatar for thelamb
0
223
Member Avatar for fresidue

Hello all, I am new here and fairly new to java and programming in general. I decided to make a little color chooser hoojie for fun (jar file attached), but it is tremendously slow. Partly it is my fault (code def not perfect..) but when I checked what was taking …

Software Development java
Member Avatar for NormR1
0
280
Member Avatar for chathuD

Guys...on my final year project i have to create traffic controlling system. actually my section is retrieving the current traffic details from users mobile phone. Let’s say a persona need to go from "A" junction to "B" junction. so the user will send a sms to system by including the …

Software Development
Member Avatar for chathuD
0
99
Member Avatar for bbman

hi... i want to hide a column in gridview..but must be able to access the data from that column.. whenever i make the column visibility to false..i wont be able to access the data.. it works..only when the condition is true. I tried the below method also.. GridView1.Columns.Item(0).ItemStyle.Width = 0 …

Software Development vb.net
Member Avatar for prashantchalise
0
2K
Member Avatar for judithSampathwa

hi there, i have a datagrid view in a form and i have a calender control in one of the cells. when i try to validate it it gives an invalidCastException.(the line is bolded, this is tha place where the error occurs) [CODE] private void dgvActions_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) { …

Software Development vb.net
Member Avatar for gusano79
0
120
Member Avatar for wayn3san

I want to write an assembly program to convert Hexadecimal to Binary in 8086 assembly language. I am using Winasm as my compiler. However i have no idea how to write this code. Can anyone shed some light? thanks in advance!

Software Development assembly
Member Avatar for wayn3san
0
12K
Member Avatar for cableguy31

I'm using re.search to search for the pattern of anything that might look like a credit card number in a file. What I would like to do, is have the script then pull out the potential cc number and pass it to the Luhn algorithm for verification. If I'm not …

Software Development algorithm python
Member Avatar for cableguy31
0
84
Member Avatar for Duki

Hey guys, I have some overloaded functions that I want to get out of my main form.cs - is there an easy way to do this? I know in C++ you can just #include somefile.h and whatnot, but I can't find a way to do this using C#? Basically, all …

Software Development
Member Avatar for nick.crane
0
109
Member Avatar for CodeAerial

I was wondering if there are any existing thread that teaches how to use a compiler with Notepad++. Preferrably that of MinGW? Thanks.

Software Development c++
Member Avatar for Ancient Dragon
0
82
Member Avatar for judithSampathwa

hi there, i have a combo box cell in the datagrid view and to it the data is loded from the database. w@ i want is when i select a value from the combo box cell the other cells should be filled with the data relating to the value selected. …

Software Development vb.net
Member Avatar for judithSampathwa
0
150
Member Avatar for Rallici

Windows 7 Dev C++ version 4.9.9.2 Hello I am fallowing the wrath lands game creator tutorial and I am having the following problem. [CODE]Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Proj\Nimph\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Proj\Nimph\Makefile.win" all g++.exe main.o battle.o town.o crossroads.o helper.o player.o -o "Nimph.exe" -L"C:/Dev-Cpp/lib" crossroads.o(.bss+0x0):crossroads.cpp: multiple definition of `player' …

Software Development c++
Member Avatar for Rallici
0
243
Member Avatar for rajec3

Which is the best book or site for learning JAVA perfectly? What should i install on my PC to learn programming in JAVA environment?? I dont know anything abt JAVA. I am just a beginner. please help me out thanks

Software Development java
Member Avatar for stultuske
0
173
Member Avatar for petrelutza

Hey, I tried to change the size of a label from 2 text boxes, but doesn't work. Here is my code: [CODE] Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click y = TextBox2.Text x = TextBox3.Text Form2.Label1.Size = New Size(y, x) End Sub[/CODE] textbox2 is width …

Software Development microsoft vb.net
Member Avatar for trpsjt2008
0
2K
Member Avatar for anders10

Hi! I have a problem with getting an arraylist to work within a JList. I have posted 5 classes; a GUI class - GrafikInl6, a class with most of the methods - Functionality, and then an abstract baseclass Runner6 with the two subclasses EliteRunner6 and Jogger6. My problem is the …

Software Development gui java java-swing
Member Avatar for NormR1
0
187
Member Avatar for gedas

hey guys, i just started working on one of the projects well its has been already finished all im doing is making a few changes and it contains two .dll files (in the root of the project) if they are removed project does not compile and stops functioning otherwise (if …

Software Development java
Member Avatar for gedas
0
135
Member Avatar for daudiam

The ConcurrentHashMap is thread safe without locking the entire table but it doesn't remove the race conditions like if we query for a key and at that time the key is not there, so in the next instruction we add the key's entry to the map. Between the two things, …

Software Development java
Member Avatar for stephen84s
0
742
Member Avatar for Stefano Mtangoo

Hi friends, I need to work with an application that exposes SNMP interface. I have googled to check SNMP in general but I find it difficult a bit. I know in HTTP you send request and get response and with the two you can play around. I have never done …

Software Development java
Member Avatar for Stefano Mtangoo
0
124
Member Avatar for Anigmalee

I have a simple application, a form with two datepicker( Datepicker1 is for startsearchdate, while datepicker2 is endsearchdate) to filter out any record that not in the range. The source of the record is readed from a rtf file.The record is in format as showm below. [dd/MM/yyyy] time result So …

Software Development vb.net
Member Avatar for finito
0
155
Member Avatar for daudiam

Ordinary Maps use the following test for equality (k1==null ? k2==null : k1.equals(k2)).) IdentityHashMap uses k1==k2. My question is that even Object's equals() method returns k1==k2. Only when the Object's equals method is overridden inside a class, does it perform content based equality comparison. So, IdentityHashMap could have used Object's …

Software Development java
Member Avatar for daudiam
0
130
Member Avatar for yap_1991

are there any codes whereby it can read the first and last word of all the lines of a text file? I would need to read the first and last word of text files and make sure both the first and last words matches the conditions then print the lines …

Software Development java
Member Avatar for masijade
0
609
Member Avatar for yap_1991

Hi All I really need help in this. Im supposed to "extract" information from text files . the text files looks somethings like this: MODEL 1 ATOM 1 N SER A 253 -19.559 -25.512 -41.130 1.00 0.00 N ATOM 2 CA SER A 253 -18.749 -26.500 -41.895 1.00 0.00 C …

Software Development java
Member Avatar for masijade
0
426
Member Avatar for rajdey1

Hi All I am trying to write Asynchronous client-Server Socket program in which whenever a client is connected to server a Windows Form is created which has a textbox and two buttons......on Data recieved by server from client the data is written in respective windows Form textbox and if a …

Software Development c c# c++ client-server
Member Avatar for nick.crane
0
206
Member Avatar for xuele91

Error: Inconsistent accessibility: field type 'drag_and_lock_grid.Puzzlepiece[]' is less accessible than field 'drag_and_lock_grid.Game1.pieces' What does this means? How to solve this error?

Software Development
Member Avatar for nick.crane
0
83
Member Avatar for xuele91

This is the error: [COLOR="Red"]Error1 Inconsistent accessibility: field type 'drag_and_lock_grid.Puzzlepiece[]' is less accessible than field 'drag_and_lock_grid.Game1.pieces' [/COLOR] This line is states the error: public Puzzlepiece[] pieces; This is my puzzle piece class: [CODE] class Puzzlepiece { private int id; private Vector2 position; private Vector2 previousPosition; private Boolean dragging; private Vector2 …

Software Development puzzle
Member Avatar for jonsca
0
122
Member Avatar for youllbelost

[CODE] #include <iostream.h> void main() { char line[25]; cout << " Type a line terminated by carriage return\n>"; cin.get( line, 25 ); cout << ' ' << line; } [/CODE] I am new to this forum and also C++ I want a help with cin.getline() function.. As you see the …

Software Development c++
Member Avatar for p@rse
0
122
Member Avatar for NewOrder

[code]import java.io.*; class Ex33 { public static void main(String[] args) { Console console=System.console(); System.out.println("Please enter a number"); String input; input=console.readLine(); int n1; n1=Integer.parseInt(input); double sum; int LessThanAv; for(count=0;count<100;count++) { sum=(n1+sum)/count; System.out.println("Please enter the next number"); } while(n1<sum;) { System.out.println(n1); } } }[/code]

Software Development java
Member Avatar for stephen84s
0
159
Member Avatar for SoulMazer

Hi, I'm writing a program that goes through all of the music in a user-specified directory and I am having some trouble with Unicode characters. More specifically, [icode]'ascii' codec can't encode character u'\\xe7'[/icode]. The song names need to both be printed to a HTML page as well as be passed …

Software Development python
Member Avatar for SoulMazer
0
111
Member Avatar for GrimR7529

Hi, I have a listbox that is connected to a text file and this file is created when the program opens for the first time and then users can add data to the file as they wish. However what I am having a problem with is that how can I …

Software Development listview vb.net
Member Avatar for pritesh2010
0
98
Member Avatar for vaina74

Hi everybody. I'm interested in C++ programming, so I just started learning it. I already worked with structured programming, e.g. Pascal or Fortran, so I have no problems with while, for, pointers and so on. Above all I'm interested in object-oriented programming, but I'm an absolute beginner in that. I'd …

Software Development c++ file-stream pascal
Member Avatar for vaina74
0
226
Member Avatar for fenerista

I want a list that include matrixes (not implementing matrix as a list) . and I will add matrixes when I want. Is it the best way to take a dymamic memory with matrix size(row*column) and add the pointer that reference matrix to the list. But in this way, if …

Software Development c++ linked-list
Member Avatar for fenerista
0
130
Member Avatar for samuel_pay

[U]Okay im a desperate need of some help here im currently doing a uni java project... im creating a single player battle war game that is turn based. ill give the overview i have wrote underneath but i need some help sorting out was classes i need and putting them …

Software Development java
Member Avatar for Stefano Mtangoo
0
320
Member Avatar for baladeveloper

hi ... how to create the stored procedure?, and how to call the stored procedure in c# ?....

Software Development c#
Member Avatar for Jinnybat
0
99
Member Avatar for jadrian

I was having some issues using a rendering worker thread in my application and created a stripped down application to troubleshoot, but stumbled onto a problem that is probably so obvious I am just completely overlooking it. The pertinent code is as follows: [CODE] BOOL GameDlg::OnInitDialog() { CDialog::OnInitDialog(); pDC = …

Software Development c++ opengl
Member Avatar for nbaztec
0
236

The End.