Skip to content

Instantly share code, notes, and snippets.

array(
0 => array(
'User' => array(
'id' => 1
),
'Bill' => array(
0 => array(
'number' => 1000,
'id' => 10,
'status' => 'ZERW'
array(
0 => array(
'User' => array(
'id' => 1
),
'Bill' => array(
0 => array(
'number' => 1000,
'id' => 10,
'status' => 'ZERW'
g++ -o playfmd main.o QueueManager.o playfmJob.o -L/usr/local/lib -L/opt/local/lib -lavformat -lavcodec -lz -lbz2 -lm -lavutil -lboost_program_options-mt -lboost_thread-mt -lmysqlpp
Undefined symbols:
"boost::thread_resource_error::thread_resource_error()", referenced from:
boost::mutex::mutex()in QueueManager.o
boost::condition_variable::condition_variable()in QueueManager.o
"boost::program_options::options_description::options_description(unsigned int)", referenced from:
parseArgs(int, char**, qm_data&, URI&)in main.o
"boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)", referenced from:
parseArgs(int, char**, qm_data&, URI&)in main.o
parseArgs(int, char**, qm_data&, URI&)in main.o
<div id="container">
<div id="div1" style="float: left">
</div>
<div id="div2" style="float: left">
<p>some text</p>
</div>
<div id="div3" style="float: left">
</div>
</div>
function someSynchronouseCall() {
var data = null;
someAsynchronousCall(function(response) {
data = response.data;
});
// is there some way to wait for the above callback before returning 'data' ?
return data;
}
#define some colors
green=$'\e[1;32m'
magenta=$'\e[1;35m'
blue=$'\e[1;34m'
normal_colours=$'\e[m'
c_red=$'\e[1;31m'
c_green=$'\e[1;32m'
c_sgr0=$'\e[1;00m'
function parse_git_branch
cd /path/to/redmine && /usr/bin/ruby script/runner "Repository.fetch_changesets" -e production >> /tmp/logs/parse_changesets.log
#OR
RAILS_ENV=production /usr/bin/rake -f /path/to/redmine/Rakefile --trace redmine:fetch_changesets >> /tmp/logs/parse_changesets.log
<dataConfig>
<dataSource encoding="UTF-8" driver="com.mysql.jdbc.Driver"/>
<document name="solrIndex">
<entity name="artist" query="select id, name, stats_total, stats_popindex from artist where namevariation_id is null and deleted = 0" >
<field column="id" name="id_i" />
<field column="name" name="name_t" />
<entity name="recording" query="select recording_id from recording_artist where artist_id=${artist.id}">
<field column="recording_id" name="recs_i" />
</entity>
next_url = url_for({
:controller => 'authsubs',
:action => 'finish',
:only_path => false,
:host => request.host
})
<?php
register_shutdown_function('shutdownFunction');
function shutDownFunction() {
$error = error_get_last();
if ($error['type'] == 1) {
var_dump(debug_backtrace());
}
}