Setting up Windows 10 for IoT on your Raspberry Pi 2 – Scott Hanselman


Setting up Windows 10 for IoT on your Raspberry Pi 2

Windows 10 IoT on small embedded devices

Windows 10 Raspberry Pi robotThis week at the BUILD conference in San Francisco Microsoft released the first preview of Windows 10 IoT (Internet of Things) for Raspberry Pi 2 (as well as other lovely devices like the Intel Galileo and MinnowBoard Max).

First, as I mentioned in February the Raspberry Pi 2 runs the Windows 10 IoT version. That means there is no “shell” or Windows Explorer. It’s not a tiny desktop PC, but rather the core brain of whatever embedded maker thing you choose to build with it. The core of it is Windows. You’ve got PowerShell, you can run Windows Universal Apps that you write in C#, and you can talk to peripherals.

Over here at http://microsoft.hackster.io there is a great list of projects you can build with Windows IoT, including a cool robot you can control with an Xbox Controller.

Installing Windows 10 on your Raspberry Pi 2

This is an early build so things will change and get easier I’m sure. To be frank, getting the builds for Raspberry Pi took some confusing on my part to download.

  • Go to the Windows Embedded Connect site and sign in.
  • Pick the Build you want. I got Windows 10 IoT Core Insider Preview Image for Raspberry Pi 2.
  • You’ll need to install this older “File Transfer Manager” if you don’t have it. If you have Chrome, you’ll need to click the “.dlm” file and open it with the File Transfer Manager. You’ll also need to accept two EULAs.
  • Then you’ll get a large ZIP file with the image you want inside. Unzip somewhere.
  • Here’s a kicker, you’ll need a Windows 10 Preview machine to run these commands and install.
    • I built one with a laptop I had around. I’m not sure why Windows 10 is needed. However, once it’s setup you can use Windows 8.1 to talk to the Pi 2 or Remote PowerShell in.
  • You should also get Microsoft Visual Studio 2015 RC.
    • After you install 2015, go try to make a Universal App and it will download the Universal Apps SDK.
  • Follow the instructions here.  Below is my summary along with the gotchas that slowed me down.

Now, plug your micro SD card into your Windows 10 PC (I use a micro to USB adapter) and open an Administrator PowerShell and run:

  • wmic diskdrive list brief and make note of the physical disk number of your SD Card.

next run this and change PhysicalDriveN to whatever your SD Card’s physical number is.

dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\.PhysicalDriveN /SkipPlatformCheck

  • NOTE: I had some issues and got “Error 50” on one of my micro SD cards. Changing cards worked. Not sure what’s up.

Now, just put your micro SD card into your Pi 2 and boot up your Pi 2 while connected to a display and Ethernet. It will initially startup very slow. It could be 2 to 4 minutes before you get to the main screen. Just hang in there until you see this screen. This is the Default app and just shows the IP Address of your Raspberry Pi 2.

Installing Windows 10 on a Raspberry Pi 2 

Now, from your local admin PowerShell run these commands to remote into your Pi 2. The default name is MINWINPC but you can also use the IP Address.

net start WinRM
Set-Item WSMan:localhostClientTrustedHosts -Value MINWINPC
remove-module psreadline -force
Enter-PsSession -ComputerName MINWINPC -Credential MINWINPCAdministrator

When the credentials dialog opens, make sure you use yourrpi2machinenameAdministrator or yourrpi2ipaddressAdministrator for the user name. I was just using Administrator. The default password is p@ssw0rd and you should change it.

See here how the PowerShell prompt changes to include the remote machine’s name after I’ve remoted in?

remoting into Windows 10 on a Raspberry Pi 2

On your Windows machine install the MSI that was included in the download. It will start a small watcher utility that will scan your network and look for Microsoft IoT devices. It’s easy to lose them if their IP address changes. It also has a nice right click menu for getting to its embedded web server.

Windows IoT Core Watcher

Included and running on the image is a web server that will let you explore attached devices and running processes.

Raspberry Pi 2 Windows 10 Web Management

You can also deploy applications from here although you’ll usually do it from Visual Studio.

Raspberry Pi 2 Windows 10 Web Management

As of the time of this blog post they didn’t have WiFi and Bluetooth ready yet but they are updating it often so I am sure we’ll see updates soon. Here is a list of devices that work today via USB.

There’s lots of samples. You can make Background (headless) IoT apps or do ones with a UI since the Raspberry Pi has HDMI built in.

Finally, here’s turning on an LED from C# (with comments and defensive code).

using Windows.Devices.Gpio;

private void InitGPIO()

{

    var gpio = GpioController.GetDefault();

    

    if (gpio == null)

    {

        pin = null;

        GpioStatus.Text = "There is no GPIO controller on this device.";

        return;

    }

    pin = gpio.OpenPin(LED_PIN);

    

    if (pin == null)

    {

        GpioStatus.Text = "There were problems initializing the GPIO pin.";

        return;

    }

    pin.Write(GpioPinValue.High);

    pin.SetDriveMode(GpioPinDriveMode.Output);

    GpioStatus.Text = "GPIO pin initialized correctly.";

}

Deploying from Visual Studio

Make sure the remote debugger is running with schtasks /run /tn StartMsVsmon and connect with no authentication while it’s running.

image

Now you can deploy a Universal App (with UI!) directly from Visual Studio:

image

And here is my amazing app. Which is basically just a bunch of controls I threw onto the XAML. But still. Fancy!

My XAML app running on my Raspberry Pi 2 with Windows 10

Windows Remote Arduino and Virtual Arduino Shields

