I've parsed a file but there's some issue and a quick way around is to replace empty line with line below it so how do I do that
like the folowing file
apple
banana
big
sig
cake
should convert to
apple
banana
banana
big
sig
cake
cake
I need to have a mechanism wherein 2 process should communicate.
Process A will do some job and wait for input [file path] from another process B. Each time Linux machine is rebooted this should happen.
The number of times this happens is controlled by the count in process A.
Thought of doing ...
I see questions on Ask Ubuntu set to on-hold or being closed because they involved bugs and are meant for "developers".
Stated in the description for askubuntu.com
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's built and run by you as part of the Stack Exchang...
wait that's a completely irrelevant meta post about something else entirely :D
sorry for that XD
the is this programming question off topic? is a pretty fuzzy area of our scope
I tend to go by the chances of getting a good answer in this area rather than any other consideration
like, I remember Eliah Kagan found a badly answered C++ question. He said, this shows that AU is not a good place for C++ questions. If our community can't evaluate answers properly, then it's not the right topic for our site
OTOH questions about Python for instance tend to get well answered here. So I'd vote to keep open or reopen if an answer's been posted
@Zanna thye site itself seems to be kind of inconsequent though when it comes to languages. Many, no practically all, cli questions are not Ubuntu specific, while a language like Vala is the "house" language of Gnome, so OT by definition one would say. Curious what would happen if I posted a Vala Q.
Sure! but that should count for anything if you apply the rule strictly. I remember quite a few downvotes/close votes on programming for Ubuntu.
... as well as cli questions, not closed, despite the fact that they are not Ubuntu specific (which is fine with me, but still). Think the line between programming an scripting is extremely vague.
Many things seem to be more by tradition (which changes over time) than a rule that makes sense in all possible ways. Also note for example that we often see heavily upvoted answers on SO, containing only ... a link! @Zanna
Interesting to note the differences in perception.
I need to configure physical volumes and LVM on my Ubuntu desktop. I worked with my virtual boxes, could not upgrade them due to insufficient space.
My lsblk
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 132,1M 1 loop /snap/postman/81
loop1 7:1 0 3,7M 1 loop /snap...
@Rinzwind Thought it was the other way around: if a question is about an issue that needs solving -> fine, if it is about an issue + specific language -> programming question.
@Zanna @JacobVlijm Btw, where does this “Ubuntu specific” come from? I can’t find it neither on any help page nor in a relevant meta discussion, on-topic on the contrary speaks of “Ubuntu-related questions”. IMO the question whether something is specific to Ubuntu – what ever that means, a clear definition seems insanely complicated – should not be relevant.
We have 4 backup disks that we rotate in one removable caddy slot.
The fstab script intermittently works....it appears the fstab script is not getting to later lines.
Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-148-generic x86_64)
Example - this will NOT mount the 3rd disk (1C66E504730C5C29)
/dev/mapp...
The development thing is indeed trickier. The way I see it, there are two broad categories. Classic scripting languages like perl, python, awk and the shell are traditional *nix tools and part of a sysadmin's toolbox. So questions about using those on an Ubuntu system are on topic. Compiled languages would also be on topic but only when the problem is related to Ubuntu.
Things like "How can I convert a string to an array in C" I would consider off topic, but "How can I query the procfs filesystem in C" would possibly be on topic.
I think Gilles's answer to this U&L meta post is also broadly applicable to us:
Unix's shell interfaces tend to be pretty close to the syscall interfaces. In particular shell utility errors are often straight lifts of system call errors. So people who understand the one often can help with the other. Therefore I think questions about the system interfaces (i.e. the C API) sh...
Obviously not the general UNIX stuff, but the basic idea that if it is about the Linux kernel side of things (and, for us, is being tested/run on an Ubuntu system), then I guess it would be on topic.
So if you're developing an Ubuntu driver for a piece of hardware, for example, you should be able to ask here.
@terdon indeed a tricky set of variables to decide on. In general, in cases of doubt, I feel there is more harm in a too strict policy than every now and then letting a case on the edge slip through.
First of all, I have read all the threads in stackoverflow on this topic and I have tried the provided solutions in them, which resume in:
sudo apt-get remove r-base
sudo apt-get remove r-base-core
delete everything in .libPaths()
The thing is, I'm using a Docker container which c...
The question of managing a docker instance and the software installed on it is 100% applicable to and interesting for users of Ubuntu. And we just lost that question because of the too-strict policy. In an ideal world, I'd have just edited that to not mention Debian and then we would have gotten a useful question and the OP a helpful answer.
Btw @JacobVlijm I'm sorry for wandering off! It was lunchtime and I was in multiple conversations. Suddenly I realised the time and rushed out to find food, forgetting everything I was in the middle of
I have seen a number of users voting to close scripting questions as off topic. Is this the community consensus? Are bash questions not welcome here? How about other shell programming questions?
Tuxdigital mentions a search tool that doesn't use indexing: youtube.com/watch?v=tsC4GXT6_88&t=2016s. It needs a bit of RAM but otherwise is supposed to be fast.
There's a place just down the road from me that is too good. I totally need to buy some cooking equipment and start making my own food to save money, but I'm delaying that so much because eating out is too great
IIRC, idli and dosa do involve some fermentation of the rice batter. But our hostel staff economically used to under-fry the dosa and under-steam the idli :(
@Zanna Please help me with that, a question’s title is “Is there a way to make it so the cursor is included when I prtscr key?” and I want to make it “How to include the cursor in the screenshots created by pressing PrtScr?” – is that acceptable or can it be further simplified or improved?
maybe “… screenshots created when PrtScr is pressed”?
As I said at title, I want to make:
Create window if It's not exist
Show (maximize) window if It's created before
Hide (minimize) window if It's showing now (focused)
Do all of these process in the current workspace
I've installed ubuntu 19.04 on my computer and I have no sound on it, when I go to the config penel of sound, it displays they green line that is moving like I have sound, but there's no way to make it sound.
I tried some solutions that I found but there's no way to listen anything.
Sometimes when I'm working with my computer, it goes to the login screen
I saw this error in the syslog but I didn't found any information about it
gsd-keyboard[9905]: gsd-keyboard: Fatal IO error 11 (Recurso no
disponible temporalmente) on X server :1024.
at-spi-bus-launcher[9840]: XIO:...
@ByteCommander is it possible for mods to delete an accepted answer? It has come to my attention that I have an incorrect accepted answer that I wish to delete.
@AndroidDev Just raise a custom moderator flag that explains the issue. Someone will take a look and we'll see what we can do. It should be possible, I asked for something like that years ago too.
If you want, you can additionally leave me a notice here and I'll have a look, but the flag makes it easier to handle and also keeps the flag text as permanent record for the reason, so we'll know why it got deleted in the future.
can a usb 2 provide power? or was that just 3 and C :X i have a weird thing: my cowon j3 does not mount over mtp when I use my usb3 OR the usb 2 next to it. The usb 2 on the other side (both) do mount it.
I was ordered to fix a problem a subsidiary created but tried to hide they did from the company they worked for. In the end 4 people got fired after I sent that company my bill and a vert very large explanation on what "do you really want to delete all discounts?" means :D
Technically I should be finishing it next year, not starting it. but w/e. Health problems suck. Grateful it's only added 1 year and 1 quarter to the overall length though. Could have been much worse.
My average is 5 a year so I will likely go over that. We both have a lazy left eye that is partitialy the reason. I had 2 severe concussions when I was young. That's the 2nd part of the problem :)
Hehe, what it doesn't mention that Gdk.Screen 's get_n_monitors is deprecated, so use Gdk.Display ' s get_n_monotors instead :). Nowhere on the page though :)
@Seth hi :) I've just been super busy...... also I probably should change my name lol, I love doing Android development as a hobby but I'm not super great at it....
@ByteCommander sorry to bother you again... The edit to this question has rendered my answer to longer "answer the question" if you will. Should I just leave it or?
(The question was changed from "Why is hibernation so complicated" to "How can I make it work on my laptop")
The original "why is it difficult" was something I thought to be a relatively bad question, but your answer to that is quite good.
The changes that got made, including the OP's specific hardware and steps taken to enable it, are very substantial, so you're right the answers don't really fit any more
I'd personally probably lean towards reverting the edits and asking the OP to instead post a separate question about their specific case and how to get that second bullet point to work, leaving this one as theoretical question about the general difficulties of hibernation. It might be closed as too broad/opinionated then maybe, but I think it's better like that to preserve the answers and content.
hmmmmmmm....
@AndroidDev I wrote a comment, if the OP's fine with asking a new question about the specific hibernate on lid closing issue and reverting the original question, that's how we're gonna do it. I don't just want to force that on them though.
@jmath1983 I see you got two relatively good answers about the theoretical difficulties with hibernation, which I think address your original question quite well. However, due to the substantial changes to your question over time, making it basically only about hibernating when closing the lid instead, these answers do not fit any more. I think it would be best to revert your question to what it originally was about and you then ask a new question regarding the hibernate on lid closing issue. What do you think? — Byte Commander ♦1 min ago