« first day (3106 days earlier)      last day (1860 days later) » 

user8729657
12:09 AM
@rlemon, how did you learn how to do frontend stuff like this
 
user8729657
I dont know how to do stuff like this
 
reading code
and asking questions
and a lot of google
and I think most importantly was that at the time it was fun.
 
user8729657
I know that feeling
 
I think I'm finding my niche as a UI developer. I branched out and tried a ton of different things, but I always come back to where I started. I'm not even great at UX from an accessibility point of view, but I'm still very passionate about crafting beautiful (or as beautiful as I can get it to look) user interfaces.
I'm just starting to get good at the tiny little details in the aesthetics, too. All of the tiny subtle changes to get something to look just right, except it takes me forever. It's a creative process that never feels done
 
if that's meant for mobile.. check contrasts in darker modes
that's a bit low
 
12:21 AM
It looks alright on my iphone. I'll probably have to pick up some used other devices to test on, because you could very well be right
 
even not on night mode. it's pretty dull on my pixel 3
 
oh wait
you might be thinking because of the overlay
the parchment is a modal, and it adds a dark backgrtound cover
 
ohh that's a modal?
ahh
 
yuhsir
 
k, nvm then
the detailing is nice
:P
 
12:22 AM
let me find a screenshot of it without the modal
let me just take a new one
 
lol
 
okay yea that's better
 
I'm very proud of the design. Most of it has been luck so far, just finding the right colors, textures
 
only criticism is the length of the menu banner
I think it should be about 30% shorter
 
12:29 AM
Yeah, I think I agree
 
12:41 AM
@rlemon imo half speed the first one you sent and it's better snow or at least more the style I'd be going for
 
the 'snow' effect here imo is the flutter
when they go back up
replace the items with whatever.
 
12:55 AM
hmm, good point. I would just white particles and a static image or shape to make "snow" at the ground
 
you could do some fancy snow accumulation in a shader, but it'd be too slow to do it well on the cpu
 
1:36 AM
you could probably just do the math
like just accumulate the snow over time
just make a range for the snow size and amount
then spread that over time
accumulation wouldn't take hardly any cpu
 
I was thinking more along the lines of accumulation per flake, in the places that they land
 
@ndugger looks awesome!
 
@ndugger Very nice. Is that on iOS App Store (or android)?
 
Right now it runs on my computer only lol
 
@ndugger holy crap that could be resource intensive
 
1:47 AM
Which is why you'd run it on the GPU
a shader would make quick work of it
 
you could combine my method by just fading the flakes out
 
@ndugger Please tell me when your release. (Or I could beta test if you would be willing XD). Looks amazing.
 
I plan to make the base game free, fully playable, just probably some races/classes locked behind premium. Maybe a level cap? I dunno. I'm still in the early phases of planning out the details
 
always make it possible to get it through grind
then people will buy it lol
bc when you waste their time, they become jeanyeses and realize their time is worth more than the price you're charging
 
The only thing I request is not to make annoying ads and not to make like a coin system where you can buy coins with real money. I feel like those things ruin games, people who are willing to spend money will always do better. Not about skill.
 
1:53 AM
"It's almost like you're saving money by using in app purchases" lol
 
No, there will be things locked that you have to pay for. It's not charity
No microtransactions, though
Like, you can have the base game for free, and you can play as human, elf, or dwarf, or you can pay $X to unlock additional races, classes, levels, etc
 
hmmm, so not like candy crush where it just baits you into paying slowly over time lol
 
not at all
 
@ndugger Thats 100% fair. I'm all for unlockable content through purchases.
 
I love how games try to sell me shortcuts. i think it's probably the best monitization method though
 
1:55 AM
I just hate when its like "Pay $1.99 and get 500,000 coins that you can spend on powerups to beet other players"
 
So if you can't afford to pay, you can still play for free with your friends, and still play the full game, just as the base races/classes though
 
