John Cox

Blogs · @wyome · Now · Shelf

Interesting

We're Underestimating the Risk of Human Extinction - Ross Andersen - Technology - The Atlantic

In this interview, Oxford philosopher Nick Bostrom argues that existential risk deserves priority over nearly every other moral concern, because even a tiny cut in the odds of extinction protects an astronomically large future population. He thinks the greatest dangers are human-made, such as engineered pathogens, superintelligent AI, and permanent totalitarian surveillance, while natural threats like asteroids matter little given our long survival record. He treats halting technology as itself an existential risk, since it would lock us out of far better ways of living. Along the way he explains observation selection effects, the doomsday argument, the simulation argument, and his image of new inventions as balls drawn from an urn that might eventually turn up black.

Permalink

jQuery Transit - CSS3 animations for jQuery

This is a set of tips from the documentation for Transit, a jQuery plugin that animates with CSS transitions. In browsers without transition support, it skips transforms like rotate and scale and applies plain CSS properties like opacity instantly, ignoring delays and durations. You can restore frame-based animation by aliasing `.transition` to `.animate`, though custom easing then needs jQuery Easing. It also covers setting a default duration through `$.fx.speeds._default`, defining named easings in `$.cssEase`, and WebKit fixes for flicker (`backface-visibility: hidden`) and text antialiasing (forcing hardware acceleration).

Permalink

Advanced CodeIgniter Profiling With XHProf | Nettuts+

A hands-on tutorial for running Facebook's XHProf function-level profiler on a production PHP server, written for Ubuntu 10.04 and a CodeIgniter app. It covers compiling the extension from source (PECL was unreliable), then wiring it in through CodeIgniter pre- and post-controller hooks with a configurable sample rate, so only a fraction of live requests get profiled. It then explains how to read the output: inclusive versus exclusive wall time, drilling into the controller, callgraphs, and comparing or aggregating runs to check whether optimisations helped.

Permalink

MiniJs - jQuery Plugins made easy

Halaman promosi untuk Senggol138, situs slot online berbahasa Indonesia, yang mengklaim frekuensi scatter Zeus (Gates of Olympus) lebih tinggi dari situs lain, perkalian hingga 1000x, RTP 96,8%, dan "win rate" 98,5%. Isinya murni materi pemasaran: deposit minimal Rp 10.000, bonus anggota baru 100%, cashback mingguan 10%, klaim lisensi internasional dan RNG tersertifikasi, serta testimoni yang tidak bisa diverifikasi. Klaim bahwa sistem "dioptimalkan" agar scatter lebih sering muncul bertentangan dengan klaim permainan acak yang adil, dan angka seperti win rate 98,5% tidak masuk akal untuk judi. Perjudian online juga ilegal di Indonesia, jadi halaman ini layak disimpan hanya sebagai contoh iklan judi, bukan sumber informasi yang bisa dipercaya.

Permalink

RequireJS

RequireJS is presented as a JavaScript file and module loader built mainly for the browser but also usable in Rhino and Node, with the claim that loading code modularly improves both the speed and the quality of what you ship. The page's main selling point beyond that is broad legacy browser support, listing compatibility back to IE 6, Firefox 2, Safari 3.2, Chrome 3, and Opera 10. It reads as a short project landing blurb that points readers on to a getting-started guide and the API docs rather than making any detailed argument itself.

Permalink

5 Lightweight jQuery Alternatives for Mobile Development | Tutorialzine

Makes the case that jQuery is too heavy for mobile sites, both in download and parse cost and because its JavaScript-driven animations run poorly compared with hardware-accelerated CSS transitions. It then surveys five lighter alternatives with their sizes and tradeoffs: Zepto (8kb, near-jQuery API, touch events, CSS animations), Snack (3kb, its own API, no animation help), $dom (2kb, cross-browser, no AJAX), xui.js (4kb, touch support, builds for specific mobile browsers), and 140medley (0.5kb, templates, events and AJAX, but documented only through its cryptic source). Useful as a quick comparison of micro-libraries for mobile-only work.

Permalink

CSS Scroll Effects

stroll.js is a small library by Hakim El Hattab (@hakimel) that applies CSS3 transforms to list items as you scroll, and the page is essentially a demo gallery of those effects. Each demo is a long list of number words from One to Ninety-nine, with the item styling changing as it enters the viewport. The effects include Grow, Cards, Curl, Wave, Flip, Fly (plus simplified and reverse variants), Helix, Fan, Papercut and Twirl, most of them using CSS 3D. It was tested in Chrome, Safari, Firefox, iOS and Android 4.x, so it is worth keeping as a reference for scroll-driven list animation from the pre-modern-CSS era.

Permalink

Why Are So Many Americans Single? : The New Yorker

Drawing on Eric Klinenberg's "Going Solo," this piece treats the rise of living alone (now nearly a third of U.S. households) as an outgrowth of mainstream liberal values: women's liberation, urbanization, communications technology, and longer lives. It argues that solo living is more often a route to ambition and autonomy than a sign of abandonment, though it may cost communities the everyday interaction that builds shared responsibility, a worry the writer sets against Putnam's "Bowling Alone," Turkle's "Alone Together," and Sennett's "Together," as well as the Jeff Ragsdale phone-line phenomenon. The real danger is crisis, especially for the elderly, and as the first cohort that chose solitude reaches old age, the ethics of senior care will shift; otherwise the piece concludes that people living alone are rarely as isolated as the lonely-loser stereotype suggests.

Permalink

phpmaster | Working with MySQL Events

A tutorial on MySQL events (available since 5.1.6), which act as time-based triggers inside the database and can stand in for some cron jobs. It covers turning on the event scheduler, creating one-off and recurring events with AT, EVERY, STARTS and ENDS, listing them, altering, renaming and dropping them, and the ON COMPLETION PRESERVE option. Its worked example is scheduling blog posts: a post is saved as "pending" and a PHP script creates an event that flips it to "published" at the chosen time, which avoids a cron job polling every minute. It closes by noting events can't replace cron entirely, since they can't run external code like PHP scripts.

Permalink