Re: [dev] running a shortlink provider

2023-05-25 Thread Anthony
Thanks for the details! I have tough about hash maps but actually not about simultaneous requests... this seems quite bad tho. (if you have more than a few hundreds users?) I know it is insecure, but I would store everything in a txt file where each line is a link. Why is that insecure? Because

Re: [dev] running a shortlink provider

2023-05-25 Thread Anthony
On 5/25/23 07:29, Страхиња Радић wrote: Perhaps the most minimal solution for keeping data would be TSV files, but they are not suitable for storing data entered from the web because of concurrency, so a "real" database would be needed. What do you mean by, "because of concurrency"? I know it

[dev] Re: 9base mk doesn't work with subscripts?

2019-11-24 Thread Anthony Martin
g but it only affects the way mk prints recipes. The actual recipe executes how you would expect it to. To see this, add an echo $prereq(1) to your recipe and check the output. The relevant code is in mk/shprint.c. It only handles simple variables. I thought I fixed this years ago but I can't seem to find the patch. Cheers, Anthony

Re: [dev] GPL free Linux

2018-11-12 Thread Anthony J. Bentley
Hadrien Lacour writes: > On Sun, Nov 11, 2018 at 09:43:12PM -0700, Anthony J. Bentley wrote: > > Markus Wichmann writes: > > > Why would you do something so pointless? First of all, licences only > > > matter if you plan on redistribution, so most here won't care. S

Re: [dev] GPL free Linux

2018-11-11 Thread Anthony J. Bentley
Markus Wichmann writes: > Why would you do something so pointless? First of all, licences only > matter if you plan on redistribution, so most here won't care. Second, > all the GPL demands is that you distribute the source, which any good > distribution should do, anyway, right? GPL also demands

Re: [dev] [PATCH][blind] alloca #include for BSDs

2018-01-29 Thread Anthony J. Bentley
Nick writes: > Quoth Yuri: > > You should also change your config.mk files to allow external optimization > > and other flags. For example: > > > > > CFLAGS = -std=c99 -Wall -pedantic -O2 > > > > should be changed to > > > > > CFLAGS ?= -O2 > > > > > CFLAGS += -std=c99 -Wall -pedantic -O

Re: [dev] suckless.org TLS / HTTPS support

2017-09-01 Thread Anthony J. Bentley
ou might as well go all the way. -- Anthony J. Bentley

Re: [dev] [st] Release planned?

