[dev] [sent] initialize .img

2015-11-08 Thread Szabolcs Nagy
without the attached patch ./sent example segfaults here diff --git a/sent.c b/sent.c index 1b3b8f2..fb0b56e 100644 --- a/sent.c +++ b/sent.c @@ -394,6 +394,8 @@ void load(FILE *fp) die("cannot strdup %u bytes:", strlen(buf)+1); if (slides[i].text[0] == '@') slides[i].img = pngopen(slide

Re: [dev] [st] Problem linking in OpenBSD

2014-07-10 Thread Szabolcs Nagy
* Dimitris Papastamos [2014-07-09 07:10:57 +0100]: > On Wed, Jul 09, 2014 at 01:16:05AM +0200, FRIGN wrote: > > On Tue, 8 Jul 2014 22:45:15 +0200 > > "Roberto E. Vargas Caballero" wrote: > > > > > cannot find -lrt > > > > The fix is rather trivial: Just remove the damn -lrt. > > Seriously: On O

Re: [dev] C coded cross-platform youtube video viewer

2014-06-06 Thread Szabolcs Nagy
* hiro <23h...@gmail.com> [2014-06-03 21:05:23 +0200]: > choose a stream, meaning of itags is on wikipedia article of youtube. > wget -q -O - 'http://www.youtube.com/watch?v=Ux1Za8Wmz_s'|sed > 's/"/\n/g; s/\\u0026/ /g; s/,/\n/g'|sed -n > '/url_encoded_fmt_stream_map/,/^$/p; /adaptive_fmts/,/^$/p' >

Re: [dev][ubase] Implement switch_root

2014-04-16 Thread Szabolcs Nagy
* Dimitris Papastamos [2014-04-15 17:57:25 +0100]: > On Tue, Apr 15, 2014 at 06:44:54PM +0200, Markus Wichmann wrote: > > Why switch_root and not pivot_root? Here's a sh mockup of how to do what > > you wrote with pivot_root: > > > > set -e > > new_root=$1 > > put_old=$2 > > [ -d $put_old ] || ma

Re: [dev] What is bad with Python

2014-03-04 Thread Szabolcs Nagy
* Silvan Jegen [2014-03-04 21:30:47 +0100]: > On Tue, Mar 04, 2014 at 08:56:18PM +0100, Szabolcs Nagy wrote: > > dont expect fast opengl access from go) and you cannot really > > use it for quick scripting tasks > > Why should Go not be suited for quick scripting tasks? I u

Re: [dev] What is bad with Python

2014-03-04 Thread Szabolcs Nagy
* Silvan Jegen [2014-03-04 14:27:26 +0100]: > On Tue, Mar 4, 2014 at 9:25 AM, FRIGN wrote: > > A question to everyone on this list: What do you think about the > > Go-language? > > I used Python for all my scripting needs before Golang hit version 1.0 i hear this a lot and don't quite understan

Re: [dev][PATCH][quark] Clean up the log-facility

2014-03-03 Thread Szabolcs Nagy
* FRIGN [2014-03-03 19:39:13 +0100]: > +static void log(int type, const char *errstr, ...); note that stdlib.h may include math.h which declares log with a different type such namespace issues can be fixed by using another name or #undef log #define log quark_log after the header includes an

Re: [dev] XML vs HTML (was: Article about suckless on root.cz)

2014-02-21 Thread Szabolcs Nagy
* FRIGN [2014-02-21 12:03:00 +0100]: > I really don't see your point why exactly XML should be bad for the > web. > If you write proper, well-formed markup, nothing really changes for > you, except that the browser _knows_ it's dealing with proper markup > and doesn't have to "fire up" it's forgiv

Re: [dev] Announcing sinit - the suckless init

