« first day (2168 days earlier)      last day (3005 days later) » 

19:00
@ssube Wich stream, what are you talking about ?
@DCameronMauch well, you could always use a switch or something and the same callback
@KarmaDoe the stream you're reading from
@Jhawins I have no idea what is going on in your head or how you got humour out of this
node can break it up (or down) however it wants to, based on backpressure and other stuff
@ssube im not reading streams
@ssube im getting messages through an TCP socket
I just don't understand the need for callbacks at all, but if there is no other way...
19:00
@KarmaDoe buffers and streams are related concepts
There's no such thing as a 10min kick
a TCP socket is a stream that will fill a buffer
user1596138
@KendallFrey I was sarcastically saying he got kicked for 10minutes. You told me it was real, and that it was for 30. I had thought it was a joke. Turns out it was a joke ion the end...
@DCameronMauch because most things in Node are async.
it's not super helpful here, but good for consistency with the rest of the language
19:01
@Jhawins there's no fucking joke dude
user1596138
@KendallFrey Dude. Stop being an asshole, thank you.
user1596138
I saw a joke.
whatever makes you happy
@Jhawins none of it was a joke. Why are you encouraging him?
user1596138
@ssube Encouraging who
user1596138
19:02
I don't think any of us 3 knows what tf is going on right now.
user1596138
Can we just move forward lol
5 mins ago, by Jhawins
@Waxi We'll talk about it as long as we feel like... And it doesn't work that way. Eventually you're going to lose your account, not just get kicked ;). Keep going tho by all means I love to watch
@subbe So, how would be a good way of telling if the header is correct or not ?
user1596138
@ssube That has nothing to do with what Kendall is talking about, also that wasn't a joke.
@ssube thanks for your time tho.
19:03
@KarmaDoe you don't even know if you're getting the header you think, until you've made sure the packets are matching.
I see where you are going
@Jhawins None of this is a joke. Kendall is asking you to stop encouraging trolls while we're trying to kick them.
I understand it now
user1596138
@ssube No, he's not actually?
And there is no way of check it from both sides
It's within my limitations
Work with only the data buffer
thats all i got to work with
user1596138
19:04
I said that he had been kicked for smarting off...
user1596138
He hadn't
@KarmaDoe TCP will split things up, then Node will split them more, then Buffer even more, so you need to reassemble them correctly then parse your messages out.
user1596138
Kendall said he had.
user1596138
I thought that was quite funny.
user1596138
That turned out to also not be true.
user1596138
19:05
</haha> // move on
!!pizza 1920 1080
user1596138
You know.. If you guys weren't so serious and easily butt hurt you'd probably have a lot better day. Jus sayin..
that's not a valid html comment.
user1596138
!!afk something better than this.
19:06
@Jhawins if you disagree with Shog9's moderating style, take it up with him.
^grade a entertainment
no, don't respond to JHawins. If he dies'nt have the last word he won't stop.
HAMMERTIME!
ty, Cap.
I both love and hate Cap's interjections, since they always come when somebody is in trouble.
19:07
!!dunphy 1920 1080
rlemon is trying to out-scroll the issue. :)
@ssube What i need is a filter, that checks if the message is correctly reasembled or not, and in the case it's not, discard it and log it, and in the case it is, parse it.
@KarmaDoe oh, TCP guarantees that it will be assembled in order and all the data will arrive.
You just need to watch for the start and end markers, AFAIK
Which could just be a length prefix and then keep reading (across multiple data events) until you've filled that length.
wheres the drama
19:10
Done with.
@ssube Going back to the begining, the Relay wich injects me with messages, sometimes fails to get the markers in order and fucks em up.
@SteveG what are you doing here
came to see the drama
@KarmaDoe that's... weird.
and now i'm out
19:10
What kind of relay is it?
It is
TCP shouldn't be allowing that, so it has to be doing logic of its own
Yes, cant disaseble the code tho,
It's a failure at memcache
but i cannot modiffy it
"at memcache"?
it's not really relevant
can't fix it
19:12
I don't know of any way to repair out-of-order binary data that late in the game
i dont want to repair it
just discard it if its wrong
discard the whole packet
if i must
i just need a reliable way to check if that marker is correct or not
can you guarantee that the message will always fit in a single packet and data event?
Yes
They should
but the headers still come out wrong?
Exactly
19:14
are you absolutely sure that the data buffer is getting exactly the same bytes as the original message?
98%
At least in testing env it does.
Can you specify a font's height relative to its parent container?
@KarmaDoe well... I don't know, really. My best suggestion is to discard the message if header.length > buffer.length
then you know it's a bad message
@ssube but what about the cases when header.length < buffer.length
so i've made a math.abs(diff)
and a certain tolerance offset
@KarmaDoe try to parse it?
19:19
God dammit I always miss the fun
The thing is, if i parse a message with a corrupt header it manages to crash it
I get V8 Error.
@KarmaDoe well then you need to make your parsing code more robust :P
@SterlingArcher maybe if you had a watch..
Maybe go fuck yourself
3
@ssube I should, but its not my code
i was asked to make a filter, with no side effects, using only the data event
and buffer
19:21
@KarmaDoe if the relay and the parser are both out of your control, you might be screwed
user1596138
@Luggage Lol as if I don't just walk out on you guys every day I come here without the last word...
jeeze waxi got kicked again as I've been gone
user1596138
I used to be the dramatic one lol it's some of you guys now... I don't even come here hardly haha
user1596138
@Loktar Yeah I asked for context on his little situation and somehow got everyone's panties bunched up lol
-5
Q: Javascript Theasaurus

