This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use the ubuntu machine gem | |
require 'capistrano/ext/ubuntu-machine' | |
# ####################################### | |
# HOSTING PROVIDER CONFIGURATION | |
# Those tasks have been tested with severa hosting providers | |
# and sometimes tasks are specific to those providers | |
set :hosting_provider, "slicehost" # currently supported : ovh-rps, ovh-dedie, slicehost | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## The pattern matcher in both the following will match either the single or double quote | |
## at the start of the src= attribute (this is what is available in $1 | |
## this regexp replacement works fine and will convert | |
## src="/foo/bar.png" | |
## to | |
## src="/RAILS_ROOT/public/foo/bar.png" | |
html_string.gsub!( /src=(["'])[\.\/]/ ) { |m| 'src=' + $1 + "#{RAILS_ROOT}/public/" } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install_driver(mysql) failed: Can't load '/usr/local/ActivePerl-5.10/site/lib/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/usr/local/ActivePerl-5.10/site/lib/auto/DBD/mysql/mysql.bundle, 1): no suitable image found. Did find: | |
/usr/local/ActivePerl-5.10/site/lib/auto/DBD/mysql/mysql.bundle: mach-o, but wrong architecture at /usr/local/ActivePerl-5.10/lib/DynaLoader.pm line 205. | |
at (eval 7) line 3 | |
Compilation failed in require at (eval 7) line 3. | |
Perhaps a required shared library or dll isn't installed where expected | |
at ./mysql_test.pl line 14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## in your app layout file in the <head> section add this | |
<script type="text/javascript"> | |
<%= yield :scripts_text %> | |
</script> | |
## in your action view erb file do this at the bottom | |
<% content_for :scripts_text do %> | |
// raw JS here or erb interpreted JS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<proto name="jabber" showname="Jabber XML Messaging" size="217" pos="66"> | |
<field name="jabber.request" showname="Request: True" hide="yes" size="0" pos="66" show="1"/> | |
<proto name="xml" showname="eXtensible Markup Language" size="217" pos="66"> | |
<field name="xml.tag" showname="<auth>" size="216" pos="66" show="<auth mechanism=\"PLAIN\" xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">" value="3c61757468206d656368616e69736d3d22504c41494e2220786d6c6e733d2275726e3a696574663a706172616d733a786d6c3a6e733a786d70702d7361736c223e4f444533514739775a57356d61584a6c4c57526c646935706257396c626e526c636e5268615735745a5735304c6d4e76625141344d5463414e6d55354f4755305a6a557a593245354f4751784e475931597a6b344d44517a4d6a41794e4451324e5459774d57566d4e5455325a4746685a6a526c593245345a6a6c6c4d545269596a4d334f5445305a6d51354f513d3d3c2f617574683e"> | |
<field name="xml.attribute" showname="mechanism="PLAIN"" size="17" pos="72" show="mechanism=\"PLAIN\"" value="6d656368616e69 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -l | |
$o=1;{grep!($o%$_),2..$o++or print$o;redo} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(imhouser). | |
-export([new/1]). | |
-export([xmppauth/1]). | |
-export([xmpp_request_id/1]). | |
new({Pid, DynData}) -> | |
%%printer(DynData), | |
random:seed(erlang:now()), | |
L1 = [1, 4, 6, 7, 13, 389, 390, 391, 392, 393, 394, 429, 431, 435, 596, 817], | |
lists:nth(random:uniform(16), L1). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2010.02.19 17:04:22 Error or result packet could not be delivered | |
<iq id="4cRequest_9" from="bot.openfire-dev.imoentertainment.com" to="4@openfire-dev.imoentertainment.com/imo" type="result"> | |
<query xmlns="imo:core" xmlns:routing="resource:routes" total_messages="4" unread_messages="6" routing:resource="messages"> | |
<message author_id="4" created_at="2010-02-17T17:57:10Z" crew_id="0" id="2727" message="hi" read="false" recipient_id="4" updated_at="2010-02-17T17:57:10Z"/> | |
<message author_id="4" created_at="2010-02-17T16:01:21Z" crew_id="0" id="2699" message="testing jabber IM for load test" read="false" recipient_id="7" updated_at="2010-02-17T16:01:21Z"/> | |
<message author_id="4" created_at="2009-08-18T14:40:24Z" id="966" message="Share test | |
" recipient_id="1" shareable_id="245" shareable_type="MediaFile" updated_at="2009-08-18T14:40:24Z"/> | |
<message author_id="6" created_at="2009-07-10T16:06:39Z" id="477" message="Add a Personal Message..." recipient_id="4" shareable_id="245" shareable_type="MediaFile" upda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><head><title>JBoss Web/2.1.2.GA - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>org.springframework.web.util.NestedServletException: Request processing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> Downloading http://www.spinnaker.de/debian/lbdb_0.36.tar.gz | |
File already downloaded and cached to /Users/cpjolicoeur/Library/Caches/Homebrew | |
==> Patching | |
patching file ABQuery/ABQuery.pbproj/project.pbxproj | |
patching file ABQuery/ABQuery.xcodeproj/project.pbxproj | |
patching file Makefile.in | |
==> ./configure --prefix=/usr/local/Cellar/lbdb/0.36 | |
==> make install | |
cat lbdbq.sh >lbdbq | |
cat lbdb_lib.sh >lbdb_lib |