« first day (1880 days earlier)      last day (3084 days later) » 

5:00 PM
@Luggage okay.. neither are correct JSON for two name/value pairs?
 
crl
wat?
 
@Luggage I felt a disturbance in the Force, as though a thousand developers screamed in anguish as one.
 
var someJSON = '{ "Direction": "up", "CounterTitle": "accidentFreeDays" }';
that's a valid string containing json..
is that what you want?
 
yes
so how would that be build in C#? retString = "Direction: " + _direction + ", CounterTitle: " + _counterTitle;
 
drag.php:26 Uncaught TypeError: Cannot read property 'addEventListener' of null
 
Why..
 
in c#, I'd use Newtonsoft JSON.net to serialize
 
ok, will do
 
otherwise, you need to include the double quites and escape them
 
right
ty
 
5:02 PM
@brata Why don't you show us the code instead of just an error?
 
var the_div = document.getElementById('test_div');
the_div.addEventListener('click', function(){
console.log("test");
});
So.. thats the code
There is nothing wrong with it .. I think
 
It's not finding test_div.
 
yeh..
But why?
 
@AwalGarg what about it?
 
You made sure the div in question has that ID?
 
5:04 PM
It's not dynamically created
 
@ssube just thought you'd find it interesting...
 
Toss a fiddle together, give us something to play with and see?
 
Format your code please!
 
stop with the stars, please.
 
@AwalGarg they're a good set of rules, for sure
 
5:05 PM
@brata Works fine for me.
Did you bother to wrap it in a document.ready()?
 
No.. I didn't. I will try.
THis also does not work: var the_div = document.getElementById('test_div');
the_div.onclick = function()
{
alert('hi');
}
I will wrap it in document. ready okay
 
crl
who's the serial starrer?
 
they won't answer
 
@Luggage javascript/chrome debugger shows this now Object {d: ""Direction": "up", "CounterTitle": "accidentFreeDays""}
 
Also, start formatting your code if you're going to put it in here.
 
5:10 PM
Allright... allright...
Where are you from by the way
 
@Luggage i still feel there is an extra quote
 
Not really sure that's relevant to this conversation, but the US.
@JoJo I thought there was too, but then I realized it's all wrapped in the d object.
 
what's the raw string look like?
 
blogs.windows.com/windowsexperience/2015/12/09/… oh boy, cortana for iOS and Android.
 
""Direction": "up", "CounterTitle": "accidentFreeDays""
 
5:12 PM
No, that's not relevant, but I'm always asking that question.. for some reason
bt-mail.sk/drag.php -> here is the website.. with javascript not working
 
when I do var dataObj = JSON.parse(counterData.d) I get Unexpected Token :
 
@JoJo you need {} around tht to be an object
 
I see..
 
show me one complete json string, not c# code or what the browser thinks it parsed
 
@brata It's still not loading it, that's why.
 
5:15 PM
What's not loading what?
What are we talking about
html, not loading javascript?
 
<script type = 'text/javascript'>
  	function loadDiv() {
      var the_div = document.getElementById('test_div');
      the_div.onclick = function(){
          alert('hi');
      }
	}
	window.onload = loadDiv();
</script>
That should force your listener to load using vanilla JS.
 
Updated, still does not work
Something must be wrong with html
 
@Trasiva why?
 
Uj, ty si čech?
 
why would you need to slave it to onload?
 
5:21 PM
@brata Your html isn't updated. I just refreshed the page, and the source is the same.
 
weird
 
onclick
 
Oh, nevermind.
 
No it's not
 
My ctrl wasn't working.
 
5:22 PM
onclick
 
onload = func**()**
 
I refresh with F5..
 
@AwalGarg :P also that
 
onlick
 
haha
 
5:23 PM
I've made that typo many times
 
I've always used the parenth, it works. >.>
 
@brata it work now?
 
Uncaught TypeError: Cannot set property 'onclick' of null
 
(•~•)
 
5:27 PM
Any clues why it refuses to work
 
@brata Sounds like it doesn't exist when the js runs. Try something l ike window.addEventListener('load', loadDiv);
/me heads to meeting
 
@im1dermike I just skipped over the getter function entirely. No need for it.
 
Is there something wrong, with the code or what
 
yes. There is something wrong, thats why it doesn't work.
 
@NathanJones Awake now, reading through. Why are you nesting .then?
 
5:29 PM
Allright...... GOodbye
Thanks for help
 
@Loktar I'm glad I'm not completely crazy, 'cause all the stuff I was giving him worked on my end.
Is Google Music not working for anyone else?
 
@NathanJones .do is really helpful here as well to tap into what's really going through the pipeline
 
Working for me
 
@SomeKittens well, maybe I explained that incorrectly. The .thens aren't nested, but there are multiple Promises getting settled in a single transf function. I think I fixed that problem by passing all of the Promises into Observable.fromPromise
 
oh yeah, you need to do that, otherwise it'll just pass the promise along, instead of the value the promise resolves to.
 
5:35 PM
anyone here fond of using bootstrap to layout their applications, structurally?
ie. using their grid system.
?
 
you prefer using that?
 
@SomeKittens I did have a version that returned resolved data instead of the promise, but for some reason it would still call flatMap twice for everything
 
seems to me like it get's more in the way of things
 
5:36 PM
nah
 
@NathanJones Check it with .do before the flatmap
 
-_-
very deep convo
 
@Cereal I had to restart my DNS. Thanks Windows for being awesome.
 
yup
No but seriously
 
lol
 
5:37 PM
Bootstrap itself is pretty minimalistic compared to most
 
I disgree.
things like pure.css are way lighter
 
I love is responsive grid nature, with stylish simple stuff
Well yeah, that's why I said most :P
 
i keep finding myself fighting their damned grid system.
 
also it comes with jQuery baggage.
 
Plus iirc you can pick and choose what features you want
 
5:38 PM
Now.. I use and like bootstrap, but I wouldn't call it 'light'.
yes, that part is nice
 
feel like i'm doing things the "wrong way" or, "not the way bootstrap gs intended"
 
yeah, but in bootstraps case, jQuery I think is worth it. If you're doing bootstrap things, you'll most likely need UI stuffs
 
crl
430kb of css to be exact, 15kb of js
 
meh. it's fine since jQuery is likely involved in most site anyway..
 
crl
I just have ui libs with dropdowns, modals.. that take forever to open, I don't care of their animations, 0s animations are the best
 
5:42 PM
but overkill when you only need to add and remove .active to use tabs, and other simple scenarios
I end up having those things data-bound and don't use the bootstrap code for most things
 
sorry, should've mentioned bootstrap's grid system (or any grid system for that matter).
 
crl
I'll try to flexbox ^, if I can convince my boss, don't want their shitty col-12 system
 
flexbox only if you don't need to support onlder than IE11 (or ie 10 if you are careful)
 
personally, never used grid systems. preferred having max control by targeting strucutral elements through css and modding their vals.
 
5:45 PM
the day I can use flexbox with reckless abandon will be a happy day.
 
@KingMob That exploded.
 
"oh, you want that changed, drastically," easy change. i know how everything's styled.
 
@Trasiva Yes, just a bit!
 
then don't use it if it doesn't work for you?
the grid system is a simple way to make a reponsive site, but it can break down if you get too fancy.
 
That would be awkward if Trump won president and wasn't allowed in GB
Queue: World War Tea
 
5:46 PM
@Luggage that's the thing. it's in most projects i come across today.
"oh, we use bootstrap, yes"
 
then i guess you need to get used to it. :)
 
doesn't mean you have to use EVERY DAMN FEATURE
 
@SterlingArcher if somebody sets a precedent for banning him, then he'll never make it to president
 
@KingMob I'm in the US. Can I still sign that petition?
 
@Luggage i know how it works. i can work with it. though, i do not prefer to work with some of it's components.
that is problemo.
thanks for hearing me out
all
 
5:48 PM
how do you feel about foundation?
 
help me out. are my assertions well founded or, am i being a bootstrap GS bigot?
 
@Luggage Only if you're a UK citizen.
 
meh... i don't like everything about bootstrap either, but i think it does more good than harm if not abused, too much. the averae bootstrap site i see still has nicer more compatible css than what was previously common
 
