James RevilliniSay ‘no’ to styrofoam.

[SOLVED] Dreamweaver: Site-wide, design time style sheets using templates

Prerequisites:

  1. Every page of your site must be a PHP file, or some kind of server side language file.
  2. You must use Dreamweaver templates to make the design-time stylesheet automatically apply itself to the pages of your site.

This solution is not going to work for everyone because of the two prereqs above; sorry about that. But if you do meet those requirements, then your life just got a LOT easier.

It’s simple:

  1. Open your template.
  2. Switch to code view.
  3. Go to the <head> tag
  4. insert this code:
    <?php if (false) : //design time style sheet hack ?>
    <link href="../css/
    yui-2.4.1-dwcs3-design-time.css" rel="stylesheet" type="text/css">
    <!-- add as many DT stylesheets as you want in this area! -->
    <?php endif; ?>
  5. Save the template (and apply it to all the pages of your site).

Notes:

The linked stylesheet file is one I use to correct the rendering of a YUI Grids-based layout because natively, Dreamweaver renders it with the main .yui-b block taking only half of the space of the #bd element.

And a note to Adobe:

BUILD THIS FUCKING FEATURE INTO THE GODDAMNED SOFTWARE. (This is the first time I’ve ever sworn on the record on the Web. Sorry for offending non-Adobe employees.)

software

Killing me softly: Searchindexer.exe

Do you have a process that won’t die? Tired of searchindexer.exe calling you at home to harrass you for the rent? Do you have credit card debt?

Your solution is here! OK, what you want to do to prevent searchindexer.exe (searchprotocolhost.exe) from spawning every time some MS product loads, just follow these simple steps:

  1. Start > Run
  2. Enter ‘services.msc’ and hit Enter.
  3. Find ‘Windows Search’
  4. Punch the screen (just kidding)
  5. Double-click (on the Win Search item)
  6. Set ‘Start-up type’ to ‘Manual’.
  7. Click the ‘Stop’ button if it is enabled (because that means the service is running)
  8. Click the ‘Log On’ tab
  9. Select each hardware profile item on the list, one at a time, and click ‘Disable’ for each one.

That should stop it from running without hacking your system to bits. Now, I have to say that I have NO IDEA what this is going to do to the searchability of your MS products. I mean, if Outlook is firing it up, it must be indexing your e-mail with it or something, so who knows what effects it could have ultimately. But in the mean time, enjoy the CPU time you’ll save, which I believe translates to energy savings as well. It must, right?

If I’m wrong, educate me.

software

Linux Kernel 2.6.22-x and the Zonet ZEW2501 installation guide

I finally got the Zonet ZEW2501 USB Wifi dongle working with the 2.6.22 kernel in Ubuntu. It was quite a hassle. If you can, shop around for something which linux plugs ‘n’ plays with, rather than going through all this. But I would guess that if you found this post, it’s probably too late.

So on to the guide (I posted it on the ubuntu forums): http://ubuntuforums.org/showthread.php?p=3191237#post3191237

software

Mango Initial Release Draws Near

I’ve fixed most of the major bugs, and moved a few ideas I had to the next release wish list. As a final step, I must complete the help files. I plan to take care of that over the weekend and release a working copy within the next week.

software

Mango Bugs

Here’s the current bug list for Mango that I’ll be working on over the next week or two. After this list is complete, the initial release will go online. Nightly backups of data will be required just in case I miss something which causes the database to become corrupted.

registration
double what do i do? fixed
auto focus fixed
registration is stupid if it works fixed
after reg, auto login the user fixed

login
pressing enter is no work in form fixed
show me that i logged in fixed

logout
show me that i logged out fixed

general
New Document link should be removed
feature request: search next version
powered by link goes nowhere

pages
add spacing to title fixed

edit page
upload ten files, click save. expectation: files are added to revision. actually: files are saved to document, must be manually attached to revision. fixed
manually attaching files doesn’t seem to work fixed

all pages
it would be nice to allow chronological sorting as well next version

help
seek an anchor based on action (index/add/view) next version
pages that need help fixed

profile
redirect this page to the edit page. who the hell needs to see this? move the updated and joined dates over to the edit page as information. fixed

edit profile
remove roles from page if not admin fixed
double what do i do fixed
Submit button should say “Save” fixed
save should save, then go back to editing page with a message that things were saved fixed
feature request: add button for “pages i’ve edited” next version