A few other cool maker things worth pointing out are Windows Remote Arduino and Virtual Arduino Shields. Remote Arduino lets you talk to your Arduino from your Windows  machine using the Firmata protocol. Then you can reach out to an Arduino device and give it commands from a Windows Universal app. The Virtual Arduino Shields lets you use a Windows Phone as a well, just that, virtual shields. Shields for Arduino can add up and when you’re prototyping you may not want to shell out for a Gyro or GPS. A cheap phone like a Lumia 530 has like $200 worth of sensors (gps, touch display, gyro, internet, speech, etc) in it that you can exploit.

It’s early days but I’m pretty stoked about all the options that Makers have available. The ASP.NET team is in talks with the IoT folks to see if we can get ASP.NET 5 running on Windows IoT on a Raspberry Pi as well, so stay tuned. Get started here.

Related Links


Sponsor: Big thanks to the folks over at Grape City for sponsoring the feed this week. GrapeCity provides amazing development tools to enhance and extend application functionality. Whether it is .NET, HTML5/JavaScript, Reporting or Spreadsheets, they’ve got you covered. Download your free trial of ComponentOne Studio, ActiveReports, Spread and Wijmo.

About Scott

11 System Preferences tricks every Mac owner should know


11 System Preferences tricks every Mac owner should know

System Preferences for OS X Yosemite app icon full size

System Preferences, a built-in OS X application analogous to Settings on the iPhone, iPod touch and iPad, lets you customize the Mac to your liking.

You can, for example, adjust the size and location of the Dock, change your desktop background, set your computer’s clock to a different time zone, add or remove user accounts, dive deep into network settings and much more.

Whenever you feel like making changes to your Mac’s settings, System Preferences is the one app you’re most likely going to use. Despite it being one of the most-frequently used applications on the Mac, some folks are unaware of its less-visible features designed to make finding the right setting a breeze.

In this tutorial, you will learn about the most important System Preferences shortcuts and how you can leverage them to make the most from the app.

Before we get started, keep in mind that some settings on your Mac cannot be found within System Preferences and instead must be adjusted in their original app. For instance, various settings pertaining to apps like Mail or Safari are tucked away under Preferences in their menus.

Also, System Preferences may differ slightly from one Mac model to another, depending on the hardware and any apps you have installed.

Get to any setting fast, right from the Dock

To launch System Preferences, click its icon in the Dock or choose System Preferences in the Apple menu. However, you can select any preference pane via the app’s shortcut menu in the Dock. So do yourself a favor and click and hold the System Preferences icon in the Dock.

OS X El Capitan System Preferences Dock shortcut Mac sceenshot 001

Highlight an item in the pop-up menu and let go of the button and you’ll be taken right to that particular preference pane without having to click your way through System Preferences.

Jump to certain settings with keyboard shortcuts

Some preference panes can be quickly accessed by simultaneously pressing the Option (⌥) key and one of the function keys on the keyboard:

  • Option (⌥) – F1 or F2—open the Displays pane
  • Option (⌥) – F3 or F4—open the Mission Control pane
  • Option (⌥) – F5 or F6—open the Keyboard pane
  • Option (⌥) – F10, F11 or F12—open the Sound pane

Not all keyboard shortcuts mentioned above will necessarily work on every Mac model.

Navigate System Preferences with your keyboard

You need not lift your fingers off the keyboard to find your way in System Preferences.

For instance, to get back to where you were or advance forward, press the respective Command (⌘) – [ and Command (⌘)- ] keystroke. To quickly position the cursor in the search field, press the Command (⌘) – F combination.

To hide the System Preferences window, or all other windows, hit Command (⌘) – H or Option (⌥) – Command (⌘) – H, respectively. And last but not least, you can quit the app using OS X’s standard system-wide Command (⌘) – Q keyboard combo.

Note that the System Preferences window cannot be taken full screen nor can these keyboard shortcuts be customized in the Keyboard → Shortcuts preference pane.

The Show All button has a secret

If you launch System Preferences manually and then click on an icon to change the related system settings, and then want to open another pane, you would typically click the Show All button. It’s like the Home button on your iPhone, only for System Preferences: click it and you get back to the main view from wherever you happen to be.

OS X El Capitan System Preferences search Mac sceenshot 009

But check this out: click and hold the button and up pops a menu that lists all the preference panes. Just highlight an item and release the button.

OS X El Capitan System Preferences search Mac sceenshot 008

If you’re changing multiple Mac settings which are scattered all over the place, using the Show All button’s shortcut menu will save you more than a few clicks.

Tip: You can quickly access any preference pane in System Preference’s View menu, which will also reveal itself upon pressing the Command (⌘) – L keystroke.

OS X El Capitan System Preferences panes in View menu Mac screenshot 001

Use built-in (Windows-friendly) search

Can’t recall the exact setting name? No problem, System Preferences provides a built-in search field that you can use to quickly locate any available setting.

OS X El Capitan System Preferences search Mac sceenshot 003

As you type, possible matches for what you’re looking for appear below the search field, and one or more preference icons are spotlighted in the System Preferences window. You can also type a phrase that describes what you want to do, as opposed to needing to provide a very specific setting name.

Though you can click any highlighted icon, but why waste time when you can select an item in the list that matches what you want to do using the arrow keys, and press Enter to be taken there?

Tip: To cater to Windows users, System Preferences recognizes queries specific to PC’s Control Panel, such as “wallpaper” which highlights the Desktop & Screen Saver pane. Typing “windows” will suggest appropriate panes for adjusting related Mac features like Windows networking and file sharing, restoring Finder windows and more.

