64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ntrncx

ok lets say that we have the numbers 5,67 and 128 (the numbers are randomly entered) i want in first loop read the last digit means 5,7,8 in the 2nd pass i want the tenths so will be 0,6,2 in the 3rd will be 0,0,1 and so on. what i …

Member Avatar for ntrncx
0
208
Member Avatar for Rahul Das

Hi, I have an problem with connecting Oracle 10g express edition with java. I am accessing my Oracle 10g with the following URL: localhost:8080/apex I am using the following code: [CODE]try { Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:8080:xe","hr","hr"); System.out.println("Connected Successfully To Oracle"); con.close(); } catch(Exception ex) { ex.printStackTrace(); }[/CODE] Is the …

Member Avatar for Rahul Das
0
819
Member Avatar for alex9292

Hi im getting a "An object reference is required for the non-static field, method, or property 'RealEstateSalesPerson.rate" error when i compile and i cant figure out how to fix it any help appreciated thx. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; public interface ISell { string SalesSpeech(); double MakeSale(); …

Member Avatar for Momerath
0
419
Member Avatar for liran

Hye Does the GC clear memory of running threads with no reference to them ? Consider the following code: [CODE] Thread t = new Thread()... t.start(); t = null; . . . [/CODE] Suppose 't' runs forever, and the rest of the program runs forever - will the GC clean …

Member Avatar for liran
0
170
Member Avatar for Igor Vinícius

Hello World, I'm a c++ beginner and i've diced to study. So this is my first code: [CODE] #include <iostream> using namespace std; double d = 2.2; int i = 7; void some_function() { d = d + i; i = d * i; printf("%d\n", d); printf("%d\n", i); } int …

Member Avatar for Igor Vinícius
0
156
Member Avatar for nickliutw

I'm writing a method for integer power which is something like this 2^4 read in program like 2*2*2*2 without using the math class method. I tried to use several different ways to write, but I think can't figure out where I did wrong. I know I'm close to what it …

Member Avatar for nickliutw
0
121
Member Avatar for moroccanplaya

hi i am just wondering how would you send a website through a socket as i am trying to make my own web server. do you just open up the file, read the file and write out to the socket ? [CODE] openfile = open(home/username/www/index.html, "r"); n = read(openfile,buffer,256); n …

Member Avatar for moroccanplaya
0
83
Member Avatar for brynFlew

Hello, im trying to convert an old vb project from 2008 to 2010. Ive tried using vb 2010's convert wizard aswell as changing the .sln file manually. When i try to convert the project automatically using the wizard it gives me an error saying that the project type is not …

Member Avatar for brynFlew
1
1K
Member Avatar for ajuv_001

Hi friends, I am planning to develop a local hotel search engine. ive prepared the dbmodel and i've attached it with this thread. please help me to write search queries for searching hotel. there are 11 tebles country,city,state,block,street,landmark,address,hotel,rooms,and amenities . please go through the model i've attached and help me …

Member Avatar for ajuv_001
0
111
Member Avatar for Tarkenfire

I'm doing a rather convoluted project for a class regarding looping structures and have run into a novice-ish logic error that I can't figure out. The error being that the following loop never ends: [code=java]//get transaction values and perform actions. try { sentinalValue = Double.parseDouble(JOptionPane.showInputDialog ("Enter transaction now. Enter \"-1\" …

Member Avatar for Tarkenfire
0
187
Member Avatar for tempvbacct

I need to figure out a piece of code to use to complete my project. I have attached a screenshot of the form and I labeled the important components to what I'm trying to accomplish. The form allows to user to add/remove books to a shopping cart which is the …

0
63
Member Avatar for danholding

continued from this thread! [url]http://www.daniweb.com/software-development/python/threads/353210[/url] i have a file which i am currently working on which will remove all pipes and replace them with a comma. that all works fine it the second bit i am currently stuck on.. i need to remove the first two CAPITAL letters from the …

Member Avatar for danholding
0
146
Member Avatar for Seattle Slim

I see some comments about Objective C or Cocoa however their does note seem to be a specific area for such comments. Objective C would be a good listing below the other languages. Any serious OSx iPad or iPhone developers would look here first for information. Since there is more …

Member Avatar for jon.kiparsky
2
392
Member Avatar for Oppression

Hello to all. I am trying to get an aproximation of expodential of x, using the power serie expansion which is x to the power n over n factorial, with n approaching to inifinty. Now I am trying to get the value of expodential of 1 by passing to the …

Member Avatar for Oppression
0
93
Member Avatar for danholding

please bare with me as im a returning newbie and have not really used re.expression much and still get very confused! my problem! i am currently working on a few database records which need appending. this is one of the files i need to resort the data base has now …

Member Avatar for TrustyTony
0
428
Member Avatar for Haclon

I search a lot of solution but neither is working. Can anyone help me with this storing the textarea from JSP into MySQL and retrieve it? Thanks a lot! [code]<html> <head> <% String ta1 = request.getParameter("ta1"); %> </head> <body> <form action="testing.jsp" name="form" id="form" class="form"> <textarea cols="10" rows="10" id="ta1" name="ta1"></textarea> <input …

0
78
Member Avatar for Cameronsmith63

I want to create my own media player, are searched google but im not really getting good resources, can anyone please forward me a good resource on where to start and what i need to know?

Member Avatar for makman99
0
169
Member Avatar for markdean.expres
Member Avatar for codeorder
0
129
Member Avatar for satti

am facing an error 'Run time error:424 Object required, Private Sub Form_Load()iam highlighting the error in code below. [CODE]Private Sub cmdAddEntry_Click() ' add a new entry to our table. With DataEnvironment1.rsDataTable .AddNew !CodeNo = txtCodeNo !DealerName = txtDealerName !TruckNumber = txtTruckNumber !Quantity = txtQuantity !NetPrice = txtNetPrice !Commision = txtCommision …

Member Avatar for satti
0
222
Member Avatar for JudeV

How Can I Bounce the ball everytime it hits the wall??? [CODE] using GDIDrawer; using System.Drawing; int iX = 0; //x ball position int iY = 0; //y ball position int iXVelocity = 5; //amount ball moves in x direction for every loop int iYVelocity = 5; //amount ball moves …

Member Avatar for divin757
0
764
Member Avatar for MrHardRock

Hey everyone, I am working with arrays, my program needs to take a list of 10 numbers and put them in each array depending on if they are even, odd, or negative. My program compiles but it does not run correctly it only displays 0 for each list. Thanks in …

Member Avatar for MrHardRock
0
152
Member Avatar for purijatin

In a folder I only have 2 files. Main.java and ArrayQueue.class Main.java is the following: [CODE] class Main{ public static void main(String args[]) { ArrayQueue s = new ArrayQueue() }} [/CODE] But it throws an error stating the following: C:\Users\Jatin\Documents\NetBeansProjects\JavaApplication3\src\Main2.java:11: cannot access ArrayQueue bad class file: C:\Users\Jatin\Documents\NetBeansProjects\JavaApplication3\src\ArrayQueue.class class file has …

Member Avatar for purijatin
0
103
Member Avatar for gunnarflax

Hi! I have a question regarding a problem I've faced dealing with object oriented PHP. I'm used to always return a value after a method has been executed and then use the returned value in other methods. But that's because I've always done that in procedural programming. So I wonder …

Member Avatar for gunnarflax
0
161
Member Avatar for shadowscape

hello fellow developers, i have built my website, how it works is it includes the header and footer through php and the rest of the content is in its corresponding file, but would it be possble to have the rest of the content in a mysql database and create pages …

Member Avatar for shadowscape
0
146
Member Avatar for jacob.irwin

Earlier today I created simple database (user and login fields), login, and registration PHPs. Now I need help going about the following enhancement: In a nutshell: I am trying to create a registration form like facebook's with php code (and link it a mysql database)... 1.) My updated registration.php has …

Member Avatar for petr.pavel
-2
161
Member Avatar for anirban1087

Hi, I am working on a form which is as follows - +---------------+----------------+--------------+-----------------+---------------+ |Item_Code |Item_Name |Quantity |Rate |Amount | |[ COMBO BOX ] |[ COMBO BOX ] |[ USER INPUT ]|[ Auto Fill after| [ CALCULATED ]| |Generate Field2|Generate Field 1| |selecting f1/f2 | | +---------------+----------------+--------------+-----------------+---------------+ The user can either …

Member Avatar for petr.pavel
0
84
Member Avatar for McLaren

Hi, I want to get such data using AJAX from PHP. With php I generate data this way: [CODE=php] $return['credits'] = $credits; $return['banners'] = $this->generate_banners($user->id); echo json_encode($return); [/CODE] generate_banners: [CODE=php] function generate_banners($user_id) { $html = ''; $query = $this->db->where('user_id',$user_id)->select('filename')->get('jos_reklama_banners'); if($query->num_rows() > 0) { foreach($query->row() as $filename) { $html .= '<div …

Member Avatar for McLaren
0
764
Member Avatar for tempvbacct

I'm doing a project that requires me to create a book ordering form. I have the books displayed in a listbox named bookselectionlistbox, and when a book is selected, it displays the price of that book in a label named bookpricelabel1. I have a button named addbutton that allows the …

Member Avatar for codeorder
0
109
Member Avatar for axman1000

I will get an Excel 2003 file everyday via email. This file has 5 columns. The first for columns have static headers and text in them. The 5th column is the date of the report and below that is a list of values in the same column, followed by an …

Member Avatar for axman1000
0
216
Member Avatar for ReaperUser101

Hi people , I have an easy question(but lack the knowledge in Delphi), I have a piece of code that i want to run but don't want to type it over for every time it has to be run (not very good coding then). Is there a way i can …

Member Avatar for ReaperUser101
0
90
Member Avatar for minimi
Member Avatar for winrycool1

When i finish my U.G at the rate i am going I don't think i will know anything.I want to know exactly what i should be knowing so that i can proceed with my graduate degree.Which languages are a must know,which data structure concepts i should know,should i be able …

Member Avatar for abelLazm
0
174
Member Avatar for Vindal

I need to be able to loop and get information for up to 10 "BankAccount" arrays, but when I use less than 10 it gives me garbage and I don't know how to fix it. Here is my Code. [CODE]#include <iostream> #include <iomanip> using namespace std; class BankAccount { private: …

Member Avatar for Vindal
0
171
Member Avatar for coolest_987
Member Avatar for coolest_987
0
1K
Member Avatar for maria_megha

Hi how can I replace "null" from being displayed with an empty string in a textbox on the JSPs ..depending on textbox data availability.. I tried the code [CODE]<% String phone=userInfoObj..getPhoneno(); if(phone==null||phone.equalsIgnoreCase("null")) phone=" "; %> <td > <input type="text" name="phoneno" class="txtBox" value="<%=phone %>"></td> [/CODE] but still it displays null can …

Member Avatar for maria_megha
0
184
Member Avatar for NOVICE3

I am still struggling with my first program in C#. I need to first select a file from a directory, second, open the file, and third load an array with the contents of the file. This array will later be used to send bytes to an external device (a test …

Member Avatar for NOVICE3
0
403
Member Avatar for babydol

Hi I am new to programming in asp.net with c#. I am using visual studio 2010. I am trying to insert data entered by a user into the database. My code is as follows: [CODE] adsStudents.InsertParameters["Stu_ID"].DefaultValue = txtStudID.Text.ToString(); adsStudents.InsertParameters["Stu_Name"].DefaultValue = txtName.Text.ToString(); adsStudents.InsertParameters["Stu_Passwd"].DefaultValue = txtPasswd.Text.ToString(); adsStudents.InsertParameters["Stu_Prog"].DefaultValue = ddlProgramme.SelectedValue.ToString(); adsStudents.Insert(); //add a …

Member Avatar for babydol
0
111
Member Avatar for axman1000

I have 3 ASP list boxes. I would like to populate the second list box based on the selection in the first list box and based on the selection in the second list box, populate the third. I would like to do this using AJAX. How can I do it? …

Member Avatar for axman1000
0
1K
Member Avatar for chester1908

Heyz all.Im working on a program to add,sort,search etc contact struct (name last name number..).So i add structs and i sort them with qsort (i print the result,they are sorted).I have problem using bsearch(),it keeps returning NULL (so i see printed "not found"). The error must be something with the …

Member Avatar for chester1908
0
398
Member Avatar for sdr001

Hello. I am trying to figure out why my program has an infinite loop :/ The program asks a user how many digits they want their numbers to be and then the program needs to print out all binary numbers for the user inputted digits. For example: User inputs 3 …

Member Avatar for sdr001
0
109
Member Avatar for Puertorro

Hey guys, my Professor want us to come up with this code: Create a class called Student. This class should have the following twelve private data elements: String studentName String studentEmail String studentLocation int projectGrade1 int projectGrade2 int projectGrade3 int projectGrade4 int quizGrade1 int quizGrade2 int finalExam int participationGrades This …

Member Avatar for Puertorro
0
124
Member Avatar for WolfShield

Hello everyone, I am trying to get an ActionListener to work in Java. On lines 310 and 312 it says 'cannot find symbol: variable calcDisplayF'. I am a complete noob when it comes to Event Handling so any help on this subject would be greatly appreciated. Here is the code …

Member Avatar for WolfShield
0
166
Member Avatar for mrjimoy_05

Hi guys, I have problem with my login script. I am using VB.Net (ASP.Net) to do that things. Here is the code: This is the code for Default.aspx page [CODE] User Name: <asp:TextBox ID="userID" class="txtbox" runat="server"></asp:TextBox> Password: <asp:TextBox ID="password" class="pwdbox" runat="server" TextMode="Password"></asp:TextBox> <asp:LinkButton ID="login" class="button" runat="server">&nbsp;Login&nbsp;</asp:LinkButton> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ …

Member Avatar for mrjimoy_05
0
815
Member Avatar for Cale93

Hello there, I'm struggling with my computing coursework in college and I though I'd ask here for help. My issue is simple but I can't get it right. I need to validate the text into a textbox and check that it contains ONLY alphanumeric characters, but it MUST contain both, …

Member Avatar for Cale93
0
3K
Member Avatar for Tazz-99

Hello, Have you seen the URLs with a "/" after the file name? EG: game.php/items I'm wondering how you can use this data after the "/". I'm assuming this is PHP as URL variables are PHP. any ideas? Thanks :)

Member Avatar for steelshark
0
94
Member Avatar for bertm81

Hi, I am new to python and am wondering is it possible to name a method after a variable. I know I can name a variable after another variable using [code=python] test = "temp" vars()[test] = 123 print temp [/code] this will print 123. so I was thinking something like …

Member Avatar for bertm81
0
222
Member Avatar for jackmaverick1

In function `_start': undefined reference to `main' what does this mean? I don't have a function _start. and my main.cpp is empty, theres just a few giant source files (500+ lines together) that are never called... Do you see any problems with this that might have something to do with …

Member Avatar for jackmaverick1
0
118
Member Avatar for makman99

I need to create a program that monitors incoming packets to a certain process. Each incoming packet needs to be searched for a string of hex (eg. "FF 00 00 03") and modified to be null (eg. 00 00 00 00). Or, if it's easier, to just completely block the …

Member Avatar for makman99
0
112
Member Avatar for dennysimon

hello all I try to open my datagridview's content in excell the problem is it's change the string value to numeric. so if in datagridview the content is "0001" in excell it become "1"; how to correct this problem ? any help ? thanks denny

Member Avatar for ddanbe
0
95
Member Avatar for Na'Vi

I was writing a program and I wasn't sure sure how to do letter b. I have the methods and constructor but I'm not sure how to format the float. 2. Create a class called Item. a. Item will need instance variables itemID, itemName, inStore, and Price (of types String, …

Member Avatar for JamesCherrill
0
115

The End.