What is Docker.qcow2?

The .qcow2 file is exposed to the VM as a block device with a maximum size of 64GiB by default. As new files are created in the filesystem by containers, new sectors are written to the block device. These new sectors are appended to the .qcow2 file causing it to grow in size, until it … Read more

du in PowerShell?

There is an implementation available at the “Exploring Beautiful Languages” blog: “An implementation of ‘du -s *’ in Powershell” function directory-summary($dir=”.”) { get-childitem $dir | % { $f = $_ ; get-childitem -r $_.FullName | measure-object -property length -sum | select @{Name=”Name”;Expression={$f}},Sum} } (Code by the blog owner: Luis Diego Fallas) Output: PS C:\Python25> directory-summary … Read more

Get free space on internal memory

this post might fit well to your question. also check this thread. there is so much info here on SO. googled a bit and here is the solution (found at android git) File path = Environment.getDataDirectory(); StatFs stat = new StatFs(path.getPath()); long blockSize = stat.getBlockSize(); long availableBlocks = stat.getAvailableBlocks(); return Formatter.formatFileSize(this, availableBlocks * blockSize);

How to find the amount of free storage (disk space) left on Android? [duplicate]

Example: Getting human readable size like 1 Gb String memory = bytesToHuman(totalMemory()) /************************************************************************************************* Returns size in bytes. If you need calculate external memory, change this: StatFs statFs = new StatFs(Environment.getRootDirectory().getAbsolutePath()); to this: StatFs statFs = new StatFs(Environment.getExternalStorageDirectory().getAbsolutePath()); **************************************************************************************************/ public long totalMemory() { StatFs statFs = new StatFs(Environment.getRootDirectory().getAbsolutePath()); long total = (statFs.getBlockCount() * statFs.getBlockSize()); return total; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)