#🪅-progaming

1 messages · Page 127 of 1

winged mantle
#

even the build system has to be boilerplate

deep mulch
#

you love java

#

there's a few alternative build systems but they have ulgy syntax

#

not as nice as cargo

winged mantle
#

no java developer loves java enough to use it in build system

#

you're more likely to use groovy or kotlin to build a java project

#

(not true actually i saw somebody working on something that lets you use java as build scripts but it's pretty niche)

jade stone
#

Does this just run intelliJ headless and use its API

winged mantle
#

probably

deep mulch
jade stone
#

Go's build system is not simple

deep mulch
#

the moment you wanna add dependencies makefile won't work

jade stone
#

I tried to learn go once and that was the one reason I gave up so quickly

#

I could not for the life of me wrap my head around it

deep mulch
#

Go funny

winged mantle
jade stone
#

Dumb autocorrect

jade stone
#

Just use a flake

winged mantle
#

horror why does vlc open go.mod

deep mulch
#

with a makefile

jade stone
deep mulch
#

nop

winged mantle
#

where you literally just pu the github link of the thing you want blobcatcozy

#

literally your mum can do that

deep mulch
#

erong

#

@jade stone make salad lang

jade stone
deep mulch
#

yea

#

@jade stone typescript c++ amalgamation

jade stone
deep mulch
#

I've never used templates

jade stone
#

std::vector<T> is templated on T

deep mulch
#

I've never used vector

fleet cedar
jade stone
deep mulch
#

idk

#

I haven't written enough c++ to have to

#

Ive used char*

crude star
#

zt writes c code and calls it c++ because it still compiles

deep mulch
#

yes

odd locust
#

what could have possibly happened that week

shrewd canopy
odd locust
shrewd canopy
#

probably

odd locust
# shrewd canopy probably

it has 261 prs and so like almost 50 issues and there are some PRs from 3 years ago about plugins lol

stark timber
#

what’s wrong

deep mulch
#

@crude star @crude star

limpid mica
#

who

deep mulch
limpid mica
#

hi

deep mulch
#

you are unpingable

limpid mica
#

thanks

deep mulch
#

how are you

limpid mica
#

ok

#

now is zt

deep mulch
#

im okay

#

@robust jackal

fierce pendant
#

meow

solid gazelle
deep mulch
#

@solid gazelle

elder yarrowBOT
paper scroll
#

...

jade stone
#

ban soon™

fallen nebula
pseudo sierra
#

wait I gotta steal that before vee nukes I'm gonna use that

fallen nebula
#

wait

pseudo sierra
fallen nebula
#

ok i did nothing

jade stone
fallen nebula
#

ok i had forgor rule 2

#

i have read the rules again

#

i will not do the same mistake twice

jade stone
#

you wouldnt get banned, that was a joke

fallen nebula
#

it's 3:50AM, i'm out of coding stupid shit for AoC, my brain is messed up and i'm ADHDtism moment, i cannot understand 2nd degree or 3rd degree or whatever is hard to understand than true written words 😭

jade stone
#

go to bed

fallen nebula
#

so i can post it or not ?

fallen nebula
royal nymph
#

why did they even publish this vuln so early

ornate quiver
#

i heard something about this already being used in the wild

#

so it mightve made sense to make people update asap

worldly sigil
jade stone
supple whale
#

the fact that they made a shodan scanner for it

#

is crazy

winged mantle
fierce pendant
magic ice
#

make it a sticker

magic ice
#

it will only make things more yellow for the training material

#

do it

#

me when I grab krita and color shift the entire pallete towards piss hue

magic ice
#

I really like zig

#

it's also my tag

#

like I said

spark tiger
royal nymph
#

DELETE

magic ice
spark tiger
magic ice
rose otter
#

is there curerntly no way of disabling the discord call shortcut? (ctrl + ' or whatever)

shrewd canopy
#

Should have used aliucord instead of rnslop

magic ice
# shrewd canopy Should have used aliucord instead of rnslop

I LOVE ALIUCORD. Okay? I fucking love Aliucord. It's not a plugin loader, it's digital drugs. Lightweight, stable, smooth as hell—every update makes it better, and every update its loyal fanbase is like "god i fucking love Aliucord" Yes. I'd rather not use React Native. Aliucord isn't software, it's a blessing.

odd locust
shrewd canopy
#

Artificial bloatware

magic ice
sudden fog
#

someone needs to stop these auto ai dubs in youtube embeds, i cant be the only one its driving insane

magic ice
#

you were right

#

idk why it still shows on my react shitty client still

fiery prairie
austere idol
jade stone
strange matrix
#

been looking for a local github alternative
have any of you worked with Gitea? is it good? what's the general consensus?

fierce pendant
strange matrix
#

well gitlab doesn't allow my ip

strange matrix
#

well where do i download it from ?

strange matrix
#

forgejo doesn't have a win32 binary sadge

#

i would so use linux if nvidia drivers worked

#

😭

#

actually can someone here like
diagnose my issue?
if like its okay?

fierce pendant
#

they work completely good

crimson sparrow
#

You can selfhost GitHub :))

fierce pendant
crimson sparrow
#

Probably insanely expensive though

fierce pendant
crimson sparrow
#

I’ve seen it at Universities as well :)

fierce pendant
crimson sparrow
#

But there may have possibly been a reason I put :)) at the end of my statement

strange matrix
# fierce pendant what

my second monitor can't do its full refresh rate
also Proton/Wine-GE don't seem to work good with my totally legally aquired video games

