₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,067 members, 8,420,141 topics. Date: Thursday, 04 June 2026 at 12:06 PM

Toggle theme

Codeigniter's Posts

Nairaland ForumCodeigniter's ProfileCodeigniter's Posts

1 2 3 4 5 6 7 8 ... 11 12 13 14 15 16 17 18 19 (of 21 pages)

ProgrammingRe: Node Js Gurus @nswer This Biko by codeigniter(m): 11:53pm On Sep 15, 2020
cixak95211:
In memory dbs like Redis and Memcached are up to 300% faster in i/o operations that disk-based db like mongodb, mysql; because they reside in volatile RAM. Although you could persist the data once in a while, if persistence matters to you . . That's why it is preferred and it also prevents you from making the call to the DB [round-trip calling]. Secondly, sessions dont scale well, at least, vertically. Imagine you have deployed your app to 10 database replicas ....This can be disastrous, cos the first login request could go to Database A
and if you're doing a round-robin, the next request, for that same user could go to Database E
Now E doesnt hold the login session, it's held in A. To beat this problem, you have to sync your session data across all 10 Databases each time a user logs in, that's 10 round-trip calls. And you might ask why 10 DBS. . Facebook saves as of 2019, 1.5 petabytes of storage, that is not gonna fit into one database, not even into 10,000 databases, if they want efficiency
It's great that u think at scale, and I understand what u are driving at. But what i saying is about saving most. Do u work for company or freelance
ProgrammingRe: Node Js Gurus @nswer This Biko by codeigniter(m): 7:54pm On Sep 15, 2020
cixak95211:
I just gave you a summary of how to invalidate tokens in node js . Creating tables to look up data will make the application stateful . . . That is called a session. Its fine if you want to go that way. Using jwts, doesnt require a session, in short, [using a session kills the original intention of JWTs] ,therefore keeping the application stateless. Its similar to using callbacks inside a try/catch blocks. which is an anti-pattern. It kills the need for that. There are myriads of myriads of web applications that use jwt for authentication and dont have issues. it might seem hard for you, perhaps cos u are new to nodejs, but like i said earlier, as your knowledge of nodejs grows, you will see it was pretty easy after all.
ok I get It, I haven't really built any node applications using jwt. u were right when u said there is no need to make the application stateful when using jwt, what I was saying was instead using in memory db, which means u might be using another db e.g mongodb. I would rather create a session, to save cost, but if I don't a db then I can use redis or others. well I don't think I will go back to nodejs, except maybe on jobs, but I won't use for my personal projects
ProgrammingRe: Node Js Gurus @nswer This Biko by codeigniter(m): 2:11pm On Sep 15, 2020
cixak95211:
Authentication, like you said, is one of the hardest things in Nodejs, especially if you want to do it properly. Most people just whip up a JWT -based token and thats' all. but it comes with a problem, e.g how to invalidate a token. The token does expire. But the problem is what if user permissions are changed before the token expires e..g downgrading a user. If the user has saved the token somehow, they can still use it access to former [now obsolete] permissions.
So you must always 1.) get fresh user's tats from the DB at authenticated request and NOT RELY on what the jwt says, even if yes, you did sign it and it was not tampered i.e. the signature is intact and 2.) implement an in-memory store like Memcached and Redis to keep blacklisted tokens till they expire.,,, a very fast way to invalidate tokens. It doesn end there.
You should 3.) implement refresh tokens + access token architecture, this way it's easy to mitigate an attack when somebody steals your token or logs in from another device and/or ip address, however you want it.
Stages #2 and especially #3 is where it gets pretty difficult for newbies. But as with other things in life, perfections comes via practice.
that would work but it going to add more to d bill. the problem with node js jwt is that it doesn't create a table with the application/backend which makes it difficult to invalidate the token. anyways, I would prefer to use a table in my db.
ProgrammingRe: Review My App I Built From Scratch by codeigniter(m): 11:18am On Sep 15, 2020
jackest1:
Benin
bro, please did u pay the $25 fee to google play store before u were able to deploy your application
ProgrammingRe: Node Js Gurus @nswer This Biko by codeigniter(m): 11:06am On Sep 15, 2020
Taofeekdboy:
From a Django developer as well, I have been working closely with node js recently and if you are coming from Django rest framework then node js and express will be something really easy to work with provided your Javascript understanding is very solid. Based on the authentication, I work closely with JWT because passport authentication to me is a little bit tedious and working with MERN stack makes it easy to work with JWT authentication. I will release a project I am working on it soon.
yes, coming from drf makes it easier because u will have understood the concepts which is the most important thing, but drf takes care of all the manual work, e.g I use permission based class and add an auth library at the settings which will depend on drf token table, drf is very easy if u are using class based view. jwt is easier than password but when I was doing MERN, i read that the token doesn't expire and if another person access ur device they can easily copy the token. I built a personalized API auth for flask I use decorators to make sure it can be used by anyone. i might release to make developer more lazy! lol. why did u switch to node.js, I would like to know I am very u will miss Django orm, except if u use mongoose
ProgrammingRe: Node Js Gurus @nswer This Biko by codeigniter(m): 12:47am On Sep 15, 2020
cixak95211:
Nah, far from that . . thats for when you're writing codes on ur laptop. As part of your learning, you will venture into something called CI/CD. Pls google the full meaning. simply put, its a workflow that allows for continuous integration. I'll give u a case study of our own flow.
We have 6 servers in AWS and they are always online. Once we make an update to github, it automatically pushes itself to AWS but code is not deployed yet, that's only a staging environment. It gives us a unque environment to test and test. When satisfied, we push to production. I like to do it manually, when am bored and here is what i do.
1. log into server via ssh
2. turn on bastion host, and update it to mirror staging environment, which as the latest update..
3. We use nginx as a reverse proxy server . . . google what a reverse proxy is for claririfcation, it might not make sense tho for now
4. Open nginx config and reroute all traffic to bastion host.
5. Do a hot reload. A hot reload will make sure connections are not dropped, cos users are online, but it will switch all users automatically to the new version. You wont even notice.
6. Update main application.
7. Open nginx config again and reroute all traffic to main app
8. Do a hot reload once more.
9. Shut down bastion host and exit out of ssh server.

