Wed, 9 Jul 2003

9:34 PM - Midnight Web Server Update

I finished working on the webserver for tonight.. i spent almost the entire day on it. I have a logging system designed and half coded to replace the cheesy println stuff in there now. Right now it only logs the client ip, date/time (in java format), and the INTERNAL uri that the file was requested on. (another words the path to the files on the physical file system and not the virtual root).

The code i wrote tonight isn't quite right, but its a start. Basically I am trying to create an object factory to make loggers.. the idea is to support multiple logging formats in an OO style. Until recently, I didn't even know for sure what an object factory did (other than the obvious).

If anyone is following me so far, the reason I am going to so much trouble is the fact that I want to support a large number of websites eventually.. like say 500+. For 50 sites, it would make sense to have a seperate log going for each one.. by using the factory I can do this. Now 500, that would be plain stupid.. most large hosting companies create one long and then parse it to seperate the different customers. I will probably create a special class to log large sites eventually. Maybe i could even create a utility program with the distro to seperate them?

On another front, I want to create a class for the http headers.. the current system is fast, but very confusing... also I have to repeat code in a number of places.. its not OO at all.

I am thinking about creating an object cache in the server like Jigsaw has (well sort of). It caches documents in memory for the entire website.. my plan is to simply cache recent documents or documents that are frequently accessed (user configurable).

I also need to add CGI capabilities.

location: Home
mood: Accomplished

()

3:16 PM - Midnight Web Server (my webserver software)

I got a few new features working today on my webserver. First, I have enabled the ability to bind to a specific ip address instead of all of them on the box. I also cleaned up the formatting of the directory listings a bit. I'm about to test that now.

I also upgraded all the methods that were deprecated in earlier versions of java. The server is now designed for java 1.4.

location: Home
mood: Accomplished

()

Sun, 6 Jul 2003

11:20 AM - test public

testing public

location: Home
mood: Accepted

()

Sun, 29 Jun 2003

8:54 PM - JJ

Based on my last post I just had an idea.. when i get around to writing the windows client for this site.. i will use VB.net and setup a notification icon that changes to a flag or something like netscape used to do when a friend posts new entries. I can also allow quick posts. that would be kewl.

Wish I could do that on the mac...

location: Home
mood: Accomplished

()

8:45 PM - DOH

I just deleted my entry i was writing in IE.

I used a gui program in windows to draw a floor plan today for money.

I also commented on working on this website.

The interesting part was about a vb program I wrote in .NET. It retrieves orders from a database and prints them, with no visible forms.. only 2 icons in the taskbar (actually notification bar by clock). One shows the program is loaded and the other only displays when its retriving records or formatting them. The text updates for the icon.

I do all of it in memory without temp files using a string buffer that I put in a reader so the printer controls can treat it like a text file. I thought it was slick since I'm not a gui programmer.

Only drawback to the program is that it must stay in memory to print new orders.. and its 8mb in ram (it is a .net program)

It has an internal timer thats set for 30 minutes and I hacked it so it doesn't max out the cpu while its running.. I run an infinite while loop with a sleep 1000 statement... basically the thread sleeps every second in the loop. On my machine i see 3 percent spikes and on the clients (non debug mode) i see zero.

location: Home
mood: Accomplished

()

Sat, 28 Jun 2003

10:04 AM - CuteFTP Pro and CuteZip

I just took advantage of an upgrade offer for 10 bucks.. i upgraded cuteftp to cuteftp pro and got a free copy of cutezip. I uninstalled winzip after i found out cutezip supports rar and ace files.

I think that is the first utility windows software I have bought since I got my mac. (not counting norton a/v)

location: Home
mood: Awake

()

Tue, 24 Jun 2003

10:09 PM - The last few days

I have been so tired lately. I don't know why.. i will sleep for 10-11 hours and wake up exhausted.

I have been reviewing my MSDN subscription content lately. I've also been rather busy with work. I did take today off though.. partially by choice. SBC had an issue upgrading my DSL line today. I was down until 6pm. Now I have 1.5 mb download and an unknown upload rate... It isn't fast enough to be 256 but I think its supposed to be. It feels like 192 really.

I was on the phone all day with their technical support department until I could prove that it wasn't me. The last tech was very nice and finally escalated it.

I just noticed a rendering bug in safari. I will report it to apple but i doubt they will fix it. (1.0 was released yesterday)

Apple's new g5 chip means they make the fastest personal computers.. and they are 64 bit! Eat that AMD and intel.

location: Home
mood: Tired Tired

