199,114 Archived Topics
Remove Filter ![]() | |
Hi real quick one and most likely going to look stupid after this. I need to show the Current Date in a form text box. Also the second textbox I have needs to show the date + 3 (show the date 3 days later). For some reason I can't figure … | |
Hi everyone. I have a php mysql class and was wondering how I declare a varialbe kinda thing. Here is the code in the mysql class.... [code] <?php // class stuff public function fetch_array_from_query($query) { $this->debug_write("Fetching array from given query"); if(!$this->is_connected()) $this->setup_connection(); $result = $this->query($query); $this->debug_write("Finished fetching array from given … | |
I have question on how to detect an action invoked by a component in some class by the other class. Say: [CODE] public class C1 extends JPanel { JButton button; C1() { button = new JButton(); add(button); C1Action h = new C1Action() button.addActionHandler(h); } public void doSomething() { // code … | |
Hello to all, I'm just starting off learning PHP programming.As for the beginning i managed to download Apache 2.2 and PHP 5.3.0 , but i gave up frustrated after browsing several pages googling how to add the PHP to the Apache so that the server uses the php interpreter and … | |
Good day. I want to create a small app that would take out the content from a rss feed and posteriorly from the url . I know that would be easily done in perl with regular expressions, but in php it seams a bit more difficult. So i want to … | |
hi all, when i am running a Python script that i made, i get a list as a result ( i do not know the number of items stored in that list ) HOW can i return each element of the list and store in an array defined in a … ![]() | |
Hi All, I am working on the Nohau Emulator with a POD having 68HC11E9 controller in Expanded mode. It was working fine with my target board a couple of months back, but now a days I am facing a problem with it. When I do external memory mapping in the … | |
.txt .globl main main: # f= (g+h)-(i+j); li $s0,0 li $t1,0 li $t2,0 li $s1,4 li $s2,5 li $s3,6 li $s4,7 add $t1, $s1, $s2 # sum of s1,s2 is stored in t1 or temporary variable t1 contains g+h add $t2, $s3, $s4 # sum of s3,s4 is stored in … | |
I want to know how to open a file existing in a computer in vb 6.For example I want to open notepad when I click a button.notepad.exe exists in C:\WINDOWS\.So when I click the button notepad.exe should execute.Also tell me how can I generalise this to any computer(means computer where … | |
hiii Im searching for a method or an algorithm that can help me in finding number of holes in an image this image is basically for a letter like "D" "B" --->number of holes can distinguish between those letters.. this will help me alot in my project if it works … | |
hello I am trying to design an rss feed reader using xerces-c and im using dom parsing, I am new to this side of programming and everything I know so far is self taught. I can read an xml document that is in my computer but I can't access external … | |
I made 2 classes, Point and Point3D: Point.h: [code] #ifndef POINT_H #define POINT_H #include <iostream> template <typename T> class Point { protected: T X,Y,Z; public: Point(const T x, const T y, const T z) : X(x), Y(y), Z(z) {} T getX() {return X;}; T getY() {return Y;}; T getZ() {return … | |
Hi..i saw this a randomly..i got some part don't understand: [url]http://www.daniweb.com/forums/thread214624.html[/url] @ancient dragon's reply 1) const unsigned int MAX_SIZE = 2; student array[MAX_SIZE]; Q: Why MAX_SIZE = 2 ? 2)15: void insert(student array[],const unsigned int MAX_STUDENT); 33: void mySort(student array[],const unsigned int MAX) 55: void display(const student array[], unsigned int … | |
Here is a sample of the XML that I am starting with: XML: any.xml [code] <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="any.xsl"?> <root> <device> <device_Info> <name>Name 1</name> <type>Type</type> </device_Info> <drive_Pair> <status>Ready</status> <Local> <l_name>10E5</l_name> </Local> <Remote> <l_name>0651</l_name> </Remote> </drive_Pair> #Can be 1 or many <drive_Pair>'s {<drive_Pair> ... </drive_Pair>} # Can only be … | |
I am new to programming in C++. I have a bit of experience in Python and ActionScript3. I decided to pick up C++ so I downloaded Dev-C++ complier. I tried to run the following code but it doesn't seem to do anything. I complied the code, and it did not … | |
Hello everyone, I am an Intern at a company and I mainly create scripts to update databases. I don't have the opportunity to do much "real" programming, hence the reason I am begging for some help :p I am working in visual studio and my program runs great. There is … | |
Hello. I have this simple program that open a file and read lines from it and print them to screen. #include <errno.h> #include <stdlib.h> #include <stdio.h> int main() { char line[4096]; FILE *fp = fopen("/root/Desktop/testfile","r"); if( fp == NULL ) { exit(1); } while(fgets( line, sizeof(line), fp ) != NULL … | |
i want the best php class to work with mysql hi i want the best and the simple php class to work with the mysql thanks | |
This gives a compilation error " missing return statement".. there is no sql error or such...where to put the return.??? private boolean checkpword(){ pasWd = pword.getText() ; try{ /*this works ok...>>>*/ResultSet pwrd = c.getData("Select Pword from users where userNm = '"+uname.getText()+"' "); while(pwrd.next()){ if(pasWd.equals(pwrd.getString("Pword"))){ return true; } else{ return false; … | |
I haven't wrote in C++ for a long time so I decided to brush up a bit by writing some basic programs. I wrote a class that allows for basic arithmetic of infinitely large numbers (or as much as you have memory for). Here is the code. [CODE] class largeInt … | |
Hi, I have a corn.php file that runs automatically every day and one of the functions is to send an e-mail to certain users. The problem is that the e-mails are being sent twice. I can't find anything wrong with the cron file, but checking the access_log.processed file of the … | |
Hi, I don't know how exactly how to do this. So for example I have the following set of data: Table: tbl_country_costs Country Type Cost North America Sales 2000000 North America Expenses 1250000 North America Taxes 250000 North America Profit 500000 Europe Sales 2500000 Europe Expenses 1250000 Europe Taxes 500000 … | |
I have inherited a website that was abandoned by it's designer, the guy started with a CMS called Simple Content Management. The core of the system works fine and i am figuring out all the ins and outs of the admin slowly, but surely. My issue is his page nav … | |
Hey i have a simple output program that i can't seem to figure out Home Owner Price of Home Seller's Cost Agent's Commission Garcia *****100000.00**********6000.00**********1500.00 | |
please can anyone help me doing this example. Add to the text editor's GUI a menu that lists these font sizes: 12, 14, and 16. When the user selects one of the sizes from the menu, the text displayed in the text area changes to the selected size. SNIP | |
[CODE]#include <iostream> #include <cstdlib> using namespace std; const int arrSize = 100; bool isPresent(int ,int ); int main() { int myArr[arrSize]; int input; for (int i=0; i<=arrSize; i++) myArr[i]=rand()%200; //creating array with random numbers //sorting random numbers for (int j=0; j<=arrSize; j++){ for(int k=0; k<j ; k++){ if (myArr[j] < … | |
Hello all, So to start off I'm just starting to learn programming so please excuse a lot of my noob mistakes especially when trying to explain what is going on/wrong. I've been trying to use a header file in an example program I'm trying to complete but the compiler doesn't … | |
I'm working on a project and I need some help with C# constructors. Let's say I have the following; [icode] public class vehicle { public vehicle() { //do some initialization for all vehicles } } public class automobile : vehicle { public auto : base { // do specific initialization … | |
Hello Everybody, I use different forms....I want to send a value like form1 to form2.for example textbox1.text value, I want to send it to myStr in form2. I tried public static but I could not solve it. Also another problem is this. There is 3 forms. If form1 sends a … | |
Hi, I'm programming an application that records video samples of 5 seconds each. the recording takes place inside a loop. I use MFC and DirectShow The thing is, that the main thread must pause for 5 seconds while the sample is being recorded. in order to do that, I can … | |
Hi all, I have a login form and ChangePassword form. I want to retrieve the value of username entered in the Login form at the time of logging. I have created a property named as RetUserName as follows: [code] public partial class frmLogin : Form { private string UseNam; public … | |
![]() | Hello all, I'm used to java programming and php. I'm trying to learn C++, but it's rather difficult for me. Basic in java: String message = "Test"; String temp = "This is a " + message; temp now contains "This is a Test". In c++ i tried everything, a + … |
Hi, I'm doing a small application using asp & C#. I'm having three text boxes. I want the result in the third text box when I changed from second text box to third. For example: Let A= 10 , B=20 when I changed the tab from the textbox2 automatically print … | |
I have the log file blackjacksample.txt $10000 3 [2H, 4C, KC, 5D] $10 [QS, QD] $5 [AC, 3C, 4D] $25 [10H, 5C, 7H] [7C, 5C, 10H] $20 [JH, 3C, 8H] $15 [3H, 6D, JC] $5 [AH, KH] [9C, JS] $40 [5C, 7H, 3D, KS] $30 [9C, 10D] $50 [AD, 10C] … | |
I am facing a problem with a CArray. I have a class member of type CArray<MyType, MyType&> m_MyArray; When the object is destroyed, of course the destructor of CArray<MyType, MyType&> is called. Here is the destructor: [CODE]template<class TYPE, class ARG_TYPE> CArray<TYPE, ARG_TYPE>::~CArray() { ASSERT_VALID(this); if (m_pData != NULL) { for( … | |
Hii frnds, I want to know how to insert data into a table through JSP when u have the table name as a variable...Pls help me out. [code] Statement stmt5=con.createStatement(); String qry5="insert into t1(id) values('"+dat0+"')"; int u5=stmt5.executeUpdate(qry5);[/code] I know this stuff. Wat I want to know is how do we … | |
Hi and I have been looking around and found that google has a few search api's but haven't yet found one that returns the results as a javascript/ajax array. Is it possible to at least get the google api to send the results to my website as a variable/array in … | |
Hello, I'm really starting in Assembly, but i want to know if it's possible to develop for ARM devices like those who run Windows CE, because i have an Jornada 720 and i want to develop to it, i'm already a Java developer, but Assembly will be another language that … | |
using ajax/javascrtipt, how to browse for a folder and get *.xml files in the given folder path.?? :?: | |
Hi All I am trying to learn Python and cannot get aroud this problem for the life of me. I have generated a sript as follows, called xandy.py def xandy (x,y): if x < y: print x, "is less than", y elif x > y: print x, "is greater than", … | |
Hi i created a small program that does connection to db and perform a select. that's works fine for me. now,i want to make it a web service, but how can i return the result of the select query from it? please help... this is my code... [CODE] using System; … | |
Hi all, its me again.can i have a function that return a double array? | |
hi In the following function, to modify a product in a shopping cart, [CODE]function modifyProduct() { $productId = (int)$_GET['productId']; $catId = $_POST['cboCategory']; $name = $_POST['txtName']; $description = $_POST['mtxDescription']; $price = str_replace(',', '', $_POST['txtPrice']); $qty = $_POST['txtQty']; $images = uploadProductImage('fleImage', SRV_ROOT . 'images/product/'); $mainImage = $images['image']; $thumbnail = $images['thumbnail']; //echo $thumbnail; … | |
Hi, i am having a query like [CODE]$report_attrid=$this->Report->find('all',array('conditions'=>array('Report.report_id'=>$report_id,'Report.user_id'=>$userId))); foreach($report_attrid as & $reportattrid): $reportattrid['Report']['attr']=$this->Attribute->find('all',array('fields'=>array('Attribute.id','Attribute.label'),'conditions'=>array('Attribute.id'=>$reportattrid['Report']['attribute_id'],'Attribute.form_id'=>$report_form_id),'order'=>'Attribute.sequence_no')); $reportattrid['Report']['value']=$this->Result->find('all',array('fields'=>array('Result.label','Result.value','Result.submitter_id','Result.submitter'),'conditions'=>array('Result.attribute_id'=>$reportattrid['Report']['attribute_id'],'Result.form_id'=>$report_form_id),'order'=>'Result.id')); endforeach; $this->set('Report_attrid',$report_attrid); [/CODE] 1.the first one for $report_attrid will gives me the all the datas needed for my report as id Report_id title form_id attribute_id 1 1 r1 24 69 2 1 r2 24 72 2.And … | |
Hey all I have an assignment for university where we have to write a program to simulate an IDS. Basically how it works is the user enters a code and the program displays a relevant message. If a specific code is entered, an e-mail must be sent to the adminsitrator … | |
hey does anyone know if there are any modules that i can download that if i feed in x, y values i can make correlation plots and other types of graphs Thanks | |
Hi, i need help in building a program about automata cellular. So, there is 4 state of cells, `0 = space, 1 = ".", 2 = "+", 3 = "#"` This state is continuous from 0 - 3, after 3, it will be back to 0. we need to compare … | |
Hi all, I am trying to pass values to the cart. When I select add to cart the values show up in the url but does not direct the user to the shopping cart. url output. http://214.146.126.103/streetwise/result.php?itemname=CITROEN&returnurl=http%3A%2F%2F214.146.126.103%2Fpassenger.php&price=123.00&storeid=xxxxx&quantity=1[/url] [code=php]//passing variables from db $m_id=$row{products_make}; //echo $m_id;// test out put valid $p_id=$row{products_price}; //echo … | |
I want to send the vertical scroll bar to the bottom of a textbox as yahoo chat does but learnt that Textbox1.ScrollToCaret() could do that but in my VS 8 intellisence will not popup the scrolltoCarret part and is giving me a error pls help |
The End.