Re: dlang-requests 0.1.7 released
On Saturday, 11 June 2016 at 23:03:52 UTC, ikod wrote: Hello, Dlang-requests is library created under influence of Python-requests, with primary goal of easy to use and performance. I have a couple of questions. If a url can't be found and I catch the ConnectError exception and handle it[2] I still get an additional error[1] printed. For example: try { getContent(url); } catch(ConnectError ex) { debug writeln("Error getting page: ", ex.msg); } Will error with this: [1]2016-06-21T20:59:15.073:streams.d:connect:750 Failed to connect: can't resolve www.systemcontrolpanel.com - getaddrinfo error: Name or service not known [2]Error getting page: Can't connect to www.systemcontrolpanel.com:80: getaddrinfo error: Name or service not known The additional error[1] will still print in release build. The only workaround I could find was to check getAddress myself and ensure that the page exists before calling getContent. Thanks!
Re: Dynamic Bindings to libui (x-platform GUI)
On Tuesday, 24 May 2016 at 20:52:54 UTC, extrawurst wrote: Hey folks, libui is a crossplatform GUI lib written in C. This makes it a perfect candidate to be used in D! What they say about libui on their site: "Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports." find libui on github: https://github.com/andlabs/libui So here are the inofficial Derelict Bindings to it: https://github.com/Extrawurst/DerelictLibui I tested them on both windows and mac osx so far. Any linux user is welcome to test it on there aswell. Let me know if you find any issues. -Stephan I had to comment out instances of uiControlVerifyDestroy on Linux. Seems libui was updated and removed/moved that function: Removed uiControlVerifyDestroy(); that is now part of uiFreeControl() itself. Other than that it seems to work great on Linux. Thanks for this!