HNHacker News
TopNewBestAskShowJobs

luzifer42

16 karma · joined August 4, 2022

submissionscomments
luzifer42··on Make zip files smaller with zip shrinker
I made once a maven plugin which reprocesses jar files. It allows to remove extra content such as comments and directories. In addition, it handles nested zip files to increase their compress-ability. And all the features can be toggled individually.

https://luccappellaro.github.io/2015/03/01/ZopfliMaven.html

luzifer42··on Java Decompiler
There is a maintained fork of this called jd-gui-duo which includes more features and more decompilers (JADX, Vineflower, Fernflower, CFR, Procyon, ...)

https://github.com/nbauma109/jd-gui-duo

luzifer42··on My failed attempt to shrink all NPM packages by 5%
I created once a maven plugin to recompress Java artefacts with zopfli. I rewrote it in Java and runs entirely in the JVM. This means, the speed is worse and may contain bugs:

https://luccappellaro.github.io/2015/03/01/ZopfliMaven.html

luzifer42··on Dragonfly BSD
DragonflyBSD is one of the few BSD distributions which support device-mapper. https://man.dragonflybsd.org/?command=dm_target_crypt&sectio...

Quite useful to mount PS3 disks, to recover old savegames ;) https://www.psdevwiki.com/ps3/Mounting_HDD_on_PC

luzifer42··on Show HN: Javaflame – Simple Flamegraph for your Java application
Why reinvent the wheel? https://github.com/async-profiler/async-profiler#flame-graph...

Ok, Windows is not supported. But IntelliJ made a fork which works on Windows. https://packages.jetbrains.team/maven/p/ij/intellij-dependen...

luzifer42··on YAML: Probably not so great after all
One big issue is that if a YAML file gets truncated for some reason, parsers generally don't complain.
luzifer42··on Q – Run SQL Directly on CSV or TSV Files
The large binary size argument is a bit old.

It seems possible to reduce it below 50MB.

https://github.com/ClickHouse/ClickHouse/issues/29378

luzifer42··on Q – Run SQL Directly on CSV or TSV Files
clickhouse-local is a powerful alternative.

https://clickhouse.com/docs/en/operations/utilities/clickhou...

https://news.ycombinator.com/item?id=31561780

luzifer42··on Making a Website Under 1kB
AWS also likes to play this game: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIR... : " MessageBody: ... Maximum length of 1024."

I have implemented some fixed error pages for my company including its logo in svg below 1KiB.

luzifer42··on Ask HN: Identify duplicate files in my data hoard?
DupeGuru is an interesting tool to find duplicates.

It's fast and flexible.

It can even search for similar files (binary, music and pictures).

https://github.com/arsenetar/dupeguru

luzifer42··on Java in the Browser
You really need a good reason to choose a non native language (e.g. not JavaScript for the Browser). One reason might be that you target other platforms too (cross-platform). In that case, you are outside of the browser anyway and you need to come up with solutions to these problems. Implementing those in a consistent way across all platforms for your product is not generally a bad idea. The alternative is an inconsistent but native UX for each platform.
luzifer42··on Java in the Browser
The canvas is a powerful tool, especially if you do a lot of graphical work. Rendering the entire UI yourself, gives you complete freedom of layout management. Plus, you avoid any DOM manipulation, directly or through a myriad of JavaScript frameworks. Remember: there is no silver bullet. Example: https://www.isochart.com
luzifer42··on Show HN: IsoChart – Interactive charts for your time-series
Hello, I've made a charting tool for time-series.

I was frustrated with existing charting tools for many reasons:

  - Too complex to setup
  - Too complex to use
  - Too expensive
  - Too slow
  - Not interactive
  - Not flexible/programmable enough
  - Difficult to integrate with other datasources/tools
  - Inconsistent time-axis labels
  - Looks like Omega SuperCharts from the 90s
But the most annoying for me:

  - Limited Zoom. What can you conclude without the full picture or the details?
  - And irregular time axis. I don't know if this is normal in the excel/finance world, but drawing straight lines on charts with irregular x-axis makes no sense to me.
That's why I build my own tool. Currently, my main use case is to analyze financial data and the data which influences it.

On the technology-side I've made some bold decisions:

  - Cross-platform, web-first.
  - WebGL 2.0: stable/boring.
  - Java: stable/boring. Integrate easily financial calculation libraries.
  - libGDX: stable/boring. More than just a game framework.
  - No fancy JavaScript framework needed: Look at the DOM, there's just a canvas. Frameworkless.
  - Backend: This PWA runs offline in your browser. Serverless for real.
N.B.: Browsers have limited network access due to CORS. (access-control-allow-origin, https://developer.mozilla.org/docs/Web/HTTP/CORS) E.g. Yahoo does not allow direct reuse of their API, so you cannot open it as URL. However, you can try to open it as file, as your OS might download it to a temporary file and hand it over to the browser. (e.g. https://query1.finance.yahoo.com/v7/finance/download/BAC?per... )

P.S.: Chrome-based browsers are probably faster than Firefox, because Firefox still has some WebGL performance issues.