Tag Archives: 2016

For Sale – 2016 12″ MacBook 256/M3/8GB/333-cycle-count £500

Lightly used 12″ 2016 MacBook – 256/M3/8GB RAM.

The thinnest and lightest laptop Apple has ever made. I absolutely love this little computer and feel sad that I need to let it go – but I’ve also moved all travel work into an iPad and don’t need this anymore with my iMac around.

Colour: Space Grey
OS: Catalina 10.15.4

Battery Condition: Normal. Only 333 cycles.

Includes original Apple charger + USB-C cable
Includes original box

Condition:

External – A few minor hairline minor scratches on the top and one along the edge of the machine (see detailed high-res zoomed in photos). A small rather unnoticeable indentation at the bottom (I only just noticed it now).

Internal – pristine. Not a scratch, and everything works well, including the keyboardl. Please see video for it in action.

I would prefer contact-free collection (Sheffield or Yorkshire in general), but happy to post, with buyer paying postage through whatever service they prefer.

iPad trades can be considered, but prefer cash. Happy to offer full refund (minus delivery fees) within 7 days if delivered. The whole thing will be wiped with Dettol wipes before delivery. Apologies in advance for any late replies – NHS worker with manic shifts right now – will try to answer questions ASAP.

Go to Original Article
Author:

PowerShell ForEach-Object cmdlet picks up speed

Since its move to an open source project in 2016, PowerShell’s development picked up significantly.

The PowerShell 7.0 release arrived in March with a slew of improvements and new features. One of the most intriguing updates occurred with the PowerShell ForEach-Object cmdlet, which gained a powerful new ability to perform loops in parallel.

Most system administrators have needed to execute some command or operation on multiple systems. Before the addition of the Parallel parameter, each iteration in a loop would run sequentially, or one after another. While this may work fine for loops with limited items, loops that require each step to take substantially more time is a perfect candidate for the Parallel parameter.

The PowerShell ForEach-Object Parallel parameter attempts to run multiple iterations of the loop at the same time, potentially saving on the overall runtime. With this newfound capability, there are several important caveats to understand before implementing the Parallel in any production scripts.

Understanding PowerShell ForEach-Object -Parallel

PowerShell supports several different methods of parallelism. In the case of ForEach-Object, runspaces provides this functionality. Runspaces are separate threads in the same process. These threads have less overhead compared to PowerShell jobs or PowerShell remoting.

A few factors will add to the amount of overhead used with the ForEach-Object Parallel parameter. You will need to import additional modules and reference outside variables with the $Using: syntax. In some situations, the Parallel parameter is not ideal due to the extra overhead it generates when in use, but there is a way to shift that burden away from the source machine.

One automation concern with this additional feature is flooding your infrastructure or servers with multiple operations at once.

One automation concern with this additional feature is flooding your infrastructure or servers with multiple operations at once. To control this behavior, the ThrottleLimit parameter restricts the number of concurrent threads. When one thread completes, any additional iterations will take that thread’s place, up to the defined limit.

The default ThrottleLimit is five threads, which generally keeps memory and CPU usage low. Without this setting, you can quickly overwhelm your local system or server by running too many threads in parallel.

Finally, one other useful ability of the Parallel parameter is it allows any parallel loops to run as PowerShell jobs. This functionality lets the PowerShell ForEach-Object command return a job object, which you can retrieve at a later time.

Performance between Windows PowerShell 5.1 and PowerShell 7

There have been many performance improvements since Windows PowerShell 5.1 and especially so with the latest release of PowerShell 7. Specifically, how have things improved with the development of the ForEach-Object command?

The code below runs a simple test to show the speed difference in the PowerShell ForEach-Object command between different versions of PowerShell. The first example shows results from Windows PowerShell 5.1:

$Collection = 1..10000

(Measure-Command {
$Collection | ForEach-Object {
$_
}
}).TotalMilliseconds
# Result: 35112.3222

In that version, the script takes more than 35 seconds to finish. In PowerShell 7, the difference is dramatic and takes slightly more than 1 second to complete:

$Collection = 1..100000

(Measure-Command {
$Collection | ForEach-Object {
$_
}
}).TotalMilliseconds
# Result: 1042.3588

How else can we demonstrate the power of the Parallel parameter? One common feature in PowerShell scripts used in production is to introduce a delay to allow some other action to complete first. The following script uses the Start-Sleep command to add this pause.

$Collection = 1..10

(Measure-Command {
$Collection | ForEach-Object {
Start-Sleep -Seconds 1
$_
}
}).TotalMilliseconds
# Result: 10096.1418

As expected, running sequentially, the script block takes almost 10 seconds. The following code demonstrates the same loop using the Parallel parameter.

$Collection = 1..10

