<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[A532218900的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/A532218900</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; A532218900]]></copyright><item><title><![CDATA[Logger和Exception]]></title><link>https://blog.csdn.net/A532218900/article/details/84876691</link><guid>https://blog.csdn.net/A532218900/article/details/84876691</guid><author>A532218900</author><pubDate>Tue, 14 Mar 2017 10:18:38 +0800</pubDate><description><![CDATA[
public class PayException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2373806520202646197L;

	/**
	 * 异常消息号
	 */
	private int msgId;

	/**
	 * 一般性错误，依...]]></description><category></category></item><item><title><![CDATA[自发自收以及多对一朋友圈mq]]></title><link>https://blog.csdn.net/A532218900/article/details/84860111</link><guid>https://blog.csdn.net/A532218900/article/details/84860111</guid><author>A532218900</author><pubDate>Fri, 10 Mar 2017 14:18:56 +0800</pubDate><description><![CDATA[
 @Override
    public void onMessage(Message message, Channel channel) throws Exception {
        RabbitMQMsg rabbitMQMsg = SerializationUtils.deserialize(message.getBody());
        if (rabbitMQ...]]></description><category></category></item><item><title><![CDATA[SimpleCache]]></title><link>https://blog.csdn.net/A532218900/article/details/84858173</link><guid>https://blog.csdn.net/A532218900/article/details/84858173</guid><author>A532218900</author><pubDate>Mon, 27 Feb 2017 15:55:24 +0800</pubDate><description><![CDATA[
缓存现在用的已经比较多了，现存的缓存我们有redis，memcached。
现在我们接触一下本地缓存。SimpleCache，主要用于小量，并且长时间不变的。好处是：不走协议，很快
应用类中有GameAuthorizedServiceImpl。
http://iamzhongyong.iteye.com/blog/2038982
@Override
	public List&amp;lt;F...]]></description><category></category></item><item><title><![CDATA[dto]]></title><link>https://blog.csdn.net/A532218900/article/details/84858117</link><guid>https://blog.csdn.net/A532218900/article/details/84858117</guid><author>A532218900</author><pubDate>Mon, 27 Feb 2017 13:26:48 +0800</pubDate><description><![CDATA[http://www.cnblogs.com/scy251147/p/3614187.html]]></description><category></category></item><item><title><![CDATA[MD5加密]]></title><link>https://blog.csdn.net/A532218900/article/details/84858097</link><guid>https://blog.csdn.net/A532218900/article/details/84858097</guid><author>A532218900</author><pubDate>Mon, 27 Feb 2017 11:04:26 +0800</pubDate><description><![CDATA[
采用二次加盐策略生成消息摘要：
public final class MD5SignUtil {
 
public static void main(String[] args) throws Exception {
System.out.println(generateSignature(&quot;netease_webemail&quot;, &quot;：【广州爆炸因货柜车装卸引起伤者增至36人】记者从有关...]]></description><category></category></item><item><title><![CDATA[ddb分库分表数据库]]></title><link>https://blog.csdn.net/A532218900/article/details/84858092</link><guid>https://blog.csdn.net/A532218900/article/details/84858092</guid><author>A532218900</author><pubDate>Mon, 27 Feb 2017 11:01:00 +0800</pubDate><description><![CDATA[http://www.iteye.com/news/32029]]></description><category></category></item><item><title><![CDATA[格式化]]></title><link>https://blog.csdn.net/A532218900/article/details/84823024</link><guid>https://blog.csdn.net/A532218900/article/details/84823024</guid><author>A532218900</author><pubDate>Tue, 25 Oct 2016 09:12:17 +0800</pubDate><description><![CDATA[
先来说一下Java中项目常用的日期格式化。
一般呢我们都采用SimpleDateFormat sd = new SimpleDateFormat(&quot;String pattern&quot;);
public void testCalendar(){
        Calendar c1 = Calendar.getInstance();
        c1.setTime(new Date(...]]></description><category></category></item><item><title><![CDATA[Python伪科学]]></title><link>https://blog.csdn.net/A532218900/article/details/84822445</link><guid>https://blog.csdn.net/A532218900/article/details/84822445</guid><author>A532218900</author><pubDate>Thu, 20 Oct 2016 21:30:23 +0800</pubDate><description><![CDATA[
1.Python切片
a = [ 1, 2, 3, 4, 5, 6 ]
x = a [ 1 : 5 ] #  x = a.__getitem__( slice ( 1, 5, None ) )
a [ 1 : 3 ] = [10, 11, 12 ]#  a.__setitem__( slice ( 1, 3, None ), [ 10, 11, 12 ] )
del a [ 1 : 4...]]></description><category></category></item><item><title><![CDATA[python函数]]></title><link>https://blog.csdn.net/A532218900/article/details/84822444</link><guid>https://blog.csdn.net/A532218900/article/details/84822444</guid><author>A532218900</author><pubDate>Thu, 20 Oct 2016 21:30:20 +0800</pubDate><description><![CDATA[
1.在Python中定义函数，可以用必选参数、默认参数、可变参数和关键字参数，这4种参数都可以一起使用，或者只用其中某些，但是请注意，参数定义的顺序必须是：必选参数、默认参数、可变参数和关键字参数。
def func(a, b, c=0, *args, **kw):
    print 'a =', a, 'b =', b, 'c =', c, 'args =', args, 'kw ='...]]></description><category></category></item><item><title><![CDATA[python小知识点]]></title><link>https://blog.csdn.net/A532218900/article/details/84822433</link><guid>https://blog.csdn.net/A532218900/article/details/84822433</guid><author>A532218900</author><pubDate>Thu, 20 Oct 2016 19:29:23 +0800</pubDate><description><![CDATA[
1.python中__init__ 和__new__方法有什么不同的呢？
    
# -*- coding: utf-8 -*-
class Person(object):
    &quot;&quot;&quot;Silly Person&quot;&quot;&quot;
    def __init__(self, name, age):
        self.name = name
        self.age = a...]]></description><category></category></item><item><title><![CDATA[|管道与>重定向]]></title><link>https://blog.csdn.net/A532218900/article/details/84808936</link><guid>https://blog.csdn.net/A532218900/article/details/84808936</guid><author>A532218900</author><pubDate>Wed, 06 Jul 2016 16:41:06 +0800</pubDate><description><![CDATA[
命令 | 可以将一个命令的输出作为另一个命令的输入。
 
rpm -qa|grep licq这条命令使用一个管道符“|”建立了一个管道。管道将rpm -qa命令的输出（包括系统中所有安装的RPM包）作为grep命令的输入，从而列出带有licq字符的RPM包来。
 
命令 | 提供了两个进程之间通信的途径。
 
————————————————————————————————————...]]></description><category></category></item><item><title><![CDATA[linux命令--rpm和deb]]></title><link>https://blog.csdn.net/A532218900/article/details/84808842</link><guid>https://blog.csdn.net/A532218900/article/details/84808842</guid><author>A532218900</author><pubDate>Tue, 05 Jul 2016 22:00:43 +0800</pubDate><description><![CDATA[
RPM 是 Red Hat Package Manager 的缩写，本意是Red Hat 软件包管理，顾名思义是Red Hat 贡献出来的软件包管理；在Fedora 、Redhat、Mandriva、SuSE、YellowDog等主流发行版本，以及在这些版本基础上二次开发出来的发行版采用；
RPM包里面都包含什么？里面包含可执行的二进制程序，这个程序和Windows的软件包中的.exe文件类...]]></description><category></category></item><item><title><![CDATA[UFW防火墙的简单配置]]></title><link>https://blog.csdn.net/A532218900/article/details/84808838</link><guid>https://blog.csdn.net/A532218900/article/details/84808838</guid><author>A532218900</author><pubDate>Tue, 05 Jul 2016 21:43:37 +0800</pubDate><description><![CDATA[
安装方法：
sudo apt-get install ufw
启用：
sudo ufw enable
sudo ufw default deny
关闭：
sudo ufw disable
查看防火墙状态：
sudo ufw status
win 7 系统下 ：netsh firewall set opmode disable
netsh firewall set opmod...]]></description><category></category></item><item><title><![CDATA[启用smaba服务]]></title><link>https://blog.csdn.net/A532218900/article/details/84808837</link><guid>https://blog.csdn.net/A532218900/article/details/84808837</guid><author>A532218900</author><pubDate>Tue, 05 Jul 2016 21:40:17 +0800</pubDate><description><![CDATA[
 今天配置下了samba服务。
     虚拟机系统： ubuntu 12.04， 64bit。
     虚拟机：vmware9.0
     主机：win7 64bit
     1. 查看win7和ubuntu系统的ip。
     win7: cmd下查看ipconfig。 ipv4为：172.18.88.123
     ubuntu：
     #ifconfig
...]]></description><category></category></item><item><title><![CDATA[hadoop--关于MapReduce]]></title><link>https://blog.csdn.net/A532218900/article/details/84808628</link><guid>https://blog.csdn.net/A532218900/article/details/84808628</guid><author>A532218900</author><pubDate>Mon, 04 Jul 2016 16:26:30 +0800</pubDate><description><![CDATA[
MapReduce任务过程被分为两个阶段：map和reduce。
每个阶段都需要以键/值作为输入和输出，程序员需要定义两个函数map()，和reduce()。
在处理天气预报整个大数据时，我们只对年份和气温这两个属性感兴趣 map函数的输出经由mapreduce框架处理后，最后被发送到reduce函数。这一过程中需要对键/值对进行排序和分组。因此reduce会收到下面的输入：
（1949...]]></description><category></category></item><item><title><![CDATA[linux命令]]></title><link>https://blog.csdn.net/A532218900/article/details/84808624</link><guid>https://blog.csdn.net/A532218900/article/details/84808624</guid><author>A532218900</author><pubDate>Mon, 04 Jul 2016 16:02:10 +0800</pubDate><description><![CDATA[
1.如何将用户设置为管理员（admin）？
sudo vim etc/passwd   将数字id改为i0：0
将 mm:x:0:0::/home/mm: /bin  
2.怎么查看已经安装的软件？
如果检查是否安装了某个软件比如 firefox 
dpkg -s firefox
如果检查所有安装的软件包
dpkg --get-selections 
如果过滤一些力求精确的查找...]]></description><category></category></item><item><title><![CDATA[ sudo 出现unable to resolve host 解决方法]]></title><link>https://blog.csdn.net/A532218900/article/details/84808571</link><guid>https://blog.csdn.net/A532218900/article/details/84808571</guid><author>A532218900</author><pubDate>Mon, 04 Jul 2016 10:37:30 +0800</pubDate><description><![CDATA[
Linux 环境, 假设这台机器名字叫dev(机器的hostname), 每次执行sudo 就出现这个警告讯息:sudo: unable to resolve host dev虽然sudo 还是可以正常执行, 但是警告讯息每次出来还是有点烦人, 而这只是机器在反解上的问题, 所以就直接从/etc/hosts 设定, 让dev(hostname) 可以解回127.0.0.1 的IP 即可./etc...]]></description><category></category></item><item><title><![CDATA[hadoop--初识hadoop]]></title><link>https://blog.csdn.net/A532218900/article/details/84808551</link><guid>https://blog.csdn.net/A532218900/article/details/84808551</guid><author>A532218900</author><pubDate>Sun, 03 Jul 2016 22:28:51 +0800</pubDate><description><![CDATA[
      今天，像互联网应用，科学数据处理，商业智能数据分析等具有海量数据分析的应用变得越来越普遍时，掌握Google文件系统或者MapReduce编程模型这样的技术已经成为一种趋势。在这样的前景下，实现MapReduce编程模型的Hadoop开源系统自然而然成为大家一种合理的选择了。
      MapReduce之所以受到大家的欢迎是因为技术上有三点又是：
1）采用无共享大规模集群系...]]></description><category></category></item><item><title><![CDATA[动态规划--最长公共子序列，最长公共子串]]></title><link>https://blog.csdn.net/A532218900/article/details/84807121</link><guid>https://blog.csdn.net/A532218900/article/details/84807121</guid><author>A532218900</author><pubDate>Tue, 21 Jun 2016 14:36:28 +0800</pubDate><description><![CDATA[[size=medium]
问题描述：求最长公共子序列
最长公共子序列（LCS）定义：
一个数列 S，如果分别是两个或多个已知数列的子序列，且是所有符合此条件序列中最长的，则 S 称为已知序列的最长公共子序列。比如数列str1 = “Tom Hanks”, str2 = “Hankcs”. 那么两个数列的公共子序列是&quot;Hanks&quot;. 
最长公共子序列和最长公共子字符串是有区别的，公共子序列...]]></description><category></category></item><item><title><![CDATA[动态规划--m个苹果放入n个盘子问题]]></title><link>https://blog.csdn.net/A532218900/article/details/84807063</link><guid>https://blog.csdn.net/A532218900/article/details/84807063</guid><author>A532218900</author><pubDate>Tue, 21 Jun 2016 09:40:29 +0800</pubDate><description><![CDATA[[size=medium]问题描述：
把M个同样的苹果放在N个同样的盘子里，允许有的盘子空着不放，问共有多少种不同的分法？（用K表示）5，1，1和1，5，1 是同一种分法。
 
输入
每个用例包含二个整数M和N。0...]]></description><category></category></item></channel></rss>