[dev] A secure wireless protocol

2023-10-14 Thread Sagar Acharya
Dear devs,

Currently, all phones use WiFi, GSM, Bluetooth networks in practically all 
applications. For WiFi and Bluetooth replacements, do you have any alternate 
network in mind which caters to only local public and private keys.

So, a network which before transmitting a packet, encrypts it with the 
recipients' public key and broadcasts it with recipients id as header, say like,



A list of MAC addresses would be maintained on WiFi server end for each device. 
Are there already such network softwares made out there?

The aim is no dhcp and not a single device outside list can communicate.
Thanking you
Sagar Acharya
https://humaaraartha.in/selfdost/selfdost.html



[dev] Use of sdhcp

2023-10-05 Thread Sagar Acharya
How to use sdhcp? Can it be used to create an internal network where a cat6 
cable is connected via /dev/ttyS1 to another PC.

Is it possible to run a daemon which provides network in system 1 to the one 
connected across /dev/ttyS1?

http://git.2f30.org/sdhcp/


Thanking you
Sagar Acharya
https://humaaraartha.in/selfdost/selfdost.html



Re: [dev] Suckless web crawlers

2023-09-26 Thread Sagar Acharya
It would not be as easy as that. One would have to rank the page, search for 
keywords for getting the page of relevant words are typed in search box. 


Thanking you
Sagar Acharya
https://humaaraartha.in/selfdost/selfdost.html



26 Sept 2023, 22:39 by d.toni...@gmail.com:

> I don't know exactly what you expect from your web crawler but let's say you 
> want to index every link there is on a page.
>
> you can just curl the page then grep for any link and for each link redo the 
> operation...
>
> This can easily be done with a small bash script (or c program if you want it 
> to be [insert here why you would want that])
>
> I can't personally recommend any crawler as I would clearly do it that way.
>
> Regards.
>
> Debucquoy Anthony (tonitch)
>
> On 9/26/23 14:13, Sagar Acharya wrote:
>
>> Which web crawlers and indexing tools does suckless suggest?
>>
>> The ones I searched for, the best I could find was xapian and it required 
>> targeted indexing I guess, i.e. for html, documents, etc.
>>
>> Which crawlers and indexers do you suggest?
>>
>>
>> Thanking you
>> Sagar Acharya
>> https://humaaraartha.in/selfdost/selfdost.html
>>



[dev] Suckless web crawlers

2023-09-26 Thread Sagar Acharya
Which web crawlers and indexing tools does suckless suggest?

The ones I searched for, the best I could find was xapian and it required 
targeted indexing I guess, i.e. for html, documents, etc.

Which crawlers and indexers do you suggest?


Thanking you
Sagar Acharya
https://humaaraartha.in/selfdost/selfdost.html



Re: [dev] getting rid of cmake builds

2023-09-22 Thread Sagar Acharya
You can have inputs like 

./build.dash rebuild

which first cleans earlier compiled files and builds.

Dependencies would go into logic of shell script, it can have 
check_dependencies which checks for files. Normally as you code a shell script!


Thanking you
Sagar Acharya
https://humaaraartha.in/selfdost/selfdost.html



22 Sept 2023, 13:31 by cont...@strahinja.org:

> On 23/09/22 09:50AM, Sagar Acharya wrote:
>
>> A better way to build is to write a build.dash script
>>
>
> Some elaboration is needed.
>
> In what way would this shell script be better than the make systems I listed? 
> How does it decide when rebuilding is needed? Does it track dependencies and 
> how?
>



Re: [dev] getting rid of cmake builds

2023-09-22 Thread Sagar Acharya
A better way to build is to write a build.dash script

It would simply execute in shell. I use this method. It is extremely readable 
and manageable. Ofc, it cannot be used for other softwares where bloatware is 
used!


Thanking you
Sagar Acharya
https://humaaraartha.in/selfdost/selfdost.html



22 Sept 2023, 10:17 by cont...@strahinja.org:

> On 23/09/21 09:42AM, LM wrote:
>
>> I build a lot of common libraries and programs from source.  Many of
>> them are switching to cmake.  I'm not a fan of cmake.  For one thing,
>> it's so complicated to build from source code that I can't bootstrap
>> the build of cmake itself.  I really would prefer to build as many of
>>
>
> I agree. Anyone who tries to build a LFS system (or a derivation of it) will 
> inevitably come across the beast that is cmake. When creating build scripts 
> for 
> "roll my own" static musl distro, Galeb[1], I came to several conclusions:
>
> * cmake is a bloated mess (understatement), takes ages to build
> * It being written in C++ is part of the reason for the above
> * cmake can't properly figure out static library dependencies, in some 
>  cases they still need to be configured manually
>
> When it comes to the choice of a build system, I know of a number of options 
> which are way better than cmake (in no particular order):
>
> - djb redo
> - POSIX make
> - Plan9 mk
>
> On topic, I'm afraid I haven't come across any automated converters, and as 
> others have stated, it probably isn't even possible. I think it would be 
> easier 
> to write build scripts for packages using cmake in a simpler build system 
> from 
> scratch.
>
>
> [1]: https://strahinja.srht.site/galeb/
>



Re: [dev] C cgi based forum services

2023-08-10 Thread Sagar Acharya
I did. I was unable to find any which is why I sent my question to the experts! 
Thanking you
Sagar Acharya
https://humaaraartha.in



10 Aug 2023, 13:18 by hil...@codemadness.org:

> On Thu, Aug 10, 2023 at 09:21:15AM +0200, Sagar Acharya wrote:
>
>> Are there any nice cgi based forums out there?
>>
>> Which provide register, login and posting?
>>
>> It would be best if they're coded in C or Lua.
>>
>>
>> Thanking you
>> Sagar Acharya
>> https://humaaraartha.in
>>
>
> Yes, but you could do some own research into it also.
>
> -- 
> Kind regards,
> Hiltjo
>



[dev] C cgi based forum services

2023-08-10 Thread Sagar Acharya
Are there any nice cgi based forums out there?

Which provide register, login and posting?

It would be best if they're coded in C or Lua.


Thanking you
Sagar Acharya
https://humaaraartha.in



[dev] C variants, compilers and completeness

2023-07-24 Thread Sagar Acharya
I see C compilers recommended by suckless are:

tinycc
simplecc
cproc
qbe
lacc

Which variant of C do they offer? What are the differences and do they offer 
sufficient features to express with a program completely?

Kindly comment some more on your explanation.
Thanking you
Sagar Acharya
https://humaaraartha.in



Re: [dev] Suckless DNS server

2023-07-19 Thread Sagar Acharya
Hello, folks,

Authoritative suckless DNS server recommendations please!
Thanking you
Sagar Acharya
https://humaaraartha.in



20 Jul 2023, 10:32 by minsh...@umich.edu:

>> I meant `ntohs`... and this further proves your point.
>> Thank you for your insight & for the article.
>>
>
> +1 !
>



Re: [dev] Suckless DNS server

2023-07-19 Thread Sagar Acharya
Please let us know authoritative and recursive DNS servers.
Thanking you
Sagar Acharya
https://humaaraartha.in



19 Jul 2023, 18:50 by stargrave+suckl...@stargrave.org:

