• Можно ли так разбить строку в JS?

    vlad_effect
    @vlad_effect
    developer in web designer
    Это для php если вдруг кому то понадобиться юзайте на здоровье ;)
    $string = "0a0c0f0e0g";
    $arr = str_split($string, 2);
    
    // result $arr
    array(5) {
    	[0]=> string(2) "0a"
    	[1]=> string(2) "0c"
    	[2]=> string(2) "0f"
    	[3]=> string(2) "0e"
    	[4]=> string(2) "0g"
    }
    Ответ написан
    Комментировать
  • Почему не стартует автозагрузка в ubuntu 14.04 LTE?

    vlad_effect
    @vlad_effect Автор вопроса
    developer in web designer
    Посмотрел лог ошибок и вот что за бубны не понятные

    Sep  7 02:53:54 ubuntu-14-04-amd64 cron[1219]: (CRON) STARTUP (fork ok)
    Sep  7 02:53:54 ubuntu-14-04-amd64 cron[1219]: (CRON) INFO (Running @reboot jobs)
    Sep  7 02:54:12 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13 (xid=0xf8e96c32)
    Sep  7 02:54:25 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11 (xid=0xf8e96c32)
    Sep  7 02:54:36 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12 (xid=0xf8e96c32)
    Sep  7 02:54:48 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13 (xid=0xf8e96c32)
    Sep  7 02:55:01 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 (xid=0xf8e96c32)
    Sep  7 02:55:09 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 (xid=0xf8e96c32)
    Sep  7 02:55:18 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12 (xid=0xf8e96c32)
    Sep  7 02:55:30 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15 (xid=0xf8e96c32)
    Sep  7 02:55:45 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16 (xid=0xf8e96c32)
    Sep  7 02:56:01 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 (xid=0xf8e96c32)
    Sep  7 02:56:10 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15 (xid=0xf8e96c32)
    Sep  7 02:56:25 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18 (xid=0xf8e96c32)
    Sep  7 02:56:43 ubuntu-14-04-amd64 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12 (xid=0xf8e96c32)
    Sep  7 02:56:55 ubuntu-14-04-amd64 dhclient: No DHCPOFFERS received.
    Sep  7 02:56:55 ubuntu-14-04-amd64 dhclient: No working leases in persistent database - sleeping.
    Sep  7 02:57:04 ubuntu-14-04-amd64 ntpdate[1312]: no server suitable for synchronization found
    Sep  7 02:57:19 ubuntu-14-04-amd64 ntpdate[1401]: no server suitable for synchronization found
    Sep  7 02:59:03 ubuntu-14-04-amd64 rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="255" x-info="http://www.rsyslog.com"] exiting on signal 15.
    Ответ написан
  • Как получить интернет соединение из lxc контейнера?

    vlad_effect
    @vlad_effect
    developer in web designer
    на основной машине настрой dns
    Ответ написан