code logs -> 2013 -> Sun, 06 Oct 2013< code.20131005.log - code.20131007.log >
--- Log opened Sun Oct 06 00:00:09 2013
00:06 Turaiel is now known as Turaiel[Offline]
00:19 ErikMesoy is now known as ErikMesoy|sleep
00:53 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
01:01 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
01:07 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Operation timed out]
01:20 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
01:20 mode/#code [+o himi] by ChanServ
01:28
<&ToxicFrog>
https://gist.github.com/ToxicFrog/864980d0ffc5ca7614cb
01:28
<&ToxicFrog>
Clojure supremacy \o/
01:30 Orthia is now known as Reiv
01:41
<&McMartin>
Looks like it would work in Clojure or ClojureCLR too~
01:44 Reiv [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has quit [Ping timeout: 121 seconds]
01:44
<&ToxicFrog>
I don't know if Crouton is clojureCLR compatible.
01:45 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has joined #code
01:45 mode/#code [+o Orthia] by ChanServ
01:47
<&ToxicFrog>
But apart from that, yeah.
02:12 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
02:25 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
02:25 mode/#code [+o himi] by ChanServ
02:28 Vorntastic [Vorn@Nightstar-e8961072.sub-70-211-10.myvzw.com] has joined #code
03:06 thalass [thalass@Nightstar-4ab061cc.bigpond.net.au] has joined #code
03:46 Turaiel[Offline] is now known as Turaiel
03:47 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
03:48 Turaiel is now known as Turaiel[Offline]
03:57 Vornicus [vorn@Nightstar-221158c7.sd.cox.net] has joined #code
03:57 mode/#code [+qo Vornicus Vornicus] by ChanServ
04:15 Kindamoody[zZz] is now known as Kindamoody
04:33 Vorntastic [Vorn@Nightstar-e8961072.sub-70-211-10.myvzw.com] has quit [[NS] Quit: Bye]
05:17 Derakon is now known as Derakon[AFK]
05:23 JustBob [justbob@ServerAdministrator.Nightstar.Net] has quit [Client closed the connection]
05:27 JustBob [justbob@ServerAdministrator.Nightstar.Net] has joined #code
05:38 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has quit [[NS] Quit: Gone.]
05:41 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has joined #code
06:46 ktemkin is now known as ktemkin[awol]
07:23 ErikMesoy|sleep is now known as ErikMesoy
07:43 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has joined #code
07:47
< Firebeard>
I want to make a button on the website standing on nginx that will run a script on the server. How is this easiest to implement?
07:47
<&McMartin>
Be a link to a page that is backed by a CGI script?
07:49
< Firebeard>
Do I need to install something to make use of CGI scripts?
07:54
<&McMartin>
That I don't have an answer to, but someone else here might.
07:55
< Firebeard>
Hmm. How do I make nginx give listings of directories if index.html is absent from them?
07:55
< Firebeard>
At the moment, it's giving me 403 when trying to access.
07:55
< Firebeard>
drwxr-xr-x 10 pi pi 4096 Feb 22 2013 library
07:56
< Firebeard>
Those permissions should theoretically allow access, right?
07:57
< Syka_>
is it a nginx setting to allow that
08:00
< Firebeard>
I don't know.
08:04
< Firebeard>
OK.
08:04
< Firebeard>
Found the setting and turned it on.
08:13 celticminstrel [celticminst@Nightstar-1afc984c.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
08:14
< Syka_>
Firebeard: whee
08:14
< Syka_>
(really, I hate when directory showing is on by default)
08:58 thalass [thalass@Nightstar-4ab061cc.bigpond.net.au] has quit [Ping timeout: 121 seconds]
09:30 thalass [thalass@Nightstar-4ab061cc.bigpond.net.au] has joined #code
09:39 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
09:47 You're now known as TheWatcher
10:30
< xybre>
bencode is a pretty strange data language, its a "binary-ish" encoding - in that it can store binary data, but on its own is plaintext. Which seems counterintuitive to me.
10:30
< xybre>
s/plaintext/ascii
10:54
<~Vornicus>
so, um. base64?
10:54
< Syka_>
different representations of data, yo
10:55
< Syka_>
xybre: it's basically mapping it to plain text
10:55
< Syka_>
in the same way that hex representation (0xFF) does
10:55
< Syka_>
works, but there's naturally overhead
10:56
< xybre>
Vornicus: not base64, bencode, what BitTorrent uses.
10:56
< xybre>
And again, its not mapping it to plain text, its doing stream encoding on character sequences which are still binary.
10:56
< Syka_>
oh
10:57
< Syka_>
like json
10:57 thalass [thalass@Nightstar-4ab061cc.bigpond.net.au] has quit [[NS] Quit: omg]
10:58
< Syka_>
but non human readable
10:58
< Syka_>
(but json isnt exactly human readable anyway)
11:02
< xybre>
Yeah its more like json. And it would be sorta human readable since all its flags are in ascii, but there's no line breaks and if there's any binary data it could confuse your editor.
11:02
< xybre>
Even integers are passes in ascii.
11:02
< xybre>
passed^
12:20 Kindamoody is now known as Kindamoody|out
12:37
< Firebeard>
http://www.urbit.org/
13:31 Kindamoody|out is now known as Kindamoody
13:44 Firebeard [abudhabi@Nightstar-86c5bcf2.adsl.inetia.pl] has quit [Client closed the connection]
13:59 Vornicus [vorn@Nightstar-221158c7.sd.cox.net] has quit [[NS] Quit: ]
14:16 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
14:23 abudhabi [abudhabi@Nightstar-1e90e7a2.adsl.tpnet.pl] has joined #code
14:23 abudhabi is now known as AnnoDomini
14:30 Kindamoody is now known as Kindamoody|afk
15:15 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
15:21 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has quit [Ping timeout: 121 seconds]
15:29 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
15:29 mode/#code [+o himi] by ChanServ
15:46 celticminstrel [celticminst@Nightstar-1afc984c.dsl.bell.ca] has joined #code
15:46 mode/#code [+o celticminstrel] by ChanServ
16:15 celticminstrel [celticminst@Nightstar-1afc984c.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
16:15 celticminstrel [celticminst@Nightstar-1afc984c.dsl.bell.ca] has joined #code
16:15 mode/#code [+o celticminstrel] by ChanServ
16:16 Kindamoody|afk is now known as Kindamoody
17:59 iospace is now known as io|GO_PACK_GO
18:16 Turaiel[Offline] is now known as Turaiel
19:04 Derakon[AFK] is now known as Derakon
19:36 ktemkin[awol] is now known as ktemkin
19:44 * AnnoDomini thinks.
19:46 * AnnoDomini installs robots.txt
19:47
< AnnoDomini>
Anyone know how to make nginx run cgi scripts?
20:00
<@froztbyte>
fastcgi
20:00
<@froztbyte>
<buki> how do you tell your child is a programmer: http://www.rouming.cz/roumingShow.php?file=znamenie_ze_vase_dieta_je_programator .jpg
20:01
<@Tamber>
Hee
20:04
< AnnoDomini>
How I used fastcgi?
20:09
< [R]>
Google knows.
20:09
< [R]>
(Basicallt you need fastcgid, or something else that implements the protocol running)
20:17
< AnnoDomini>
p libmojo-server-fastcgi-perl - Mojolicious FastCGI Server
20:17
< AnnoDomini>
Does this look like it?
20:20
< [R]>
Looks like a perl-lib that provides one.
20:21
< [R]>
But that's just going off the name
20:21
< AnnoDomini>
http://pastie.org/8382324
20:24
< [R]>
Try "fast-cgi"
20:30
< AnnoDomini>
Nothing.
20:33
<@froztbyte>
AnnoDomini: http://slexy.org/raw/s2x5EllB3Q
20:33
<@froztbyte>
I use php-fpm as the runner for php scripts
20:34
<@froztbyte>
that's more or less just a 'aptitude install php5-fpm' or so away
20:34
<@froztbyte>
oh, I also define the 'php' upstream globally in my default vhost:
20:34
<@froztbyte>
upstream php {
20:34
<@froztbyte>
server 127.0.0.1:9001;
20:34
<@froztbyte>
}
20:34
<@froztbyte>
(it's over 9000!)
20:34
< [R]>
I would've suggested that, but I got the impression he wants to be able to run any cgi script
20:34
< AnnoDomini>
I want to run one specific script.
20:35
< AnnoDomini>
I want a button that reboots PainBot.
20:35
<@froztbyte>
ah
20:35
<@froztbyte>
I think you want speedycgi for that
20:35
<@froztbyte>
give me a few minutes
20:35
<@froztbyte>
just finishing with food prep
20:39 Kindamoody is now known as Kindamoody[zZz]
20:49 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has joined #code
20:52 Serah [Z@Nightstar-5aa18eaf.balk.dk] has joined #code
20:53 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [Connection reset by peer]
21:21 io|GO_PACK_GO is now known as iospace
21:29 ErikMesoy is now known as ErikMesoy|sleep
21:34 * AnnoDomini pokes froztbyte.
21:37 Serah [Z@Nightstar-5aa18eaf.balk.dk] has quit [Ping timeout: 121 seconds]
22:03 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has joined #code
22:03 mode/#code [+o Orthia] by ChanServ
22:06
<@froztbyte>
AnnoDomini: ah apologies
22:06 * froztbyte connects to the relevant server
22:07 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has joined #code
22:07
<@froztbyte>
okay so I've got fcgiwrap here....not sure why
22:07
<@froztbyte>
I think this was quite full of yaks
22:08
<@froztbyte>
http://slexy.org/view/s20qe3XA4W
22:09 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
22:09 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
22:11 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has joined #code
22:12 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has quit [[NS] Quit: Going dooooown...]
22:14
< AnnoDomini>
OK, so I should copy the CGI location block.
22:15
< AnnoDomini>
Which parts do I need to modify?
22:23 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
22:23 mode/#code [+o himi] by ChanServ
22:40 Reiv [NSwebIRC@Nightstar-95746c1f.kinect.net.nz] has joined #code
22:40 mode/#code [+o Reiv] by ChanServ
22:42 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
22:48 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
22:48 mode/#code [+qo Vornicus Vornicus] by ChanServ
22:54 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
22:54 mode/#code [+o himi] by ChanServ
23:22 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
23:35 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
23:36 mode/#code [+o himi] by ChanServ
23:55
<&ToxicFrog>
Fuck jar resoures
--- Log closed Mon Oct 07 00:00:24 2013
code logs -> 2013 -> Sun, 06 Oct 2013< code.20131005.log - code.20131007.log >

[ Latest log file ]