199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Juan-Ellyn

Hi I need help on this please.I have to write a void function that reads data from the following file:5 2 2 670.60 6 4 2 890.80 2 2 0 220.00 10 8 1 1340.60 10 4 3 1430.70 4 0 0 460.30 5 3 1 700.00 7 5 2 …

Member Avatar for Juan-Ellyn
0
176
Member Avatar for sarfrazashfaq

HI All! I am creating a Python function that should set environment variable. My simple code is [I]#!/usr/bin/python import os os.environ['FK_DBO_PASS']="12345" print "After setting Environment Variable is ",os.environ['FK_DBO_PASS'][/I] When i execute this code file in command prompt it is giving me this result [I]After setting Environment Variable is 12345[/I] But …

Member Avatar for BearofNH
0
2K
Member Avatar for Saiiiira

I define a Decider PDA, a PDA (nondeterministic or deterministic) that does not loop for any input(I mean that it halt for every input,accept or reject). I want to know more about these PDAs and the class of functions they compute. Actually I didn't find about it in texts... I …

Member Avatar for Saiiiira
0
284
Member Avatar for parijat24

[CODE]hi I am generating program to find keys in adictionary having same value in abig dictionary please see the example [B]cluster1 [/B]ENSTRUP00000000001 ENSTRUP00000000001 ENSTRUP00000001433 ENSTRUP00000030987 ENSTRUP00000031348 ENSTRUP00000033778 ENSTRUP00000034939 ENSTRUP00000036445 ENSTRUP00000041507 [B]cluster2[/B] ENSTRUP00000000004 ENSTRUP00000000004 ENSTRUP00000000270 ENSTRUP00000004241 ENSTRUP00000010453 ENSTRUP00000012064 ENSTRUP00000015898 ENSTRUP00000019830 ENSTRUP00000024116 ENSTRUP00000026101 ENSTRUP00000027201 ENSTRUP00000028303 ENSTRUP00000028313 ENSTRUP00000029002 ENSTRUP00000031498 ENSTRUP00000032796 ENSTRUP00000032823 ENSTRUP00000033498 ENSTRUP00000036274 …

Member Avatar for woooee
0
128
Member Avatar for rt.garg1991

I want some help in sending Email through my Gmail account. I don't want this for spamming purpose. I am developing Complaint System for my University and I want to send Email whenever any Complaint is launched. I already tried the following code but I am getting "Failure Sending Email" …

Member Avatar for rt.garg1991
0
154
Member Avatar for sowheredoigo
Member Avatar for emorjon2

Hi there! got some problems. I've developing a multiplayer game there's a class called userServer, that use a file to handle all incoming information. but I can't write to the file for some reasons. here's the code: [CODE] /** * @(#)userServer.java * * * @author * @version 1.00 2011/2/16 */ …

Member Avatar for jon.kiparsky
0
318
Member Avatar for ahmed_fawzy

Hey Guys i wonder if any one could help me in setting a background image for JDesktopPane instead of changeing background colors... i'll be gratefull for Detailed Describtion of any written code Thank you people in advance.

Member Avatar for mKorbel
0
2K
Member Avatar for Saiiiira

Hi. If I define Poly-time functions, the functions that are computable by a turing machine in maximum polynomial(n) time, which n is size of input. Is the class of these functions recursively enumerable? I think that this Poly-time is the famous P-class in complexity,but as I searched I didn't find …

Member Avatar for Saiiiira
0
137
Member Avatar for emorjon2

Hi there! I have some problem with java. I developing a multiplayer applet, there a class called userServer registry new users and logging in other users. the problem is, that I don't know how to append in a array. [CODE] user Users[]; int cnt=0; Users[cnt] = new user("emorjon2", "password"); cnt++; …

Member Avatar for JamesCherrill
0
168
Member Avatar for puvi

hi frens.. i am working on a project, where, i had to add rows to table dynamically on click of button. i got to work that part, but got stuck with getting to save the data entered into db. i have not missed to add "[]" to the names in …

Member Avatar for puvi
0
163
Member Avatar for get connected

I am building an application that contains data that needs to be fed out to seperate groups of people. Sending them emails is the only way to do it but this takes ages to do. Does anyone know of a way to send emails through lotus notes via vb.net code. …

