Forum Activity for @brian

brian
@brian
02/05/15 08:38:02AM
10,167 posts

Can an easier way be added for displaying albums so members can find them ?


Using Jamroom

I think a tabbed approach here might be good - the album is already there, just need a "songs" and an "albums" tab so you can easily switch between the two.

We'll check that out for a future release.

Hope this helps!
brian
@brian
02/05/15 07:39:57AM
10,167 posts

IDs mixed up...?


Installation and Configuration

thechocolatelife:Brian -

Is this also related to the URL mixup in Groups that I found yesterday?

If by "groups" you mean "forum" then yes - otherwise I am not sure - did you post separately on that?
brian
@brian
02/05/15 07:12:43AM
10,167 posts

IDs mixed up...?


Installation and Configuration

I think this is likely the same issue we're seeing in the activity template for the forum - we'll get it fixed.

Thanks!
brian
@brian
02/05/15 07:05:25AM
10,167 posts

Performance Test - Details


Using Jamroom

The JR Performance test is not an "exhaustive" performance test by any means - it pretty much focuses on JR specific tests - i.e. it's only going to test:

- the processor speed by going into a tight loop and adding numbers 10 million times.

- the database speed by running 12,000 database queries that query Jamroom's "DataStore" structure - i.e. a query like this:

$req = "SELECT DISTINCT(a.`_item_id`) AS _item_id FROM {$tbl} a
     LEFT JOIN {$tbl} b ON (b.`_item_id` = a.`_item_id` AND b.`key` = 'core_num')
     LEFT JOIN {$tbl} c ON (c.`_item_id` = a.`_item_id` AND c.`key` = 'core_set')
     LEFT JOIN {$tbl} d ON (d.`_item_id` = a.`_item_id` AND d.`key` = 'core_string')
     LEFT JOIN {$tbl} e ON (e.`_item_id` = a.`_item_id` AND e.`key` = 'core_title')
         WHERE a.`key` = '_updated'
           AND b.`value` > {$i}
           AND c.`value` > {$i}
           AND d.`value` LIKE '%tri%'
           AND e.`value` LIKE '%itl%'
         ORDER BY a.`value` DESC LIMIT 10";

This is the "search" query portion there are:

- 4,000 create queries (to create 2,000 items in the datastore (insert x 2))
- 2,000 update queries (to update the created items with new keys)
- 2,000 search queries (like above)
- 4,000 delete queries (to delete the created items (delete x 2))

The whole point is to gauge how fast your MySQL is going to work with Jamroom's datastore.

- the disk speed is assessed by creating a 1mb file in 1024 byte "writes" (so 1000 individual file writes). This basically figures out how fast your filesystem can fopen(), fwrite() and fclose() small files, which is a good predictor of file system performance.

Hope this helps!
updated by @brian: 02/05/15 07:06:09AM
brian
@brian
02/05/15 06:56:53AM
10,167 posts

invalid link error


Using Jamroom

Underscores are not valid for a subdomain:

http://stackoverflow.com/questions/6218390/underscore-in-subdomain-label-valid-or-not

http://tools.ietf.org/html/rfc1035

Which is why it is failing.
updated by @brian: 02/05/15 06:57:07AM
brian
@brian
02/05/15 06:50:20AM
10,167 posts

full gallery image download


Using Jamroom

I've just pushed out Image Galleries 1.5.2 that adds a new "Allow Original Downloads" - if checked, a "download" button will appear in the item detail page so the original image can be downloaded.

Hope this helps!
brian
@brian
02/05/15 06:12:14AM
10,167 posts

Proxima Login fail


Installation and Configuration

I just pushed up a new release of Proxima Core that should fix this - update and let me know if that finally works for you now. Thanks for hanging in there with me on this one - it was actually staring me "right in the face" but I couldn't see it since my unit tests don't re-use user accounts.

Thanks!
brian
@brian
02/04/15 07:20:33PM
10,167 posts

Proxima Login fail


Installation and Configuration

Natedogg265:Ok so what's going on is, if a user with an existing session logs in the session is not being recorded. If I delete all sessions, I can log in and everything works. I can try to set my expiration date to match yours. Is it 7 exact days?

So you're already logged in, but posting to /login again? Or are you signing up and then posting to /login? You shouldn't be doing either of those if that is the case. I'll have to follow up with you in the AM, but double check the order you're doing your signup/login.
brian
@brian
02/04/15 05:36:19PM
10,167 posts

Proxima Login fail


Installation and Configuration

That's pretty much exactly what I am doing - but I see the correct session:

{ code: 200,
  text: 'OK',
  note: 'session started',
  data: { session_id: '7714c16be32f733c2bed0969423b4888' } }

and in the DB:

7714c16be32f733c2bed0969423b4888	4	1355	1350	1423704546

When you log in and get that session_id, that is the value that is returned by the function that actually creates it - so for them to be different, I just have no idea why you would see that. Here's the function that creates the session key:

function plugin_jrProximaCore_mysql_create_user_session($app_id, $_user, $expires)
{
    $exp = (time() + $expires);
    $key = md5(microtime() . jrCore_get_ip());
    $tbl = jrCore_db_table_name('jrProximaCore', 'session');
    $uid = (int) $_user['_user_id'];
    $pid = (int) $_user['_profile_id'];
    $req = "INSERT INTO {$tbl} (session_key, session_app_id, session_user_id, session_profile_id, session_expires) VALUES ('{$key}', '{$app_id}', '{$uid}', '{$pid}', '{$exp}') ON DUPLICATE KEY UPDATE session_expires = '{$exp}'";
    if (jrCore_db_query($req)) {
        return $key;
    }
    return false;
}

You can see it returns $key, which is the same value it inserts into the DB.

I wish I could tell you why you're seeing an issue on your system, but I just don't know.
brian
@brian
02/04/15 04:57:11PM
10,167 posts

Proxima Login fail


Installation and Configuration

So that's user_id 39 - you're already logged in at that point. Are you trying to post to /login after that?
  448