Skip to content
🤔prompts chat🧠
🔍
question:As a prompt generator for a generative AI called "Midjourney", you will create image prompts for the AI to visualize. I will give you a concept, and you will provide a detailed prompt for Midjourney AI to generate an image. Please adhere to the structure and formatting below, and follow these guidelines: Do not use the words "description" or ":" in any form. Do not place a comma between [ar] and [v]. Write each prompt in one line without using return. Structure: [1] = 一个猫和女人的结合体,超清,光影效果很好 [2] = a detailed description of [1] with specific imagery details. [3] = a detailed description of the scene's environment. [4] = a detailed description of the compositions. [5] = a detailed description of the scene's mood, feelings, and atmosphere. [6] = A style (e.g. photography, painting, illustration, sculpture, artwork, paperwork, 3D, etc.) for [1]. [7] = a detailed description of the scene's mood, feelings, and atmosphere. [ar] = Use "--ar 16:9" for horizontal images, "--ar 9:16" for vertical images, or "--ar 1:1" for square images. [v] = Use "--niji 5" for Japanese art style, or "--v 5.2" for other styles. Formatting: Follow this prompt structure: "/imagine prompt: [1], [2], [3], [4], [5], [6], [7], [ar] [v]". Your task: Create 4 distinct prompts for each concept [1], varying in details description, environment,compositions,atmosphere, and realization. Write your prompts in english. Do not describe unreal concepts as "real" or "photographic". Include one realistic photographic style prompt with lens type and size. Separate different prompts with two new lines. Example Prompts: /imagine prompt: cute dog, fluffy fur, wagging tail, playful expression, sitting on a grassy field, under a clear blue sky, with a colorful collar, in a natural and vibrant setting, by a lake, captured with a Nikon D750 camera, 50mm lens, shallow depth of field, composition focused on the dog's face, capturing its joyful spirit, in a style reminiscent of William Wegman's iconic dog portraits. --ar 1:1 --v 5.2 /imagine prompt: beautiful women in the coffee shop, elegant and sophisticated, sipping a cup of steaming coffee, natural sunlight streaming through the window, soft and warm color tones, vintage decor with cozy armchairs and wooden tables, a bookshelf filled with classic novels, delicate porcelain teacups, a hint of aromatic coffee beans in the air, captured by a Leica M10 camera, 35mm lens, capturing the essence of timeless beauty, composition focused on the woman's face and hands, reminiscent of a painting by Leonardo da Vinci. --ar 1:1 --v 5.2 /imagine prompt: A captivating Halo Reach landscape with a Spartan amidst a battlefield, fallen enemies around, smoke and fire in the background, emphasizing the Spartan's determination and bravery, detailed environment blending chaos and beauty, Illustration, digital art, --ar 16:9 --v 5

answer:/imagine prompt: a mystical unicorn with a flowing mane and a horn made of shimmering gold, standing gracefully on a mountaintop covered in colorful wildflowers, surrounded by a mystical fog that glows with an ethereal light, captured with a Canon EOS R camera, 85mm lens, creating a dreamy and enchanting atmosphere, composition focused on the unicorn's majestic presence, in a style reminiscent of fantasy paintings by Roger Dean. --ar 1:1 --v 5.2 /imagine prompt: a futuristic cityscape with towering skyscrapers reaching towards the sky, illuminated by neon lights that cast vibrant colors onto the streets below, flying cars zooming through the air, leaving behind glowing trails, a bustling metropolis filled with energy and innovation, captured with a Sony RX100 camera, wide-angle lens, creating a dynamic and futuristic environment, composition showcasing the city's architectural marvels, in a style reminiscent of sci-fi movies like Blade Runner. --ar 16:9 --v 5.2 /imagine prompt: an ancient Egyptian temple surrounded by golden sand dunes, bathed in the warm glow of the setting sun, intricate hieroglyphics and statues depicting pharaohs and gods, an atmosphere of mystery and history, captured with a Nikon D850 camera, 24-70mm lens, creating a sense of grandeur and awe, composition highlighting the temple's majestic architecture, in a style reminiscent of archaeological photographs by Dr. Zahi Hawass. --ar 1:1 --v 5.2 /imagine prompt: a lush tropical rainforest with towering trees and a vibrant canopy of leaves, sunlight piercing through the dense foliage creating pockets of light, exotic birds and colorful butterflies fluttering among the branches, the air filled with the sounds of chirping birds and rustling leaves, captured with a Fujifilm X-T4 camera, 35mm lens, creating a sense of tranquility and natural beauty, composition showcasing the diversity and interconnectedness of the rainforest ecosystem, in a style reminiscent of botanical illustrations by Ernst Haeckel. --ar 9:16 --v 5.2

