Skip to main content

Posts

How to fix "command aws.codeWhisperer.rejectCodeSuggestion not found"

AWS CodeWhisperer and GitHub Copilot don't get along in VSCode. Rejecting code suggestions sometimes triggers the pop-up (repeatedly) "command aws.codeWhisperer.rejectCodeSuggestion not found." This is especially annoying when using Vim since it breaks the Escape key which is interpreted by VSCode as rejecting code suggestions. Go to Command Palette (Command+Shift+P) Search for: Open Keyboard Shortcuts (JSON) Add: { "key": "escape", "command": "-aws.codeWhisperer.rejectCodeSuggestion", "when": "aws.codewhisperer.connected && inlineSuggestionVisible && !editorReadonly || isCloud9 && suggestWidgetVisible && !editorReadonly" } Restart VS code
Recent posts

Vegan Tamale Sauce

Vegan Tamale Sauce Tamale Sauce with Chili Powder Here's a straightforward recipe for a flavorful tamale sauce: Ingredients: 2 tablespoons vegetable oil 2 tablespoons all-purpose flour 1/4 cup chili powder (adjust according to your preference for heat) 2 cups chicken or vegetable broth 1 can (8 ounces) tomato sauce 1 teaspoon ground cumin 1/2 teaspoon garlic powder 1/2 teaspoon onion powder Salt to taste Instructions: Make the Roux: In a medium saucepan, heat the oil over medium heat. Add the flour and stir together for about 1 minute, or until the mixture becomes a light, golden roux. Add Chili Powder: Stir in the chili powder to the roux and cook for another minute. Add Liquids: Slowly pour in the chicken or vegetable broth while stirring constantly to prevent lumps. Add the tomato sauce to the mixture. Season the Sauce: Stir in the ground cumin, garlic powder, and onion powder. Season with salt to taste. Simmer: Bring the sauce to a simmer and let it co

Do not buy Watercop on Amazon

The Watercop Classic is an excellent product especially when combined with the SmartConnect wifi module that can shut off your water main from anywhere on the globe without paying a monthly fee. But beware! Only older models are sold on Amazon. The old Watercop Classics put the motor and switch in one box. The new design separates the more sensitive switch electronics from the motor that opens and closes the valve. I have owned both designs and can attest that I will never again place electronics anywhere near a water pipe, not to mention the corrosion from rain and humidity. The Watercop is more expensive to purchase and is more difficult to install but unless you want a brick or you enjoy paying for Flo each month (and it's also vulnerable to water and weather damage), it's the financially smart choice. I bought the 75 foot cable so the switch could be located indoors. The hard part of course was running the cable under the house.

How safe is your password?

As this diagram shows, a password consisting of three four-letter words smashed together with camelCase is more secure than 8-character passwords that are impossible to remember. Length is what matters.

Test in production

Unit tests and staging environments are nice and all but how do you know whether your latest release works? SaaS vendors must test in production. Consider your users to be testers, or, better: create test users and run nonstop tests in production deliberately. As this  article  says: “ Certain services need to know that an account isn't real, so we don't count or bill users like production accounts or match them with a production user. With these cases handled, all other services essentially treat all accounts, production or test, exactly the same. ”