« first day (1705 days earlier)      last day (3123 days later) » 

12:31 AM
That's what I get for procrastinating. I should have published CRup by now...
 
what
 
Similar to Unary/Lenguage, but decodes to CJam.
 
So you implemented another esoteric language in CJam?
 
Not yet, but I'm planning to. Since it decodes to CJam, implementing it in CJam makes sense.
This is a trivial win in Unary:
15
Q: Difference should make no difference

sanchisesYour company lately hired a new bunch of extremely dedicated sysadmins. They feel that just watching computer screens is quite limiting (I mean, 60Hz refresh rate is just NOT enough), so they hooked up the CPU data bus to an DAC and play that on a speaker through the server room so that they can ...

The non-trivial part is writing the program.
 
12:35 AM
If it's a trivial win but it's nontrivial to implement a solution, how is it trivial to win?
confusion
 
@Dennis Bad name choice. You're gonna get all sorts of quips involving s/u/a/. :P
 
^
"CRup" looks like a drunk person attempting to spell "crap." Just sayin'.
 
Simple lack of imagination:
8
A: Coating Every Pancake

DennisCJam, 32 30 29 bytes q~2@#2b\{)/(W%)1$0=|@]s:~}/:& Try it online. Test cases $ cjam pancakes.cjam <<< '2 [1 1 2 2]'; echo 1 $ cjam pancakes.cjam <<< '2 [1 2 2 1]'; echo 0 How it works q~ " N, L := eval(input()) "; 2@#2b ...

CJam? More like CRup. — Ingo Bürk Sep 29 '14 at 5:41
 
I don't understand
 
That's where I got the idea from. CRup == syrup
 
12:38 AM
@AlexA. @Doorknob You should be pleased. I recently re-realized why I like spaces instead of tabs.
 
:D :D
 
Basically, I like lining up comments. Tabs broke it...
 
:D !!!!!!
Tabs break everything eventually
 
I'll set my IDEs to use spaces but to look like it uses tabs.
 
12:39 AM
Ew
 
@Geobits What do you suggest?
I feel like tabs are only reasonable if you say that all tabs must be 4 spaces. Or all tabs must be 2 spaces. Or some rule like that, and the rule must be consistent for every possible editor.
 
For comments, spaces are fine. Just not for indent. I don't know an IDE that lets you specify.
 
Oh well. The bigger problem was probably that I wanted to indent my code at 3-width instead of 4.
 
@Justin Any decent editor should be able to let you do that with tabs...
 
That can be changed in any decent IDE easier with tabs, no?
 
12:42 AM
(not that I'm saying you should use tabs)
 
@Doorknob I did it with tabs. My editors are decent. But then I opened up the file in an editor that thought tabs were 4-spaced... mass destruction of my neatly aligned comments.
 
That's what I meant when I said spaces for comments. Tab the indents and space the comments and it all works.
 
That's what I did, but my aligned comments got butchered when I switched to an editor with incorrect assumptions about tab width.
 
Except for the fact that you now have an unholy mixture of tabs and spaces which is even worse than just tabs anyway.
 
The thing about spaces is that they look the same everywhere.
 
12:45 AM
I'm not sure how that would affect it if you only use tabs for indentation, but oh well.
The thing about spaces is I would have to redo any code shared with me that decided to use an indent of 3 spaces to something sane ;)
With tabs it would appear right.
 
@Geobits I did only use tabs for indentation. Here take this:
function () {             // Sometimes I comment code. When I do, I often
	if (some condition) { // comment it like this. Tabs can break this. This
		Other code.       // only looks nice with tabs at 4-space. Try viewing
	}                     // it with tabs at 3-space; it will look
	                      // disgusting.
}
That is perfectly lined up if tabs are 4-spaced.
It doesn't appear right to me.
But I will only comment like this rarely, such as for this class which requires me to. So for sane programs, I'll be using tabs. Like when I code in Java, I'll be using tabs (who sets tab width to anything other than 4 anyway?)
 
Why would you use tabs after the beginning of a line?
 
