« first day (2075 days earlier)      last day (2876 days later) » 

1:05 PM
@DenysSéguret Would the bug also appear if they did x === undefined instead of comparing the typeof? It seems odd to me that they would compare the typeof against a string of "undefined" rather than against undefined its-self
 
@Neil I have made node.js implementation as well pastebin.com/PVpbwq5m
Please tell me what am I doing wrong
if anyone else has few minutes to spare please have a look at that pastebin
 
ew, types
 
The top isn't even JS
what is this mush?
java
ew
 
@ndugger Kill it with fire!
 
1:20 PM
Yes the top one is java
and the same I tried to convert in js
and that is what I am asking
if it is correct or not
 
@elsololobo When two calls with the same parameters return different things, there's an unexpected state mutation.
 
@GandalftheWhite That's not a good 1:1 translation...
 
IKR
but IDKR
 
const crypto = require('crypto');

function encrypt (key, inputString) {
    try {
        const cipher = crypto.createCipher('aes-128-ecb', key);
        const base64Form = new Buffer(inputString).toString('base64');

        return cipher.update(base64Form, 'utf-8');
    }
    catch (e) {
        // 💩
    }
}
l2js noob
 
@ndugger From what I understand from the bug report and the fix, it can only happen when using typeof and when the value is null
 
1:25 PM
Interesting, but avoidable
 
@ndugger Okay Sire. *sobs
 
