« first day (1942 days earlier)      last day (2886 days later) » 

4:10 PM
@Dennis Ah apologies. I'm both easily distracted and very indecisive.
I'll allow it, if you give adequate explanation in the post to where the missing rows are (something like, "we don't count players 7 and 8, as they haven't said anything yet", or something similar)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ sorry for missing it. :(
will you still be a innocent 1.6kers friend now that you have joined the ranks of half-mods?
 
@EᴀsᴛᴇʀʟʏIʀᴋ Looking through chat history, it's @Cᴏɴᴏʀ who'll be missing out the most if he won't.
 
user image
4
purrrrrrrr
 
@wizzwizz4 ?
@orlp AAAII SO CUTE
 
@orlp I am not starring that.
I won't. No, I won't.
I... did not do that.
SO CUTE!!!
 
4:21 PM
I WUV KITTIES
 
@Sherlock9 Thanks! I'll edit my answer in a moment.
 
4:38 PM
Anyone know how to force python 2 sorting behavior is python 3?
 
@muddyfish You mean stuff like [] < 0?
 
yeah
>>> sorted(["1",2])
[2, '1']
 
from __thegoodolddays__.nonsensicalcomparisons import *
More seriously, I don't know of any way to do so.
 
I just want consistent behavior across multiple types
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named __thegoodolddays__.nonsensicalcomparisons
Doesn't work :(
 
4:45 PM
@AlexA. how do dot product in R?
%*% should work, but doesn't.
and not .*, dot(), or dot_product() either.
 
HODOR
 
your face is hodor
 
@mbomb007 Hodor hodor. Hodor hodor...
 
Hodor?
 
If you haven't seen up to the latest episode, go get caught up.
 
4:50 PM
I've only seen up to season 4
 
Game of Thrones is about to become Timey Wimey.
 
I think I might leave if this conversation continues...
 
I'll leave it there.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Only an ad? Lol.
 
4:54 PM
0
A: Sandbox for Proposed Challenges

Legit StackFind ALL Longest Common Substrings Unlike "Longest Common Substring" algorithm which returns just one string, or the length of it. This algorithm returns a score after taking all separate longest common substrings into account. This program returns the score of how similar one string is to ano...

 
Anyone know how to get raw dumps of chat?
 
@wizzwizz4 -._(._.)_.-
 
@wizzwizz4 Scrape and parse is the only real way to do it.
 
@Geobits Sure?
100% sure?
 
Yes. I looked into it before doing so for Marky.
 