> *** Sagar Acharya [2023-07-19 15:08]:
> >Which DNS server do you recommend to use?
>
> https://github.com/janmojzis/dq is pretty lightweight and simple.
> It is based on DJB's https://cr.yp.to/djbdns.html, but supports IPv6 and
> most importantly DNSCurve, that does not rely on single trust anchor and
> just does not suck: 
> https://dnscurve.io/faq/differences-between-dnscurve-and-dnssec.html
>
> However personally I also like https://nlnetlabs.nl/projects/unbound/about/
> that is used by default in FreeBSD and OpenBSD, being relatively
> lightweight too. It has built-in DNSCrypt (if you desire it), full
> cached DNSSEC support and DNS64.
>
> -- 
> Sergey Matveev (http://www.stargrave.org/)
> OpenPGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A
>



[dev] Suckless DNS server

2023-07-19 Thread Sagar Acharya
Which DNS server do you recommend to use?

I use pdns, I think a DNS server can be a thing which merely resolves a string 
and cryptography for encryption, namely DNSSEC.

Comments around the concepts are welcome.
Thanking you
Sagar Acharya
https://humaaraartha.in



Re: [dev] Minimalist software. Should I care?

2023-07-05 Thread Sagar Acharya
I've worked most of the things out. Almost there.

This is not for them. This is for you, the server host.

700,000 people, I will be very glad with such a market size. It is so true that 
people don't give a rat's ass about their privacy!

1 step at a time. Let us form the critical mass now that the fantastic suckless 
devs have created this beautiful resource. With AllWinner RISCV out, Genode OS, 
tinycc, musl, dwm, dmenu, mini_httpd, opensmtpd, prosody, abiword, gnumeric, 
GIMP, lua, all our functionalities are covered and we can certainly make 
progress. 

Let us march forth, comrade!
Thanking you
Sagar Acharya
https://humaaraartha.in



5 Jul 2023, 20:47 by d...@killthe.net:

> On Wed, 5 Jul 2023 10:23:57 +0200 (CEST)
> Sagar Acharya  wrote:
>
>> That is exactly what I'm trying to achieve. Capital is whatI lack. Soon I 
>> will be releasing Libre-Ads, a random non-targeted ads system specially for 
>> Freedom respecting people.
>>
>> So self-hosters can self sustain and they don't have to beg for donations 
>> from companies who sell binaries and target ads.
>>
>
> Dude, you are delusional. Plain and simple. 
>
> Self-hosting has been completely possible since the beginning of time. It 
> costs peanuts. And look what we have instead: Facebook, Instagram, Gmail, and 
> so on. Nobody cares.
>
> You think 99% of the population gives a fuck about "binaries" or "targeted 
> ads"? These are the people who happily use nothing but Microsoft malware or 
> systemd or whatever and give zero fucks about privacy or freedom. They have 
> their every bowel movement or uttered thought tracked via "smart" devices, 
> and they LOVE IT. Every single "thought" anyone in this "society" ever has is 
> programmed in their minds by some corporate or government entity, and each 
> and every one of these people is perched on the edge of their seat in 
> anticipation of the day when their "smart" devices can directly read their 
> minds also, so they can have a more intimate connection to their slave 
> masters. They're better than you and smarter than you and they're sure of it, 
> and you can't tell them shit. 
>
> You think ANYONE, particularly corporations who make all their money by 
> siphoning it out of the pockets of these people, collecting all of their 
> personal data and reselling it, while constantly brainwashing them to believe 
> whatever their owners want them to believe, give two shits about any "Libre" 
> ad system, or would have any use for that at all? 
>
> It's non targeted? Who the fuck wants that? The people who own this world 
> want everybody TRACKED, TARGETED, OWNED--and their slaves WANT to be TRACKED, 
> TARGETED, OWNED, with a slave collar around their necks. Hard truth. The most 
> merciful thing you can actually do for any of these pitiful fools is grant 
> them a quick death. Abandon all hope of reeducating or reaching anyone, other 
> than a select, tiny few. 
>
> If you believe that even 1% of 1% are interested in your dream of "self 
> hosting" anything, you are NOT living on the same planet as the rest of 
> humanity.
>



Re: [dev] Minimalist software. Should I care?

2023-07-05 Thread Sagar Acharya
Well, firstly I suggest using disroot instead of gmail.

That is a good start.

One of the key problems I find today is that of separating bots from humans. If 
we fail to do so, bots can be innumerable speaking from a vast IPv6 space. All 
attempts to correct such attack will fail!

Once we take a whitelisting approach, that of fixing IPv6 addresses and moving 
forward with decentralized servers with people hosting themselves, progress 
will be made.
Thanking you
Sagar Acharya
https://humaaraartha.in



5 Jul 2023, 00:25 by nikita.nikita.kras...@gmail.com:

>> I take a practical approach. I use simple programs when they do the job 
>> well, and more complex programs when
>> they get the job done better. Sometimes a simple program
>> can be useful for certain jobs, such as ones involving
>> shell scripting, whereas a complex program may be more
>> useful for example in other applications, such as using Solidworks for 
>> engineering work. LaTeX is certainly a bloated monstrosity, but the damn 
>> thing is useful for a lot of different tasks.
>>
>> People on this email list tend to go to an extreme in favoring simplicity 
>> above all else, which is why they release dumpster fires like the ST 
>> terminal emulator for example which has absolutely no features at all, is 
>> riddled with bugs and compatibility problems, and requires extensive 
>> patching to add in any useful features. The developers are also 
>> basement-dwelling losers, total raging assholes who take personal offense to 
>> the suggestion that their code should be better commented or that someone 
>> might fork the code to make an improved version.
>>
>> I tried ST for a time before realizing it was trash and just switched back 
>> to Xterm, the gold standard of functional X11 terminal emulators, which the 
>> ST developers talked shit about, calling "bloated" in their documentation, 
>> and saying the code wasn't good. Actually it is not bloated, the code 
>> quality is much higher than ST (and is actually commented!), It Just 
>> Works(TM), and it's noticeably faster as well when ST is patched with the 
>> juvenile "scrollback buffer support" implementation--which calls malloc() 
>> once for every line(!) of the scrollback buffer.
>>
>> Take anything that a religious cult member says with a grain of salt.
>>
>> Dave
>>
>
> Oof, I feel like that's gonna start one hell of a flame war right now.
>
> About suckless's software. Personally, I've got an impression that it's not 
> about personal use. Like, you aren't really expected to install ST as you 
> main and everyday terminal. These programs are more of a collection of tools 
> that should be combined and embedded as a foundation for something bigger.
>
> Firefox will always be better than surf, it just will. But replacing Firefox 
> is not what surf should strive for. It's more of a tool for situations when 
> you need an ability to embed a website and full-blown Firefox or Chrome will 
> be an overkill.
>
> That said, if there are any compatibility problems _(which there probably 
> are, since why shouldn't there be any compatibility problems when your main 
> goal when writing software is to make it as small as possible)_ than that 
> kind of ruins the whole purpose of all of this...
>
> -- 
> Nikita
>



Re: [dev] Minimalist software. Should I care?

2023-07-04 Thread Sagar Acharya
I have analysed this a while ago, so I would point you to this nice article by 
me.

https://humaaraartha.in/sagar/trusting_no_one.html

Thanking you
Sagar Acharya
https://humaaraartha.in



4 Jul 2023, 21:36 by nikita.nikita.kras...@gmail.com:

> Just bear with me on this one, this is not a bait or a troll, I promise. I 
> genuinely fell very confused.
>
> What would be the point of using minimalist software if bloated and 
> excessively complex programs completely satisfy all my needs? I am not the 
> kind of person that works directly with hardware, but it's not like I use my 
> system only as a bootloader for a web browser either. It's just that my 
> current workflow feels pretty complete to me.
>
> Take LaTeX, for example. I do all of my LaTeX in TeXstudio and, frankly, I'm 
> satisfied with it. Autocompletion is there by default and there are many 
> shortcuts that I don't need to set up myself. I simply use the all of this.
>
> You could say that TeXstudio is pretty bloated and isn't that flexible in 
> terms of configuring and using it in conjunction with other applications. And 
> you'd be right. But if I'll try to use more minimalist software like Neovim I 
> would spend an endless amount of time configuring and patching all the 
> features I now take for granted. And even if I succeed, there will certainly 
> be a time when I would need some feature I haven't thought of in advance (a 
> need to use a debugger inside Nvim, idk) and I would have to either avoid 
> this feature for the time being or abandon anything I am currently doing and 
> try to search information on how to integrate this thing into my system and 
> into my workflow.
>
> If I had used one of the bloated programs I probably could have found a 
> solution in one of the menus after reading few Stack Overflow answers. But 
> with Neovim I'd have to first find the program that would be suitable for 
> what I try to achieve, then I'd have to read many lines or pages of 
> documentation, after that I'd have to implement that thing and only then I'd 
> be able to use the thing.
>
> Such minimalism just seems unpractical to me. Maybe I have the wrong mindset 
> when it comes to these things.
>
> I do love using more niche and minimalist programs. I like when things are 
> small, simple and understandable. I really like C over C++, Rust or anything 
> else exactly for that reason. It's just makes computers fun, comfortable and 
> cute (idk how else to describe it). But am not fond of endlessly configuring 
> these things before they become even semi-practical. I really don't know what 
> to think about all of this. What do you have to say about this?
>
> --
> Nikita
>