@El'endiaStarman I didn't.
I used tabs only to the indentation level, spaces past that.
 
[looks again]....ah, whoops.
Silly me.
 
The line with disgusting is tabbed for no obvious reason.
Personally I think the bigger sin there is having comments longer than the function :P
 
12:50 AM
I tabbed that line because I wanted the indentation to all be the same. But I don't usually worry about this.
 
Well, anyway, I don't try to line up comments like that. If I do a multi-line comment, I put them on their own lines.
 
^
 
Hey; this class requires at least 80 lines of comments to 100 lines of code (lines of code can also be comment lines). This is the only way I figured I could get it to work. I find the professor's style to be unreadable.
 
I tend to agree that comments hanging on the right side are less readable in general.
 
What about this?
function () {
	// Sometimes I comment code. When I do, I often
	// comment it like this. Tabs can break this. This
	if (some condition) {
		// only looks nice with tabs at 4-space. Try viewing
		Other code.
		// it with tabs at 3-space; it will look
		Even more code
	}
	// disgusting.
}
This is what the professor's code looks like. I have trouble deciphering whether a line is a comment or whether a line is code. I like to be able to just read the code.
 
12:52 AM
Your editor doesn't do syntax highlighting?
Comments in mine are immediately obvious.
 
It does. But I still find it hard.
It's obvious, but then I have to scan vertically and backtrack to find lines of actual code. It feels painful to read.
 
Ah. I just find it quicker to scan when the lines are shorter. Comments on the right mean my eyes do more back and forth.
 
I prefer this style:
/**
 * Sometimes I comment code. When I do, I often
 * comment it like this. Tabs can break this. This
 */
function () {
	// only looks nice with tabs at 4-space. Try viewing
	if (some condition) {
		// it with tabs at 3-space; it will look

		Other code.
		Even more code
	}
	// disgusting.
}
Ahh my eyes feel so good reading this.
Only the occasional comment in the source, clearly distinguished from the code itself. That's what I like.
 
Yeah, that's how I prefer to do it.
 
Oh. Well sure, that's probably better overall. Outside of class work, you're not going to have comments on nearly every line anyway.
 
12:55 AM
Yes
 
Though probably also with comments to the right, but only if they're only for that line of code (or that line and the next when they're practically identical).
 
i++;  // increments i
 
So for the purposes of this class, spaces only. For the purposes outside of class, often tabs.
 
I gotta say though, three space indents are just weird whatever character you use to do it:P
 
@El'endiaStarman Yes I sometimes put comments to the right. But overall, I strive for my code to be readable.
 
12:56 AM
Oh yes, definitely.
Though that sensibility is sacrificed on the altar of code golf. :P
 
@Geobits That's why I like it. :D. Honestly though, I don't like the 4 space indents with the coding standard we have to adhere to, because the standard makes C unreadable. I like the reduced line wrapping.
 
As long as it's more than one and less than five, I guess it's kinda almost acceptable.
 
Maybe I should just use #defines all over my source code to make it "readable"...
 
I have a hard time with two though.
 
I find two most readable with Ruby, very unreadable for everything else. No idea how this happened.
So @Doorknob @AlexA. Yes I realized why I like spaces instead of tabs. But I recognize that in most cases, those reasons don't apply. Tabs FTW!
2
 
12:59 AM
:D
 
D:
 
Damnit.
 
Don't star that nonsense.
Clearly he's delusional.
 
So says the delusional one.
 
1:00 AM
The term "birdbrain" exists for a reason :P
2
 
Hey, they're admitting to themselves that they know they're wrong, deep down.
You know where you find stars?
In space.
 
SPAAAAAAAAAAACCCEEEEEEEEEEEEEE!!!!!
 
@El'endiaStarman (╯ಠ_ಠ)╯︵ ┻━┻
 
But with tabs, you can get to space at around 4 times faster, depending on the tab size.
 
uh no
 
1:01 AM
^
 
The tab key should insert four spaces should you be using a sane editor
 
@Doorknob Every so often, in a crater.
 
