How would you get clangd to work with bits/stdc++.h?

Hello

My use case is writing competitive programming solutions in c++. i use neovim with the clangd lsp server. but i just cant get it to work with gcc header files, `bits/stdc++.h` in my case.

i have tried:

```

CompileFlags:

Add:

- -std=gnu++17

- -I/opt/homebrew/Cellar/gcc/16.1.0/include/c++/16

- -I/opt/homebrew/Cellar/gcc/16.1.0/include/c++/16/aarch64-apple-darwin25

```

it just doesn't work. it starts giving me duplicate definition errors once i add these compileflags.

reddit.com
u/PleasantMix6193 — 18 hours ago

I love the attempt and the goal, but Zed really isn't it

I have tried like 50 times by now. I mainly use nvim, sometimes vscode when things are really not doable in nvim, and intellij for all things java though i rarely write write java. Time and again I keep coming to give Zed a try and see if I can make it my main editor, but it just never happens.

I don't like the git panel (vsc source control is much much better), vim support is awful, and a lot of things just look half baked.

For example, I looked up how to make file diff open when clicking in the git panel (project diff is what they give as the default), it works but it opens as if you edited the file (as opposed to when you just click once and it opens in such a way that clicking on another file replaces that file in the same tab).

reddit.com
u/PleasantMix6193 — 2 days ago

what will i be missing if i choose to go with my current neovim setup for starting to write java (mainly for learning spring boot)

i have never written java before but seen it frequently. it doesn't really look much different from other languages at core so i dont think i need to specifically learn java. so i will be starting with learning spring boot.

but my main question is, since everyone recommends intellij for java, do i really need to get it or should i just go with my neovim?

reddit.com
u/PleasantMix6193 — 8 days ago
▲ 0 r/ssd

when do you start worrying about your ssd life?

since apple doesn't give a specific tbw rating for their devices, when do you start worrying.

i don't even know if that's the right way to frame the question so forgive me.

basically,

i have a macbook air m1 with 256 gb ssd.

i am a programmer and write games, servers, small apps , etc.

this actually came in my mind when i was running a benchmark and the activity monitor showed 80MBps data written to the disk and i assume for the entire benchmark duration which was like 6 minutes. this is where i felt a little concerned for my ssd.

and i have run this benchmark like 10 times by now. and once i saw that 80MBps number i m planning not to run this or any other benchmark ever lol.

so am i unnecessarily worried or is my concern valid?

reddit.com
u/PleasantMix6193 — 9 days ago
▲ 2 r/ethdev

What's the scene of jobs in web3?

Are they sort of entirely non existent or just less in number compared to other fields? I m really getting interest in decentralised stuff but i also need a job as a soon to graduate guy. So will it be worth it to learn ethereum/solana as a pretty decent backend developer?

reddit.com
u/PleasantMix6193 — 10 days ago
▲ 1 r/emacs

emacsformacosx.com d12frosted/homebrew-emacs-plus?

i dont know much about emacs. i have been a neovim user for years now and just willing to give emacs a try.

which one should i go for?

reddit.com
u/PleasantMix6193 — 11 days ago

how do i get jdk on my mac? (read desc please)

i know i could just `brew install openjdk`. but then i have to do the `sudo ln -s...` thing which i do not like. i mean i do not like running sudo commands in general tbh. even more when it's linking or adding stuff to system directories becasue i fear it may replace somethign important that already is there. and im telling you im not a beginner or something , i hv been a terminal heavy rust programmer for the last 2 years (yeah i made that term up)

so is sdkman my only option?

i know this may sound very dumb . i mean i know linking is the standard way but i m just .. just paranoid.

reddit.com
u/PleasantMix6193 — 12 days ago
▲ 2 r/UPI

Is it possible for the receiver to retrieve full bank account number and ifsc just because i paid via upi?

basically, i was doing the "add bank account" step on a crypto exchange ( a decently popular one) , and they offered me two methods- express and manual.

i chose the express method. they asked me to pay rs 1 from the bank account i want to add and showed upi app buttosn like phonepe, gpay etc just the same as online ordering apps show on their payment screen. i clicked phonpe which opened phonepe and paid rs 1. they somehow got the full bank account number and ifsc and my bank was added.

can anyone tell me if there's something fishy. the app is has 1cr+ downloads and 4.2+ star rating on play store and is decently popular so not an obvious malicious entity. but still like i used to think it's not possible to retrieve anything beyond upi id and last 4 digits of account number maybe from a upi payment.

reddit.com
u/PleasantMix6193 — 17 days ago

Can I get a refund from uptac?

I registered for uptac on July 12th. Once the registration was successful and I tried going to choice filling, the "btech" section said "registration has ended". Nowhere in the entire registration process or announcements was it clear that the btech choice filling was over. In addition to that, they had an announcement something like "deadline extended upto 28th" iirc which again didnt mention clearly that it was only for barch and stuff.

