What I really want to know is if it’s possible to sort by newest posts… I find it rather annoying that the Q&A system only sorts by section and there’s no option to sort by date - makes it very hard to look for new questions. FIRST - if you’re out there, add an option to order the Q&A system by date… everything’s from a database, so it’s just a matter of adding a few lines of code.
As a side note, I’d like to register my disappointment with this year’s Q&A system. Some of the best engineers in the world can’t do better than this? Not only is the page cluttered and hard to read, but the questions can’t be sorted chronologically so you can’t see what has changed since the last time you have been there. Furthermore–speaking as my team’s official Q&A bottleneck–I have not been emailed a notice that my question has been answered a single time as of yet, and three of my questions have been answered. This is obviously at odds with the Q&A login page.
That is one thing that i noticed is a limitation of the current way that i run the script. There isn’t an easy way of getting the latest posts. (IE… just running the vanila query returns the oldest q&a’s.)
I’ll do whatever i need to do to fix that & see if i can get the page to load a lot faster. I might scarcifice parsing the FIRST page every load for the trade off of a better sorting system.
As of now, it’ll run a ton faster. The only downside to all of this is that the Q & A’s will only be updated from the FIRST site every 15-30 min. SO… While it won’t be totally correct minute-to-minute, it’ll be pretty close.
Here are the new values you can pass in the URL.
section=[This works just like the FIRST one. Passing 3 will return everything in and below section 3 such as 3.1, 3.1.1, etc… Passing 3.1 will return things in 3.1 and below such as 3.1.1 and 3.1.2 BUT NOT 3.2]
date=[asc/desc] - Note: This is just an order by statement. desc will return the newest q&a’s first, asc will return the oldest first
start=[offset] - The script will only return a max of 30 records at a time. Start can be used to offset the beginning to start at like record 30 instead of record 0.
Set -token.3= Like the first 75 chars of the question or something. That will then search the Q&A’s for whatever you put as -token.3 As long as you have enough of the question so that there is only one Q&A that matches it, you’ll be good.
Maybe I’ll get around to posting some code to parse the xml… i dunno
Well… it appears that first played a bit with the Q&A page. Anyways… the long and short of it was that it threw off the parser and caused it to not end correctly. Anywho… by the time i saw something was wrong, instead of 175 records in the database, there were over a million.
So… for now, i’ve stopped the parsing. I don’t want another occurance of this showing up again. I might remake this again in a few weeks when first has figured out the final source for the page.