« first day (2204 days earlier)      last day (2626 days later) » 

7:02 AM
quick, anyone make a [wireworld] tag
 
7:15 AM
can anyone review my edit of a closed question
the "Dynamic programming - decreasing number" one
 
If you link to it sure
Oh wait, you mean in the review queue
 
How do I read text from a file with an arbitrary extension in Java?
Also is there support for command-line arguments?
 
7:33 AM
Do you mean Java Java, or Processing Java?
 
@KritixiLithos Java Java, though I suspect that it's similar enough anyway
 
So you mean you want loadStrings("filename_without_extension") to load filename_without_extension.extension?
 
@KritixiLithos???
But I want to specify the file extension so that it doesn't get mixed up
 
I'd use scanner
Although Oracle suggests using BufferedReader (it much more verbose)
 
Yeah but doesn't Scanner read the input and output of files only?
 
7:40 AM
Depends on what kind of file you're reading. Scanner is kinda good for user input - if the user cooperates - but it's far too high-level for binary files, and far too low-level for, say, JSON.
Ruby doesn't have that, and I never missed it
 
		try {
			Scanner blah = new Scanner(new File("lol.txt"));
			while(blah.hasNextLine()){
				System.out.println(blah.nextLine());
			}
		}catch(Exception e){
		}
 
Eww that indenting though
 
I had to paste it from vim
 
looks like hard tabs. Hard, as in hard to read
 
@KritixiLithos ggVG<....
Wait no, that's horribly ungolfy
<G...
Or however many dots it is
 
7:49 AM
I don't think Scanner was built for that
 
0
Q: An analog clock

Prashant MishraCode to display a simple analog clock.The hour and minutes hands should be understandable. The clock should be working and show the accurate time. Including of graphics is prohibited.

 
Trying to make Pyramid in Java, for speed and as a challenge
 
@Qwerp-Derp Scanner sc = new Scanner(System.in)was pretty much idiomatic in my class.
 
@DJMcMayhem I added set ts=2 sw=2 to my .vimrc and I think it is good now
 
@Qwerp-Derp You know how you have public static void main(String[] args)? args is your command-line arguments.
 
8:01 AM
@Pavel Yeah I eventually figured it out
 
Coolio
 
@Pavel How's Sushi going?
 
hey doods
 
Challenge coming soon: Given two RGB colors, image dimensions, and a list of (x, y, r) tuples that define circles, 2-color the circles and output the resulting image. e.g.
(borders allowed but not required)
 
Cool
 
8:11 AM
You see a bunch of circles with complex coloring, I see a complex polygon that is yellow inside and orange outside.
 
@HelkaHomba Dammit Helka all of your challenges create bandwagons somehow
Your challenges are too popular and good :P
 
@JanDvorak that's one way to view it
but defining it programmatically as a complex polygon...I'd not be sure where to start
 
I forgot the name of the game where you click and ripples appear and when two collide there is sound
 
I'd use 99-gons.
Unfortunately, Javascript only has PI, not 2PI. Maybe it's time to learn Processing, I guess
 
hmm
 
8:23 AM
A XOR compositing mode would probably be ideal.
 
yeah
 
I'm making a command-line thing for Pyramid :)
You can create Pyramid files, run them, and maybe I'll make a REPL thingo
 
9:17 AM
2
Q: Sum the powers that be

Greg MartinA simple but hopefully not quite trivial challenge: Write a program or function that adds up the kth powers dividing a number n. More specifically: Input: two positive integers n and k (or an ordered pair of integers, etc.) Output: the sum of all of the positive divisors of n that are kth powe...

0
Q: HRNG - Human Random Number Generator

ServerfrogYou know it: Keyboard or Mouse input is just to Mainstream to create Random Numbers through human behavior. Create the Most unique (Pseudo)Random Number Generator that create its numbers through human behavior. Web-API's are not Restricted! The Number should be a 256bit Number. Example: use th...

 
@NewMainPosts unclear what "most unique" means?
 
9:59 AM
Uhh I need help with IntelliJ
So I have a package com.qwerpderp.pyramid, with a Main class on that folder
How do I access that Main class from the command line?
 
com.qwerpderp.pyramid.Main ?
 
So just java com.qwerpderp.pyramid.Main <args>?
Where do I do that from, though?
This is probably specific to IntelliJ
 
One does not simply run a class. You can set a class as a project's main class, in which case its main method will run when the project is ran.
My guess is that right-clicking the class lets you set it as the main class. If not, look in the project settings.
 
