background preloader

The MacPorts Project

The MacPorts Project

Installing Python on Mac OS X The latest version of Mac OS X, El Capitan, comes with Python 2.7 out of the box. You do not need to install or configure anything else to use Python. Having said that, I would strongly recommend that you install the tools and libraries described in the next section before you start building Python applications for real-world use. The version of Python that ships with OS X is great for learning but it’s not good for development. Doing it Right Let’s install a real version of Python. Before installing Python, you’ll need to install GCC. Note If you already have Xcode installed, do not install OSX-GCC-Installer. If you perform a fresh install of Xcode, you will also need to add the commandline tools by running xcode-select --install on the terminal. While OS X comes with a large number of UNIX utilities, those familiar with Linux systems will notice one key component missing: a decent package manager. To install Homebrew, open Terminal or your favorite OSX terminal emulator and run

QEMU Mac OS X… Success! - Mike Levin It’s time for for me to create an up-to-date QEMU on Mac OS X. I had wonderful success yesterday getting QEMU compiled and installed on my Commodore 64x running Linux Ubuntu beta 12.10 yesterday. I’m working from home today on my Macbook Air laptop, so I’ll today, I’m doing it for Mac. My goal is to make the best portable Linux for USB drives that works across Mac, Windows and Linux. I did this before in a proof-of-concept Levinux, cobbling together QEMU binaries from different sources, with inconsistent versions and unencapsulated dependencies. First, we look at the options for getting QEMU on a Mac, and inevitably you end up on the website for a project named “Q”, which has a lot of great characteristics in how it was made to look and work well with the Mac—except that it’s old, and the self-contained packages it creates are very difficult to follow and organize side-by-side with the files required for the other platforms. First thing is what compiler I’m going to use. …on Mac. . ==> .

Python Wrapper "Python API, Documents and Stuff" About The Python wrapper is written in Cython Ctypes. We have been through several iterations of these wrappers in Pure C, Ctypes, and Cython. A variety of demos are provided using all available kinect features with examples for Matplotlib and OpenCV display. The wrappers don't work for windows out of the box. Who is involved Search for Python in People However (Brandyn) and (amiller) are trying to organize things for Python. Current Status Differences with C Library Things that are intentionally different to be more Pythonic init/open_device Different calling style (returns the new value as opposed to using a double pointer). In C: freenect_init(&ctx, 0) Becomes: ctx = init() Names Everything is in the freenect module. Things not implemented (though could be added) get/set user Not implemented Dev/Ctx/State Opaque classes wrapping void *'s (you can't access struct elements). Log functionality and callback Additional Features get_accel runloop Kill exception How to compile

Getting started Grunt and Grunt plugins are installed and managed via npm, the Node.js package manager. Grunt 0.4.x requires stable Node.js versions >= 0.8.0. Before setting up Grunt ensure that your npm is up-to-date by running npm update -g npm (this might require sudo on certain systems). If you already have installed Grunt and are now searching for some quick reference, please checkout our Gruntfile example and how to configure a task. Installing the CLI Using Grunt 0.3? In order to get started, you'll want to install Grunt's command line interface (CLI) globally. npm install -g grunt-cli This will put the grunt command in your system path, allowing it to be run from any directory. Note that installing grunt-cli does not install the Grunt task runner! How the CLI works Each time grunt is run, it looks for a locally installed Grunt using node's require() system. Working with an existing Grunt project Change to the project's root directory.Install project dependencies with npm install.Run Grunt with grunt.

TreeLine PIOS: Parallel Instructional Operating System Introduction The time of uniprocessor machines working alone or in loosely coupled configurations is over. The time of massively parallel multicore machines working in tightly coupled data center clusters is here. It is time for undergraduate operating system courses to catch up to this reality, and expose students to the multicore and cluster OS concepts and programming practices they will need in today's and tomorrow's industry and research positions. PIOS is based on JOS from MIT, but its core kernel, user-space runtime, and programming assignments were redesigned and rewritten by Bryan Ford at Yale to emphasize parallel and distributed OS concepts and programming techniques. Since PIOS has been used only one year so far, it is still in an early, experimental state, and will continue to evolve in subsequent years. PIOS Design Overview Instructional Curriculum Availability

Easy Interactive Camera-Projector Homography in Python Math. It turns out its not quite like riding a bike. A year since college, and two since my last computer vision course, my knowledge of linear algebra is basically nil. Several projects I’m stewing on are bottlenecked on this. I won’t go into detail about deriving the transformation matrix, as there is information elsewhere better than I could present. Point an infrared camera at a projector screen, with both connected to the same computer.Run the script.Align an lit IR LED to the green X on the projector screen, and press any key.Repeat step 3 until you have four points (or more, depending on the script mode), at which point,The script will calculate the homography, print it out, and save it as a NumPy file. The script in its current form uses any Pygame supported infrared camera. It would be overly optimistic of me to believe there are many people in the world with both the hardware and the desire to run this script. Download:homography.pyblackboard.py Related Posts

untitled Installing / Updating Python on OS X | Wolf Paulus While Python comes pre-installed on OS X, Apple doesn’t do a good job on keeping the Python runtime environment up to date. Currently, on Mac OS X 10.7.4 “Lion”, entering python -V returns Python 2.7.1. Even worse, Mac OS X 10.6 “Snow Leopard” is still on a Python 2.6 release. While the latest Python releases are always available on updating a Mac isn’t a simple, straight forward process. Follow along and update your Mac to Python 2.7.3, or 3.3.0 or whatever the newest 2.x and 3.x release might be, when you read this. To update your Mac to something like Python 2.7.3, I assume that your Mac-User account is setup as an “Administrator” account.your Mac already has this folder: /System/Library/Frameworks/Python.framework/Versions/ To read about how to upgrade to Python 3.3, jump to the very bottom of this post. 1. Go to python.org and pick the most recent Python 2.x release: 2. This will delete Python 2.7. 3. 4. 5. 5.1. 5.2. 6. 7.

Homework: running and debugging xv6 This lecture is the introduction to xv6, an x86-based re-implementation of Unix v6. Read the source code in the assigned files; The assigned chapter for today provides a commentary on the assigned files. You won't have to understand the details yet; we will simply focus for now on getting xv6 up and running under QEMU and debugging it under GDB at the C source code level. Hand-In Procedure You are to turn in this homework during lecture. Since the associated lecture is during Yale's shopping period, we will accept this homework late with no penalty up through the end of shopping period, but to aid your understanding the lecture we strongly encourage you to complete the homework on time if possible. Fetch and un-tar the xv6 source: $ wget $ tar xzvf xv6-rev4.tar.gz xv6/ xv6/trap.c xv6/sysfile.c xv6/types.h Build xv6: $ cd xv6 $ make gcc -O -nostdinc -I. Running xv6 under QEMU Now type: QEMUOPTS = -hdb fs.img xv6.img -smp $(CPUS) with

Related: