I’ve noticed that my old post 960 Grid System vs Blueprint CSS is still getting quite a few hits so I thought I’d post an update about it.
Of the two, I now use… neither!
Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites. It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.
Just the other day I built a nice page in a matter of a few minutes using Bootstrap, from Twitter and it has me totally sold. If you need to throw something together quickly, then this is the way to go. Things I like about Bootstrap:
- Single css file to include which includes reset CSS (no need for multiple css files).
- Remotely hosted for quickstart. Bootstrap itself suggests to use <link rel=”stylesheet” href=”http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css”>
- Simple markup
- Customizable fixed or fluid layouts
- Typography that just works (check out the inline labels).
- Media markup (although I haven’t actually understood the purpose of it yet).
- Very nice Tables with support for tablesorter.
- Beautiful Forms with sexy buttons.
- Navigation/Tab/Breadcrumb/Pagination
- Sexy Alerts & Navigation
- … and a whole bunch of things you can do by adding small javascript snippets, such as modal dialogs, popovers, etc…
Definitely worth checking out if you are researching CSS frameworks and haven’t tried it yet!
Cyprus, as anybody who lives or has lived here knows too well, has a very poor public transport system. One of my biggest problems with it is the lack of information about the various services (timetables, routes, ticket prices, connections with other modes of transport etc…).
Recently various websites have been popping up from the various companies to try and help address these issues, but I’d rather they didn’t and would much prefer the internet to be rid of these unfriendly and practically unusable sites. They are a waste of cyber space and it angers me that somebody, somewhere, has been paid for them… not to mention they’re probably being sold some extremely expensive hosting too.

Larnaka has one such company, Zinon buses. Its website is built by a company called SK Webline Ltd who’s own website, to no surprise, is “not available online at the moment due to updates on it” in a design that a 2 year old could cough up in a few minutes. Why do people pay such companies to build them a website? Would you pay this company to build you a website?
Anyway, let’s take a look at this site…
Read more…
Copying and pasting lipsum text from a site such as lipsum.com can be boring and tedious at times, especially when you would like to test multiple blocks and how well they will look with text of varying length.
Getting random lipsum of varying length is pretty easy in PHP, in fact you can do it on just one line of code:
$lipsum = simplexml_load_file(‘http://www.lipsum.com/feed/xml?amount=1&what=paras&start=0′)->lipsum;
Need more than one random string? Turn it into a method:
function random_lipsum($amount = 1, $what = ‘paras’, $start = 0) {
return simplexml_load_file(“http://www.lipsum.com/feed/xml?amount=$amount&what=$what&start=$start”)->lipsum;
}
Where:
- $amount is… how much of $what you want.
- $what is either paras, words, bytes or lists.
- $start is whether or not to start the result with ‘Lorem ipsum dolor sit amet…‘
Today, and annually on the last Friday of July is sysadmin day.
A sysadmin unpacked the server for this website from its box, installed an operating system, patched it for security, made sure the power and air conditioning was working in the server room, monitored it for stability, set up the software, and kept backups in case anything went wrong. All to serve this webpage.
Head over to sysadminday.com for more.
I’ve spent the best part of half a day trying to figure out why themes were not working for me in CakePHP 2.0.0
The closest I got to a solution can be found over on stackoverflow.com.
Difference is that you need to set $this->viewClass to ‘Theme’ instead of $this->view, but there are 2 more unmentioned issues with the sample code provided as a solution:
public function beforeRender() {
if ($this->RequestHandler->isMobile()) {
$this->viewClass = 'Theme';
$this->theme = 'mobile';
}
}
The first is that RequestHandler has been replaced by request.
So you may use:
if ($this->request->isMobile()) {
or
if ($this->request->is('mobile')) {
The other is that despite you’ve named your theme ‘mobile’, CakePHP’s new CamelCasing behaviours will turn this into ‘Mobile’. Because of this, you need your theme’s files to be located in ‘app/View/Themed/Mobile‘, and not in ‘app/View/Themed/mobile‘.
Recent Comments