« first day (3344 days earlier)      last day (1593 days later) » 

1:13 AM
Is Packer still used to maintain immutable infrastructure?
Both on-premise & on lcoud
 
 
8 hours later…
9:27 AM
@Gilles'SO-stopbeingevil' Weird. I just checked again and it's consistent here: find took an average of 13.88 seconds and ** took 6. How many files do you have? Maybe that's the difference?
$ find . -print0 | grep -c '\0'
find: ‘./.protonvpn-cli’: Permission denied
425576
So, one dir that needs root access, and 425,576 files.
Ah! But the globstar returns far fewer, that's why it's faster!
$ printf '%s\0' ** | grep -c '\0'
48069
I have an autofs-mounted dir in there, but that goes to a pi which is connected to an external drive bay, which I can hear spin up when accessed, so I don't think either approach enters it. Must be something else.
But at least that makes sense. If ** goes through an order of magnitude fewer files, of course it's faster.
 
10:15 AM
The scariest thing I've read this week: Right now I'm dealing with it by piping ls into vim and doing a bulk-rename via global commands and writing to !sh.
 
@Kusalananda a bit like dired in Emacs
 
@StephenKitt I'm honestly relieved to not know what that is :-)
And, good morning!
 
@Kusalananda imagine basically ls’s output in an Emacs buffer, and you can edit it, and have the changes applied to your file system!
@Kusalananda good morning to you too!
 
@terdon shopt -s dotglob?
 
@Kusalananda EEEeeek!
@Kusalananda Duh! That's almost certainly it, yes. Testing now.
 
10:21 AM
@StephenKitt Does it keep track of filenames correctly?
 
@Kusalananda in my experience, yes
but I prefer “orthodox” file managers, so I use mc
 
I used a file manager on my Amiga 500 back in the day, but not since.
I believe I've accidentally started mc a couple of times, but I don't have it installed on my private systems.
 
10:58 AM
Yeah, I don't remember the last time I used a file manager.
By the way, @Kusalananda, as expected you were quite right about dotglob. I can't tell you how long it takes but that's because it's still running, almost an hour later.
 
@terdon :-) That's amazing!
I'm still going to start pushing for ** in my answers though, where it makes sense, in addition to showing find alternatives.
 
Well, it's running it 10 times, but yeah. Wow.
 
Is that from the root down?
 
no, $HOME
Ah, just finished.
$ timethis 10 "find . -name findme"
COMMAND: find . -name findme
13.88
$ timethis 10 "printf ./**/findme"
COMMAND: printf ./**/findme
248.6
An average of 248.6 seconds per run. Ouch.
 
You're running over a structure with half a million entries, right?
Finding a file in my $HOME (84000+ entries) with (OpenBSD or GNU) find takes 0.7-0.8s. Using ** in bash takes 2.718s, while zsh takes 1.777s to do the same.
Those are approximate medians over about 5 runs.
The ** glob builds a list. find doesn't need to do that. This might have something to do with it being slower. The shell may be allocating and reallocating space for the list of pathnames.
A list of half a million pathnames of an average length of, say, 60 bytes is just under 30 MB.
@StéphaneChazelas Thanks for that edit just now! I'm learning so much I don't know where to put everything :-)
 
 
2 hours later…
Tim
12:54 PM
@StephenKitt Good morning to you two!
 
@Tim good morning!
Good morning Jeff too!
 
Good morning afternoon, Stephen!
 
I guess you’re both on the Eastern seaboard somewhere...
 
Good morning, Tim!
Good morning afternoon, Kusalananda!
Good morning day, ilkkachu!
Hopefully I got all my $TZ right
 
@JeffSchaller it’s the afternoon now for Kusalananda and me :-P
 
12:58 PM
I am on an Eastern Seabord, unfortunately not the Australian one.
 
I use the GNOME world clock in the notification drop-down to keep track:
 
sigh also not in Miami
 
(and yes, sometimes we have to schedule calls involving people from all of those...)
 
I was just going to ask if they were all there for a reason
Well, I hope everyone has a warm, dry day, free from unexpected globbing & splitting :)
 
