First, in an administrator command prompt, enable unrestricted Powershell script execution (see About Execution Policies):
set-executionpolicy unrestrictedThen makes sure that the conda Script directory in is your Path.
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "ffmpeg-python", | |
| # ] | |
| # /// | |
| from pathlib import Path | |
| import shutil | |
| import ffmpeg |
First, in an administrator command prompt, enable unrestricted Powershell script execution (see About Execution Policies):
set-executionpolicy unrestrictedThen makes sure that the conda Script directory in is your Path.
| service: my-service | |
| provider: | |
| name: aws | |
| runtime: nodejs8.10 | |
| stage: ${opt:stage, 'dev'} | |
| environment: | |
| REDIS_HOST: | |
| "Fn::GetAtt": [ElasticCacheCluster, RedisEndpoint.Address] | |
| functions: |
This issue is so infuriating that I'm going to take some time to write about it.
MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to provide additional flags to your serve commands e.g. polymer serve --hostname domain.local, hugo serve --bind 0.0.0.0. If you use a named domain like domain.local, it has to be defined in /etc/hosts and pointing at 0.0.0.0.
My Parallels setting is using Shared Network, nothing special there.
Open macOS Terminal and type ifconfig. Look for the value under vnic0 > inet. It is typically 10.211.55.2.
This works in a python 3.6 environment with bokeh and flask installed. To use this you need the following directory structure:
app/
- templates/
- hello.html
- bokeh-slider.py
- hello.py
After that you need to open two terminals at app/, in the first one you need to run the bokeh server with the command:
| <?xml version="1.0"?> | |
| <FanControlConfigV2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <NotebookModel>HP ZBook Studio G3</NotebookModel> | |
| <Author>Geoff Thompson</Author> | |
| <EcPollInterval>3000</EcPollInterval> | |
| <ReadWriteWords>false</ReadWriteWords> | |
| <CriticalTemperature>75</CriticalTemperature> | |
| <FanConfigurations> | |
| <FanConfiguration> | |
| <ReadRegister>46</ReadRegister> |
04/26/2103. From a lecture by Professor John Ousterhout at Stanford, class CS142.
This is my most touchy-feely thought for the weekend. Here’s the basic idea: It’s really hard to build relationships that last for a long time. If you haven’t discovered this, you will discover this sooner or later. And it's hard both for personal relationships and for business relationships. And to me, it's pretty amazing that two people can stay married for 25 years without killing each other.
[Laughter]
> But honestly, most professional relationships don't last anywhere near that long. The best bands always seem to break up after 2 or 3 years. And business partnerships fall apart, and there's all these problems in these relationships that just don't last. So, why is that? Well, in my view, it’s relationships don't fail because there some single catastrophic event to destroy them, although often there is a single catastrophic event around the the end of the relation
| # Nicholas Nell -- http://casa.colorado.edu/~nell | |
| import gizeh as gz | |
| import cairocffi as cairo | |
| class PDFS: | |
| """Simple class to allow gizeh to create pdf figures""" | |
| def __init__(self, name, width, height, bg_color=None): | |
| self.width = width | |
| self.height = height |
| """ | |
| This script produces a video analysis proving for the first time in history | |
| that bacterial populations grow exponentially. See the result here: | |
| http://i.imgur.com/uoITKiA.gif | |
| We proceed as follows: | |
| - Download a video of bacteria growing under a microscope. | |
| - Cut the video to keep only the first 7 seconds. | |
| - Threshold each frame to find where the bacteria are, and compute the |
| ### PowerShell script to install a minimal Workstation with Chocolatey | |
| # https://chocolatey.org | |
| ## To Run This Script: | |
| # 1. Download this PowerShell script | |
| # * Right-click <> ("View Raw") and "Save As" to %USERPROFILE% (/Users/<username>) | |
| # * If Cocolatey is not already installed, see | |
| # "Uncomment to install Chocolatey" | |
| # * If you would like to also install Anaconda | |
| # (Python, IPython, lots of great libraries) |