自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(12)
  • 资源 (25)
  • 收藏
  • 关注

原创 MAC arm go 交叉编译 windows gui

container.NewTabItem("Tab 1", widget.NewLabel("内容1")),container.NewTabItem("Tab 2", widget.NewLabel("内容2")),daka.exe 是编译后的exe 文件名 win7gui.go 是 需要编译的源文件。myWindow := myApp.NewWindow("Go Win7客户端")widget.NewLabel("你的应用程序"),// 创建一个包含缩小按钮的窗口。// 创建一个包含标签的容器。

2024-01-24 11:19:16 421 1

原创 苹果电脑 macos 禁止某一个IP 访问互联网

如果想要使用 macos 自带的防火墙 只能针对某一些应用来做访问限制,如果相对某一个IP 进行限制,则需要使用 PF防火墙。### 8.8.8.8 更改为自己的需要限制的ip。

2023-12-28 08:46:54 642 1

转载 更改ITunes 备份目录

WindowsThe original location of the Backups is in a folder called MobileSyncThis folder is located in: C:\Users\*USERNAME*\AppData\Roaming\Apple Computer\MobileSync\BackupAnd to do move th

2016-10-18 14:42:34 327

原创 海康威视 RTSP 协议

码流rtsp://admin:[email protected]:554/h264/ch1/main/av_streamrtsp://admin:[email protected]:554/MPEG-4/ch1/main/av_stream子码流:rtsp://admin:[email protected]/mpeg4/ch1/sub/av_streamrtsp://admin:

2014-08-22 22:33:16 6070

原创 sql 判断是否有重复数据

可以判断imsi  字段是否有重复的记录 如果是组合的  可以在group by 后面继续增加select imsi from aaa group by  imsi having   count(*)>1;

2012-04-11 11:53:23 8483 1

原创 postgresql 创建表,创建存储过程 创建触发器 创建触发器函数

