« first day (1846 days earlier)      last day (3012 days later) » 

8:00 AM
@Katenkyo You need to play FPS for the multiplayer! That can last thousands of hours!
 
@El'endiaStarman The difficulty was insane sometimes ^^
It's a really nice game :)
@Cyoce if I want to play a FPS for the multiplayer, I play Counter-Strike
 
@Katenkyo That is my most played game.
 
It's the only one I know of that offers a real mean to "Teamplay"
 
@Katenkyo TF2, Insurgency
 
Shtriped is growing :)
 
8:02 AM
Same goes for other type of multiplayer games, I'll always prefer DotA over LoL for the gameplay and teamplay possibilities
@Calvin'sHobbies There's no loop/flow control?
Speaking of games, it reminds me that Bravely Second must be out in my country now!
 
@Katenkyo No. You can define functions and do recursion though, like scheme
 
@Calvin'sHobbies variables can contain code blocks so? And what about conditions? ^^'
 
what is the smallest valid .java file?
that can be compiled
 
@Katenkyo Conditions are also possible, but I'm too tired to explain now. Wait till I update readme :) (or you can mess with it now, it's fully functional and the lib files give an idea of the syntax)
 
@CameronAavik class A{}?
@Calvin'sHobbies Can't play with it right now, I'll try some things tonight :)
 
8:29 AM
0
A: Sandbox for Proposed Challenges

Laughing ManDo While False At work today one of my colleagues was describing the use-case for do while(false). The person he was talking to thought that this was silly and that simple if statements would be much better. We then proceeded to waste half of our day discussing the best manner to write something...

 
 
2 hours later…
9:59 AM
Does anyone have any tips for killing an unkillable process in Windows?
 
Depends on what process it is.
 
@feersum what makes it unkillable?
 
And who started it.
 
I was debugging a program in VS and when I terminated the debugging session, it failed to kill the program.
 
@feersum The actual program or the program.vshost.exe?
 
10:07 AM
The actual program being debugged.
 
What's the error when terminating? "Access denied"?
Or does it just come back?
 
No error is given.
When I was ending the debugging session in VS, it did display an error, something about remote debugging (which it wasn't) and blamed "3rd-party networking libraries".
 
Try re-attaching the debugger to that process and then "Terminate (All)".
 
I've tried to attach debugger but it says one is already attached.
 
@feersum did you tried killing the VS process?
 
10:11 AM
Yes, I tried closing VS.
 
As the program may be associated to it, it could be removed this way
 
@feersum MS knows about this. The TaskManager's process-killer is as far as the system can go. There's nothing much you can do except logout & back in.
 
Do we have a code-golf challenge on pure path finding? Can't find one.
 
 
2 hours later…
12:11 PM
For some reason I decided to see what the smallest possible .class file was, I think i may have made the smallest at 48 bytes
 
@CameronAavik o-o
class A{}
Done.
 
that is a .java file
 
Then compile that.
Ohai @Lynn!
 
the result of that is 178 bytes @VoteToClose
 
O.O
Wat
What was your java file? :o
 
12:15 PM
I manually edited the .class file :P
with a hex editor
 
@CameronAavik you used only bytecodes to define it?
 
ಠ_ಠ
 
correct
 
The smallest .class file is 0 bytes. ಠ_ಠ
 
but, it's not valid :P
 
12:16 PM
evening
 
You never said it had to be. c:
@Quill Monking.
 
doing class A{} generates a constructor by default
however I removed it
 
@Quill 'afternoon
@CameronAavik I don't get why it generates a constructor while it could already be fined by inheritance of the class Object
 
it generates a constructor which calls the super
super constructor*
also, interestingly, every .class file starts with 0xCAFEBABE
 
not that interesting to some
 
12:19 PM
I forgot that java hates implicit :)
 
CAFEBABE? kek
 
Also, is the 0xCAFEBABEthe same in every versions?
 
yes
after 0xCAFEBABE it has the minor and major versions of java which it was compiled on
 
