<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Blog-Post - Tag - My Notes</title><link>https://blog.emecas.net/tags/blog-post/</link><description>Blog-Post - Tag - My Notes</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Wed, 15 May 2024 20:17:12 -0400</lastBuildDate><atom:link href="https://blog.emecas.net/tags/blog-post/" rel="self" type="application/rss+xml"/><item><title>Democracy Lab</title><link>https://blog.emecas.net/posts/2024-05-15-democracy-lab/</link><pubDate>Wed, 15 May 2024 20:17:12 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2024-05-15-democracy-lab/</guid><description><![CDATA[<p>Democracy Lab<br>
<a href="https://www.democracylab.org/" target="_blank" rel="noopener noreffer ">https://www.democracylab.org/</a><br>
Civic Infrastructure</p>
<p>DemocracyLab empowers people who use technology for public good by connecting tech-for-good projects with skilled volunteers and companies.</p>
<p>Make Tech. Do Good.</p>
<p>We connect tech-for-good projects with skilled volunteers and socially responsible companies.</p>
<p>GitHub main repo: <a href="https://github.com/DemocracyLab/CivicTechExchange" target="_blank" rel="noopener noreffer ">https://github.com/DemocracyLab/CivicTechExchange</a> <a class="star-note-link" href="/posts/2024-05-16-democracylab-civictechexchange/" title="DemocracyLab/CivicTechExchange: my star note">★&nbsp;star&nbsp;note</a></p>
<p>Blog: <a href="https://blog.democracylab.org/" target="_blank" rel="noopener noreffer ">https://blog.democracylab.org/</a></p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/3d00911d4754c92fdbe5149074dd4ae4753c359b" target="_blank" rel="noopener noreffer "><code>3d00911</code></a> in My-Notes.</em></p>]]></description></item><item><title>10 Resources to Improve Your Public Speaking Skills</title><link>https://blog.emecas.net/posts/2022-09-08-10-resources-to-improve-your-public-speaking-skills/</link><pubDate>Thu, 08 Sep 2022 16:22:38 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2022-09-08-10-resources-to-improve-your-public-speaking-skills/</guid><description><![CDATA[<p>10 Resources to Improve Your Public Speaking Skills<br>
<a href="https://www.govloop.com/community/blog/10-resources-to-improve-your-public-speaking-skills/" target="_blank" rel="noopener noreffer ">https://www.govloop.com/community/blog/10-resources-to-improve-your-public-speaking-skills/</a></p>
<p>From:  <a href="https://2022.pgconf.nyc/callforpapers/" target="_blank" rel="noopener noreffer ">https://2022.pgconf.nyc/callforpapers/</a></p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/df26058ca5d3b2e8f425f4fb6e1cb83aede9cb74" target="_blank" rel="noopener noreffer "><code>df26058</code></a> in My-Notes.</em></p>]]></description></item><item><title>git commit -m "Order Test Execution JUnit5 [blogpost] [junit5] [annotations] [testing]"</title><link>https://blog.emecas.net/posts/2021-06-25-git-commit-m-order-test-execution-junit5-blogpost-junit5-ann/</link><pubDate>Fri, 25 Jun 2021 17:37:06 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2021-06-25-git-commit-m-order-test-execution-junit5-blogpost-junit5-ann/</guid><description><![CDATA[<p>Order Test Execution in JUnit5 Jupiter<br>
<a href="https://medium.com/pareture/order-test-execution-in-junit5-jupiter-e3d61ab15f26" target="_blank" rel="noopener noreffer ">https://medium.com/pareture/order-test-execution-in-junit5-jupiter-e3d61ab15f26</a></p>
<p>import org.junit.jupiter.api.MethodOrderer.OrderAnnotation;<br>
import org.junit.jupiter.api.Order;</p>
<p>@TestMethodOrder(OrderAnnotation.class)<br>
public class TestSuite1<br>
{<br>
@Test<br>
@Order(1)<br>
public void test1() throws InterruptedException<br>
{<br>
&hellip;<br>
@Test<br>
@Order(2)<br>
public void test2() throws InterruptedException<br>
{<br>
&hellip;<br>
&hellip;</p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/3741e5e23d4fdf2a70197b6b05e08b2e554fc80b" target="_blank" rel="noopener noreffer "><code>3741e5e</code></a> in My-Notes.</em></p>]]></description></item><item><title>Computational model reveals how the brain manages short-term memories</title><link>https://blog.emecas.net/posts/2021-01-01-computational-model-reveals-how-the-brain-manages-short-term/</link><pubDate>Fri, 01 Jan 2021 10:32:52 -0500</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2021-01-01-computational-model-reveals-how-the-brain-manages-short-term/</guid><description><![CDATA[<p>Computational model reveals how the brain manages short-term memories<br>
<a href="https://www.salk.edu/news-release/computational-model-reveals-how-the-brain-manages-short-term-memories/" target="_blank" rel="noopener noreffer ">https://www.salk.edu/news-release/computational-model-reveals-how-the-brain-manages-short-term-memories/</a></p>
<p>Salk scientists show how “working memories” might be stored by neurons that can maintain information longer than average<br>
DOI: 10.1038/s41593-020-00753-w <a href="https://doi.org/10.1038/s41593-020-00753-w" target="_blank" rel="noopener noreffer ">https://doi.org/10.1038/s41593-020-00753-w</a></p>
<p>Strong inhibitory signaling underlies stable temporal dynamics and working memory in spiking neural networks<br>
<a href="https://www.nature.com/articles/s41593-020-00753-w" target="_blank" rel="noopener noreffer ">https://www.nature.com/articles/s41593-020-00753-w</a></p>
<p>Robert Kim &amp; Terrence J. Sejnowski</p>
<p>Nature Neuroscience volume 24, pages129–139(2021)Cite this article</p>
<p>2610 Accesses</p>
<p>94 Altmetric</p>
<p>Metrics</p>
<p>Abstract</p>
<p>Cortical neurons process information on multiple timescales, and areas important for working memory (WM) contain neurons capable of integrating information over a long timescale. However, the underlying mechanisms for the emergence of neuronal timescales stable enough to support WM are unclear. By analyzing a spiking recurrent neural network model trained on a WM task and activity of single neurons in the primate prefrontal cortex, we show that the temporal properties of our model and the neural data are remarkably similar. Dissecting our recurrent neural network model revealed strong inhibitory-to-inhibitory connections underlying a disinhibitory microcircuit as a critical component for long neuronal timescales and WM maintenance. We also found that enhancing inhibitory-to-inhibitory connections led to more stable temporal dynamics and improved task performance. Finally, we show that a network with such microcircuitry can perform other tasks without disrupting its pre-existing timescale architecture, suggesting that strong inhibitory signaling underlies a flexible WM network.</p>]]></description></item><item><title>postgresql in-memory</title><link>https://blog.emecas.net/posts/2020-07-27-postgresql-in-memory/</link><pubDate>Mon, 27 Jul 2020 20:56:10 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-07-27-postgresql-in-memory/</guid><description><![CDATA[<p>Approaches to Achieve in-Memory Table Storage with PostgreSQL Pluggable API<br>
<a href="https://www.highgo.ca/2020/07/24/approaches-to-achieve-in-memory-table-storage-with-postgresql-pluggable-api" target="_blank" rel="noopener noreffer ">https://www.highgo.ca/2020/07/24/approaches-to-achieve-in-memory-table-storage-with-postgresql-pluggable-api</a><br>
1. Introduction<br>
Recently, I have had an opportunity to perform some in-depth feasibility study in-memory table using PostgreSQL’s pluggable storage API. The pluggable storage API was introduced Since PostgreSQL v12 and it allowed custom table storage Access Methods (AM for short) to be developed. Some famous examples include zheap from EDB, which aims to store a much more simplified tuple structure to achieve vacuum free storage and zedstore from Greenplum to utilize columnar storage. But they do not utilize in-memory storage and still interacts with existing buffer manager to persist data to disk.<br>
Yes, it would be nice to have in-memory tables if they would perform faster. It would definitely be a very interesting challenge if we could achieve an in-memory table storage engine and design it in a way that will give serious performance advantages using the existing pluggable storage API architecture.<br>
Developing a custom storage AM is no easy task and it requires a very deep understanding on how the current PostgreSQL storage engine works before we are able to improve it. In addition to redefining the tuple structure and custom algorithms to store and retrieve, it is also possible to define our own in-memory based storage module to handle the insertion and retrieval of tuple instead of utilizing the same buffer manager routines like what heap, zheap and zedstore access methods are using.<br>
In this blog, I will briefly talk about the capability of pluggable storage API and share some progress on our in-memory table analysis</p>]]></description></item><item><title>Swagger 2</title><link>https://blog.emecas.net/posts/2020-06-25-swagger-2/</link><pubDate>Thu, 25 Jun 2020 15:38:44 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-06-25-swagger-2/</guid><description><![CDATA[<p>Setting Up Swagger 2 with a Spring REST API<br>
<a href="https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api" target="_blank" rel="noopener noreffer ">https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api</a><br>
Nowadays, front-end and back-end components often separate a web application. Usually, we expose APIs as a back-end component for the front-end component or third-party app integrations.</p>
<p>In such a scenario, it is essential to have proper specifications for the back-end APIs. At the same time, the API documentation should be informative, readable, and easy to follow.</p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/9d1d48d3e87f6c21cbf1d2848259d536603156bb" target="_blank" rel="noopener noreffer "><code>9d1d48d</code></a> in My-Notes.</em></p>]]></description></item><item><title>7 Popular Unit Test Naming Conventions</title><link>https://blog.emecas.net/posts/2020-04-29-7-popular-unit-test-naming-conventions/</link><pubDate>Wed, 29 Apr 2020 18:54:24 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-04-29-7-popular-unit-test-naming-conventions/</guid><description><![CDATA[<p>7 Popular Unit Test Naming Conventions<br>
<a href="https://dzone.com/articles/7-popular-unit-test-naming" target="_blank" rel="noopener noreffer ">https://dzone.com/articles/7-popular-unit-test-naming</a></p>
<p>1. MethodName_StateUnderTest_ExpectedBehavior: There are arguments against this strategy that if method names change as part of code refactoring 	than test name like this should also change or it becomes difficult to comprehend at a later stage. Following are some of the example:<br>
isAdult_AgeLessThan18_False<br>
withdrawMoney_InvalidAccount_ExceptionThrown<br>
admitStudent_MissingMandatoryFields_FailToAdmit<br>
2. MethodName_ExpectedBehavior_StateUnderTest: Slightly tweeked from above, but a section of developers also recommend using this naming technique. This technique also has disadvantage that if method names get changed, it becomes difficult to comprehend at a later stage. Following is how tests in first example would read like if named using this technique:<br>
isAdult_False_AgeLessThan18<br>
withdrawMoney_ThrowsException_IfAccountIsInvalid<br>
admitStudent_FailToAdmit_IfMandatoryFieldsAreMissing<br>
3. test[Feature being tested]: This one makes it easy to read the test as the feature to be tested is written as part of test name. Although, there are arguments that the “test” prefix is redundant. However, some sections of developer love to use this technique. Following is how the above tests would read like if named using this technique:<br>
testIsNotAnAdultIfAgeLessThan18<br>
testFailToWithdrawMoneyIfAccountIsInvalid<br>
testStudentIsNotAdmittedIfMandatoryFieldsAreMissing<br>
4. Feature to be tested: Many suggests that it is better to simply write the feature to be tested because one is anyway using annotations to identify method as test methods. It is also recommended for the reason that it makes unit tests as alternate form of documentation and avoid code smells. Following is how tests in first example would read like if named using this technique:<br>
IsNotAnAdultIfAgeLessThan18<br>
FailToWithdrawMoneyIfAccountIsInvalid<br>
StudentIsNotAdmittedIfMandatoryFieldsAreMissing<br>
5. Should_ExpectedBehavior_When_StateUnderTest: This technique is also used by many as it makes it easy to read the tests. Following is how tests in first example would read like if named using this technique:<br>
Should_ThrowException_When_AgeLessThan18<br>
Should_FailToWithdrawMoney_ForInvalidAccount<br>
Should_FailToAdmit_IfMandatoryFieldsAreMissing<br>
6. When_StateUnderTest_Expect_ExpectedBehavior: Following is how tests in first example would read like if named using this technique:<br>
When_AgeLessThan18_Expect_isAdultAsFalse<br>
When_InvalidAccount_Expect_WithdrawMoneyToFail<br>
When_MandatoryFieldsAreMissing_Expect_StudentAdmissionToFail<br>
7. Given_Preconditions_When_StateUnderTest_Then_ExpectedBehavior: This approach is based on naming convention developed as part of Behavior-Driven Development (BDD). The idea is to break down the tests into three part such that one could come up with preconditions, state under test and expected behavior to be written in above format. Following is how tests in first example would read like if named using this technique:<br>
Given_UserIsAuthenticated_When_InvalidAccountNumberIsUsedToWithdrawMoney_Then_TransactionsWillFail</p>]]></description></item><item><title>JUnit 5 vs. Spock</title><link>https://blog.emecas.net/posts/2020-03-12-junit-5-vs-spock/</link><pubDate>Thu, 12 Mar 2020 08:45:57 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-03-12-junit-5-vs-spock/</guid><description><![CDATA[<p>JUnit 5 vs. Spock feature showdown<br>
<a href="https://bmuschko.com/blog/junit5-vs-spock-showdown/" target="_blank" rel="noopener noreffer ">https://bmuschko.com/blog/junit5-vs-spock-showdown/</a><br>
January 1, 2018</p>
<p>For a quick reference, you can directly jump to a specific test framework feature:<br>
Test execution<br>
Fixture set up and tear down<br>
Descriptive test names<br>
Disabling tests<br>
Expecting thrown exceptions<br>
Repeating test execution<br>
Declaring test execution timeouts<br>
Conditional test execution<br>
Data-driven tests<br>
Mocking<br>
Labeling and filtering test execution<br>
Extending the test framework</p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/76d3a6ae17b0921e876b10adb93de4f8b0a1b88d" target="_blank" rel="noopener noreffer "><code>76d3a6a</code></a> in My-Notes.</em></p>]]></description></item><item><title>Can Machines And Artificial Intelligence Be Creative</title><link>https://blog.emecas.net/posts/2020-03-02-can-machines-and-artificial-intelligence-be-creative/</link><pubDate>Mon, 02 Mar 2020 12:16:21 -0500</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-03-02-can-machines-and-artificial-intelligence-be-creative/</guid><description><![CDATA[<p>Can Machines And Artificial Intelligence Be Creative?<br>
<a href="https://www.forbes.com/sites/bernardmarr/2020/02/28/can-machines-and-artificial-intelligence-be-creative/#781c16a44580" target="_blank" rel="noopener noreffer ">https://www.forbes.com/sites/bernardmarr/2020/02/28/can-machines-and-artificial-intelligence-be-creative/#781c16a44580</a></p>
<p>interview: Marcus du Sautoy<br>
<a href="https://www.youtube.com/watch?v=7tHIHCQccjg" target="_blank" rel="noopener noreffer ">https://www.youtube.com/watch?v=7tHIHCQccjg</a><span class="embed embed-video" data-yt="7tHIHCQccjg"><button type="button" class="embed-play">&#x25BA; Play here</button> <span class="embed-title">Can Machines And Artificial Intelligence Be Creative? - with Oxford Professor Marcus du Satoy</span>
            <span class="embed-meta"> · Bernard Marr on YouTube · copied 2026-11-20</span>
        </span></p>
