Tag Info

New answers tagged

-2

Use the Mac install image/disc & shareware 'Pacifist' - well worth the $20 registration fee. You can download the appropriate image from the Mac App Store, for recent versions of OS X. If Pacifist cannot find the installation image (in my case, with 10.9 Installer mounted), then you may need to inspect the 'package contents' and mount the internal disk ...


1

you can look into tools like UXPacker or AdvancedInstaller to build the outer package. That said, these tools are usually problematic as almost all antivirus systems treat these kinds of packers as suspicious if not outright dangerous. depending on the AV, it might even delete them on execute, or even prevent them from being downloaded at all.


0

I issued this command in CentOS 7 and it worked curl https://bootstrap.pypa.io/get-pip.py | python -


0

If you know the name of the script you could reduce all the work to a single command: ps -ef | grep "script_name" | awk '{print $2}' | xargs sudo kill If you want to make sure that is a python script: ps -ef | grep "python script_name" | awk '{print $2}' | xargs sudo kill If you wanted to kill all the python scripts: ps -ef | grep "python" | awk ...


1

Use parentheses: (sleep 5; python cmd1 &); (sleep 10; python cmd2 &)


0

The question is too broad but I can answer a couple of parts: Can I use Python for my server side programming? Yes. Python is not the most common web server language but it certainly ranks fairly high. Also absolutely no idea on how to deploy sites, after completion of designing. So walking me down through a starting point would be much ...


1

You can force emacs to always open files using absolute real names: (setq find-file-visit-truename t)


0

I'm far from a python/pip expert, but I have used it for various purposes for several years and have yet to encounter a straight forward use of pip install that is interactive. It does have extensive options for less straight forward case (alternate package indices, caching, dev mode, etc,). If you have a specific install case that requires some ...


0

I think that apache2-dev is a virtual package provided by apache2-threaded-dev. Installing that should get you what you need.


0

One way is to use a combination of seq, sort, and uniq: # Get a list of all the files in DirA cd DirA ls . > files.txt # Get a list of all expected files seq -f "A_%06.0f.txt" 0 999999 > expected.txt # Find unique entries sort files.txt expected.txt | uniq -u You may have to adjust the arguments to seq to match the names of your files. Once that is ...


0

According to the project site, the tools are meant to be use with a paid version of VS, but there seems to be a workaround : Install the VS "Community Edition" (recommended) Install the “Express 2013 for Web” or “Express 2013 for Desktop” package with Update 3 or later Install PTVS


1

Changing the shebang (#! python3) may help you, but you will have a problem: if your python script has parameters, they will be cut off when you run command somepythonfile.py your_parameters You will get py.exe running with just "somepythonfile.py" and NO parameters, believe me. The method which worked for me is next: run the app ...


2

tldr: you don't Python is one of those things you don't want to mess with too much since important things in your OS rely on it. You could break your system horribly. For testing purposes, you might be able to give the full path to python 2.7 explicitly in your python scripts. This is kinda hacky and dosen't scale. Do only if you know that the production ...


0

Later I realized that I'm using a 32 bit version of Python which wasn't compatible with scipy and gave errors. I followed instructions on how to uninstall python and install 64 bit, and now I could successfully install scipy, numpy, etc. So check your python version!


0

I don't think you will be able to achieve this with a keyboard shortcut easily. However, since your running the script in the background could you not just run something like kill $( ps aux | grep '[s]cript_name' | awk '{ print $2 }' ); In the current session? Could make it easier by placing that in a shell script called kill_script_name


0

There are a few things that could be wrong, and one that is definitely wrong. Things that are definitely wrong When executing a file, type python ex1.py from the command prompt, not inside the Python interpreter. Things that could be wrong If you have Python 3.x installed, when printing "Hello World!" make sure you use brackets in print, ex: Right: ...


0

You can use nohup in conjunction with & like this: nohup [your Python script or any command] & The magic of nohup is that it allows a process to run even if your connection to the machine is gone. Meaning you logged out or are even disconnected. The & at the end means the process should run as a background process. So when you enter that ...


0

Never mind, I actually managed to do it! Here's how: I went to the Microsoft Virtual Labs for Windows Server 2012 and clicked the Web Client. In the client, I went ahead and ran the Python 3.4.3 installer. After it finished installing, I went to the directory where I installed it (Python34) and zipped it. I went to a file upload site (Gmail was blocked, ...


1

Updating Chen's solution above, currently (tested on Emacs 24.4.1) the commands have been renamed. So, assuming you want to indent according to the variable python-indent, the commands are python-indent-shift-left and python-indent-shift-right. You can: issue them by typing M-x python-indent-shift-right or M-x python-indent-shift-left use the default ...



Top 50 recent answers are included