Re: Offtopic ranting | was: (Re: [Mail style feedback] ]Re: [dev] Simpler WiFi alternatives [w/ bonus oneliner])

2023-07-01 Thread Sagar Acharya
Large free software is not real free software. To customize one's software to 
one's needs, one has to understand it, tweak it and improve it. Bloated large 
free software does none.

Almost all GNU software is like that. It is unfortunate but one of the key 
reasons why GNU software survives is because it makes users dependent on it 
without allowing to shift to other software. Like gcc and linux.


Thanking you
Sagar Acharya
https://humaaraartha.in



1 Jul 2023, 12:05 by dormo...@plch.xyz:

> On Fri, Jun 30, 2023 at 03:50:20PM -0400, fo...@dnmx.org wrote:
>
>> > On Thu, Jun 29, 2023 at 11:14:56AM -0400, fo...@dnmx.org wrote:
>> > > > Hey, Fossy,
>> > > >
>> > > > please be mindful of how you style your e-mails, when there is a quoted
>> > > > text, it is necessary to have an 'arrow' [>] at the start of each line,
>> > > > otherwise it is not considered a quoted text. For example, this part:
>> > > >
>> > > > > > I don't think anyone is shocked by your messages. They just come
>> off as
>> > > > > crass. Imagine going to a conference in real life and one of the
>> > > > > speakers goes on a 10 min rant filled with swearing and irrelevant
>> > > > > material halfway through his talk. Some people might be offended.
>> Most
>> > > > > would be thinking "why am I wasting my time on this idiot?".
>> > > >
>> > > > means that only the first line is from the e-mail you have responded
>> to,
>> > > > the other four are from your very own keyboard (quoted in this case
>> > > > because I am responding to that text).
>> > > >
>> > > > It's not a super huge deal, but it can mess up for example my
>> highliting
>> > > > in neomutt and could confuse some threading in different mailing
>> clients.
>> > > >
>> > > > To see the messed up highlight, see attached image.
>> > > >
>> > > > Have a good one.
>> > > > --
>> > > > # Marcel Plch
>> > > >
>> > > > ()  ascii ribbon campaign - against html e-mail
>> > > > /\- against proprietary attachments
>> > > >
>> > > > ## What is that .asc attachment on my e-mails?
>> > > >
>> > > > * https://gnupg.org/
>> > > >
>> > > > ## Contact:
>> > > >
>> > > > * Website: https://plch.xyz
>> > > > * Gitea: https://gitea.plch.xyz/dormouse
>> > > > * Matrix: @dormouse:matrix.org
>> > >
>> > >
>> > > Hi!
>> > >
>> > > Alright..
>> > > I did know it looked weird, but I thought it was fine because I use a
>> dodgy
>> > > "dark-net" e-mail provider anyways, so the lining looked weird..
>> > >
>> > > So how I do it is download the file (don't bother copy-pasting, new-line
>> > > doesn't get included so everything just gets joined in one line), and
>> then
>> > > do a
>> > > pipe to `sed 's/^/> /'`.
>> > > I format my lines to 79c if it matters.
>> > >
>> > > But I think everything breaks on the e-mail client in the browser...
>> after
>> > > all,
>> > > I don't support ShitScripts in browsers, not have it enabled.
>> > >
>> > > I'll play a bit with e-mail web-site settings and see if that helps.
>> > >
>> > > Thanks for pointing it out, I do care how I look (starting from yesterday
>> > > :P).
>> > >
>> > > EDIT: Ah, I know what happens.. I need to somehow get sed to split lines
>> > > into multiple ones before appending the '> '.. because the e-mail client
>> > > also splits them above 76 or something like that.. cool client, but fucks
>> > > up shit like this.
>> > >
>> > > Any command or rather utility to do that? I'm looking at either sed with
>> > > brackets somehow, or probably something like `split`, `tr`? :/
>> > >
>> > >
>> >
>> > Just get a better e-mail provider. dnmx is cool when you need top-notch
>> > anonymity, but this is just a regular dev forum.
>>
>> I deny non-top-notch anonymity not only because I consider it
>> immoral/unfair to
>> myself, but also because my life depends on it.
>> I

Re: [Mail style feedback] ]Re: [dev] Simpler WiFi alternatives [w/ bonus oneliner]

2023-06-30 Thread Sagar Acharya
OpenSMTPD, the only sanely configurable mailserver.

I use nano and mousepad. They are extremely minimal and fantastic! I need just 
some basic features in an editor like syntax highlighting, block indent and 
it's reverse, ability to edit :P , and nothing more!
Thanking you
Sagar Acharya
https://humaaraartha.in



1 Jul 2023, 01:20 by fo...@dnmx.org:

>> On Thu, Jun 29, 2023 at 11:14:56AM -0400, fo...@dnmx.org wrote:
>> > > Hey, Fossy,
>> > >
>> > > please be mindful of how you style your e-mails, when there is a quoted
>> > > text, it is necessary to have an 'arrow' [>] at the start of each line,
>> > > otherwise it is not considered a quoted text. For example, this part:
>> > >
>> > > > > I don't think anyone is shocked by your messages. They just come
>>
> off as
>
>> > > > crass. Imagine going to a conference in real life and one of the
>> > > > speakers goes on a 10 min rant filled with swearing and irrelevant
>> > > > material halfway through his talk. Some people might be offended.
>>
> Most
>
>> > > > would be thinking "why am I wasting my time on this idiot?".
>> > >
>> > > means that only the first line is from the e-mail you have responded
>>
> to,
>
>> > > the other four are from your very own keyboard (quoted in this case
>> > > because I am responding to that text).
>> > >
>> > > It's not a super huge deal, but it can mess up for example my
>>
> highliting
>
>> > > in neomutt and could confuse some threading in different mailing
>>
> clients.
>
>> > >
>> > > To see the messed up highlight, see attached image.
>> > >
>> > > Have a good one.
>> > > --
>> > > # Marcel Plch
>> > >
>> > > ()  ascii ribbon campaign - against html e-mail
>> > > /\- against proprietary attachments
>> > >
>> > > ## What is that .asc attachment on my e-mails?
>> > >
>> > > * https://gnupg.org/
>> > >
>> > > ## Contact:
>> > >
>> > > * Website: https://plch.xyz
>> > > * Gitea: https://gitea.plch.xyz/dormouse
>> > > * Matrix: @dormouse:matrix.org
>> >
>> >
>> > Hi!
>> >
>> > Alright..
>> > I did know it looked weird, but I thought it was fine because I use a
>>
> dodgy
>
>> > "dark-net" e-mail provider anyways, so the lining looked weird..
>> >
>> > So how I do it is download the file (don't bother copy-pasting, new-line
>> > doesn't get included so everything just gets joined in one line), and
>>
> then
>
>> > do a
>> > pipe to `sed 's/^/> /'`.
>> > I format my lines to 79c if it matters.
>> >
>> > But I think everything breaks on the e-mail client in the browser...
>>
> after
>
>> > all,
>> > I don't support ShitScripts in browsers, not have it enabled.
>> >
>> > I'll play a bit with e-mail web-site settings and see if that helps.
>> >
>> > Thanks for pointing it out, I do care how I look (starting from yesterday
>> > :P).
>> >
>> > EDIT: Ah, I know what happens.. I need to somehow get sed to split lines
>> > into multiple ones before appending the '> '.. because the e-mail client
>> > also splits them above 76 or something like that.. cool client, but fucks
>> > up shit like this.
>> >
>> > Any command or rather utility to do that? I'm looking at either sed with
>> > brackets somehow, or probably something like `split`, `tr`? :/
>> >
>> >
>>
>> Just get a better e-mail provider. dnmx is cool when you need top-notch
>> anonymity, but this is just a regular dev forum.
>>
>
> I deny non-top-notch anonymity not only because I consider it
> immoral/unfair to
> myself, but also because my life depends on it.
> I've said/made/shared things with solid logic/linked evidence that puts
> governments and/or corporations in ugliest/darkest/evilest of lights, if that
> makes sense.. as well as done a few fun things such as denying the law
> manipulation over my life :).
>
>
>> I host my own and stuff works fine. (Dovecot, fetchmail, neomutt)
>>
>
> I am considering running my own suckless e-mail server, but only and only
> after
> I make my computers go trough a router/firewall rules to be 

