锘??xml version="1.0" encoding="utf-8" standalone="yes"?>

AlanTop 2019-07-09 14:03 鍙戣〃璇勮
]]>Installing Node.js and Express on Ubuntuhttp://www.2676208.com/eryar/archive/2019/07/08/ubuntu_nodejs.htmleryareryarMon, 08 Jul 2019 04:10:00 GMThttp://www.2676208.com/eryar/archive/2019/07/08/ubuntu_nodejs.htmlhttp://www.2676208.com/eryar/comments/216511.htmlhttp://www.2676208.com/eryar/archive/2019/07/08/ubuntu_nodejs.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216511.htmlhttp://www.2676208.com/eryar/services/trackbacks/216511.htmlInstalling Node.js and Express on Ubuntu

1. 鍦╪odejs瀹樼綉涓?#28051;嬭浇Linux Binaries(宸茬粡鍖呭惈浜唍pm):

2. 瀹夎Node.js
涓嬭浇鍚庤В鍘?#38171;?#39582;?#37734;?#29785;?#37720;?#37928;勬枃浠跺す涓惎鍔═erminal鍚?#38171;?#26440;撳叆鍛戒护锛?br />    sudo cp * /usr/local/ -r
鍐?#26440;撳叆鍛戒护锛?br />    node -v
    npm -v
鏌ョ湅绋嬪簭鐗?#37832;?#38171;屾潵妫娴?#37828;?#37722;︽垚鍔?#28729;夎锛?br />

3. 瀹夎express
    npm install -g express-generator

4. 娴嬭瘯Node鍜孍xpress
鐢–esium?#28533;娴嬭瘯涓涓?#28729;夎鏄?#37722;︽垚鍔?#38171;?#26473;涘叆鍒癈esium婧愮爜?#26499;浠跺す锛?#26440;撳叆鍛戒护锛?br />Node server.js


琛?#32448;哄惎鍔ㄦ垚鍔?#38171;?#37734;?#23092;?#29785;?#37731;?#28051;?#26440;撳叆?#32137;?#28483;锛歨ttp://localhost:8080/


鐐瑰嚮閾炬帴Hello World鍑?#37916;?#28051;嬮潰鐨?#26473;?#28051;?#37734;?#37918;?#38171;?br />





eryar 2019-07-08 12:10 鍙戣〃璇勮
]]>
python 閲嶈浇瀹?#37916;?/title><link>http://www.2676208.com/zhangyq/archive/2019/07/08/216505.html</link><dc:creator>Benjamin</dc:creator><author>Benjamin</author><pubDate>Mon, 08 Jul 2019 01:13:00 GMT</pubDate><guid>http://www.2676208.com/zhangyq/archive/2019/07/08/216505.html</guid><wfw:comment>http://www.2676208.com/zhangyq/comments/216505.html</wfw:comment><comments>http://www.2676208.com/zhangyq/archive/2019/07/08/216505.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/zhangyq/comments/commentRss/216505.html</wfw:commentRss><trackback:ping>http://www.2676208.com/zhangyq/services/trackbacks/216505.html</trackback:ping><description><![CDATA[     鎽樿: python 閲嶈浇瀹?#37916;?nbsp; <a href='http://www.2676208.com/zhangyq/archive/2019/07/08/216505.html'>闃?#29831;?#37711;ㄦ枃</a><img src ="http://www.2676208.com/zhangyq/aggbug/216505.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/zhangyq/" target="_blank">Benjamin</a> 2019-07-08 09:13 <a href="http://www.2676208.com/zhangyq/archive/2019/07/08/216505.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Boost test vs2013 fatal error C1001http://www.2676208.com/eryar/archive/2019/07/06/boost_test.htmleryareryarSat, 06 Jul 2019 04:54:00 GMThttp://www.2676208.com/eryar/archive/2019/07/06/boost_test.htmlhttp://www.2676208.com/eryar/comments/216504.htmlhttp://www.2676208.com/eryar/archive/2019/07/06/boost_test.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216504.htmlhttp://www.2676208.com/eryar/services/trackbacks/216504.htmlBoost test vs2013 fatal error C1001