Hum... and does it change for compiled files of interfaces?
(I don't see why they would put it here if it has no value >_<)
 
12:23 PM
it's just a magic number
mostly so the JVM knows that the .class file is a java file and not some other .class format
I also made the class extend java/io/File because it is shorter than java/lang/Object and it has to extend something
 
12:53 PM
@Calvin'sHobbies It's pretty meh, but your code is pretty good, so yeah... gist.github.com/The-Quill/2a2b119e63015a901c6f
 
@Quill I think most of people here loves one-liner (regarding a comment you did on Calvin's code) and write them without even thinking of it^^
 
@Katenkyo yeah, that's great and all, but if you're writing code that you're not doing as a golfing thing or throwaway script, you should avoid it
 
@Quill I know, it's unreadable ^^.
I learned that the hard way, after having to modify a java file with some 100+ chars lines I wrote months before
 
1:36 PM
@Sp3000 @Dennis are you guys matching against the common passwords or against my random passwords?
I thought (when I posted the challenge), that submissions would be significantly smaller
the majority of common passwordrds are entirely numbers or entirely characters. While doing that test leads to false positives and false negatives, it still seems simpler than generating a massive regex
 
@NathanMerrill I'm not using a regex. CJam doesn't even have regexes... After filtering non-alphanumeric passwords, I'm counting the number of groups of letters or digits. If there are two or less, it's probably common; if there are three or more, it's probably random. That misclassifies over 300 passwords, and hardcodng those cases accoutns for over 90% of my source code...
 
"Significant smaller" <-- the difference between 100% and 98% is pretty big :P
 
@Dennis ah cool, that was the kind of answer I was looking for
 
Mine has a base regex that matches ~9800-9900 passwords, and incorrectly matches ~100 non-passwords. The rest is hardcoding the exceptions.
 
so, you are matching the common ones?
 
1:47 PM
Well, in a way, both. Still need to match the ~100 non-passwords too
 
right, but even though there are fewer non-passwords, I assumed that the best route to go would be to match the common passwords first
(and then cover mismatches)
 
Am I the only one who's brain explode when reading this challenge?
 
0
Q: Draw a bitmap using the least memory

Valentine BondBitmap A bitmap is two numbers for width and height of the bitmap followed by an array of width * height characters, where . indicates a black pixel and # a white one. An example is shown below. 11 7 ..#.....#.. ...#...#... ..#######.. .##.###.##. ########### #.#######.# #.#.....#.# Solution ...

 
Does anyone here have a Mathematica notebook open?
 
@LegionMammal978 I do
 
1:56 PM
Create a new cell and run:
NotebookDelete[EvaluationCell[]]; Pause[.5]; NotebookWrite[
 EvaluationNotebook[],
 Cell["Print[\"Hello, World!\"];", "Input",
  Evaluatable -> True], All]; FrontEndTokenExecute[
 EvaluationNotebook[], "SelectionConvert", "StandardForm"]; \
Pause[.5]; FrontEndTokenExecute["EvaluateCells"]
 
What is it supposed to do?
 
Try it ;)
Don't worry, it's not malicious
 
I'm just seeing an unnecessarily long Hello World program.
 
either that or I am stupid
Ok. Ah yes I see it now. Thats pretty funny.
 
1:59 PM
Give me a minute...
 
2:12 PM
@GamrCorps Okay, try this one:
NotebookDelete[EvaluationCell[]]; Pause[.5]; NotebookWrite[
 EvaluationNotebook[], Cell["", "Input"], All]; (Pause[.2];
   NotebookWrite[EvaluationNotebook[],
    Cell[#, "Input", Evaluatable -> True], All]) & /@
 FoldList[StringJoin,
  Characters[
   "Print[\"Hello, World!\"];"]]; \
FrontEndTokenExecute["EvaluateCells"];
 
OMG thats so cool
 
Writing music in JS: wavepot.com
 
2:53 PM
@Calvin'sHobbies D has nestable block comments BTW. (/+ +/)
 
Has there been a challenge about reverse-calculating people's test scores using the class mean / median / other assumptions?
Closest I recall is the challenge about determining the sample size given an average.
 
Does someone sees how I could golf down this lua answer ?
 
For example, by bio teacher does a daily iClicker thing (IDK if you've ever heard of those, it's like a little remote with the buttons A-E, with the question appearing on the screen).
Yesterday, there were two iClicker questions. The online gradebook tells me not only my score but the class mean and median.
2 questions, 48 people, median 0 questions correct, mean 0.76 questions correct
 
My last school used to have that
Eventually they gave up on trying to connect them
 
3:10 PM
0
A: Sandbox for Proposed Challenges

Valentine BondI wasn't aware of this place so I tried to post my challenge straight to the main page which proved to be difficult. I have deleted and pasted it right here without any changes done. I would be thankful if you would help me to make this a better formulated and expressed challenge. Bitmap A bi...

 
3:30 PM
@ETHproductions I think you should post the NTFJ cat program and truth machines, as you found them. ^_^
 
Finally finished it
Hello World meta-meta-golfing:
a = EvaluationNotebook[]; SelectionMove[
 EvaluationCell[], All, Cell]; Pause[.5]; NotebookDelete[]; \
NotebookWrite[a,
 Cell[BoxData[""], "Input",
  Evaluatable ->
   True], All]; SelectionMove[a, All, CellContents]; Pause[1.8]; Do[
 Pause[.2];
 NotebookWrite[a, b], {b,
  Characters[
   "Print[\"Hello, World!\"];"]}]; Pause[1.5]; SelectionMove[a, \
Previous, Character]; SelectionMove[a, All, Character]; \
NotebookDelete[]; Pause[1.5]; SelectionMove[a, Previous, Character]; \
SelectionMove[a, All, Character]; NotebookDelete[]; Do[Pause[.1];
Very meta
(Run in a Mathematica 10 notebook)
 
Did you run it?
 
No but it looks cool
 
It is ;)
Let me see if I can make a GIF
 
3:53 PM
back down to 10.1 q/day
 
@Doorknob It's still >10 :)
 
1
Q: Draw a timeline

DoorknobGiven an input of a list of integers representing dates, output an ASCII art timeline like the following: <-----------------------------> A B C D E The above timeline is the output for input [1990, 1996, 1999, 2011, 2016]. Note several things about the timeline: The first...

 
4:16 PM
First steps of my programming language! The basic structure is implemented, and it can do a Hello, World <3
I'll leave you on that glorious moment, have a nice day!
 
4:53 PM
what is "Hello, World <3" ? I have usually only seen an exclamation mark after hello, world...
 
You love the world?
 
Maybe it's stating that the string "Hello, World " is less than 3
Make sure neither (char *)1 or (char *)2 are "Hello, World "
lol
 
maybe his newly created language has a bug which thinks that Hello, World is less than 3
 
So this is great.
The people who are repairing my computer told me I had a problem with the keyboard. After I told them that my computer was crashing when the wifi came on.
They claim that the problem was fixed after wiping the drive, except that I used 4 different operating systems while testing the computer myself.
And they claim that the problem was that the arrow keys weren't working. Which they were before they went into the repair.
/me is dubious.
 
gr8 m8
 
5:03 PM
0
Q: Scheduling problem

joeyI run a coed volleyball league. There are 8 teams of 2 people. Each team has one man and one woman on it. I wish to construct a schedule of games where teams trade players between games. I want: 1) Each man to play against all other men 2) each man to play with each woman on his team 3) each...

 
So, yeah, I'm buying a new computer. >.> Taking the old one back and plugging it into my router as a slave computer for my pi.
@Dennis Vitsy update?
 
Anyone here have Mathematica?
 
.o/
I do.
 
Try:
Get["http://pastebin.com/raw/er17wCmA"];
 
@VoteToClose Updated.
 
5:06 PM
Any specific version of Mathematica?
@Dennis \o/
 
It should work in 10
 
Oh, hell, the license is only active when I'm at school.
 
? wat
 
I have Mathematica on a school license.
 
But any recent version should work
 
5:08 PM
It'd have to connect from inside the network of my school (or via proxy) to get mathematica on.
 
Too bad
 
:c I know.
Something tells me that meta-meta-meta-meta-meta-golfing is involved.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Thanks :)
 
