2006年9月25日

private void FileDownload(string FullFileName)
  {
   FileInfo DownloadFile = new FileInfo(FullFileName);
   Response.Clear();
   Response.ClearHeaders();
   Response.Buffer = false;
   Response.ContentType ="application/octet-stream";
   Response.AppendHeader("Content-Disposition","attachment;filename="+HttpUtility.UrlEncode(DownloadFile.FullName,System.Text.Encoding.UTF8));
            Response.AppendHeader("Content-Length",DownloadFile.Length.ToString());
   Response.WriteFile(DownloadFile.FullName);
   Response.Flush();
   Response.End();
  }

posted @ 2006-09-25 17:33 joinsky 阅读(2425) 评论(5) 编辑


2006年9月23日

10 Programming Languages You Should Learn Right Now 

Knowing a handful of programming languages is seen by many as a harbor in a job market storm, solid skills that will be marketable as long as the languages are.

Yet, there is beauty in numbers. While there may be developers who have had riches heaped on them by knowing the right programming language at the right time in the right place, most longtime coders will tell you that periodically learning a new language is an essential part of being a good and successful Web developer.

"One of my mentors once told me that a programming language is just a programming language. It doesn't matter if you're a good programmer, it's the syntax that matters," Tim Huckaby, CEO of San Diego-based software engineering company CEO Interknowlogy.com, told eWEEK.

However, Huckaby said that while his company is "swimming" in work, he's having a nearly impossible time finding recruits, even on the entry level, that know specific programming languages.

"We're hiring like crazy, but we're not having an easy time. We're just looking for attitude and aptitude, kids right out of school that know .Net, or even Java, because with that we can train them on .Net," said Huckaby.

 

"Don't get fixated on one or two languages. When I started in 1969, FORTRAN, COBOL and S/360 Assembler were the big tickets. Today, Java, C and Visual Basic are. In 10 years time, some new set of languages will be the 'in thing.' …At last count, I knew/have learned over 24 different languages in over 30 years," Wayne Duqaine, director of Software Development at Grandview Systems, of Sebastopol, Calif., told eWEEK.

By picking the brains of Web developers and IT recruiters, eWEEK selected 10 programming languages that are a bonus for developers to add to their resumes. Even better, they're great jumping-off points, with loads of job opportunities for younger recruits.

1. PHP

What it is: An open-source, interpretive, server-side, cross-platform, HTML scripting language, especially well-suited for Web development as it can be embedded into HTML pages.
Why you should learn it: It's particularly widely used. "High-speed scripting with caching, augmented with compiled code plug-ins (such as can be done with Perl and PHP) is where the future is. Building Web apps from scratch using C or COBOL is going the way of the dinosaur," said Duquaine.
Job availabilities: 1,152*
2. C#

What it is: A general-purpose, compiled, object-oriented programming language developed by Microsoft as part of its .NET initiative, it evolved from C and C++
Why you should learn it: It's an essential part of the .Net framework. "Learning C#, which is just Java with a different name plate, is critical if you heavily use Microsoft," said Duquaine.
Job availabilities: 5,111
3. AJAX (Asynchronous JavaScript and XML)

What it is: Though technically not a programming language, AJAX uses XHTML or HTML, JavaScript and XML to create interactive Web applications.
Why you should learn it: Ever since Google Maps put AJAX, well, on the map, the requests for AJAX-knowledgeable pros went through the roof. "The demand for AJAX knowledge is huge because it's so damned hard to learn," said Huckaby. Of note, Microsoft announced recently plans to release a tool named Atlas that will make AJAX easier to implement. "If Microsoft's Atlas tool is successful, it would bring the extreme complexity and annoyance of AJAX to the average worker," said Huckaby.
Job availabilities : 1,106
4. JavaScript

What it is: Not to be confused with Java, JavaScript is a an object-oriented, scripting programming language that runs in the Web browser on the client side. It's smaller than Java, with a simplified set of commands, easier to code and doesn't have to be compiled.
Why you should learn it: Embedded into HTML, it's used in millions of Web pages to validate forms, create cookies, detect browsers and improve the design. With its simplicity to learn as well as wide use, it's considered a great bang for your educational buck.
Job availabilities: 4,406
5. Perl

What it is: Perl is an open-source, cross-platform, server-side interpretive programming language used extensively to process text through CGI programs.
Why you should learn it: Perl's power in processing of piles of text has made it very popular and widely used to write Web server programs for a range of tasks. "Learning some form of scripting language, such as Perl or PHP is critical if you are doing Web apps," said Duquaine.
Job availabilities: 4,810
6. C

