Default text on input

In modern browsers, you may set the placeholder attribute on a field to set its default text. However, in older browsers, you may use JavaScript to capture the focus and blur events: Demo: http://jsbin.com/utecu

Regex multiple match substring

You can achieve what you need by using two steps. You could use this regex to validate the format: Working demo Once you validated the right strings you can use a function like this: Output:

Can I put a tuple into an array in python?

One thing to keep in mind is that a tuple is immutable. This means that once it’s created, you can’t modify it in-place. A list, on the other hand, is mutable — meaning you can add elements, remove elements, and change elements in-place. A list has extra overhead, so only use a list if you need to modify … Read more

Scheme IDE for Windows

DrScheme is the best Scheme IDE I have found. It has a JIT compiler, can build stand-alone executables or run in the traditional Scheme REPL, has smart syntax editing , as well as other traditional IDE features like Menu bars to change features. Running/stopping your program is as easy as clicking ‘Run’/’Stop’. It also includes a macro-expander … Read more

Difference between Chocolatey and NuGet

NuGet is designed to allow you to easily add code libraries to your project. Things like JSON.NET, Entity Framework, etc. Chocolatey is actually built on top of the NuGet package system, but it is designed to fill a different need. Chocolatey wraps up applications and other executables and makes it easy to install them on … Read more