@ericjmorey@c.im

ericjmorey

@ericjmorey@c.im

This profile is from a federated server and may be incomplete. Browse more on the original instance.

WetHat, to jupyter
@WetHat@fosstodon.org avatar

Think Python, 3rd edition

The book is now entirely in notebooks, so you can read the text, run the code, and work on the exercises, all in one place.

Starting in February 2024, @allendowney plans to release new chapters, about one per week.

https://allendowney.github.io/ThinkPython/

ericjmorey,

@allendowney

This may have been reported already but all of the Colab links after chapter 5 say "Click here to run Chapter 5 on Colab", though the url linked to appear to be correct and not to chapter 5.

https://allendowney.github.io/ThinkPython/

@WetHat

swatantra, to datascience
@swatantra@fosstodon.org avatar

Has anyone tried dataframes in #R? How was your experience, especially when working with a large dataset?

@rstats

ericjmorey,

@swatantra

You might get more feedback if you ask on the Discord server for Polars.

If you do try it out I happened to see this earlier today, check it out:
https://ddotta.github.io/cookbook-rpolars/

@rstats

kristin_baumann, to svelte
@kristin_baumann@vis.social avatar

The 2024 Du Bois Data Visualization Society Challenge has started!

Here is my re-creation of Du Bois Poster Nr. 6 for week 1, implemented with D3 and Svelte.

Live: https://du-bois-challenge-2024.kristin-baumann.com/#challenge1
Github: https://github.com/kristinbaumann/du-bois-challenge-2024

ericjmorey,

@kristin_baumann

It seems like people with Deuteranopic (Green) color blindness will have trouble distinguishing between two of the categories.

This website simulates what your image would look like and I have copied the result of the Deuteranopic simulation in this reply:
https://pilestone.com/pages/color-blindness-simulator-1

ericjmorey,

@seblammers

Interesting! I wasn't familiar with Du Bois' work. I guess this highlights how much easier it is today to create and verify that visualizations are more accessible or even to just be aware of differences in visual perception.

@kristin_baumann

piefedadmin, to python
@piefedadmin@join.piefed.social avatar

As of today, PieFed includes a ‘theme engine’ which makes it easier for people with low or no Python skills to change how PieFed looks and behaves.

Let’s start with the app/templates/themes directory in the PieFed codebase. In this directory there will be a sub-directory for each theme that is available. As of this writing there is only one, called ‘high_contrast’. If you want to make a new theme, copy the high_contrast directory and rename the copy to something 20 characters or less. Let’s pretend your theme is called ‘my_theme’.

Inside ‘high_contrast’ is high_contrast.json. This file contains a bit of information about the theme, to improve the user experience of choosing which theme to enable. Currently the only information in there is a user-friendly name for our theme but I might add more in future. In our new theme we to rename high_contrast.json to be the same as the directory containing it, or ‘my_theme.json’ in this case. Also change the user friendly name in the JSON to something like “My Theme”. Take care not to change the double quotes.

Also in the theme directory are two files: styles.css and scripts.js. You can remove the high_contrast CSS and put your own. high_contrast’s scripts.js is empty and is just a placeholder to encourage you to add your own JavaScript.

In PieFed on the main menu, go to Account -> Settings and check if your new theme is shown as an option in the Theme field. If not then you messed up the naming of the theme directory or theme.json file. The theme setting here will change the theme you use while browsing PieFed – to change it for everyone go to Admin -> Misc Settings and set the ‘Default theme’ option.

Editing styles.css and scripts.js will probably be enough for most people. But in addition to that you can copy any .html file from app/templates into your theme and that copy will be used instead of the default one. For example, the home page template is app/templates/index.html so if you copied it to app/templates/themes/my_theme/index.html then any edits you make to the copy will be used to render the home page in a different way than the stock PieFed theme would!

If you want to theme a template in a sub-directory, like app/templates/post/post.html then the correct place for your copy will be app/templates/themes/my_theme/post/post.html.

The .html templates are a mixture of HTML and a language similar to Python called Jinja2.

I very much look forward to seeing what people come up with!

Licensing

PieFed is licensed under the open source AGPL license and themes are considered derivative works. As a result, themes need to be licensed under the AGPL as well.

This means that anyone who distributes or shares their PieFed themes must do so under the terms of the AGPL, ensuring that the source code of the theme remains open and accessible to others. If you do not distribute or share the theme with others then you do not need to share the source code with the public.

Using the theme to serve a publicly-accessible PieFed instance is “distribution” so you need to be able to make the theme source code available to everyone, either as a downloadable file or a git repository. If you choose to send PieFed a PR of your theme it will be gratefully accepted.

https://join.piefed.social/2024/02/07/changing-piefeds-appearance-with-themes/

ericjmorey,

@piefedadmin

