AWS Adds Docker Support to Elastic Beanstalk

Joe PerksTechnical TipsLeave a Comment

Container Ship

Today Amazon announced and deployed Docker support for Elastic Beanstalk, Amazon Web Service’s Platform as a Service offering. This brings the supported platforms to the following list: Node.JS, PHP, Python, .NET, Java, Ruby and Docker. Now it is easier than ever to deploy onto AWS your Docker backed application at any scale, from a single instance on up. From the AWS blog post: “To use an image with Elastic Beanstalk, you will create a file called Dockerrun.aws.json. This file specifies the image to be used and can also set up a port to be exposed and volumes to be mapped in … Read More

Force.com Platform Fundamentals: SOQL and SOSL

Ashish KothariSalesforce, Technical TipsLeave a Comment

Force.com Platform Fundamentals: SOQL and SOSL

SOQL (Salesforce Object Query Language) Use SOQL to construct simple but powerful query strings in the queryString parameter in the query() call, in Apex statements, in Visualforce controllers and getter methods, or in the Schema Explorer of the Force.com IDE SOQL statements are similar to the select statement in SQL SOQL statements are case-sensitive SOQL statements can be used in Apex and the Web Services API If the output of a SOQL statement is an “Consider and Index Filter” error, it means the statement is returning too many records in which case you need to use a WHERE clause to restrict … Read More

Force.com Platform Fundamentals: Apex Classes

Ashish KothariSalesforce, Technical Tips1 Comment

Force.com Platform Fundamentals: Apex Classes

Apex Classes: An apex class is a blueprint from which Objects are created Classes consist of attributes and methods Classes may contain other classes, known as inner classes (one level deep nested classes) Static attributes and methods can only be declared in a top-level class definition Exception class must be extended in case you want to create new extension classes Classes can be enabled or disabled for different profiles   Syntax: private | public | global [virtual | abstract | with sharing | without sharing | (none)] Class className [implements interfaceName | (none)] [extends classOrInterfaceName | (none)] { // Class … Read More

Force.com Platform Fundamentals: Apex Data Types

Ashish KothariSalesforce, Technical TipsLeave a Comment

Force.com Platform Fundamentals: Apex Data Types

Apex Data Types include: Primitive Enum sObject Collection   Primitive Data Types: Include the following: Boolean Date Date/Time Time ID Integer Long Double Decimal String Blob Object   Enum Data Types Is an abstract data type that allows you to store the values of a finite set of identifiers Defined using the keyword ‘enum’ Built-in enums viz. System.StatusCode returns API error codes Some enum methods: Values() – returns a list of values for the enum Name() – returns the name of the enum   sObject Data Types Represents Objects (Standard and Custom) in Salesforce.com Can be either strongly typed or … Read More

Force.com Platform Fundamentals: Apex

Ashish KothariOfferings, Salesforce, Technical TipsLeave a Comment

Force.com Platform Fundamentals: Apex

What is Apex? Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Force.com platform server in conjunction with calls to the Force.com​ API. Using syntax that looks like Java and acts like database stored procedures, Apex enables developers to add business logic to most system events, including button clicks, related record updates, and Visualforce pages. Apex code can be initiated by Web service requests and from triggers on objects. Apex vs. Java They are both similar in syntax and notation, strongly typed and transactional. Both support OOP features viz. Encapsulation, Inheritance, Polymorphism. Apex runs in a Multi-Tenanted environment and is limited by … Read More

How Docker Addresses Kernel Level Redundancy

Joe PerksTechnical TipsLeave a Comment

Docker Kernel Level Redundancy

Docker is making waves, especially among those in system administration, developer-operations, and cloud/virtualization roles. Here we attempt to explain Docker’s most disruptive feature without expecting prior knowledge of Docker’s underlying technologies. In a virtualized datacenter, we have one OS per VM and the hardware is virtualized for each VM. We may have any number of VMs running services (web hosting, backup services, Oracle, or others) on the same physical machine. Through the abstraction of hardware and OS data to files, we can migrate VMs across physical machines and increase the efficiency of cycles previously left idle when using a single … Read More

Deploying FreeNAS as iSCSI SAN for VMware vSphere

Joe PerksTechnical Tips4 Comments

Shared storage among vSphere/ESXi hosts is required for many features in VMware’s vSphere. Traditional solutions for shared storage include VMware vSAN, VMware VSA and commercial SAN. VMware vSAN, VMware’s latest offering (currently in beta), requires at least 3 hosts with a SSD/HDD pair dedicated to vSAN. Built into vSphere Kernel, vSAN beta requires at least vSphere 5.5 and vCenter Server 5.5 and is targeted toward enterprise level customers looking for an alternative to traditional commercial SAN systems. VMware vSphere Storage Appliance (VSA) is targeted towards small to medium businesses and is deployed on either two or three vSphere hosts. Each host in the … Read More

Vagrant, Chef (installed via omnibus), and the PostgreSQL and Database cookbooks (re: COOK-1406)

blake.willardTechnical Tips2 Comments

While building the development environments for a code base that would eventually be deployed to an auto-scaling AWS environment, a client request pivoted the database tier architecture away from MySQL to PostgreSQL. This pivot was timely given Amazon’s most recent RDS offering, announced as recently as re:Invent. Awesome! Now to integrate PostgreSQL with the existing Vagrant/Chef development environment deployments; not as awesome! What follows is a summary of and solution to several common pitfalls experienced by those deploying PostgreSQL with Chef (omnibus installer). Note: this post assumes some familiarity with Chef. A quick overview of how our deployment gets PostgreSQL … Read More