Rails 3.0 introduced support for routing constrained by subdomains.
A subdomain can be specified explicitly, like this:
match '/' => 'home#index', :constraints => { :subdomain => 'www' }
#!/bin/bash | |
# First things first, update system | |
echo "Updating system and installing new packages" | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install basic dependencies and utilities | |
echo "Install utilities" | |
sudo apt-get -y install rar unrar zip unzip |
<?php | |
// WordPress stores the site URL in the database by default (which I have never | |
// understood), and it's a pain to have to type out the UPDATE SQL or search in | |
// phpMyAdmin to change it. This is a simple way to put the URL into | |
// wp-config.php instead. | |
// Note that you will still need to update any URLs that appear in the content, | |
// especially when you copy a database from a development site to production: | |
// https://gist.github.com/davejamesmiller/a8733a3fbb17e0ff0fb5 |
#!/bin/bash -xe | |
function byPosition () { | |
echo "Variable in position 1: $1" | |
echo "Variable in position 2: $2" | |
} | |
byPosition hola mundo |
Web fonts are pretty much all the rage. Using a CDN for font libraries, like TypeKit or Google Fonts, will be a great solution for many projects. For others, this is not an option. Especially when you are creating a custom icon library for your project.
Rails and the asset pipeline are great tools, but Rails has yet to get caught up in the custom web font craze.
As with all things Rails, there is more then one way to skin this cat. There is the recommended way, and then there are the other ways.
Here I will show how to update your Rails project so that you can use the asset pipeline appropriately and resource your files using the common Rails convention.
UPDATE wp_options | |
SET option_value = 'http://yourdomain.com/' | |
WHERE option_name = 'siteurl'; | |
UPDATE wp_options | |
SET option_value = 'http://yourdomain.com/' | |
WHERE option_name = 'home'; | |
/* Más información: | |
https://otroespacioblog.wordpress.com/2014/12/10/la-solucion-definitiva-al-error-de-las-cookies-en-wordpress |
<?php | |
//CONEXION A LA BASE DE DATOS | |
$username = "root"; | |
$password = "root"; | |
$hostname = "localhost"; | |
$link = mysql_connect($hostname, $username, $password); | |
if (!$link) { | |
die('Could not connect: ' . mysql_error()); | |
} |
# Change these | |
set :repo_url, '[ENTER YOUR GIT REPO URL HERE]' | |
set :user, 'macsa' | |
set :branch, 'test' | |
set :application, 'staging' | |
set :puma_threads, [4, 16] | |
set :puma_workers, 0 |
import Component from '@glimmer/component'; | |
import { action } from '@ember/object'; | |
import { tracked } from '@glimmer/tracking'; | |
import { inject as service } from '@ember/service'; | |
import * as Video from 'twilio-video/dist/twilio-video'; | |
import { attachTracks } from "../utils/intrati-twilio"; | |
export default class CreateRoomComponent extends Component { |