Skip to content

Instantly share code, notes, and snippets.

View maletor's full-sized avatar

Ellis Berner maletor

View GitHub Profile
<% unless @post.comments.empty? %>
<h3><%= pluralize @post.comments.size, 'Comment' %></h3>
<% for comment in @post.comments %>
<% unless comment.new_record? or comment.spam? %>
<p class="box comment">
<% if comment.author_url.blank? %>
<strong><%=h comment.author %></strong> <%=h comment.content %>
<% else %>
fsck from util-linux-ng 2.16
/dev/mapper/vg-root: clean, 252842/182517760 files, 216245361/730055680 blocks
fsck from util-linux-ng 2.16
/dev/md0: recovering journal
/dev/md0: clean, 174/24096 files, 24944/96256 blocks
[ 14.218611] usplash:425 freeing invalid memtype fffffffff9000000-ffffffff9e00000
100802 02:48:02 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
100802 2:48:02 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
/usr/local/Cellar/mysql/5.1.49/libexec/mysqld: Table 'mysql.plugin' doesn't exist
100802 2:48:02 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100802 2:48:02 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
15:55:57 T:140114363099168 M:3403063296 NOTICE: -----------------------------------------------------------------------
15:55:57 T:140114363099168 M:3402911744 NOTICE: Starting XBMC, Platform: Linux (Ubuntu 10.04.1 LTS, 2.6.32-24-generic x86_64). Built on Aug 14 2010 (SVN:32781)
15:55:57 T:140114363099168 M:3402911744 NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
15:55:57 T:140114363099168 M:3402911744 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/xbmc
15:55:57 T:140114363099168 M:3402911744 NOTICE: special://masterprofile/ is mapped to: /home/jane/.xbmc/userdata
15:55:57 T:140114363099168 M:3402911744 NOTICE: special://home/ is mapped to: /home/jane/.xbmc
15:55:57 T:140114363099168 M:3402911744 NOTICE: special://temp/ is mapped to: /home/jane/.xbmc/temp
15:55:57 T:140114363099168 M:3402911744 NOTICE: The executable running is: /usr/lib/xbmc/xbmc.bin
15:55:57 T:140114363099168 M:3402911744 NOTICE: Log File is located: /home/jane/.xbmc/temp/xbmc.log
15:55:57 T:140114363099168 M:3402911744
ree-1.8.7-2010.02 > a = %w[cats dogs vampires mummies food octapus asdf fdsa]
=> ["cats", "dogs", "vampires", "mummies", "food", "octapus", "asdf", "fdsa"]
ree-1.8.7-2010.02 > a.each_with_index { |line, i| a.delete_at(i) if line.include?("d") }
=> ["cats", "vampires", "mummies", "octapus", "fdsa"]
ubuntu@ubuntu:~$ sudo dmesg | tail
[ 269.140843] sd 2:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_OK
[ 269.140845] sd 2:0:0:0: [sda] CDB: Read(10): 28 00 00 02 f8 00 00 00 08 00
[ 269.140850] end_request: I/O error, dev sda, sector 194560
[ 269.140853] Buffer I/O error on device sda2, logical block 0
[ 337.430839] sd 2:0:0:0: timing out command, waited 180s
[ 337.430842] sd 2:0:0:0: [sda] Unhandled error code
[ 337.430843] sd 2:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_OK
[ 337.430845] sd 2:0:0:0: [sda] CDB: Read(10): 28 00 00 02 f7 80 00 00 08 00
[ 337.430849] end_request: I/O error, dev sda, sector 194432
ubuntu@ubuntu:~$ df -h
Filesystem Size Used Avail Use% Mounted on
aufs 124M 101M 18M 86% /
none 2.0G 324K 2.0G 1% /dev
/dev/sde1 2.0G 826M 1.2G 42% /cdrom
/dev/loop0 667M 667M 0 100% /rofs
none 2.0G 164K 2.0G 1% /dev/shm
tmpfs 2.0G 28K 2.0G 1% /tmp
none 2.0G 92K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
ubuntu@ubuntu:~$ cat /etc/fstab
aufs / aufs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sda2 swap swap defaults 0 0
/dev/sdb2 swap swap defaults 0 0
/dev/sdc2 swap swap defaults 0 0
/dev/sdd2 swap swap defaults 0 0
maletor@denmark:/etc/modprobe.d$ dmesg | grep -i alsa
[ 16.507306] ALSA hda_intel.c:2544: chipset global capabilities = 0x2403
[ 16.570022] ALSA hda_intel.c:908: codec_mask = 0xf
[ 16.590020] ALSA hda_intel.c:1346: codec #0 probed OK
[ 16.610019] ALSA hda_intel.c:1346: codec #1 probed OK
[ 16.630019] ALSA hda_intel.c:1346: codec #2 probed OK
[ 16.650019] ALSA hda_intel.c:1346: codec #3 probed OK
[ 50.970112] ALSA hda_intel.c:1670: azx_pcm_prepare: bufsize=0x3700, format=0x4011
[ 51.010018] ALSA patch_hdmi.c:733: hdmi_setup_stream: NID=0x5, pinctl=0x40
[ 51.010021] ALSA hda_codec.c:1226: hda_codec_setup_stream: NID=0x4, stream=0x6, channel=0, format=0x4011
rpi-wl-757:ellisberner maletor$ rails generate mailer ContactMailer
/Users/maletor/.rvm/gems/ruby-1.9.2-p0/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
Abort trap
rpi-wl-757:ellisberner maletor$ which rails
/usr/bin/rails
rpi-wl-757:ellisberner maletor$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7