Tim
1:14 PM
Cassandra, Couchbase, DynamoDB are ranked high in the most dreaded database systems in https://insights.stackoverflow.com/survey/2019#technology-_-most-loved-dreaded-and-wanted-databases.
Wondering if their rankings are reasonable and they have better replacements.
 
@Tim I'm surprised Oracle isn't #1 -- looks like it's close, though
 
@Kusalananda why would find not need to build a list? You mean that it doesn't need to save the list while presumably ** does? Hmm. So the ** means the list needs to be kept in memory and that might be slowing things down? Perhaps, but the difference (~2x) seems too much for that.
 
Tim
I have also been revisiting architectural and deployment patterns, including Stephen's comments. I left some questions not understood, but now I am getting better hold of them
by comparatively reading several books
 
Apropos of nothing. It's early afternoon here too, @JeffSchaller. Not that you care, obviously :'(
 
does someone hear some bones clinking?
 
Tim
1:17 PM
I feel the difficulty I have been having comes from lack of knowledge in software architecture
and deployment
I now understand deployment as mapping of architectural layers of application to processes
regardless of where processes are running on the same or different machines
 
@terdon Yes, a 2x speedup in find is probably do to some other factor besides the shell having to grow a list many times. find may be smart about how it reads directories, for example.
 
Tim
I have some posts on U&L before, asking about how many processes or threads specific software applications are using, with replies from Stephen. That is also helpful too.
 
@terdon Good afternoon, @terdon :)
 
I remember asking a question about that and it turns out that find (at least GNU find I believe) may not read all entries in one go. That had the interesting side-effect that if you create directories from within find, you could end up finding these later (and similar things in similar situations).
 
Tim
I believe I might still have misunderstanding, and don't articulate well for others to help me find them out
 
1:21 PM
@Tim that’s an interesting avenue to pursue!
If you can master the intricacies of real-world deployment and maintenance in production, that’s a huge advantage.
Then take the lessons and pull them back up the development chain, to make things easier to deploy...
 
Tim
Not really yet about the operational practices. Just to understand the big picture, and the language people speak
 
IMO that’s the huge advantage of “devops”: making sure that deployment considerations are taken into account throughout the specification and development process.
All that goes both ways of course, and containers are the fall-out of thinking the other way.
 
Tim
Although I don't have a goal, I doubt that I am up to devops.
I am experiencing a period where several unrelated things connect together, so my thinking jumps
I experience similarly when my reading reaches some extent
 
@Tim just a suggestion, but seeing this reminds me of a podcast I listened to yesterday called Grow, Adapt, and Reinvent Yourself Through Ultralearning where one of the points was to have a specific project to work towards.
 
+1000
I like to think that we can look at musicians, decomposing or otherwise, for inspiration: great musicians learn lots of theory, but they always practice in parallel, and they practice both simple things and complex things all the time, going over the basics and pushing the envelope all the time.
And many great musicians never even learnt much theory if any. I know a great guitarist who can’t read sheet music!
 
Tim
1:38 PM
in multi-tier, does a tier mean a process, correct? not a location or a machine?
 
particularly if you're familiar with several different areas -- good ideas can transfer to new fields, bringing fun, interesting, or useful results
 
Tim
Reading is painful
reading things that are not well written is very painful
 
recent episode of The Portal - London Tsai mentioned in passing the revolution from standard guitar to electric guitar as an example
 
Tim
have to hold nose, and avoid complaints
but be ready for blames and anything extreme for not understanding
Still a long way to go
 
2:25 PM
ninja'd by Stephen again
Discard answer: Are you sure? Yes.
Wipe tears: Are you sure? Yes.
 
I just had to use set +H in a script for the first time the other day
 
@JeffSchaller I’ll send you a box of handkerchiefs!
I debated whether to just close that as a dupe but reckoned it deserved its own answer...
 
3:06 PM
@StephenKitt hmmm, could this be a new hat? "Pyrrhic handkerchief hat: discard your answer within 60 seconds of another one being posted. Use it to wipe away your tears of frustration at the speedy, high-quality content on your site. Congratulations, slow-poke!"
 
3:20 PM
@JeffSchaller if SE track that, that would be an interesting (secret) hat!
 
3:33 PM
eeek! that was a close one Mr. @StephenKitt
 
