[ Home / Rules / Radio / Streams / Net Friends ] [ cel / digi / lum / ran / vnt / media / lit / ocvid / kind / wap ]

/kind/ - Random Acts of Kindness

No Bully! Help Others!
Email
Subject
Comment
File
Embed
Password (For file deletion.)

File: 1695997361181.gif (342.07 KB, 1024x720, womancomputer.gif)

 No.419

Let's dedicate this thread to things such as operative systems, hardware, advances in technology, security, and all the things related to it
how are you /tech/in' boys?

 No.424

File: 1696032273617.jpg (74.9 KB, 1024x1001, 1523306850251.jpg)

Random thought, but there was a time I used to be into Death Grips, and in one of their ARGs they did some silly ASCII in the comments of their homepage's HTML file, and after been working for code for around a year and a half, it just comes across as extremely silly.

 No.434

File: 1696124623178.jpg (555.53 KB, 850x1200, fruitsofbreastenvy.jpg)

Currently losing my sanity while coding a web app when I'm supposed to be hired for backend development
Thankfully coffee and high impact sonorous violence music fuels me

 No.444

>>434
Frontend is hell. It doesn't require any intelligence or though, and so the tools are not only made by retards but also for retards. It's bloat on top of bloat with the underlying logic ranging from non-existent to inconsistent.
I hope I'll never have to touch it again in my life.

 No.447

>>444
And everyone and their mom has an option and a new framework.

At least people have mostly settled on React for now, the worst was back in the early/mid-10s when it was just new toys every other week. At least I have a good job now and don't have to worry about that shit anymore.

(am a front-end dev, been regretting my life choices for years now)

 No.449

File: 1696213903493.png (728 B, 303x243, wariothumbsup.png)

>>444
I personally wish to believe the issue was that we were given a very tight schedule. If I was given a bit more time, i would have been able to understand most of the things that I did fairly well.
I got the thing done now, so that makes me feel at peace. But personally I believe I should at least have been given more time to work with.
Also, I share your sentiment. JS is not for me.

 No.2297

File: 1723864462701.jpg (299.73 KB, 850x1202, ima_computer.jpg)

So I just got my fresh Openbsd7.5 installed.As you can see, I'm very new at using this OS. It's still in barebone condition with fvwm running as default gui. The best part about this OpenBSD installer is that It came together with mandatory full disk encryption setup. Though, I'm still not used to some of the commands. Like for instance, how do you look up for all the openbsd packages that already been installed?

Anyway, according to guide I followed here https://www.tumfatig.net/2024/openbsd-workstation-for-the-people/, I need a proper DE for my computer. All the DE that are available in Openbsd doesn't seem to suit the taste of my liking. I like my DE to be extreamly low resource usage. That DE where I'm looking forward to use is known as the Equinox Desktop Environment (EDE).

Let me tell you some my experiance using EDE on archlinux. Unforunately I didn't manage to get it running properly. It was borked from the get go where all the application I have from the start menu were not functioning. I was quite dissapointed by it, although I do read somewhere that there were success story of anon running it on Devuan. Maybe that is why I shouldn't give up just yet because I really want this DE up running flawlessly.

So given the option here, It looks like theres 2 methods on how to get this EDE installed on Openbsd.
The 1st one is to compile from source according to instruction here https://edeproject.org/wiki/installingfromsource
The 2nd one is by using their install script called netinstall. Everything about netinstall is decribe here https://edeproject.org/wiki/netinstall

The 2nd option looks a lot easier, but I dont know whether this actually works. Well, I think it doesn't matter whichever of the options here, wish me luck anon.

 No.2298

File: 1723878154455.jpg (429.33 KB, 1914x1037, monsterthing.jpg)

>>447
>>449
start working in typescript, guys! it's nicer to work with than JS!
>>2297
huh... that seems kind of hard. EDE reminds me of windows 95. why not use a DE like XFCE, though?

 No.2300

>>419
I only have 100gb storage for my computer. After the installation,that has reduced the unused capacity and gave me the remaining 30 gb each on root and home directory. I don"t want anymore bloat hogging my free space.Other than that, xfce sometimes have its quirks with dbus which make DE to stalled on some rare situation. I have to restart my display manager if that happens.I have also used xfce for very long time, I think want another flavor of DE.

 No.2304

My tower has finally broken. After half a decade of steady sevice and four operating systems it's finally kill. Ethernet port (built directly into the motheboard) broke mysteriously and I can't get any internet period (currently phonefagging at work). Though it was having serious overheating and regular freezing for a long time, I really should have replaced it long ago. Thinking of getting a laptop/dock combo to replace it, any recommendations? I don't need much power, but enough to do light compiling and video encoding without completely locking up. I also want hardware that will run linux hassle free (I never want to deal with nividia drivers again) and isnt completely locked down, that last ones the real kicker; it's so hard to find modern laptops that you can even replace the battery on. I remember hearing about a company making modular laptops that as I recal sound perfect for me, but I can't remember their name; currently trying to find that.

 No.2309

