Tuesday, February 21, 2012

Using System.Configuration


If I am looking to get connection string from my app.config I may write as followis:

using System.Configuration;

...
Trying to access ConfigurationManager would not be successful if you do not add a reference to System.Configuration.dll. Visual Studio would not complain that you miss System.Configuration.dll. This is very strange. VS 2010 do not show any indication of missing System.Configuration.dll.
So if you have the following
using using System.Configuration;

But can not access any methods from this, you miss a reference to this DLL. Visual Studio will not notice you if you have default configuration.

Thursday, February 16, 2012

SMTP service not supplied in Windows 7


IIS (Internet Information Server) 7.0 in Windows 7 no longer includes the SMTP service. If you need that Mail service, you need to download Remote Server Administration Tools for Windows® 7
 from:
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=7887

Tuesday, February 14, 2012

Solution to problem to run gem install



If you get the following error message when you try to install via gem:


ERROR:  While executing gem ... (Errno::ENOENT)
 No such file or directory - H:/

Reason:
one of the environment variables (most of the time HOME,USERPROFILE or HOMEDRIVE and HOMEPATH) point to H:/

You   can temporary or permanently change it:


set HOMEDRIVE=C:
and run again gem.

Word list


Sometimes you need access to a complete list of word in various languages.
Here is a list of word lists in zipped format:

  1. http://wordlist.sourceforge.net/
  2. For other languages you 
  3. http://borel.slu.edu/crubadan/

Friday, February 10, 2012

OpenCV.dll: Can't find dependent libraries


If you get the follwoing erro message when using OpenCV + processing:


!!! required library not found : ...\processing-1.5.1-windows\processing-1.5.1\libraries\opencv_01\OpenCV\library\OpenCV.dll: Can't find dependent libraries
Verify that the java.library.path property is correctly set and the '\path\to\OpenCV\bin' exists in your system PATH

Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: hypermedia.video.OpenCV.capture(III)V
at hypermedia.video.OpenCV.capture(Native Method)
at hypermedia.video.OpenCV.capture(OpenCV.java:945)
at Bubble.setup(Bubble.java:40)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)



This can be solved by installing  opnCV version 1.0.

Thursday, February 9, 2012

What is matchmoving?

Matchmoving  = Camera Tracking + Camera Matching

Matchmoving make it possible to reconstruct 3D from 2D footages.

More information : http://code.google.com/p/libmv/

To have ideas how this really works, this is worth to watch it at youtube:
http://www.youtube.com/watch?v=pDGI7tyUfp8&feature=endscreen&NR=1
http://vimeo.com/25516157

Monday, February 6, 2012

Augmented Reality Libraries


To develop an Aumented Reality application you need libraries. Below is a list of libraries for different plattforms:
Stand Alone Application Development:
Web Application Development:
Mobile Application Development:

Of all the above I would recommend opensource AR from http://www.artoolworks.com.

Friday, February 3, 2012

Failed to allocate memory in Android and Eclipse

Problem:
While you run Android from Eclipse you get the following error:

[2012-02-03 15:57:38 - Emulator] Failed to allocate memory: 1455


Solution:
Open Android Virtual Device Manager and add or change the value to device ram size to 15 or a value smaller or higher:

Thursday, February 2, 2012

Generate Proxy Class to access a Webservice in .Net

In any language in order to access a web service you can generate autiomatically a proxy class from wsdl.
In .Net you can use WSDL.exe located in C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
to generate a Proxy class to call methods in web services.

If you want to run wsdl.exe from anywhere, add
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
in your PATH in system variable.
In order to create a client proxy class in c# for an XML web service located at a specified URL at some location run the following command:

$wsdl /out:ClientProxyClass.cs http://servername/WebserviceRoot/SomeWebservice?WSDL




See  more documentation about this at http://msdn.microsoft.com/en-us/library/7h3ystb6%28VS.71%29.aspx