image size taken into account, simpler macros for image, video

master
muflax 2012-03-29 19:43:07 +02:00
parent 140d062737
commit 335fddf3b4
13 changed files with 66 additions and 34 deletions

View File

@ -17,7 +17,7 @@ Diet and Drugs
Caffeine
--------
![totally safe](/pigs/coffee_cat.jpg)
<%= image("coffee_cat.jpg", "totally safe") %>
Caffeine drastically improves my concentration. It gives me an indiscriminate,
but very narrow focus. I can work for hours on basically anything, but find it
@ -61,7 +61,6 @@ with regards to food.
You can thank me later when most of the problems you just lived with are
gone.
Eating about 50-100g of butter refuels my energy almost completely in less than
20 minutes and greatly increases concentration. I perform better on all
intelligence and memory tests I used and find learning (especially with Anki)
@ -158,7 +157,7 @@ with that.
Tyrosine
--------
![lolcatecholamines](/pigs/lolcats.jpg)
<%= image("lolcats.jpg", "lolcatecholamines") %>
Now comes the magic bullet. Seriously, Tyrosine is among my favorite chemicals
because it fixes a problem without creating new ones. That's quite rare.

View File

@ -7,7 +7,7 @@ episteme: :believed
Normally, I'd do an introduction who [Michael Persinger][] is, but I'm not in the mood, so let's just say that he is a (awesome!) mind researcher who developed the infamous God Helmet, which induces just the right kind of magnetic field around a brain to trigger, in most people, a sense of wonder and presence of somebody invisible being with them in the room, and in few, a full-blown religious experience. Also, there's his great lecture on drugs:
<div align="center"><object id="VideoPlayback" style="width: 400px; height: 326px;" width="100" height="100" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://video.google.com/googleplayer.swf?docid=4292093832329014323&amp;hl=en&amp;fs=true" /><param name="allowfullscreen" value="true" /><embed id="VideoPlayback" style="width: 400px; height: 326px;" width="100" height="100" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=4292093832329014323&amp;hl=en&amp;fs=true" allowfullscreen="true" /></object></div>
<%= google_video "http://video.google.com/googleplayer.swf?docid=4292093832329014323" %>
So, the real point. Persinger once hypothesized that small fluctuations in the Earth's magnetic field might cause changes in the temporal lobe, triggering in extreme cases spiritual experiences, and more typically, raising the rate of reported UFO abductions and so on. He suspected that earth quakes would be sufficient to cause these magnetic fluctuations.

View File

@ -253,8 +253,8 @@ the whole meat of speed reading. It's the main trick to discover.
Once you read at a very high speed, it really makes a huge difference how large
your chunks are. Here's a little demonstration:
![chunk size 1](/pigs/fast.gif)
![chunk size 4](/pigs/slow.gif)
<%= image("fast.gif", "chunk size 1") %>
<%= image("slow.gif", "chunk size 4") %>
Both animations run at the same reading speed of 1000wpm, but the first one
shows every word on its own, while the second one uses groups of 4. If you watch

View File

@ -7,7 +7,7 @@ episteme: :believed
Synesthesia is the automatic connection of different senses. Typical example: perceiving numbers as having a color. Or the LSD version: seeing music.
![](/pigs/cat-lick-funny-stamp.jpg)
<%= image("cat-lick-funny-stamp.jpg", "I licked a funny stamp") %>
Many years ago, I was fascinated by the idea and really wanted to have this myself. Tasting sound would be awesome! Alas, I didn't seem to have any synesthesia nor did I ever find a way to replicate it.

View File

