199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for BleepyE

I have a list of say 15 images. How can I make it so that in each page refresh they all change to a random position? Thanks

Member Avatar for BleepyE
0
125
Member Avatar for mukorera

Can somebody please help me with the c code for monitoring System power,that is how to check if a pc or laptop is running on power or battery

Member Avatar for mukorera
0
80
Member Avatar for sneha mehta

Write a java based program to accept numbers from the user and also sum the list of numbers as and when entered. apply the data conversion mehods , if required. implement the best and the shortest way to complete the task.

Member Avatar for masijade
0
87
Member Avatar for bradyramone

Hi, I am new to mysql and have got a problem. I have managed to INSERT into the database and and check from it (a simple login system) but now after i login i want to copy all the data from that row and throw it into an arraylist. I …

Member Avatar for masijade
0
2K
Member Avatar for steve_Student

Hi Ia want to show text in a multi-line textbox, but my problem is how do I start a new line when using code like so.. [CODE] TxtBox_TechTalk.Text = " Good Effort.. You Got " & Lbl_TotalMark.Text & " Lets try the next test. Click the Subtraction Test button to …

Member Avatar for steve_Student
0
107
Member Avatar for DLKenji

Alright guys, I'm in quite a situation. I have a project for school to create an application in C++ that can create and generate shopping dockets/receipts. This includes being able to add the names of the items, the prices, and then finding the total price of the purchase. We can …

Member Avatar for WolfPack
0
709
Member Avatar for chriselectrix

Hi I have to XML files and two XSL and HTML documents. I have a 'master' xml file, but I also have a 'slave'. I cant edit the xml files as they are automatically exported from a software package. Table 1 (master) contains e.g.: Master Job Master Part Qty Child …

Member Avatar for chriselectrix
0
404
Member Avatar for xxreenaxx1

I have created a checkbox using while loop and posting this to another page but I am not sure on how to add these ticked check box as 1 and non ticked one as 0 to the database. Can someone help me? <form action="Test_Completed.php" method="post"> include '../Database/take_an_exam.php'; $intNumber = 1; …

Member Avatar for qazplm114477
0
415
Member Avatar for anirban1087

Hi, I am working on a Inventory management system. No I would like to have a [B]custom bill no, which will be changed on each month[/B], i.e. the first bill of March, 2011 will have a no like "[B]Mar/2011/01[/B]", the next will be "[B]Mar/2011/02[/B]" and so on, until it is …

Member Avatar for anirban1087
0
132
Member Avatar for mindmyweb

Ok i have a problem i cant solve I have 2 images image one saved in location x and has name x1 image two is saved in location y and has name y1 Now i want a script that picks up image y1 and replaces x1 with y1 using changeing …

Member Avatar for mindmyweb
0
257
Member Avatar for anirban1087

Hi, I am working on a Inventory management system. No I would like to have a [B]custom bill no, which will be changed on each month[/B], i.e. the first bill of March, 2011 will have a no like "[B]Mar/2011/01[/B]", the next will be "[B]Mar/2011/02[/B]" and so on, until it is …

Member Avatar for anirban1087
0
95
Member Avatar for anilsambasivan

Hi, I have created an application to send data from WCF server application to my client side application. For this I have added a custom serialization instead of the default serialization. And now its sending data to the client as stream and I am able to de-serialize the object back …

Member Avatar for anilsambasivan
0
143
Member Avatar for pritesh2010

HI all Experites can you help me on this Query How to get perfect result set I have three table. [CODE] 1)vitalsigns ID DisplayName DisplayShort ToMetrics ToEnglish 1 Temp Temp (0.556*({1}-32)) ({1}/0.556)+32 2 BP(Systolic) BPH (NULL) (NULL) 3 Wt WtH {3}/2.2 {3}*2.2 4 Height Height 2.54*{4} {4}/2.54 5 Pulse Pulse …

Member Avatar for smantscheff
0
656
Member Avatar for Joe34

