Skip to content

Instantly share code, notes, and snippets.

View zlu's full-sized avatar
💭
I may be slow to respond.

Zhao Lu zlu

💭
I may be slow to respond.
View GitHub Profile
2011-08-15 16:26:54.445 DEBUG [pool-16-thread-30] #MSCTRL#: Add PlayListItem[0, 1, false, rtcs=null, optargs={BARGE_IN_ENABLED=false, BEHAVIOUR_IF_BUSY=QUEUE_IF_BUSY, JUMP_PLAYLIST_INCREMENT=1, PLAYER_FILE_FORMAT=FORMAT_INFERRED, PLAYER_ENABLED_EVENTS=[Ljavax.media.mscontrol.EventType;@1cdcfe5, PLAYER_AUDIO_CODEC=CODEC_INFERRED, PLAYER_START_OFFSET=0, PLAYER_START_PAUSED=false, PLAYER_MAX_DURATION=-1, PLAYER_JUMP_TIME=5000, VOLUME_CHANGE=3, VOICE_NAME=null},"<speak>\n <audio src="http://www.phono.com/audio/troporocks.mp3"/>\n </speak>"]
2011-08-15 16:26:54.445 DEBUG [pool-16-thread-30] #MSCTRL#: Find PlayListItem[IDLE, 0, 1, false]
2011-08-15 16:26:54.446 DEBUG [pool-16-thread-30] #MSCTRL#: Player[IDLE, MG[MG-lBz0ec67RnHeHid-5erBNa4uQ6tLUFSe, MG-lBz0ec67RnHeHid-5erBNa4uQ6tLUFSe]] starts playing PlayListItem[IDLE, 0, 1, false]
2011-08-15 16:26:54.446 DEBUG [pool-16-thread-30] #MSCTRL#: Player[ACTIVE, MG[MG-lBz0ec67RnHeHid-5erBNa4uQ6tLUFSe, MG-lBz0ec67RnHeHid-5erBNa4uQ6tLUFSe]] moves state from [IDLE] to [A
We have obtained a UK number: 442035149248
We have assigned this number as OpenVoice number and dial a UK mobile number: +447976224017
We use this dial command:
14:14:28 worker.1 | <iq type="set" to="173.255.241.49" id="blather0010" from="[email protected]/voxeo">
14:14:28 worker.1 | <dial xmlns="urn:xmpp:rayo:1" to="tel:+447976224017" from="sip:[email protected]"/>
14:14:28 worker.1 | </iq>
We received this result iq:
14:14:29 worker.1 | <iq type="result" id="blather0010" from="173.255.241.49" to="[email protected]/voxeo">
# Emacs backup and recover #
############################
*~
\#*
# IntelliJ and RubyMine #
#########################
.idea
# Database #
@zlu
zlu / gist:1865217
Created February 19, 2012 19:05
error running julia
zlu@zlu-mba:/usr/local/src/julia (master)$ ./julia
dlopen(libarpack, 2): image not found
error during init:
could not load module libarpack
in dlopen, /Users/viral/julia/j/base.j:99 sys.ji:17
(defun set-frame-size-according-to-resolution ()
(interactive)
(if window-system
(progn
;; use 120 char wide window for largeish displays
;; and smaller 80 column windows for smaller displays
;; pick whatever numbers make sense for you
(if (> (x-display-pixel-width) 1280)
(add-to-list 'default-frame-alist (cons 'width 120))
(add-to-list 'default-frame-alist (cons 'width 80)))
(defun set-frame-size-according-to-resolution ()
(interactive)
(if window-system
(progn
;; use 120 char wide window for largeish displays
;; and smaller 80 column windows for smaller displays
;; pick whatever numbers make sense for you
(if (> (x-display-pixel-width) 1280)
(add-to-list 'default-frame-alist (cons 'width 120))
(add-to-list 'default-frame-alist (cons 'width 80)))
(defvar zlu-map (make-keymap) "My personal mode map")
(define-key global-map "\C-c" zlu-map)
(define-key zlu-map "g" 'goto-line)
(defun set-frame-size-according-to-resolution ()
(interactive)
(if window-system
(progn
;; use 120 char wide window for largeish displays
;; and smaller 80 column windows for smaller displays
@zlu
zlu / gist:6064975
Created July 23, 2013 18:39
ruby next
for i in 0..5 do; if i < 4; next; else; p 'hi'; end; end
=> 'hi'
'hi'
1.next
=> 2
next can't be used as a variable name but can be used as a method name.
@zlu
zlu / gist:6716050
Created September 26, 2013 15:45
Incompatible jquery-rails versions
zlu@zlu-mba:~/projects/zeeweibo (master *)$ bundle install
Fetching https://github.com/browsermedia/browsercms.git
remote: Counting objects: 40005, done.
remote: Compressing objects: 100% (13669/13669), done.
remote: Total 40005 (delta 25567), reused 38711 (delta 24438)
Receiving objects: 100% (40005/40005), 12.02 MiB | 260.00 KiB/s, done.
Resolving deltas: 100% (25567/25567), done.
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')