64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for llocar

Hi. I'm wanting to append some information to a file, which is found in a different file. I have simplified the problem using animals. Here is the basic code to add the line to the file: [CODE]grep "some important info about rabbits" rabbits.data >> rabbits.txt[/CODE] Very simple, but this must …

Member Avatar for llocar
0
125
Member Avatar for dondajr

Hi everybody o/. I'm studing Linked List in C. I made two functions: add ( add data on the list) and destroy (destroy the list). For now, it's just this two functions that i need, but the function destroy doesn't works well. When I call the function destroy only the …

Member Avatar for dondajr
0
274
Member Avatar for klemme

Hey All! I am trying to update some records using forms - But something gets mixed up when I send my info to the database: [B]My form with the info I wish to update, look like this:[/B] [CODE] //Getting the info from a dropdown list, where the user has picked …

Member Avatar for klemme
0
86
Member Avatar for chchew90

[code]import javax.swing.*; import java.awt.*; import java.awt.event.*; class CelsiusTemperature extends JFrame implements ActionListener{ private double readingInCelsius; private JButton button; private JTextField field; private JTextArea area; private JLabel label; public CelsiusTemperature(){ setSize(500,200); setLocation(250,150); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); label = new JLabel("Celsius"); field = new JTextField(20); button = new JButton("Convert"); area = new JTextArea(10,20); Container container; …

Member Avatar for Javam
0
110
Member Avatar for triumphost

K I just got this Idea that I want to implement into a program I downloaded. Yes the program is open source but I dont wanna compile it, I just want to sort of Inject?.. What I want to do is add a button to the program and have the …

Member Avatar for triumphost
0
126
Member Avatar for El3et

Im learning about postfix and prefix operators and how to overload them. I've created my class with overloaded pre and post fix operators how ever when used in the main program the results aren't what I expected. The program creates a simple shape from a class that has default constructor, …

Member Avatar for El3et
0
134
Member Avatar for Davife

I have a jQuery form in which I create a series of checkboxes: <?php <form method="post" id="b-form" action="../createb.php"> for ($i=0; $i<$request_count; $i++){ <div class="request-check"> <table> <tr> <td><input type="checkbox" name="show_request[]" value="request".$i." checked="checked"/>select request</td> </tr> </table> </div> } javascript $.ajax({ type: 'POST', url: '../createb.php', data: $('#b-form').serialize(), success: function (msg){ alert(msg); } }) …

Member Avatar for Davife
0
6K
Member Avatar for johndohmen1963

I have to folowing problem I have links in a table Some of thes cells are empty So if have the folowing code: </td><TD WIDTH='180px'><p CLASS='WithBreaksNarrow14'><a href="<?php If echo (!$row['link'])) $row['link']; ?> target="_blank" <?php else echo '&nbsp;'; ?>"><font color="orange"><?php echo $row['treffpunkt_wo']; ?></a></font></p></td> But my target="_blank" dosn't work and even the …

Member Avatar for johndohmen1963
0
224
Member Avatar for sirlink99

Does anyone know of or have a website where you can upload your applets and other people can play them? (like kongregate for flash games) and maybe even make some money every time someone plays your game? If you're wondering why, I need money for school. 0.o

Member Avatar for javanoob101
0
135
Member Avatar for devinodaniel

Hello friends! Suppose I have something similar to this HTML (this is not my exact HTML, rewritten to simplify): [CODE] <a onclick="ShowHide(); return false;" href="#">show/hide</a> <div> <div id="summary">Summary of info below</div> <div id="enclosure" style="display:none;">Information</div> </div> <a onclick="ShowHide(); return false;" href="#">show/hide</a> <div> <div id="summary">Summary of info below</div> <div id="enclosure" style="display:none;">Information</div> </div> …

Member Avatar for devinodaniel
0
117
Member Avatar for prishe

hi.. i need help in comparing value from the same table for my final project. example : table 1 : SubjectCode Classes Sub A class 1 Sub A class 2 Sub A class 3 Sub B class 2 Sub B class 3 Sub B class 4 Sub B class 5 …

Member Avatar for prishe
0
202
Member Avatar for gmdune

i, Here is the scenario I'm dealing with: My company has a bunch of old servers and workstations that have data on them that I need to copy to a "drobo" (multi-storage device) and eventually send the storage unit to someone else. I have a list of "contract numbers" that …

Member Avatar for gmdune
0
136
Member Avatar for comSysStudent

Hi all, I have a programming assignment to store sparse matrices using a list<list <myclass> >. I have pretty much everything nailed down but I'm going wrong at some point, the output is incorrect. Instead of giving me 4 lines with the column position and value of non zero values …

Member Avatar for comSysStudent
0
192
Member Avatar for e-papa

Is python 3.2 stable yet, because i use portable python v1.1py3.0.1, so far I'm making improvement, but I have problems loading modules, how do I go about it.

Member Avatar for e-papa
0
932
Member Avatar for e-papa

Please i just downloaded the latest version of pygame, but I've been finding it difficult to install, okay when i unpacked it, everything came up, but i don't know which should go to which. Python experts in the house what do i do.

Member Avatar for e-papa
0
178
Member Avatar for bklynman01

Hello - I am using Visual Studio .net 2008. I have a form that has a tabpage control in it with 5 pages. I need to add another page, but in position 2, not at the end. Is this possible? I do not see any settings for the position of …

Member Avatar for bklynman01
0
99
Member Avatar for pseudorandom21

I've found that often in my code I have a need for primitive variables protected with synchronization objects such as a boost::mutex, and I was wondering if the boost library provides a template similar to this one I'm considering, based on the C# property methods get/set: [code] template<typename var_type> class …

Member Avatar for vijayan121
0
259
Member Avatar for Mike Bishop

i have the following code that isn't working correct [CODE] Dim con As New SqlConnection Dim cmd As New SqlCommand Try con.ConnectionString = "Data Source=" & ServerV & ";Initial Catalog=" & databaseV & ";Persist Security Info=True;User ID=" & usernameV & ";Password=" & passwordV & "" con.Open() cmd.Connection = con cmd.CommandText …

Member Avatar for Mike Bishop
0
92
Member Avatar for anish99virgo

[CODE]hey i am designing a Registration Page. In that i am having 3 comboboxes, one for country,one for state & last one for city. I am able to display all countries, states & cities entries from database. Here is my code. SqlDataAdapter da = new SqlDataAdapter("select * from Country","Data Source=.;Initial …

Member Avatar for anish99virgo
0
89
Member Avatar for divyakrishnan

Hi... I have a problem to load a PDF file which is stored on another machine.I had loaded the PDF on the same machine using following PHP script.Here I had used a hyper link to load PDF. [CODE] <?php $file="first"; $pdfFile=$file.".pdf#page=1"; ?> <a href="<?php echo $pdfFile; ?>" target="_blank" > Click …

Member Avatar for divyakrishnan
0
772
Member Avatar for TheDocterd

Hi There I just wanna find out how I can save some data to a text file or access database (doesn't matter - the one that's the quickest). What my form does is it has a list box with ID's in it. I can select them. Then I have a …

Member Avatar for AndreRet
0
192
Member Avatar for pito_donje

on each form is the "X" at the top right of Form. how ya how to disable or remove "x" is it?

Member Avatar for Jx_Man
0
124
Member Avatar for xxreenaxx1

I have two delete function and would like to make this as one. So I can use this on my webpage. But not sure how? Anyone willing to help me :D [CODE=php] DELETE FROM test WHERE Tes_ID=$Tes_ID; DELETE FROM question WHERE Tes_ID=$Tes_ID [/CODE]

Member Avatar for xxreenaxx1
0
81
Member Avatar for ekin5683

What wrong with my coding? when i run..nothing appear.. The output should be: Perimeter of Rectangle 1: 22 Perimeter of Rectangle 2: 6 Perimeter of Rectangle 3: 18 Perimeter of Rectangle 4: 4 [CODE]#include<iostream> using namespace std; const int TOTAL= 4; void CalculatePerimeter(int perimeter[], int width[], int height[]); //const int …

Member Avatar for dkalita
0
87
Member Avatar for RoyalElite96

Hello everyone, I have one container div with several <div>About</div>, <div>More Info</div> etc. in it. on the main container I applied onmouseover to execute a JAVA function. Apparently, every time I hover a <div> in the container it runs the JavaScript again. What is it, I'm doing wrong? Thanks in …

Member Avatar for McLaren
0
2K
Member Avatar for abhimanipal

Hello Everybody, I have a small confusion with regards to pointers. Here is some code [CODE] int main() { int *p1 = (int*)malloc(sizeof(int)); *p1 = 10; printf("The number is %d",*(char*)p1); }[/CODE] I run the code and the O/p is 10. My question is, is there no difference in using char …

Member Avatar for nezachem
0
142
Member Avatar for gaurav_13191

I am trying to find out inorder successor of a node in a binary search tree. I read the algorithm from "Introduction to Algorithms,Cormen" and understood it. But the problem I face is that I can't find out the parent of the node when it is needed in the algorithm. …

Member Avatar for thekashyap
0
426
Member Avatar for swathys

hi, How do i check for time difference for eg: i have code like this [COLOR="Red"]If GetServerDateTime() < Format(Now, "MM/dd/yyyy hh:mm:ss tt") Then msgbox ("Invalid datetime") endif[/COLOR] i want to make it like if the time difference is within 2 min from the current time.... the application still can allowed …

Member Avatar for swathys
0
352
Member Avatar for keeda

[CODE] #include<iostream> using namespace std; char* Invert(char* input,int start,int end); char* reversewords(char* current); int main(){ char inputstr[] = "London is a city"; cout << "Inverted string : " << Invert(inputstr,0,strlen(inputstr)) << endl; int start,end ,i; while(*inputstr){ if (*inputstr == ' ' || *inputstr == '\0') { Invert(inputstr,start,end); start = i+1; …

Member Avatar for keeda
0
213
Member Avatar for puvi

hi frens.. i ll simplify my requirement and explain the issue.. lets say, i have 3 textbox rate, quantity, total and a "add row" button. I must be able to add any no. of rows. There must also be a supertotal field before the "add row" button to display the …

Member Avatar for puvi
0
595
Member Avatar for ThrasherK

I don't understand what I am doing wrong here. I am trying to quickly write this program so that I can use it to test a flowchart diagram that I made earlier. When the output comes up on the console "Enter a course name" and I put any input in …

Member Avatar for ThrasherK
0
171
Member Avatar for drewpark88

Hey guys, quick question. I am new to Jquery and just need a bit of assistance. I want to create an image gallery with one div holding all of my thumbnails (.thumbs) and the second div (which would be to the right of the thumbnails) would be an enlarged image …

Member Avatar for drewpark88
0
274
Member Avatar for ispeakbinary

I am learning c++ now and have encountered a problem in trying to create single digit addition, multiplication and subtraction math questions. The numbers used in the questions are randomly generated from 1 to 9 and when I try to print the answer for the corresponding question, I get a …

Member Avatar for prvnkmr194
0
200
Member Avatar for rookanga

I need to make an address book that doesnt use a database. It suppose to have First name Last name Birthday Telephone number Address (street) Address (city, state, zip) Email address All information shall be stored in a structure at run time The application should read and write to a …

Member Avatar for rookanga
0
293
Member Avatar for valestrom

So i'm making this periodic table kinda program here mainly outta boredom. But I came across a problem, when I type in the name for the element, the program just closes. Any ideas on how to get it to work properly. Here's my current code. [CODE]#include <iostream> #include <windows.h> #include …

Member Avatar for valestrom
0
153
Member Avatar for sumprit

Hi, everyone i have a problem in displaying Jlabels and Icons in a single JPanel. I have used Gridlayout and tried to display the Icons and JLabels in the JPanel. But using GridLayout the JLabels and Icons get dispersed and not in proper order and also the icon get crop, …

Member Avatar for sumprit
0
174
Member Avatar for teedoff

Ok back again! lol I can easily use the ListSort to sort a predefined list: [CODE] <cfset myList = ListSort("wango, tango, jango,lolo,alpha","TextNoCase","ASC")> <cfoutput>#myList#</cfoutput> [/CODE] Which results in a simple text in alphabetical order like so: alpha, jango, lolo, tango, wango What I WANT to do though is sort through a …

Member Avatar for teedoff
0
263
Member Avatar for ITKnight

Hi all, I already save my login config at registry. Thanks to Jx_Man and Debasisdas for helping me on previous thread. My following code running nicely. [CODE]SaveSetting "AddressBook", "Login", "Username", Trim(txtUserName.Text)[/CODE] My settings currently saved on "HKEY_CURRENT_USER\Software\VB and VBA Program Settings\AddressBook\Login" How i can save it one level more deeper. …

Member Avatar for ITKnight
0
101
Member Avatar for Resentful

I'm currently working on one of the last parts of a project and I'm at a standstill. I am needing to remove pixels from an image that are smaller than a certain aspect. For example, if an image has a square or triangle that is smaller than 35,35 pixels, I …

Member Avatar for Unhnd_Exception
0
279
Member Avatar for ppatryk

Hi, is it ok to use an if condition as a presence check, this is my code - [ICODE]if (textBox1 != null) { MessageBox.Show("Dont Leave Blank"); } else MessageBox.Show("Successfully added");[/ICODE] my code runs however no matter if there is text in textbox1 or if its left empty it shows "Dont …

Member Avatar for gusano79
0
246
Member Avatar for phpDave

Hi, I'm working on a site that allows users to connect with each other. User can search, find friend, and then request a connection. It works but if user request a second time it duplicates the row in table. I only want INSERT if does not exists. Here is code. …

Member Avatar for phpDave
0
96
Member Avatar for Taimoor Rana

Hello, I'm having trouble displaying an output from my code. It suppose to act like a stopwatch where seconds increment and then minutes and then hours but for some reason its not working and I cannot figure out why... :-( hope some some can guide me. Thanks [CODE]/* * To …

Member Avatar for Taimoor Rana
0
1K
Member Avatar for penguino138

I need help position a bunch of things. Mostly the text bar. Here's my code: [CODE] package swingHW2; import java.util.Scanner; import javax.swing.*; import java.awt.*; public class swingHW2 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub // The Layout FlowLayout lout = …

Member Avatar for penguino138
0
185
Member Avatar for Aepexx

Here is the output that I should be receiving: [CODE] Please enter the name on the check (First Last): John Doe Please enter the amount for the check (as a float): 123.45 --------------------------- Pay to : John Doe $123.45 one hundred twenty three dollars and 45 cents[/CODE] Now, what I …

Member Avatar for Aepexx
0
180
Member Avatar for LloydFarrell

Hi all... I am trying to get data from a table field called "custom" from a mysql database the data is stored as 23-1, where 23 is the id and 1 is the quantity How do I build an array or extract the data and place the values into two …

Member Avatar for LloydFarrell
0
102
Member Avatar for leo88

How to get minimum value? [code] ArrayList arrKey = new ArrayList(); double v; double min; foreach (string subKey in sortList4.Keys) { foreach(string mee in arrKey) { sortList5.Add(mee,1); if(sortList3.ContainsKey(mee)) { sortList3.TryGetValue(mee, out v); if(v>min) { //what should do at here? } }}} [/code]

Member Avatar for leo88
0
146
Member Avatar for klemme

Hi All! I have a table with different kinds of customers information. With the code I have posted below, I want to pull out all the records from the database. When I progress to make the "create_record" page, my intention is that it should automatically be added as an extra …

Member Avatar for joban.ali
0
123
Member Avatar for smandape

Hello experts, I am trying to extract the abstract from the following XML code that appears as follow; [CODE] <abstract> <p> In eukaryotes, glutathione S-transferases (GSTs) participate in the detoxification of reactive electrophillic compounds by catalysing their conjugation to glutathione. GST is found as a domain in S-crystallins from squid, …

Member Avatar for iceandrews
0
113
Member Avatar for MrHardRock

Hey everyone the program I am writing has to find the mode, max, and median from an array. I think I have everything except there is one error I cannot figure out, thanks in advance. [CODE] import TerminalIO.KeyboardReader; public class med { public static int MAX(int[] a) { int MAX …

Member Avatar for MrHardRock
0
104
Member Avatar for globusak

I have a problem that i need to solve, and dont know how to do it. I have two arrays of 80 numbers (array[1..80] of integer) and i want to multiply them, saving the result in another array. I am beginner in pascal, learning it at school, so i have …

Member Avatar for Wolfgan
0
704

The End.