199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lstensland

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 …

Member Avatar for TrustyTony
0
361
Member Avatar for levsha

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 …

Member Avatar for levsha
0
95
Member Avatar for adams161

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 …

Member Avatar for adams161
0
125
Member Avatar for Prasad Bhujbal
Member Avatar for packetpirate
0
91
Member Avatar for NewToPhp

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 …

Member Avatar for namiamy
0
788
Member Avatar for dalip_007

Does anyone know how to find and trace website visitor's location(Country/city) using PHP/sql? Thanks in advance.

Member Avatar for dalip_007
0
129
Member Avatar for Ryan61343

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

Member Avatar for Ryan61343
0
77
Member Avatar for cokaznsyco72

Does anyone know how to do file input and output with spreadsheets? Specifically I'm going to be using the open office spreadsheet. thanks

Member Avatar for cokaznsyco72
0
109
Member Avatar for white feather

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 …

Member Avatar for white feather
0
5K
Member Avatar for fawad123

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=' …

Member Avatar for vsmash
0
156
Member Avatar for SD91

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: …

Member Avatar for griswolf
0
147
Member Avatar for Muhammad Anas

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 …

Member Avatar for snippsat
0
437
Member Avatar for ShArKss

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 …

Member Avatar for vsmash
0
249
Member Avatar for tennis
Member Avatar for roachae

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 …

Member Avatar for pabloh007
0
731
Member Avatar for hassal

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 = …

Member Avatar for hassal
0
198
Member Avatar for kerek2

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 …

Member Avatar for finito
0
132
Member Avatar for mitch9654

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 …

Member Avatar for mitch9654
0
146
Member Avatar for beforetheyknew

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 …

Member Avatar for Bluefox815
0
710
Member Avatar for Martje

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?

Member Avatar for Martje
0
128
Member Avatar for HappyTron

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 …

Member Avatar for Bluefox815
0
155
Member Avatar for mimis

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 …

Member Avatar for iamthwee
0
142
Member Avatar for mcodesmart

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]; …

Member Avatar for Bluefox815
0
197
Member Avatar for galrave

Hello, i want to populate a treeview with the directorys from my pc, how i do that?

Member Avatar for galrave
0
90
Member Avatar for icewolf

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 …

Member Avatar for Bluefox815
0
187
Member Avatar for kingfheartz

<?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 …

Member Avatar for kingfheartz
0
100
Member Avatar for muddy900

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 …

Member Avatar for muddy900
0
93
Member Avatar for neti1987

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 …

Member Avatar for neti1987
0
285
Member Avatar for ceyesuma

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]

Member Avatar for ceyesuma
0
718
Member Avatar for abrou

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 …

Member Avatar for deepavj
0
4K
Member Avatar for epicasian

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 …

Member Avatar for Rajesh R Subram
0
474
Member Avatar for Nitin Daphale

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]

Member Avatar for Jorge65100
0
1K
Member Avatar for Kesarion

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.

Member Avatar for Kesarion
0
2K
Member Avatar for ceyesuma

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 …

Member Avatar for NormR1
0
330
Member Avatar for dan1992

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.

Member Avatar for scaiferw
0
78
Member Avatar for Anex

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 …

Member Avatar for Ancient Dragon
0
116
Member Avatar for Syphilis

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 …

Member Avatar for vegaseat
0
64
Member Avatar for nsniha745

hi all is there any code converter from vb6.0 to vb.net.if it is Plz tell the exact

Member Avatar for Luc001
0
49
Member Avatar for lewashby

[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 …

Member Avatar for lewashby
0
140
Member Avatar for Viruthagiri

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 …

Member Avatar for ~s.o.s~
0
143
Member Avatar for karen_CSE

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 …

Member Avatar for iamthwee
0
796
Member Avatar for ErlendHL

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, …

Member Avatar for ErlendHL
0
94
Member Avatar for himit

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 …

Member Avatar for fpmurphy
0
123
Member Avatar for Loony064

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 …

Member Avatar for Loony064
0
542
Member Avatar for Ushba
Member Avatar for Buolbear4444

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.

Member Avatar for sundas shoukat
0
87
Member Avatar for mikev9359

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. …

Member Avatar for XP1
0
359
Member Avatar for Muscipula

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 …

Member Avatar for Wolfgan
0
607
Member Avatar for highflyer8

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 …

Member Avatar for jonsca
0
116
Member Avatar for amen

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

Member Avatar for Ancient Dragon
0
156

The End.