« first day (1887 days earlier)      last day (3065 days later) » 

9:00 PM
@crl yea. I'm impressed with it. Even it not bootstrap, it's a great example of thinly wrapping elements in additional functionality.
 
Is leaving the case open on my computer good for cooling?
 
It's good for clugging your fans with dust etc.
 
yes of course
 
Can I use $(this) inside of if statement?
 
You can certainly try
 
9:01 PM
you can use any valid JS expression inside an if condition or body.
 
oh look, someone thought of touching chat code meta.stackexchange.com/questions/268351/…
 
it probably won't ever return false
 
I'm trying to remove href attribute only if has children
so I did something like that
 
1 message moved to Trash can
@user4571629 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
I'm sure there's some :has-children selector, or something like it iirc
 
9:03 PM
if ( $('.pagenav a').next('.children').length  ) {

    $(this).removeAttr('href');
}
 
crl
@Luggage yes, but still I don't think they need to do any component creation from a string, because it's 'static' you declare which component you want, and each component know which child component he has
 
They do. Look in Button.
 
crl
ah ok
 
yes, but the has children part working fine, I just need to to the $(this) part
it's not working
 
and a string can be in the capitalized variable.
 
9:04 PM
maybe this instead? $('.pagenav a:has(*)').removeAttr('href');
 
11
A: jQuery; Check if object has child $(this)

Pranay RanaMake use of : .children() if( $("#unread").children().length > 0) alert("unread"); else alert("read"); EDIT if($(event.target).closest('#unread').length > 0) alert('unread'); else alert('read');

bam, thanks Google
@nderscore I like that better
 
crl
@Luggage ok but they do it only for built-in html tags, not React component
 
<div /> = <div></div>
class MyComponent extends React.Component {}
<MyComponent /> = <whatevery Mycomponent renders>
let Type = MyComponent;
<Type /> = <same as Mycomponent>
Type = 'ul';
<Type /> = <ul></ul>
see there. Type can be EITHER.
 
crl
yes but me I receive 'MyComponent', as a string from DB
 
because Type is capitalized it does not get converted to a string fore createElement(). But if it already contains a string, then you are good.
that's fine. just assign it to a variable.
that not even a JSX problem, it's jsut turning a string into a component reference.
 
crl
9:08 PM
yea, ok, still needs a map, thanks
 
let Type = getComponentFromStringName(...);
just define getComponentFromStringName
 
Is this list vague enough to coax people into using my framework?

**Features:**
Models (via sequelize)
Views (default via Marko)
Controllers
Routing
Sessions (via Redis)
Easy API via Annotations/ Class decorators
Built-in Error re-routing/ messaging
Simple API for making external requests
Very easy to make a RESTful JSON api
 
@CapricaSix unformatted 'code'. Get'em.
@ndugger if it has a sexy font, maybe.
 
comic sans?
 
Papyrus.
 
9:10 PM
ah, good idea
 
monospace for life
 
my resume is in monospace
 
GNU might consider hiring you for that, if they ever start "hiring" people
 
Work for Richard Stallman? no thanks.
so help you god it better be a free font.
and not that MIT BS.
 
I'm trying but it's not working, Can you see maybe I did something wrong? How can I remove attribute href if has children?
 
9:16 PM
without looking at your fiddle
 
crl
bs = bootstrap too :)
 
if (element.children.length > 0) element.removeAttribute('href')
 
@user4571629 this does not point ot the element you want
probably document.
basically replace $(this) with $('.pagenav a') (or better yet, make a variable with that value instead of re-evaluating it each time).
 
but this way it will select all of them
I want just those with the .next('.children').length
 
right. so do that and don't use this. IT's not what you think it is.
 
9:19 PM
just the one that has children
 
this is not at all related to your sidebar.
 
ok, i tried to use 'this' for that- $('.pagenav a')
 
@KendallFrey oh my god
 
start by defining the main elements you want. like:
var sidebar = $('pagenav');
 
$('.pagenav a').next('.children').removeAttr('href') after removing the if completely, however that will likely not do what you expect it to. .next() only looks at the next element; it doesn't look for the next element that matches the selector, it looks at the next element if and only if it matches the selector.
 
