Tag:source file

  • Blue Bridge Cup – sum of squares problem


    For more articles, please pay attention to the official account of “BLOG of the sea”. Question: The sum of Squares Theorem is also called Lagrange theoremEvery positive integer can be expressed as the sum of squares of up to four positive integers.If 0 is included, it can be expressed as the sum of the squares […]

  • I wrote a simple shell script to quickly install JDK on a CentOS 7 server


    I wrote a simple shell script to quickly install JDK on CentOS 7 server. Other versions of the system have not been triedDon’t talk too much, just code itIt uses Huawei’s JDK image #!/usr/bin/env bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH # Color red=’\033[31m’ green=’\033[32m’ yellow=’\033[33m’ plain=’\033[0m’ get_char() { SAVEDSTTY=$(stty -g) stty -echo stty cbreak dd if=/dev/tty bs=1 […]

  • Go language series 1.4 introduction to go language: the first go language program


    Let’s write the first go program hello.go (the extension of go language source file is. Go), and the code is as follows: //Declare main package package main import ( “FMT” // to import the FMT package, you need to print the string ) //Declare main function func main() { fmt.Println (“Hello world!”) // print Hello […]

  • Virtual machine install Ubuntu


    This paper was first published inMy blog The company’s computer is windows. Because the unique features of Linux are usually used. For example, swioole and so on. So, I installed Ubuntu in the virtual machine. Well, needless to say, I use automatic installation. I have set the login account and password before the installation. The […]

  • C# IO.File


    The file class is used to create, delete, copy, move, and open files Member function explain example File.Create() Create a file File.Create(@”D:\temp.txt”); File.Copy() Copy file File.Copy (@ “source path”, @ “target path”); File.Delete() Delete file File.Exists() If the file exists, put it back into bool File.Move() move file File.Replace() Replacing a file will delete the […]

  • Bash tip: introduce a shell script for bulk copying files to the specified directory


    This article introduces a shell script that can batch copy files to the specified directory. Suppose the name of the shell script iscpfiles.sh。 In the actual development work, it may be necessary to save some changed files according to the directory structure for backup. These directory structures may contain multiple subdirectories, or multiple files need […]

  • PI Zi Heng embedded: NXP MCU integrated development environment and development tools tutorial index


    Hello, everyone. I’m a ruffian. I’m a real technical ruffian. What this series ruffian Heng introduces to you isKnowledge of NXP MCU development environment and tools。 The MCU product line of NXP semiconductor is very wide, and its supporting software development tools are also very powerful, which can basically cover all kinds of tools needed […]

  • Vscode C + + development environment configuration file (Windows & MAC)


    Windows (compiled with MSVC) c_cpp_properties.json { “configurations”: [ { “name”: “Win32”, “includePath”: [ “${workspaceFolder}/**” ], “defines”: [ “_DEBUG”, “UNICODE”, “_UNICODE” ], “windowsSdkVersion”: “8.1”, “compilerPath”: “C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe”, “cStandard”: “c11”, “cppStandard”: “c++17”, “intelliSenseMode”: “msvc-x64” } ], “version”: 4 } launch.json { “version”: “0.2.0”, “configurations”: [ { “name”: ” cl.exe -Build and debug active […]

  • The method of adding C + + source files into SDK project compilation under mcuxpresso IDE


    Hello, everyone. I’m a ruffian. I’m a real technical ruffian. What ruffian Heng introduced to you today isMethod of adding C + + source files into SDK project compilation under mcuxpresso IDE。 Recently, a customer reported that some source files with. CPP suffix were added to the SDK project under the mcuxpresso ide. The functions […]

  • [QT] custom component


    Feedback email: [email protected] Thanks qtcn Flying clouds One to two or three li Brother Yutian Bannerlabel scroll banner component source file characteristic Picture path and prompt information collection can be added randomly Clear picture path and prompt information collection Picture switching time can be set The color of prompt message text can be set The […]

  • tf.GPUOptions Related summary


    Writing tf.GPUOptions It’s worth mentioning before tf.ConfigProto 。 tf.ConfigProto Generally, when TF establishes a session, it configures the session by passing in the parameter of config. and tf.GPUOptions It’s an act tf.ConfigProto To limit the use of GPU resources. tf.GPUOptions use When multiple people use the same server, if one person occupies all the GPU […]

  • Independent tinypng node script


    Independent tinypng node script characteristic [no dependency, pure Script] Download the script code and run it directly with the node command. Minimize the use threshold. [filter repeat compression] Automatically record compressed images, skip compression and speed up progress. Record the MD5 value after image compression, and skip compression when running compression script again. Comparing file […]