199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Prashant20

Hi..!! i have created a Customer Details form in C# asking detail about customer...One of its field asks for customer email.. Please tell me how to validate a email id..Thnx..!!

Member Avatar for Abhijeet Thorat
1
1K
Member Avatar for onlinessp

hi, i am using cacls command to grant full permission to the user.But it's not working i am posting here source code please help me to identify the error.I also try this code by using Administrator account but it's not changing the file permission. code is [CODE] ProcessStartInfo psiOpt = …

Member Avatar for onlinessp
1
548
Member Avatar for ChaseRLewis

[CODE]#include <iostream> using namespace std; class Player {protected: int health; int mana; public: Player :: Player() { health = 0; mana = 0; } Player :: Player(int Health, int Mana) { health = Health; mana = Mana; } int GetHealth() { return health; } int GetMana() { return mana; } …

Member Avatar for dusktreader
1
163
Member Avatar for Member 785485

I'm using dev-c++ 4.9.9.2 version and allegro 4.4.0.1 version. I created a console project and done what DTV said in [url]http://www.daniweb.com/forums/thread248782.html[/url]. But i cant found liballeg.a so i add liballeg.dll.a. Then i try some example from [url]http://www.gillius.org/allegtut/index.htm[/url] but there is problem of alleg_init undeclared error raised. I had try other …

Member Avatar for Excizted
1
145
Member Avatar for Ketsuekiame

EDIT: Deleted the original question. After reading, I realised that I would have to paste so much additional code that it would take someone a couple of days just to understand what was happening in my own code that it may detract from the issue at hand. Problem: When I …

Member Avatar for Ketsuekiame
1
180
Member Avatar for Tech B

I am trying to access some functions with in a dll I downloaded. I know I need to use ctypes, but all the examples and tutorials use windll.kernel or windll.user32 respectively. How would I go about calling a function with in xyz.dll? EDIT: Never mind, with a bit more digging …

Member Avatar for Member 785599
1
197
Member Avatar for QWaz

Hi, I am trying to get some info form my database. I want to see if there is an entry with a certain product_id that also has another column marked as 1. I want to display the number of rows that contain that combination. I have tried a few different …

Member Avatar for Ankit_Parmar
1
105
Member Avatar for Member 784183

Hi all, I am trying to match an image of size 64 X 64 inside a 512 X 512 image. I have successfully coded the spatial normalized cross correlation (NCC) but it is taking too much time (8 sec.) I want to perform the NCC in frequency domain. I know …

Member Avatar for Member 784183
1
227
Member Avatar for FlamingClaw
Member Avatar for newstar_water

Hello, I need to know how the get the integer value of a byte and vice versa. I want to get the integer value from a byte read from a binary file. I also want to convert the integer value back into a byte value for write. Below I have …

Member Avatar for dusktreader
1
4K
Member Avatar for mark2326l

My goal is to have a directory password protected, and have the usernames and passwords stored in mysql. Having the htpasswd linked to my database using the mod_auth_mysql module looked like exactly what I needed, but when I enable the module it disables my site. Most of the sites I've …

Member Avatar for dizee
1
904
Member Avatar for kshw

Hi, I'm trying to remove non-stop words from a text file using regular expresions but it is not working. I used something like ('^[a-z]?or') in order to avoid removing (or) from the mibble of words e.g. morning. [code] Temp = [] Original_File = open('out.txt', 'r') Original_File_Content = Original_File.read() Original_File.close() Temp.append("".join(Original_File_Content)) …

Member Avatar for woooee
1
211
Member Avatar for garcon1986

I'm sorry, i'm a newbie in php. And i have a lot of problems when i develop. So this is another problem i met. form.php: [CODE]<form method="post" action="process.php"> <h1>BESOIN </h1> <br><br> <label>Sujet:</label><input type="text" name="sujet" />&nbsp;&nbsp; <label>Date: </label><input type="text" name="bdate" class="datepicker" id="datepicker1">&nbsp;&nbsp; <label>Nature:</label> <input type="radio" name="nature" id="nature" value="exprime" >Exprime</input> <input type="radio" …

Member Avatar for Hubermanb
1
1K
Member Avatar for cableguy31

