199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for portege

I'm interested in creating a bruteforce program. What is the most computer resource efficient method to count in base 62? (1,2,3...a,b,c...A,B,C)

Member Avatar for raptr_dflo
0
3K
Member Avatar for skiabox

I have seen in many servlets that doPost and doGet are declared public or protected. What is the purpose of declaring a doPost or doGet as protected? Thank you.

Member Avatar for stultuske
0
77
Member Avatar for zahidmaqbool

Hi, I have got a problem which has left me banging my head against the wall. Anyways, here is my situation. I've got to scan for a directory continuously and as soon as I've got a CSV file in it. I need to process that CSV file and pass on …

Member Avatar for stultuske
0
126
Member Avatar for xThrash

Hello, For some work I have to implement the selection sort algorithm on an array list, I dont really know how to do this. I have started off the code but I just need to actually implement the selection sort! This is proving to be the stumbling block. Here is …

Member Avatar for NormR1
0
2K
Member Avatar for cjohnweb

I am having trouble with a PHP foreach loop....I know how they work, I think I'm getting unexpected results. A bug perhaps? Am I missing something? [code] if(is_array($array)){ foreach ($array as $k => $v){ echo "<b>#$k</b><br />"; foreach ($v as $kk => $vv){ foreach ($vv as $kkk => $vvv){ if($kkk …

Member Avatar for pritaeas
0
244
Member Avatar for dark_sider_1

I've been trying to create a Hangman game in Java, and I have a string that looks like "_____" for a certain number of letters that they are supposed to represent. How would I replace just one of those, rather than all? I've heard that you can't replace an underscore …

Member Avatar for hfx642
0
260
Member Avatar for chuckc

Don't know if this is right place for my question, but Does anyone know if it is possible to have multiple forms visible at the same time while developing an application with Access in "Form View" mode? If so, how does one tell Access to do this? This applies to …

Member Avatar for chuckc
0
212
Member Avatar for apanimesh061

[ICODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Events !</title> <script type="text/javascript"> window.onload = function() { document.getElementById('anImage').addEventListener('click', function() { alert('F-15 Tomcat'); }, false); document.getElementById('anImage').addEventListener('click', function() { alert('F-15 Tomcat again !'); }, false); document.getElementById('anImage').addEventListener('click', function() { Alert; }, false); } function Alert() { alert('This is a Two …

Member Avatar for stbuchok
0
129
Member Avatar for navi17

I have lots of pets in a dropdown. what i want to achieve is that when ever i hover on dropdown, it will display the image of particular pet as a popup. Any idea how can i achieve that?

Member Avatar for diafol
0
101
Member Avatar for dmelgray

When I do the initial install I get this: Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in D:\Hosting\6585577\html\rhythmmovement\install\index.php on line 18 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in D:\Hosting\6585577\html\rhythmmovement\install\index.php on line 19 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource …

Member Avatar for diafol
0
208
Member Avatar for ton7io69

I am currently using iframe to boost my youtube video views, EXAMPLE: <IFRAME SRC='http://youtube.com/VIDEO' SCROLLING='no' WIDTH='1' HEIGHT='1' FRAMEBORDER='no'></IFRAME> I would like to know how to do the same thing in PHP? Can someone please send me an example of an almost invisible iframe as above but only in PHP. Sorry …

Member Avatar for diafol
0
84
Member Avatar for nocloud

I have a the following snippet of code [CODE]string const& symbol::at(int index) const { assert(index<symbol_data.vector::size()); return symbol_data.vector::at(index); }[/CODE] This does not compile successfully, instead, I get complaints about [CODE]error: ‘template<class _Tp, class _Alloc> class std::vector’ used without template parameters[/CODE] Now, I think this has something to do with the fact …

Member Avatar for mrnutty
0
327
Member Avatar for heshanm

Hi all, I want to perform cash transactions such as cash deposits and cash withdrawals in my project.Here i have created a page called [B]transaction.php[/B] to fulfill those requirements.But there were few error which i need your help to sought it out.. [B]account[/B] (account_number, account_type, fd_period, account_balance, account_interest ) [B]transacion …

Member Avatar for ko ko
0
115
Member Avatar for baby_c

hello friends, I got a problem with an object array.I'll write a sample code for understand the problem.I declared an array of objects named item. [CODE]item[] itemAr = new item[100];[/CODE] And then I initialized some of them [CODE]itemAr[0]=****; itemAr[1]=****; itemAr[2]=****;[/CODE] I want to know that is there a way to …

Member Avatar for baby_c
0
187
Member Avatar for Slyvr

I'm making a game in XNA. I need a player to move from block to block (40x40pixels) and I need to be able to set the speed that the player is able to move at. Right now, I have this code: Update Method - updates 60 frames per second or …

Member Avatar for Momerath
0
199
Member Avatar for sha11e

Is it possible to do this: Print out something on the screen, when the user presses enter, it should print out something else, but on the same line: cout <<"Hello "; -wait for an enter- cout <<"there"; with it looking like this: Hello there ?

Member Avatar for mike_2000_17
0
246
Member Avatar for FoxInBoots

Hi, I really need help with understanding how to solve an exercise. Create a new textfile with the name 'studentinfo.txt' and write following and save: Marie Anderssen 29 Alexander Lind 35 Gholam Payro 32 Zlatan Ibrahimavic 26 Write a program that read the information from 'studentinfo.txt' and calculates the average …

Member Avatar for Narue
0
192
Member Avatar for Voidz

Hi, I have an array of hWnds, and I need to change each one of their background colors. They're all without a border(titlebar, and such). I've searched Google, and IxQuick, and I need an answer please. Thanks so much for the help.

Member Avatar for Frederick2
0
4K
Member Avatar for Checkerboz

Okay so as a complete newbie... Currently I am at chapter 6 of a book called How to Think like a Computer Scientist ([URL="http://openbookproject.net/thinkcs/python/english2e/ch06.html"]http://openbookproject.net/thinkcs/python/english2e/ch06.html[/URL]) and I for some reason can't figure out this exercise: Make this doctest pass: [CODE]def print_digits(n): """ >>> print_digits(13789) 9 8 7 3 1 >>> print_digits(39874613) …

Member Avatar for Checkerboz
0
121
Member Avatar for VernonDozier

I have a simple program. [code] // test.c #include <stdio.h> int main() { #ifdef HELLO printf("Hello "); #endif printf("World\n"); return 0; }[/code] I'd like to set up a makefile and either define HELLO or not in that Makefile and then either the program displays "World" or "Hello World" based on …

Member Avatar for VernonDozier
0
176
Member Avatar for wickedBlast

Hello community! My first post here. (might probably have been under c#.. filename.asp.cs) I have a web AD management project undergoing as I am currently at testing.. the interface *yay* Extent of the project; pulling a list of employees managed by Mr X. Edit specific fields. I'm building my interface …

Member Avatar for wickedBlast
0
276
Member Avatar for Reverend Jim

I would appreciate a snippet of code for adding groups at run-time to a listview. I am currently listing books (and stats) without groups via the following code which is executed in a loop (one pass per book title). [code] item = New ListViewItem item.Text = seq.ToString item.SubItems.Add(Mid(titlenode.Nodes(N_CSTAT).Text, 3)) item.SubItems.Add(Mid(titlenode.Nodes(N_JSTAT).Text, …

Member Avatar for Reverend Jim
0
2K
Member Avatar for murnesty

I'm new on using class. Other than declare as friend class or declare static for the specific file to share variables/functions. Is there any other way? I have inherit few classes and wrote into few *.cpp file. I can't extern a static file, so is that mean i just only …

Member Avatar for mrnutty
0
138
Member Avatar for hajjo

Hi, I have a page with data like this. ----------------------------------------------------1st paragraph ---------table ------2nd paragraph I want on page scroll, the table headers to remain fixed until table data is over and it reached second paragraph. Any way to do this? I dont want to do another scroll in table body. …

Member Avatar for hajjo
0
218
Member Avatar for bangla

Hi, I was thinking to put people business contact information in my site with their email, phone, address(like list of doctors, lawyers, accounts, ...) in my site. I will collect those information from different news papers. Am i allowed to put those information in my site or i have to …

Member Avatar for bangla
0
186
Member Avatar for apanimesh061

What is the difference between property1 and property2 in the following code? [ICODE] // create object a var a = {}; // Add property1 to a a.property1 = 1; // Add property2 to a a['property2'] = 2; // Add function 'function3' to a a.function3 = function() { return this['property1'] + …

Member Avatar for stbuchok
0
193
Member Avatar for jared crook

ok im new so i dont really know what im doing but when i put the example program in dev and compile it everything works fine but when i run it it still works fine but the black screen what shows you the result of thr program lasts like 1 …

Member Avatar for Moschops
0
168
Member Avatar for PsychicTide

Hey guys, I'm having some trouble setting up a form to delete a specific row in my database table. Here is the idea: I have one page that makes looping calls to MySQL for a query result, at the same time I print out the html as I need to …

Member Avatar for PsychicTide
0
476
Member Avatar for ana_1234

Hey I am trying to look into a text file and compare the single input by their hexadecimal digits. I am comparing two .txt documents, everything is the same but my computer keeps reading them as different. I checked the hex version of these documents and I realized that that …

Member Avatar for ana_1234
0
254
Member Avatar for montjoile

I use CodeBlocks, it's light, has readline-like autocomplete of code and the best thing that I like is that you can change the background color. which is the one you use?

Member Avatar for katmai539
0
126
Member Avatar for Luckychap

This is my first step towards HTML5. This is currently tested on Chrome browser where it is awesome. It will not work on FF and definitely not on IE. I am working on it. Just copy-paste the code in blank html file and run on chrome. 'Scroller' is simple menu …

Member Avatar for Luckychap
0
1K
Member Avatar for chompchomp

Hi All, I did a search on DaniWeb but didn't manage to find a solution to this problem. We've got some pretty simple javascript that calls a random html file into a div on a very simple page. The called file contains a vimeo embed in an iframe. This script …

Member Avatar for chompchomp
0
296
Member Avatar for newbie14

Dear All, I have an application where I got few different sql queries that I would like to have an ACID properties. I have now setAutoCommit false. Where best to put commit and rollback statement? [CODE]try { [INDENT]dbconn = DriverManager.getConnection("jdbc:mysql://192.168.1.45:3306/***?"+"user=****&password=*****"); dbconn.setAutoCommit(false); stmt = dbconn.createStatement(); String selectQuery2 = "Select * from …

Member Avatar for newbie14
0
285
Member Avatar for superbass

Hello, I'm trying to populate a form with information from a database based on a textbox entry. However, when I begin to key in the textbox I receive "undefined" in each textbox throughout the form. Can someone take a look at my code for any errors? It also appears that …

Member Avatar for superbass
0
175
Member Avatar for geekme

I work on ubutnu 10.10 and have java installed on my machine ( jdk 1.6.0) cause when I type java -version on terminal ,it gives me the details.But when i try to open eclipse , it says no jre or jdk found etc, .Please help.

0
77
Member Avatar for apanimesh061

[ICODE] var a = { one : 1, arr : ['one','two','three'], doThis : function(){return 20;}, two : 2 }; var html = 'a.one = ' + a.one + '<br/>'; html += 'a.arr[0] = ' + a.arr[0] + '<br/>'; html += 'a.doThis() = ' + a.doThis() + '<br/>'; html += 'a.two …

Member Avatar for urtrivedi
0
174
Member Avatar for garromark

Hello, My problem stems from reading an image from the local disk and displaying it. There's a middle step of storing it in a database, but I simplified the problem into this test script that replicates the error: The image "http://example.com/test.php" cannot be displayed, because it contains errors. test.php looks …

Member Avatar for maxterner
0
308
Member Avatar for Thropian

I have a command lets say [CODE]f(x): print x[/CODE] I want to create several buttons to print various numbers so I made a list of the objects to print when I tried to do [CODE]for x in thislist: bind_all(x,lambda:f(x))[/CODE] which bound the buttons properly but all the buttons print the …

Member Avatar for Thropian
0
76
Member Avatar for SasseMan

Hi! I want to make a python program that runs different simple command line scripts. Right now I use os.system which works fine for running the scripts, but the problem is that the scripts sometimes halt and wait for input from the user. So my question is, how do i …

Member Avatar for Gribouillis
0
152
Member Avatar for knitex

So I'm kinda new to php. I've made a search but i'm looking for some help so that i can add more inputs and it will narrow the results down. for example i search "John" and 100 johns come up. But then i search "john" and then select Canada only …

Member Avatar for karthik_ppts
0
152
Member Avatar for iau

inside my database, there is a table name january such as: id | code | 1 | 2 | 3 | 4 2 | 0000 | X | X | O | O when i access the data using PHP and parse it into an array e.g. $array1, It became: …

Member Avatar for urtrivedi
0
69
Member Avatar for sandeepparekh9

Lets say you have lots of data your listview. Now you want to Group This data According to a Perticular Subitems. For Example: Suppose i have some books data in my ListView. this listview items contains Author name and Books Title. And there are 2000 Books in list view. Now …

0
291
Member Avatar for ankurvit

Hi, I'm looking to code the following problem in python. If (for example) dict={A:0.7,B:0.8,C:0.9,D:2.3,E:0.1,F:2.4} and so on.. (i have a big dictionary of A-Z something like this) I'm looking to find repeated substring in a string that has a dissimilarity of no longer than 0.5 (between highest and lowest). The …

Member Avatar for TrustyTony
0
196
Member Avatar for dharma117

[CODE] //1>program for piramid. --------------------------- #include<stdio.h> #include<conio.h> void main() { int i,j,n,a,k=0,m; clrscr(); scanf("%d",&n); m=n*2; a=m/2; for(i=0;i<m;i++){ printf("\n"); if(i<a)k++; else k--; for(j=0;j<m;j++){ if(i>=a||j<a-(k-1)||j>a+(k-1)) printf(" "); else printf(" *"); } } getch(); } //2>program for Revrse piramid. --------------------------- #include<stdio.h> #include<conio.h> void main() { int i,j,n,a,k=0,m; clrscr(); scanf("%d",&n); m=n*2; a=m/2; for(i=0;i<m;i++){ printf("\n"); …

Member Avatar for Adak
0
246
Member Avatar for aithabuddy

Hi I have a problem with the mysql query that uses both order by and limit.Following is the sql query i'm using, select * from temp where venue <> '' and cat1 = 'sports' and id < 74528 order by id desc limit 10; in this temp table 'id' is …

Member Avatar for karthik_ppts
0
169
Member Avatar for silvercats

Person is trying to do a sea food preparing and selling company.name two system development systems he can use? What is the best and why? thanks

Member Avatar for silvercats
0
40
Member Avatar for capiuy

I'm having troubles designing the following ERD, I find it extremely hard, so I would appreciate any suggestions on how to resolve it. I need to store sentences in PHP and another ones in JAVA, always mapping them between languages and map their equivalent position between them too, so every …

Member Avatar for smantscheff
0
278
Member Avatar for clyt

I want to obtain the data from .dat file which contains millions records (most of them are string) with 52 fields. I am trying to store the data into 52 lists. However, it is very slow Here is the code: import sys try: file= open("test.dat", "r") except IOError: print >> …

Member Avatar for clyt
0
138
Member Avatar for qurawe

this is the scenario pls help me: We have been asked to analyze the data requirements and develop a conference management system to keep information about all the conferences and papers presented in the conferences. Conferences are conducted in different parts of the world. Each conference is identified by its …

Member Avatar for smantscheff
0
184
Member Avatar for tubby123

This one comes from file-handling. Say , i have a file of 95,000 lines. I have to analyse only those lines which start with a semi-colon. So my logic would be like, "Read first character of the line, if it IS a semi-colon, process it, otherwise jump to the next …

Member Avatar for Adak
0
95

The End.