« first day (1752 days earlier)      last day (3182 days later) » 

9:00 PM
I think nick experienced early childhood trauma involving coffee cake
 
possibly
 
Nah, man, my mum's coffee cake is amazing
 
@user5186183 I was thinking it involved tumblr
his age fits
 
Guys, keep in mind that I've been gone from home for the past 3 years-ish
 
oh crap no I just ignored nick
halp
 
9:00 PM
So having coffee cake again is awesome
 
sorry nick
<3
 
:(
 
the last few minutes have borne witness to one of the quickest degenerations of conversation I've ever experienced
 
Can the this value inside a constructor be turned into a function anyhow?
 
whew, I fixed it
 
9:01 PM
i.e. make instances callable
 
@ŠimeVidas no
@ŠimeVidas explain better / example of what you think may have worked?
 
@ŠimeVidas simply return the function?
function myNewClass () {
    return function () {
        // callable as a() after "var a = new myNewClass()"
    };
}
 
@Purag Yes, but say, I would like to keep using this to refer to the instance.
function Foo() {
  var f = function () {};
  f.__proto__ = Foo.prototype;
  return f;
}
^ works
but I have to use f, not this, to refer to the instance.
 
ahhhh
it's commonplace to use self, isn't it?
 
9:04 PM
@ŠimeVidas you can't assign this to anything
 
req.files is undefined and I have no clue why.
You would expect such a simple thing to work.
 
function Foo () {
    var self = function () {};
    self.__proto__ = Foo.prototype;
    return self;
}
 
@towc What can be done to this? Anything?
apart from adding properties to it
 
you can only get it or put a property into it
 
9:07 PM
@ŠimeVidas anything, just not assign it
 
I remember seeing some ES6 code where this was passed to super() or something like that.
 
So I'm looking for a job.
 
@Zirak ftr, my mtime based cache makes a real difference. Ls an index directory goes from 20 seconds to 0.01 seconds.
 
What do you WANT to do to this?
 
@ŠimeVidas wait, why do you need the prototype attached to the function?
 
9:08 PM
@Shmiddty so is @SterlingArcher -- start a business together!
Also, @SterlingArcher worried about you, need an update on your job status
 
@Purag Have Foo instances be functions so that they can be invoked.
 
@SterlingArcher Do you use that name on freenode?
 
@FlorianMargaine wow, that's a huge improvement. It looks like the decent way forward, but so much uglier and more impure
 
@ŠimeVidas foo instances or constructors?
 
@Zirak once I have internet I'll push something
 
9:09 PM
Trying to make a new Foo instance without the new keyword?
without*
 
Like python callable instances?
 
@Luggage The instances. var foo = new Foo(), then foo()
 
ohh. odd.
but possible.
 
Not sure why you'd do it... Unless you have a good reason, you should do it in a more semantic fashion
 
function Foo() {
    return function() { ... };
}
Foo.prototype.bar = function() { ... };
var foo = new Foo();
foo.bar();
foo();
no.. then no prototype..
 
9:11 PM
@Zirak I went in the hallway to push... You can look at the most recent commits.
 
I agree with Nick. Don't do it unless you have agood reason. But you CAN. I just need to correct my example
 
Your life is weird
 
What's the reasoning behind wanting to instantiate without the 'new' keyword? I can't see a good use-case
 
you can return anything you want from a contrucor to replace this'
 
@Luggage I've posted the solution above.
 
9:12 PM
yea
 
@Zirak I'm in the hotel at the worst room of the hotel.
 
@FlorianMargaine Wait, you're on vacation? wtf are you doing talking to me?
Go away, have fun
 
No, for work
I'm alone.
 
oh, screw work.
 
Far away from my wife and Robin ;-(
 
9:14 PM
How's Robin doing?
healthy?
 
Robin?
 
Bigger and bigger meals
 
@ŠimeVidas So, why do you want it this way? I have a use, myself, but I'm curious.
 
brown eyes or blue eyes; DETAILS!!!
 
9:15 PM
@user5186183 Florian's sidekick (and child)
 
@Luggage Just exploring what is possible with the language :)
 
Pleaseeeee help with http://codepen.io/Feners4/pen/EjONEe!
My data is displaying incorrectly and I've tried everything...
 
oh, neat!
 
Any pointer would be greatly appreciated..
 
Well not everything, cause else it would be working probablyh
 
9:17 PM
@Zirak that said, I don't find it ugly to be based on the mtime of what the package manager uses
 
I think this is what you want @ŠimeVidas
function Foo () {
    this.hello = "world";

    var func = function () {
        console.log(this.hello);
    }.bind(this);
    func.__proto__ = this;

    return func;
};

var a = new Foo();
a();
console.log(a.hello);
 
@Purag I've found Object.assign(f, this);. Works ok.
(right before returning f)
 
@Zirak btw, I talked about pkgfs with some colleagues (that I really respect), and none of them found it useful :(
 
ah, es6. no wonder I don't know about it haha
 
Saying that the filesystem is a poor API
 
9:19 PM
so it's a nicer way of doing func.__proto__ = this
 
@FlorianMargaine Interesting. I've received mixer reactions, with some on the "but why would I use this" side. Did you show them some examples?
 
it doesn't have to be the best api, there is advantage in being a lowest common denominator api.
 
@FlorianMargaine Ah yes, there were some "well why not make a cross-platform program instead?"
 
@feners whats not displaying correctly? need more details
 
@Zirak yeah, the depth first deps thing intrigued them, but were not really convinced
 
 
@Purag It moves the own properties from this to f (so that I can use this in the constructor, and the stuff is copied to f at the end)
 
@Nick I love that site
so glad I have my audio off.
 
right. still make sure you use bind(this) if you need to use this in the returned function.
 
@Zirak I mentioned the cross distrib thing, but it was immediately answered that it couldn't be nice enough if you didn't normalize the package names across distribs
 
@Crazy for example, my user list never loads completely, just three or four randomly. Also there an issue with whitespace.
 
9:21 PM
@FlorianMargaine Seriously? That's the major concern?
 
someone here that knows something about cc0 licenses ?
 
@feners it loaded correctly for me, all users, weird
 
@Crazy hmmmm really?1 Thats strange, I cant get it to work properly on my mac..
 
Yeah, it was kinda dismissed quickly and I didn't push it. It's a debian shop and they don't care about this
 
oh I see, its randomly displaying some
 
it likely has to do with how fast the response comes back
Can you remove messages client side in this chat?
 
@ŠimeVidas I was porting github.com/sprache/Sprache to JS and was wanting an instance-is-also-a-function for that.
since that's how it works in c#
 
@Crazy what do you mean?
 
@FlorianMargaine Shame. It's one of the reasons I want to display pkgfs to the general public: Get feedback, maybe the fs really is a crappier API and we're missing something.
 
you can ignore a user, or go into the DOM inspector and delete the node
 
9:23 PM
@Nick Is there anyway to hide a specific message? I didn't see anyway besides dom.
 
but no, there is no "hide message" feature
 
@Crazy just right click, inspect, and delete it
 
k
 
The status quo today is definitely not good enough
 
that would be useful
You can propose it on meta
 
9:23 PM
@Crazy that would make sense..
 
They like the current status quo
But well, Debian shop, so they know dpkg/apt very well.
 
Tell them they're wrong
 
I have a few methods that I am calling async using Angulars $q service, but the method in my final .then() call is executing before everything is resolved. pastebin.com/GWBZcNRE
 
Apt-cache show/policy is more than enough for most of what they do
 
@feners you should probably collect all the data and then display it once the last one finishes, unless you have some need to dynamically update the list view
 
9:25 PM
In the pastebin above, processUserData is being executed before getContestsAsync is resolved. Anyone know why that might be? I am not used to this Async functionality yet.
 
@CodeWarrior make sure the copyXXXXToProcessedData functions are returning promises
 
@Zirak As we've seen, that offends people, which is a no-no
 
@Crazy but if you look at my javascript, I am collecting the data and then I display it..
 
Guten nacht, folks. Time to go home
 
@Luggage Ahh, that may very well be the problem.
 
9:26 PM
@Feners I see you doing it per api call?
 
@Crazy is there any chance that my issue is with the ng-repeat?
@Crazy aaaaaaaaahhhh
@Crazy yeah
 
So if you first json call finishes really fast, I think that may mess up the rest
but I'm not 100% on my angular
and when it redraws
 
@Crazy know of a way to prevent this?
 
@Zirak ftr, they are much better programmers/IT people than I am.
 
I think you want to map all the users and makes the calls and then when the map ends display the data?
 
9:28 PM
@FlorianMargaine With that attitude they will be.
 
So it kinda discouraged me a little bit
 
@Crazy yeah
 
@FlorianMargaine Think of it this way: You'll show 'em who was right.
 
@Luggage it's just not comparable when one has 4-5 years of experience and the others have 10-30 years
 
psh, i know people with double my experience that I can code circles around
 
9:29 PM
GUYS! I think we've all been ignoring a really important fact... There's someone in this room with the name of, "PerfectGohan"
 
@PerfectGohan
(hi)
 
They're the "10x programmers" kind though
 
now it's time to go home
 
@Nick I've been considering starting my own business.
 
@Shmiddty I was just about to go home... what kind of business?
 
9:31 PM
The knowledge gap between me and some of them is abysmal
 
A software shop to start, probably. But I've got a lot of ideas
 
Which is why I love working there btw.
 
@Shmiddty The only problem is that you might need funding in order to stay afloat while you develop whatever it may be
 
Well, just because they don't see an immediate value doesn't mean it doesn't have it's place.
 
Maybe consider going to a business incubator
 
9:32 PM
@Nick Yep. The problem is money
 
Yeah, I know. But still :-)
 
I think the potential is in using filesystem tools that were never meant for package management.
 
I think the most I can pull together on my own is ~$20k, but that would be everything to my name
 
Like grep? :P
 
er.. grep operates on single files, though, right?
 
9:33 PM
grep -r goes recursive
 
Trying to stay positive and not fall into a pit of despair... haha
 
@Shmiddty Do you currently work as a dev?
 
@Shmiddty whatever you do, good luck :) starting your own company can be very rewarding but also comes with a lot of work
 
