Details
-
AboutI'm a beginner C++ programmer, that started my learning journey in April of 2020.
-
SkillsC++ (begginer)
Joined devRant on 4/14/2020
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
I spent four hours just getting my dev environment working again today.
Whenever I switch branches on this project, I keep to run a script that does migrations, seed data, test db setup, static test info, etc. etc. etc. It takes 12-15 minutes to run.
Today, that script failed.
Apparently one of its steps requires running some of the project's code to produce valid objects. Makes sense. However, my ticket involves breaking a crapton of models (removing accessors) which I've already done, and then patching the behavior, which I haven't. Which means a lot of things are currently broken. Makes sense why the script fails.
However, I can't run the script on a different branch and then switch back because that simply doesn't work (for reasons), so I needed to find some workaround. I eventually did, but every attempt cost me 12 minutes.
Today was not fun, and certainly not productive.
I wonder when they're going to fire me 😅7 -
Windows users this is a PSA!
If you start getting BSOD's for no apparent reason, go find KB4535996 and uninstall it.
I've had 3 BSOD's just trying to work out wtf is causing this in the last 10 minutes.
https://windowslatest.com/2020/03/...3 -
Designer: can we put the popup at the top of the screen?
Me: You mean op top of the navigation?
Designer: Yeah.
Me: I sure can. Would be stupid to block off the site navigation with a popup, but definately possible.
Designer: Cool, let me know when done!
Me: ....
Me: I am done.
Designer: Well now I can't click on the navigation anymore.
Me: That's correct. Let me know when you want to change it again.13 -
I never felt this satisfied in my entire life,
So I was working on an open-source org where people can come and read books online for free. But they were facing the challenge of making books text selectable with the mouse pointer. But the problem was that their website renders scanned images of the books so it is impossible to select text from it.
So I solved this problem by building a small prototype that could do it. All of the books that they have in their database are having XML files associated with them which contains the coordinates of each word. So the logic was simple - select a rectangular region to pass its coordinates and check whether the coordinates of a word are lying in that rectangular region or not and display them. This trick is helpful because most of the OCR generates a similar XML file.
So if you wish to use this prototype for your own projects - you can check my GitHub repository https://github.com/ishank-dev/...
please star it if you like. -
I don't think I could give the best advice on this since I don't follow all the best practices (lack of knowledge, mostly) but fuck it;
- learn how to use search engines. And no, not specifically Google because I don't want to drag kids into the use of mass surveillance networks and I neither want to promote them (even if they already use it).
- try not to give up too easily. This is one I'm still profiting from (I'm a stubborn motherfucker)
- start with open source technologies. Not just "because open source" but because open source, in general, gives one the ability to hack around and explore and learn more!
- Try to program securely and with privacy in mind (the less data you save, the less can be abused, compromised, leaked, etc)
- don't be afraid to ask questions
-enjoy it!7 -
I created a GitHub Profile Card widget that can be easily embedded in your portfolio 🎉
Repo: 🚀
https://github.com/RocktimSaikia/...
Live:🚀
https://codepen.io/RocktimSaikia/...11 -
Aha, more c++ knowledge. An implementation of a List (already provided by vector).
Lots of learning here, including use of the placement new operator, which is required for containers like this because if you just use the normal new operator, the buffer will construct a million items.
Also, the buffer is of type char*, not of type T, which really confused me in the beginning.
Lastly, with placement new, you need to call destructors yourself.
Interesting stuff.1 -
Fucking fuck you fucking fucked up fuckery.
I got fired and signed mortgage at the same day. Well looks like next two months going to be fun.
Time to get drunk.20 -
Hidden services are extremely cool.
Not having to pay for the "domain" is also really nice.
Now to generate a nice vanity URL...6