PERFECT BLUE

Essays


  • 首頁

  • 關於

  • 標籤

  • 分類

  • 歸檔

  • 站點地圖

  • 檢索

C++ STL Map需要有两个Key该咋办?

發表於 2020-10-11 | 分類於 C++ , STL |
字數統計: 135 | 閱讀時長 ≈ 1

施工中……

閱讀全文 »

Leetcode 142:Linked List Cycle II(环形链表 II)

發表於 2020-10-10 | 分類於 LeetCode , C++ |
字數統計: 169 | 閱讀時長 ≈ 1

题目:Linked List Cycle II(环形链表 II)

Given a linked list, return the node where the cycle begins. If there is no cycle, return null.

There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, pos is used to denote the index of the node that tail’s next pointer is connected to. Note that pos is not passed as a parameter.

Notice that you should not modify the linked list.

Follow up:

Can you solve it using O(1) (i.e. constant) memory?

閱讀全文 »

AppStore已购列表为空???

發表於 2020-10-07 | 分類於 iOS , App Store |
字數統計: 159 | 閱讀時長 ≈ 1

这个问题每到大版本更新好像都有人遇到,但官方一直没有给出有效的解决方法,基本上贴个热线电话就完事了……

国服App Store遇到这个问题,据说可以通过更改WiFi的DNS解决(逼乎上老哥改了8.8.8.8后解决),但这里外服App Store蜂窝网络和挂Quantumult X都不能解决问题……

我这最后是尝试购买App(之前没买过的)后,已购列表恢复。

閱讀全文 »

每日收藏夹 9月28日 月曜日

發表於 2020-09-28 | 分類於 收藏夹 , C++ |
字數統計: 554 | 閱讀時長 ≈ 2

好久好久不用C++了,用惯了IntelliJ IDEA后,再次打开Visual Studio,我感到对C++深深的不适应;于是我打开JetBrain的官网,本想下个LION的,结果看到了VS的Resharper插件,又顺手下了个VsVim。

写了两个C++小程序后,深深感到C++艹蛋,怀念起写Java时无忧无虑的体验:指针、编译报错不显示堆栈……结果今天改Java代码时String的url从编辑器里复制出来改了下再粘贴回去后居然程序无法运行(编辑器自动多加了个转义”\“),报错也看不懂,罢了罢了,Java在我心中也跌落神坛,还是得靠自己加深对编程语言的理解,不能全指望IDE啊(但我还是要说IDEA牛逼)

再贴一个Pixiv的反向代理,今天才发现pixiv 的圖片伺服器網域為 i.pximg.net,有盜連保護,太丢人了。

nginx反向代理設定檔

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
proxy_cache_path /path/to/cache levels=1:2 keys_zone=pximg:10m max_size=10g inactive=7d use_temp_path=off;

server {
listen 443 ssl http2;

ssl_certificate /path/to/ssl_certificate.crt;
ssl_certificate_key /path/to/ssl_certificate.key;

server_name i.pixiv.cat;
access_log off;

location / {
proxy_cache pximg;
proxy_pass https://i.pximg.net;
proxy_cache_revalidate on;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_lock on;
add_header X-Cache-Status $upstream_cache_status;
proxy_set_header Host i.pximg.net;
proxy_set_header Referer "https://www.pixiv.net/";
proxy_set_header User-Agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36";

proxy_cache_valid 200 7d;
proxy_cache_valid 404 5m;
}
}

閱讀全文 »

VSVim & vector & 获取异常堆栈调用信息

發表於 2020-09-25 | 分類於 收藏夹 , C++ |
字數統計: 71 | 閱讀時長 ≈ 1

施工中……

閱讀全文 »

导入歌曲至iTunes & 上传歌曲到iCloud音乐资料库

發表於 2020-09-19 | 分類於 iTunes , 资料库 |
字數統計: 520 | 閱讀時長 ≈ 1

2021/8/1日更新:添加导入歌曲到iTunes的教程

吐槽:最近(2021/7/31)用iOS的Shazam时发现:Apple Music曲库不包含的歌曲竟然不能通过菜单直达iTunes商店对应专辑页了……

閱讀全文 »

青年大学习研究资料库_信息截止第九季十三期

發表於 2020-09-19 | 分類於 日常 , 青年大学习 |
字數統計: 188 | 閱讀時長 ≈ 1

本来想搞个脚本来解决大学习问题的,但没想到甚至不用这么麻烦。(截止第九季十三期有效)。

閱讀全文 »

IDEA乱码解决方案收集串

發表於 2020-09-08 | 分類於 乱码 , IntelliJ IDEA |
字數統計: 33 | 閱讀時長 ≈ 1

施工中……

閱讀全文 »

更改Windows_10系统编码为UTF-8

發表於 2020-09-08 | 分類於 Windows , 乱码 |
字數統計: 30 | 閱讀時長 ≈ 1

改完我的记事本里的中文全变�了…

閱讀全文 »

给IDEA分配更大堆内存以加快启动速度

發表於 2020-09-08 | 分類於 IDEA , Java |
字數統計: 30 | 閱讀時長 ≈ 1

改成4G后也没见IDEA变得多快嘛,有效性待验证。

閱讀全文 »

1…789…15

Kronos

148 文章
165 分類
82 標籤
RSS
© 2019 — 2023 Kronos
由 Hexo 強力驅動
|
主題 — NexT.Gemini v5.1.4