2016-08-11 Thread Anthony J. Bentley
Christoph Lohmann writes: > Greetings. > > On Thu, 11 Aug 2016 16:17:30 +0200 Paul Menzel wrote: > > Dear suckless folks, > > > > > > st 0.6 was released in June 2015, that means over a year ago. > > > > Since then, there were another 76 commits included into the master branch. > > > > ``` >

Re: [dev] neatroff

2016-08-09 Thread Anthony J. Bentley
lways mandoc. But anti-Unix lack of piping blah blah. -- Anthony J. Bentley

Re: [dev] "Note On Webkit Versions"

2016-05-01 Thread Anthony J. Bentley
at you). libagar? -- Anthony J. Bentley

Re: [dev] [dmenu] versioning and patching

2016-03-14 Thread Anthony J. Bentley
Boruch Baum writes: > 1] I want to request that dmenu produce 'correct' output for its > --version command. Currently, the ouput is identical to --help ouput and > gives no version information at all. --help and --version give the same output because they're both invalid

Re: [dev] surf release?

2015-06-01 Thread Anthony J. Bentley
7heo writes: > Suckless comes from suck less. We're not here to settle down on wrong > solutions. Suckless has settled on the wrong solutions for years. Case in point: customizing software by compiling it. How often do you recompile mv, cp and rm? Even compiling your kernel is something that shoul

Re: [dev] books that rock

2015-04-25 Thread Anthony J. Bentley
Programming Style by Kernighan & Plauger. My personal favorite computer-related book. -- Anthony J. Bentley

Re: [dev] sed breaks utf8 in [ ]

2015-03-30 Thread Anthony Martin
g time ago they were an African tribe. Anthony

Re: [dev] [style] variable declaration locations and varriable length arrays vs malloc

2015-03-02 Thread Anthony J. Bentley
e: > > while ((d = readdir(dp))) { > char buf[strlen(path) + strlen(d->d_name) + 1]; > > } VLAs are a fundamentally broken feature because they do not allow any error checking. alloca() is the same. -- Anthony J. Bentley

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread Anthony J. Bentley
member foo by grepping for ^Ifoo. Similarly, the "function name at beginning of line" rule is so you can find the bar() function definition by grepping for ^bar(. -- Anthony J. Bentley

Re: [dev] GCC situation

2014-11-24 Thread Anthony J. Bentley
amp;m=141612991809812&w=2 Another interesting C project is libfirm+cparser. -- Anthony J. Bentley

Re: [dev] [sbase]building

2014-11-21 Thread Anthony J. Bentley
about -lrt in OpenBSD. OpenBSD's make is actively developed... so if there is some bug in POSIX compliance, why not report the bug? -- Anthony J. Bentley

Re: [dev] rebooting the web (it was: surf rewrite for WebKit2GTK)

2014-10-31 Thread Anthony J. Bentley
"Dmitrij D. Czarkoff" writes: > Sorry for replying to single message with two. > > Anthony J. Bentley said: > > HTML5 has been some steps forward and some steps back. But one of the > > unambiguously good things they did was drop any pretense of SGML > > comp

Re: [dev] rebooting the web (it was: surf rewrite for WebKit2GTK)

2014-10-31 Thread Anthony J. Bentley
ero meaningful content. What a robust technology to base the suckless world on. The real disgusting parts of HTML5 are CSS and Javascript, and the XML bits that are seeping in, like MathML. An XHTML world would embrace those, or replace them with alternatives that are even worse. XML is just SGML with a little air freshener sprayed over it. -- Anthony J. Bentley

Re: [dev] surf rewrite for WebKit2GTK

2014-10-26 Thread Anthony J. Bentley
nitely like some > "suckless cleanup" in this direction, just like in other directions. Duktape isn't perfect but it's at least within the realm of sanity: http://duktape.org/ -- Anthony J. Bentley

[dev] Re: st (development version) not compiling on gcc-4.9

2014-09-22 Thread Anthony Martin
iden, sizeof(vtiden) - 1); > > [...] > > Do you have any idea on what is wrong? Sounds like a stale config.h file. The Makefile is careful not to destroy any local changes. Anthony

Re: [dev] Introducing the imagefile-format

2014-07-28 Thread Anthony J. Bentley
FRIGN writes: > The only reason I used ntohl() and htonl() here is > the fact they're POSIX, and endian.h isn't. Isn't yet... http://austingroupbugs.net/view.php?id=162 -- Anthony J. Bentley

Re: [dev] Why do you use tmux/screen?

2014-07-01 Thread Anthony J. Bentley
sing the irssi and tmux keybindings, so I removed irssi from the equation. One window per channel, with one pane running tail -f and the other redirecting text to stdin. Now I only have one set of keybindings to memorize. -- Anthony J. Bentley

Re: [dev] reboot, arrow in the knee because of the GNU GPL???

2014-06-25 Thread Anthony J. Bentley
Sylvain BERTRAND writes: > On Wed, Jun 25, 2014 at 09:32:33PM -0600, Anthony J. Bentley wrote: > > Sylvain BERTRAND writes: > >> I firmely disagree with you on this: the event of somebody hurt > >> by the GNU GPL with real life facts is of highest importance for >

Re: [dev] reboot, arrow in the knee because of the GNU GPL???

2014-06-25 Thread Anthony J. Bentley
rought up on this list in previous discussions. -- Anthony J. Bentley

Re: [dev] suckless distro

2014-06-25 Thread Anthony J. Bentley
or large. Said interface should not come at the cost of complexity, but good makefiles are simple anyway (the one in their example is two lines). -- Anthony J. Bentley

Re: [dev] [surf] WebKit1 deprecated

2014-05-28 Thread Anthony J. Bentley
> Probably. There isn't javascript support yet, either (though they're > working on it). Current released versions do support using libmozjs-1.8.5. I can't speak to how well it works, having never enabled it. No doubt it is incomplete, but it might be in a usable state. -- Anthony J. Bentley

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Anthony J. Bentley
Nick writes: > Quoth Anthony J. Bentley: > > Nick writes: > > > GPL is nearly as conceptually simple as permissive licenses, I > > > think. > > > > ... > > > > Clearly, the GPL is just as simple to understand and explain to others > > as

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Anthony J. Bentley
PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Clearly, the GPL is just as simple to understand and explain to others as a permissive license. After all, copyright law is complex. -- Anthony J. Bentley

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Anthony J. Bentley
Christoph Lohmann writes: > Greetings. > > On Mon, 12 May 2014 22:02:57 +0200 "Anthony J. Bentley" w > rote: > > Christoph Lohmann writes: > > > On Mon, 12 May 2014 18:18:37 +0200 FRIGN wrote: > > > > Well, let's take a look at the GPL fir

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Anthony J. Bentley
ws, corporate assholes never really give back. > With the GPL you at least get their crown jewels, if they piss you off. Yeah, ask Landley how much useful code Busybox got out of all those lawsuits. Corporations are terrible at writing code. We don't want their garbage. -- Anthony J. Bentley

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Anthony J. Bentley
wc -w * | sort -n 73 wtfpl 118 isc 155 zlib 171 mit 197 unlicense 221 bsd 978 cc0 1234 lgpl3 1577 apache2 1965 cc-by 2154 cc-by-sa 2968 gpl2 4372 lgpl2.1 5214 gpl3 5535 agpl3 26932 total Personally, I stick with ISC. -- Anthony J. Bentley

Re: [dev] tiny pdf viewer (with vim key shortcuts)

2014-05-01 Thread Anthony J. Bentley
patrick295767 patrick295767 writes: > What about a lightweight pdf viewer for giving talks ? > > I am now modifying and recompiling xpdf. It is quite a light pdf viewer. > > You plug your Linux box, and give a great talk ;) ! MuPDF is nice but has a disgusting license (AGPL).

Re: [dev] What is bad with Python

2014-03-05 Thread Anthony Martin
;. > This is quite inhibiting, but I'm glad to see this modern > language default to static linking. People are working on this: https://code.google.com/p/go/issues/detail?id=6853 Anthony

Re: [dev] Optimizing C compiler & c++ compiler/runtime

2013-12-20 Thread Anthony J. Bentley
ble for use in compilers.” http://pp.info.uni-karlsruhe.de/firm/ “cparser is a library containing a parser, lexer and semantic analysis for the ISO C99 language. It should be used as a compiler frontend, a base for source-source transformation, or source-checker tools.” http://sourceforge.net/

[dev] I got a fever, and the only prescription ...

2013-10-16 Thread Anthony Martin
... is more DBUS. https://lwn.net/Articles/551969/ https://github.com/gregkh/kdbus/blob/master/kdbus.txt My condolences, Anthony

Re: [dev] Re: Why HTTP is so bad?

2013-05-23 Thread Anthony J. Bentley
Sam Watkins writes: > I'd say both HTTP and HTML started out fairly sane, HTML started out as SGML, which is even less sane than XML. Parsing HTML has grown much simpler over time as assumptions of XML and SGML have been ignored.

Re: [dev] [st] problem reading man pages

2013-05-21 Thread Anthony J. Bentley
G David Modica writes: > On 19:01 Tue 21 May , Anthony J. Bentley wrote: > > Would be helpful to specify what program generates your manpages. Manuals l > ook > > fine here with st tip and mandoc... > > > > No idea how man pages are generated. I am running Arc

Re: [dev] [st] problem reading man pages

2013-05-21 Thread Anthony J. Bentley
r have I mis-configured something? Would be helpful to specify what program generates your manpages. Manuals look fine here with st tip and mandoc... -- Anthony J. Bentley

Re: [dev] [st] [PATCH] 8bit-meta like xterm

2013-04-23 Thread Anthony J. Bentley
and the QWERTY layout is that it has > all ASCII characters easily available, so you can enter *all* > latin1-subset-of-Unicode characters with just it. I can appreciate that but memorizing the layout of ISO-8859-1 to do it seems arcane. The mnemonics I define for compose are easier (if a bit

Re: [dev] ST 0.4 and OpenBSD 5.2

2013-04-19 Thread Anthony J. Bentley
Christoph Lohmann writes: > Greetings. > > On Fri, 19 Apr 2013 21:11:22 +0200 "Anthony J. Bentley" w > rote: > > That's because the st makefiles use $(shell ...) which is a GNUism. > > I’ve applied your patch. Thanks. > > Shouldn’t using GNUi

Re: [dev] ST 0.4 and OpenBSD 5.2

2013-04-19 Thread Anthony J. Bentley
Gregor Best writes: > I'm on OpenBSD -current at the moment and the latest git HEAD of st compiles > with the following patch: > > diff --git a/config.mk b/config.mk > index 88355c7..f1a24d7 100644 > --- a/config.mk > +++ b/config.mk > @@ -26,3 +26,4 @@ LDFLAGS += -g

Re: [dev] [st] Segmentation fault when clicking the top of window

2013-03-24 Thread Anthony J. Bentley
so.1.0 157067ed6000 1570682d9000 rlib 01 0 /usr/X11R6/lib/libXau.so.9.0 1570631c4000 1570635c9000 rlib 01 0 /usr/X11R6/lib/libXdmcp.so.10.0 15706a60 15706a60 rtld 01 0 /usr/libexec/ld.so full backtrace attached. -- A

Re: [dev] Migration to git

2012-11-29 Thread Anthony Cox
rolling to ^u and ^i, remove ^g scrolling. -- Anthony Cox

Re: [dev] Adding utmpx stuff

2012-10-09 Thread Anthony J. Bentley
in OpenBSD, it's in the archives: http://marc.info/?l=openbsd-tech&m=127910804900619&w=2 -- Anthony J. Bentley

Re: [dev] New friends

2012-07-31 Thread Anthony J. Bentley
27;s sndio interface[1] goes the opposite route and moves audio to userland. I'm curious how the two compare. -- Anthony J. Bentley [1] http://www.openbsd.org/porting/audio-port.html

[dev] Re: [9base] Failure to link against uClibc: undefined references

2012-02-26 Thread Anthony Martin
The link order in yacc.mk is wrong. Try building with this patch. Cheers, Anthony diff -r 12764b326f2b yacc.mk --- a/yacc.mk Sun Feb 12 23:13:17 2012 +0100 +++ b/yacc.mk Sun Feb 26 17:26:11 2012 -0800 @@ -35,4 +35,4 @@ ${TARG}: ${OFILES} @echo LD ${TARG} - @${CC} ${LDFLAGS

Re: [dev] sbase TODO patch

2012-02-10 Thread Anthony J. Bentley
stripped out of OpenBSD a couple years ago. The commit message by deraadt: "rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical)" -- Anthony J. Bentley

Re: [dev] install dwm

2012-01-24 Thread Anthony Campbell
uckless.org, unpacked it in my bome directory, and did "sudo make install" which went off without problems. The executable is installed in /usr/local/bin by default. There is a precompiled dwm.deb package available for Debian, but of course that doesn't let you configure anything, so

Re: [dev] dwm: bug in fullscreen mode (SDL?)

2012-01-15 Thread Anthony Cox
On 16/01/12 01:20 ;+0100, Eckehard Berns wrote: The confnotify-tip.patch from my previous mail[1] should fix this hopefully. Yes, that seems to fix the floating issues - I can't comment on the original SDL issues however as I have not experienced them. -- Anthony Cox

Re: [dev] dwm: bug in fullscreen mode (SDL?)

2012-01-15 Thread Anthony Cox
no longer raise the floating one above. Another thing which seems to have been lost is the "feature" of clicking a floating window raises it to the top; I use this a lot as I unfortunately find myself using The GIMP regularly at work. -- Anthony Cox

Re: [dev] network usage graphs

2011-12-24 Thread Anthony J. Bentley
On 12/24/11, Szabolcs Nagy wrote: > * 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 That’s a GNUism.

[dev] Re: what's your opinion on Go

2011-12-13 Thread Anthony Martin
ys is on Plan 9. Everywhere else it's Go or rc. I'm just about finished tidying up the port of Go to Plan 9. I have one last changeset pending review. C will always have its place but for new code, Go with Go. :-) Anthony

[dev] Re: DWM vs XFCE4 Memory Usage

2011-12-05 Thread Anthony Martin
status VmSize:21920 kB VmRSS: 10036 kB % grep '^Vm(Size|RSS)' /proc/`{pgrep dwm}^/status VmSize: 5376 kB VmRSS: 696 kB Anthony

