CURLOPT_DNS_CACHE_TIMEOUT: controls the TTL of a DNS cache entry. The default is 60s. Use -1 to keep the entry forever.CURLOPT_RESOLVE: pre-populate the DNS cache manually.CURLOPT_DNS_SERVERS: use alternate DNS servers (instead of system default ones). Warning: works only with c-ares (and it requires c-ares version >= 1.7.4),CURLOPT_DNS_USE_GLOBAL_CACHE: cache DNS queries between easy handles. Warning: this is not thread-safe and documented as deprecated. Use the share interface instead (see below).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 14.4. Configuring Static Routes | |
| Routing will be configured on routing devices, therefore it should not be necessary to configure static routes on Red Hat Enterprise Linux servers or clients. However, if static routes are required they can be configured for each interface. This can be useful if you have multiple interfaces in different subnets. Use the route command to display the IP routing table. | |
| Static route configuration is stored in a /etc/sysconfig/network-scripts/route-interface file. For example, static routes for the eth0 interface would be stored in the /etc/sysconfig/network-scripts/route-eth0 file. The route-interface file has two formats: IP command arguments and network/netmask directives. | |
| IP Command Arguments Format | |
| Define a default gateway on the first line. This is only required if the default gateway is not set via DHCP: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://eulersolutions.fr.yuku.com/ | |
| https://code.google.com/p/projecteuler-solutions/ | |
| https://wiki.python.org/moin/ProblemSets/Project%20Euler%20Solutions | |
| http://www.nayuki.io/page/project-euler-solutions | |
| 1. 233168 | |
| 2. 4613732 | |
| 3. 6857 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| install tat ca cac goi: (libexpat1-dev libfontconfig1-dev libfreetype6-dev libice-dev libjbig-dev | |
| libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev liblzma-dev libpng12-dev | |
| libpthread-stubs0-dev libsm-dev libtiff5-dev libtiffxx5 libvpx-dev | |
| libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxpm-dev | |
| libxt-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev | |
| xorg-sgml-doctools xtrans-dev zlib1g-dev) | |
| $ sudo apt-get install libgd2-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| When I tried to use arrow keys in insert mode in vi editor the following characters are being inserted in the editor: | |
| for ↓ I get B, | |
| for ↑ I get A, | |
| for ← I get D, | |
| for → I get C. | |
| ====> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string> | |
| #include <ctime> | |
| #include <msgpack.hpp> | |
| struct message | |
| { | |
| std::string tag; | |
| std::time_t time; | |
| std::string text; | |
| MSGPACK_DEFINE(tag, time, text); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find command:http://www.oreillynet.com/linux/cmd/cmd.csp?path=f/find | |
| find . -maxdepth 1/2/..../n | |
| %to just find them and printout: | |
| find . -maxdepth 1 -name '[!.]*' -size 0 -printf 'Name: %16f Size: %6s\n' | |
| %delete them, may be modified to use | |
| find . -maxdepth 1 -name '[!.]*' -size 0 -printf 'Name: %16f Size: %6s\n' | xargs rm | |
| http://content.hccfl.edu/pollock/unix/findcmd.htm |
This document is research for the selection of a communication platform for robot-net.
The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.
Requirements:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 2.8) | |
| # Return the date (yyyy-mm-dd) | |
| macro(DATE RESULT) | |
| if(WIN32) | |
| execute_process(COMMAND "cmd" " /C date /T" OUTPUT_VARIABLE ${RESULT}) | |
| string(REGEX REPLACE "(..)/(..)/(....).*" "\\3-\\2-\\1" ${RESULT} ${${RESULT}}) | |
| elseif(UNIX) | |
| execute_process(COMMAND "date" "+%Y-%m-%d" OUTPUT_VARIABLE ${RESULT}) | |
| else() |