No but I need to run command line arguments
Like from bash
I built the project, there's an out folder
 
> One does not simply run Java.
 
10:15 AM
I used to know how to do it. I think I've got it in a text file.
Then I threw up my arms and ran screaming away from Java.
 
@wizzwizz4 The earth is round. If you run for long enough you'll end up in Java again.
(in this case running includes swimming)
 
@flawr That's why I stopped and settled down here.
It's near enough to Java for me to overcome my fear of it.
 
We need a tag.
 
@MatthewRoh Why?
 
Why would we need one? is not enough?
 
10:18 AM
@flawr I was gonna say--Java is an island, you'll end up in the ocean pretty quickly.
 
The absence of a specific criteria tag is evidence of a custom criteria.
@DLosc I was running so quickly that I didn't sink.
Or notice. Anything.
 
@DLosc Unless you're good at Jesus-ing.
 
The water was thick because of the Java seeping into the water.
 
(Or Moses-ing for that matter, if we're already making biblical references.)
@wizzwizz4 Another explanation would be that the water around Java is so slow, you're already gone by the time you'd get wet.
 
10:21 AM
When you use Java for the first time: Segmentation fault (SIGSEGV)
 
@wizzwizz4 I think I found footage of you.
 
Joke: Oracle tried to use Java. Java never got updated since then.
(Because even they thought it sucks)
Wait. My meta question is on Hot Meta Posts?
I didnt expected to be like that
 
@DLosc That's not me! The ankle area is the wrong shape, for one.
 
@MatthewRoh Why you have to roast Java :(
4
 
10:37 AM
Because roasting PHP is too mainstream
 
Because Java is too Java-ish
Yes, I'm using 'Java' as an adjective here
We need meme kolmogrov-complexity
like output the we are number one lyrics
 
@MatthewRoh No, you're not. You're using Java-ish as an adjective.
 
@MatthewRoh We've got NGGYU.
 
At least I used Java to roast itself
 
10:39 AM
@Qwerp-Derp Found it:
('-m', '--main', dest='mainclass', help='Main class to start')
 
???
But I have arguments in my main class
 
Use -m or --main, then type the class name.
 
So like this? java -m com.qwerpderp.pyramid.Main
 
Yes.
('-j', '--json', dest='json',action='store_true', help='Use the json file to setup parameters')
I'm not sure how this (^) one works, though.
 
That doesn't work :(
 
10:42 AM
Wait, the old text in this message is useless.
@Qwerp-Derp Gotcha. You just provide the extra arguments as extra arguments.
 
The error's not in the extra arguments - the error's in the actual -m tag itself
 
@Qwerp-Derp Really?
 
For some reason I'm getting Unrecognised option: -m
 
@Qwerp-Derp Try --main.
 
Same error
 
10:53 AM
Well, I'm stuck.
It's not in the text file at all.
I remember doing it, and storing it in a batch file, but that was when setting it up for somebody else.
 
11:36 AM
Hello
 
11:46 AM
hallo
 
Anonymous
12:11 PM
New xkcd what-if!
 
\o/
 
see miles everywhere, closes xkcd
4
 
Anonymous
To be fair, the question is about doing stuff in the US. When in Rome...
 
... you use cubits?
 
Anonymous
Man, you don't realize how slow a traditional coffee pot is until you run out of Keurig cups...
 
12:29 PM
Eh, I just pour some grains of instant coffee into a cup, add cold water and drink.
 
@Mego 98% of coffee is just water, so why don't you just drink water and consume the 2% coffee another time?
 
Anonymous
@JanDvorak banned
 
Hey, at least I'm not promoting a specific brand of cold water :-)
 
Anonymous
@flawr True story: as a little kid, I decided I wanted to try coffee. As a little kid, I didn't quite grasp the process of brewing. I tried eating coffee grounds. It was awful, and I was awake for like 30 hours straight.
 
Now I'm tempted to eat some coffee grounds just to see what happens
 
Anonymous
12:35 PM
Well, since you pour instant coffee into cold water, it shouldn't be that bad for you
 
Anonymous
In fact you might find it to be an improvement
 
Reminds me of this:
(From a Lucky Luke)
 
Anonymous
Can you translate that for me? I don't know German :/
 
Translation: "For a good coffee you moisturize a pound of coffee with water and let it boil for a half an hour. Then you do the horseshoe test: If the horseshoe sinks, there was not enough coffee."
2
(this is only the right panel, but it should be sufficient :)
 
Anonymous
@flawr Hahaha that's brilliant
 
12:39 PM
Oh gosh, it has been way to long since I read one of those comics for the last time.
Do you guys know Lucky Luke in america?
 
Anonymous
Nope, but I'm also young
 
I thought you were older than I.
 
Anonymous
I don't know. I'm 22
 
Ok, you're younger but not by too much :)
Anyway they were probably my favourite comics when growing up.
(The orignials are french I think.)
 
Anonymous
I was never much of a comic person. I read some webcomics, but not many.
 
Anonymous
12:44 PM
And even then it's only excessively-geeky ones or long-form stories
 
what webcomics have you read?
 
Anonymous
I read xkcd, SMBC, Questionable Content, Namesake, and Wilde Life
 
Anonymous
I limit myself to 5 at a time or else I go overboard (like my wife, who is currently reading ~20)
 
(And this isn't even the full list, I have to scroll O_o)
 
Anonymous
Yeah that's about what my wife's RSS feed looks like
 
12:50 PM
Virtual high five to your wife
high fwivfe
 
What has PPCG done to me?
 
The heck is mothereff.in?
 
Byte counter
 
I'm more worried about your Youtube thumbnail than anything else
 
@flawr a utf-8 byte counter
 
12:53 PM
semi-ninja'd
 
I was more useful though
 
@muddyfish Why is rickroll in your recommandations... ?
 
Anonymous
@JanDvorak I mean, a considerable number of Youtube links on the internet lead there
 
@TuxCopter that's what I was worried about
 
Anonymous
Fall for it one too many times, and Youtube will remember
 
12:54 PM
@flawr The drawer was Belgian, the main scenarist was French
 
even worse
 
@Fatalize Ah ok! But it was a french publisher?
 
Am I the only one that sets my browser to never save anything to avoid this kind of crap accumulation?
@flawr Belgian then French apaprently
But let's say Lucky Luke is full French like Tintin. People don't know Belgium exists anyway!
 
I mean belgium is that city next to paris right?
 
Bah, everyone knows Belgium is a myth
 
Anonymous
1:00 PM
@JanDvorak I thought that was Finland
 
speaking of Finland, I remember a quiz game, "Finnish death metal band, or an Ikea product"
 
Anonymous
@JanDvorak The answer is always "yes"
 
TIL the USA is also a fictional, only movies take place there.
 
Anonymous
@flawr NYC is a crater
 
@JanDvorak Easy 20/20 :) (Might be cheating to know Swedish)
 
Anonymous
@JanDvorak 14/20
 
@JanDvorak Eh, got 12/20.
 
Anonymous
And I know 0 Swedish
 
10/20, mostly guesswork
 
1:05 PM
@JanDvorak 14/20
 
Anonymous
@muddyfish Too easy
 
16/20, I know no swedish but I know metal bands
 
Anonymous
...I say, as I get 74%
 
Anonymous
It turns out I really only know the original 151
 
@muddyfish 65%
 
1:07 PM
I got 17/20 and I know neither ikea furniture nor metal bands
 
This message was flagged as spam/offensive by 1 user:
→ 1 message moved to Trash
I love chat flags
 
Why would anyone flag a moved to trash message as spam/offensive?
 
Anonymous
Because they want to get suspended
 
1:27 PM
 
I think I saw this back in the sandbox. — ckjbgames 13 hours ago
I don't understand what they're meaning.
Accusation of plagiarism? Props for using the sandbox? Just commenting for the sake of it?
 
Anonymous
@AdmBorkBork Option 3
 
Does anyone else remember an esolang made a few years back which involved balls falling/rolling through various commands, where the value of the ball was affected by the commands? Also I think there were "subcircuit" AKA full programs could fit inside a single tile of another program.
 
Marbelous? Or something else?
 
Got it: Marbelous
 
2:23 PM
Grats with the whole room owner thing there, Mego. I'll have you know I voted
 
Anonymous
@Poke Glad to have your support :)
 
I just read all those coffee posts
Holy cow
That was great
 
@Mego Well I never said I voted for you ;)
(but I did)
 
