Re: Derelict3 object.Error@(0): Access Violation?

2015-11-26 Thread Rikki Cattermole via Digitalmars-d-learn
On 27/11/15 8:48 PM, Alexander wrote: import std.stdio; import derelict.opengl3.gl3; import derelict.sdl2.sdl; pragma(lib, "DerelictUtil.lib"); pragma(lib, "DerelictGL3.lib"); pragma(lib, "derelictSDL2.lib"); void main(){ DerelictGL3.load(); DerelictGL3.reload(); //DerelictSDL

Derelict3 object.Error@(0): Access Violation?

2015-11-26 Thread Alexander via Digitalmars-d-learn
import std.stdio; import derelict.opengl3.gl3; import derelict.sdl2.sdl; pragma(lib, "DerelictUtil.lib"); pragma(lib, "DerelictGL3.lib"); pragma(lib, "derelictSDL2.lib"); void main(){ DerelictGL3.load(); DerelictGL3.reload(); //DerelictSDL2.load(); writeln("Fred is nigh

Re: Password Storage

2015-11-26 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Nov 27, 2015 at 03:09:38AM +, brian via Digitalmars-d-learn wrote: > On Friday, 27 November 2015 at 02:05:49 UTC, H. S. Teoh wrote: > ... > >At no time is the password ever sent over the network, encrypted or not. > > > >--T > So, I understand what you are trying to say, but I'm stuck o

Re: Password Storage

2015-11-26 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 27 November 2015 at 02:05:49 UTC, H. S. Teoh wrote: For authentication, the password shouldn't even be sent over the wire. Instead, the server (which knows the correct password) should send a challenge to the client Most web setups can't rely on that tho cuz of the lameness of clie

Re: Password Storage

2015-11-26 Thread BLM768 via Digitalmars-d-learn
On Friday, 27 November 2015 at 02:05:49 UTC, H. S. Teoh wrote: For authentication, the password shouldn't even be sent over the wire. Instead, the server (which knows the correct password) should send a challenge to the client (i.e., a large random number produced by a good RNG -- which is diff

Re: Multidimensional AA question

2015-11-26 Thread Nicholas Wilson via Digitalmars-d-learn
On Thursday, 26 November 2015 at 17:27:34 UTC, André wrote: Hi, I have a maybe trivial question on how to insert or update a given entry in a multidimensional AA. So I have this AA: /// language, chapter, section. Content is a magic struct Content[int][string][string] contentAA; In som

Re: Password Storage

2015-11-26 Thread brian via Digitalmars-d-learn
On Friday, 27 November 2015 at 02:05:49 UTC, H. S. Teoh wrote: ... At no time is the password ever sent over the network, encrypted or not. --T So, I understand what you are trying to say, but I'm stuck on the specifics of implementation, if you'll bear with me. For authentication, the passw

Re: Password Storage

2015-11-26 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Nov 27, 2015 at 12:17:32AM +, brian via Digitalmars-d-learn wrote: > I'm starting to build a small web-based application where I would like > to authenticate users, and hence need to store passwords. > > After reading this: > http://blog.codinghorror.com/youre-probably-storing-password

Re: Something about Chinese Disorder Code

2015-11-26 Thread magicdmer via Digitalmars-d-learn
On Thursday, 26 November 2015 at 09:59:01 UTC, Marc Schütz wrote: No, I'm talking specifically about the cast in there, not the call to setlocale(). Does it still work if you replace this: setlocale(0, cast(char*)"china"); by that: setlocale(0, "china"); ? yes Of course,it works we

Re: Password Storage

2015-11-26 Thread Alex Parrill via Digitalmars-d-learn
On Friday, 27 November 2015 at 00:50:25 UTC, brian wrote: Thanks for the blatant faux pas. I wasn't going to use MD5, I just meant "hash it somehow", which was not apparent from my question. My bad. Algorithm aside, the rest of that approach seems sensible then? The hash implementation was p

Re: Password Storage

2015-11-26 Thread brian via Digitalmars-d-learn
On Friday, 27 November 2015 at 00:42:09 UTC, Alex Parrill wrote: On Friday, 27 November 2015 at 00:17:34 UTC, brian wrote: I'm starting to build a small web-based application where I would like to authenticate users, and hence need to store passwords. After reading this: http://blog.codinghor

Re: Password Storage

2015-11-26 Thread Alex Parrill via Digitalmars-d-learn
On Friday, 27 November 2015 at 00:17:34 UTC, brian wrote: I'm starting to build a small web-based application where I would like to authenticate users, and hence need to store passwords. After reading this: http://blog.codinghorror.com/youre-probably-storing-passwords-incorrectly/ and many oth

Password Storage

2015-11-26 Thread brian via Digitalmars-d-learn
I'm starting to build a small web-based application where I would like to authenticate users, and hence need to store passwords. After reading this: http://blog.codinghorror.com/youre-probably-storing-passwords-incorrectly/ and many other posts that I zombie-surfed to from that page, I'm now fe

Re: Binding to GSL library

2015-11-26 Thread Andrew via Digitalmars-d-learn
On Wednesday, 25 November 2015 at 16:45:51 UTC, Radek wrote: i have found bug. It shoul be alias gsl_complex = _gsl_complex; not alias gsl_complex = _gsl_complex*; On Wednesday, 25 November 2015 at 16:35:06 UTC, drug wrote: A little bit offtopic but do you know about https://github.com/abrown25

Re: dstep problem: "fatal error: 'limits.h' file not found"

2015-11-26 Thread Jacob Carlborg via Digitalmars-d-learn
On 2015-11-26 10:55, Joseph Rushton Wakeling wrote: OK, I'll do that this evening once I've had an opportunity to check the workaround etc. Thanks! Of course, a pull request is even more welcome. Should be very simple to fix. -- /Jacob Carlborg

Re: Binding to GSL library

2015-11-26 Thread Artur Skawina via Digitalmars-d-learn
On 11/25/15 17:11, Radek via Digitalmars-d-learn wrote: > Hi, I'm making a trying to bind a gsl library > http://www.gnu.org/software/gsl/ so far it was working but when i started > binding complex numbers some functions won't work, like trigonometric > functions - called they return null. > >

Multidimensional AA question

2015-11-26 Thread André via Digitalmars-d-learn
Hi, I have a maybe trivial question on how to insert or update a given entry in a multidimensional AA. So I have this AA: /// language, chapter, section. Content is a magic struct Content[int][string][string] contentAA; In some part of my code I want to either add a complete new entry

Re: optlink windows warning 178

2015-11-26 Thread Luis via Digitalmars-d-learn
On Thursday, 26 November 2015 at 11:00:28 UTC, SpacenJasset wrote: Hello, I am trying to build against the version 3.2.1 of gtk bindings in the dub repository. The build system has built the gtkd-3.lib library file, but doesn't not appear to want to link it to anything else. It gets stuck for

optlink windows warning 178

2015-11-26 Thread SpacenJasset via Digitalmars-d-learn
Hello, I am trying to build against the version 3.2.1 of gtk bindings in the dub repository. The build system has built the gtkd-3.lib library file, but doesn't not appear to want to link it to anything else. It gets stuck forever linking, but issues this warning: ..\..\Users\J.Spashett\App

Re: Something about Chinese Disorder Code

2015-11-26 Thread Marc Schütz via Digitalmars-d-learn
On Thursday, 26 November 2015 at 01:59:12 UTC, magicdmer wrote: On Wednesday, 25 November 2015 at 12:33:00 UTC, Marc Schütz wrote: On Wednesday, 25 November 2015 at 04:09:29 UTC, magicdmer wrote: On Tuesday, 24 November 2015 at 19:41:12 UTC, Marco Leise wrote: Am Tue, 24 Nov 2015 17:08:33 +000

Re: dstep problem: "fatal error: 'limits.h' file not found"

2015-11-26 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On Thursday, 26 November 2015 at 07:28:37 UTC, Jacob Carlborg wrote: Hmm, I was pretty sure I fixed this, but perhaps not for that file. Please report an issue. In the meantime there's a workaround in the documentation [1], second paragraph, perhaps not very clear though. [1] https://github.c

Re: Program exited with code -11

2015-11-26 Thread Alex via Digitalmars-d-learn
On Thursday, 26 November 2015 at 08:15:02 UTC, Rikki Cattermole wrote: You forgot to load the pointers to the functions in the shared library :) https://github.com/DerelictOrg/DerelictSFML2 OMG. I am embarrassed. Thank you very much.

Re: Program exited with code -11

2015-11-26 Thread Rikki Cattermole via Digitalmars-d-learn
On 26/11/15 9:12 PM, Alex wrote: Hello guys. I am beginner with D and a hobbyist in general when it comes to programming. I am following an SFML tutorial in C++ and trying to "translate it" to D (at least the parts I think I understand). I am using Derelict SFML2 bindgings to CSFML. First I tri

Program exited with code -11

2015-11-26 Thread Alex via Digitalmars-d-learn
Hello guys. I am beginner with D and a hobbyist in general when it comes to programming. I am following an SFML tutorial in C++ and trying to "translate it" to D (at least the parts I think I understand). I am using Derelict SFML2 bindgings to CSFML. First I tried to do it procedural way and