@JeffSchaller “use Zsh” is always an interesting answer
 
@StephenKitt is this "chinese curse"-interesting, or "that's good"-interesting, or "I'm literally interested in that"-interesting, or gratuitous Oxford comma interesting?
 
Oxford commas are never gratuitous
 
@JeffSchaller European (non-Irish) interesting
 
@Jesse_b starred!
 
3:39 PM
I love the “it’s a typo” response when the whole answer is based on the typo
 
@StephenKitt Better than "I changed nothing on my end"
 
@StephenKitt "tu en as trop dit ou pas assez"
 
@Jesse_b indeed
@JeffSchaller for some reason I always associated the Chinese curse meaning with Irish usage, apparently incorrectly
 
and I've just learned that there's no actual Chinese heritage to it
 
"May you live in interesting times" is an English expression which purports to be a translation of a traditional Chinese curse. While seemingly a blessing, the expression is normally used ironically, with the clear implication that "uninteresting times" of peace and tranquility are more enjoyable than interesting ones, which, from a historical perspective, usually include disorder and conflict. Despite being so common in English as to be known as the "Chinese curse", the saying is apocryphal, and no actual Chinese source has ever been produced. The most likely connection to Chinese culture may...
I suspect we’re reading the same page...
Duh of course, you linked it!
SE chat and its invisible links...
 
3:42 PM
no wonder it always looks like you're stealing my Google-fu :)
 
I’ve got a live feed from your browser history!
 
I'm still lost as to what you mean by "European interesting" in regards to zsh answers, though.
 
3:57 PM
@JeffSchaller: That guy we interviewed yesterday was even worse in person than his resume
 
@JeffSchaller oh, yes, European as opposed to American on the “awesome scale”
 
He avoided answering almost every question we asked him. I finally became relentless asking about his javascript experience. He said "We created a tool that..." So I asked what part he had in making the tool. "Well this other team made it but I studied javascript in school"
I asked if he had ever worked on any project himself and he said no
 
