199,114 Archived Topics
Remove Filter ![]() | |
Hi. Our homework is to use try...catch block in our calculator applet. I don't understand why the "catch" does not work. It will always go straight to the "finally". Here's the code: import java.applet.*; import java.awt.*; import java.awt.event.*; import java.awt.Label; import javax.swing.*; public class clsCalculator extends Applet implements ActionListener { … | |
i have this class theclass{ int totalavailable; other informations; } and i made a list LinkedList<theclass> where all available rooms The user want to see if two rooms of any of the available rooms that are at the list are availables and produce a result with the available options. for … | |
hi everyone does anybody know a good java free ebook. if anybody has it plz send it to me or give me the link. or any sort of programming ebook would do. thanx :cheesy: | |
Is there any way I can execute a block of code in a loop, like so: [ some code goes here ] Where the delimiters are "[" and "]", and also allowing for nested blocks, i.e.: [the user can create another loop[]] I am creating a parser for a language … | |
I do c language "httpd" application works without problems at first. 1. meet user requests from nginx ago 2. Looking to requests from. Directs incoming requests according to the address 127.0.0.1:8080 But how can I solve the query is loaded when the crash occurred. #include <stdio.h> #include <stdlib.h> #include <string.h> … | |
I can not get a page to load from the following php program. When I load the page in the browser all I get is a blank white page. I also looked in the /var/log/apache2/error.log file and found this line -> [Sun Aug 25 21:36:37 2013] [error] [client 127.0.0.1] PHP … | |
PROBLEM DESCRIPTION A battalion is a military unit with 300 to 1200 soldiers usually consisting of seven companies commanded either by a lieutenant colonel or a colonel. A particular training that a battalion undergoes is the training to maximize the battalion's "carrying capacity" whenever they are to carry cargoes from … | |
HI All, im working on a project that uses asp.net to send information to a mssql server. The problem im running into is that when i try to debug the page, I get: 'ClickSave' is not a member of 'ASP.default_aspx'. How Do I fix this?? Heres My html code(default.aspx): <html> … | |
<?php // PHP script to allow periodic cPanel backups automatically, optionally to a remote FTP server. // This script contains passwords. KEEP ACCESS TO THIS FILE SECURE! (place it in your home dir, not /www/) // ********* THE FOLLOWING ITEMS NEED TO BE CONFIGURED ********* // Info required for cPanel … | |
Hi all In my window form project I want to display only 2 columns among 3 columns Of my BRAND datatable in LISTVIEW column 1 BRANID display in listview 2 BRANDNAME display in listview 3 ID don't want to display in listview all brand & it's id display in listview … | |
![]() | Write a program to read the coefficients of a series of quadratic equations from a text file and print the associated roots, or appropriate errors if there are no real roots, to another text file. The coefficients of a quadratic are the a, b and c of an expression of … |
Hi, Everyone, Is it possible for the autocomplete feature of textbox to show only when I type the @ sign? I have a list of common email address domain, I just want an autocomplete feature that when the user type the @ sign the autocomplete will show and suggest. Thanks … | |
class name { char *s; int len; public: name(){ // Default constr. s=NULL; len =0; } //************************************************** ~name(){ // Destruct. if (s!=NULL){ delete [] s; s=NULL; } } //************************************************* name(const char * s1); // Constr. char* getName(); //fcn get name int getLen() ; // fcn get lenght void setName(const char … | |
Hello, I have been researching the minimax algorithm for a few days, but I can't apply it properly. I have read that for the 8 lines in Tic Tac Toe, you give certain scores. However, I don't understand what they are trying to tell me. Could I have a simple … | |
Hey! I am learning a bit of jframe, and I was wondering if anyone knew how to make a JScrollPane display an RSS Feed? I have the feed already, I just need to know how to have the JScrollPane display it, thank you! | |
so i have the following script: <?php /** * * @Create Breadcrumbs Trail. * * @copyright Copyright (C) 2008 PHPRO.ORG. All rights reserved. * * @version //autogentag// * * @license new bsd http://www.opensource.org/licenses/bsd-license.php * * @filesource * * @package Breadcrumbs * * @Author Kevin Waterson * */ class breadcrumbs{ /* … | |
Hi there, I like programing very much. Fortunately or unfortunately my sujects in collage was arts, because i hate maths. Visual basic is my favourite language. I have learned it partially. But it didn't support my native language. I need some menu button text in my native language, but it … | |
def mu_cache(func,maxsize=128): "Most Used Cache decorator" cname = "__"+func.__name__+"_Cache" rname = "__"+func.__name__+"_Rankings" exec("global "+cname) exec(cname+" = {}") #here exec("global "+rname) exec(rname+" = {}") def wrap(*args,**kwargs): cache = eval(cname) rankings = eval(rname) try: res = cache[(args,kwargs)] except: res = func(*args,**kwargs) cache[(args,kwargs)] = res else: try: res = rname[(args,kwargs)] except: res=0 rname[(args,kwargs)] … | |
hi i want to show my 2nd form then close the 1st form. here's that simple codes and i can't do it right. please help Private Sub btlogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btlogin.Click form2.show() me.close() End Sub | |
Hi there, so I have a project idea for Java but I have no idea how to start it and was hoping that some of you could point me in the right direction. So I got this idea based on a need that my mom had in her business. I … | |
I have a web application that I create that works great on my computer. I have an account with 1and1, so I uploaded the database and the files. I am also using Linq to SQL, so I have a dbml file. But, everytime I run a function that needs the … | |
I'd like to make a small version similar to "Rain room" as my graduation project but I don't know where to start, https://www.youtube.com/watch?v=jSup0tm86no I've been searching the web for days, and I'm beginning to understand how it's build and what hardware I need, this is the the short list: 3D … | |
probably doing something fundamentally wrong , but im used to the luxury of java's `System.currentTimeMillis()` or `System.nanoTime()` unfortunately. i have a code that i posted before for a different problem (couldnt compile properly in pelles C) , but now , although its compiling well and good , my clock outputs … ![]() | |
I am working with some code that works fine in jsfiddle but not locally, here is the [jsfiddle link ](http://jsfiddle.net/c2webdev/DVPaa/) this is quite confusing here is the local code <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script> … | |
please give me the details about making a thesis for mtech and also most relevant topics in computer science. | |
Im trying to pass a session variable $_SESSION['id'] form one page to another. But in the page im trying to pass it to I get this error Undefined index id The pages are in different dirs but in the same parent dir obviously, would this have anything to do with … | |
Hello all, I hope you can help me.. I got one assignment: to modify the existing website made of .asp pages. So, I got the working folder, with all the subfolders and files that make one website.... now, in order to start working on it, I need to get it … | |
In MySQL I have created database "[B][COLOR="Red"]mydata[/COLOR][/B]" with the table "[B][COLOR="red"]contacts[/COLOR][/B]". The fields are as follow: [B][COLOR="green"]ID[/COLOR][/B] (Primary Key) (INT(10) [B][COLOR="green"]Name[/COLOR][/B] VARCHAR(45) [B][COLOR="green"]Title[/COLOR][/B] VARCHAR(45) [B][COLOR="green"]Address[/COLOR][/B] VARCHAR(45) [B][COLOR="Green"]Comments[/COLOR][/B] TEXT Based on info at [url]http://www.webmasterforums.com/php-development/1683-php-form-entering-data-mysql-database.html[/url] I have created following two files: [B][COLOR="green"][COLOR="Red"]new_record.php[/COLOR][/COLOR][/B] [CODE]<? $usr = "myusername"; $pwd = "mypassword"; $db = "mydata"; … ![]() | |
Hi, I was wondering how I could create a MUD (Multi-User-Dungeon) game using Python. It would be a dream come true if I could make one on my own so I was wondering if there is any reading material (pdf) that could teach me. What functions and commands would I … | |
Hello DaniWebers! I'm absolutely shocking when it comes to JavaScript/JQuery and have run into an occurance when I would like to use it. Now before you slap me on the wrist I **DO** intend to learn JS in 2014 (Scouts honour!). I am using this slider: [JQuery - Snap To … | |
I am trying to DELETE multiple checkbox values in my database but these values are being retrieved from the database and checkboxes are added here is the code [code] <?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test_mysql"; // Table name … ![]() | |
I'm working on a project that generates roughly between 13x512 values in which I compare at run-time. So the program outflow will be sort of as follows: - Program executes - Extracts (1) 12x512 - Extracts (2) 12x512 - Compares (1) to (2) - Extract (3) - Compares (3) to … | |
Public Class Form1 Dim CloseButton As New Close Dim RestoreButton As New Restore Dim MinButton As New Minimise Dim Drag As Boolean Dim MouseX As Integer Dim MouseY As Integer Dim WinBorder As New PictureBox Private Sub CloseButtonCode() Handles Me.Load CloseButton.Anchor = AnchorStyles.Top + AnchorStyles.Right CloseButton.Enabled = True CloseButton.Location = … ![]() | |
Hi all, I would like to create .fxml file for my java project. How do we get javafx .fxml into java Eclipse? e.g. From Eclipse, when I click File -> New -> Other, then the Wizard window pop out. There should have Javafx folder, which will expand and I can … | |
Hi. I was just wondering if there is a simple way to get the file size of a selected program. The thing is that if i select a word document or etc the file size should be 2.34MB not like 2355.2 in KB or B. If the file size is … | |
Hi guys, I have a simple php script to upload file. I'm having some problem in creating confirmation before overwriting the file from new file upload. Situation: 1. confirm() works if using file_exists BUT not overwrite the file or process the move_uploaded_file assuming some tags are correct uploadfile.php <form enctype="multipart/form-data" … | |
Hi there, I'm back again and this time I have another question: So I figured out that I have to use Array Lists for my last question, but now, I have another problem: How do I get all the user inputs separated into different strings so that the user may … | |
Hello, I am trying install my new script on drupal, and it show's this: Fatal error: Maximum execution time of 60 seconds exceeded in `F:\Work\OpenServer\domains\mmm\includes\file.inc on line 966` Below I posted script code from 959 to 984 from file.inc function file_scan_directory($dir, $mask, $nomask = array('.', '..', 'CVS'), $callback = 0, … | |
i need a VB.net application that contains a button named "LIVE" and when i click on this button i want roiters news to appear, who can help me? | |
Hey guys im here again with another question on how to solve this specific problem i have, Whic is also releated on my last thread which is http://www.daniweb.com/web-development/php/threads/461702/cant-combine-two-sql-statement .. so the question now is i have this table Name Payment_type Service_charge test 1 Cash 10 test 2 Cash 20 test … | |
![]() | Here is what i coded for a simple binary to octal converion. If no of digits in binary are multiple of 3 then it works fine but get crashed otherwise . . . . am not able to figure our how to pad up for the grouping of 3 when … |
![]() | A simple insert query works as : INSERT INTO <table-name> VALUES(val1,val2,val3); and DONE. Suppose I wanted to insert only into last two columns I will do as : INSERT INTO <table-name>(col2,col3) VALUES(val2,val3); For less no of columns its not a big deal but what if i have 10 columns and … ![]() |
Hi! what is wrong with the following function? void foo(*ptr){ char buff[127]; ctrcpy(*ptr,buff); } I know that it doesn't really do something... it's for information purpose only.... Thanx!! | |
Can I ask you how can I automatically fill my TextBox when I choose an unbound item in ComboBox. For example, I choose "January" in my First ComboBox, then "09" in 2nd ComboBox and "1993" for 3rd. Then it will Show "January 09, 1993" in my TextBox. ![]() | |
Good Day everyone(even if its already 10pm here) i know its seems very easy to some of you guys but seems i cant get an hold onto it.. so i have this query that search data between 2 date range(which is working fine) and another query that add all data … ![]() | |
I posted a question about algorithms for Tic Tac Toe's invincible AI (that never loses, only wins or ties), and found a scoring method. Here is the code I came up with. As of this moment it takes the next available space, so the scoring appears not to be working. … | |
Hello, i need a code to show data from database into textbox i have this request "select count(*) from table" i work with access database andi want show the result in textbox pleaase help | |
I am trying to make a script which detects clicks on google ads. All events works like onmouseover, out etc except click, focus, mousedown. When i click on google ads it open its ads link but dont run my jquery script on click event. I have tried preventdefault and other … | |
i want to create buttons dynamically.... what i mean to say is i have a button which says add new one.... if someone click that button, a button should appear with the name given by the user...... if i enter the name of the button and click on add new, … |
The End.