199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blacknred

I got a file: [CODE]I wake up in the morning What time? Always wakeup at 6am.[/CODE] what would be an easy way to determine the number of white spaces between each word? Thanks in advance David

Member Avatar for k_manimuthu
0
282
Member Avatar for saqi1986
Member Avatar for soniagupta98

hey can any one help me in writing the code : Write a Java program that sorts given integers using threads I am not able to proceed ..What should i have in main function()

Member Avatar for finfort
0
135
Member Avatar for Geodude0487

Hey everybody, it's been a while since I've been on Daniweb lol but I'm back and I need some advice from anybody willing to help. I'm writing my dad a program to help him catalog his 10's of thousands, no exaggeration, of football cards. The information he wants stored in …

Member Avatar for lolafuertes
0
106
Member Avatar for Ichcha

the following code gives first date of week for the given date range. how to get week number from the date??? thanks. [CODE]<?php $start = $week = strtotime('2011-01-01'); $end = strtotime('2011-02-01'); while($week < $end) { echo date('Y-m-d',$week), PHP_EOL; //echo week num??? $week = strtotime("+1 week", $week); } ?>[/CODE]

Member Avatar for Ichcha
0
106
Member Avatar for TheNinjaForce

I want to make a game in flash but I have no clue to start, I need a step by step tutorial, can someone help? ps: I would prefer to make a rpg.

Member Avatar for sothostha
0
160
Member Avatar for Sahilsahni

hi, since i have shifted my host these weird characters showed up on website! "ââ" i checked database, they are as it is written there. so when i call something through query they showed up too makes it worse, removing them manually is quite difficult. so please if anyone could …

Member Avatar for smantscheff
0
154
Member Avatar for osm1987

Hello everyone, I have to query a table according to the current item being fetched in the select statement. What I meant, I want to form the name of the table and query it on runtime. For example, there is an item that comes from items table and it has …

Member Avatar for debasisdas
0
122
Member Avatar for break

How can i start to create a Auto alert when somebodys post on your wall. just like facebook.. tHANK YOU SO MUCH.

Member Avatar for debasisdas
0
86
Member Avatar for mwenyenia07

i have written an application(login page) using codeigniter 2.02. when i try to load the page, it displays the following message: Fatal error: Class 'Controller' not found in /var/www/Files_Manager/application/controllers/login.php on line 2 this is the script: [CODE]<?php class Login extends Controller { //constructor function login() { parent::Controller(); $this->load->helper('url'); $this->load->helper('form'); $this->load->library('form_validation'); …

Member Avatar for aquilax
0
131
Member Avatar for wafieali

Hi All, Sorry if this annoyed any of you. but I'm really indeed. I need to know on HOW TO LOAD 300 RECORDS OR DATA PER SECOND in my mobile apps (for this purpose, I use iOS app). I just need a sample or basic code on how to run …

Member Avatar for wafieali
0
120
Member Avatar for ranu jain

A university wants to aumomate the parking area present inside the premise. Students and faculty members are required to buy passes in order to park their vehicals in the parking lot. The different types of passes available are : Cars : Weekly pass : 70 rs Monthly pass : 280 …

Member Avatar for ranu jain
0
380
Member Avatar for Nicko_FaTe_

Hi i have a task to stores marks for students, a struct is used to store this. the thing giving me trouble at the moment is how to read and store a floating point number within a struct, the data specifically for the mark is on 1 line of a …

Member Avatar for Nicko_FaTe_
0
163
Member Avatar for tyochola

I am writing a code that is supposed to give the payroll info for a specified number of employees. The user is first asked to enter the employee’s name, hourly wages, and number of hours worked for the week. Then when that is done the employee’s data, which consist of …

Member Avatar for WaltP
0
156
Member Avatar for Silent-Regret

As the thread states, I'm curious as to how I could come across this. I can open the file with an OpenFileDialog, or edit it while it's in process, but not open it, edit a memory address, then resave it. Mainly because I have no idea what it'd be called …

Member Avatar for Silent-Regret
0
255
Member Avatar for s7mo

Trying to adapt my working email code to work on a different page... I have VERY little javascript experience...and don't know proper syntax. I want to put this on a page that is created with a while loop (php) and has many members on one page. So it needs a …

Member Avatar for s7mo
0
167
Member Avatar for violette

hello guys. i would like to ask ur opinion on how to solve my problem. i would like to add a new column that will generate autonumber to the existing datagrid. based on my research i got from google, i only manage to create the new column(but it is empty). …

Member Avatar for violette
0
163
Member Avatar for Jaklins

This is a very newbie post. I think I'm just missing something. Anyway. I'm trying to display the contents of one column's field (not column name) specified by the contents of another filed in the same row. Here I show you my table and what I need: [code] Enter password: …

Member Avatar for Jaklins
0
203
Member Avatar for halien

Hi all, I am trying to write a list of complex numbers to a csv file. The list looks like: [QUOTE] cpl1 = [(-6.4703169037894082e-12-2.7429131015110908e-12j), (-9.0688415110840026e-11+1.7513018812920222e-11j), (-1.8522787470498514e-10+1.3074128585310874e-11j), (-5.8563154325952382e-10-6.4430377699764563e-10j), (2.1451734832922398e-10-9.987741744765799e-10j), (2.9095870157647141e-10-6.3227384439201728e-10j), (1.9448214150230569e-09+5.1612969453884716e-10j)] [/QUOTE] The complex numbers are to be written to file to look like: [QUOTE] real, imaginary, real, imaginary, real, imaginary, …

Member Avatar for bvdet
0
274
Member Avatar for xenhancd

I have created a program allows you to input the amount of items purchased, and then input the price of each item and the sales tax. It then creates a receipt which totals all the prices and sales tax. Now I want to be able to list the items and …

Member Avatar for mike_2000_17
0
235
Member Avatar for lashbandi

Hi everyone... My boyfriend's birthday is on Saturday, August 13...and i wanted to do something really different this time...since we are 1,000 miles apart...i was thinking if i could write a program which would generate random messages which I would already have written in the code... i was thinking of …

Member Avatar for sirlink99
0
282
Member Avatar for keevin

Write a global function called format, which formats numbers with a given number of decimal places. The function accepts a compulsory first argument of type double (the number to be formatted) and a second optional argument of type integer (the number of decimal places) and returns a string object containing …

Member Avatar for basrikul
0
436
Member Avatar for dubez001

Hey guys, my first post on here, I need help with setting up basic collision with a program I just did up. I downloaded sfml about an hour ago, and I have a cube I can move around, and want it to stop moving, when colliding with a stationary cube. …

Member Avatar for dubez001
0
370
Member Avatar for megachip04

this is the code to email confirm. The user clicks on the link in the email, passing the code through url to this page. Then the data is transferred from a tmp table to main one. I have queried in phpmyadmin and it works fine. But when i actually use …

Member Avatar for rv1990
0
194
Member Avatar for gregous

Hi I have the error message in the line 61 : mail($mailto, $subject, $message, $header); I can't figure out what is wrong :( Can you advise ? thanks [CODE] <?php /* * v1.7 * * * */ $fromname = $_POST['fromname']; $mailfrom = $_POST['mailfrom']; $msg = filter_var($_POST['msg'], FILTER_SANITIZE_SPECIAL_CHARS); // filter from …

Member Avatar for Zagga
0
353
Member Avatar for justyno

am developing a typingTutor quite similar to mavis beacon. i have designed the keyboard which highlights the press key on the syatem keyboard whenever a key is pressed. the program has a screen that displays moving text which the use has to type to match correctly.my problem is how to …

Member Avatar for NormR1
0
87
Member Avatar for TheDocterd

Hi All I am looking for a way to pass certain columns from a datagridview to a previous form. The columns i want passed is clientname, contactdetails, email, cellphonenumber, telephonenumber and faxnumber. How it works is as follow: In my form I have some read-only textboxes. Above them I have …

Member Avatar for d00garuz
0
278
Member Avatar for mridontknow

i got difficulty here, i dont know how to create a random vector consist of 4 strings. using vector. [CODE]int main () { string red,yellow,blue,green; }[/CODE] i want to create random vector for those four colors. please help me.. -im a beginner for c++

Member Avatar for mrnutty
0
2K
Member Avatar for sid78669

This is what I have in a page: [CODE=HTML] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Sandbox</title> <style type="text/css"> table.twocPC { width : 612px; border-width: 1px; border-spacing: 1px; border-style: solid; border-color: black; border-collapse: separate; background-color: white; vertical-align: middle; } table.twocPC td{ border-width: 1px; padding: 0px; border-style: solid; …

0
114
Member Avatar for theCompiler

i dont know how to random select a word in c . a big help is highly appreciated .. tnx :) for example the words are Ana,Lorie and Denise . how to random select from those words ?

Member Avatar for theCompiler
0
177
Member Avatar for james6754

I have this code.... [CODE] char ch; for (int i = 0; i < 10; i++) { ch = (char)('a' + i);//here Console.WriteLine(ch); ch = (char)((int)ch & 65503);//and here Console.WriteLine(ch + ""); Console.ReadLine(); } [/CODE] Now what I would like to ask is where ('a' + i) is, how is …

Member Avatar for Momerath
0
196
Member Avatar for Farhad.idrees

Hi i have 2 files one is Left.php which is is getting categories of product...code is [CODE] <?php require('Connection.php'); $query ="select distinct(P_Category) from tblProducts_info"; $result = mysql_query($query); if(!$result) { die('echo invalid query:,mysql_error()'); } else { if(mysql_num_rows($result)>0) { while($rows= mysql_fetch_array($result)) { $P_Category = $rows['P_Category']; $cat_List=""; $cat_List = "<li class=\"odd\"><a href=\"services.html\"?P_Category=$P_Category>$P_Category</a></li> "; …

Member Avatar for MagicMedia
0
158
Member Avatar for sirlink99

I have made this screenshot program in hopes of eventually making a screen recorder, but I am having trouble displaying the image for the user to see. I currently have it so that it displays and saves. When it displays it is blank, but when it saves there is a …

Member Avatar for mKorbel
0
197
Member Avatar for CSharpUser

First, I want to admit I am totally new at Linq queries. Your help and patience are GREATLY appreciated! I am trying to perform a query on a loaded XML document with the code below, but no matter what I try, I continually get an unhandled NullReferenceException error: [CODE] XDocument …

Member Avatar for CSharpUser
0
455
Member Avatar for GAiXz

[CODE]Protected Sub Button1_Click(ByVal sender As Object, _ ByVal e As EventArgs) Response.AddHeader("content-disposition", "attachment;filename=FileName.xls") Response.Charset = String.Empty Response.ContentType = "application/vnd.xls" Dim sw As System.IO.StringWriter = _ New System.IO.StringWriter() Dim hw As System.Web.UI.HtmlTextWriter = _ New HtmlTextWriter(sw) GridView1.RenderControl(hw) Response.Write(sw.ToString()) Response.End() End Sub [/CODE] how do i set the format for that after …

Member Avatar for steave123
0
108
Member Avatar for six_sic6

Hellow. I have installed IIS7 in windows 7. I have a ASP.NET project. Now i want to run it through IIS7. But whne i try it from by web browser by [B][url]http://localhost/Myweb/Default.aspx[/url][/B], it shows the following error on my browser.. [CODE] Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: …

Member Avatar for steave123
0
298
Member Avatar for emmas4impact

I have a customer record which i wish to modify so i wrote the following to modify it but each time i typed the name i want to modify it will not modify and prints not found! [CODE]void modify(){ char another='y',choice,name[25],flag='n'; long id; do { //clrscr(); //rewind(fc); printf("SEARCH BY NAME …

Member Avatar for WaltP
0
132
Member Avatar for Violet_82

Hi peeps, I wonder if anybody can give me a hand with this. Basically on my website [url]http://antobbo.webspace.virginmedia.com/photography/testing/gloom.htm[/url] to view a picture you need to use the left hand-side menu. Now, all good except that when you want to view any picture at the bottom of the left hadn-side nav …

Member Avatar for Violet_82
0
372
Member Avatar for SlzzyDzzy

[code] #include "stdafx.h" #include <iostream> using namespace std; int main() { cout << "Hello World!"; cin.get(); return 0; }[/code] Compiles and runs in dev cpp and notepad ++ but not in visual, Im trying to teach myself witht he internet but have no idea why this wont work. [CODE]1>------ Build …

Member Avatar for SlzzyDzzy
0
243
Member Avatar for lifeworks

Hi I have a table storing time-sheet data, including a start & end time. I've set those fields as 'TIME' format, and tried doing the following calculation [code] SELECT SUM(log_end - log_start) AS timetotal FROM time_logs WHERE log_client = 'ECDC' [/code] It returned an integer, which doesn't correspond with any …

Member Avatar for smantscheff
0
147
Member Avatar for ARaza110

I am using MouseRotate class of Java3d to rotate two cylinders. But when i rotate one cylinder the other cylinder rotates with it. Is there a way around this problem. Thanks.

Member Avatar for hfx642
0
201
Member Avatar for rosiec

I have some code-behind and I am running in to an error. I am still very new to ASP.NET so I am having difficulty figuring out the "identifier expected" error. Here is my code: [CODE] Partial Class Comments2 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) …

Member Avatar for rosiec
0
449
Member Avatar for bantex07

Someone can gave me a code for search as u type searching from may MS ACCESS DATABASE Thx GOD SPEed :P

Member Avatar for bantex07
0
117
Member Avatar for reeky_15

I'm a newbie in vb. My first project is a grading system for a certain school. In my login form, there's a [B]Forgot Password button[/B]. In the Forgot Password form, the user is asked to answer a secret question that he filled up upon registration, and if the answer is …

Member Avatar for MarkGia
0
3K
Member Avatar for darangho

Hi, I am trying to create a make file for a java project. It has a directory structure look like this: src folder [INDENT]-package1[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package2[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package3[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package4[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] I am new to makefile, but tried to create one according to some tutorials on …

Member Avatar for darangho
0
373
Member Avatar for TheNinjaForce

I wanted to follow this tutorial but the first step was confusing. I looked ahead to see if the whole thing was too advanced for me and I am pretty sure that I can handle it. This is the part i'm stuck on: "Okay, so now we're going to get …

Member Avatar for Sodabread
0
205
Member Avatar for Loony064

Hi all! I am a BSc. IT (Hons) student and am doing my research project in the field of AI, more specifically, affective computing, which basically deals with emotions within computers, either detecting them, displaying them or both. I am focusing on designing a computer program to detect emotion. The …

Member Avatar for freezerburn
0
139
Member Avatar for singh_soorma94

I was making a windows form project. in the project the user inputs the number of dice rolls he wants(2 dice will be rolled) and then i am suppose to give the number of times each number happened and the percent of times each number happened. The only problem is …

Member Avatar for singh_soorma94
0
305
Member Avatar for smartjugal

try { string path = Application.StartupPath + @"\IMAGE\"; if (!System.IO.Directory.Exists(path)) System.IO.Directory.CreateDirectory(Application.StartupPath + @"\IMAGE\"); string filename = path + @"\" + openFileDialog1.SafeFileName; pictureBox1.Image.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg); System.IO.File.Move(path + @"\" + openFileDialog1.SafeFileName, path + @"\" + textBox1.Text + ".jpg"); } catch (Exception ex) { MessageBox.Show("Failed To Save" + ex.Message); i made a registration form.there …

Member Avatar for smartjugal
0
147
Member Avatar for shasta90

[url]http://www.daniweb.com/software-development/python/threads/187060/1572491#post1572491[/url] based on a previous thread I would like to know how to replicate the appearance of a house five times on the gasp interface via the script below: #!/usr/bin/env python from gasp import * # import everything from the gasp library begin_graphics(title="Houses At Night", background=color.BLACK) # open the graphics …

Member Avatar for ~s.o.s~
0
1K

The End.