« first day (2813 days earlier)      last day (2357 days later) » 

16:00
i mean... down here, mobile service isn't good enough for video unless you happen to be in range of a wifi network you can connect to
You poor poor person @KevinB.
Holy crap it's hard to find a decent js charting library. Every one seems to have something glaringly wrong with it.
i mean... maybe the problem isn't the charting library
@Jhawins there are already solutions for it?
look to google's whom has created a copy of a video that is being supported by smartphones (for youtube app)
i recall that they only create that copy if the video got requested from that app. If there is already a file present, then they just transmit it
netflix has the same approach AFAIK
@KevinB you mean .... are you meaning something now?
16:33
@Jhawins if mobile projectors become commonplace, perhaps
user1596138
@KarelG They're making portrait content.
user1596138
@Shmiddty No the point is that you will want to watch all movies and TV in portrait mode lol
user1596138
They have a sideways TV in the office
icky
user1596138
That way you can only see 1 character at a time lmfao
user1596138
16:34
Yea it jus does not work.... We use black bars on movies already to get more horizontal real estate
I guess we'll need to change our eyes to be like this:
O
O
user1596138
That's probably phase 2
I mean, I wouldn't mind a third eye
uhm .. why not crop it with respect to the ratio and show bars at the top/bottom?
@KarelG so you've got a bunch of wasted space... awesome user experience
16:35
even then ... who the heck watches tv in portrait mode?
@Shmiddty movie projectors works by that way :|
did not disturb me
user1596138
@Shmiddty I would understand
user1596138
Meh not sure how to make third eye blind pun
 x
o o
16:48
that is a good response to the above feed
you're like the linus to the xkcd guy
this is so meta
I read a LOT of Peanuts as a kid.
17:14
@towc his name is randall munroe iirc
I love you guys ;_;
There is an object ZoneId that represents a time zone ID. But I want to put a wrapper around it so that I can use it in a map (thus needs a comparable). is ComparableZoneId good or should I take ZoneIdWrapper?
sorry for using java stuff here but need to think a useful name :|
@corvid *pats your shoulder*
someday I will learn how to javascript
17:24
somehow
somewhere
over the rainbow
under the sea
bluebirds fly
17:35
why oh why can't I
wait im a dum bird of course i can
I see trees of green
I see trees of weeds
I see the tiptoeing water
I see dead people
let's get down to business
17:39
I see grave robbers
I see the sea while drinking Hi-C
I C hi-sea while drinking the see
I see a Hi-Fi while drinking the tea
I hear the WiFi screaming at me
3
17:54
I hear the screaming of Rebecca - Friday.
Had a date last night that went well. She's into a lot of the things that I am, and is pretty artsy, which is a huge plus for me
Will this by my enigmatic high day
@ShrekOverflow fear the mighty Wi-Fi. It is almost everywhere!
except here
18:01
there's wi-fi in hell
there's wifi in things you can't tell
like xbox one controllers
like washing machines, toys, silverware and crockery.
cockery
is nugger the new towc
did you ask her for her email
18:03
NDugger is the OG towc
He never used to talk about his personal life
For all I knew he was a bot
no no0 i was talking about the trolling part
?
he's always done that
@ndugger NOICE!
a green troll that talks about a gray "creepy" face troll?
that's enough to be trolled, I'd say
18:08
ur a trol
@ShrekOverflow hey, I heard that
nobody can outtowc me
or towc me out
towc me out to the ball game
ahoy
btw, I think today marks 1yr of not cutting my hair. AMA
why
oh wait, I just did that too, but I cut it at the year mark
18:12
I really want to get a new haircut. I've been having trouble understanding people, and only yesterday I realized it might be because my ears are covered by hair
that must be hairy
towc's ears are hairy
gimp it or didn't happen
brutal
naming issue: I currently have a mongoose model named ItemType, which has a bunch of instances that point to Item
I want it to be centric to the container though. What's the naming convention?
Item and ItemInstance?
that sounds really longwinded and bad
user1596138
!!> 'ItemInstance'.length
@Jhawins 12
user1596138
This is long-winded?
user1596138
It is 2 words
18:22
ItemType contains information like the item name, description, provider, while Item currently contains the location of a specific item of that type, and its price
user1596138
@towc I think the naming convention is item, not ItemInstance, constructors should be uppercased, instances should be camel
it's a mongoose model
by convention they're all pascal
user1596138
An instance of Item is item
@ndugger jesus christ that's horrifying
and they're also both constructors
user1596138
18:23
Meh
Meth
user1596138
@towc ItemInstance is a constructor??
@Jhawins it's a model for itemInstances
user1596138
I'm out
user1596138
18:24
I'm the one who doesn't understand what's being said rn
ItemType {
  name,
  description,
  instances: [ItemInstance]
}

