dsmith

Toronto, Canada

github.com/dsmith-to

Age: 46

I work professionally in the finance industry as a system architect and programmer, primarily in Java, C, C++.

I have a passion for functional programming and have been hacking in Erlang for some 8+ years.

Mar
1
revised Node.js or Erlang
added 77 characters in body
Jan
23
comment File IO and list processing
I modified the sample code to add an OS specific writeline/2 function since the Erlang formatter doesn't do it for us.
Jan
23
revised File IO and list processing
Change sample to make os specific writeline
Jan
23
comment File IO and list processing
There is some discussion about this here - stackoverflow.com/questions/13215033/… . It seams that is was "intended" to be platform specific, but was never implemented as such.
Jan
23
comment After adding and removing jars to my endorsed directories, Eclipse gives me errors on all projects
That where I expected to find it. But it's not there. Thanks.
Jan
23
comment File IO and list processing
@ace007 - I would have expected the ~n format to be platform agnostic. I don't have erlang running on a windows platform. You might want to look at io:nl/1 (erlang.org/doc/man/io.html#nl-0)
Jan
22
revised File IO and list processing
edited body
Jan
22
revised File IO and list processing
Added tests
Jan
22
answered File IO and list processing
Jan
22
comment File IO and list processing
Erlang's lists module does have a foreach function that is intended for processing side-effects on a list. You could look at that. I'll try put an answer together with some code examples.
Jan
22
asked After adding and removing jars to my endorsed directories, Eclipse gives me errors on all projects
Jan
2
awarded Nice Answer
Dec
16
comment Remembering user credentials in standalone Application
In that case, you cannot store passwords using cryptographic hash functions, since you will need to retrieve the clear password text. There are password managers like KeyPass and KeyPassX, but I believe they require a password to access, and may not have a Java API. If you do decide to store a file with the password in clear passwords, store it per-user under an access restricted directory. You haven't said what platforms you are supporting. Creating read-restricted files using Java7's java.nio.files is possible for POSIX based systems, but I'm not sure for Windows.
Dec
13
comment Remembering user credentials in standalone Application
Thanks C. Ross. I may have made an assumption.
Dec
13
comment Remembering user credentials in standalone Application
Yes, salting is always a good idea to deal with rainbow-tables. Cheers.
Dec
13
awarded Critic
Dec
13
awarded Editor
Dec
13
revised Remembering user credentials in standalone Application
fixed grammer, code formatting
Dec
13
answered Remembering user credentials in standalone Application
Sep
13
comment Is there a module that implements an efficient array type in Erlang?
Indeed. The array module uses a few tricks to extend array with 'undefined' unset indexes. It also appears to compress large expanses of 'undefined' elements.
1 2 3 4 5