What is the difference between tar and zip?

tar in itself just bundles files together (the result is called a tarball), while zip applies compression as well. Usually you use gzip along with tar to compress the resulting tarball, thus achieving similar results as with zip. For reasonably large archives there are important differences though. A zip archive is a collection of compressed files. A gzipped tar is a compressed collection (of uncompressed files). Thus a zip archive … Read more

How to disable Google Chrome auto update?

Have spent a long time trying to disable updates (literally hours, reading forums and testing various (some exotic) solutions), and this was driving me crazy. But there what seems an infallible solution (see further down). Even using the official Google page with the templates did NOTHING: https://support.google.com/installer/answer/146164?hl=en I followed scrupulously the instructions of that page, the keys in … Read more

Convert PEM to PPK file format

Use PuTTYGen Creating and Using SSH Keys Overview vCloud Express now has the ability to create SSH Keys for Linux servers. This function will allow the user to create multiple custom keys by selecting the “My Account/Key Management” option. Once the key has been created the user will be required to select the desired SSH Key … Read more

Finalize vs Dispose

Others have already covered the difference between Dispose and Finalize (btw the Finalize method is still called a destructor in the language specification), so I’ll just add a little about the scenarios where the Finalize method comes in handy. Some types encapsulate disposable resources in a manner where it is easy to use and dispose of them in a single action. The general … Read more

Verify a method call using Moq

You’re checking the wrong method. Moq requires that you Setup (and then optionally Verify) the method in the dependency class. You should be doing something more like this: In other words, you are verifying that calling MyClass#MyMethod, your class will definitely call SomeClass#DoSomething once in that process. Note that you don’t need the Times argument; I was just demonstrating its … Read more

What is jQuery Unobtrusive Validation?

Brad Wilson has a couple great articles on unobtrusive validation and unobtrusive ajax.It is also shown very nicely in this Pluralsight video in the section on ” AJAX and JavaScript”. Basically, it is simply Javascript validation that doesn’t pollute your source code with its own validation code. This is done by making use of data- attributes in HTML.

Picked up _JAVA_OPTIONS: -Xmx256M

The message “Picked up _JAVA_OPTIONS” implies that the Java runtime has found this setting in your environment variables. The solution depends on which operating system you are running. But assuming it is Windows, there are two possibilities: The most likely is that it is picking it up from the System or User environment. Try opening … Read more

tic tac toe java user vs computer

The issue was in your computerMove logic. This should work for you, just copy paste this in place of your computerMove. Now as to why your code didn’t work:- Your code: The while loop looks at the position and sees that there is no ‘-‘, thus runs. Then inside your while loop you have a … Read more