64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for rhoit

I am trying to move the huge no of file into different folder.. the files in the style of "HNI [0-9]{3}.*.jpg" i.e [ICODE]HnI 001.Sunday Party.jpg HnI 002.Car.jpg . . . and so on[/ICODE] I want to place the certian no of files in the single folder like.. .[ICODE]mv file1 file2.... …

Member Avatar for rhoit
0
451
Member Avatar for MoreBloodWine

The below block of code generates stuff like the below array but here's where it gets somewhat interesting. I took the legend and turned them all in to variables because of what I would like to have done which I will now describe below. Of the four arrays that this …

Member Avatar for jimforsyth
0
131
Member Avatar for uopdom

Hi, I've been racking my brain for the last few days to figure out what is wrong with my PHP coding. I've managed to get the default value from my combo box into my database, but when I change the option it is breaking on me. I have reduced my …

Member Avatar for uopdom
0
834
Member Avatar for atticusMom

I have all figured out I think except exercise 7.20 Extend zuul by adding an Class called item. Each item is created with a description such as rock or stick and a weight. When creating rooms and setting their exits, items for this game should also be created. When player …

Member Avatar for atticusMom
1
5K
Member Avatar for dnk

how to clear all text box?? i always use this : [CODE]text1.text = "" text2.text = "" text3.text = "" ....[/CODE] but how about if i have many text box? there are an other way to do this??? Please help. ASAP. best regards

Member Avatar for the_h
0
108
Member Avatar for alim18

Hello Guys, firstly i wanna say that this is really great forum. this my first on this forum and hoepfully will not be the last one. okey let me explain what is my problem; on that site [url]http://www.paid-surveys-at-home.com/[/url] i saw this form is created which calcuates "How Much..................." etc.. i …

Member Avatar for alim18
0
263
Member Avatar for dudzkie

Hello! I created a login form that is connected to the MySQL database, what i wanted to do now is to record who successfully login to the form and will also record the time and date he/she login Can you give me some hint on how to do it Thanks!

Member Avatar for dudzkie
0
98
Member Avatar for public-image

I am trying to detect if a users password is less than or equal to 5 characters then to error the user otherwise continue.. <? $pass = $_POST[password]; if($pass <=5){ echo"Error"; }else{ echo"YAY no errors!"; } ?> I can't get it to work can anyone point out a way to …

Member Avatar for public-image
0
99
Member Avatar for heshanm

Hi all, I am developing a MIS for a bank.There i want to create various types of accounts and i want something like this to be done. Ex: Account type Account Number A 1001, 1002, 1003, etc B 2001, 2002, 2003, etc C 3001, 3002, 3003, etc Likewise i want …

Member Avatar for public-image
0
270
Member Avatar for arkanoid

I did not see anything about how to have multiple colors in a textbox. Is this possible, or must I use a richtextbox?. I would like to keep it simple if possible by setting it up in a standard textbox. Can someone help me with this? As an example of …

Member Avatar for arkanoid
0
121
Member Avatar for public-image

I am currently making a change password area and I wish for users to be able to change it although for passwords to be more secure we ask that passwords contain both letters and numbers and if users so choose they may have special characters as well.. I could not …

Member Avatar for MagicMedia
0
265
Member Avatar for tcl76

hi, assume data looks like this: cell Bit 0 1 1 X 2 1 3 0 4 X 5 X 6 X 7 X 8 1 9 X 10 0 11 0 12 X 13 X 14 1 15 1 And i want to group 4 bits into each group …

Member Avatar for tcl76
0
249
Member Avatar for rbduck09

This is the algorithm that I am working from Algorithm Name: UPDATE_CHECKBOOK [B]Problem Input(s):[/B] start_balance - the beginning checkbook balance. xact_amount - the amount of the transaction. xact_type - the type of the transaction (credit or debit). [B]Problem Output(s)[/B]: new_balance -- the ending checkbook balance. Relevant Formula(s): Adding a credit …

Member Avatar for rbduck09
0
145
Member Avatar for joban.ali

