Source Control, Git, JavaScript, .NET, Drupal, MSSQL, SSIS, Databases, SQL Server, CMS, Web

warning: Creating default object from empty value in /mnt/data/accounts/m/mirousek/data/www/eu/mirousek/www/modules/taxonomy/taxonomy.pages.inc on line 33.

error MSB4044: The "Fody.WeavingTask" task was not given a value for the required parameter "SolutionDir".

There is bug. Not sure if in VS or somewhere else.

Usually it's enough to restart Visual Studio.

For Xamarin, switch from Debug to Release could supposedly work.

Keywords: .NET, C#, Visual Studio

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
git.exe
from bin directory (the actual executable run was
bin/git.exe
). If I changed the called program to
cmd/git.exe
everything started to work fine, no more hangs.

Source: http://blog.cgdecker.com/…dson-on.html

Keywords: Git, Jenkins, Windows

How to update drupal core using drush

drush up drupal
Keywords: Drupal, Drush

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 https://github.com/…book-php-sdk:

cd sites/all/modules/fbconnect
git clone https://github.com/facebook/facebook-php-sdk 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

HTML:

<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">
</video>

JavaScript:

<script>
  function init() {
    enableVideoClicks();
  }

  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) {
        ret
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
  remotes/master
  remotes/origin/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

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion
Add:
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\

http://stackoverflow.com/questions/255669/how-to-enable-assembly-bind-fa...

Keywords: .NET, assembly binding, assembly binding logging

How to reset Drupal password

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

http://kb.siteground.com/article/How_to_reset_my_Drupal_admin_password.html

Keywords: Drupal, reset drupal password
Syndicate content