199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ariel.goldstien

Hi I am trying to create an image with text hebrew in it using Image and ImageDraw moduls but I keep getting erros. this is the code import Image import ImageDraw a = u'\u05d0'#the unicode of the letter I want to display im=Image.new('RGB',(200,200),(100,100,100)) d=ImageDraw.Draw(im) d.text((0,0),a) this is the error I …

Member Avatar for ariel.goldstien
0
366
Member Avatar for tylerc101

Hey guys, I'm having issues returning my array at the end of my code, when I do the array is not the same as it was before being returned (which can be seen by the printout). I also get a warning from my compiler: "warning: address of local variable 'garray' …

Member Avatar for dusktreader
0
120
Member Avatar for makan007

I am exploring to add an element, ASCII letters to my random generated 1D array to form new array. How can I use <cstring> header to achieve my result. [CODE] #include <iostream> #include <ctime> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 10; void constructSet1 (char*, int); …

Member Avatar for dusktreader
0
227
Member Avatar for pysup

Hi, The code below will check if a particular exe is running in windows, return the Process ID and force kill the process. If anybody has an easier way to do it please feel free to comment :)

Member Avatar for Tech B
0
229
Member Avatar for rickywh

I'm using a socket server that is based off of java and it allows java extensions to be implemented that allow server side login to be performed. I want to create a signup/login system but I'm struggling with finding a way to validate/filter user input before manipulating with the database. …

Member Avatar for BestJewSinceJC
0
170
Member Avatar for problemkid

Hi good day to all, I am suppose to write a program using class that allows me to add or subtract numbers that are very long. Eg 100 digits. I have come out with a few ideas to go about doing it but need to clarify some points before i …

Member Avatar for dusktreader
0
143
Member Avatar for doha786

hi, i have a TextField in myGUI where some data(results) are shown after calculation. I have a 'save' button to save this result into a particular txt file.. i almost done without error....but inside my txt file it shows this kind of things: [QUOTE]ava.awt.datatransfer.StringSelection@157f0dc [/QUOTE] Please anybody help me to …

Member Avatar for BestJewSinceJC
0
200
Member Avatar for whiteyoh

Hi all, The following should display a record count, however im getting to a blank screen. Can anybody see why this query wont display anything? [code] <?php $link = mysql_connect("localhost", "uname", "pword"); mysql_select_db("dbname", $link); $result = mysql_query("SELECT ID FROM tbl_sellers", $link); $num_rows = mysql_num_rows($result); echo "$num_rows Rows\n"; ?> i get …

Member Avatar for benqus
0
99
Member Avatar for epicasian

Hello, I am trying to have all my body text for a news website I am building, inside a MySQL DB, and when I echo it out in PHP, it shows symbols like � instead of ". Can anyone help me? Thank you, EpicAsian P.S. I've tried the ASCII, ARMSCII8, …

Member Avatar for epicasian
0
134
Member Avatar for Brick

I have a database column defined as int that contains a negative number representing a date in mmddyy format (without the leading zero) so -10209 = 01/02/2009 -122508 = 12/25/2008 How can I convert the data to a datetime so I can compare it to another date in a where …

Member Avatar for Brick
0
155
Member Avatar for panagos

i have 2 tables: category, location. i create the tables: [CODE]create database tourist; grant all on tourist.* to dbuser; use tourist; create table category(id integer NOT NULL AUTO_INCREMENT,season varchar(20),num_summer integer,num_winter integer,PRIMARY KEY(id)); create table location(code integer NOT NULL AUTO_INCREMENT,town varchar(20),hotel varchar(20),price integer,star integer,media varchar(70),PRIMARY KEY(code)); [/CODE] i want now to …

Member Avatar for panagos
0
135
Member Avatar for Alba Ra

As mentioned is this [URL="http://www.daniweb.com/forums/thread255320.html"]thread[/URL] I intend to create a collection of functions that use only core functions (as the [URL="http://www.php.net/manual/en/ref.strings.php"]String[/URL] functions) to maximal compatibility. (See the [URL="http://sites.google.com/site/xmlxslt4php/"]website[/URL] - anyone is invited to participate.) The first task will be to parse a string (containing the XML data), break it down …

Member Avatar for ShawnCplus
0
519
Member Avatar for garyinspringhil

