News for hackers. Stuff that matters.
Re:I forgot how to manage a server by ryu2k2 on Wednesday May 01, 2019 @09:19AM (#19796729)
He didn't forget how to manage a web server. He knew his problems, how to look for solutions and how to apply them. That's an important skillset to. Especially since it enables one to keep up with change. You're not a professional sysadmin if you only mindlessly keep using the same configurations that were taught to you.
Re:I forgot how to manage a server by chousuke on Wednesday May 01, 2019 @09:32AM (#19796816)
I found it a bit puzzling too. Does someone actually bother memorizing iptables syntax? Sure, if you use it daily for a long time, some of it will stick, but it seems completely pointless to waste time explicitly learning it.

I find it's better to save my brain power for learning things like what I need to take into account when configuring a database for example, or what variables affect network performance and what options I have for tuning, etc.

When I reach for tools to solve problems, the most I usually remember is "I can use X to solve this class of problems" and the how is available from the manual or with a Google search.

Re:I forgot how to manage a server by Aloha on Wednesday May 01, 2019 @09:35AM (#19796837)
I'm sure someone does - I mean I have a friend whom I can hand a network diagram with specified cisco devices, and he can write cisco configs by hand, from memory - whereas me, I struggle to recall any of the regex I learned the last time I needed regex.
Re:I forgot how to manage a server by afturner on Wednesday May 01, 2019 @10:29AM (#19797284)
oh for real fuck regex. I need to just sit down for an hour and learn it, but I never do :( it's like Vim..
Re:I forgot how to manage a server by zrobotics on Wednesday May 01, 2019 @10:45AM (#19797447)
Eh, is there a point in memorizing it if you don't use it enough? The best way to learn something is repeated practice, so while I use regex enough to not need to look things up normally, I need a quick refresh anytime I need to do anything in matplotlib. There are people who are fluent with the library, but I don't have any more than basic syntax memorized since it's maybe once per year that I need it.

Although if you really do need to learn regex, I highly recommend https://regexone.com At least for me, the way it was taught Wes super-helpful in retaining the syntax knowledge.

Re:I forgot how to manage a server by nurettin on Wednesday May 01, 2019 @12:01PM (#19798393)
I don't even remember when or why I learned it. Was it 10 years ago? 15? 20? Was it the xkcd.com/208 ? Was it curiosity? All I know is I've been using it ever since and solved so many problems with it and yes, there are places where finding the right expression becomes a problem in itself, but online regex testers largely solve that problem by letting you visually test your regex. (see rubular, pythex)

People have huge reservations about parsing non-regular languages (like xml) with regular expressions because xml could have an attribute with a string with another xml in it or something, but the whole point is moot because regex is mainly used for partial matches and the possibility of having a string inside the html that could match whatever you are looking for is minuscule and will probably show up in tests anyway.

Re:I forgot how to manage a server by Aloha on Wednesday May 01, 2019 @01:40PM (#19799612)
if you design your regex for the XML you're using it on, this shouldnt be an issue - I use it frequently to mung config files as needed for work stuff - we use XML or XML like files for all sorts of stuff.