Visiting the link you provided prompts me to download a bin file.

https://join.piefed.social/2024/02/07/changing-piefeds-appearance-with-themes/

mekkaokereke, to random
@mekkaokereke@hachyderm.io avatar

My hot take on the Vision Pro is the same as my hot take on every AR/VR/Mixed Reality headset produced in the past checks notes 20 years: "If most women can't use your product for 4 hours straight without throwing up, don't try to tell me that it's the future of anything." I said what I said.

Women can use a smartphone indefinitely without nausea. They can use a laptop indefinitely. A gaming console and TV indefinitely. But XR headsets cause motion sickness in most women in under an hour. 🤷🏿‍♂️

ericjmorey,

@mekkaokereke

How much has Meta bet on XR?

natera, (edited ) to python
@natera@fosstodon.org avatar

I’m putting together a workflow to add my favourited toots to my week in review with a script.
Anyone interested in the approach?
I’m thinking about writing a post about it. You’ll be able to read it in my newsletter: https://buttondown.email/natera
Make sure to subscribe!

ericjmorey,

@natera

Doesn't seem to be anything at that URL

ramikrispin, (edited ) to vim
@ramikrispin@mstdn.social avatar

TIL about neovim, a code editor. Does anyone use it? Any feedback? What are the use cases? It seems to be somewhere between vim and VScode.

https://www.youtube.com/watch?v=c4OyfL5o7DU&

ericjmorey,

@ramikrispin

FYI You wrote neWvim instead of neOvim.

Neovim is awesome! But it's not really like VScode at all.

It's mostly vim with support for Lua (a gross simplification but gets you into a usable mental model). That Lua scripting has seeded what is now a great ecosystem. Many active developers have made Neovim highly customizable for creating workflows and development environments that work the way you think. You can use a pre built distribution or build out your own configuration as you see fit.

See vim_diff for details on how the core of neovim is different from vim.
http://neovim.io/doc/user/vim_diff.html

danilo, to random
@danilo@hachyderm.io avatar

My absolutely thermonuclear, get-canceled take

is that Apple deserves a cut of third party App Store developer revenues

Reasonable people can disagree on how much, and Apple HAS harmed itself through greed

But distribution infrastructure has value. Creating and maintaining runtimes has value. Building developer tools has value. Calling it “payment processing” totally misses the mark on what they built

There has never been a universe where you got distribution for your product for free.

ericjmorey,

@betsythemuffin

That security review seems superficial and arbitrary.

@danilo

ericjmorey,

@danilo

Sure it is. But the way Apple set things up is not the only way for that value to be created.

@betsythemuffin

ericjmorey,

@danilo

Doesn't that response go against the premise of your whole thread here?

@betsythemuffin

ericjmorey,

@danilo

That's like saying "Why can't you get up?" while you're standing on someone's back.

I couldn't' happen because it benefits Apple not to allow it.

@betsythemuffin

brodriguesco, to python
@brodriguesco@fosstodon.org avatar

I may not enjoy analyzing data with , but I like the workflow of creating a dedicated development environment per project that is encouraged by using pyenv or conda.

Something like that should exist for , for example a script that uses both RIG and {renv} to provide a project-specific R+packages installation

ericjmorey,

@brodriguesco

Conda and Mamba are designed to facilitate doing exactly what you want with multiple languages including R.

ericjmorey,

@gmcd

I think Nix is great for addressing both concerns. But people seem intimidated by it.

Also, there's never going to be a great answer for people that build things for their own purposes and only later think to share them. Especially if those people are not software engineers, but people that are just answering questions using programming languages as a tool fir discovery.

@brodriguesco

mattcowgill, to random
@mattcowgill@mastodon.social avatar

I’m kind of worried about Posit — and by extension,

From: @zkamvar
https://hachyderm.io/@zkamvar/111699279163834211

ericjmorey,

@Mehrad

You seem to be arguing that heavy equipment shouldn't be used to dig a foundation of a house because people can use shovels as if the foundation of the house was the entire point of the construction project. Ultimately, someone wants to live in the house and the cost increases and time delays that digging by hand would entail are not going to be welcomed by those who would like to live in the house even if someone claims that using the heavy equipment is somehow doing it wrong.

@alastairmrushworth @Lluis_Revilla @mattcowgill @zkamvar

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • tacticalgear
  • DreamBathrooms
  • osvaldo12
  • mdbf
  • everett
  • magazineikmin
  • khanakhh
  • Youngstown
  • rosin
  • slotface
  • modclub
  • kavyap
  • anitta
  • normalnudes
  • ngwrru68w68
  • thenastyranch
  • cisconetworking
  • Durango
  • ethstaker
  • InstantRegret
  • Leos
  • provamag3
  • GTA5RPClips
  • tester
  • cubers
  • megavids
  • lostlight
  • All magazines