199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blessedboy123

Hey i have 1000 replicate files with a file name looks like below a.out1 a.out2 a.out3 ..... a.out1000 each file contains 12 rows and 12 columns including the header. a.out1 looks like this n col1 col2 col3 col4 ...........col12 1 0.3 0.1 0.1 0.11............0.5 2 .................................... 3 4 5 6 …

Member Avatar for mitrmkar
0
102
Member Avatar for krosty4782

Hi guys. I have a question. How i could do to display a panel of options if the cursor click in a item of the listview ? I know about the MouseEvent and how to select the right click event, but i lost to apply that click in a item. …

Member Avatar for Kimpl
0
126
Member Avatar for Peter Ferber

I have a form in VB.Net (2008) that includes a Data Grid (DataGrid1) and an ADO Data Control 6.0 (ADODC1), which were inherited from VB6 in a VB6 to VB.Net upgrade. The application in VB6 ran perfectly; and my VB.Net version also runs perfectly, but not without first generating some …

Member Avatar for codegans
0
336
Member Avatar for Skillzilog

"SELECT * FROM customer where customer_ID LIKE '%" & Trim(TextBox1.Text) & "%'" good day everyone, im having a problem with querrying i want to query from the field customer_ID,customer_Name,customer_MI,customerLname and textbox 1, 2, 3 and 4 i already tried select * from customer where customer id like textbox1.text or customer_name …

Member Avatar for crapulency
0
171
Member Avatar for novice20

hi... how can this be done using python 1.prompting user for a file location from within a script 2.reading the file location entered by the user 3.storing it in a file like object

Member Avatar for novice20
0
85
Member Avatar for ranu jain

[CODE]Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim conn As New SqlConnection Dim cmd As SqlCommand Dim dp As New SqlDataAdapter Dim ds As New DataSet Dim i As Integer Dim str As String = "UPDATE aspnet_Membership SET aspnet_Membership.Email='" & Email.Text & "' WHERE UserId='" …

Member Avatar for sujimon
0
102
Member Avatar for Tiny_trixer

I'm just playing around with C++ as a preperation for coming assignments and well, exams. And I'm a little stuck with the switch statements. I've done this simple switch just to test the functions: [CODE] #include <iostream> using namespace std; int main(void) { char input; cout << "\nChoose function.\n1. Test …

Member Avatar for Tiny_trixer
0
117
Member Avatar for sooriamca

Hai i need a coding for Login and its validation in asp.net using vb.net.. Am currently using SQL Server Express Edition 2005 software as my backend...

Member Avatar for sujimon
0
166
Member Avatar for snehalj

[CODE]<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> &nbsp; &nbsp; &nbsp;<a href ="default.aspx">Back </a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; …

Member Avatar for sujimon
0
168
Member Avatar for macobex

I'm in the middle of a project development, and I'm frustrated with this problem. Im running XAMPP under Ubuntu 10.04 (Lucid Lynx) mySQL version : Ver 14.14 Distribution 5.1.41 The problem is that, mySQL is accepting null values even if the field is declared with the NOT NULL constraint. Example: …

Member Avatar for macobex
0
265
Member Avatar for GHETTO COWBOY

Hi I'm currently working on a college programming assignment and for this assignment I need to create a contact list of first name and last name and store them as the program runs I may not be able to explain this well but I understand what i have to do …

Member Avatar for csurfer
0
134
Member Avatar for ranu jain

I am using ASPNETDB.mdf database (default database) in my application . to create a user i am using CreateUerWizard .i want to costomize and want to add new field-"Contact No" in it . how can i store contact no in database? i m working in vb.net with visual stdio 2008 …

Member Avatar for ranu jain
0
71
Member Avatar for gunjannigam

