seb.cato | 22 May 2013 20:37
Picon

SV: Why HTTP is so bad?

I don't know about the author, but I think the whole web application stack of today is overly complex. 

Auth can be done in request headers, POST-data or even as a part of the URI in a GET request, if you want to. 

HTTP state management... You know, GET requests were supposed to not have any effect on state, yet cookies can be rendered invalid at any point during an HTTP session. As a human, it's pretty easy to know the difference because the webapp tells you most of the time, but managing state as a computer can be quite a complex task. And sometimes, it's all server-side! No cookies, or a "dumb" cookie only used to associate the user agent with a certain server-side state. 

The DOM (not HTTP, but while we're at it) is a PITA too. To load a resource and build its DOM is far from trivial if you want full support. And don't forget to support VBScript as an alternative to ECMAScript...

URI's are fun too. Even the regex in one of the RFCs doesn't cover all the edge cases. Oh hey, look. An IPv6 link local URI... whoopie...

I'm not a hater most of the time though. HTTP and by extension the web is quite organic. It's like a rain forest. There's a lot of things in there, and a lot of it is redundant and some things serves no real purpose, but at the same time the bio-diversity is wonderful.

//Cato

Skickat från min Samsung Mobil



-------- Originalmeddelande --------
Från: Szymon Olewniczak <szymon.olewniczak <at> rid.pl>
Datum:
Till: dev <at> suckless.org
Rubrik: [dev] Why HTTP is so bad?


On the http://harmful.cat-v.org/software/ I've found very interesting
statment about HTTP: "or best of all: don't use HTTP". Can someone
explain me why the author claims that? What is bad in http?

Regards,
Szymon

Szymon Olewniczak | 22 May 2013 19:27
Picon
Favicon
Gravatar

Why HTTP is so bad?

On the http://harmful.cat-v.org/software/ I've found very interesting
statment about HTTP: "or best of all: don't use HTTP". Can someone
explain me why the author claims that? What is bad in http?

Regards,
Szymon

G David Modica | 22 May 2013 02:52

[st] problem reading man pages

Hi, 

I just noticed that man pages are not rendered properly under st-0.4.1 tip.
For example in "man st" the SYNOPSYS line shows as:
       st  [-a]  [-c       ] [-f     ] [-g         ] [-o     ] [-t      ] [-w         ] [-v] [-e        ...]

st-0.3 shows the line as:
       st  [-a]  [-c  class] [-f font] [-g geometry] [-o file] [-t title] [-w windowid] [-v] [-e command...] 
(actually class, font, etc are all underlined)

xterm shows the same thing.

Is there a bug in st-0.4.1 or have I mis-configured something?

Regards,
David

Christoph Lohmann | 21 May 2013 21:30

[surf] new commandline flag syntax

Greetings comrades,

the surf repository now has a new common way to handle to enable or dis‐
able features. The only direct change of the meaning is  ‐k,  which  now
disables kiosk mode.

Upper case: enable feature
Lower case: disable feature

Sincerely,

Christoph Lohmann

David Dufberg Tøttrup | 18 May 2013 18:24
Picon

[tabbed] buttonpress on border bug

tabbed recieves buttonpress events on the border, with a negative x value. 
The consequence is that tabbed interprets this as a press on the leftmost 
item in the tab bar. Patch attached.

Sincerely,
David

hiro | 16 May 2013 13:09
Picon

gettext-stub

http://penma.de/code/gettext-stub/

Martin Miller | 16 May 2013 01:44

[dwm] Running dwm in KDE

When I'm on school computers, I run dwm on top of gnome by doing
something like: 
pkill -9 metacity && dwm
And then I have some rules set to move all the taskbars and things to
workspace 9. It works pretty well.

I've been given a laptop for work that's running Kubuntu. In the KDE
world is there something similar to metacity that I can kill so that I
can start dwm? 

--

-- 
Martin Miller
witsquash.com

matti christensen | 15 May 2013 10:28
Picon
Picon
Favicon

trying to get surf working on Raspberry pi

Hello

i've been building my Raspberry pi system for months now using
http://crux-arm.nu/SupportedDevices/Raspberrypi as base. crux has only
minimal stuff to build on and thus is the best system for me ( it is
really difficult to find minimalist enough system now-a-days ).

i've buit x.org, git, dwm, st and some other things - removed udev and
using devtmpfs, edited startup scripts for my taste ( only some rc.*
files, no directories, etc.).

i also built webkitgtk-2.0.1 with only webkitgtk1 ( and glib, cairo,
atk, gnutls, openssl, gstreamer, gtk2, ....) but surf only gives me
'segmentation' error - no idea why = nothing on syslog, etc...

/mc
---keep-IT-simple---

Thuban | 13 May 2013 18:17
Picon
Gravatar

upload via html?

Hi suckless users,
I was wondering what tool or method you would use to purpose simple file
upload on your server (via an html form as example)? CGI? PHP? Other?

Regards,
--

-- 
 ,--.
: /` )   Xavier Cartron
| `-'    
 \_
j. van den hoff | 11 May 2013 17:14

surf: typo in manpage

hopefully the right way to report this. applying the following patch the  
manpage formats as it should:

8<-----------------------------------
diff --git a/surf.1 b/surf.1
index 89276a0..4f66ca9 100644
--- a/surf.1
+++ b/surf.1
 <at>  <at>  -103,7 +103,7  <at>  <at>  Zooms page out
  .B Ctrl\-Shift\-q
  Resets Zoom
  .TP
-.B Ctrl\-f and Ctrl\-\\
+.B Ctrl\-f and Ctrl\-/
  Opens the search-bar.
  .TP
  .B Ctrl\-n
8<-----------------------------------

currently, the corresponding line renders as "Ctrl-f and Ctrl-" when  
calling `man surf'

j.

Johannes Hofmann | 9 May 2013 23:42
Picon
Picon

st slow startup

Hi,

as others also have noticed, Xft based st starts slow on some
systems. For me it helps if FcFontSort() is done lazily as shown
below.

Regards,
Johannes

diff --git a/st.c b/st.c
index 50090a4..425f669 100644
--- a/st.c
+++ b/st.c
 <at>  <at>  -2643,10 +2643,7  <at>  <at>  xloadfont(Font *f, FcPattern *pattern) {
 	if(!match)
 		return 1;

-	if(!(f->set = FcFontSort(0, match, FcTrue, 0, &result))) {
-		FcPatternDestroy(match);
-		return 1;
-	}
+	f->set = NULL;

 	if(!(f->match = XftFontOpenPattern(xw.dpy, match))) {
 		FcPatternDestroy(match);
 <at>  <at>  -2666,6 +2663,16  <at>  <at>  xloadfont(Font *f, FcPattern *pattern) {
 	return 0;
 }

+int
+xloadfontset(Font *f) {
+	FcResult result;
+
+	if(!(f->set = FcFontSort(0, f->pattern, FcTrue, 0, &result))) {
+		return 1;
+	}
+	return 0;
+}
+
 void
 xloadfonts(char *fontstr, int fontsize) {
 	FcPattern *pattern;
 <at>  <at>  -2987,7 +2994,6  <at>  <at>  xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
 	r.width = width;
 	XftDrawSetClipRectangles(xw.draw, winx, winy, &r, 1);

-	fcsets[0] = font->set;
 	for(xp = winx; bytelen > 0;) {
 		/*
 		 * Search for the range in the to be printed string of glyphs
 <at>  <at>  -3045,6 +3051,10  <at>  <at>  xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {

 		/* Nothing was found. */
 		if(i >= frclen) {
+			if (!font->set)
+				xloadfontset(font);
+			fcsets[0] = font->set;
+
 			/*
 			 * Nothing was found in the cache. Now use
 			 * some dozen of Fontconfig calls to get the


Gmane