For our API, its running under PM2 process manager, and we have a flag called "watching" . . which means when there is a change, it will auto build and deploy itself and do a hot reload. It will do exactly the same thing I listed above but this time automatically. Its a very long story and might not make sense now. But trust me, your time will come.
I have my forum running on AWS and I do things manually, though I use supervisor instead of pm2 cause i am using python.

but I don't touch nginx

I push the code to github

then I ssh into the server

I go to my Ubuntu root directory
I activate my venv
cd to the project
pull the new changes
if there is any change in staticfiles, I recollect them
lastly, I restart my supervisor

and my forum is updated
this does not take up to 10min of my time. maybe because I am the only one writing code on the repo

though I am not a devops engineer but I will like to know how to automate with CI/CD in d future.

I started with node js. but I don't do node js anymore cos of it's callback, hell to debug, immature framework like express js though it is getting better, difficult orm like mongoose, to authenticate na war in nodejs. well some of u might say it not that difficult, but as a self taught learning from free materials, it is very difficult. the only advantage I missed in nodejs is it events and asynchronous native which I can simulate in python with asyncio. in short if I didn't switch to python on web I would have stayed with reactjs with hooks! lol. I prefer flask for APIs and small SSR site, Django for big SSR site like my forum, though I can still write APIs or SSR site with ejs or handlebars in nodejs, cos I spent more time with that js runtime than flask or django
ProgrammingRe: Yoooo! Check Out This New App � by codeigniter(m): 11:47pm On Sep 14, 2020
the design is very nice, how many people did it take to pull this off.
ProgrammingRe: Mehn Not Easy Oooo I Coded It A To Z by codeigniter(m): 11:42pm On Sep 13, 2020
peterangelo:
grin


