December 2017

S M T W T F S
     12
34 5 6789
1011 12 13141516
1718 19 20212223
2425 2627282930
31      

Style Credit

Expand Cut Tags

No cut tags
jarandhel: (Default)
Wednesday, February 22nd, 2012 11:01 am
I just updated the k2 theme used on my website, and after a great deal of work I think I've got the custom css working again.  At least, on Safari and Chrome and Opera.  The problem is, it's not working on Firefox.  And I have no clue why.  Using the default theme, the right sidebar shows up at the bottom rather than on the right, and pages which should have no sidebar have the main content pushed over to the right.  These problems do not occur in Webkit based browsers, nor do they occur in Firefox using the "Inverted" theme.  But I haven't added anything positional, as far as I can tell, to the default theme.  So I have no idea what's going on.  

If someone with more CSS experience than me could please take a look at http://dreamhart.org in firefox and figure out what's going on, I'd really appreciate it.  I'm completely stumped.
jarandhel: (Default)
Thursday, September 7th, 2006 03:06 pm
I'm a complete idiot. I've been so busy obsessing about which tools are the "best" for programming on linux, which interface builders and IDEs and everything, that I never really thought about the actual minimum I needed to begin programming on linux. Turned out, it was a lot less than I would have thought:

A text editor, and a compiler. Period.

Granted, some of the other tools may make it easier, but they're not necessary and they might actually get in the way of learning some aspects of it if I'm relying on them to simplify things for me.

I was also doing much the same thing with trying to understand all the libraries and APIs available for programming in C++. There were so many of them, I was starting to get overwhelmed. I felt like I needed a catalog of them all just to get started. Errm, no. No more than you need a catalog of an entire library to start a research project on Plato. You only need the relevant volumes. I only need the basic libraries for the relevant functions. I get that now.

Time to really start.
jarandhel: (Default)
Thursday, September 7th, 2006 08:55 am
First off, cool news: Google adds ability to search historical newspaper archives. I don't know if anyone else feels this way, but personally this makes me sleep a bit easier knowing it's now become that much harder for the people in power to change history without anyone noticing.

On a more personal note, I've reached the point where if I don't code something soon, I'm going to go utterly stark-raving bonkers. It's becoming an itch in the back of my mind.

That said, most of the day I'm at work with little opportunity to code. Or commuting, with less. Or at school. And even at home, I don't really have a development environment set up (yet). Too many tools to choose from, and I'm not really sure which ones I need to just get started. Almost makes me wish Debian had a "programming" tasksel grouping that added the most popular or most basic development tools to your system.

I'm thinking about opening up a post here to do some basic coding in as I have free time. Nothing too complex, obviously... at least not at first. Just enough to scratch my itch a little. And maybe I'll build on it over time, make it more complex, rather than opening new posts. We'll see.
jarandhel: (Default)
Wednesday, September 6th, 2006 09:01 am
So, I was browsing around on google code, looking over the new open source projects they host. Kind of liking the format, really. Very clean compared to the format of sourceforge. You have a description page, an issues page, and a source page. That's it. Very simple, very orderly. I like that.

I was specifically browsing through the C++ projects, since that's the language I'm most focused on at the moment thanks to the phenominal books I got from microcenter. In about five minutes, I found a little open-source implementation of pong that someone had written. Small enough to browse through the code fairly quickly. Now, I'm a coding beginner really. I'm experienced enough in BASIC and LOGO (which I understand is actually a variant of Lisp?) and I've done a small amount of work with Objective C, but C++ has always been kind of over my head. Doesn't seem to be any more, though... I immediately homed in on a section of the source that is in dire need of reworking. It's nothing major, really... it's just that the original programmer hard-coded in identical initialization sequences for both players. That's kind of painful to me. It would be SO easy to split those off into a seperate function. Heck, with a little extra coding you could even set it up so you could add more players that way, and get crazy three-way or four-way games of Pong going. All from modularizing just a tiny bit more. Not to mention that it would make the code that much easier to maintain, if you ever needed to alter the initialization sequence.

... I'm really tempted to step in and make those chances, and submit them to the project. I've never submitted anything to an open source project before, but I'm really not seeing any reason not to here.

Funny thing is, I have no idea what most of the code in the sequence DOES (it uses an API I'm not familiar with)... I just know that it's not optimized, and I know enough about the language in general to know how to optimize it.

Edit: please, nobody do this before I do. I know there are other programmers on my friends lists who could EASILY do it (and probably add in enough new features at the same time to make the original programmer blush that he dared submit the program), but I really want to make the changes myself. I just can't from work, all I can do is browse the code here.

Re-edit: Or maybe I don't know enough about the language... I overlooked something. The code that I thought was identical actually is not, the hard coding involves keymapping. So while all the variables being defined are identical save for player, what they are being defined as are not. And I can't think (at the moment) of a more elegant way to store those variables so that the init sequence could be made more efficient. It seems like no matter how it's done, you're going to have to have some kind of array defined to hold the specific prefs for each player, keymapping-wise, and at that point you may as well hard code it this way since there's really no way to do that any more efficiently. The only drawback is that there's no easy way to add a new player. But then there's no easy way to do that the other way either, if you'd have to load some sort of preferences file holding the same info, since you'd have to create the pref file by hand too and make sure it contains unique mappings. I can't believe I missed that before. Oh well, back to the drawing board. Maybe I'll find something else that actually needs optimizing.