« first day (3092 days earlier)      last day (2081 days later) » 

00:24
@forresthopkinsa how do you still have your bookmarks from 7 years ago?
chrome bookmarks? lol
account sync
ik, but that's a long time to not lose or clear things out. I say that, but 7 years from now I'll probably have all the stuff from the last 2 years through until then. I used be against all the sync stuff tho
idk if against is the right word
just took awhile to want to drink the koolaid on that one
I was on that train from the beginning man
far more trusting than me then lol
00:42
I'm asking here as this is the only active room, but what's the difference between a float and double? I'm guessing it isn't language specific so I should be fine in whatever room.
01:06
131
A: 'float' vs. 'double' precision

Alan GeleynseFloating point numbers in C use IEEE 754 encoding. This type of encoding uses a sign, a significand, and an exponent. Because of this encoding, many numbers will have small changes to allow them to be stored. Also, the number of significant digits can change slightly since it is a binary repre...

01:22
@VoiDHD double has more significant digits, e.g. pi as a float is 3.141593 but pi as a double is 3.14159265358979
Is it safe to say "double has more precision than a float" ?
Yes
double the precision
I think I'm going to be asked it at an interview and want to know how to explain it.
Okay thanks.
To what depth do you want to be able to explain it?
Do you understand what precision is and means?
From my understanding, precision is the amount of digits after the first '.'
I'm not exactly sure on the formal definition.
I want to explain it as best as I can, worst case scenario.
01:25
More accurately it's the number of digits it can meaningfully store
including before the .
As numbers get bigger, the "gaps" between them get bigger
Once you pass Number.MAX_SAFE_INTEGER, the gaps between them are greater than 1
!!> Number.MAX_SAFE_INTEGER
@KendallFrey 9007199254740991
!!> Number.MAX_SAFE_INTEGER + 2
@KendallFrey 9007199254740992
What exactly to I need to learn to learn all of this? Is this like Math or programming terminology.
It no longer has the precision to store it perfectly down to the last whole number
01:28
I feel like we're discussing math more than programming.
I think this is floating point numbers in general, and IEEE floating point numbers specifically
It is based on math, it's just a type of math designed to be useful in programming
Calculus?
Computers have limited storage space, so it's impossible to store all the digits of pi
Because I'm going to be learning calculus soon in my computer science course so I might just leave it till then and learn it from a professor.
So we only store the first 53 digits (in the case of doubles)
I don't think this has much to do with calculus
01:30
The two maths I'm learning are calculus and linear algebra, did you learn all of this from a computer science degree or self taught?
Single-precision floating-point format is a computer number format, usually occupying 32 bits in computer memory; it represents a wide dynamic range of numeric values by using a floating radix point. A floating-point variable can represent a wider range of numbers than a fixed-point variable of the same bit width at the cost of precision. A signed 32-bit integer variable has a maximum value of 231 − 1 = 2,147,483,647, whereas an IEEE 754 32-bit base-2 floating-point variable has a maximum value of (2 − 2−23) × 2127 ≈ 3.4028235 × 1038. All integers with 6 or fewer significant decimal digits, and...
I'm self-taught
or, wikipedia-taught
janeyes
only janeyeses can be computer persons :D
01:53
Does anyone know how I can have a menu bar on a frameless electron window in windows 10?
02:16
shouldn't matter if it is windows 10 or not
should it?
and I assume you'd just use CSS/JS
(and html)
no there's a native menu bar
and yes it matters
02:31
really? huh. seems like Spotify and all my other electron apps avoid using the system UI
02:51
@VoiDHD Number representation range and precision is a fundmental programming concept that you'll run into when you learn more than skin-deep in any programming languages. C, Java, JavaScript, Prolog, SQL, you name it. Most programming books will mention or explain them when they explain Types, usually very very early in the book.
03:12
Pricing 10/10:
My first thought is that the difference may be that when you sign up for 12 months, renewal will be in months, while 1 yr will renew at yearly rate.
03:54
@Sheepy that's even worse
04:45
Hello, I will be online here for the next 8 hours
 
