-
Go to https://developer.apple.com/downloads/index.action and search for "Command line tools" and choose the one for your Mac OSX
-
Go to http://brew.sh/ and enter the one-liner into the Terminal, you now have
brew
installed (a better Mac ports) -
Install transmission-daemon with
brew install transmission
-
Copy the startup config for launchctl with
ln -sfv /usr/local/opt/transmission/*.plist ~/Library/LaunchAgents
<!-- | |
1. Download the Android Jelly Bean fonts and the Symbola font: | |
https://www.dropbox.com/s/tvtzcnzkvbe0nrt/jelly-bean-fonts.zip | |
http://users.teilar.gr/~g1951d/Symbola707.zip | |
2. unzip the files and put AndroidEmoji.ttf and Symbola.ttf (and any of the other fonts that strike your fancy) | |
in your ~/.fonts/ directory | |
3. run `fc-cache -f`. You can check to make sure the new fonts | |
were installed with `fc-list`. You'll probably want to grep the copious output for Symbola or Emoji |
// KSP 2D Ascent Trajectory Optimization Problem | |
#include "psopt.h" | |
////////////////////////////////////////////////////////////////////////// | |
/////////////////// Define the end point (Mayer) cost function ////////// | |
////////////////////////////////////////////////////////////////////////// | |
adouble endpoint_cost(adouble* initial_states, adouble* final_states, | |
adouble* parameters,adouble& t0, adouble& tf, | |
adouble* xad, int iphase) |
# opening and closing windows and popovers | |
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false | |
# smooth scrolling | |
defaults write -g NSScrollAnimationEnabled -bool false | |
# showing and hiding sheets, resizing preference windows, zooming windows | |
# float 0 doesn't work | |
defaults write -g NSWindowResizeTime -float 0.001 |
Prerequisites (this is what I use, your mileage may vary): | |
Mac OS X 10.10.4 running on iMac13,2 | |
XQuartz (http://xquartz.macosforge.org) | |
PlayOnMac 4.2.8 (https://www.playonmac.com) - N.B. PlayOnLinux available | |
Wine 1.6.2 (downloaded in PlayOnMac) | |
The First Decade (TFD) DVD (Red Alert 2 and Yuri's Revenge) | |
TFD v1.03 revision 4 patch (http://www.cncnz.com/hosted-projects/command-patch/the-first-decade-unofficial-patch/) | |
Updates to latest versions of RA2 and Yuri plus NO-CD, TCP (network play) patch and other goodies | |
Install PlayOnMac |
- Install SIMBL http://culater.net/software/SIMBL/SIMBL.php
- Copy SpotlightSIMBL.bundle to /Library/Application Support/SIMBL/Plugins/ (a)
- Copy Flashlight.osax to ~/Library/ScriptingAdditions/ (b)
- Disable Flashlight
- Enable Flashlight
- Open Script Editor on your Mac (look for "Script Editor In Spotlight") and paste the following code (don't change Snow Leopard for Yosemite)
tell application "Spotlight" to inject SIMBL into Snow Leopard
A full OpenGL profile requires X to be running. For X to run, it requires a display to be connected to the machine. Given that most server machines do not have this, it becomes difficult to run OpenGL.
This document details how to get OpenGL and X up and running without having a display connected to the sevrer.
You will need access to the remote system over SSH.
To run the tool, you will need libGL.so
and libX11.so
. These are installed when X and the NVIDIA Drivers are installed. So there is nothing special required to install these.
Another tool I would recommend strongly is glewinfo. Most linux distributions ship this with the glew-utils package. An alternate to glewinfo is glxinfo which is present on all systems with X. You can substitute glewinfo with glxinfo in all the commands below if needed.
Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).
The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int
import pycurl | |
import json | |
import time | |
from StringIO import StringIO | |
i = 0 | |
bnums = [] | |
while True : | |
print(str(i)) |
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i