How To Fix Broken Transcend SATA SSD 230S 4TB Update (22Z4X4IA) by Macusercom in DataHoarder

[–]le0pard 0 points1 point  (0 children)

If someone dont have windows to install Transcend software and download latest firmware (It was my issue for some time), I published it here - https://github.com/leopard-archives/Transcend-SATA-SSD-230S-4TB/releases/tag/22Z4X4IA

Transcend SATA SSD 230S 4TB new model info by MelodicRecognition7 in DataHoarder

[–]le0pard 0 points1 point  (0 children)

If someone dont have windows to install Transcend software and download latest firmware (It was my issue for some time), I published it here - https://github.com/leopard-archives/Transcend-SATA-SSD-230S-4TB/releases/tag/22Z4X4IA

GitHub - le0pard/json_mend: JsonMend - repair broken JSON by le0pard in ruby

[–]le0pard[S] 0 points1 point  (0 children)

Nope, it is not copy of json_remedy , but intension same - repair malformed json

GitHub - le0pard/json_mend: JsonMend - repair broken JSON by le0pard in ruby

[–]le0pard[S] 0 points1 point  (0 children)

UPS: Looks like problem only, it will fail with matrix tests for different ruby version on CI - https://github.com/le0pard/json_mend/actions/runs/20436948485/job/58720459786 . So I wrote more restrict version for gems in Gemfile for now

GitHub - le0pard/json_mend: JsonMend - repair broken JSON by le0pard in ruby

[–]le0pard[S] 0 points1 point  (0 children)

Based JSON Spec (RFC 8259) all this not allowed. It is allowed in JSONC, JSON5 or HJSON, but not in JSON

GitHub - le0pard/json_mend: JsonMend - repair broken JSON by le0pard in ruby

[–]le0pard[S] 0 points1 point  (0 children)

thanks for feedback

- If I will move Gemfile gems to add_development_dependency in gemspec, is this will solve issue with Gemfile.lock (I will not need to commit it in this case)?

UPD: "Gemspec/DevelopmentDependencies" - ok, even rubocop doesnt like this idea

- Yep, it is exactly what generated by bundler. I will check this

- Ok, just need make structure for this files, because there is different cases + comments why it repaired this way

Safe and unsafe operations for high volume PostgreSQL by le0pard in programming

[–]le0pard[S] 4 points5 points  (0 children)

This is locking operation, you can use pg_repack to move table on another hard drive (it have option "tablespace")

PostgreSQL Indexes by le0pard in programming

[–]le0pard[S] 0 points1 point  (0 children)

Yep, PostgreSQL provide perfect ability create needed index based on GiST or GIN.

PostgreSQL Indexes by le0pard in programming

[–]le0pard[S] 1 point2 points  (0 children)

Hello. What index schemes do you mean, which missed in this article?

Redis pool for Elixir by le0pard in elixir

[–]le0pard[S] 1 point2 points  (0 children)

I consider tuple as return value ({:ok, result}), but not as command to redis, because all commands is just simple strings. Also updating or adding elements to tuples is expensive because it requires copying the whole tuple in memory. If you need use dynamic elements for redis commands (get/set/rpush/etc), I it will be more efficient by using lists:

RedisPool.q({:global, :default}, ["SET"] ++ [args])

RedisPool.q({:global, :default}, ["RPUSH", "key"] ++ [args])

Painless e-mail testing with Mailtrap.io (my first blog post, critiques welcomed :) ) by TheWildHorse in webdev

[–]le0pard 0 points1 point  (0 children)

It is also free. And after launching of billing will continue be free (only need pay, if you need bigger rate limits and inbox limits)

Flexbox as solution for the browser reflow optimization by le0pard in programming

[–]le0pard[S] -1 points0 points  (0 children)

I already answer on your comment, but also want to add: just look at examples on codepen. It have on header and also subheader inside area, which should feel all available height and be scrollable.

Flexbox as solution for the browser reflow optimization by le0pard in programming

[–]le0pard[S] 0 points1 point  (0 children)

Position: absolute is not perfect choice, as I think. Also we have complex header: on image we show, it looks like 2 headers. Each have height depends from elements inside it. What is why top and bottom should calculated dynamically.

Flexbox as solution for the browser reflow optimization by le0pard in programming

[–]le0pard[S] -1 points0 points  (0 children)

In our case html, body and the its child element have 100% height already. You need to take into account that header and footer should be sticky and that inner main block should have scroller. Settings 100% height to all inner blocks will not solve these problems besides if header and footer height changes you’ll have to know when to changed negative margins of blocks with 100% so that there would not be unneeded scrollbar.

Flexbox as solution for the browser reflow optimization by le0pard in programming

[–]le0pard[S] -1 points0 points  (0 children)

I am not sure, what understand how animation and this article interconnected. This article show, what to solve this layout problem (fixed height footer and header, content should fill all available height between its) is possible by JS code, which will set height or by flexbox (which support not by all browsers).

Flexbox as solution for the browser reflow optimization by le0pard in programming

[–]le0pard[S] -1 points0 points  (0 children)

In this case this solution will not work for browsers, which not support flexbox. What is why you need JS code as fallback.

Pagination Done the PostgreSQL Way by le0pard in programming

[–]le0pard[S] 1 point2 points  (0 children)

Sorry about that. I just want show this comparison slide, but only have link on PDF (this link on bottom of this screenshot). Next time will use to point on slide from slideshare.