Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2021-05-14 00:00:00Z and 2021-05-15 00:00:00Z
Avatar
[freenode] chillerdragon[m] BOT 2021-05-14 07:13:12Z
I can also recommend sticking to a shell like bash or zsh. But zsh has plenty of plugins so you might be able to use those @lynn there is this one for example https://github.com/zthxxx/zsh-history-enquirer it looks a bit less fancy than what you are looking for but maybe if you are motivated enough you can build it your self :)
plugin for zsh history search, enhance interaction - zthxxx/zsh-history-enquirer
Avatar
Avatar
Chairn
Do you guys knows of any shell that gives enhanced command history such as working directory, duration of the command, return value, etc. ?
i use this, which runs on top of bash, fish, zsh https://starship.rs/ and made in rust ofc
Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, and Powershell.
Avatar
i really like zsh
07:22
poggers
Avatar
idk i like fish and zsh equally
07:32
it doesnt matter to me
07:32
but fish is cooler probably B)
Avatar
[freenode] chillerdragon[m] BOT 2021-05-14 11:07:59Z
vanilla bash masterrace
Avatar
[quakenet] Ryozuki BOT 2021-05-14 14:09:41Z
Avatar
If I want something fancy I use fish, It's much better than zsh imo. zsh is like the visual studio of the shell world 😛
14:16
but almost all of my machines have just bash on them, because it justworks(tm)
Avatar
fn main() { break rust; }
Avatar
is there a rust "interpreter" a la tcc?
Avatar
How is tcc an "interpreter"? It's just a fast compiler with few optimizations
Avatar
what is tcc
Avatar
Well it has a cute -run flag which still obv compiles it (hence the quotes)
15:05
So you can have #!/bin/tcc -run 🙂
Avatar
I once tried to make the nim interpreter run with libtcc
15:06
#!/usr/bin/env run-cargo-script https://github.com/DanielKeep/cargo-script
Cargo script subcommand. Contribute to DanielKeep/cargo-script development by creating an account on GitHub.
15:06
Oh well, no new commits, maybe this instead: https://github.com/igor-petruk/scriptisto
A language-agnostic "shebang interpreter" that enables you to write scripts in compiled languages. - igor-petruk/scriptisto
15:07
Or some hacky way to make your program both a valid rust program and a shell script: https://blog.firedrake.org/archive/2020/11/A_Shebang_For_Rust.html 😄
Rust is a compiled language. How can I run a program directly from the shell?
15:08
What's missing is to remember the return code and return it from exit
Avatar
i love these blogs using pure html tables and tags that nobody uses but exist
17:51
they also work rly well with extensions that turn pages dark
Avatar
i hate sites in general with too many custom components
18:27
i value using natural DOM stuff to its limits first
18:28
oh @Learath2 i took your advice :P
18:29
let's encrypt cert and nginx
18:29
and i DIDNT USE the plugin this time, i actually learned how to set up the nginx directives myself this time, like a good girl
Avatar
Yaaay
18:30
It's a good time investment
Avatar
yea, it was weird figuring out that for a long time i kept writing to modules-available until i realized, no, sites-available you idiot
18:31
also wtf is with ubuntu over SSH? tab does nothing, arrows do nothing, and this is just a nitpick but the default prompt doesnt even have relpath xD
18:31
maybe this is just a windows terminal issue?
Avatar
maybe you use the wrong shell, i.e. sh instead of bash?
Avatar
wait maybe
18:32
is default sh??
Avatar
idk, but your symptoms sound like it
Avatar
is it bashrc or rcprofile for selecting a shell
18:32
xD
Avatar
no
18:32
its usermod isnt it
Avatar
shell is selected using chsh -s /path/to/shell <username>
Avatar
oh that's new
18:33
i did it in the past with something else i think
Avatar
cat /etc/passwd | grep <username>
18:33
to see your currently configured shell (last column)
18:34
god maybe i manually edited that with root LOL (edited)
Avatar
careful not to make that unparsable
18:34
idk what happens to your system then ^^
Avatar
probably not being able to log in ever again lol
18:36
i need to stop running scp from powershell and just get ftp working
18:36
isnt it installed by default on ubuntu
Avatar
what's your use case for scp?
18:36
there's WinSCP which is a graphical tool for scp
Avatar
well, random html stuff i want to edit locally and upload later
Avatar
for ftp*
Avatar
or .map files for servers
18:37
i think i downloaded that
Avatar
I use msys scp on my main windows computer. On anything else if it needs it it's getting winscp
Avatar
o lol that worked just fine
18:40
sftp even
Avatar
sftp doesn't have anything to do with ftp IIRC
18:41
it's a file transfer protocol over ssh
18:41
(ftps is ftp with TLS)
Avatar
i just didnt know i didnt have to set it up
18:42
i still miss arch though, god dammit NFO
Avatar
if you don't mind fiddling, you can probably install arch there, too
Avatar
Eh arch on a server isn't an excellent idea anyway
Avatar
i mean i could using the virtual disk but too much effort
Avatar
You want stable not bleeding edge on a server
Avatar
and i already set it up
18:43
i use 18.04 lts on both servers usa and ger
18:43
cus 20 is wack
Avatar
Avatar
lynn
i mean i could using the virtual disk but too much effort
You just need a recovery environment and you can get arch on there using pacstrap. I do the same for devuan with debootstrap
Avatar
it's fine, plus i should probably be proficient with different types of distros
18:47
in case i ever encounter them (assuming i would ever get a devops job :P)
Avatar
vote_yes removed?
Avatar
Try without the _
Avatar
what's suggested if you just type vote
Avatar
can't reproduce vote_yes being suggested
Avatar
vote_yes never existed
22:11
lmao
22:11
Are you tired of your URLs being just too darn short? Worry no further, as A(x56) has got your back. Give it a go for free!
22:11
best website
Avatar
Empowering everyone to build reliable and efficient software. - rust-lang/rust
22:18
i found gold
22:18
fn zombiejesus() { loop { while (return) { if (return) { match (return) { 1 => { if (return) { return } else { return } } _ => { return } }; } else if (return) { return; } } if (return) { break; } } }
22:18
whats this
22:19
u should return; urself
Avatar
fn match_nested_if() { let val = match () { () if if if if true {true} else {false} {true} else {false} {true} else {false} => true, _ => false, }; assert!(val); }
22:19
cursed
22:19
fn monkey_barrel() { let val = ()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=(); assert_eq!(val, ()); } ok i stop
Avatar
i think these are tests for the parser or smth
Avatar
it's tests for the brain is what it is
Avatar
whats the result
22:24
useless but i like do this shitty cmds
Avatar
u should bind recording to a key
22:26
and yes in obs it's really easy to do
22:26
mine is like ctrl-shift-r
Avatar
i have bound f7 on obs and also f7 on ddnet to start the demo
Avatar
wow good tip
22:27
how can you slice a part of a demo or export just a part of it
22:27
i never knew how
Avatar
Avatar
Ryozuki
u should bind recording to a key
im using geforce experience but i have some problems with mt graphique card
Avatar
imagine not using obs
Avatar
imagine using xsplit (edited)
Avatar
this is not 2010 anymore
Avatar
c:
Avatar
imagine using fraps
Avatar
that looks like obs but like, skinned
Avatar
if u never used this u had no childhood
Avatar
lol i used that when i was playing minecraft with 10 fps
Avatar
doesnt it? @Ryozuki
Avatar
i swear i thought it was obs already xD
22:33
where can I change the vote system?
Avatar
is the .map format something you can reasonably parse without the client / server?
22:43
i know nothing about it but if it's a more nuanced topic i can just check it out later
Avatar
it's a custom binary format
22:45
there are a couple of libraries to parse it
22:46
i am thinking of making a tool that does some map linting
22:46
like suspected missing corners, general bad mapping habits, etc
Avatar
ask @Patiga, he's doing the same
Avatar
maybe a bit more lower level though
Avatar
then in that case ill take a look at that
22:47
patiga, if you can post a link to whatever you're working on i would be interested :D
Avatar
Avatar
lynn
how can you slice a part of a demo or export just a part of it
locally I'd recommend using losslessCut
23:08
i just need to set binds to record and stop recording
Avatar
@lynn you can crop demos in the client using those <> buttons to select a part and the camera button to save new demo
Avatar
and export the whole thing
23:08
oh huh
Avatar
oh yeah, that works aswell
Avatar
I wonder why that camera button doesn't have an icon more related to saving tho
Avatar
if i do < at a part, and then play or seek in the demo, and click >, that sets the range?
23:10
and then camera button exports the selection
Avatar
yeah < is start and > is end
23:10
i didnt know what those buttons did but i should have expected that lol
Avatar
@lynn my rust map parsing library is here: https://gitlab.com/Patiga/twmap (or on crates.io here https://crates.io/crates/twmap) While parsing it throws parsing errors where it deems them sensible, but for lesser problems it logs warnings To save maps again they need to pass all checks again, the library is documentet here: https://docs.rs/twmap/0.2.1/twmap/
Avatar
where can i change the vote system? i mean i want when one player press for exemple "Rainbow" he have automatically the rainbow without trying to start a real vote with f3 or f4
Avatar
the library also ships some binaries for debugging maps, some editing/extracting stuff
Avatar
really cool
Avatar
if you encounter problems, please just ping me :) (though I'm gonna go to sleep for today)
Avatar
@Deleted User src/game/server/gamecontext.cpp, look for NETMSGTYPE_CL_CALLVOTE
Exported 165 message(s)