Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,197,800 members, 7,965,954 topics. Date: Friday, 04 October 2024 at 05:59 AM

Playforkeeps's Posts

Nairaland Forum / Playforkeeps's Profile / Playforkeeps's Posts

(1) (2) (of 2 pages)

Nairaland / General / Re: Ugly Web Design Is A Problem, And I’m Here To Fix That! by Playforkeeps(m): 12:06pm On May 07, 2020
You can contact me on whatsapp +234 808-9854575
Nairaland / General / Ugly Web Design Is A Problem, And I’m Here To Fix That! by Playforkeeps(m): 12:01pm On May 07, 2020
Hey guys, I’m a web developer and I make great websites that are responsive and can adjust to fit any screen size.
Im sure you are as tired as I am of seeing ugly layouts, well you’re not the only one and it’s time to do something about it. Maybe your site needs a total redesign and even migration, well, were in luck because I happen to be a Linux guy so managing a server is second nature and you can be confident in your servers meeting concurrency needs so we can meet all client needs and exceed expectations. Even if your application needs to use more data, then that too is not a problem, it just gives us the option of implementing a database; PostgreSQL is my goto choice.
Currently I’m freelancing so I’m open to any sort of project that my skills can fill. Check out a portfolio site I made and hosted on an nginx server : http://3.8.240.62/
Beautiful right ? I could make an even better one for your business. Ugly design has no excuse.

Career / Re: Basics Of Computer Networking (front End Perspective) by Playforkeeps(m): 8:57am On Apr 29, 2020
IdeeEsperanza:
Awesome
Thanks for the feedback ��
Career / Basics Of Computer Networking (front End Perspective) by Playforkeeps(m): 8:08am On Apr 29, 2020
Basics of Networking
Like never before in history, the world is more interconnected than ever, and this is made possible by a lot of small components working together under the hood to simplify networking tasks such as visiting Nairaland. A lot of what happens when you make a request in your browser to visit a webpage is abstracted away just like everywhere else in the world of computers. I intend to demystify and explain in simpler terms some of the things that happen when you input a target URL into your browser and how you get the right response from the website in response. We will get to see how a web request works and look at the types of different responses the server can send to your Browser.
Networking is one of the major building blocks of the Web as we know it today, but even at that there could be some confusion as to what exactly Networking means. Let’s try and get a clearer picture of the basic concepts of Networking in a way that is easy enough for a beginner to understand. I cannot possibly talk about all aspects of Networking in this post as that is too exhaustive and would require a book, but what i try to do here is to show that none of what happens in a client-server model is magic, although sometimes they are often indistinguishable.
I hope for this post to be a resource for those who may just be curious on what happens behind the scenes and this post can also be used as a reference by Web developers and programmers. Positive feedback and corrections are always appreciated.

So let me begin by asking a rhetorical question; How does the internet even work? And what does it mean to browse the Web? Well it’s very simple, let’s say i needed to visit my nairaland home page, i would just open any browser of my choice and type the following address:
https://www.nairaland.com/playforkeeps which happens to be the specific URL that links to my page on Nairaland’s own website (Servers). And what exactly is a URL anyway? well, it simply means Uniform Resource Location all it does is to provide the address of a specific site or file wanted by the client, in this case its the direct path to my page on nairaland. Its just how resources are identified on the network.
Lets take a look at the components that make a URL what it is and what each part is responsible for.