Daniel PIm attempting to work on a text editing and need a program which works like this. function change(word){//CODE GOES HERE} change(word)=synonym. I need this to work with an API containing a link to a near complete theasaurus.

19:22
@ssube That's what i was hopping for not to happen.
@KarmaDoe besides wrapping the parser in a try/catch, I'm out of ideas.
@ssube
what i could do
If check if there is another marker
when buffer > header
and check if buffer = sum
buffer = sum (headers)*
user1596138
@ssube Shouldn't even respond but I am so confused about how you think I said anything relating to Shog's moderating style at all whatsoever lmfaoo
user1596138
It's like you guys just say random shit half the time..
19:30
Pinata
Cabbage.
Col Lombarda.
@Luggage The python folks have converted you?
turnips
!!pancake
19:31
@rlemon That didn't make much sense. Maybe you meant: pancake
@corvid python is just a string of random words
where perl is a string of random symbols
In a metaphorical sense, aren't we all just a string of random words?
user1596138
Bidet
@corvid Nope. Just you.
@corvid I'm made of meat, not words.
also some squishy bits that I'm not sure about
user1596138
19:33
I'm made of my observation of myself
user1596138
Or something
@Jhawins don't blink
whoo, haircut time. Who wants a snapchat afterwards? :P
I still have a pulse.
@rlemon NO
19:35
I have 2 angels in my parents basement, theyre terrifying
user1596138
!!> "Racecar".split('').reverse().join('')
@Jhawins "racecaR"
@rlemon DON'T BLINK!
user1596138
^ It's The Doctor
This works, jsfiddle.net/44opeesd/1 , but it's not very sophisticated lines 35 and below. Thoughts?
19:43
Too many blank lines.
@Luggage Are you implying I'm actually a bot? So I've been found out.
Your labor property sometimes has a number, sometimes a string.
Hello! I'm having the problem described in this question (which doesn't have an answer): stackoverflow.com/questions/37722920/…
In a webpack project, I'm trying to require() an .svg file
And when I do so, I get this error:
@Luggage Good catch, I'll set my default labor to a string 0 instead.
My nested loops work, but someone said it's an abuse of forEach lol
ReferenceError: React is not defined
    at Object.<anonymous> (/src/an_svg_file.svg:1:1)
