_ck_ (@_ck_)

Forum Replies Created

Viewing 25 replies - 951 through 975 (of 2,186 total)

  • _ck_
    Participant

    @_ck_

    No I think they mean specifically the URL button.

    I see the problem too.

    Investigating…

    Okay the problem is you either have to highlight text you want to make into a link, or finish the link with the close URL button again. And there has to be text within the . I guess I need to make it less sensitive/work more intuitively.


    _ck_
    Participant

    @_ck_

    Well we don’t need to pinpoint exactly the server configuration as the timing will never be exactly the same twice on the same machine. But it will be within a very close range. What we are looking for are times that are way beyond one second.

    I’ll do some more digging over the weekend against some of the more popular hosts.

    I want to see it run on godaddy though. That will be interesting. I’m sure I can find a good discount coupon code to get the first month very cheap so I’ll give that a go if so.


    _ck_
    Participant

    @_ck_

    They could find someone else to run it.

    Or some hosts have a free trial period (though that is less and less thanks to spammers).

    Your linux desktop is why it is so fast.

    So my theory is right, under 1 second is excellent, around 1 second is good.

    Anything much higher is suspect.

    But I need more NFS candidates, will have to see if I have access on some of these old servers.

    Let’s see if I can run it on NearlyFreeSpeech.

    Aha! They are NFS. 13.26 seconds

    For those that get an error even when the file is chmod 777, you’ll have to create a testing directory and move the file into there. Then chmod 777 the directory and change the first line to

    error_reporting(E_ALL); $file=dirname(__FILE__)."/test.txt"; file_put_contents($file,''); $time=strtok(microtime(),' ')+strtok('');


    _ck_
    Participant

    @_ck_

    Headers already sent is a useless error in itself, it’s always the result of another error (unless the very rare case someone meant to send a custom header of some kind).

    In this case at least you posted the real error:

    Warning: parse_url(http://#postform) [function.parse-url]

    Any chance you are testing this on a localhost or something like that?

    Kind of a strange error that it’s getting a bad url like like, there’s no domain name at all.


    _ck_
    Participant

    @_ck_

    Thanks for the feedback Ipstenu and Chris!

    When you say “1&1 root server” is that a dedicated or vps or something like that?

    Interesting your desktop is very fast compared to mine, is it Windows or Linux? If it’s Windows, is it NTFS or FAT32? I wonder what my windows bottleneck is, or maybe basically it just doesn’t cache the filetables on FAT32.

    I should enhance that code to show if the server is in safemode or not and what functions are disabled in PHP. Could be a handy tool for evaluating potential hosts.


    _ck_
    Participant

    @_ck_

    I’d like to see some feedback on my experimental NFS detector below.

    Be sure to chmod 777 it after you upload or it won’t work.

    Delete after you are finished with it for security.

    Dreamhost takes over 7 seconds, sometimes more.

    My apache servers with local storage take less than one second.

    My Windows XP with XAMPP takes 12 seconds (old slow IDE drives)

    <?php
    /*
    Experimental NFS detector - upload this file to server and chmod 777
    Script should take less than one second to run.
    If it takes more than one second, then it's likely NFS (or Windows or a bad configuration)
    Any error means the time is unreliable as the script has failed.
    */
    error_reporting(E_ALL); $file=__FILE__; $time=strtok(microtime(),' ')+strtok('');
    for ($i=0; $i<=9999; $i++) {if (touch($file)) {clearstatcache(); filemtime($file);} else {break;}}
    echo ((strtok(microtime(),' ')+strtok(''))-$time)." seconds";
    ?>


    _ck_
    Participant

    @_ck_

    Not unless you hack things to remove the /forum/ and /topic/ paths which is not recommended.


    _ck_
    Participant

    @_ck_

    >> bbPress installed in a sub-directory of WordPress

    That’s almost cheating, it’s too easy ;-)

    You should do it off a different directory from the webroot.

    But good idea in general, someone did this awhile back with 0.8 (and then stuffed a bunch of ads in it).


    _ck_
    Participant

    @_ck_

    Most hosts will not admit and definitely not advertise NFS, it’s a downside, not a plus.

    But you can tell if you have an account with them by studying df -a though the shell, php shell or perl cgi shell. Or if they hide/block all that you can write a script to time 1000 reads of filemtime (with clearstatcache) which cannot be cached by the OS and will have telltail lag.

    Marketing-wise NFS is usually spun as “unlimited” or “expanding” storage space, like Dreamhost promises extra space each month.

    I’m very curious to find out what the “resolution” was.

    The latest page show shows 1.432 – 36 queries which is still poor.


    _ck_
    Participant

    @_ck_

    vannak, if you activated load options, something is still wrong because it’s using 36 queries on the front page. Are you using bbPress 1.0 or bbPress 0.9 ?

    Make sure your bb-topic-views plugin is the latest version (1.6.3)

    The old version before I took over used excessive queries.

    If you are using an earlier 1.0 alpha version, it also had excessive queries (still does on the newest version in some places).

    Before you run to hostmonster or other provider, make sure you do your homework and check those suggestions I gave you.

    Oh one more tip for choosing a hosting provider – if they use the word “unlimited” in any of their advertising, find another provider.


    _ck_
    Participant

    @_ck_

    vannak, did you do the changes to bbpress bb-config.php like I said?

    Your pages are still using far too many queries. About twice what they should.

    I wonder if bb-topic-views is causing all the extra queries.

    The front-page is using 36 queries, forum pages 32 queries.

    That’s about twice what it should be.


    _ck_
    Participant

    @_ck_

    Alicia since you keep coming back (and it’s good to see such care but I still wonder what is taking so long to get some kind of definitive answer) can you tell us in general if GoDaddy uses NFS storage (networked instead of locally attached to the server) and if GoDaddy runs PHP in safemode?

    In reply to: ETA of bbPress 1.0 ?

    _ck_
    Participant

    @_ck_

    Exactly how many more “when will 1.0 be final” posts are there going to be?

    There are at least a dozen topics on this. When it’s done, it’s done.

    If you rush it, then we have to deal with the “when will 1.0 be fixed” questions.

    There is no schedule, no timetable, and you should not use the alpha on a live site.

    If you can’t live without a date, assume it will be done a year from now.

    Please see the dozen other topics on this: https://bbpress.org/forums/tags/10


    _ck_
    Participant

    @_ck_

    GoDaddy is massive and would have thousands of support staff, probably outsourced.

    There is far too much competition in the hosting world to stay with such a provider, find yourself someone better and smaller that actually cares about losing a customer and doesn’t put 1000’s of clients per box.

    My best advise would be to get someone with cpanel because it far easier for the host and far easier for you and makes the account extremely portable between other cpanel hosts. I can literally move an entire account between servers in 1 or 2 minutes flat, all settings, mysql, email, dns, structure, etc. preserved exactly (and you don’t even need to know linux).

    Avoid the really big hosts, avoid the really little hosts.

    If you can afford it, get a VPS so you have much more control but don’t get a small, underpowered VPS which can be worse than shared hosting.

    Do not get a host that uses NFS (networked file storage) like Dreamhost because that makes file intensive programs like WordPress/bbPress slow. GoDaddy probably uses NFS too but I am not positive about that.

    Quick summary:

    1. get a host with cpanel
    2. make sure the host does not use NFS
    3. make sure the host does not run PHP in safemode
    4. only get a VPS if it’s reasonable size/performance,

        as small VPS are worse than quality shared hosting

    added: one more tip for choosing a hosting provider – if they use the word “unlimited” in any of their advertising, find another provider.


    _ck_
    Participant

    @_ck_

    You are unaware of very important concepts like hidden forums that require carefully constructed mysql filters. SuperCache would have to maintain several versions of the same page for different users. By the time it’s all said and done it’s almost easier to regenerate the page.

    Portions of the page that maintain for all or most users can be cached and that will cause a significant speedup. A complex forum will never be able to cache the entire pages for all users.

    I should add that bbpress has a sophisticated object cache that can almost eliminate going back to the mysql database for some sessions.


    _ck_
    Participant

    @_ck_

    That’s news to me – Super Cache will require a little work to behave with bbpress (not too much but some) and then it will only help users who aren’t logged in.

    There may be a way to cache parts of pages though to accelerate things – I already use this to cache the tag clouds and a couple other things.


    _ck_
    Participant

    @_ck_

    Ah I didn’t think of handling &nbsp;

    But I thought bbpress allowed htmlentities. Maybe only some of them.


    _ck_
    Participant

    @_ck_

    vannak, let me know what happens.

    Chris, I see webhosting companies visit websites that deal with webhosting all the time, it’s possible GoDaddy hired a PR firm to scan websites for talk about them. Given the amount of competition for hosting, it’s very likely.

    If you google their IP, you’ll notice that GD person looks for “godaddy sucks” and shows up to post things like “will look into it” so this is PR at it’s cleverest. They really are on godaddy ISP though in Arizona so it’s legit (or a offshore group hired to use GoDaddy as a proxy).


    _ck_
    Participant

    @_ck_

    Please see my table reference here for “forum”

    http://bbshowcase.org/reference/#bb_forums

    In reply to: bbPress Admin

    _ck_
    Participant

    @_ck_

    You seriously want them to spend what little development time they have on the admin panel?

    WordPress has changed it’s panel for the last three versions.

    Wait a version it will change again. And again. And again.

    Then there will be plugins to change it back to the old version.

    Then they will break all the admin plugins again after enough authors adjust.

    Matt can’t make up his mind, first he likes top-down style and says people know how to scroll, then he changes his mind 100% and goes linear with an ugly, too narrow, center column. No attempt at supporting a fall back legacy design.

    I kinda like how the bbPress 1.0 panel looks.

    I can’t find anything quickly or easily under 2.7


    _ck_
    Participant

    @_ck_

    Untested code cleanup (just for fun – untested)

    function force_login_init() {
    if (!bb_is_user_logged_in() && !preg_match("/(bb-login|bb-reset-password|register|xmlrpc).php/s",$_SERVER['REQUEST_URI'])) {
    nocache_headers();
    header("HTTP/1.1 302 Moved Temporarily");
    header("Status: 302 Moved Temporarily");
    bb_safe_redirect( bb_get_uri( 'bb-login.php', null, BB_URI_CONTEXT_HEADER + BB_URI_CONTEXT_BB_USER_FORMS ) );
    exit;
    }
    }

    Good to see you Trent, don’t be a stranger!


    _ck_
    Participant

    @_ck_

    Make sure you delete any cookies in your browser for your site

    if you used the same path for 0.9 as 1.0

    In reply to: Get Current Forum ID?

    _ck_
    Participant

    @_ck_

    Why not just do it all in the li:

    <li<?php if ($current_forum_id==get_forum_id()) {echo " class='on'";} ?>>


    _ck_
    Participant

    @_ck_

    There is a host that has bbPress available as an instant install script? Interesting!

    If you are sharing the users with WordPress you do NOT want a new database.

    When you install bbPress you need to use the database information from WordPress.


    _ck_
    Participant

    @_ck_

    You mean on the regular topic page? Yeah it would just add one query.

    On a low to medium activity site it should be okay.

    I think there’s an index on topic_time so mysql shouldn’t have too much of a workout.

    The >= switch aroo may be logic confusion on my part between whether to use DESC or ASC.

    One makes the list start with the current topic time, the other way makes it end with the time.

    In theory the count should be easier with <= and if you have to change DESC to ASC.

Viewing 25 replies - 951 through 975 (of 2,186 total)