My brain is paining me

Is not easy to build a whole site by urself no body supporting you. Finally I did it
it is cool, I know how difficult it is to build something that complex. I also built my forum from scratch with vanilla js, jQuery, python, css, HTML e.t.c it is a lot of work. huge code base
ProgrammingRe: How Much Will I Pay A Programmer To Create A Website Like Binance.com? by codeigniter(m): 4:58pm On Sep 11, 2020
valzey:
Yh, sometimes customers overlook security, but it's important and it costs money.

At times customers don't even have plan, talk less of detailed plan and you can't hope to get returns on investment without a plan.

Next there's advertisement and marketing.

Finally, there's no true business without plan. Even scam artists plan.

If you have a plan, then it can be achieved. You can't leave the business plan on the head of the developer, he's just a contractor. You own the business.

For people without plan, I ignore or collect good money first before working because their job usually had no scope and no end. You stop when you're tired.
hilarious
ProgrammingRe: Review My App I Built From Scratch by codeigniter(m): 1:05pm On Sep 11, 2020
Nice neumorphic design, I learnt dart cos of flutter, but settled with RNative because of d widget tree, which is ugly and difficult to debug, that is why I don't like node js
ProgrammingRe: How Much Will I Pay A Programmer To Create A Website Like Binance.com? by codeigniter(m): 12:56pm On Sep 11, 2020
Nigerianquest:
Hello,

Pls someone should put me through as I intend to build an Exchange like binance.com very soon.

How much will I have to pay a programmer in Nigeria to do this?
It will cost u alot i. e. Time, money, to build from scratch, look for ready made solution u can buy
CrimeRe: Wunato Esther Chuwang's Death: Bauchi Poly Student Murdered On Her Way To Church by codeigniter(m): 12:43pm On Sep 11, 2020
Kk
ProgrammingRe: Checkout This New Forum I Made From Scratch by codeigniter(op): 7:11pm On Sep 10, 2020
Javierleon:
Lol am not a hacker o
am just saying, its not safe that way if you don't want unnecessary messages from poeple u don't know
thanks, noted
ProgrammingRe: Checkout This New Forum I Made From Scratch by codeigniter(op): 5:39pm On Sep 09, 2020
Javierleon:
your contact was provided publicly and yhat is not a good thing, by the way am a py, django, flask, C, cybersecurity dev.
Can I dm you, I would love to contribute ideas and code, if that's okay with you
sure u can contact me, I purposely did that, am I at security risk here? hacker grin grin
ProgrammingRe: Checkout This New Forum I Made From Scratch by codeigniter(op): 7:19pm On Sep 07, 2020
Fash20:
Sure bro
ok, god speed with ur development
ProgrammingRe: Checkout This New Forum I Made From Scratch by codeigniter(op): 7:13pm On Sep 07, 2020
Fash20:
Nice work.
I'm working on something similar. Im using the MERN stack though.
nice I was in mern b4 but i don't like express js, because it doesn't do much for u, I like flask than express js I will always use flask for building APIs I currently building a library in flask, I hope u are using mongoose
ProgrammingRe: Checkout This New Forum I Made From Scratch by codeigniter(op): 7:06pm On Sep 07, 2020
PenHub:
Hello bro, i have joined your forum and its quite nice. But I'll like to suggest that
a) add the stats of members and topics at the head.
B) get a more alluring name Like AfriHub, AfroCoast or better still any good one
c) get a graphics designer to get u a good flier and get good advertisers if you're really serious to add more members. Advertise on more forums and social networks
d) add the report button, like button, like button. Depending on space, u could add save button.
E) employ moderators that you could start with even if you're not paying them yet.
F) do good SEO and adverts.
G) ask for the date of birth of anybody registering and eachday celebrate the person
h) have a front page. Lets other sections move inside. You can deside to list all the hamlets on the frontpage.
I)let members know your moderators
j) while you're still growing, monetize your site. Might not necessarily be with adsense. Look for advert companies like links management and sign contracts with them to place adverts on certain places that won't disturb a user. You can also use seun's stile of advertisement.
WHILE I AM NOT A PROGRAMMER, I'LL LIKE TO BE INVOLVED IN THE DEVELOPMENT OF THE SITE.
But i like to understand.
A) what's a hamlet in ur website? Is it a section like politics in nairaland?
B) can topics be created inside the hamlets?
i thought I have replied to this message before
a) the site stats is on everybody's profile, I think i am not building another NL that what NLs and it clones all have in common
b) I would like to go for sweeter domain name but most of the nice ones including the 2 up suggested are gone I chose africonn because the nn gives the illusion of m. so africom is short for africans community, and it is available.
c) I will advertise when I have the funds but right now, I am working on the design so as to reduce d bounce rate, it is not only about many people getting aware of the site, it is about usage, content and people won't stay if they don't like the site
d) I have implemented all of that myself along side a point system. maybe I will add badges in the future
e)any body who wants to moderate are all welcome
f) I have done on page SEO, sitemaps e.t.c, but I don't have much to pay for ads at the moment and my source of traffic as been NL
g) nice suggestions, I will add date of birth but I won't display it to the public, and their dob will only be shared with there followers
h) I have that already
I) ok, let me explain how the Hamlet works
Hamlet is like a small groups of people subscribe to a something e.g I can create an Hamlet for people who do cakes automatically I am d moderator of my group, In d future I will add the ability for a moderate to adds members of an Hamlet as a moderate. so thread can be created within the Hamlet and the public can comment to see new things from the Hamlet u have to become a member and u will see d new things on ur feeds. I chose Hamlet because of it's flexibility, I don't have to create new category on demand.