Hi I have a while loop set up to call data from the database which is successfully doing. i would like my users to edit their own content on the database, a user can have many publications and so the user should be allowed to amend each publication. At the …

Member Avatar for sudeepjd
0
114
Member Avatar for rockstat

Hello Everyone I am new to this forum and hope I can get some help and vice-versa. I am doing this little project for my self in C Sharp and it involves WMP. I have provided my code at the bottom and appreciate any help I can get. I am …

0
130
Member Avatar for thebigbroski

I was working on Problem 17 on Project Euler: [url]http://projecteuler.net/index.php?section=problems&id=17[/url] and I'm stuck; my answer is close, but not correct. I got the answer 21108 with the following code: I do realize the code can be optimized, but I would like to simply get this to work, and not try …

Member Avatar for thebigbroski
0
527
Member Avatar for abarrett86

I have a C#.NET Website that stores status logs from hardware installations. A report is stored in a report_info table and it's data entries are stored in report_data. I first insert into the report_info table and retrieve the insert ID using: [CODE] cmd.CommandText = "SELECT @@IDENTITY"; // Get the last …

Member Avatar for abarrett86
0
159
Member Avatar for CHOCHOCHO
Member Avatar for 24x24

First off: I am not looking for somebody to do my homework. Although it would make it easier for me in the short term, please don't "help" me by writing my code for me. I would rather lose points for being late and understanding the code than get the grade …

Member Avatar for peter_budo
0
138
Member Avatar for Stefano Mtangoo

a apart fro SQL injection what are risks to comsider when querying database? What are risks when uploading files other than limiting some extensions (like exe's)?

Member Avatar for Stefano Mtangoo
0
117
Member Avatar for jember

I need immediate help here. Please help me! :) I just can't figure out why my program is crashing while executing it. The compiling of the program is fine. (no syntax errors) I used Dev C++ 4.9 for this version. [QUOTE][CODE] #include <iostream> #include <conio.h> #include <iomanip> #include <string> using …

Member Avatar for jember
0
159
Member Avatar for lexusdominus

i would never ask for debugging help usually but i am totally lost and have wasted far too much time on this. both peices of code compile correctly. the original function works fine with my program and the second one crashes. the original code checks a textfile in the root …

Member Avatar for lexusdominus
0
319
Member Avatar for webteam

Hi, I'm putting an autocomplete textbox on my website to help users type in a location. I want users to be able to type a city or just a state (ex. Seattle, WA or Washington) kind of like what you see on Indeed ([url]http://www.indeed.com[/url]). How do I get the states …

Member Avatar for jlego
0
428
Member Avatar for petrakid

I have two text boxes and I want them both to submit the same data, such as if the user changes one text box, the other changes to the same value [U]and vise versa[/U]. I am easily able to make one textbox update the second with javascript, but not the …

Member Avatar for petrakid
0
495
Member Avatar for Oblivious21

Hey guys and gals I need alittle help. i have an assignment that needs to print a certian number of stairs according to a user input. Example program run (user input is in bold): Please enter the number of rows: 4 Please enter the number of stars in row 1: …

Member Avatar for Oblivious21
0
165
Member Avatar for alex9292

hi i have a project to do for school and im not sure if im on the right track i would like some opinions here is the description of what i have to do [U]INSTRUCTIONS Part A 1. Start a new C# project named SalespersonDemo.cs, as shown in Exercise 9 …

Member Avatar for Momerath
0
165
Member Avatar for dimProg

Hello, I'm new to c++ and we're just starting classes and objects in class. I've done a bit of programming in Java and I'm struggling to initialize an object using a variable. I must be missing something fundamental but I can't for the life of me figure it out. Here's …

Member Avatar for rickster11
0
1K
Member Avatar for revjim44

I have a form that has two text boxes. The first is visible, and the second one is not. How do I go about having the second text box become visible if the user tabs out of the first text box? I wrote a KeyDown event handler to check for …

Member Avatar for ddanbe
0
204
Member Avatar for OmniX

I am trying to see the restrictions of $_GET global variable and when I use the URL localhost/test/test.php?abc.def I am getting the variable abc_def in the global variable $_GET, any ideas? Any other restrictions?

