« first day (1853 days earlier)      last day (2984 days later) » 

5:02 AM
$'main'
 \/oi-@
@--e<
#o[.]-@
Easy challenges are fun
 
@Dennis can't you tap the big red dot?
> notificarion
 
Usually I got 10 - 20 notifications when I pick up my phone. Most of them are obsolete and open a new window...
 
5:47 AM
@Dennis I usually end my messages with periods (or other punctuation) unless it's basically an offhand remark or something.
 
For Image.parseInt("11111111", 2); I get 255 (unsigned byte). Anyone know how to get the signed version?
In java btw.
 
Any reason you can't just put -128 after it?
 
Huh, I thought parseInt was supposed to parse as a signed integer.
 
Well, I guess it doesn't know it's supposed to be a signed byte.
 
6:08 AM
Just cast it to a byte.
 
0
A: Sandbox for Proposed Challenges

SoloKixHow Many Laps? I was at my taekwondo training last night and the first thing we do when we start is a ~5 min jog around the gym to get warmed up. The problem is as follows. We run around the edge of the gym, everyone starting from wherever they like, and everyone jogs at a slightly different spe...

 
Wooo Tae Kwon Do! :D
 
You do taekwondo?
 
Did it for 10 years a while ago.
 
nice! iv'e only be doing it for about 2 years but i love it. Great place to think about random stuff
 
6:15 AM
haha, yeah
 
This is my first challenge attempt and i'm a little worried iv'e missed some really obvious way of working it out :)
 
In any case, thank you for using the Sandbox. :)
 
Haha yeah, thats what it's there for1
 
Yes, and it's very good to see a new user understand that. :)
Hmm, looks like it could be a nice little challenge. I'd wait a couple days to see what other people think.
 
mmm yeah i'm in no hurry now that iv'e sat down and written it out.
 
6:19 AM
I've never really liked or used the sandbox, but I've recently posted 2-3 really sloppy challenges. They all would have really benefited from a couple days in the sandbox.
 
At least now i wont forget it!
 
I think I'm going to start using the sandbox a lot more often.
Wait a second, Calvin's isn't Calvin's anymore?!?! What the heck, you're gone for one day and everything goes crazy!
 
also is anyone worked on this at all?
54
A: Sandbox for Proposed Challenges

Wander NautaEDIT: This challenge is looking for someone to either writefinish and run an arena server, or someone that wants to rephrase the challenge so that an arena server is not needed and who is also prepared to run entries manually. Both options turned out to be more complicated for me than I originall...

because i think it sounds really cool
 
Several people, I think. It's hard, though.
I'd like to take a crack at it eventually, a couple months from now.
 
Iv'e actually started writing a client/server for it and it's going ok. But i started from scratch.
 
6:25 AM
cool
 
0
A: Write a program that makes 2 + 2 = 5

ӍѲꝆΛҐӍΛПҒЦꝆDUP It's simple: 2+2=5. Try it here. Hehe, good luck with this one. Explanation DUP treats most A-za-z as variables, albeit uninitialized. It pushes 2 uninitialized variables to the stack. 's pushes charcode of s to the stack. Whitespace is entirely ignored. simple pushes 6 more uninitializ...

Enjoy!
 
I wrote the client to take input piped from stdin/stdOut so that it any one can use my client(It has a visualizer to watch the chaos unfold) with pretty much any language they want
Im just running some tests with the server to get it to make matches between all the bots and not do anything to stupid.
 
Is this spam?
It has all these random links in it yet seems sort of on topic
 
Yeah, that is weird. I flagged as spam anyway.
 
Even if it wasn't spam, it has no objective winning criterion.
 
6:40 AM
0
A: Sandbox for Proposed Challenges

DJ McGoathemGame Of Life The Game of Life is a zero-player game, where cells evolve over time by following a simple set of rules determining whether any given cells will live or die. I have found that generally speaking, the kind of people that know about and like The Game of Life are pretty nerdy. And thi...

 
Any thoughts on ^^ that post?
 
-3
Q: Calculate the number of happy primes between 1 and 1 million