4:56 PM
:-(
Oh well.
Wait, how does the API work?
 
No API for chat
 
The API that the webpage uses to talk to the server.
 
I don't believe it's publicly available. If it were, I'm sure there'd be a post on meta.se about it by now.
 
@Geobits Whoever said anything about publically available? If you have an open session...
 
Hey, feel free to try :P
 
5:09 PM
hey, I'm working with the pillow library
and in the process, converting the image to RGB
is converting to RGB lossy?
(it's a JPG, if that makes a difference)
 
How should I call a gem which says "Goodbye" to someone in some language?
Examples:
>> require "name_of_gem_here"
true
>> NameOfGemHere.say_goodbye
Goodbye, World!
>> NameOfGemHere.say_goodbye_in("spanish")
Adios, Mundo!
>> NameOfGemHere.say_goodbye_to("Andrew")
Goodbye, Andrew!
>> NameOfGemHere.say_goodbye_to("Andrew", in: "spanish")
Adios, Andrew!
It has to be a free RubyGems name and has to not conflict with existing gem names.
I'm kinda leaning towards "bai", but it conflicts with "bait".
 
@NathanMerrill IIRC jpg is based on RGB, so there shouldn't be loss in that direction.
 
Forget the t in "bait" and you accidentally install my gem.
 
it looks like they can pick one of the three:
PIL reads JPEG, JFIF, and Adobe JPEG files containing L, RGB, or CMYK data. It writes standard and progressive JFIF files
 
Eww.
 
5:14 PM
It has to be pretty unique.
Not like "goodbye_gem", "goodbye_zyabin101" or something.
 
Hmm. If you have something that can save jpg in all three colorspaces, you can try converting them back to rgb and comparing.
 
I need it for zyabinVI.
 
@quartata Yea, I'd seen that when scraping for Marky, but it looked like just rolling my own would be quicker and simpler.
 
meh, I'll just assume its RGB
 
5:16 PM
10
Q: What is the word for a joke which is told as real thing?

kenorbIs there any single word for a joke which is initially told by somebody as a real thing, then when person is fooled, the person disclosing the information that it's just a joke? Like April Fools' joke.

Consider trumpery. — Graffito 19 hours ago
I like this guy.
 
@NathanMerrill Whether or not it's lossy depends on what color space/model the JPEG uses.
 
how do I look at that?
ooh
hmmm
it lists "Color components"
but its a number (3)
which could be any of the three
 
I think you're looking to see if the JPEG contains something like this: en.wikipedia.org/wiki/ICC_profile
As far as I can tell, converting it to RGB will probably not be lossy. After all, it looks like the JPEG compression is significantly more lossy than just a color space conversion.
And not simply because it looks like color space conversion is actually one of the steps involved in that compression.
 
ok. I'm trying to read the documentation, but I'm pretty lost
ok, I'm going to post a challenge with large images: should I put them on github?
 
What are all these random stars?
@NathanMerrill Can you put images in a gist perhaps? I've never tried
 
5:30 PM
@quartata Yes.
 
I think so
 
That would probably be the best way then
 
bah, if I try to do it through pycharm, it runs out of memory (large images), and it doesn't work through through the browser
 
@CᴏɴᴏʀO'Bʀɪᴇɴ @trichoplax @El'endiaStarman I posted the Light Game challenge (called Light the Way!) to the sandbox: meta.codegolf.stackexchange.com/questions/2140/…
 
I'll just make a repo
 
5:35 PM
@mbomb007 Awesome.
 
1
A: Sandbox for Proposed Challenges

mbomb007Light the Way! This is based on the Lights Out game. There is a grid of tiles, and clicking on a tile (performing a "move") toggles the state of the clicked tile as well as the (orthogonally) adjacent tiles. This variation will also toggle the diagonally adjacent tiles. It is helpful to note th...

 
^ There it is. :)
 
5:48 PM
1
Q: Find a function with cycles of every length

Martin BüttnerA function is said to have a cycle of length n if there exists an x in its domain such that fn(x) = x, where the superscript n denotes n-fold application of f. Note that a cycle of length 1 is a fixed point f(x) = x. Your task is to implement a bijective function from the integers to themselves,...

 
How do you revert a commit on GitHub.com?
I don't want to download the entire repo just to revert a single mistake, caused by misinterpretation of bad CSS making me think a Markdown file was broken (and try to "fix" it).
@{GitHub-users}
@Geogit?
Everyone's inactive... ?
 
@trichoplax posted my image challenge idea I had
@wizzwizz4 I have no idea :)
 
@wizzwizz4 I'm active but don't know
 
:29870720 You know about GitHub (and I was going to ask you anyway :-) ): do you know?
A :-) in brackets! :-S
 
@wizzwizz4 you're asking how to alter the history on github?
 
6:03 PM
@Poke No, just a simple revert.
I am proud of my blunders, but don't want them in the codebase.
 
does git revert not work in this use case
 
i guess it's technically git revert <HASH>
 
@NathanMerrill I added the code-challenge tag (letting you know it was me since it was a ninja edit). Hope that fits?
 
Not as in git-revert.
@trichoplax Ninja-edit?
 
6:05 PM
oh, yeah
thanks
 
@wizzwizz4 It doesn't show in the edit history
 
Здравствуйте!
 
You just ran a git push which pushed your changes to github and you want to revert them?
you can just do git revert and push that
 
@drobilc How do you make them? Or is it a mod-only privilege?
 
and it should be ok
unless i'm completely missing something
 
6:06 PM
@drobilc Привет
 
he doesn't want to download the repo
 
@Poke I didn't use git.
 
so he's wanting to do it all on their website
I believe?
 
@wizzwizz4 this is cyrillic script (used by russians) :)
 
ahh, gotcha
 
6:06 PM
@NathanMerrill Might be worth explicitly mentioning that the input images will be photographs, even though that's obvious once viewing the test cases
 
@NathanMerrill Yes.
 