Re: [dev] [dwm] 2000 SLOC

2011-10-31 Thread Anthony Martin
good reason. This is just a side effect of having to deal with X11 on Unix and not something intrinsically difficult about 9P. Otherwise, I agree with you. Cheers, Anthony

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Anthony Campbell
gely defeated by Haskell. I don't know C either but I have been able to figure out config.h to produce the changes I want. Does this mean that I should be going back to struggling with Haskell? Anthony -- Anthony Campbell - a...@acampbell.org.uk Microsoft-free zone - Using Debian GNU/Li

Re: [dev] Simple made Easy (Rich Hickey at StrangeLoop)

2011-10-22 Thread Anthony Martin
pe % produce | consume # these commands expect a serialized JSON stream The beauty of this is that the stream typing logic is separated from individual programs and, of course, the shell. Cheers, Anthony

Re: [dev] Re: sbase

2011-06-09 Thread Anthony J. Bentley
On Thu, Jun 9, 2011 at 6:58 PM, Connor Lane Smith wrote: > On 9 June 2011 13:40, stateless wrote: >> Attached cmp.c and cmp.1. > > Thanks! I'm also not bothering with '-', so I took that out, which > meant we could simplify the code a lot. Don’t we have /dev/std

Re: [dev] suckless wget/curl

