Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60721 articles
Browse latest View live

Is it possible to increase speed of asset compiling?

$
0
0

Brendan wrote:

Wondering if it's possible to arbitrarily increase the number of cores/threads used for rake assets:precompile to speed it up? My VPS gives me access to 16 cores, so I'd like to use more than one.

I monitored the ruby process when that task runs and it will max out a single core, but I figured if it might be able to run on two or three (or eight) at once then it would speed up compile time greatly.

I'm not a ruby guy so I don't really know the right question to ask... it doesn't seem to be similar to make -j#, where # is ~1.5x the number of cores you want to use.

Posts: 3

Participants: 2

Read full topic


Topic admin wrench is covered by customized header bar

$
0
0

Kkzhang wrote:


In most scene it is fine. But if custom header is set:

Admin icon's totally invisible. Change z-index from 999 to higher digit solved this problem.
So i think i could be a bug.

Posts: 3

Participants: 2

Read full topic

Having private subforums

$
0
0

Steve Turner wrote:

Is it possible to have private subforums? I'd love to have a private place where users can post things related to their account matters so they can only see the topics they start and their replies.

Thanks!

Posts: 3

Participants: 3

Read full topic

Meta.discourse.org emails coming from wrong place?

$
0
0

Moshe Katz wrote:

I just got a notification email about updates to a topic which came from info@unconfigured.discourse.org. Today's Digest that I got also came from that address. Previous emails have come from info@discourse.org.

Was this change intentional? If yes, why?

Posts: 3

Participants: 2

Read full topic

Seeing "duplicate key value violates unique constraint" error after import

$
0
0

Dean Taylor wrote:

Seeing this error in the logs whilst waiting for large Sidekiq queue to process after large forum import.

