₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,245 members, 8,420,938 topics. Date: Friday, 05 June 2026 at 02:44 PM

Toggle theme

LSarcastic's Posts

Nairaland ForumLSarcastic's ProfileLSarcastic's Posts

1 2 (of 2 pages)

ProgrammingRe: How To Retrieve Data From An Api Using Fetch Api In Javascript by LSarcastic: 12:40am On May 14, 2020
chivirunum:
Can I use fetch with php?
Usage of an API is independent of the language used to develop the API. Yes, you can.
ProgrammingRe: What Is The Best Programming Language Use For Telemedicine Apps? by LSarcastic: 12:37am On May 14, 2020
star255:
please advise
Alright, first you need to understand the specific aspects of the features you're going to be implementing. Telemedicine will involve a lot of features that is very time conscious. You don't want someone to die because your server failed to scale. This means your top priority is speed.
Languages to consider: C++, Java, Go, Rust

Next, you'll probably be needing some sorts of AI aid to help people seek out help and solve problems in the event human interaction isn't available. This means you'll probably be involving Machine learning.
Languages to consider: Python, Julia

Next, you'll need something that is easy to implement with large community and something that is guaranteed to last through the years without things breaking because of new features and backward compatibility issues.
Languages to consider: Java

The other things involved, are a little negligible.

You'll notice that I'm not focused on the platform aspect at all. That's because your app, website is nothing if your infrastructure is crap. You're definitely building an enterprise web application which will have lots of users. Your website and application will basically just be an interface to the huge engine work going on in the back-end.

With my analysis, you'll definitely not want a website with C++ grin grin . What you want is Java handling your critical features because of its relative speed and stability and its WORA(Write once, run anywhere - add anytime to it!) philosophy. Next, you'll need Python to handle ML/AI. It so happens that Python and Java has interoperability with the Jython platform giving you exactly what you need in your backend.

For the website, implement the front-end with React of Angular since you want a native app feel. Besides, people should not be lacking on your website for features.

For the mobile application, I advice you use Flutter, so you don't have to build separately for both Android and IOS.

For a desktop application, this is where you now call in your C++ guy. You could also implement it with Flutter too or even Electron(Don't use this oo, I'm just joking).

I hope this helped.

cheers!
ProgrammingRe: Learning Python Kivy by LSarcastic: 12:11am On May 14, 2020
Samcent:
I faced this same challenge. I had to change path and focus on django.
All the same, you have my best wishes.
Django is pretty nice and I personally rate it as the tool with the best documentation in the world. You can check out the website I built with Django here https://www.bonychicken.com
ProgrammingRe: Learning Python Kivy by LSarcastic: 12:10am On May 14, 2020
Brukx:
For some days I've been sourcing materials in order to learn Kivy from the scratch. I've not found the right book to use. I'm hopping experienced pythoneers will come in with good suggestions to help me out on this Voyage
I perfectly understand your situation because I found myself in your shoes too. The official kivy documentation looks so beginner unfriendly and is hard to follow, isn't it?
That's because the documentation isn't organized the right way. Instead of starting from the beginning, do this:

1. Open the official documentation at https://media.readthedocs.org/pdf/kivy/latest/kivy.pdf
2. Head over to the tutorial sections and check the Paint tutorial first. It will be easy as long as your Python skills are good
3. When you're done with that, go to the Ping Pong part. You'll find this hard following but still do it.
4. Then go to the crash course section and follow the link to the videos.
5. When you're done, go back to the documentation and start exploring.

To ensure your exploring is efficient, ensure you give yourself a simple project and then check out the documentation for awesome things you can add to your solution. cheers!
ProgrammingRe: Programmers Chat Room. by LSarcastic: 11:58pm On May 13, 2020
iCode2:
Hello guys
Quick one: Which is the better option to go for (a noob)

Option 1 - 4gb RAM, 500GB hdd, core i5 --> #80k - #90k
Option 2 - 8GB RAM, 500GB hdd, core i7 --> #100k - #110k

I know option 2 is of a higher quality but do I really need all that as a noob?

Cc: Grandlord
Bunnae
Crownedrookie
MountainView
Lordpeckxy
Ejiod
Codeigniter
And all
Buy whatever your money can afford. As a beginner, I can tell you that for your first year of programming, you'll rarely need more than the first one. Except you're dealing with a field that requires a PC with high processing capability like animations, developing android apps, machine learning, systems programming.
Except that, your choice of PC won't matter much. It all depends on you. Why waste cash on the second when the first would serve you.
ProgrammingRe: Help With This Js Problem by LSarcastic: 11:53pm On May 13, 2020
arejibadz:
Trying to create an open and close nav bar but its not toggling
Add more details to your questions.
What's in your css file?
Besides, your javascript code isn't linked to the HTML code. It will never work that way.
ProgrammingRe: What's Your Take On CDN? by LSarcastic: 3:11am On Apr 30, 2020
codekobo:
No it's not, you store the contents of the file as a blob.

