Incorrectly formatted external disk on QNAP TS-210

After using QNAP’s web-panel to format external disk, it suddenly turned out that formatting to any partition type ends with extremely small free disk size. For example, completely empty (as should be after format) 1,5 TB disk, formatted to any Windows type (FAT32 / NTFS) has only 1,9 GB free space. Formatting it to any Linux type (Ext3, Ext4) ends with 1,84 GB free space and formatting to HPS+ with 1,89 GB. In all attempts disk has less then 0,2% free space right after format. Here is the solution, that I came up with after a lot of digging.

Read More “Incorrectly formatted external disk on QNAP TS-210”

Patching some security problems in Samba

QNAP is built upon Debian, created and designed by a bunch of wise guys, constantly being improved and used around the world, sometimes in very important solutions. Thus, it is generally a safe and secured solution. On the other hand, there isn’t (there never was and there never will be) any thing, done by a human, that another human wouldn’t be able to breke, change, alter or destroy. So, there is always a good idea to improve security, whenever you’re possible to do so. This article discusses some smaller or bigger security holes in Samba on board QNAP with a possible solution or workaround.

Read More “Patching some security problems in Samba”

Favicon

Favicon (from “favorite icon“) is an icon displayed in certain places in web browser, when browsing any webpage supporting favicons. It can be displayed before address in URL bar, on browser tab, in favorites list, etc. This is mostly an icon (.ico file) in 16×16 or 32×32 dimensions.

The easiest way for your website to support it, is to put proper file in root folder of your domain or webpage, i.e. http://en.wikipedia.org/favicon.ico.

If you need more fine-grained control over this, then this article should help.

Read More “Favicon”

Handling Apple’s .dmg files in Windows

If you just want to look into (or extract) contents of .dmg file, a good, old and free 7-Zip will take care of this. This should also work for Apple .sparseimage files. But, beware that (just like in case of .iso files for Windows) these formats can contain bootable information and or whole disk images (Apple .hps files), rather useless under Windows. So, for example, if someone tell you that he has Windows XP image ready to be used in VirtualPC for Macintosh, keep in mind that you rather won’t be able to use in in Windows version of VirtualPC. Or you’ll have a lot, lot of work with extraction, conversion, tune-up etc.

Read More “Handling Apple’s .dmg files in Windows”

Changing keyboard shortcuts in PowerPoint… costs (40) 150 USD! [updated]

When you go to Options for changing Ribbon settings, in your Word 2007 or Word 2010, you can see a small button at the bottom of button list letting you to change keyboard shortcuts for most areas of you text editor. When you go to exactly the same place in your PowerPoint 2007 or 2010 you my (surprisingly?) notice, that there is no such thing. Googling around the web let’s you discover that this is… normal situation!

2023 Update: It is still a normal situation for Microsoft. Only this time you have to pay 150 USD per year (!) to gain the ability of changing keyboard shortcuts (that is: the most basic feature of every software)!

Read More “Changing keyboard shortcuts in PowerPoint… costs (40) 150 USD! [updated]”

Using PHP and Oracle database

I was working on bigger project using PHP (Yii) and Oracle database (through PDO and Yii). This isn’t a very common combination and many developers thinks, that writing PHP application to use Oracle database is a pure madness, mostly due to many strange behaviors and nasty bugs, that are present in PDO driver for Oracle. I can actually confirm this. Following article contains links to my Yii forum discussions on various aspects of using Oracle with Yii and PHP. You may find it useful, if you’re struggling with any problem.

Read More “Using PHP and Oracle database”

Lorem ipsum is gone

If you already don’t know, what Lorem ipsum is, then let me tell you, that it is a non-sense text, incorrectly said to be based on Latin or Greek, used by web developers to fill-up some textual parts of webpage. Mainly to show end-user a placeholder, where a real text finally appear. Instead of for example writing some real article to fill-up example article body, they eager to use this text.

If you don’t like Lorem ipsum of would like to have some replacements for it, then this article may help.

Read More “Lorem ipsum is gone”

addClass, removeClass and hasClass without jQuery

Class manipulation methods in jQuery are really handy, but when you need just them and nothing else out of jQuery, then using entire library seems like a little bit mistake. Using own versions of addClass, removeClass and hasClass sounds like a better idea and for this reason I have wrote following article, where you’ll find an example implementation of these methods.

Read More “addClass, removeClass and hasClass without jQuery”

Incorrect music or audiobook order in MP3 player

You may notice, that many MP3 players (both Windows programs — not tested on other OSs — as good as external hardwares) are making their file lists in some strange order. This may not be a big deal, when talking about music (though, when listening to a particular album, you may get yourself pissed-off as well), but became a really pain in the ass, if we’re talking about audiobooks.

Read More “Incorrect music or audiobook order in MP3 player”

Get rid of ID3v2 tag from many files at once using Winamp

If you’re an “old-school” MP3 user, and ID3 Tag version 1 data is all you need to get happy, you may find a shit stick to version 2 of ID3 Tag a little bit annoying. If it is so, then the big question is, how to quickly get rid of ID3v2 data for many files? Many programs are allowing to do a massive ID3 tags (both versions) change/edit, but there aren’t many of them that allows to delete particular tag version out of many files massively. And here comes my little trick.

Read More “Get rid of ID3v2 tag from many files at once using Winamp”

Disable refreshing of removable drive contents in Total Commander

When CD or DVD is ejected from drive, Total Commander “resets” contents of the pane to nearest available drive (usually C:). It is normal and obvious because contents of CD or DVD are no longer available. But, the same thing happens even if Total Commander is in background. This might be seen as an annoying feature, because each time you change CD or DVD in drive, you have to manually again select that drive in Total Commander. Fortunately, there is an easy solution for this.

Read More “Disable refreshing of removable drive contents in Total Commander”

Can’t pin folders to my Windows Explorer icon on the taskbar

When you right-click Windows Explorer icon on the taskbar in Windows 7, you can see list of recent items (i.e. recently opened folders) with an option to pin some of them permanently. On some Windows 7 systems user may experience issues with recent items and pinned entries list not being displayed, missing or cleared without reason. New items cannot be added to these lists.

Read More “Can’t pin folders to my Windows Explorer icon on the taskbar”