#printf — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #printf, aggregated by home.social.
-
/* Oh, it's a waste of space, but oh-so-yummy for debugging. This version of printf() does not include 64-bit support. "Live with it." */
https://github.com/torvalds/linux/blob/v6.19/arch/x86/boot/printf.c#L9-L14
-
Как Работать с UART на Микроконтроллерах ( UART + FIFO = LOG )
В этом тексте я написал про то как работать с UART на микроконтроллерах. Вы узнаете как пользоваться UART до того, как он будет включен. Допустим вы решили делать в своей прошивке printf- отладку. Или даже забабахать UART-CLI (Shell). Или у ваc есть какое -то внешнее устройство конфигурируемое по UART. Например микросхема U-Blox со своим UBX протоколом. Или LTE модуль с AT-командами. Первое с чем Вы столкнетесь - это настроить UART-трансивер. Как же реализовать алгоритм работы с UART периферией?
https://habr.com/ru/articles/981028/
#uart #прерывания #dma #gpio #fifo #LOG #cli #shell #printf #Критическая_секция
-
Как Работать с UART на Микроконтроллерах ( UART + FIFO = LOG )
В этом тексте я написал про то как работать с UART на микроконтроллерах. Вы узнаете как пользоваться UART до того, как он будет включен. Допустим вы решили делать в своей прошивке printf- отладку. Или даже забабахать UART-CLI (Shell). Или у ваc есть какое -то внешнее устройство конфигурируемое по UART. Например микросхема U-Blox со своим UBX протоколом. Или LTE модуль с AT-командами. Первое с чем Вы столкнетесь - это настроить UART-трансивер. Как же реализовать алгоритм работы с UART периферией?
https://habr.com/ru/articles/981028/
#uart #прерывания #dma #gpio #fifo #LOG #cli #shell #printf #Критическая_секция
-
Как Работать с UART на Микроконтроллерах ( UART + FIFO = LOG )
В этом тексте я написал про то как работать с UART на микроконтроллерах. Вы узнаете как пользоваться UART до того, как он будет включен. Допустим вы решили делать в своей прошивке printf- отладку. Или даже забабахать UART-CLI (Shell). Или у ваc есть какое -то внешнее устройство конфигурируемое по UART. Например микросхема U-Blox со своим UBX протоколом. Или LTE модуль с AT-командами. Первое с чем Вы столкнетесь - это настроить UART-трансивер. Как же реализовать алгоритм работы с UART периферией?
https://habr.com/ru/articles/981028/
#uart #прерывания #dma #gpio #fifo #LOG #cli #shell #printf #Критическая_секция
-
Как Работать с UART на Микроконтроллерах ( UART + FIFO = LOG )
В этом тексте я написал про то как работать с UART на микроконтроллерах. Вы узнаете как пользоваться UART до того, как он будет включен. Допустим вы решили делать в своей прошивке printf- отладку. Или даже забабахать UART-CLI (Shell). Или у ваc есть какое -то внешнее устройство конфигурируемое по UART. Например микросхема U-Blox со своим UBX протоколом. Или LTE модуль с AT-командами. Первое с чем Вы столкнетесь - это настроить UART-трансивер. Как же реализовать алгоритм работы с UART периферией?
https://habr.com/ru/articles/981028/
#uart #прерывания #dma #gpio #fifo #LOG #cli #shell #printf #Критическая_секция
-
✨🎨 Breaking news: yet another tech genius spends holiday break inventing a #printf #hack for #HLSL because, clearly, what the world needs now is more ways to debug shaders. 🙄 Meanwhile, in a shocking turn of events, we discover people might actually want useful tools. Who would've guessed?! 💡🔍
https://www.abolishcrlf.org//2025/12/31/Printf.html #technews #shaderdebugging #innovation #HackerNews #ngated -
An Experimental Approach to Printf in HLSL
https://www.abolishcrlf.org//2025/12/31/Printf.html
#HackerNews #Experimental #HLSL #Printf #Graphics #Programming #Shader #Techniques
-
Implementing a web server in a single printf() call (2014)
https://tinyhack.com/2014/03/12/implementing-a-web-server-in-a-single-printf-call/
#HackerNews #Implementing #a #web #server #in #a #single #printf() #call #2014 #webdevelopment #programming #hackernews #tinyhack
-
Полезные утилиты RTT Viewer и System Viewer
Хорошие инструменты для отладки встраиваемого ПО микроконтроллеров давно стали делом привычным. Возможности таких инструментов определяются как архитектурой ядра, так и выбором отладчика. Рассмотрим три понятия: DAP (Debug access port), ITM (Instrumentation Trace Macrocell) и RTT (Real-Time Transfer). Всё это «механизмы» позволяющие выводить отладочную информацию в том или ином виде. DAP – это аппаратный блок, который дает доступ к шинам и ядру микроконтроллера. ITM – это специальный блок внутри Cortex-M (начиная с M3 и выше), предназначенный для сообщений с минимальными потерями времени. RTT – технология компании SEGGER, построенная на использовании кольцевого буфера внутри RAM. Именно о ней и пойдет речь в публикации.
https://habr.com/ru/articles/1011650/
#RTT_Viewer #System_Viewer #rtos #программирование_микроконтроллеров #printf
-
GitHub's latest masterpiece: a Tic-Tac-Toe #game powered by the sheer #complexity of a single `printf` call. 🤖💻 Because who wouldn't want to pit their wits against a glorified string formatter in the most convoluted way possible? 😅🎉
https://github.com/carlini/printf-tac-toe #GitHub #TicTacToe #printf #programming #fun #HackerNews #ngated -
🚨 Breaking News: "Programmer discovers #strncpy is bad! 🎉" In a shocking revelation, it turns out using a function that doesn't null-terminate strings can lead to problems. Who would have thought? Next, Daniel plans to tackle the #mysteries of 'printf' – stay tuned! 🤔
https://daniel.haxx.se/blog/2025/12/29/no-strcpy-either/ #BreakingNews #ProgrammerProblems #Issues #printf #HackerNews #ngated -
Dateien in Linux per Kommandozeile erstellen
Dateien in Linux per Kommandozeile erstellen Dateien in Linux über die Kommandozeile zu erstellen, ist eine grundlegende und häufig genutzte Fähigkeit, die in vielen Situationen hilfreich ist – vom Anlegen leerer Dateien bis hin zur Erstellung von Dateien mit spezifischem Inhalt. Im Folgenden werden die wichtigsten und einfachsten Methoden vorgestellt, um schnell Dateioperationen bequem im Terminal auszuführen. 1. Dateien mit touch erstellen Der Befehl touch dateiname erstellt eine […]https://andreas-moor.de/dateien-in-linux-per-kommandozeile-erstellen/
-
¿Usar un debugger como gdb?
Naa, a mi dejame con los printf metidos por todos lados, y una directiva #define para activarlos o desactivarlos a todos juntos cuando la cosa se complica 😆
-
There should be a #printf format `%ꙮ` that just shits an unfeasible number of zeroes all over the place.
`printf("%ꙮ\n", 32)`
000000000032.0000000000
-
[Перевод] Когда кажется, что нашёл баг в компиляторе
Расскажу вам историю о том, как я далеко не в первый раз столкнулась с багом компилятора. Дело в том, что я уже довольно хорошо научилась распознавать случаи, когда проблема заключается совсем не в моём коде.
https://habr.com/ru/companies/timeweb/articles/883862/
#timeweb_статьи_перевод #c++ #компиляторы #баги #прграммирование #printf #сборка_ядра #код #байт #arm
-
#include <stdio.h>
Is this what the "printf" function is supposed to do? -
STM32 Tutorial #36 - Serial Print (Arduino users need to watch this!)
This video goes into detail about the many different ways a serial console can be implemented. The video also show how to make a virtual COM port using USB. Everything in this video has been explained in earlier videos in little side notes but here is the complete detailed view.
#stm32 #tutorial #printf #serial #uart #swo #usb #stm32world #arduino
https://www.youtube.com/watch?v=y_KKHWecsj0 -
[Перевод] Крестики-нолики на printf
Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.
-
In addition to the f-string example someone else gave, printf-style formatting has always supported this by using "*" as the width specifier and passing a value in the parameters in its place:
>>> print("a %*s b" % (6, "foobar"))
a foobar b
>>> print("a %*s b" % (16, "foobar"))
a foobar b -
Pierwszy krok ku #debugowaniu aplikacji w języku programowania, którego jeszcze się nie używało, to nauczyć się, jak używać w nim #printf.
-
The first step towards #debugging an app written in a programming language you've never used is learning how to use #printf there.
-
I just learned the phrase "load-bearing printf" and I can't stop smiling. https://juffalow.com/blog/other/funny-stuff-from-programmers-realm #debugging #printf #logging #ProgrammerHumor
-
Just released: Lua string.format Cheat Sheet by ambigious
Download it free at http://www.cheatography.com/ambigious/cheat-sheets/lua-string-format/?utm_source=mastodon
Here's their description of it: A quick reference for Lua's standard library string.format function.
-
Linux Fu: Customizing Printf - When it comes to programming in C and, sometimes, C++, the printf function is a ja... - https://hackaday.com/2023/10/24/linux-fu-customizing-printf/ #softwaredevelopment #hackadaycolumns #linuxhacks #printf #linux #gcc
-
Abolish #debuggers, embrace #printf #debugging
-
::: Ditching user disrespecting Windows for Linux has never been more viable :thinkhappy:
Did you know? You can play Windows-only games on Linux in Steam by just enabling PROTON there :linux:
Proton? It's Valve's enhancement based on work of Wine project - Wine 7.22 is out now to take things all the more further!
Wine 7.22 main updates:
- 32-on-64 thunks for both Vulkan & OpenGL
- OpenLDAP library bundled / built as PE
- Support for the RAW print processor in WinPrint
- More progress on the long types printf format conversion
=> https://www.winehq.org/announce/7.22
#Wine #gaming #Linux #deleteWindows #deleteMicrosoft #Vulkan #OpenGL #OpenLDAP #WinPrint #printf
-
@jeffeb3 I knew I saved this somewhere... I'll see if it works.
https://gist.github.com/raster/ed1eb004aa17adf9f7d5e475a346e50f
#arduino #sprintf #printf #formatting #time -
Bash Scripting - Printf Command Explained With Examples #Printf #BashScripting #Bash #ShellScripting #Commandline #CLI #Linux #Linuxbasics #Linuxcommands #Bashtutorial #Linuxhowto
https://ostechnix.com/bash-printf-command/ -
#nanoprintf is a tiny #publicdomain #printf implementation.
nanoprintf is a single header library written in C99 (only for types) that provides a C11 compliant printf implementation on platforms without much of the standard library. nanoprintf compiles to 1 K to 3 K of program memory on ARM platforms.
Website 🔗️: https://github.com/charlesnicholson/nanoprintf
-
Beyond Printf(): Better Logging Practices for Faster Debugging - All of us who do some programming know that logging is a time-tested way to output messages about ... more: https://hackaday.com/2020/07/21/beyond-printf-better-logging-practices-for-faster-debugging/ #softwaredevelopment #hackadaycolumns #debugging #libpoco #logging #skills #printf
-
Bash Scripting - Printf Command Explained With Examples #Printf #BashScripting #Bash #ShellScripting #Commandline #CLI #Linux #Linuxbasics #Linuxcommands #Bashtutorial #Linuxhowto
https://ostechnix.com/bash-printf-command/ -
✨🎨 Breaking news: yet another tech genius spends holiday break inventing a #printf #hack for #HLSL because, clearly, what the world needs now is more ways to debug shaders. 🙄 Meanwhile, in a shocking turn of events, we discover people might actually want useful tools. Who would've guessed?! 💡🔍
https://www.abolishcrlf.org//2025/12/31/Printf.html #technews #shaderdebugging #innovation #HackerNews #ngated -
✨🎨 Breaking news: yet another tech genius spends holiday break inventing a #printf #hack for #HLSL because, clearly, what the world needs now is more ways to debug shaders. 🙄 Meanwhile, in a shocking turn of events, we discover people might actually want useful tools. Who would've guessed?! 💡🔍
https://www.abolishcrlf.org//2025/12/31/Printf.html #technews #shaderdebugging #innovation #HackerNews #ngated -
✨🎨 Breaking news: yet another tech genius spends holiday break inventing a #printf #hack for #HLSL because, clearly, what the world needs now is more ways to debug shaders. 🙄 Meanwhile, in a shocking turn of events, we discover people might actually want useful tools. Who would've guessed?! 💡🔍
https://www.abolishcrlf.org//2025/12/31/Printf.html #technews #shaderdebugging #innovation #HackerNews #ngated -
#nanoprintf is a tiny #publicdomain #printf implementation.
nanoprintf is a single header library written in C99 (only for types) that provides a C11 compliant printf implementation on platforms without much of the standard library. nanoprintf compiles to 1 K to 3 K of program memory on ARM platforms.
Website 🔗️: https://github.com/charlesnicholson/nanoprintf
-
#assertOpenCL
Free implementation of #assert and PRINT macros (to enable and disable #printf) for #OpenCL, with host examples in C/C++, Java, Scala and Python.
https://bitbucket.org/OPiMedia/assertopencl/
#GPU #CPU -
[Перевод] Крестики-нолики на printf
Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.
-
[Перевод] Крестики-нолики на printf
Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.
-
[Перевод] Крестики-нолики на printf
Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.
-
An Experimental Approach to Printf in HLSL
https://www.abolishcrlf.org//2025/12/31/Printf.html
#HackerNews #Experimental #HLSL #Printf #Graphics #Programming #Shader #Techniques
-
An Experimental Approach to Printf in HLSL
https://www.abolishcrlf.org//2025/12/31/Printf.html
#HackerNews #Experimental #HLSL #Printf #Graphics #Programming #Shader #Techniques
-
An Experimental Approach to Printf in HLSL
https://www.abolishcrlf.org//2025/12/31/Printf.html
#HackerNews #Experimental #HLSL #Printf #Graphics #Programming #Shader #Techniques
-
An Experimental Approach to Printf in HLSL
https://www.abolishcrlf.org//2025/12/31/Printf.html
#HackerNews #Experimental #HLSL #Printf #Graphics #Programming #Shader #Techniques