Jump to content

morocco-iceberg

Members
  • Posts

    100
  • Joined

Posts posted by morocco-iceberg

  1. Not too much of a difference putting your database on another server (which is what the cloud is...) as long as you are able to setup the access appropriately. There are plenty of solutions out there these days that are focused specifically on scalability and can be set up with a few clicks, the complexity now tends to be introduced at the security layer depending on your architecture and how your applications need to talk to each other
  2. I think you may have introduced some additonal { down the bottom in your copy of the JSON? The original version doesn't have them. Try this:

    [
    {
    "config_group_id":2,
    "device_count":2,
    "devices":
    [
    "11:22:00:00:00:01",
    "11:22:00:00:00:02"
    ],
    "name":"Bob",
    "pause":false,
    "profile_id":2,
    "timespent":
    {
    "has_quota":false,
    "quota":0,
    "total_spent":
    {
    "normal":91,
    "reward":0
    }
    },
    "online_device_count":1,
    "online":true
    },
    {
    "config_group_id":3,
    "device_count":2,
    "devices":
    [
    "11:22:00:00:00:03",
    "11:22:00:00:00:04"
    ],
    "name":"Alex",
    "pause":false,
    "profile_id":3,
    "timespent":
    {
    "has_quota":false,
    "quota":0,
    "total_spent":
    {
    "normal":0,
    "reward":0
    }
    },
    "online_device_count":0,
    "online":false
    },
    {
    "config_group_id":9,
    "device_count":3,
    "devices":
    [
    "11:22:00:00:00:05",
    "11:22:00:00:00:06",
    "11:22:00:00:00:07"
    ],
    "name":"$lan$",
    "pause":false,
    "profile_id":4,
    "timespent":
    {
    "has_quota":false,
    "quota":0,
    "total_spent":
    {
    "normal":638,
    "reward":0
    }
    },
    "online_device_count":2,
    "online":true
    }
    ]
  3. You can apply the background css rules to both body and div tags, the thing to keep in mind will be that the background will be relative to it's container (element), so unless you have also made the div take up the entire view you will have a different visual effect compared to a body tag. You may also find that you need to specify a height for the div to be able to see the background if the div doesn't contain any content from which to derive a height
  4. Honestly so glad that we don't need to mess around with floats for basic layouts anymore. Grid layout is so much nicer to work with, and for almost everything else there's flexbox: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox
  5. There are some cases where it is required to work with a strict content security policy, particularly when audits are involved for compliance with vendors. It can be both a useful security measure and a bit of a headache if you also need to maintain third-party scripts that don't comply but you can't remove for various reasons
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.