199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kitten84

I have this webpage with many ads. Currently I have them appearing in a random order without repeating each time the page is refreshed. The code for that is here.. [code] <div id="ads"> <script type="text/javascript"> var i, images = []; // insert ads here images.push("<img src='Images/xxxxx.jpg' alt='' />"); images.push("<img src='Images/xxxxx.jpg' …

Member Avatar for Kitten84
0
172
Member Avatar for MANASkumarverma

I have a probelem - how to save information as a txt or js file and retrieve it later using only html or javascript .

Member Avatar for fxm
0
112
Member Avatar for jmangu

I'm trying to find the curses.h library over the internet and so far I haven't any luck. Please help me sending the code for Windows OS. Many thankx in advance. jmangu

Member Avatar for jonsca
0
124
Member Avatar for EmilyKirby

I have an assignment for a class that wants me to read lines from a file and output a count of the vowels and whitespaces per line, and also count a total of characters in the entire document so I can calculate a % of vowels used overall. I did …

Member Avatar for jonsca
0
79
Member Avatar for whiteyoh

Hi All, At the minute I have a script, that ill post below, that simple echos out some information via ajax. My question is, how do i get the update without using meta refresh and without clicking anything at all? [code] <html> <head> <script type="text/javascript"> function showHint(str) { if (window.XMLHttpRequest) …

Member Avatar for whiteyoh
0
124
Member Avatar for Mitja Bonca

I would like to know why sql query for month and year is working, and i[B]s not working for day[/B]: [CODE] string myQuery = "SELECT StudentName FROM Students WHERE " + "YEAR(Birth) BETWEEN @yearFrom AND @yearTo AND " + "MONTH(Birth) BETWEEN @monthFrom AND @monthTo AND " + "DAY(Birth) BETWEEN @dayFrom …

Member Avatar for finito
0
120
Member Avatar for echellwig

Hi, I'm looking to break up a file with space delimiters. Its really just a list of numbers with spaces in between them, and I need to put each of the numbers in a list as separate entries. However, they are all on one line like so: 5 7 6 …

Member Avatar for echellwig
0
180
Member Avatar for kiranbvsn

Hi, I am working on a project in which i've to identify a textbox value, The end user may enter a date (dd\mm\yyyy) or may enter a ticket number (alphanumeric:ex:'VD103'), can anyone tell me how to distinguish the date or string values entered in the textbox so that depending upon …

Member Avatar for finito
0
123
Member Avatar for bbman

Hey, I apologise for the noobishness of this question, but I am unable to move the form. [CODE] if (Screen::PrimaryScreen->Bounds.Top != Screen::PrimaryScreen->WorkingArea.Top) { this->Left = Screen::PrimaryScreen->Bounds.Right - this->Width; this->Top = Screen::PrimaryScreen->WorkingArea.Top; } else if (Screen::PrimaryScreen->Bounds.Left != Screen::PrimaryScreen->WorkingArea.Left) { this->Left = Screen::PrimaryScreen->WorkingArea.Left; this->Top = Screen::PrimaryScreen->WorkingArea.Bottom - this->Height; } else { this->Left …

Member Avatar for jonsca
0
130
Member Avatar for fraenckel

I need to write some software to catalog files in a directory hierarchy. The directories of this hierarchy nominally follow this structure: Country City Technology_Type Date Files are then placed under the Date directory. The problem is that until now, files are copied into the hierarchy manually. Occaisionally files have …

Member Avatar for fraenckel
0
111
Member Avatar for lewashby

[CODE]from Tkinter import * import pygame.mixer sounds = pygame.mixer sounds.init() correct_s = sounds.Sound("Correct.wav") wrong_s = sounds.Sound("Wrong.wav") number_correct = 0 number_wrong = 0 def play_correct_sound(): global number_correct number_correct = number_correct + 1 correct_s.play() def play_wrong_sound(): global number_wrong number_wrong = number_wrong + 1 wrong_s.play() app = Tk() # creat a tkinter application …

Member Avatar for SgtMe
0
354
Member Avatar for madzam

I'm took an fundamental of C++ . Here is my code, could you please help me to point out the error . Thanks [CODE]#include <iostream> #include <cstdlib> #include <iomanip> #include <string> using std::cout; using std::cin; using std::endl; using std::string; using std::fixed; using std::setprecision; int main() { int unit_of_desks = 0; …

Member Avatar for nbaztec
0
115
Member Avatar for aynamohol

I know, Here is something wrong in Image Output Section. Please, Help me to correctly show the images to 3rd no. column. [CODE]<html> <head> </head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <body> <?php include ('cont.php'); $result = mysql_query("SELECT * FROM productinput") or die(mysql_error()); echo "<center>"; echo"<table width='500' border='1' cellspacing='0' cellpadding='0'>"; echo" <tr>"; …

Member Avatar for aynamohol
0
112
Member Avatar for capson

Hello, I am trying to sum lists if a condition is met, not working, not sure why, I end up with PN=[0,0,0,0,0,0,0,0] which is it's initial condition and should be PN=[1,1,1,1,0,1,1,1] as PN0 and PN1 satisfy the condition PNi.count(1)<2, so PN+PN0+PN1 = [1,1,1,1,0,1,1,1]. Thanks. [CODE]>>> PN0=[0,0,1,1,0,1,0,1] PN1=[1,1,0,0,0,0,1,0] PN2=[0,0,0,0,1,0,0,0] PN=[0,0,0,0,0,0,0,0] NULL==[0,0,0,0,0,0,0,0] …

Member Avatar for capson
0
118
Member Avatar for emcyroyale

Hello everyone I post last night with this same code, and I got a lot of advice. But there are 3 more errors that persist after I changed the code a bit. Anyone know whats wrong? Here are the errors: 1>------ Build started: Project: circle, Configuration: Debug Win32 ------ 1>Compiling... …

Member Avatar for jonsca
0
171
Member Avatar for yottameter

I've run into linking problems before, so I thought I had them figured out. This one I'm using every tool I have, but I can't seem to identify what the issue is. Did a build from the yaml site yesterday, I keep getting this linking error at runtime. I set …

Member Avatar for Jason Butler
0
203
Member Avatar for dhruv_arora
Member Avatar for dhruv_arora
0
117
Member Avatar for sahasrara

Hi ladies and gentelmen Merge sort program has 3 function . 1-func that sorts first array ascending 2-func that sorts other array descending 3-func that merges these arrays together I wrote it by Borland 5.02 . Good Luck!

Member Avatar for sandros
0
167
Member Avatar for TommyRay

Hi, I am using VS2008 and for the project I am creating, I have a "settings" text file I am using to save user defined settings like color theme, homepage, etcetera. It works fine, however, I am unsure as to how to handle the eventual distributed apps' destination folder/file. Creating …

Member Avatar for TommyRay
0
152
Member Avatar for asad_80

Hi, I am building a game in which i have used array for applying 52 button, which works fine.But when i try to use Action Listener with the array of button and try use setEnable(false)or true it does not work.I am also sending my. [CODE] import javax.swing.*; import java.awt.BorderLayout; import …

Member Avatar for NormR1
0
146
Member Avatar for Trebron

Hi Guys I hope someone can help I have a form that loads a gridview at runtime based on users logon names which is pretty easy the data I load lives in an excel document, I want to be able to read the data from the datagrid view I loaded …

Member Avatar for Oxiegen
0
193
Member Avatar for becon

Dear all I would like to read every file in a directory, if each file contains a line 'KAC 50' I will write to an output file. My code below write all the out output into only 1 file. How can I have many output files corresponding to the input …

Member Avatar for becon
0
717
Member Avatar for knox76

i am trying to invoke a servlet from a midlet both residing on my computer but i get an exception javax.microedition.io.ConnectionNotFoundException: TCP open The connection string "http://localhost:8080/servlets-examples/servlet/HelloServlet" works pretty well in the mozilla browser but fails in the midlet what could be the problem and how can i solve it?

Member Avatar for knox76
0
127
Member Avatar for darksmokepunch

I'm creating a text-based rpg and I'm having some trouble... What I would like to do is implement a room type that would store description and among other things, have a navigation system (I.E. GO NORTH). Since I'm using c++, I've gone ahead and created a rooms class.. but that's …

Member Avatar for darksmokepunch
0
127
Member Avatar for muthumari

Hi..... How to access the MySql using servlet.... Now am using Mysql 5.0 & MyOdbc 3.51 What type of connector to be used?... We used the following syntax..is it correct?or not? Class.forName("org.gjt.mm.mysql.Driver"); Connection cn=DriverManager.getConnection("jdbc:mysql://192.168.1.38:3306/suba","root","erp"); Whenever i execute this program i got the error like this [B]ClassNotFoundException: org.gjt.mm.mysql.Driver[/B]

Member Avatar for tyson.crouch
0
278
Member Avatar for judithSampathwa

hi there, my project is a desktop application, i am trying to transfer(upload) a file(can be excel,doc,txt pdf) to another sql server in another computer in the same network how can i do this in C#.net desktop application, i am not using web service or asp.net how can i do …

Member Avatar for judithSampathwa
0
126
Member Avatar for Feisu

Hello.everyone. I met a problem today and search for a long time without any luck:( I want to limit length in textbox. not total maxlength but maxlength perline. for example. if I choose to limit 7 char per line. when words exceeded 7 in a line textbox will start a …

Member Avatar for apdbrl1
0
947
Member Avatar for crackerjacker

hi- currently i have a small (LAN only) web server running on my computer, and i would like to be able to make a web page in which i can run a program on the server computer from another compuer. say, for instance, i click a button on the web …

Member Avatar for crackerjacker
0
3K
Member Avatar for sastudent

I call the getTitle function but it only returns the last DB value. I presume that is because there are many rows in the DB with the same 'code' However when I call the function I want to get all the values for TITLE where code is something in the …

Member Avatar for sastudent
0
123
Member Avatar for gangster88

atlast I have managed to get some working code but the first problem is that I have is taht.. when I call draw(2,4) I have a column of 2 circles and 4 rows and I would actually like it to be a clomun of 2 and row of 4. Secodly …

Member Avatar for gangster88
0
183
Member Avatar for mikecronauer

I am trying to set up a web based tool for my wife and I to use to balance our checkbook together. I am using HTML, Javascript (Ajax), PHP and MYSQL. I have read beginner books on all of these subjects, I can get data out of MYSQL, BUT can't …

Member Avatar for mikecronauer
0
150
Member Avatar for akulkarni

Hello, I downloaded a theme from wordpress and uploaded it to my domain server i keep getting this error Fatal error: Call to undefined function get_header() in /home/changeis/public_html/index.php on line 1 please guide

Member Avatar for akulkarni
0
90
Member Avatar for michellemullen

I've got a C assignment to make a "Rolodex" project. I wrote out the whole assignment just so you would understand the scope. I'm just getting going on this. Last week's lecture was about Dynamic Self Referential Lists in C, so I get the concept of what I'm supposed to …

Member Avatar for ravi.d
0
327
Member Avatar for RPA

Does Anybody know how to use C++ to get information from a database? I have this assignment due but , I do no know to incorporate a database into my program. My program is to allow a user to choose from NFL football teams,when the user picks the team , …

Member Avatar for rcorcs
0
260
Member Avatar for Azamcsn32
Member Avatar for vaultdweller123
0
68
Member Avatar for Virangya

Hello.. I need to query out most demanded products from my database... i have order table(order id, date, ...), orderitem table(order id, product id and quantity), and product table.. i don't understand how to write a query for this.. can someone kindly help me?

Member Avatar for Virangya
0
150
Member Avatar for iamchamith

Hi friends, I have some question about asp publish web site I was create web site using asp.net 2.0 with backend as c#.net then i publish that web site & give published files to the web server who host my web site on internet...then i access my file via browser,there …

Member Avatar for MichaelWClark
0
189
Member Avatar for whiteyoh

Hi All, I have a list of entries from users and want mysql to only display entries that are unique. The mysql statement is as follows [code] SELECT DISTINCT bids FROM `tbl_bids` ORDER BY `bids` ASC [/code] On running the query it is still displaying items that appear more than …

Member Avatar for vaultdweller123
0
103
Member Avatar for lm111

Hi, I'm having problems applying my 'AsciiToString' function to the DataView. I tried this AsciiToString(filter); but that did not work because the text 'publisher LIKE' was in the way. Any idea how I can remove that from my filtered string? Thanks. [code] private void BindRepeater(string term) { DataSet ds = …

Member Avatar for lm111
0
155
Member Avatar for darelet

Hi all, I've been trying to work on solving this myself but failed short of new ideas. I am experiencing memory heap errors ever since I tried to transfer some functions (for calculating statistics i.e. getMode/getMean/getVariance) into a new class in the spirit of OOP. Compiler error is... --> This …

Member Avatar for mitrmkar
0
383
Member Avatar for shadiadiph

Hi I have been playing with this regex for a few hours now I want to make it so it accepts commas also any ideas? [code] var regname=/^[a-zA-Z\.\-'\s]*$/; [/code] At the moment it works with A-z and - . ' but can't seem to figure out how to include commas …

Member Avatar for shadiadiph
0
257
Member Avatar for virusisfound

Hi, I have develop a program in C# windows Application & now The problem is My Login form is designed on form4 I want to run form4 first after that i want to run the other forms but when i run the program form1 is run automatically. acually in coding …

Member Avatar for nick.crane
0
109
Member Avatar for muralibobby2015

hello.. i am doing group shopping cart. in this every product have group length. for suppose group length is 10 for abc product. then 8 members are registered for that product with there credit card details. when ever group length is reached to 10( group lenth means buyers of that …

Member Avatar for muralibobby2015
0
95
Member Avatar for capson

Hello, can someone please tell me why this simple if ststement dose not run [CODE]>>> VList=[0,0,1,0,1,1,0,0] >>> if VList.count(1) < 5: print('Yes') else: print('No')[/CODE] The VList.count(1)works so not sure what is wrong, but I think that's were the code is crashing. Thanks

Member Avatar for capson
0
96
Member Avatar for muralibobby2015

hello... i am doing private chat concept. i want to alert beep sound when new user comes in chat console. how to do? i am displaying every thing when new user comes in user details will comes at admin side. but at the same i want to alert beep sound …

Member Avatar for muralibobby2015
0
78
Member Avatar for memstick

I'm growing increasingly confused by the '^' symbol. I have been able to track it down on various sites but there is no real "definition" of it and its usage anywhere. I am creating a .NET project these days and I bumped into the symbol for the first time in …

Member Avatar for memstick
0
89
Member Avatar for rajeesh_rsn

Hi, I made a web application and I am passing variables like this [CODE]www.mysitename.com/index.php?variableName=120[/CODE] but I found in some web sites that the url like this [CODE]www.mysitename.com/120[/CODE] I don't have any idea about this. Can any one tell me how can I do this in my website also Thanks in …

Member Avatar for Manuz
0
117
Member Avatar for gurpreet_ka

i am using javascript to print a pdf. when i click on print button,the pdf is generated nd saved somewhere and after that javascript code runs. This javascript opens the pdf and closes it(opens for a fraction of second) and then again open the same pdf with printer popup screen. …

Member Avatar for Taywin
0
108
Member Avatar for Simes

Guessing Game with functions, classes, methods, etc [CODE=python]#Code should always be in a method or class #Always start variable names with lowercase, classes could be capital #input.upper() allows the user to use lower or upper case for each option import random from operator import itemgetter def isint(x): try: int(x) return …

Member Avatar for TrustyTony
0
281
Member Avatar for Designer_101

Hi, Any idea how this effect is acheived or how a similar one can be: Like when posting a website on facebook it takes a screenshot of the website and holds it in a thumbnail image to display it back to the user. I need my users to be able …

Member Avatar for pritaeas
0
67

The End.