晓洛的茶园  
犀利~各种犀利
日历
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
统计
  • 随笔 - 11
  • 文章 - 0
  • 评论 - 0
  • 引用 - 0

导航

常用链接

留言簿(1)

随笔分类

随笔档案

个人链接

搜索

  •  

最新评论

阅读排行榜

评论排行榜

 

2011年12月6日

         setExtendedState(JFrame.MAXIMIZED_BOTH);
         setResizable(false);
          setVisible(true);
posted @ 2011-12-06 23:16 晓洛 阅读(576) | 评论 (0)编辑 收藏

2010年7月5日

//查询列注释及列名称
select  column_name, column_comment from information_schema.columns where table_schema ='databaseName'  and table_name = 'tableName';

//查询表注释及表名称
select table_name,table_comment from information_schema.tables  where table_schema = 'image' and table_name ='tableName';

posted @ 2010-07-05 00:32 晓洛 阅读(649) | 评论 (0)编辑 收藏

2010年5月30日

@echo off
:begin
(tasklist | findstr "iexplore.exe")&&(if exist echo exist)  & goto :begin
posted @ 2010-05-30 10:05 晓洛 阅读(830) | 评论 (0)编辑 收藏

2010年5月19日

字段注释

select   *   from   user_col_comments;

表注释

select   *   from   user_tab_comments;


//

查询字段类型

select column_name,data_type,data_length from user_tab_columns where table_name='TableName' and column_name in ('AGE_ID','MONTH_ID') 

Column_name值为大写


//

查询表的主键

select * from user_cons_columns where table_name='D_DAY'

//

select column_name from user_cons_columns where constraint_name in (select constraint_name from user_constraints where table_name = 'D_DAY' and constraint_type = 'P')


//查询某表字段的主键名称及类型

select column_name,data_type,data_length,DATA_PRECISION||','||DATA_SCALE from user_tab_columns v  join  (select column_name from user_cons_columns where constraint_name in (select constraint_name from user_constraints where table_name = 'D_DAY' and constraint_type = 'P')) t using (column_name) where table_name='D_DAY'

posted @ 2010-05-19 14:41 晓洛 阅读(4161) | 评论 (0)编辑 收藏

2010年3月28日

因为之前安装过Flex4的测试版 .
又安装了Flex的正式版
再把测试版删除掉之后. 出现了Eclipse
不能正常启动的错误

看错误信息是正版的检验机制出了问题.

C:\Program Files\Common Files\Adobe\Adobe PCD\cache下删除DB后
一切正常

好像也可以去下载 Adobe Licensing Repair Tool
这个工具 .
posted @ 2010-03-28 16:49 晓洛 阅读(730) | 评论 (0)编辑 收藏

2010年1月15日

UltraEdit 这个软件令我很痛心, 看似很多人都在使用它, 于是我也尝试了一下.
自然 我不可能直接去购得一个正版的序列号~ 只是从网下Down了一个最新的破解.

可令人想不到的是. 一没留心 , 安装的时候 它竟然篡改了 我查看网页源文件的选项.
众所周知, IE 默认的Viewer 还是非常不错的, 清楚美观尽管不能编辑,看用起来还是非常舒服的.

修改的办法也非常简单:
注册表:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name

右边默认的键值 已经被修改成了 UE~

清空 OK ~

