« first day (2223 days earlier)      last day (2950 days later) » 

18:03
I used to keep some stuff like that up at my desk, lol.
how did it not get cannon?
I need to make a DB. I'm going to be tracking what I call resources. Each resource can have an indeterminate amount of attributes in the form of either a text input or a drop down box. I will have to do reporting based on these dynamic attributes.

The amount of resources should be minimal (<10-15) and the average amount of attributes per should be small as well (~<4). I was looking at using an EAV table, but wanted to make sure this was the best option for me. I'm using SQL Server 2016.
store json in mongo
Not allowed to use mongo
server.on('request', function(request, response) {
var body = [];
request.on('data', function(chunk) {
body.push(chunk);
})
});
Guys in above code, can we say that:
function(chunk) {
body.push(chunk);
}
is both - a callback and a closure?
@GiorgiMoniava Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@CapricaSix can I edit?
@SterlingArcher ^
18:15
Guys, here, gist.github.com/anonymous/6fd05f5fd9d39702ecc8aab82e2cfc82, can I say

`function(chunk) {
body.push(chunk);
}`

is both callback and a closure?
@GiorgiMoniava Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
lol
@SterlingArcher @SterlingArcher @SterlingArcher @SterlingArcher fumy-tech.com/gb/atomizers/158-dragan-ball HRGNNNGGNGNNGNG
For some reasons I can't make formatting work, if I get an answer, fine otherwise, will find it elsewhere.
@rlemon omg. Vaping has gone too far.
18:18
but has it?
that thing looks sweet af
vaping hasn't gone too far enough!
"too far enough" and "worse, or better?" are probably my favorite TV sound bites
login page is complete
10/10 on design skills.
seems no help is coming, ciao.
@GiorgiMoniava yes
I am being haunted by the ghost of separation of concerns.
18:26
separate your ghosts from your concerns over being haunted
you should be concerned and the ghosts should be responsible for moving teacups, etc
@rlemon Good news! They unplugged the sewer!
!!make it work or make it look good and work
@rlemon make it look good and work
😬 dammit
-34
Q: Can SO please stop spamming their users' Facebook with their ads?

Kuba OberI've just got an ad for SO Talent on my Facebook feed. This seems to be triggered or at least immediately following a visit to SO Podcast. It is yet another case of spamming people who already know about you and your features. Can it stop? It's exactly like the nonsensical ads for things I've al...