Green CodeHappy Prime numbers: A happy prime number is a number that is both a prime number and a happy number. For example, the happy prime numbers below 500 are: 7, 13, 19, 23, 31, 79, 97, 103, 109, 139, 167, 193, 239, 263, 293, 313, 331, 367, 379, 383, 397, 409, 487 **The goal of this problem isn't j...

 
It's like watching molasses. :P
 
^- node server for multiplayer GoL
i could probably adapt it to let bots play, if i can figure out how to get it hosted
 
6:48 AM
Please don't manually remove spam from posts. I almost didn't spam-flag the question, because it didn't look like it. After 6 spam flags (or one from a mod), the post is edited, deleted and locked by Community, and the poster is added to SE's red list.
 
@Dennis OK, that's good to know. I'll remember that in the future.
 
7:17 AM
@Dennis yeah, that definitely wasn't spam. and the idea of algorithms with certain energy goals is an interesting one.
I bet it could be incorporated into a good challenge
 
@quintopia It could be, but that challenge was clearly spam. No valid challenge should ever need to provide an email link.
 
0
A: Sandbox for Proposed Challenges

LiamCalculate π(n) π(n) is the number of primes less than or equal to n. Input: a natural number, n. Output: π(n). Scoring: This is a fastest-code challenge. Score will be the sum of times for several TBD values of n. Your code should work n up to 1 billion (?).

 
@DJMcGoathem it didn't need to provide an email, no, but providing an email doesn't invalidate a challenge
so yeah, provided a not strictly necessary email, and yet definitely not spam because of it.
 
@quintopia, no it was spam because it said: "if you would like to be able to save and compare efficiency of your programs feel free to register at greencode.cs.txstate.edu/";
An uninspired challenge that took 30 seconds to type up with random links scattered about it while pleading for us to register for something online? spam.
 
nope, even that's not enough to make it spam
 
7:24 AM
It was definitely spam.
There was a nice idea in the challenge part, but the focus was definitely to drive traffic to the website/email.
S[pam] with frosting on it is still s[pam].
 
1) it is proposing a new type of challenge: most energy-efficient code
2) it provides a tool for automatically scoring this challenge and links to this tool
3) this tool is hosted by a respected university, clearly part of some larger campaign to promote more energy efficient code
4) an email is provided for those who want help with the tool
5) no product is being sold
 
Oh wow, Windows 10 now has a very nice interface for editing the system PATH.
 
not really...it's basically the same one that was in 8...
 
I don't remember each item being on its own line.
 
pretty sure they were...may be misremembering
 
7:28 AM
Last time I did anything with the PATH, it was all in a single one-line textbox.
 
can't remember ever messing with anything like that.
 
 
1 hour later…
8:46 AM
@quintopia The path interface got nicely upgraded. El is right
 
8:56 AM
@Doorknob: I downloaded vim for Windows and the hybrid color scheme. I think it did work, but then I did gvim just to see what it looked like, and since then, I can't get :colorscheme hybrid to work at all.
That command does work in gvim though. Pretty frustrating, honestly...
 
 
2 hours later…
10:29 AM
0
A: Sandbox for Proposed Challenges

Sp3000The broken minus parser code-golf parsing Sam is trying to create a new programming language, but is having a lot of trouble getting the parser right. For example, 4--5 evaluates correctly to 4 - (-5) = 9, but 4-5 is giving a result of -20! After doing some digging around, Sam realises th...

 
11:06 AM
hi all
Dear algo experts, if I have two permutations A and B, how hard is it to find the longest common subsequence of A and B?
E.g. 152463 and 652314
has lcs 3 I think. E..g. 5 2 4
 
11:37 AM
I'm not great in algorithms, but here's about O(2^n) in Pyth anyway: elD@FyMQ (try)
I'm quite sure that's not what you're looking for though :D
 
11:49 AM
It's quiet in here
 
Chat mini-challenge: , output the following exact string: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
 
@Lembik With just two sequences I think dynamic programming was O(len(A)*len(B))
 
12:13 PM
@Adnan Pyth, 8 bytes: s+rBG1UT (try)
 
@El'endiaStarman I can't help with Windows stuff -_-
 
@Doorknob I could, but I can't help with Vim stuff ;_;
 
12:34 PM
@Pietu1998 Very nice :)
 
@VoteToClose The real question is: how many times did you habitually hit this site, only to be disappointed?
 