OS X El Capitan System Preferences search Mac sceenshot 004

Get to any setting through Spotlight Search

That’s right, you can also locate any preference pane using the Mac’s system-wide Spotlight Search. Click the Spotlight icon in the menu bar and type a query like you would in the built-in System Preferences search.

Select a desired result with the arrow keys and hit Enter.

Tip: To prevent Spotlight from surfacing these System Preferences panes, untick the System Preferences box in System Preferences → Spotlight → Search Results.

OS X El Capitan System Preferences search Mac sceenshot 006

Hide some settings from your view

System Preferences presents its panes as a grid of logically group preference icons. Third-party applications may also add their own items to System Preferences. If your view has become a tad too cluttered for your tastes and you wish you were able to easily hide the items you rarely access —well, you can.

Simply launch the app and click Customize in its View menu.

OS X El Capitan System Preferences customize Mac screenshot 005

A checkmark appears next to each icon in the System Preferences window. Untick the items you would like to hide and click Done. To show hidden items, select Customize in the View menu, tick their boxes and select Done.

OS X El Capitan System Preferences customize Mac screenshot 003

Items you have removed are hidden from your view, but not deactivated completely.

Both System Preferences and Spotlight will still surface hidden preference panes when running a search, and your hidden items will continue to be available through the shortcut menu in the Dock and in the System Preferences → View menu.

In the example screenshot below, I am able to use built-in search to change my desktop background even though I hid the top row of preference icons such as General, Desktop & Screen Saver, Dock and so forth.

OS X El Capitan System Preferences search Mac sceenshot 005

Adjust icon grouping

By default, System Preferences icons are organized into logical groups and listed by category. You can switch between group organization and alphabetical grouping by selecting Organize by Categories or Organize Alphabetically in the View menu.

OS X El Capitan System Preferences icon grouping in View menu Mac screenshot 001

For your convenience, here’s the layout of the System Preferences icons after selecting the Organize Alphabetically option.

OS X El Capitan System Preferences customize Mac screenshot 006

Remove misbehaving preference panes

Third-party apps are permitted to add their own panes to System Preferences. The problem is, in some cases a pane won’t disappear after uninstalling its container app.

I hate seeing icons for non-functional panes sitting in the System Preferences window. Thankfully, you can remove any misbehaving preference pane from your system. Open System Preferences, right-click an item and select the Remove option from the pop-up menu. You might be asked to type in an administrator password to continue.

OS X El Capitan remove System Preferences pane Mac screenshot 001

Resort to removing a misbehaving preference pane yourself only if running its container app’s uninstaller, removing the app via OS X’s Launchpad or trashing the app from the Applications folder won’t yield desired results.

You cannot manually remove Apple’s stock panes from System Preferences.

Tip: You could also manually delete any third-party preference pane if you don’t mind venturing into the “/Users/username/Library/PreferencePanes” and “Macintosh HD/Library/PreferencePanes“ folders.

Change dimmed settings

Certain system-level settings in some preference panes may be dimmed. This is by design, to prevent users who lack an administrative account privilege from changing crucial settings on your Mac.

OS X El Capitan System Preferences Lock icon 001

If options in a preference pane that you wish to change are dimmed, click the lock icon in the bottom of the window and type your administrator password.

OS X El Capitan System Preferences Lock icon 002

If you navigate away from the unlocked pane or close the System Preferences window, your Mac will automatically lock any unlocked items, and this is for your own security.

Help is but a click away

If you get stuck or want to learn about all the ways System Preferences can help you customize your Mac to your liking, browse Apple’s built-in help. To bring up System Preferences resources in Apple Help, select Finder → Help and type “Customize your Mac in System Preferences” into the search field.

OS X El Capitan Help System Preferences Mac screenshot 001

And your favorite System Preferences trick?

How often do you play with System Preferences on your Mac and what do you use it most for? If you know about other trick not mentioned here, we’d be eager if you shared them in the comment section below.

Like this article? We’d appreciate if you could pass it along to your friends and Mac support folk and give us a shoutout on Twitter.

Related tutorials

The following how-tos dealing with system settings might be of interest to you:

You can browse all System Preferences related posts and access other Mac tutorials you might like in the iDownloadBlog archive.

Not sure how to do certain things on your Apple device? Let us know at help@iDownloadBlog.com and who knows, one of our upcoming tutorials may provide a solution to your problem.

And keep those how-to submissions coming at tips@iDownloadBlog.com.

Looking for a great email app? Try Airmail, a powerful mail client for iPhone. Download it in the App Store.

How to Convert Live Photos to Animated GIFs on iPhone with a Free App


How to Convert Live Photos to Animated GIFs on iPhone with a Free App

Animated GIF of a fireplace from Live Photo

Live Photos are a great new feature for the iPhone camera, and while you can easily share them with other iPhone and iPad users or to a Mac, they come across as little movies unless the user has Live Photo compatible iPhone. Mysteriously missing is the ability to convert and save Live Photos as an animated gif directly from the iPhone Photos app, but with the help of a third party application, you can convert any Live Photo into an animated gif with minimal effort.


Before getting started, take any Live Photo with the iPhone camera that you want to convert if you haven’t done so already (you’ll need to enable the Live Photo feature if you turned it off).