()

10:09 PM - My latest project...

In addition to Just Journal and my .NET charting component, I have just started another programming project.

My interest in .NET has faded a bit after administering a Windows web server again. Its not worth it.

On to my new project. It is a Web Server written in Java. I have been looking over source code for several months on Tomcat, Jigsaw, and Jetty. Some of it is way over my head, but I got some ideas. I had all but given up on the project, when I found some source on java.sun.com from 1997. It is a VERY basic web server consisting of 2 classes and one interface. Based on this code, I decided to try my hand at a webserver. Everyone who knows me well should know i've always wanted to write a web browser. My recent reading has suggested that a web server is simplier.. so i decided to go for it.

Many of you probably think i'm nuts. How can luke write a web server?

Well remember, I started wtih working code. After making a few changes including converting the code to seperate files in a package, and tweaking the output a bit along with some subtle improvements to get rid of deprecated functions, i now have the webserver spitting out 1.8 pages per second. I ran a Microsoft stress test on a static file and received those results. It is a threaded server with 5 worker threads. I think i can get more out of it by increasing threads by a few and streamlining the Worker class a bit. I want to change the way it handles files.. for one i think the headers should be generated in a seperate method..

the current model does this...

start server.. binds to port.
reads config file (terrible setup now)
starts some worker threads in a for loop
listens for requests

Then each worker thread handling a request does the following...

tries to access file on file system....
spits out a bad header after reviewing a hash map of the possible content types (is the file a png, html, etc)

I added several content types to the file as well. xml and png were among them.

The server spits out the bytes to the client.

That is about it.

I will continue to work on JJ though.

location: Home
mood: Tired Tired

()

Sun, 22 Jun 2003

10:24 AM - RTCW: ET

I've been play ET so much that my hand is starting to hurt when i use home row on the keyboard. asdf are essential keys during my play time. After two games I feel like i'm going to lose my hand.

location: Home
mood: Awake

()

10:19 AM - Security feature partially working

I finally got the backend setup for the new security system.. very similar to live journal.. you have public private and friends. I do not allow custom groups at this time. That would really complicate things.

The friends pages are almost working too. Actually it does work, just not for anyone but me. I have the code ready except for the administration part. End users can't add or delete friends yet. Basically I have to write two servlets to do it. The preferences interface was added yesterday.. i plan on getting it done aside from the posting servlets and then adding them later (other than friends which are a priority).

location: Home
mood: Accomplished

()

Sat, 21 Jun 2003

2:09 PM - kewl mysql admin app

I just found the best Mysql admin program ever... its even better than php my admin.

Its called mysql 4x manager and its a Mac OS X exclusive app. I love it. I think I will buy a copy when I can.. its only 50 bucks. They have another product that works with ms sql, oracle, sybase and db2 as well.

It took me a minute to set it up where i could use it. See I don't allow connections to my database from the outside (only loopback) for security reasons. I got clever and setup a SSH tunnel to my server bound to the loopback on that end and this end. Worked like a charm.. plus everything I do is encrypted that way. If i could get the tunnel to stay up without timing out, i would do that for email also. I'd love it for ftp too. Come to think of it.. i should be able to do it for ftp . I think I tried once and had trouble with the data returning.. i'll think about it some more.

Oh and in case anyone is wondering I am working on JustJournal.com this weekend. I plan on having the friends system and basic preferences up by next weekend at the latest. Then I will work on comments and private entries.

location: Home
mood: Anxious

()

8:58 AM - jj

I just finished fixing a few bugs. I have the friends viewer working, just trying to figure out how to let users access it and add friends.

For an example,
http://www.justjournal.com/users/laffer1/friends

location: Home
mood: Accomplished

()

Thu, 19 Jun 2003

6:50 PM - PowerMac is better!

http://developer.apple.com/hardware/ve/acgresearch.html

Note the kewl document showing intel chip slower than dirt. :)

location: Home
mood: Amused

()

Wed, 18 Jun 2003

7:08 PM - Music Purchases and other stuff

I bought some train and fleetwood mac tracks on the apple music store. Very kewl.

I've been listening to 0304 quite a bit. Its almost as neat as Pieces of You. I like it better than spirit.

I have been working a lot... i setup a Windows 2000 server for work. Its got iMail, SQL and IIS on it. Damn Imail. I picked it because rob used to have good luck with it. I think I like sendmail better. It is good for a windows solution though.. i am using the free version... 1 domain limit.