#

second problem i can work with
but first one no

#

Zed and Kitty have graphical glitches like hell
and the TTY doesn't even show on the second monitor

#

laptop doesn't have DP btw only HDMI

fierce pendant
#

all works fine for me

#

what gpu do you have

strange matrix
#

all worked fine for me too
on my last laptop
this one not so much

#

last laptop was Maxwell 920mx GM108M
this one is Pascal GTX 1050Ti

fierce pendant
#

that makes a lot of sense

#

i have an rtx 3060

strange matrix
#

i don get it tho

#

last one worked perfectly

#

i have linux on my old laptop it works great with the second monitor

#

with HDMI

#

so i just

#

can't use linux on this laptop

#

i've tried forcing the EDID and even kernel parameters
but one of them made the laptop monitor completely shit the bed and turn off
and the other one disabled the nvidia card completely

shrewd canopy
fierce pendant
#

idk

shrewd canopy
#

I have a GTX 660 and its absolutely terrible

fierce pendant
shrewd canopy
pseudo sierra
ornate quiver
#

get something that isn't over a decade old

worldly sigil
supple whale
#

or

#

or

#

1 fake uni account

worldly sigil
#

i remember encountering a guy who apparently bought a university google account because then you could freely upload as much as you wanted to on the gdrive space on it due to the university's subscription they gave the accounts

#

likely pretty dangerous though since nothing stops the account getting suspended or deleted eventually and you just lose everything, or from a suspicious sysadmin suddenly snooping in on why you're using 10tbs of drive space

stark timber
#

that’s pretty common I think

#

for school districts

pseudo sierra
frosty obsidian
#

i have the second thing, first thing alone would cost as much as my pc nowadays

deep mulch
#

@frosty obsidian go sleep

dense frost
#

hi ive got an issue

#

can som1 help me plz

#

(made ts myself idk sum in the code wrong but idk what)

nimble bone
dense frost
#

a

#

bruh

nimble bone
#

also consider respecting nickname rules of servers you are in

dense frost
#

na my friend keeps changing mine in his server to random stuff

#

it pmo

ocean hatch
#

horror

jade stone
#

thanks windbg

#

guhhhhhhhhhhhhhhhhh

#

only shows when you hover the yellow dot

fallen nebula
#

Jetbrains for the love of fucking god why do i need to press this button every single fucking update, just fucking do it
-# this was your daily 1 minute Jetbrains rant, because despite making the best IDEs, they still do very very stupid stuff

opal vessel
#

just download french so it never pops up again

#

🧠

winged mantle
#

80% of code is written by ai

fallen nebula
opal vessel
#

you can never have enough french

fallen nebula
#

Like if i have a choice

nimble bone
fierce pendant
#

100% of ai companies

_ _

vestal hedge
#

I thought git needed a server component, but I suppose the client alone is enough

fierce pendant
fierce pendant
#

hey do you know the terminal emulator called foot

#

take a guess why its called that

#

uhh no its called that because its FOObar Terminal

#

(i personally use alacritty hahahahah)

#

lihnucks ❤️

#

nah

ornate quiver
spark tiger
jade stone
#

i love tar.xz taking 1000 years to unpack

#

1gb archive

#

to 5gb on disk

deep mulch
#

slow

coral kite
deep mulch
#

just buy more ram @jade stone

fierce pendant
pseudo sierra
#

zoot gonna start selling minky feet pics to afford ram

jade stone
#

this c++ lint is just a skill issue lol

#

big shock, short circuting exists and pre and post increment operators work as intended

deep mulch
#

@jade stone give unusuals when

#

salad hoarding all the unusuals

inland palm
#

unusual ghastly gibus

winged mantle
#

wouldn't it be cool if you could get readable error message from fstream

winged mantle
#

also I wish C++20 didn't change this

#

its useful to require explicit initialisation

#

sometimes there's isn't a logical zero value for all fields

#

if you can't require explicit initialisation you ought to just zero out all the fields with {} or = ...

#

in c it's easy to remember to zero initialise all struct instances but in c++ it's less easy because a lot of types are zeroed for you

deep mulch
#

kode tode

#

the kode todes

plush mist
#

Hey guys, I had this idea for a plugin

#

and it completes a discord game quest for you

#

without needing to install the game

#

If I contacted the owner of the github and he approved, could this be a plugin

nimble bone
#

you are not the first person having this idea 😭

#

also read what the FAQ in this very script says

plush mist
nimble bone
#

i did make at some point a userplugin using this script but for that exact reason it fetches it from the gist at runtime and evals it

#

but that's very bad for security ykyk

pseudo sierra
#

nina malware

opal vessel
#

i love questify!!

jade stone
#

i love msvc

#

they have custom iterator types in the c++ stdlib

#

so the type std::string::const_iterator

#

is not the same as std::string_view::const_iterator

#

on gcc/clang they're both const char*

winged mantle
#

the most horrific thing i've seen is that windows.h defines max so you can't use std::numeric_limits<...>::max()

spark tiger
fierce pendant
# spark tiger

this will either get rid of toxicity or create more toxcicity

winged mantle
#

what are these roles

#

I'm not really that good at rust just good at other languages

#

but that somehow makes me an intermediate rustacean

#

smh

spark tiger
winged mantle
#

what's this 😭

jade stone
#

because they define min

#

anything with an identifier min / max

#

breaks

winged mantle
#

why not always use nominmax

royal nymph
#

