Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

General Q&A about setting up the Codidact (QPixel) platform or contributing to the open-source project. For questions about the network hosted at codidact.com, see Codidact Meta.

Filters (None)
60%
+1 −0
How do I add a new route (URL)?

I was thinking about taking a try at an issue that would add a new sub-page to the user profile. I understand that as part of this I need to add a "route" for the new URL and somehow wire that up ...

1 answer  ·  posted 11mo ago by Monica Cellio‭  ·  last activity 5mo ago by trichoplax‭

Question development
60%
+1 −0
How does a view know it should show the category bar?

Pages that are "in" a category show the category bar at the top, like this: An individual suggested edit should logically be "in" a category too, but isn't shown that way: I'm trying to figur...

1 answer  ·  posted 5mo ago by Monica Cellio‭  ·  last activity 5mo ago by trichoplax‭

Question support development category
87%
+12 −0
How to set up a new (development) instance of Codidact/QPixel

The QPixel repository on GitHub contains the source code for the Codidact software. How can I set up a new development instance of it, so that I can work on it on my local machine?

4 answers  ·  posted 4y ago by luap42‭  ·  last activity 7mo ago by trichoplax‭

Question guide installation development
66%
+2 −0
Setting up Single-Sign-On

I have successfully set up QPixel on my local machine. However, I encountered an issue with user authentication — when registering a new user, the SSO authentication doesn’t work as expected. I’ve ...

1 answer  ·  posted 9mo ago by anurag3221@‭  ·  last activity 8mo ago by Monica Cellio‭

Question support sso
66%
+2 −0
Using Docker in a dev environment: ongoing maintenance?

I followed the instructions to set up Docker on my developer machine and it works great. Sometimes, though, I run into problems after I've pulled updates or switched branches. I don't really unde...

0 answers  ·  posted 8mo ago by Monica Cellio‭  ·  edited 8mo ago by Monica Cellio‭

Question guide docker
60%
+1 −0
No route matches [POST] "/users/<>/auth"

I'm trying to get QPixel working, but I'm stuck at SSO. I'm using Microsoft Entra ID as IDP. Every time I try to login, I get this error: No route matches [POST] "/users/saml/auth"

0 answers  ·  posted 1y ago by Sandman‭  ·  edited 8mo ago by Andreas has suspended his contributions‭

Question support sso
60%
+1 −0
"Confirm my account" link shows as https in development

As instructed in the "Create administrator account" section of the QPixel Installation guide I created a second new user through the user interface (clicking "Sign Up") in my local development inst...

1 answer  ·  posted 2y ago by trichoplax‭  ·  last activity 9mo ago by Monica Cellio‭

Question discussion
71%
+3 −0
Need Help Setting Up Email Verification in Codidact

I’m a learner exploring Q&A tools, and after researching, I came across Codidact. I’m impressed with its features and have successfully set it up on my local machine. However, I encountered an ...

1 answer  ·  posted 10mo ago by anurag3221@‭  ·  last activity 10mo ago by trichoplax‭

Question support installation setup
71%
+3 −0
What does this failure involving mysql on Mac mean?

I had to reinstall mysql on my Mac, and after some thrashing I was able to again connect to my Qpixel database from the command line. The data is as expected, so it appears that mysql itself is ok...

1 answer  ·  posted 11mo ago by Monica Cellio‭  ·  last activity 11mo ago by trichoplax‭

Question development database
71%
+3 −0
Valkey instead of Redis

Does anyone have experience and tips migrating to Valkey? The reason I ask is becuase Redis changed their license in the beginning of 2024 and is now closed source.

0 answers  ·  posted 1y ago by hdmm‭

Question discussion installation setup redis
66%
+2 −0
Please teach me to fish: how do I navigate the edit/suggested-edit code to apply the same error check to both?

I was trying to fix what I thought was an easy bug: suggested edits can add restricted tags (the ones only moderators can apply), which creates a suggested edit that most reviewers can't approve. ...

0 answers  ·  posted 1y ago by Monica Cellio‭  ·  edited 1y ago by trichoplax‭

Question development
60%
+1 −0
How do I force db:seed to forget previous context and load only what is in the flags YAML file?

In my dev environment I'm editing the flags in db/seeds/post_flag_types.yml. After editing I run rails db:seed, which adds my new flag. Fine so far. However, I had a typo in the name, so I edite...

2 answers  ·  posted 1y ago by Monica Cellio‭  ·  last activity 1y ago by Monica Cellio‭

Question development
60%
+1 −0
Cannot find definition of function that returns a path

