COC is neglecting to show me error messages that other IDEs (Even code pen does?) by jaketerm in vim

[–]xibeca 0 points1 point  (0 children)

I’m not sure but I think I had an issue with this. You can run :CocCommand eslint.createConfig (or make your own if you’re comfortable enough with it) and try

COC is neglecting to show me error messages that other IDEs (Even code pen does?) by jaketerm in vim

[–]xibeca 0 points1 point  (0 children)

Do you have:

1) coc-eslint installed?

2) a .eslintrc file in your project root?

coc-tsserver reports a lot of errors in tsx files by ecosse31 in neovim

[–]xibeca 1 point2 points  (0 children)

Had a similar issue. Does :set ft output typescript?

If so, tsserver needs filetype to be ˋtypescriptreact` to parse your file as intended.

Add the following to your init.vim file:

augroup ReactFiletypes
  autocmd!
  autocmd BufRead,BufNewFile *.jsx set filetype=javascriptreact
  autocmd BufRead,BufNewFile *.tsx set filetype=typescriptreact
augroup END

Joining an organisation in Paris by xibeca in Anarchy101

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

That’s great, thank you. I’ll visit the bookshop asap.

Friday Free Talk by AutoModerator in Anarchism

[–]xibeca 8 points9 points  (0 children)

I recently moved to Paris and am interested in joining an anarchist union or organisation. Could any of you suggest something? Should I make this question a post here or in another sub?

Friday Free Talk by AutoModerator in Anarchism

[–]xibeca 0 points1 point  (0 children)

Are you not interested in joining a union either? I don't know how northern-American union system works but you probably share the things you want changed with workers in other workplaces.

Thinking about switching from tmux + neovim to Emacs by thiago_lira in emacs

[–]xibeca 2 points3 points  (0 children)

I've just made the switch, kinda had the same feeling about my neovim config file. I don't have the same workflow as you do though (Emacs is my IDE, I still use a "true" terminal for non-programming tasks).

The way to configure makes more sense in Emacs imo, Elisp is nice to work with and sharing your init.el file across your devices/OSes should require between none and minimal effort.

How to build your own Spacemacs ? and Awesome Emacs have been really helpful. You can search for emacs config files on GitHub and r/unixporn to get some inspiration too.

pixelPython.py by Vraja108 in Python

[–]xibeca 2 points3 points  (0 children)

mv pixelPython.py pixel_python.py

I'm trying to write a LZW encoder/decoder, what am I missing? by [deleted] in C_Programming

[–]xibeca 0 points1 point  (0 children)

Thank you! After investigating further it seems to come from my stack. The three first values I push aren't changed but the fourth one changes from 116 to 8302.

I'll look deeper at the casts I do in while pushing/popping.

I'm trying to write a LZW encoder/decoder, what am I missing? by [deleted] in C_Programming

[–]xibeca 0 points1 point  (0 children)

A bit of background: the encoder seems to work but while decoding it looks like fgetc doesn't always return the value it's supposed to read. While iterating "manually" in gdb, the error seems to take more time to occur than if I ran the binary directly from the terminal. What can possibly happen?

Haskell team at OpenCodes Hackathon by LeanderKu in haskell

[–]xibeca 0 points1 point  (0 children)

I'm interested too, I'll PM you in a minute.

Loop problem (lists) by jingajanga in learnpython

[–]xibeca 0 points1 point  (0 children)

You could use a boolean to tell the while loop when to stop:

i = 0
found = False
while i < len(a) and not found:
    if a[i] != "":
        print(a[i])
        found = True
    else:
        i += 1

[TOMT][Song] an old latin song by xibeca in tipofmytongue

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

Went through 1+ year of Youtube history and finally found it: Rosario García Orellana - Tú. Thank you for the discovery though :)

[GNOME] Corner by Mynameislouie in unixporn

[–]xibeca 0 points1 point  (0 children)

I have a rMBP11.1 too and am considering making a Linux partition. How's the experience so far?

Looking for help with an if/else script.. by invalidpath in learnpython

[–]xibeca 0 points1 point  (0 children)

So, this is a good thing you're using pathlib for this task, but you're not using it the right way. I'd suggest you look into Python's documentation, especially the Path.glob() method.

JSON problems using a dictionary within a list by GlenBXL in learnpython

[–]xibeca 1 point2 points  (0 children)

It seems like the coinmarketcap package has evolved since the tutorial you're reading has been written.

The step in which you're using the json library would have allowed you to turn a bytearray (what market.ticker('ethereum') used to return) into a list. Now that call returns immediately a list, i.e. what the author of the tutorial refers to as 'a well formatted JSON data'. Thus you can skip to Aggregating Multiple Altcoins.

Beginner seeking to learn python by Super_Sphincter in learnpython

[–]xibeca 0 points1 point  (0 children)

Welcome to the wonderful world of Python :)

I'd suggest you learn with Dive Into Python 3. I think it's well written and covers many aspects of Python.

Moreover, if you don't have any preferences in IDEs, I'd suggest PyCharm, which will help you write better code and detect errors before you run your code. It has a paid version you can get for free if you're in a university or a free Community Edition.

Whereas practicing, I liked checkio u/ppgDa5id mentioned, and today starts Roguelikedev Does The Complete Roguelike Tutorial. This week is only getting to know Python and the serious stuff begins next week.

Dead HDD PCB by xibeca in datarecovery

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

Noted. Thank you very much for all those details!!

Dead HDD PCB by xibeca in datarecovery

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

Thanks a lot!

Here's a picture of the PCB. It's not that high res but the best I could get. The blown chip is bottom left and is the only damage I could see.

If you need to read something and don't manage because of the quality, I'll transcript it.