What it is: A standardized, general-purpose programming language, it's one of the most pervasive languages and the basis for several others (such as C++).
Why you should learn it: "Learning C is crucial. Once you learn C, making the jump to Java or C# is fairly easy, because a lot of the syntax is common. Also, a lot of C syntax is used in scripting languages," said Duquaine.
Job availabilities: 6,164, including all derivatives
7. Ruby and Ruby on Rails

What they are: Ruby is a dynamic, object-oriented, open-source programming language; Ruby on Rails is an open-source Web application framework written in Ruby that closely follows the MVC (Model-View-Controller) architecture.
Why you should learn it: With a focus on simplicity, productivity and letting the computers do the work, in a few years, its usage has spread quickly. As a bonus, many find it easy to learn.
Job availabilities : 210 and 54, respectively
8. Java

What it is: An object-oriented programming language developed by James Gosling and colleagues at Sun Microsystems in the early 1990s.
Why you should learn it: Hailed by many developers as a "beautiful" language, it is central to the non-.Net programming experience. "Learning Java is critical if you are non-Microsoft," said Duquaine.
Job availabilities: 14,408
9. Python

What it is: An interpreted, dynamically object-oriented, open-source programming language that utilizes automatic memory management.
Why you should learn it: Designed to be a highly readable, minimalist language, many say it has a sense of humor (spam and eggs, rather than foo and bar), Python is used extensively by Google as well as in academia because of its syntactic simplicity.
Job availabilities: 811
10. VB.Net (Visual Basic .Net)

What it is: An object-oriented language implemented on Microsoft's .Net framework.
Why you should learn it: Most argue that VB.Net is currently more popular than ever and one of the only "must-learns." "It is currently dominating in adoption and that is where all the work is," said Huckaby.
Job availabilities: 2,090
* All numbers on job availability were pulled from nationwide queries on Dice.com, a job site for technology professionals.

 
original from:
http://www.eweek.com/article2/0,1759,2016415,00.asp?kc=EWRSS03119TX1K0000594

posted @ 2006-09-23 08:40 joinsky 阅读(199) 评论(0) 编辑


2006年9月14日

联系方式:13450241226(只许发信息哦)
地址:天河区小新塘国家软件基地终点站斜对面的新塘酒店(坐571 224  564等车可到达).
MSN:huanggunping@hotmail.comhttp://ziyou.us/
csdn:joinsky
http://www.codeproject.com
name:joinsky
http://hi.baidu.com/70sky

posted @ 2006-09-14 13:45 joinsky 阅读(48) 评论(0) 编辑

以动手实践为荣,以只看不练为耻。

以打印日志为荣,以出错不报为耻。

以局部变量为荣,以全局变量为耻

以单元测试为荣,以手工测试为耻。

以代码重用为荣,以复制粘贴为耻。

以多态应用为荣,以分支判断为耻。

以定义常量为荣,以魔法数字为耻。

以总结思考为荣,以不求甚解为耻。


写字楼里写字间,写字间里程序员;程序人员写程序,又拿程序换酒钱。
酒醒只在网上坐,酒醉还来网下眠;酒醉酒醒日复日,网上网下年复年。
但愿老死电脑间,不愿鞠躬老板前;奔驰宝马贵者趣,公交自行程序员。
别人笑我忒疯癫,我笑自己命太贱;不见满街漂亮妹,哪个归得程序员。

posted @ 2006-09-14 13:43 joinsky 阅读(97) 评论(0) 编辑

1.网站标准

http://www.zeldman.com/

http://webstandards.org/

http://webstandardsgroup.org/

http://www.nypl.org/styleguide/

2.有语义代码

http://brainstormsandraves.com/articles/semantics/structure/

3.校验(Validation )

http://validator.w3.org/

http://www.htmlhelp.com/tools/validator/

http://webboy.net/presentation/validation.cfm

4.易用性(Accessibility )

http://www.joeclark.org/

http://www.accessify.com/

http://www.juicystudio.com/

5.样式表CSS

http://webboy.net/presentation/ict2004/01.htm

http://webboy.net/presentation/ict2004/02.htm

http://webboy.net/presentation/ict2004/03.htm

http://westciv.com/style_master/academy/css_tutorial/

http://css.maxdesign.com.au

http://www.thenoodleincident.com/tutorials/css/

6.实例站点(XHTML+CSS)

http://www.macromedia.com/

http://www.k10k.net

http://www.fyrebase.com/

http://www.onetruefit.com/

http://pixeltable.com/

