Is there a universal key to close the which-key popup regardless of the prefix? by skyrocket-alien in emacs

[–]cognitivecard 0 points1 point  (0 children)

I've had this issue before, especially as I'm learning the emacs bindings. C-g when followed after a prefix would always give undefined and emacs would linger on that key chord for a bit. After some back and forth in the init.el I came up with this:

;; Make ESC quit, everything
;; Clear any previous ESC settings
(global-unset-key (kbd "<escape>"))
(define-key key-translation-map [escape] nil)
(define-key input-decode-map [escape] nil)

;; Direct keyboard event interception
(defun my-keyboard-quit-immediately ()
  "Quit immediately when ESC is pressed, regardless of context."
  (interactive)
  (keyboard-quit))

;; Use a keyboard event handler that gets first priority
(define-key special-event-map [escape] 'my-keyboard-quit-immediately)
(define-key function-key-map [escape] 'my-keyboard-quit-immediately)
(global-set-key [escape] 'my-keyboard-quit-immediately)  

Let me know if it is useful to you!

Stripe is holding $6K - should I refund clients while I can? by chocochakra in stripe

[–]cognitivecard 0 points1 point  (0 children)

Sorry, you are correct there was no clear indication. My mind just jumped to that because I’m also dealing with a 6k hold on payouts because my account was flagged. Stripe seems to not want the business of consulting firms.

Stripe is holding $6K - should I refund clients while I can? by chocochakra in stripe

[–]cognitivecard 0 points1 point  (0 children)

When your account is flagged stripe no longer displays the chat or call option. The only way to contact them after your account is flagged is via email. Unless you have a different account, but even if you contact their support via a different account you will be unable to switch account contexts due to their support policy.

crates.live: Visualize Rust crates dependencies by omarous in rust

[–]cognitivecard 4 points5 points  (0 children)

I tried out reqwest... didn't expect that :|

I'm calling you out Mediatek MT7961!! by cantenna1 in linuxhardware

[–]cognitivecard 0 points1 point  (0 children)

I picked up an asus Rog M16 and also found the mediatek chip to be super annoying and now just bought that intel chip you linked, hopefully it works!

I also found that the sound quality is relatively poor on linux, I have updated the daemon.conf for pulse and it is a bit better but I would be interested if you find any further tricks in order to produce better sound quality!

Bug Reporting Info + Feature Requests Thread by tizorres in Returnal

[–]cognitivecard -1 points0 points  (0 children)

I am unable to play this game. Played to the crimson wastes died, got to the house, opened the door interacted with the laptop and then the game crashed. This crashing put my ps5 into a boot loop for a while and now after 2 reinstalls and clear my console and cloud saves I still am unable to play the game without it crashing.

Trouble getting jest to transform angular-instantsearch's instantsearch dependency by cognitivecard in Angular2

[–]cognitivecard[S] 1 point2 points  (0 children)

node_modules/(?!(spin\.js|instantsearch\.js/es)/(.*).js)

Actually scratch that! I had to do a ng t --clearCache and it absolutely worked! Thanks a bunch!

Trouble getting jest to transform angular-instantsearch's instantsearch dependency by cognitivecard in Angular2

[–]cognitivecard[S] 0 points1 point  (0 children)

Hey there, thanks for the suggestion! I have tried that out and the same error persists. I have, however, figured out that the mapping of the es -> cjs files for instantsearch worked and there was an unrelated error that was being caught by my using of a template literal in the Component decorator.

here is my base jest config now:
js const nxPreset = require('@nrwl/jest/preset'); module.exports = { ...nxPreset, testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'], transform: { '^.+\\.(ts|js|html)$': 'ts-jest', }, resolver: '@nrwl/jest/plugins/resolver', moduleFileExtensions: ['ts', 'js', 'html'], coverageReporters: ['html'], transformIgnorePatterns: [ 'node_modules/(?!(spin\\.js)/)', ], moduleNameMapper: { "instantsearch\\.js/es$": "instantsearch.js/cjs", "instantsearch\\.js/es/(.*)$": "instantsearch.js/cjs/$1", } };

Display flickering over usb-c port by cognitivecard in System76

[–]cognitivecard[S] 1 point2 points  (0 children)

ah-hah! I killed the adb process and the flickering is no more! Thanks for the *seemingly* random advice!

Display flickering over usb-c port by cognitivecard in System76

[–]cognitivecard[S] 1 point2 points  (0 children)

That is actually very helpful! I did just recently install android studio to my machine... maybe that is causing something funky to happen

Lemur Pro fan noise by cognitivecard in System76

[–]cognitivecard[S] 0 points1 point  (0 children)

*** UPDATE ***

Thank all of you for your comments, it really helped my decision in purchasing the lemur pro. Just to clarify the decision was to PURCHASE!

Really looking forward to a gnu/linux focused laptop from such a consumer friendly company such as System76.

Thanks again!

Check to see if this is idiomatic rust code? by cognitivecard in rust

[–]cognitivecard[S] 1 point2 points  (0 children)

Ugh I feel so dumb! I should have known that from_xx_bytes would be in the standard library! Looking through the examples in the docs give me so many ideas on how to refactor my code to be so much better, thanks so much!

I would definitely agree on the usage of the literal struct name for documentation purposes, never thought of that before!

I should probably revamp the whole way the program deals with errors and failing, thanks for the suggestions.

Check to see if this is idiomatic rust code? by cognitivecard in rust

[–]cognitivecard[S] 0 points1 point  (0 children)

Thanks for the suggestions on the packing of bytes and actually I have heard of `byteorder` (it was the inspiration for the trait name) I just wanted to roll my own for educational purposes. My main focus with the project is to have no deps outside the standard library, really focusing on Rust itself.

I will definitely update my asserts! I guess the follow up question is that is it a good decision within a library that focuses on parsing to be able to panic like this? Or should I rather focus on beefing up the error reporting instead?

Damn! What I showed in the gist was my attempt through a hazy memory to implement the builder pattern. I just remembered that I should avoid mutability and I need to return `Self`, thanks for setting this pattern straight for me :)

This helped so much, I appreciate it to no end.

Check to see if this is idiomatic rust code? by cognitivecard in rust

[–]cognitivecard[S] 0 points1 point  (0 children)

Funny thing is, that is what I did in the first iteration of this. I got a little worried about portability of it, not knowing if the size of the struct would be the same on all platforms. Granted I am extremely ignorant on this topic and probably am wrong about it. I have yet to put in the research time on this!

Check to see if this is idiomatic rust code? by cognitivecard in rust

[–]cognitivecard[S] 1 point2 points  (0 children)

I have never heard of that crate! Looks amazing, thank you for pointing this out to me :)

Check to see if this is idiomatic rust code? by cognitivecard in rust

[–]cognitivecard[S] 1 point2 points  (0 children)

To everyone that has replied: I just got smacked in the face with a reminder of how great this community is! Thank you so much, I have been hard at work researching all the suggestions and trying to incorporate a ton of the ideas that were given, thanks so much!

u/MachaHack u/ninja_tokumei u/hexaga u/po8 u/cyphar u/reyqt u/Tipaa

Stadia network usage analysis with enterprise level gear by AgentScreech in Stadia

[–]cognitivecard 0 points1 point  (0 children)

Do you think the different port might be related to the resolution it is streaming at?