199,114 Archived Topics
Remove Filter ![]() | |
I need to know how can I use app path? I have a added Shockwave Flash Object control there in my program. However I have added AxShockwaveFlash1(swfla1) there in my form. I have written code there in Form_Load event so that swfla1 will get flash file(.swf) to play. Form_Load event … | |
this is my code - i have three classes and i will post all since i have no idea what i'm doing apparently [CODE]public class OneTwoTest { public static void main(String[] args) { System.out.println("Welcome to One-Two Match!"); Game g = new Game(); g.play(); System.out.println("Thank you for playing."); } // end … | |
Starting with version 2.6 Python has introduced a new container called the named tuple. You can use it similar to a class based record structure, but it has the memory efficiency of a tuple. | |
Hello everybody, do you know any clarion forum? please post the URL. or please post a VOTE to this thread so the Admin creates a section for clarion issues. Thanks. | |
I got yesterday a question how to get average date from list of dates, and here's my answer. | |
[ATTACH=RIGHT]15121[/ATTACH]Last Friday marked the 30th anniversary of one of the most beloved and recognized video games of all time, [URL="http://pacman.com/en/about"]PAC-MAN[/URL] (released in Japan by Namco). In celebration Google changed it's logo to resemble the board from the game that marked an era. This tribute to PAC-MAN on Google's home page … | |
Hi friends, I get some error for storing into database. I given that coding.any body know pls say to me. accep.php <?php $check=$_REQUEST['submit']; mysql_connect("localhost","root",""); mysql_select_db("menus") or die(mysql_error()); $projectid=$_REQUEST['pid']; $projectname= $_REQUEST['pname']; $projectcat= $_REQUEST['pcat']; $scope=$_REQUEST['psco']; $location=$_REQUEST['plo']; $rate=$_REQUEST['prate']; $query="insert into order values('$projectid','$projectname','$projectcat','$scope','$location','$rate')"; $dbase=mysql_query($query) or die(mysql_error()); if($dbase==TRUE) { include("congrat.php"); } ?> Detail.php <body> <h3> … ![]() | |
Can anyone please explain for developing rich internet applications which one of these two technologies (Flash VS jQuery) is better to use based on criteria such as "Pros and Cons or situations" and why? Please explain in details, it is very confusing. Thank you. | |
Hi, How to implement a stack using two queues ? Help pls! Regards, Preethi | |
Hi; I made a ATL/MFC application using VS 2008 but its exe is not running on Win Xp or Windows 7. My OS is Windows XP 2002 with Service Pack 3. What could be the problem? Doing some .net Framework Service packs doesn't seem to help much as I already … | |
It is a simple one and a more complex one will be here soon this code has not been tested but it works well on IE 6.0+ Do enjoy and Comment it Please | |
I know that technically, an Interface is used for reading and not writting or editing however, I want to add an add and addrange function to the following class, here is what I currently have which is not working [code] public class HrefCollection : IEnumerable<Href> { private IEnumerable<Href> hrefs; public … | |
| |
| |
Is there a command to draw a circle in javascript or I have to use only a circle picture? Also is there a way to arrange many circles randomly in a browser page ,using html/javascript? ![]() | |
Hello, i'm new to daniweb and also quite new to C++. I'm trying to write a function that takes a filename and a string query like [CODE]string GetStringValue(string filename, string query) { /*...*/ }[/CODE] then finds the query in the file, and returns what's behind the = mark. the file's … | |
[B][COLOR="Green"][B]I have done the blackjack program but every time i run it shows an error here is the code: P.S. I also need to show the value of the card[names of the cards e.g Jack etc[/B][/COLOR][/B] [CODE]import random as r def define_cards(c): rank_suit=["ace","two","three","four","five","six","seven","eight","nine","ten","jack","queen","king"] suit_rank=["clubs","spades","heatrts","diamonds"] for suit in range(4): for rank … | |
Not like I don't have 100 unfinished projects already. But I recently come across a mario paint composer by unfungames.com. I remember playing mario paint back on the Snes. So I gave it a whirl. Turns out they wrote it in macromedia director. and it sucks. It does what its … | |
Hello, I have an application with a db update dialog: a static text and two buttons. One of the button is bind with the [B]do_update[/B] method which uses multiprocessing module to run a long task in the background. To communicate from there, I use Publisher() class. A receiver for that … | |
In my header file I have: [CODE]#include <iostream> #include <string> using namespace std; class Customer { public: //Output void displayLabel(ostream &out);[/CODE] And in my main: [CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> #include "Customer.h" using namespace std; Customer cust; string blank = " "; string line; int start, end, … | |
Hi, I want to set Textbox1 to textbox 55 to .readonly =true by using says For loop,so i need not key in one by one. Any ways to do it? I know sonthing like [CODE] For index As Integer = 1 To 55 Me.b.Controls("Textbox" & index).Text = index Me.b.Controls("Textbox" & … | |
• shooter_clicked(x,y): This function is called when the shooter turtle is clicked on the screen. If the bullet not already moving, this function sets a global flag to cause the bullet to start moving upward. • Set the window dimensions and title. Call setup() to draw the window. • Set … | |
Hello I am learning how to use setString() for "?" and using passwords in resultsets. my password ends up with the error [icode]java.sql.SQLException: Invalid cursor state - no current row.[/icode] Can this error be corrected? thanks. [code] run: driver tableName from xml: org.apache.derby.jdbc.EmbeddedDriver in StudentDAO.JAVA and in connect of the … | |
Hi, how to write the MYSQL Query select count(*) from (SELECT user_id FROM `reports` group by report_id) as tb where tb.user_id=5 in Cakephp inside the Loop [CODE]$users=$this->User->find('all'); foreach($users as & $user): //for each $user['User']['user_id']; which gives the User ids as 1 2 3 4 5 ... endforeach; $this->set('users', $users);[/CODE] | |
How can I create links inside an email content? can you send me a code for that? | |
Hi friends..... As when i am doing this task and found know help .............. here i am putting steps for importing data from Excel sheet into SQL Server 2003. How to Import data from excel sheet to SQL Server Note : - Sheet should be exactly same as Table in … | |
I'm not sure this is really the right place for this question but I couldn't find a general programming forum. Why are the numeric values -1 and 0 used to represent the logical values TRUE and FALSE? No particular reason to ask this, I'm just curious! David | |
So I got bored and made a blackjack game. This is probably be the last thing I code in python before I move to C#!!!(so excited to learn it) The game() function is the main fuction all the rest are pretty self explanatory if you understand blackjack. My issue is … | |
My task was to create a leapyear program. The following was created: [code] def LeapYear(year): if year % 400 == 0: return True elif year % 100 == 0: return False elif year % 4 == 0: return True else: return False print (LeapYear(400)) print (LeapYear(1000)) print (LeapYear(1012)) print (LeapYear(2000)) … | |
hello. i have a code that looks like this: [CODE]$localdir = 'C:/somedir'; $dh = opendir($localdir); echo '<table><form method="post" action=""><input type="submit" value="Add checked" name="doneA" />'; while(($files = readdir($dh)) != false) { if ($files != "." && $files != "..") { echo '<tr><td><input type="checkbox" name="' . $files . '" /></td><td>' . $files … | |
Hi, What I want to do is, to take multiple sentences, and create a bar representing the sentence length, and under that bars for words, or string of interest. And this process will be iterated over a text, so I can get many graphs on top of each other representing … | |
![]() | Hi guys, Looking for opinions on what would be the best/easiest xml parser to use. Size and speed aren't really an issue here, just ease of use. Using std::strings as well would be beneficial. Please reply only if you've had experience using one. |
I'm wondering if i can make this shorter: [ICODE]if not link.startswith("javascript") and not link.startswith("mailto") and not link.endswith("pdf") and not link.endswith("ppt"): #do something[/ICODE] Cause this is getting VERY lengthy, very soon | |
Hi, this is a major stepup in programming for me so please bear with me. Using the Flickr API to generate photostream thumbnail images I need to parse the XML output to my application. I don't want to use a browser component if I don't need to but rather display … | |
please help i don't know how to delete multiple rows in mysql using checkboxes, because it seems the delete doesn't seem to work. here's the code: [code=php] <?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test_mysql"; // Table name // Connect … | |
I tried using this code below[CODE]if (choice == 6) main (); //takes the user back to the main method to the Main Menu[/CODE] but it won't compile. error message: [QUOTE]No applicable overload for the method named "main" was found in type "movitetogo". Perhaps you wanted the overloaded version "void main(java.lang.String[]args)throws … | |
![]() | I wrote this code for fun. Wanted to do such a thing so that I would be able to use this in the future. I'm kinda new to this forum. I like to know what you think about the code. If can point out some mistakes or ways to improve … |
Hello. I'm currently developing an IVR system under Asterisk through the Asterisk Gateway Interface (AGI), connecting to a Mysql server using the Mysql C API. The server returns a ticket number that I have to say to the client, so I developed a TTS (Text To Speech) algorithm to say … | |
Hello, I am currently trying to write a board game, and I am having trouble making each GameTile on the board access the same Point on the board. Each GameTile contains a certain number of Points, and sometimes Points overlap(the Point on a corner of one tile may be the … | |
Hi, How can I preview Word Document (located on FTP) in browser, without downloading the file to computer? I have found this [url]https://docs.google.com/viewer[/url] but it doesnt support doc/docx :( | |
Hello guys, I am asking a very simple thing to be done in my project (May be I've forgotten the syntax)......... I've taken a drop-down list in which diff. user-names are coming and added a delete button to delete the full row which contains the selected drop-down list user-name. I've … | |
In my application i have a view page(html or jsp) with five field (Qualification, Semester, Maximum Mark, Obtained Mark, Percentage). I have one add button, if i click on add button one java-script will be called and it will display a row in the same page with five column (Qualification, … | |
I have registered a new Tkinter module @ pypi. tkPickaColor is a dialog intended for Linux coders to provide a more full featured color chooser than is now available. I say for Linux coders since a better chooser is already available on the MS Windows side. It seems to be … | |
Hello to all, I've written this thread because I want to know the different content types used like................. [CODE] Response.AddHeader("Content-Type", "Application/octet-stream"); [/CODE] It was used for software and It was successful........But what for Music,Pictures and E-Books ??????????? Thanks in advance........... | |
Hello guys, I'm a newbie to asp.net....I've recently designed a website in which I've taken a gridview control and added a [B]button in the itemtemplate[/B] field of the gridview........What I want is that if anyone clicks on this button then the data in the particular row of the gridview comes … | |
I wanna get the data in the clicked row in column 4. I've tried with lv.selecteditems.tostring(); but that's wrong. Can someone please help me :rolleyes: . | |
I'm still trying to learn my way through send and recv with sockets in C. Now, I have a struct that I want to send over the socket. [CODE=c] struct myPacket { int a; double b; double c; int d; char e[80]; }; [/CODE] I have a client on a … | |
I know this doesn't really fall under computer science, but it's the only forum that this would make sense in. Is it just me, or does it seem like there are a lot of new programmers that don't understand basic terminology about their language of choice? I don't mean this … | |
Yeah, this is homework, but I have spent many hours and have asked many other students at my school to help and so far we haven't solved my problem. I am trying to write a program to figure out the first fit, best fit, and worst fit. I have randomly … |
The End.