199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for steven2

The website is running on a web hosting where we don't have access on htaccess file.The web server is Apache. I want to rewrite URL. For example: The original URL: [url]www.mydomainname.com/en/piecework/piecework.php?piecework_id=11[/url] Expected URL:piecework.mydomainname.com/en/11 How to do it?

Member Avatar for steven2
0
82
Member Avatar for BEBELINDO

Hi .. Provably I'm setting this up the wrong way in Netbeans.. I open a new projetc and use the default main...then open a new empty java file and type my code , when I run this it runs fine but it doesn't ask for input ! [code]import java.io.*; public …

Member Avatar for javaAddict
0
188
Member Avatar for mgern26

Hi i am having an issue using Math.pow its telling me that math.pow wants (double,double) and im giving it (double[] , double) is there away to use an exponent on an array package project2; public class project2 { public static void main(String[]args){ double x [] = { -2.0,-1.0,0,1.0,1.5,2.5,3.0,4.0,8.0,12.0,16.0,20.0,24.0}; double f=0 …

Member Avatar for javaAddict
0
65
Member Avatar for akssps011

The following code when compiled gives the error: "i[B]nvalid conversion from `void*' to `f*' "[/B] What is wrong with it ? [CODE] typedef struct a { int* value; struct a* p; int r; }f; f* m(int* value) { f* node = malloc(sizeof(f)); node->value = value; node->p = NULL; node->r = …

Member Avatar for akssps011
0
113
Member Avatar for cwarn23

I have been designing a security system to stop bots from spamming my forum. Basically, it will check if there is any isp name detected from the ip address then if there is no detected isp, the submitted post will not be made. I know to detect the ip address, …

Member Avatar for kvprajapati
0
2K
Member Avatar for cool2

hi i m doing a project on ftp server..i need some basic codes to start with the program..i ve got few codes but it has some package,enumeration all such stuff which is complex..so i need a simple progrm...plz help me in getting it......

Member Avatar for jwenting
0
78
Member Avatar for deepugtm

I'm doing my bachelor of engineering in computer. I do not know whether to post this thread here or not. Sorry for my poor English. I have the knowledge of C/C++. Now i have started learning Java. Some of my friends says that C# is better than Java., is it …

Member Avatar for jwenting
0
98
Member Avatar for niths

---Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\Project\login.php on line 72---- <html> <body> <form action="login.php" method="post"> <div> <table width="100%"> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> <tr> <td bgcolor="aqua"><h2>Login</h2></td> </tr></table> <table align="right" style="width:40%"> <br> <tr> <td>Username:</td> <td><input type="text" name="username"></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="password"></td> </tr> …

Member Avatar for as.bhanuprakash
0
326
Member Avatar for sam023

i need javascript for a textbox which allow only alphabet and first letter becomes capital on keyup..!! any help will be appriciated..!! thanks.!

Member Avatar for chandsir
0
134
Member Avatar for matt.clark.228

I am trying to develop an on screen keyboaard for a UMPC. I have everything built and for each button click i have code for my sendkeys, however, i have not a clue where to start when it comes to focusing the application. I need to know how to after …

Member Avatar for Hollandtech
0
740
Member Avatar for ALOK.53

[CODE]using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Web.Security; using System.Data.SqlClient; using System.Configuration; using System.Security; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { txtUserName.Focus(); } private void InitializeComponent() { this.cmdSubmit.Click += …

Member Avatar for kvprajapati
0
120
Member Avatar for sirko

Hi! Does anybody know how to write a Pascal app that would remove blank lines from a text file. function RemoveBlankLines(OldFile: string): string; var fi,fo: Text; s,NewFile: string; n: integer; begin result:=EmptyStr; if FileExists(OldFile) then begin //rename old file .bak, n:=Length(OldFile); while (n>1) and (OldFile[n]<>'.') do Dec(n); n:=Length(OldFile)-n; NewFile:=Copy(OldFile,1,Length(OldFile)-n)+'bak'; RenameFile(OldFile,NewFile); …

Member Avatar for FlamingClaw
0
266
Member Avatar for ubi_ct83

i have this code: [code] int main(int argc, char* argv[]) { remove(debug_file); count=0;//count d number of seeding for (int i = 1; i < argc; i++) { /* Check for a switch (leading "-") */ if (argv[i][0] == '-') { /* Use the next character to decide what to do. …

Member Avatar for ubi_ct83
0
121
Member Avatar for student02

Hi guys.. Im still working on my project, it is a payment and enrollment system. Ive been thinking what to do with the Student ID since it requires a format like xx-xxxx, its possible that ill make two fields right? i mean the first xx on xx-xxxx to make it …

Member Avatar for cid777
0
294
Member Avatar for abdulraqeeb33

Hi, I have few weblogs, example below 65.96.112.177 - - [27/Jan/2007:00:02:10 -0500] "GET /~jking/images/ralph.jpg HTTP/1.1" 200 66196 65.214.44.44 - - [27/Jan/2007:00:02:27 -0500] "GET /~jkabara/Research.htm HTTP/1.0" 200 4696 207.46.98.52 - - [27/Jan/2007:00:02:29 -0500] "GET /~mweiss/new/background.htm HTTP/1.0" 200 3905 207.46.98.52 - - [27/Jan/2007:00:02:35 -0500] "GET /%7Epaws/project_pacer.htm HTTP/1.0" 200 15645 207.46.98.52 - - …

Member Avatar for abdulraqeeb33
0
89
Member Avatar for dondajr

Hi guys o/ ! I'm trying to make a program that write in text file some datas. Then, i wrote a header that have all functions I need to write in this file. thas is my header: [CODE] #ifndef _SNAPSHOT_H #define _SNAPSHOT_H #define LAST_PRICE 0; #define BEST_ASK 1; #define BEST_BID …

Member Avatar for jephthah
0
152
Member Avatar for SoulMazer

Hi, so I've been programming with Python (2.x) for a while now, and I was wondering about what people thought of 3.x. From just a few quick searches, some people recommend that people get used to it quickly as it is the future, and others say to just stay with …

Member Avatar for SoulMazer
0
159
Member Avatar for mani_singh

hello all, i am trying to make a program using nested for loops that outputs a triangle made of *. so far i have part of the triangle, but am having diffuculty finishing it. my code so far: [CODE] #include<iostream> #include<conio.h> using namespace std void main() { int n = …

Member Avatar for Galf
0
115
Member Avatar for PRINCE01

//am having errors on this portion of my code // am require to implement Icomparable interface with my rational class[code]// public int CompareTo(Rational opnd1,Rational opnd2 ) { if (Rational opnd1 < Rational opnd2) return -1; else (Rational opnd1 == Rational opnd2) return 0; else return 1;[/code]

Member Avatar for apegram
0
123
Member Avatar for Phil++

Hey, I'm creating a usersystem that has a profile system. I'm stuck on a problem. I want the profile to be viewed by a url like: [url]www.mysite.com/member/phillip/[/url] So every time someone registers it automatically creates this folder. The problem that I'm having is that I need to place an 'index.php' …

Member Avatar for OS_dev
0
135
Member Avatar for jxmst32

I am currently writing a program which will perform binary to decimal, decimal to binary, hexadecimal to decimal, decimal to hexadecimal conversions, 1's compliment, 2's compliment, and show the list of boolean algebra rules. I have created the JFrame and the JButtons to create the GUI however, I cannot figure …

Member Avatar for BestJewSinceJC
0
380
Member Avatar for smeghead007

My problem is that when i run the program i ask the user to select a month from a menu then input a year. I then calulate the first day and janaury for that year. Then i have to find the first day of the month the user selected but …

Member Avatar for smeghead007
0
142
Member Avatar for pythonNerd159

Does anyone know the code to click a button widget and get the value of that button to show up on an entry screen. I'll show you my code. [CODE]class Application(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.grid() self.createEdit() self.createView() self.createHelp() self.createQuit() self.createOnOff() self.createDelete() self.createClear() self.createSeven() self.createEight() self.createNine() self.createDivide() self.createFour() self.createFive() …

Member Avatar for pythonNerd159
0
129
Member Avatar for Bubbleboy

I wrote a code that i want to fade a <div> tag with. Here's the <div> tag. [CODE]<div id="about" onmouseover="fadein('about');"><li><a href="">About</a> <ul class="navbar" id="aboutoptions"> <li><a href="aboutus.html">Us</a></li> <li><a href="aboutproj.html">Projects</a></li> </ul> </li></div>[/CODE] Here's my java code. [CODE]function fadein(objectID){ object = document.getElementById(objectID); object.style.opacity = '0'; animatefadein(); function animatefadein(){ if(object.style.opacity < 1){ var current …

Member Avatar for hashinclude
0
173
Member Avatar for ashish81sharma

Hi, I have a weired problem. I developed a multithreaded WinForm application using VB.Net, and SQL Server 2008. The application works perfectly fine if I am using Visual Studio IDE to run the same. But, if I run the exe file created by VS the application hangs in case I …

Member Avatar for kvprajapati
0
428
Member Avatar for nateuni

Hi, I transferred Uni, and got an advanced standing for some prior study, but the current unit I am enrolled in builds on an advanced understanding of ADTs (and link lists etc). Problem is that - I have not previously learned this information. My unit text - Algorithms in C …

Member Avatar for Etherwind
0
98
Member Avatar for sjn21682

hi everyone, im having a hard time with my loop, what i want to do is to print f1, f2, f2,f2... till it finishes to read, then f1, f2, f2... , whats happening to my output is f1,f2, f2..., then f1, f1 till end, i want to ask, how will …

Member Avatar for kvprajapati
0
212
Member Avatar for Jeff_5_7

Is there a way to find the length of char i enter from the keyboard? I am entering single digit numbers 0-9 as chars. So i cant enter over 20 chars but i need to find the size of what i enter. Like if i input 123456 i need to …

Member Avatar for WaltP
0
79
Member Avatar for timtalk

I am still pretty new to Visual basic, but have been working to write a program for Excel that will interact with a Javascript based website and extract data from this website. The site is not mine but I have approval to extract the data I need. The problem that …

Member Avatar for timtalk
0
405
Member Avatar for Kombat

Ok so for my program it prompts the user to enter 32 bits each separated by a space. But while debugging I would like to be able to load a txt file or something that contains the 32 bits instead of having to enter it each time I test it. …

Member Avatar for WaltP
0
81
Member Avatar for neodregan

I want to try to understand the method of using POSIX threads to interact with a sorting algorithm such as the odd-even transposition sort. I have written my program to do a odd-even transposition sort without threads and this is my current result: ./sort data File opened successfully. The numbers …

Member Avatar for Banfa
0
175
Member Avatar for Encrypted

I'm trying to write a program for class and I can't get my fractional exponent to work. I've tried using 2/3 2.0/3.0 and I've tried entering 2/3 into a separate variable, but nothing seems to work. I don't get any errors while building 2/3 but the logic does not come …

Member Avatar for MosaicFuneral
0
392
Member Avatar for Syphilis

What's Up? OK, So this has been driving me crazy over the last few weeks, All I need to do is edit a file so that it runs without showing any windows (I.E Runs in background) The window is created by means of Delphi, (So WS_EX_TOOLWINDOW Won't work) The only …

Member Avatar for MosaicFuneral
0
160
Member Avatar for gms_019

Good day! hi! I'm Glenn! I'm working a Project on System Analysis and Design. I'm using Visual Basis on my project entitled Payment System. Can you help me on how to change the Page setup from portrait to landscape on the Data Report? Thanks in Advance........... ;-)

Member Avatar for gms_019
0
87
Member Avatar for litchi

Hi :) I was hoping someone could point me in the right direction to create a grid of clickable objects/images/shapes. My problem is this, I have to create a grid of 100+ characters that, when you click on one, appends a JTextArea with a specific, different, character. The only idea …

Member Avatar for litchi
0
1K
Member Avatar for bops

Hey all, I was just wondering, is it safe to do something like this? [code] char *msg; sprintf(msg,"Forename: %s", fname); //where fname has been previously defined as char fname[ ] = "Jonathon"; [/code] My main query is around the allocation of the memory for msg. I know there are memory …

Member Avatar for Raptor007
0
1K
Member Avatar for black_berry

Hello, I have been trying to turn this pesudo code into java code but i have been unsuccessfull. I need help doing this and any help would be appriciated 1.Initialise memory_block(0) = 99999 2.Computer initial_memory_waste = memory_block(0) – job_size 3.Inialise subscript = 0 4.Set counter to 1 5.Do while counter …

Member Avatar for black_berry
0
105
Member Avatar for emma.parsons

I am creating a program which takes in fields for events, saves them to file and then loads & displays them on separate lines. The 'date' field in my program should be in the format yyyy/mm/dd when it is entered. I have managed to implement this however my program still …

Member Avatar for snippsat
0
505
Member Avatar for KirkPatrick

I have a question on how to get the index of a selected object. I'll briefly explain my project to help get a better understand of what I'm doing. I have created a simple object (named InfoObject) which is made up of 2 jTextfields and 1 jComboBox. I have added …

Member Avatar for Ezzaral
0
483
Member Avatar for Icebone1000

Hi, Im trying to figure out(again) the best(fastest) way to handle file management..Im using Win32 api, so I always try to use the api routines(instead of the c++ ones), dont know if this is better, but I just feel it is better in this way.. ( On "windows internals" book, …

Member Avatar for Ancient Dragon
0
257
Member Avatar for ParadoxKing

Hello, I am writing a program that does matrix Multiplication using 2-dimensional arrays and a Matrix Class. The program compiles without any errors but when I get to the part of the program where it actually multiplies the 2 matrices it throws an exception. I've looked through the code several …

Member Avatar for Salem
0
413
Member Avatar for lrolsto1

Stupid question, I'm sure: For an assignment I need to create a program that uses methods and constructors in several other classes... the classes were in a file that I unpacked and put in the same directory as the one I'm writing is in. What do I need to do …

Member Avatar for Ezzaral
0
95
Member Avatar for Katana24

Considering no one seems to be-able to answer my other thread I'll try simplifying this one. I have created GUI frame which contains a menubar at the top. I have several methods as well as a method which paints 5 circles onto the frame. When I call that method, by …

Member Avatar for BestJewSinceJC
0
80
Member Avatar for Dizzzy

Here is my code to write the arraylist to .dat file, And im not sure if its working but it writes to the file and i can see all the random characters so it is writing something but i keep getting io errors when i try to use the method. …

Member Avatar for BestJewSinceJC
0
156
Member Avatar for underdoeg

Hi, I know this is an old topic, but I still haven't found a solution I completely understood. So I'll just post my case. I'm trying to implement easyhttpd, a server class into an existing ogre class. This httpd server works with a callback function that I need to provide …

Member Avatar for strmstn
0
199
Member Avatar for emilo35

Okay, this might become a monstous post, and I apologize for that. I recently switched from programming Java to C++ like a week ago, and can't seem to get all the pointers right it seems. Maybe all code provided in this post might seem a little overkill for the size …

Member Avatar for emilo35
0
186
Member Avatar for larrywjr

Hi, I am new to Python. I have written a routine and am trying to compile the code for distribution. I went to [URL="http://sourceforge.net/projects/py2exe/files/"]http://sourceforge.net/projects/py2exe/files/[/URL] and downloaded the file py2exe-0.6.9.win32-py2.6.exe. I am running Python 2.6 on a Win-XP Pro OS. I assume this file is a self-extracting exe. The trouble is …

Member Avatar for jcao219
0
245
Member Avatar for blackmagic01021

Hi, I am trying to use zlib library to use it in a string compression application. Look at the piece of code -- [CODE]uLongf DestBuffSize=0; compress2((Bytef*)CompDataBuff, (uLongf*)&DestBuffSize,(const Bytef*)d1, (uLongf)length, Z_BEST_COMPRESSION); [/CODE] In this code the variable DestBuffSize will contain the length of the compressed buffer. But the variable DestBuffSize is …

Member Avatar for Salem
0
718
Member Avatar for mihirpatel83

I have top menu being generated using sitemap. HR , Production , Sales Now i want to generate a vertical Menubar/treeview when i click on respective item. For eg : if i click on production, i need menu/tree view like below 1.0 - Inventory 1.1 - Add Stock 1.2 - …

Member Avatar for _V_
0
225
Member Avatar for Mathhax0r

Is it possible to have a function run at the beginning of every function of a class without explicitly writing it? I'm going to have a class with 20 or so methods, and though I can just copy and paste, I was wondering if there was an easier way to …

Member Avatar for jcao219
0
11K

The End.