« first day (1936 days earlier)      last day (3203 days later) » 

00:00
@cat cats are supposed to say meow not neo
@Downgoat Escape to go into normal mode, v to go into select mode
@cat so does that mean you hack the matrix with it?
cat
cat
@HelkaHomba meow :3
too late
cat
cat
@Quill meow
00:01
If you have a mouse-enabled terminal (e.g. iTerm2, not Terminal.app) then selecting with the mouse should work
@AlexA. I am using Terminal.app and mouse selection works fine for me
cat
cat
@Downgoat pfft, Mac OS
@Quill me irl
29 mins ago, by Alex A.
@Quill #me_irl
I suspect a sock
@Downgoat By mouse-enabled I mean something different. For example, I use iTerm2 and when I select text with the mouse as you do in your GIF, NeoVim automatically goes into select mode. That would happen if you had a mouse-enabled terminal, which Terminal.app is not.
So to select text you need to do it the Vim way
<esc>v then move the cursor
00:05
@AlexA. it goes automatically into select mode for me, am I understanding you wrong?
Are you on El Capitan?
@AlexA. I like how this statement is basically a pun.
Has no one yet made the joke that self-driving cars will be automatic automatics?
I think Terminal.app is mouse-enabled on 10.11 but it isn't on 10.10
@mınxomaτ ...is it? o_O
@AlexA. yea
00:06
Is there a formula for area under a normal distribution curve?
@HelkaHomba They could be manual transmission with a robot arm that shifts gears
@AlexA. Well, he could literally be on El Capitan.
Oh, heh
Well that also would have worked if he was on 10.10 Yosemite
What if there was a man named El Capitan...
@Downgoat Oh, then disregard what I said about mouse support. Terminal.app should be fine. If it does go into select mode when you select text, what's the problem? Are you trying to copy it?
00:07
He could be on El Capitan on the shoulders of El Capitan who is on the shoulder of El Capitan
"+y to copy the selected text to the whatever register, i.e. the system clipboard
@AlexA. y itself works for me
I think I changed some config to make the pbcopy the default copy thing
Oh, I thought you were copying out of Vim
Oh!
cat
cat
@EᴀsᴛᴇʀʟʏIʀᴋ Is that your homework? You're lucky.
So yanking automatically yanks to the global clipboard for you? That's nifty.
cat
cat
00:10
@CᴏɴᴏʀO'Bʀɪᴇɴ What post was that on? :o
@EᴀsᴛᴇʀʟʏIʀᴋ Yes but you shouldn't need it. If you have access to R and you're getting the probability from a normal distribution, use pnorm.
Not R anymore.
Just math.
@cat ?
in bukkit, how can I get a plaeyrs armor level?
@cat my most recent question
and not really, just curious.
00:10
@AlexA. add: set clipboard=unnamed to your vimrc to make global copying the default
Like Player.getArmor() except that command isn't real.
@AshwinGupta try Arqade. Not here.
@EᴀsᴛᴇʀʟʏIʀᴋ its not about games =/
its about writing plugins...
cat
cat
@EᴀsᴛᴇʀʟʏIʀᴋ I thought it might be, I'd be jealous
That is still on-topic on there.
@EᴀsᴛᴇʀʟʏIʀᴋ You'll need to integrate \frac{1}{\sqrt{2\pi}} e^{-\left( \frac{x-\mu}{\sigma} \right)^2} between two bounds.
@AlexA. okay, i'm good.
>_>
00:12
that looks like batch>_>
It's LaTeX
@CᴏɴᴏʀO'Bʀɪᴇɴ vimscript.
@AlexA. chatjax pls
I don't have ChatJax
Nor does this room
I do though. Put money signs around the formula.
00:13
@cat add this to the .vimrc.
then it should work.
cat
cat
Holy f**k, nvim is so nice
@El'endiaStarman @Downgoat ^
Good enough
cat
cat
@HelkaHomba a self-driving car is smarter than the average teenager
00:15
@AlexA. thanks
@HelkaHomba Socializing. It's already happening. I'm talking to all of you people instead of using my mouth.
cat
cat
D:
cat
cat
strawpoll has some pluralisation issues with 1 votes
00:17
I thought climate change would get a few
I had picked that before I read the last option
My children, if they ever exist, will need to learn to adapt to the changing climate. But if they never develop social skills, that's part of the human experience they'll miss out on.
The brain chip thing would probably be worse for a spouse
@cat >_> SE hates
@HelkaHomba yeah
> Human
@EᴀsᴛᴇʀʟʏIʀᴋ You don't need ttyfast in NeoVim
cat
cat
00:19
I might get bludgeoned with a giant S for that
Nor do you need to set mouse; it defaults to a in NeoVim
@EᴀsᴛᴇʀʟʏIʀᴋ I forgot to respond to the bird emoticon thing. Definitely >:U
@AlexA. okay
@Quill's SE chat viewer is cool.
cat
cat
can someone tell me, when is a popularity contest on-topic and when it is not? the line seems so blurry as to not exist
@EᴀsᴛᴇʀʟʏIʀᴋ <3
:D
@cat Always on-topic.
00:24
@cat If @HelkaHomba made it, it's probably on topic. Otherwise it probably isn't.
But often too broad.
cat
cat
@AlexA. :)
@AlexA. Helka hasn't made any pop-cons I think. Calvin has though :p
cat
cat
00:25
talks about 'imself in th' third person 0.o
But Helka seems to be the only person who's able to make a pop con that actually fits within the rules of the site. I've seen very few exceptions.
cat
cat
Yes, this one is a good example of fitting in with the rules of the site :D
@cat A rule of thumb I use is "if there is an exact scoring mechanism that could be used then it shouldn't be a pop-con" That's why lots of pop-cons are image processing, quantifying a score with a predetermined algorithm is difficult to impossible
There's still the debate of art contests and broadness that that rule doesn't cover though. Some people like pop-cons and some people don't, it's a contentious topic no matter what
00:51
do you guys know of any other ways to combine a sign into a postive number except for multiplication? E.g. f(-1, n) = -n and f(1, n) = n.
an if statement
@CᴏɴᴏʀO'Bʀɪᴇɴ bit shifting
@AlexA. which is annoying
@Quill an example?
How can I have a triple backtick in a codeblock on GH-flavored markdown?
00:54
use tildes for the outer
~~~~
CODE
~~~~
@CᴏɴᴏʀO'Bʀɪᴇɴ ohk, didn't know about that
@CᴏɴᴏʀO'Bʀɪᴇɴ I can't remember <_<
good luck though ;-;
00:56
it's just for personal recreation, so it should be fine
@Quill ^^
@Quill I read that as bit shitting >_>
> new symbol()
that throws a typeerror or something
@Quill that's not supposed to be interpreted as code
I know, but it's confusing nonetheless <_<
01:03
fixed anyway
oh btw I suggest you read this: 2ality.com/2016/01/enumify.html
@Downgoat Are these like Ruby symbols?
@quartata idk
an immutable string allocated only once
is the string semantic and has literally no use
01:09
@Doorknob lol yo, do u even have a mouse
Those are bizarre
@Quill no they're basically like Perl's typeglobs. So if you assign the symbol Fred to something nd later have a variable or function or something with an identifier that symbol is associated with it
Fred
But they can also be used like an immutable string for hashes and ahit
01:13
@quartata so what are their uses
@AlexA. It's the example in the docs
@quartata there's a variable name that contains the variable, and then a semantic string identifier that's passed as a parameter to the constructor. is that the same for typeglobs?
@quartata Fred
@Downgoat lots of things now tell me about es6 symbols
01:15
24 mins ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
do you guys know of any other ways to combine a sign into a postive number except for multiplication? E.g. f(-1, n) = -n and f(1, n) = n.
anyone? :p
@Quill Typeglobs are perl's way of doing dumb shit with the symbol table. *foo literally gives whatever thing the identifier foo is associated with. In this case I was just using it as an example in case you knew Perl idek
@CᴏɴᴏʀO'Bʀɪᴇɴ what is wrong with multiplication?
@Downgoat I'm redefining multiplication
@quartata I don't know Perl but it looks interesting I guess
in terms of log
01:16
Ruby symbols can be used like typeglobs but they're more powerful and have a 50% less chance of killing yourself
@CᴏɴᴏʀO'Bʀɪᴇɴ for positive only you can use absolute
like Math.abs(value)
I'm recombining the signs into the number
@CᴏɴᴏʀO'Bʀɪᴇɴ divide by sign?
Add a signed 0
01:18
x + 0 = x...
> signed 0
flip the first bit
@AlexA. this is javascript
Some languages distinguish 0 and -0
@CᴏɴᴏʀO'Bʀɪᴇɴ Oh
oh
wait
js does have -0, but it doesn't change the sign
01:19
Typeglobs ignore scope so usually you'll end up doing something bad with them usually
Now this is a story all about how my bits got flipped, turned upside down
The Fresh Prince of Bell Labs
@Quill because the first bit is the sign bit?
put your bit down flip it and reverse it
@AlexA. Damn, you win. Fresh Prince of Bel Air references are comedy gold
@CᴏɴᴏʀO'Bʀɪᴇɴ yes
( ^ ͜ʖ^)
01:23
FRESHNIX
@CᴏɴᴏʀO'Bʀɪᴇɴ:
var a = 32
~a + 1
because there's still a 0 bit you gotta add one
~-32 + 1 // 32
~32 + 1 // -32
okay
but how does the sign fit in?
I don't know about combining them, but reversing them works
what exactly are you trying to do?
01:28
Of what?
If it's broth, I can help.
function combine(sign, value){
    return (value / sign == value ? value : ~value + 1)
}
Just boil it some more for starters.
actually never mind
01:29
Also, why are you specifically trying to do this without multiplication?
if you want to combine -1 and 1 into values, just do division
@CᴏɴᴏʀO'Bʀɪᴇɴ but in this particular case...?
because I'm defining multiplication
@quartata ^ ?
@Quill okay. I think I can do division with bitwise operators
If it's performance, native multiplication uses a fft so in most cases it's more or less unbeatable
31
A: Implement division with bit-wise operator

