windows prompt
cd C:\windows\Microsoft.NET\Framework\v2.0.50727
aspnet_regiis -pdf "connectionStrings" D:\temp
or
aspnet_regiis -pdf "system.web/machineKey" D:\temp
web.config 를 다른 곳에서 사용하기 위해서 원본 web.config 가 있는 곳에서 먼저 복호화를 해야 한다
2015년 9월 23일 수요일
2015년 9월 21일 월요일
using the windows headers
https://msdn.microsoft.com/ko-kr/library/aa383745.aspx
Minimum system required Minimum value for _WIN32_WINNT and WINVER
Windows 8.1 _WIN32_WINNT_WINBLUE (0x0602)
Windows 8 _WIN32_WINNT_WIN8 (0x0602)
Windows 7 _WIN32_WINNT_WIN7 (0x0601)
Windows Server 2008 _WIN32_WINNT_WS08 (0x0600)
Windows Vista _WIN32_WINNT_VISTA (0x0600)
Windows Server 2003 with SP1, Windows XP with SP2 _WIN32_WINNT_WS03 (0x0502)
Windows Server 2003, Windows XP _WIN32_WINNT_WINXP (0x0501)
Minimum system required Minimum value for _WIN32_WINNT and WINVER
Windows 8.1 _WIN32_WINNT_WINBLUE (0x0602)
Windows 8 _WIN32_WINNT_WIN8 (0x0602)
Windows 7 _WIN32_WINNT_WIN7 (0x0601)
Windows Server 2008 _WIN32_WINNT_WS08 (0x0600)
Windows Vista _WIN32_WINNT_VISTA (0x0600)
Windows Server 2003 with SP1, Windows XP with SP2 _WIN32_WINNT_WS03 (0x0502)
Windows Server 2003, Windows XP _WIN32_WINNT_WINXP (0x0501)
2015년 9월 17일 목요일
2015년 9월 15일 화요일
samba install & conf with ubuntu
## linux
useradd username
passwd username
apt-get install samba
smbpasswd -a username
vim /etc/samba/smb.conf
[sharename]
comment = Samba Server
path = /home/username
valid users = username
writable = yes
public = yes
create mask = 0777
directory mask = 0777
service samba restart
service smbd restart
## windows
\\192.168.0.x
login
useradd username
passwd username
apt-get install samba
smbpasswd -a username
vim /etc/samba/smb.conf
[sharename]
comment = Samba Server
path = /home/username
valid users = username
writable = yes
public = yes
create mask = 0777
directory mask = 0777
service smbd restart
## windows
\\192.168.0.x
login
2015년 9월 11일 금요일
Error found when loading /root/.profile
Error found when loading /root/.profile
stdin: is not a tty
as a result the session will not be configured correctly
==>
vi /root/.profile
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
tty -s && mesg n
#mesg n
stdin: is not a tty
as a result the session will not be configured correctly
==>
vi /root/.profile
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
tty -s && mesg n
#mesg n
2015년 9월 10일 목요일
7z with ubuntu
apt-get install p7zip
unzip : 7zr x filename.7z
zip : 7zr a filename.7z filename1 test2 test3
unzip : 7zr x filename.7z
zip : 7zr a filename.7z filename1 test2 test3
2015년 9월 6일 일요일
proxy bypass
utils
http://www.ultrasurf.us/
crome plugin
Data Compression Proxy for Google Chrome on Desktop
http://www.ultrasurf.us/
crome plugin
Data Compression Proxy for Google Chrome on Desktop
2015년 9월 2일 수요일
dns info
인터넷 서비스 업체 SK 브로드밴드 올레 KT LG 유플러스
기본 DNS 서버 219.250.36.130 168.126.63.1 164.124.107.9
보조 DNS 서버 210.220.163.82 168.126.63.2 203.248.242.2
기본 DNS 서버 219.250.36.130 168.126.63.1 164.124.107.9
보조 DNS 서버 210.220.163.82 168.126.63.2 203.248.242.2
2015년 9월 1일 화요일
video rendering with c++
buffer is PIX_FMT_BGR24 data
m_flipview is dc for rendering
uchar buf[sizeof(BITMAPINFO) + 256 * 4];
BITMAPINFO* bmi = (BITMAPINFO*)buf;
BITMAPINFOHEADER* bmih = &(bmi->bmiHeader);
memset(bmih, 0, sizeof(*bmih));
bmih->biSize = sizeof(BITMAPINFOHEADER);
bmih->biWidth = m_pCodec[DevID]->m_nWidth;
bmih->biHeight = -m_pCodec[DevID]->m_nHeight;
bmih->biPlanes = 1;
bmih->biBitCount = 24;
bmih->biCompression = BI_RGB;
HDC hdc = m_pDlg->m_flipview.GetDC()->m_hDC;
::SetStretchBltMode(hdc, COLORONCOLOR);
::StretchDIBits(hdc, 0, 0, 640, 360,
0, 0, m_pCodec[DevID]->m_nWidth, m_pCodec[DevID]->m_nHeight,
buffer, bmi,
DIB_RGB_COLORS, SRCCOPY);
m_flipview is dc for rendering
uchar buf[sizeof(BITMAPINFO) + 256 * 4];
BITMAPINFO* bmi = (BITMAPINFO*)buf;
BITMAPINFOHEADER* bmih = &(bmi->bmiHeader);
memset(bmih, 0, sizeof(*bmih));
bmih->biSize = sizeof(BITMAPINFOHEADER);
bmih->biWidth = m_pCodec[DevID]->m_nWidth;
bmih->biHeight = -m_pCodec[DevID]->m_nHeight;
bmih->biPlanes = 1;
bmih->biBitCount = 24;
bmih->biCompression = BI_RGB;
HDC hdc = m_pDlg->m_flipview.GetDC()->m_hDC;
::SetStretchBltMode(hdc, COLORONCOLOR);
::StretchDIBits(hdc, 0, 0, 640, 360,
0, 0, m_pCodec[DevID]->m_nWidth, m_pCodec[DevID]->m_nHeight,
buffer, bmi,
DIB_RGB_COLORS, SRCCOPY);
snmp with centos
yum install net-snmp net-snmp-utils
vi /etc/snmp/snmpd.conf
# Map 'idv90we3rnov90wer' community to the 'ConfigUser'
# Map '209ijvfwer0df92jd' community to the 'AllUser'
# sec.name source community
com2sec ConfigUser default idv90we3rnov90wer
com2sec AllUser default 209ijvfwer0df92jd
# Map 'ConfigUser' to 'ConfigGroup' for SNMP Version 2c
# Map 'AllUser' to 'AllGroup' for SNMP Version 2c
# sec.model sec.name
group ConfigGroup v2c ConfigUser
group AllGroup v2c AllUser
# Define 'SystemView', which includes everything under .1.3.6.1.2.1.1 (or .1.3.6.1.2.1.25.1)
# Define 'AllView', which includes everything under .1
# incl/excl subtree
view SystemView included .1.3.6.1.2.1.1
view SystemView included .1.3.6.1.2.1.25.1.1
view AllView included .1
# Give 'ConfigGroup' read access to objects in the view 'SystemView'
# Give 'AllGroup' read access to objects in the view 'AllView'
# context model level prefix read write notify
access ConfigGroup "" any noauth exact SystemView none none
access AllGroup "" any noauth exact AllView none none
/etc/init.d/snmpd restart
vi /etc/snmp/snmpd.conf
# Map 'idv90we3rnov90wer' community to the 'ConfigUser'
# Map '209ijvfwer0df92jd' community to the 'AllUser'
# sec.name source community
com2sec ConfigUser default idv90we3rnov90wer
com2sec AllUser default 209ijvfwer0df92jd
# Map 'ConfigUser' to 'ConfigGroup' for SNMP Version 2c
# Map 'AllUser' to 'AllGroup' for SNMP Version 2c
# sec.model sec.name
group ConfigGroup v2c ConfigUser
group AllGroup v2c AllUser
# Define 'SystemView', which includes everything under .1.3.6.1.2.1.1 (or .1.3.6.1.2.1.25.1)
# Define 'AllView', which includes everything under .1
# incl/excl subtree
view SystemView included .1.3.6.1.2.1.1
view SystemView included .1.3.6.1.2.1.25.1.1
view AllView included .1
# Give 'ConfigGroup' read access to objects in the view 'SystemView'
# Give 'AllGroup' read access to objects in the view 'AllView'
# context model level prefix read write notify
access ConfigGroup "" any noauth exact SystemView none none
access AllGroup "" any noauth exact AllView none none
/etc/init.d/snmpd restart
splash activity with adnroid
SplashActivity.java
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class SplashActivity extends Activity {
// Splash screen timer
private static int SPLASH_TIME_OUT = 3000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
// This method will be executed once the timer is over
// Start your app main activity
Intent i = new Intent(SplashActivity.this, MainActivity.class);
startActivity(i);
finish();
}
}, SPLASH_TIME_OUT);
}
}
AndroidManifest.xml
<!-- Splash screen -->
<activity
android:name=".SplashActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAINACTIVITY" />
<category android:name="android.intent.category.MAIN" />
</intent-filter>
</activity>
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class SplashActivity extends Activity {
// Splash screen timer
private static int SPLASH_TIME_OUT = 3000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
// This method will be executed once the timer is over
// Start your app main activity
Intent i = new Intent(SplashActivity.this, MainActivity.class);
startActivity(i);
finish();
}
}, SPLASH_TIME_OUT);
}
}
AndroidManifest.xml
<!-- Splash screen -->
<activity
android:name=".SplashActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAINACTIVITY" />
<category android:name="android.intent.category.MAIN" />
</intent-filter>
</activity>
git for eclipse
help > install new software
1. http://download.eclipse.org/egit/updates
2. "Eclipse Git Team Provider" select
1. http://download.eclipse.org/egit/updates
2. "Eclipse Git Team Provider" select
피드 구독하기:
글 (Atom)