Search found 50 matches

by superhik
Sun Mar 16, 2025 9:23 am
Forum: Off-Topic Area
Topic: AI is not coming, "THEY'RE HERE!"
Replies: 426
Views: 141960

Re: AI is not coming, "THEY'RE HERE!"

Ah yes, classic deflection. First, you mention the USSR every third sentence, now you’re pretending it’s all just a coincidence. Sure, buddy. Next, you’ll tell me the KGB also had movie nights in their little 'huts' watching Friends reruns. How convenient. :D

by superhik
Sat Mar 15, 2025 9:51 pm
Forum: Off-Topic Area
Topic: TVs and our future
Replies: 30
Views: 3106

Re: TVs and our future

TV is curated, programmers, editors and executives decide what, to whom and when they will emit.

Social media is also curated. It's really an upgrade to TV only automated and personalized. Algorithms and content managers decide what people individually see.
On top of that there is surveillance ...
by superhik
Sat Mar 15, 2025 9:15 pm
Forum: Off-Topic Area
Topic: AI is not coming, "THEY'RE HERE!"
Replies: 426
Views: 141960

Re: AI is not coming, "THEY'RE HERE!"



You are a living psyop, KGB trained you well boy.

In fact, everything is much simpler :) Either you don't have very strong nerves, or you're stuck deep in the 70s. Even a forum participant from Poland does not allow himself to speculate and theorize much about the KGB, because he has outgrown ...
by superhik
Fri Mar 14, 2025 10:32 pm
Forum: Off-Topic Area
Topic: AI is not coming, "THEY'RE HERE!"
Replies: 426
Views: 141960

Re: AI is not coming, "THEY'RE HERE!"



A weekend getaway with friends at a remote cabin turns into chaos after it's revealed that one of the guests is not what they seem.

Well, these are the times now :) What did the USSR and the USA have in common during the Cold War? Both sides read the book Uncle Tom's Cabin . Many Soviet ...
by superhik
Fri Mar 14, 2025 4:31 am
Forum: Programming
Topic: YAD - tips'n'tricks
Replies: 129
Views: 33753

Re: YAD - tips'n'tricks


Thanks again @superhik

You make light work of it, clearly another expert to learn from!

If I may ask more of your skill, how to increment line_index with up and down arrows?

In fact right now I am using the up down arrows to change font and text color on the fly. "[A") export FONT="$(yad ...
by superhik
Fri Mar 07, 2025 12:11 am
Forum: Programming
Topic: GTKDIALOG - Make a colored button
Replies: 10
Views: 938

Re: GTKDIALOG - Make a colored button


superhik I am running txt2svg on KLV-Airedale-sr17 successfully.

Is it looking better? Gtk widgets are a bit off, I assume it's because of this gtk theme I use.
This app is compiled with bacon 5.0.1, which was released recently.
https://basic-converter.proboards.com/thread/1360/bacon-5-1 ...
by superhik
Thu Mar 06, 2025 1:51 pm
Forum: Programming
Topic: GTKDIALOG - Make a colored button
Replies: 10
Views: 938

Re: GTKDIALOG - Make a colored button

Got hug.bac form here
http://www.basic-converter.org/hug.bac
And placed it ousitde the dir.
Installed bacon, and compiled: bacon -o -Os -o -fdata-sections -o -ffunction-sections -o -Wl,--gc-sections txt2svg.bac

But an ERROR:
Converting 'txt2svg.bac'... 4547
Syntax error: variable 'y1' in LOCAL ...
by superhik
Wed Feb 26, 2025 5:02 pm
Forum: Programming
Topic: YAD - tips'n'tricks
Replies: 129
Views: 33753

Re: YAD - tips'n'tricks


thanks @superhik

I actually wanted the arrow keys to 'work' and also the return key.

Here is something along the lines of what I want. When typing from the terminal running the code it is formatting the text as expected but entering a return/newline exits the <span></span> formatting. I can pipe ...
by superhik
Wed Feb 26, 2025 10:32 am
Forum: Scripts
Topic: how can i do echo this way ?
Replies: 13
Views: 1121

Re: how can i do echo this way ?

Actually, IFS and printf are not Bash-specific, they both work in POSIX compliant shells.
Unlike echo, which may collapse spaces and interpret special characters differently across systems, printf always prints exactly what you pass to it.
printf "%s\n" always preserves spaces/tabs → Works in sh ...
by superhik
Tue Feb 25, 2025 9:41 pm
Forum: Scripts
Topic: how can i do echo this way ?
Replies: 13
Views: 1121

Re: how can i do echo this way ?

Instead of eval, printf, IFS and cat are options that work.
var_1='this is var 1'
var_2='this is var 2' # Contains tabs and multiple spaces