(and even so, you should almost never have to hit the tab key anyway, because again, sane editor)
 
Do you guys even hear yourselves? "The tab key should enter spaces" doesn't make any sense. Tab keys are for tabs. Space has its own key.
 
@Doorknob Python's IDLE does that and sometimes it annoys me because I want to backspace a whole tab, not four spaces.
 
1:03 AM
@Geobits So when you hit the Space key, you expect it to literally vomit "Space" out into your code? (Also, do you not use keyboard shortcuts? >_<)
 
...new challenge idea: replace all spaces with "space".
Restriction: make sure the code keeps working.
 
Actually, I think that the best editor would be one where you don't even have to realize whether it's using tabs or spaces. It just does it's thing, but you expect the tab key to indent.
 
@Doorknob That seems to be reaching a bit. When I hit the space key I expect it to insert the space character, not "vomit space".
 
Which would, I think, be impossible in Python.
 
@Geobits Okay, so what about when you hit Ctrl+C, for example?
 
1:04 AM
However, it should - naturally - store the indentation as a tab, because that's the superior version.
 
Do you expect it to type the literal sequence of characters ctrlc, or to sent an interrupt signal?
 
The Control key is pretty well designed to be used in conjunction with others to umm.. control things.
 
wat
 
@Doorknob Don't be ridiculous. Some things are obvious.
 
1:06 AM
Yep, one of them being the superiority of spaces over tabs.
 
@El'endiaStarman A lot of nice editors let you backspace out an entire "tab" of spaces at once rather than backing out a space at a time.
 
Pressing a key (that has a corresponding ASCII symbol) by itself should probably insert that character though, that's my point.
If the 5 key inserted a 6 when I pressed it, I'd be really pissed.
 
When I press d in vim it doesn't insert the letter d (if I'm in normal mode). It's the "delete" key binding. Same idea.
(again, do you never use keyboard shortcuts?)
 
^
 
That's because vim is stupid as well. Yea, I said it.
 
1:07 AM
D:
 
Uh oh.
 
Blasphemy!
 
@Doorknob But in vim, there are two modes. Insert, and other.
 
@AlexA. IDLE does, but not completely consistently. I have since learned to use Ctrl+[ and Ctrl+], which takes care of most situations.
 
Wouldn't it be great if the "delete" key inserted ascii 127?
 
1:07 AM
@Justin uhhh there are waaay more than two modes in vim. ("other" not being one of them >.>)
 
It should be obvious that PgUp = Home, PgDn = End. When I was working, my laptop switched the positions of Home/End and PgUp/PgDn, so since I don't use PgUp/PgDn, I remapped them to home.
Who uses PgUp/PgDn anyway?
 
Those might be two of the least frequently used keys on my keyboard :P
 
PgUp/PgDn? What for?
Don't tell me it's a vim thing....
 
for... nothing?
 
My laptop doesn't have page up/down. I wish it had home and end though. :/
 
1:09 AM
Scroll Lock anyone?
 
what's that :P
 
I occasionally use PgUp/PgDn to scroll things like webpages (or a really long source code file) one whole page at a time. Probably among the least used keys on my keyboard though, too.
 
no clue
 
I wish my laptop had a pause / break key. Lots of IDEs map CTRL+BREAK to "cancel build"... I can't cancel builds on my laptop without manually navigating to the location.
 
@El'endiaStarman In vim that's Ctrl+F and Ctrl+B. (I can use the same keys in Firefox, with Pentadactyl.)
 
1:10 AM
Maybe I should remap PgUp and PgDn to BREAK.
 
@feersum Web only but yeah.
 
@AlexA. Web what only?
 
I only use scroll lock while browsing the web. Surfing the net.
 
What is Scroll Lock even supposed to do? It's only ever been a useless key for me.
 
It's a key?
 
1:12 AM
Same here. I've never used scroll lock in my life or had any idea what it's for.
 
I thought you meant what happens when you click the mouse wheel.
 
I think it was originally for determining whether the arrow keys scrolled or moved the cursor
 
Interesting
 
Moved the cursor... that's what Mouse Keys are for.
 
