by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 22 2016 16:56
    User @jtigger unbanned @dshamany
  • Nov 13 2016 06:36
    @jtigger banned @dshamany
Eric the Cerise
@spiraldancing
I've seen a couple things on AskUbuntu suggesting that pip sometimes gets installed with alternative command (eg pip-3.2 instead of pip) ... I have no pip-aliases ...
Safe to assume that I do not have pip installed, and I can go ahead and install it (as needed)?
Norbert Melzer
@NobbZ
yes
Eric the Cerise
@spiraldancing
@NobbZ thanks ... but now, further warnings on the "how to install pip" site has led me to (re-)learning virtual environments for python. Since much of my actual OS relies on (presumably) specific versions of python and python-add-ons, it seems prudent to do any python dev-work (including exercism practice) in python sandboxes.
Hopefully/Presumably system-required python-stuff is already segregated from my student-fumbling ... but, y'know, just in case.
Eric the Cerise
@spiraldancing
Actually ... follow-up question for anyone ... can the exercism python track be run inside a python venv? Is it recommended?
Norbert Melzer
@NobbZ
It definitely can be run in a venv, at work I use a mix of venv and asdf-python to manage environments and python versions.
Eric the Cerise
@spiraldancing
@NobbZ Now ... I'm trying to find guidance on preferred naming and/or management conventions for multiple python virtual environments (venv vs pyenv vs pyenv-virtualenv). For the moment, I'm sure venv is plenty, but soon enough, I'll need python2/python3 differentiation so ...
To start with, do I just turn the ~/exercism/python/ directory into a python venv, and then activate it? Is that the best/simplest way?
-- afk for a bit. Thanx in advance.
Norbert Melzer
@NobbZ
No need to differentiate between py2 and py3. py2 is finally obselete and wont receive any support after February 2020.
Just use venv module that comes with python 3 to switch environments based on your current project.
anissouissi
@anissouissi
Hello,
Is it possible to configure exercism cli to use proxy ?
Norbert Melzer
@NobbZ
Yes. HTTP_PROXY and HTTPS_PROXY environment variables need to be set accordingly.
anissouissi
@anissouissi
@NobbZ thanks a lot !
Eric the Cerise
@spiraldancing
Hello ... is there any way to rename the exercism exercise-directories without screwing up the exercism download-and-submit functions?
specifically, I want to rename each exercise to auto-sort in the order I complete them, so I'm trying to rename them to, eg, 001_hello-world, 002_two-fer, etc.
But then 'exercism submit' freaks out with "The exercise directory does not match exercise slug in metadata" error message.
Can I retool the metadata, or am I wandering down a messy trail here?
I mean, I can easily enough edit the ".exercism/user.json" file to match my new directory name ... but is that going to start screwing up other exercism functionality?
Eric the Cerise
@spiraldancing
(Ahem...), I mean the ".exercism/metadata.json" file.
Eric the Cerise
@spiraldancing
Still hoping for feedback on the above ... but New Question --
Is there any reason not to apply Git tracking to either the individual exercises, or to the entire exercism/python directory?
Any recommendations on what (if anything) should be added to a .gitignore?
Norbert Melzer
@NobbZ
No, folders in the workspace needs to be as created by the tool.
And of course you can use git to track your stuff, some of us do and even have their repositories publicly available.
You can find an example of a polyglot-mono-repo at https://gitlab.com/NobbZ/exercism-solutions, others split their polyglottal stuff into one repository per track.
@spiraldancing :point_up_2:
Eric the Cerise
@spiraldancing
@NobbZ Danke, trying to set up my own GitLab exercism project now.
amitrintzler
@amitrintzler
Hi All, trying to install CLI\ exercism on my windows and get REST request failed: Error sending data (12007) the server name or address could not be resolved - anyone here faced it?
Norbert Melzer
@NobbZ
@amitrintzler could you please copy and paste the full error? And what command caused it? Usually the CLI does not print out such numbers...
JacCas2014
@JacCas2014

Hi, I'm just trying to configure the exercism CLI. When I run exercism configure --token=MY_CLI_TOKEN I receive: Error: The base API URL 'https://api.exercism.io/v1' cannot be reached.

API returned 403 Forbidden

Norbert Melzer
@NobbZ
Have you checked if your token is correct?
Highspeedtrooper79
@Highspeedtrooper79
I got the same thing when I tried to configure the CLI
Verified the token by copying it from my settings page.
Norbert Melzer
@NobbZ
To be honest, I've never seen that beforeā€¦ What is the output of exercism debug?
Highspeedtrooper79
@Highspeedtrooper79
What would be the best way to get you the output of the debug?
Norbert Melzer
@NobbZ
Pasting it here using triple-backticks or using termbin.com or pastebin, or github gists or gitlab gists or whatever you like
Highspeedtrooper79
@Highspeedtrooper79
You'll have to pardon my ignorance I'm new to all this. I've saved it on paste in but I'm not sure how to get you the url for it
Norbert Melzer
@NobbZ
Url-bar?
Highspeedtrooper79
@Highspeedtrooper79
Sorry on mobile.
Norbert Melzer
@NobbZ
That looks like not beeing connected to the internet. Or at least as if the CLI is not allowed to access it. Have you checked/disabled your firewall and is proxy set up correctly (if applicable)?
Highspeedtrooper79
@Highspeedtrooper79
It is possible that the traffic is being filtered by the firewall. It's a work machine. It allowed me to get the .exe so I thought I was in good shape maybe not.
Norbert Melzer
@NobbZ
Might be a proxy in place that is configured for your browser but not in the terminal.
But yes, company networks are always a bit hairy
Best is to ask IT department for help installing and configuring. Some companies don't even allow copying and running random binaries from the internet on the workstations.
Highspeedtrooper79
@Highspeedtrooper79
Fair enough. I appreciate you taking the time to help this morning. I'll bring in a personal laptop and give it a go on our public (no proxy) network this weekend.
Thank you again for your time and patience
Anup Dhabarde
@anupdhabarde
Hi