鍦?span style="font-family: 'Times New Roman';">Visual Studio 2013涓娇鐢?/span>boost鐨?/span>test妯″潡鏃朵細鎶ヨ嚧鍛介敊璇?#38171;屽涓嬪浘鎵绀?#38171;?/span>

杈撳嚭鎶ラ敊淇℃伅濡?#28051;?#38171;?/p>

1>------ Build started: Project: Test, Configuration: Debug Win32 ------

1>  main.cpp

1>d:\boost_1_70_0\boost\type_traits\common_type.hpp(47): fatal error C1001: An internal error has occurred in the compiler.

1>  (compiler file 'msc1.cpp', line 1325)

1>   To work around this problem, try simplifying or changing the program near the locations listed above.

1>  Please choose the Technical Support command on the Visual C++ 

1>   Help menu, or open the Technical Support help file for more information

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

瀹氫?#23941;埌鎶?#38335;欐枃浠?#37828;痗ommon_type.hpp锛?/span>

 

?#24434;浠ョ湅鍑?#37828;?#37733;?#28051;篊XX11鐨?#37720;熷洜锛屽洜涓?/span>VS2013涓?#37824;寔C++11锛?#37813;浠?/span>boost鎻愪緵浜?#28051;涓?#28729;?#28729;氫箟?#28533;璁?#32515;?#37828;?#37722;?#37824;寔CXX11锛?/span>

BOOST_NO_CXX11_TEMPLATE_ALIASES

鍦≒roject->Properties->C/C++->Preprocessor涓?#29825;?#32515;?#37719;冲彲锛?/span>

 

 


涓?#27996;嗘柟?#31350;澶?#28729;?#37734;?#32457;?#37716;?#32468;?#28052;熻兘?#28229;鍒版垜鐨?#37719;?#37826;囧?#23683;璁?#27996;?#23092;?#38171;?#37916;板凡?#25950;鍐屽井淇?#37711;?#28028;楀彿锛屾杩?#28598;?#28729;?#37813;?#37819;?#28051;嬫柟浜岀淮鐮佸叧?#25950;銆?/h5>Shing Liu(eryar@163.com)


eryar 2019-07-06 12:54 鍙戣〃璇勮
]]>
鏈灏?#27996;?#28052;?#23049;?#37815;?#37722;?#37929;寸嚎http://www.2676208.com/eryar/archive/2019/07/04/fitline.htmleryareryarThu, 04 Jul 2019 08:26:00 GMThttp://www.2676208.com/eryar/archive/2019/07/04/fitline.htmlhttp://www.2676208.com/eryar/comments/216484.htmlhttp://www.2676208.com/eryar/archive/2019/07/04/fitline.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216484.htmlhttp://www.2676208.com/eryar/services/trackbacks/216484.html鏈灏?#27996;?#28052;?#23049;?#37815;?#37722;?#37929;寸嚎

鍦?#32457;戝瀹?#26976;?#37724;?#37922;?#27996;?#28729;炶返涓?#38171;岀粡?#29238;闇瑕?#28000;?#28051;缁?#28729;?#26976;?#37825;?#37817;?#37713;?#37721;?#28725;绘眰鍑?#37825;?/span>y=f(x)鐨?#28051;涓?#26473;?#28028;?#29723;?#26440;?#23534;?#38171;?#28052;?#32457;?#28051;虹粡楠?#37711;?#23534;?#37510;?#28000;?#37713;犱綍涓婄湅锛屽氨鏄笇鏈?#37837;?#37817;?#32513;?#28729;?#37928;?/span>m涓?#37904;?#38171;屾眰鏇茬嚎y=f(x)鐨?#28051;?#28527;杩?#28028;?#37831;茬嚎銆?#37733;?#23005;?#26473;欐槸涓?#37831;茬嚎鎷?#37722;?#38338;銆?/span>