Member Avatar for OmniX
0
164
Member Avatar for ricvik

Hello, As this forum has been so helpful before, this time it's a JS question: I have a list of checkboxes from which the user can select 1 or more to check and perform an action upon. Thus, all checkboxes have the same "name" (in ASP code, since it's DB-related): …

Member Avatar for ricvik
0
162
Member Avatar for carlitosway17

I am creating a C# forms application, a gradebook in particular everything is fine except I keep getting this error : [COLOR="Red"]cannot convert type string into int[/COLOR] Here is my code [CODE] // Fig. 18.9: CreateFileForm.cs // Creating a sequential-access file. using System; using System.Windows.Forms; using System.IO; using GradeBook; public …

Member Avatar for carlitosway17
0
1K
Member Avatar for Sundayy

[B]I'm new to C++ and I need help in writing code:[/B] Lucy likes to jog in the morning. As she jogs, she counts the number of strides, she makes during the first minute and then again during the last minute of her jogging. She then averages these two numbers together …

Member Avatar for Sundayy
0
169
Member Avatar for tiggsy

I have a piece of code as follows: [CODE] $query = preg_replace('/\<a href=\"(.*)\"\>\<img height=\"(\d+)\" border=\"0\" width=\"(\d+)\" alt=\"(.*)\" src=\"(.*)\" \/\>\<\/a\>/',"INSERT INTO newproducts (productName,supplierName,productLink,imageLink,groupCode,currency,price,updated) VALUES ('$4','supplier','$1','$5',",$ad); $query .= "'$group','\$',$price,CURRENT_DATE)";[/CODE] which works fine. But I would like somehow to amend it so that the field productName ($4) can have slashes added to it …

Member Avatar for tiggsy
0
152
Member Avatar for draven07

..Hi to all...just want to ask.. ..I have already created an ideal layout for my calculator..my problem is...I dont know how to insert a value into a field everytime I press a button(0 to 9)..without deleting the previous integer after I press my operator.. ..how shall I do so..??..

Member Avatar for draven07
0
97
Member Avatar for jlego

kind of directed towards adatapost... in most of my applications, i have a public function called DBUpdate() [CODE] Public Sub DB_Update(ByVal strQuery As String) Dim ADOCmd As New ADODB.Command Try If ADOConnect.State = ConnectionState.Open Then Call CloseConnection() ADOConnect.Open(dsn, user, pass) ADOCmd.ActiveConnection = ADOConnect ADOCmd.CommandText = strQuery ADOCmd.Execute() Catch ex As …

Member Avatar for jlego
0
152
Member Avatar for yeticannotski

Dear All, I am struggling to write my first "useful" python script, which is a backup tool. After hours and hours of trial and error, I finally got it to create two different lists. The first list is that of the files to be copied: [CODE]['C:\\Folder\\Foo.txt', 'C:\\Folder\\Folder1\\Foo1.txt', 'C:\\Folder\\Folder1\\Folder2\\Foo2.txt', 'C:\\FolderB\\FooB.txt', 'C:\\FolderB\\FolderB1\\FooB2.txt'][/CODE] …

Member Avatar for yeticannotski
0
3K
Member Avatar for VanHackman

Hello, I need some help. I have a MySql DB, and some fields have Japanese values. DB collate is set to: utf8_general_ci When I check for a specific register with PhpMyAdmin, values with japanese characters display ok, but when I try to get the same register to show it using …

Member Avatar for smantscheff
0
2K
Member Avatar for Dadkhah

Hi. I using this Thread "Serial port communication using C++ = "http://www.daniweb.com/forums/thread56329.html" and I change it for solved the some error in program. This is my source code: serial.h #[CODE]define FC_DTRDSR 0x01 #define FC_RTSCTS 0x02 #define FC_XONXOFF 0x04 #include <stdio.h> #include <time.h> #define VC_EXTRALEAN #include <string.h> #define ASCII_BEL 0x07 #define …

Member Avatar for Dadkhah
0
251
Member Avatar for commando1200

