« first day (1771 days earlier)      last day (3086 days later) » 

8:00 PM
@Stefnotch What comments at the top are required?
 
@orlp Can I use your first n primes technique? It's one byte shorter than mine.
 
@Maltysen its not mine
so go ahead \o/
or I guess it is mine
 
k thanks
 
47
A: Is this number a prime?

orlpPyth, 4 bytes }QPQ Prints True or False.

 
Tied with J now ^.^
 
8:11 PM
NOOOOOOOOOOo
YOU BEAT ME?!
BEATEN BY A MORTAL?!
@Maltysen if Pyth had a factorial builtin we could make an especially terrible but short way of finding the first N primes
@Maltysen uniquifying factoring factorial N
 
There's a mod (chat) flag...and the flagged message, the flagger's message, and the room name are all in Portuguese.
Well, I'm not touching THAT one.
 
@El'endiaStarman see TL
tl;dr translate: is useful
 
@orlp It does
 
@Maltysen hrm?
 
it has a factorial builtin
.!
 
8:20 PM
huh
I messed up then
because I thought I searched the docs for 'fac'
 
but it isnt shorter
{P.!+3Q
 
oh wait, that for the primes UNDER Q
not the first Q primes
 
oh ok then
but if he wants us to go to max 27...
<{PCGQ :)
 
Why is nobody answering my question:
0
Q: Processing custom MenuBar is not displaying

Kριτικσι ΛίθοςI have created a custom MenuBar in my Processing sketch (using Eclipse as my IDE), but it is not displaying. Here is a MacOSX MenuBar. Below is my code. The project is called ProcessingTrials and the class is called ProcessingSketch. I am running the program as a Java Application. I have created...

 
why are you asking us?
 
8:23 PM
dunno
just making my question more popular so that people would actually pay attention to it
 
@KριτικσιΛίθος 1) It's been 20 minutes, and 2) you get quick answers on simple questions, and not-so-quick answers on not-so-simple questions.
 
@El'endiaStarman OK then, I will wait till the next day...
 
I'm thinking of a challenge
where the input is a grammar
and your program must produce the FIRST and FOLLOW sets for each nonterminal
 
Dangit, broke my interpreter with mismatched parentheses
I wish Notepad++ had a syntax-checking feature
(Of course, there's probably a plugin for that...)
 
@KριτικσιΛίθος I know how to do that actually :D
 
8:39 PM
That's better
 
@ETHproductions install vim
 
@ETHproductions it already shows matched parens... what exactly do you need it to do?
 
@quintopia Alert me when they're mismatched so I don't have to check each line manually :P
 
orlp knows what he's talking about :P
 
vim is okay. i would be surprised is @ETHproductions doesn't have it installed already
 
8:42 PM
be like me
and you'll be golfing at top speed
 
@quintopia I don't have it installed already
 
I always feel like an arcane wizard whenever I post screenshots of my editor in my golf workflow :P
 
@orlp I do that except with separate i3 terminals instead of vim splits cause it's easier to navigate :P
Oh also an extra terminal with a REPL in it
 
@Doorknob look at the bottom
those are 9 terminals
 
ahhh I see
i3? Or a different WM?
 
8:44 PM
terminal #1 is always running a Python repl with a custom environment with a lot of utility functions and imports
@Doorknob this is all one terminal
 
wait what
45 secs ago, by orlp
those are 9 terminals
 
@Doorknob you could SSH into my box and see exactly this image
@Doorknob welcome to the world of terminal multiplexers :)
 
Oh, so you're doing it through some sort of multiplexer?
ninja'd
I occasionally use tmux but I usually find i3 keybindings to be more efficient
 
ha, re-ninja'd :P
 
8:45 PM
that's vim running inside tmux
with regular vim splits
(I don't really use tmux splits, I'm not used to them)
 
I don't know too much about this, but doesn't the default ubuntu shell let you do this?
 
I am so not up-to-speed with this conversation...
 
Me neither. :P
 
@Maltysen a shell is not a terminal
 
I guess that's what I get for only getting into programming 1.5 years ago :P
 
8:46 PM
@Doorknob 90% of my workflow consists of ctrl + b + b to swap between vim/command line inside tmux and alt-tab to switch between terminal and browser
 
@ETHproductions tmux stands for terminal multiplexer. It's got fancy server stuff, but what I mostly use it for is just splitting terminals into separate kajiggers.
 
@Doorknob oh yeah that's what I meant
 