(Measure-Command {
$Collection | ForEach-Object -Parallel {
Start-Sleep -Seconds 1
$_
}
}).TotalMilliseconds
# Result: 2357.487

This change shaved almost 8 seconds off the total runtime. Even with only five threads running at once, each iteration kicks off when the previous one completes for a significant reduction in execution time.

Putting the Parallel parameter in action

How can these enhancements and abilities translate to real-world system administration actions? There are countless scenarios that would benefit from running operations in parallel, but two that are very common are retrieving information from multiple computers and running commands against multiple computers.

Collecting data from multiple computers

One common administrative task is to gather information on many different systems at once. How is this done with the new PowerShell ForEach-Object -Parallel command? The following example retrieves the count of files in user profiles remotely across systems.

$Computers = @(
"Computer1"
"Computer2"
"Computer3"
"Computer4"
"Computer5"
)

(Measure-Command {
$User = $Env:USERNAME

$Computers | ForEach-Object -Parallel {
Invoke-Command -ComputerName $_ -ScriptBlock {
Write-Host ("{0}: {1}" -F $_, (Get-ChildItem -Path "C:Users$($Using:User)" -Recurse).Count)
}
}
}).TotalMilliseconds

Computer1: 31716
Computer2: 30055
Computer4: 28542
Computer3: 33556
Computer5: 26052
13572.8172

On PowerShell 7, the script completes in just over 13 seconds. The same script running on Windows PowerShell 5.1 without the Parallel parameter executes in just over 50 seconds.

Running commands against multiple computers

Oftentimes, an administrator will need a command or series of commands to run against several target systems as fast as possible. The following code uses the Parallel parameter and PowerShell remoting to make quick work of this transfer process.

$Computers = @(
"Computer1"
"Computer2"
"Computer3"
"Computer4"
"Computer5"
)

$RemoteFile = "\Server1SharedFilesDeployment.zip"

(Measure-Command {
$Computers | ForEach-Object -Parallel {
Invoke-Command -ComputerName $_ -ScriptBlock {
Copy-Item -Path $Using:RemoteFile -Destination "C:"
}
}
}).TotalMilliseconds

23572.8172

Shifting overhead with Invoke-Command

One useful feature in PowerShell when working with remote systems is to lower overhead by shifting computer-intensive commands to the target system. In the previous example, Invoke-Command runs the commands via the local PowerShell session on the remote systems. This is a helpful way to spread the overhead load and avoid potential bottlenecks in performance.

Go to Original Article
Author:

Wanted – G-sync compatible monitor (ideally IPS)

https://www.asus.com/uk/Monitors/ROG-SWIFT-PG279Q/ Treat myself to an LG 55″ OLED for my gaming PC so now have my 1440p Monitor to go. Bought Feb 2016 from scan. Will need collection, no box now. Can test and see running on collection. Will post photos if any interest. Great condition.

Go to Original Article
Author:

For Sale – Macbook Pro 13 2015 8GB Ram 256GB Mint Condition Boxed

Macbook Pro 13″ 2015 is up for sale.

It was purchased in August 2016. Been used very occasionally. It is in amazing mint condition with no signs of use whatsoever. Screen replaced by Apple recently so it is brand new.

It only has a cycle count of 66 on it’s original battery.

The specs are as follows :

MacBook Pro Early 2015
13.3″ model with RETINA Display
i5 CPU with 2.7GHZ speed
8GB of RAM
256GB FLASH SSD

Will be reset and updated to latest Mojave build.
Would be perfect Christmas present for someone.

Will get it posted insured.

Go to Original Article
Author:

For Sale – Apple MacBook Pro 15″ Touch Bar 2.7GHz Core i7 16GB RAM 512GB SSD Radeon Pro 460 Space Grey

15-inch MacBook Pro – Space Grey

Bought for £2,789.00 Late 2016… so 3 yrs old.

With the following configuration:

• 2.7GHz quad-core Intel Core i7 processor, Turbo Boost up to 3.6GHz

• 16GB 2133MHz memory

• 512GB PCIe-based SSD

• Radeon Pro 460 with 4GB memory

• Backlit Keyboard (British) & User’s Guide (English)

• Four Thunderbolt 3 ports

• Touch Bar and Touch ID

• Force Touch trackpad

Excellent condition. Corners have slight imperfections if very close….tried to take photos. No dents.
IMG_0683.jpegIMG_0684.jpegIMG_0685.jpegIMG_0686.jpegIMG_0687.jpegIMG_0688.jpegIMG_0681.jpeg

Original box inc the delivery box!
Clean install with Catalina.

£1200 Collection ideally Cobham, Surrey, UK.

Go to Original Article
Author:

For Sale – Apple MacBook Pro 15″ Touch Bar 2.7GHz Core i7 16GB RAM 512GB SSD Radeon Pro 460 Space Grey

15-inch MacBook Pro – Space Grey

