« first day (1773 days earlier)      last day (3400 days later) » 

13:00
liek operator overloading
Yes
Oh it does mention it
still makes no sense
require 'bcrypt'

class User < ActiveRecord::Base
  # users.password_hash in the database is a :string
  include BCrypt

  def password
    @password ||= Password.new(password_hash)
  end

  def password=(new_password)
    @password = Password.create(new_password)
    self.password_hash = @password
  end
end
@Zirak @rlemon if the socket sharing could be included in cap's code, her bandwidth use can basically decrease by half (and possibly decrease the network overhead of her sending messages)
once I Get off my arse (next month) and switch to OVH hosting I'm moving cap to the cloud
I mean, there is nothing stopping me from doing it now
but I don't really wanna taint Cap by hosting her on GoDaddy
@rlemon ...
Well, have fun :P
@rlemon headless? the localStorage issue got sorted?
13:14
@AwalGarg phantom has localStorage
so for now that is still the solution. however given that we have never hit the storage cap, I don't see it being a bad solution
user406009
PhantomJS is an abomination.
You're an abomination :(
user406009
(Unless you are using it for screen captures, then it's fine)
PhantomJS is awsm
Also, if you have a VM just don't run it headless :P?
also, firefox runs headless
!!awsm phantomjs
13:18
@Cereal That didn't make much sense. Use the !!/help command to learn more.
@BenjaminGruenbaum without x emulation?
@AwalGarg you need GTK, but not actual X
@BenjaminGruenbaum how?
guys, i have div it has some hover events, is it possible to disable hover events on that div including childs, i tried css pointer-events : none, it working but it disabled all pointer events i want ti disable only mouseenter/leave/hover but NOT CLICK
is there any way I could see all of the timers in console ?
13:23
@Mathematics Only if you assigned them to a variable, just console.log the variable.
well, you could assign a new timer, get the id, loop over all < id and assume a timer may or may not be there
but that is kinda silly.
user406009
You do need X to run chrome though.
user406009
But en.wikipedia.org/wiki/Xvfb runs quite fine for headless stuff.
user406009
(Yes I know, I am admitting I used headless chrome, pretty much phantomjs)
Is this guy being a d*ck or is it me being a d*ck? stackoverflow.com/a/27647525/586051
SMH
13:38
Considered that the user asked for plugins, I don't think this question qualifies as on-topic. — rlemon 6 secs ago
:P
had to
@rlemon I agree with you, man.
+1
@RahulDesai but no, you are not wrong
if you have an alternative solution you think is viable, add it.
don't let the haters bring you down
Thanks.
Thats the only one I know, as of now.
13:54
I'm looking for some basic angular validation directives that are not available out of the box, like "not equal to". Is there a de facto community repo available, or do I have to gather them from around the web / write them myself? I've tried finding such a repo, but no results so far.
@SomeKittens I wish I could experience that book again. It was as good as sci-fi gets for me
If a mouse drag enters an element nested within an outer element, does it also leaves the outer element, in which case the ondragleave handler for the outer element will be invoked?
14:10
The answer is yes.
without tmux nor plugins
Why in the world are you using vim
tmux is pretty amazing
I knew that already, but only now started actively using it
Unless you know all the hotkeys and commands, in which case carry on
@Cereal basically
14:13
@Cereal You don't have to know all the hotkeys and commands
yeah just know hjkl, ai, :wq
You just need to know enough to be more productive than in other editors :)
@MadaraUchiha You need to know a few to make it faster than a GUI IDE
@Cereal And even then it depends
I used to use vim. I darnly like it.
14:14
But vim is still a skill worth learning IMO
I use vim when I ssh into my virtual server
@MadaraUchiha that screenshot is not using tmux btw xD
@ZhengquanBai I still use vim. Mostly because I have no idea how to exit.
10
@catgocat Yeah, I realise. Multiple vim buffers.
windows
vim windows
@MadaraUchiha well played, captain
14:15
<C-w>s
// assuming this is my only route
app.get('/foo', handler);
// this handles all other paths and errors accordingly???
app.use(function(req, res, next) {
  var err = new Error('Not Found');
  err.status = 404;
  next(err);
});
app.use(function(err, req, res, next) {
  res.status(err.status || 500);
  if( err.status === 404) return res.render('404');
  res.render('error', { error: err });
});
Learning vim was horrendous. I learned vim because it automatically opened when I tried to commit without `-m`. Tried to type. Things went south. Took me hours to exit, let alone save. Had open commits everywhere.

