HNHacker News
TopNewBestAskShowJobs

omgtehlion

1,068 karma · joined June 21, 2011

submissionscomments
omgtehlion··on Proteus Technology: New Material Is Strong, Light and Non-Cuttable
"... a tool bosnianbill and I made."
omgtehlion··on Your DS18B20 temperature sensor is likely a fake, counterfeit, clone
I live in Russia. Some time ago it was possible to buy from these distributors (and pay additional $20 - $50 for shipping). Nowadays they ship only to companies, not domestic addresses, so it is not only cost-prohibitive for cheap orders, but outright impossible for a hobbyist or individual person.
omgtehlion··on Your DS18B20 temperature sensor is likely a fake, counterfeit, clone
how about cp2102? I prefer it to ch340, for no reason though ))
omgtehlion··on Myths about USB NKRO and how USB HID works
Yeah, I implemented it too. Many years ago, I didn't read spec or really think about custom report desc. Solution to pretend to be multiple keyboards seemed to be obvious ))
omgtehlion··on Why Germans won’t heat their homes even with free electricity?
First, they killed nuclear, which prompted more coal production. Now they skewed wind so much that burning gas is cheaper than using green energy.

It seems no matter what Germany does, it only promotes fossil fuel usage. Quite opposite of what they wanted...

omgtehlion··on SMD reflow with a blowtorch (2016)
Well, if you do not really want to damage parts, you better not cool them too rapidly (in the water), better leave them to cool slowly.
omgtehlion··on FDA clears ‘world’s first’ portable, low-cost MRI
In Russia torso MRI costs around $200-$300 too. Smaller exams on outdated machines could be found for as cheap as $80.

It is solely US thing that medical procedures have astronomical cost.

omgtehlion··on Quibble – Custom Windows Bootloader
Most of funny bugs arise from not-really-exact filesystem copying during install. But making a perfect duplication tool seems to be out of scope of this project.

Nice experiment, anyway.

omgtehlion··on How cloud computing impacts the environment
Thanks for clarification and for the article! First time I only skimmed over headings and missed that part.
omgtehlion··on How cloud computing impacts the environment
proposed solutions:

> Increased energy efficiency on component level

> Increased energy efficiency on data center level

Why no “Increased efficiency on software level”? Is it simpler to throw hardware (and money, energy, carbon emissions) at the problem than find better solutions?

omgtehlion··on API Practices If You Hate Your Customers
> returning a null array to represent no items, and returning a single object without an array to represent one item

this happens when you add JSON version for old XML-based APIs (seen this multiple times)

omgtehlion··on Pika – A JavaScript package registry for the modern web
I would add: and bad actors would not be stopped by this, it is easy (and cheap) nowadays to buy identity with document scans enough to pass verification in payment systems. I doubt that any package registry could implement more stringent checks.

And a fee is just a small bump in the way of bad actors that would like to monetize their misdeeds.

omgtehlion··on When your data doesn’t fit in memory: the basic techniques
768G is not current max. Recently bought a machine (for less than $3k) for a side project, it has 768G inside and is 4 years old.

Today most commodity servers (which you can buy out of pocket without lengthy preorder) can accomodate from 1.5 to 3 TiB of memory.

omgtehlion··on Designing better data tables (2017)
It will be a heck of API to agree on. And then to implement correctly.

As another poster linked ag-grid this is how API surface should look like: https://www.ag-grid.com/javascript-grid-server-side-model/

omgtehlion··on Designing better data tables (2017)
Wow, they managed to fit a surprising set of features in a less than MB of javascript. As someone who implemented different grids multiple times I'd say it is a nice job!
omgtehlion··on Designing better data tables (2017)
Yeah. There are different sizes of data, that's why there is no good control for everyone.

Size of data can be:

1. Small, so you can display it all at once and the user will have luxury to ctrl+f what he/she wants;