i have online version
 
In fact, it's infinitely meta
@Optimizer Try it
 
5:09 PM
o-o
Dam son.
 
> File::fstr : File specification ​ is not a string of one or more characters.
> Get::sandbox : The operation << http://pastebin.com/raw/er17wCmA is not allowed while running in sandbox mode.
 
Dang
Oh well
 
using HtmlAgilityPack;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text.RegularExpressions;

class Program
{
    static void Main()
    {
        Regex r0 = new Regex("(?: |^)(\\p{Ll}+)(?:[ .,?!]|$)", RegexOptions.Compiled);
        IEnumerable<string> ieSsE0 = F0(r0);
        using (FileStream fs0 = File.Open("all_words.txt", FileMode.Create))
        using (StreamWriter sw0 = new StreamWriter(fs0))
        {
            foreach (string s0 in new SortedSet<string>(ieSsE0))
?
 
@ETHproductions Also, you can leave off the ending paren on the cat
 
5:25 PM
Is there a way I can provide a constant string as a parameter (&-reference) that expects a const char** without creating an intermediate variable in C++?
 
use VBscript it's great and does all things
 
err is xkcd down or is it just my internet being a plebian again
oh there it is
That had me in panic mode for a second...
 
BTW, there is a backup DNS at xkcd.net.
 
It was down for a second it seemed.
@mınxomaτ ooh
 
The .net domain is however not configured for the What-If subdomain.
 
5:30 PM
@VoteToClose What about that particular program of mine?
 
Given "321" as input, is "123" valid output for cat?
 
Probably not.
 
Well, no.
 
Okay :(
+1 bytes for cat.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Isn't there something that reverses cat? Tac?
Oh no, that's just lines.
 
5:33 PM
-1 byte \o/
Y, i:gF
 
@CᴏɴᴏʀO'Bʀɪᴇɴ That's called tac
 
@ETHproductions @mınxomaτ Thanks
 
@ETHproductions I thought tac reversed only at linebreaks?
 
@mınxomaτ Actually, yeah, I think so
then it's called "Reverse STDIN"
 
@mınxomaτ Nope; you need to allocate a space for the pointer.
 
5:37 PM
Ah damn.
 
0
A: Simple cat program

Cᴏɴᴏʀ O'BʀɪᴇɴY, 4 bytes i:gF Simple enough. This two-link program takes input characters and prints them out as you feed input. Input an empty string to terminate. Explanation: i:g F i take input (string) : duplicate g print one item F conditional link: pop N, and if N is zero (falsey...

 
I take it Y is short for YAGL which is short for Yet Another Golfing Language?
 
It's not a golfing language.
 
@Martin, could you try:
 
@CᴏɴᴏʀO'Bʀɪᴇɴ WHAT?
 
5:42 PM
Get["http://pastebin.com/raw/Hry9WJBH"];
 
what is it then?
 
@ETHproductions It's a language based off of a series of links. It is rather inefficient to write complex programs.
 
Ah, so just an experimental esolang that happens to be good at golfing sometimes?
 
Coolio
 
5:44 PM
Sort of how like BF seems golfy on things like truth machine and count up forever :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ vitsy.tryitonline.net/…
 
um... verbose mode?
 
Yup.
 
interesting.
 
@VoteToClose EEEEEEEEEEEEEEEEE
 
5:48 PM
kek
I still have some bugs to fix, though.
It should recognized the verbose commands as well as characters for double quote toggles.
 
@LegionMammal978 not at all a dodgy request... :P
 
What's the technical term for footnote markers, i.e. the superscript <sup>1</sup> thingys that point to footnotes?
 
TeX just calls them footnote marks
 
ok, that works
 
@Dennis I've added a debugging thingy to pl, can you pull?
Something's going wrong and I'm not sure what the issue is
 
5:55 PM
Pulled.
 
kthx
then what on earth is going on with unpack
 
Hi!
 
hello
 
@Dennis Vitsy needs a pull, too. :P
 
I'm trying to pick a compression algorithm for pl, and I just can't decide.
Obviously a dictionary approach is the best but too many languages have that now.
 
5:59 PM
@Lynn ev'ning... how is the zalgo language coming along? :)
 
ooh zalgo language?
 
Ahh, now would be a great time to work on that. ♥
 
@CᴏɴᴏʀO'Bʀɪᴇɴ How on earth are you gaining rep so quickly what is going on hacks
 
Have you tried it yet? It's cool ;)
 
@VoteToClose Pulled.
 
6:04 PM
^ I couldn't post that if it weren't a one byte message.
 
yeah yeah
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Better debug messages.
 
@quartata I post a hell of a lot of answers
167 answers, 20 questions.
You have 75 answers and 14 questions. shrug
 
2
Q: The "Do While False" idiom

Laughing ManDo While False At work today one of my colleagues was describing the use-case for do while(false). The person he was talking to thought that this was silly and that simple if statements would be much better. We then proceeded to waste half of our day discussing the best manner to write something...

 
I have 269 answers and 1 question
 
6:09 PM
Noice.
 
81 questions, 54 answers.
 
134 answers, 11 questions.
 
This is my highest-upvoted answer:
100
A: Paint Starry Night, objectively, in 1kB of code

LegionMammal978Mathematica, score 14125.71 "a.png"~Export~ConstantImage[{75,91,110}/256,{386,320}] Simply saves this image: to a.png.

It outputs a constant image :p
 
XD
My highest answer is a series of emoticons.
 
6:11 PM
@VoteToClose I'm right behind you with 130 answers, 11 questions ... but you've got 1200 more rep. Obviously, this means that people on this site hate PowerShell. ;-)
 
My highest answer is an MC answer. >.>
39
A: Output the Current Time

VoteToCloseMinecraft 1.8.7, 7 + 8 = 15 blytes (bytes + blocks) Only one command block involved: xp 1 @p Output goes to the client console like so: As part of the normal output. This is the system: xp gives a specified amount of experience to a specified player with the syntax xp <amount> <player>....

@TimmyD Or that they just need to be more aware of PowerShell. ;P
 
People like random languages/insanely sort languages.
 
At least you didn't answer in perl.
 
or new concepts
 
See: Vitsy/MC/AppleScript.
 
6:13 PM
Yeah. I wanna start golfing in Labyrinth.
 
please do :)
 
Golf in Vitsy. :D
My child would be honored.
 
how to confuse anyone :
 
1) go to http://codegolf.stackexchange.com/questions/69930/paint-starry-night-objectively-in-1kb-of-code
2) Open the leaderboard snippet. Run it.
3) Full screen it, wait for it to populate
4) Click on the link to the best answer
5) Be confused as hell looking at the url.
 