@zyabin101 Where are you from? :)
 
@drobilc Ш лтщц.
 
@trichoplax can you do that if you're not the author? o.O
(unless you just edited it)
 
@drobilc Russia.
 
6:07 PM
1
Q: AppleSauce Fader

PokeBack in the day, all the 1337 kids used text faders in chatrooms. I don't know about you guys, but I want to feel cool like they did. The only problem is that their old scripts and applications were heavily coupled to the software they were made for, so I can't just make use of this amazing funct...

1
Q: Image Hide-and-Seek

Nathan MerrillIn this challenge, you need to find a specific pixel within an image. You are passed an (R, G, B) tuple and an photograph, and you need to return a point (x,y) within the image that matches the RGB color given. The image may have multiple points that match the color; you only need to find 1. ...

 
@MartinBüttner You have to be either the author or a ninja, I believe
 
@zyabin101 Russia is big. Which time zone?
 
(I edited within 5 minutes of posting)
 
Rare line!
@wizzwizz4 UTC+3
 
@trichoplax it appears you're neither of those codegolf.stackexchange.com/posts/80555/revisions ;)
the 5-minute grace period applies only to the author of the last edit, and only if there's no new comment since the last edit
 
6:08 PM
@MartinBüttner So I see - just went back to check... I guess it just didn't show up as edited until I refreshed the page...
Thanks for the explanation - that'll save me embarrassing myself again or wasting time with notifying the author :)
 
@trichoplax So, it's not a mod perk. (Thank goodness mods can't do that!)
 
@wizzwizz4 Actually I'm quite pleased about that myself. Seems right this way.
@Dennis Yup. My brain wasn't broken. It was just caching...
 
@NewMainPosts turret-arch.jpg makes me want to make a game where I can fly though those in a spaceship or something. :P
 
6:12 PM
@El'endiaStarman its actually in my state :)
 
@Dennis There are only two hard problems in computer science...
well, three if you count "wrangling with your code for an hour to get it down to the lowest byte count"
 
caching and caching
 
@NathanMerrill It's one.
And wrong.
 
bah, nevermind
the second one was cached
 
6:23 PM
cache invalidation, naming things, and off-by-one errors
 
@RenderSettings You did golf code in Urbit for a hour?!
Also, I'm interested: where do you keep your golfed code inside your urbit?
@trichoplax It's three.
And wrong.
 
@zyabin101 That's the joke :P
 
@trichoplax Ikr.
Nice :P
 
It's not mine...
I quoted it without reference from someone famous who quoted it without reference
 
@trichoplax Where?
 
lol, on that tweet:
 
(the comments are full of similarly delightfully awful computing jokes)
 
there are two types of people
1. those that start indices with 1
1. those that start indices with 0
 
The effort of getting that joke right is almost unbearable... :P
@NathanMerrill If you'd made this a 3 line comment I'd have starred it...
 
ah well
I already edited it once
 
6:31 PM
@mbomb007 v
> hodor
Error: object 'hodor' not found
>
 
There are two types of people. Those who index things starting with 1 and those who do starting with 0.
 
@EᴀsᴛᴇʀʟʏIʀᴋ T_T
 
@zyabin101 Hm? I just use a generator that I edit in vim to write golf entries. I don't write all my code in the repl, that would be hell. I just post how to run it from the repl in my posts because that's a lot easier for newbs.
 
julia> hodor
ERROR: UndefVarError: hodor not defined

julia>
 
6:34 PM
some day i'll get past season 1 of got
 
>>> hodor
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'hodor' is not defined
>>>
 
until then i'm blissfully ignorant of this ^
 
@RenderSettings I'm interested, how to print something to the console in Urbit?
 
@zyabin101 There's ~&, but that's really just for printf-style debugging. Just returning a value is a lot better, it will get pretty-printed by dojo.
There's %tang, which is the structure for things to print.
[code]
:- %say
|= {^ $~ $~}
:- %tang
:~
leaf+"ayy lmao"
==
[/code]
ffs, how do i format that as code
 
Indent each line with four spaces.
 
6:43 PM
Really, in my entries I just return either a tape or list instead of trying to use ~&. Since ~& is transparent at execution, it would just end up printing everything /twice/. Once from the printf, once from the return value
 
