199,114 Archived Topics
Remove Filter ![]() | |
Lets say I have a class. It holds other classes in it. ex [CODE]class Test: def__init__(self, name): self.name = name def getname(self): print(self.name) class Holder: def __init__(self, tests): self.tests = tests def getnames(self): for i in self.tests: print( i.getname())[/CODE] so lets say I pickle an instance of Holder with 3 … | |
hello All, Good Day to u all. I m new to .net. I just want to implement a stopwatch in asp.net. Can any one help? Thanks in advance. | |
how do I save a dictionary, (below), to a txt file thats is in a tabular format? i also need to be able to rload the txt file back into its dictionary form... catalog = { 1:["Bread", 1.50, 10 ], 2:["Cheese", 5.00, 5], 3:["Apples", 2.50,12] } eg. 1 Bread 1.50 … | |
Hi I created the web project using Asp.net.In that web site It read from database and show result in data grid.There is save button using that I can save it into excel file.the problem if I selected data with one month(20010-01-01 to 2010-01-31) ,then there are more data,but in data … | |
Can someone please show me how to implement the pickle module in this pogram!? PLS? I've tried for hours but I think programs are immune to my trying! Thnx [CODE]'''maintain a catalog''' def main(): global catalog loadCatalog() while True: pick = showMenu() if pick == 0: break elif pick == … | |
I would like to extend a method found in C# XNA which will set the length of a vector. I thought I should go with extensions as that seemed like the only option. It appears that this isn't going to work as intended as my original vector value isn't updated … | |
I'm using an access database to save plain textboxes. I've made a connection with the database. Now i need to find the code to add the textboxes to my database. I've tried to add with the bindingnavigator but it won't work... please help... | |
I want to upload photo on click in VB.NET and want to store it in SQL 2005,also want to retrive it in picture box on another click. | |
Hi there, Is there anyone here using NB platform to develop applications? Anyone using former Matisse GUI builder in NB 6.8? I can't see it in my IDE! | |
![]() | Hi all, I've hit a brick wall trying to validate some array data. I'll dive right in with the code... [code] <form action="process.php" method="post"> <ul> <li><label>Order: <?php echo $form->error("order"); ?></label><input class="order" type="text" name="task[1][order]" maxlength="3" value="<?php echo $form->value("order"); ?>" /></li> <li><label>Task: <?php echo $form->error("task"); ?></label><input type="text" name="task[1][task]" maxlength="50" value="<?php echo $form->value("task"); … |
In my program, I want the user to be able to move an MDI child window anywhere inside the MDI container but I need it to be kept completely inside the container boundary. For example, the upper left corner should never be at a location less than 0,0 when moved … | |
Hi, Here is an example made by 'C++' and 'SDL' library, this example load an image with format .PNG, because I'm beginner in c++, I'm asking some questions: [CODE]/*This source code copyrighted by Lazy Foo' Productions (2004-2009) and may not be redestributed without written permission.*/ //The headers #include "SDL.h" #include … | |
Hi Friends, Kindly help i am using list menu i.e day month year i can get the data using the echo, and how do i insert the data into MySQL in DAY-MONTH-YEAR for example: i want to insert 10-MAY-2010 Regards Sachin | |
hey all. I am trying to do validation via PHP for submitted forms. Below is my own code, please comment if its the correct method or not. However, I tried so many ways to have the /n or /r added, but I cant get to it. Its just to make … | |
Hai., I'm developing drupal 6.15 version. and I'm new for PHP and now i need to develop my web applications with usual databases commands like insert,delete, update,save functions. after at all creted documents make into details invoice report. like PDF format. Is there any possibility to create the above requirements … ![]() | |
To make my site secure, i would like to track the ip address of my members to my transaction page. Is there any possible ways of achieving this? I came across many Javascript IP Address display, however they do not actually track or save the ip addresses. | |
I'm working on a small social script.. The content will be in Urdu language for which I encoded the files with UTF-8. I'm having problems with the login page. The problem is that I'm unable to execute setcookie() function. I'm getting the following error; Warning: Cannot modify header information - … | |
If I have a table sales: sales {sellerid, buyerid} I'm trying to determine the buyers favourite seller... So I need to return the most frequent sellerid. I've used this query to find out the total number of times the buyer has bought something from any seller: [CODE]$countseller = mysql_query("SELECT count(sellerid) … | |
Hello, I'm having problems passing an ArrayList from a method in one class into a method of another class and accessing it. Here's my code. [CODE]private static void createData() throws IOException{ ArrayList<movie> moviesList = new ArrayList<movie>(); moviesList.add(new movie(1, "Schindler's List", 18, 19.99)); moviesList.add(new movie(2, "Red Cliff Blu-Ray", 4, 43.50)); moviesList.add(new … | |
Hey everyone, I've been working on learning the Win32 API for C++ so that I can start programming windows programs. I haven't run into any issues until last night when I tried to include a menu in my basic window through resources. I'm using Visual C++ Express 2010 which doesn't … | |
I am using a solaris machine to run my c++ code I have written the following code in the mentioned files classclock.h [CODE] #include <iostream> using namespace std; class classclock { private: int min; int hour; int sec; //member function for the operations public: void SetTime(int a,int b,int c); };[/CODE] … | |
Hello all, I have been working on a project in scala, but I am getting some error messages that I don't quite understand. The classes that I am working with are relatively simple. For example: [CODE=scala] abstract class Shape case class Point(x: Int, y: Int) extends Shape case class Polygon(points: … | |
Could any one help me? :sad: I am a beginner in Visual basic. I recenly was testing one of the applications I developed and have a problem to run it. The application basicly is a database that I can add/remove/update...etc records and it uses a microsoft access database to connect … | |
Write a program that defines a template function named add(). This function takes two arguments, add two variables and then return the sum. In main function, define two variables of type int, two variables of type float and two objects of type ‘String’. Now call the add() function three times … | |
Hi there, I have a problem with the search function I designed for my code. [CODE]using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication { public class Person { public string PerName, PerSal, PerPhone, PerPcode, perState, PerAddress, PerStrenum; public Person(string rec_name, string Srec_sal, string Srec_phone, string Srec_pcode, string rec_state, string rec_address, … | |
Name: George Ingram Using: vb6 OS: Windows 2000 I have created a Splash Screen for my program with a "Dont show this screen again" checkbox. I am using the checkbox value and the Savesetting/Getsetting parms to bypass the Splash Screen if checkbox is checked. It seems to be working correctly, … | |
So im in a collage c++ class, and i missed my last class, so my teacher told me to try lab 5, i think i have templates down but im getting a compiler error saying that my function is ambigious.. the exact error is Error 1 error C2782: 'T searchArray(T,T,int)' … | |
I am looking for a php code to add a url to a text file like this 1- user adds url to a text box 2- user adds site name 3- user hits submit button The url that was entered in to the text box is then added to a … | |
Hello, I'm wondering if I should take this personally. I haven't quote grasped this whole "class" concept yet, but I'm working on it. When following the instructions below, the "test" portion of this code: "test.variable" has an underlined error that says that "test" is not declared. If i remove the … | |
Hi Guys, I am using visual studio 2009 using vc++. I am reading from a text file using a streamReader one line at a time. The data is tab delimited. I am trying to split the data and then stuff all the strings into struct. Here's what I am doing … | |
Hi, I would like for images to change automatically on my home page. I have been directed on the internet to the programmes rotate.php. but I cannot get it to work. So I have come here to seek help and guidance for me to get this to work. It would … | |
I am building a website that needs to have a facebook connect, login page, blog page, and a photo page that allows the user to upload photos. This is not my site but I am desinging it and need help with the above. I am using DreamWeaver CS3 as the … | |
Hi all, I have downloaded the apache-tomcat-6.0.26-src and unzip into my directory. Directory:/home/prem/Download/tomcat/apache-tomcat-6.0.26-src. I am using Red hat machine. To find where my java installed i use the following command: which java; Output: /usr/bin/java Environment Variables: export JAVA_HOME=usr/bin/java export CATALINA_HOME=/home/prem/Download/tomacat/apache-tomcat-6.0.26-src When i run the version.sh file in tomcat i received … | |
Hi there, I've been trying to figure out why my update script wont commit changes to the database. I'm building a simple call tracking web app for our technicians. Currently the view, add, and delete functions of the app work fine. The trouble I'm running into is when I want … | |
Hello - I need to create a utility using C/C++ to parse information from a XML audit log file that is continuously being appended by a separate process I need to read the information in and process it, then when I reach the EOF I need to wait/monitor for more … | |
Hi I am trying to create a log system were users can log activities, once they are logged in their username is held in a session. My problem is I want them to be able to create a new log by filling out a form but I don't want them … | |
I have a main form that has IsMdiContainer = true. I have a second form (FamilyForm) that is to be the MDI child. Using the code below, when the line TempForm.MdiParent = Me is executed, the FamilyForm window size, font, and all controls are larger than shown in Visual Studio, … | |
im a beginner and using C++ 2008 edition and this pow function isnt working on it although its working perfectly ob C++6. please help. THIS IS PART OF THE CODE: [CODE]#include<iostream> #include<cmath> using namespace std; int det (int **oldray,int order) { int deter=0,i,k; int **newray; newray=new int*[order-1]; for( i=0;i<order;i++) newray[i]=new … | |
Hello everybody! I am starting to work on a web page for a medical firm. This webpage will include about ten different questionnaires for Patients. The longest questionnaire has 160 questions, most of them having a yes/no answer. I am not sure what the best way to go about this … | |
Hi everyone, I'm a moderately experienced C++ programmer working on code which must do the following: (a) Import data from a lot of little CSV files (b) Load that data into various objects (c) Do stuff with that data The code I've written does (a), (b), and (c) pretty well, … | |
Hi all, I need to initialize an array iteratively. For example array my_arryay needs to initialized with 512 characters and next with 1024 characters and next with 2048 characters etc etc, which can only be iteratively. Something as in C: for( i = 0; i<100:i++) { my_array[i] = 'a'; } … | |
Hi all, I have got several python scripts and I need to run them in one shot. So I assume that in a .py file I can give statements ./file1.py ./file2.py ./file3.py etc to run multiple scripts. I am defining global variables in a config.py file and these will be … | |
Hi all, I have got several python scripts and I need to run them in one shot. So I assume that in a .py file I can give statements ./file1.py ./file2.py ./file3.py etc to run multiple scripts. I am defining global variables in a config.py file and these will be … | |
So, I am learning Python. To help my understanding, I was wondering how someone might make this code more efficient. Purpose: Take a 32-bit value (tempCode) and output each nibble. My way was to use a string, basically shifting out the binary value from bit 0 to bit 31 into … | |
Hi everyone! So I have a XML code [code] <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="pizza.xsl"?> <pizza_list> <food> <name>Margarita</name> <description>tomato sauce</description> <price>3.60 </price> <diameter>30 cm</diameter> </food> <food> <name>Green</name> <description>tomato, oregano</description> <price>5.40 </price> <diameter>30 cm</diameter> </food> <food> <name>Primaverra</name> <description>tomato, mozzarella, cucumber</description> <price>5.30 </price> <diameter>30 cm</diameter> </food> <food> <name>Sandokan</name> <description>tomato, crab meat</description> <price>6.40 … | |
hi i want some good question c/c++ for practice can anyone suggest me some website or any good book | |
I'm looking for an inexpensive or free class over the internet to help me get started learning ASP.NET. Does anyone have any ideas? | |
Hello! For about two or three weeks now, I've had a cron job that runs every 5 minutes as part of an email subscription system I set up for my church. Yesterday something changed with our hosting server (it's shared hosting with Hostmonster) and now I'm getting an email every … | |
can anyone help me for a simple polynomial addition using list.. no matter how long it is .. but it must be simple ... | |
I would like to read a text file and store to strings some data that are important for me.I tried to do with strtok but wasnt successful?Can u help pls? [QUOTE]txtExample @Greece ASAS (FFF) - BLALAL BALLA BLALALAL - JAJAJAJAJ, XAKALXKAL ZMAH (AVK) – Arvaikheer Airport – Arvaikheer, Ovorkhangai ZMBH … |
The End.