褰撴垜浠?#29781;?#23033;?#26473;?#28028;?#37831;茬嚎涓?#37837;奸?#26473;?#32513;?#28729;?#37928;勬瘡涓?#37904;?#37827;?#38171;?#26473;欐槸鎻掑肩畻娉?#37510;?#28725;?#27996;?#37832;枃鎵杩?#37928;?#37929;寸嚎鎷?#37722;堟潵璇?#38171;屽鏋?#37922;?#37819;掑肩畻娉?#38171;?#37714;?#37721;?#38343;瑕?#28051;?#28051;?#37904;瑰氨澶?#27996;?#37510;?#28729;?#38340;?#37929;寸嚎鎷?#37722;堟暟鎹彲?#20824;?#24359;瓒?#28051;?#27996;?#26473;?#28051;潯浠?#38171;?#28051;?#27996;嗕究浜庤?#30075;锛?#37714;?#37835;?#28051;?#25652;?#37922;?#38171;屾垜浠?#26440;?#28598;氬湴鏍?#37817;?ldquo;?#23047;娴?#38322;?#37904;?#37714;?#37929;寸嚎?#31387;绂荤殑骞虫柟鍜?#37832;灏?rdquo;鐨?#37720;?#37714;欐潵鎷?#37722;?#37510;?#37816;?#37832;灏?#27996;?#28052;?#37720;?#37714;欓?#37815;?#37815;?#37722;堟?#33580;嚎鐨勬柟娉?#38171;岀О涓?#37832;灏?#27996;?#28052;?#23049;?#38171;?/span>Method of Least Squares锛?#37510;?/span>

鍒?#37922;?#37832;灏?#27996;?#28052;?#23049;?#37815;?#37722;堟?#33580;嚎鐨?#28051;鑸?#23005;?#26976;?#37828;?#38171;?/span>

  • ?#30370;瀹?#26976;?#37825;?#37817;?#37828;?#32448;?#37713;烘潵锛?#37714;?#37835;?#37831;茬嚎鐨勫舰寮?#38171;?/span>

  • 纭?#28729;?#37815;?#37722;堟?#33580;嚎鐨勫舰寮?#37510;?#28725;?#27996;?#37832;枃?#28533;璇?#38171;屾?#33580;嚎褰?#23534;?#37828;?#37929;寸嚎锛?/span>y=a+bx;

  • 寤虹珛娉曟柟绋?#32513;?#39582;?#28725;?#37711;?#26473;?#29723;屾眰瑙?#38171;?/span>

 

鍥?#28051;?/span>OpenCASCADE涓?#37825;?#37817;?#32513;撴瀯鍙婄畻娉?#28051;板瘜锛?#37813;浠?#37922;?/span>OpenCASCADE?#24434;浠?#36423;?#28729;?#37916;?#37929;寸嚎鐨?#37832;灏?#27996;?#28052;?#23049;?#37815;?#37722;堢畻娉?#37510;?#28051;嬮潰缁?#37713;?#37711;蜂綋瀹?#37916;?#28000;g爜锛?/span>