bootstrap's grid system is pretty well written. If you're running into trouble with it, you're using it wrong.
 
5:50 PM
i agree, though some other grid systems are more flexible
 
the other widgets are fairly good as well, better than the jQ alternatives
 
@ssube see, this is what i was expecting. elaborate a bit ...
 
grids aren't supposed to be flexible. If you're doing something clever with them, you should move it outside of the grid.
 
@ssube don't even bring up the pile of shit that is jquery-ui :)
 
@ssube figured as much.
 
5:51 PM
the grid is for content that fits into a grid
 
or "i want this to be a sidebar on large screens, and a top bar on small screens"
 
@Luggage that's in bootstrap, iirc
 
@ssube that's my argument for not using it, especially on large scale projects (that have complex layouts).
 
@xandercoded complex layouts tend to be poor UX
if you have a good, clean design, chances are it will fit into a grid
 
yeah, well. that's not under my control
 
5:52 PM
can you provide a screenshot of a layout that doesn't work in the grid? we'll be gentle
 
bootstrap hate tends to be a symptom of other problems, most often poor UI design
 
hah, wish i could
 
so fire your designers and "information architects" and get one that will give you a simple app layout
 
also you can nest your own layout inside a grid or the other waty around. just use it for the parts that need to re-arrange based on screen size
use that tool when it makes sense and not when it doesn't
 
@ssube hah, yeah.
 
5:56 PM
If i was starting from scratch today, I might choose foundation, or pure, or just grab a stand-alone grid system css and add to it.
but I don't regret bootstrap
 
bootstrap still has an edge over the others by being recognized by other libs
 
@Luggage i'm re-writing an app of mine. redoing everything.
thinking i might use foundation for css.
and github.com/Raynos/mercury for the fe js
 
yea.. controls that have a bootstrap compatible style are nice.
and wrapbootstrap.com for a quick start on styling.
 
i like the idea of swapping out micro-components at a whim.
 
5:58 PM
@xandercoded then use react or something
 
well now. just strolled through explosms depressing comic week
That was indeed depressing
 
@ssube yep
 
interesting
 
keep going
keep jumping and going left forever
there's good stuff out there
 
crl
@ssube for static data
if you want to add a column (with drag-n-drop on a CMS)
 
6:09 PM
@crl it works just fine for dynamic stuff
 
crl
really? I have 4 columns and want a 5th, what classes do I put?
flexbox -> don't even have to update others
 
if you have a table with dynamic columns, you're not using a grid
you have a dynamic table, use a table widget
the columns in the grid are simply suggestions
 