[dev] Suckless filesystems

2023-06-22 Thread Sagar Acharya
Which are the filesystems which suckless recommends?

In my view, simple ones are FAT32, ext2.

I think journaling is required which I see as within disk backup. A robust and 
easy fsck like program which corrects errors easily. And a program which 
periodically checks memory and replaces all corrupted file data with journaled 
data to be spick and span.

What are your views on these?
Thanking you
Sagar Acharya
https://humaaraartha.in

Lately, I'm having some hard time with ufs2



Re: [dev] [dwm] swallow without patching dwm -- or losing focus

2023-05-25 Thread Sagar Acharya
Beautiful code. As a rookie user, how will this code be used? Can this be a 
complete Xenocara/Xorg alternative?
Thanking you
Sagar Acharya
http://humaaraartha.in <https://humaaraartha.in>



26 May 2023, 05:45 by tr...@equwal.com:

> Greetings,
>
> I converted this swallow program to C, not that it makes any difference
> at this code size. It's just a couple of malloc'd strings.
>
> https://github.com/equwal/swallow-c--
>
> I'd like to make it actually transfer the terminal's focus rather than
> async open and hide itself. That way you get the program you opened in the
> tag you opened it in, which is something I've been trying to do for a
> long time in multiple window managers.
>
> The author pointed out that "startup hooks" can do this in some window
> managers, but I like the idea of not even having that be part of the WM
> itself.
>
>
> -- 
> CAEE B377 FC82 BAF9 102C  D22F C5CE D003 1AA8 E281
> Spenser Truexhttps://equwal.com
>



Re: [dev] Simpler WiFi alternatives

2023-05-13 Thread Sagar Acharya
Yep. That is true. I didn't think of that at all! But then, why do current 
WiFi, etc. work at 2.4GHz, if device speeds aren't at those levels?

I'll try wireless transmissions of files at 10MHz then in the lower frequency 
regions. Then by replacing hardware, maybe I'll just have to change a single 
number!

I already use just wired connections but today's extreme use of mobile phones 
has made securing wireless networks a compulsion!
Thanking you
Sagar Acharya
http://humaaraartha.in <https://humaaraartha.in>



13 May 2023, 15:20 by d...@dbrooke.me.uk:

> A simpler alternative to WiFi is to use wires 8-)
>
> Seriously, the radio frequency techniques necessary to provide
> sufficient throughput for today's applications are inevitably complex.
>
> On Fri, May 12, 2023 at 05:43:04PM +0200, Sagar Acharya wrote:
>
>> What I'm trying to find is a simple C program which can be run on Arduino 
>> and analog pins connected to an antenna.
>>
>
> The lowest frequency at which WiFi operates is the 2.4GHz band, an
> Arduino (there are many variants, of which some will be faster) is
> likely to be clocked at 10s of MHz so will be unable to generate
> suitable radio frequency signals at its analogue pins.
>
> Back in the '90s I was running TCP/IP over amateur radio at low data
> rates (9600 bps) using KA9Q NOS [1] which was a single C program for
> DOS. It's probably close to the minimum needed for a router, although it
> does typically include some application level features.
>
> These days even embedded systems will likely use an RTOS which may
> include an existing protocol stack, e.g. RTEMS [2] uses a port of the
> FreeBSD stack.
>
> David
>
> [1] http://www.ka9q.net/code/ka9qnos/
> [2] https://www.rtems.org/
>



Re: [dev] Simpler WiFi alternatives

2023-05-12 Thread Sagar Acharya
Let us get back this conversation on track. What I'm trying to find is a simple 
C program which can be run on Arduino and analog pins connected to an antenna.

I did read this book "IPv6 essentials". What I want is a single C programs 
which distributed packets to say, 5 connected devices. The logic sounds pretty 
easy. Tag each request with an id, send, recieve and send it back to that 
device. Initially, handshakes would connect such devices.

Josuah's takes were interesting. I suggest you don't mind going along the 
tangent a bit. It adds to fun of life. I'm looking for low-range within home 
router.

Thanking you
Sagar Acharya
http://humaaraartha.in <https://humaaraartha.in>



12 May 2023, 18:01 by m...@josuah.net:

> Страхиња Радић  wrote:
>
>> On 23/05/11 04:03PM, fo...@dnmx.org wrote:
>> 
>>
>
> Good point: if the author cares about the project presented,
> why would he interleave every sentense with swearing.
>
>> This list needs moderation ASAP, otherwise it risks turning into another
>> Reddit (which, for those who might not know, is a veritable cesspool).
>>
>
> Agreed, [dev] is not [rant]. This was not pleasant to read.
>
>> [shittily-put rant]{1} which [should be useful]{2}
>>
>
> {1} does not work well with {2}... how about rewriting this draft
> sent too early into a document that you can present to the firmware,
> hardware, software, and gateware developers, and antenna designers
> (essential if you want a bit of range, you talked about kilometers)
> you'd need to team-up with to get such a project done?
>
> Eventually on its own repo to synthesize the infirmation about it.
>
> Even if you end-up finding a device that matches, the research about
> it can then be useful to people interested in it.
>



[dev] Simpler WiFi alternatives

2023-05-10 Thread Sagar Acharya
I think routers ought to be way simpler than they currently are. I wonder if 
y'all can recommend me some minimal C code which can be used as a router.

I think that if the analog pins of arduino are connected to an antenna, and a C 
code similar to,

while 1
    If (switch_1==1)        create_connection_with_handshake()
    else if (switch_1==0)        send_packet_to_isp()
        receive_packet_from_isp()
        
Something like that. Are there some existent projects like that? I really don't 
think a router requires LibreCMC or OpenWRT like gigantic OSes.


Thanking you
Sagar Acharya
http://humaaraartha.in <https://humaaraartha.in>



Re: [dev] Servers with TLS support

2023-05-08 Thread Sagar Acharya
Thanks. althttpd looks great. Since I'm hosting on NetBSD, I found that there 
is a packaged mini_httpd which I'm trying initially.

