[-] N0x0n@lemmy.ml 15 points 8 months ago

He will surely die on his hill... ALONE !

[-] N0x0n@lemmy.ml 31 points 8 months ago* (last edited 8 months ago)

Interesting and fun read, thank you !

In the beginning, the earth was without form, and void. Wait, a bit too far behind.

😁

[-] N0x0n@lemmy.ml 39 points 8 months ago* (last edited 8 months ago)

You could have saved hours by just using mkvpropedit writing a simple 3 line bash script that loops through your files.

Just saying 🤷🏼

40
submitted 8 months ago* (last edited 8 months ago) by N0x0n@lemmy.ml to c/linux@lemmy.ml

Hello everyone !

I have no idea if I’m in the right community, because it’s a mix of hardware and some light code/command to extract the power consumption out of my old laptop. I need some assistance and if someone way more intelligent than me could check the code and give feedback :)

Important infos

  • 12 year old ASUS N76 laptop
  • Bare bone server running Debian 12
  • No battery (died long time ago)

Because I have no battery connected to my laptop It's impossible to use tools like lm-sensors, powerstat, powertop to output the wattage. But from the following ressource I can estimate the power based on the Energy.

time=1
declare T0=($(sudo cat /sys/class/powercap/*/energy_uj)); sleep $time; declare T1=($(sudo cat /sys/class/powercap/*/energy_uj))
for i in "${!T0[@]}"; do echo - | awk "{printf \"%.1f W\", $((${T1[i]}-${T0[i]})) / $time / 1e6 }" ; done

While It effectively outputs something, I'm not sure if I can rely on that to estimate the power consumption and if the code is actually correct? :/

Thanks :).

Edit:

My goal is to calculate the power drawn from my laptop without any electric appliance (maybe a worded my question/title wrong?). While It could be easily done with the top package or lm-sensors, this only work by measuring the battery discharge, which in my case is impossible because my laptop is directly connected to the outlet with his power cord (battery died years ago).

I dug a bit further through the web and found someone who asked the same question on superuser.com. While this gives a different reference point, nobody actually could answer the question.

