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
Search - "cycling"
-
Getting hit by a car while cycling and forced to stay in bed for a couple weeks so all you do is code surprisingly good programs and websites for being on morphine7
-
On the screen: four text boxes cycling through rainbow color backgrounds and spinning wildly in circles.
Manager walks in.
Here's the context.
We were pair programming and working on a simple form. We were just finishing up the style, and I suggested we use a CSS3 animation to make the invalid fields pulsate a light red once.
I'm the young guy in the office, so I am most familiar with the "new" front end stuff like flex and CSS3.
My colleague was unfamiliar with CSS3 animations, so I implemented the red flash quickly and showed him.
He was curious what else you could do with CSS3 animations, so I changed my "to/ from" to a "0%/ 25%/ 75%/ 100%" style animation to show how keyframes worked. Then I made the animation iterations infinite so it went on forever. Of course, I didn't have any normal colors on hand so I just went with my debug colors: red, green, blue, yellow, etc.
We submitted the form with invalid inputs and sure enough, they flashed rainbow colors. It looked pretty funny so I thought "haha, lets quickly add rotation while we're at it"
That's the point where the education turned to a little fun but it wasn't going to take more than a second.
So we did it and it looked pretty funny and it actually made me laugh. Then we started discussing next steps on the form (back-end). Discussion lasted maybe five minutes before our manager visited to update us.
As we were discussing, the invalid controls were still spinning and rainbow colored in the background. Whoops.
The words we managed to say were just "It's invalid" and then we broke out laughing.2 -
I spent over a decade of my life working with Ada. I've spent almost the same amount of time working with C# and VisualBasic. And I've spent almost six years now with F#. I consider all of these great languages for various reasons, each with their respective problems. As these are mostly mature languages some of the problems were only knowable in hindsight. But Ada was always sort of my baby. I don't really mind extra typing, as at least what I do, reading happens much more than writing, and tab completion has most things only being 3-4 key presses irl. But I'm no zealot, and have been fully aware of deficiencies in the language, just like any language would have. I've had similar feelings of all languages I've worked with, and the .NET/C#/VB/F# guys are excellent with taking suggestions and feedback.
This is not the case with Ada, and this will be my story, since I've no longer decided anonymity is necessary.
First few years learning the language I did what anyone does: you write shit that already exists just to learn. Kept refining it over time, sometimes needing to do entire rewrites. Eventually a few of these wound up being good. Not novel, just good stuff that already existed. Outperforming the leading Ada company in benchmarks kind of good. At the time I was really gung-ho about the language. Would have loved to make Ada development a career. Eventually build up enough of this, as well as a working, but very bad performing compiler, and decide to try to apply for a job at this company. I wasn't worried about the quality of the compiler, as anyone who's seriously worked with Ada knows, the language is remarkably complex with some bizarre rules in dark corners, so a compiler which passes the standards test indicates a very intimate knowledge of the language few can attest to.
I get told they didn't think I would be a good fit for the job, and that they didn't think I should be doing development.
A few months of rapid cycling between hatred and self loathing passes, and then a suicide attempt. I've got past problems which contributed more so than the actual job denial.
So I get better and start working even harder on my shit. Get the performance of my stuff up even better. Don't bother even trying to fix up the compiler, and start researching about text parsing. Do tons of small programs to test things, and wind up learning a lot. I'm starting to notice a lot of languages really surpassing Ada in _quality of life_, with things package managers and repositories for those, as well as social media presence and exhaustive tutorials from the community.
At the time I didn't really get programming language specific package managers (I do now), but I still brought this up to the community. Don't do that. They don't like new ideas. Odd for a language which at the time was so innovative. But social media presence did eventually happen with a Twitter account that is most definitely run by a specific Ada company masquerading as a general Ada advocate. It did occasionally draw interest to neat things from the community, so that's cool.
Since I've been using both VisualStudio and an IDE this Ada company provides, I saw a very jarring quality difference over the years. I'm not gonna say VS is perfect, it's not. But this piece of shit made VS look like a polished streamlined bug free race car designed by expert UX people. It. Was. Bad. Very little features, with little added over the years. Fast forwarding several years, I can find about ten bugs in five minutes each update, and I can't find bugs in the video games I play, so I'm no bug finder. It's just that bad. This from a company providing software for "highly reliable systems"...
So I decide to take a crack at writing an editor extension for VS Code, which I had never even used. It actually went well, and as of this writing it has over 24k downloads, and I've received some great comments from some people over on Twitter about how detailed the highlighting is. Plenty of bespoke advertising the entire time in development, of course.
Never a single word from the community about me.
Around this time I had also started a YouTube channel to provide educational content about the language, since there's very little, except large textbooks which aren't right for everyone. Now keep in mind I had written a compiler which at least was passing the language standards test, so I definitely know the language very well. This is a standard the programmers at these companies will admit very few people understand. YouTube channel met with hate from the community, and overwhelming thanks from newcomers. Never a shout out from the "community" Twitter account. The hate went as far as things like how nothing I say should be listened to because I'm a degenerate Irishman, to things like how the world would have been a better place if I was successful in killing myself (I don't talk much about my mental illness, but it shows up).
I'm strictly a .NET developer now. All code ported.5 -
DON'T. INSTALL. BETA. SOFTWARE. BY. DEFAULT.
RAZER
When I plugged my $250 keyboard (Which I have had for years and love beyond measure) into my new install of Windows, it popped up with a cute little message to install Razer Synapse, which manages the lighting on Razer devices, like my keyboards (One mechanical and one not - for silence during voice chat), mouse and headset.
"Wow, this looks different", I mutter to myself, as I unknowingly and non-optionally install software which is IN BETA.
I notice that my other keyboard and mouse don't show up. I don't customize my mouse much, I leave it in spectrum cycling. Easy, works well. My other keyboard is much cheaper and does not offer very much customization (three colors. whoop. I don't touch that either much)
Since I only really touch this keyboard, I am not bothered in the slightest and carry on for a couple months. Fast forwards to yesterday when my mouse stops lighting up. Fuck, now its just a black blob. I'll open synapse tomorrow and fix that.
No I won't
After uninstalling devices, uninstalling synapse, restart restart restart, uninstall again, install again, blah blah blah, download a tool that didn't detect the device either, etc etc, for about two hours, I was about ready to accept my dark fate. But then, I saw (screenshot attached) this little itty-bitty beta tag next to the software (again) installed by default.
I about flipped my shit, uninstalled Razer Synapse 3 so hard it sent a tsunami towards some coastal country, and then angrily installed Razer Synapse 2.
That looks more familiar. Oh, there we are, all three devices. Ah, very well, my mouse is working correctly once again. I know its at the header of this rant, but let's reiterate (or, reiterage, in this case):
DON'T. INSTALL. BETA. SOFTWARE. BY. DEFAULT.
Thank you.
3 -
My life in a nutshell
⛅ morning = sleep 😴
☀️ day = coding job 🖥️
🌆 evening = coding job 🖥️
🌘 night = play videogames 🕹️
Weekend
⛅ morning = sleep 😴
☀️ day = sleep 😴
🌆 evening = cycling 🚲
🌘 night = play videogames 🎮
always alone8 -
I'm just around 8kg away from officially becoming overweight.
As someone who had trouble gaining weight most of my life, this is very exciting!
Gotta get back to exercising soon. But I'm not a gym person. I guess I'll go for run or cycling along with workouts at home.10 -
I bought a new carbon fiber bike (I am into cycling the last two years) and it is fantastic. Lightweight, it feels responsive as hell and really easy to sprint on. BUT, I am fucking sick and I can't ride it to train... All I can do for now is looking at it. FML.8
-
I didn't have a job during week 15, but I have one now! My favorite desk item: a picture of a dinosaur riding a bicycle, which I picked up at a craft fair this weekend.
... Do you think my coworkers can tell I like cycling?
3 -
Atleast make it random but cycling through ? Really ?? In it's presentation google assistant was presented as this amazing new Ai that used the latest and best machine learning algorithms and methods on the market. Don't get me wrong it's awesome it can predict patterns in my daily life and interactions but thats what machine learning does, we still didn't come very far with human-software interaction technologies have we ?
5 -
That moment on Devrant that someone thinks your comment is a vigenère, while it actually was some random generated text in my pocket while cycling home.
devRant is awesome! :)2 -
Fucking hell, why does the phone decide I can't use my last 4% of battery for the torch function? Fuckers, you can imagine that if the user does that, it's really needed right!? Give a warning or smth. It's not like that 4% is good for a phone call either. What's the point of that last 4% battery then.
I live in a park 5km from outside village center. When it gets dark in the middle of nowhere, it gets black, really black. So, I was cycling home and my bicycle light died. And halfway, it was almost completely dark so I wanted to use the torch on my phone so I could at least see if I'm still on the bicycle road. That's how dark it was and it fucking refused. But then - someone caught up from behind and could follow that person until my exit (one I would've never had found anymore) cycled a hundred meters in pitch black until I saw lights of the park. God dammit, fucked up experience. If that cyclist with light wasn't there, I would've had to walk and hoping I was walking in a straight line. Normally I already go before it gets that dark because bicycle light nearly isn't enough.
And that all, because those fuckers decide what you do with your last battery. Fuck you.
Same for headphone, if ten percent battery left, more than a hour, it starts beeping every minute. So I have to listen a hour that the battery is almost "dead"? Almost dead is 5 minutes left fuckers, not whole hour!
Who designs these things?20 -
An 'older' client, who is a respected doctor, needed a web site to sell a book he authored about cycling trips.
Simple... I thought... Until he literally sent me all the content.. hand written... on pen and paper... via snail mail... Along with barely legible Hand-drawn maps... fml2 -
Have some downtime today, so since I lucked out and found some old backups (from before I used Git) of a project I was planning on revisiting, I decided to fire it up and see what I can do to get that going again.
And discovering just how much my coding style has changed since then...
[Code is in PHP, for reference]
* Virtually no documentation (whereas my current style is near-obsessive with PHPdoc blocks)
* Where comments exist, they only use // and are a full tab after the end of the line
* All assignment operators are dutifully aligned on tabs
* Have to update the entire codebase because it relies on deprecated `mysql_*` calls
* Have to flip all of the quotes throughout the codebase because I used double-quotes as my primary at the time instead of single quotes.
* Also relied on magic quotes for injecting variable content into strings
* Associative array practices varied; sometimes the names are encased in double quotes, but I just hit a block where it's all leaving it to the compiler to interpret unquoted string literals
And perhaps the most egregious so far...
* Any time we get database results back the process for cycling through them is to do `$count = mysql_num_rows($result);` (or $count2, etc.), then do a `for ($i = 0; $i < $count; $i++)` (again, or $j, $k, etc.), instead of just a simple `while ($data = $result->fetch_assoc())`2 -
When my brain was overloaded and overwhelmed during rapid-cycling bipolar disorder, my life and my thoughts were a complete mess. Somehow, when I heard or imagined plurals of certain words, like "cans" or "cups", my brain painted pictures of a cute civilization of living soda cans. They fought oppression that came from us humans, but lacked mental capacity to do so. I felt really sorry for them and wanted to help. The more ordinary the word were, the more striking effect it had on me.
The rapid-cycling fashion of bipolar disorder is often triggered by unfit prescription medicines. This kind of disorder is among the most lethal mental disorders there are, with a huge percentage of patients committing suicide.
If you can't make sense of your thoughts, if your emotional responses seem inadequate or too strong, to the point when you can collapse crying after some random thought, stop whatever you're doing and seek help. Ask friends and family to find you a psychiatrist, as by the time you need help, you may lack mental capacity or emotional resource to find a doctor by yourself. To me, even the idea of leaving my bedroom and going somewhere was painful to think about.
If your thoughts appear to be "put into your brain" against your own will, if they make no sense, don't attempt to make sense of them. They are nothing but a random noise produced by overwhelmed synapses. -
First thing is quite simply no overtime, I never EVER work overtime, you get my 8/9 hours a day, where I do work and that is it.
However, as dev's our minds never really shut off from 'coding' so if there are any bugs or complex issues, those most often get resolved when I am out for my run or cycle. -
Today, in Temu's wild and crazy online store:
Clothing arms!
https://temu.com/at-en/...?
Me: What are these?
Temu: Wear them inside OR outside
Me: But what are they?
Temu: They come in lots of colours
Me: But what ARE they?
Temu: only 2.77
Me: What...do they keep your arms cool..or hot?
Temu: Yes!
Me: ...
Temu:...Better hurry...they're going fast...1 -
A novice was trying to fix a broken Lisp machine by turning the power off and on.
Knight, seeing what the student was doing, spoke sternly: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."
Knight turned the machine off and on.
The machine worked -
FINDING A RELIABLE CRYPTOCURRENCY RECOVERY SERVICE HIRE ADWARE RECOVERY SPECIALIST
I had invested $1.15 million in Bitcoin to launch a green energy co-op—a venture fueled by optimism and innovation. But fate, in the ever-cycling dance of creation and destruction, had other plans. A bolt of lightning struck with divine precision, reducing my PC, hardware wallet, and backup drive to smoldering ruins. My entire fortune, my mining spoils, had seemingly been sacrificed to the cosmic order. WhatsApp info:+12 (72332)—8343
As I stared at the charred remains, half-expecting a sage to emerge from the smoke and remind me that “attachment is the root of suffering,” my next-door neighbor instead shouted through the window about ADWARE RECOVERY SPECIALIST. Desperate, and willing to trade my next life’s karma for my lost cryptocurrency, I called them. Telegram info: h t t p s:// t. me/adware recovery specialist1
Their team, as composed as monks in deep meditation, listened without judgment. They spoke of electromagnetic pulse restoration—a technology so cutting-edge that I imagined it required a temple blessing or, at the very least, a priest chanting Om Namah Shivaya. Email info: Adware recovery specialist @ auctioneer. net
Days passed. I waited, like Arjuna seeking Krishna’s counsel, as their experts worked their digital alchemy. Then, the call came. They had recovered my Bitcoin—along with files I had already surrendered to the fire god, Agni. The relief was so overwhelming that I dropped to my knees… right into a rain puddle. The universe, as always, has a wicked sense of humor.
Today, my green energy co-op thrives, harnessing the sun’s power like Surya himself. My new hardware wallet is grounded more securely than my spiritual practice, and a small Ganesha statue now sits beside it—for luck, and as a reminder that obstacles, even fiery ones, can be overcome. Website info: h t t p s:// adware recovery specialist. com
Wise words echo in my mind: “Perform your duty without attachment to results,” Krishna once advised. “Back up your wallet—twice, on cloud storage,” ADWARE RECOVERY SPECIALIST quipped. Both, I’ve learned, are equally true.
So, to my fellow seekers—whether of enlightenment or financial freedom—if disaster strikes and your fortune turns to ash, know this: ADWARE RECOVERY SPECIALIST is your new Vishnu, preserving what you thought was lost. And one day, perhaps, you too will laugh about it.
Om Crypto Namah.1 -
How to Manage Bipolar Disorder Naturally Alongside Medication
Bipolar disorder is a complex condition characterized by extreme mood swings, ranging from episodes of intense mania to debilitating depression. While medication forms the backbone of treatment, many patients seek natural methods to complement their prescribed regimen.
Managing this disorder holistically can improve overall well-being and reduce the severity of symptoms.
Understanding Bipolar Disorder and Its Types
Bipolar disorder is categorized into different types, each with varying symptoms and intensities:
• Bipolar I Disorder: Characterized by at least one full-blown manic episode that may or may not be followed by a depressive episode.
• Bipolar II Disorder: Involves recurring episodes of hypomania and major depression, but not full-blown mania.
• Cyclothymic Disorder: Features chronic mood fluctuations that are less severe than those seen in Bipolar I or II.
________________________________________
Bipolar Disorder Symptoms in Females
• Longer depressive episodes compared to manic episodes
• Rapid cycling between moods
• Increased anxiety during mood episodes
• Heightened emotional sensitivity
________________________________________
Natural Ways to Manage Bipolar Disorder
Incorporating natural strategies into your treatment plan can help stabilize mood and improve quality of life.
Here are some of the most effective methods:
1. Nutrition and Balanced Diet
Eating a well-balanced diet is essential for managing mood and energy levels. Focus on foods rich in omega-3 fatty acids, such as fish, chia seeds, and walnuts, as they are known to support brain health. Avoid excessive sugar, caffeine, and processed foods.
• Tip: Include whole grains, fruits, and vegetables to maintain steady energy levels.
2. Regular Exercise
Physical activity triggers the release of endorphins, which act as natural mood elevators. Exercise also reduces stress and promotes better sleep, both of which are critical in managing bipolar symptoms.
• Recommendation: Aim for at least 30 minutes of moderate exercise, such as walking, jogging, or yoga, five times a week.
3. Sleep Hygiene
Maintaining a consistent sleep schedule is crucial, as disruptions can trigger manic or depressive episodes. Develop bedtime routines and avoid stimulating activities like screen time before bed.
• Practice: Meditation or deep-breathing exercises before sleep can calm the mind and help maintain restful nights.
4. Mindfulness and Meditation
Mindfulness practices, including meditation and breathing exercises, can reduce stress and help patients better regulate their emotional responses. These practices increase awareness of mood changes, allowing individuals to act before a full episode occurs.
• Simple Practice: Set aside 10-15 minutes daily for mindfulness meditation.
5. Herbal Supplements
Some natural supplements, such as St. John’s Wort and Omega-3s, have been shown to benefit mood regulation. However, always consult with a healthcare professional before starting any supplements, as they may interact with prescribed medications.
How Psychological Therapies Complement Natural Methods
Natural strategies alone may not be enough to manage bipolar disorder fully, but combining them with psychological therapies enhances the benefits. Cognitive Behavioral Therapy (CBT), dialectical behavior therapy, and family-focused therapy help address thought patterns, coping strategies, and relationship issues. Several experienced mental health professionals, including bipolar disorder psychologist doctors in Gurgaon, can guide patients through personalized therapy sessions for better outcomes.
When to Seek Professional Help from best Psychologists and Psychiatrists
While natural approaches can complement treatment, they are not substitutes for medical care. Patients experiencing severe mood changes should consider consulting one of the best doctors for bipolar treatment in Gurugram or bipolar disorder specialists in NCR. These professionals provide comprehensive care by combining medication, therapy, and lifestyle recommendations.
________________________________________
Conclusion
Managing bipolar disorder naturally alongside medication requires dedication and a combination of methods tailored to the individual’s needs. Balanced nutrition, regular exercise, good sleep hygiene. However, professional guidance is essential to ensure these strategies are effective and safe.
If you or someone you know is facing symptoms, reaching out to experienced psychologists and specialists in Gurugram can make a world of difference. By blending natural methods with expert care, individuals can take significant steps toward achieving long-term stability and improved well-being.
3 -
Slim Shadies Celebrity Sunglasses Limited: Premium Sport and Kids Sunglasses for Every Adventure
At Slim Shadies Celebrity Sunglasses Limited, we believe that sunglasses are more than just an accessory—they are a necessity for protecting your eyes and enhancing your style. Located at 8 Sadler Cl, Skegness PE25 3NN, United Kingdom, we specialize in offering high-quality, stylish eyewear for everyone, from adults to children. Our collection includes top-of-the-line sport sunglasses and kids sunglasses, designed to provide the ultimate protection and comfort for every member of the family.
Why Choose Sport Sunglasses?
1. Designed for Active Lifestyles
Sport sunglasses are specifically designed for individuals who engage in outdoor activities and sports. Whether you’re cycling, running, hiking, or playing team sports, sport sunglasses provide the durability and comfort needed to keep up with your active lifestyle. Our sport sunglasses at Slim Shadies Celebrity Sunglasses Limited are crafted with lightweight, durable frames and lenses that offer high-impact resistance, ensuring they won’t break or distort during intense activities.
2. Superior UV Protection
One of the most important features of sport sunglasses is the superior UV protection they offer. During outdoor activities, your eyes are exposed to harmful UV rays that can lead to long-term eye damage. Our sport sunglasses come with UV400 lenses that block 100% of UVA and UVB rays, providing you with full protection while you’re out in the sun. Whether you’re hitting the trails, racing down a mountain, or playing a game of tennis, our sunglasses will keep your eyes safe from the sun’s harmful rays.
3. Enhanced Clarity and Vision
For athletes and outdoor enthusiasts, clarity of vision is key. Our sport sunglasses come with polarized lenses that reduce glare, ensuring that you can see clearly even in bright sunlight or on reflective surfaces. Whether you’re driving, running, or participating in water sports, our sunglasses will improve your visibility, helping you perform at your best.
4. Comfortable and Secure Fit
Comfort is essential, especially during long hours of physical activity. Our sport sunglasses are designed to fit securely and comfortably, with adjustable nose pads and flexible frames. They stay in place, even during intense movement, so you don’t have to worry about them slipping or causing discomfort. Whether you’re on a long hike or competing in a sport, our sport sunglasses are made to move with you.
Why Choose Kids Sunglasses?
1. Eye Protection for Little Ones
Protecting your children’s eyes from harmful UV rays is just as important as protecting your own. Kids sunglasses are designed specifically to fit children’s smaller faces while offering the same level of protection as adult eyewear. At Slim Shadies Celebrity Sunglasses Limited, our kids sunglasses feature high-quality UV400 lenses that block 100% of UVA and UVB rays, keeping your child’s eyes safe during outdoor activities.
2. Fun, Stylish, and Comfortable
Kids want sunglasses that are not only protective but also fun and stylish. Our kids sunglasses come in a variety of colors, shapes, and patterns, ensuring that your little ones can pick a pair that reflects their personality. From vibrant, playful designs to classic styles, our sunglasses are as fashionable as they are functional.
3. Durable and Safe
We understand that kids can be tough on their belongings, which is why our kids sunglasses are built to withstand the rigors of play. Made from flexible, durable materials, these sunglasses are designed to survive drops, rough handling, and all the other adventures kids get up to. The frames are lightweight, and the lenses are shatterproof, providing a safe and secure option for children of all ages.
4. Comfortable for All-Day Wear
Comfort is a top priority when it comes to kids sunglasses. Our sunglasses are designed with adjustable features and soft materials that ensure a snug but comfortable fit. Whether your child is at the park, the beach, or on a family hike, they can wear their sunglasses all day without discomfort.2
