Jump to content

morocco-iceberg

Members
  • Posts

    100
  • Joined

Everything posted by morocco-iceberg

  1. The best books are docs, but if you do prefer the traditional book format, O'Reilly tend to publish some great resources
  2. Often the longest part of coding isn't writing the code, but figuring out how to write the code. Having a plan is always a good idea!
  3. 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
  4. Seems I've forgotten how to embed it as a code snippet, the usual markdown isn't working
  5. 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 } ]
  6. 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
  7. 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
  8. Once you get to the other side of testing responsiveness and need to test for many different screen ratios, browsers and devices, tools like BrowserStack etc. can be incredibly helpful
  9. You can also use JavaScript onClick if you wanted any loading animations or to process information before navigating away, but for basic navigation tags should suffice
  10. The JSON structure itself looks ok, you would definitely need to remove the `127.0.0.1 - 2022-10-01 13:13:20 - INFO -` header and only pass the information within the brackets with the result being an array of objects
  11. 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
  12. If it's consistently coming out in reverse order for your expected results, you could always try 'ORDER BY attribute DESC'
  13. To start, you'll need a function that parses the JSON and finds the value you want to return
  14. You can also use a regex tester to confirm that it will behave the way you're expecting :)
  15. Centering elements also tends to depend on the structure of the elements and what you want to center so it's a bit difficult to deduce from a single div and no css
  16. Might be a change in the browser/wrapper defaults. If you haven't already included one, potentially a css reset can maintain consistency in case of future changes?
  17. It may be worth looking at how you're designing your data, it sounds like you may be over complicating things by dropping the table constantly
  18. Upwork and similar freelancing sites should work too
  19. It's definitely a meme at this point
  20. What are you deriving the state from? The online attribute?
  21. I don't want to spam the forum, I just want to have my account deleted, but that appears like it's the only way to get rid of my account.
  22. I don't like having accounts with my email addresses just sitting there though... I'm kinda OCD when it comes to internet accounts and it stresses me out. I just want it to be gone so I don't have to worry about it anymore.
×
×
  • 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.