lol
TNB should have its own webcomic
 
Anonymous
I'm not good enough at drawing to make a comic
 
Anonymous
2:26 PM
My skills are programming, coffee drinking, and sarcasm
 
the ninth baktun?
 
Yep
Baktun?
 
@flawr Yeah I have several Lucky Lukes somewhere in my comic stash
 
A baktun (properly b'ak'tun /ˈbɑːkˌtuːn/; Mayan pronunciation: [ɓakʼ ˈtun]) is 20 katun cycles of the ancient Maya Long Count Calendar. It contains 144,000 days, equal to 394.26 tropical years. The Classic period of Maya civilization occurred during the 8th and 9th baktuns of the current calendrical cycle. The current baktun started on 13.0.0.0.0 — December 21, 2012 using the GMT correlation. J. Eric S. Thompson pointed out that it is erroneous to say that a Long Count date of, for example, 9.15.10.0.0 is in the “9th baktun”, analogous to describing the year 209 AD as in the “2nd century AD”. However...
 
@Mego You can't add sarcasm as a skill... Now how are we going to know when you're telling the truth
 
2:27 PM
@flawr Thank you for that translation btw. I don't read french
 
so you're not alone
 
@ChristopherPeart eye twitch
 
Why the twitch?
You must be a streamer
 