for i in {1..2}; do
var_name="var_$i"
printf "%s\n" "${!var_name}" # Preserves all spaces and tabs
done

for i in {1..2}; do
var_name="var_$i"
IFS= read ...
by superhik
Tue Feb 25, 2025 6:10 pm
Forum: Programming
Topic: YAD - tips'n'tricks
Replies: 129
Views: 33753

Re: YAD - tips'n'tricks


I have a use for it but using the arrow keys results in keycodes. How to correct?

Well, it can read the keys and skip them.

while true ;do
IFS='' read -rsN 1 ound

if [[ $ound == $'\x1b' ]]; then
read -rsn2 -t 0.1 dummy && continue
fi

if [[ $ound == $'\x7f' ]] ;then
buffer=${buffer ...
by superhik
Sat Dec 21, 2024 12:38 pm
Forum: Off-Topic Area
Topic: Did you have to AGREE to a new PLDF Agreement, too?
Replies: 25
Views: 2679

Re: Did you have to AGREE to a new PLDF Agreement, too?

Does the agreement includes my love letters to Grey?

by superhik
Fri Dec 20, 2024 9:56 am
Forum: Off-Topic Area
Topic: Did you have to AGREE to a new PLDF Agreement, too?
Replies: 25
Views: 2679

Re: Did you have to AGREE to a new PLDF Agreement, too?


Relax, it's extremely difficult to get banned from this particular forum even if you ask yourself. :P

It can't be that hard.
Probably just posting the unthinkable wrong-think and the internet overlords would submit old rocketeer into canceling action.
If that doesn't work you have to bribe or ...
by superhik
Sun Dec 08, 2024 3:57 pm
Forum: Off-Topic Area
Topic: TVs can be monitor replacements
Replies: 15
Views: 2109

Re: TVs can be monitor replacements


vektor_alian

Every modern TV I have used with a computer has cutoff 50 pixels on each side and 30 pixels off the top and bottom.

This is a result of a technique called "over scanning" carried over from CRT screen TV's. In short, people expect the TV picture to fill the screen from edge to ...
by superhik
Sun Dec 08, 2024 12:44 pm
Forum: Off-Topic Area
Topic: TVs can be monitor replacements
Replies: 15
Views: 2109

Re: TVs can be monitor replacements



to do things better than what I had

What kind of things?
It's just that I've noticed for a long time that when someone advertises some new device, they say "you can surf the Internet, watch videos, play AND MUCH MORE!!!" What is this mysterious "and more"? At the same time, there is usually ...
by superhik
Wed Nov 20, 2024 11:53 pm
Forum: Off-Topic Area
Topic: Your OS running in a Cloud
Replies: 9
Views: 1267

Re: Your OS running in a Cloud

Windows 365?
It does not align with the free and open source philosophy.
Sure it would run well on low powered devices since heavy lifting is done on someone else's computers, but I see ethical concerns.
Sure it would popularize Linux since many find it's instalation daunting. But to convince people ...
by superhik
Wed Nov 20, 2024 9:33 pm
Forum: Off-Topic Area
Topic: AI Spreading Unfounded Rumors
Replies: 3
Views: 683

Re: AI Spreading Unfounded Rumors

AI can make mistakes.
We don't really know how it works when it gets too complex. We invented the principle of evolution and let it evolve. When it evolves to a complex neural network we cannot see how exactly it works.

We also make mistakes because everything we know, belive or assume we have ...
by superhik
Wed Nov 20, 2024 9:13 pm
Forum: Off-Topic Area
Topic: Using Google Docs? Interesting tracker injections.
Replies: 1
Views: 350

Re: Using Google Docs? Interesting tracker injections.

Surveillance Capitalism is their most profitable business to sell metadata on the secret markets.

Of course Google and others will do everything to track you.

by superhik
Wed Nov 20, 2024 1:13 pm
Forum: Off-Topic Area
Topic: Debian Linux: How the mighty has fallen
Replies: 5
Views: 775

Re: How the mighty has fallen

Guys you've never lived in socialism. Maybe you need to, for some time, to learn the hard lesson. Only when it bites you personally, you will sense something is wrong.
https://youtu.be/iKcWu0tsiZM

P. S. When you understand that every opinion is a vision full of personal history - you will begin to ...
by superhik
Thu Sep 19, 2024 8:52 pm
Forum: Off-Topic Area
Topic: Maths Problem (Grade 3)
Replies: 35
Views: 3634

Re: Maths Problem (Grade 3)

When they made women work they doubled the taxes and cut the salaries in half. And made the kids be raises by someone else. But they don't need smart kids, just the simple workers. Children are prepared for the job market not to be their competition. That means to work for someone else, pay taxes on ...
by superhik
Fri Sep 13, 2024 11:25 am
Forum: Programming
Topic: regex string processing
Replies: 7
Views: 1305

Re: regex string processing

So this is all about wrapping?
Why didn't you write so in the first place? :lol:

#!/bin/bash

wrap_width=80

wrap_text() {
local text="$1"
local length=${#text}
local start=0

while [ "$start" -lt "$length" ]; do
local end=$((start + wrap_width))

if [ "$end" -lt "$length" ]; then
# Find ...
by superhik
Sat Jul 13, 2024 9:06 am
Forum: Programming
Topic: text splitting problem
Replies: 23
Views: 3831

Re: text splitting problem


@MochiMoppel it's funny how a simple script can became a full application.
Now that we have a solution all we need is a suitable problem. :lol:

:lol: The Engineering of Consent, "use of an engineering approach - that is, action based only on thorough knowledge of the situation and on the ...
by superhik
Sat Jul 13, 2024 8:45 am
Forum: Programming
Topic: Gtkdialog Calendar
Replies: 33
Views: 6120

Re: Gtkdialog Calendar

Looks good Rockedge.

#include <gtk/gtk.h>
#include <glib.h>
#include <cairo.h>

typedef struct {
GtkWidget *window;
GtkWidget *drawing_area;
GtkWidget *text_view;
GtkWidget *save_button;
GtkWidget *remove_button;
GtkWidget *spin_year;
GtkWidget *combo_month;
gchar *diary_dir;
guint ...
by superhik
Thu Jul 11, 2024 4:16 pm
Forum: Programming
Topic: Gtkdialog Calendar
Replies: 33
Views: 6120

Re: Gtkdialog Calendar

It should look good on dark and light themes. Also when resizing the window, dates and date names will increase font size but should remain in center of the grid cells. Current date is green. If there is a diary entry it will add a small circle to the date. Have fun, suggest features, and report bugs.

by superhik
Thu Jul 11, 2024 3:35 pm
Forum: Programming
Topic: Gtkdialog Calendar
Replies: 33
Views: 6120

Re: Gtkdialog Calendar

Of course it failed, you tried to compile a bash script.
#!/bin/bash is in the first line.
Bash scripts can't compile with gcc.
That's the wrong file rockedge. :D
I've made my app in C.

by superhik
Thu Jul 11, 2024 1:43 pm
Forum: Programming
Topic: Gtkdialog Calendar
Replies: 33
Views: 6120

Re: Gtkdialog Calendar


to recobayu

Very nice coding.
I might suggest a button to open a text file to act like a diary.
The date and a message could be entered and stored in the text file.
____________________________________________

Zigbert who wrote pfind was one of the first coders that took advantage of SVG images ...
by superhik
Sun Jul 07, 2024 7:54 am
Forum: Off-Topic Area
Topic: RUSSIAN Economy Will DIE BY WINTER Due to Mobilization According to Prominent Russian Economist
Replies: 11
Views: 2223

Re: RUSSIAN Economy Will DIE BY WINTER Due to Mobilization According to Prominent Russian Economist

I find the way most people perceive the world to be quite fascinating. It's akin to a children's puzzle, where disparate pieces come together to form a single, coherent image. The media takes the lead in shaping this picture, presenting a curated version of reality that is further reinforced by ...
by superhik
Fri Jul 05, 2024 2:54 pm
Forum: Programming
Topic: text splitting problem
Replies: 23
Views: 3831

Re: text splitting problem

Made a small app for this in C.
Let's name it Block Splitter or bsplit.
Save it as bsplit.c and compile with gcc bsplit.c -o bsplit -std=c11 -Wall

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include <sys/select.h ...
by superhik
Fri Jul 05, 2024 1:08 am
Forum: Programming
Topic: text splitting problem
Replies: 23
Views: 3831

Re: text splitting problem


@superhik
Thanks for the new variants. Well, they work for Lorem but not for my "real life" string abc *[\ ]* ^[0-9].* $'a b c' $'\n' (see my post of 2023-11-17)
I usually prefer sed or grep but here they are not only slower than @HerrBert's approach but probably not suitable at all.


There ...
by superhik
Thu Jul 04, 2024 9:35 am
Forum: Forum Organization & Structure Council
Topic: Arbitrary Harrasment by Bigpup
Replies: 21
Views: 2265

Re: Arbitrary Harrasment by Bigpup


I DID NOTHING YOU ARE POSTING ABOUT!!!!

All I did was make a post that if you make a topic in the Additional Software section.

It needs to also provide a link to be able to download and use the software it is about.
https://forum.puppylinux.com/viewtopic.php?p=124856#p124856

Stemsee was so ...

Go to advanced search