Recently I ran into an issue where none of my breakpoints for my solution would get activated when I ran a pretty large .NET Core solution. I tried cleaning the project and rebuilding which did not work. I was even desperate enough to reboot my machine, that’s when I know I’m at the end of my tether.
Since the project I’m working on is pretty big, going through all the directories manually is super tedious. I work on OSX so I needed something that works in bash and here is what I came up with.
I created a file in the solution’s root directory called DeleteBinObjFolders.sh. I wrote the following in the file;
echo "Deleting all bin and obj folders..."
find . -iname "bin" -o -iname "obj" | xargs rm -rf
echo "Your bin and obj folders deleted!"
All that is left is to make the file executable with chmod +x DeleteBinObjFolders.sh. Now we are all good to run the file by entering ./DeleteBinObjFolders.sh in your terminal.
BAM! All your bin and obj files are a thing of the past.
I found the following solution on Alper Ebiçoğlu’s post about the same issue. Basically do exactly the same as above but instead of using the .sh extension, use .bat.
@echo off@echo Deleting all BIN and OBJ folders…for /d /r . %%d in (bin,obj) do @if exist “%%d” rd /s/q “%%d”@echo BIN and OBJ folders successfully deleted :) Close the window.pause > nul
This happens to me way more than I’d like to admit and I’m hoping that by writing it down here I will learn from my mistakes. Maybe you’re making this mistake and could learn as well, please don’t tell me I’m the only one doing this!?
I got an Apple Watch to monitor my health; notifications got in the way.
I’ve had an Apple Watch for a little while now. I got it mostly to help me monitor my health and send some of that information to my medical aid as part of their rewards program. The more I move, the more points I get, the more benefits I enjoy.
Not so long ago I wrote about leaving Google, they are shady and their main business is around spying. They need to get more data to be able to sell more ads effectively. The more data they get, the more data they need the more nefarious they become to get that data.
I have long been an advocate of Google, all their services “just work”. They sync up wonderfully, they’re available everywhere and best of all, it’s free!
The question, however, is, “Is using Google really free?” No, you are either buying a product or you are the product being sold. Google is not making millions on thin air, on free email clients, on free calendars, on free document services. No, they make money quite obviously on your data. Some people don’t mind the trade-off, some people do. Recently I became the part of the people that do.