Member Avatar for lolafuertes
0
494
Member Avatar for aaronmk2

I always thought that if I used a switch statement and enter an option not specified the default would catch it. However, if I press enter then enter an option I get a run time error. How would I fix this? I am only including part of the code, if …

Member Avatar for Mitja Bonca
0
118
Member Avatar for Taimoor Rana

Hello Guys, I know how to draw line and shapes but how can i draw a parabol??? ( i need a 2D line) Any suggestion or pointers are appreciated!

Member Avatar for Ezzaral
0
91
Member Avatar for RaigaX9

Hello, I'm having a small problem with my program for assembly. I have to write an assembly language that finds the maximum of y = x^6 – 14x^2 - 56x for the range -4 ≤ x ≤ 6, by stepping one by one through the range. Here is my code …

Member Avatar for RaigaX9
0
204
Member Avatar for mary123

hi, I'm a web developer and very new to Cold Fusion. I understand its abilities and wanted to show management how data can be tracked for one of our programs. In the code below the employee name, division, branch_section_office, date, and title of meeting are required. After that I would …

Member Avatar for mary123
0
146
Member Avatar for dos_killer

when i write import win32print in my python command line (IDLE) it works fine and it is imported... but when i write import win32print in my py file then it gives an error says no module named win32print why am i not able to load the module when writing the …

Member Avatar for dos_killer
0
103
Member Avatar for KazenoZ

Hello, I'm sorry for the bad title for this, but I honestly have no idea how to define this by few words. My problem is this, I need to read a bunch of data from a text file into an array, in the theoratical aspect, it's all nice and should …

Member Avatar for KazenoZ
0
125
Member Avatar for mrhankey

hi, i have a site which i want to generate a weekly report of activity from. the monthly report should be fine as i could set the query to format the date into month and where "date" is NOW() however how can i generate a weekly report in mysql? any …

Member Avatar for mrhankey
0
5K
Member Avatar for tuckerdwz2025

I'm new to VB and am writing a basic revenue calculator for class and for some reason I can't get it to display the computed values in the label fields when I run the form. I've been through the example code provide to me, my textbook, google (how I found …

Member Avatar for tuckerdwz2025
0
207
Member Avatar for JordanHam

I am using getline to read a CSV file. The line it reads looks something like "1/24/2010 6:19 1/24/2010 6:59 Merrill - Valley Farms yhy 69 Vegetation 55" The getline works but, I need to be able to calculate time days between a date the user inputs and the date …

Member Avatar for JordanHam
0
226
Member Avatar for rjbrjb777

i have a program in c language that reads csv file.. now i want to read data column wise.. i want the whole program..which will take file name as command line argument and will fetch second column from the file.. lets assume file is like below.. aggromat,"1","abc","8903" aggromat,"2","abc","ddds" reply as …

Member Avatar for rjbrjb777
0
2K
Member Avatar for Srynx

Hi! Just a quick question math.modf(x) is a python function that returns the fractional and integer parts of x. Both results carry the sign of x and are floats. Therefore, if I write, for instance, 5.4 to the python 2.6.6 command line I think I should get (0.4, 5.0) but …

Member Avatar for Srynx
0
145
Member Avatar for micmo

Hi all, I have code which allows a client console to connect to a server console using .NET Remoting with a shared dll, and then perform some operations. The only problem I'm aving, is that I want the main bulk of the programming logic to be performed on the server …

Member Avatar for zachattack05
0
226
Member Avatar for amiref

Hi I am beginner in C#.please tell me what is problem in this code : using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] firstName={}; string[] lastName={}; Console.WriteLine("Please type your firstName : "); for (int i = 0; i …

Member Avatar for Momerath
0
118
Member Avatar for mitrious

