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


또는 


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


참 쉽죠?


Posted by 삼백야드


'CAE > EPILYSIS' 카테고리의 다른 글

Linear Static Analysis  (0) 2017.09.28
Posted by 삼백야드

Mysql 설정

Computer/Linux 2017.09.28 14:43

Remove all files related to MySQL


sudo apt-get purge mysql*

sudo apt-get autoremove

sudo apt-get autoclean


rm -rf /rm -rf /var/log/mysql

rm -rf /var/log/mysql.*

rm -rf /var/lib/mysql

rm -rf /etc/mysqlvar/log/mysql

rm -rf /var/log/mysql.*

rm -rf /var/lib/mysql

rm -rf /etc/mysql

        

        sudo apt-get remove dbconfig-mysql



Then upgrade my distribution


sudo apt-get dist-upgrade


Then install MySQL 


    sudo apt-get update

    sudo apt-get install mysql-server



To initialize the MySQL data directory, you would use mysql_install_db for versions before 5.7.6, and mysqld --initialize for 5.7.6 and later. However, if you installed MySQL from the Debian distribution, like in Step 1, the data directory was initialized automatically; you don't have to do anything. If you try running the command anyway, you'll see the following error:



mysqld --verbose --lower-case-table-names=1 --character-set-server=utf8 --collation-server=utf8_general_ci --transaction-isolation=READ-COMMITTED


PASSWORD 복잡성해제

/usr/lib64/mysql/plugin/ 경로에 있는 validate_password.so을 삭제 하거나 이름을 변경



sudo service mysql restart


firewall setting


sudo ufw allow 22

sudo ufw allow ssh

'Computer > Linux' 카테고리의 다른 글

Mysql 설정  (0) 2017.09.28
Posted by 삼백야드

Script 언어중 가장 널리(?) 쓰이고 있는 파이썬의 무료 eBook Site입니다.


아무리 싼거 골라잡아도 2만원을 훌쩍 넘는 책값인데...


인터넷에서 무료로 다운로드 받을 수 있습니다.

다른 유용한 책들도 많으니 참고하시길


http://www.freetechbooks.com/python-f6.html?page=4



'PROGRAMING > Python' 카테고리의 다른 글

파이썬 교육자료  (0) 2017.09.28
Posted by 삼백야드
TAG ebook, pdf, Python

//bs 파일예제..

// 설정파일 불러와서 

// 1. Spot weld 생성

// 2. Morph Param 수정

// 3. PID의 두께 수정



'CAE > ANSA SCRIPT' 카테고리의 다른 글

ANSA OPTIMIZE EXAMPLE  (0) 2017.09.27
체크박스 생성예제  (0) 2017.09.27
Posted by 삼백야드

'CAE > ANSA SCRIPT' 카테고리의 다른 글

ANSA OPTIMIZE EXAMPLE  (0) 2017.09.27
체크박스 생성예제  (0) 2017.09.27
Posted by 삼백야드
TAG ANSA, META, SCRIPT

 

Ubuntu에 ANSA설치(까지 전혀문제 없음)하고 실행하는데....

 

아래와 같은 에러메세지 나타남.

 

 

헛... 옛날옛적 삽질할때 많이보던 Lib 합이 맞지않는 에러인것 같은데...

 

다행히 구글을 찾아보니 Matlab도 비슷한 실수를 저지른듯..

 

http://askubuntu.com/questions/719028/version-glibcxx-3-4-21-not-found

 

 

 

막줄의 LD_PRELOAD 어쩌고..를 참조하니까 해결완료.

 

그런데 VM에서만 테스트한거라서 실제 Machine에서는 에러가 나지 않을수도 있음.

 

'CAE > ANSA' 카테고리의 다른 글

UBUNTU에 ANSA 설치시 에러  (0) 2017.03.02
Posted by 삼백야드

Grid Ctrl...

PROGRAMING/BCG 2012.10.18 22:10

 

 

 

I think adding columns to an existing grid adds only the column and not the cells. It's probably a good thing if yu have merged cells anywhere. So basically if the row count isn't equal to the reported grid column count check and add cells to it.

