All boardsБлинчикиInternationalКрендельнаяЛес

#1 SciTech Thread


#976927

#1 SciTech Thread

1920×10803.67Mb00:08

Kpop science and technology here!

195 posts and 83 files omitted
See all
#994850

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

#994852

https://web.dev/articles/tbt

>

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?

#994857
>

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.

#995071

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

#995074

>>995071

hm, it was HTTP3 which is UDP and should be fine

maybe Chrome is shit

#995075
1280×7202.08Mb00:07

>>995071

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

#995079
2048×1364172.77Kb
>

sharkie mentioned

#995118
1048×9901.34Mb00:02
>

HTTP/2 is enabled by default and domains on Free plans cannot disable it.

#995130
640×600357.73Kb00:02

>>994610

>>994852

>

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

#995307

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

#995312

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

#995519

>>994710

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

#995521
1280×72079.77Kb

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
#995531
1600×24001.25Mb
>

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

#996209
1560×876115.61Kb

why is she so fat?

baby?

#996319
1500×2251440.95Kb

>>996179

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

#996469

made query which runs for 600ms


and I was thinking it's too fast

#996517

>>996469

queries suddenly become scary when theres a million row dataset

#996518

>>996517

I just made it too stupid

run complex regexp on every entry instead of running it once for all items (realized it later)

#996520

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

#996673

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 used

so you cant override things

it's over

#996677

>>996673

yeah, you have to use something like


<div classList={{ "bg-red-500": p.error, "bg-blue-500": !p.error }}>
#996683

>>996680

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

#996685

>>996683

>

small thing in child component and break parent component

err, I meant change base component and break child component

#996686

>>996683

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

#996688

>>996686

>

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

#996689

>>996688

>

they are

I mean classes in the CSS, not classes in HTML tag

#996723
850×100662.33Kb

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

#996799
270×1106.34Kb

>>978550

hopefully i'm still measuring the right thing but

omo

#996802

>>996799

what model are you using?

are you tagging kpop photos?

#997119

>>997118

>

A selfie is a self-portrait photograph

>

A self-portrait is a portrait of an artist made by themselves

=> no

#997126

>>997124

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

#997129

>>997126

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

#997130

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?

#997148
4096×27311.39Mb

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

#997154

>>997148

>

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

#997156

>>997148

>

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

#997169

lowendtalk is one of the shittiest forums I've seen ever

worse than facebook

yet many people share valuable info there

#997336
>

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

#997377

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

#997402
1000×1000112.02Kb

also bought that thing

spending too much money on electronics this month

#997608
1440×1800295.02Kb

>>997324

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

>>997377

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

#997616
2623×1475305.73Kb

>>997608

>

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

#997618
1440×1800313.44Kb

>>997616

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

#997620

>>997618

>

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...

#997622
1000×1300258.65Kb
>

thunderbolt

>

thunder thighs

correlation?

#997623
1440×1800236.18Kb

>>997620

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

#997626

>>997623

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?

#997631
1280×720685.87Kb00:03

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

#997633

>>997631

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

#997643
3072×40962.09Mb

>>997626

i need scaling even on 32" blind nim at your service

>>997631

maybe if you have use for it, i just use desktop so no need for dongle less devices

#997682

>>997643

>

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

#997740
2731×40961.47Mb

>>997154

yeah i share code currently

>>997156

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

#997881
1580×89668.16Kb

>>997880

here is more visible


but probably just lack of data

#997883
1580×820126.09Kb

>>997881

not because of height/age correlation btw

#997931
720×12801.42Mb00:14

>>997402

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

#997932
1280×72048.39Kb
1280×72047.47Kb

seems like people put secondary on the left


maybe because main = strong hand = right

secondary = left

#997935

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

#997936

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?

#997971
3024×40321.81Mb

>>997936

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

#997973
608×10802.92Mb00:10인싸들의 계단 올라가는 법 <https://www.youtube.com/watch?v=UeruzOtlJ8g>

>>997935

just simply buy an apple external keyboard with apple t2 security chip and touch id

#997974

>>997971

>

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


>>997973

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

#997975

>>997974

>

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

#997977

>>997976

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

#997980

>>997976

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

#997982

>>997981

>

the webm


>

this would solve half my problems with blutooth

what? the dongle?

#997985

>>997983

oh yeah, some bluetooth devices support multiple paired devices


omo Juri!

#997986

>>997984

also you didn't answer why do you need multiple devices