http://www.fishmarketing.net/

posted @ 2006-09-14 10:53 joinsky 阅读(70) 评论(0) 编辑


2006年8月22日

1using System.Security.Cryptography;
2using System.Text;
3using System.IO;
#region   加密 DES
        
public string Encrypt(string pToEncrypt, string sKey)
        
{
            DESCryptoServiceProvider des 
= new DESCryptoServiceProvider();
            
//把字符串放到byte数组中
            
//原来使用的UTF8编码,我改成Unicode编码了,不行
            byte[] inputByteArray = Encoding.Default.GetBytes(pToEncrypt);

            
//建立加密对象的密钥和偏移量
            
//使得输入密码必须输入英文文本
            des.Key = ASCIIEncoding.ASCII.GetBytes(sKey);
            des.IV 
= ASCIIEncoding.ASCII.GetBytes(sKey);
            MemoryStream ms 
= new MemoryStream();
            CryptoStream cs 
= new CryptoStream(ms, des.CreateEncryptor(),CryptoStreamMode.Write);

            cs.Write(inputByteArray, 
0, inputByteArray.Length);
            cs.FlushFinalBlock();
            StringBuilder ret 
= new StringBuilder();
            
foreach(byte b in ms.ToArray())
            
{
                ret.AppendFormat(
"{0:X2}", b);
            }

            ret.ToString();
            
return ret.ToString();
        }

        
#endregion

    
        
#region 解密方法
        
//pToDecrypt为需要解密字符串,sKey为密钥
        public string Decrypt(string pToDecrypt, string sKey)
        
{
            DESCryptoServiceProvider des 
= new DESCryptoServiceProvider();
            
byte[] inputByteArray = new byte[pToDecrypt.Length / 2];
            
for(int x = 0; x < pToDecrypt.Length / 2; x++)
            
{
                
int i = (Convert.ToInt32(pToDecrypt.Substring(x * 22), 16));
                inputByteArray[x] 
= (byte)i;
            }

            des.Key 
= ASCIIEncoding.ASCII.GetBytes(sKey);
            des.IV 
= ASCIIEncoding.ASCII.GetBytes(sKey);
            MemoryStream ms 
= new MemoryStream();
            CryptoStream cs 
= new CryptoStream(ms, des.CreateDecryptor(),CryptoStreamMode.Write);
            cs.Write(inputByteArray, 
0, inputByteArray.Length);
            cs.FlushFinalBlock();
            
//建立StringBuild对象,CreateDecrypt使用的是流对象,必须把解密后的文本变成流对象
            StringBuilder ret = new StringBuilder();
            
return System.Text.Encoding.Default.GetString(ms.ToArray());

        }

            
#endregion

posted @ 2006-08-22 16:36 joinsky 阅读(682) 评论(0) 编辑


2006年7月13日

<%@ Page language="c#" Codebehind="Message.aspx.cs" AutoEventWireup="false" Inherits="Sxy.Site.Web.MyHome.Message" validateRequest=false smartNavigation="true"  %>

smartNavigation="true" 这个就是定位的了..

posted @ 2006-07-13 17:22 joinsky 阅读(177) 评论(0) 编辑


2006年7月9日

摘要: div1.style.writingMode="lr-tb";//横排div1.style.writingMode="tb-rl";//竖排tb-rl lr-tb Tb-rl 表示自上而下、从右向左,说明了应用这种样式的元素的内容走向。Lr-tb 表示从左向右、自上而下,它是所有文字的默认走向,也是英文读者所熟悉的典型的水平走向。与其它任何 CSS 属性一样,可通过外部 CSS 文件,或通过对象模...阅读全文

posted @ 2006-07-09 17:33 joinsky 阅读(399) 评论(0) 编辑

摘要: 两个很常用的存储过程1用于产生10条评论数据SETQUOTED_IDENTIFIERONGOSETANSI_NULLSONGO/**//*存储过程,用于产生10条评论数据*/--------deletefromreviewswhereoperateID>15----------------deletefromcontentinfoswhereObjectType=5ALTERprocCrea...阅读全文

posted @ 2006-07-09 11:33 joinsky 阅读(222) 评论(0) 编辑


2006年7月3日

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1<iframestyle="WIDTH:640px;"tabIndex="0"hspace="0"vspace="0"src="网址"2frameBorder="0"width="400"scro...阅读全文

posted @ 2006-07-03 17:13 joinsky 阅读(302) 评论(1) 编辑


posts - 31, comments - 30, trackbacks - 0, articles - 2

Copyright © joinsky