mistaking German for French
 
Suppose I have a column of type varchar in a database that has a unique index on it. Is there a reason that a foreign key should reference the primary key of that table over the unique index?
 
2:29 PM
Welp
HE did say the originals were in french
I can't even edit my comment :P
 
The originals yes, the image is from the german version though
 
It's easy to know it's german, it has this stupid ß and way too many ¨ and capital letters
 
Now that I actually look at the words closely it is clear
Lucky Luke (also known as The Adventures of Lucky Luke) is an Italian western-comedy television series starring Terence Hill that aired in 1992, and was based on the Belgian comic book series Lucky Luke and on a movie with the same title directed and produced by the same Hill in 1991. Eight episodes were produced, each with the running time of 50 minutes. == Soundtrack == The opening theme of the series is the song "Lucky Luke rides again", performed by Roger Miller. The main theme is the song "The lonesomest cowboy in the West", performed by Arlo Guthrie. == Notes == == External links == Lucky...
Well i will be going snowboarding
Will record some video
May have a video for you guys later today (8 PM EST)
Advanced warning: I am not a pro, and I don't have a gyro to hold the camera, so it will be bumpy
I would have condensed these but i can't remove them as they are ~3 minutes old
 
2:53 PM
I'm revisiting my CnR Challenge and have been playing around with a few obvious sequences. It's readily apparent that for this challenge to be successful, the sequences need to be chosen carefully. So ... Crowdsourcing powers, activate!
 
@AdmBorkBork What's wrong with leaving it up to the cops
 
Oh, now there's an interesting idea.
That would wind up shifting the focus some. If the two sequences are fixed, then the cops challenge seems more around obfuscation and clever techniques. If the cops pick the two sequences, then picking the right sequences for your particular language is a bigger part of the challenge.
 
that doesn't seem so bad
 
@AdmBorkBork I would move the paragraph on "Cops wins ..." after the paragraph on how to crack a submission
 
Yeah, totally going to clean it up and leave it in the sandbox for a bit yet.
 
3:43 PM
belated congrats on 10k @ais523!
@flawr I just realized I'd been thinking of you as the chill grandpa and is like 65 but still very active in everything
 
My sandbox CnR challenge has been cleaned up. Feedback welcome.
 
Hi
Bye
 
3:58 PM
@AdmBorkBork the pause command in batch prints nothing by default, correct?
 
@Riker No, it spits out "Press any key to continue" ss64 link
 
ah, but it doesn't have a '...' at the end right
 
No, it has a ` . . .`
markdown fail
 
?
 
spaces between the periods
 
4:07 PM
<space>.<space>.<space>.
ah, okay
 
Hahahaha. I was trying to write some SQL that would keep a database connection open with a query running (any query), and I got SQL Server to start spitting out random stuff.
 
@KritixiLithos that's a fine setting, but for me it kinds varies by language. I have it set to two for ruby, bash and vimscript and four for everything else
 
I wanted to know that it was still executing and not just sleeping, so I had it print stuff. But "print" doesn't actually print until the query finishes, so I had to raiserror instead.
Don't shovel me MetaEd!
 
@Rainbolt Can I put you on a lead?
 
Like a horse? I don't know about that...
 
4:21 PM
> A horse is a horse, of course, of course, And no one can talk to a horse of course That is, of course, unless the horse is the famous MetaEd.
 
I was just thinking about horses after seeing them out of the window
 
I work in an urban downtown in an office tower. I'd be very concerned if I saw horses outside my window.
 
I live in the countryside. There's a field with 3 horses literally 2 meters away from my window
huh. It's also very very lightly snowing
 
