199,114 Archived Topics
Remove Filter ![]() | |
Hey guys, back again I be. Having a new problem with my dates. I want to sort by date and that's fine but in order to sort correctly by date i would have to reverse the date and ignore the slashes or it wont recognise that 2006 is before 2007 … | |
Hi. I don't know anything about python but I need to use a script which I have found on the internet. I don't know where to start. I have installed python on my windows xp desktop and I have also downloaded and put in the Lib folder the file BeautifulSoup.py … | |
Hello and good evening everyone :) I've written up a program that counts the number of times each number on a die (dice) is rolled, with the percent. Only thing is, I'm not quite sure how to output the percent. Everything else seems to be working except that part... What … | |
I need help to write a stored procedure, or pseudo code, that looks into a table named numbers_ranges and retrieves the next unused value. The table currently has the following data: Columns are: id, start_range (22), end_range (22), status (1), date_created (datetime), date_updated (datetime) 1 8057777777450780000000 8057777777450780000010 N 2007-11-29 16:28:46.793 … | |
How frustrating... I get to the end of something that looks as if it should go through the compiler ok, but it doesn't. I'm trying to make a sort-of stop watch that counts in nanoseconds. What did I do wrong, or what am I missing now? [code] public class Counter … | |
Hello there guys, I've got a strange problem... I'm using NetBeans IDE v5.5 and when I run my application inside netbeans by clicking 'Run main project' it runs and everything works correctly. Now when I go to the dist folder and double click it... (the Jar file is assicated with … | |
Hello, I'm following this tutorial [url]http://fox-toolkit.net/cgi-bin/wiki.pl?Tutorial__Simple_Window[/url] To learn how to make gui programs using the fox toolkit, but I can't get it to compile. This is what I have in main.cpp [code] #include <fx.h> #include "mywindow.h" FXDEFMAP(MyWindow) MyWindowMap[]={0 }; FXIMPLEMENT(MyWindow,FXMainWindow,MyWindowMap,ARRAYNUMBER(MyWindowMap)); int main(int argc,char ** argv) { FXApp application("Tutorial #1","FOX Tutorials"); … | |
I need to input a space, a tab, and a comma from keyboard and then judge if the input is a space, a tab, or a comma. I used the following code but it doesn't work. bool ST, COMMA; AnsiString HH; HH = Edit1->Text; strcpy(CR, HH.c_str()); if (CR == " … | |
I believe what I have written at the moment is a singly linked list, and I can't figure out how to delete whatever node the user specifies, I've toyed around with it but I'm stumped. Here's my specification file: [code] #include<string> using namespace std; class Node { Node *prev; Node … | |
Hello, I am writing a VERY simple version of Pacman. In this "game" the user can click on the screen to select where the Pacman will start and any other clicks will add dots to the screen. The pacman will then be controlled by the arrows keys. The pacman should … | |
Could you help me optimize the following fragment of java code please? For (i=0; i<=9999; i=i+1) { for(j=0;j<=9999;j=j+1) { if (a[i,j]>0 && b[i]>0) { a[i,j]=a[i,j]*2 + b[i]; } } } Thankyou also can i just ask, could you tell me the purpose and give short examples of the input/output of … | |
Hi, I'm trying to reproduce a Production Exception. In order to reproduce it I want to limit the size of my log file. Is there a way so that I can limit the size of my log i.e., my log should not grow beyond a limit. Is there a java … | |
If someone could tell me if there is a function or method, or some way of finding the directory that the VB project loads to when it is installed on other computers that would be great. What I want it for is so that I can save and restore a … | |
I don't really know how to explain this easily. I guess I will layout the project I am trying to do, and the problem I am having with it, and maybe someone could explain it better to me. I am trying to build an online food journal for a fitness/nutrition … | |
hi everyone, I have some problem about simplifying my php code. At first I want to load my form and then load my information from database if their are any data exists according to the user name. Actually the problem is,I want to load the js while the information is … | |
Dear all, Is it ever possible to write a programme in C++ which enables me to: 1) Read the data in spreadsheet of MS-Excel 2) generate another Excel file as output ? Also, are there any standard library could do the job? One of my friend said using Visual Basic … | |
So I have 4 different algorithms to sort numbers that me and my best friends wrote to see who's worked the best. They are not the greatest ..since we aren't the greatest programmers..haha but we thought it'd be fun. I thought I'd let you guys take a look at them … | |
Hey everyone, I'm attempting to monitor a directory, including subdirectories, for changes and update a database. The database part I can do, I just cant figure out how to monitor the directory for changes.. any suggestions? Is there an easy way to do it like function.getChanges(directory)?? Microsoft seems to make … | |
Im kinda new to programming, so my question is a simple one. I have came across term of data structures, and have been toying with some basic exsamples of them. While [CODE]int *pointer [10]; struct cell{ int death; }; int main () { cell test; cell * pointer[0]; pointer[0] = … | |
Hi everyone I'm looking for a script that uploads and resizes images onto a server. I've been tormenting myself with the one from [url]http://blazonry.com/scripting/upload-size.php[/url] The reason I think that it's not working is because the server I'm working on doesn't have the libjpeg and libgr-progs library packages. And I'm not … | |
This may be a NET bug, but maybe I'm missing something. I've been trying to trap a certain kind of error when using a DataGridView. The following describes the steps to generate the error. I used a typed dataset to make the example quick, but the same thing happens if … | |
JavaScript is not working on Internet Explorer 7. I typed a simple html program but the JavaScript is not running. Here is a simple program <html> <head> <script> function hello() { alert("Hello"); } </script> </head> <body onload="hello()"> </body> </html> If you have a solution please reply | |
In the retailitem.cpp I need to beable to increment x,y and z. So that is displays the next item. Heres what the code should output [code] Descriptio Units On Hand Unit Price ($) Item #1 Jacket 12 59.95 Item #2 Jeans 40 34.95 Item #3 Shirt 20 24.95 [/code] Heres … | |
hi I have a practical exam after 1 hour and i dont know how can i write a 3D rotate function 3D scale 3D translate i need it in general form our teacher has a weak knowledge about his subject plz anyone can help me | |
Hi to all, When i was reading the Win32 turtorial. A message is an integer value. If you look up in your header files (which is good and common practice when investigating the workings of API's) you can find things like: [code=Dev-C++] #define WM_INITDIALOG 0x0110 #define WM_COMMAND 0x0111 #define WM_LBUTTONDOWN … | |
I want to create a dynamic link to a file...basically the info is displayed in a .php template read in from MySQL db. I want to also have a link to the saved text file. Here is some of what I have: [code] $date=$_POST[Date_Entered]; $shift=$_POST[shift]; $shift_table=$shift."_shift_duties"; $fileDir="TOP".$shift."Shiftlog" $fileID=.$date."_".$shift."shift.rtf"; [/code] and … | |
hi all. I have a question need your all help. 1.what is the problem for my delete function,I can't delete the list that i select(but no error in that case) 2.how to build the search function with that prototype? [code=cplusplus] #include <iostream> #include <string> #include <cstdlib> using namespace std; struct … | |
Dear All, I have two files, usr_profile.php and edit_profile.php. The former is for displaying the user's info viz 'Name', 'Email' etc while the latter is for editing the info available in the former. After editing the info in the edit_profile.php and submitting it, it gets redirected to the usr_profile.php. The … | |
Hi all, I'm currently finally starting mysql and am have difficulty getting it up online. what i've done so far is correct but only for this error: Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to MySQL server on 'www.dteeducation.ie' (61) in /usr/www/users/adv123site/home/youruser/public_html//settings/database.php on line 10 Cannot connect to database, check if username, … | |
i had an error in the visual studio 2005 that for no reason, the menu bar is no longer there !!!! i cannt see the "File", "Edit", ....... menus even the help menu is not there so i contacted microsoft by e-mail, support, and telephone..... the didnt reply, they just … | |
Hi all, i need to do like ,when i place the mouse pointer on a textbox(i think its onmouseover event.not sure) it should display or popup a small message which provides information about the format of values need to be entered in that textbox.please provide me like how can i … | |
Hi there guys & gals, this is my first post here will try to be as accurate as possible. The problem i have seems to me to be quite basic but i cannot for the life of me work out how i can do it, am hoping you good folks … | |
hey, I am looking for a means to END my application in VB6 based upon my computers clock i know the function in VB.NET [CODE]If My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Wednesday Then End End If [/CODE] won't work in VB 6 tho. get a run time error "404 object required" any help at … | |
can you please help me how to make this program?? please... For VRC (Should all be contained in functions/methods/class) - Inputs > Message to be transmitted / Received Message should be captured in an Array (limited to letters, numbers and punctuations, as to: period, comma, exclamation point and question mark) … | |
Hi, I want to know how can we connect to the Microsoft ODBC Drivers to the VB. | |
to this servlet i have to get values of to,from address and filename from a jsp though all jar files are put in class path the servlet is not recognized public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try{ String to = request.getParameter("to"); String from = request.getParameter("from"); String … | |
Hi GridView Experts! I have problems with GridView when adding a column using TemplateField. I fill GridView1 from a stored procedure. It has a Select statement and returns 14 columns, `AutoGenerateColumns="True"`. When I add two columns manually to be able to start drag and drop, the drag and drop works … | |
Hi, I am trying to create a 'simple' admin page where certain (authorized) people can update data in the database or add new info to it. The issue i've run into is after i created the form and have all the fields how do i tell which one(s) the user … | |
:The problem: enum:[CODE] enum Choice { A, B, C }[/CODE] I would like to pass it to function like that:[CODE] void function(Choice.A | Choice.B) { //how do I determine what was passed here?? //how to handle two or more values?? }[/CODE] Thanks in adv | |
I have stored time in an access database with a format of MediumTime, which displays in access as I want it, such as 7:30 AM. However, when I retrieve the time in my c# program, it also has a date (which is the wrong date anyway since I didn't enter … | |
Hi, i merged two files into chem.out but i need to figure out how I would arrange them by atomic number and how i can eliminate the duplicates. Should I use structures? here is the program i wrote so far, [code=c] #include<stdio.h> #include<math.h> #include<string.h> void merge_chem(FILE * inp1, FILE* inp2, … | |
I have an spreadsheet type application I am creating, but I ran into some problems with polymorphism. When all of the expressions need to be calculated, I compile it in CodeDom so I can evaluate the expressions. The whole spreadsheet is actually an object with rows and cells, so I … | |
dear all, i want to build applet viewing video from an ip camera which gives video type MPEG-4. how can i build that application?which api i need to work with? | |
Hi All, I've been look for the solution for this problem for days.. any help is very much appreciated. My project invovles a small task that requires to generate three concurrent threads, it looks like: [CODE=C#]Main() { ........ //Start three threads; Start Thread1; Start Thread2; Start Thread3; //Wait for three … | |
hi i have two different table,i want to select the name and id(primary key) from the first table..based on the id..i want to select the rest of the data in the second table... the below query is showing error,plz do tell me the bug. $query="select id,name from table1 where id='$id' … | |
I need script for pinging the machines in subnet make list of alive hosts with there OS version redirected in a file. I am from System admin field and not aware of scripting and also beginner of UNIX. Thanks in advance. | |
I have tried a lot of things. The lines of code; $file_name1=$_FILES["image"]["name"]; $ext = strtolower(end(explode('.', $file_name1))); if($ext!="jpg"&&$ext!="jpeg"&&$ext!="png"&&$ext!="tif"&&$ext!="gif") The middle line being the line that is in "error" gets this error when trying to upload a picture, Fatal error: Only variables can be passed by reference $ext = strtolower(end(explode('.', $file_name1))); My … | |
[code=c] #include<stdio.h> #include<string.h> /*#include<stack.h>*/ #define MAX 10000 #define TRUE 1 /*typedef struct node node struct node { int */ [COLOR="red"]int graph[MAX][MAX]; /* = { { 0, 1 },/* 0 1 0 */ /*{ 1, 1 }};2 0 0; */[/COLOR]int nodes; int fnodes; int counter2 = 0; int counter = 0;//Start … | |
I'm trying to get my program to read from a text file, but the only way I'm able to get it accurate at the moment is to set the first loop to the number of lines of data that I have. I'm looking for a way to set it so … | |
Hi guys. Im a student and i have a problem in finding the right procedure to solve my problem. Giving a set of numbers that will find their combination for a given value. For example 1st digit will be the size and the 2nd digit will be the qty.: Size … |
The End.