Oliver CharlesworthThe standard way to do division is by implementing binary long-division. This involves subtraction, so as long as you don't discount this as not a bit-wise operation, then this is what you should do. (Note that you can of course implement subtraction, very tediously, using bitwise logical opera...

01:30
@quartata it's for recreation
okay so I used black magic
function combine(sign, value){
   return (
       value > 0
           ? (sign > 0 ? value : ~value + 1)
           : (sign > 0 ? ~value + 1 : value)
   );
}
combine(1, 89) // 89
combine(-1, 89) // -89
basically reverse if they are both different
wait hold up
I can use xor
01:38
function combine(sign, value){
    return (value ^ sign) > 0 ? value : ~value + 1;
}
and here I thought my comp sys classes weren't paying off
Why do you even need to check value > 0 at all?
sigh ninja'd again
No, I mean why are you even bothering checking value? You just reverse it no matter what if sign is negative, right?
it's not always a reverse
4 * 1 = 4
"if sign is negative"
01:41
@AlexA. I do, but I don't know where the USB dongle kajigger is :P
> dongle kajigger
these words
dongle thingo
@Geobits okay you win
my CS is still shitty
where's the dingle-dangle
01:42
@Quill pls golf with es6
dingly-dangly
@Downgoat combine = (sign, value) => sign>0?value:~value+1
@Doorknob Man I wish I was leet enough to use just a keyboard and a tiling WM
@quartata what's stopping you? :P
mouse and muscle memory :P
And not being a lunatic. That's probably the main thing.
01:45
Mar 28 at 23:50, by Downgoat
@QPaysTaxes Welcome to Programming Puzzles and Code Golf! This website is tagged so you need to make your code as short as possible, you can start by removing all that horrible whitespace and making all variable named 1-char long.
@Geobits True, being a lunatic is one of the prerequisites.
Feb 27 at 2:01, by Quill
@AlexA. i like turtles
My workflow is so mundane. I actually use a keyboard and mouse, I don't use vim macros like a lunatic, I don't have any shortcut keys...
@Quill ._.
@Downgoat ;-}
01:48
@Quill do u know how to fix Error: listen EACCES 0.0.0.0:80
did you get that in your sockets program or my terminal program?
in my sock thing
oh, that means somebody else is listening on port 80
IIRC
lsof -i :80 doesn't show anthging
@quartata I used to feel this way but it's a fairly thankless skill. If you really want to be a keyboard expert go learn piano and you'll make more friends than if you could vim well
01:52
> anthging
how to kill evrything on port 80
@Downgoat maybe you need sudo permissions to listen on port 80 sometimes
try running it in sudo
stackoverflow is telling me to do sudo kill `sudo lsof -t -i:80` is this a good idea?
43
A: Node.js app can't run on port 80 even though there's no other process blocking the port

