#1 SciTech Thread
people talk about AI and AGI, but if you look at the state of projects at github, it's all developing fucking slow with tons of issues created years ago, nobody had time to fix them
I can't see computers replacing humans soon
or maybe it will be completely new code, not the already created mess that's managed by humans by hand, at the end of 2023
>The main thread is considered "blocked" any time there's a Long Task—a task that runs on the main thread for more than 50 milliseconds (ms)
>If the task is long enough (anything above 50 ms), it's likely that the user will notice the delay and perceive the page as sluggish or janky
barely found some heuristics
in my case it should be less than 50ms, so async worker isn't necessary
but dunno, what if slow old android?
>MineDojo: open framework that turns Minecraft into an AGI research playground. We collected 100,000s of YouTube videos, Wiki pages, and Reddit posts for training Minecraft agents.
fucking retarded HTTP2 which fucks all links from the same domain if there's packet drop
retarded idiots who shilled that google shit trying to convince everyone this is somehow superior protocols
why it's all so retarded
hm, it was HTTP3 which is UDP and should be fine
maybe Chrome is shit
its also extremely hecking difficult to handle in wireshark talk about troubling times trying to connect request to a response
though with http3 you cant see or do anything at all in sharkie so gotta disable it in browser feature flags
disable both http2 and http3 then
>wireshark
smartchingu
if only
>sharkie mentioned
>HTTP/2 is enabled by default and domains on Free plans cannot disable it.
>32.100ms
oh yes, I've found a way to make it 30+ ms with complicated query
so on a mobile it would perfectly be 50+ ms
so Worker wasn't useless
how do people use discord, it's a fucking mess
my brain hurts after just 5 minutes of using it, fucking information and visual noise everywhere
my google searches "how to disable X in discord" show that a lot of people having struggle with the noise
but devs probably keep all those annoying features so that normies don't miss something
https://support.discord.com/hc/en-us/community/posts/360048489252-Mute-all-channels-but-one
not possible to mute all server except one channel
https://github.com/plotly/plotly.js/blob/master/package.json#L72-L122
plsno
actually left join aggregate and group by every other column is still ass
gotta make the actual query a subquery, then left join and aggregate outside of that. took me from 13 seconds to 200ms
i'm le machecking stupid
the absolute state of npm
├─┬ d3@7.8.5 │ ├─┬ d3-array@3.2.4 │ │ └── internmap@2.0.3 │ ├── d3-axis@3.0.0 │ ├─┬ d3-brush@3.0.0 │ │ ├── d3-dispatch@3.0.1 deduped │ │ ├── d3-drag@3.0.0 deduped │ │ ├── d3-interpolate@3.0.1 deduped │ │ ├── d3-selection@3.0.0 deduped │ │ └── d3-transition@3.0.1 deduped │ ├─┬ d3-chord@3.0.1 │ │ └── d3-path@3.1.0 deduped │ ├── d3-color@3.1.0 │ ├─┬ d3-contour@4.0.2 │ │ └── d3-array@3.2.4 deduped │ ├─┬ d3-delaunay@6.0.4 │ │ └─┬ delaunator@5.0.0 │ │ └── robust-predicates@3.0.2 │ ├── d3-dispatch@3.0.1 │ ├─┬ d3-drag@3.0.0 │ │ ├── d3-dispatch@3.0.1 deduped │ │ └── d3-selection@3.0.0 deduped │ ├─┬ d3-dsv@3.0.1 │ │ ├── commander@7.2.0 │ │ ├─┬ iconv-lite@0.6.3 │ │ │ └── safer-buffer@2.1.2 │ │ └── rw@1.3.3 │ ├── d3-ease@3.0.1 │ ├─┬ d3-fetch@3.0.1 │ │ └── d3-dsv@3.0.1 deduped │ ├─┬ d3-force@3.0.0 │ │ ├── d3-dispatch@3.0.1 deduped │ │ ├── d3-quadtree@3.0.1 deduped │ │ └── d3-timer@3.0.1 deduped │ ├── d3-format@3.1.0 │ ├─┬ d3-geo@3.1.0 │ │ └── d3-array@3.2.4 deduped │ ├── d3-hierarchy@3.1.2 │ ├─┬ d3-interpolate@3.0.1 │ │ └── d3-color@3.1.0 deduped │ ├── d3-path@3.1.0 │ ├── d3-polygon@3.0.1 │ ├── d3-quadtree@3.0.1 │ ├── d3-random@3.0.1 │ ├─┬ d3-scale-chromatic@3.0.0 │ │ ├── d3-color@3.1.0 deduped │ │ └── d3-interpolate@3.0.1 deduped │ ├─┬ d3-scale@4.0.2 │ │ ├── d3-array@3.2.4 deduped │ │ ├── d3-format@3.1.0 deduped │ │ ├── d3-interpolate@3.0.1 deduped │ │ ├── d3-time-format@4.1.0 deduped │ │ └── d3-time@3.1.0 deduped │ ├── d3-selection@3.0.0 │ ├─┬ d3-shape@3.2.0 │ │ └── d3-path@3.1.0 deduped │ ├─┬ d3-time-format@4.1.0 │ │ └── d3-time@3.1.0 deduped │ ├─┬ d3-time@3.1.0 │ │ └── d3-array@3.2.4 deduped │ ├── d3-timer@3.0.1 │ ├─┬ d3-transition@3.0.1 │ │ ├── d3-color@3.1.0 deduped │ │ ├── d3-dispatch@3.0.1 deduped │ │ ├── d3-ease@3.0.1 deduped │ │ ├── d3-interpolate@3.0.1 deduped │ │ ├── d3-selection@3.0.0 deduped │ │ └── d3-timer@3.0.1 deduped │ └─┬ d3-zoom@3.0.0 │ ├── d3-dispatch@3.0.1 deduped │ ├── d3-drag@3.0.0 deduped │ ├── d3-interpolate@3.0.1 deduped │ ├── d3-selection@3.0.0 deduped │ └── d3-transition@3.0.1 deduped
>Trying to simulate three spatial dimensions on a flat screen will always be imperfect and make it difficult to read the data. However, it is very easy to graph three different data dimensions in D3. You use the horizontal and vertical layouts for two of your data variables, and then size, shape, color or shading for your third variable.
>If all three of your data variables are best represented by continuous numbers, then your best approach is to use a bubble-scatterplot, where your three display dimensions are horizontal positions, vertical position, and bubble size.
isn't it lame to omit third dimension just because "it's hard to display"
I'm actually thinking about 4D graphs, probably people already tried to display that too
https://www.desmos.com/calculator/ivk5qvhozf
https://www.desmos.com/calculator/kmmqs0eexd
>4D slider
oh, this makes sense
혼자 하지마!
why is she so fat?
baby?
I like something more energetic like
https://www.youtube.com/watch?v=S5LvhKbsHWU
not very realistic
when something doesn't work, I don't hold my head with hands (implying it's my issue), I swear like crazy to the screen, implying another stupid engineer made that happen to me
https://www.youtube.com/watch?v=SEwTjZvy8vw
they talk about advanced compiler stuff too fast, have to pause all the time
made query which runs for 600ms
and I was thinking it's too fast
queries suddenly become scary when theres a million row dataset
I just made it too stupid
run complex regexp on every entry instead of running it once for all items (realized it later)
even simple context menus you have to build from absoluut scratch on the web i guess there was a reason peope use those component libraries from the start
try https://flowbite.com/docs/components/speed-dial/#dropdown-menu
don't need library, just copy-paste few lines of HTML
kpop isn't getting younger it seems
so uh if you have a component with bg-blue-500 and then use the component and add some class like bg-red-500 so it becomes
class="bg-blue-500 bg-red-500"
theres no logic to which rule is usedso you cant override things
it's over
yeah, you have to use something like
<div classList={{ "bg-red-500": p.error, "bg-blue-500": !p.error }}>
but you cant
<my-thingie class="bg-red-500">
yeah, I'm just thinking about that problem
the inheritance is very hard and brittle, because you can change some small thing in child component and break parent component which depended on something
better is to copy-past the full component and change it where you use it
or only accept props which can't break thing later
copy-paste isn't ideal but safer
well, they discovered it in Java decades ago, basic design patterns like https://en.wikipedia.org/wiki/Composition_over_inheritance
>small thing in child component and break parent component
err, I meant change base component and break child component
css always prefers the latter rule so I thought classes would be the same
but no now I don't feel so good
no quick fixing components in certain context, gotta bake some gigalogic into the component itself to take care of those situations
>so I thought classes would be the same
they are. you just have no control in which order tailwind put whose bg-red and bg-blue classes in the CSS it emitted
or maybe you can, just look at how it does it but anyway, not a good idea to depend on it
>bake some gigalogic into the component
yeah, oh copy-paste & change your private copy without the risk of breaking anything
the downside is that those implementations may drift and you won't have consistent look across web app
but I dunno how to do it better anyway, just unsolvable problem of software development in general
>they are
I mean classes in the CSS, not classes in HTML tag
https://www.youtube.com/watch?v=NrQkdDVupQE
I lost it on the black woman part
anyway, after using it for a while, it doesn't see too good. just a bit faster autocomplete
chatting helps only for simplest tasks and autocompletion mostly works for simple repetitive tasks
maybe I'm using it wrong, but often it's faster for me to type what I wanted myself, when wait few hundred ms while it autocompletes what it thinks would fit. because it might autocomplete not the thing I wanted and I actually lost 300ms waiting (I know I can type instead of waiting, but something inside me wants to let it think instead of abusing it with keystrokes or maybe because if you type too much it might not autocomplete at all. need more practice)
also doesn't help much with tinkering with existing code because if you edit inside string it seems to ignore that. only if you adding something at the end of the line
tldr; product is delivering 20% of what marketing promised, as usual
hopefully i'm still measuring the right thing but
omo
what model are you using?
are you tagging kpop photos?
is it a graph making thing then is cool
not only
you will see soon
what is a selca if you really think about it
selfie?
self-camera maybe
are photos by manager included
>A selfie is a self-portrait photograph
>A self-portrait is a portrait of an artist made by themselves
=> no
I wrote horrible messy code
does it work?
either
1. I have to put too much component-specific logic into the unrelated component
2. Or my component won't properly react to the state changes made by other components
my abstractions suck
dunno how to separate components and still make them behave nicely together
just wanting to do it beautiful
ok, I think I cracked it my mutating the state in other component instead of immutable shallow replace
hackish but works
I think that's a bit better than putting unrelated logic
things are a bit complicated when you deal with declarative reactivity
have to always remember to make everything declarative otherwise things might go out of sync
on the other hand, imperative UI is a fucking unmanageable mess which is much worse
maybe you can combine by using mostly reactivity but sometimes imperative approach?
some people online seem to swear by a single application or api as the only interface to the database.
makes me curious how I might make that work. currently all pieces of archiver (twatter, tistory, youtube etc) are their own programs that directly access the database
if i had a single database api all the archivers would have to work via post requests to the database owning app, but if i did manage all that i could then try using sqlite instead of postgres. that might be fun
hopefully rubber duck has some ideas about this while i try to remember how my code works, might be the dumbest refactor ever
>currently all pieces of archiver (twatter, tistory, youtube etc) are their own programs that directly access the database
so you have copy of database wrapper objects/queries in every app? sounds not very effective
you may make small private library which all those apps use which abstracts the DB access
or just merge all those sub-apps into a single project, optionally accessed by different CLI utils. or maybe just a single one like
./app subapp1 --args
,./app subapp2 --args
abstracting DB access with HTTP API may work, but dunno, sounds more complicated than shared DB code
>i could then try using sqlite instead of postgres
sqlite is only for small databases
you had problem with query performance, you probably have more data than what's suitable for sqlite
may try nosql like mongodb if you don't care about normalization/transactions much
which may be true for simple archiving apps which just store metadata
people tend to hate mongo but SQL feels meh every time I use it, so much useless dancing around the data
and the DB daemon itself is too complex, requires monitoring, tuning, etc
but seems inevitable for reliable data storage, mongo and other nosql trash isn't there
lowendtalk is one of the shittiest forums I've seen ever
worse than facebook
yet many people share valuable info there
https://news.ycombinator.com/item?id=31886907
pain
>This is a consequence of how DisplayPort is designed, so most DisplayPort monitors will behave this way. If you don't want this behavior, don't use DisplayPort.
>DVI and HDMI provide a small 5 V power line from the source to the display. This provides a minimal amount of power to the display so that its identification data can be read. Since this power is provided by the source device, it does not depend on the power or state of the display. Even if the display is completely unplugged from the wall, the source will be able to read it and see that a display is attached.
but HDMI doesn't work well in macOS either
https://www.youtube.com/watch?v=Z1EqH3fd0V4
but there is a fix
not sure I want to thinker with configs that much
I bought mouse with bluetooth connection because I didn't like the dongle
but then I also bought monitor with usb-c and hub so I can connect mouse's dongle there and have just one cable
what do
maybe return the mouse? but I hate returns
also bought that thing
spending too much money on electronics this month
macos is dumbo
just to use it remotely on a 4k monitor you need to attach it into another 4k monitor or download some rando's binary from github that creates a virtual display that has a proper resolution
mouse usb dongles are so comfy, i was looking at usb dongled headphones earlier to avoid bluetooth memes but they all seem to include a charger so they are too big. i'll have to keep using the bluetooth headphones and bare the magical times every week or so when they stop working for absolutely no reason for half an hour
i've even moved in the middle so it can't be some electromagnetic mystery device my neighbor uses at random times
>to avoid bluetooth memes
well dongles also use 2.4 GHz, just with a proprietary protocol instead of bluetooth. but maybe that gives them a bit of freedom to implement the connection better. or maybe worse, how can we be sure they tested it in all possible scenarios like when you have many 2.4 GHz wifi AP around
I remember reading reports where people were having issues with multiple Logitech dongles conflicting with each other or something like that...
also I'm not sure the dongle will work OK if I connect it to the pic. I mean what if it's metal parts inside the monitor so the signal won't go through (I had that issue with bluetooth adapter connected to the back of my PC before)
well, can just test, the only problem is that I will receive bluetooth mouse sooner than the monitor so less time to return the mouse if the dongle + monitor solution works also the mouse is nice, can't choose between being cheep and playing with a new toy. welp
i have that monitor except with ergo stand logitech maus dongle at the back of this thin monitor works extremely normally even if i go 10 meters away (microwaves go baunsi bauns https://www.youtube.com/watch?v=QqggrSpICM0)
i mostly like dongles since you can switch the computer with the click of a kvm, but avoiding all the bluetooth issues makes them amazing. devices with wireless receiver have existed for a long time, maybe they are just more polished
>i have that monitor except with ergo stand
which model?
>microwaves go baunsi bauns
dunno, my old bluetooth adapter definitely couldn't go through the metal PC case. maybe because of very low powered transmitter tho, logi dongle could be better (because wave loses energy when it's reflecting, compared to when you have the transmitter in a line of sight).
but I believe you, logi adapter will probably work well. welp, should I return the mouse then
>but avoiding all the bluetooth issues makes them amazing
dunno, bluetooth works mostly fine for me. at least much better than occupying port of the notebook with a dongle. people use usb docks but I don't trust those things to carry signal to my monitor, it doesn't work well even if I connect it directly... or maybe if it's a very expensive thunderbolt hub then should be fine...
>thunderbolt
>thunder thighs
correlation?
lg ergo 32"
i use a regular ol' usb 2.0 switcharooni as my kvm for mouse mic and keyboard, these bad boys don't need some mega bandwidth thingymagic
just tested the dongled directly in the back since you wanted to kno
LG 32UN880-B?
I thought about buying it too
but 32" with same 4K has less PPI also I have another 27" so decided should be ok with 2x27
also I didn't read any reviews or anything. just saw the BF deal, checked that it's relatively ok and just bought. compulsive purchase
>these bad boys don't need some mega bandwidth thingymagic
I mean when you carry several display signals (4K@60 requires 12.5Gbps), the power and also few USB2.0/3.0 devices such as dongles/external disks through the single cable
if you connect display and dongle separately then you don't need dock
>as my kvm for mouse mic and keyboard
why do you need that? Linux + Windows?
oh no, I checked, I would have to pay for delivery cost for returning the mouse
which will cost me 30% of the price of the mouse
what do, it would be easier just to keep it
oh, I found another way
I can just don't receive it and it should be sent back without additional cost
I think I will try it
i need scaling even on 32" blind nim at your service
maybe if you have use for it, i just use desktop so no need for dongle less devices
>so no need for dongle less devices
I have a need for free ports because it sucks to disconnect everything every time I want to work in different place
so monitor's dock should help me with that, don't need bluetooth mouse. and I quite like my current mouse anyway (g305)
but having the new cool mouse would be great too, you don't need to replace batteries there because it has battery. and it also has horizontal scroll wheel which is useful sometimes. not sure yet
grug no understand thunderbolt
yeah i share code currently
sqlite would be fine for me at millions of rows scale
the performance problems were due to me dumb ass aggregating related data for each row while seeking instead of after it
>nosql
i'm not that crazy sql database integrity checks save me from a lot of trouble
some datalog database might be interesting tho if it existed but not that massive java daemon called datomic>requires monitoring, tuning, etc
another reason sqlite would be nice but the rewrite would be massive so i'll just continue dreaming for now
what about 꿀벅지
but they are becoming smaller
here is more visible
but probably just lack of data
not because of height/age correlation btw
spent few hours setting this up
I planned to put secondary monitor on the right, but power cable isn't long enough because plug is on the left. have to put it on the left
also seems like main horizontal + secondary vertical would be better layout, because 2x27" horizontal require too much neck work
but if secondary is vertical then power cord may be enough to put it on the right. or many use cord extension. dunno
anyway seems like no much difference if secondary on the right vs on the left
also the new moni setup doesn't play well with my deck lamp had to unmount it. I use it rarely but sometimes it's useful
seems like people put secondary on the left
maybe because main = strong hand = right
secondary = left
people use notebooks in clamshell mode, have to buy stand, keyboard, can't use internal panel, can't use speakers, can't use fingerprint button, have to setup brightness/volume buttons with new keyboard
why would you do that only to avoid neck pain? maybe it's better to train neck muscles
https://www.youtube.com/watch?v=Dvt7ZPL15xU
Ning looks great in vertical orientation
but vertical monitor seems not very useful
once you open some page which is supposed to be watched in landscape mode, the UX become shitty
even if you have main monitor in landscape, seems like it's better to have secondary in landscape too
should I buy mx keys mini + laptop stand tho?
I couldn't get used to double monitors so i just go with the one at least i can pivot for the ningies when necessary
maybe if there was a fun litl monitor that was as tall pivoted as my main monitor landscaped with the same ppi and i managed to avoid the cable hassle somehow
just simply buy an apple external keyboard with apple t2 security chip and touch id
>I couldn't get used to double monitors so i just go with the one
I just wanted 4K monitor because macOS doesn't play well with 1440p monitors (because it can't into sub-pixel rendering). and since I already have one, then it would be 2
also I currently use internal screen + external monitor and it's not always enough to put all windows I want (when developing you often need many windows open). so 3 (2 external + 1 internal) seems like the absolute minimum
>i can pivot for the ningies when necessary
dunno, feels like a chore to rotate it back and forth even if you have a nice stand. better to have separate portrait monitor if you need it often. but seems like in reality vertical monitors aren't very useful
>with the same ppi
does it matter? at least macOS doesn't care if different monitors have different PPI
>i managed to avoid the cable hassle somehow
that thingie >>997402 has a nice niche for cable management
too expensive
also, I don't understand why do they use clamshell mode with separate keyboard if you can type on notebook's keyboard and look into external monitor. weird
>too expensive
hm, just checked, actually just few dollars more than mx mini
logitech nim is too greedy
but there's also MX Keys Mini Combo with mx anywhere mouse
uh huh, shouldn't have looked into the keyboard/mouse stuff
I was fine with my current mouse, now I want all the new shiny stuff

yeah! apple peripherals are actually very cheap you wouldn't want apple peripherals division to lose revenue would you
weird video, why do they compare thunderbolt 4 (which can deliver 40Gbps) with some random USB-C which is probably just 10Gbps
but definitely you can find cheaper than Apple's on aliexpress. but it wouldn't be very cheap either
also I just said that logitech accessories are pretty expensive (at least the hyped one like mx mini/mx master series). I didn't say that apple's accessories are cheap
also there's error in the video. when they talk about amazon's cable they say there's no IC inside and that it's fine to charge stuff
but to charge over USB-C you have to have controller
stupid video
>hyped
keyboard hype huh
https://youtu.be/HzDN8vT2u1M?t=485
this would solve half my problems with blutooth at least
>the webm
>this would solve half my problems with blutooth
what? the dongle?
change device with a button
oops it was https://youtu.be/HzDN8vT2u1M?t=387
it was copy current time like the text says not copy time to where cursor is located
oh yeah, some bluetooth devices support multiple paired devices
omo Juri!
also you didn't answer why do you need multiple devices
hey!