CREATE DATABASE test;----- 创建表CREATE TABLE a(  std_no character varying(32) NOT NULL, -- 学号  subject character varying(32), -- 学科  achievement numeric(5,2), -- 成绩  CONSTRAINT constra

2012-04-11 10:51:40 3069

原创 如何在PostgreSQL中添加id自增列

create table tablename{ id serial,starttime numeric(14,0)}

2012-04-11 10:25:01 5296

原创 tomcate 6.0 JNDI 配置 绝对测试通过

<br /> <br /> 1,在Tomcat中配置:<br />   tomcat 安装目录下的conf的context.xml 的<br />   <Context></Context>中<br />  添加代码如下:<br />    <Resource  name="jdbc/tango"<br />            auth="Container"<br />        type="javax.sql.DataSource"<br />            maxActive="20"

2010-09-12 10:25:00 1015 1

原创 Dwr 回调 传参数

<br />function getOrderMemo(orderid)<br />{<br />   OrderMemo.getOrderMemo(orderid,<br />   {<br />      callback : function(data)<br />      {<br />         callbackOrderMemo(data, orderid)<br />      }<br />   }<br />   );<br />}<br /> <br />orderid 是传递给

2010-08-24 14:50:00 386

原创 javascript 获得窗口的各个参数 offsetWidth availWidth scrollWidth

<br />var str = "";<br />str += "<br><font color=gray>window.screen.width</font> " + window.screen.width;<br />str += "<br><font color=gray>window.screen.height</font> " + window.screen.height;<br />str += "<br><font color=gray>window.document.body.o

2010-06-16 09:46:00 446

原创 java 校验ftp 是否可连通

 /**     * 用于检测FTP是否能够连接上,如果连接不上直接抛出异常     *     * @param ip     * @param port     * @throws IOException     * @see [类、类#方法、类#成员]     */    private void checkFtpConnection()        t

2010-04-06 17:20:00 1793

原创 oracle 删除外键约束 禁用约束 启用约束 查找外键

执行以下sql生成的语句即可删除所有外键约束 select alter table ||table_name|| drop constraint ||constraint_name||; from user_constraints where constraint_type=R   禁用所有外键约束

2010-04-03 12:40:00 957

swing 播放 rtsp 视频

电脑上需要安装 vlc 播放器,然后用再运行此程序 就可以直接打开了 利用 vlcj 插件。 mediaPlayerComponent = new EmbeddedMediaPlayerComponent(); // mediaPlayerComponent.getMediaPlayer().addMediaOptions(":network-caching=500"); mediaPlayerComponent.setSize(1280, 960); frame.getContentPane().setLayout(null); frame.add(mediaPlayerComponent); frame.setLocation(100, 100); frame.setSize(1440, 1024); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); MediaPlayer player = mediaPlayerComponent.getMediaPlayer(); String[] options = {"video-filter=motionblur", "network-caching=200", "no-plugins-cache"}; player.playMedia("rtsp://admin:[email protected]:554/h264/ch1/main/av_stream",options);

2017-09-01

Java xml 转 map

最简单的 递归 XML 转 MAP

2017-06-21

iptables 屏蔽 中国 IP 访问

一键屏蔽中国的IP 访问网站 自己写的,亲测。

2016-07-29

chrome 调用本地exe

1,chrome 浏览器本身不支持直接调用exe,但可以使用url protocol handler 调用exe 2,直接双击exe_chrome.reg 安装注册表 3,test.html 要在运行在容器里(tomcat,resin XXXX),本地直接打开是执行不了的,我折腾了好久才弄懂这个问题的 注,chrome 通过注册表注册表 只能调用本地的 exe 或者bat文件,不能调用 ppt word 这样的问题,所以我用VB 写了一个exe 可以接收调用参数,这样只许注册一次就可以通过传参打开所有课执行文件了 由于1.exe是后台直接打开windows 的exe 所以杀毒软件有可能会提示1,exe 是病毒程序。

2014-08-18

javascript 秒表

代码非常精简的 javascript 秒表 00:00:00 部分代码 //显示到网页 $('#hh').html(append0(hour)); $('#mm').html(append0(minute)); $('#ss').html(append0(second));

2013-11-14

android 配置 EAP wifi

android wifi操作工具类,具备 打开wifi 关闭wifi 获取当前连接的wifi 信息 EAP接口wifi

2012-08-03

IE6 PNG 透明

我们知道IE6是不支持透明的PNG的,这无疑限制了网页设计的发挥空间. 然而整个互联网上解决这个IE6的透明PNG的方案也是多不胜数,从使用IE特有的滤镜或是e-xpression, 再到javascript透明GIF替代.但是这些方法都有一个缺点,就是不支持CSS中backgrond-position与background-repeat. 而我今天介绍DD_belatedPNG,只需要一个理由,就是它支持backgrond-position与background-repeat. 这是其他js插件不具备的.同时DD_belatedPNG还支持a:hover属性,以及<img>. 原理 这个js插件使用了微软的VML语言进行绘制,而其他多数解决PNG问题的js插件用的是AlphaImageLoader滤镜

2012-01-05

IE6png图片透明

IE6_PNG_position(定位)&repeat(平铺)_透明解决方案

2011-12-22

eclipse 右键直接查看文件 easyexplore

如果你经常需要在Eclipse里打开相关资源文件所在的文件夹,比较麻烦,要右键,属性,在Location一栏中把所在的文件夹拷贝一下,然后再去资源管理器里输入这个路径,回车,打开它。 解决方法:   用EasyExplorer插件,有了这个插件就可以很方便地打开资源文件所在的文件夹了.

2011-11-25

网页播放器

网页嵌入播放器 <object id="movie_player" type="application/x-shockwave-flash" width="361" height="254" wmode="transparent" > <param name="movie" value="player.swf?file=01.flv&amp;image=JackWelchGMC.jpg"> <param name="wmode" value="transparent"> <param name="allowfullscreen" value="true"> </object>

2011-09-10

css + div + javascript 图片轮换

图片轮换 使用的时候 非常简单只需 一步调用即可 <script>new at_imgSwitch("at_imgSwitch",true);</script>

2011-07-13

jsp版xheditor

jsp在线编辑工具 jsp xheditor web工程 可以直接使用的!

2011-03-08

java拆分exlce

java 自动拆分合并的单元格并补充拆分后的值

2011-03-01

javaScript 操作excle

var filePath =getCurrentDirectory()+"sta.xls"; var oXL = new ActiveXObject("Excel.application"); var oWB = oXL.Workbooks.open(filePath); oWB.worksheets(1).select(); var oSheet = oWB.ActiveSheet; var a = oSheet.usedrange.rows.count; .....在资源包

2011-03-01

JavaScript 实现HTML业务流程图

1.确认订单信息 2.付款到财付通 3.确认收货 4.评价卖家 5.评价卖家 step=1; function next(num) { step+=num; document.getElementById('step_div').className='flow_step_no'+step; }

2011-03-01

HTML FLV视频播放代码

绝对通过测试的 能够播放的 FLV 视频的 html 代码

2011-02-04

javascript , jquery 相册 照片播放

javascript , jquery 相册 照片播放 非常华丽的照片的jquery 相册 使用也非常简单。demol 在index.html里

2011-02-04

Sqlserver2000 jdbc jar包

Sqlserver2000 jdbc jar包 驱动 三个jar包 msbase.jar mssqlserver.jar msutil.jar

2010-12-24

jxl.jar java 操作 excel

Workbook workbook = Workbook.getWorkbook(new File("myfile.xls")); (NOTE: when creating a spreadsheet from a ServletInputStream you must remove the HTTP header information before creating the Workbook object.) Once you have accessed the workbook, you can use this to access the individual sheets. These are zero indexed - the first sheet being 0, the second sheet being 1, and so on. (You can also use the API to retrieve a sheet by name). Sheet sheet = workbook.getSheet(0); Once you have a sheet, you can then start accessing the cells. You can retrieve the cell's contents as a string by using the convenience method getContents(). In the example code below, A1 is a text cell, B2 is numerical value and C2 is a date. The contents of these cells may be accessed as follows Cell a1 = sheet.getCell(0,0); Cell b2 = sheet.getCell(1,1); Cell c2 = sheet.getCell(2,1); String stringa1 = a1.getContents(); String stringb2 = b2.getContents(); String stringc2 = c2.getContents(); // Do stuff with the strings etc ... The demo programs CSV.java and XML.java use the convenience method getContents() in order to output the spreadsheet contents.

2010-09-08

jquery 例子详解

有很多jquery例子 拖拽树形菜单 选项卡 表格 tablesorter

2010-08-18

java 两个日期的所有天

可以列出两个日期中间的所有天 20090501, 20090502, 20090503, 20090504, 20090505, 20090506, 20090507, 20090508, 20090509,

2010-06-13

dom4j 工具类 使用例子

dom4j 的包装类,可以让你轻易获取并改变xml的节点 以及生成一个xml

2010-05-04

oracle sqlload loaddata.ctl 使用例子

可以将txt中的数据导入oracle中 txt 中的数据要按照一定格式

2010-04-11

javascript 表格列可以拖

真正的javascript的实现的表格列可以伸缩的工具 非Ext

2010-01-16

鼠标锁定器 直接用 锁住全屏

可以让锁全屏的 小小软件 不用安装 直接可以用! 绿色

2008-10-01

空空如也

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

TA关注的人

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