@RenderSettings This is code.
Huh. Code blocks don't work with replies.
 
yeah
@RenderSettings 4 spaces before each line.
 like this
(that is " like this")
 
You can also use `backticks` to do it.
 
yeah
4 spaces hightlights the whole message, backticks only highlight the enclosed portions
this
vs this
 
Got it
 
6:51 PM
@RenderSettings You golfed code in Urbit for a hour?!
 
This line would be code,
but because I didn't indent this bit, it didn't work.
However, if I had `used backticks` for that line,
`like I have for this line`
it would have shown the code as inline code, on a separate line.
Or... not.
 
@zyabin101 Yup! It's lots of fun to play with Hoon :D It took that long mostly because building a parser combinator programmatically in a strictly typed language is hell. I tried like three different methods before I remember there's a combinator made specifically for what I was trying to do...
 
@wizzwizz4 Markdown doesn't process multi-line messages.
 
@TimmyD I noticed.
> This is a multi-line quote.
> It works, but the `code inside` doesn't.
 

Sandbox

Where you can play with chat features (except flagging) and ch...
@RenderSettings If you want to try, use this room. It has lots of sand.
I like sand.
 
I'm officially generating a decent looking terrain in 1 line:
(f=(a,b,c,d)=>{if((b=a/2)<1)return;c=.5*a;for(y=b;y<max;y+=a)for(x=b;x<max;x+=a)grid[x][y]=A([get(x-b,y-b),get(x+b,y-b),get(x+b,y+b),get(x-b,y+b)])+r()*c*2-c;for(y=0;y<max;y+=b)for(x=(y+b)%a;x<max;x+=a)grid[x][y]=A([get(x,y-b),get(x+b,y),get(x,y+b),get(x-b,y)])+r()*c*2-c;f(a/2);})(max)
And it's still not fully optimized as you can see
 
How... how...
how...

how?
 
@wizzwizz4 It's a recursive function, wich generates a terrain based on the midpoint displacement algorithm
 
It's JavaScript, I know that much.
But what's the midpoint displacement algorithm?
 
7:00 PM
hii
Vote for your favorite SE site
 
puzzling f t w
no chat ftw
 
@ev3commander BlockCoder?
 
yes?
 
7:01 PM
wut
 
@ev3commander What have you done to your username?
 
This is the heightmap of the terrain
 
changed it back
 
@wizzwizz4
Dark parts are deeper
 
@ev3commander Oh. Ok, that's fine then. (I thought you were actually called blockcoder1392).
 
7:02 PM
I want to participate in the js1k 2017 with an island generator
 
@Bálint Staring at the black part in the center makes it seem like a GIF
 
@Bálint Maybe if you put colours on it it will look prettier.
 
@TimmyD woooo, illusions
 
@wizzwizz4 what?
 
@Bálint Ooh, I know! Use an indexed image.
 
7:03 PM
blockcoder1392 was my username
 
@wizzwizz4 This is only the heightmap, I want to do a 3d first person demo
 
(It was "permanent")
t
 
nothing
 
7:04 PM
> nothing at all
 
Image generation is amazing
 
have you seen this? have you heard about this? bbc.com/news/technology-36367221
lolwow
 
> Great photographs!
 
@ev3commander I vote for Programming Puzzles and Code Golf.
3
 
I vote for Chat
 
7:06 PM
And for Stack Overflow на русском, if possible.
 
And for meta.SE
 
Is there a javascripter here?
 
And for (not Code Review);
Me
@Bálint
 
@Bálint A pythoner is here.
 
is there a marioLANGer here? c:
 
7:07 PM
Nope.
(Whilst I'm waiting for these cars to charge...)
 
:c well that's sad
 
@ev3commander Do you know a better way to fill a 2d array with 0-s than

g=[];for(i=0;i<size;i++)g[x]=Array(s).fill(0)?
 
@Bálint I know Java
 
@NathanMerrill That's only half javascript :/
Learn scripting, and you're good to go (sarcasm alert for dumb people)
 
hmmm...I've never learned Script
 
7:10 PM
@NathanMerrill You know, any professional java or javascript programmer would yell at us currently
 
I am a professional Java programmer :)
and technically, Javascript, but I do less of that
 
