199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anilk

Hi All, I am a total newbe to python. I am using some already available code to send email from commandline using my Gmail account. For the piece of code smtp = smtplib.SMTP('smtp.gmail.com', 587) I get a error ################ Traceback (most recent call last): File "Mail.py", line 44, in <module> …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for Diamonddrake

Does anyone remember how ms dos had a [B]sort[/B] program that you could sort the rows in a huge text document based on just one character by its position from the left margin? I am trying to recreate that effect in a notepad clone. I am sort of new to …

Member Avatar for Diamonddrake
0
154
Member Avatar for jproducer

I used a wonderful resource at oreillynet to grab a pretty nice script to open up mp2's in a little .js pop up window. I'm just having a little issue trying to get the link color to change. I see where the code is and have tried several reditions. Just …

Member Avatar for SavyCat
0
218
Member Avatar for serkan sendur
Member Avatar for jbennet
0
62
Member Avatar for Doy123

Hello, I'm new to the forum. I studied x86 assembly about 25 years ago. I think we used a 8080 or 8086. It was all Dos back then, no Windows. Anyway, my career took me down another path and I would like to learn assembly again. My laptop and desktop …

Member Avatar for jbennet
0
88
Member Avatar for Grub

Hi It is possible to execute terminal commands in java, but is it possible to then get the output or result of the terminal command as input into a java program? If so, may someone tell me how or point to materials that I can read. Many thanks

Member Avatar for Grub
0
193
Member Avatar for Borderline

Evening I am trying experiencing problems with a new layout. I am trying to achieve the following style: [url]http://www.further-flight.co.uk/testing/notes/attempt.htm[/url] My current layout has ended up like this: [url]http://www.further-flight.co.uk/testing/notes/failedlayout.jpg[/url] Code: [CODE] <div id="menu"><?php include($_SERVER['DOCUMENT_ROOT'].'/testing/notes/menu.php');?></div> <div id="main"> 1.1 Allow Apostrophes </div> <div id="content"> <p> Information relating to allow apostrophes here </p> </div> …

Member Avatar for somedude3488
0
132
Member Avatar for DanceInstructor

[CODE]Warning: Unknown(): Unable to call () - function does not exist in Unknown on line 0[/CODE] Has anyone seen this error or know what it means?? Thanks

Member Avatar for GrrUnknown
0
228
Member Avatar for sierrasoft

I want to convert a VB6 Application with many Forms to C# .Net 2.0. How can i do it. Is there a tool available?

Member Avatar for mjuras
0
505
Member Avatar for sjhentges

Ok here is my assignment, i know its alot to read, but i would really appreciate the help: Write a program that asks the user for a file name. The file contains the part number, cost and quantity for up to 50 parts in the current inventory at a store. …

Member Avatar for sjhentges
0
132
Member Avatar for pocnib

I need to write a Python program which parses webpages and returns a dictionary of unique words and their frequenies. What I came up with was [CODE]#!/usr/bin/env python from HTMLParser import HTMLParser, HTMLParseError import urllib import urlparse import sys import os import MySQLdb import re class WordHarvester: def __init__(self): self.db …

Member Avatar for woooee
0
447
Member Avatar for designingamy

I'm having a hard time with sessions. I have a long form on 3 different pages and then a preview page of everything entered. I created the code to store the session variables on each page but on the preview page it comes up empty. I am using session_start(); on …

Member Avatar for designingamy
0
84
Member Avatar for BestJewSinceJC

If I have a hash function h(k, f(i)) and f(int i){ return c * i; } And the first index that it tells me to insert the element at already has an element there, what do I do? Would the proper way to insert an element the first time be …

Member Avatar for BestJewSinceJC
0
246
Member Avatar for veledrom

Hi, This is my XML file. I want to retrieve information stored in a HTML Table in index.html page. How can i do it? Thanks [code] <?xml version="1.0" encoding="UTF-8"?> <memo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="memo.xsd"> <header> <companyName>XML development LTD</companyName> <to>myemail@yahoo.com</to> <from>xml@yahoo.com</from> <date>1979-11-07</date> <reg>I don't know the reg</reg> </header> <body> <message> <parag>Hello, How are …

