This file contains hidden or 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
| ** exception exit: {assertion_failed,{data,{http,get, | |
| ["http://na.aiononline.com/livestatus/character-legion/search?serverName=", | |
| "Fregion","&charName=","Korale"]}, | |
| {status,200}}} | |
| in function ex_consumer:handle_failure/2 | |
| in call from ex_consumer:execute/3 | |
| in call from ex_engine:run/1 |
This file contains hidden or 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(ets_queue). | |
| -export([behaviour_info/1]). | |
| -define(DEFAULT_PAUSED, false). | |
| -define(DEFAULT_DELAY, 500). | |
| -record(state, {module, queue_name, paused, delay, peek}). | |
| behaviour_info(callbacks) -> [{init, 1}, {process, 1}]; | |
| behaviour_info(_) -> undefined. |
This file contains hidden or 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
| 1 File(s) copied | |
| 1 File(s) copied | |
| PSPath : Microsoft.PowerShell.Core\FileSystem::C:\organized_photos\2008\01 | |
| PSParentPath : Microsoft.PowerShell.Core\FileSystem::C:\organized_photos\2008 | |
| PSChildName : 01-01-2008 | |
| PSDrive : C | |
| PSProvider : Microsoft.PowerShell.Core\FileSystem | |
| PSIsContainer : True | |
| Name : 01-01-2008 |
This file contains hidden or 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(emonog_tools). | |
| -export([replace/3, replace_add/4]). | |
| replace(Collection, Find, Items) -> | |
| #response{documents = [Doc]} = emongo:find(iplaywar, Collection, Find), | |
| NewDoc = lists:foldl( fun replace_add/2, Doc, Items ), | |
| emongo:update(iplaywar, Collection, Find, NewDoc, true). | |
| replace_add({Name, Value}, Doc) -> | |
| case lists:keymember(Name, 1, Doc) of |
This file contains hidden or 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
| README FIRST | |
| The name of the slice and hostname is 'CAG', change all instances of that to whatever your hostname is. | |
| The erlang package on yum is not latest and does not install sources. You'll need the ncurses-devel and openssl-devel packages to build the otp/erlang source. | |
| If you are going to connect multiple slices/nodes be sure to contact Slicehost support for internal IP addresses for all of your nodes. Then, be sure to have your nodes connect with each other over those IPs. It'll save you bandwidth and internal traffic doesn't count against your monthly plan. Also, be absolutely sure to do any data transfers (MySQL, CouchDB, MongoDB, scp, etc) over those IPs. | |
| What I do is run lighttpd as a dumb hostname/ip proxy to internal services. I'll run lighttpd on port 80 and then all of the other services on ports internal IPs and route requests to them based on hostname. I've included my lighttpd config and the iptables config to help out. |
This file contains hidden or 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
| #!/bin/sh | |
| while :; do nc -l 8083 < index.html ; done |
This file contains hidden or 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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> | |
| <title>Game Programming Patterns / Singleton</title> | |
| <link rel="stylesheet" type="text/css" href="styles.css" /> | |
| <script src="jquery-1.3.2.min.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <div class="nav"> |
This file contains hidden or 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
| This is my ideal erlang MySQL client. | |
| High Level | |
| * Groups are process based and multiple group leaders can be spawned and named | |
| * Supports many connections | |
| * Connections (and groups of connections) can be named | |
| * Supports SQL generation | |
| * Uses records to represent statements and responses | |
| Module layout |
This file contains hidden or 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
| erl -pidfile this_file -eval '(fun ([N]) -> {ok, F}=file:open(N,[write]),io:format(F,"~s~n",[os:getpid()]),file:close(F),ok; (_) -> nok end)(proplists:get_value(pidfile, init:get_arguments()))' -s init stop |
This file contains hidden or 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
| <%@ draw(Year, Month, Dates) %> | |
| <html> | |
| <head> | |
| <style> | |
| /* calendar */ | |
| table.calendar { border-left:1px solid #999; } | |
| tr.calendar-row { } | |
| td.calendar-day { min-height:80px; font-size:11px; position:relative; } * html div.calendar-day { height:80px; } | |
| td.calendar-day:hover { background:#eceff5; } | |
| td.calendar-day-np { background:#eee; min-height:80px; } * html div.calendar-day-np { height:80px; } |