<< 23-07-2017 >>

00:23:53FromGitter<cyberlis> does nim have any function to encode url GET params
01:07:30dom96https://nim-lang.org/docs/cgi.html#encodeUrl,string
01:14:22mahtobhttps://forum.nim-lang.org/ written in nim-jester,source in github?
01:14:29mahtobi couldnt find
01:17:37dom96http://lmgtfy.com/?q=nim+forum+source+code
01:24:25mahtobsorrry but thnks for nice help :)))
01:31:21*yingjun joined #nim
01:34:43*v17d quit (Remote host closed the connection)
01:35:25*yingjun quit (Ping timeout: 240 seconds)
01:38:46*chemist69 quit (Ping timeout: 255 seconds)
01:52:19*chemist69 joined #nim
02:20:44FromGitter<cyberlis> thanks for url help
03:10:52*yingjun joined #nim
03:15:47*yingjun quit (Ping timeout: 260 seconds)
03:32:49*mahtob quit (Remote host closed the connection)
03:43:49*endragor joined #nim
03:47:57*endragor quit (Ping timeout: 240 seconds)
04:01:17*dddddd quit (Remote host closed the connection)
04:58:04*endragor joined #nim
05:13:54*yglukhov quit (Read error: Connection reset by peer)
05:14:31*yglukhov joined #nim
06:07:05*SusWombat quit (Quit: Leaving)
06:13:18*yingjun joined #nim
06:17:47*yingjun quit (Ping timeout: 260 seconds)
06:35:56*yglukhov quit (Remote host closed the connection)
06:36:08*yglukhov joined #nim
06:40:16*Vladar joined #nim
06:52:14*Trustable joined #nim
06:58:25*vendethiel quit (Ping timeout: 240 seconds)
07:00:21*vendethiel joined #nim
07:09:46*Trustable quit (Remote host closed the connection)
07:10:37*rauss quit (Quit: WeeChat 1.9)
07:24:19*madmalik joined #nim
08:01:50*endragor quit (Remote host closed the connection)
08:04:02*endragor joined #nim
08:08:33*endragor quit (Ping timeout: 248 seconds)
08:28:22*endragor joined #nim
08:28:22*nsf joined #nim
08:32:45*planhths joined #nim
09:02:39*couven92 joined #nim
09:06:51*planhths quit (Read error: No route to host)
09:13:35*Sentreen quit (Ping timeout: 240 seconds)
09:17:20*yingjun joined #nim
09:20:54*Arrrr joined #nim
09:20:54*Arrrr quit (Changing host)
09:20:54*Arrrr joined #nim
09:21:49*yingjun quit (Ping timeout: 255 seconds)
09:26:27*Sentreen joined #nim
09:45:25*xet7 joined #nim
10:37:11*Shoozza joined #nim
10:42:35*Shoozza quit (Changing host)
10:42:35*Shoozza joined #nim
11:00:45*flyhigh joined #nim
11:09:55*v17d joined #nim
11:20:21*flyhigh quit (Quit: Konversation terminated!)
11:31:42*yglukhov quit (Remote host closed the connection)
11:33:13*skrylar joined #nim
11:37:05*Arrrr quit (Ping timeout: 248 seconds)
11:44:14*yglukhov joined #nim
11:48:27*PMunch joined #nim
11:50:07*Arrrr joined #nim
12:01:53*flyhigh joined #nim
12:03:08*Arrrr quit (Ping timeout: 258 seconds)
12:03:45*adeohluwa joined #nim
12:07:45*flyhigh quit (Quit: Konversation terminated!)
12:08:49*Matthias247 joined #nim
12:13:19adeohluwahello house, any authentication library for nim? kinda like passport for node.js...
12:13:57federico3adeohluwa: shameless plug: https://github.com/FedericoCeratto/nim-httpauth
12:20:10adeohluwabless you
12:20:21*yingjun joined #nim
12:22:37*bjz joined #nim
12:23:31FromGitter<mapisoft> Hey hi!
12:23:45FromGitter<mapisoft> Can you guys help me with some macros stuff?
12:24:25*yingjun quit (Ping timeout: 240 seconds)
12:28:35*SusWombat joined #nim
12:29:21SusWombatAnyone here using nim-mode in emacs?
12:40:33PMunchmapisoft, just ask :) If someone can help they will
12:42:10*bjz quit (Quit: Textual IRC Client: www.textualapp.com)
12:42:47*yglukhov quit (Remote host closed the connection)
12:44:48cremHow can I do "from X import nil" and "import X as Y" at the same time? I want to import a module under a different name and don't want to autoimport exported identifier.
12:54:49FromGitter<stisa> Crem : I think it's `from math as m import nil`
12:59:55*nsf quit (Quit: WeeChat 1.9)
13:00:52cremstisa: Indeed. Thanks!
13:01:24cremsublime nimline doesn't highlight that syntax btw.
13:20:21*mahtob joined #nim
13:36:48*mahtob quit (Ping timeout: 260 seconds)
13:39:29federico3what's the right way to get a TimeInterval between two Time or TimeInfo?
13:39:49*arnetheduck quit (Remote host closed the connection)
13:55:56*yglukhov joined #nim
14:05:38dom96federico3: toTimeInterval(time) - toTimeInterval(time2) I guess
14:05:57dom96crem: submit a bug report https://github.com/Varriount/NimLime
14:06:00federico3initInterval(seconds=int(b - a)) works
14:08:02FromGitter<Varriount> crem: Bonus points if you can add the highlighting to the syntax files.
14:10:07dom96This (https://github.com/nim-lang/Nim/issues/6135) reminds me, zacharycarter: does the nim playground support gists/specifying the code in the URL query?
14:13:22*nsf joined #nim
14:15:50*mahtob joined #nim
14:15:59mahtob hi i register forum but didnt come confirmation mail?
14:16:18mahtobi registered yesterday but stil no mail
14:19:09federico3dom96: I don't get it. Semantically, Time0 - Time1 should return a TimeInterval. Directly converting a point in time to an interval seems nonsensical.
14:19:43dom96mahtob: what's your username?
14:19:48mahtobmahmut
14:20:13dom96federico3: Yeah. PRs welcome :)
14:20:24dom96The times module is a little messy and inconsistent
14:20:33federico3dom96: also the result seems simply wrong
14:21:46dom96mahtob: I activated it for you
14:23:42mahtobthnks dom96 i logined
14:25:21dom96federico3: But if you're looking for "x days ago" etc. Check how the Nimforum does it
14:25:51dom96https://github.com/nim-lang/nimforum/blob/238903ca3b5ba01720f6fe3e0dfde75c08991b75/forum.nim#L188
14:28:38federico3you implemented your own toInterval...
14:30:00dom96hah, looks like it
14:30:32dom96In my defense, I'm pretty sure I've done this before TimeInterval existed in the times module
14:31:02federico3I'm getting 3 different outputs from
14:31:06federico3initInterval(seconds=int(b - a))
14:31:11federico3b.toTimeInterval - a.toTimeInterval
14:31:14federico3toInterval(b - a)
14:32:10dom96If you know how to fix it then please do
14:32:17dom96Be sure to check the times tests
14:32:20dom96and add your own
14:32:27federico3will do
14:32:30dom96if not then just reuse NimForum's code and add an issue :)
14:32:47federico3https://tio.run/##bZJPj4IwEMXv/RQTT0LUVFCya8J1kz3v3k2VujaB1rSDiZ@enbYgrOyBZDrv9x7TP1o1Xaeam7EIrVaI0iHr16ga6RhjN2vOgOZTo7R3US8rdbkcQGksdskBvokaJCgZwF1YsLIRSiv9AyV4nNq1RHhIYR21RrlSd8i3@7zgnBM0Cuuyp9Op7kMao/E6T8n279k/IT2dTnQfUonHPOKt2M0DApk@NW@@mva/bRRzcyTTQQvjK93SKc/sxXz0nkwHzbU1ko8AfF4GX42mDd3JarDFRRggln4joaIs6M8lKuGgfZkw5lqFEhZoPqySuqofw58WB0ZG/z5gUckaBTV80Nloagma62JN8yVpXTngE@30om2Pe86PPH6B8@eiXnfmIl7SXMsTrEEky
14:32:48federico3QhnRJ82aP68PmJeWqMhJ8PkDcfAIMvz1YCalNmkzkMtnJM2jFh6uet@AQ
14:32:50federico3oops, sorry
14:33:43federico3tio.run needs a tinyurl button ;)
14:33:48FromGitter<Varriount> https://news.ycombinator.com/item?id=14831638
14:34:13federico3http://tinyurl.com/y77tnum9
14:35:05*pilne joined #nim
14:38:26*rauss joined #nim
14:53:01*mahtob quit (Ping timeout: 268 seconds)
14:53:33*adeohluwa quit (Quit: Connection closed for inactivity)
14:53:55*skrylar quit (Ping timeout: 255 seconds)
15:05:41PMunchHmm, araq I've found two small problems with the wrapping solution from yesterday. First of something like a seq is basically impossible to change without copying it and then resetting the field. And since all the fields get procedures (so field s in type m gets a proc s) the symbol is already taken if you want to name a local variable the same (not the biggest issue).
15:07:47PMunchOh wait, I think I found a fix for the first and biggest issue
15:08:30PMunchInstead of a proc that returns the value of the field, have a template that returns "self.hidden"
15:08:46*Matthias247 quit (Read error: Connection reset by peer)
15:09:28PMunchOf course that doesn't call the change procedure on that field
15:24:19*yingjun joined #nim
15:28:27*yingjun quit (Ping timeout: 240 seconds)
15:32:05*yglukhov quit (Remote host closed the connection)
15:32:41*yglukhov joined #nim
15:34:25*yglukhov_ joined #nim
15:37:07*yglukhov quit (Ping timeout: 255 seconds)
15:38:35*yglukhov_ quit (Ping timeout: 240 seconds)
15:46:57dom96Araq: Can you give me a link to a log that shows Travis/AppVeyor timeouts?
15:47:27Araqno but appveyor times out every time now
15:47:38Araqthey changed their server or something
15:47:53Araqit now has less memory, Nim swaps, timeout
16:38:29*yglukhov joined #nim
16:48:34*mahtob joined #nim
16:58:26dom96Araq: So why can't you link me to a log?
16:59:28dom96I will try to email them but I need some evidence.
17:04:55*v17d quit (Ping timeout: 240 seconds)
17:14:51*v17d joined #nim
17:20:17mahtobi am trying to build forum.
17:20:21mahtobsome errors:
17:20:22mahtobhttp://ix.io/yEL
17:23:58mahtobi also tried nim build -d:dev
17:24:27*Jesin quit (Quit: Leaving)
17:34:12FromGitter<TiberiumN> @cyberlis you're creating VK API wrapper?
17:35:00FromGitter<TiberiumN> ohh, I remembered where I saw your nickname.. rubukkit lol
17:35:15FromGitter<TiberiumN> (also pploader plugin)
17:35:41*yglukhov quit (Remote host closed the connection)
17:35:56*yglukhov joined #nim
17:36:17FromGitter<TiberiumN> I must say: internet is relatively small too
17:46:56mahtobdom96 can you look it?
17:47:00mahtobhttp://ix.io/yEL
17:47:59FromGitter<zacharycarter> o/
17:48:28FromGitter<TiberiumN> recaptcha package is broken?
17:48:44FromGitter<TiberiumN> Error: type mismatch: got (Future[system.string]) ⏎ ⏎ if the error is like this - you need an "await"
18:13:40mahtobso?
18:14:52FromGitter<TiberiumN> so you need to fix it or ask someone to fix it :)
18:17:20*Jesin joined #nim
18:26:50*yingjun joined #nim
18:28:32mahtobeuantor ? :)
18:29:54euantorAre you using Nim 0.17.0?
18:30:51euantorThere was a change that made the way httpclient works slightly different
18:30:55*yingjun quit (Ping timeout: 240 seconds)
18:31:54euantorThere's a devel branch for it, I need to merge it into master, which I'll do now
18:38:01euantorJust pushed v1.0.2 which should fix the problem
18:39:30*Matthias247 joined #nim
18:40:28*yglukhov quit (Remote host closed the connection)
18:47:45*yglukhov joined #nim
18:48:49mahtobyes 0.17.0
18:49:17mahtobok nimble install recaptcha fixes?
18:49:37mahtoboverrite?
18:50:28mahtobok i installed 1.0.2
18:52:35euantorYeah, it should work now hopefully
18:52:45mahtobyes.thnks forum built :)
18:52:53euantorGreat :)
18:53:25*kunev quit (Ping timeout: 240 seconds)
18:56:00*kunev joined #nim
18:57:13*yglukhov quit (Remote host closed the connection)
19:00:45mahtobi am not using mail for forum.how can i accept-confirm new users as admin?
19:00:59mahtobwhere is the admin panel or config file
19:03:29*v17d quit (Ping timeout: 248 seconds)
19:06:55dom96You just log in as admin, then go to /profile/username
19:07:00dom96and change their status there
19:08:24*v17d joined #nim
19:11:43*yglukhov joined #nim
19:13:44*v17d quit (Ping timeout: 260 seconds)
19:15:07*Snircle quit (Ping timeout: 246 seconds)
19:16:59*def-pri-pub joined #nim
19:18:42*yglukhov quit (Remote host closed the connection)
19:41:42*Snircle joined #nim
19:41:44mahtobnot exists username's status
19:42:33mahtobhttps://milis-linux.appspot.com/GeDOYWS.png
19:43:49mahtoba user called test2,registerd.also test2 seems as moderator
19:44:01mahtoband i cant change status
19:47:10dom96yes, because you're not an admin
19:47:20dom96You need to modify the DB manually and make yourself an admin
19:47:49dom96Are you planning on running your own forum?
19:50:06FromGitter<ephja> "moderated" means that posts have to be reviewed, right? don't confuse being moderated with being a moderator (someone who has certain permissions)
19:54:22*endragor quit (Remote host closed the connection)
19:58:14*endragor joined #nim
20:06:16*dankrad joined #nim
20:23:12mahtobyes planning to run mysqlf
20:25:09*Vladar quit (Quit: Leaving)
20:28:38*yingjun joined #nim
20:30:56*Elronnd is now known as cron
20:31:13*cron is now known as Elronnd
20:33:19*yingjun quit (Ping timeout: 276 seconds)
20:37:29FromGitter<ephja> https://github.com/nim-lang/nimforum/blob/238903ca3b5ba01720f6fe3e0dfde75c08991b75/forum.nim#L337
21:04:42PMunchHmm, Nim should have some more general case Errors
21:05:18PMunchLike a "MacroParseError" or simply "ParseError" that can be thrown when you encounter something unsupported in a macro.
21:05:25*v17d joined #nim
21:06:09*mahtob quit (Ping timeout: 248 seconds)
21:06:44PMunchhttps://nim-lang.org/docs/macros.html#error,string,NimNode
21:07:00PMunchAh, den er nok bedre :P
21:07:05Araqor maybe even an error that's technically correct
21:07:12PMunchWoops, wrong tab
21:07:22Araq(macros do not *parse* ffs)
21:07:44PMunchOh yeah, sorry about that
21:07:57*Sentreen quit (Ping timeout: 260 seconds)
21:08:11PMunchIn this case though it's my genui macro. Which actually parses the genui format
21:09:11couven92PMunch, what? Don't you expect all of us to speak Norwegian? :P
21:10:52*v17d quit (Ping timeout: 260 seconds)
21:11:01FromGitter<ephja> guleböj
21:11:29couven92@ephja ?
21:11:41couven92what language?
21:12:48PMunchhttps://sv.wikipedia.org/wiki/Norgehistoria
21:12:59PMunchUnder "Kategorier" third bullet point
21:14:16couven92seriously, what's wrong with Banana?
21:15:12couven92Though I liked the idea of a Shark being a "giant codfish" :D
21:16:38FromGitter<ephja> lol
21:16:38PMunchApparently the Swedes thinks that it doesn't sound Norwegian enough :P
21:18:35couven92PMunch, the banana or the giant cod? Because "kjempetorsk" would actually be fine, since we put "kjempe" in front of everything, my favourite being "kjempeliten" (literally: gigantically small)
21:20:27*Sentreen joined #nim
21:22:51*v17d joined #nim
21:22:58PMunchHuh, Hai is actually from Dutch Haai, which comes from Old Norse hákarl.
21:23:34PMunchSo that word could barely even be considered borrowed, it was just on loan to the Dutch and got a bit dinged up in the process :P
21:25:16PMunchAnd the word kjempe is more like something being extremely much, so kjempeliten makes sense as he was very little.
21:26:12PMunchIf something were kjempetorsk most people would probably think it was a large torsk, but with a slight change in your tone of voice you are basically saying that something is very cod.
21:55:54*Matthias247 quit (Read error: Connection reset by peer)
22:29:51def-pri-pubI think I figured out the `LD_LIBRARY_PATH` issue I was having for the Nim bindings. I put my findings here:
22:29:54def-pri-pubhttps://forum.nim-lang.org/t/3059/1#19285
22:32:01*nsf quit (Quit: WeeChat 1.9)
22:32:39*mahtob joined #nim
22:32:57mahtobok i solved manually-forum admin
22:33:09mahtobsqlite3 nimforum.db
22:33:12mahtobupdate person set status="Admin" where name="admin";
22:33:32mahtobso my admin account is Admin.
22:34:01mahtobthen i saw accounts's status
22:36:08PMunchAraq, about high. You said it was a reserved keyword, I'm guessing that means it always should give len-1. But this doesn't seem to always be the case..
22:36:55Araqhigh does what the docs say it does
22:38:53PMunchHmm
22:39:05PMunchOh, got to go. Back later
22:39:41*vendethiel quit (Ping timeout: 255 seconds)
22:41:13FromGitter<milisarge> sorry whats the difference moderated and user status
22:45:31*v17d quit (Ping timeout: 255 seconds)
23:10:42couven92Huh, how defensive coding actually prevents you from finding a bug, because you have handled all possible error conditions and the program does not crash even though you have an error in your code :O
23:11:18couven92Granted, not a problem I run into often :P
23:27:00PMunchOkay, back now. Reading the doc on high
23:28:03PMunchHmm, Araq so high is not supposed to be overwritten, but does not work for everything?
23:30:42*yingjun joined #nim
23:33:53FromGitter<ephja> is there a particular reason for not loosening the restriction and having a 'high' template?
23:34:57*yingjun quit (Ping timeout: 248 seconds)
23:38:15FromGitter<xxlabaza> Hi guys! ⏎ ⏎ I have just published my first Nim project. ⏎ ⏎ It is a REST based discovery service, it inspired by Netflix Eureka, and you could use it, for example, in your microservice environments for locating the services in your network (I am going to use it for connecting my Elixir/Python nodes in clusters, on home RPi cluster). Luntic (the name of the service) has a very simple CRUD REST interface and
23:38:15FromGitter... also has a web dashboard and feature of scheduled removing expired records. ... [https://gitter.im/nim-lang/Nim?at=597533671c8697534a52b452]
23:40:20PMunchCool!
23:42:43PMunchHmm, this certainly doesn't look good: http://ix.io/yF7
23:51:58PMunchIt looks like it doesn't like to create a cdecl procedure of a proc `[]`
23:56:33PMunchNeither the .. name used for slice creation..