From 6dc4945ea9936d40e1337a308b4ab3761f11f7d2 Mon Sep 17 00:00:00 2001 From: Matthias Eckert Date: Mon, 23 Jan 2023 10:44:46 +0100 Subject: [PATCH] Auto saved by Logseq --- journals/2023_01_23.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 journals/2023_01_23.md diff --git a/journals/2023_01_23.md b/journals/2023_01_23.md new file mode 100644 index 00000000..b57cbe3b --- /dev/null +++ b/journals/2023_01_23.md @@ -0,0 +1,41 @@ +- [[English Lesson]] + - subjunctive mood + - very formal more in a.e. than b.e + - used (primarily) in writing + - bare infinitive + - ``` + My supervisor suggested (that) we have fewer meetings. + Our teacher recommends (that) we speak in English every day. + I ask that he be on time. + It is important (that) we be on time. + ``` + - advise (that)… + ask (that)… + demand (that)… + insist (that)… + propose (that)… + recommend (that)… + request (that)… + suggest (that)… + urge (that)… + It is crucial (that)… + it is essential (that)… + It is important (that)… + - Example Sentences: + - I urge that we resolve this asap + We propose to improve feature + I advise we spend less time in meetings +- +- Check Mime Type [[Code Snippet]] [[Java]] + - ``` java + + public static void main(String[] args) throws IOException { + final File file = new File("c:\\tmp\\tst.csv"); + System.out.println(new FileDataSource(file).getContentType()); + System.out.println(Files.probeContentType(file.toPath())); + System.out.println(file.toURL().openConnection().getContentType()); + System.out.println(URLConnection.guessContentTypeFromName(file.getName())); + System.out.println(URLConnection.getFileNameMap().getContentTypeFor(file.getName())); + System.out.println(new MimetypesFileTypeMap().getContentType(file.getName())); + } + ``` \ No newline at end of file