199,114 Archived Topics
Remove Filter ![]() | |
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 | |
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 … | |
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 … | |
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, … | |
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 … | |
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 = … | |
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 … ![]() | |
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 ^^ | |
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. | |
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. | |
[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 { … | |
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 >>> | |
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, … | |
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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! | |
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 … | |
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 .............. | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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++ … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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; … | |
![]() | 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 … |
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 … | |
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 … | |
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! |
The End.