Re: WebConfig - a vibe.d HTML form generator & validator from D structs

2017-07-21 Thread NVolcz via Digitalmars-d-announce

On Thursday, 20 July 2017 at 15:57:55 UTC, WebFreak001 wrote:
I just released a vibe.d library that allows you to turn any D 
struct into an editable HTML5 compatible form with live JS 
updates but also normal no-JS updates with nearly the same 
experience. It basically feels like you don't need to write any 
boilerplate HTML code anymore but instead write D and show your 
D code with a fancy mask automatically to the user. 
Additionally it handles all the validation for you so you can 
be sure that anything the user couldn't type in into the HTML 
frontend won't be stored inside the backend struct (validation 
& some corrections for all HTML5 input types).





I am getting OpenSSL linker errors when I run "dub test":
https://gist.github.com/NVolcz/d1731f92622b018e1cebbc42b195028c


Re: Pixel Perfect Engine (formerly known as VDP-Engine) version 0.9.1-rc1 released

2017-01-21 Thread NVolcz via Digitalmars-d-announce

On Friday, 20 January 2017 at 23:15:51 UTC, solidstate1991 wrote:

Github: https://github.com/ZILtoid1991/pixelperfectengine




Any screenshots?



Re: Tutorial: Form upload in vibe.d

2016-12-11 Thread NVolcz via Digitalmars-d-announce

On Saturday, 10 December 2016 at 17:39:20 UTC, aberba wrote:

On Thursday, 8 December 2016 at 20:48:52 UTC, NVolcz wrote:

On Tuesday, 6 December 2016 at 22:28:04 UTC, aberba wrote:

[...]


Love the article! Please keep writing tutorials like this :-D.

Feedback:
1.
The upload function is (kind of) vulnerable against path 
traversal:
  moveFile(file.tempPath, Path("./public/uploads") ~ 
file.filename);


[...]


Thanks for feedback. Will consider those points raised in 
thought. Will add more advanced stuff and security as time goes 
on.


Please fix the security vulnerability for this tutorial as well 
in case someone copy pastes the code.


Re: Tutorial: Form upload in vibe.d

2016-12-08 Thread NVolcz via Digitalmars-d-announce

On Tuesday, 6 December 2016 at 22:28:04 UTC, aberba wrote:

https://aberba.github.io/2016/form-upload-in-vibe-d/u


Love the article! Please keep writing tutorials like this :-D.

Feedback:
1.
The upload function is (kind of) vulnerable against path 
traversal:
  moveFile(file.tempPath, Path("./public/uploads") ~ 
file.filename);


If a file named "../SomeOtherFile.htm" is uploaded the server 
will hit this assert:

https://github.com/rejectedsoftware/vibe.d/blob/master/core/vibe/core/path.d#L426
Denail of Service attack!

When the application is compiled with the release flag the assert 
will be omitted and the path traversal will work.


2.
It would be more beginner friendly if you also described how to 
add the upload function to the router.


3.
Your github link on the left side is broken. Discovered this when 
I was looking for a zip with the finished code.


Re: Diet-NG 1.0.0 released

2016-09-25 Thread NVolcz via Digitalmars-d-announce

On Saturday, 24 September 2016 at 13:04:01 UTC, WebFreak001 wrote:
On Friday, 23 September 2016 at 11:47:23 UTC, Sönke Ludwig 
wrote:
The Diet template language is aimed at providing a way to 
define procedurally generated HTML/XML pages (or other output 
formats), with minimal visual noise. Syntax and feature set 
are heavily inspired by pug , but instead 
of JavaScript, all expressions and statements are D 
statements, and everything that can be done at compile-time is 
done at compile-time.


Cool, does it also work for generating diet -> html at runtime 
without inline D code? Would be pretty neat to have for static 
pages.


I'm working on a small framework for that, inspired by Jekyll.


Re: Diet-NG 1.0.0 released

2016-09-23 Thread NVolcz via Digitalmars-d-announce

On Friday, 23 September 2016 at 11:47:23 UTC, Sönke Ludwig wrote:
The Diet template language is aimed at providing a way to 
define procedurally generated HTML/XML pages (or other output 
formats), with minimal visual noise. Syntax and feature set are



