Perl 6 - the future is here, just unevenly distributed

IRC log for #darcs, 2015-06-20

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

All times shown according to UTC.

Time Nick Message
01:47 ilbot3 joined #darcs
01:47 Topic for #darcs is now http://darcs.net/ | logs: http://irclog.perlgeek.de/darcs/ | darcs 2.10.0 is out http://darcs.net/Releases/2.10
03:06 c74d joined #darcs
03:28 Riastradh joined #darcs
03:31 alexei_ joined #darcs
07:59 c74d joined #darcs
08:00 alexei_ joined #darcs
10:27 f-a joined #darcs
10:58 f-a joined #darcs
14:35 notdan Heffalump: should we meet tonight?
15:07 stulli joined #darcs
16:03 Heffalump notdan: sure
18:34 alexei_ joined #darcs
18:34 Heffalump notdan: let me know when, though I should be around for a while
18:37 f-a joined #darcs
19:04 notdan Heffalump: let's say in 45min-1h, I should be back at home by then
19:19 Heffalump 'k
20:00 notdan Heffalump: I am back, we can have a meeting if you want
20:04 Heffalump yep
20:05 notdan ok, let me prepare the patches for you
20:06 Meeh_ joined #darcs
20:07 ggherdov`_ joined #darcs
20:07 notdan http://covariant.me/stuff/tmp/darcsden.dpatch this is a dpatch for http://hub.darcs.net/simon/darcsden
20:08 notdan I assume you are reusing the cabal sandbox from the last time?
20:11 lelix joined #darcs
20:11 Heffalump good point, I'd better do that
20:14 * Heffalump builds it
20:15 notdan so the situation is the following
20:15 notdan i've been mostly working to get the URLs for or nested folders as we've discussed last time
20:15 notdan it proved to be quite .. problematic
20:15 Heffalump oh dear :-(
20:16 notdan I ended up copying a module from snap-core and modifying it: DarcsDen.Routing
20:16 f-a left #darcs
20:16 notdan so the biggest issue now is all the links
20:16 notdan i've been trying various ways to get links in darcsden work properly, but i guess there is no easy way out of it
20:17 Heffalump hmm. This probably isn't worth such a huge effort, particularly if it involves hard-to-maintain changes/cloning of other software.
20:17 Heffalump we could just encode the paths and translate /s
20:17 notdan right now i am trying to semi-automatically replace link-building code such that URLs look like "local/repo1//changes" or "local/repo1//filechanges/file1
20:18 notdan another issue is that `darcs get' doesn't really work well on urls like "localhost:8080/local/rep1//
20:18 notdan Heffalump: sorry, could you elaborate?
20:18 notdan how to enocde the paths and where?
20:19 zyla joined #darcs
20:19 Heffalump I mean translate the local paths into something that doesn't contain a '/' character by some kind of encoding transformation
20:20 Heffalump so for example darcsden/upstream => darcsden-upstream - but then we need to translate '-' characters to something else, so it'll need a bit of thought
20:20 notdan besides that I wrote some new tests and fixed a couple of bugs
20:20 vikraman joined #darcs
20:20 notdan Heffalump: hm, maybe base64 encode/decode?
20:21 Heffalump yeah, possibly, though that makes it hard to read even simple cases
20:22 c74d3 joined #darcs
20:27 Heffalump perhaps it's as simple as using percent encoding
20:29 rvernon joined #darcs
20:30 notdan uhmm
20:30 notdan crap, I think you are right!
20:30 notdan this should 100% work!
20:30 Heffalump sorry we didn't get to that before!
20:34 peb` joined #darcs
20:35 vikraman_ joined #darcs
20:38 lf94 joined #darcs
20:39 siel_ joined #darcs
20:42 Heffalump FYI one of the tests fails:
20:42 Heffalump rep1_0 file1 changes (3): [Failed]
20:42 Heffalump Expected status code 200, but got 404, Not Found
20:43 notdan yeah, It's not finished yet
20:43 notdan i still had a lot of linking and parsing code to replace
20:43 notdan but now I think the urlencode thing actually works better
20:44 notdan actually, I amhacking  it atm
20:45 notdan it seems to be foworking!
20:45 Heffalump ok :-)
20:45 notdan and even darcs itself does not complain
20:46 notdan give me 5-7 minutes and i will send you the patch
20:47 ggherdov`_ joined #darcs
20:54 stulli_ joined #darcs
20:55 notdan_ joined #darcs
20:55 alexei_ joined #darcs
20:56 notdan_ Heffalump: sorry, there seem to be some problems with the freenode servers
20:56 notdan_ 16:53|  notdan| Heffalump: if you can pull from http://hub.darcs.net/co-dan/darcsden-local
20:56 Heffalump done
20:57 dixie_ joined #darcs
20:57 notdan_ see if it works - it should
20:58 Heffalump just building now
20:58 notdan_ oh, and even javascript part works - perfectly!
20:59 lispy_ joined #darcs
21:00 Heffalump seems to work nicely
21:00 lelix joined #darcs
21:01 rieper_ joined #darcs
21:01 Heffalump not sure how much detail you want in comments now, I'm sure you're aware of various things (e.g. sorting of repositories seems rather random in the list page, all of them report "http://darcs.net" as something about them. Also, how do I log in?)
21:02 * Heffalump keeps an eye on the channel logs to make sure I'm on the "right" side of the netsplits
21:02 Heffalump if it appears at http://irclog.perlgeek.de/darcs/2015-06-20, it happened, if not, it didn't :-)
21:03 notdan_ Heffalump: I think the sorting is alphabetical - I guess it makes more sense to sort it like a tree
21:03 17SACVHNS joined #darcs
21:03 notdan_ I haven't thought of that before, tbh
21:03 notdan_ have to write that one down
21:04 notdan joined #darcs
21:04 notdan_ maybe it is possible to present it like a tree as well
21:05 notdan_ eveyr repository has "darcs.net" set as a "website" right now, that is about to change
21:05 Heffalump it's definitely not alphabetical
21:05 notdan_ it is not?
21:05 Heffalump I suspect it's based on the order things appear in the raw directory on the filesystem
21:05 Heffalump well, I can't give you a working URL, but I can assure that what I'm seeing isn't alphabetical :-)
21:06 notdan_ hm, can you send me the list or a screenshot?
21:06 carter_cloud joined #darcs
21:06 IbnFirnas joined #darcs
21:08 notdan_ As for the logging in part: I haven't figured out a clever way to make darcsden always think that you are logged in
21:08 notdan_ because the code is very tied to sessions
21:09 notdan_ maybe the easiest way would be to have a dummy user that you can always use to log in
21:09 notdan_ I was trying to figure out if I can autoset a session, but I don't see a good place to do it
21:09 Heffalump that sounds like a good stopgap, but we'd better work out a clean way of doing this securely in general
21:09 notdan_ (that won't break a lot of code)
21:10 Heffalump darcsden is still fairly small/immature, it's fine to refactor things if necessary IMO
21:10 Heffalump I emailed you the HTML of the page I'm seeing
21:12 siel joined #darcs
21:12 notdan_ wow, that's very weird
21:12 notdan_ I will investigate thta
21:12 notdan_ that*
21:14 notdan_ Heffalump: so in terms of security, maybe it actually makes sense not to have automatic log-in thingie. A user can specify her prefered username/password in the config
21:14 notdan_ and that use it to log in
21:15 Heffalump I'd still like this to work by magic from the command-line
21:15 notdan_ and then we could have a command line tool that would open a webpage that would automatically log-in for you
21:15 notdan_ (an html page that would just POST a form with login information)
21:15 Heffalump I see, ok
21:15 kaol_ joined #darcs
21:15 Heffalump it maybe could also use auth information encoded in the URL
21:15 Heffalump but then there's a risk other people on the same machine could see the URL
21:16 Heffalump by listing the procesess on the machine - it depends on how URLs are launched
21:17 Heffalump do you know anything about standard ways of launching URLs on different OSes?
21:17 stulli joined #darcs
21:18 notdan_ I am pretty sure there is none. But this can be specified from the config file as well, I think?
21:18 notdan_ If we launch the command just like a process
21:21 dolio joined #darcs
21:21 Heffalump it'd be nice if it just worked for common OSes
21:21 notdan_ yeah :(
21:22 Heffalump oh, seems sm knows something about this: http://stackoverflow.com/questions/4918131/open-browser-from-haskell-interpreter
21:22 notdan_ well for Linux there is 'sensible-browser' and 'xdg-open'. For OSX there is 'open'
21:22 Heffalump in Windows I think if you just "start" a URL in the right way a browser is associated with it
21:23 notdan_ yeah sm is doing something similar: http://hackage.haskell.org/package/hledger-0.25.1/docs/src/Hledger-Cli-Utils.html#openBrowserOn
21:23 notdan_ interesting
21:28 cocasman1r joined #darcs
21:28 Heffalump ok, seems like that's a simple enough approach
21:29 Heffalump how about starting by making up a password internally and using that to launch the browser with a URL?
21:29 Heffalump i.e. http://local:password@localhost:8900/... or whatever
21:29 Heffalump then see if that "leaks" the information to other users in any obvious way
21:30 notdan_ oh
21:30 notdan_ so, to use HTTP login
21:31 notdan_ well you could probably sniff it through a packet inspecter running on the machine
21:32 Heffalump I think if you're root all bets are off anyway
21:32 Heffalump I mean if your opponent has root
21:32 Heffalump the attack that occurs to me is another normal user being able to read the list of processes on the machine
21:37 notdan_ hm, yes, makes sense
21:38 Heffalump anyway, that seems simple enough to implement for now and then see if there's a problem
21:41 notdan_ I agree
21:47 Heffalump anything else to discuss? You were going to do a blogpost, right?
21:48 notdan_ Yeah, I didn't manage to put it up yet, sorry for that. I will post it in a couple of days
21:48 notdan_ so, the current plan, as I see it:
21:48 notdan_ - Settle down with urlencoding for repositories in nested directories; clean up all the code related to that.
21:48 notdan_ - Implement HTTP auth and make the password a part of LocalBP.
21:48 notdan_ - Make CLI tools for firing up darcsden in a directory.
21:48 notdan_ At least for the nearest future, that is
21:48 notdan_ - Figure out repository sorting.
21:49 Heffalump sounds good. If you get bogged down on something let me know.
21:49 notdan_ Thanks,Heffalump.
21:50 notdan_ I am a bit mad that I haven't figured out to use urlencode
21:50 notdan_ which now seems to be a totally obvious solution
21:51 notdan_ btw, do you have a person doing OSX binaries?
21:51 Heffalump I think there was someone a while ago, but I guess they disappeared
21:51 notdan_ I am sort of already doing OSX builds manually and even wrote a Homebrew script for that
21:52 Heffalump it'd be great if you can update the ones on the wiki
21:52 notdan_ if you give me the official darcs team permission to but my builds in "official binaries" list :]
21:53 Heffalump consider it done :-)
21:53 Heffalump I don't really know the technical details of different variants of MacOSX binaries (if any) but if what you produce would be usable by most users (or at least the same set that can use the current one) then that sounds great
21:53 Heffalump I guess I should produce a Windows binary
21:55 notdan_ I think the binary should work on Mountain Lion and up. I haven't tested it on Yosemite tho. I will ask a friend to do that
21:55 notdan_ alright, I will get on those todo's
21:56 Heffalump any idea when would be convenient for the next meeting?
21:56 Heffalump I'm travelling for the first half of the week starting 29th June
22:00 f-a joined #darcs

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