Linux: Etcher USB Flasher
2014-07-21
IN1, 2014-07-21 00:00:00
IN1, 2023-04-10 14:16:28


Mit dem Tool Etcher kann man sehr einfach ISO Files auf USB Sticks schreiben.

Installation

Debian und Ubuntu based Package Repository (GNU/Linux x86/x64)

Add Etcher debian repository:

echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/apt/sources.list.d/balena-etcher.list

Trust Bintray.com's GPG key:

sudo apt-key adv --keyserver keyserver.u […]

PHP: Best way to get the first element of an array
2014-03-19
IN1, 2014-03-19 00:00:00
IN1, 2023-04-10 14:16:28


Q: how to determine the value of the first element of an array if the key is unknown ?

A: make use of the reset command to set the array pointer back to start and to get the value of the array's first element.

// associative array
$aArray = array(
    'foo' => 'bar', 
    'john' => 'doe'
);

// value of array's first element
$mValue = reset($aArray); // bar

// key of array's first element
$mKey = key(reset($aArray […]


This website uses Cookies to provide you with the best possible service. Please see our Privacy Policy for more information. Click the check box below to accept cookies. Then confirm with a click on "Save".