#include <iostream>
#include <gp_Lin2d.hxx>
#include <gp_Pnt2d.hxx>
#include <TColgp_Array1OfPnt2d.hxx>
#include <math_Vector.hxx>
#include <math_SVD.hxx>
#include <math_Gauss.hxx>
#include <math_GaussLeastSquare.hxx>
#include <OSD_Chronometer.hxx>
void fitLine(const TColgp_Array1OfPnt2d& thePoints,
             const std::string& theFileName,
             gp_Lin2d& theLine)
{
    math_Vector aB(1, 2, 0.0);
    math_Vector aX(1, 2, 0.0);
    math_Matrix aM(1, 2, 1, 2);
    Standard_Real aSxi = 0.0;
    Standard_Real aSyi = 0.0;
    Standard_Real aSxx = 0.0;
    Standard_Real aSxy = 0.0;
    std::ofstream aDrawFile(theFileName);
    for (Standard_Integer i = thePoints.Lower(); i <= thePoints.Upper(); ++i)
    {
        const gp_Pnt2d& aPoint = thePoints.Value(i);
        aSxi += aPoint.X();
        aSyi += aPoint.Y();
        aSxx += aPoint.X() * aPoint.X();
        aSxy += aPoint.X() * aPoint.Y();
        aDrawFile << "vpoint p" << i << " " <<
                     aPoint.X() << " " << aPoint.Y() << " 0" << std::endl;
    }
    aM(1, 1) = thePoints.Size();
    aM(1, 2) = aSxi;
    aM(2, 1) = aSxi;
    aM(2, 2) = aSxx;
    aB(1) = aSyi;
    aB(2) = aSxy;
    OSD_Chronometer aChronometer;
    aChronometer.Start();
    math_Gauss aSolver(aM);
    //math_GaussLeastSquare aSolver(aM);
    //math_SVD aSolver(aM);
    aSolver.Solve(aB, aX);
    if (aSolver.IsDone())
    {
        Standard_Real aA = aX(1);
        Standard_Real aB = aX(2);
        gp_Pnt2d aP1(0.0, aA);
        gp_Pnt2d aP2(-aA/aB, 0.0);
        theLine.SetLocation(aP1);
        theLine.SetDirection(gp_Vec2d(aP1, aP2).XY());
        aDrawFile << "vaxis l "
                  << aP1.X() << " " << aP1.Y() << " 0 "
                  << aP2.X() << " " << aP2.Y() << " 0 " << std::endl;
        std::cout << "===================" << std::endl;
        aX.Dump(std::cout);
    }
    aChronometer.Stop();
    aChronometer.Show();
}
int main()
{
    gp_Lin2d aLine;
    // Test data 1
    TColgp_Array1OfPnt2d aPoints1(1, 6);
    aPoints1.SetValue(1, gp_Pnt2d(36.9, 181.0));
    aPoints1.SetValue(2, gp_Pnt2d(46.7, 197.0));
    aPoints1.SetValue(3, gp_Pnt2d(63.7, 235.0));
    aPoints1.SetValue(4, gp_Pnt2d(77.8, 270.0));
    aPoints1.SetValue(5, gp_Pnt2d(84.0, 283.0));
    aPoints1.SetValue(6, gp_Pnt2d(87.5, 292.0));
    fitLine(aPoints1, "fit1.tcl", aLine);
    // Test data 2
    TColgp_Array1OfPnt2d aPoints2(0, 7);
    aPoints2.SetValue(0, gp_Pnt2d(0.0, 27.0));
    aPoints2.SetValue(1, gp_Pnt2d(1.0, 26.8));
    aPoints2.SetValue(2, gp_Pnt2d(2.0, 26.5));
    aPoints2.SetValue(3, gp_Pnt2d(3.0, 26.3));
    aPoints2.SetValue(4, gp_Pnt2d(4.0, 26.1));
    aPoints2.SetValue(5, gp_Pnt2d(5.0, 25.7));
    aPoints2.SetValue(6, gp_Pnt2d(6.0, 25.3));
    aPoints2.SetValue(7, gp_Pnt2d(7.0, 24.8));
    fitLine(aPoints2, "fit2.tcl", aLine);
    return 0;
}

