Thursday, February 28, 2013

WCF Tracing

This link explains the most of trace levels: WCF Tracing FAQ Add the following sections to server config And corresponding params to system.serviceModel as well. All the explanatory notes on params may easily be found in MSDN. ...

Wednesday, February 27, 2013

Using map() in Python 3

A: python 2.6: >>> map(chr,[66,53,0,94]) ['B', '5', '\x00', '^'] However, on 3.1, the above returns a map object. B: python 3.1: >>> map(chr,[66,53,0,94]) <map object at 0x00AF5570> To return a list in Python 3 the following should be used: list(map(chr,[66,53,0,94]...

Thursday, February 21, 2013

Accessing class from another module in Ruby on Rails

Modules in Ruby on Rails are not autoloadable in Ruby on Rails application. Some hints on how to use a class from another module. 1. To make a module autoloadable the corresponding line should be commented out in application.rb # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) 2. Just use "::" before the class 3. Include the module in a code where the class is supposed to be used...

Certificate errors when using RVM to install Ruby

Fixing $PATH: http://www.troubleshooters.com/linux/prepostpath.htm Curl Certificate Error when Using RVM to install Ruby 1.9.3 From here: http://stackoverflow.com/questions/6414232/curl-certificate-error-when-using-rvm-to-install-ruby-1-9-2 http://stackoverflow.com/questions/8612067/rvm-installation-fails More on this: DigiCert Trusted Root Authority Certificates: https://www.digicert.com/digicert-root-certificates.htm https://github.com/mxcl/homebrew/issues/6103 Tryng to installing RVM on Mac OS (Leopard): bash << (curl https://raw.github.com/ajiwo/rvm/targtar/binscripts/rvm-installer)  bash << (curl...

Powered by Blogger.