ItemInstance {
  location,
  price
}
code
by [ItemInstance] what you really mean is [ItemRef] right?
well, ref to the ItemInstance, yeah
the rest of the syntax is also wrong, but easily understandable by Mr Hawins who doesn't seem to be familiar with mongoose, but can still help
you're bad at dba
Right. so if you used the model to get a single document, the correct param name would be itemInstance, not ItemInstance
18:26
ItemType and Item(/Instance) are different models
but as far ast he actual name of what you are describing..
wtf are you describing
lol
what does "instance" mean to you in this context
what does "item" mean
to me it sounds like you are describing item locations
this might be more confusing, but bear with me: imagine an amazon kind of scenario
or item placements
or variations
when you search "socks", you get various different types of socks
you get variations of socks
small, medium, large, white, black, blue, cotton, polyester,
a specific thing that you click is what a provider (seller) has put into amazon
and that's my ItemType
he skipped the basic steps
tsss
those are called variations
then the price and location of that item depend on your current location, and those are instances of that specific sock type from that provider
18:29
different versions of the same product
itemtype to me reads more like a categorization
now, say you need an item on the database for each pair of socks, because each one has a different expiry date, for example, which affects the price
these are my instances
right
"instances" makes sense to a programmer
but to the end user... it's meaningless
or rather, groupings of socks by expiry date from a specific type
well, it's only a mongoose model name, it never reaches the end user
Right... but wouldn't it make sense for the terminology to match?
So that when the front end is displaying "variations" of socks, they look to the DB for variations?
user1596138
lol
18:31
well, that's the general idea
I'm looking for a better term than "instance"
!!woosh
and itemVariations doesn't quite make sense here
why does it need to be prefixed with item
it doesn't
18:32
considering it's part of an item document
do you have a better one?
and why does it need to be stored in a separate collection?
ok. worked 13h today. finally done with my timezone localizations in java jsp <.< @Neil
also, a lot of the time I'd be dealing with the instance only
and I don't think it makes sense to query through the whole item types
or does it?
y not? it's pretty easy to query children of documents in a collection
and is far more efficient than doing so with references
the only reason you'd store them separately would be if it's a many to many relation
if it's one to many.. you mightaswell just make it one
18:35
well then, that's what I'll do
what do I call the container model then?
the container describes an item, and the collection of sub documents are different versions of that item, correct?
in a way
I really wouldn't call them "versions"
they're the different versions as we're different versions of humans
so they could be identical, varying only on, say, price, delivery time, etc
yup
there would be quite a lot of them
I wouldn't display all of them to the user at once, for example
what are they
18:38
for context, it's an application about selling food close to expiry at discount prices
sales
:p
so each food which differs in expiry date should be accounted for differently in the db
@KevinB oh, uhm
that would make sense
user1596138
My co-worker who has never been to the office is visiting the same week as me
I just really hate money and don't want to think about it while I'm writing dbs, I guess, so I didn't think of that
user1596138
He asked me about dress code... What should I say haha
user1596138
18:39
Kilts and ties
"formal"
@Jhawins pink shirt, black tie, and short shorts
user1596138
Funeral formal
a sun dress and a pair of rain boots
user1596138
I'm not giving him my outfit
19:08
tell him there's a pool and to come with slippers and bathing shorts
who wears slippers to a pool?
oh, it's a language thing. We call them sandals in the US
or "flip-flops"
anyone know of chrome extension that syncs DATA of each individual chrome extensions, for example, it will sync a list of rules you created for a custom extension across all current chrome user account login?
Chrome Extensions which is already automatically synced for user on each computer user is running but the data attached to that extension is not looking for way to also sync that data
user1596138
@FredMcgiff That already happens with my google account
user1596138
Wait
user1596138
I thought it did
user1596138
19:16
Guess it doesn't
19:36
for one extension really that i concerned about due to the time it takes to set it up add could one drag and drop the folders of the extension used
i think i tried that before even the data from the chromes user profile but not sure it worked like if install the same extension on both computers and drag the changed data inside that extension folder
you think that's a way to do it cause i could kinda rig up a cloud sync way to go about it for example it updates the folder i assume i run it problems where cannot edit the file while its open maybe a restart of browser would do it
19:48
🚽
🙏
1
Q: Bouncing burger menu

