Re: Can I use headless browser and capture the page?

2019-03-22 Thread nnahito
@juancarlospaco Thank you for your answer! Is it possible to execute on Windows? I think maybe can't

Re: Can I use headless browser and capture the page?

2019-03-22 Thread nnahito
@mratsim Thank you for your answer! That's the first time I heard Webdriver! Thank you! However, when I execute bellow code, it occurs errors: [Code] import webdriver var driver = newWebDriver("http://example.com";) var session = createSession(driver)

How to determine the type of an object

2019-03-22 Thread drifter
Hello, I'm sure this functionality exists, however having a real hard time finding the answer. How to you query the type of an object? >From what I've been trying, type() only seems to work for primitive types. I've also tried to find the answer in "Nim in Action". In my search I also found t

Re: pibench2 – A multi-threaded performance benchmark written in Nim

2019-03-22 Thread mratsim
There might be a problem with the multithreading. Mine is 8.2615s on a i9-9980XE (overclocked to 4.1 GHz).

Re: sleep function?

2019-03-22 Thread miran
> I can't found a normal sleep function. What is abnormal about the one you found?

sleep function?

2019-03-22 Thread minimisthupper
I can't found a normal sleep function. just found that: proc sleep(milsecs: int) {.gcsafe, extern: "nos$1", tags: [TimeEffect], raises: [].} Run Can someone declare it? And is there any other possibility? Thanks, minimisthupper

pibench2 – A multi-threaded performance benchmark written in Nim

2019-03-22 Thread lqdev
Hello! I'd like to announce a new small project of mine – pibench2. It's a multi-threaded performance benchmark, written in Nim. [https://github.com/liquid600pgm/pibench2](https://github.com/liquid600pgm/pibench2) Feel free to share your scores. Mine is 5.9649s with the default settings, on an

Re: "Nim needs better documentation" - share your thoughts

2019-03-22 Thread DTxplorer
I don't have internet connexion these days. I'm curious to see if the browsing is better. Thank you for the info.

Re: Can I use headless browser and capture the page?

2019-03-22 Thread juancarlospaco
[https://nimble.directory/pkg/xdo](https://nimble.directory/pkg/xdo)

Re: problem with nimpy and nimAes

2019-03-22 Thread nimpython
Thanks, I want to build a package do encrypt and decrypt, so return string make it easy to use, I found toHex method, is there any unHex exist? Nim syntax quite different and I am not sure I am doing it right way,.

Re: problem with nimpy and nimAes

2019-03-22 Thread yglukhov
Like @meep said, your `encrypt` function returns an invalid utf-8 sequence, which nimpy silently converts to python bytes as a fallback. Question is what are you expecting to get on the python side? If string, what should it look like? If array, array of what? Btw, if you need a string with the

Re: Can I use headless browser and capture the page?

2019-03-22 Thread mratsim
Your best best is Selenium, not sure if there are Nim bindings but @dom96's [Webdriver

Can I use headless browser and capture the page?

2019-03-22 Thread nnahito
I'm very new to Nim. I want to capture the web pages. However I can't find modules... Is it possible to capture the pages with Nim? Thank you!