@Gilles ok, he's deliberately hiding information, the issue he had only happens on mounted NFS partitions, which he didn't told us and is critical to know what was the issue
in any case the question lacks information relevant which OP decided not to include, which lead to solve the problem
Berryboot is a pretty neat pre-boot environment that lets you install one of several pre-selected images to your raspi. It does VNC for picking your boot options.
So.. basically what I need is
A preboot menu accessable remotely - with a gui and VNC support.
The option to pick a installer optio...
I am running Ubuntu 14.04 LTS, and using Cinnamon as my main environment.
I have three Acer monitors. 2 matching x203w's, connected to an Nvidia GeForce 9600 gt pci card.
I also have an Acer x203H connected to the onboard video card..an ATI Radeon HD 4200 series.
All three monitors are connect...
You could do this simply through Perl+regex combination.
perl -pe 's/(\{(?:[^{}]|(?1))*\})(*SKIP)(*F)|,/|/g' file
Example:
$ perl -pe 's/(\{(?:[^{}]|(?1))*\})(*SKIP)(*F)|,/|/g' file
(999969|2500|"777777888"|0|"45265"|"65522"|NULL|10001|2014-09-15 10:27:07.287|2014-09-15 10:28:49.085|2014-09-1...
@AvinashRaj that answer would be great if you could explain how it works. You're using some pretty obscure syntax (most people won't know the recent and perl specific *SKIP and *F). Could you break it down and add an explanation?
@AvinashRaj Not really to tell you the truth. I'm not familiar with *SKIP or with the (?1) notation. I know what they do, sort of, but I never use them so I find your solution very cryptic. It works like a charm mind and I sort of suspect what its doing but I'd like to see an explanation.
@JennyD What's worse, the answer I was trying to decipher was written by @AvinashRaj who didn't even know perl a couple of months ago. Now, he's writing things I can't grok. No fair!
@AvinashRaj I understand you're doing a search/replace and that a quick look, looks like you're using the lookahead/lookbehind but it would be nice if you explained how that worked. Even if it's reserachable, most ppl will not get what you're doing. It's nice when A'ers also educate others and are as self contained as possible.
It's a 1 line A which we generally discourage.
a bullet list breaking it down for the various pieces is all that I would be looking for, more than that would be great
@slm Not even. He's using the special *SKIP and *F to control backtracking and the (?) to group. I don't think there are any lookarounds there. I had to read perlre to get that much!
I've been working with Perl daily for more than a decade and it still surprises me. Sigh. I really should read a perl book from cover to cover one of these days.
@slm Dunno. I often talk with Tom Christiansen on the English Language & Usage room and he seems to manage. Then again, he's the author of the camel book and the perl cookbook so I guess he'd better :)
yeah there's a small group of guys w/in the lang. that have been trying to improve the situation for years. Much of the plumbing on the internet is still Perl.
I give him two solutions and then he posts this comment:
Hi everyone, this is the file i have to process: 73306758;Da Lavorare;;20300;RESTAROC;10/10/2014 16:37:22.425;PALAGIANO;TA;PUGLIA;;Libretto;IDENTITA;AI2000000;OK;DOC Valido;0;0;CCCMNN85X26X251X;OK;CF Attribuito;0;0 The part i have to truncate is the .425 in the date field. — fabiousaol855 hours ago
Well duh! Of course it didn't work. Your question refered to the 4th field where you want the 6th and you don't have comma separated values but ;-separated!
@terdon thats why I tend to stay away from that type of question unless there is a very clear "this is what I have" and "this is what I want". If they change that mid-answer I don't know that I'd have the fortitude to continue.
@slm Yes, but I think it's because someone downvoted. It wasn't me but I left a comment explaining why his answer was not very good. Unlike this one which is great. He does know his stuff.
This just came up again:
homework is not acceptable if the asker has made no effort whatsoever
I'm developing a bit of an involuntary twitch that manifests itself when I encounter the word "effort" on Stack Overflow these days.
Don't get me wrong — effort is good. At least, productive eff...
oh, btw @slm givemehtehcodez can be too broad meta.stackexchange.com/a/216577/213575 since any answer needs deep and step by step explanation of what's being done
The Q's are critical to the A'ers being useful. When a Q is too lax in it's details it makes the A'ers have to replicate more, making for more work when other's want to read them down the road.
Also a good Q will typically elicit 1 A. The fact that those Q's have 4+ A'ers on them tells me that they weren't asked specifically enough
> like to distinguish between effort in formulating the question and effort in solving the problem. When I want to kill a post it is mostly for a lack of the former.
I think this is the point that shog is missing here
I don't want/expect to have pages of debug output and src code cluttering up the Q, only that the Q was asked in a concise way so that ppl answering it can do so w/o having to guess too much.
In the old review system we could vote for posts while reviewing. We were able to upvote great posts and downvote bad quality posts:
But in the new review system we are not able to vote on posts:
Voting is one of the main components of SE communities. While surfing or reviewing posts I am e...
As I'm sure you all know, downvotes "cost" 1 reputation. That is, every time you downvote:
-2 to post owner
-1 to you
This is done to make sure downvotes are cast only when you feel strongly that something is incorrect / wrong / dangerous / of low quality.
We've been tweaking a few thing...
things to look at are 1) is something listening on that port? if so, what? 2) do you have a firewall or iptables setup? 3) any other supporting information.
put all of that together and ask a Q on the site
it'll then show up in the list of new Q's at the top left corner of this page
I've successfully run hadoop on a single node cluster and now I'm trying to run hadoop on a multi-node cluster but it's not running properly.
I followed the answer in this question shuffle error:exceeded max_failed_unique_matche : bailing out but when I ping the master with the slave they are wo...
I'm trying to run the Hadoop pi example. It was running without any problems on a single node. But now I'm working on a multinode and its giving the below error. If anyone could please advise.
mapred-site.xml:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!...
nothing in that list is listening on port 50060, that is why you can't connect
that points to something wrong with the software you are trying to run, and beyond my expertise (no experience with hadoop or whatever you are trying to run)
@Braiam yeah, still would like an answer to the bash command completion question. Though unless something's changed, I think the answer is bash doesn't do that.
@user1460166 No, I don't know anything about it. Just so you know, pinging random people and demanding they help is not considered polite. If someone wants to or can help they will, if not, leave them alone.
@user1460166 my advice is to improve your Q (include netstat output to show the status of the port you are trying to access and any iptables rules that are relevent) and hope someone sees it (or see if there is a hadoop chatroom on SO to help you)
Also... I finally rebooted my machine. And now all the font rendering in Chromium is completely different; looks like the hinting settings have changed... Wonder why.
I would implore all of you to please do this more often. We already don't vote as much as we could/should but it's an easy way to help push those types of Q's down.
I've noticed too that when a Q like that goes negative beyond a -1 that ppl seem to quickly turn on it and no one A'ers it until it gets cleaned up
@FaheemMitha Yeah, it'll give src/something if there is a src/something directory... If you don't want the prefix, you'd do something like cd src; for d in */; do
@Braiam I'm beginning to think the solution is to just download Chrome from the Google repo. As a side bonus, you get working Netflix too...
so, which of these are portable? i think debian frowns on bashisms in debian/rules. though i could be wrong. debian has so many rules, eventually you start imagining them.
I often find bash syntax very helpful, e.g. process substitution like in diff <(sort file1) <(sort file2).
Is it possible to use such bash commands in a Makefile? I'm thinking of something like this:
file-differences:
diff <(sort file1) <(sort file2) > $@
In my GNU Make 3.80 this will giv...
To some extent it makes sense, it'd be bad if people could edit their chat messages from, say, yesterday. Probably would make sense to allow editing if its still on-screen... but of course "on-screen" is not well-defined.