199,114 Archived Topics
Remove Filter ![]() | |
Hi, Everybody, I wrote the program to connect to the Microsoft Sql server 2000. I have also defined constrains and triggers on Tables of SQL. Now I want to catch the error message generated by the triggers or constraints in c prog and want to show it to user. Can … | |
Hi There, My website is a search engine and on the home page it has the 'total number of searches performed: 123,456' - This is running simply by counting the total number of tags (it counts the entries in a MySQL table). Is there any way of it automatically updating … | |
Hi, I have implemented a simple socket server in Java. Everything works great except the process just dies/times out after about an hour and I do not know why. I run am running the process through my web host's machine using SSH. My steps: 1. Add to '/etc/rc.local' two commands: … | |
Sorry I ask too many simple questions :D 1. [code=vb]Public Class Weapon Dim name As String Dim type As String Dim damage As Integer Dim speed As Double Dim durability As Integer Dim value As Integer Dim RustySword As Weapon 'What kind of declaration must I make? Its an error … | |
Hi Friends, I am use asp.net with C#.net as code behind file... I put asp Dropdown list box to my aspx page.. when at run i select item from Dropdown list box and refresh or post back this aspx.the value of Dropdown become first...How i get previous value...I want dropdown … | |
Hello! I am creating a database driven site that is a directory of businesses. I have a page that displays the categories and a table full of categories in the mysql database. I have a while statement get the categories that start with a certain letter and echo them on … ![]() | |
Hi there, I have a simple piece of software written up that I'm running off the terminal's command line interface. Very recently, it was asked of me to create a GUI for it. So I basically made one to reflect how I would use the software but I actually haven't … | |
I want to find some thing in ms word. this is the default option of ms word. but here I want to do in my own language (cause the default option only support English). I can make it. but I don't know how it connect with ms word. I mean … | |
hi, iwant data from [url]http://www.stubhub.com/new-york-yankees-tickets/yankees-vs-astros-6-11-2010-898499/[/url] in that right side div of all pages data, how can i get, plz help me.. thanks in advance | |
Hi Guys, I wonder if you will be able to help me with creating a password generator in VB using VS 2008. I have limited programming knowledge from my time at university and it wasn’t my strong point :). What I want to do is have a front end which … | |
Hi all, first time posting here, I need some help with this, as my knowledge of c++ is shaky at best. I have points defined like this: [CODE]struct Point { double x, y, z; };[/CODE] I have a 2d vector filled with vectors of these points: [CODE] vector< vector<Point> > … | |
I was wondering whether it was possible to use dynamic memory or something else to achieve something to the effect of entering numbers or a string using standard input without first having to specify how many instances you intend to enter. If this can be done through some other method … | |
Hello I'm new to java and i'm facing some problem... First code refers to File_Chooser class which works perfectly fine for me... [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package statguis; /** * * @author Umar Ali */ … | |
i need help on this simple case dim xMenu as System.Windows.Forms.ToolstripItem dim xString as string = "FrmMain.MnuFile" [B]xMenu=xString[/B] xString.visible=False xString.test="MENU FILE" ... How could i do 'that bold area'?? note: xString actually was dynamic variable i got from Database with SQL syntax thanks before! | |
how I can simplify fraction after do some process on it (add, sub...) this part of program (add fraction) [CODE]int i,j,k,m,a,b,c,d; char x; printf("Please Enter fraction number 1\n"); scanf( "%d%c%d",&a,&x,&b); printf("please Enter fraction number 2\n"); scanf("%d%c%d",&c,&x,&d); if (b == 0 || d == 0){ printf("undife number\n"); system ("pause"); } else … | |
PLEASE HELP ME WITH THIS QUESTIONS, I AM NOT POSTING MY WHOLE HOMEWORK BUT ONLY THE QUESTIONS WHICH I AM NOT SURE ABOUT. 1)What command will set the permissions to 744 on the file /home/fred/.bash_logout Choose one answer. a. chmod a+r,g+r,o+r /home/fred/.bash_logout b. chmod u+rwx g+r o+r /home/fred/.bash_logout c. chmod … | |
For all those people who were like me at one time doing the long process of $thing1 = $_GET['thing1']; $thing2 = $_GET['thing2']; ... $thing1 = $_REQUEST['thing1']; $thing2 = $_REQUEST['thing2']; ... $thing1 = $_POST['thing1']; $thing2 = $_POST['thing2']; ... $thing1 = $row['thing1']; $thing2 = $row['thing2']; ... etc. we probably all have done … | |
I have a custom .Ini file that looks like this : [QUOTE] [Main props] lives=3 name=danny [Mommy props] lives=2[/QUOTE] I want to know how to read from the "Main props" section and assign a new value to the "lives" key and also reading from the "name" key. I dont know … | |
[CODE]return((int)ADHR << 2);[/CODE] im trying to learn what a certain function does and then i stumble upon this part. i do get that << 2 means shift left by 2. what i do not know is the (int)ADHR part. can anyone help me out with this? thank you | |
i have a 2D matrix of characters or integer or whatever!How do i check if another matrix is a sub-matrix of The 2D one ...Please!! help with simple code that work for any size of the matrices Thanks in advance to all | |
Hi Everyone, Recently i have started a small J2ME project for my personal use. I have developed J2ME application based on calculations which doesnot require "DELAY". Currently i am facing a problem, where i have to implement a delay between two commands. The way I want this delay to work … | |
I am new to java. when i try some code, i get the 'Caught ArrayIndexOutOfBoundsException: 0' message. i need help how to address the problem. the code was as follows. I am leaving out the class name (first line) [CODE]public static void main(String[] args){ try { double hours = Double.valueOf(args[0]).doubleValue(); … | |
This code does a nice job reading the members from my database and setting up a form with checkboxes for each member in one long single-column list. What I need to do is to write some sort of loop that sets out 3 or 4 columns and splits the names … | |
Hello, I got problem to write code excerpt in my article. [quote] CREATE TABLE IF NOT EXISTS 'articles' ( 'id' int(11) NOT NULL AUTO_INCREMENT, 'title' varchar(250) NOT NULL, 'body' text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM; [/quote] [quote] INSERT INTO 'articles' ('id', 'title', 'body') VALUES (1, 'Lorem', 'Lorem Ipsum … | |
I want to know how to make a Bot, regardless game bot or not, I want to know how to move the cursor and how to pinpoint it's destination, how to differentiate between right click and left click. I want to know all about Bot making. Any 1 could help … | |
Hi, I have C# .net application which reads data from the serial port and launches a new thread to process the data when all data has been read (end of data is determined by timing constraints). I create a new object where the thread will run, copy the data that … | |
I've setup a javascript window.open bit of script to print one div. Is it possible to style the div with css that gets printed, no matter what styling i put around the div, they disappear when i press the print button and it opens this new window with the div … | |
Hello everyone, i'm new in c++ and i found a problem when created a code. I want to create a code which read from file .txt and then count the number of each value of the attribute, as the text file below: the attribute is'bembi' and the value is '1,2,3'. … | |
Hi , I am very very new to VB and don't know how to proceed with coding this. I have a file in excel in the format below [U]Name[/U]....................[U]UID[/U]...................[U]Password[/U] Marie Lily...............myoune.................9eW2n+st Rita Jain..................rjain....................yE#eCA2a Peter Craig.............pcraig.....................Qutru4r? and I need to convert this data/excel sheet into the format below: dn: cn=myoune,cn=Users,ou=MyDomain,dc=com objectClass: … | |
Hey guys, new here. Decided to start learning Python and this community looks like a perfect place to learn with the help of others. A bit of a forum-related problem at the moment though, when the browser is loading "ad.amgdgt.com" it takes about 4 minutes to load each time I … | |
Hi When I run this program instead of getting the values I initialized with the constructor, I get -858993460. I guess it's wrapping around in some way. Anybody have an idea? Thanks for your help #include <iostream> using namespace std; class Employee { public: Employee(int Age, int Years, int Salary); … | |
Hello all :) Me and a friend of mine we are working in a project at the moment. We populate our database each one with his own data but now we need to merge our tables. The database has the same name in both machines, and also table name. I … | |
Hi all, im having a problem getting my head around "drawing" a Binary Search Tree and AVL Tree. Im studying computer science, and have an exam in 4 days so need help quite quick lol. Im looking over past exam papers and having trouble with this question: [QUOTE]Start with an … | |
Hi people, the title says it all: The user manual of my program is an HTML document, and I want the OS's default browser to open it directly once the user clics on help. The function that the help menu entry invokes is this: [CODE=python]os.popen("/usr/local/firefox/firefox ./html/index.html")[/CODE] Now this only works … | |
I'm supposed to ask the user to enter a number of marks, and to decide what each mark is. Then my program is supposed to find the min and max in the array, so far this is what my code looks like: [CODE]#include <stdio.h> void findMinAndMax(int arrayMarks[], int numOfMarks) { … | |
Hello, I have multiple problems in an application plotting online data. Below are my problems - 1. MSCharts flickers if my updation time is fast (around 1 sec), I have played around with Repaint, LockWindowUpdate and Visible methods, but no positive results. Is there a better method to stop flicker? … | |
Hello, I've been looking for this here but haven't been able to find an answer that fits my case: I have a tkinter GUI consisting in a button and a Text (a textbox). You write the whole text in the textbox, then press the button and it uses the get() … | |
I have a function in a Lua script, that will take a file and and will work on it. Part of the work it does is to empty the file completely before working with it. The easiest way I know of doing this is to open the file with [icode]io.open[/icode], … | |
Hi all, I am having a page where there is a drop down box for projects.Below that i had a list of users with check boxes. so wen i select a project in the drop down and assign some users to that project by checking on checkbox. so here is … | |
Hi, I'm using Borland C++Builder V5.0. I simply want to pass a variable between two C++ TThreads. I searched a lot on the Internet but can't find anything like that. Simply copying by calling another threads function or property is no option. The compiler thinks it's okay but when executing … | |
I want to optimize the following small integer program in speed. My g++ compiler version is 4.3.4 on 32 bit linux. Please suggest or comment the following ideas. Some ideas are: 1. use compile flag such as -O3 2. rewrite the bigger function with function object [CODE]#include <algorithm> #include <cstdlib> … | |
Hi How can I protect/lock a drive from deleting files and format it ? Is there a way to hook a drive? | |
HIII!!! i need to know how to make a random movement for a character?? [CODE]#include <iostream> #include <conio.h> #include <windows.h> using namespace std; char board[20][20]; void setBoard () { for (int j=0; j<20; j++) { board[0][j] = 219; board[19][j] = 219; } for (int i=0; i<20; i++) { board[i][0] = … | |
Hi I am trying to connect and get a WebResponse of a CONNECTED user. For that, I should first connect to the webSite, but I can figure out how. I already read like 20 pages about cookies and stuff and still cant understand this stuff. The site im trying to … | |
I'm having an annoying issue with this code. I get a segmentation fault because of the loop wrapped in comments. Any ideas? This is the goal of this program: First I wrote a simple c++ program and compiled a binary file for it. I then use readelf to dump the … | |
Hi everyone, can somebody guide me to produce very small delays for controlling a servo motor using PWM. I need to generate 3 different pulse widths of 1.2ms , 1.5ms and 1.8ms. I am using Keil compiler, and 8051 microcontroller. I am a good C coder, but dont understand much … | |
dear experts, please, how to use SQL query in excel 2007 and store the result of that query in the cell. let say I have a sheet with different information abut sales and I want to get the sum of the sales as per city let say where city is … | |
Hello Recently I've been started to get curious about mobile development, specially Geolocation applications, how do they work and stuff... Can anyone point me in the right direction? What should I study, any references and things like that... Specially the following: 1.- How to implement the imagery (like, can i … | |
Hello, I'm having a requirement to develop a GUI based JFrame which should have capabilities to add Multiple JPanel on an event occurrence[Ex. button click] and the JFrame should be scrollable. I tried a lot, but I failed. I also tried to add multiple Jpanel in JScrollpane that also failed. … | |
Hi Guys, What i am trying to do is , if suppose i have a word'horse' in a rich text box, i want to aplly image by cutting characters.To explai it little more, i want to be able to cut the word 'horse' in two parts 'hor' and 'se' and … |
The End.