atlas news
    
Mathspp
21  mai     22h00
Problem #061 - flower garden
   Three mathematicians discuss a beautiful flower garden and the coloured flowers within Photo by Norikio Yamamoto on Unsplash Problem statement Three mathematicians were discussing a beautiful flower garden The first mathematician said It s a beautiful garden All flowers are either red
07  mai     22h00
Problem #060 - realtor commissions
   Two realtors discuss who s netting the award for highest average commission but it isn t clear who the winner is Photo by Dillon Kydd on Unsplash Problem statement Alice and Bob are two realtors that work at the same premium real estate agency WSH Because WSH really wants to focus on
30  avril     22h00
TIL #045 - using JavaScript functions in PyScript
   Today I learned how to use JavaScript functions in PyScript import datetime from js import setInterval from pyodide import to js def update timestamp elem elem write format datetime datetime now H M S A d B Y elem Element timestamp updater
29  avril     22h00
TIL #044 - PyScript
   Today I learned about PyScript a tool that lets you run Python in your HTML import datetime output Element py script target now format datetime datetime now H M A d B Y output write now PyScript Run Python in Your HTML Today I learned about PyScript a tool that lets
27  avril     22h00
TIL #043 - rich traceback and exception logging
   Today I learned how to use rich for beautiful tracebacks in the REPL and how to use it to log prettier exceptions How to make your tracebacks more beautiful The module rich comes with an option that lets you modify the way your tracebacks are printed in the REPL In order to use it you only
26  avril     22h00
TIL #042 - how to do beautiful console logging
   Today I learned how you can do beautiful console logging by using the module rich How to do beautiful console logging The standard way to do logging in Python is by using the module logging that comes in the standard library To do beautiful console logging with very little effort you just need
25  avril     22h00
TIL #041 - how to commit part of a file with git
   Here is how you can commit only part of a file with git How to commit only part of a file with git If you are using git you are probably aware that the command git add takes a file name argument and then stages that file for committing If you use the command option patch then you can add
20  avril     22h00
Contributing to open source: rich 2073
   This is the story of how I started contributing to open source and in particular how I tackled issue of the well known Python library rich by Will McGugan Preamble I am trying to get my feet wet in the world of open source While I have a couple of contributions under my belt those have
16  avril     22h00
Problem #059 - marching pegs
   How can you swap the coloured pegs if they can only march forward Photo of the game that inspired this post Problem statement Imagine seven round slots O O O O O O O In the three left slots you have Yellow pegs Y Y Y O O O O In the three right slots you have Green pegs Y Y Y O G G G You have
29  mars     22h00
TIL #040 - code syntax highlighting in Microsoft PowerPoint
   Learn how to do code syntax highlighting in PowerPoint How to do code syntax highlighting in Microsoft PowerPoint The basic technique I use to do syntax highlighting for my talk slides has two steps open Visual Studio Code and write the code I want highlighted and copy the code from Visual