If you have children (especially a daughter) you will see ponies all the time on tv
(Yep, MLP.)
 
or if you know a brony
should be a thing?
it's only used for this question
 
4:27 PM
probably not
 
We have similar tags for other languages reference
 
If youre correct shouldnt be a thing
 
I was more thinking that I couldn't see it being used for any other question
 
Well, then we should also get rid of and and ...
I'm not arguing one way or the other, just saying we should be consistent.
@Riker Be cautious in editing multiple questions like that.
 
We generally don't like language specific questions.
 
4:34 PM
but that doesn't mean there shouldn't be tags for them
and we agree that there can/should be exceptions for things like
 
@AdmBorkBork yeah, that's all I'm doing because I realized this
but I'm writing a meta right now, we should probably clean up the [tips] tag
nvm, found a dupe
10
Q: The tips tag is currently golf focused. Can this be made explicit one way or the other?

trichoplaxThe tag wiki for tips mentions either golfing or programming challenges but then the rest of the wording and examples cover only aspects related to golf or golfing languages. There doesn't currently seem to be a consistent consensus on meta to point to when someone posts a tips question th...

wishes for meta bounty
 
wat
TIL you can enter alt codes on Linux in hex with ctrl+shift+u
°.°
 
5:08 PM
You can even Ctrl+Shift+U+8 (for example) and send a control character. Message will appear empty tho. And it will look like spam.
 
5:20 PM
0
Q: Should all applicable [tips] questions be tagged with [code-golf]?

Easterly IrkHere is a search for these. (currently 42 of them, but some are things like "Tips for making Polyglots" and thus don't need the code-golf tag. The consensus is that tips questions should be tagged with the applicable challenge type, i.e. fastest-code, code-golf, etc. Should we go through and ad...

 
@Riker Haha, I have to frame that and hang it on the wall :D
I can assure you I'm not grandpa (as far ask I know) and I'm still slightly below 65. And I'm not really active in anything
 
lol
@flawr pix plz
 
@Riker =P
 
@flawr being good at math doesn't count?
:P
 
@Qwerp-Derp It's going ok, I don't want to release it until I have all of the commands implemented that I had in my original design.
 
5:32 PM
@Riker Well I'm not particularly good at math
 
uh-huh
 
I've just probably spent a few more hours staring at those obscure symbols than the average.
4
Great, now it is on the starboard and without context it makes me seem like superstitious nerd.
And I'm pretty sure I'm not superstitions.
 
lol
 
Guys, java question: if I convert an arraylist to a stream to map a function over it, how do I convert is back to an ArrayList?
 
@Pavel using forEach and add?
 
5:47 PM
That's terribly ungolfy though
First I have to convert it to an array, then write a for loop.
 
Do you want to use Java or play golf?
Other than that I think there might be a ton of answers on SO.
 
Well, there is something to be said for a single line command vs writing your own method
 
@flawr There actually aren't surprisingly.
 
Let's ssee.
 
I HAVE BEEN SEARCHING FOR 30 MINUTES
 
5:51 PM
Googling is a skill
 
;-;
 
Which also means it can be learned
 
Which also means it's possible to be terrible at.
 
@flawr I was about to post this :P
 
>_>
 
5:53 PM
Perhaps Google just likes me better.
 
Do not "ask" google. I searched "java map stream to Arraylist"
 
I searched 'java convert stream to ArrayList'
 
I searched "Dear google darling, how are you today? I'd like to find out how to convert java streams to array lists, but if you do not feel like it, let's do something fun. Anyway I'd be soo happy to get a message back from you. XOXOXOXOXOXOXO flawr"
 
@Pavel Dude, It's literally the first hit for that search
Looking is also a skill
 
It's not tho
 
5:56 PM
6
Q: Can't see the forest for the trees

AdmBorkBorkWrite a program or function that draws a tree of trees, thus constructing a forest. The trees are drawn like stacking a pyramid that's been filled to the left, and lower-level trees slightly overlap upper-level trees. This is a forest of size 1 /\ //\\ ///\\\ || || This is a forest of ...

 
@flawr "a" (and any subsequent words) was ignored because we limit queries to 32 words.
@Pavel Well, I guess it's googles silly "personalized search function" thing
It's annoying because one of my teachers used to say, "google x and it's the first hit!"
 
Yep, google doesn't like me.
 
Which I guess is what I'm doing :P
 
It's cool.
 

« first day (2204 days earlier)      last day (2626 days later) »