<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DUANQH04cSp7ImA9WhRbEEQ.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360</id><updated>2012-02-01T04:03:11.339-08:00</updated><category term="scripting" /><category term="sccm" /><category term="goggles" /><category term="processing" /><category term="android" /><category term="blogger" /><category term="ubiquiti" /><category term="powershell" /><category term="vbs" /><category term="windows" /><category term="syntaxhighlighter" /><category term="multi touch" /><category term="ccv" /><category term="nuigroup" /><category term="google" /><title>techpppp</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://techpppp.blogspot.com/" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Techpppp" /><feedburner:info uri="techpppp" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DEYBSXg9eCp7ImA9WhRRF0g.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-4951674628346231745</id><published>2011-12-01T05:43:00.001-08:00</published><updated>2011-12-01T08:15:58.660-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-01T08:15:58.660-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="powershell" /><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><category scheme="http://www.blogger.com/atom/ns#" term="scripting" /><title>PowerShell - count folders in folders</title><content type="html">Counting the number of files in a directory is easy&lt;br /&gt;
&lt;pre class="brush: powershell"&gt;(dir).Count
&lt;/pre&gt;
Here's a more complex example that I will break down, like a tutorial. Unlike the previous example&lt;link&gt;&lt;/link&gt;, this is taking advantage of the object oriented nature of PowerShell. You should understand &lt;a href="http://technet.microsoft.com/en-us/library/dd347624.aspx"&gt;about_pipelines&lt;/a&gt;&amp;nbsp;before you continue reading&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;The problem&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
An invoice scanning system uploads files to a file server. The directory structure is the following.&lt;br /&gt;
\\server\files\&amp;lt;country_code-invoices&amp;gt;\&amp;lt;date&amp;gt;\&amp;lt;invoice_id&amp;gt;&amp;lt;/invoice_id&amp;gt;&amp;lt;/date&amp;gt;&amp;lt;/country_code-invoices&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's an German invoice folder scanned on December 1st 2011&lt;br /&gt;
\\server\files\DE-invoices\2011-12-01\2ad52000-32d5-4d72-925a-98ac442d2381&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;The question is&lt;/u&gt; : "How many invoices have been created every day by country ?" . The output has to be a table to be analyzed with Excel.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;The proposed solution&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Get all the country folders&lt;br /&gt;
&lt;pre class="brush: powershell"&gt;dir \\server\files\*-invoices&lt;/pre&gt;
For each (&lt;a href="http://social.technet.microsoft.com/Forums/eu/winserverpowershell/thread/816d1763-6d9e-4c03-b2dd-2fe13507ca88"&gt;% is the operator&lt;/a&gt;) country folder ($_ is the pipeline object), display only its name&lt;br /&gt;
&lt;pre class="brush: powershell"&gt;dir \\server\files\*-invoices&amp;nbsp;| %{$_.Name}
#&lt;/pre&gt;
Display the date folders for each country&lt;br /&gt;
&lt;pre class="brush: powershell"&gt;dir \\server\files\*-invoices&amp;nbsp;| %{dir $_}
#&lt;/pre&gt;
We'll store the country name in $country, to use it later as we bring it up the pipeline.&lt;br /&gt;
&lt;pre class="brush: powershell"&gt;dir \\server\files\*-invoices&amp;nbsp;| %{$country=$_.Name}
#&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Now it's getting a bit tricky.We'll put a pipeline inside a pipeline!&lt;br /&gt;
Because we need to process each date folder in each country folder.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;For Each country folder display its name&lt;/li&gt;
&lt;li&gt;For Each date folder in a country folder display its name&lt;/li&gt;
&lt;li&gt;For Each date folder, count the number of folders it contains&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Display the country name and the date folder&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: powershell; toolbar: false;"&gt;dir \\server\files\*-invoices&amp;nbsp;| %{$country=$_.Name;dir $_ |%{Write-Host $country $_.Name}}
#&lt;/pre&gt;
outputs&lt;br /&gt;
DE-invoices 2011-12-01&lt;br /&gt;
DE-invoices 2011-11-30&lt;br /&gt;
etc..&lt;br /&gt;
&lt;br /&gt;
Display the folder count&lt;br /&gt;
&lt;pre class="brush: powershell; toolbar: false;"&gt;dir \\server\files\*-invoices&amp;nbsp;| %{$country=$_.Name;dir $_ |%{Write-Host $country $_.Name (dir $_).count}}
#&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
outputs&lt;br /&gt;
&lt;br /&gt;
DE-invoices 2011-12-01 5&lt;br /&gt;
DE-invoices 2011-11-30 18&lt;br /&gt;
etc..&lt;br /&gt;
&lt;br /&gt;
The result can now be imported as CSV file ,using the space character as the separator.&lt;br /&gt;
&lt;script type="text/javascript"&gt;
     SyntaxHighlighter.all()
