199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kingcoder210

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 …

Member Avatar for meffe
1
263
Member Avatar for bebe11bebe

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 …

Member Avatar for haseena04
1
3K
Member Avatar for vegaseat

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.

1
2K
Member Avatar for SergioGP

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.

Member Avatar for shopprojectw
1
460
Member Avatar for Ramy Mahrous

I got yesterday a question how to get average date from list of dates, and here's my answer.

1
771
Member Avatar for chound
Member Avatar for WASDted

[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 …

Member Avatar for AmericanRogue
1
556
Member Avatar for sugikrish

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> …

Member Avatar for rajarajan2017
1
245
Member Avatar for u74

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.

Member Avatar for raju.kona
1
117
Member Avatar for preethis
Member Avatar for absolutely
1
536
Member Avatar for dualdigger

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 …

Member Avatar for amrith92
1
499
Member Avatar for iamrashid

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

Member Avatar for vmars
1
133
Member Avatar for PierlucSS

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 …

Member Avatar for PierlucSS
1
239
Member Avatar for jib
Member Avatar for jib
1
4K
Member Avatar for jib
Member Avatar for kararu

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?

Member Avatar for rajarajan2017
1
261
Member Avatar for katmai539

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 …

Member Avatar for katmai539
1
210
Member Avatar for jib

[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 …

Member Avatar for jib
1
109
Member Avatar for Diamonddrake

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 …

Member Avatar for Diamonddrake
1
121
Member Avatar for xcristi

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 …

Member Avatar for xcristi
1
1K
Member Avatar for yongj

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, …

Member Avatar for mitrmkar
1
166
Member Avatar for Anigmalee

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" & …

Member Avatar for crazyhorse09
1
1K
Member Avatar for jib

• 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 …

1
5K
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
1
1K
Member Avatar for arunajasmine

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]

Member Avatar for marck_don
1
171
Member Avatar for rime
Member Avatar for rstill1
1
11K
Member Avatar for sbv

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 …

Member Avatar for sknake
1
230
Member Avatar for David Mac

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

Member Avatar for David Mac
1
129
Member Avatar for nsutton

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 …

Member Avatar for nsutton
1
228
Member Avatar for vandalised

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)) …

Member Avatar for griswolf
1
2K
Member Avatar for Deey

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 …

Member Avatar for Deey
1
101
Member Avatar for aint

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 …

Member Avatar for TrustyTony
1
415
Member Avatar for iamthwee

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.

Member Avatar for scrontch
1
234
Member Avatar for Aeronobe

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

Member Avatar for vegaseat
1
169
Member Avatar for Cap'nKirk

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 …

Member Avatar for Cap'nKirk
1
173
Member Avatar for fortiz147

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 …

Member Avatar for light-man
1
341
Member Avatar for flyingcurry

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 …

Member Avatar for fabunmi adeniyi
1
3K
Member Avatar for Sinaru

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 …

Member Avatar for mrnutty
1
187
Member Avatar for ContactaCall

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 …

Member Avatar for saurabhjasuja
1
343
Member Avatar for smkdude

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 …

Member Avatar for smkdude
1
166
Member Avatar for danielkull

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 :(

Member Avatar for chrishea
1
107
Member Avatar for KushMishra

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 …

Member Avatar for rohand
1
199
Member Avatar for Santho786

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, …

1
102
Member Avatar for strider1066

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 …

1
107
Member Avatar for KushMishra

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...........

Member Avatar for dnanetwork
1
108
Member Avatar for KushMishra

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 …

Member Avatar for dnanetwork
1
210
Member Avatar for Visslan

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: .

Member Avatar for kvprajapati
1
12K
Member Avatar for aiosarem

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 …

Member Avatar for Salem
1
6K
Member Avatar for Sodabread

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 …

Member Avatar for jwenting
1
162
Member Avatar for lmb004

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 …

Member Avatar for kvprajapati
1
3K

The End.