Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
""" | |
Lab 16, Objective 3: | |
This project builds on the previous one. | |
Copy your final.py file to a file named final2.py, then modify final2.py to print a histogram of the word lengths. A | |
histogram is a chart with columns whose heights correspond to the data they represent. | |
Below is an example of possible output from running the updated program with the declaration.txt file: |
REM ***** BASIC ***** | |
Sub Main | |
dim sStartRowInput as String | |
dim sEndRowInput as String | |
dim startRow as Integer | |
dim endRow as Integer | |
dim stepCount as Integer | |
dim sheetName as String |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
from lxml import etree | |
import StringIO | |
import sys | |
reload(sys) |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!/bin/bash | |
# myapp daemon | |
# chkconfig: 345 20 80 | |
# description: myapp daemon | |
# processname: myapp | |
DAEMON_PATH="/home/wes/Development/projects/myapp" | |
DAEMON=myapp | |
DAEMONOPTS="-my opts" |
__author__ = 'chris' | |
import os | |
import logging | |
""" | |
Starting with the project you created at the end of the last lesson, | |
add components to the existing framework so that: | |
-- When the areas occupied by Frame 1 or Frame 2 are clicked | |
with mouse button 1, the program should print which frame was clicked | |
and the X and Y coordinates (relative to the Frame). |
Grab ffmpeg from https://www.ffmpeg.org/download.html
OSX Users: Install ffmpeg using homebrew:
brew install ffmpeg --with-libvpx
respectively, if you already have ffmpeg installed without libvpx encoder
brew reinstall ffmpeg --with-libvpx
#! /usr/bin/env python | |
"""pyduino - A python library to interface with the firmata arduino firmware. | |
Copyright (C) 2007 Joe Turner <[email protected]> | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License | |
as published by the Free Software Foundation; either version 2 | |
of the License, or (at your option) any later version. |
http://nopaste.info/cac839a765.html#=========================================================================================== | |
# AUTHOR: Tao Yang | |
# DATE: 01/07/2010 | |
# Version: 1.0 | |
# COMMENT: Bulk add NTFS permission to a list of folders. | |
# Usage: .\BulkSet-NTFSPermissions.ps1 -FolderListFile xxxxxx\xxxx.txt -SecIdentity "Domain\Group" -AccessRights "FullControl" -AccessControlType "Allow" | |
#=========================================================================================== | |
param ( | |
[string]$FolderListFile = $(throw "Plese specify the folder list file using -FolderListFile switch."), |
this is a sample of output: | |
root@percona-db-2:~# iperf -s -u -B 226.94.1.1 -i 1 | |
------------------------------------------------------------ | |
Server listening on UDP port 5001 | |
Binding to local address 226.94.1.1 | |
Joining multicast group 226.94.1.1 | |
Receiving 1470 byte datagrams | |
UDP buffer size: 122 KByte (default) | |
------------------------------------------------------------ |