Making Windows 8 at least usable

Microsoft is a sinusoid, when talking about Windows releases. It always has perfect system followed by a total mistake and nightmare.

Since Windows 7 was a nearly-perfect system (thousand times better that Vista-joke), then we could expect, that Windows 8, that follows it, will be a nightmare, joke and a total mistake. It is.

While we’re waiting for (hopefully “perfect”?) Windows 9, we need to do something to make Windows 8 at least usable. Because, out-of-the-box, this system isn’t usable and is the shortest path to permanent mental illness. If you can avoid Windows 8, then do it, without asking why. If you’re forced to use it, this article should be a start point for restoring your mental stability.

This is rather a check-list (with some coment), what you should do or at least consider, than fully featured article. And, yes! Everything, what is written here, was tested on Windows 8.1, so should work just perfectly on both Windows 8 and 8.1.

Read More “Making Windows 8 at least usable”

non-YiiBooster fields with YiiBooster prepends

I don’t like the idea of rewriting my entire application’s view to use new Bootstrap 3, so my Yii apps remain on Bootstrap 2, served by YiiBooster extension. The biggest problem, I find in it is that its controls have prepends somehow “built-in”.

Both field and its prepend is rendered with one line of code. So, when you want to replace any YiiBooster’s control with for example own widget / library, you always remove one line, but looses both field and prepend.

I found ugly and nasty workaround for this.

Read More “non-YiiBooster fields with YiiBooster prepends”

ALWAYS check manufacture date of the battery, you purchase!

I have put my own and Izzy‘s answer on Android Stack Exchange to formulate this check-list or rather list of importance for things that you should consider when purchasing a new battery.

tl;dr: Li-Ion batteries stored in store or warehouse without cyclic re-charging (which most likely never happens in these scenarios) are completely dead after 20 months at most. Thus, you should never, ever purchase any kind of battery that is two years old or more. No matter what seller says.

Read More “ALWAYS check manufacture date of the battery, you purchase!”

Cyclic jobs in Yii and MySQL

When we are talking about some cyclic tasks executed periodically in PHP, most of us automatically thinks about CRON. It is not surprising, since it is very popular, easy to manage (available often even on shared hostings) and easy to code (it simply fires given PHP script).

However, there are four other ways you can achieve exactly the same in Yii/PHP. And many Yii developers may not be aware about some of them.

Read More “Cyclic jobs in Yii and MySQL”

Migrate PuTTY sessions between computers

PuTTY is one of the first programs, that I install on every computer. Since, it stores sessions in registry, it is a bit difficult to migrate sessions between computers. So far, I manage to do this with a little bit help of regedit.exe program and guides like this one. Today, unfortunately, I hit the wall, when my brand new installed Windows 7 told me, that it can’t merge entries from my putty.reg file, because it can’t access Windows Registry.

Read More “Migrate PuTTY sessions between computers”