File: 1723934739381.jpg (41.24 KB, 540x407, bruh.jpg)


 No.2310

>>2309
>>2307
>>2306
>>2305
>>2304
Damn it this is why I hate phone posting. Admin please fix.

 No.2312

>>2300
Not a DE but one of those super ligt WMs like DWM is your best bet if you want yo really minimize resource usage. Takes some configuring but you could always just take the source from larbs.xyz (or hell, port the whole script to Openbsd).

 No.2313

>>2304
>it's so hard to find modern laptops
That's the real problem. If you don't want all the shitty drm locking up your hardware, you have sacrifice from using modern hardware. I still using AMD Desktop pre 2013 era and I maintain in a good condition. Even my laptops runs on old amd processors from 2009. Of course you need a good CPU fan and thermal paste for your pc to be resistant from overheating. A big desktop casing also helps the air flow ventilation and keep the tempature of your pc under control.

>it was having regular freezing for a long time
You also need to check whether your PSU or your power supply are powering enough voltage. In your bios, you could see the voltage status for 12V 3.3V and 5V. If for instance, your 12V doesnt reach enough threshold (e.g 11.734v). You're going to have freezing problem. To mitigate this, you can try tune the voltage usage up by 0.01v for vcore and nothbridge until you reach the stability of 12V threshold.

 No.2314

>>2300
this post were refering to this anon >>2298

 No.2315

>>2312
Can window manager like DWM handles systray indicator? I have some application that needs systray panel for indication. If possible, I dont want to use a saperate program just get systray panel at the corner of the screen.

 No.2320

File: 1723967967037.jpg (24.51 KB, 500x500, coreboot.jpg)

File: 1723967967038.jpg (207.16 KB, 1200x939, pop!_os.jpg)

File: 1723967967039.jpg (248.52 KB, 1200x781, laptopinternals.jpg)

>>2304
the laptops system76 sell are pretty good. the system76 laptops come installed with a debian distro called pop!_os that's easy to use. it also has batteries you can replace plus coreboot!

 No.2327

Stopped my decade long procrastination streak and started learning c++
Random side note, I've been on kde for a while and it's not bad (it freezes sometimes) but if/when cosmic reaches debian stable's repos (good luck with that) I'll definitely switch

 No.2329

>>2313
I would suggest going a bit forward, up to Broadwell (Broadwell is a hard limit, Skylake is where things came downhill) most intel are quite usable nowadays, I have a desktop with a Haswell xeon and works quite well.

 No.2338

Quadposter here to say thanks for the suggestions and that I've found the brand of modular laptops I was rembering: Framework. They do seem really nice on paper but I wonder if their build quality is up to having whole sections like the keyboard being removable. Also doesn't seem them or system76 make the drop in docks I was hoping for. And in looking into laptops I'v realized I really like bulky my 100% keyboards and laptops just don't have them. Maybe I should just get a new desktop instead. Or follow the hype and look for an old thinkpad on ebay.

I'm over reluctant to buy things at the best of times, combined with decision paralysis and the fact that I have do do all my research and eventual buying on my phone is making me put this off far too much. I should just buy something dirt cheap and get something else if it doesn't work.

 No.2356

>>2338
I think Panasonic Toughbook's over past few years do modularity better than Framework because the modules arent all same size so they allow more options. Some laptops do have 100% keyboards, unless you mean a mechanical keyboard then that would have to be custom made.

 No.2363

File: 1724660210470.jpg (118.92 KB, 1024x1024, pc.jpg)

>>2338
libraries have computers to help you do research, you know!

 No.2365

>>2363
You know I actually hadn't thought of that. And there's a library just a ten minutes walk away.

 No.2366

>>2356
Toughbooks do look really nice. But that price... T_T At least for new ones; will look into used later. If they're half as durable as claimed should be a great choice.

 No.2375

>>2315
https://dwm.suckless.org/patches/systray/
i3wm provides tray out of the box, if you use the built-in bar https://i3wm.org/docs/userguide.html#_tray_output
Also any standalone task bar should have a way to display such tray.

 No.2384

>>2338
>>2356
True desktop replacement gaming laptops have mechanical keyboards.

 No.2388

File: 1725092042155.jpg (437.76 KB, 2450x1390, cosmicDE.jpg)

File: 1725092042156.jpg (502.37 KB, 2450x1390, cosmicwindows.jpg)

File: 1725092042157.jpg (387.81 KB, 2450x1390, cosmicworkspace.jpg)


 No.2397

>>2388
I like System76 for trying to be the Apple of the Linux world. I really like their Thelio desktop line.

 No.2517

File: 1727448789049.png (90.3 KB, 310x370, cirnosad.png)

Why is this grep invert result doesn't work. I really hate it when it doesn't work