mouse keys?
 
1:13 AM
Yeah. It might be a Windows thing. I use it because it's a superior way to mash the click button.
 
What are those?
 
I'm really confused
 
It's an "ease of access" "feature". Turns the num-pad into a d-pad / buttons for a mouse. Naturally, you can choose whether that's for num-lock on or off.
 
ew
why... would you want that?
 
I never use the numpad when numlock is off anyway, so now I can repurpose it.
@Doorknob Well, for instance, at work I only had one mouse, but one desktop and one laptop. I used mousekeys to open pandora to play music. And to pause music.
 
1:15 AM
I've never understood why you're able to use the number pad for anything other than numbers.
 
(on the desktop)
 
@Justin What about the trackpad on the laptop?
 
Do you know how painful it is to use that? Mice are way superior.
Especially when programming.
 
You use the mouse when programming? ಠ_ಠ ಠ_ಠ
 
haha
 
1:16 AM
@Doorknob :P Vim user.
 
I'm not a vim user and I never use the mouse when programming.
I don't understand what you'd use it for.
 
Wow.
Not having a mouse while programming is at about 80% speed.
 
@Justin why? O_o
 
Do you motion out each character with the mouse or something?
 
1:18 AM
@AlexA. Consider what happens when I want to "cancel build". I don't have a PAUSE/BREAK button on my keyboard. I have to manually navigate there to do it.
 
Not having a mouse while programming gives me about 100.1% speed because it eliminates accidental nudging of the cursor. :P
@Justin ... so there's no keyboard shortcut for that?
Such as Ctrl+C?
 
^^^
 
There's a keyboard shortcut. It's Ctrl-Break.
 
... why?
 
@Doorknob How close do you put the mouse to the keyboard? I have the mouse about a foot to the right.
 
1:19 AM
Map it to something else if you don't like that shortcut
 
@Doorknob @AlexA. Because I'm too lazy to remap it.
 
@Justin That was mainly meant in jest, not literally. :P
@Justin But not too lazy to reach for your mouse every single time, thus slowing you down significantly?
 
@Doorknob You've got to realize that I tend to take things too literally.
 
I'll make a note of that, @Justin case I forget.
3
 
@Doorknob I find it faster to reach for my mouse. It takes about as much time as executing the Visual Studio "reformat code" keyboard shortcut for me.
 
1:21 AM
and what is that shortcut? O_o
 
Also, it takes me a while to learn keyboard shortcuts.
I think it's Ctrl-K Ctrl-D.
 
That sounds fairly painful.
 
But I navigate a lot by keyboard. Just not exclusively.
 
How are you supposed to remember Ctrl+K Ctrl+D? -_-
 
Because everything begins with Ctrl+K. Comment: Ctrl+K Ctrl+C. Uncomment: Ctrl+K Ctrl+U
 
1:22 AM
Oh wow that sounds... not fun at all.
 
Yeah. What editor is that?
 
My mom get's irritated if I'm showing her something I researched on the internet. She says I flash around and can't read anything. But I can. I don't see how she doesn't get Ctrl+Tab...
@AlexA. Visual Studio (the community edition FWIW)
 
You mean express?
 
@Justin What does Ctrl+Tab do?
 
@Doorknob Switch between open programs
 
1:24 AM
@Doorknob Switch between open tabs
 
Oh
It's programs on a Mac
 
@AlexA. That's Alt+Tab.
 
ah okay
 
@Doorknob Wait is this a joke? Why is it starred?
 
Just in case ;)
 
1:25 AM
FWIW, if it's a joke, I don't get it.
 
I just got my programming language to beta :D
 
@Justin -> "just in"
:P
 
FWIW, it's a joke, and now I get it.
 
Ctrl+Tab switches between tabs in both browsers and Notepad++...but differently. Somewhat aggravating for me. (Browsers switch from left to right, Notepad++ switches from most recent to latest.)
 
*facepalm* Don't know how I didn't see that. I get it all the time.
@El'endiaStarman Same for most code editors I've used; but they all have a setting for it. I make it look like the browser style.
 
