Skip to content

Instantly share code, notes, and snippets.

MyModel < AR::Base
before_validation :multiply_price_by_100
protected
def multiply_price_by_100
self.price = self.price * 100
end
InnoDB: Error: data file ./ibdata1 is of a different size
InnoDB: 9344 pages (rounded down to MB)
InnoDB: than specified in the .cnf file 128000 pages!
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
FFmpeg version SVN-r15261, Copyright (c) 2000-2008 Fabrice Bellard, et al.\n configuration: --prefix=/usr --incdir=/usr/include/ffmpeg --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --arch=i386 --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fno-math-errno --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-postproc --enable-swscale --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-optimizations --disable-stripping\n libavutil 49.10. 0 / 49.12. 0\n libavcodec 51.71. 0 / 51.71. 0\n libavformat 52.22. 1 / 52.23. 1\n libavdevice 52. 1. 0 / 52. 1. 0\n libavfilter 0. 1. 0 / 0. 1. 0\n
[onehub@domU-12-31-39-01-8C-73 x264]$ ./configure --enable-mp4-output
Platform: X86
System: LINUX
asm: yes
avis input: no
mp4 output: yes
pthread: yes
debug: no
gprof: no
PIC: no
have_library: checking for magic_open() in -lmagic... -------------------- no
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i386-linux -I. -D_FILE_OFFSET_BITS=64 -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fPIC conftest.c -L. -L/usr/lib -L. -rdynamic -Wl,-export-dynamic -lruby-static -lmagic -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function 't':
conftest.c:3: error: 'magic_open' undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
tf = Tempfile.new('gateway', '/data/nginx_tmp')
path = tf.path # Gets us a random filename.
tf.close!
host = <%= hostname %>
index = <%= puppet_env %>
_blacklist = \.(tgz|gz)$
[monitor:///var/log]
disabled = false
<%- if defined(Class["macchiato"]) -%>
[monitor:///data/onehub/shared/log]
disabled = false
location /signup {
root /Users/Andrew/Projects/onehub/airstrip/public;
proxy_connect_timeout 10;
proxy_read_timeout 60;
# needed to forward user's IP address to rails
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
if defined(Class["macchiato"]) {
$has_macchiato = true
} else {
$has_macchiato = false
}
if defined(Class["mysql"]) {
$has_mysql = true
} else {
$has_mysql = false
#!/bin/sh
#
# Will append the current Lighthouse ticket number to the commit message automatically
# when you use the 1234-foo-bar branch naming convention.
#
# Drop into .git/hooks/commit-msg
# chmod +x .git/hooks/commit-msg
exec < /dev/tty