2014-02-09 Thread Szabolcs Nagy
* sin [2014-02-07 21:26:11 +]: > On Fri, Feb 07, 2014 at 05:26:54PM +0100, Szabolcs Nagy wrote: > > note that strake got that init code is from Rich Felker > > and there is more to it than that code.. (you may find > > related discussions on the musl mailing list archive

Re: [dev] Announcing sinit - the suckless init

2014-02-07 Thread Szabolcs Nagy
* sin [2014-02-06 12:32:59 +]: > As part of experimenting with a toy distro I wanted to get rid of > busybox's init, so I hacked together sinit[1]. sinit is based on Strake's > init[2]. note that strake got that init code is from Rich Felker and there is more to it than that code.. (you may

Re: [dev] [sbase] [patch] Add strlcpy()/strlcat() + refactor recurse()

2014-01-30 Thread Szabolcs Nagy
* Bobby Powers [2014-01-30 09:38:23 -0800]: > On MacOS 10.9, strlcat and strncat are defined as macros, and adding > them to sbase breaks the builds. I'm not sure what the easy/nice > solution is. Error is below. all standard interfaces may be also defined as macros so this is nothing special (

Re: [dev] [PATCH][RFC] Add a basic version of tr

2014-01-15 Thread Szabolcs Nagy
* Silvan Jegen [2014-01-15 22:32:28 +0100]: > On Wed, Jan 15, 2014 at 09:36:07PM +0100, Szabolcs Nagy wrote: > > > +handleescapes(char *s) > > > +{ > > > + switch(*s) { > > > + case 'n': > > > + *s = '\x0A';

Re: [dev] [PATCH][RFC] Add a basic version of tr

2014-01-15 Thread Szabolcs Nagy
* Silvan Jegen [2014-01-15 20:43:54 +0100]: > Note, though, that GNU's tr does not seem to handle Unicode at all[1] > while this version of tr, according to "perf record/report", seems to > spend most of its running time in the Unicode handling functions of glibc. multi-byte string decoding is kn

Re: [dev] Suckless remote shell?

2013-11-08 Thread Szabolcs Nagy
* Alexander S. [2013-11-08 08:22:37 +0400]: > There seems to be some misunderstanding about what is type-safety and > when checks are made. as i said this static type-checking fantasy does not work without runtime type information, not because you need any further checks at runtime, but because e

Re: [dev] Suckless remote shell?

2013-11-07 Thread Szabolcs Nagy
* Alexander S. [2013-11-08 02:10:49 +0400]: > 2013/11/7 Szabolcs Nagy : > > with a single pointer arg this assumes that all pointers have > > the same representation or that you create a separate version > > of pthread_create for every type used > Pthread_create doesn

Re: [dev] Suckless remote shell?

2013-11-07 Thread Szabolcs Nagy
* Alexander S. [2013-11-07 16:55:35 +0400]: > Context pointers for callbacks... well, they exist because of the > limitations of the type system. I'd rather see > ?A,[Types...].pthread_create(pthread_t*, A(*callback)(Types...), Types > args...) (so, arbitrarily many additional args for callbacks).

Re: [dev] Suckless remote shell?

2013-11-06 Thread Szabolcs Nagy
* Alexander S. [2013-11-07 04:27:26 +0400]: > Seriously, simple parametric types wouldn't hurt C. Not at all. No > need for that automatic pointer conversion, additional parameters to > sort() and alike, and such. (I'm going to make a confession, I really > think C would benefit from C++ templates

Re: [dev] Suckless remote shell?

2013-11-05 Thread Szabolcs Nagy
* Louis Santillan [2013-11-04 23:19:21 -0800]: > I wasn't suggesting anybody use newlib. Rather, I was suggesting that > all the interface a C, or Go, or Java, or ASM program ever needs > between it and the "POSIX" OS is contained in 17 syscalls. That's > about as minimal, or suckless as you can

Re: [dev] Suckless remote shell?

2013-11-04 Thread Szabolcs Nagy
* Bobby Powers [2013-11-04 13:10:56 -0500]: > 2013/11/4 Szabolcs Nagy : > > go is special in that it builds on the binary syscall layer instead of > > the somewhat portable c api (the syscall layer is not even expected to > > be stable on every unix, openbsd just broke it

Re: [dev] Suckless remote shell?

2013-11-04 Thread Szabolcs Nagy
* Alexander S. [2013-11-04 17:11:40 +0300]: > 2013/11/4 FRIGN : > > > > No one ever said it, because it is expected to be in C. > > Go is a disgrace and I'm glad every time I see a Go-Project bit-rot to > > death. > > > Don't want to start a flame, but C isn't exactly state of the art > language.

Re: [dev] [sbase] [patch] Add sha256sum(1)

2013-07-20 Thread Szabolcs Nagy
* Galos, David [2013-07-20 00:50:25 -0400]: > >> +/* > >> + * public domain sha256 crypt implementation > >> + * > >> + * original sha crypt design: > >> http://people.redhat.com/drepper/SHA-crypt.txt > >> + * in this implementation at least 32bit int is assumed, > >> + * key length is limited, t

Re: [dev] [sbase] [patch] Add sha256sum(1)

2013-07-19 Thread Szabolcs Nagy
* sin [2013-07-19 16:34:07 +0300]: > +/* > + * public domain sha256 crypt implementation > + * > + * original sha crypt design: http://people.redhat.com/drepper/SHA-crypt.txt > + * in this implementation at least 32bit int is assumed, > + * key length is limited, the $5$ prefix is mandatory, '\n'

Re: [dev] coreutils / moreutils - DC a directory counter

2013-07-18 Thread Szabolcs Nagy
* Szabolcs Nagy [2013-07-18 18:51:09 +0200]: > PATH_MAX is posix and should be defined in limits.h > FILENAME_MAX is iso c and is defined in stdio.h (usually PATH_MAX-1) sorry i was wrong about the -1 FILENAME_MAX is buffer size, not string length

Re: [dev] coreutils / moreutils - DC a directory counter

2013-07-18 Thread Szabolcs Nagy
* Markus Teich [2013-07-18 18:37:57 +0200]: > > isn't PATH_MAX a GNU extension? > no, actually gnu hurd was a proponent of unlimited paths (so any file operation has unbounded latency on hurd only limited by the address space) PATH_MAX is posix and should be defined in limits.h FILENAME_MAX is

Re: [dev] Re: coreutils / moreutils - DC a directory counter

2013-07-18 Thread Szabolcs Nagy
* Calvin Morrison [2013-07-17 16:43:00 -0400]: > On 17 July 2013 16:32, Christian Neukirchen wrote: > >> calvin@ecoli:~/big_folder> time ls file2v1dir/ | wc -l > >> 687560 > >> > >> real0m7.798s > >> user0m7.317s > >> sys 0m0.700s > >> > >> calvin@ecoli:~/big_folder> time ~/bin/dc fil

Re: [dev] [sbase] Patch to make md5 and sha1 more similar

2013-07-15 Thread Szabolcs Nagy
* Jens Nyberg [2013-07-15 16:51:29 +0200]: > Hehe and I almost thought about changing to (x & 0x3f) instead of (x % 64) > but decided to skip that one =) > note that x&63 and x%64 x>>6 and x/64 x<<6 and x*64 are not the same when x might be negative (if x is negative then x&63 depends on the si

Re: [dev] [sbase] [patch v3] Add md5sum

2013-07-03 Thread Szabolcs Nagy
* sin [2013-07-03 14:43:24 +0300]: > That's cool. I will spend some time today or tomorrow to re-write the > code and send in patch v4. > > If that's fine then I can also proceed with sha1sum(1). > i have cleaned up sha1 as well, but that was not audited for musl http://port70.net/~nsz/crypt/

Re: [dev] [sbase] [patch v3] Add md5sum

2013-07-03 Thread Szabolcs Nagy
* Robert Ransom [2013-07-03 10:26:03 +]: > On 7/3/13, Galos, David wrote: > >> Added LICENSE.lpl as well and updated the license and copyright details > >> for > >> the md5 code. > > > > I am considering applying this patch. The license is why I have to take > > time to think. I'm worried abo

Re: [dev] lisp

2013-06-29 Thread Szabolcs Nagy
* Louis-Guillaume Gagnon [2013-06-29 13:35:58 -0400]: > It's worth noting that the R5RS scheme standard is only ~50 pages > long: http://www.schemers.org/Documents/Standards/R5RS/ > In comparison, the C99 standard is ~550 pages. I would say that the > scheme dialect is pretty simple. r5rs is muc

Re: [dev] daemon for DWM

2013-06-27 Thread Szabolcs Nagy
* Viola Zolt?n [2013-06-27 08:52:11 -0400]: > possibilities, very lot, and to them I need C++ for the objectoriented > programming. And, I preferred the "//" not the /*... */ // comment is valid in c (since 1999 it's even standardized) i don't think you need object oriented programming in your d

Re: [dev] [sbase] [patch v2] Add md5sum

2013-06-19 Thread Szabolcs Nagy
* sin [2013-06-19 15:00:43 +0300]: > > Integer promotion rules are nasty! I think something like > > the following would still be ok? > > > > unsigned f(unsigned int c) { return c<<24U; } > > Although in this case we still have undefined behaviour > because unsigned int can be 2 bytes by the st

Re: [dev] [sbase] [patch v2] Add md5sum

2013-06-19 Thread Szabolcs Nagy
* stateless [2013-06-19 11:38:00 +0100]: > This is a version of md5sum(1) using the md5 routines from 9base - slightly > adapted to compile. > be careful with integer arithmetics in crypto code your code invokes undefined behaviour because of signed int overflow: unsigned f(unsigned char c) {

Re: [dev] [sbase] 64-bit type for split

2013-06-15 Thread Szabolcs Nagy
* Galos, David [2013-06-14 22:39:12 -0500]: > > Or are you limiting this to pure ansi instead of posix? > I'm just trying to conform with the rest of sbase. The CFLAGS include > `-ansi -pedantic -Wall` and I don't want my code to compile with > warnings. > you can get rid of the warning in stric

Re: [dev] [sbase] 64-bit type for split

2013-06-12 Thread Szabolcs Nagy
* Galos, David [2013-06-11 13:10:37 -0500]: > Right, but '-ansi -pedantic' is strictly C89. GCC doesn't complain, > but I could imagine there being trepidation around using a C99 header > in a C89 environment (where it is not required). > > 2013/6/11 Thorsten Glaser : > > Galos, David dixit: > >

Re: [dev] [st] minor config.def.h fix

2013-06-09 Thread Szabolcs Nagy
a more complete patch that removes some unnecessary inline keywords (gcc in c99 mode incorrectly assumes that an inline function definition has external linkage even if a prior static declaration exists) since it is enough to specify inline only once i removed it from the function definition (i t

[dev] [st] minor config.def.h fix

2013-06-07 Thread Szabolcs Nagy
config.def.h fix: ignoremod is const -uint ignoremod = XK_SWITCH_MOD; +static const uint ignoremod = XK_SWITCH_MOD;

Re: [dev] [slcon] Call for Papers 2013

2013-03-17 Thread Szabolcs Nagy
* Christoph Lohmann <2...@r-36.net> [2013-03-17 13:39:54 +0100]: > > Please send the papers for those two presentations to c...@suckless.org. > ok i registered, but the final form of the papers will be only ready the night before the talk..

Re: [dev] [slcon] Call for Papers 2013

2013-03-17 Thread Szabolcs Nagy
* Christoph Lohmann <2...@r-36.net> [2013-03-17 09:40:30 +0100]: > The call for registration is over. With 12 registered attendees the con??? > ference is going to be a nice and productive meeting of all suckless > people. > > People now registering for the event should register a talk too. O

Re: [dev] st bug

2012-11-18 Thread Szabolcs Nagy
* Woldemar ShiPa [2012-11-18 20:29:14 +0400]: > Hello. I've got a st bug trying to execute st -e mc command. Sometimes it > works > as expected and mc runs fullscreen, sometimes used only a half of st window. does it get solved after you resize st? i observed similar behaviour and i think that'

Re: [dev] [st] 0.3 release

2012-11-05 Thread Szabolcs Nagy
* Brandon Invergo [2012-11-05 11:45:09 +0100]: > The problem is that in its drawing functions, st does *at least* one xlib call > per terminal line. When you factor in any change in text properties > (color, italics, etc), then you get even more xlib calls per line. When > you're scrolling, and th

Re: [dev] [st] 0.3 release

2012-11-03 Thread Szabolcs Nagy
another patch: fixes meta+return diff -r 1266d6a1062c st.c --- a/st.c Sat Nov 03 14:05:45 2012 +0100 +++ b/st.c Sat Nov 03 18:30:26 2012 +0100 @@ -2694,6 +2694,8 @@ selpaste(); break; case XK_Return: + if(meta) +ttywrite("\033", 1); if(IS_SET(MODE_CRLF)) { ttywrite("\r\n"

Re: [dev] [st] 0.3 release

2012-11-02 Thread Szabolcs Nagy
attached patch fixes X2COL and Y2ROW (not the cleanest possible) borderpx changed to signed int in the default config (other coords are signed and mixing unsigned in can cause surprises) diff -r 88ca50b8e7f7 config.def.h --- a/config.def.h Fri Nov 02 23:19:56 2012 +0100 +++ b/config.def.h Sat Nov

Re: [dev] Re: obase - Sta.li moving forward?

2012-06-06 Thread Szabolcs Nagy
* Jens Staal [2012-06-06 09:49:02 +0200]: > - binaries do not execute (!) - the Arch GCC bug for musl recently discussed? you mean the .gnu.hash nonsense? that should not matter for statically linked programs.. if you have contact with the arch packagers then tell them not to hard code --hash-s

Re: [dev] network usage graphs

2011-12-24 Thread Szabolcs Nagy
* hiro <23h...@googlemail.com> [2011-12-24 02:00:47 +0100]: > Deleting the first line of my log is currently done with sed 1d > temp; mv temp original.dat. Is there no better way? sed -i 1d original.dat

Re: [dev] [dwm] Fullscreen programs in tile mode

2011-11-24 Thread Szabolcs Nagy
* mikshaw [2011-11-24 07:05:31 -0800]: > A recent update (to Gtk, I assume) has caused the Geeqie image viewer to > become annoying in fullscreen mode.  It apparently will not allow itself to > be made tiled either.  If it's in fullscreen and I try to view a different > tag, Geeqie remains in f

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Szabolcs Nagy
* Martin Kopta [2011-10-30 08:53:48 +0100]: > First 25 LOC is license and there is some whitespace too, however i'd like to point out that the first 25 lines are not license but documentation as it should be in any program code the fact that you skipped the text without reading it just shows the

Re: [dev] [dwm] ncol layout

2011-10-29 Thread Szabolcs Nagy
* Thomas Dahms [2011-10-29 14:11:59 +0200]: > Concerning bstack, I don't find any use for this with wide screens > (16:10 or even 16:9) becoming mainstream. > some ppl use rotated screens even a 3:4 aspect ratio makes vertical splitting bad not to mention 9:16

Re: [dev] Futaba Linux

2011-09-22 Thread Szabolcs Nagy
* Valentin Ochs [2011-09-21 01:24:36 +0200]: > On Tue, Sep 20, 2011 at 10:54:25PM +0100, Nick wrote: > > Quoth Sir Cyrus: > > > http://alrig.ht/newfutaba.html > > > > Sounds really nice. Pity they can't use musl, as ARM support is an > > important use-case. > > musl has ARM support. for almost

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Szabolcs Nagy
* Dave Reisner [2011-07-24 10:09:58 -0400]: > http://pubs.opengroup.org/onlinepubs/95399/utilities/test.html > this is the third time today that i see link to the old posix specs you may want to update your bookmarks to the newer one http://pubs.opengroup.org/onlinepubs/9699919799/

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Szabolcs Nagy
* Anselm R Garbe [2011-07-24 09:40:12 +0100]: > On 24 July 2011 08:38, anonymous wrote: > > > > There is a difference: > > > >    % echo `echo '\\'` > >    \ > >    % echo $(echo '\\') > >    \\ > > Yes, but bash'isms are a NO GO in suckless.org shell scripts :) > $(cmd) is not bashism anymore

Re: [dev] Experimental editor

2011-06-15 Thread Szabolcs Nagy
* Andrew Hills [2011-06-15 11:51:17 -0400]: > On Wed, Jun 15, 2011 at 11:59 AM, Jon bradley wrote: > > I own a keyboard that has no pgup/pgdn, or arrow keys. > > Did you steal it from a museum? you don't have to go to a musem for that http://en.wikipedia.org/wiki/File:T-Mobile_G1_launch_event_

[dev] Re: [hackers] [dwm] fixing some minor issues, next week is dwm-5.9 release time || garbeam

2011-06-11 Thread Szabolcs Nagy
* h...@suckless.org [2011-06-11 09:33:24 +0200]: > -while xsetroot -name "`date` `uptime | sed 's/.*,//'`" > +while xsetroot -name "`date` `uptime | sed 's/.*,//'` > do was this intentional?

Re: [dev] Re: sbase

2011-06-10 Thread Szabolcs Nagy
* Anthony J. Bentley [2011-06-09 19:22:47 -0600]: > Don???t we have /dev/stdin for that anyway? > no /dev/stdin, /dev/fd/0, /proc/self/fd/0 are non standard and not always available (even on linux systems)

Re: [dev] [dwm] non-ASCII characters in status bar?

2011-05-30 Thread Szabolcs Nagy
* Sir Cyrus [2011-05-30 20:56:43 +0100]: > Is it possible to have the status bar in dwm show non-ASCII yes > http://i.imgur.com/4S0EJ.png > > Should show a right pointing single guillemet (U+203A) after 'WordPress'. encoding matters locale settings matter xlocale settings matter font settings ma

Re: [dev] sbase

2011-05-23 Thread Szabolcs Nagy
* Connor Lane Smith [2011-05-23 03:15:43 +0100]: > thumb is to only include flags present in both POSIX and Plan 9, thus > making a sweet little subset. There are exceptions to this, like grep scripts will break (eg autoconf generated scripts depend on all sort of flags and lot of software uses

[dev] [9base] another cosmetic patch

2011-05-21 Thread Szabolcs Nagy
to make diff/Makefile consistent with other Makefiles diff -r 3314f6c2b58a diff/Makefile --- a/diff/Makefile Sun May 08 08:26:38 2011 + +++ b/diff/Makefile Sun May 22 00:52:01 2011 +0200 @@ -1,35 +1,8 @@ -# diff - diff shell unix port from plan9 +# diff - diff unix port from plan9 # Depends on

[dev] [9base] fmt vs PLAN9PORT

2011-05-21 Thread Szabolcs Nagy
i was playing with pcc+musl and compiled various libs including 9base with them i found that there are two versions of the fmt lib in 9base/plan9port: plan9 style and ansi style (former is used when PLAN9PORT is defined) the problem is that all the commands seem to expect the plan9 style fmt eg

Re: [dev] Suckless UML

2011-05-12 Thread Szabolcs Nagy
* Uriel [2011-05-12 19:54:26 +0200]: > Fortunately somebody already has done some writing on the topic: > > http://archive.eiffel.com/doc/manuals/technology/bmarticles/uml/page.html > it is also worth noting that even original contributors of uml find it problematic http://port70.net/~nsz/arti

Re: [dev] [dwm] fix status bar cropping on screen resize

2011-02-27 Thread Szabolcs Nagy
* Mark Williams [2011-02-24 17:22:03 -0800]: > Definitely an edge case, but it's happened to me enough times that > three possible fixes came to mind (listed in ascending preference): > > 1) Put a note in the BUGS section of the man page that mentions that i think this can be fixed > 2) The bar

Re: [dev] [quark] patch

2011-02-09 Thread Szabolcs Nagy
* Bjartur Thorlacius [2011-02-08 19:10:48 +]: > Anyhow, I believe you should be using HTTP headers, If- or not, as the > hashes don't identify the referenced resource, and thusly shouldn't be > in the URI. hm i think i'll go with the suggested '?' using a query parameter seems fine to me and w

Re: [dev] [quark] patch

2011-02-05 Thread Szabolcs Nagy
* Bjartur Thorlacius [2011-02-05 22:59:02 +]: > As you don't need compatibility with browsers, you should be using a > HTTP header starting with If-. See > http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html thanks for reminding me these i discarded if- headers because they have different

Re: [dev] [quark] patch

2011-02-05 Thread Szabolcs Nagy
* Robert Ransom [2011-02-05 05:35:29 -0800]: > Yes it is. See RFC 2616 (section 5.1.2) and RFC 3986 (section 4). > you are right the uri spec does not allow it so lets go with '?' or '/' or '.' or.. i'll use something when i get there > If you expect groups of servers to be disconnected for ext

Re: [dev] [quark] patch

2011-02-05 Thread Szabolcs Nagy
* Robert Ransom [2011-02-04 18:56:48 -0800]: > > -> GET /key#hash-of-data HTTP/1.0\r\n\r\n > > <- [waiting..] > > The server will never see the fragment identifier (the "#" and text > following it). there is no such restriction in http nor in urls (it's not a reserved character) your browser st

[dev] [quark] patch

2011-02-04 Thread Szabolcs Nagy
i recently implemented a webserver and used some code from quark in it meanwhile i found minor issues in the code so here is a patch (some modifications are bugfixes others are debateble, i leave it to arg to sort it out) offtopic: the webserver i'm implementing is used to do secure messaging: i

Re: [dev] [sta.li] Minimalist Live Distro

2010-11-10 Thread Szabolcs Nagy
* Bjartur Thorlacius [2010-11-10 00:03:05 +]: > WebApp VM is a DHTML virtual machine, or a JavaScript VM that > implements DOM, CSS, HTML, XML and related W3C and WHATWG > technologies. your webapp wm is a full blown web browser i don't think there is a way around that eg a js interpreter on

[dev] [OT] ubuntu moves to wayland from xorg

2010-11-05 Thread Szabolcs Nagy
they try to leave xorg+gnome for wayland+unity seems ubuntu follows apple: own gui, drop x, hw accelerated eyecandy http://www.markshuttleworth.com/archives/551 also on /. http://linux.slashdot.org/story/10/11/05/137212/Ubuntu-Dumps-X-For-Unity-On-Wayland

Re: [dev] Re: dwm puzzle [fixed; with blame]

2010-09-14 Thread Szabolcs Nagy
* Peter John Hartman [2010-09-12 10:52:12 -0400]: > > > - focus(wintoclient(ev->window)); > > > + focus((wintoclient(ev->window))); > > > > Ok, I haven't done this yet, but a little update. It turns out that this > patch /didn't/ fix the problem; or, at least, it partially did. On

Re: [dev] Re: dwm puzzle [fixed; with blame]

2010-09-12 Thread Szabolcs Nagy
* Peter John Hartman [2010-09-11 15:23:18 -0400]: > This fixes it: > > diff -r 050d521d66d8 -r c361034c5a1c dwm.c > --- a/dwm.c Tue Aug 24 13:13:20 2010 +0100 > +++ b/dwm.c Sat Sep 11 19:00:18 2010 + > @@ -799,7 +799,7 @@ > unfocus(selmon->sel, True); >

Re: [dev] [OT] What's wrong with C++?

2010-09-10 Thread Szabolcs Nagy
* Nikhilesh S [2010-09-10 20:19:38 +0300]: > Is C++ broken because no one really understands it fully? Is allowing > multiple paradigms in a single langauge a problem? Should language > enforce paradigm? > > Could you elaborate in detail, what exactly are your problems with C++? > Thanks. :) i o

Re: [dev] "channel" construct for inter-thread communication in C programs

2010-09-09 Thread Szabolcs Nagy
* Corey Thomasson [2010-09-09 08:01:46 -0400]: > libtask [ http://swtch.com/libtask/ ] implements something > similar/same; however, it's a coroutine lib and I'm pretty sure it > will not work with multiple threads. that's not similar/same the entire point of the excersise is to do messaging whe

Re: [dev] libdraw development

2010-09-07 Thread Szabolcs Nagy
* pancake [2010-09-07 16:49:20 +0200]: > Another hacky option is to embed all functions in .h include files > as 'static inline'. then you'd have to include all code in the .h which would make compilation slow whereever draw.h is included the separate files are fine

[dev] [OT] c syntax tree dumping tool

2010-09-05 Thread Szabolcs Nagy
i'm involved in a c parsing tool project, c99tree, and pleased to announce its first release http://repo.hu/projects/libporty it is in early development, but it can parse c99 code (without includes and preprocessor tokens) and print an abstract syntax tree eg useful for listing function calls of

Re: [dev] libdraw development

2010-09-01 Thread Szabolcs Nagy
* Uriel [2010-08-31 23:21:54 +0200]: > WTF is this 'libdraw' thing? So are you guys not only duplicating > existing functionality implemented by p9p, but you are also > confusingly using the same names? > > libdraw should be: http://man.cat-v.org/p9p/3/draw and that is what > should be used as a

Re: [dev] Stripping html from email

2010-08-26 Thread Szabolcs Nagy
* Antoni Grzymala [2010-08-26 12:39:33 +0200]: > [1] uri://some.url... > > notation, so that I can actually fish out the links. Is that possible > in w3c as well? > in interactive mode with 'L' you can list links and images but i don't think there is a command line switch for that in general w3

Re: [dev] sfc - a flashcards program to learn languages

2010-08-25 Thread Szabolcs Nagy
* Valentin [2010-08-24 22:43:59 +0200]: > [2] http://0au.de/hgweb.cgi/sfc #include ... #include #include that's the painful way to work with strings.. this part of the c99 standard is not very nice i guess there are not much choice if you don't want to depend on external code like plan9 utf a

Re: [dev] flo - a command line program for organizing events, to-dos, and deadlines

2010-08-17 Thread Szabolcs Nagy
* Alexander Teinum [2010-08-17 09:01:00 +0200]: > s/ISO 6801 date/ISO 6801 week/ s/6801/8601/

Re: [dev] [vp] A media website video player/fetcher

2010-08-16 Thread Szabolcs Nagy
* Kris Maglione [2010-08-15 05:18:55 -0400]: > This is a cleaned up version of some of the scripts I've been using > for a long time to play videos from sites like YouTube. I use a key this is my solution: http://repo.hu/projects/yget/ this only supports youtube, but knows a bit more can handle

Re: [dev] Suckless Way to Learn How To Program

2010-08-13 Thread Szabolcs Nagy
* Brandon LaRocque [2010-08-13 18:20:17 -0400]: > My son is interested in computer programming, and given the way that > programming is being taught, I don't think it's the right way to go > about learning.What would you guys here suggest for a self-learning > curriculum that I could set up for hi

Re: [dev] Suckless design in Games

2010-08-11 Thread Szabolcs Nagy
* Chidambaram Annamalai [2010-08-11 13:12:46 +0530]: > Have you even bothered to look through the sources? You really have yes although it was a couple of years ago last time i used bgl > to decouple the storage schemes from the algorithms so that you can write > O(M + N) code to support O(M*N) t

Re: [dev] Suckless design in Games

2010-08-10 Thread Szabolcs Nagy
* Chidambaram Annamalai [2010-08-11 03:26:22 +0530]: > I didn't argue BGL was simple. But I'd certainly consider it elegant. Of no it's not elegant graph algorithms are too versatile to do elegantly what boost tries to do (eg boost tries to operate on a generic graph type which cannot work as di

Re: [dev] fossil scm

2010-08-10 Thread Szabolcs Nagy
* pancake [2010-08-10 15:49:16 +0200]: > I have found that scm to be quite interesting (www.fossil-scm.org). there is still no good issue tracking system! web based project documentation solutions can be improved but it's not such a big deal (wiki, man2html, ..) integrating these into the vcs

Re: [dev] Suckless design in Games

2010-08-10 Thread Szabolcs Nagy
* Matthew Bauer [2010-08-09 21:02:53 -0500]: > What game libraries are suckless? (SDL, OpenGL) > > What programming language is best for games? (C, Python, or Go) i consider this approach fairly nice and simple for 'flashgames': http://repo.hu/projects/animator/ reads drawing commands from stdi

Re: [dev] wrap: minimalist archiving tool

2010-08-09 Thread Szabolcs Nagy
* David Tweed [2010-08-09 04:54:25 +0100]: > The one thing that leaps out at me is that there's no checksumming of to some extent this can be worked around find dir -type f | xargs sha1sum >dir.sum find dir -type f | xargs wrap c dir.sum >dirwithsum.a or even sha1sum dir.a >dir.a.sum but yes, d

Re: [dev] wrap: minimalist archiving tool

2010-08-08 Thread Szabolcs Nagy
* Connor Lane Smith [2010-08-06 15:10:29 +0100]: > I've written a tiny archiver, which I've called "wrap" for lack of a looks nice (nicer than tar, cpio or gnu ar) > I'm not quite sure of the use case for this, but I don't know, someone i'm not sure either but it'd be unixy to do find dir | x

Re: [dev] wrap: minimalist archiving tool

2010-08-08 Thread Szabolcs Nagy
* Connor Lane Smith [2010-08-06 15:10:29 +0100]: > Interestingly during testing the best compression results came from > our very own sflate. there was a bug in the encoder, it could corrupt your data (i noticed it after rewriting a few things, but forgot to backport the fix to the repo on suck

Re: [dev] [surf] site-specific css?

2010-07-24 Thread Szabolcs Nagy
* Rob Mason [2010-07-24 11:14:36 -0400]: > Hi, I'm wondering how to have custom css for a specific site, specifically > like the css here: http://userstyles.org/styles/31211 mozilla has @-moz-document css extension to define domain specific styles https://developer.mozilla.org/en/CSS:@-moz-docum

Re: [dev] Problem building dmenu tip

2010-07-19 Thread Szabolcs Nagy
* Anselm R Garbe [2010-07-19 07:45:16 +0100]: > On 18 July 2010 21:40, Josh Rickmar wrote: > > CC -o dinput > > /usr/lib/crt0.o(.text+0x9d): In function `___start': > > : undefined reference to `main' > > collect2: ld returned 1 exit status > > *** Error code 1 > > > > Stop in /home/joshua/src/d

Re: [dev] Problem building dmenu tip

2010-07-18 Thread Szabolcs Nagy
On 7/18/10, Josh Rickmar wrote: > in the irc channel said he remembers a similar problem when linking with > ld on Linux. Any ideas? nah, that's not what i meant i just noted that you get similar error when you link with ld in general like ld -o foo -lc foo.o > /usr/lib/crt0.o(.text+0x9d): In

Re: [dev] dwm-5.8.2 / 9base-6

2010-06-05 Thread Szabolcs Nagy
On 6/5/10, Szabolcs Nagy wrote: > On 6/5/10, David DEMELIER wrote: >> I'm sorry to disturb you again, but the fullscreen problem is still >> here with mplayer. Even fstype=non in mplayer.conf still does'nt scale >> the mplayer fullscreen window. > > works h

Re: [dev] dwm-5.8.2 / 9base-6

2010-06-05 Thread Szabolcs Nagy
On 6/4/10, ilf wrote: > As I reported with Firefox before, also Xpdf's fullscreen behaviour > changed. The most obvious change is that both clients now also cover the > dwm status bar when in fullscreen. > > Xpdf seems even a little more aggressive. When in fullscreen, it uses > the entire screen,

Re: [dev] dwm-5.8.2 / 9base-6

2010-06-05 Thread Szabolcs Nagy
On 6/5/10, David DEMELIER wrote: > I'm sorry to disturb you again, but the fullscreen problem is still > here with mplayer. Even fstype=non in mplayer.conf still does'nt scale > the mplayer fullscreen window. works here fine, without additional settings 2 monitor setup, one tilted (1024x1280), t

Re: [dev][surf]

2010-05-26 Thread Szabolcs Nagy
On 5/26/10, Christophe-Marie Duquesne wrote: > Sorry, I know this topic is old, but I was wondering: Why is YAML > considered harmful? It's on http://harmful.cat-v.org/software/, but I it is built on similar ideas as xml (tries to be a generic something) it has many inconsistent syntax elements (

Re: [dev] [surf] User-Agent string.

2010-05-18 Thread Szabolcs Nagy
On 5/18/10, Marvin Vek wrote: >> the user agent string is unnecessary > > According to the RFC, it's required. "User agents SHOULD include this field with requests." SHOULD: "This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore

Re: [dev] [surf] User-Agent string.

2010-05-18 Thread Szabolcs Nagy
On 5/18/10, Marvin Vek wrote: > Would love to hear what you think about it, and especially if this > would be subject for implementation in the surf sources directly. i think unnecessary headers are bad the user agent string is unnecessary also it reminds me the recent eff research http://www.e

Re: [dev] SDL fullscreen problems in dwm

2010-05-14 Thread Szabolcs Nagy
On 5/14/10, hessi...@hessiess.com wrote: > Its because SDL is resolution dependent(non resizeable). what do you mean by non resizeable?

Re: [dev] SWK: The simple widget kit

2010-05-13 Thread Szabolcs Nagy
On 5/13/10, pancake wrote: > Check t/ui.c and you will understand why SwkWindow is not global variable. > > Do somebody noticed this file? I mean..the UI can be done not only by code.. i've noticed that can't you just manipulate an extern global swkwindow the same way? i didn't mean to hide the

Re: [dev] SWK: The simple widget kit

2010-05-13 Thread Szabolcs Nagy
On 5/12/10, Rory Rory wrote: > Right now it's not obvious what the widgets actually are. The > textboxes look identical to the buttons and it's hard to know where to > type into. don't care about the visual representation that's the last thing you wish to design the question is if the programmin

Re: [dev] MaxFloat support?

2010-04-21 Thread Szabolcs Nagy
On 4/22/10, Yue Wu wrote: > is. But, > sometimes I want some windows can be always maximized after running and > still > is a floating window, so my question is, how to make dwm can auto-maximize > this type of windows and still keep them be 'isfloating'? Maybe can add a > feature that can assign

Re: [dev] sed 10q or sed 11q

2010-04-12 Thread Szabolcs Nagy
On 4/12/10, Uriel wrote: > What is your question? he just pointed out that 'sed 11q' incorrectly listed as an alternative to 'head' on cat-v (the correct alternative would be 'sed 10q') but it's a minor detail..

Re: [dev] sed 10q or sed 11q

2010-04-11 Thread Szabolcs Nagy
On 4/11/10, markus schnalke wrote: > Now I actually must assume, Uriel might be wrong. *eek* > > But is this possible? yes

  1   2   >