summaryrefslogtreecommitdiffstats
path: root/archives/extend/2014-November.txt
blob: d1431e9e7019e4e41dca6466530403fa0c1e9a35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
From suresh at pimtools.com  Thu Nov  6 14:31:23 2014
From: suresh at pimtools.com (Suresh Kumar R)
Date: Thu, 6 Nov 2014 19:01:23 +0530
Subject: [99s-extend] Html encode/decode
Message-ID: <[email protected]>

Hi,

Can you suggest a best library to encode/decode html and url? I am using cowboy and bullet. Mochiweb seems to support only url encode/decode.

I have been using mochijson2.erl file from mochi web to encode/decode json.
 
Cheers
Suresh



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ninenines.eu/archives/extend/attachments/20141106/85a93e04/attachment.html>

From e at bestmx.net  Thu Nov  6 14:32:41 2014
From: e at bestmx.net (e at bestmx.net)
Date: Thu, 06 Nov 2014 14:32:41 +0100
Subject: [99s-extend] Html encode/decode
In-Reply-To: <[email protected]>
References: <[email protected]>
Message-ID: <[email protected]>

> Can you suggest a best library to encode/decode html and url?

what exactly do you mean encode?
what are desired properties of the encoded text?


From e at bestmx.net  Tue Nov 11 01:32:45 2014
From: e at bestmx.net (e at bestmx.net)
Date: Tue, 11 Nov 2014 01:32:45 +0100
Subject: [99s-extend] Websocket frames sequence
In-Reply-To: <[email protected]>
References: <[email protected]>
 <[email protected]>
Message-ID: <[email protected]>

hi, all

the question is about websocket and cowboy, both.

if i return from a callback the value:
{reply, [{text,"A"}, {text,"B"}], Req, State}

is it guaranteed that "A" will be received by the client prior to "B" ?

if not, what actually happens? (are they emitted independently or together?)

From pdtwonotes at gmail.com  Tue Nov 11 05:52:45 2014
From: pdtwonotes at gmail.com (Paul Dickson)
Date: Mon, 10 Nov 2014 23:52:45 -0500
Subject: [99s-extend] Streaming with the static handler
Message-ID: <[email protected]>

I am building a streaming music server that delivers mp3 files from disk
to instances of 'mplayer'.  So far I am using the Cowboy static handler
for this, and it is working for a single player but I wonder how
efficient the buffering is at the network level.  Should I instead be
doing this myself with an http handler and chunked replies?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ninenines.eu/archives/extend/attachments/20141110/a4b469a5/attachment.html>

From essen at ninenines.eu  Tue Nov 11 10:04:04 2014
From: essen at ninenines.eu (=?UTF-8?B?TG/Dr2MgSG9ndWlu?=)
Date: Tue, 11 Nov 2014 11:04:04 +0200
Subject: [99s-extend] Websocket frames sequence
In-Reply-To: <[email protected]>
References: <[email protected]>
 <[email protected]> <[email protected]>
Message-ID: <[email protected]>

In order, yes. I will clarify that in the guide.

On 11/11/2014 02:32 AM, e at bestmx.net wrote:
> hi, all
>
> the question is about websocket and cowboy, both.
>
> if i return from a callback the value:
> {reply, [{text,"A"}, {text,"B"}], Req, State}
>
> is it guaranteed that "A" will be received by the client prior to "B" ?
>
> if not, what actually happens? (are they emitted independently or
> together?)
> _______________________________________________
> Extend mailing list
> Extend at lists.ninenines.eu
> https://lists.ninenines.eu/listinfo/extend

-- 
Lo?c Hoguin
http://ninenines.eu

From essen at ninenines.eu  Tue Nov 11 10:08:31 2014
From: essen at ninenines.eu (=?UTF-8?B?TG/Dr2MgSG9ndWlu?=)
Date: Tue, 11 Nov 2014 11:08:31 +0200
Subject: [99s-extend] Streaming with the static handler
In-Reply-To: <[email protected]>
References: <[email protected]>
Message-ID: <[email protected]>

No idea. Measure? Chances are it's good enough for your intended scale. :-)

On 11/11/2014 06:52 AM, Paul Dickson wrote:
> I am building a streaming music server that delivers mp3 files from disk
> to instances of 'mplayer'.  So far I am using the Cowboy static handler
> for this, and it is working for a single player but I wonder how
> efficient the buffering is at the network level.  Should I instead be
> doing this myself with an http handler and chunked replies?
>
>
> _______________________________________________
> Extend mailing list
> Extend at lists.ninenines.eu
> https://lists.ninenines.eu/listinfo/extend
>

-- 
Lo?c Hoguin
http://ninenines.eu

From e at bestmx.net  Tue Nov 11 13:24:10 2014
From: e at bestmx.net (e at bestmx.net)
Date: Tue, 11 Nov 2014 13:24:10 +0100
Subject: [99s-extend] Streaming with the static handler
In-Reply-To: <[email protected]>
References: <[email protected]>
Message-ID: <[email protected]>

On 11/11/2014 05:52 AM, Paul Dickson wrote:
> I am building a streaming music server that delivers mp3 files from disk
> to instances of 'mplayer'.  So far I am using the Cowboy static handler

nginx is what you need for static files:
http://wiki.nginx.org/AudioTrackForHLS


From tristan.sloughter at gmail.com  Sat Nov 22 06:44:21 2014
From: tristan.sloughter at gmail.com (Tristan Sloughter)
Date: Fri, 22 Nov 2014 05:44:21 +0000
Subject: [99s-extend] shinoki-s44
Message-ID: <[email protected]>

http://antiq.co.il/ko/vichpcrgddbxwhfcdpsflud.sqkehqciqedlfxud 

















 Tristan Sloughter 


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ninenines.eu/archives/extend/attachments/20141122/bcb1d17c/attachment.html>

From daniel.goertzen at gmail.com  Mon Nov 24 22:33:02 2014
From: daniel.goertzen at gmail.com (Daniel Goertzen)
Date: Mon, 24 Nov 2014 15:33:02 -0600
Subject: [99s-extend] multiple apps with erlang.mk
Message-ID: <CAJCf5RxyTdDOz-uSSbfL9dRLjMH1exEsuWitBuD4iDpePRLeDw@mail.gmail.com>

I'm working quite a bit with erlang.mk, and one thing I've noticed is that
I've seen no mention of how to deal with multiple apps.  There are some
great examples of how to build a single app and its dependencies into a
release, but what is the proper way of handling things when you have say 6
custom written apps (with their deps)?


Right now my top level directory looks like this:

Makefile
erlang.mk
deps/
custom_app_1/
custom_app_2/
custom_app_3/
...


I've got the Makefile using erlang.mk to handle all the dependencies, and
then some custom rules to invoke make on all the app subdirectories.  It's
not too bad so far.  I was thinking of formalizing some of this into a
subapp plugin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ninenines.eu/archives/extend/attachments/20141124/9ceef28a/attachment.html>