6:15 PM
You'd think with the high amount of languages I'd have at least one devoted follower >:|
 
.o/ I've followed Simplex and Jolf, though I don't really know JS so I can't use either effectively. >.>
Is do{}while(conditional); a thing in Python?
 
@VoteToClose \o/
the former should be easier once I get the interpreter more... functional.
 
1
Q: Taking a stroll around a Monopoly board

tfitzgerFor those of you who are unfamiliar with a Monopoly board, here is one: The task is this: find the minimum number of rolls it would take to travel around the board, starting and ending at the GO square. The parameters: You must travel clockwise from the GO. You have two six sided dice for r...

 
kek
 
@VoteToClose No
@Dennis Can you try cpan Algorithm::Combinatorics?
 
6:19 PM
@quartata Damn. I was just thinking that that would be a suitable replacement for switch/case.
 
Python's bad that way.
 
I still want to learn Python. >.> Anybody know any good links to learn it from?
 
@quartata Same problem as last time. Cannot allocate memory
I need a better server.
512 MiB of RAM isn't stellar.
 
Or multiple servers to pull from. o-o
You can just use a whole bunch of cloud9 workspaces.
 
@Dennis That's fine.
 
6:22 PM
An interpreter per server. :P
 
I think I can just bundle the module with pl
I was just curious if you could CPAN :P
 
