Home

iOS Supporting Dark Mode

iOS Supporting Dark Mode Reference Supporting Dark Mode in Your Interface Supporting Dark Mode for Your Article Choosing a Specific Interface Style for Your iOS App Choosing a Specific Appearance for Your macOS App

Read more

Linux Socket

Linux Socket 引用头 #include <arpa/inet.h> definitions for internet operations #include <netinet/in.h> Internet address family #include <sys/socket.h> main sockets header IP Address <sys/socket.h>中定义 struct sockaddr 16个字节, socket函数使用 struct sockaddr_storage 128个字节, 定义长的特定的协议地址结构 struct sockaddr { sa_family_t sa_fami...

Read more

Git svn 添加忽略文件

Git svn 添加忽略文件 添加忽略文件 svn propset svn:ignore "" . # 使用忽略文件.svnignore svn propset svn:ignore -RF .svnignore . svn status --no-ignore .classpath .factorypath .project logs/* log/* logs log target .settings Reference

Read more

Linux Posix Head

Linux Posix Head $ echo | g++ -v -x c++ -E - $ echo | gcc -v -x c++ -E - - 异步IO相关的函数 <arpa/inet.h> - IP地址相关的函数 - 顾名思义directory entry - 文件操作 - 对于多语言的支持 - 堆内存的一些高级操作和统计 - 主机名服务名协议名等等操作 <netinet/in.h> - IP地址结构的定义,已经网络主机字节序转换 <sys/socket.h> - socket相关...

Read more

Linux proxy Config

Linux proxy Config # bash export http_proxy=http://127.0.0.1:your port export https_proxy=http://127.0.0.1:your port export no_proxy=127.0.0.1,localhost # fish set -Ux http_proxy http://127.0.0.1:your port set -Ux https_proxy http://127.0.0.1:your port set -Ux no_proxy 127.0.0.1,localhost # del evn export http= set -e ... export all_proxy=so...

Read more

Flutter 调用 C/C++

Flutter 调用 C/C++ 1. C/C++注意事项 dart:ffi 只能绑定C语言的符号, 所以C++需要加上 extern “C” attribute((visibility(“default”))) attribute((used)) C/C++源码建议写在ios/Classes/native_add.cpp目录, 因为CocoaPods不允许源码在 .podspec上层目录, 而gradle允许 Reference Binding to native code using dart:ffi Dart/Flutter ffi (Foreig Function Interface) native callbacks eg...

Read more

Linux 基本配置

Linux 基本配置 基本PATH export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH 添加sudo 1. 切换root 2. vim /etc/sudoers 自动登陆 xfce vim /etc/lightdm/lightdm.conf [SeatDefaults] autologin-user=username #需要登录的用户名 autologin-user-timeout=delay 无显示器, 实现运程控制 需要使用Xorg, 创建虚拟显示器 安装 xserver-xorg-core 安装 xserver-xor...

Read more

macOS NTFS和ext格式

macOS NTFS和ext格式 install osxfuse install ntfs-3g ext2fuse ext4fuse reboot disable system integrity protection csrutil disable sudo mount -t ntfs -o rw,auto,nobrowse /dev/disk3s1 ~/ntfs-volume Reference Write to NTFS on macOS Sierra (osxfuse + ntfs-3g) How to enable NTFS 3G? Installing a Custom Kernel Extension

Read more