9:21 PM
but i did
.next('.children').length
that means it will select the next if has children, right/
 
right, all that does is see if it exists.
 
because of the .length
 
but then it does nothing with that selection
you would have to use the same code again to get back to that same element.
checking the length is pointless, because if no elements are selected it will silently do nothing anyway.
 
take a look
i'm doing what you're saying
 
@SterlingArcher XD
 
9:23 PM
but it remove from all of them
 
so you want to clear the href attribute on "contact", "sample page" but not training?
 
you left off the .next('.children') part.
 
correct
 
guys I have 1 day to become an expert with react
 
I see, you want to remove the element, only if it is followed by a .children element.
 
9:24 PM
@SterlingArcher I love it.
 
crl
@nick starts with the homepage
 
simple, $('.pagenav a').next('.children').prev().removeAttr(... jsfiddle.net/1vh7dfqy/3
 
thanks bruh
 
crl
s
 
@nick just remember the method "shouldComponentUpdate" and you'll be fine
 
9:25 PM
it will filter to only .pagenav a elements that are immediately followed by an element that matches .child. the if statement still isn't needed.
 
@nick No topic worth learning can be mastered in a day.
 
crl
@ndugger is it useful?
 
only if you care about performance.
 
@crl Without it, your app will be slow as shit
 
crl
seriously
 
9:25 PM
Nice
 
crl
hmm ok thanks for the tip
 
@KevinB That's working
 
@Luggage i just spent the last 30 hours becoming an angular expert
so I was close
 
@KevinB Thanks man
 
I'm sorry.
 
9:26 PM
yeah
 
crl
it's like angular but with more joice and js juice
 
very juicy
 
Everyone played with today's google doodle already?
 
looks static to me
 
beethoven's stuff?
 
9:29 PM
@AwalGarg It's still yesterday for most of the world.
 
crl
here too
 
I get a plain logo.
 
crl
aha Zirak got it
 
@Zirak yeah, you are all behind me, noobs
 
India gets something first? This is the worst type of discrimination.
 
9:30 PM
you're just like 14 hours closer to death than I am
 
I am 5.5 hours ahead of GMT :D
 
crl
go to google.co.in, it will work (na jk) oh it does:!
 
site unreachable
 
lol i see beethoven
 
Here it comes.. nope, lost connection again. :)
 
9:31 PM
masterful canvas animations
 
have fun wasting 5 minutes arranging stuff you don't care about
!!afk night
 
it's flash.
 
crl
boooh google
 
j/k it's an mp4 and a canvas.
i guess the mp4 is the intro and the canvas is some interactive portion.
 
crl
yeah just noticed
it needs speed: 0.5
 
9:33 PM
imgur.com/gallery/2qaXW91 clever son of a bitch
 
twas too good to be true
 
user1596138
Yay day #1 of vacation truck breaks down 2 miles into my 600 mile drive hahaha
 
the moonlight sonata inspired me to make a game one time
it didnt happen
but it was oh so beautiful
wtf I accidentally dragged a sheet off the screen and it's gone forever
 
9:47 PM
well now
 
@SterlingArcher I love that one.
 
That's a new one for me lol
Despite my time on imgur today, I have gotten a shit ton done today and this week in general
 
Here's a flashback:
 
@Trasiva anytime really
 
9:50 PM
Nailing this project i'm heading.
 
We've been out christmas shopping the last 2 days
 
@Loktar Then tonight, we take @Cereal to pound town.
 
oh lord
 
Duuude, you're getting a DELL!
 
9:52 PM
snorted hard
 
at least i was slightly relevant
 
@nick my god lol what the shit
 
@SterlingArcher Oh god damn it, I just spit my drink out.
@ndugger ? Lollipop on a drill?
 
9:55 PM
I don't even know
 
> because the car is so dirty nasty low
> each of these stickers adds 5 horsepower so ill let you do the math
 
@nick The moment he opened his mouth I wanted to punch him straight in his cum repository.
 
