'분류 전체보기'에 해당되는 글 159건

  1. 2015.11.04 [CSS3] @font-face
  2. 2015.10.14 Yoon Eun-hye cancels film event amid plagiarism claim
  3. 2015.10.12 Luxembourg remembers 1
  4. 2015.10.12 Armed robbery in city petrol station
  5. 2015.10.10 Luxair expands flights to northern European destinations
  6. 2015.09.18 Entity Framework
  7. 2015.09.16 [CSS] LESS
  8. 2015.09.10 turn up
  9. 2015.09.10 let down
  10. 2015.09.10 make up
2015. 11. 4. 22:35

CSS part (style.css)

@font-face {
    font-family: 'intro_head_rbase';
    src: url('introheadr-base-webfont.eot');
    src: url('introheadr-base-webfont.eot?#iefix') format('embedded-opentype'),
         url('introheadr-base-webfont.woff2') format('woff2'),
         url('introheadr-base-webfont.woff') format('woff'),
         url('introheadr-base-webfont.ttf') format('truetype'),
         url('introheadr-base-webfont.svg#intro_head_rbase') format('svg');
    font-weight: normal;
    font-style: normal;
}

body{font-family: 'intro_head_rbase';}


HTML part (index.html)

<!DOCTYPE html> <html class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="style.css"> </head> <body> <div class="huge">abcde</div> </body> </html>


Posted by CoolDragon
2015. 10. 14. 05:48

Yoon Eun-hye cancels film event amid plagiarism claim

Posted on 2015-09-23 14:42


Actress Yoon Eun-hye seems to have decided to keep a low profile amid allegations she copied a dress design for a Chinese TV program.

배우 윤은혜는 그녀가 한 중국 TV 프로그램을 위해 한 의상 디자인을 따라 만든 혐의( allegation)가 있는 가운데(~중에,amid) 세간의 이목을 피하기(keep a low profile)로 결정했던 것으로 보인다.


Yoon was supposed to attend a meet-the-audience event as a director at the Busan International Film Festival, which begins on Oct. 1. Yoon’s short film RedEye was invited to the festival.

윤씨는 10월 1일 개최될 부산 국제 영화제에서 감독으로서 청중과 만나는 행사에 참석할 예정이었다. 윤씨의 단편영화 "RedEye"가 그 영화제에 초청되었다.

Yoon’s management company, J Army Entertainment, said Wednesday it has canceled the event.

윤씨의 소속사(management company) J Army 엔터테인먼트는 수요일에 그 행사는 취소되었다고 말했다.


Yoon has been facing allegations she copied work by Korean designer Yoon Choon-ho when producing clothes for Chinese TV program  

The Goddesses’ New Outfit."

윤씨는 한국인 디자이너 윤춘호씨의 작품을 "The Goddesses’ New Outfit"의 중국 TV프로그램을 위해 옷을 생산할 때 따라만든 혐의(allegations)를 받고 있다.


The item the actress designed was a white jacket with ruffles. When YoonChoon-ho questioned the similarity of the design with one of his, 

the actress denied copying the work. She said the idea came from the Viktor & Rolf and Lanvin collections.

그 배우가 디자인한 그 아이템은 주름장식(ruffle,헝클다)이 달린 쟈켓이다. 윤춘호씨가 그가 디자인한 것중의 하나가 디자인이 닮은 점(similarity)을 이의를 제기할(questioned) 때 그 배우는 그 작품을 따라만든 것을 부인했다(denied). 그녀는 그 아이디어는 Viktor&Rolf 와 Lanvin collections에서 나온 것이라고(came from)  말했다.


Yoon criticized the designer for trying to cash in on her fame.

윤씨는 그 다지이너가 그녀의 명성(fame)으로 돈을 요구하기 위한 것이라고 비난했다(비판,criticized).


The actress was embroiled in another allegation of plagiarism over a balloon-shaped dress with an illustration that was allegedly similar to 

a dress from the2015 F/W line of Dolce and Gabbana.

그 배우는 이른바(allegedly, 주장한 바에 의하면) 돌체 앤 가바나(Dolce and Gabbana)의 2015년 F/W의 한 드레스와 비슷한 삽화(illustration)가 있는 풍선 형상의(balloon-shaped)의 드레스를 표절(plagiarism)의 또 다른 혐의(allegation) 휘말리게 되었다.(be embroiled).