Devin is an AI coding agent and software engineer that helps developers build better software faster. Parallel cloud agents for serious engineering teams.

#

dumbass ai 😭

jade stone
#

thanks c++

spark tiger
#

who tf uses devin

winged mantle
ionic lake
#

every single repo on their github has a commit from it its funny

spark tiger
fierce pendant
slim zodiac
#

@covert zinc yo

#

may i know why my vesktop client is contacting your domain?

slim zodiac
#

is it some plugin or css?

shrewd canopy
slim zodiac
covert zinc
#

I'm going to leave this to you to figure out it's really not that difficult to figure out why your modded client is contacting my server

slim zodiac
clear thunder
#

you enabled the decor plugin

#

best to read the plugins you're enabling rather than blindly selecting all of them

#

anyways this isn't the right channel

slim zodiac
#

but still i do not see a reason for this plugin to contact that server multiple times

#

but whatever

charred wraith
#

how do you think it gets the decorations

#

slim zodiac
#

why does it need to get decorations so often?

charred wraith
slim zodiac
#

from what i can tell, you only need to cash them like once

#

and check on process start for an update

shrewd canopy
covert zinc
#

lil bro i made that shit 2 years ago and we experimented with many ways of doing it

slim zodiac
covert zinc
#

you can read the source code to see how it works :)

slim zodiac
slim zodiac
pastel bane
jade stone
#

i dont think it is gcc

#

oh

#

bug in gcc

ornate quiver
fallen nebula
frosty obsidian
#

yeah i hate that

fallen nebula
#

Technically i don't care as i have ultimate as a student

#

But doing asm sounds fun

jade stone
frosty obsidian
#

i think you know you really fucked up when the people that aren't even effected are also pissed

#

i have a bright green ad in the top right of my screen now

#

i did not have it before and want it gone

#

im also like 80% sure they used ai to write the blog post

frosty obsidian
#

the one announcing the merge update

pseudo sierra
#

insane

fallen nebula
#

actually maybe i don't even need ASM and could do it with reflection

fallen nebula
#

lemme cook

#

i'm just theorizing

#

cloning the plugin template repo rn

solid gazelle
#

i mean

#

what the button look like

deep mulch
fallen nebula
#

but i'm thinking doing smth like that

import com.intellij.ide.AppLifecycleListener;
import java.lang.reflect.Field;
import java.util.Collections;
import java.util.List;

public class TrialWidgetKiller implements AppLifecycleListener {
    @Override
    public void appFrameCreated(List<String> commandLineArgs) {
        try {
            Class<?> targetClass = Class.forName("com.intellij.openapi.wm.impl.CustomWindowHeaderUtil");
            Field field = targetClass.getDeclaredField("NON_REMOVABLE_ACTIONS");
            field.setAccessible(true);
            field.set(null, Collections.emptySet());
        } catch (Throwable e) {
            System.err.println("TrialWidgetKiller Failed: " + e.getMessage());
        }
    }
}
solid gazelle
fallen nebula
#

WTF i just cloned the template calm down

#

my god

#

1st thing i'm doing is nuking kotlin and coding that shit in java

deep mulch
#

you know that won't stop dependabot

solid gazelle
#

you should still do it

#

yk just delete .git and .github and make a new one so there's no actions or weird things

fallen nebula
#

but i'm sorry kotlin lovers, but i'm not one of you

deep mulch
#

evil

fallen nebula
#

i'm not evil

#

it's just that i like java

#

actually there's smth silly

#

i won't be able to test if it work

#

since well i have a license

fallen nebula
frosty obsidian
#

maybe

#

its late so not now

deep mulch
#

I could test too maybe

fallen nebula
#

Flipping god stop spamming me

fleet cedar
frosty obsidian
#

yeah it's the usual "its not just x, its y" thing that chatgpt loves to do

fleet cedar
#

I wonder where it gets all those cringe patterns from

fallen nebula
fallen nebula
#

default template is fing bloated shit

nimble bone
#

Hello everyone

Thank you for the feedback.

We do want our users to have an easy way to try features provided by the subscription, so we designed a single entry point to learn about them and try.

The trial is completely free and anonymous, no commitments there. After the trial, the widget becomes gray, still serving as an entry point to learn about subscriptions and manage them.

We also made sure it does not interfere with the actual coding experience.

fallen nebula
#

yeah bs

#

the plugin will work

#

i'm 99% sure reflection will do it

solid gazelle
#

just draw a rectangle over the trial button coloured like the background

fierce pendant
fallen nebula
#

alright, it's going well

jade stone
#

You could probably use something like jadx to grep the jars for the string

fallen nebula
jade stone
#

Well yes

#

But in the release build

fallen nebula
#

it's going well except that since Java 17, you can't change static final via reflection anymore

fallen nebula
#

but don't worry, i have people that help

winged mantle
#

does intellij allow adding class loading hooks which modify bytecode like eclipse blobcatcozy

fleet cedar
#

Who cares about whether it allows?

#

A nice thing about java is you can do it anyway

fallen nebula
#

fun fact : there was no need for any reflection in the first place
i can just unregister the action 🙂

#

final code cooked up

solid gazelle
royal nymph
fallen nebula
deep mulch
#

virus

solemn ravine
#

v+ regular 369179216031383552

deep mulch
#

whos that

spark tiger
#

lc.ui 369179216031383552

visual shellBOT
# spark tiger lc.ui 369179216031383552

-# <:i:1263593669215256597> labsCore will be shutting down <t:1767265200:R> • Learn more