given the following code [CODE]bool space(char c) { return isspace(c); } bool not_space(char c) { return !space(c); } template <class Out> void split(const string& str, Out os){ typedef string::const_iterator iter; iter i = str.begin(); while(i != str.end()){ i = find_if(i, str.end(), not_space); iter j = find_if(i, str.end(), space); if(i != …

Member Avatar for mitrious
0
150
Member Avatar for tookerello22

hi, im trying to display the attribute name of the parent node once the input matches a town name: my xml is: [CODE] <phonebook> <area code="022"> <town>mallow</town> </area> <area code="023"> <town>bandon</town> <town>bray</town> </area> <area code="024"> <town>youghal</town> </area> <area code="025"> <town>fermoy</town> </area> </phonebook> [/CODE] and the method is: [CODE] private void …

Member Avatar for tookerello22
0
211
Member Avatar for ram619

I have written this code for insertion sort but, its not generating any output. could you please tell me whats wrong in this code Thanks!! [code=c]#include<stdio.h> #include<conio.h> int main() { int arr[25]={1,2,3,4,5,6,7,8,9,21,15,16,18,22,24,72,77,79,91,62,27,35,11,90,110},i,temp=0,j,a; int *p; for(i=0;i<25;i++) { if (arr[i]>arr[i+1]) { temp=arr[i]; arr[i]=arr[i+1]; arr[i+1]=temp; p=&arr[i]; while(i!=0) { if(*p<arr[i-1]) { temp=*p; *p=arr[i-1]; arr[i-1]=temp; …

Member Avatar for Adak
0
187
Member Avatar for SaberExcalibur

I really need your help on this. What is deadlock? Can someone explain to me in the simplest form what is deadlock in operating systems. How can a process be deadlocked or not. pls. give me examples of resource allocation graph then explain .. I've been reading about deadlocks quite …

Member Avatar for Momerath
0
314
Member Avatar for AdriftUniform

Hi, I am using a prototype PayPal payment system which does not ever need to properly work, but I am having trouble writing to the database as well as redirecting to the PayPal payment page at the same time. Here is the form: [code=php] echo '<form name="purchase" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">'; …

Member Avatar for AdriftUniform
0
229
Member Avatar for Erlendftw

Hello there DaniWeb, im switching from vb.net to c# and i think its alot better already, i just wonder about a thing How can i insert data into a variabel? this is my code: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; …

Member Avatar for Erlendftw
0
271
Member Avatar for Swiftle

Hi, I'm having trouble figuring how to search for a specific element of a class in a list. I saw some examples of find() but they only show how to search for a string or an int. Another thing is modifying elements of a class. So let's say I have …

Member Avatar for Swiftle
0
148
Member Avatar for Mahesha999

Hi, I tried installing MS SQL server 2008 on win 7 Ultimate x86. It was slipstreamed installation with SQL SP1. I got 7 errors during installation. All of them are showing almost similar messages (but different event ids)except the 2nd error (which was about failure to open some registry). The …

Member Avatar for Mahesha999
0
471
Member Avatar for iammirko

I am a newbie to network programming. I been trying my luck with winsock and am stuck with no idea what to do. Here is a snippet of my code: [CODE]//Bind it to a TCP/IP port SOCKADDR_IN SockAddr; SockAddr.sin_port=24; /*Port to be used*/ SockAddr.sin_family=AF_INET; /*Connection Type: TCP/IP*/ /*Listen on IP …

Member Avatar for iammirko
0
241
Member Avatar for raizor89

Hey everyone, I have a task that I have to make a windows form application, that calculates the number factorial of any positive number, and the result shows the multiplication of factorials. Like here, 5! = 1*2*3*4*5* = 120 the form design is simple, 1. label1 ( enter the number) …

Member Avatar for ddanbe
0
1K
Member Avatar for kayhantolga

I need ascii number for forward keys. i found it but it has two number examble first -32 and second 80?? please help

Member Avatar for kayhantolga
0
88
Member Avatar for bestex

Hi all, heres my code [CODE]Dim con As New MySqlConnection("server=localhost; user id=root; password=phoenix0931; database=accounts;") Try con.Open() Dim dat As MySqlDataAdapter = New MySqlDataAdapter("SELECT customers_id,customer_name,customer_add FROM customers ", con) Dim dt As New DataSet dat.Fill(dt, "customers") ComboBox1.DataSource = dt.Tables("customers").DefaultView ComboBox1.DisplayMember = "customer_name" ComboBox1.ValueMember = "customers_id" Catch ex As Exception MessageBox.Show(ex.Message) Finally …

Member Avatar for bestex
0
121
Member Avatar for dmaclam

So I am currently writing a custom proxy server to handle http requests on a local computer. I am able to get the headers but am not sure how to then send them to the browser. here is my current source code: [[CODE] Imports System.Net Imports System.Net.Sockets Imports System.Text Imports …

Member Avatar for dmaclam
0
1K
Member Avatar for bestex

I dont know what code to put Here? to get the exact value of my record on my database here is my code [CODE] Protected Const strConnPubs As String = "server=localhost; user id=root; password=phoenix0931; database=accounts;" Protected strPubsCMD As String = "select customers_id, customer_name from customers" Protected dvName As DataView Protected …

Member Avatar for bestex
0
213
Member Avatar for yousafc#

if (txtMath.text >= "90") lblgrad.Text = "A+"; else if (txtMath.Text >= "80") lblgrad.Text = "A"; else if (txtMath.Text >= "70") lblgrad.Text = "B"; else if (txtMath.Text == "60") lblgrad.Text = "c"; else if (txtMath.Text == "50") lblgrad.Text = "D"; else if (txtMath.Text == "50") MessageBox.Show ("You are failed in your …

Member Avatar for ddanbe
0
90
Member Avatar for Howdydoody

Hey guys, The question on the homework is "Write a function that returns a count of the nodes that contain a value less than the parameter value." I was wondering if someone could point me in the right direction maybe with some pseudo code or something of the like. ive …

Member Avatar for Howdydoody
0
139
Member Avatar for phplover

Hi, I have a password reset form and a user can enter either there username or email in one text box. One problem i am having is with validating the data. I have a username regex function that works fine to validate username and uses php's inbuilt FILTER_VALIDATE_EMAIL. Basically when …

Member Avatar for phplover
0
705
Member Avatar for Dha...1

I'm quite new to Game Programming. I'm currently learning C++ at its deepest... ;) And, it seems that there are just too many options available to get into the industry. From searching and digging in this very forum and other resources, it seems that C++ is the best suited language …

Member Avatar for BirdaoGwra
0
137
Member Avatar for alice06

Hi all I hav written a very small shell script in bin bash & its not working. The script is :: [CODE]#!/bin/bash i=1.0 while [ $i -le 3.0 ] do i=`expr "$i + 0.5" | bc`; echo "i=$i" done [/CODE] The error is : [CODE]line 6: [: 1.0: integer expression …

Member Avatar for alice06
0
92
Member Avatar for micmo

Hi guys, I've been searching for hours now and haven't yet found a good source of C# information for what I need to do. The general gist is this: I have 1 Client app (a simple windows form which gathers data) and 1 Server console app (which holds the business …

Member Avatar for micmo
0
656
Member Avatar for micmo

Hi Guys, I'm currently developing a project using WCF (hosted on local IIS) which connects to a local SQL database using LINQ to get data. My problem is that when I run the code, 9/10 times it'll fail with the "Specified Cast Is Not Valid" error, but the other 1/10 …

Member Avatar for micmo
0
1K
Member Avatar for jpknoob

Hi I am having some issues with sage pay php form integration. I have built a shopping cart that selects product information from a database and am having issues integrating it with the kit. When I test against the sage servers, everything passes except the cart contents. Is there anyone …

Member Avatar for jpknoob
0
169
Member Avatar for r0n

hello everyone, got issue regarding reading duplicate records in a text file... i need to read the file and look for any duplicates data/keys in the text file and write them to another file (all the duplicates records)... how can i do that, in looping...:-/ any help...:) thanks!

Member Avatar for r0n
0
2K
Member Avatar for keicola

hi. i made a function which is supposed to create a binary tree from preorder and inorder traversals using recursion. i did this by making arrays for the left subtree and the right subtree in preorder and in inorder at each call of the function. makeNode() puts the data into …

Member Avatar for keicola
0
202
Member Avatar for robbyaube

Hello, I am faily new to ASPX programming and needed some help. I have a web page with a button. As a test, I am trying to create a procedure on the button click event that will run an SQL statment to select the Program for which a user belongs …

Member Avatar for robbyaube
0
321

The End.