How to get information about .lnk(link) file extension?

2023-07-25 Thread enthus1ast
You could use winim: With the `IShellLink`. There is an example in the readme how to use it.

How to get information about .lnk(link) file extension?

2023-07-25 Thread termer
I don't know if anyone has written a library for parsing them, but if not, you can read [Microsoft's docs](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-shllink/16cb4ca1-9339-4d0c-a68d-bf1d6cc0f943) about their format and make a library that does it yourself. =

How to get information about .lnk(link) file extension?

2023-07-25 Thread Bosinski
The format of .lnk-files is described in-depth:: 1. 2.

How to get information about .lnk(link) file extension?

2023-07-25 Thread ploxotnuj1
How to get information about .lnk(link) file extension? For example, the full path to the application to which this link goes?

Using Unicode in procedure and variable names

2023-07-25 Thread koistinen
For variable size boards, I'd recommend rewriting the code for that special case. No need for one library to do everything chess related. Readability is more important than generality. A simpler library is easier to rewrite for your special use case. Maybe you would want an infinite board: then

Using Unicode in procedure and variable names

2023-07-25 Thread koistinen
It's not too bad to use web search to find the symbol and then use copy and paste to get it into your code either.

Using Unicode in procedure and variable names

2023-07-25 Thread koistinen
> : The unicode is fine but array[0..63, Piece] should be array[8, array[8, > Piece]]. Don't worry about the nesting, it has no overhead. For a normal chess engine, this would be fine. I am going for a tablebase generator that might be able to generate 11-man endgames and to be able to do that

Wishlist: Ideal UI library for Nim

2023-07-25 Thread brainproxy
Qt licensing is not a big mystery, nor is it scary, nor does it change all that much over the years: GPL only, not available under LGPL:

How to send a file to a telegram bot via a request in Puppy?

2023-07-25 Thread ploxotnuj1
Thank you very much! You helped!

Concepts in Nim v2

2023-07-25 Thread termer
@Araq Hahaha you haven't forgotten, eh. I'm using microasynchttpserver in some limited projects to see how it does. Time is lacking these days, but I've also played around with disruptek's CPS project and webserver implemented in it, which performs extremely well. I wouldn't mind building stream

How to send a file to a telegram bot via a request in Puppy?

2023-07-25 Thread treeform
You are trying to do multipart which is always wonky, requests does make it look easy though! I think the Nim code would look some thing like this, but I can't run or test it. import puppy, jsony, std/tables, std/json proc sendMsg(text, filePath="") = let tok

How to send a file to a telegram bot via Puppy

2023-07-25 Thread ploxotnuj1
How to send a file to a telegram bot via Puppy? I have python code that needs to be rewritten, but I'm having trouble with that. Here's the code: import requests def send_msg(text, file_path=None): token = "token" chat_id = "chat_id" url_req = "" \+ token + "/s

How to send a file to a telegram bot via a request in Puppy?

2023-07-25 Thread ploxotnuj1
I have python code that needs to be rewritten, but I'm having trouble with that. Here's the code: import requests def send_msg(text, file_path=None): token = "5842635044:AAElgom_l2CPmqv2qv_Fjq-PRc3iNHAaGG8" chat_id = "5566406257" url_req = "https://ap

Nim 1.6.14 released

2023-07-25 Thread treeform
Thank you very much to everyone who contributed to this release. Its hard to release software. You are doing a good job! Nim 2.0 when?

Concepts in Nim v2

2023-07-25 Thread Araq
Don't worry, I do believe you. Now where is this Nim server of yours that supports streaming?

The correct behavior of procedural variable initialization

2023-07-25 Thread sls1005
Has someone ever noticed this? var a = (proc() = discard) var b: proc() = (proc() = discard) echo a is proc() {.nimcall.} #true echo a is proc() {.closure.} #false # => `a` is {.nimcall.} echo b is proc() {.nimcall.} #false echo b is proc() {.closure.} #tr

Concepts in Nim v2

2023-07-25 Thread termer
New-style concepts are super broken right now, and concepts in general are unusable when you're trying to use generics. Believe me, I've tried. I'd be really happy if there was an overhaul of concepts in v2, but I don't expect it.

Wishlist: Ideal UI library for Nim

2023-07-25 Thread r3c
VST plugins UIs always amaized me how fast they are with all that knobs widgets, FFT, osciloscopes, spectrum analyzers, and they worked flawlessly on a potato.

Wishlist: Ideal UI library for Nim

2023-07-25 Thread FabienPRI
Things not to forget about Qt is that all Qt libs are not GPL/LGPL. Quite a lot of them are GPL only. And the commercial licence is quite costly for small company. So Qt is not that evident for any commercial software. MoreOver, Qt licensing has evolved in the past, and could so in the future.

Using Unicode in procedure and variable names

2023-07-25 Thread grd
Wow!

Using Unicode in procedure and variable names

2023-07-25 Thread Vindaar
> I have not seen others use Nim this way, what examples are there? I use Nim's unicode support rather extensively. * [Unchained](https://github.com/SciNim/Unchained) (CT physical unit checking) (ab)uses unicode identifiers to construct products of units, e.g. `1.keV⁻¹•cm⁻²•s⁻¹` and the like

asyncdispatch debugging

2023-07-25 Thread takekikuchi
I have recently started using Victoria Metrics and was doing some research and found a package that exports Futures status in Prometheus Exporter format. I will give it a try.

Some of Nim's convention needs to change in order for it to succeed

2023-07-25 Thread mratsim
> Thanks for clearing up my misunderstanding. I'm really sorry about my > unsolicited advice. I didn't realize Nim is a hobby language. I was mislead > by the impressive branding. You try to be clever with passive aggressiveness but that just makes you look like a fool. It's a technical forum,

Some of Nim's convention needs to change in order for it to succeed

2023-07-25 Thread Mark_Howser
Thanks for clearing up my misunderstanding. I'm really sorry about my unsolicited advice. I didn't realize Nim is a hobby language. I was mislead by the incredible branding. When you used the term "object-obsessed", I realized you guys weren't born when the software industry switched to OOP. It