Someone impersonated the Microsoft security contact and sent everyone a fake email from mexico. I forwarded it to the microsoft guy.. mike howard.. he replied and said "funny you should mention it, i got a copy too!" I found that rather funny.

I just renewed my adsl contract with SBC. They are upgrading my bandwidth to 1.5mb downstream on the 25th.

I toasted my freebsd install on my compaq. I tried to upgrade to 5.0 release from 4.8 stable. Big mistake.. it fucked the file system.. including getty... (tty as in terminal). I am downloading 5.1 release isos right now.

I guess I can't upgrade my freebsd server remotely then. That sucks. No security problems with 4.8 release right now, but still.

location: Home
mood: Amused
music: John Denver - Take me home, country roads

()

Fri, 13 Jun 2003

11:18 PM - FoolishGames.com

I just did some changes on foolishgames.com. Anyone who visits my site regularly will notice some of them right away. :)

JustJournal looks ugly to me now... i'll do something about that soon too I hope.

location: Home
mood: Tired Tired
music: Live - Selling the drama

()

Thu, 12 Jun 2003

4:11 PM - Jewel JK

I just subscribed to the jewel unedited content. Hopefully I will like it since I paid for a year. :)

I really like the new album though.

location: Home
mood: Accomplished

()

4:11 PM - Feeling a little less like shit

I feel a bit better today.. i actually got some work done on jj. I fixed a bunch of css bugs.. (although old builds of mozilla screw up). Specifically, i've noticed problems in gnone with mozilla 1.21 (redhat 9).

I fixed a few bugs today with jj.. the webError and users classes have been rewritten to use StringBuffer's. I'm hoping to output errors without the page being present with this design. This code is not live yet though.

I also fixed a few minor rendering problems.

The spell checking class is working internally, just trying to figure out how to embed it in the site. update.jsp handles the initial request and i'm trying to decide if i want another jsp page, update.jsp or the update servlet to handle the display of the spelling errors.

The english language file is rather large too. I'll try to add other languages eventually.. but the site needs i18n first.

I'll need to convert to UTF8 in mysql to pull that off. (newer feature of mysql)

I'll wait until mysql 4.1.x is more stable to do that though.

location: Home

()

4:11 PM - Jewel JK

I feel a bit better today.. i actually got some work done on jj. I fixed a bunch of css bugs.. (although old builds of mozilla screw up). Specifically, i've noticed problems in gnone with mozilla 1.21 (redhat 9).

I fixed a few bugs today with jj.. the webError and users classes have been rewritten to use StringBuffer's. I'm hoping to output errors without the page being present with this design. This code is not live yet though.

I also fixed a few minor rendering problems.

The spell checking class is working internally, just trying to figure out how to embed it in the site. update.jsp handles the initial request and i'm trying to decide if i want another jsp page, update.jsp or the update servlet to handle the display of the spelling errors.

The english language file is rather large too. I'll try to add other languages eventually.. but the site needs i18n first.

I'll need to convert to UTF8 in mysql to pull that off. (newer feature of mysql)

I'll wait until mysql 4.1.x is more stable to do that though.

()

Wed, 11 Jun 2003

9:51 PM - :)

I'm working on a win 2k server right now. Hopefully I can get it ready over the next few days. Its been a few years since I administered a windows server. The last one was for Rob. Ironically, I have a similar setup on this one. Imail Express, SQL, MS DNS, and IIS are installed. I plan on running secondary dns on my freebsd server for this box. Its not my server though.

I am happy with freebsd for the time being. I do wish java 1.4 was finished and another webserver product was available that I liked. Apache 2 is nice, but I don't like the fact that everything is modular.. i think it should have some scripting language builtin.. for administration purposes and performance... i have mine so hacked up with php, perl and java crap its not funny. I almost like the Sun One webserver, but the only affordable way to get that is to buy a Sun fire v100 or v120 server. I was rather disappointed when i found out that jetty uses the tomcat engine anyway.. it defeated the purpose of using it for me. Jigsaw looks promising but its a pain to configure. Tomcat does not have enough features to run standalone.. i've thought about it seriously though. If I get over my problems understanding java.. maybe i can write my own webserver someday. That would be great! My first objective for the time being is to either use tapestry or use some of the code in tapestry or write code to deal with the servlet api in a nicer manner. I hate it. Session state is DUMB. My problem is with integer data types.. i wish i could take a java class or somethng.. dont have the money.

JustJournal is working, but it is infantile compared to my .NET code or even my vb 6 code.

location: Home
mood: Tired Tired
music: Serve the Ego - Jewel - Remix

()