Reddit Programming – Telegram
Reddit Programming
212 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
i can not create docker image of my spring boot file can some body help me
https://www.reddit.com/r/programming/comments/1ooqkpy/i_can_not_create_docker_image_of_my_spring_boot/

<!-- SC_OFF -->Hello, I'm trying to build a Docker image for my Spring Boot project using the command ./mvnw clean spring-boot:build-image, but my build keeps failing during the test phase. It fails when trying to connect to the PostgreSQL database with this error: Caused by: org.postgresql.util.PSQLException: FATAL: invalid value for parameter "TimeZone": "Asia/Calcutta" Here is what I have already tried to fix this, without success: Searched Project: I have searched my entire project directory (including src/main/resources and src/test/resources) for the string "Asia/Calcutta". It is not in any of my source code. The only place it appears is in the error logs inside the target/ folder. Checked Test Config: I do not have a src/test/resources/application.properties file that could be overriding my main config. Forced Timezone in pom.xml: I tried forcing the correct timezone by adding this to the section of my pom.xml, but I still get the same error <!-- SC_ON --> submitted by /u/SentenceLivid6246 (https://www.reddit.com/user/SentenceLivid6246)
[link] (https://github.com/Premkumar-Ingale/glowing-enigma) [comments] (https://www.reddit.com/r/programming/comments/1ooqkpy/i_can_not_create_docker_image_of_my_spring_boot/)
Optimizing filtered vector queries from tens of seconds to single-digit milliseconds in PostgreSQL
https://www.reddit.com/r/programming/comments/1ooxsov/optimizing_filtered_vector_queries_from_tens_of/

<!-- SC_OFF -->We actively use pgvector in a production setting for maintaining and querying HNSW vector indexes used to power our recommendation algorithms. A couple of weeks ago, however, as we were adding many more candidates into our database, we suddenly noticed our query times increasing linearly with the number of profiles, which turned out to be a result of incorrectly structured and overly complicated SQL queries. Turns out that I hadn't fully internalized how filtering vector queries really worked. I knew vector indexes were fundamentally different from B-trees, hash maps, GIN indexes, etc., but I had not understood that they were essentially incompatible with more standard filtering approaches in the way that they are typically executed. I searched through google until page 10 and beyond with various different searches, but struggled to find thorough examples addressing the issues I was facing in real production scenarios that I could use to ground my expectations and guide my implementation. Now, I wrote a blog post about some of the best practices I learned for filtering vector queries using pgvector with PostgreSQL based on all the information I could find, thoroughly tried and tested, and currently in deployed in production use. In it I try to provide: - Reference points to target when optimizing vector queries' performance
- Clarity about your options for different approaches, such as pre-filtering, post-filtering and integrated filtering with pgvector
- Examples of optimized query structures using both Python + SQLAlchemy and raw SQL, as well as approaches to dynamically building more complex queries using SQLAlchemy
- Tips and tricks for constructing both indexes and queries as well as for understanding them
- Directions for even further optimizations and learning Hopefully it helps, whether you're building standard RAG systems, fully agentic AI applications or good old semantic search! https://www.clarvo.ai/blog/optimizing-filtered-vector-queries-from-tens-of-seconds-to-single-digit-milliseconds-in-postgresql Let me know if there is anything I missed or if you have come up with better strategies! <!-- SC_ON --> submitted by /u/m1r0k3 (https://www.reddit.com/user/m1r0k3)
[link] (https://www.clarvo.ai/blog/optimizing-filtered-vector-queries-from-tens-of-seconds-to-single-digit-milliseconds-in-postgresql) [comments] (https://www.reddit.com/r/programming/comments/1ooxsov/optimizing_filtered_vector_queries_from_tens_of/)
Git History Graph Command
https://www.reddit.com/r/programming/comments/1op8gkx/git_history_graph_command/

<!-- SC_OFF -->A while back a friend gave me a super useful git command for showing git history in the terminal. Here's the command: git log --graph --decorate --all --pretty=format:'%C(auto)%h%d %C(#888888)(%an; %ar)%Creset %s'"alias graph="git log --graph --decorate --all --pretty=format:'%C(auto)%h%d %C(#888888)(%an; %ar)%Creset %s' I just made this alias with it alias graph="git log --graph --decorate --all --pretty=format:'%C(auto)%h%d %C(#888888)(%an; %ar)%Creset %s'"alias graph="git log --graph --decorate --all --pretty=format:'%C(auto)%h%d %C(#888888)(%an; %ar)%Creset %s'" I love this command and though I'd share it. Here's what it looks like: [Screenshot-2025-11-05-at-9-58-20-AM.png](https://postimg.cc/Mv6xDKtq) <!-- SC_ON --> submitted by /u/Critical-Volume2360 (https://www.reddit.com/user/Critical-Volume2360)
[link] (https://postimg.cc/Mv6xDKtq) [comments] (https://www.reddit.com/r/programming/comments/1op8gkx/git_history_graph_command/)
nyno-lang can mix Python, JavaScript and PHP extensions for high-performing multi-language (AI) workflows - using the best of each language - sharing context via TCP.
https://www.reddit.com/r/programming/comments/1op9aqz/nynolang_can_mix_python_javanoscript_and_php/

submitted by /u/EveYogaTech (https://www.reddit.com/user/EveYogaTech)
[link] (https://github.com/empowerd-cms/nyno-lang) [comments] (https://www.reddit.com/r/programming/comments/1op9aqz/nynolang_can_mix_python_javanoscript_and_php/)
Cj: a tiny no-deps JIT in C for x86-64 and ARM64
https://www.reddit.com/r/programming/comments/1opbt53/cj_a_tiny_nodeps_jit_in_c_for_x8664_and_arm64/

<!-- SC_OFF -->Hey y’all! About 7 years ago, I had this idea to write a JIT with an autogenerated backend for x86 based on the ISA specs. I sketched something out and then just kinda let it sit. I picked it up again a few weeks ago and made a complete-ish backend for both x86 and ARM64. It has no dependencies, the backends are completely autogenerated (by horrible, horrible JS noscripts), and I built a small abstraciton layer for things like functions prologues etc. It’s super duper early and will probably break on your machine, but it’s good enough to compile some cool examples (look at the examples directory (https://github.com/hellerve-pl-experiments/cj/tree/master/examples), my personal favorite is the minimal language implementation (https://github.com/hellerve-pl-experiments/cj/blob/master/examples/minilang.c)). It doesn’t have anything except basically a fancy JIT assembler with some helpers as of yet. No register allocator, a lot of ABI details will still have to be figured out manually (though of course feel free to add anything to the abstraction layer that’s generally useful and submit a PR!). I honestly don’t know where I’m going with this next. I kind of stumbled into the project, and am not sure whether I’ll consider it as “exercise completed” or whether I should pursue it more. Time will tell. Feedback, questions, and bug reports very welcome—especially on the codegen helpers, additional examples or cool things you come up with, or backend rough edges. P.S.: I also wrote a small announcement blog post on it that you can find here (https://blog.veitheller.de/cj:_Making_a_minimal,_complete_JI... (https://blog.veitheller.de/cj:_Making_a_minimal,_complete_JIT.html)), but it honestly doesn’t add all that much interesting info that you can’t find in the repo <!-- SC_ON --> submitted by /u/hellerve (https://www.reddit.com/user/hellerve)
[link] (https://github.com/hellerve-pl-experiments/cj) [comments] (https://www.reddit.com/r/programming/comments/1opbt53/cj_a_tiny_nodeps_jit_in_c_for_x8664_and_arm64/)