199,114 Archived Topics
Remove Filter ![]() | |
I have a twill script that I am trying to use to get the html code from a web page and output to a text file. The problem I have is that all the code does not show up in my text file. The actual parts I need are left … | |
I have a form on page1.php. The form action is "page1.php". After some sanitation and validation takes place and there are no errors, when a user clicks the submit button, I need the page be redirected and a variable passed to the destination page. The redirection is done with this … | |
Hi, I have a list of a few thousand names. I actually have last name, first name, phone number, etc and more info. I'm going to make a class to contain the data. so I'll have like a people object with for example a last name field. I'm going to … | |
Please, Tell me that how to make software or games using c, c++ | |
Hi everyone, I am new to php and currently i am trying to modify a word / text in a PDF file. For example, i would like to replace a specific word / text [knowledge] in a PDF file with friends. e.g. I have a wide range of [Knowlege]. I … | |
Does anyone know how to find and trace website visitor's location(Country/city) using PHP/sql? Thanks in advance. | |
what would be a good way to go about summing the digits of an int for example say i put in 3456 the sum of thos would be 18 but i have no idea how to get the numbers to sum from a single integer | |
Does anyone know how to do file input and output with spreadsheets? Specifically I'm going to be using the open office spreadsheet. thanks | |
I get this error when i write to my C drive using an ObjectOutputStream [CODE] List<String> strings = new ArrayList<String>(); strings.add("test1"); strings.add("test2"); strings.add("test3"); IO.IO.writeListToFile("C:\\Users\\coconnor\\Documents\\Java\\ToolKit\\", strings); [/CODE] [CODE] public static void writeListToFile(String location, List<?> list) { ObjectOutputStream p = null; File f = new File(location); try { p = new ObjectOutputStream(new … | |
My problem is very easy. I have written the following PHP code to generate the arrays of textareas: for ($i=0; $i<length; $i++) { echo '<textarea type="text" name="username'. $i.'" cols="60" rows="4" onkeydown="check_username(this.form.username'. $i. '.value)">'. $sentences_data [$i]. '</textarea> <span id="username_label"></span><br/>'; } The Java function is function check_username(username) { if (ajax) { ajax.open('get','testuser.php?username=' … | |
ok so i have to make a flow chart for the follwing data given: The summerville telephone companycahrges 10 cents per minute for all calls outside the customers area code that last over 20 mins. All the other calls are 13 cents per minute. DEsign a flowcahrt for the following: … | |
Hello Friends, I am an absolutely beginner in the world of computer programming. I started my voyage in this world yesterday by starting learning Python. I am reading an e-book on python [URL="http://openbookproject.net/thinkcs/python/english2e/"]here[/URL]. That book has been written with examples from Linux platform. So, I felt this problem while going … | |
Hey Guys, So I'm making a webpage that has a form that is based on the selected section of the website... And I got a few questions/issues. [LIST] [*]Is it normal that I have to make a different name for a value from a section that needs a javascript (line … | |
I am not familiar with linked list, can any one help? | |
I'm creating a Windows app and have a form where the user can fill out his/her name and email address, a subject line, and a message, then clicking a Send button to send an email to me about any question or issues they may be experiencing using my app. I'm … | |
Hello, I'm developping a new joomla component, so i want to store pictures in database table in field type : blob. i'm wondery how to proceed to do this. I'm using this to get file from the form : $file = JRequest::getVar( 'img2', null, 'files', 'array' ); jimport('joomla.filesystem.file'); $filename = … | |
Hi... I have one problem regarding how to check whether the record already have or not then do insert or update...I'm using firebird database....i want to pull all record from one table to other database . Here my coding but i'm get stuck to do insert or update...hope anyone can … | |
Hello, I am having trouble writing to a file from an applet (in a local directory) without totally demolishing the file and erasing it's contents (okay, maybe I am exaggerating on the [I]destroying[/I] part :P, but it does erase it!). Also, I just can't make the applet [I]write[/I] to the … | |
Hi guys, I'm doing a dissertation on the skills necessary to do a CS degree, within which I'm going to design a website that assesses prospective CS students and their ability to cope with the harder more technical and analytical skills. I'm basically just looking for some experienced perspectives, brainstorming … | |
How do i load a text file to a windows clr textbox? and how do i save the lines of the textbox to a file? | |
Hello Guys, I am trying to read lines from .xml file using a C program. Basically what program does is read the date, and if the current system date is in the range of the date range given, it fetches some data from the next lines in the date. However,my … | |
Hi, I am trying to write a program that will read an integer as a string and it will add 1 to this integer. For example if it read 234, it will return 235. My attempt is this: [CODE] #include <fstream> #include <string> using namespace std; void addone(string& num){ int … ![]() | |
Hello, Please see the code below. it combines 2 strings into one. [code=c] #include<stdio.h> #include <string.h> int main() { char a[10], b[10], *p = NULL, *combine(char *s, char *t); strcpy(a, "horse"); strcpy(b, "fly"); p = combine(a,b); printf("%s\n",a); printf("%s\n",b); printf("%s",p); } char *combine(char *s, char *t) { int x,y; char r[50]; … | |
Hello, i want to populate a treeview with the directorys from my pc, how i do that? | |
Hello. I'm trying to find out how to make it so only certain applications I have given authorisation to can use a C DLL I have created so that when I release it with a .Net application it cannot be used by others. I found out how to check what … | |
<?php include 'session.inc'; check_login(); $con=mysql_connect("localhost","root",""); if(!$con) die('Could not connect:' .mysql_error()); mysql_select_db("vms", $con); if($_POST[product]!='NONE') { $product=$_POST[product]; } else { $product='NONE'; } $expire=time()+60*60; setcookie("product",$product,$expire); if(product!='NONE') { // how many rows to show per page $rowsPerPage = 20; // by default we show first page $pageNum = 1; // if $_POST['page'] defined, use … | |
Hi guys, I'm trying to read a file which contains text in arabic. The file text is aligned from right to left. But when I read it, the output is from left to right. Is there any way to align it from right to left? I'm trying to display the … | |
hi! I add code example. when I run that, I get exceptions: [CODE] /******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this … | |
I can't seem to find the correct way to add an alias in a select statement. Is there a way to do this using an embedded Apache derby database? The usual way will not work. ex: [icode] SELECT uid AS User,fName AS First,lName AS Last FROM table[/icode] | |
Hello, I have come across a compile error, which should have a very simple solution, but I cannot figure it out. I am fairly new to programming and am still getting used to OOP. I am trying to call a function from another class. The class seems to work but … | |
First off, sorry if this is the wrong section, but sense I'm working with graphics, I thought it would be more appropriate for the game dev topic. Okay, whenever I start debugging from VC++, I segfault. But when I run my program outside of VC++, it runs perfectly fine. If … | |
In my desktop application am using following .net functions [CODE][COLOR="Green"]GC.Collect(); GC.WaitForPendingFinalizers();[/COLOR][/CODE] [COLOR="Red"]I just want to know that, is there possibility that WaitForPendingFinalizers() will wait for indifinite time ? If so ,what is the way to get out of it so that my application can proceed further.[/COLOR][QUOTE][/QUOTE] | |
Hi, How can I send keystrokes(like Ctrl + V) to a minimised Notepad ? To send some text I use something like this: [CODE] HWND ahwnd; char text[100] = "it works !"; ahwnd = FindWindow("Notepad",NULL) SendMessage(FindWindowEx(ahwnd, NULL, "Edit", NULL), WM_SETTEXT, 0, (LPARAM)text); [/CODE] Give me an example please. | |
Hello: I have created a Desktop that interacts with a embedded db. I also have crated a flash program that opens and runs itself in any web browser. My inquiring is to find out if I can create a button to launch this flash program from my Java app? Also … | |
Can Someone Tell Me how to make a auto posting form . I need theat form for automatic pots ip on sql db, Please Help Thx. | |
I am facing some problems trying to understand the difference in handling strings when they are declared as a char array and when they are declared with a pointer pointing to them. In the following code snippets, I have a few doubts. 1.While code 1 works correctly, code 2 crashes … | |
What's Up? OK, So I'm designing a nice new shiny UI for my Python script, Now when one of my buttons gets clicked I want it to perform some of my own defined tasks, So I need to define my own 'Slot' if I'm correct? But I can't figure out … | |
hi all is there any code converter from vb6.0 to vb.net.if it is Plz tell the exact | |
[CODE]import sqlite3 def find_details(id2find): db = sqlite3.connect("surfersDB.sdb") # grap surfer data from database db.row_factory = sqlite3.Row cursor = db.cursor() cursor.execute("select * from surfers") rows = cursor.fetchall()[/CODE] In the code snippet above from "Head First Programming", the syntax for the database code is poorly explained. Is row_factory a call, method, or … | |
My project is e learning project. I've a "choose the correct answer" module. When the click the "begin test" button it should fetch the questions and options from database and display it. Instead of that my page displays "java.lang.NullPointerException". I've assigned unique values for each error. So the exact error … | |
hi...uh...again, I know I ask a lot of questions, but I'm really clueless. My HW says I have to write a function that accepts a pointer to a C-string as an argument and capitalizes that first character of each sentence in the string. I know the toupper function, but I … ![]() | |
Hi. I make a new array, p: [CODE]p=[[x]+[0]*(y)]*z[/CODE] then if x=1, y=2 and z=3, the array is: [CODE][[1, 0, 0], [1, 0, 0], [1, 0, 0]][/CODE] But now, the problem steps in. If I now say that p[0][0]=2, then the array is: [CODE][[2, 0, 0], [2, 0, 0], [2, 0, … | |
Hi, I have an XML: [CODE] <A> <B> <C>a</C> </B> <B> <C>b</C> </B> <B> <C>c</C> </B> </A> [/CODE] and I need the output as [CODE] <X name="a"> <Y name="b"> <Z name ="c"/> </Y> </X> [/CODE] i don't know how to write the XSL for it, tried few things but couldn't … | |
Hey all I'm currently working on a project for university where multiple users will be able to access the same data concurrently. Up to this point, I've only ever created programs for a single workstation and I have no idea where to start to create a program that multiple users … | |
| |
Hi, where can I find written GUI tutorials for GUI Design in C++ besides Winprog.org's? I would like it to feature Windows.h and it is okay if it costs money to buy. | |
I'm trying long distance learning & I'm having many issues. I was able to write a program that runs well using an IF loop. but now I am to use that same exact program with a WHILE loop & I just can't understand any explanation I receive from the instructor. … | |
I remember the days when I programmed in assembler and managed to work very fast having complete control of my programs and not endlessly banging my head on the windows wall when dealing with the Microsoft side of my software. Below is an example of some code that is simply … | |
Hi, I am doing an undergraduate physics project by writing a C++ code to implement the Metropolis algorithm to a simple 2d one component plasma. In short, I have to determine the equilibrium configuration at each temperature by means of the Metropolis algorithm and then compute ensemble averages (such as … | |
how to check there exist number in string using isalpha.if number exist, display "only alphabetic,please input again" example : user input = i had to 2 number |
The End.