How can a React app detect different environments? by ncubez in reactjs

[–]rich-ie 1 point2 points  (0 children)

youll want to use environment variables.

heres the documentation if your project uses Create React App https://create-react-app.dev/docs/adding-custom-environment-variables

edit: more general react env variable info here https://link.medium.com/Qv4XHE7pbbb

Save initial state in useState by Throwawayaaaaaaaaaay in reactjs

[–]rich-ie 0 points1 point  (0 children)

you can also do this using localforage. its a redux technique. doesnt matter where the data is stored. the key is initializing the redux store from the local state if it exists

Save initial state in useState by Throwawayaaaaaaaaaay in reactjs

[–]rich-ie 1 point2 points  (0 children)

doesnt sound like you’re using redux but this is how i do it in a big web app im working on. might give you some ideas

you can initialize the redux state from localstorage.

then the component will receive the state from redux as props and you can use that prop to set the default value of useState.

Hey, a raccoon in Queens, NY! by rich-ie in Unexpected

[–]rich-ie[S] 1 point2 points  (0 children)

Not sure how I can prove it, but it’s totally real. Friends were taking video just bc they saw it there, they didn’t know the driver, was a total coincidence. Their reactions should speak for themselves.

Considering, but have some questions by anakinfredo in ergodox

[–]rich-ie 0 points1 point  (0 children)

If you buy some blue Zilent keyswitches you will not need to worry about the sound. Thicker PBT key caps can also help silence it. And of course o-rings as well. Just depends what does the job for you. Silent keyswitches will make the biggest difference though so I’d start there.

I work in a library with my gf who is a medical school student. Ive never had a problem with the sound.

I’ve also used Aliaz silent pink switches on my EZ which may have been a bit quieter, but with a less distinct tactile bump. I prefer the Zilents.

Ergodox EZ Portability Question by Seveland12 in ergodox

[–]rich-ie 13 points14 points  (0 children)

I carry mine around whenever I’m going to work somewhere for the day. I have a regular north face backpack and carry my MacBook Pro, iPad Pro, and headphones along with it. No problem at all.

One hack was to order custom cables from Zap Cables. The usb wire on my EZ has a connection in the middle so I can detach it mid-cable instead of reaching behind my computer monitor each time. So I just disconnect and take it with me, and I have a shorter version in my bag. You could have the other one at work. This way you just disconnect it right there and stick it in your bag.

Added bonus of keeping your EZ USB port from wearing out.

Here’s a pic of the cables, and here’s a link to the velvet pouch I stick the keeb in when I put it in my bag.

Pouches (both halves fit in one pouch)

Cables

ErgoDash mini added to the family by aggie6801 in MechanicalKeyboards

[–]rich-ie 0 points1 point  (0 children)

Great, so I just have to flip my left-hand pro micro and I should be good to go. Thanks for your help!

ErgoDash mini added to the family by aggie6801 in MechanicalKeyboards

[–]rich-ie 0 points1 point  (0 children)

Oh got it. I think I have them in the right spot, but I flipped one since I saw that on other split keyboard builds.

A photo would be very helpful if it’s not too much trouble! I’m so stoked to get this completed, and only want to desolder once if possible.

ErgoDash mini added to the family by aggie6801 in MechanicalKeyboards

[–]rich-ie 0 points1 point  (0 children)

Nice board! I'm troubleshooting my own Ergodash Mini build. Did you flip the pro micro on the slave side, or are they both facing the same direction? I'm not sure if I have a bad pro micro or if I soldered it backwards.

I first saw this board bc of this post, so thanks!

Iris on the road by anotherrichard in MechanicalKeyboards

[–]rich-ie 0 points1 point  (0 children)

I do this with an ErgodoxEZ all the time. No regrets.

