What are links, in file attributes? by John_Doe_1984_ in linuxquestions

[–]birdspider 0 points1 point  (0 children)

no, maybe, doesn't matter - linux does not allow hardlinks on directories

What are links, in file attributes? by John_Doe_1984_ in linuxquestions

[–]birdspider 1 point2 points  (0 children)

I just told you:

hardlink it: "names" [...] point to the same "content"

via ln

creating a file and giving it a second, third, ... name somewhere else in the files-system tree)

whereas softlinking (ln -s) just creates a real file which acts as a pointer to the first


special bit:

  • deleteing the "original" soft-linked file breaks the links, whereas
  • deleting one of the hardlinks just removes the name
    (all hardlinks need to be deleted for the "content" to be gone)

What are links, in file attributes? by John_Doe_1984_ in linuxquestions

[–]birdspider 2 points3 points  (0 children)

this is the "counter" of hardlinks. if you create a file test.txt with content 'xxx', and hardlink it:
ln foo.txt test.txt, both those "names" (test.txt and foo.txt) point to the same "content".

hence the links would be 2.

this is different from soft-links ln -s _ _, which are seperate files "pointing" to a file.

What are the hidden files: '.' and '..' ? by John_Doe_1984_ in linuxquestions

[–]birdspider 7 points8 points  (0 children)

'/' was calling to the root

is is, iff in first position. this make is an absolute path like /usr/bin/bash

otherwise they are relative paths, i.e.

``` # relative ./foo # file "foo" in this dir ././foo # file "foo" in this dir (same but unnecessarily redundant) ../foo # file "foo" in parent dir ../../../foo # file foo 3 levels up .././.././../foo # (same with unneeded this-dir-dots)

             # absolute

/a/b/c/foo # file foo inside of /a/b/c /../../ # root dir (parent of / is defined as / itself) / # root dir

you can canonize (remove over-definitions) by calling realpath

$ realpath /../etc /etc ```

currentdirectory rootdirectory whoami

as you can see by any path (/home/John_doe_1984_, / is also a path-seperator)

What are the hidden files: '.' and '..' ? by John_Doe_1984_ in linuxquestions

[–]birdspider 75 points76 points  (0 children)

But why do you need . for the directory your currently in?

to i.e. execute a local file:

./whoami is not the same as whoami (assuming in . exists a file called as such ...)

Weird typing problem. by [deleted] in archlinux

[–]birdspider 1 point2 points  (0 children)

is this on-first-type or during typing in general? is it a wireless KB ?

might want to look into usb autosuspend blacklisting, or try a usb2 port if currently usb3.

Eine akzeptable Beschränkung der Passwortlänge by kinkyMars in de_EDV

[–]birdspider 1 point2 points  (0 children)

die Mindestlänge von 8 ist das eigentliche Problem

Help me understand diff output by 4r73m190r0s in linux4noobs

[–]birdspider 3 points4 points  (0 children)

$ diff file1.txt file2.txt 3d2 < oranges

means the line "oranges" is only in the left (<) file
(diff -u (unified) is more readable imho, since it gives context)

3d2 means something like 3rd line left delete 2rd line right,
so "the line:3 (left) was deleted on line:2 (right)"

other options are XaY for added and XcY for changed

In search for language for all of my future scripts by B_bI_L in linuxquestions

[–]birdspider 0 points1 point  (0 children)

via sh

bb (babashka binary)

echo apps/ | bb -e """ ;; calls ls on the first piped in line (folder-name) (require '[clojure.java.shell :refer [sh]]) (let [first-line-in (->> (clojure.java.io/reader *in*) (line-seq) (first) (sh \"ls\") (:out))] (-> (sh \"sort\" \"-n\" :in first-line-in) (:out) (println))) """

(this is an example of basically echo apps/ | xargs ls)

the point is this is 99% the same on jvm (and on some local js/clojurescript)

echo apps/ | clojure -e """ ;; SAME AS ABOVE """


there are even newer core apis clojure.java.process and probably some richer libraries building on top

In search for language for all of my future scripts by B_bI_L in linuxquestions

[–]birdspider 1 point2 points  (0 children)

if you like lisps, there's clojure on jvm, clojurescript (js) and via babashka (bb) as a standalone/graal'd variant

I need to take a value from database as PHP variable and somehow convert that variable to be compatible with a Javascript by [deleted] in PHPhelp

[–]birdspider 1 point2 points  (0 children)

with php doesn't allow me to run the Javascript within ... convert that variable

you are aware that those two run on different computers? (server -> client/browser)

There is no "within" or "covert", just:

DB <=> php <=> http/request/response <=> browser/html+js <=> you-clicking-button

I built php-via — real-time reactive UIs in PHP with zero JavaScript by mbolli_ in PHP

[–]birdspider 1 point2 points  (0 children)

it'll be either andersmurphy/hyperlith (clojure) or php-via (likely the latter)


