Tuesday, December 15, 2020

compiling on macbook - xcrun error

error:

xcrun: error: invalid active developer path

solution:

1. install xcode

2. xcode-select --install

Thursday, November 19, 2020

* The long retry limit - default 4: applies to frames longer than the RTS threshold.

        A frame requiring RTS/CTS clearing is retransmitted four times before it is discarded and reported to higher-level protocols.

* The short retry limit - default 7: applies to frames shorter than the RTS threshold.


Thursday, October 29, 2020

Adding a dummy monitor

 

sudo apt-get install xserver-xorg-video-dummy


sudo vi /etc/X11/xorg.conf


Section "Device"

    Identifier  "Configured Video Device"

    Driver      "dummy"

EndSection


Section "Monitor"

    Identifier  "Configured Monitor"

    HorizSync 31.5-48.5

    VertRefresh 50-70

EndSection


Section "Screen"

    Identifier  "Default Screen"

    Monitor     "Configured Monitor"

    Device      "Configured Video Device"

    DefaultDepth 24

    SubSection "Display"

    Depth 24

    Modes "1024x800"

    EndSubSection

EndSection

Tuesday, October 20, 2020

Disabling DHCP and DNS role - OpenWrt

uci set dhcp.lan.ignore="1"

uci set dhcp.@dnsmasq[0].port="0"

uci commit dhcp

/etc/init.d/dnsmasq restart

/etc/init.d/odhcpd restart

Thursday, July 30, 2020

Thursday, April 16, 2020

ifdef if defined if !defined

#if defined(LINUX) || defined(ANDROID)

#if !defined(MANUF) || !defined(SERIAL) || !defined(MODEL)

#if defined(LINUX) && !defined(MODEL)

#endif