« first day (2569 days earlier)      last day (2604 days later) » 
00:00 - 20:0020:00 - 00:00

00:06
I'm writing a text rendering engine on canvas and I'm building a "bitmap font" type caching mechanism to improve the performance since drawing paths is MUCH slower than pixels. However, I'm trying to decide if the performance would be better drawing all characters to a large canvas or drawing each character to its own canvas (i'll be using drawImage and globalCompositeOperation = 'source-in' to splice characters). Does anyone have any feedback on this before I end up implementing both to test?
@darkfrog I've done that, but didn't test performance
@KendallFrey which route did you take?
I didn't use a second canvas, but destination-out and destination-over
ah, I see
Are you doing coloured text? If so, how are you doing it with source-in?
00:13
I render the text in white, set source-in, then draw a rectangular area over the text block with the paint I want to use. This allows me to cache the characters once and then reuse them without having to "draw" them again via paths.
source-in on the cache or the result?
result
I don't understand what you're doing then
hehe
Unless your text always has a transparent background
00:17
yes
of course
Mine works with a coloured background
Can't tell if transparent over white, or just white
resulting content is rendered on a white background
it's a multi-stage process
As in the canvas is transparent and shows the white page underneath it?
00:19
sadly, still a lot faster than drawing paths
no, it composites to the displayed canvas in the end
which is white background
Now I'm confused again
okay, let's walk through this:
1.) I render each character at a defined size to a canvas per character (white text on a transparent background)
Let's call that canvas Alice, shall we? :P
or set of canvases as the case may be
2.) I draw the characters to make up words by drawing "Alice" canvas to, the resulting canvas, we'll call "Bob"
3.) I now have some text in white on a transparent background on "Bob"
4.) I then set compositing to "source-in" on "Bob" and paint the area with a gradient like in the image above.
This creates the resulting effect of painted text
Is that it?
00:24
5.) I can then paint "Bob" onto another canvas "Cammy" which has my white background and other content. Cammy is the only canvas that actually renders to the screen
ah gotcha
don't get me started on "Dan" though. :-p
what's really cool though is that I account for screen scaling (browser zoom and retina display) so I can render pixel-perfect on any screen
I dislike text as anything but text because it screws up selection. I don't know much about canvases though.
@William I've written a text selection library for canvas though. ;)
Mine was 1) use destination-out to "punch out" each character in my canvas to create transparent text on existing background 2) use destination-over to render a coloured rectangle under the punched out stencil, yielding the effect of coloured text on the existing background.
I started with a bitmap font sprite though, no vector jazz
also monospace
00:28
I'm using opentype.js.org to start with....it's amazing, but slow because it draws paths
01:16
Nodejs really sucks for systems stuff.
node is not good at math
@ssube this isn't even math
this is just the fs.read waiting till forever
low level stuff is increasingly math
oh lol
Here is whats happening
you can explain it, but I won't be of any help, I'm already drunk and folks are coming by to drink for halloween
01:23
Yeah :P
just ranting I figured out how to solve it
- tuntaposx exposes /dev/tap0 as a file that you can start reading / writing to create tap0 (Works absolutely brilliantly)
- I call `fs.read`.
- In my test cases before this `fs.read` can complete I call fs.close on the socket.
- Now since fs.read is *locked*, fs.close cannot complete, but since the call is issued already this results in a deadlock.
Killing the process forcefully crashes the tuntaposx driver, and then I get an OSX kernel panic
01:50
Damnit I pissed off my wife real good
so I was messing with coupon codes on banggood.com
added a 3d printer... went through paypal and got the "Continue your order on the merchant site"
clicked ok, merchant site loads... "Your order is completed"
damnit, usually there is a ORDER button after lol
got a baby Ender 2 for $160 so not like a crazy amt but still annoying
baby Ender 2?
I got the last US one for $160
02:14
@Loktar ^^^
@KendallFrey ^^^^
LOL
lol nice
EAR BUTT!
nice man
so it works arlight eh?
ohh yea
fun stuff
after I figured out how to put it together
did you see my bitching about the sd card?
02:43
anyone know a good vscode todo/tasks list extension?
amazon would let you cancel it still
@rlemon quality choice.
03:02
I thought this needed to be giffed. It may be useful.
looks like the numa numa guy a little not quite
It's boogie, of course
boogie2988 aka francis
03:35
!!learn francis <>https://media.giphy.com/media/l1J9NTcnHC2jgf6hy/giphy.gif
@KamilSolecki Command francis learned
Cc @KendallFrey
04:13
Oboecat's first OSS project / npm package npmjs.com/package/ethertypes
(the typings are messed up)
s
04:36
@rlemon no been away most of the night 😒
just glad it all works dude
you see my suggestion about the sd card slot extender?
I got one of those helped a ton
was recommended in the reddit faq
05:29
meh just updated to TS 2.5.3
object spread seems broken
or at least my usage
got it
am I missing something?
 
