Generated by All in One SEO v5.0.0.1, this is an llms.txt file, used by LLMs to index the site. # Richard Lu Personal Website ## Sitemaps - [XML Sitemap](https://www.richardlu.ca/sitemap.xml): Contains all public & indexable URLs for this website. ## Posts - [Premiere Pro (PR) Study Note: Shortcuts #1](https://www.richardlu.ca/2021/12/31/premiere-pro-pr-studying-note-shortcuts-1/) - PR Shortcuts #1. - [Re: Starting Life in Python World 3: Lists](https://www.richardlu.ca/2022/01/13/re-starting-life-in-python-world-3-lists/) - Introduction topping = ['mushroom', 'pineapple', 'bacon', 'onion'] print(topping) # ['mushroom', 'pineapple', 'bacon', 'onion'] List is a compatible abstract data type. Data structure knowledge is required on how to realize it; can just directly understand and operate here, it is very easy after all. List in Python is somewhat similar to the array of languages like - [Re: Starting Life in Python World 2: IF Statement](https://www.richardlu.ca/2022/01/11/re-starting-life-in-python-world-1-if-statement/) - Introduction Comparing to languages like C, Python's IF statement might be the simplest: There isn't even a single bracket in the statement. The logical architecture is much simpler: ==, >=, - [Re: Starting Life in Python World 1: replace() and reverse()](https://www.richardlu.ca/2022/01/09/replace-and-reverse-in-python/) - Introduction replace() is the temporary replacement of the "method" of the string return type, whereas reverse() is the inversion of the list permanent system type. Suppose we have the following code in Python: words = input() # Receive user input for i in words: if '0' - [Hiragana and Katakana Quiz](https://www.richardlu.ca/2021/11/16/hiragana-and-katakana-quiz/) - [Using Token to resolve CSRF Vulnerability](https://www.richardlu.ca/2021/12/31/using-token-to-resolve-csrf-vulnerability/) - Introduction: The CSRF (Cross Site Request Forgery) vulnerability: If the attacker gets target to follow a malicious URL, the attacker can then get the user to perform an operation they had not intended to do. Example code: $operation=$_REQUEST['operation']; (Without token usage to validate the ID). How the attacker exploits this: The attacker creates forged HTTP - [Base64 Encoding Utilization in Python](https://www.richardlu.ca/2022/01/03/base64-encoding-utilization-in-python/) - Introduction Base64 is the most common encoding method for 8Bit byte on the internet. It is used to convert bytes into ASCII characters. It can also be used for simple encryption for an extra slim layer of protection (just by a little). Python can import Base64 as well and here is how to use Base64 - [Real example of Race Condition Vulnerability](https://www.richardlu.ca/2022/01/02/race-condition-example-and-analyze/) - Introduction Suppose we have the following code: int main(int argc, char ** argv) { char * fn = "/tmp/permitted"; char buffer[128]; FILE *fp; if(!access(fn, W_OK)){ scanf("%100s", buffer ); fp = fopen(fn, "w"); fwrite("\n", sizeof(char), 1, fp); fwrite(buffer, sizeof(char), strlen(buffer), fp); fclose(fp); } else { printf("No permission \n"); } } Normal usage of the file: If - [Hello world!](https://www.richardlu.ca/2021/11/08/hello-world/) - #include int main() { printf("Hello world!\n"); return 0; } ## Pages - [About Me](https://www.richardlu.ca/about/) - [Transmitting...] Chatting with Richard Lu ( 聞きたい、僕は。 ) ... Welcome to my personal website! Grateful for your arrival. I am a recent undergrad specializing in Computer Science at the University of Toronto Mississauga. I've finished my PEY at ModiFace Inc. in 2023. Amazing team to work with! Check us out here! Right now I am - [My Projects](https://www.richardlu.ca/about/projects/) - Restify Date Started: January 2022 Total Time used: 40 hours Description Full stack web application with front-back end separation: Frontend using ReactJS server, Backend framework with Django, Django built-in SQLite database, front-back end interaction with RestfulAPI Calls Serialized with CORS Mechanism. Project is developed with two group members utilizing Agile Methodology, split into different phases - [Gallery](https://www.richardlu.ca/gallery/) - Image gallery. - [External Links](https://www.richardlu.ca/external-links/) - Today's Poem Useful links here! You can post yours as well~ - [Timeline](https://www.richardlu.ca/about/timeline/) - [Privacy](https://www.richardlu.ca/about/privacy-policy/) - Eh.. Where am I? Welcome! You are at Richard Lu's personal website, www.richardlu.ca! Please enjoy your stay :) Comments When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor's IP address and browser user agent string to help spam detection. An anonymized string created from - [My Posts](https://www.richardlu.ca/post/) - [My Anime List](https://www.richardlu.ca/my-anime-list/) ## Shuoshuo - [La vaguelette](https://www.richardlu.ca/shuoshuo/la-vaguelette/) - Non, le grand amour ne suffit pas. Seul un adieu fleurira. C'est notre histoire de vie, douce et amère. ⌜La vaguelette⌟ - [君がくれた、僕の灰色の世界は色づくになった。](https://www.richardlu.ca/shuoshuo/色づく/) - 「一人になった僕は、きっと何度も思い出す。色とりどりの君を、鮮やかな痛みと共に。」「苦しくても、叶わなくても、大切な気持ちは、決して消えない!」「それから、ふと考えました。僕の色は、何色かしら?」 - [渚のバカンス](https://www.richardlu.ca/shuoshuo/渚のバカンス/) - だからもう 奇跡待たなくてもいいの 飛び込んで 会いに来て 渚の果て 何度でも 歌うから いつか想いが叶うまで 波の翼のマーメイド 連れてって きらめく橋の向こうまで 一緒に - [Another term starts tomorrow](https://www.richardlu.ca/shuoshuo/another-term-starts-tomorrow/) - Getting busy again :( My timetable and courses for the term - [ツバメ](https://www.richardlu.ca/shuoshuo/ツバメ/) - 僕らは求めるものも 描いてる未来も違うけれど 手と手を取り合えたなら きっと笑い合える日が来るから - [Hello 2022!](https://www.richardlu.ca/shuoshuo/hello-2022/) - Happy new year! 新年快乐! あけおめ! - [「連休」](https://www.richardlu.ca/shuoshuo/「連休」/) - 森:李さん、今度の連休の予定は? 李:小野さんを北京のいろんなところへ案内するつもりです。 森:天気は大丈夫でしょうか。 李:天気予報によると、連休中はずっと晴れだそうですよ。 李:小野さんは、友達の太田さんの家に行くそうです。私もいっしょに行くことになったんですが、森さんは? 森:僕にもメールがあって、一緒にお邪魔することにしましたよ。 李:小野さんのメールによると、太田さんの家で餃子パーティーをするそうです。だから、私にも手伝ってほしいって言っていました。 森:餃子パーティー?それはいいですね。 李:ところで、太田さんって、どんな人ですか?おおた 森:北京に来てから一度会ったことがありますが、とても気さくな人ですよ。スポーツ用品の会社で、宣伝を担当しているそうです。 李:じゃあ、これから一緒に仕事をすることになるかもしれませんね。 森:ええ。だから、できるだけ連絡を取ろうと思っています。 ## Categories - [System Security](https://www.richardlu.ca/system_security/) - System security related. - [General](https://www.richardlu.ca/general/) - General posts. - [PR](https://www.richardlu.ca/pr/) - [Coding](https://www.richardlu.ca/coding/) ## Tags - [Coding](https://www.richardlu.ca/tag/coding/) - Coding related. - [General](https://www.richardlu.ca/tag/general/) - General posts. - [PR](https://www.richardlu.ca/tag/pr/) - [system_security](https://www.richardlu.ca/tag/system_security/) - [Python](https://www.richardlu.ca/tag/python/)