在spark 中获取时间用到java.util.{Calendar,Date} 以及java.text.SimpleDateFormat来对时间输出格式作规范 首先先导入包 获取当前时间 调用该函数得到的结果为 2017-06-16 09:57:16 当想要获取非今天时间或者年份,月份,日期,小时, ...
分类:
其他好文 时间:
2017-06-18 14:21:24
阅读次数:
315
在学习div+css布局过程中,碰到边框不听话的问题。就是我的样式表里是没有指定margin,boder等属性,预期效果应该是 左列,中列,右列三个div紧密结合,占据一整行。预期结果如下 然而实际效果如下 如图所示,在"中列"的四周出现了一下白边。代码如下 <style type="text/cs ...
分类:
Web程序 时间:
2017-06-18 14:18:09
阅读次数:
255
log4j 相关配制说明:http://blog.csdn.net/liangrui1988/article/details/17435139 自己定义异常 package org.rui.ExceptionTest; public class ExtraFeature { // 使用 public ...
分类:
编程语言 时间:
2017-06-18 14:17:18
阅读次数:
156
作为一个电机驱动开发方面的菜鸟,近日研究了一下通过MOS管对整流后的电源斩波用以驱动直流电机进行调速的方案。 在驱动的过程中,遇到了很多问题,当然也有很多的收获。 写下来以供自己将来查阅,也为其他菜鸟提供一些力所能及的帮助。 1.研究目标 公司使用的电机驱动原来是用的模拟电路。驱动220V的高压直流 ...
分类:
其他好文 时间:
2017-06-18 13:25:24
阅读次数:
242
//配置多个IP命名using System.Net; //*************************************************************************** HttpWebRequest的详细方法二: ...
分类:
其他好文 时间:
2017-06-18 13:21:30
阅读次数:
175
k-th divisor You are given two integers n and k. Find k-th smallest divisor of n, or report that it doesn't exist. Divisor of n is any such natural nu ...
分类:
其他好文 时间:
2017-06-18 13:15:19
阅读次数:
212
thinkphp为我们提供了多语言类 首先来看下它的配置: // 是否开启多语言 'lang_switch_on' => true, //语音列表 'lang_list' => ['zh-cn','en-us'], // 获取当前选择语言的方法类 GetLang.php <?php namespac ...
分类:
Web程序 时间:
2017-06-18 13:15:13
阅读次数:
527
1.新建Netcore Web项目 2.创建简易通讯协议 SenderID发送者ID ReceiverID 接受者ID MessageType 消息类型 Text Voice 等等 Content 消息内容 3.添加中间件ChatWebSocketMiddleware 4.在Startup.cs中使 ...
分类:
Web程序 时间:
2017-06-18 13:13:30
阅读次数:
1156
Starting with 1 and spiralling anticlockwise in the following way, a square spiral with side length 7 is formed. 37 36 35 34 33 32 31 38 17 16 15 14 1 ...
分类:
其他好文 时间:
2017-06-18 12:12:06
阅读次数:
172
1 启动命令 systemctl isolate graphical.target 2 启动过程: 文件:/etc/systemd/system/graphical.target 来自:systemd包 内容: [Unit] Description=Graphical Interface Docum ...
分类:
其他好文 时间:
2017-06-18 12:10:26
阅读次数:
733