199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jazerix

Hey :) Uhm, I just finished a program today, and I was wondering, how i should retrieve the errors that the user may encounter :S Ive seen the logo { sa } somewhere, what does it stand for? Or what should i do about this :) Cheers -Jazerix

Member Avatar for Jazerix
0
181
Member Avatar for bomko

hello! i have this problem with this code. I mean everything works just fine except i dont know how to change program to return me new value. in my program i had to make 2 functions. preberiKontakte() to get their names & id and izlusciOsebe(vrstica, kontakti) to get set of …

Member Avatar for woooee
0
292
Member Avatar for Bobonoinc

I am new to Java and as an exercise I am trying to develop the following: 2 JPanels on a JFrame where 1 of the JPanels can be used for drawing. I started from an example from Daniweb from 2010 but can't seem to get a graphic context because the …

Member Avatar for Bobonoinc
0
1K
Member Avatar for Tech B

Written in python2.6 I know there are a lot of key loggers out there, but i wanted to try my hand at it. It works like a charm =) [code] #Key Logger #By: K.B. Carte #Version 1.0 ################ import pythoncom, pyHook, sys, logging LOG_FILENAME = 'path\to\log.out' def OnKeyboardEvent(event): logging.basicConfig(filename=LOG_FILENAME, level=logging.DEBUG, …

Member Avatar for Tech B
0
4K
Member Avatar for spawn2004

Hi all, i need some help with php. I am writing i web site and i have an upload form . I upload files in folder and in database where i have the filename the path and some other fields which i will use for my sql to set my …

Member Avatar for spawn2004
0
143
Member Avatar for bbowsh54

Hello Everyone, New to VB.NET... Going through a bunch of tutorials currently. I need help checking if an application is open and then closing it if it is... For an example, I'll use paint or notepad... Does something like this work? [CODE]Dim myProcess As Process = New Process myProcess.StartInfo.FileName = …

Member Avatar for bbowsh54
0
431
Member Avatar for jamesl22

If I have an external website how can I pull data from it. I have the following code snippet that I need to pull data from: [CODE] <div class="headlinesBox"> <div class="headline currentHeadline"> <div class="headlinesClipping"> <img src="/common/images/thumbnails/source/1320614405d.jpg" style="float: left; width: 262px; height: 236px;"/> </div> <div class="headlinesText"> <h3><a href="/details/news/1325223/Template-Assisted_Fabrication_for_Polymer_Solar_Cells.html" title="Template-Assisted Fabrication for …

Member Avatar for diafol
0
145
Member Avatar for Oneryavuz

i searched a bit but i cant find something useful. i need to take my files to filestream (i can do this with file paths) and i wanna save this files to somewhere else on my program. Is it possible that with the using FileStream? THX for Replys ^^

Member Avatar for Oneryavuz
0
124
Member Avatar for JDoggieIII

I am attempting to use a WebBrowser control in C# to display a webpage. I would like my C# application to know when a Javascript function is called within the loaded webpage. Is there anyway to do this? I can't seem to find an event handler for it.

Member Avatar for JDoggieIII
0
389
Member Avatar for Ich bin würdig

Can someone help me to create a syntax for a christmas tree... (the christmas tree must be like the shape of a true to life one) thanks.

Member Avatar for Adak
0
231
Member Avatar for krishna501

[CODE]<%@page import="java.util.Calendar"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>employee leave application</title> <script src="EmpLeaveValidation.js" type="text/javascript"></script> <style type="text/css"> #ehint { position: absolute; right: 230px; top: 18px; } #cnhint { position: absolute; right: 200px; top: 40px; } #chint { …

Member Avatar for ddymacek
0
137
Member Avatar for Skrell

Can someone please explain these results to me and why they are different: >>> 7339520/(1024.0*1024) 6.99951171875 >>> print "%0.3f" % (7339520/(1024.0*1024)) 7.000 >>>