Why am I still watching this lol
 
lol he's great
 
The dude walking by fucking STARING.
 
crl
9:59 PM
!!define blinker
 
@crl blinker Anything that blinks, such as the turn signal of an automobile.
 
Except on BMWs*
 
they're an optional package on BMW's so folks like @ssube try to save money by not installing them
 
as nice as BMWs are, I'll never own one because of the moronity
 
I have gone down a dark road:
const megaBind = Function.prototype.bind.bind(Function.prototype.bind);
 
10:03 PM
I want to believe you, but your 100% certainty is incredibly worrying. — Sterling Archer 6 secs ago
 
@ndugger you think you are superior
 
what would make babel not add __esModule = true
or would make it do so
 
@nick yes, yes I do
 
@SterlingArcher
Anytime anyone says anything with 100% certainty, there's a 50% chance they're dead wrong. — Trasiva 41 secs ago
 
I'm 100% sure that Donald Trump is a proverbial poopface
 
10:08 PM
@ndugger The Trump is a wonderful man, and we should all be grateful if he should lead this planet to an Elysian paradise.
 
!!afk time to go home
 
goodbye friend
 
@ndugger Well at least he's as fit as God himself.
 
@KendallFrey ndugger is afk: time to go home
 
10:20 PM
@ndugger but what if you need a car that goes fast and won't get you laughed at?
 
@ssube ndugger is afk: time to go home
 
use ng-change instead of onchange and declare your function as $scope.myFunction = function() { ... } I don't think the DOM knows that myFunction exists, because it's delcared in an angular controller that is outside of it's scope. — Sterling Archer 7 secs ago
I'm not positive about this -- can somebody confirm?
 
@SterlingArcher Scope def looks bad.
 
say I have an array of bluebird Promises: var promArr = [p1, p2, p3]; if p1 rejects, is there a way to tell p2 and p3 to stop working?
 
@NathanJones start with Promise.all and dig into bluebird from there
all might even do that for you
 
10:32 PM
@ssube I am using Promise.all(), but it isn't doing that.
 
@NathanJones Promise.all(fooArray).catch(() => { fooArray.forEach(foo => foo.cancel()); })
perhaps?
 
@SterlingArcher shouldn't they just be using track by ?
 
@ssube I'll try that cancel() technique
 
@Codeman I haven't used track by, not sure what it does
!!google angular track by
 
10:44 PM
stackoverflow.com/questions/34323527/what-does-do-in-javascript/… man, somebody literally is instant -1 to every answer except 1
 
@NathanJones do you want them to be in parallel or just p3 after p2 after p1?
 
@FlorianMargaine parallel
 
ok, go on then :)
 
@FlorianMargaine do you know of a better way to cancel any in-flight promises when one fails?
forEach cancel seems like a hack
 
that's what I'd do too
 
10:48 PM
don't you actually want to cancel what's inside the promise, not necessarily the promise itself? the promise.all will already result in a reject, but if you're wanting to abort any outstanding ajax requests after a single failure, you'll need a way of getting back to the xhr.
 
@ssube oh hey, I'm playing with openstack lately, heat templates are fun :)
 
@KevinB you can listen to the cancel event from within your promise body, which should be enough to handle that.
 
Ah, that would indeed work.
 
Canceling the promise will fire an event within the promise, but also take it off the stack waiting to resolve.
@FlorianMargaine I haven't used those yet, although we use them a ton to spin up ephemeral environments for folks.
I've heard they're super cool, just define how many machines you want and the type in broad strokes.
 
specifying the whole network infrastructure in a yaml file and seeing the stack being created is nice
 
10:50 PM
We're trying to move towards having ephemeral build agents and environments, so every build gets a clean box and place to test.
 
although we're going to need some machinery on top of it, because the templates aren't very powerful
(e.g. no loop)
 
pruppets? :D
!!youtube check it out puppets
 
@ssube using something like cdebootstrap might make more sense
 
not quite, Cap, but close enough
 
10:51 PM
@SterlingArcher track by removes the need for updates in ng-repeat basically
 