How can I get some part of $B to be only [B]auto[/B](The first word in $A[1])? [CODE] if(preg_match('/^(.*)">(.*)/',$A[1],$B) == 1) { die($B[1]); } [/CODE] $A[1] is.... [B]auto[/B]">auto</a>, <a href="automobile">automobile</a>, <a href="motorcar">motorcar</a>, <a href="machine">machine</a></div><div class=Rel><a hr .................................... /tr><tr><td><a href="zw

Member Avatar for smantscheff
0
167
Member Avatar for Phil++

Hello, Does anyone know how to set the text colour but for a specific character? E.g. If I enter "Phillip" I want it to display: P[COLOR="Green"]H[/COLOR]illip So that just 1 character is coloured? Heres the code I've written: [code] public void paint(Graphics g) { String elements; elements = nameField.getText(); char …

Member Avatar for mKorbel
0
122
Member Avatar for sirlink99

Hello I would like to implement multiple swing timers, each of which have a different function, but I cannot seem to separate the functions. I have one actionlistener and I cannot make another one. Please help.

Member Avatar for mKorbel
0
587
Member Avatar for pito_donje

Was how to form the password one could call the 4 form with each different password. example for the administration can only open the form and form alone administration secretary could only summon his secretary form only & to superiors could open formnya all. thanks for attention & assistance

Member Avatar for AndreRet
0
77
Member Avatar for raniel1314

[CODE] Option Explicit Dim rs As ADODB.Recordset Dim savePurpose As String Private Sub getData() Call EnableEntryControls(False) lvRec.ListItems.Clear Set rs = GetRecordset("Select * from tblDocSched") If Not rs.EOF Then 'records exists Call SearchMode(True) While Not rs.EOF lvRec.ListItems.Add , , rs.Fields("PhysicianNo").Value lvRec.ListItems(lvRec.ListItems.Count).ListSubItems.Add , , rs.Fields("PhysicianName").Value lvRec.ListItems(lvRec.ListItems.Count).ListSubItems.Add , , _ IIf(IsNull(rs.Fields("Department").Value), "", rs.Fields("Department").Value) …

Member Avatar for AndreRet
0
250
Member Avatar for ruchi18

hi.. I just want to know is there any way to use flash image in java i mean i f i have java servlet web form and i want to design this form on flash image then how can be it possile please help...

Member Avatar for ruchi18
0
119
Member Avatar for alleybye

[CODE]rsInventory.Open "SELECT Expiration_Date FROM YourTable WHERE Expiration_Date < DateValue(Date)", conn, adOpenStatic, adLockOptimistic[/CODE] what should be the value of that date. if i put date [CODE]rsInventory.Open "SELECT Expiration_Date FROM YourTable WHERE Expiration_Date < Date", conn, adOpenStatic, adLockOptimistic[/CODE] ive got an error 'no value given value given for one or more required …

Member Avatar for AndreRet
0
102
Member Avatar for TheFueley

I'm having trouble figuring out how to use exceptions to check if a file stream was created successfully. I know I can use if statements, but how do I do this using try/catch statements? It compiles successfully but it gives me an error when I supply a non-existent filename as …

Member Avatar for TheFueley
0
8K
Member Avatar for brechtjah

Hi, I'm creating the layout for a dynamic webshop, all pictures are getting dynamic IDs to have their elements changed. I'm currently having errors with the code below and have no idea why. the argument id is not null, however document.getElementById(id) is. I don't understand how that can happen :S …

Member Avatar for nagendrage
0
152
Member Avatar for lochnessmonster

class stinker { private: int *pointer; int age; public: stinker() : pointer(), age() { ;} }; if i don't pass a value to my variables in an initialization list, do they automatically get initialized to 0?

Member Avatar for vijayan121
0
157
Member Avatar for failbot

I recently wrote an implementation of STL Vector as a programming exercise. The program compiles but I receive a strange error saying: [CODE] terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc [/CODE] I've never come up with this error before and am not sure what exactly should be …

Member Avatar for vijayan121
0
2K
Member Avatar for murtazanaqvi