Convert a Live Photo to Animated GIF on iPhone with GIF Toaster

  1. Download the GIF Toaster app for free from the App Store for iOS
  2. Launch GIF Toaster and tap on “Photo > Gif” then tap on “Live Photo” in the corner to show only Live Photos
  3. Select the Live Photo you wish to convert to gif then tap “Encode”
  4. Live Photos conversion to animated GIF

  5. Adjust the GIF settings as desired, including frame rate (FPS), range, playback speed, and the resolution size of the gif (note that higher resolution gifs require the app to be paid for, but more on that in a moment*)
  6. Choose “Start Encoding” and when finished, choose “Export to Camera Roll” or “Open In…” to message or email the animated gif
  7. convert-live-photo-to-animated-gif-free-iphone-app

Very easy, here’s a Live Photo converted into an animated GIF of a fireplace that was created with the app.

Animated GIF of a fireplace from Live Photo

* GIF Toaster works well but has some limitations and some quirks in the user interface, so while it’s great for limited usage, if you plan on converting many Live Photos to animated gifs, you may want to try some other apps for Live Photo conversions, and the $2 Live GIF app or $2 Lively app are perhaps better choices. Nonetheless, for a free offering, GIF Toaster gets the job done well, and can also convert video to animated gifs as well.

It’s worth mentioning that if you just want to make animated gifs from still pictures or videos, GifMill works great for that purpose as well, which is another free app for iOS we’ve discussed before.

Animated GIFs are popular enough that the ability to generate one out of a Live Photo should probably be included natively on the iPhone Camera app or Photos app, perhaps such a feature will arrive in the future, but until (if ever) that changes, enjoy the apps to make your own animated GIFS!

How to get started using Raspberry Pi


How to get started using Raspberry Pi

Get the basics for setting up Raspberry Pi.

The Raspberry Pi is a mini computer that was specifically created to make tech learning easier. It has a lot of components for computer-based projects, like USB ports, an ethernet port, an SD card slot, Wi-Fi antenna ports, and more.

It does not come with peripherals, like cables, a keyboard, a mouse, or a monitor. It is a great for learning program languages, like Python, Scratch, and Wolfram. Most Raspberry Pi enthusiasts like making single-process builds to show off their do-it-yourself talents.

For example, you could create a dedicated gaming device, or an external storage box for movies and music. There are a plethora of Raspberry Pi Projects that cover all manner of possibilities, each one with different specifications. We have a guide for getting started with Raspberry Pi to help you understand what you will need for your first (or next) project.

What you will need

The Raspberry Pi ships as just the single-board mini computer. There are a few additional components you will need before you can get started. So, when making your purchase, keep in mind that you’ll need the following extras.

  1. Raspberry Pi — There are four different models of Raspberry Pi. The Pi 2 Model B or Pi 1 Model B+ are ideal for beginner projects because they are the most versatile and have the widest range of capabilities. The Pi 2 Model B has the added bonus of having a quad-core processor and 1 GB of RAM so it supports heavier operating systems, like Ubuntu and Microsoft 10.
  2. Power supply — You will need a 5V micro-USB power supply. You can find them for really cheap online. You may even have one from a non-apple mobile device lying around the house. I recommend the CanaKit 5V power supply.
  3. USB keyboard
  4. USB mouse — If you prefer to use a Bluetooth keyboard and mouse, you could just get a Bluetooth adapter. I have a Kinivo BTD-400, but there are dozens of different brands out there.
  5. microSD card — The microSD card must have at least 8 GB of storage. You can purchase one that comes pre-loaded with Raspberry Pi’s New Out of Box Software (NOOBS), but you can also download the software for free from the website, so there is no need to purchase a special NOOBS microSD card.
  6. microSD USB card reader — You’ll need something that you can connect the microSD card to your PC or Mac in order to download software onto it. Adafruit carries one that is perfect for Raspberry Pi, but you can pick one up at just about any electronics or office supply store.
  7. A monitor or TV that supports HDMI or composite video — You can use an older composite video display, but HDMI works better and supports audio transfers.
  8. An HDMI cable or composite video cable, depending on what the screen you use supports
  9. An ethernet cable (or Wi-Fi dongle) — A connection to the Internet is not required for setup, but many Raspberry Pi projects use them.

What you need

How to reformat your microSD card

The first step to getting started with Raspberry Pi is to reformat the microSD card that you will use to download the operating system. Even brand new SD cards will have some extraneous files on them. Reformatting it will remove all files and completely clear the card.

  1. Insert your microSD card into the USB card reader.

    microSD card reader

  2. Connect the card reader to your computer.
  3. Download SD Formatter 4.0.

    Download SDFormatter

  4. Double-click on SDFormatter_4.00B.pkg in your downloads folder in your Dock to install SD Formatter 4.0.

    Open SDFormatter installer

  5. Follow the instructions in the installation window.
  6. Click the Launchpad icon in your Dock. It looks like a silver rocket ship.

    Launchpad

  7. Find the SD Formatter 4.0 app.
  8. To move between Launchpad windows, click the Next Page icons at the bottom center of the screen, or swipe to the right or left with your trackpad or Magic Mouse.
  9. Click on the SD Formatter 4.0 app to open it. A formatting window will appear on your desktop.

    Finding apps in Launchpad

  10. Under Select Card select your microSD card from the dropdown menu.
  11. Click Format in the bottom right corner.

    Setting up SDFormatter

When the reformat is complete, you will get a notification window. Select OK to close the window.

How to download NOOBS onto the microSD card

