00:23:53 | FromGitter | <cyberlis> does nim have any function to encode url GET params |
01:07:30 | dom96 | https://nim-lang.org/docs/cgi.html#encodeUrl,string |
01:14:22 | mahtob | https://forum.nim-lang.org/ written in nim-jester,source in github? |
01:14:29 | mahtob | i couldnt find |
01:17:37 | dom96 | http://lmgtfy.com/?q=nim+forum+source+code |
01:24:25 | mahtob | sorrry 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:44 | FromGitter | <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:19 | adeohluwa | hello house, any authentication library for nim? kinda like passport for node.js... |
12:13:57 | federico3 | adeohluwa: shameless plug: https://github.com/FedericoCeratto/nim-httpauth |
12:20:10 | adeohluwa | bless you |
12:20:21 | * | yingjun joined #nim |
12:22:37 | * | bjz joined #nim |
12:23:31 | FromGitter | <mapisoft> Hey hi! |
12:23:45 | FromGitter | <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:21 | SusWombat | Anyone here using nim-mode in emacs? |
12:40:33 | PMunch | mapisoft, 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:48 | crem | How 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:49 | FromGitter | <stisa> Crem : I think it's `from math as m import nil` |
12:59:55 | * | nsf quit (Quit: WeeChat 1.9) |
13:00:52 | crem | stisa: Indeed. Thanks! |
13:01:24 | crem | sublime nimline doesn't highlight that syntax btw. |
13:20:21 | * | mahtob joined #nim |
13:36:48 | * | mahtob quit (Ping timeout: 260 seconds) |
13:39:29 | federico3 | what'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:38 | dom96 | federico3: toTimeInterval(time) - toTimeInterval(time2) I guess |
14:05:57 | dom96 | crem: submit a bug report https://github.com/Varriount/NimLime |
14:06:00 | federico3 | initInterval(seconds=int(b - a)) works |
14:08:02 | FromGitter | <Varriount> crem: Bonus points if you can add the highlighting to the syntax files. |
14:10:07 | dom96 | This (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:59 | mahtob | hi i register forum but didnt come confirmation mail? |
14:16:18 | mahtob | i registered yesterday but stil no mail |
14:19:09 | federico3 | dom96: 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:43 | dom96 | mahtob: what's your username? |
14:19:48 | mahtob | mahmut |
14:20:13 | dom96 | federico3: Yeah. PRs welcome :) |
14:20:24 | dom96 | The times module is a little messy and inconsistent |
14:20:33 | federico3 | dom96: also the result seems simply wrong |
14:21:46 | dom96 | mahtob: I activated it for you |
14:23:42 | mahtob | thnks dom96 i logined |
14:25:21 | dom96 | federico3: But if you're looking for "x days ago" etc. Check how the Nimforum does it |
14:25:51 | dom96 | https://github.com/nim-lang/nimforum/blob/238903ca3b5ba01720f6fe3e0dfde75c08991b75/forum.nim#L188 |
14:28:38 | federico3 | you implemented your own toInterval... |
14:30:00 | dom96 | hah, looks like it |
14:30:32 | dom96 | In my defense, I'm pretty sure I've done this before TimeInterval existed in the times module |
14:31:02 | federico3 | I'm getting 3 different outputs from |
14:31:06 | federico3 | initInterval(seconds=int(b - a)) |
14:31:11 | federico3 | b.toTimeInterval - a.toTimeInterval |
14:31:14 | federico3 | toInterval(b - a) |
14:32:10 | dom96 | If you know how to fix it then please do |
14:32:17 | dom96 | Be sure to check the times tests |
14:32:20 | dom96 | and add your own |
14:32:27 | federico3 | will do |
14:32:30 | dom96 | if not then just reuse NimForum's code and add an issue :) |
14:32:47 | federico3 | https://tio.run/##bZJPj4IwEMXv/RQTT0LUVFCya8J1kz3v3k2VujaB1rSDiZ@enbYgrOyBZDrv9x7TP1o1Xaeam7EIrVaI0iHr16ga6RhjN2vOgOZTo7R3US8rdbkcQGksdskBvokaJCgZwF1YsLIRSiv9AyV4nNq1RHhIYR21RrlSd8i3@7zgnBM0Cuuyp9Op7kMao/E6T8n279k/IT2dTnQfUonHPOKt2M0DApk@NW@@mva/bRRzcyTTQQvjK93SKc/sxXz0nkwHzbU1ko8AfF4GX42mDd3JarDFRRggln4joaIs6M8lKuGgfZkw5lqFEhZoPqySuqofw58WB0ZG/z5gUckaBTV80Nloagma62JN8yVpXTngE@30om2Pe86PPH6B8@eiXnfmIl7SXMsTrEEky |
14:32:48 | federico3 | QhnRJ82aP68PmJeWqMhJ8PkDcfAIMvz1YCalNmkzkMtnJM2jFh6uet@AQ |
14:32:50 | federico3 | oops, sorry |
14:33:43 | federico3 | tio.run needs a tinyurl button ;) |
14:33:48 | FromGitter | <Varriount> https://news.ycombinator.com/item?id=14831638 |
14:34:13 | federico3 | http://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:41 | PMunch | Hmm, 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:47 | PMunch | Oh wait, I think I found a fix for the first and biggest issue |
15:08:30 | PMunch | Instead 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:28 | PMunch | Of 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:57 | dom96 | Araq: Can you give me a link to a log that shows Travis/AppVeyor timeouts? |
15:47:27 | Araq | no but appveyor times out every time now |
15:47:38 | Araq | they changed their server or something |
15:47:53 | Araq | it now has less memory, Nim swaps, timeout |
16:38:29 | * | yglukhov joined #nim |
16:48:34 | * | mahtob joined #nim |
16:58:26 | dom96 | Araq: So why can't you link me to a log? |
16:59:28 | dom96 | I 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:17 | mahtob | i am trying to build forum. |
17:20:21 | mahtob | some errors: |
17:20:22 | mahtob | http://ix.io/yEL |
17:23:58 | mahtob | i also tried nim build -d:dev |
17:24:27 | * | Jesin quit (Quit: Leaving) |
17:34:12 | FromGitter | <TiberiumN> @cyberlis you're creating VK API wrapper? |
17:35:00 | FromGitter | <TiberiumN> ohh, I remembered where I saw your nickname.. rubukkit lol |
17:35:15 | FromGitter | <TiberiumN> (also pploader plugin) |
17:35:41 | * | yglukhov quit (Remote host closed the connection) |
17:35:56 | * | yglukhov joined #nim |
17:36:17 | FromGitter | <TiberiumN> I must say: internet is relatively small too |
17:46:56 | mahtob | dom96 can you look it? |
17:47:00 | mahtob | http://ix.io/yEL |
17:47:59 | FromGitter | <zacharycarter> o/ |
17:48:28 | FromGitter | <TiberiumN> recaptcha package is broken? |
17:48:44 | FromGitter | <TiberiumN> Error: type mismatch: got (Future[system.string]) ⏎ ⏎ if the error is like this - you need an "await" |
18:13:40 | mahtob | so? |
18:14:52 | FromGitter | <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:32 | mahtob | euantor ? :) |
18:29:54 | euantor | Are you using Nim 0.17.0? |
18:30:51 | euantor | There was a change that made the way httpclient works slightly different |
18:30:55 | * | yingjun quit (Ping timeout: 240 seconds) |
18:31:54 | euantor | There's a devel branch for it, I need to merge it into master, which I'll do now |
18:38:01 | euantor | Just 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:49 | mahtob | yes 0.17.0 |
18:49:17 | mahtob | ok nimble install recaptcha fixes? |
18:49:37 | mahtob | overrite? |
18:50:28 | mahtob | ok i installed 1.0.2 |
18:52:35 | euantor | Yeah, it should work now hopefully |
18:52:45 | mahtob | yes.thnks forum built :) |
18:52:53 | euantor | Great :) |
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:45 | mahtob | i am not using mail for forum.how can i accept-confirm new users as admin? |
19:00:59 | mahtob | where is the admin panel or config file |
19:03:29 | * | v17d quit (Ping timeout: 248 seconds) |
19:06:55 | dom96 | You just log in as admin, then go to /profile/username |
19:07:00 | dom96 | and 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:44 | mahtob | not exists username's status |
19:42:33 | mahtob | https://milis-linux.appspot.com/GeDOYWS.png |
19:43:49 | mahtob | a user called test2,registerd.also test2 seems as moderator |
19:44:01 | mahtob | and i cant change status |
19:47:10 | dom96 | yes, because you're not an admin |
19:47:20 | dom96 | You need to modify the DB manually and make yourself an admin |
19:47:49 | dom96 | Are you planning on running your own forum? |
19:50:06 | FromGitter | <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:12 | mahtob | yes 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:29 | FromGitter | <ephja> https://github.com/nim-lang/nimforum/blob/238903ca3b5ba01720f6fe3e0dfde75c08991b75/forum.nim#L337 |
21:04:42 | PMunch | Hmm, Nim should have some more general case Errors |
21:05:18 | PMunch | Like 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:44 | PMunch | https://nim-lang.org/docs/macros.html#error,string,NimNode |
21:07:00 | PMunch | Ah, den er nok bedre :P |
21:07:05 | Araq | or maybe even an error that's technically correct |
21:07:12 | PMunch | Woops, wrong tab |
21:07:22 | Araq | (macros do not *parse* ffs) |
21:07:44 | PMunch | Oh yeah, sorry about that |
21:07:57 | * | Sentreen quit (Ping timeout: 260 seconds) |
21:08:11 | PMunch | In this case though it's my genui macro. Which actually parses the genui format |
21:09:11 | couven92 | PMunch, what? Don't you expect all of us to speak Norwegian? :P |
21:10:52 | * | v17d quit (Ping timeout: 260 seconds) |
21:11:01 | FromGitter | <ephja> guleböj |
21:11:29 | couven92 | @ephja ? |
21:11:41 | couven92 | what language? |
21:12:48 | PMunch | https://sv.wikipedia.org/wiki/Norgehistoria |
21:12:59 | PMunch | Under "Kategorier" third bullet point |
21:14:16 | couven92 | seriously, what's wrong with Banana? |
21:15:12 | couven92 | Though I liked the idea of a Shark being a "giant codfish" :D |
21:16:38 | FromGitter | <ephja> lol |
21:16:38 | PMunch | Apparently the Swedes thinks that it doesn't sound Norwegian enough :P |
21:18:35 | couven92 | PMunch, 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:58 | PMunch | Huh, Hai is actually from Dutch Haai, which comes from Old Norse hákarl. |
21:23:34 | PMunch | So 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:16 | PMunch | And the word kjempe is more like something being extremely much, so kjempeliten makes sense as he was very little. |
21:26:12 | PMunch | If 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:51 | def-pri-pub | I think I figured out the `LD_LIBRARY_PATH` issue I was having for the Nim bindings. I put my findings here: |
22:29:54 | def-pri-pub | https://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:57 | mahtob | ok i solved manually-forum admin |
22:33:09 | mahtob | sqlite3 nimforum.db |
22:33:12 | mahtob | update person set status="Admin" where name="admin"; |
22:33:32 | mahtob | so my admin account is Admin. |
22:34:01 | mahtob | then i saw accounts's status |
22:36:08 | PMunch | Araq, 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:55 | Araq | high does what the docs say it does |
22:38:53 | PMunch | Hmm |
22:39:05 | PMunch | Oh, got to go. Back later |
22:39:41 | * | vendethiel quit (Ping timeout: 255 seconds) |
22:41:13 | FromGitter | <milisarge> sorry whats the difference moderated and user status |
22:45:31 | * | v17d quit (Ping timeout: 255 seconds) |
23:10:42 | couven92 | Huh, 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:18 | couven92 | Granted, not a problem I run into often :P |
23:27:00 | PMunch | Okay, back now. Reading the doc on high |
23:28:03 | PMunch | Hmm, Araq so high is not supposed to be overwritten, but does not work for everything? |
23:30:42 | * | yingjun joined #nim |
23:33:53 | FromGitter | <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:15 | FromGitter | <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:15 | FromGitter | ... also has a web dashboard and feature of scheduled removing expired records. ... [https://gitter.im/nim-lang/Nim?at=597533671c8697534a52b452] |
23:40:20 | PMunch | Cool! |
23:42:43 | PMunch | Hmm, this certainly doesn't look good: http://ix.io/yF7 |
23:51:58 | PMunch | It looks like it doesn't like to create a cdecl procedure of a proc `[]` |
23:56:33 | PMunch | Neither the .. name used for slice creation.. |