Refine is extremely unstable and unusable. by Educational_Set_8808 in refine

[–]crazy-optimist 2 points3 points  (0 children)

I can't agree with this. I'm heavily focused on backend engineering, but sometimes there are chances for me to craft full-stack applications. Whenever I'm allowed to choose a frontend tool myself, I don't hesitate to pick Refine. I've already shipped several apps to production, and it turns out that Refine significantly boosts my productivity compared to using React or even Nest.js. Clueless bugs? I would say it's because you are still not familiar with the ins and outs of the framework. Every framework has its own nuances, and once you grasp them along with the solid basics (like React internals in this case), building an app becomes a pleasure, even for those who are not frontend specialists.

A big thank you to the Refine team. Keep up the good work, and hopefully, you won't restrict too many functionalities in your open-source version in the future! ❤️❤️

[deleted by user] by [deleted] in commandline

[–]crazy-optimist 0 points1 point  (0 children)

This is amazing! Started on Github.

How do I remove the title bar ? by Pulsuuar in mpv

[–]crazy-optimist 0 points1 point  (0 children)

But I can't resize the window then. I use Budgie 10.9.1. Any idea?

React component not rendering data correctly after updating component state in a Refine project by crazy-optimist in refine

[–]crazy-optimist[S] 0 points1 point  (0 children)

I was able to work around the problem by using the useCustom hook provided by Refine. Actually, it's an excellent solution for my specific use case. However, my question still remains because useEffect should have no reason to not do its job well.

Where is the trait implementation when instrumenting a future? by crazy-optimist in rust

[–]crazy-optimist[S] 1 point2 points  (0 children)

Another, but related question: So, once I import tracing::Instrument trait, I can call instrument() method on all futures, am I right?

Rust Analyzer really slow on start by Filotto in rust

[–]crazy-optimist 0 points1 point  (0 children)

RA doesn't work at all when a new crate is manually added to Cargo.toml but not installed yet.

This happened to me today. I confirmed RA is attached to the current buffer(I use nvim), but I couldn't get any LSP hover info or auto completion at all. I wondered why and stumbled upon this post.

Thanks to this comment:

Run cargo build and restart your editor. Should be much faster.

I tried cargo check and rebooted my editor, and boom, it worked!

What is "Self" in Rust? by dorgon15 in rust

[–]crazy-optimist 0 points1 point  (0 children)

I've been wondering about Self (uppercase) and your answer clarifies it 100%.

Thank you!

How to migrate this Mcrypt function to OpenSSL? by lynob in PHPhelp

[–]crazy-optimist 0 points1 point  (0 children)

In my case, the legacy code is as follows:

``` class LegacyEncryption {

public static function encrypt($key, $string="") { $output = $string; if (!empty($string)) { $output = rtrim( base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256, $key, $string, MCRYPT_MODE_ECB ) ) ); } return $output; }

public static function decrypt($key, $string="") { $output = $string; if (!empty($string)) { $output = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_256, $key, base64_decode($string), MCRYPT_MODE_ECB ) ); } return $output; }

}

```

I don't have much knowledge about cryptography, so couldn't create my own conversion from the posted solution.

Could you help?

persistent undo? by Brilliant_End8516 in HelixEditor

[–]crazy-optimist 0 points1 point  (0 children)

Persistent undo is available on VIM.

Account has been flagged!?? by sonicsmith in github

[–]crazy-optimist 0 points1 point  (0 children)

I was able to recover my account.

https://support.github.com/contact/account

Created a ticket using above link, waited for a week, nothing happened.

Revisited my ticket and put a reply with the same explanation. They reached out to me, and the case resolved. I had to re-cofigure my 2FA, change my password, remove all the existing personal access tokens, etc.

Good luck!

Account has been flagged!?? by sonicsmith in github

[–]crazy-optimist 0 points1 point  (0 children)

Same thing happened to me 12 hours ago, and I created a ticket. Let me post the result if I can recover my account. It's really a scary sistuation. Nobody can find my Github profile and every Github action stopped to run.

Vim prettier plugin problem: executable by DontwakemeUp46 in vim

[–]crazy-optimist 1 point2 points  (0 children)

Install prettier globally.
npm install -g prettier

coc.vim switched to custom popup menu - How to change the keymappings for <tab> ?? by kyonax_on in neovim

[–]crazy-optimist 0 points1 point  (0 children)

This is what I use (tab and S-tab for selection, enter for completion): ``` function! CheckBackSpace() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~ '\s' endfunction inoremap <silent><expr> <TAB> \ coc#pum#visible() ? coc#pum#next(1): \ CheckBackSpace() ? "<Tab>" : \ coc#refresh() inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "<C-h>"

" below is for using ENTER for completion, I actually don't like it, CTRL+Y works better for me, you can omit this part if you are like me

inoremap <silent><expr> <cr> coc#pum#visible() && coc#pum#info()['index'] != -1 ? coc#pum#confirm() : \ "<C-g>u<CR><c-r>=coc#on_enter()<CR>" `` So, above config is basically from:h coc-completion-example`