j) means of monetisation would be nice but we need to get users first

thanks for showing interest, u can chat me up on WhatsApp +2348142700835, and let discuss how u can help with d development of d site
FoodRe: Russians Eat Okro Soup And Eba For The First Time by codeigniter(m): 5:47pm On Sep 06, 2020
PATAlolade:
You might want to tell Mark (FB) to add it up on his Freebasics platform
I have been trying it lately, but it is not working, u can use opera mini, it won't cost data, until I am able to get it done.
FoodRe: Russians Eat Okro Soup And Eba For The First Time by codeigniter(m): 4:28pm On Sep 06, 2020
Goalnaldo:
interesting design. You tried. I have signed up already.
thanks
PoliticsRe: Ize-Iyamu Campaigns At Night In Ugboha Wards In Esan South LGA (Photos) by codeigniter(m): 10:19pm On Sep 05, 2020
Ingredient88:
So the love you gat for your girl, na fake.huh? People are wicked o
strip man of dopamine and testosterone and u will know what love is. go ask porn addicts.
u don't know what love is. if u can give someone something precious to u or sacrifice something without expecting anything in return, thats love

how many people on Earth can give someone something precious to them.
FoodRe: Russians Eat Okro Soup And Eba For The First Time by codeigniter(m): 10:14pm On Sep 05, 2020
Tadeknkeepcalm:
I don't know much but what I know will definitely be needed is patience. Neither FB nor nairaland got the clout they have in the first few years. Even though they were "original" at the time.
So be patient and wait for your breakthrough.
thanks boss, I have patience but I have to know whether this would work or not.
FoodRe: Russians Eat Okro Soup And Eba For The First Time by codeigniter(m): 5:47pm On Sep 05, 2020
horlarwereleh:
Just checked your site out and I will say you did a pretty good job. But a lot still needs to be done.
The site interface is too big and bold, distracts a lot.
Then the forum should be light, I mean not too heavy to load.
You saw how nairaland is right??
I will reduce the font size asap, the forum is light maybe it was the image and icon, I will find a way to reduce their sizes
FoodRe: Russians Eat Okro Soup And Eba For The First Time by codeigniter(m): 5:44pm On Sep 05, 2020
Tadeknkeepcalm:
So it is the same nairaland that you are insulting that you have come to advertise this. You're even insulting people for not signing up on your website? Who cares whether you spent a year. Are the market women holding you to random for not buying their wares after they had spent so much to get their goods? Really, that's how you sound. May be you should learn marketing strategies join wetin you dey do
don't get upset, shey u go teach me marketing strategies
FoodRe: Russians Eat Okro Soup And Eba For The First Time by codeigniter(m): 3:33pm On Sep 05, 2020
it's gonna have a burning taste to them, and they won't enjoy it like l do, eba ati ila with small quantity of bitter, fish, stock fish, ponmo, meat sweet!!

