\
A Bacante na Boca do Lixo \ \ \
\
\
A Bacante na Boca do Lixo \ \ \
\
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title></title> | |
<meta name="generator" content="LibreOffice 4.2.8.2 (Linux)"> | |
<meta name="created" content="0;0"> | |
<meta name="changed" content="0;0"> | |
<style type="text/css"> | |
<!-- |
This is a no-brainer to get your single-post web page up and running. Just have to have Node and NPM installed. Styling is powered by 999.css.
Steps:
package.json
into an empty directory and enter this directory in your command line prompt.npm run scaffold
.domain
, title
and author
in the config
section of your package.json
. The domain
may be either a Surge subdomain or your own (please refer to the Surge docs). If you're going to host your page yourself, you may leave domain
empty.var msnry = new Masonry( 'main > section > ul', { | |
columnWidth: 'li', | |
itemSelector: 'li', | |
percentPosition: true, | |
gutter: 0 | |
}) |
Problem: Advertising is hard, reaching the correct people with advertising is hard -- probably easier with Adwords than in the real world, but still hard --, and is getting harder as more money is spent on internet advertising. At the same time, ad blockers are quickly spreading and maybe will soon kill all the sources of advertising, bad for personal websites, bad for small companies using Adwords.
Solution: Think affiliate marketing. Now think manual advertising contracts (when a blogger or a podcaster explicitly recommends some website or local business in his writing/talking). This tool would combine these two to get some level of automation in the process. It would beat ad blockers, give a personal touch to the advertising and release companies and bloggers from the pain of manually contracting.
How would it work?
(Let's imagine this service is hosted at natural.com, which is obviously not true). Let's see an example. A blogger writes about the topic of fishing for beginner fishers. He has a lot of fi
function getJSON (url, callback) { | |
var xhr; | |
xhr = window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest(); | |
xhr.onreadystatechange = function() { | |
if (xhr.readyState === 4) { | |
if (callback) { | |
callback(xhr.responseText); | |
} | |
} | |
}; |
# POST https://api.pushbullet.com/v2/pushes | |
# requires 'Access-Token' header | |
{ | |
device_iden: "<pushbullet device id>", | |
type: "note", | |
title: "\(.Message | fromjson | .NewStateValue): \(.Message | fromjson | .AlarmName)", | |
body: "\(.Message | fromjson | .AlarmDescription) -- \(.Message | fromjson | .NewStateReason) -- \(.Message | fromjson | .StateChangeTime)" | |
} |
ws://ws-server:8088
.node ws-server.js
python3 -m http.server 8080
me
and other
. Do the same on the other computer/tab (but inverting the values this time). Then call connect
. After the connection is established you'll be able to call channel.send('message')
and see the event logs at the other computer/tab.dt { | |
font-weight: bold; | |
float: left; | |
min-width: 200px; | |
text-align: right; | |
} | |
dt:after { | |
content: ':'; | |
margin-right: 10px; |