This seems a bit harder than I though and is actually related to the /sys/class/powercap/*/energy_uj files and though someone could give me a bit more details on how this works and what the output actually shows.

This is also related to the power capping framework in the linux kernel? And as per the documentation this is representing the CPU packages current energy counter in micro joules.

So I came a bit closer in understanding how it works and what it does, even tough I’m still not sure what am I actually looking at :\ .

8
submitted 8 months ago* (last edited 8 months ago) by N0x0n@lemmy.ml to c/hardware@lemmy.ml

Edit:

Sorry for the bad posting :/. If someone is interested here is my actual post at https://lemmy.ml/post/12594067


Hello everyone !

I have no idea if I’m in the right community, because it’s a mix of hardware and some light code/command to extract the power consumption out of my old laptop. I need some assistance and if someone way more intelligent than me could check the code and give feedback :)

Important infos

  • 12 year old ASUS N76 laptop
  • Bare bone server running Debian 12
  • No battery (died long time ago)
  • Running a dozens docker containers.

Because I have no battery connected to my laptop I’m unable to use tools like lm-sensors, powerstat, powertop. But from the following ressource I can estimate the power based on the Energy.

time=1
declare T0=($(sudo cat /sys/class/powercap/*/energy_uj)); sleep $time; declare T1=($(sudo cat /sys/class/powercap/*/energy_uj))
for i in "${!T0[@]}"; do echo - | awk "{printf \"%.1f W\", $((${T1[i]}-${T0[i]})) / $time / 1e6 }" ; done

While It effectively outputs something, I'm not sure if I can rely on that to estimate the power consumption.

Thanks :).

[-] N0x0n@lemmy.ml 24 points 8 months ago* (last edited 8 months ago)

Thanks for sharing, very cool stuff in there and great job ! Bookmarked !

While reading through your reverse proxy concept post, I think this statement is wrong:

As a sub-domain:
- Cons: require additional certificates for HTTPS/SSL for each sub-domain

There are actually wildcard SAN certificates where you can access all your subdomains with a single certificate: https://*.mydomain.com

Or you can add all your subdomains in a single certificate.

Great work and thanks for sharing !

[-] N0x0n@lemmy.ml 13 points 8 months ago

People who hang toilet paper the wong way

Wait, there's a wrong way?

[-] N0x0n@lemmy.ml 15 points 9 months ago

Haha... It actually makes sense that something complex like nginx is created by some genius russian guy.

18
submitted 9 months ago by N0x0n@lemmy.ml to c/linux@lemmy.ml

Hi everyone :)

I'm slowly getting used on how to navigate and edit things in the terminal without leaving the keyboard and arrow keys. I'm getting faster and It improved my workflow in the terminal (Yeahhii).

ctrl + a e f b u k ...
alt + f b d ...

But yesterday I had such a bad experience while editing a backup bash script with nano. It took me like an hour to completely edit small changes like a caveman and always broke the editor when I used memory reflex terminal shortcuts.

This really pissed me... I know nano also has minimal/limited shortcuts but having to memorize and switch between different one for different purpose seems like a waste of time.

I think I tried emacs a few month ago but It didn't clicked. I didn't spend enough time though, tried it for a few minutes and deleted it afterwards. Maybe I should give it a second try?

I also gave Vim a try, but that session is still open and can't exit (😂 )! Vim seems rather to complex for my workflow, I'm just a self-taught poweruser making his way through linux. Am I wrong?

Isn't there something more "universal" ? That works everywhere I go the same? Something portable, so I can use it everywhere I go?

I'm very interested in everyone's thought, insight, personal experience and tip/tricks to avoid what happened yesterday !

Thanks !

[-] N0x0n@lemmy.ml 31 points 9 months ago

There's another aspect: profiling ! Either for targeted ad, psychological warfare, election manipulation (cambridge analytica style), and and and ... !

[-] N0x0n@lemmy.ml 31 points 9 months ago

That's actually not the RSS reader's fault. It's the rss feed you import that behaves like that. It's on purpose, to make you go to their website and ingage in their traffic.

[-] N0x0n@lemmy.ml 13 points 9 months ago* (last edited 9 months ago)

Possible for a dark mode version XD? excalidraw can do that.

[-] N0x0n@lemmy.ml 15 points 9 months ago

EU, aka the illusion of changes to make good impression while catching 🤝US dollars at the EU parliment

22
submitted 9 months ago* (last edited 9 months ago) by N0x0n@lemmy.ml to c/programming@programming.dev

First of all, thank you to all the amazing things you do for the self-hoster, FOSS comunity ! We won't be able to have those shiny things without you ! I'm not a dev and have just played arround with python (and I know how most of you feel about it 🤫) so I have very limited knowledge regarding programming languages.

I know whats a low level language (C, C#, rust?), general scripting tools and even heard about assembly. And it always baffles me how all those coding lines rule and make our microchips communicate and understand each other, but that's another story ! This is about golang !


As a self-hoster enthousiast, when I'm looking at a github repository, I always check the programing language used, even though I have no idea if those integrate well with each other or if it's the best programming language for that kind of application.

And everytime I see golang, It makes me smile and have a feeling it's going to be a good application. I know it also depends on the programmer skills and creativity, but all my self-hosted Go apps works like a charm.

Traefik is the best example, I never had any issue or strange behavior, except for wrong configuration files on my side,

Or navidrome a music server compatible with subsonic, also written in go, is working great and fast AF !

Or Vikunja, the todo app... and many more !

I'm probably biased because I have no idea of how the programing realm works, but I have the feeling that Golang is a certificate for good working and fast applications. Just to bad it's backed/supported by google (uuhhg)

Feel free to debate and give me your personal opinion of the Go language, if my feelings are right or Am I just beeing silly :).

Thanks for reading through 👋

[-] N0x0n@lemmy.ml 19 points 9 months ago

Yeah hard times for privacy focused youtube alternatives... I don't have any issues at the moment with LibreTube on android. But it's bases on the Piped api.

But a few months back there were less working servers. Maybe because of youtube's new policy? Have to investigate invidious and piped github's issue page

[-] N0x0n@lemmy.ml 32 points 10 months ago

Are flash games still a thing? I remember those old sticky fighting flash games on newsgroupe.

Someone kind enough in webdev to elaborate why someone would care to revive/reimplemente old flash player tech?

view more: next ›

N0x0n

joined 10 months ago