199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jamesperkins0

Hi guys, so my task is as follows. A. Develop an application that reads your listings.txt file, analyzes the property listed per agent, and outputs a report to an agentreport.txt file. Your application should do the following: 1. Prompt the user for the name of the input file (listings.txt). 2. …

Member Avatar for jamesperkins0
0
469
Member Avatar for j.jroxs

my dillema is i dont fully understand this assignment. I also dont know if my array should be inside of class or inside of the void setString method. help import java.util.Arrays; class String { //data members private int SIZE = 25; private [] myString = new array[25]; public void setString( …

Member Avatar for NormR1
0
126
Member Avatar for klemme

Hi all, Im almost there, just need to get the videojs to work in IE9. I can see the player, but the video is not being played, like nothing happens when I press the play btn.. It works just fine in all other browsers, FF, Opera, Chrome, Safari. This is …

Member Avatar for klemme
0
134
Member Avatar for hwoarang69

public class J_01_FLOW_08 extends JApplet { JPanel p = new JPanel();//nedd a jpanel to add scroll String s_value[] = {"black","red","pink","yellow","blue","orange"}; DefaultListModel dlm = new DefaultListModel(); JList l_list = new JList(dlm); JScrollPane sp = new JScrollPane(l_list,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); JLabel l_label = new JLabel(); Container c; FlowLayout flow = new FlowLayout(); public void init() …

Member Avatar for hwoarang69
0
291
Member Avatar for <M/>

So, I installed the recaptcha into my site... and I don't know why it doesn't verify... You can submit the form with out worrying about the code you have to type in so that recaptcha verifies the form. So... I have a form that shows recaptcha, but it doesn't verify... …

Member Avatar for <M/>
0
596
Member Avatar for apanimesh061

How can I extract the main classname of a java file ? I am doing this in php! I will read the whole java program as a string! Please help! <any_type/public/private/static> class **MainClass** { //Could be anything over here! public static void main(String[] args) { System.out.println("Hello World!"); } }

Member Avatar for AleMonteiro
0
113
Member Avatar for andrew mendonca

Define a getTopTwoScores() function with the specification and prototype shown below: // Set highest to the score with highest value and secondHighest to the score with the next highest value. // If there are two highest scores with the same value then set both highest and secondHighest to that value. …

Member Avatar for andrew mendonca
0
366
Member Avatar for alikhandro

how can i implement a polynomial class using the doubly linked list data structure such that each node of the list holds the coeffient and the exponent of the term ?

Member Avatar for NormR1
0
353
Member Avatar for javaprog200

Hello, I am unable to register the right key event from this program. Besides setting the focus of JPanel to the KeyListener, I am not sure what else can be done. I will be grateful for any help. Thank you! import java.awt.*; import java.awt.event.KeyListener; import java.awt.event.*; import javax.swing.*; public class …

Member Avatar for javaprog200
0
254
Member Avatar for SQLpower

Hello. I am trying to connect my MYSQL Database to my JpGraph but it is not working. Any help is appriciated. Here is my conde. <?php include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_bar.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_line.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_pie.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_pie3d.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/db.inc"); $host = "localhost"; $username = "root"; $password = ""; $database = "test"; …

Member Avatar for LastMitch
0
2K
Member Avatar for jcreate4

PHP: Display Image from Database I'll Keep It Short Because I Need Help Immediately. Im Trying To Do Exactly What On This Tutorial But Don't Know Where To Start. I've Recently Posted Two Post About This But Have Yet To Find Anyone Completely Helpful! If Knows ANYTHINg About This, Fell …

Member Avatar for jcreate4
0
294
Member Avatar for hister

#include <iostream> using namespace std; int main() { int n1, n2, n3, i=0; for (n1 = 1; n1 < 10; n1++) { for (n2 = 0; n2 < 10; n2++) { for (n3 = 0; n3 < 10; n3++) { cout << i << " " << n1 << " …

Member Avatar for deceptikon
0
197
Member Avatar for andyy121

i wont to know why we have to equal this variabel what is theri meaning $contact_name = $_POST['contact_name']; $contact_email = $_POST['contact_email']; $contact_text = $_POST['contact_text'];

Member Avatar for EvolutionFallen
0
227
Member Avatar for rustydust

need help finding whats wrong syntax error in line 265 <?php function pay_upline( $refered, $level, $oamount ) { global $Db1; global $username; global $settings; global $today_date; $return = 0; $sql = query( "SELECT user.membership, memberships.downline_earns FROM user JOIN memberships ON memberships.id=user.membership WHERE user.username='{$refered}' and type='1'" ); if ( 0 < …

Member Avatar for diafol
0
414
Member Avatar for jamesperkins0

hi Guys, I am currently coding for a GUI based program that delivers the amount of time a tutor works in minutes and the amount they go paid total, giving them details on the amount of time work total, and wage per hour and if it is below, minimum, or …

Member Avatar for jamesperkins0
0
393
Member Avatar for gahhon

as the title above.. what should i do in order to add a image into my .aspx by using silverlight?

Member Avatar for gahhon
0
185
Member Avatar for Despairy

Hi , just started programming in MATLAB and I have a question. Image files can be written as RGB/GRAYSCALE/INDEXED and more types, from what I saw in MATLAB you can read an image by using `imread()` function the only difference is what it returns. [img,MAP] or img how do I …

Member Avatar for Taywin
0
147
Member Avatar for kaizen202

Hi All, Is there any event to catch the column visibility change of datagridview? I am using a custom datagridview. I need to update the horizontal scrollbar maximum value whenever the column visibility is changed. Please provide some idea. Thank you.

Member Avatar for kaizen202
0
473
Member Avatar for Violet_82

Hi, I am having some funny problems with hiding and showing the navigation and I am not entirely sure why. Here's the demo: http://antobbo.webspace.virginmedia.com/various_tests/worktest/hidingnavigation/test.htm and here's the code: html: ... <!-- NAVIGATION --> <div id="navBox"> <ul> <li class="mainList"><a href="#">Item 1</a> <ul class="subList"> <li><a href="#">sub item1.1</a></li> <li><a href="#">sub item1.2</a></li> <li><a href="#">sub …

Member Avatar for AleMonteiro
0
92
Member Avatar for JamesCherrill

I'm curious. Why is so much code in this forum formatted like this [CODE]if (something) { do something } else { do another thing }[/CODE] rather than [CODE]if (something) { do something } else { do another thing }[/CODE] The first version is harder to read and takes up more …

Member Avatar for JamesCherrill
0
379
Member Avatar for pashah

Hello I need help ASAP, my problem is due by thursday.....Here is the problem my teacher has given... "Create a class that describes a box. The user should be able to submit the length, width, and height of a box. Also, you should include methods/functions to determine the surface area …

Member Avatar for pashah
0
176
Member Avatar for bsewell

Hi, I have a table and I need to write a SQL to limit the resulset set based on 2 conditions, by IP and out of that resultset, remove the rows which have nothing in 2 columns. So I have tried this but it's not producing the expected results: SELECT …

Member Avatar for smantscheff
0
108
Member Avatar for lewashby

import wx app = wx.App() win = wx.Frame(None) win.Show() app.MainLoop() Why does the above code only work in python2.7 and not 3?

Member Avatar for Lardmeister
0
136
Member Avatar for shhh

Dim odcell = OutgoingdeliveriesDataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value.ToString() Using _conn As New MySqlConnection("Server = localhost; Username= root; Password =; Database = forms") Using cmd With cmd MsgBox("Connection Established") .Connection = _conn .Parameters.Clear() .CommandText = "SELECT FormName, Description FROM FormMaintenance WHERE FormCode = @Code" .Parameters.AddWithValue("@Code", odcell) _conn.Open() Dim dr As MySqlDataReader dr = cmd.ExecuteReader() If …

Member Avatar for Reverend Jim
0
123
Member Avatar for Everlight

Hello, I have the following code: `#include <iostream.h> void main() { double test=3.46578953218549; cout.setf(ios::dec); cout<<test; }` I understand that iostream.h is outdated and Microsoft Visual Studio has iostream. However, When I remove the ".h" the setf, ios, etc, line 6 has multiple errors. So, my question is: How do I …

Member Avatar for Everlight
0
3K
Member Avatar for pink_05

Please help me with this... I cannot insert pictures into the folder and it is not saving in the database But it creates album folder. Thanks $albumname = addslashes($_POST['albumname']); $target_path = "Gallery/images/".$albumname."/"; @$imagename = basename($_FILES['image']['name']); @$target_path = $target_path . $imagename; $file = $_FILES['image']['tmp_name']; //@$image = addslashes(file_get_contents($file)); $album_target = "Gallery/images/".$albumname; @$image_size …

Member Avatar for pritaeas
0
619
Member Avatar for SQLpower

Hello guys, I am trying to dynamically update a combobox using mysql database, however I get the Error Catch Message. Any help would appriciated. Private Sub cmbName_DropDown(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbName.DropDown Try dbCon = New MySqlConnection("SERVER=localhost;DATABASE=test;") strQuery = "Select name from customer_details" cmbName.Items.Clear() If DR.HasRows …

Member Avatar for SQLpower
0
190
Member Avatar for gelmi
Member Avatar for jackbauer24-2

So I just started learning MySQL. I am learning from [Tizag](http://www.tizag.com). They are using PHP files. Now I can see that the PHP files are slightly complex, I'm only 15. And they also recommended PHPMyAdmin. This GUI tool has many complicated options. So I quite don't know what to use. …

Member Avatar for jackbauer24-2
0
504
Member Avatar for GottaLove

ASsuming in class , i have: class math { private: int x,y; public: bool operator>(const math& ); bool operator<(const math& ); } bool Point2D::operator>(const math &p) { return (this->x > p.x); } bool Point2D::operator<(const math &p ) { return (this->x < p.x); } bool Point2D::operator>(const math &p) { return (this->y …

Member Avatar for deceptikon
0
198
Member Avatar for challarao

Hi all, A question asks me to write overloading functions to square,circle ,rectangle and triangle.... But since the square and circle have only one parameter I had to change the parameter of area of circle to double...... Is this the only way to accomplish this..... Are there any other ways …

Member Avatar for stultuske
0
204
Member Avatar for showman13

OK, hopefully this question makes sense... I have a select that I have been to randomly select a record within a table The Table was simply a list of member IDs 'mem_id' BUT Now I've added a couple more fields to the table, one of which allows the member to …

Member Avatar for showman13
0
153
Member Avatar for rahul.ch

import java.util.*; public class Elway { public static void main(String r[]) { ArrayList[] ls = new ArrayList[3]; for(int i=0; i<3; i++) { ls[i] = new ArrayList(); ls[i].add("a" + i); } Object o = ls; do3(ls); for(int i=0; i<3; i++) //insert code here } static Object do3(ArrayList[] a) { for(int i=0; …

Member Avatar for rahul.ch
0
292
Member Avatar for gelmi
Member Avatar for onlykl

Hello as title says, i would like to see if it is possible somehow to write in vb.net simple application that check if port 80 is used by some application and if it is to show Error message that it is used by APPLICATION NAME and asking if you want …

Member Avatar for SQLpower
0
134
Member Avatar for HunainHafeez

i filled a gridview with tblUser, now gridview has a checkbox file (status), which is used to activate newly registered users, so i want to inform user via mail when admins activates him, mean when i (admin) checks checkbox field true, in edit mode of girdview then at that moment …

Member Avatar for HunainHafeez
0
807
Member Avatar for HunainHafeez

am near to cry bcz solving this problem took my whole day , simply, i am trying to get status of checkbox from grid view, so i converted it into tempaltefield and in .cs code i used findcontrol property but still getting error: Object reference not set to an instance …

Member Avatar for HunainHafeez
0
951
Member Avatar for coder91

Had validation on 4 drop down lists and they worked grand. But now someone else has made them databound and my validation is no longer working. Anyone know how to fix this?

Member Avatar for coder91
0
94
Member Avatar for coder91

So have a drop down list with various values, one of them being "other". I have written code so that when "other" is selected a panel which has text boxes in it is made visible. if (ddlOption.SelectedItem.Text == "Other") { panelNext.Visible = true; } else { panelNext.Visible = false; } …

Member Avatar for coder91
0
1K
Member Avatar for muhammad.khan.3576

#include<string> int str_len( const char * const src) { int len=0; while(src[len]) { len++; } return len; } int str_copy( char * &dest, char * src) // removed (const) to sore the string in dest.By using const,we dont have the // access to store the string.By using ampersand we can …

Member Avatar for Gonbe
0
143
Member Avatar for alicia.edberg.1

class Race { int[] race = new int[70]; int tortoise; int hare; Random randomnumbers = new Random(); bool again = true; public void StartRace() { tortoise = 1; hare = 1; Console.WriteLine("ON YOUR MARK, GET SET.... BANG!!!"); Console.WriteLine("AND THEY'RE OFF!!!!"); while (tortoise < 70 && hare < 70) { MoveHare(); …

Member Avatar for Mike Askew
0
2K
Member Avatar for pilesos

Hello , I'm trying to make an Update query but keep getting the following exception : "Data type mismatch in criteria expression" Here is the query : UPDATE PatientData SET PatientData.[Transaction Stop Time]='6/26/2010 1:07:12 PM' WHERE PatientData.[Patient ID]=6 AND PatientData.[Parameter name]= 'Temperature' AND PatientData.[Valid start time]='9/7/1999 12:00:00 AM' additionally, when …

Member Avatar for Nijil
0
270
Member Avatar for gahhon

Assume that i am creating 2 Panel which depends on which buttons ( 2 buttons ) user clicked.. if the user click button 1, panel 1 will visible and panel 2 will not be visible.. same to the button 2.. but it can't be work don't know due to what, …

Member Avatar for gahhon
0
116
Member Avatar for PriteshP23

I need your urgent help. Please help me to solve it out. Thanks a lot in advanced for your time. error: java.lang.StringIndexOutOfBoundsException: String index out of range: 150 Lines of code in this place there: if (text.length ()> 150) { text.replaceAll summary = ("<[^>] *>", ""). substring (0, 150) …

Member Avatar for PriteshP23
0
187
Member Avatar for Dili1234

I used this code delete recods from table ............ in VBP is database name Sell-is a table name The DELETE statement conflicted with the REFERENCE constraint "FK_Sells_Product_Details". The conflict occurred in database "VBP", table "dbo.Sells", column 'P_Id'. The statement has been terminated. Dim check As Integer Dim cmdproduct As New …

Member Avatar for Dili1234
0
131
Member Avatar for Consuela94

Hey everyone, iv'e been working on a Hangman code for weeks for the beginning of a semester long portfolio, iv'e tried several codes, but no matter what i do i can't seem to make it work... The specifics for the program were: - Create a list of possible words called …

Member Avatar for Consuela94
0
5K
Member Avatar for nunntb473

I have written a very simple program inside of a standard .NET 4.0 windows form (well a form opened by another form to be more exact) in C# using Visual Studio 2010. The basic idea is I have a series of text boxes with numbers. I want to be able …

Member Avatar for nunntb473
0
175
Member Avatar for lifeworks

Hi Im getting into a php mvc framework, available here ([url]http://www.phpro.org/tutorials/Model-View-Controller-MVC.html#8[/url]), but they only explain their code, and dont offer much other advice on the basics of working inside a framework... how would i go about posting a form? working outside of any framework i usually just post the form …

Member Avatar for speedovic
0
3K
Member Avatar for VasquezPL

I wrote a small program: Thread1 thread: public void ExecuteCommandSync(string argument) { try { var procStartInfo = new System.Diagnostics.ProcessStartInfo("bbb.bat", argument); procStartInfo.RedirectStandardOutput = true; procStartInfo.UseShellExecute = false; procStartInfo.CreateNoWindow = true; procStartInfo.ErrorDialog = false; var proc = new System.Diagnostics.Process(); proc.OutputDataReceived += (s, e) => { if (!string.IsNullOrEmpty(e.Data)) { LogBox.BeginInvoke(new EventHandler(delegate { LogBox.AppendText(e.Data.ToString() …

Member Avatar for VasquezPL
0
315
Member Avatar for jackbauer24-2

Go here: http://www.tizag.com/phpT/fileupload.php Under the heading "**php - file upload: uploader.php**" there are these sentences:- ----$_FILES['uploadedfile']['name'] - name contains the original path of the user uploaded file. ----$_FILES['uploadedfile']['tmp_name'] - tmp_name contains the path to the temporary file that resides on the server. The file should exist on the server in …

Member Avatar for urtrivedi
0
194

The End.