Search found 4853 matches

by technosaurus
Fri 06 Mar 2020, 22:45
Forum: Programming
Topic: SDL 1.2.15 versus SDL 2.x
Replies: 6
Views: 2152

Have you tried building SDL programs with DirectFB or nano-x backends? They don't require you to have X Windows on your system. SDL 1.2.15 had good support for Linux framebuffer as well, but SDL 2.x doesn't have that option. I used to maintain a fork of SDL2 for the linux framebuffer, until the kms...
by technosaurus
Mon 02 Mar 2020, 06:11
Forum: Programming
Topic: SDL 1.2.15 versus SDL 2.x
Replies: 6
Views: 2152

The biggest difference for SDL2 is that the new more permissive license allows static builds. With musl libc and tinyx, that allows you to build apps with no dependencies that are sometimes smaller than the shared lib versions with dynamic gnu libc and xlib. This is because the compiler and linker c...
by technosaurus
Sat 08 Feb 2020, 03:19
Forum: Programming
Topic: Speech-to-text app for PyTorch?
Replies: 6
Views: 1670

Espeak is text to speech... thought the original question was speech to text. There are plenty of python bindings for pocket sphinx but I can't recommend a specific project since I have only used it in C directly. Hopefully the python bindings have simplified it a bit because the C ABI is almost too...
by technosaurus
Wed 05 Feb 2020, 01:59
Forum: Programming
Topic: Speech-to-text app for PyTorch?
Replies: 6
Views: 1670

Carnegie Mellon has/had great speech speech synthesis and recognizition tools. I am most familiar with their Flite ( text2speech ) and pocket-sphinx ( speech2text )utilities. They're pretty light and have permissive licenses and c bindings which makes them useable in nearly any programming language.
by technosaurus
Tue 04 Feb 2020, 00:32
Forum: Programming
Topic: CGI scripts with busybox httpd
Replies: 26
Views: 16875

You may want to goto archive.org for goingnuts most recent post .... did anyone archive the tarballs?
by technosaurus
Mon 20 Jan 2020, 06:21
Forum: Programming
Topic: How to parse a m3u file with dmenu? (Solved)
Replies: 2
Views: 1072

Ok, going from memory here typing on a phone, so beware of syntax, but it may simplify things while read Line; do case $Line in "#"*)continue;; #ignore comments *)IFS=: #use colon as separators set $Line #put "fields" into numbered variables echo cell 1 is $1, cell 2 is $2, etc.....
by technosaurus
Wed 20 Nov 2019, 03:09
Forum: Programming
Topic: cli relational database
Replies: 16
Views: 4221

Reminded me of this old thread
http://www.murga-linux.com/puppy/viewtopic.php?t=86146
Where I demonstrated 1 way to use your filesystem as a database using only a shell script... just a proof of concept
by technosaurus
Fri 01 Nov 2019, 15:22
Forum: Beginners Help ( Start Here)
Topic: SEARCHING; Ways to search the forum for problems/solutions
Replies: 107
Views: 330312

I use google to search the forum. Just append site:murga-linux.com to the search criteria i.e. searched for text site:murga-linux.com Unfortunately google ignores everything inside code blocks... unfortunately half of the comments that I may want to google are in code. We really need to upgrade the...
by technosaurus
Wed 23 Oct 2019, 01:44
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 15866

I'd suggest including lz4 compression also. Very fast (but relatively poor compression). lz4 -Xhc tends to be more like gzip for compression, but is slower (relatively speaking), so not really worth including that IMO when gzip is available (unless you want very fast decompression also), just the s...
by technosaurus
Tue 15 Oct 2019, 03:33
Forum: Truly off-topic conversations
Topic: Who is this in the audience?
Replies: 4
Views: 481

Robert De Niro?
by technosaurus
Sun 06 Oct 2019, 00:17
Forum: HOWTO ( Solutions )
Topic: Updating Widevine for Puppy - a guide
Replies: 5
Views: 2195