10/10 would recommend
just sanity checking
I was making my own password manager in Haskell and then realized someone had already done it, using the same name I was naming it (hpm)
@catgocat How to close? :D
14:16
guess it
@MadaraUchiha :q<return>?
<C-w>c(lose)
@MadaraUchiha ctrl + alt + del
without the parentheses ofc
@catgocat I use C-w q
14:17
that one closes everything but the current window irc
noup, lemme see
Which works equally well with two windows which are the same buffer :D
Oh, c-w q closes the current window, if it's the only one it exists vim.
:help ^wq
@catgocat C-r = hnggggggg
what
@catgocat in insert mode
@catgocat i <C-r> = 5 + 5 <CR>
14:21
yes, it's a very neat command
@MadaraUchiha :let i=1 i<C-r>=i
Yup
Haven't gotten to the vim language yet
So not familiar with too many expressions
me neither
but the book mentions those tricks
have you seen macros already?
Not yet
But I can already sense how it helps me
I do a lot of things like "transform something == '0' to (something === '0' || something === 0)"
Macro here would be awesome
14:27
yeah :) they help me a lot when wrapping my code in if expressions in haskell
you can use them as templates also
which is pretty neat
marks, registers and macros are the best features
@catgocat I dunno, ;.;.;. is pretty awesome :P
the author will refactor that example throughout the book
with marks, registers and macros
why doesn't this code work on my machine: github.com/einfallstoll/express-ntlm#example-usage
Crude oil down to 39/barrel, chinese stock exchange down 8.5%
@deostroll what does it do instead of working?
14:35
curl gives me an empty response (via git bash), and my browser says the page might be temporarily down...
@deostroll are you actually running a node server on port 80?
oh dear...I did a curl -v and it gave me a 401 http code...
But why isn't my browser windows authenticating then?
user1596138
So guys, did Sterling die? Normally we don't go more than a week without a booty call
@deostroll you probably don't have that set up or enabled
domain authentication is an extra, off-by-default option in browsers
@Jhoopins Sterling will be back whenever he gets a chance. He's been pretty busy.
@Cereal And gas prices in my area have only dropped two cents since 1 July.
14:48
@Trasiva Yup
@Cereal "We're in a hard economy, but we, the gas companies made RECORD PROFITS yet again this quarter. Thanks for being dependant on our price gouging, suckers."
Also airlines
qq
Ugh, I know. I remember when I could buy a ticket from my duty station to back home for $200. That same ticket in almost five years has tripled in most cases.
@ssube shouldn't IE do this normally for intranet sites?
@Callum Freeeeeeeedooooooooooooooooooooooooooooooooooooooooooooooooooom.
14:53
@Cereal Facebook dropped 12%
@Billy Tragedy
@Cereal Stack Exchange is down?! Oh, Stock Exchange is down. Carry on.
@MadaraUchiha Phew, close one
@deostroll don't think so
Guys, a quick question; have you got an idea why this is reacting like this --> jsfiddle.net/DTcHh/11372 (Click on "Historique button")
15:00
hmm...earlier I went with no validation options (ntml())...thats why it failed...however, I don't know exactly why...but when I passed in the AD details, it works fine....
@Baldráni I see no historique button
@Cereal "Historique" on the bottom of the page (maybe you have not it in full width)
Oh. It opens a box with arrows
@Baldráni it doesn't load or write the text
@ssube same here its due to the width a sec i'll updtae
jsfiddle.net/DTcHh/11373 this one is good what ever the width;
@Cereal Yeah and why is it reactign like this; it shall just show the box (slideToggle)
But actually the inside of thebox is sliding down..
Isnt it strange ?
15:06
It's doing what you tell it to do
@Cereal Na I tell a div that isnt displayed first to showed when i click on this button
Haaaaa
I've just found where the problem was
Quack
The dimmension of the box was set with !important
Apparently not working with slide animation
@Baldráni !important trumps inline style
So no, you won't be able to set it sanely with JavaScript
Also, you probably want to use CSS classes and transitions/animations regardless
Helping a back end guy debug an issue in the javascript; 5 layers of nested if's, just to get to where the problem resides...
15:12
Yeah that has nothing to do with him being a backend dev
He's just bad at programming
No, he didn;t write the code
He's just debugging it
Oooh
We have a lot of bad code in our software
@MadaraUchiha For the moment its working like this, are you saying i shall for now one think more css likely than js
I've never seen someone form english sentences the way you do
15:15
> are you saying i shall for now one think more css likely than js
wat
now on * sry
@MadaraUchiha why?
css animations are poopy
hi Bro's!
> Bro is
^
could be that ! means excited
> hi Bro is excited
15:17
@rlemon He wasnt saying that he was just saying that in my case i couldnt use js
@Baldráni why not?
@Baldráni You can use JS
@rlemon And CSS animations are better.
why?
JS has more control, and is faster/smoother in most of the cases
@rlemon For once, I don't need to update the DOM every frame?
@rlemon Eh? No it isnt
@MadaraUchiha I could use js but it wouldnt be clean ?
15:18
it's been proven time after time with libraries like GSAP and Velocity. JS animations for anything but the simplest shit is smoother, faster, and has more control than CSS animations
It will be as clean as you code it to be
you can view any of their benchmarks.
@rlemon "Slide transition" is "the simplest shit"
@rlemon Have you ever made pickles?
@Trasiva nope, gf's parents make those
no need
15:19
Fair enough.
I'm going to try making some tonight.
@Trasiva If you want instant pickles, boil the vinegar (to a light boil) and toss the cucumbers in.
Doesn't take any canning, they pickle up in 5 minutes.
@ssube I'm trying spicy pickles, I really want them to pick up the flavor.
make fizzy pickles (slightly fermented)
Boil some red pepper in the vinegar and you'll get spicy pickles.
Before I got old enough to pickle my organs, I spent an unusual amount of time pickling cucumbers.
@ssube Doesn't hurt to try that route. You have a recipe handy? I was looking at this one.
15:23
You can seal em up for a week, which is good and flavorful but not so crunchy, or toss them in boiling vinegar spices, which has slightly less flavor and color but is much crunchier.
Slice a cucumber, boil vinegar, take vinegar off heat, combine, cover for 5 minutes.
They all look the same.
@rlemon I think I messed up my yeast, so I have to add new yeast... I added sodium metabasluphate (to kill the wild yeast), but didin't wait for it to settle down before adding my new yeast... I wasn;t thinking; I'm a noob...
So, do I have to stop talking to this person, or?
@ssube Fair enough. I'll give that a whirl tonight. Thanks.
@Cereal I have a zero potato policy, so I'd say yes.
can mocha be used for e2e testing?
@SuperUberDuper Not sanely.
15:33
@Cereal but cash is older, he had to be the originator amirite?
Selenium
ok, is casper my best choice?
don't want a java dep
@SuperUberDuper Selenium isn't strictly Java
well if I use protractor
!!afk Someone's playing fuck fuck games.
15:34
@Cereal also, can you please screenshot the rest of the convo past that point :P
Hai gais.
@rlemon It's not entertaining :(
> you are a moron
> yes I am.
??
@Cereal Is that Messenger for Desktop?
15:36
so basically made the claim without even looking into it?
@Callum yes
what is this? the internet?
How do I leverage browser caching for Node.js app on Heroku? I tried using maxAge but it throws an error:
web.1 | /Users/rahul/backlink-checker/node_modules/express/lib/router/index.js:438