In configuration which cert do I use, fullchain or designman.org.key?
Also, how does linking work in /www directory?

Earlier, since I used flask of python, I used to have ahref="foo/bar.html" 
within html templates which used to be processed automatically as 
"https://designman.org/foo/bar.html";

However, this is not working for mini_httpd static setup.
Thanking you
Sagar Acharya
https://designman.org



8 May 2023, 14:15 by maxschillin...@web.de:

>
> >I checked out the recommended webservers under rocks subpage but all of them 
> >lack TLS support. Merecat does have it's support but it needs systemd which 
> >my host system does not have. mini_httpd doesn't compile. Are there other 
> >minimal webservers with https support?
>
> Hi Sagar,
>
> althttpd [1] might be interesting for you.
>
> Best regards,
> Max
>
> [1] https://sqlite.org/althttpd/
>



[dev] Servers with TLS support

2023-05-07 Thread Sagar Acharya
Dear folks,

I checked out the recommended webservers under rocks subpage but all of them 
lack TLS support. Merecat does have it's support but it needs systemd which my 
host system does not have. mini_httpd doesn't compile. Are there other minimal 
webservers with https support?

OpenBSD httpd link doesn't work.
Thanking you
Sagar Acharya
https://designman.org



[dev] Logical abilities of routers

2023-04-29 Thread Sagar Acharya
Dear devs,

What do routers really do logically? I was looking for an IPv6 router which is 
flashed with a small C program, not an OS like OpenWRT and which basically 
distributes network.

It assigns IPv6 addresses to it's child nodes in network and forwards packets 
based on some identity. Is there any C program for it?
Thanking you
Sagar Acharya
https://designman.org



Re: [dev] Using ii to connect to libera

2023-04-20 Thread Sagar Acharya
I expected it to be interactive out of the box. A chat client, I cannot imagine 
anything except interactive abilities.

The -n foobar/j script throws an error!
Thanking you
Sagar Acharya
https://designman.org



20 Apr 2023, 14:19 by d...@frign.de:

> On Thu, 20 Apr 2023 10:41:59 +0200 (CEST)
> Sagar Acharya  wrote:
>
> Dear Sagar,
>
>> Can you please help me with a script to use ii to connect to libera?
>> I have tried a lot but I'm unable to make progress.
>>
>
> if you have any hope of getting help with this, you should provide more
> information. What exactly fails, what have you set up, etc. etc.?
>
> By the way, it is still really irritating that your website is
> IPv6-only, which locks out ~60% of internet users. I know that India is
> way ahead with ~80% IPv6-capability, but this is an exception if you
> look at the IPv6-support-map[0].
>
> With best regards
>
> Laslo
>
> [0]:https://stats.labs.apnic.net/ipv6
>



Re: [dev] Using ii to connect to libera

2023-04-20 Thread Sagar Acharya



Thanking you
Sagar Acharya
https://designman.org



20 Apr 2023, 14:19 by d...@frign.de:

> On Thu, 20 Apr 2023 10:41:59 +0200 (CEST)
> Sagar Acharya  wrote:
>
> Dear Sagar,
>
>> Can you please help me with a script to use ii to connect to libera?
>> I have tried a lot but I'm unable to make progress.
>>
>
> if you have any hope of getting help with this, you should provide more
> information. What exactly fails, what have you set up, etc. etc.?
>
I'm using 

ii -s irc.libera.chat -n foobar/j #kicad

doesn't do anything.

>
> By the way, it is still really irritating that your website is
> IPv6-only, which locks out ~60% of internet users. I know that India is
> way ahead with ~80% IPv6-capability, but this is an exception if you
> look at the IPv6-support-map[0].
>
It's back online. You can browse it using Tor. There are some constraints and 
I'm afraid for now it will have to be so! Just IPv6.
>
> With best regards
>
> Laslo
>
> [0]:https://stats.labs.apnic.net/ipv6
>



[dev] Using ii to connect to libera

2023-04-20 Thread Sagar Acharya
Dear folks,

Can you please help me with a script to use ii to connect to libera?

I have tried a lot but I'm unable to make progress.
Thanking you
Sagar Acharya
https://designman.org



[dev] rv64 toolchain

2023-02-09 Thread Sagar Acharya
I followed rocks page of suckless.org which truly rocks. I built tcc, which 
supports cross-compiling of rv64 but after compiling it, I find it doesn't 
support asm and I cannot compile musl for adding functionality to C programs 
because it needs asm feature.

Can you suggest any more rv64 cross-compilation minimal toolchains?
Thanking you
Sagar Acharya
https://designman.org



[dev] rv32 compiler

2023-01-14 Thread Sagar Acharya
I am searching for a compiler which would compile for picorv32 processor 
published YosysHQ.

Current gcc toolchain is gigantic and I'm looking for something minimal. Have 
you folks discovered any projects for the same?
Thanking you
Sagar Acharya



[dev] Search engine for good frontends

2022-12-17 Thread Sagar Acharya
I see that suckless community suggests static sites and browsers like netsurf. 
I currently use badwolf.

Are there any search engines which list css only sites and which work well with 
the minimal browser?
Thanking you
Sagar Acharya
https://designman.org



[dev] Gopher vs Gemini

2022-12-03 Thread Sagar Acharya
Why is there a need to shift from http powered by TLS?

I saw that there's old gopher and more recent gemini. What are some pros and 
cons of each?
Thanking you
Sagar Acharya



Re: [dev] Whether a css selector applies to given html surf code

2021-10-27 Thread Sagar Acharya



> Wrong. I'd argue that the "user experience" in most programs that suck is 
> worse
> than the "user experience" using suckless programs. That's one of the reasons 
> we
> call them like that - "programs that suck" and "suckless programs".
>
> I believe we already discussed this about four months back.
>
>
> >Addicted to almost all software out
>
>> there like WhatsApp, Facebook, and many more things, most are never gonna use
>> stuff like dwm. And things like Windows would keep them there. I myself
>> use dwm, hyperbola OS, but suggesting it to common people wouldn't be
>> wise. They'll switch back to Windows, and this time maybe forever.
>>
>
> And?
>
> This sense of urgency and worry about the size of the userbase seems to be 
> tied
> to "software development" inside (big tech) corporations. They add (or remove)
> features to software guided by statistical analysis of the target audience 
> with
> the aim of supporting what is perceived to generate the most profit, not by 
> the
> program's purpose or any other reason. Suckless movement is not a corporation.
> It is a gathering of programmers writing software for themselves and others 
> who
> value the principles of simplicity and quality in software.
>
> If anyone wants to use other software, by all means they should. There's 
> nothing
> wrong with that, but on the other side, that shouldn't influence suckless
> programs.
>
Well, yes, I still hold that viewpoint. For me, targeting maximum people is 
important. It creates bigger userbase which in turn supports the tools more and 
creates a culture which becomes difficult to remove. I ask not to be proud that 
suckless doesn't target profit. Profit is required to survive and suckless 
depends on other donations. Systems must themselves survive and profits are 
necessary. Profit is not bad. Harming people by controlling them and 
overpowering them by unmanageable gigantic software is.

I'm repeating myself. I'll stop here. I just ask to keep it a movement but as a 
movement takes steps to include majority of people, let's do that. Nvm, we'll 
agree to disagree.

Sagar



Re: [dev] Whether a css selector applies to given html surf code

2021-10-26 Thread Sagar Acharya



