64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for james.lu.75491856

Traceback (most recent call last): File "C:/Users/James/Desktop/Quikemail.py", line 54, in send s.sendmail(me, you, msg.as_string()) File "C:\python 25\lib\email\message.py", line 131, in as_string g.flatten(self, unixfrom=unixfrom) File "C:\python 25\lib\email\generator.py", line 84, in flatten self._write(msg) File "C:\python 25\lib\email\generator.py", line 116, in _write self._write_headers(msg) File "C:\python 25\lib\email\generator.py", line 162, in _write_headers header_name=h, continuation_ws='\t').encode() File "C:\python …

Member Avatar for Gribouillis
0
3K
Member Avatar for Labdabeta

Hello, I have a chain of inherited classes like this: class A { protected: int a; public: int getA(){return a;} }; class B:public A { protected: int b; public: int getB(){return b;} }; Based on that you can see that the public can only read the values in those classes, …

Member Avatar for Labdabeta
0
257
Member Avatar for Minko

Hello, I am getting an error on this line: ReceivedData = NetStream.Read(CryptData, 0, Size) This is the information it gives me: A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.dll Additional information: Specified argument was out of the range of valid values. If you could help me understand why …

Member Avatar for Minko
0
261
Member Avatar for dreking6

am a python beginner, receeently started learning about classesand i wrote this got this little code that keeps bringing this error . please i need someone here to help debug it: class employee(): ` empcount=0` def _init_(self,name,salary): self.name=name self.salary=salary employee.empcount=+1 def displaycount(self): print 'Total employee: %d' %employee.empcount def displayemployee(self): print …

Member Avatar for dreking6
0
6K
Member Avatar for Szabi Zsoldos

Hi guys, I've created a simple plugin for Wordpress that interacts with an API in the backend. The problem is that everything is inserted twice in the database, and I cannot figure out why. The form is submiting only once, not twice. What could it be ? Redirects from my …

Member Avatar for Szabi Zsoldos
0
863
Member Avatar for ammukarthi

how to retrive values from database into a table using vb.net?????? I tried but i don't have either output?????? How to do this??? and my code is: <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled …

Member Avatar for ammukarthi
0
413
Member Avatar for ehpratah

Good Day Everone Just wanna ask for a suggestion if it is possible to Save data in DB and at the same time Print the form when the submit button is clicked? and if possible how can i obtain it? Here's what ive tried form.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

Member Avatar for happygeek
0
4K
Member Avatar for Nebil

Hi guys, I wanted to do a simple calculation using vb.net.That is i would have some values that are used as an input read from excel in the calculation.the values may be changed or used as they are. In the vb side i would have some textboxes that garb the …

Member Avatar for Nebil
-1
7K
Member Avatar for matt.harding.14203

I'm having trouble with this: import java.util.Scanner; public class triangleLoop { public static void main (String[] args) { int height, row, col, spa; String hyp; Scanner kbd = new Scanner(System.in); System.out.println("Enter the desired height of the triangle: "); height = kbd.nextInt(); System.out.println("What side do you want the hypoteneuse on? (left/right)"); …

Member Avatar for cmps
0
2K
Member Avatar for Lp_baez

I was trying to array a string within a string. And I keep on receiving a compiler error. So I’m wondering if is even possible to string a string within a string? Because that’s the error I keep on getting. If not then what is another way to create a …

Member Avatar for Lp_baez
0
476
Member Avatar for vividiah

how to make a looping with a array? this is my program, it make a visual basic 6. this is program to input a many song to database, and the list song in a list box. if we selected one song in a list, otomatic specific song will appear in …

Member Avatar for vividiah
0
233
Member Avatar for pars99

I have always had this question, but I couldn't quite find anything that answered it. I was hoping someone could shed some light on the question... Thank you in advance.

Member Avatar for mike_2000_17
0
2K
Member Avatar for arjani10

Hello! I need help about fwrite option ,i have this script and need write everytime that $id , but my problem is when the script have another id delete the first one and rewrite the new one.i need to have old and write the new without rewrite the old $id.Thank …

