hackinscience issueshttps://framagit.org/groups/hackinscience/-/issues2020-05-31T08:54:40Zhttps://framagit.org/hackinscience/hkis-website/-/issues/39"Multiples of 3 and 5" could use clearer wording2020-05-31T08:54:40ZDimitri Merejkowsky"Multiples of 3 and 5" could use clearer wordingSome suggestions:
"If we list all the natural numbers below 20 that are multiples of 3 or 5, we get 3, 5, 6, 15, and 18. The sum of these multiples is 47. Note that 15 is only counted once"
"Find the sum of all natural numbers below 10...Some suggestions:
"If we list all the natural numbers below 20 that are multiples of 3 or 5, we get 3, 5, 6, 15, and 18. The sum of these multiples is 47. Note that 15 is only counted once"
"Find the sum of all natural numbers below 1000 (<1000) that are multiples of 3 or 5, and print *the result* (numbers divisible by 3 and 5 should be counted a single time)"
By using *the result* instead of *it*, it's clearer that you don't have to print each multiple - people who don't speak English very well are less likely to get confused.https://framagit.org/hackinscience/hkis-website/-/issues/35[issue] - NotImplementedError when migrate2020-07-21T20:49:37ZOlyno[issue] - NotImplementedError when migrateLors de la migration à l'aide de la commande ``python manage.py migrate`` (ou ``./manage.py migrate``), une erreur ``NotImplementedError`` survient:
```
Save New Duplicate & Edit Just Text
Traceback (most recent call last):
File "man...Lors de la migration à l'aide de la commande ``python manage.py migrate`` (ou ``./manage.py migrate``), une erreur ``NotImplementedError`` survient:
```
Save New Duplicate & Edit Just Text
Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "C:\Python38\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
utility.execute()
File "C:\Python38\lib\site-packages\django\core\management\__init__.py", line 357, in execute
django.setup()
File "C:\Python38\lib\site-packages\django\__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Python38\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\Python38\lib\site-packages\django\apps\config.py", line 116, in create
mod = import_module(mod_path)
File "C:\Python38\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Python38\lib\site-packages\channels\apps.py", line 6, in <module>
import daphne.server
File "C:\Python38\lib\site-packages\daphne\server.py", line 18, in <module>
asyncioreactor.install()
File "C:\Python38\lib\site-packages\twisted\internet\asyncioreactor.py", line 320, in install
reactor = AsyncioSelectorReactor(eventloop)
File "C:\Python38\lib\site-packages\twisted\internet\asyncioreactor.py", line 69, in __init__
super().__init__()
File "C:\Python38\lib\site-packages\twisted\internet\base.py", line 571, in __init__
self.installWaker()
File "C:\Python38\lib\site-packages\twisted\internet\posixbase.py", line 286, in installWaker
self.addReader(self.waker)
File "C:\Python38\lib\site-packages\twisted\internet\asyncioreactor.py", line 151, in addReader
self._asyncioEventloop.add_reader(fd, callWithLogger, reader,
File "C:\Python38\lib\asyncio\events.py", line 501, in add_reader
raise NotImplementedError
NotImplementedError
```
**Python version:** 3.8.2
**Pip version:** 20.0.2
**OS:** Windows 10https://framagit.org/hackinscience/hkis-website/-/issues/21Accepter l'email dans le champ de login2020-07-25T16:42:32ZJulien Palardjulien@palard.frAccepter l'email dans le champ de loginJulien Palardjulien@palard.frJulien Palardjulien@palard.frhttps://framagit.org/hackinscience/hkis-website/-/issues/57Add exercise is_anagram2021-03-25T13:19:01ZJulien Palardjulien@palard.frAdd exercise is_anagramhttps://framagit.org/hackinscience/hkis-website/-/issues/32Ajouter un ou des exercices conversion de température2020-04-01T14:46:00ZJulien Palardjulien@palard.frAjouter un ou des exercices conversion de températureLe dernier typiquement avec des descripteurs :
```python
class Temperature:
...
t = Temperature()
t.kelvin = 0
print(t.celsius, t.fahrenheit)
```Le dernier typiquement avec des descripteurs :
```python
class Temperature:
...
t = Temperature()
t.kelvin = 0
print(t.celsius, t.fahrenheit)
```Julien Palardjulien@palard.frJulien Palardjulien@palard.frhttps://framagit.org/hackinscience/hkis-website/-/issues/93Avoid couting the same exercise twice2021-12-07T16:45:14ZJulien Palardjulien@palard.frAvoid couting the same exercise twiceSince https://framagit.org/hackinscience/hkis-website/-/commit/5f3f15caedfb18207e2e863068c97953876b6252
one can send an exercise multiple time and get the score twice :DSince https://framagit.org/hackinscience/hkis-website/-/commit/5f3f15caedfb18207e2e863068c97953876b6252
one can send an exercise multiple time and get the score twice :Dhttps://framagit.org/hackinscience/hkis-website/-/issues/33bencode: encodage des chaînes2020-03-24T23:08:09ZJulien Palardjulien@palard.frbencode: encodage des chaînesbencode et bdecode devraient prendre un paramètre encoding, par défaut utf8, et donc prendre et donner leurs chaines sous formes de chaines et non de bytes.bencode et bdecode devraient prendre un paramètre encoding, par défaut utf8, et donc prendre et donner leurs chaines sous formes de chaines et non de bytes.Julien Palardjulien@palard.frJulien Palardjulien@palard.frhttps://framagit.org/hackinscience/hkis-website/-/issues/77Better team sort2021-05-05T19:19:17ZJulien Palardjulien@palard.frBetter team sortCurrently, lacking a better idea, teams are sorted by using the biggest member score.
I think we can do better, but I don't know what.Currently, lacking a better idea, teams are sorted by using the biggest member score.
I think we can do better, but I don't know what.https://framagit.org/hackinscience/hkis-website/-/issues/29Chat is not working2020-07-21T23:03:09ZMindiellChat is not workingIt seems taht Kiwi IRC is loaded, but nothing appears on the page.
For information, I got privacy badger which bloxks some cloudflare things... Don't know if it's the cause ;o)It seems taht Kiwi IRC is loaded, but nothing appears on the page.
For information, I got privacy badger which bloxks some cloudflare things... Don't know if it's the cause ;o)https://framagit.org/hackinscience/hkis-website/-/issues/81CSP broke images2021-05-31T16:20:29ZJulien Palardjulien@palard.frCSP broke imageshttps://www.hackinscience.org/team/https://www.hackinscience.org/team/https://framagit.org/hackinscience/hkis-website/-/issues/82CSP broke sharing2021-05-21T06:46:15ZJulien Palardjulien@palard.frCSP broke sharinghttps://framagit.org/hackinscience/hkis-website/-/issues/40Currently, "password lost" can't work (it asks no information)2020-07-21T14:43:23ZJulien Palardjulien@palard.frCurrently, "password lost" can't work (it asks no information)Probably due to 11b5e166b988876b38e67af6a2c77033f744ad15Probably due to 11b5e166b988876b38e67af6a2c77033f744ad15https://framagit.org/hackinscience/hkis-website/-/issues/69Delete old attempts?2021-03-30T17:52:17ZstonecrusherDelete old attempts?Is there an option to delete my bad solutions / attempts, only leaving the working one(s)?
I'm not hesitant with pressing that submit button because some exercises can't be tested (only submitted) and sometimes I forget deleting debug-p...Is there an option to delete my bad solutions / attempts, only leaving the working one(s)?
I'm not hesitant with pressing that submit button because some exercises can't be tested (only submitted) and sometimes I forget deleting debug-printmessages from my local tries.
Now that I think about it, I probably get a bad ranking for having so many failed submits ;-)https://framagit.org/hackinscience/hkis-website/-/issues/103Deprecate /teams "API" for /api/teams2023-12-04T16:28:25ZJulien Palardjulien@palard.frDeprecate /teams "API" for /api/teamsCurrently team creation/join/leave/accept is handled via "RPC"-style POST requests, implemented like:
```python
def teams(request):
if request.method == "POST":
if request.POST.get("remove_from_team"):
```
This would be way...Currently team creation/join/leave/accept is handled via "RPC"-style POST requests, implemented like:
```python
def teams(request):
if request.method == "POST":
if request.POST.get("remove_from_team"):
```
This would be way better as a REST-fuller version under /api/teams.
It would probably also avoid a bug: user creating a team with a name > 42 char is currently unhandled and badly fail.https://framagit.org/hackinscience/hkis-website/-/issues/83Double check que la traduction de friendly traceback fonctionne2021-05-20T17:55:16ZJulien Palardjulien@palard.frDouble check que la traduction de friendly traceback fonctionnehttps://framagit.org/hackinscience/hkis-website/-/issues/59Draw N Squares: Assertion Error on Running the code but All test cases Pass2021-02-08T12:30:42ZGagan Deep SinghDraw N Squares: Assertion Error on Running the code but All test cases Pass# Problem: Draw N Squares
### URL:
[https://www.hackinscience.org/exercises/draw-n-squares](https://www.hackinscience.org/exercises/draw-n-squares)
## This is my code for the above problem:
```python
def draw_n_squares(n):
if n % 2...# Problem: Draw N Squares
### URL:
[https://www.hackinscience.org/exercises/draw-n-squares](https://www.hackinscience.org/exercises/draw-n-squares)
## This is my code for the above problem:
```python
def draw_n_squares(n):
if n % 2 == 1:
v = n * 2 + 1
h = v + (n *2)
result = ""
for i in range(v):
if i % 2 == 0:
for j in range(h):
if j % 4 == 0:
result += "+"
else:
result += "-"
else:
for j in range(h):
if j % 4 == 0:
result += "|"
else:
result += " "
result += "\n"
return result
```
## This code passes all test cases
## but does not pass even the first assertion prewritten by the author
The assertions:
```python
assert draw_n_squares(3) == (
"+---+---+---+\n"
"| | | |\n"
"+---+---+---+\n"
"| | | |\n"
"+---+---+---+\n"
"| | | |\n"
"+---+---+---+"
)
assert draw_n_squares(5) == (
"+---+---+---+---+---+\n"
"| | | | | |\n"
"+---+---+---+---+---+\n"
"| | | | | |\n"
"+---+---+---+---+---+\n"
"| | | | | |\n"
"+---+---+---+---+---+\n"
"| | | | | |\n"
"+---+---+---+---+---+\n"
"| | | | | |\n"
"+---+---+---+---+---+"
)
```
# The Error:
```
+---+---+---+
| | | |
+---+---+---+
| | | |
+---+---+---+
| | | |
+---+---+---+
Traceback (most recent call last):
File "/opt/hkis-celery/snippet.py", line 30, in <module>
"+---+---+---+\n"
AssertionError
```
# On Running the Test Cases
![Screenshot_20210207_013406](/uploads/9809461ce2b4980e70ce34452028bfc1/Screenshot_20210207_013406.png)
### This is a very weird issue haha, please fix ithttps://framagit.org/hackinscience/hkis-exercises/-/issues/27Error in example for "Sort students"2022-06-12T10:16:58ZNicolas LedezError in example for "Sort students"For the exercise https://www.hackinscience.org/exercises/sort-students, in sample code, there are:
```
# print(sort_a_list([3, 2, 1])) # should print [1, 2, 3]
```
But the right thing is:
```
# print(sort_a_list([3, 2, 1])) # should pr...For the exercise https://www.hackinscience.org/exercises/sort-students, in sample code, there are:
```
# print(sort_a_list([3, 2, 1])) # should print [1, 2, 3]
```
But the right thing is:
```
# print(sort_a_list([3, 2, 1])) # should print [3, 2, 1]
```
Or:
```
# print(sort_a_list([3, 2, 1])) # should print [3, 2, 1]
```https://framagit.org/hackinscience/hkis-website/-/issues/28Error in example of "format-your-output"2020-07-25T16:03:06ZMindiellError in example of "format-your-output"Example given displays ", " as separator of numbers but exercise description states for "comma separated".
Example should display "," separator in order to be a real example ;o)Example given displays ", " as separator of numbers but exercise description states for "comma separated".
Example should display "," separator in order to be a real example ;o)https://framagit.org/hackinscience/hkis-website/-/issues/88Error when changing response tab2021-12-02T15:11:38ZJulien Palardjulien@palard.frError when changing response tab```
Uncaught ReferenceError: $ is not defined
<anonymous> https://www.hackinscience.org/static/js/tab.js:250
``````
Uncaught ReferenceError: $ is not defined
<anonymous> https://www.hackinscience.org/static/js/tab.js:250
```https://framagit.org/hackinscience/hkis-website/-/issues/38Exercise "First Function" allows empty implementation2020-05-31T09:01:25ZDimitri MerejkowskyExercise "First Function" allows empty implementationSteps to reproduce:
```python
def circle_perimeter(radius):
pass
```
This gives the "spot on!" message which is not what I expected :)Steps to reproduce:
```python
def circle_perimeter(radius):
pass
```
This gives the "spot on!" message which is not what I expected :)