A complete gdb to lldb command map.
- Print object
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
- p - Print primitive type
A complete gdb to lldb command map.
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package week7 | |
| object primes { | |
| //infinite stream builder | |
| def from(n: Int): Stream[Int] = n #:: from(n + 1) | |
| //> from: (n: Int)Stream[Int] | |
| //infinte stream of all natural numbers | |
| val nats = from(0) //> nats : Stream[Int] = Stream(0, ?) | |
| val m4s = nats map (_ * 4) //> m4s : scala.collection.immutable.Stream[Int] = Stream(0, ?) |
| #!/bin/bash | |
| # Change Xcode build specs by merging OSX's specs in iPhone Simulator's specs | |
| # This allows to build dynamic libraries for the simulator | |
| PLISTBUDDY="/usr/libexec/PlistBuddy" | |
| ROOT=`xcode-select -print-path` | |
| SIM_SPECS_DIR="$ROOT/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Specifications" | |
| OSX_SPECS_DIR="$ROOT/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications" |
| package java8fun; | |
| public class Foobar { | |
| private String foo; | |
| private Integer bar; | |
| public Foobar(String foo, Integer bar) { | |
| this.foo = foo; | |
| this.bar = bar; |
| #!/bin/bash | |
| IPT="/sbin/iptables" | |
| # Server IP | |
| SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
| # Your DNS servers you use: cat /etc/resolv.conf | |
| DNS_SERVER="8.8.4.4 8.8.8.8" | |
| # Allow connections to this package servers |
This configuration is no longer updated
| defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}' |
http://brainwreckedtech.wordpress.com/2012/01/08/howto-convert-vdis-between-fixed-sized-and-dynamic-in-virtualbox/ http://www.webdesignblog.asia/software/linux-software/resize-virtualbox-disk-image-manipulate-vdi/#comment-474
While there is no way to actually switch a VDI between fixed-size and dynamic, you can clone the existing VDI into a new one with different settings with VBoxManage.
VBoxManage clonehd [old-VDI] [new-VDI] --variant Standard
VBoxManage clonehd [old-VDI] [new-VDI] --variant Fixed
If you want to expand the capacity of a VDI, you can do so with