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 »

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
 
66%
+2 −0
Q&A How to fix NoMethodError: undefined method `id' for nil:NilClass when visiting the QPixel homepage?

You don't have a homepage category set. Go to the category list (/categories), pick one to be the homepage, edit it and tick the homepage option, then save it and try again. If that's not in the s...

posted 3y ago by ArtOfCode‭

Answer
66%
+2 −0
Q&A How to fix ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil} when visiting the moderator page?

This is related to your other problem - it's the same root cause. Without any post types in the database, there aren't any to add to the categories, and the help and policy post types don't exist t...

posted 3y ago by ArtOfCode‭

Answer
66%
+2 −0
Q&A 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
66%
+2 −0
Q&A What's a low-effort option for a Codidact development machine?

While I haven't gotten to doing it myself yet, my recommendation, except for those who have to work totally offline (which would cause problems for any content coming from a CDN or other sources su...

posted 4y ago by manassehkatz‭

Answer
66%
+2 −0
Q&A What's a low-effort option for a Codidact development machine?

A Raspberry Pi will run QPixel, and would be almost ideal for development as a small tinkering box. It's small, it'll fit on a desk with everything else already there, it can be remoted into. The o...

posted 4y ago by ArtOfCode‭

Answer
66%
+2 −0
Q&A How to set up a Production environment

Assuming you've followed the steps in the guide to setting up development, changing that to a production environment is relatively easy. Check your production configuration file (config/environm...

posted 2y ago by ArtOfCode‭

Answer
66%
+2 −0
Q&A How to set up a new (development) instance of Codidact/QPixel

Installing QPixel on Fedora Linux using RVM without brew If you happen to be installing in this situation, a few things might have different names. Here are some of the differences I had to allow ...

posted 2y ago by trichoplax‭  ·  edited 9mo ago by trichoplax‭

Answer
66%
+2 −0
Q&A Desired state of code documentation

QPixel has limited code documentation. That's partially by design, and partially because it often just gets missed out. Ruby is a relatively verbose language which tries to be as self-documenting ...

posted 4y ago by ArtOfCode‭

Answer
66%
+2 −0
Q&A How to solve Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

As the error message says, you can re-run the installation for that single gem to get more detail about the error: gem install mysql2 Read the log and any error messages carefully, as they will...

posted 4y ago by ArtOfCode‭

Answer
66%
+2 −0
Q&A Mysql return error Unknown collation: 'utf8mb4_0900_ai_ci' when run rails db:schema:load

The problem is the version of MySQL. This collation was added with MySQL 8.0 and is the new default. MySQL 5.7.32 does not have it. Since the create table statement includes it, clearly it is desig...

posted 4y ago by manassehkatz‭

Answer
66%
+2 −0
Q&A 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
66%
+2 −0
Q&A How do I force db:seed to forget previous context and load only what is in the flags YAML file?

This is the difference between refreshing the database and seeding the database. db:seed does what it says on the tin - seeds the database. That means it adds pre-defined data to the database. It ...

posted 1y ago by ArtOfCode‭

Answer
66%
+2 −0
Q&A "Confirm my account" link shows as https in development

As of this commit, there is a new environment variable, MAILER_PROTOCOL, that accepts values of http or https. The default is https, but you can set this to http in a development environment to av...

posted 10mo ago by Monica Cellio‭  ·  edited 10mo ago by Monica Cellio‭

Answer
66%
+2 −0
Q&A 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
66%
+2 −0
Q&A 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 10mo ago by anurag3221@‭  ·  last activity 10mo ago by Monica Cellio‭

Question support sso
66%
+2 −0
Q&A 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 10mo ago by Monica Cellio‭  ·  edited 10mo ago by Monica Cellio‭

Question guide docker
66%
+2 −0
Q&A 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
Q&A Setting up Single-Sign-On

Not a complete answer (I'm not fluent in SSO), but the developer who implemented SSO created this wiki page about setup. We had failed to incorporate that into our installation doc -- now linked f...

posted 10mo ago by Monica Cellio‭  ·  edited 10mo ago by Monica Cellio‭

Answer
60%
+1 −0
Q&A Need Help Setting Up Email Verification in Codidact

Since you mention setting this up on your local machine, I assume this is a development environment, intended for your own testing (so the new user you are creating is still controlled by you on yo...

posted 11mo ago by trichoplax‭

Answer
60%
+1 −0
Q&A 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 7mo ago by Monica Cellio‭  ·  last activity 7mo ago by trichoplax‭

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

Hidden helper functions There are additional helper functions defined that can be used from the view files. These can be found in a separate helpers directory. In this particular case, the expanda...

posted 7mo ago by trichoplax‭  ·  edited 7mo ago by trichoplax‭

Answer
60%
+1 −0
Q&A 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
60%
+1 −0
Q&A How do I add a new route (URL)?

You can add a new route in the file config/routes.rb, and the existing routes in that file for the other "tabs" on the user profile page show the template to follow. The relevant part of the route...

posted 1y ago by trichoplax‭  ·  edited 7mo ago by trichoplax‭

Answer
60%
+1 −0
Q&A 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 1y ago by Monica Cellio‭  ·  last activity 7mo ago by trichoplax‭

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

As this answer says, db:seed isn't the right tool here. Short of dropping the entire database as suggested in that answer, you can delete individual flags in the database. From the mysql console,...

posted 1y ago by Monica Cellio‭

Answer