Looking for contributions to my optimistic image library

2020-06-07 Thread Voltist
Hey! My image IO/manipulation library, _Inumon_ , is now available on Nimble. I am aware that there are existing libraries that wrap _libpng_ and _libjpeg-turbo_ , and even implement basic image manipulation; but a combination of poor documentation, inelegant or unstable APIs, unresponsive

Re: Hackathon as part of NimConf 2020

2020-06-07 Thread deech
I have some fairly comprehensive [libclang bindings](https://github.com/deech/libclang_nim_demo_app) (Windows support is coming). If you want C++ interop using them to statically introspect headers and generate Nim like 'nimterop' seems like a good way.

Re: Type issues – winim and CryptUnprotectData

2020-06-07 Thread Neant
Shows how much I know. I actually read that page, and for reasons unknown I assumed that "[a]ny tampering results in the return of the ERROR_INVALID_DATA code" meant it would be throwing an exception... Thanks for the tip about GetLastError – I also found [this page about error

Re: Type issues – winim and CryptUnprotectData

2020-06-07 Thread Ward
> I think I did manage to convert the db output to correct byte data (at least > in a few of my attempts). Nim's string can store binary data, but std/db_sqlite cannot handle binary data well. Precisely speaking, if the BLOB data contain '0', the returned value will be truncated. > From what

Re: Generic methods are deprecated?

2020-06-07 Thread Chris3606
Sorry to necro... but... Is there a replacement for generic methods as nim currently stands? I'm currently using a tuple-of-procs approach but it would be nice to have a better alternative.

Re: Hackathon as part of NimConf 2020

2020-06-07 Thread mantielero
I am not a contributor so probably not entitled to give an opinion here. In any case, I would suggest improving [nimterop](https://github.com/nimterop/nimterop). Right now it works really well when you try to wrap C libraries. But it could be even better, and it still misses the capability to

Re: Nimble Directory Redesign

2020-06-07 Thread Willyboar
Credits belongs to federico for creating and maintaning it. I just spend a couple of hours on it.

Re: Using a Table as an object's member.

2020-06-07 Thread Zekereth
Thanks a lot that worked!

Re: Type issues – winim and CryptUnprotectData

2020-06-07 Thread Neant
Thank you so much for the answer! I think I did manage to convert the db output to correct byte data (at least in a few of my attempts). After looking at your example and performing some additional tests, I **believe** that one of the the main issues I've been having is that CryptUnprotectData

Re: Type issues – winim and CryptUnprotectData

2020-06-07 Thread Ward
Interesting topic. What you do about **CryptUnprotectData** is CORRECT. The problems are: 1. You must read binary data from SQLite. 2. You need to decrypt the cookie value by AES-256 GCM mode after crhome 80. I wrote a example using [tiny_sqlite](https://github.com/GULPF/tiny_sqlite) and

Re: Nim in business

2020-06-07 Thread PMunch
Depends heavily on what kind of APIs you're thinking about. For the simple stuff it's good, but you might run into it lacking a package for a certain protocol or similar if you need to do something more complex.

Re: Using a Table as an object's member.

2020-06-07 Thread miran
> `proc add(this: JotzCollection, name: string, note: string)` `this` must be a `var` if you want to modify it: `proc add(this: var JotzCollection, name: string, note: string)`

Using a Table as an object's member.

2020-06-07 Thread Zekereth
I feel really stupid but here goes. I'm writing a small note taking like program in various languages. My add method fails to compile do to a type mismatch. Here is the code: import tables type JotzCollection = object entries: Table[string, string]