199,114 Archived Topics
Remove Filter ![]() | |
In one of the books I'm using to study Python I keep seeing things like: [CODE] class Application(Frame): super(Application, self).__init__(master): self.grid() self.bttn_clicks=0 self.create_widget"""which is another function in the class"""[/CODE] Why is the super necessary for the class if the class it's calling is itself? | |
hello every one, i ask for some help i would like to write program that enables the user to insert a photo into the picture box by clicking on a button. i used the following but it is bringing an error [CODE]pictureBox2.Image = Image.FromFile("path");[/CODE] Thanks | |
Hi, Can you give some practical example of association, aggregation and composition which will make this understandable. regards, | |
Hello, I am trying to bind an Access database to a MSChart control in VB Net 2008. I have a test database populated with four fields SAMPLE-Date\Time, Values-Number, MAX-Number and MIN-Number. I'd like to only display the rows that fall within a specific date range but I'm running into a … | |
Hi all, and thanks in advance for your help. I am trying to write a Linq to XML query that will test attribute values in multiple elements and return the possibly multiple qualifying entries from a main element. The XML I'm looking at is basically like this: [CODE]<ContentList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" … | |
can you help me to code a vb.net program.. i want to have a button that if i click it will add a table in the sql server database.. tnx :)) i really really need this code i only have 1 week to finish dis project :)) | |
hi all, i am trying to do a mini project in java which is totally console based. please suggest me few topics for it... | |
is it possible? i would like create Q&A game with a countdown-timer. if timer=0 then stop the game. how can i do this? Thank you | |
Dear All, I have read dateTime field into a string from mysql database and in my java I have another dateTime in string format and in same format as the mysql date time and would like to compare both to see which one is before? | |
Hi i Am A Newbie In This Website So Please Go Easy on Me. I Have Baisc Knowledge of C++ And I Do Projects on A Daily Basis, But I Have Never Tried Anything Related To Networking .So I am Asking How Can I Make A Chat Program With 2 … | |
Hello everyone, i write mostly in java but have recently started picking up c and c++, and i was wondering if there was an equivalent to the java date class in c++ or c? I've searched for a date.h and came up empty. | |
Basically I'm wondering what a sensible approach to learning Windows driver development would be. I have a logitech mouse that logitech decided to drop support for Vista/W7 on, and I'd like to write a driver for it but if that isn't possible it's fine and I would work with some … | |
Hi I'm new to this forum and I am looking for a little help. I was wondering if someone could provide some code that allows someone to enter a message into a comment box, hit submit, and then that message is sent to an email account. I also have two … | |
Hi there, I am trying to get the words (city names) from a user input. For example, the inputs: [CODE] String input1 = "Pyeongchang 135135.13 531.351"; //Note: "Pyeongchang" is of one word. String input2 = "New York 3543.25 25352.523532"; //Note: "New York" is of two words. [/CODE] I need to … | |
I need the dates in a specific range.And i want to get the result in java manipulating from a MySQL database.Now how can i do so. Suppose there are 3 days 17.08.2011,18.08.2011 and 19.08.2011 .I want the dates in the range 16.08.2011 to 18.08.2011 .So how can i manipulate it … | |
Hi all, For some reason I can't seem to wrap my mind around JOINING tables and getting the data I need from this. I have three tables I am trying to join. I need to count the number of blogs, comments and number of views for each user. I have … | |
![]() | Hi, I am learning to work in JAVA. I have gone through the basic concepts, understood and experimented small codes successfully. The point where I have been stuck is garbage collection, finzalize() method and System.gc() method. I have searched these on Google but all the explanations are in high-tech language … |
I have been looking at tutorials in regards to isNullOrWhiteSpace to validate user input of a string. but i am unsure how to initialise the method. This is just a code snippet and all i am trying to do is place this in a loop to ensure if user presses … | |
Hi all, I want to know how to assin a return value to a variable when calling a regex function. it always returns a bit type of value(its ok). i want that bit type of value tobe cheked whether it is '0' or '1' this is my C# code in … | |
Is there any easy way to view the full content of multidimensional arrays in VC++ 2010 in the debugger (or some other way I suppose)? | |
I have multilanguage emails(Hindi,chinese,japanese etc). I can not read that multilanguage emails using [COLOR="Red"]imap_fetchbody or imap_body or imap_bodystruct[/COLOR] can anyone help me to read emails? | |
Dear Folks, When I iterate within the very bottom function under the comment "#Update conserved quantities" in this module using for loop (see below), I have noticed that the block of statements below it is not iterated, [CODE] """ """ from numpy import * from math import * from scitools.std … | |
Hi evryone, i'm doing a project in Asp.net. I need your help in generating report. The concept for generating report is when each user login to the website using his id i would retrieve data from his table if 2 values is retrieved thn this 2 values act as a … | |
I have a project.A shape game There are shapes and yours should be controlled by arrow keys.. you should crash with another to gain point. once you collide to a another shape, it should adopt the shape and the color. The problem is when i se,t for example, shape1 top … | |
I am making a program of a bowling tracker. I made four names and then I have to add specific dates they played and then the score they got on those days. Then print to screen the names, the number of games they played, average score, last games score and … | |
Hello, I have written some code that spans 5 different files, which are all in a folder called Employee. The code runs fine without a package, but i have an assignment to package them. When i try to compile the object method which contains all the get and set methods, … | |
Hello, I just revamped a website and rather experimented including absolutely all <head > contents within a single .php file, including google analytics. But I am a little confused now reading the analytics for my website and I wonder if google analytics, being fed to all the pages from a … | |
Hey everyone, I've tried extensively to find a thread like this already, so I hope it's not a repose. Basically, I have a program with a nice GUI (Tkinter) which has a frame which takes in matplotlib figures. I am able to connect the plots to the Tkinter frame this … | |
I know how to print forms in vb but i wanted to change the page orientation to landscape but the code in the help file is [COLOR=red]:evil:form1.orientation=1 '1 for landscpe and 2 for prtrait:evil:[/COLOR] [COLOR=#ff0000][/COLOR] [COLOR=black]this doesn't work please help[/COLOR] | |
Hi I am trying to save settings on close I have the following code [CODE] Private Sub MainSystem_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing My.Settings.firstRun = Me.RadCheckBoxFirstLoad.Checked = True End Sub[/CODE] and on form load [CODE] If My.Settings.firstRun = False Then RadPanelWelcome.Show() Else RadPanelWelcome.Hide() End If[/CODE] I … | |
Hi All, I am writing a program that saves quotes for writers to an xml file. Well I save my data to the xml file, but when I go to load the document I get this exception thrown at runtime. System.Xml.Xsl.XslLoadException was unhandled LineNumber=2 LinePosition=1 Message="Stylesheet must start either with … | |
Hi, I have seen a lot of people have been having a similar problem to this, but I have not found a solution and so daniweb is the best place to go! Basically, whenever I use: [CODE]<?php include_once "Filename.php"; ?>[/CODE] which I often do for the header, navigation and footer … | |
I've created this application for some clients and for some odd reason it is not working for 1 of my clients. its seems to download a file no problem using this code [CODE] Dim request As FtpWebRequest = Nothing Dim response As FtpWebResponse = Nothing Dim respstrm As Stream = … | |
I am using netbeans 7.0 in windows 7. The problem I am facing is that when we design any frame in GUI builder of netbeans then it uses Windows Look and Feel always, so i need to design according to that. So as long as I use windows look and … | |
I'm writing an application in C#. I already have not empty .xml file but I want to add new values in it, without deleting some old. I have tried these codes: First: [code=c]FileStream docNewUser = new FileStream(@"C:\\MyApp\\MySubDir\\Data\\" + pr + ".xml", FileMode.Open); XmlTextWriter xmlNewUser = new XmlTextWriter(docNewUser, null); xmlNewUser.WriteStartDocument(); xmlNewUser.WriteStartElement("RootEl");//root … | |
Hi All, A newbie question and a really stupid one indeed:$ I want to store some incoming data into an array and then compare it with an array that I have defined. I am posting the program here but it is Arduino based and uses the Wire library. But I … | |
Hello, I am storing my mysql connection data and other sensitive information in a config file, however I detected an issue that anyone can access that file and view the contents of that file but I don't want to let anyone do that without appropriate permission. I can encode the … | |
Hi! Im Im trying to read a some 32-bit registers from a PLC and check if a bit is set. If e.g bit number 8 is set then i have an alarm. If bit 9 is set then it is acknowledged. If there is an alarm i would like to … | |
Hi all. I'm trying to move someone else's app onto a different server (and debug it in the process). Among the onslaught of bugs to squash, theres one I just cant get my head around... I get a parse error on try-catch, and I have no idea why. I've isolated … | |
[CODE]Imports System.Data.OleDb Public Class Form1 Public con As New OleDbConnection Public cmd As New OleDbCommand Public da As New OleDbDataAdapter Public dr As OleDbDataReader Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim oOLE As String Try con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\BOND\BOND\bin\database\RBIBOND.mdb;Persist security info=False;" con.Open() oOLE = … | |
Hi folks, I was wondering how I can differentiate between file types when using OpenFileDialog. I would like to be able to have the option to load different file types (as denoted by the Filter property) and handle each type in a different way. For example [CODE] Stream stream; OpenFileDialog … | |
Can any one help me to know how to deal with big numbers, like to count the number of digits in factorial of 5*10^9. or how to make number 20,000 decimal. array can store only to 10^6, if heap is taken the size could extend up to 10^9.How to deal … | |
How to set white back ground for disabled combo box??? I already tried setBackground.... But it didnt work like textfields. | |
hey can any one please help me by showing me how to buy and sell a product online using php | |
[IMG]http://i25.lulzimg.com/29b7c6.png[/IMG] I used transparent panel and labels... used paint method to round corners... b4 using paint method panels were transparent but now one panel is transparent others are white... in properties it still transparent [url]http://www.mediafire.com/?l7tbtsh00w97pyn[/url] if i select wordpress category panel become transparent.. how i can solve this problem and … | |
I fetched some data(eg:name ,email,phone,mobile etc) from a website using simpleDOMhtml.I want to store it into the database.Which page will write the code and how will write?Please help me.Thanks in advance. | |
My program generates a list of random or pseudo random numbers between a certain range specified by the user through the console. My problem is when the user, or in this case myself, tries to generate a random number list specified by entering true(1) in the console the output is … | |
I have made a following program that will convert lower case letters in to upper case and upper case letters will remain same and that will be done Realtime (as character is typed). [CODE]#include<stdio.h> #include<conio.h> void main(void) { char ch; printf("Type a sentence: "); while (ch!='\r') { ch=getch(); if (ch … | |
Hi all, Please let me know the open source editor for php. Thanks | |
Hi I create some tables in EasyPhp>>Phpmyadmin>>test(db name)>>((localhost)) and it works correctly with my designed page in dreamweaver but i wanna upload all of tables into the mysql db in cpanel So, the question is How can I move all of the tables with saving details to mysql db in … |
The End.