2 hours later…
06:19
that is unfortunate
06:29
@KevinB -1
@MadaraUchiha I thought that it was a 1 april joke. But you give me a feeling that it might not ...
cheapest platform to host your nodejs server that will do nothing but serve html pages, specifically my portfolio page and handle CRUD operations on blogs also store contact information on DB?
06:47
just hire server space at a web host?
07:08
You can rent a cheap VPS at OVH for around 3€ per month
@KarelG It is not
@KarelG Is that possible?
I am not much into the deployment kind of thing other than Azure and all
SO i dont know how service providers like goDaddy works.
Cause they dont mention nodejs, all they mention is we will get wordpress, or php with mysql
Is it possible we can install different packages like node or mongo in their system
If I buy 1GB of storage
07:29
godaddy is not a good host IMO
and please check the sites of the web host providers. They all provide information which platforms they support and what you get at a given license.
Cool
07:45
@MadaraUchiha I can only shake my head on that... there are no words for it.
The access_token can be sent as a Bearer <access_token>. How about the refresh then? Where should the client include that in the request?
I mean the *refresh token
08:09
@iAmRoot If they don't mention nodejs, you can assume that hosting does not support nodejs. Most of the Internet does run on php, and most of that is WordPress, so they are more or less the default of web hosting.
@Sheepy I see, thanks
08:28
wordpress... the bane of the world wide web
@KarelG Meh. You can't complain about it when there's nothing better at it than its designed purpose.
You are both correct. Wordpress is an excellent and lightweight blog platform. Light for its features. Twisting it to be a generic web platform for everything from forum to eCommerce, however, is not good engineering.
@Sheepy Its designed purpose is not good engineering.
Neither is lightness.
WordPress' purpose is to get sheet done. With as little dev intervention as possible.
my wife asked me the other day if I were an expert in wordpress
I told her no, but maybe I could help just the same.. she said on the page they submitted messages and it would show like <html on the page and whatnot
I said, "Sorry, can't help you" :)
08:45
Too bad. That's a chance to be her hero.
it doesn't strike me as the type of problem I can fix without dedicating the better part of a day
a missing javascript tag or css isn't going to cause that sort of issue
True. But since wordpress is so common, from my experience there are very few issue that can't be googled. Add plugin names for better result.
TBH I haven't never used Wordpress, but now I dont see I have a choice here. I dont know PHP either, but since web host platforms for node and mongo are so costly just for hosting a portfolio, I think I will better use wordpress
09:01
@iAmRoot Hmm. May I ask what do you want to do?
I want to host my portfolio, some statis sites and a blog for some basic CRUD operations
Yeah. Then I would say wordpress fits the bill.
@iAmRoot Sounds like WP to me.
I would just use one of the javascript frameworks and a free themed style for my portofolio
and yes WP is useful for those that want to have a small website without having IT knowledge or using IT'ers.
You may also consider self-host, then you can use whatever you want. My asus router comes with built-in dynamic DNS for example. It is not necessary cheaper than shared hosting, though.
09:07
but I know some "freelance" web developers that design/maintain webpages for small companies / clients in ... wordpress.
@KarelG There's plenty of expertise to be had in WordPress
Especially in template building and database manipulation.
<<< developing a wordpress plugin right now. A payment gateway to a local bank for a well known local client. Involves calling local java from php.
It's not an expertise that's fun to have, mind you, but it pays the bills well.
Some people like it, too, I suppose.
I needed to get away from depression. I mean, I need to buy some very nice toys for my baby. My in-law just gifted him a convertible laptop/tablet baby toy.
10:09
also finally finally finally built my 1080p build about to order
(this is surel ythe last time i am asking) wdyt
[facepalm]
o.o
I SAW THAT
^ There
Might swap the 580 for 2060 / 2070
other than that I think the Ryzen 5 should be fine for a few years
alternatively I can switch to intel
for a few extra pounds
A Gigabyte 240GB SSD is not going to hold much games... and I am skeptal of its performance.
And did I see a 77 pounds keyboard? o_O
@Sheepy yes, I have it ..
@Sheepy There is 1 TB for games
on the HDD
I would recommend against installing games on HDD. By the way I am using Corsair 100R Silent Case and it is quiet.
10:16
why?
I have a 1TB Mac SSD 😛 I do know how smooooooth it feels
back to the intel vs amd discussion ( i think the 2600 is a better value for money than the 8400)
but just a tiny bit
wait nvm I forgot that I upgraded my old pc home to 500 GB SSD too
yikes @Sheepy thanks for pointing out I have totally forgotten how slow HDD are
Please pick the 8400. Its 6 cores are enough for gaming + streaming.
@Sheepy But its 20 pounds more expensive then the 2600 Ryzen 5
Is it because of the for an entire extra gigahertz in clock
Get a cheaper keyboard. You can still afford a 50 pounds one XD Motherboard may also be more expensive though.
@Sheepy I already have the keyboard
bought it last year
That extra Gigahertz mostly translates to higher electricty bills instead of performance. Intel didn't charge 20 more pounds for nothing.
But then, games generally does not (necessary) need high end CPU. 2600 will do you fine.
And if you do want to, say, video edit your game recordings, then the AMD's extra cores really helps.
(Or if you want to dip into AI, BigData, or enterprise development. Or install a few Android VMs and starts automated farming.)
10:29
At around 3 Ghz, the next tick begins to occur before the signal has completely propagated throughout the chip (reminder the signal is moving at the speed of light)
@Neil heh, light so slow!
@Sheepy I do run vms mostly docker containers at this point
It's kind of a hard wall for engineers to overcome, which is why you don't generally see anything faster (though marketers would have loved to have had "higher" hertz because people began seeing it correspond to performance)
and I hate having to kill apps
what i am trying to say is I'll run games without having killing anything
Then you'll appreciate the 12 cores lol. Even if half of them are fakes.
@Sheepy lol 😛
10:30
more cores doesn't mean better either
yes
I mean the 8400 and 2600 has same core count (physically)
fewer cores can mean more power per core
depends
if those cores are more powerful
if it's not a piece of crap, sure :)
For SSD, this ADATA SU800 is reasonably cheap and fast at 512G on amazon uk: uk.pcpartpicker.com/product/V3mxFT/…
10:32
I think 4 is a good compromise
but I know some hardcore gamers that wouldn't go for anything more than 2
Note that performance does not scale linearly with juice, so those cores will be getting a lot hotter for a modest (already generous) speed boost. Ultimately, slightly better single thread or massively more cores is a tradeoff you need to decide. Last year when I plan my new pc there wasn't Ryzen 2 so I picked Intel. Now I may pick AMD. I do process videos and run VMs.
I see no cooler, by the way. You may want to invest in a cooler to get more overclocking room. And perhaps downgrade to B350 motherboard to save some cost.
Intel tends to do better for cooling than AMD, but performance wise, they're pretty much neck and neck
I built a machine for my neighbour with 2600
it stays ok cool
but her workload was running tons of arch (like brick and mortar one architechture) apps side by side
@Sheepy I'll need a Ryzen 1st gen to boot
I read somewhere that the electricity consumed in circuits in a computer produces the exact same heat for that same amount of electricity invested in a resistance heater
some boards do not support the 2xxxs
10:42
which if you think about it, that's where all the heat comes from in a computer.. resistances
unless you upgrade the bios
@Neil and eddies
I suppose some might come from the spinning of the disk drive, but that's probably minimal
@ShrekOverflow For each board, check the board's cpu support list and get the right hardware revision. You will want to look at each board's loadout and spec before you decide anyway, yes?
@Sheepy Yes 😐
The one thing that puts me on Intel's side is TB3
because I already own TB 3 H/w
but its benefits on a desktop are none
PCIE is better anyway for any hardware I need and that ATX should have enough sapce
10:46
If you need to connect thunberbolt 3 then you don't have much options, true. Expansion cards are not exactly cheap.
11:05
I see that your list has switched to Intel XD Last word before I go: if you can find a bundle deal, for example from a local store, they can be cheaper than buying individually.
11:32
@jAndy To be fair, I broke mine and they sent me another :D
It took them a year but still
11:48
@Sheepy There are two lists
@Sheepy tell me more
what is this bundle deal you speak of, I am in UK, London so ... I should be able to get a local deal
12:18
AMD wins
ಠ_ಠ
Am i allowed to ask code related questions here relating to JavaScript? i made a question on stack overflow and i didn't want to spam the comments.
@ThomasTallman 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.
yes
@ShrekOverflow I miss a SSD for your OS
my school chromebook blcoked the link.
12:42
@KarelG its a 1 TB SSD
split it up
have two SSD
You mean get an M.2 ?
or that yes :P
OH HOLY SHMOKAMOLI
so i can ask a question?
12:43
I am stupid or something
@ThomasTallman yes
having a OS on a SSD involves much writes operations than usual.
Na na na
I have Quad channel memory
nah
I didn't think that'd apply to SSD too
there are OS updates + user caching
12:44
I can just have two SSDs
@KarelG yeah yeah
I get it, I am just amused at how I have 4 ram sticks
by having an OS exclusive SSD, you can replace it easily without having worrying about your SSD that contains your games
and yeah... those 4 ram sticks
and ... ssd wear
it took us forever to get a persistent but fast media for the pc
SSD is a godsend
Yeah
@KarelG what about it?
Do you suggest I got for 16 instead?
Ryzen loves fast memory vOv right?
that depends of the sticks itself. IT is a good choice, but I would stick with 2 RAM sticks
12:47
sorry back i have school work and stuff
@KarelG Why?
that is because ryzen has an integrated memory controller within its CPU
it serves dual channel for fast access
Oh?
Hmm then I might be able to switch the board itsef (why pay 2 extra slots)
so pretty much im making a clicker game and when the number gets really high there is a suffix that is added to it. The only problem is when i implement toFixed() to it, it doesn't work properly.
so there is a bit delay if you use two sticks on one channel. But that is negligible
12:48
gah 😬 this is so confusing
can i share some code?
I am just a purist :P
@KarelG so what you are saying is Ryzen will be faster for dual channel than quad channel
@ThomasTallman sure. Yet, if involves > 20 lines, please use a jsfiddle or something
12:49
whats jsfiddle XD sorry im kinda new to javscript
any website where oyu can share code
jsfiddle is one example jsfiddle.net
allows you to share code and us to see it
@ShrekOverflow AM4 does not support quad channel
and how do i show it to you
by the way the code im providing was given to me by a stack overflow question i made XD
12:51
@KarelG oh how fascinating so the motherboard is lying?
try to have a small showcase of the problem and save it
@ThomasTallman or give the SO link
@ShrekOverflow o.o?
@KarelG Tehy don't mention that its actually dual channel
(This is where my knowledge runs out)
> MEMORY CHANNEL | Dual
those 2 sticks are just bridged on a single channel lane. So yours 4 sticks forms a pair of 2 bridged sticks.
that is why I was "ermm" on the RAM thing
hold up im making it
brb - assisting co-worker
12:55
ok so for some reason it says increase is not defined. can u fix it or something?
idk why its doing that
i dont want to post all of my entire code because 1. its super long 2. that's it
a sec
and the problem is ... ?
now im going to send the new ink
do the same with that
the 10k button is so that you can see the suffixes work
just alter the load type to "wrap - bottom of body"
😉
but basically i want to put toFixed() into that
Red
Red
13:04
I'm storing a string in web browser local storage, when I hard refresh (control + F5) the string is wiped. Is that meant to happen?
> have two SSD
@ShrekOverflow ^
Kare ok thanks, now can you find a way to put toFixed() into that?
i want like 10.1k
it doesn't do that
@KarelG the second will follow, it'll probably be an HDD for 2TB or so
2TB is an overkill ... I have a 1TB for games.
Rarely gets full
@KarelG Its not for games
13:05
oh. ok
Its archival backups too
i have 3TB XD
at my house tho
my archives are on NAS
13:06
kare
@KarelG yeah don't want to spend all that yet
can u make the Formatter do things like 10.1k
😉
Red
Red
halp
13:07
give me time to go through your code ...
a lot wrong things there
:P
beginner in JavaScript?
yea
XD
also not even my code
i got it off of a stackoverflow question i asked
im ok with javascript i guess...
when ur done do u wanna play my game lol
Red
Red
I'm storing some user preferences on my website (colour scheme, name, font size), I want those preferences to stay the same when closing the site.

