Thursday, May 26, 2011
Offline wordpress theme development - localhost map and virtualhostx
to setup mamp etc
http://bitbob.com/mac-web-development-made-easy
how to install wordpress for localhost
note, I didnt use the 8888 mentioned, and just altered the settings slightly till they worked to bring up the mamp page for installing dbs
http://jayrobinson.org/2009/08/10/setting-up-your-mac-for-local-development-using-coda-wordpress-mamp/
Tuesday, May 3, 2011
Sidewinder theme - new sideways scroll theme from graphpaper press
good for artist portfolio on the cheap.
also good because it incorportaes a blog template, apart from the gallery pages
and custom shortcodes, to make columns of text on content pages, so its really flexible...
i dont really like the thumbnails nav, id just make the scroll buttons bigger so people use them instead
Monday, February 14, 2011
Checklists for good HTML and efficient CSS
cascading reminder:
http://www.w3.org/TR/CSS21/propidx.html
Efficient CSS - for:
http://css-tricks.com/efficiently-rendering-css/
http://www.shauninman.com/archive/2008/05/05/css_qualified_selectors#comment_3942
Against:
http://clipperhouse.com/blog/post/Please-dont-write-efficient-CSS.aspx
GOOD HTML coding standards
http://css-tricks.com/examples/CleanCode/Beautiful-HTML.png
http://faq.programmerworld.net/web_publishing/a-web-standards-checklist.html
http://www.peachpit.com/articles/article.aspx?p=24011&seqNum=3
Also:
Use widths and heights for images
Friday, February 11, 2011
Video for the web - 2011 updates - HTML 5 video etc
-Nice easy export from the old Quciktime Pro 7 'Export for web' with iphone capable versions and a poster frame, and it makes some code for your site. Seems to work nice out of the box. Makes and m4v file...
Questions:
if iphone dosnt support flash, how come youtube works if that is flash video?? is it actually h.264 on the flash player, whcih iphone plays on quxiktime
http://www.apple.com/pr/library/2007/06/20youtube.html
To achieve higher video quality and longer battery life on mobile devices, YouTube has begun encoding their videos in the advanced H.264 format, and iPhone will be the first mobile device to use the H.264-encoded videos. Over 10,000 videos will be available on June 29, and YouTube will be adding more each week until their full catalog of videos is available in the H.264 format this fall.
ok so its not flv, its h.264... its flv on youtube desktop??
SKINS
A free QT skin that looks like JW player... free for non commercial use.
http://www.zenwebware.com/webware/zenqt-player/
HTML 5 Video!!!
http://en.wikipedia.org/wiki/HTML5_video
it dosnt seem ready
demos
http://www.html5video.org/demos/
!!! Definitive article on HTML5 and video formats for web 2011
http://diveintohtml5.org/video.html
Finally some instructions:
For maximum compatibility, here’s what your video workflow will look like:
1. Make one version that uses WebM (VP8 + Vorbis).
2. Make another version that uses H.264 baseline video and AAC “low complexity” audio in an MP4 container.
3. Make another version that uses Theora video and Vorbis audio in an Ogg container.
4. Link to all three video files from a single
Miro video encoder for all the latest formats:
http://www.mirovideoconverter.com/
go to the bottom of the above article for the full code to use for these formats, includes video tag and object tag for flash... yay!
Friday, February 4, 2011
Dummy images right size generator
http://dummyimage.com/
Sunday, January 30, 2011
TO do -write up a FAQ and make these assets for new web projects
or collect online tutorials into an FAQ page instead of making ones from scratch
Friday, December 10, 2010
Browser testing - new stuff
http://harrikauhanen.posterous.com/an-ultimate-guide-to-browser-testing
Good point, has testsuite of legacy browsers, modern browsers, and future browsers, for the latest beta of next browser version. Id only go so far for IE though, other just get better really.
Heres a nice list of browser specific hacks
http://paulirish.com/2009/browser-specific-css-hacks/
Heres where I found a standalone Safari 3.2 and safari 4 beta(?useful)
http://tripledoubleyou.subtlegradient.com/stuff/Standalone%20Safari/
sadly the 2.0 versions link not working anymore.
Couldnt install IE9 beta on the windows vista virtual image, maybe it needs to go on my windows 10 machine.
By the way - the newest Macbook Pro has Bootcamp - really simple way to boot into Windows on your mac, no extra vm hardware required...
Thursday, December 9, 2010
Drupal latest Zen theme css browser fixes for a sub theme
Not used nicemenus dropdowns this time, so thats probably saved some testing time.
Added into the zen themes 'html-reset.css' (v 1.6.2.2 2010/06/26) a few YUI2reset or Eric Meyer Reset styles, these were:
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
margin:0; /*YUI2Reset*/
padding:0; /*YUI2Reset*/
}
table {
border-spacing:0;/*EMReset*/
}
td {
text-align:left;/*EMReset*/
font-weight:normal;/*EMReset*/
}
caption {
text-align:left;/*EMReset*/
font-weight:normal;/*EMReset*/
}
acronym {
border:0; /*YUI2Reset*/
}
fieldset {
border: 0;/*YUI2Reset*/
}
address, cite, code, dfn, var { /*YUI2Reset*/
font-style:normal;
font-weight:normal;
}
Then here are some other fixes I added to html-reset.css:
#content th, #content thead th, #content tbody th, #content thead{
word-wrap:normal;/*For benefit of Opera (10), not giving table headers proper width automatically, figure theres rarely going to be a long unbroken url or something that needs breaking in a table header...*/
}
/*Fixes for squashed body text tables in safari and opera when occur after floated image*/
#content .section #content-area .node .content table {
clear:both;
}
And some to ie.css
legend {
color:#666666;/*IE makes it blue...*/
*margin-left:-9px; /*for IE7, Legend is indented otherwise, IE8 fine*/
}
And a zoom:1 to something containing floats
And for ie6.css
The usual double float margin bug fixes (display:inline) and transparency fixes, some zoom:1 for HasLayout, and this one I havn't come across before:
#block-menu-primary-links ul li a {
display:inline-block; /*List white space bug [5]*/
}
#block-menu-primary-links ul li a {
display:block; /*List white space bug [5]*/
}
In addition to zens pre setup print stylesheet I added these changes or additions
/* Un-float the content */
#content,
#content .section,
#content-area {
float: none;
width: 100%;
margin: 0 !important;
padding: 0 !important;
}
/* Otherwise, Firefox clips the content after the first page. */
#page-wrapper, #page, #main-wrapper, #main, #content, #content .section, #content-area, .node, .node .content
{
overflow-y: visible;
display: inline; /*Important for Ffox content clipping after first page, and makes content full width of page*/
*display: inline-block;/*Fixes text clipping on right side in IE6, IE7*/
}
Tuesday, December 7, 2010
Clearing Floats... modern methods and explanations
http://www.sitepoint.com/forums/showthread.php?t=567147&page=2
There is such confusion between 'clearing floats' and 'containing floats' and 'triggering HasLayout'. They are all called clear fixes but are different things really.
eg this comment from http://stackoverflow.com/questions/2467745/ie7-float-and-clear-on-the-same-element
That is for pushing down the bottom edge of a container to wholly contain its floated children, which is a different problem altogether.
Totally! So much focus on 'containing floats' methods.
I've come across a situation where I actually need a float to just clear the one before it for layout purposes, because IE7 cant handle float and clear on the same element, it's actually not a float containment/hasLayout problem, but a serious limitation as it just cant do this layout it seems, its a real bug, no type of clearfixing/HasLayout is helping. It dont care if the float parent contains the children or not, I just need it to clear!
See demo, it is situation #3:
http://www.brunildo.org/test/IEWfc3.html
I actually think I need to use an empty clearing element in the markup... the author of that demo says elsewhere that there is no solution.
Cant even use the :after pseudo class for this weird purpose since IE7 dosn't read that...
only solution that keeps coming up
http://stackoverflow.com/questions/2614566/ie7-and-ie8-float-clearing-without-adding-empty-elements
Other good resources on modern clearfix use:
Good post explaining block formatting context, more indepth use of clearfix and how it can cause more problems if your not thinking about it.
http://thinkvitamin.com/design/everything-you-know-about-clearfix-is-wrong/
This is an evolved clearfix hack, using a space instead of a period. (see comments for using a unicode space, and line height etc to make it even more invisible.
http://perishablepress.com/press/2009/12/06/new-clearfix-hack/
eg see the hack at the end for clearfix on the 960 grid css. uses a unicode space and zoom:1 for IEs. I prefer zoom:1, its simple, dosnt mess with overflow, and is clearly just for older IE, and goes just in IEs stylesheet. I like it since I always rememebr what its there for, whereas an overflow property might be there for a different reason and if you forget to comment it, you might not realise its a haslayout trigger.
http://960.gs/css/uncompressed/960.css
A nice roundup of IE6 specific fixes for HasLayout and a few specific things
http://www.onderhond.com/blog/work/ie6-core-bug-fixing
A JQuery plugin that shows you when your floats aren't cleared!!!! this is cool!
http://code.google.com/p/samaxesjs/wiki/CSSFloatPlugin
Monday, December 6, 2010
IE7 CSS float bug, Never put float and clear on same element
Nasty encounter with a bug that happens when float and clear is on the same element, which is floated in an opposite direction from a preceding float, nothing you can do will clear the preceding float, it seems, except adding an empty div or similar to clear, in between the 2... yuk...
Mental note: Never put float and clear on same element
I did, with the floats in opposite directions, and I got this bug, situation 3
http://www.brunildo.org/test/IEWfc3.html
So I restructured the PAGE TEMPLATE, so my elements could have the floats going in the same direction. But no dice, what I got then was this bug
http://www.brunildo.org/test/IEWfc.html
The culprit being that I still had float and clear on same element. IE7 just dosn't like this. The solution luckily for me, was to remove the clear:both from the 2nd last floated element. I realised I could do this by using firebug and checking out what I could do without, and low and behold, removing the clear didn't make any difference, because of the elements length, it was longer than the space available that I was trying to clear it from.
Thats not really a fix, but it works in this layout, it self clears because it simply wont fit alongside the previous floats, lucky me.
The only other option would have been to add an extra clearing wrapper and wrap the floats above in that, or put an empty clearer div preceding the floats I wanted cleared.
Friday, September 10, 2010
Things you can do with HTML but not XHTML
http://www.sitepoint.com/forums/showthread.php?t=393445
Create parts of the page dynamically with JavaScript while the document is still loading (e.g., using document.write()).
but in XHTML you get CDATA, which is handy...
read this when time... kinda wtf I thought XHTML was just better... maybe its just too late at night and I've forgotten.
more from that article...
Is XHTML supported by all browsers?
No. Only a few mainstream browsers support XHTML, like Opera, Firefox and Safari.
Most importantly, Internet Explorer does not support XHTML at all.
If you follow certain guidelines you can serve XHTML documents as text/html (see below). That means the document will be seen as HTML, which all browsers can handle. Virtually all browsers have a parser bug that ignores the slash in self-closing tags.
Should I use XHTML or HTML?
That depends on who you ask. There are a number of technical issues with this question, which preclude a simple and short answer. In reality, the latest W3C recommendation with widespread support is HTML 4.01. Unless you actually need any of the features that XHTML offers over HTML, there is no technical reason to use XHTML.
In order to actually benefit from using XHTML, you really need to understand the fundamental differences between XHTML and HTML. Such a site will only be available to a small minority of the surfing population, however.
Some web designers and developers prefer XHTML's syntax rules over HTML's. By following certain guidelines, you can use this syntax without technically using XHTML at all (see below). There are a number of potential pitfalls with this approach, but it is a possible way forward for those who absolutely want to type
instead of
.
Cool HTML coding quality checklist / reminder
http://sweatte.wordpress.com/usability/html-tips/
Thursday, September 2, 2010
css3 buttons
http://papermashup.com/pretty-css3-buttons/
Newer CSS3 browsers get rounded corners, text shadow and box shadow and gradient.
Non CSS3 capable browsers get a square coloured gradient button, which looks styled enough to suffice as a button.
I prefer not to have the gradient in CSS3 for two reasons
1/ I want non css3 browsers to get some love
2/ I want the button code to be adaptable to different coloured buttons easily, and simply use the background property for changing the button colour.
Uses a transparent .png for the gradient, which means it is adaptable for any colour button, AND can be seen in IE7, IE8, and IE6 with alpha image loader filter if you care.
see also:
http://www.zurb.com/article/266/super-awesome-buttons-with-css3-and-rgba
http://www.webdesignerwall.com/tutorials/css3-gradient-buttons/
http://somadesign.ca/2010/realistic-looking-css3-buttons/
http://www.smashingmagazine.com/2010/04/28/css3-solutions-for-internet-explorer/
http://blog.anomalyinnovations.com/2010/03/creating-a-realistic-looking-button-with-css3/
Drupal Zen theme IE fixes
Which makes me wonder if your site isn't listed in the blacklist MSFT keeps of sites that get IE7 mode forced onto them, and hence IE8 will continue to act up like IE7 does till you manage to get out of that list.
IE8 shows that list on this pseudo URL: res://iecompat.dll/iecompatdata.xml
Or if you managed to turn on the "display all sites in compatibility mode switch".
Brings us to establishing you do to have IE8 in that dreaded compatibility mode.
Thursday, May 6, 2010
cool site - paid forum for hep with wordpress and bounties
Interesting CSS split a UL into 3 equal columns and keep top heights aligned
Website Pre-lauch checklist
Sunday, May 2, 2010
random wordpress and seo links
All about Wordpress permissions and security
Directories should have, at most, permissions of 755. If you have a directory that is 777 then that can be written to.
Files should be, at most, 664. If you use the WP editor, you might need these files to be 666 but you really should revert them back to 664 after making any changes. You must never ever have ANY file at permissions greater than 666 unless you are directed specifically to do so.
777
Some hosts will only allow you to upload images (using WP) if the images folder is 777. That leaves your site at a certain level of risk. Email them and check what the minimum permissions are. Despite what they first say, this is NOT a WP issue - it's a security issue.
If your host insists that 777 is the only number, start looking for another host. 755 can be done by hosts (my directories are all 755) that take security seriously.
From here changing the table prefix to something obscure
http://semperfiwebdesign.com/documentation/wp-security-scan/change-wordpress-database-table-name-prefix/
For some people the database table name prefix changing functionality of WP Security Scan doesn’t work. In that case you may use the following instructions to change it manually.
1. backup your wordpress database to a sql file (you can use phpmyadmin)
2. open that *.sql file (make another copy first) using text editor, then find and replace all “wp_” prefix to “something_”.
3. now, drop all tables of your wordpress databases (don’t drop the database)
4. import the *.sql file which has been edited before into your wordpress databases.
5. and lastly, edit your wp-config.php file and change the $table_prefix = ‘wp_’; to $table_prefix = ‘something_’;
6. you may find that your plugins are deactivated automatically when this happens, so you’ll want to activate them again if that’s the case… I’d recommend deactivating them prior to doing this anyway as a precaution.