Reprinted from: http://www.cnblogs.com/yipu/archive/2013/03/13/2956957.htmlWhen we use the Finder to browse the file, the name of the current directory is displayed in the center at the top of the title bar. In the ointment, however, when the directory name is displayed, it does not show the full path of the folder, so it is difficult to know the exact location of the current directory. One solution to this problem is to use the path bar, and another trick is to have the full path of the directo
1. Set the system default resolutionXrandr command:> XrandrScreen 0:minimum 1 x 1, current 1920x1080 x, maximum 8192 x 8192Virtual1 Connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm1 1920x1080 60.0*+2 2560x1600 60.03 1920x1440 60.04 1856x1392 60.05 1792x1344 60.06 1920x1200 59.9Note: There is an X for the current resolution and if necessary modify it using:Xrandr-s 4 can be switched to a fourth resolution.More Xrandr parameters can be man.2.Common settings for
1. First need to set the next iterm, the terminal encoding method for the Utf-8 inspection scheme is: iterm-> Perferences-> Terminal->character Encoding: UTF-82. Open/etc/ssh _config file sendenv lang lc_* for sendenv Lang lc_all=en. US. UFT-83. Turn off Iterm once again to see if Chinese is also displayed as garbled, if also garbled, again modified under the Linux character set for Utf-8, terminal directly input command: lang= "en_US. UTF-8 "Iterm terminal on Mac
Sometimes many files, want to know the current file name, shortcut key: CTRL + G canIf you feel that it is not enough, then modify the vim configuration:Vi/etc/vim/vimrcAdd the following to the last side: Let titlestring = expand ( %:p " ) if term = = " screen " set t_ts=^[k set t_fs=^[endif if term = = " screen | | term = = xterm " set Titleendif If you want to display only the file name and do not want the path, replace the expand ("%:p") in your code with expand ("%:t").V
property is set to UTF-8, but the content charset is set to GBK, which conflicts and is displayed as garbled:(4) The HTML itself is set to GBK, and the content charset in the document is also set to UTF-8, the results are displayed as normalNormal resultsSummary: If the Chinese in the HTML document is garbled in the browser, look for the reason in two ways: (1) HTML itself property encoding settings and content CharSet settings conflict (2) and browser encoding format is not compatibleA solutio
The code is as follows:Package Test;import Java.io.*;import Java.nio.charset.charset;import java.util.properties;import Com.jcraft.jsch.channelexec;import Com.jcraft.jsch.jsch;import Com.jcraft.jsch.jschexception;import Com.jcraft.jsch.session;import Org.apache.commons.io.ioutils;import Org.apache.logging.log4j.logmanager;import org.apache.logging.log4j.logger;/** * @author LW * @createTime 2018/8/3 15:49 * @description SSH login Host Enter the password to log in and execute the command */public
If you want to see it in the game view, you need to gizmos the "gizmos" button in the upper-right corner of the game view window. :For example, the following code draws a spherical wireframe with a radius of 0.8f centered on the Capsulecollider center of the character.void Ondrawgizmos () {Vector3 capsulecollidercenterinworldspace=getcomponentGizmos.color = Color.yellow;Gizmos.drawwiresphere (capsulecollidercenterinworldspace,0.8f);}Reference: http://answers.unity3d.com/questions/224400/gismo-in
71406746 is that the same as this effect? #-*-Coding:utf-8-*-
Import Base64
With open ("C:\\users\\user\\desktop\\20170508134213.png","RB") as F:
# B64encode is encoded, B64decode is decoding
Base64_data = Base64.b64encode (F.read ())
# Base64.b64decode (base64data)
Print (Base64_data)
Results:It's too long. Show Not allHow to call Base64 encoding directly in front-end HTML?Useimg src="data:image/jpg;base64,这里是base64的编码"/>It's too long. Show Not allThe
Some user response in W7 system often appears "win7*." VXD file did not find the "prompt window, which caused great trouble to our operating system, this failure prompted many users do not know how to solve, the following small series for the system prompts" win7*. VXD file not found "for analysis and resolution of the introduction.
Reason Analysis:
A VxD is shorthand for virtual X driver, which is actually a dummy device driver. Once the computer displays
This article to share is the use of VBS to display the current time 2 instances, very simple and practical, the need for small partners can refer to.
VBS displays the current standard time, for example: The following code is displayed: 2013-05-11 19:10:11
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27--28 29---30 31--32 33 34 35 36 37 38-39 40 41 42 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 6
JS Displays the current date
Copy Code code as follows:
The effect of the following figure:
The corresponding JS is as follows:
Copy Code code as follows:
Create an array that holds the number of days per month
function Montharr (M0, M1, M2, M3, M4, M5, M6, M7, M8, M9, M10, M11) {
This[0] = M0;
THIS[1] = M1;
This[2] = m2;
THIS[3] = m3;
THIS[4] = M4;
THIS[5] = M5;
THIS[6] = M6;
THIS[7] = M7;
THIS[8] = M8
.
CreateCommand ();
The input data is stitched into SQL statements and handed to the cmd object cmd.commandtext = "Select*from users"; Executes the statement with a CMD function, returning the result of the SqlDataReader type DR,DR is the result set returned (that is, the table data queried in the database) SqlDataReader dr = cmd.
ExecuteReader (); With Dr's read function, each time it is executed, a set of Dr while (DR) containing the next row of data is ret
function time () {var date = new Date ();//Get system times var year = Date.getfullyear ();//Current A.D. var month = Date.getmonth ();//Current Month-1, so the year shown later has +1var day = Date.getdate ();The current number of days, GetDay () indicates the current day of the week var hour = date.gethours ();Current hours ~ hours, minutes, seconds get followed by svar minute = Date.getminutes (), var second = Date.getseconds (), var $time = $ ("Time"), var txt = year + "Year" + (month + 1) +
perform two custom encapsulation methods for jqueryWhen you want to develop a common plug-in can be implemented in this way.For example, I want to encapsulate the native JS attribute into my own jquery .For a chestnut: wrap the native document.getelementsbytagname into jquery to useJS Module(function ($) {$.extend ({"Gettagname": function (colval) {var tagname = document.getElementsByTagName (colval);return tagname;}});}) (JQuery);var tagval = $.gettagname ("h1") [0];Console.log ("tagval=" +
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.