https://anjaygoel.github.io/Anjay GoelAnjay's Blog. 2024-02-21T02:59:01+05:30 Anjay Goel https://anjaygoel.github.io/ Jekyll © 2024 Anjay Goel /assets/img/favicons/favicon.ico /assets/img/favicons/favicon-96x96.png TIL: Partial Indexes And Soft Delete2024-02-21T00:00:00+05:30 2024-02-21T02:58:46+05:30 https://anjaygoel.github.io/posts/TIL-Partial-Index-And-Soft-Delete/ Anjay Goel A partial index is a powerful feature that allows you to create an index only on a subset of rows of the given table based on some conditions. Thus reducing the size of the index and optimizing queries. Its syntax is as follows (in PostgreSQL): CREATE INDEX idx_name ON table_name(cols) WHERE condition; It is often helpful when you want to avoid indexing on some values that are very frequent ... IIT-KGP: An update on using self-hosted VPNs2022-08-21T12:25:47+05:30 2023-05-09T12:00:50+05:30 https://anjaygoel.github.io/posts/IIT-KGP-An-update-on-VPNs/ Anjay Goel Update (9th May 2023): As pointed out in the comments, use port 123 for UDP as 19302 no longer works. For future reference, use nmap to find open ports. I wrote this blog a while ago describing how to host your own VPN server using GitHub student pack freebies to bypass the institute’s network restrictions. But it didn’t solve all my problems. Two major issues that I have since come to realiz... How to count votes?2022-04-11T01:17:00+05:30 2022-04-11T13:48:40+05:30 https://anjaygoel.github.io/posts/How-To-Count-Votes/ Anjay Goel Voting is ubiquitous, be it something as important as choosing a country’s head of government, head of a student body, or answering something as trivial as “What movie should we go to?”. It arises naturally from the need to aggregate the varying individual preferences into some outcome. Yet rarely will you think about the voting system that chooses the outcome, even when the choice of the... IIT KGP: Bypassing network restrictions without compromising on internet speed2021-11-16T01:20:00+05:30 2022-08-21T12:34:14+05:30 https://anjaygoel.github.io/posts/IIT-KGP-Bypass-Internet-Restrictions/ Anjay Goel Edit (17th Nov): Added speed test for Central India based servers (at the bottom) The campus has finally reopened after nearly a year and a half. While most things look the same (apart from the lack of people, obviously), a few things have changed. One of them is internet access. My internet speed is now reaching up to 500 Mbps :-). But it comes at the cost of enhanced “security measur... Cryptocurrencies: Questioning its need, limitations, and divergence from its core ideas.2021-08-08T01:20:00+05:30 2022-04-11T13:48:40+05:30 https://anjaygoel.github.io/posts/Cryptocurrencies/ Anjay Goel My first introduction to cryptocurrencies was around 2017. Though I didn’t understand how it works at the time, the idea of utilizing your idle computing power to earn a valuable currency was captivating. Fast forward to 2021; I stumbled upon the original white paper, which made me realize how much the whole cryptocurrency ecosystem has evolved over the past years. Cryptocurrencies are n...