freenode/#shirakumo - IRC Chatlog
Search
9:56:22
Shinmera
gingerale: Since you seem to be back now, I'd appreciate if you could review the latest PR
13:34:12
Colleen
github.com/Shinmera/cari3s Website (HTML), Title: GitHub - Shinmera/cari3s: A generator for the i3 status bar.
15:33:07
Shinmera
Fucking shit why is it so hard to figure out where the kernel gives me the information about partition usage
15:33:45
Shinmera
theres /sys/block/../size, but I don't see an equivalent that actually tells me the free/alloc count.
15:34:11
Shinmera
and of course googling is futile because everything just uses some C program that's (of course) around 2'000 lines long just do some simple shit
15:34:39
Shinmera
I don't wanna dig through df.c to figure out where the fuck it actually gets the info from
19:15:20
Shinmera
The __fsword_t type used for various fields in the statfs structure definition is a glibc internal type, not intended for public use. This leaves the programmer in a bit of a conundrum when trying to copy or compare these fields to local variables in a program. Using unsigned int for such variables suffices on most systems.
19:15:44
Shinmera
There's also: __fsword_t f_spare[xxx]; /* Padding bytes reserved for future use */
19:16:02
Shinmera
but no idea how big that is. Keep in mind, the caller has to allocate this statfs struct
19:16:15
Shinmera
so how am I sposed to do that if I don't know how big it has to be to avoid a buffer overrun?
20:21:49
Shinmera
alright alright alright alright alright alright alright https://github.com/Shinmera/cari3s
20:21:50
Colleen
github.com/Shinmera/cari3s Website (HTML), Title: GitHub - Shinmera/cari3s: A generator for the i3 status bar.
20:42:07
mood
Shinmera: Did something change about Colleen's configuration? She's no longer in #stumpwm
20:42:41
Shinmera
Dunno what exactly happened, perhaps a netsplit that didn't let her rejoin or summat
20:43:17
Shinmera
Really need to write a module for convenience functions like asking the bot to join / reconnect / etc.
20:44:22
mood
I'm surprised you don't have that yet. It's probably the first thing I included in every IRC bot I made :P
20:46:22
Shinmera
K, (irc:join (consumer "freenode" *core*) '("#stumpwm" "#clim" "#ecl" "#mezzano" "#thcrap")) should fix it
20:50:18
Shinmera
With cl-all, iclendar, and cari3s that'll be three new packages this month (at least)
20:51:04
mood
I should work on my StumpWM status bar someday, it's been like it is for 1.5 years now
20:51:20
Shinmera
I only started working on this because the python thingy I was using broke today lol
20:53:01
mood
I've been complaining to myself about at least one of its deficiencies for a while now :) But then I plug in the power to my laptop, and after a while the issue is gone. (battery indicator colors)
20:54:44
Colleen
Shinmera is now listening to The Ecstacy Once Told by The Dolly Rocker Movement <http://tinyurl.com/y95a2egn>
21:22:21
Shinmera
Also on recent Linuxes reading battery is trivial, just cat /sys/class/power_supply/BAT0/status
21:30:16
mood
I was wondering where that came from. But it looks like it's charge_now/charge_full ;)
21:32:18
Shinmera
https://www.kernel.org/doc/Documentation/power/power_supply_class.txt there's both, they're different units.
21:36:58
Shinmera
Also wondering how to compute estimated time left. I kinda doubt I can just do a linear exponentiation to predict accurately.
21:37:32
mood
Umm, cat /sys/class/power_supply/BAT0/capacity just returns the percentage without a percentage sign for me
21:45:08
mood
I mean it doesn't do any other analysis than that. Does acpi report an estimated time left for you?