« first day (4291 days earlier)      last day (21 days later) » 

00:22
REFRESH! There are 5110 unanswered questions (93.4076 answered)
00:42
@RMunroe Not the worst approach for new players to play against. Keeps you sharp for obvious mistakes.
 
10 hours later…
10:13
0
Q: Better performance alternative to remove all spaces that are not in a <pre> tag?

Cyril N.I'm cleaning HTML content using BeautifulSoup and one thing I do is removing unecessary spaces with the following code: for elt in self.soup.find_all(string=lambda text: isinstance(text, NavigableString)): if elt.string.strip() == '': # Empty string, we remove elt.extract() T...

 
7 hours later…
17:16
Monking
17:30
0
Q: Calculating the determinant of a matrix using a purely analytical method that involves the "cross product" in nD. What is this operator's real name?

shawn_halaykaI've been conversing with the various AIs about the cross product in 3D and 7D. I've been lead to believe that n = 3 and n = 7 are only dimensions where the cross product is a well-defined operator. So I took the 7D code and made it into a template function that calculates for any n > 0, not just...

18:14
0
Q: Rock-Paper-Scissor game

Zohaib MushtaqI started my journey of coding with JavaScript, but now I have picked up C++. I made a simple Rock-Paper-Scissor game in it, so please tell me if I'm doing anything wrong or if I'm using a wrong approach. Here is the code: #include<iostream> char getUserChoice(){ char choice; do{ ...

18:58
0
Q: Simplified Container Implementation Using std::initializer_list (Under-the-Hood Behavior)

samiI am trying to implement a very simplified version of a container to demonstrate only how std::initializer_list might have been implemented under the hood. Is that close? template <typename T> class Container { public: Container(std::initializer_list<T> lst) : m_s...

 
4 hours later…
22:44
0
Q: Review sqlalchemy and alembic integration in FastAPI

mascaiI am building a fastAPI + sqlalchemy + alembic + docker-compose reusable template. Full source code: https://github.com/mascai/fastapi_template (commit 77ce7f2) The project is working but I worry about alembic and sqlalchemy integration The first point: I have to import users (orm model) in th...

22:58
0
Q: sqlalchemy and alembic integration in FastAPI

mascaiI am building a fastAPI + sqlalchemy + alembic + docker-compose reusable template. Full source code: https://github.com/mascai/fastapi_template (commit 77ce7f2) I would appreciate pull-requests =) The project is working but I worry about alembic and sqlalchemy integration The first point: I ha...


« first day (4291 days earlier)      last day (21 days later) »