1:26 AM
@ZachGates It's sort of like Mornington Crescent, haha.
 
@Justin .....I'm gonna find that setting, and change it.
 
Actually, I'm not sure if notepad++ has it. Now I don't use it; I use sublime.
 
Oh hey, Ctrl+Tab switches between tabs in Firefox too. I never knew that.
 
Hopy carp, that works in Safari as well
 
Yeah. Ctrl+W closes a tab, Ctrl+T opens a tab, Ctrl+N opens a new window, Ctrl+Shift+N opens an incognito window, Ctrl+Q frustratingly closes the entire application (or it did before, not sure now).
 
1:28 AM
@AlexA. Hopy crap
3
 
did i fixit
 
Ctrl+1 switches to the the first tab, Ctrl+2 the second, Ctrl+3 the 3rd, Ctrl+9 the last (not the ninth).
 
@Justin That'd be d, t, :winopen, :private winopen, :exit. :P
 
These all work in Chrome too.
 
@El'endiaStarman That's 'cause I'm using Chrome.
 
1:29 AM
@Justin :b 1 through :b 9 for those.
 
Ah, ha. Also, Ctrl+Shift+T to open recently closed tabs.
 
@Doorknob I like my shortcuts more; they're faster. I'm the kind that prefers shortcuts to have Ctrl prepended.
 
@El'endiaStarman That would be u.
 
@El'endiaStarman Ah yes, how could I forget. That's one of my favorites.
 
And Ctrl+Shift+Tab cycles through tabs in reverse order.
This also works with Alt+Tab, incidentally. Cycles through windows and Alt+Shift+Tab cycles through them in reverse order.
 
1:30 AM
So people watch me browse the web and get completely confused.
 
Ctrl+N and Ctrl+P to move between tabs, but I prefer my own bindings that I set up: Ctrl+H and Ctrl+L. (To match with back: Shift+H and forward: Shift+L.)
 
@El'endiaStarman Of course. Did you know about Win+Tab? On windows 7, it cycles applications with a fun perspective peek, on windows 8, it switched between apps, on windows 10, it switches to the screen where one can switch desktops (as in multiple desktops).
 
They changed what that does between Windows versions?
That's maddening.
John Madden.
John Maddening.
 
@Justin Absolutely.
 
@AlexA. Yes, it is. But almost nobody uses it. Windows 7 one was 99% redundant with Alt-Tab, except it didn't actually switch (you could Win+Tab and let go and be back on the same window).
 
1:33 AM
The main thing I don't like about Win+Tab in Windows 10 is that you can't cycle with it. I have, of course, submitted feedback regarding this.
 
@Justin I use Win+Tab all the time on my work computer (Windows 7).
 
The windows 8 one was just confusing. Windows 10 got rid of the apps thing, so it wouldn't work with the windows 8 Win+Tab.
 
Windows N = garbage for N > 7
 
@AlexA. Why? It's no better than Alt+Tab in my opinion
 
Idk
 
1:34 AM
Personally, I think Win 10 is my favorite so far.
 
@AlexA. Disagree. I love windows 8.1 / 10 (10 is better).
 
@AlexA. s/ for.*// :P
 
I also hate 7, but it's less garbage compared to 8+
 
Favorite feature: you can search for the file / application you want.
 
Feature: You can do that on any OS ever
 
1:35 AM
For instance, sublime is not pinned to my taskbar, although it's my most used application after chrome.
 
@Justin ... isn't that a feature in basically every OS?
 
Not windows XP, not windows 7.
 
Windows Explorer in Win7 does that.
 
And in Win 8+ you can do Win+<start typing>.
 
Search in the start menu does that in Win7.
 
1:36 AM
What I mean, is I can type Win+S (or just press Win on windows 10) and I can immediately search. Results are shown, then I can choose which application to run
@AlexA. Only its search feature sucks. I've tried to get it to work. It doesn't. The windows 8 / 10 searches not just by name of file, but by other data.
 
