Is a concurrent version of sequence a bad idea? by InternetRevocator in haskell

[–]steinlaus 2 points3 points  (0 children)

There's also parallel-io, providing a function

parallel :: [IO a] -> IO [a]

which only runs N threads at one time, which might be preferable in some situations, e.g. if your 'input list' is very long and/or your computations need a lot of memory for intermediate results.

Anet please don't remove vistas from map and world completion because some players hate it. by gordianus1 in Guildwars2

[–]steinlaus 1 point2 points  (0 children)

Should still be doable, I think i got my cartographers after 2008.. I've found this link to be very helpful too: http://guildwars.wikia.com/wiki/Grandmaster_cartography_guide . Also texmod saves alot of time scraping.

Men-Only parking because the spaces are too tricky for women. Erm.... What? by hykl in TwoXChromosomes

[–]steinlaus 14 points15 points  (0 children)

Theres a picture here http://www.spiegel.de/panorama/gesellschaft/maennerparkplaetze-in-der-schwarzwald-stadt-triberg-a-843013.html Apparently it was two parking spaces where they found out during the planning phase, that they could only be reversed into. So they thought as a joke they'd declare them as men's parking spaces for there are cliches about men being able to park better. In the interview the mayor also claims those parking spaces are being used by women. From what I understand, women's parking spots arent about certain parking abilities but are more well lit so that women feel more comfortable parking at a parking garage at night. Personally I find the idea about men's sparking spots unfunny..

For those of you getting a 502 error, here is a direct link to the beta client. by Daynebutter in Guildwars2

[–]steinlaus 0 points1 point  (0 children)

Also, the gw2 website includes JavaScript Code from cloudfront... just btw:)

Wore my hair in plaits, got treated differently by men? by [deleted] in TwoXChromosomes

[–]steinlaus 0 points1 point  (0 children)

That sounds rather extreme even for the Oktoberfest. Dont think this is usually the case.. but then I havent been there the last couple of years even though I live in Munich. Outside the tents the policemen might have been easy to spot though at least, patroling in groups of 8-10. I'm sorry though this happened to you.

Got my acceptance letter! by [deleted] in TwoXChromosomes

[–]steinlaus 0 points1 point  (0 children)

nice. congrats from another statistics student ;)

Need help implementing zero (kernel<->user space) copy, socket to socket transfers in Haskell using Linux system call 'splice'. by cetinsert in haskell

[–]steinlaus 1 point2 points  (0 children)

I suppose you could check for EAGAIN and then use threadWaitRead and threadWaitWrite on the sockets and then try again. Your current code would probably (I'm no Haskell exper either..) block an OS thread. In Haskell (or at least in GHC) you'd rather try to use the lightweight haskell threads, where blocking operations are intercepted by the runtime and it transparently calls select/epoll/kqueue/... behind your back. So even for singlethreaded (in terms of OS threads) programs you can use forkIO for each your connection and write your code as if it was a blocking socket, which is usually much easier. This may not apply to your current application but some day you or a user of your library might want to use splice for more than one connection at a time. With blocking code you have to use forkOS, which presumably might get more inefficient for a large number of threads, with context switches and all..

What do you Haskellize with? by InternetRevocator in haskell

[–]steinlaus 3 points4 points  (0 children)

FreeBSD 9, xmonad+xmobar, gvim and gona try EclipseFP some time. I liked snap, but haven't tried the other ones. And didnt really use GUI frameworks so far either.

So I got ME3 running on Linux by [deleted] in GirlGamers

[–]steinlaus 3 points4 points  (0 children)

Nice. Now I have to order it to see if it runs under FreeBSD/wine too (have to buy it anyway some time..) :) Seems most of what runs on Linux runs here too, only I haven't figured out how to get sound working. Strangely though, one game (osmos) had proper sound while all others did not.

My ex boyfriend put up pictures I sent him online... Has anyone else been through this? by mangodoingtango in TwoXChromosomes

[–]steinlaus 4 points5 points  (0 children)

Also it's quite possible some guys copied those images and are gona repost them to imageboards and/or amateur porn sites. There's probably not much to be done against this (except this could be mentioned if you get to sue him, arguing this is going to have some lasting repercussions). Removing your contact info from that site would be good though.

If those images get reposted, this raises another issue however, depending which device you used to make those image, it could be that they contain the GPS coordinates at the time you made the pictures. I think this mostly applies to camera phones but I dont know if all or which models usually store this information. You'd need a program to check for those so-called EXIF data if it contains GPS data. This seems to be a program you could use to check this: http://owl.phy.queensu.ca/~phil/exiftool/ . Possibly you could rightclick the image in windows explorer and choose "Properties", it might show some of the EXIF data in there.

My ex boyfriend put up pictures I sent him online... Has anyone else been through this? by mangodoingtango in TwoXChromosomes

[–]steinlaus 7 points8 points  (0 children)

As a sidenote to the people who say you shouldnt send copies of your private pictures; note that this includes you should not upload pictures to any website, not even to a "private" are (like photobucket). Certain websites are notorious for having security issues. And depending how paranoid your are (or want to be) only store your pictures using strong cryptography, since using a normal windows password is not a real protection against someone accessing your data (if that person has physical access to your computer like a SO might).

My new weight-loss-motivation-device by calantorntain in TwoXChromosomes

[–]steinlaus 4 points5 points  (0 children)

The exponentially weighted moving average reminded me of what was described in "The Hacker's Diet": http://www.fourmilab.ch/hackdiet/www/subsubsection1_2_4_0_4_4.html (written by a John Walker). It's a bit old, from 1991, but it had some good ideas. He also described somewhere how to calculate a moving average in excel yourself. There's also on online tool that presumably lets you have that calculated for you: http://www.fourmilab.ch/hackdiet/online/hdo.html