PG::Error: ERROR:  duplicate key value violates unique constraint "index_topic_users_on_topic_id_and_user_id"
DETAIL:  Key (topic_id, user_id)=(17613, 705) already exists.
: INSERT INTO "topic_users" ("first_visited_at", "last_emailed_post_number", "last_visited_at", "topic_id", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id"

The backtrace is here:
https://gist.github.com/DeanMarkTaylor/982499340cc372f0edf2

Also found this one:

PG::Error: ERROR:  duplicate key value violates unique constraint "index_uploads_on_sha1"
DETAIL:  Key (sha1)=(9412aa9cc574b6c15ee8bd19b38bd35d71337b52) already exists.
: INSERT INTO "uploads" ("created_at", "filesize", "height", "origin", "original_filename", "sha1", "updated_at", "url", "user_id", "width") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"

Backtrace:
https://gist.github.com/DeanMarkTaylor/357878779ad18c160d72

Posts: 1

Participants: 1

Read full topic

Exception whilst processing onebox

$
0
0

Dean Taylor wrote:

I'm checking though logs after importing a site and a queued sidekiq process just output this exception:

exception: undefined method `request_uri' for #<URI::Generic:0x007fd428646aa0>

context: {:current_db=>"default", :current_hostname=>"forum.example.club", :url=>"http://www.dailymail.co.uk/pages/live/articles/news/news.html?in_article_id=488349&in_page_id=1770"}
backtrace: /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/onebox-1.3.8/lib/onebox/engine/standard_embed.rb:75:in `fetch_response'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/onebox-1.3.8/lib/onebox/engine/standard_embed.rb:79:in `fetch_response'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/onebox-1.3.8/lib/onebox/engine/standard_embed.rb:7:in `raw'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/onebox-1.3.8/lib/onebox/engine/whitelisted_generic_onebox.rb:192:in `data'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/onebox-1.3.8/lib/onebox/engine/whitelisted_generic_onebox.rb:172:in `generic_html'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/onebox-1.3.8/lib/onebox/engine/whitelisted_generic_onebox.rb:181:in `to_html'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/onebox-1.3.8/lib/onebox/preview.rb:37:in `engine_html'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/onebox-1.3.8/lib/onebox/preview.rb:14:in `to_s'
/var/www/discourse/lib/oneboxer.rb:127:in `block in onebox_raw'

So far has occued for both these urls:
http://www.dailymail.co.uk/pages/live/articles/news/news.html?in_article_id=479146&in_page_id=1770
http://www.dailymail.co.uk/pages/live/articles/news/news.html?in_article_id=477008&in_page_id=1770

More callstack and backtrace info here:
https://gist.github.com/DeanMarkTaylor/9f80f1de9ea811ce3f5d

Posts: 1

Participants: 1

Read full topic

Saw error duplicate key value violates unique constraint "index_uploads_on_sha1" after import

$
0
0

Dean Taylor wrote:

Seeing this error in the logs whilst waiting for large Sidekiq queue to process after large forum import.

PG::Error: ERROR:  duplicate key value violates unique constraint "index_uploads_on_sha1"
DETAIL:  Key (sha1)=(9412aa9cc574b6c15ee8bd19b38bd35d71337b52) already exists.
: INSERT INTO "uploads" ("created_at", "filesize", "height", "origin", "original_filename", "sha1", "updated_at", "url", "user_id", "width") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"

Backtrace:
https://gist.github.com/DeanMarkTaylor/357878779ad18c160d72

Posts: 1

Participants: 1

Read full topic

CSS Styles for dark header

$
0
0

Kane York wrote:

Putting this in under /admin/customize/css_html will make a dark header_background and light header_primary look pretty good.

You also have to pick a third color, header_border, which is at the top of the CSS.

Screenshot:

// Helpers and imports
@import "theme_variables";
$header_border: #3ab1bc; // set as fit. should be slightly ligher than $header_background

@mixin placeholder-style {
  &::-webkit-input-placeholder {
    @content;
  }
  &:-moz-placeholder {
    @content;
  }
  &::-moz-placeholder {
    @content;
  }
  &:-ms-input-placeholder {
    @content;
  }
}

//////////////////////////////////////////////////////////////
// Start styles
//////////////////////////////////////////////////////////////

.d-header .icons {
    .icon:hover {
        background-color: $header_border;
    }
    .icon {

    }
    .active .icon {
        border-top: 1px solid $header_border;
        border-left: 1px solid $header_border;
        border-right: 1px solid $header_border;
        color: $header_background;
        background-color: $header_primary;
        &:after {
            border: none;
        }
    }
}
.d-dropdown {
    border: 1px solid $header_border;
    background-color: $header_background;
    color: $header_primary;
    li:not(.category) {
        &:hover a:not(.badge-notification) {
            background-color: $header_border;
        }
        a {
            color: $header_primary;
        }
    }
    .heading {
        border-top: 1px solid $header_border;
    }
    &#notifications-dropdown {
        li {
            background-color: lighten($header_background, 10%);
            color: $header_primary;
            &.read {
                background-color: $header_background;
            }
            a {
                color: $header_primary;
            }
        }
        .fa {
            color: darken($header_primary, 10%);
        }
    }
    &#search-dropdown {
        input {
            background-color: $header_border;
            border: 1px solid $header_border;
            @include placeholder-style {
                color: $header_primary;
            }
        }
        .searching {
            background-color: $header_border;
        }
    }
    .selected {
        background-color: lighten($header_border, 10%);
    }
}

Feel free to use yourself (of course).

Posts: 1

Participants: 1

Read full topic


Markdown parser not parsing asterisk/underscore after opening parentheses

$
0
0

Aahan Krish wrote:

This can't be intended. The Markdown parser isn't parsing asterisks ** and underscores _ right after the opening parentheses (.

Examples (bug fixed if these appear parsed):

  • I am a (**good**) boy.
    • This works: I am a (good but naughty) boy.
  • I am (_an year_) older.
    • This works: I am (by an year) older.

Has this been left unfixed due to any arising complications?


The markdown parser has problems with quotes too! Take a look...

Yes. *"Any other service"*? not really. Produces this:

Yes.

Any other service
? not really.


Asterisks/underscores right after quotes... See? (If the sentence below appears formatted, the bug's been fixed.)

Yes. "*Any other service*"? not really.


Hard to explain, these are broken too:

  • **`Yes. "*Any other service*"? not really.`**

(Came across this when reporting the bug itself.)

Posts: 1

Participants: 1

Read full topic

Starting a discourse community about science and maybe skepticism

$
0
0

Caue Rego wrote:

I understand this might be as well simply "Starting a community" , but I also wanted to talk about my specific case. I want to know about discourse and the experience some of you might have had with area 51.

I've spend some time building this site because I saw a need and an opening. Maybe I was wrong. Also because I love SGU, Jeff's projects as co-founder and I'm not happy with my current options for my communication output needs in those topics, which are basically Quora, reddit and the SGU forums. I really don't like skeptics.sen as they are way too skeptic for my league.

2 weeks into it and I don't see a future for it anymore. I think I've failed into doing the hardest step, gathering a community, which comes to no surprise. Yes, maybe 2 weeks is too little to have any conclusive answer... Maybe I am way too anxious.

But now I'm wondering if you could provide some hints, for other people who want to start a discourse community like I did, on how to do it properly. If you will.

(few minutes later)

Amazingly enough, the awesome "your topic is similar to" feature I often use instead of search already got me some answers when I started this topic. I'll keep this as a narrative for now, maybe I should edit it later...

I'm not thinking in abandoning my 2 years roadmap just yet, but that topic alone already got me thinking probably I should. Take all this as a small lesson and move on. Sooner or later someone will make this better than I ever could anyway, if they haven't done it yet and I just didn't find it.

Anyway, what advice could you give to someone wanting to start a community with discourse?

(few more minutes later)

It seems like "your topic is similar to" keeps getting updated as I write, and so I just found yet another awesome related topic which does give me some hope to keep going. Now I wonder about the second part of my question...

I got no popularity at all, so far found no close friends willing to participate and I'm almost positive I couldn't make this work by myself.

Do you think I should continue?

More in specific:

  • How long did it take for your community to launch?
  • What is a good number for a critical mass? 35 active users? 100 registered?
  • Thanks again to Jeff, I do understand if I am to continue I should probably invest a lot of time addressing his points. But, again, do you think I should?

I guess all I'm asking here is some professional opinion...

Posts: 1

Participants: 1

Read full topic

About keyboard shortcuts for finding and placing links

$
0
0

Caue Rego wrote:

I'm now quite annoyed by 2 keyboard shortcuts I use often. CMD (or CTRL) + F and CMD + L. The former do not only steal my attempt to find stuff in the current page, it also seem to break even CMD + G eventually. Maybe it should be replaced by nothing at all, CMD + S or even / - such as in gmail.

And CMD + L, while a minor annoyance, sometimes make me type in the URL field. Why not set it as CMD + K (again, following google lead). Maybe discourse should just have an admin option to customize those shortcuts... But I'd still personally prefer to suggest these to be the default.

P.S.: Originally I had posted the other 2 topics on the right all in one in here and asked if it was okay doing it so. Since Jeff's feedback, I've quickly edited it.

Posts: 10

Participants: 5

Read full topic

Several post warnings

$
0
0

Caue Rego wrote:

Continuing the discussion from Several posts warning, keyboard shortcuts, smile faces and an immediate question about double topics in one:

I was writing my third post in the latest Jeff blog post and I got this awesome warning about "posting too much". I can't remember what it said exactly, but it did imply I should probably write it all in just 1 post instead.

I usually do that, but reason I went with posting several times was to keep the awesome reply feature in place. So, what is the actual recommendation for that case? I couldn't figure it out.

Posts: 3

Participants: 2

Read full topic

Smiley faces popup replacement

Should Discourse convert GIFs to mp4 video files?

FTP into the docker image to send and receive files

$
0
0

Ova Light wrote:

Can such a thing be done ? I am a little confused due to the new IP assinged to me being 0.0.0.0 while inside the image. So I pretty much donnot know what credentials should I use to ftp into it.

Posts: 12

Participants: 4

Read full topic


Error when content contains long URL - value too long for type character varying(100)

$
0
0

Dean Taylor wrote:

Hi,

This error is in the logs from an import from phpBB.

Looks like long URL's in content cause this one.

PG::Error: ERROR:  value too long for type character varying(100)
: INSERT INTO "topic_links" ("created_at", "domain", "post_id", "topic_id", "updated_at", "url", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"

Backtrace:
https://gist.github.com/DeanMarkTaylor/2a05584929f54fe37a27

Example log URL in content causing issue:

http://www.was-a-good-idea-at-the-time-now-in-debt-and-because-its-not-running-its-the-aaaaaa-cat-ever-but-i-dont-want-to-sell-it-im-attached.com

Posts: 1

Participants: 1

Read full topic

Export emails from an old discourse forum

$
0
0

James wrote:

I used to run a discourse forum that I've long shut down (the domain isn't working as well).

I'm not too familiar with the db scheme. What's the easiest way to export the emails from the old database?

Posts: 2

Participants: 2

Read full topic

Exception: unrecognised opaque part for mailtoURL

$
0
0

Dean Taylor wrote:

Exception found in logs after processing phpBB import.

exception: unrecognised opaque part for mailtoURL: I%20got%20this%20information%20%20a%20year%20ago,%20from,%20Laura%20Bullit-Dlillord,%20who%20is/was%20%20the%20Customer%20Services%20Advisor%20@%20crazypeoplehome.co.uk
context: {"retry"=>true, "queue"=>"default", "class"=>"Sidekiq::Extensions::DelayedClass", "args"=>["---\n- !ruby/class 'Jobs::UserEmail'\n- :delayed_perform\n- - :type: :user_posted\n    :user_id: 296\n    :notification_id: 35734\n    :current_site_id: default\n"], "jid"=>"c5519d4c0e204abe77087fc3", "enqueued_at"=>1403258154.5430508, "error_message"=>"unrecognised opaque part for mailtoURL: I%20got%20this%20information%20%20a%20year%20ago,%20from,%20Laura%20Bullit-Dlillord,%20who%20is/was%20%20the%20Customer%20Services%20Advisor%20@%20crazypeoplehome.co.uk", "error_class"=>"ActionView::Template::Error", "failed_at"=>1403266502.4268854, "retry_count"=>12, "retried_at"=>1403353154.0697453}
backtrace: /usr/local/lib/ruby/2.0.0/uri/mailto.rb:150:in `initialize'
/usr/local/lib/ruby/2.0.0/uri/common.rb:214:in `new'
/usr/local/lib/ruby/2.0.0/uri/common.rb:214:in `parse'
/usr/local/lib/ruby/2.0.0/uri/common.rb:747:in `parse'
/usr/local/lib/ruby/2.0.0/uri/common.rb:996:in `URI'
/var/www/discourse/lib/pretty_text.rb:246:in `block in make_all_links_absolute'

Backtrace:
https://gist.github.com/DeanMarkTaylor/5c780a6d5efa7e248148

Posts: 3

Participants: 2

Read full topic

Error during import - duplicate key value violates unique constraint "cat_featured_threads"

$
0
0

Dean Taylor wrote:

Hi,

Saw this error during import, I couldn't spot the case where the phpbb importer would do it... so just maybe it's a bug in Discourse?

Anyways - thought I would log it encase it's of importance.

PG::Error: ERROR:  duplicate key value violates unique constraint "cat_featured_threads"
DETAIL:  Key (category_id, topic_id)=(35, 25767) already exists.
: INSERT INTO "category_featured_topics" ("category_id", "created_at", "rank", "topic_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"

Backtrace:
https://gist.github.com/DeanMarkTaylor/a8ec869a0929c500d7d3

Posts: 3

Participants: 2

Read full topic

Failed to pull hotlinked image - undefined method `downcase' for nil:NilClass

$
0
0

Dean Taylor wrote:

Spotted in error logs after phpBB import:

Failed to pull hotlinked image: http://s514.photobucket.com/albums/t341/never-grow-up/?action=view&current=after003.jpg
undefined method `downcase' for nil:NilClass
/var/www/discourse/lib/validators/upload_validator.rb:72:in `authorized_extensions'
/var/www/discourse/lib/validators/upload_validator.rb:22:in `is_authorized?'
/var/www/discourse/lib/validators/upload_validator.rb:10:in `validate'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:447:in `public_send'

Backtrace:
https://gist.github.com/DeanMarkTaylor/fd6b64fe8d755f43076e

Posts: 2

Participants: 1

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images