&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-4951674628346231745?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FuwgbX8rijGEmtRh6ERlEpljXA8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FuwgbX8rijGEmtRh6ERlEpljXA8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FuwgbX8rijGEmtRh6ERlEpljXA8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FuwgbX8rijGEmtRh6ERlEpljXA8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/tkG3YzE-Rtg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/4951674628346231745/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2011/12/counting-number-of-files-in-directory.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/4951674628346231745?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/4951674628346231745?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/tkG3YzE-Rtg/counting-number-of-files-in-directory.html" title="PowerShell - count folders in folders" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2011/12/counting-number-of-files-in-directory.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YGQ3Y8fip7ImA9WhRSFEk.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-4520103284147309114</id><published>2011-11-16T01:52:00.001-08:00</published><updated>2011-11-16T02:58:42.876-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-16T02:58:42.876-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="powershell" /><title>Windows PowerShell : consolidate log files</title><content type="html">I'm using Windows PowerShell more and more every day, here's a simple example.&lt;br /&gt;
&lt;br /&gt;
The task is to consolidate several csv files.&lt;br /&gt;
With command prompt&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
copy/b SoftDistribution*.csv Consolidated_logs.csv&lt;/div&gt;
&lt;br /&gt;
With Powershell, use&amp;nbsp;&lt;a href="http://technet.microsoft.com/en-us/library/ee176843.aspx"&gt;Get-Content&lt;/a&gt;&amp;nbsp;and &lt;a href="http://technet.microsoft.com/en-us/library/ee156791.aspx"&gt;Add-Content&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
Get-Content SoftDistribution*.csv | Add-Content Consolidated_logs.csv&lt;/div&gt;
&lt;br /&gt;
Now we have used a "text-based" approach in both cases.&lt;br /&gt;
In case you have headers in the .csv file, and you just want to filter out some fields of the CSV file, it will get very complicated with the command prompt.&lt;br /&gt;
That's when you have to take a more "object-oriented" approach with PowerShell : check out this &lt;a href="http://blogs.technet.com/b/heyscriptingguy/archive/2011/10/31/use-powershell-to-append-csv-files-easily.aspx"&gt;article &lt;/a&gt;from Microsoft's Scripting Guy, which addresses this particular issue.&lt;br /&gt;
&lt;br /&gt;
Since you can use COM and .Net objects in PowerShell, the possibilities are endless! So instead of developing a VBScript for a task we'll run one time only (not a batch), I use PowerShell interactively.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-4520103284147309114?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3wJvxXoIQ0SLgI4OMRmEb0kiWmI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3wJvxXoIQ0SLgI4OMRmEb0kiWmI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3wJvxXoIQ0SLgI4OMRmEb0kiWmI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3wJvxXoIQ0SLgI4OMRmEb0kiWmI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/-UvhRNWq-5k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/4520103284147309114/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2011/11/windows-powershell-consolidate-log.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/4520103284147309114?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/4520103284147309114?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/-UvhRNWq-5k/windows-powershell-consolidate-log.html" title="Windows PowerShell : consolidate log files" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2011/11/windows-powershell-consolidate-log.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8HQX4zeCp7ImA9WhZaF0o.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-534147318725794078</id><published>2011-07-04T02:41:00.000-07:00</published><updated>2011-07-04T02:47:10.080-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-04T02:47:10.080-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title>Microsoft Windows - delete a local user profile whose account is missing from AD</title><content type="html">Here's a post on how I helped my helpdesk colleagues to solve a strange problem. &lt;br /&gt;
&lt;br /&gt;
John Doe's user account was deleted from Active Directory (he left the company over a year ago), but we could not delete his local profile on a Windows Server 2003:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;through the user profiles control panel, it is not present&lt;/li&gt;
&lt;li&gt;deleting the folder in "c:\documents and settings" said ntuser.dat is in use&lt;/li&gt;
&lt;li&gt;The "User Profile Deletion Utility" (delprof) from &lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=17657"&gt;Windows Server 2003 Resource Kit Tools&lt;/a&gt; doesn't find this profile either.&lt;/li&gt;
&lt;/ul&gt;I checked with "&lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb896653"&gt;Process Explorer&lt;/a&gt;" and saw his ntuser.dat was loaded.&lt;br /&gt;
&lt;br /&gt;
NTUSER.DAT is a file containing the user's &lt;a href="http://msdn.microsoft.com/en-us/library/ms724877%28v=vs.85%29.aspx"&gt;registry hive&lt;/a&gt;. it is loaded in the machine-wide registry under HKEY_USERS.&lt;br /&gt;
&lt;br /&gt;
So we need to unload this user's registry hive, in order to delete his profile in "c:\document and settings"&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-s3w-nSyrDs0/ThGLQPsy7wI/AAAAAAAADZ8/-hKYSVL1QGs/s1600/unload-hive.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-s3w-nSyrDs0/ThGLQPsy7wI/AAAAAAAADZ8/-hKYSVL1QGs/s320/unload-hive.png" width="224" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
You need to find out which SID (the S-1-5-21 ..etc) correspond to this user&lt;br /&gt;
So check the loaded hives in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\hivelist&lt;br /&gt;
&lt;br /&gt;
Then go back to HKEY_USERS , select the SID and go to file &amp;gt; unload hive.&lt;br /&gt;
You should now be able to delete his profile in "c:\documents and settings"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-534147318725794078?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sKl5mRzK3R2NUlwZL9T2ydJnbTs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sKl5mRzK3R2NUlwZL9T2ydJnbTs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sKl5mRzK3R2NUlwZL9T2ydJnbTs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sKl5mRzK3R2NUlwZL9T2ydJnbTs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/KPIWEcHbZHo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/534147318725794078/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2011/07/microsoft-windows-delete-local-user.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/534147318725794078?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/534147318725794078?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/KPIWEcHbZHo/microsoft-windows-delete-local-user.html" title="Microsoft Windows - delete a local user profile whose account is missing from AD" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-s3w-nSyrDs0/ThGLQPsy7wI/AAAAAAAADZ8/-hKYSVL1QGs/s72-c/unload-hive.png" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2011/07/microsoft-windows-delete-local-user.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUEQnw5cSp7ImA9WhdUF04.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-5095903525081810206</id><published>2011-05-26T07:21:00.000-07:00</published><updated>2011-10-04T06:00:03.229-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-04T06:00:03.229-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sccm" /><title>SCCM Metering query</title><content type="html">&lt;span style="font-size: x-small;"&gt;&lt;b&gt;UPDATE 04/10/2011&lt;/b&gt;: the main query ("query_metering_data") has been changed, so that it even displays computers with no metering data&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In a multinational company,you have to be ready for a software audit.&lt;br /&gt;
&lt;br /&gt;
The people in charge of license control go mad when they realise you have 500 computers with Microsoft Visio Professional, when you are licensed for only 450 copies !&lt;br /&gt;
Then you have to find 50 users which have it installed but don't need it. If you ask them , they will all say they use it every day :-)&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://technet.microsoft.com/en-us/library/bb694169.aspx"&gt;Software Metering in Configuration Manager&lt;/a&gt; is extensively covered on the web, so I will spare you the introduction.&lt;br /&gt;
&lt;br /&gt;
Using SCCM, I wanted to uninstall unused software on PCs&amp;nbsp; automatically, based on Software Metering data.&lt;br /&gt;
This can be done and is covered in forums, but my customer wanted to first check who was scheduled for removal. Imagine if you uninstalled Microsoft Project Standard from the laptop of the vice president of IT !&lt;br /&gt;
&lt;br /&gt;
I developped a VB.NET application which is centered around a DataGridView, the data source being the SCCM SQL database server. Here's an overview.&lt;br /&gt;
&lt;br /&gt;
First, list all the metering rules&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: vb"&gt;Dim query_rules As String = "select productname from v_MeterRuleInstallBase" &amp;amp; _
&amp;nbsp; " GROUP BY productname ORDER BY productname"