@VoteToClose That wouldn't help with a thing. The server has practically no load right now. Stupid CPAN needs too much RAM...
 
Oh. Damn.
How many queries do you get a day?
 
Anonymous
@Dennis Just download more
3
 
Anonymous
 
6:29 PM
@Dennis Who's your host?
 
Anonymous
@VoteToClose Alternatively this is a good way to learn Python
 
@Dennis How much do you pay atm?
 
@Mego ಠ_ಠ
 
@Mego @VoteToClose If you want to use Python for other things than golfing, better learn Python 3 (change the version in the upper left corner).
 
@Zgarb Yeah, I'm planning on implementing Vitsy in Python.
 
6:33 PM
@VoteToClose Oo! Can I port it to JS?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Sure! :D
 
\o/
That'll be fun!
 
I'll add you as a collaborator on the GitHub page.
The only thing is that we both have to stay up to date. D:
And we can't implement the same things. D:
 
(i.e. File I/O, Shell...)
 
6:34 PM
Oh :|
JS can do File I/O
 
It can? :o
 
Yeah! It's something like <input type="file"> and force a click.
 
@quartata DigitalOcean
 
o-o Huh.
 
And what about a shell?
 
6:35 PM
@mınxomaτ 6 USD per month, including weekly backups.
 
It does shell commands (so, in java, Runtime.getRuntime().exec("sh; exit");)
 