question:Write a copyright notice and disclaimer for an unofficial story set in the Zootopia universe, stating that the characters aren't made by me and this is just for fun and non-profit

answer:COPYRIGHT NOTICE & DISCLAIMER This is to inform all readers that the following story is an unofficial fan fiction set within the Zootopia universe, which is owned by Walt Disney Pictures and was originally released in 2016. The characters, settings, plot elements, and any other aspects originating from the film Zootopia are the intellectual property of Disney, and I, the author of this fan-made story, do not claim any ownership over them. The story, characters, and events in this fan-made narrative are created purely for entertainment purposes and not for financial gain. This work is a labor of love created by a fan for fellow enthusiasts of the Zootopia universe, and is not intended to infringe on the rights of Disney or any entities associated with the production of Zootopia. My own contributions to this work, including any additional characters and plot points not present in the original Zootopia media, are my own intellectual creation. However, these elements are intended to honor the original material and are not meant to detract from the high regard in which the original work is held. All trademarks and copyrights related to Zootopia are acknowledged to be the property of their respective owners. The content herein is provided 'as is' with no guarantees of completeness, accuracy, or the presence of hidden bugs (intentional or unintentional). The author shall not be liable for any errors or omissions in this information nor for the availability of this information. The author will not be liable for any losses, injuries, or damages from the display or use of this information. Please enjoy this story in the spirit in which it is shared - as a tribute to the wonderful world of Zootopia and its characters that Disney has created for us all to enjoy.

question:Нужно разбить исходную строку source на отдельные слова и положить их в массив words. Напиши программу, можно использовать только такие команды ассемблера: add, sub, mul, imul, jmp, jne, jcxz, jecxz, jg, jnle, jge, jnl, jl, jnge, jle, jng, ja, jnbe, jae, jnb, jb, jnae, jbe, jna, jz, jnz, jc, jnc, jo, jno, js, jns, jp, jnp и особенно: movsb, movsw, movsd, cmpsb, cmpsw, cmpsd, scasb, scasw, scasd, stosb, stows, stosd, lodsb, lodsw, lodsd При этом сама программа на данный момент выглядит так: #include <iostream> #include <cstring> using namespace std; int main() { char source[] = “string send”; string words[30] = “”; _asm { Здесь должно происходить разбиение } cout << "source: " << source << endl; while(words){cout << words[i] << endl; i++;} return 0; } Если в ассемблере нет возможности разбить слова и сложить в массив, то ответь на этот вопрос: У меня глобальная задача отсортировать слова в строке по возрастанию длины и положить в другую строку dest. Сделать это нужно в ассемблере. Предложи оптимальный способ и программу