I have a database hosted at a remote location. I want to access that database. But I keep getting the error [CODE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'username'@'%' to database 'db' [/CODE] This is the code that i have written [CODE] Connection con = null; Class.forName("com.mysql.jdbc.Driver"); String username = "username"; …

Member Avatar for gunjannigam
0
2K
Member Avatar for Dean_Grobler

Hello there, In one of my projects I'm working on currently. I have a 'cancel' button in my GUI window that is suppose to close the JFrame the button resides in. I have done some research on the web about this. But it seems like one has to write a …

Member Avatar for masijade
0
133
Member Avatar for akvlko

Hey Friends! I have some tables by which i have to select the data to display in search result. Table Details user_type Table [CODE] int id string user_type [/CODE] ticket Table [CODE] int id 11 not_null primary_key auto_increment int user_id 11 not_null multiple_key int type_id 11 not_null multiple_key string ticket_type …

Member Avatar for akvlko
0
118
Member Avatar for Priyanka88

Hello, I am using vb6 as front end and oracle as back end. i want to insert new row in database using adodc. i put adodc1.recordset.addnew on command's click event....do i need to mention adodc1.recorset.save or adodc1.recorset.update? and while executing the code text boxes are becoming blank whenever i goto …

Member Avatar for AndreRet
0
809
Member Avatar for bsewell

Greetings all, I'm trying to write a CMS for a photo gallery, and I worked out that the best way would be to upload the images to a directory and have a mysql table to store the relative location of the images for later use. I have 1 problem, which …

Member Avatar for pritaeas
0
351
Member Avatar for lulus

i´m trying to transfer the info that appears on a textbox to a label in another Form. I wrote this: Me.form9.label5.text=Form2.textbox3.text could you please help me thanks!!

Member Avatar for AndreRet
0
95
Member Avatar for qinise4

Hi Everyone I am currently writing a program in C++ which uses a very big matrix, I have been told to try and store the matrix in disc and try to retrieve only the chunks of the matrix I will be needing and keep swapping them around. The problem is …

Member Avatar for qinise4
0
2K
Member Avatar for macla

Hi, I want to install the softwares remotely.Backups of these software are with my Local system.Now i want to install it on another computer on lan or wan using c or c++ .... Any ideas ?

Member Avatar for macla
0
104
Member Avatar for c++ failure

The Green Tree Service Company offers the following services to its customers: * tree planting - $35 for a small tree, $100 for a medium tree, $250 for a large tree * tree removal - $150 per tree * tree trimming - $50 per hour * stump removal - $75 …

Member Avatar for c++ failure
0
153
Member Avatar for gotjeff5

So here is my problem. I have been working on a program that impliments a tic tac toe game, but for some reason my array gets messed up after the switch statement in playerX function. If you could take a look that would be great. Heres my program: [CODE]#include<iostream> using …

Member Avatar for Intrade
0
140
Member Avatar for TySkby

So, not so much of a coding question but more of a development question. [B]Some background:[/B] I have finished writing a scheduling program (in part thanks to the folks at Daniweb) in PHP (using MySQL) for a small business that sells musical instruments, music lessons, and the like. The program …

Member Avatar for TySkby
0
230
Member Avatar for iwanttolearnc

ive been trying my hand on using modules to make my codes cleaner. i started off with a simple case. i created a module, usermodule.py, which i will pass to a main program openme.jpg - 640x480 [CODE] #this is usermodule.py import Image #image = Image.open ('openme.jpg') #imload = image.load() def …

Member Avatar for iwanttolearnc
0
133
Member Avatar for novice20

hi... am using pysnmp module to do an snmp get on a USB key status from pysnmp.entity.rfc3413.oneliner import cmdgen #--query on ccmSDIDUKeyStatus errorIndication, errorStatus, errorIndex, varBinds = cmdgen.CommandGenerator().getCmd( cmdgen.CommunityData('xxx', 'xxx', 1), cmdgen.UdpTransportTarget(('192.168.5.157', 161)), (1,3,6,1,4,1,18489,1,2,4,2,8,0)) varBinds gives the following: [(ObjectName('1.3.6.1.4.1.18489.1.2.4.2.8.0'), Integer('2'))] I need to print the key status, based on varBinds, …

Member Avatar for novice20
0
994
Member Avatar for lou38

I need help with this assignment, I dont know where to start. Here is what the assignment is: Write a program that finds both the largest and smallest of several integers. Assume that the first integer read specifies the number of values remaining to be entered and that the first …

Member Avatar for WaltP
0
460
Member Avatar for bouhbob

Hi, I used mysql_real_escape_string to insert a data with apostrophe, in the database, using php. This works. But when I want to select this data and display it in a form's field, it does not work. What happens is that the data before the apostrophe is displayed in the field, …

Member Avatar for vibhaJ
0
1K
Member Avatar for iraqi4life

Basically, I have a project which I need create a output format of DD/MM/YYYY - Which I used in a toString, it works fine. I then used a switch case for all the days in a month, and of course I took into consideration the leap year. When I try …

Member Avatar for islam-morad
0
102
Member Avatar for Annettest

Hello all, I have what is probably a silly question... I want to fill a 2-dimensional array called instantAct with values from another 2-d array called mS. The two arrays have different dimensions, but they have the same number of values. I want my loop to take values from certain …

Member Avatar for chief427
0
771
Member Avatar for Clocker

hi guys i have a form that calculates the medicine charges of a patient then display the data in listview, i want when i add a new medicine charge the total charge of the medicine to be added in to the previous total charge so i will get the new …

Member Avatar for lolafuertes
0
190
Member Avatar for yari

I really need help with this...i'm trying to make a game that where user guesses a word and it tells the user 1: the right number of letter in the right place 2: the number of letter that is right in the wrong place but when i test it out, …

Member Avatar for TrustyTony
0
2K
Member Avatar for WaleedaaN

hello, this my code how i can do it [CODE]$word = "a,b"; echo $first; /// a echo $second; /// b [/CODE] thanks

Member Avatar for terabyte
0
204
Member Avatar for baconswife

I have typed this many ways into dev-c++ trying to figure out how to figure out the output but it always comes back with errors no matter what headers I have used and other things. Can anyone give me some ideas? I don't want the answer, just ideas on how …

Member Avatar for mike_2000_17
0
1K
Member Avatar for templersstorms

Ok, basically, I have a datagrid with a button column, and the goal is, to be able to load specific things into a second datagrid depending on which rows button was clicked. But I seem to be completely unable to figure out how to get the row index. The program …

Member Avatar for templersstorms
0
100
Member Avatar for mybluehair

I am writing a script that uses curl to grab data from my web server. Unfortunately, thats only a one-way communication. What I would like to do is send a php file some info through curl, then grab the info that php returns. But I am not sure how to …

Member Avatar for fornandakishore
0
184
Member Avatar for zathura

i dont know what happen..when i complie..there's error... so..what suppose i do??please.. [CODE]#include<dfp.h> CMatrix CDfp::operator()(double(*p)(CMatrix&),CMatrix& X0,double e) { pfun=p,n=X0.getrow(); X.set(n,1),S.set(n,1); X=X0, error=e; CMatrix B(n,n),B0(n,n); CMatrix TiDu(n,1),TiDu0(n,1); CMatrix DG(n,1),DGT(1,n),DX(n,1),DXT(1,n); CMatrix E(n,n); CDiffer differ; double a; double dfm; int flag(0); int k(1),c(1); for(int i=1;i<=n;i++) B(i,i)=1; B0=B; TiDu=differ(pfun,X,error/10); dfm=TiDu.getmod(); ofstream out(".//result.txt",ios::ate); for(k;k<=n;k++) { …

Member Avatar for sundip
0
138
Member Avatar for saliza

#include <iostream> #include <conio> # include <string> int main() { double avgwt,avgtt; char pname[10][10], c[10][10]; int wt[10],tt[10],bt[10],pt[10],t,q,i,n, s; int sum=0,sbt=0,j,ss=10,arr[10]; cout <<"\n\n\t\t\t----Priority Scheduling----"; cout <<"\n\n\tEnter the number of processes : "; cin >>n; for(i=0;i<n;i++) { cout <<"\n\n\n\ntEnter The Process Name : "; cin >>pname[i]; cout <<"\n\tEnter The Arrival Time : …

Member Avatar for saliza
0
317
Member Avatar for pythonlearning

When handling command-line arguments, I roughly know getopt will work, but have never used it before. The documents on some books seems not very informative, if read multiple arguments from the command line, is it right to use sys.argv[1], sys.argv[2], etc to assign the arguments to respective variable in the …

Member Avatar for pythonlearning
0
172
Member Avatar for tcsikany

I have been working on a database in MS Accesss. I am trying to generate a query in the SQL view but the introduction to SQL class I am taking did not cover how to incorporate multiple WHERE conditions. Here is the query so far... SELECT intFID, COUNT(*) AS TotalAudits, …

Member Avatar for tcsikany
0
92
Member Avatar for Bigbrain99

Hi guys, I'm still new to C++ and get confused by the codes below.. [CODE]class FLATMATE { string name; public: FLATMATE() { name = "";} FLATMATE(string n){name = n;} string getName(){return name;} void setResident(string n){name = n;} };[/CODE] [CODE]class DUTY { FLATMATE resident; //name of the flatmate int RequestOffer; //amount …

Member Avatar for Bigbrain99
0
119
Member Avatar for appunu

Hello guys, I have coded something which would return the contents of a excel sheet as a hashTable. The code is [CODE] public Object[][] validDataProviderScenarioOne() { excelWorker excel = new excelWorker(); String pathValue = excelWorker.LocatingXls("Data.xls"); Hashtable<String, String>[] hashDrv =(Hashtable<String, String>[]) excel.contentReading(pathValue, "xxxxx_Login"); Object[][] obj = new Object[hashDrv.length][1]; for(int i=0; i<hashDrv.length; …

Member Avatar for kramerd
0
140
Member Avatar for Barrett1
Member Avatar for heidik

Could you please have a look at the code and tell me the reason why it is giving me an error? [code] int timeDiff(std::string startDateTime, std::string endDateTime) { std::string strtYYYY, strtMM, strtDD, endYYYY, endMM, endDD; int strtY, strtM, strtD, endY, endM, endD; strtYYYY = startDateTime.substr (0, 4); cout << "String …

Member Avatar for ixmike88
0
144
Member Avatar for LevyDee

Hi guys, as the thread says, im new to java. My department is more in the c++ side of things. My form class... [code] import javax.swing.*; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import java.util.Vector; public class DogForm extends JFrame { private String _adminLogin = new String("admin"); …

0
67
Member Avatar for sid78669

I recently had an assignment for an advanced coding class where I was to create a Binary tree from inorder and preorder traversals. I first started out by creating my ADT for binary trees and working with that to create a new tree. The way I worked it was that …

Member Avatar for arkoenig
0
155
Member Avatar for gtr1971

Hello all! I'm a newbie to Javascript and I have what seems to be a simple task that has stumped me. I have a parent/child scenario where the child is a pop-up "control panel" with hyperlinks that control the parent page. The idea is to click a link and it …

Member Avatar for gtr1971
0
12K
Member Avatar for insanely_sane

Yeah... I have a headache... So I have the following code: [CODE]public class inc { public static void main (String args[]) { new inc(); } public inc() { System.out.println (addTwo(7)); } public int addTwo(int n) { System.out.println (n); if (n < 1) { return 2; } else { return addTwo(n-1)+2; …

Member Avatar for insanely_sane
0
166
Member Avatar for bonett09

[CODE]import java.util.Scanner; class CalcAvg{ public static void main (String args[]){ Scanner s = new Scanner(System.in); int sum = 0; int avg = 0; for(int i = 0; i < 10; i++){ System.out.println("Enter a number: "); int num = s.nextInt(); sum = sum+num; } avg = sum/10; System.out.println("The sum is: " …

Member Avatar for kvass
0
139
Member Avatar for snivek

I have a function that needs to read a file line by line. It will check that line for a number(a process ID for my process scheduling function). The line is delimited by |. So I read the line in, get the first ID number, and then I want to …

Member Avatar for daviddoria
0
167
Member Avatar for knan

I have a set of text files in a folder. I want to read each file, convert the contents of the file to lowercase, remove punctuations and save them all in another directory with the same filenames. How can i do that???

Member Avatar for griswolf
0
322

The End.