Another black dress she submitted for the show was similar to a design from BCBG MAXAZRIA.

그녀가 그 행사를 위해 제출했던 또 다른 검정 드레스는 BCBG MAXAZRIA의 한 디자인과 비슷했다.


Yoon released a lengthy statement on September 20 denying allegations she copied Yoon Choon-ho’s work.

9월 20일 윤씨는 윤춘호의 작품을 따라만든 혐의(allegation)를 부정(denying)하는 장황한 성명서(lengthy statement)를 공개 발표했다(released).


The actress has been staying in Korea after finishing the second season of the Chinese TV program.

그 배우는 중국 TV프로그램의 시즌2가 끝난 후 한국에서 머무르고 있다.



후기

실제 디자인을 본적은 없지만 표절(plagiarism)은 좀.. 뭐 안걸리면 그만이고 걸려도 모르쇠로 일관하면 어쩌란 말인가....

결과야 두고볼 일이지만 어쨌거나 당사자의 평판에 실금이 갈지도...

Posted by CoolDragon
2015. 10. 12. 18:36

Luxembourg remembers

Published on Sunday, 11 October, 2015 at 16:34


Memorials were held all over Luxembourg on Saturday to honour all those who fought against Nazi fascism during World War II. 

추모(추도,Memorial)은 2차 세계대전동안 나치 파시즘에 대항하여 싸운 이 모든 사람들을 영광을 베풀기(honour) 위하여 토요일 룩셈부르크 전역에서 열렸다(be held).


At a ceremony in Luxembourg City on Saturday, Grand Duke Henri laid a wreath at the main memorial in Place de la Constitution.

토요일 추모식에서 듀크 헨리 공작(Grand)은 Place de la Constitution의 주 추도식에서 화환(wreath)을 놓았다.


Speeches by Luxembourg Prime Minister Xavier Bettel and other leaders reflected on the Luxembourg of 70 years ago. 

Xavier Bettel 수상(Prime Minister)과 다른 리더들의 연설(speeches)은 70년전의 룩셈부르크를 되돌아 봤다(반성했다, reflected on).


“Luxembourg was a country destroyed. Especially in the north, entire villages were in ruins. Fields and forests, cities and residential areas, while the Grand Duchy was peppered with shrapnel, munitions and debris of the bombing.

"룩셈부르크는 한 국가로 파괴되었다. 특히 북쪽 전체(entire) 마을은 폐허가 되었다.  대공국(Grand Duchy)이 파편(shrapnel), 군수품(munitions) 그리고 잔해(debris)의 폭탄이 뿌려지는 동안 논과 숲, 도시와 거주지 말이다."


"Whole streets had disappeared and bridges had been blown up,” the government said in a statement.

"모든 거리가 사라졌고 다리들은 폭파되었다(be blown up, blow up의 수동형)" 라고 정부는 진술을 말하였다.


The statement said that the injury had healed from this “dark chapter in the history of Europe and, for Luxembourg, a period marked by poverty, suffering and grief,” but the scars remained.

그 진술은 그 부상은 "유럽의 역사의 어두운 장(chapter)이고 가난(poverty), 고통(suffering) 그리고 비통(grief)에 의한 분명한 시기의 룩셈부르크였다" 라고 했다. 하지만 여전히 흉터(scars)는 남아있다.


The statement evoked the great courage and solidarity demonstrated by Luxembourgers, who opposed the occupation.

그 진술은 점령(occupation) 을 반대한 룩셈부르크 사람이 보여준(demonstrated) 거대한 용기와 연대를(solidarity) 환기 시켰다(떠올리게 하다, ㄴㄴ).


"Many of them risked their lives and acted to the detriment of their health. We can never thank them enough.”

"그들 중 많은 사람들이 위험을 무릎쓰고(risk) 그들의 삶과 건강에 손상(detriment)이 가는 행동했다. 우리는 절대 그들에게 충분히 감사할 수 없다."


The government called on citizens to continue to remember the sacrifices made and to strive to promote freedom and peace.

