world news Take the 30-Day Challenge By www.scoutscapecod.org Published On :: Fri, 20 Mar 2020 14:43:40 -0400 Especially for Cub Scout Leaders and Parents: In order to help your Scouts stay engaged in the program while we work through the COVID-19 crisis, we are publishing some resources ... Full Article
world news 30 Day Challenge for Scouts BSA By www.scoutscapecod.org Published On :: Fri, 27 Mar 2020 14:56:49 -0400 Now there is a "30 Day Challenge" for Scouts BSA. Scout, Tenderfoot, and Second Class challenge sheets are available. ... Full Article
world news Take the Challenge, Earn a Patch! By www.scoutscapecod.org Published On :: Fri, 24 Apr 2020 13:04:32 -0400 Cape Cod & Islands Council is offering a special Council Shoulder Patch to recognize Scouts who meet the COVID-19 Challenge! ... Full Article
world news Гляди в оба #3: время короткометражек, неприкосновенные запасы снега и горы впечатлений By risk.ru Published On :: Tue, 21 Apr 2020 13:19:13 +0300 Кадр из фильма The Pathan Project / “Проект “Патан” Свеженькая подборка видео, которые интересно обсуждать и не один раз пересматривать. Вдохновение, мотивация, захватывающие кадры и непридуманные истории - всё, как вы любите. Full Article
world news Поговорим о книгах. Интервью с Бернадетт Макдональд By risk.ru Published On :: Thu, 23 Apr 2020 19:25:50 +0300 Во время лекции на фестивале в Бильбао Бернадетт Макдональд – автор книги «Альпинисты свободы», впечатляющей истории о людях, чьей мечтой было подниматься на высочайшие вершины и ставить рекорды в Гималаях. Всемирный день книг – хороший повод опубликовать беседу с канадской писательницей. Full Article
world news ЗОВУТ ГОРЫ - история альпинизма Казахстана By risk.ru Published On :: Sun, 19 Apr 2020 17:44:20 +0300 Юля Сувига на своей странице в ФБ опубликовала ролик с YouTube - документальный фильм, в котором известные спортсмены рассказывают об истории казахстанского альпинизма. Просмотр этого фильма позволит вам с пользой провести образовавшееся свободное время. Смотрим: Full Article
world news Необычные новинки и проверенные хиты туристического снаряжения By risk.ru Published On :: Wed, 29 Apr 2020 17:49:35 +0300 В “Спорт-Марафон” одна за другой идут поставки новых коллекций снаряжения, одежды и обуви. Выбрали то, от чего сами в восторге: непрокалываемый "самонадувающийся" коврик, двухместная палатка весом 765 грамм, ботинки для пустыни и много-много других новинок и флагманов. Full Article
world news Вселенский заговор By risk.ru Published On :: Wed, 22 Apr 2020 10:07:07 +0300 Когда в 2000 наконец-то купил себе трекинговые ботинки для меня они казались чем-то космическим после московских вибрамов. Удобные, лёгкие, знаменитая подошва Vibram. Ничего не натирает. Сразу прошёл в них две четвёрки по Кодару и Восточным Саянам. Full Article
world news Зимняя жестерка на Терскей 2020 - как с прецизией оттянуться в новогодние праздники By risk.ru Published On :: Thu, 09 Apr 2020 13:33:16 +0300 Пару месяцев назад я уже писал о прохождении нового перевала в Джетыогузской стене, названного в честь Виталия Горелика "Кулуар Гор". Кулуар Гор был пройден нами в нитке трехнедельного зимнего горного маршрута шестой категории. Здесь предлагается рассказ об остальных эпизодах этого похода. Full Article
world news История Киргизского альпинизма. By risk.ru Published On :: Mon, 13 Apr 2020 18:34:22 +0300 Full Article
world news Спасработы-2 Уллутау-чана, август 2004 г. By risk.ru Published On :: Tue, 28 Apr 2020 15:37:49 +0300 Full Article
world news “Ветер был реже, чем дождь” – Сильвия Видаль о первопроходе “Sincronia Màgica” By risk.ru Published On :: Wed, 15 Apr 2020 12:03:01 +0300 Фото из архива Сильвии Видаль. Первопрохождение. Соло. Сильвия Видаль. Не восхищаться этой "Чудо-женщиной" в мире альпинизма и её восхождениями невозможно! На этот раз она отправилась в долину Чилино в Патагонии, чтобы соло проложить новый маршрут по северной стене Сьеро-Чилино-Гранде. Full Article
world news Список горных туристов, взошедших на семитысячники с 1959 по 1991 год By risk.ru Published On :: Mon, 20 Apr 2020 21:10:11 +0300 Кассин Юрий Петрович - первый турист, который взошёл на пик Сталина в 1959 году. Друзья, приветствую вас! Шесть лет назад, в 2015 году к 120-летию самодеятельного туризма, меня попросили написать Летопись о восхождениях горных туристов на семитысячники. В процессе подготовки этого материала в моих руках оказалось столько информации, что возникла мысль всё это зафиксировать, а, главное, систематизировать. Таким образом, появились три составляющих: 1. Список горных туристов, взошедших на семитысячники в период с 1959 по 1991 год. 2. Летопись восхождений с 1959 по 1991 год. 3. Список погибших горных туристов Full Article
world news Боря Абрамов и Витя Жижин стали лауреатами конкурса книг 23 кинофестиваля "Вертикаль" By risk.ru Published On :: Sun, 19 Apr 2020 14:45:00 +0300 Full Article
world news Литературный обзор перевалов, траверсов и восхождений на вершины массива Акшийрак на основе электронных отчетов. By risk.ru Published On :: Wed, 06 May 2020 22:52:24 +0300 Предлагаю литературный обзор перевалов, траверсов и восхождений на вершины массива Акшийрак. Также предлагаю описания перевалов с фотографиями и литературными ссылками. Full Article
world news Как я начал лазать и полюбил скалолазание с альпинизмом. By risk.ru Published On :: Tue, 21 Apr 2020 14:07:40 +0300 Большие скалы на озере Ястребиное. Моё первое free solo. Желание написать эту статью возникло в начале 2019 года после разговора с Шатлыком – парнем стремительно ворвавшимся в скалолазную тусовку Петербурга. К тому моменту он лазал всего два года, но уже показывал неплохие результаты и тренировался как спортсмен. Тут я имею в виду, что он не ленился делать всевозможные офп и сфп, до которых у меня никогда не доходили руки. Мы ехали со скалодрома по ночному Питеру, и он рассказывал, как пришёл в скалолазание, а я в ответ вспоминал смешные истории из тех времён, когда сам начинал лазать. Когда важны были не категории, а приключения. Когда в нашей жизни не было ни скалодромов, ни тренеров, но было безудержное желание лазать. Тогда я решил перенести эти воспоминания «на бумагу», что и сделал, лёжа в палатке в Каравшине, пережидая непогоду. Жаль только телефон с готовым текстом сгорел в доме Нурдина от перепада напряжения. Писать заново не хотелось, а сейчас сами понимаете: самоизоляция – времени хоть отбавляй! Full Article
world news Лыжная шестерка по Икатскому, Южно-Муйскому и Муяканскому хребтам, 25 дней по редко посещаемым и безумно красивым местам Забайкалья By risk.ru Published On :: Sat, 25 Apr 2020 22:09:26 +0300 Full Article
world news Полярный и Приполярный Урал в одном пешеходном маршруте By risk.ru Published On :: Tue, 28 Apr 2020 18:14:25 +0300 В августе-сентябре 2019 года прошли интересный, длительный, автономный маршрут 5 к.с. проходящий вдоль Полярного Урала и части Приполярного Урала с севера на юг. Протяженность пешеходной части составила 540,1 км, водной 135,9 км. Прохождение маршрута заняло 38 дней из них 3 дневки. Full Article
world news История Киргизского альпинизма By risk.ru Published On :: Wed, 29 Apr 2020 17:54:35 +0300 Full Article
world news Летопись восхождений горных туристов на семитысячники СССР с 1959 по 1991 г. By risk.ru Published On :: Sun, 26 Apr 2020 22:56:47 +0300 Психологически очень трудно проходить сложнейшие перевалы рядом с вершинами, до которых «рукой подать» и не зайти на вершину. Занимаясь туризмом как спортом, классифицируя походы по сложности, туристы изобретали всевозможные искусственные «перевалы», например, «перевал» между двумя вершинами Эльбруса, «перевал» через плато Правды рядом с пиком Коммунизма и, кажется, даже «перевал» через седловину между двумя вершинами Ушбы. Выход на такие перевалы включает большую и технически сложнейшую часть восхождения на гору. Однако туристам вершины запрещены. Запреты обходят, как могут: например, включают в маршрут «выход на панорамную точку для фотографирования», или просто совершают восхождения втихаря, подальше от посторонних глаз, многократно увеличивая тем самым опасность тяжелых последствий любой аварии. Эти слова принадлежат Юрию Слезину – МС СССР по альпинизму, доктору наук. Он прав, до слов «Однако, туристам вершины запрещены». Напротив Конституция СССР провозглашала равенство прав всех граждан страны и запрещала ограничивать свободу передвижения в своей стране для любого её гражданина. Никакие партийные, общественные или спортивные организации не имели права нарушать основной закон государства! Именно эти два мнения определяли коллизию отношений между альпинистами и горными туристами во второй половине прошлого века. Альпинисты обижались на то, что им приходилось иногда отвлекаться от своих дел и помогать туристам, попавшим в беду. Туристы обижались на нарушения их конституционных прав. Начало обозначенного в заглавии периода времени соответствует первому восхождению туриста на семитысячник, а конец – прекращению существования СССР. Представленный обзор содержит в хронологическом порядке все, известные мне, факты восхождений. В связи с отсутствием официальной регистрации рассматриваемых восхождений могут встречаться неточности. Кроме этого некоторые ссылки могут быть не актуальны, поскольку материал начал собираться с 2015 г. Номер маршрута совпадает со списком взошедших по годам. Стиль изложения будет различаться друг от друга, поскольку старался придерживаться текстов, присланных первоисточниками. Эта летопись, я думаю, будет постоянно дополняться. Друзья, надеюсь на вашу помощь! Full Article
world news Нужны ли регионам инструктора альпинизма? By risk.ru Published On :: Wed, 06 May 2020 10:04:53 +0300 На сайте ФАР по случаю усталости от самоизоляции был выброс пара - оживлённая дискуссия по всем вопросам сразу. Full Article
world news Забег на северную стену пика Коммунизма 7495 м By risk.ru Published On :: Tue, 28 Apr 2020 16:12:31 +0300 Full Article
world news К юбилею исторической экспедиции «Восхождение Мира на Эверест». Сообщение от Мстислава Горбенко By risk.ru Published On :: Thu, 07 May 2020 12:02:35 +0300 30 лет назад состоялась Советско-Американо-Китайская экспедиция «Восхождение Мира на Эверест». В составе интернациональной команды на вершину поднялся выдающийся украинский альпинист Мстислав Горбенко, который рассказал об этом событии: В 1990 году, в мае 7, 8 и 10-го было совершено уникальное по тем временам восхождение на Эверест с севера по СВ гребню. 20 участников международной экспедиции Everest Peace Climb, альпинисты трех стран – США, СССР и КНР достигли вершины. Full Article
world news Палатка Век Байкал трехслойная By risk.ru Published On :: Fri, 08 May 2020 07:53:06 +0300 Собираясь в многодневный зимний поход, необходимо определиться с выбором палатки, которую можно приобрести в экипировочном центре «ВЕК». Зимняя палатка может быть оборудована печкой или газовым обогревателем, где можно высушить одежду и обувь. В таком укрытии не страшен любой мороз, даже без печки в нем значительно теплее и намного комфортнее, а если поход продолжительный, то трехслойная палатка просто необходима. Опытные туристы советуют не экономить и приобрести такое снаряжение производства фирмы «Век», наиболее популярным из которых является зимняя палатка Век Байкал. На предоставленных фотографиях палатки разных лет выпуска. Есть и сторожил - палатка выпуска 1998 года, более 20 лет эксплуатации. Байкал-2 трехслойная Full Article
world news Перечень перевалов высокогорных районов - новый район и обновление 20 районов By risk.ru Published On :: Fri, 08 May 2020 07:09:07 +0300 Рабочая группа МК ФСТР по обновлению Перечня перевалов высокогорных районов сообщает о значительном обновлении Перечня Full Article
world news Старая записка... By risk.ru Published On :: Fri, 08 May 2020 23:46:56 +0300 Друзья! Федерация альпинизма Дагестана сожалеет, что традиционная альпинада в районе горы Ярыдаг в этом году не состоялась. Для сохранения духа предлагаем поднять архивы. До войны оставалось два года...С Днем Победы! Материал с сайта https://caspiane.ru. Full Article
world news Перечень перевалов высокогорных районов - обновлен Восточный Кавказ! By risk.ru Published On :: Sat, 09 May 2020 16:20:15 +0300 Несколько неожиданно даже для самой рабочей группы нам удалось быстрее, чем планировалось, завершить обновление Перечня перевалов Восточного Кавказа! Сегодня он выложен по ссылке. Давайте поблагодарим авторов за такой подарок к празднику. Основную работу выполнили Елена Петровна Титкова и Анатолий Джулий! Перечень перевалов этого района обновлен впервые за 19 лет! В этот раздел вошла территория от долины Терека и практически до Каспийского моря. Full Article
world news Сегодня - 75 лет со дня ВЕЛИКОЙ ПОБЕДЫ! By risk.ru Published On :: Sat, 09 May 2020 10:49:46 +0300 Full Article
world news Proiect de hotarare din 05.05.2020 By www.primariatm.ro Published On :: Thu, 07 May 2020 00:00:00 +0200 Privind prelungirea contractului de concesiune nr.11/12.10.2004 avand ca obiect exploatarea spaţiului in care funcţionează Cabinet Medical Medicină de Familie Dr.Simion Daniel, situat in Timişoara, str. Aluniş, nr.38, cabinet nr.2 Full Article Proiecte de hotarari ale Consiliului Local Timisoara
world news Proiect de hotarare din 06.04.2020 By www.primariatm.ro Published On :: Thu, 07 May 2020 00:00:00 +0200 Privind aprobarea operatiunii de rectificare a suprafetei imobilului inscris in CF nr.441128 Timisoara , de la 3065 mp (inscrisa in cartea funciara) la 2505 mp (suprafata masurata) Full Article Proiecte de hotarari ale Consiliului Local Timisoara
world news Proiect de hotarare din 05.05.2020 By www.primariatm.ro Published On :: Thu, 07 May 2020 00:00:00 +0200 Privind prelungirea contractului de inchiriere nr.1581/15.05.2014 incheiat cu CABINET INDIVIDUAL DE AVOCAT GEORGIU RAMONA ALINA Full Article Proiecte de hotarari ale Consiliului Local Timisoara
world news Proiect de hotarare din 06.05.2020 By www.primariatm.ro Published On :: Thu, 07 May 2020 00:00:00 +0200 Privind aprobarea contului de execuţie al bugetului local al Municipiului Timisoara la 31 Decembrie 2019 Full Article Proiecte de hotarari ale Consiliului Local Timisoara
world news HCL 171/30.04.2020 By www.primariatm.ro Published On :: Thu, 07 May 2020 00:00:00 +0200 privind aprobarea Acordului de parteneriat intre UAT Municipiul Timişoara şi Direcţia de Asistenţă Socială a Municipiului Timişoara pentru depunerea şi implementarea proiectului Clădire in regim de inalţime P+2E cu funcţiunea centru cultural şi educaţional Kuncz" Timişoara prin POR 2014-2020 Full Article Hotararile Consiliului Local Timisoara
world news Mesajul Primarului Municipiului Timișoara, dl. Ncolae Robu, cu ocazia Zilei Europei By www.primariatm.ro Published On :: Thu, 07 May 2020 00:00:00 +0200 Stimați și dragi timișoreni Full Article Comunicate de presa
world news PHP 7.2.30 Release Announcement - PHP: Hypertext Preprocessor By www.php.net Published On :: Fri, 17 Apr 2020 00:00:00 +0000 The PHP development team announces the immediate availability of PHP 7.2.30. This is a security release.All PHP 7.2 users are encouraged to upgrade to this version.For source downloads of PHP 7.2.30 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog. Full Article
world news Platform.sh + Lando: local dev in perfect sync with the cloud - platform.sh By platform.sh Published On :: Tue, 21 Apr 2020 00:00:00 +0000 Platform.sh removes a major pain point for developers: having to invest time in managing servers, virtual machines, or containers. Instead, Platform.sh enables developers to focus 100% of their time on their code. Since the beginning, Platform.sh has provided instant cloning capability, so dev teams can work on perfect copies of their production sites in the cloud for every Git branch. Now, in partnership with Lando, we’re extending that capability to the desktop. Full Article
world news Switching phubb's HTTP client - Christian Weiske By cweiske.de Published On :: Tue, 21 Apr 2020 20:13:53 +0000 phubb is a WebSub hub that notifies subscribers in realtime when your website is updated. Up to this year, phubb sent HTTP requests (GET + POST) with file_get_contents() and a HTTP stream context - see my previous example. But then I needed a 100% correct way of detecting a page's Hub URL, and copied the code from phinde, my blog search engine. With that I introduced a dependency to PEAR's good old HTTP_Request2 library and I decided to use that library for all requests. Unfortunately, now the problems began: During development I got an error in about one of 10-20 requests on my machine and could not find the cause: PHP Fatal error: Uncaught HTTP_Request2_MessageException: Malformed response: in HTTP/Request2/Adapter/Socket.php on line 1019 #0 HTTP/Request2/Adapter/Socket.php(1019): HTTP_Request2_Response->__construct('', true, Object(Net_URL2)) #1 HTTP/Request2/Adapter/Socket.php(136): HTTP_Request2_Adapter_Socket->readResponse() #2 HTTP/Request2.php(946): HTTP_Request2_Adapter_Socket->sendRequest(Object(phubbHttpRequest)) #3 phubb/src/phubb/HttpRequest.php(22): HTTP_Request2->send() #4 phubb/src/phubb/Task/Publish.php(283): phubbHttpRequest->send() #5 phubb/src/phubb/Task/Publish.php(248): phubbTask_Publish->fetchTopic(Object(phubbModel_Topic)) #6 phubb/src/phubb/Task/Publish.php(77): phubbTask_Publish->checkTopicUpdate('http://push-tes...') #7 in HTTP/Request2/Response.php on line 215 The socket adapter has this problem, and I did not want to try to debug that strange problem. (No idea if the cURL one has it; I do not want to rely on php-curl). Finding a new HTTP library was the only option. New HTTP library The PHP Framework Interop Group has several HTTP-related proposals; one of them PSR-18: HTTP Client. Now that we have a standardized way to send HTTP requests in 2020, I should use a library that implements it. The psr-18 topic on Github listed some clients: Symfony's HTTP client was among them, and it provides a mock client for unit tests! Unfortunately, it also introduces a million dependencies. There were two others that looked ok-ish on first sight (diciotto and http-client-curl) but both of them had no mock client, and the latter was even curl only. Again nothing for me. Then I found PHP-HTTP that promises a standard interface for HTTP clients in PHP, and it supports PSR-18! It even has a socket client that has nearly no dependencies, and a mock client for unit tests. I'll try that one for now. Full Article
world news PHP Internals News: Episode 50: The RFC Process - Derick Rethans By derickrethans.nl Published On :: Thu, 23 Apr 2020 08:13:00 +0000 PHP Internals News: Episode 50: The RFC Process London, UK Thursday, April 23rd 2020, 09:13 BST In this episode of "PHP Internals News", Henrik Gemal (LinkedIn, Website) asks me about how PHP's RFC process works, and I try to answer all of his questions. The RSS feed for this podcast is https://derickrethans.nl/feed-phpinternalsnews.xml, you can download this episode's MP3 file, and it's available on Spotify and iTunes. There is a dedicated website: https://phpinternals.news Transcript Derick Rethans 0:16 Hi, I'm Derick. And this is PHP internals news, a weekly podcast dedicated to demystifying the development of the PHP language. This is Episode 50. Today I'm talking with Henrik come out after he reached out with a question. You might know that at the end of every podcast, I ask: if you have any questions, feel free to email me. And Henrik was the first person to actually do so within a year and a half's time. For the fun, I'm thinking that instead of I'm asking the questions, I'm letting Henrik ask the questions today, because he suggested that we should do a podcast about how the RFC process actually works. Henrik, would you please introduce yourself? Henrik Gemal 0:52 Yeah, my name is Henrik Gemal. I live in Denmark. The CTO of dinner booking which does reservation systems for restaurants. I've been doing a PHP development for more than 10 years. But I'm not coding so much now. Now I'm managing a big team of PHP developers. And I also been involved in the the open source development of Mozilla Firefox. Derick Rethans 1:19 So usually I prepare the questions, but in this case, Henrik has prepared the questions. So I'll hand over to him to get started with them. And I'll try to do my best to answer the questions. Henrik Gemal 1:27 I heard a lot about these RFCs. And I was interested in the process of it. So I'm just starting right off here, who can actually do an RFC? Is it anybody on the internet? Derick Rethans 1:38 Yeah, pretty much. In order to be able to do an RFC, what you would need is you need to have an idea. And then you need access to our wiki system to be able to actually start writing that, well not to write them, to publish it. The RFC process is open for everybody. In the last year and a half or so, some of the podcasts that I've done have been with people that have been contributing to PHP for a long time. But in other cases, it's people like yourself that have an idea, come up, work together with somebody to work on a patch, and then create an RFC out of that. And that's then goes through the whole process. And sometimes they get accepted, and sometimes they don't. Henrik Gemal 2:16 How technical are the RFCs? Is it like coding? Or is it more like the idea in general? Derick Rethans 2:23 The idea needs to be there, it needs to be thought out. It needs to have a good reason for why we want to add or change something in PHP. The motivation is almost as important as what the change or addition actually is about. Now, that doesn't always get us here at variable. In my opinion, but that is an important thing. Now with the idea we need to talk about what changes it has on the rest of the ecosystem, whether they are backward compatible breaks in there, how it effects extensions, or sometimes how it effects OPCache. Sometimes considerations have to be taken for that because it's, it's something quite important in the PHP ecosystem. And it is recommended that it comes with a patch, because it's often a lot easier to talk about an implementation than to talk about the idea. But that is not a necessity. There have been quite some RFCs where the idea was there. But it wasn't a patch right away yet. It is less likely that these RFCs will gTruncated by Planet PHP, read more at the original (another 15224 bytes) Full Article
world news Making bugs ex-bugs with Xdebug - platform.sh By platform.sh Published On :: Mon, 27 Apr 2020 00:00:00 +0000 Xdebug is an indispensable tool for every PHP developer. PHP’s favorite real-time debugger, it supports breakpoints, more detailed debug output, and deeper introspection of PHP code to determine just what it’s doing (and what it’s doing wrong). Sadly, it comes at a huge cost in performance, though, making it unsuitable for production. Not on Platform.sh, though. Xdebug is now available on all Grid environments, secure and without a performance loss. Full Article
world news Creating a simple link registry - Matthias Noback By matthiasnoback.nl Published On :: Tue, 28 Apr 2020 07:45:00 +0000 The problem: if you publish any document as PDF, in print, etc. and the text contains URLs, there is a chance that one day those URLs won't work anymore. There's nothing to do about that, it happens. Luckily, this is a solved problem. The solution is to link to a stable and trustworthy website, that is, one that you maintain and host (of course, you're trustworthy!). Then in the document you link to that website, and the website redirects visitors to the actual location. An example: my book contains a link to https://enjoy.gitstore.app/repositories/matthiasnoback/read-with-the-author. When I moved that repository to a new organization on GitHub, this link resulted in a 404 Page not found error. The proper URL is now https://enjoy.gitstore.app/repositories/read-with-the-author/read-with-the-author. Chris from Gitstore was able to save the day by setting up a redirect on their site, but I wanted to make sure this kind of problem would never be a problem for me again. The ingredients for the solution: A domain name (I registered advwebapparch.com) A simple website that can redirect visitors to the actual locations I wanted to hook this new website into my existing Docker-based setup which uses Traefik to forward traffic to the right container based on labels. It turns out, with a simple Nginx image and some custom setup we can easily set up a website that is able to redirecting visitors. The Dockerfile for such an image: FROM nginx:stable-alpine COPY default.conf /etc/nginx/conf.d/default.conf Where default.conf looks like this: server { listen 80 default_server; index index.html; root /srv; error_page 404 /404.html; rewrite /repository https://enjoy.gitstore.app/repositories/read-with-the-author/read-with-the-author redirect; } This already works, and when I deploying the resulting image to the server that receives traffic for advwebapparch.com, a request for /repository will indeed redirect a visitor to https://enjoy.gitstore.app/repositories/read-with-the-author/read-with-the-author using a temporary redirect. Generating the Nginx configuration from a text file When I'm working on my book, I don't want to manually update a server configuration file every time I'm adding a URL. Instead, I'd like to work with a simple text file. Let's name this file forwards.txt: /repository https://enjoy.gitstore.app/repositories/read-with-the-author/read-with-the-author /blog https://matthiasnoback.nl And then I want the Docker image build process to add rewrite rules automatically, So I wrote a little PHP script that does this runs during the build. Here's what the Dockerfile looks like. It uses a multi-stage build: FROM php:7.4-alpine as php # This will copy build.php from the build context to the image COPY . . # This will generate default.conf based on template.conf RUN php build.php FROM nginx:stable-alpine # Copy the default.conf from the php image to the nginx image COPY --from=php default.conf /etc/nginx/conf.d/default.conf Here's what happens inside the PHP script: function insertRewritesInNginxConf(string $conf): string { $rewrites = []; foreach (file('forwards.txt') as $line) { $line = trim($line); if (empty($line)) { continue; } $rewrites[] = ' ' . 'rewrite ' . $line . ' redirect;'; } return str_replace( '%INSERT_URL_REWRITES_HERE%', implode(" ", $rewrites), $conf ); } /* * Generate the Nginx configuration which includes all the actual * redirect instructions */ file_put_contents( 'default.conf', insertRewritesInNginxConf(file_get_contents('template.conf')) ); We should add a bit of validation for the data from the forwards.txt file so we don't end up with a broken Nginx configuration, but otherwise, this works just fine. Generating an html page which can be crawled for broken links I don't want to manually check that all the links that are inside the "link registry" still work. Instead, I'd like to use Oh Dear for that, which does uptime monitoring and checks for broken links as well. For this purpose I added another function to the PHP script, which, basedTruncated by Planet PHP, read more at the original (another 1844 bytes) Full Article
world news PHP Internals News: Episode 51: Object Ergonomics - Derick Rethans By derickrethans.nl Published On :: Thu, 30 Apr 2020 08:14:00 +0000 PHP Internals News: Episode 51: Object Ergonomics London, UK Thursday, April 30th 2020, 09:14 BST In this episode of "PHP Internals News" I talk with Larry Garfield (Twitter, Website, GitHub) about a blog post that he was written related to PHP's Object Ergonomics. The RSS feed for this podcast is https://derickrethans.nl/feed-phpinternalsnews.xml, you can download this episode's MP3 file, and it's available on Spotify and iTunes. There is a dedicated website: https://phpinternals.news Transcript Derick Rethans 0:16 Hi, I'm Derick. And this is PHP internals news, a weekly podcast dedicated to demystifying the development of the PHP language. This is Episode 51. Today I'm talking with Larry Garfield, not about an RFC for once, but about a blog post that he's written called Object Ergonomics. Larry, would you please introduce yourself? Larry Garfield 0:38 Hello World. My name is Larry Garfield, also Crell, CRELL, on various social medias. I work at platform.sh in developer relations. We're a continuous deployment cloud hosting company. I've been writing PHP for 21 years and been a active gadfly and nudge for at least 15 of those. Derick Rethans 1:01 In the last couple of months, we have seen quite a lot of smaller RFCs about all kinds of little features here and there, to do with making the object oriented model of PHP a little bit better. I reckon this is also the nudge behind you writing a slightly longer blog post titled "Improving PHP object ergonomics". Larry Garfield 1:26 If by slightly longer you mean 14 pages? Yes. Derick Rethans 1:29 Yes, exactly. Yeah, it took me a while to read through. What made you write this document? Larry Garfield 1:34 As you said, there's been a lot of discussion around improving PHP's general user experience of working with objects in PHP. Where there's definitely room for improvement, no question. And I found a lot of these to be useful in their own right, but also very narrow and narrow in ways that solve the immediate problem but could get in the way of solving larger problems later on down the line. So I went into this with an attitude of: Okay, we can kind of piecemeal and attack certain parts of the problem space. Or we can take a step back and look at the big picture and say: Alright, here's all the pain points we have. What can we do that would solve not just this one pain point. But let us solve multiple pain points with a single change? Or these two changes together solve this other pain point as well. Or, you know, how can we do this in a way that is not going to interfere with later development that we've talked about. We know we want to do, but isn't been done yet. So how do we not paint ourselves into a corner by thinking too narrow? Derick Rethans 2:41 It's a curious thing, because a more narrow RFC is likely easier to get accepted, because it doesn't pull in a whole set of other problems as well. But of course, as you say, if the whole idea hasn't been thought through, then some of these things might not actually end up being beneficial. Because it can be combined with some other things to directly address the problems that we're trying to solve, right? Larry Garfield 3:07 Yeah, it comes down to what are the smallest changes we can make that taken together have the largest impact. That kind of broad picture thinking is something that is hard to do in PHP, just given the way it's structured. So I took a stab at that. Derick Rethans 3:21 What are the main problems that we should address? Larry GarfTruncated by Planet PHP, read more at the original (another 29525 bytes) Full Article
world news Xdebug Update: April 2020 - Derick Rethans By derickrethans.nl Published On :: Tue, 05 May 2020 08:58:00 +0000 Xdebug Update: April 2020 London, UK Tuesday, May 5th 2020, 09:58 BST Another monthly update where I explain what happened with Xdebug development in this past month. These will be published on the first Tuesday after the 5th of each month. Patreon supporters will get it earlier, on the first of each month. You can become a patron to support my work on Xdebug. If you are leading a team or company, then it is also possible to support Xdebug through a subscription. In March, I worked on Xdebug for about 60 hours, on the following things: Xdebug 2.9.5 The 2.9.5 release addresses a few bugs. One of them was a follow on from the issue where Xdebug would crash when another extension would run code in PHP's Request Init stage, but only on a second or later request in the same PHP process. As this is not something that's easy to catch with PHP's testing framework that Xdebug uses, this issue slipped through the cracks. The release fixes another bug, where throwing an exception from within a destructor would crash Xdebug. The fix for this was merely making sure that PHP's internal state is still available: - if (!(ZEND_CALL_INFO(EG(current_execute_data)) & ZEND_CALL_HAS_SYMBOL_TABLE)) { + if (EG(current_execute_data) && !(ZEND_CALL_INFO(EG(current_execute_data)) & ZEND_CALL_HAS_SYMBOL_TABLE)) { Beyond these two crashes, the release also addressed an issue where Xdebug did not always correct catch where executable code could exist for code coverage analyses. Over the last decade, PHP has been getting more and more optimised, with more internal engine instructions. Unfortunately that sometimes means that these are not hooked into by Xdebug, to see whether there could be a line of code that would make use of these opcodes. As this is often very dependent on how developers lay out their code, these issues are often found by them. Luckily, these issues are trivially fixed, as long as I have access to just the file containing that code. I then analyse it with vld to see which opcode (PHP engine instruction) I have missed. Xdebug 3 and Xdebug Cloud Most of my time was spend on getting Xdebug Cloud to a state where I can invite select developers to alpha test it. This includes allowing for Xdebug to connect to Xdebug Cloud. There is currently a branch available, but it still lacks the addition of SSL encryption, which is a requirement for allowing safe transport of debug information. The communications between an IDE and Xdebug through Xdebug Cloud is working, with a few things related to detecting disconnections more reliably still outstanding. As Xdebug Cloud needs integration in debugging clients (such as PhpStorm, and other IDEs), I have been extending the dbgpProxy tool to act as intermediate link between existing IDEs and Xdebug Cloud without IDEs having to change anything. This work is still ongoing, and is not documented yet, but I hope to finish that in the next week. Once that and SSL support in the Xdebug to Xdebug Cloud communication has been finalized, I will reach out to subscribers of the Xdebug Cloud newsletter to see if anybody is interested in trying it out. Business Supporter Scheme and Funding In April, no new supporters signed up. If you, or your company, would also like to support Xdebug, head over to the support page! Besides business support, I also maintain a Patreon page and a profile on GitHub sponsors. Podcast The PHP Internals News continues its second season. Episodes in the last month included a discussion on PHP 8's JIT engine and increasing complexity, Truncated by Planet PHP, read more at the original (another 720 bytes) Full Article
world news Interview with Derick Alangi - Voices of the ElePHPant By feedproxy.google.com Published On :: Tue, 05 May 2020 11:30:22 +0000 @xSavitar Show Notes Derick Alangi on Medium Derick Alangi on LinkedIn Audio This episode is sponsored by Using the WordPress REST API The post Interview with Derick Alangi appeared first on Voices of the ElePHPant. Full Article
world news PHP Internals News: Episode 52: Floats and Locales - Derick Rethans By derickrethans.nl Published On :: Thu, 07 May 2020 08:15:00 +0000 PHP Internals News: Episode 52: Floats and Locales London, UK Thursday, May 7th 2020, 09:15 BST In this episode of "PHP Internals News" I talk with George Banyard (Website, Twitter, GitHub, GitLab) about an RFC that he has proposed together with Máté Kocsis (Twitter, GitHub, LinkedIn) to make PHP's float to string logic no longer use locales. The RSS feed for this podcast is https://derickrethans.nl/feed-phpinternalsnews.xml, you can download this episode's MP3 file, and it's available on Spotify and iTunes. There is a dedicated website: https://phpinternals.news Transcript Derick Rethans 0:16 Hi, I'm Derick. And this is PHP internals news, a weekly podcast dedicated to demystifying the development of the PHP language. This is Episode 52. Today I'm talking with George Banyard about an RFC that he's made together with Mate Kocsis. This RFC is titled locale independent floats to string. Hello, George, would you please introduce yourself? George Banyard 0:39 Hello, I'm George Peter Banyard. I'm a student at Imperial College and I work on PHP in my free time. Derick Rethans 0:47 All right, so we're talking about local independent floats. What is the problem here? George Banyard 0:52 Currently when you do a float to string conversion, so all casting or displaying a float, the conversion will depend on like the current local. So instead of always using like the decimal dot separator. For example, if you have like a German or the French locale enabled, it will use like a comma to separate like the decimals. Derick Rethans 1:14 Okay, I can understand that that could be a bit confusing. What are these locales exactly? George Banyard 1:20 So locales, which are more or less C locales, which PHP exposes to user land is a way how to change a bunch of rules on how string and like stuff gets displayed on the C level. One of the issues with it is that like it's global. For example, if you use like a thread safe API, if you use the thread safe PHP version, then set_locale() is not thread safe, so we'll just like impact other threads where you're using it. Derick Rethans 1:50 So a locale is a set of rules to format specific things with floating point numbers being one of them in which situations does the locale influence the display a floating point numbers in every situation in PHP or only in some? George Banyard 2:06 Yes, it only impacts like certain aspects, which is quite surprising. So a string cast will affect it the strval() function, vardump(), and debug_zval_dump() will all affect the decimal locator and also printf() with the percentage lowercase F, but that's expected because it's locale aware compared to the capital F modifier. Derick Rethans 2:32 But it doesn't, for example, have the same problem in the serialised function or say var_export(). George Banyard 2:37 Yeah, and json_encode() also doesn't do that. PDO has special code which handles also this so that like all the PDO drivers get like a constant treat like float string, because that could like impact on the databases. Derick Rethans 2:53 How is it a problem that with some locales enabled and then uses a comma instead of the decimal point. How can this cause bugs and PHP applications? Truncated by Planet PHP, read more at the original (another 17468 bytes) Full Article
world news Jonah 1:6 By gracecommentary.com Published On :: 2012-12-06T20:30:42Z In Jonah 1:6, the sailors try to save their lives by throwing their cargo overboard. But what is Jonah doing? He is sleeping. He does not even pray. Full Article Bible Commentary
world news Jonah 1:7 By gracecommentary.com Published On :: 2012-12-07T20:30:09Z In this commentary on Jonah 1:7, we see that the sailors cast lots to see who is responsible for the storm, and the lot falls on Jonah. We look at some of the theology and background to the casting of lots. Full Article Bible Commentary
world news Jonah 1:8 By gracecommentary.com Published On :: 2012-12-10T20:10:57Z In this commentary on Jonah 1:8, we see the sailors ask Jonah several questions. These question are to help them figure out why God sent the storm. The sailors are desperate for answers because they are desperate to save their lives. Full Article Bible Commentary
world news Jonah 1:9 By gracecommentary.com Published On :: 2013-01-11T22:09:58Z In Jonah 1:9, Jonah explains to the sailors that he worships Yahweh, who made the sea and dry land. But what really does Jonah tell the sailors? Is his portrayal of God accurate? How will the sailors understand what Jonah say? Full Article Bible Commentary
world news Jonah 1:10-11 By gracecommentary.com Published On :: 2013-01-14T00:40:52Z In Jonah 1:10-11, the sailors are so afraid of what Jonah told them about God, that they ask Jonah what they can do to appease God and rescue their lives. Jonah has so injured the honor of God, that the sailors were certain God was out for revenge upon Jonah, and they were unlucky enough to be around him when God struck. Full Article Bible Commentary
world news Jonah 1:12 By gracecommentary.com Published On :: 2013-01-14T18:00:33Z Jonah teaches the sailors some horrible theology about God in Jonah 1:12. He basically tells them that God accepts human sacrifice. Why would Jonah say this? What is Jonah thinking? It is not even correct theology! It seems that Jonah wants to die. Full Article Bible Commentary