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
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.
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
> 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
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.
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
Credits belongs to federico for creating and maintaning it. I just spend a
couple of hours on it.
Thanks a lot that worked!
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
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
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.
> `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)`
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]
13 matches
Mail list logo