199,114 Archived Topics
Remove Filter ![]() | |
Hi, My CSV files contains embedded double quotes, as it does not conform to the RFC 4180 standard and results in parser complication. I tried using Perl Module "Text::CSV_XS" to properly escape with double-quotes, the output file gives me the result as desired, however some of the line breaks into … | |
Hi everyone and thanks for reading. Up until yesterday I was unaware of this technique, and have always just ran a user's password through md5 and stored the result to the database. From what I've been reading about SALT it sounds like a very cool way of making your passwords … | |
hi guys, I'm creating a midlet application with Netbeans. When I select build, the IDE builds my application successfully but goes ahead to run it's emulator. This has the effect of increasing the resulting jar file 7 fold in size. Does anyone know how to change the setting to build … | |
Hi to all I'm trying to change the headers of a request, I'm trying to simulate a request from different browsers, languages... The problem is when I try to change the headers I receive an exception(see below), this is the code I'm using: [code] HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Headers.Set(HttpRequestHeader.UserAgent, httpRequest.ServerVariables["HTTP_USER_AGENT"]); … | |
Hello Everyone, At the moment i'm look for some software that will help me document my code using xml comments and the integrate these help files in to VS 2008. I've had a certain degree of success with Doc-O-Matic which seems to work well, but there it one small catch, … | |
Does anyone know any good books for introduction to assembly? I have a class with it next semester and would like to get a head start. | |
![]() | hi again i have been assigned a project to create a web crawler in python but i have no idea where to start so all help will be welcome. ![]() |
Hello, I was just curious if anyone wanted to help out in game devolpment in A game called Arctic Frost I dont really wanna post it on here because it takes up alot of room I just wanna say somestuff. What I am Is I am 17 And I wanna … | |
who can find the Errors in this statments ; 1-[CODE]Assume that: char str[ 5 ]; cin >> str; // user types "hello" [/CODE] 2- [CODE=c]int *zPtr; // zPtr will reference array z int *aPtr = 0; void *sPtr = 0; int number; int z[ 5 ] = { 1, 2, … | |
i have a jtextpane now, i want that some text on it become bold, and not all how can i possibly do this, for exmple, i want to bold all the word "cool" found in my textpane.. i know that i should use a DocumentListener(Do I need??) but i really … | |
I am currently working in asp.net, I m all new to web programming. I have to make a website for our clients, we will give them a user id and password of thier equipment and the details (given by the clients) will be entered in the database. My questions is … | |
I have created a user control with name menuUserControl with menu control in it. I have created a user defined property for the user control(menuUserControl) as groupid and when ever I pass groupid to the user control(menuUserControl) in a page, it should use a theme based on the groupid I … | |
Hi, I want to read a line in the file and check the content in the line, for example if the line starts with the text "sample test ..." i want to check wether the line starts with sample, but my code always return no result even thou the file … | |
Im using [URL="http://uk2.php.net/manual/en/function.get-browser.php"]get_browser[/URL] and I only want to echo parts of what is returned. So say for example I just want to echo platform and browser from what the array returns. How would I do that. Thanks :) | |
Hello, All: I have been testing and learning by building this simple CMS application and want see if works OK, but most importantly, would like to know if any of you are able to hack it. It's a simple "notepad" that allows people to register their own id/pw and able … | |
Hi I am trying to add FolderBrowserDialog to my ASP.NET page. So i added a reference to using System.Windows.Forms. Now i have placed a button and in button click event i have written code like this . [code=c#]protected void Button1_Click(object sender, EventArgs e) { FolderBrowserDialog fbd = new FolderBrowserDialog(); fbd.ShowDialog(); … | |
i have a couple of servers that are changing perms on /dev/null so that "other" can't access it, at random (well, i'm sure SOMETHING'S causing it, but the timing is random), so i wrote a script to go in the inittab so it'll respawn if it dies (bash shell) the … | |
Hello, Is there a way to take a String, for instance "4 * 5" from a JTextField and convert it into an expression where I will get a result? Thank you. | |
Within a C# program, is there any way to tell if a file is a text file or not? I mean a real way, not just basing your conclusion on a file name extension. | |
Hi I would like to create a crawler using java with mySQL as backend. It must work in such a way that it will crawl to a site and grab the data from that site. And then store that data in the database. So can anybody tell me a way … | |
Heres my problem. I can add a node to my linked list in the front and middle, and at the end. But if I add a node to the end of the list and try to print it out, the program crashes. I studied the code and didn't find any … | |
everybody knows strtotime is buggy in and around february first day +1month at the 29 30 31 January typically puts you in march 1 not Feb 1 last day of the month is not always 28 feb, may be march I have a script for my own use, residential leases … | |
i tried to see the preprocessed file after it is preprocessed. i created den.cpp : [CODE]#define PROC_ERR(MSGSTR, DO_ACTION) \ { \ cerr << MSGSTR << endl; \ DO_ACTION; \ } PROC_ERR(error,action)[/CODE] i run the following command on unix command prompt to create the preprocessed file : [CODE]g++ -E -o den.i … | |
Can somebody help tell what they think is the matter with this code. It is supposed to be a random password generator. You will see what is the matter with when it runs. Thanks in advance [code] /** * This program generates random passwords based on the user selecting the … | |
I'm porting a program that used stdio file facilities to use an std::ofstream instead. The original program uses fsync to force a file's buffers out to the disk. The fsync() is used because I'm writing a logging file, and want to ensure that data is written ASAP (i.e., before a … | |
Hi to all. I'm new to all IT stuff but well intersted and I have learn a lots those past few days reading all the Forum tipsand also the Programming FAQ by Iron_Dross. I'd like to become a programmer and I learnt a lot allready but if you can tell … | |
So I'm trying to create my first ever Makefile and have run into some issues. My program is broken down like this: filter.c - contains main() includes.h - #defines io/file_io.c - contains some functions that main() uses io/file_io.h - included in filter.c and file_io.c Hopefully that is clear enough. Now … | |
Hi There folks. I was thinking of trying to make a php function in my sites configuration file so that I could keep all mysql database info in one central file. I should mention that this is the first time I have tried to make my own function. I have … | |
I am working on a project that requires a MySQL database to store important information (So a little security would be nice). I realize that some users can't find or don't have MySQL databases with their hosting accounts. I would like to provide users with the ability to get a … | |
Basically what i want is the action page to have "GET" information in it. here is the code i got so far: [ICODE]<html> <head> <link rel=stylesheet type=text/css href=style.css> </head> <body> <?php include("header.php"); ?> <center> <h1>You are currently uploading an image in gallery: <?php echo $_GET[gall]; ?> <br> <br> <br> <br> … ![]() | |
Is there a utility which you load with a .txt file which is a list of files and directories you made previously, so it generates, sort-of, a virtual directory tree (explorer-like, with icons and all)? _______________________________ For example: You have a list, a .txt file, which has this text in … | |
Hi everyone, I've been having a little trouble with an assignment I've been given and I'm looking for a little help. The assignment requires me to read in a line of text from the user, and then use Parallel Arrays (both iteratively & recursively), An Array of Object (iteratively, recursively, … | |
We have a script that creates a .csv file that in turn is fed into a python script. Our .csv file is being generated with a line feed at the bottom, and this is hammering the python script. Is there a way to get rid of that extra line that … | |
Do you do the flow chart first or go straight to the code? I find it easier to do the code first for some reason, maybe this is bad? | |
Hi, iam new to MFC programming and i was just wondering if someone could help me. Iam after creating two resources called menu and dialog. After creating then i ran into problems. I wanted to be able to click on the menu command that will then display the dialog box, … | |
I am taking a class in Assembly this semester and am currently at a loss. The first two projects I found easy enough but now we are working with strings. I have a basic skeleton for the program that gets input. [CODE] .data strbuf: .space 80 # Buffer for string … | |
Hello, How to call a function which takes dynamic array argument? That is to say, if I have: [code=C++] void fctn (int *a[], int n) { *a = &n; //do stuff with a. } [/code] How to call this in main? Must I have another array declared in main to … | |
[code] <? $sql="select * from table"; while($row=mysql_fetch_array($sql)) { $name=$row['name']; $view=$row['view']; $view1=$row['view1']; $id2=$row['id']; ?> <form name="myform" action="list.php?id=<?=$id2;?>&view=<?=$view;?>" method="post"> <td align="center" width="5%"><?=$name;?></td> <td align="center" width="5%"><?=$view;?></td> <td align="center" width="3%"><input type="text" value="<?=$view1; ?>" size="5" id="newva" name="newva"> </td> </form> <td align="center" width="5%"> <a href="/show/list?id=<?=$id2;?>&view=<?=$view;?>" onClick="document.myform.submit();" >Submit</a> </td> <? } ?> [/code] It shows out put … ![]() | |
Hi, I am trying to write a connect four program in python, which I am not very experienced at. This is what I have so far: [Code] row7 = [' ', ' ', ' ', ' ', ' ', ' ', ' '] row6 = [' ', ' ', ' … | |
Hi, I'm having trouble with using and updating graphics in a JFrame. I'll include my code below along with some classes. They're necessary for the program to work properly. The issue is that the paint method is painting over my UI. Then it won't display the graphics. I don't have … | |
Well what do you think about my round-robin scheduling tournament? Is it good n complete? [url]http://rapidshare.com/files/19116739...edule.exe.html[/url] | |
Id like to use lapack to invert large martix but i am lost . i don't know even how to install it and call it in a program. i have searched for a month in the web but always the method does'nt work or complicated . can someone do something … | |
Hi! I'm using VS 2003 and MS Access. I have this Form1 that displays Record details on textboxes (they are databinded).. The records are retrieved from MS Access using the code: [CODE] Public Sub loadFund() '[Load Items] Dim selectAllSQL as string = "SELECT * FROM Table1" Dim selectAllCMD As OleDbCommand … | |
[code=c] void EvaluateHighScore(top10scores ListToBeChecked[], unsigned char Time) { unsigned char RankTen = ListToBeChecked[9].TimeTaken, loopcounter=0, NewRank=0; char UsersName[USERNAME_LENGTH], MoveName[USERNAME_LENGTH]; if(Time >= RankTen) printf("\n\n\tYou Took %d Seconds To Complete The Quiz Well Done\n\tUnfortunatly You Didn't Get A High Score\n", Time); else { printf("\n Please Enter Your Username: "); fflush(stdin); gets(UsersName); for(loopcounter=0; loopcounter<TOPTENSCORES; … | |
Hey The title is a bit confusing so Ill explain. I have a function that returns random values from 0-4 for the computer (which has numberofplayers). Lets say number of players is 2. One is me and the other is the PC. I (myself thru a scanf and I being … | |
I have no idea how to get started -Prompt user for an integer -If the number is even, divide it in half - If the number is odd, multiply it by 3 then add 1 - If the number reaches 1, stop; otherwise go to step 1 -Use while loop. … ![]() | |
Hi guys, I want to select records from the database, i need to pass start index and end index, then the result set will include those records. Let say my database table has 100 records, i want to get the records between 30-50. How can i do that? | |
hey guys please help me out here.i really liked to know how to convert hexadecimal to binary | |
Hi all, Can anyone send me the Apriori Algorithm implementation in C and a dataset so that I can able execute and learn. Your help is greately appreciated. Thanks, Arthur |
The End.