concerning stdio functions: write to file is buffered (does not react on \n) write to terminal is line-buffered (autoflushes on \n) http://www.pixelbeat.org/programming/stdio_buffering/
Sunday, October 6, 2019
buffering
Sunday, June 23, 2019
TUGboat
https://www.dropbox.com/s/97e68ke8saq1rwk/tugboat.cmn
https://www.dropbox.com/s/c916gz2j01nll57/tugboat.sty
Tuesday, June 18, 2019
Мухоловка
https://pikabu.ru/story/kak_izbavitsya_ot_mukh_na_dache_avstraliyskaya_mukholovka_svoimi_rukami_6003652
Sunday, June 2, 2019
usb on notebook
SET CONTROL LINE STATE comes before SET LINE CODING, but it must not come at all on connection stage.
See if the following allows to avoid the SET CONTROL LINE STATE, or the cause is in the driver:
Try "systemctl stop ModemManager[.service]", but first find modemmanager via "ps" and after stopping ensure that it disappeared.
If "systemctl ..." does not work, google how to stop modemmanager in ubuntu
Tuesday, May 28, 2019
Sunday, May 26, 2019
Oscilloscope (TODO: see which power supply and order it)
https://www.youtube.com/watch?v=d7aWz98CHzM
Monday, May 13, 2019
Sunday, May 12, 2019
Sunday, March 31, 2019
Thursday, August 3, 2017
Sunday, October 23, 2016
wxwidgets example
% sudo apt-get install libwxgtk3.0-dev libwxbase3.0-dev wx3.0-headers (check if one of them depends on the others to reduce this list)
% g++ `wx-config --cxxflags --libs` hello.c
@i c++lib.w
@ @c
#include <wx/wx.h>
class MyApp: public wxApp
{
virtual bool OnInit();
}@+@t\hskip -.1cm@>;
IMPLEMENT_APP(MyApp)@;
bool MyApp::OnInit()
{
wxMessageBox( L"Это пример программы на библиотеке wxWidgets",
L"О программе", wxOK | wxICON_INFORMATION );
return true;
}
Wednesday, October 5, 2016
wide character resources
1) Text from Amendment 1 to C90 (see first paragraph on page 191):
http://www.open-std.org/jtc1/sc22/wg14/www/docs/C99RationaleV5.10.pdf
2) Brief description of Amendment 1 to C90:
http://www.lysator.liu.se/c/na1.html
3) ISO C Amendment 1 (MSE - Multibyte Support Extensions):
http://www.unix.org/version2/whatsnew/login_mse.html
3) Page with a lot of links, which includes link 1) above:
http://www.cse.psu.edu/~deh25/cmpsc311/Lectures/Standards/CStandard.html
4) Links to C standard:
http://stackoverflow.com/questions/81656/where-do-i-find-the-current-c-or-c-standard-documents
http://stackoverflow.com/questions/17014835/where-can-i-find-the-c89-c90-standards-in-pdf-format
-----------
Functions that convert between multibyte and wide characters (from C90):
mblen
mbtowc
wctomb
mbstowcs
wcstombs
Saturday, September 17, 2016
Notes on GL-iNet 6416A
check if it will get IP from dhcp if it is plugged into wan and if it will get IP if it is plugged into lan, and understand the reason for it (BTW, dir320 does get ip both from wan and from lan) sm. knizhechku po gl-inet - tam pro 2 usb porta skazano? first configure network as necessary from web interface (connecting wan port to the main router for internet access) (check via "uci show ..."), because you may reset to factory defaults only then install asterisk and the rest set ip address on d-link to 192.168.8.2 and open 192.168.8.1 in browser ask question why bootloader gives garbage on openwrt forum and on aliexpress vypisat GL-AR150
Saturday, July 16, 2016
Sunday, July 3, 2016
minicom config for openwrt
cat << EOF > /home/user/.minirc.openwrt pu port /dev/ttyUSB0 pu baudrate 115200 pu bits 8 pu parity N pu stopbits 1 pu minit pu mreset pu rtscts No pu logfname EOF
Wednesday, June 22, 2016
how to connect via modem
sudo systemctl enable serial-getty@ttyS0.service shutdown now -r ps -ef|grep getty if no serial, "sudo systemctl start dev-ttyS0.device" and reboot again search which command must be entered not to reboot
Sunday, April 24, 2016
git branch
create new branch and push it to upstream:
git checkout -b <branch>
git push -u origin <branch>
and set <branch> to be cloned by default (<branch> may be "master" or another required branch):
git remote set-head origin <branch>
pull branch from upstream (see all branches with "git branch -a"):
git checkout <branch>
----------------------
To be able to "git diff" to branches, you need to set up necessary branches to track corresponding remote branch from origin:
1) add information about the branch to .git/config
git checkout <branch_name>
2) previous command also automatically switches to the branch, so if it is necessary to return to master branch, do this
git checkout master
Friday, April 22, 2016
Wednesday, April 20, 2016
Subscribe to:
Posts (Atom)








