ever needed to access ncsu class data but didn't have a good way of doing so?well here you go!http://e00.us/ncsu/courses.phparguments:d - department (from here) (required)f - format: either "json" or "php", php is default and outputs a print_r, json outputs json data (duh)example:http://e00.us/ncsu/courses.php?d=BCHhttp://e00.us/ncsu/courses.php?f=json&d=BCHi'll add more features and sorting and whatnot later, i just coded this for a personal project and thought someone else might be able to use itlemme know if you have comments/suggestions/bitching]
12/4/2008 8:44:18 PM
It doesn't work.
12/4/2008 8:45:20 PM
12/4/2008 8:45:24 PM
EMS/EUPHALO/TWW RADIO/TWW PICTURE HOSTING/THIS
12/4/2008 8:45:42 PM
this offends me, will you take this site down?
12/4/2008 8:45:43 PM
yes, i consider json data to be very useful^^^how has this failedwhy is it that whenever i try to be nice and share something, everyone bitches]
12/4/2008 8:45:58 PM
JaSON?
12/4/2008 8:46:49 PM
jaZon?
12/4/2008 8:47:16 PM
i guess i should fix school tool next
12/4/2008 8:48:06 PM
why next?
12/4/2008 8:49:01 PM
message_topic.aspx?topic=544751
12/4/2008 8:50:06 PM
cus it's one of the biggest broken things on herei was gonna do it in the summer but i forgot
12/4/2008 8:50:23 PM
fail
12/4/2008 8:50:42 PM
what is wrong with you peoplecan i not do anything to help anyone at all? god damn.
12/4/2008 8:51:22 PM
i think if you dropped a UI on this thing it might have potential
12/4/2008 8:54:35 PM
ding ding ding
12/4/2008 8:55:37 PM
i figured as much.. if i have time, i might throw a simple UI on iti didn't need it to have a UI though and that was never my intention, so i didn't give it one... i'm using it to provide data for a better version of xtracs, and json is perfect for inter-application transferi figured json data was much more flexible; people can do whatever they'd like with the data as opposed to being locked down to a gui]
12/4/2008 8:56:18 PM
12/4/2008 8:56:35 PM
I don't get it. Looks like it could be useful, but a page full of garbled text is hard to read
12/4/2008 8:57:13 PM
how many non-programming people have ever heard of json? i had to google it.[Edited on December 4, 2008 at 8:59 PM. Reason : also i tried ece and it didn't work]
12/4/2008 8:57:50 PM
what exactly am i looking at here
12/4/2008 8:58:37 PM
I, have not.
12/4/2008 8:58:45 PM
12/4/2008 8:59:07 PM
WELL I DON'T KNOW JASON, SO HOW AM I SUPPOSED TO KNOW WHAT HE DOES?
12/4/2008 8:59:59 PM
that's fine if that's what your intention is, but clearly you can't expect most people to see any value in that. not to hate on your efforts, but you know nobody on here would find this useful (in its current state)
12/4/2008 9:00:20 PM
^i knew it would have a limited audience, but i don't think that *no* one has a use for it
12/4/2008 9:01:09 PM
ahemhttp://www.wolftech.ncsu.edu/tracster[Edited on December 4, 2008 at 9:03 PM. Reason : it reads actual, useful XML in to boot!]
12/4/2008 9:01:56 PM
^ WHAT'S WRONG WITH YOU I CAN'T LOG IN TO THAT
12/4/2008 9:02:34 PM
wow, i didn't even know that existedit has potential, but that's a god-awful UI
12/4/2008 9:02:50 PM
12/4/2008 9:03:23 PM
^,^^
12/4/2008 9:03:51 PM
12/4/2008 9:03:57 PM
:carlface:THIS WAS NEVER INTENDED TO EVEN HAVE A UI it was for use as a datasourcehow many times do i have to say that]
12/4/2008 9:04:04 PM
ALL THE FANCY JAVASCRIPT STUFF OF NOW DIDN'T EXIST THENPLUS THEY MADE ME FIT IT IN LIKE A 600 PIXEL WIDE BOXMIGHT AS WELL JUST SHOOT A GUY IN THE FACE; I JUST DO FUNCTIONALITY
12/4/2008 9:04:43 PM
hey evan, can you give a a "how and why to use this for dummies" brief? I just have no clue what im looking at
12/4/2008 9:04:54 PM
so where's the UI?
12/4/2008 9:06:04 PM
The idea is that other things can use the data to do something useful with it.The problem is that JavaScript is going to go OH SHIT CROSS SITE-SCRIPTING and bitch.(I mean, granted there are ways around it, but still)
12/4/2008 9:06:44 PM
12/4/2008 9:07:44 PM
joe#s: what didn't work about ECE? it's working fine for me...
12/4/2008 9:09:30 PM
12/4/2008 9:12:56 PM
hehthis is just a hobby, i was bored at work today waiting on some builds to finish compiling and made thiswhere are you getting your class data from? are you parsing the R&R html output like i am?
12/4/2008 9:15:49 PM
No, I have a direct feed from R&R.I work for the university, mang.
12/4/2008 9:19:11 PM
XTRACS IN THE HOUSE
12/4/2008 9:21:14 PM
How's about you write a program that makes it easier for me to listen to 6 or 7 radios at once?
12/4/2008 9:25:20 PM
12/4/2008 9:28:18 PM
shit man, you got it easy as it iswhen i worked at packbackers, we had to type every course catalog into our system. took 2 guys every day for a week to type in just the undergrad classesafter a couple semesters of that, i did what you did, parsed the R&R pages, wrote some javascript to automate our telnet console at work, and import the entire thing in under an hour. did the same thing for 20 other universities and made some $texas
12/4/2008 9:33:14 PM
tr00fregular expressions are your friend
12/4/2008 9:35:06 PM
they are also the devil. is there a getElementsByTagName() type of html parsing library for php? i've looked in the past but it's been a while
12/4/2008 9:39:22 PM
not that i know of - i know there's a DOM object, but i'm not exactly sure what it does - read up: http://us3.php.net/DOMedit: yep.# DOMDocument::getElementById — Searches for an element with a certain id# DOMDocument::getElementsByTagName — Searches for all elements with given tag name# DOMDocument::getElementsByTagNameNS — Searches for all elements with given tag name in specified namespacei just use regular expressions because i've used them so much over the years they're hard to learn, but soooo powerful[cue XKCD comic] (my boss actually bought me the shirt they made of it, haha)]
12/4/2008 9:41:05 PM
hmmm. i remember playing with that once back in the day, i don't recall it being that easy then. looks good though, will def try it next time
12/4/2008 9:43:52 PM