@PensivePost · Post #5371 · 23.08.2021 г., 18:31
#yourreview#review Could relate to the core! 'Filled with people deaf,dumb and blind' Simple and impactful and apt
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #239 · 3 мај
Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML. Из плюсов такого подхода стоит отметить вот что: 🔸 готовый, повсеместно используемый и поддерживаемый формат 🔸 простой и понятный файл, удобочитаемый для человека 🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек Но есть и минусы 🔹 затраты времени при записи файла (кодирование данных в нужный формат строки) 🔹 затраты времени при чтении файла (декодирование данных в Python объекты) 🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...) 🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда) 🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи. Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳. 🔸 очень быстрая запись 🔸 чтение значительно быстрей чем JSON, YAML итд 🔸 размер файла значительно меньше, так как нет разметки 🔸 можно записывать данные по мере поступления не загружая всё в память 🔸 можно извлечь любую часть данных независимо Из минусов 🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата) 🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию. 🔹 не так-то просто создать такой файл без специальной библиотеки В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии. (Это не означает что нельзя записать данные разного типа, просто это будет не так удобно) Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого f15d cd29 a564 4578 ... 09e2 9bc4 a696 1253 ... 84e9 4de1 3b23 c24a ... 2534 5161 28e0 709d ... ... Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла. К чему это я? Читайте в следующем посте... #tricks#basic
Пребарај: #yourreview
@PensivePost · Post #5371 · 23.08.2021 г., 18:31
#yourreview#review Could relate to the core! 'Filled with people deaf,dumb and blind' Simple and impactful and apt
Hashtags
@PensivePost · Post #5105 · 15.04.2021 г., 11:34
#review #yourreview #thoughts Indeed the water rises, indeed the rivers flow, Beneath them mighty waves, Pondering and degrading the earth that knits their path. I see a gash, like a mighty wind, A tide too unbreakable by the screams of fear. And as it all comes to a still, The earth smelling fresh again, The frogs croaking, The crickets tuning a melody. And like the old grandma's hut, A smoke rises on the moist tatched kitchen, A meal, God has provided, The land will bear fruit, The children will have something, Cause the owner of the land, Has commanded it to yield. I see the villagers smile, A tune and a libation, For a cry is heard, A perfect gift of a son, I hear the drummers play the tom toms, I feel the harmony of the ululation, Tomorrow the women will gather together, To welcome and teach the young mother, How to love and to hold her little one. It is beautiful, the heart cannot contempt. Surely, tomorrow, the sun will rise again and we will smile. We will allow every rhythm and melodies made by life to flow to our hearts through the ears, We will love, we will rejoice and we will call it a blessed land
Hashtags
@PensivePost · Post #5170 · 06.05.2021 г., 06:10
I knew a girl who liked to draw, Pictures for only her eyes. She was more artistic late at night. Her drawings were different, No paper, No pen. But she needed a bandage, And wore long sleeves twenty-four/seven. We stood by the river, Under the stars, When she rolled up her sleeves And showed me her scars. She felt embarrassed and stared at her shoe. Then I rolled up my sleeves and whispered, "I draw too." #review#yourreview#noob
Hashtags
@PensivePost · Post #5007 · 18.03.2021 г., 09:30
My tears,Your tears. Our face grew hot as the fire. This mood can strike . Erupting in loud shouts, Like an extra. Wondering why we're here. Our mouth leaks with affection. My words,Your intention. Let us know our feelings. Electricity runs through our veins Shadows seem to follow. Snacking on sweet and sour lollies Nobody understands Defeated like deflated balloons Cowering in the corner at night. Our pains , we've future buzzing. I find a smile, It appears on your face. But it only widens When our heart flops together. #review #love #yourreview
Hashtags
@PensivePost · Post #5704 · 03.05.2022 г., 18:13
#iam#Rocky#yourreview#review Love the way you are Hey buddy, yes you, one who is reading this, you may be alone, not having many friends unlike others, not having enough money to live up to your dreams, may be to even fulfil your small and cutest wishes, you might be tied up all day with your course books, stressful office work, those computers and the hectic tasks, you might be feeling like running away from all your problems and just forget about all your worries, those stressful tasks and from toxic people and enjoy the beauty of the wonderful life. Buddy, you are not alone, me, you, all the top CEO’S, the world politicians, world class celebrities, sportsmen and many real life heroes were been in the same stressful situations, Just stay calm, just feel the beauty of nature, love yourself, love the way you are, the way you are living your life. Have some inner peace, don’t be very harsh on yourselves, just believe in your dreams ,focus on your goals, your passion and nothing else. Don’t give a f* about all these f* things, the girl who rejected you, the friend who betrayed you, the relative who keeps judging you, the society which is putting you shame all the time. Just Focus on your dreams, which is going to bring a grand new reality to new. Remember, no matter where you are and what you are, how worse the situation is, always have that smile on your face, which is going to make all the difference. Bye Bye. (Rocky)
Hashtags
@PensivePost · Post #4841 · 30.01.2021 г., 06:20
#review#yourreview#sm#i’mABrokenMan I’m a broken man don’t know who to trust. Being a broken man allows you not to trust. I’m a broken man with lots of blood, bleeding from the heart like a river. Being a broken man helps people raft on the red stream And they don’t give a damn, whether you die in shiver The moon is the only friend who acknowledges my tears. Stars, like a bodyguard help me fight out my fears. But sun, sometimes behaves as a foe for his rays of light, focuses me to reach my actual height. Nevertheless, I’m a broken man. Broken down piece by piece by the sword, of the goddess of beauty sharpened up with innocence, cunning ferocity. Never even cared, if I’m happy or sad, wouldn’t even matter if I’m alive or dead. I’m a broken man, who knows how to fix the glasses. But, being a broken man, There comes a why. Why even bother , rebuilding it. Everything broken down into bits and pieces. And so am I.
Hashtags