199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Seswing142

The program is supposed to ask the user for the range of the guesing game (1-10), ask them how many guesses they want, and then ask them for a guess. Then it prints out Cold if he guess is greater than 25% of the answer, print WARM if its between …

Member Avatar for JamesCherrill
1
3K
Member Avatar for sandeepparekh9

Lets say you have lots of data your listview. Now you want to Group This data According to a Perticular Subitems. For Example: Suppose i have some books data in my ListView. this listview items contains Author name and Books Title. And there are 2000 Books in list view. Now …

Member Avatar for dragonfly67
1
1K
Member Avatar for DarkBerzerk

i wanna make simple script that multiply any input by .51 and show the result automatic, without pressing any button,i got two scripts first script add value one to value two and show result auto, other script multiply but i have to press button, how to merge them :S and …

Member Avatar for designershiv
1
1K
Member Avatar for Coyx

Hi all, First tutorial submission. The standardised strtotime() function really grinds my gears. I hate messing about with dates in different formats... so I mullered this little function up. It works perfectly - probably easier ways to do it, I don't know... I just include this function in my functions …

Member Avatar for diafol
1
245
Member Avatar for vegaseat

In Las Vegas random numbers move billions of Dollars in and out of gamblers' pockets. For the mildly inquisitive here is a test of three simple generators.

Member Avatar for rubberman
1
6K
Member Avatar for SaRa Ahmad

hi every one , i need to know how to get a file path to textbox using browse button or common dialog , any body can help me ??

Member Avatar for rishif2
1
161
Member Avatar for vegaseat

An example how to plot the function y = sin(x) using the WinApi function SetPixel(). The plot is centered along a line at pixel y = 200. Add an x-axis and a couple of tickmarks and it could look impressive.

Member Avatar for jack.zgx
1
4K
Member Avatar for ddanbe

Tadaa! This is my first attempt at writing in Python, trying to solve a good question posed [here](http://www.daniweb.com/software-development/python/threads/32007/projects-for-the-beginner/17#post2016892) #----------------------------------------------------------------------------------------------- # # Python 2.7 # # Calculating area and radius of polygons with known number of sides and the length of this side # Adapted formulas used from this site: http://www.mathwords.com/a/area_regular_polygon.htm …

Member Avatar for vegaseat
1
387
Member Avatar for slyme

Hi, thanks for looking at this post. I have searched and experimented and after hours of getting really close I have finally admitted to my self that I'm going to have to stop and ask directions! So, I want the browser address http://drivingmeinsane/Join to be re-written to http://drivingmeinsane/?page=Join I've come …

Member Avatar for slyme
1
391
Member Avatar for pritaeas

I'm working on an ORM experiment, and I'm looking for ideas to help choose which path to take in it's development. I currently have an index showing how to use it, two interfaces, a database class, a table base class and two auto-generated classes (representing a database table). The first …

Member Avatar for pritaeas
1
333
Member Avatar for mgold

I was reading through an Objective-C book at the same time I was reading a "Good Coding Preactices"/Design book and I noticed how badly designed (I Think) Cocoa is. My biggest issue is it's seemingly unpolymorphic design. For instants, like many other objects, the UIButton class's style is defined using …

Member Avatar for ChrisPadgham
1
168
Member Avatar for Lmbcabhi

Please tell me how to write a program which finds the frequency of each digit of an enterd number. Eg- if i enter 1112245 the output should come out to be 'Frquency of 1 is 3' 'Frequency of 2 is 2' 'Frequency of 4 is 1' 'Frequency of 5 is …

Member Avatar for somjit{}
1
6K
Member Avatar for happygeek

Within days of the New York Times website suffering an outage which was widely reported as being down to another cyber attack, although the NYT itself insists it was actually an internal issue following system maintenance, media sites belonging to CNN, Time and the Washington Post have been attacked by …

Member Avatar for LastMitch
1
340
Member Avatar for jannat1

I am trying to populate dropdown list according to other dropdown list using ajax prototype.js framework.But its seems ajax observField function is not picking the change in first dropdown list . I have two tables named mobiles and moddels moddels table has an coloumn mobile_id for association. my models are …

Member Avatar for LastMitch
1
390
Member Avatar for Ene Uran

More or less a templet database that allows you to load, save, add, list, search, edit and delete data items. I used movies as an example, but you can easily change that to make a database of many other things.

Member Avatar for james.lu.75491856
1
999
Member Avatar for cereal

Hello, I'm wondering if I can get help to understand the behaviour of a PHP function: `dns_get_record()`. This returns an array with DNS records for the given domain name, here is an example of the output: php > print_r(dns_get_record('php.net', DNS_TXT)); Array ( [0] => Array ( [host] => php.net [type] …

1
345
Member Avatar for nikzer

#include <cstdlib> #include <conio.h> #include <iostream> #include <stdlib.h> using namespace std; int main(int argc, char *argv[]) { int x,ctr; cout<< "Enter a day: "; cin>> x; for (ctr=x;x>0;x--) for (ctr=1;ctr<=12;ctr++) { switch (x) { case 1:cout<< "On the first day of Christmas\nMy true love sent to me...\n"; break; case 2:cout<< …

Member Avatar for Gonbe
1
232
Member Avatar for lionaneesh

[B][I][U]Introduction [/U][/I][/B] [COLOR="Red"]Hey everybody welcome to a tutorials on classes in PYTHON. The purpose I made this tutorial for is that when I was learning classes in python I dint found any good tutorials on Classes. Maybe I was wrong. But here's my tutorial.[/COLOR] [B][I][U]Layout[/U][/I][/B] In this tutorial i'll be …

Member Avatar for mail2sanjay
1
879
Member Avatar for <M/>

Today I am going to show you how to create a C project in Visual Studios. ***Step 1.*** Launch Visual Studios and select **Visual C++** in the start window. In the Visual C++ section, click on **Win32 Console Application**. Give your project a name and click submit. *Step 2.* A …

Member Avatar for <M/>
1
321
Member Avatar for pardeep3dec

Hi Experts, First of all Happy New year in advance. :) I am unable to run VB.Net exe file on another computer.On that computer there is no VB.NET application. how can i make that computer for running .exe file. Pardeep

