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 »

Activity for Taeir‭

Type On... Excerpt Status Date
Edit Post #289902 Post edited:
7 months ago
Comment Post #289902 Maybe also fun to explore creating a debian package for qpixel, which just relies on the necessary dependencies and can have package managers handle the rest. We could create a PPA for easy installation.
(more)
7 months ago
Edit Post #289902 Post edited:
7 months ago
Edit Post #289902 Initial revision 7 months ago
Answer A: Why shouldn't one run a production server in Docker?
Assuming you set it to production mode in the documentation, I think it's mostly fine. As far as I know the following features don't work in the docker setup: Redis data is not stored outside of docker, restarting loses all data in redis (caches, unread circles for categories, user settings, and ...
(more)
7 months ago
Edit Post #289267 Post edited:
9 months ago
Edit Post #289267 Initial revision 9 months ago
Answer A: Warning about ruby version when moving to qpixel installation directory with RVM
I believe that rvm has a mechanism where it will automatically switch to the correct ruby version based on the lockfile. So if the lockfile of an application were to say: `ruby '3.1'`, rvm will detect that and automatically switch to using the correct Ruby version for the project out of the potentia...
(more)
9 months ago
Comment Post #288978 I don't know exactly what types of issues you may run into when using sudo for all the installations, but you may end up having to run the entire server with sudo to get it to work like that.
(more)
9 months ago
Comment Post #288978 From your output it seems like it may be using a system ruby version rather than one installed with rvm. This would explain why its defaulting to `/var/lib/gems`. Try a `rvm install 3.1` followed by `rvm use 3.1` and then I expect that `gem env` should be picking that version instead. If not, perhaps...
(more)
9 months ago
Edit Post #288978 Initial revision 9 months ago
Answer A: How to get QPixel bundle install working without sudo privileges on Debian?
Disclaimer: I use rbenv rather than rvm for installing ruby and have not tested the suggested setup locally. Rather than install bundler via apt, install it via rubygems such that it uses your rvm installed version of ruby. (after `sudo apt purge bundler`) ``` gem install bundler ``` (don't...
(more)
9 months ago
Edit Post #288839 Post edited:
10 months ago
Edit Post #288839 Initial revision 10 months ago
Answer A: How to remove the "This site is in development mode!" message with local QPixel?
In general: if you are seeing that message you have not configured your instance to be in production mode. The warning is there because certain protections and checks are not enabled in development mode, and it should not be used like that in production. When running in production mode, the messag...
(more)
10 months ago
Comment Post #288654 SO for Teams uses a JSON based export format which has the posts in it in markdown format. Codidact I don't think has any file export possibility at the moment, but that could be added if there is an interest for defining a proper import/export format. I think the main reason this was not done befo...
(more)
10 months ago
Edit Post #288654 Initial revision 10 months ago
Answer A: Database migration between Codidact and SO for Teams
I'm afraid this is not really a use case that was envisioned and that Codidact has no support for this. But actually the problem in doing this at all is that SO for teams (to my knowledge) does not offer any import functionality. We are no longer using it at the university where I work, so I can't do...
(more)
10 months ago
Edit Post #287747 Initial revision about 1 year ago
Answer A: How to set up a Production environment
I've added a much more detailed server set up guide for setting up self-hosted instances aimed at system administrators. You can find it on the codidact wiki at https://github.com/codidact/qpixel/wiki/Setting-up-a-Self-Hosted-Instance
(more)
about 1 year ago
Edit Post #287051 Initial revision over 1 year ago
Answer A: Categories aren't seeded
I do not really know why `rails db:schema:load` stopped giving output, but it still does create all the tables as intended. The seeding of categories did indeed break due to rails being more strict on required elements for its relations. I have addressed this issue in https://github.com/codidact/qpix...
(more)
over 1 year ago
Comment Post #287043 Indeed, `:base` is used to indicate "the object itself" (but no specific property thereof). I think some places of the code also put the error on base.
(more)
over 1 year ago
Edit Post #287043 Initial revision over 1 year ago
Answer A: How should I fix this incorrect error message (don't quite understand the code)
Rails has a whole validation logic for showing nice errors whenever things are not valid. What you are adding an error to is the tags "field" of "Post" (in `app/models/post.rb` you will see a `hasmany :tags`). Internally, rails also uses this information when you would programmatically check "which p...
(more)
over 1 year ago
Edit Post #286955 Initial revision over 1 year ago
Answer A: How does caching work in qpixel? Where are the entry points?
How is caching done in QPixel? Note: this answer is based on my understanding of the code after setting up a self-hosted instance. Caching happens in QPixel in multiple locations. The primary one is a so-called Redis cache, which is also set as the Rails cache (`Rails.cache` in the code, but you ...
(more)
over 1 year ago
Edit Post #286954 Initial revision over 1 year ago
Answer A: How can I remove a category from a community?
To delete anything that cannot be deleted through the interface (if you really want it gone), I would recommend doing it in the rails console. Rails has support to indicate what to do with associated entities upon deletion, and some of the models have this specified for them. These rules define for e...
(more)
over 1 year ago