« first day (855 days earlier)      last day (2933 days later) » 

12:59 AM
anyone here use webpack?
 
1:38 AM
Also I use webpack ^ the above is a pretty awesome way to handle animations
 
do you use it with gulp?
thanks for the link, i'll take a look
 
I have used it with gulp
gulp-webpack
 
I'm trying to enable the hot loader but failing
Keep getting: "Uncaught Error: [HMR] Hot Module Replacement is disabled."
gulp.task('webpack-dev-server', function(callback) {
    // modify some webpack config options
    var myConfig = Object.create(webpackConfig);
    myConfig.devtool = 'eval';
    myConfig.debug = true;

    // Start a webpack-dev-server
    new webpackDevServer(webpack(myConfig), {
        hot: true,
        publicPath: '/' + myConfig.output.publicPath,
        stats: {
            colors: true
        },
        publicPath: '/js/',
        proxy: {
            '*': 'http://localhost:8080'
        }
does ^ look right?
 
ah I havent tried using hot loader with gulp-webpack
I just use that with straight webpack :/
let me find my normal config
 
maybe my public path is the issue? (lol just noticed I have publicPath declared twice)
 
1:46 AM
oh jeeze there is nothing even to it
 entry: {
        app: ['babel/register', 'webpack/hot/dev-server', './App-Src/index.js']
    },
heh thats what I have configured in my normal webpack config
 
hmm i have: entry: ['webpack/hot/dev-server', './resources/assets/app.js']
ok it's something to do with publicPath because when I change it to ./ it works. It makes my js not work though
 
 
3 hours later…
4:42 AM
in PHP, 28 mins ago, by ircmaxell
I just wrote a blog post about how URL shorteners can hide XSS vulnerabilities and be used as an attack platform: http://bit.ly/gw4healj4tnk
nice post :)
 
5:33 AM
whoa
 
@NullPoiиteя TL;DR :)))
 
ctrl+click makes it better :D
 
is that for background?
coz my default is bg...
 
5:52 AM
yupp ctrl key opens in new tab :/ not sure what you have asked
 
6:13 AM
@NullPoiиteя the hell is that? I just got super logout
 
@Kitler sharing feelings ... i also clicked on id :) it shows that they are not using csrf token for logout and we can abuse it
 
well just got logged out of everywhere :P
Y u no gief warning, I thought that was the article
 
@NullPoiиteя Skype is a lie - did not logout
at least not on linux
 
6:28 AM
may be skype is using csrf token :/
 
PCGamer is putting doom for sale? A little late isn't it?
they might as well bundle it with lemmings
 
6:46 AM
the current bundle isn't bad
 
it's funny how now it's called bundle, back in the days for similar price you've got a pirated cd full of games
pirate bundle
 
this is not a pirate's bundle.. it's more of the priest's bundle
 
it's kinda like going to a second hand shop
recycling old games
 
totes
 
most old games nowadays are decent
once upon a time, old games were like using super vga
nowadays you can get games with decent graphics, good storyline, that racked in millions only because it is a few years old
My boss sent me an e-mail with an excel spreadsheet attached with the message "Ciao OP". Does he really expect me to know what he wants me to do with this?
 
6:56 AM
o/
ready for another 10+ hours work day \o/
 
7:23 AM
999
Q: Why shouldn't I use mysql_* functions in PHP?

Madara UchihaWhat are the technical reasons why I shouldn't use mysql_* functions? (e.g. mysql_query(), mysql_connect() or mysql_real_escape_string())? Why should I use something else even if they work on my site?

999 :D
 
@MadaraUchiha 1001 dalmatians ?
 
@CSᵠ 1001 SQL Injections
 
that's a cool book title
and when you write it i only require a 0.5% royalty :D
 
btw did anyone notice chrome dev tools just got an update?
 
is it shittier?
 
7:26 AM
nope - better
 
give it time :P
 
@CSᵠ :D
@easwee What be the update?
 
mobile emulation now has additional display views
lol
 
finally!
 
where the fuck can you find changelog
 
7:29 AM
maybe they moved the changelog location in this update, but you should find it by reading the changelog
 
@CSᵠ #genious
 
lol meh
 
7:46 AM
guys anybody knows how much data can pouch db handle in browser?
 
8:03 AM
Morning o/
 
\o
 
And good morning o/
Anyone knows animate.css here? It's pretty cool :D github.com/daneden/animate.css
 
old
 