Ubuntu's default is gnome-terminal, yeah?
 
@KριτικσιΛίθος You need to use:
import com.apple.eawt.Application;
import com.apple.eawt.ApplicationEvent;
 
a really cool part about tmux is that I could close my terminal, open it again and write tmux to get back where I was
 
8:47 PM
@Doorknob yeah
 
or I can SSH into this machine, write tmux, and share the session
 
Yeah, that's the fancy server stuff I mentioned earlier :P
 
or you could SSH into my machine, and we could share the same session
 
@Maltysen gnome-terminal doesn't do multiplexing
@Maltysen ^
You get way more than just splits too
 
oh wow
 
8:50 PM
@Maltysen try this
sudo apt-get install tmux
tmux
echo hello world
close your gnome-terminal
open up your gnome terminal
tmux
 
Oh hay, I found something interesting: you can use applescript as script engine in Java.
Didn't know that.
implements in Vitsy
 
@orlp it didn't work
 
tmux ls?
You may have to re-attach to the session thingy manually
 
it gives me four of them.
@Doorknob ah like screen?
 
huhwhat
@Maltysen yes
 
8:52 PM
@Maltysen wat
 
no I tried a bunch of times
 
@Maltysen tmux is a modern alternative to GNU screen
@Maltysen maybe you need to write tmux attach
on my system that's the default behavior
 
Oh, so you've created four different tmux sessions
 
is there a way to kill all of the other ones first?
 
tmux kill-session I think
tmux kill-session -a
 
8:54 PM
oh cool attach worked
so, will it run in the background like screen?
 
yep
 
The best thing about creating a code-golf language is that you can go "Aw man, this program would be so much shorter if my lang had this feature" and then go and implement that feature.
 
@ETHproductions that's not the best thing
 
@ETHproductions and then you can't use it in the challenge :(
 
the best thing is "Aw man, this program would be so much shorter if my lang had this feature"
then you find out that Pyth had it anyway
9
 
8:55 PM
hahahaha
 
Pyth has all the features
 
@Doorknob Yeah, but then you can use it in the next challenge that requires it (and then you wait for a million billion years and the earth burns up and the universe collapses and you're still waiting for that next challenge)
 
@ETHproductions Afterlife confirmed!
 
@El'endiaStarman [citation needed]
I'll believe the bible when it's published in a peer-reviewed journal :P
7
 
8:59 PM
DARN. Ninja'd...
 
so how do I split tmux?
 
I was just about to suggest the Bible... :P
 
@Maltysen <C-b> ", <C-b> %
lots of people remap <C-b> to <C-a>
 
@Doorknob don't
 
oh wow it really is like screen
 
8:59 PM
@orlp I do. Why shouldn't I?
 
@Doorknob ctrl+a is a vim keybind :P
 
Hey, the good news is this single feature can be extended to a bunch of handy features, saving 3 bytes in about 20% of all Japt programs :D
 
7 mins ago, by orlp
@Maltysen tmux is a modern alternative to GNU screen
 
@orlp Heh, right, but I usually don't do vim in tmux though
(I use separate i3 terminals and/or vim splits instead)
 
but this shows up as only one window in tmux ls?
 
9:00 PM
one session
 
@Maltysen splits aren't the best feature
type ctrl+b c
 
There's basically the only thing I use tmux for :P (which I've been planning to fix, but never got around to learning more stuff)
 
ah so the numbers at the bottom go from session to session?
 
Irrelevant to the current conversation, but @orlp: Any plans to continue development of Pyth 5?
 
@Maltysen window to window
@AlexA. yes
 
9:02 PM
so each session has multiple windows, and each window has multiple splits? *mind blown*
 
yes
 
yep :D
 
@orlp Oh good. :) I was chatting with Isaac yesterday and he seems unsure whether the project would continue.
 
windows are the best feature IMO
 
how do I switch from split to split?
 
9:02 PM
@Maltysen ctrl+b <num>
but to switch back and forth between the latest
 
@Doorknob What are vim splits?
 
use ctrl+b b
@Maltysen oh, SPLIT to SPLIT
thought windows
 
yeah
 
ctrl + b hjkl
like vim's hjkl
@AlexA. opening multiple buffers side-by-side in vim
 
> hjkl
 
9:04 PM
@AlexA
Yeah, technically the correct term is "buffer" :P
 
@Maltysen actually
 
Awesome feature for ex. vimdiff.
 
I think those are my custom binds
 
