Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,152,316 members, 7,815,586 topics. Date: Thursday, 02 May 2024 at 02:52 PM |
Nairaland Forum / Shepherdd's Profile / Shepherdd's Posts
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 6:06pm On Sep 21, 2020 |
KVNGQ: Scrapy doesn't do DOM interactions. You can skip pop-ups by using selenium to click, another option is to inspect the DOM and see if the content is already loaded there. 1 Like |
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 12:05pm On Sep 21, 2020 |
KVNGQ: what tool are you using for the scraping? |
Programming / Re: Explain N + 1 Problem To Me Like I'm A 5 Year Old. by Shepherdd(m): 7:26pm On Sep 19, 2020 |
Karleb: It happens when you have a parent child relationship. You query the db for an object and that objects generate another query for it's children and another for the children's relationship and another e.t.c This happens often when you are using ORM for your database interactions, and it can be mitigated by the JOIN statement. Django's ORM provides the select_related function (it uses JOIN underneath) to avoid this problem. 1 Like |
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 9:11pm On Aug 13, 2020 |
Zabiboy: None taken . But really it's a real world application for a DS/DA... But got your point nonetheless. GS 1 Like |
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 8:28pm On Aug 13, 2020 |
Raalsalghul: Numpy is used for effective array manipulation in place of Python List. Neural networks are built on arrays or correctly giant Matrixes. An operation like dotproduct matmul on numpy is about 140 times faster than using ordinary Python List. Basically it's a library for scientific computing. 1 Like |
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 8:03am On Aug 06, 2020 |
Dum20: When you echo export, you don't need to surround your address with another quote. The first one before export will do and make sure you close it. And to avoid errors why not edit the bashrc directly with a text editor and remove the need for echo. Your bashrc will be in your user directory. 1 Like |
Programming / Re: How Do I Implement This In Python ?? by Shepherdd(m): 6:05pm On Aug 04, 2020 |
shegzhkn: Ok. This library could also be of help if you need something similar to Java's overloading. https://github.com/mrocklin/multipledispatch |
Programming / Re: How Do I Implement This In Python ?? by Shepherdd(m): 3:17pm On Aug 04, 2020 |
shegzhkn: Most of the time **kwargs will be sufficient, and if you need overloading based on compile time differentiation of objects, read about python single dispatch on Google. |
Programming / Re: How Do I Implement This In Python ?? by Shepherdd(m): 2:53pm On Aug 04, 2020 |
shegzhkn: Python supports polymorphism very well (almost), could you post a snippet of what you are trying to do in java or elaborate further. |
Programming / Re: Does Having A To-do List App And Calculator On Ones Portfolio Matter? by Shepherdd(m): 7:35pm On Aug 02, 2020 |
tensazangetsu20: I think todos most of the time are evidence of completing a beginner class or a boot camp. Almost every developer possess that so it doesn't really count. Calculator on the other is different in that there are different approach of coding it. If Else style falls in the to-do category, but a more complex lexing and parsing style where essentially what you are building is a mini compiler is definitely worth to be put on a portfolio. |
Programming / Re: Please How Do I Install Django In My Windows PC??? by Shepherdd(m): 11:55am On Aug 02, 2020 |
TheGenius001: Try conda install django |
Science/Technology / Re: What Will Happen When An Unstoppable Force Hits An Immovable Object? by Shepherdd(m): 1:23pm On Jul 31, 2020 |
illicit:Okay. First BH boys are not unstoppable. They only appear to be due to the incompetency forced on the Nigerian army by their sinister leaders and politician. Nigerian Army also aren't immovable in the long run if they continue on their current path of leaking secret to BH, soldiers resigning e.t.c Nigerian Army should be the unstoppable force thrashing all forms of immovable insurgency. 1 Like |
Science/Technology / Re: What Will Happen When An Unstoppable Force Hits An Immovable Object? by Shepherdd(m): 9:11am On Jul 31, 2020 |
illicit: BH and NA? What are they? |
Science/Technology / Re: Starship SN5 - Static Fire Test by Shepherdd(m): 12:49am On Jul 31, 2020 |
Waiting for the 150m hop test. Thats the real deal. 1 Like |
Science/Technology / Re: What Will Happen When An Unstoppable Force Hits An Immovable Object? by Shepherdd(m): 12:46am On Jul 31, 2020 |
The immovable object will make way for the unstoppable force by disintegrating provided the object is only immovable and not undestroyable. With persistance, a stream will wash away a mountain. 5 Likes |
Science/Technology / Re: Everything Space :planets, Exoplanets , Galaxies (tasha's Space Corner ) by Shepherdd(m): 5:36pm On Jul 27, 2020 |
Nice. Seems like Pluto and planet X didn't make your list. |
Science/Technology / Re: 35 Photos That Will Change Your Whole Perception Of The Universe by Shepherdd(m): 5:20pm On Jul 27, 2020 |
xoftcore: The picture is from the oldest light ever picked by hubble. It came from a few million years after the big bang. |
Science/Technology / Re: Are We Alone In The Universe? by Shepherdd(m): 2:41am On Jul 26, 2020 |
Those vehicles were probably doctored by individuals. We should stop wondering about our place in the cosmos and start fixing our earthly probems. |
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 2:33pm On Jul 12, 2020 |
Dum20: The problem is about sequence predictions. You take an ngram of raffles and you predict the next one. Since you have four classes for each raffle, IMHO you can have four models for each card i.e a model handles all diamonds card history etc. Once you are done with training the four models, you can then create a function that abstracts the models, takes four cards, distribute them to the models and outputs the predictions. 3 Likes |
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 2:33pm On Jul 12, 2020 |
saheedniyi22: Document Object Model. That's where the browser keeps the HTML tree. |
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 2:27pm On Jul 11, 2020 |
. |
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 12:16am On Jul 11, 2020 |
saheedniyi22: For pages injected with JavaScript, Selenium is the main tool here. You will need to combine Selenium with infinite scrolling (it will stop once it reaches end of page). A good approach is to scroll to the end of the page first and once everything is loaded in the DOM you can grab them and send them to BeautifulSoup for parsing. 4 Likes 1 Share |
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 11:32am On Jul 02, 2020 |
lymelyte: There is a prepended number in the name of the file with a space, try and edit it out by renaming the file. Then copy the name into pandas. |
Programming / Re: Chronicle Of A Data Scientist/analyst by Shepherdd(m): 8:19am On Jul 02, 2020 |
lymelyte: To see where the jupyter kernel is looking for files execute %ls #the percentage should be there. and %pwd this should give you an idea of your active files that python is seeing, and the current directory python is scanning. 1 Like |
Programming / Re: Python 3: Exercises And Solutions. by Shepherdd(m): 4:07pm On Jun 30, 2020 |
DAramis: |
Programming / Re: Why Do Self Taught Programmers Over Exaggerate by Shepherdd(m): 12:30pm On Jun 30, 2020 |
ThePlainTruth: Love this question. As a lazy programmer am going to use Python as there is a lot of abstraction with subprocess handling, and handling SSH2 on Python too is less painful. Assuming both systems have their cryptographic keys, the script/program will be executed on the remote through the ssh driven terminal, and this will always return predefined return codes upon task completion. |
Programming / Re: Python 3: Exercises And Solutions. by Shepherdd(m): 12:12pm On Jun 30, 2020 |
DAramis: Your first two loops are redundant. Try and merge them into something like secret_name = "Joe" name = input('what is your name') while name != secret_name: name = input('what is your name') Then do the same for the password. It's called sentinel controlled loop. 1 Like |
Literature / Re: Who Is Your Favorite Author Of All Time? by Shepherdd(m): 7:21pm On Jun 28, 2020 |
BreezyRita: Series rather. 1 Like |
Literature / Re: Who Is Your Favorite Author Of All Time? by Shepherdd(m): 7:03pm On Jun 28, 2020 |
Dan Brown and his Langdon series. 1 Like |
Programming / Re: Why Do Self Taught Programmers Over Exaggerate by Shepherdd(m): 6:39pm On Jun 28, 2020 |
olioxx: what a show off. abeg no kill us please. 1 Like |
Programming / Re: Why Do Self Taught Programmers Over Exaggerate by Shepherdd(m): 6:19pm On Jun 28, 2020 |
shadeyinka:You have good points. It's an open secret that the education system is broken. But the thing is other countries also produces theoretical CS graduates even though they have better curriculum, teaching materials and better labs(not talking about laboratory here) but they mitigate the issue by one single factor which is quality internship. Imagine a CS student in US looking for internship, he has companies like Intel, Nvidia e.t.c to apply if he is into cpus, or if he is into CNS Cisco and co are there, if he wants system engineering or programming then Google, Amazon, Microsoft are there e.t.c. All major countries provides quality internship to undergraduates but that's not the case in Nigeria and that's why I think we have self taught computer scientist graduates in Nigeria. 1 Like 1 Share |
Programming / Re: Why Do Self Taught Programmers Over Exaggerate by Shepherdd(m): 10:19am On Jun 28, 2020 |
Grandlord: That's the thing. Everybody has a place and everyone is equally important. Bill Gates is a great computer scientist but he managed to fu*ck windows GUI. Imagine he had a great UI/UX designer with him. Steve jobs was a badass GUI guy but Bill Gates with his coding skills was pivotal in the success of the Macintosh 4 Likes 1 Share |
(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. 66 |