-# <:b:1263607134596104273>󠄴

<:i:1430645266075095153>   User ID    369179216031383552 
<:i:1430645334714880081>   Display Name    Julienraptor01 
<:i:1430645288766275664>   Accent Color    #ffff 
<:i:1430645314423099472>   Tag    RAIL 

<:i:1430645232977842226> Dates

**Account Created: **<t:1508089584:f>
**Joined Server: **<t:1713882351:f>

<:i:1430645264661741769> Server

**Roles: ** 8/216

spark tiger
#

o

fallen nebula
#

Also thanks for the role

#

I feel colorful now

royal nymph
solemn ravine
#

WHAT

royal nymph
#

oh idk i didnt even check who that is

deep mulch
#

vee insane

unborn dagger
#

How can I add my own badge to my profile via css and sign it?

jade stone
fallen nebula
jade stone
fallen nebula
#

There's only one way to know

fallen nebula
jade stone
#

i doubt they would, they have a much more manual review process compared to something like the vscode marketplace

jade stone
fallen nebula
#

Just a bit of svg rendering

frosty obsidian
#

works

#

it did require a restart though

deep mulch
#

@frosty obsidian i thought you had student plan

frosty obsidian
#

no

#

never did

deep mulch
#

why

#

youre in uni

frosty obsidian
#

they don't like my school

deep mulch
#

cant you contact jb

frosty obsidian
#

i did

#

thats how i know they don't like my school

deep mulch
#

love

fallen nebula
frosty obsidian
#

is there some manifest value that indicates a plugin requires a restart

fallen nebula
#

No idea, probably

#

Thanks for testing and letting me know that

deep mulch
#

wing wong

fallen nebula
#

If a plugin requires restart (for example, due to using native libraries) specify require-restart="true" for <idea-plugin> root tag in plugin.xml.

#

Welp

jade stone
spark tiger
frosty obsidian
#

they had some other requirement i wasn't comfortable doing

spark tiger
frosty obsidian
#

i swear it had some requirement to put real name or email or something in my profile

spark tiger
#

i’ve seen this requirement in some forum posts and faq but they never asked me to during the process

deep mulch
#

I already have your real name

#

and everything

jade stone
deep mulch
#

wing scared

frosty obsidian
#

idrc anymore

#

they made clion free so i don't have a reason to get edu

deep mulch
#

I do

frosty obsidian
#

name something better

ornate quiver
#

that was an instant no for me

#

and jetbrains just refused my edu email

deep mulch
#

insaneeee

ornate quiver
#

i just found a crack instead

clear thunder
#