Member Avatar for arjani10
0
130
Member Avatar for ganges

Hi, I am using windows 7 sp1 32bit, try to install "Oracle 11g release 2" I am getting below errors and not properly installed help me to solve this errors thanking you file not found C:\app\I\product\11.2.0\dbhome_1\oc4j_applications\applications\em.ear file not found C:\app\I\product\11.2.0\dbhome_1\oc4j_applications\applications\em\em.war file not found C:\app\I\product\11.2.0\dbhome_1\ctx\admin\dr0ulib.sql.sbs file not found C:\app\I\product\11.2.0\dbhome_1\ctx\admin\dr0ulib.sql.sbs file not …

Member Avatar for rubberman
0
1K
Member Avatar for tanatos.daniel

I have an abstract class CArticle and two derived classes CBook and CMagazine. I also have a class CLibrary where i want to add articles. Its members are an int variable to count the articles and a double pointer of CArticle. I have the following main function: int main() { …

Member Avatar for tanatos.daniel
0
449
Member Avatar for Mike_H

I am reading a CSV file and need to add the information into an existing database. I am able to read and display the information correctly. When I try the code below, I get the error *"Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING on line …

Member Avatar for diafol
0
143
Member Avatar for CoilFyzx

Hello Good day. I have an interesting question as it relates to adding a background image to a JPanel (or whichever component is best for what I'm trying to achieve. Hopefully I'll get some help here.) I have a large picture that I want to use as a background image …

Member Avatar for CoilFyzx
0
419
Member Avatar for Labdabeta

Hello, I was just noticing that the 'const'ness of references often causes me to rewrite a large chunk of my code with pointers. For example if I have a class that needs access to a large amount of data from another class I would love to use a reference. However …

Member Avatar for mike_2000_17
0
410
Member Avatar for mpc123

I have the following code but when $newstring echos out as '.-ucwords(strtolower(-['First.Name']))-.-'-'.-ucwords(strtolower(-['Last.Name']))-.-.php It should echo out the fields from the database noy just that code. If someone could help please $txtname = "'. ucwords(strtolower($row ['First.Name'])) . '-'. ucwords(strtolower($row ['Last.Name'])) . "; $newstring = str_replace(" ", "-", $txtname); while($row = mysql_fetch_array($result)) …

Member Avatar for mpc123
0
145
Member Avatar for manalibhadula

Hi , I am new to hibernate and facing issues with composite key mapping.Please help,.While running class name Example,At line 36:- **List sites = session.createQuery("Select h from SiteStageDto h").list();** code is returning null pointer,the hql is returing right query but unable to fetch data to list. I am also posting …

Member Avatar for manalibhadula
0
339
Member Avatar for BadManSam

Hi, I'm modifying a login script; I added an avatar system and now I get an error: Parse error: syntax error, unexpected 'if' (T_IF), expecting function (T_FUNCTION) in /home/promanx2/public_html/include/session.php on line 455 The whole code of that page is here. <?php /** * Session.php * * The Session class is …

Member Avatar for BadManSam
0
213
Member Avatar for bradly.spicer

Hey everyone, Having a few problems: 1. It's not populating the dropdown with all the entries (But in the delete function it is, which is a somewhat copy) 2. It doesn't post the Employer name, the result I'm getting is "Editing user: *BLANK*" Here is the code: function JobBoard_admin_edit() { …

Member Avatar for pritaeas
0
158
Member Avatar for EXTRA_RICE
Member Avatar for G_Waddell

Hi All, I'm fairly new to using Linq but I thought I had a handle on it, apparently not though. I'm processing an XML file sent out as an error report by a third party. I have no control over this file and it has been developed to an industry …

Member Avatar for G_Waddell
0
657
Member Avatar for Turo1

I am getting this error "The program is still running! Do you wan to kill it?" from the python IDE when I run the following code. Any ideas why this is happening? #!/usr/bin/python import sys ######################################################################## # prints program usage ######################################################################## def printUsage(): print "** Print part of Bible **" …

Member Avatar for james.lu.75491856
0
2K
Member Avatar for sirlink99

I am attempting to make a Dictionary like software. The way this software will work is that You will be able to enter a word into a search bar, and the dictionary will search for the word. It will display the word, the pronunciation and the meaning of the word …

Member Avatar for sirlink99
0
435
Member Avatar for nytman

Dear list, i have problem, i was going through with python programming and found there is something missing in case of float data types. what i am trying to do is: i am writing a simple program in which i asked user to input salary, i want to ristrict user …

Member Avatar for nytman
0
19K
Member Avatar for AquaNut

Hi All, I am trying to write a small app that reads a logfile in the form of: 01/07/2013 07:40:12 => Start of process. 01/07/2013 07:40:17 => Preparing authentication token 01/07/2013 07:40:17 => Attempting authentication with supplied credentials 01/07/2013 07:40:20 => Authentication successful! 01/07/2013 07:40:20 => Using BinarySecurityToken: a9d4e88c077e342d 01/07/2013 …

Member Avatar for AquaNut
0
265
Member Avatar for james.lu.75491856

Traceback (most recent call last): File "C:/Users/James/Desktop/hugevar.py", line 2, in <module> class var(tempfile.TemporaryFile): TypeError: Error when calling the metaclass bases function() argument 1 must be code, not str Why does this happen and how can I fix it?

Member Avatar for Gribouillis
0
1K
Member Avatar for DeadH34d

I've been reading through this introductory book on Python, and I've been following along fairly well. Compared to C++, Python seems to make more sense to me. That is, until I reached a section on Logical Operators. I don't completely understand what I just typed in to IDLE, and the …

Member Avatar for Gribouillis
0
409
Member Avatar for mferarri

Hi everyone, I'm getting the following error: Cannot apply indexing with [] to an expression of type 'System.Array' I'm trying to print out the first element of the array as a string. Can someone explain what the error message means? using System; using System.Collections.Generic; public class MyClass { public static …

Member Avatar for kvprajapati
0
144
Member Avatar for james.lu.75491856
Member Avatar for SaRa Ahmad

hi every body , i have recently developed a system using vb6 forms but i need a help o f how to save and view a file with the pdf and .dwg and view it in a form , any help plz ??

Member Avatar for SaRa Ahmad
0
2K
Member Avatar for IsaacMessi10

Close is a Custom Button I made. Dim CloseButton As New Close Private Sub CloseButtonCode() Handles Me.Load CloseButton.Anchor = AnchorStyles.Top And AnchorStyles.Right CloseButton.Enabled = True CloseButton.Location = New Point(1170, 0) CloseButton.Size = New Size(30, 30) CloseButton.Visible = True Controls.Add(CloseButton) AddHandler CloseButton.Click, AddressOf CloseButtonClick End Sub Whenever I Maximise, this button …

Member Avatar for IsaacMessi10
0
95
Member Avatar for thijscream

what am i doing wrong here? <?php include 'connect.php'; $query = 'SELECT productionorder.Finished FROM productionorder WHERE productionorder.ProductionOrderId = '.$id; $result = mysql_query($query) or die ('Error : ' . mysql_error()); while($data = mysql_fetch_array($result)){ $status = $data['Finished']; } if($status == 1){ header('location: index.php?user='.$user.''); } else{} ?> the query returns 1 and is …

Member Avatar for chemwile
0
200
Member Avatar for MasterHacker110

Well this is not as much as something that I dont know how to implement, but more something that I dont know why I would want to implement it. When I have a simple class, say this one: class Cube { public: Cube(int x, int y, int z); int return_area(); …

Member Avatar for rubberman
0
115
Member Avatar for lloydsbackyard
Member Avatar for JorgeM
0
214
Member Avatar for Paul_15

I have an issue within VB Express 2008 which I am struggling to resolve. I am trying to take the information from 3 columns in a CSV file (ServerRef, ServerName, ServerIP) with no header row and populate 3 combobox's for users to select from to initiate an RDP connection. So …

Member Avatar for Paul_15
0
241
Member Avatar for ceeandcee

I have tried a number of things and all of them have crashed. My code is below. I am writing code for a form to upload three photos and this code works fine to upload three photos. What I am stuck with is: 1) I would like the form to …

Member Avatar for ceeandcee
0
186
Member Avatar for atzaman

Hi Please could someone kindly help me with an issue I'm having converting date formats. I'd like to convert dates which are in the format mm/dd/yy hh:mm:ss into yyyy/mm/dd hh:mm:ss but am kind of stuck on how to do it. Anyone able to help? Many thanks in advance.

Member Avatar for diafol
0
5K
Member Avatar for eos.paks

Good Day, *I would like to ask a Free SDK or a Program that generate a Barcode that will base on a User Input and have capability to Print it?* Your help is Highly Appreciated. Thank You, Eos

Member Avatar for heartbeet
0
177
Member Avatar for singularity~

I am using the BusyIndicator from the WPF Toolkit in my WPF application. I am trying to access the label (artistLabel) from the C# code behind. Unfortunately I cannot access the label if it is inside the busy indicator. I am sure that it's some kind of binding or scope …

Member Avatar for lizhenfan
0
4K
Member Avatar for GlenRogers

I've been trying to use mysqli instead of mysql. I have a file from another site which will fit nicely to this site im doing now, but i havent a clue what i need to do to convert it to mysqli. This is the file <?php include 'connect.php'; //populate form …

Member Avatar for GlenRogers
0
160
Member Avatar for spetruska

I'm trying to send **MULTIPLE ATTACHMENTS** in a single e-mail from a FreeBSD, **PHP**, MySql, **SwiftMailer** configuration. I display a form, listing all PDF Files with checkboxes, file names, and file location (hidden) for a client, Then, when <SUBMIT> is pressed, I am trying to format and send an e-mail …

Member Avatar for spetruska
0
3K
Member Avatar for JavNoobie

Hi folks, This is my first post on DaniWeb Im trying to build an enhancement to my web app, by including pagination to diplay the results of a query in the jsp. I ve tried using the diplay tag library to implement the same .Before using the display tag library …

Member Avatar for superman1011010
0
423
Member Avatar for DarkLightning7

I am working on a mapping system to support pathfinding over areas that are too large to hold in memory. The problem i have run into is how to load only a small part of the map when its all linked together and then dynamicaly load more of the map …

Member Avatar for JamesCherrill
0
223
Member Avatar for layman114

Hi there, json is working fine on apache but not on iis. On IIS, if I try to load .json file, it gives me this error --" HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is …

Member Avatar for layman114
0
246
Member Avatar for Borzoi

Hi there, I've not been on here in a while. I'm having trouble with a PHP function and I'm pretty sure I'm missing something very obvious or I'm doing something wrong so hopefully someone can help me reach that inevetable facepalm or headdesk when I realise what I'm doing wrong …

Member Avatar for Borzoi
0
228
Member Avatar for cgull

Hello, I am developing a site with ci 2.1.4 I used this tutorial to create an event in google calendar: [Click Here](http://www.cecilieo.com/techblog/how-to-implement-zend-framework-with-codeigniter-on-windows/) When I change a date on the view, it calls the controller function with ajax, used to work fine, now the page just hangs and I can’t figure …

Member Avatar for cgull
0
2K
Member Avatar for BadManSam

Hi, I want to echo something if certain text is typed into a form textbox. <form action="mail.php" method="POST"> <table border="0"> <tr><td><b>To:</b></td><td><input type="text" name="mailTo" size="20" value="<? ; ?>"></td></tr> <tr><td><b>Subject:</b></td><td><input type="text" name="mailSubject" size="20" value="<?=$mailSubject;?>"></td></tr> </table> <b>Message:</b><br> <textarea rows='16' cols='45' name='mailMessage'></textarea><br> <input type="submit" name="mailAction" value="Send" /> </form> I want to add it to …

Member Avatar for BadManSam
0
231

The End.