Re: [hackers] [st] st-alpha-0.7.diff not working
Thank you very much Martin for your kind reply! But I still cant make it work, Gentoo fails when applying the patch, apparently because of the lines below diff --git a/st.h b/st.h index 44d4938..11a8174 100644 --- a/st.h +++ b/st.h @@ -2,6 +2,7 @@ /* Arbitrary sizes */ #define UTF_SIZ 4 +#define OPAQUE0xff /* macros */ #define MIN(a, b) ((a) < (b) ? (a) : (b)) @@ -17,6 +18,8 @@ (t1.tv_nsec-t2.tv_nsec)/1E6) #define MODBIT(x, set, bit)((set) ? ((x) |= (bit)) : ((x) &= ~(bit))) +#define USE_ARGB (alpha != OPAQUE && opt_embed == NULL) + #define TRUECOLOR(r,g,b) (1 << 24 | (r) << 16 | (g) << 8 | (b)) #define IS_TRUECOL(x) (1 << 24 & (x)) @@ -134,6 +137,7 @@ typedef struct { int w, h; /* window width and height */ int ch; /* char height */ int cw; /* char width */ + int depth; /* bit depth */ char state; /* focus, redraw, visible */ int cursor; /* cursor style */ } TermWindow; which exists in your copy but is not present in st-alpha-0.7.diff from https://st.suckless.org/patches/alpha/. (Very very very very very) noob question: what is the difference between files config.def.h and st.h? Because in gentoo I only see st-0.7, which I have been assuming to be config.def.h. Thank you again! On Mon, Nov 20, 2017 at 5:22 PM, Martin Kühne wrote: > I'm maintaining my copy of the patch on > https://github.com/mar77i/dotfiles/tree/master/abs/st-git > > cheers! > mar77i > >
Re: [hackers] [swerc] use png logo again || Hiltjo Posthuma
On Tue, Nov 21, 2017 at 08:20:00PM +0100, Markus Teich wrote: > Laslo Hunhold wrote: > > I understand the reasons for the switch, most prominently the security > > implications for people visiting suckless.org with the Tor-browser > > (because SVGs can contain embedded javascript). > > Quality-wise though, it sadly is a step down and we should definitely > > look for a better solution. See attached images for a comparison at a > > higher zooming level. The artifacts seen are due to the biquadratic > > scaling algorithm applied to the png on higher scaling levels. > > > > I like to optimize for the 99% and when people are truly concerned > > about security (using Tor), they should disable JavaScript altogether. > > Thus, keeping the svg would be my personal preference weighing the pros > > and cons. > > This is my personal opinion though and I'd love to hear what the others > > have to say about this. > > Heyho, > > I thought the Tor Browser has js enabled deliberately to hide in the mass of > other users. Basically not having js enabled is a red flag for "this person > might be interesting". Did they change that policy? > > I'd prefer svg as well. > > --Markus > It is disabled in a higher security mode. There are also other reasons to not use SVG. I've discussed it on IRC and we now provide a bigger resolution logo so the zooming is still fine (which was a concern of FRIGN). Let's not waste any more time on such a small thing. -- Kind regards, Hiltjo
Re: [hackers] [swerc] use png logo again || Hiltjo Posthuma
Laslo Hunhold wrote: > I understand the reasons for the switch, most prominently the security > implications for people visiting suckless.org with the Tor-browser > (because SVGs can contain embedded javascript). > Quality-wise though, it sadly is a step down and we should definitely > look for a better solution. See attached images for a comparison at a > higher zooming level. The artifacts seen are due to the biquadratic > scaling algorithm applied to the png on higher scaling levels. > > I like to optimize for the 99% and when people are truly concerned > about security (using Tor), they should disable JavaScript altogether. > Thus, keeping the svg would be my personal preference weighing the pros > and cons. > This is my personal opinion though and I'd love to hear what the others > have to say about this. Heyho, I thought the Tor Browser has js enabled deliberately to hide in the mass of other users. Basically not having js enabled is a red flag for "this person might be interesting". Did they change that policy? I'd prefer svg as well. --Markus
[hackers] [swerc] don't set border on img, text-encoding before || Hiltjo Posthuma
commit f452c18e02cec0e25fbacad3f275d78b5a22ab4e Author: Hiltjo Posthuma AuthorDate: Tue Nov 21 20:12:49 2017 +0100 Commit: Hiltjo Posthuma CommitDate: Tue Nov 21 20:12:49 2017 +0100 don't set border on img, text-encoding before diff --git a/tpl/master.tpl b/tpl/master.tpl index b2eab3a..b5d0eb5 100644 --- a/tpl/master.tpl +++ b/tpl/master.tpl @@ -1,13 +1,13 @@ + %($pageTitle%) - - + %($"siteTitle%) %($"siteSubtitle%)
Re: [hackers] [swerc] use png logo again || Hiltjo Posthuma
On Tue, 21 Nov 2017 18:50:23 +0100 (CET) g...@suckless.org wrote: Hey Hiltjo, > use png logo again I understand the reasons for the switch, most prominently the security implications for people visiting suckless.org with the Tor-browser (because SVGs can contain embedded javascript). Quality-wise though, it sadly is a step down and we should definitely look for a better solution. See attached images for a comparison at a higher zooming level. The artifacts seen are due to the biquadratic scaling algorithm applied to the png on higher scaling levels. I like to optimize for the 99% and when people are truly concerned about security (using Tor), they should disable JavaScript altogether. Thus, keeping the svg would be my personal preference weighing the pros and cons. This is my personal opinion though and I'd love to hear what the others have to say about this. With best regards Laslo Hunhold -- Laslo Hunhold
[hackers] [swerc] use png logo again || Hiltjo Posthuma
commit 70bc88b16783cc9f3a8031ef68e845534493fb88 Author: Hiltjo Posthuma AuthorDate: Tue Nov 21 18:45:56 2017 +0100 Commit: Hiltjo Posthuma CommitDate: Tue Nov 21 18:45:56 2017 +0100 use png logo again diff --git a/tpl/master.tpl b/tpl/master.tpl index 0f08cca..b2eab3a 100644 --- a/tpl/master.tpl +++ b/tpl/master.tpl @@ -7,7 +7,7 @@ - + %($"siteTitle%) %($"siteSubtitle%)