GORE BIKE WEAR Damska kurtka Power Trail

177zł – Amazon
Promocja dotyczy rozmiaru 40 / L
Koszt zakupu 37,44 GBP z wysyłką do PL
Po przeliczeniu około 177PLN

69335-zYQMC.jpg
Damska kurtka Power Trail brazowo-czarna

Trendowa i funkcjonalna damska kurtka MTB! Kurtka wykonana z Windstopper-Softshell jest idealnym rozwiazaniem w okresie przejsciowym lub w chlodniejszych regionach. Wiele modnych detali i trendowe nadruki Camouflage sprawily, ze kurtka stala sie ulubiona czescia ubioru, nie tylko na rowerze.

  • z lekkiego, odpornego na wiatr i nieprzemakalnego materialu Windstopper Soft Shell
  • komfortowe wstawki ze streczu
  • dlugie sciagacze ze streczu na rekawach i w pasie
  • z przodu 2 kieszenie na zamek
  • z tylu 1 kieszen na zamek
  • wysoki, skladany i zapinany kolnierz zapewniajacy najlepsza ochrone przed zimnym wiatrem
  • z przodu dlugi, podszyty zamek
  • odblaskowe elementy

Material: 100% Poliester z membrana Windstopper

69335-Z0cRx.jpg
69335-P5CnO.jpg
69335-g9A6m.jpg

Mysz bezprzewodowa Tracer StoneX

9,99zł – RTV Euro AGD
Tania i solidna myszka za dyszkę, idealna dla dzieciaków – nie szkoda jak zepsują. Sam jestem zaskoczony jakością, spodziewałem się kompletnej tandety. Do tego to jest pełnowymiarowa myszka, większość tanich to raczej małe myszki, nie nadające się do użytku przez dorosłych.
Standardowa cena w sklepach int. 20 zł
Odbiór w sklepie (transport) za free.

Rabat naliczany po dodaniu do koszyka.

Efficiently Produce Comma-Separated Strings

Here is a super simple approach to create a list of quoted strings:

& { "'$($args -join "','")'" } hello this is a test

Here is the result:

 
'hello','this','is','a','test' 
 

This approach effectively makes use of PowerShell’s “Command Mode” where literals are treated as arguments. You could even pipe this to Set-Clipboard and then paste it back into your code. This is much easier than having to manually put quotes around each string.

 
PS> & { "'$($args -join "','")'" } hello this is a test  | Set-ClipBoard

PS> Get-ClipBoard
'hello','this','is','a','test'  
 

Are you an experienced professional PowerShell user? Then learning from default course work isn’t your thing. Consider learning the tricks of the trade from one another! Meet the most creative and sophisticated fellow PowerShellers, along with Microsoft PowerShell team members and PowerShell inventor Jeffrey Snover. Attend this years’ PowerShell Conference EU, taking place April 17-20 in Hanover, Germany, for the leading edge. 35 international top speakers, 80 sessions, and security workshops are waiting for you, including two exciting evening events. The conference is limited to 300 delegates. More details at www.psconf.eu

Twitter This Tip! ReTweet this Tip!

Using a Grid View Window as a Selection Dialog (Part 2)

In the previous tip we explained how you can use a hash table to show simple selection dialogs, yet when the user selects an item, return full rich objects.

A hash table can basically use anything as a key. In the previous example, we used a string. It could as well be another object. This really leads you to a highly flexible approach for selection dialogs.

Simply use Select-Object to select those properties that you’d like to show in a grid view window, and use this as key to your hash table.

# create a hash table where the key is the selected properties to display, 
# and the value is the original object
$hashTable = Get-WmiObject -Class Win32_NetworkAdapterConfiguration |
    # sort the objects by a property of your choice
    Sort-Object -Property Description |
    # use an ordered hash table to keep sort order
    # (requires PowerShell 3; for older PowerShell remove [Ordered])
    ForEach-Object { $ht = [Ordered]@{}}{
        # specify the properties that you would like to show in a grid view window
        $key = $_ | Select-Object -Property Description, IPAddress, MacAddress
        $ht.Add($key, $_)
    }{$ht}
    Group-Object -Property Description, Index -AsHashTable -AsString

# show the keys in the grid view window
$hashTable.Keys |
    Out-GridView -Title "Select Network Card" -OutputMode Single |
    ForEach-Object {
        # and retrieve the original (full) object by using
        # the selected item as key into your hash table
        $selectedObject = $hashTable[$_]
        $selectedObject | Select-Object -Property *
    }

When you run this code, the grid view window shows a list of network adapters and displays only the properties you selected (Description, IPAddress, and MacAddress).

When the user selects an item, the code returns the original (full) object so even though the grid view window displayed a limited object, the full object is still available.

Are you an experienced professional PowerShell user? Then learning from default course work isn’t your thing. Consider learning the tricks of the trade from one another! Meet the most creative and sophisticated fellow PowerShellers, along with Microsoft PowerShell team members and PowerShell inventor Jeffrey Snover. Attend this years’ PowerShell Conference EU, taking place April 17-20 in Hanover, Germany, for the leading edge. 35 international top speakers, 80 sessions, and security workshops are waiting for you, including two exciting evening events. The conference is limited to 300 delegates. More details at www.psconf.eu

