You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
There are 3 plugins for generating to create a JAR-File in maven:
maven-jar-plugin:This plugin provides the capability to build and sign jars.But it just compiles the java files under src/main/java and /src/main/resources/.It doesn't include the dependencies JAR files.
<!--exclude all xml files from the jar-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
# Heavily depends on: | |
# libqrencode (fukuchi.org/works/qrencode/) | |
# paperkey (jabberwocky.com/software/paperkey/) | |
# zbar (zbar.sourceforge.net) | |
# Producing the QR codes: | |
# Split over 4 codes to ensure the data per image is not too large. | |
gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp | |
split temp -n 4 IMG | |
for f in IMG*; do cat $f | qrencode -o $f.png; done |
package main | |
//#include<stdio.h> | |
//void inC() { | |
// printf("I am in C code now!\n"); | |
//} | |
import "C" | |
import "fmt" | |
func main() { |
I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.
This isn't practical for larger texts, like when I want to copy the whole contents of a file.
If I had been editing large-file.txt
locally, I could easily copy its contents by using the pbcopy
command:
############################################################################# | |
# | |
# Generic Makefile for C/C++ Program | |
# | |
# License: GPL (General Public License) | |
# Author: whyglinux <whyglinux AT gmail DOT com> | |
# Date: 2006/03/04 (version 0.1) | |
# 2007/03/24 (version 0.2) | |
# 2007/04/09 (version 0.3) | |
# 2007/06/26 (version 0.4) |
;; Exp. (merge '(1 3 5 7 8 9 10) '(2 4 6)) ==> (1 2 3 4 5 6 7 8 9 10) | |
(define (merge L M) | |
(if (null? L) M | |
(if (null? M) L | |
(if (< (car L) (car M)) | |
(cons (car L) (merge (cdr L) M)) | |
(cons (car M) (merge (cdr M) L)))))) | |
;; split helper functions | |
(define (odd L) |
-- ax^2 + bx + c = 0 | |
qEquation :: (Float, Float, Float) -> (Float, Float) | |
qEquation (a, b, c) = (x1, x2) | |
where | |
x1 = e + sqrt d / (2 * a) | |
x2 = e - sqrt d / (2 * a) | |
d = b * b - 4 * a * c | |
e = - b / (2 * a) |