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

Dashboard
Notifications
Mark all as read

Activity for Trilarion‭

Type On... Excerpt Status Date
Comment Post #285625 @#53922 "not data" But that's exactly what I'm interested in. I want to know something about the "data" of Codidact, that's why I need somebody with access to the production server.
(more)
3 days ago
Comment Post #285625 I was asking for specifically for Codidact here.
(more)
4 days ago
Comment Post #285625 Where should I input that? I do not have have access to the production server. Otherwise I would do `select count(*) from users where len(name) > 40` or something like that.
(more)
4 days ago
Edit Post #285625 Initial revision 10 days ago
Question 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.
(more)
10 days ago
Edit Post #285521 Post edited:
found an issue that might be related
13 days ago
Edit Post #285600 Initial revision 13 days ago
Question 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 not find any definition of them in the QPixel repository. What are the current code standards and ...
(more)
13 days ago
Comment Post #283622 Okay. I see. Not useful for me then.
(more)
14 days ago
Comment Post #283622 Yes, but still: What was the purpose of the Discord message? Can somebody deliver a bit of context maybe? Because without, it's not very useful for others.
(more)
14 days ago
Edit Post #283316 Post edited:
streamlined a bit
14 days ago
Comment Post #283622 Getting an example project? Something else?
(more)
14 days ago
Suggested Edit Post #283316 Suggested edit:
streamlined a bit
(more)
helpful 14 days ago
Edit Post #285582 Initial revision 14 days ago
Answer A: How to fix NameError (undefined local variable or method `background' for #<#<Class) in avatar_helper.rb?
It was a minor regression. Fixed in https://github.com/codidact/qpixel/commit/993562804a2843d1e96764ffe6d955f9f333389d
(more)
14 days ago
Edit Post #285517 Post edited:
14 days ago
Edit Post #285517 Question closed 14 days ago
Comment Post #285521 I went back to the revision of 2021-11-27 but nothing changed. Maybe I should investigate more what these errors mean. I guess a post type needs to "has_tags" in order to be used as something that one can post, but it seems that in db/seeds/post_types.yml there are five default post types defined an...
(more)
14 days ago
Edit Post #285564 Post edited:
14 days ago
Edit Post #285564 Post edited:
15 days ago
Comment Post #285564 Line "background = "##{Digest::MD5.hexdigest(user.username)[0...6]}FF"" got removed in the latest commit to that file: https://github.com/codidact/qpixel/commit/cb7380a5ee6a933170d94dabc4b52dcc64d10aee#diff-2695b54932747a21a39444e7981463d365d96a14b78e9510518eaee6ce4f90d8 I can probably fix it myse...
(more)
15 days ago
Comment Post #285521 Next thing I will try is doing rails db:seed on the commit that CD is running on currently from 2021-11-27. Maybe it works there.
(more)
15 days ago
Comment Post #285521 I also updated https://collab.codidact.org/posts/285516 with new information. It looks slightly different than before but still something is strange there. Probably related to this one here.
(more)
15 days ago
Edit Post #285516 Post edited:
updated
15 days ago
Comment Post #285521 I redid the setup again and the error persists. I debugged it a bit and added more information to the question body here. Are you sure, that this should not happen? I think I may be able to describe a procedure to reproduce it. Seeding isn't really covered by tests and circleci, or is it?
(more)
15 days ago
Edit Post #285521 Post edited:
added new information
15 days ago
Edit Post #285565 Initial revision 15 days ago
Question 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 admin but also in the admin tools only a `create category` exists.
(more)
15 days ago
Edit Post #285517 Post edited:
update with repeated
15 days ago
Edit Post #285564 Initial revision 15 days ago
Question 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 avatarhelper.rb: ``` Started GET "/users/1/avatar/40.png" for 127.0.0.1 at 2022-01-12 22:37:01 +0100 Started GET "/assets/codidact.png" for 127.0.0.1 at 2022-01-12 22:37:01 +0100...
(more)
15 days ago
Comment Post #285521 There are two databases qpixel_dev/qpixel_test. qpixel_dev has 50 tables and table post_types has 5 rows (started with four). I did seed the database (more than once). I got the error somehow, so maybe somebody else could get the error too and then it's good if we collect information about it here...
(more)
17 days ago
Comment Post #280451 QPixel contains installations instructions in the README file which are somewhat different from the answers here. I wonder what can be done to not confuse people and have preferably only a single document containing this information. Maybe this question could restrict itself to what goes beyond the R...
(more)
18 days ago
Comment Post #285520 No need to be sorry. I'm happy that I got this far. It's almost a running instance and Art probably knows what to do.
(more)
18 days ago
Comment Post #282141 This question is hardware centered. Maybe it would be better to focus instead on different ways to setup a development instance of QPixel and the requirements. For example, I work on a Windows computer and use [WSL](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) and are quite satisfied wi...
(more)
18 days ago
Edit Post #285516 Post edited:
18 days ago
Comment Post #285520 with more information
(more)
18 days ago
Edit Post #285516 Post edited:
added info
18 days ago
Edit Post #285521 Initial revision 18 days ago
Question 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, skipped 5 ReactionType: Created 0, skipped 3 SiteSetting: Created 0, skipped 57 Got error ...
(more)
18 days ago
Edit Post #285516 Post edited:
19 days ago
Edit Post #285517 Post edited:
better title
19 days ago
Edit Post #285514 Post edited:
19 days ago
Edit Post #285517 Initial revision 19 days ago
Question How to fix ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil} when visiting the moderator page?
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", :posttype=>nil}, possible unmatched constraints: [:posttype]): 34: 35: 36...
(more)
19 days ago
Edit Post #285516 Initial revision 19 days ago
Question 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 post but realized there are no post types available: Trying to create a post without a post type I...
(more)
19 days ago
Comment Post #285515 ... that would simplify the setup. Also, the README on Github and the setup Q&A are both incomplete with respect to each other. But I'm slowly getting the hang of it, and could probably update both.
(more)
19 days ago
Comment Post #285488 I posted as much of the question as possible (basically nothing with any SQL statement in it) at https://collab.codidact.org/posts/285514. Even the very first line beginning with "(1.6ms) SET NAMES..." is enough to trigger the block (also here in the comments).
(more)
20 days ago
Edit Post #285514 Post edited:
20 days ago
Edit Post #285514 Initial revision 20 days ago
Question 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): Screenshot of the 500 Server Error Unfortunately it was a `500 Server Error`, which I did not expect and which wasn't mentioned in the guide. Attached is part of the console ou...
(more)
20 days ago
Comment Post #285488 See https://collab.codidact.org/comments/thread/5553#comment-15798
(more)
21 days ago
Comment Post #285488 Two more possible ray ids from just now: 6c97676ae9cc4e8b, 6c976ebeee64692b from two different locations. Gist with the question content: https://gist.github.com/Trilarion/759cd28877179b28f9a387d400d47294 Maye it's the amount of SQL queries in the log.
(more)
21 days ago
Comment Post #285488 No, seems to be only a single post.
(more)
22 days ago
Comment Post #285488 Is enabled and I have asked or answered from here before without problems.
(more)
22 days ago
Edit Post #285488 Post edited:
22 days ago
Edit Post #285488 Initial revision 22 days ago
Question 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 the question (multiple times) but got a block by cloudflare each time instead. Screenshot of the cloud...
(more)
22 days ago
Edit Post #285469 Post edited:
thanks for the answer
22 days ago
Comment Post #285467 ...it's fine. This question is then just for having the problem noted somewhere.
(more)
23 days ago
Comment Post #285468 See https://collab.codidact.org/posts/285481 Also I wonder, why are the tests running through on circle CI? What credentials do they use?
(more)
23 days ago
Edit Post #285481 Initial revision 23 days ago
Question 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 ``` However, that gave an `OpenSSL::Cipher::CipherError` ``` Traceback (most recent call la...
(more)
23 days ago
Suggested Edit Post #285469 Suggested edit:
thanks for the answer
(more)
helpful 23 days ago
Edit Post #285466 Initial revision 23 days ago
Answer A: How to circumvent Stripe::AuthenticationError: No API key provided
As a quick fix one can remove test `should create PaymentIntent` from `DonationsControllerTest` which may backfire later on, but gets you one step further for the time being.
(more)
23 days ago
Edit Post #285465 Initial revision 24 days ago
Question 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#testeveryrouteshouldworkformoderators: ActionView::Template::Error: Database missing time zone support for Etc/UTC - see https://github.com/ankane/groupdate#for-mysql app/views/reports/users.html.erb:17:in `appviewsrep...
(more)
24 days ago
Edit Post #285464 Post edited:
24 days ago
Edit Post #285464 Initial revision 24 days ago
Question 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#testimagepathsshouldreturnpng: Magick::ImageMagickError: no decode delegate for this image format `' @ error/constitute.c/ReadImage/572 app/helpers/advertisements/codidacthelper.rb:23:in `annotate' app/helpe...
(more)
24 days ago
Comment Post #285457 An ERB file is something like a template (i.e. HTML with special placeholders that are filled with content of variables at runtime and give (render) a web page that is served, so mostly responsible for layout). I can also try other stuff, even try to fix the problem or get a Stripe API key and pro...
(more)
24 days ago
Comment Post #285409 It's fine. I will wait until setting up a development instance is smoothly and then repeat the exercise and add to the collab guide/readme.
(more)
28 days ago
Edit Post #285410 Post edited:
29 days ago
Edit Post #285410 Initial revision 29 days ago
Question How to circumvent Stripe::AuthenticationError: No API key provided
I want to setup a local QPixel instance (WSL - Ubuntu 20.04) and am following the guide by luap42. Finally I get an error `Stripe::AuthenticationError: No API key provided. Set your API key using "Stripe.apikey = ".` in DonationsControllerTest. ```Error: DonationsControllerTest#testshouldcreat...
(more)
29 days ago
Edit Post #285409 Initial revision 29 days ago
Answer A: How to solve Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379?
Likely Redis server is not running. Start with `sudo systemctl start redis-server.service` or with `sudo service redis-server start` or with `redis-server`. Check with `redis-cli` and inserting "ping" in the prompt, receiving "PONG". See for example Redis Quickstart or How to install and config...
(more)
29 days ago
Edit Post #285407 Post edited:
30 days ago
Edit Post #285407 Post edited:
30 days ago
Edit Post #285407 Initial revision 30 days ago
Question How to solve Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379?
I tried to setup a local QPixel instance (WSL - Ubuntu 20.04) and followed the guide by luap42. I finally run `rails -s` and got ```/usr/lib/ruby/2.7.0/fileutils.rb:105: warning: already initialized constant FileUtils::VERSION /var/lib/gems/2.7.0/gems/fileutils-1.6.0/lib/fileutils.rb:105: warn...
(more)
30 days ago
Comment Post #283850 Try `service mysql status` and it will probably be stopped. For me on Ubuntu `sudo /etc/init.d/mysql restart` worked.
(more)
30 days ago
Suggested Edit Post #283848 Suggested edit:
better formatting, removed a few unnecessary phrases
(more)
pending about 1 month ago
Edit Post #285277 Post edited:
about 1 month ago
Comment Post #285277 Like for the development of the software and the communities. For example Monica could write what she would like to see for the community and Art what we would like to see for the software or whatever you would like to write about.
(more)
about 1 month ago
Edit Post #285277 Initial revision about 1 month ago
Question 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 that with volunteers everything is more uncertain and may happen faster, slower or not at all, but at lea...
(more)
about 1 month ago
Edit Post #285207 Post edited:
about 2 months ago
Edit Post #285207 Initial revision about 2 months ago
Question What can Co-Design learn from other CSS frameworks?
The Co-Design homepage shows the various elements of Co-Design very nicely and explains the usage. From my experience with other CSS frameworks like Bootstrap or Bulma, it's quite on par feature wise and could be used also outside of QPixel. One possible question would be, if Co-Design can still lear...
(more)
about 2 months ago
Comment Post #285192 @Istiak "I don't think anyone comments in code for web designing and web development." I hope that this is not (completely) true. Usually no comments does not work for more than single person projects and even for them only if they never have to look back at their code after say six months. "web desi...
(more)
about 2 months ago
Edit Post #285192 Initial revision about 2 months ago
Question Desired state of code documentation
Was having a look at the QPixel code base and comments in code seem to be relatively scarce. It might be that documentation about the code is stored somewhere else with Ruby or that the general level of code documentation is relatively low currently. I also know that people have quite different views...
(more)
about 2 months ago
Suggested Edit Post #280492 Suggested edit:
added link to wiki page about test cases
(more)
pending about 2 months ago