정부는 시민들에게 그 희생을 기억하는 것과 자유와 평화를 고취하기(promote) 위해 분투(strive)를 계속해 주기를 부탁했다(call on).


후기

마지막 문장은 어떻게 해석하는게 맞는 것인지 확실치 않아 몇번을 수정하게 만들었다. 아직도 확실치 않다.

기사의 전체적인 내용으로 보면 룩셈부르크의 기념일인 것은 분명하다. 그리고 2차 세계대전 발생하여 많은 인명피해와 재산피해가 발생했나보다. 그 보다 많은 룩셈부르크인이 자기 나라를 지키기 위해서 노력한 점을 국가에서 인정해주고 대우를 해주는 것이 참 인상적이었다.

우리나라에서도 이런 점은 배워야 할 것 중에 하나가 아닐까 싶다.

Posted by CoolDragon
2015. 10. 12. 01:11

Armed robbery in city petrol station

도시 주유소(petrol station=gas station)에서 무장한(Armed) 강도(robbery)


Three armed and masked men robbed a petrol station in Luxembourg City on Friday night, stealing the contents of the till and several cartouches of cigarettes. 

3명의 마스크 쓴 무장 남성들이 지난 금요일밤 룩셈부르크 시티의 한 주유소에서 계산 서랍(till=상점 계산대의 돈서랍)의 내용물(돈)과 담배 상자(cartouches) 여러개를 훔치는 강도질을 하였다.


The robbery took place at around 10pm at a station in rue de Rollingergrund in the capital. According to police, the three entered the petrol station and demanded the cashier empty the contents of the till into a bag. 

10시쯤 그 강도 사건은 수도의 Rollingergrund에 있는 한 주유소에서 발생했다(took place).  경찰에 의하면 그 무장강도 3명은 주유소에 들어가 계산원(cashier)에게 계산서랍(till)의 내용물(돈)을 비워서 가방에 넣으라고 요구했다(demand) 한다.


A customer who entered the shop, not realising a robbery was in progress, was held by one of the men against a fridge. The three fled towards rue JF Boch. 

그 상점에 들어와있던 고객은 강도가 진행되는 것을 눈치채지 못했고, 그 남자들 한명이 냉장고를 기대어 잡고 있었다. 그 3명은 JF Boch길 방향으로 도주하였다(fled, flee의 과거형).


후기

ㅎㄷㄷ 아니 룩셈부르크가 총 들고 설칠 수 있는 나라인 줄 몰랐네. Armed라는 의미가 칼도 해당되는지 모르겠다.

Posted by CoolDragon
2015. 10. 10. 01:33
시작하면서..
룩셈부르크에 살면서 너무 소식이 둔한 것 같기에 영문번역을 통하여 새소식도 듣고 영어공부도 도모하고자 번역을 해본다.

룩스에어는 북유럽의 여러 목적지로 비행을 확대한다.


There will be even more options for people travelling between Prague and Luxembourg when Luxair begins flying the route from March, 2016. 

룩스에어가 2016년 3월부터 프라하-룩셈부르크간 비행을 취항할 때 사람들이 여행할 수 있는 선택권이 늘어날 것이다.


According to the airline, it will fly returns four times a week from March 27, on Mondays, Wednesdays, Fridays and Sundays. 

룩스에어에 의하면(according to), 3월 27일부터 매주 월요일, 수요일, 금요일, 토요일 일주일에 4번 취항할 것이라고 했다.


Fares are expected to start at around 149 euros. Luxair says it will add flights to Stockholm and Copenhagen.

요금은 149유로 쯤으로 시작할 것으로 예상된다. 룩스에어는 스톡홀름과 코펜하겐도 비행을 추가할 것이라고 말한다.


A Saturday flight to Stockholm will be offered from summer 2016, while a Saturday flight to Copenhagen will start in November 2016. 

스톡홀름으로 가는 토요일 비행은 2016년 여름에 제공될(be offered)것 이며, 코펜하겐으로 가는 토요일 비행기는 2016년 11월에 시작될 것이다.


Luxair says will also increase its offer to Dublin during the winter season, with six weekly flights.

룩스에어는 겨울동안 더블린으로 가는 비행기편 또한 주(wieekly) 6회 비행으로 증설할 것이라고 말한다.


후기