(i didn't even use any of the features fr)

#

only digitalocean so i can have a backup selfhosted vpn

royal nymph
#

literally just make a github alt 😭

spark tiger
ornate quiver
#

you have to set your full name as your GitHub profile name publicly

#

so yes you do

spark tiger
ornate quiver
#

well lucky you I guess

spark tiger
#

they don’t even check it manually it’s all automated so what’s the point

fleet cedar
#

Anyone know if there's any way to get jetbrains ides to not hallucinate a blank line after the final line terminator?

shrewd canopy
glossy ermine
#

neovim

tired vigil
glossy ermine
#

no it’s true i can confirm

glossy ermine
spark tiger
#

this shit so ass

shrewd canopy
#

VS is awesome and I use it sometimes

spark tiger
#

rider is just better in almost everything
upd: or clion for c++ but afaik rider can work with c++ too

shrewd canopy
spark tiger
#

i’m pretty sure they deprecated macos version

spark tiger
spark tiger
#

i switched to rider back then and it was so much better

jade stone
royal nymph
deep mulch
spark tiger
#

so like

fleet cedar
#

If I have a file with 19 lines, it draws a 20 next to a blank line at the bottom

fallen nebula
#

you on linux ?

#

depending on which OS you use i have different explanations

fleet cedar
#

This particular machine is windows

#

I doubt it would change how it counts lines between platforms though

fallen nebula
#

linux file generally end with a \n

#

so that there's always an empty final line

fleet cedar
#

Yes I know that

tired vigil
fleet cedar
fallen nebula
#

it's a standard

#

you don't have to follow it

#

but it's nice if you do

fleet cedar
#

The line ends with a line terminator

fallen nebula
#

anyway

fleet cedar
#

JB draws an extra line after that

#

I want that fake line gone

fallen nebula
#

if you're on windows, then it's likely just the setting to keep empty lines under the bottom which is intended to make editing easier

#

gimme a sec i'll find the setting

fleet cedar
#

There's no setting fir "don't draw extra blank line after end", I checked

#

There's a "don't terminate the last line" setting but that's just wrong

fallen nebula
#

there is

#

there's a setting for how many fake lines you want

fleet cedar
#

I haven't seen that

#

Won't be back to work until monday though so can't check

#

But I'm pretty tempted to make a plugin that patches the line number renderer

fallen nebula
#

there's no need

#

i'm pretty sure this is what you mean
it's in editor general

#

also i know there was a value for how many lines that can be

deep mulch
fallen nebula
#

by default it's like 5

deep mulch
#

it must be something you enabled

fleet cedar
#

I haven't looked at those settings, but from what I can tell the issue isn't virtual space but that it believes \n to be a line separator rather than terminator

#

Could be wrong

fallen nebula
#

well \n is a separator

fleet cedar
#

No

fallen nebula
#

\n indicate a new line you silly

fleet cedar
#

It's a terminator

fallen nebula
#

no it's not a terminator

#

and if it is, you just need to force for that one file jetbrains to only see CRLF instead of LF as newline

#

also if you use mixed CRLF with LF, that's your issue

#

don't do it

#

genuinely

fleet cedar
#

A line is a sequence of characters ending with \n

fallen nebula
#

a line is anything (or nothing) with either a \r (CR, short for Carriage Return) on MacOS (old) or \n (LF, short for Line Feed) on Linux or \r\n (CRLF, short for Carriage Return Line Feed) on Windows at the end of it
but it's neither a file nor truly a line terminator, it's a separator
historically it come from type writing machine
the carriage return was one thing and line feed another thing
technically if we purely go by the \r return the carriage to line[0] and \n does line++, Windows is the most logical
but by convenience, we use \n with Linux which does both
and the old MacOS way is dead
but for shit like HTML, it still use the Windows way which technically makes sense

fleet cedar
#

But only one of them is right

fallen nebula
#

it being a terminator doesn't make sense
the true terminator is \0

deep mulch
#

null byte

#

yop

fleet cedar
#

Text files don't contain \0

fallen nebula
#

or there isn't a terminator and you have the size

fleet cedar
#

I'm talking text files, not strimgs

fallen nebula
#

strings are files and files are strings

#

or byte arrays

fleet cedar
#

Have you ever catted an unterminated file

fallen nebula
#

depending if you see it as text or data

fleet cedar
#

Shit's wack, yo

fallen nebula
# fleet cedar Have you ever catted an unterminated file

here's your difference
notice how when there's a \n cat output a newline
cat literally just redirect stdin to stdout
and \n in Linux is a newline
the file is still "terminated" in both case
if you want to actually read an unterminated file, cat /dev/urandom and see how a really unterminated file behave

#

text files are strings saved to disk

#

and instead of using \0 to terminate them, we save their size in bytes to know the bounds

fleet cedar
#

Notice that when there's no line terminator, things get broken

fallen nebula
#

things don't get broken

#

a line terminator is not something that exist

fleet cedar
#

The shell prompt starts on the middle of the line

fallen nebula
#

Uh ?

fleet cedar
#

(Unless you use zsh which mitigates that)

fallen nebula
#

No

#

That's not a bug

fleet cedar
fallen nebula
#

Yes that's normal

#

The last text that was in stdout didn't tell hey put back the caret on a new line

#

And your prompt don't contain a new line at the start

#

That's normal

fleet cedar
#

Yep, it didn't terminate the line so things continue from the middle

fallen nebula
#

Line termination isn't a thing

#

What has happened here is that at no point you pressed the key to move the caret

fleet cedar
#

I legit don't care what you think

fallen nebula
#

So the carret didn't move

#

Well the thing is i'm not thinking

fleet cedar
#

I only care that jb displays it wrong and I want it to stop that

fallen nebula
#

What i'm stating is a fact

fallen nebula
#

But \n say move the carret to the start of the next line in Linux language
And for Windows it means move the carret to the next line

fleet cedar
#

But then jb would use crlf and that's even worse

fallen nebula
#

Then don't complain and don't add a \n at the end of your file

fleet cedar
#

I just want my text files to be text, i.e. consisting of zero or more lines which end with \n

fallen nebula
#

Yes that's the Linux way

fleet cedar
fallen nebula
#

This means that you will always have an empty line at the end

#

That's how Linux does it

fleet cedar
#

No

#

There is no empty line

fallen nebula
#

By not rendering that last line, you would be wrong

fleet cedar
#

An empty line consists of the bytes "\n"

fallen nebula
#

"\n" is 2 empty lines

#

\n means line++

#

no matter what you want, \n mean move the carret to a newline

#

that's a fact

#

you can't change it

#

it's universal

#

a line must always be present
if you terminate one, a new one is created if you want to talk with termination

#

here's with your \n being shown as a character even tho it shouldn't be rendered normally

#

a LF mean move the carret to a new line, that's it

#

a line doesn't end with \n
\n simply say a new line start after that

#

it's why we call it a newline

fleet cedar
#

One line

fallen nebula
#

no

deep mulch
#

insane

fallen nebula
#

there's a second empty line

#

right before your prompt

deep mulch
fallen nebula
#

if there was no newline, your prompt would be on the same line

fleet cedar
#

Are you saying gnu coreutils wc is wrong?

deep mulch
#

I agree with Julien

fallen nebula
#

i'm saying it's right and you are misunderstanding

fleet cedar
fallen nebula
#

wc count the number of newlines

#

that's what the code is written to do

#

and there is 1 occurence of \n in your file

#

there are 2 lines
one newline

#

Print only the newline character counts. If a file ends in a non-newline character, its trailing partial line is not counted.

#

if you don't think that, you are misreading the man page

fleet cedar
#

Look, "partial line"

#

Not a line

fallen nebula
#

a partial line is a line

crude star
#

holy shit why is there a heated argument over a whitespace character

deep mulch
#

@crude star hii

fallen nebula
crude star
#

no one cares

fallen nebula
#

yes i agree

fleet cedar
#

I'm just stating the fact that literally every unix tool considers lines to end on \n and may get subtly wrong if they don't

fallen nebula
#

well no, that is misreading, when \n is encountered, a newline is started

#

\n doesn't mean stop the line
it means stop the line and create a new line

#

hence the name, newline

crude star
#

the name newline is because of typewriters its not at all deep

#

if you want to be this pedantic say that it moves the cursor

fallen nebula
fleet cedar
#

I really don't care about your philosophical views

fallen nebula
#

it's not philosophical

#

it's factual

crude star
#

no you're trying to name what a line is when it's not a concrete concept

fleet cedar
#

I asked if there's any way to get jb to display line numbers the way I want

fallen nebula
#

\n for linux move the carret back to the start of the next line

crude star
#

what happens if the output wraps around to you

fallen nebula
#

if really it did what you want, you would have no way to put your caret on that new line

fleet cedar
#

I want a file with 19 lines to show line numbers 1-19.. Simple as that.

fleet cedar
fallen nebula
#

a file with 19 \n has 20 lines
it has 19 full line and a partial line if you want

crude star
#

do what vim does and display a special character instead of a number on a trailing newline, or just don't

fleet cedar
#

For the record vim has supported this behavior for some 40-50 years or whatever

crude star
#
  1 a
  2 b
  ~

a\nb\n

fallen nebula
#

see how that ~ is on a third line

#

there is 3 lines there

crude star
#

genius

fallen nebula
#

you literally can't prove my point better lmao

fleet cedar
#

Yes, vim fills the remainder of the file, where there's no lines, with ~

fallen nebula
#

no vim fill the rest of the file with \n~

crude star
#

it does not if there is no trailing newline, also a ton of themes just hide it

#

because its so unimportant

winged mantle
#

ghostty my beloved

#

(don't ask why i have 7 ghostty and 1 xterm)

deep mulch
#

koduh

#

oh your kode tode

#

koda tode

jade stone
#

@deep mulch what is a split apk

jade stone
deep mulch
winged mantle
#

ghostty renders my font better

deep mulch
#

native libraries, resources, localizations

#

saves on download size

jade stone
#

What font is it

frosty obsidian
#

still don't get why it needs root

#

installing should definitely not require that, and i don't see why patching would either

jade stone
frosty obsidian
#

vd manager patched and installed splits just fine

elder yarrowBOT
frosty obsidian
#

not talking to you

#

that should probably be worked on ykykyk

#

given that pretty much every big app is split these days more attention should probably be put there

deep mulch
#

true

golden timber
#

what was the reason we cant add a settings menu to the new one?

valid jetty
#

oh no way can i finally type here again

deep mulch
#

WHY DID YOU BREAK THE CHAIN

#

i think you should ban rosie from here again just for that @royal nymph

valid jetty
#

@deep mulch rate

languid trellis
#

in fact

#

i hate KYC in general

#

in financial contexts too fuck that

#

ruined cryptocurrency

#

now instead of being what it was supposed to be, an unregulated, decentralised peer to peer (& hence anonymous) currency outside of the control of any central entity like a government or similar, now its just finance bros using it as a speculative investment or 60 iq influencers doing rugpulls

#

and pretty much all transactions go through shitty heavily regulated KYC exchanges that also happen to delist or put barriers against actually good currencies like monero

#

one of the many many many ways the patriot act ruined the internet

#

idk how i went from shitty corposlop text editors to the patriot act my bad

pseudo sierra
#

justified crashout tbh

frosty obsidian
deep mulch
#

same

strange matrix
#

guyths use notepad best editor trust me

frosty obsidian
#

i use linux btw

golden timber
neon bear
#

@frosty obsidian

#

And i didnt even need to Google dat

#

Ive never used the Embarcadero C++ IDE, but did use the Delphi one

#

Codeblocks was...

#

Entertaining

fallen nebula
#

Codeblocks is the fucking worst

#

So bad i switched to Visual Studio back then

#

Then once i realized Visual Studio was a mess, i moved to VSCode with plugins and only coding C/C++ on Linux via WSL

#

And since then, it's great

#

I should try CLion, i know Jetbrains makes good stuff, but the thing is, my WSL setup with VSCode and plugins works so well i don't want to change it

languid trellis
fallen nebula
languid trellis
jade stone
#

I prefer clangd myself

deep mulch
jade stone
#

When you really just need clangd

deep mulch
#

ignore the bloat and its great imo

jade stone
deep mulch
jade stone
#

I have no other choice

deep mulch
#

clion runs on windows for arm?

jade stone
jade stone
#

There literally is no wifi driver support

#

And that's just the first issue I found

deep mulch
jade stone
languid trellis
# languid trellis one of the many many many ways the patriot act ruined the internet

after carefully reflecting upon my words i have changed my mind. i love KYC i love the NSA i love palantir i love israel and its intelligence firms. the promised land shall be returned.

the patriot act has been a stepping stone towards a better society. i have TPM 2.0 (not a backdoor) and secure boot enabled and have switched to windows 11 with automatic updates on for [national] security and condemn using free and open source BIOS and software/firmware in general for [national] security reasons.

cryptocurrencies such as monero are harmful and dangerous to the banking system and may weaken the state apparatus and hence i condemn using them as well. one may instead use a credit card for all purchases as physical cash is inconvenient and outdated.

please do not airstrike my house.

#thiel2028 שָׁלוֹם

shrewd canopy
undone laurel
#

is it possible to use custom plugins on official builds?

fleet cedar
#

And the plugins are part of the build

dense sand
#

can someone tell me how do i discover which fonts are missing here?

fleet cedar
#

Inspect element to see what symbol it is

dense sand
#

good idea

#

ive just reinstalled my system and decided to switch to kde

winged mantle
#

other fonts also render terribly in both ghostty and kitty blobcatcozy

#

might just go back to konsole, it's more practical for me (doesn't sacrifice readability for performance)

#

except there are also some symbols it doesn't render well

#

actually xterm feels more performant than konsole and also renders text better than kitty/ghostty

#

it's just not very nice to use

#

hmm maybe i should try alacritty

spark tiger
#

oh wait i’m blind

languid trellis
spark tiger
#

Terminal.app alert goat of terminals

languid trellis
winged mantle
#

it confuses me when apps have really blurry text rendering

#

is nobody using 1080p any more

#

I really sound insanely obessed with it

#

but good font rendering is a human right

fleet cedar
#

Along with pixel-granularity scrolling, which a lot of terminals are lacking

spark tiger
nimble bone
#

split, tabs, AI

fleet cedar
deep mulch
languid trellis
#

i dont personally think their software sucks but i definitely see why people think that

valid jetty
# winged mantle but good font rendering is a human right

i never knew how hard font renedering was until i watched a 1h 10m video on it

This... is text! Let's figure out how to draw it.
Starring: Bézier curves and (oh so many) floating point problems.

Support my work (and get early access to new videos and source code) on Patreon or Nebula

Source code:

▶ Play video
#

thanks sebastian lague

deep mulch
#

@valid jetty hiii

valid jetty
#

hiiii

still jolt
undone laurel
opal vessel
#

i wonder why

#

vr 14

#

i keep typing 14

#

fml

#

vr 13

#

okay bruh

#

just go read rule 13

dense sand
#

is this normal

shrewd canopy
#

Ghidra eated 8 GB for me once

runic sundial
#

It's like a triangle of Performance-Quality-Speed

#

And hitting each point is the hard part

fierce pendant
#

fe
et

placid cape
valid jetty
dense sand
#

anyone familiar with any freestanding allocators out there? im looking for something freestanding and very minimal, yet effective, basically, i give it space, it can manage it, allocate from it, free from it etc.

#

and no, i ideally dont want to write my own

winged mantle
#

st is horrifying

#

no scrollback

royal nymph
#

but yeah st sucks lmao

#

like all suckless stuff

winged mantle
#

makes xterm look super feature rich

royal nymph
#

I need a new terminal tbh

i want something that's like alacritty but has tabs and scrollbar

#

alacritty is too opiniated and won't implement things like scrollbar

nimble bone
#

iThink it has scrollbar

frosty obsidian
#

yeah it does

fierce pendant
#

alacritty is nice but tabs would be really nice

pseudo sierra
#

but fr ghostty or kitty is probably what you want

#

wezterm as well but I'm not sure if you like how much configuration it has

deep mulch
#

@frosty obsidian

fierce pendant
pseudo sierra
#

I'm pretty sure yes

nimble bone
#

warp terminal

fierce pendant
#

oh an build-in splitscreen terminal like in konsole would be nice does ghostty have that?

fierce pendant
fierce pendant
#

really?

#

like without using tmux or something like that

deep mulch
#

nino is aibro

fierce pendant
#

nin0?
more like ain0wayimusingwarp

pseudo sierra
fierce pendant
#

how

deep mulch
#

@pseudo sierra elissuh

pseudo sierra
#

@deep mulch zootie patootie

pseudo sierra
# fierce pendant how

on ghostty
ctrl + shift + e new_split:down
ctrl + shift + o new_split:right
on kitty
ctrl + shift + enter makes a new split
on wezterm
I forgor what the default binds are I have custom ones sillycat

deep mulch
fierce pendant
#

waow

fleet cedar
#

Imo splits in terminal is pretty useless, use a better wm

pseudo sierra
#

true

jade stone
fierce pendant
#

i can do that with my wm

#

just

#

i dont know how to do vertical splitting in my wm

#

and i am too lazy to figure that out

winged mantle
paper scroll
#

hyprland my beloved

pseudo sierra
#

true

winged mantle
#

it's useful to be able to have a smol window on its own

paper scroll
#

you can just make it float in hyperland lol

fleet cedar
#

And in i3

paper scroll
pseudo sierra
paper scroll
#

lol

fierce pendant
paper scroll
#

looks intresting

valid jetty
#

if all you want is to allocate some things that have a lifetime longer than the function's stack frame, this is all you really need

valid jetty
winged mantle
#

reading challenge

valid jetty
#

first thing i thought of

#

though i do remember a different very tiny allocator

winged mantle
#

(omarchy just needs to add debian install instructions)

pseudo sierra
#

omarchy probably the worst hyprland dots oat

fair sluice
winged mantle
#

probably nemo or thunar or pcmanfm? (I can't telll somehow lol)

paper scroll
#

dolphin kills itself on hyprland

#

tried fixing it but i like thunar better anyways

fair sluice
#

I’ll have to try it out!

pseudo sierra
shrewd canopy
paper scroll
pseudo sierra
#

oh

paper scroll
#

but also mime relations

pseudo sierra
#

that's just kde apps on non kde being weird

paper scroll
#

hard to make it actually open the right app

pseudo sierra
paper scroll
#

isn't it a config file

pseudo sierra
#

I forgor how to cuz it's been like a year since I last even looked at it but I think all you need to do is install smth and copy a file

languid trellis
paper scroll
#

too much work thunar better

pseudo sierra
#

true

paper scroll
#

lf?

languid trellis
#

yeah

pseudo sierra
#

I kinda wanna make my own file manager at some point but effort and I literally never use it so trolley

languid trellis
paper scroll
pseudo sierra
#

actually probably not I wanna get at least one of my projects into an usable state by the end of the year

paper scroll
#

lol

fierce pendant
solid gazelle
#

who's jim

fierce pendant
winged mantle
#

thinking about file managers is fun because idk maybe you could create a 4d file management system

#

but then you realise how much goes into making a file manager

dense sand
#

how am i supposed to find the response sobvelasmutny

dense sand
dense sand
winged mantle
#

java.lang.Object

ionic lake
#

Jay mall oc

lavish cloud
winged mantle
#

I like the way wherever you go the advice for monogame is do NOT use the content manager

#

i also tried haxeflixel but for some reason you need to wait 10s to see every change on a tiny project

#

love2d feels like the easiest thing i've ever used

#

C# probably scales bette than lua though

fierce pendant
#

or hl compilation?

winged mantle
#

both yes

#

I might have set something up wrong

#

I only found 1 post where somebody complained about this

#

something has gotta be wrong if it's slower than compiling a tiny c++/rust project

#

nvm it's more like 5 seconds

#

I am just impatient

magic ice
#

unwrap

fierce pendant
magic ice
#

they bought into the ad

fierce pendant
magic ice
fierce pendant
magic ice
#

ptr::null().unwrap()

fierce pendant
fleet cedar
#

You guys know only Option and Result have unwrap methods, right?

lavish cloud
winged mantle
#

today i wrote my first linked list

#

i don't think i ever wrote a linked list because it's such a useless thing to do

deep mulch
#

@winged mantle now write a fifo queue

frosty obsidian
#

do a priority queue

royal nymph
elder yarrowBOT
# royal nymph vai write fifo queue in javascript

Here's a concise FIFO (First-In, First-Out) queue implementation in JavaScript using a class:

class Queue {
  constructor() {
    this.items = [];
  }

  // Add an element to the back of the queue
  enqueue(element) {
    this.items.push(element);
  }

  // Remove and return the element from the front of the queue
  dequeue() {
    if (this.isEmpty()) {
      return "Queue is empty";
    }
    return this.items.shift();
  }

  // View the element at the front of the queue without removing it
  peek() {
    if (this.isEmpty()) {
      return "Queue is empty";
    }
    return this.items[0];
  }

  // Check if the queue is empty
  isEmpty() {
    return this.items.length === 0;
  }

  // Get the current size of the queue
  size() {
    return this.items.length;
  }
}

This implementation utilizes a JavaScript array internally, where push() adds elements to the end and shift() removes them from the beginning, adhering to the FIFO principle.

-# Response generated by gemini-2.5-flash. AI may be incorrect or misleading.

royal nymph
#

this hurts

fleet cedar
#

Not sure if that's worse than the O(n) pop

royal nymph
#

you either have to shift or unshift

#

both suck

#

would you use a linkedlist

#

might unironically be slower than array in most cases

fleet cedar
#

Ring buffer probably

royal nymph
#

array in js is very well optimised

deep mulch
valid jetty
#

you can write a deque pretty easily in terms of arrays and treat it like a circular queue

#
struct Deque<T> @nofmt {
    T[] data,
    u64 front,
    u64 back,
    u64 size
}

fn Deque::new<T>() -> Deque<T> {
    return Deque {
        data = [],
        front = 0,
        back = 0,
        size = 0
    };
}

fn Deque::len<T>(Deque<T> self) {
    return self.size;
}

fn Deque::is_empty<T>(Deque<T> self) {
    return self.len() == 0;
}

fn Deque::push_front<T>(Deque<T> *self, T value) {
    if self.size == self.data.len() {
        self.resize((self.data.len() || 1) * 2);
    }

    self.front = (self.front - 1 + self.data.len()) % self.data.len();
    self.data[self.front] = value;
    self.size += 1;
}

fn Deque::push_back<T>(Deque<T> *self, T value) {
    if self.size == self.data.len() {
        self.resize((self.data.len() || 1) * 2);
    }

    self.data[self.back] = value;
    self.back = (self.back + 1) % self.data.len();
    self.size += 1;
}

fn Deque::pop_front<T>(Deque<T> *self) -> Option<T> {
    if self.is_empty() {
        return None();
    }

    value := self.data[self.front];
    self.front = (self.front + 1) % self.data.len();
    self.size -= 1;
    return Some(value);
}

fn Deque::pop_back<T>(Deque<T> *self) -> Option<T> {
    if self.is_empty() {
        return None();
    }

    self.back = (self.back - 1 + self.data.len()) % self.data.len();
    value := self.data[self.back];
    self.size -= 1;
    return Some(value);
}
``` its like not very difficult
deep mulch
#

8000 self

#

@valid jetty I pay you to add implicit self

frosty obsidian
deep mulch
#

fair

royal nymph
#

wtf tanstack router is peak

jade stone
#

in SSR*

fierce pendant
#

should i learn react for that.

royal nymph
royal nymph
fierce pendant
#

damn

jade stone
visual shellBOT
# jade stone lc.wiki FOUC

-# <:i:1263593669215256597> labsCore will be shutting down <t:1767265200:R> • Learn more

A flash of unstyled content (FOUC, or flash of unstyled text) is an instance where a web page appears briefly with the browser's default styles prior to

royal nymph
#

guhh

#

in dev or prod

jade stone
#

Both

royal nymph
#

im using css modules

jade stone
royal nymph
#

no i won't

#

making spa

jade stone
#

Yeah

#

Only affects ssr

royal nymph
#

this doesn't make much sense to be ssr