Search
Autumn is here already?
Noelia - the Black Panther
The Mobile Podcaster (a concept written in two messages from my cell phone.)
The time is now 2am in Bacava, Belgian Congo.
Some old soundbite from Leo Laporte's [http://leoville.com/] website, from the Internet Web Archive: [http://web.archive.org/web/20030801220128/http://www.leoville.com/950128sf.shtml]
"The time is now 2am in Bacava, Belgian Congo. The home of the jungle telegraph. "We'd like to say hello to Ungat-ungat Oomp and Mrs. Oomp and all the boys up at the transmitter. "Removing All Style Attributes From The DOM Tree Via Javascript
So today, I sat down to work on my three challenges for my Web Database Programming class. The first two were making an ASP.NET application that took three text fields and printing the output onto a separate page, and styling those two pages.
The second was creating a page that displayed an un-editable Calendar server control, with a button that when pressed, sends a postback to the same page and display the current date, as well as style the Calendar control.
There was a problem with that.
Myself, being the developer and designer that I am, looked at the output of the calendar control. Inline styles.
If there is anything else that I do not particularly enjoy seeing in my outputted markup, it has to be inline styles.
Mind you, I do not write javascript enough to do anything really neat and awesome, but I decided to tackle the problem with it. One of the things that I found while writing this bit of 'script was that I kept on forgetting the most basic things of programming: conditional statements. But after about four hours of tinkering, I finally came up with this:
<!-- Get rid of them nasty inline styles! --><script type="text/javascript"> //<![CDATA[ var elements = document.getElementsByTagName("*"); var i = 0; var l = elements.length; for (i = 0; i <= l; i++) { var attr; if (elements.item(i) != null) { attr = elements.item(i).attributes; } if (attr.getNamedItem("style")) { var removed = attr.removeNamedItem("style"); }; }; //]]></script>What this does, when put at the bottom of the <body> tag, is that it removes all style attributes from the DOM tree that ontains the attribute.
The reason why I'm talking about it here, is that I haven't really found anything that matched what I was looking for. So when you want to do something and it doesn't exist (for the most part :p,) create it yourself!
Postscript:
Why I couldn't just write a custom server control? The assignment stated that I had to use the built-in Calendar server control in ASP.net 3.5. It also did state to look in Design View and alter colors and such that way, but being an intermediate/advanced (X)HTML and CSS developer I like to create something that will catch one's eye in one way or another. ;-)
Room 431 @ NSCC Truro/Davis Hall
Another year, another room.
Today was a pretty interesting day. Me and my father travelled two hours down to Truro for moving me into the college Residence, and all was fine and dandy until I started noticing that I was missing something. My pillow. Then my chocolate milk, orange juice, and toaster strudels. And then... I forgot my laptop's power brick. Long story short, I got all of that back when my parents came back later on in the day to drop the stuff off (and my mom checked out my room.)
I should really thank my father for bringing me down, helping me take all of my things up to my room, AND for helping me unpack it all. And of course, I should thank both of my parents for driving two hours back to Truro in the truck to drop the missing items off. They are definitely the most wonderful parents ever. :)
Sora - multitrack recorded by myself
Back last year in residence (college,) I've had guys come up to my room asking me to sing/play anime songs for them. Maybe because they thought that it was weird, or cool, or maybe both. Great times.
This is a multi-track recording of me playing "Sora" ("Sky") from the Idolmaster album "THE IDOLM@STER MASTER ARTIST FINALE".
It could be a little lot more in synch though.
Also, maybe I should invest in a drum machine. :p
Odd signal betwwen 5.2 and 6.2 shortwave, I think.
So, at home we have one of those crank-powered radios that can tune into AM, FM, and SW signals. I took it out to the kitchen, and just scrolled through all of the different frequencies that you can listen to on it. Then, I started to hear "bleep bleep bleep BLEEP" about a second or so apart. I think that it was between 5.2 and 6.3.
Maybe it could be a beacon signal?


