自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 资源 (7)
  • 收藏
  • 关注

原创 微服务架构

使用清单开发语言:java框架:spring-boot中间件/rpc协议:dubbo/dubbo-rpcrpc管理平台:dubbo-admin操作系统:centos7项目管理:mavenmaven本地私服:nexus(Sonatype Nexus™ 2.11.2-03) 监控报警:cat消息队列:RabbitMQ,kafka定时任务管理:cronsun...

2018-05-02 13:28:59 202

原创 mac os x el capitan 10.11 对系统文件的读写权限问题

今日升级了os 10.11 发现不管普通管理员还是root 都不能更改系统文件的读写权限与更改组权限比如 /usr/lib/php/extensions/ 目录死活都修改不了。找了几个方法第1方法 :终端输入>sudo nvram boot-args="rootless=0">sudo reboot  //重启第2方法 :终端输入>sudo nv

2015-10-09 19:50:42 11633 2

原创 mac os 搭建golang与使用eclipse插件开发golang

1.下载:golang安装包:https://code.google.com/p/go/downloads/detail?name=go1.1.2.darwin-amd64.pkg&can=2&q=eclipse 工具:http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/keplersr1 

2013-11-28 10:59:31 5217

原创 ios,xmpp 添加好友与好友请求处理

XMPPStream *xmppStream; XMPPReconnect *xmppReconnect; XMPPRoster *xmppRoster;//用户对象//需要添加的对象 //添加好友 #pragma mark 加好友- (void)XMPPAddFriendSubscribe:(NSString *)name{ //XMPP

2012-11-27 15:45:03 22278 9

原创 MPMoviePlayerViewController 问题

