2010-01-01ãã1å¹´éã®è¨äºä¸è¦§
åæã§è©±é¡ã«ãªã£ã¦ãã¾ãããLinuxãåçã«é«éåããæ¹æ³ãçºè¦ããã¾ãã*1 *2 *3ãç¹ã«ãã©ã¦ã¶ãªã©è¤æ°ã®ã¢ããªã±ã¼ã·ã§ã³ãåæã«èµ·åããç¶æ ã§ã¯ãä½æé度ãã³ã£ããããã»ã©åä¸ãã¾ããé«éåããæ¹æ³ãç°¡åã§ããã«ã¼ãã«ã®åæ§ç¯ã¨ããé£ããä½â¦
c++ 㧠CRCãè¨ç®ããã³ã¼ãï¼boost ã® crc.hpp ã使ãã¾ã #include <iostream> #include <cassert> #include <boost/crc.hpp> using namespace std; int main() { const char *data = "hello boost/crc.hpp"; const size_t len = sizeof(data); // CRC-CCITT boost::crc_basic<16> crc1( 0x10</boost/crc.hpp></cassert></iostream>â¦
C/C++ã§ãå¹³åå¤ãæ大å¤ãæå°å¤ãåæ£ãä¸å¤®å¤çã®çµ±è¨éãè¨ç®ãããªããboost::accumulators ã便å©ã2017å¹´6æ13æ¥è¿½è¨ï¼æ å ±ãå¤ãã£ãã®ã§æ´æ°ãã¾ãã #include <iostream> #include <boost/accumulators/accumulators.hpp> #include <boost/accumulators/statistics.hpp> using namespace boost::accumulators; int main() { accumulato</boost/accumulators/statistics.hpp></boost/accumulators/accumulators.hpp></iostream>â¦
iostream ã£ã¦ä½¿ãã«ãããç¹ã«æµ®åå°æ°ç¹æ°ã使ãæ㯠printfç³»ã«åãããæ°ãããããã¨ãã°ä»¥ä¸ã®Cã®ã³ã¼ãã #include <stdio.h> int main() { printf("%10d\n", 12345); printf("%10.3f\n", 12.345); printf("%10.6f\n", 12.345); return 0; } std::cout ã使ã</stdio.h>â¦
emacs ã以ä¸ã®ã¨ã©ã¼ã§èµ·åããªãå ´å㯠GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projectâ¦
NFS ãã¼ã¸ã§ã³4 ã®è¨å®æ¹æ³ãã¾ã¨ãã¾ãã NFSãµã¼ãå´ NFSãµã¼ãå´ï¼å¿ è¦ãªããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã« $ sudo apt-get update $ sudo apt-get install nfs-kernel-server èªåçã«NFS v4é¢é£ã®ã½ããã¦ã§ã¢ãã¤ã³ã¹ãã¼ã«ããã¾ãã NFSãµã¼ãå´ï¼è¨å® /etcâ¦
cygwinã§telnetã³ãã³ããå¿ è¦ãªå ´åã¯ãinetutilsããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã
firefox 3.6.4ã®æ°æ©è½ãã©ã°ã¤ã³ã¯ã©ãã·ã¥å¤å®*1ã¯ãabout:config 㧠dom.ipc.plugins.timeoutSecs ã -1 ã«ããã¨ç¡å¹ã«ãªããã¾ã1以ä¸ã®æ°å¤ãä¾ãã°45ã«è¨å®ããã¨ã45ç§åå¿ããªãã£ãããã®ãã©ã°ã¤ã³ã¯æ»äº¡ã¨ã¿ãªãããã«ãªããdom.ipc.plugins.timâ¦
HDDé¢é£ã®ãã©ãã«ã¨ãã¦ãHDD容éãæ£ããèªèãããªããã¨ããé¡ã®äºæ ãããã¾ãããã¨ãã° æ°åã®1TBã®HDDãªã®ã«ãBIOSã¨ãOSã¯33MBã®HDDã¨ãã¦èªèãã¦ãããåæä¸è¯ï¼ç¸æ§åé¡ï¼ æ®æ®µä½¿ã£ã¦ããHDDãå¤ãã¦ãå¥PCã«ã¤ãªãã ããHDD容éãæ£ããèªèãâ¦
æ¯å¹´ãã®ææã«ãªãã¨ãä½æ¥ç¨PCããã¡ã¤ã«ãµã¼ãã¼ãç±æ´èµ°ãã¦å¤§å¤ã ã£ããã¨ãã£ãæ®å¿µãªè©±ãè³ã«ããããã«ãªãã¾ããã¨ããããã§ãæ¬æ ¼çãªå¤ãåãããåã«HDDã®æ¸©åº¦ã確èªãã¦ãäºæ ãæªç¶ã«é²ãã¾ããããHDDã«ã¯S.M.A.R.T.ã¨å¼ã°ãããã£ã¹ã¯ã®åâ¦
doxygen*1 ã¨è¨ãã°ãcãc++ã®ã½ã¼ã¹ã³ã¼ãããããã¥ã¡ã³ããèªåçæãã便å©ãªã½ããã¦ã§ã¢ã§ãããã® doxygenããã1å¹´ãããã§ãããæ¹è¯ããã¦ãã¾ããã¡ããã©æ¨æ¥(2010/6/15)ã«ææ°çã® 1.7.0 ããªãªã¼ã¹ãããã®ã§ããã®æ©ä¼ã«ææ°çã«ä¹ãæãã¦ãâ¦
apt-get ã segmentation fault ã§ç°å¸¸çµäºããå ´åã¯ã $ cd /var/cache/apt/ $ sudo rm pkgcache.bin srcpkgcache.bin ã¨ä¸åº¦ãã£ãã·ã¥ãã¡ã¤ã«ãæåã§åé¤ãã $ sudo apt-get update ã¨ããã°å¾©æ§ãã(å ´åããã)ã
linux ãå¼·å¶çã«é éããåèµ·åããæ¹æ³ã # echo b > /proc/sysrq-trigger ããã ããããã¤ã¹ãã©ã¤ãã®ãã°ãªã©ã§ # /sbin/shutdown -hf now ã¨ã # /sbin/reboot ã®ãããªã³ãã³ããåä½ããªãç·æ¥äºæ ã§ã確å®ã«ãªãã¼ãã§ãã¾ãããã ããsync ã umoâ¦
linux-2.6.33 ã«ã¯ãNFSé¢é£ã«ãã°ãããã¾ããNFSã使ã£ã¦ãã人㯠2.6.33 ç³»ã¯é¿ãã¾ãããã以ä¸ã詳細ã2.6.33 ã¨ã 2.6.33.3 㧠NFS ããã°ãã使ã£ã¦ãã㨠$ /sbin/lsmod |grep nfs nfsd 218966 13 exportfs 2914 1 nfsd nfs 240809 1 lockd 56531 2 â¦
ä»æ¥ææ¥ã«ã GCC 4.5.0 ããªãªã¼ã¹ããã模æ§ã ãã©ã¼ã«è¡ã渡ã£ãããæ£å¼ã«ã¢ãã¦ã³ã¹ãããã¨ã®ãã¨ãhttp://gcc.gnu.org/ml/gcc/2010-04/msg00321.htmlãã§ã« http://gcc.gnu.org/ ã®æ´æ°ã¯çµãã£ã¦ãããCurrent release series ã¯ã GCC 4.5.0 ã¨ãªâ¦
OpenCV-2.1ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã§ããTBB*1ãæå¹ã«ãã¦ãé常ããé«éã«åä½ããããã«ãã«ããã¾ãã å¿ è¦ãªããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã« debian ç³»ãªã apt ã§ä¸æ¬ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã¾ãããã±ã¼ã¸ã®ä¸è¦§ãæ´æ°ãã¦ã $ sudo apt-get update å¿ è¦ãªããã±â¦
linux ã§ããã°ã©ã ãdisassembleããæ¹æ³ã®ã¡ã¢ã§ãã éã¢ã»ã³ãã«ããæ¹æ³(ãã®1) å®çªã®disassemblerãobjdump ã³ãã³ãã使ãã¾ãã $ objdump -d ãã¤ããªãã¡ã¤ã« > dump.txt objdump ã³ãã³ãã¯ãå¤§æµ binutils ããã±ã¼ã¸ã«å ¥ã£ã¦ã¾ãã é常ã®ããâ¦
windows ã® visual c++ (visual studio)ã§ãM_PI ã M_LOG2E ã®ãããªå®æ°ã使ãå ´å㯠#define _USE_MATH_DEFINES #include <math.h> ã¨ãmath.h ãincludeããåã«ã_USE_MATH_DEFINES ãå®ç¾©ãããåè http://msdn.microsoft.com/ja-jp/library/4hwaceh6.aspx</math.h>
gccç°å¢ã 㨠math.h ã« NAN ã¨ããå®æ°ãå®ç¾©ããã¦ãããã¨ããã visual c++ (visual studio)ã«ã¯å¯¾å¿ããå®ç¾©ãç¡ããç°å¢ã«ä¾åããªãããã¼ã¿ãã«ãªã移æ¤æ§ã®é«ãã³ã¼ããå¿ è¦ãªå ´åã¯ãSTLã使ã£ã¦ #include <limits> std::numeric_limits<float>::quiet_NaN(); std:</float></limits>â¦
visual c++ (Microsoft Visual Studio)ã§ã¯ãstd::min(), std::max() ã使ããªãå ´åãããããã㯠windows.h ã«æããå®ç¾©ããã¦ãã minã max ã¨ãããã¯ãããããããã¨ååãè¡çªãããããåé¿æ¹æ³ã¯ #define NOMINMAX #include <windows.h> 㨠NOMINMAX ãå®ç¾©</windows.h>â¦
MySQL ã®ã¢ã¯ã»ã¹å¶å¾¡ã«é¢ããäºé ãæ´çãã¦ã¿ã¾ããããã¨ãã°Webãµã¼ã(apache,tomcatç)ã¨DBãµã¼ã(MySQL)ãåé¢ããå ´åçã«åèã«ãªããã¨æãã¾ãã IPã¢ãã¬ã¹ãã¼ã¹ã§ã®ã¢ã¯ã»ã¹å¶å¾¡ è¨å®ãã¡ã¤ã« /etc/mysql/my.cnf /etc/hosts.allow 㨠/etc/hostâ¦