« first day (1664 days earlier)      last day (3282 days later) » 

12:04 PM
I just watched this again, no doubt it's an amazing talk.
 
I have to POST 3 parameters to my PHP service. One of it is an array, so I JSON.stringify() it and then add it to the object I'm to POST
 
@Keval Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
but that stringified parameter is being received blank on my PHP
 
@Keval How are you sending it?
Anyone used Sequelize?
What's the scope of this inside an instance method?
 
@BenFortune is that a funny way of spelling "your mom"? because if so, yes.
ohh I'm such the kidster
 
12:09 PM
I am using AngularJS' $http.post and the object is something like var dataObj = { wid : wid, type : type, cid : cid }; where cid is the stringified array
 
@rlemon I don't know what you're referring to :(
 
@BenFortune probably for the best
 
Can somebody prove me wrong ?
Given that the internal structure of a regex depends, for example, on whether it's global or not (a global regex is an iterator), such a setter would be costly IMO (and what should it do ? Reset the state ?). Your solution is probably the best one. — dystroy 8 mins ago
 
@dystroy regular expression implementations are complex beasts. That said, I'm not sure there's a way to do this other than what OP said and frankly I wasn't aware of .source until his post anyway.
 
12:13 PM
@dystroy
albeit the question is hidden :/
 
I'm not sure this is a proper QA for closing. OP already knows there doesn't seem to be a way to change global, he starts from that point and want a confirmation. Besides it's a very old QA and the API changed since
 
then lets close the old one
:D
 
why are websites consuming so much ram nowadays
 
because we do more on them
 
YouTube ~ 200MB + 250 GPU decoding
Slack ~ 200MB
 
12:19 PM
because there is RAM to consume
making better hardware doesn't make faster computers, it makes slower software
 
what produces 200MB of ram consumption, seriously
@KendallFrey I agree with you
Vista using 20GB+
no but it makes me think
ok, we can do more
but it's spinning out of proportion
how is having not so many elements on the page consuming 200MB of ram
 
if(answer === "yes".toUpperCase())
what's wrong here?
 
I am sure it's the libraries that have a lot of functionality
 
@JoeConsterdine popcorn
 
@JoeConsterdine why not just compare with 'YES'?
 
12:23 PM
kek
 
@phenomnomnominal you mean use ||?
 
if (answer === 'YES')
since that's what you're doing.
 
that was weird
 
I want it so if they type it in lowercase or upper it still works
 
wtf
 
12:24 PM
then upper case the answer
or lower case it
and compare to a static YES or yes
 
Then you want answer.toUpperCase() === 'YES'
 
if(answer.toUpperCase() === "YES")
 
@Neoares that's the one..thanks!
 
pfft
 
@JoeConsterdine np :d
@BenFortune keep calm xD
 
12:26 PM
thanks ben :)
sorry haha didn't realise you'd put the same
 
['121101115','896983'].indexOf(answer.split('').map(function(n) { return n.charCodeAt(0) }).join('')) === -1
clearly the optimal solution
 
user1648409
How can i send a $_POST request via jquery, that works exactly like a <form method="POST"> ? It needs reload the page and the if(isset($_POST)) needs to trigger. Best way to do that?
 
@Shiuyin go on google and type "jquery post"
 
If it needs to reload, why on earth are you using jQuery for it?
 
probably adding to the post request and doesn't realize hidden form fields.
 
12:28 PM
Just use a normal form submission
 
user1648409
@rlemon did but all i am finding are ajax requests like $.post()
 
XY problem
 
user1648409
@rlemon did that before, but the hidden value="" gets destroyed :D
 
then you are doing it wrong
 
@BenFortune, hey sorry to not tag you in my reply; I have replied to your question which you asked me
 
12:29 PM
what's wrong with AJAX?
 
@Neoares we no longer use it for XML
in 99% of the cases
 
Can we kill this answer it's streading fud
 
@BenjaminGruenbaum what does "fud" mean?
 
@BenjaminGruenbaum FUD ? It seems to be just very wrong... How cant it be at +5 ?
 
12:33 PM
Fear, uncertainty and doubt.
 
@dystroy lots of people care about "their stack winning", so they see promises and they use promises so they upvote without reading.
Definitely counterproductive
 
Seriously:
promiseB = promiseA.then(
    function onSuccess(result) {
      return result + 1;
    }
    ,function onError(err) {
      //handle error
    }
  );
 