Member Avatar for Gribouillis
0
103
Member Avatar for dwinn

Hello, I have created a site in VB.Net and ASP.Net where a user types in a centre code and clicks on 2 buttons to retreive 2 GridView's of records from an SQL Server backend database. The records appear sucessfully, but when I go to sort the records in ascending/descending order, …

Member Avatar for rciprogrammer
0
123
Member Avatar for king_saqib
Member Avatar for JoshuaBurleson

I've been working on getting tkinter to open a window for all dictionary items with keys matching a query. Below is a [B]VERY RAW[/B] piece of code to show what I'm talking about. show() makes the toplevel windows. Also, not that it has so much going on because I isolate …

Member Avatar for TrustyTony
0
191
Member Avatar for aplee

Hello, Please help me with my problem, this is the simple select statement I have for target bid date: [CODE]ProjectOverview.[Target Event Date - Date] AS [Target Bid Date][/CODE]now, I want to ask how can I select the latest target event date and if value is null, put "no date" caption …

Member Avatar for adam_k
0
165
Member Avatar for Pytho

Hi all I'm not sure is this the right place to post this, other places are strongly oriented to the real programming. However... I know some MD5 hashes contains only numbers or letters, but I don't know which one. Some string X gives only letters in the hash, Y gives …

Member Avatar for Momerath
0
676
Member Avatar for jacksantho

