forge
Explore
Log in

Don't you dare go Hollow

personality

Clone
★ 0

0 watching0 forksRustGPL-3.0460.1 KiBff12ae0Tahinli8 months ago15 commits

projects.rs388 lines, 18.3 KiBHistoryRawDownload
1use dioxus::prelude::*;
2
3use crate::{Footer, Header, Route};
4
5#[component]
6pub fn Projects() -> Element {
7 rsx! {
8 Header {}
9 div {
10 class: "projects_list",
11 h1 {"Projects"}
12 div { class: "project_link", Link {to: Route::Project { id: 1 }, class: "project_link", "Radioxide"} }
13 div { class: "project_link", Link {to: Route::Project { id: 2 }, class: "project_link", "TCP File Transfer"} }
14 div { class: "project_link", Link {to: Route::Project { id: 3 }, class: "project_link", "Memory Filler Killer"} }
15 div { class: "project_link", Link {to: Route::Project { id: 4 }, class: "project_link", "Package Manager"} }
16 div { class: "project_link", Link {to: Route::Project { id: 5 }, class: "project_link", "Personality"} }
17 div { class: "project_link", Link {to: Route::Project { id: 6 }, class: "project_link", "UDP Hole Puncher"} }
18 div { class: "project_link", Link {to: Route::Project { id: 7 }, class: "project_link", "Blockchain"} }
19 div { class: "project_link", Link {to: Route::Project { id: 8 }, class: "project_link", "Optimization Algorithms"} }
20 div { class: "project_link", Link {to: Route::Project { id: 9 }, class: "project_link", "Forum"} }
21 div { class: "project_link", Link {to: Route::Project { id: 10 }, class: "project_link", "Voice Chat"} }
22 div { class: "project_link", Link {to: Route::Project { id: 11 }, class: "project_link", "WebRTC"} }
23 div { class: "project_link", Link {to: Route::Project { id: 12 }, class: "project_link", "Voice Chat Room"} }
24 }
25 Footer {}
26 }
27}
28
29#[component]
30pub fn Project(id: i32) -> Element {
31 let x = match id {
32 1 => {
33 rsx! {
34 div {
35 class:"project",
36 h1 {"Radioxide"}
37 h5 {"Online radio written in Rust."}
38 Link {id: "github_link_in_project_page", to: "https://github.com/tahinli/radioxide", "GitHub"}
39 div {
40 "
41 In this project any streamer can do their radio stream.
42 Streamer is able to stream audio input and also sound files.
43 Multiple clients are able to listen streamer.
44 Relay server connects streamer to worldwide listeners.
45 Strategy is simple. Since normal users don't have a chance to share their IP publicly,
46 relay server collects data from streamer app. Front end part's able to connect with relay server and
47 this allows people listen everywhere where the internet reaches.
48 "
49 }
50 h3 {"Why I did this ?"}
51 div {
52 "I wanted to learn how to stream sound data."
53 }
54
55 h3 {"What I learned ?"}
56 div {
57 "WebSocket, TLS, Stream Optimization, Sound Mix, How Sound Works, ELM Architecture"
58 }
59 }
60 }
61 }
62
63 2 => {
64 rsx! {
65 div {
66 class:"project",
67 h1 {"TCP File Transfer"}
68 h5 {"New file transfer protocol based on TCP, written in Rust"}
69 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/rust-tcp-file-transfer", "GitHub"}
70 div {
71 "
72 In this project I wanted to create a program for transferring files with network.
73 I implemented this to use personally, especially in local networks.
74 Basic client server structure both client and server can receive or send data.
75 "
76 }
77 h3 {"Why I did this ?"}
78 div {
79 "
80 I wanted a portable easy way to transfer files between different operating systems.
81 I personally experienced many problem while I was working for Erciyes University
82 because of cross platform support and lack of portability of other programs.
83 That's why I wanted to solve it.
84 "
85 }
86
87 h3 {"What I learned ?"}
88 div {
89 "
90 Interacting with network in Rust.
91 "
92 }
93
94 h3 {"Note"}
95 div {
96 "
97 Additionally it's my first project in Rust. That's why after even learning much better ways to implement this program,
98 I don't change the code. I keep this program as a memento and a milestone for my improvement.
99 "
100 }
101 }
102 }
103 }
104 3 => {
105 rsx! {
106 div {
107 class:"project",
108 h1 {"Memory Filler Killer"}
109 h5 {"Memory fullness and filler checker written in Rust "}
110 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/rust-memory-filler-killer", "GitHub"}
111 div {
112 "
113 In this project a program checks for available memory.
114 If available memory gets lower then given value, program tries to find memory filler.
115 When memory filler found by the program, it will be killed to keep operating system alive.
116 "
117 }
118 h3 {"Why I did this ?"}
119 div {
120 "
121 Linux normally has this kind of feature.
122 If it lacks of memory to keep OS alive then program that uses most of the memory be killed by kernel.
123 Problem is it's not working well. I don't know why but
124 I got in a situation like a program consumes all of my memory by some kind of leak but kernel couldn't do anything and my system crashed.
125 I wanted to solve this problem, now I use my program as a service for my own system to prevent myself from being in same situation.
126 "
127 }
128
129 h3 {"What I learned ?"}
130 div {
131 "Interacting with operating system and processes for reading data and sending signals."
132 }
133 }
134 }
135 }
136 4 => {
137 rsx! {
138 div {
139 class:"project",
140 h1 {"Package Manager"}
141 h5 {"Package manager written in Rust"}
142 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/rust-package-manager", "GitHub"}
143 div {
144 "
145 In this project user can upload own packages to server then able to update and delete.
146 Other users can download and install uploaded packages to their systems.
147 They are able to update and delete packages.
148 Also client side supports updating all packages that is already installed on the system.
149 "
150 }
151 h3 {"Why I did this ?"}
152 div {
153 "
154 I wanted to learn how can I build package manager since I use them everyday.g
155 "
156 }
157
158 h3 {"What I learned ?"}
159 div {
160 "Seems like I didn't learn new things but made stronger what I knew."
161 }
162 }
163 }
164 }
165 5 => {
166 rsx! {
167 div {
168 class:"project",
169 h1 {"Personality"}
170 h5 {"Personal website written in Rust"}
171 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/personality", "GitHub"}
172 div {
173 "
174 In this project I wanted to build portfolio website for myself and currently you're viewing what is built.
175 There are couple pages and sections. It's a static page based on WASM.
176 "
177 }
178 h3 {"Why I did this ?"}
179 div {
180 "
181 I wanted to learn HTML and CSS a bit also having website as a document of yourself sounds nice.
182 "
183 }
184
185 h3 {"What I learned ?"}
186 div {
187 "
188 Little bit HTML and CSS. I wish I could create better views but doing this kind of things always hard for me.
189 "
190 }
191 }
192 }
193 }
194 6 => {
195 rsx! {
196 div {
197 class:"project",
198 h1 {"UDP Hole Puncher"}
199 h5 {"UDP hole puncher written in Rust"}
200 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/rust-udp-hole-puncher", "GitHub"}
201 div {
202 "
203 In this project I wanted to bypass NAT (Network Address Translation) limitations. Because of lack of IPv4 addresses and security reasons we have public and private addresses.
204 In this situation, we can't easily create peer to peer connection unfortunately. Thanks to UDP hole punching strategy, we may bypass NAT restrictions.
205 I can't say it works every time because NAT strategies are getting complex by different layers and even creating a hole for your router not enough for peer connection.
206 "
207 }
208 h3 {"Why I did this ?"}
209 div {
210 "
211 I wanted to create peer to peer connection without sending actual data to some relay server. UDP hole punching still rely on at least a connectible address (let's say a relay) but just for creating a hole not for sending all data.
212 "
213 }
214
215 h3 {"What I learned ?"}
216 div {
217 "
218 I learnt more details and different type of NATs. Working with UDP is also another plus.
219 "
220 }
221 }
222 }
223 }
224 7 => {
225 rsx! {
226 div {
227 class:"project",
228 h1 {"Blockchain"}
229 h5 {"Blockchain written in Rust"}
230 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/rust-blockchain", "GitHub"}
231 div {
232 "
233 In this project I wanted to implement a blockchain structure from scratch. Basically project starts with defining block, blockchain, genesis block so on. After that I created network strategy to transfer these blocks to miners. When miners mine blocks, server tries to collect data from them and decides what next blocks will be by consensus mechanism.
234 "
235 }
236 h3 {"Why I did this ?"}
237 div {
238 "
239 Basically I wanted to learn how things work in blockchain side.
240 "
241 }
242
243 h3 {"What I learned ?"}
244 div {
245 "
246 I realised pitfalls of the blockchain technology more clearly by the first hand.
247 "
248 }
249 }
250 }
251 }
252 8 => {
253 rsx! {
254 div {
255 class:"project",
256 h1 {"Optimization Algorithms"}
257 h5 {"Optimization Algorithms written in Rust"}
258 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/optimization_algorithms", "GitHub"}
259 div {
260 "
261 In this project I implemented couple of optimization algorithms in Rust. In general they are very useful in many places included: hyper parameter optimization, food search, reducing cost for production and more. I have to mention Artificial Bee Colony algorithm created by Prof. Dr. Derviş Karaboğa, performs great performance and robustness especially in artificial intelligence area.
262 "
263 }
264 h3 {"Why I did this ?"}
265 div {
266 "
267 Firstly it was optional assessment for university course but then it became a passion to learn. Especially when I had a chance to publish my work on official university page, I really put a lot of effort to create Rust version as correct as possible. You can find it here:
268 "
269 Link {to: "https://abc.erciyes.edu.tr", "Erciyes University"}
270 }
271
272 h3 {"What I learned ?"}
273 div {
274 "
275 How things works on optimization area. Specifically why we need them instead of calculating perfect mathematical equation for every possible problem to achieve correct results. This optimization techniques lead an expanded view for my life also.
276 "
277 }
278 }
279 }
280 }
281 9 => {
282 rsx! {
283 div {
284 class:"project",
285 h1 {"Forum"}
286 h5 {"Forum back end written in Rust."}
287 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/rust_forum", "GitHub"}
288 div {
289 "
290 In this project I wanted to implement forum back end. It has authentication and authorization with JWT. It has fully asynchronous architecture with Postgres.
291 "
292 }
293 h3 {"Why I did this ?"}
294 div {
295 "It was going to be used for university club but we decided to go on with battle tested one."
296 }
297
298 h3 {"What I learned ?"}
299 div {
300 "Writing middleware and implementing JWT"
301 }
302 }
303 }
304 }
305 10 => {
306 rsx! {
307 div {
308 class:"project",
309 h1 {"Voice Chat"}
310 h5 {"Voice Chat written in Rust."}
311 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/rust_voice_chat", "GitHub"}
312 div {
313 "
314 In this project I wanted to implement voice chat with QUIC protocol.
315 "
316 }
317 h3 {"Why I did this ?"}
318 div {
319 "I wanted to use QUIC protocol."
320 }
321
322 h3 {"What I learned ?"}
323 div {
324 "Streaming data with QUIC protocol."
325 }
326 }
327 }
328 }
329 11 => {
330 rsx! {
331 div {
332 class:"project",
333 h1 {"WebRTC"}
334 h5 {"WebRTC Voice Chat written in Rust."}
335 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/rust_webrtc", "GitHub"}
336 div {
337 "
338 In this project I wanted to implement voice chat with WebRTC.
339 "
340 }
341 h3 {"Why I did this ?"}
342 div {
343 "I wanted to use WebRTC."
344 }
345
346 h3 {"What I learned ?"}
347 div {
348 "Streaming with WebRTC with low level browser WASM API."
349 }
350 }
351 }
352 }
353 12 => {
354 rsx! {
355 div {
356 class:"project",
357 h1 {"Voice Chat Room"}
358 h5 {"Voice chat room written in Rust."}
359 Link {id: "github_link_in_project_page", to: "https://github.com/Tahinli/rust_voice_chat_room", "GitHub"}
360 div {
361 "
362 In this project I wanted to implement voice chat room for real-time audio communication with low latency audio processing.
363 "
364 }
365 h3 {"Why I did this ?"}
366 div {
367 "I wanted to create voice chat application with a relay server and without many dependencies. Since I already did simple client / server only one with no audio processing in some of the previous projects, I wanted to improve things."
368 }
369
370 h3 {"What I learned ?"}
371 div {
372 "I understand how audio works better in general. Especially in low latency and streaming area. Since audio buffers are always hungry for samples and networks, streams, thread locks, thread waking from sleep, context switching are always creates latency, I learned a lot of things for real-time applications. I tried for a month to create reliable audio mixer because there is no room for latency, even an await for async task. I finally come up with simple approach to solve things. Probably I can improve more but since I understand the process and further improvements never ends, I'm going to keep it as it is."
373 }
374 }
375 }
376 }
377 _ => {
378 rsx! {
379 h1 {"You're not supposed to be here"}
380 }
381 }
382 };
383 rsx! {
384 Header {}
385 {x}
386 Footer {}
387 }
388}