Disabling outgoing voicemail calls in Android (rooted phone).

Android dialer call and voicemail buttons
Android: Voicemail number not set

I hate voicemail. It's usually a total waste of time and money as the message itself tends to be "call me back at the number you already have" so I usually disable voicemail as a feature. This actually means that incoming calls are not forwarded to your voicemail. Seems like a problem solved only until I got a smartphone that has voicemail button right next to call button:
Android dialer call and voicemail buttons

Ip address blocking service.

IpBlock EventViewer log entries

While experimenting with hosting options I tried an Amazon Cloud virtual machine among others to test hosting performance and ease of setting up Drupal on Windows compared to Linux shared hosting I use usually. Familiar Windows environment was pleasantly easy to configure, but failed to impress with server performance. After thorough disk space cleanup and uninstalling of extra applications I stumbled upon Event Log records of Brute Force attack attempts (Event Id 4625) that look similar to:

Similar nodes in Drupal 7 using Views

Настройка представления похожих документов в Друпал 7
Настройка представления похожих документов в Друпал 7

Internal links are important part of Search Engine Optimization. A common use of automatic internal links is "Similar articles" section suggesting pages with the same tags as the current one. For Drupal there's a module that does just that called Similar by Terms. Unfortunately the version for Drupal 7 is not in working state at the moment and I could not manage to utilize it.

Drupal 7. Recover, unblock admin account blocking after 5 failed login attempts.

If you get this message:
:Sorry, there have been more than 5 failed login attempts for this account. It is temporarily blocked. Try again later or request a new password."
after some failed login attempts and want to recover access to your site then you can do this via SQL using phpMyAdmin for example.

XSLT transformation that returns value and inner xml

Question: When transforming XML with XSLT how can I get inner value of tag including inner tags?

Suppose you have this XML:

<Root>SomeValue
  <Name>SomeName</Name>
  <Desc>SomeDesc</Desc>
</Root>

And you want to get the following result:

SomeValue
  <Name>SomeName</Name>
  <Desc>SomeDesc</Desc>

The XSLT transformation could be like this:

"Unable to send e-mail. Please contact the site admin, if the problem persists" Drupal error.

Among other possible causes including your hoster's settings you can get this error if your site name (Configuration->Site Information->Site name) contains non-English characters. Specifically because Drupal (as of version 7.14) handles [site:name] token incorrectly when constructing subject field for outgoing emails.

Adding OpenId Delegation to Drupal 7 site.

Further to reading about getting nice OpenId for your site you might wonder "How do I add those two lines to my Drupal site <head> section?" Forget about installing additional modules - they have very little chance of being supported in the next Drupal release. Instead, read on and see how easy it is to do this yourself.

.NET: XSLT transformation with formatted XML output (with indents and new lines)

Suppose you need to transform one XML string into another XML string. And output XML must be formatted: with new lines and indents. So you can do it like this:

Rar, Winrar - Exclude subdirectory from archive

When you pack your source code by WinRar you may want to exclude some service folders used by third-party products such as Mercurial, SVN or ReSharper. For example, you have next directory structure:

MyProject
    .hg  
    _ReSharper.MyProject
    Folder1
    Folder2
Library
    .hg
    _ReSharper.Library
    Folder1
    Folder2

where .hg is Mercurial service folder, _ReSharper.* - ReSharper service folder. You want to pack you source code without .hg and _Resharper.*. Then you command line would be like:

Tags: 

Unity exception: Activation error occured while trying to get instance of type

You can get this exception from Unity: Activation error occured while trying to get instance of type in many cases. And then you can try to look into InnerException stack to find only The type MyType cannot be constructed. You must configure the container to supply this value.. Below are the reasons that can lead to this error message:

  1. The class you try instantiate (or dependent class) is abstract.
  2. The class you try instantiate (or dependent class) has no public constructor.

Pages

Subscribe to giraffes do exist RSS