I'm writing a script that will search files that contain certain keywords, and then output the line to a text file. The problem I'm having is that the script is opening every type of file, including executables. The script seems to work fine, as in it doesn't crash when it …

Member Avatar for cableguy31
1
747
Member Avatar for TrustyTony

This is must read if you learned Java before Python: Python Is Not Java: [url]http://dirtsimple.org/2004/12/python-is-not-java.html[/url]

Member Avatar for snippsat
1
654
Member Avatar for vegaseat

The wxPython GUI toolkit makes a very nice plotting component/widget available. You can select line or marker plotting, or a combination of both. All you have to supply is a list of x,y point tuples. Other features include zooming and printing.

Member Avatar for aernie
1
2K
Member Avatar for nbaztec

Due to various posts asking for syntax highlighting, I decided to give it a shot & come up with a Syntax Highlighter for multiple languages. Also as many posters want to Copy it to Word, I added a functionality to directly export the highlighted code to MS-Word. Both the highlighting …

Member Avatar for nbaztec
1
144
Member Avatar for grii_19

write a general purpose function to convert any given year into its roman equivalent . the following table shows the roman equivalent of decimals number decimal roman 1 i 5 v 10 x 50 l 100 c 500 d 1000 m eg:- roman equivalen of 1988 = mdcccclxxxviii ---||-- ----||----- …

Member Avatar for leeyaviswanath
1
1K
Member Avatar for Tom Gunn

The forum is buzzing with questions about tokenizing a C++ string. This is a short function that does it and returns a vector of the tokens. As an option, the delimiter string can represent either a multichar delimiter or a collection of single char delimiters: [code] // multichar delimiter == …

Member Avatar for daviddoria
1
734
Member Avatar for chris evans

Hi, im working with the Java Regex class and so im parsing some text. each piece of text is in a separate line. here's a sample of the text: this is textHello world buzzinga! Makmende says hi Makmende has poked u. dnt try poking him back! young, forever young another …

Member Avatar for leverin4
1
145
Member Avatar for DaveTran