Member Avatar for veledrom
0
163
Member Avatar for Lukezzz

General question: If you want to create a homepage, wich application can you do this in ? I know C++ well but I am not sure if you can use Visual C++ Express Edition 2008 for something like this ? Does anyone have experience of this, What application could otherwise …

Member Avatar for ArkM
0
92
Member Avatar for lulusweety

I know that red black tree is a special case of binary-search tree. But what is the advantage of red black trees over BSTs. Is there any advantage regarding complexity. Does coloring the node cause any difference regarding the complexity? please anyone give me an answer.. Thanks in advance

Member Avatar for haider_up32
0
155
Member Avatar for hamadak

i have a c++ project and am using has-a inheritance ... the project is to create a class Sensor then makes is-a inheritance to classes Regular Sensor and CriticalSensor .. uptill now no problem ... i want then to create a class Building that (has) sensors so am using has-a …

Member Avatar for hamadak
0
94
Member Avatar for Ameerah

[COLOR="Green"]Hello pleas any one helpe me in my code my code include error iam convert thise function to over loading(laste function) but include error Code:[/COLOR][CODE]bool Student::operator!() { if(!canRegisterMore()) return true; else return false; } bool Student::registerCourse(Course course) //thise function expline abilety of register course but you should //the 1 can …

Member Avatar for Salem
0
124
Member Avatar for navinlearns

When i create a JTable like the code shown below: [ICODE][B]String[] columnNames = {"First Name", "Last Name", "Sport", "# of Years"}; Object[][] data = { {"", "", new Integer(5),""}, {"", "", new Integer(5),""}, {"", "", new Integer(5),""}, {"", "", new Integer(5),""}, {"", "", new Integer(5),""}, }; JTable table=new JTable(data,columnNames); table.doLayout() …

Member Avatar for Ezzaral
0
102
Member Avatar for ItecKid

Hello, I am having trouble understanding the output of the following program: [code=C++] #include <iostream> using namespace std; int main () { int a[5][6]; int b, d; for (b=0; b<=5; b++) { for (d = 4; d >= 0; d--) { if ((b+d)% 4 == 0 ) { a[d][b] = …

Member Avatar for ItecKid
0
136
Member Avatar for Joncamp