crl
(I'm doing a CMS where users organize their content) BT grids would be really hard to use
 
@SterlingArcher It's "cue" goddamnit
 
@ShotgunNinja either one works there
you can add it to the queue or you can immediately cue it
@crl that doesn't make much sense. If they're adding a new column, then you just... add a new column element.
 
crl
6:13 PM
also good luck having 5 equal width columns with their system
 
that's because it's a 12 column system
l2countbro
 
crl
..
 
@ssube too much going on the right side, but I cleared left
 
crl
but bootstrap is good for everything else though
 
Good morning, roomies
 
6:16 PM
@crl +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1
 
can anyone link me to that 3d animation with doritos in space floating in a circle?
 
This is how I brush my teeth.
 
Well now
That's one way
 
that's how i write my css
 
6:20 PM
@BenFortune I'm still confused as fuck what's going on there.
 
@Trasiva Brushing his teeth with a firework, what's not to get?
 
@BenFortune Well, the why for starters.
 
nothing stopping you from using a one-off 5 column layout on some page, though. I use a 7 column layout for one part of my app: gist.github.com/luggage66/5cccf5f75ce9e96effba
 
> You have $10,000,000 USD, but you can only buy things that start with the first letter of your name. What do you buy?
 
@Trasiva sparkly clean
 
6:21 PM
> Jrugs
lmao
 
@SterlingArcher Bitches
 
@BenFortune Oh...fuck. I just got it.
I'm a god damn moron.
 
@BenFortune Good thing he remembered his goggles
 
@KendallFrey Safety first
 
@SterlingArcher dammit
 
crl
6:22 PM
@Luggage yes doing your own way, that's what the way to go
that or flexbox
 
I just through that Jrugs was clever
lol
 
well, i use bootstraps grid, too.
 
@Trasiva Seriously though, I have no fucking clue
 
and flexbox on one page that is only used by chrome users..
 
What is jrugs?
 
6:22 PM
There's no way he didn't have 3rd degree burns after that
 
@BenFortune I don't feel so dumb then, haha.
 
The top comment xD
 
why is meteor load order so irritating? :|
 
can an es6 method accept parameters?
 
@SterlingArcher I think they banned slavery
 
6:23 PM
> Man I'm sitting here wasting my time and this guy is out there doing real science. Test complete. Result confirmed. Fireworks do taste worse after brushing your teeth.
 
Jesus nick
 
lolololol
 
@ndugger I'm choking on my water, asshole.
 
you're missing an important comma
 
A water asshole doesn't seem too bad
 
6:24 PM
That is indeed quite the important comma
 
Good point.
Fixed.
Now if I can get my throat to quit bubbling, that'd be great.
 
@Cereal It would be terrible. Water has no clenching power, it would just flow out of the way
brb unclenching
 
Please, for the love of god
Lets not talk about the physics, surface tension, etc of water coming out of asses
 
@SterlingArcher Tub girl demonstrated it quite well I thought.
 
@KendallFrey Which wouldn't be too bad. You'd never have an uncomfortable poop
 
6:26 PM
!!no
oh god dammit
 
Unless it came out at inconvenient times
 
I give up
 
tub girl
 
@Trasiva Fucking lol
 
Whole new meaning to the term 'Ass Blaster'.
 
6:27 PM
Is that what happens to blastoise if his pipes are clogged?
 
@ndugger found it
> De_Stekke 9163 points 3 hours agox6
If you lived 150 years ago however...
> As a black man I shouldn't be laughing this hard
This thread is gold
 
@SterlingArcher What thread is this?
 
Fun fact: Africans were making slaves of Asians a long time ago
@SterlingArcher lol
> Ketamine, Kool-aid, Koenigsegg
> Gonna be one hell of a party
> I keep saying "Jrugs" and "Drugs" out loud trying to find a difference between them. I can't, and everyone else at the bus stop is staring now.
"drugs... drugs... drugs... drugs..."
 
6:33 PM
LOL
 
> nubile bitches
good god
 
What's it called when you don't specify the arguments of a function, but instead unfold the arguments object?
 
Is there even a name for it?
 
varargs?
 
Other than some sort of destructuring
 
6:44 PM
[].slice.call(arguments) isn't working with es6 :|
 
Array.from(arguments)
 
@corvid Array.from(arguments)
 
Ninja'd
!!afk shut up kendall
 
Awesome, thanks y'all
 
@SterlingArcher What if I actually did shut up, forever?
You'd feel guilty
 
6:49 PM
@KendallFrey Your head would explode from the pressure.
 
wtf are you talking about
 
crl
Array.from, but I guess it makes a loop, should check the source
 
@crl Eh?
s/loop/array
 
@KendallFrey would be dismay'd yes
 
crl
I mean maybe it has to iterate the thing in argument to construct the array, or maybe it's magic, but checking ES6 sources is not that easy
 
6:53 PM
@crl There's a polyfill on MDN
 
crl
the polyfill necessarily loop though
 
Yep, I'd imagine the native one does too.
 
crl
checking v8
 
1
Q: How would I perform a multi-join query in Bookshelf.js?

DemCodeLinesBasically, I have two tables: User and user_connections User: id | email 1 | name@domain.com 2 | name1@domain.com user_connections: user_id | key 1 | test1 1 | test2 2 | test3 Basically, I need to construct a query that, given the email, pulls a list of connections associated with tha...

 
no
 
http://www.commitstrip.com/en/2015/12/09/this-language-sucks/
CommitStrip
This language sucks
CommitStrip
1449687407
 

« first day (1880 days earlier)      last day (3084 days later) »