摘要:
Windows PHP5+Apache2.2解决方法:打开php.ini找到:extension=php_xsl.dllextension=php_zip.dll将其前面的';'去掉。找到:zlib.output_compression = On将Off改为On。重启Apache! 阅读全文
摘要:
1:activity_main.xml 2:MainActivity.javapackage com.example.async;import android.os.AsyncTask;import android.os.Bundle;import android.view.View;import android.widget.ProgressBar;import android.widget.TextView;import android.app.Activity;public class MainActivity extends Activity { pri... 阅读全文
摘要:
expandableListView.setOnGroupExpandListener(new OnGroupExpandListener(){ @Override public void onGroupExpand(int groupPosition) { //保证每次只展开一组 int count=expandableListView.getExpandableListAdapter().getGroupCount(); for(int i=0;i<coun... 阅读全文
摘要:
//隐藏输入键盘 ((InputMethodManager)getSystemService(INPUT_METHOD_SERVICE)) .hideSoftInputFromWindow(BshToolsActivity.this.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); 阅读全文
摘要:
#vim /etc/mysql/my.cnf找到[mysqld]添加character-set-server = utf8重启mysql#restart mysqlmysql> show variables like 'character%' ;+--------------------------... 阅读全文
摘要:
/** * 采用字符流读取写入文本文件 */public class FileUtil { /** * 写文件 * @param fileName * @param content */ public static void writeFile(String fileName, String content){ FileWriter output = null; BufferedWriter writer = null; try{ output = new FileWriter(... 阅读全文
摘要:
1:我的 jdk与jre默认安装在:D:\Program Files\Java2:配置环境变量(系统变量):(1)新建JAVA_HOME(2)新建CLASSPATH(3)编辑Path,%JAVA_HOME%\bin;在最前面添加否则在命令行中执行javac会提示不是内部或外部命令 阅读全文
摘要:
$ sudo vim /etc/apache2/sites-enabled/000-default将Options后面Indexes前面加上"-"表示禁止目录浏览: Options -Indexes......然后重启apache$sudo service apache2 restart 阅读全文
摘要:
Theconnectiontoadbisdown,andasevereerrorhasoccured. YoumustrestartadbandEclipse.Pleaseensurethatadbiscorrectlylocatedat ....解决方法:(1):打开CMD,进入:>adt-bundle-windows-x86-20131030\sdk\platform-tools>adb.exe kill-server提示:* server not running *>adt-bundle-windows-x86-20131030\sdk\platform-tools&g 阅读全文
摘要:
一:建立sequence-- Create sequence create sequence SEQ_PUSHminvalue 1maxvalue 9999999999start with 1increment by 1cache 20;二:建立Trigger 在向t_push表中插入一条数据时,ID自动赋值create or replace trigger tr_id_insert before insert on t_push for each rowdeclare -- local variables herebegin select seq_user_id.nextval... 阅读全文