2013年5月23日
摘要: 下面是我建立xdebug的全过程(简)1、预备sudo apt-get install php5sudo apt-get install php5-dev php5-clisudo apt-get install php5-xslsudo apt-get install perlsudo pecl install xdebug //顺便说一下,装redis 也可一类似sudo apt-get install php-pear...2、在/etc/php5/apache/php.ini 里面添加如下zend_extension="/usr/lib/php5/20090626+lfs/x 阅读全文
posted @ 2013-05-23 17:27 lsl8966 阅读(204) 评论(0) 推荐(0)
  2013年5月21日
摘要: 在很多时候,我们都要自己下载软件安装,通过这种安装方式安装后,不会自动生成桌面快捷图标,一般都通过安装目录下的可执行文件来启动软件,这种启动很傻B,每次去找安装目录麻烦不说,打开的当前terminal 一旦关闭,当前打开的进程就被杀死,那么,下面我将以phpstorm为例介绍怎样创建快捷方式1、到官网下载安装包,这里我不细说,注意下载对应版本就行了2、创建以phpstrom.desktop命名的文件,内容如下 [Desktop Entry]Categories=Development;Comment[zh_CN]=Comment=Exec=/home/lm/soft/PhpStorm-1... 阅读全文
posted @ 2013-05-21 09:40 lsl8966 阅读(534) 评论(0) 推荐(0)
  2013年3月27日
摘要: 如果你在Ubuntu下用android手机开发android应用时,手机无法在eclipse中正确识别,导致无法正常安装调试android应用,结合一些网友部分资料,我重新整理如下:方案一:1、插上手机,关闭eclips2、进入android-sdk 安装目录 如:/soft/adt-bundle-linux-x86-20130219/sdk/platform-tools3、执行./adb devices 查看已经连接设备,结果如下,如下有第二项说明,已识别,否则List of devices attachedemulator-5554 device -----模拟器4、执行 sudo ... 阅读全文
posted @ 2013-03-27 12:54 lsl8966 阅读(298) 评论(0) 推荐(0)
摘要: 1、删除项目中的gen目录2、重新 Project >> Clean3、重新安装4、等待后 OK 阅读全文
posted @ 2013-03-27 12:46 lsl8966 阅读(3411) 评论(0) 推荐(0)
  2013年3月14日
摘要: <?php/*** 基本图片处理,用于完成图片缩入,水印添加* 当水印图超过目标图片尺寸时,水印图能自动适应目标图片而缩小* 水印图可以设置跟背景的合并度** Copyright(c) 2005 by ustb99. All rights reserved** To contact the author write to {@link mailto:ustb80@163.com}** @author 偶然* @version $Id: thumb.class.php,v 1.9 2006/09/30 09:31:56 zengjian Exp $* @package system*/.. 阅读全文
posted @ 2013-03-14 20:26 lsl8966 阅读(384) 评论(0) 推荐(0)
摘要: #!/bin/sh#${1}ffmpeg -threads 4 -i ${2} -vf "movie=${1}logo.png [watermark];[in][watermark] overlay=main_w-overlay_w-10:12 [out]" ${4} && #${1}ffmpeg -i ${4} -y -f image2 -t 0.001 ${3}&&echo 1ff=$(${1}ffmpeg -i ${2} 2>&1) d="${ff#*Video: }" size=$(echo $d|a 阅读全文
posted @ 2013-03-14 11:54 lsl8966 阅读(580) 评论(0) 推荐(0)
  2013年2月19日
摘要: <?php/** * XML */class CreateThreadId extends DOMDocument{ private $charcters = array(); /* 解析出来的数组下标 */ private $values = array(); /* 解析出来的数组键值 */ private $result = ""; /** * 构造函数:读取指定的XML文件 */ function __construct() { $this->load( DIR.'config/cont... 阅读全文
posted @ 2013-02-19 18:32 lsl8966 阅读(787) 评论(0) 推荐(0)
  2013年2月18日
摘要: header('Content-type: text/html; charset=UTF-8');$json = new Services_JSON();echo $json -> encode(array('error' => 0, 'url' => $file_url));<?php/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: *//** * Converts to and from JSON format. * * JSON (JavaScri 阅读全文
posted @ 2013-02-18 21:12 lsl8966 阅读(388) 评论(0) 推荐(0)
  2013年2月7日
摘要: $uri = 'http://localhost/ToyTest/X17-45990_1.dmg';echo remote_filesize($uri);function remote_filesize($uri,$user='',$pw=''){ ob_start(); $ch = curl_init($uri); curl_setopt($ch,CURLOPT_HEADER, 1); curl_setopt($ch,CURLOPT_NOBODY, 1); if (!empty($user)&& !empty($pw)){ $h 阅读全文
posted @ 2013-02-07 10:54 lsl8966 阅读(288) 评论(0) 推荐(0)
  2013年1月22日
摘要: 1 package com.phone; 2 3 import java.io.ByteArrayOutputStream; 4 import java.io.IOException; 5 import java.io.InputStream; 6 import java.io.UnsupportedEncodingException; 7 import java.util.ArrayList; 8 import java.util.List; 9 import java.util.Map; 10 11 import org.apache.http.HttpRespon... 阅读全文
posted @ 2013-01-22 09:11 lsl8966 阅读(355) 评论(0) 推荐(0)