This page throws a bit of light on the subject:
-
.verticallyCollapsed: removes vertical margins
-
@grid-float-breakpoint: override value to set the point at which the the navbars etc collapse for mobile
-
.container vs .container-fluid: .container sets a fixed width, .container-fluid uses full width that adapts to device width. Important: Bootstrap 3.0 does not have container-fluid, it is the default (but it does not work with row/cols because the container class is the one that sets the negative margin to compensate for the gutter of the last col). We have to use:
Configuring Nginx to serve SSL content is straight forward, once you have your certificate and key ready:
server {
listen 443 default ssl;
root /path/to/source;
server_name mydomain;
ssl_certificate /path/to/cert;
ssl_certificate_key /path/to/key;
def truncate_str(mstr, length): | |
if length > len(mstr) : return mstr | |
return mstr[:length].rpartition(' ')[0] + ' ...' |
<?php | |
/** | |
* read the configuration settings from the db | |
* | |
* see {@link http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details. | |
* | |
* @package initSystem | |
* @copyright Copyright 2003-2005 Zen Cart Development Team | |
* @copyright Portions Copyright 2003 osCommerce | |
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 |
SELECT * | |
FROM products_to_categories | |
WHERE categories_id | |
IN ( | |
SELECT categories_id | |
FROM categories | |
WHERE parent_id | |
IN ( |
path = 'images/' | |
imgDir = Dir.new(path) | |
imgs = imgDir.entries | |
imgs.each do |i| | |
if i=='.' or i=='..' then next end | |
newfile = i.gsub(/([^.]+\.[^.]+\.[^.]+)\.00.jpg/i, '\\1.jpg') | |
File.rename(path+i, path+newfile) | |
end |
SELECT AVG(o.order_total),COUNT(*) | |
FROM orders o, `orders_total` ot | |
WHERE o.orders_id=ot.orders_id AND | |
o.orders_status=3 AND | |
o.date_purchased BETWEEN '2010-4-01' AND '2010-4-31' |
SELECT * FROM orders o, `orders_total` ot | |
WHERE o.orders_id=ot.orders_id AND | |
o.orders_status=3 AND | |
ot.title='total:' |