199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nestory

Craete an application named TestHockeyPlayer that instantiates and displays a HockeyPlayer object. The HockeyPlayer class contains fields for a player's name (a string), jersey number (an integer), and goals scored (an integer)

Programming c c# c++
Member Avatar for Nutster
0
232
Member Avatar for RikTelner

$(document.getElementById("item1"), document.getElementById("item2")).click(function () { $(this).fadeOut(); }); <span id="item1">This is item 1</span><br /> <span id="item2">This is item 2</span> span#item1 { color: red; } span#item2 { color: green; } `span#item1` is affected. `span#item2` not, that means I made mistake in syntax. Is there a way to get it to work. I know …

Member Avatar for RikTelner
0
528
Member Avatar for ALosh99

I am trying to plot the picewise function below: rho0 = 3*10e-11 Rd = 3.15 Rc = 7 def Density(rho0, r, Rc, Rd): if r < Rc : return rho0 elif r> Rc : return rho0*np.exp(-(r-Rc)/Rd) r = np.linspace(0,20, 1000) y= Density(rho0, r, Rc, Rd) plt.plot(r, y) plt.show() I am …

Programming python
Member Avatar for ALosh99
0
890
Member Avatar for Mickey_2

Onager Ornery Clicker presents a grid of buttons. One says "Click Me!" and the rest say "Don't Click Me!" Clicking the right button scores a point, while clicking the wrong button costs a point. After each click the buttons reshuffle. There is a timer you can start and stop. You …

Member Avatar for Mickey_2
0
293
Member Avatar for Mickey_2

I'm developing a dirt-simple text editor for personal use, customized the way I like it. My biggest difficulty is with grasping how OOP works. Could you kindly review the following code and suggest improvements (or at least link further information)? Much appreciated. from tkinter import Tk, END, INSERT from tkinter.scrolledtext …

Member Avatar for John_103
0
304
Member Avatar for neerajkumar_86

Hi I have some python file.i runs these file one by one as below on unix server. python f4761sk3.py python f4761sk2.py python f4761sk1.py python f4761se3.py python f4761se2.py python f4761se1.py python f4761pl3.py python f4761pl2.py python f4761pl1.py python f4761no3.py python f4761no2.py python f4761no1.py python f4761nl3.py python f4761nl2.py python f4761nl1.py python f4761ie3.py python …

Member Avatar for Gribouillis
0
2K
Member Avatar for SpottyBlue

Hi, Before i do the attendance form system, I have to do the student registration form. But there is one problem. I tested the student registration form (register.php) and tried to register myself to the database, but my data did not register to the database. I've done the coding correctly …

Member Avatar for hericles
0
293
Member Avatar for gracekd90
Member Avatar for pirulo64

I'm trying to use a "python loop through list" and execute a command on each line from the list found and in between sleep to give it time to finish that command. Here my script. I know it's the basic, but some one can help me to help me in …

Programming python
Member Avatar for pirulo64
0
280
Member Avatar for tshukela.george

I want to insert a table cell into a table from another table by select method and after, to display an error in text prompted from the user was not found. Can someone tell what's the problem with my codes? My codes are as follows: Dim Item As String = …

Member Avatar for tshukela.george
0
334
Member Avatar for </scorpion>

Hi Experts, I want to export html table to .csv file, my code is working but i want to export it with border or background color on its header. how will i do that? Please help me. Thanks in advance. :) Here's my code: HTML Table: <div id="feedback_div" style="display: none;"> …

Member Avatar for </scorpion>
0
3K
Member Avatar for iveto89

Hello! I'm making cURL request to neteller API and it returns 401 not authorized. My IP is whitelisted in neteller test account. I have the following code: $url = 'https://test.api.neteller.com/v1/oauth2/token; $clientId = NETELLER_CLIENT_ID; $clientSecret = NETELLER_CLIENT_SECRET; $grantType = 'grant_type=client_credentials'; $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_USERPWD, …

Member Avatar for iveto89
0
1K
Member Avatar for RikTelner

https://jsfiddle.net/yr2r4Ldj/4/ I've tried 5 different solutions, **FIVE** of them, and **NONE** of them work. I hear Microsoft laughing ever so evily around the corner while grinding hands against one another like a psychopath. Does Microsoft hate developers or something? THEIR OWN FILTERS, DON'T WORK. WHY PROVIDE IMPLEMENTATION OF SOMETHING THAT …

Member Avatar for gentlemedia
0
436
Member Avatar for RikTelner

