<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1226381793967249861</id><updated>2012-02-16T04:09:10.758-08:00</updated><category term='C#'/><category term='C++'/><category term='TCP'/><category term='Vision'/><category term='OpenCV'/><category term='command prompt'/><category term='DLL'/><category term='ADLink'/><category term='network'/><category term='Motion'/><category term='password'/><category term='Windows Application'/><category term='oracle'/><category term='database'/><category term='.NET'/><title type='text'>Techincal Diary</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ztatechnicaldiary.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ztatechnicaldiary.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ZTA</name><uri>http://www.blogger.com/profile/01652053890299654975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1226381793967249861.post-3634348195898778939</id><published>2011-11-02T01:16:00.001-07:00</published><updated>2011-11-02T01:16:20.634-07:00</updated><title type='text'>SQL Server 2008 wildcards used in Query</title><content type='html'>I have just learn some useful wildcards for SQL Server 2008 recently.&lt;br&gt;&lt;br&gt;&lt;b&gt;( _ ) Underscore Wildcard character&lt;/b&gt;&lt;br&gt;&lt;br&gt;Underscore wildcard character can be used to limit the search result for an exact number of characters.&lt;br&gt; &lt;br&gt;Example: SELECT * FROM Employee WHERE LastName like &amp;#39;Li_&amp;#39; will return all employees whose LastName like &amp;#39;Lin&amp;#39; or &amp;#39;Lim&amp;#39; but not &amp;#39;Linux&amp;#39;.&lt;br&gt;&lt;br&gt;&lt;b&gt;(-) Wildcard Character&lt;/b&gt;&lt;br&gt;&lt;br&gt;- wild card character can be used to limit the search results for character within a range.&lt;br&gt; &lt;br&gt;Example: SELECT * FROM Employee WHERE LastName like &amp;#39;[A-E]%&amp;#39; will return all employees whose last name started with A to E.&lt;br&gt;&lt;br&gt;&lt;b&gt;(^-) Wildcard Character&lt;/b&gt;&lt;br&gt; &lt;br&gt; ^- wild card character can be used to limit the search results for character outside a range.&lt;br&gt; &lt;br&gt; Example: SELECT * FROM Employee WHERE LastName like &amp;#39;[^A-E]%&amp;#39; will return all employees whose last name NOT started with A to E.&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1226381793967249861-3634348195898778939?l=ztatechnicaldiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ztatechnicaldiary.blogspot.com/feeds/3634348195898778939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2011/11/sql-server-2008-wildcards-used-in-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/3634348195898778939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/3634348195898778939'/><link rel='alternate' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2011/11/sql-server-2008-wildcards-used-in-query.html' title='SQL Server 2008 wildcards used in Query'/><author><name>ZTA</name><uri>http://www.blogger.com/profile/01652053890299654975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1226381793967249861.post-7964267283174102972</id><published>2010-12-03T00:24:00.000-08:00</published><updated>2010-12-03T00:30:39.297-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><category scheme='http://www.blogger.com/atom/ns#' term='Vision'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title type='text'>Calcuating Eigen object with OpenCV</title><content type='html'>I am using OpenCV to develop a computer vision application. Last night, I woke up in the middle of the night and tried to debug the method which I do PCA (Principal Component Analysis) and calculating the EigentObject.&lt;br /&gt;&lt;br /&gt;But when I run cvCalcEigenObject() method from the cvaux library, the application crashed with memory error. I tried to solve this problem for a few hours and finally find out that images that I used for calculation of Eigen object have different height and width (in pixels). It should be same size and width to run the cvCalcEigenObject() correctly. I tried to adjust the image size and the problem was gone without changing a single line of code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1226381793967249861-7964267283174102972?l=ztatechnicaldiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ztatechnicaldiary.blogspot.com/feeds/7964267283174102972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2010/12/calcuating-eigen-object-with-opencv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/7964267283174102972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/7964267283174102972'/><link rel='alternate' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2010/12/calcuating-eigen-object-with-opencv.html' title='Calcuating Eigen object with OpenCV'/><author><name>ZTA</name><uri>http://www.blogger.com/profile/01652053890299654975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1226381793967249861.post-3396752206834579014</id><published>2010-12-03T00:13:00.000-08:00</published><updated>2010-12-03T00:15:33.576-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='DLL'/><title type='text'>Reading Configuration file from DLL</title><content type='html'>If you want to read the configuration file from DLL, it should be under the same folder with "exe". So when you run the main application which called DLL, it can read the setting from the configuration file.&lt;br /&gt;&lt;br /&gt;http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c97b709d-d04c-4fd1-95e4-d8eb3a1ac477/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1226381793967249861-3396752206834579014?l=ztatechnicaldiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ztatechnicaldiary.blogspot.com/feeds/3396752206834579014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2010/12/reading-configuration-file-from-dll.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/3396752206834579014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/3396752206834579014'/><link rel='alternate' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2010/12/reading-configuration-file-from-dll.html' title='Reading Configuration file from DLL'/><author><name>ZTA</name><uri>http://www.blogger.com/profile/01652053890299654975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1226381793967249861.post-5984129222831160584</id><published>2010-11-28T21:31:00.001-08:00</published><updated>2010-11-28T21:33:45.690-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='command prompt'/><title type='text'>Mapping Network Drive to Local Folder</title><content type='html'>To Map a network drive letter to local folder, I found that I can use the following command at the command prompt.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;subst [Drive]: C:\FolderName&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For example, I can map "C:\Temp" folder to K: drive using the command.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;subst K: C:\Temp&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1226381793967249861-5984129222831160584?l=ztatechnicaldiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ztatechnicaldiary.blogspot.com/feeds/5984129222831160584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2010/11/mapping-network-drive-to-local-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/5984129222831160584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/5984129222831160584'/><link rel='alternate' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2010/11/mapping-network-drive-to-local-folder.html' title='Mapping Network Drive to Local Folder'/><author><name>ZTA</name><uri>http://www.blogger.com/profile/01652053890299654975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1226381793967249861.post-3706786025902490174</id><published>2010-06-18T10:25:00.000-07:00</published><updated>2010-06-18T10:34:42.884-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TCP'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>TCPClient.Connected property</title><content type='html'>I was writing TCP server application which is written in Microsoft Visual C# 2008. I need to accept TCPClient which sent connection request to my server. One of the features that I need to implement is to keep track of the client status whether it was connected to my server or it had already been disconnected from my server.&lt;br /&gt;&lt;br /&gt;I found the TCPClient.Connected property in .NET and so I used it to keep track of the client status. But it was totally unreliable. I still could receive TCPClient.Connected property as true even if the client had already been shutdown. I scratched my head to find out what was the cause of the problem. As usual, I searched Internet to find out if other people had encountered same problem before.&lt;br /&gt;&lt;br /&gt;To my surprise, TCPClient.Connected property was not actually reflecting the current status of the client. It would only show the status that last time when the server was trying to communicate to client. So it can consider unreliable.&lt;br /&gt;&lt;br /&gt;I hate to do it but I need to implement additional logic to keep track of my client. I need to keep record of the time when the client was trying to connected to my server and compare those value with timeout.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1226381793967249861-3706786025902490174?l=ztatechnicaldiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ztatechnicaldiary.blogspot.com/feeds/3706786025902490174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2010/06/tcpclientconnected-property.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/3706786025902490174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/3706786025902490174'/><link rel='alternate' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2010/06/tcpclientconnected-property.html' title='TCPClient.Connected property'/><author><name>ZTA</name><uri>http://www.blogger.com/profile/01652053890299654975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1226381793967249861.post-8948965963331360243</id><published>2010-06-18T10:13:00.000-07:00</published><updated>2010-06-18T10:24:37.745-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Application'/><category scheme='http://www.blogger.com/atom/ns#' term='Motion'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='ADLink'/><title type='text'>Raising Event from DLL</title><content type='html'>I am currently developing a new software for a new machine. I need to interface my .NET program to COM DLL to control the hardware. I was writing one DLL for common methods which I can reuse in future applications. I was also writing Windows Application for the methods specific to that machine.&lt;br /&gt;&lt;br /&gt;The COM DLL that I am calling from my DLL is written by "ADLink" technology which interfaced to Motion Control module and I/O modules. I was trying to drive servo motors from that DLL. I could successfully drive the servo but it took 10 seconds for my Windows application to receive motion complete event from Servo. I was trying to troubleshoot servo and motion control card but I have no clue what was actually happening.&lt;br /&gt;&lt;br /&gt;Finally, I found the problem when I carefully log every line of code in my program. It took 10 seconds to receive the event from DLL to my Windows Application. I tried to move the event raising to Windows application and the problem was solved.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1226381793967249861-8948965963331360243?l=ztatechnicaldiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ztatechnicaldiary.blogspot.com/feeds/8948965963331360243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2010/06/raising-event-from-dll.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/8948965963331360243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/8948965963331360243'/><link rel='alternate' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2010/06/raising-event-from-dll.html' title='Raising Event from DLL'/><author><name>ZTA</name><uri>http://www.blogger.com/profile/01652053890299654975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1226381793967249861.post-8924307308389343566</id><published>2009-07-10T00:21:00.000-07:00</published><updated>2009-07-10T00:29:07.673-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Unlocking HR and OE Schema in Oracle Database</title><content type='html'>We can use SQL * Plus to unlock OE and HR schema come along with Oracle Database later than version 9i as follow;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: courier new;"&gt;ALTER USER hr IDENTIFIED BY hr ACCOUNT UNLOCK;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: courier new;"&gt;  GRANT CONNECT, RESOURCE to hr;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: courier new;"&gt;ALTER USER oe IDENTIFIED BY OE ACCOUNT UNLOCK;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: courier new;"&gt;  GRANT CONNECT, RESOURCE to OE;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Default password for HR is "hr".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1226381793967249861-8924307308389343566?l=ztatechnicaldiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ztatechnicaldiary.blogspot.com/feeds/8924307308389343566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2009/07/unlocking-hr-and-oe-schema-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/8924307308389343566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/8924307308389343566'/><link rel='alternate' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2009/07/unlocking-hr-and-oe-schema-in-oracle.html' title='Unlocking HR and OE Schema in Oracle Database'/><author><name>ZTA</name><uri>http://www.blogger.com/profile/01652053890299654975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1226381793967249861.post-8739615880631830214</id><published>2009-05-19T23:48:00.000-07:00</published><updated>2009-05-19T23:52:37.031-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><title type='text'>How to Disconnect from Network folder</title><content type='html'>There is a network directory like "\\ABCD\\EFGH" in my office server that I used to access. I need to log-in to the directory for only first time. Now I want to disconnect it from the server because I want to test my program which need to access network directory with user name and password. So I find a way to disconnect from server. I found out as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Click Start and open Run &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;In that window type: control userpasswords2  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Press OK &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;in the next window go to the secon tab on top, named: Advanced &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;and from there open: Manage Passwords &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;There you should see if there is a password stored for the address that you have mentioned &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;If yes then delete it and close the windows with OK &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;try to connect again to that address, it should prompt for authentication. Do not check the Remember option... &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(Source: http://en.kioskea.net/forum/affich-35879-to-disable-auto-login-network-share-folders)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1226381793967249861-8739615880631830214?l=ztatechnicaldiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ztatechnicaldiary.blogspot.com/feeds/8739615880631830214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2009/05/how-to-disconnect-from-network-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/8739615880631830214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1226381793967249861/posts/default/8739615880631830214'/><link rel='alternate' type='text/html' href='http://ztatechnicaldiary.blogspot.com/2009/05/how-to-disconnect-from-network-folder.html' title='How to Disconnect from Network folder'/><author><name>ZTA</name><uri>http://www.blogger.com/profile/01652053890299654975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