That's what LD_PRELOAD is for... once you reverse engineer what functions they are looking for. There's a similar project that adds GNU libc stuff to musl - I don't recall the name.
by technosaurus
Sat 05 Oct 2019, 21:05
Forum: HOWTO ( Solutions )
Topic: Updating Widevine for Puppy - a guide
Replies: 5
Views: 2195

Back when flash player was a thing, I wrote a script to replace the version number in the plugin module to trick the players into thinking they had the latest version 99% of the time it still worked fine.

Something like that could be useful for the 32bit version of chromium.
by technosaurus
Sat 05 Oct 2019, 20:56
Forum: Truly off-topic conversations
Topic: solar distillers
Replies: 2
Views: 399

Note: if you can prefilter fresh water, you can probably also use this to sanitize it with UV and heat to a great extent without losing all the minerals in a much shorter time. You can make your own filter using a plastic bottle, cloth, charcoal, sand and rocks. Is anyone interested in premade porta...
by technosaurus
Sat 05 Oct 2019, 06:59
Forum: Truly off-topic conversations
Topic: solar distillers
Replies: 2
Views: 399

solar distillers

I was checking out Barry's blog and his solar still project reminded me that I once made a solar still using a couple of old chip/crisp bags (the inside is reflective) a black garbage bag (dirty water side) and duct tape (rolled into hose). It occurred to me that if done properly, my old hack could ...
by technosaurus
Mon 23 Sep 2019, 06:54
Forum: Programming
Topic: unsorted C snippets for small/fast static apps
Replies: 60
Views: 50757

Some practice porting C code to use vector extensions (from https://github.com/easyaspi314/xxhash-clean/blob/master/xxhash32-ref.c ) #include <stddef.h> /* size_t, NULL */ #include <stdint.h> /* uint8_t, uint32_t */ typedef uint32_t __attribute__ ((__vector_size__ (16))) u32x4t; #define PRIME32_1 0x...
by technosaurus
Sat 21 Sep 2019, 16:45
Forum: Programming
Topic: AWK: match($2,/^(.*[^:digit:])([:digit:]*$|$)/,pkg_split)
Replies: 9
Views: 2485

As MochiMoppel has pointed out, you definitely need additional square brackets here. [^:digit:] is the same as [^:dgit] and it matches anything but 'g' and the other four characters. So, if all you want to match is something like AAANNN where A is not a digit and N is, then this will do: /([^0-9]+)...
by technosaurus
Sat 21 Sep 2019, 04:25
Forum: Programming
Topic: AWK: match($2,/^(.*[^:digit:])([:digit:]*$|$)/,pkg_split)
Replies: 9
Views: 2485

It may save you some time to test it here:
https://regex101.com/

When you use parens, you can usually print out the matches with \N for debugging (where N is the Nth set of parens), I don't recall how to do it in awk though.
by technosaurus
Fri 20 Sep 2019, 05:00
Forum: Programming
Topic: Development of 'trans_tray' (translation program)
Replies: 103
Views: 26134

Where is the microphone icon for input / text? Pocket Sphinx and the speaker icon for translation? Espeak or Flite I had a thread with pocket sphinx continuous and associated bash helpers, but the binary itself got lost when the forum lowered the limit on file size. Fred's experiments with sound se...
by technosaurus
Sun 08 Sep 2019, 09:52
Forum: Programming
Topic: Development of 'trans_tray' (translation program)
Replies: 103
Views: 26134

Where is the microphone icon for input / text?
Pocket Sphinx
and the speaker icon for translation?
Espeak or Flite

I had a thread with pocket sphinx continuous and associated bash helpers, but the binary itself got lost when the forum lowered the limit on file size.
by technosaurus
Thu 08 Aug 2019, 23:28
Forum: Truly off-topic conversations
Topic: REUSE makes copyright and licensing easier than ever
Replies: 2
Views: 147

There is no question on the re-usability of 0BSD, CC0, unlicense, WTFPL or similar public domain dedication. MIT, ISC and BSD have minimal requirements. Only crap from the FSF makes it require an organization with a staff of lawyers to ensure compliance. Any license that is shitty enough that contri...