@JBis yeah that's what I'm referring to. I think that probably gets you the most money in the end
 
also it's not pvp, so there isn't really a pay to win concept
 
@ndugger I also think of this as like an unlimited free trial. You get to see how the game plays and if you like you will buy.
 
right
 
1:56 AM
all for that
 
@ndugger there's always a pay to win concept lol
 
As a player, I hate pay to win.
I specifically avoid games like that.
but its probably very effective
 
"wait 30 minutes to recharge or pay me 2 bucks and never wait again"
@JBis I agree with everything you're saying
 
I should add a pay to win button that if you pay $5, a winner message pops up on the screen and the credits scoll
 
well those aren't as bad as "Nitro boost for $3.99"
 
1:57 AM
@ndugger if you do that, I'll pay the $5.00 just because you did it
(as long as it's on android too)
 
@ndugger lol. There was a $10k app or something that displayed "I AM RICH" and thats it
 
that was way back in the early iphone days
 
yep
 
@JBis Don't waste your time. God will judge him. It is not our job.
 
best in this format imo
 
@Sheepy "God will judge him" lol, I don't know why but that struck me as something epic a character would say right before "leroy JENKINS!!"
I wonder how many anarchists vote for whichever candidate will speed up the descent into chaos lol
 
The sad part is before I saw it was from The Onion I assumed it true because of politics today
 
I mean politicians are either the messiah or the antichrist to the whatever person owns and runs the news channel.
I can't even imagine how rigged stuff was back when CBS was the only option.
everyone gets their opinion from somewhere. It'd be irrational to think you came up with it all by yourself :shrug:
 
3:30 AM
Not sure if this is the right place to ask this... How do you move from using yarn to npm? Is it as simple as deleting the yarn lock file?
 
@kinstephen Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@kinstephen I thought yarn and npm could exist on the same system. Are you asking about the project specifically?
 
We'll I'm considering moving away from yarn and just use npm to simplify the project I have in angular. It has yarn in it due to the theme I purchased.
 
yeah, you should remove the yarn.lock
If the package.json looks okay, try removing node_modules and running npm i
 
That's all that is required to be npm only? Or do you think it's better to co-exist with yarn.
oh ok, gotcha, thanks
 
3:33 AM
idk about that. It's a lot of moving parts, and probably will give you unexpected results
 
ok appreciate the input
 
4:14 AM
I am building in Webpack, if I do..
import 'library';
But then later need an object from that library, so I do..
import {object} from 'library';
Will it pull the code for that object twice?
Or, is there a way to include the entire library while still gaining access to that object?
 
4:37 AM
@Alesana No. The library will only be pulled once and executed once, even if you don't use Webpack.
@Alesana Not sure about what the second question means.
 
Ah yeah I guess the webpack part was irrelevant
I guess the second question means, if I do the second import will it still run the whole script the same way it would run it if I do the first import?
 
Yes. It will still run the whole thing and import every single js that library uses.
 
Ah okay cool. I guess the more I think of it, that should have been obvious to me haha. Thanks for the help!
 
Haha yes. It's in the spec. Just don't ask me where. ;)
Hi All, I need a web hosting recommendation. In Asia (Japan, Korea, Taiwan,Hong Kong ) and with cPanel. And need it fast; our CTO actually suggested GoDaddy hosting. I managed to shot that down this morning...
 
5:12 AM
Nevermind. We had a meeting and the boss agree to try to setup dedicated host and, if it works, ask the client to upgrade (i.e. move to data center).
 
@Sheepy yikes
@Sheepy I'd think amazon or google would be safe picks
assuming they support this cPanel
 
6:19 AM
Last I tried them, they offered a machine for us, we need to setup and maintain everything ourselves. Which means me. That is before my time is split between baby and office - more baby than office. So we need a web host that will do the chores.
Oh. I found Amazon Web Hosting and Google Web Hosting now. And Azure web app hosting of course. Don't call them websites.
 
