Hi im new to programming and i need a bot that autofills a website because i constantly advertise a website on different websites and i basically copy and paste repeatedly for like 5 to 8 hours a day but my friend said i might be able to make a bot to help do it for me is this at all possible.

Member Avatar
Member Avatar
+0 forum 1

Python-wxPython Tutorial This tutorial will take through the basics of wxPython. ##Introduction: Let's face it. I am a dinosaur. I got my computer science degree in the mid 70s. And it won't be long before **I** am in **my** mid 70s. So why am I trying to learn Python? Mostly because learning new things keeps my brain active. And besides, nobody on Daniweb seems to be asking questions about vb.Net anymore. So I thought I'd give it a try. After a few weeks of puttering I managed to learn enough Python to rewrite all of my vbscripts (stop laughing, it's …

Member Avatar
Member Avatar
+5 forum 11

hello dear community, first of all - i hope that my beginner-question will fit into this sub-forum.  I hope so.  Servo Control  with Micropython - with the ESP 8266 ...- compared to Arduino  I work with young kids and I'm always looking for economical platforms to build intriguing projects. While we can say that Arduino clones are pretty cheap, it uses the C/C++ language that the kids are not familiar with. This is pretty challenging. Also and furthermore, it doesn't have a built-in WiFi which is a must for all the IoT projects that i have in mind. On the …

Member Avatar
Member Avatar
+0 forum 1

I have been wrestling with this for two days now and getting nowhere. Something is broken, either the GridSizer control or me. I'm hoping it's me and someone can show me the problem. I've stripped my app of non-essentials. What I am building is a Sudoku app which consists of several nested controls, as can be seen in the atached image. The outer frame contains the puzzle which contains a 3x3 grid of panes. Each pane contains a 3x3 grid of tiles and each tile contains a 3x3 grid of digits. So far so good. Except for the layout. I …

Member Avatar
Member Avatar
+0 forum 1

Hi! I am creating a simple python tkinter calculator. However when I was due to submit my code in my teacher said that my code is inefficient and recommended i change the following: 1.) Create buttons using a for loop 2.) have two classes - one of which is for the functions defintions and one for the GUI components and all 3.) remove all global variables and use parameters and scopes However i am a novice at programming as i just started recently an have been given a short time. Can anyone help me? Any help is appreciated. from tkinter …

Member Avatar
Member Avatar
+0 forum 2

Hi! I am creating a simple python tkinter calculator. However when I was due to submit my code in my teacher said that my code is inefficient and recommended i change the following: 1. Create buttons using a for loop 2. have two classes - one of which is for the functions defintions and one for the GUI components and all 3. remove all global variables and use parameters and scopes However i am a novice at programming as i just started recently an have been given a short time. Can anyone help me? Any help is appreciated. from tkinter …

Member Avatar
Member Avatar
+0 forum 1

class foo(object): __slots__ = ['__base__'] What's expected is for `foo.__base__` to be a member_descriptor object but instead what you get is: >>> foo.__base__ <class 'object'> >>> foo.__base__ is object True I guess something happens within the magic of class construction that makes use of `__base__` as an object. I stumbled across this because my particular class represented by `foo` makes use of `__base__` for holding objects `foo` makes special instances of when called. Just something interesting to note here, and possibly some useful knowledge so others can know to stay away from `'__base__'` as a class attr name.

Member Avatar
Member Avatar
+0 forum 2

# What Are Voronoi Diagrams? # Voronoi Diagrams are an essential visualization to have in your toolbox. The diagram’s structure is a data-driven [tessellation](https://en.wikipedia.org/wiki/Tessellation) of a plane and may be colored by random or to add additional information. ## Learn the Lingo ## The set of points that generate the Voronoi diagram are called “seeds” or “generators” for they generate the polygon shapes; in practice, the seeds are your cleaned data. Each seed generates its own polygon called a Voronoi “cell,” and all of 2-dimensional (2D) space is associated with only one cell. A Voronoi cell, or Voronoi “region” denotes …

Member Avatar
Member Avatar
+3 forum 4

#include <stdio.h> int main() int pv, cv, temp; temp = 15; pv = 1; printf("%d\n" ,pv); cv = 1 printf("%dn" ,cv); while (cv < 10) cv = temp; temp =pv; pv = cv; printf("%d\n ,pv); printf("%d\n ,cv); geche(); return 0;

Member Avatar
Member Avatar
+0 forum 2

i want to remove a card from a randomly shuffled deck. so that each time a card is picked from the again shuffled deck. that card is eliminated from further play until all 52 cards are drawn. in python3.7

Member Avatar
Member Avatar
+0 forum 3