hexacyanideThe error code EACCES means you don't have proper permissions to run applications on that port. On Linux systems, any port below 1024 requires root access.

@Downgoat meh
it'll close chrome
i get earinuse after that error
01:54
Turn off Apache
@Downgoat chrome and any other networking apps that use port 80 you have open will close if you do that
@quartata apache isn't running'
@quartata not while you're flying
or any similar web server
@Quill oh no i dont want that
01:55
let log = Math.log;
let exp = Math.exp;
let abs = Math.abs;
let sgn = Math.sign;

let cval = (s, v) => s > 0 ? v : ~v + 1
let csgn = (l, r) => cval(-1, ~(~l ^ ~r));

let mul = (x, y) => cval(
	csgn(sgn(x), sgn(y)),			// the combined signs of the two numbers
	exp(log(abs(x)) + log(abs(y)))	// the actual equation
);
booyah
sudo killall node worked
@CᴏɴᴏʀO'Bʀɪᴇɴ \o/
53 secs ago, by quartata
or any similar web server
JS doesn't have something like using namespace?
~sighs very loudly
@quartata it can require modules but not really
What? I mean he's aliasing things anyways....
2
Q: What should our chatroom name be?

QuillA number of sites define their main chatroom's name on Meta. Other SE sites have creative and fun room names that are not only related to the site's purpose but show some culture from our chatroom. Some examples of other sites: Programmers: "The Whiteboard" Seasoned Advice: "The Frying Pan" Inf...

