bahmanm
Husband, father, kabab lover, history buff, chess fan and software engineer. Believes creating software must resemble art: intuitive creation and joyful discovery.
Views are my own.
- 23 Posts
- 64 Comments
bahmanm@lemmy.mlto
Linux@lemmy.ml•Linux Mint Debian Edition officially releasedEnglish
151·2 years agoThanks! So much for my reading skills/attention span 😂
Which Debian version is it based on?
RE Go: Others have already mentioned the right way, thought I’d personally prefer
~/opt/goover what was suggested.
RE Perl: To instruct Perl to install to another directory, for example to
~/opt/perl5, put the following lines somewhere in your bash init files.export PERL5LIB="$HOME/opt/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}" export PERL_LOCAL_LIB_ROOT="$HOME/opt/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}" export PERL_MB_OPT="--install_base \"$HOME/opt/perl5\"" export PERL_MM_OPT="INSTALL_BASE=$HOME/opt/perl5" export PATH="$HOME/opt/perl5/bin${PATH:+:${PATH}}"Though you need to re-install the Perl packages you had previously installed.
bahmanm@lemmy.mlto
Linux@lemmy.ml•Perl One-Liners Guide with plenty of examples and exercisesEnglish
4·2 years agoThis is fantastic! 👏
I use Perl one-liners for record and text processing a lot and this will be definitely something I will keep coming back to - I’ve already learned a trick from “Context Matching” (9) 🙂
That was my case until I discovered that GNU tar has got a pretty decent online manual - it’s way better written than the manpage. I rarely forget the options nowadays even though I dont’ use
tarthat frequently.
bahmanm@lemmy.mlto
Technology@lemmy.ml•Our cloud exit has already yielded $1m/year in savingsEnglish
231·2 years agoThis is quite intriguing. But DHH has left so many details out (at least in that post) as pointed out by @breadsmasher@lemmy.world - it makes it difficult to relate to.
On the other hand, like DHH said, one’s mileage may vary: it’s, in many ways, a case-by-case analysis that companies should do.
I know many businesses shrink the OPs team and hire less experienced OPs people to save $$$. But just to forward those saved $$$ to cloud providers. I can only assume DDH’s team is comprised of a bunch of experienced well-payed OPs people who can pull such feats off.
Nonetheless, looking forward to, hopefully, a follow up post that lays out some more details. Pray share if you come across it 🙏
TBH I use whatever build tool is the better fit for the job, be it Gradle, SBT or Rebar.
But for some (presumably subjective) reason, I like GNU Make quite a lot. And whenever I get the chance I use it - esp since it’s somehow ubiquitous nowadays w/ all the Linux containers/VMs everywhere and Homebrew on Mac machines.
bahmanm@lemmy.mlto
Linux@lemmy.ml•GCC embraces web technologies with one (1) line of CSS.English
7·2 years agoThat single line of Lisp is probably
(defmacro generate-compiler (...) ...)which GCC folks call every time they decide to implement a new compiler 😆
bahmanm@lemmy.mlOPto
Technology@lemmy.ml•[OPINION] LinkedIn's new content strategyEnglish
2·2 years agoGood point! I just replaced my LI profile photo w/ an abstract image 🍻
😆Can someone make a similar one for bluetooth devices too, pretty please?
bahmanm@lemmy.mlto
Linux@lemmy.ml•[@linux](https://lemmy.ml/c/linux) thank God for TimeshiftEnglish
12·2 years agoI agree w/ you RE posts looking horrible 👍
Though I’d say for one-liners like this, it’s mostly OK. It gets really messy when folks post more complex posts and mention and tag a bunch of times.
bahmanm@lemmy.mlto
Linux@lemmy.ml•[@linux](https://lemmy.ml/c/linux) I was able to install Keyscape on Ubuntu Studio, but the GUI won't work in the standalone or VST. Does anyone know how to resolve this? Should be similar if anyone hEnglish
1·2 years agoI’m afraid I can’t be of any help 😕
bahmanm@lemmy.mlto
Linux@lemmy.ml•[@linux](https://lemmy.ml/c/linux) I was able to install Keyscape on Ubuntu Studio, but the GUI won't work in the standalone or VST. Does anyone know how to resolve this? Should be similar if anyone hEnglish
1·2 years agoAny error logs? Try launching things from the terminal and note down any messages that are printed there.
bahmanm@lemmy.mlto
Linux@lemmy.ml•Best practices for navigating file structure via terminal?English
41·2 years agoThat’s a good question 💯 In my case too, it took me some time (read years 😂) to figure out what I’m comfortable w/.
I can think of 3 major ways that you can navigate the filesystem while being able to drop to a shell when you need it:
- If you’re familiar w/ Emacs, you can either:
- Use
diredandtrampon your machine to access/navigate the target machine. - Install Emacs (
emacs-nox) on the target machine, SSH and then runemacs-noxand voila! No need fortrampin this scenario.
- Use
- Use Midnight Commander (
mc) which offers a TUI pretty much like Norton Commander (nc) from the days of yore. - Get used to the semi-standard structure of the file system and just use plain Bash (
cd,pushd&popd) to move around. That is- Understand what usually goes into common directories (like
/usr/shareor/opt) and try to follow the same pattern when rolling your own software installations. - Learn how to use your distro’s package manager to query packages and find out where things, like configurations and docs, are stored. Something as simple as
rpm -q --listis what you usually need.
- Understand what usually goes into common directories (like
HTH
- If you’re familiar w/ Emacs, you can either:
bahmanm@lemmy.mlto
Linux@lemmy.ml•Resized my mouted root partition and now 1 min delayed startupEnglish
7·2 years agomessing with the partition any more than I already have
Running
fsckis a harmless and actually pretty useful operation, esp if you boot using a USB stick.But yes, never hurts to have backups - easier said than done 😂
bahmanm@lemmy.mlto
Linux@lemmy.ml•Thoughts on makedeb, Debian's unofficial makepkg clone that comes with its own version of the AUR as well?English
72·2 years agoI’m not on a Debian-based system but a recent experience w/ packaging a software as a DEB was quite eye-opening 😅 The format and the build process felt too cluttered (to me) and it wasn’t easy for me to wrap my head around it.
I’m happy that folks are working on alternatives ✌️
bahmanm@lemmy.mlto
Linux@lemmy.ml•Resized my mouted root partition and now 1 min delayed startupEnglish
7·2 years agoHave you tried booting into recovery mode and perform a
fsckon the drive - using the grub menu? Or you could boot via USB and try the procedure.
I wanted to say “I’m not sure. I’m not on Ubuntu” but then I remembered about distrobox 😄
It took only a few minutes to confirm that the links I shared earlier (https://lemmy.ml/comment/3090571) do NOT install the snap version.














I didn’t like the capitalised names so configured xdg to use all lowercase letters. That’s why
~/optfits in pretty nicely.You’ve got a point re
~/.local/optbut I personally like the idea of having the important bits right in my home dir. Here’s my layout (which I’m quite used to now after all these years):$ ls ~ bin desktop doc downloads mnt music opt pictures public src templates tmp videos workspacewhere
binis just a bunch of symlinks to frequently used apps fromoptsrcis where i keep clones of repos (but I don’t do work insrc)workspaceis a where I do my work on git worktrees (based offsrc)