199,114 Archived Topics
Remove Filter ![]() | |
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 | |
Any IDea how to Parse a String without using Split method | |
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() | |
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 … | |
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] | |
![]() | 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. |
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 … | |
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 … | |
How can i start to create a Auto alert when somebodys post on your wall. just like facebook.. tHANK YOU SO MUCH. | |
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'); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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). … | |
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: … | |
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, … | |
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 … | |
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 … | |
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 … | |
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. … | |
![]() | 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 … |
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 … ![]() | |
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 … | |
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 … | |
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++ | |
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; … | |
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 ? | |
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 … | |
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> "; … | |
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 … | |
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 … | |
[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 … | |
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: … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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. ![]() | |
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) … | |
Someone can gave me a code for search as u type searching from may MS ACCESS DATABASE Thx GOD SPEed :P | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
[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 … |
The End.