@Quill yes it can
01:56
@Downgoat there's not a using namespace syntax
@Quill does the name have to be appropriate?
yes
@Quill ^^^^^^^
@Downgoat with != using
.bind?
what does using do then
01:57
1 min ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
with kinda
using literally imports the namespace into the global scope
with is a little bit different
for(let i in O)window[i]=O[i]
@Quill dammit I was going to suggest the onion
using is an expression, with is a function (and a deprecated one at that)
01:58
@Quill import * from 'namespace'?
@Quill with is not a function nor deprecated
Why does every modern news article I read seem to have at least one typo :I
@HelkaHomba lol
Nice
hmm maybe "The Spiders' Nest"? nah
You typoed typo. A+
01:59
@Downgoat Yeah, my mistake
You are awarded meta-typo of the year
with is literally banned in strict mode
@Cyoce But I fixed it right away. If then than that still exists out there
> SyntaxError: 'with' statements are not valid in strict mode.
@HelkaHomba ಠ_ಠ
02:01
they should do this for spaces too
@CᴏɴᴏʀO'Bʀɪᴇɴ good night?
@CᴏɴᴏʀO'Bʀɪᴇɴ fixed
@Downgoat dragon is appeased
@CᴏɴᴏʀO'Bʀɪᴇɴ ... for now
02:03
^ I call this a "Fake Fourier Transform"
notice how none of the qubits actually interact with each other
@Downgoat I thought you preferred spaces over tabs?
@Phi where were you earlier when I made a fool of myself with bit shifting <_>
Mini-challenge: Find an article that is on news.google.com right now that has a definite typo.
@quartata eh, both are fine. I use whichever is better for the thing I'm coding
@Quill shrugs
02:06
@PhiNotPi ~cries loudly
@HelkaHomba literally the first link was full of punctuation mistake's
@Quill what happened?
27 mins ago, by Geobits
Why do you even need to check value > 0 at all?
I forgot basic mathematics
@Quill for example?
Like forgetting to close a quotation block
@PhiNotPi He cried loudly
02:12
@AlexA. What a storyteller, folks
¯\_(ツ)_/¯
"able of"? No that's fine (I think it's archaic though)
You think? "Capable" certainly works
Anyway, that article helped me find the Google I/O countdown page which is kinda snifty events.google.com/io2016
02:31
@NathanMerrill :/ As a vegan I don't find this funny because this is actually how people think vegans act.
02:45
Ha, I do like the "that's my food's food, and I don't appreciate you eating it" line though :P
@HelkaHomba actually nevermind I'm dumb I was thinking of something else with able
He/she probably meant capable of then
> In one case, an influential Apple blogger Jim Dalrymple lost around 4,7000 songs.
they added a 0 to that...

« first day (1936 days earlier)      last day (3203 days later) »