> On 21/10/26 04:48, Sagar Acharya wrote:
>
>> That's a bit more primitive. It can go a bit more vibrant wrt fonts, colors,
>> break points for mobile, tablet which would still be minimal in my view. I'm
>> approaching such simplicity from the other complex end which most people
>> prefer, unfortunately.
>>
>
> These are the web pages of some of the giants of computing:
>
> https://www-cs-faculty.stanford.edu/~knuth/
> https://www.w3.org/People/Berners-Lee/
> https://www.bell-labs.com/usr/dmr/www/
> http://www.wall.org/~larry/
> https://www.cs.helsinki.fi/u/torvalds/
> https://stallman.org/
>
> Notice anything they have in common?
>
> Modern web is a perversion of what it once was - a simple environment to
> represent hypertext. Years of cruft and overengineering have lead to a bloated
> mess we have today. Things like Gemini
>
> https://gemini.circumlunar.space/
>
> have risen recently precisely to address this problem.
>
I don't think protocol is the problem. I think complexity of html, css, 
javascript is. I read DOM and I found it to be just a bit too complex.

> Suckless movement is not about conformism, about "going with the flow" of what
> "most people prefer". On the contrary, it is about shaking up the core values 
> of
> mainstream computing.
>
> Take dmenu as an example. Its most well known use is to launch programs from 
> the
> script dmenu_run. Its counterpart in the traditional GUI would be eye candy
> icons or shortcut buttons on some panel. When first confronted with such
> concept, "most people" will find it "primitive" and even outlandish. However, 
> if
> some thought is given to understanding why it is made that way, one inevitably
> starts to see the genius of the concept and why it is much better than 
> clicking
> an icon or a button with a mouse.
>
> Surf is a necessary evil to be able to access the modern web. For new websites
> however, anyone who finds value in the suckless principles should actively 
> work
> on reverting the web to a sane state it was in some 20+ years ago.
>
> I suggest starting by making websites one creates viewable and readable in:
>
> - NetSurf
> - links
>
People like what they feel. Majority of people out there aren't coders. 
Majority of coders just code to earn and would gladly just accept what their 
company pushes to them. These people just like convenience. As much as we'd 
like them to accept a bit of pain for minimalist and simple code, I don't think 
they'd go beyond a certain point.

I'm using dwm, st, dmenu, surf since quite some time. However, I don't think we 
should ever expect a majority to shift towards window managers. They will use 
desktop environments. Most people would never even know in their lifetimes what 
processes are and won't appreciate the beauty of having less than 20 processes 
running with 150MB of RAM on a lean OS.

I myself am a dev at Hyperbola OS which I think is the purest today. I use 
above suckless softwares. Recently, I bought PinePhone and tried out sxmo which 
I'm sure y'all must be excited about. I use mobian with phosh (gnome DE fork 
for pinephone) which is still pretty difficult to use relative to Android. I 
use Pixelfed and am off Instagram, WhatsApp, Facebook. I host my website on 
OSHW Olimex Lime2 with just Free software. But sadly, this purity ain't working 
folks. There are not a lot of people whom I've been able to bring on my side. 
It's too difficult for them! I ask them to chat with me on Telegram and out of 
ego, they don't!

I don't comply with everything but the direction is to incentivize most people 
towards simplicity. 20 years ago, sites were ugly. Today sites are beautiful, 
but as you said too complex. Some fools even import html and css with 
javascript! :D . Choosing js free sites, creating js free sites as alternatives 
for js sites, without compromising much with looks, UX and animation is what 
must be done in my view. I think CSS is harmless. JS has some very bad 
fingerprinting characteristics.

Somethings work different to the way we want them to work. And the sad reality 
is, majority people are never gonna accept simplicity as a trade off for 
convenience. I think keeping convenience the same while making things simple is 
the way forward. I love suckless but this is where I differ a bit.

Thanking you
Sagar Acharya
https://designman.org




Re: [dev] Whether a css selector applies to given html surf code

2021-10-26 Thread Sagar Acharya



> On Tue, Oct 26, 2021 at 07:35:01AM +0200, Sagar Acharya wrote:
>
>> I assume you mean writing css straight into html file itself. Kamitkami is 
>> not meant for css that we write. One can use if one uses 1 single style file 
>> which turns gigantic when used across many html files.
>> It's meant for using css frameworks like cirrus. I use cirrus by stanley lim 
>> and it's gigantic. I don't want most elements in the css which I include.
>> Thanking you
>> Sagar Acharya
>> https://designman.org
>>
>> Oct 26, 2021, 04:56 by n...@disroot.org:
>>
>> > On Mon, Oct 25, 2021 at 08:36:31PM +0200, Sagar Acharya wrote:
>> >
>> >> I'm making this software called kamitkami. It's a python script which 
>> >> takes 2 inputs foo.html and bar.css and outputs a css file named 
>> >> bar_foo.css which contains only the css which applies to the particular 
>> >> html page . This will make css extremely minimal and page loading faster.
>> >>
>> >
>> > Wouldn't it make more sense to just inline the css into the html
>> > instead? I think Dylan was doing that for K1SS.
>> > https://archive.md/dFqxv
>> >
>> > - NRK
>> >
>>
>
> Hi,
>
> One solution can be not using CSS frameworks and just write it by hand. It is
> not hard to do, creates cleaner files and improves understanding of CSS.
>
It's very hard to implement layout, break points, etc. Flexboxes are a bit 
difficult to handle.

> Many years ago I wrote a small snippet:
> https://www.codemadness.org/query-unused-css-rules-on-current-document-state.html
>
Nice. Today, js code would be much simpler  
document.querySelector(selector_string)   in JS. I don't know how to run js 
code and make both communicate.

> There are also options for it in the inspectors in the browsers now.
>
> Note that in the ugly web world for example it could need some ugly event and
> execute Javascript and insert some ugly DOM element which is used in the CSS
> (so you need to manually test for that). Otherwise it would be marked as not
> used.
>
Yes, that would be very difficult. I will definitely not target that right now.

> -- 
> Kind regards,
> Hiltjo
>
Thanks folks.

Страхиња Радић , 
That's a bit more primitive. It can go a bit more vibrant wrt fonts, colors, 
break points for mobile, tablet which would still be minimal in my view. I'm 
approaching such simplicity from the other complex end which most people 
prefer, unfortunately.

Teodoro,
I typically approach suckless community with anything minimal. I get the best 
suggestions here. As I point out above, it can be done in 1 line in JS. I used 
BeautifulSoup4 and the code is complete. However, the selector detection isn't 
implemented well in bs4 so I'll have to improve. I checked python-gobject, js 
implementations like requests-html.

Thanks everyone
Sagar Acharya
https://designman.org

P.S. Kamitkami alpha is out! :D



Re: [dev] Whether a css selector applies to given html surf code

2021-10-26 Thread Sagar Acharya
I assume you mean writing css straight into html file itself. Kamitkami is not 
meant for css that we write. One can use if one uses 1 single style file which 
turns gigantic when used across many html files.
It's meant for using css frameworks like cirrus. I use cirrus by stanley lim 
and it's gigantic. I don't want most elements in the css which I include.
Thanking you
Sagar Acharya
https://designman.org

Oct 26, 2021, 04:56 by n...@disroot.org:

> On Mon, Oct 25, 2021 at 08:36:31PM +0200, Sagar Acharya wrote:
>
>> I'm making this software called kamitkami. It's a python script which takes 
>> 2 inputs foo.html and bar.css and outputs a css file named bar_foo.css which 
>> contains only the css which applies to the particular html page . This will 
>> make css extremely minimal and page loading faster.
>>
>
> Wouldn't it make more sense to just inline the css into the html
> instead? I think Dylan was doing that for K1SS.
> https://archive.md/dFqxv
>
> - NRK
>




[dev] Whether a css selector applies to given html surf code

2021-10-25 Thread Sagar Acharya
Hello,

I'm making this software called kamitkami. It's a python script which takes 2 
inputs foo.html and bar.css and outputs a css file named bar_foo.css which 
contains only the css which applies to the particular html page . This will 
make css extremely minimal and page loading faster.

