Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
| LoadModule ssl_module modules/mod_ssl.so | |
| LoadModule proxy_module modules/mod_proxy.so | |
| LoadModule filter_module modules/mod_filter.so | |
| LoadModule substitute_module modules/mod_substitute.so | |
| <VirtualHost *:443> | |
| ServerName yourdomain.com:443 | |
| SSLEngine On | |
| SSLProxyEngine On |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');My summary of https://www.youtube.com/watch?v=IqrwPVtSHZI
TL;DR:
Rails has a library, ActiveSupport, which adds methods to Ruby core classes. One of those methods is String#blank?, which returns a boolean (sometimes I miss this convention in Rust, the ?) if the whole string is whitespace or not. It looks like this: https://github.com/rails/rails/blob/b3eac823006eb6a346f88793aabef28a6d4f928c/activesupport/lib/active_support/core_ext/object/blank.rb#L99-L117
It's pretty slow. So Discourse (which you may know from {users,internals}.rust-lang.org) uses the fast_blank gem, which provides this method via a C implementation instead. It looks like this: https://github.com/SamSaffron/fast_blank/blob/master/ext/fast_blank/fast_blank.c
For fun, Yehuda tried to re-write fast_blank in Rust. Which looks like this:
| function u() { | |
| requestAnimationFrame(u); | |
| g = p ? | |
| audio.currentTime * 60 : ( | |
| audio = "RIFFdataWAVEfmt " + atob("EAAAAAEAAQAAeAAAAHgAAAEACAA") + "data", | |
| b.style.background = "radial-gradient(circle,#345,#000)", | |
| b.style.position = "fixed", | |
| b.style.height = b.style.width = "100%", |
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
| <?php | |
| /* | |
| Plugin Name: Really Simple CSV Importer Action add-on | |
| Description: Run the additional action after importing the post data | |
| Author: Takuro Hishikawa | |
| Version: 0.1 | |
| */ | |
| class rscsvimporter_action { | |
| // singleton instance |
| In the example solr project when you start it up by calling the following line: | |
| java -jar start | |
| You are starting a Jetty server on your local machine that's going to serve the solr results. This server is not able to do CORS (Cross Origin Resource Sharing). Which means that if you tried to do an AJAX call from a webpage of a different origin than the server itself you would be denied a response. | |
| To fix this you first need to get the apropriate jars to allow for cross-domain resource sharing. | |
| I used the following jar: | |
| http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-servlets/8.1.10.v20130312/ |
| ; | |
| ; AutoHotkey Version: 1.x | |
| ; Language: English | |
| ; Platform: Win9x/NT | |
| ; Author: Matt Heath <matt@mattheath.com> | |
| ; | |
| ; Script Function: | |
| ; Remaps keys when using an Apple Keyboard with a Windows PC | |
| ; |