cygcheck
. It's like a read-only version of dpkg or rpm. For example:$ which ssh
/usr/bin/ssh
$ cygcheck -f `which ssh`
openssh-5.9p1-1
cygcheck
. It's like a read-only version of dpkg or rpm. For example:$ which ssh
/usr/bin/ssh
$ cygcheck -f `which ssh`
openssh-5.9p1-1
[{"colin",[3,2,1]},{"dave",[4,3,2]}]
[{struct,[{<<"colin">>,[1,2,3]}]},{struct,[{<<"dave">>,[4,3,2]}]}]or some shit. Really? If I have to munge it into that format, I might as well just encode it myself.
$ git remote -v
origin https://github.com/flashingpumpkin/spooky.git (fetch)
origin https://github.com/flashingpumpkin/spooky.git (push)
$ git remote rm origin
$ git remote -v
$ git remote add origin git@github.com:bluegraybox/spooky.git
$ git remote -v
origin git@github.com:bluegraybox/spooky.git (fetch)
origin git@github.com:bluegraybox/spooky.git (push)
$ git push
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 506 bytes, done.
Total 4 (delta 3), reused 0 (delta 0)
To git@github.com:bluegraybox/spooky.git
a34ae51..b15781e master -> master
$
tar xzf release.tgz
cd release
./configure
make
make install
svn add Icon@2x.png
svn add Icon\@2x.png@
$ gem environment | grep "EXECUTABLE DIRECTORY"
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
$ export PATH=$PATH:/var/lib/gems/1.8/bin/
$ git clone git@github.com:bluegraybox/showoff.git
Cloning into showoff...
...
$ cd showoff/
$ gem build showoff.gemspec
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- parslet (LoadError)
...
$ sudo gem install showoff
[sudo] password for colin:
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Error installing showoff:
ERROR: Failed to build gem native extension.
...
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
...
$ sudo apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8
...
$ sudo apt-get install libreadline-ruby1.8 libruby1.8 libopenssl-ruby
...
$ sudo apt-get install libxslt-dev libxml2-dev
...
$ sudo gem install nokogiri
...
$ sudo gem install showoff
Building native extensions. This could take a while...
Successfully installed json-1.5.3
Successfully installed gli-1.3.2
Successfully installed showoff-0.4.2
...
$ sudo gem uninstall showoff
...
$ gem build showoff.gemspec
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- parslet (LoadError)
...
$ sudo gem install parslet
...
$ gem build showoff.gemspec
...
$ sudo gem install -l -n . showoff
Successfully installed showoff-0.5.1
...
mount -o remount,rw /
dpkg --configure -a
sync
reboot
Errands
Household
| Monday Tuesday
Wednesday
Thursday
Friday Saturday
Sunday |
pdflatex
utility on it.\documentclass{article}
\usepackage{multicol} % need this for manual column break
\usepackage[top=0.5in, bottom=0.5in, left=0.5in, right=0.5in]{geometry} % narrow margins
\usepackage{mdwlist} % for itemize*
\renewcommand{\labelitemi}{} % no bullet for top-level list items
\renewcommand{\labelitemii}{$\cdotp$} % bullet for next level of list items
\begin{document}
\begin{multicols}{2}
\begin{itemize*}
\item Errands
\begin{itemize*}
\item groceries
\item deposit check
\end{itemize*}
\item Household
\begin{itemize*}
\item laundry
\end{itemize*}
% need \vfill at the bottom of each column; otherwise one will be stretched to be as long as the other.
\vfill
\columnbreak
\item Monday
\item Tuesday
\begin{itemize*}
\item 5:00pm happy hour
\end{itemize*}
\item Wednesday
\begin{itemize*}
\item 7:00pm erlang meetup
\end{itemize*}
\item Thursday
\begin{itemize*}
\item 7:30pm dinner w/ Will
\end{itemize*}
\item Friday
\item Saturday
\begin{itemize*}
\item 9:00am plant sale
\end{itemize*}
\item Sunday
\end{itemize*}
\vfill
\end{multicols}
\end{document}
# Install all the packages you're going to need
sudo apt-get install cmake g++ libssl-dev libgmp3-dev libffi-dev libncurses-dev libfreetype6-dev libglfw-dev libpng12-dev libtiff-dev libjpeg-dev libpcre3-dev libxml2 libxml2-dev
# Create the directory you're installing it to
sudo mkdir -p /opt/io
unzip stevedekorte-io-2010.06.06-329-gf641230.zip
cd stevedekorte-io-f641230/
mkdir build && cd build
time cmake -DCMAKE_INSTALL_PREFIX=/opt/io ..
time sudo make install
# Add the lib directory to your linker (ld) config
echo "/opt/io/lib/" | sudo tee /etc/ld.so.conf.d/Io.conf
sudo ldconfig
/opt/io/bin
to you path, or just invoke /opt/io/bin/io
directly.
class Foo {
def bar
}
def baz = new Foo()
Invalid duplicate class definition of class Foo
/usr/bin/java
is 1.6, Maven still horks if my code isn't compatible with 1.3, which it usually isn't because of generics. So I end up having to track down this snippet and paste it into my pom.xml
:<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
.classpath
file and restart Eclipse.
nil
:h = {}
=> {}
h['foo']
=> nil
h = Hash.new(1)
=> {}
h['foo']
=> 1
h = Hash.new("default")
=> {} # empty hash created
h['foo']
=> "default" # 'foo' has the default value
h['bar'] += " value"
=> "default value" # 'bar' gets the default, plus " value" appended
h['baz'].slice!(0..1) # whoa, wait! what's going on here?
=> "de"
h['foo']
=> "fault" # what happened to foo?
h['bar']
=> "default value" # bar is still ok!
h
=> {"bar"=>"default value"} # but it's the only thing in the hash!
h['foo']
doesn't add key 'foo' to the hash with the default value; it just returns the default. It doesn't add a key to the hash unless we actually set a value, like we do for 'bar'.h['baz'].slice!(0..1)
" line? That's actually modifying the default string in place, not just for baz, but for everyone. It still doesn't set a value for baz. That's a little surprising. If you do slice()
instead of slice!()
, it doesn't modify anything.h['baz'].slice(0..1)
=> "de"
h['baz']
=> "default"
h['baz'] += "" # set the value in baz to the default plus an empty string
=> "default"
h['baz'].slice!(0..1) # modify baz in place
=> "de"
h['foo']
=> "default" # foo still the default
h['baz']
=> "fault" # baz modified
h = Hash.new([])
=> {}
h['foo']
=> []
h['foo'].push "red"
=> ["red"]
h['bar']
=> ["red"]
h['bar'].push "green"
=> ["red", "green"]
h = Hash.new {|hash, key| hash[key] = []}
=> {}
h['foo']
=> []
h['foo'].push "red"
=> ["red"]
h['bar'].push "green"
=> ["green"]
/Volumes/Time Capsule Drive
. "Time Capsule Drive" (with spaces) was what I needed for the Share name..sparsebundle
file for each Mac you have backed up.)