This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# I recently had to install MySQL 5.6 on Ubuntu 12.04 from a .deb package on the MySQL website. It seems that either the package has been updated recently or nobody uses this method to install so I ended up running into endless problems. Through trial and error I found the following method works for me. | |
#Install libaio-dev: | |
sudo apt-get install libaio-dev | |
wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.12-debian6.0-x86_64.deb/from/http://cdn.mysql.com/ -O mysql-server.deb | |
#Now install your package(mine was enterprise edition, community may have a different filename): | |
sudo dpkg -i mysql-server.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~ | |
# Install JDK | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
# Install & Start ES 0.90.1 | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.1.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- First, you could copy the file located under /{SiteID}/includes/display_objects/dsp_search_results.cfm | |
and then paste it under either /{SiteID}/includes/display_objects/custom/dsp_search_results.cfm | |
OR under /{SiteID}/includes/themes/{ThemeName}/display_objects/dsp_search_results.cfm | |
and then change the line of code that sets the variables.rsNewSearch to this ---> | |
<cfset variables.rsNewSearch = variables.$.getContentRenderer().getCustomSearch()> | |
<!--- Then, place this in your Site's contentRenderer.cfc ---> | |
<cffunction name="getCustomSearch"> | |
<cfscript> | |
var local = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
formName = 'Information Request'; | |
rsData = QueryNew(''); | |
dcm = $.getBean('dataCollectionManager'); | |
</cfscript> | |
<cfoutput> | |
<cfif !Len($.event('responseid'))> | |
<!--- All Form Submission Results ---> | |
<cfscript> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// drop these methods into either the Site or Theme's contentRenderer.cfc and use as necessary | |
public any function summarize(string str='', numeric count='26') { | |
var local = {}; | |
local.str = arguments.str; | |
local.count = Val(arguments.count); | |
if ( Len(Trim(local.str)) ) { | |
local.str = REReplace($.stripHTML(stripTagContent(local.str)), '[\s|\r\n?|\n]+', ' ', 'ALL'); | |
javaArray = CreateObject('java', 'java.util.Arrays'); | |
wordArray = javaArray.copyOf(local.str.Split(' '), local.count); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installation of the MySQL 5.6 on the Ubuntu 12.10. | |
Should work for 12.04, 13.10 | |
It's a fresh installation. On the computer should not be installed any previous versions of MySQL | |
Another tutorials: | |
https://gist.github.com/jebenexer/5790236 | |
https://gist.github.com/michfield/5578726 | |
http://www.peterchen.net/2013/02/20/en-how-to-install-mysql-5-6-on-ubuntu-12-04-precise/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- | |
This is one way to generate a custom meta image based on the content item's primary associated image. | |
You could use this method in several other ways as well, such as inside a content iterator, etc. | |
If the fileid passed into this method is not a valid image, then it will return an empty string | |
---> | |
<cfif Len($.getURLForImage($.content('fileid')))> | |
<cfscript> | |
img = $.getURLForImage( | |
fileid = $.content('fileid') // could be _any_ fileid in Mura | |
,size = 'custom' // small, medium, large, custom, or any other pre-defined image size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// drop this in your eventHandler.cfc's onSiteRequestStart() method | |
var themeAssetPath = arguments.$.siteConfig('themeAssetPath'); | |
arguments.$.cfStatic = new requirements.org.cfstatic.CfStatic( | |
staticDirectory = ExpandPath('#themeAssetPath#') | |
, outputDirectory = 'compiled' | |
, staticURL = '#themeAssetPath#/' | |
, minifyMode = 'package' | |
, checkForUpdates = !arguments.$.siteConfig('cache') | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.textShadowBlack(@shadow: 0 1px 0px rgba(0,0,0,1)) { | |
text-shadow: @shadow; | |
} | |
.textShadowWhite(@shadow: 0 1px 0px rgba(255,255,255,1)) { | |
text-shadow: @shadow; | |
} |