Skip to content

API database project? ideas?

Chitchat

  • 10 Votes
    9 Posts
    301 Views

    @Panda Great analogy…

  • 2 Votes
    8 Posts
    269 Views

    @Panda you’d be surprised. If you consider that you’d need to use the API to be able to populate a WordPress widget for example (which in turn would of course be PHP), taking this route is still immensely popular.

  • 3 Votes
    7 Posts
    221 Views

    @DownPW said in Proton launch password manager:

    And bitwarden can be self hosted

    Yes, correct.

    @DownPW said in Proton launch password manager:

    I’m now on KeepassXC bcause it’s free and without cloud account.

    Yes, looks good (albeit a little on the basic side, but who needs bells and whistles for password management?)

    https://keepassxc.org/

  • 14 Votes
    14 Posts
    667 Views

    Just circling back here as I’ve been helping @cagatay this morning on his site, and noticed that if you use a mixture of fa-brands and fa-solid then the code supplied above may produce some odd looking results.

    If this is the case, replace the function with this

    $(document).ready(function() { $.getJSON('/api/categories', function(data, status) { $.each(data.categories, function(key, value) { var iconClass = 'fa'; // Default to 'fa' if the icon type is not recognized // Check if the icon is FontAwesome Unicode if (this.icon.startsWith('&#x') || this.icon.startsWith('&#xf')) { iconClass = 'fa'; } else if (this.icon.startsWith('fab')) { iconClass = 'fab'; } var categorylist = $(" \ <li class='dropdown-item tree-root'><span class='category-menu'><i class='" + iconClass + " " + this.icon + "'></i><a style='display: inherit;' class='dropdown-item rounded-1' href='/category/" + this.slug + "'>" + this.name + "</a></span></li> \ <ul class='tree-branch' style='list-style: none;'>" + this.children.map(c => { var childIconClass = 'fa'; // Default to 'fa' for child icons // Check if the child icon is FontAwesome Unicode if (c.icon.startsWith('&#x') || c.icon.startsWith('&#xf')) { childIconClass = 'fas'; } else if (c.icon.startsWith('fab')) { childIconClass = 'fab'; } return `<li class='dropdown-item tree-node'><span class='category-menu-tree-node'><i class='${childIconClass} ${c.icon}'></i><a class='dropdown-item rounded-1' style='display: inherit;' href='/category/${c.slug}'>${c.name}</a></span></li>`; }).join(" ") + "</ul>" ); if ($(window).width() < 767) { $(".bottombar #thecategories").append(categorylist); } else { $(".sidebar-left #thecategories").append(categorylist); } }); }); });

    In fact, if you want to replace it anyway to make your experience “future proof”, you can use this code now 🙂

  • 11 Votes
    4 Posts
    230 Views

    happy holidays all
    merry christmas 🎄 🤶

  • 17 Votes
    21 Posts
    1k Views

    @crazycells said in Netflix hints at password sharing crackdown:

    We love laws, and would pay if we want to watch movies.

    I think you’ve hit the nail on the head here - particularly around the point re: privacy. I expect that other people are willing to abide by the laws also, but it’s very easy to see how rising prices will simply fuel the pirate industry even further. Nobody likes to be “ripped off” or “held to ransom”, and there are always going to be those who would rather not pay at all and put up with a poor video image taken in the cinema with someone’s head bobbing up and down, or overhearing someone complain they asked for an ice cream but got a donut… 🙂

    The rising costs of viewing material is what is in essence the fuel for the piracy market - not just viewing either - it used to be the case (before digital downloads of music tracks) that people were pirating CD’s because of the cost. With the onset of online music stores, that’s probably a thing of the past - I can’t recall overhearing anyone saying they spend all of their free time searching for mp3’s etc recently, unless I’m out of touch, but the film industry is encouraging piracy with the spiralling costs of attending the cinema etc - not to mention being robbed in broad daylight if you want refreshments.

  • 5 Votes
    6 Posts
    378 Views

    @DownPW Yes, data protection in the USA is lacklustre to say the least.

  • Member chat

    Moved Chitchat
    11
    5 Votes
    11 Posts
    509 Views

    @phenomlab sure has, keep up the good work!