set $id=0 | |
set $numVertices = geom.getVertexArray()->getNumElements() | |
while $id < geom.getNumPrimitiveSets() | |
set $primitive = geom.getPrimitiveSet($id) | |
set $primitive_size = $primitive->getNumIndices() | |
printf "processing primitive n.%d (mode: %d, type: %d, size: %d)", $id, $primitive->getMode(), $primitive->getType(), $primitive_size | |
set $ii = 0 | |
while $ii < $primitive_size | |
if $primitive->index($ii) >= $numVertices | |
printf "primitive %d has wrong index (%d >= %d) at index %d", $id, $primitive->index($ii), $numVertices, $ii |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'commander/import' | |
program :version, '0.1' | |
program :description, 'Converts markdown documents into a variety of default formats using Pandoc' | |
CMD = "pandoc" | |
BIB = "$HOME/Dropbox/Documents/bibtex/all-refs.bib" | |
From http://www.linuxjournal.com/article/2156
A very useful Linux feature is named pipes which enable different processes to communicate.
Introduction to named pipes
One of the fundamental features that makes Linux and other Unices useful is the “pipe”. Pipes allow separate processes to communicate without having been designed explicitly to work together. This allows tools quite narrow in their function to be combined in complex ways.
A simple example of using a pipe is the command:
- pycon 2015
- Rethinking packaging, development and deployment
- Techniques for Debugging Hard Problems
- So you think you can PDB?
- Improve your development environments with virtualization
- Zen of Quality - How PBS measures QoS for digital viewers
- Introduction to HTTPS: A Comedy of Errors
- Advanced Git
- 3D Print Anything with the Blender API
Introduction
Docker is a tool for packaging and shipping apps. Based on the idea of a shipping container, it provides a standardized way for developers or system administrators to create lightweight images, or collections of images, for each element of an application, and then easily and quickly deploy the image. Since the image is standardized, it can be uniformly deployed on development or production, leading to a much simpler workflow, faster development time for the dev team, and lower management overhead for the ops team.
First, a quick overview of a few things Docker is:
- An open source tool that places a layer on top of Linux containers (cgroups and namespaces) to make it simple to package and ship complex apps
- A tool for creating a layered filesystem; each layer is versioned and can be shared across running instances, making for much more lightweight deployments
- A company behind the project, as well as a site called the "Docker Hub" for sharing containers
Must see:
- Advances in Real-Time Rendering, Part I & II (Monday)
- Building Blocks for Making 3D Pipeline Wednesday, 12 August, 2-3:30 pm + Pipeline & Asset Management Wednesday, 12 August, 3:45-5:15 pm
Wanna see
- Compute for Mobile Devices: Performance-Focused Hands-On Tuesday, 11 August, 9-10:30 am
- Writing Fast Image Processing Code with Halide Tuesday, 11 August, 10:45 am-12:15 pm
- [The Path-Tracing Revolution in the Movie Industry](http://s2015.siggraph.org/a
#include <iostream> | |
class A | |
{ | |
public: | |
A (int a = 0) : m_a (a) | |
{ } | |
~A () |
//examples: | |
// compress("AABBBCCCCCAADDDD") == "2A3B5C2A4D" | |
// compress("PPPQRRRSTTQQS") == "3PQ3RS2T2QS" | |
// compress("uvw") == "uvw" | |
#include<sstream> | |
#include<string> | |
void _format(std::ostringstream& out, size_t counter, char current) | |
{ |
#include <iostream> | |
class B; | |
class A | |
{ | |
public: | |
A () | |
{ std::cout << "A::A ()" << std::endl; } |