понедельник, 28 апреля 2025 г.
Nginx epoll
https://nginx.org/ru/docs/events.html#kqueue
https://1cloud.ru/blog/nginx_work_and_setup
https://habr.com/ru/post/260065/
https://1cloud.ru/help/ssl/installsslnginx
LEMP
https://1cloud.ru/help/linux/ustanovka-lemp-steka-linux-nginx-mysql-php
Reverse proxy
https://phoenixnap.com/kb/nginx-reverse-proxy
RTMP
https://habr.com/ru/articles/191052/
https://github.com/arut/nginx-rtmp-module
Первые шаги
четверг, 24 апреля 2025 г.
nginx udp
https://docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/
https://habr.com/ru/companies/nixys/articles/473578/
https://habr.com/ru/companies/tbank/articles/452336/
https://www.f5.com/company/blog/nginx/compiling-dynamic-modules-nginx-plus
https://www.f5.com/go/product/nginx-modules
https://stackoverflow.com/questions/40917372/udp-forwarding-with-nginx
stream {
server {
listen 11016 udp;
proxy_pass juniper_close_stream_backend;
proxy_responses 0;
}
}
--with-stream=dynamic
./configure --with-cc-opt='-g -O2
-fdebug-prefix-map=/build/nginx-DhOtPd/nginx-1.10.3=.
-fstack-protector-strong -Wformat -Werror=format-security
-Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro
-Wl,-z,now'
среда, 23 апреля 2025 г.
вторник, 22 апреля 2025 г.
понедельник, 21 апреля 2025 г.
пятница, 18 апреля 2025 г.
четверг, 17 апреля 2025 г.
GTK Builder
Srach
https://www.linux.org.ru/forum/talks/13039218
https://www.linux.org.ru/news/opensource/9241491/page18
GTK+ прямо в браузере посредством HTML5
https://masters.donntu.ru/2012/iii/kramarenko/ind/index.htm
http://www.youtube.com/watch?v=vtKp6Opg2jg
Prog
http://habrahabr.ru/blogs/programming/116268/
Gtk
https://valadoc.org/gtk+-3.0/Gtk.Application.html
https://programmersforum.ru/showthread.php?t=73079
https://habr.com/ru/sandbox/146850/
https://habr.com/ru/articles/136922/
glade_xml_new_from_buffer
https://www.youtube.com/watch?v=ykIed8Pp0CU
https://web.archive.org/web/20210628084247/https://prognotes.net/gtk-glade-c-programming/
https://www.peteronion.org.uk/GtkExamples/GladeTutorials.html
явно конвертировать строки в UTF8
#define _LOCALE_TO_UTF8(str) g_locale_to_utf8((const char *)(str), -1, NULL, NULL, NULL)
#define _UTF8_TO_LOCALE(str) g_locale_from_utf8((const char *)(str), -1, NULL, NULL, NULL)
#define _UTF8(str) _LOCALE_TO_UTF8((str))
#define _LOCALE(str) _UTF8_TO_LOCALE((str))
#define _U(str) _UTF8((str))
#define _L(str) _LOCALE((str)) )
среда, 16 апреля 2025 г.
пятница, 4 апреля 2025 г.
среда, 2 апреля 2025 г.
вторник, 1 апреля 2025 г.
Hashtable
0x9e3779b9
представляет собой целую часть дробной части Золотого сечения 0,61803398875… (sqrt(5)-1)/2, умноженную на 2^32.
Следовательно, если φ = (sqrt(5)+1)/2 = 1,61803398875 — это Золотое сечение, хэш-функция вычисляет дробную часть n * φ, которая имеет хорошие свойства рассеивания. Чтобы убедиться, просто создайте диаграмму рассеивания(n, n*c-FLOOR(n*c))
c
0x9e3779b1
0x9e3779b9
0x9e3779b97f4a7c15
0x9e3779b97f4a7c55
ZeroTierOne-1.14.2\node\Hashtable.hpphttps://softwareengineering.stackexchange.com/questions/402542/where-do-magic-hashing-constants-like-0x9e3779b9-and-0x9e3779b1-come-from
http://troydhanson.github.com/uthash/
erlang-fast_tls
https://github.com/processone/fast_tls/tree/master/c_src
The Paul Hsieh hash functionhttps://www.azillionmonkeys.com/qed/hash.html
https://www.azillionmonkeys.com/qed/hash.c