hi everyone. been a while since i have been on here, alot has changed. I am in the middle of amending/adding features to an installer using python. I have the dropbox API (for business) set up and working, upload and downloading without issue. The potential issue i see is during the progress of either up/down the CLI sits, does nothing. So my question is (as i am still finding my way with all that is Python), how can i add a progress bar? For download and can use the API call to get the metadata file_size if that helps? PS, …

Member Avatar
Member Avatar
+0 forum 2

# I need a project# Hi, I am brand new to programming and was wondering if anybody had any suggestions of where/ how I could learn more python, and or a good project that would help my learn new elements of code as i learn them.

Member Avatar
Member Avatar
+0 forum 3

This simple isprime(number) function checks if the given integer number is a prime number and returns True or False. The function makes sure that the number is a positive integer, and that 1 is not considered a prime number. To find out if an integer n is odd one can use `n & 1`, to check for even one can then use `not n & 1` or the more traditional `n % 2 == 0` which is about 30% slower.

Member Avatar
Member Avatar
+2 forum 36

So I have this for a sound crew to select jobs for workers based on the training they have recieved. My code allows you to add workers to the list and set what jobs they are allowed to do through use of inputs. The second Function then randomly creates job assignments for people based on the parameters in the first function. I would like to be able to have people selected, with no repeats, and preferably without permanently deleting people from the lists, so that the lists can be saved permanently. With the current code i get the error ValueError: …

Member Avatar
Member Avatar
+0 forum 1

I have a python script which extracts unique ip addresses from snort log but how to modify or use regex to extract IPs only if they are logged more than 10 times per second? more specific: using "regex", if the second (i.e 41 in this scenario) doesn't change for more than 10 lines of having the same IP address then extract that IP. blacklist = list(open("/home/asad/blackdb/blacklist", 'r').read().split('\n')) logfile = list(open('/home/asad/logdb/snort.alert', 'r').read().split('\n')) newip = [] for entry in logfile: ips = re.findall(r'[0-9]+(?:\.[0-9]+){3}', entry) for ip in ips: newip.append(ip) newblist = blacklist + newip with open("/home/asad/blackdb/blacklist", 'w+') as f: f.write('\n' .join(set(newblist))+'\n\n') f.close() …

Member Avatar
Member Avatar
+0 forum 9

Login program

Member Avatar
Member Avatar
+0 forum 1

Below is a program that asks the user to input a username and password. Once logged off the user is asked to re-enter their username and password. Is the program correct where it checks if the username and password input before is correctly input again?. Any help would be welcome Regards Mark # program that checks that the username and password are correct # username = input("Please enter your username : ") password = input("Please enter your password : ") print ("Greetings," , username, "you are now logged in now with a password") command = input("Please type a command :") …

Member Avatar
Member Avatar
+0 forum 7

Design a function named max that accepts two integer values as arguments and returns the value that is greater? For example: if 7 and 12 are passed as arguments to the function, the function should return 12. Use the function in a program that prompts the user to enter two integer values. The program should display the value that is greater of the two.

Member Avatar
Member Avatar
-1 forum 15