I want to find the place in the codebase where a path is defined, but searching for the function that creates it gives no results apart from the usage of that function. For example, see thread.htm...

1 answer  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by trichoplax‭

Question support
75%
+4 −0
Database migration between Codidact and SO for Teams

If I have my "own instance of the Codidact software (QPixel) locally, on a server" (cited from here), can I easily migrate the overall database (user accounts, Q&A, etc.) to a Stack Overflow fo...

1 answer  ·  posted 2y ago by zetyty‭  ·  edited 1y ago by Andreas has suspended his contributions‭

Question database stack-overflow-teams
71%
+3 −0
migrate/import data from Stackoverflow for Teams to QPixel?

How do I migrate/import data from Stack Overflow for Teams to a custom instance of QPixel? I have a few JSON files that I need to migrate/import to QPixel, e.g. users, posts, comments etc..

0 answers  ·  posted 1y ago by Sandman‭  ·  edited 1y ago by Andreas has suspended his contributions‭

Question support migration import stack-overflow-teams
77%
+5 −0
Why shouldn't one run a production server in Docker?

QPixel's Docker documentation says that the Docker setup is intended for development environments, not production. The documentation calls out one specific issue: email doesn't work. Are there ot...

1 answer  ·  posted 2y ago by Monica Cellio‭  ·  last activity 2y ago by Taeir‭

Question installation
71%
+3 −0
Warning about ruby version when moving to qpixel installation directory with RVM

After ruby (version 3.1.2) install with RVM, when I move to the qpixel install directory (with cd qpixel command), the following warning is displayed in the terminal: Unknown ruby interpreter ve...

1 answer  ·  posted 2y ago by zetyty‭  ·  edited 2y ago by zetyty‭

Question support ruby
Codidact/QPixel Installation Guide

This post aims to provide a step-by-step tutorial regarding the installation/operation of Codidact/QPixel server locally (development mode) or on a network (in production mode). The "official" ins...

posted 2y ago by zetyty‭  ·  edited 2y ago by zetyty‭

Wiki guide installation development production
75%
+4 −0
How to get QPixel bundle install working without sudo privileges on Debian?

When I tried to install QPixel with bundle install I got the following message (on Debian 11): ~/qpixel$ bundle install Bundler 2.3.15 is running, but your lockfile was generated with 2.4.13. Ins...

2 answers  ·  posted 2y ago by zetyty‭  ·  last activity 2y ago by zetyty‭

Question support
80%
+6 −0
What exactly is QPixel?

I always thought that the terms "Codidact" and "QPixel" refer to the same beast until I came across this post in the chat stating: [..] Should we use qpixel (quicker launch, less dev work to do)...

1 answer  ·  posted 2y ago by zetyty‭  ·  last activity 2y ago by Moshi‭

Question discussion
66%
+2 −0
How to remove the "This site is in development mode!" message with local QPixel?

How to remove the following red message (see also the picture below) displayed on the top of each pages when running a local instance of QPixel? This site is in development mode! In additio...

1 answer  ·  posted 2y ago by zetyty‭  ·  last activity 2y ago by zetyty‭

Question support
60%
+1 −0
What is a "Category" in QPixel?

What is a "Category" in QPixel? Does this allow you to create something equivalent to a Site Proposal in Codidact Community Proposals or is it something else?

1 answer  ·  posted 2y ago by zetyty‭  ·  last activity 2y ago by Mithical‭

Question category
60%
+1 −0
Is the difference in Codidact's CDN guidance intentional?

Codidact has a guide to installing Co-Design. The section "Using a pre-built version" recommends using a CDN. I notice that the CDN recommended in the guide is different to the CDN used in the Cod...

0 answers  ·  posted 2y ago by trichoplax‭  ·  edited 2y ago by trichoplax‭

Question installation cdn
66%
+2 −0
How does caching work in qpixel? Where are the entry points?

Caching is really important for scaling. I know we cache some data -- something about tags (tags for a post?) has been discussed on meta, and I know the "new posts" silver dot (badge) is cached so...

1 answer  ·  posted 3y ago by Monica Cellio‭  ·  last activity 2y ago by trichoplax‭

Question development
71%
+3 −0
How to solve Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

I'm trying to install the Q&A platform using : CREATE USER root@bimberspot IDENTIFIED BY '.....'; GRANT ALL ON qpixel_dev.* TO root@bimberspot; GRANT ALL ON qpixel_test.* TO root@bimberspot;...

2 answers  ·  posted 4y ago by Gate_sprit‭  ·  edited 2y ago by Trilarion‭

