First create ec2 Ubuntu instance
Then install all the things needed for Mirth Connect (following this video: http://www.youtube.com/watch?v=omZyAO2naqs)
# Update Ubuntu
sudo aptitude update
# Safe upgrade of Ubuntu
sudo aptitude safe-upgrade| / Form excerpt | |
| = f.button t(".save"), class: "btn" | |
| = f.button t(".publish"), class: "btn", name: "publish" | |
| = f.button t(".test"), class: "btn", name: "test" |
| #!/bin/bash | |
| export JBOSS_HOME=/home/pacs/dcm4chee | |
| JBOSS_CLASSPATH=$JBOSS_HOME/bin/run.jar | |
| JBOSS_NATIVE_DIR="$JBOSS_HOME/bin/native" | |
| JBOSS_ENDORSED_DIRS="$JBOSS_HOME/lib/endorsed" | |
| #enable remote access to jboss services and web interface | |
| JBOSS_BIND_ADDR=${JBOSS_BIND_ADDR:-"0.0.0.0"} |
| #!/bin/sh | |
| # Author: Michael Gunlock 2014 | |
| ### BEGIN INIT INFO | |
| # Provides: dcm4chee | |
| # Required-Start: \$remote_fs \$syslog | |
| # Required-Stop: \$remote_fs \$syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 |
| #!/bin/bash | |
| function usage() | |
| { | |
| echo "Usage: $0 -u <Postgres_Username> -p <Password>" | |
| } | |
| USER="" |
| module Teamviewer | |
| class Connector | |
| attr_reader :client | |
| def initialize | |
| @client = connection(credentials) | |
| end |
First create ec2 Ubuntu instance
Then install all the things needed for Mirth Connect (following this video: http://www.youtube.com/watch?v=omZyAO2naqs)
# Update Ubuntu
sudo aptitude update
# Safe upgrade of Ubuntu
sudo aptitude safe-upgrade| SimpleForm.setup do |config| | |
| config.input_class = 'form-control' | |
| config.boolean_style = :nested | |
| config.wrappers :bootstrap3, tag: 'div', class: 'form-group', error_class: 'has-error', | |
| defaults: { input_html: { class: 'default_class' } } do |b| | |
| b.use :html5 |
| module Mongoid | |
| # Helps to override find method in an embedded document. | |
| # Usage : | |
| # - add to your model "include Mongoid::EmbeddedFindable" | |
| # - override find method with: | |
| # def self.find(id) | |
| # find_through(Book, 'chapter', id) | |
| # end | |
| module EmbeddedFindable |
| #app/inputs/collection_check_boxes_input.rb | |
| class CollectionCheckBoxesInput < SimpleForm::Inputs::CollectionCheckBoxesInput | |
| def item_wrapper_class | |
| "checkbox-inline" | |
| end | |
| end |
One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.
Most workflows make the following compromises:
Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.
Use production SSL certificates locally. This is annoying