153 Topics

Member Avatar for
Member Avatar for end3r

Hi, As the title states, I have a query that I use to concatenate all the rows into a single string and I use the XMLTransform method to accomplish that but I still need to add a new line separator within the XML string and so far I didn't find …

Member Avatar for end3r
0
851
Member Avatar for masterofpuppets

Hello guys, Here's a problem that's giving me a hard time. I am working on a web server in Java and right now I want to enable the user to create a photo album. The user can type the album name in an <input> field in an HTML form. The …

Member Avatar for masterofpuppets
0
166
Member Avatar for Huakalero

Hi, I am using beautiful soup to get data from a webpage. With help I was able to get a list of cities with correct accents. Now am trying to get a list of movie theaters in a selected city but these come with no accents, but with weird characters. …

Member Avatar for Huakalero
0
858
Member Avatar for Huakalero

Hi, I'm working on a unofficial app to get the movie listings from a webpage [url]http://cinepolis.com.mx[/url]. In order to get the correct movie listings, the user must select his city. Now, using HTMLParser I was able to get the list of cities, but because some of these have non english …

Member Avatar for Huakalero
0
348
Member Avatar for Muhammad Anas

I just found a question whose statement is as follows: [COLOR="Green"]Write a function contains(const char*, char) which returns the pointer to the first (left-most) occurrence of the 2nd parameter char in the 1st parameter cstring, or NULL if the cstring doesn't contain the char. [/COLOR] Another condition is that inside …

Member Avatar for Muhammad Anas
0
262
Member Avatar for Emeryl

Hi, I'm having problems with special characters not showing on the webpage I'm working on. It doesn't seem to want to work no matter what I try. I'm pretty sure UTF-8 SHOULD show German, so I don't know what it is. [url]http://www.p-soldiers.com/ge/germanabout.php[/url] [B]Here's what I have on the page:[/B] [CODE]<link …

Member Avatar for almostbob
0
1K
Member Avatar for geoamins2

Can you show me the way about storing the special characters into mysql database using php. Actually,I'm working on such a website where user can upload text and programming codes into mysql. Thank you in advance.

Member Avatar for vibhaJ
0
209
Member Avatar for TheWolverine

Hi all, I'm busy writing a generic textfile reader class and I'm struggling to write the code to deal correctly with end-of-line (EOL) characters for Mac, Linux and Windows. I've done a fair bit of reading on the issue and I came up with the following function within my TextFileReader …

Member Avatar for TheWolverine
0
505
Member Avatar for pi_lord12

Hey guys, I'm working on a project to use Huffman trees to compress a text file into binary. For instance, based on the frequency of the characters in a string like "aardvark", a - 3 r - 2 d - 1 v - 1 k - 1, compression using a …

Member Avatar for pi_lord12
0
214
Member Avatar for noctiskram

the only problem in this code is i must use longer username and password like for example dani and the password is web, not d and w only. this is very easy but i didn't make it, please help me with this. In this program, after you log in you …

Member Avatar for arkoenig
0
860
Member Avatar for hindu times

Hi there, I have been told I need to use escape() and unescape() to fix some issues I am having with my Javascript in IE7. I've been fiddling with it for two days now and can't seem to get it working correctly. It would be amazing if someone on here …

Member Avatar for twiss
0
136
Member Avatar for Muhammad Anas

I am trying to create a program that, after inputing a text file, can: 1) Count number of lines in the text file. 2) Count number of words in the file. 3) Count number of characters in the file [B][U]including[/U][/B] white spaces. 4) Count number of characters in the file …

Member Avatar for Narue
0
2K
Member Avatar for FlyByNight73

Hi Everyone, I am currently working on a site that will have lots of European and Middle-Eastern town names that include accented and other special characters. I have never had to deal with these characters before and I foolishly assumed that setting everything to utf-8 would take care of it …

Member Avatar for arrgh
0
606
Member Avatar for beejay321

so im trying to build a connect 4 gameboard using charecter arrays and it has to look like this O | O | O | O ------------- O | O | O | O ------------- O | O | O | O ------------- O | O | O | O …

Member Avatar for WaltP
0
844
Member Avatar for gspeedtech

Hello, I have a situation where data in a field contains CrLf characters. Code has been in place for a couple of years and many records have been affected. The question is: Should I add code to catch the CrLf characters at the field level? Should I add code to …

Member Avatar for gspeedtech
0
447
Member Avatar for salty11