&lt;/pre&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-cX35xxGEOUY/Td5CiVTaEiI/AAAAAAAADYU/iYnUWetb3iA/s1600/meter-rules.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="192" src="http://4.bp.blogspot.com/-cX35xxGEOUY/Td5CiVTaEiI/AAAAAAAADYU/iYnUWetb3iA/s320/meter-rules.PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;Double clicking a metering rule displays the metering data for this metering rule, for the collection specified.&lt;br /&gt;
Now here's the core of this : the SQL query to make sense of the metering data.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: vb"&gt;Dim query_metering_data = "select sys.Name0 AS Name,sys.User_Name0,mru.MeteredFileID,mru.ResourceId,MAX(TimeKey) As TimeKey, MAX(LastUsage) AS 'LastUsage' , MAX(lastseen.LastHWScan) AS 'Last hardware scan',sf.FilePath" &amp;amp; _
            " from v_MeterRuleInstallBase mru" &amp;amp; _
            " LEFT JOIN v_MonthlyUsageSummary mus ON (mru.MeteredFileID = mus.FileID AND mru.ResourceID = mus.ResourceID)" &amp;amp; _
            " JOIN v_r_system sys ON mru.ResourceID = sys.ResourceID" &amp;amp; _
            " JOIN v_GS_WORKSTATION_STATUS lastseen ON mru.ResourceID = lastseen.ResourceID" &amp;amp; _
            " JOIN v_fullcollectionmembership m ON mru.ResourceID = m.ResourceID" &amp;amp; _
            " JOIN v_GS_Softwarefile sf ON m.ResourceID = sf.ResourceID AND mru.meteredFileID = sf.FileID" &amp;amp; _
            " WHERE mru.ProductName = '" &amp;amp; Metering_rule &amp;amp; "'" &amp;amp; _
            " AND m.CollectionID = '" &amp;amp; TextBox_CollectionID.Text &amp;amp; "'" &amp;amp; _
            " GROUP BY sys.Name0,sys.User_Name0,mru.MeteredFileID,mru.ResourceID,sf.FilePath" &amp;amp; _
            " ORDER BY sys.Name0"