<p>Book:<br>
The Creativity Code: Art and Innovation in the Age of AI Hardcover<br>
April 15, 2019<br>
<a href="https://www.amazon.com/Creativity-Code-Art-Innovation-Age/dp/0674988132/" target="_blank" rel="noopener noreffer ">https://www.amazon.com/Creativity-Code-Art-Innovation-Age/dp/0674988132/</a></p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/9b5e55d1cbbf27c8fa19e5d16799c8702d8707d1" target="_blank" rel="noopener noreffer "><code>9b5e55d</code></a> in My-Notes.</em></p>]]></description></item><item><title>Collective Intelligence</title><link>https://blog.emecas.net/posts/2020-02-23-collective-intelligence/</link><pubDate>Sun, 23 Feb 2020 17:34:00 -0500</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-02-23-collective-intelligence/</guid><description><![CDATA[<p>A Stack to Build Collective Intelligence Technology<br>
<a href="https://www.welcometothejungle.com/en/articles/btc-collective-intelligence-stack-bluenove" target="_blank" rel="noopener noreffer ">https://www.welcometothejungle.com/en/articles/btc-collective-intelligence-stack-bluenove</a><br>
January 29, 2020</p>
<p>- a rich schema that models concepts such as themes, ideas, messages, reactions, sentiments<br>
- how the different personas or actors need to interact with the system<br>
- every post being tied into the IBM Watson Natural Language Understanding API<br>
- a microservice called Holmes to communicate with the IBM Watson APIs<br>
- a developer should not have to step out of their comfort zone in order to generate their microservice—or in other words, we don’t force a Python developer to install Node.js in order to generate their Python microservice<br>
- 3 different algorithm<br>
- a semantic analysis clustering algorithm for on-site live debates. This uses a combination of unsupervised and then supervised learning in order to group and classify responses into topics<br>
- an NLP algorithm designed to find actionable solutions in text<br>
-<br>
- precision, recall, and F1-score (harmonic average of precision and recall) as part of our scoring</p>]]></description></item></channel></rss>