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

How to make WiX leave files after uninstall?

Set the Component value Permanent=”yes” like so: <Component Id=”LicenseDoc” Guid=”*” Permanent=”yes”> <File Id =”License.rtf” Source=”$(var.SolutionDir)Installer\License.rtf” /> </Component> Remarks: This definition has to be done in the installed MSI as well as the upgrading MSI. If the base MSI did not have a component Id this file will be deleted regardless of the Permanent=”yes”

How to convert .txt file to Hadoop’s sequence file format

So the way more simplest answer is just an “identity” job that has a SequenceFile output. Looks like this in java: public static void main(String[] args) throws IOException, InterruptedException, ClassNotFoundException { Configuration conf = new Configuration(); Job job = new Job(conf); job.setJobName(“Convert Text”); job.setJarByClass(Mapper.class); job.setMapperClass(Mapper.class); job.setReducerClass(Reducer.class); // increase if you need sorting or a special … Read more

open multiple filenames in tkinter and add the filesnames to a list

askopenfilenames returns a string instead of a list, that problem is still open in the issue tracker, and the best solution so far is to use splitlist: import Tkinter,tkFileDialog root = Tkinter.Tk() filez = tkFileDialog.askopenfilenames(parent=root, title=”Choose a file”) print root.tk.splitlist(filez) Python 3 update: tkFileDialog has been renamed, and now askopenfilenames directly returns a tuple: import … Read more

Copy folders without files, files without folders, or everything using PowerShell

To copy everything in a folder hierarchie Copy-Item $source $dest -Recurse -Force To copy the hierarchie you can try: $source = “C:\ProdData” $dest = “C:\TestData” Copy-Item $source $dest -Filter {PSIsContainer} -Recurse -Force To flatten a file structure you can try: $source = “C:\ProdData” $dest = “C:\TestData” New-Item $dest -type directory Get-ChildItem $source -Recurse | ` … Read more

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