I hereby claim:
- I am bradfordw on github.
- I am bradfordw (https://keybase.io/bradfordw) on keybase.
- I have a public key whose fingerprint is DA3A 7145 D8F4 5010 1EF6 573C EF2B DA50 F24F 85A7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
MySQL | |
create table webmasters ( | |
id int(11) unsigned primary key auto_increment not null, | |
email varchar(255) not null, | |
password varchar(255) not null); | |
create table stats ( | |
id int(11) unsigned primary key auto_increment not null, | |
webmaster_id int(11) unsigned not null, | |
widget_id int(11) unsigned not null, |
# Wonder which is nodejs and which is erlang... | |
# erlang node was running on only 2 schedulers instead of the 8 available | |
bwinfrey:~ $ siege -c 25 -i -b --time=1M -f URLS | |
** SIEGE 2.71 | |
** Preparing 25 concurrent users for battle. | |
The server is now under siege...[alert] socket: 125456384 select timed out: Operation timed out | |
[alert] socket: 124383232 select timed out: Operation timed out | |
[alert] socket: 124919808 select timed out: Operation timed out | |
[alert] socket: 131358720 select timed out: Operation timed out |
[{"name": null,"first_name": null,"last_name": null,"birth_city": null,"birth_state": null,"birth_country": null,"birth_date": null,"college": null,"draft_team": null,"draft_round": null,"draft_pick": null,"draft_year": null,"position": null,"height": null,"weight": null,"death_date": null,"death_city": null,"death_state": null,"death_country": null,"year_start": null,"year_end":null}] |
[erlang-solutions] | |
name=Centos $releasever - $basearch - Erlang Solutions | |
baseurl=http://packages.erlang-solutions.com/rpm/centos/6/$basearch | |
gpgcheck=1 | |
gpgkey=http://packages.erlang-solutions.com/rpm/erlang_solutions.asc | |
enabled=1 |
[ | |
{ | |
"id": 100, | |
"url": "http://en.wikipedia.org/wiki/Salmonidae" | |
} | |
] |
#!/bin/bash | |
pbpaste | xmllint --format - | |
exit 0 |
<script runat="server"> | |
private void Page_Load(object sender, System.EventArgs e) | |
{ | |
Response.Status = "301 Moved Permanently"; | |
Response.AddHeader("Location","http://www.google.com"); | |
} | |
</script> |
-module(etap_t_001). | |
-export([start/0]). | |
start() -> | |
etap:plan(8), | |
etap_application:start_ok(inets, "Application inets starts"), | |
etap_web:simple_200("http://0.0.0.0:8000/", "GET / returns 200."), | |
RequestPostDB = etap_web:build_request(post, "http://0.0.0.0:8000/_db", [], [<<"test_cache">>]), | |
RequestPostDB:status_is(201, "POST for successful create returns 201."), | |
RequestDeleteDB = etap_web:build_request(delete, "http://0.0.0.0:8000/_db",[],[<<"test_cache">>]), |
swap(Bin, Original, New) -> | |
swap(Bin, erlang:byte_size(Original), Bin, Original, New, 0). | |
swap(BinOrig, OriginalLen, Bin, Original, New, Acc) -> | |
case Bin of | |
<<Original:OriginalLen/binary, Right/binary>> -> | |
OtherRepl = swap(Right, Original, New), | |
<<Left:Acc/binary,_/binary>> = BinOrig, | |
<<Left/binary, New/binary, OtherRepl/binary>>; | |