execProcess when spaces in directory path
I'd like to use nim to execute something like "C:UsersMeAppDataLocalThe AppTheApp.exe --uninstall --silent" or "bob" for short What is the simplest way to handle the space in the directory path on the windows os? * I tried discard execShellCmd(bob) -> failed due to space * I tried discard execShellCmd("bob") -> failed due to space * I tried let x = execProcess("TheApp.exe",""C:UsersMeAppDataLocalThe App",args =["\--uninstall", "\--silent"]) -> failed but mentions args.len==0 in the err msg which I don't really follow
Re: Using existFile or existDir correctly.
It seems rather questionable to assume that the average reader of that documentation would be equated with university level mathematical logic. In the case in question "Returns true iff the directory dir exists. If dir is a file, false is returned. Follows symlinks." where is the second parameter that is necessary in the suggested usage? Returns true if the directory exists and what other condition is evaluated? Apologies if it should be obvious but I genuinely don't see 2 conditions there. Why the inconsistent naming might be a more exciting question: why not existsSymlink() ?
Re: ggplotnim - pretty native plots for us
I've made a note to check this out. So far my usage of nim in work has been limited to command line scripts, I want to have an excuse to expand that scope.
Re: Unknown performance pitfall in tables?
It's interesting to see how to improve performance
Re: Nim compiling using MS VS2015 (windows)
I don't think mingw32 is perfect , at least, I blame it for getting stuck with this issue [https://gitlab.com/define-private-public/stb_image-Nim/issues/8](https://gitlab.com/define-private-public/stb_image-Nim/issues/8)
Re: Nim tutorial -- Kaushal Modi's notes
Thanks I can't get enough of tutorials.
Re: The authors of the Nimacros project stopped working on that book
It was my pleasure. I think you should not expect the nim community to jump in with ready made content to expand the book. My expectation is that you will have a slow but steady response. Anyway, thank you for starting the book, and thank you for restoring it online at github. I will continue to check for bears.
Re: The authors of the Nimacros project stopped working on that book
I think Nim could really do with a new book. Recently I was browsing through O'Reilly Online Library and found Nim in Action - its topic was listed as Java. It had a total of 4 reviews. There were just two other mentions I could in their vast library. One was a mention in a book about building telegram bots, and one was in the benchmarking section in a book about Crystal
Re: The authors of the Nimacros project stopped working on that book
Oh dear. I rather enjoyed the book, and actually referred to it a few times as I script in the wee hours before bedtime. Perhaps it will come back, I can offer language corrections, and I do enjoy gardening.
Re: donation
Although JPLRouge pressed the button to make the payment through Paypal, no money has come out of his bank account. (?)
Re: Using different compilers on windows
Thanks, Clang is for MacOsX I assume, so I am going to try this compiler [https://code.visualstudio.com/docs/cpp/config-msvc](https://code.visualstudio.com/docs/cpp/config-msvc) and see if it makes the slightest bit of difference to allowing me to introduce nim to work
Using different compilers on windows
Is there any guide which shows you how to change the compiler you're using on windows, i.e. how to install a different one to Mingw? Background: I ask because I have gotten stuck on an exception trying to load bitmap files with the stb_image library. It was suggested that I use a different compiler to see if it resolves anything. I installed nim with choosenim stable. I have thus Mingw as the default. I've no idea how to go about switching.
Re: Nim for Statistics
Somn usor means sleep well :) it is just a phrase I have in my head
Re: Nim for Statistics
There don't seem to be a lot of libraries in that direction yet, but Nim seems evidently capable of being a good choice. Somn usor
Re: Screenshot / Screencapture
Yes, as I expected, although the library is just what I want, when I hit the line image.save(destPath) STBI throws an exception
Re: Screenshot / Screencapture
Thanks JohnS . I am going to try this, but I have an interesting error with the STB_Image library. When I am trying to use fopen it's throwing an STBI exception for me depending on the specific method call it's pointing back to. I
Re: Screenshot / Screencapture
I found the same error with png library. Treeform your example looks good enough to start with. After that I just have to port the rest of my c#
Re: Screenshot / Screencapture
I get `Error: 2147549183 can't be converted to HRESULT` with nim 1.0
Screenshot / Screencapture
Does anyone know of any package or library that lets you take a screencapture? I would like to implement something similar to the speedline module, at least in terms of its mathematical formulation. The only thing I found was nsu - which does not build
Re: Write in *.txt file from variables values , with separate new lines.
You just have to add a n to var1, var2, and var3. At least, that's how I see it. Maybe there is a sexier approach.
Re: Della-Vos tutorial on Nim macros
The macro example asks for bear. A bear is very different to a beer. I found the reference to nnkStrLit disconcerting, because I had not read [https://nim-lang.org/docs/macros.html](https://nim-lang.org/docs/macros.html) before and wasn't sure what this term was
Re: Equivalent of Python's sys.getsizeof
Is your answer already found here - [http://zevv.nl/nim-memory](http://zevv.nl/nim-memory)/ ?
Re: What are you building now?
I just learn how to script common tasks with nim. Today I made a kind of animation of a go game sgf4art [https://github.com/Lecale/NimExamples/blob/master/sgf4art.nim](https://github.com/Lecale/NimExamples/blob/master/sgf4art.nim)
Re: nim in nim
I see that code bugs slightly on my pc. `stdout.styledWrite(styleDim, "Take (1–3): ", resetStyle)` I have a french keyboard, and I see `Take (1ÔÇô3)` which leaves me interested to know why
nim in nim
Has anyone written nim in nim? I ask because [https://en.wikipedia.org/wiki/Nim](https://en.wikipedia.org/wiki/Nim) has an example in python
Re: Showing available memory
Thank you, this is a really useful start to a recipe i need
Re: Showing available memory
That's probably a bit beyond me, or at least the level of time I want to invest to get this to work tomorrow. Still I look at the example that prints out the dimensions of the screen and dream I might work out how to call that.
Showing available memory
Hi, another nim newbie here. I was looking for a way to show the available system memory for Windows OS. My research took me as far as the psutils package, and then I started sobbing when I read "Linux only". Is there anything else I can use, like a way to query windows counters with nim. If so, thanks in advance to anyone who can point me there. P.S. Is this a suitable tutorial type link [http://codeninja.blog/2019/exploring-nim](http://codeninja.blog/2019/exploring-nim)/