2011-05-27 Thread Anthony J. Bentley
n, or b) if there is already a suckless one, pointing it out to them so they can use it. I don’t think they have implemented anything yet. -- Anthony J. Bentley

Re: [dev] Re: Version control for Sta.li

2011-03-20 Thread Anthony J. Bentley
> > I just found a version control system that I hadn't heard of and might wo > rk well for Stali: Fossil. It's by the author of SQLite Here’s an interview with the author. http://cisx1.uma.maine.edu/~wbackman/bsdtalk/bsdtalk194.ogg Word in the grapevine is that NetBSD is switching to it.

Re: [dev] browser flash videos and mpeg plugins

2011-02-26 Thread Anthony J. Bentley
I haven’t tried it, don’t trust random scripts from the Internet, read it through first… -- Anthony J. Bentley

Re: [dev] browser flash videos and mpeg plugins

2011-02-26 Thread Anthony J. Bentley
till open in memory and you can grab it from there. -- Anthony J. Bentley

Re: [dev] browser flash videos and mpeg plugins

2011-02-26 Thread Anthony J. Bentley
> Hi! > Have a look at cclive, which support most of sites : > http://cclive.sourceforge.net/ Similarly, get_flash_videos: https://code.google.com/p/get-flash-videos/ -- Anthony J. Bentley