This code is incomplete yet and I need someone help from surf developers. I 
have the css selectors in a python list, corresponding blocks in another list. 
I also have the html as a string. I think surf must detect whether a particular 
css selector applies to an html string or not. If someone can help me on how to 
do it (what code applies?), or contribute to kamitkami on the link below, I'd 
be grateful.

I'm thinking along the lines of submitting list and html as input to some 
subpart of compiled surf code with os module of python and getting back a list 
of only css selector which applies.
Thanking you
Sagar Acharya
https://notabug.org/sagaracharya/kamitka 
<https://notabug.org/sagaracharya/kamitkami>mi

P.S. Notabug is facing DoS attacks. You may have to check after some time if it 
doesn't show up.



Re: [dev] Article in line with suckless.org

2021-08-07 Thread Sagar Acharya



> On Sat, Aug 07, 2021 at 10:34:00AM +0200, Sagar Acharya wrote:
>
>> Just 1 thing needs to be done, make easier for a majority to use minimal, 
>> secure software and make it harder for majority to use gigantic, malware 
>> injected software. And things would become better.
>>
> Sadly not possible, as the whole concept of orthogonality (a requirement for
> simplicity) goes against the fact that the majority of people don't want to
> tailor the computer to their needs, they want it to "just werk".
>
This is where I diverge from suckless, suckless goes for hardcore minimalistic 
software at cost of user experience. Addicted to almost all software out there 
like WhatsApp, Facebook, and many more things, most are never gonna use stuff 
like dwm. And things like Windows would keep them there. I myself use dwm, 
hyperbola OS, but suggesting it to common people wouldn't be wise. They'll 
switch back to Windows, and this time maybe forever.

If I want to serve good software to people who want their systems to "just 
werk" (most out there), today, I'll go for trisquel KDE edition. It's not 
minimalistic but much better than Windows.

Not saying KDE is optimal but in future another minimal DE with the right UX 
things like fonts, sizes, minimal animations, wallpapers, notification daemons, 
etc. can be made which the noob user would feel good about and be more secure 
than today.

> To illustrate this with programming, the majority of "programmers" aren't
> hackers, they're barely programmers. They want a language with an ecosystem
> that gives them packages to do something as simple as padding a string, or a
> builtin HTTP server in the standard library
>
This is where one can create a good default state. If there's a PC with decent 
enough hardware with a thing people can work on, change in the right direction 
can be brought.