2. Big to display, but small enough to push to client: then you will need to create pagination or virtualized view. Ctrl+F will not work (at least without some tricks), but you can easily filter/search it yourself in JS;

3. Too big to transfer: the only way to search/filter is on the server and separate controls (of course Ctrl+F won't work).

omgtehlion··on Designing better data tables (2017)
Looking from my experience I'd say: it typically involves adding lot of fine detail to make it at least bearable
omgtehlion··on Designing better data tables (2017)
Sometimes it is better to take advantage of web browser builtin search function (Ctrl+F). Unfortunately some overly-eager implementations break it when supplanting with their own...
omgtehlion··on Designing better data tables (2017)
I would add: even if you design only for desktops and discoverability is not an issue, PLEASE do not use slow animations for hover controls to appear.
omgtehlion··on Designing better data tables (2017)
That's because everyone has a different set of requirements.

Throughout my web-dev career, I did table or detailed-list views many times, but each time with different requirements. Aside from sheer size of code to implement all the features, you will have contradicting requirements and there is no one-size-fits-all solution.

Top concerns are: 1. is your data homogeneous (all columns in a row are presented equally) 2. can this data change? 3. is there a lot of data? (so you have to implement virtual list) 4. is data dynamically loaded? 5. do you need actions on data, and how to display them (inline / overlay / menu?) 6. some features are really simple on surface (resizing, drag-drop reorder of rows, auto-sizing on dbl-click is a hell of itself) but are pain in the ass to implement. 7. is filtering/sorting done on a client or you have a server to help you? 8. and many many more...

There are multiple implementations, but you have to investigate which one fits you need.

omgtehlion··on Designing better data tables (2017)
A more than decade ago I was tasked to implement a table view in web application (it was time when jQuery was not yet popular, all the hype were DHTML and AJAX). The task was: "do something resembling windows file explorer".

When I gave the first version to our testers, each and every one of them came with non-overlapping set of features. Some of these features are listed in this article and even more.

If you look into details, you will be amazed how many features there are in such common and simply-looking interface element. It took me (and the testing team) more than a couple of weeks to "kind-a finish" this work.

omgtehlion··on A push gone wrong in the name of what, exactly?
I myself was in such a situation. Though after a heated argument we decided to revert to previous version (A) and not push forward.

Of course well-thought release policy will help immensely (how to test, when to release, staged rollouts, etc...)

omgtehlion··on FPGA Design for Software Engineers
"combinatorial" was used predominantly in 1970s books for whatever reason.

In most of contemporary books and university courses "combinational" is used and with a note that you should not confuse it with "combinatorics" and "combinatory logic"

omgtehlion··on FPGA Design for Software Engineers
little nitpick:

it's "combinational circuits", not "combinatorial" (that's whole another part of math)

omgtehlion··on Mispredicted branches can multiply your running times
this won't: (bits + 7LL) >> 3
omgtehlion··on Mispredicted branches can multiply your running times
> https://github.com/kstenerud/bit-tricks/blob/master/bytes_re...

looks like over-engineering of (bits + 7) >> 3

omgtehlion··on Drilling open a smart door lock in 4 seconds
Thanks for an LPL reference!

Speaking of "smartlocks": here’s one that doesn’t even need a drill: https://www.youtube.com/watch?v=WeCGTosv-_c

Edit: and another one https://www.youtube.com/watch?v=mGpMaShltbc

omgtehlion··on Build a 6502 Computer
It is quite popular chinese TL866II, you can search for it anywhere, it just got mine for $37 from aliexpress
omgtehlion··on How to repair the parts that explode in Lenovo yoga laptops
You need it while desoldering, while cleaning nopb solder (yes, you have to clean, or joint will crack later), and while soldering in the replacement. Flux is cheap, better use it all the time.
omgtehlion··on How to repair the parts that explode in Lenovo yoga laptops
Well, they do. Usually you go to the genius bar and get the whole board replaced for $800+
← PreviousPage 5 of 14Next →