JK Web Studio is a small web design studio, specializing in efficient and user friendly solutions.

Contact us at info@jkwebstudio.com

Archive for the ‘web design’ Category

Responsive Web Design

Tuesday, May 25th, 2010

http://www.alistapart.com/articles/responsive-web-design/

IE9 and SVG?

Thursday, January 14th, 2010

Hopefully this means that IE will soon support SVG. Or even better, support canvas natively…

http://blogs.msdn.com/ie/archive/2010/01/05/microsoft-joins-w3c-svg-working-group.aspx

24 ways - web design and development articles and tutorials for advent

Tuesday, December 1st, 2009

It is that wonderful time of year again. Head over to 24ways.org for you daily dose of web design and development articles and tutorials.

Bookmarklet for easy switching between development and production web environments

Monday, November 30th, 2009

When I develop websites, I like to set up a development site on my local web server. I usually name it the same as the production site, but with a ‘local’ prefix. So if the production site is acme.com, my development site will be localacme.com.

I wrote a little bookmarklet for easy switching between the two sites. It checks to see if the new url starts with ‘http://local’. If it does, ‘local’ will be deleted from the url, if not, local will be inserted.

Here is the code for the bookmarklet:

javascript:(function(){u=location.href.replace(%22http://www.%22,%22http://%22);a=%22http://local%22;b=%22http://%22;l=(u.indexOf(a)==0)?u.replace(a,b):u=u.replace(b,a);location.href=l;})()

Changing ENUM values

Wednesday, September 30th, 2009

ALTER TABLE db.table_name CHANGE COLUMN old_column_name new_column_name ENUM(’first’,’second’,'third’) NOT NULL DEFAULT ‘first’;

Using Mason Methods

Wednesday, September 30th, 2009

<& SELF:my_method,
arg1 => $arg1,
arg2 => $arg2,
&>

WAMP Setup

Tuesday, July 7th, 2009

Download and install the WampServer software.

Open up your HOSTS file. A typical place to look for it is in C:\Windows\System32\drivers\etc. If you are using Vista, make sure to open the file as administrator. Add IP address followed by host name. Example:

127.0.0.1 localjkwebstudio.com

Save HOSTS file

Open httpd.conf. Add the following code:

NameVirtualHost *

<Directory “C:/path/to/document/root”>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory “C:/path/to/files/outside/root/”>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *>
DocumentRoot “C:\path\to\document\root”
ServerName localjkwebstudio.com
Alias /img/ C:/path/to/files/outside/root/
</VirtualHost>

Restart server

Testing Contribute

Thursday, February 26th, 2009

I’m testing Adobe Contribute C4 for this entry. I’m wondering how it will go.
So far so good. I was able to publish the entry, and now I’m editing it. Smooth sailing so far.

Microsoft’s Internet Strategy

Friday, February 1st, 2008

I’ve been following, but not commenting on, a few Microsoft developments lately. They have been pretty big from a web developer’s point of view. But today’s announcement may be the biggest of all, and could potentially affect the entire web as we know it. But let’s look at all the events in order:

IE8 passes the Acid 2 test

Great news for web developers and web users alike. According to the IE blog, the next version of the biggest browser will pass the Acid 2 test. For the non-web developers out there, here is what Microsoft writes:

Acid2 is one test of how modern browsers work with some specific features across several different web standards.

What is means is, that web development will be easier, and web browsing will be richer, and both will be more exciting.

New Version targeting in IE8

Microsoft is apparently introducing a new way of browser targeting in IE8. The main idea is that unless the web developer specifically states that a web page should be rendered as the newest, or any other specific IE version, it will be rendered as IE7.

To make the page render with the newest IE rendering engine, insert in your page header:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

To Make it render using a specific version, insert:

<meta http-equiv="X-UA-Compatible" content="IE=8" />

To make it render as IE7, do noting…

To me, and apparently many others, this seems a little strange. I think it would be much more logical to get rid of the ‘edge’ version, make newest version the default version if you don’t insert the tag, and let web developers insert the specific target if they desire.

As far as I understand, this is still a draft, and could change before IE8 ships.

Microsoft bids $44.6 billion for Yahoo

Microsoft is ready to purchase one of the biggest players on the web, Yahoo. Wow. I’m not sure how this is going to play out, but it’s big news, and it looks like a change in strategy from the folks in Redmond. Microsoft has always been about developing their own products, usually becoming industry giants in the process. However, this must be seen as a realization that in the search market, they can not compete with Google on their own. It will be very interesting to see how it plays out.

Kudos to Sectorlink

Friday, November 30th, 2007

I’ve been recommending Sectorlink as a reliable and friendly web host to all my clients for years now. Of course it doesn’t hurt that they’re also very price competitive…

It wasn’t until earlier this year, when I registered jkwebstudio.com, that I started using Sectorlink myself. I’ve been lucky enough to have an arrangement with a former employer about about hosting my other domains. But this time I signed up with Sectorlink, and I have been very happy so far. Especially the customer service is simply outstanding.

Just take my latest two issues.

A few weeks ago I started looking into using CGI for uploading files. My current solution uses PHP, but PHP has a built in limitation on file sizes that prevents anything larger than 2 MB uploads. I’d never written CGI scripts before, so I was having some beginner problems. I opened a technical support ticket with Sectorlink, and within hours they provided me with a working “Hello World” script to get me started down the CGI path.

Today I had another great experience with customer support. For some reason my php upload scripts did no longer work. I think this was caused by Sectorlink’s switch to no longer supporting PHP4, resulting in my account running in safe mode. After notifying Sectorlink about this, it took less than 20 mins for it to be resolved.

So I’ll keep recommending Sectorlink. They are fast and responsive, and in case you’re wondering, no, I’m not in any way affiliated with them.