I would definitely recommend to go cloud
I've been down the path of creating your own web hosting server from the bottom up
it's more hassle than it's worth in the long run
cloud can probably manage more uptime than we could anyway
management may not always understand that, because a one-time purchase for a server may look more appealing than a constant monthly burden, but that's only because they don't know that it isn't a one-time purchase :P
 
Anyway, the boss need a benchmark to see first hand how much a difference the hardware make, so I'll set it up on my overclocked 8th-gen i5 super pc. Once I've proven it's not network issue or code issue (or, rather, not without total rewrite), we can discuss next step.
 
network overhead is constant
well I mean it's not constant, but you know what I mean. it isn't what makes or breaks you
 
just read something from a serious scientific magazine; "2 days". It takes approximately two days to poop out a swallowed Lego head.
🤷‍♂️
 
My boss was desparate and was convinced by an India "web optimizer" to move the site to a USA host. I already told him it is risky and the ping time will never be solved (until human invents Faster Than Light cable). He went on anyway. One week later, the most useful advise we get so far is to advise the client to upload smaller, lower-quality product images. Thanks!
The hosting and optimisation is affordable as an experiment... but the support I need to do to allow the experiment is not...
 
6:37 AM
@KarelG approximately? approximately!?
What kind of scientific research is this? I want it down to the minute with standard deviation up to 5 digits
 
The magazine is "NewScientist"
I am waiting when the next one is being posted :3
It is about black holes
 
I like reading up on iflscience.com
From what I've seen regarding scientific articles on quantum computing, they're not the most precise, but it's still an entertaining read
So apparently Israel almost landed on the moon
Well they did crash on the moon
I thought that would have been bigger news
 
It is bigger news on this side of the world. Shows that sucess of space explorations must still not be taken for granted.
 
who was taking that for granted?
NASA practically shot 3 guys in a gigantic sealed tube into space with a computer from the 1969 and they actually made it
 
@Neil I found that video when the burj khalifa acted as a lighting rod more interesting
 
6:49 AM
I think that was incredibly lucky
 
@Neil nah. they had a team of mathematicians that did the calculations. They had money for that.
theirs budget was much higher back then
 
well don't think that Israel was suffering from lack of good calculations
their engine just stopped working
things like that can happen
 
that is a mechanical failure. NASA experienced these kind of failures as well.
 
that's why I say it was incredibly lucky that NASA pulled it off, and in 1969 no less
 
