Javacript novice here, I've been trying to learn how to remove this annoying error I always get on Nike.com I tried to remove it through adblock which I can't The only way to remove this error is click the 'OK' button. heres the script for the "OK" button <button class="notification-button nsg-button nsg-grad--nike-orange" data-index="0">OK</button> what script can have this button click every single time this button appears?

Member Avatar
Member Avatar
+0 forum 1

I am trying to learn a bit of Haskell but I am having some problems with understanding how to make programs with pow*. For example I have to create the following program: What the program does is 1+2(pow2)+3(pow2)+n(pow2) and then to make sure that n is positive number. If someone could create such a program that would really help me understand what is going on.

Member Avatar
Member Avatar
+0 forum 6

Please answer me this

Member Avatar
Member Avatar
+0 forum 2

i was wondering if this was an efficient way to achieve the objective or not, some advice on the matter is much appreciated. the objective is to define a function to determine the standard achieved by a participant taking a physical fitness test. The standard is determined based on the individual and total scores for 3 stations. gold is at least 4 at each station and a total of 13 or more. silver is at least 3 at each station and a total of 10 or more Pass is at least 2 at each station and 7 or more in …

Member Avatar
Member Avatar
+0 forum 1

Create a function generateNumbers(num) that takes in a positive number as argument and returns a list of number from 0 to that number inclusive. Note: The function range(5) will return a list of number [0, 1, 2, 3, 4]. Examples [CODE] >>> generateNumber(1) [0, 1] >>> generateNumber(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] >>> generateNumber(0) [0] [/CODE] i dont know how to do this. i tried; [CODE] def num(num): for x in range(num): lis = [] lis.append(x) y = x + 1 lis.append(y) return lis [/CODE] but it return the following; [CODE] num(10) [0, 1] …

Member Avatar
Member Avatar
+0 forum 5

""" Write a function to convert temperature from Celsius to Fahrenheit scale. oC to oF Conversion: Multipy by 9, then divide by 5, then add 32. Examples >>> Cel2Fah(28.0) '82.40' >>> Cel2Fah(0.00) '32.00' """ so it says, but i couldn't think of an a way to do so efficiently. But none the less, i felt i should try it and then look up a better way after the code i wrote is as follows; [CODE] def Cel2Fah(temp): Fah = temp * 9 / 5 + 32 Fah = float(Fah) Fah_string = str(Fah) a = Fah_string.split('.') b = a[1][0:2] if len(b) …

Member Avatar
Member Avatar
+0 forum 2

the scenario is a fitness test and the challenge was to return a string saying either Gold, Silver, Pass or Fail, depending on certain conditions, they were as follows; gold - the candidate scored 4 or more at each station , and had a total of 13 or more points silver - the candidate scored 3 or more at each station, and had a total of 11 or more points pass - the candidate scored 2 or more at each station, and had a total of 7 or more points fail - less than 2 points for any station or …

Member Avatar
Member Avatar
+0 forum 1

i finally started having a look at gui yesterday, and tried to do some things with PySide, however i have the following problem; Whats wrong with this code? [CODE] !/usr/bin/python # -*- coding: utf-8 -*- import sys from PySide.QtCore import * from PySide.QtGui import * class Form(QDialog): def __init__(self, parent=None): super(Form, self).__init__(parent) # Create widgets self.edit = QLineEdit("Write my name here") self.button = QPushButton("Show Greetings") # Create layout and add widgets layout = QVBoxLayout() layout.addWidget(self.edit) layout.addWidget(self.button) # Set dialog layout self.setLayout(layout) # Add button signal to greetings slot self.button.clicked.connect(self.greetin… # Add button signal to exit slot exit_button = QPushButton("Exit") exit_button.clicked.connect(sys.exit) …

Member Avatar
Member Avatar
+0 forum 3

okay, so i was doing an exercise for this beginning python course i got my hands on, and i just completed the exercise (took longer than it should have though) and for some reason, when i run it, it returns data i didn't expect, and when i run it again it return correctly. i just dont understand?! here is the exercise information; exercise 7.3 Improve the program you wrote for exercise 7.2: > Make it loop until exit is requested by the user hitting <return> only. > Allow the stop and increment parameters to be optional; supply defaults for when …

Member Avatar
Member Avatar
+0 forum 3

so im trying to make it so that pressing enter without inputting any value, will break the loop, however, an empty string can be used because of [ICODE]for i in range(len(x_str_array)): x[i] = int(x_str_array[i]) bit.[/ICODE] [CODE] 'Exercise 7.3' # modified program from exercise 7.2 a=1 z="" while x !=z: x_str = raw_input('Enter Start,Stop,Increment: ') if x==z: break else: x_str_array = x_str.split(',') # splits the string where a comma pops up x = range(len(x_str_array)) # Preallocation step- makes x= the same length as x_str_array for i in range(len(x_str_array)): x[i] = int(x_str_array[i]) a=x[0] b=x[1] c=x[2] for number in range(a,b,c): print "number:", number, …

Member Avatar
Member Avatar
+0 forum 4

Hey, So I am completely new to python, I was wondering if someone could assist me with this program I am trying to make, The idea is simple, a program that counts for the user. Asking the user to enter a starting number, ending number, and the amount to count by, then the program should then print the results. Can someone please show what I would go about making a program such as this in Python? Any help is greatly appreciated.

Member Avatar
Member Avatar
+0 forum 15

[url=http://www.daniweb.com/software-development/python/threads/375271/1621485#post1621485]Sample code credited to Enalicho[/url] In this example, we count the number of appearances of the number 1 through a range of pages using while loops. First off, notice how easy it is to tell what the variables in this method are doing. I did not write this method, but I can tell what each variable is used for based on its name. Try to emulate this. This will help you--in [I]any[/I] language--as you write more complex code. I trust the first two lines of the method (lines 2 and 3 of the code snippet) are clear enough, so I'll …

Member Avatar
+0 forum 0

Hey everyone! I'm a final year programming student doing a research project on the impact of Java compiler error messages in Natural English, with regards to better diagnosis and rectification for novice Java programmers, who use the command line to compile and execute code. One part of my project wants me to deploy questionnaires to get feedback on what programmers (especially novices) think about the current error messages, as well as the kinds of errors commonly made by novices. However I'm having some trouble finding programmers to fill out the questionnaires:( I need 50 more respondents, and I was hoping …

Member Avatar
Member Avatar
+0 forum 1

Hi, I as a Python novice I throw myself at the mercy of experts in this forum. Could someone post a simple example of how to implement urllib2's proxy authentication. I've read all the references google returns as well as searched this site and cannot find an example that I can understand about how to do this. I can do the [URL="http://www.voidspace.org.uk/python/articles/urllib2.shtml"]simple proxy handler (below) as outlined on the Missing Manua[/URL]l but still get 407 errors because I don't know how to do the authentication part. [CODE]proxy_support = urllib2.ProxyHandler({}) opener = urllib2.build_opener(proxy_support) urllib2.install_opener(opener)[/CODE] I'd be massively grateful for any help …

Member Avatar
Member Avatar
+0 forum 2

The End.