设为首页收藏本站

山东农业大学论坛

 找回密码
 注册会员

QQ登录

只需一步,快速开始

楼主: jiefang2013
打印 上一主题 下一主题

媒体采访真实现场   [复制链接]

版主【sdau team】

爱工作爱学习爱论坛的蓝波湾~欢迎您呐~~

Rank: 16

UID
231
金币
2495 枚
威望
1 点
经验
96 点
体力
176 点
在线时间
166 小时

长老会勋章 风流GG勋章 七夕纪念勋章 寻找爱情勋章 国庆节勋章 新手勋章 俏皮MM勋章

51
发表于 2011-6-9 18:39:29 |只看该作者
冬季恋歌 发表于 2011-6-8 22:16
纠正一下,都有一个正式版的女人,还有很多beta版的女人。

哈哈  精辟啊
蓝波湾代表 电脑网络 版块欢迎大家啊~~有空常来坐坐哈[/col

使用道具 举报

Rank: 2Rank: 2

UID
2468
学院
水院
金币
181 枚
威望
0 点
经验
7 点
体力
33 点
出生地
 泰安市
在线时间
12 小时
52
发表于 2011-6-10 14:03:44 |只看该作者
ToB蓝波湾 发表于 2011-6-5 18:42
意思是“每一个看似成功的领导的背后,都有一个女人”

不是背后,是身前

使用道具 举报

版主【sdau team】

爱工作爱学习爱论坛的蓝波湾~欢迎您呐~~

Rank: 16

UID
231
金币
2495 枚
威望
1 点
经验
96 点
体力
176 点
在线时间
166 小时

长老会勋章 风流GG勋章 七夕纪念勋章 寻找爱情勋章 国庆节勋章 新手勋章 俏皮MM勋章

53
发表于 2011-6-10 16:11:37 |只看该作者
Commander 发表于 2011-6-10 14:03
不是背后,是身前

蓝波湾代表 电脑网络 版块欢迎大家啊~~有空常来坐坐哈[/col

使用道具 举报

版主【sdau team】

爱工作爱学习爱论坛的蓝波湾~欢迎您呐~~

Rank: 16

UID
231
金币
2495 枚
威望
1 点
经验
96 点
体力
176 点
在线时间
166 小时

长老会勋章 风流GG勋章 七夕纪念勋章 寻找爱情勋章 国庆节勋章 新手勋章 俏皮MM勋章

54
发表于 2011-6-10 16:12:52 |只看该作者
  1. import java.io.BufferedReader;  
  2. import java.io.IOException;  
  3. import java.io.InputStreamReader;  


  4. public class MyEclipseGen {  
  5.     private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up to a $500,000 fine or up to five years imprisonment for a first offense. Think about it; pay for a license, avoid prosecution, and feel better about yourself.";  

  6.     public String getSerial(String userId, String licenseNum, String type) {  
  7.         java.util.Calendar cal = java.util.Calendar.getInstance();  
  8.         cal.add(1, 3);  
  9.         cal.add(6, -1);  
  10.         java.text.NumberFormat nf = new java.text.DecimalFormat("000");  
  11.         licenseNum = nf.format(Integer.valueOf(licenseNum));  
  12.         String verTime = new StringBuilder("-")  
  13.                 .append(new java.text.SimpleDateFormat("yyMMdd").format(cal  
  14.                         .getTime())).append("0").toString();  

  15.         String need = new StringBuilder(userId.substring(0, 1)).append(type)  
  16.                 .append("300").append(licenseNum).append(verTime).toString();  
  17.         String dx = new StringBuilder(need).append(MyEclipseGen.LL)  
  18.                 .append(userId).toString();  
  19.         int suf = this.decode(dx);  
  20.         String code = new StringBuilder(need).append(String.valueOf(suf))  
  21.                 .toString();  
  22.         return this.change(code);  
  23.     }  

  24.     private int decode(String s) {  
  25.         int i;  
  26.         char[] ac;  
  27.         int j;  
  28.         int k;  
  29.         i = 0;  
  30.         ac = s.toCharArray();  
  31.         j = 0;  
  32.         k = ac.length;  
  33.         while (j < k) {  
  34.             i = (31 * i) + ac[j];  
  35.             j++;  
  36.         }  
  37.         return Math.abs(i);  
  38.     }  

  39.     private String change(String s) {  
  40.         byte[] abyte0;  
  41.         char[] ac;  
  42.         int i;  
  43.         int k;  
  44.         int j;  
  45.         abyte0 = s.getBytes();  
  46.         ac = new char[s.length()];  
  47.         i = 0;  
  48.         k = abyte0.length;  
  49.         while (i < k) {  
  50.             j = abyte0[i];  
  51.             if ((j >= 48) && (j <= 57)) {  
  52.                 j = (((j - 48) + 5) % 10) + 48;  
  53.             } else if ((j >= 65) && (j <= 90)) {  
  54.                 j = (((j - 65) + 13) % 26) + 65;  
  55.             } else if ((j >= 97) && (j <= 122)) {  
  56.                 j = (((j - 97) + 13) % 26) + 97;  
  57.             }  
  58.             ac[i] = (char) j;  
  59.             i++;  
  60.         }  
  61.         return String.valueOf(ac);  
  62.     }  

  63.     public MyEclipseGen() {  
  64.         super();  
  65.     }  

  66.     public static void main(String[] args) {  
  67.         try {  

  68.             // MyEclipse Standard Subscription---------YE2MY  
  69.             // MyEclipse Professional Subscription----YE3MP  
  70.             // MyEclipse Blue Subscription---------------YE3MB  
  71.             // MyEclipse for Spring Subscription--------YE3MS  

  72.             String type = "YE3MS-";  

  73.             System.out.println("please input register name:");  
  74.             BufferedReader reader = new BufferedReader(new InputStreamReader(  
  75.                     System.in));  
  76.             String userId = null;  
  77.             userId = reader.readLine();  
  78.             MyEclipseGen myeclipsegen = new MyEclipseGen();  
  79.             String res = myeclipsegen.getSerial(userId, "999", type);  
  80.             System.out.println("Serial:" + res);  
  81.             reader.readLine();  
  82.         } catch (IOException ex) {  
  83.         }  
  84.     }  
  85. }
复制代码
蓝波湾代表 电脑网络 版块欢迎大家啊~~有空常来坐坐哈[/col

使用道具 举报

Rank: 2Rank: 2

UID
912
金币
349 枚
威望
0 点
经验
35 点
体力
50 点
在线时间
13 小时
55
发表于 2011-6-12 14:15:21 |只看该作者
飘过啊 哈哈

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

关闭

山东农业大学论坛-你永远的家

社区首页| 家园首页| 群组首页|手机版|山东农业大学论坛   

GMT+8, 2025-4-20 21:18

Powered by Discuz! Templates yeei! © 2001-2010 Comsenz Inc.

回顶部