Jenkins Git Fetch sometimes hangs

Sometimes when job build is started it hangs and just first line of log is shown. You have to manually abort the build and run again.

This happened on Windows. Here is solution which worked for me (although I don't know actual cause of problem): Jenkins called
from bin directory (the actual executable run was
). If I changed the called program to
everything started to work fine, no more hangs.


Keywords: Git, Jenkins, Windows

How to update drupal core using drush

drush up drupal
Keywords: Drupal, Drush

dd: ignore errors

If you have e.g. broken file or disk and you want to try to copy as much as possible data, you can instruct dd to ignore errors:

dd if=/mnt/sda/file of=/mnt/sdb/file conv=noerror,sync
Keywords: Linux, linux, dd, ignore errors, dd errors, dd ignore errors

openvpn[xxxxx]: SIGUSR1[soft,connection-reset] received, process restarting

If you see server is countinuously re-authenticating to OpenVPN:

openvpn[12326]: SIGUSR1[soft,connection-reset] received, process restarting

It means one of the connections has problems.

Keywords: OpenVPN, Virtualization

Drupal fbconnect: Ensure that you entered valid api keys, Call to undefined method Facebook::getSession()

If you install Drupal fbconnect module, you can meet two problems: Ensure that you entered valid api keys When you click App Settings in fbconnect administration, you can see this message. It's caused by missing Facebook PHP SDK.

Solution is to download it from…book-php-sdk:

cd sites/all/modules/fbconnect
git clone facebook-php-sdk

Call to undefined method Facebook::getSession() If you have Facebook PHP SDK installed, you can get this error. It's caused by changes in Faceboo

Keywords: Drupal, Facebook

Inline video in Android browsers


<video id="video" autobuffer height="240" width="360">
<source src="BigBuck.m4v">
<source src="BigBuck.webm" type="video/webm">
<source src="BigBuck.theora.ogv" type="video/ogg">


  function init() {

  function enableVideoClicks() {
    var videos = document.getElementsByTagName('video') || [];
    for (var i = 0; i < videos.length; i++) {
      // TODO: use attachEvent in IE
      videos[i].addEventListener('click', function(videoNode) {
Keywords: Android, JavaScript

Removing wrongly created branch from Git

If you accidentally fetched branch or branched local one and named it incorrectly (remotes/master instead of remotes/origin/master):

$ git branch -a
* master

You can't delete it using

$ git branch -d "remotes/master"
error: branch 'remotes/master' not found.

But you have to use

$ git branch -rd master
Deleted remote branch master (was d980b5e).
Keywords: Git, remove branch

How to enable assembly binding logging

DWORD EnableLog set value to 1
DWORD ForceLog set value to 1
DWORD LogFailures set value to 1
DWORD LogResourceBinds set value to 1
String LogPath set value to folder for logs ie) C:\FusionLog\

Keywords: .NET, assembly binding, assembly binding logging

How to reset Drupal password

update users set pass=md5('NEWPASS') where uid = 1;

Keywords: Drupal, reset drupal password
Syndicate content