Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Get ready for the second comment on your 529th rant.
//Announcing stuff is pun..... -
@Alice Too badly not :P. As someone who likes Telegram a lot you might not like it by the way 😆
-
@linuxxx your first post on the website is a later date than the second. I think it's the same on the rss as well.
-
Forside14597y@ewpratten
dd-mm-yyyy
05-12-2017 is after
30-11-2017
But I think the posts should be displayed in a descending order @linuxxx
I'll just randomly throw this in: https://forum.xda-developers.com/an...
Might be of interest by @linuxxx -
@Forside As for the way I load posts in the overview right now (I do it highly inefficient, I admit that one 😅 it's easier to do it ascending imo.
I'll have to rewrite that part anyways once I get more posts so that will be fixed in the not so distant future :)
As for the link, I've read about wireguard, yes! -
New domain :O
It took me a week to memorize the old one, I even had to go through your rants to remember it last time :| -
@linuxxx any room for an 'orderby' in the query? So that the most recent post are on the top of the page?
😇 -
@incognito I'm using a very bad method for loading the index 😅
Want to rewrite it but sql isn't a strong point of mine, would you have an idea on that one? -
@linuxxx I'm going to assume you have a table called blog_posts in there you have the column id (created_at datetime is even better, but you can guess the latest post based on id) and message, (of course a few more but this will do)
The following query will get your blog_post in the order newest first :
SELECT
*
FROM
blog_posts
ORDERBY
# either created_at or id, or even
# (but unnecessary) both
ASC
Just hit me up if this is still unclear, I don't know your specific database setup 😉
Related Rants
-
linuxxx97It was between me and another guy. I fucking won! I GOT THE FUCKING JOB!! I'll be a junior Linux Support...
-
linuxxx8Had my first 'mentor' moment at work today! Newest guy couldn't figure something out and asked me, slightly ...
-
watzon17My wife said the magic words last night! "Teach me to code".
The security/privacy blog.
Get ready for a new blog post, dark theme and a new domain name today!
Sorry, I love to announce stuff 😊
rant
yay