Dedque's workshop

King's Day problem

Problem description Part 1: Static boat You are given a region of Amsterdam city consisting of alternating streets and canals in the format of a matrix, where “|” means street. “*” means canal (water) “=” means a boat (can be only located in canal columns) For example: |*|=|*|*|*|=|*| |=|*|*|*|=|*|*| |*|*|=|*|*|*|=| |*|=|*|=|*|=|*| |*|*|... Read more

Puzzling LLMs with circular dependencies

Yes, it’s all jokes and fun when supposedly world-changing AI can’t do simple math (try asking Claude what’s 9.9 - 9.11). But it’s not that cool when you want to use the LLM agent to speed up your work, and instead, it just wastes your time. One such case I found involved the task of resolving dependency conflicts in general and dependency cycl... Read more

Sell to optimists, buy from pessimists

“The Intelligent Investor” by Benjamin Graham is a wonderful book and a profuse source of ideas. Some of them are fairly simple to implement for an individual investor (like the 25-to-75-percent rule). Others are less obvious and can be easily misinterpreted. One good example is a principle of market sentiments: The market is a pendulum that fo... Read more

Non-spherical DCA in non-vacuum environment

DCA or dollar-cost averaging is likely the most used investment strategy (except gambling) if you push it to certain extremums. For example, decrease the number of time periods to 1, or push period length to infinity. But back to common usage, let’s start with the definition generated by Claude: Dollar-cost averaging is an investment strateg... Read more

TruffleHog vs probabilistic methods

Have you ever wondered where free API keys come from? Leaks? Data breaches? Actually, they mostly come from carefree developers who push them to a public repo. And if you are not as unconcerned as these people are, you probaby thought about tools to keep your keys safe. The most popular one of them is, arguably, TruffleHog. But how good is it? I... Read more