@Jesse_b sorry to hear! I think (unfortunately) that you have to assume people inflate their resumes to get in the door :(
 
When asked if he researched the company he just casually said "no". When asked how he found us he said "I don't know, I just searched for NOC and applied to every job"
 
@Jesse_b hmmm, can you work with honest incompetency?
 
4:01 PM
It was so bad I almost felt like I was being pranked
One of the other guys doing the interview kind of gently pointed out a typo he had in his resume and he seemingly got angry about it. One of the bullet points said he managed "150+ vmware hosts with 2,0000+ virtual servers" and the person asked if it was 20,000 or 2,000 and he was like "What?! No! It's 2000!" as if it were obvious. He said this as he was looking at his own resume and the typo
 
@Jesse_b Is it difficult to get good quality candidates for your company?
 
@FaheemMitha Well we are not using any recruiting company to find candidates so we are basically only seeing candidates that apply through our website and linkedin
But yes, the last 3-4 people that made it to the interview process have all been horrible
 
@Jesse_b Would a recruiting company help?
@Jesse_b Does that mean they were "the cream of the crop"?
 
@FaheemMitha I think they would just help us get a larger volume of candidates, they will filter out some terrible candidates but they would also put through a lot of bad candidates as well
@FaheemMitha Cream isn't the only thing that rises to the top
 
@Jesse_b I see. So overall, does that mean your company is having difficulty having sufficiently good candidates?
 
4:10 PM
@FaheemMitha Yeah but I also think we aren't trying as hard as we could/should be to find them
 
I can't come up with anything else for "awesome scale"
Google wants to show me pictures of scale model trucks, so ... Stephen must posses the Google-fu again.
 
@JeffSchaller unfortunately not, I can’t find the diagram I’m thinking of...
A comparison of the feelings associated with various words, in a number of countries including the US, with the US showing “awesome” all the way from “OK, nearly there” to “earth-shatteringly good”
 
or the sarcastic "that's awesome" in response to some sort of failure
awe-inspiringly-bad
closest I can get is totally Texas or Timeline of cool
 
4:33 PM
@Jesse_b What else do you think your company should be doing?
 
@JeffSchaller “Twitter, find me that picture you showed me yesterday”
 
@FaheemMitha Actively seeking candidates instead of waiting for them to come to us
 
@Jesse_b You mean doing searches and writing to people?
 
@Jesse_b does your company encourage referrals?
 
@StephenKitt We do, we actually get a really sizable bonus for referring someone that gets hired as well
 
4:45 PM
what I want is a podcast app that will tell me what I listened to recently but have deleted because I have to because I subscribe to too many podcasts
 
@JeffSchaller AntennaPod has a “Playback History” which lists everything, including partial plays
I see we suffer from the same podcasting problem
Disclosure: I contribute bugs to AntennaPod
 
one of these days, mathematicians are going to discover a dimension of the universe where Stephen Kitt and I are the same person
 
@JeffSchaller hey, I thought you were my sock puppet
 
@StephenKitt it's all a matter of perspective!
 
since I’m a podcast-listening dog, I wonder who the master whose voice I’m listening to is
 
4:50 PM
Huh! That BBC bug report reminds me of another podcast episode that talked about an odd bug in a car radio player ... what was that
playing a certain podcast made the player crash
 
I think I’m going to start a /dev/chat-based CV-writing service, there’s enough material here to produce some description of Jeff, terdon, Kusalananda and myself, and I’ll make sure the result is grammatically-correct and well-presented so we get interviews with Jesse_b!
 
he eventually got in touch with the author of the software somehow
 
@JeffSchaller better than having the car crash
 
@StephenKitt indeed, it wasn't a Tesla, with the computer driving
believe it had to do with character encoding
ahhh, So, the radio sees the %I and keeps trying desperately trying to figure out what it means.
@StephenKitt we'll stitch our vacations together, sharing the badge, so that "we" work there long enough to accrue the referral bonus, then (3) profit!
 
@JeffSchaller yup!
 
4:57 PM
@StephenKitt Hah, speaking of that, I'm actively looking for a job (well, will be in a day or two). The company I'm working for is shutting down :-(
 
@derobert oh no -- sorry to hear! and right before Christmas!
 
@derobert oh my!
We’ve got loads of open positions...
 
Yeah... I've been here since '05. I'll miss the place.
 
well, how do you feel about Colorado?!?
 
I'm finishing up my résumé, will probably be asking for some feedback on it, and of course would be happy to hear about opportunities at your companies
@JeffSchaller Wasn't planning on relocating, currently in Sterling VA (near Dulles Airport)
 
4:59 PM
@derobert maybe @Jesse_b can get you a remote position?
 
Remote works :-)
 
I'll definitely give you my recommendation if you feel you fit any of those remote positions
 
@StephenKitt Maybe englishstudyonline.org/wp-content/uploads/2019/04/… .... start searching for images on ... awesome "synonyms for" = list words ... and use the buttons below the search terms.
 
@Jesse_b wonder why the "Remote" ones list a location?
 
Hah I never thought VA was big, but looking at the map, I see Richmond (where a colleague of mine lives) is 2h away from Sterling!
@Isaac thanks, but that’s not it — the one I’m thinking of has Gaussian-style diagrams
 
5:01 PM
@JeffSchaller I'm not sure, probably just to avoid leaving it blank
But the headquarters is in San Francisco so that is just the default I guess
 
@derobert Sorry to hear that.
 
@JeffSchaller I'd guess that maybe that's where most of the team is? So e.g., you'd be expected to be available more or less during business hours in California. So might not work well for someone in Australia.
@StephenKitt Yeah, somewhere around 2h away, depending on traffic. Can be a little less in good traffic, much much more in bad traffic.
 
@derobert whatcha looking for? Dev work or sysadmin?
 
I'm not entirely sure, since I've been doing both here for a while.
 
Yeah, that's why I asked :)
Your main language is Perl, right?
 
5:10 PM
@Stephen, if you want a softball question, this might be a simple "updates are gone, use appstreams"?
 
Yeah, Perl currently. Though I've done a bunch of others in the past (C & C++ most importantly), but a bit rusty on them as it's been a while.
Ruby too, the major scripting language I have oddly little experience with is Python.
 
@derobert: That "SRE" role we have open is basically just devops
 
We probably can't afford you, but we're also looking for both sysadmin types and devs. And we offer remote work. Although you'd be the first one not within 2h of CET. Send me a résume when you have one and I can pass it along if you're interested.
 
You would probably be a good fit for it
 
Of course, that will mean you have to look at my Perl code. That will probably be slightly more painful for you than for me, but it will be a close race ;)
 
