Tag Info

New answers tagged

0

Or you can keep it simple and use Homebrew to install/manage many of the AWS tools, including s3cmd Install Homebrew by running this command ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Look for the code you want $ brew search s3 s3-backer s3cmd s3fs s3sync unfs3 Install s3cmd brew install s3cmd ...


0

Get a firewall for your computer running the webserver, banhammer the offending IP address. If your webserver is only for devices in your house (on your network) to communicate with, there is likely a way to make it only visible from inside your network. My routers all hide computers connected to them from the rest of the internet, preventing most incoming ...


0

I've heard good things about https://pypi.python.org/pypi/watchdog - a Python library for the monitoring of filesystem events that works on Linux, OSX, FreeBSD and Windows. I would use something like bbfreeze or pyinstaller to package your whole tool up into binaries for the various different platforms. rsync already has installers for most systems.


0

Since your python based webserver is for home use only, you should block all incoming connections and allow only ones from your own Country/City. You can do this using ipsets/iptables.


2

Welcome to the Internet! It is very common to see lots of outside attempts to scan your network. Bot-Nets, script kiddies, the Chinese scan for vulnerabilities in networks looking for more machines to infect or break into. As for how they got your IP address, well... there are only 4,294,967,296 IPv4 addresses. So its fairly easy for them to scan ...


0

To answer my own question: Django's dev server checks all Python source files periodically for changes. Setting the option --noreload prevents this auto-restart mechanism, which also reduces the idle load to zero. Apparently, auto-reload on Python 3 is less efficient. Using pyinotiy is a solution for Linux to also prevent this overhead: ...


0

Try upgrading pip itself first. pip install -U pip


0

Download the source of python-dateutil Extract it to, e.g., /usr/local/src/python-dateutil-2.4.0 cd /usr/local/src/python-dateutil-2.4.0 (or whatever directory you extracted it to) sudo python2.7 setup.py install s3cmd --configure (Answering my own question here. If someone can tell me why this works and the previous approach didn't I'd love to know!)


1

You can't run Python scripts in PowerShell. (You can in Unix shells). You have to do this: python.exe path/to/some/script.py That assumes python.exe is in your path. Otherwise you have to do something like this: C:\Python27\python.exe path/to/some/script.py


0

The emo package does not actually exist - see the PyPI page for details. Its status is "Planning", meaning that someone registered the package name, but hasn't actually developed the package yet.


0

Save the following lines in the ~/Library/LaunchAgents folder as a plist file such as caffeinate.plist . It will auto start when you log in. There are options to prevent screen, harddrive from sleeping. Just man caffeinate. <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE plist PUBLIC "-//Apple Computer/DTD PLIST 1.0//EN" ...


2

You have registered for Ask Ubuntu Q&A, so I'll provide the command for Ubuntu. In Ubuntu open the terminal and type: sudo apt-get install python3 idle3 python3 is already installed by default in Ubuntu, I have added python3 to the command for the sake of generality with other Linux distributions. IDLE 3 is an Integrated Development Environment ...


1

For Windows: You need to install Python 3 from here Follow the setup instructions, making sure to check the box that says whether to add it to the system PATH variable Go into cmd, cd to the location of the script, and type python script.py, replacing script with your filename or open the script with Python Launcher which will have been installed via the ...


1

On many systems, "python" defaults to "python2", but you can run a script under python 3 simply by doing python3 myscript.py Issuing which python3 will tell you if that's going to work. Also, if the script includes an appropriate shebang, ./myscript.py is supposed to work...


0

Update the following registry key to change to a different python version: HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command


1

To give specific recommendations we'd have to see your code. However, HTML parsing is a very difficult problem; be sure to use an existing parsing library and don't attempt to create your own. In general it is better to implement web-crawlers using breadth-first search and not depth-first. Depth-first searches often make many calls to the same domain and ...


0

Lyrics are often TXT, whereas ads are not, so you could restrict search to text. The negative aspect of that is that you'd certainly miss some HTML lyrics.


1

The way I see it, you have three options. /usr/bin/python is actually a symlink to the python version that needs to be defaulted. You can simply resymlink that to python2.7 and you should be good on that front. If you don't need python 2.6.6 then why keep it there. You can remove it. Your second option is to alias python=/usr/bin/python2.7 in your bashrc ...


1

I'm a bit fuzzy on this part of the command line, but I believe this runs app.py in Python and puts it in the background: nohup python app.py & Then, I believe this is attempted as a separate command, which obviously doesn't exist: --port=4650 I suspect you want to run this instead: nohup python app.py --port=4650 & This is assuming your ...


0

In shell, & is a a command separator (like ;). You're asking the shell to run two separate commands: nohup python app.py & --port=4650 Make sure the & is always at the end of your command.


0

This is a Python problem. Internally, Blender uses Python, and Python does not like pathnames with spaces. The only solution is to have .blend files in a folder hierarchy without any embedded spaces. I did this and was able to open files correctly.


1

Starting in version 6.0, pip now handles its own caching: https://pip.pypa.io/en/latest/reference/pip_install.html#caching Starting with v6.0, pip provides an on by default cache which functions similarly to that of a web browser. While the cache is on by default and is designed do the right thing by default you can disable the cache and always access ...



Top 50 recent answers are included