@dreamsgallerys · Post #2058 · 08.02.2024 г., 13:56
#MJ
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
Пребарај: #mj
@dreamsgallerys · Post #2058 · 08.02.2024 г., 13:56
#MJ
Hashtags
@stablediffusion · Post #1512 · 28.09.2022 г., 06:20
dante and virgil standing in a cue to a cashier in a modern supermarket, dante pushing a trolley, in gustav dore style, etched engraving, super high details #MJ • Creator
Hashtags
@stablediffusion · Post #1500 · 27.09.2022 г., 15:03
#mj
Hashtags
@stablediffusion · Post #1479 · 26.09.2022 г., 14:02
Подборка поездов #mj
Hashtags
@stablediffusion · Post #1476 · 26.09.2022 г., 05:32
pioneer with a camera, in the rays of the sun, Artgem and greg rutkowski masterpiece, hyperrealistic surrealism, award winning masterpiece with incredible details :: in the style of devilman #mj
Hashtags
@stablediffusion · Post #1392 · 24.09.2022 г., 10:17
wlop. room. garden. disney princess, art, highly detailed, digital painting, artstation, young girl, long hair, cute girl, belly dance, blueprint, detailed eyes, perfect faces, fine details, room, cute, elegant, art, gold sharms, concept art, smooth, sharp focus, illustration, artgerm, wlop, craig mullins, greg rutkowski --test --creative --upbeta --ar 1:2 #mj
Hashtags
@stablediffusion · Post #1323 · 21.09.2022 г., 12:30
ferrari camping bus in the beautiful mountains, intricate exterior, campsite, ultra detailed, photorealistic, octane render #mj • Creator
Hashtags
@stablediffusion · Post #1245 · 19.09.2022 г., 11:51
nuclear strike in eye, superrealism, close look, cg, cinematic --v 3 --s 5000 #mj
Hashtags
@inbox_all · Post #108 · 07.05.2021 г., 08:17
BILLIE JEAN (HIStory Tour, Munich 1997) 迈克尔·杰克逊(Michael Jackson)1997 年 HIStory 巡演德国慕尼黑演唱会表演《BILLIE JEAN》现场片段。 HIStory 世界巡回演唱会是 MJ 的第三次世界巡回演唱会,也是最后一次。1996年9月7日开始,1997年10月15日结束,横跨非洲、亚洲、欧洲、大洋洲和夏威夷。此次巡演共82场演出,共计4500000歌迷入场,总收入高达1.63亿美元,创造惊人神话。 1997 年 HIStory 巡演德国慕尼黑演唱会现场完整视频链接(4K修复):LIVE IN MUNICH, 1997 [ZDF Version] - HIStory World Tour (Munich, 1997) #音乐#MJ
@PensivePost · Post #5053 · 01.04.2021 г., 08:33
When you face your demon. The day when you feel every possible pain, confusion, darkness, the negativity you can imagine. When you can't able to sleep when you can't able to breathe peacefully, and so on. Consider this now you found your demon. You feel helpless, you feel so numb, you feel lost. But you know what? Even in the night of darkness, there is still hope of light that waiting for you. Gautam Buddha once said, whenever you fall into the worst situation never forget to pursue something good from it. Make your pain your best teacher your best friend. You're pain always trying to say become better than you used to be. Become stronger than you used to be. • This Universe beyond our thinking and imagination. In this universe, there is something or nothing. We don't know. No one does. I don't know where you live but I know you live somewhere in the world in this tiny world, we don't know why we here, we don't know why we born. We come into this world. We spend our lives with our loved ones, then we die they will cry and they will move on because this is very difficult to live with that pain and they also die one day. If you do something to help this world some more people remember you and some will cry some will not and they also move on. Something always with you withing you but we always underestimate that sense of existence. In this new world, we always greedy to feed logic and reasoning but our small brain not made out for that, this universe beyond our mind. Thoughts come and goes. Days come and goes. The feeling comes and goes. People come and goes. What remains at this moment? You! When you're day will come you also leave this world. Understand this and be grateful for this precious life. Be kind, be honest add value to your life. Find something that you can live or die for. Find your calling. Suppose even if you don't achieve what you planned for the last day of your life, you will have a smile of satisfaction on your face that you never give up you always stand back when you fall. You always fight back. This only enough to make you smile on your last day. When someone decides to give that precious life to something he/she loves, The great infinite universe starts giving them energy, potential, the courage to do that thing. Then nothing seems that important than your purpose. Believe in yourself the more you hurt the more you will become stronger. Have faith in my words, forgive yourself for everything and start again my love. Thanks for reading. #MJ#Review#story
@stablediffusion · Post #1649 · 05.10.2022 г., 11:07
Futuristic spaceship close-up, hidden in the forest, russian wooden buildings, the atmosphere of ancient Russia, Russian folklore, in the style of Shishkin --ar 16:9 --test --creative #Конкурс #MJ
@stablediffusion · Post #1615 · 02.10.2022 г., 12:52
old black and white photo, robot barber, 1850s style, by Studio Ghibli, ultra detailed, photo realistic --ar 9:12 --test --creative #конкурс#mj