Using Smush.it or Firebug's built-in image optimizer I realize we can reduce the file size of all of our web jpgs. But quite much actually. As we have hundreds of thousands of images, is there any way to batch optimzize (and replace) these images using any tool you know of? Really don't want to do this manually one by one. :(
I've been zipping files to send to people, and they're not being compressed, even though it says they are. or maybe they're being super-minimally compressed. But I even managed to zip a folder and have it turn out larger than the size of the original folder.
I've looked all across the web for answers, but nothing has helped, and using other programs has resulted in the same thing.
I have a folder containing a lot of KVM qcow2 files, they are all sparse files.
Now I need to get the total size of folder, the qcow2 file size should be counted as apparent size(not real size).
for example:
image: c9f38caf104b4d338cc1bbdd640dca89.qcow2
file format: qcow2
virtual size: 100G (107374182400 bytes)
disk size: 3.3M
cluster_size: 65536
the image should be treated as 100G but not 3.3M
I've found this script, but I don't understand how it works.
#!/bin/bash
shopt -s nullglob
for dir; do
[[ -d $dir ]] || continue
jpgs=( "${dir}"/*.jpg )
if (( "${#jpgs[@]}" )); then
[[ -d ${dir}/Covers ]] || mkdir "${dir}/Covers"
# Avoiding race condition by not reusing the jpgs array
for jpg in "${dir}"/*.jpg; do
mv "$jpg" "${dir}/Covers"
d
I have over 1000 .csv files in a folder on Debian Squeeze. I am trying to create a new .csv file containing ONLY the first rows of each of these 1000 .csv files.
I tried:
read -r firstline < sourcefile_1.csv > headers.csv
But that only created a blank file.
My Microsoft Exchange 2010 installation server suffers from disk space absence sometimes. To work around this problem I usually just go ahead and remove log files on my mailbox folder.
I have to do it every 3 months. Is it possible to set up a recurring task in Windows Server, so that it would check the size of the mailbox folder, and if it exceeds, for example 4 GB, remove all the log files?
Hi,
I have 1000 *.txt files in a folder and I would like to rename them data1.txt through data1000.txt. The order does not matter or the names of the initial input files. How would I go about doing that? Thanks!
I am trying to get IIS to compress jquery.js (and all other static files, but using jquery as the example here) on my localhost, but something goes wrong.
The funny part is that when I look in my %SystemDrive%\inetpub\temp\IIS Temporary Compressed Files\MySiteName, I see the jquery.js file there, and its size is 24 KB.
So what I wanted to do is compress files (using 7zip) and split a 600MB folder into 199MB parts, but sadly when I tried to do this task with archive manager it gave me an error, but I know that if I use terminal it will work.