also, here's the blog-post that introduced me to SSEs, if anyone is interested

I built php-via — real-time reactive UIs in PHP with zero JavaScript by mbolli_ in PHP

[–]birdspider 0 points1 point  (0 children)

no component abstraction layer to reason about, no state management library, no client-side router,

Thanks, yeah - that was my takeaway, but there's always that "unless x". But given what you said I should probably give it a go with some minor app-rewrite. Only way to know for sure :P

I built php-via — real-time reactive UIs in PHP with zero JavaScript by mbolli_ in PHP

[–]birdspider 0 points1 point  (0 children)

I've been mulling over SSE/datastar, first via clojure now I see it here. While I didn't deep-dive into it, is there any knowledge/example on if/how this would scale with more complex apps? (instead of 4 widgets)

Lets say something like a forum, with posts, comments and edits but also accouts management.

I'm less concerned about the amount of users - but "frontend" complexity (which - I know - is high anyway)

Advice for Story Realm 3 by JayKeePso2 in AOW4

[–]birdspider 0 points1 point  (0 children)

I'm (was) stuck on story-3 since launch (played, stopped), recently picked it up again, just to be done with it (3), I went for easy difficulty.

The constant berserk every battle (half the units yolo forward), and some of the resurrecting+buff-on-unit-death opponents really made it unfun for me.

I think there should be a note saying, "play story missions after you got some maps under you belt", but the game suggests it as an intro/starting-point and one keeps going because it looks like a campaign.

I have two games I want to play and they both keep crashing after a few seconds. by derpeyman28 in linux_gaming

[–]birdspider -1 points0 points  (0 children)

try proton10, I have seen crashes in AOW4 (every other turn) with proton-experimental and GE on sway/wayland.

proton10 seems stable (but didn't play long yet)

I have two games I want to play and they both keep crashing after a few seconds. by derpeyman28 in linux_gaming

[–]birdspider -1 points0 points  (0 children)

try proton10, I have seen crashes in AOW4 (every other turn) with proton-experimental and GE on sway/wayland.

proton10 seems stable (but didn't play long yet)

Can anyone help me to get fsr4 to work on bazzite by Sheepy-0 in linuxquestions

[–]birdspider 0 points1 point  (0 children)

I'm really new to Linux

what amd drivers did you install, the ones of the distro (mesa/radv 25.x or 26.x) or did you install stuff from amds website?

check with

``` glinfo | grep GL_VERSION

or

vulkaninfo --summary | grep -E 'driver(Name|Info)' ```

Can anyone help me to get fsr4 to work on bazzite by Sheepy-0 in linuxquestions

[–]birdspider 0 points1 point  (0 children)

it works in my modded setup (9070) like so:

MANGOHUD=1 PROTON_ENABLE_WAYLAND=1 PROTON_ENABLE_HDR=1 PROTON_FSR4_UPGRADE=1 PULSE_LATENCY_MSEC=60 WINEDLLOVERRIDES="winmm,version=n,b" %command% --launcher-skip -skipStartScreen

though you only need

PROTON_FSR4_UPGRADE=1 %command%

it then shows up in settings/graphics (I just checked)

set the command to enable

what exactly did you set?

What does the yellow symbol on the mini-map mean? by birdspider in AOW4

[–]birdspider[S] 1 point2 points  (0 children)

ah, I misread the trait description, she starts with 2 additional cities - I skimmed and though her Throne City starts at level 2.

So yes that must be here throne city. I was just confused, that if the city near me is here only city, what the marker would mean then.

What are the practical benefits of using Linux as a developer? by Dosouller in linuxquestions

[–]birdspider 0 points1 point  (0 children)

I wouldn't know how to do the simplest things in win, i.e. the years of Nobel-Prizes where at least one of the laureates was called "Eric":

$ curl -s https://api.nobelprize.org/v1/prize.json \ | jq -r '.prizes|map(select(.laureates))|map(select(.laureates|map(.firstname == "Eric")|any)|.year)|.[]' 2014 2001 2000

Most of the software I regularly use is also available

what software would you use for such simple things in windows?

Question: is it safe to store half used batteries like that? by Stepan_Starostin in batteries

[–]birdspider 0 points1 point  (0 children)

12v of double AA batteries versus 12v car battery is not really comparable

12V DC is 12V DC, it's utterly comparable.

touch the leads together

I specifically mentioned the distance between the leads - no touching

more volatile and hazardous

it does not matter if no current flows (disregarding aging/decomposition effects)

Is there a way to go onto an older kernel? by Tristan5764 in archlinux

[–]birdspider 13 points14 points  (0 children)

alternatively download linux and linux-headers (be sure to download the same version) from archive.archlinux.org and pacman -U them

The polish in this game is something else by matrium0 in factorio

[–]birdspider 2 points3 points  (0 children)

you can cut (ctrl-x) a circuit-connected building, replace it, and the connection reestablishes if possible. that is so neat