8 – Images broken in production site and not in local

Some reason I’m able to view all my images in my LOCAL site, but as soon as I update my production files folder to match with my Local. some of the images are broken/Not Found. I checked out my files and everything looked good.

Screenshot of my local:
enter image description here

Screenshot of my prod:
enter image description here

I read that removing my .htaccess file inside my files folder and refreshing the cache would fix it but it didnt work.

Any idea what could be the issue?

Certificates in docker local registry

I’m trying to set up a docker local registry within my university network. Since they offer certificates from rediris I requested one, so I have now three different files:

  1. cert.pem
  2. intermediate.pem
  3. chain.pem

In addition to this, I kept my .key and .csr as well. Following the docker website example (https://docs.docker.com/registry/deploying/#get-a-certificate)


I’m not able to comprehend how concatenate/transform those pem files into the domain.crt file I need, all my tries led to the docker local registry treating the cert as self-signed.

Thank you very much in advance and am really sorry if this question is dumb, my knowledge on system administration is minimal.

Software for streaming low-latency video over a local network?

I’m trying to find a solution for serving video over my network locally. Hosting an RTMP server gives me a roughly 2-second delay. VLC’s streaming option doesn’t seem to work with video and with audio has multiple seconds of delay. This is on a local-network so I’d preferably want the delay to less than a second.

It seems like my IP camera on my phone has this capability with an incredibly low latency, but I don’t know if that technology is adaptable to use to stream my monitor on my PC. I am able to use my OBS output as a webcam, if that helps.

python – What is best practice for getting a variable passed into a function several layers deep in a local function call?

I have a situation as follows, I have a relative path that I want to get for a directory. The directory structure is as follows,

Windows Folder Structure



Linux Structure



Top Level

args = parse_args(sys.argv(1:))
main(args.filepath, args.repository)

Function Definitions

//do stuff with filepath, repopath

   path_to_repo = rel_path()  
   #use path_to_repo 

def rel_path():
    Gets the relative path two directory levels up where FileFolder folder lives
    return os.path.abspath(os.path.join(os.path.dirname( __file__), '../../', 'FileFolder/FolderOfInterest'))

I have been asked to make this more general so I don’t have to rely on the FileFolder name being ‘FileFolder’ in case somebody has it named differently.

I pass in the path directly to repopath at the start, so I could use that since it’s validated before use. My usual solution is this

My Usual Solution

Pass repository_path from the top level.

    repository_path = args.repository

    def rel_path(repository_path):
        Gets the relative path two directory levels up where galaxy folder lives
        return os.path.abspath(os.path.join(os.path.dirname( repository_path ), '/FileOfInterest'))

It comes up often that I need to pass in information from a higher level function to a lower level function, usually after I realize that info is needed and I want to refactor something to use it for whatever reason. This requires adding an extra argument to multiple functions and changing functionality slightly. There is actually a third function in-between this in my real code, but this illustrates the issue.

Here is my question

My question is this, is there a best practice for passing in information to a lower level function used only inside another function that isn’t called by the main function? Or am I way off base here? Is there any easier way to get the relative path of FolderOfInterest that I’m interested in getting? Typically I have historically programmed in procedural languages and this has come up plenty of times before in the past. But, it also comes up in OOP programming I’ve done before.

This comes up often enough that I thought it was worth asking here. How do I pass information around without requiring rework of multiple parts of my code when that information is embedded at a higher level than where it needs to be used? I’m trying to make this as agnostic as possible with relative paths, function arguments so it’s easier for others to use/modify later, and so people using it don’t have to make changes depending on whether they run it on Linux or Windows.

I hope I’ve written this somewhat clear and this is a useful enough question to be here. I originally had this on stackoverflow, but since it’s more about best practices in software engineering, I put it here.

I’ve marked this as python because that’s what I’m writing in, but this comes up just as much in c, matlab, c++, and other languages I’ve written in that I’m not necessarily tied to the answer being specific to python syntax

Create your own android browser for $125

Create your own web browser
protect your self from privacy
We offer following features
-private bookmarks
-personal bookmarks
-incognito tab
and unlimited more

by: Omsandippatil
Created: —
Category: User Testing
Viewed: 120


linux – Iptables Forward All traffic to different interface except local inter-lan

I have Two LAN

Local LAN: with gw

Remote LAN : with gw

both lan can communicate and ping each other devices.

i have introduce new machine and set all devices gateway to this ip.

I need to to forward all traffic to’s eth0 >>> tun0 interface except there local inter-lan communication.

So what i have done till now is

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -i eth0 -o tun0 -j ACCEPT
iptables -A FORWARD -i tun0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
ip route add -net gw dev eth0 metric 101

So after this i am able to ping from network to and vice versa

but when the tun0 interface create after connecting to the vpn only one way ping happen to NOT vice versa.

What else can i do so that it can ping each other network even after connecting to vpn(tun0 interface)?

mysql – sql backup restore converts createdAt to local TZ

I have a remote MySQL DB in the cloud on JAWSDB.

I have createdAt and updatedAt timestamps for records that are in UTC TZ.

I’ll backup these DBs using mysqldump -h HOST -u USER -p > backup.sql. I then restore these to a local MySQL Server using
mysql -u USERNAME -p DB_NAME < backup.sql

However, upon inspecting the new local backup…I notice that the createdAt timestamps are for my local TZ (EST and so currently 5hrs before the UTC version that are actually in JAWSDB). The updatedAt timestamps are still in UTC though.

Here’s how I created those timestamp fields btw.


So it seems like the restore of the dump is converting from UTC to EST just for the createdAt field. Could this be due to an engine or mysql version mismatch between JawsDB and my local server?

Any insights? Thanks!

wallet – How to buy bitcoin to my local harddrive?

There are stories about people searchung dumps for their thrown away harddrives with bictoins with brazillions of money. I want to get such harddrive too :]

Is it possible nowadays? I.e. buy bitcois directly to my wallet, without any third party accounts?

I registered on CoinMarketCap and coinbase and looks like first site doesn’t allow to buy bitcoins and another is maintaining it’s own accounts with their security and 3rd party auth. But I don’t want their accounts, I want my on my local selfcontained harddrive.

Is it possible?

I have 3 PCs on the same WiFi. Why are 2 of their local IPs "192.168.1.x" but the 3rd PC is "192.168.56.x"?

The third PC which has that 192.168.56.x local IP is ALSO conveniently the only PC that I can’t get to connect to my iPhone.

What is going on here? Is this meaningful in any way, that one PC has a different local IP format than the others?

❓ASK – Help about monetizing (local) Travel website | NewProxyLists

Im in building of travel website with local offers, so instead of local deals (which make me money for bookings) what is another way to monetize my website?

Adsense? PropellerAds? PopAds?


Or try to promote deals from clickbank ?

Thank you for help in forward