ok ;) I added a small bounce animation through keyframes, when my colleague pointed it out
 
slide and fade are the only effects I use - and sometimes horizontal flip
but I guess it really depends on what you are working on
 
8:21 AM
I think it's overkill to add all those animations, when we'll probably only use 3 different ones, but that's not up to me :)
 
Still looking for a case where the bounce is used without making all the animation ugly.
 
Abe
morning o/
 
Quick question: If I put a .hover() on .genericdivname and want to only add the class on .genericdivname-child of THAT SPECIFIC .genericdivname, how do I do this? Can I use this + '.genericdivname-child? Or something similar? I have about 20 divs with genericdivname as class and genericdivname-child as child.
When I use $(this + ' .genericdivname-child').addClass();, I get the following error:
 
@Rvervuurt $(this).children('.genericdivname-child').addClass(); ? If you'r talking about jquery stuff. No idea in vanilla.
 
Uncaught Error: Syntax error, unrecognized expression: [object HTMLElement] .event-overlay-buy
Yea sorry, forgot to say jQuery :)
Hmm, it doesn't add the class
 
8:38 AM
@Abe here?
 
@RedBreast Without (this).children() it works, but of course applies it to everything
 
Abe
@Kitler yo?
 
flex box question, I m using flex-flow: row wrap; on some elements to have them break to a new row when they no longer fit, problem is can't figure out how to control the gutter between rows
 
Abe
control, how?
also, current code?
 
As in make the space between rows smaller
lemme make a fiddle
 
Abe
8:41 AM
you mean by expanding the boxes?
i need some help js/functional guys (cc @MadaraUchiha too)
 
@Abe Hmm?
 
Abe
basically there's the intent to implement shortcut for lambdas in php as in (x,y)->{} or whatever it is in ES6
and even this time they are not going to be closures
 
@Abe Yeah, I've read the RFC, PHP sucks.
Where're you getting at? :P
 
Abe
it was asked. why are closures so important? i couldn't answer
 
so you can move on
 
Abe
8:44 AM
i mean, you can return stuff
 
@Abe Well, technically there are "closures" in PHP
With the use keyword
 
Abe
@MadaraUchiha discussion is whether having them or not
 
<?php
$foo = "bar"
$fn = function($wat) use ($foo) {
   // $foo is available here
};
 
Abe
yes, i know how php works. :P
 
The use of closures in functional is about as important as the ability to use this in OO.
 
Abe
8:45 AM
why is it important to have closures?
 
Here's a small example
 
Abe
@MadaraUchiha practical examples? you know that "The use of closures in functional is about as important as the ability to use this in OO" won't work with php internals :D
 
let hasKey = obj => key => obj[key] !== undefined;
hasKey is function that takes an object, and returns a function that accepts a key, and returns a boolean whether or not that key exists in the object passed initially
let bobHas = hasKey({name: "bob", age: 15});
bobHas('name'); //true
bobHas('girlfriend'); // false
 
Abe
cool
@Kitler waiting for the flexbox example
 
8:49 AM
Since obj arrives by closure to the inner function, this sort of thing was impossible to do without closure.
Without the cool ES6 syntax:
 
@Abe couldn't reproduce the problem but I think I got where the extra spacing is coming from :P
 
function hasKey(obj) {
    return function(key) {
        return obj[key] !== undefined;
    };
}
 
@RedBreast Funky that it works there...
 
Here's another funky one:
let not = fn => (...args) => !fn(...args);
not is a function that accepts a function, and returns a function that always returns the boolean opposite of the original function, for each set of arguments
So....
let bobHasnt = not(bobHas);
bobHasnt('name'); // false
bobHasnt('girlfriend'); // true
 
8:51 AM
@MadaraUchiha Don't you need to pass obj.key there?
 
@Kitler Where?
 
scratch that
 
!!live
 
@MadaraUchiha I'm not dead! Honest!
 
!!> var hasKey = obj => key => obj[key] !== undefined; var bobHas = hasKey({name: "bob", age: 15}); bobHas('name');
 
8:52 AM
@RedBreast Figured it out!
 
@MadaraUchiha "SyntaxError: let is a reserved identifier"
 
@MadaraUchiha true
 
She has arrow functions, but not let
 
well screw you cap
 
8:53 AM
@Kitler "SyntaxError: let is a reserved identifier"
 
@RedBreast Problem was that the genericdivname-child, was in another div before THAT div was the 1st child of the genericdivname
so I had to use .children() twice
 
