199,114 Archived Topics
Remove Filter ![]() | |
Well this is my assignment for uni. I've done all the main and difficult bits- and now I cannot believe that I'm stuck at the simplest task. Im told to make a menu that gives user three options to choose from. Choosing option 1 will ask to choose from 3 … | |
If someone could help point me in the right direction, it would be much appreciated. My problem is merge sorting a list from a text file and outputting the sort into a different text file that the user chooses. The text file that's inputted is about a 20 item list … | |
I have the following code which prints my datagrid nicely. The problem is that it only prints the first page and cuts off everything thereafter. I know I need to implement the e.HasMorePages = True in some manner but I am unable to get that working. Here is my code: … | |
This is a program I am working on for homework and I keep getting this error and I'm not sure what I can do to fix it. Any help would be greatly appreciated. here is the error: Traceback (most recent call last): File "C:\Users\crazyjdog\Desktop\School Stuff\CSET 1100\Programs and Charts\program121.py", line 86, … | |
Hallo, I have a Java book from before Oracle took over Sun. In the chapter about pictures for buttons etc., the writer suggest to download a free to use icon set from java.sun.com/developer/techDocs/hi/repository Ofcourse this place does not exits anymore and the Oracle site is not clear to me where … | |
Getting a q is undefined.. I took <option="1">1</option> etc.. and now I'm pulling with ajax from datasrc.. I can't quite figure out how to define my database value.. The one uses query which pulls from the auto start typing.. then it submits to the other page through q - Once … | |
I'm getting this error in one of my scripts: **You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-25,25' at line 1** Below is part of the code any help would be great <?php … | |
Hey there, i'm relatively new to pyGame and considering this is like my second attempt at doing it by myself after watching a few tutorials, i'd say im getting the hang of it. However, as i was creating a game i realised i had no clue how to make the … | |
String query = "create table emails " + "(ID int, " + "To varchar(20), " + "From varchar(20), " + "Message varchar(50))"; this java statment looks right. but getting a syntax error. | |
Hi... I am using following query to get data from a table *select * from emp where ename regexp 'rajkiran'* It will return only the rows with ename=rajkiran but I want to select all the rows with ename =raj kiran & ename=rajkiran using a single query | |
At the minute I have code that allows the user to enter a reference number and it returns the record from the database matching that exact reference. But I would like it so that the user can enter only part of the reference and it will return all records that … | |
![]() | Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. It must start with: 4 for Visa cards 5 for Master cards 37 for American Express cards 6 for Discover cards In 1954, Hans Luhn of IBM proposed an algorithm for validating credit … |
Okay, sorry if it's a terribly easy/newb-ish task. But I really need this figured out, so I appreciate any help at all. I have a simple online exam task with just a couple of pages, just started learning PHP. The process is like this: 1.) a new user inputs his … | |
Hello all.. we can execute php files from the command line interface... but do we have anything using which we can execute the command line cmds from our php file?? Plz help soon.. | |
i already have xammp set up on localhost. and i also added a "mysql-connector-java-5.1.22-bin" file to m exlipse under "JRE SYSTEM LIBRARY" information on xammp: user name: "root" password: "" database: "a_upload" table: "user" in eclipse iam just testing my connection. but i get a error: SQLException: No suitable driver … | |
Hi there, I'm currently working on a site using [Big Cartel](http://bigcartel.com/) - an e-commerce online CMS. This means I'm limited to using their own proprietary language for grabbing data content (no PHP support etc...). I'm also using the [Supersized](http://www.buildinternet.com/project/supersized/) jQuery plugin to try and present present data to the user. … | |
Hi! I have a problem with getting error on update... What i have is - one table where i store my orders, and one table where i keep stock records. I managed to update the stock in my table with this piece of code but when i have for example … | |
This is a continuation of the last thread. I insert 3 files: Two bins (path and a number) and either a jpg or a bmp This does the following. 1: Connects to FTP and changes to C:/ (/) 2: It checks if a webfolder exists. If it is, goes to … | |
For a Class assignment i wrote a program that has to throw a logic_error and then catch it but my code doesn't work i don't know what am i doing wrong. #include <iostream> #include <iomanip> #include <exception> #include <stdexcept> using namespace std; std::logic_error; struct MyException : public exception { const … | |
I knew that I can use variable variables instead of reflection in PHP but I have never gone that way because my OOP background stated that this is not a clean way. Recently I made a test using both methods and the results made me rethink it. Using variable variables … | |
Hy, i am a new here. this is my first post.check this website http://www.abswheels.se/ below slider there is an 3 colunms Marke(Main category) , Modell (Sub Category) and Motor(Sub Category). You can see the default selected menu below slider. When you select other main category than sub category and 2nd … | |
Hello, I need a simple way to mail from OUTLOOK WEB APP not from OUTLOOK via a VB6 code. Anyone know how to do that? Any code/link avaliable? Thanks, Krunal | |
Hello! Sory for my English, i'am from Russia Please, Help Me... There is such code: #coding:utf-8 import wx import sys import time import cefpython class MainFrame(wx.Frame): browser = None def __init__(self): wx.Frame.__init__(self, parent=None, id=wx.ID_ANY, title='wxPython example', size=(1000,800)) self.browser = cefpython.CreateBrowser(self.GetHandle(), browserSettings={}, navigateURL="http://google.com") class MyApp(wx.App): timer = None timerID = 1 … | |
I have an app that fails because mscorlib is not installed from Net Framework 2 SP2 Without it, I get the following error: Could not load type 'System.DateTimeOffset' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The error can not be trapped in the runtime of the application, it appears when app … | |
So let's take "banana", what happens when the program gets to if (ch <= 'd')? My understanding is the 'b' is < 'd' so it moves to the else. Am I wrong or right? If I'm right, then what happens at return 1 + g(s, index + 1); public class … | |
I'm doing a delete page, and this part is the part where all the data were supposed to be echoed. but, the problem is I don't really know how to print the checkbox within the php. The line 6 is wrong. Kind men, do show me how to write it … | |
I am trying to create a program that takes an input from a user for a file name and then a text string and removes the string from the file. I have been at this one for a while and I have exausted just about every idea I had to … | |
Hi, so I'm trying to make a basic registration and everything shows up in the database (phpMyAdmin) except the password <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("sportcourt", $con); $sql="INSERT INTO user (firstname, lastname, password, … | |
hi everyone :) i dont know where i am doing it wrong...but cant upload my file...there is no error but its not saving the whole path in DB and not uploading anything in the directroy as well... please point me to riht direction tahnx :) <?php include("../includes/config.php");?> <?php $mediafile = … | |
I'm trying to write a program that will ask the user to input the number of values he wants, prompt him for the values and then print out the maximum value and the minimum value. This is what I have so far: count=1 echo "Enter number of integers" read n … | |
I have a project to calculate simple moving average of a data, and the data contains over 4000 values. And requires me to skip the first 14 days and calculate the simple moving average on rest of data. I never experience use moving average and ask me to use LINQ … | |
Hello again I am writing a program that takes the users input and finds that many primes; not the primes of the number from the user just that many. The problem is when I input the amount of primes to generate I don't get all the values from primes variable … | |
Hi, I am having trouble when I read in an integer from the keyboard and I try to display it to the screen back as the same integer. It pops out as an ASCII character. Am I doing this wrong or is there a way to read it as an … | |
import java.applet.Applet; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.Random; import javax.swing.JFrame; public class StartingPoint extends Applet implements Runnable, KeyListener{ public static void main(String[] args) { StartingPoint sp = new StartingPoint(); JFrame frame = new JFrame("My applet, as application"); frame.getContentPane().add(sp); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); sp.init(); sp.start(); frame.pack(); … | |
My teacher wants me to write a function called double cos(float); to compute the cos of an angle (given in radians) using the Taylor series shown. Your function should find the value of the cos for ANY angle (preferred) or at least angles up to 2 PI (Hint: if you … | |
Alright guys, brand new to the forum and I'm currently taking my first c++ course. I am not asking for anyone to do my homework for me, but I have been working on the same assignment for the past three days and have been unable to figure it out. Here … | |
Hey all, What I am trying to do is create a search by zip code form. When the form is submitted, it will search for members in nearby cities within the given radius. For example, I submit a form saying find me all members within a 20 mile radius of … | |
how should i save data like {username , passwords} to disk for later retrieval so that it cannot be opend and read in by a text editor? | |
Hi my name is Jakob and I'm new to programming. My project now is to make a game called Mastermind in Java Eclipse. Here is an explanation of what Mastermind is: [url]http://sv.wikipedia.org/wiki/Mastermind[/url] My game is going to be text-/number-based and it's just going to be able to run in the … | |
Good Evening. I'm building a C# application, as follows : a main frame that allows the user to popup sub-forms, each one containing a WebBrowser component that loads a flash animation. The problem is the following: whenever i simulate a click on the subforms, they popup in the foreground and … | |
typedef struct zoz { int age; int mag; int suly; } nevsor_t; int olvas(nevsor_t * pnevsor) { return scanf("%d %d %d", &pnevsor->age, &pnevsor->mag, &pnevsor->suly); } int kiir(nevsor_t nevsor) { return printf("%d year\t%d cm\t%d kg\n", nevsor.age, nevsor.mag, nevsor.suly); } int sort_age(const void *a, const void *b) { struct nevsor_t *ia = … | |
Hello all, First time poster here. I'm creating a website for class that essentially lets people register with a user name and password. Whenever they're logged in they will have the opportunity to go to a page called SubmitStory.aspx where there will be a textbox, lets say it's just called … | |
i need some help with my assignment the link is to the assignment [Click Here](http://www.cwu.edu/~schwing/cs361/CPPprog4.html) Complex.h #include <iostream> using namespace std; class Complex { private: double realPart; double imaginaryPart; public: //Default Constructor Complex(); //Parameterized Constructor Complex(double r, double i); double GetRealPart() const; double GetImaginaryPart() const; void printComplex(); }; test.cpp #include … | |
This is my php code, I was wondering if you could help me, <link rel="stylesheet" href="style.css" /> <script type="text/javascript" src="script.js"></script> <?php $cat = mysql_real_escape_string($_GET['category']); include '../includes/db-conns.php'; //The file is being accessed on the staging site $hostname = $hostname3; $username = $username2; $password = $password2; $databasename = $databasename3; $link = mysql_connect($hostname, … | |
**Background**: I have some experience in programming, but it's not a lot and not very good. I'm taking my first Java class this year, but because the pace is so slow I decided to just learn with the aid of the internet. This is how I have learned most of … | |
Seconds since epoch should be zero, but are not: '''timetuple1.py create a time tuple for epoch 1/1/1970 00:00:00 however, seconds since epoch does not give 0 ''' import time timetuple = time.strptime("01/01/1970 00:00:00", "%m/%d/%Y %H:%M:%S") print(timetuple) print('-'*40) # seconds since epoch 1/1/1970 00:00:00 secs = time.mktime(timetuple) print(secs) '''my result >> … | |
I'm developing a website wherein the user searches for a name and results will be in a list. Then there is a link where in the user will preview an email format, like a confirmation page and at the bottom is a send button. After the button is clicked, it … | |
Why do I get an error creating a temporary table with something even as simple as this:"CREATE TABLE #Results"? But this "CREATE TABLE Results" works. I thought we put # when we need to create temporary tables (Access), its like I've once done that. Help on that please? Thanks! | |
im traying to create a contact form (email). im using xampp. so i need something like HmailServer or something like this to send email to myself. can everybody told me how i can configure HmailServer. ![]() | |
Hello I am having an issue assigning a variable to a select box selection so that i can feed the variable back into future queries. Please see code below: <select name="room" id="msg-room"> <?php $query = mysql_query("SELECT * FROM rooms ORDER BY ROOM asc"); while($data = mysql_fetch_assoc($query)) { ?> <option value="<?php … ![]() |
The End.