@FlorianMargaine i keep trying to think of how to mix this with git.
 
@Crazy I'm currently out of employment. I've been doing web interface development for about 7 years now
 
9:35 PM
but that's more related to the rsync idea from the other day.
 
@Shmiddty ah, i gotcha
 
look at my code now: http://codepen.io/Feners4/pen/EjONEe
is this a better method?
 
!!afk
 
@Luggage I believe homebrew uses git to keep the local package cache up to date...but don't quote me on that
 
Hm... Yeah. It's an entire filesystem. And it's a representation of an existing state
 
9:36 PM
@feners no haha, you gave your calls even less time to complete actually
 
so you could make git commits representing each time you install/remove a package
 
@Crazy haha ughhh Im clueless on this..
 
@NathanJones yup. git + ruby
or git status to see what packages were changed since last time
 
hb's performance definitely indicates that it's in ruby
 
homebrrew works well and fast for me
 
9:38 PM
@Crazy how could I give it more time lol
 
@feners sec, trying to dust off my angular so I can help better
 
ok, that brew update was slow, but installing is usually fast.
 
can someone with firefox verify that this works for them? the header should be fixed
 
can we stop mozilla from making browsers and have them just maintain MDN? :)
 
@Crazy ok
 
9:46 PM
No, please, I like having a non corp-backed browser
 
