검색결과 리스트
짬타이거♬에 해당되는 글 69건
- 2013.01.14 [Excel] Rand함수를 이용한 정렬
- 2012.10.10 드라마에 빠지다.
- 2012.02.10 트와일라잇 시리즈
- 2012.01.13 C# 이미지 합성
- 2011.12.12 아스테리오스폴립
- 2011.12.01 [파울로 코엘료]알레프
- 2011.11.29 닥치고 정치
- 2011.11.14 MSSQL2008 튜닝 자료
- 2011.11.14 Java, C# 간에 라인달 128비트 암호화
- 2011.11.14 IIS7 확장자 매핑
글
위와 같은 자료를 랜덤으로 정렬해보자.
1. 랜덤 RAND() 함수를 이용해 값을 추가한다.
2. 데이터 > 필터 추가
3. 랜덤정렬 기준으로 오름차순 또는 내림차순 으로 정렬한다.
*생성된 값은 액션이 있을 경우마다 매번 새롭게 랜덤 값이 발생한다.
4. 결과
'프로그램 > - Etc' 카테고리의 다른 글
Meta정보 정리 (0) | 2015.06.19 |
---|---|
log4j 로그레벨 (0) | 2014.11.28 |
[Excel] 전치행렬 TRANSPOSE함수 (0) | 2011.07.05 |
글
연애시대, 커피프린스 1호점, 스포트라이트, 그들이 사는 세상, 아일랜드
이미 지나간 드라마.
다른 사람들의 입에 이제는 오르내리지 않는 드라마.
시청률이 높았든 혹은 낮았던 나에게는 새로운 맛이 있는 드라마들이었다.
그중 "그들이 사는 세상이" 가장 재밌었고 색다른 드라마였다.
나의 외장 하드에 고이고이 간직하고 묵혀놓고 나중에 시간이 되면 다시 보리라~ 꼭!
글
글
@using System.Drawing
@{
string
fileUrl = Request.QueryString.ToString("fileUrl");
string
coverImageUrl = (String.IsNullOrEmpty(Request.QueryString["coverImageUrl"]) ? "icon_recommend.png" :
Request.QueryString.ToString("coverImageUrl"));
//
소스이미지
Bitmap
sourceImage = new Bitmap(Server.MapPath(fileUrl));
Bitmap
starImage = new Bitmap(Server.MapPath("/Resource/Image/" + coverImageUrl));
Bitmap
outputImage = new Bitmap(sourceImage.Width,
sourceImage.Height);
Graphics
g = Graphics.FromImage(outputImage);
g.InterpolationMode =
System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
g.DrawImage(sourceImage,
0, 0, sourceImage.Width, sourceImage.Height);
g.DrawImage(starImage, 0,
0, starImage.Width, starImage.Height);
Response.ContentType = "image/jpeg";
outputImage.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Png);
starImage.Dispose();
sourceImage.Dispose();
outputImage.Dispose();
g.Dispose();
}
'프로그램 > - .Net' 카테고리의 다른 글
초성 얻어오기 (0) | 2013.05.08 |
---|---|
안드로이드 마켓 바로가기 링크 (0) | 2013.05.08 |
iframe 쿠키사용 P3P 규약 (0) | 2013.05.08 |
웹페이지 한글깨짐 현상 (0) | 2013.05.08 |
Java, C# 간에 라인달 128비트 암호화 (0) | 2011.11.14 |
글
'책' 카테고리의 다른 글
[파울로 코엘료]알레프 (0) | 2011.12.01 |
---|---|
닥치고 정치 (0) | 2011.11.29 |
장 자끄 상뻬 3set (0) | 2011.10.07 |
안드로이드 2.2 프로그래밍 (0) | 2011.07.19 |
고구려 (0) | 2011.04.07 |
글
'책' 카테고리의 다른 글
아스테리오스폴립 (0) | 2011.12.12 |
---|---|
닥치고 정치 (0) | 2011.11.29 |
장 자끄 상뻬 3set (0) | 2011.10.07 |
안드로이드 2.2 프로그래밍 (0) | 2011.07.19 |
고구려 (0) | 2011.04.07 |
글
'책' 카테고리의 다른 글
아스테리오스폴립 (0) | 2011.12.12 |
---|---|
[파울로 코엘료]알레프 (0) | 2011.12.01 |
장 자끄 상뻬 3set (0) | 2011.10.07 |
안드로이드 2.2 프로그래밍 (0) | 2011.07.19 |
고구려 (0) | 2011.04.07 |
글
'프로그램 > - Sql' 카테고리의 다른 글
[Mysql Workbench]UPDATE 쿼리 실행시 Error Code 1175 (0) | 2014.11.10 |
---|---|
Ms-SQL ㄱㄴㄷ 가나다 검색 (0) | 2013.05.08 |
MS2008 로그확인 & 사이즈 축소 (0) | 2011.11.14 |
Split사용자 함수 (0) | 2011.11.14 |
MS SQL 중복값제거하기 (0) | 2011.11.14 |
글
JAVA
import javax.crypto.*;
import javax.crypto.spec.*;
import java.io.*;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
class JavaEnCryto
{
public static void main(String[] args)
{
try
{
System.out.println(Encrypt("abc@naver.com","_dhqxlak2010_"));
}
catch (Exception ex)
{
System.out.println("오류");
}
}
public static String Decrypt(String text, String key) throws Exception
{
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
byte[] keyBytes= new byte[16];
byte[] b= key.getBytes("UTF-8");
int len= b.length;
if (len > keyBytes.length) len = keyBytes.length;
System.arraycopy(b, 0, keyBytes, 0, len);
SecretKeySpec keySpec = new SecretKeySpec(keyBytes, "AES");
IvParameterSpec ivSpec = new IvParameterSpec(keyBytes);
cipher.init(Cipher.DECRYPT_MODE,keySpec,ivSpec);
BASE64Decoder decoder = new BASE64Decoder();
byte [] results = cipher.doFinal(decoder.decodeBuffer(text));
return new String(results,"UTF-8");
}
public static String Encrypt(String text, String key) throws Exception
{
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
byte[] keyBytes= new byte[16];
byte[] b= key.getBytes("UTF-8");
int len= b.length;
if (len > keyBytes.length) len = keyBytes.length;
System.arraycopy(b, 0, keyBytes, 0, len);
SecretKeySpec keySpec = new SecretKeySpec(keyBytes, "AES");
IvParameterSpec ivSpec = new IvParameterSpec(keyBytes);
cipher.init(Cipher.ENCRYPT_MODE,keySpec,ivSpec);
byte[] results = cipher.doFinal(text.getBytes("UTF-8"));
BASE64Encoder encoder = new BASE64Encoder();
return encoder.encode(results);
}
}
C#
using System;
using System.IO;
using System.Text;
using System.Security.Cryptography;
namespace AESWithJava.Con
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Encrypt("abc@naver.com", "_dhqxlak2010_"));
}
public static string Decrypt(string textToDecrypt, string key)
{
RijndaelManaged rijndaelCipher = new RijndaelManaged();
rijndaelCipher.Mode = CipherMode.CBC;
rijndaelCipher.Padding = PaddingMode.PKCS7;
rijndaelCipher.KeySize = 128;
rijndaelCipher.BlockSize = 128;
byte[] encryptedData = Convert.FromBase64String(textToDecrypt);
byte[] pwdBytes = Encoding.UTF8.GetBytes(key);
byte[] keyBytes = new byte[16];
int len = pwdBytes.Length;
if (len > keyBytes.Length)
{
len = keyBytes.Length;
}
Array.Copy(pwdBytes, keyBytes, len);
rijndaelCipher.Key = keyBytes;
rijndaelCipher.IV = keyBytes;
byte[] plainText = rijndaelCipher.CreateDecryptor().TransformFinalBlock(encryptedData, 0, encryptedData.Length);
return Encoding.UTF8.GetString(plainText);
}
public static string Encrypt(string textToEncrypt, string key)
{
RijndaelManaged rijndaelCipher = new RijndaelManaged();
rijndaelCipher.Mode = CipherMode.CBC;
rijndaelCipher.Padding = PaddingMode.PKCS7;
rijndaelCipher.KeySize = 128;
rijndaelCipher.BlockSize = 128;
byte[] pwdBytes = Encoding.UTF8.GetBytes(key);
byte[] keyBytes = new byte[16];
int len = pwdBytes.Length;
if (len > keyBytes.Length)
{
len = keyBytes.Length;
}
Array.Copy(pwdBytes, keyBytes, len);
rijndaelCipher.Key = keyBytes;
rijndaelCipher.IV = keyBytes;
ICryptoTransform transform = rijndaelCipher.CreateEncryptor();
byte[] plainText = Encoding.UTF8.GetBytes(textToEncrypt);
return Convert.ToBase64String(transform.TransformFinalBlock(plainText, 0, plainText.Length));
}
}
}
'프로그램 > - .Net' 카테고리의 다른 글
초성 얻어오기 (0) | 2013.05.08 |
---|---|
안드로이드 마켓 바로가기 링크 (0) | 2013.05.08 |
iframe 쿠키사용 P3P 규약 (0) | 2013.05.08 |
웹페이지 한글깨짐 현상 (0) | 2013.05.08 |
C# 이미지 합성 (0) | 2012.01.13 |
글
작업내용 : hidoc.aspx -> hidoc.rss 로 변경
1. IIS설정
처리기매핑 추가 (관리되는 처리기 추가)
MINE 형식 추가
2. Web.config 설정
httpHandlers 추가
<httpHandlers>
<add path="*.rss" verb="*" type="System.Web.UI.PageHandlerFactory" validate="true" />
<httpHandlers>
buildProvider 추가
<compilation debug="true">
<buildProviders>
<add extension=".rss" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
'프로그램 > - 일반' 카테고리의 다른 글
Object 표준태그 (0) | 2011.05.13 |
---|
RECENT COMMENT