The next step is to get NOOBS onto the microSD card. Once it’s loaded, you can plug it into your Raspberry Pi and configure the operating system. The microSD card should already be connected to your computer at this time.

  1. Download the ZIP file of NOOBS Verson 1.7.0. It is a large file and will take a while to complete. You will want Raspbian, so do not download NOOBS Lite.

    Download NOOBS

  2. Double-click on the NOOBS file from the Downloads folder in your Dock to open it.

    Open NOOBS file

  3. Select the first file inside the NOOBS folder.
  4. Scroll down and Shift + left-click on the last file in the NOOBS folder.
  5. Drag and drop all selected NOOBS files into the SD card icon on your desktop. You don’t have to open the SD card drive.

    Dragging NOOBS files to SD card

  6. Right-click on the SD card icon.
  7. Select “Eject [SD Card Name]”.

    Ejecting SD card

  8. Remove the card reader from your computer.
  9. Remove the microSD card from the card reader.

How to set up your Raspberry Pi

  1. Insert the microSD card into the card slot on the underside of the Raspberry Pi.

    Inserting the microSD card into Raspberry Pi

  2. Plug the USB keyboard into one of the USB ports.
  3. Plug the USB mouse into one of the USB ports

    Alternatively, connect the Bluetooth adapter into one of the USB ports.

    Keyboard and mouse connected

  4. Turn on your monitor or TV set and make sure it is set to the proper input (e.g. HDMI 1 or Component)
  5. Plug the HDMI or video component cable into the monitor or TV set.
  6. Connect the other end of the cable into the Raspberry Pi.

    Connecting the HDMI cable to Raspberry Pi

  7. Connect an ethernet cable to your router if you plan to connect to the Internet.
  8. Connect the other end of the cable to your Raspberry Pi.

    Alternately, connect the Wi-Fi adapter to the Raspberry Pi.

    Connecting ethernet cable to Raspberry Pi

  9. Connect the power supply to the Raspberry Pi.
  10. Plug the power supply into the power outlet. This will turn on and boot up Raspberry Pi.

    A power indicator light will begin to glow, letting you know that you are connected,

    Power indicator on Raspberry Pi

How to download the Raspbian operating system on the Raspberry Pi

Beginners should start off using the Raspbian operating system. It it the easiest to use and there are hundreds of projects out there that use the Raspbian operating system. If you want to use a different operating system later on, you can reconfigure your Raspberry Pi then.

Once you have successfully followed the steps above, a start screen will appear on your monitor or TV.

  1. Select Raspbian.
  2. Click Install.

    Installing Raspbian

  3. When the warning window pops up. Click Yes to confirm. This is just letting you know that the microSD card will be overwritten with an uncompressed version of the Raspbian operating system.
  4. Wait for the installation process to complete.

    Raspberry Pi warning

Once the installation process is finished, Raspbian will automatically begin to boot.

How to configure your Raspberry Pi

When Raspbian begins to load a bunch of lines of code will appear. This will continue until the boot process has completed. Then, the Raspbian Home screen will appear. You will need to configure your Raspberry Pi system in order to add your location, date, and time.

  1. Click Menu in the upper left corner of the screen.

    Selecting Menu

  2. Select Preferences in the dropdown menu.

    Selecting Preferences

  3. Select Raspberry Pi Configuration under Preferences.

    Selecting reconfig in Raspberry Pi

  4. When the configuration window appears, click on the Localisation tab.
  5. Click on Set Locale… to set your location.
  6. Click on Set timezone… to set your local time.
  7. Click on Set Keyboard… to set your keyboard language.

    Setting Localization for Raspberry Pi

  8. Reconfiguring your Raspberry Pi will require a reboot. When the reboot window appears, click Yes to continue.

    Rebooting Raspberry Pi

You are set up and ready to start using Raspberry Pi. The mini computing world is your oyster. The only question now is, what project will you build?

Tip: Få mere ud af iPhonens kompas og hældningsmåler


TIP: FÅ MERE UD AF IPHONENS KOMPAS OG HÆLDNINGSMÅLER

At kompasset i iOS også har en kombineret vaterpas og hældningsmåler, ved de fleste nok. Den kommer man til ved at slide fingeren fra højre mod venstre på kompas-oversigten.

Her er at par mere ukendte tips, til hvordan du får mere ud af kompas-appen i iOS.

Brug kompasset som vejviser

Hvis du bruger kompasset til at navigere efter, det kunne være under en sejltur eller en vandretur, har det en smart funktion, som giver bedre overblik.

Lad os antage, at man gerne vil i en retning på 83 grader. Her kan man selvfølgelig bare sørge for at kompasset altid viser 83 grader (og huske på tallet 83). Man kan dog også pege kompasset i den rigtige retning, og trykke i midten på krydset. Herved lagres retningen, i dette tilfælde 83 grader, og bliver vist på kompasskalaen. Ydermere vil afvigelser fra den lagrede retning blive markeret med rød. Det gør det meget nemmere både at huske den rigtige retning, samt få et visuelt overblik over, om man er på ret kurs.

Man fjerner den lagrede retning ved igen at trykke midt på krydset.

Hældningsmåler og vaterpas kan nulstilles og bruges som guide

På tilsvarende vis har både vaterpasset og hældningsmåleren en guide, der kan nulstilles ved at trykke i midten af måleren. Ideen er igen, at man hurtigt og nemt kan se, om man holder iPhonen i den vinkel, man gjorde da man nulstillede måleren. Gør man ikke det, er afvigelsen markeret med rød og angivet i grader.

Lad os sige, at man skal hænge nogle ting op på væggen i en vinkel på 20 grader. Det kan man selvfølgelig gøre ved hver gang at tjekke at hældningsmåleren står på 20 grader. Det giver dog et væsentligt bedre overblik, hvis man første gang nulstiller måleren på de 20 grader. Herved vil man nemlig med rød få en markering af, hvor upræcis man er, samt kan aflæse direkte hvor mange grader afvigelsen er på. På den måde kan man sørge for at to hældninger er ens uden at skulle bekymre sig om hvilken hældning de i virkeligheden har.

