9 – Why does the upload progress bar reset at 40% when uploading large files?

I’m uploading a 5 GB file and the upload progress bar resets at 40%.

When it gets to 40% it starts counting again from 0%.

Eventually the file does upload completely but this is not good UX.

I was wondering if any knows how I can make the progress bar reach 100% like it should.

Upload Progress Image

Which browsers support flac audio files?

I can play them in Chrome, FF and Edge but I’m concerned there may be some browsers that they may not work in.

javascript – In react why don’t index.js files need to be specified on import?

Trying to understand while using create react app why if a folder contains an index.js and you want to import it, then you only specify the folder name?

I was curious to know where this is configured to automatically know to look for index.js by default?

Also is it specific to react or other libraries too?

htaccess – What types of files does ExpiresDefault include?

But, what are the file types that ExpiresDefault will work on ?

As you’ve stated, “the rest”. Any responses that are not covered by the mime-types stated in the preceding ExpiresByType directives are covered by the ExpiresDefault directive.

So, from the directives you posted, this will include HTML (text/html), JS (application/javascript), CSS (text/css) and anything else you are serving.

Are php files also included here ?

Well, that depends what mime-type your PHP files are being served with.

Ordinarily, your PHP files probably default to a text/html mime-type since you often serve HTML content from PHP files (by default). In which case, your ExpiresDefault directive will include these responses, since text/html is not covered by the specific ExpiresByType directives.

However, PHP can potentially serve anything. Your PHP file could generate a JPEG image, in which case it should be served with a image/jpeg mime-type (in the Content-Type HTTP response header). In this case, the ExpiresByType image/jpeg ... directive will cover this response and ExpiresDefault will not apply.

Aside:

ExpiresDefault "access plus 2 months"

The plus keyword is entirely optional. It is just syntactic sugar, to make it more readable.

So, include it or not – it is up to you. But, as with everything, it is important to be consistent. Include it OR don’t include it; don’t mix.

ExpiresByType image/jpg "access 1 years"
ExpiresByType image/jpeg "access 1 year"

You don’t need both of these. Your server is (or “should be”) responding with only one or the other mime-type for JPEG images. It “should be” image/jpeg, which is the official mime-type. However, you could have a “buggy” script that thinks otherwise.

Check the Content-Type HTTP response header for the mime-type that is being served. That is the only one you need to target.

web hosting – Problem with iframe cloaking, How can I add all my website files into a domain name itself?

I have come to the point where a “simple” way of building websites is just not able to facilitate larger projects. I have been using repl.it to simply host and read files I have coded in HTML, CSS, JS and other environments. I simply just cloak over a domain (which uses an iframe) that is a very cheap solution for a low quality performance website. The code itself is fine, I am currently on a chat website application and the iframe simply doesn’t handle to the simple features that other devices may have. For example, the iframe looks fine on a computer or larger screen device, but once I use a phone to test the site, the iframe tries to cloak over it as it’s a desktop screen. From the repl.it itself, it is a responsive design, the website fits all screen resolution borders and looks good on every device, this only works from the repl.it hosting domain which is just too long and ugly and that is the only reason why I am using a cloak to hide the name, but with that comes other problems.

Is there a way I can directly put my files over a domain name itself, or host? The website uses socket.io as the server and it all works out, it’s just when cloaked, the screen borders are zoomed right out so it can try and fit a computer screen.

The zoomed out one is when it is cloaked, and the perfect one is how I would like it to look as it is directly hosted off replit

enter image description here

enter image description here

python – Cannot assign to function call when looping through and converting excel files

With this code:

xls = pd.ExcelFile('test.xlsx')
sn = xls.sheet_names
for i,snlist in list(zip(range(1,13),sn)):
    'df{}'.format(str(i)) =  pd.read_excel('test.xlsx',sheet_name=snlist, skiprows=range(6))

I get this error:

‘df{}’.format(str(i)) = pd.read_excel(‘test.xlsx’,sheet_name=snlist,
skiprows=range(6))
^ SyntaxError: cannot assign to function call

df+str(i) also returns a error.

I want the result as:

df1 = pd.read_excel.. list1...
df2 = pd.read_excel... list2.... 

