Sending *.exe files through GMail and other mail servers

As for right know (when anything goes web and desktop applications are nearly dead) there aren’t many situations, when you would like to send an *.exe file as an attachment. But, suppose you want. Then you, the good question, is how to do this? Well… in general, you can’t do that. Gmail itself will block you from sending an EXE file directly or ZIP archive containing it. Saying that it did so, for the security reasons. And, even if you pass it over (see below), most mail servers will block you from delivering such contents to mailboxes operated on this or that server.

Read More “Sending *.exe files through GMail and other mail servers”

Installing Optware (IPKG) on QNAP TS-210

Outdated article! Read the updated version instead.

This article deals with installing Optware (IPKG) on QNAP TS-210 NAS machine. Optware is a must-have, if you want to do anything with your NAS that goes beyond using as simple network storage. I.e., if you want to access it via SSH and play a little around Linux on-board. In other words, in installs many core utils, that are simply gone from default distribution of Linux on-board QNAP.

Read More “Installing Optware (IPKG) on QNAP TS-210”

Fix for problem with mixing USB shares on QNAP

Most QNAPs randomly mounts USB disk shares. I.e. you can have disk attached to left USB port as USBDisk1, second as USBDisk2 and after reset — changed together. This causes many problems, where being unable to write some script accessing particular disks could be named at first. There isn’t an easy way to work around it. The only solution I found out was to write an script that resides in flash memory (therefore is called upon each restart of QNAP) and that mounts disks under shares similar to their disk labels.

Read More “Fix for problem with mixing USB shares on QNAP”

Remove non-empty directory on QNAP or Linux

You may try to use rm -rf [directory] to delete given directory along with all its content (including all subdirectiories and all files). Use this with caution, to not end up deleting all files on your root! :>

Note, that on QNAP (but not on regular Linux) you have to start your session as admin user, as you cannot use su command to become root. If you try this, you’ll end up with error su: user root does not exist.

Tables with multilevel lists inside in Microsoft Word

Tables with multilevel lists inside are rather uncommon element of Microsoft Word documents, but sometimes this is the best solution, you can have. For example, when you need tree-like structure (multilevel list) on the left with additional columns to the right. But, in general, it is harder piece of cake to build and manage them.

Read More “Tables with multilevel lists inside in Microsoft Word”

Introduction to bash scripts

While playing with some extra features on my newly purchased QNAP TS-210 at some point I was forced to finally write some bash script to be able to control things, that are uncontrollable via administration panel. For this reason I had to learn myself at least basics of bash, that is installed on my QNAP. I used floppix page and linuxconfig.org Wiki as a base for my learning process (and source for this article), however I had to write down my own memo-list to be able to quickly find, what I’m looking for.

Read More “Introduction to bash scripts”

No Samba access after password change

Let us understand it. Windows is stupid and idiotic system. Suppose, you store (remember) your NAS’s Samba username and password, so you don’t have to provide it, each time you access your local network share. If you thenchange your user password, Windows either won’t detect the fact that password has changed or, even if it detect it, it won’t show you login/password dialog box to provide new one. Instead, it continue to provide NAS with wrong (outdated) password.

Read More “No Samba access after password change”

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”