What's more suitable for this, cookies or localstorage?
ive seen a lot of people say cookies so im guessing cookies.
13:14
@Red localStorage
Since it doesn't go to your server that way and you have no GDPR issues.
ok nvm
im dumb :P
Red
Red
@BenjaminGruenbaum ironically my project is about GDPR
Otherwise in Europe you have to deal with people saying that it lets you identify the user
@ThomasTallman is there a reason for those suffices?
Not dumb, cookies is also valid
13:15
yea
when the number gets to like 150,000
@Red that is actually pretty ironic yeah
the code starts to lag
just display 10,003 instead of 10K3
lol
will get around that lag.
well i have an autoclicker
a sec
13:15
and it gets really fast
yeah. Why?
when u buy alot of them
just do +1 for each click
and when the number gets to 150,000 the autoclicker starts pausing
Red
Red
@BenjaminGruenbaum is localstorage only wiped when the cache is cleared?
13:16
well eventually the clicker game has to get into the thousands or else its not fun
@Red that's up for your browser and user, but localStorage persists between sessions of the same browser.
clicker game?
yeah
somewhat like cookie clicker
yknow how they do their suffixes
with the auto clickers
For example if the user is using safari in incognito mode there is no local storage
pfft I am a simple guy: use 1,500,003 instead of 1M 500K 3
Red
Red
13:21
@BenjaminGruenbaum that makes sense, I'm messign around with local storage now and a hard refresh (CTRL + F5) wipes the string saved in local storage
is that meant to happen?
but the code itself lags. maybe it wont lag because i recently changed from document.getElementById('number').innerHTML = number += 1 to number += 1
im not honestly sure.
but to be honest 1.5M looks cleaner than 1,500,000
OH! @KarelG a good example is if i have 10k, and i buy something for $500, like the autoclicker, then it stays at 10k.
thats why i want something like 9.5k
that toFixed thing. Always 1 decimal?
yeah
just 9.5k or 1.2M
toFixed(1)
i have to go in 10 mins ish
@ThomasTallman jsfiddle.net/ewvoq96j/1
added a button for 100k for easy simulation
thank you!
13:33
eventually you get 1.1M
yep
now i have to try to put this in my code
if i just replaced the origional part i pasted would it work?
nope XD idk how i can use this :/
is there any good tutorial for loopback 4 with mongodb?
@KareIG if i gave all of my code, would you be able to make everything work?
i gtg
?
13:49
As a precaution to avoid XSS attack... I was instructed to put a tag with attribute which is
<form autocomplete="off">
</form>
I was trying to insert a table inside it and chrome browser is not reflecting it.
anything I am doing wrong...
@CommonMan no
chrome ignores it.
(a controversial decision from people behind Chromium)
Kare do u think u can do that? or no
@ThomasTallman try to continue with what I have given. Should be straightforward
look at those "hundredthousand" functions and call it if you want to add money
2
im asking if i gave u all of my code, could you make it all work?
i can easily copy it into jsfiddle
This morning I started checking for this solution ... and figured out that chrome won't supprort but some where in the comments it was mentioned that above 46 version it will work. but unfortunately it's not. so what is the alternate to implete autocomplete to off... ? @KarelG

« first day (3092 days earlier)      last day (2081 days later) »