If two classes (Bar1 and Bar2) inherit from the same base class (Foo) [CODE] public abstract class Foo { public abstract void Spawn(Settings settings); } public class Bar1 : Foo { float a; int b; public override void Spawn(Bar1Settings settings) { if (settings == null) { settings = new Bar1Settings(); …

Member Avatar for nick.crane
1
202
Member Avatar for jatpatel1

Hi there, I have been scratching my head for a few days now! with this problem: I am trying to echo out some data from a mysql table. I have a column name Country which has the following Countries: India, Malaysia Austaralia etc. I also have a column name Town …

Member Avatar for kingredyard
1
237
Member Avatar for greeran

hi i am having a problem integrating Lua into C++. I found a discussion about it here but it didn't help me. i have installed lua and i can see it in /usr/include and /usr/lib and /usr/bin i created the same code as the previous descussion [CODE] #include <lua.h> #include …

Member Avatar for StuXYZ
1
1K
Member Avatar for nwhitfield

How would you make a game pretty close to impossible to hack? Please post to help.

Member Avatar for IsharaComix
1
93
Member Avatar for Tahir007

Hi, I develop dynamic in-line assembler for python. Its very easy to use it from python and know you can optimize some routine in assembly language and use it directly from python. Its support both windows and Linux. If you are interest you can take look on web-page, [url]http://www.tahir007.com[/url] If …

Member Avatar for Beat_Slayer
1
140
Member Avatar for stonerain

I am trying to use the CalcOpticalFlowBM function but I don't understand hot it works. I want to find a motion vector for every blocks but I don't understand that the CalcOpticalFlowBM yields velX and velY. I wrote below code . [CODE]/* Create an object that decodes the input video …

Member Avatar for bart.scotty
1
703
Member Avatar for ajwei810192

Hi, I have an application as in the following, [CODE] <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.XML" %> <script runat="server"> Sub submit(ByVal sender As Object, ByVal e As EventArgs) songNodesOut.Text = String.Empty If Page.IsPostBack Then mess.Text = "<p style='margin-left:-2em'>You selected <b>" & drop1.SelectedItem.Text & "</b></p>" End If Dim file As …

Member Avatar for kvprajapati
1
157
Member Avatar for happygeek

I recently argued '[URL="http://www.daniweb.com/news/story289730.html"]Why Goatse was right to disclose iPad data leak[/URL]' after it came to light that the FBI had started an investigation into the hacker group following the responsible disclosure of an iPad data leak caused by poor AT&T security measures. I said "The security researchers which discovered …

1
792
Member Avatar for blah32

I am calling: c = Counter() ...exactly as in the collections example code here: [url]http://docs.python.org/py3k/library/collections.html?highlight=collections#collections.Counter[/url] but it gives me this error: NameError: name 'Counter' is not defined Anyone know why? Note that I have 3.1.2 and yes I include "import collections". Thanks

Member Avatar for vegaseat
1
128
Member Avatar for hust921

Hallo everyone at DaniWeb :) A made a mail script, that i need to somehow break, to close the connection to the gmail server securely. Can someone give me a hint, what to do for that. [CODE] import smtplib import urllib2 import time def sendIP(): # fetch pub ip pub_ip …

Member Avatar for hust921
1
99
Member Avatar for khess

I read a [URL="http://www.infoworld.com/d/open-source/open-source-innovation-the-cutting-edge-582"]story[/URL] this morning over at [URL="http://www.infoworld.com"]Infoworld.com[/URL] that shocked me a bit. Neil McAllister discusses how proprietary software companies, like [URL="http://www.microsoft.com"]Microsoft[/URL], criticize open source projects by saying that, "They don't innovate, they copy." Is that really the consensus for an entire software realm that brought us the [URL="http://www.w3.org"]world …

Member Avatar for SikoSoft
1
537
Member Avatar for Fasola

First how do you use Dynamic and Static Memory Allocation? and why is supposed to be so popular in use?

Member Avatar for umair100
1
143
Member Avatar for TrustyTony
Member Avatar for TrustyTony
1
2K
Member Avatar for lewashby

[CODE]def find_details(id2find): surfers_f = open("surfing_data.csv") for eash_line in surfers_f: s = {} (s["id"], s["country"], s["average"], s["board"], s["age"]) = eash_line.split(";") if id2find == int(s["id"]): surfers_f.close() return(s) return({}) lookup_id = int(input("Enter the id of the surfer: ")) surfer = find_details(lookup_id) if surfer: print("ID: " + surfer["id"]) print("Name: " + surfer["name"]) print("Country: " …

Member Avatar for TrustyTony
1
250
Member Avatar for ayesha789

Dears [INDENT]This is an electricity billing Site link [url]http://www.mepco.com.pk/ls/defftree.asp[/url][/INDENT] I click on each link and SELECT and COPY/PASTE , It takes 3 hours minimum each day to save all pages in Excel. I want to get all pages automatically using PHP or Query. Because higher management demand reports each day.

Member Avatar for ayesha789
1
262
Member Avatar for onlinessp

Hi, i want to make a key-maker and i am not know how to make it can u help me to write it . OR by giving some source code hint..... Thanks on your kind deed

Member Avatar for onlinessp
1
303
Member Avatar for onlinessp

i am developing an application but i am unable to change the text of label quickly i am using following code [CODE]for(int i=0;i<199;i++) label1.text=Convert.ToString(i); [/CODE]

Member Avatar for pabloh007
1
220
Member Avatar for onlinessp

Hi, i am writing a program to show all files in a drive including directories but i am unable to correctly implement it.can u tell me about the source code using GUI thanks in advance.

Member Avatar for tanor
1
111
Member Avatar for happygeek

Bad news for anyone with an iPhone 3GS: even if you have the latest OS, even if you have a PIN number, even if it isn't jailbroken - it can be hacked by anyone using a computer running Ubuntu Lucid Lynx. I wouldn't ordinarily reveal exactly how to hack an …

Member Avatar for ITDonNo1
1
1K
Member Avatar for onlinessp

i am currently writing file name showing program i unable to understand that why it's not completely giving me the name of files in a drive exception occurs at the line no 64.if i comment the line no 64.then it will start looping between two or three files show the …

Member Avatar for nick.crane
1
385
Member Avatar for Andreas5

Hello this is my first post here, i made this search function and i would like some feedback and or tips. (: [CODE] // Implement your own [search]strstr[/search] function. (Intermediate) #include "stdafx.h" #include <iostream> #include <string> using namespace std; class Search { private: int m_nTextL; int m_nSearchL; int m_nResult; bool …

Member Avatar for Andreas5
1
161
Member Avatar for nccsbim071

Hi, I have used an open source code from codeproject to read email from incoming mail server(POP Server). The code can be found at following location: [url]http://www.codeproject.com/KB/IP/Pop3MimeClient.aspx[/url] So far it works fine i can read emails. My objective of using this code was to retrieve emails from POP server and …

Member Avatar for kvprajapati
1
323
Member Avatar for tulipputih

Hi, anyone can help me with getting the check box value? this is my code. Thank you [CODE]<HEAD> <SCRIPT LANGUAGE="<strong class="highlight">JavaScript</strong>"> function getSelectedCheckbox(buttonGroup) { // Go through all the check boxes. return an array of all the ones // that are selected (their position numbers). if no boxes were checked, …

Member Avatar for diafol
1
140
Member Avatar for AntiNL

Hi, This is a reaction to a post([url]http://www.daniweb.com/forums/thread1720.html[/url]) thats a bit old, and I wanted to ask something, but it suggested I'd better start a new post. I'm sorry if theres another post going about this, but I couldnt really find the search function (just joined). First of all I …

Member Avatar for AntiNL
1
168
Member Avatar for Stefano Mtangoo

Hi, I'm learning making CMS. As you can see, I cannot do everything from scratch. So I request anyone with code in his codebase that works fine on paging or knows practical code to point me. I want to page my articles once are more than let say 10 Cheers …

Member Avatar for Stefano Mtangoo
1
127
Member Avatar for ayesha789

I have Developed a Database using MySQL and PHP. Now there are 60+ users who are using this DB. I want to make a system which tells me about Active and inactive users. Please guide me. My memebers table is like [CODE=mysql]-- -- Table structure for table `members` -- CREATE …

Member Avatar for ayesha789
1
246
Member Avatar for kibr987

Hi, I am a c# learner and I have got a problem - I have not much clue, please help. I have a windows form with two text boxes and a button called 'save'. If I click the save button - It should connect to the sql server express then …

Member Avatar for finito
1
79
Member Avatar for capoon

Good day every body, this my script can submit form inputs to email.but i wants it to equally display another page on submit.to this effect i have add this code below to the body of the main code but its not working.U can see where i added it at bottom …

Member Avatar for fxm
1
146
Member Avatar for sravan953

Hey All, I have 'Py-mailer' here.... here's how it is so far: [code='python'] import smtplib import wx window=wx.App() class pymailer(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,-1,"Py-mailer",size=(900,700)) self.panel=wx.Panel(self,-1) menubar=wx.MenuBar() filem=wx.Menu() filem.Append(201,"Quit") self.Bind(wx.EVT_MENU,self.Quit,id=201) viewm=wx.Menu() viewm.Append(202,"About") self.Bind(wx.EVT_MENU,self.About,id=202) menubar.Append(filem,"File") menubar.Append(viewm,"Help") self.SetMenuBar(menubar) wx.StaticText(self.panel, -1, "Login ID:", pos=(10,10)) wx.StaticText(self.panel, -1, "Password:", pos=(10,40)) self.username=wx.TextCtrl(self.panel,101,"Login ID",pos=(100,10)) self.password=wx.TextCtrl(self.panel,102,"Password",style=(wx.TE_PASSWORD),pos=(100,40)) wx.StaticText(self.panel, -1, "@gmail.com", pos=(220,10)) …

Member Avatar for baki100
1
1K
Member Avatar for sreejithbabu

I am a 2nd Year undergraduate Computer student. The problem I am facing is [I]I don't know which fields are suitable for me[/I]. I like programming a lot and networking too. Moreover, [U]I don't know the fields that comes under Computer Science[/U]. I am sorry, if that sounded stupid. I …

Member Avatar for griswolf
1
602

The End.