SpectrI need to realize burger menu with bouncing metaball effect or water drop (name it what as you want) something like that. I don't need all effect's from there I need only this water drop effect with explanations. Here's my code. As you see there is nothing incomprehensible here. Simple jQuery...

lol
you can't close-vote something that has a bounty? bullshit
it worked on their other bountied question
20:04
hi
somebody know how i can get the header from a normal mobile browser http get request?
want to call a website in a app. I am doing a get request with axios but i get as response that i am not a mobile user
it might not be header based
could be useragent
or something else
i thought that the user-agent is the header?
in
i mean
you can call it what you want
it's not a normal header
if it is one at al
it's not like content/type that you can set
ok so i cant set the user agent manually?
depends
what is making the request?
what environment?
20:10
axios.get("http://datapass.de")
what environment?
android
i'm unsure
i can call the website only with an mobile browser
in a normal browser situation you can't set the useragent
on a server, you can set the useragent to whatever you want
i have no idea what kind of control you have in android
documentation
20:13
i just to need to simulate a normal chrome browser which calls a normal website
mobile chrome browser
right
but first you need to know what the server is doing to "identify" the request as coming from mobile.
if you don't know that, you don't know how to simulate such a request.
you can only guess
mmh
i thought the header is every time the same. If i call for example bbc.com or ebay.com the header and the user-agent is not the same?
the useragent is, yes
but whos to say they're not using some other mechanism?
can you even set the useragent in your environment?
in a typical web browser, you can't.
 
