132,726 Archived Topics
Remove Filter ![]() | |
So, i'm working on a layout that has to be in xhtml.. i changed the extension from html > xhtml and i got this prompt.. "This page contains the following errors: error on line 15 at column 8: Opening and ending tag mismatch: link line 0 and head Below is … | |
import turtle import os import math import random import pygame #set up the screen wn = turtle.Screen() wn.bgcolor("black") wn.title("Space invaders") wn.bgpic("space_invaders_backgrounds.gif") pygame.init() #Register the shapes turtle.register_shape("ship.gif") turtle.register_shape("Enemy.gif") #Drawing my border border_pen = turtle.Turtle() border_pen.speed(0) border_pen.color("white") border_pen.penup() border_pen.setposition(-300,-300) border_pen.pendown() border_pen.pensize(3) for side in range(4): border_pen.fd(600) border_pen.lt(90) border_pen.hideturtle() #Set the score to … | |
Preconditions: Addresses of 2 integer variables are on the stack as the parameters. Sample c call: swap( &num1, &num2); You must implement the following C swap function: /* Swaps the two values pointed to by x_ptr and y_ptr. */ void swap (int *x_ptr, int *y_ptr) { if (x_ptr != y_ptr) … Software Development assembly | |
#include <stdio.h> void main() { char str[10], str1[10]; system("COLOR 74"); system("title Password Change "); system("mode con: cols=140 lines=30"); printf("\n\nWelcome to 'Jubayer IT Solution' Refresher'in C Programming App!!"); printf("\n\nType Your Desired Name and Hit 'Enter' Key to Create a New User!!\n\n>>"); scanf("%s",str); printf("\n\nType Your Desired Password and Hit 'Enter' Key to … Software Development c | |
I'm developing a login page for my web-based(asp.net)visual basics application, I want the user name entered on the login page be visible on a label on the redirected form. I page redirect depeding on various occations, for example if the entered user name is for a system administrator I want … Software Development vb.net | |
For all the above functions i get "`*****' was not declared in this scope". I searched days for an answer to find out what am i doing wrong, and what do i have to do to make it work, but all i could find, peaople saying: it depends on the … Software Development c | |
Hi DW. Is there anyone know how to detect a pre-recorded sound on an audio? What I mean is taking a face detection as an example. To recorgnize that face you need to first have the image you want to use to match or compare with on other image or … | |
I'm working on assignment that requires me to generate and store 50 random PPS Numbers in an array but I'm not sure as to how to go about doing this. Keep in mind that I'm not asking anyone to do this assignment for me, this is just the part I … Software Development ide java java-netbeans | |
Hi guys have a python software that i want to freeze for distribution. The problem is after freezing it with cx_freeze and i run it, it works fine on my development computer but when i sent it to my testing computer (window XP sp3 32bit) it give me this error … Software Development python windows-api | |
Hello Everybody I want to print the value of alternative element of a 2D array. For Example- 23, 54, 76 37, 19, 28 62, 13, 19 Output should be- 23 76 19 62 19 I am trying to get this output since 5 hours. Here is my code - #include … Software Development c++ | |
Write a python script for mass renaming music files according to labels. The script takes an existing format of files in current directory and an expected output format and prints a list of old -> new file name tuples. Format can be any string that contains any number of the … Software Development python | |
from PyQt5 import QtCore, QtGui, QtWidgets # Import the PyQt5 module we'll need import sys # We need sys so that we can pass argv to QApplication import design # This file holds our MainWindow and all design related things # it also keeps events etc that we defined in … | |
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy"); Date date = sdf.parse(d); Calendar cal = GregorianCalendar.getInstance(); cal.setTime(date); for (i=0;x>i;i++){ cal.add(GregorianCalendar.DATE, 7); String t = sdf.format(cal.getTime()); DefaultTableModel model = (DefaultTableModel) jTable1.getModel(); model.addRow(new Object[]{t,c}); } Software Development java | |
heyy can anyone please help me with this homework in java because i am new at this Create a program where it should appear in a dialog box your name,last name and the avarage of four exams :) Software Development java | |
i couldnt install numpy in python3.3 windows 7 i have installed setuptools bt easy_install is unavailable if i try to install NumPy i get an error like "Command "python setup.py egg_info" failed with error code 1 in c:\users\20149308 \appdata\local\temp\pip-build-b5n89o\NumPy\" Software Development python | |
I have an urgent assignment. It would be so great if anyone could help me with the codes of this as I am not able to understand this: Here's the question: Enumerations make it possible to define a new type that contains a limited number of values e.g. the TokenType … Software Development c | |
I have the below codes working for only the first user. The challenge here is; only the first user can change password, new users can't. Error Messaage "Old password is wrong" I am hoping that someone can assist me in correcting what I have already done to make it work. … Software Development | |
I'm about to make code that read the text file line by line, then store it to stucture, then use quicksort. But my code doesn't print anything. Here is my code and text file. #include <stdio.h> #include <stdbool.h> #include <string.h> #include <stdlib.h> struct city{ char nation[2]; char region[10]; char name[50]; … Software Development c | |
Project C++: A player engine for RPG fighting Hello everyone, I'm beginner programmer and got a task to finish but I'm lost. Please help me to start the project: An engine is needed to create a player and non-playable character objects. Players will require an inventory of Weapons, Armor, and … Software Development c++ | |
Sir Please help me about MenuStrip Control used. I create a project there one parents form and two child form MenuStripControl-1 is on parents form (main_form) Menu Item name a) Trans. b)Report c) Setting and MenuStripControl-2 is on child form (purchase_Entry_Form) Menu Item name a) File. b)Close I want to … Software Development vb.net | |
hi pple I am building this electronic role using an interface. during the course of designing the interface, tried running it just to see the look and feel of it and it is not showing can someone tell me why this happen. here is the code. havent start coding it … Software Development java java-swing | |
Hello Evreryone, I am new here and would love some help with a project I have. I have to create a MIPS program where we implement different funcntions. I was able to do strcopy but Im having trouble finding how to code the strchr, strcmp, and memset functions. Unfortunately I … Software Development assembly | |
Sir i am new in vb.net, plz help me how to create a new pop up window form in the same form? Software Development vb.net | |
Hello, so im trying to use PyQt5 on my windows 7 but I might not be doing it right or something. So ive done `pip install SIP` and `pip install pyqt5`. Following [this](http://projects.skylogic.ca/blog/how-to-install-pyqt5-and-build-your-first-gui-in-python-3-4/) post, Ive done `from PyQt5 import QtCore, QtGui, QtWidget` and I should have a **designer.exe** somewhere for … | |
Hi, first timer here so sorry before hand if I forget to mention something. My code run the window fine but when I hit the calculate button I receive an error message. Firstly this is my code package Chapter12; import javax.swing.*; import java.awt.event.*; public class TheaterGUI extends JFrame { JTextField … Software Development gui java java-swing | |
Hi, I want to find all the words(scabble words) that can be made out of given set of letters. ex: abnana results: a aa ab an baa ban banana na nab How could i achieve this? Do i need a binary tree? Plz some one help me... Software Development java | |
I am working on implementing a binary search tree as an array implementation, but I am having trouble with correctly printing out all of the students' records using the showAll() method and my application also doesn't print out anything for the insert and fetch methods. What am I doing wrong? … Software Development java | |
con.Open() cmd.Connection = con dataGrid.SelectedIndex = dataGrid.CurrentItem(0) MessageBox.Show("User Has Selected " & dataGrid.SelectedIndex) Dim id As Integer = dataGrid.SelectedIndex(0).cells("Appid").value.ToString() Dim fname As String = dataGrid.SelectedRows(0).cells("Fname").value.ToString() Dim mname As String = dataGrid.SelectedRows(0).cells("Mname").value.ToString() Dim lname As String = dataGrid.SelectedRows(0).cells("Lname").value.ToString() Dim fthname As String = dataGrid.SelectedRows(0).cells("Fthname").value.ToString() Dim mthname As String = dataGrid.SelectedRows(0).cells("Mthname").value.ToString() Dim … | |
how to reverse words in a sentence without using split or string tokenizer. I/p :- how are you O/p :- you are how Software Development java | |
i like c++, Is C++ enough to bring me a job or should i study something else? | |
NEED THE CODE FOR THIS: The University wants to make a basic graphical display to show how many people received different grades for a piece of work on a module. You are required to write a program in C++ that achieves this. The program is in a number of parts. … Software Development c++ | |
numbers = [2,3,1,5,7,8,9,5,4,6] print(numbers) tool_1 = int(input()) tool_2 = int(input()) x = numbers.index (tool_1) y = numbers.index (tool_2) numbers[x] = (tool_2) numbers[y] = (tool_1) print(numbers) So I want this code to run until the numbers list is in this exact order 1,2,3,4,5,6,7,8,9 Is there a Do until loop or someway … Software Development python | |
I am trying to write some symmetric cryptography for holding an FtpCredential in the database, unfortunately I am having a few problems, one of which is getting back gobbley gook from a crypto decoder. I have trimmed it down to just the bare minimum code. Please look at the SetPassword … Software Development | |
I was looking around the web for a "selectable label" in tkinter, everyone seems to point to a disabled text entry. I wanted to share mine thus far. I plan to modify this so that when the label is selected, you can click an "edit" button elsewhere in the program … | |
I am trying to a % in a printf statement represent 10%. How do I do that? My compiler warnings are complaining about it. I tried a backslash but that didn't work. printf(" 10\% of people \n"); Software Development c | |
Hello, this is my first post here. I'm playing around with Gtk+ and Xlib. I'm trying to get the X window ID of the active window, and then display that ID in a Gtk label. However, when I run it, it seg faults. I've narrowed it down to `XGetInputFocus`, but … | |
Hi every one. I am having some problem with calculation in datagridview. i have 3 columns in datagridview which are Date,location,Payment. What i want to do now is i want to calculate the total of the payment and my total is a textfield out side the data gridview under the … Software Development vb.net | |
There's no compiling errors but for some reason I'm always directed to the "Invalid Choice" option after inputing my desired password length. Any advice on how to repair this glitch? Thanks. import java.util.Scanner; import java.util.Random; public class Password { public static void main(String [] args) { Scanner in = new … Software Development | |
I am creating a reporting engine, it is kind of novel. **The only question I have is what are some of the wierder scheduling related things you guys have seen for you cyclical computer programs to date**. I am trying to cover as many fringe cases as I can, and … | |
Whats the best way to removes values from array of strings? Is it better to create a new array of strings or is there some way to remove them? Software Development c | |
Why does order matter with this if else if statement? if((row1 = mysql_fetch_row(result1)) && adding_to_member_flag != 1) { printf("Do not update date since it already exists\n"); } else if(!(row1 = mysql_fetch_row(result1)) && adding_to_member_flag != 1) { printf("Update end_date and add new team\n"); } When I had it like this the … Software Development c | |
Hey, i was just mucking around and improving my code etc and made a calculator, it's not the best calculator in the world, it only can handle 1 or 2 numbers but i think it's good my self :). Software Development c++ | |
We have an Access mdb database originally built in the late 90s. We currently use MS Access 2000 on Win7. Since switching to win7 from XP the database keeps getting locked and corrupted and we are unable to open it. We then have to revert to backup copies made days … Software Development microsoft-access | |
define an array with 12 month/rows and 31 days/columns for a year's temperature data in a main function. One subtask is to write a function and call it from main reading a text file with mean temperature data of one year and store read data into this array. For example, … Software Development c++ | |
I have a web application I am trying to obfuscate portions of it, but use library mode so that all the public portions of the application should appear with names unchanged so it is accessible to the web. So I am trying to obfuscate some parts and not others. The … Software Development asp.net visual-studio web-server | |
My second while condition is being ignored and I don't understand why. I would think I have 1 and 0 = 0 so it would break out. while(fgets(line, sizeof line, stdin) && sscanf_counter != 2) { } Software Development c | |
Hello there, I'm new to Java programming nd I wan't to learn more from it. May I ask you some tips in creating a Lucky Nine game in Java with AI as the other player. Thank you so much for you help. Software Development java | |
Hi, I want to start the command prompt window from my java program. Tried using Runtime but its not working.These are my codes : [code]String command = "cmd.exe"; try { child = Runtime.getRuntime().exec(command); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }[/code] Actually, its working when i … Software Development java |
The End.