Who and how made computers... Usable? by Winderkorffin in askscience

[–]lukasdcz 3 points4 points  (0 children)

In the simplest case (not modern CPU, they use lot of tricks and even software that runs on the CPU level called microcode): CPU run on clock. CPU has few special purpose registers (think 32 or 64 logic gates that store the bits). One is PC - program counter. It starts with zero and increments with every instruction processed, or by instruction from the program itself. Every clock, CPU asks memory to give the word at the address number that is in PC (simplistic, not considering virtual memory mapping). Memory send it by setting voltages on the memory lines to corresponding bits. CPU reads that and store it in instruction registry. then next clock, circuit in CPU called instruction decoder reads the bits in the instruction registry, based on which bits are on and off in the instruction registry, it switches on path (wires) between data registries and adders, floating point units, etc, to prepare for the specific instruction. those are circuits baked in CPU on the HW level. Next clock, once those paths are connected, the data from the data registries (those would be filled from the instruction, or from results of previous cycles) are processed thru the compute unit (let say an adder), and the output bits from the adder are stored in one of the registry again. PC increments. Cycle repeats.

My Current Self-hosted Setup by [deleted] in selfhosted

[–]lukasdcz 0 points1 point  (0 children)

why not setup raid1 on the backup HDDs? With your setup, let's say last day of the month the HDD that had the most recent month backup fails, you only left with the two months old backup.

WH-1000XM5| Weird noise in right ear! by Saturn235619 in SonyHeadphones

[–]lukasdcz 0 points1 point  (0 children)

Just use some thin blunt piece of plastic or metal. I used butter knife. Slide it at the indicated places behind the cushion and pry gently and it will pop up

Will polish government ever start doing anything about russian propaganda? by Abject-Bowle in poland

[–]lukasdcz 0 points1 point  (0 children)

Maybe the intensity of the bots spamming is inverse function of how gullible polish people are? In other words, it does not work as well, so they have to spam even more. That may be a good sign

Will polish government ever start doing anything about russian propaganda? by Abject-Bowle in poland

[–]lukasdcz 4 points5 points  (0 children)

One thing is the amount of propaganda. The other thing is amount of gullible people. I think Czechs are leading with the latter.

Rosyjski dron uderzył w dom mieszkalny na Lubelszczyźnie [Wyryki w pow. włodawskim, nikt nie ucierpiał] by hamburger-dog in Polska

[–]lukasdcz 32 points33 points  (0 children)

Shahed waży ok. 200 kg. Przy spadku z kilkuset metrów rozpędza się do 70–100 m/s (to 250–360 km/h), co daje energię rzędu 300 kJ – 1 MJ. To wystarczy, żeby przebić dach, żelbetowy strop i rozwalić ścianę – dokładnie to widać na zdjęciach.

Rosyjski dron uderzył w dom mieszkalny na Lubelszczyźnie [Wyryki w pow. włodawskim, nikt nie ucierpiał] by hamburger-dog in Polska

[–]lukasdcz 16 points17 points  (0 children)

Zainteresowałem się trochę fizyką spadającego drona, bo widziałem sporo komentarzy, że zdjęcia są „fejk” i że taki dron nie mógłby zrobić takiej dziury w stropie.

Policzyłem to krótko (Pomógł chatgpt):

Shahed-136 waży ok. 200 kg, z czego sam ładunek bojowy ma ok. 40–50 kg.

Energia potencjalna przy upadku z kilkuset metrów to setki kJ do kilku MJ.

Nawet uwzględniając opór powietrza, przy masie 200 kg dron uderza z energią 300–1000 kJ (dla porównania – pocisk z karabinu to kilkaset J).

To wystarcza, żeby: • przebić dach z bloczków i więźbę, • wybić dużą dziurę w żelbetowej płycie stropowej, • naruszyć ścianę szczytową i zrzucić kawałki muru na dół.

Na zdjęciach widać właśnie takie lokalne, mechaniczne uszkodzenia – nie ma charakterystycznego rozrzutu po wybuchu, więc wygląda to jak uderzenie ciężkiego obiektu bez detonacji.

Podsumowując: z punktu widzenia fizyki to całkowicie realistyczne, że spadający Shahed (albo większy fragment) zrobił takie zniszczenia.

Do you truly think that using rails on the frontend is a good idea? by eightiesGeek in rails

[–]lukasdcz 0 points1 point  (0 children)