Java is like Javascript just like Cars are like Carpets :\
 
You mean more golfier?
 
@NathanMerrill Any professional outside the codegolf SE
 
7:12 PM
bah, I had chrome chat notifications turned on, but they are terrible
 
@NathanMerrill Ikr, they're loud
 
no, its just the popup
 
@Poke Nothing dirty about it. Microsoft has long stated that they're going to make Windows 10 a Recommended upgrade. If users don't read what they're clicking, not Microsoft's fault.
 
yeah i know
also I didn't really read the article
but after doing so it looks like it was a bit misleading
 
I golfed down my terrain generator to 448 bytes
 
7:15 PM
Closing the window just doesn't remove the update from the list of pending updates as some users might expect
 
@Bálint Good, what does it do? :3
 
@zyabin101 Uhm, generate a terrain?
At least a heightmap
395 bytes now
 
Good, now color that heightmap.
 
@zyabin101 I want to make a 3d demo, so no, this is just a heighmap for the vertices
 
7:20 PM
I don't have WebGL for the 3D demos to show up D:
 
@zyabin101 Who spoke about webgl?
 
@wizzwizz4 Make a multiple choice poll and maybe I'll vote.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ..... somehow I set my homepage to the jolf interpreter.
lol
 
yay i can comment on posts now
 
7:28 PM
@Poke \o/
 
@zyabin101 Which browser do you use?
 
me too \o/
 
@wizzwizz4 ... if you want answers other than PPCG, don't put PPCG on.
Everybody go here and vote bernie!
4
 
@wizzwizz4 Core Review??
 
7:29 PM
@trichoplax QtWeb for chat on the desktop, and Firefox for some tasks that need it (Git(Hub|ter), for example).
 
Chrome as the universal browser for the mobile.
 
@zyabin101 Can you use Firefox for things that need WebGL?
 
@trichoplax You can
 
@trichoplax I don't have a sane graphics card. :P
 
7:30 PM
@trichoplax It was the second browser to implement it
 
@zyabin101 I know you don't want to run anything too demanding through it, but it should handle a basic height map based terrain. This example one on Meta Stack Exchange works for me on my laptop without a separate graphics card
 
vote not trump
@wizzwizz4 You missed some
eg puzzling
Y U NO 3d printing
 
And about a hundred others lol
 
Y U NO graphic design :(
Im voting GIS
@EᴀsᴛᴇʀʟʏIʀᴋ ...or not
 
7:45 PM
Can some of you test this out? I need to check for compatibility: jsfiddle.net/myouvpnk/1
 
@MonK : My protractor is in radians. — Eric Towers 4 hours ago
 
@Bálint Works I guess, produces some sort of image
 
^this
 
0
Q: Nine Nines xxxxx

Filip HaglundUptime is a very important metric, as we all know, so we'd like to measure the uptime since our service was first launched. The SLA specifies an uptime of a certain number of nines, such as 3 nines for at least 99.9% uptime, or 1 nine for at least 90% uptime, and you're wondering if you've actual...

 
7:48 PM
@Bálint Array(size).fill(0)
 
Fun fact: I golfed the code so much down, even the closure compiler's "whitespace only" mode gives a worse byte count
 
@Bálint That image is what I see running your code through Firefox on Windows 7
 
I got similar images through chrome on osx
(el capitan)
 
They are random
 
@Bálint Array(size).fill(0) is this what you meant with a short way to fill a 2d-array with zeroes?
 
7:52 PM
@BassdropCumberwubwubwub No, I want to fill an array with arrays
 
Ah
Like Array(size).fill(Array(anotherSize).fill(0))
will create [[0,0],[0,0],[0,0]] for size = 3, anotherSize = 2
 
@BassdropCumberwubwubwub Tried that, it makes reference based copies, thus if I change one, I change all of them
 
And if you change the 2nd Array with new Array ?
(or maybe both)
 
@BassdropCumberwubwubwub Let me try that
@BassdropCumberwubwubwub same
Then I stick with what I have
 
Hm, I guess. Not too sure how JS handles references in arrays
 
7:59 PM
@VTCAKAVSMoACE finished :)
 

« first day (1942 days earlier)      last day (2886 days later) »