« first day (3310 days earlier)      last day (1525 days later) » 

3:31 AM
Do we have an inductive quine challenge? Write a near-quine that contains some positive integer N in it and when run outputs the same quine except now the number is N-1?
For N = 0 I guess it would be a true quine
^ CMC that since I probably won't get around to writing it :P
 
 
3 hours later…
6:15 AM
@Calvin'sHobbies Why not +1 instead of -1
 
 
2 hours later…
7:51 AM
@Calvin'sHobbies May I use inductive definition of natural numbers, i.e. Z instead of 0, SZ instead of 1, SSSSSZ instead of 5, ...?
 
 
2 hours later…
9:34 AM
0
A: Sandbox for Proposed Challenges

simonalexander2005Shared Letters in consecutive numbers Inspired by this puzzling question. It turns out that, in English, every pair of consecutive integers (e.g. 0,1, 1,2, etc.) shares at least one letter when spelled out (e.g. zErO, OnE (or NOught, ONe); One, twO, etc). Input Any two positive integers (all ...

 
 
3 hours later…
12:37 PM
@a'_' I guess I'd answer this one.
 
12:55 PM
@a'_' I got Diamondize Some Text on Page 7.
 
 
1 hour later…
2:22 PM
@Calvin'sHobbies There's this, which is pretty close
 
2:37 PM
0
A: Sandbox for Proposed Challenges

simonalexander2005Pangrams Input A string containing any or all of the letters A-z, space, the punctuation .,'-?! Output A truthy/falsy value (or a fixed value if true; anything else for false) The challenge Output the truthy value if the input string contains every letter in the English alphabet (case-insensit...

 
0
Q: Generate a secure password

BrzyrtTask Your task is to generate a password that is both secure and short in the fewest bytes possible given an integer seed as input. Input No seed Or An integer seed Output A password Scoring Your score is how many seconds the password takes to crack on How secure is my password divided by ...

 
2:57 PM
0
A: Sandbox for Proposed Challenges

MathgeekLet's Play Countdown! (The Numbers round this time) code-golf math Countdown is a British TV game show composed of three different styles of rounds; the letters round, the conundrum, and the numbers round. The conundrum could be solved with the same program you'd make for the Letters round, s...

 
3:38 PM
0
A: Sandbox for Proposed Challenges

MukundanSingle Digit Representations of Natural Numbers code-challenge Task Write a program/function that when given a whole number \$n\$ and a digit \$d\$ which is not 0 outputs a way to represent \$n\$ using only addition, subtraction, multiplication, exponentiation, division, concatenation, parenthe...

 
4:00 PM
@NewMainPosts This would be more interesting if you had to create an algorithm that outputs a password given a seed and your score is the number of bits of entropy
To the power of 1/your source length? Or something like that
Although I guess most solutions would be something like "".join(str(random.choice(0,1))for i in range(9e9)) or the equivalent
 
@James What happened to your user name‽
 
I changed it
 
4:15 PM
But, but…
 
@Adám I had a similar feeling when I discovered this:)
 
@James I'll tell one of the mods that your user name is offensive! I'll Tell DJ… oh.
 
Random question: I'm having some lag issue with vim, and it still happens with .vimrc & .vim is removed, but does not happen with -u NONE. What should I do?
(ask on vi.se?)
 
@user202729 Do you have plugins? Does it lag always or after a specific key?
 
Reproduction: run vim -c ':call feedkeys("i1\<cr>2\<cr>3\<cr>4\<up>\<up>\<c-o>Vjj")', then press >.
Arch Linux.
Tried removing .vim folder.
The CPU isn't used. Just that the screen takes a long time to refresh.
 
4:33 PM
Does :xnoremap > give anything?
 
No.(also read through the whole output of xnoremap, none of them start with >)
(can you reproduce that?)
 
Well, I do have an xmap for >, but that shouldn't have any affect on why you're getting lag
 
The status line (3 lines >ed 1 time) is printed, but the rest of the screen is not refreshed.
 
Wait a second, I take it back
When I xunmap > I get the same thing, it takes a few seconds to update. Huh
@user202729 Is that the only thing that hangs? Idk why that problem happens in the first place, but I have this in my .vimrc and for some reason that prevents it:
xnoremap > >gv
xnoremap < <gv
 
Except that it doesn't do what normal > does.
 
4:41 PM
Ah fair. I find that behavior more useful, but you could do this instead:
 
xnoremap > ><c-l> does work, but feel like a hack.
 
xnoremap > ><C-l>
xnoremap < <<C-l>
On a side note, I've always used xnoremap but there's probably no good reason for it since I basically never use s mode
 
(but why does it work? Should the c-l be executed in insert mode? Because the original mode is (insert) visual mode)
I decided to use the gv option.
 
@James what plugins do you use?
 
Plug 'tpope/vim-abolish'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-endwise'
Plug 'tpope/vim-speeddating'
Plug 'mattn/gist-vim'
Plug 'mattn/webapi-vim'
Plug 'tommcdo/vim-exchange'
Plug 'wellle/targets.vim'
Plug 'matze/vim-move'
Plug 'ararslan/license-to-vim'
Plug 'vim-utils/vim-husk'
Plug 'nessss/vim-gml'
Plug 'artnez/vim-wipeout'
Plug 'JuliaEditorSupport/julia-vim'
Plug 'sheerun/vim-polyglot'
Plug 'KeyboardFire/hotdog.vim'
Plug 'scrooloose/nerdtree'
Plug 'flazz/vim-colorschemes'
> 'JuliaEditorSupport/julia-vim'
Lol, I have never ever used julia
 
4:49 PM
you got a plugin from @AlexA. and from @Doorknob?
I'm thinking about getting surround
 
Surround is one of my favorites of those.
 
@James maybe Julia used you
 
@flawr Yes, but I don't really use either haha
If I could only pick a few of those, I'd say abolish, surround, exchange, nerdtree, and colorschemes
 
OUCH that hotdog hurts my eyes
3
 
^ {is that a vim bug? Anyone want to report that?}
 
4:53 PM
You know what's weird? This is one of the few times that something works better when compatible is set
 
@James I don' think you explicitly need to have the word nerd in anything related to vim.
@James the exchange seems to be neat, but isn't there an easy way to do the same with default vim?
 
Ehh, kinda.
 
(I was actually also wondeirng why surround is not in the default vim.)
 
viwywviwpbviwp isn't exactly "easy"
Hello @Doorknob, we were just discussing 'KeyboardFire/hotdog.vim'
 
Yes we were in the middle of a civil and objective discussion about the design and use of this plugin of yours.
 
5:02 PM
lol
 
Please restrain yourself from expressing emotional responses, we'd like to keep this discussion entirely objective and free from human biases.
 
@James mine would probably be [surround unimpaired targets easyalign]
 
 
3 hours later…
8:30 PM
0
Q: Counting the roots of Polynomials

Zachary HunterThe challenge is to write the shortest program/function which counts the number of distinct roots of a given polynomial. Expected input: a list of integers, L, which are the coefficeints of your polynomial. p(L). (e.g. L[i] is the coefficient of x^i) Required output: the number distinct root...

 

« first day (3310 days earlier)      last day (1525 days later) »