Mål relative vinkler og hældninger

Dette kan selvfølgelig også bruges til måling af relative vinkler. I stedet for at måle to hældninger og trække dem fra hinanden, kan man nulstille måleren ved den første hældning, og direkte aflæse størrelsen på vinklen, når man måler den anden vinkel.

Man fjerner nulstillingen og vender tilbage til den rigtige måling ved igen at trykke i midten af måleren.

Man skal huske på, at der ikke er tale om at man kalibrerer kompasset eller vaterpasset, men om en midlertidig indstilling ala en lommeregners memory-funktion. Indstillingen påvirker således ikke andre apps, der bruger kompasset eller hældningsmåleren. Det er en lokal visuel nulstilling. Lukker man appen og åbner den igen, vil man være tilbage, hvor man startede.

How to Reinstall OS X on a Mac


How to Reinstall OS X on a Mac

Reinstall OS X system software on a Mac

Though we’d all rather everything works as intended with our Macs, occasionally something goes really haywire and OS X becomes either royally messed up or unusable. In these circumstances, sometimes the only solution to get things working again is to reinstall OS X system software (or, if you have a recent safe backup made, restoring from Time Machine is often valid as well).

We’ll cover how to reinstall Mac OS X system software only with Recovery Mode, this reinstalls the most recently available version of OS X that is (or was) actively running on the Mac. If performed correctly as described, applications and user data will be preserved and not be modified at all, since this approach only reinstalls the operating system and system files.


Note how this is different from re-installing OS X with Internet Recovery, which loads entirely from the internet, and then reinstalls the original version of OS X which came with the Mac instead, that method is sometimes necessary if the standard recovery option doesn’t load, or if you want to reinstall the original version of OS X for the computer in question. This is also completely different from a clean install of OS X, which is performed by erasing a Mac drive and then starting fresh with a new clean installation of the Mac OS X system software.

Before getting started, you’ll want to be sure you have a fast and stable internet connection available for the Mac, this is because the installer files for OS X download from Apple. Trying to reinstall OS X through a flakey or slow internet connection is not recommended, unless you were to use a bootable install drive or something similar where downloading reinstallation components is not necessary. You’ll also want to set aside at least an hour or two to complete this process, the exact time it takes depends on the speed of the internet connection in use, and the speed of the Mac.

Reinstalling OS X System Software on a Mac with Recovery Mode

It’s a good idea to back up the Mac with Time Machine before beginning this process. Even though this method aims to only reinstall OS X system software on the Mac, things could still go wrong and it’s always better to lean on the side of caution and make file backups beforehand.

  1. Reboot the Mac and hold down the Command+R keys until you see the loading screen to signify you are entering into System Recovery
  2. Hold down Command and R keys to boot into Recovery on a Mac

  3. When you see the OS X “Utilities” menu, you should connect the Mac to the internet however you normally do – this is required* to download the OS X installer app:
    • For wi-fi connections, go to the upper right corner of the screen and pull down the wireless menu and join the network of choice
    • If the Mac uses wired ethernet, simply plug in the ethernet cable and DHCP should retrieve details for the network connection
  4. Once the Mac is connected to the internet, from the OS X Utilities screen choose “Reinstall OS X”
  5. Reinstall OS X via recovery

  6. Select the target hard drive to re-install OS X onto (typically “Macintosh HD” but varies per user) – if the Mac has a FileVault password set choose to “Unlock” and enter the FileVault encryption password before proceeding further
  7. Reinstall OS X from recovery mode

  8. The Recovery drive will now download “additional components” necessary to reinstall OS X on the target volume, let this process complete and the Mac will automatically reboot itself when done
  9. Reinstalling OS X downloads additional components

  10. You may encounter a user login screen upon first reboot, login to the admin user account as usual, and the Mac will again reboot itself to start the reinstallation process of Mac OS X system software
  11. At the black screen with an Apple logo, you’ll see a progress bar indicating how much time is left to complete the reinstallation of Mac OS X, this is typically somewhere in the realm of an hour, just let the Mac sit and finish
  12. Reinstall OS X on a Mac via recovery mode

When reinstallation completes, the Mac will reboot itself again as normal, and you’ll be presented again with the typical login screen associated with OS X – log in to your user account as usual and everything should be in order, complete with a new install of OS X system software on the computer.

As long as you didn’t erase the drive or delete any user accounts yourself, all user accounts, installed applications, and user data will be preserved, and only Mac OS X system software and system files will have been reinstalled without touching anything else on the Mac. If desired, you can use the  Apple menu > About This Mac screen to verify the version of OS X that has been reinstalled:

Freshly reinstalled OS X on a Mac

* If you get an error message about being unable to reinstall OS X because the Mac isn’t connected to the internet, you need to join a wi-fi network or connect via ethernet. The installer must download from Apple for this to work.

OS X cant be reinstalled because you arent connected to the internet

This works to reinstall OS X exactly as described, I had to run through this process recently when I encountered probably the worst and most bizarre bugs I’ve ever seen in OS X, where “Macintosh HD” became stuck in the Trash can and actually started deleting system level files when emptied, which as you can imagine leads to all sorts of problems with the operating system missing critical components. While it’s unlikely you’ll ever encounter such a bug yourself, it is possible for users to mess up their system folders if they have disabled SIP or are using root, if the startup Mac OS volume has been erased or misplaced, if a prohibitory symbol is encountered at startup (sometimes a folder with an X through it, or a folder with a blinking question mark), or if the OS X installation is erroneous or royally messed up.

