132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nchy13

i am getting weird result here. if condition at line 25 is satisfied only 4 times while reading cpuinfo but **cores** is modified each time while loop iterates. i am not able to think of anything that may cause this. any help of any sort is appreciated. #include <stdio.h> #include …

Software Development c
Member Avatar for nchy13
0
354
Member Avatar for nchy13

evrything was fine until i inserted 100 to 125 lines in code. i am wondering what kv is doing wrong as it is not even printing that version file was opened.. any sort of help is appreciated. files included in the code are given below for reference. proc/version file: ** …

Software Development c file-system linux-kernel ubuntu
Member Avatar for deceptikon
0
241
Member Avatar for pinsickle

I'm trying to learn Java, pretty easy so far as my previous experiance is with C/C++. I was just curious how to call java classes from different files. That way I don't have to have main as well as all of my classes crammed into one file. I'm sure the …

Software Development java
Member Avatar for dimapoter
0
10K
Member Avatar for foodstamps

I'm a complete beginner in the programming world, so forgive me for the basic questions. I'm trying to run Peter Norvig's spelling corrector from the Windows XP command line, but am having difficulties. I have a text file of addresses with a number of misspellings. I would like to use …

Software Development python
Member Avatar for TrustyTony
0
330
Member Avatar for MasterHacker110

I am trying to make something like a firewall but it isnt a firewall it is just suppose to see all the incomming and outgoing connections of each port. And put the IP address and port into a .txt file. Basicly creating a log of incomming and outgoing connections. Nothing …

Software Development c++
Member Avatar for L7Sqr
0
222
Member Avatar for MasterHacker110

I use code::blocks as an IDE but now i want to create a .dll file. I have followed this tutorial however it is for VC++. TUTORIAL: http://msdn.microsoft.com/en-US/library/vstudio/ms235636 I am strugeling becuase I am used to creating .dlls in C#. They are so easy. You just create a new library project. …

Software Development c++ ide visual-studio
Member Avatar for Valaraukar
0
403
Member Avatar for Hyperion101

Hey guys, Here's what I have to do: *Write a program that displays the table of Fahrenheit - Celsius temperatures. The formula is : C = (5/9) (F-32) C - Celsius, F- Fahrenheit The range should be: 0 - 200, where as the step should be set to 20. The …

Software Development c
Member Avatar for Hyperion101
0
662
Member Avatar for zeusprog

