« first day (2377 days earlier)      last day (2585 days later) » 

2:01 PM
see what I typed in to the search. try that exact phrase
pick one of the questions tagged [javascript] and read the answer
 
This is probably a stupid question but I just want to make sure there are no "gotchas"... If I'm using a switch statement and returning a value inside of each case, there is no need for a break statement, correct?
 
yes, but it's ugly
 
@KarelG what, the switch statement itself?
 
switch(blah) {
  case(a) :
    result = 1;
    break;
  case(b):
    result = 2;
    break;
}
return result;
 
no, returning in each statement body
pick rlemon's approach
 
2:07 PM
Ahhh I see fair enough.
 
Do people still use switch(true) {
 
What would the purpose of that be?
 
So you can switch on a conditional
 
lol no way people did that? Was there a reason for choosing that over an if-else?
 
const a = true, b = "truthy value";
switch(true) {
  case(a):
    // yes
   break;
  case(b):
    // no
   break;
}
 
2:10 PM
Oh wow wouldn't have thought about that.
 
switch(true) {
  case(record === null):
    // ...
   break;
  case(record.id > 4000):
    // ...
   break;
}
 
just remember, truthy !== true in the switch
 
I would just use if, else if, prsonally
 
same
 
Is there really any difference?
 
2:11 PM
32 secs ago, by rlemon
just remember, truthy !== true in the switch
 
I think switch was faster in like ie5
 
I could see it being useful in some type of JS game programming where you have to evaluate a bunch of statements after each move. But that's just because I imagine the if-elses would get ugly
 
learnRegexThen...
 
👢?
 
is that a boot ?
 
2:13 PM
I believe it is
That's a copy-paste of what he said above lol
👢 plz
 
💵
 
More like 💵💵💵💵💵💵💵💵💵💵
 
💰
 
🏦
 
robot test failed.. and im soaked with rain :(
 
2:15 PM
Look at these fat cats here who can afford money bags for their money
 
@Vap0r it doubles as pants.
 
yep
 
@rlemon that's more like it.
 
1 message moved to Trash can
 
@Sam Please don't use all cap.
 
2:16 PM
🍺
 
we don't mind emoji's. but don't post a wall like that please.
@Sam and I already told you where to look dude.
 
@Sheepy noooooooooo
Don't help the vamp
 
:(
 
I've even looked myself. there are like 20 viable answers
 
2:18 PM
@Sam go on google. type in site:stackoverflow.com regex matching numbers and decimals
start testing the results
 
hi
 
@rlemon how google?
 
idk man.
 
I'm still waiting for someone to help me with step 2
help
 
ohh the irony
 
2:21 PM
Anyone experienced the x-axis labels not showing with a d3 bar chart?
 
lmao the balls on this one hahahaha
 
d3 axis labelling sucks
 
@Sam so did your chances of being spoon fed the answer
 
user2620028
@Sam mental help?
 
user1596138
 
@SterlingArcher I know the x-axis is there if I move the line half way up the chart. But if I place it at the bottom they are not visible
 
I need ginuwine.
 
dat effort for that package
 
user2620028
genjuine
 
2:23 PM
This is a jsbin of the chart
 
Jr.High throwback.
 
if you have any advice on where I could look
 
@BrianJ How about a working one? :D
 
you got a big head
 
@BrianJ nothing is showing
 
user2620028
2:24 PM
.
 
Just the tip
 
Anyone heard of reasonml?
 
> "error"
"SyntaxError: Unexpected token import
at https://static.jsbin.com/js/prod/runner-3.41.10.min.js:1:13926
at https://static.jsbin.com/js/prod/runner-3.41.10.min.js:1:10855"
@BrianJ
 
@towc no, but i heard of fml
 
yo demo broke yo
 
2:25 PM
It's like js, but with ocaml ideas apparently
@littlepootis you liked ocaml, right? Or was that awal?
 
bye
 
ocaml is garbage
 
anyone used jsdoc? im getting error, "invalid number"
 
@Sam both good things
 
@SterlingArcher @rlemon my bad need to get the imports for those libs
 
2:26 PM
@snowy500 context ?
 
try the chicken with a little bit of red pepper juice as well
excellent.
isn't it greasy?
 
well I'm just trying to generate html for a javascript file, but I try command: jsdoc myFile.js, and it gves error
 
I always imagined penguin to taste like duck.
 
@snowy500 more context ?
 
Horse doesn't taste bad at all
 
2:28 PM
Is there some list of jsdoc errors anywhere? i cant find anything in the documentation about errors
 
co-worker regularly has horse meat sandiwches.
 
@rlemon Personally, I think you should lay off the horse steak
Have you looked into a mirror lately?!?!
 
@Sam I did. I gave you ample search terms.
and I put up with your vamping.
but I've reached my limit.
so stop begging, please and thankyou.
I will 😀
my mood right now is quite nice.
 
@towc awal
I didn't really like it.
 
I love this idea that by not wanting to do someone elses work, we're somehow unhappy or grumpy people.
 
2:30 PM
@rlemon I barely want to do my own work, screw someone else's
 
@Sam If you want to be a dev, you have to do some more effort ... ^\d+(\.\d{1,2})? should do the job. Go away and be a miserable developer.
 
@SterlingArcher omg. i.imgur.com/ltqRVzo.gifv
 
@rlemon did he died
 
no
shoes stayed on
 
oh my god hahahahaha
 
user2620028
2:31 PM
the board got away from him before he even hit the ceiling lol
 
better every loop
 
Seems a weird building, to have a sudden floor level change for ... 1m ?
 
even if it's adjacent building
 
saw leg press.. noped out before the action
fuck that man. I wanna enjoy my workouts
@SterlingArcher do not watch
 
2:33 PM
TS just made thta refactoring so much nicer.
 
Don't lock your legs ladies and gentlemen
 
Make a change, then it tells me what code I broke.
 
watched the whole gif. still doing my workouts. ME STRONK STOMACH
 
eye bleech
 
user2620028
@BenFortune didn't watch but i am assuming the dumbass also was using way too much weight
 
2:35 PM
 
I saw the one with the girl on the non-inverted leg press get bent backwards
I can't unsee that
 
@rlemon haha yeah, and the guy grabbed her titty
 
Fast thinker
 
want to see dem link (with that girl )
 
2:36 PM
Because of the titty grabbing, right?
 
same problem as that guy you've linked earlier
in fact, you shouldn't stretch your leg completely when doing weighting shit
 
user2620028
@rlemon why are there so many specialized os versions for the rpi, is it a lack of internal storage issue? or just a user interface awkwardness issue or something
 
I'd imagine the main reason for the split is the arch.
 
user2620028
like this one is for a little arcade, and another for a media center. Why not both?
 
2:39 PM
do most OSs support ARM?
@HatterisMad ohh. idk. why 900000000 js frameworks.
 
@HatterisMad Interface mostly, people want something they can just flash and get on with
Lots of unnecessary stuff gets stripped out too, since the pi isn't exactly the most powerful thing
No point having a service running when it's not needed
 
user2620028
is it underpowered to the point where you really want to just pick one meaningful purpose for it?
 
user2620028
maybe it would be best if i had one memory card with one os install on it and another with a different os install on it
 
@rlemon worse or worse than the other leg press lockup?
 
user2620028
and i could just physically switch between them at will
 
2:40 PM
I think you're overestimating how much work it takes to make a "special purpose" linux distro
 
Usually when you buy one, you have a specific use for it in mind. Unless you're prototyping/learning
 
@SterlingArcher same, but more weight and inverted
 
I just realized I haven't eaten in almost 24 hours 😒 that's not good
 
dont
 
it's usually just a config file with a list of packages, so folks can throw together a new rpi spin in minutes
 
2:41 PM
^
 
I just label my sd cards
 
@SterlingArcher You know what I made last night?
 
user2620028
@ssube no.... thats my point, why aren't people just configuring exactly what they want instead of downloading something that has already been done
 
@HatterisMad cause building them is kind of a pain to set up
 
There's even a website that configures your distro somewhere
 
2:42 PM
@Trasiva pizza?
 
user2620028
waat you just said that i am overestimating how hard it is and then you said its kind of a pain
 
im so hungry... fuck. I may take an early ass lunch
 
getting set up is a pain
 
user2620028
i mean i expect that i am going to have to do some configuration because i want to read analog inputs and take action based on those
 
@SterlingArcher sounds yummy, ass lunch.
 
user2620028
2:44 PM
but other than that it seems like it wouldn't be any harder than installing linux and getting some packages
 
@HatterisMad It's easier
Most of the distro's are just flash and run, no installing necessary
 
user2620028
alright well i guess i will quit bitching about it then
 
user6820627
@Trasiva hey, have you eaten it? or are you just dumping random images?
 
it's the same thing you do with VM images
 
2:45 PM
Since they're only targetting one specific set of hardware
 
I think if i'd have placed the chicken on the bed of veggies, the presentation would have been better.
@LearnHowToBeTransparent Considering I cooked that for dinner last night? Yea, I did.]
 
installing takes way too long, you have some crazy complicated system to get them set up initially (like kickstart), but then you just copy them to each new VM
 
IMO, they should distribute the configs
 
@Trasiva if you put the fork on the proper side, presentation would be better.
 
user1596138
@Trasiva People eat strips of peppers like that
 
user1596138
2:46 PM
Wouldn't want to be your roomy
 
@Jhawins I do all the time.
 
user1596138
Gross
 
cut a pepper in half. roast it alone, eat it alone.
delicious
 
^
 
user2620028
those aren't even spicy peppers
 
user6820627
2:46 PM
@Trasiva I think you need some white. It's too brown.
 
@HatterisMad bell peppers are the shit
 
user1596138
Still gross
 
user2620028
and definitely eat peppers all the time
 
Roasted bell peppers are great
In fact, any grilled veg tastes amazing
 
user2620028
@rlemon jalapeno or higher please
 
2:47 PM
@rlemon I wasn't worried about that, lol. I'm just trying to work on my plating presentation.
 
@HatterisMad yea sure, if I want a spicy pepper. bell peppers are like a regular veg
banana peppers are also great
 
hey hey hey!
 
user6820627
@Trasiva You don't need to work on it, people will destroy your plating presentation anyway.
 
user2620028
im not fond of bell peppers because they have almost no flavor :/ same thing with banana peppers
 
banana peppers for sure have a flavour, just not much heat
bell peppers are mostly water. they're like the cucumber equiv of a pepper
still tasty tho
 
2:49 PM
@HatterisMad If it makes you feel any better, I put cayenne pepper and crushed red chili flakes in the veggies while they sauteed.
 
user6820627
@rlemon If so why bell peppers are the shit? They must be terrible
 
bell peppers + onions + caramelize === tasty
 
@LearnHowToBeTransparent go away
 
The Carolina Reaper has some kick to it: en.wikipedia.org/wiki/Carolina_Reaper
 
then add pickled jalapenos
 
2:50 PM
@Shmiddty caramelize with sugar or ... ?
 
user2620028
@Trasiva it does, i do the same thing to like every meal at home.
 
@KarelG some oil at low heat for a while. they have some sugars in them already
 
user2620028
i bought those after i got back from thailand and just started dumping them on every meal to try and get flavor out of the meal, but i can hardly taste either of those as well.
 
@KarelG Caramelizing is a process of slow cooking onions until they're tender and translucent. They're fucking amazing, and usually done in butter, though some use olive oil.
 
That pepper is only 1,569,300 on the heat scale
 
user2620028
2:51 PM
@Alex yeah fuck that
 
my brother grew ghost peppers a couple years back
 
user2620028
murder by pepper
 
those were fun
 
They had a prank on a show... gave something like that to someone to chew on
Person was crying from eating it
 
@HatterisMad I don't every meal, but I felt like the peppers and onions were missing something, so I threw the spices in with some salt, pepper, and a couple drops of soy.
 
2:51 PM
I once ate a habenero pepper whole in one bite
 
@Shmiddty I did that once for five bucks. Never again.
 
it wasn't so bad
 
I wish I remember what peppers were used in the hot sauce I tried several years ago. The owner of the store just put a dab on a toothpick....I was coughing for well over 30 minutes. I also had to sign a waiver before trying it.
 
They say hot peppers are good for us... but up to a point
 
friends and I have had pepper eatign contests. I've eaten a few really hot peppers.
 
2:52 PM
spicy foods increase your metabolism
 
No, you gotta chew it thoroughly to really 'enjoy' it.
 
Still preferable to dicing up a halbenero, not washing your hands, and then going to take a piss.
 
not sure if "caramelizing" is the right name for that procede
 
@KarelG It is, I assure you.
 
And take the chewed habenaro and rub it in your eyes for maximum 'pleasure'
 
2:53 PM
on the regular tho I don't usually go for much hotter than habanero
 
user2620028
@Trasiva i got spoiled. the thai pepper is somewhere between a chili pepper and jalapeno, spicy enough to have a great flavor. and then i ate that for every meal for a year and now anything i eat that is supposed to be spicy isn't spicy anymore (unless they used jalapeno or hotter peppers)
 
> Caramelization is the browning of sugar, a process used extensively in cooking for the resulting sweet nutty flavor and brown color.
 
There is a pub here that makes wings using ghost pepper. You get your name on their wall of fame shame if you finish all 12.
 
@KarelG Yes, you're breaking down the sugars in the onion.
 
user2620028
@Luggage i have accidentally done this before
 
2:53 PM
Once ate some Indian food so hot, my tongue started bleeding. No joke
 
^^ wat? that can happen?
 
@KarelG Google caramelized onions Karel, good grief.
 
> Coat the bottom of the pan with olive oil, or a mixture of olive oil and butter (about 1 teaspoon per onion). Heat the pan on medium high heat until the oil is shimmering. Add the onion slices and stir to coat the onions with the oil. Spread the onions out evenly over the pan and let cook, stirring occasionally.
 
i'm aware of that... but I don't call it as caramelizing.
 
he probably bit it and didn't feel it due to the heat of the pepper
 
2:54 PM
It did to me. Felt some funny liquid in my mouth. Looked in the mirror. Ouch
 
user2620028
well it can easily blister your tongue, i haven't seen someone bleed but i am sure it could happen
 
maybe it's called different in my language, but cannot translate it. wth google trans
 
Might have bit it
 
most foods have a little bit of natural sugars
 
2:54 PM
@KarelG are you thinking saute
 
Junkrat has skills
 
user2620028
almost killed the guy with his back turned
 
@BenFortune looks like an Asian dude to me.
 
user2620028
definitely an asian country
 
@Loktar @GNi33 @BenFortune
1:27 rocks so much
 
2:56 PM
yes, especially using a sauté pan (could translate it to english ...) to ... "caramelize" onions. I did that for beef stew.
 
@HatterisMad doesn't look like an asian country at all. cam text and store front lettering is english. and dude behind the desk looks texan.
 
user1596138
i.imgur.com/DJjW0d6.jpg : Derp I did the fronts too
 
with dark beer, some brown bread, mustard. * yum yum *
 
> that tuning is lower than my self esteem
 
user1596138
@SterlingArcher you like my drill jack?
 
2:57 PM
yes lol did you see my response
 
user1596138
@rlemon I stuck a 3/4" wood bit in my drill and used it for the screw handle of my screw jack lmfao
 
nice
 
This is exactly why we thought you were dead yesterday
 
user1596138
Super fast electric car jack :thumb-up:
 
powered jack.
 
user2620028
2:57 PM
@rlemon cam text and store lettering would commonly all be in english in an asian country
 
user1596138
The drill smoked
 
user1596138
Surprised it even moved it lol
 
user2620028
as for the guy behind the desk looking texan, i agree, maybe im wrong
 
@HatterisMad and the texan and north american looking cars and streets are?
 
user1596138
@SterlingArcher lmao exactly
 
user2620028
2:58 PM
@rlemon actually i don't think the vehicles and street look north american, they look asian to me
 
look at the second camera angle.
it's like Toyotas and shit
 
youtube.com/watch?v=jVfZJFNYF0s <--- must be epic (his reation ... )
 
full sized.
 
!!afk robot testing again
 
user2620028
@rlemon you don't think that asian countries drive toyotas?
 
2:59 PM
@HatterisMad no, I'm aware car companies are international. they do have different models for different regions tho
 
user2620028
look at the scooters parked on the sideway, those scooters aren't even road legal in the states
 
@KarelG first brown the meat, add onions and garlic. cook until the onions are soft. then add some red wine and let it reduce. then add carrots and celery and let that cook for a bit. then add your beef broth, potatoes, and green beans. Never add corn because corn is bad. cook on low heat for about 2-3 hours
 
those all look north american
 

« first day (2377 days earlier)      last day (2585 days later) »