@ -73,7 +73,7 @@ Then comes the flushing.
The Dark Night of the Soul
==========================
![the end of the rabbit-hole](flush.png)
image("flush.png", "the end of the rabbit-hole")
> Agent Smith: But I believe that, as a species, human beings define their reality through suffering and misery. The perfect world was a dream that your primitive cerebrum kept trying to wake up from.
@ -96,7 +96,7 @@ But no matter how well he fights, no matter how much Neo tries to beat Smith at
His only hope of escape destroyed, he is trapped. His back is to the wall, he cannot run away anymore, but he also can't face the problem. The agents are invincible. There is no forwards and no backwards. He is torn apart by his own weakness. He can't flee the Matrix anymore, but he can't deal with his problems, either. Yet he is forced to do so. All his strength was not enough to defeat Smith, all his speed was not enough to escape him. Nowhere left to go, there is only death.
![bang]()
bang!
Path
====

View File

@ -5,7 +5,8 @@ non_cognitive: true
no_comments: true
---
![logo](/pigs/logo.jpg)
<%= image("logo.jpg", "logo") %>
Yet another hypergraphic information whore's site.
[muflax][] is empty. My [LibraryThing][] profile says more about me than I ever could.

View File

@ -182,7 +182,7 @@ Here's a thought experiment to question the assumption that absence of certain t
>
> If the point you're making really only applies to torture, fine. But otherwise, it tends to read like "Maybe people will understand my point better if I CRANK MY RHETORIC UP TO 11 AND UNCOIL THE FIREHOSE AND HALHLTRRLGEBFBLE"
![](/pigs/pie.jpg)
<%= image("pie.jpg", "pie hole") %>
There are three different worlds. Let's call them *Defaultia*, *Absencia* and *Lossa*. They are all very similar, except for one little detail. In all three worlds there is a pie shop, and in this pie shop there is a careful pie maker. The pie maker is currently making another delicious pie for a customer. Behind the pie maker are three ingredients in three conspicuously similar pots, yet only one is needed for the pie. The pie maker will blindly grab one of the pots, make sure it is the right one and if so, use it. The pie will be delicious and the customer will be very happy.
@ -422,7 +422,7 @@ Is this just a contrarian position? Are antinatalists merely signalling how deep
## If life is so horrible, why don't you kill yourself?
![likebeingdead](/pigs/likebeingdead.jpg)
<%= image("likebeingdead.jpg", "sleep is death") %>
Revealed preference: it's easy to kill yourself, yet only about [0.016%][WHO suicide], or 1 in 63, kill themselves each year.
@ -436,7 +436,7 @@ TODO Benatar
When, exactly, is the harm done?
![Antinatalist Antelope is Pro-Death](/pigs/prodeath.jpg)
<%= image("prodeath.jpg", "Antinatalist Antelope is Pro-Death") %>
## Moral Consequences

View File