"Man discovers internet; yells at internet." — GEOCHET 2 hours ago
I've been debating casting the last delete vote on that Q all day
18:33
guys... does anyone know of a good way to add an entry animation to an entire component in React? I want to animate my layout in
"I'm simply against supporting ad platforms that fundamentally do a half-assed job", so.. stop using facebook. problem solved. — rlemon 38 secs ago
> FACEBOOK ADS ARE BAD, SO SHOULD DO SOMETHING ABOUT IT
.... the clear answer is stop using facebook
that guy needs adblock
Are you even remotely serious? SO is supposed to be better than the unwashed hordes who push irrelevant ads in our faces. I don't care that other dumbass vendors push their ads: they are dumbasses. What you are saying is that you don't mind SO leveling down to everybody else who distracts us every day. SO should be above that. — Kuba Ober 5 hours ago
reads like an angsty teenager
@Vap0r you don't need to be an ass
18:36
Facebook Ads, half-assed..... Well I never
@ssube I'm not backtracking on that. Sounds like someone on the spectrum.
1 message moved to Trash can
@Vap0r luckily, you don't need to. 😀 Just don't do it again.
the user shows an increasing lack of understanding about how internet advertising works.
@ssube Really? That's what struck a nerve?
calling people autistic because you don't agree with them is no bueno
and so what if someone is on the spectrum anyway , bit offensive innit ?
18:39
the only autism jokes that are acceptable involve vaccines
> got flu shot > am autistic 😬
@rlemon I thought vaccines were the joke?
that reminds me of an interesting Ars article from this morning
@rlemon i took your advice on the scrollreveal and implemented it , but it didn't execute the actual javascript ive got , priniciple was right but execution was not what i was after
I just didn't realize treating autism as a social pariah was so progressive. You guys are right!
18:40
@ndugger
apparently society gets more serious about the whole "this gender does that thing" business when plagues run rampant.
@rlemon im going crazy trying to figure out how to execute code when things come into the viewport .. i have posted a question .. stackoverflow.com/questions/40627759/…
why a different account?
pretty sure there's a jquery plugin for that
capable of filtering to elements that are visible in the current viewport
could of course do it yourself, but mightaswell see how they did it
how I've done it ->
measure the scrollTop + offsets of the elements I want to be triggers on dom load, then on scroll check my array of values against the current scroll position
debounce that ^
some scroll events are weird
18:43
old though
yea I didn't like that approach
it has to keep checking the DOM. vs calculating positions once
@rlemon He doesn't have the rep on this one question on (20 rep, right?).
yup
When i needed something like this i did it once at start too, it's the same logic you would use to make an element fixed only after you've scrolled a certain amount.
@rlemon i forgot my password then logged in then remembered it later
Technically, you're only supposed to have one account, right?
18:45
You can have multiple accounts, iirc.
@rlemon yes , im getting rid of the other one now
as long as you don't commit voting fraud
Ah, okay.
Ask mods to merge it
so you get all the posts on one acct
plenty of people have more than one, mostly because of bots
18:46
that ^^^ And ban evasion
^ is the major reason I think people make new accounts
@KevinB cool, will do that
@KevinB it's scrollspy basically
Bot accounts I feel are a different story, but yea, ban evasion isn't cool..
i looked at some other plugins , but can't get my head round it
just stupidity on my part
soz
18:49
If a client is having problems dealing with <ns:Field xsi:nil="true"/> fields, but others aren't, should i stop responding nillable fields or they should get a way of dealing with it ?
can someone help me answer my question ?
im ost
lost
@user3504751 Link me, ill check
hmm.... are you doing this just for performance reasons, so that you don't have 50 spinners or whatever going at once?
(´ãƒ»Ï‰ãƒ»`)
18:56
it seems... like you'd need a lot more than simply knowing whether or not it is visible, we need to know whether you want each to start over when it becomes visible, always be running but just not animate whne not visible, etc,
@KevinB yeah its basically so that the spinners get seen as the user scrolls down the page rather than them all loading at once, . currently they get to see the top of the page spinners but not the lower down ones
are these just loading spinners?
@KevinB only visible then run basically
I kinda feel like this might be the wrong tool for the job, but i'm not even sure what "the job" is at this point
@KevinB they are donut charts basically
18:58
so when ou scroll it into view, the chart animates to it's end position and stops, and doesn't animate again.
@KevinB so the function animates the mini charts and there are about 40 of them , you scrol down the page but the ones you scroll to get to dont animate , its only a small thing but i nice touch
@KevinB exactly , only perform it once , but only if in the viewport basically
yeah, so you'll want to treat it as if you were trying to change the display value on each when they became visible.
@KevinB if you say so sir , makes sense
jsfiddle.net/m5cxe7oy you can get a lot more complex and efficient
19:00
Do like rlemon suggested, up front get their position, then as you scroll start the ones that are above that position. ^^
but this should give you an idea
@KarmaDoe that is for css element , this is a javascript function
But couldn't you bind it to the function instead of the css ?
Im asking out of curiosity at this point
what, bind to function instead of css? you can't bind to css, i'm confused
I can't really explain myself
19:02
css doesn't get involved at all in this instance and since the highlighted code is the entire animation in question i thought it best to ask about this before ripping the whole thing out , making a css version and then binding some sort of css scroll based event
Karma is explaining that all you need to know is when to trigger something
ah you mean, instead of changing css, do other stuff. yeah.
the example triggers a css change.
you can trigger w/e you want
no css is used
Thanks
19:02
so its literally just the posted code
12 secs ago, by rlemon
you can trigger w/e you want
it was an example
that just so happened to change css on scroll reveal. you can do whatever
when the webpage loads that code runs correctly, i just want to encapsulate the javascript in question into some sort of "only run this when the class associated with it becomes visible"
"you can do whatever" .... i wish i could but im a moron when it comes to javascript hah
some code triggers the animations.
er, the "javascript"
move that
They want to destroy Vegeta!
The planet, my son or me ?
Yes.
19:06
basically run this but only in the viewport where the classes involved -- .circleStatsItemBox .whiteCircle .circleStat
function circle_progess() {

    var divElement = $('div'); //log all div elements

    if (retina()) {

        $(".whiteCircle").knob({
            'min':0,
            'max':100,
            'readOnly': true,
            'width': 240,
            'height': 240,
            'bgColor': 'rgba(255,255,255,0.5)',
            'fgColor': 'rgba(255,255,255,0.9)',
            'dynamicDraw': true,
            'thickness': 0.2,
            'tickColorizeValues': true
        });

        $(".circleStat").css('zoom',0.5);
so,,, if .circleStatsItemBox .whiteCircle .circleStat visibleInViewport=true, run circle_progress()
loop over .circleStatsItemBox creating a map of element to scroll position, then on each scroll look for elements that match the scroll position. for those, initialize them with the plugin.
all the elements have the same class name
doesn't matter
actually makes it easier
can you show an example ?
I already have...
19:12
i got rid of the css and tried to do it with just the javascript but failed
13 mins ago, by rlemon
https://jsfiddle.net/m5cxe7oy/ you can get a lot more complex and efficient
yeah that was the one i tried to edit
don't edit it, read what it does, think about it, implement something similar that works for you
its incredibly similar
i have classes
@rlemon lol reading and thinking.. peasant
19:16
im just trying to figure out how to combine that code and the current code together
i am a peasant when it comes to this lol
somwhere here i need to drop my function in correct ? if (callNow) func.apply(context, args);
};
};
no
debounce isn't what you're looking at there
const elements = document.querySelectorAll('.spy'); and change this .spy to my classes
no
that demo isn't meant to be copied.
it doesn't actually work well, but gets to the general idea
i can't write javascript
then why are you tasked with writing it?
19:20
because i believe what i am trying to do can be done , i was unsure if i could do it ,
now i know :(
but you're not really trying that hard
you're getting in your own way by trying to find a pre-fabricated solution
learn some new js concepts while writing it yourself. win/win
i thought that might be the possibility based on how simple my thought is
Start from scratch and make something that triggers alerts when scrolling past anchor points
I've seen a lot of fresh out of college devs with portfolios that had charts that worked like you're asking for
19:24
I just wish someone in here wanted to help do most of the front end work with robogist store
html/css sucks
use JSX instead? /unhelpful
😛
@rlemon frontend anything sucks
nahh, just stupid shit like the profile pages, dashboard, etc.
If you teach me (or give me some docs to read) i could try doing it
19:25
I wish my font had emojis
I can install a font with dark theme
just don't know which one
Calibri light?
Karla!
Even better, comic sans!
19:27
@rlemon let us pick a google font?
I'd go with Roboto or Open Sans, personally
serifs are for chumps
@rlemon you're making a store in robogist?
but do those have emoji support?
yes
19:28
@bitten robogist.rlemon.ca
jquery.inview
:)
figured out how I can install robogists directly from a webpage
@rlemon no and no
open sans emoji on github
@rlemon oh cool. tbh i would just throw bootstrap on there, maybe compile/customise it so the colours are different, and then you're just writing html
19:29
I'll probably bake that in
@bitten it is bootstrap....
😬
i hadn't actually looked at it yet >.>
lol
so it is
it looks good already?
@rlemon do you know enough about the emojis to put them in a span with its own font or something?
by "know enough," I mean when you're parsing them and inserting the characters
the font
19:32
I was parsing them in the dom, but it was laggy af in certain situations
so now I just parse the text input area
the reason it was laggy is because of how I have the data structured. I can/will fix that
I'm gonna make a robogist script to install the font now and see if it helps
Anyone have a good idea of something I can make to try to learn typescript? a game or something text based? :-)
uh, write a text adventure?
in fact, if you want to use psuedo-Markovian templates for the text and blessed for the UI, I have a whole pile of code doing those things
(text adventure being step 1 in my 4-ish step game plan)
Hmmm.
Maybe?
write a text adventure using markov chains to generate semi-random sentences and make it all more dynamic
I am playing around with TypeScript and I want to make something with it.
19:37
blessed for output, yaml (js-yaml) for input
all well supported with typedefs and easy to use
hmmm
good god, this font is terrible
💰
but the emoji support is nice
@ssube got RoboGist installed?
I do not
😬
id: b24f04741ce6b4de02190713b5d9b835
matches: ^https?:\/\/chat\.stackoverflow\.com\/rooms\/\d+
installs Open Sans Emoji on load
I'm assuming every emoji I can't see is you flipping me off :P
19:41
🖕
I keep trying to use dashes and not underscores
oh god, that font is awful
I think it's too small
what emojis couldn't you see before?
couldn't see the sad face at all (box)
and the money bag showed up as a snowman...
😬
🙃
^ box for me
that's without your gist
19:43
ohh snap. not everything gets the font. I forgot !important;
I believe it uses whatever Verdana ships with Win7 on my work laptop
there we go
oh, it was a money bag the whole time, it just looks like a snowman
I think looking at this font is more painful than not seeing the emojis
agreed
I'm starting to suspect the font doesn't have cleartype hinting
the edges look like naive AA
19:45
god I fucking love robogist. everything is so easy to just demo and ditch
huh, I never know about document.images and document.links
those are some crazy broad DOM methods
document.images is fun
document.links has some caveats iirc
did you look at the example gist?
yep
I suppose at this point they're both just sugar for querySelectAll
they're OLD dude
like iestillmattered old
lol yeah, MDN says: "Internet Explorer: (yes)"
19:50
lool
only other place I've seen that was for <body>
nothing has full IE support
does if IE invented it
😛
i hate how there's so many missing emoji's on my chrome, what can i do to fix that
just get a bunch of square boxes
you need a better font, which lemon is trying to find
ohh I gave up on that
my first and only font choice was a bust
I feel like I'm missing so many things in life by working in an office
I just realized that most people in here probably don't know what it's like to build a snow fort.
things like being knocked out of a truck by a chunk of ice...
@KendallFrey sucks to be them, in their wonderful snow-less nation-states
o/
OH MY GOD VERIZON ANSWER THE PHONE
19:56
snow forts? we built forts out in the woods on the side of ravines
swear on me mum
I need to start going back to shows so I can meet friends who will do stupid shit like build ravine forts
this font is 3.5mb
😒
@KendallFrey makes me want to be 10 again to be honest
I loved winter back then
@GNi33 with enough alcohol, you can be anything
19:58
problem with it though was the best time of year weather wise is also the worst time of year to be wandering through the woods
Alcohol doesn't do the trick anymore
@ssube sober?
@KendallFrey or have it collapse on you
@GNi33 well, as your lawyer, I suggest you find something that does
30 minute phone call. 29.5 minutes on hold. fucking hell
!!afk verizon
19:59
@KendallFrey if you wanna be
Does anyone happen to know what the "term" is for when you assign the value of a instance variable to local variable?

« first day (2223 days earlier)      last day (2950 days later) »