132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
[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! | |
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 | |
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 … | |
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 | |
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 = … | |
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++ | |
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 | |
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; ..... … | |
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 | |
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 | |
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# | |
*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. … Software Development c++ data-structure visual-basic visual-studio | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
![]() | [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++ |
[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 | |
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 | |
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 … | |
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 | |
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 | |
[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 | |
hi ... how to create the stored procedure?, and how to call the stored procedure in c# ?.... Software Development c# | |
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 = … |
The End.