Member Avatar for prateek.singh.18
1
170
Member Avatar for vegaseat
Member Avatar for satbir4

Hi all, I have more than 50 pages in a site. suppose, in every page i want to write "ABC" and edit every some days. Please anybody tell me the code how i can call ajax file in php. And complete code for both files.

Member Avatar for almostbob
1
295
Member Avatar for best4earn

I have created my binary tree as , It Shows in List Perfectly but i want to show in Genealogy , how can we do this ..I have Pasted My Total Nodes Script Here with HTML & java script for making tables & draw lines btwn nodes . When I …

Member Avatar for best4earn
1
3K
Member Avatar for happygeek

A couple of years ago, a 17 year old was arrested for his part in a denial of service attack against gamers playing the online multiplayer version of Call of Duty: Black Ops. The teenager was accused of selling cheat software called 'Phenom Booter' which prevented others from playing (it's …

Member Avatar for mrgreen
1
516
Member Avatar for gennesis

Good Day. Im having trouble when i used table adapter configuration wizard. a made a query that look like this: select a.aDate,S.TimeIn,s.TimeOut,ifnull(timediff(s.timeout,s.timein),0) as time from ( select '2013-08-01' + INTERVAL (a.a + (10 * b.a) + (100 * c.a)) DAY as aDate from (select 0 as a union all select …

Member Avatar for gennesis
1
3K
Member Avatar for vishalrane

[CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CheckCode.aspx.cs" Inherits="CheckCode" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Verification code to prevent auto signup in ASP.NET 2.0</title> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } a:link { color: #0000FF; } a:visited { …

Member Avatar for yusuf_3
1
775
Member Avatar for Klahr_R

I work with VBA and VB6 so I miss some things. I notice in sample code that some folks use if MyString <> "" then and others use if Not MyString = VBNullString Is there a difference, and why? Thank you in advance

Member Avatar for Klahr_R
1
279
Member Avatar for pritaeas

The following code snippet shows how you can parse a DSN (Data Source Name). Why is it useful? You can now pass a single DSN parameter to your database wrapper class' constructor (instead of five separate parameters), and tear it apart into the components you need. The password and port …

1
1K
Member Avatar for pars99

Are you able to have multi-character switch statement cases? So if this is my code: #include <iostream> using namespace std; int main(){ char choice; cout << "Enter a word >" << endl; cin >> choice; switch (choice) { case 'ball': cout << "You entered ball" << endl; break; case 'bike': …

Member Avatar for pars99
1
216
Member Avatar for n1csaf3

I am trying to work out how to pass a pointer from my C# interface application to the C++ back-end functionality DLL. I tried searching Google but can't work out what I'm doing wrong.. I'm used to using * for pointers and just changing the value in the pointer through …

Member Avatar for deceptikon
1
604
Member Avatar for Alxprog

Hi! I'm a newbie in C++ and encountered myself with a problem: how to transfer data from a text file (containing data in "yyyy.mm.dd" and "09:00" format) into a two dimensional array ? What I want:to convert 2003.12.20 into 20031220 and 10:15 or 09:00 or 00:00 convert into 1015 900 …

Member Avatar for Labdabeta
1
329
Member Avatar for Larrywaz

This piece of Java works perfectly so that onmouseover of the text an image is placed above the text, my problem is I can't come up with a piece of code for onmouseout to remove the image and restore the site to the way it was before the onmouseover. Right …

Member Avatar for Larrywaz
1
3K
Member Avatar for pritaeas

This snippet shows how you can get the headers for an URL, for example to detect a redirect. I had to use the ANSI functions to ensure correctly returned headers. Manual entry for [HttpQueryInfo](http://msdn.microsoft.com/en-us/library/windows/desktop/aa385373(v=vs.85).aspx). Let me know if you have any questions/remarks.

Member Avatar for vrkiro
1
356
Member Avatar for dolfinchris

Is w3schools.com best to learn HTML Or any other programming language? If so then how?

Member Avatar for crescendo
1
171
Member Avatar for GlenRogers

Hi I have a php header file that displays a random image from a mysql table each time the page is reloaded. I have done this just using rand() in the query. But doing it like this means that the same image could come up 3,4,5 times in a row! …

Member Avatar for GlenRogers
1
364
Member Avatar for happygeek

According to a new survey of more than 2,000 British workers, 38% of them insisted they were 'content' with their career progression. When it comes to the tech sector, 39% were happy with their career ladder climbing which, according to Randstad Technologies which carried out the research, makes them happier …

Member Avatar for CCHIndiaStore
1
366
Member Avatar for faranak

hi I'm a newbie to ASP.net development. I'm getting this error message "Procedure or function has too many arguments specified." when inserting data via the stored procedure into DB. Can anyone help me with this error? thanks my code: void InsertIntoVahed() { SqlConnection sn = new SqlConnection("Data Source=Server;Initial Catalog=ab;User ID=sa;Password=12345"); …

Member Avatar for BMXDad
1
2K
Member Avatar for vegaseat

This code snppet uses the wx.lib.filebrowsebutton.FileBrowseButton widget to pick a file, in this case a '.wav' sound file, and plays it with the wx.Sound widget.

Member Avatar for vegaseat
1
1K
Member Avatar for Vincentas

EDIT: links fixed Hello guys ! Alot of people today want or actually have a website. But do they really understand the possible risks and dagers on the internet? You can never know when hackers or other institutions will target you, and people do not realize that your personal information …

Member Avatar for M.Ledovich
1
268
Member Avatar for alex9620

Hi, This question is related to the below. http://www.daniweb.com/software-development/cpp/threads/352685/error-c3861-menu-identifier-not-found I used that to solve my issue. What I would like to understand is why the function prototype is to be declared before the main function? In my textbook that I am following the function prototype wasn't there. I did as …

Member Avatar for MandrewP
1
397
Member Avatar for clouds_n_things

So I wrote a cool little python script for terminal commands that I get sick of entering. Most of the script is explained in docstrings and comments. Looking for useful terminal commands or things I missed or could have done better. I'm actually quite proud of it. :) #!/usr/bin/env python …

Member Avatar for clouds_n_things
1
314
Member Avatar for Deve

**I want to enter the value in jtable run time and want to dispaly its sum on same jtable when i pressed calculated button ** how to do please help :) import java.awt.BorderLayout; import java.awt.EventQueue; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.*; import java.util.Vector; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.*; import …

Member Avatar for Deve
1
2K
Member Avatar for Shikha_1

*login.html* <html> <head> <title> login </title> </head> <body> <fieldset> <legend title=login>login</legend> <form action="login.php" method="post"> Username:<br /> <input type="text" name="username" value="" /> <br /><br /> Password:<br /> <input type="password" name="password" value="" /> <br /><br /> <input type="submit" value="Login" /> </form> </fieldset> <a href="register.html">Register</a> <a href="forgotpassword.php">Forgot Password</a> </body> </html> ***login.php*** <?php session_start(); …

Member Avatar for broj1
1
159
Member Avatar for ms1655516

I would like to end the process. In Task Manager, but it is not the end. So I want a different way. This process changes the port randomly. PID is also random. How to exit from this situation? I need a source to bat. Process Search> PID Search> PID using …

Member Avatar for ms1655516
1
270
Member Avatar for bumsfeld

In my journey to find a new programing language to learn, I found Nimrod. According to the spiel on its web page: "Nimrod combines Lisp's power with Python's readability and C's performance." Just curious to know if anbody here has used it? Nimrod's home is at: http://nimrod-code.org/

Member Avatar for rubberman
1
333
Member Avatar for <M/>

I have a project and I don't understand what the instructions want me to do. Can someone explain them better...? I don't understand constructors, objects, and methods very well but I am trying my best to do this project (i am a bit amazed how i got the highest grade …

Member Avatar for rubberman
1
311
Member Avatar for pritaeas

Attached is the code for my RSS dashboard, using the DaniWeb API. It's an improved version of the mashup I posted earlier, using jQuery to get all feeds asynchronously. The part which initially loads the forums is shown below. It creates an API object, and a Parser object. The first …

Member Avatar for pritaeas
1
467
Member Avatar for happygeek

Konami, the Japanese games developer responsible for such genre defining classics as Metal Gear Solid and Silent Hill, has confirmed that tens of thousands of customer accounts have been put at risk due to a breach of the Konami ID portal site. During a period between the 13th June and …

1
379
Member Avatar for FC Jamison

How would I write a C++ class of which only one can be created ever be instantiated in any program. I know that ClassName* objectName = new ClassName(); instantiates an object, but how would I make it so when you try to instantiate it more than once you still end …

Member Avatar for rubberman
1
6K
Member Avatar for JamesCherrill

I know this is going to be really simple, and I'm going to look like a fool when someone answers it, but... I'm tryingto replace any occurrenxe of any of these characters - ?_ with a * in a String I start with replaceAll("[ _-]", "*"); and all is well …

Member Avatar for masijade
1
237

The End.