This is what I had done:
app.use(express.static(__dirname + '/public'), {maxAge: 86400000});
@Cereal but you did put me in a NIN mood
15:38
@RahulDesai the object with maxAge should be the second argument for express.static, not app.use
That doesnt work too, unfortunately.
web.1 | /Users/rahul/backlink-checker/index.js:19
points to this line: app.use(express.static(__dirname + '/public', maxAge: 86400000));
@callum They can take your lives, but they can't take your makeup!
@Trasiva I swear my tan is real :p
@Callum Bullshit, you get sun for like three days out of the year, haha.
is casper any good for e2e testing?
15:43
@Trasiva Yeah, I'm confused too. Great weather this Belladrum, which is all outdoors.
@RahulDesai That's invalid JavaScript
@Callum Huh...weird. Of course, we get gobs of sunshine around here. I laid out in my chair all day yesterday and read. But being part ginger, I have to wear sunscreen. Otherwise I so much as look at the sun funny I turn into a lobster.
I don't really have to wear much sun-tan lotion, actually.
I'm blond, too.
A blonde Scotsman? Clearly your mother cheated on your father.
My dad was blond into his 20s :p
> Please re-enter your password
The password you entered is incorrect. Please try again (make sure your caps lock is off).
Forgot your password? Request a new one.
lies.
15:49
> Your password ("penis") is too short.
I go to reset my password:
> You cannot use this password. Please try another password.
Your password is too long. Compensating for something?
I hate passwords, why can't I just sign in with something that works...
@NathanJones 9 characters long, it's longer than most, but not too big.
when it comes to passwords you can't win: eev.ee/blog/2011/12/04/fuck-passwords
@Cauterite 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.
15:54
Ah, I missed the braces.
It doesnt throw any error now, but re-auditing the page in Chrome still says that I need to leverage browser caching. Weird.