@Abe I've given up on PHP
It reminds me of an old, unchanging geezer that no one takes seriously anymore.
 
Abe
@MadaraUchiha
var hasKey = obj => key => obj[key] !== undefined;
what's the scope of "key" here?
 
It's not flexible, it's not cool, it's only easy, like your mom.
 
Abe
nope. it's the argument
 
8:55 AM
function hasKey(obj) {
    return function(key) {
        return obj[key] !== undefined;
    };
}
 
@RedBreast Check the updated fiddle, .addClass()won't work on the first two divs jsfiddle.net/2ejx9mtg/1
 
obj is inherited into the inner function by closure
The key is an argument to the inner function
 
@RedBreast Do you know of any way to target the correct child without using .children() twice?
 
Abe
otherwise it would have been:
var hasKey = obj => obj, key => obj[key] !== undefined;
correct?
which is entirely different and not really useful
 
8:57 AM
@RedBreast You da man
Much better than using 2 or more .children() if you ask me
probably also speed-wise
 
@Abe higher order functions without closure is like a programmer without hands.
Technically, you can type with your feet
But everyone looking would call you a retard.
 
Yep, multiple children() like parent() is fairly ugly.
 
Abe
@MadaraUchiha i know you don't give a fuck, but why don't you join the discussion? :D
 
@Abe managed to reproduce the problem jsfiddle.net/ec8p4o20
 
@Rvervuurt But I also thought children() wasn't limited to the first level before that case tbh.
 
Abe
9:01 AM
@Kitler so you want it to reduce, how?
 
@RedBreast Apparently it is :) Had also thought it would just take all children, also children of children
 
Abe
like this? jsfiddle.net/ec8p4o20/1 @Kitler
 
yesss that's it :O
removing the position absolute also makes it work, can you explain to me sup here
 
ignore position when using flexbox
 
@RedBreast Adding setTimeout() breaks it... Are you ready to rescue me again? :P jsfiddle.net/2ejx9mtg/3
 
Abe
9:09 AM
rows are distributed evenly
container height / number of rows
 
@Rvervuurt surely you can spot the error?
 
@Abe capished :D cheers bro
 
Abe
that's because align-content defaults to "stretch"
align-contents applies only to "wrap" containers having 2+ rows
 
@mikedidthis Is it because there's no this in the setTimeout?
 
updating components to use flex, tis fun
 
Abe
9:12 AM
while align-items align the items within their own row
 
!!caniuse align-content
 
@Rvervuurt hint, there is more than one issue. Look at the parameters for setTimeout.
 
Abe
both align-items and align-content are applied to the cross axis
 
@Rvervuurt jshint.com yo code fool
 
9:14 AM
its a fucking copy / pasta nightmare
 
@Abe ie10 has limited support for it though
dafuq is the 2012 syntax?
 
@mikedidthis I don't see any trouble with the parameters of setTimeout :X
 
Abe
@Kitler the previous flexbox spec
i don't even remember
 
bah screw ie10
 
!!afk lunch
 
9:16 AM
if auto-prefixer doesn't get it I don't care about it :P
@Rvervuurt you ll need to pass context
before lunch
 
Abe
COFFEE
NOW
 
espresso?
 
!!coffee
 
@Cerbrus "undefined"
 
Jul 23 at 9:35, by Kitler
https://github.com/thoughtbot/bourbon/issues/702
 
9:20 AM
Hm, Caprica is broken. She doesn't know coffee
 
Abe
@Kitler no other kinds of coffee exist
 
-1
Q: js functions works fine on initial call then get a 'is not a function' on subsequent calls

ZabsI have a web app that has a drag & drop interface to reward students, one of this aspect of the app allows a user to drag & drop & reward onto an individual student. On Line 1231 there is the function 'onBuddyRewardGiven' within the 'reward.type' switch statement in this function there is a 'pos...

 
!!afk lunch
 
Holycrap. That question I just linked, links to a pastebin with 2422 lines of code
Yea, we're totally gonna debug that.
Ehm, also pay close attention to Minimal. 2422 lines of code is nowhere near acceptable for a SO question. No-one is going to dig through that much code to find your problem. — Cerbrus 49 secs ago
 
Hello guys!
 
Abe
9:33 AM
@Kitler makes totally sense how the flex properties are named, right? lol
 
@Abe Kitler is afk: lunch
 
