• Golang recurses and outputs its own source code


    Question: [2min let’s think for ourselves] Can a program P output its own source code after running? And the format shall be consistent (line feed, space, etc.)   reflection: The essence of this problem is a recursive problem. It is set that P generates G after running, that is, P – > G & & […]

  • [actual combat] animation core


    Lao Meng: animation system is the core function of any UI framework. It is also the top priority for developers to learn a UI framework. At the same time, it is also a difficult part to master. Next, we will unveil the veil of fluent animation layer by layer. The animation principle of any program […]

  • [Full Version] install cygwin on Windows system to build the swoole test environment


    preface Yesterday, it was installed locallySwooleWhen debugging the environment, I encountered several pits because my computer isWindowsSystem, so what is installed iscygwinHowever, the process was not smooth. There were problems in installing the terminal one after another, and the data pit was checked step by step. Finally, the installation was successful. In order to enable […]

  • Greeting card template – greeting card template to attract visitors


    Greeting cards are the best way to tell someone you care about or simply say “thank you”. With these easy to customize greeting card templates, you can easily insert your own images or choose from thousands of free images, icons, fonts, shapes and other graphic assets to create your own eye-catching greeting cards. Visual paradise […]

  • [unity] understanding of ThreadGroup and numthreads in computeshader


    Today, I encountered a magical phenomenon. I set up a100 * 100Then use computeshader to fill it with some colors, but the result has a black edge. The code is as follows: _renderTexture = new RenderTexture(100, 100, 24); _renderTexture.enableRandomWrite = true; _renderTexture.Create(); shader.Dispatch(0, _renderTexture.width / 8, _renderTexture.height / 8, 1); [numthreads(8,8,1)] void CSMain (uint3 id […]

  • How to use setconsole extattribute() function to control the color of output characters in C / C + +


    When we output characters on the command line, we think, if only we could control the color of the output characters.Now, to satisfy you, there’s a function that can help us realize this idea. ↓↓↓↓↓ SetConsoleTextAttribute(); As a rule, let’s look at the composition of this function. SetConsoleTextAttribute( _In_ HANDLE hConsoleOutput, _In_ WORD wAttributes ); […]

  • How to find the string separated by comma and comma in MySQL


    This article is included in the personal blogwww.landedaima.com/forum.php?mod=vi… Problem descriptionWhen developing multi-attribute screening of commodities, there is no separate table of attributes. The attributes selected are all placed in the same field arr: “blue, red, white, sky blue” and separated by “,”. I started withlikeHow to do it Select * from attrs where attr like […]

  • Openwrt uses shell UCI set to control LED lights


    i.reference material Occasionally, you may need to control the indicator light on the router in real time in the shell. However, it seems that there is no related tutorial, so I wrote one of my own methods here. Configure indicator lights in Luci In Luci’s system led configuration, it’s very convenient to set led parameters, […]

  • CSS color


    Color is an essential element in a web page. For example, we can set the color of a font, the border of an element, and the background color of an element. If you want a webpage to look good, you must add some color to it. Color value Color is shown by a combination of […]

  • The fluent removes the blue wave effect when the rolling component is pulled to the bottom


    This blue wave is sometimes unnecessary. At present, I think it’s the only one that can be seen on the whole screen with a long list. However, various small modules (such as: There is no need to use listview for navigation list or GridView for grid layout chart navigation). What’s more, when this small listview […]

  • [handling] how to stack other overlay widgets on a widget


    The original text is here About the author: Jose, who just graduated from University, now leads a team to maintain the material library of flutter,Material is a design system that helps the team build a high-quality user experience. Suppose you have a widget in your UI and you want to overlay a floating widget on […]

  • OSError: cannot write mode RGBA as JPEG


    captcha.save(‘code.jpg’) reasonRGBA means red, green, blue, alpha color space, alpha refers to transparency. Jpg does not support transparency, so either discard alpha or save as a. PNG file solve Method 1Hide RGB captcha=captcha.convert(‘RGB’) captcha.save(‘code.jpg’) Method 2Save pictures as PNG format directly, support transparency captcha.save(‘code.png’)