Programming › Re: Please How Do I Install Django In My Windows PC??? by Donpre(m): 1:10pm On Aug 02, 2020 |
TheGenius001: I got Http Error Are you sure you're connected to the internet while trying to install django |
Programming › Re: Competitive Programming by Donpre(m): 12:50am On Aug 01, 2020 |
Brukx:
array=[[1,2,3,4,5],[6,7,8,9,10,],[11,12,13,14,15],[16,17,18,19,20],[21,22,23,24,25]]
clockwiseList=[] mainlist=[] def clockwise(array): newlist=[] for ch in array[0]: newlist.append(ch) array.pop(0) for ch in array: newlist.append(ch[-1]) ch.pop(-1) array[-1].reverse() for ch in array[-1]: newlist.append(ch) array.pop(-1) newRow=[] for ch in array: newRow.append(ch[0]) ch.pop(0) newRow.reverse() newlist.extend(newRow) mainlist.append(newlist) if len(array)>1: clockwise(array) else: for ch in array: mainlist.append(ch) for ch in mainlist: for chr in ch: clockwiseList.append(chr) print("\nthis is the Clockwise array\n"+str(clockwiseList)) clockwise(array)
I think this will do Wow! brilliant approach but I got lost at the if-else statement. What does that do? |
Programming › Re: For Django Developer by Donpre(m): 8:21pm On Jul 31, 2020 |
hitan: I just did and still get the same error, please how can I resolve this issue its really giving me concern... did you add the app_name to your main urls.py using 'namespace' |
Programming › Re: Competitive Programming by Donpre(m): 1:04pm On Jul 31, 2020 |
Darivie04: Must be nairaland formatting cutting out part of the code, I'm still tryna fix that. It returns 5 over here. Hello, what book/resource did you use to study algorithms |
Technology Market › Re: This Thread Is Only For Aliexpress Shopper by Donpre(m): 10:03pm On Jul 30, 2020 |
cluewebhost: What does "Despatched to OverSeas Postal Admin (From SG/SIN to NG/LOS)" mean?
My package has been like that for some days.
Aliexpress Standard shipping? Just left China... could take about a week, or more become it gets to Nigeria, so just forget it for now |
Technology Market › Re: This Thread Is Only For Aliexpress Shopper by Donpre(m): 10:01pm On Jul 30, 2020 |
ceaser: Zenith debit card issuance is still pending as I opened account a few days ago. In the meantime, I've re-visited my Ecobank account that has been unused for almost 2 years and I used the card for three purchases yesterday.
I didn't really bother to work out the exchange rate they used though, but I know dem own never enter that kain 400. Theirs is most likely still under 395 naira. Thanks Any spending limit on the Ecobank card... how much have you spent so far |
Technology Market › Re: This Thread Is Only For Aliexpress Shopper by Donpre(m): 1:25pm On Jul 30, 2020 |
fairy88: How do I track my item, I entered a wrong postal code of 10001 My item has arrived since, no call no text to come pick This order was since may 20 th https://www.nipost.gov.ng/Track_Trace.aspxjust enter the tracking number, it should show the LGA it's at |
Technology Market › Re: This Thread Is Only For Aliexpress Shopper by Donpre(m): 4:08am On Jul 30, 2020*. Modified: 4:31am On Jul 30, 2020 |
Who knows how much the spending limit and exchange rate is on GTB MasterCard as at now
EDIT: Read a few pages back. So GTB is now wack, who knew this day would come |
Technology Market › Re: This Thread Is Only For Aliexpress Shopper by Donpre(m): 4:07am On Jul 30, 2020 |
chidioke75: No text or call to come and pick up my item but please which local government is NGMAR Track it on Niport website. I think MAR is markudi |
Education › Re: 2020/2021 UNIPORT Admission Thread Guide by Donpre(m): 11:33pm On Jul 28, 2020 |
Odiaze: k, thanks for the answer @weezyclan & donpre. Please when is the exam starting most especially for Engineering "Further details and schedule of the Screening Exercise will be announced in due course. Candidates should, therefore, check the University website from time to time." As copied from the announcement. |
Education › Re: 2020/2021 UNIPORT Admission Thread Guide by Donpre(m): 1:47pm On Jul 28, 2020 |
otokx: Basic is a pre degree program in UNIPORT, successful candidates from there transit into Yr 1. Greetings able comrade. Hope you've been well Do you have any idea if an exam is to take place. |
Education › Re: 2020/2021 UNIPORT Admission Thread Guide by Donpre(m): 1:45pm On Jul 28, 2020 |
Odiaze: @w.eezyclan, what of if i purchase the form after august 3rd, will i still wait or i will just proceed with the registration since the portal will have been fully opened by then. No need to wait again from 3rd August |
Education › Re: The medical students and aspirants thread by Donpre(m): 11:22pm On Jul 27, 2020 |
Brukx: The only place I've seen this is on Nairaland. It's not done in my school. I've never heard of it anywhere be it post graduate or undergraduate studies. That info is misleading That's true, I haven't heard such anywhere else. Even MDCN's website doesn't have any such information. I imagine many people might have taken the BDS route hoping to take the 18 months switch for an MBBS cert later on, only to find out it's nothing but a hoax. |
Education › Re: The medical students and aspirants thread by Donpre(m): 12:41am On Jul 27, 2020*. Modified: 9:06pm On Jul 27, 2020 |
olsamlaw: Abeg I need info about Uniport
Are they having post utme this year or is just waec and jamb score screening.
How is their admission to medicine? I'll advice you prepare for post utme. it's more likely Not sure I get the last part |
Education › Re: The medical students and aspirants thread by Donpre(m): 12:27am On Jul 27, 2020 |
DonJ7: Hello guys!! Am 200L Dentistry student but i wanna leave the course, pls can i switch to medicine and continue or i have to come back UG1?
Pls i need ur suggestions Retake jamb... I hear stories of switching from BDS to MBBS but that's all they are, stories. In my school especially, it has never happened to the best of my knowledge. if you really don't like dentistry, enroll for jamb next year and slug it out for medicine. Good luck! |
Programming › Re: Urgently Required: Programmer With Strong HTML, CSS And JAVA Background by Donpre(m): 6:25pm On Jul 26, 2020 |
codeigniter: It is not about IBM or MS wanting the programme it about increase usage in africa, Nothing goes for nothing, i actually went the t & c and it is important you don't hold a patent on the innovation, think about that That's a shady T&C for a Nationwide competition aimed at "helping" the youths |
Programming › Re: For OOP Programmers by Donpre(m): 4:23pm On Jul 26, 2020 |
Brukx: You mean white space? Not in python either  I laugh in wrong indentation  |
Programming › Re: Urgently Required: Programmer With Strong HTML, CSS And JAVA Background by Donpre(m): 11:48am On Jul 26, 2020 |
|
Programming › Re: Urgently Required: Programmer With Strong HTML, CSS And JAVA Background by Donpre(m): 11:29am On Jul 26, 2020 |
codeigniter: Nope but ministry of sports and youth collaborate with ibm and Microsoft to make people learn how to code through there courses so as to be able to build apps in which ten will selected and the winners would win 1M
Those guy want you to write code with full documentation, no bugs and a lot more conditions e.t.c and this is Nigeria u will just here a guy from some where won, though the money is small but nepotism will still make them give the already rich oh thanks Actually saw that ad, I thought the competition was based on innovation, now I'm hearing badges and courses. Anyway, knowing the Nigerian society, the winners have already been selected |
Programming › Re: Thread removed by Donpre(m): 12:27am On Jul 26, 2020 |
Tom and Jerry is 2D animation
it requires some level of natural art skills tho
just google "How to become a 2D animator", I'm sure you'll find a blog post with all your need
of course YouTube is a great guide also
Good luck! |
Programming › Re: Urgently Required: Programmer With Strong HTML, CSS And JAVA Background by Donpre(m): 12:24am On Jul 26, 2020 |
codeigniter: you wanna chop 1M IBM dey give $2500 to people wey complete those courses? |
Programming › Re: Good Pharmaceutical Inventory Software But No Clients To Purchase It by Donpre(m): 10:06pm On Jul 25, 2020 |
Personal opinion: Try redesigning the UI to be more attractive.  To your question... How exactly are you selling it to potential customers? Does it help them check which product is in stock and out of stock or does it have an anti-theft mechanism or does it integrate with a payment gateway to aid seamless payment in the absence of cash? What exactly does your product do and how would it help their business.... these are questions you should ask yourself and when you have a good explanation, approach clients with these answers and explain how it will help them "save cost or get more profit" If they still turn you down, ask them to at least give you a reason they don't like/need the app or what they would have hoped the app would be like, remodel your app base on their reasons and sell again till you get it. #My2cents Hope it helps |
Travel › Re: Rail Transportation Services To Resume Wednesday July 29, 2020 by Donpre(m): 6:45pm On Jul 25, 2020 |
yet school resumption is rocket science |
Programming › Re: For Django Developer by Donpre(m): 3:57pm On Jul 19, 2020*. Modified: 4:28pm On Jul 19, 2020 |
Taofeekdboy: If you need my assistance on it, you can pm me but you will have a lot to do on your side because my company has resumed and our timezone is different. You work remotely? as a Django or front-end developer? that aside, You know that redirect thing nairaland does when you log in, like it'll show a success page and then waits a while before redirecting to the home page. How can it be done with Django? I've done my due diligence, but can seem to know how to use reverse_lazy, or reverse() to achieve that feature Thanks! |
Programming › Re: For Django Developer by Donpre(m): 8:46pm On Jul 18, 2020 |
Toppytek: To some extent I understand what guys are saying but I can’t really fathom is going on.
@Donpre what the the name of the editor you’re using on your phone? Is there something like that for iOS? It's nothing complex, just ordering of url patterns, I already got some insight as to how to do it tho. the editor is Acode, while I use pydroid3 terminal to run command-line comands... I don't use iOS, but I'm sure a Google search would produce results |
Programming › Re: For Django Developer by Donpre(m): 1:02pm On Jul 18, 2020 |
Taofeekdboy: I got you but the way you are writing the URL path is wrong, when you are trying to match a path in django, it will start from the top to bottom to find the actual path but your path is not written in a nice structure... Example, You are writing a blog project and when you want to get a detail on a post, you match the path with the slug or pk of the post in your url so that your url will look like domain/blog/slug or pk When you are receiving a parameter in your url path, your main path should have something to prefix it.. If you are not prefixing your url parameters with anything then your add synopsis must come first before your plain parameter path because it is still the same as empy string without getting the parameter. Samething applicable when working with router in React. This is quite insightful... Thanks a lot |
Programming › Re: For Django Developer by Donpre(m): 2:46am On Jul 18, 2020 |
Taofeekdboy: OK, I don't know if you made a mistake, your app name is courses but you are using course in your url, and also the second path is not written well, remove the str from the course and leave only the course because you are not receiving a parameter in your view which you need to match it with... If you look at the error, it is coming from the second path which means it is matching it with course. It's a typo, my url is correctly written courses:add_synopsis also I can't remove the str cause the url actually take a course parameter just like the one below it that takes 2 parameters. it's from a reverse() in a get_absolute_url method of the model funny thing is the code works fine provided the add_synopsis path is above the <str:course>, I just don't know why. maybe I'll ask advanced Django groups Thanks for the time |
Programming › Re: For Django Developer by Donpre(m): 11:39pm On Jul 17, 2020 |
Taofeekdboy: In django urls, you have to be wary of the slash, strings and variables you use. In the second url path, you put <str:course> where as you are not getting a parameter for the course. The only place where urls matching is very strict is your root folder url where admin, Django. Contib.auth has to come before your app urls. I got the last part but the first part didn't explain why Django didn't just skip the first three paths, considering I used {% url "course:add_synopsis" %} in my HTML. I would expect it would just call the view straight up but instead it's matching the second path. |
Programming › Re: For Django Developer by Donpre(m): 11:14pm On Jul 17, 2020 |
@django developers
I need some explanation as to how url matching works. I've read the documentation but it didn't help.
When I placed my 'add_synopsis' path below the rest (as shown) I get an error (also shown)
Although I fixed it by moving the url path to the second position as recommend by a stack overflow post.
I just want to understand how the url matching works and why my code got that error in the first place, in case of future codes and larger projects
Thanks
|
Programming › Re: For Django Developer by Donpre(m): 11:12am On Jul 17, 2020 |
Toppytek: I’ve been hearing a lot about React and Vue but I don’t know which one to go for cos am yet to start my JavaScript journey, that been said, I have a thing for Flutter as well coz i learnt it can be integrated to the DRF.
I’m a Django newbie, started a month ago. @donpre Can't help you with the JavaScript because I haven't learnt any too, but it's as @taofeekdboy said. There's no more I can add. For flutter, I'm actually a flutter developer and it's for mobile apps, (desktop and web) but the last two are still terrible to use. All of them(React, Vue and Flutter) can consume REST API from DRF |
Programming › Re: Suggest A Budget Laptop For Someone Who Wants To Learn Programming by Donpre(m): 1:08pm On Jul 16, 2020 |
Depends on which part of programming you're going for
For Android(App) development and data science, 8gb RAM and a fast core i5(the more recent gen, the better). Android studio and Data visualization apps consumes a lot of RAM
For web development, anything would be fine |
Programming › Re: Application Development Using Csharp (C#) by Donpre(m): 11:36pm On Jul 14, 2020 |
|