2 hours later…
sup guys
does node inspect work for anyone in chrome
war has changed
08:01
Oh man
Ukraine is so Damn cheap
I Just Paid .50$ for a coffee
how pretty are the girls?
08:20
@KamilSolecki what
08:38
wondering if I should upgrade react-router from v2 to v4 while upgrading to react 16
my gut feeling and previous experience with it tells me no
I would lose it altogether if it was an option
09:28
Hello
how can i save certain info. in app so that next time the user open the app the info.(for example their account id) can be shown without typing again?
i want to achieve this in react native
so if i restart my phone
the data still there? @littlepootis
09:44
Yes
Just try it
09:56
oh shit halloween's around
Is anybody using Tampermonkey?
10:32
!!welcome AlexStanese
@AlexStanese Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@littlepootis yea for real
10:58
@Mosho refactoring calls upon!
11:25
so, I put the chicken in the oven again for 1hr
without tinfoil on top
pics to be sent soon
I'll wait for a reply before eating this time
no trace of blood at all
You shouldn't really be cooking it when it has traces of blood
I'd back your gofundme for a food thermometer.
Jquery ".[2]className" with each loop not working?
@towc It doesn't look bad
But I'd find the breast, cut it and check if it's done before anything else.
11:43
it's super white
I feel racist
devour it
@towc is that roadkill?
why'd you ask?
@littlepootis it's gone
I liked the raw one better though :/
much much better
it was a pleasure to have it in your mouth and break it up with just your tongue, into smaller strips (not filaments)
make the planes slide onto each other and all
cooked chicken is just rough, feels like eating an old wet rope
maybe I overcooked this one
but it did feel similar to how my parents used to cook it
12:02
yes
12:15
yes
12:57
hello a q about react native: i have two screens components a and b, and i want to change a when b get certain data. Should i need redux to achieve this?
i build my app with react-navigation, not sure about how to let the two screens communicate...
In Portugal, with no net neutrality, internet providers are starting to split the net into packages.
13:37
noooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
someone stop the universe
I feel like north america would just... make another internet?
Can't you do the internet with like.. peer2peer?
better get on it, we don't have much time left
but ssube said it was bad
so grain of salt
13:53
@Cereal haha .io
i thing browser game :)
but it's not a game page
Now i needed *.io canvas game pls
Good slider...
bad user. Bad user!
> Is this an elaborate grift? Performance art? Donald Trump’s effect upon the American political system? Or sincere efforts for political change? At this point, nobody seems to know.
Donald trump's effect on the political system causes people to just say "meh" when some really weird deceptive shit happens :P
fair enough
14:28
ohhi
@KendallFrey
got a bloody clue?
> is this what being a mathematician does to you? - youtube commenter
if she wasn't flexing legs and butt and showing bare feet, I might be a lot less weirded out
is it sfw btw?
I'm going to assume it's to prepare us for a new series or something
14:45
@towc You're learning! Still looks a bit pink though
it was as white as it gets
maybe there was still a tiny bit of juice on the outside
but it really was white
@SterlingArcher Avatar are my new favourite band, sorry to keep pinging you but I can't get over how good they are
15:37
this confuses me;
not sure why
mainly maybe because I had never heard of it
Ivanka seems to have no clue what she's doing there
> Trump, an advisor to the president, said that the grant money would have a priority on "racial and gender diversity." - arstechnica
that's a weird phrase
not sure how to take the whole thing
16:03
one bite at a time
16:16
how can i make the data read from qrcode an object in javascript?
the data is now a string value "{ip: ..., r: ...}"
how to read it as a object?
@towc Why? Because you automatically associate the name "Trump" with bad things?
Hannah is single for a reason
ooold
@KendallFrey most of the time. I do think I keep an open mind. This just seems off
ivanka trump doesn't seem to have ever had much of a connection with CS
and she seems to be speaking for the administration as a mere representative
if it was her own will and seemingly for a genuine pure reason, I'd really applaud it
I don't agree with destin on "it doesn't matter why they did it. They did something good"
with my limited knowledge of the trump admin and most charitable things like these, the huge majority of that money will end up being used to simply move it around, and a very small fraction of it will end up actually helping out
Again, this is just a probable scenario, not the way it definitely is and always will be
16:54
@towc How much do you think it costs to "move money around"?
a lot, I'd guess
Why?
Have you ever made a transaction? What did it cost?
finding out what to do with the money requries research, for example, and awarding it to systems also requires coordination
oh, not that kind of moving around
How much research do you think it takes to find a few good CS education programs?
no experience, but I'd guess definitely no more than 1M dollars
although probably a lot more than that will vanish
16:57
Why do you think that?
corruption, trump, big corporations...
those kinds of things
You think big corporations and governments are that inefficient?
Or you think Trump is actually gonna take the money himself?
a lot of charitable donations are usually trusted through a charity company/thing like oxfam. A lot of the higher ups get to decide how much to keep for themselves, because they're working fulltime, and too often they pick A LOT more than the standard well-off salary
let me look for some examples, none come to mind
> Every year, Kids Wish Network raises millions of dollars in donations in the name of dying children and their families. Every year, it squanders almost every penny. The money gets diverted to enrich the charity’s operators and the for-profit companies Kids Wish hires to drum up donations. Sick children wind up with less than3 cents of every dollar raised.
That has been the formula for 16 years, ever since Kids Wish mimicked the respected Make-A-Wish Foundation and launched its relentless drive for money. In the past decade alone, Kids Wish has channeled nearly $110 million donated for sic
> The waste has been going on for decades. Year after year CFA raises millions and sends 82 percent to its for-profit fundraisers. Over the past decade, fundraisers have collected $98 million in donations. Patients have gotten less than $1 million in direct cash aid over those 10 years, IRS records show. As far back as 1991, CFA’s founder, James T. Reynolds Sr., said he intended to reduce the charity’s high-fundraising costs. But more than 20 years later, fundraising still takes more than 83 cents of every dollar raised.
It took you one minute to find that a charity wasn't a good one. Now you don't have to donate to that charity, you can donate to a better one.
just googling through "corrupt charities"
17:03
It seems unlikely that all charities are that bad, and it should be easy to find out which ones are good.
So, you know, use those.
not all, but a lot
also googling "trump charities"
plenty of articles that claim he used this scheme on a lot of charities
during the election I think there was also something like this on the clinton family
ofc, none of this is to say that all those articles are right
What about the $300M from private companies? Will that also be wasted?
but I personally wouldn't expect trump to "do the right thing"
@KendallFrey from the little I read, that will still be going through charities, probably heavily suggested by the government
let me look it up
...except for this Rubik's cube with 2 yellow centers and 6 pink corners. It's unsolvable.
closest I'm getting after a couple of minutes is this:
> Both the Internet Association and Trump were vague as to exactly how their programs would be implemented.
17:10
@towc oh my, how catastrophic
just saying I couldn't find anything better
doesn't mean it's necessarily bad
but I really don't expect it to be nearly as decent as it could be
really hope john oliver does an episode on this :P
@KendallFrey so if I'm hearing almost like a cracking noise when it's traveling to a new spot.. probably not good
> Today, Internet Association announced a private sector commitment of more than $300 million dedicated to K-12 computer science programs. The pledge represents a private sector contribution which complements the Trump Administration’s commitment to computer science education made in yesterday’s presidential memorandum that directed the Department of Education to make STEM and computer science a priority within competitive grant programs.
Advisor to the President Ivanka Trump is joining Internet Association and donor companies at an event today in Detroit to discuss the importance of comput
from the printer or the print?
print
17:13
could just be clipping a bit of warped print
hard to say without hearing it
I don't see any lifting.
maybe my bed isn't as flat as I think it is
17:57
thoughts on always using Number.isNaN instead of isNaN?
also, TIL Number.isNaN is available by default
although they're apparently different functions
!!> Number.isNaN === isNaN
@towc false
!!> Number.isNaN(Number.NaN)
@towc true
I do think maybe we shouldn't use Number.NaN, but Number.isNaN seems like a good idea
also wut
!!> Number.NEGATIVE_INFINITY
@towc "-Infinity"
18:00
even for that, I think I'll just keep using -Infinity
Number.parseInt/parseFloat also seems like a decent alternative to the non-namespaced ones
@AnkitPandey Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@rlemon cracking?
@Loktar yea sounds like some plastic is snapping or cracking but I can't see it. Happens when it tracks from one side to the other.. not often enough to catch it on film
is it the filament on the roller moving?
sometimes that will make a snapping noise when it's unwinding
I can hear it clear across the room on mine
18:06
Actually I want to use 'leaflet.smooth_marker_bouncing' library
and this library is written in ES5 and I want to use this in ES6 or (Typescript)
I am using Babel.
Please help!
@Loktar yea, and I have heard that
this is coming from the head. so either cracking noise from it in the tube or the model is cracking? 3 hours till complete
I'll see then
@AnkitPandey what have you tried and where are you stuck?
18:39
is this all one needs to know to make and read everyday javascript, when it comes to numbers? codepen.io/towc/post/dab21266c5c424a477a3762b308549dd/…
(still writing it, asking for suggestions because I feel I'm definitely missing something important)
I haven't been too consistent with the goal of the series :/
at first it was "here's what you need to know to make your own stuff. Only good practices"
now it's more like "you might encounter these things. Here's how they work"
maybe I can split it in two, and clearly state that the second part is not good practices
good news is that salmonella hasn't kicked in yet
I am searching and found some thing https://stackoverflow.com/questions/36687661/how-to-import-old-es5-code-in-es6

Bu I am not using webpack.
That library are written in ES5.
18:55
@rlemon @KendallFrey getting soo... clooooose
considered using him as a table lol
all glued just waiting for the last piece to finish
i assume that's the alien
all i see is a spinner
yea
oh really?
weird loaded for me in the chat
probably because I'm streaming using up my bandwidth
almost done
ahh ok
18:57
yeah the head is 90% done it's huge
0% infill on the head, 3 outer layers
only took 18 hours or so lol
is that flat surface seriously bridged?
no lol I printed it upside down
the neck was the bridged portion
oh good
I wanted to do it with no supports
so I cut the head to print it like that
haha yeah I thought about jokingly telling you that was bridged
that would be insane bridging lol
gotta go watch the end of quali, brb
19:00
see ya
noooice
hey ?
@Newbiee Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@CapricaSix ok
@Loktar BTW have you compared slicers for bridging quality?
I wonder if Cura is just terrible at it
19:17
omg it's paul
paul? Sounds scary
many pauls are
one of my best friends was called paul
then he won a competition I had many more chances to win instead, so I made his first love break up with him and made her spend more time with me, and we haven't talked in years 😃
oh paul
Whyd you do rhar
Sorry for spekling in advance
was a jealous fuck
19:29
They have too many types of vodka
he also stopped spending time with his friends and me, after winning that rowing competition
@KamilSolecki no such thing
I wanted normal but no
@ssube Man, horseradish vodka is Absolutely disgusting
yes
there's a place nearby that has flights of flavored vodka they make (coffee, caramel, dill, horseradish, ginger, some berry flavors). Most are good, horseradish is not.
After Every glass I had a revoltive reflex
Anyways, you were saying yesterday that I should rollback to No GUI server, right
19:33
not necessarily roll back
Well, remove gnome3
you'll probably want to eventually
are you trying to get the box set up?
Aye, Its my first actual server machine
if you have time, using ansible might make it easier. There's a bit of setup, but for a single machine, you can skip most of it.
I use it for the box downstairs, have a makefile that rsyncs the files up and runs it. Then you're just writing yaml and can version control it.
Ill Check it out, thanks
19:39
if it looks useful, I can make a gist with the bare bones project. If not, keeping some kind of setup script is usually a good idea.
After I get boxes set up, I usually tear them down and respin from the script/playbook to make sure it works, but that's just extra work. :P
I honestly do not mind any extra work at all. I want to set it up the Best I can, and host ~10 Node scripts/apps on it that work in the background and up to 4 webapps in the future. From what I had learned so far, I need to look into docker and ngnix
most likely. Especially if you want to keep the scripts from breaking each other.
Sure thing i do :D
My business data will depend on them
it's not hard to set docker up. I use devdocs.io/ansible/docker_container_module to run services.
you can restart and update them like system packages with most provisioning tools
Awesome. Ill look into that as soon as im back from the radiation zone :P
19:52
@ssube ?
Mind If I ask what do you sell?
You, Unless i totally misunderstood the Reply message
I do PaaS hosting... i.e. hosting with some abstraction, similar to heroku
@FlorianMargaine oh yeah, so I'm writing about measuring complexity and reuse in the context of CI, posting it and doing a talk over lunch at work. I know you work(ed) at a place using tons of containers, which is super relevant to what I'm looking at.
19:55
@ssube currently work there, yeah
thought mostly to host actual websites, not necessarily CI
(it's more about CD than CI)
yeah, I'm looking at things like reusing containers between CI and dev, how similar the CI env is to deploys (like reusing artifacts there). It's all fairly high level.
I can send them over if you don't mind taking a look. No pressure.
00:00 - 20:0020:00 - 00:00

« first day (2569 days earlier)      last day (2604 days later) »