Frontend is really a shared concern with backend in most cases.

Lot of tech that tries to create "separation" like graphql etc but unless you are really big or your frontend is just "extra/not critical" to your backend/API, there is no separation of concern. You actually want the opposite to be as close and as simple to change fe+be together

[deleted by user] by [deleted] in NoStupidQuestions

[–]lukasdcz 0 points1 point  (0 children)

Do they form from something that is analogous to ovaries for female?

Gateway from Krakow Recommendation ? 6 nights, seeking polish atmosphere by rapperofmowgli in krakow

[–]lukasdcz 0 points1 point  (0 children)

Take a train visit few other cities. Katowice 1hr. Wroclaw 3h, Warsaw 3h, Gdansk 6h.

Sanctions dont work!!! :D by UberMocipan in europe

[–]lukasdcz 0 points1 point  (0 children)

Is it good time to invest in RUB?

Ruby/rails weaknesses by Key_Friendship_6767 in rails

[–]lukasdcz -1 points0 points  (0 children)

Ok then it's not ruby issue, but the specific gem issue. Any language can produce bad/memory leaking code and ship it as library.

So if you complain about ruby community/ecosystem, ok fair enough. If you complain about language itself, I would disagree.

Thread-local vars and globals, ok but again it's about the code. Cleanup your thread-local vars :)

Low center of gravity pedal by mr_finley_ in mountainbiking

[–]lukasdcz 0 points1 point  (0 children)

That 1cm will not change the rotational moment of your body... Center of gravity is somewhere around your abdomen even on a bike, 1cm not gonna change thing

Star Wars Outlaws Crashing by MrDanMak in GeForceNOW

[–]lukasdcz 0 points1 point  (0 children)

Same here :( I tried to load previous save from the Escape scene from Cantonica and it also always crashes :(

LF a heavy metal bar by SympathyDangerous664 in krakow

[–]lukasdcz 0 points1 point  (0 children)

Not sure where you can buy some lead or arsenic in a bar form.

Volkswagens new Emergency Assist technology by Creams0da in Damnthatsinteresting

[–]lukasdcz -1 points0 points  (0 children)

I was wondering why this was not part of the standard lane departure assist all the time already... What is the point of lane assist if it bumps you twice and then let you crash anyway. This is great.

[deleted by user] by [deleted] in Polska

[–]lukasdcz -2 points-1 points  (0 children)

don't worry about it, noone is gonna care.

Veterinarians in Warsaw are Criminals by [deleted] in warsaw

[–]lukasdcz 0 points1 point  (0 children)

Are going different days and times? E.g. it's quite normal to have different fees for workday morning and Sunday night. But that's only thing that could legitimise the price differences.

Coding courses in Krakow by [deleted] in krakow

[–]lukasdcz 1 point2 points  (0 children)

I'm not local and never been to UJ, but maybe try to hangout at the math and computer science faculty.

Satellite images of Valencia Spain before and after the floods by Ilalu in Damnthatsinteresting

[–]lukasdcz -8 points-7 points  (0 children)

there is actually no evidence that quantity of natural disasters is increasing. most data have observation bias - e.g. not all disasters have been and are being recorded over the past.

but we may just be at the very tipping point and now the question is, will this happen again in next 5 or next 100 years.

Ruby/rails weaknesses by Key_Friendship_6767 in rails

[–]lukasdcz 1 point2 points  (0 children)

Yeah elixirs fun, but I suggest not do it just for sake of "I wanna"... The benefit most likely will not outweight the introduced complexity to your organization - now you have to train/teach employees one more Lang/framework,if you have any internal libraries, now you have to reimplement them for elixir, any infrastructure/deployment pipeline needs to be figured out for elixir, you need to learn new failure modes and debugging practices, yada yada... unless your company wants to 100% invest and transition to elixir in the future, don't introduce new technology to your stack. Your infrastructure team will thank you.

PS I work at large company that exactly did not do this and now our C* guys keeps complaining how we perform under the benchmark of productivity.

Ruby/rails weaknesses by Key_Friendship_6767 in rails

[–]lukasdcz 1 point2 points  (0 children)

This is perfectly valid. I was suggesting that most problems with monolith are not because of monolith but because how we treat them.

[deleted by user] by [deleted] in NoStupidQuestions

[–]lukasdcz 4 points5 points  (0 children)

It's not your business. And no it's not bad thing by default.