HTML5 increase youtube speed 2x from url?

There’s no way to change playback speed by URL arguments. Anyway, if you’re working with HTML, you can take advantage of the YouTube Player iFrame API. Here’s how to configure your player with all the JavaScript: https://developers.google.com/youtube/iframe_api_reference#Getting_Started And here’s the function you’re looking for to set playback speed: https://developers.google.com/youtube/iframe_api_reference#Playback_rate So you can edit your onPlayerReady … Read more

Android sample bluetooth code to send a simple string via bluetooth

private OutputStream outputStream; private InputStream inStream; private void init() throws IOException { BluetoothAdapter blueAdapter = BluetoothAdapter.getDefaultAdapter(); if (blueAdapter != null) { if (blueAdapter.isEnabled()) { Set<BluetoothDevice> bondedDevices = blueAdapter.getBondedDevices(); if(bondedDevices.size() > 0) { Object[] devices = (Object []) bondedDevices.toArray(); BluetoothDevice device = (BluetoothDevice) devices[position]; ParcelUuid[] uuids = device.getUuids(); BluetoothSocket socket = device.createRfcommSocketToServiceRecord(uuids[0].getUuid()); socket.connect(); outputStream = socket.getOutputStream(); … Read more

Send HTML in email via PHP

It is pretty simple. Leave the images on the server and send the PHP + CSS to them… $to = ‘bob@example.com’; $subject=”Website Change Request”; $headers = “From: ” . strip_tags($_POST[‘req-email’]) . “\r\n”; $headers .= “Reply-To: ” . strip_tags($_POST[‘req-email’]) . “\r\n”; $headers .= “CC: susan@example.com\r\n”; $headers .= “MIME-Version: 1.0\r\n”; $headers .= “Content-Type: text/html; charset=UTF-8\r\n”; $message=”<p><strong>This is … Read more