@ -557,7 +557,7 @@ left nothing out, all the rules are in there. If you want, you can build your
own genuine Ant from that, without anything missing. But then you observe the
ant and the following happens:
![Langton's Ant builds a highway](/pigs/LangtonsAnt.png)
<%= image("LangtonsAnt.png", "Langton's Ant builds a highway") %>
Once the highway is started, the ant will build nothing else anymore. This
*seems* to be true for all possible starting grids, and it has been proven that

View File

@ -34,7 +34,7 @@ A meme is a "unit of cultural transmission", the idea-equivalent of a gene, like
It really clicked upon encountering the concept of the [Langford Basilisk]. Let this neat picture explain it:
![The Parrot](/pigs/parrot.jpg)
<%= image("parrot.jpg", "The Parrot") %>
A Langford Basilisk is a genuinely dangerous idea. In its original form, it works through making the brain think an impossible thought - essentially setting off a logic bomb. I don't believe that the human brain is actually susceptible to this kind of attack, but a poorly designed AI might be. Rergardless, there are other forms of Basilisks, some of which I actually know to work (under certain conditions).
@ -58,7 +58,7 @@ approach.
So let's draft a little catalogue of memetic hazards.
![Memetically Active](/pigs/memetically_active.jpg)
<%= image("memetically_active.jpg", "Memetically Active") %>
Structural Hijacking
--------------------

View File

@ -5,13 +5,7 @@ techne: :rough
episteme: :broken
---
<div align="center"><object width="420" height="315"><param name="movie"
value="http://www.youtube.com/v/PZBqsqvfj0Y"></param><param
name="allowFullScreen" value="true"></param><param name="allowscriptaccess"
value="always"></param><embed
src="http://www.youtube.com/v/PZBqsqvfj0Y"
type="application/x-shockwave-flash" width="420" height="315"
allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<%= youtube("http://www.youtube.com/v/PZBqsqvfj0Y") %>
We know that the crucifixion of Christ is a myth[^1]. We also know that it isn't
unique; there are plenty of life-death-rebirth gods. The theme goes back to at
@ -272,14 +266,7 @@ overcoming of death. In no meaningful way does Jesus die; his body dies, but the
transformation continues independent of it, as we will see now. In stark
contrast to Mark, John continues after Jesus' death.
<div align="center">
<object width="480" height="327"><param name="movie"
WWvalue="http://www.dailymotion.com/swf/video/xnryl" /><param
name="allowFullScreen" value="true" /><param name="allowScriptAccess"
value="always" /><embed type="application/x-shockwave-flash" width="480"
height="327" src="http://www.dailymotion.com/swf/video/xnryl"
allowfullscreen="true" allowscriptaccess="always"></embed></object>
</div>
<%= dailymotion("http://www.dailymotion.com/swf/video/xnryl") %>
> Now very early on the first day of the week, while it was still dark, Mary
> Magdalene came to the tomb and saw that the stone had been moved away from the
@ -338,7 +325,7 @@ The crucifixion is a Rorschach blot of the psyche.
>
> -- Dr. Malcolm Long, Watchmen
![](/pigs/rorschach.jpg)
<%= image("rorschach.jpg", "Rorschach") %>
[^1]: [Robert M. Price][], yada yada, Christ myth proponents not convincing? Do
you also believe in Oz? If not, how about Hercules? If you understand why

View File

@ -5,7 +5,7 @@ techne: :rough
episteme: :believed
---
![](/pigs/backup.jpg)
<%= image("backup.jpg", "backup ALL THE THINGS!") %>
So, I spent two hours today and further [gwernified][Gwern URL] my life. Seems like a good time to summarize my backup strategy. Maybe it inspires someone to save more of their own data. As the saying goes, nobody wants backup, but everybody wants restore.

View File

@ -115,7 +115,7 @@ fastest, and most reliable components are those that aren't there.".
By concentrating not on *how*, but on *what*, false
desires disappear. By letting go off false desires, suffering ends.
![Guru Meditation](/pigs/guru.png)
<%= image("guru.png", "Guru Meditation") %>
[^0]: Yeah, I have been reading Buddhist philosophy and history
again. Can you tell?

45
lib/embed.rb Normal file
View File

@ -0,0 +1,45 @@
require 'image_size'
def image(name, title="")
img = ImageSize.new IO.read("content/pigs/#{name}")
"<img src='/pigs/#{name}' height='#{img.height}' width='#{img.width}' title='#{title}' alt='#{title}'/>"
end
def youtube(url)
<<EOL
<div align="center">
<object width="420" height="315">
<param name="movie" value="#{url}"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="#{url}" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
</div>
EOL
end
def dailymotion(url)
<<EOL
<div align="center">
<object width="480" height="327">
<param name="movie" WWvalue="#{url}" />
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<embed type="application/x-shockwave-flash" width="480" height="327" src="#{url}" allowfullscreen="true" allowscriptaccess="always"></embed>
</object>
</div>
EOL
end
def google_video(url)
<<EOL
<div align="center">
<object id="VideoPlayback" style="width: 400px; height: 326px;" width="100" height="100" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="src" value="#{url}" />
<param name="allowfullscreen" value="true" />
<embed id="VideoPlayback" style="width: 400px; height: 326px;" width="100" height="100" type="application/x-shockwave-flash" src="#{url}" allowfullscreen="true" />
</object>
</div>
EOL
end