I have just done:
app.use(express.static(__dirname + '/public', { maxAge: 86400000 }));

Do I have to do it for all resources in /public ?
16:05
Anyone know if there's a way to get the image data for a video element without going through a canvas? I see a lot of this code:
canvasContext.drawImage(videoElement, 0, 0, w, h);
imageData = canvasContext.getImageData(0, 0, w, h);
But that seems like an awfully indirect way of doing it, given that I don't actually want to draw the image in another canvas.
I'm trying to add a filter method on NodeList that returns a NodeList that references the original elements.
I could take the elements, convert them to an array, then put them on a docfrag, then get that NodeList, but it wouldn;t reference the actual DOM nodes
I'm thinking I could convert to an array, filter, put a class on the filtered items, query again for that special class, then remove the class and return that NodeList, but that sounds really slow
""We have some legacy code you can look at" bit.ly/1MCYbl4 " - @TechInfected
@Nick Can you not just [].filter.call(nodeList, mySuperAwesomeFilter)?
I don't want an array
Wait... would that even work?
testing...
Ah, right it'd return an array and you want a nodelist
16:16
Yeah
I'm gonna do it with a special class for now, until I figure out a more efficient way
Out of curiosity why do you want it to be a NodeList?
Because I'm experimenting with extending the DOM (yes, I know I shouldn't do it), and I want to be able to chain methods without converting the type
Ah. Another option that might yield better performance is to do var fragment = document.createDocumentFragment(), append all the filtered nodes to that, then return fragment.childNodes. If you change classes in the DOM that might have unintended consequences or cause a redraw.
@Callum I didn't get it
(Based on this answer)
16:20
Well, it will return the children of the docfrag, and not the real nodes, or if it just removes the elements from the page and puts them into memory, I will have to re-append them
Hi
Any AngularJS here ?
I'm gonna have to play wround with it some more
@copy Can you confirm no active attacks? I've had no data for some time now
@Mathematics Have you read the room rules?
ew... It's ugly, but it works
    var jdc = 'jdom-' + Math.round(Math.random() * 1024);
    Array.of(this).filter(fn).forEach(function(element) {
        element.classList.add(jdc);
    });
    var filtered = document.findAll('.' + jdc);
    filtered.forEach(function(element) {
        element.classList.remove(jdc);
    });
    return filtered;
Just got a ping, so it's working
16:35
@SomeKittens You asked me that 100 times till date tbh
@Mathematics and yet you're still not following them
@SomeKittens I was just trolling, take it easy man
user1596138
I don't want to cross post my chat but I might get a better response here...
hi guys
16:38
nm I see him
i got a non js question but hope i can still get help:)

http://pastebin.com/fAsUS17V

it seems my code keeps running, while i cannot figure it out why.
document
  .find('#foo')
  .childNodes
  .filter(element => element.className === 'baz')
  .remove()
