Perl 6 - the future is here, just unevenly distributed

IRC log for #ilbot, 2015-09-30

| Channels | #ilbot index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:35 nakilon joined #ilbot
01:37 moonpunter so how does apache access the files of ilbot
01:39 pdurbin well, the files are in a DocumentRoot
01:41 pdurbin moonpunter: the normal way :)
01:41 moonpunter okay, so in my irc.conf file
01:41 moonpunter i need to set the DocRoot to the ilbot installation directory?
01:42 pdurbin this is what I do: https://github.com/pdurbin/greptilian-vagrant/blob/master/modules/server1/files/etc/httpd/conf.d/irclog.greptilian.com.conf
01:45 moonpunter #SuexecUserGroup foouser foogroup
01:45 moonpunter should i kill it and restart as a non-root user
01:45 pdurbin often apache serves requests as non-root out of the box
01:46 moonpunter okay
01:46 moonpunter i have no cgi folder in my ilbot folder
01:46 moonpunter the bot is running right now though
01:47 moonpunter i have www, static, sql, lib, config, bin
01:48 pdurbin hmm, I'm running an old version. I have a cgi directory
01:49 moonpunter so where would i alias to, on the latest version
01:49 moonpunter instead of cgi
01:59 moonpunter does cgi contain ilbot.psgi / .fcgi
05:37 nakilon joined #ilbot
06:20 nakilon joined #ilbot
06:37 moritz moonpunter: cgi/ directory sounds like a very old version of ilbot
06:37 moritz moonpunter: in my apache config, I have   FastCgiServer /home/ilbot/nextgen-ilbot/ilbot.fcgi -processes 6 -idle-timeout 60
06:38 moritz moonpunter: and then later
06:38 moritz Alias /s/ /home/ilbot/nextgen-ilbot/static/s/
06:38 moritz Alias / /home/ilbot/nextgen-ilbot/ilbot.fcgi/
06:39 moritz moonpunter: your paths might differ, because I run from source, not from an installed ilbot; but if you find the ilbot.fcgi and the s directory, specifying the paths to them should be fine
06:40 moonpunter okay, i have ilbot.fcgi and the /s
06:40 moonpunter okay i see
06:40 moritz http://perlpunks.de/paste/show/560b83d7.3dc2.213 that's my complete virtual host config for irclog.perlgeek.de
06:40 moonpunter but what is this FastCgiServer stuff, should i specify that if mine is installed
06:41 moritz it tells apache to start a fastcgi server process
06:41 moritz and yes, you need that
06:41 moonpunter okay
06:41 moritz running in old CGI mode is super slow, because it starts a new process for every request, must load all perl modules again etc.
06:41 moritz thus, fastcgi
06:42 moonpunter okay, sorry i haven't run a perl script intentionally in a very long time
06:42 moritz well, now you do :-)
06:45 moonpunter what is /empty?
06:45 moritz moonpunter: an empty directory
06:45 moritz moonpunter: to prevent apache from serving any files that it's not meant to serve
06:46 moonpunter okay so i will create that as well
06:46 moritz not sure if that's necessary with the Alias / ... later on
06:50 moonpunter no  Options +Indexes +FollowSymLinks +MultiViews ?
06:51 moonpunter eh, must not be necessary if yours works like this
06:55 moonpunter is fcgid the same as fastcgi?
06:57 moritz no
06:58 moritz it's a different implementation with a different configuration API
06:58 moritz I have libapache2-mod-fastcgi installed (this is a Debian system)
06:58 moonpunter so i need to track down that package
06:58 moonpunter there's no installation candidated on ubuntu 14
07:15 moonpunter ilbot failed to stay running for 30 seconds, given three tries?
07:15 moonpunter not ilbot, but fastcgi
07:15 moonpunter ilbot is running
07:23 moritz what does the error.log say?
07:26 moonpunter that's what it says
07:26 moonpunter failed to stay running for 30 seconds, moving restart interval to 600 seconds
07:26 moonpunter i killed a server intensive process and tried again, still same thing
07:28 moonpunter http://perlpunks.de/paste/show/560b8f1b.6e8e.299
07:29 moonpunter & http://perlpunks.de/paste/show/560b8f58.137.a6
07:30 moonpunter i think the first errors are before i installed libapache2-mod-fastcgi
07:33 moritz Can't locate FCGI.pm in @INC
07:33 moritz that's the interesting one
07:33 moritz apt-get install libfcgi-perl
07:34 moonpunter should i need to restart apache
07:35 moritz yes
07:36 moonpunter okay, we're now live at woodcoin.xyz -- excellent. why might the logs be empty? perms problem?
07:37 moritz moonpunter: something's wrong with the generated URLs
07:37 moritz is: http://woodcoin.xyz/woodcoin.xyzwoodcoin/today
07:37 moritz should be: http://woodcoin.xyz/woodcoin/today
07:37 moonpunter is that caused by my config?
07:37 moonpunter http://perlpunks.de/paste/show/560b8f1b.6e8e.299
07:38 moonpunter or something i did when i installed the script?
07:38 moritz moonpunter: did you set base_url?
07:38 moritz moonpunter: should be /
07:38 moonpunter i did change that
07:38 moonpunter better change it to /
07:39 moritz moonpunter: and you should set use_cache = 0 while you're still testing
07:39 moritz otherwise you have to clear the caches after each change
07:40 moonpunter so i need to restart the bot
07:40 moonpunter after fixing that setting
07:41 moritz no, apache
07:42 moritz the bot itself doesn't do any caching
07:42 moonpunter ok
07:42 moonpunter got it
07:42 moritz now that looks much better: http://woodcoin.xyz/woodcoin/2015-09-30
07:42 moonpunter awesome of you to help, i know you're busy working on perl6, i stalked you a little bit earlier
07:43 moritz in fact I wrote a Perl 6 based logger for ilbot
07:43 moritz and then later lost it in a disc crash :(
07:44 moonpunter ouch
07:44 moritz ah well, will try again eventually
07:44 moonpunter do you think perl will make a comeback
07:45 moritz I don't think it'll be super hip
07:45 moritz but popular enough to sustain a growing ecosystem
07:45 moritz (as it is now :-)
07:46 moonpunter is perl6 "higher level" than perl5 in your opinion
07:47 moonpunter i think that's the big draw toward python. i know it was for me.
07:47 moritz yes, it is
07:47 moritz makes object orientation and concurrency much easier, for example
07:47 moonpunter i definitely am a fan of cpam over easy_install or pip/pip3
07:47 moonpunter from a sysadmin perspective
07:47 moritz pip is just a PITA when it comes to TLS certs
07:48 moritz "this is a http URL? let's ignore it"
07:48 moonpunter .search PITA
07:48 moritz Pain In The Ass
07:48 moonpunter oh lol
07:48 moonpunter the funkshelper bot i have running in #woodcoin is on python
07:48 moritz "this a https URL? I don't like self-signed certs. Let's ignore it"
07:48 moonpunter i was able to write a pretty decent module for it regarding woodcoin price and other metrics
07:48 moonpunter lol
07:49 moritz well, python is a decent language
07:49 moritz it just starts from quite different assumptions
07:49 moonpunter my gripe against python is that backwards compatibility is not a priority, so you wind up having 2.7, 3.3, and 3.5 install on the same system, when really 3.5 shoudl be able to do it all
07:49 moritz heh. At work we have a python 2.7 web app that will be never ported to 3
07:50 moonpunter 2.7 is still highly prevalent, yet 3.5 came out the other week
07:50 moonpunter silliness imho
07:50 moritz well, at least the Perl folks say that perl 5 and Perl 6 will be developed independently
07:50 moritz don't want to port a huge codebase to 6? no problem, 5 continues to evolve
07:51 moritz the developer communities are largely independent anyway right now
07:51 moonpunter the first bot i tried was from 2004, in perl, and that's what led me to search for others in perl, because for no good reason it failed to connect to irc
07:51 moritz :-)
07:51 moonpunter that's interesting
07:52 moritz we they Perl 5 and Perl 6 are two indepent languages in Perl language family
07:52 moonpunter are they highly interoperable
07:52 moritz like siblings that have their own lives, but share many friends :-)
07:52 moonpunter i will contribute wiki docs to your github regarding the apache config on ubuntu
07:53 moritz there's Inline::Perl5 for Perl 6 and Inline::Perl6 for Perl 5
07:53 moonpunter that's a start
07:53 moritz so you can call code from the other language by embedding the other interpreter via dynamic loading
07:53 moritz and you can even inherit from a Perl 5 class in Perl 6
07:54 moonpunter so, basically, yes
07:54 moritz re wiki, thanks, appreciated
07:54 moonpunter one of the forks says "speak to moritz on irc"
07:54 moonpunter lol
07:54 moonpunter "if you're serious"
07:56 moritz that's what the original said, way back when there were maybe two installations of ilbot world-wide
07:56 moonpunter how many would you say there are now?
07:56 moonpunter i'll be playing with .tmpl files for quite awhile today i imagine
07:56 moritz http://moritz.faui2k3.org/en/ilbot has 8 known installations
07:57 moritz found either by people asking questions in here, or a "powered by ilbot" search
07:57 moritz I guess there are a few more private and / or with changed templates
07:57 moonpunter well the woodcoin.xyz will be up long-term as well. it will be logging a second channel in january/february.
07:57 moritz so maybe a dozen to two dozen installations
07:58 moonpunter that's cool. the bot doesn't do anything else?
07:59 moritz no
08:03 moonpunter I think I'll try my hand at porting some essential modules into perl so that I can just have the one bot rather than two
08:04 moonpunter Someday
08:04 moonpunter :P
11:07 moonpunter left #ilbot
11:08 nakilon joined #ilbot
13:09 nakilon joined #ilbot
15:10 nakilon joined #ilbot
15:37 erkan joined #ilbot
16:52 ilbot3 joined #ilbot
16:52 Topic for #ilbot is now ilbot -- http://moritz.faui2k3.org/en/ilbot -- logs at http://irclog.perlgeek.de/ilbot/today -- read UPGRADE.md and upgrade!
16:53 moritz joined #ilbot
19:12 nakilon joined #ilbot
19:45 nakilon joined #ilbot
20:22 erkan joined #ilbot
22:19 erkan joined #ilbot
22:19 erkan joined #ilbot

| Channels | #ilbot index | Today | | Search | Google Search | Plain-Text | summary