ruby

0

How to use imagemagick in Ruby

Using imagemagick is quite straightforward, here is how: 12sudo apt-get install libmagickwand-dev imagemagickgem install rmagick The Ruby code: 1234567891011121314151617181920212223242526272829303132

hexo

0

Implement a slider in Hexo

Download bxsliderDownload from http://bxslider.com/ and copy jquery.bxslider.css to hexo project css folder and copy js file to js folder. Create file bxslider.ejsAdd file into your theme folder, e.g

0

Top Hexo plugins recommended

hexo-generator-minifyThis plugin is used to minify CSS / Javascript code. Install: 1npm install hexo-generator-minify --save Run:1hexo gm --cssSafe hexo-generator-sitemap1npm install hexo-generator-s

0

List posts by category in Hexo

Spend hours to figure it out the documentation is not very helpful! 12345678910111213141516171819202122232425<% site.categories.each(function(cat) { %> <section class="archives-wrap"&g

linux

0

GraphicsMagick

GraphicsMagick is originally derived from ImageMagick 5.5.2 as of November 2002 but has been completely independent of the ImageMagick project since then. As states in GraphicsMagick’s website: Graphi

0

Host multiple domains in Nginx

By default, Nginx on Ubuntu 16.04 has one server block enabled by default. It is configured to serve documents at /var/www/html. To serve multiple sites/domains. We need to do the following: Create d

solr

0

How to implement hierarchical facets

0. EnvironmentsUbuntu 14.x Open JDK 7.x Solr 3.6.x Apache Tomcat 7.x 1. The problemThe solr documentation summaries approaches to implement hierarchical facets in: http://wiki.apache.org/solr/Hierarc

git

0

git basic commands and tips

BranchCreate a new branch “feature_x” and switch to that branch: 1git checkout -b feature_x Switch back to master: 1git checkout master Push to remote server: 1git push -u origin feature_branch_name

javascript

0

How to close an iframe within iframe itself

It depends on how the iframe window is created. For example, if the iframe window has an ID or name which can be used to identify the iframe, the iframe can be closed from the parent window. In ifram

windows

0

Notepad++ not starting - problem and solution

Notepad++ has suddenly stopped launching, e.g. although it shows in the Windows task manager, but no window appears. Somebody has found it is caused by a recent dropbox update. The problem is in the

xslt

0

How to get latest year in xslt

###XML 1234567891011121314151617181920212223<?xml version="1.0" encoding="UTF-8"?><publications> <publication> <author>Fan</author> <year>1999<

java

0

Multi-select facting in Java

What is multi-select facting?Multi-select faceting means that users can see and select multiple facet items (facet values) for particular facets. Thanks to Solr’s filter tagging and excluding feature

0

Upload via SFTP in Java

1) Add Maven dependency12345<dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId> <version>0.1.42</version></dependency> 2)

0

Config Tomcat session timeout

There are three places to config Tomcat web application session timeout: $tomcat_home/conf/web.xml$your_webapp/WEB-INF/web.xmlmanual invocation of HttpSession.setMaxInactiveInterval(int)

0

How to convert String to InputStream in Java

Here is the example: 123456789101112131415161718192021222324252627package com.yuxifanimport java.io.BufferedReader;import java.io.ByteArrayInputStream;import java.io.IOException;import java.io.InputS

css

mobile