199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 1337RAM1337

[CODE]def windchill(V,T): wc = 35.74 + .6215*T-35.75*(V**.16)+.4275*(V**.16) we = round(wc,2) return we def main(): print(" Temperature \n") print("Speed \n") print("---- -20 70 10 0 10 20 30 40 50 60 ") for V in range(0,55,5): print(V) for T in range(-20,70,10): wc = windchill(V,T) print(V, "{0:1.1f}".format(wc), end="") main()[/CODE] Its python 3, …

Member Avatar for 1337RAM1337
0
593
Member Avatar for kwajo

i need some help with this code please :) when i run this code the output after each time the nested loop runs should look like this: {'gender': 'Female', 'age': 9, 'fur': 'Brown', 'name': 'Savannah'} {'gender': 'Male', 'age': 9, 'fur': 'White', 'name': 'Thumper'} {'gender': 'Male', 'age': 8, 'fur': 'Brown', 'name': …

Member Avatar for kwajo
0
487
Member Avatar for SasseMan

Hi! I'm looking for a way to make an application (app1), separate from another java application (app2), that can acces the GUI of app2 and also listen to all events that are passed to app2. I would like to be able to get hold of the frame of app2 so …

Member Avatar for jackmaverick1
0
155
Member Avatar for 3FatCats

The assignment requires program to read from a file into an array, use two boolean functions to validate certain data (set to "true" when there are no errors) then output any errors to a separate file. Everything works fine except for validating the rate. All the numbers are read into …

Member Avatar for 3FatCats
0
244
Member Avatar for gg3l

Hi, This is a demo of what I'm trying to do: [CODE]<html> <head> <script type="text/javascript"> window.onresize = resize; function resize() { if (document.getElementById('elm1').offsetWidth < 1000) { document.getElementById('elm2').style.width = 1000 } if (document.getElementById('elm1').offsetHeight < 600) { document.getElementById('elm2').style.height = 600 } if (document.getElementById('elm1').offsetWidth > 1000) { document.getElementById('elm2').style.width = "100%" } if (document.getElementById('elm1').offsetHeight …

Member Avatar for raphie
0
244
Member Avatar for psvpython

Hi, I am using Python 2.4 on Windows. I'm trying to save the contents of the debug window. I managed to redirect all print statements so that it prints on the debug window as well as saves a copy into a text file. The code is shpwn below: [CODE] import …

Member Avatar for Gribouillis
0
2K
Member Avatar for psvpython

Hi, I'm working on Python 2.4 and use tkinter to build my GUI. I want to display content(line) from the listbox only when it is selected. [CODE] def get_list(event): # get selected line index index = Listbox.curselection()[0] # get the line's text seltext = Listbox.get(index) print seltext Listbox.bind('<ButtonRelease-1>', get_list) [/CODE] …

Member Avatar for vegaseat
0
3K
Member Avatar for scarletfire

HI I was wondering what is wrong with this piece of code as it compiles but then it prints java.lang.null exception in the terminal. and it prompts the red line. I am basically trying to create a ticketoffice class that would store information of 3 users who are only allowed …

Member Avatar for hfx642
0
126
Member Avatar for tomtetlaw

I don't really know what to ask here because the only indication I have that there is something wrong in my program is that nothing is showing on the screen. I'm loading a .obj model (it's just a cube, and i've checked all the verts/faces and they're all proper values) …

Member Avatar for tomtetlaw
0
143
Member Avatar for yurigagarin

Hi all, I have this code here and I like to save all the messages into 1 text file name contimer.txt. I've tried to do [CODE] FILE *output fopen(output,"comtimer.txt", "ww"); [/CODE] right before the function Timer 1 and change every "printf" function into fprint_s(f, "Message", variables) but it does not …

Member Avatar for yurigagarin
0
225
Member Avatar for pikalife

how do you write the "go to" command in java? like a command that allows me to go back to a previous part of the program and rerun the program in a loop?

Member Avatar for hfx642
0
8K
Member Avatar for srinidelite

Hello EveryBody, Today i planned why not myself to do project in php... The idea behind in this is ... to avoid people just like that answering questions in objective type.. like if a person who ans a question who suppose to ans further Q..Who discovered php? a.ramus b.denis c.srini …

Member Avatar for Stefano Mtangoo
0
241
Member Avatar for tgr0ss83

I have the following PHP code [CODE]<?php // SimpleHTMLDom Library require_once('simple_html_dom.php'); // Source Data $source = 'table-array-data.htm'; // Displays Extra Debug Info $dbg = 1; // Read DOM $html = file_get_html('http://www.ercot.com/content/cdr/html/real_time_system_conditions'); // get the table. Maybe there's just one, in which case just 'table' will do //$table = $html->find('#theTable'); // …

Member Avatar for Stefano Mtangoo
0
300
Member Avatar for Dancer90

I am doing a project in class for computer science. I have to make a hangman game that consists of the following: Get the words from a file and pull in the next word after each game, display the word as dashes for the user to guess, prompt the user …

Member Avatar for joehms22
0
377
Member Avatar for Metophase

Hey guys whilst I was trying to solve this issue I came across your thread which I found helpful to an extent, basically I spent hours reading up and realised that the solutions you provided doesn't do what you actually wanted it to do so here I offer my solution. …

Member Avatar for Taywin
0
252
Member Avatar for ndeniche

I'm developing a web app in which I have a file upload option. The thing is, my file input is hidden, and instead, a textbox and a button are used, in order to style the input, copy the file input's value and allowing the user write a link address into …

Member Avatar for ndeniche
0
336
Member Avatar for juniorsilver

I was wondering if there is a code i could add to my applicatio that will delete a data entry from a database. I'm designing a voting application as my project and i want a situation where an access code is good for only one entry. i put my code …

Member Avatar for adam_k
0
143
Member Avatar for Frankey

I am retrieving a string in json format from a php file and assigning it to a var in javascript string = {"name": "piet", "id": "45"} how do i convert this string into a real json object?

Member Avatar for MartinRinehart
0
101
Member Avatar for tendaishava

Hello Team i am a newbie in c#, i have was asked to come up with a program that extracts information from websites and stores in txt, or any other readable format. now i managed to do the program. my problem now is i am extracting information from a site …

Member Avatar for gusano79
0
674
Member Avatar for Revlis

Hi all, So my task was to build basically photo-based department org-charts for a SharePoint 2007 environment. Not sure why I was asked to do this as the last time I web designed was when Netscape 4.0 and IE4 were still duking it out, but whatever. I inserted my images …

Member Avatar for Revlis
0
2K
Member Avatar for caut_baia

Hi.I get the following error "g++: error: CreateProcess no such file or directory" whenever i try to compile a program.I have installed the MinGw 7.2 version at work on a windows machine and the problem does not occur , however after installing windows SP3 on my home computer i get …

0
219
Member Avatar for Tsuchino

Hi everyone, I'm a fairly new Java student and I need some help regarding subclass. This is what I'm trying to do: Basically, I created a Superclass called Person, and from it I created a subclass called CollegeMember. Now, I need to divide the CollegeMember subclass to "Lecturer", "Student" and …

Member Avatar for Tsuchino
0
103
Member Avatar for toneatles

Hello all, U have a project that I am trying to figure out how to start, I don't have very strong programming skills, so I'm actually quite lost here. Any help is appreciated. Basically here is what I have to do: 8 processes are characterized by 5 readers and 3 …

Member Avatar for raptr_dflo
0
412
Member Avatar for AngieS

With the code below I have the plant information printing out first and then all of the availability printing out last. Is there any way I can get both printing together, but not have duplicate pictures and information for the numerous sizes that sometimes list per plant. Ex. Buxus Green …

Member Avatar for diafol
0
208
Member Avatar for ChristianOncken

i need a example or sample code about text.dump (???) input values -> automatic text ---> automatic tags --> save (.doc , .txt) but when i save the text, the file dont get the tags.... like this example: input in text widget: I [B]love[/B] you [U]girl[/U] the output in (.doc …

Member Avatar for ChristianOncken
0
234
Member Avatar for prabhjitsw

Hello Everybody ! i have a few questions for u I have already made an appointment booking website on PHP using PHP Designer as editor and on WAMP platform, i run it on localhost. The website consults Database and puts forward the times available and lets users fix appointments and …

Member Avatar for chrishea
0
257
Member Avatar for garu525

I'm having an error "a value of type "double" cannot be used to initialize an entity of type "double *" Any tips? Thanks! [CODE]#include <iostream> #include <string> using namespace std; struct sample { string name; double *num; unsigned elements; }; int main () { sample x = {"Dude", [COLOR="Red"]{1, 2, …

Member Avatar for garu525
0
5K
Member Avatar for NoMoreRobots

I'm currently trying to learn OpenGL with the use of GLFW and the Addison Wesley book 'OpenGL Programming guide 7th edition'. Here is one of the first sample programs they present, it is meant to draw a white box. In this example I mixed it with a simple glfw window …

Member Avatar for NoMoreRobots
0
865
Member Avatar for dave013

think of a number and allow the user to guess it [code]import java.util.*; public class ThinkNumber { public static void main (String args[]) { //generate number in range 1 - 100 //prompt user to enter guess //loop until correct number is guessed //check guess and output hint //guess is correct …

Member Avatar for strongguy12345
0
134
Member Avatar for sasho648

My question is why fstream can't read 0x1a. For example make a test file and inside it write in HEX editor 30 1A. [CODE]#include <iostream> #include <fstream> typedef unsigned long DWORD; using namespace std; fstream myfile; template <class T> T grad(T value, int step) { T val(value); if(!step) return 0; …

Member Avatar for sasho648
0
366
Member Avatar for bbman

Hi all, here's a kinda bullet-pointy explanation of what i have - I have a simple JFrame - I create a JPanel called 'ContentPane' [CODE]contentPane = new JPanel(); contentPane.setBackground(SystemColor.window); contentPane.setBorder(new LineBorder(SystemColor.inactiveCaption)); contentPane.setLayout(null); setContentPane(contentPane);[/CODE] - the JFrame has a [CODE]JMenuBar -> JMenuBar -> JMenuItem[/CODE] - The JMenuItem has a MouseListener and …

Member Avatar for JamesCherrill
0
167
Member Avatar for s_r_k

I'm doing a project for school and I've run into a problem. I have to reset values of a cylinder (height and diameter), back to the values used in the default constructor within a function. Here is what I have so far: My Class [CODE]class cylinder { public: cylinder(); cylinder(double …

Member Avatar for Schol-R-LEA
0
763
Member Avatar for bilal_fazlani

i know crystal reports can access data stored database.. what I want is actually to create a report on the basis of a listview values..no database at all. how do I pass these listview items and subitems to crystal reports... please help guys..

Member Avatar for bilal_fazlani
0
126
Member Avatar for bigredaltoid

Hi..me again. I am trying to incorporate this function which counts the periods into the code..however, I can not get the code to output both the line count, blank line count, and period count at the same time. This is my 3rd or 4th try at adding this into the …

Member Avatar for woooee
0
145
Member Avatar for champaned_out

I am currently working on a small project with Fibonacci numbers and it requires me to report an error when given a negative numbers. This is the assignment my professor gave me, "The program is not assured of receiving good data, thus if -2 is received as the number of …

Member Avatar for WaltP
0
126
Member Avatar for geekman89

Hello everybody. I am in need of an answer. How can I use the text from a string and use it as a variable's name? For example: I have an array: int xyz[] = new int[5]; And say I want to check if it's name is the same as a …

Member Avatar for geekman89
0
501
Member Avatar for canarian

Hello! I need to ask password to user, to get administration rights for my java application when it works under linux (or any POSIX). Can someone help me about that? Thank you!

Member Avatar for Taywin
0
95
Member Avatar for scamquist

I have an intranet using php 5.3.8 on Server 2003 using IIS 6.0 and SQL 2005. I run a command to call a batch file that starts and stops sql server and then calls a stored procedure to delete records from a table Items and then refreshes the records from …

Member Avatar for scamquist
0
216
Member Avatar for efronefron

the problem is if you increase buff size and also change the buff size in a3_fgets_2 function call to more than 15, the program will run in an infinite loop, Can anybody tell me why? Thanks [CODE]#include<unistd.h> #include<string.h> char * a3_fgets ( char * str, int num, int fd ); …

Member Avatar for efronefron
0
267
Member Avatar for ganeshan23

Hi Friends , This is Ganeshan . I Found the Below undefined errors when using Socket programming on Eclipse IDE . I don't know what to do ?. Kindly please help me in removing the Errors . [Linker error] undefined reference to `WSAStartup@8' [Linker error] undefined reference to `socket@12' Thanks …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for ToweyLeake

Hello again. I am hitting a brick wall. I am to read data from a file, store the data in three arrays respectively, and then calculate and display the average of the numbers in column 2 and 3. These are the things I know: Read my data from file. Use …

Member Avatar for ToweyLeake
0
198
Member Avatar for Misbah khan

have two form in one form i salect some thing and click on done button a mesage box prompt me that u selcet this and this and on the other form a button result is place.. when i click on it a new form appears and the msg box text …

Member Avatar for hkdani
0
168
Member Avatar for dgzo_08

Hi all, I have a datagridview in which I add programatically a combobox column with its datasource set to a datatable I fill from a query, then I populate manually (for good reasons) the DGV, but just when I try to add the first row, this error shows up: Fielld …

Member Avatar for Phixius
0
671
Member Avatar for manjukakkadath

Im developing a script for dynamically creating html table structure so that from the input that has been given to the function it will fetch the values one by one and will create the structure. My problem is i want to add attributes to the elements created. sample code attached. …

Member Avatar for Taywin
0
166
Member Avatar for Valaraukar

So I'm currently working as part of a team that is building a game engine and I have been considering our current code structure. As a team we decided it would be a good idea to create a plugin architecture that allows additional functionality to be added by other users …

Member Avatar for Valaraukar
0
191
Member Avatar for virusisfound

hi, I am working in C# windows application as front end and sql server 05 as back end. I want retrieve image from database. Image,imagenm, image path save in the database. The code given below shows an error message i.e [B]Unable to cast object of type 'System.String' to type 'System.Byte[]'.[/B] …

Member Avatar for Mitja Bonca
0
219
Member Avatar for infernodeep

hi guys , im facing a small problem with javascript,it works fine in FF,but inIE6 & IE7 nothing is happening could anyone solve this problem....plz help me. Here is the HTML code: [CODE]<div id="div1" style="display: visible">Div 1</div> <select> <option onclick="javascript:changeDisplay('div1','block')">visible</option> <option onclick="javascript:changeDisplay('div1','none')">hidden</option> </select> [/CODE] Here is the JavaScript code: [CODE]<script …

Member Avatar for papiya
0
809
Member Avatar for Brachamul

Hello world ! First of all, i'd like to say that this is my first page in PHP, so i may have made the most basic of mistakes :) I wrote most of this from a tutorial i found somewhere on the web. I get the following errors : Notice: …

Member Avatar for Brachamul
0
704
Member Avatar for BenCraven

Hi, I'm fairly new to php and sql, and was wondering if this question could be easily answered, I'll do my best to be as concise as possible; I have a table within a database that I'm using to return basic searches for my company to find specific products, i.e …

Member Avatar for smantscheff
0
126
Member Avatar for markdean.expres

I'm just wondering guys if it is possible for me to go to the specified listbox item via searching. Example; Listbox1 items are Apple Banana Guava Pineapple Peach When I key in the word Apple in a textbox, the SelectedItem would go to Apple, is this possible?

Member Avatar for markdean.expres
0
6K

The End.