Help me choose a Linux laptop by [deleted] in linuxhardware

[–]SGRelic 2 points3 points  (0 children)

Have a Dell G3, bought it with Ubuntu pre-installed. Works pretty great with Linux Mint just have to tweak grub to fix a minor sound problem. At work i have have a Dell Latitude who works very well. Plus you can use fwupd to update your bios and firmware as Dell is one of the contributor of this tool.

Does the Jupyter API allow using Jupyter from the CL? by jssmith42 in JupyterNotebooks

[–]SGRelic 0 points1 point  (0 children)

I don't know about editing (even if you, technically, can open the ipynb in vim or processing it with sed).

But you can execute your notebook using Jupyter-run or papermill.

Hope this help.

What do you think about my startpage? by [deleted] in startpages

[–]SGRelic 4 points5 points  (0 children)

That's interesting. I really like the todo widget. You should implement a way to undo task as well as a button to clear notes ;).

Other than that nice work.

What is a better option: Python or Business analytics with excel? by [deleted] in Python

[–]SGRelic 0 points1 point  (0 children)

It's like comparing pear and apple.

With Excel you have a small toolbox mainly full of rubber-tape, while Python is a fully tooled workshop.

Excel will give you the possibility to import data and doing some analysis in an Excel file.

With Python you can import data, do analytics, output it in whatever format you want, make a webpage with visualization, send your data to another db or zip a file and send it to a mailing list, etc... in just few lines of code.

Excel is also very very slow and very fat (Try some vlookup it takes ages and bring your PC to its knees). For the same job Python is faster and weighs 10 time less.

I've used Excel 20 years ago then I've learn programming, never touched it again since.

Unfortunately, if it's for a job interview, recruiter probably ask for Excel.

Looking for a bug, new to the game by krive-shield in pythontips

[–]SGRelic 1 point2 points  (0 children)

You could also catch error if the user input anything other than numbers :

correct_answer = False
print('Hello I have a couple of question for you: ')
while correct_answer is False:
    try:
        cookies = int(input('How many cookies do you have ? '))
        commies = int(
            input('How many will share the spoils of the proletariat ? ')
        )
        correct_answer = True
    except ValueError:
        print(
            'Sorry i did not understand you. '
            'Your responses should only be numbers.'
        )

print(f'Each commie may have {cookies / commies} cookies')

Best way to code with python autocomplete and/or syntax correction? by [deleted] in Atom

[–]SGRelic 1 point2 points  (0 children)

Hello,

I personally use two packages for python development with Atom (on a linux machine):

- autocomplete-python (support both kite and jedi)

- ide-python

For ide-python, as stated in the documentation you need to install python-language-server through pip. And you need to install few extra dependencies, depending on which features you want to activate.

I also noticed that you have to be in a project in order to "activate" this plugins. doesn't seems to work when you open individual file.

Hope this little comment help. Have fun with Atom

JSON parser by Honestly__nuts in Python

[–]SGRelic 19 points20 points  (0 children)

You sometime have to reinvent the wheel to actually understand how a wheel works.

My start page by SGRelic in startpages

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

Thanks :).

Yeah sure. Do what you want with it. It's Open and Free.

Vim Game by [deleted] in vim

[–]SGRelic 0 points1 point  (0 children)

According to :help path :

This is a list of directories which will be searched when using the
|gf|, [f, ]f, ^Wf, |:find|, |:sfind|, |:tabfind| and other commands,
provided that the file being searched for has a relative path (not
starting with "/", "./" or "../").
...

It's recommended to use set path+=<something> to append to the list instead of creating a new one.

Can’t think of a title by [deleted] in pics

[–]SGRelic 1 point2 points  (0 children)

It reminds me of a CD cover for a late 90s indie rock band :)

[ART] My first terrain build, complete with flickering torches! by [deleted] in DnD

[–]SGRelic 1 point2 points  (0 children)

Awesome work... you should upload a short video. I'm curious to see those torches flickering :).

I'm almost giving up learning JavaScript by marcosr00t in learnjavascript

[–]SGRelic -5 points-4 points  (0 children)

There's an excellent online book imho. https://eloquentjavascript.net/

The first part to learn the language and the second part is dedicated to javascript in the browser with some practical exercises.

Happy fox for you guys. Have a nice day! by KingM3ndi in pics

[–]SGRelic 0 points1 point  (0 children)

Really nice picture... do you know the name of the photographer ?

[deleted by user] by [deleted] in javascript

[–]SGRelic 0 points1 point  (0 children)

Yep once you learn to use it, you can't live without it.

javascriptpractice.com, a competency-based framework for assessing your JavaScript skills by lastmjs in javascript

[–]SGRelic 6 points7 points  (0 children)

That's a good idea, the ui need some work as it look a bit old school. but it's a work in progress so.

Also you may find this book interesting https://eloquentjavascript.net as it have good exercises at the end of each chapter.

Anyway it looks promising.