199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for maccinelyro

Hi. I was creating an enrollment system for my Thesis, and my adviser told me that I must have a Code in my program that Synchronize database from client and server so that if the terminal connection is "Up" the data will go to the server and if the connection …

Member Avatar for lolafuertes
0
241
Member Avatar for yani.uk

Hello there. I am trying to create a loop, which will move an objects position to a certain spot, based on a random number generator. Here is the code I have so far; [CODE]public void left() { if (this.getColour().equals(OUColour.WHITE)){ while(this.getPosition() !== this.setPosition(this.getPosition() - getRandomGenerator().nextInt(5) + 1)){ super.left(); } } }[/CODE] …

Member Avatar for yani.uk
0
106
Member Avatar for Karkalash

Hiya: I have tried to reproduce this equation to simple reflect a ball after colliding with a paddle (or screen bounds) R = V – (2 * V[dot]N) N I don't want to take the easy rout of just negating the velocity but is my first time trying to implement …

Member Avatar for Karkalash
0
610
Member Avatar for jacob21

I m using substr in while loop. Using substr I am getting strike in Text; If I omit substr then I get perfect result. I have to substr function; Is there any another alternate function. [CODE] if($countrecords>=0) { while($row1=mysql_fetch_array($result1)) { ?> <div style="border-top:1px dashed #cccccc; padding-top:10px;"> <div style="font:bold 11px verdana; …

Member Avatar for wetube
0
1K
Member Avatar for Shodow

[CODE]Imports MySql.Data.MySqlClient Imports System.Data.SqlClient Module connection Public conn As MySqlConnection Public Sub xconnect() conn = New MySqlConnection conn.ConnectionString = "Server=localhost;User=root;Database=test;pwd=;" Try [U][B][COLOR="Red"]conn.Open()[/COLOR][/B][/U] MsgBox("Success") conn.Close() Catch ex As MySqlException MsgBox(ex.Message) Finally conn.Dispose() End Try End Sub End Module System.TypeInitializationException was unhandled Message="The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception." Source="System.Transactions" TypeName="System.Transactions.Diagnostics.DiagnosticTrace" …

0
315
Member Avatar for saybabs

Hello y'all, I am a part time php programmer and a photographer. Due to the fact that i lost some many of my photography works to virus that got onto my pc, i have decided to develop a website whereby i can save all my works. I need some one …

Member Avatar for blocblue
0
112
Member Avatar for abelLazm

Just came across a code of compressing file thought to share :). Code for text file only can be changed for other filetypes....It reduces nearly 97% of the file size ... [CODE]OpenFileDialog opd = new OpenFileDialog(); FolderBrowserDialog fbd = new FolderBrowserDialog(); textBox1.Text="Path + File To compress";//open file by open file …

Member Avatar for skatamatic
0
875
Member Avatar for danielbala

i got 3 users to be registered in the registration form through radio button admin,manager and employee... after registration of a admin the other 2 raadio buttons shud only enable in the registration form... admin shud be disable............ how to implement this in php...........

Member Avatar for diafol
0
124
Member Avatar for sugir1987

can you help me to clear the error? [CODE]import java.util.*; class Node{ protected Object data; protected static ArrayList child; protected Node next; public Node(){ next = null; data = null; child=new ArrayList(); } public Node(Object d,Node n){ data = d; next = n; n.child=new ArrayList(); } } public class Tree{ …

Member Avatar for NormR1
0
191
Member Avatar for issaru07

i have search page to search by title, author, isbn from the dropdown list. But when they display the result for my search, it unable to retrieve my other data from my table (product4) like the price. it shows this error below Notice: Undefined variable: price in D:\xampp\htdocs\book\search.php on line …

Member Avatar for cereal
0
240
Member Avatar for ahoysailor

Hi, I'm having a problem with taking the user input from a richtextbox in Unicode and writing it to a Unicode text file. I'm able to read a different Unicode file and write it to the new file, but when it comes to writing the contents of the richtextbox to …

Member Avatar for ahoysailor
0
264
Member Avatar for RazorRamon

Hello yall, I'm starting to work with Paypal (just signed up for x.com and sandbox). I was looking at the DoDirectPayment API for credit card transactions. One of the required fields kinda took me by surprise. Here it is. [CODE] IPADDRESS (Required) IP address of the buyer's browser. Note: PayPal …

Member Avatar for pzuurveen
0
315
Member Avatar for Tortura

Hey, following Problem: I have two classes Measurement and its subclass DC_Measurement. Measurement has a method called: [CODE]public virtual SetPoint[,] createSetPointArray()[/CODE] DC_Measurement: [CODE]public override DCSetPoint[,] createSetPointArray()[/CODE] DCSetPoint is also a subclass of SetPoint. I read that this is possible. Now I use in my mainWindow following code which contains an …

Member Avatar for Tortura
0
157
Member Avatar for OsaMasw

[B]Hello guys i have a problem with PHP code and i dont know what is wrong i want to get the content of a website then search for specific tags then take the value of tags , lets say i want to search for example for these tags [/B] <div …

Member Avatar for OsaMasw
0
623
Member Avatar for markdean.expres

Guys anyone know how to stop or close a running program remotely through a vb.net program? I am already aware on how to run or open one using the System.Diagnostics.Process.Start method. I would be needing it in my next project Thanks

Member Avatar for markdean.expres
0
161
Member Avatar for riahc3

I have this code: [code] <html><head><title></title></head><body><form id='formulario' action='index.html' method='post'><label>Ancho </label><input type='text' name='ancho' id='ancho'><br ><label>Alto </label><input type='text' name='alto' id='alto'><br ><label>Izquierda </label><input type='text' name='izquierda' id='izquierda'><br ><label>Horizontales </label><input type='text' name='horizontal' id='horizontal'<br ><label>Verticales</label><input type='text' name='vertical' id='vertical'><br ><label>Crucero </label><input type='text' name='cruzero' id='cruzero'><br ><label>Marco </label><input type='checkbox' name='marco' id='marco'><br ><label><input type='radio' name='RadioGroup1' value='1' id='piezas'>Piezas</label><br><label><input type='radio' name='RadioGroup1' value='0' …

Member Avatar for Troy III
0
168
Member Avatar for nlyn

I need help in my Connect Four program. Specifically in placing the user's input on the gameboard & also checking horizonallty, vertically, etc. [CODE]/* * ConnectFour program */ import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Scanner; public class ConnectFour implements ActionListener { JFrame frame; JPanel contentPane; JButton displayMessage; public ConnectFour() …

Member Avatar for Philippe.Lahaie
0
91
Member Avatar for nijinjose123

Hi, Do anyone know a memory leak profiling tool compatible for java 1.4.2. Your help is much appreciated.

Member Avatar for peter_budo
0
127
Member Avatar for dinhunzvi

i have the following form which submits to itself. the form is used for editing a row in a database table. [CODE] <?php session_start(); // start a session require_once '../includes/adminheader.php'; require_once '../includes/mysql_connect.php'; require_once '../includes/functions.php'; require_once '../includes/brand_functions.php'; $brandid = (int)$_GET['brandid']; $brandname = getBrandName( $brandid ); $page_title = 'Auto-Zim Administration - Edit …

Member Avatar for pzuurveen
0
296
Member Avatar for dkjuk

Hello, I am trying to create a photography gallery and at the minute I have it so it uses session variables to pull the cat titles and where a cat title is present it loops through the folder which is passed from a mysql lookup. [code=php]$dir = "photography/".$gallery; $files1 = …

Member Avatar for cereal
0
147
Member Avatar for Pony Cursed

Hi, My question is about: How select a "Window" that exist ? Because I don't know how select. What I know is create a new window, but don't select a that already exists. What I have done this is it: (throw how "sub-process" already minimized) [CODE] import subprocess if subprocess.mswindows: …

Member Avatar for Pony Cursed
0
121
Member Avatar for NAJAFEE

I HAVE MADE A SIMPLE PROGRAM FOR INVOICES, e.g. THE TOTAL AMOUNT IS COMING 48,950/$, CAN ANY BODY HELP ME HOW TO APPEAR THIS AMOUNT IN WORDS "FORTY EIGHT THOUSAND NINE HUNDRED AND FIFTY. THROUGH MODULE. THANKS.

Member Avatar for Pgmer
0
88
Member Avatar for tqmd1

Dear experts I have following codes [CODE]<html> <head> <script type="text/javascript" src=jquery.js"></script> <scritp type="text/javascript"> $(document).ready(function(){ $('button[name="button1"]'.click(function(){ $("p").hide(); }); }); </script> </head> <body> <form> <p>hello</p> <input type=button name=button1 value=hide> </form> </body> </html>[/CODE] Why it does not work?

Member Avatar for AleMonteiro
0
106
Member Avatar for PyroPlasm

Hello, I am fairly new to shell scripting. I see a lot of examples out there of how to find if a file has been modified within a certain period of time. What I'm looking for help with is a script that will run and I'm thinking check for the …

Member Avatar for shibblez
0
148
Member Avatar for dlagewaa

Our online reservation system can be used with magnetic card readers and barcode scanners provided such peripherals are connected via USB and allow keyboard emulation. The cardreader (barcodescanner) provides the cardswipe (scan) as one keystroke. Our system will the look up the corresponding number in the database and return the …

Member Avatar for niranga
0
131
Member Avatar for tahirkhanafridi

hi frnds, i have issue with my simple script i have audios.php file white fetch all mp3 audio files on the audios.php file i want if someone click on the executed mp3s which makes this type of hyper link [url]http://xyz.com/uploads/123.mp3[/url] its prompt for download and save file option i dont …

Member Avatar for pzuurveen
0
170
Member Avatar for zerohero

Hello I'm new here and I've been up two night's trying to figure out how to write a program that will convert numbers to word. If anyone can help please respond to the post. here is what I sort of figured out so far. As you can tell I'm still …

Member Avatar for Kalel Kristoff
0
834
Member Avatar for zachattack05

I have a Bit field (On/Off; True/False) that I would like to bind to a label and ComboBox, but I can't figure out how to have them display anything other than True or False. I'd like something like "Secure" "Unsecure" or "Male" "Female" but the text "Secure" corresponds to say, …

Member Avatar for zachattack05
0
303
Member Avatar for newbie26

how to increase my mysql databse server partitioned in /var/lib/mysql using putty?? my server is linux open suse. can i have a step by step procedure??thnks.

Member Avatar for smantscheff
0
215
Member Avatar for Mike Askew

Hi all, I am looking to have a long process running in the background to my main form with a timer ticking on the main form animating the elipsis on the end of some text. Was looking for some insight into the best way to go about this and any …

Member Avatar for Mike Askew
0
245
Member Avatar for rucci

Hello experts , Now this may seem a silly question but i do have to ask . Its a similar question to ones people have posted but not that similar . i would like to connect VB 6 to ACCESS 2007 using ODBC . I have no idea how to …

Member Avatar for AndreRet
0
1K
Member Avatar for diafol

Has anybody here had any experience of using OpenID (or FB, Twitter, Yahoo etc) to login into your site. I've been wondering whether I should adopt this approach for a new project. However, as a password will not be stored in my DB, how will the user remember which service …

Member Avatar for cereal
0
274
Member Avatar for Warl30ck

I'm trying to write a blog and this comes up : Parse error: syntax error, unexpected '<' in C:\wamp\www\Blog\index.php on line 65 the code: [CODE] $query = "SELECT id, header, body, views FROM information"; $result = mysql_query($query); while($row = mysql_fetch_row($result)) { print "<div class=section odd>"; print "<a href=images/riverside.jpg><img src=images/riverside.jpg /></a>"; …

Member Avatar for pritaeas
0
141
Member Avatar for markdean.expres

Guys I just want to ask why my KeyPress event is apparently not working. What I want is that when I press the letter m, the selectedindex property of my listboxes would change. Here is the code; Select Case Asc(e.KeyChar) Case 13 Try tray.ListBox1.SelectedIndex = tray.ListBox1.SelectedIndex + 1 tray.ListBox2.SelectedIndex = …

Member Avatar for weeraa
0
241
Member Avatar for nexocentric

How do I represent a use case that has no actor? I'm doing the preliminary work for an IT system. I'm trying to list up all the actors so that I can create all the use cases that I need; however, there are things like background processes that must run …

Member Avatar for nexocentric
0
247
Member Avatar for govnah

Hi there, i'm a newbi at c# and i'm trying to create a game called SHUFFLE. The game is suppose to generate an array[8] of random number (without duplication) each time it is run. and then the user is suppose to sort it out in order. I have managed to …

Member Avatar for Momerath
0
2K
Member Avatar for Thermalnuke

Hey guys, I am trying to figure out how to write out this java Program, I am using JCreater, and I am teaching JAVA to my self if you guys can help and show me a couple of the programs that I am doing I think i will be all …

Member Avatar for stultuske
0
256
Member Avatar for idhasitha

how can i insert data from data base with selected Datagridview columns i have insert combobox to Datagridview and it can load data from DB now i need insert data to another columns in Datagridview when i change combobox items plzzz helpppppppppppppp

Member Avatar for kothaisaravan
0
135
Member Avatar for m1234ike

Hello DaniWeb, I have a new idea for an app: I have an external harddrive and I usually backup my desktop with a cleanup folder which I usually move to the external harddrive. The problem is: when I search for a file (i.e. example.mp3) I will find multiple copies which …

Member Avatar for codeorder
0
284
Member Avatar for richardtreier

Alright. I am (attempting) to use this [URL="http://sites.google.com/site/rcorcs/download/systemsoftware"]http://sites.google.com/site/rcorcs/download/systemsoftware[/URL] simple database library in VC++ 2008 Express. I admit that I am a newbie to C++, since Ive used only "light" programming languages like python, php, java. To use it I have the header files, and as "lib" folder I have a …

Member Avatar for mike_2000_17
0
109
Member Avatar for Alex_2011

Hi, I want to add a button (ButtonCalculate) to make the user select this button to generate the loop for calculating the sum. [CODE] Private Sub TextBox1Integer_TextChanged(sender As System.Object, e As System.EventArgs) Handles TextBox1Integer.TextChanged Dim OddSum As Integer = 0 Try Dim CountTo As Integer = TextBox1Integer.Text For Index As …

Member Avatar for Alex_2011
0
227
Member Avatar for battlex2010

I am making a networking application using sockets for a local area network. How can i make the client side of the application search the network for the server socket? Right now i am getting the input from the user itself about the IP address and Port of the server.

Member Avatar for battlex2010
0
198
Member Avatar for triumphost

How can I forward declare a struct/custom type in my include? I'm trying to write an include but it keeps telling me incomplete type or type not declared.. I do not have a .CPP to go with it.. I wrote everything in here as I have never written an include …

Member Avatar for mike_2000_17
0
8K
Member Avatar for natehome

hi im trying to make a program that will go to 4chan and download a the images on a thread(i.e. [url]http://4chan.org/b[/url]). the program will work the first time but after that when i go to run it again it trys to download the same urls as it did the first …

0
195
Member Avatar for bobanderson93

the program wont compile because it found and error with ReadFromFile class method in the main.cpp file. Any help would be appreciated. class inventory deceleration in "Inventory.h" file [CODE]#ifndef INVENTORYDEF #define INVENTORYDEF #include <iostream> #include <fstream> int const MAXNAME=30; int const SIZE=2; class Inventory { private: int quantity[SIZE]; float unitcost[SIZE]; …

Member Avatar for Ancient Dragon
0
157
Member Avatar for gennesis

Hi a have 4 tables Table A ID | Data 1 --------------- 1 | A Table B ID | Data 2 ----------------- 1 | B 1 | C Table C ID | Data 3 ---------------- 1 | D 1 | E 1 | F Table D ID | Data 4 …

Member Avatar for gennesis
0
367
Member Avatar for jeevanism

Hello All, I need a small help. I have an application built in php which stores images and videos as in gallery. A user can click on the video , it will play as in streaming way. This part is ok. now, we have a limitation that we cannot play …

Member Avatar for jeevanism
0
975
Member Avatar for ng5

i am having trouble linking 2 listboxes together... What i woud like to happen is a selecting from listbox1 to populate listbox2. Any ideas on what to do? thanks in advance

Member Avatar for codeorder
0
150
Member Avatar for sachintha81

Let me describe my problem as well as I can. I have a C# application program, let's call it App.exe. It references a DLL named A.dll which in turn references another DLL, namely, B.dll. However the way in which they are referenced is a bit different. In the code of …

Member Avatar for sachintha81
0
3K
Member Avatar for socialmd

I'm trying to figure out how to use PHP in Javascript to fill in the options for my drop down menus for my dynamic inputs. I've tried several things already, but I have had no luck. This is how my code stands at the moment. Any ideas are greatly appreciated. …

Member Avatar for Airshow
0
303

The End.