After seeing a lot of people lament on NL and seeing that they (NL) ignore people who call for improvement, I saw that people need a platform beta than NL, then how do I do this? I created a Django project and started to write codes, if u see anything on the platform, I wrote it, even the unnoticeable things, it is a lot of work, it took me more than 2 months to write, and I was kind of stupid, I thought beta designs and more functionalities would make people automatically use the platform, but I was wrong, well I am not surprised this is the country where people call for change but they are not ready or comfortable to change.
The forum is a platform where u would want join, the ability to create your own category, threads, to follow people and see all their posts on ur their activities feeds, u have better of getting jobs because u get notified if a job posted meets your job tags, ability to create polls and get a bar chart and get notified when the polls expires and ability to post blogs or mini articles, the best thing here is that on complains the site get updated in real-time.
I have moved the app to AWS and got a domain
www.africonn.com. The forum design is great to me and I spend a huge amount of time on it. The only thing missing is users, if u reading this, pls check it out, I am sure it is the best Nigerian forum u have seen, it is not just some WordPress forum site or Nairaland clone I have been seeing, that more of the reason why I wrote the code in the first place. the best part is that code can be adjusted when people wants or complains it ain't rigid like Nairaland, please the least you could is sign up and share d apps with ur networks on any SM networks on your profile.
www.africonn.com/forum/signup/
PoliticsRe: Ize-Iyamu Campaigns At Night In Ugboha Wards In Esan South LGA (Photos) by codeigniter(m): 3:27pm On Sep 05, 2020
Ingredient88:
To you now your thought is that, those guys are waiting till that time becoz of 1k or 2khuh?
Bro leave money asides ok, this is love, this is the respect they all have for him, to still wait for till that time of the day! They believe in him, no amount of money that can keep those crowd till that time of the day oga Ade, .....let give it to the people on this, not you saying they are looking for something to take home, want to ask you, how are they going to pay those people, I mean the thousands of people present at that time? And are they paying before service ni or after service huhhuh Pls tell me.
I don't discuss politics but I will tell u this u can't see any comfortable person, who knows or has something to do, to wait for a man like himself to come and disseminate propaganda as usual.

shey no be 9ja we dey. shey we no know how things dey sup.


u call that love. what kind of love is that
most times when u love someone it because of what u get from that person. the only true love that exist is from parent to child period.
PoliticsRe: Ize-Iyamu Campaigns At Night In Ugboha Wards In Esan South LGA (Photos) by codeigniter(m): 1:22pm On Sep 05, 2020
it is not like those guys waiting are really interested in the state's welfare, they are just trying to get something home for their family