@ndugger thanks for responding to my text, dick :(
 
@SterlingArcher Dude, you texted me after I went to bed. I was waiting for you in chat
So, a PT's prices are gonna vary, especially depedning on your gym. I pay $55 for a 30 minute session. It's not cheap.
As for Match, finding someone on there is kind of hard. I've only found 2 people that have actually been interested in me, and one of those people just disappeared one day
It's not worth it, but I paid for 6 months ahead of time, a while back, so I still have it
 
$55 for a session?
Jesus... I can't afford that
 
Yeah
 
1:28 PM
That's my stripper money
 
Yeah, it's pricey, but it's worth it to me
I need the extra help
but I also got the higher tier of trainer
It's less for the lower tier
The trainers at LA Fitness have 2 levels of certification
 
I have a free session on thursday, and had one last night (i'm sore as fuck) and I learned great tips on form
 
as far as I understand
 
Ahh so maybe they'll have a cheap option, or a monthly
 
Yeah, you also have a different gym than I
 
1:30 PM
$55 for a month of PT is worth it IMO, not per sesh
 
You can always just ask
 
Also true, I'm at golds gym
 
Well, I did and he said "I want to see you workout first before we talk numbers" so I know this is all just a sales thing
But I already feel a difference so his tips did work
 
@GandalftheWhite I added a try/catch since your java method has it. You should actually do something in your catch... like at least return null or something
 
1:32 PM
I am worried about the first block
 
@KarelG saw the gallery. The potato chip was most impressive imo
 
y u du dis?
 
htm is basic for java.
 
^
 
user2620028
@Sterling for the money conscious person wanting to improve their body, go get a job doing manual labor. You will earn money and your body will be in better shape than if you went to the gym
 
user2620028
1:34 PM
@Sterling also better motivation because you are expected to show up for work every day
 
That's a bad suggestion. Why give up the luxurious paycheck of a programmer to make minimum wage shoveling dirt?
 
I work 55-60 hours a week as is, I'm good on a second job
 
You folks haven't erased it from memory
sterling do what you were born to do
CODE
 
!!s/CODE/alcohol and women/
 
1:35 PM
@ndugger alcohol and women (source)
 
All the above are valid
 
user2620028
@ndugger Yeah i meant second job
 
Alcohol and Women come and go the code remains forever
 
Alcohol and women come and go, but htm is basic for java
 
I didn't know that alcohol can come.
 
1:36 PM
You're not wrong about women coming and going
That's the story of all my relationships
 
I prefer legacy alcohol than legacy code
 
@SterlingArcher at the same time, eh?
 
More or less
 
@DenysSéguret I prefer pure code...
 
I'm usually the one doing the going
 
1:37 PM
@SterlingArcher but usually more?
 
Usually more
 
xD
but code remains forever
 
<3 this conversation
 
although it becomes useless
 
@SterlingArcher Urinating more often than you used to? Get your prostate checked!
 
1:37 PM
but still
 
I prefer htm--can you guess why?
 
Fun fact, all my relationships combined (10) have a combined total of 6 months duration
 
:resumes lurking:
 
@SterlingArcher sounds a lot like mine, actually
 
@SterlingArcher do u hate alram clocks? i hate alram clocks
 
1:38 PM
alram
 
da fuq is an alram clock
 
albundy
 
you need to watch it again
 
Oh jesus not that again
I ate those food
 
1:40 PM
thats the last straw grarfileld
 
well that took a turn
:D
 
LOL
@SterlingArcher I thought my connection was screwing up
since we've moved to the new house I've had to restart my cable modem every few days
 
I did too lol the internet is so clever
 
that picture gave me PTSD
All of the sudden I'm getting flashbacks of myspace and yahoo messenger
 
@VeronicaDeane that's a traffic jam I'd wait for gladly
 
brb mending a tear in my pants
 
With concurrently, is it possible to pass arguments to ONE of the processes that is running? Eg: concurrently --kill-others \"ngrok http 4000 --subdomain test\" \"meteor --port 4000 [arguments passed here]\"
 
pictures like this let me really appreciate the size of it all
 
^ that's what she said
 
1:47 PM
lol
 
mine's bigger
 
@rlemon did you take this photo?
 
@SimonSarris no
 
Hey have you used KAS?
 
yes
 
1:47 PM
@rlemon oke, saw it on reddit this morning
 
A wild sarris appeared
 
Do you know of something like the electromagnet but that stays attached during timewarp?
 
My brother just booked us a flight! Penthouse suite at the MGM and a round trip flight costed me about $700 total :D
 
@SterlingArcher You fool, you could have had an Oculus Rift
 
@SimonSarris Happy Birthday
12
 
1:49 PM
@Loktar thanks <3
 
@SimonSarris awww how old are you now buddy?
@VeronicaDeane I also coulda had a V8
 
@SterlingArcher despite what the phrase says, STI's don't stay in Vegas.
 
STI's?
The.. car..?
 
@SterlingArcher You say that like he's turning 5 ._.
 
Ohhhh
STI == STD
 
1:50 PM
@SterlingArcher You're slow today
 
@SterlingArcher 28, though my landlady disputes this
 
> INTERESTLY
 
it is a contentious subject
 
:31267018 I'll flag that and then we'll see who likes being banned
 
pls no more flag abuse
 
1:51 PM
@rlemon hahahahaha
 
lol do you have any fun plans dude? Go black out and write another book pls
 
if I write another book it will be fiction
I hope
 
write a book about me buying a boat..
 
Write a book about getting drunk
 
no real plans though people might come over for food and drink
 
1:52 PM
Oh BTW @rlemon suggested graphical mods: realplume, engine lighting, and planetshine. I just installed them
 
DON'T buy a boat!
 
He won't have to buy a boat if you write a book about it
 
write a book about me building a canoe..
 
boats are the worst. Do you really want to go around in life always having to ask yourself, "but what about the boat?"
 
Boats would be better with teleportation
 
1:53 PM
call it "Bob and some Lemons float with the fishes"
it'll be like gilligans island but with more javascript and corn
 
call it, "Bob's Boat, and How to Get Women"
 
hardpore corn
 
@rlemon but I hate corn!
corn is a degenerate crop good for nothing
 
1:55 PM
not feeding people or cows
 
you realize the amount of crap you can make from corn?
 
This is the suite we're staying in :D on the second highest floor in the tower
 
we should regret ever planting corn
@rlemon two obese nations?
 
lol
 
Corn is a disease on this giant rock we call home.
 
1:55 PM
heh "powder room"
 
@KarelG is that for cocaine
 
I mean honestly... of the 7 guys going, I think... 3 of us are single
 
shhh
 
"Hey girl wanna go back to our penthouse suite?"
Donezo
 
are you going to mate with those singles?
 
1:57 PM
I hope not
 
I'm sorry
 
what did i miss ? :o
 
Constipation is serious
 
varnish, fuel, glue, zein (wax paper), soap, bricks, oil, drywall, plastics, insulators, etc.. the list goes on. most corn isn't grown for consumption by humans. something like 1% is. corn is grown for a shitload of other reasons. if you don't want obese people stop turning it into splenda and corn sugar.
don't stop growing corn.
 
#StopCorn
 
1:58 PM
plastic is evil
 
bioplastics are a lot better
 
carton is angel
 
#PlasticOnTheCob
 
errr
 
Oh jesus, we're taking the red eye home
 
1:59 PM
there are differencies in corns itself. Some corns aren't consumable for human but is useful for making plastics
"red eye home" ?
 
I won't be back until 6am on tuesday, and I have to be at work at 9am
@KarelG I just learned that term yesterday. It's literal. Overnight flight, so your eyes are red when you get home
 
@KarelG yea, and most corn grown in the USA isn't for human consumption. a lot of it is feed, but even more of it is now reprocessed into other areas.
 
@SterlingArcher sleep during flight ?
 
I'll try... but last time on a plane I wasn't able to
 
depends from person to person
i can "turn" myself in standby easily
 
2:02 PM
I can't sleep on planes unless I'm in first class
 
I don't want to know what a first class ticket to vegas costs
A round trip costs almost half as much as the suite
 
it's surely less expensive than what i need to pay
:p
wtf
1400 EUR is the cheapest i've found
 
I don't like vegas
 
Does anyone know of any way to apply a throttled middleware to redux?
 
I don't gamble
 
2:05 PM
Monte Carlo is my best alternative
 
Not too bad actually, ~$800 for first class
 
I want to write to the database, but only on a specific series of events, and throttled
 
that wasn't first class ticket :P
 
I've had first class twice, and they were both free upgrades since the airlines messed up
 
@KarelG I mean... that's a trans-continental flight lol
 
2:05 PM
for first class, it's already at 4k
 
Mines just across the country
 
yeah
 
@ndugger a few of us dont gamble, but me, my uncle and my brother are sharks on the blackjack table
 
depends of the competition too
 
Yes, my uncle is going. He was basically a big brother to us growing up lol
 
2:06 PM
which kind of game do you like? Blackjack, poker, roulette, ... ?
 
I feel pretty strongly about not gambling, myself. Something about it just doesn't sit right with me.
 
Blackjack all day
 
dice game ?
 
Nah, I tried craps but it wasn't as fun as the movies made it out to be
 
difficult to win
you have better control at card games
 
2:08 PM
just ran my JS with a bug...
but the application looks cooler
-copies bugged file, moves on-
 
Yeah, there's a casino ~40 minutes from my house in West Virginia. We went, somehow managed to grab a table for all of us, and all of us walked away with money. The dealers said they've never seen such good luck for an entire table
My brother went to atlantic city, and posted up at a table by the bathrooms. I was like wtf why, and he told me a story
 
@SterlingArcher My uncle and I both sat down at a $5 at the Flamingo. Agreed we'd both just use $40 (we were only there for the night, driving through). He took first and I took last chair. We ended up walking away with $1100 total.
 
nice
 
> At around 3-5am at any casino, go sit near a bathroom area. Why? Because by that time all the drunk people lose their shit, and throw up everywhere trying to make it to the bathroom.
 
No such thing as luck at a Blackjack table if you have several folks who know what they're doing. -You- control the odds of the dealer at that point.
 
2:10 PM
@Megaplex I'm looking forward to lower minimums. The lowest tables in my area are $15-$25 a hand
 
there is a small part of luck involved if you compare it to roulette / scraps / ...
it depends of which card you receive
but i like poker
 
@SterlingArcher I'd recommend the Flamingo for that. After 2200 they had girls dealing in burlesque.
 
in a room, with a lot smoke around, lots of drinks on the table, sometimes hot woman on lap, ...
 
:O
@rlemon god dammit
 
2:12 PM
@SterlingArcher sounds like great fun. Why the hell do I even go to the movies anyway?
 
haha that app
 
Some people dislike the smell of puke, but I rather enjoy it.
 
ew
 
I don't actively inhale the smell, but I'm dying to see floozies become hot messes. Apparently when multiple run at the same time, there's slippage.
People watching is fun
 
i just wiki'd SPL and one of the results is shakespeare programming language.
The Shakespeare Programming Language (SPL) is an esoteric programming language designed by Jon Åslund and Karl Hasselström. Like the Chef programming language, it is designed to make programs appear to be something other than programs; in this case, Shakespearean plays. A character list in the beginning of the program declares a number of stacks, naturally with names like "Romeo" and "Juliet". These characters enter into dialogue with each other in which they manipulate each other's topmost values, push and pop each other, and do I/O. The characters can also ask each other questions which behave...
 
2:14 PM
@SterlingArcher you know there is such a thing as porn, right?
 
no no
 
@SterlingArcher I've got a disturbing gif to send you
 
watching people boot is a sport for sterling
 
prepare yourself.
 
I've been learning Papyrus recently (the scripting language for Bethesda games)
 
2:15 PM
Oh, you don't mean that kind of slippage
 
@Neil no dude. Literal slippage. In puke.
 
@ndugger it has a weird logic tree ...
OR has higher priority than AND
 
@KarelG yeah, it's definitely different from what I'm used to
 
Ever see the guy with a shovel falling for 10 seconds? Imagine that but with a shorter dress and high heels
 
sometimes that disturbs my thoughts when scripting
 
2:15 PM
@SterlingArcher I was like, what fetishes are you into?
 
@KarelG Well yea, how else do you think they get those amazing physics in their games?
 
Faith in humanity restored
 
i had to do logical expression on paper to make my conditionals right :|
 
2:17 PM
Awww lookit the potentially deadly viper
 
converting conjuctive forms to disjunctive forms @_@
 
I think snakes are cute... Either I'm fucked in the head, or everyone else is...
 
porky low nose dose?
 
@ndugger You just have a tongue fetish is all.
 
How does one make it so that in this example, the dot doesn't leave a trail?
 
2:23 PM
@ndugger it's just who you are. If you like snakes, then ...
 
Here's the edit link (source code): jsbin.com/gejuz/1/edit
 
i know someone whom likes spiders.
 
@JossieCalderon This looks like a good example of when to use canvas.
 
wtf
each dot represents a div ?
oh boy oh boy
 
is it that bad?
i thought about using that (i'm using a canvas)
 
2:24 PM
Yes
 
I'm sorry, but you're not using a canvas :|
 
That's not my example.
 
looks like it was made by tjcrowder, who's notorious for giving bad answers on main...
 
give that person whom made that a slap
 
@JossieCalderon you need to clear the canvas each render
context.clearRect(0, 0, canvas.width, canvas.height);
// draw circle
 
2:31 PM
@rlemon But Lemon, it's too hard to actually read the MDN and learn.
 
yea, and it is easier to be condescending than it is to give a small piece of advice. ;)
 
Sorry, I'm on the tail end of a two day migraine. I'll try to be more civil.
 
I'm using a canvas, and I'm drawing arcs on my canvas. These arcs go from 0 to 2*pi, so they are circles. How do I have it so that when I move my mouse, I have one circle trailing the mouse, and there are no "mousefootprints" of the mouse?

http://pastebin.com/wHHZgi8Z

I've taken your suggestion into account, rlemon. Those comments are included in the pastebin.
 
@JossieCalderon You should use jsFiddle or codepen instead. You'll be able to play with your code live that way.
 
2:40 PM
rlemon gave you the answer
please read it closely
11 mins ago, by rlemon
context.clearRect(0, 0, canvas.width, canvas.height);
// draw circle
 
it doesn't work.
 
that's because you don't understand the canvas API well I assume
 
yep, i'm an idiot.
 
@JossieCalderon you need to clear the canvas before you redraw the circle that's trailing your cursor
 
oh, you mean like this?

ctx.clearRect(0, 0, ctx.width, ctx.height);
createUserCircle(event.clientX, event.clientY, 7)
 
2:43 PM
ctx does not have a width and height
ctx.clearRect(<x coordinate>, <y coordinate>, <canvas width>, <canvas height>)
please adjust
 
its the canvas itself that has .width, .height
 
ctx = context. Doesn't represent the canvas box. Use canvas.width where the canvas is your canvas box
 
LOOK AT US ALL BE HELPFUL AND TALK ABOUT JAVASCRIPT <3
 
!!afk standup
 
it works!
 
2:45 PM
i.imgur.com/pttaj3V.jpg wow no way thanks brock
 
checkmarks for everyone
 
like canvas = document.getElementById('urcanvasId'), and context is then ctx = canvas.getContext("2d"). Now you cna do ctx.clear(0, 0, canvas.width, canvas.height); correctly
 
Is it bad if a user moves the mouse fast and sees the trails?
That's why I have to work on the application!
 
I believe somebody asked about parsing duplicate keys in JSON recently?
I believe that could be solved using the second argument of JSON.parse.
 
nobody knows that parse and stringify have extra arguments
 
2:56 PM
MDN does :-)
 

« first day (2075 days earlier)      last day (2876 days later) »