i'll test it. what firefix version do you want to test with?
 
lol. mdn sure is a gem
 
@Luggage latest is fine. just need this to be cross-browser
thanks!
 
That said... Having a git pull installing the missing packages... I'm having some kind of nerdgasm.
 
9:47 PM
haha, firefox on browserstack crashed:
 
no one helps :(
 
@DemCodeLines ask again in an hour ;) if someone wants to help they absolutely will
 
@FlorianMargaine don't forget post-receive for remote administration
@Purag scroll bars :( snag.gy/NP9s9.jpg
use browserstack.com for testing. They might have a free trial.
 
@Luggage I'm thinking of a good clean way to pad the header correctly...
padding-right: 17px is right on the dot for chrome.
but doesn't work for edge which uses the narrow win10 scrollbar. =/
 
you shouldn't need to know scroll bar widths
 
9:52 PM
I can't think of a way to do it with just CSS.
and keep it cross-browser.
am I not thinking hard enough?
 
@feners I gotta go home and got busy so didn't have time to get it working. I'm sorry. You need to basically figure out how to make the data update when the last call finishes because currently its updating the data when 1 call finishes and going with whatever it has then I think. So sometimes you get a burst of requests, other times you get nothing
 
draw your own scrollbars
or not even that.. just live within the container. I'm not sure aht padding gets you
 
31
Q: CSS-Only Scrollable Table with fixed headers

Troy AlfordI have a solution by which I can create scrollable tables w/fixed header/footer using minor jQuery and CSS - but I am looking for a way to make this a CSS-only solution that is cross-browser compliant. To be clear, what I am seeking to do is use only a table tag (and it's valid sub-tags, colgrou...

this yet-unanswered question has a pretty easy solution with flexbox.
but the scrollbars are the only issue, and all it affects is the alignment.
 
ohhhh.. you are padding it so the scrollbars don't have to be on the header and it'll still align?
 
also...wow...where has browserstack been my whole life? too bad the free trial is only 30min though :(
 
9:58 PM
yea, ok..
so.. you can cheat and draw you own scrollbar that overlaps it.. like rocha.la/jQuery-slimScroll
 
i think only chrome and firefox have sophisticated enough scrollbar styling
 
I see examples online of adding a div to the dom, setting it's scroll and measuring to get the scrollbar width accurately in all browsers. kinda hacky.
 
yeah, the question asks for no javascript too
so while the extra scrollbar is ugly, it works
 
Project Euler got SQL Injected
https://projecteuler.net/news
 
.scroll thead tr::after {
    overflow-y: scroll;
    content: '';
    visibility: hidden;
}
almost..
 
10:06 PM
mmmm i see where you're going
only one :
oh, sweet
this totally works
man...i really should have thought of that
i'm losing my game
 
snag.gy/NWuoY.jpg Firefox 39, windows 7
 
mmmmmm
 
@Purag what are those single line comments?
in the css code Oo
 
heh. just garbage.
 
is that sass or something?
 
10:09 PM
no
 
@catgocat These guys need to hire a security expert
It isn't the first time they've been hacked.
 
I feel bad for them.. I really like the website
 
@Purag it increases the height of the header, unfortunately.
 
hold on
 
holding
 
10:12 PM
try height: 0? all we need is the width
 
yup. That does it.
 
yay! i'll check if it still works in edge
beautiful
 
now to test ie9
 
hah
you have it on browserstack?
 
yup. it's all sorts of fucked on ie9
 
10:17 PM
oh yeah, it's missing -ms-flex and all
hmm, is it even worth it?
 
well, it jsut has tall rows
othersise it's a normal table.
 
yea, one sec.
I included IE 6 and 8 just for giggles.
but jsfiddle doesn't even work on them :(
 
yeah i noticed hahaha
for ie11, one just needs to include the prefixed flexbox properties.
 
ohh. IE 10...
 
10:22 PM
i'll include that in my answer. i think I'm happy with Chrome, Firefox, and Edge though
 
if you can fix 10, and I think you can, you can make ie IE9+
just make it only apply display: block to TDs on ie11+ I think css has a way to do that.
 
23
Q: How to write a CSS hack for IE 11?

user2135651How can I hack or write css only for IE 11? I have a website that looks bad in IE 11.I just search here and there but didnt find any solution yet. Is there any css selector?

 
@Purag 24 minutes to go :D
 
is this a bounty? are you sharing the points with me?
 
no, but i'll credit you with the :after idea
 
10:27 PM
hehe, it's cool. just kidding
 
nah, credit where it's due. :)
 
like the person copying and pasting your answer will give a shit.
 
Hello
 
i'm ordering a burrito online and accidentally put "no source code" instead of "no sour cream"
 
0
A: CSS-Only Scrollable Table with fixed headers

PuragSurprised a solution using flexbox hasn't been posted yet. Here's my solution using display: flex and a basic use of :after (thanks to Luggage) to maintain the alignment even with the scrollbar padding the tbody a bit. This has been verified in Chrome 45, Firefox 39, and MS Edge. It can be modif...

 
10:32 PM
upvoted. Good answer! :)
 
@Purag Sorry to disagree
/cc @Luggage
 
Do go on
 
display: flex; will break the display table/row/cell :P
 
but we tested.
 
you made it a completely valid flexbox
you can achieve the same with divs
 
10:34 PM
semantics
often call for use of tables
tabulated data should be in a table, and often you have a lot of tabulated data. making it scrollable is excellent.
 
while we didn't go so far as to make it ie9 compatible, we could. and the reason that will work is the browsers will ignore diaply:flex and fall back the the display: it DID understand
 
mhmm
 
so flex somtimes, table others
 
Yeah i know -_-
 
just gotta fix the display: block on those tds
 
10:36 PM
yeah that's a killer.
 
Idk how i did that with simple bootstrap
but it held pretty nicely despite the element was fixed, it never broke the size bounds
 
position: absolute on the thead?
or fixed.. i always confuse them and have to check the docs
 
fixed, but then it loses its ability to be sized to the full table's width... =/
 
ohh.
well, anywho, i gotta go. cya
 
later! thanks for the help :)
 
10:40 PM
cya
 
@Luggage fixed
i actually solely used bootstraps .affix.fixed without the js
:P
 
Obligatory hourly call for help:
0
Q: MEAN stack file uploading app throwing unreadable property error

DemCodeLinesI am learning the MEAN stack and was trying to build a simple file upload app. However, I am continuously hitting errors and I may be heading into the wrong direction. My latest error is the following: <h1>Cannot read property &#39;file&#39; of undefined</h1> <h2></h2> <pre>TypeError: Cannot rea...

 
Hello, can someone please help me? stackoverflow.com/questions/31790302/…
 
10:58 PM
another existential question: I find out how to solve problems, I write code to do so and my knowledge of maths and physics is quite a lot above average, but I didn't learn any of this formally. Am I an engineer?
 
No, you're a product of the 21st century, and a child of the internet.
 
@Nick 15yo child of the internet usually means cocky ignorant gamer whose only person he sees is the pizza guy
 

« first day (1752 days earlier)      last day (3182 days later) »