« first day (1872 days earlier)      last day (3076 days later) » 

2:00 AM
not a concern if it's paid off right away, i believe.
 
speaking of which, I need to go to the bank tomorrow and pay off my cc
bought a bunch of crap on the weekend, debit account has a $2k limit
 
so old fashioned
 
pretty sure I also maxed my cc
 
I don't have a CC anymore
 
@nick my work doesn't do DD
so I have to take my cheques in
 
2:01 AM
ahahha
 
we have less than 10 employees
it would cost them more to do DD than it is worth
luckily I live like 2 min from my bank
 
the last place I worked for had about as many employees and we had DD on both contractor and fulltime payroll
 
I live like 30m from my bank
 
well our systems are different?
idk what to tell you
 
I go like 3 times a year :(
 
2:02 AM
it isn't really that big a deal.
 
i jsut take pictures of the check with the phne
 
@Luggage I'm pretty sure my bank has that now
but I still like to go in
 
but you like going to the bank
 
do you try to haggle at the grocery store, too?
 
"deposit this to chequing and pay off my visa" is just so easy
 
2:04 AM
@Luggage Don't you?
 
@nick it is literally on my way home.
and no one else goes to the teller
so it is pretty much always empty
 
no automagic ATM thing?
 
When I worked retail for about 8 months, I always went to the bank to deposit a cheque; it was actually kind of nice
 
is this the 90s
 
yea sure there is
 
2:05 AM
the 90s were a magical time
 
but it takes like 2 minutes to do it at a real teller
the atms have lines
its like when you go to get a coffee and the drivethru is full and no one is inside
 
@Nick I did too lol
 
ugh, retail.
years of my life lost.
 
I wasn't willing to spend years of my life doing it
 
I was "management"
 
2:08 AM
they were supposed to set up DD for me but they took their time
 
which basically means babysitter
 
I was "bagger"
 
I had 0 potential, and after 8 months, I was afraid that I was going to be stuck working retail for the rest of my life, so I made huge changes and turned myself around
 
good for you man
 
I am good at sales. but it is a deadend job.
the top I achieved there is like intro pay in programming.
 
2:10 AM
yeah you're just another cog in the machine in that industry
 
I was a GM. managed like 3 stores.
still made shit
 
it sucks to feel expendable
 
that wasn't the issue.
just a crap job.
 
true
 
and, without TRIGGERing anyone
 
2:11 AM
#retailswagger
 
I got fed my fair share of sexism being a man
I was a straight man working in retail
 
> was
 
I don't work in retail anymore ;)
still straight, but zach effron is sexy af
 
Wait, wasn't it you that was mistaken for gay at your job?
I remember you telling @Loktar and I
 
no I played that up when it helped
 
2:13 AM
for some reason
 
it was that I was a man.
 
Oh yeah, to sell things
or something
 
@rlemon irresistible
 
ended up getting fired from some place because I was "hard" on a pregnant woman who decided she could fuck off and eat ice cream on the bench in front of the store when we were busy.. when I offered her early leave...
she was buddy buddy with my boss
 
retail is retarded, and only losers make it a career. If that offends you, lick a butt
 
2:15 AM
agreed
 
@Nick you have triggered me
 
good
 
Do javascript frameworks commonly allow route level middleware?
 
42
 
the answer to everything
 
2:16 AM
yellow
 
@r3wt the answer to the ultimate question of life, the universe, and everything*
 
@Nick the answer to me
 
much wisdom
 
such wow
now answer the question frickstick
:P
 
42; the age of women that @rlemon prefers
 
2:17 AM
ahahaha
 
!!doge wisdom,PHP,frickstick,r3wt
 
 wow
so wisdom
           such PHP
                            very frickstick
many r3wt
 
in their sexy bank teller uniforms.
 
i heard he was spotted creeping around the morgue
 
@Nick while you rob the cradle, I rob the craft-master adjustable bed
 
2:18 AM
I haven't been doing any robbing as of late
 
move to Detroit?
 
Are we still being metaphorical? Or do you want me to move to Detroit because it has a high crime rate, and I could get away with stealing?
 
latter
 
k
 
I use what I have to work with
 
2:20 AM
Well, a girl did message me on okcupid, and after a couple of days of messaging, asked me if I wanted her number. As far as I know, we have a date on Thursday
so... progress?
 
+1
 
who knows, in a few short weeks you could be sending her your life savings
 
did you tell her about your sick JavaScript skills?
 
#progress
dude
tell her about your expertise in jQuery
 
This is my skilllzzz
I used random youtube channels as filler content
the coloured one is the hover effect
 
2:22 AM
beast
 
Is it too ironic to have an old school filk projector as the background?
 
date me pls
 
I like the yellow
 
Yeah, I think it looks nice so far
and I'm not even a designer anymore
 
needs more lorempizza
 
2:23 AM
I've spent far more time on the back end
 
!!dunphy 800 600
 
or filldunphy
 
@Nick did you tell her that too
 
!!dunphy 600 800
 
i'm gonna aggregate all of your lorem* sites and call it loremlorem
 
:D
 
@nick I'll tell her that I'll make her back end my main focus
 
lol
 
@Luggage ^
it is open source
 
2:26 AM
shouldn't loremlorem
be just a redirect ?
 
How about a master lorem site with categories for text, images, charts, etc.
 
thought about it
wouldn't work
 
how can it not work?
 
lorempixel.com already exists
 
too much work for something so dumb
 
2:27 AM
it's not dumb it's art
 
@Nick not so much that as already done
I mean, I could make it better
but still... would that be enough
think betamax
 
@rlemon I just learned about "vessel.com" which is sort of similar to what I'm aiming for with my project (but not quite). Not making things because something similar already exists isn't a good excuse, in my opinion.
 
first > better
 
true
 
although I should re-release the lib as lorem-everything
then everyone can power their clones on my software
#win
 
2:40 AM
@r3wt false
 
dammit newegg got there first
 
Anybody here been using Google Cardboard VR?
 
google cardboard is a joke
 
@Nick Why do you think so?
 
Why would I want to wrap my phone in cardboard, and stare into it like some chump?
 
2:50 AM
for 3d porn, i assume.
 
@RahulDesai I have
 
cardboard is for moving and for spaceships
 
@SomeKittens How do you like it? I got mine today! :D
 
Very neat tech - and not that expensive either!
 
Google Glass 2.0
 
2:52 AM
Whats the 3d porn app, again? lol
 
though without serious game support it's a neat toy
 
like my leap motion
 
I saw the Kaleidoscope and the Urban Hike. Its really cool!
 
@Nick truth
 
2:56 AM
@RahulDesai Try out photo sphere too
 
I assume the rubber bands are there to allow the operator to firmly secure the device to his or her face
 
@SomeKittens Its not in the Google Cardboard app, is it?
 
3:08 AM
I have a $50 eBay gift card and I want buy a book on Javascript, what get?
 
Post the code and I'll tell you
 
1800shutup
:P
 
tried it, didn't work
 
lol
 
I am a brown cat
 
3:21 AM
pics or it didn't happen
 
hi, how can we bind event handler for :after element?
using angular js
$('#openAppInfoLink:after').off("click").on("click", $scope.openAppDetail);
that may works, but is there any other way?
 
NVM
 
yeah, jquery
 
jQuery !== angular.
 
lol
 
3:24 AM
so I want an angular way
 
first you have to purchase a cat.
 
Just make it a span
and then do it the normal way
because that is horrible for a million reasons
It actually should probably be a button
 
it doesn't look very fun to write angular
 
do not bind handler to an element generated by css, right?
 
In AngJS, $state.go switches the current view to another one. Is there a way to redirect the page altogether?
 
3:28 AM
window.location = 'some url';
sprinkle with meaningless dollar signs to taste
 
Angular doesn't offer its own solution?
 
hell if i know
i don't write angular.js
 
I wrote angular js once
 
did you learn
man i just want a framework that i can teach to random people in 10 minutes, and still powerful enough to build large scale applications
 
Looks like Microsoft is pleasing a lot of web developers with their IE announcement.
 
3:32 AM
now if we can just get Apple to upgrade safari
its even worse of a pile of shit
hell i guess they all got problems
 
Dude, what Safari are you on?
 
@DemCodeLines what's that announcement?
 
people who try to support IE 8 or less are over achievers
 
!!s/over achievers/stupid/
 
3:40 AM
@phenomnomnominal people who try to support IE 8 or less are stupid (source)
 
Yeah that's great and all, but when you join a company and their product only works on an old IE, you really got no choice but to make it keep working
 
Why would you ever join that company
 
for the ladies
 
Then you're even stupider than the company for making something that only works in old IE
 
You do realize that a ton of companies have these products, right?
 
3:52 AM
You do realize that there's no limit on the number of companies who can be stupid?
 
Thank you for proving my point.
 
Anyone knows how to make a button just be an fa icon, or a glyphicon ?
 
4:09 AM
You mean a clickable rectangle with no text, just the icon?
Or a clickable icon?
 
If there's one thing Microsoft do really well, it's stock photography.
Specially stock photography in squares and rectangles. Whew! They're amazing.
So many teeth, so little time.
 
4:26 AM
Hey guys, I was trying to display the product name or unitVersion of a product so I did the following:
ng-options="product.id as product.name || product.unitVersion for product in vm.products track by product.id"
Now I want to know how could I concatenate two values
Is this possible:
ng-options="product.id as product.name || product.category + ' ' +product.unitVersion for product in vm.products track by product.id"
?
 
@feniixx I'm only just getting into angular so i don't know the angular way, but elsewhere I'd do it in the model.
 
This isnt a bad deal : newegg.com/Product/…
 
4:45 AM
TIL you can buy t-shirts on newegg
 
@feniixx Tho in play () works ng-options="(color.name + ' ' + color.shade) for color in colors"
 
@DemCodeLines lol, me too
 
<select ng-model="myColor" ng-options="color.id as (color.other || color.name + ' ' + color.shade) for color in colors"></select>
 
Is there anybody here using Dvorak?
 
Thnks @rism
What does this returns?
return json_array.filter(
                function ( json_array ) {
                    return json_array.id == id
                }
            );
a boolean, or the json object?
What would be a nice approach to know if an object is already inside an array? I'd prefer only to compare the id value of the objects
 
5:03 AM
You can test that sucker for yourself. The filter function returns a bool to the filter, upon which the filter makes a decision about what to return. i.e. true include that one, false discard that one.
btw, pretty sure i was talking complete nonsense re: that angular stuff track by doesn't work so effectively i just wrapped your expression in brackets.
I normally charge $20 just for wrapping things in brackets, but tonight it's free.
 
5:20 AM
Is there a way to simplify this function:
function existsBoughtProduct() {
            var exists = false;
            for ( var i = 0; i < vm.bought_products; i++ ) {
                if ( vm.bought_products[ i ].id === vm.bought_product ) {
                    exists = true;
                }
            }
            return exists;
        }
 
@feniixx A filter will however run once per item i.e. [n] times . so if you only want one item, a for loop with a break may be the better way to go
improve it by break; on found.
uh, just return true;.
 
5:34 AM
hi.. for implementing a normal get the value of a textfield as the user type .. i would do something like .. oninput I clear a timer and then set a timer that calls the callback function after X seconds .. but how do I achieve the same in react ?
 
The same way, its just JS. Just have a timer set in the input event
I would help more but just caught this right before heading off to bed
 
I have an idea like in componentDidMount: () => React.findDOMNode(this.refs.textField).addEventListener('input', _debounce(handleInput));
and on umount removeListener .. but I have a feeling that it isn't the right way to do
 
@AwalGarg every node is immutable now
 
Any simpler way of doing this:
if ( vm.bought_products.length > 0 ) {
                var exists = false;
                for ( var i = 0; i < vm.bought_products.length; i++ ) {
                    if ( vm.bought_products[ i ].id === vm.bought_product.id ) {
                        exists = true;
                        break;
                    }
                }
                if ( exists === false ) {
                    vm.bought_products.push( vm.bought_product );
                }
            } else {
                console.log( 'Added-else' );
 
5:52 AM
bad morning (slept 4h in total, bad sleep performance :/ )
 
That happened to me last night.
2 cups of coffee didnt help me today morning.
 
6h50 atm and at work
good thing that the coffee machine could be handled as remote
// waiting
 
Okay, serious question
Is there any way to unsset a bounty?
 
@rlemon : so so, after slidepoop, a peeTV moment ?
 
I accidentally set one on the wrong question on the physics site
-17
Q: If there is no gravity on the moon why is the american flag waving?

ZaneIf there is no gravity on the moon, how could this flag be flapping in the wind? (see link) http://www.stumbleupon.com/su/2wD6eg/hea-www.harvard.edu/~fine/images/desktops/Armstrong.jpg

And I think I may have lost 50 rep to this moronic thing
 
5:57 AM
there IS gravity on the moon
 
I KNOW
It wasn't my question, I bountied the wrong thing
 
ah
you can ask a moderator to settle these things. Not sure that you can undo it yourself
 
it's a protected Q, so ...
 
6:12 AM
Yeah, once you set the bounty then the rep is gone no matter what happens next. You could always try to contact SE and ask them to reverse it but I'm not sure what the policy on that is, try searching meta.stackexchange.com and see if it's a problem that's come up before perhaps
Unless physics has it's own meta site ofc
 
why did sublime text discontinued? Any one know the reason?
is atom/brackets better than sublime text?
 
Who said Sublime was discontinued?
 
vOv
I like atom
 
6:27 AM
morning
 
@AbhimanyuAryan That's like asking if veal is better than pork. It depends and most of the time comes down to personal preference
Or asking if apples are better than pears if you happen to be vegetarian
 
SublimeText vs Atom is heating up to be the webdev equivalent of vim vs emacs.
 
And it's an equally dumb thing to fight over
 
yeap
I am agnostic to editors, heck I can code in VSCode or even notepad
 
in fact, coders should be able to write programs in notepad
 
6:35 AM
vOv
 
so... user interface is irrelevant?
 
coders should be able to code with butterflies
 
but a good text editor is always helpful, with syntax highlighting and lints
* note to myself : update ST2 to ST3 *
 
@rism It's not irrelevant but there'll always be different opinions about what a good UI is
The worst thing I know is coming into a project to be told "yeah, we've standardised on editor X here so you have to use it"
 
is he a good dev ?
he should realize that it actually doesn't matter.
 
@KarelG This only happened to me once, years ago and it was a decision made by management
needless to say I didn't stick around to see if the devs were good or not
 
nice find
 
My point was simply that different people will prefer different editors and that's fine
 
true
here at work, people uses different editors: ST, atom, vim, notepad++, ...
heh someone has ... ultraedit or something
OK ... googled it. That person is officially an idiot: Price: $79.95/year
 
We've got ST, IntelliJ, Webstorm and Eclipse I think. Why anyone would write JS in Eclipse is a bit beyond me but if they like it and are productive in it I make a point of not poking my nose into their setup :)
 
6:47 AM
i'm creating an npm package, which i want it to just write down a folder along with all it files
how to do that?
without using mkdirp or fs.write
just a copy of one of the folder
 
You want to copy a folder, basically?
Because then I'd use npmjs.com/package/ncp
 
just saw an answer where the user is happy to make ajax calls synchronous ... :|
 
@ivarni Did they offer any coherent argument for standardization?
 
7:05 AM
i'm trying to figure out what polymer is, is it dynamic website development?
 
@rism They believed it would make the entire team more productive if everyone used the same editor because of pair programming
 
@AjaxGuru a polymer is a macromolecule composed of multiple (repeating) submolecules
 
ah ok, well at least that's better than "because Barry says so"
 
@KarelG can you use less buzz words?
 
one might be misguided, the other reaks of a certain kind of political environment
 
7:15 AM
so polymer is how to load parts of a site at a time?
 
it's just a way to provide custom elements (HTML5 feature)
 
o/
 
\o
 
i'm getting into the deep end of ajax
 
That is surprisingly accurate
 
7:22 AM
@KarelG was that to me?
@Cerbrus what were the down turns from the image above?
 
@AjaxGuru How do you mean?
 
7:49 AM
Hrm, don't you hate it when someone accepts your answer, only to change it 10 minutes later, without any new answers / edits? :-/
 
crl
@AjaxGuru there were no buzzwords there..
 
Someone's having a spontaneous meeting right behind my back and one of them is sitting on my drawer-section so I can't get to my noisecancelling headset without being overly passive agressive :/
 
So? Let them know they're being inconsiderate ;-)
 
@AjaxGuru oh cool, a graph of 2013
 
8:07 AM
I need help
 
@DickyMahardika 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.
 
@Cerbrus That was the passive agressive thing I wanted to avoid, but they've left and I've relocated my headset to a safer location
 
do you use a headset during work ?
 
Only when I have to
 
crl
I'm confused this morning
 
8:21 AM
select attr_value, aggregate(times) from songs group by attr_value order by aggregate(times) where attr_name='genre';
can i do that ?
the table is
attr_value string, attr_name string, times integer
 
crl
seems possible yes, but I always felt the someFunction(someCol) when repeated were computed multiple times, but maybe it's optimized
 
nvm just realized it same as
select attr_value from songs order by times where attr_name='genre';
 
8:39 AM
goodmorning
 
Hi
 
what for query language is that ?
 
crl
pg probly, ah what for? no idea
 
9:04 AM
morning
hi @Sheepy
 
Morning~
 
Well, it stopped
 
any angular2.0 developer here?
 
crl
9:33 AM
@DenysSéguret you're a svg pro, can I ask you how would I be able to have this jsfiddle.net/crl/gdmfgtg4/1 but still be able to focus on the text in the middle of the square, of course the z-index is the issue there, but I'd need a 'hollow rectangle, a rectangle with border on top of the rest, but that is 'empty' in the middle
 
@crl: css pointer-events: none
 
*break test
 
o/
 
\o\
@Ronak Bhatt ask your question we might not be ng2 devs but we sure can figure out something
/o/
 
crl
@Sheepy ahh nice, but actually I want something not just for click, the yellow square show where I'll drop something, and I want that the drop event happen on the text, not the yellow placeholder
 
9:46 AM
@KarelG Well....
It stopped.
 
But can you ride it again ?
 
hey. i have this:
var alphabet = 'abcdefghijklmnopqrstuvwxyz';

and like to color the "a" in alphabet red. how do i do this?
 
@TechTreeDev select a, then add color style or class that colors it ?
 
hm, i started with js 2 hours ago^^
I tried this: var alphabet = 'a'.fontcolor('red') + 'bcdefghijklmnopqrstuvwxyz';
but it didn't work
 
9:55 AM
What would be the best approach to loop through an array of object to execute some process in Node.js?
basically what I need is to insert in database each of the objects in the array
 
crl
for
 
Morning all
 

« first day (1872 days earlier)      last day (3076 days later) »