@FFC_official_channel · Post #344 · 01.06.2025 г., 12:28
Second instalment of the livestream as preparations are underway for ‘Madleen’ to set sail from Catania to #BreakTheSiege of Gaza
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #241 · 5 мај
Можно ли в Python создавать бинарные файлы? Конечно можно. Для этого в Python есть следующие инструменты: ▫️ тип данных bytes и bytearray ▫️ открытие файла в режиме wb (write binary) или rb (read binary) ▫️ модуль struct Про модуль struct поговорим в первую очередь. Файл в формате JSON или Yaml внутри себя содержит разметку данных. Всегда можно определить где список начался а где закончился. Где записана строка а где словарь. То есть формат записи данных содержит в себе элементы разметки данных. В binary-файле данные не имеют визуальной разметки. Это просто байты, записанные один за другим. Правила записи и чтения находятся вне файла. Модуль struct как раз и помогает с организацией данных в таком файле с помощью определения форматов записи для разных частей файла. Модуль struct преобразует Python-объекты в массив байт, готовый к записи в файл и имеющий определённый вид. Для этого всегда следует указывать формат преобразования (или, как оно здесь называется - запаковки). Формат нужен для того, чтобы выделить достаточное количество байт для записи конкретного типа объекта. В последствии с помощью того же формата будет производиться чтение. При этом следует помнить что мы говорим о типах языка С а не Python. Именно формат определяет, что записано в конкретном месте файла, число, строка или что-то еще. Вот какие токены формата у нас есть. Помимо этого, первым символом можно указать порядок байтов. На разных системах одни и те же типы данных могут записываться по-разному, поэтому желательно указать конкретный способ из доступных. Если этого не сделать, то используется символ '@', то есть нативный для текущей системы. В строке формата мы пишем в каком порядке и какие типы собираемся преобразовать в байты. Запакуем в байты простое число, токен "i". >>> import struct >>> struct.pack('=i', 10) b'\n\x00\x00\x00' Теперь несколько float, при этом нужно передавать элементы не массивом а последовательностью аргументов. >>> struct.pack('=fff', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Вместо нескольких токенов можно просто указать нужное количество элементов перед одним токеном, результат будет тот же. >>> struct.pack('=3f', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Теперь запакуем разные типы >>> data = struct.pack('=fiQ', 1.0, 4, 100500) я запаковал типы float, int и unsigned long long (очень большой int, на 8 байт) b'\x00\x00\x80?\x04\x00\x00...' Распаковка происходит аналогично, но нужно указать тот же формат, который использовался при запаковке. Результат возвращается всегда в виде кортежа. >>> struct.unpack('=fiQ', data) (1.0, 4, 100500) Как видите, ничего страшного! #lib#basic
Пребарај: #breakthesiege
@FFC_official_channel · Post #344 · 01.06.2025 г., 12:28
Second instalment of the livestream as preparations are underway for ‘Madleen’ to set sail from Catania to #BreakTheSiege of Gaza
Hashtags
@FFC_official_channel · Post #12 · 18.04.2024 г., 07:08
We're challenging Israel's illegal blockade of Gaza and delivering tonnes of critical aid to Palestinians in an emergency mission. Our destination is the conscience of humanity. Once we leave port, we will be posting regular updates on this channel and broadcasting live from on board the ships. We need you to get on board - on land. We need millions of people around the world, who have come out on the streets in support of Palestine, to help keep the participants safe and ensure the success of the mission. Together we can #BreakTheSiege Please share this channel and help us get the eyes of the world on this mission. When governments fail, we sail!
Hashtags
@FFC_official_channel · Post #3 · 15.04.2024 г., 02:57
Retired US Army Colonel & former US diplomat Ann Wright introduces our upcoming Freedom Flotilla emergency mission to #breakthesiege and #endtheblockade of Gaza. Ann will be a participant on the civilian flotilla sailing soon to Gaza.
Hashtags
@FFC_official_channel · Post #373 · 03.06.2025 г., 03:11
UN EXPERTS DEMAND SAFE PASSAGE FOR ‘MADLEEN’ JOIN THEM Today, UN experts called for safe passage for the Madleen — our civilian ship carrying vital aid and international volunteers to Gaza. Now we need your voice. Let’s turn international law into action. 📣 Take one minute: go to bit.ly/IsraelOnNotice and send a letter to the Israeli government, UN officials, and diplomatic missions demanding that Israel abide by international law and refrain from attacking, sabotaging or otherwise interfering with the Madleen and her mission. Together, we can open a people’s sea corridor to Gaza. #SafePassage#BreakTheSiege#FreedomFlotilla
@EPInforma · Post #35508 · 13.06.2025 г., 14:40
Mientras el mundo se moviliza por Palestina y tratar de desbloquear Gaza, EE.UU. aprovecha de atacar a Irán con impunidad. Así negocia EE.UU. Qué alivio saber que Donald Trump sigue comprometido con "la diplomacia"... a su manera. No hay mejor Acuerdo de Paz que advertirle a un país entero que será reducido a cenizas. #iran #gaza #gazaunderattack #breakthesiege #usdiplomacy #diplomacy
@Syndiegram · Post #5011 · 22.09.2025 г., 19:10
Drones are now regularly flying over the flotilla. As Yasemin Acar, Steering Committee member of the Global Sumud Flotilla, explains: this surveillance is meant to intimidate and exhaust us. But it only underscores why our mission is urgent. For Palestinians, drones are not just cameras. They are weapons of war, used daily to surveil, intimidate, and kill. The same technology that terrorizes Gaza is now policing the Mediterranean, turning the sea into a graveyard. We will not turn back. We continue to Gaza because this is about justice, freedom, and life. #BreakTheSiege #FreePalestine #SailToGaza #GlobalMovementToGaza #GlobalSumudFlotilla
@FFC_official_channel · Post #649 · 21.07.2025 г., 08:24
'Handala’ left Italy a few hours ago and is almost in international waters. This action is for the children of Gaza. The boat is carrying as much baby formula, food, and medicine as possible, but its aim is to end the need for aid by breaking Israel’s illegal siege. Keep your eyes on our team, and demand their governments uphold international law by ensuring safe passage. #ForTheChildrenOfGaza #AllEyesOnDeck #BreaktheSiege #FreePalestine
@Syndiegram · Post #5037 · 01.10.2025 г., 00:28
As we enter the high-risk zone, follow our mission by tracking the flotilla live on our website. #BreakTheSiege#FreePalestine#SailToGaza #AllEyesOnGaza #GlobalMovementToGaza#GlobalSumudFlotilla
@FFC_official_channel · Post #586 · 13.07.2025 г., 02:16
The Freedom Flotilla Coalition is setting sail again. Join us in Siracusa, Italy — or online — on July 13 at 10:30 CEST (GMT+2) as we launch ‘Handala’ on its journey toward Gaza. Just weeks after Israeli forces illegally seized our boat ‘Madleen’ and abducted 12 unarmed civilians in international waters, we continue — with global solidarity — to challenge Israel’s illegal and deadly siege. This mission is for the children of Gaza. #FreedomFlotilla#WeWillSail#AllEyesOnDeck#BreakTheSiege#Handala
@FFC_official_channel · Post #665 · 22.07.2025 г., 12:43
LIVESTREAM FROM THE SEAS WITH THE FREEDOM FLOTILLA AND RASHIDA TLAIB. July 23 on Instagram and Telegram 10:00 AM (New York | EDT GMT-4) 5:00 PM (Palestine | EEST GMT+3) Join us for a powerful conversation between Congresswoman Rashida Tlaib and the U.S. citizens aboard ‘Handala’ as they sail to break Israel’s illegal siege on Gaza. Tune in to hear them discuss the moral responsibility of ordinary people when governments fail, the urgent need to change U.S. policy that enables Israel and their genocide of Palestinians, why they are sailing, what they are demanding, and how we can all stand with Gaza. #alleyesondeck#handala#forthechildrenofgaza#breakthesiege#endtheblockade
@FFC_official_channel · Post #531 · 11.06.2025 г., 12:13
Palestinians in Gaza are being starved, denied aid, genocided- and this is all on live stream and on our watch. A statement from Yasemin Acar, FFC volunteer on ‘Madleen’ who was kidnapped by IOF, forcibly taken to Israel and currently being held in detention is delivered by her brother J. Acar. This is the real story. #FreeGaza#BreakTheSiege #Madleen#EndTheGenocide
@FFC_official_channel · Post #708 · 26.07.2025 г., 12:44
Join us live on instagram as Francesca Albanese @francesca.albanese.unsr.opt talks with Emma Fourreau @emma.fourreau(French member of the European Parliament) and Gabrielle Cathala @gabrielle_cathala (member of the French Parliament) from the Handala as they discuss global government complicity in Israel’s war crimes. As the ‘Handala’ is nearly 100 nautical miles from the coast of Gaza, world governments should be doing all they can to ensure its safe passage. Today, July 26th at 16:30 EEST (Palestinian time) #BreakTheSiege#Handala#AllEyesOnDeck#Live#ForTheChildrenOfGaza