> What they don't want is languages like C that tries to give the bare minimum
> (although lacking real genericity, which _Generic isn't) while being easy to
> compile or like Forth/Lisp/Tcl that gives them IMMEDIATE/defmacro/uplevel and
> tell that this is what real power looks like and to get to work if they want 
> to
> wield it.
>
>
> By the way, this sidenote by Paul Graham (to be honest, the whole article:
> http://paulgraham.com/avg.html) should be given to read to CS students:
>
>> [3] All languages are equally powerful in the sense of being Turing
>> equivalent, but that's not the sense of the word programmers care about. (No
>> one wants to program a Turing machine.) The kind of power programmers care
>> about may not be formally definable, but one way to explain it would be to
>> say that it refers to features you could only get in the less powerful
>> language by writing an interpreter for the more powerful language in it. If
>> language A has an operator for removing spaces from strings and language B
>> doesn't, that probably doesn't make A more powerful, because you can probably
>> write a subroutine to do it in B. But if A supports, say, recursion, and B
>> doesn't, that's not likely to be something you can fix by writing library
>> functions
>>
Very interesting.

Thanking you
Sagar Acharya
https://designman.org





Re: [dev] Article in line with suckless.org

2021-08-07 Thread Sagar Acharya
Aug 7, 2021, 1:03 PM by hadrien.lac...@posteo.net:

> On Sat, Aug 07, 2021 at 08:02:31AM +0200, Sagar Acharya wrote:
>
>> I have written this article at the link below.
>>
>> https://designman.org/sagaracharya/blog/pretend_computer_security
>>
>> It enhances the value of suckless by pointing the problems in gigantic 
>> softwares. Let me know what you think.
>>
>> Thanking you
>> Sagar Acharya
>> https://designman.org
>>
>
> I don't want to rain hard on your parade, but your website pages load 72 kB 
> of minified JS/CSS.
>
Above link uses just CSS, no JS. Also, JS is absolutely minimal (and free to be 
read), for hamburger toggle in mobile view, and some more jquery once a person 
logs in. It uses Cirrus UI framework. I'd love to provide user an even smaller 
css and 0 js, but I'm afraid I can't do better than this yet.

> Anyway, you're correct, and that's why modularity (which needs a better 
> interchange format than
> UNIX's stream of bytes, to be honest) is important to scale better without 
> the amount of bug
> and difficulty of testing scaling similarly.
>
Text based? I've read this fantastic book "The Art of UNIX Programming" by 
Steven which emphasizes text over binary interchange for readability. I think 
the biggest problem lies in responsibility. Projects should have single owners 
who should also remove code which isn't required and ensure minimalism, 
especially ones with tons and tons of lines, which consist of so many today.

Just 1 thing needs to be done, make easier for a majority to use minimal, 
secure software and make it harder for majority to use gigantic, malware 
injected software. And things would become better.



[dev] Article in line with suckless.org

2021-08-07 Thread Sagar Acharya
I have written this article at the link below.

https://designman.org/sagaracharya/blog/pretend_computer_security

It enhances the value of suckless by pointing the problems in gigantic 
softwares. Let me know what you think.

Thanking you
Sagar Acharya
https://designman.org



Re: [dev] Checksums and Sig files for release gzip

2021-04-17 Thread Sagar Acharya
Ok. But this is a behavioral change right? How can a patch help in this case?

Admins always protest the decision in almost every community if it isn't 
theirs. Am I suggesting something harmful here? It takes a minute to sign a 
release and this improves security. It makes sure that user gets the same piece 
of code that the dev made.

If that action helps suckless, why be reluctant because I initiated that mail?
Thanking you
Sagar Acharya
https://designman.org

17 Apr 2021, 02:39 by hil...@codemadness.org:

> On Fri, Apr 16, 2021 at 09:16:30PM +0200, Anders Damsgaard wrote:
>
>> * Sagar Acharya  [2021-04-16 20:01:56 +0200]:
>>
>> > Was any decision taken with regards to this? Would we have certain 
>> > checksums and sigs for releases in future?
>> > 
>> > Thanking you
>> > Sagar Acharya
>> > https://designman.org
>>
>> Sagar, please realize that people are volunteering their time, and I think
>> most are doing it for fun.  As far as I can tell, you are not entitled to
>> demand any action.  If you want something done, send a patch and expect
>> it to be carefully scrutinized.
>>
>
> I agree with this and for now it won't be changed.
>
> The admins team will make a decision about this if needed.
>
> -- 
> Kind regards,
> Hiltjo
>




Re: [dev] Checksums and Sig files for release gzip

2021-04-16 Thread Sagar Acharya
Was any decision taken with regards to this? Would we have certain checksums 
and sigs for releases in future?

Thanking you
Sagar Acharya
https://designman.org



Re: [dev] Checksums and Sig files for release gzip

2021-04-13 Thread Sagar Acharya
Sure, any good signature. SHA512 is stronger than SHA1, MD5 and SHA256. It 
shouldn't take a second more than others. Why use a weaker checksum?
Thanking you
Sagar Acharya
https://designman.org



13 Apr 2021, 20:15 by daniel.cegie...@gmail.com:

> How/where SHA512 is better than SHA256 or SHA1? I don't see any added
> value in this. If someone breaks into your server and replace files,
> may also regenerate check sums (SHA256/512 or SHA3, scrypt etc.). The
> use of MD5 will be equally (un)safe as SHA512 :)
>
> A better solution is e.g. signify from OpenBSD or GnuPG.
>
> https://man.openbsd.org/signify
>
> Daniel
>
> wt., 13 kwi 2021 o 13:36 Sagar Acharya  napisał(a):
>
>>
>> Can we have SHA512 checksums and sig files for the release gzips of suckless 
>> software?
>>
>> Thanking you
>> Sagar Acharya
>> https://designman.org
>>



[dev] Checksums and Sig files for release gzip

2021-04-13 Thread Sagar Acharya
Can we have SHA512 checksums and sig files for the release gzips of suckless 
software?

Thanking you
Sagar Acharya
https://designman.org



Re: [dev] Completeness suckless

2021-04-12 Thread Sagar Acharya



> I don’t think it makes sense for the suckless guys to try trimming down that 
> bloated mess (Linux kernel).
>
> To be honest I’m wondering if the love they give OpenBSD, as a desktop OS, is 
> misplaced. OpenBSD is 22M lines if you include the entirety of the files, and 
> 16M counting just the lines with code on them. Granted I think that number is 
> across the whole base distribution which makes it smaller than the Linux 
> kernel alone. But OpenBSD is still REALLY fat compared to operating systems 
> of the past. FreeDOS is ~50k lines, and then there are things like KolibriOS 
> to consider.
>
> I don’t know if you guys have seen this, but I’d like to share a video from 
> YT that I think is appropriate for this group:
>
> watch?v=kZRE7HIO3vk
>
That video is pure gold!

I'll revise my article wrt OpenBSD but it's the least evil when seen wrt 
usability. I doubt it's that gigantic though! How do you visualize the 
solution? Writing from scratch targeting an embedded board?

Thanks
Sagar Acharya



Re: [dev] Completeness suckless

2021-04-12 Thread Sagar Acharya
I too agree with Hiltjo. I don't think suckless is Linux oriented.

At the time of writing that article, I thought Linux and BSD are the only 2 
usable kernels. Practically it seems so, but recently I saw microkernel vs 
monolithic kernel debate and got interested in seL4. I'm not sure whether it's 
usable yet or not.

wrt unnecessary things being deleted, Linux has more than 1.6M lines so think 
about for how much time you'd have to think what's necessary and what not? 
(writing the script which you pointed)

Thanking you
Sagar Acharya
https://designman.org



Re: [dev] Completeness suckless

2021-04-10 Thread Sagar Acharya
>Whats stopping you from doing it? - Hiltjo
Can't do it alone! It's a huge task. I can contribute somewhat. I'm currently 
working on a thing which is much more important wrt computer security! But I 
gotta do it. Point taken.

Sagar



Re: [dev] Completeness suckless

2021-04-10 Thread Sagar Acharya
>I say that coming from one of the best universities in France; I didn't have 
>very much respect left for the word "scientist" when I left
Same here. Exactly same! But they for sure are intelligent. One of the key 
things in capitalism is getting tamed by the powerful. Majority of these 
geniuses don't know how their work impacts the world! They get tamed by people 
who work against their own principles just because knowing their tamer's 
principles is difficult!

>Now try bspwm
Damn that's good! Very simple logic. But I'll stick to dwm for now. Check it 
after a while.

>Where would you say their capacities are lacking?
Most don't have the logical abilities. Amongst ones who do, many don't want to 
read in times of videos. They want instant gratification. For few it is also 
about power. You suggest them to use dwm. They'll think they're above you 
socially and won't use it. This maybe a bit biased but 1 thing I know for sure, 
that people are far, very far away from using minimal systems.

>The practical knowledge of computer science comes from experience in a 
>consumer-driven, market environment. Academia is not that environment.
+1.

>A lot of people had a take for a user-friendlier dwm, you should try those, or 
>similar wms with "battery pack included" like i3 or awesome.
Again, I'm not talking about dwm specifically. i3wm is a single wm and while 
it's good, I think suckless can target COMPLETE systems. It's philosophy is 
great.

>We believe this should become the mainstream philosophy in the IT sector. - On 
>suckless site.
This IT sector is constantly making things easier for people or atleast making 
people believe it is. If suckless wants this to become mainstream philosophy, 
it has to do itself. People don't wanna change especially when computers are 
just the tools to achieve some end.

If suckless makes it easy for people to use minimalistic systems, they will. I 
shifted from complete windows to dual boot to complete GNU/Linux (Parrot Linux) 
to Parabola (Plasma) to Parabola (dwm) in about 3 years. I can't imagine 
shifting directly to current state. I would get frustrated and go back to 
Windows if someone would ask me to get to this point from complete Windows. But 
if there were tutorials explaning why would you use wm instead of de, wm were a 
bit more beautiful, things would be much simpler. Plasma is hands down 
beautiful! But it's very complex!

Thanking you
Sagar Acharya
https://designman.org

P.S. I'd love to contribute.



Re: [dev] Completeness suckless

2021-04-09 Thread Sagar Acharya
>interesting article!
Thanks

>I think, the user's turn to try to understand them to the fullest, even
if it means learning a bit of a programming language. - Laslo
Majority of users in this world would never learn a low level programming 
language like C. They are incapable.

> The solution in the case of a simple program is exact and textual, easily 
> transmitted in digital form or pronounced, compared to the difficulty of 
> having to describe where exactly, and how to click in a GUI. - 
> cont...@strahinja.org
It doesn't need to be complex. Few things make enormous impact like choosing 
good font, size of bars, color, connecting icons with programs, good battery 
and datetime displays. A simple 1 line script can run in the background. One 
would just take few important elements of User experience and add them here. 
I'm just talking wrt dwm here but I mean this at all levels. Few important UI 
elements should be taken care of.

>Security isn't the main point of suckless, it's only a consequence of clean 
>and simple code. - Hadrien
I guess this is where I diverge, user centric things always work better and 
have more power. One can always add a few more simple things, keeping 
minimalism of suckless intact. One can create dwmd (dwm for dumb) with few more 
features.

>The main point is to empower people, but not through the spoon-feeding and 
>shoestring-tying the FSF likes so much, but by helping those who help 
>themselves. That's how you get actual "computer freedom", by being able to 
>program and fullfill more and more of your needs/wants. suckless programs are 
>made to fit this mindset: simple enough to be modified and built around the 
>UNIX philosophy of use with other simple programs. - Hadrien
Majority of the people in this world are never going to bother with creating 
their own code. I have studied Engineering Physics at IIT Delhi. There, 
Computer Science guys are insane geniuses. They don't bother to set their 
system up. Very few do. Most use dual boot Ubuntu and Windows. Now that I have 
completed my Bachelor degree, I do not know a single person in my surroundings 
who uses GNU/Linux or BSD OSes. Using wm on this is way off! How would someone 
with no basic logical skills would do this? They won't.

>I agree with Sagar - Edward
Thanks

Thanking you
Sagar Acharya
https://designman.org



[dev] Completeness suckless

2021-04-09 Thread Sagar Acharya
I recently wrote this article

https://designman.org/sagaracharya/blog/trusting_no_one

being absolutely unaware about suckless and this was brought to my attention.

Suckless's philosophy is hands down amazing and crucial wrt computer security. 
Although I'd like to point out 1 aspect. Why does suckless target very 
sophisticated users? If it shuns trying to go after elitist users, it can 
improve computer security of people all around the world and also themselves, 
since if others are secure, you yourself will become even more secure!

For it, there would be few requirements. Free software, minimal, easy to use, 
beautiful to look at (by default). I guess the latter 2 are lagging a bit.

Thanking you
--
Sagar Acharya
https://designman.org

P.S. Shifted completely to dwm this week. Can't even think of anything 
theoretically better than this!