So basically i registered, paid Rs 1k and couldn't participate in the counselling at all.

I have tried contacting uptac and aktu by all means but nothign works. I tried raising a query on their website, calling all their helpline numbers, mailing, everything. No response.

The website uptac.samarth.edu.in itself looks so scammy like a guy vibe coded a react web app.

I understand most of these fees are non refundable. But still since I didnt partcipate in the counselling at all, do i have a chance of getting my valuable 1K rupees back.

Posting on behalf of my sister.

reddit.com
u/PleasantMix6193 — 19 days ago

Is it possible for the receiver to retrieve full bank account number and ifsc just because i paid via upi?

basically, i was doing the "add bank account" step on a crypto exchange ( a decently popular one) , and they offered me two methods- express and manual.

i chose the express method. they asked me to pay rs 1 from the bank account i want to add and showed upi app buttosn like phonepe, gpay etc just the same as online ordering apps show on their payment screen. i clicked phonpe which opened phonepe and paid rs 1. they somehow got the full bank account number and ifsc and my bank was added.

can anyone tell me if there's something fishy. the app is has 1cr+ downloads and 4.2+ star rating on play store and is decently popular so not an obvious malicious entity. but still like i used to think it's not possible to retrieve anything beyond upi id and last 4 digits of account number maybe from a upi payment.

reddit.com
u/PleasantMix6193 — 19 days ago

Coinswitch feels very scammy!

I don't know how this app has over 1 cr downloads and over 4 star rating.

So basically I received some bitcoins in a wallet as payment from a foreign firm and wanted to cash it out into my bank account. I was unsure about what exchange to use. I first downloaded binance only to later learn that it doesn't support direct inr withdrawal and p2ps are risky in India.

So I had to choose an Indian exchange. The first barrier for me was that they all wanted my digilocker acces which i was very hesitant to give. But once I decided to give, I downloaded three of the most popular exchanges: coindcx, zebpay and coinswitch.

Now I'm yet to transfer my btc into one of these because I have not been able to decide which one I should go with but from my experience so far, both coindcx and zebpay look at least professional but man how scammy coinswitch looks!

First, the user interface itself looks very fishy . After adding bank account successfuly they showed just one button which said "next" or somethign like that without revealing that they were going to take me to inr deposit screen next. There was literally no way to go to the home screen without depositing inr or closing the app.

BUT THE MAIN THING: the bank account addition process was basically me having to pay rs 1 from my upi app. They said the amount will be refunded within 48 hours but here we are, making this post in the 49th hour since i added my bank account and i have not received the refund yet.

As I'm typing this I'm also on chat with their customer service and mf is asking me for a transaction screenshot like what the hell!

I will probably make another post when I succesfully cash out my btc but I m probably never using coinswitch.

You may wonder why i signed up on three exchanges at once. The reason was simply i wanted to try all their experiences and also coinswitch doesn't list their fees anywhere on the site except on the trading screen.

reddit.com
u/PleasantMix6193 — 20 days ago
▲ 2 r/JOSAACounselling+1 crossposts

Can I get a refund from uptac?

I registered for uptac on July 12th. Once the registration was successful and I tried going to choice filling, the "btech" section said "registration has ended". Nowhere in the entire registration process or announcements was it clear that the btech choice filling was over. In addition to that, they had an announcement something like "deadline extended upto 28th" iirc which again didnt mention clearly that it was only for barch and stuff.

So basically i registered, paid Rs 1k and couldn't participate in the counselling at all.

I have tried contacting uptac and aktu by all means but nothign works. I tried raising a query on their website, calling all their helpline numbers, mailing, everything. No response.

The website uptac.samarth.edu.in itself looks so scammy like a guy vibe coded a react web app.

I understand most of these fees are non refundable. But still since I didnt partcipate in the counselling at all, do i have a chance of getting my valuable 1K rupees back.

Posting on behalf of my sister.

reddit.com
u/PleasantMix6193 — 21 days ago
▲ 4 r/UPI

Is it possible for the receiver to retrieve full bank account number and ifsc just because i paid via upi?

basically, i was doing the "add bank account" step on a crypto exchange ( a decently popular one) , and they offered me two methods- express and manual.

i chose the express method. they asked me to pay rs 1 from the bank account i want to add and showed upi app buttosn like phonepe, gpay etc just the same as online ordering apps show on their payment screen. i clicked phonpe which opened phonepe and paid rs 1. they somehow got the full bank account number and ifsc and my bank was added.

can anyone tell me if there's something fishy. the app is has 1cr+ downloads and 4.2+ star rating on play store and is decently popular so not an obvious malicious entity. but still like i used to think it's not possible to retrieve anything beyond upi id and last 4 digits of account number maybe from a upi payment.

reddit.com
u/PleasantMix6193 — 21 days ago