Bought for £2,789.00 Late 2016… so 3 yrs old.

With the following configuration:

• 2.7GHz quad-core Intel Core i7 processor, Turbo Boost up to 3.6GHz

• 16GB 2133MHz memory

• 512GB PCIe-based SSD

• Radeon Pro 460 with 4GB memory

• Backlit Keyboard (British) & User’s Guide (English)

• Four Thunderbolt 3 ports

• Touch Bar and Touch ID

• Force Touch trackpad

Excellent condition. Corners have slight imperfections if very close….tried to take photos. No dents.
IMG_0683.jpegIMG_0684.jpegIMG_0685.jpegIMG_0686.jpegIMG_0687.jpegIMG_0688.jpegIMG_0681.jpeg

Original box inc the delivery box!
Clean install with Catalina.

£1200 Collection ideally Cobham, Surrey, UK.

Go to Original Article
Author:

For Sale – Dell XPS8900

NOW JUST THE TOWER FOR SALE.

Selling my Dell desktop.

Purchased in May 2016 so just over 3 years old now, in great condition, hardly gets used hence the sale.

Computer specs are as below in one of the photos.

Only thing I’ve added was a faster SSD drive connected via PCI Express card to get the full speed. (Samsung 950 PRO M.2 256GB).

Key specs are

Intel core i7 6700K processor (6th gen).
Windows 10 home edition.
24gb DDR4 2133 MHz ram.
256gb Samsung 950 PRO boot drive as described above, plus a 2TB 7200RPM HDD.
NVIDIA GeForce GTX 960 2GB DDR5 graphics card.
BLURAY combo disc drive plus second dvd drive added also.
802.11ac WiFi
6x USB3 ports plus 4 USB2 ports.

Any questions please feel free to ask.

Buyer collects in Hove.

£390

Go to Original Article
Author:

Player Spotlight: Meet Spencer Allen | Xbox

You don’t really fail until you quit.

In 2016, “I was at Sauvie Island, a popular park here in Portland,” says Spencer. “I ran and dove into the water—the next thing I knew, I was floating upside-down in the water and I couldn’t move, couldn’t turn around. I was drowning.”

Through hard work, he has regained some function in his upper limbs. As soon as he was able, he went back to school to get his degree in Civil Engineering. “I wanted to jump back into school and get back to it — just something to get my brain working.“

Any inventor knows it takes a lot of trial and error to create something you’re happy with. This might discourage most people, but for Spencer, “you don’t really fail until you quit.”

The Xbox Adaptive Controller allows users to connect switches, buttons, joysticks, and mounts to create a custom controller that suits their needs and abilities. There’s a level of DIY involved, and Spencer was up for the challenge. “It’s been a cycle of learning and doing.”

Gaming for Everyone

Learn more about how we’re making gaming more fun for billions of people around the world
by being inclusive of all, accessible for all, and safe for all.

LEARN MORE

Go to Original Article
Author: Microsoft News Center

For Sale – Dell XPS8900

NOW JUST THE TOWER FOR SALE.

Selling my Dell desktop.

Purchased in May 2016 so just over 3 years old now, in great condition, hardly gets used hence the sale.

Computer specs are as below in one of the photos.

Only thing I’ve added was a faster SSD drive connected via PCI Express card to get the full speed. (Samsung 950 PRO M.2 256GB).

Key specs are

Intel core i7 6700K processor (6th gen).
Windows 10 home edition.
24gb DDR4 2133 MHz ram.
256gb Samsung 950 PRO boot drive as described above, plus a 2TB 7200RPM HDD.
NVIDIA GeForce GTX 960 2GB DDR5 graphics card.
BLURAY combo disc drive plus second dvd drive added also.
802.11ac WiFi
6x USB3 ports plus 4 USB2 ports.

Any questions please feel free to ask.

Buyer collects in Hove.

£390

Go to Original Article
Author:

For Sale – Dell XPS8900

NOW JUST THE TOWER FOR SALE.

Selling my Dell desktop.

Purchased in May 2016 so just over 3 years old now, in great condition, hardly gets used hence the sale.

Computer specs are as below in one of the photos.

Only thing I’ve added was a faster SSD drive connected via PCI Express card to get the full speed. (Samsung 950 PRO M.2 256GB).

Key specs are

Intel core i7 6700K processor (6th gen).
Windows 10 home edition.
24gb DDR4 2133 MHz ram.
256gb Samsung 950 PRO boot drive as described above, plus a 2TB 7200RPM HDD.
NVIDIA GeForce GTX 960 2GB DDR5 graphics card.
BLURAY combo disc drive plus second dvd drive added also.
802.11ac WiFi
6x USB3 ports plus 4 USB2 ports.

Any questions please feel free to ask.

Buyer collects in Hove.

£390

Go to Original Article
Author: