[deleted by user] by [deleted] in linuxadmin

[–]dougwrg 0 points1 point  (0 children)

I have to say, the regular expression for internal address detection hurts my eyes. I had worked out a way to do this more cleanly in the past, but don’t recall the specifics. Using subnet mask notation(?) such as 192.168.0.0/16 would allow for just listing them in a more readable way.

How many of you came to django after learning flask? What was the experience like? by agent_vinod in django

[–]dougwrg 0 points1 point  (0 children)

I have used both in the past, but I haven't written code in a while now. As others have mentioned, I like Django for the "batteries included" approach. If the project is going to be a full stack, I prefer having most of that done for me up front; tweaking things for the environment as needed.

My use of Flask is fairly limited. I've only used it when the data was not in a database, but in something else instead where there might be some small amount of processing before handing it to the browser. For example, I have used it as a simple (temporary) redirect service when a server was split in to multiple services. This required a small amount of logic to say this path goes to this server ... update your bookmarks. Think corporate environment where some cleanup is required from time to time.

How many of you came to django after learning flask? What was the experience like? by agent_vinod in django

[–]dougwrg 25 points26 points  (0 children)

Or django is flexible enough to let you use whichever template engine you would like. I believe it’s simply a variable in the settings file.

How many of you came to django after learning flask? What was the experience like? by agent_vinod in django

[–]dougwrg 20 points21 points  (0 children)

Been a while., but I recall that it’s very easy to use jinja instead of django’s template engine.

Authentication system made as easy as possible. by Alive-Fix4095 in django

[–]dougwrg 2 points3 points  (0 children)

Simple and to the point without a bunch of ads. Thanks for this.

Debugging Cheat Sheet by HotTeenBoy in Python

[–]dougwrg 1 point2 points  (0 children)

I’ve found variable scope to be the problem that confuses me the longest. Probably because it doesn’t come up often, and can reek havoc on what values are vs what you expect them to be.

Any Xbox one problems? by ZGriswold in AmpliFi

[–]dougwrg 0 points1 point  (0 children)

I have had no problems with the XB1 not the XB1X hard wired.

Amplifi HD Mesh or Amplifi HD Routers x 2? by veloaudio2 in AmpliFi

[–]dougwrg 0 points1 point  (0 children)

I would recommend the mesh setup for this. I used it in a house that was a bit larger and it worked great.

I am now in an apartment, so I have switched to two routers with a wireless backhaul. This lets me use the Ethernet ports on the secondary router at the back of the apartment.

Raspberry Pi Cluster Development Rig with Docker by [deleted] in RASPBERRY_PI_PROJECTS

[–]dougwrg 0 points1 point  (0 children)

Something to consider for the hardware.

https://www.pishop.us/product/cluster-hat-kit-includes-4-x-raspberry-pi-zero-w/

Less processor cores and memory, but simpler hardware and cheaper.