CBCGPGridRow* pRow = m_pGridCtrl->GetRow(iRow);
if(pRow!=NULL) // For some reason adding columns to an existing grid only adds them to the header row?
{// (it appears adding a new column to an existing grid doesn't create the cells)
while(pRow->GetItemCount() != m_pGridCtrl->GetColumnCount())
{
for(int iFillRow = 0; iFillRow<m_pGridCtrl->GetColumnCount(); iFillRow++)
{
if(!pRow->GetItem(iFillRow))
{ CBCGPGridItem * pCell = m_pGridCtrl->CreateItem(iRow,iFillRow);
ASSERT(pCell);
pRow->AddItem(pCell);
}
}
}
}

 

'PROGRAMING > BCG' 카테고리의 다른 글

Grid Ctrl...  (0) 2012.10.18
VS2010에서 컴파일할때 에러나는것  (0) 2012.06.28
Posted by 삼백야드

그냥 하던대로 설정해서 컴파일하면 에러남.

MFCSTATIC BUILD에서

 

error LNK2001: unresolved external symbol _xGetMonitorInfo@8
........

줄줄줄 난리도 아님..

 

 

 

아주 예전부터 나던것이고,,

최신버전으로 올라가면 Bug fix 될줄로만 알았는데...

어제 V180나온걸로 해봐도 똑같은걸 보니까.....

 

계네들이 이 문제를 BUG라고 보고있지 않은것 같음.

 

고치는 방법은

 

stdafx.cpp 에다가

 

#if _MSC_VER > 1500
#define COMPILE_MULTIMON_STUBS
#include "multimon.h"
#endif

 

넣으면 간단해결됨.

 

 

   

====> V19.00 에서 수정됨.

 

 

 

'PROGRAMING > BCG' 카테고리의 다른 글

Grid Ctrl...  (0) 2012.10.18
VS2010에서 컴파일할때 에러나는것  (0) 2012.06.28
Posted by 삼백야드

Hi,

I am using OpenCV to capture video from a webcam while toggling
between camera settings. The idea is to turn on the camera's infrared
lights and then turn them off and look at the difference between the
frames to track objects.

But my problem is that there seems to be old data in the captures.
Meaning, after I turn the infrared off, the video still shows infrared
effects for the first few frames. I think the reason might be that
there is still old frame data in the video capture buffer. Right now I
am calling QueryFrame a few times in order to empty the buffer, but
this results in a time lag. And since I need to toggle quite quickly,
this lag is having a big effect on my results.

Is there a way to empty the buffer quickly and access only live
images, or does anyone know of any other reason this might be happening?

Thank you!

Here is a code snippet:

int _tmain(int argc, _TCHAR* argv[])
{
// Find the webcam device using Direct Show
HRESULT hr;
IBaseFilter *pSrcFilter=NULL;
hr = FindCaptureDevice(&pSrcFilter);

// allocate memory for frame images
IplImage *capframe=0;
IplImage *frame=0;
IplImage *infraFrame=0;

// Use OpenCV capture to stream live video from video device 0
CvCapture* capture = cvCaptureFromCAM(0);
// Create a window to display the video frames
cvNamedWindow("ToothSleuth");
// Create another window to display the infrared video frames
cvNamedWindow("Infrared ToothSleuth");

// Control webcam settings with the IAmCameraControl Interface
CComPtr<IAMCameraControl> pCameraControl;
pSrcFilter->QueryInterface(IID_IAMCameraControl,(void**)&pCameraControl);

capframe=cvQueryFrame(capture);
frame=cvCloneImage(capframe);
infraFrame=cvCloneImage(capframe);

// Begin video capture
while(1) {
// Set infrared to "on"
pCameraControl->Set(CameraControl_Exposure,
0x0001,CameraControl_Flags_Auto);
cvQueryFrame(capture);
cvQueryFrame(capture);
capframe=cvQueryFrame(capture);
cvCopy(capframe,frame);

// Set infrared to "off"
pCameraControl->Set(CameraControl_Exposure,
0x0002,CameraControl_Flags_Manual);
cvQueryFrame(capture);
capframe=cvQueryFrame(capture);
cvCopy(capframe,infraFrame);

// Display the two videos
cvShowImage("ToothSleuth", frame);
cvShowImage("Infrared ToothSleuth", infraFrame);


// Wait for escape key to terminate
if(c==27) {
break;
}
frameCount++;
}

return 0;
}


Posted by 삼백야드