I need help
Can someone help me on this:

http://stackoverflow.com/questions/32336627/how-to-drag-and-drop-multiple-elements-on-a-field
Please
 
Abe
i still fail to remember what they do
 
@FranciscoMariaCalisto: don't spam your question into multiple rooms, please.
 
It was just this 2 rooms
 
Abe
9:34 AM
@FranciscoMariaCalisto also no jsfiddle
 
Sorry for that
Yes I know but I have sensitive content, but I can change that and put it on JSFiddle
 
Please do.
 
Abe
@mikedidthis thanks, i didn't know what to answer. but i almost facepalmed myself
 
@Abe i give up.
 
Abe
9:38 AM
lol
We use a JavaScript to prevent people from downloading images.
 
@Abe: On a profile site that does that, I wrote a little bookmarklet that allowed people to simply open the image in a new tab
Posted about it (on that site), then, a week later, some snitch commented something like "Violation! reported!"
 
Abe
lol
 
Shortly thereafter, the post was gone
sadface
So, I re-posted the post, telling users to contact me if they want the script xD
 
9:53 AM
@Rvervuurt Was in meeting, tl;tr now. Have you fixed your issue with setTimeout()? It's working if you save $(this) in a variable. Not sure if it's the best solution, I'm still a n00b with JS. jsfiddle.net/RedBreast/2ejx9mtg/5
 
@RedBreast Rvervuurt is afk: lunch
 
If you serve people your shit, they can take it.
 
@RedBreast Yea, I fixed it with a variable
 
Such is life.
@mikedidthis tell dat dj turn it up while i roll it up and i PUT IT IN DA AIR
 
posted on September 02, 2015

New Cyanide and Happiness Comic

 
9:55 AM
Meth and Red have their own show.
When the hell did that happen
 
Abe
the real question is who the hell are meth and red
 
@Abe where is the discussion taking place?
 
@mike you can disown this italian fool now
:P
 
Abe
@MadaraUchiha php mailing list
and also reddit
 
Abe
10:00 AM
lol
@MadaraUchiha php mailing list in a nutshell: twitter.com/mathiasverraes/status/569576058992902144
 
@Abe Don't forget, I'm a PHP veteran
I've been to the internals and back :)
I know how it's like, I know the people, and I know exactly what's the outcome going to be.
I don't use PHP anymore, and I don't participate in the discussions. PHP internals is more toxic than Chernobyl.
 
Abe
but those people are disappearing
SO room 11 is responsible of like 70% of php7
 
@Abe I was there not that long ago, in internals
I suggested that discussion be moved to someplace less... horrible
That mailing lists are about as old as faxes and that better alternatives are out there
They insisted that the news:// protocol is awesome and that they don't want to move from it
And I got SQUAT from the PHP SO room, even though they pushed me to post there in the first place.
So thanks, but no thanks.
 
Hi There
I m facing issue with SVG on IE10
 
Abe
@MadaraUchiha you are a bit unfair
 
10:07 AM
on only IE10 while hovering on svg icon there is blinking effect
 
Abe
it is like that but it's getting better
 
Hi guys Here any programmer. Who know little about nsis?
 
I have defined SVG icon and on hover I am changing defination class on mouse hover
any one is there who worked on IE10with SVG
?
 
Abe
@Mike didn't they destroy a babylonian temple? or that was ebola?
 
I want to change the uninstaller icon?
WriteUninstaller $INSTDIR\uninstaller.exe
 
10:10 AM
@Abe Perhaps
But I've put time and effort into a language I don't use and don't intend to use anymore, because I genuinely thought I could improve the lives of people working on it.
Making the language more open and more accessible to the wide developer community
But the stubbornness and vocality of the existing group prevented any sort of meaningful advancement there.
Sorry, but I have limited time and mental capacity as it is, and this only serves to put extra stress on me, and annoy me.
 
Abe
that "existing group" is getting weaker every day
 
@Abe When the PHP internals finally open the discussion, then I'll consider joining
When I have a chance of not putting my opinion in a freaking firing range.
And no "technically open" is not "open"
I know I'm being overly aggressive here
But I've had bad experiences there numerous times
I don't intend to spend my time voicing my opinions where I know they wouldn't be appreciated.
I'd be more than happy discussing this in the PHP room here if they're interested
But I have no intention of mailing internals.
(Definitely not on my birthday)
 