Question bug
66%
+2 −0
What user-facing things aren't covered well by automated tests (and should be tested manually)?

We have automated tests (good). Automated tests usually don't cover everything, so when there's a new version we want to test (say, on the dev server), I'd like to be able to prioritize things tha...

1 answer  ·  posted 4y ago by Monica Cellio‭  ·  last activity 2y ago by Trilarion‭

Question tests
66%
+2 −0
Rails cache returning empty string

I'm trying to understand the root cause of a bug, HTML meta tag for description is not question specific. On any individual question page, instead of showing an excerpt of the question and top ans...

0 answers  ·  posted 2y ago by trichoplax‭  ·  edited 2y ago by trichoplax‭

Question cache redis
60%
+1 −0
422 unprocessable error

422 unprocessable error We followed the installation instructions and have a QPixel standalone instance with seems to be working. However we are not able to create the first account. The sign-up p...

0 answers  ·  posted 2y ago by hdmm‭  ·  edited 2y ago by hdmm‭

Question validation
60%
+1 −0
Do seed posts need to be HTML rather than Markdown?

In QPixel, under db/seeds/posts, there are a number of HTML files which are starting points for various help guides and documents such as Terms of Service and Code of Conduct. These can be edited ...

0 answers  ·  posted 2y ago by trichoplax‭

Question help-system html markdown
71%
+3 −0
How to set up a Production environment

How to set up a Production environment We got QPixel to work on localhost but we are struggling to get it working "online". Could someone point us in the right direction? What steps are necessary ...

2 answers  ·  posted 2y ago by hdmm‭  ·  last activity 2y ago by Taeir‭

Question production
50%
+0 −0
Meta: Should Collab have Categories?

When creating a new post in the Q&A Category, I'm asked whether I want to create a question or a wiki article. Are these both stored in the Q&A Category for historical reasons, perhaps due ...

1 answer  ·  posted 2y ago by trichoplax‭  ·  last activity 2y ago by trichoplax‭

Question discussion
60%
+1 −0
Checking if the user is signed in from front end code

When writing front end code for QPixel, is there a preferred way to check whether the user is signed in? The back end code has access to this information, and constructs the page accordingly. Some...

1 answer  ·  posted 2y ago by trichoplax‭  ·  last activity 2y ago by ArtOfCode‭

Question support discussion frontend
60%
+1 −0
Meta: Is there an argument for having Collab under codidact.com?

Does having Codidact Collab under codidact.org rather than under codidact.com with the other communities cause an additional administrative burden, for example when releasing code changes? Would t...

0 answers  ·  posted 2y ago by trichoplax‭

Question discussion
60%
+1 −0
Categories aren't seeded

I followed the instructions here, but even after running rails db:seed, there aren't any categories. Console: moshi@Alpha:~/qpixel$ rails db:create Running via Spring preloader in process 11391 ...

1 answer  ·  posted 3y ago by Moshi‭  ·  last activity 2y ago by Moshi‭

