about summary refs log tree commit diff stats
path: root/util.c
blob: 0a5bd96e1fde45858b99b44d396ca0452e015a13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
 * See LICENSE file for license details.
 */

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>

#include "wm.h"

void
error(const char *errstr, ...) {
	va_list ap;
	va_start(ap, errstr);
	vfprintf(stderr, errstr, ap);
	va_end(ap);
	exit(1);
}

static void
bad_malloc(unsigned int size)
{
	fprintf(stderr, "fatal: could not malloc() %d bytes\n",
			(int) size);
	exit(1);
}

void *
emallocz(unsigned int size)
{
	void *res = calloc(1, size);
	if(!res)
		bad_malloc(size);
	return res;
}

void *
emalloc(unsigned int size)
{
	void *res = malloc(size);
	if(!res)
		bad_malloc(size);
	return res;
}

void *
erealloc(void *ptr, unsigned int size)
{
	void *res = realloc(ptr, size);
	if(!res)
		bad_malloc(size);
	return res;
}

char *
estrdup(const char *str)
{
	char *res = strdup(str);
	if(!res)
		bad_malloc(strlen(str));
	return res;
}

void
swap(void **p1, void **p2)
{
	void *tmp = *p1;
	*p1 = *p2;
	*p2 = tmp;
}