Please I am relatively new to Java and would really appreciate your help. Can anyone please tell me what I am doing wrong. I'm trying to send a string to an oracle and save it's output. My program just hangs when I get to this block of code. try { …

Software Development java oracle
Member Avatar for zeusprog
0
158
Member Avatar for semicolon

Hello I have an application that connects to sql database my application is multithread. When I run the application it loads top 500k data and stores it in #temp1(connection1), i can browse, search and select data, while my thread is running and storing the other 501 to 1m data in …

Software Development session
Member Avatar for TnTinMN
0
111
Member Avatar for ScottFountaine

So, what I'm having trouble with is a simple ai that runs from the player. There are walls scattered about the level that the enemy has to get by, but each time he collides with the wall, he gets stuck. I would greatly appreciate some help, here is the relevent …

Software Development
Member Avatar for Randlathor05
0
125
Member Avatar for eoop.org

Hi, I want to write my own programming language in C #. Want some good stories and tutorial (preferably video). Waleed Ahmed

Software Development
Member Avatar for Randlathor05
0
172
Member Avatar for Sweety12

What i'm trying is sending data from client which is windows application to server which is console application. First i have to start console application and accept connection from client which is windows form and i need to send listbox selected items to console application on button click.This i have …

Software Development client-server windows-server
Member Avatar for Randlathor05
0
236
Member Avatar for solarissf

Hello All, I am using a winapp form c# (.net4.0)to login and navigate deep into a webpage, upload a file, download a file. All this works successfully... MOST of the time. Everyonce in a while, when I hit the download button, the system seems to hang. Like a webpage that …

Software Development c#
Member Avatar for Randlathor05
0
233
Member Avatar for LoyalOne2

I have to write a program in java to compute the standard deviation and the mean. I am also to write a test program that will prompt the user to enter 10 numbers and display the mean and standard deviation. I have stared on the program and so far this …

Software Development java
Member Avatar for LoyalOne2
0
2K
Member Avatar for zeusprog

Please I'm new to python and I'm trying to understand a line of code. Can someone please explain to me the implications of the addition of the for loop inside brackets with the random integer generator. Thank you for i in range( 0, 50 ) : ran_values = [ random.randint( …

Software Development python
Member Avatar for zeusprog
0
275
Member Avatar for stevelk

I want to build a module to combine multiple text file in a .csv file by using vb.net. My text file data like this: (T1.txt) UnitCode|Qty 001|56 002|45 003|100 004|78 005|67 (T2.txt) UnitCode|Qty 001|78 002|166 003|10 005|12 I want the output like this: (Output.csv) UnitCode,T1,T2 001,56,78 002,45,166 003,100,10 004,78, 005,67,12 …

Software Development file-system vb.net
Member Avatar for Reverend Jim
0
411
Member Avatar for hassan980

Hello, Im new to VB and therefore i require some guidance in this tricky situation that im stuck in. Basically, what my program does is calculate the mach number of an aircraft when the speed of sound and value of temperature are added into the text box. The problem arises …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
284
Member Avatar for Stuugie

Hi all, I have a .NET form where I want to connect to a table and then pass each defined (by query) string from the table into a string within the code. I have created a connection to the database already via Data Sources but I'm unsure about the syntax …

Software Development sql vb.net
Member Avatar for Stuugie
0
176
Member Avatar for maurya10

Here is the c code:- #include<stdio.h> #include<stdlib.h> #include<string.h> int main(int argc,char *argv[]){ if(argc==1){ //default printf("first version\n"); int i,j,k; char line[1024],*str1,*str,str2[1024],ch; FILE *in=fopen("/proc/cpuinfo","r"); i=0; while((fgets(line,1024,in))!=NULL){ // printf("%s",line); str=strtok(line, " :"); if(str!=NULL){ //point 1 if(strcmp(str,"model")==0){ printf("%d %s\n",i,str); //point 2 str=strtok(NULL, " :"); printf("%s\n",str); //printing "name" if(strcmp(str,"name")==0) //point 3 printf("CPU Model:=%s\n",strtok(NULL,":")); } else …

Software Development c c# c++
Member Avatar for maurya10
0
282
Member Avatar for MonsieurPointer

Hi DaniWebbers, I would like to map a string to a Property using the Dictionary class. For example, I want to map "port" to a textbox's Text property, e.g. myDict.Add(tbPort.Text, "port"). How would I go about defining the dictionary? I've tried the following: * Private myDict As Dictionary(Of Property, String) …

Software Development vb.net
Member Avatar for Reverend Jim
0
265
Member Avatar for saitej

how to rowfilter a row using textbox for date and time or only date ? plsss help i am getting error with this code dv.RowFilter = "Date = '" +textBox1.Text.ToString()+"'"; thanks :)

Software Development
Member Avatar for Randlathor05
0
113
Member Avatar for franzrivas

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click Dim cmd As New OleDb.OleDbCommand If Not cnn.State = ConnectionState.Open Then 'open connection if it is not yet open cnn.Open() End If cmd.Connection = cnn 'check whether add new or update If Me.txtReg.Tag & "" = "" Then …

Software Development vb.net
0
61
Member Avatar for soapy.thomas

**Hi there, I'm new to C++ (bet you guys don't hear that very often!!) and what I'm trying to do, in a console application, is this: 1. Ask for a number 2. If the user input isn't a valid float, get angry and go back to 1. 3. If the …

Software Development c++
Member Avatar for m4ster_r0shi
0
400
Member Avatar for nataraja833

Hi All , This is my code snippet [CODE]typedef struct { char *name; } CELL; typedef struct { CELL *cell; char *name; } INST ; int main () { INST **top_inst_list ; int i,j; char string_name[100]; printf("Enter number of insts in design\n") ; scanf("%d",&i); top_inst_list = (INST **)malloc(sizeof(INST*)*i) ; for …

Software Development c
Member Avatar for deceptikon
0
139
Member Avatar for mcgarry101

Hi, I am fairly new to VB.NET and i'm just wondering if anyone can help with a problem I am having. I am looking to pass some parameters to a vb.net application fwhen I call the app from another program (written in oracle forms). My question relates to how these …

Software Development ide oracle vb.net
Member Avatar for Carlosky5
0
925
Member Avatar for RonKevin

Okay so here's the thing...I came across a code of my classmate that i'm not familiar with...the only thing i know is the printf is the same as cout...right??can someone explain this in iosteam.h form?? #include <stdio.h> void bubble_sort(long [], long); int main() { long array[100], n, c; printf("Enter number …

Software Development c++
Member Avatar for RonKevin
0
177
Member Avatar for admiralis

Hi this is a PSEUDOCODE. I don't know if is the right place to ask. Can someone takes a look of my pseudocode? I am not sure if I understood the assignment. Thanks! Equinox Nursery maintains records about all the plants it has in stock. The nursery needs a program …

Software Development java
Member Avatar for JamesCherrill
0
195
Member Avatar for haroonrulz

Dear C++ Gurus/Experts, I am writing a program to automate excel.My program is working well when I use integer (Write/Read) in excel.My program also works well when I use string.But the issue appears when I use array of strings.I am getting the issue as below **"error C2664: 'SysAllocString' : cannot …

Software Development c++ microsoft-office
Member Avatar for Ancient Dragon
0
312
Member Avatar for Farhad.idrees

Someone can tell me where i m doing mistake in order to show Autogenerate Id everytime with increasing of one. string conn = @"Data Source=FARHAD-PC\SQLEXPRESS;Initial Catalog=shop;Integrated Security=True"; myconnection = new SqlConnection(conn); myconnection.Open(); string query_Id = "select * from tblEmployee"; mydataadapter = new SqlDataAdapter(query_Id, myconnection); mydataset = new DataSet(); mydataadapter.Fill(mydataset); try …

Software Development dataset open-source
Member Avatar for Randlathor05
0
200
Member Avatar for MonsieurPointer

Hello DaniWebbers, I have the following classes in their respective namespaces; so far so good. When I have received data from the server, the AsyncTcpClient's *DataReceived* event gets raised and the Client's *OnReceivedData* method gets called. Also so far so good. The one thing that does not work (and which …

Software Development client-server socket-programming vb.net
0
146
Member Avatar for ax33m144

Using C-Programming nested for() loops, write a program that displays all possible combinations of a 6 bit binary number. **Sample Run: 000000, 000001, 000010, 000011, ...........111110, 111111** Can anybody please help me in solving this question?

Software Development c
Member Avatar for I_m_rude
0
2K
Member Avatar for Khav

Hi Guys i need help on my school project.Currently i want to validate some important data in a textbox as soon as they are entered by the user Here is my coding........ Private Sub Textbox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Textbox1_Leave Call ValidateTextbox(Textbox1.Text) - Set saved = …

Software Development vb.net
Member Avatar for Khav
0
247
Member Avatar for noktasizvirgul

I initialize the selenium like [CODE]public void setUp() throws Exception { setUp("http://localhost/", "*firefox"); } [/CODE] and I write my test in the method like [CODE]public void testUntitled() throws Exception { boo(); foo(); }[/CODE] But it gives error like [CODE]java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: …

Software Development java session
Member Avatar for Grace Gao
0
870
Member Avatar for Eagletalon

Hi there everyone... Allright my setting is this: I have written an C++ application that receives input from a user app, converts it to XML, and then posts it to our ERP (Syspro) through e.net COM objects using ActiveQt and in specific QAxObject... The problem is this: QAxObject inherits from …

Software Development c++ qt queue user-interface
Member Avatar for Eagletalon
0
999
Member Avatar for onlineboy18

Hi, I have a form with some textboxes comboboxes. On editing there is a combobox for selecting which user to edit. On selecting a user, i have managed to fetch all the records from the db. But now here the problem occurs -> There is a combox (say deptno) which …

Software Development c#
Member Avatar for onlineboy18
0
169
Member Avatar for admiralis

Hi I am new in this forum. I need some help with this code and is for my intro to programming class. I did it following a pseudocode I found in other website but I am totally confused now. It is not working. Do nothing. Thanks This is the assigment …

Software Development java java-swing
Member Avatar for admiralis
0
277
Member Avatar for jalpesh_007

I have one CSV file containing so many attribute but i want max and min values of particular specified columns. I have write following code for finding minimum value from each specified column,but i got only minimum of last column, not all column. In dataset.csv file contains 25,185,98,65 15,-20,6,95 17,20005,63,-78 …

Software Development dataset java
Member Avatar for Taywin
0
3K
Member Avatar for HibaPro

i have a combobox that binding to table , what i need is wneh i retured the data i dont want to duplicate entries for example i have combobox with item BOQ Section and the item as the following "concrete , concrete, concrete , Utilities , utilities, concrete, AirCondiotioning ,utilities, …

Software Development vb.net
Member Avatar for Reverend Jim
0
180
Member Avatar for PM312

i am trying to add values in two coloums of data grid view. Howeaver the result is values are concatenated instead of adding. i.e 10+25 result is 1025 and not 35. DgvLedger.Rows.Item(GRNO).Cells(6).Value = DgvLedger.Rows.Item(PRNO).Cells(6).Value + DgvLedger.Rows.Item(GRNO).Cells(3).Value howeaver multiplaying two coloums value result is correct.

Software Development vb.net
Member Avatar for PM312
0
133
Member Avatar for HibaPro

How i can hide or remove a column in DGV??? i use this code : DGVname.columns.remove(colindex) but the column didnt remove it jsut became the last column

Software Development vb.net
Member Avatar for Reverend Jim
0
113
Member Avatar for dantheman4

Hi I am just starting to learn about java.I am trying to calculate BMI of an individual using the JOptionPane.showInputDialog method who I am asking to enter 4 things first name,last name,height in inches and weight in pounds. I want to show the BMI using JOptionPane.showMessageDialog method showing their full …

Software Development java java-swing
Member Avatar for NormR1
0
1K
Member Avatar for every1play

any idea on how to change strcpy in c++ int main() { //all the winning combination strcpy(winKey[1].key, "123"); strcpy(winKey[2].key, "456"); strcpy(winKey[3].key, "789"); strcpy(winKey[4].key, "147"); strcpy(winKey[5].key, "258"); strcpy(winKey[6].key, "369"); strcpy(winKey[7].key, "159"); strcpy(winKey[8].key, "357"); }

Software Development c c++
Member Avatar for deceptikon
0
249
Member Avatar for alnor.ismail

i need a intr0ducti0n ab0ut visual basic...any s0me0ne t0 help me... :'( ..

Software Development visual-basic
Member Avatar for mustaffa hasan
0
145
Member Avatar for ryantroop

Which module would I look into to capture things like disc read/write speed, as well as possibly capture what the disk is reading/writing at the time. I would like to make a diagnostic module to check if my disc speed is taking a hit, as I rebuilt a PC and …

Software Development python
Member Avatar for ryantroop
0
99
Member Avatar for PinoyDev

Good day! I have started a little inheritance on my simple class that takes the addition function of two numbers on the other class but the sum is always zero even if it is not supposed to be. Here is my code so far: #include<iostream> using namespace std; class Addition …

Software Development c++
Member Avatar for iamthwee
0
150
Member Avatar for Bile

-->>Hi,I'm having an Access database (.mdb) with Members table and column Date registered just for an Example with datatype as text. -->>Now I have an Interface that I need to use it to get all registered members within the specified range of dates by using the Datepickers (1. Is for …

Software Development listview sql visual-basic
Member Avatar for Bile
0
139
Member Avatar for ihiroshi30

hi my name is hiroshi.. im new with java programming.. my prof gave us an assignment to make a calendar.. i don't know what to do.. my head going crazy i dont know what is wrong with my code.. please help me T_T your big help is much appreciated.. import …

Software Development java java-swing
Member Avatar for JamesCherrill
0
244
Member Avatar for henry.sj.shin

Hello All, I'm trying to write a function that outputs the reverse of the input. I know that you can use the built-in list.reverse() or S[::-1] methods, but I want to make it using the 'for' loop. My code initially is: def reverse(S) for x in S: print(x, end = …

Software Development python
Member Avatar for TrustyTony
0
394
Member Avatar for ALMOSTunseen

Got some homework here that I need help with. I've been struggling with trying to get the program to pick out the numbers and compare them using "<" and ">" Write a program that gets a list of integers from the user and computes the minimal and maximal number appearing …

Software Development c
Member Avatar for ALMOSTunseen
0
55
Member Avatar for linabeb

hi im back with the new problem and the same problem..huhuh first is the same problem which is why does the data is not being inserted to the db..below is my full code for the custhome page 'Imports WindowsApplication1.LoginForm1 Imports System.Data.OleDb Imports System.Text.RegularExpressions Public Class Custhome Private _OrderID As Int32 …

Software Development microsoft-access open-source
0
91

The End.