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
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
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
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
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
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
ou might as well go all the way.
--
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.
> >
> > ```
>
lways mandoc. But anti-Unix lack of piping blah blah.
--
Anthony J. Bentley
at you).
libagar?
--
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
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
Programming Style by
Kernighan & Plauger. My personal favorite computer-related book.
--
Anthony J. Bentley
g time ago they were an African tribe.
Anthony
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
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
amp;m=141612991809812&w=2
Another interesting C project is libfirm+cparser.
--
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
"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
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
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
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
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
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
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
>
rought up on this list in previous discussions.
--
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
> 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
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
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
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
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
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
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).
;.
> 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
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/
... is more DBUS.
https://lwn.net/Articles/551969/
https://github.com/gregkh/kdbus/blob/master/kdbus.txt
My condolences,
Anthony
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.
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
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
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
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
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
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
rolling to ^u and ^i, remove ^g scrolling.
--
Anthony Cox
in OpenBSD, it's in the archives:
http://marc.info/?l=openbsd-tech&m=127910804900619&w=2
--
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
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
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
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
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
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
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.
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
status
VmSize:21920 kB
VmRSS: 10036 kB
% grep '^Vm(Size|RSS)' /proc/`{pgrep dwm}^/status
VmSize: 5376 kB
VmRSS: 696 kB
Anthony
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
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
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
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
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
> > 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.
I haven’t tried it, don’t trust
random scripts from the Internet, read it through first…
--
Anthony J. Bentley
till open in memory and you can grab it from there.
--
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
> 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,
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
ve with it is that the compose key
only supports ISO8859 characters...
--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
reminds me -- has anyone used hubbub? I'd love an excuse to make
a project with it.
--Anthony J. 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?
70 matches
Mail list logo