You can check https://stackoverflow.com/questions/1636877/how-can-i-store-and-retrieve-images-from-a-mysql-database-using-php
But like others have said this should never be done on any serious application
Yeah, you're right. But that would be plain silly.
ProgrammingRe: I Need Your Recommendation On This Project by LSarcastic: 8:35pm On Apr 29, 2020
silento:
The vr for something like jiji is stupid ideal , his ideal about likes of Facebook and etc is right
If the guy catch you ehn grin grin grin
ProgrammingRe: Why Is Python Programming So Hard To Understand by LSarcastic: 8:31pm On Apr 29, 2020
locust:
Most programmers have asserted that easy understanding is one of Python's features. Am I the only one finding it difficult to understand the language?
This made me smile. You're facing a challenge that almost everyone faces when they learn programming for the first time.
Programming rewires your brain to think differently. Initially, we humans do not really possess the ability to critically think about something and follow it through, accessing the "hows", "whys", "whens" and "whats" of things happening. For example if you wanted to punch a person, all you have to do is raise your arm and push outwardly with force. You won't actually consider how neurons travel from your brain to your hand and how blood flows allowing you to make the blow. But in programming, you have to know all that.

You learn to think sequentially and systematically. This is the hardest part of programming. This is why I tell people, focus more on your problem solving skills than the amount of languages you know. It's a normal thing to find it hard initially. But what matters is persistence.

When I started Python in 2015. I remember dumping the PDF I used numerous times because I couldn't even solve the basic of problems. But now, since I've mastered problem solving to a large extent, I find it easy to code in almost any language independent of syntax.

So, be patient and do not rush. Look for exercises to solve and learn how the solutions are implemented and I bet it with you, you'll be as good as any.
ProgrammingRe: What's Your Take On CDN? by LSarcastic: 8:22pm On Apr 29, 2020
Presh900:
How can you store media files in database??
It's impossible, check my answer above
ProgrammingRe: What's Your Take On CDN? by LSarcastic: 8:20pm On Apr 29, 2020
Kelvin30286063:
I own a social media website called Zealnut.

As my website grows and more users come in with contents like videos and images, I suddenly finds myself dealing with a lagging website. Not that it's very slow at an unbearable rate but I feel its slower than before and from experience I know it will only get worse the more users I get.

Now the issue is I tried to patch my content through a content delivery network (specifically cloudflare) and I got a better result but its undeniable that cloudflare sometimes goes offline then it renders your website offline too.

I'm thinking of the best way to optimize heavy images and videos without using a CDN. I have tried compression a few times but there is a limit to how hard you can compress a file if you don't want to break it.

Gurus in the house, please come to my aid, how can I best optimize my website media contents?

I'm also open to other suggestions aside CDN
For the record, media files aren't actually stored on the database. The only thing being stored is the path to the files. Whether you use a CDN or not, a file can never be stored on a database only its path. A database only contains text and nothing else. Google this for more clarification.

There are two ways web developers work with storage of media files:
1. On host: You write your code that ensures that whenever a file is uploaded, it is being stored within your code directory. It might be a URL path like so: "/media/<filename>". This way, if your host gives you an allocation of 20 GB, for each file you upload, it eats out of your storage space. The advantages to this is that you don't have to spend money on a CDN. The disadvantages are much in that, it quickly consumes your bandwidth and your website becomes slower with each upload. That's why you see websites being very slow after staying a few months. It is also not cost effective in the long run. Because you would have to upgrade your web hosting plans to get more space to store your files.

2. Using a CDN: This is the most preferred way of storing files since it reduces your chances of you having to upscale your hosting plans. It works this way: you buy storage plans from a CDN platform and then follow their guide to configure your code so that whenever you upload files, it's being stored on their server rather than that of your host. This way, your files will have a path like so: https://<your website name>.<CDN website>.com/<filename>. If you use cloudflare, you'll have something like this: https://zealnut.cloudflare.com/cup.jpg. CDN makes your website load faster and you almost never have to worry about up scaling your hosting plans. For those of you that uses traditional PHP hosts, you get to have your high storage from your host and additional storage from the CDN. The only thing you store on your hosts is just your source code which shouldn't be up to 10 MB for a pretty optimised website.


Personally, I'll advise you use Amazon S3. I've never had outage issues since I've been using it and it is so cheap, you'll probably credit my bank account after trying it out. For a bit more understanding, check out my website https://www.bonychicken.com. Check out the source code. See the paths of the media files.

