199,114 Archived Topics
Remove Filter ![]() | |
Good Day, I'm trying to changed the background color of a field based on the results of the field. My script runs fine and provides the data correctly. I query my database and it gives me a result of $priority. $priority can be High, Medium, or Low. What I want … | |
I have this code where I get the tree view of a table in access database.. what I want is ..I want to add nodes on each base on it's ID... this is the table [CODE] ID Name ID_Menu 1 pet 2 me 1[/CODE] and the treeview's output will be … | |
Normally when I do file uploads I save the files into the website's file system. However in this particular situation I am required to save the PDF files as a longblob into a table in our mysql database. The data field is set as a longblob, and the table is … | |
Dear All, I am writing the following code but I am facing some problem. public void actionPerformed(ActionEvent ae) { if (ae.getSource()==connect) { JOptionPane.showMessageDialog(null, "Connection Estabilished"); } else if (ae.getSource()==disconnect) { JOptionPane.showMessageDialog(null, "Connection Disconnect"); } } When I Write this code, compiler compile this code but does not show messagebox when … | |
Hi all, I have another CFHTTP question. I am on another project where I have one sign-in form, but depending on the user's prior activity, or lack thereof, I have three places I can direct them. 1. If they are a returning user, they go to the main target, an … | |
I recently looked at [URL="http://www.songho.ca/opengl/gl_vbo.html"]this[/URL] description of VBOs and a sample implementation of them. When I ran the executable, it was significantly faster with no VBOs than with them. I don't understand why it should be slower with the VBOs than without. Can anybody explain why? | |
Hi Friends!! I am coming across this problem that whenever I am trying to retrieve the data in a dataset Through database, it is taking around 10 min to get the data no the localhost. And when I am running the same code on the live server it doesnot take … | |
My code is: [CODE] #include <windows.h> #include <iostream> using namespace std; struct ReplacementFlags { public: bool rfReplaceAll, rfIgnoreCase; ReplacementFlags(bool ReplaceAll = false, bool IgnoreCase = false) : rfReplaceAll(ReplaceAll), rfIgnoreCase(IgnoreCase) {} ~ReplacementFlags() {} ReplacementFlags& operator ()(bool ReplaceAll = false, bool IgnoreCase = false) { if((rfReplaceAll != ReplaceAll) && (rfIgnoreCase != IgnoreCase)) … | |
I'm working with this rather popular DrawDisk procedure which pretty much anti-aliases a circle and draws it, filling it and the background in the process. At the moment the procedure call only lets you modify the background color of the WHOLE canvas and the fill color of the line. Have … | |
Hello! Below is a function exhibiting a simple stopwatch mechanism. It stops when the user presses any key and goes back to the main menu. My question is, is there anyway I can pause the time and continue it as desired by the user? I would like to use "P" … | |
Hello I'm using SELECT CASE statement for age cases but I've two inputs years and months [CODE]Case 0 To 1 MS_lbl_category.Text = CStr("infant") Case 1 To 2 MS_lbl_category.Text = CStr("toddlerI") … | |
Example code: [CODE]HWND CreateButton(const HWND hParent,const HINSTANCE hInst,DWORD dwStyle, const RECT& rc,const int id,const ustring& caption) { dwStyle|=WS_CHILD|WS_VISIBLE; return CreateWindowEx(0, _T("button"), caption.c_str(), dwStyle, rc.left, rc.top, rc.right, rc.bottom, hParent, reinterpret_cast<HMENU>(static_cast<INT_PTR>(id)), hInst, 0); }[/CODE] The part I dont get is: [CODE]dwStyle|=WS_CHILD|WS_VISIBLE;[/CODE] So the question would be why do we use '|' and … | |
hi i would like to change just part of my code to change the color of my answer to my maths game see the code [CODE]document.write("<br>3+2 = " + answer1 + " is incorrect - the correct answer is 5");[/CODE] see where it says the answer is 5 i would … | |
Hey guys, I've looked over several Google results for basic explanations on [CODE]is / '=='[/CODE] However, I don't think I quite understand enough to know what is the ideal operator for this. [CODE]mylist=[1,2,3] if type(mylist) == list: print 'yes'[/CODE] or do I use [CODE] if type(mylise) is list: print 'yes'[/CODE] … | |
hello this is my first time posting so sorry if I make any errors, im currently trying to ad a sliding movement to a tile game im trying to do, the tiles currently move but they move in a jumping motion, ive been trying to use the coordintes of the … | |
is it possible to empty all the tables in the database without dropping them with shell script? if yes could you please show me? thank you | |
Analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one array. Each of these items (sequential code, at least one selection statement, at least … | |
Hi guys, still Noob here, so i apologize for not using the correct terminology. I will be as detailed and accurate as possible! I've been using QT Designer, and been trying to figure out how to "combine" the GUI ive created with the python script I wrote before making a … | |
hey what's up guys, I'm writing some C++ code used to do math operations on polynomials that are contained in a input file. Right now I'm stuck on the actual streaming in of the files. The .txt input file is in the format as follows 1 1 2 2 3 … | |
Can anyone see why my variable $unit_price isn't updating (in fact it isn't even being applied to the session variable) in this code (it must be something simple but I can't see it and is driving me mad). I have tested the posted data and it is being sent through … | |
hey guys can u help me to solve this program have to do 4 function , call the following functions by passing the array: (i) A function to input all information. (ii) A function to calculate the average score for each student and the average score for the class. Find … | |
Hi! I'm writing a program in C++ where the user is asked to enter a list of ten names and cities of residence in the format <firstname> <Surname> <city>. I then have to sort the list by city and then in each city group alphabetically by name, using Bubblesort. I'm … | |
Hi, I'm writing a program in C++ to ask the user for a list of ten names and cities of residence in the format <firstname> <Surname> <city>. The amount of spaces between each doesn't matter as I will be using isspace. then i have to sort the list by city … | |
Im creating a calculator that allows users to enter their own Loan Amount, then choose whether to input their own Loan Interest and Monthly Loan Terms, or to choose between a set of predefined loan terms and interest rate in a GUI. So far I have been successful in creating … | |
Hello, I'm new to python and have a requirement to decompress various NRV2B compressed files. I have the python functions for performing this decompression, however I am unsure how to get it working. I have tried making this a module, importing it and then feeding my compressed files as a … | |
Ok so me and my friend are doing a weekend challenge... Whoever makes the best game wins. Im trying to make a game like farmville but its called mineville and its just a little different. My problem is that theres this part in the code that keeps repeating, and i … | |
Could someone tell me how to print the code for the whole project? If possible with line # too. Thanks in advance. | |
![]() | Ive created a memory game which has a grid of JButtons, when the button is clicked it changes the ImageIcon background to an animation which shows the front of the card. The problem is that when the button is clicked, the gif doesn't begin playing until the mouse is moved … |
Here is my code:- [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Administrator */ import javax.swing.*; import java.awt.event.*; import java.awt.event.*; import java.awt.*; public class MyQuiz { int score; JFrame frame; String[] questions = {"Who invented … | |
can you help me with these a little problem of mine.. we are having a pair project where the program is all about enrollment system. in this program, we need to add a record, view, and search records. now. my problem is... i cannot add another record within this code... … | |
When I run my python scripts I generally run with the console open just to keep an eye on things. I have a script that calls 3 external command line apps one after the other. On one pc all output from these apps appears in the console window and is … | |
hi. i am trying to use two turtles in separate windows simultaneously in python but nothing found yet. i have tried multithreadding but still the same. can somebody help me please. thanks. | |
I have never taken a programing class before but my instuctor wants me to write a program in python i've been looking in the book and still don't even know where to start please any help would be great here's the program she wants You are helping your friend throw … | |
can anyone explain tkinter in object oriented style where you would have it in a class ? | |
am using vb.net and sql database. My tables are as follows: Details: Details_ID (PK) Address_1 Address_2 City Postcode Country Email And Customers: Cust_ID Customer_Name Notes Details_ID(FK) When i insert data, it fills in the tables but the Details_ID comes as Null. I need the Details ID to correspond with the … | |
Working in vs2008 I have a report that accepts 30 rows of data. The issue I have is that I need to split this data up into 5 sections of 6 with a border... _______________________ 1 data 2 data 3 data 4 data 5 data 6 data _______________________ 7 data … | |
Hello everyone, I am trying to make a tool that can allow me to join text... For example, my project have four listboxes like my example: [One] [Two] [Three] <== these are thre list boxes or three text boxes with multiline option, which the job is to make something like … | |
Hi I would like to know if I can use freeswitch with PHP for voice chat. I have downloaded the freeswitch software But I am not getting how to configure php with freeswitch where to use this in freeswitch can voice chat application be created using php. how freeswitch is … | |
[CODE]package PAyroll; import javax.swing.JOptionPane; import javax.swing.UIManager; import java.awt.Color; import java.text.DecimalFormat; import java.text.NumberFormat; import javax.swing.UIManager; public class EmployeeProfile { public static void main(String[] args){ JOptionPane.showMessageDialog(null,"Welcome to Payroll System"); payroll(); } public static void payroll(){ int conf=0; // do{ String name=""; String add= ""; String contact= ""; String email= ""; String word=""; … | |
I'm working on a project that can recursively print out the items from a single link list. The project also require the reverse method should accept a reference to a generic single-linked list. This is my logic for printing the item in reverse: if the element in a node is … | |
Hello, I have website proxy-zone.net and there you can add proxy on this link: [url]http://proxy-zone.net/add-proxy-server/[/url] I made simple web bot that should POST proxy and add it in database. But it wont POST because my website checks if backlink exist on remote proxy website. And I make sure backlink exist … | |
i have this recommendation that, the teacher can add continuously how can i do this? in which the teacher can add grade and on single button it can be all saved in one database [url]http://www.4shared.com/photo/TjiwnmxX/aaa.html?refurl=d1forum[/url] [CODE] <?php if(isset($_POST['save'])) { $g_year['acad_id']; $fg=$_POST['fg']; $sg=$_POST['sg']; $tg=$_POST['tg']; $forg=$_POST['forg']; for($i=0;$i<count($fg) && $i<count($sg) && $i<count($tg) && … ![]() | |
Guys I need to print tne content of my div named "content" my code will only work if their is only one div named "content" but in my case I have a lot of div with same ID because I iterated it along with the codes from mysql, can anybody … | |
Hello :) I have a system to add friends, i would like to make it as i want, but something does not deal... This is a SQL now: [code]CREATE TABLE `friends` ( `id` int(11) NOT NULL AUTO_INCREMENT, `f_id` int(11) NOT NULL, `us_id` int(11) NOT NULL, `active` enum('0','1') NOT NULL DEFAULT … ![]() | |
Hi at all. I'm a new user of jsp and I've a problem. I would execute certain operations every X seconds in my jsp project like check data into mySql DB; I use a TimerTask java class and it's ok. But if I would update the UI inside the run … | |
Hi guys what I want to do is once the user has entered the id number it displays the results for the particular record. This works fine however what would I need to do to the following code so if the id number does not exist it produces an error … | |
I am a beginner in learning assembly language. I wanted to know which assembler would be best to use between NASM and MASM in today's context. Also, can you give a link to documentation on these assemblers?And tutorial specific for these assembler (as assembly is not standardized) | |
Right, my program ran perfectly fine with the line [CODE]JLabel headerImage = new JLabel(new ImageIcon(img));[/CODE] But as soon as i put it into a JAR file it has problems, i have searched the inet for soloutions and there isnt much out there for apps, loats for applets though, but none … | |
hi , i have a textbox control in one sheet and a range of data in another sheet in the same file. how do i copy the range of data in paste it in the textbox control? appreciate a reply thanks | |
Can you please help me out on my project?, its like a phonebook on cellphone it should be display the ADD CONTACTS, DELETE, EDIT, SAVE, VIEW, SEARCH. I sunno how to edit and delete the contacts can you help me on this.. i came out on this,.. #include<iostream.h> #include<conio.h> void … |
The End.