@ShrekOverflow We are using the auth0 hosted login screen... not exactly sure how it was set up
2 things went down: logging in (because it couldn't verify the login screen)
 
6:53 AM
@Neil compare cars from that time with those now.
 
and the authorization extension also died
 
@KarelG the fact that such failures can still happen just makes the success of the lunar landing that much more exceptional
 
And don't forget that NASA can no longer send anyone to the moon... nor anyone else.
It was a miracle, really.
 
yeah, I do honestly believe a lot of it was luck
it may not seem like luck when everything went as planned, but it's so easy for things not to go according to plan
I mean, just look at most of the programs I write :P
 
It wasn't purely luck. They did took it step by step and several accidents happened. Some with fatal consequences. You ever heard of Formal Method? Worse module I've had. But it's proven to work!
 
7:02 AM
formal method? what's that?
 
something formal?
 
and something method?
 
It's programming. Done in mathematics. It's fun! If you are some kind of unknown alien creature made up of pure logic, like Kyubey in Puella Magi.
 
when you think about it, it's crazy that the laws of the universe should follow some sort of formula
it's one of the weirdest things if you think about it
we know so much about our universe that we wouldn't know if we couldn't put a formula to the behavior of certain phenomenon
 
7:22 AM
Hi everyone. I'm working on a WebMIDI project, and through it you can send commands to your midi-controller with a specified time for execution. However, once sent, you can't cancel it. Using setTimeout to send the command at the given time doesn't work very well either, because if there's a GC or CPU load happening in parallel, the timing will be noticably off.
*through WebMIDI you can send commands
I've made a sequencer where every button lights up for 1 second every 16 seconds. Now I can't stop it mid-loop, because the commands have already been sent.
I'm thinking about making a queue in my js app, that waits until the "last minute" with sending the commands. So for example, if I want a command to be executed at time 15000, it will wait until the time is 14800 before sending it, giving me a 200ms time buffert.
 
@Amsvartner If you are using setTimeout to send the command, each call will return a number that you can store and pass to clearTimeout to cancel it, if it hasn't been run yet.
 
Of course, that won't help if the thread is locked for longer than 200ms, and stopping the sequencer will always carry a 200ms lag
 
@Amsvartner that sounds like that could be a bad idea
the 200ms is the time it takes to make it to the server, but it won't be constant
 
Yes Sheepy, but if the CPU thread is locked the setTimeout will not be executed on the exact right time
So using setTimeout is not an option, it will cause noticable lags and flickering
 
To be honest I think that's not a bad idea. At least you won't be thrown off by gc. Use RequestAnimationFrame with performance.now() to simulate a game/timer loop for max precision.
 
7:28 AM
Neil, I'm running it locally, but yeah the number could be configurable and tweaked :)
 
you could send off a sample request to the server to get an idea of latency
and use that as the basis of the delay
could be worth considering
I wouldn't make it a fixed 200ms though
 
Nah it was just an example, I would have to tune that to a feasible sweet spot
 
(Try requestAnimationFrame())
 
Hmm, I'm not familiar with requestAnimationFrame Sheepy, but I will definitely check it out. Thanks for the input, both of you! :D
Of course, I will always have a lag of 200ms (or whatever number) when stopping the sequencer, but that's a fair trade-off I think.
 
Hi
 
7:32 AM
@Raül Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
Hello :)
 
o/
 
1 message moved to Trash can
@Raül Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
$('.input-date').datepicker({
showMonthAfterYear: false,
dateFormat: 'yy-mm-dd',
minDate: new Date('yy-mm-dd'),
}
);
Sorry, didn't know, I formatted now with ctrl + k
 
new Date('yy-mm-dd') is not correct
if you want minDate to be today, just give an empty construct
 
7:35 AM
minDate: new Date(2007, 1 - 1, 1)
 
If I want to use today, why should I use (2007, 1 - 1, 1)?
is it like the minimum or sth similar?
pretty new to js
 
if today is the minimum, then use new Date()
 
Sorry if these are dumb questions, just learning :D
 
Multiple types supported:

Date: A date object containing the minimum date.

Number: A number of days from today. For example 2 represents two days from today and -1 represents yesterday.

String: A string in the format defined by the dateFormat option, or a relative date. Relative dates must contain value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.
 
@Amsvartner gotcha
Fine, thank you everybody. Managed to get it done
 
7:37 AM
The problem is this:
Press CTRL + Shift + J
Hit "ESC"
Enter your date code: new Date('yy-mm-dd');
And see what message you get :)
 
Invalid Date{}
 
Yeah :)
 
so with ctrl shif j you open the console
i normally use f12 and go to console
 
Good morning @chat
 
but this is quicker
@Amsvartner Now, thank you about that. Is there any option I could disable the weekends in the calendar?
 
7:41 AM
@Amsvartner F12 ...
@Raül check in the documentation. Not sure which datepicker you are using
jquery has multiple datepicker plugins.
 
how can I check which one I am using?
 
lol
 
If you just want a new today's date, new Date() will suffice. If you want a specified Date, you can call new Date("2019-04-18") or whatever date you want. You can't really specify a format on a date object itself, it's always just a Date object with a bunch of whole bunch of methods and stuff :)
@KarelG True dat. Old habits die hard :P
 
