I have a server setup where I've bonded 4 interfaces (bond1) and connected this to a physical switch. I have added this bond1 to an OVS switch ovsbr1 with VM's attached to ovsbr.
It seems there was a change in how Ubuntu/debian handles dummy interfaces in 18.04. Previously I configured a dummy i...
Is there a reason questions mentioning Ubuntu appear in this chat room from only UnL? Superuser gets some Ubuntu questions as well. Example: superuser.com/questions/1448134/…
It's designed to show only questions on Unix&Linux with the Ubuntu tag
I guess that Super User loves version tags very much. Unix & Linux has ubuntu while SU has ubuntu-18.04 (Really???). So, I think it's easy to identify those on U&L or nobody tried writing a bot for SU or feed O_o
I would argue that the version is actually often important - there have been significant changes through the versions and I certainly would not expect any but the most generic (as in, "would apply to any Linux distro") answers for a ten year old version to work perfectly on a recent release.
Jus...
Also, note that this is just my opinion. There are valid arguments in favor of version tags as well. The community (and mod team) are split down the middle on this.
I would say that we absolutely don't need so many version tags. I would argue that all we need is ubuntu and then the version can be mentioned in the body of the question. Yes, there are difference between Ubuntu versions but they tend to not be very important. Also, most of them are down to the ...
I want to create a Laravel project in /var/www/html using composer.
Since composer won't allow you to run as root, I can make a directory and give it all the permissions 777 but I don't think that's a good idea.
So I was wondering what permissions shall I give to my new project folder so I can w...
:50665340 that isn't a very nice thing to say. Nor is talking about someone behind their back like this in another public room. He looks like a person with problems navigating human social interactions. A troll is someone who intentionally acts in an unpleasant way.
I'm not a naturally pleasantly communicative person neither, hence the avatar: I do feel like an alien that doesn't get these human's interactions sometimes...
I try to always be pleasant, but sometimes fail...
I have a program X which I want all users of my computer to be able to access. So I can't put it in my home folder. So I hear that \usr\local is the right place and tried that.
But the folder permissions for folders in \usr\local\bin\ are drwxr-xr-x, which I find out is 755. So I create a fold...
> If you press a key and nothing appears in the terminal, it means that either the key does not have a scancode, the scancode is not mapped to a keycode, or some other process is capturing the keypress. If you suspect that a process listening to X server is capturing the keypress, you can try running xev from a clean X session:
all the Fn keys I can identify There is an extra key next to printscreen with the hp omen logo on it. also does nothing >:) in windows that one is connected to some hp software
quick convention poll: in code comments(any programming language), text content (tex, markdown), or in any language where you break lines at a certain character count pastebin.com/raw/mUHWHqfU do you prefer style 1 or style 2?
@Lacey Style 1. Style 2 only if each sentence is making a very different point and you want them to be read as a list.
Personally, I always go for style 1 'cause I feel it makes my code look less messy.
I've also learned that if your code needs comments that are that long, you are almost certainly doing something wrong.
I used to comment my code religiously so I could understand it when I looked at it again months or years down the line. These days, I write my code so that it is clear and I can understand it without needing comments. Turns out that's a much better approach!
@terdon points for writing readable code. I generally follow the rule that a 4 year old should be able to read python and tell you basically what it does. It's why I avoid random things like lambda functions and custom magic. Another rule of thumb I use is if your function comment is basically the function name/signature, you're probably doing it right.
I look back at the code I used to write and I want to cry...
@Lacey Um...
That's what I thought too until I started working with people with loads more experience and going through code reviews.
If you need 500(!) characters in a comment, you should really think about simplifying your code. At the very least try using descriptive variable and function names etc
Describing what a class does or the purpose of a data structure often requires that many characters. It is less than 1/4th of a book page. It is a single paragraph.
@Lacey The point is that if your class requires 500 characters of explanation, then it is almost certainly not written clearly enough. Of course there will be exceptions, but that's a useful rule of thumb.
And then, of course, you will change the behavior of the class and forget to update the comment, and someone else will modify it, and also forget and a few months or years down the line the comment is no longer relevant and your class is still unclear.
If you are fine with assuming things without evidence, then just assume I am actually committing printed out images instead of code. I haven't had issues with maintaining ~8 sentences. That character length is not long enough to talk about all the variables or even functions. 8 sentences is just enough to explain the basic purpose of a thing and what it does.
@Lacey in 25 years of coding I never needed more then 2x78 chars. Then again I see lots of undocumented code from old employees where I instantly know who wrote it. Just a couple of lines often is enough for me. And every old employee had his
@Lacey I am not assuming anything at all. I'm talking about my code and how it has changed over the years. I've found that the clearer my code is, the fewer comments I need. So these days, if I find myself writing comments that explain the code, I rewrite the code instead.
@terdon so true. what also is important; at my workplace we have templates. Each different language has pre-defined ways to code it. UNLESS you want to maintain the software yourself you have to abide by those rules.
I used to think so as well before moving from academia to the private sector and professional coding.
I still don't consider myself a programmer, as such, so I don't tend to have any religious convictions about code, but I have seen that as the quality of the code I produce improves, the amount of commenting I do decreases.
Novice getting into Linux here.
I recently set up SSH access to a small Ubuntu box which I currently log into both from my local network and from offsite.
Currently I just have 2 users that are remoting in, but checking my /var/logs/auth.log I see TONS of random username/port combination attem...