5:12 PM
@terdon Hah, it can't be that bad. You don't know how bad some of the stuff here is.
 
Nah, just way more system() calls than is healthy.
 
@JeffSchaller possibly, I’m not that familiar with CentOS repos
 
The way you rename a file in perl is ... and let's see if I can get markdown to format this ... `mv $old $new` right?
 
@derobert believe there's just a rename function
at least, in my old perl5 brain
 
@JeffSchaller The legacy code I inherited didn't know about it. Or that you could get the current date w/o using the date shell command.
 
5:15 PM
@derobert ahhhhhh!
 
@derobert Of course!
OK, not that bad. But there are calls to grep for instance instead of opening the file and parsing it in perl.
But it's a pipeline whose job is to basically call external programs anyway, so the odd extraneous system call isn't such a big deal.
 
It's not, except for the nightmare that is quoting arguments for the shell (unless you avoid the shell, of course).
And making error handling more difficult (since grep has non-zero exits which aren't errors, and of course its harder to know exactly what failed).
But honestly, I could see doing that. grep has different regexp syntax, so if you already have the pattern, maybe its easier to not convert to Perl syntax. And it also has some other non-regexp modes... and I'd guess it's faster than the loop in Perl.
(I just hope someone knows about IPC::Run3 and not just the backtick operator)
 
Someone doesn't. But someone will learn about it. Thanks :)
OK, someone does now. And that looks really cool!
 
Yeah, there are a couple of modules that make running external commands in Perl much easier. IPC::Run3 covers most cases without being insane. IPC::Run is insane (in terms of how complicated some of the implementation must be), but covers pretty much everything.
 
5:40 PM
yeah, I've never bothered to look into this sort of thing much since the perl program itself is a pipeline, so it's entire reason of existence is running external commands anyway. So one or two more don't really make much of a difference and can make my life easier and the code clearer so...
 
I've only found one instance in my career of a shell script being inefficient-enough to get noticed.
(replacing a bunch of greps with awk made for an order-of-magnitude difference)
 
Tim
5:58 PM
@derobert Your reputations on U&L might come to do some real good
 
if we can just bug him for 3 more answers, he'd have a K
 
@JeffSchaller a K? I think I'm a bit further than three from 1000 answers.
 
Tim
@StephenKitt I understand your advice. You are correct. I have limited practice, definitely not enough. It isn't easy to find guidance for practice, so I often read
 
@derobert a computer K of 1024
 
Well, I'd need even more then :-/
 
6:03 PM
@derobert really? I show Answers (1,021)
 
... maybe that's from answers on deleted questions? Possibly it counts differently for you since you're a mod?
 
ahhhhh, you do have deleted answers. That's unfortunate that the UI is lying to me
 
6:28 PM
@derobert Sorry to hear that. What happened?
 
@FaheemMitha Largest client didn't renew their contract this year :-(
(And we lost a few smaller ones, it's a tiny company)
 
@derobert Oh. That's too bad. I guess it's a precarious existence.
 
Thankfully at least its a strong job market here.
And no banks vanishing with all my savings :-/
 
@derobert Domestically, you mean?
So you don't want to move?
 
Yeah, in the US.
@FaheemMitha Would rather not move.
 
6:32 PM
@derobert Just inertia, or relationships/family? Or both?
Personally, I think a little change isn't necessarily a bad thing.
Though of course one should be careful, if one does relocate.
 
Both. Immediate family is almost all nearby, I own a house here, have a ton of stuff it'd be a PITA to move, etc.
 
@derobert Yes, I see.
How social was your job, on a scale of 1 to 10? With 1 not at all, and 10 very?
 
Not very. I don't deal directly with clients, just coworkers. Mostly the work is independent...
 
Hmm.
I guess a remote job would not make so much difference then. But working remotely definitely has its drawbacks.
 
7:16 PM
The coffee machine in my office can dispense hot water but it doesn't hold enough to make a bowl of ramen so you need to fill it halfway then wait for it to heat before filling the rest of the way
I think that should be some sort of a violation of my rights
 
@Jesse_b You should demand a proper electric kettle!
 
@derobert Heh, we actually have one but I don't trust that it will be clean so I don't use it :p
 
@Jesse_b People put something other than water in it?
 
@derobert Can't be sure, but also hot water becomes moldy when it's left in a dark place
 
Heh, I guess I'm lucky I can just have my own kettle in my office here.
 
Tim
7:58 PM
Do database systems belong to the middleware layer? Following is whether distributed file systems (e.g. DFS) and naming services (e.g. DNS) belong to the middleware layer.
0
Q: Are distributed file systems and naming services middleware?

TimFrom Distributed Systems by Coulours, a distributed system is partitioned into layers Middleware is defined as Middleware was defined in Section 1.5.1 as a layer of software whose purpose is to mask heterogeneity and to provide a convenient programming model to application ...

 
middleware is a buzz word
 
Tim
Mr Interviewer please refer to the quotes in the post
 
What's your understanding of a database? I wouldn't say that it "raises the level of the communication activities of application programs through the support of abstractions such as remote method invocation; communication between a group of processes; notification of events" -- but if the "data" portion of the remainder throws you off, perhaps it's because that author is using "shared data" in a memory/IPC sense and not "bits on disk" sense. Definitions are hard.
 
Just because something is defined doesn't mean it's useful
2
 
@Jesse_b another star for you
 
Tim
8:03 PM
Just it might not be useful, doesn't mean it doesn't need to be defined
 
Back at you
My old manager used to call databases middleware but he mostly just loved to hear buzz words come out of his mouth as much as possible
 
Tim
Middleware as a concept exists in textbooks for decades, and is not necessarily the buzzword "middleware" you hear
 
There are books written entirely about buzzwords
like big data, artificial intelligence, machine learning
cloud computing
 
Tim
Just bc you feel dificult to define them, doesn't mean they don't have definitions
 
They definitely have definitions, they just have little use and are mostly only uttered by those not in the know
 
Tim
8:07 PM
Literally everything can be defined
 
I said earlier they are defined
Their main function is to make the person speaking them feel smart
 
Tim
I don't like buzzwords 2
So I don't sound smart, and have been ditched
by the "smart"
 
I'm not sure I understand you but I definitely was not trying to speak about your intelligence in any way
And I'm also being a bit overly contrarian because I know those words are sometimes used legitimately but IMO most often not. When people start spouting out words like that it generally means they are about to use a lot of hot air to essentially say nothing at all
 
Tim
Excuse me for confusion. I just recall my miseries
It is difficult to get a job wo using any buzzword, isn't it?
 
I actually look for them with the opposite intent when conducting interviews. If someone says a lot of fancy words without any real content I am immediately suspicious
 
8:14 PM
I would think that evidence of proficiency in a technology (java, SQL, etc) is preferable to knowledge of a technology (buzzwords here)
 
Tim
if they don't put fancy words in resumes, their resumes don't even have a chance to reach Mr interviewer
 
I don't entirely disagree @Tim but I don't think middleware is giving anyone bonus points ever
middleware is a word the world could get rid of today and tomorrow would be no different
 
Tim
I don't entirely disagree Mr interviewer. I think if the world get rids of "middleware", the textbooks will be very confusing
 
But you're already confused by its definition, so wouldn't they be less confusing?
 
Tim
I am easily confused, so I can be confused by anything
 
8:19 PM
I think when it comes to middleware you're not alone in your confusion
 
9:00 PM
milkyway is an underrated candy
 
 
2 hours later…
11:25 PM
They changed the boilerplate duplicate verbiage
 
11:50 PM
23
Q: New Post Notices are live network-wide

Yaakov EllisA few minutes ago, new Post Notices were launched across the Stack Exchange network. This includes all public sites, all meta sites, and all Basic and Business tier Teams (Enterprise tier will get it in a future release). For our purposes, a 'post notice' includes any status banner shown on ques...

 
:y:
Nice
the "needs more focus" close reason is good
latest question is a perfect candidate
 

« first day (3344 days earlier)      last day (1593 days later) »