

<feed xmlns="http://www.w3.org/2005/Atom">
  <id>https://whongzhong.github.io/</id>
  <title>Weihong's Site</title>
  <subtitle>Weihong Zhong's personal site</subtitle>
  <updated>2024-02-01T23:38:02+08:00</updated>
  <author>
    <name>Weihong</name>
    <uri>https://whongzhong.github.io/</uri>
  </author>
  <link rel="self" type="application/atom+xml" href="https://whongzhong.github.io/feed.xml"/>
  <link rel="alternate" type="text/html" hreflang="zh-CN"
    href="https://whongzhong.github.io/"/>
  <generator uri="https://jekyllrb.com/" version="4.3.2">Jekyll</generator>
  <rights> © 2024 Weihong </rights>
  <icon>/assets/img/favicons/favicon.ico</icon>
  <logo>/assets/img/favicons/favicon-96x96.png</logo>


  
  <entry>
    <title>一次性更新所有文件的创建时间</title>
    <link href="https://whongzhong.github.io/posts/update-file-time-all-at-once/" rel="alternate" type="text/html" title="一次性更新所有文件的创建时间" />
    <published>2023-12-22T12:27:00+08:00</published>
  
    <updated>2023-12-22T13:15:31+08:00</updated>
  
    <id>https://whongzhong.github.io/posts/update-file-time-all-at-once/</id>
    <content src="https://whongzhong.github.io/posts/update-file-time-all-at-once/" />
    <author>
      <name>Weihong</name>
    </author>

  
    
    <category term="notes" />
    
  

  
    <summary>
      





      

Macos使用onedrive有一个恶心的bug，当我们使用onedrive将文件同步到本地时，文件的创建时间会被修改成同步时的时间，只有修改时间还是原始的正确属性：


而在管理文件时，比如转移照片时，时间属性又十分重要，因此需要有一个合适的方法来将所有时间修改为正确的时间。

使用Stat命令可以获得文件的所有时间信息：
bash: stat -x $filename

  File: "LICENSE"
  Size: 1068         FileType: Regular File
  Mode: (0644/-rw-r--r--)         Uid: (  501/ username)  Gid: (   20/   staff)
Device: 1,17   Inode: 34875345    Links: 1
Access: Fri Dec 22 08...
    </summary>
  

  </entry>

  
  <entry>
    <title>如何使用Ant自动构建并测试你的java程序</title>
    <link href="https://whongzhong.github.io/posts/ant-using/" rel="alternate" type="text/html" title="如何使用Ant自动构建并测试你的java程序" />
    <published>2019-03-17T04:43:13+08:00</published>
  
    <updated>2023-12-22T13:15:31+08:00</updated>
  
    <id>https://whongzhong.github.io/posts/ant-using/</id>
    <content src="https://whongzhong.github.io/posts/ant-using/" />
    <author>
      <name>Weihong</name>
    </author>

  
    
    <category term="notes" />
    
  

  
    <summary>
      





      

这几天一直在尝试使用Ant构建自己的Project，找了很多很多的方法，最后终于大概明白这玩意怎么写了。

ant的构建是基于一个build.xml文件的，非常简单，在线build工具travis-ci的默认build工具也是ant，所以干脆先学一学ant。

把自己实验一的build.xml贴上来，并逐行加以一些解释，相信应该还是比较清楚的。

&amp;lt;?xml version = "1.0"?&amp;gt;
&amp;lt;project name = "Lab1-1170300206" default = "test" basedir = "."&amp;gt;
	&amp;lt;property name="src" location="src"/&amp;gt;
	&amp;lt;property name="lib" location="lib"/&amp;gt;
  	&amp;lt;property name="build"...
    </summary>
  

  </entry>

  
  <entry>
    <title>Markdown语法小记</title>
    <link href="https://whongzhong.github.io/posts/markdown-syntax/" rel="alternate" type="text/html" title="Markdown语法小记" />
    <published>2019-03-17T04:30:08+08:00</published>
  
    <updated>2023-12-22T13:15:31+08:00</updated>
  
    <id>https://whongzhong.github.io/posts/markdown-syntax/</id>
    <content src="https://whongzhong.github.io/posts/markdown-syntax/" />
    <author>
      <name>Weihong</name>
    </author>

  
    
    <category term="notes" />
    
  

  
    <summary>
      





      

原文来自Markdown基本语法

标题

markdown支持六级标题，如下所示

# 一级标题
## 二级标题


字体

加粗

需要加粗的文字左右用两个*号包裹

**加粗**


斜体

需要倾斜的文字左右用一个*号包裹

*斜体*


斜体加粗

需要倾斜与加粗的文字左右分别用三个*号包裹起来

***又加粗又倾斜***


删除线

需要加删除线则左右用~~包裹起来

~~删除线~~


引用

在引用的文字前加&amp;gt;即可。引用也可以嵌套，如加两个»三个»&amp;gt;

&amp;gt;这是引用的内容
&amp;gt;&amp;gt;这是引用的内容
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;这是引用的内容



  这是引用的内容
  
    这是引用的内容

    
      
        
          
            
 ...
    </summary>
  

  </entry>

</feed>


