Posted by [czar]
,

erwin에서 컬럼의 순서를 화면에 보여지는 상태와 같게 Preview

컬럼의 순서를 화면에 보여지는 상태와 같게 Preview를 하기위해서는 Column Option에 Physical Order의 체크를 빼 주셔야 됩니다.


http://www.soqool.com/servlet/board?cmd=view&cat=140&subcat=1425&seq=2891

Posted by [czar]
,

erwin에서 컬럼의 순서를 화면에 보여지는 상태와 같게 Preview

컬럼의 순서를 화면에 보여지는 상태와 같게 Preview를 하기위해서는 Column Option에 Physical Order의 체크를 빼 주셔야 됩니다.


http://www.soqool.com/servlet/board?cmd=view&cat=140&subcat=1425&seq=2891

Posted by [czar]
,
Posted by [czar]
,

파일 비교

카테고리 없음 2008. 12. 13. 21:19
Posted by [czar]
,

String charSet[] = {"utf-8","euc-kr","8859_1"};

for(int i = 0; i < charSet.length; i++) {
    for(int j = 0; j < charSet.length; j++) {
     System.out.println(charSet[i] + " to " + charSet[j] + " = " + new String(fileName.getBytes(charSet[i]),charSet[j]));
    }
}


결과화면

utf-8 to utf-8 = ??¤.jpg
utf-8 to euc-kr = 챙??짚.jpg
utf-8 to 8859_1 = ?????¤.jpg
euc-kr to utf-8 = ????.jpg
euc-kr to euc-kr = ??¤.jpg
euc-kr to 8859_1 = ???´.jpg
8859_1 to utf-8 = 오.jpg
8859_1 to euc-kr = ???.jpg
8859_1 to 8859_1 = ??¤.jpg

Posted by [czar]
,

Fixed Content using CSS/ Dynamic Expressions

CSS lets you position content on your page in a variety of ways, one of which is "fixed". In this mode a piece of content remains completely static without so much as a flinch when the rest of the page is scrolled. One of my predictions for the year 2007 is the eruption of this effect on the web as the majority of visitor browsers support it natively using CSS.

In the following tutorial, I'll discuss how to use "fixed" positioning in CSS, plus how to simulate the behaviour in IE5/6 using Dynamic Expressions, which does not support the direct CSS approach. Shall be begin?

Fixed Content using CSS

There' really only one authentic way of creating fixed content that doesn't scroll on the page, and that's through CSS "fixed" positioning. Like "absolute" positioning, "fixed" places a piece of content outside the normal flow of the document using an explicit x (horizontal) and y (vertical) coordinate system. However, with "fixed", its coordinate system is relative to the viewpoint of the browser, so "5px" vertically for example means "5px" down from the upper left corner of the viewable window, regardless of whether the page is scrolled or not.

<style type="text/css">

#mydiv{
position: fixed;
left: 10px;
top: 50px;
}


</style>

<div id="mydiv">
Some content here
</div>

Remember, in fixed positioning, the left and top values are relative to the upper left corner of the window viewpoint, which automatically changes as the page is scrolled. This creates the static effect.

Fixed Content in IE (5 & 6) via Dynamic Expressions

We can always count on IE to make things more 'interesting" for web developers. In IE6 and below, CSS "fixed" positioning isn't supported (note that IE7 does). In order to realistically implement fixed content, we need a no-fuss way to simulate the effect in IE6 (and perhaps IE5). Dynamic expressions, a IE proprietary feature, fits the bill:

<style type="text/css">

#mydiv{
position: fixed;
left: 10px;
top: 50px;
}

* html #mydiv{ /*IE6 only rule, applied on top of the default above*/
position: absolute;
top: expression(document.compatMode=="CSS1Compat"? document.documentElement.scrollTop+50+"px" : body.scrollTop+50+"px");
}


</style>

<div id="mydiv">
Some content here
</div>

Take a look at the highlighted CSS rule. It's targeted exclusively towards IE5 and 6 by way of the Star (*) html hack, and is what will help us simulate fixed positioning in legacy IE5/6 browsers. First, I override the default "position: fixed" declaration with something IE understands, "position: absolute". Then, by using dynamic expressions, I get its "top" attribute to automatically update itself so it's always "50px" below the upper left viewpoint of the browser window:

top: expression(document.compatMode=="CSS1Compat"? document.documentElement.scrollTop+50+"px" : body.scrollTop+50+"px");

Now, even if you're familiar with IE's dynamic expressions in general, the above line may still look somewhat confusing- why the conditional operator inside it and two different value settings accordingly? Well, depending on whether your page contains a valid doctype declaration at the very top or not, the syntax to referencing certain measurement properties of the body in IE, such as the "scrollTop" property, differs slightly. The above dynamic expression takes into account both possibilities. Note that I've left out setting the "left" property as a dynamic expression as well in IE, making a leap of faith that the page doesn't contain any horizontal scrollbars to warrant this property being dynamic. However, if you wanted to declare it, it would look something like:

left: expression(document.compatMode=="CSS1Compat"? document.documentElement.scrollLeft+10+"px" : body.scrollLeft+10+"px");

In any event, the end result is a DIV that stays static on the page in all the major browsers, albeit with some hesitance in IE5/6 in that the effect isn't 100% smooth due to it being simulated programmically. But it's an acceptable compromise, and helps overcome the main mental hurdle to using "position: fixed" on our pages!

Posted by [czar]
,
Posted by [czar]
,
Posted by [czar]
,
<HTML>
<HEAD>
<TITLE>Align Layer</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=euc-kr">
<SCRIPT language="JavaScript">
<!--
function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function DivAlign(theDiv){
var obj,fun,dw,lw,x;
fun = (document.all) ? "document.getElementById" : "MM_findObj";
obj = (document.all) ? document.getElementById(theDiv) : MM_findObj(theDiv);
if(obj){if(document.all){dw = document.body.clientWidth;}
else{dw = innerWidth;}
if(document.layers){lw = obj.clip.width;}
else{lw = obj.style.width.replace("px","");}
x = (document.layers) ? ".left" : ".style.left";
eval(fun+"('"+theDiv+"')"+x+"="+dw+"/2-"+lw+"/2");
}
}
//-->
</SCRIPT>
</HEAD>
<BODY onload="DivAlign('Layer');" onresize="DivAlign('Layer')">
<DIV id="Layer" style="position:absolute; left:0px; top:0px; width:600; height:100%; z-index:10; background-color: yellow;">Align Layer</DIV>
</BODY>
</HTML>


강좌는 나무님(frigga@freechal.com)님께서 제공해주신 자료입니다. 강좌 제공에 대해 깊이 감사드리며 앞으로도 좋은 강좌 부탁드립니다.
Posted by [czar]
,