Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Comment! #51

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -206,25 +206,25 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
mini_portile2 (2.5.3)
mini_portile2 (2.8.0)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
multi_json (1.15.0)
multipart-post (2.1.1)
nokogiri (1.11.7)
mini_portile2 (~> 2.5.0)
nokogiri (1.13.6)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.11.7-x64-mingw32)
nokogiri (1.13.6-x64-mingw32)
racc (~> 1.4)
octokit (4.20.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
racc (1.5.2)
racc (1.6.0)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright [2021] [Sid]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
17 changes: 9 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
title: Sid's Blog
description: A blog which is owned by a tech enthusiast and a Science-bitten person
disqus_shortname: Sid200
title: GIA | Sid's Blog
description: Generally an Information Arsenal
reading_time: true
words_per_minute: 200
# Your site's domain goes here (eg: https://mmistakes.github.io, http://yourdomain.com, etc)
# When testing locally leave blank or use http://localhost:4000


#! Site Domain goes here (https://domain.com) | Leave blank if testing locally, or use http://localhost:4000
url: https://sid200.github.io/blog

# Owner/author information
#! Owner Info
owner:
name: Sid
avatar: avatar.png
bio: "A random person"
email: [email protected]
# Social networking links used in footer. Update and remove as you like.

#! Socials
twitter: prollysid
github: sid200
# linkedin:
instagram: prollysid
# instagram:
# discord:
# google plus id, include the '+', eg +mmistakes
# google_plus:
Expand Down
8 changes: 8 additions & 0 deletions _data/comments/comment-1630066410589.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_id: 30e37380-0730-11ec-a969-831fcfe943dc
page: /lets-talk-unicode/
part: ''''''
reply_to: ''
name: Sid
email: ''
message: "Well, this is a test and it will stay here forever. `Test` test ugh $x$ 32 + 4 \U0001F642"
date: '2021-08-27T12:13:30.587Z'
8 changes: 8 additions & 0 deletions _data/comments/comment-1630066761744.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_id: 024a2bd0-0731-11ec-a969-831fcfe943dc
page: /lets-talk-unicode/
part: ''''''
reply_to: 30e37380-0730-11ec-a969-831fcfe943dc
name: Sid
email: ''
message: Hey! This is a test reply.
date: '2021-08-27T12:19:21.743Z'
8 changes: 8 additions & 0 deletions _data/comments/comment-1636903409607.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_id: d1ca9640-455e-11ec-a0c9-3399789d48e0
page: /blog-revamp-project-gia/
part: ''''''
reply_to: ''
name: Sid
email: ''
message: Hey! This is a test comment.
date: '2021-11-14T15:23:29.605Z'
10 changes: 10 additions & 0 deletions _data/comments/comment-1656941317742.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
_id: 35eb40d0-fb9d-11ec-a332-4dcf9fbf1c87
page: /the-mathematical-search-for-work/
reply_to: ''
name: umimuafajeybr
email: 30daa6e7a3dcd7a3af4794607560050c
message: >-
[url=http://slkjfdf.net/]Onoloru[/url] <a
href="http://slkjfdf.net/">Uibopwe</a> kfs.arnk.nicam.uoguelph.ca.ifi.sx
http://slkjfdf.net/
date: '2022-07-04T13:28:37.739Z'
61 changes: 34 additions & 27 deletions _includes/comments-new.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,46 @@
<form class="commentForm" method="POST" action="https://api.staticman.net/v3/entry/github/sid200/blog/master/comments">
<h2 id="commentBoxTitle">
Comment Here!
<div class="tooltip">ℹ️
<span class="tooltiptext">The commenting system is still under development, but it sort of works for the moment!<br><br>Oh and you might want to reload after clicking on Send 😬</span>
</div>
</h2>
<h2 id="commentBoxTitle">
Comment Here!
<div class="tooltip">ℹ️
<span class="tooltiptext">
The commenting system is still under development, but it sort of works for the moment!<br><br>Oh and
your comment might take a while to show up - you should see it when you reload after a few minutes...😬
</span>
</div>
</h2>

<input name="options[redirect]" type="hidden" value="htpps://sid200.github.io/blog{{ page.url }}">
<input name="fields[page]" type="hidden" value="{{ page.url }}">
<input name="options[slug]" type="hidden" value="{{ page.slug }}">
<input name="fields[part]" type="hidden" value="{% if page.part %} {{ page.part }} {% else %} '' {% endif %}">
<input type="hidden" id="comment-parent" name="fields[reply_to]" value="">
<input name="options[redirect]" type="hidden" value="htpps://sid200.github.io/blog{{ page.url }}">
<input name="fields[page]" type="hidden" value="{{ page.url }}">
<input name="options[slug]" type="hidden" value="{{ page.slug }}">
<input id="comment-parent" name="fields[reply_to] " type="hidden" value="">

<p class="commentP">
<input placeholder="Name" name="fields[name]" class="commentInput" required></input>
</p>
<p class="commentP">
<input placeholder="Name" name="fields[name]" class="commentInput" required></input>
</p>


<p class="commentP">
<input name="fields[email]" placeholder="Email (optional)" type="email" class="commentInput"></input>
</p>
<p class="commentP">
<input name="fields[email]" placeholder="Email (optional)" type="email" class="commentInput"></input>
</p>


<p class="commentP">
<textarea name="fields[message]" placeholder="Message..." class="commentInput" rows="6" required ></textarea>
</p>
<p class="commentP">
<textarea name="fields[message]" placeholder="Message..." class="commentInput" rows="6" required></textarea>
</p>

<span class="commentButtons" id="commentReplyCancel" onclick=cancelReply()>Cancel</span>
<button type="submit" class="commentButtons">Send</button>
<span class="commentButtons" id="commentReplyCancel" onclick=cancelReply()>Cancel</span>
<button type="submit" class="commentButtons">Send</button>
</form>

<script>
function cancelReply(){
document.getElementById('commentReplyCancel').style.display='none';
document.getElementById('commentBoxTitle').innerText='Comment Here!';
document.getElementById('comment-parent').value='';
}
function cancelReply() {
document.getElementById('commentReplyCancel').style.display = 'none';
document.getElementById('commentBoxTitle').innerHTML = `Comment Here!
<div class="tooltip">ℹ️
<span class="tooltiptext">
The commenting system is still under development, but it sort of works for the moment!<br><br>Oh and your comment might take a while to show up - you should see it when you reload after a few minutes...😬
</span>
</div>`;
document.getElementById('comment-parent').value = '';
}
</script>
90 changes: 46 additions & 44 deletions _includes/comments.html
Original file line number Diff line number Diff line change
@@ -1,60 +1,62 @@
{% assign commentSize = site.data.comments | where: "page", page.url %}
<h1 id="commentFeedTitle" style="color: #444; letter-spacing: 2px">Comments({{ commentSize.size }})</h1>

{% assign cmts = site.data.comments | where: "page", page.url | where: "part", page.part | where: "reply_to", "" | sort:"date" | reverse %}
{% assign cmts = site.data.comments | where: "page", page.url | where: "reply_to", "" | sort:"date" | reverse %}

{% for comment in cmts %}
{% assign commentData = comment %}
{% assign replies = site.data.comments | where: "page", page.url | where: "reply_to", commentData._id |where: "part", page.part%}
{% assign commentData = comment %}
{% assign replies = site.data.comments | where: "page", page.url | where: "reply_to", commentData._id |where: "part", page.part%}

<div class="commentElement">

<div class="cHeader">

<span class="cName">
{{ commentData.name }}
</span>

<div class="cHeader">
<span class="cName">
{{ commentData.name }}
</span>

<small class="cDate">
on {{ commentData.date | date_to_long_string }}
</small>
<small class="cDate">
on {{ commentData.date | date_to_long_string }}
</small>

&nbsp;
&nbsp;

<a class="cReply" href="#commentNew" onclick="document.getElementById('commentBoxTitle').innerText = `Reply To {{ commentData.name }}`;document.getElementById('comment-parent').value = '{{ commentData._id }}';document.getElementById('commentReplyCancel').style.display = 'block'">
<small>Reply</small>
</a>
<a class="cReply" href="#commentNew" onclick="document.getElementById('commentBoxTitle').innerText = `Reply To {{ commentData.name }}`;document.getElementById('comment-parent').value = '{{ commentData._id }}';document.getElementById('commentReplyCancel').style.display = 'block'">
<small>Reply</small>
</a>

</div>
</div>

<hr class="commentIdLine">
<hr class="commentIdLine">

<div class="cMessage">
{{ commentData.message strip_html | markdownify | smartify }}
</div>
<div class="cMessage">
{{ commentData.message strip_html | markdownify | smartify }}
</div>

</div>

{% if replies %}
{% for reply in replies%}
<div class="replyElement">
<div class="cHeader">
<span class="cName">
{{ reply.name }}
</span>
<small class="cDate">
on {{ reply.date | date_to_long_string }}
</small>
</div>
<hr class="commentIdLine">
<div class="cMessage">
{{ reply.message strip_html | markdownify | smartify }}
</div>
</div>
{% endfor %}
{% endif %}
</div>

{% if replies %}
{% for reply in replies%}
<div class="replyElement">
<div class="cHeader">
<span class="cName">
{{ reply.name }}
</span>
<small class="cDate">
on {{ reply.date | date_to_long_string }}
</small>
</div>
<hr class="commentIdLine">
<div class="cMessage">
{{ reply.message strip_html | markdownify | smartify }}
</div>
</div>
{% endfor %}
{% endif %}


{% endfor %}
4 changes: 2 additions & 2 deletions _posts/2021-07-22-the-mathematical-search-for-work.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ As we expected. It's already clear that such a plot is going to get super messy
</center>
</p>

So we **rescale** the arrows such that their length lies between $$0$$ and $$1$$ (this is easily done by dividing the origin vector field expression by the magnitude of the vector).
So we **rescale** the arrows such that their length lies between $$0$$ and $$1$$ (this is easily done by dividing the original vector field expression by the magnitude of the vector).

> While the vector field plot thingmajig above doesn't capture the length/magnitude, we can still do so by assigning different colors to each arrow depending on the magnitude. Sounds like we merged heatmaps and vector fields!

Expand Down Expand Up @@ -506,7 +506,7 @@ $$W = \int_0^s\vec{F}\cdot \vec{T}\,\mathrm{d}s$$

# Thank You!

Phew! That was a lot! If you're reading this, thanks a bunch for sticking around. This was a long one, and I don't expect you to read it all in one go. I am not sure how many people read my blog posts and for how long, but it does mean a lot if you've read this far because this took a lot of *work* (alright that's the last pun I promise).
Phew! That was a lot! If you're reading this, thanks a bunch for sticking around. This was a long one, and I appreciate you for reading all of this. I am not sure how many people read my blog posts and for how long, but it does mean a lot if you've read this far because this took a lot of *work* (alright that's the last pun I promise).

In conclusion,

Expand Down
42 changes: 42 additions & 0 deletions _posts/2021-11-02-blog-revamp-project-gia.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
layout: post
title: 'Blog Revamp: Project GIA'
description: This blog is supposed to be an arsenal of information. Or is it?
date: 2021-11-02
image:
path: /images/
background: prime-bg.jpg
feature: GIARevamp/header.svg
---

> "People will forget what you said, people will forget what you did, but people will never forget how you made them feel." - Maya Angelou

Over the past year or two, I've had some ridiculous expositions to a varied set of experiences. These experiences have taught me a lot - both educationally and in many aspects of life. Thinking about these eventually made me think about my blog (that makes no sense, but uh well that's what happened 😅). The way it stands currently, it's extremely generic; everyone can agree that *Sid's Blog* is a placeholder for a name and just way to showcase that I am lazy. The revamp is supposed to change the branding of this blog.

> I mean laziness is still an inherent characteristic in me 😛, but sometimes certain events in my life make me go, "Yep it's time to do something here and show everyone, or someone."

# Project GIA

You must know one thing: I am very picky with my names. The way I choose names is also slightly different:

- Think of some name - usually out of thin air.
- Somehow try to make meaning from it given the context.
- Move on and repeat if no associated meaning reveals itself.

Gia came to my mind and I instantly searched for it's meaning - finding that it originated in Italy and that it's supposed to mean *"God is gracious"*. Aaaaand, let's just get one thing out of the way before this turns into a heated discussion: I like the name, but it doesn't find its basis in the meaning at all. Instead, **GIA** stands for **Generally an Information Arsenal**.

> ~~I was also confounded over the pronunciation, but I finally settled for the prevalent soft G variant.~~ Yeah multiple internal debates later, I think I like the hard variant (pronounced like *Guy-a*). It's different in a way and I like that.

This reflects the purpose of the blog perfectly. This blog is not supposed to be just information here and there and at the same time it's not meant to be a *"Sid does this today"*. There's a sweet equilibrium between the two and that's where the content of the blog lies. The blog was created with the intentions of it being mostly informative, but also fun.

## What this means

This minor revamp will take place over the next few days.

For the most part it means nothing. The most that could happens is that the blog goes through a few visual changes here and there. And this time, it'll happen.

> I hope I don't procrastinate yet again. 😬

As for the content, well it's going to get refined. And many varied posts are on the way (I have planned many in my head. What remains is making them a reality). Expect to witness heated discussions (alright that's debatable with the current follower base), my thoughts on different topics, scientific expositions, tutorials and much more! And nope, you won't be losing the informal aspect. I cherish the relative informality that I keep in the posts, so that's never going.

That's all for this one! Thank you so much for sticking around and reading this.
Loading