鍦?#37713;?#37825;?/span>fitLine()涓?#38171;?#37837;?#37817;?#37815;?#37722;?#37904;瑰?#34425;珛娉曟柟绋?#32513;?#38171;?#39582;朵娇鐢?/span>math_Gauss?#28533;瀵?#23049;曟柟绋?#32513;?#26473;?#29723;屾眰瑙?#37510;?#37711;?#28729;?#28052;熷彲浠ヤ娇鐢?/span>math_GaussLeastSquare鎴栬?/span>math_SVD绛?#23033;?#29785;?#23049;曟柟绋?#32513;?#37510;?#37734;?#28051;?#37713;?#37825;?/span>main()涓?#23092;嬭瘯浜?#28051;?#32513;?#37825;?#37817;?#37510;?#23092;嬭瘯鏁?#37817;?/span>1?#28533;?#22172;鏄撳ぇ?#31647;绛?#37510;?#29825;$畻?#26591;娉?#37510;?#38171;屾?#23341;瘯鏁?#37817;?/span>2?#28533;?#22172;銆婇?#27196;瓑鏁板銆?#37510;?#32459;嬪簭杩?#29723;岀?#25780;灉濡?#28051;嬪浘鎵绀?#38171;?/span>

涓?#28052;?#28051;?#29825;$畻缁撴灉鍚?#37722;?#37510;?/span>


鐢?#27996;?#38343;瑕佸皢璁$畻缁撴灉鏄?#32448;?#37713;烘潵锛?#37813;浠?#37734;?/span>fitLine()鍑?#37825;?#28051;?#28583;?#37716;?#27996;?#26440;撳嚭Draw鑴?#37832;枃浠?#37928;?#28000;g爜锛?#28729;?#38340;?#26473;?#37922;?#37827;跺彲?#30370;杩欓儴鍒?#28000;?#37934;佸?#32472;帀銆傚皢绋嬪簭鐢熸垚鐨勮剼鏈枃浠?#37716;犺浇鍒?/span>Draw涓?#38171;?#37719;冲彲寰?#37714;?#28051;嬮潰涓?#28051;?#37733;?#38171;?/span>

娴嬭瘯鏁?#37817;?/span>1鎷?#37722;?#37929;寸嚎


娴嬭瘯鏁?#37817;?/span>2鎷?#37722;?#37929;寸嚎


缁?#28051;?#37813;杩?#38171;?#28725;?#27996;?#27996;岀淮鐩寸嚎鐨?#37832;灏?#27996;?#28052;?#23049;?#37815;?#37722;堢畻娉?#37928;?#37711;?#38335;?#37828;?#28725;瑰?#34425;珛鐨?#23049;曟柟绋?#32513;?#26473;?#29723;屾眰瑙?#37510;?/span>OpenCASCADE鐨?/span>math鍖?#28051;?#37819;愪緵浜?#28051;浜?#29785;f柟绋?#32513;?#37928;勭?#35826;彲浠?#37929;存帴?#23047;鐢?#37510;?#28725;?#27996;庢病鏈変娇鐢?/span>OpenCASCADE鐨?#23534;鍙?#37916;?#28583;?#37928;勬?#21613;喌锛?#28052;熷彲浠ヤ娇鐢?#37711;?#28000;?#37933;?#38339;?#25652;?#38171;屽Eigen绛?#37922;?#23536;楀?#22557;箍娉?#37510;?/span>Eigen瀹樻柟?#32137;绔?#38171;?/span>http://eigen.tuxfamily.org/index.php?title=Main_Page


?#30370;璁$畻缁撴灉瀵?#37713;?/span>Draw鑴?#37832;彲瑙?#37718;?#38171;屽彲浠ユ柟?#31350;鐩?#29785;?#37734;版煡?#28229;鎷?#37722;?#32513;撴灉銆?#28641;?#37835;滅?#29112;倝鍏?#28000;栬剼鏈?#25652;撳Python鐨?/span>matplotlib锛?#28052;熷彲浠?#32491;?#28028;?#28598;?#37918;嗘潵?#30370;缁撴?#28355;彲瑙?#37718;?#37510;?/span>



eryar 2019-07-04 16:26 鍙戣〃璇勮
]]>
探灵笔记系统攻略
海口哪里可以买飞鱼体彩 福建时时开奖表 湖北福利彩票网 天津时时有漏洞 北京时时是否正规 江苏十一选五今日推荐 新时时抽奖 vr赛车游戏啥感觉 吉林时时彩开奖号码查询结果 北京十一选五走势图