Re: [dev] Stripping html from email

2010-08-23 Thread Anthony J. Bentley
> Is there currently a tool or script that I can use to strip html > from emails? Basically, it should work like this: > > - Read the message from stdin > - If there is no html, leave as is > - If it finds both html and plain text, strip the html attachment > - If it finds html but no plain text,

[dev] st on OpenBSD?

2010-08-22 Thread Anthony J. Bentley
Hi guys, I am interested in using st on OpenBSD, but it does not compile since OpenBSD does not implement posix_openpt et al: st.c: In function 'ttynew': st.c:243: warning: implicit declaration of function 'posix_openpt' st.c:245: warning: implicit declaration of function 'grantpt' st.c:247: warn

Re: [dev] Fwd: OT:GUI wireless connections management?

2010-05-30 Thread anthony
ve with it is that the compose key only supports ISO8859 characters... --Anthony J. Bentley

Re: [dev] Re: stali and OpenBSD userland etc.

2010-04-10 Thread Anthony J. Bentley
On Sat, Apr 10, 2010 at 06:26:12PM +0200, finkler wrote: > What is missing in OBSD: > base64 It's not quite the same, but OpenBSD does have b64encode/b64decode. Part of uuencode I believe. --Anthony J. Bentley

Re: [dev] [sw] Suckless web-framework

2010-04-05 Thread Anthony J. Bentley
reminds me -- has anyone used hubbub? I'd love an excuse to make a project with it. --Anthony J. Bentley

Re: [dev] stali and the shipped compilers

2010-01-14 Thread Anthony Bentley
On Thu, Jan 14, 2010 at 09:42:02PM +0100, pancake wrote: > I would prefer to drop gcc, glibc and all the shit from gnu. > > Tcc and dietlibc are usable solutions and maybe the code is not the > best one but at least is sane. How about pcc?