I built it with Django, hosted it on PythonAnywhere and used Amazon S3 as a CDN. I only hosted the media file there. My static files are on the host, to ensure that I can work faster whenever I git pull stuff.

In addition, looking at my website, you'll see something I'll advice you ton take seriously: Lazy loading. If you want, I'll share you the code for implementing the lazy loading. It ensures that images are not loaded until you scroll to the position where it is located. This means if you have a page where many pictures are, the page won't take years to load since the browser will only pull the source code and ignore images. This saves tens of seconds.

I hope this helped smiley
ProgrammingRe: I Need Your Recommendation On This Project by LSarcastic: 9:05pm On Apr 26, 2020
donsheddy1:
No need to tell you shît since you already know it's ridiculous. Direct your question to Google next time. Ignorant dullard.
Calm down bro. I'm not a fighter smiley I'm sorry I phrased my question that way. I mean, your idea is plain ridiculous and unrealistic. Is there any way you could explain is better, perhaps I do not understand what you mean. wink
ProgrammingRe: I Need Your Recommendation On This Project by LSarcastic: 3:37am On Apr 26, 2020
RemiAbdulSamad:
hey guys. am building something like jiji and I need ideas. what do you think is missing on jiji that I can implement with regards to this project.

I've gotten some ideas but I need more from you guys
If you're building something similar to Jiji and you have plans on beating them in your game, I'd advice you to look beyond ideas and take a look at your business strategy. Jiji is out there and making waves, why would anyone want to visit yours instead? You need to do your market survey. Draft a very good plan on how you can deliver value to your customers. Work on how you can retain customers and gain their trust. Work on how you can sustain the business.

I must tell you, there are thousands of Jijis, Facebooks, Instagrams, Nairalands out there. Do you know why they are not popular? Business strategy!!
They do not have one. They believe that once you have a killer feature, you'll blow automatically. Nah, bro. It doesn't work that way.

You might hate this but, I'm speaking from experience: Focus on your business strategy, ideas will come easily.
ProgrammingRe: I Need Your Recommendation On This Project by LSarcastic: 3:32am On Apr 26, 2020
donsheddy1:
Implement VR technology. That's one of many things missing on jiji.
Can you tell me how realistic this ridiculous idea is?
ProgrammingRe: Which One Is Better: Python Django Or Php? by LSarcastic: 3:19am On Apr 26, 2020
Barney001:
Okay...yeah I saw my mistake ...its laravel and django I was supposed to compare...

Guess I'll continue with python then....

You said you were a python guy...Hope you don't mind me asking...if you work as a freelancer or for an IT company in nigeria?

Damn...I just checked your website and I must say you're good...like really good...
If that was all django then ...I'm all for it
Thanks for the compliment. Actually, I'm more of a student, still on the search for places I could test my skills. And yes, the website is pure Django for backend. smiley
ProgrammingRe: For Django Developer by LSarcastic: 2:23am On Apr 25, 2020
Taofeekdboy:
Please, kindly state your reasons for hating it and also what are yoy using to develop maybe we can learn one or two.
He's probably a PHP guy grin
ProgrammingRe: Which One Is Better: Python Django Or Php? by LSarcastic: 2:19am On Apr 25, 2020
First of all, you shouldn't compare Django and PHP. One is a Python-based framework while the other is a language. Comparing them is like comparing apples and baskets. So I'll assume you mean, Django VS a PHP based framework(let's use laravel).
Secondly, I'm a Python guy and I would say that no one is better than the other. They both have their pitfalls and strengths. Django has a steep learning curve while laravel is easier to grasp since you could already build your website with plain PHP.

- In terms of speed, Django takes the lead(In real life, language does not determine speed, the architecture of your code does)
- In terms of speed in getting your web app up and running, Django takes the lead
- In terms of Job opportunities in Nigeria for the web, PHP takes the lead
- In terms of startups, Django takes the lead
- In terms of community support in Nigeria, PHP takes the lead(This is very important)
- In terms of cost to set up, PHP is cheaper. I hosted my Django web app https://www.bonychicken.com with roughly 25,000 naira when using PHP would cost me a little over 7,000. I just needed Python's ML capabilities.
- In terms of future relevance, Django would do. Python is really gaining ground fast in Nigeria.
- In terms of versatility, Django is better, Python is general purpose so...

So, I'd say it depends on:
- What you want to build. If you're building something that will require Machine learning and dealing with data, use Django.
- If you just want a web developer job, learn PHP
- If you want to be popular, learn Django
- If you're bored, learn Django

1 2 (of 2 pages)