Oh. :|
What does that do?
 
It just executes as if from the command line (that particular one opens sh, then closes it).
 
Dang. It'll be like a safe mode, then.
 
@Dennis Hm. This is a close alternative. It's $5.5 p.m. for 500GB HDD + 2GB RAM and an 100Mbit/s link. I have/had several of them, worked for me. (You have to stalk the site and wait until the tier you want becomes available). Just a thought.
 
6:40 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Eh, more compatibility is good. Means we can put it directly in stack snippets. :D
 
Ooh, that reminds me, I need to put eval() into Vitsy for itself.
 
As in, allow it to eval its own code given a string.
 
Oh, cool! That's really fun for meta programming
 
6:43 PM
^ To be fair, though, Vitsy can technically already do that with use statements.
 
I never got what those did tbh
 
If you import something that doesn't exist, it'll still label it as imported and then if you write the file...
@CᴏɴᴏʀO'Bʀɪᴇɴ Execute Vitsy programs in separate files.
 
ohhhhhhhhhhh doy
cool!
 
Yeah. :D
 
Second favorite feature of vitsy confirmed.
 
6:46 PM
It's very limitedly used, though, since people only use Vitsy for golfing.
 
Hah, these P-vs-NP papers are so wacky. This one proves P=NP using logic derived from an ancient Arab legal system.
 
And you can actually import the main Vitsy class, overwrite it with its own code and execute it, if you want.
 
That's... trippy.
^^ and ^^^
 
@Zgarb wtf
 
"'Hello'rZ"&iG.00k
;u self-override
^ That file will overwrite itself with a program to output Hello and output Hello if put in a file called self-override.
 
6:52 PM
> Considering the same problem in classic Arabic
oh boy
 
@quartata At least once a month, someone "proves" either P=NP or P≠NP and uploads it to ArXiv.
They are occasionally hilarious.
 
@VoteToClose huh. file extension? :3
 
Oh, yeah, you need the file extension in the ;u declaration.
Also, I appear to have made a bug in the interpreter for non-safe.
 
holy crap I beat pyth
(one of them)
 
> If, e.g., we have two sentences: Naserun yashkuru Allaha (= Naser thanks Allah), Nasara Alragulu Akhahu (= the man supported his brother) the terminal Naser which might be - without tashkīl - confused between verb and noun can be identified using I‘rāb via its tashkīl: "ara" to be a verb in the second phrase while it must be a noun in the first one because the "un" (also called Tanween) is only used for nouns
Are you sure this is a computational complexity paper
 
6:56 PM
PS C:\Tools\Scripts\golfing> 'P'-eq'NP'
False
PowerShell knows what's what
 
> The first result answers the P=NP question positively while the second answers the open question whether there are constant approximation algorithms for the MinFBDD problem positive as well.
Page 86
 
OK.
(I was just kidding)
But still. This is.... something
 
There's a nice contrast between our quotes.
 

« first day (1846 days earlier)      last day (3012 days later) »