Remember, this method is not the same as a clean install, and it only reinstalls the version of OS X that is currently running on the Mac (shown here with El Capitan), whereas Internet Recovery will reinstall the version of OS X that shipped with the Mac (in this case it would have been Yosemite) instead. Obviously the versions of OS X will vary depending on what came with the Mac, and what the Mac is currently running. 

How to move Photos library to a separate drive


How to move Photos library to a separate drive

Photos App Icon

In addition to moving your multi-gigabyte iTunes library to an external drive, a significant amount of Mac storage space can be freed up by moving your photo libraries onto a separate drive.

If you take a lot of pictures with a DSLR camera or your iOS devices and import them in Photos, you’ll fairly quickly run out of free space on most Macs.

This tutorial will guide you through the process of moving an entire library of photos to a drive other than the startup volume, preferably to a much larger external hard drive, in a way that won’t disrupt your photography workflow.

About Photos Library file

In Photos, you can easily switch between multiple libraries but can only work with one library at a time

If your Photos library is managed—that is, “Copy items to the Photos library” is selected in Photos → Preferences → General—every image you import to Photos or drop on its window will get copied to the Photos library.

By default, the photo library is a bundle named “Photos Library.photoslibrary” found inside your account’s Pictures folder. To see what’s inside, right-click the file and choose the option Show Package Contents in a contextual menu.

OS X El Capitan Photos library in Finder Mac screenshot 002

In addition to storing your unmodified original images, the Photos library saves their device-optimized versions, copies of edited images, thumbnails, previews, caches and other related items. Here’s what’s inside my photo library bundle:

OS X El Capitan Photos library in Finder Mac screenshot 003

WARNING: To avoid accidentally deleting or corrupting a Photos library, do not alter the contents of a library in the Finder.

How to move Photos library to a separate drive

Before moving your photo library to a separate drive, you must first ensure that the image stored outside your library are consolidated. During this process, Photos will add and save a copy of any referenced file to your library.

1) Tick the box next to “Copy items to the Photos library” in Photos → Preferences → General. Going forward, every image added to Photos will be copied to your library.

OS X El Capitan Photos Preferences Managed library Mac screenshot 001

2) In Photos, select all photos (Edit → Select All or Command (⌘)-A) and then choose File → Consolidate. Click Copy to continue.

This will copy referenced files into your photo library so they’re easier to back up and automatically included in your iCloud Photo Library. You may receive a message that some of the selected items are already stored in the library.

3) Quit Photos, click the desktop and in the Finder menu click Go → Home.

4) A new Finder window opens. Navigate to your user account’s Pictures folder.

5) Connect an external hard drive, a USB thumb drive or other storage device to your Mac, wait until its icon appears on the desktop. Now drag the “Photos Library.photoslibrary” file from the Pictures folder on the storage device icon.

OS X El Capitan Photos copy Library Mac screenshot 005

Depending on your Mac, photo library size and other parameters, this process may take anywhere between a few seconds or minutes to half an hour or even more.

6) When the copying completes, hold down the Option (⌥) key and click the Photos icon in the Dock. This will prompt Photos to launch to a Choose Library dialog, giving you a chance to switch to another library file.

OS X El Capitan Photos Choose Library Mac screenshot 004

7) Click Other Library to continue. Highlight the photo library file you just copied to an external drive and select Open to load it.

8) Photos will launch into your new library. One final step: select “Use as System Photo Library” in Preferences → General. After designating a new System Photo Library, turn on iCloud services you normally use under Photos → Preferences → iCloud.

Photos will now re-sync your new image library to the cloud. The process should complete fairly fast as Photos is smart enough not to upload previously synced images.

9) After confirming that you have a good backup of your new photo library in Time Machine, feel free to delete the original library file in your account’s Pictures folder in order to regain storage space on your Mac.

Switching photo libraries and iCloud Photo Library

If you have multiple photo libraries on your Mac, know that only one photo library at a time can be set as your default, or the System Photo Library in Apple talk.

“If you switch to a library other than the System Photo Library, the changes you make are not reflected in iCloud Photo Library, because iCloud Photo Library only synchronizes changes from your System Photo Library,” writes Apple.

That’s why you must designate a library you switch to as you new System Photo Library before iCloud services such as iCloud Photo Library can be used with it.

About System Photo Library

When you first use Photos, the app will create a new photo library for you and automatically make it your System Photo Library. Again, the System Photo Library is the only library that can access iCloud services, including iCloud Photo Library, iCloud Photo Sharing and My Photo Stream. Moreover, contents of your System Photo Library appears in other apps via OS X’s Media Browser.

After moving your photo library to another location such as an external storage device, making it your new System Photo Library lets you continue using iCloud Photo Library and other iCloud services with photos in that library.

Keep in mind that in order to use iCloud Photo Library, iCloud Photo Sharing and My Photo Stream, the external storage device must be formatted using Mac OS Extended (Journaled) format, also known as HFS+.

Apple on its parts warns that enabling iCloud Photo Library after designating a new System Photo Library will merge the photos stored in iCloud with those in the new System Photo Library.

“Once the content from the new System Photo Library is uploaded to iCloud, the libraries cannot be unmarked, so it’s a good idea to consider carefully before changing your System Photo Library,” cautions the firm.

If you like this article, check out iDownloadBlog’s Photos how-to archive.

