• Member Avatar for James_43
    James_43

    Replied To a Post in iptables help - Tw0 NIC's + virbr

    Correct :) 10.0.0.0 for physical LAN, and ideally 10.0.1.0 for virtual LAN. Though I also have a different subnet on my WAN adapter, 192.168.209.0. At the moment the Lan and …
  • Member Avatar for James_43
    James_43

    Edited iptables help - Tw0 NIC's + virbr

    Hi all, I'm having a lot of trouble with building a network for my virtualised OS's. The server has two physical NICs for LAN and WAN. The host has IP …
  • Member Avatar for James_43
    James_43

    Edited iptables help - Tw0 NIC's + virbr

    Hi all, I'm having a lot of trouble with building a network for my virtualised OS's. The server has two physical NICs for LAN and WAN. The host has IP …
  • Member Avatar for James_43
    James_43

    Created iptables help - Tw0 NIC's + virbr

    Hi all, I'm having a lot of trouble with building a network for my virtualised OS's. The server has two physical NICs for LAN and WAN. The host has IP …
  • Member Avatar for James_43
    James_43

    Began Watching iptables help - Tw0 NIC's + virbr

    Hi all, I'm having a lot of trouble with building a network for my virtualised OS's. The server has two physical NICs for LAN and WAN. The host has IP …
  • Member Avatar for James_43
    James_43

    Began Watching Array Struture

    hi all, I am trying to make an array that looks like this: Array ( [status] => [MERGE0] => removed@email.address [merge_fields] => Array ( [MERGE1] => James [MERGE2] => doe …
  • Member Avatar for James_43
    James_43

    Stopped Watching Array Struture

    hi all, I am trying to make an array that looks like this: Array ( [status] => [MERGE0] => removed@email.address [merge_fields] => Array ( [MERGE1] => James [MERGE2] => doe …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Most recent items from two tables

    I'm confused here. Queries are not my strength... So I do two queries, each getting 10 items from each table. Then I sort that table by date, giving me the …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Most recent items from two tables

    Yes, but what happens when I want to view "page 2" of this query? Will having an offset of 10 on the original queries be enough here?
  • Member Avatar for James_43
    James_43

    Created Most recent items from two tables

    Hi all, I'm using the Laravel framework to create an application, and have a database question. I have a table called `posts`. I have been pulling the 10 most recent …
  • Member Avatar for James_43
    James_43

    Began Watching Most recent items from two tables

    Hi all, I'm using the Laravel framework to create an application, and have a database question. I have a table called `posts`. I have been pulling the 10 most recent …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for Recent mySQL records

    Hi all, Say I have a table called "posts" with thousands of records. For each user, I want to display the top 10 most recent posts. I would normally use: …
  • Member Avatar for James_43
    James_43

    Created Recent mySQL records

    Hi all, Say I have a table called "posts" with thousands of records. For each user, I want to display the top 10 most recent posts. I would normally use: …
  • Member Avatar for James_43
    James_43

    Began Watching Recent mySQL records

    Hi all, Say I have a table called "posts" with thousands of records. For each user, I want to display the top 10 most recent posts. I would normally use: …
  • Member Avatar for James_43
    James_43

    Created PHP and JS Forms

    Hi all, Submitting forms to PHP is easy with Ajax. But what if I wanted to design my website to allow for JS-free web browsers? If I call a PHP …
  • Member Avatar for James_43
    James_43

    Began Watching PHP and JS Forms

    Hi all, Submitting forms to PHP is easy with Ajax. But what if I wanted to design my website to allow for JS-free web browsers? If I call a PHP …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for jquery refresh DOM

    Hi all, I have a text box. When users press enter, it triggers the submit function: commentContent.keydown(function(e){ if(commentContent.is(":focus") && (e.keyCode || e.which) == 13 && !e.shiftKey) { e.preventDefault(); commentForm.submit(); } …
  • Member Avatar for James_43
    James_43

    Replied To a Post in jquery refresh DOM

    Yes. Not only did that fix it, but got rid of the .each() function :) Thank you very much!
  • Member Avatar for James_43
    James_43

    Replied To a Post in jquery refresh DOM

    I realise this isn't about the DOM updating. I use the following functions to pull up the elements and process their click events: $('.like').each(function(i, obj){ $(this).click(function(e){ var element = $(this); …
  • Member Avatar for James_43
    James_43

    Created jquery refresh DOM

    Hi all, I have a text box. When users press enter, it triggers the submit function: commentContent.keydown(function(e){ if(commentContent.is(":focus") && (e.keyCode || e.which) == 13 && !e.shiftKey) { e.preventDefault(); commentForm.submit(); } …
  • Member Avatar for James_43
    James_43

    Began Watching jquery refresh DOM

    Hi all, I have a text box. When users press enter, it triggers the submit function: commentContent.keydown(function(e){ if(commentContent.is(":focus") && (e.keyCode || e.which) == 13 && !e.shiftKey) { e.preventDefault(); commentForm.submit(); } …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for Friendly Time Function

    Hi all, I've been trying to create a friendly time function for a while, it's purpose should be quite obiovus from the code below. Currently, it outputs "expired" for everything. …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Friendly Time Function

    Thank you,that's a MUCH cleaner way of doing this!
  • Member Avatar for James_43
    James_43

    Created Friendly Time Function

    Hi all, I've been trying to create a friendly time function for a while, it's purpose should be quite obiovus from the code below. Currently, it outputs "expired" for everything. …
  • Member Avatar for James_43
    James_43

    Began Watching Friendly Time Function

    Hi all, I've been trying to create a friendly time function for a while, it's purpose should be quite obiovus from the code below. Currently, it outputs "expired" for everything. …
  • Member Avatar for James_43
    James_43

    Created JS keydown event firing

    Hi All, Relatively new to JS, but something strange is happening. I have one function: var commentContent = $('textarea.comment-box#comment'); commentContent.keydown(function(e){ if((e.keyCode || e.which) == 13 && !e.shiftKey && commentContent.is(":focus")) { …
  • Member Avatar for James_43
    James_43

    Began Watching JS keydown event firing

    Hi All, Relatively new to JS, but something strange is happening. I have one function: var commentContent = $('textarea.comment-box#comment'); commentContent.keydown(function(e){ if((e.keyCode || e.which) == 13 && !e.shiftKey && commentContent.is(":focus")) { …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for Optimising array creation

    Hi all, In PHP just wondering if anyone knows whether one method of creating multiple indexes within an array is more efficient / preferable to another? ` $listing['one'] = $x; …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Optimising array creation

    So according to the test I just ran (and I'm completely unfamilair with memoery testing so for all I know my method was just pointless). But it seems there is …
  • Member Avatar for James_43
    James_43

    Created Optimising array creation

    Hi all, In PHP just wondering if anyone knows whether one method of creating multiple indexes within an array is more efficient / preferable to another? ` $listing['one'] = $x; …
  • Member Avatar for James_43
    James_43

    Began Watching Optimising array creation

    Hi all, In PHP just wondering if anyone knows whether one method of creating multiple indexes within an array is more efficient / preferable to another? ` $listing['one'] = $x; …
  • Member Avatar for James_43
    James_43

    Replied To a Post in PHP Capture mail

    The Exchange server is hosted through a subscription with Office 365, so I can administrate the server, but am not exactly in control of it. ...Could I use IMAP, this …
  • Member Avatar for James_43
    James_43

    Created PHP Capture mail

    Hi all, wondering if the following is possible. A MS Exchange server is connected to an Outlook client. Would it be possible to capture sent/recieved emails and add them to …
  • Member Avatar for James_43
    James_43

    Began Watching PHP Capture mail

    Hi all, wondering if the following is possible. A MS Exchange server is connected to an Outlook client. Would it be possible to capture sent/recieved emails and add them to …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Infuriating Facebook SDK error

    An update, but a disturbing one, I have temporaily fixed the issue by setting the Session data based upon the $_GET['state'] parameter in my callback.php ... But surely it is …
  • Member Avatar for James_43
    James_43

    Created Infuriating Facebook SDK error

    Hi all, Problems trying to login with Facebook on a website. The issue is that it works for me, but when I add other tests in the App settings, it …
  • Member Avatar for James_43
    James_43

    Began Watching Infuriating Facebook SDK error

    Hi all, Problems trying to login with Facebook on a website. The issue is that it works for me, but when I add other tests in the App settings, it …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for Ajax call returning unprocessed PHP

    Hi all, Something disturbing is happening... I make an AJAX call to a page and it returns unprocessed PHP, not HTML. However, when I navigate to the page manually, the …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Ajax call returning unprocessed PHP

    Well, I've fixed the issue, insomuch as it's no longer replicatable. I altered my NGINX config after some research and got rid of using an IF statement to check for …
  • Member Avatar for James_43
    James_43

    Replied To a Post in mysql object reading as bool

    Ah, I dislike how we can't delete posts on here. I was looking at the wrong object, the one actually at fault was indeed a bool value.
  • Member Avatar for James_43
    James_43

    Marked Solved Status for mysql object reading as bool

    Hi all, I'm running into a problem with PHP and mysql. I run a mySQL query, which returns the following object: `mysqli_result Object ( [current_field] => 0 [field_count] => 2 …
  • Member Avatar for James_43
    James_43

    Created mysql object reading as bool

    Hi all, I'm running into a problem with PHP and mysql. I run a mySQL query, which returns the following object: `mysqli_result Object ( [current_field] => 0 [field_count] => 2 …
  • Member Avatar for James_43
    James_43

    Began Watching mysql object reading as bool

    Hi all, I'm running into a problem with PHP and mysql. I run a mySQL query, which returns the following object: `mysqli_result Object ( [current_field] => 0 [field_count] => 2 …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Ajax call returning unprocessed PHP

    There is definitely an extension on all the PHP files. I've looked at the rewrite rule, and I am still somewhat a beginner wit NGINX, but my understanding of that …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Ajax call returning unprocessed PHP

    More on this. Using the follow javascript: $('a[href="sentiment"]').click(function(e){ var id = $(this).attr('id'); var sentiment = $(this).attr('class'); e.preventDefault(); alert(id + ' ' + sentiment); }); And the following HTML: <a href="sentiment …
  • Member Avatar for James_43
    James_43

    Replied To a Post in IRC commands

    Thanks - I'll take a look. I realise that it could be dangerous, but interesting to try as an experiment.
  • Member Avatar for James_43
    James_43

    Replied To a Post in combine different mysql queries

    Hi all, my apologies, I pasted the Likes table wrong. It is in fact: +----+----------+--------+------+---------------------+ | ID | type | status | iker | iked | +----+----------+--------+------+---------------------+ | 1 | …
  • Member Avatar for James_43
    James_43

    Created combine different mysql queries

    Hi all, I currently have two tables that look like this: COMMENTS +----+-------------------------+--------------+---------+---------------------+----------+ | ID | comment | profile_post | creator | created | approved | +----+-------------------------+--------------+---------+---------------------+----------+ | 1 | …
  • Member Avatar for James_43
    James_43

    Began Watching combine different mysql queries

    Hi all, I currently have two tables that look like this: COMMENTS +----+-------------------------+--------------+---------+---------------------+----------+ | ID | comment | profile_post | creator | created | approved | +----+-------------------------+--------------+---------+---------------------+----------+ | 1 | …
  • Member Avatar for James_43
    James_43

    Began Watching help

    i want to count the checkboxes i putted in my project when they get selected and they cant available again when they get stored in mysql plz rply me on …

The End.