Hi all, I have 2 form and a main.py in the project: ffrend.py and fmain.py main.py: from PyQt4 import QtCore, QtGui from fmain import * if __name__ == "__main__": import sys app = QtGui.QApplication(sys.argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow() ui.setupUi(MainWindow) MainWindow.show() app.exec_() fmain.py (there is a button to execute the following function) def friendNetWork(self): form = QtGui.QWidget() ui = Ui_ffriend() ui.setupUi(form) form.show() app.exec_() When I run main.py, the fmain form is shown. When I click the button on fmain form, the friendNetWork will be executed and create another widget. But...I received the error in console :(...And the python is …

Member Avatar
Member Avatar
+0 forum 6

# Introduction # This tutorial provides guidance on gathering data through web-scraping. However, to demonstrate the real-life issues with acquiring data, a deep-dive into a specific, complicated example is needed. The problem chosen, acquiring the geographic coordinates of gas stations in a region, turns into an interesting math problem that, eventually, involves "sacred geometry". ## Application Programming Interfaces (API's) ## No matter which Data Science Process [model](https://www.kdnuggets.com/2016/03/data-science-process-rediscovered.html) you subscribe to, actually acquiring data to work with is necessary. By far the most straightforward data source is a simple click-to-download in a standardized file format so you can utilize a parsing …

Member Avatar
+1 forum 0

I was solving a problem related to the scheduling. The problem statement is as below:- We want to keep a three months workshop in the university in which all the students of the university will participate. All the students will be trained by the lecturers of their own university for two days in a month for a subject of his choice. And similarly he would get the training in the other two months for the other two subjects and all the students will study the three subjects in the complete three months workshop. The students needs to be divided into …

Member Avatar
+0 forum 0

Hi all, I am trying to get the code I have working with PsychoPy3. The code was written using python and psychopy2 and with PyQt4. Now I have PsychoPy3 and PyQt5. Apperantly getting things work with PyQt5 is not really straitforward. Anyway, I have accomplished some. Now, I have an error as below: Any idea how to solve this? experiment = Experiment(windowColor, markerNames, dataFromSubject, popupBetween, popupEnd, blocks, blockTextToDisplay, dbFile, dbTables, test, fileToUseToCalculateAverage = fileToUseToCalculateAverage) coordinates = MovieStimulusCoordinates(fileToUseToCalculateAverage['file'], fileToUseToCalculateAverage['numberOfDotsPerFrame'], fileToUseToCalculateAverage['matrixAlreadyNormalized']) self.__projectionMatrix = self.makeProjectionMatrix() return int(projectionMatrix.reshape(projectionMatrix.shape[0] / self.numberOfDotsPerFrame, self.numberOfDotsPerFrame, 2)) TypeError: 'float' object cannot be interpreted as an integer

Member Avatar
Member Avatar
+0 forum 1

## Intro ## Receiver Operating Characteristic (ROC) plots are useful for visualizing a predictive model’s effectiveness. This tutorial explains how to code ROC plots in Python from scratch. ## Data Preparation & Motivation ## We’re going to use the breast cancer dataset from sklearn’s sample datasets. It is an accessible, binary classification dataset (malignant vs. benign) with 30 positive, real-valued features. To train a logistic regression model, the dataset is split into train-test pools, then the model is fit to the training data. from sklearn.datasets import load_breast_cancer from sklearn.linear_model import * from sklearn.model_selection import train_test_split # Load datasetd dataset = …

Member Avatar
+3 forum 0

Hello. I wanted to download a "Python IDE" called "PyCharm" to type code using the coding language "Python" for class. Here is the problem: When I open up the IDE called "PyCharm", it says that the "Python Interpreter" is not found. I suspected it was because I downloaded the "IDE" before the "Interpreter" so I tried to configure it manually into the “IDE” after I downloaded “Python”. However, the “IDE” said that no permission was granted for the “Interpreter” to be used in this “IDE”. I downloaded a new version of this “IDE” and a more recent version of “Python”. …

Member Avatar
Member Avatar
+0 forum 4

Hi, I have a .csv file in an AWS machine i wanted to convert that .csv file to .dat file? Can you please help me? Thansk, Swetha. G

Member Avatar
Member Avatar
+0 forum 2

I can get the output with **data_2012['DeathRate ']** where there is a space after DeathRate but I can not get the same result without space after the DeathRate i.e, **data_2012['DeathRate']** in python.

Member Avatar
Member Avatar
+0 forum 1

As I continue my conversion from vbScript to Python I am finding the gotchas. For example... A lot of my utility scripts take a file name or a file pattern as a parameter. My script, bitrate.vbs, for example allows me to invoke it as bitrate file bitrate pattern Technically file and pattern are identical since specifying a file is really just specifying a pattern that matches up to one file. To get file listings in vbScript I would just spawn a dos `dir` command and grab the output from stdout. In Python, however, they provide what I thought was a …

Member Avatar
+2 forum 0

I need to extract the domain for example: (http: //www.example.com/example-page, http ://test.com/test-page) from a list of websites in an excel sheet and modify that domain to give its url (example.com, test.com). I have got the code part figured put but i still need to get these commands to work on excel sheet cells in a column automatically. >>> url = ("http://www.example.com") >>> domain = url.split("http://")[-1].split("/")[0] >>> print(domain) www.example.com >>> url_2 = ("http://example.com") >>> domain_2 = url_2.split("http://")[-1].split('/')[0] >>> print(domain_2) example.com >>> >>> #Now to remove www. from the first one >>> >>> domain_without_w3 = domain.split("www.")[-1] >>> print(domain_without_w3) example.com >>> >>> # …

Member Avatar
Member Avatar
+0 forum 2

The printer seems to be a much ignored computer peripheral when it comes to programming. This little code snippet explores one way to send text to the default printer. It actually draws the text into an imaginary box on the paper. You can specify the upper left and lower right corners of this box.

Member Avatar
Member Avatar
+2 forum 1

I've tried inurl:http but it takes forever to get even a bunch of sites right and I have to think of new keywords everytime to get the sites. Is there kind of a directory or a script i could use to filter the http from all the sites on the web. Or some sort of software?

Member Avatar
Member Avatar
+0 forum 5

The End.