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 - "day light savings"
-
I lose all respect for people trying to schedule meetings with me when they write the time zone initialism incorrectly.
It is well into EDT. EST technically means you want to meet an hour earlier and that you live in a different time zone than everyone else on the east coast of the United States. But I'm just going to assume that you don't remember that really annoying daylight savings time shit we have to do twice a year and show up in EDT. -
The datepicker saga
Part one
So I begin work on a page where user add their details, project is late, taking ages on this page
Nearly done, just need a component to allow users to put in some date of births. Look for react components.
Avoiding that one because fuck Bootstrap.
Ah-ha, that looks good, let's give it a go.
CSS doesn't exist, oh need copy it over from npm dist. Great it applied but...
... WTF it's tiny. Thought it was a problem with my zoom. Nope found the issue in github.com and it's something to do with using REM rather than EM or something, okay someone provided a solution, rather I saw a couple of solutions, after some hacking around I got it working and pasted it in the right location and yes, it's a reasonable size now.
Only it's a bit crap because it only allows scrolling 1 month at a time. No good. Hunting through the docs reveals several options to add year and month drop downs and allow them to be scrolled. Still a bit shit as it only shows certain years, figure I'd set the start date position somewhere at the average.
Wait. The up button on the scroll doesn't even show, it's just a blank 5px button. Mouse scroll doesn't work
Fucking...
... Bailing on that.
Part 2
Okay sod it I'll just make my own three drop down select boxes, day, month and year. Easy.
At this point I take full responsibility and cannot blame any third party. And kids, take this as a lesson to plan out your code fully and make no assumptions on the simplicity of the problem.
For some reason (of which I regretted much) I decided to abstract things so much I made an array of three objects for each drop down. Containing the information to pretty much abstract away the field it was dealing with. This sort of meta programming really screwed with my head, I have lines like the following:
[...].map(optionGroup =>
optionGroup.options[
parseInt(
newState[optionGroup.momentId]
, 10)
]
)...
But I was in too deep and had to weave my way through this kind of abstract process like an intrepid explorer chopping through a rain forest with a butter knife.
So I am using React and Redux, decided it was overkill to use Redux to control each field. Only trouble is of course when the user clicks one of the fields, it doesn't make sense in redux to have one of the three fields selected. And I wanted to show the field title as the first option. So I went against good practice and used state to keep track of the fields before they are handed off to the parent/redux. What a nightmare that was.
Possibly the most challenging part was matching my indices with moment.js to get the UI working right, it was such a meta mess when it just shouldn't have taken so stupidly long.
But, I begin to see the light at the end of this tunnel, it's slowly coming together. And when it all clicks into place I sit back and actually quite enjoy my abysmal attempt at clean and easy to read code.
Part 3
Ran the generated timestamp through a converter and I get the day before, oh yeah that's great
Seems like it's dependant on the timezone??!
Nope. Deploying. Bye. I no longer care if daylight savings makes you a day younger.1 -
CONTACT COIN ASSETS RECOVERY TO RECOVER YOUR LOST OR STOLEN BITCOIN AND OTHER CRYPTO ASSETS.
I started investing with an online cryptocurrency platform, only to have my account frozen and my $807,000 savings vanish without a trace. Panic, disbelief, and a crushing sense of helplessness washed over me. My dreams felt shattered. Days blurred into nights as I frantically searched for answers—sending countless emails, making endless phone calls, and scouring online forums fueled by despair. With each passing hour, my hope dwindled, replaced by a gnawing fear that my money was truly lost. Left with no other option, I sought help from crypto recovery specialists. After extensive research, I stumbled upon COIN ASSETS RECOVERY and read numerous positive reviews from other victims they had helped. I reached out, skeptical but clinging to hope, prepared for whatever might come next. From my first email, COIN ASSETS RECOVERY displayed a level of empathy that reassured me. They listened patiently to my story, outlined their recovery process, and kept me informed every step of the way. They became the lifeline I desperately needed. The days that followed were a rollercoaster of emotions. Hope flickered and dimmed but flared again with each update. Gradually, progress was made as COIN ASSETS RECOVERY unraveled the complexities of my case. Finally, the day arrived when I received the news: all $807,000 had been recovered. Tears of relief streamed down my face as I read the confirmation email. It felt like a miracle—a second chance at life. My experience with COIN ASSETS RECOVERY was not just about recovering my money; it restored my faith in humanity and the possibility of justice. Today, I stand not as a victim but as a survivor. This journey is a testament to resilience, the importance of hope, and the incredible work done by COIN ASSETS RECOVERY . If you find yourself in a similar situation, don’t give up. Seek help, reach out, and remember: even in the darkest times, light is waiting to be found. Below is COIN ASSETS RECOVERY CONTACT DETAILS:
Whatsapp: +158064384085 -
HOW TO TRACK AND RECLAIM YOUR LOST BITCOIN - VISIT FUNDS RETRIEVER ENGINEER
Courage doesn’t mean you don’t get afraid. Courage means you don’t let fear stop you. This mantra has been my guiding light throughout my journey as a military doctor. After years of dedicated service to my country, I found my true calling in healing others, striving to make a positive impact on the lives of my fellow soldiers and their families. My commitment to service extended far beyond the battlefield; I was determined to secure a stable future for my family. With my hard-earned savings, I invested $470,000 in cryptocurrency, believing it would provide the financial foundation we needed to thrive. However, everything changed one fateful day during a particularly intense deployment. While treating a patient amid an attack, my phone slipped from my hands and crashed to the ground. In the chaos of the moment, I realized with a sinking feeling that I hadn’t backed up my cryptocurrency wallet recovery phrase. I had always thought I had plenty of time to do so later, but that day proved otherwise. When I attempted to access my funds that night, panic surged through me as I discovered I could no longer access my wallet. My dreams of financial security and stability were vanishing right before my eyes. The betrayal I felt was profound. It was as if I had not only failed myself but also my family, who relied on me to provide for them. Each day in the ICU reminded me of my commitment to healing, and now I was left feeling helpless in the face of adversity. The emotional toll was unbearable; I feared losing everything I had worked so hard for, and the weight of that fear was crushing. I reached out to trusted colleagues and friends, hoping for a glimmer of hope. One fellow veteran mentioned FUNDS RETRIEVER ENGINEER, a reputable team known for their expertise in recovering lost digital assets. Intrigued yet skeptical, I decided to explore this option. The thought of potentially reclaiming my lost investment reignited a flicker of hope within me. As I navigated this challenging situation, I realized that courage is not the absence of fear but the determination to confront it. I was reminded that even in the darkest moments, there are paths to recovery and support. With the help of FUNDS RETRIEVER ENGINEER, I began to understand that my journey was not just about financial loss but also about resilience, community, and the unwavering spirit to rise above adversity .
For help
W H A T S A P P: +1 8 0 2 9 5 2 3 4 7 0
EmaIL F U N D S R E T R I E V E R [@] E N G I N E E R. C O M
OR
S U P P O R T @ F U N D S R E T R I E V E R [@] E N G I N E E R. C O M4