javascript doesn't have a fantastic native date library
if you find yourself requiring to format dates to and from the user often, consider using a third-party library like moment.js
 
It is copied from Java. Java has given up and wrote a brand new native time api.
 
7:46 AM
Yeah
 
To be fair, it wasn't that bad when it was designed. At least it is object-oriented and has timezone support.
 
I see. Thank you everybody
 
I suspect you're using this one :)

https://jqueryui.com/datepicker/
 
@Sheepy It sucked in Java too :P
java has since moved on
 
Here's the API for it, I quickly scanned through it and I can't see any method for disabling dates, but I might've missed something.

http://api.jqueryui.com/datepicker/
 
7:52 AM
You need to use beforeShowDay
 
@Sheepy ORLY
Even Jon Skeet had problems with it. That is near impossible because problems should run away from him...
 
@BenFortune I was searching now, some SO questions and found out there's people doing functions and using them in that field in order to get it done
 
it depends of which jquery plugin he uses ...
> jquery has multiple datepicker plugins.
some of them have a different config names.
 
@Raül Yes, that's how it is typically done. Sorry I don't have the time to find code example...
 
7:56 AM
return $.datepicker.noWeekends(date);
Cool, I didn't know about this :)
 
@Sheepy you have no obligation, don't be worried about it
@Amsvartner I'm checking the function. The date variable would be today's date?
 
Aye :)
Or no, the date in question.
 beforeShowDay: function(date){
       return $.datepicker.noWeekends(date);
    }
Have to get back to work now, but good luck with your project :)
 
 
1 hour later…
9:25 AM
@KarelG its down to 36 now
with a 240 mm radiator
and 60 on load I'll recieve the case today
also the "line" helped it get down to 80ish on load
but I wasn't very happy with 80s lol
(esp because now i have buyers remorse)
and I can overclock it pretty high
now
 
9:44 AM
Anyone familiar with React? specifically Refs?
 
Use use and hook it up
then don't ever look back
hwat do you need refs for ?
 
I need to call a child's function from its parent
 
Sounds like water cool. I considered it a few times, but everytime I am afraid of it leaking and use good old air cool. At least air cool won't kill my modern rig when it breaks down. (They used to.)
 
Has anybody seen florian recently?
 
not here, but yes
 
9:54 AM
I am writing a pam module 😀
he seems to have done it in past, was wondering if he had notes
 
@ShrekOverflow yes
 
that lisp is a bit hard to understand 😀
 
that lisp is lispy
 
You might contact him on Miaou, but he lacks time
 
9:58 AM
@ShrekOverflow 80ish is ok, if you overclock. Depending on the case and the air surrounding it. When I turn on the a/c for the baby, there is an obvious drop in my temp too.
 
@Sheepy na-na 80s is at base
with no overclock
the case has virtually no airflow :facepalm:
adding radiators made the airflow even worse :(
 
80s is awesome. And I raaaaaaaaan.. I ran so far awaaaaaaaaay..
 
with the meshify I am pretty sure I'll get close to open temps
and now I shall disappear to write a pam module
if i don't appear for a while, I have probably tried to and locked myself out of my machine permanently.
 
@ShrekOverflow You can always stay connected with your phone! :D
 
@Sheepy 😬 but I like the pressure!
 
10:09 AM
I loved what florian did with that hermes
It just shows a little security leak from debian.
 
11:01 AM
this.props .middleware(Array.isArray(this.props.middlewareArgument) ? ...this.props.middlewareArgument : this.props.middlewareArgument)
why doesnt this syntax work
 
not allowed
only as array/object literal + in function calls
 
how can i do it then
if I do spread on an object, does it reutrn the object itself or spreads the object too
 
just pop it in an array if it is not an array and spread from it
 
Sam
11:52 AM
Anyone here familiar with using NGINX reverse proxies?
I'm having a hard time understanding service aggregation design
 

« first day (3106 days earlier)      last day (1860 days later) »