Convert Big WordPress Website into Static HTML Files

How can i do that, and deploy it to Fireb… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1834936&goto=newpost

terminal – How do I access files, copy them on an external hard drive, and see them on it?

I’m trying to recover the password of an old iMac with a little trick I’ve learned. To do that, I need to access recovery mode, which doesn’t work for some reason. I know the shortcut is cmd + R. I’ve also tried Shift + cmd + R but that didn’t work either. So I went into single user mode to access the files, which worked. I have an external hard drive that is formatted as Mac OS Extended (Journaled) to put the files I’m looking for on the iMac into the drive. I copied them and I went to my computer to access it. But now my drive isn’t mounting!

When I did the copy I ran the command cp <file> /dev/disk1s2. When I try to mount it on the other computer to see the files, I tried mounting it through the command line with diskutil mountDisk /dev/disk2 and diskutil mount /dev/disk2s2. Both commands gave me an error saying that the disk failed to mount. I also tried mounting it through Disk Utility but nothing happens.

I need those files because it contains the password of the computer. How am I going to see the files? I’ve also tried going into another user account and copying the files but that user needs sudo to access them and that user isn’t part of the /etc/sudoers file. In Single User mode, I tried to add the other user to the file but everything is read-only even though I ran /sbin/mount -uw. I think if someone told me how to fix the read-only issue in Single User mode, I would be able to create a new admin account by running rm /var/db/.AppleSetupDone The user account I’m trying to recover is the admin account of the computer so that’s why I think that would work.

I transferred files between different Google Drive accounts and now they are dependent on each other

I followed my own instructions for how to transfer folders between different Google Drives here How to copy a shared folder into my own Google Drive?

Basically, share a folder X from account A to B and give B edit rights. Now right-click on X again and a new option has appeared “Make B owner”. This also removes A as owner and makes A editor of X.

I then changed A from editor to viewer and then, as A, deleted a file. Surprisingly, this was allowed and it also removed the file from B’s account and put into B’s Trash (as well as A’s Trash).

Further information

  • After changing the owner of X, the folder was “orphaned” on A’s account. The only way to find its content is to search for a file in it. In other words, you can’t start at the root of A’s drive and browse to it.

  • X consumes the quota on BOTH A’s and B’s account. This is weird. The deletion issue described above indicates that X is stored in just one account (although the fact that the deleted file ends up in both A’s and B’s trash says something different) but the quota usage indicates that X is duplicated.

  • I have waited a couple of days in case there were some delays in updating the quota usage or similar.

  • On A, X is listed under Shared with me.

How do I sort out this mess? I want X at account B, and only there, and recover my space at A.

database – Distribute commit files between different repositories

I am not sure if what I’m asking is even possible (or desirable, for that matter), but we were wondering what would be the best way to handle SQL changes to a Database schema, when this schema is shared across multiple apps/teams.

We work for a large corporation where database schemas are shared between different software applications (and therefore independent, unrelated, incommunicated, development teams). This means that certain changes to the schema (new views, procedures, constraints, tables, etc.) can come from a variety of apps.
Having version control of the DB objects is ideal, but depending on the strategy

  • either a DB snapshot has to be composed from the changes produced by different apps (who knows which?), by traversing all possible apps that touch that schema,
  • or to see the latest changes in a specific application’s version, two (or more) repositories have to be checked (in addition, there is no hard-link between commits, releases, etc.).

i.e: Attempting to version control the schema objects (Oracle) puts us in the dilemma of how to do so:

  • Do we store the changes to the different schema objects inside the application’s repository (thus distributing the schema snapshot between an undefined nº of repos)?
  • Or do we have separate repositories for the DB schemas, and make two (or more) commits to different repositories when a new version is uploaded (thus difficulting the compilation of a new release changeset)?

I was wondering if it was possible to specify in Git:

Whenever you make a push on the Application repo, send the files in the /SchemaA SQL/ folder to SchemaA repository, the files in /Schema B/ folder to the Schema B repository, and finally the rest to the Application repository. Thus, distributing the contents of the commit between repos in a single operation. Maybe .gitattributes? If using Github/Gitlab, maybe through a webhook on the remote?