Skip to main content

Posts

Installing libssl1.0 on Ubuntu 22.04

Following the upgrade of distro from 20.04 to 22.04 the libssl packages got affected, this ended up causing my vpn client to fail. The client kept opening and closing immediately.  on futher investigation I found the issue as the libssl client. Attached is a screenshot of the message I was getting when I tries starting it from the terminal. Tring to install libsll1.0-dev from apt was generating the following error: Due to this installing the package was not viable via the regular way, I really didn't want to downgrade back to 20.04 as this could have meant a clean installation, and I had just come from doing that, as the upgrade wasn't successful, but I still needed to try out the new 22.04 features. Google been my best friend finally come through after a long search on how to install libssl1.0-dev. I ended up landing on this link  , here they gave some instruction on how to install libss1.0-dev. Below are the steps of installing libssl1.0-dev on ubuntu 22.04 for backward compa
Recent posts

KREDOH | BUY AIRTIME FAST & EASY AT A DISCOUNT

What is kredoh : This is a mobile applications where one can easily and conveniently buy airtime.  kredoh can be accessed via the web  kredoh.com  or  kredoh.co.ke   or via google play store  kredoh android app Kredoh is a product of   Bigmachini Enterprises What are the advantages of using kredoh : No transaction charge. Free Free Free Save money when you purchase airtime for 100 and above. Discount Discount Discount Fast & Easy.  It takes one step to buy airtime as compared to more than 5 steps when other methods are used Automatic reversal on failure Buy for other networks from mpesa and still enjoy the discount Allows buying airtime using FULIZA . What discounts does kredoh offer:  100 - 999 1% discount  eg. you will be charged KES 99  but receive 100 worth of airtime 1000 - 4999 2% discount eg. you will be charged KES 980  but received 1000 worth of airtime 5000 and above 3%   discount  eg. you will be charged KES 4850 but receive 5000 worth  airtim

Converting DateTime C# to DateTime.UTC javascript

Here is a simple way to change a C# datetime to a javascript Datetime.UTC value that can be used in the highcharts pointstart field. In C# private double DateUTCDate(DateTime date) { return date.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds } This will return a value that can be used directly in javascript series: { pointStart: dataFromCsharp, pointInterval: 3600 * 1000 // one day } highcharts pointstart only used Date.UTC values if you are timestamp for the x-axis

Creating PDF in MVC 5 using ITextSharp

Creating PDF in MVC 5 using ITextSharp For a long time I have been looking for free and cheaper ways of creating pdf documents within MVC. I have tried all the other options and none was able to give me the standard of document I wanted. After long and tiresome nights of trying to figure out the solution I stumbled upon ItextSharp... This was my life changer. Maybe it might be for you too..  Process Download ItextSharp using the Nuget Package manager and if you prefer using command line arguments you an use: Install-Package iTextSharp full documentation to this can be retrieved here Create a class that will be used to write the data you created as a byte array. How this works can be found here  or here   public class BinaryResult : ActionResult { private byte[] _fileBinary; private string _contentType; private string _fileName; public BinaryResult(byte[] fileBinary, string contentType, string fileName) { _fileBinary = f

HACKER Edition pset1

How I come to tackle the hacker Edition of pset one... My comments might not be that straight forward but feel free to comment. I opted not to use the string class for the return type for the longToString() because I was getting issues when trying to do the conversion in the calculation for the digits. ################################################################################# #include <stdio.h> #include<cs50.h> #include <string.h> //method to get number of digis input but the user int lengthString(long long int cc); //Function to check the if the length is a valid length to proceed bool isValidLength(int numOfDigits); //Fuction that will use Luhns algorithim to check validity bool isValid(int numOfDigits, long long int cc); //Function that returns the card type int cardType(int numOfDigits, long long int cc); //function that converts the card to char array char* longToString(int numOfDigits, long long int cc); /

System requirement checklist

This checklist doest explain how to make good requirements but gives you a heads up to what to look for from a requirement document before implementing a system.  Some of the items might not apply on small projects, but on large projects its a must to go through all of them and see where you stand.  Specific Functional Requirements Are all the inputs to the system specified, including their source, accuracy, range of values, and frequency?  Are all the outputs from the system specified, including their destination, accuracy, range of values, frequency, and format?  Are all output formats specified for web pages, reports, and so on?  Are all the external hardware and software interfaces specified?  Are all the external communication interfaces specified, including handshaking, error-checking, and communication protocols?  Are all the tasks the user wants to perform specified?  Is the data used in each task and the data resulting from each task specified?  Specific

Why I think we should invest in agriculture as a nation first.

Agriculture has always been dear to me. From a tender age when I planted Tomatoes in a seedbed in our back yard, watching them sprout from the nursery that I had careful prepared. Life of a plant is an interesting thing. From a small tiny seed comes this beautiful plant. Transplanting them later, and watching them grow to maturity. I had forgotten how good that feeling was, I had always had it in me, and I enjoyed bringing new life to this world, plants. We as a nation need to secure food first in order to be able to move forward as a country, until a man’s basic need is fully satisfied, he is bound to poverty, having to work for food. Hence the call to invest in Agriculture, until a man doesn’t have to worry about feeding his family a man’s true potential cannot be seen. We need to break free of this chains poverty, the chains of thinking we can’t produce enough, the chains of seeking aid from the west. Yes our country can produce more than enough, with the right technology,