1 hour later…
21:18
hey
ohhi
how would you be able to tell what technologies booking.com uses by looking at the source code in the browser
depends on what kind of technologies you're looking for
it would be much easier to start with builtwith.com
i meant going "View source code" on their website
builtwith.com didnt have anything
what are you looking for?
21:21
im not sure exactly
just always wondering how good frontends are built
i go "View Page Source" and it just seems like a mess of JS
in this case it's likely just exactly that.
you cant tell what frameworks they, or how they use bootstrap
@Permian First you must scale Mount Olympus
@shmi frontend is the hardest bit of IT
@Permian Wappalyzer can sometimes give you info about what frameworks were used
21:32
@NathanJones nice one
it can sometimes get confused, though. for example, when the new gmail was released, wappalyzer thought it was using the Yii PHP framework just because one of the js bundles contained the string 'yii'
we still use yui
er, well, we still have an app that people use daily that was built with yui
booking.com just uses jquery
haven't touched it in a long time
@KevinB why did you pick yui at the time?
21:34
@Permian That generally has very little to do with the choice of frameworks.
i've never used it
it was pre-jquery
we wanted something with reusable widgets
I'm still on mootools
instead of building something new for every app we built
we could just use an existing widget that's already themed for the app
but... we only used it for that one app, then we moved to jquery
21:35
makes sense. do you use components in some way now?
that was back in mid 2008
widget and component are synonymous
like, the webcomponents voodoo thing
shadowdom and all
@Shmiddty i thought components were meant to be more composable...idk
we, er, I, don't spend much time working on the front-end, so i tend to just do whatever is easiest for the particular project. Currently, that means using react, unless it's a throwaway page that we'll be getting rid of in a month, in which case we may use jquery
21:38
@KevinB why react not angular?
i like control
wappalyser isnt great...
not much info
@Permian it depends on the site
we did use angularjs for one project, and regretted it because it was angular 1.5 and shortly after we finished they launched 2.0... and I had no interest in updating it
so it's still using 1.5, a few years later
@Shmiddty bzzzt incorrect
21:40
angular 2+ very different
@KevinB we extended a project that was stuck on angular 1.3
and by extended i mean hacked
we're supposed to be replacing this site with a new one that I don't have to manage, but... it's not done yet
so it's still chungging along with 1.5
it's using express+loopback 2.0 for the backend
i'm building a firebase app now with react+mobx, but i'm thinking of moving to angularfire
our app uses firebase+react+mobx
love it
i love mobx
21:42
initially we tried to integrate firebase into coldfusion... but that ended up being reaaaaaally complicated
the extra firebase integration code i have to write with mobx is making me consider something that already integrates firebase into the front-end for me
but i don't know if that's worth giving up mobx and react
angular components seem so...verbose?
how much code are you having to write to do that? it's seemed pretty short and simple for me so far
i have code that checks if the user is logged in, and stores that in a mobx store observable
which isn't just a one-liner, that takes some business logic
right now, that's the biggest issue i'm facing, keeping the firebase auth 'state' synced with mobx's observables
We added a listener to the authstatechanged that updates the observable if the auth state ever changes, and we just check that
like a computed value?
21:46
hang on, my editor crashed
i need a new pc
@KevinB if you don't mind, could you send me the code that creates the listener on authstatechanged?
when your editor/pc comes back to life
  constructor(rootStore) {
    this.rootStore = rootStore;
    this.firebaseApp = (<any> window).firebaseApp;
    this.firebase = (<any> window).firebase;

    this.setUserData({uid: -1});

    this.firebaseApp.auth().onAuthStateChanged(user => {
      if (!user) {
        this.setUserData({uid: -1});
        !this.firebaseReady && this.setFirebaseReady();
      } else {
        const {email, uid, emailVerified} = user
        this.setUserData({uid, email, emailVerified});
        this.firebaseApp.database()
firebase is initialized in a separate, non-react script
because other portions of our site that don't use react do still need to know whether or not the user is logged in
that's basically what i do. When the user logs out, I have to call onAuthStateChanged again and use the result to update the isLoggedIn observable
I wonder if there's a way to just observe the result of that and update accordingly without having to call it manually
21:51
when the user logs out, it calls onAuthStateChanged again with a null user argument
to sign-out, we push the user to a /sign-out route that doesn't actually have a component, it instead does logic then redirects to root
await rootStore.userStore.firebaseApp.auth().signOut()
still not quite sure how i like the whole.. rootStore.someotherStore setup
Yeah, I'm planning on this app getting fairly large, so I'm worried that the amount of mobx <--> firebase integration code will become too cumbersome to maintain
problem with rootStore.otherStore is that it makes it so that all of my stores have to be included in the main app code rather than only being pulled in if needed
but... they're all very small
How much business logic do you put in your stores?
so as long as they don't initialize data in their constructor, it shouldn't be a big problem
the largest one is 150 lines

« first day (2813 days earlier)      last day (2357 days later) »