python def question def spinBox_Changed(self, a0, b0=785, c0=300): self.LCDNumber10.display((b0-c0)/a0) this works great if I manually have b0 and c0 values there but I need to get these variables from a slider value and spinbox valve respectively. The slider is self.slider5_2.value tried lots of combos like .value display Value etc. The …

Member Avatar for woooee
0
154
Member Avatar for vin1

hi all,im new here and im a beginner at c++, im making a simple tic tac toe program, and its not working properly, it cant determine the winner,could someone please help. heres the code [CODE] #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<graphics.h> #include<ctype.h> #include<time.h> void main() { /* request auto detection */ …

Member Avatar for mrnutty
0
142
Member Avatar for emkayiii

Hello DB gurus, Does anyone know how to approach the situation where a record's status (in this case "is_in_recording" for example) depends on multiple records in another table? I have a "files" table and it has a boolean "is_in_recording" which if set to TRUE means the file is used in …

Member Avatar for pclfw
0
96
Member Avatar for nomemory

Hello, regarding OOP I have Java background, and I usually think in java when I code OOP in python (which sometimes is actually a bad thing). [CODE=python]#!/usr/bin/python class Card(): SUIT = { 'C':'Clubs', 'D':'Diamonds', 'H':'Hearts', 'S':'Spades' } VALUES = { '2':2, '3':3, '4':4, '5':5, '6':6, '7':7, '8':8, '9':9, \ '10':10, …

Member Avatar for nomemory
0
400
Member Avatar for mmasny

Hello everybody, I'm new here. I'm new to C++ as well and have many problems that you might find silly. One of them is this code, not willing to compile: [code=C++] #include<iostream> class Okno; class ListaOkienEl; class ListaOkien{ ListaOkienEl* pocz; public: ListaOkien(); ~ListaOkien(); void DodajPocz(ListaOkienEl&); void UsunPocz(); ListaOkienEl* WezPocz(); }; …

Member Avatar for mitrmkar
0
102
Member Avatar for cutie0407

im trying to add a new records to database access but when i click the button submit it say's Syntax error in INSERT INTO statement, OledbException was unhandled da.Update(ds, "MSHS") = syntax error INSERT INTO here's my code [CODE]Public Class StudentRegistrationForm Dim inc As Integer Dim con As New OleDb.OleDbConnection …

Member Avatar for apegram
0
687
Member Avatar for axa121

[code] from string import * def removePunctuation(sentence): sentence = lower(sentence) new_sentence = "" for char in sentence: if char not in punctuation: new_sentence = new_sentence + char return new_sentence def wordFrequences(sentence): wordCounts = {} split_sentence = new_sentence.split() print split_sentence for entry in split_sentence: for word in entry: wordCounts[entry] = wordCounts.get …

Member Avatar for woooee
0
3K
Member Avatar for tinek

i have an assignment to make a program that forecast the date given by the number of days by the user including leap years. example: Input date: November 20, 2008 Input number of days to forecast: 100 Forecast date: March 01, 2009 pls. help thank you ;)

Member Avatar for Dave Sinkula
0
100
Member Avatar for Mujahid158

Hello, I'm running a PTC website in which I'm unable to edit the referral field. Here is the code: [CODE]Referrer (if any):<br> <input type="text" size="25" maxlength="15" name="referer" class="form" autocomplete="off" value="<? if($_POST["referer"]) { print $_POST["referer"]; } else { echo securedata($_GET["r"]); } if($_POST['referer'] or $_GET['r']) { print "\" readonly disabled"; } ?>">[/CODE] …

Member Avatar for compusolver
0
104
Member Avatar for nats01282

Now i have a mySQL database What can i do with it? i already tried a basic register and login script and i get a error saying [QUOTE]Table mydatabse.users' doesn't exist[/QUOTE] how do i solve this? and what can i get for my mysql i have seen loads of e-commerce …

Member Avatar for compusolver
0
140
Member Avatar for Tresh

I'm a student in an E-Commerce program and I agreed to do a capstone project in my web design class as a blog site, where I can register users (with an access database) and have them update entries whenever they feel up to it... I'm a competant web developer, but …

Member Avatar for compusolver
0
244
Member Avatar for atticusr5

Hello everyone, I am a college student in his second year of learning C++. Last semester we would use Visual Studio to write and compile our code in. This year we use linux, more specifically the Vi editor. We use linux in two ways, either we use Putty in Windows …

Member Avatar for Salem
0
141
Member Avatar for Mallos31

