Archive for the ‘Web Design’ Category

How To Ask a Good Question and How To Be a Good Student

When I started the blog, I made a promise to myself that I was going to avoid becoming one of those bloggers who spent all day simply posting links to other sites and blogs. However, sometimes it’s just plain necessary.

First off, I’d like everyone to read How To Ask Questions the Smart Way. Yes, it’s kind of long, but please, take a few minutes and read it. As many of you know, I spend a lot of my time moderating and responding to posts on several Yahoo groups, and not a day goes by that someone doesn’t violate a few of the simple guidelines presented on that page. Routinely, people post questions that are way off topic, or have bad and/or meaningless subject lines, or are so non-specific or so poorly worded that they are meaningless.

I should note that I’m not posting this because somehow I think it will make things easier for me. The vast majority of the time, if a question is really badly written or way off topic, I’ll simply ignore it. So really, having people read the article and start asking better questions would most likely end up in more work for me, not less. But the point here isn’t me. The point is that if you learn to ask better questions, you’re much more likely to get better answers more quickly.

Second, one of the blogs I read daily is Scott Kelby’s. Kelby runs the National Association of Photoshop Professionals and is the best-selling computer book author out there. In fact, I will, without reservation, recommend any book he’s written.

Several months ago, he had a great post on how to be a good student. This is very similar to the “good question” thing above, and again, I post it for the same reason. Obviously, having good students is something near and dear to my heart, and I wish I could hand out a print-out of this article and make everyone read it before class each day, but in lieu of that, I’ll just post it here and hope everyone reads it…

Creating a Paginated Photo Album in PHP

A recent question on the Yahoo! Dreamweaver group asked about creating a photo album using PHP. In particular, the member who posted the question wanted the ability to add navigation to the bottom of the page reading something like "Page 1 of 75", "Page 2 of 75", "Page 3 of 75. "

The member mentioned that he had tried using PHP for this, but had not been successful. He didn’t say why the original PHP solution didn’t work, but a server-side language is definitely the solution here. While many of you know that PHP isn’t really my language of choice, since the original question specifically mentioned PHP I’m going to give the answer in that language.

Step 1: The Database

First off, we need a database. I know, the mere mention of "database" is enough to send many folks screaming from the room, but bear with me. This is the simplest database you’re ever going to need to create. Again, because we’re talking PHP here, we’ll go with MySQL – although in this case I’ll have to admit I’d use MySQL even if I was using some other language instead. All you need in this case is a single table, which to be really creative we’ll call "Photos" for the sake of this tutorial. The table needs to only contain two fields: a primary key of some kind and a field to hold the path to the image. (If you don’t know what a primary key is, click the link on the word in the last sentence. Or just trust me that you need it and don’t worry about what it really is. Either way works.) Let’s call them photoID and photoPath.

If you’re completely new to databases and I’ve already lost you, don’t worry. All you need to do is log onto your web hosting account and rummage around until you find the utility that they’ve provided to allow you to administer your database. When you open that up, there’s a 99.999% chance that they’re using something called phpMyAdmin, which for reasons I can’t fathom a lot of people love. In there, click the link to "Databases", and you’ll see a link to "Create New Database." Click it. (This would, admitedly, be a lot easier if the people who designed phpMyAdmin had ever taken usability or design into account for even a second. I should mention in the interest of fairness that there are many other, better, easier to use admin tools for MySQL, but that’s a much longer topic than I’m willing to get into here.) Give your database a name, something like "PhotoDB". Once it’s created, the page (should) refresh and you (should) see the new database over on the left side of the screen, in that hideous greyish-blue bar. Click the database, and you’ll see a text field to create a new table. Type a name (try "Photos". Honest – try it. You’ll love it.), say you want 2 fields, and then click Go. (It’s way the hell over on the other side of the screen, instead of being anywhere that might make sense.) In the first column, type the name of the first field (photoID). Set the data type to INT. (It means integer, but you don’t have to actually worry about that.) Ignore the next few oh-so-confusing choices, and click the drop-down box next to "Extra", from which you’ll select auto_increment. In the second column, type a name (photoPath), and just leave the rest of the fields as-is. Once again, hunt around on the screen for the well-hidden "Go" button (again, way to the right), click it, and you’re done. That wasn’t so bad, was it?

Oh, in all of the steps above, when you’re naming things like tables and fields, don’t use spaces.

CS4 trials now available

The trial versions of the CS4 products are now available for download from Adobe’s web site. To get them, simply go to www.adobe.com/products/name_of_the_product_you_want; for example, Dreamweaver is at www.adobe.com/products/dreamweaver. As always, you’ll need to log in with your Adobe.com username and password.

CS4 Now Shipping

Adobe announced that the CS4 products are now shipping, so get your copy today!

CS4

This morning, Adobe officially announced the CS4 product line. There’s a ton of information online about it, but I’m going to try to coalesce the most important bits here.

First off, the actual editions. Just as with CS3, there are six packages of CS4 you can get: Design Premium & Standard, Web Premium & Standard, Production Premium, and Master Collection. Design Premium (the one that I suspect the majority of folks will want) includes InDesign, Photoshop Extended, Illustrator, Flash, Dreamweaver, Fireworks, and Acrobat 9. The Standard edition includes only the regular version of Photoshop, InDesign, Illustrator, and Acrobat. Web Premium contains the new versions of Photoshop Extended, Illustrator, Acrobat 9, Flash, Dreamweaver, Fireworks, Contribute, and (in a change from CS3) Soundbooth. Web Standard is basically the old Macromedia suite: Dreamweaver, Flash, Fireworks and Contribute. Production Premium has Photoshop Extended, Illustrator, Flash, After Effects, Premiere, Soundbooth, OnLocation, and Encore. And the Master Collection has everything. All of the suites also include Bridge and Device Central, and all except the Production Premium include Version Cue.

Pricing seems similar to CS3: Design Premium is $1,799, Web Premium and Production Premium are $1,699 each, and Master Collection is $2,499. (All of the above are US prices. Yes, overseas prices are higher. No, I don’t want to get into why.) Adobe is introducing a new two-tier upgrade policy, whereby it will be cheaper to upgrade from CS3 than from older versions. Also, they have a three-versions-back policy, so if you have Illustrator CS, CS2, or CS3 you can upgrade, but if yours is older than that, you can’t. You can upgrade from your Mac edition to a Windows edition if you’ve switched since your last purchase and you can switch to another language if you need to. You can upgrade to Dreamweaver CS4 from GoLive, Illustrator from Freehand, and InDesign from PageMaker. And yes, the educational pricing is still available. Oh, and yes, there is a policy in place that will provide a free upgrade to CS4 if you have recently purchased CS3, but unfortunately the page that details that policy doesn’t state the exact date after which you have to have purchase CS3 in order to qualify. I’m trying to get that date from my Adobe contacts and will post a note here when I do.

As for details of the new features … they are for the most part huge. Over the next few months, I will be doing a series of demos and user group meetings and possibly even video trainings of what’s new in the products about which I’m most familiar (Dreamweaver, Flash and Photoshop will be first up), so stay tuned. You can of course visit the individual product pages (simply go to www.adobe.com/go/product_name) to see a list of some of the key features.

And then the last question I know everyone has: when can you get your hands on these? Adobe is mum as to an exact release date – all they are saying now is “mid-October.” And trail versions should be out about a month later, so around mid-November.