Use reflector to update and order your mirrorlist

Use reflector to update and order your mirrorlist

I came across a neat little program that ranks your pacman mirrorlist by speed and also updates it with the most recent version. Install: sudo pacman -S reflector Usage example: sudo reflector –sort rate –save /etc/pacman.d/mirrorlist -c “Belgium” -c “Netherlands” -c “France” -c “Germany” -f 5 -l 5 -p https This will update my mirrorlist and rank by speed/rate for the countries Belgium, The Netherlands, France and Germany.

Drupal: How to turn off automatic enclosing <p> tags in CKEditor

Drupal: How to turn off automatic enclosing <p> tags in CKEditor

Using my previous post on how to turn of the automatic paragraph tags in CKEditor, I knew how to shut this feature off but I didn’t know where. vim sites/all/libraries/ckeditor/config.js Then add this to the config section: CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = ‘fr’; // config.uiColor = ‘#AADC6E’; CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR; }; Save and refresh the page.

Arch Linux Cronie: PAM unable to dlopen…

Arch Linux Cronie: PAM unable to dlopen…

When trying to find out why cronie didn’t execute its tasks any more, I came across this error while looking at its status messages: systemctl status cronie.service A red error appeared: PAM unable to dlopen(/usr/lib/security/pam_unix.so) Turns out that after an update you have to restart cronie manually. systemctl restart cronie

CiviCRM: Mixed content error

CiviCRM: Mixed content error

Recently I encountered an error on a CiviCRM profile page, where the reCaptcha gave me a mixed content notification. The whole site is running on https. I solved it by adding this to the CiviCRM config. define(‘FORCE_SSL_ADMIN’, true); $_SERVER[‘HTTPS’]=’on’; // (provided the SSL Certificate is working correctly) Found this here.

C#.NET: Does object have method or property?

C#.NET: Does object have method or property?

I wanted to see if I could determine if an object had a certain property. I came across this post, that explained how to do this using reflection in .NET. Here is what the little extension class looks like: public static class Extensions { public static bool HasMethod(this object objectToCheck, string methodName) { var type = objectToCheck.GetType(); return (type.GetMethod(methodName) != null); } public static bool HasProperty(this object objectToCheck, string propertyName) { var type = objectToCheck.GetType(); return (type.GetProperty(propertyName) != null); }…

Read More Read More

Keyset does not exist error in .NET application

Keyset does not exist error in .NET application

When using WCF to communicate with a web service that required a client certificate, I couldn’t get the solution to run unless I started Visual Studio as an administrator. The error that I got was : System.Security.Cryptography.CryptographicException Keyset does not exist I knew full well the private key did exist (you can see this in MMC > Certificates). So it had to be a security related issue, seeing that when I run it as admin I have no issues. After…

Read More Read More

Multiple https websites on one IIS 7.5

Multiple https websites on one IIS 7.5

I wanted to use IIS 7.5 to host multiple sites under https. The only way I found so far is to have multiple IP addresses link to one server or configure multiple IP addresses on the server and use the IIS site bindings to listen to these alternate IP addresses. First of we need to configure our network card and add the new IP address to it. Go to the properties of your network card and select IPv4, then click…

Read More Read More

Steam stuck/freezes on installing update

Steam stuck/freezes on installing update

Recently my steam game updates would halt on the install part. I tried to verify local game cache like most people suggested but to no avail. I check the directory user rights but all those where correct too. Then I found the following fix that worked for me. Exit steam by going to the main tool bar click Steam >> Exit. You will be presented with the following dialogue. Press Exit now. Start the windows task manager by right-clicking on…

Read More Read More