echo what wat lat
>what wat lat
echo what wat lat | grep lat
>what wat lat
echo what wat lat | grep -v lat
>
echo what wat lat | grep -E [a-z]
>what wat lat
echo what wat lat | grep -E [a-z] | grep -Ev lat
>
echo what wat lat | grep -E [a-z] | grep -v lat
>

...

 No.2519

File: 1727466297729.jpg (222.28 KB, 1280x720, cirno-math.jpg)

>>2517
> grep - print lines that match patterns
It works only with lines. "grep -v lat" does not print anything for you because you only have one line and that has "lat" in it. Try:
> printf "what\nwat\nlat\n" | grep -v lat
It will print both "what" and "wat" but not "lat".

What are you trying to do?

 No.2520

>>2519
Is there a way to make the invert result for word within one line? I think it has to use some sort of regex for it but I don't like remembering those complicated characters in regex just invoke the the invert result functionality. I would prefer a 1 liner solution if that possible.

 No.2521

>>2520
I'm not sure I understand, do you want to highlight everything but "lat"?

 No.2522

>>2521
yeah, discard the "lat" word and highlight the rest.

 No.2523

File: 1727483155901.jpg (54.05 KB, 397x441, happen-to-be-idiot.jpg)

>>2522
This is a surprisingly hard problem... I think it can be done with PCRE, which is supported by grep, but it's not nice.

First, match for all words:
> $ echo what wat lat latte blat | grep -P '\b\w+\b'
> what wat lat latte blat
I bolded the whole but the spaces are actually not highlighted!!
\w means "word" character, so not whitespace, and \b means the beginning or end of a word. Next, try a negative lookahead. It looks like "(?!PATTERN)" and means that whatever comes next, cannot match PATTERN.
> $ echo what wat lat latte blat | grep -P '\b(?!lat)\w+\b'
> what wat lat latte blat
This did not catch "latte", because it starts with "lat"... Maybe a negative lookbehind would work? It look like "(?<!PATTERN)" and means that anything you matched before, cannot match PATTERN.
> $ echo what wat lat latte blat | grep -P '\b\w+(?<!lat)\b'
> what wat lat latte blat
This did not catch "blat", because it ends with "lat"...

My solution would be to say, if it is three letters long and those three letters are "lat", don't match. The only way I know to express is to have three cases: less than three letters, exactly three letters, more than three letters. I ended up with this:
> $ echo what wat lat latte blat la | grep -P '\b(\w{1,2}|(?!lat)\w{3}|\w{4,})\b'
> what wat lat latte blat la
Which is ugly as hell but matches words expect for "lat". Which might not be what you actually wanted...

The problem is that if it's not matching words, "lat" will inevitably get included in two parts, like first matching "what wat l" and then "at latte blat la", or something. Maybe there's an easier way...

Why do you want to do this?

 No.2524

File: 1727492622969.jpg (119.79 KB, 850x1022, aha.jpg)

>>2523
I finally figure it out. Sorry for bringing you into this hurdle. Im just trying to find what is the ideal solution on using grep -v in this situation. Isn't grep -P derive from Pearl regex? lol, there's no way I'm gonna use all these wierd syntax.

Anyway here's my take on this. I think the best method to discard any word that has lat from sentance or paragraph is by using sed. Convert all the spaces into a newline with sed and then, invoke the grep -v lat. Now every lat word has been discarded but I need to convert the non disacarded lines back into sentance. So the best way to do this is by piping it wih xargs, and there you have it.

>echo what wat lat latte blat la | sed 's/ /\n/g' | grep -v lat | xargs
>what wat la

 No.2525

File: 1727509019422.gif (1.27 MB, 286x222, yoshi.gif)

>>2523
>>2524
uhh... what?

 No.2550

>>2520
you could try to first pass it through sed and replace ' ' with '\n' so reverse grep can work

 No.2729

That's how you do it kiddos
[code]
echo what wat lat latte blat la | awk '{ for (i = 1; i <= NF; i++) { if ($i !~ /.*lat.*/) { str = str OFS $i OFS } }; $0 = str; $1 = $1; print }'
[/code]

 No.2730

>>2729
Awksome! I wonder if it's possible just by changing the record separator, like this:
> echo what wat lat latte blat la | awk -v RS='[\n ]' -v ORS=' ' '/lat/ { next; } { print $0 }'
But it prints and extra space at the end…

 No.2733

>>2730
It wouldn't be smart, because it wouldn't work correctly with multiline input. If you persist, you may do this
echo what wat lat latte blat la |
awk -v RS='[[:space:]]' '!/.*lat.*/ { str = str " " $0;} END { $0 = str; $1 = $1; print }'
This is inferior to the original solution, not even more readable or short or easy to understand.

 No.2734

File: 1730747827136.gif (1.63 MB, 220x266, acatcry.gif)

>>2733
Sorry…

 No.2737

>>2734
Don't worry friend I am not smart either



[Return][Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / Rules / Radio / Streams / Net Friends ] [ cel / digi / lum / ran / vnt / media / lit / ocvid / kind / wap ]