Please consider sharing this tutorial on social media and submit ideas for future how-to coverage at tips@iDownloadBlog.com.

Looking for a great email app? Try Airmail, a powerful mail client for iPhone. Download it in the App Store.

How to Read a Message Without Sending Read Receipt on iPhone with 3D Touch


How to Read a Message Without Sending Read Receipt on iPhone with 3D Touch

A read receipt in Messages for iOS

The iOS Messages app defaults to sending what is called a “read receipt” when an iMessage is opened and read within the application. That Read Receipt feature can be helpful for some conversations but it’s not always desired for every message, and though disabling Read Receipts for Messages in iOS is certainly one option that many iPhone users choose, another trick is available to those with 3D Touch equipped iPhone screens, thanks to the ‘peek’ and ‘pop’ features of such devices.


Here is exactly how you can read an iMessage on iPhone without sending a Read Receipt to the sender – and without turning the feature off entirely. Like some other 3D Touch tricks, it may be helpful for some users to adjust the 3D Touch pressure sensitivity settings to get the most out of this.

  1. Open the Messages app as usual when a new message arrives – do not open the message thread, however
  2. Messages

  3. At the Messages overview screen in iOS with all available message threads, press to activate 3D Touch ‘peek’ on the message you wish to read but without sending the receipt to the sender
  4. As long as you continue to 3D Touch the messages screen, you’ll be able to read the new iMessage without sending a read receipt – if you do want to send a read receipt from this screen you can either hard press to ‘pop’ the iMessage which instantly sends a read receipt, otherwise swipe up while in ‘peek’ mode and choose “Mark as read” from the 3D Touch options
  5. Read a message without sending Read Receipt on iPhone using 3d Touch

Nice trick, isn’t it? You’ll obviously need a device with a 3D Touch display for this to work, like an iPhone 6s or iPhone 6s Plus, as the standard screens do not offer peek and pop or touch-pressure detection.

This is really helpful if you wish to leave the read receipts feature enabled, which can be great for close friends and family, but is often less than desirable to keep enabled for some other contacts. Since there is currently no method of selectively enabling or disabling the sending of those read receipts to individual contacts, this 3D Touch approach offers an alternative to iPhone users who want to read a message without actually sending the “Read Receipt” to the sender, and also without turning off the feature entirely which results in the “Delivered” message sent to senders instead. Basically this means you can keep the feature on but maintain a bit of privacy for reading messages in situations that call for it.

Thanks to MacTrast for discovering the handy trick. 

AirDrop Not Showing Up in iOS Control Center? This is the Easy Fix


AirDrop Not Showing Up in iOS Control Center? This is the Easy Fix

AirDrop in iOS - how to fix it if it not showing up, or if AirDrop is not working in iOS

AirDrop is a great file sharing protocol for iOS and OS X that allows users to quickly and easily send files, photos, contacts, and other data back and forth between iPhones, iPads, iPod touch, and Mac OS X. But sometimes AirDrop doesn’t show up at all in iOS, which obviously prevents the feature from working to share anything let alone find someone to share it with. The AirDrop feature not showing up in Control Center is one of the most common problematic issues with AirDrop in iOS, but usually it’s an easy fix.


We’re going to assume your iPhone, iPad, or iPod touch is running the latest version of iOS, if not you should update it before going further by going to Settings > General > Software Update, because iOS updates frequently resolve bugs while also insuring greater compatibility with other devices running the same version. For best results with AirDrop, you’ll typically want each device running the latest version of system software available for it.

Fix for AirDrop Not Showing Up in iOS Control Center

There are a few potential reasons for AirDrop not being visible, but assuming you have an iOS version which supports AirDrop as any modern release does, here’s the most common resolution for when AirDrop is not showing up on an iPhone, iPad, or iPod touch within the iOS Control Center:

  1. Open the Settings application in iOS and go to “General”
  2. Now go to “Restrictions” and enter the devices passcode if requested
  3. Look under the Restrictions list for “AirDrop” and be sure the switch is toggled in the ON position
  4. Fix AirDrop not showing up in iOS

  5. Exit out of Settings and open Control Center again, AirDrop will be visible
  6. Fixed AirDrop not showing up in iOS as intended

Here’s the before and after, before with AirDrop not showing up and therefore not able to work at all (since it’s not enabled), and after with AirDrop no longer restricted, as the feature has been effectively enabled and is now allowed to work as intended:

AirDrop not showing up in iOS is easy to fix

Now return to Control Center, flip the feature on, and AirDrop should work for sharing without incident. If you set AirDrop to Contacts Only for privacy purposes, you may want to switch AirDrop into ‘Everyone’ mode temporarily so that it won’t have a problem finding someone nearby.

Set AirDrop to be available to Everyone

Just be sure to turn AirDrop back off or back to “Contacts” again once you are finished using it.

Sometimes users may need to reboot an iPhone, iPad, or iPod touch to get AirDrop to show up consistently after doing this, but it should appear immediately without a system restart. You may be wondering why AirDrop would be in the restrictions section if you didn’t disable the feature there, but there isn’t always a clear answer to this, and I’ve seen multiple iOS devices where AirDrop was effectively disabled in iOS by having the Restriction turned on. Simply toggling it off allows AirDrop to appear in Control Center, and to work for sharing again in most cases.

Have any other AirDrop tips for iPhone, iPad, or iPod touch? Let us know in the comments. 

Guide: Lav gratis ringetoner i iTunes



http://onx.dk/tips-tricks/guide-lav-gratis-ringetoner-i-itunes/