or
!!urban fud
 
s/doubt/distrust/ but yeah that also works
 
!!undo
 
12:34 PM
lol
 
kek
 
Two more dvs to delete
 
Caprica feels slow since moving to node
 
I hate it when people "evangalize" stuff.
 
Cap isn't on node
 
12:34 PM
didn't know it was called "muff" too xD
 
noob
 
I thought zirak moved it to phantom
Or whatever he was using
 
cap is consuming almost a gig of ram tho
brb rebooting.
!!info
 
@rlemon I awoke on Thu, 30 Apr 2015 17:28:49 GMT (that's about 6 days ago), got invoked 312 times, learned 332 commands, but forgotten 2 commands
 
"got invoked 312 times, learned 332 commands"
learning a command doesn't count as invoked?
 
12:35 PM
How do you search chat history?
 
@BenFortune top right corner
 
ASR
I am getting $('.accordion-toggle').on('click', function(event){
is not a function, this is the link I followed http://jsfiddle.net/avnaveen91/8yap08dc/2/
 
Apr 25 at 14:51, by Zirak
@BenFortune Used https://github.com/segmentio/nightmare
 
ASR
whats wrong with this
 
@Neoares on start she relearns all of her commands.
so those don't count as invocations
 
12:38 PM
:O
 
@ASR scope blocked, no jQuery, unicorns shitting in your browser?
show us YOUR code, not the working demo you tried to follow from
 
@ASR other than the useless comments and shitty default font, works fine?
 
> this is the link I followed
@AwalGarg that isn't his code
 
ahh
 
@ASR it is the same code...?
I am unable to understand your question
 
ASR
it is working fine in browser, I am using it in liferay6.2, in Liferay I have already bootstrap, is there any ambiguity?
@AwalGarg yes
 
!!google liferay
 
is there any ambiguity? yes, lots.
 
ASR
12:42 PM
@rlemon so with bootstrap css can I make accordion ?
 
@ASR dude.... if it is working fine in the browser, you don't think the problem is with the other environment itself?
 
yea, I'm not going to help. sorry.
you are masking questions in questions.
not interested in the slightest
 
you are hiding information too, for reasons only you know
 
Can I be snarky to ASR too?
 
Can anyone tell me how to keep the command "grunt serve" running in the server even after the terminal has been closed?
 
12:44 PM
It's fun, and he's not making an effort
@ASR go read a tutorial
 
@BenjaminGruenbaum sure! but you have to wait your turn.
 
@rlemon can I please go Mr. Lemon :(?
 
protip: if you want free help, make sure you are doing everything in your power to make helping you as easy as possible.
 
@BenjaminGruenbaum Mr. Lemon was my father, call me Bob.
 
12:45 PM
@ASR why are you surfing pornographic content not from incognito?
 
w3schools tab :D
 
Also, ew, w3schools
yeah,
ninja'd
 
@rlemon I get it. Here is the question with the details: stackoverflow.com/questions/30095850/…
 
wait.. when did I start helping you?
or indicate I know anything about grunt?
 
sorry, I got it wrong
 
12:47 PM
np. glad you come prepared with a question tho.
 
thanks
Its been hours I am stuck there.
 
@BenjaminGruenbaum is he?
 
@Loktar gfycat.com/DisloyalColossalGuppy does the pc version scale back graphics by default
because this looks much better than what I have
but I assumed (like most other modern games I play) that it auto selected best graphics for me
 
@rlemon It auto selects
I have pretty much everything on ultra and it's beautiful :>
 
then why did it auto select me garbage
 
12:50 PM
Because sometimes it's wrong
 
the only thing limiting is my cpu
but it is running at 4.1 overclocked
 
It's still a console port though, so it's pretty CPU heavy
 
I have a GTX 770 4GB
so I can't imagine it is my GPU
 
Mine usually runs @ 80% across all cores @ 4.7
 
I have intel hd :P
 
12:52 PM
I need to get a new cpu. i5 2500K overclocked is starting to lack.
 
I have a 970, just find your own settings?
 
oooh I have i5 4210U :D
 
I've never found the auto settings to be correct anyway
 
I am thinking of getting a pixel 2
!!should I?
 
@AwalGarg Indeed
 
12:53 PM
The chromebook?
 
yep
 
For the price, you can get something 10x better, that doesn't run some shitty webOS
 
like?
 
a dog
 
pets not allowed here
 
12:54 PM
@BenFortune I mean, it isn't terrible.
but it isn't smooth.
 
I have a Dell chromebook, and it's absolutely terrible for anything other than light browsing
Just buy a laptop and shove Chromium on it
 
buy a $1000 linux laptop
 
@BenFortune suggest me a laptop for that price with those specs and that damn screen :P
@rlemon ^
 
For a start you can buy a mac for that
 
the LS version, to be specific
@BenFortune specs don't come close AFAIK, link to specific model though?
 
I still can't see how they justify the price with the tiny SSD they fit them with
 
Galago has better graphics, but 14" screen
ugh.
 
\> 1080p on laptops is also overkill
 
I don't think so
 
How the hell do you escape >
 
12:59 PM
@rlemon 2.45 kg? :O
 
@AwalGarg you can't carry 5lbs?
what are you? a wimp or something?
BRO DOESN'T EVEN LIFT!
 
lol
compare it to the 3lbs thing :D
 
@rlemon wow that website is horrible
 
fwiw I have the kudu
it is just over 3kg
never been a problem
 
slowed down Chrome like crazy
 
1:01 PM
really?
no problems for me
 
I also have a 3kg laptop. But I never carry it around :/
 
the spinning laptop is a video.
 
maybe it's Canary's fault
 
might be that?
 
also resolution is low :D
 
1:02 PM
yeah, and the video-chat - video a little further down
 
on reddit system76 got a lot of flack, but the people in the chats here I know who purchased one (myself included) all are very pleased with them
 
Anything over 1080 on a laptop is a waste
Especially a 15"
 
in your opinion.
in mine, anything less is unusable.
 
@BenFortune how?
 
Which is why 1080p on a laptop is a perfect gold spot
 
1:03 PM
Because it looks pretty much as good as my 4k screen at home?
Nobody wants to squint at a screen
 
get glasses old man
 
@rlemon wow that thing is super pricey
 
I wear glasses you plebeian :D
 
yea they are :?
@BenFortune time for bifocals if you can't read small print still
.. old man
 
My eye sight is fine, I'm just arguing my point
I'm also younger than you.
 
1:06 PM
you're all old men
get over it
 
irrelevant
 
I am liking the pixel because of the hardware and screen at that price. Can't find anything similar :/
 
@BenCraig @dystroy is the only old man here
 
But the OS :/
 
@BenFortune I can just flash arch on it?
 
1:06 PM
@rlemon I can live with that
 
Sure you can hack linux onto it
The last time I tried it was a fair more complicated than just wiping it
 
@rlemon WRITE BIGGER IF YOU WANT ME TO READ YOU. YOU KNOW MY EYES AREN'T LIKE 50 YEARS AGO
4
 
and installing arch
Since there's terrible driver support
 
@BenFortune pixel has a damn good track record of good support for various OSes.
 
@dystroy DEAR MR. DYSTROY! I'M SORRY I WILL REFRAIN FROM LETTING MY "DAMN KIDS PLAY ON [YOUR] DAMN LAWN", BUT I MUST ASK YOU STOP SPRAYING THEM WITH THE HOSE WHEN THEY WALK TO SCHOOL
 
1:08 PM
But there's no official support for anything other than ChromeOS
 
@BenFortune I dunno then. have you used crouton btw? How is it? Does it even work?
 
Don't think it existed when I tried installing ubuntu on mine
 
sunset on mars ^^
 
1:10 PM
@rlemon true story : I'm officially one year older today
 
@rlemon but it's 40°!
 
They say it can run another OS natively.
 
HAPPY BIRTHDAY DYSTROY!
20
 
@rlemon wait, what?
 
you old git!
 
1:11 PM
HAPPY OFFICIAL BIRTHDAY DYSTROY!
 
@dystroy well, I'm one year older than last year today too
 
@dystroy you have a birthday today?
 
@BenjaminGruenbaum yes, I checked my CV:
$('#age').html((new Date()-new Date(1972,05-1,07))/(365.242*24*60*60*1000)|0);
 
wait?!
 
1:12 PM
!!>(new Date()-new Date(1972,05-1,07))/(365.242*24*60*60*1000)|0
 
!!afk class
 
@AwalGarg "SyntaxError: octal literals and octal escape sequences are deprecated"
 
SO YOU ARE 42?!?!?!?!
 
dang you are an old man
 
no
43
my math sucks
 
1:12 PM
@rlemon Do like me : I look at my CV when I want to know my age : dystroy.org/cv
 
@AwalGarg "SyntaxError: octal literals and octal escape sequences are deprecated"
 
fine
 
I don't read freaky deaky french
3
sorry
 
is it a war declaration?
 
@rlemon I'm sure you can read til the age
 
1:14 PM
@FlorianMargaine sure, we all know the french has a outstanding record ;)
 
@rlemon well, I'm pretty sure it does
 
ASR
@rlemon problem is $('.accordion-toggle').on('click', function(event){ so I replaced it with $('.accordion-toggle').click(function(event){
 
That flag, what the shit
 
@BenFortune a few messages were moved recently.
so I assume spam
 
1:16 PM
Florian fighting for our flag...
 
it's, uh, impressive. Didn't think the list would be so big.
 
lol I read "galactic war instead of gallic war"
 
phallic war
 
and it scrolls?!?!?!?!
 
1:19 PM
lol
 
PLS
This is a list of wars fought by the Kingdom of Spain or on Spanish territory. == Ancient == 237-218 BCE Barcid conquest of Hispania 218–17 BCE Roman conquest of Hispania 181–179 BCE First Celtiberian War 155-139 BCE Lusitanian War 154–152 BCE Numantine War/Second Celtiberian War 80–72 BCE Sertorian War 49–45 BCE Caesar's Civil War 29–19 BCE Cantabrian Wars == Medieval == 551–555 Byzantine conquest of Spania 711–718 Umayyad conquest of Hispania 722–1492 Reconquista 778–812 Carolingian Expansion to the South 1009–1031 Fitna of al-Andalus 1015-1016 Pisan–Genoese expeditions to Sardinia 1107–1110...
fucking please
I can't see the scroll bar
 
all our history is just wars and wars
 
@rlemon Yeah, well, my country used to own yours.
 
and sold it for a pittance like fools.
!!afk coffee
 
@rlemon good idea
 
how many time do you spend on lunch?
 
@Neoares All of them
 
the working days ofc
reported troll
 
:(
I get an hour, though I usually eat at my desk
 
do you work at home?
 
1:27 PM
Nope
 
ah ok :)
 
Any Brits here voting today?
 
PHP is boring
sooooo boring
what could I do
!!wiki procrastination
 
Procrastination is the practice of carrying out less urgent tasks in preference to more urgent ones, or doing more pleasurable things in place of less pleasurable ones, and thus putting off impending tasks to a later time, sometimes to the "last minute" before a deadline. The pleasure principle may be responsible for procrastination; one may prefer to avoid negative emotions, and to delay stressful tasks. The belief that one works best under pressure provides an additional incentive to the postponement of tasks. Some psychologists cite such behavior as a mechanism for coping with the anxiet...
 
I get an hour lunch. I usually eat in like 20 minutes then reddit for the rest of the time
 
1:48 PM
scans, yep it's an apple.
 
OP
$2,762,571
 
any quick opinions/experiences here about redis db ?
alongside nodejs probably
 
For what?
 
general
 
for cache, and linux, tis nice. otherwise, not so much
 
1:52 PM
just heard a lot of it recently, I just look for some voices about it. Compared to Mongo, Couch, Mysql, etc.
 
It's quick, very quick. It's not very convenient though
 
@RoelvanUden redis is in-memory-only from the getgo right ?
 
yeah, and doesn't even write to disk
 
that's a big point I'm interested in tho
 
Mongo/Postgre are my go-to for storing data
 
1:53 PM
there is no way to have a delayed storage on disk somehow ?
means if your server crashes all is gone ?
 
it can write to disk, I just don't think it does by default
no experience with that, though.
 
@KendallFrey TIL space farts are a real problem. so much so that they design astronauts food to minimize flatulence.
 
THE
!! google can we use $.when for a conditional statement
 
THE
for example $.when(foo > 1) { // do this}
 
1:59 PM
That article on procrastinating was a nice break form my work
 
Uhm.. condition ? true : false?
 
but it made me sad
 
you are trying to set up an observer pattern
 
$.when is for promises
 
THE
foo value will be changed async..
 

« first day (1664 days earlier)      last day (3282 days later) »