[CODE] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="managesurveys.aspx.cs" Inherits="managesurveys" %> <!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 id="Head1" runat="server"> <script type="text/javascript"> function newAttribute() { var d = document; // get field labels var lbl_attribute_new = document.getElementById('js_lbl_attribute_new').value; var lbl_attribute_del = document.getElementById('js_lbl_attribute_delete').value; var lbl_property_new = document.getElementById('js_lbl_property_new').value; var lbl_property = document.getElementById('js_lbl_property').value; …

Member Avatar for prvnkmr194
0
596
Member Avatar for anirban1087

Hi, I am working on a php form where, I have 5 [B]rate[/B] , 5 [B]quantity[/B] & 5 [B]amount[/B] fields. The user will make entry on amount & quantity fields, and onchange the amount fields will be calculated, I also have a TOTAL field which will also be calculated from …

Member Avatar for anirban1087
0
201
Member Avatar for azegurb

Hi all. I have script that use two arrays. It pushes original array values to the newly created array. it dont pushes into new array duplicate values. for Ex; the orginal array is [B]var arr=['one','two','three','three'][/B]new array will be var newArr=['one','two','three'] the second three will not copied. but one disadvantage is …

Member Avatar for azegurb
0
103
Member Avatar for xCrusade

Hi, I have been working on this program for a few days.. and I am so far gone I lost myself in my own program. I usually just start from scratch when I get frustrated but there is too much time invested into my heap to give up so I …

Member Avatar for xCrusade
0
1K
Member Avatar for plang007

I do not know how to write a function for this. I have written just the base line of the code, but I do not know how to finish it. Here is the description. A void Function tagReader inputs the data collected by the cylinders; it has two parameters: the …

Member Avatar for plang007
0
244
Member Avatar for vanzhyme

Im using this code ! con.Open() cmd = New OleDbCommand("select * from RoomTypeA", con) conreader = cmd.ExecuteReader Do While conreader.Read If conreader.Item("TimeEnd") = Me.TextBox6.Text Then Me.RTypeListA.Items(0).Selected = True Me.RTypeListA.Select() End If Loop cmd.Dispose() con.Close() conreader.Close() i want to select the item in listview that has the same TimeEnd with textbox6.. …

Member Avatar for vanzhyme
0
202
Member Avatar for cwarn23

Hi, I have just created an algorithm and could this be the greatest algorithm invented for calculating square roots? Perhaps the answer is yes with 100% accuracy unlike some algorithms that round the last digit up. Below is the algorithm I have created and I used php. Also this algorithm …

Member Avatar for mrnutty
0
844
Member Avatar for anirban1087

Hi, I am working on a PHP page where I have 5 rate, 5 qty and 5 amount fields. When I am define all the fields manually, i.e. defining each field with a separate filed name, field id then it is working. But when I have used a loop to …

Member Avatar for anirban1087
0
113
Member Avatar for jokers6

i am not a good programmer and so i need help. im not asking for you to write the program but need help with it ! i have some coding but cant figure out how to put the rest together ! ok so this is what i have so far. …

Member Avatar for Slyvr
0
152
Member Avatar for yeahyeah85

Hi guys, I am trying to modify my program so that when i entered an invalid number, it will say that this is invalid and loop me back to the starting point. I just cant find the point to do that. either it will just say invalid and continues, or …

Member Avatar for jonsca
0
188
Member Avatar for privatestatic

hey guys im doing the gridworld case study and am at the part where i program the Zbug class I have to try and write the code in a select case statement. can you guys fix my code? for more info: page 14 on [url]http://www.collegeboard.com/prod_downloads/student/testing/ap/compsci_a/ap07_gridworld_studmanual_appends_v3.pdf[/url] i really need it fixed …

Member Avatar for ztini
0
205
Member Avatar for ayesha789

Dear All I have 2 Pages smtpAuth.php contents.php When I use this code [CODE]$body = file_get_contents('contents.php'); $body = eregi_replace("[\]",'',$body);[/CODE] It cannot show PHP variables values in Send email. Content.php file attached as contentsphpfile Whole HTML working fine but PHP DataBase values are not showing in Email.

Member Avatar for urtrivedi
0
185
Member Avatar for shantanusinghal

[code=c] int i=0,j=0; char operand[30]; char lbl[20],opr,num[20]; while(i<30) lbl[i]=num[i]=operand[i++]=NULL; cin>>operand; for(i=0; operand[i]!='+' || operand[i]!='-'; i++) lbl[i]=operand[i]; opr=operand[i++]; while(operand[i]!=NULL) num[j++]=operand[i++]; [/code] ..is there any mistake in this piece of code, my execution is getting stuck at [code=c] lbl[i]=operand[i]; [/code]

Member Avatar for Ancient Dragon
0
104
Member Avatar for tracydo

Hi I need help with the while loop and read from a file to find monthly mortgage payment from the input of Principle, Interest & Term in years. I know I may did something that doesn't make sense here, please take a look and let me know. Thank you in …

Member Avatar for ztini
0
222
Member Avatar for xuexue

hi guys, this is the scenario, i have two textboxes, then a submit button. now, when the user clicks the submit button, it will verify if both textboxes have values, otherwise, if only one of them is empty, an alert box will be displayed prompting the user to complete the …

Member Avatar for happytogether
0
189
Member Avatar for oldezwe

part of the program i am creating requires me to print out all of the links from a desired webpage. I have absolutely no idea on how to go about this. help? thanks

Member Avatar for oldezwe
0
73
Member Avatar for AngelicOne

Could I select a datetime record using date only? I need to show rows containing a particular date. I'm thinking to separate it into two column instead if I couldn't select only date from a datetime.

Member Avatar for Momerath
0
152
Member Avatar for hughesadam_87

I wrote a program that interactively allows you to import files directly from your HDD into another python program. When building a new program, you simply call my program, navigator, and it lets you choose a directory and it prints out a numbered list of file: file a 1 file …

Member Avatar for Gribouillis
0
162
Member Avatar for RastaC

Hey guys I have a quick question on my hw, I have found everything needed except the "unusual scores". this is the direction given: Determine which of the grades, if any, are "unusual" in the sense that their corresponding z-score is < -2.0 or > +2.0. A z-score is computed …

Member Avatar for ztini
0
104
Member Avatar for fazdhli

hi, i need help from you ^^ i don't now how to add java script into this programmed. the result should be come out with "you are interested in: (either one or all check box they click)". i hope you guys can help me on this. Thank you ^^ [CODE]<html> …

Member Avatar for fazdhli
0
203
Member Avatar for joaep2

Hi guys. I downloaded pygame and a few other modules for Python. I know that I have to put them in a certain folder to make sure Python can read them, but what is that exactly? I'm running a Mac, OS 10.6.6. I already tried putting it in the main …

Member Avatar for joaep2
0
911
Member Avatar for gekkoswave

I am writing a game of three dimensional tic-tac-toe. I need to have a method that can look at the board, and determine if a player has won. Your requirement is that this method is passed an array that represents the board, and returns an answer that can be used …

Member Avatar for ztini
0
305
Member Avatar for elgarfan

Hi, I've been using iTextSharp PDF library for a while, but now want to do something tricky. At least it seems tricky. I simply want to change the dimensions of a page in a PDF document I'm busy creating.. but change it *after* I've added content to it. In other …

Member Avatar for elgarfan
0
2K
Member Avatar for red_ruewei

Hi all, Sorry if I post same thread. I cannot find any similar post to handle my problem. I manage to show/hide tables(which I put on DIV tag) by using 2 radio button which is Kes and Lot. But I'm having problem by starting click on either Kes and Lot.The …

Member Avatar for red_ruewei
0
161
Member Avatar for aditi mishra
Member Avatar for pg5678

May seem like a stupid question but can an array call a function? and if so is it possible to select an array from user input, so if the array was something like Num[10] and the user would input 6, it would then select Num[5] and call the function associated …

Member Avatar for gerard4143
0
147

The End.