After seeing a lot of people lament on NL and seeing that they (NL) ignore people who call for improvement, I saw that people need a platform beta than NL, then how do I do this? I created a Django project and started to write codes, if u see anything on the platform, I wrote it, even the unnoticeable things, it is a lot of work, it took me more than 2 months to write, and I was kind of stupid, I thought beta designs and more functionalities would make people automatically use the platform, but I was wrong, well I am not surprised this is the country where people call for change but they are not ready or comfortable to change.
The forum is a platform where u would want join, the ability to create your own category, threads, to follow people and see all their posts on ur their activities feeds, u have better of getting jobs because u get notified if a job posted meets your job tags, ability to create polls and get a bar chart and get notified when the polls expires and ability to post blogs or mini articles, the best thing here is that on complains the site get updated in real-time.
I have moved the app to AWS and got a domain
www.africonn.com. The forum design is great to me and I spend a huge amount of time on it. The only thing missing is users, if u reading this, pls check it out, I am sure it is the best Nigerian forum u have seen, it is not just some WordPress forum site or Nairaland clone I have been seeing, that more of the reason why I wrote the code in the first place. the best part is that code can be adjusted when people wants or complains it ain't rigid like Nairaland, please the least you could is sign up and share d apps with ur networks on any SM networks on your profile.
www.africonn.com/forum/signup/
WebmastersRe: Webmasters Kindly Review This Site. by codeigniter(m): 3:26pm On Sep 04, 2020
tony02:
Please what can I do to increase the visibility of this site on Google as well as increase its daily visits.
Site name: [url]job9ja.com[/url]
sitemaps, google search console, good SEO practices, I have a forum and I applied all this stuff and it's working www.africonn.com
CrimeRe: Man Kills Native Doctor In Anambra; Claims God Instructed Him To Do So (Photo) by codeigniter(m): 3:19pm On Sep 04, 2020
gh
CelebritiesRe: Ikorodu Bois Honour Chadwick Boseman. Remake Scenes From "Black Panther" by codeigniter(m): 3:18pm On Sep 04, 2020
prciouschika:
seen it thanks
send me a msg on WhatsApp so dat I can have urs too
CelebritiesRe: Ikorodu Bois Honour Chadwick Boseman. Remake Scenes From "Black Panther" by codeigniter(m): 2:47pm On Sep 04, 2020
prciouschika:
could you give me your number if you don't mind
ok +2348142700835
HealthRe: Former Drug Addict Shows Off Transformation After Quitting Drugs (Photos) by codeigniter(m): 2:26pm On Sep 04, 2020
what that guy did is not easy ooo. I hope he doesn't get urge to go back to doing drugs. biologically, once a neural connection is made in the brain it doesn't go away though the strength of the connections might be weaken making it appears like the addiction has gone but he has more chance of going back to doing drugs than some who hasn't done drugs b4


After seeing a lot of people lament on NL and seeing that they (NL) ignore people who call for improvement, I saw that people need a platform beta than NL, then how do I do this? I created a Django project and started to write codes, if u see anything on the platform, I wrote it, even the unnoticeable things, it is a lot of work, it took me more than 2 months to write, and I was kind of stupid, I thought beta designs and more functionalities would make people automatically use the platform, but I was wrong, well I am not surprised this is the country where people call for change but they are not ready or comfortable to change.
The forum is a platform where u would want join, the ability to create your own category, threads, to follow people and see all their posts on ur their activities feeds, u have better of getting jobs because u get notified if a job posted meets your job tags, ability to create polls and get a bar chart and get notified when the polls expires and ability to post blogs or mini articles, the best thing here is that on complains the site get updated in real-time.
I have moved the app to AWS and got a domain
www.africonn.com. The forum design is great to me and I spend a huge amount of time on it. The only thing missing is users, if u reading this, pls check it out, I am sure it is the best Nigerian forum u have seen, it is not just some WordPress forum site or Nairaland clone I have been seeing, that more of the reason why I wrote the code in the first place. the best part is that code can be adjusted when people wants or complains it ain't rigid like Nairaland, please the least you could is sign up and share d apps with ur networks on any SM networks on your profile.
www.africonn.com/forum/signup/

1 2 3 4 5 6 7 8 ... 11 12 13 14 15 16 17 18 19 (of 21 pages)