For more complex applications, you'll want to build up a ``settings.json` object using multiple environment variables.
if(Meteor.isServer){
Meteor.startup(function()){
// this needs to be run on the server
var environment, settings;
environment = process.env.METEOR_ENV || "...
To detect the environment on the server, we have to create a helper method on the server, as the server will determine which environment it is in, and then call the helper method from the client. Basically, we just relay the environment info from the server to the client.
//------------------------...
As of Meteor 1.3, Meteor now exposes the NODE_ENV variable on the client by default.
if (Meteor.isClient) {
Meteor.startup(function () {
if(process.env.NODE_ENV === "testing"){
console.log("In testing...");
}
if(process.env.NODE_ENV === "production&...
Developing Meteor apps usually means developing multi-client reactivity, which requires collaboration tools. The following tools have proven to be popular within the Meteor community.
Google Hangouts - Video conferencing and chat.
Zenhub.io - Kanban boards for GitHub.
InVision - Collaborative ...
Most debugging happens in the terminal or in the Chrome or Safari develop tools, which are plenty sophisticated enough for 99% of your needs. However, if you want to debug on Firefox or need extra server debugging functionality, there are a few extra utilities you can use.
Firefox - Firebug
Nod...
The idea is that a distro maintainer wants to run something like the following command:
meteor publish-release clinical.meteor.rc6.json
Which will then allow users of the distro to run this:
meteor run --release clinical:[email protected]
If you need to extend the meteor tool or the command line, you'll need to create and publish your own meteor-tool package. Ronen's documentation is the best out there for this process:
http://practicalmeteor.com/using-meteor-publish-release-to-extend-the-meteor-command-line-tool/1
It's easy to get...
Logcat is a command-line tool that dumps a log of system messages, including stack traces when the device throws an error and messages that you have written from your app with the Log class.
The Logcat output can be displayed within Android Studio's Android Monitor or with adb command line.
In And...
The following example creates a Bootstrap Drop-Down menu, using only Blaze and no JQuery.
Document Object Model
<nav class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="drop...
Install Chrome by first considering which version to use, relevant if you are going to be doing Web Development:
Google Chrome releases major versions about every 6 weeks and provides access to multiple versions of the product as they are being stabilized. This process is done in a series of channe...
Getting installed on Windows 10 is as easy as it's ever been, and despite (true) rumours flying around regarding Windows 10 being the last 'normal' version of Windows, it has and always will stay the same process.
Installing a new version
Get the windows image (Go straight to step 4 if you have ...
Some applications that use Hibernate generate a huge amount of SQL when the application is started. Sometimes it's better to enable/disable the SQL log in specific points when debugging.
To enable, just run this code in your IDE when you are debugging the aplication:
org.apache.log4j.Logger.getLog...
Generally, if we want to remove an element from an array, we need to know it's index so that we can remove it easily using remove(at:) function.
But what if we don't know the index but we know the value of element to be removed!
So here is the simple extension to an array which will allow us to re...
As of IntelliJ IDEA version 2016.2, and IdeaVim version 0.46, IntelliJ's native option for showing line numbers is ineffective. When clicking Show line numbers, the line numbers immediately show and disappear.
This problem is caused by a bug in the IdeaVim plugin, which can be resolved by using the...
You can save the layout of your tabs and windows to standardize your work environment.
The layouts menu can be found in the upper right corner of Unity Editor:
Unity ships with 5 default layouts (2 by 3, 4 Split, Default, Tall, Wide) (marked with 1). In the picture above, aside from default layo...
PriorityQueue is a data structure. Like SortedSet, PriorityQueue sorts also its elements based on their priorities. The elements, which have a higher priority, comes first. The type of the PriorityQueue should implement comparable or comparator interface, whose methods decides the priorities of the ...
Uniform grid will place all it's children in a grid layout, each child in it's own cell. All the cells will have the same size. It can be thought to be a shorthand to a grid where all the row and column definitions are set to *
Default rows and columns
By default the UniformGrid will try to crea...