Re: GTK 3.20 Nim wrapper
> @Stefan_Salewski, seems that RsvgHandle has not svg data it's nil instead Of course making such a gtk related wrapper is not fully trivial. I think I once said that RSVG is not a very big library, so it should not be too much work to make the wrapper. Unfortunately I have never used RSVG myself, so I would have to read about it first a bit, so that I can do at least some minimal testing. So for me I assume it would be about one week fulltime. May be justified when people really need it.
Getting a segfault when testing my C wrapper on OS X
I'm working on my stb_image wrapper right now. It's almost ready for release. But to be a good little developer I want to test it on the three major platforms (Linux, OS X, and Windows) before saying it's v1.0. I developed it on Linux and it passes all of the unit tests. But when I tried to have it run on OS X (sierra), I got this error: [Suite] Unit Tests for stb_image wrapper Traceback (most recent call last) tests.nim(56)tests stb_image.nim(86)load SIGSEGV: Illegal storage access. (Attempt to read from nil?) The line in question can be found here: [https://gitlab.com/define-private-public/stb_image-Nim/blob/bd4fc301069b068d7657b838ecf369be0573683a/stb_image.nim#L86](https://gitlab.com/define-private-public/stb_image-Nim/blob/bd4fc301069b068d7657b838ecf369be0573683a/stb_image.nim#L86) I did a little investigating. The wrapped function stbi_load() is setting the width, height, and components variables like it should, but nothing is being passed into data upon the function's return. I got the same error when I tried to do this: echo data[] I really have no idea what is wrong.
Re: GTK 3.20 Nim wrapper
@dom96, ok, I'll look there from time to time. @Stefan_Salewski, seems that RsvgHandle has not svg data it's nil instead... I have troubles with RSVG: [https://pp.vk.me/c638428/v638428447/163f4/kS8kbEjzctU.jpg](https://pp.vk.me/c638428/v638428447/163f4/kS8kbEjzctU.jpg) If I'll comment line 59 - I'll have the same error in line 63. File exists, I checked. Handle created, I checked... Why when trying to readclose it it writes that it's trying to read from nil ? Asked in gtk+ and Nim channel - have not resolved. Thanks.
Re: Building a Android App in NIM ?
Hello Libman , thank you for your suggestion. i Really appreciate. Realized that there IS a way in NIM to do that. For me i can make an approach when i am at the stage of programming knowledge. But .. good to know before running the road. WBR Hexo
Re: How to embed a header file into a .nim file
Sorry for this late response but usually your `nim` file doesn't have to depend on a C header file at all. `importc` the identifiers and either use `.dynlib` or some `{.link: "lib.a".}` command to link against the library.
Re: GTK 3.20 Nim wrapper
It looks like Manning is doing some sort of discounts throughout December. So keep checking this page: [http://freecontent.manning.com](http://forum.nim-lang.org///freecontent.manning.com)/
Re: Please , can we stop spams?
There are two solutions: * Ever new user's first post needs to be approved by a moderator. * We introduce a flagging mechanism, so that forum users can flag spam and once enough people flag it the post becomes invisible. Of course, we can do both too. I think this is how HN works and it's a good solution. The only thing left is implementing it :)
Re: Please , can we stop spams?
I would prefer what Araq suggested. Spammers are almost always new accounts, and that information should be used to not make the life of people harder who contribute. I don't know what is currently done, but I would suggest when someones first post is Spam, the accounts should be banned. I would wonder if it is done otherwise.
Re: Please , can we stop spams?
Making the life of legitimate users difficult is not a good way to fight spam.
technology change application
Evaluation committee expert listened to the report of unit of program work out seriously, check and approve relevant data, the expert thinks consistently: " program " the work out fulfils national innovation drive to develop the strategy to carrying out, lead and promote industry of lumber of Lan Shan area to have [url=[http://wpcdeckboard.com/project-case/6185.html]laying](http://forum.nim-lang.org///wpcdeckboard.com/project-case/6185.html\]laying) engineered flooring on concrete[/url] important sense, innovation development also has science and technology of area of assemble of industry of industry of other to home lumber to draw lessons from a meaning certainly. According to the State Council " deepen [url=[http://wpcdesigndeck.com/wpc-fence/2365.html]make](http://forum.nim-lang.org///wpcdesigndeck.com/wpc-fence/2365.html\]make) flower boxes with composite wood[/url] standardization job to reform scheme " (the country is sent [2015] 13) with total bureau of national qualitative check, state level appoint " level of state of qualitative check total bureau appoint mix about breeding about job of our country standardization will change a government the existing system of onefold supply, > encourage social organization to establish the > [url=[http://wpcdeckboard.com/project-case/13630.html]discount](http://forum.nim-lang.org///wpcdeckboard.com/project-case/13630.html\]discount) > timbers not portland[/url] organization standard of standard of Home Yan > Yuguo and occupation standard, of stimulative innovation technology change > application, lead the development of industry and enterprise, promote the > market of > [url=[http://wpcdesigndeck.com/boat-deck/3100.html]discounted](http://forum.nim-lang.org///wpcdesigndeck.com/boat-deck/3100.html\]discounted) > portable temporary composite boards[/url] brand and service competition > ability, answer innovation and market quickly the demand to the standard, > form drive of governmental guiding, market, society to participate in, the > standardization job pattern that drives in coordination.
Re: Please , can we stop spams?
Last time investigations showed that spammers might be real human beings. The better solution is manual approval of new members, I think.
Re: Please , can we stop spams?
That's actually a good idea, and everyone could give it a shot [https://github.com/nim-lang/nimforum/pulls](https://github.com/nim-lang/nimforum/pulls)
Learn about wood plastics
Wood-plastic composite material (WPC) is a new kind of composite material which is booming at home and abroad in recent years. It refers to the use of polyethylene, polypropylene and polyvinyl chloride instead of ordinary resin adhesives, and wood powder, rice husk, straw and other waste Plant fiber mixed into a new wood material, and then by extrusion, molding, injection molding and other plastic processing technology to produce the plate or profile. Mainly used for building materials, furniture, logistics, packaging, interior decoration and other industries. Will be plastic and wood powder mixture by a certain percentage after the hot extrusion molding of the plate, known as the extrusion of wood-plastic composite sheet.[url=[http://7trust.com/wpc-products/affordable-outdoor-flooring-2/]affordable](http://forum.nim-lang.org///7trust.com/wpc-products/affordable-outdoor-flooring-2/\]affordable) outdoor flooring[/url] Wood-plastic materials due to a moisture-resistant, anti-moth-eaten, and other characteristics, for the storage industry to use the shelf plate, sleepers, paving beams, flooring and so on. In China, the storage industry, although the beginning of the application of wood-plastic materials, but the demand is increasing rapidly.[url=[http://7trust.com/green-product/inexpensive-patio-flooring/]Inexpensive](http://forum.nim-lang.org///7trust.com/green-product/inexpensive-patio-flooring/\]Inexpensive) Patio Flooring[/url] Wood-plastic composite materials, such as pavilions, chairs, flowerpots, trash cans, etc., which are waterproof, moisture-proof and anticorrosive, have long service life and low price. The wood-plastic composites are used for housing, outdoor flooring, composite pipes, , Cable protection products have been started in foreign countries started. I believe in the near future, the application of wood-plastic products will further expand.[url=[http://7trust.com/eco-friendly-products/eco-friendly-decking-material/]eco](http://forum.nim-lang.org///7trust.com/eco-friendly-products/eco-friendly-decking-material/\]eco) friendly decking material[/url]
nature floor exemple
It is with nature floor exemple. In July 2015, nature floor hand in hand famous and indoor stylist, architect wears China elder brother, the nature floor that rolled out [url=[http://outdoorwpcfloors.com/wpc-floors/9509.html]insulated](http://forum.nim-lang.org///outdoorwpcfloors.com/wpc-floors/9509.html\]insulated) wood sandwich deck[/url] what the crowd produces in facing to have individuation and design feeling extremely wears elder brother �� to design set; > Of the same age in August, nature is lived in hand in hand one of 10 big top > stylist of Hong Kong Liang Zhitian, roll out outfit of home of whole of > bridge annals day jointly. > [url=[http://timberoutdoordeck.com/outdoor-floor/1531.html]install](http://forum.nim-lang.org///timberoutdoordeck.com/outdoor-floor/1531.html\]install) > a composite deck on top of a flat roof[/url] Nature household vice-president > holds general manager of floor career department concurrently Lin Hao is > being accepted when interviewing, say frankly, the tide of the design is not > isolated, however of come down in one continuous line, popularize seriation > continuously, > [url=[http://outdoorwpcfloors.com/wpc-floors/792.html]24](http://forum.nim-lang.org///outdoorwpcfloors.com/wpc-floors/792.html\]24) > ft pool wear resistance deck design[/url] those who have design feeling is > new article, it is the strategic direction of the enterprise. Consumption is oriented gain tall cent with individual character,Actually, realise those who design importance, be not nature to live in an enterprise. This year, course of [url=[http://timberoutdoordeck.com/eco-deck/3827.html]identifying](http://forum.nim-lang.org///timberoutdoordeck.com/eco-deck/3827.html\]identifying) composite decking[/url] study of household building materials happens to coincide the ground is in " play a design " : From red star beauty 30 years of grand ceremony put forward triumphant dragon " for China the life is designed " ,
Re: Sequence is unchangeable when passed to a spawned proc
Ok, I have not yet worked with threads so far. I did not have anything yet that needed them. It could be that for spawn the sequence is copied for the parameter, and I just don't know it. But however spawn works, my explanation, why you can't modify the argument still holds. When I really want to know how things work, I look at the generated C code, that code can't lie or be out of date, but it can be quite hard to read. I think your original question is answered.