void
spawn(char *argv[])
{
	if(!argv || !argv[0])
		return;
	if(fork() == 0) {
		if(fork() == 0) {
			if(dpy)
				close(ConnectionNumber(dpy));
			setsid();
			execvp(argv[0], argv);
			fprintf(stderr, "dwm: execvp %s", argv[0]);
			perror(" failed");
		}
		exit (0);
	}
	wait(0);
}
"art.html#AVERELL">Sue Averell</A> &#160; &#160; &#160; <A HREF="art.html#HARCOS">Bela Harcos</A> &#160; &#160; &#160; <A HREF="art.html#DION">David Dion</A> <P>&#160; &#160; &#160; <A HREF="art.html#PETYARRE">Kathleen Petyarre</A> &#160; &#160; &#160; <A HREF="art.html#REYES">Fernando Reyes</A> &#160; &#160; &#160; <A HREF="art.html#CORNING">Judith Corning</A> &#160; &#160; &#160; <A HREF="art.html#WEBER">Kay Weber</A> <P>The pictures on this page really don't do justice at all to the actual artwork. (To make good photos of art that's framed behind glass, as is most of my collection, you have to un-frame it, so as not to see reflections, and you have to have your camera on a tripod. I don't have a tripod and I don't trust myself to get the artwork back together properly afterwards, so I just found the least glare-filled spot in my house and put the framed works there. So I got dim and crooked pictures, which I then tweaked digitally to the best of my poor ability.) Just use your imagination, and then follow the links below to see some professionally done web pages of these artists' works. <P>According to the EFF, the court ruling in the ditto.com case says that posting "thumbnails" of images is fair use under the copyright act, but linking to full-size images in a separate window isn't. So I have reason to hope this page is legal! <P><A NAME="LEBA">&#160; &#160; &#160; <P><B>Lebadang</B> is a Vietnamese artist who lived in France until his recent death. What you can't see very well in these photos (but try zooming in!) is that an important part of his work is using custom-sculpted paper, with designs raised, especially in the white areas you see here. Many of those images are of family groups. So, while these are multiple-original works, to call them "prints" suggests an image that doesn't do them justice. Lebadang also did paint-on-canvas works, sculptures, and rugs (as shown below) in the same 3-D style. <P><IMG LENGTH=30% SRC="art/LebaTall.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/LebaBlue.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/LebaRed.jpg"> <P><IMG LENGTH=30% SRC="art/Leblitho.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Leboffice.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Lebrug.jpg"> <P>To see more: <A HREF="http://viettouch.com/lebadang/">http://viettouch.com/lebadang/</A> <P>&#160; &#160; &#160; <P><A NAME="RIFE">&#160; &#160; &#160; <P><B>Jon Rife</B> is a San Francisco artist. He's very interested in textures, and I'm fascinated by the way he can represent textures in a flat monoprint, most of which is lost on you in these bad reproductions. (A monoprint is made by painting onto a smooth surface, glass or metal, and then transferring the paint onto paper in a press.) Rife's more recent works include both direct paint-to-canvas and the integration of digital imagery with his painting. The <A HREF="index.html#CSLS">covers</A> of my <CITE>Computer Science Logo Style</CITE> books are taken from three of his works. <P><IMG LENGTH=30% SRC="art/RifeOil.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/RifeLeft.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/RifeRight.jpg"> <P><IMG LENGTH=30% SRC="art/RifeOld.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Rife3474.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Rife3603.jpg"> <P>To see more: <A HREF="http://www.jonrife.com/">http://www.jonrife.com/</A> <P>&#160; &#160; &#160; <P><A NAME="FARB">&#160; &#160; &#160; <P><B>Gerta Farber</B> is a local artist, living in Oakland, who does mostly watercolors on a range of subjects: landscapes, portraits, and abstracts. Here we see a California mission church (the first original artwork I ever bought!), a house, and some semi-abstract trees. <P><IMG LENGTH=30% SRC="art/FarbMiss.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/FarbHouse.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/FarbTrees.jpg"> <P>Alas, her artwork seems to have disappeared from the Web since she retired, so I can't give a link. <P>&#160; &#160; &#160; <P><A NAME="VOIGT">&#160; &#160; &#160; <P><B>David Voigt</B> is an Australian artist whose work I find interesting partly because of the way he depicts motion (the birds' flight, the wind, the river). He mostly does landscapes from nature. These are watercolors; he also does even more dramatic acrylic paintings. <P><IMG LENGTH=30% SRC="art/VoigtDry.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/VoigtHills.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/VoigtTree.jpg"> <P>To see more: <A HREF="http://www.davidvoigt.com/">http://www.davidvoigt.com/</A> <!-- <A HREF="http://www.breewood.com.au/exhibition4/firstEX4.htm">http://www.breewood.com.au/exhibition4/firstEX4.htm</A> --> <P>&#160; &#160; &#160; <P><A NAME="HOLDSWORTH">&#160; &#160; &#160; <P><B>Anthony Holdsworth</B> is a local artist, living in Oakland, who does very realistic acrylic paintings. My favorites are his urban landscapes featuring careful attention to the actual street surfaces, but he also loves to paint the Italian countryside. <P><IMG LENGTH=30% SRC="art/Holdsworth1.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Holdsworth2.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Holdsworth3.jpg"> <P>To see more: <A HREF="http://www.anthonyholdsworth.com/">http://www.anthonyholdsworth.com/</A> <P>&#160; &#160; &#160; <P><A NAME="AVERELL">&#160; &#160; &#160; <P><B>Sue Averell</B> is a local Marin County artist who paints very dramatic acrylic semi-realistic works. I love the freedom in her style, and the bold, thick blocks of color. <P><IMG LENGTH=30% SRC="art/Averell1.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Averell2.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Averell3.jpg"> <P>To see more: <A HREF="http://www.sueaverell.com/">http://www.sueaverell.com/</A> <P>&#160; &#160; &#160; <P><A NAME="HARCOS">&#160; &#160; &#160; <P><B>Bela Harcos</B> is a San Francisco artist who paints very vibrant abstract acrylics. I love the colors and the textures! He's also a sculptor. <P><IMG LENGTH=30% SRC="art/Harcos1.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Harcos2.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Harcos3.jpg"> <P>To see more: <A HREF="http://www.evolvingartgallery.com/artist_harcos_bela.htm">http://www.evolvingartgallery.com/artist_harcos_bela.htm</A> <P>&#160; &#160; &#160; <P><A NAME="DION">&#160; &#160; &#160; <P><B>David Dion</B> is a San Francisco sculptor who works in wood and plastics. He makes tabletop-sized fantasy buildings, boats, and things I'm not sure about! <P><IMG LENGTH=30% SRC="art/Dion1.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Dion2.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Dion3.jpg"> <P>To see more: <A HREF="http://www.mesart.com/artworks.jsp.que.artist.eq.987.shtml">http://www.mesart.com/artworks.jsp.que.artist.eq.987.shtml</A> <P>&#160; &#160; &#160; <P><A NAME="PETYARRE">&#160; &#160; &#160; <P><B>Kathleen Petyarre</B> is one of the most famous living Australian Aboriginal artists. I confess that most Aboriginal art leaves me cold, but the artists in the Utopia region are an exception, and the greatest of those (imho) is Kathleen Petyarre. Her work has a depth that I can stare at for hours. The pictures tell stories at several levels, but I know next to nothing about that, I'm afraid. <P><IMG LENGTH=30% SRC="art/Kathleen1.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Kathleen2.jpg">&#160; &#160; &#160; <P>To see more: <A HREF="http://www.gallerieaustralis.com/aspx/kathleen_petyarre.aspx">http://www.gallerieaustralis.com/aspx/kathleen_petyarre.aspx</A> <BR><A HREF="http://www.aboriginalartstore.com.au/artists/kathleen-petyarre.php">http://www.aboriginalartstore.com.au/artists/kathleen-petyarre.php</A> <BR><A HREF="http://www.aboriginalartdirectory.com/artists/slideshow/kathleen-petyarre/">http://www.aboriginalartdirectory.com/artists/slideshow/kathleen-petyarre/</A> <P>&#160; &#160; &#160; <P><A NAME="REYES">&#160; &#160; &#160; <P><B>Fernando Reyes</B> is an Oakland artist who does landscapes and thoughtful portraits in addition to his works in the style shown here, my favorites, featuring parts of people's bodies overlayed in interesting patterns. <P><IMG LENGTH=30% SRC="art/Reyes5.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Reyes6.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Reyes1.jpg">&#160; &#160; &#160; <P>To see more: <A HREF="http://www.freyesart.com">http://www.freyesart.com</A> <P>&#160; &#160; &#160; <P><A NAME="CORNING">&#160; &#160; &#160; <P><B>Judith Corning</B> lives a block away from me! She does these gorgeous, detailed nature paintings in acrylic, among other styles. <P><IMG LENGTH=30% SRC="art/Corning1.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Corning2.jpg">&#160; &#160; &#160; <P>To see more: <A HREF="http://judithcorning.com/">http://judithcorning.com/</A> <P>&#160; &#160; &#160; <P><A NAME="WEBER">&#160; &#160; &#160; <P><B>Kay Weber</B> is in San Francisco. He does these very intricate paper cutouts; the ones in these pictures are made from gift wrap paper. He also volunteers some of his time teaching art to teenagers, several of whom tend to pop in during his Open Studios stints, which is fun. <P><IMG LENGTH=30% SRC="art/Weber1.jpg">&#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Weber2.jpg">&#160; &#160; &#160; <P>To see more: <A HREF="http://www.kayweberartstudio.com">http://www.kayweberartstudio.com/</A> <P>&#160; &#160; &#160; <P><A NAME="SOUVENIRS">&#160; &#160; &#160; <H2>Souvenirs of exotic places</H2> <P>The cities mentioned below are where I bought the artworks, which may not be exactly where the artist lives and works. (For example, Jan Neil's studio is in Melbourne, but I bought this piece at a gallery in Darwin.) In a couple of cases I was unable to find a web link. <P>&#160; &#160; &#160; <P>From Bratislava, Slovakia (artist: Igor Piacka) <P><IMG LENGTH=30% SRC="art/Piacka.jpg"> <P>To see more: <A HREF="http://piacka.com/igor/malba_2008.php">http://piacka.com/igor/malba_2008.php</A> <P>&#160; &#160; &#160; <P>From Berlin, Germany (artist: Falko Behrendt) <P><IMG LENGTH=30% SRC="art/Behrendt.jpg"> <P>To see more: <A HREF="http://www.kunstmarkt.de/pagesjob/falko_behrendt/_i74070-/kunst_kaufen.html?words=Behrendt,+Falko">http://www.kunstmarkt.de/pagesjob/falko_behrendt/_i74070-/kunst_kaufen.html?words=Behrendt,+Falko</A> <P>&#160; &#160; &#160; <P>From Birmingham, England (artist: M. Hazel Mason) <P><IMG LENGTH=30% SRC="art/Mason.jpg"> <P>&#160; &#160; &#160; <P>From Darwin, Australia (artist: Jan Neil) <P><IMG LENGTH=30% SRC="art/Neil.jpg"> <P>To see more: <A HREF="http://www.janneilozimages.com.au/gallery.htm">http://www.janneilozimages.com.au/gallery.htm</A> <P>&#160; &#160; &#160; <P>From Reykjavik, Iceland (artist: Sigrun Eldjarn) <P><IMG LENGTH=30% SRC="art/Eldjarn.jpg"> <P>To see more (but in a very different style): <A HREF="http://www.sim.is/Index/Islenska/Artotek/Listamadur/110">http://www.sim.is/Index/Islenska/Artotek/Listamadur/110</A> <P>&#160; &#160; &#160; <P>From Toronto, Canada (artist: Gino Hollander) <P><IMG LENGTH=30% SRC="art/Hollander.jpg"> <P>To see more: <A HREF="http://www.hollanderart.com/sitepages/pid14.php">http://www.hollanderart.com/sitepages/pid14.php</A> <P>&#160; &#160; &#160; <P>From Warsaw, Poland (artist: A. Urbaniak) <P><IMG LENGTH=30% SRC="art/Urbaniak.jpg"> <P>&#160; &#160; &#160; <P>From Bergen, Norway (artists: Kristian Finborud, Svein Bolling) <P><IMG LENGTH=60% SRC="art/Finborud.jpg"> &#160; &#160; &#160; <IMG LENGTH=30% SRC="art/Bolling.jpg"> <P>To see more: <A HREF="http://www.finborud.no/">http://www.finborud.no/</A><br> <A HREF="http://www.artnet.com/artists/svein-bolling/">http://www.artnet.com/artists/svein-bolling/</A> <P>&#160; &#160; &#160; <P>From Vilnius, Lithuania (artist: Valentinas Ajauskas) <P><IMG SRC="art/Ajauskas.jpg"> <P>To see more: <A HREF="https://www.paveikslai.lt/en/416_valentinas-ajauskas">https://www.paveikslai.lt/en/416_valentinas-ajauskas</A> <P>&#160; &#160; &#160; <P><ADDRESS> <A HREF="index.html"><CODE>www.cs.berkeley.edu/~bh</CODE></A> </ADDRESS> </BODY> </HTML>