@Doorknob What is ex. vimdiff?
 
yeah
@AlexA. vimdiff is amazing
 
9:05 PM
@Doorknob That's really neat!
 
@AlexA. just try this
 
However, ಠ_ಠ at starting your line numbers at 0.
 
copy a file, edit some random stuff
 
It's diff but it's a million times better
 
then run vimdiff file1 file2
@AlexA. nope
 
9:06 PM
I use relativenumber
 
you're misunderstanding his feature
he's using relative line numbers, they go + downwards and upwards
 
Ohhhhhh okay
Weird. O_O
 
because counting is too hard :P
 
I prefer regular line numbers
 
9:07 PM
Same
 
although I've seen a plugin that I should probably install
 
38 secs ago, by Alex A.
Weird. O_O
^
 
Is there a way to use vimdiff to see the difference between git commits?
 
yes
Actually, with Fugitive it's so awesome it should be illegal (ha)
:Gdiff from within vim
 
@Doorknob you're doing it wrong though
 
9:08 PM
Can I install Fugitive with Pathogen?
 
Doing what wrong?
@AlexA. yeah
 
@Doorknob :set number :set relativenumber
do both
 
Too ungolfy. :se nu rnu :P
But I didn't know that was possible; nice
 
How do I do a vim split without a diff?
 
@AlexA. :split <name>
 
9:09 PM
eh, actually, takes up screen real estate for no good reason. It only shows the current line number, which is visible on the status line (in my config at least) anyway
 
or :vsplit <name>
 
Or <C-w> s or <C-w> v
I prefer the C-w variants
 
@orlp Is this horizontal split and vsplit is vertical split? Will it use relative paths or do I have to specify the full file path?
 
Relative or full path, of course
split / C-w s is horizontal
 
@AlexA. yes and just like any other path in vim (relative)
 
9:11 PM
Oh okay
 
just to prevent confusion
 
/me is proud of my extended explanation
 
@Doorknob Using control makes me feel like I'm using Emacs and then I feel dirty all over.
 
0
A: Sum pyramid of primes

El'endia StarmanMinkolang 0.14, 17 bytes n[i3M$i1-i6M*+]N. Try it here and check all test cases here. Explanation n Take number from input (N) [ Open for loop that repeats N times i Loop counter (n) 3M Pop n and push nth prime (where...

 
horizontal split means that the window is SPLIT HORIZONTALLY
 
9:11 PM
@orlp does that automatically show the appropriate line of the Pyth docs as you type? I NEED THAT
 
@AlexA. haha
 
so the windows are actually above eachother, vertically
 
^
 
@quintopia what?
 
@orlp Is that not what horizontal split usually means?
 
9:12 PM
@quintopia that's just a / in vim...
 
I pretty much only use vsplits with the exception of quickfix and my golfing setup
 