12:51 PM
@Adnan Brachylog, 13 bytes: `@Aw@uw,0:9ew`
(missing a backslash after the last w)
 
@MitchSchwartz Interesting: in my CPython, hash('') is zero
@MitchSchwartz As a result (I think) it's always printed in front when a set contains the empty string?
@MitchSchwartz Oh, sadly return`O`[10::5] doesn't save any bytes. :(
 
@NathanMerrill Answer: too many.
 
Why did VoteToClose get suspended?
@El'endiaStarman gvim and vim color schemes are wholly different beasts
Some .vim files just don't work for one or the other. :(
There are tools for "porting" them, I think.
 
1:08 PM
2 days ago, by VoteToClose
@Dennis Could you please freeze my account and chat ban me for 3 days (or whatever time period is shortest past that)? I'm going to be really busy in school the next few days and CG is just going to get in the way.
 
1:18 PM
@Fatalize I think you need to escape the escape character :p
Nice solution though :)
 
I just beat a Java answer with another by 14 bytes because they forgot about a builtin. >.>
Much proud of self.
 
@Adnan CJam, 11: '{,97>_euA,
 
@VoteToClose Isn't it supposed to be case-insensitive?
 
Oh, dammit. Yeah, one sec.
ಠ_ಠ That makes it longer. I hate everything.
 
1:32 PM
Yea, I didn't bother with that one when I saw it because it's just a couple builtins :/
 
Hmm.
I still think there's a shorter way to do it... >.>
With exit codes. >.>
@Geobits How would I write a regex that matches with ignore case in Java? Java regex is not my jam.
 
I think they use a pretty standard regex flavor. That said, I don't regex much, so I'd have to look it up :P
 
@VoteToClose with (?i)?
 
@somebody (?i:X)
 
(?i) makes it apply until the end of the regex
 
1:44 PM
You're right, thanks. :D
 
(?i:X) is shorter if you want to turn it off later though
 
Nah. I'm searching for a single item anyways.
@Geobits Any problems with it now?
 
0
A: Sandbox for Proposed Challenges

ManuKOTH Jump 'n' Run king-of-the-hill A Jump 'n' Run game where you have to run from the Start to the End. Here is an example map: ████████████████████████████████████ █ █ █ █ █ █ █S █ ...

 
i just realised almost everyone here has created at least one esolang
wants one too
but idk what is really esoteric/really short
 
@VoteToClose Not a problem, but can't you use the split() version without the limit to save a couple?
 
1:50 PM
It doesn't always have to be short.
@Geobits I'm an idiot
 
@somebody Is overrated :P
 
needs to know emoticon names of -_-, ;_; and >.>
 
@VoteToClose but it has to be esoteric or short
 
@somebody ghibli-cross, ghibli-noh, and shifty-raccoon
 
1:52 PM
@somebody esoteric ≠ short
 
because a normal one is too ordinary
 
Just make it really hard to use.
 
harder than malbolge?
or like seed?
 
The motivations for new languages here are often strange to me.
 
@Geobits ?
 
1:54 PM
That was a jab at "make it really hard to use" ;)
 
but
 
That's why I usually create new languages, because I'm in the mood to weird Geobits out.
 
someone made malbolge
 
Well yea they did. But why make another one?
 
malbolge is not hard to use enough
 
1:55 PM
I can kinda see the point in making a new golfing language, or making a new one to learn stuff about language creation. Making one just to be hard to use seems like a waste of time to me. YMMV
 
@Geobits well i need an aim for a language
 
@Geobits sure, but we enjoy Hexagony, even though that was its purpose
 
hexagony isn't hard, it's just a fungeoid
 
@NathanMerrill I dunno. I know that's a side effect, but I don't think that's its main purpose in life. @Martin could verify.
 
its literally in its name :)
 
1:56 PM
Well sure, but that's because of the rule of puns.
 
martin created it because he had't seen another hexagonal fungeoid
 
I think I have some hexagonal fungoids growing in my yard.
 
needs another idea
 
regardless, I'd argue that all esoteric languages are interesting because they are hard to use
 
2:02 PM
I've been trying to think of one that would gross out the tab-haters in here, but I haven't nailed down the specifics.
 
we do different creative things to make them esoteric
 