@FlorianMargaine to create images for heat to spin up?
 
I think we just kickstart and image an actual machine, then in our userdata run yum update && puppet agent --test
 
spawning a full box just to run a build looks like overdoing it when all you need is a chroot for example
 
@FlorianMargaine eventually, yes, but for now, we need a clean local DB and Maven/Ivy caches :(
 
10:53 PM
 
we're probably going to spin up agents with a 2-4 hour timeout, so they get torn down nightly
 
and chroot doesn't give you that?
 
@FlorianMargaine chroot is harder and more complicated than a new box
 
plus our CI server (teamcity) has an openstack plugin, so it can store a number of images and spin up the one you need for each build
 
10:53 PM
I think you can run puppet agent in a chroot
 
so we define the agent features in puppet, the requirements in CI, and the CI server can hit nova and create boxes
 
I'm mostly saying this because spawning an instance is still much slower than creating a chroot
 
@ssube This is just...yikes.
 
chroots might work, but I'm not sure
rpmbuild loves its global state, as do ivy and maven, and until recently the agent had to bind a few ports
the first three are file-based, so they'd play nicely, but the mongo I'm not sure of
 
@ssube you might find some teamcity plugins for docker
 
10:56 PM
@FlorianMargaine containers are a project for next year, or ideally, never
 
(which is basically chroot + cgroup namespaces for processes)
 
oh, I'm familiar with docker
if we go containers, it will probably be openshift
which I believe is based on kubernetes, though maybe not anymore
 
I mean just on the build box
and kubernetes is a container manager, you can't really compare it with docker
 
containers on the agent will make for absurdly massive agents. Somebody decided to combine our services, so we now have one macroservice that takes 12GB of memory to run its unit tests.
 
10:59 PM
We need at least 8 agents active at a time, so that box would be 32 core/96GB, at least
it's awful :(
 
yeah, I guess spawning several small boxes might be better in your case
it's awful when one container is bringing down all the others
 
it only takes 2-3 minutes to spin and puppetize a new agent, so doing it in the morning and then running a build to prep caches ought to do the trick
 
if you don't have memory/cpu quotas it doesn't make sense to have a machine with many containers
 
we have more CPU than we can use, and recently, plenty of memory
 
11:01 PM
my whole tools stack is running 74 cores and 250GB, and nobody cares yet
 
a lot of that is the 4x16 build agents...
but that's a fight I've given up on with dev
 
we're working on the cloud (mostly AWS), so this kind of thing is not really an issue
anyway
off to bed
night
 
ever seen snow in the grand canyon ??
well you have now :D
 
wow
that is some great photoshop
:D
 
11:13 PM
apparently snow isn't that uncommon, but 6" is.
and this is what we are seeing
 
crl
blame that damn child
 
@ssube you don't need a car that goes fast; that's not a thing.
 
Hi all :D
everyone :P
What js notification plugin i should use?
 
crl
rlemon's
 
mine
 
11:18 PM
I will use toastr, thanks :)
:D
Awesome plugin ndugger! :D nickdugger.com/herald
 
HA!
 
@NiKoLaPrO I have no idea how stable it will be, but feel free to use it
 
this is awful... I just had to subscribe to a rowing membership online and the only way to pay (not phishing, I'm really sure about it) was to insert your card's credentials...
jeez
the site also seems really outtdated. I bet that there are a lot of ways to leak other people's credentials
 
@towc buying things online always consists of entering your credit card details... I'm confused about your confusion.
 
@ndugger yeah, but it's a completely untrusted site for me
if they did it via paypal or something I'd be happy with it
 
Meh; just keep careful watch on your statements
Who's fucking with stars?
 
but letting them handle every operation of the transaction? Also knowing that the site is extremely outdated?
@ndugger too many possible jokes could be made :P
XD and here is every previous vulnerability issue found britishrowing.org/CHANGELOG.txt
now I just need to check for issues fixed only for outdated versions of PHP and stuff that didn't meet a fix in newer versions and chances are it's a way in
right?
 

« first day (1887 days earlier)      last day (3065 days later) »