199,114 Archived Topics
Remove Filter ![]() | |
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' … | |
I have a probelem - how to save information as a txt or js file and retrieve it later using only html or javascript . | |
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 | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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; … | |
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>"; … | |
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] … | |
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... … | |
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 … | |
| |
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! | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 , … | |
from where i start as I take experties over the wedb designing | |
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? | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … |
The End.