<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LoggedOn]]></title><description><![CDATA[LoggedOn]]></description><link>https://loggedon.co.za</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1686414631905/5TJnqOmwz.webp</url><title>LoggedOn</title><link>https://loggedon.co.za</link></image><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 23:55:38 GMT</lastBuildDate><atom:link href="https://loggedon.co.za/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Why Delayed Invoicing Kills Cash Flow (And How to Fix It Fast)]]></title><description><![CDATA[Running a successful business or freelance practice isn't just about doing great work—it's about getting paid for it. Yet, one of the most common mistakes…]]></description><link>https://loggedon.co.za/why-delayed-invoicing-kills-cash-flow-and-how-to-fix-it-fast</link><guid isPermaLink="true">https://loggedon.co.za/why-delayed-invoicing-kills-cash-flow-and-how-to-fix-it-fast</guid><dc:creator><![CDATA[Siyathokoza Mchunu]]></dc:creator><pubDate>Tue, 06 Oct 2026 20:15:48 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/631441ae041b51e1712e38a1/4ef728c2-8240-454d-92e6-c2af227e2b7d.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Running a successful business or freelance practice isn't just about doing great work—it's about getting paid for it. Yet, one of the most common mistakes entrepreneurs make is delaying their billing. When you wait days or weeks after delivering a service to send an invoice, you aren’t just postponing income—you are actively creating cash flow bottlenecks.</p>
<h2>You Add Artificial Delay to Your Payment Cycle</h2>
<p>If a client operates on 30-day payment terms and you wait 10 days after project completion to invoice them, you’ve automatically extended your payment timeline to 40 days. Industry studies show that over half of business invoices are paid late. The longer you wait to issue the bill, the further down the client's payment queue you fall.</p>
<h2>You Increase the Risk of Inaccuracies and Disputes</h2>
<p>Invoicing right after project sign-off ensures all scope details, billable hours, and agreed line items are fresh in everyone's mind. Delayed invoices frequently trigger client pushback, invoice queries, or forgotten details—forcing you into lengthy administrative back-and-forth instead of getting paid.</p>
<h2>You Risk Regulatory Non-Compliance</h2>
<p>If you trade in South Africa, issuing invoices on time isn't just good practice—it's the law. Under Section 20 of the VAT Act, SARS requires vendors to issue valid tax invoices within 21 days of supply. Furthermore, your B2B clients require fully compliant tax invoices with all mandatory fields to claim back their input VAT.</p>
<h2>Streamline Your Billing in Seconds</h2>
<p>The fastest way to eliminate cash flow gaps is to remove invoicing friction entirely. Instead of opening spreadsheets or word processors, use a dedicated tool like <a href="https://kwikinvoice.app">kwikInvoice.app</a> to build and issue valid tax invoices in under a minute.  Whether you need to send a SARS-compliant invoice generator straight to a client's WhatsApp or generate professional PDFs on the go, instant billing guarantees you spend less time chasing admin and more time growing your business.</p>
]]></content:encoded></item><item><title><![CDATA[Identity and Access Management: Why Avoid Passwords — LoggedOn]]></title><description><![CDATA[Identity and Access Management(IAM) is one of the most tedious and risky tasks in application development. However these days, not everything has to be…]]></description><link>https://loggedon.co.za/identity-and-access-management-why-avoid-passwords-loggedon-4fbe161bc0c2</link><guid isPermaLink="true">https://loggedon.co.za/identity-and-access-management-why-avoid-passwords-loggedon-4fbe161bc0c2</guid><dc:creator><![CDATA[Siyathokoza Mchunu]]></dc:creator><pubDate>Sat, 12 Mar 2022 11:40:32 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1686413687890/e14e0928-4162-4094-92f3-d86961c4883f.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Identity and Access Management(IAM) is one of the most tedious and risky tasks in application development. However these days, not everything has to be built from scratch. You can outsource risky tasks like identity authentication to third-party applications. In this article, I will list why you need to avoid storing passwords while enhancing the security of your application.</p>
<h3 id="heading-what-is-identity-and-access-managementiam">What is Identity and Access Management(IAM)</h3>
<p>IAM is a framework of policies, processes, and technologies that enable organizations to manage identities and control access to applications. IAM can be broken down as follows:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1686413681911/e4500461-aacc-49eb-9c2b-42e59dc7ce69.png" alt /></p>
<p><strong>Authentication</strong> is the process to validate the user’s identity, this is done by verifying the user-provided credentials. Most commonly these are username/email and passwords. Additional authentication factors can be added for more security like the on One-Time pin via SMS/Email, Authentication apps, and Biometrics.</p>
<p><strong>Authorization</strong> is the process of provisioning and controlling user access. Ensuring that the user can only access or perform tasks that they are authorized to. This process follows after the user has been authenticated into the application. To better manage the authorizations process, access to resources/tasks are grouped in buckets referred to as entitlements or roles. Access provisioning is easier as the user profiles are assigned one of these “buckets”. While the app can easily validate that the task being performed is indeed in the “bucket” assigned to the user.</p>
<p><strong>Access Reviews</strong> is the process of regularly reviewing the access granted to users. Reviews are performed against standards and policies, e.g. Users that have not logged in 3 months need to have their access disabled. Access Reviews are more common internal enterprise applications rather than public applications with self-service sign-up.</p>
<h3 id="heading-how-authentication-works">How Authentication Works</h3>
<p>Authentication has the most risk as it requires the storing and verification of user credentials. Most people reuse the passwords on multiple platforms for convenience. This means that your application contains an email/password combination that can be used to access other platforms like online banking. Passwords are not stored in plaintext but a hashed/encrypted password is saved. A one-way hash function like MD5 and SHA1 is used to ensure that passwords cannot be reversed engineered. Every time the user logins, the hash function is applied to the provided password. The output is compared to the password hash against the user profile in the database.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1686413684831/cd73a7a6-8a01-4f2e-8048-08bc15999b38.png" alt /></p>
<p>This is not secure as <a target="_blank" href="https://en.m.wikipedia.org/wiki/MD5#Security">vulnerabilities</a> have been identified on one-way hash functions like MD5(used by WordPress) in recent years. The worst vulnerability is a collision attack, where two phases produce the same hash output. These do have workarounds but keeping up and mitigating against these vulnerabilities requires a lot of effort and only excites security experts. The alternative is avoiding the storing of passwords and relying on a trusted third party to validate user identity.</p>
<h3 id="heading-why-outsource-authentication">Why Outsource Authentication.</h3>
<ul>
<li><strong>Security</strong>: Keeping passwords secure task a lot of effort that does not add value to your applications. Third-party identity managers like Google, Microsoft, and LinkedIn have dedicated security experts behind their Identity Authentication services. Vulnerability is addressed within hours of being identified.</li>
<li><strong>User Experience</strong>: Delegating the user authentication may improve user application as the Identity Managers like Google offer a “one-click” authentication, this way your users can avoid filling out forms. e.g User who navigated from Gmail or other Google products will be presented with the “Continue with Google” option required to authenticate on your application. This also promotes user conversion on your application as users are not promoted with forms when clicking on links on your newsletter.</li>
<li><strong>Data Quality</strong>: Users have one less profile to manage, user information is sourced from the identity manager. e.g. profile picture. As a result, the information provided will be of quality because users only need to update information in one place. The alternative has users creating “dummy/fake” accounts just to access the application. Internal enterprise applications can have a single source of the user profile like Azure Active Directory. This provides global control of the profile across all applications. People that have left the employ of the company can have their profile deactivated in one place.</li>
</ul>
<p>Thank you for reading, I hope this clarified a few things on Identity and Access Management.</p>
<p><em>Originally published at</em> <a target="_blank" href="https://loggedon.co.za/identity-and-access-management-why-avoid-passwords"><em>https://loggedon.co.za</em></a> <em>on March 12, 2022.</em></p>
]]></content:encoded></item><item><title><![CDATA[How I convinced old school developers to use Python for APIs — LoggedOn]]></title><description><![CDATA[What do I mean by old school developers? These are developers still believing is specializing in one technology and nothing else. They learn all there is…]]></description><link>https://loggedon.co.za/how-i-convinced-old-school-developers-to-use-python-for-apis-loggedon-c0dd368e9cf8</link><guid isPermaLink="true">https://loggedon.co.za/how-i-convinced-old-school-developers-to-use-python-for-apis-loggedon-c0dd368e9cf8</guid><dc:creator><![CDATA[Siyathokoza Mchunu]]></dc:creator><pubDate>Sat, 13 Feb 2021 03:58:00 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1686413697322/bdc5a928-a968-48c5-ae15-35179e9ae681.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>What do I mean by old school developers? These are developers still believing is specializing in one technology and nothing else. They learn all there is to know about a specific technology but nothing beyond that. In this article, I am referring to Oracle data developers. Its also worth noting that this was a corporate setting, as corporate culture is a great influence.</p>
<h3 id="heading-back-story">Back story</h3>
<p>The team’s environment was simple, an Oracle forms front-end(see why I used old school) and an Oracle database backend. A shared service teams of Unix engineers and DBAs that looked after the shared environment the stack is hosted on. Application integration was mainly implemented via IBM MQ, however, rather than using Oracle Advanced Queuing(DBMS_AQ) java services were used. These services where built and hosted by a separate team, a java team. One service would poll a table on a source DB to check for records that were ready to be published. When ready, the service will build a message off this record and place it in the queue. Thereafter mark the record as published. On the receiving end, a similar service would exist. A service will poll the queue and insert those messages into the target DB table for further processing.</p>
<p>The Java team is actually doing the heavy lifting here and not the source or target developers. They only built source/target tables and sent over processing rules to the Java team. The database developer team was used to get stuff done on their behalf. On demand data access request were provided with a function or view along with database credentials. They were comfortable with working within the database, after all, they were hired as Oracle specialists.</p>
<h3 id="heading-enter-agile">Enter Agile…</h3>
<p>Now the above way of working was obviously wouldn’t survive in the current fast-paced application development. The team was not agile because a lot of its services that was outside the team. The team had to plan changes with the java team that was in-demand almost never available. When Agile came in, the feature team had to now be accountable for all of their services. This came with new requirement of building APIs that provided real-time access to data at source without a middle man facilitating the integration.</p>
<h3 id="heading-enter-python">Enter Python</h3>
<p>There were lots of discussions on how a team of Oracle Specialists is now supposed to build an API. One suggestion that was raised the Java team, was to build a generic Spring Boot application that each team would map/with their tables as objects, thereafter an API built from this would be able to perform basic CRUD functions on the mapped tables. I obviously had lots of problems with this.</p>
<p>To address the above, the team needed a scripting language that the developer can simply insert the custom SQL queries to return data and execute existing DB procedures to manipulate data. After identifying the above the answer was obvious. Python + Flask</p>
<h3 id="heading-but-how">But How?</h3>
<p>Firstly, we need to import <a target="_blank" href="https://oracle.github.io/python-cx_Oracle/">cx_Oracle</a>, a Python extension module to enables access to an Oracle Database. Next, we import flask with request and jsonify</p>
<pre><code><span class="hljs-keyword">import</span> cx_Oracle <span class="hljs-keyword">import</span> flask <span class="hljs-keyword">from</span> flask <span class="hljs-keyword">import</span> request,jsonify
</code></pre><p>We start by initializing the Flask application. Next, we create a pool of sessions connecting to the database using the cx_Oracle module. The pool will have a minimum of 2 open sessions and can scale up to 5 DB sessions</p>
<pre><code>app=flask.Flask(__name__) userpwd = <span class="hljs-string">". . ."</span> # Obtain password string <span class="hljs-keyword">from</span> a user prompt or environment variable pool = cx_Oracle.SessionPool(<span class="hljs-string">"hr"</span>,userpwd,<span class="hljs-string">"dbhost.example.com/orclpdb1"</span>, min=<span class="hljs-number">2</span>, max=<span class="hljs-number">5</span>, increment=<span class="hljs-number">1</span>, threaded=True)
</code></pre><p>The function below is to help us convert a cursor with the query results into a python dictionary for easier processing.</p>
<pre><code>def makeDictFactory(cursor): columnNames = [d[<span class="hljs-number">0</span>] <span class="hljs-keyword">for</span> d <span class="hljs-keyword">in</span> cursor.description] def createRow(*args): <span class="hljs-keyword">return</span> dict(zip(columnNames, args)) <span class="hljs-keyword">return</span> createRow
</code></pre><p>Now here is the fun part, the scaffolding developers get to play with. The <em>@app.route</em> is a Flask function to bind the function definition to the URL path of the API. Here, we are defining a function to search staff details using the staff id. In this function, you can clearly identify the SQL Query. This allows the team in question to come with a prepared SQL query that will use appropriate indexes to fast query the database and also encapsulate the broken normalisation from the API consumers. In the end, we have <em>app.run</em>() to run the Flask application.</p>
<pre><code>@app.route(<span class="hljs-string">'/search'</span>, methods=[<span class="hljs-string">'GET'</span>]) def search(): <span class="hljs-keyword">with</span> pool.acquire() <span class="hljs-keyword">as</span> con: searchSQL = ( <span class="hljs-string">"select firstname,lastname,dob "</span> <span class="hljs-string">" from hr.staff "</span> <span class="hljs-string">" where staffID=:staffID "</span> ) query_parameters = request.args staffID = query_parameters.get(<span class="hljs-string">'staffID'</span>) params = {} <span class="hljs-keyword">if</span> staffID: params.update({<span class="hljs-string">'staffID'</span>:staffID}) <span class="hljs-keyword">if</span> not params: <span class="hljs-keyword">return</span> {<span class="hljs-string">'message'</span>: <span class="hljs-string">'Invalid Request'</span>}, <span class="hljs-number">400</span> cur = con.cursor() cur.execute(searchSQL,params) cur.rowfactory = makeDictFactory(cur) <span class="hljs-keyword">return</span> jsonify(cur.fetchall()) app.run()
</code></pre><p>Compiling the above into one *.py script and you have API. It was that simple. After I demoed this to the team they were extremely happy about how an SQL query can be easily converted to a JSON response. The team voluntarily started playing around with the code, learning more about the scripting language. Since then, Python has found other uses within the team other than APIs.</p>
<p>Again thank you for readying.</p>
<p><em>Originally published at</em> <a target="_blank" href="https://www.loggedon.co.za/how-i-convinced-old-school-developers-to-use-python-for-apis/"><em>https://www.loggedon.co.za</em></a> <em>on February 13, 2021.</em></p>
]]></content:encoded></item><item><title><![CDATA[AWS is cheap only if you worry about costs — LoggedOn]]></title><description><![CDATA[Cloud is cheap only if you are pedantic about costs. A slight oversight without sufficient controls may end up in a huge bill. My AWS free-tier came to an…]]></description><link>https://loggedon.co.za/aws-is-cheap-only-if-you-worry-about-costs-loggedon-d581873ec54a</link><guid isPermaLink="true">https://loggedon.co.za/aws-is-cheap-only-if-you-worry-about-costs-loggedon-d581873ec54a</guid><dc:creator><![CDATA[Siyathokoza Mchunu]]></dc:creator><pubDate>Mon, 31 Aug 2020 20:17:06 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1686413711271/16bd1173-acfb-433e-b7cc-9bb932180599.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Cloud is cheap only if you are pedantic about costs. A slight oversight without sufficient controls may end up in a huge bill. My AWS free-tier came to an end in July, August came with a huge lesson.</p>
<p>Free-tier is meant for learning, so I set up my WordPress application attempting to follow the well-architected framework. Looking back now I did not need an ELB because I did not need or foresee a traffic surge on the blog. But August came bearing gifts</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1686413705707/e80729bf-ab2b-48b9-ae13-bc11f806ef4b.png" alt /></p>
<p>Looking at the above, you can tell I am not running a lot of resources but to have a load-balancer contribute more than 50% is absurd. Why did I use an ELB?</p>
<h4 id="heading-how-it-went-wrong">How it went wrong?</h4>
<p>I wanted to enable HTTPS on my blog. So I did a quick search and found one using ELB + AWS Certificate Manager. This was the first solution I came across. My first mistake was not looking up pricing for these resources to estimate monthly costs to see if I could afford it. AWS has a pricing page for each resource. For ELB it is available <a target="_blank" href="https://aws.amazon.com/elasticloadbalancing/pricing/?nc=sn&amp;loc=3">here</a>. Secondly, not looking to see if there are cheaper solutions. I was also lazy because I was on free-tier, so it was for “Free”.</p>
<h4 id="heading-how-i-fixed-it">How I fixed it?</h4>
<p>$17 might not be a lot for many people but for me, it is huge. As soon as I saw the bill, I deleted the ELB straight away. Left my blog with HTTPS disabled for almost a week. During this time I did my homework looking for alternative cheaper solutions. I am using the Bitnami AMI to host the blog, and it turns out I did not even have to buy an SSL certificate[another unnecessary spend]. Following the instructions <a target="_blank" href="https://docs.bitnami.com/aws/faq/administration/generate-configure-certificate-letsencrypt/">here</a>, I could configure a free auto-renew LetsEncrpyt certificate with one script and a few prompts. I know, it’s embarrassing. I call it “school fees” and I am sure some have paid more.</p>
<h4 id="heading-what-did-i-learn">What did I learn?</h4>
<p>Be pedantic about costs. I have created budgets and alerts to make sure this does not happen again or happens as early as possible to afford to correct it in time. In-fact budgets should be the first thing you set up before you launch any resources just in case you fall asleep on the wheel as I did. Like always thank you for reading. Please do share your stories with me as well. Tweet me <a target="_blank" href="https://twitter.com/siyamchunu?lang=en">@siyamchunu</a></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1686413708614/d666340a-9c04-4b9d-85ef-ec5bc58a1338.jpeg" alt /></p>
<p><em>Originally published at</em> <a target="_blank" href="https://www.loggedon.co.za/aws-is-cheap-if-you-worry-about-costs/"><em>https://www.loggedon.co.za</em></a> <em>on August 31, 2020.</em></p>
]]></content:encoded></item></channel></rss>