Hi, Please look at this: [CODE]<?php print ' <form> <td><input type="text" name="txt" maxlength="7" style="text-transform:uppercase"></td> </form> </html>'; if(isset($_POST['submit']) { $val=$_POST['txt']; #header(); } ?>[/CODE] my text box values gets erased after submit button. If i use header function: error is [B]Warning: Cannot modify header information - headers already sent by (output started …

Member Avatar for jacksantho
0
3K
Member Avatar for asif49

I'm creating a website and I have implemented a commenting/review system on there but I want to stop spammers so I've been trying to find a way to stop people from typing in url's. I tried the following method but it only works for the last thing mentioned (.in) and …

Member Avatar for asif49
0
94
Member Avatar for Srcee

I have this code: [code] HttpWebRequest request = (HttpWebRequest) WebRequest.Create(someUrl); request.Accept = "*/*";/////////// request.CookieContainer = cookies; request.Method = sendVerb; request.CachePolicy = new RequestCachePolicy(RequestCacheLevel.Reload); request.AllowAutoRedirect = false; request.KeepAlive = true;[/code] When I'm in GET mode, in this line, the program crashes: [code]using (HttpWebResponse responseData = (HttpWebResponse)request.GetResponse())[/code] The information in the catch …

Member Avatar for gusano79
0
148
Member Avatar for luciolon

Hi all, I'm new in C++ and I encounter a problem with a code I found on this forum. I simply try to add an integer to a Generic Doubly-Linked list. However, when I launch the following code (main function) [CODE]DoubleLinked<int> dlist; dlist.push_back(1);[/CODE] I got the following error : [CODE] …

Member Avatar for luciolon
0
270
Member Avatar for XEN0

I want to stick this [CODE] Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM 0 WHERE Id = 1", con) Dim reader As OleDbDataReader = cmd.ExecuteReader() If Not reader.HasRows Then MsgBox("Data does not exist") Else MsgBox("Data Exists") End If [/CODE] and this [CODE] If Inc <> -1 Then Dim …

Member Avatar for codeorder
0
227
Member Avatar for gianks

Hi all, i'm writing a Qt SIGNAL/SLOT capable class in order to be able to work with raw socket in a Qt application. To achieve this, i'm using a QSocketNotifier to monitor socket incoming data event in a S/S way. Now the problem: entering the event loop, causes the process …

Member Avatar for gianks
0
479
Member Avatar for Virangya

Hi, i'm really new to jquery and i don't know how to solve this. i added following code to blink a div. initially mypopup div is hidden. and 10 seconds after page was loaded this div appears. because of this toggle() method div displays for 10 more seconds before hiding …

Member Avatar for ddymacek
0
271
Member Avatar for jenberden

hello , i want to ask on how to create graph using php , and can u give me a sample code on it ? thanks much more power

Member Avatar for 54uydf
0
107
Member Avatar for Ephron

hi, I've got a really long String of bits, like: "0010101011101010011011011010100110101010110101..." And I want to chop it into pieces of eight and make bytes out of them, in an array. what would be a performant way to do this? Thanks Ephron

Member Avatar for Ephron
0
219
Member Avatar for msrd

I have a label that displays information from my database and I need to format it. It displays a number format like so: (53389) and I just need it to display (53,389) it uses the SQL to COUNT or SUM the data from the datasource. My first question is, is …

Member Avatar for Momerath
0
286
Member Avatar for kungfujam

Completely stumped as to why my code will no longer run. It definitely works as I can call it from another Sub but will not run on its own. When I am in the code editing window (in Excel) and I click the run button or f5 it asks me …

Member Avatar for kungfujam
0
111
Member Avatar for coco24

I have this code and it works. It prints out the number, product, and sum, but I need it to be able to work with more than one number. For example if enter 45 6 70 I need it to say Numbers: 45 6 70 Sum: 121 Product: 18900 How …

Member Avatar for Onlineshade
0
155
Member Avatar for beau_nerdathen

I have a project about making pascal triangle using recursive function. This is the example output: 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 Hint:(x+y) n=>exponent. *Give me an idea about this project. Thanks!

Member Avatar for mike_2000_17
0
5K
Member Avatar for kaizokupuffball

Hi! Im currently trying to make a social website of a kind. I got the login, registration, userpage, profile TINYMCE editor working. But there is one thing im really struggling with, and that is; How do i let other users visit other users? When the user log's in, they're redirected …

Member Avatar for kaizokupuffball
0
355
Member Avatar for Majestics

i have two products , product one has 5 entries of date and product 2 has 4 entries. I want to select max date entries of both... [code] select max(entrydate) from products,products_information where products_information.pno = products.pno [/code] It return a single max date of one product.... Please Help ..............

Member Avatar for Majestics
0
91
Member Avatar for soomro_moon

in DB i have two tables named my one and two.in table one there is a colum named by name and in table two there is colum named by address. when i run the query it show the result but the problem with this is that it show same result …

Member Avatar for ddymacek
0
155
Member Avatar for Bamboozled

I am reading in a text file and displaying the data read in in textboxes. Some of the characters are accented French characters which are not displaying correctly in the form. This prob does not exist with VB6 on the same machine. What do I need to set/change in vb.net …

Member Avatar for lolafuertes
0
710
Member Avatar for aint

Hi, Last year I posted a question about making graphical representations of sentences, and at the end I did it with matplotlib. Now I wanted to add some more features to it, but I am stuck. you can see the previous post from this [URL="http://www.daniweb.com/software-development/python/threads/282934"]link[/URL] Now, if we assign a …

Member Avatar for hughesadam_87
0
4K
Member Avatar for izthrower

[CODE] Created on Aug 29, 2011 @author: izink001 ''' import pygame from pygame.locals import * from pygame.color import * import pymunk as pm from pymunk import Vec2d import math import sys X,Y = 0,1 ### Physics collision types COLLTYPE_DEFAULT = 0 COLLTYPE_MOUSE = 1 def flipy(y): """Small hack to convert …

Member Avatar for izthrower
0
150
Member Avatar for tfj

I failed to ask my entire question on part 1. Although codeorder gave me the answer I needed I have one more part which I will put in bold. I have 3 forms: Form1, Form2 and Form99. Form1 and Form2 both call Form99. What statement(s) does Form99 use to determine …

Member Avatar for tfj
0
152
Member Avatar for Weragodalahiru

Does anyone have a idea about this programe, Assume that you are paid on the basis of one cent the first day, two cents the second day, four cents the third day, with the daily amount continuing to double in this way. Design an algorithm and use it to write a Python program …

Member Avatar for JoshuaBurleson
0
113
Member Avatar for Bladtman242

Right, I wasn't sure whether to put this here or in the java forum (since I'm trying this in java) but in the end I figured it is probably a general coding question. Hope I got it right :) So, about object names :) I'm trying to do the c++ …

Member Avatar for Bladtman242
0
194
Member Avatar for taylordsmith

Greetings, I am attempting to paste a javascript music player into my site from the developers at cashmusic.org. The music player displays and plays files correctly in the 'live view' display in Dreamweaver, but will not display at all in browser preview (Chrome & Safari). I have brought up Chrome's …

0
154
Member Avatar for dwayned

Hi, I have created a small appication to run a number of self extracting archives depending on the option selected. I have the program working and all is going to plan. At the moment my program calls the slef extracting zip by pointing to the location on the hard drive …

Member Avatar for dwayned
0
232
Member Avatar for bio-grad

Hi, So I am modifying some code from discussion thread: [URL="http://www.daniweb.com/software-development/perl/threads/323871"]http://www.daniweb.com/software-development/perl/threads/323871[/URL] I am still very much a newbie, but am trying to get a better handle on hashes - so if I've messed mine up please tell me ;). I am attaching 3 files. One is an image of the …

Member Avatar for bio-grad
0
640
Member Avatar for binoman

I just try to calculate 5.3 - 5, and the answer is a bit off. this is the code: [CODE]double answer = 5.3 - 5; println("answer = " + answer);[/CODE] and the output is: "answer = 0.2999999999999998" instead of 0.3. I use Eclipse on win 7 32 bit as a …

Member Avatar for binoman
0
1K
Member Avatar for konradhoppe

Hi community, I have a problem with an application which makes use of a mysql database. I have a class which saves the fields of every record on the table. One of the columns is of type Datetime. Sometimes (!) I query this column and get results like with a …

Member Avatar for ywang
0
345
Member Avatar for Bench

This code snippet outlines a simple, no-frills linked list. Tested under MSVC++ 2003 and Comeau, but not guaranteed bug free. Snippet includes example main() . This snippet is intended as an example of a possible implementation of a linked list class (Of which there are many variations) For a better …

Member Avatar for Narue
0
3K
Member Avatar for theju112

[code] #include<stdio.h> typedef struct node { int data; struct node * link; }n; void addatbeg(n *); void display(n *); n* first=NULL; int main() { int ch; printf("%u",first); while(1) { printf("\n enter 0 to terminate else any other key"); scanf("%d",&ch); if(ch==0) break; addatbeg(first); } } void addatbeg(n* first) { int ele; …

Member Avatar for Narue
0
120
Member Avatar for ghost_from_sa

Hey guys, I was wondering if there is possibly an "onBlurr" or "onChange" way I can check using JavaScript if a Birth date is correct I've seen a couple but I have a pretty simplistic way about how I want to get it done. Basically what I would like to …

Member Avatar for jbennet
0
219
Member Avatar for Ingska

Hi! I have a form made in php4 that worked great until I updated to php5. When I did this I got a lot of undefined indexes. I have been placing isset() around in the form, and now the undefined indexes does no longer show. But something is still not …

Member Avatar for Ingska
0
203
Member Avatar for RenanLazarotto

Hello guys! I want a simple app to crop a bit of some images. The fact is that all the codes I've found were too complicated, and I didn't understood a single letter of it. Can somebody help me with it? The codes I saw where using and start point …

Member Avatar for RenanLazarotto
0
3K
Member Avatar for karyal

hi every body! i set the Layout to be null [CODE]setLayout(null);[/CODE]. when i resize the window, components do not resize. if there any code that i can write to solve my problem? please help!

Member Avatar for karyal
0
111

The End.