Server Move
As some of you may know or have noticed, I've moved my blog to a new server! I'm trying to work the bugs out of everything right now, but it seems to be working good now. If anyone has any problems, please let me know! I'll update later in the week for everything else, I'm just trying to get everything back to normal for now.
wxWidgets and Python
So recently I've been playing with wxWidgets and Python. I've enjoyed it so far, but I've found one problem that I haven't really found a good solution for. When creating a window in Windows, the default background seems to be a rather dark gray. My theme for Windows is the windows classic, which shows all windows as a light grey color. The menu bar and the status bar of the application are the light grey desired, but the background of the application itself and any text label widgets I create are all dark gray. It makes no sense to me.
The solution I've found so far is to set the main window background to the color of the menubar background. This seems to make everything conform to the default light gray. Here's the code from my custom wx.Frame class:
self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_MENUBAR))
self.SetBackgroundStyle(wx.BG_STYLE_COLOUR)
This sets the frame's background to the correct expected color. I'm not sure if this is the way I should be going about things since I'm new to wxWidgets, so if anyone has any suggestions for me, please let me know! I'll post an update later this week when I get further along with my client. Right now I've taken a break from the SimpleIRC bot part of things and am creating a GUI interface for a client. Until next time!
SimpleIRC Updates
Well, it's been a little while since I've written about SimpleIRC, so it's time for an update. I've been getting a lot of work done on it during my spare time (which isn't much). I've fixed quite a few bugs in the main Core module and the Client code. I've also added some functionality pretty much everywhere, including some new modules. I still don't know when I'll have an offical release ready, but it's looking promising that it will be soon!
First major change I've made is moving all of the modules off the MySQLdb module and into using SQLAlchemy, which offers a vast variety of methods to interact with the database, as well as support for multiple database backends. The main feature I like about it is the fact that it enables you to create an object for each table and row in the database. It makes dealing with things a lot easier. I also redesigned the database to better support changes made and to add better functionality.
So far, I've got the following modules completely built and working;
- Eval
- Factoids
- Lart
- Seen
- Weather
The Core module is build, but not all the features are there yet. I'm also still working on how the handler methods work for commands, because I'd like to find a way to allow command access levels to be changed on the fly using the database, but still be specified if there is no record in the database. I'm also planning on adding functionality for users to enter their e-mail address for validation and password retreval purposes. I still have to work on the other modules annouced, but it's coming along very nicely so far.
I still have some bugs left to squash, and plenty of functionality in the client itself to implement, so if anyone would like to help as a tester or developer, please let me know. I'll update again soon as I get more accomplished and have more to talk about!
Vista and Google … network problems?
Alright, I admit. I like Vista. I'm a sucker for eye candy and Vista definately has that. I've got Vista installed on my laptop just to give it a test drive. I'm enjoying it so far, but there's one HUGE setback that's really bugging me. I can't reach certian google sites, like Gmail, Google Image Search, just to name a couple. I'm not saying it's only google, I've noticed the issue with CNN.com as well. It just seems very bizzare to me.
I've got a small network setup here at home with 4 computers. One is my server/router. It handles all requests in and out. I then have two desktop computers, one is mine and the other is my girlfriends. Both run Windows XP and I run Gentoo linux. Neither of us have any difficulty getting to any of the web sites mentioned. Now, on the laptop, I run Vista (used to run XP). When it ran XP, I could reach all of the google sites just fine, and CNN.com worked great as well as Gmail and Google Image Search. Now that I have Vista installed, I have random missing images on Google Image Search, and for Gmail, well, I can see the login screen (barely), but not my mailbox. CNN.com just completely hangs when I try to visit it.
I'm absolutely dumbfounded by this behavior. I've had Vista also on both desktops with the SAME issue. It's not just an incompatable NIC because I've tried several NICs through my process of trouble shooting. I've also tried differnet settings and configurations on my router. If anyone has any ideas, or possibly some way I could trace the connection problem down, please let me know!! I'm at my absolute witts end with this. I'm just looking for a way to even find where the connection is stopping... hopefully I can get this solved because I'm sure others out there are having similar issues too.
Edit - 12-11-2008: After doing some extensive testing on this, it really seems to be just an issue of drivers. With newer hardware and drivers, everything has been running fine Vista installs.
Gentoo stage1 install & ccache
Today I was trying to get Gentoo installed on my desktop from a stage1. I wanted the ccache feature enabled, but kept getting errors like the compiler couldn't create executables and such. I went and did a little digging in the Gentoo forums but ended up finding nothing. It then dawned on me what was wrong after retrying without ccache.
When you first emerge ccache, it automatically creates symlinks to itself for your CHOST setting. That means that in /usr/lib/ccache/bin I had i686-pc-linux-gnu-gcc symlinks to ccache. That's why compiles were failing, the compiler didn't exist on my system, but ccache was trying to use it like it did. The simple solution was to run:
ccache-config --remove-links i686-pc-linux-gnu
After using this, things were compiling again using ccache. I do want to note that after sys-devel/gcc emerges during bootstrapping, you'll loose ccache because it will now use the new i686-pc-linux-gnu-gcc compiler instead of ccache. All I did to fix this was pause my bootstrap using Ctrl+Z, then type the command
ccache-config --install-links i686-pc-linux-gnu
and then typed in %1 to resume the boostrap job I just paused. I can't prove that this made it use ccache again, but it eased my mind.
So, to sum it up, if you want ccache when compiling from a stage one, you must use
ccache-config --remove-links i686-pc-linux-gnu
first, then
ccache-config --install-links i686-pc-linux-gnu
after sys-devel/gcc has emerged to make sure ccache works with your new compiler. Hope that helps someone out there!