Simple diode clippers and distortion circuits
Posted 2007-08-23 in Effects by Johann.
Diodes are fun. They’ll readily distort your guitar signal like there’s no tomorrow and most are cheap, too. Diodes come in all shapes and sizes but the following general types are most used in guitar effects pedals.
I’m building octavers with lots of diodes here.
Dial “D” for diodes!
- Metal Simplex. (From diystompboxes.com)
- Electra Distortion. It doesn’t get much simpler. Sound clips.
- Bazz Fuss/BazzFuss. One transistor, one diode. Simple, but popular with bassists. Sound clips. (From HC CH)
- Buzz Box/BuzzBox. Twice the Bazz Fuzz for – more fun!
- The Bronx cheer. (From Guitar Effects)
- Atmos. My Green Ringer variant that was modified for a ton of LED distortion (if you want it).
With the exception of the Atmos, these DIY circuits are all really simple and shouldn’t take much longer than half an hour to build. Have fun!
DynaCloud - a dynamic JavaScript tag/keyword cloud with jQuery
Posted 2007-08-06 in JavaScript by Johann.
DynaCloud is a jQuery plugin that generates tag or keyword clouds from text on web pages and highlights matching parts once a keyword is clicked.
Demo
Usage
Add DynaCloud
Download the jquery.dynacloud-5.js JavaScript (6 KB) and add it to your web page. A YUI compressed version (4 KB) is also available.
Add class attributes
Add the dynacloud
class to all of the elements you want to have keywords generated from.
<div id="text" class="dynacloud"> (your content) </div> <p class="dynacloud"> (more content) </p>
Create the target element
(Optional) Create an element with an id
attribute of dynacloud
. The tags will be filled into this element. If the element doesn’t exist, an empty paragraph will be created at the end of the document.
<div id="dynacloud"></div>
Style the highlight class
Create an entry in your style sheet for the highlight
class.
.highlight { background-color: yellow }
Manual creation of tag clouds
Tag clouds can be generated dynamically using the dynaCloud
method.
$("p.someclass").dynaCloud();
Custom Output Element
DynaCloud will be default create the tag cloud in an element with an id
attribute of dynacloud
. An optional parameter of the dynaCloud
method can be used to specify a different output element.
$('#text').dynaCloud('#tagCloud');
Customization
Several aspects of DynaCloud can be customized.
Stopwords
DynaCloud filters out frequently occuring words like this, I or the (so-called stopwords). You can edit the list of stopwords by modifying or replacing the $.dynacloud.stopwords
array.
$.merge($.dynacloud.stopwords, [ "der", "die", "das" ]);
Limiting the number of tags
DynaCloud will generate 20 tags at most. You can change this maximum by setting the $.dynaCloud.max
property. If you set it to -1
, the number of tags is unlimited.
$.dynaCloud.max = 42;
Sorting tags
DynaCloud will sort the tags first by descending frequency, then alphabetically. You can turn sorting off by setting the $.dynaCloud.sort
property to false
.
$.dynaCloud.sort = false;
Automatic generation of tag clouds
When the document has finished loading, DynaCloud automatically scans your document for elements with a class name of dynacloud
. To create tag clouds manually, set $.dynaCloud.auto
property to false
.
$.dynaCloud.auto = false;
Allowing only one active tag
By setting the $.dynaCloud.single
property to false
, more than one tag can be selected.
$.dynaCloud.single = false;
Using wordStats if available
DynaCloud will use wordStats to calculate the topic of a web page if available. This behavior can be turned off by setting the $.dynaCloud.wordStats
property to false
.
$.dynaCloud.wordStats = false
Note that wordStats iterates over p
, h1
and other elements of the DynaCloud element. Whereas the following HTML will work when using DynaCloud alone
<p class="dynacloud">Hello bla bla</p>
it will not work when using wordStats. WordStats needs child elements, like this
<div class="dynacloud"> <p>Hello bla bla</p> </div>
Changelog
- 2009-02-22: Bugfix for one or two strange problems with IE.
- 2008-09-26: Added custom output element, support for German Umlauts. Explained wordStats usage.
- 2008-06-04: Bugfix for incorrect DOM normalization. Thanks Georgy.
- 2007-08-24. Better jQuery integration and wordStats support.
- 2007-08-06. Initial release.
Credits
- The list of stopwords was taken from the Perseus English Index.
- Text highlighting for Mozilla and Opera was adapted from the Text and Data Bookmarklets page.
17 comments
Simple virtual hosts (vhosts) with lighttpd
Posted 2007-08-02 in WWW by Johann.
lighttpd, the up-and-coming webserver, offers simple virtual hosts. Here’s how to do it.
Create your root directory
This is the directory all your websites will be stored under.
$ pwd /var $ mkdir www
Create folders for your virtual hosts/websites
For each virtual host, create a directory under the root directory. Do not create directories starting with www.
– these prefixed will be removed.
$ cd www $ mkdir rofl.info $ mkdir blab.la $ mkdir lm.ao
Upload your websites
Well… upload them.
Set the root directory in lighttpd
Open lighttpd.conf
and set the var.basedir
variable.
# pwd /var/www/ # cd /etc/lighttpd # nano lighttpd.conf
var.basedir = "/var/www"
Set up virtual hosts
In lighttpd.conf
set the evhost.path-pattern
key accordingly.
evhost.path-pattern = var.basedir + "/%0/"
Done
Just restart lighttpd or reload its configuration and you’re done. lighttpd will now distribute the requests based on the Host
header to the different directories. Because we used %0
, prefixes (like www.
or w.
) will be stripped.
Where to go from here
If you use an application server like Orion, I suggest reading lighttpd and Java application servers: integrating JSP and Servlets to integrate lighttpd with Java application servers.
How to test Mobile Style Sheets
Posted 2007-07-27 in Mobile Web by Johann.
Not everybody uses an iPhone to surf the web. There are billions of other cellphones around. Most of them have browsers installed, but will your website work in it?
If you want to make your website ready for mobile usage, you’ll find the following list of mobile browser emulators useful.
OpenWave browsers
OpenWave browsers are a popular choice and their latest version is offering some decent CSS rendering.
You can download several versions of their phone simulator (free registration required).
Motorola browsers
Looking at their emulators, I would think that Motorola’s built-in mobile browsers barely deserve the title “browsers.” The emulators suffer from FUC and severe size limits, but hey, they’re free. CSS support is experimental at best, I would say.
- MOTODEV developer site.
- MOTODEV > Search Results for “ADK.” From this page, just download all ADKs, like this one or this one (free registration required).
Opera
As a web developer, you have Opera.
Just press Shift + F11
and you’ll switch to “small-screen rendering.”
It’s worth noting that, as of now, you should try the small-screen rendering with version 8 Operas (although I am unsure how Opera synchronizes their version numbers) because version 9 of the Opera Mobile Browser isn’t out yet.
Microsoft Windows Mobile
Windows Mobile also comes with some useful browser options. You can try using the built-in IEMobile, Opera or NetFront.
At the rate older Windows Mobile 5.0 devices are going for, you should buy one just for tests. I have an XDA mini that’s going for around 150 €.
Pages
Page 15 · Page 16 · Page 17 · Page 18 · Page 19 · Page 20 · Page 21 · Next Page »
Subscribe
RSS 2.0, Atom or subscribe by Email.
Top Posts
- DynaCloud - a dynamic JavaScript tag/keyword cloud with jQuery
- 6 fast jQuery Tips: More basic Snippets
- xslt.js version 3.2 released
- xslt.js version 3.0 released XML XSLT now with jQuery plugin
- Forum Scanners - prevent forum abuse
- Automate JavaScript compression with YUI Compressor and /packer/