然后可以直接卸载UE了.~`

我还是比较喜欢 Emacs 和 Notepad++
posted @ 2010-01-15 22:40 晓洛 阅读(2041) | 评论 (0)编辑 收藏

2009年12月20日

首先我要说了. 我并不了解张艺谋这位导演.你大可以笑我土的掉渣.刚刚去百度的百科查了一下,我之前只以为看过他的<英雄>,今天才发现,原来十面埋伏也是张导的,十百埋伏确实我有看过.

前些日子看了一部<熊猫在侠>,把我雷的外焦里嫩的.于是乎我决定不再看大陆拍的电影.尽管不清楚这种幼稚的想法究竟能坚持多久.但至少现在我是一点也没有看其他影片的欲望.然后,听说<三枪>来了.

当然,我先听到的也是三枪的差评.于是我就费解了,为什么如此令人失望的片子,也会有如此高的票房呢.后来渐渐地有了一些明白. 就是街角新开了一家店,先不管店是谁开的. 挂的是谁的名号,所谓的吃客自然都得先来尝一尝,纵使别人说了菜很差,自己也要亲自体验一番,他们体验的是吃的过程,而不是菜的味道了.事后,便可以"过来人"的身份,蛮有经验的讲,嗯,三枪还是很差的.

我也渐渐清楚,这个时代的电影院里,营造的仅仅是种气氛,而不再是让大家放松或者感动的幽会场所了

posted @ 2009-12-20 00:31 晓洛 阅读(288) | 评论 (0)编辑 收藏

2009年12月14日

//查找字符串中的逗号
 var s = "aa,bb,cc,"
//方法一
var count =0;
a.replace(
/[,]/g,function(){
    count
=count+1;
    
return "a";
}
)
alert(count);

//方法二
 var r = a.split(",");
 r.pop();
 alert (r.length);
//方法三
alert(a.replace(/[^,]/g,'').length);

posted @ 2009-12-14 23:35 晓洛 阅读(342) | 评论 (0)编辑 收藏

2009年12月8日





 Swing通过以下方式实现观感:将JComponent分离成两个独立的类,一个JComponent子类,一个ComponentUI子类。ComponentUI子类在swing中有很多叫法:"the UI," "component UI," "UI delegate," "look and feel delegate"。

   每个L&F都必须为ComponentUI提供具体实现的子类。

  1、可获得的L&F

  (1)CrossPlatformLookAndFeel:Java l&f,即在各个平台上的效果相同,这是默认的观感,是JAVA API javax.swing.plaf.metal的一部分。

  (2)SystemLookAndFeel:观感依赖于本地系统。

  (3)Synth:使用XML自定义观感。

  (4)Multiplexing:同时采用多个观感。

  SystemL&F 在以下包中:

  com.sun.java.swing.plaf.gtk.GTKLookAndFeel
  com.sun.java.swing.plaf.motif.MotifLookAndFeel
  com.sun.java.swing.plaf.windows.WindowsLookAndFeel

 2、通过程序设置观感

 设置观感最好在应用的第一步完成,通过UIManager来设置L&F,

UIManager.setLookAndFeel(
            UIManager.getCrossPlatformLookAndFeelClassName());

UIManager.setLookAndFeel(
            UIManager.getSystemLookAndFeelClassName());

UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");

UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");

 3、通过命令行设置观感

 java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel MyApp
 java -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel MyApp

 4、通过swing.properties 设置观感

 # Swing properties
 swing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel

 5、如何选择观感

 (1)程序通过setL&F方法显示设置观感;

 (2)如无则使用swing.defaultlaf定义的观感;如同时在命令行中设置观感,命令行优先;

 (3)最后,使用JAVA L&F。
 6、修改观感

 但应用GUI已经显示后,仍然可以修改观感。

 UIManager.setLookAndFeel(lnfName);
SwingUtilities.updateComponentTreeUI(frame);
frame.pack();

7、主题(Theme)

主题可以用来快速改变组件上文字的风格和颜色。每个L&F都有自己独立的主题:

 if (LOOKANDFEEL.equals("Metal")) {
    if (THEME.equals("DefaultMetal"))
       MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
    else if (THEME.equals("Ocean"))
       MetalLookAndFeel.setCurrentTheme(new OceanTheme());
    else
       MetalLookAndFeel.setCurrentTheme(new TestTheme());                    
    UIManager.setLookAndFeel(new MetalLookAndFeel());
 } 

posted @ 2009-12-08 14:08 晓洛 阅读(3145) | 评论 (0)编辑 收藏

2009年11月15日

命令 : Rasdial


举例 :

1) Rasdial 宽带连接 admin admin888

2)    Rasdial  /disconnect

3)    Rasdial  /d

4     Rasdial



posted @ 2009-11-15 22:06 晓洛 阅读(1139) | 评论 (0)编辑 收藏
 
Copyright © 晓洛 Powered by: 博客园 模板提供:沪江博客