I'm not proud of extending the DOM, but is this not prettier?
its with purpuse that it hasbnt any :)
thanks
hey guys
16:41
I am using this pure css modal setup. It works by using a # to open the modal. You do something like #myfancycssmodal, then include the rest of the needed html code and the css file(or put the css in one of your own css files) and you are done.
@Nxlevel 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.
On one page where I use a modal window, I have a button that I would like to refresh the page. I'm trying to figure out if you can re-trigger the #partoftheurl so it opens the modal window again.
now I need to do the same with sort, but I'm thinking I might have it return a new NodeList
i need to ask a question that i'm not sure falls under javascript or php
Does it run on the server or the client
16:42
who kicked me out ?
Would anyone even find a NodeList.prototype.sort method useful?
i'm tring to create a search that pulls information from specific websites and list the results for me
It'd be neat, but I can;t really think of a real use-case for sorting a nodelist
on the server
If it runs on the server, it's php
16:43
@Nxlevel how are you pulling the information?
ok thanks
php is worse than hitler.
thats what i need help with, i'm not sure were to begin so i want some feedback
You can run Node, Rust, many other things on a server too,
PHP is awful
ASSEMBLY
16:44
i do kno what i want it to do tho
whoops caps
asm.js + Node = <3
do kno to do tho
o
@cc2k : i'm still reading it, give me a minute…
i search for electronics a lot purchase them then sell back
16:45
WHERE ARE ALL THE GHs????
np
@Nick ghs?
though vs tho
but searching all these sites that i use is time consuming
This isn't mcdonalds, we use full words here
16:45
i know @Nick lol
sorry, no problem*
We aren't Java developers. We have standards. (shots fired sound effect)
ok sir
full words it is
@Nxlevel And punctuation.
you guys are something else]
16:46
YeS wE aRe
can i just ask my question please then you all can beat me up about my grammer
grammar*
We'll do both at the same time. We are effective like that.
what did the bot say to you?
@Nxlevel Web design and anything dealing with code is time consuming even if you are really good!
16:47
yes you can but dont ask for if you may :P
Don't ask if you can ask. #wisewords
(angry face), ok i obviously didnt go to school, but u did cuz u can tell when i spell something incorrectly
no let me be
Yeah, sort that out mate.
@cc2k: what do you expect this line to do? List<Player> tempList = mPlayerList;
copy the list
16:48
You don't have to go to school to look at your browser telling you that you might have spelled something not quite right...
i don't think it's copying the list there
is there a .clone() or .copy() or .duplicate() method for List ?
let me check
Is there a JavaScript way to re-trigger part of a URL
re-trigger? what do you mean?
nope their isnt, but with a quick search they say, use it like this List b = new ArrayList(a);
so im replacing that part of code
16:51
yeah that sounds good
> Maybe the reason all the weird fetish porn comes from Japan and Germany is because most of the normal, fit for duty young men were killed in WW2 and the only folks left to pass on their genetics were the weirdos, goofballs and perverts.
I noticed that on chrome, if you just do a refresh(either via keyboard command or refresh button next to the address bar) it doesn't take into account the #partoftheurl like if you use the # to scroll to a part of your page.
It does on Firefox.
thx, it seems to work(except showing the results:P)
thx for rechecking :)
But if I click in the address bar and hit enter it works
16:52
@cc2k : no problem, common mistake :)
:) still noob mistake :)
blame mutable objects, they're the real culprits here
You could create a chrome plugin to fix it @benlevywebdesign
to fix what?
Ignore me
16:54
wrong person?:P
Mhm
!!afk wasting my time outside trying to learn football (the proper football)
why ping me
wat
i want to create a page with a search box
when a keywork is placed in the search box and i click enter, it will search specific sites i want it to.
example: say i search "motorola motog 2015"
the webapp will know to search this address: http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=motorola+motog+2015 (placing the keywords at the end with "+" in between each word)
if i select a filter option before searching, the app will know to use another specified address for each website. in amazon's case: http://www.amazon.com/s/ref=sr_nr_n_1?fst=as%3Aoff&rh=n%3A24077490
16:56
I just lurk in chat, not actually contribute anything
!!butwhy
sorry for the bad spelling and grammer!
grammar!
@Callum does that make sense?
@benlevywebdesign : if you just clear and re-assign to document.location.hash, does that do anything useful?
16:58
@Callum What do you mean by "just clear and re-assign"
@benlevywebdesign Callum is afk: wasting my time outside trying to learn football (the proper football)
@benlevywebdesign document.location.hash = "", document.location.hash = "xyz";
the webapp will the fetch specific things from each search.
for amazon pages it will find the div class="s-result-item"
and copy the picture, the title and the price and link to the page
then output it onscreen in a table

« first day (1773 days earlier)      last day (3400 days later) »