« first day (1860 days earlier)      last day (3105 days later) » 

crl
2:00 PM
@rlemon great
 
not working
blame caching
 
@Cereal hmm strange. I have this loaded too : <script src=\"./js/jquery-1.11.2.min.js\"></script> <script src=\"./js/jquery-ui.js\"></script> Are those not enought ?
 
works now
ha!
 
Depends if they're loading or not
 
forgot to stop the forever process
 
crl
2:01 PM
lorempizza.com/800/600/2#.png everyone see something with lots of cheese? and herbs, and black olives, and a dickbutt
 
@Cereal tested now both are working :-/
 
(Y)
 
crl
^
 
dammit
 
@rlemon BAD GATEWAY! Also great to see this recent nginx in production :)
 
2:05 PM
404 image isn't working in production
@AwalGarg was redeploying
:/
 
I remember coming to the javascript chat room a few times. I encountered you as very childish, arrogant, and shall we say acting like a "script kiddie". Sorry I cannot vote for someone who acts like that. — JonH 9 hours ago
lol
 
404 image works locally so I figured it was a cache issue on the server
Sterling Archer pizza
 
Doesn't this "JonH" guy keep antagonizing people from this room on meta?
 
How does script kiddies act?
 
crl
 
2:09 PM
@AwalGarg if you can make a list of proofs that might be fun to look at
 
@rlemon I don't really have anything against him. Don't even know him at all. Just vaguely remember some other comments against JS room which I think were from him.
 
If I remember correctly, you came in to the JS room, and tried to tell us to stay on topic and not tell jokes or talk to each other, during a period in which there were no questions being asked or discussed. We asked you not to come in, not being a regular, and tell us how to chat. :) Please point out how that is acting like a script kiddie? — Sterling Archer 6 secs ago
 
He thinks that chat room titles are topics.
 
crl
I think pretty much all users in c++ room except Bartek maybe consider this room as some smelly shit
 
Is that the guy that came in here and got really upset about someone insulting christianity?
Or was that someone else
 
2:15 PM
Looking at the avatar I would not be surprised
 
No, I think it was someone else. That guy's profile was very religious
 
Oct 24 '14 at 16:34, by JonH
I'm not trolling.
 
@SterlingArcher Shots fired
@SterlingArcher: You are in the positives now, regarding votes :D
 
How can you not beat bjb?
 
2:20 PM
With the current vote count, that's gonna be problematic
Which is surprising, imo.
 
Oct 31 '14 at 9:56, by Zirak
Coming from the js room ? I went to that room to get JS help and that room is notorious for not discussing JS related issues but to clown around and joke all day long. — JonH 19 hours ago
aha, found it!
the comment has been removed, but thanks chat
@rlemon ^
 
@rlemon you did a hashmap for strings->pizzas?
but you need persistent data
 
.get('/:width/:height/:id', (req, res) => {
    let id = Number(req.params.id);
    if( isNaN(id) ) {
        id = (req.params.id + 'salt').split('').map(c=>c.charCodeAt(0)).join('');
    }
    streamImage(req, res, imagePool[parseInt(id, 10) % imagePool.length]);
})
 
crl
nice idea
what's your imagePool length btw?
 
