Dmitri O.Kondratiev wrote:
> It would also help to see a simple example of parsing "10/11/2009 7:04:28
> PM" to time and date objects.
Let's assume that 10/11/2009 means October 11, as in the U.S.
Then you can use:
import System.Locale (defaultTimeLocale)
import Data.Time
thatMoment :: Maybe UT
I don't know about the other Linux distros, but Fedora seems to have excellent
support for Haskell.
Michael___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2011/6/15 Dmitri O.Kondratiev
>
>
> On Wed, Jun 15, 2011 at 2:34 AM, Henning Thielemann
> wrote:
>>
>> On Wed, 15 Jun 2011, Dmitri O.Kondratiev wrote:
>>
>>> Which platform - Mac OS X, Linux or Win32 is best for development with GHC
>>> today?
>>> How are things with Ubuntu? It was quite a whil
On Wed, Jun 15, 2011 at 2:34 AM, Henning Thielemann <
lemm...@henning-thielemann.de> wrote:
>
> On Wed, 15 Jun 2011, Dmitri O.Kondratiev wrote:
>
> Which platform - Mac OS X, Linux or Win32 is best for development with GHC
>> today?
>> How are things with Ubuntu? It was quite a while already that
On Wed, 15 Jun 2011, Dmitri O.Kondratiev wrote:
Which platform - Mac OS X, Linux or Win32 is best for development with GHC
today?
How are things with Ubuntu? It was quite a while already that I used Haskell on
Linux. Today I have to code on Win32 and Mac OS
X. Installing extra libraries caus
Which platform - Mac OS X, Linux or Win32 is best for development with GHC
today?
How are things with Ubuntu? It was quite a while already that I used Haskell
on Linux. Today I have to code on Win32 and Mac OS X. Installing extra
libraries caused most of the pains for me on Win32 - for example GTK
Magnifique, ca marche! Grand merci, Vincent!
On Wed, Jun 15, 2011 at 1:16 AM, Vincent Gerard wrote:
> Hello Dmitri,
>
> It seems that your format pattern does not match exactly the format of
> the input, thus the parser returns Nothing.
>
> Try the following format string which seems to work wi
Hello Dmitri,
It seems that your format pattern does not match exactly the format of
the input, thus the parser returns Nothing.
Try the following format string which seems to work with your date:
parseTime defaultTimeLocale "%m/%d/%Y %l:%M:%S %p" ds :: Maybe
UTCTime returns : Just 2009-10-11 19
On Tue, 14 Jun 2011 22:33:56 +0200, Dmitri O.Kondratiev
wrote:
I am trying to convert data string to time:
import Data.Time
import Data.Time.Format
import Locale
ds = "10/11/2009 7:04:28 PM"
t = parseTime defaultTimeLocale "%D %H:%M:%S %p" ds :: Maybe UTCTime
and get "Nothing".
What is wr
I am trying to convert data string to time:
import Data.Time
import Data.Time.Format
import Locale
ds = "10/11/2009 7:04:28 PM"
t = parseTime defaultTimeLocale "%D %H:%M:%S %p" ds :: Maybe UTCTime
and get "Nothing".
What is wrong?
Thanks !
Dmitri.
__
On 14/06/2011 01:41 PM, Dmitri O.Kondratiev wrote:
Yes, thanks. I just wonder why documentation for this particular module
(Data.Time) is missing from GHC, 7.0.3 "Haskell Hierarchical Libraries"
documentation generated for Win32. Really strange ...
There are several packages that come with GHC,
On Tue, Jun 14, 2011 at 4:26 AM, Simon Marlow wrote:
> On 12/06/2011 20:17, Jason Dagit wrote:
>>
>> On Sun, Jun 12, 2011 at 11:45 AM, Brandon Allbery
>> wrote:
>>>
>>> On Sun, Jun 12, 2011 at 14:31, Jason Dagit wrote:
If I build the C library as a .a, then ghci comlains that it cannot
Ah, I see how you could interpret what he wrote the way you describe.
If that's what Nikita has meant, then that's all fine. Hope there's no
harm in reminding this basic truth - better be safe than sorry! :)
D.
On Tue, Jun 14, 2011 at 15:00, Kevin Jardine wrote:
> When I review the original post
Correction: the version in monte-carlo takes time O(n), but it only consumes k
random numbers. The streaming algorithm consumes n random numbers.
On Jun 14, 2011, at 12:04 PM, Patrick Perry wrote:
> There are time/space tradeoffs in sampling without replacement. The version
> in monte-carlo t
There are time/space tradeoffs in sampling without replacement. The version in
monte-carlo takes space O(n) and time O(k), for all k. I chose this algorithm
instead of a streaming algorithm, with takes space O(k) and time O(n).
If k is much less than n, you can improve a bit. Here is a versio
2011/6/14 Michael Steele :
>>Actually, that's not entirely accurate. The Yesod scaffolding tool
>>generates a site that uses mime-mail and sendmail, but there's nothing
>>inherent in yesod-auth requiring either.
> My apologies for adding to the confusion. I see now that
> Yesod.Auth.Email handles d
Superb; on how to avoid boxing.
On Tue, Jun 14, 2011 at 7:51 AM, Daniel Fischer
wrote:
> On Tuesday 14 June 2011, 15:51:57, Daniel Fischer wrote:
>> On Tuesday 14 June 2011, 14:35:19, Johannes Waldmann wrote:
>
>>
>> With id, main1 jumps to foldb_cap, which contains a lot of code for the
>> (cap
On 06/14/2011 04:51 PM, Daniel Fischer wrote:
> Note that you get good behaviour when you help GHC a bit, in particular a
> static argument transformation
Great! And just in time for my lecture ... - Thanks, J.W.
signature.asc
Description: OpenPGP digital signature
_
When I review the original post I see only a question:
Does passwords
stored in a database in an unencrypted form?
rather than a request.
So I'm not sure that was the intent.
I'm amazed that anyone (Sony!!!?) would store unencrypted passwords of
course.
Kevin
On Jun 14, 10:21 am, cheater chea
On Tuesday 14 June 2011, 15:51:57, Daniel Fischer wrote:
> On Tuesday 14 June 2011, 14:35:19, Johannes Waldmann wrote:
>
> With id, main1 jumps to foldb_cap, which contains a lot of code for the
> (cap > 1)-branch, and - that's what causes the slowdown - a worker loop
>
> $s$wfoldlM'_loop_s3EE [
On 06/14/2011 04:42 PM, KC wrote:
> How is the compiler to know the else branch is never executed at run-time?
> If you do, then why is it there in your source code?
The algorithm is divide-and-conquer, and I want to create sparks
as long as I have cores (capabilities), and use the linear
algorith
How is the compiler to know the else branch is never executed at run-time?
If you do, then why is it there in your source code?
On Tue, Jun 14, 2011 at 7:35 AM, Johannes Waldmann
wrote:
> Thanks for the analysis.
>
> So is this a problem that should be fixed in GHC?
>
> And what can I do to cir
Thanks for the analysis.
So is this a problem that should be fixed in GHC?
And what can I do to circumvent the problem?
(Perhaps write some RULES magic?)
Thanks - J.W.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mai
On Tuesday 14 June 2011, 14:35:19, Johannes Waldmann wrote:
> Dear all,
>
> I am very puzzled by a program that contains
> an "else" branch that is never executed,
> but still seems to slow down the program.
> (When I replace it by "undefined", the resulting program runs much
> faster.) http://hac
It would also help to see a simple example of parsing "10/11/2009 7:04:28
PM" to time and date objects.
On Tue, Jun 14, 2011 at 4:41 PM, Dmitri O.Kondratiev wrote:
> Yes, thanks. I just wonder why documentation for this particular module
> (Data.Time) is missing from GHC, 7.0.3 "Haskell Hierarch
Yes, thanks. I just wonder why documentation for this particular module
(Data.Time) is missing from GHC, 7.0.3 "Haskell Hierarchical Libraries"
documentation generated for Win32. Really strange ...
On Tue, Jun 14, 2011 at 4:10 PM, Dmitry Olshansky wrote:
> Could you look at
> http://hackage.haske
Dear all,
I am very puzzled by a program that contains
an "else" branch that is never executed,
but still seems to slow down the program.
(When I replace it by "undefined", the resulting program runs much faster.)
http://hackage.haskell.org/trac/ghc/ticket/5256
I thought it may be a type issue
Could you look at
http://hackage.haskell.org/packages/archive/time/1.2.0.5/doc/html/Data-Time-Format.html
?
Is it enough?
2011/6/14 Dmitri O.Kondratiev
> Sorry for typo - I need subtract dates (no 'abstracting') :
>
>
> On Tue, Jun 14, 2011 at 3:49 PM, Dmitri O.Kondratiev wrote:
>
>> It looks
Sorry for typo - I need subtract dates (no 'abstracting') :
On Tue, Jun 14, 2011 at 3:49 PM, Dmitri O.Kondratiev wrote:
> It looks like GHC, 7.0.3 "Haskell Hierarchical Libraries" documentation
> generated for Win32, that goes with Haskell Platform installation package,
> does not have a section
It looks like GHC, 7.0.3 "Haskell Hierarchical Libraries" documentation
generated for Win32, that goes with Haskell Platform installation package,
does not have a section on Data.Time module.
How can that be?
I need to convert a string of the form ",10/11/2009 7:04:28 PM" to Haskell
type that can
I had the same thought, since my interval [1..1] is rather large.
Thanks,
MIchael
--- On Tue, 6/14/11, Jonas Almström Duregård wrote:
From: Jonas Almström Duregård
Subject: Re: [Haskell-cafe] Acquiring a random set of a specific size (w/o
dups) from a range of Ints
To: "michael rice"
Cc:
On 12/06/2011 20:17, Jason Dagit wrote:
On Sun, Jun 12, 2011 at 11:45 AM, Brandon Allbery wrote:
On Sun, Jun 12, 2011 at 14:31, Jason Dagit wrote:
If I build the C library as a .a, then ghci comlains that it cannot
open the .dylib. My first question is: Why does ghci need a .dylib
and does i
> Shuffle [1..20], then take 5?
> Yes, so simple, I'm embarrassed I didn't think of it.
That works well for small numbers, but I'm guessing it will evaluate the
entire list so it should not be used for large inputs. If you have a large
interval and use a relatively small part of it, the following
It now appears to have been fixed. Thanks.
On Sun, Jun 12, 2011 at 01:13, Karel Gardas wrote:
> On 06/11/11 09:37 PM, Edward Z. Yang wrote:
>>
>> Yes, the tree was broken for some time between yesterday and today, and
>> you
>> appear to have gotten unlikely. It should have been fixed now, so yo
I am surprised out of the whole list no one has stormed down on Nikita
for wanting to store passwords as plain text.
Nikita: never store passwords in plain text. Ever.
D.
On Mon, Jun 13, 2011 at 09:34, Никита Тимофеев wrote:
> Does exist some simple examples using yesod authentication except co
35 matches
Mail list logo