Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dikei
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
271.
▲
by
dikei
5y ago
Back when I was a web developer, I liked CSS pre-processor such as SASS/SCSS or LESS a lot. Popular framework at the times like Bootstrap or Foundation also had top-notch supports for CSS pre-propcessor. I wonder where they went.
272.
▲
by
dikei
5y ago
I would consider a programming language's native string interpolation as a form of templating, but to each his own.
273.
▲
by
dikei
5y ago
I guess when people say `trustless`, it means that they don't have to trust every single elements of the chain between you and your target: if any steps of the chain acting untruthfully, it would be detected by other steps thanks to th
274.
▲
by
dikei
5y ago
This is such a cheap move by Logback, which comes from the former lead developer of Log4j 1. I used to like it for its technical merits: it's really much better than Log4j 1. But its development has stagnated, and it doesn't offer
275.
▲
by
dikei
5y ago
I'm not defending Log4j, but this error can really happen to many logging libraries. All logging libraries contain some kind of template engine as a performance optimization, in order to avoid actually generating the output string (can
276.
▲
by
dikei
5y ago
Well, you can always use tried-and-true Java library like Netty, Jackson, and plain-old JDBC API. You get to enjoy all the goodie like `val`, `case class`, `pattern matching`, etc... without all the headache of those pure functional librari
277.
▲
by
dikei
5y ago
> In my previous company we used Scala + Spark and I hated it initially. I had no idea how syntax worked, no clue about functional programming or the ecosystem. It's funny that if you tell Cat-purist that Spark is functional-style,
278.
▲
by
dikei
5y ago
Seem like they updated the doc to version 2.15, which no longer has this configuration. Here's the link for version 2.14.1 https://logging.apache.org/log4j/log4j-2.14.1/manual/configu...
279.
▲
by
dikei
5y ago
Because they remove message lookup in version 2.15. https://issues.apache.org/jira/browse/LOG4J2-3198
280.
▲
by
dikei
5y ago
It's a known issue https://github.com/gorhill/uBlock/wiki/uBlock-Origin-works-b...
281.
▲
by
dikei
5y ago
In my opinion, both Postgres and MySQL have their places. While I chose Postgres for most of my projects, some 3rd party software just work better with MySQL because they are written for MySQL first, then ported to Postgres. For example, Hi
282.
▲
by
dikei
5y ago
In your case, dbt would be the tool to manage your Trino view programmatically: * You define the sql queries that select the input data as models and the dbt scripts (also sql) to combine/manipulate the models. * On running, dbt will g
283.
▲
by
dikei
5y ago
Instead of re-encoding everything, have you considered using something like `imgproxy` to transcode image on demand and cached the result ?
284.
▲
by
dikei
5y ago
DBT is really nice, but not a game changer since it's basically a SQL generator and only as good as the underlying SQL engine of your data warehouse.
285.
▲
by
dikei
5y ago
But it is abstract away, you just need to define your IOPS requirements, then pick the cheapest volume type that can satisfy it. You wouldn't have to choose if SSD is as cheap as HDD, but alas we're not there yet. Comparing to lif
286.
▲
by
dikei
5y ago
I think this project is for when you need to do some fancy request modification that's hard/slow to do with Nginx or the like. It's not meant to compete speed-wise with other off-the-shell reverse proxies.
287.
▲
by
dikei
5y ago
Not sure if you are being sarcastic, but Camel and Druid are already taken: Apache Camel & Apache Druid :)
288.
▲
by
dikei
5y ago
I think many developers like microservices partly because they get to do green-field projects constantly: just start a fresh service when you need a new functionality, etc. Of course, in time, this might spiral into an uncontrollable mess w
289.
▲
by
dikei
5y ago
Currently my workflow when starting a new Python project is: * Create a new conda environment with the minimum python version I need to support. * Use poetry to install dependency * Package the production build into container image for depl
290.
▲
by
dikei
5y ago
This can't come soon enough, virtual threads is definitely simpler to write and read than manually breaking your logic into Future and Promise.
291.
▲
by
dikei
5y ago
I start out with Hg then move to Git because Hg felt too slow for my need at the time. Ironically, Google & Facebook choose Hg over Git because they can make Hg run much faster than Git at their scale: While both vanilla Git and Hg are
292.
▲
by
dikei
5y ago
> I always imagined a Ph.D. was about having a good idea and demonstrating your ability to develop it My story back in grad school was most of the time I didn't know if I had a good idea. Sometime I kept doing the same stuff again a
293.
▲
by
dikei
5y ago
At the end of the day, every database system can be reduced to a bunch of K-V stores :)
294.
▲
by
dikei
5y ago
Well, all valid consensus algorithms are guaranteed to eventually reach agreement, but it's not possible to guarantee about deadline in an asynchronous, distributed environment. However, in practice, we don't want our system to st
295.
▲
by
dikei
5y ago
Both Micrometer and using log4j2 with a log collector (we're using fluent-bit) already support writing to multiple downstream endpoints though, so not a clear win for OTel.
296.
▲
by
dikei
5y ago
Open Telemetry seems super complex compared to our current setup of Micrometer with Prometheus and Log4j2 with Json output. I wonder if it's worth it to replace both metrics and logging just to take advantage of OT's tracing capab
297.
▲
by
dikei
5y ago
Since the original post criticizes the behavior of Panda runtime where it loads everything into memory before processing, I think replacing the underlying Panda runtime with Spark runtime is very much a valid solution. You can keep using Pa
298.
▲
by
dikei
5y ago
Yup. Just consider WAF as a low-pass filter that clean out the noise and let you focus on the real attacks that get through.
299.
▲
by
dikei
5y ago
It's all about minimizing the risk of data loss. The risk is always there, but some DB are much safer than other. For example, Server crash is a much rarer issue than process restart. In Redis, if the process supervisors (systemd, dock
300.
▲
by
dikei
5y ago
I hate that they keep repeating the "Most Loved Database" awards. I wonder how many people love Redis as a Cache, but not as a main database.
More ›