These are a list of scripts sampled for Python 101 for PyOhio 2013.
package main | |
import ( | |
"log" | |
"net/mail" | |
"encoding/base64" | |
"net/smtp" | |
"fmt" | |
"strings" |
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
This error is actually produced by changes on rubygems site certificate in lieu of recent OpenSSL vulnerabilities. To fix this error one need to upgrade their rubygems
RubyGems bundles its trust certificate within itself (as it is used from command line tool),
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
elem.clientLeft
,elem.clientTop
,elem.clientWidth
,elem.clientHeight
elem.getClientRects()
,elem.getBoundingClientRect()
Ubuntu 15.04 (Vivid) has now been released and it fixes mostly all of the issues I had with my Thinkpad T450. I recommend doing a clean install of Ubuntu 15.04 and mostly avoiding all of the steps bellow!
My process for getting Ubuntu running really nicely on a Thinkpad T450 with all the hardware working. (I have my track pad disabled in the bios and only want to use the track point.)
Basic steps to get Ubuntu running nicely on the Thinkpad T450:
- Install Ubuntu 14.10
- Install latest stable mainline kernel (3.19.3 vivid at time of writing)
- Install headers_all package
- then headers_amd64 package
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="css/reveal.css"> | |
<link rel="stylesheet" href="css/theme/default.css" id="theme"> | |
</head> | |
<body> |
// paste in your console | |
speechSynthesis.onvoiceschanged = function() { | |
var msg = new SpeechSynthesisUtterance(); | |
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0]; | |
msg.text = Object.keys(window).join(' '); | |
this.speak(msg); | |
}; |
// gulpfile.js | |
var gulp = require('gulp'); | |
var requireDir = require('require-dir'); | |
var tasks = requireDir('./tasks'); | |
gulp.task('sass', tasks.sass); | |
gulp.task('serve:dev', tasks.serve.dev); | |
gulp.task('serve:dist', tasks.serve.dist); |