Question support setup
60%
+1 −0
How should I fix this incorrect error message (don't quite understand the code)

I saw this report about a bug in an error message and figured that would be an easy fix. The incorrect error message is: "Tags can't have more than 5 tags". That should be "Posts can't have...". ...

1 answer  ·  posted 3y ago by Monica Cellio‭  ·  last activity 3y ago by Taeir‭

Question support development new-contributors
60%
+1 −0
How can I remove a category from a community?

On page /categories it's easy to create or edit a category, but I cannot find a way to delete a category again. Is the functionality not existing? Following the setup guide my user is a global adm...

2 answers  ·  posted 3y ago by Trilarion‭  ·  last activity 3y ago by Taeir‭

Question support
71%
+3 −0
How does a newcomer to Ruby get oriented in the qpixel code?

I am new to Ruby (and Rails) and have just (finally) succeeded in setting up qpixel on my Mac. I headed over to our easy GitHub issues looking for something to use to get started, and then realize...

1 answer  ·  posted 3y ago by Monica Cellio‭  ·  last activity 3y ago by ArtOfCode‭

Question new-contributors documentation
60%
+1 −0
How can I add post types to a category?

I ran earlier into this in a slightly different way, now I redid the whole QPixel setup but the problem persists: I added a first category to a development instance and wanted to create a first po...

1 answer  ·  posted 3y ago by Trilarion‭  ·  last activity 3y ago by Monica Cellio‭

Question support installation
60%
+1 −0
What (where) are the current code standards and commit guidelines?

The contributing guidelines are probably copied from the previous "core" project. They even link to there while mentioning code standards and commit guidelines. I wanted to update those, but could...

1 answer  ·  posted 3y ago by Trilarion‭  ·  last activity 3y ago by Trilarion‭

Question support guide documentation
50%
+2 −2
Do we currently have users with a name length > 40 characters on Codidact?

Title says it all. Need somebody with database access for it. Is needed for discussion in a Github issue.

0 answers  ·  posted 3y ago by Trilarion‭

Question discussion
66%
+2 −0
Error undefined method `has_tags' or `id' for nil:NilClass during rails db:seed

When running rails db:seed I get some errors without any further explanation. CloseReason: Created 0, skipped 5 User: Created 0, skipped 1 PostFlagType: Created 0, skipped 4 PostType: Created 0...

0 answers  ·  posted 3y ago by Trilarion‭  ·  edited 3y ago by Trilarion‭

Question support installation
71%
+3 −0
How to test CoDesign?

If I make any changes to CoDesign. Then, I have to test what changes I made. Is there possible way to build local server (http://localhost/)? To test while making changes.. I have run npm install, ...

3 answers  ·  posted 4y ago by deleted user  ·  last activity 3y ago by deleted user

Question tests co-design
50%
+0 −0
How to fix NameError (undefined local variable or method `background' for #<#<Class) in avatar_helper.rb?

I'm setting up a QPixel instance. I just created a new category and I realized in the rails s output a NameError in avatar_helper.rb: Started GET "/users/1/avatar/40.png" for 127.0.0.1 at 2022-01-...

1 answer  ·  posted 3y ago by Trilarion‭  ·  last activity 3y ago by Trilarion‭

Question support installation
50%
+0 −0
How to fix ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil} when visiting the moderator page? [closed]

In a fresh development instance I went to http://localhost:3000/mod and got a 500 Server Error related to ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts",...

1 answer  ·  posted 3y ago by Trilarion‭  ·  edited 3y ago by Trilarion‭

Question support installation
66%
+2 −0
Is there a QPixel development roadmap somewhere or can we have one?

One user gave feedback that he/she would be interested in seeing some kind of roadmap for the development (of Codidact). One aspect of that would surely be a development roadmap of QPixel. I know t...

2 answers  ·  posted 3y ago by Trilarion‭  ·  last activity 3y ago by Monica Cellio‭

Question discussion development
60%
+1 −0
How to fix NoMethodError: undefined method `id' for nil:NilClass when visiting the QPixel homepage?

Following the set up guide I was able to start rails server and got my very first QPixel page served (see screenshot): Unfortunately it was a 500 Server Error, which I did not expect and which w...

1 answer  ·  posted 3y ago by Trilarion‭  ·  edited 3y ago by Trilarion‭

Question support installation
66%
+2 −0
Why have I been blocked by cloudflare while posting and how can I circumvent it?

This is more a meta issue, but while posting an error report (with a screenshot and lengthy (but still not too long so the post could be send) error log) here, I was not able to successfully post t...

0 answers  ·  posted 3y ago by Trilarion‭  ·  edited 3y ago by Trilarion‭

Question bug
66%
+2 −0
How to solve ActionView::Template::Error: Database missing time zone support for Etc/UTC in ReportsControllerTest

I ran tests (bin/rails test) and got Error: ReportsControllerTest#test_every_route_should_work_for_moderators: ActionView::Template::Error: Database missing time zone support for Etc/UTC - see h...

1 answer  ·  posted 3y ago by Trilarion‭  ·  last activity 3y ago by Trilarion‭

Question support tests bug
50%
+0 −0
How to deal with OpenSSL::Cipher::CipherError when editing QPixel's credentials

On Ubuntu 20.04 (WSL) I wanted to provide an arbitrary, non-empty Stripe API key and following this answer by Art edit the credentials accordingly. export EDITOR=vim bin/rails credentials:edit ...

1 answer  ·  posted 3y ago by Trilarion‭  ·  last activity 3y ago by ArtOfCode‭

Question support installation
60%
+1 −0
How to solve Magick::ImageMagickError: no decode delegate for this image format in AdvertisementControllerTest#test_image_paths_should_return_png

I ran tests (bin/rails test) and got Error: AdvertisementControllerTest#test_image_paths_should_return_png: Magick::ImageMagickError: no decode delegate for this image format `' @ error/constitu...

1 answer  ·  posted 3y ago by Trilarion‭  ·  last activity 3y ago by ArtOfCode‭

Question support tests bug