Im trying to make a tax and tip calculator and whenever the tax comes up it goes 10 or more decimal places and im trying to restrict it to two. [code=java] public static void main(String[] args) { double cost, total, tip, taxtotal, tiptotal, subtotal, grandtotal; Scanner myScanner = new Scanner(System.in); …

Member Avatar for commando1200
0
197
Member Avatar for TheIdiot

I keep getting a syntax error in this code and I need a new set of eyes to show me what I am doing wrong. It is coming back and saying that I have an unexpected } on line 36. [CODE]<?php require_once("config.php"); //Connect to mysql server $link = mysql_connect(DB_HOST, DB_USER, …

Member Avatar for TheIdiot
0
153
Member Avatar for riotburn

I just got a program that does forward substitution. It is working fine but I would like to make it so the user can enter size of both 2D n x n array and a n x 1 array and then be able to enter the elements of the arrays. …

Member Avatar for attefeh
0
5K
Member Avatar for xxxferraxxx

Hi, I need to make "Keygen" that gen text not randomly with two text boxes, i need to use it for "username and "password" gen that i puted to gen. Please help with the code :)

Member Avatar for xxxferraxxx
0
209
Member Avatar for strungoutfan78

Hey everyone. I'm brand new to C++ and programming in general and this is my first post here. I've found lots of good info here and these forums helped me a lot last semester. I've got a problem here though. This is a small bit of code I had to …

Member Avatar for strungoutfan78
0
399
Member Avatar for SavnetSinn

Hey all. I'm in the process of learning Java in my spare time, and I've bumped into a problem that I'm having a hard time wrapping my head around. I'm writing a small game (currently little more than an animation) involving a handful of blocks moving on-screen. I've created a …

Member Avatar for SavnetSinn
0
4K
Member Avatar for eikal

Hi guys, my program im working on ends when it shouldnt..... here's the main method. [code] public static void main(String[] args) { String answer; do { boolean whole=false; boolean whole2=false; Scanner sc = new Scanner(System.in); int one=0, two=0; do { try{ System.out.print("Enter the first whole number: "); one = sc.nextInt(); …

Member Avatar for ztini
0
153
Member Avatar for MaDo4

Hi, I have an assignment where i'm supposed to read from a Input File and save it to an output file. The final expression should only contain alphanumeric characters. The code that I have so far gives me both symbols and alphanumeric characters. I was wondering if anyone saw anything …

Member Avatar for MaDo4
0
182
Member Avatar for techningeer

I am using the CodeLite IDE. I compiled the following program using CodeLite (It is a C++ program): [CODE]#include <iostream.h> int main() { cout << "Hello World\n"; return (0); }[/CODE] It returns this message: g++ -c "/home/keagan/.coding-work/Hello/printamessage.cc" -g -o ./Debug/printamessage.o "-I." "-I." /home/keagan/.coding-work/Hello/printamessage.cc:1:23: error: iostream.h: No such file or directory …

Member Avatar for techningeer
0
398
Member Avatar for Zolcos

This is on my Gentoo box. Recently, a MySQL upgrade seems to have broken my UDFs, specifically those in lib_mysqludf_preg. I first noticed errors like: FUNCTION tablename.PREG_RLIKE does not exist I figured, OK, I must have to reinstall them. I try the config command for lib_mysqludf_preg and get this: ERROR …

Member Avatar for smantscheff
0
749
Member Avatar for crapgarden

[B]QUESTION 1[/B] In this line of code, I get that it's using the date/time to seed the code for a more random number each time, I'm just wondering what the < > operators are doing? [CODE]srand(static_cast<unsigned int>(time(0))); [/CODE] I realize, they're making time into an unsigned int, but why not …

Member Avatar for pseudorandom21
0
467
Member Avatar for LKMaxwell

All, I’m new to C++ and trying to figure out the best way to do a multidimensional array of pointers to a class. The code I am presenting demonstrates several questions I had and am hoping to get some help with each question. The basic idea is to create myMatrix, …

Member Avatar for pseudorandom21
0
240

The End.