Win 10 is also relatively good at getting the result you want on the first try, so you just have to hit Enter.
 
That can be said about every Windows feature.
"I tried to get it to work but it doesn't."
 
Man, I must be a Windows god. :P
 
I really like dmenu with i3. I have it bound to mod+enter, and it pops up a tiiiny little bar at the top of your screen that searches your $PATH for programs to run. It narrows down the search as you type and has autocomplete.
 
You know what's interesting? I try to get it to work, and it does. Usually.
Does anyone know what ProSky is? I got sent two emails telling me that they're hiring...
 
1:38 AM
I probably just sound like an idiot. I know how to use Windows, I just don't like it.
 
Who sent my address to them O.O
 
I think they sell spoons door-to-door.
 
@Justin Maybe the same ones that told the other sketch company your phone number.
 
What other sketchy company?...
 
@Justin They make recruiting software
@El'endiaStarman That was Zach who got called.
 
1:40 AM
@AlexA. D'oh. My mistake, @Justin.
 
Ahh.
I wonder how many chat pings a single message can send.....
 
uh oh
<disconnects>
 
@Justin 1, unfortunately
 
To a single user, that is.
 
(I kid)
 
1:41 AM
I was talking about how many users.
 
Oh. As many as you can fit in the max char limit?
 
I have yet to hit an upper bound and I ping the shit out of everyone.
@El'endiaStarman I had a feeling you were kidding when you didn't actually disconnect. :P
 
I don't think there is one.
 
@ಠ_ಠ Thanks for having your username. It makes it easy to get this smiley: ಠ_ಠ
@Doorknob HOW!!!!
 
.....I shall use this trick...muahaha.
 
1:42 AM
How what?
@El'endiaStarman hah you don't know the sekrits :P
 
Ahaha
 
Hahaha
@El'endiaStarman Try changing @ to %40
 
@El'endiaStarman ur doin it rong
 
You're already pinging me. No use adding that. :P
 
@Doorknob stealth ping ofc (for the purposes of chat history. I don't want to look like an idiot)
 
1:44 AM
I can literally SEE @Doorknob's message!
 
>:D
 
See?
Si
Si++
 
CSS? :P
 
Gimme time. I'll figure it out.
 
Good luck with that... ;)
 
1:46 AM
Many have said the same.
 
No I don't.
 
What?
 
Very funny.
 
You don't what?
 
See it
 
1:47 AM
@Dennis Blame Alex. At least I'm only pinging people who have messages visible onscreen at the time of the ping. :P
 
See what?
shhhh
 
Alex!!!
 
@Doorknob I am. My reply contains a stealth ping. :P
 
oh, hahaha
 
How to stealth ping:
 
1:48 AM
SHHH
ಠ_ಠ
 
:D
 
ಠ___________ಠ
 
> This message has been edited 11 times
About time, @El'endiaStarman. :P
 
@AlexA. Go ahead and delete this if you want. :D
 
....I'VE GOT IT.
 
1:50 AM
haha
 
@Doorknob Hush, you.
 
Hahaha
 
:D
 
@Justin No one will know >:D
 
But you left the secret for finding it.
The "inspect element" is key.
 
1:51 AM
I left nothing
 
Mod abuse!!!1!!1!!!one!!11
 
Mod abuse is my middle name.
At least 8
That's how many you just got
 
You mean until I ban you? :P
 
Only 8? You can do better... :P
 
@Justin Confirmed, at least 8. Also, "accidentally"...
 
1:52 AM
(but please don't demonstrate that you can do better)
 
Eep
I accidentally edited the message.
@AlexA. Uh oh, now the history is visible...
 
>.>
 
@AlexA. You know, you could have just purged the history. :P
 
I realized I could delete the post.
 
Oh, I thought Alex did that
 
1:54 AM
No
I'm "innocent"
 
@Justin Only you and mods can see that
 
Oh
 
For your eyes only (and mods)
 
Then I should give myself a message to tell myself how to do it.
Now I shall never forget (actually I probably will by tomorrow)
 

« first day (1705 days earlier)      last day (3123 days later) »