- Jan 15 Sun 2023 14:31
[日本] Visit Japan Web(入境資料電子申請) 申請流程教學
- Jan 12 Thu 2023 02:10
[福岡] 天神、博多到太宰府交通方式
博多車站 ↔ 太宰府
巴士:
太宰府ライナーバス「旅人」( 太宰府定期巴士「旅人」 )
車子外觀很特別,有不同主題的彩繪圖案,班次也多:平日有19班、週六、週日和假日有23班。
- Jan 01 Sun 2023 16:58
[韓國] K-ETA(電子入境許可)簽證申請流程教學
目前韓國針對免簽入境韓國並符合以觀光、訪問親友、會議或商務(營利目的除外)等目的入境者採用K-ETA(電子旅行許可制)。2022/11/1
- Dec 29 Thu 2022 16:38
[熊本] 阿蘇火山交通方式
熊本 ↔ 阿蘇
巴士:
特急やまびこ号
熊本駅前~阿蘇駅前約2小時 ( 發車時間:7:49 ~ 17:20 )
- Dec 22 Thu 2022 19:18
[釜山] 韓國釜山到日本北九州 郵輪渡輪介紹
釜山 ↔ 福岡
BEETLE ビートル(JR九州高速船)
約3時40分
單程 | 來回 | |
---|---|---|
敬老票(65歲以上) | 8,000円 | 16,000円 |
大人(12歲以上) | 16,000円 | 32,000円 |
6~11歲 | 8,000円 | 16,000円 |
1~5歲、0歲佔位 | 2,000円 | 4,000円 |
0歲不佔位 | 免費 |
- Nov 19 Sat 2022 00:26
[AMAZON JP] 登入收不到認證信
今天遇到要登入日本AMAZOZ無法登入,要進行手機認證 (如下圖),試了3電腦、2台手機登入都一樣要我做認證,然後手機又收不到訊息。
經過查詢網路和自己隨便按,發現有一個OPT登入可以使用,
步驟如下
1. 網站語言切換成英文
2. 登入輸入你的手機號碼(如下圖)
- Jan 01 Sat 2022 19:50
[JAVA] 文字資料寫入檔案產檔
資料寫入檔案
/** * 產檔 * @param filePathLocal 路徑 * @param fileName 檔名 * @param str內容 * @throws IOException */ public void mkFile(String filePathLocal, String fileName, String str) throws IOException { File file = new File(filePathLocal); if (!file.isDirectory()) { file.mkdirs(); //資料夾權限 file.setReadable(true, false); file.setExecutable(true, false); file.setWritable(true, false); } Path localFile = Paths.get(filePathLocal, fileName); BufferedWriter writer = Files.newBufferedWriter(localFile, StandardCharsets.UTF_8); writer.write(xml); writer.close(); }
- Jan 01 Sat 2022 19:17
[JAVA] 多檔案壓縮成一個檔案
將多個檔案壓縮到一個檔
/** * 壓縮檔案 * @param filePathList 檔案列表 * @param zipDest 壓縮檔資料夾 * @return 壓縮檔路徑 * @throws IOException */ public String batchDownLoadFile(List<String> filePathList, String zipDest) throws IOException { File zipFile = new File(zipDest, System.nanoTime() + ".zip"); FileOutputStream fos = new FileOutputStream(zipFile); ZipOutputStream zos = new ZipOutputStream(fos); FileInputStream fis = null; Set<String> filePathSet = new HashSet<>(filePathList); try { for(String filePath: filePathSet) { fis = new FileInputStream(filePath); File file = new File(filePath); zos.putNextEntry(new ZipEntry(file.getName())); int tmp = 0; while((tmp = fis.read()) != -1) { zos.write(tmp); } zos.flush(); fis.close(); zos.closeEntry(); } }finally { zos.close(); fos.close(); } return zipFile.getPath(); }
- Jan 01 Sat 2022 18:53
[JAVA] com.itextpdf.text.Image.getInstance is not a recognized imageformat.
Q: 使用Image getInstance(final URL url)報錯 java.io.IOException: XXXXXXXX is not a recognized imageformat.
A: 確認圖檔是否為可使用格式:gif jpeg png
/**
* Gets an instance of an Image.
*
* @param filename
* a filename
- Jan 01 Sat 2022 16:17
[thymeleaf] map object to html select option
@GetMapping(value = { "/out" }, produces = MediaType.TEXT_HTML_VALUE)
public String outIndex(Model model) {
model.addAttribute("status", action.dataMap());
return "/out";
}
<select class="sml" name="action">
- Jan 01 Sat 2022 15:52
[Java] Jdbc batchUpdate value by pojo
@Autowired private NamedParameterJdbcTemplate namedParameterJdbcTemplate; public void batchUpdate(List<User> list) { if(CollectionUtils.isNotEmpty(list)) { String sql = "INSERT INTO USER (NAME, TEL, ADDR) VALUES( :name, :tel, :addr)"; SqlParameterSource[] batchArgs = SqlParameterSourceUtils.createBatch(list.toArray()); nameJdbcTemplateOracle.batchUpdate(sql, batchArgs); } } @lombok.Data public class SupStoreInfo{ private String name; private String tel; private String addr; }
- Jan 01 Sat 2022 14:13
[Java] XML內容過濾非法符號
XML過濾非法符號
String xml = "<?xml version="1.0" encoding="big5"?><doc><PickFileID>123456</PickFileID></doc>" xml.replaceAll("[\\x00-\\x08\\x0b-\\x0c\\x0e-\\x1f]", "")
- Jan 01 Sat 2022 12:05
[js] loop object
JS OBJECT LOOP
MAP:
for (const [key, value] of prodObjMap) { console.log(key, value) }
- Oct 14 Thu 2021 12:06
[航空-jetstar捷星] 代金券查詢
- Jan 30 Sat 2021 15:55
[台北-宿] 來自荷蘭時尚潮流網美窗景商旅 ~ 台北世民酒店 citizenM
來自荷蘭的citizenM世民酒店的宗旨為「為人們提供負擔得起的性價超值的服務」,在台灣唯一一家立地於台北北門。
此間特點為不貴的價格就能住到房內有好美好拍景觀窗的飯店,網美們不可錯過。
以下照片為13樓房間的景色,看看多美麗天空,一起床就能見到這樣的風景超幸福。➤AGODA比價點我
PS. 住這間飯店請選擇高樓層,不然我覺得很浪費。
citizenM位在北門旁邊,捷運北門站走路約2分鐘、捷運台北車站走路約15分鐘,周邊景點有「國立臺灣博物館鐵道部」、「撫臺街洋樓」、「西門町(步行約15分鐘)」等。
我這次CHECK IN後,就沿著延平南路一路逛到西門町過完一天。所以不用怕住這裡沒地方去。