- (void)playVideo:(NSString*)url{ NSLog(@"play~"); if(![PlayUrl isEqualToString:url]){ playerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL f

2012-04-09 16:22:00 2309

原创 点击按钮使用线程执行UIActivityIndicatorView

@interface ViewController : UIViewController {UIActivityIndicatorView *ActivityView;}-(void)ActivityLoad;-(IBAction)ClickSubmit:(id)sender;@end-(void)ActivityLoad{ ActivityView = [[UIAc

2012-04-07 16:48:41 982

原创 自定义UITabBar 背景图片

@interface testViewController :UIViewController UITabBarDelegate>{    IBOutlet UITabBar *NavTabBar;}NavTabBar.backgroundImage=[UIImageimageNamed:@"bg.png"];

2012-04-07 16:41:13 764

原创 nginx 400 Bad Request

nginx  400 Bad Request  应该是COOKIE 过多造成, 清理一下COOKIE  ,搞定

2011-09-08 11:26:06 776

翻译 curl 抓取google简体中文

<br /><?phpheader("Content-Type: text/html;charset=utf-8");$content="中国人民银行";$url = "http://www.google.com.hk/search?hl=zh-CN&source=hp&q={$content}&btnG=Google+%E6%90%9C%E7%B4%A2&meta=lr%3Dlang_zh-CN&aq=f&aqi=&aql=&oq=&gs_rfai=";$cookie_file = "go

2011-03-22 13:42:00 2393 1

原创 分隔连续数字

$data = array(0,1,2,3,6,7,8,9,10,12,14,16,17,18,19,20,23,28,29,30,35,36,37);//print_r($data);$y=0;foreach($data as $key=>$value){$i=($key-1==-1)?0:$data[$key-1];if($i==($value-1)){//echo $j.$y."";$str[$y][]=$value;}else{$y++;$str[$y][]=$value;}}print_r($st

2011-01-24 15:33:00 624

原创 mysql 系统库

<br /><br />//information_schema系统数据库 <br />//Tables 系统表<br />//Columns 字段表<br /> <br />//查询表的主键<br />select b.COLUMN_NAME,b.COLUMN_KEY from information_schema.Tables a<br />join information_schema.Columns b on a.TABLE_NAME=b.TABLE_NAME<br />where a.TABLE_

2011-01-14 17:11:00 729

翻译 Diffie-Hellman密钥交换

<br /> //header('Content-Type:text/html;charset=utf-8'); //include Diffie Hellman functions require_once 'Crypt/DiffieHellman.php'; //set the required options for two subjects $subject_1 = array('prime'=>'1234567', 'generator'=>'7',

2011-01-11 10:18:00 1763

原创 CodeIgniter,smarty的使用

lang->load('error', 'cn'); echo $this->lang->line('language_key'); } function index() {// $this->output->cache(1); $this->load->library('cismarty'); $dir=array( 'template_dir' => ROOT . '/template/', 'compile_dir' => ROOT . '/templa

2011-01-05 10:46:00 1185

原创 CodeIgniter整合smarty

CodeIgniter整合smarty,实现view与代码分离(根目录平级)iapp/libraries/CISmarty.php

2011-01-05 10:37:00 1756

原创 mac.Eclipse编码utf-8和php语法高亮。

编码:编好设置-》General-》Content Types-》右侧(Text)点开-》设置自己用到的文件类型变量高亮:编好设置-》php-》Editor-》Syntax Coloring-》右侧(Syntax Element)-》选择Variable(变量)右边有设定

2010-12-25 13:48:00 2118

原创 php判断是否有权限下载

<?phpif($_GET['id']==2){ //$file_name = "info_check.exe"; //$file_dir = "/public/www/download/"; $dir='maze.png'; if (!file_exists($dir)) { //检查文件是否存在 echo "文件找不到"; exit; } else { $file

2010-12-21 15:21:00 1731

原创 php,httpbasic验证

<br />function authenticate() { header('WWW-Authenticate: Basic realm=""'); header('HTTP/1.0 401 Unauthorized'); echo "You must enter a valid login ID and password to access this resource/n"; exit;}if (addslashes($_SERVER['PHP_AUT

2010-12-20 11:39:00 2019

原创 tomcat安全管理策略

在使用apache.xmlrpc和jdbc碰到tomcat安全问题HTTP Status 500 -type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionjavax.servlet.ServletException: Could not initialize class org.apa

2010-12-17 18:44:00 2871

原创 .properties读取

String DBhost="";int selectCount;        Properties prop = new Properties();        InputStream in;        in = getClass().getResourceAsStream("a.properties");//平级,classes下        prop.load(in);        Set keyValue = prop.keySet();        for (Iterator it

2010-12-15 18:20:00 598

原创 servlet目录结构

<br />serlvet--------index.jsp<br />|<br />----WEB-INF----classes----*.java *.class<br />                                  |              |<br />  |              ----test---hello.java  hello.class<br />  |<br />  ----web.xml<br /> <br />web.xml<br /> <br /

2010-12-15 18:05:00 1936

原创 php递归显示数据集合

$array=Array( 0 => Array("id" => 329, "parent" => -1,"name" => "web", "user_id" => 3 ), 1 => Array("id" => 330, "parent" => 329, "name" => "php","user_id" => 3), 2 => Array("id" => 336,"parent" => 329,"name" => "nginx","user_id" => 3),

2010-12-14 15:29:00 1526

原创 ubuntu iptables重定向

<br />iptables -t nat -A PREROUTING -i eth0 -p tcp --dport http -j REDIRECT --to-ports 8080

2010-12-13 14:18:00 1347

原创 mac下php(fastcgi)使用

sudo port install php5 +fastcgi fcgi sudo port install php5-mysql php5-pgsql php5-iconv php5-sockets php5-memcached php5-imagick php5-mongo php5-openssl php5-mbstring 一般mac守护进程都放在  ~/Lib

2010-12-13 11:45:00 3942

原创 postgresql命令行

postgresql操作命令行

2010-12-13 10:49:00 2866

原创 mac下mysql使用

<br /><br />#sudo port search mysql<br />#sudo port install mysql5<br />......<br />......<br />mysqlserver-stop:<br />sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop<br /> <br />mysqlserver-start:<br />sudo /Library/StartupItems/MySQLCOM/MySQLCOM start<

2010-12-13 10:47:00 849

原创 nginx配置

<br /> <br />图片不存在则跳转<br />        location /img_test {<br />                root   /var/www;<br />                if ($request_filename ~ //var//www//img_test//(.*)) {<br />                        set $img_url $1;<br />                        set $error_h

2010-12-13 10:37:00 498

原创 potgresql-WITH RECURSIVE与refcursor

//potgresql7.8以上支持的递归WITH RECURSIVE t(n) AS ( SELECT 1 UNION ALL SELECT n+1 FROM t)SELECT n FROM t LIMIT 100;参考:http://www.postgresql.org/docs/8.4/static/queries-with.html//创建plpgsql过程语言create LANGUAGE 'plpgsql' //返回整个表的数据使用游标(

2010-12-10 13:31:00 1008

原创 xmlrpc使用

IXR_Server(array( 'i.h' => 'this:sayHello', 'i.get' => 'this:set_get', 'i.echos' => 'this:echos', 'i.arr' => 'this:return_array' )); } function set_get($get) { $g1=$get[0]; $g2=$get[1]; $g3=$ge

2010-12-09 18:29:00 1372

翻译 xmlrpc类

<br /><br /><?php/** * IXR - The Inutio XML-RPC Library * * @package IXR * @since 1.5 * * @copyright Incutio Ltd 2002-2005 * @version 1.7 (beta) 23rd May 2005 * @author Simon Willison * @link http://scripts.incutio.com/xmlrpc/ Site *

2010-12-09 18:17:00 1640

原创 Map判断值类型

<br />判断值类型函数<br />private static String print_pk(Map hm){ String sqlKeyAndValue=""; String value=""; Set s = hm.entrySet(); Iterator i = s.iterator(); while(i.hasNext())

2010-12-09 18:12:00 3966

原创 java,返回多类型数组

<br /> <br />xmlrpc 返回object多类型数组<br /> public Object database(int id) { Object[][] rowData=new Object[5][]; String html=new String(); try { // The newInstance() call is a work around

2010-12-07 17:19:00 1719

原创 base64解码编码

编码代码: FileInputStream fileForInput = new FileInputStream( "/var/www/servlet/1.png"); String content = new String(); byte[] bytes = new byte[fileForInput.available()]; fileForInput.read(bytes); content = new sun.misc.

2010-12-04 16:01:00 776

原创 servlet与php的xmlrpc

#sudo apt-get install sun-java6-jdk sun-java6-fonts sun-java6-plugin#sudo vim /etc/environmentJAVA_HOME=/usr/lib/jvm/java-6-openjdk/PATH=/usr/share/tomcat6/lib/xmlrpc-server-3.1.3.jar:/usr/share/tomcat6/lib/xmlrpc-client-3.1.3.jar:/usr/share/tomcat6/

2010-12-04 14:55:00 1677

windows下magic mouse2和magic trackpad2的驱动

最新换操作系统找了一些发现都不行,自己网上找了,亲测win10 专业版可以使用magic mouse2滚动,

2018-05-02

27款后台html代码

管理页面设计: 演示: http://www.websjy.com/club/websjy_index/div_css_js/1249562629_61040268/index.htm http://www.websjy.com/club/websjy_index/div_css_js/1249562930_99810268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563002_83490268/ http://www.websjy.com/club/websjy_index/div_css_js/login_admin_green/ http://www.websjy.com/club/websjy_index/div_css_js/admin/ http://www.websjy.com/club/websjy_index/div_css_js/1249563374_71050268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563415_19810268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563501_51950268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563102_40480268/index.htm .........  总共有27款不同的,可能会用上

2011-03-21

27款后台html代码

27款后台html代码 我用的MAC编码可能有点问题打不开说明一下我改正

2010-11-12

27款后台管理页面设计(3)

管理页面设计: 演示: http://www.websjy.com/club/websjy_index/div_css_js/1249562629_61040268/index.htm http://www.websjy.com/club/websjy_index/div_css_js/1249562930_99810268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563002_83490268/ http://www.websjy.com/club/websjy_index/div_css_js/login_admin_green/ http://www.websjy.com/club/websjy_index/div_css_js/admin/ http://www.websjy.com/club/websjy_index/div_css_js/1249563374_71050268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563415_19810268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563501_51950268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563102_40480268/index.htm .........  总共有27款不同的,可能会用上

2010-10-14

27款后台管理页面设计(2)

管理页面设计: 演示: http://www.websjy.com/club/websjy_index/div_css_js/1249562629_61040268/index.htm http://www.websjy.com/club/websjy_index/div_css_js/1249562930_99810268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563002_83490268/ http://www.websjy.com/club/websjy_index/div_css_js/login_admin_green/ http://www.websjy.com/club/websjy_index/div_css_js/admin/ http://www.websjy.com/club/websjy_index/div_css_js/1249563374_71050268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563415_19810268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563501_51950268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563102_40480268/index.htm .........  总共有27款不同的,可能会用上

2010-10-14

27款后台管理页面设计(1)

管理页面设计: 演示: http://www.websjy.com/club/websjy_index/div_css_js/1249562629_61040268/index.htm http://www.websjy.com/club/websjy_index/div_css_js/1249562930_99810268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563002_83490268/ http://www.websjy.com/club/websjy_index/div_css_js/login_admin_green/ http://www.websjy.com/club/websjy_index/div_css_js/admin/ http://www.websjy.com/club/websjy_index/div_css_js/1249563374_71050268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563415_19810268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563501_51950268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563102_40480268/index.htm .........  总共有27款不同的,可能会用上

2010-10-14

27款后台管理页面设计

管理页面设计: 演示: http://www.websjy.com/club/websjy_index/div_css_js/1249562629_61040268/index.htm http://www.websjy.com/club/websjy_index/div_css_js/1249562930_99810268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563002_83490268/ http://www.websjy.com/club/websjy_index/div_css_js/login_admin_green/ http://www.websjy.com/club/websjy_index/div_css_js/admin/ http://www.websjy.com/club/websjy_index/div_css_js/1249563374_71050268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563415_19810268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563501_51950268/ http://www.websjy.com/club/websjy_index/div_css_js/1249563102_40480268/index.htm .........  总共有27款不同的,可能会用上 这压缩包可能有问题新 连接 http://download.csdn.net/source/3113325

2010-10-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除