199,114 Archived Topics
Remove Filter ![]() | |
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) | |
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. | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
[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 … ![]() | |
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? ![]() | |
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 … ![]() | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ? | |
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 … | |
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. | |
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) … | |
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 … | |
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 … | |
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, … | |
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 … | |
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. … | |
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 … | |
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'] + … ![]() | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
[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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
[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"); … | |
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 … | |
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 | |
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 … | |
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 >> … | |
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 … | |
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 … |
The End.