33 :(
I need more images
 
crl
2:26 PM
yep
!!loremflickr pizza
 
crl
well we all see something different probly
 
hi
 
crl
can't you generate pizza with a canvas? bit hard tho
 
storeDate['storedValue2'] = $('#alain:checked'),$('#abudhabi:checked').val();
 
2:30 PM
hi, is there any other way to generate the image from the text other than the Cavas.toDrawURL()
 
is this correct one ?
can i store some thing like this
 
crl
the comma operator, what did you expect to do?
!!> var x=1,2; x
 
there were two radio button two different group in the same page
 
@crl "SyntaxError: missing variable name"
 
@crl Something useful
 
crl
2:32 PM
@Mahadevan and what do you want to do?
@copy hehe
tricky though, I don't master it yet
 
hey, any one know the other way
?
 
crl
one random gravatar at a time
 
@AwalGarg erm package.json sounds intruiging
 
I want my gtx 970 now :(
 
wat
 
2:34 PM
I can't play FO4 on 15-20fps
and with a horrible mouse delay
 
crl
bluetooth mouse?
 
Pisses me off you can't get a normal wired mouse. They're all gaming branded
This looks bad when you go to buy a mouse for work and you're expensing "STEEL SERIES SENSEI"
 
crl
!!urban sensei
 
@crl sensei Noun. Japanese for "teacher". Can be used as a suffix in names, and can be used for anyone who is knowledgeable or high in profession, eg. doctors.
 
sensei @copy
 
2:37 PM
@Cereal I bought a computer for my private company and the best specs I could find was a pre-built named "Gamer-something". Not looking forward to putting that on my tax return form
 
eeeeeeeeeee, I got the job!
15
 
grats!
 
@BenFortune congrats!
 
@BenFortune Grats
 
@ivarni: If some tax guys make a problem out of it, invite them to come by, and see the thing being used for actual work.
@BenFortune Grats!
 
2:39 PM
Thanks :>
 
@BenFortune hurray!
 
If someone makes a deal about it, they're retarded. Computers have parts. The only thing that makes a computer a gaming computer is the marketing
 
@BenFortune congrats dude!
 
crl
that's Fortunate man, great
 
@crl ... get out >=(
 
2:39 PM
@Cerbrus Oh I will, but I'd rather not have to spend time doing that
 
@ivarni They'll either be spending more time than you, or they'll say "screw it"
 
guys can anybody check this question SO
0
Q: javascript condition for session storage not working as expected

MahadevanCurrently working on session storage where user have to select one radio button from the first page and click next button div has to show in the second page in the first page i have created a function with set of objects where the data will be stored using set item in the second i am trying to ge...

please
 
storeDate['storedValue2'] = $('#alain').prop('checked'),$('#abudhabi').prop('checked');
 
Guys. Does anyone know how the async function() syntax works well? Do you return the async operation, then await it in the function you call it in? Example:
 
What's that supposed to do?
 
2:44 PM
let blah = async function () {
  return new Promise((resolve, reject) => {
    setTimeout(resolve, 5000);
  })
}

await blah()
 
hi @Cerbrus this user can click either abudhabi or alain this was actually radio button
 
!!mdn await
 
@SterlingArcher TelephonyCall
 
Oh I understand that bit, with callbacks, this is about the es7 async function syntax in particular.
 
2:45 PM
wat
 
ok
 
crl
doThing();
async function doThing(){
  for (let p of [new Promise(r=>setTimeout(_=>r(1),900)), new Promise(r=>r(2))]){
  	console.log(await p)
  }
}
 
@corvid Please google
 
es7?
Geez
6 is barely out
 
but it IS out
 
2:46 PM
It's not even widely supported yet
 
Yeah but I want ** and Array.prototype.includes() now D:
 
crl
Do you babel bro?
 
@Cerbrus babel, IE edge, (and probably TS too) already support async/await. So I think it is quite normal for people to use them and ask around.
 
crl
nice radios
 
2:47 PM
I don't babel. I don't see the point in writing JS that's going to have to be transpiled.
 
thank you
 
It only makes the JS more of a pain in the ass to debug
 
so user can select postgraduate underpost graduate either abhudhabi or al ain
 
crl
transpilation!=transpiration
 
!= respiration
 
2:49 PM
!= food
Because logic
 
@Cerbrus oi dude there are sourcemaps
to save your butt from that
 
how to store if abudhabi or alain
storeDate['storedValue2'] = $('#alain').prop('checked'),$('#abudhabi').prop('checked');
 
@Abhishrek Aka, more work
 
write it on the sheet of paper :D ?
@Cerbrus how is that more work ?
 
crl
@Cerbrus I can debug it pretty well on Chrome
 
2:50 PM
@Mahadevan what do you expect that comma to do, exactly?
 
In chrome. Then you have to find the source of the modification in your IDE, save it, reload
 
function notfound(req, res, next) {
    res.set('Content-Type', 'image/jpeg');
    res.status(404);
    fs.createReadStream(imagePath + image404, 'utf-8').pipe(res);
}
this works on my localhost
 
@Abhishrek sourcemaps are useless for any real life debugging. @Cerbrus's point is weak, but 100% valid.
 
crl
19 mins ago, by crl
the comma operator, what did you expect to do?
 
sorry i was not aware do we want to , operator | (or) operator :)
 
2:50 PM
but when the project is uploaded the image doesn't stream
 
@Cerbrus You'll want to have some kind of build-step anyway for minification so why not transpile while you're at it?
 
I like being able to just put a breakpoint in visual studio
 
@AwalGarg I have debugged really heavy projects using sourcemaps as a bliss
(Hint hint :: React)
 
Yeah, never had a problem with debugging and sourcemaps
 
@ivarni Because you don't dev on built JS
 
2:51 PM
@Cerbrus err fyi you can use chrome as an editor ?
 
That's just silly
 
crl
was talking about client-side JS
 
@Mahadevan You don't want either. Just store alain. If it's false, check abudhabi, or if it's true, check alain
 
Nah, it's not silly at all, but that's my opinion of course
 
@ivarni Your opinion is silly ;-)
 
2:52 PM
@Abhishrek Most of the times it is not the sourcemaps part helping you. It is clever transpilation.
 
!!s/opinion/face/
 
@ivarni @ivarni Your face is silly ;-) (source)
 