&lt;/pre&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-c3yKCM1NKCo/Td5EwYDaleI/AAAAAAAADYY/4-wM9OgdZCc/s1600/meter_data.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="195" src="http://3.bp.blogspot.com/-c3yKCM1NKCo/Td5EwYDaleI/AAAAAAAADYY/4-wM9OgdZCc/s640/meter_data.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;I've added a right click menu to remove false positives (like the $PatchCache$ path ). The list can be sorted by any column desired.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Ensuring the last hardware scan is recent tells you the client looks OK&lt;/li&gt;
&lt;li&gt;The FilePath is helpful, we found people using portable applications run from USB stick were metered!&lt;/li&gt;
&lt;li&gt;Sort by "Last Usage" to find who has not used it the metered software for a long time. &lt;/li&gt;
&lt;li&gt;The desired cells can be copied to excel, or directly as Comma Separated Values with the "Copy to clipboard as CSV"&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
My customer uses a list of computers as a CSV file, to assign an uninstall program. This required another tool (which is not covered in this post).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-5095903525081810206?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/O2v5YbAGJoOKng7rbKt9YprrTec/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/O2v5YbAGJoOKng7rbKt9YprrTec/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/O2v5YbAGJoOKng7rbKt9YprrTec/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/O2v5YbAGJoOKng7rbKt9YprrTec/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/sWw1uuv2xt4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/5095903525081810206/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2011/05/sccm-metering-query.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/5095903525081810206?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/5095903525081810206?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/sWw1uuv2xt4/sccm-metering-query.html" title="SCCM Metering query" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-cX35xxGEOUY/Td5CiVTaEiI/AAAAAAAADYU/iYnUWetb3iA/s72-c/meter-rules.PNG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2011/05/sccm-metering-query.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE4AR3Y6cSp7ImA9Wx9XEUg.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-6956336930046776815</id><published>2011-01-04T08:02:00.000-08:00</published><updated>2011-01-04T08:02:26.819-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-04T08:02:26.819-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="vbs" /><category scheme="http://www.blogger.com/atom/ns#" term="sccm" /><category scheme="http://www.blogger.com/atom/ns#" term="scripting" /><title>SCCM Package replication status gadget for Windows 7 Sidebar</title><content type="html">Making sure your packages are replicating correctly in your SMS hierarchy is important.&lt;br /&gt;
Sometimes, you even want to know as soon as possible when a package has been replicated!&lt;br /&gt;
This has been useful when a new office is being build far away, and I want to inform the fields technicians on site when&amp;nbsp;they'll be allowed to&amp;nbsp;push out software.&lt;br /&gt;
&lt;br /&gt;
Therefore, I present the "PackageStatusDetailSummarizer" gadget for Windows 7 Sidebar!&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;a href="https://sites.google.com/site/techpppp/PackageStatusDetailSummarizer.Gadget.zip"&gt;&amp;gt;&amp;gt;DOWNLOAD&amp;lt;&amp;lt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It's like&amp;nbsp; the "Package Status" view in the "Configuration Manager Console", just neater in a gadget :-)&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_WJvcodEge1U/TSNDvFXOJ6I/AAAAAAAADUg/dqoBAeZqFYI/s1600/gadget_view.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" n4="true" src="http://4.bp.blogspot.com/_WJvcodEge1U/TSNDvFXOJ6I/AAAAAAAADUg/dqoBAeZqFYI/s320/gadget_view.PNG" width="209" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;
Inspiration from&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;"Software Updates" gadget of the &lt;a href="http://msdn.microsoft.com/en-us/library/cc302783.aspx"&gt;Configuration Manager SDK Samples&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The WMI class &lt;a href="http://msdn.microsoft.com/en-us/library/aa508728.aspx"&gt;SMS_PackageStatusDetailSummarizer&lt;/a&gt; from the SMS SDK&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa965850(v=vs.85).aspx"&gt;Windows Sidebar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ff486366(v=vs.85).aspx"&gt;Windows Sidebar Object Reference&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
To install in Windows 7:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;drop the folder "PackageStatusDetailSummarizer.Gadget" in %userprofile%\appdata\Local\Microsoft\Windows Sidebar&lt;/li&gt;
&lt;li&gt;right click on your desktop, choose "Gadgets", you should see it in the list &lt;/li&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_WJvcodEge1U/TSNERBnVHCI/AAAAAAAADUk/bVXzsZCE1Yo/s1600/gadget_list.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" n4="true" src="http://2.bp.blogspot.com/_WJvcodEge1U/TSNERBnVHCI/AAAAAAAADUk/bVXzsZCE1Yo/s320/gadget_list.PNG" width="246" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;li style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;right click, "install"&lt;/li&gt;
&lt;li style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;configure by setting the options, just like a normal gadget&lt;/li&gt;
&lt;li&gt;Be careful with the refresh interval in the options, if you set it to low you can hurt your site's performance.&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
If you want to customize it,just close the gadget and edit the files in the folder you have copied (see the "Windows Sidebar" link)&lt;br /&gt;
The possibilites are endless : check the deployment of packages,advertisements, software updates, site health etc..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-6956336930046776815?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/W7vgu3xZ09aJTS7Lsysy_SHAIJw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/W7vgu3xZ09aJTS7Lsysy_SHAIJw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/W7vgu3xZ09aJTS7Lsysy_SHAIJw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/W7vgu3xZ09aJTS7Lsysy_SHAIJw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/FwOec56PKOk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/6956336930046776815/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2011/01/sccm-package-replication-status-gadget.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/6956336930046776815?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/6956336930046776815?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/FwOec56PKOk/sccm-package-replication-status-gadget.html" title="SCCM Package replication status gadget for Windows 7 Sidebar" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_WJvcodEge1U/TSNDvFXOJ6I/AAAAAAAADUg/dqoBAeZqFYI/s72-c/gadget_view.PNG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2011/01/sccm-package-replication-status-gadget.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04ERHY4cSp7ImA9Wx5WGUg.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-8743965587230844105</id><published>2010-10-01T09:51:00.000-07:00</published><updated>2010-10-01T09:51:45.839-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-01T09:51:45.839-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ccv" /><category scheme="http://www.blogger.com/atom/ns#" term="multi touch" /><title>Testing Aixiz lasers</title><content type="html">I bought some infrared lasser from &lt;a href="http://www.aixiz.com/"&gt;Aixiz&lt;/a&gt; to build an interactive multitouch surface.&lt;br /&gt;
To avoid any damage to my eyes, I was wearing &lt;a href="http://www.dragonlasers.com/catalog/Laser-Glasses-Infrared-IR-protection-740-1100nm-p-16438.html"&gt;Infrared protection glasses&lt;/a&gt; from &lt;a href="http://www.dragonlasers.com/"&gt;Dragon Lasers&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Now, the thing that I hadn't planned was how to power the lasers :-)&lt;br /&gt;
As they are rated at 3.2VDC, drawing approximately 30ma of current, this seems something my &lt;a href="http://www.arduino.cc/en/Main/ArduinoBoardDuemilanove"&gt;Arduino Duemilanovae&lt;/a&gt; could do.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://arduino.cc/en/uploads/Main/ArduinoDuemilanove.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="230" src="http://arduino.cc/en/uploads/Main/ArduinoDuemilanove.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Connect the Arduino to the USB port of the computer&lt;/li&gt;
&lt;li&gt;Connect an infared camera to the computer ( here using a modified PS3eye with a 850nm filter - same wavelength as the lasers)&lt;/li&gt;
&lt;li&gt;Position the camera, and launch a viewer (here using the CL-Eye Test from&lt;a href="http://codelaboratories.com/downloads/"&gt; Code Laboratories&lt;/a&gt;&amp;nbsp;)&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;b&gt;Put the protection glasses on, close all doors &amp;amp; windows &amp;nbsp;to the room you're in (and you are alone right!)&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Hook up a laser to the Arduino: red cable on the "3v3" , black cable on "Gnd"&lt;/li&gt;
&lt;li&gt;You should now see the laser beaming (or not) through the viewer&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;br /&gt;
Repeat for all the lasers you ordered to make sure they are all working properly...and give a good feedback to Aixiz if you bought your lasers from &lt;a href="http://stores.ebay.es/AixiZ-Service-and-International-LLC"&gt;their eBay store&lt;/a&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_WJvcodEge1U/TKYQuEV6RPI/AAAAAAAADQo/nqQ49FGpKs0/s1600/arduino-laser-ps3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/_WJvcodEge1U/TKYQuEV6RPI/AAAAAAAADQo/nqQ49FGpKs0/s320/arduino-laser-ps3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
You can see a bit of the laser in this picture because a picture camera will see infrared (whereas your eyes cannot).&lt;br /&gt;
Now I have to find something to power 4 lasers at the same time (something I'm not sure the Arduino can do)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-8743965587230844105?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Jd83KkA_WbB3itWTnKkFUkprGYw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Jd83KkA_WbB3itWTnKkFUkprGYw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Jd83KkA_WbB3itWTnKkFUkprGYw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Jd83KkA_WbB3itWTnKkFUkprGYw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/oC_4tj6Uedw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/8743965587230844105/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2010/10/testing-aixiz-lasers.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/8743965587230844105?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/8743965587230844105?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/oC_4tj6Uedw/testing-aixiz-lasers.html" title="Testing Aixiz lasers" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_WJvcodEge1U/TKYQuEV6RPI/AAAAAAAADQo/nqQ49FGpKs0/s72-c/arduino-laser-ps3.jpg" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2010/10/testing-aixiz-lasers.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8MSX08fyp7ImA9Wx5XFUs.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-6904508058604741242</id><published>2010-09-15T09:24:00.000-07:00</published><updated>2010-09-15T09:24:48.377-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-15T09:24:48.377-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ubiquiti" /><category scheme="http://www.blogger.com/atom/ns#" term="goggles" /><category scheme="http://www.blogger.com/atom/ns#" term="google" /><category scheme="http://www.blogger.com/atom/ns#" term="android" /><title>Google Goggles: What's this thing with no name on it?</title><content type="html">Every time I came home, I wondered what was this thing nailed to the wall in the hall of my building.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.roquetaswireless.com/tienda/images/img.asp.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://www.roquetaswireless.com/tienda/images/img.asp.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;I couldn't anything written on it either. And I didn't want to take it off to read the back of it.&lt;br /&gt;
All I could make out of it was this logo on it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter "&lt;a href="http://www.google.com/mobile/goggles/#text"&gt;Google Goggles&lt;/a&gt;"&lt;br /&gt;
Install it on your Android phone, then snap a picture with Google Goggles.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.google.com/mobile/images/labs/goggles/goggles_scanLogo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="126" src="http://www.google.com/mobile/images/labs/goggles/goggles_scanLogo.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
That's how I found out that this was some kind of &lt;a href="http://www.roquetaswireless.com/tienda/Wireless-5-Ghz/AP-Bridge-CPE-Ubiquiti-NanoStation-2"&gt;Ubiquiti Wifi bridge&lt;/a&gt;. Just by taking a picture of the logo.&lt;br /&gt;
I opened a maintenance closet in the staircase, and found a Power-over-ethernet module to power this device, along with an ethernet cable running one floor up.&lt;br /&gt;
Someone running a big wifi network around here ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-6904508058604741242?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IkMdBxZFGxxRmcjoP_merAk8OTM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IkMdBxZFGxxRmcjoP_merAk8OTM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IkMdBxZFGxxRmcjoP_merAk8OTM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IkMdBxZFGxxRmcjoP_merAk8OTM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/Yy9JIXtDsUg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/6904508058604741242/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2010/09/google-goggles-whats-this-thing-with-no.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/6904508058604741242?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/6904508058604741242?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/Yy9JIXtDsUg/google-goggles-whats-this-thing-with-no.html" title="Google Goggles: What's this thing with no name on it?" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2010/09/google-goggles-whats-this-thing-with-no.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck4NRXs_fip7ImA9WhZVFE8.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-1228163073115738527</id><published>2010-09-14T09:32:00.000-07:00</published><updated>2011-05-26T07:43:14.546-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-26T07:43:14.546-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="vbs" /><category scheme="http://www.blogger.com/atom/ns#" term="sccm" /><category scheme="http://www.blogger.com/atom/ns#" term="scripting" /><title>SCCM : converting programs to Windows 7</title><content type="html">This is a VBS program I wrote for a customer, who has a SCCM 2007 R2 environment.&lt;br /&gt;
&lt;br /&gt;
They had over 400 programs in various packages, and they weren't sure if all of them would run under Windows 7.&lt;br /&gt;
&lt;div style="border: medium none;"&gt;&lt;br /&gt;
&lt;/div&gt;Visually, we had to make sure this box was ticked.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_WJvcodEge1U/TI-iFYnaqKI/AAAAAAAADQM/ohVvzVZbAmU/s1600/program-win7-sccm.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" qx="true" src="http://1.bp.blogspot.com/_WJvcodEge1U/TI-iFYnaqKI/AAAAAAAADQM/ohVvzVZbAmU/s320/program-win7-sccm.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="border: medium none;"&gt;After a little digging in the &lt;a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=064a995f-ef13-4200-81ad-e3af6218edcc&amp;amp;displaylang=en"&gt;SCCM SDK&lt;/a&gt; (link), and a &lt;a href="http://myitforum.com/cs2/blogs/sjames/archive/2009/09/18/modifying-program-flags-using-vbscript.aspx"&gt;script from Stuart James&lt;/a&gt;, the following will go through ALL programs in ALL packages. If a program is not set to "Run on all platforms", we add that it can run on "All x86 Windows 7"&lt;/div&gt;&lt;div style="border: medium none;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="border: medium none;"&gt;It outputs changes with comma separated values (csv) so you can send this to a file and dress it up nice in Excel for your boss :-)&lt;/div&gt;&lt;div style="border: medium none;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre class="brush: vb"&gt;'===================================== 
'SetRunFromTS - Sets all programs to be able to run in Windows 7 x86
'Author: Patrick Paumier / Stuart James 
' 
'Requirements: Change line 22 to connect to your site server
' 
'Usage: CScript xxx.vbs or double click 
'===================================== 


'Check we're using CScript and if not then relaunch 
If "CSCRIPT.EXE" &amp;lt;&amp;gt; UCase(Right(WScript.Fullname, 11)) Then 
Set WshShell = WScript.CreateObject("WScript.Shell") 
WshShell.Run "CSCRIPT.EXE /nologo " &amp;amp; WScript.ScriptFullName 
Wscript.Quit 
End If 

' Setup a connection to the local provider. 
Set swbemLocator = CreateObject("WbemScripting.SWbemLocator") 
Set swbemServices= swbemLocator.ConnectServer("MY-SCCM-SERVER", "root\sms") 
Set providerLoc = swbemServices.InstancesOf("SMS_ProviderLocation") 

For Each Location In providerLoc 
If location.ProviderForLocalSite = True Then 
Set swbemServices = swbemLocator.ConnectServer(Location.Machine, "root\sms\site_" + Location.SiteCode) 
Exit For 
End If 
Next 

'Main call 
QueryPrograms swbemServices 

Sub QueryPrograms(connection) 

On Error Resume next 

Dim programs 
'Dim program 
' Run the query. 
Set programs = connection.ExecQuery("Select * From SMS_Program WHERE PackageID='TDE0024F'") 

If Err.Number&amp;lt;&amp;gt;0 Then 
Wscript.Echo "Couldn't get programs" 
Wscript.Quit 
End If 
For Each program In programs 
ModifyProgram connection,program.PackageID, program.ProgramName 
Next 
If programs.Count=0 Then 
Wscript.Echo "No packages found" 
End If 

End Sub 

Sub ModifyProgram (connection, existingPackageID, existingProgramName) 

' Build a query to get the specified package. 
packageQuery = "SMS_Package.PackageID='" &amp;amp; existingPackageID &amp;amp; "'" 

' Run the query to get the package. 
Set package = connection.Get(packageQuery) 
' Output package name and ID. 
wscript.echo VBCrLf 'New Line
Wscript.StdOut.Write package.PackageID &amp;amp; "," 'Package ID
Wscript.StdOut.Write package.Name &amp;amp; "," 'Package Name
' Build a query to get the programs for the package. 
programQuery = "SELECT * FROM SMS_Program WHERE PackageID='" &amp;amp; existingPackageID &amp;amp; "'" 
' Run the query to get the programs. 
Set allProgramsForPackage = connection.ExecQuery(programQuery, , wbemFlagForwardOnly Or wbemFlagReturnImmediately) 
'The query returns a collection of program objects that needs to be enumerated. 
For Each program In allProgramsForPackage                
If program.ProgramName = existingProgramName Then 
'Get all program object properties (in this case we specifically need some lazy properties).
programPath = program.Put_
Set program = connection.Get(programPath) 

' Output the program name 
Wscript.StdOut.Write program.ProgramName &amp;amp; "," ' Program Name
Wscript.StdOut.Write program.ProgramFlags &amp;amp; "," 'Program Flags

If program.ProgramFlags AND 2^27 Then
Wscript.StdOut.Write "OK for all platforms"
Else
' RUN_ON_SPECIFIED_PLATFORMS is set.
Win7OK = FALSE
For Each myOS in program.SupportedOperatingSystems
osver = Left(myOS.MinVersion,3)
If osver="6.1" And myOS.Platform="I386" Then
Wscript.StdOut.Write "OK for Windows 7" ' Name: " &amp;amp; myOS.Name &amp;amp; " MinVersion: "&amp;amp; myOS.MinVersion &amp;amp; " MaxVersion: " &amp;amp; myOS.MaxVersion &amp;amp; " Platform: " &amp;amp; myOS.Platform
Win7OK = TRUE
Exit For
End If
Next
If Win7OK = FALSE Then
'Add Windows 7 32bit platform
' Create 
Set tempSupportedPlatform = connection.Get("SMS_OS_Details").SpawnInstance_
' Populate tempSupportedPlatform values.    
tempSupportedPlatform.MaxVersion = "6.10.9999.9999"
tempSupportedPlatform.MinVersion = "6.10.0000.0"
tempSupportedPlatform.Name       = "Win NT"
tempSupportedPlatform.Platform   = "I386"

' Get the array of supported operating systems.
tempSupportedPlatformsArray = program.SupportedOperatingSystems   

' Add the new supported platform values (object) to the temporary array.
ReDim Preserve tempSupportedPlatformsArray (Ubound(tempSupportedPlatformsArray) + 1)
Set tempSupportedPlatformsArray(Ubound(tempSupportedPlatformsArray)) = tempSupportedPlatform

' Replace the SupportedOperatingSystems object array with the new updated array.
program.SupportedOperatingSystems = tempSupportedPlatformsArray

' Save the program.
program.Put_

' Output success message.

Wscript.StdOut.Write "Added Win7"
End If
End If
End If        
Next 
End Sub 
&lt;/pre&gt;&lt;script type="text/javascript"&gt;
     SyntaxHighlighter.all()
&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-1228163073115738527?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/apiw15LpW9ZZnaC0KhbGhDGoXeQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/apiw15LpW9ZZnaC0KhbGhDGoXeQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/apiw15LpW9ZZnaC0KhbGhDGoXeQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/apiw15LpW9ZZnaC0KhbGhDGoXeQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/fgaKepT7gQE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/1228163073115738527/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2010/09/sccm-converting-programs-to-windows-7.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/1228163073115738527?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/1228163073115738527?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/fgaKepT7gQE/sccm-converting-programs-to-windows-7.html" title="SCCM : converting programs to Windows 7" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_WJvcodEge1U/TI-iFYnaqKI/AAAAAAAADQM/ohVvzVZbAmU/s72-c/program-win7-sccm.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2010/09/sccm-converting-programs-to-windows-7.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak8CQng5eip7ImA9Wx5XFUs.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-3561465824881336764</id><published>2010-09-11T13:15:00.000-07:00</published><updated>2010-09-15T09:41:03.622-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-15T09:41:03.622-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="blogger" /><category scheme="http://www.blogger.com/atom/ns#" term="syntaxhighlighter" /><title>SyntaxHighlighter with Blogger</title><content type="html">I've been away from Blogger for a while, and I'm happy it got some new templates.&lt;br /&gt;
I've implemented a syntax highlighter to better view code, it's called &lt;a href="http://alexgorbatchev.com/SyntaxHighlighter/"&gt;SyntaxHighlighter&lt;/a&gt;.&lt;br /&gt;
Here are the steps to use it on Blogger&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Download SyntaxHighlighter to your computer&lt;/li&gt;
&lt;li&gt;Create a "&lt;a href="https://sites.google.com/"&gt;Google Site&lt;/a&gt;" if you don't have one yet&lt;/li&gt;
&lt;li&gt;Create a "File Cabinet" page&lt;/li&gt;
&lt;li&gt;Upload the "shcore.js", the css files and the brushes (=code highlights for specific languages) as described in the SyntaxHighlighter &lt;a href="http://alexgorbatchev.com/SyntaxHighlighter/manual/installation.html"&gt;installation &lt;/a&gt;notes&lt;/li&gt;
&lt;li&gt;Edit your Blogger template, link the js files and css in  to the files you've uploaded (copy the link from "Download" on the file cabinet)&lt;/li&gt;
&lt;li&gt;&lt;script&gt;
ues) and css files (with &lt;link&gt; ), from the File Cabinet page you created (copy the "download" link without the arguments added by Google&lt;/li&gt;
&lt;li&gt;Choose you method for highlighting code, I use the &lt;pre&gt; method (for the moment) 
&lt;/li&gt;
&lt;/ol&gt;&lt;/script&gt;Use the 'pre' method as described in the installation notes  &lt;/li&gt;
&lt;li&gt;Don't forget the inclusion of &lt;code class="html plain"&gt;SyntaxHighlighter.all()&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-3561465824881336764?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2cLEom1iegxZS_gaKG_7-fcgRas/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2cLEom1iegxZS_gaKG_7-fcgRas/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2cLEom1iegxZS_gaKG_7-fcgRas/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2cLEom1iegxZS_gaKG_7-fcgRas/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/mUedEtnaQtM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/3561465824881336764/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2010/09/syntaxhighlighter-with-blogger.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/3561465824881336764?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/3561465824881336764?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/mUedEtnaQtM/syntaxhighlighter-with-blogger.html" title="SyntaxHighlighter with Blogger" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2010/09/syntaxhighlighter-with-blogger.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4ER3o7eCp7ImA9Wx5XFUs.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-2533793629323894165</id><published>2010-01-27T13:04:00.000-08:00</published><updated>2010-09-15T09:41:46.400-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-15T09:41:46.400-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="vbs" /><category scheme="http://www.blogger.com/atom/ns#" term="scripting" /><title /><content type="html">As part of a job interview, I was asked to program a VB script.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;The goal was to:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-style: italic;"&gt;"Disable LAN,WAN,Bluetooth devices as soon as any user (except shopAdmin) makes a login to the Computer (VB).&lt;br /&gt;
Hint this is only possible with the extra software piece called Devcon"&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;How do I start?&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;search on the internet to see if someone else did it. If I judge it's well done, why reinvent what has already been invented?&lt;/li&gt;
&lt;li&gt; search in my scripts if I've already done it or part of it. Most likely, I will reuse generic scripts I made.&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
In this case, the "hint" meant that since a command line program would be used, some string parsing would be involved. A few Google searches turned up some ideas but nothing as complete as what was requested.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: vb"&gt;'Assuming devcon is the WINDOWS folder
'Assuming the logged on user has the right to disable devices.

LANadapter = "Broadcom Loca Network Adapter"
BTadapter = "BT adapter"
WLANadapter = "Dell Wireless 1470 Dual Band WLAN Mini-PCI Card"

Set objShell = WScript.CreateObject("WScript.Shell")

Set objNet = CreateObject("WScript.NetWork")

If Not objNet.UserName = "shopAdmin" Then
Set objExecObject = objShell.Exec("cmd /c devcon listclass Net")

Do While Not objExecObject.StdOut.AtEndOfStream

strText = objExecObject.StdOut.ReadLine()

If Instr(strText,LANadapter)&amp;gt;0 Then
ID = Split(strText,"\",3)
Set objExecObject = objShell.Exec("cmd /c devcon.exe disable " &amp;amp; ID(0) &amp;amp; "\" &amp;amp; ID(1) )
WScript.Echo "LAN disabled"

ElseIf Instr(strText,BTadapter )&amp;gt;0 Then
ID = Split(strText,"\",3)
Set objExecObject = objShell.Exec("cmd /c devcon.exe disable " &amp;amp; ID(0) &amp;amp; "\" &amp;amp; ID(1) )
WScript.Echo "Bluetooth disabled"

ElseIf Instr(strText,WLANadapter)&amp;gt;0 Then
ID = Split(strText,"\",3)
Set objExecObject = objShell.Exec("cmd /c devcon.exe disable " &amp;amp; ID(0) &amp;amp; "\" &amp;amp; ID(1) )
WScript.Echo "WLAN disabled"
End If

Loop
End If
&lt;/pre&gt;&lt;script type="text/javascript"&gt;
     SyntaxHighlighter.all()
&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-2533793629323894165?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IahzaPirPGr-4kgka6619lF0shg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IahzaPirPGr-4kgka6619lF0shg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IahzaPirPGr-4kgka6619lF0shg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IahzaPirPGr-4kgka6619lF0shg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/4zWVIL3SDYI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/2533793629323894165/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2010/01/as-part-of-job-interview-i-was-asked-to.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/2533793629323894165?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/2533793629323894165?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/4zWVIL3SDYI/as-part-of-job-interview-i-was-asked-to.html" title="" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2010/01/as-part-of-job-interview-i-was-asked-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkAHSX08fCp7ImA9Wx5XFUs.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-172017731198317727</id><published>2009-10-26T16:24:00.000-07:00</published><updated>2010-09-15T09:38:58.374-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-15T09:38:58.374-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ccv" /><category scheme="http://www.blogger.com/atom/ns#" term="nuigroup" /><category scheme="http://www.blogger.com/atom/ns#" term="multi touch" /><title>Multi touch table - MT Crayon Physics</title><content type="html">I've been building a multi touch table as a side project for a year. Since I haven't had a job for a few months, I found the time to bring this to near completion !&lt;br /&gt;
&lt;br /&gt;
For the technical details&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;what you are seeing is &lt;a href="http://www.multitouch-barcelona.com/?p=90"&gt;MTCrayonphysics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;the physical setup is &lt;a href="http://wiki.nuigroup.com/Diffused_Illumination"&gt;"Rear Diffused Illumination"&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;blob tracking is &lt;a href="http://ccv.nuigroup.com/"&gt;Community Core Vision 1.2&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/WW3k8AeoAIE&amp;amp;hl=en&amp;amp;fs=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/WW3k8AeoAIE&amp;amp;hl=en&amp;amp;fs=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="344" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;
I'd like to thank the &lt;a href="http://www.nuigroup.com/"&gt;NUI Group&lt;/a&gt; community for all their valuable tips.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-172017731198317727?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GW-slujzuH3LoM_8sbRaKYtU_vM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GW-slujzuH3LoM_8sbRaKYtU_vM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GW-slujzuH3LoM_8sbRaKYtU_vM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GW-slujzuH3LoM_8sbRaKYtU_vM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/Lu8autMSyBg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/172017731198317727/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2009/10/multi-touch-table-mt-crayon-physics.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/172017731198317727?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/172017731198317727?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/Lu8autMSyBg/multi-touch-table-mt-crayon-physics.html" title="Multi touch table - MT Crayon Physics" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2009/10/multi-touch-table-mt-crayon-physics.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YFQHgyeSp7ImA9Wx5XFUs.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-1544114948103699963</id><published>2009-09-29T07:51:00.000-07:00</published><updated>2010-09-15T09:45:11.691-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-15T09:45:11.691-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="processing" /><title>A simple application with Processing</title><content type="html">I am a big fan of &lt;a href="http://processing.org/"&gt;Processing&lt;/a&gt; . I will show you a simple application I programmed with it.&lt;br /&gt;
&lt;a href="http://4.bp.blogspot.com/_WJvcodEge1U/Ssp6i6r4aNI/AAAAAAAAC_w/ZNZxgDcs3L8/s1600-h/blogger+post1.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5389254644389669074" src="http://4.bp.blogspot.com/_WJvcodEge1U/Ssp6i6r4aNI/AAAAAAAAC_w/ZNZxgDcs3L8/s320/blogger+post1.JPG" style="cursor: pointer; height: 243px; margin: 0pt 0pt 10px 10px; width: 480px;" /&gt;&lt;/a&gt;&lt;br /&gt;
As described by the website, it is:&lt;br /&gt;
&lt;span style="color: #33ff33;"&gt;Processing is an open source programming language and environment for          people who want to program images, animation, and interactions. It is used by          students, artists, designers, researchers, and hobbyists for          learning, prototyping, and production. It is created to teach fundamentals          of computer programming within a visual context and to serve as a software          sketchbook and professional production tool. Processing is an alternative to          proprietary software tools in the same domain.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If you don't know how to program, this is a great way to learn, as you can &lt;span style="font-weight: bold;"&gt;get quick, gratifying results&lt;/span&gt;. The latter is very important.&lt;br /&gt;
A lot of people give up making their own programs because of the considerable amount of time and things they have to learn before creating something.&lt;br /&gt;
&lt;br /&gt;
If you already know how to program, but you don't practice at work, it will feel great to walk in familiar shoes ! As it's based on Java, you can forget the nightmares you had with other languages like C (pointers..arrr my head hurts!).&lt;br /&gt;
I mastered Object Oriented Programming, thanks to Processing ! Also I understood a lot more about computer animation, graphics, how they are rendered...and then you can start doing your own.&lt;br /&gt;
You can move on to faster or more complete development environment once you feel confortable. Because, truth be told, the C language is much faster than Processing/Java.&lt;br /&gt;
&lt;br /&gt;
Enough ranting, here is my program, followed by step by step explanations.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: js"&gt;String path1,path2;
PImage p1,p2;

void setup(){
size(640,480);
String path1 = selectInput();
p1 = loadImage(path1,"jpg");
p1.resize(width,height);
image(p1,0,0);

String path2 = selectInput();
p2 = loadImage(path2,"jpg");
p2.resize(width,height);
}
void draw(){
if (mousePressed ==true &amp;amp;&amp;amp; (mouseButton == LEFT)){
copy(p2,mouseX,mouseY,20,20,mouseX,mouseY,20,20);
}
}&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
You should download Processing, unzip it,launch it, then paste the code into it.&lt;br /&gt;
Just hit the play button. You will be asked twice for a file. Choose two different pictures, JPG format. Click around the picture, drag...&lt;br /&gt;
You will then understand what this application is about!&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: red; font-size: 130%;"&gt;Step by step&lt;/span&gt;&lt;br /&gt;
First, you need the variables to play with: 2 pieces of text ("String") to hold the path to the images, and 2 images ("PImage") to hold the images themselves.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: js"&gt;
String path1,path2;
PImage p1,p2;&lt;/pre&gt;&lt;br /&gt;
In Processing, you get your stuff ready in the "void setup()" section, before everything starts happening in the "void draw()" section. Note that they are delimited by brackets.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;u&gt;size&lt;/u&gt; sets the size of the application to 640 pixels by 480 pixels.&lt;/li&gt;
&lt;li&gt;&lt;u&gt;selectInput&lt;/u&gt; calls the dialog to choose a file and stores its path in "path1"&lt;/li&gt;
&lt;li&gt;&lt;u&gt;loadImage&lt;/u&gt; loads the image into memory, into the "p1" PImage variable.&lt;/li&gt;
&lt;li&gt;&lt;u&gt;resize&lt;/u&gt; set the size of the "p1" Pimage to the "width" and "height" of the application - we stated these previously with size(). Otherwise, the image you've chosen with selectInput might be too big or too small.&lt;/li&gt;
&lt;li&gt;&lt;u&gt;image&lt;/u&gt; displays "p1" inside the application window.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
We do the same thing for the second picture..but we keep it into memory without displaying it. Yes, you have noticed we are not using image() on this one !&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: js"&gt;
void setup(){
size(640,480);
String path1 = selectInput();
p1 = loadImage(path1,"jpg");
p1.resize(width,height);
image(p1,0,0);

String path2 = selectInput();
p2 = loadImage(path2,"jpg");
p2.resize(width,height);
}&lt;/pre&gt;&lt;br /&gt;
Now the action starts. The code in "void draw()" is run 60 times per second! This rate is called 60 FPS - frames per second.&lt;br /&gt;
So what am I doing for EACH FRAME?&lt;br /&gt;
I'm checking &lt;u&gt;if&lt;/u&gt; it's &lt;u&gt;true&lt;/u&gt; that the mouse button is pressed, and if it's the &lt;u&gt;LEFT&lt;/u&gt; mouse button.&lt;br /&gt;
In this case, I'll call the "copy()" function. Let's detail this just after the code.&lt;br /&gt;
&lt;pre class="brush: js"&gt;
void draw(){
if (mousePressed ==true &amp;amp;&amp;amp; (mouseButton == LEFT)){
copy(p2,mouseX,mouseY,20,20,mouseX,mouseY,20,20);
}
}&lt;/pre&gt;&lt;br /&gt;
From the &lt;a href="http://processing.org/reference/copy_.html"&gt;reference&lt;/a&gt; :&lt;br /&gt;
&lt;span style="color: #33ff33;"&gt;"[..]copies a region of pixels from an image used as the srcImg parameter into the display window.[..]"&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
So, I am copying a part of the second image("p2"). Actually, I am copying from the same place you clicked - mouseX and mouseY represent the coordinates of the click.&lt;br /&gt;
And the size of the block being copied is 20 pixels by 20 pixels.&lt;br /&gt;
After copying the bit I wanted, I'm "pasting" it at the same coordinates, the same size.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: js"&gt;
copy(p2,mouseX,mouseY,20,20,mouseX,mouseY,20,20);&lt;/pre&gt;&lt;br /&gt;
Think this one thoroughly, keep the application open with the code and the reference.....concentrate !&lt;br /&gt;
This line might be the hardest to grasp for newbies, but if you understood this, your imagination can now run wild !&lt;br /&gt;
If you want to go further or have an easier start,&lt;br /&gt;
do have a look at the Processing website, the reference always comes with examples, or you can go through the tutorials.&lt;br /&gt;
More advanced libraries can help you achieve anything : music,3D, animation, movie editing, real time video editing, playing with network and the web, etc, etc....&lt;br /&gt;
&lt;br /&gt;
Or you can just peek at the Exhibition or the eye candy at &lt;a href="http://openprocessing.org/"&gt;OpenProcessing&lt;/a&gt;&lt;br /&gt;
&lt;script type="text/javascript"&gt;
     SyntaxHighlighter.all()
&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-1544114948103699963?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mFBPR3q2l-U4xIcGohjGCLPqbk8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mFBPR3q2l-U4xIcGohjGCLPqbk8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mFBPR3q2l-U4xIcGohjGCLPqbk8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mFBPR3q2l-U4xIcGohjGCLPqbk8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/9sJltus2HxY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/1544114948103699963/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2009/09/simple-game-with-processing.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/1544114948103699963?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/1544114948103699963?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/9sJltus2HxY/simple-game-with-processing.html" title="A simple application with Processing" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_WJvcodEge1U/Ssp6i6r4aNI/AAAAAAAAC_w/ZNZxgDcs3L8/s72-c/blogger+post1.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2009/09/simple-game-with-processing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIDSHw5eip7ImA9WxVbFE8.&quot;"><id>tag:blogger.com,1999:blog-7154303160504228360.post-7892575392922141339</id><published>2009-03-29T16:46:00.000-07:00</published><updated>2009-03-30T08:22:59.222-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-30T08:22:59.222-07:00</app:edited><title>Starting with Blogger</title><content type="html">I started this to make eventually a diary of these little experiments in coding and systems.&lt;br /&gt;These are mostly in Microsoft Windows environments, as this is what I use at work.&lt;br /&gt;&lt;br /&gt;First I had to customize the Blogger template&lt;br /&gt;&lt;a href="http://bguide.blogspot.com/2008/02/three-column-templates-explained.html"&gt;http://bguide.blogspot.com/2008/02/three-column-templates-explained.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I had to test my HTML changes in real time to test quickly&lt;br /&gt;&lt;a href="http://htmledit.squarefree.com/"&gt;http://htmledit.squarefree.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Color names for CSS were needed too&lt;br /&gt;&lt;a href="http://www.w3schools.com/css/css_colornames.asp"&gt;http://www.w3schools.com/css/css_colornames.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Escape HTML . I needed to post HTML code samples without Blogger interpreting them&lt;br /&gt;http://www.accessify.com/tools-and-wizards/developer-tools/quick-escape/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7154303160504228360-7892575392922141339?l=techpppp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CsF0Y4WIi4Av-4iFWmd40KRSSM0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CsF0Y4WIi4Av-4iFWmd40KRSSM0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CsF0Y4WIi4Av-4iFWmd40KRSSM0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CsF0Y4WIi4Av-4iFWmd40KRSSM0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Techpppp/~4/UzGypozOQAg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://techpppp.blogspot.com/feeds/7892575392922141339/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://techpppp.blogspot.com/2009/03/starting-with-blogger.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/7892575392922141339?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7154303160504228360/posts/default/7892575392922141339?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Techpppp/~3/UzGypozOQAg/starting-with-blogger.html" title="Starting with Blogger" /><author><name>Patrick Paumier</name><uri>https://profiles.google.com/105925716546247880697</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-xjtVSwXt6Zw/AAAAAAAAAAI/AAAAAAAADeU/cbZVM9LNIgI/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://techpppp.blogspot.com/2009/03/starting-with-blogger.html</feedburner:origLink></entry></feed>