Alright, I have a file opened, read into a buffer, and closed. I need to search the file for this string of bytes: FDXXXXXX06YYYYYY The FD is an assembly code to load something, but that's not important here. The XXXXXX and YYYYYY are values that are unknown and YYYYYY will …

Member Avatar for Mallos31
0
195
Member Avatar for Ap0ca1ypse

Hello everybody, This must be so simple but I cannot find it anywhere. I want to split a form into two section by a line. Example TopData ______________________________________________ BottomData I cannot find the functionality anywhere and it is really bugging me. Any help will be much appreciated Thanks

Member Avatar for Ap0ca1ypse
0
72
Member Avatar for wwsoft

hello can I keep track of objects in a list and being able to sort them by there z var ? do I use pointers ? how would I do this ? [code] #include <vector> vector<sometype> _objects_; create_object(object_type) { new object_type myobject; _objects_.push_back(myobject); return _objects_.at(list_end); } remove_object(int pos) { delete …

Member Avatar for wwsoft
0
107
Member Avatar for macman101

Hey, I need some help inserting into a function and sorting the 10 user input numbers, I'm close, but I get zeros every time. Here is my code: [CODE]#include <iostream.h> void InsertIntoArray (int[], int, int, int); int whichSlot (int[], int, int); int main() { int num; int times; const int …

Member Avatar for ChaseVoid
0
180
Member Avatar for sswati.sri

hi, I got exception"NoClassDefFoundException" at the runtime of this java code.My DSN connection is correct,sql server is also properly work,when my project excuted on tomcat.but my beans are not executed properly inly becoz of this connection error.plz give the solution to overcome this problem. [B]In my project i create connection …

Member Avatar for sswati.sri
0
245
Member Avatar for woznickis

I'm new to ASP. I have a simple contact form - text fields only - and the results are emailed. But I can't get the page to display. I get a Runtime Error. [CODE]<%@ Page Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="contact_me_Default" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div id="iCntnr"> <div …

Member Avatar for kvprajapati
0
106
Member Avatar for CFROG

I'm having a bit of an issue that I can't quite figure out. I set the limit for MAX file size for file uploads to about 500 kb. - responds with an error msg if you exceed the file size. If you try to upload something slightly larger ... say …

Member Avatar for vaultdweller123
0
121
Member Avatar for vjw757

im trying to insert paypal donation code into a php file. i keep getting errors. so here is the code i have to work with. [code] <? begin_block("Donate"); echo "<BR><BR><CENTER>This would need to contain your donation code, or something. maybe even a paypal link</CENTER><BR><BR>"; echo "<a href=\"member.php?mid=$row[mid]\">$row[login]</a>"; end_block(); ?> [/code] …

Member Avatar for cereal
0
151
Member Avatar for itsbrad212

I am making a twitter client in python and wxpython. As of now, my static text is not printing. How can I change this code so it will print out what I want it to? [CODE]import wx import twitter class main(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id, "Twitter Client", size=(700,400)) panel=wx.Panel(self) menubar = …

Member Avatar for Stefano Mtangoo
0
147
Member Avatar for wilsonz91

Hi, My friend have a problem with running c++. She's using windows vista home basic. She's able to install C++ and run it but when she tries to launch any program she wrote, it pops out saying that it has a compatibility issue with this version of windows. Any ideas …

Member Avatar for Ancient Dragon
0
168
Member Avatar for Stefano Mtangoo

I was sitting Idle and I decided to write simple image viewer to try myself on DC/Canvas but I didn't find any tutorial to guide me as I have never done that before. Here there are some restriction and I cannot view showme do. So anyone to help me with …

Member Avatar for Stefano Mtangoo
0
136
Member Avatar for rookanga

I am very new at this and I tried to look it up on google and that didn't help so I was wondering (and I know that you have to use shapes, to use a flow chart) how do you make a flow chart. to be more spefic the shapes …

Member Avatar for wilsonz91
0
152
Member Avatar for blue3hree

hi.another post by me.ehehe pls check this code.i wonder how this would work: this program asks for the last and first name of the user.and at the same time it must separate the first names of the user.for example, the name of the user is juan miguel bautista. it will …

Member Avatar for Ancient Dragon
0
192
Member Avatar for samuel_1991

Hi, I found myself a difficulty on creating a image uploader to my database. This is because in .NET CF, I cant find File Upload control. Is there any other options and how should I do it? I know there is a OpenFileControl but there is a problem on saving …