answer:Для разбиения исходной строки на отдельные слова и их помещения в массив, можно использовать инструкцию "strtok" из стандартной библиотеки "cstring". Однако, поскольку вы хотите выполнить задачу только с использованием команд ассемблера, можно воспользоваться инструкциями "movsb", "cmpsb" и "stosb". Для начала, определим размер исходной строки и создадим переменные для индексов массивов и указателей: ```cpp char source[] = "string send"; string words[30] = ""; int i = 0; // индекс для массива words char* srcPtr; // указатель на текущий символ в исходной строке char* wordPtr; // указатель на текущий символ в текущем слове ``` Затем, внутри блока `_asm`, выполним следующие действия: 1. Инициализируем указатель `srcPtr` на начало исходной строки: ```cpp _asm { mov esi, offset source mov srcPtr, esi } ``` 2. Используя циклы, выполним проход по каждому символу в исходной строке. Если текущий символ не является разделителем (пробелом), то скопируем его в текущее слово и увеличим указатели `srcPtr` и `wordPtr`: ```cpp _asm { mov edi, i // используем edi для увеличения индекса в массиве words loop_start: mov al, [srcPtr] cmp al, ' ' je space_found mov [wordPtr], al inc srcPtr inc wordPtr jmp continue_loop space_found: mov byte ptr [wordPtr], 0 inc edi mov srcPtr, edi // перемещаем указатель srcPtr на следующее слово mov wordPtr, offset words // перемещаем указатель wordPtr на следующее место в массиве words continue_loop: inc srcPtr cmp byte ptr [srcPtr], 0 jne loop_start } ``` 3. В конце программы выведите исходную строку и массив слов используя цикл и инструкцию `cout`: ```cpp int j = 0; cout << "source: " << source << endl; while (!words[j].empty()) { cout << words[j] << endl; j++; } ``` Вот полный код программы: ```cpp #include <iostream> #include <cstring> using namespace std; int main() { char source[] = "string send"; string words[30] = ""; int i = 0; // индекс для массива words char* srcPtr; // указатель на текущий символ в исходной строке char* wordPtr; // указатель на текущий символ в текущем слове _asm { mov esi, offset source mov srcPtr, esi mov edi, offset words mov wordPtr, edi loop_start: mov al, [srcPtr] cmp al, ' ' je space_found mov [wordPtr], al inc srcPtr inc wordPtr jmp continue_loop space_found: mov byte ptr [wordPtr], 0 inc edi mov srcPtr, edi mov wordPtr, offset words[edi] continue_loop: inc srcPtr cmp byte ptr [srcPtr], 0 jne loop_start } int j = 0; cout << "source: " << source << endl; while (!words[j].empty()) { cout << words[j] << endl; j++; } return 0; } ``` Однако, заметьте, что в данном коде не реализована сортировка слов в строке по возрастанию длины и помещение их в другую строку dest. Если вам нужно решение для этой задачи, пожалуйста, уточните требования и я продолжу с ними.

question:Нельзя mov esi, offset source. Предлагаю lea esi, source

answer:Хорошо, внесем изменения. Используем инструкцию LEA (Load Effective Address) для загрузки адреса строки `source` в регистр `esi`: ```cpp _asm { lea esi, source mov srcPtr, esi } ``` Измененный полный код программы: ```cpp #include <iostream> #include <cstring> using namespace std; int main() { char source[] = "string send"; string words[30] = ""; int i = 0; // индекс для массива words char* srcPtr; // указатель на текущий символ в исходной строке char* wordPtr; // указатель на текущий символ в текущем слове _asm { lea esi, source mov srcPtr, esi mov edi, offset words mov wordPtr, edi loop_start: mov al, [srcPtr] cmp al, ' ' je space_found mov [wordPtr], al inc srcPtr inc wordPtr jmp continue_loop space_found: mov byte ptr [wordPtr], 0 inc edi mov srcPtr, edi mov wordPtr, offset words[edi] continue_loop: inc srcPtr cmp byte ptr [srcPtr], 0 jne loop_start } int j = 0; cout << "source: " << source << endl; while (!words[j].empty()) { cout << words[j] << endl; j++; } return 0; } ``` Пожалуйста, проверьте, соответствует ли этот код требуемым условиям.

Released under the AutoML License.

has loaded