In ANSYS, ewrite is used to output the selected unit to the file. Its parameter is
Ewrite, fname, ext, --, kappnd, format
The first two are file names and suffixes. kappnd indicates whether to clear the unit file for output (expressed by 0 and 1). Format indicates the output file.The Bit Width of the part. Here, short is the default option, which indicates that the output is a six-Bit Width, while long
to the database for encoding utf8, otherwise, print ("mysql connected. ") # connect to the database cursor = db. cursor () # Use the cursor () method to obtain the operation cursor cursor.exe cute (SQL) # Run the SQL statement print ('SQL executed') results = cursor. fetchall () # return results print ('results' executed') db. close () # close the database connection print ('mysql CLOSED ') before T: print (' SQL failed ')
#3. Write Data to an excel file
Def
Static pages made with rewrite actually do not exist, IIS (Microsoft Web server platform) Ewrite and unstable often 404, so there is this article.
Principle: 404 page type with PHP (as the current mainstream development language) (ASP also can), combined with thieves, to achieve page static
Use discuz! Forum archiver Example:404 Program page: http://bbs.pkxp.com/error.php (as the current mainstream development language)Demo: http://bbs.pkxp.com/arc
The program written in thinkphp is used. below is the pseudo-static tengine. there is no problem with nginx. there is only the last rewrite ^ (. *) $ index. php on tengine? S $1 last; takes effect. html file rewriting has no effect. server {code ...}} the program written in thinkphp is used. below is the pseudo-static tengine, which is no problem in nginx. only the last rewrite ^ (. *) $/index. php? S = $1 last; effective. html file rewriting has no effect.
Server {
... Omitted part if (! -E $
Python3 enables timed email sending with attachments and python3 sends emails
This example shares the code of the Python3 timed email sending function for your reference. The details are as follows:
1. Import Module
Import osimport datetime # timed sending, and date import shutil # file operation import smtplib # mail module from email. mime. text import MIMETextfrom email. mime. multipart import MIMEMultipartfrom email. header import Headerimport timeimport xlwt # Write Data in excel
2. Write D
Identifier type Upword content
BDB Binary-Optimal design of the database file [Opkeep]
Bfin Text-Volume force interpolation file written by the BF command [Bfint]
BRFL Binary-Optimal design of Flotran results file [Opkeep]
BRMG Binary-Optimal design of magnetic field results file [Opkeep]
Structural analysis of Brst Binary-Optimal design results file [Opkeep]
Brth Binary-optimal design of the temperature result file [Opkeep]
Cbdo Text-The degree of freedom interpolation file written by th
information code is not elegant, not secure. The TP frame URL address can be made up of the following four1.http://URL/index.php?m=xxc=xxa=xx Basic get mode (a represents action action)2.http:// url /index.php/ module / controller / operation method Path mode PathInfo3.http:// URL / module / controller / operation method R Ewrite Rewrite mode4.http:// url /index.php?s=/ module / controller / method Compatibility modeSpecific URL address mode setti
all scripts in four directories at timed intervals.The script under/etc/cron.hourly is run every hour and runs at 17 ticks per hour.The scripts under/etc/cron.daily are run once a day and run 6:25 every day.Scripts under/etc/cron.weekly are run once a week and run at 6:47 on the 7th day of the week.The script under/etc/cron.monthly is run once a month and runs at 6:52 every month at 1th.The above execution time can be modified by oneself
2) User-levelThe crontab syntax is as follows:[Em
synchronization succeeded27Jun 10:12:01 ntpdate[25475]: Adjust time server NtpServer offset-0.127154 secIf you need to synchronize the BIOS time# hwclock-wTo configure timed synchronization, you need to use crontab, using the root user:# CRONTAR-EWrite:*/5 * * * * root ntpdate 192.168.1.2 hwclock-wThis automatically synchronizes the system every 5 minutes.Common exceptions:error1: ntpdate[2748]:the NTP socket is on use, exitingClient end to turn off
: crontab-eWrite: */2 ***** sh/home/Kevin/rsync. Sh
Step 3: Configure the serverCommand: VI/etc/rsyncd. confEdit permitted address: hosts allow = 172.16.71.78 172.30.27.23172.16.71.78 is an existing IP address. If multiple addresses exist, separate them with spaces.In configuration Configuration:
[Attached] Path =/home/receive_filesread only = nouid = rsync_usergid = users
Attached: the server configuration item mentioned above"Path: storage path
1, monitor the shell script code of the HTTPD status code.#!/bin/sh#site:www.jquerycn.cn#website[0]=www.jquerycn.cn/chuzu/'#网站1mobile[0]='13141200000'#对应网站1 Mobile phone number website[1]=www.jquerycn.cn/chushou/'#同上2mobile[1]='13141200000'#同上2 # When the site is large, consider storing it as a file or reading the length from the database=${#website [@]} #获取网站总数量 for((i=0; i)) #循环执行 DoStatus=$ (Curl-i-MTen-o/dev/NULL-s-w%{http_code} ${website[$i]}) #CURL get the HTTP status codeif["$status"X! ="
Static pages made with rewrite do not actually exist. iis (Microsoft's WEB server platform) ewrite is unstable and often 404, so this article is available.
Principle: 404 The page type uses php (as the current mainstream development language) (Asp can also), combined with thieves, to achieve Static Page
Use discuz! Example of Forum archiver:404 program page: http://bbs.pkxp.com/error.php (as the mainstream development language)Demo: http://bbs.pkxp.
thinkphp Core file: Think folder directory under the Library folderThinkphp's entry file is: thinkphp.php, we introduce this entry file when we create the project!!!One, the deployment of the project:Example: Deploying a shop Project1. Create a portal file under the TP directory index.php2, access to the Portal file system will automatically be the corresponding application directory file shop created3. Open Home folder4, MVC modeM: Model Data layer, responsible for data manipulationV: View Vie
Crontab–e command to add.1. Scheduled jobs that run every minuteThe following example creates a cron job that outputs text "test cron job to execute every minute" and sends the text to the [email protected] mailbox every minute.First edit with crontab command[emailprotected]:~# crontab –eWrite the following scriptSHELL=/bin/bashHOME=/MAILTO=”[emailprotected]”#This is a comment* * * * * echo ‘test cron job to execute every minute‘:wq! 保存并退出Once you
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.