Can I have some help figuring this error out?
19:48
@Waxi the fact that you loop over allRecords and people (same data pre-transform and post-transform) is odd and confusing.
I think Webpack is trying to parse my .svg file as JSX, but I want it to use the Webpack file loader (github.com/webpack/file-loader)
@Kevin let us see the loader for .svg, please.
That line(s) from your webpack.config, I mean.
Here's the line my webpack.config:
  {
    test: /\.svg$/, loader: 'file-loader'
  }
And in package.json, I've included file-loader as a dependency:
"file-loader": "^0.9.0",
file-loader shouldn't do anything to the file.. show me the line where your import/require() that file.
@Luggage I think you gave me the code that combined my similar objects, but now that their dates are stored in another level down in a new property, wasn't sure how to use it.
19:54
const theme = {
   //...
    '.icon:hover': {
      filter: `url(${require('../svg_filters/filters.svg')}#make-light-blue)`
    },
  //...
}
@Waxi no interest in re-writing it, so you'll have to figure that out on your own
I commented it, if I recall, so I did my part and then some.
@Luggage Yup, I understand, still have it and will reference it, just had to get something that worked, now I can work on making it slicker.
@Kevin I see no reason so far that it would be treating svg as code..
So 500 million accounts at Yahoo were hacked. TIL Yahoo has 500 million accounts.
One thing that I think it might be based on some reading I've done is that, since I've installed file-loader as an NPM module, Webpack might not be loading it correctly
19:57
no, npm is the correct (and only?) way to install it
put your whole webpack config in a paste site, please
I did it, you guys, I finally proved my skills as a js programmer. JavaScript heap out of memory
Unfortunately, I'm working on a closed-source, commercial project, so I'm not sure I can share our entire webpack.config.js without getting in trouble :(
then just the loaders section.
@KendallFrey TIL Hanselman isn't too smart.
@Loktar ?
20:01
@corvid smash a stack and then let's talk :p
Joke at his joke poking fun at Yahoo
How wouldn't Yahoo have at least that many accounts
Yahoo is/was hugely popular
stack overflows are easy.
because it's fucking yahoo
everyone still knows what it is
yeah exactly it's yahoo! lol
its not some site like gooberdorf
I don't have a yahoo account and I don't know of anyone else that does
20:02
that no one has heard of
Never had one
probably because you guys weren't using the internet in it's early days?
I've met folks who used yahoo, but
It's like joking about blackberries being non-existant
I have at least 2 probably, inactive
20:02
oh right
only.. that might be true now.
It's a lot like PCP
tell us a story grandpa
 module: {
   loaders: [
     {
       // A non-trivial loader I didn't set up that seems to be working so far
       // (again, I don't want to share too much without getting permission :( )
       // It sets up Babel to transpile our ES6 and sets up hotloading
     },
     {
       test: /\.css$/, loader: 'style!css'
     },
     {
       test: /\.svg$/, loader: 'file-loader'
     }
   ]
 }
Everybody knows somebody who tried it and had a bad time
20:03
@Kevin Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
the biggest danger about the hack is that all of my 2004 passwords are now garbage. :(
@Kevin well.. i see nothing that would account for an svg file to be read as code. That issue mentioned svg-react-loader, but none of your config shows it.
I did add svg-react-loader to package.json as well, but still got the same problem
I don't know anyone that tried PCP
@KendallFrey I bet you don't even have a Zone or MySpace account
noob
20:04
@Kevin what's the test on that first loader?
myspace css made me hate css
I'll trade you my closed source webpack config.
its the root cause
but my page was fly af
@Luggage i used to. Dude picked me up by the knees once in the middle of a shopping mall and spent 10 minutes booking it around. Bear in mind, we were both 6'+, so that's 10' and 400lbs of dude flying by.
@Loktar I've never even heard of Zone
20:05
He got kicked out
@KendallFrey lol old Microsoft multiplayer gaming network
used for Age of Empires
I, being sober, did not
@Loktar you mean gamespy? :p
@ssube nope, the zone!
Custom AoE matches on the zone were the ish.
20:06
@sube What do you mean? Are you talking about the first loader that I pasted several minutes ago? If so, I just added it today and haven't written any tests for it. The loader plugin iteslf isn't something we wrote - it's a GitHub repo at github.com/webpack/file-loader
So I guess I'll avoid anything named /\bz.ne\b/i
@Kevin the one that is commented out. We think that it's also loading svg files.
especially if it's from MS
I could see that
20:07
just give us the test:, at least.
i really wish i still had/remembered my geocities accounts
:?
Ah, you mean the test: property. I thought you meant a test case xD
I'll see your geocities and raise you one homestead.
    test: /\.js$/,
hm. got me.
user1596138
20:09
@Loktar lol I have 2 Yahoo accounts
Fair enough
I see your 'homestead' and raise you local BBSes on a 1200 baud modem.
Thank you for your help! I thought this might have been some easy change to one of the config files that I was missing. It really does help to know that all of the obvious stuff checks out.
@Jhawins same here, at least 2 lol
I used to use yahoo as a web host
@Luggage I see your local BBSes on a 1200 baud modem and I raise you tin cans on a string.
20:24
hi all
@rlemon think I've still got a 28.8k US Robotics in the loft :)
Woot, I just hit 1000 internet points on SO
I'm not such a noob now, am I?!?!?
user1596138
!!stat taco
crickets
@JonClements sadly I have none of my own old hardware :/
20:27
@Jhawins taco (http://stackoverflow.com/users/1075902/taco) has 1007 reputation, earned 20 rep today, asked 14 questions, gave 92 answers, for a q:a ratio of 7:46.
avg. rep/post: 9.5. Badges: 0g 12s 25b
I found a laptop I had in hs, not super old.
doesn't boot, hdd doesn't read.
tried the freezer trick.
I've amazingly gotten the freezer trick to work a couple times out of about 500 dead drives
I haven't kept machines... use to have a 486sx-25 - think that was the first "proper" PC I bought
kept disks in storage though
I've had it work before on a full sized hdd. so I had high hopes
nope :/
Hows my new es6 version of WOF looking to you guys? codepen.io/maniator/pen/JREaKw (vs the old one jsfiddle.net/maniator/XP9Qv)
20:28
even got my cooler and bags of ice and cooled it while trying to read it
it was a last resort
although I doubt stuff from over 25 years ago (even in air-tight storage) are going to work anymore
@rlemon Create a clean room, buy some forensic tools, and recover those myspace photos
lol
:d
user1596138
Do it
user1596138
20:31
I stockpile old phones lol
user1596138
I have an iPhone 3GS, 2 iPhone 4's, and like 6 Androids.
user1596138
Eventually I will have to resurrect them for the old photos.
user1596138
I'm not sure which ones I have left tho because we put one of the iPhone 4s on my Neon Sign Transformer to watch it burn...
Hey guys, I have a question does anyone any url redirecting library ?
user1596138
@Neal There are no spaces and that makes it very hard..
20:37
@Jhawins No spaces on what?
You puzzle is probably only one word...
user1596138
@Neal No it's broken
@Lamar window.location = '...'
user1596138
@Neal drop var
be consistent
user1596138
See lol no spaces in the puzzle so the answer is "whoslineisitanyway"
20:37
@Jhawins Ok?
@rlemon copy/pasta from the old one
@Jhawins the jsfiddle one works jsfiddle.net/maniator/4azoqbpv
must be something wrong in codepen
no excuse
weird
user1596138
@Neal I was looking at the new version :P
@Neal I am not following lol
jsfiddle.net/maniator/4azoqbpv <-- that is the new one @Jhawins I just copied it to pen
This one is the old one jsfiddle.net/maniator/XP9Qv
@rlemon I got rid of the var in the new fiddle. something is wrong on codepen. odd
user1596138
20:39
@Neal Oh yeah that one is fine lol
@Jhawins weird
@Jhawins fixed the pen codepen.io/maniator/pen/JREaKw
it was css v scss issue
you should be able to stick a bind on your methods so you don't have to bind them for multiple handlers.
this.click = this.click.bind(this)
then you can just assign this.click to the handlers later
@rlemon can you do that though?
try it
Is that good "practice"?
    const clickFn = this.click.bind(this);

    element.addEventListener('click', clickFn, false);
    button.addEventListener('click', clickFn, false);
Updated the fiddle
@rlemon ^
20:47
@Neal i usually do this.onClick = this.handleClick.bind(this)
then i always trigger onX, and know the callback is called handleX
just personal preference though
@bitten to each their own :-)
@Neal exactly ^^
although depends on the context, this.click = this.click.bind(this) is necessary in certain situations
the only real difference is that .onclick overwrites all other handlers
addEventHandler lets you add multiple
and the capture argument
but not many people care or use that
@rlemon iiiif you meant that as a comment on mine, i do that when writing my own class or function or so on
not when extending something
@Neal maybe instead of a local constant, store the bound function as a property of this. that way, if you need to remove the event listener in some other method of that class, you will have a references to it readily available
20:51
class State extends EventEmitter { constructor() { this.onStep = this.handleStep.bind(this) } handleStep() { /* .. */ } }
@rlemon ohhh. this in the context of my game is not a DOM element. I understand what you mean
sorry to derail D:
@Neal yea you want it to be the reference to the class instance
@nderscore I don't think id ever have to in the context of the game.
@Neal it's a good habit to get into regardless :D
20:52
@nderscore maybe
21:03
I could really go for a scotch egg
or 3
user1596138
!!giphy scotch egg
user1596138
Oh
user1596138
Is that actually what a scotch egg is? Looks kinda nasty
A Scotch egg consists of a hard-boiled egg wrapped in sausage meat, coated in bread crumbs and baked or deep-fried.
sounds good to me.
21:18
I like eggs.
Scotch eggs are the best
It's what egg mcmuffin wanted to be
hmmm
0
Q: Wheel of Fortune -- The ES6 Version

NealI have taken my original code from here and turned it into an es6 version of the same game. Any code review and critiques are useful. Here is a jsfiddle link to play with https://jsfiddle.net/maniator/4azoqbpv/ class OnListener { constructor() { this.events = {}; } on(event, cal...

Created a code review Q for it.
21:37
@ssube they're good heated or cold.
can't go wrong
breakfast any time
I keep a few in my pocket.
they sell em for $1.50 per at the grocery store meals to go section
they're decent
@rlemon not a fan of cold ones tbh. Personal taste, don't like cold eggs.
Also, new juice day!
I'm boring. Been vaping the same juice for over a year.
If you like sour fruits, the gemini stuff is $10 for the little ones
@ssube I'll check locally. Delivery to Canada from the USA isn't cheap.
@rlemon I rotate between 3 different flavors, but mainly just 2
I feel like if you keep vaping the same flavor constantly, you start to taste it less
22:05
@William alright. I laughed at the end.
@nderscore fruitloops
Each puff a new flavor
I'm not sure that's how it works :P
@nderscore Willy Wonka could make it happen
@Loktar You said you wrote your own date input. May I see it? I have my own, but I'm curious what you use. I understand it if are unable or unwilling.
My ultra simple one (just parses dates, no popups / UI): gist.github.com/luggage66/4f789ec3124733f13b1d86ee77d4ba93
cool^
Meh.
Can I use it?
Can I stop you? :)
22:49
I'll give you my home address if you want to try
all it really does it pass what you type through moment.js to make sure it's in a standard format
and revert to last value, if you leave with something invalid.. etc.
Make sure you wear latex if you come over ;)
23:50
Children of a Dead Earth releases tomorrow!
@rlemon ^
\o/
\\o//

« first day (2168 days earlier)      last day (3005 days later) »