Member Avatar for samuel_1991
0
187
Member Avatar for Emerald09

Hello! I have written the code for a function that takes an object DailySale and compares its values with an array of objects fromInventory. If the id of the DailySale object matches with the id of an object in the array, it takes the price from there and calculates the …

Member Avatar for jonsca
0
122
Member Avatar for gayatridevi

hi, I V.Gayatri Devi I am writing the c code in linux for distance calculation using haversine formula I included in my program as #include <math.h> but the sine functions and squareroot functions are not working in my program. instead of using math.h i also used cmath.h but there is …

Member Avatar for jBat
0
73
Member Avatar for nats01282

Hi all, I am creating a online c.v but do not want it open to every one so i have made a simple login file but want the page to re-direct when the login is correct, [CODE] <?php $user = "user"; $pass = "pass" if ($_POST["username"] != $user && $_POST["pass"] …

Member Avatar for mktgmgr101
0
98
Member Avatar for ELBUF

Greetings everyone, So I posted earlier a similar problem which I wrote in python, but now after accomplishing that, I think ill try to write it up in C++. The link to the original question is [URL="http://www.daniweb.com/forums/thread254474.html"]here[/URL]. If there are any other questions or if you need any more information …

Member Avatar for fadrior
0
658
Member Avatar for khadrani_arif

Hi, What I want is once the user does the registeration on clicking the register button an email is sent to the email address with the activation link, untilll and unless the user clicks on that activation link, user's account does not activate. How can I do this. Thanks in …

Member Avatar for mktgmgr101
0
107
Member Avatar for swolll

Until now, I've coded in Notepad++ and compiled/tested in my university Unix account. This is getting tedious and inefficient, though. So, what can I do about it? Notepad++ doesn't have a compiler or debugger. I was thinking about using Eclipse. Would that be a good, free option? Does it have …

Member Avatar for Salem
0
313
Member Avatar for moods125

[code]#include <iostream> using namespace std; //function protoytypes int roman2integer(); bool isValidRoman(string & r); int findIt(char ch); int main() { int choice; do{ switch(choice) { case 1: roman2integer(); break; case 2: //integer2roman(); break; case 3: //quit=true; break; default: return 0; }; }while( ); return 0; } /////////////////////////////////////////////////////////////////////////////// int roman2integer() { string …

Member Avatar for Salem
0
781
Member Avatar for muthu1802
Member Avatar for kvprajapati
0
159
Member Avatar for jemz

hello please help me where i am going to download the installer vb6...so that i can practice more at my house..hoping for your positive responds...thanks in advance

Member Avatar for vb5prgrmr
0
148
Member Avatar for dr.e

Hello. Somehow i managed that my program works with access databse located on my computer: con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Documents and Settings\company.mdb" Now i would like that program will open the database company.mdb from my web page exp. [url]www.page.com/company.mdb[/url] Can you suggest how? THX

Member Avatar for vb5prgrmr
0
91
Member Avatar for mhina

[code] import javax.swing.*; import java.io.*; import java.io.InputStreamReader; public class Weight2 { public static void main(String[] args)throws IOException { double cost; double tax; cost=Double.parseDouble(JOptionPane.showInputDialog("Enter purchase amount")); double payment; payment=Double.parseDouble(JOptionPane.showInputDialog("Enter amount tendered")); BufferedReader CHANGE=new BufferedReader(new InputStreamReader(System.in)); tax=Double.parseDouble(CHANGE.readLine()); displayTax(getTax(cost,tax)); setPayment(payment); setTax(tax); setCost(cost); displayCost(getCost(cost,tax)); System.exit(0); } public static double getTax(double y, double x) { …

Member Avatar for musthafa.aj
0
155
Member Avatar for tqmd1

I have followin codes [CODE]Dim dt As DataTable Dim str As New SqlClient.SqlCommand("select code,name from employees", con) da = New SqlClient.SqlDataAdapter(str) dt = New DataTable da.Fill(dt) dt.Columns.Add("city") Dim cmd As New SqlClient.SqlCommand("UPDATE dt SET city=(SELECT top 1 city FROM master WHERE master.code=dt.code)", con) cmd.ExecuteNonQuery() [/CODE] it says [COLOR="Red"]Invalid object name …

Member Avatar for tqmd1
0
123

The End.