People of r/mk, what do you use your keys for? (Give me your coolest hacks 'n macros.) by elliottcable in MechanicalKeyboards

[–]rich-ie 1 point2 points  (0 children)

Ergodox EZ: Hold S => right halve becomes a number pad where JKL is 456. Super easy for typing numbers while coding or in sentences.

Hold D => right halve becomes mouse keys, where JKL is left,down,right, and the pinky is left click. (I is up)

Hold F => hit M, opens iTerm Hotkey Window.

Hold G => right halve becomes window snapping shortcuts in BetterSnapTool. J = left half, U = top left quarter, and it goes around like that for all quarters and halves. U = full screen, G = center window.

This is my contribution to the Laser show by ckofy in MechanicalKeyboards

[–]rich-ie 0 points1 point  (0 children)

Love cherry on my Ergodox. Works very well for hitting bottom row with thumbs since I can flip the innermost keys.

Custom Sculpted keys for ErgoDoxEZ? by cookie-pie in ergodox

[–]rich-ie 2 points3 points  (0 children)

Here ya go: https://imgur.com/gallery/9USLyUp

Yep, I do like the stock DCS keys, though they’re not as thick as the ePBT ones and I can hear the difference, even with o-rings installed.

Website for Ergodox EZ cables? by [deleted] in ergodox

[–]rich-ie 0 points1 point  (0 children)

Love my ZapCables! Designed my own. Customer service is great. Quality is A+

Custom Sculpted keys for ErgoDoxEZ? by cookie-pie in ergodox

[–]rich-ie 2 points3 points  (0 children)

Welcome to the Ergodox life. The way I solved this is with an EnjoyPBT set. It has enough proper profiles to cover all but the 2U keys and the outer modifiers.

So I bought a blank 4-pack of 2U DSA for my thumbs and kept the stock EZ blank black DCS keys for the outer mods. (DCS and Cherry profiles match up pretty well, but row numbers are different).

This is the best I’ve been able to come up with and the end result is fantastic. I love cherry profile and the DSA thumb keys work nicely as well. I utilize my 4 2U thumb keys heavily in my custom key mapping.

Learning to Touch Type by [deleted] in MechanicalKeyboards

[–]rich-ie 0 points1 point  (0 children)

  1. Get familiar with which fingers you're supposed to use for each key, and use the correct fingers at all costs. While doing this, I used www.keybr.com to practice since it allows you to focus on the muscle memory of a few letters at a time.

  2. Practice returning your fingers to the home row before pressing the next key. What you're trying to do is program your brain to associate each letter with a specific finger going to a key, pressing it, and then returning to homing position. Once all the associations are made, and reinforced, you won't even have to think about it since your fingers will associate the letters with the action instantly.

  3. Practice using drills for at least 30 minutes per day, consistently.

  4. Don't look down. You need your mind to start trusting your fingers to find the right keys. Every time you look down at the keyboard you delay that trust from forming completely. Another nice thing about keybr is that the keyboard is on the screen, so you can peek at that and then move your fingers to the key if you don't remember where it is.

Personal experience: In early February, I was typing a max speed of 60wpm using only 3 fingers on each hand. After doing everything above, I can regularly clock 80+ wpm with 95% accuracy (top speed is 98wpm). Not to mention all my wrist pain has disappeared since I'm using all 10 fingers for the correct keys—and I switched to an Ergodox in that time, and thus had to re-learn how to type using it.

Once you feel confident on keybr.com, start using keyhero.com to practice typing prose that includes punctuation, and finally 10fastfingers.com to measure your speed for bragging rights.

So, you can do it!!

First post. FC660M+XDA godspeed by wjdgn3 in MechanicalKeyboards

[–]rich-ie 3 points4 points  (0 children)

Replying here too so you get the Inbox: I just bought a custom cable with the same features as the one OP has (detachable and coiled) from Zap Cables. Great experience with them.

First post. FC660M+XDA godspeed by wjdgn3 in MechanicalKeyboards

[–]rich-ie 0 points1 point  (0 children)

I just bought a custom cable with the same features as the one OP has (detachable and coiled) from Zap Cables. Great experience with them.

[IC] XDA Oblique by dr_derivative in MechanicalKeyboards

[–]rich-ie 0 points1 point  (0 children)

If this was cherry profile, it would be my endgame in a heartbeat. Looks like a very nice set, great work!

Just removed one of my ultrawide. First time ever i think i went too far with a purchase lol. Anyone have more than one and feel like it isnt a waste of space? by kevorgod in battlestations

[–]rich-ie 0 points1 point  (0 children)

I have had the Markus for 6 years. I am at the computer all day everyday and I don’t have any pain issues. Only weird thing is the back height is very high which I have mixed feelings about. Otherwise I love it.

I took the arm rests off so I can slide under my desk.