I can't find any documentation telling me how to use PollTimeout in NetMQ.
Can it be used to detect a send or receive timeout? In case it can, how?
You can TrySendFrame and TryReceiveFrame which accept TimeSpan as timeout.
However the stable release in nuget doesn't include them. So compile from master or use the latest pre version:
http://www.nuget.org/packages/NetMQ/3.3.0.13-alpha622
Related
Following https://docs.hiro.so/smart-contracts/devnet I can't get the command clarinet integrate to work. I have installed Docker on my mac and am running version 0.28.0 of clarinet. Running command within 'my-react-app/clarinet' where all clarity related files live (contracts, settings, tests, and Clarinet.toml).
My guess is it could be an issue with Docker?
The issue was that I downloaded my Devnet.toml file from a repo that was configured incorrectly. The configuration I needed was:
[network]
name = "devnet"
I increased the CPU and Memory in Docker as well.
There is an issue when the command attempts to spin up the stacks explorer, but I was informed that there are several existing issues with the stacks explorer from clarinet integrate at the moment.
Depending on how the last devnet was terminated, you could have some containers running. This issue should be fixed in the next incoming release, meanwhile, you'd need to terminate this stale containers manually.
Apart from Ludo's suggestions, I'd also look into your Docker resources. The default CPU/memory allocation should allow you to get started with Clarinet, but just in case, you could alter it to see if that makes a difference. Here's my settings for your reference:
Alternatively, to tease things out, you could reuse one of the samples (eg: hirosystems/stacks-billboard) instead of running your project. See if the sample comes up as expected; if it does, there could be something missing in your project.
I know how to debug and modify CodenameOne source in an app. That is described here
Can I do the same for the code under iOSPort? I am interested in testing a modified version of Ports/iOSPort/nativeSources/CodenameOne_GLAppDelegate.m. using a build hint to append code to the delegate is not an option since what I need to test is a change within an existing method.
I think a recent update broke something in it but the ticket I raised on GitHub isn't being replied to, so I'd like to see if I can propose a fix myself
When you use include source the full iOS port is included into the source and you can debug directly into the port. You can just copy and paste your changes into there and then debug these changes. Then copy and paste it back.
That's how we test changes to the port.
ctx = SSL_CTX_new(TLSv1_2_server_method());
I get a warning for this that tells me that TLSv1_2_server_method is deprecated and i should use the general TLS_server_method and let the client & server negotiate what they want to use. I don't want this as i write both the server and the client side and i want to filter attacks using earlier versions' bugs (surfaced in the future). I know i'm just being paranoid and i can ignore the deprecation warning for now, but i want to use my best options and "for now" is not enough for me. So is there a possibility to somehow force OpenSSL not to allow < v1.2 TLS clients to connect, or its developers just made the wrong decision and took it away completely?
(Debian 9.3, libssl-dev 1.1.0f-3+deb9u1)
You should just read the doc since it answers this question
If you want to limit the supported protocols for the version flexible
methods you can use SSL_CTX_set_min_proto_version,
SSL_set_min_proto_version, SSL_CTX_set_max_proto_version and
SSL_set_max_proto_version functions.
What does it mean that a function, in particular CryptExportPKCS8 is deprecated?
https://msdn.microsoft.com/en-us/library/windows/desktop/aa379932(v=vs.85).aspx
I'm aware that one can't use it with newer version of wincrypt just because it is not present in header file, but can a program based on old wincrypt.h and crypt32.lib still retrieve private key from certificate store in Windows 10? Or is it impossible to access such data without using more up-to-date API?
Deprecated means "going away, change your code". In this case, it appears that MS wants you to use PFXExportCertStoreEx() instead.
I'm working on an embedded Linux system that has a specific I2C platform driver and I'm writing a custom I2C driver. Everything works fine, but I have a problem with their dependencies.
As my custom driver uses the default I2C functions, once I compile it, the make command automatically updates the modules.dep file saying that my driver depends on i2c-core to run, but that is not enough. In order to i2c-core to be configured I need to load i2c-omap first (the platform's driver) and only then my driver works properly.
Unfortunately, I can't find any dummy function to call and thus trick the make into adding another dependency when it generates my driver. Also, I would prefer an automated solution instead of modifying modules.dep with something like sed -i 's/RE1/RE2/' modules.dep.
So, is there any way to explicitly add a dependency to a module when I compile it?
Thanks!
I found an answer here: http://www.xml.com/ldd/chapter/book/ch11.html
I solved my problem calling
request_module("i2c-omap");
Anyway, this does not exactly update the dependencies file as I first intended. If anyone knows a way to do that, please add a comment here!