Forwarded from Технологический Болт Генона
Наконец-та!
Hosting a WebSite on a Disposable Vape
https://bogdanthegeek.github.io/blog/projects/vapeserver/
Сам сайт, который хостится -
"Железо"
- 24MHz Coretex M0+
- 24KiB of Flash Storage
- 3KiB of Static RAM
- a few peripherals, none of which we will use.
> This may not come as a surprise, but Linux (and with some tweaking even macOS) supports SLIP. The slattach utility can make any /dev/tty* send and receive IP packets. All we have to do is put the data down the wire in the right format and provide a virtual tty. This is actually easier than you might imagine, pyOCD can forward all semihosting though a telnet port. Then, we use socat to link that port to a virtual tty:
Для IP-стека был взят uIP - https://github.com/adamdunkels/uip (который был написан сразу хорошо и поэтому 12 лет не обновлялся 🌝)
Так же был реализован/портирован SLIP (Serial Line Internet Protocol) - старый протокол, который использовался для подключения через модемы
> If you are older than me, you might remember a time before Wi-Fi and Ethernet, the dark ages, when you had to use dial-up modems to get online. You might also know that the ghosts of those modems still linger all around us. Almost all USB serial devices actually emulate those modems: a 56k modem is just 57600 baud serial device. Data between some of these modems was transmitted using a protocol called SLIP (Serial Line Internet Protocol)
Сначала работало всё медленно, но после оптимизаций удалось достигнуть пинга в 20 мс, а загрузки страницы за 160 мс.
Реализация получилась такой компактной, что на веб-сервер удалось разместить текст оригинальной статьи
> As you may have noticed, we have just under 20kiB (80%) of storage space. That may not be enough to ship all of React, but as you can see, it’s more than enough to host this entire blog post.
Исходный код проекта
https://github.com/BogdanTheGeek/semihost-ip
Hosting a WebSite on a Disposable Vape
https://bogdanthegeek.github.io/blog/projects/vapeserver/
Сам сайт, который хостится -
http://ewaste.fka.wtf/
"Железо"
- 24MHz Coretex M0+
- 24KiB of Flash Storage
- 3KiB of Static RAM
- a few peripherals, none of which we will use.
> This may not come as a surprise, but Linux (and with some tweaking even macOS) supports SLIP. The slattach utility can make any /dev/tty* send and receive IP packets. All we have to do is put the data down the wire in the right format and provide a virtual tty. This is actually easier than you might imagine, pyOCD can forward all semihosting though a telnet port. Then, we use socat to link that port to a virtual tty:
pyocd gdb -S -O semihost_console_type=telnet -T $(PORT) $(PYOCDFLAGS) &
socat PTY,link=$(TTY),raw,echo=0 TCP:localhost:$(PORT),nodelay &
sudo slattach -L -p slip -s 115200 $(TTY) &
sudo ip addr add 192.168.190.1 peer 192.168.190.2/24 dev sl0
sudo ip link set mtu 1500 up dev sl0
Для IP-стека был взят uIP - https://github.com/adamdunkels/uip (который был написан сразу хорошо и поэтому 12 лет не обновлялся 🌝)
Так же был реализован/портирован SLIP (Serial Line Internet Protocol) - старый протокол, который использовался для подключения через модемы
> If you are older than me, you might remember a time before Wi-Fi and Ethernet, the dark ages, when you had to use dial-up modems to get online. You might also know that the ghosts of those modems still linger all around us. Almost all USB serial devices actually emulate those modems: a 56k modem is just 57600 baud serial device. Data between some of these modems was transmitted using a protocol called SLIP (Serial Line Internet Protocol)
Сначала работало всё медленно, но после оптимизаций удалось достигнуть пинга в 20 мс, а загрузки страницы за 160 мс.
Реализация получилась такой компактной, что на веб-сервер удалось разместить текст оригинальной статьи
Memory region Used Size Region Size %age Used
FLASH: 5116 B 24 KB 20.82%
RAM: 1380 B 3 KB 44.92%
> As you may have noticed, we have just under 20kiB (80%) of storage space. That may not be enough to ship all of React, but as you can see, it’s more than enough to host this entire blog post.
Исходный код проекта
https://github.com/BogdanTheGeek/semihost-ip
❤13🔥2😁2🤯1
Forwarded from ReadMe.txt (Ilya Klishin)
♍ Что изменяется под нашим зодиаком?
Это максимально редкая картинка: я нашел ее в интернете всего в трех экземплярах.
В 1935 году в «Крокодиле» вышел шарж на Пастернака: рисовали Кукрыниксы, текст эпиграммы — Архангельского: «Всё изменяется под нашим зодиаком, / но Пастернак остался Пастернаком».
Пастернак нарисован сфинксом. Месседж прозрачен: «Он — из старой эпохи, не желает встраиваться в новую советскую реальность».
Фраза стала локальным мемом, остротой. Ее вспоминали и в пятидесятые — в письмах; и сейчас нетрудно найти нишевые заголовки вроде «Пастернак остался Пастернаком».
Важно понимать, что Архангельский опирался на уже знакомый его читателям мем XIX — начала XX века: а именно на пошлое двустишие «Всё изменилося под нашим зодиаком: / Лев козерогом стал, а дева стала раком».
Строки эти часто по ошибке приписывают Александру Пушкину, но автор — брат, Лев Пушкин.
Конечно, в официальной печати это двустишие не публиковали, но как-то все знали. Отсылок к нему — множество. Например, Некрасов пишет в 1841 году:
— «Всё изменяется под нашим зодиаком», — говорит он и ради остроты прибавляет: — «Однако ж надобно заняться прежде фраком!»
Или знаменитый врач Пирогов: «В начале же 1840-х годов всё переменилось под нашим зодиаком».
Или в 1912 году газета «Одесский листок»: «Все изменилось под нашим Зодиаком — в Крыму на санях ездят, в Одессе на солнышке благодушествуют…».
Но и это не все. Лев Пушкин не выдумал выражение с нуля. В конце XVIII — начале XIX века сама фигура «под (таким-то) зодиаком» была ходовой — как высокий синоним «под этим небом, под этой луной». Например, у Боброва в 1804 году: «…Когда под вешним зодиаком / вкушал сей вождь последний сон?»
Клише это — калька с французского sous le zodiaque («под зодиаком»; варианты: sous ce zodiaque, sous notre zodiaque). Выражение — возвышенное, книжное; с XV века встречается в трактатах, космографиях, публицистике и позже — поэзии. Отсюда — лёгкий переход в русский «под (нашим) Зодиаком».
Исток — латинский научный язык поздней Античности и Средневековья: sub zodiaco circulo («под зодиакальным кругом»). Изначально это строгое обозначение участка неба (полоса вдоль эклиптики) и, в земной проекции, «полосы мира» между тропиками (Рака и Козерога). В таком техническом смысле оборот встречается, например, у Фомы Аквинского в комментарии к «Метеорологике» Аристотеля:
Постепенно значение расширяется: «под зодиаком» начинает означать вообще подлунный мир — «у нас тут, внизу».
Характерный пример — один из старых французских переводов «Божественной комедии» Данте (Рай, песнь 1) вводит фразу, которой у Данте нет: «Notre essence déploie là-haut des ressorts captifs sous notre zodiaque…»(«Наша природа там, наверху, разворачивает скованные силы под нашим зодиаком…»).
Вывода никакого не будет, но интересно!
Это максимально редкая картинка: я нашел ее в интернете всего в трех экземплярах.
В 1935 году в «Крокодиле» вышел шарж на Пастернака: рисовали Кукрыниксы, текст эпиграммы — Архангельского: «Всё изменяется под нашим зодиаком, / но Пастернак остался Пастернаком».
Пастернак нарисован сфинксом. Месседж прозрачен: «Он — из старой эпохи, не желает встраиваться в новую советскую реальность».
Фраза стала локальным мемом, остротой. Ее вспоминали и в пятидесятые — в письмах; и сейчас нетрудно найти нишевые заголовки вроде «Пастернак остался Пастернаком».
Важно понимать, что Архангельский опирался на уже знакомый его читателям мем XIX — начала XX века: а именно на пошлое двустишие «Всё изменилося под нашим зодиаком: / Лев козерогом стал, а дева стала раком».
Строки эти часто по ошибке приписывают Александру Пушкину, но автор — брат, Лев Пушкин.
Конечно, в официальной печати это двустишие не публиковали, но как-то все знали. Отсылок к нему — множество. Например, Некрасов пишет в 1841 году:
— «Всё изменяется под нашим зодиаком», — говорит он и ради остроты прибавляет: — «Однако ж надобно заняться прежде фраком!»
Или знаменитый врач Пирогов: «В начале же 1840-х годов всё переменилось под нашим зодиаком».
Или в 1912 году газета «Одесский листок»: «Все изменилось под нашим Зодиаком — в Крыму на санях ездят, в Одессе на солнышке благодушествуют…».
Но и это не все. Лев Пушкин не выдумал выражение с нуля. В конце XVIII — начале XIX века сама фигура «под (таким-то) зодиаком» была ходовой — как высокий синоним «под этим небом, под этой луной». Например, у Боброва в 1804 году: «…Когда под вешним зодиаком / вкушал сей вождь последний сон?»
Клише это — калька с французского sous le zodiaque («под зодиаком»; варианты: sous ce zodiaque, sous notre zodiaque). Выражение — возвышенное, книжное; с XV века встречается в трактатах, космографиях, публицистике и позже — поэзии. Отсюда — лёгкий переход в русский «под (нашим) Зодиаком».
Исток — латинский научный язык поздней Античности и Средневековья: sub zodiaco circulo («под зодиакальным кругом»). Изначально это строгое обозначение участка неба (полоса вдоль эклиптики) и, в земной проекции, «полосы мира» между тропиками (Рака и Козерога). В таком техническом смысле оборот встречается, например, у Фомы Аквинского в комментарии к «Метеорологике» Аристотеля:
Постепенно значение расширяется: «под зодиаком» начинает означать вообще подлунный мир — «у нас тут, внизу».
Характерный пример — один из старых французских переводов «Божественной комедии» Данте (Рай, песнь 1) вводит фразу, которой у Данте нет: «Notre essence déploie là-haut des ressorts captifs sous notre zodiaque…»(«Наша природа там, наверху, разворачивает скованные силы под нашим зодиаком…»).
Вывода никакого не будет, но интересно!
👍12❤1🔥1
#justrustaceanthings
Hello,Source
We are sorry you aren’t happy with the state of the async in the current edition of Rust. The memory ownership intuition you were meant to develop when working with single-threaded and/or parallel execution turned to be too expensive to port into our zero-cost concurrency framework, reinvented from scratch for the ultimate benefit to no one in particular.
We aren’t planning to do anything about it.
Rust Async Support - International Department
😁7👍4🤡2
Forwarded from меньше чем три 👁👁
Steam yurifest is real
https://store.steampowered.com/curator/42156664/sale/2025YuriGameFestival
https://store.steampowered.com/curator/42156664/sale/2025YuriGameFestival
🥰13💩2🤯1
Forwarded from HN Best Comments
Re: Slack has raised our charges by $195k per year
Hi, I’m Christina, cofounder of Hack Club. We just announced this news to our community, and this post is from one of the teenagers in Hack Club. It’s an accurate description of what’s happened, and we’re grateful to them for posting. Slack changed the terms of a special deal we were given last year to charge us for staff and volunteers (not for every teenager coding), and we built programs around that special rate. Then this spring they changed the terms to every single user without telling us or sending a new contract, and then ignored our outreach and delayed us and told us to ignore the bill and not to pay as late as Aug 29
Then, suddenly, they called us 2 days ago and said they are going to de-activate the Hack Club Slack, including all message history from 11 years, unless we pay them $50,000 USD this week and $200,000 USD/year moving forward (plus additional annual fees for new accounts, including inactive ones)
For anyone reading this, we would really appreciate any way to contact people at Salesforce to discuss time to migrate because deactivating us in 5 days destroys all the work of thousands of teen coders at Hack Club and alum unnecessarily. We are not asking for anything for free. This was an underhanded process by the sales team to raise our rate exorbitantly from a qualified educational 501(c)(3) charity serving young developers or destroy all their projects, DMs and work forever. If Salesforce’s goals have changed- ok. Give us a reasonable amount of time to migrate- and don’t club us over the head like this. We have had an 11 year great relationship with Slack- and have introduced the company to many many future engineers and founders. My email if you can help us: [email protected]
casq, 6 hours ago
Hi, I’m Christina, cofounder of Hack Club. We just announced this news to our community, and this post is from one of the teenagers in Hack Club. It’s an accurate description of what’s happened, and we’re grateful to them for posting. Slack changed the terms of a special deal we were given last year to charge us for staff and volunteers (not for every teenager coding), and we built programs around that special rate. Then this spring they changed the terms to every single user without telling us or sending a new contract, and then ignored our outreach and delayed us and told us to ignore the bill and not to pay as late as Aug 29
Then, suddenly, they called us 2 days ago and said they are going to de-activate the Hack Club Slack, including all message history from 11 years, unless we pay them $50,000 USD this week and $200,000 USD/year moving forward (plus additional annual fees for new accounts, including inactive ones)
For anyone reading this, we would really appreciate any way to contact people at Salesforce to discuss time to migrate because deactivating us in 5 days destroys all the work of thousands of teen coders at Hack Club and alum unnecessarily. We are not asking for anything for free. This was an underhanded process by the sales team to raise our rate exorbitantly from a qualified educational 501(c)(3) charity serving young developers or destroy all their projects, DMs and work forever. If Salesforce’s goals have changed- ok. Give us a reasonable amount of time to migrate- and don’t club us over the head like this. We have had an 11 year great relationship with Slack- and have introduced the company to many many future engineers and founders. My email if you can help us: [email protected]
casq, 6 hours ago
🤬13🤡3❤1
Блог*
Что общего между старым краном и девушкой, которой ты нравишься? Текут
А в чём между ними разница?
Кран существует
🤡12😭6❤5💯4👍1
#prog #abnormalprogramming
HTML, The Programming Language
Язык программирования (внезапно, стековый), программы на котором выглядят, как разметка HTML.
HTML, The Programming Language
Язык программирования (внезапно, стековый), программы на котором выглядят, как разметка HTML.
😐4👍3🤯2🍌1
#bio
From fish cloaca to fingers: Scientists trace the origin of our digits
Иными словами, руки из жопы у всех.
From fish cloaca to fingers: Scientists trace the origin of our digits
To answer this question [о происхождении конечностей], the research team did not just study the genes involved in the development of the digits themselves, but also explored the vast non-coding regions of the genome <...> that control their expression and activation. These regions are called "regulatory landscapes" and are much larger than the coding regions <...>.
By comparing the genomes of mice and fish, the researchers first identified a regulatory landscape conserved between the two species and involved in the development of mouse digits. Then, by removing this large region of DNA in fish using CRISPR/Cas9 technology—genetic scissors that enable genome editing—the team observed a loss of gene expression in the cloaca, but not in the fins.
<...>
In particular, the regulatory landscapes in question control the activation of Hox genes, known as "architect genes." They establish the body's organizational plan by determining the position and identity of segments or organs. They act at the top of a complex network of thousands of operational genes by controlling their expression. A mutation in these genes can therefore lead to profound anatomical changes, which certainly explains their decisive role in evolution..
Иными словами, руки из жопы у всех.
🔥4😁1🤡1
Forwarded from Random Rust Dev
На работе предложили делать то же самое за больше денег.
Думаю, где же тут подвох.
Думаю, где же тут подвох.
🤔7