this code is meant to input words from file, and output to file the amount of letters in them and how many words there are [CODE]#include<iostream> #include<iomanip> #include<fstream> #include<cmath> #include<conio.h> #define in_file "data.txt"//input file name #define out_file "result.txt"//output file name using namespace std; void inputwords(int&, int&); void outputwords(int, int); ifstream …

Member Avatar for WaltP
0
629
Member Avatar for az_ez

I've been trying the last few days to get this code to work but it still wont return the exact numbers. Its always atleast like 10 characters off and it probably is a trivial answer but I cant find the solution. I've initialized the charCount to 0 but still it …

Member Avatar for WaltP
0
133
Member Avatar for VP2

Hello! I've got a little problem... I want to make a program which puts 10 random character, but the characters should NOT be digits. [CODE]#include <ctime> #include <stdio> #include <iostream> using namespace std; int main() { time_t t; time(&t); srand(t); int i,c; char ch; printf("Generating 10 random characters...\n"); for(i=1;i<=10;i++) { …

Member Avatar for WaltP
0
150
Member Avatar for Alice1990

Hi, its an assignment i need to do. The while loop working on well when i input an integer but when a letter is being input, the while loop run for infinity. I had seen through the other thread but still cannot understand how to do. Please help... [CODE]while(choice!=1&&choice!=2&&choice!=3&&choice!=4) {cout<<"The …

Member Avatar for jonsca
0
315
Member Avatar for mad_pierrot

Hello everyone, I'm trying to create a PHP cURL script that does two main things. 1) Login to website (works) 2) Export table as CSV (doesn't work) To export the table as a CSV, two things need to be selected. Which table I want to export, in this case customers, …

0
129
Member Avatar for Sean87

Hi all, I recently started with visual c# .NET and I really liked it. I hope I can learn a lot from you. I am making a simple program, but I have problem with dynamicly changing text for a lable. Imagine that there is a lable and we should have …

Member Avatar for Sean87
0
101
Member Avatar for ilikepaste

import urllib.request page = urllib.request.urlopen("http://www.randompickupline.com/") text = page.read().decode("utf8") where = text.find('<p id="pickupline">') start_of_line = where + 18 end_of_line = start_of_line + 150 line = (text[start_of_line:end_of_line]) print (line) This is a basic html import for a text based game I'm writing for fun, and I'm making a dynamic string. However, the …

Member Avatar for ilikepaste
0
199
Member Avatar for iamthesgt

The first day of class today we had an (optional) diagnostic programming assignment. The problem is: to take an input file with a sentence in it, and make all letters except the first one lowercase, make the first letter uppercase, and remove any extra spaces and line breaks. After working …

Member Avatar for mrnutty
0
215
Member Avatar for ben25x

hey this is a just for fun topic (a.k.a. NOT homework) but if you can please reply: I am working in Visual C++ and I can't get any <iostream> operation to write a single character to a variable and then check it in an if() statement. Here is my last …

Member Avatar for Nick Evan
0
208
Member Avatar for Castiel1631

I am creating an abstract data type for strings implementing the string functions but not using the string library. I have my .c file and my .h file below. The problem seems to lie in addMystring I have commented out the area's that seem to have the problem. when they …

Member Avatar for Castiel1631
0
2K
Member Avatar for Jtibs

Hello, I am trying to write a MIPS program that uses a function call to return the index of the smallest character within an array. I have my code set up in a way I thought would be correct, but when I try to test it seems to not even …

0
127
Member Avatar for d8m9

Hi, Id like to generate a nine-digit combinations of 52 characters of alphabet (a..z and A..Z). My thought is: [LIST=1] [*]Generate nine-digit combinations of numbers from 0 to 51 [*]Use these combinations as indexes of [CODE]char[] alp={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};[/CODE] [/LIST] Iam sure its very easy.. Im learning Java for one month (once …

Member Avatar for d8m9
0
237
Member Avatar for feoperro

Hi, How do you set a text input field to have a character limit? Say for example, the user had to enter a postal code of 4 characters, how would you limit the text field to only allow 4 characters? Thanks, Ashton.

Member Avatar for Kraai
0
127
Member Avatar for Mkaveli

Hello im trying to create a character with pre devined animations. The characters parts must be changeable. I was wondering if there is a way in JAVA to create some sort of skeleton animations and add graphics to the skeleton. P.S. I was wondering if someone knows a good book …

Member Avatar for quuba
0
158
Member Avatar for shabbar

I have a peculiar problem with my Compaq Presario 2100 laptop. Its as if a random Key on the machine is permanently pressed, and if I open a program like Word, that key automatically generates characters. I thought it was some dirt or foreign material in the keyboard and vacumed …

Member Avatar for rubberman
0
237

The End.