Admin
September 02, 2016
14 comments
2.96K
The solution doesn’t require writing a specific directive or adding any additional attributes or decoration to my page content -  a short timeout (like, 1ms short) inside of which Prism.highlightElement(elem) is called. // Content is my service, ...
Admin
May 26, 2016
12 comments
3.66K
Introduction PostgreSQL 9.4 was released on 12/18/2014. More information about the release is available on the official PostgreSQL documentation.This article is written to provide an easy migration solution from PostgreSQL 9.3 to 9.4 for Debian s...
Admin
May 19, 2016
38 comments
4.77K
Answer 1 In Ruby, nil in an object (a single instance of the class NilClass) so methods can be called on it. nil? is a standard method in Ruby that can be called on all objects and returns true for the nil object and false for anything else. emp...
Admin
May 09, 2016
23 comments
2.15K
JavaScript can be a nightmare to debug: Some errors it gives can be very difficult to understand at first, and the line numbers given aren’t always helpful either. Wouldn’t it be useful to have a list where you could look to find out what they m...
In your application controller file app/controllers/application_controller.rb include the following private method: class ApplicationController < ActionController::Base private # Overwriting the sign_out redirect path method de...
Admin
April 29, 2016
31 comments
3.5K
Intro Machine learning is a type of artificial intelligence (AI) that provides computers with the ability to learn without being explicitly programmed. Machine learning focuses on the development of computer programs that can teach themselves t...
The map method takes an enumerable object and a block, and runs the block for each element, outputting each returned value from the block (the original object is unchanged unless you use map!): [1, 2, 3].map { |n| n * n } #=> [1, 4, 9] Array ...
Admin
April 21, 2016
21 comments
2.34K
Setting up PHP extensions php_curl and php_apc on windows 7 If you're using windows 64-bit OS, download the 64-bit TS VC9 compiled DLL files i.e. php_apc.dlland php_curl.dll, and store them in the PHP extensions directory. Enable these extensi...
Admin
April 21, 2016
14 comments
4.8K
Install PHP-FPM To install PHP-FPM, open terminal and type in these commands. We will configure the details of nginx and php details in the next step: sudo apt-get install php5-fpm Configure php We need to make one small change in the php conf...
Admin
April 16, 2016
32 comments
1.27K
Big data is a term that describes the large volume of data – both structured and unstructured – that inundates a business on a day-to-day basis. But it’s not the amount of data that’s important. It’s what organizations do with the data that matter...