Abe
it's just politics. the difference is that expressing a sensible thought is harder than trashing one
but if you keep insisting, they will eventually listen to you
 
@Abe I'm not interested in politics.
 
Abe
it's just matter of time
me neither
 
10:16 AM
Time I don't have.
And even had I had it, I don't intend to spend it there
 
Abe
i still think that php is the only language i could use, though. js is not strict enough for my taste, python same. java is a mess, scala and groovy are a mess as well. ruby's syntax is ghastly. the only language i genuinely like is c#, which is not open and bound to windows
 
@Abe I v seen worse :P
 
Abe
i would use a new language if there was one that fitting my taste/needs. but there aren't any, apparently
 
AbeScript™
3
 
The xkcd Survey: Big Data for a Big Planet
3
 
Abe
10:23 AM
@mikedidthis you joke but i actually started writing a compiler AbeScript -> PHP
 
@Abe honestly, not surprised.
 
Abe
it's not gonna work though. i have no experience at all with this kind of things :(
 
Hi everyone, I am looking for a list of browsers & mobiles list that should be supported for a normal web app
 
@ImranBughio whilst you are looking, I wouldn't mind the Holy Grail.
 
A client is asking for a list of browsers I will be supporting ... the list that comes in my mind would be like IE 9+, Firefox, Chrome & Opera
 
10:27 AM
Yeah, you set that list.
 
But I am out of clue for the list of mobile devices that will be supported
for responsive web
 
Look at mobile browsers, not devices.
 
@Abe You need to be strict
Not the language
I view strictness in the language as training wheels, not much more.
 
Abe
bs. humans are stupid, they forget things and they are sloppy
(especially me)
 
@Abe I write JavaScript for quite a while
I know I'm more of a god than a human, but still.
3
You use tools like ESLint and unit tests to increase the level of confidence you have in your code
Language strictness isn't a replacement for tests.
 
10:39 AM
 
> On a scale from 1 to 5, which is your favorite number?
 
I once thought I was summoning rdemon, but then rlemon showed up
 
tests are a pain in the ass but their benefit they bring makes up for that
 
@Rvervuurt I hate it when that happens
Then he's like, "Don't sweat it, I'll buy you a beer," and I'm all like, "Why don't you buy me a rdemon then!" Geez..
 
Abe
Every software project... http://t.co/NE8YPwhdNg
 
10:45 AM
@Neil I'd settle for a beer
 
@Abe isnt it enough week yet ? :/
 
Abe
enough for php7 to exist
 
@Abe PHP7 is a great step in the right direction
But until PHP stops empowering those who are not interested in improvement whatsoever, PHP will not evolve.
 
@MadaraUchiha :O
 
10:48 AM
@MadaraUchiha happy bday !
 
Thanks :)
 
happy b-day brokneegrow
 
@MadaraUchiha long time ?
 
May you finally destroy what's left of the universe
 
@Abe Give JavaScript a try
And after you gave JavaScript a try, give TypeScript a try.
 
Abe
10:51 AM
js is literally impossible. maybe python.
 
@Abe JS is most definitely not impossible.
 
Why is it impossible? From what I v seen you already know a fuckton
 
Abe
is impossible for me
 
JS makes a crapton more sense than PHP
 
Abe
@Kitler that doesn't mean that i like it :P
 
10:52 AM
Invoking an executable on EVERY SINGLE REQUEST is not sane.
 
it ll grow on you :P
 
And before you tell me there are alternatives to that approach, that's just what they are, alternatives
 
kinda like fungus
 
You have to try very hard to do ANYTHING else
 
4.1k rep to 10k x.x
 
10:54 AM
@Kitler Two words.
Ember
Canonicals
 
Two words:
Rep
Whoring
Should probably expand this answer stackoverflow.com/questions/32216684/…
 
Can you please give this question a look
0
Q: How to link a Webservise method to a audio's src element.

Lulutho MgwaliI have this Webservice method that i use to get audio from the database. Server-side: [WebMethod] public void PlayAudio(int id) { byte[] bytes = new byte[0]; using (The_FactoryDBContext db = new The_FactoryDBContext()) { if (db.Words.FirstOrDefault(word => word.wo...

 
Moved the double
 
@Kitler getting rep is really really easy bro
 
Yeah I don't want any rep
 
Abe
10:59 AM
@NullPoiиteя only depends on the capacity of your bottom
 
I m focusing on ember
 

« first day (855 days earlier)      last day (2933 days later) »