@Geobits whitespace?
 
Not whitespace. Some kind of "more normal" language that forces tab use :D
 
Make?
Make requires tabs and is pretty gross.
 
@Geobits python, geobits edition?
 
2:03 PM
@feersum I'm going to lose any motivation I did have if you guys start listing off existing languages that do this already :P
@somebody There will never be a geobits-python, since Geobits dislikes Python ;)
 
grc
@Geobits ಠ_ಠ
 
Mild disapproval is okay.
I don't hate it with a burning passion, but I'd rather work in most other mainstream languages. It's close to JS on my personal chart.
 
grc
what's wrong with Python though?
nvm
 
wait
 
> what's wrong with Python though?
 
2:06 PM
you don't like JS?
 
wat
 
@grc To be completely honest, it's mostly non-familiarity. Nothing that can't be fixed, but I have no need or desire to fix it.
 
grc
fair enough
 
blocks are not between { }
doesn't parse in my head
 
@somebody I don't have an answer prepared for that. I'm used to people agreeing with it straight away :)
 
2:08 PM
@Geobits ?
 
Has nobody ever told you that JS is terrible?
 
it's terrible for some things
 
Like being a language >_>
 
it's really good for websites/userscripts though
 
2:09 PM
JS has too many WTF moments for my taste.
 
grc
ES6+ seems pretty neat though
 
wtf moments?
 
We should make a language called "JavaScriptScript." What Java is to JavaScript, JavaScript is to JavaScriptScript.
 
@Geobits what languages do you like?
 
I've got no real issues with C/C++, Java, VB* as far as "big" languages go.
 
2:13 PM
@Geobits vb*?
 
All web languages I've seen/used kinda suck.
 
grc
D:
frontend?
 
@somebody Both VB6 and the .NET varieties
 
then what about c#?
 
@somebody Haven't used it, but it seems like a bastard cross between C++ and Java, so it would probably be okay, though I don't see the point in learning it unless I need to for work or something.
@grc Yea, I meant front end.
 
grc
2:15 PM
you could include php in that too
 
@Geobits there are front end web langs other than js?
 
@Geobits And VBScript. Don't forget the red-headed stepchild in the room.
 
@TimmyD The only thing I've ever really used VBScript for was chatbots ;)
@somebody Actionscript, flash, silverlight... basically anything that runs in a browser kinda sucks imo. It's surprising to me that it's still the case, but there it is.
 
grc
I had to use Basic4Android once...
 
Coming from BATCH way back when, VBScript was the bomb-shizzle.
 
2:19 PM
@grc I never tried that. Is it as excruciating as it sounds? I like basic and all, but...
 
grc
yes.
it's not even proper VB
or Java
 
Dang ... you know a language is bad when you can say "It's not even Java..."
 
> What's that? It's hard to write Android code in anything besides Java, C++, or JS? Hell, let's throw BASIC into it. That'll fix it.
 
grc
iirc it was a limited subset of VB that gets hacked/transpiled into Java to run on Android
 
10 GOTO JAVA
 
2:23 PM
@grc Probably still better than PhoneGap :D
 
10 CLASS HELLOWORLD
20 PUBLIC STATIC VOID MAIN (ARGS AS ARRAY OF STRING)
30 ECHO HELLO WORLD
 
grc
@somebody 018-017==[]+'3'
 
Don't you mean ARGS AS ARRAY OF STRING
 
15 {
...
25 {
...
35 }}
 
It's a golfing language ... the brackets are implied. ;-)
 
2:48 PM
We need a golfing version of COBOL
 
3:05 PM
@Lynn holy shit that's short
 
@Roujo We could call it COOL.
 
I like how ELU's ad encourages people to refrain from using the website.
 
Hahaha
 
@feersum We could do the same. "Have a CS homework assignment? Take it elsewhere!"
 
3:15 PM
@Zgarb This would be perfect.
 
Submit it to our ad campaign meta thread.
 
> Take it elsewhere! Stop cheating!
 
“Have a CS homework assignment? Visit our tips for golfing in C++ and impress your instructor.”
 
By the way, when are we going to actually move forward with the ad campaign?
 
I'm pretty sure our constant HNQ presence is all we need :P
 
