199,114 Archived Topics
Remove Filter ![]() | |
Hi, I have a sitemap and have decided to create an automated sitemap. I just wanted to ask would the way i am going to do it be ok. I was going to create a table let say called `sitemap` have a column in the table called `url`. Basically i … | |
i made a registration script but i dont know how to make the whole website and all its directories protected please help. | |
Hello again! I have a form (Form1) with some textbox, call it textbox1. With a button event I open a second form and hide de Form1. In this Form2 I dont use the value, I just make other things.. then open a another form, Form3 here I want to use … | |
I need help i am tired of dealing with this program and trying to get it to work. All i am doing is reading each txt file i find in a direcory and finding certain strings in the text then counting how many i find in each file and then … | |
Hi All, I'm trying to make commandline mp3 player using [URL="http://www.inet.hr/~zcindori/libwmp3/index.html"]libwmp3[/URL]. I use codeblocks and have tried alot and I get error below. I have tried to include libwmp3.h, add libwmp3.a try changing compiler; but no success :( Please help me to get through. I use the code for mp3 … | |
Hi I have a site that lists a companies products (lots). It has a database table containing these records. I want to loop the records to show 2 accross and the rest down (2 records per row by unlimited rows). it is possible because i made a mistake on an … | |
I am learing programming for a bit more then 6 months, and recently someone told me my concept is not the best one, he proposed me that I rather split my code into business logic layer and data access layer. And now I would like to ask someone if he … | |
I have question about the listbox. My listbox is binding to a database, and I use SelectedValueChanged to determine which my record I chose, I also get a couple button to interact with the sorting but the problem is whenever I change the database, like update new sql query, it … | |
Hey, I'm applying to University to study Computer science and need your opinion on my personal statement: [I]From an early age I have always been extremely interested in computing. From playing games, doing School work and discovering the inner workings of computers and what else they could do. I remember … | |
Hello All, I need to make parallel processing with Java. I know there are threads but i need to examine a distributed-like system. I will implement the MST algorithim and with a distributed syncronizer I will merge those sepereted nodes with rounds to find best and minimum spanning tree. This … | |
I have a validation function and the this is the last thing it does. [code = var mytext=document.getElementById("sizip") if(check5(mytext,"Zip Code must be 5 digits.")==false) {mytext.focus();return false;} function check5(mytext,alerttxt){ var re5digit=/^\d{5}$/ //regular expression defining a 5 digit number if (mytext.value.search(re5digit)==-1) //if match failed alert(alerttxt);return false; ] It will validate ok, if … | |
Hi, I installed cygwin recently and wanted to do some network programming with it. Since I have never used unix sockets before, I'm reading Beej's Guide To Network Programming. I took this from section 5.1 and tried to compile it. I get a few errors that I can't figure out … | |
Hi all, I have a simple question as it appears. But am unable to get the solution. Question is -how do I get the access time of a file in unix. please advise on the command. Thanks | |
Hi! I'm new to programming and have difficulties in working out the following two examples: [IMG]http://www.pictureupload.de/originals/pictures/241109145734_Unbenannt.JPG[/IMG] hope someone can help me | |
I am new to C++ and I need some help getting this code started for this problem. I am asked to do this : Write a function template version of linearSearch, that can be used to search an array of elements of any type. Write the function prototype , the … | |
hi every one, i need your help how to upload and download any file type to/from sql DB (sql server 2005) using c# windows form application i need to upload and download image type and doc type or pdf type or any else type . i need these types to … | |
Hi to All. 1. I want a php script that can restrict a user from adding additional image to his account on my site, I the admin should be able to set the restricting for the user. I also want to be able to activate/deactivate this function in the admin … | |
I have a code that is running like this and calling an event. The event is writing some lines to a textfile. But after each loop, the event is writing one more line each time. It seems that the += is filling the left side up. Is there a way … | |
Hello all. I try to learn some Ajax, but find it some difficult. The task I'm trying to do, is to use Ajax to register a new user for my application. The problem is that the request don't seem to pass the POST-variables to the php-script on the server side, … | |
I can't access my old hosting account. I don't now my username. I now the domain and can i see PHP code on one page. | |
I want to use FileSystemWatcher to monitor directory containing log files, and parse them on changed. However, the bad person who wrote program creating logs, coded it so the log files are never actually closed. And though I can access them in FileShare.ReadWrite mode, the FileSystemWatcher actually never arises any … | |
I need the function to display a set of eyes, so if i call the function Eyes(3,4) a graphics window opens with exact dimesions for 4 coloumns and 2 rows of eyes... [code] from graphics import * def drawCircle(win, centre, radius, colour): circle = Circle(centre, radius) circle.setFill(colour) circle.setWidth(2) circle.draw(win) def … | |
[code=php] exec('java -version', $javaver); print_r($javaver); echo "<br />"; exec('java -jar start.jar', $output); print_r($output); echo "<br />"; exec('java -jar post.jar /home/content/j/a/n/jandtesting/html/solr/example/exampledocs/solr.xml /home/content/j/a/n/jandtesting/html/solr/example/exampledocs/monitor.xml', $output2); print_r($output2); [/code] I've never attempted anything with java before. I'm trying to get started on the solr tutorial -- a java based search engine based on Lucene. I … | |
[code] private void SubmitActionPerformed(java.awt.event.ActionEvent evt) { try { Statement s = con.createStatement(); Statement s1 = con.createStatement(); Statement s2 = con.createStatement(); Statement s3 = con.createStatement(); ResultSet rs = s.executeQuery("select MAX(Guest_ID) from Guests"); rs.next(); int maxGuestID = rs.getInt(1) + 1; //s1.execute("insert into Guests values(" + maxGuestID + ",'" + txtUserName.getText() + "',' … | |
Hi All, I need to display my automation results in pi chart. From database i will have test case passed count and failed count. Depending upon these two values i want to display percentage using pi chart. For passed area should be green and for failed percentage area should be … | |
Hi, I am new in Javascript. I want to add few lines for content, which is already present, using Javascript. HTML code : [CODE]<html> <head> <script type="text/javascript"> function test() { t = document.getElementById("p123"); w = t.width; h = t.height; </script> </head> <body onload="test();"> <p><img alt="Graphic" id="p123" src="image1.gif" /></p> <p>TEST</p> </body> … | |
alright, so i'm trying to import text from a file into an array so that I have the ability to edit data, find certain functions, etc. This is currently what my program looks like....(I haven't gotten very far) from scipy import * from numpy import * def Radiograph_data: try: file('c:/users/ross/desktop/radiograph_data.txt') … | |
Hello all, I am not a coder but I have a code problem you might say. I have found myself in quite a conundrum using the SetSuspendState. I want to be able to wake on event and I do not know how to toggle the SetSuspendState at all. By default … | |
Hi everyone, I'm new to this forum and it has helped me a lot with the project I am currently working on. Using VS2008 and created an MFC dialog based application. I just started learning C++ and am finding it difficult to solve this problem. What I'm trying to do … | |
Hi, I am kind of stuck on how to display numbers between an inputted number and a specifed number, for example 10 and 5, how would I go about doing this? can anyone help me please? | |
Hello, This is my first project using ASP.NET and I am very unfamiliar about it, basically I want to display records from a database in the user interface, I have created the user interface, and created a data sheet which has the table and queries listed, but how do I … | |
How to do it? I'm using *.dir in my filter and this does the job of getting OpenDialog to display only directories, but it seems I still have to select a file to select a directory. Is it possible to use the OpenDialog to select a directory? Using ExtratFilepath does … | |
Hi, I am trying to write a binary search. The main method randomly makes an array of 1 mil int's, and the binary search returns if an entered int is in the array, but I seem to be having trouble getting it to work, I've been working on it for … | |
Hi. I am implementing the Kuwahara Filter in c#. The code for this is given below. [CODE] unsafe { Bitmap bmps = (Bitmap)pictureBox1.Image; Bitmap bmpd = (Bitmap)pictureBox1.Image.Clone(); BitmapData bms = bmps.LockBits(new Rectangle(0, 0, bmps.Width, bmps.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); BitmapData bmd = bmpd.LockBits(new Rectangle(0, 0, bmpd.Width, bmpd.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); byte* b1 = … | |
hiiiii :) i am new here i hope to get enough help to finish my simple project. i am working on a simple program to show the union and intersection between 2 sets. i program it the intersection is working good but the union is not working!!! i am DIEING … | |
Hello everyone, I am working on a project that when a user select an item in the listbox data will display in the textboxes. I saw a thread named "Experiment with ListBox in C#", this thread does cover what I am trying to implement on my project. I copied and … | |
Hai all, I have the following problem to solve: The users of my application can specify an xpath like e.g. format-date(current-date(),'[D]/[M]/[Y]', 'en', (), ()) this xpath is caught in an xslt file as just being a string (the user could also have typed in a string and then I need … | |
Help please!!!! Is there anyone has a sample code on how to call the backup and restore of SLQ server using VB6. I already have it but, unfortunately the backend of my program is Ms access and I want it to use as SQL server. Any help is highly appreciated.... … | |
I am implementing an image processing related code in C#. It works almost fine, but I find a problem that I am anable to solve. When I run the project, I get the output perfectly. But when I minimize the screen and expand it, the originial image appears distorted. I … | |
i must be able to extract the results of this query and use it as another value for "Parent" in the succeeding "THE SAME QUERY". Right here, the value of parent in WHERE clause is "1". Now, I want to create the same query but the value of the parent … | |
I want to control the number of clicks in my button group which is inside DefaultTableModel of JTable. Like only one click for a certain Radiobutton. Suppose I have 3 radio buttons in a button group: 1) A 2) B 3) C If a user clicks A he can select … | |
Im trying to make 400 textlabels at runtime but i dont see them , Why not ? [CODE]Private orderArray(41, 10) As Label for x=1 to 40 For u = 1 To 10 orderArray(x, u) = New Label orderArray(x, u).BorderStyle = BorderStyle.Fixed3D orderArray(x, u).Text = "----klhjk--" orderArray(x, u).Height = 20 orderArray(x, … | |
Is this the right place to ask the following? I have 2 tables in two different MS Access DB's. Access allows the ability of inserting data from DBA.table1 into DBB.table1, using the format [dba].[table1].[dbb].[table1]. Here's my problem. Using a single SQL Statement I can't figure out the following. DBA.table1 has … | |
Hi all, Can anyone tell me HOw to make a batch file for creating a shortcut on desktop in HTML....? Well i made a application in HTML, and i put this application in CD, now i want that when user run that CD, So Cd will automatically create a shortcut … | |
Hey all, i have been using php for past one month only and now im using javascripts with php too... but my javascript functions have grown out of proportion ... I want to make a SEPARATE file for JAVASCRIPT just like we do it for EXTERNAL CSS... how can i … | |
I am using Visual Studio 2008 SP1, ASP.NET, and VB.NET. I am using a wizard, and in order to affect the controls inside it, I have to declare them in each method like so: [CODE] Dim txtbox1 As TextBox = wizard.ContentTemplateContainer.FindControl("textbox1") [/CODE] Which works fine, but sometimes I need to … | |
This was a past assignment (it was last week's assignment), but I couldn't complete it. Could anyone help me finish it? I'm new to the function calls. The professor said I didn't call them from main properly. Although I've already received a grade on this assignment, we now have a … | |
[CODE]#include <iostream> #include <iomanip> #include <cmath> using namespace std; //function prototype double calcPayment (double, double, int); int main() { //declare variables double carPrice = 0.0; double rebate = 0.0; double creditRate = 0.0; double dealerRate = 0.0; int term = 0; double creditPayment = 0.0; double dealerPayment = 0.0; char … | |
Hi all, I have seen code of the form: [code=php] if(file_exists("foo.php") include("foo.php"); else include("blah.php"); [/code] As far as I know, this is perfectly legal in php. What I was wondering was is it possible to do the following in in-line code in PHP? [code=php] if(file_exists("foo.php") // contains a specialised version … | |
Could anyone tell me why, in the following code, getline doesn't allow the user to enter any input? Thanks in advance. [CODE] #include <cstdlib> #include <iostream> #include <vector> #include <string> using namespace std; int main(int argc, char *argv[]) { char answer = 'n'; int selection; vector <string> strings; do { … |
The End.