I would like to see a html to diet converter for easy migration. 
(I'm working on one)




Re: [GSoC] std.experimental.xml is now a PR!

2016-08-28 Thread NVolcz via Digitalmars-d-announce
On Wednesday, 24 August 2016 at 09:31:44 UTC, Lodovico Giaretta 
wrote:

Hi!

I'm pleased to announce that my GSoC project, a replacement for 
the outdated std.xml, is now a Phobos PR! [1] It is an (almost 
complete) mirror of my repository [2], which is also available 
on DUB [3].


I would like to thank my mentor Robert burner Schadek for his 
great support and everybody who already gave some feedback 
during these months.


The PR is not meant for immediate merging. Some things still 
need improvement (docs/unittests/...) while others will come in 
a second iteration (advanced DTD handling). It is meant to for 
some reviews, focusing mainly on the design and usability of 
the library.


In the PR description you will find all the details, including 
a nice "wishlist" of things that I found missing in D during 
the development and some open questions.


So, if you have any consideration/suggestion, drop a line here 
or on the PR, and if you find bugs, don't hesitate to file an 
issue on the issue tracker of my repository.


Thank you very much!

[1] https://github.com/dlang/phobos/pull/4741
[2] https://github.com/lodo1995/experimental.xml
[3] https://code.dlang.org/packages/std-experimental-xml


I like the new cursor API very much since it enables new use 
cases that are were hard to do with the old API. Thanks for your 
hard work!


Examples are a bit scares. I like the way Phobos documents every 
functions with an unittest/example. I'm all for that!


Another thing I encountered some days ago was that the default 
error handler is using asserts to signal error. 
https://github.com/lodo1995/experimental.xml/issues/30
It is not obvious from the API that you're required to have a 
error handler.

Two ideas:
Use exceptions instead of asserts. This way it is recoverable in 
the default use case.

Require a error handler in the constructor.


Re: blog post - "An illustrated guide to using Sublime Text 3 for D programming"

2016-01-22 Thread NVolcz via Digitalmars-d-announce

On Friday, 22 January 2016 at 04:39:00 UTC, Pradeep Gowda wrote:
Sublime text 3 is a decent editor to write D code. However, 
getting all the different plugins working together has always 
proven to be somewhat of a challenge for me. So, I decided to 
document the process as I went along.


The result is here: https://www.btbytes.com/posts/st3d.html

Comments are suggestions are welcome.


Would love to see a tutorial on setting up the SublimeGDB plugin 
for D code! And/or tutorials on other tools for debugging :-)





Re: Atrium - 3D game written in D

2015-11-06 Thread NVolcz via Digitalmars-d-announce

On Friday, 6 November 2015 at 09:04:05 UTC, Timur Gafarov wrote:
Atrium (code name) is a work-in-progress science fiction game 
with physics based puzzles (gravity effects, force fields, etc) 
akin to Portal or Inverto. The game is fully written in D, it 
uses custom graphics engine based on OpenGL and SDL. Physics 
engine is also written from scratch.


Source code:
https://github.com/gecko0307/atrium

IndieDB page:
http://www.indiedb.com/games/atrium

A precompiled demo for Windows:
https://www.dropbox.com/s/qh8gai2n94qe8jj/atrium-testbuild-051115.zip?dl=0


Very cool!
How have it been to work with the GC?
Reddit it! Maybe with an writeup?


Re: Beta D 2.069.0-b1

2015-10-08 Thread NVolcz via Digitalmars-d-announce

On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak wrote:

First beta for the 2.069.0 release.

http://dlang.org/download.html#dmd_beta 
http://dlang.org/changelog/2.069.0.html


Please report any bugs at https://issues.dlang.org

-Martin


The changelog links to:
http://dlang.org/phobos/std_experimental_allocator.html
which returns 404 for me.
I remember seeing discussions about versioning the docs. What 
happened to that?


Re: This Week in D summarizes those long threads for you!

2015-08-25 Thread NVolcz via Digitalmars-d-announce

On Monday, 24 August 2015 at 16:09:46 UTC, Adam D. Ruppe wrote:

/snip
This Week in D has the argument over export/Object.factory, the 
if(array) thread, dmd codegen, and the official switch to ddmd!


http://arsdnet.net/this-week-in-d/aug-23.html
/snip


Speaking of giving the ldc and gdc recognition. Wouldn't it be 
neat to have statistics for them to in This Week in D?
IMO it would also be interesting to graph the statistics to be 
able to read the trends.






Re: This Week in D #7 - summary of reference counting discussion

2015-03-03 Thread NVolcz via Digitalmars-d-announce

On Monday, 2 March 2015 at 04:19:08 UTC, Adam D. Ruppe wrote:
This was a very active week on the forums, though most of it 
was centered around DIP74 and its satellite discussions, 
leading to a somewhat thin newsletter.


http://arsdnet.net/this-week-in-d/mar-01.html

https://twitter.com/adamdruppe/status/572249079352299520


Would be nice to have it link somewhere for discussions. E.x 
Reddit or the forums.


Re: DDocs.org: auto-generated documentation for all DUB projects (WIP)

2015-02-10 Thread NVolcz via Digitalmars-d-announce

On Tuesday, 10 February 2015 at 22:40:18 UTC, Kiith-Sa wrote:
DDocs.org (http://ddocs.org) is a repository of documentation 
for DUB projects that automatically re-generates docs as new 
projects/releases/branch changes are added.

Killer project! Nice work!