The following code compiles, but I don't have any documentation on how to use the "enum" structure. I cant find any info on it in my books or Sun's language documentation... class Test { enum eone { Plus { int operate(int x) { return ++x;} }, Minus { int operate(int …

Member Avatar for stultuske
0
102
Member Avatar for BestJewSinceJC

I'm trying to read in the whole file at once. If this code ever fails, my whole project will fail. I'm using the following: byte[] theFile = new byte[input2.available()]; then, input2.read(theFile); The API says something about blocking. What exactly is blocking, when will it happen, and how will it affect …

Member Avatar for BestJewSinceJC
0
91
Member Avatar for manish_fra

i am encountering a Linker Error: Undefined reference in my program under DEV c++ it invovles usage of the NTL class of header files. i have downloaded those files and have every header file existing in the required forlder of NTL. but still there are issues concerning the reference. i …

Member Avatar for ArkM
0
67
Member Avatar for nszumowski

Hey Everyone, hope you are all well... I have a little subscribe form at inkmedic.com it is a php include, when you click the submit link, the jquery plugin 'lighwindow' opens the elist.php file and should submit the form, however the email information from the form is not carrying over …

Member Avatar for nszumowski
0
102
Member Avatar for happymadman

Hi Is there a way to check if a float is a whole number eg 10.0, 7.0 or somthing.0 I'm doing problem 5 on project eular Mayby I have the complete wrong idea here is my code: [code] numbertobetested = 0.0 loop2 = 1 while loop2 == 1: numbertobetested = …

Member Avatar for sneekula
0
101
Member Avatar for Bill Purkins

Hi, I am a full time freelancer who works primarily in Visual Basic 2008 using the Express Edition. I love the fact that it is free, but I find it slow and somewhat quirky, even buggy in some frustrating cases. I guess I am asking for opinions on what your …

Member Avatar for Bill Purkins
0
106
Member Avatar for Salizer

Hi, I have a problem with using variables in assembly. I´m new to assembly and I am trying to use Roby´s programming tutorial: [url]http://geocities.com/SiliconValley/Park/3230/x86asm/asml1001.html[/url] The problem is that when I have declared a variable and try to move it. For example: ideal p286n model tiny codeseg org 100h var1 dw …

Member Avatar for Salizer
0
164
Member Avatar for spanigrahi_situ

HI All, Ant Unix method or C++ method is there to convert unix time stamp to system time stamp.The input is ULONG and out put should be in string. u can intimate to <email snipped> Any help is appreciated in advance.

Member Avatar for Salem
0
2K
Member Avatar for jimbob90

This program adds up command line args (all of them ints) [code=c++] #include <iostream> #include <fstream> using namespace std; int main(int argc,char *argv[]){ int answer; fstream a; for (int q=1; q > argc; q++){ a.open(argv[q]); } answer = argv[1]; //first error for (int k=2; k > argc; k++){ answer += …

Member Avatar for Freaky_Chris
0
131
Member Avatar for Ian90

Hello, I have a fairly basic knowlegde of Visual basic, I am trying to create a form to create a username and password which is then saved in a .txt file, the problem being that anyone can read it. Is there any way that it can be simply encrypted before …

Member Avatar for andy_aphale
0
1K
Member Avatar for franko75

Hi there, I'm looking for some feedback on a simple database class i've written. I'm just trying to get to grips with OOP, so any feedback would be appreciated. I do realise that PDO is available, and that this database class is really just a wrapper for mysql_* functions, but …

Member Avatar for somedude3488
0
114
Member Avatar for farshidk

Hi, how can I assign an action to an icon? For example, I have a print or close icon and I insert it in my webpage, now how can I assign appropriate actions to the icons? Please help...!!!

Member Avatar for farshidk
0
102
Member Avatar for divyasrinivasan

pls give me the complete code for it ..i tryed but not getting the output..pls help..iam pasting the code here but no output [code=aspnet] SqlConnection cn = new SqlConnection(ConfigurationSettings.AppSettings["con"].ToString()); protected void Page_Load(object sender, EventArgs e) { Response.Write("sql is connected"); SqlDataAdapter da = new SqlDataAdapter("select countryid,countryname from countryname", cn); DataSet ds …

Member Avatar for terrible
0
147
Member Avatar for miko85

The code below disable whole dropdownlist when select. How do i only disable and grey out certain values in the dropdownlist? function ViewPersonalinfoBoxes(fm) { if (fm.PolicyType.value=="VEHICLE" || fm.PolicyType.value=="VEHICLENO") { alert('System not available!'); document.RegForm.PolicyType.disabled = true; } } * RegForm is the form name * PolicyType is the dropdownlist

Member Avatar for Luckychap
0
119
Member Avatar for cutieann12

hello everyone, i need to make a program that will show/load the images stored in mysql database, i've already created the database and my problem is i can't load it in my vb code.... here's my code below Dim conn As MySqlConnection 'connect to database conn = New MySqlConnection() conn.ConnectionString …

Member Avatar for tuse
0
107
Member Avatar for maxbox

i cant understand why this error commimng up [CODE]<?php $mysql_host="xxxx.xxxxxx.xxxx"; $mysql_user="anuncios"; $mysql_password="xxxxxxx"; $mysql_db = "suecia"; $conn = mysql_connect("$mysql_host","$mysql_user","$mysql_password") or die("Could not connect : " . mysql_error()); mysql_select_db("$mysql_db",$conn) or die("Select database failed"); $code = mysql_query("Select * from jos_call where code = '".@$_REQUEST['nombre']."'",@$conn); if (mysql_num_rows($conn)==0){ //error here// echo @$_REQUEST['nombre'].' - Codigo correcto'; …

Member Avatar for sikka_varun
0
89
Member Avatar for nikola.rosic

Well i have one main form which i run like an application.On that main form i have 3 buttons which are opening another 3 forms(instances of Form2 class) which are of the same class Form2. So i have : Form2 form1=new Form2(); Form2 form2=new Form2(); Form2 form3=new Form2(); all of …

Member Avatar for LizR
0
257
Member Avatar for windany

It is meant to count the first two numbers in the array and then place them in ascending order, but sth wrong. Any idea? [code=assembly] Code segment jmp main add1 dw 9,3,2,7,1,4,2,5,8,1 main: mov si,0 call orderab exit: mov ax,04c00h int 21h orderab: cmp add1[si],add1[si+2] jle finish mov ax,add1[si] mov …

Member Avatar for jt_murphree
0
150
Member Avatar for lucier

way back 2006 when im interested in programming, but sad to say i wasnt able to pursue , I work in Hardware and now im in Software Company, and I need to Gain my Knowledge in Programming.. Who is outhere that can help me gain back my skills in Programming …

Member Avatar for Bill Purkins
0
158
Member Avatar for mcx76

Hi, I am thinking to use Oscommerce. and i want to make some change as I want that "When user see products and like to order.User simply go to Contact us page and send email. Actually i want "Add to cart" to "Contact us for more information and it go …

Member Avatar for sikka_varun
0
127
Member Avatar for gazet22
Member Avatar for gazet22
0
51
Member Avatar for servis

Hellow, Can we prevent exposing java script and css in source code of web page on the user machine??? please if anybody know about it???? shuja

Member Avatar for jbennet
0
192
Member Avatar for chirutha12345

hai friends, i am writing the code for file upload .the document file is stored on the sqlserver databse. i taken the one file upload control and button. in the sqlserver i create a table and a procedure and witten the code. but it gives error at show files method …

Member Avatar for 4advanced
0
129
Member Avatar for stevehart808

Hi, This script works great when uploading photos but if I try mp3's I get 'Error uploading file' Any ideas would be much appreciated! Thanks [code] <? $uploadDir = 'mp3/'; include ("../includes/database.connect.php"); if(isset($_POST['send'])) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; // get the file …

Member Avatar for stevehart808
0
207
Member Avatar for mtramnes

Create a form to upload a plain text file, once uploaded to the file system, open the file, and email me a message containing the contents of the file. Im having trouble with learning perl to begin with and Im not sure where to even start for this project. Could …

Member Avatar for verruckt24
0
118
Member Avatar for Puppetmaster

Is it possible to have a program run multiple functions at the same time? Connectionist neural network programming seems suitable for object oriented languages. But brains seem to be able to have multiple faculties working all at the same time, and in orchestra with each other. BTW I'm a complete …

Member Avatar for Prahaai
0
105
Member Avatar for Zermoth

Try to do 3 things. The 1st see if a database exists in a certain location: if it dose then connect. else show error message. The 2nd see if the database is open: if open the display a message to the users that they are going to get disconnected. pause …

Member Avatar for Zermoth
0
148
Member Avatar for Demonisya

O.k My teacher game me a take home exam which will be submitted on monday..... and also I have to defend what I composed so I will ask you many questions so that I will understand this program..... my teacher said Never use C... do it in your own ideas.... …

Member Avatar for Demonisya
0
107
Member Avatar for Zermoth

is there a way to disconnect a user/s from a database and/or display a msgbox to the users telling them that there are about to be disconnected? ms access 2003

0
84
Member Avatar for sancti

hi all, I am developing a web application. I have loaded some block of text into the text box. Now i want to print only the contents of the text box.Can anybody help me regarding since i am new to asp.net thanks in advance

Member Avatar for 4advanced
0
892

The End.