User Controls
Thanked Posts by Lanny
-
2017-04-06 at 2:34 AM UTC in mq = witness protectiongave up info on the mafia after he and his brother joined, but they bumped off his brother when he refused to shake down honest small business owners.
-
2017-04-05 at 5:32 AM UTC in THE OFISH 2017 COLLAGE THREAD!!!You didn't use it correctly though...
-
2017-04-05 at 5:06 AM UTC in THE OFISH 2017 COLLAGE THREAD!!!
-
2017-04-04 at 3:41 AM UTC in What does `map()` do that a `for` loop doesn't?So the literal answer is that`map(...)` is an expression (it evaluates to some value) while `for ... in ...: ...` is a statement, that is you cant do something like:
new_list = for x in range(10): x+1
although you can
new_list = []
for x in range(1): new_list.append(x+1)
but
new_list = map(range(10), lambda x: x+1)
does work.
The better answer is that they convey a different intention. `map()` indicates you're creating a new sequence with a 1:1 correspondence with its first argument, to do anything else with it would be really bad style. A for loop can be used to create a new sequence with a 1:1 correspondence with the thing being iterated over, but it can be used in a more general way as well. For example you could do something like:
for filename in files_to_make:
f = open(filename, 'w')
f.write('lol\n')
f.close()
This doesn't produce a new list, it takes some action with side effects for each item in an input sequence. By contrast map is much more constrained, it always produces a new list and it will always have the same length as the input list.
You might wonder why we would ever use a less powerful construct like map. The main reason is that it conveys meaning better, because there are fewer things you can do with it, it's more obvious what you intend when you use it. Compare with while vs. for loops. While is a more powerful construct, it can be used to iterate over a sequence like for, but it can also loop indefinitely until some condition is met. We prefer for however because it makes it explicit what exactly we're iterating over. Likewise map makes it explicit that you're producing a new bijective sequence from an existing one. You can also use the length equality and callback convention for some optimizations like preallocation and memoization, but that's kind of an aside, not every language that implements lisp map (python's map is inherited from lisp) does this. -
2017-04-05 at 7:39 AM UTC in THE OFISH 2017 COLLAGE THREAD!!!QUOTE
-
2017-04-02 at 9:11 PM UTC in :Lanny is a nigger
Originally posted by Bill Krozby i didnt fag out i just trolled the guy, i didnt see the point in weighing in with a guy 100 lbs over my self.
Originally posted by Bill Krozby aahhh my bad bud, I was way more krunk than normal sunday night and today I wa way more sober than normal and completely forgot. Plus I was going to buy a scale but forgot to do that as well.
Now I feel like a total tosser, you should of just hit me up on here.
And I'm not a fatass I weigh 140-145lbs at 5'10, thats fairly average -
2017-04-02 at 8:06 PM UTC in :Lanny is a nigger
Originally posted by Bill Krozby probably like a nie a 9er
Originally posted by Lanny
Originally posted by Bill Krozby i dont do drugs because i quit, gonts
lol, I'd be amazed if you could make it 48 hours without drinking yourself into a stupor. Not that I can really stand in judgement, but at least don't pretend like you don't unsuccessfully try to "cut back" every other week -
2017-04-04 at 6:31 AM UTC in I wrote a game: OnitamaYOU FOOL
-
2017-04-04 at 4:05 AM UTC in You know what we should do?
Originally posted by Sophie Write a space interface. Like a CLI, but for NIS. Wouldn't that be fun? Why don't we ever collaborate on anything.
I seriously started writing a telnet interface to ISS a couple of weekends ago as a throwback to totse. It should actually be pretty straight forward but there's just a lot of code that would need to be written. I kinda still want to do it though, have some fun ideas around reusing existing views.
Originally posted by SCronaldo_J_Trump So everything is coded in pyhton? thats it? I didn't know you could code a forum in python.
How to make a chatbox in python or can I just look it up and steal some code?.
The vast majority of the code is python. Unfortunately the simplest modern web stack is still polyglot. At minimum you need a server side language like python and two declarative presentation languages, HTML and CSS. The latter two are relatively simple though. It's also very common to use javascript for client side scripting, which ISS does. Something like a chatbox would require it, although the realtime nature of a chatbox means a good implementation will require some kind of more sophisticated transport strategy, not another language but websockets and longpolling impose special infrastructural requirements.
All that said though, you can definitely contribute productively to ISS (the NiS software) with just python.
Post last edited by Lanny at 2017-04-04T04:15:59.339410+00:00 -
2017-04-04 at 3:04 AM UTC in site broke lolout of disk space again.
Sure sucks to be a (l)user -
2015-06-26 at 4:06 AM UTC in Mod me
I think I've proven myself
No, I did add an item in the FAQ in your honor tho: http://niggasin.space/forum/administrivia/nigga-news/256-welcome-faggots-rules-and-updates-on-site-featuresWell I was hoping you guys would show me something before I post my tits again
now tits
-
2017-04-02 at 11:47 PM UTC in Say something nice about: Bill Krozby
-
2017-04-02 at 10:54 PM UTC in The Evolution of Lanny: An Exercise in BBS Gymnastics
-
2017-04-02 at 8:04 PM UTC in :Lanny is a nigger
-
2017-04-02 at 8:52 AM UTC in Is Time An Illusion?Clearly there is a entirely human-constructed and arbitrary culture of time, things like dates, measures, etc. But it seems like there's an underlying physical element of time as well. Physical phenomena seem to be variable over some non-spacial dimension which we measure after-the-fact. Indeed the very notion of "phenomenon" seems to have an implicitly temporal facet.
In fact qualities I think you'd agree are natural, things like size, mass, etc. are measured by arbitrary means but we generally agree are "real" and non-illusory, at least under normal conditions. -
2017-04-02 at 9:09 AM UTC in The Official NIS New Banner ThreadYee, 300x150 is the requirement. Good luck yung blood
-
2017-04-02 at 3:57 AM UTC in Is Time An Illusion?P.S. Benny, stop shitposting, this isn't a general forum.
-
2017-04-01 at 9:13 PM UTC in What's this hash?Posts deleted. Next off topic is a 24h ban. Make a thread in PEEO or something if you want to be publicly butthurt.
-
2017-04-01 at 5:52 PM UTC in What's this hash?Please keep off topic posts to the general forums. Next nigger to make a hash joke or otherwise bring nothing to the thread gets a ban.
Originally posted by aldra probably base64, you can tell because base64 uses = for padding and it's padded to a multiple of 3.
base64 is used to be able to store and transfer non-printable symbols to save them being lost or having to be escaped in transmission, the implication being that the original text contains nonstandard characters - it's likely a hash or encoded data that's been converted to base64 for ease of transmission
This seems reasonable, it doesn't decode to anything obvious. If it's salted then the salt needs to be stored separately, either concatenated with the hash with some delimiter between or in a different field.
Also the use of + and / give you a little information, since the output character set of B64 encoding is not fixed not all encoders will produce output with those characters in it. See here: https://en.wikipedia.org/wiki/Base64#Variants_summary_table -
2017-03-31 at 6:10 AM UTC in Fuck all ya'll niggas. I'm getting drunk.I'm like "so you know when Sartre said hell is other people?" and he's like "uhh no" and I'm like shit, used pretentiousness and it wasn't very effective.