기사 번역을 시도해 보지만 매끄럽지 않게 번역이 되어 버렸다. 영어를 모르는건지 국어를 모르는건지.. 틀린부분이 있으면 댓글로 좀 부탁드려요.

Posted by CoolDragon
2015. 9. 18. 19:54

잡설

나는 Entity Framework는 그저 Link to SQL의 확장 정도로 인식해 왔다. 하지만 많은 유튜브 동영상 강좌를 보니 생각보다 다양한 하고 복잡한 프로그래밍 방식을 제공하는 것 같았다. 본인 프로그래밍 방식은 RDBMS에 프로시저 등을 생성하고 코드단에서 그 프로시저들을 호출하는 형태로 작업을 많이 해왔다. 그래서 최소한의 필요 데이터 만을 가져오는 것을 지향해서 테이블 단위의 Model을 생성하기 보다는 그때 그때 필요에 의해 모델들을 생성하다 보니 중복되는 code들이 늘어나는 것을 느꼈다. 특히 Relation에 엮여있는 테이블들의 데이터는 어떤 액션을 하느냐에 따라서 더 그런거 같더라.. 포스팅을 하는 지금 다시 생각해 보면 내가 한 코드단 모델링 방식은 잘 못 설계한 것이라는 생각이 든다. 잡설은 여기까지 하고 Entity Framework에 대한 사용법을 정리해보고자 한다.


Pre-Requisite

