ree: (working)
I feel a bit embarrassed. I spent all afternoon working on my pet project (even forgot to wash lunch dishes until my husband came home for supper! Oh dear!) and here I am, trying not to talk myself out of writing about it. (....I've scanned that last bit and, while I'm not sure if it has anything close to grammar, it does indeed reflect the indecision I'm experiencing. Yay?)

I got the FOAF bit working by relentlessly preg_replace-ing all the namespaces away. It's shamefully hacky, but having the namespaces present in the header makes the entire object blank, and I don't have any idea why, so I'm just trying to route around the damage. I'd been trying to decide whether or not to post all my source publicly; resorting to this hackery means that I think I won't. I'm unprepared to support my code on outside servers anyway. Maybe in the future, sometime, but not this year. I just hope it doesn't break in the meantime, because my fix is an all-or-nothing deal and if it doesn't work, then my project is missing certain bits of data.

A week ago, I don't think I have ever tried parsing OPML beyond a Yahoo! Pipes experiment. I know I hadn't learned how to encode and decode JSON in PHP, or save a string to a new file. These are things I've had to learn as I went. It took me forever, because I had to learn each bit from scratch instead of just implementing previous learning, but it's coming along and I know more stuff now and that feels pretty awesome.

I don't think I ever stated exactly what my project is. That's because I don't know what to call it. I wanted to see just how much data the Dreamwidth API produces for a single account. Turns out, quite a bit! http://wiki.dwscoalition.org/notes/Data_Sources lists them. After discovering this, I tried mashing these up to make a sort of homepage for a specific Dreamwidth community, one made almost entirely from Dreamwidth's data. The idea was that changes to the community would automatically appear on the webpage as well - things like a list of current mods, numbers of posts, any deadlines listed in the profile "bio", even the comm's default icon - so that the webpage wouldn't be out of date and the mods wouldn't need to update the page separately, so long as the comm was up to date.

This turned out to be far more fun, and far more frustrating, than I had imagined. The fun wins, though.

(Did I really, just today, figure out how to make arrays from two different data files in different formats, compare them, sort the results, and save it all to a flat file? I'm pretty sure that I did. I've even edited the flat file to compare it against the live data. Apparently that is a thing I can do now!)
ree: baby Metroid with pink hearts in its speech bubble (baby Metroid <3)
Well. I accidentally killed the tumble dryer. Insert non-humorous laugh here.

I'm not ecstatic to be hanging clothes to dry, obviously, but I must admit that I'd much rather machine-wash clothes and air dry them than attempt to wash clothes in a tub but have them warm and fluffily dried.

I was in a Mood over the weekend, but despite the machinations of literal machinery, I am hanging in there and feeling more grounded, stable, and pleasant. Yay!

It turns out that trying to parse a FOAF file in SimpleXML is a real downer. Techspeak: )

Once I get that FOAF-related project fully working and put a bit of polish on it, I intend to show it off. At the moment, it's pretty ugly; it's basically a programmatic skeleton with no flesh on it yet. FOAF aside, it's been fun to play with. I'm still torn between making a sort of template that anybody could use for their own project, or just tweaking it to suit my exact wants. I'll work something out.

I don't hear the washer anymore, so I probably need to hang the laundry and then get to my morning workout. Ugh. It takes so long to warm up in this cold weather! Being warmed does beat feeling the cold, though.

Style Credit

December 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2023

Syndicate

RSS Atom

Expand Cut Tags

No cut tags
Powered by Dreamwidth Studios
Page generated 2025-07-06 05:06 am