« January 2004 | Main | March 2004 »
February 29, 2004
Oops my fault
Brian pointed out that I was working with a really old version of diskdev_cmds, and that the latest version was something like 277 not 208 like I had used. Oops. A bunch of effort put forth for no reason whatsoever, goes to show I need to learn CVS a lot better apparently. Thankfully he's now made the system rather self-contained so that all of you may now build and abuse your system such as we do.
We spent a good couple of hours tracking down a mysterious compile error that turned out to be a result of GCC's -traditional-cpp flag changing between versions 3.1 and 3.3. The two line warning in the GCC man page didn't really do justice to the amount of headaches this change caused. Future changes such as this should REALLY stop the compiler with a big:
"HEY NUMBNUTS, WE CHANGED OPTION XYZ TO WORK DIFFERENTLY. USE THIS WITH CAUTION. Use a -understood to skip this message"
Or something similiar. Also corrected a few other issues, like library search paths being from Brian's setup rather than a relative setup. The whole ordeal made me realize just how not at home I feel using XCode. I miss my VIM interface and simple makefile junk. All these windows and split screens really confuse me. As does the fact that XCode's Find function will default to whatever your last Safari Google search was... ugh.
Rock on Chicago!
Posted by Dan at 10:03 PM | Comments (1)
February 28, 2004
ext2fs for OSX
After realizing I didn't have the proper build environment on my machine to compile ext2fs for OSX, I shot an email off to Brian about it. He was quick to respond and set me sort of straight... well, as straight as one could be set given the following circumstances.
It seems that the disklib library (found in the diskdev_cmds project) needed for mounting and unmounting of things is a bit out of whack, or I've forgotten how source control works again. Anyways, to get version 208 of the code to work, let alone compile, the patch in the extended portion of this entry will be needed. Mind you I called the original files blah.orig where blah is to be replaced by the properly named file. Really it seems that disk.h was moved, and someone forgot to update the project. I make no promises that my hack is usable or stable for anyone or anything, user be wary.
ext2fs though does not seem to like compiling, and I'm not sure what the best answer is. Upon opening the project in Xcode, any build fails because of missing header files. Those missing header files are dynamically generated though by the e2fsprogsbuild.sh script, which currently seems to die at the end. Looks like a bunch of time will need to be spent getting this to compile status on Panther yet.
--- dkdisklabel.orig Sat Feb 28 17:15:27 2004
+++ dkdisklabel.c Sat Feb 28 17:19:15 2004
@@ -14,6 +14,7 @@
#include
#include
#include
+#include
#include
#include
@@ -23,13 +24,13 @@
#define NLABELS 4
///m:temp:added:stop::workaround:awaiting-disk_label-deprecation-from-"disk.h"
#ifndef linux
-#include
+#include
#else
#include
#ifdef __powerpc__
#define __ppc__
#endif
-#define DKIOCNUMBLKS BLKGETSIZE
+#define DKIOCGETBLOCKCOUNT BLKGETSIZE
#endif
#include
@@ -90,7 +91,7 @@
int numblks;
/* obtain the size of the media (in blocks) */
- if ( (error = ioctl(fd, DKIOCNUMBLKS, &numblks)) < 0 )
+ if ( (error = ioctl(fd, DKIOCGETBLOCKCOUNT, &numblks)) < 0 )
return(error);
#ifdef linux
@@ -98,7 +99,7 @@
blksize = DEV_BSIZE;
#else
/* obtain the block size of the media */
- if ( (error = ioctl(fd, DKIOCBLKSIZE, &blksize)) < 0 )
+ if ( (error = ioctl(fd, DKIOCGETBLOCKSIZE, &blksize)) < 0 )
return(error);
#endif
--- dksecsize.orig Sat Feb 28 17:22:18 2004
+++ dksecsize.c Sat Feb 28 17:14:19 2004
@@ -38,7 +38,8 @@
#include
#include
-#include
+#include
+#include
#include
#include
#include
@@ -63,7 +64,7 @@
else
return (0);
- if (ioctl(fd, DKIOCTBLKSIZE, &devblklen) < 0) {
+ if (ioctl(fd, DKIOCGETBLOCKSIZE, &devblklen) < 0) {
(void)close(fd);
return (0);
}
--- ufslabel.orig Sat Feb 28 17:19:27 2004
+++ ufslabel.c Sat Feb 28 17:20:00 2004
@@ -17,7 +17,7 @@
#include
#include
#ifndef linux
-#include
+#include
#endif
#include
#include
@@ -184,8 +184,8 @@
*label_p = NULL;
#ifndef linux
- if (ioctl(fd, DKIOCBLKSIZE, &blocksize) < 0) {
- fprintf(stderr, "DKIOCBLKSIZE failed, %s\n", strerror(errno));
+ if (ioctl(fd, DKIOCGETBLOCKSIZE, &blocksize) < 0) {
+ fprintf(stderr, "DKIOCGETBLOCKSIZE failed, %s\n", strerror(errno));
return (NULL);
}
#else
Posted by Dan at 08:16 PM | Comments (0) | TrackBack
February 26, 2004
ecto vs KungLog
Having been reluctant to upgrade from Kung-Log to the latest and greatest replacement for it (ecto), I've finally begun to use it a bit.
Things I like:
The interface has been thought out a bit better. It looks cleaner, is easier to deal with a few tasks, and overall is consistent with the themes of the operating system.
It's now much more intuitive to select multiple Categories for a posting, something I've mentioned to Adrian as a bug in the past (he quickly corrected me on this).
Trackback additions are easier to manipulate and control.
Things I don't like:
Why oh why do I constantly have to add a summary to a post? I don't like to use summaries, and frankly, I don't care for them. From what I've found so far, it's possible to turn this off, but why would should it be turned on a default option? If a summary is to be a default option, it should clearly be found on the main screen of operation, not via a button to another page on the screen.
I'm not entirely sure I agree with having the Entries and Drafts section become a window of it's own. I haven't used it enough yet to decide if it's better as a standalone window, or if it should have been integrated with the main screen.
The HTML option seems almost usable now, but I still find myself hand typing in the HTML code vs using the HTML drop down menu.
One feature I would like to see incorporated is the ability to delete and alter comments to a posting via ecto.
Posted by Dan at 11:30 AM | Comments (0)
Off-shore Outsourcing
I've been a follower of Declan McCullagh's PolitechBot for a few years now. While I don't always agree with or care to read much of what comes over the mailing list, the occasional gem that arrives is usually enough to make up for the past couple weeks of non-interesting articles. Recently an article was sent across with select quotes from Alan Greenspan with regards to the current trend of off shore outsourcing. After I read the article, I was actually surprised to find some well written and thought out responses to the original Greenspan article. Mind you I said some of these, not all the articles are well written non-emotional responses. All worth the time to read if you're at all interested in the attitudes of the US administration and what seem to be the general opinions of a technologically skilled public.
Personally, I'm still waiting to for the C-level positions to be out-sourced. The reality is that while a CEO might believe (s)he's invaluable to the company, the truth is (s)he is not. Oh, and I'm sure their job can be done cheaper not just overseas but also within country.
Posted by Dan at 11:14 AM | Comments (0)
February 25, 2004
Moron Web Surfers
To the dismay of many, yes I am still alive. This is just going to be a short and sweet little post to deal with something I can't stand any further. To the moron web surfers, who seem to collectively come from AOL, who cannot figure out how to use Google properly, fuck you too.
If you're looking for the god awful script to that horrible movie Grease, it's not here.
If you're looking for some of the Grease music, it's NOT HERE.
If you wish to learn how to stop being such a fuckup, and want to use Google right, go here. Quit blaming me for your inability to use a search tool, or more importantly your inability to read the search results.
What I would like is for Google to all meta tags to define what your page does NOT have.
Posted by Dan at 09:08 AM | Comments (0)
February 06, 2004
Where'd you go?
I was recently sent a few emails asking where my regularly schedule postings have gone. Two real answers to this, both of which kind of suck. The most important of which is my trust Titanium Powerbook is no longer in my hands. Apple currently has it and is considering if it is worthy of an upgrade/trade-in under their temporary policy for first generation TiBook owners (thats me). I miss having KungLog (now ecto) to write my posts.
Second is there hasn't been terribly much of interest to post about recently. I've been busy with the job hunt, cleaning up random bits of previous projects, and trying to keep some form of incoming happening while I'm non-salaried.
Posted by Dan at 11:12 AM | Comments (0)
Blog roll additions
Looks like yet another member has joined the blogging community. Brian Bergstrand has started up a blog. For those of you unfamiliar with the name, he is the primary author of the OSX ext2 KEXT, and a large amount of other OS X utilities (commercial not free). I'm subscribed...
Posted by Dan at 11:02 AM | Comments (0)
February 02, 2004
Your Own Company?
Via Marko, Microsoft has a rather interesting web page setup for those of you considering starting your own company. Fun read.
Posted by Dan at 02:28 PM | Comments (0)