@Cere
 
And using chrome as an editor? Ugh, no thanks
 
2:52 PM
Hello! Im trying to build a chat, in jQuery but i need some advice right now. When i get new message, i get them with timestamp so the user has a cookie timestamp, But when i should print my messages, should i have the each function or should i have a for loop and just add new message and delete the rows? (I mean i get 10 new messages, then i remove 10 rows and add the 10 new ones)
 
@Abhishrek I don't use visual studio
 
@AwalGarg erm that was for cerbrus :P he said he like setting a breakpoint in VS
 
@Cereal how it is possible to store a condition in inside variable slightly confused kindly give me an little high level idea
 
@Neoares hi
 
it seems if VSCode can do that, so shall VS HillBilly version
 
2:53 PM
I am already debugging in Visual studio
 
@Mahadevan storeDate['storedValue2'] = $('#alain').prop('checked');
 
@Abhishrek @ivarni Put it this way: would you find sourcemaps equally useful if your code was minified after transpilation? (If you do, that's ... wonderful)
 
@AwalGarg I have done that, sourcemaps still save the day for me
 
But should I need to test different browsers, I don't want my error messages to point at some kind of transpiled mess
 
@AwalGarg Well we don't minify for dev so it's kind of a moot point, but you can make that work if you need to
 
2:54 PM
The project is large enough as it is already
 
@Abhishrek oh god... how do you even inspect variables? And watching? all stack frames?
 
@Cereal as you told if i am doing like that session was not taking for other campus :(
 
@AwalGarg ugh you can chain sourcemaps
 
@AwalGarg this.
 
Chrome figures that out too :P (Gotta love chrome)
 
2:55 PM
@ivarni What I am trying to say is that it is not the sourcemaps part helping you.
 
We build with webpack for dev, all the debug tools in chrome works, including hot swapping
 
@Abhishrek And now you've got to test for FF, IE, Safari
Then wat?
 
@Cerbrus FF supports sourcemaps too
and IE does aswell
 
@Cerbrus The thing is that babel spits out quite readable code, and source isn't mutated much. So it is fine.
Thus your point, though valid, is weak.
 
But valid :D
 
2:57 PM
@AwalGarg the __temporalUndefined
 
I win ;-)
 
is definitely NOT helpful
 
@Mahadevan You only need to know the value of one
@Mallikarjuna If one is true, the other is false
What the fuck, code
 
@Cereal lol
 
@Abhishrek It is as much of a down, as much as the downs of losing parts of variable inspection capability.
And you don't always need the super strict mode on.
 
2:58 PM
@Cereal get more than 1gb of ram?
 
@rlemon I have 6 D=
 
@Cereal Please tell me that ~770MB isn't the majority of that 90% memory usage
 
@AwalGarg sourcemaps work with variable inspection for me
vOv
 
I don't actually know what's using 90% of my ram
 
@Cereal Your PC is
 
2:58 PM
So... we're close to signing a new lease for a sweet townhouse :)
 
@Cerbrus 1043 mb being SYSTEM ?
 
@Cerbrus Thanks captain
@Abhishrek yeah
 
@Cereal Yw
 
@Cereal stop using Microsoft Edge
 
@Abhishrek I'm not
 
2:59 PM
Downside... it's timing is combined with my car payment, so I'm about to drop $2300 in a single day :(
 
It's not even allowed to run in the background
 
@Cereal vOv then
 
doesn't 404 proper
 
@Abhishrek again, sourcemaps aren't the one helping you there.
 
2:59 PM
but locally it does
 
maybe goto the process tab
 
halp
 
@rlemon Can't read, too small.
 
@AwalGarg erm they are, remember I just finished writing a transpiler myself ?
 
so?
 
3:00 PM
@rlemon very smart.
 
@Cerbrus fixed
 
@AwalGarg It seems to me its nothing to do with clever transpilation
 
I give up
 
@rlemon what server? node -> express -> nginx?
 
node->express
nginx proxies
 
3:02 PM
@AwalGarg Well, just looks like my promise library comes with Promise.await and Promise.async, can't tell if these are the same
 
!!tell corvid google es7 async await
 
so it's nginx, then, since it works as 'localhost:7003', which I assume is not going through nginx
 
@Luggage I'm changing it from serving an image to text
 
hello
 
3:04 PM
Nginx doesn't modify status code from upstream for 4** returns. It does for 5** ones though.
 
pretty sure that worked before, I think the issue is serving the image as a 404
yea
the problems is the image :/
 
Ugh, I seriously hate having to show people my bank account :(
 
@Cereal i have tried what you told

storeDate['storedValue2'] = $('#alain').prop('checked'); but still not working :(
 
Even sending a screenshot is uncomfortable to me
 
@Mahadevan No one knows what you're doing with that data, so
 
3:05 PM
@SterlingArcher I had to send three months when applying for my mortgage
 
based on the data i am hiding and showing using jquery
in the second page
 
three months pay stubs or 3 months of account history?
 
@Mahadevan how?
 
@Cereal kindly please look into it
0
Q: javascript condition for session storage not working as expected

MahadevanCurrently working on session storage where user have to select one radio button from the first page and click next button div has to show in the second page in the first page i have created a function with set of objects where the data will be stored using set item in the second i am trying to ge...

 
for a house, account balance can actually be important. usually for credit only payment history
 
crl
3:07 PM
> kindly
 
3 months account history, 2 pay stubs, and my last two T4's :D
 
@rlemon for an application sure, fine, I'm ok with them seeing it, but my brother and his fiance? I don't want them knowing my finances lol
Even though my brother makes more than me lol
 
here i have mention detail
in detil
 
your brother wants to see this?
 
n detl
 
3:07 PM
@Cereal I have two scnearious
I have two scenarios

When the user select pg radio button from the first radio group and if any location like alain / abudhabi if user select alain | abudhabi from the location from location then user slect DIP EDU if user click submit button then in the second page i need to get one check box and create application button the rest should be hide -- With my code this was working
If the user select ug radio button from the first radio group and if any location like alain / abudhabi if user click submit button then in the second page I need to get Just a Pay button but this was not working k
 
ndet
dt
 
I think Neil is having a stroke
 
just stressed
 
or cleaning his keyboard.
 
Ne
  il now
 
3:08 PM
not much difference I'm afraid
 
@Luggage they're handling the application details because I'm busy at the moment, so I agreed to give them my personal info
 
crl
not laughing after what happened to Jonah Lomu
 
Not that I don't trust them at all
 
are you buying this house?
 
Even with trusted loved ones exposing your info like that weirds me out
No, just renting. The owner just wants to make sure we can all afford the place
 
3:10 PM
@Mahadevan I have no idea what you're saying
 
!!afk vape-ahol
 
@SterlingArcher just put it in a sealed envelope and ask them to not open it before handing it over. if they're weird about it just brush it off.
it is none of their business
 
crl
!!s/b.*e/a/
 
@crl it is none of their ass (source)
 
crl
!!whom ass is it then?
 
3:14 PM
@crl By all means
 
@SterlingArcher heading to Munich for Amity now ;)
 
@GNi33 SterlingArcher is afk: vape-ahol
 
have a nice day everyone
 
crl
I live in Nice already (almost)
 
@crl I bet it's awfully nice there
 
crl
3:15 PM
when it's on ice, yes, that is, not often
 
seriously though, Nice has been on my bucket list for quite some time now
 
crl
It's a tourist trap, yeah :)
 
Been there a few times, but prefer Juan-les-Pins or Antibes tbh
 
crl
I live in the latter
 
You live in Antibes? Nice! (no pun intended)
 
user1596138
3:19 PM
@SterlingArcher The owner wants 3 months bank account history to rent?
 
@Jhawins SterlingArcher is afk: vape-ahol
 
user1596138
That's retarded lol
 
@GNi33 >=(
@Jhawins no that was for @rlemon's mortgage
 
Hello. When should I use angular.bootstrap instead of ng-app ? I'm trying to find a real life scenarios for this. Any help ?
 
user1596138
Oh, so it's just paystubs right?
 
3:20 PM
Our guy just wanted pay stubs, salary, and current bank totals
 
@RoyiNamir I've used that in an app where we wanted to make sure the customer was valid before bootstrapping
 
crl
$.angular.bootstrap
 
user1596138
@SterlingArcher Oh well Idk, wouldn't be weird to me.
 
user1596138
But I make more than my brothers lol
 
@crl ?
-
 
3:22 PM
@Jhawins no it's fine, it's just an exposed feeling when you share that info with others
 
crl
just kidding, never used this ng-bootstrap, is it like angular-ui?
 
oh:-)
Has anyone of you used NG with phonegap ?
 
Text isn't magically formatted. You need the HTML in order to retain that format — Sterling Archer 1 min ago
@SterlingArcher yes, but is there any way to keep the formatting without html tags? — user1665355 29 secs ago
... -_-
did u read brah!
 
user1596138
@SterlingArcher Yeah I guess so
 
user1596138
Send them to me (along with your SSN and current / past address information)
 
3:29 PM
You want my mothers maiden name as well?
 
and a hair sample
thanks
 
user1596138
Yeah, they might use it to make sure I'm you when I take out a loan on a Tesla
 
> What would the person who named Walkie Talkies have named other items?
 
@rlemon That's more funny than it is
 
3:37 PM
lol I love terry crews
 
@user1665355 you mention in comments below that this is within Node.js and you are actually using Cheerio. is this true? if so, maybe update the tags and question. — rlemon 9 secs ago
god dammit OP
get your shit together
 
crl
!!> var a=[1,2], b=[.2]; b.splice(b.length,0,...a); b
 
@crl "1,2,0.2"
 
crl
want them at the end rather
 
@crl "0.2,1,2"
 
3:49 PM
@KendallFrey
Atlantis overhead shot from 1996 new KSP texture pack
 
crl
this is a p..
 
pretty big rocket
 
crl
yes
 
@SterlingArcher Hey! Catch!
@BenFortune Hey, congratulations! Now you just need to buy a car to one up @SterlingArcher.
 
Let's go around the chat room buying better cars than each other
That's a good use of our money
 
3:54 PM
A better use is to buy Apple devices
 
But I have a computer, why would I need an Apple?
 
Because you want to use money
 
I want to be able to afford food for the next couple months after buying a computer. I can't do that with an Apple.
 
When you have money, you need to use it on things that are fun and keep being fun, otherwise the whole concept gets boring.
 
quick question, how can I send a socket event from the terminal or simple node script to a socket.io server?
 
3:56 PM
That's why you spend it on cars and women and, if you're that sort of awful person, drugs, instead of buying a mac or something you'll use once and get bored of.
 
I tried using the non-socket.io node methods but the server does not see the events
 
@ssube I wish I had money to spend on cars and women. :(
 
crl
@alexdmejias what is the non-socket.io method?
 
@Trasiva then... get some?
contrary to popular belief, you can't sit on your ass and get money until you already have money
 
3:58 PM
That's not the problem here.
 
@ssube It is fun to drop-smash-thrash-bomb-test Apple devices
 
@crl write
 
The problem here is I'm stuck spending my money on fixing my grandmother's problems caused by my family.
 
crl
@alexdmejias explain
 
@AwalGarg do that with ice cream, not apple products
taking a blow torch to ice cream is fun
 
3:59 PM
I spend my money on hobbies.
 
!!youtube blow torching an ice cream
 
my hobbies just so happen to be brewing alcohol.
win/win
 
@ssube She just had an ambulance ride, an ER visit, two CTs, an MRI, three days in the cardiac ICU, a pick line, multiple drugs, and has about two weeks total in rehab. She won't be able to afford that bill off medicare.
 
I think I'm going to collect the supplies over the winter to start brewing alcohol and smithing black.
 
crl
3:59 PM
@alexdmejias wanting to help but first describe what you've tried
 

« first day (1860 days earlier)      last day (3105 days later) »