(assuming you're referring to the screenshot way back)
 
@AlexA. yes, but in my mind I always get them twisted
 
Oh okay
 
me too :P
 
9:12 PM
I mean
look at your screen
 
I am
 
I got my android emulator to connect to my PS4 and use the Pip-Boy app. c: I'm fangirling so hard right now.
 
@Doorknob exactly. I would love to be typing in one window and have the appropriate / search be issued in the other window as i type
 
it's 16:9 or worse
why would you want to split that horizontally?
 
@quintopia oh, no, that just looks like a regular search
 
9:13 PM
@Doorknob not cool enough
 
@orlp ¯\_(ツ)_/¯
 
How would you expect it to work? Constantly search for the last three chars you typed, or something?
 
@Doorknob tokenize source file
search for token cursor is currently on
that'd work with Pyth
 
ah
you could plugin that
 
@Doorknob ugh
I hate vimscript
 
9:16 PM
haha me too
 
WHY IS THIS CHAT ALWAYS THROTTLING ME IT'S SO ANNOYING
 
^
 
even mods get throttled?
that's just hilarious
 
Yup.
Same rate limit as every single other user >.<
 
Everyone does
 
9:17 PM
At least we don't get the hair-ripping-out-caliber-annoying "you may only comment once every 15 seconds; timer reset" thing
 
@orlp You usually send a larger number of short messages in rapid succession. I do that sometimes but most of the time I make longer messages to avoid the throttle. I also find it quite annoying.
@Doorknob Oh jeez, what does that?
 
Comments
You've never had that happen?
 
"Please do not edit your comment ..."
WHY ARE YOU MAKING ME WAIT FOR NO DISCERNIBLE REASON
@AlexA. it's almost as if this is a chat room
 
@Doorknob No, I do the same thing I said before: fewer long messages.
@orlp Haha ikr
 
if you type out full paragraphs (or sometimes even sentences) the other person loses interest or you get ninja'd
 
9:19 PM
You could on Meta.SE but they probably have the throttle set at its current value for a reason.
 
it's not a simple limit though
 
Isn't it?
 
if you've been actively chatting in the last minute, your throttle triggers earlier and harder
 
No, you can post 2 messages in rapid succession like
this
 
I didn't
know that
what if
 
9:21 PM
@Doorknob a minute or so ago I got throttled on my second message
 
I send
that
more than
 
@orlp That happens when you're really close to the rate limit from before then
 
@Doorknob that's my point
it's not a simple limit
 
right
 
it keeps track of your messages in the last window or something
 
9:22 PM
<div id='chromo1Aa' class='chromo ch1 chA cha'></div>
<div id='chromo1Ab' class='chromo ch1 chA chb'></div>
<div id='chromo1Ac' class='chromo ch1 chA chc'></div>
<div id='chromo1Ad' class='chromo ch1 chA chd'></div>
<div id='chromo1Ba' class='chromo ch1 chB cha'></div>
<div id='chromo1Bb' class='chromo ch1 chB chb'></div>
<div id='chromo1Bc' class='chromo ch1 chB chc'></div>
<div id='chromo1Bd' class='chromo ch1 chB chd'></div>
<div id='chromo2Aa' class='chromo ch2 chA cha'></div>
<div id='chromo2Ab' class='chromo ch2 chA chb'></div>
^ vim's visual block (and macros) is a lifesaver here
:D
 
yes and macros
I often do
qq0<operations>j
100@q
 
yep
Recursive macros are pretty nifty. They let you omit the 100 if you want to go all the way to end of file
 
@Doorknob meh
when I want to go to end of file I can always type 9999@q
 
I mainly only use them because I find it fun to hit qqqqq
 
9:25 PM
you stole that from the JS room didn't you :P
 
@Doorknob nope, reddit
I don't dare go near JS
 
rlemon just posted it there like 5 minutes ago lol
 
@orlp Got kinda iffy at the end but the rest was cool :P
 
@Doorknob roflemon
@orlp hahaha oh dear
 
@orlp oh jeez that ending text O_o
 
tearing up
can't handle the sad dog
 
man
you know what I'd do if I had 4 dimensional super powers
troll people with impossible objects
 
@orlp haha XD
 
9:50 PM
I spy with my little eye a llama.
With a scarf.
Does JS have a decompress function?
 
Decompress what?
 
^
 
A string.
 
... and how is it compressed?
 
^
 
9:55 PM
^
 
gzip? (I'm not familiar with this stuff. :D)
 
How are you supposed to decompress something when you don't know how it was compressed?
 
@Doorknob I'd compress it. :P
 
@orlp Oh Jesus, my hands are sweating just looking at that O_O
 
9:56 PM
@orlp I do not envy nor pity this man.
 
@FlagAsSpam If you can compress in JS, I would imagine you could decompress as well.
 
Alright, lemme rephrase - is there a compression/decompression method in JS?
 
Not builtin AFAIK
 
11
Q: Decompress gzip and zlib string in javascript

Toan NguyenI want to get compress layer data from tmx file . Who knows libraries for decompress gzip and zlib string in javascript ? I try zlib but it doesn't work for me . Ex , layer data in tmx file is : <data encoding="base64" compression="zlib"> eJztwTEBAAAAwqD1T20JT6AAAHgaCWAAAQ== </data> ...

Looks like there's a library called Zlib that should work
 
\o/ Thanks.
 
9:59 PM
tryitonline:jelly# apt-get install python-sympy
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  dvipng fonts-cabin fonts-comfortaa fonts-droid fonts-font-awesome
  fonts-freefont-otf fonts-freefont-ttf fonts-gfs-artemisia
  fonts-gfs-complutum fonts-gfs-didot fonts-gfs-neohellenic fonts-gfs-olga
  fonts-gfs-solomos fonts-inconsolata fonts-junicode fonts-lato
  fonts-linuxlibertine fonts-lmodern fonts-lobster fonts-lobstertwo
What?
 
O_O
 
Damn, son, that's a lot of packages.
 

« first day (1771 days earlier)      last day (3086 days later) »