`
kanpiaoxue
  • 浏览: 1745981 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
  关闭掀盖自动开机命令: sudo nvram AutoBoot=%00 恢复命令: sudo nvram AutoBoot=%03
    package org.kanpiaoxue.tree; import org.apache.commons.collections.CollectionUtils; import com.google.common.base.Splitter; import com.google.common.collect.Lists; import java.util.List; import java.util.Queue; import javax.swing.tree.DefaultMutableTreeNode; /** * tree的示例 ...
    //当前页   int intPage = Integer.parseInt((page == null || page == "0") ? "1":page);   //每页显示条数   int number = Integer.parseInt((rows == null || rows == "0") ? "10":rows);   //每页的开始记录  第一页为1  第二页为number +1    int start = (intPage-1)*number;     // SQ ...

mysql使用小技巧

 
linux的shell下查看mysql中文乱码,中文的字符集是UTF-8。解决方案: mysql> set names utf8; 让mysql的行数据显示竖起来,方便观看:select * from tb_task where task_id = 1\G;
  导出: Display the snippets view: Window -> Show View -> Other ... -> General -> Snippets Right click in snippets view -> Customize ... Select Snippet Category Export   导入,也是在该页面操作。有导入的按钮。
  有的时候需要从一个eclipse导出它的所有配置,比如:定义好的快捷键、代码风格,可以使用eclipse提供的工具。 步骤如下: 写道 File->Export...->General->Preferences, then choose to "Export all" your preferences or just the "Keys Preferences"; make sure to point out the file where you want your preferences to be saved, and ...
    https://www.ipaddress.com/  
  mac默认的.txt文件打开方式不是sublime。该如何设置呢?(其他的文本编辑器同样有效) 方法如下: Right click file in finder, select “show info”. Go to the “Open with” section and select Sublime Text 2 then click the “change all” button. 鼠标右键点击需要打开的文件,选择“显示简介”。在“打开方式”的选项中选择“sublime”并且点击“全部更改”的按钮。 这样.txt类型的文件都使用sublime打开。  
    现在jdk的版本升级太快,eclipse的升级也是紧跟jdk的版本。那么eclipse和jdk的版本关系是如何的? 可以查看官网地址: https://wiki.eclipse.org/Eclipse/Installation  
  不想被各个应用的通知打扰,比如:钉钉蹦出的消息提醒。但是又想关注到有新的信息来到。 有个方法很简单,让通知的更新仅仅更新程序坞的消息数量即可。 操作方法: “系统偏好设置” -> “通知” -> 找到需要显示通知数量的应用APP,选择“允许通知”,只打开里面的“标记App图标”即可,其他的通知形式的选项关闭。  
    参考文章: https://medium.com/ayuth/new-tab-iterm2-with-in-current-directory-627b0c31734a   通过如下的操作,可以在新开窗口、tab和分隔窗口的时候都是用当前会话的目录。 操作路径: “Preferences → Profiles → General → Working Directory → Advanced Configuration” 点击“Edit”按钮弹出窗口,在里面选择3个选项“...New Windows”、“...New Tabs”和“...New Split Panes”都选择“ ...
  在mac里面安装好java之后需要设置JAVA_HOME的时候需要找到java的安装位置,下面的命令可以找到java的安装位置: /usr/libexec/java_home -V    
  参考资料:https://help.aliyun.com/document_detail/60750.html 如果是mac可以直接在Docker Desk 里面直接配置,查看上面的文档。  
  参考资料:https://github.com/hawtim/blog/issues/10     今天发现安装 homeBrew 发现报错如下: curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused Failed to fetch Homebrew .gitignore!   网上搜索了一下,发现是 github 的一些域名的 DNS 解析被污染,导致DNS 解析过程无法通过域名取得正确的IP地址。 打开 https://www.ipaddress.co ...
  <!--StartFragment--> chsh -s /bin/zsh chsh -s /bin/bash   zsh配置环境变量: ~/.zshrc <!--EndFragment-->
Global site tag (gtag.js) - Google Analytics