HTTPS:// Hyper Text Transfer Protocol is an indicator of the type of protocol that the im using to make the request to Nairaland. The HTTP protocol can be found at the Application Layer of the IP protocol suite. WIkipedia says “The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems.” In this case I am using HTTP/2 which uses TLS to make connections more secure than in the previous version of the protocol.
WWW Represents World Wide Web and it indicates the Hostname or the sub-domain.
Nairaland.com This is the domain name of the URL, and it is unique for the Top Level Domain .COM. What this means is that there can’t be two servers with the same domain name in the same TLD, the alternative would be to use .ORG or any other suitable TLD.
.com tld
/playforkeeps This is the path that holds my home page in the Nairaland domain. It's just a subpage.
And that is all that is suitable for a valid URL.
In most enterprise networking environments, you will have a router, and what a router simply does is to connect the local network to the wider internet. Once the router has connected successfully, your query (https://www.nairaland.com/playforkeeps) will be submitted to your ISP (Internet Service Provider e.g. MTN). And the reason I have to allow that is because MTN like all other ISPs has a Domain Name Server (DNS), and what DNS does is to convert the url query (https://www.nairaland.com/playforkeeps/) from the human readable letters to a numerical IP address. The url is converted to an IP because this is the way the Server (Nairaland’s servers) which owns the web page i requested can be found. Once the right Server is found after my request must have hopped from different servers on the internet, my Browser will establish a HTTP connection with the Server and then the Browser sends a HTTP GET request to the server with the specific resource passed along in the GET request. If my account is active, Nairaland will then go ahead and render it in a HTML response to my Browser and then like magic, i am at my home page at which point we can say my request to the Nairaland was successful.
Let's take a look at what a typical Request message looks like for illustration purposes, as a request message can be much more verbose.

Request message:
a request line (e.g., GET /images/logo.png HTTP/1.1)
request header fields (e.g., Accept-Language: en, Content-Type: text/html; charset=UTF-cool
Host (e.g., www.nairaland.com )
an optional message body
The GET verb we used is one of a few others. The HTTP/1.0 specification defined the GET, HEAD and POST methods and the HTTP/1.1 specification added five new methods: OPTIONS, PUT, DELETE, TRACE and CONNECT. All of these methods can be used but only few of them have frequent application. If everything is right in the request message, the server in turn will send a response message to the requesting client and it will have the following components:

a status line which includes the status code and reason message (e.g., HTTP/1.1 200 OK, which indicates that the client's request succeeded)
response header fields (e.g., Content-Type: text/html)
an empty line
an optional message body

This is just a simple introduction to the client-server model workings using the HTTP Protocol. In the response message there will always be a status code which indicates what happened to the request instance, and a code 200 means the HTTP connection to the domain was successful, apart from code 200, there are four other codes. All of the response status codes are as follow:

Informational 1XX
Successful 2XX
Redirection 3XX
Client Error 4XX
Server Error 5XX

Additional Links
https://en.wikipedia.org/wiki/Subdomain
https://en.wikipedia.org/wiki/Hypertext_Transfer_

1 Like

Programming / "How Does The Internet Work?" A Quick Guide To Computer Networking For The User by Playforkeeps(m): 11:44am On Apr 17, 2020
Basics of Networking
Like never before in history, the world is more interconnected than ever, and this is made possible by a lot of small components working together under the hood to simplify networking tasks such as visiting Nairaland. A lot of what happens when you make a request in your browser to visit a webpage is abstracted away just like everywhere else in the world of computers. I intend to demystify and explain in simpler terms some of the things that happen when you input a target URL into your browser and how you get the right response from the website in response. We will get to see how a web request works and look at the types of different responses the server can send to your Browser.
Networking is one of the major building blocks of the Web as we know it today, but even at that there could be some confusion as to what exactly Networking means. Let’s try and get a clearer picture of the basic concepts of Networking in a way that is easy enough for a beginner to understand. I cannot possibly talk about all aspects of Networking in this post as that is too exhaustive and would require a book, but what i try to do here is to show that none of what happens in a client-server model is magic, although sometimes they are often indistinguishable.
I hope for this post to be a resource for those who may just be curious on what happens behind the scenes and this post can also be used as a reference by Web developers and programmers. Positive feedback and corrections are always appreciated.

So let me begin by asking a rhetorical question; How does the internet even work? And what does it mean to browse the Web? Well it’s very simple, let’s say i needed to visit my nairaland home page, i would just open any browser of my choice and type the following address:
https://www.nairaland.com/playforkeeps which happens to be the specific URL that links to my page on Nairaland’s own website (Servers). And what exactly is a URL anyway? well, it simply means Uniform Resource Location all it does is to provide the address of a specific site or file wanted by the client, in this case its the direct path to my page on nairaland. Its just how resources are identified on the network.
Lets take a look at the components that make a URL what it is and what each part is responsible for.

HTTPS:// Hyper Text Transfer Protocol is an indicator of the type of protocol that the im using to make the request to Nairaland. The HTTP protocol can be found at the Application Layer of the IP protocol suite. WIkipedia says “The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems.” In this case I am using HTTP/2 which uses TLS to make connections more secure than in the previous version of the protocol.
WWW Represents World Wide Web and it indicates the Hostname or the sub-domain.
Nairaland.com This is the domain name of the URL, and it is unique for the Top Level Domain .COM. What this means is that there can’t be two servers with the same domain name in the same TLD, the alternative would be to use .ORG or any other suitable TLD.
.com tld
/playforkeeps This is the path that holds my home page in the Nairaland domain. It's just a subpage.
And that is all that is suitable for a valid URL.
In most enterprise networking environments, you will have a router, and what a router simply does is to connect the local network to the wider internet. Once the router has connected successfully, your query (https://www.nairaland.com/playforkeeps) will be submitted to your ISP (Internet Service Provider e.g. MTN). And the reason I have to allow that is because MTN like all other ISPs has a Domain Name Server (DNS), and what DNS does is to convert the url query (https://www.nairaland.com/playforkeeps/) from the human readable letters to a numerical IP address. The url is converted to an IP because this is the way the Server (Nairaland’s servers) which owns the web page i requested can be found. Once the right Server is found after my request must have hopped from different servers on the internet, my Browser will establish a HTTP connection with the Server and then the Browser sends a HTTP GET request to the server with the specific resource passed along in the GET request. If my account is active, Nairaland will then go ahead and render it in a HTML response to my Browser and then like magic, i am at my home page at which point we can say my request to the Nairaland was successful.
Let's take a look at what a typical Request message looks like for illustration purposes, as a request message can be much more verbose.

Request message:
a request line (e.g., GET /images/logo.png HTTP/1.1)
request header fields (e.g., Accept-Language: en, Content-Type: text/html; charset=UTF-cool
Host (e.g., www.nairaland.com )
an optional message body

The GET verb we used is one of a few others. The HTTP/1.0 specification defined the GET, HEAD and POST methods and the HTTP/1.1 specification added five new methods: OPTIONS, PUT, DELETE, TRACE and CONNECT. All of these methods can be used but only few of them have frequent application. If everything is right in the request message, the server in turn will send a response message to the requesting client and it will have the following components:

a status line which includes the status code and reason message (e.g., HTTP/1.1 200 OK, which indicates that the client's request succeeded)
response header fields (e.g., Content-Type: text/html)
an empty line
an optional message body


This is just a simple introduction to the client-server model workings using the HTTP Protocol. In the response message there will always be a status code which indicates what happened to the request instance, and a code 200 means the HTTP connection to the domain was successful, apart from code 200, there are four other codes. All of the response status codes are as follow:

Informational 1XX
Successful 2XX
Redirection 3XX
Client Error 4XX
Server Error 5XX


Additional Links
https://en.wikipedia.org/wiki/Subdomain
https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol

1 Like 1 Share

Programming / Re: Python For Accountants by Playforkeeps(m): 7:46am On Apr 15, 2020
//
Programming / Re: DJANGO Payment Solutions by Playforkeeps(m): 7:44am On Apr 15, 2020
silento:
See what I was trying to make u understand is that every thing in programming is 0s 1s not a magical files or jargons

Most api calls are like normal http request you do like visiting nairaland with your browser but this time around with small flavours that's the header

And instead of get mostly is post method


For example a php example of haystack


$curl = curl_init() here library that do the http is fired up

$email = "your@email.com";
$amount = 30000; //the amount in kobo. This value is actually NGN 300

curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.paystack.co/transaction/initialize",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount'=>$amount,
'email'=>$email,
]),
CURLOPT_HTTPHEADER => [
"authorization: Bearer sk_test_36658e3260b1d1668b563e6d8268e46ad6da3273", //replace this with your own test key
"content-type: application/json",
"cache-control: no-cache"
],
));

If you look at about incomplete code u will see that
The url was visited
https://api.paystack.co/transaction/initialize
But instead as get now as post and post data was supplied which is the amount etc

Then header with auth and other was also supplied once the api verify the auth it will go to post data and perform what's it is supposed to do


Now to reimplement this in python http request library is what you need if u are good with python finding such library in standard lib won't be difficult for you

Just to clear a few misconceptions, you can't just access an API's endpoints in any language/library you want. API's are designed and optimised for specific usage on specific platforrms. Yes, Computers are about 0's and 1's, but that doesnt mean i can just implement any library i want because that is what im comfortable with, all languages are not built equal and the backend may implement some type of auth that just doenst have a mature counterpart in another language if it isnt supported by the target platform, thats like trying to deploy a web page in a language not supported by Browsers.
Paystack supports PHP natively so everything is abstracted at the backend into the API for the developer to use, so it would be impossible to reimplement a codebase that you cant even understand what the native code does at the server-side. The best thing for OP is to write a wrapper around the Php API in Python, but that seems wasteful. The best thing is to learn a new Language/framework if you intend to interact with API's across the web on a consistent basis. I would recommend you sharpen your Node/JS skills.

1 Like

Programming / Re: I Need help With Vuejs/laravel by Playforkeeps(m): 8:27pm On Apr 14, 2020
Karlebolu:
I was able to get the answer through Google search.

There is this Javascript library that does exactly what laravel authorization does, it was what the guy used albeit in a different way.

https://pineco.de/implementing-laravels-authorization-front-end/

Great google ninja skills OP, i myself tried searching for it because ostensibly it wasn't a Vue method.

1 Like

Programming / Re: What Are The Major Apps I Need To Learn Python Language ? by Playforkeeps(m): 3:33pm On Apr 13, 2020
Hi, installing Python on a Windows machine is fairly easy, all you have to do is get the executable from the official Python site (https://www.python.org/downloads/windows/) and install it on your machine. if you could post a screenshot of your failed installation it could help in detecting what the problem is. And also, tbh, a 250MB plan is too small to be productive with because Python isn't exactly what we will call a lightweight language and you'll need to install some add-ons after the installation, most especially, Pip, which makes the task of installing additional Python packages/frameworks less laborious.
As for learning resources, i'd highly suggest you check out Corey Schafer's videos on youtube (https://www.youtube.com/user/schafer5/playlists), he teaches Python on his channel amongst other Languages & tools which are relevant to the industry. You can also check out this free PDF, https://www.davekuhlman.org/python_book_01.pdf, although it may not be too friendly to read for beginners.
Lastly keep in mind that learning a new language requires you to do a lot of self-teaching and also to be proactive as you can only get back what you put in. I hope you find those resources helpful, cheers!

1 Like

Programming / Re: What Are The Major Apps I Need To Learn Python Language ? by Playforkeeps(m): 3:32pm On Apr 13, 2020
....
Programming / Re: Python For Accountants by Playforkeeps(m): 6:26pm On Apr 12, 2020
Hey OP, 12 years is a lot of expertise to have specialization in, I myself am a graduate of Finance, so I’ve always been curious about the possibilities of implementing Python in Business as a whole. I may be wrong but I’m starting to believe that Python might be an overkill for most accounting tasks as there are other data analysis solutions that work better than Python at things like that and are just as intuitive.
Of course that doesn’t mean that there are no uses, just very few right now, as the field of machine learning hasn’t even peaked yet, although it’s not a young field of specialization.
One of Python’s main marketing points is how perfect it is for AI because of its host of packages and libraries (scikit-learn, Keras, Tensorflow, etc) you can select from. Most Python AI libraries can perform Machine learning tasks, some of these Machine Learning tasks can help optimize an accounting process by doing either of the following ;
Classification of data with similar features or inputs
Making accurate predictions from historic data, although other tools exist for this task and are easier to implement
And auditing too.
I’m sure there are a lot of other creative ways people mix accounting and programming, I just think it’s early now to find a defining project that does it

1 Like

Programming / Re: DJANGO Payment Solutions by Playforkeeps(m): 1:45pm On Apr 12, 2020
EngtTemmy:

I don't know JavaScript, maybe i will learn it.
Interswitch does not support DJANGO

Yea you’re right, I just took a look at it. You just have to find another payment alternative or team up with a node dev
Programming / Re: DJANGO Payment Solutions by Playforkeeps(m): 10:48pm On Apr 11, 2020
EngtTemmy:

Alright

Have you had a look at any documentation yet ?
I didn’t bother looking up anything on interswitch as I assume that enough people would have done that already considering that interswitch is a global company and will definitely support Django easily, you just have to do that work .
But as for Paystack, apparently the API code is implemented in PHP, but this is 2020 lol, so I’d just recommend you go with Node if you know any JavaScript.
Here’s the guide - https://developers.paystack.co/docs/getting-started
Programming / Re: DJANGO Payment Solutions by Playforkeeps(m): 9:46am On Apr 11, 2020
Hey could you at least specify what type of problem? Is it with Django ? Or from the payment provider’s API?
Programming / Re: Nigeria Mern Stack And Javascript Developers Thread by Playforkeeps(m): 8:09pm On Apr 10, 2020
Apparently there’s not many developers who use Vue on this forum
Programming / Re: Common good python programming practices you should know by Playforkeeps(m): 10:20am On Apr 09, 2020
gbolly1151:

Nice one
Thanks man, you’re doing a great job here man, we need more active Python/Django communities

1 Like

Programming / Re: What Is Node.js And What Can It Do, Why Should I Learn by Playforkeeps(m): 9:57am On Apr 09, 2020
palnen:
Node js is a JavaScript runtime environment,it is used for backend web development, and unlike other backend languages it's asynchronous and it's applications are numerous. I'd suggest you learn Javascript before starting Nodejs

Yeah I agree with you, it’s important to know Javascript before diving into Node, because NodeJs is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Programming / Re: Is It Advisable To Use Open Source E Commerce Software? by Playforkeeps(m): 9:47am On Apr 09, 2020
Hey OP, there’s no real benefit in building anything from scratch nowadays as there exists plenty of solutions to avoid having to reinvent the wheel every time you start a project.
And there seems to be some confusion in your question, Wordpress is a CMS while WooCommerce is a Wordpress e-commerce plug-in, depending on the tool you use to build your Web app, you may not even have to implement a CMS in your build.
So just find the right framework or CMS that fits your project’s needs and execute your plans
Science/Technology / Re: Playstation 5: Sony Reveals New Dualsense Controller - Video by Playforkeeps(m): 9:34am On Apr 09, 2020
Looks beautiful and it’s not as similar to the other one as they are claiming lol, only the white colour makes it seem like a copy
Computers / Re: Ubuntu Linux by Playforkeeps(m): 8:43pm On Apr 08, 2020
Has anyone gotten around to updating their Linux kernel with the Wireguard integration?
Programming / Re: Common good python programming practices you should know by Playforkeeps(m): 8:39pm On Apr 08, 2020
What im about to share isnt necessary a Practice, think of it as a tip. And it is how to setup a simple file server in python to be accessed by any client in your LAN. All you have to do is cd into the Server root directory and run
<code> python3 -m http.server <code/>
that will start a server on default port 8000 and if thats not suitable for you, you can pass in a custom port as an argument to the command.

1 Like

Programming / Re: Getting Started With Node: Writing A Simple Server With Node by Playforkeeps(m): 8:26pm On Apr 08, 2020
Hey OP, i checked your video out just to see if it was actually your content and it was! Its not easy putting out a tutorial video out there, cheers!
And also wouldn't it be more helpful to show the server tutorials with a Node framework such as Express? as almost no one writes code nowadays without any form of abstraction.
Programming / Re: The Best Order To Start Learning Programming For Newbies. by Playforkeeps(m): 3:31pm On Apr 07, 2020
Great list, although there are a lot of technologies a true newbie wouldn’t need to learn that are included in the list such as AI & Data Science
Programming / Re: Between Data Analysis And Programming Network Administrator Which One Is Better? by Playforkeeps(m): 3:28pm On Apr 07, 2020
Hey OP, sometimes these job roles can be really confusing which makes it important to always seek out clarification on what duty each role is expected perform.
-one difference between a Cisco Net Admin and a Network Administrator is just the specialization in Cisco technologies by the Cisco admin
-another difference is also in how they are certified, a Cisco admin in this context is someone certified through the CCNA Certification exams whilst the more vendor agnostic Network admin will be more likely to have a Comptia Network certification.

And lastly you should make it a point to explain to your friend that Data Analysis is closer to the AI sector whilst a Network Admin works closer to the OSI model, nevertheless most of these roles are intertwined and I encourage him to learn the most he can, cheers!

1 Like

Programming / Re: Why I Am Stepping Into Rust by Playforkeeps(m): 1:14pm On Apr 07, 2020
Congrats OP, I’ve been meaning to learn a new low level language and Rust has been on my mind lately, and apparently a lot of Companies have started switching to Rust from the Cs
Programming / Re: Why I Am Stepping Into Rust by Playforkeeps(m): 1:14pm On Apr 07, 2020
Congrats OP, I’ve been meaning to learn a new low level language and Rust has been on my mind lately, and apparently a lot of Companies have started switching to Rust from Cs
Programming / Re: Please Help With Javascript by Playforkeeps(m): 1:10pm On Apr 07, 2020
Creating a counter in Vue is also possible and can be done in a variety of methods. One way is to make our Vue component resemble the following;

new Vue({
el: '#app',
data() {
return {
count: 0
}
},
methods: {
increment() {
this.count++
}
}
})


And our Template will look like this:

<div id="app">
{{ count }}
<div>
<button @click="increment">+</button>
</div>
</div>

1 Like

Programming / Re: Help Web Development Issue by Playforkeeps(m): 12:54pm On Apr 07, 2020
Hey OP, it would be easier to find a solution if you stated the problem you’re trying to solve more clearly. The screenshot you attached doesn’t give much to go on
Business / Re: How To Look For Target Client/customers by Playforkeeps(m): 8:12pm On Jun 23, 2018
I think OP should try to be as empirical as possible
Entertainment / Re: Is Hip Hop Negatively Affecting Nigerian Culture? by Playforkeeps(m): 8:04pm On Jun 23, 2018
Dumb post
Celebrities / Re: Xxxtentacion Bought 4 Houses For Family Members Weeks Before His Murder by Playforkeeps(m): 7:54pm On Jun 23, 2018
#

3 Likes

(1) (2) (of 2 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 72
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.