Things like maintenance, website background, website title, favicon etc., where would it be best to store them? It would be single array of items. Do I just write it in flat CSV file, flat XML file, or use database for it (sounds pretty stupid to create single-row-table)? (*sorry for mess …

Member Avatar for jkon
0
247
Member Avatar for dlmagers

I am trying to display scores by what the user is requesting either 'Average','Total',or 'Both'. The following is my code for the loop_tester.php and below that is the code for my index.php. I am trying to add a switch statement to the index.php file that will sets values for only …

Member Avatar for cereal
0
359
Member Avatar for Mickey_2

This script is to be a 5x5 grid of buttons, one saying "Click Me" and the rest "Don't Click Me." A correct click scores a point, an incorrect click costs a point. The buttons get shuffled after each click. The player has 60 seconds to maximize his score. The script …

Member Avatar for Mickey_2
0
5K
Member Avatar for joshl_1995

Hello Daniweb Community, It has recently come to my attention that my website does not load on iPhone's, my website is (also I'm not trying to advertise) [http://twisteddigital.com.au](http://twisteddigital.com.au). So could someone help me with this problem, I've tried searching around for a little bit but couldn't find anything.

Member Avatar for joshl_1995
0
340
Member Avatar for Stefce

I have wierd problem the navigation is working good everywhere but on `home.php` file it doesnt work when i press the MORE button to open the dropdown here is my code, what can cause this problem ? sidebar.css body,html{ height: 100%; } /* remove outer padding */ .main .row{ padding: …

0
151
Member Avatar for TObannion

I am supposed to use a jquery plugin to fill in some text fields. My professor is almost completely unresponsive about it when I ask him for help. Using the pickadate Jquery plugin, add a date picker and time picker to two <input> fields. <!doctype html> <html> <head> <title>Exercise 11A</title> …

Member Avatar for rproffitt
0
279
Member Avatar for Ivan_10

I have this function which get me only unique values in array: function sort_unique(arr) { var obj = {}; for (var i = 0; i < arr.length; i++) { obj[arr[i]] = true; } arr = []; for (var key in obj) { arr.push(key); } return arr; } I need this …

Member Avatar for agajvery
0
231
Member Avatar for powerade661

Hey guys, does anyone know how to do this? Here is my current code that will not work. I have tried everything that I know how to make this work to no avail. This is under form1_load. Any help would be awesome. Thanks in advance.

0
373
Member Avatar for RikTelner

Let's say I have such table: +----+------------------+ | id | participantsId | +----+------------------+ | 1 | 1,24,192,3481,12 | +----+------------------+ I'd like to select every single result in this table, where user with ID `3481` has partcipated. How can I do that? Ye old `SELECT * FROM example WHERE paricipantsId=$id` won't …

Member Avatar for cereal
0
161
Member Avatar for AntonyRayan
Member Avatar for broj1
0
142
Member Avatar for RikTelner

http://oi68.tinypic.com/dxohtu.jpg Here are two latest Firefox's screenshot of my latest project. On Microsoft Windows 7 and Linux Ubuntu 14.04LTS. Couple things of concern: - I aligned both screenshots so that logo's (blurred) align perfectly from first pixel. - Even though it looks like barely 100 pixels overhead, Windows' menu takes …

Member Avatar for RikTelner
0
227
Member Avatar for gazbg84

Hi, I am having a Timer control like this: [CODE]asp:Timer ID="Timer1" runat="server" Enabled="False" Interval="1000" OnTick="Timer1_Tick"> </asp:Timer>[/CODE] In an UppdatePanel with AJAX enabled. So everything works fine to the point where on each refresh of the panel a JS is inserted in the header: [CODE]<script type="text/javascript">Sys.Application.add_init(function() { $create(Sys.UI._Timer, {"enabled":true,"interval":1000,"uniqueID":"Timer1"}, null, null, …

Member Avatar for joshhan
0
560
Member Avatar for COKEDUDE

In the str char array below I would first like to locate the first math symbol I see, then I would like to count backwards and remove whatever is between the previous three " _ " and remove the three " _ ". Can I please get some ideas on …

Member Avatar for AssertNull
0
261
Member Avatar for zero_1

How to combine two class? so the output can be equal... here's my code.. class year: def __add__(self, year): return (year) class day: def __add__(self, day): return (day) class month: def __add__(self, month): return (month) class Date: def __call__(self, year, month, day): return (year, month, day) class Delta(year, month, day): …

Programming python
Member Avatar for zero_1
0
317
Member Avatar for Prashant_9
Member Avatar for btp06b

# This program converts US measurements # to metric measurements. # Constants for valid values VALID_VALUE = 0 MAX_TEMP = 1000 def main(): print(''' 1.Miles to Kilometers. 2.Farenheit to Celsius. 3.Gallons to Liters. 4.Pounds to Kilograms. 5.Inches to centimeters. 6.Exit. ''') input('What would you like to convert?') if selection == …

Member Avatar for Freshly
0
494
Member Avatar for davy_yg

<button type="button" class="button" href="adminform.php">ADD ADMINISTRATOR</button>

Member Avatar for hericles
0
312
Member Avatar for Niels_1

Hello guys, i'm trying to show the full name of my user what is logged in. I am new to writing in oop. Im getting a undifined index fullname error. Can anyone help me? /*** for showing the username or fullname ***/ public function get_fullname($userid) { $stmt = $this->db->prepare("SELECT fullname …

Member Avatar for AndrisP
0
144
Member Avatar for Niels_1

Hello guys i wrote an public function to create a project, but i need to call it in my javascript file. How can i do this. this is the public function i want to use. the public funtion is in data.php public function create($projectid,$projectnaam,$startdatum,$einddatum,$omschrijving) { try { $stmt = $this->db->prepare("INSERT …

Member Avatar for broj1
0
323
Member Avatar for savedlema

Hi everyone! Long story short; I got a Secugen Hamster IV finger print device. I want to use it in my hospital application to be used in identification of patients at the hosptl. However, I do not find this device to be useful in that they they dont' have current …

Member Avatar for savedlema
0
404
Member Avatar for nlanka

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Cities { class Hometown { public string City { get; set; } public string State { get; set; } public Hometown(string City, string State ) { this.City = City; this.State = State; } public Hometown() { } …

Programming c#
0
108
Member Avatar for mattyd

I am using a template to learn more about fluid design My main confusion at this point regards how structure and size is defined. For example in the CSS, there is a header tag; but the actual area of the header/banner is not defined. Or is it? I cannot figure …

Member Avatar for mattyd
0
283
Member Avatar for wael meto

bonjour tous les monds, how can i Refresh ComboBox After Adding New Values via a Seperate Form in vbnet any ideas mercie en avance ;

Member Avatar for Alan_10
0
5K
Member Avatar for masimies

Hello, I try to limit query results and fetched items in same time. But, with my script, that is not functioning together. Selected item is not staying as variable in query. Something is badly ordered in this script. <?php if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow = 0; } else { …

Member Avatar for masimies
0
235
Member Avatar for ALosh99

Hello, I'm trying to plot this function with using this values: Rh = 9.8 H0 = 0.063 def Thickness_H(H0, r, Rh): return float(H0)*np.exp(float(r)/float(Rh)) r = np.linspace(0,1, 10) x =Thickness_H(H0, r, Rh) plt.plot(r, x) plt.show() I'm trying to defind r like what i know but this dose not work, I'm getting …

Programming python
Member Avatar for ALosh99
0
317
Member Avatar for Niels_1

I'm trying to convert my php code into OOP. I'm using Datatables with jquery en ajax + JSON to load projects into a table. But i want to convert this code into OOP, but i always get a invalid json response. Im new into writing OOP, so could anyone help …

Member Avatar for TexWiller
0
266
Member Avatar for Lau_1

Hello, I am still confusing how to differentiate with responsive website and mobile web apps. Responsive website can auto configure to fit into the browser. Currently I had developed responsive website. So how about mobile web app? Is mobile web app launch using browser? How can this mobile web app …

Member Avatar for Lau_1
0
621
Member Avatar for Alex Edwards

Hmm... I've made it my top priority to get a Master's and Ph.D in Computer Science and Software Systems... however I'd like to know what a suitable Master's Thesis would be? I'm thinking about making a book, maybe 6000 pages long, pertaining to nothing but Software ideals and technology. This …

Member Avatar for KelvinG
0
1K
Member Avatar for Gudger

Hi guys! Pls help me make a water billing using c#.. I dont know how to start.. :(

Member Avatar for Emmanuel_6
0
192
Member Avatar for COKEDUDE

How does this compile? I forgot to set my second condition in my second for loop and it compiles. if(cmp_str5 == 0 || cmp_str6 == 0) { if(cmp_str5 == 0 || cmp_str6)

Member Avatar for Reverend Jim
0
178
Member Avatar for yhh

Hi, I'm still a beginner for C programming. In my assignment I've encountered this problem and I know is a linker problem but I'm not sure how to solve it. I'm trying to link 3 files which 2 .c files and 1 .h file. Below are the codes for my …

Member Avatar for Sean1234$
0
14K
Member Avatar for FarrisFahad

I have searched Google and Youtube for Facebook log in toturials but couldn't find something useful. Do you know any good articles or website or even a Youtube toturial that covers the facebook log in system? How did you learn it?

Member Avatar for AleMonteiro
0
181
Member Avatar for nadiam

Hi. Im trying this java program that's suppose to register the "staff"'s "car" and there's this boolean method that I don't know how to solve. There are 3 classes: Tester, Staff and Car. the boolean part is suppose to check if the staff has 1 or 2 cars registered and …

Member Avatar for AssertNull
0
252
Member Avatar for mehnihma

HI I have this in wordpress css: * { padding: 0; margin: 0; } How can I disable `margin: 0;` in child theme? Thanks

Member Avatar for mehnihma
0
286
Member Avatar for toomutch

Hi, Having a real trouble getting a form to launch, which has previously worked. I have a series of buttons set up on a menu screen, each button launches a different form in the same project. For each 'click' event there are two lines of code: a DIM statement to …

Member Avatar for hericles
0
277
Member Avatar for DS9596

I'm still getting one error not sure why? Error 1 error C4700: uninitialized local variable 'arranged' used 74 Thanks. #include <iostream> #include <iomanip> using namespace std; //Function prototypes void sortTestScores(int *TestScores, int size_Test); double avgTestScore(int *TestScores, int size_Test); void printTestScores(int *TestScores, int size_Test); int main() { //Define variables int *TestScores; …

Member Avatar for DS9596
0
203
Member Avatar for Sabasi

This a code made in three.js so its like a gemoetry big cube made with small cube written in css,but i want to make that the source will be an image and that image will be the big structure made with small cube,i.e-if the image is google logo the thing …

0
144

The End.