administration
lock down to admin permissions fixed

new document
creating a new page (at least by going to the url) doesn’t seem to work fixed

software

March 2007 Mango Status Update

The Mango Initial Release is drawing near. I’ve resumed work on the project I was getting all fired up about last year – thanks to my wife – and it’s looking really good.

A few things about the plan have changed, however. First, I decided that for now, I’m just targeting me as an audience for this thing. Trying to program it in a way that would work for the whole world was stressing me out and slowing down development. My wife snapped me out of a funk one night when I was lamenting my predicament by asking, ‘Why don’t you just make it for you and don’t worry about selling it?’

It was the best advice I ever listened to – it made me remember why I started this. I suddenly knew the direction I wanted to go in. I got my spark back.

Thanks, Lovie.

This doesn’t mean that Mango is dead or anything. I’m still going to release it to the public under one of the open source licenses, but whether or not I try to turn it into a money making adventure remains a question that I’m not too concerned with right now. Right now I’m excited because I’ve got the following features in there now:

I still need to have a search feature, but I might leave that for the second realease. Mostly, I’m trying to concentrate on the most important part: making editing pages easy and fun. I need to run through things tomorrow and figure out what needs to be locked down better. I’m sure I’ve got security holes in it right now. once I plug those, I’ll put it online and start checking in new versions periodically as I reach stable milestones.

It feels really good to be working on this right now. My wife has been very supportive, which helps a lot. Almost every day I come home, put down my stuff, crack open the laptop, and start hammering away at it. I’ve even gotten the alias ‘Wiki-man’ recently.

software

Mango – a wiki for the rest of us

This weekend, I’m hoping to release a beta of a wiki system I’m developing called ‘Mango.’� My intention is to start off with some basic wiki functionality, get some testers, revise, then produce a version 1 release which will be available for free download on the web.

Ultimately, I would like to do a full product launch a month or two from now which includes a boxed version of this software.� The commercial, packaged version will include the Mango software, printed and digital user manual, and video tutorial cd-rom and/or dvd.

I will be hosting a live version of Mango at http://mango-demo.revillini.com.

I will also host my family wiki using Mango at http://family.revillini.com – this was the original intent of the software, even though it does not yet have any geneology-specific features at this time.

software web

‘no element found’ in firebug or firefox javascript console (part 2)

I was right. If the server sends a response and the ‘Content-Type’ attribute is ‘text/xml’, you must send at least a root node so the xml parser that is built into Mozilla’s XMLHTTPRequest object doesn’t cak and give you a ‘no element found’ Javascript error.

This could be an issue for those of us who are trying to do the REST thing and send back proper status codes depending on the request method and actions taken by the server. A 204 (Updated) or 205 (Deleted) response cannot, by definition, have any content body, so sending a root node is not an option to get around this error. The server needs to determine if the response is going to have an xml content body and assign the Content-Type on the fly.

software web

‘no element found’ in firebug or firefox javascript console

I think I figured it out. I think that the issue crops up if your server sends a response header of ‘Content-Type’ set to ‘text/xml’ and you send no content. The XMLHTTPRequest object then says ‘oh it’s xml? fine – i’ll just PARSE THIS and store it in the reponseXML property.’ At that point, the XML Parser probably bombs and nothing catches it. But anyway that’s just a hunch and I’m only blogging about it because I’m bored. I’ll have test results available later.

software web

A Bug in FireBug

Firebug 0.4.1 and 0.4.0 suffer from a very peculiar bug. If you create an object with a property called ‘-URL’, you can not use console.log to see the value of the property using the console.

Steps to reproduce:

In the console, type

x = {'-URL' : 'foo.pdf', '-Size' : 100};

Now type

x

Now press enter and click on the [Object object] item which shows up in the console. You will see the ‘-Size’ property, but not the ‘-URL’ property. Next, enter the following into the console and press Enter:

x['-URL']

You should now see “foo.pdf” get output to the console. So the value is in Javascript memory, but Firebug won’t show it to you. On a related note, you also cannot view methods of a custom object which are defined using the same means as described above … most of the time. Sometimes it works, so I can’t say for sure what the steps are to reproduce this behavior every time. Why am I blogging about this? Hopefully it will save some other Javascript developer a few hours. Credit goes to my friend, Matthew Metnetsky, for showing me the issue.

software web

<< Newer EntriesOlder Entries >>