Entity Framework Power Tools 설치 (선택된 데이터베이스의 스키마를 자동으로 c#코드로 제너레이션 해준다.)

 - https://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d (VS2015 지원안함)

 - https://visualstudiogallery.msdn.microsoft.com/ee4fcff9-0c4c-4179-afd9-7a2fb90f5838


Development Method

 - Database first: 데이터베이스에 접속하여 스키마를 통하여 모델과 엔티티를 자동생성

 - Model First: 비쥬얼 스튜디오에서 모델을 직접 설계하고 관계도를 만들면 엔티티가 자동생성 (ERD와 비슷)

 - Code First: 자동 생성 없이 엔티티와 DBContext를 상속받은 클래스를 개발자가 직접 작성


Package Manager Console

# entity framework 설치 (Nuget을 사용할 수 있다.)

PM> install-package entityframework


# 데이터베이스의 스키마 정보가 c# 코드로 생성(자동 제너레이션)

PM> enable-migrations


# 데이터베이스의 스키마와 c#코드상에 스키마 정보를 비교하여 변경된 스키마 정보를 yyyyMMddHHmmss_FileName이라는 c#파일로 생성

PM> add-migration FileName


# 아래 명령어를 통하여 변경된 스키마를 데이터베이스에 적용

PM> Update-Database


# 데이터베이스에 적용된 스키마 롤백 (선택된 파일의 상태때로 되돌아 간다. 즉, 선택 파일 이후에 변경되었던 스키마 정보는 모두 롤백된다.)

PM> Update-Database -targetmigration 마이그레이션파일명(.cs제외)


# 최초의 스키마 정보에서부터 타켓으로 변경된 스키마 정보(yyyyMMddHHmmss_FileName)가 스크립트로 생성

PM> Update-Database -Script -SourceMigration: @InitialDatabase - TargetMigration: yyyyMMddHHmmss_FileName


DbContext

public class Employee

{

  public string Id {get; set;}

  public string Name {get; set;}

}


public class EmployeeDBContext : DbContext

{

  public DbSet<Employee> Employees {get; set;}


  protected override void OnModelCreating(DbModelBuilder modelBuilder)

  {

    // 여기에 Entity의 컬럼 속성 및 테이블/프로시져 맵핑 등을 설정할 수 있다.

    // 테이블명이 복수형으로 만들어지는 것을 방지

    modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();

    // Employee에 DB에 프로시져 자동 생성 및 맵핑

    modelBuilder.Entity<Employee>().MapToStoredProcedures

    (p => p.Insert(i => i.HasName("insertEmployee"))

               .Update(i => i.HasName("UpdateEmployee"))

               .Delete(i => i.HasName("DeleteEmployee")));

    base.OnModelCreating(modelBuilder)

  }

}


Pattern

 - Repositories Pattern

 - Unit of Work


DB Initializer

// DB 초기화 클래스 생성

public class DBInitializer : DropCreateDatabaseIfModelChanges<EmployeeDBContext>

{

  protected override void Seed(EmployeeDBContext context)

  {

    // 여기에 Context에 DataSet<Entity>로 선언된 프로퍼티의 기준 데이터를 생성해 줄 수 있다.

    base.Seed(context); 

  }

}

// Main() 함수나 Global.asax 의 실행부에 아래 함수를 호출하거나

System.Data.Entity.Database.SetInitializer(new DBInitializer());

// 또는 app.config나 web.config의 <entityframwork>에서 설정이 가능하다.

  <entityFramework>

    <contexts>

      <context type="Context Class Name, DLL Name">

        <databaseInitializer type="DBInitializer, DLL Name" />

      </context>

    </contexts>



Attribute

[SoftDelete("Property Name")]

모델 클래스에 SoftDelete()라는 속성을 선언하면 DB에 쿼리를 만드는 시점 Command Tree Interceptor 에서 그 쿼리를 가로채 실제 요청쿼리에 맞게 변환작업을 할 수 있게 한다.

이 기능이 구현하기 위해서는 Custom Attribute class 와 IDbCommandTreeInterceptor 인터페이스를 상속받은 class를 만들어 주어야 한다.


[DisplayFormat(DataFormatString = "{0:C0}")]



Tutorial

http://www.entityframeworktutorial.net/code-first/entity-framework-code-first.aspx


참조

https://www.youtube.com/playlist?list=PL6n9fhu94yhUPBSX-E2aJCnCR3-_6zBZx

https://www.youtube.com/watch?v=iwEG1M2ONrw

https://www.youtube.com/watch?v=vspEYmp6zWc

https://www.youtube.com/watch?v=i9Il79a2uBU

Posted by CoolDragon
2015. 9. 16. 17:28
본인이 느끼는 LESS의 큰 장점은 아래가 아닐까 싶다.
  1. Variables: 변수 선언이 가능
  2. Mixins: 공통적으로 사용될 클래스나 #태그ID 를 변수처럼 선언하여 그 변수를 다른 클래스나 #태그ID의 속성으로 쉽게 적용
  3. Nested Rule(Cascading): 태그나 클래스들을 계층적인 구조로 작업할 수 있어 하위 관계에 있는 태크나 클래스가 무엇인지 쉽게 확인이 가능
  4. Operation: 수학식 연산 작업이 가능
  5. Function: 다양한 내장 함수를 제공


다만 이런 장점이 극대화되기 위해선 개발자와 퍼블리셔 또는 디자이너간의 협업이 중요할 것으로 생각된다.

퍼블리셔(웹디자이너)가 원 그대로 CSS 파일을 전달해 주고 그것을 다시 개발자가 LESS 구조로 변환하는 작업은 시간 낭비가 되지 않을까 싶다.

백엔드 오피스툴 작업처럼 디자이너 없이 HTML, CSS를 개발자가 직접 작업하는 경우나 위의 경우처럼 개발자와 웹디자이너의 LESS 학습으 통하여 작업되는 경우 CSS를 조금 더 직관적이며  프로그램적인 시선으로 바라볼 수 있지 않을까 싶다.


웹 페이지에 LESS에서 제공하는 javascript파일 include하여 런타임에 컴파일(?)을 하거나 grunt와 같은 기능으로 less파일을 css파일로 쉽게 변환이 가능하다.


더 많은 기능과 자세한 사용법은 LESS 사이트에서 확인해 볼 수 있다.

Posted by CoolDragon
2015. 9. 10. 03:23

turn up

1) 나타나다 (appear)

2) (소리를) 높이다. (increase the volumn)


예문

1) Many people turned up to see the celebrities.

2) Could you turn up the TV please?


Posted by CoolDragon
2015. 9. 10. 03:16

let down (=disappoint)

1) 실망시키다.


예문

1) The shoes was terrible. I was really let down by it.


Posted by CoolDragon
2015. 9. 10. 03:13

make up

1) 보상하다 (compensate)

2) 말을 지어내다. (fabricate)


예문

1) He will make up for it somehow.

2) I think he was making up an excuse.


Posted by CoolDragon