Recently in programming Category
Server Side Parsing of XMPP: Part II
[ rakaur on Tue Nov 04 at 08:17 AM // category: programming, software, technology ]
I’ve learned a lot since part one, but nothing that helps anyone.
The XMPP RFC tells us we must be able to detect bad XML, and disconnect anyone that sends it. At the same time, we have to accept what could potentially be correct XML but an incomplete stanza (ie, a really big one that got split up). This is essentially impossible to do.
With Ruby’s REXML, I can meet it halfway by rejecting not-well-formed partial stanzas, but going ahead and waiting for the stanza to be completed (all tags closed). This allows me to accept partial stanzas as long as they’re able to be parsed.
With libxml, I can’t do anything. There’s no way to recover from on_parser_error(), so I can’t even get passed the opening <stream> (because it never closes).
With expat, which is the most popular XML parser, I can’t do this. I can either reject everything, or accept everything (as far as I can tell, the docs are nonexistent).
So right now my program tries to use expat and falls back to REXML on failure. That’s the best I can figure it out.
-- rakaur // 2008.11.04 @ 08:17 AM
Server Side Parsing of XMPP
[ rakaur on Sat Sep 27 at 10:28 AM // category: programming, software, technology // comments: 1 ]
When I start writing XMPPd two years ago, I knew next to nothing about XML or the parsing thereof. The only parsers I had ever written were for database files of my own design, and IRC. This was somewhat of a problem.
Click here to read this entire entry.
-- rakaur // 2008.09.27 @ 10:28 AM
Projects & Content
[ rakaur on Thu Mar 27 at 09:15 PM // category: programming, software, technology, web ]
I added back the Projects section that used to be on my old website. It’s still a work in progress. I’ll hopefully be adding other things to it in the near future.
Also, as a reminder, all of the pictures etc. I’ve ever mentioned in blog posts since the beginning of my site have been kept at this location. It’s interesting to browse through sometimes.
-- rakaur // 2008.03.27 @ 09:15 PM
Moving on the Rails
[ rakaur on Sun Apr 16 at 10:37 PM // category: programming, software, web ]
So, I got new hosting (i.e., somewhere other than myself). I plan on moving this site there, along with my other random sites. First I’ll move my smaller sites, and see how that works out. I have to completely rewrite this site for it to work there (using Ruby on Rails), so I finally have a reason to do that. Hopefully after all that’s over, I can start working on xmppd again.
So far so good.
-- rakaur // 2006.04.16 @ 10:37 PM
Eric on Rails
[ rakaur on Wed Mar 01 at 10:13 PM // category: programming, technology, web ]
So, I’m thinking of redoing my site again. Yes, I know, I said I’d never redo it again. I’m going to keep the same design (unless someone redesigns it to not suck, but I’ve completely given up any hope of making one myself).
Right now, my site is done in mostly in Python, as it was my favorite language at the time. The blog is done in Python, with the help of the PHP Markdown script—which all of the posts are formatted in—by way of a huge, mind-blowingly kludgy hack. The static pages are just text files, rendered by PHP Markdown.
Shortly after I wrote my site, I got hooked on Ruby. At the time, Ruby support in Apache (a la mod_python) was not so great, so I didn’t rewrite my site. But now, everything has changed.
Now, there is Ruby on Rails.
Rails is really cool, and while I don’t completely understand it at the moment, it could allow me to make nice changes (such as being able to edit a post without mucking around in the DB or writing my own edit stuff) fairly easily, with a few lines of code here and there. It’s really organized, and really nice. Another benefit of doing it in Ruby is that there’s a pure Ruby implementation of Markdown, called Bluecloth, so I wouldn’t have to do the nasty, batshit crazy hack I have in there right now. I don’t know if I have the energy for it, between work, girl, and my other projects.
So, if anyone wants to make it worth my time by contributing a new design, I’ll do it. But otherwise, I dunno. It’s iffy at best.
-- rakaur // 2006.03.01 @ 10:13 PM
Introducing XMPP
[ rakaur on Thu Feb 09 at 12:18 AM // category: programming, software, technology ]
Evidently, having a part time job, going to school full time, and having a pregnant girlfriend doesn’t occupy nearly enough of my time. I often find myself with nothing to do for minutes at a time. So what did I do? I went and did the last thing anyone would have ever expected me to do.
I started a programming project.
What the fuck?
I know, I know. I hate programming. I hate all languages, and I hate everything about programming. So, why, dear god in heaven why did I start doing it again?
To be honest, I have no fucking idea.
-- rakaur // 2006.02.09 @ 12:18 AM
A Lovely Animation
[ rakaur on Thu Jul 14 at 12:13 PM // category: programming, technology ]

-- rakaur // 2005.07.14 @ 12:13 PM
Ruby, Now Swear Free!
[ rakaur on Sun May 29 at 11:14 PM // category: programming, technology ]
Someone posted my Ruby rant on the ruby-talk mailing list (here, and here). As a result, a bunch of people are rather mad at my inbox.
The most common complaint I saw was my “presentation.” I guess that means because I swear a lot. Yeah, well, so does jwz, and he’s one of the most respected people in the software world. So what, people swear. I use swearing as a litarary construct, be it for better or worse.
And that’s another thing: you cocks can stop emailing me about every typo/grammar mistake. I don’t care. It’s a rant. It’s me, writing for no reason, it wasn’t meant to be presented to the Ruby community. If you people want to criticize it as if I meant it for publication in a scientific journal, then go right ahead. I’ll just keep to my small corner of the Web, swearing to myself.
About the log entry. I have a rule of thumb. If someone is using the words “shit” or “fuck” three or four times on page, they quickly lose all credibility.
Well, I guess if you want to live in a magical world where no one swears and no one is offended, have at it. I hear far worse in traffic every day.
I expect everyone reading ruby-talk could assemble a list of cases where Ruby violates their own sense of POLS.
I expect they could. I was led to believe this was a major design aspect of the language, and that’s why I wrote the rant. I now know that POLS was never advocated by the designer.
Some valid points ? I think this guy does not know what he’s talking about, or simply did not read the documentation correctly, or is simply blinded by something he should unlearn first, or simply likes making straw man arguments for the sake of it, or simply likes to rant (that I can understand, I like it too :) ).
Er, and just what documentation is that? I poured over every book, ruby-doc, etc that I could find. Ruby is a fine language, this is a list of things that annoy me about it. I did it with Python too.
And, yes, I like to argue for the sake of argument, and I like to rant for the sake of writing. I’m INTP.
And calling the language creator(s) “fucktard(s)” really doesn’t help making a point, really.
Yes, yes, swearing is bad it causes cancer etc. I personally find “fucktard” no more or less offensive than “idiot,” “moron,” etc.
He is 18 and just out of high school and thinks he knows everything. I think everyone goes through that phase.
No, I really don’t. I know I really know very little of anything. I haven’t been through four (perhaps more) years of CS in college like some of you people have, and I never will. I find CS largely boring. Data structures, instruction sets, algorithms, blech. It’s a hobby, and obviously a hobbyist such as myself knows far less than someone with a degree.
I haven’t seen it, and I see very little valid on that page.
I haven’t read War and Peace, but I suspect it’s pretty worthless.
How can you possibly judge something if you haven’t actually, you know, read it?
I think the guy’s point was “omg, they said everything was an object! “hi”.length == 2 and stuff! But not sqrt(5)! Like, omg you farking farktards are farking dumb! So much for POLS!!!1”
Yeah, that sounds about right.
The rant-writer likes ruby. From his python rant:
Yes, I like both languages.
his choice of language is bad, some examples are stupid, and even me, being quite a newbish, wonders why he rants about that, but some examples are really good.
Uh… all right.
Nothing that hasn’t been said before, but in a much more acceptable way that promotes good discussion and real action.
As I’ve said, I didn’t write this with the intent to distribute. Spare me the “BUT RAKRAU YOU PUT IT ON TEH INTARWEB!!!11” shit. I didn’t peal your eyes open and force you to read it.
Nothing new here people… move along, move along.
That’s strange, because quite a few of the posts and emails agreed with me that some of these are serious problems. I guess if we ignore them they’ll just go away, right? Good plan.
Okay, thanks for the information. Knowing that you never advocated POLS or actually designed the language around POLS, as I was told by every source I’ve ever read regarding Ruby, negates quite a few of my points.
And on to the emails…
Your rant was referenced on the ruby-talk mailing list. As can be expected, maybe 1/3 or 1/4 of the people are saying, “really good points, if you can overlook his obnoxious tone” while the rest… well, they got their feelings hurt.
It is pretty amazing how many people boo and hoo and make no point. If you got something useful out of my rant, that’s far more than I ever intended while writing it. If you were offended, I guess you haven’t really had much contact with humans.
Oh, and one more thing: Don’t call people “fucktards”.
You’re not my mother, and this is the Internet. One of the main points of the Internet is that it can’t be censored. Deal.
I thought your rant was interesting, if I edited out the swear words directed at matz, the language creator and an all round nice guy.
I wasn’t insulting him, I was questioning some of his decisions regarding language implementations.
It would be nice if you could modify your rant and maybe remove reference to POLS, or at least acknowledge the language designer doesn’t actually like that principle.
I’ve done the latter, but if I did the former I wouldn’t have a rant left.
I know it’s a rant, but you’re unlikely to make many friends in the Ruby community if you swear repeatedly
You people need to get over the swearing thing. Just for general information, I rarely swear outside of writing.
By the way, I found Ruby to be similar to blue cheese or advocado. The first few times I tried blue cheese, I thought this is horrible, how could anyone like this. Soon after though, I found I really liked it…
Interesting analogy, which I agree with. The rant was never saying I hated Ruby, it was listing things about it which I disliked.
And that’s that.
-- rakaur // 2005.05.29 @ 11:14 PM
Ruby Rant
[ rakaur on Sun Dec 05 at 11:13 AM // category: life, music, programming, technology ]
I wrote a Ruby rant. It’s a good one.
Feedback plz!
By the way, the new Evanescence CD blows. I think they’re completely out of material (there were a ton of Evanescence songs released before Fallen, they just weren’t mainstream, but I like them all much better than their new shit).
And also, they blow live.
-- rakaur // 2004.12.05 @ 11:13 AM
Running With Ruby
[ rakaur on Fri Dec 03 at 06:19 PM // category: life, programming, relationships, running, technology ]
My Ruby book came, finally.
I just ran three and a half miles with like two minutes of combined resting.
Pretty sure everyone in the entire school knows that I like Kayla now.
So, that should sum it up for a few days.
-- rakaur // 2004.12.03 @ 06:19 PM
« games | Main Index | Archives | unix »
