Skip to content

Microcontroller debouncing – Tasten Entprellen

Some links

Theoretische Grundlagen, warum Taster prellen und wie sich das bemerkbar macht:
http://www.ganssle.com/debouncing.htm

Verschiedene Ansätze für Entprell Routinen inklusive der Peter Dannegger
http://www.mikrocontroller.net/articles/Entprellung

http://hackaday.com/2010/10/13/open-call-send-us-your-debounce-code/

Sharepoint XSL / XSLT

Make SharePoint lists and Webparts Output look as you like. Use XSLT to build your own web representaion.

Links:

http://www.glynblogs.com/2011/04/overriding-the-presentation-of-an-xslt-list-view-web-part.html (Basic tutorial , use Notepad instead of SPD)

http://msdn.microsoft.com/en-us/library/dd583143(office.11).aspx ( The mostly undocumented ddwrt Namespace, it puts xslt on the rocks)

http://weblogs.asp.net/soever/ (blog of Serge, who originaly revealed the ddwrt secrets)

http://blog.sharepointrx.com/2010/12/03/conditional-formatting-and-date-comparisons-with-sharepoint-designer-2010/ (useing SPD, some examples)

http://amavs.wordpress.com/2010/12/16/date-comparison-formatdatetime-function-ddwrt-namespace/ (date time Infos)

http://www.glynblogs.com/2011/04/exporting-the-xslt-list-view-web-part-in-sharepoint-2010.html (Export to enable edit)

http://paylord.wordpress.com/2011/11/05/xslt-and-sharepoint-part-1/ (tutorial)
http://paylord.wordpress.com/2011/11/11/xslt-and-sharepoint-part-2/

Create webservice proxy in PowerShell to Sharepoint fails “lists.asmx was not recognized” and .. lists.asmx?disco not found

Suddenly after a maintenance weekend the powershell scripts failed that work with Sharepoint 2010 list services and nobody had changed any thing.
The error was:

New-WebServiceProxy : The document at the url http://spc.xxx.com/sites/ABC199/web1/_vti_bin/lists.asmx was not recognized as a known document type.

The error message from each known type may help you fix the problem: - Report from http://spc.xxx.com/sites/ABC199/web1/_vti_bin/lists.asmx is The document format is not recognized (the content type is 'text/html; charset=utf-8')

- Report from 'DISCO Document' is 'There was an error downloading ' http://spc.xxx.com/_vti_bin/lists.asmx?disco' .

- The request failed with HTTP status 404: Not Found.

- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'.

- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'

 At C:\script\SProutines.ps1:98 char:29 + $obj = New-WebServiceProxy <<<< -Uri $ServiceAtListURL -Namespace $namespace -UseDefaultCredential 

+ CategoryInfo : InvalidOperation: (http://spc.xxx. -..._bin/lists.asmx:Uri) [New-WebServiceProxy], InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.NewWebServiceProxy Cannot create Web Proxy from "http://spc.xxx.com/sites/ABC199/disco/_vti_bin/lists.asmx"

At C:\script\SProutines.ps1:100 char:9 + throw <<<< "Cannot create Web Proxy from ""$ServiceAtListURL""" + CategoryInfo : OperationStopped: (Cannot create W...bin/lists.asmx":String) [], RuntimeException + FullyQualifiedErrorId : Cannot create Web Proxy from "http://spc.xxx.com/sites/ABC199/web1/_vti_bin/lists.asmx"


The scripts use following functionality:

$siteCollectionURL = "http://spc.xxx.com/sites/ABC199"
$subsite = "web1"
$Listname = "aList" ...
# create webservice proxy
$PathSubSiteSVClist = ("{0}/{1}/{2}" -f $SiteCollectionURL, $Subsite, "_vti_bin/lists.asmx").replace('\','/').replace('//','/').replace(':/','://')
# $PathSubSiteSVClist becomes
# "http://spc.xxx.com/sites/ABC199/web1/_vti_bin/lists.asmx"
$wsp = GetWebService -namespace wsSP -type "lists" -ServiceAtListURL $PathSubSiteSVClist


The GetWebService function which was fully functional until “nothing happend on the maintanance weekend” is: …

# Try to create the object first as the namespace may be there already
try {$obj = New-Object -TypeName "$namespace.$type" }
catch {         # Create the proxy and try again.        
         # This should not require special permissions
          $error.removeat(0)
          $obj = New-WebServiceProxy -Uri $ServiceAtListURL -Namespace $namespace -UseDefaultCredential
          if($obj -eq $null) {
               throw "Cannot create Web Proxy from ""$ServiceAtListURL"""
           }
}
$obj.Url = $ServiceAtListURL
$obj.UseDefaultCredentials = $true

$obj


This is all standard stuff you find everywhere on the web. This suddenly stop working (ran from different machines , against different site collections – running for a different farm still worked). The workaround: Use a different Url to create the proxy. Extend the serive urls with “?wsdl” . But only when creating the service. All other usages of the url stay the same: the code in the try block is now:

$error.removeat(0) $obj = New-WebServiceProxy -Uri (“{0}?wsdl” -f $ServiceAtListURL) -Namespace $namespace -UseDefaultCredential

Thanks and credits go to Nick Grattan, who bloged about this error on SP2007

German umlauts – setting locales on Raspberry Pi

sudo dpkg-reconfigure
select de_DE@UTF-8 UTF8

-> reboot

But t de_DE is in the supported locals list.
pi@raspberrypi ~ $ locale -a
C
C.UTF-8
POSIX
de_DE.utf8
en_GB.utf8

cat /etc/default/locale gives
# File generated by update-locale
#LANG=en_GB.UTF-8

check the currentlocals setting
locale
shows everything is set to posix , which is 7 Bit Ascii
LANG=
LANGUAGE=
LC_CTYPE=”POSIX”
LC_NUMERIC=”POSIX”
LC_TIME=”POSIX”
LC_COLLATE=”POSIX”
LC_MONETARY=”POSIX”
LC_MESSAGES=”POSIX”
LC_PAPER=”POSIX”
LC_NAME=”POSIX”
LC_ADDRESS=”POSIX”
LC_TELEPHONE=”POSIX”
LC_MEASUREMENT=”POSIX”
LC_IDENTIFICATION=”POSIX”
LC_ALL=

useful samba commands for monitoring and more

Monitor samba access

watch smbstatus