Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "clean monitor"
I just spent 5 minutes trying to fix an error saying that I am missing a ";".
I saw a ; at the end of statement but I kept on getting the error.
After cleaning the monitor the ; disappeared and I was able to see the problem.
Clean your monitor once in a while.11
*sees everybody saying how great Linux is*
*Tries deepin OS*
*Keyboard backlight not working *
*Searches YouTube for a fix*
*Fixes the Backlight*
*Screen resolution set to 800*600 by defualt (monitor 1920*1080)*
*Grub decides there is no need for a windows entry*
*plugs in Windows USB*
*sel disk 0*
*sel vol 3*
*boots into windows*
*Follows a guide to remove grub*
*Learns the lesson*
*Ooh OS X seems nice*
I'll use this topic to segue into a related (lonely) story befitting my mood these past weeks.
This is entire story going to sound egotistical, especially this next part, but it's really not. (At least I don't think so?)
As I'm almost entirely self-taught, having another dev giving me good advice would have been nice. I've only known / worked with a few people who were better devs than I, and rarely ever received good advice from them.
One of those better devs was my first computer science teacher. Looking back, he was pretty average, but he held us to high standards and gave good advice. The two that really stuck with me were: 1) "save every time you've done something you don't want to redo," and 2) "printf is your best debugging friend; add it everywhere there's something you want to watch." Probably the best and most helpful advice I've ever received 😊
I've seen other people here posting advice like "never hardcode" or "modularity keeps your code clean" -- I had to discover these pretty simple concepts entirely on my own. School (and later college) were filled with terrible teachers and worse students, and so were almost entirely useless for learning anything new.
The only decent dev I knew had brilliant ideas (genetic algorithms, sandboxing, ...) before they were widely used, but could rarely implement them well because he was generally an idiot. (Idiot sevant, I think? Definitely the idiot part.) I couldn't stand him. Completely bypassing a ridiculously long story, I helped him on a project to build his own OS from scratch; we made very impressive progress, even to this day. Custom bootloader, hardware interfacing, memory management, (semi) sandboxed processes, gui, example programs ...; we were in highschool. I'm still surprised and impressed with what we accomplished.
But besides him, almost every other dev I met was mediocre. Even outside of school, I went so many years without having another competent dev to work with. I went through various jobs helping other dev(s) on their projects (or rewriting them), learning new languages/frameworks almost every time: php, pascal, perl, zend, js, vb, rails, node, .... I learned new concepts occasionally (which was wonderful) but overall it was just tedious and never paid well because I was too young to be taken seriously (and female, further exacerbating it). On the bright side, it didn't dwindle my love for coding, and I usually spent my evenings playing with projects of my own.
The second dev (and one one of the best I've ever met) went by Novo. His approach to a game engine reminded me of General Relativity: Everything was modular, had a rich inheritance tree, and could receive user input at any point along said tree. A user could attach their view/control to any object. (Computer control methods could be attached in this way as well.) UI would obviously change depending on how the user could interact and the number of objects; admins could view/monitor any of these. Almost every object / class of object could talk to almost everything else. It was beautiful. I learned so much from his designs. (Honestly, I don't remember the code at all, and that saddens me.) There were other things, too, but that one amazed me the most.
I havent met anyone like him ever again.
Anyway, I don't know if I can really answer this week's question. I definitely received some good advice while initially learning, but past that it's all been through discovering things on my own.
It's been lonely. ☹2
Finally got the time to show my setup. Darn simple, but clean as well. How do you think?
LG 29 inch Ultra-Wide monitor (LG29UM58E)
Logitech BT Keyboard K380
Logitech Wireless Mouse B175
LG 15 inch laptop (15U570-KA5EK), not in picture
Rubber duck (a.k.a. TOLO BATH DUCK)19
About a year ago I found this old desktop in my storage room. I plugged it into a monitor, started it, opened a game, and the game was running at about 5 fps. Unplugged it, opened the cover, saw loads of dust, got rid of all the dust, started it again. Fps increased 1000%.
Moral of the story is, CLEAN YOUR FRICKIN COMPUTER.3
Got a second 1080p monitor for Xmas ans it gave me an excuse to clean my desk off ;)
I included the obligatory 'screenfetch' window as well, haha.
Now to see if I can hack together something resembling a KVM switch from parts I have, to use the Mac mini on one of them (when it's needed on rare occasion, lol).
P.s. I'm sure many of you have more bad ass setups, I even used to have quads myself... But I'm not posting this to start some pissing contest! It's just mine and I'm proud of it :P
Happy new year everyone!!!!6
Best debugging trick ever:
Wear your fucking glasses while coding so that you do not mistake COMMA(,) with a DOT (.).
1. Doing that (which obviously aren't a huge number) and
2. Cleaning my screen (yes that).
I was able to wrap my head around the issue that almost wasted one day.
So what I intended to pass as string concatenation join operation value actually was being passed as an argument to the underlying function (that wasn't taking care of it and returning a timestamp from thin air).
Murphy's Law in production and practice.
Depressing music continues......!3
My standing desk (yes with a button became a standing desk) with a usb pedal that I scripted on Linux to move the mouse cursor.
There are also papers top of the monitor to help me to remember new hotkeys of Vim or other software.
My "clean" desk with a lot of fidgets that right now is quite clean.4
I prefer to have lesser things to my desk except my monitor I connect my laptop to and my speakers and peripherals.
I like my desk to be absolutely as clean as it can get.
STILL trying to get a working clean install of Windows 10. One monitor is black, the second zoomed in and the third has the same as the second but shifted over so it cuts off. The internet still doesn't work at all after reinstalling drivers (signal, but no connection). Oh, and the time is off by 5 hours. I thought this was supposed to be easy.3
So I have a dual monitor setup running on windows 10
sometimes the background on the second monitor gets messy for no reason at all.
basically it doesn't recognize the second monitor's background and misplaces the one on the first monitor.
Normally it fixes itself after some reboots, but this time didn't, so I thought to do clean reinstall of the vga drivers (using display driver unistaller in safe mode)
for some reason, I used network less safe mode.
note: I'm using my outlook account linked to windows and it requires my outlook password on login.
now things get weird:
> inputs password : invalid password
> tries again: invalid password
> remembers to have changed the password some time ago, tries old password :
> starts panicking for a sec
then it comes to me the idea that since i changed password I always logged in using a PIN so windows, for some reasons doesn't know the new one? And why even the old one doesn't work?
> starts googling for answers, found nothing useful
> ends up formatting
tl;dr I should start writing sitcoms
So my mind is going crazy. Last I night I had a dream about a colleague. He was working on a kind of smart photo frame thingie, which should be published to stores like walmart and so on. Also his 30th birthday was around the corner and his soon to be wife was driving him nuts. So the stage is set for some action. I was visiting him along to said store on the publishing day since he was that paranoid as his job was tightly connected to the success of this project. Anyway now the whole thing gets this tragic comedic type of feeling. He is about to go through a mental breakdown in the very store. Destroying things, yelling like a gramps and stuff you know from sitcoms. I swear at some point he did loose his pants. Also the staff didn't give a damn about him. I was trying to clean his path of destruction so that no one takes note of this. Of course I failed gloriously. This thing goes on for a while. Finally in some kind of credits scene he was sitting in front of his laptop reading a blog post about the success of this thingie. After an insanly long pause of suspension he was starting to kiss his monitor in relief. I swear to god there was fake laughter somewhere in the background like in the good old sitcoms.... Never eat pizza right before sleeping....