mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-03-12 01:40:10 +08:00
commit
0174ef35f8
54
published/The Top 8 Open Source NoSQL Databases In Java.md
Normal file
54
published/The Top 8 Open Source NoSQL Databases In Java.md
Normal file
@ -0,0 +1,54 @@
|
||||
Java中8个顶级开源NoSQL数据库!
|
||||
================================================================================
|
||||

|
||||
|
||||
NoSQL正在崛起。许多企业和用户已经将MySQL数据库替换成了NoSQL数据库。NoSQL使分析非结构化的数据变得更容易,因此开发者必须意识到存在于NoSQL世界中的趋势和工具。
|
||||
|
||||
#### 1.[Terrastore][1] ####
|
||||
|
||||
新的文档存储技术可以提供先进的伸缩性和弹性而不必牺牲一致性。Terrastore基于Trrracotta,它依赖于一个业界公认的,快速的(而且又酷)集群技术。
|
||||
|
||||
#### 2.[Neo4j][2] ####
|
||||
|
||||
开源的图形数据库,用Java实现。开发者将Neo4j描述为“嵌入式,基于磁盘,完全事务的Java持久引擎,将数据结构化存储在图中而不是在二维表格中”
|
||||
|
||||
#### 3.[Voldemort][3] ####
|
||||
|
||||
分布式键值存储系统。本质上说是一个大型,分布式,持久的,容错哈希表。对于应用,它可以使用类似active-record或者hibernate的O/R映射工具,这些可以提供水平扩展和更高的可用性,但是会损失巨大的便利性。
|
||||
|
||||
#### 4.[HBase][4] ####
|
||||
|
||||
Apache HBase是Google的Chang et al开发的,是继其开发的分布式存储系统Bigtable之后的另一个开源的、分布式、版本化的、非关系型数据库。
|
||||
|
||||
#### 5.[InfoGrid][5] ####
|
||||
|
||||
带有很多额外的软件组件的Web图形数据库,使在图形数据库基础上开发Rest-ful的web应用变得很容易。
|
||||
|
||||
#### 6.[HyperGraphDB][6] ####
|
||||
|
||||
通用的、可扩展、便携、嵌入式、开源数据存储机制。它是一个特别为人工智能和web语义项目设计的图形数据库,同样可以用于不同大小项目的嵌入式面向对象数据库。
|
||||
|
||||
#### 7.[Perst][7] ####
|
||||
|
||||
Perst是McObject的开源实现,双许可证,面向对象的嵌入式数据库系统(ODBMS)。它的一个版本是用Java开发的嵌入式数据库,另外一个用C#实现(对于Microsoft .NET Framework的应用而言)。
|
||||
|
||||
#### 8.[NeoDatis ODB][8] ####
|
||||
|
||||
一个简单的运行在Java、.Net、 Google Android、 Groovy 和 Scala上的对象数据库。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.efytimes.com/e1/fullnews.asp?edid=138992
|
||||
|
||||
译者:[geekpi](https://github.com/geekpi) 校对:[wxy](https://github.com/wxy)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:https://code.google.com/p/terrastore/
|
||||
[2]:http://www.neo4j.org/
|
||||
[3]:http://www.project-voldemort.com/voldemort/
|
||||
[4]:http://hbase.apache.org/
|
||||
[5]:http://infogrid.org/trac/
|
||||
[6]:http://www.kobrix.com/hgdb.jsp
|
||||
[7]:http://www.mcobject.com/perst/
|
||||
[8]:http://neodatis.wikidot.com/
|
@ -1,47 +0,0 @@
|
||||
JonathanKang is translating
|
||||
|
||||
Native Spotify for Linux Client Updated With New Dark Design
|
||||
================================================================================
|
||||

|
||||
|
||||
**Spotify for Linux has been updated with the same flatter, darker design that the streaming service brought to its apps on other platforms last month. **
|
||||
|
||||
Steely grey gradients and expansive swathes of white have given way to a colour scheme based on black, black and slightly lighter black. Even the company’s trademark green hasn’t been spared the overhaul, with its use now limited to the odd flourish here and there.
|
||||
|
||||
> ‘Spotify say the design puts the emphasis squarely on content’
|
||||
|
||||
Rounded elements have been introduced on artist and profile photos, while navigation and player controls buttons have been given iOS 7-style thin line makeovers.
|
||||
|
||||
Spotify say the design puts the emphasis squarely on content, likening the new look to “*a cinema when you dim the lights.*”
|
||||
|
||||
Aside from the changes staring you in the face there are a couple under the hood that you might otherwise miss. These include the use of OpenSSL 1.0.x, working local music playback using *libavcodec54* and support for native system notifications on track change.
|
||||
|
||||
For now, 32-bit builds are not available.
|
||||
|
||||
The native, if eternally-in-preview, Spotify client for Linux **supports free and subscription accounts**.
|
||||
|
||||
### Install Spotify ###
|
||||
|
||||
To install Spotify on Ubuntu 14.04 LTS open a new terminal and enter the following commands.
|
||||
|
||||
The first adds the official Spotify repository to your software sources list:
|
||||
|
||||
sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" > /etc/apt/sources.list.d/spotify.list'
|
||||
|
||||
Add the secure key for the repository to prevent errors being thrown up:
|
||||
|
||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
|
||||
|
||||
Finally, update and install the application:
|
||||
|
||||
sudo apt-get update && sudo apt-get install spotify-client-qt
|
||||
|
||||
Launch the app from the Dash once installation has completed.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.omgubuntu.co.uk/2014/05/spotify-linux-preview-update-new-design
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
@ -1,27 +0,0 @@
|
||||
alim0x translating
|
||||
|
||||
Turn Ubuntu and Debian Jessie into Windows 7 and Windows 8 with WinAte Theme Pack
|
||||
================================================================================
|
||||

|
||||
|
||||
**WinAte, the theme pack that will turn your Ubuntu and Debian installation into a Windows 7 of Windows 8 look-alike, has just received a new update.**
|
||||
|
||||
There was a time when it was easy to change the look of most Linux distributions and make them look like a Windows counterpart, but that time has passed. There are only a handful that can still be modified, and Ubuntu and Debian Jessie are among them.
|
||||
|
||||
“With this brand-new WinAte - Windows 7/8 Transformation Pack for LXDE - you will be able to get all the icons and overall appearance of Windows to your GNU/Linux box, without spending lots of resources nor having to adapt old Gnome 2 themes. Everything works just by executing the install.sh script. Just do that, logout and login again, and there should be a different feeling in the whole system,” reads the official website.
|
||||
|
||||
The package has a few dependencies that are very easy to meet: gtk2-engines-murrine, gtk2-engines-pixbuf, and compton. The installation is very simple and the instructions can be followed by anyone.
|
||||
|
||||
This theme is probably the closest that users will ever going to get to Windows 7 or Windows 8 in term of look, but it ca be used to help people migrate to Linux more easily.
|
||||
|
||||
You can download the WinAte - Windows 7/8 Theme pack from [gnome-look.org][1].
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://news.softpedia.com/news/Turn-Ubuntu-and-Debian-Jessie-into-Windows-7-and-Windows-8-with-WinAte-Theme-Pack-443302.shtml
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://gnome-look.org/content/show.php/%5BLXDE%5DWinAte+-+Windows+7%2B8+Theme+pack?content=163150
|
@ -0,0 +1,23 @@
|
||||
Webmin 1.690 Arrives with Ubuntu 14.04 LTS Optimization
|
||||
================================================================================
|
||||

|
||||
|
||||
**Webmin, a web-based interface for system administration for Unix, has just reached version 1.690 and is available for download.**
|
||||
|
||||
With Webmin and with the help of any modern browser, users can set up user accounts, Apache servers, DNS, file sharing, and much more. The developers of Webmin have made regular updates to this piece of software. This latest version is not a major one, but some interesting fixes have been implemented.
|
||||
|
||||
According to the developers, a number of security fixes for XSS attacks in popup windows have been added, the Fail2Ban module has been added and it's used for blocking the IP addresses of systems that have many failed logins, the handling of the url_rewrite_children directive in the Squid module has been fixed in order to support all the process count options, and the support for Ubuntu 14.04 LTS has been improved.
|
||||
|
||||
Also, a number of security issues that could have been exploited by untrusted Webmin users in the PHP Configuration and Webalizer modules, the File Manager module Java applet has been signed, the UI library has been improved, and more.
|
||||
|
||||
A complete list of changes and improvements can be found in the official [announcement][1]. You can download Webmin 1.690 right now from the website.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://news.softpedia.com/news/Webmin-1-690-Arrives-with-Ubuntu-14-04-LTS-Optimization-443451.shtml
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.webmin.com/changes.html
|
@ -1,5 +1,7 @@
|
||||
The Open Source Witch Hunts Have Returned
|
||||
================================================================================
|
||||

|
||||
|
||||
> The open source community has been turning on itself lately, just like the good old days.
|
||||
|
||||
Open source has gone soft. We used to pass the time with hangings of the ideologically impure, but of late we've had this weird obsession with sharing code and innovation.
|
||||
|
@ -0,0 +1,34 @@
|
||||
Ubuntu Linux Community Manager Jono Bacon Leaves Canonical
|
||||
================================================================================
|
||||

|
||||
|
||||
In a few days, Canonical, the company behind Ubuntu Linux, will bid farewell to its longtime community manager. [Jono Bacon][1], who has long been one of the most familiar faces in the Ubuntu world, is moving to a new position at the [XPRIZE Foundation][2].
|
||||
|
||||
Bacon, who joined Canonical in 2006, [reported on his blog][3] that he decided to leave Canonical after receiving an offer from XPRIZE, which [describes itself][4] as "an innovation engine" and "catalyst for the benefit of humanity." He will work at XPRIZE as senior director of Community, bringing to bear the skills he acquired helping to coordinate the Ubuntu community over the last eight years.
|
||||
|
||||
Although Bacon was not directly responsible for the business or development side of things at Canonical, his departure is significant for the Ubuntu and open source worlds, where executive titles have tended to matter less than actual community involvement. Alongside Ubuntu founder and former Canonical CEO [Mark Shuttleworth][5], Bacon was one of the leading figures in the Ubuntu ecosystem since the project's earlier days.
|
||||
|
||||
Bacon was arguably even more influential in shaping many aspects of Ubuntu than Jane Silber, who has been Canonical's CEO since 2010, but whose public presence has generally been limited.
|
||||
|
||||
The team Bacon led—which includes Daniel Holbach, David Planella, Michael Hall, Nicholas Skaggs and Alan Pope—will continue his community leadership work at Canonical after his departure, he said. It is not yet clear, however, whether Canonical will be filling the community manager position he leaves behind.
|
||||
|
||||
Perhaps Canonical shouldn't. In many ways, maintaining an official community leader is at odds with the open source ethos, which tends to celebrate decentralized, user-driven community organization. Few Ubuntu fans are likely to panic at the news of Bacon's change of jobs.
|
||||
|
||||
Still, Bacon has helped to guide the Ubuntu community through a slew of crises—from Canonical's [failed attempt][6] to style the Ubuntu Software Center as a store, to [friction with the Fedora crowd][7], to [controversy][8] over the Amazon.com search features built into modern Ubuntu. He has left a mark on the Ubuntu ecosystem, and it won't be quite the same without him.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://thevarguy.com/ubuntu/052214/ubuntu-linux-community-manager-jono-bacon-leaves-canonical
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.jonobacon.org/
|
||||
[2]:http://www.xprize.org/
|
||||
[3]:http://www.jonobacon.org/2014/05/19/goodbye-canonical-hello-xprize/
|
||||
[4]:http://www.xprize.org/about/who-we-are
|
||||
[5]:http://markshuttleworth.com/
|
||||
[6]:http://thevarguy.com/ubuntu/ubuntu-software-store-will-your-kids-try-it
|
||||
[7]:http://thevarguy.com/open-source-application-software-companies/tensions-between-ubuntu-fedora-mount-over-new-website
|
||||
[8]:http://thevarguy.com/var-guy/controversy-erupts-over-amazon-search-ubuntu-1210
|
162
sources/tech/Bash Getopts--Scripts with Command Line Options.md
Normal file
162
sources/tech/Bash Getopts--Scripts with Command Line Options.md
Normal file
@ -0,0 +1,162 @@
|
||||
CNprober 翻译中<619913541,travelwithheart@yeah.net>
|
||||
|
||||
Bash Getopts – Scripts with Command Line Options
|
||||
================================================================================
|
||||
I've always wanted to know how to create command line options for my Bash scripts. After some research I found there are two functions available to handle this; **getopt** and **getopts**. I'm not going to get into the debate about which one is better. **getopts** is a shell builtin and seems a little easier to implement than **getopt**, so I'll go with that for now.
|
||||
|
||||
### bash getopts ###
|
||||
|
||||
I started out just trying to figure out how to process command line switches in my scripts. Eventually, I added some other useful functionality that makes this a good starting template for any interactive script. I've also included a help function with text formatting to make it a little easier to read.
|
||||
|
||||
Rather than go into a lengthy explanation of how **getopts** works in **bash**, I think it's simpler to just show some working code in a script.
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
######################################################################
|
||||
#This is an example of using getopts in Bash. It also contains some
|
||||
#other bits of code I find useful.
|
||||
#Author: Linerd
|
||||
#Website: http://tuxtweaks.com/
|
||||
#Copyright 2014
|
||||
#License: Creative Commons Attribution-ShareAlike 4.0
|
||||
#http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
######################################################################
|
||||
|
||||
#Set Script Name variable
|
||||
SCRIPT=`basename ${BASH_SOURCE[0]}`
|
||||
|
||||
#Initialize variables to default values.
|
||||
OPT_A=A
|
||||
OPT_B=B
|
||||
OPT_C=C
|
||||
OPT_D=D
|
||||
|
||||
#Set fonts for Help.
|
||||
NORM=`tput sgr0`
|
||||
BOLD=`tput bold`
|
||||
REV=`tput smso`
|
||||
|
||||
#Help function
|
||||
function HELP {
|
||||
echo -e \\n"Help documentation for ${BOLD}${SCRIPT}.${NORM}"\\n
|
||||
echo -e "${REV}Basic usage:${NORM} ${BOLD}$SCRIPT file.ext${NORM}"\\n
|
||||
echo "Command line switches are optional. The following switches are recognized."
|
||||
echo "${REV}-a${NORM} --Sets the value for option ${BOLD}a${NORM}. Default is ${BOLD}A${NORM}."
|
||||
echo "${REV}-b${NORM} --Sets the value for option ${BOLD}b${NORM}. Default is ${BOLD}B${NORM}."
|
||||
echo "${REV}-c${NORM} --Sets the value for option ${BOLD}c${NORM}. Default is ${BOLD}C${NORM}."
|
||||
echo "${REV}-d${NORM} --Sets the value for option ${BOLD}d${NORM}. Default is ${BOLD}D${NORM}."
|
||||
echo -e "${REV}-h${NORM} --Displays this help message. No further functions are performed."\\n
|
||||
echo -e "Example: ${BOLD}$SCRIPT -a foo -b man -c chu -d bar file.ext${NORM}"\\n
|
||||
exit 1
|
||||
}
|
||||
|
||||
#Check the number of arguments. If none are passed, print help and exit.
|
||||
NUMARGS=$#
|
||||
echo -e \\n"Number of arguments: $NUMARGS"
|
||||
if [ $NUMARGS -eq 0 ]; then
|
||||
HELP
|
||||
fi
|
||||
|
||||
### Start getopts code ###
|
||||
|
||||
#Parse command line flags
|
||||
#If an option should be followed by an argument, it should be followed by a ":".
|
||||
#Notice there is no ":" after "h". The leading ":" suppresses error messages from
|
||||
#getopts. This is required to get my unrecognized option code to work.
|
||||
|
||||
while getopts :a:b:c:d:h FLAG; do
|
||||
case $FLAG in
|
||||
a) #set option "a"
|
||||
OPT_A=$OPTARG
|
||||
echo "-a used: $OPTARG"
|
||||
echo "OPT_A = $OPT_A"
|
||||
;;
|
||||
b) #set option "b"
|
||||
OPT_B=$OPTARG
|
||||
echo "-b used: $OPTARG"
|
||||
echo "OPT_B = $OPT_B"
|
||||
;;
|
||||
c) #set option "c"
|
||||
OPT_C=$OPTARG
|
||||
echo "-c used: $OPTARG"
|
||||
echo "OPT_C = $OPT_C"
|
||||
;;
|
||||
d) #set option "d"
|
||||
OPT_D=$OPTARG
|
||||
echo "-d used: $OPTARG"
|
||||
echo "OPT_D = $OPT_D"
|
||||
;;
|
||||
h) #show help
|
||||
HELP
|
||||
;;
|
||||
\?) #unrecognized option - show help
|
||||
echo -e \\n"Option -${BOLD}$OPTARG${NORM} not allowed."
|
||||
HELP
|
||||
#If you just want to display a simple error message instead of the full
|
||||
#help, remove the 2 lines above and uncomment the 2 lines below.
|
||||
#echo -e "Use ${BOLD}$SCRIPT -h${NORM} to see the help documentation."\\n
|
||||
#exit 2
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
shift $((OPTIND-1)) #This tells getopts to move on to the next argument.
|
||||
|
||||
### End getopts code ###
|
||||
|
||||
|
||||
### Main loop to process files ###
|
||||
|
||||
#This is where your main file processing will take place. This example is just
|
||||
#printing the files and extensions to the terminal. You should place any other
|
||||
#file processing tasks within the while-do loop.
|
||||
|
||||
while [ $# -ne 0 ]; do
|
||||
FILE=$1
|
||||
TEMPFILE=`basename $FILE`
|
||||
#TEMPFILE="${FILE##*/}" #This is another way to get the base file name.
|
||||
FILE_BASE=`echo "${TEMPFILE%.*}"` #file without extension
|
||||
FILE_EXT="${TEMPFILE##*.}" #file extension
|
||||
|
||||
|
||||
echo -e \\n"Input file is: $FILE"
|
||||
echo "File withouth extension is: $FILE_BASE"
|
||||
echo -e "File extension is: $FILE_EXT"\\n
|
||||
shift #Move on to next input file.
|
||||
done
|
||||
|
||||
### End main loop ###
|
||||
|
||||
exit 0
|
||||
|
||||
Paste the above text into a text editor and then save it somewhere in your executable path. I chose to call the script **options** and I saved it under **/home/linerd/bin**. Once you save it, make sure to make it executable.
|
||||
|
||||
chmod +x ~/bin/options
|
||||
|
||||
Now you can run the script. Try running it with the **-h** switch to show the help information.
|
||||
|
||||
options -h
|
||||
|
||||
Now try running it with an unsupported option.
|
||||
|
||||
options -z
|
||||
|
||||
Finally, getopts can handle your command line options in any order. The only rule is that the file or files you are processing have to come after all of the option switches.
|
||||
|
||||
options -d bar -c chu -b man -a foo example1.txt example2.txt
|
||||
|
||||
So you can see from these examples how you can set variables in your scripts with command line options. There's more going on than just getopts in this script, but I think these are valuable additions that make this a good starting template for new scripts. If you'd like to learn more about bash getopts, you can find the documentation buried deep within the bash man page in the "Builtins" section. You can also find info in the [Bash Reference Manual][1].
|
||||
|
||||
### What Next? ###
|
||||
|
||||
So what will you use getopts for? Let me know in the comments.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://tuxtweaks.com/2014/05/bash-getopts/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://tuxtweaks.com/2014/05/bash-getopts/www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html
|
@ -0,0 +1,85 @@
|
||||
alim0x translating
|
||||
|
||||
How to take a screenshot from the command line on Linux
|
||||
================================================================================
|
||||
There are various flavors of Linux screenshot utilities, including desktop-specific screenshot programs (e.g., KSnapshot for KDE, gnome-screenshot for GNOME, Screenshooter for Xfce), or general screenshot utilities (e.g., Shutter). One of unique screenshot utilities is Scrot (short for "SCReen shOT"), which is a **command-line screenshot utility**. While its interface is minimalistic, Scrot is, feature-wise, as powerful as other dedicated GUI-based screen capture tools. For example, Scrot supports delayed screenshot, adjustable quality/size, command line pipelining, etc. If you are one of those command line junkies, Scrot is a useful tool to add to your arsenal. In this tutorial, I will describe **how to take a screenshot from the command line with Scrot**.
|
||||
|
||||
### Install Scrot on Linux ###
|
||||
|
||||
To install Scrot on Debian, Ubuntu or Linux Mint:
|
||||
|
||||
$ sudo apt-get install scrot
|
||||
|
||||
To install Scrot on Fedora:
|
||||
|
||||
$ sudo yum install scrot
|
||||
|
||||
To install Scrot on CentOS, you can build it from its source as follows.
|
||||
|
||||
First [enable Repoforge on CentOS][1], and use the following commands.
|
||||
|
||||
$ sudo yum install giblib-devel
|
||||
$ wget http://linuxbrit.co.uk/downloads/scrot-0.8.tar.gz
|
||||
$ tar xvfvz scrot-0.8.tar.gz
|
||||
$ cd scrot-0.8
|
||||
$ ./configure
|
||||
$ make
|
||||
$ sudo make install
|
||||
|
||||
### Take Screenshots with Scrot ###
|
||||
|
||||
In the rest of the tutorial, I will describe how to use Scrot to take screenshots in various ways.
|
||||
|
||||
#### 1. Take a screenshot of the entire desktop ####
|
||||
|
||||
Screen-capturing the entire desktop is easy. Simply run Scrot command without any argument, and it will save a screenshot of the entire desktop as a (date-stamped) .png file in the current directory.
|
||||
|
||||
$ scrot
|
||||
|
||||
You can also specify a destination folder and image file name.
|
||||
|
||||
$ scrot ~/Pictures/my_desktop.png
|
||||
|
||||
#### 2. Take a screenshot of a particular window or a rectangular region ####
|
||||
|
||||
Scrot allows you to choose a specific window or define a rectangular region in your desktop to take a screenshot of. For that, use the following command.
|
||||
|
||||
$ scrot -s
|
||||
|
||||
After running this command, go ahead and click on any window or draw a rectangle with your mouse, which will trigger screen capture of the selected window/region.
|
||||
|
||||
Sometimes the chosen region or window may be partially blocked by other windows of the desktop. In that case, you need some time to clear the area before taking a shot. That is when "delayed" screenshot can help you, as described next.
|
||||
|
||||
#### 3. Take a delayed screenshot ####
|
||||
|
||||
Delayed capture can be useful under various circumstances. Right before taking a shot, you may want to move windows around, activate a menu, or trigger a certain event (e.g., notification), etc. With "-d N" option, we can delay a screenshot process by N seconds.
|
||||
|
||||
$ scrot -s -d 5
|
||||
|
||||
#### 4. Adjust quality of a screenshot ####
|
||||
|
||||
You can adjust the image quality of a screenshot in the range of 1 to 100 (the higher the better quality). Default quality is 75.
|
||||
|
||||
$ scrot -q 50
|
||||
|
||||
#### 5. Adjust the size of a screenshot ####
|
||||
|
||||
You can adjust the size of a screenshot in the range of 1 to 100 (the higher the bigger). To reduce screenshot size to 10% of the original:
|
||||
|
||||
$ scrot -t 10
|
||||
|
||||
#### 6. Pipeline a captured screenshot to another command ####
|
||||
|
||||
Scrot allows you to send a saved screenshot image to any arbitrary command as an input. This option can be useful when you want to do any post-processing on a screenshot image. The filename/path of a screenshot is stored as "$f" string.
|
||||
|
||||
$ scrot -e 'mv $f ~/screenshots'
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://xmodulo.com/2014/05/take-screenshot-command-line-linux.html
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://xmodulo.com/2013/01/how-to-set-up-rpmforge-repoforge-repository-on-centos.html
|
@ -0,0 +1,25 @@
|
||||
谷歌浏览器使用的 PDF 渲染引擎以开源形式发布
|
||||
================================================================================
|
||||

|
||||
|
||||
**大型公司,例如谷歌,并不会真的喜欢上开源项目,虽然他们的谷歌浏览器基于开源的 Chromium 浏览器。现在,在谷歌浏览器中所使用的 PDF 渲染引擎以开源形式发布了。**
|
||||
|
||||
在谷歌浏览器中所使用的 PDF 渲染引擎是 [PDFium][1] ,迄今为止这个项目都没有向公众发布过。现在还不清楚是什么改变了他们的想法,不过现在用户们可以去下载 PDFium 的源代码了。
|
||||
|
||||
虽然 PDFium 现在是开源的,但是它是在一个有特定条件的新 BSD 协议下发布的。例如再次使用源代码必须保留其原有的版权声明、一份条件列表以及一份免责声明。对于二进制文件的再发布需要相同的条件。与此同时,无论是版权持有者还是它的贡献者都不能署名或推广该软件的衍生产品。
|
||||
|
||||
就像大多数的开源项目一样,它可以在 Github 上获得,你可以很容易地使用如下命令乃克隆该项目:
|
||||
|
||||
git clone https://pdfium.googlesource.com/name
|
||||
|
||||
虽然 PDFium 未必能在其他主要项目中使用,但我们很高兴看到谷歌正在试图对开源社区变得友好。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://news.softpedia.com/news/Google-Chrome-s-PDF-Rendering-Engine-Released-as-Open-Source-443461.shtml
|
||||
|
||||
译者:[wwhio](https://github.com/wwhio) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:https://code.google.com/p/pdfium/
|
@ -0,0 +1,46 @@
|
||||
本土化Spotify Linux客户端更新,添加新的黑色设计元素
|
||||
================================================================================
|
||||

|
||||
|
||||
**Linux版本的Spotify得到了更新,这一次带着同上个月其他主流服务商对其应用的更加扁平和更加黑色化的设计。**
|
||||
|
||||
金属质感的灰色元素和白色清爽的条区设计形成了基于黑色和浅黑色的颜色设计方案。由于受旧时设计的限制,甚至这次新设计没有给该公司的green商标留出空间。
|
||||
|
||||
> ‘Spotify相关负责人说这种设计可以突出软件的内容’
|
||||
|
||||
在作曲家和个人资料条目中图片的设计上均采用了圆形的设计元素,并且在导航栏和播放控制按钮的地方采用了iOS 7风格。
|
||||
Rounded elements have been introduced on artist and profile photos, while navigation and player controls buttons have been given iOS 7-style thin line makeovers.
|
||||
|
||||
Spotify官方说道这种设计风格突出了软件的内容,他们将之比作“*熄掉所有灯光的剧场。*”
|
||||
|
||||
除了吸引你眼球的这些改变,还有一些你可能错过的不易察觉的变化。这包括Open SSL 1.0.x的使用、使用*libavcodec54*来实现本地音乐重放以及播放曲目变化时对本地系统通知的调用支持。
|
||||
|
||||
现在,该软件已不再提供32位的版本。
|
||||
|
||||
如果长期处于预览阶段,Linux下的本土化Spotify客户端将**支持免费和订阅账户**。
|
||||
|
||||
### 安装Spotify ###
|
||||
|
||||
要在Ubuntu 14.04 LTS上安装Spotify,你可以打开terminal终端,然后输入下面的命令。
|
||||
|
||||
首先将Spotify官方的软件仓库添加到你的软件源列表中:
|
||||
|
||||
sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" > /etc/apt/sources.list.d/spotify.list'
|
||||
|
||||
添加该软件仓库的安全密钥来避免不必要的错误:
|
||||
|
||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
|
||||
|
||||
最后,更新并且安装Spotify:
|
||||
|
||||
sudo apt-get update && sudo apt-get install spotify-client-qt
|
||||
|
||||
安装完成后就可以从Dash启动Spotify了。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.omgubuntu.co.uk/2014/05/spotify-linux-preview-update-new-design
|
||||
|
||||
译者:[JonathanKang](https://github.com/JonathanKang) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
@ -0,0 +1,25 @@
|
||||
用WinAte主题包将Ubuntu/Debian Jessie变成Windows 7/Windows 8
|
||||
================================================================================
|
||||

|
||||
|
||||
**WinAte最近刚刚收到一个更新,这个主题包能够将你的Ubuntu/Debian变得看起来像Windows 7/Windows 8。**
|
||||
|
||||
曾经有段时间你可以轻易地改变绝大多数Linux发行版的外观,使得他们看起来像是Windows的一个副本,但那种时光已经一去不复返了。只有少数Linux发行版的外观仍能够被修改,而Ubuntu和Debian Jessie正在此列。
|
||||
|
||||
官网说明道:“有了这个全新的WinAte ———— Windows 7/8 转换包for LXDE(译注:Lightweight X11 Desktop Environment,一个自由桌面环境),你能够得到Windows所有的图标和整体外观,而不用花费大量的资源或者不得不去适应老旧的Gnome 2主题。只需运行install.sh脚本,所有东西就能工作。只需这么做,然后注销,再次登录即可。”
|
||||
|
||||
这个主题包有一些很容易满足的依赖:gtk2-engines-murrine,gtk2-engines-pixbuf,以及 compton。安装过程十分简单,安装说明所有人也都能够轻易理解。
|
||||
|
||||
这个主题包就外观来说可能最接近于用户长期以来习惯的Windows 7或Windows 8,但它可以用来帮助人们更容易地迁移到Linux。
|
||||
|
||||
你可以从[gnome-look.org][1]下载WinAte ————Windows 7/8主题包。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://news.softpedia.com/news/Turn-Ubuntu-and-Debian-Jessie-into-Windows-7-and-Windows-8-with-WinAte-Theme-Pack-443302.shtml
|
||||
|
||||
译者:[alim0x](https://github.com/alim0x) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://gnome-look.org/content/show.php/%5BLXDE%5DWinAte+-+Windows+7%2B8+Theme+pack?content=163150
|
@ -1,54 +0,0 @@
|
||||
Java中8个顶级开源NoSQL数据库!
|
||||
================================================================================
|
||||

|
||||
|
||||
NoSQL正在崛起.许多企业和用户已经将MySQL数据库替换成了NoSQL版本。NoSQL使分析非结构化的数据变得更容易,因此开发者必须意识到存在于NoSQL世界中的趋势和工具。
|
||||
|
||||
#### 1.[Terrastore][1] ####
|
||||
|
||||
现在文档存储可以提供先进的伸缩性和弹性而不必牺牲一致性。Terrastore基于Trrracotta,所以它依赖于一个业界公认的,快速的(而且又酷)集群技术。
|
||||
|
||||
#### 2.[Neo4j][2] ####
|
||||
|
||||
开源图形数据库,用Java实现。开发者将Neo4j描述为“嵌入式,基于磁盘,完全事务Java持久引擎,将数据结构化存储在图形中而不是在表格中”
|
||||
|
||||
#### 3.[Voldemort][3] ####
|
||||
|
||||
分布式键值存储系统。它只是一个大型,分布式,持久的,容错哈系表。对于应用,它可以使用O/R映射工具像active-record或者hibernate,这些可以提供水平扩展和更高的可用性但是会损失巨大的便利性。
|
||||
|
||||
#### 4.[HBase][4] ####
|
||||
|
||||
Apache HBase是在Google的Chang et al开发的分布式存储系统Bigtable之后的另一个开源分布式,版本化非关系型数据库。
|
||||
|
||||
#### 5.[InfoGrid][5] ####
|
||||
|
||||
Web图形数据库带有很多额外的软件组件,使在图形基础上开发Rest-fu的web应用变得很容易。
|
||||
|
||||
#### 6.[HyperGraphDB][6] ####
|
||||
|
||||
通用的、可扩展、便携、嵌入式、开源数据存储机制。它是一个特别为人工智能和web语义项目设计的图形数据库,同样可以用于所有大小项目的嵌入式面向对象数据库。
|
||||
|
||||
#### 7.[Perst][7] ####
|
||||
|
||||
Perst是McObject的开源,双许可证,面向对象的嵌入式数据库系统(ODBMS)。它的一个版本是用Java开发的嵌入式数据库,另外一个用C#实现(对于Microsoft .NET Framework的应用而言)。
|
||||
|
||||
#### 8.[NeoDatis ODB][8] ####
|
||||
|
||||
一个简单的运行在Java、.Net、 Google Android、 Groovy 和 Scala上的对象数据库。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.efytimes.com/e1/fullnews.asp?edid=138992
|
||||
|
||||
译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:https://code.google.com/p/terrastore/
|
||||
[2]:http://www.neo4j.org/
|
||||
[3]:http://www.project-voldemort.com/voldemort/
|
||||
[4]:http://hbase.apache.org/
|
||||
[5]:http://infogrid.org/trac/
|
||||
[6]:http://www.kobrix.com/hgdb.jsp
|
||||
[7]:http://www.mcobject.com/perst/
|
||||
[8]:http://neodatis.wikidot.com/
|
Loading…
Reference in New Issue
Block a user