-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.xml
191 lines (81 loc) · 6.55 KB
/
index.xml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>A Software Engineer's Journal</title>
<link>https://favoritekk.github.io/</link>
<description>Recent content on A Software Engineer's Journal</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<managingEditor>[email protected] (Khiêm (Kenvin) Văn)</managingEditor>
<webMaster>[email protected] (Khiêm (Kenvin) Văn)</webMaster>
<copyright>&copy;{year} - favoritekk.github.io</copyright>
<lastBuildDate>Tue, 16 Nov 2021 22:02:21 +0700</lastBuildDate>
<atom:link href="https://favoritekk.github.io/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Play with Coroutine in Kotlin & Android</title>
<link>https://favoritekk.github.io/programming/kotlin-android-coroutines/</link>
<pubDate>Tue, 16 Nov 2021 22:02:21 +0700</pubDate>
<author>[email protected] (Khiêm (Kenvin) Văn)</author>
<atom:modified>Tue, 16 Nov 2021 22:02:21 +0700</atom:modified>
<guid>https://favoritekk.github.io/programming/kotlin-android-coroutines/</guid>
<description>Imagine a Rock - Paper - Scissor game, it has a player versue a Host. When the game starts, the Host will wait for the player forming his/her hand shape. And while waiting, let the Host continuously forms his hand (to make it not boring).
Make an infinite loop The pseudocode might look like this:
while (playerThinking) randomly form a hand shape show it to player In Android, we have a main looper that also handles UI.</description>
<dc:creator>Kevin</dc:creator>
<category>kotlin</category>
<category>android</category>
<category>programming</category>
</item>
<item>
<title>Implement std::make_unique in C++11</title>
<link>https://favoritekk.github.io/programming/std_make_unique_in_cpp_11/</link>
<pubDate>Thu, 04 Feb 2021 00:00:00 +0000</pubDate>
<author>[email protected] (Khiêm (Kenvin) Văn)</author>
<atom:modified>Thu, 04 Feb 2021 00:00:00 +0000</atom:modified>
<guid>https://favoritekk.github.io/programming/std_make_unique_in_cpp_11/</guid>
<description>Problem description If your project was using standard C++11 and you wanted to copy an open source file somewhere which contains the use of std::make_unique function, you might get compile error
error: ‘make_unique’ is not a member of ‘std’
Because std::make_unique was added in C++14, not available in C++11.
Solution Add a wrapper template in a common header file in your project:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 namespace details { // make_unique support for pre c++14 #if __cplusplus &gt;= 201402L // C++14 and beyond using std::make_unique; #else template&lt;typename T, typename.</description>
<dc:creator>Kevin</dc:creator>
<category>cplusplus</category>
<category>cpp</category>
<category>programming</category>
</item>
<item>
<title>What is arrow (->) in function declaration in C++</title>
<link>https://favoritekk.github.io/programming/cplusplus-function-with-arrow/</link>
<pubDate>Fri, 01 Jan 2021 00:00:00 +0000</pubDate>
<author>[email protected] (Khiêm (Kenvin) Văn)</author>
<atom:modified>Fri, 01 Jan 2021 00:00:00 +0000</atom:modified>
<guid>https://favoritekk.github.io/programming/cplusplus-function-with-arrow/</guid>
<description>Alternative function syntax The arrow (-&gt;) in function heading in C++ is just another form of function syntax in C++11.
This is standard function declaration:
1 return-type function_name(argument-list) { body-statement } As C++ grew more complex, it exposed several limits. For example, in C++03 this is not allowed:
1 2 template&lt;class Lhs, class Rhs&gt; Ret adding_func(const Lhs &amp;lhs, const Rhs &amp;rhs) {return lhs + rhs;} //Ret must be the type of lhs+rhs The compiler would not know what Ret is.</description>
<dc:creator>Kevin</dc:creator>
<category>cplusplus</category>
<category>cpp</category>
<category>programming</category>
</item>
<item>
<title>My First Post</title>
<link>https://favoritekk.github.io/programming/my-first-post/</link>
<pubDate>Mon, 14 Dec 2020 00:00:00 +0700</pubDate>
<author>[email protected] (Khiêm (Kenvin) Văn)</author>
<atom:modified>Mon, 14 Dec 2020 00:00:00 +0700</atom:modified>
<guid>https://favoritekk.github.io/programming/my-first-post/</guid>
<description>This is my first post about creating a personal blog. I plan to create my own blog using a static site generator, and a free host service to host my created blog.
I first tried to use Jekyll for generating my static site. But I found out I&rsquo;m more familiar with Go language, so I decided to use Hugo - a build-website framework. And I&rsquo;ll use Github Page to host my blog site, it&rsquo;s totally free according to my plan.</description>
<dc:creator>Kevin</dc:creator>
<category>Hugo</category>
<category>programming</category>
</item>
</channel>
</rss>