Commented 11 years ago2013-10-12 12:55:35 UTC
in journal: #8265Comment #50944
well the speel that our tutor was going on about is that Haskell is a functional language, that it's not object oriented. It's also lazy - ie intelligent, it can figure out a lot of things on its own - but an example of this is like zipping ( putting things from a list and another list together to make a list of pairs ) a small list with an infinite list. Any other language would have to compute the infinite list before zipping it to a small one, whereas haskell will only compute it to the point it needs to.
It's also apparently becoming more prelevant as haskell is very good with multi-core processors and parallel computing, so it's faster than other languages.
Commented 11 years ago2013-10-12 11:32:56 UTC
in vault item: FallingliquidComment #19836
Kasperg, I remember those days when you were making these creative and unconventional HL1 maps.
This "Falling Water" simulation was one of my favorites.
When I extracted the files, I can see the mod in the Steam library, and I can start the mod. But once in the mod, the background texture is missing and I cannot start a new game.
Commented 11 years ago2013-10-12 01:52:34 UTC
in journal: #8265Comment #50945
Never heard of this language! I wish we could upload knowledge like this to our brains, i have no patience/drive to learn coding, yet i would love to know how, good luck! =P
Commented 11 years ago2013-10-12 01:47:30 UTC
in journal: #8266Comment #40329
oh cool it's all one piece, neat =)
The only downside i can see to them is adjusting the wrist size, other than that they look way more comfortable thatn plastic/rubber, and they look cool, well done! =)
And yeah, the images are gigantic. Surprising ImageShack will let you upload images that big.. have a heart for us non-broadband-surfing peeps =)
Commented 11 years ago2013-10-11 08:19:08 UTC
in journal: #8265Comment #50943
Learn You A Haskell is exactly what i'm reading, and with some thought I actually got to that.
the real issue was I had no idea how to do rotate, to which after some thinking I got
rotate :: Int -> [Char] -> [Char] rotate a xs | a >= 1 && a <= (length xs) = (drop a xs) ++ (take a xs)
| a < 0 = error "the number is negative JUST LIKE YOUR OUTPUT ON LIFE"
| a > (length xs) = error "your rotation is too large LIKE YOUR MOTHER"
| otherwise = xs
to which I could do
makeKey :: Int -> [(Char, Char)] makeKey rotateChar = zip ['A'..'Z'] (rotate rotateChar ['A'..'Z'])
there's some other stuff I can't do but I guess that's what these tutorial sessions are for.
To attach the watch, stop brading the knots half way across the bracelet. Remove your watch band pins and bands, then place the two middle pieces of paracord under the pins and replace the pins. This may be tough to fit them under and you may have to slightly bend the pins with pliers. Once the watch face is in place continue brading, the first knot after the watch face is actually opposite from the pattern, to make the knots jump across the watch horizontally, you'll understand when you learn to tie the knots. The rest is explained in the video.
This is all how to do it with one strand/color. To do it with multiple colors like my grey and black one search multiple color paracord bracelet on youtube. The rest applies.
Edit: Looks like you've already got a rotate function from a previous exercise, with that method the general process would be something like this:
1. Get list of characters from A-Z: ['A'..'Z']
2. You want to create pairs for each item in the list: ('A', rotate 'A' 5)
3. So, you have the list and the method that converts each item in the list into the result you want. This is called a map, or I think the Haskell term is `list comprehension`: [(x, rotate x 5) | x <- ['A'..'Z']]
4. Put it in a function , change 5 to an input parameter: makeKey n = [(x, rotate x n) | x <- ['A'..'Z']]
As I said I don't know Haskell so sorry if this is misleading or incorrect! Also I'm not passing your course for you so don't expect me to give you all your answers
I'm sure you've already come across this but I hear Learn You A Haskell is a great way to learn the language.
Commented 11 years ago2013-10-10 03:29:28 UTC
in journal: #8264Comment #38736
I don't really see how it can be a scam, or what the harm is in responding to it. All it's asking is if this website is or is not associated with the company in question, because they share the name... Simple misunderstanding.
Commented 11 years ago2013-10-10 03:06:12 UTC
in journal: #8264Comment #38733
"Hide email" works wonders.
Since they already have your email, you could very well reply saying they're not associated with you, to see if it's legit and where it takes you. Just change your name if your address isn't it, and you're set.
Commented 11 years ago2013-10-09 07:46:52 UTC
in vault item: ar_karostaComment #19834
Diemžel nevaru noladet un apskatities ka izskatas spele, bet pec skrina jau var redzet, ka Karostas standarta bloku majas ir atspogulotas diezgan precizi. Pats esi no Liepajas?
I wanted the calculator watch when I was in school
It's also apparently becoming more prelevant as haskell is very good with multi-core processors and parallel computing, so it's faster than other languages.
but it's also a bitch and nobody uses it
This "Falling Water" simulation was one of my favorites.
When I extracted the files, I can see the mod in the Steam library, and I can start the mod. But once in the mod, the background texture is missing and I cannot start a new game.
The only downside i can see to them is adjusting the wrist size, other than that they look way more comfortable thatn plastic/rubber, and they look cool, well done! =)
And yeah, the images are gigantic. Surprising ImageShack will let you upload images that big.. have a heart for us non-broadband-surfing peeps =)
the real issue was I had no idea how to do rotate, to which after some thinking I got
rotate :: Int -> [Char] -> [Char]
rotate a xs | a >= 1 && a <= (length xs) = (drop a xs) ++ (take a xs) to which I could do
makeKey :: Int -> [(Char, Char)]
makeKey rotateChar = zip ['A'..'Z'] (rotate rotateChar ['A'..'Z'])
there's some other stuff I can't do but I guess that's what these tutorial sessions are for.
Or, you know, maybe TWHL shouldn't show it to users that aren't logged in.
Video
To attach the watch, stop brading the knots half way across the bracelet. Remove your watch band pins and bands, then place the two middle pieces of paracord under the pins and replace the pins. This may be tough to fit them under and you may have to slightly bend the pins with pliers. Once the watch face is in place continue brading, the first knot after the watch face is actually opposite from the pattern, to make the knots jump across the watch horizontally, you'll understand when you learn to tie the knots. The rest is explained in the video.
Here's how it should look from below
This is all how to do it with one strand/color. To do it with multiple colors like my grey and black one search multiple color paracord bracelet on youtube. The rest applies.
Where did you get the watch parts, and what kind of process do you go through to braid and attach the cord?
On the other hand...if you don't give up, you should learn certain concepts much faster
I don't know Haskell, but here's a JavaScript solution in case that helps
Click for JSFiddle
Edit: Looks like you've already got a
rotate
function from a previous exercise, with that method the general process would be something like this:1. Get list of characters from A-Z:
['A'..'Z']
2. You want to create pairs for each item in the list:
('A', rotate 'A' 5)
3. So, you have the list and the method that converts each item in the list into the result you want. This is called a
map
, or I think the Haskell term is `list comprehension`:[(x, rotate x 5) | x <- ['A'..'Z']]
4. Put it in a function , change 5 to an input parameter:
makeKey n = [(x, rotate x n) | x <- ['A'..'Z']]
As I said I don't know Haskell so sorry if this is misleading or incorrect! Also I'm not passing your course for you so don't expect me to give you all your answers
I'm sure you've already come across this but I hear Learn You A Haskell is a great way to learn the language.
Since they already have your email, you could very well reply saying they're not associated with you, to see if it's legit and where it takes you. Just change your name if your address isn't it, and you're set.
Every architect wants to see this.
Classic.
O