Twitter This Tip! ReTweet this Tip!

Removing User Profiles Via Dialog (Part 2)

In the previous tip we illustrated how a grid view window can display all available user profiles, lets you select one, and deletes it:

#requires -RunAsAdministrator

Get-WmiObject -ClassName Win32_UserProfile -Filter "Special=False AND Loaded=False" |
    Add-Member -MemberType ScriptProperty -Name UserName -Value { (New-Object System.Security.Principal.SecurityIdentifier($this.Sid)).Translate([System.Security.Principal.NTAccount]).Value } -PassThru |
    Out-GridView -Title "Select User Profile" -OutputMode Single |
    ForEach-Object {
        # uncomment the line below to actually remove the selected user profile!
        #$_.Delete()
    }

While it works as expected, the grid view window shows a lot of information that is not needed. If you’d like to use it as a service desk tool, you’d really only want to show a fraction of that data.

So of course you could use Select-Object before you pipe results into a grid view window to control the information shown. However, this would change the object type, and it would no longer be possible to access object members such as Delete() to delete a user profile.

So this is a more general problem:

How can a grid view window show custom data, yet when the user selects an item, returns the original object?

One simple approach is a hash table that is created for you by Group-Object: group the original data by a property like “UserName”. Then, show the hash table keys in the grid view window. Once the user selected an item, use the selection as key to the original item in your hash table:

#requires -RunAsAdministrator

$hashTable = Get-WmiObject -ClassName Win32_UserProfile -Filter "Special=False AND Loaded=False" |
    Add-Member -MemberType ScriptProperty -Name UserName -Value { (New-Object System.Security.Principal.SecurityIdentifier($this.Sid)).Translate([System.Security.Principal.NTAccount]).Value } -PassThru |
    Group-Object -Property UserName -AsHashTable -AsString

$hashTable.Keys |
    Sort-Object |
    Out-GridView -Title "Select User Profile" -OutputMode Single |
    ForEach-Object {
        # uncomment the line below to actually remove the selected user profile!
        # $hashTable[$_].Delete()

Now the tool is a lot easier to use: the grid view window shows the user names only, and once you select one, the original object can be retrieved to do the actual deletion.

Are you an experienced professional PowerShell user? Then learning from default course work isn’t your thing. Consider learning the tricks of the trade from one another! Meet the most creative and sophisticated fellow PowerShellers, along with Microsoft PowerShell team members and PowerShell inventor Jeffrey Snover. Attend this years’ PowerShell Conference EU, taking place April 17-20 in Hanover, Germany, for the leading edge. 35 international top speakers, 80 sessions, and security workshops are waiting for you, including two exciting evening events. The conference is limited to 300 delegates. More details at www.psconf.eu.

Twitter This Tip! ReTweet this Tip!

Using a Grid View Window as a Selection Dialog (Part 1)

How can a grid view window be used as a simple selection dialog?

When you pipe objects to a grid view window, all object properties are shown. Often this works really well, and then just a line like this is needed:

Get-Service | Out-GridView -Title "Select Service" -OutputMode Single

Sometimes, especially when an object has tons of properties, it can be an overkill and confuse the user:

Get-WmiObject -Class Win32_NetworkAdapterConfiguration | 
    Out-GridView -Title "Select Network Card" -OutputMode Single

To simplify the dialog, you can use an approach we used earlier with user profile management, and use a hash table. Simply pick one property that you’d like to use as a key. This property needs to be unique. Next, try this:

Get-WmiObject -Class Win32_NetworkAdapterConfiguration | 
    Out-GridView -Title "Select Network Card" -OutputMode Single

$hashTable = Get-WmiObject -Class Win32_NetworkAdapterConfiguration |
    Group-Object -Property Description -AsHashTable -AsString

$hashTable.Keys |
    Sort-Object |
    Out-GridView -Title "Select Network Card" -OutputMode Single |
    ForEach-Object {
        $hashTable[$_]
    }

As you see, only the selected property is displayed in your grid view window, yet when the user selects an item, the full object is retrieved. This works very similar for the service list:

$hashTable = Get-Service |
    Group-Object -Property DisplayName -AsHashTable -AsString

$hashTable.Keys |
    Sort-Object |
    Out-GridView -Title "Select Service" -OutputMode Single |
    ForEach-Object {
        $hashTable[$_]
    }

Are you an experienced professional PowerShell user? Then learning from default course work isn’t your thing. Consider learning the tricks of the trade from one another! Meet the most creative and sophisticated fellow PowerShellers, along with Microsoft PowerShell team members and PowerShell inventor Jeffrey Snover. Attend this years’ PowerShell Conference EU, taking place April 17-20 in Hanover, Germany, for the leading edge. 35 international top speakers, 80 sessions, and security workshops are waiting for you, including two exciting evening events. The conference is limited to 300 delegates. More details at www.psconf.eu.

Twitter This Tip! ReTweet this Tip!