3:18 PM
@Adnan PowerShell, 36 bytes -join[char[]](97..122+65..90+48..57) ... nothing fancy, sadly
 
@Lynn hahahaha
 
@TimmyD Still a nice solution :)
 
0
Q: Build a Calculus Interpreter I

ricdesiA struggling manufacturer named Tennessee Instrumental is desperate to get into the calculator business. Problem is, they don't have any software engineers on payroll, and the deadline is coming up fast. It's your job to help TI configure a basic calculus-ready calculator that can simplify expr...

 
@PhiNotPi Maybe I should. :D If I find the time to make a pretty picture, that is...
 
1
Q: Custom compression tool

AdnanI have made my own compression tool for a stack-based language that uses a dictionary compression method. The code for the decompression is the following: elif current_command == "\u201d": temp_string = "" temp_string_2 = "" temp_index = "" temp_position = pointer_position wh...

Subliminal message to make them come to Code Golf
 
3:34 PM
Somebody give me a brain scanner and 6-8 weeks,
 
(warning: sound)
 
Does @Community auto-unfeature?
 
@RikerW "Featured" questions are those with bounties on them.
 
No, the feature tag.
 
3:47 PM
Quick MS paint doodle.
 
It has room for an image in the middle. IDK what it should be, though.
 
Disapproval face
 
@Zgarb I vote that to be our official ad
 
@Geobits You disapprove, or it needs a face?
 
It needs a face >_<
 
3:49 PM
@PhiNotPi SO's logo
 
^^
@PhiNotPi s/SO's/our/
 
We don't have one yet though...
 
@RikerW AFAIK, that's done manually on the corresponding Meta questions. It's a special tag, though, in that it's mod-only.
 
"we can do your homework in just a few characters, your teacher will be so impressed!"
 
@Geobits ^
 
3:50 PM
Honestly, I think ads would be better served if we waited for design, iff it's not going to be very long.
 
"We can do your homework. Readability and understanding not guaranteed."
 
@RikerW I disagree that that is our logo. Very much.
 
@Geobits nah, its only going to be 6 to 8 weeks
 
@PhiNotPi I vote for llama Martin
3
 
@Optimizer Yea, that's what I was thinking ;)
Yes. Llama Martin would fit perfectly there.
 
3:52 PM
@Geobits What don't you like?
 
@RikerW The theme, the colors... dunno, the package as a whole I guess. No offense to the artist, I'm just not a fan.
 
@RikerW I'm getting a "starship troopers" vibe
 
Yea, the wreath reminds me less of olympics and more of military seals/logos.
Sergeant Brackets reporting for duty.
 
or hunger games.. I think it also had a similar logo somewhere
 
Since designers on other sites have taken into account user ideas on meta, please browse the meta post and downvote/comment loudly for anything you don't want to see.
35
Q: Graduation Design Ideas

Helka HombaProgramming Puzzles & Code Golf will someday graduate out of public beta, and it will get a new site design. Stack Exchange employees generally do all the design work and make the design decisions, but that doesn't mean we can't nudge them in the right direction when the time comes. This meta po...

 
3:55 PM
I want something pretty
 
Heh
"Programming Puzzles & Code Golf will someday graduate out of public beta" [citation-needed] — Doorknob ♦ Jan 4 at 2:13
 
I wonder if we could fit a ><> or Hexagony or similar code that prints out "Programming Puzzles and Code Golf" when executed.
 
do we have a kolmogorov for that? ^
 
Phrase too long to look good probs
 
@trichoplax I've thought about going through and downvoting a bunch of stuff there. I don't have any real alternatives, though, so I'm not sure what good it is to shout down the others. I just know what I like when I see it, and haven't yet, that's all.
 
3:57 PM
There's not much repetition, so it will be hard to compress
 
maybe bubblegum can help
 
More like Jelly, currently anyway
 
@Geobits I've done a fair bit of downvoting there, and upvoting comments that point out why things won't fit. I'd rather see meta full of downvoted things to avoid, than just end up with a design that appeared to be popular.
 
True enough I guess. Let me get my downvoting finger warmed up :P
 
I'm sure they'll come back to us a few times for feedback though, so this isn't an emergency...
 

« first day (1853 days earlier)      last day (2984 days later) »