« first day (765 days earlier)      last day (2528 days later) » 

6:27 AM
Morning ppl
 
6:43 AM
good morning @Sotos
 
Morning \o
 
hello @ all :-)
 
6:59 AM
@Frank I've noticed that @DavidArenburg also has tried to answer one of those chameleon questions. Now, there are four nearly identical questions asked by two users: stackoverflow.com/questions/44189061/…, stackoverflow.com/questions/44094497/…,
Is it's worth to involve moderation or is it just the normal "noise"?
 
@UweBlock I'm think OP just has trouble understanding what to do; I've answered a similar question by same OP about 3 weeks ago as wel
 
7:17 AM
@Jaap That makes the fifth question! Interestingly, there are two guys.
 
Hello :-)
 
Could be a assignment for their study, hence the similar data.
 
Both OP's have no clear understanding of specification of the problem. Appears as an XY problem to me.
I have another question:
I gave an answer stackoverflow.com/a/44185901/3817004. Now the OP picked the raisins from my answer, posted it as his own answer to his question and accepted his own answer stackoverflow.com/a/44195555/3817004
What is the best way to react on this?
At least he upvoted my answer (conclusion from shear coincidence)
 
@UweBlock left a comment on your behalf ;-)
 
7:32 AM
@Jaap Wow! Clear words! Thank you.
It's good to be part of the GMTs, for sure.
 
What to do about this answer? It was already included in Matt's answer.
my suggestion: downvote & delete (by 20k+ users)
 
Oh wow.... that is a new kind of low!
@UweBlock big breaths :)
 
@Jaap I'm not sure because Sathish is talking about multiple columns. Appears like an extension to Matt's answer (or I have overlooked it Matt's in answer)
 
@UweBlock in the second codeblock Matt used assignment to multiple columns; therefore I'm doubting Satish's answers add anything new
 
7:48 AM
@Jaap OK, I've seen that now, thx. Might be overlooked by others as well. It's very helpful feature if you are used to it. May be, Satish felt it should be promoted.
But Matt doesn't use sapply/lapply in his answer
So, I believe it's legitimate. However, Satish should have explained better his motivation for posting.
 
Hello here
 
@Jaap Big thx, your comment had worked out. The OP has deleted his anwer and accepted mine.
 
 
8:09 AM
@Jaap Hello @Jaap! Yes, "finding offsite resource".
@UweBlock done. Hello!
 
8:50 AM
@jogo thx!
 
Ha, I would have expected a lookup table which translates values back and forth. Turns out OP just wants a "console printed" table.
1
Q: How to create a small lookup table in R script

TonySI want to make a small lookup table within an R script, but it seems difficult. lookup <- data.frame( item=c("aaaa","bbbb","dddd"), price=c(1.00,2.50,3.65) ) lookup The above works for really short lists, but already the item and price are getting out of alignment, and if we added a 20...

 
9:35 AM
close as typo I guess.
 
Reading a tutorial on bash scripting made me wonder why not many tutorials show how to find help.
 
@Axeman Why is RTFM no official reason to closse?
 
@UweBlock That sounds more like it. That's not a close reason, though.
The thing that makes this question crappy is lack of an easy-to-paste reproducible example.
But not as crappy as to down-vote, IMO.
It's a question to forget about.
Or am I missing something?
 
OK, close as dupe maybe?
The thing is, he already has both position = "dodge" and stat = "identity" in his examples, all he had to do was use both at the same time.
or many others, but I've already voted
 
10:07 AM
@Axeman imo it is a type because OP used geom_bar a 2nd time without the stat='identity' part
 
@Jaap Yeah that's what I voted.
 
strange, I see no votes yet
 
@Jaap I see two
 
even hitting refresh won't help (it sais one now)
 
10:55 AM
@Axeman also I voted "typo"
 
 
1 hour later…
11:56 AM
Posted my second SO Q.
 
12:12 PM
Hello
@Axeman oh no, you are destroying your Q/A ratio!
3
 
haha
 
Wanted to use ggraph for my latest small app, then quickly gave up, and used visNetwork...
I think he is creating his own small graphtidyverse
 
I need to plot multiples of small graphs where the nodes are the same but edges differ, like:
Good node labels are important. Turns out to be quite hard to do. igraph looks quite bad, and most of those new fancy ones like visNetwork are not good at this either.
But yeah he now has tidygraph as well, but I'm not using that since it's too young; and this is package code.
 
How do you control where each node appears, always on the same spot across facets?
@alistaire lovely name, congrats! Surprised the name was not in use already.
 
@zx8754 I create a single graph where the panel for each edge is an edge attribute. Then you can facet by that edge attribute using ggplot2::facet_wrapor ggraph::facet_edge. Quite nifty.
Layout is calculated for the combined graph at once using igraph algos
 
12:30 PM
didn't explore the facets, looks useful
 
@alistaire good name.
But is your name Edward then?
 
@alistaire wow, looks damn good.
@BrodieG yep, from his twitter account twitter.com/alistaire
 
 
2 hours later…
2:39 PM
Quick question on bash...
Anyone familiar with it? :)
#!/bin/bash
fn='abcABC.1.def'
out=$( echo -e $fn | awk '{ gsub("ABC.\\d+", "", $fn) }' )
I was hoping this would remove the ABC.1 part from the string, but isn't working for some reason. Can't find anything on the internet that would match this. It's trivial to do it in R...
 
@RomanLuštrik maybe it's just a single backslash to escape? alternately, could loosen the regex to "ABC.." or "ABC.{2}" and see if that works ("." being the symbol for any char)
i really don't know though. surprised awk has gsub() with the same arg order
hm, also, if you're piping it, surprised you write $fn twice
 
@Frank Any tips on how I can refer to the pipped value inside gsub()?
 
@RomanLuštrik google search suggests $0
 
The above awk is probably not working because single quotes are not expanding the string for variables...
fn='abcABC.1.def'
echo $fn
out=$( echo -e $fn | awk '{ gsub("ABC", "", $0) }' )
This isn't getting me there...
 
looks like you can write a two-arg gsub or write a two liner {c = $0; gsub(patt, rep, c)}
or i guess it's at least two-lines/commands in any case, just that the two-arg gsub modifies $0 in place in some sense
 
2:56 PM
This one appears to work: echo "/x/y/z/x" | awk '{ gsub("/", "_") ; system( "echo " $0) }'
As soon as I introduce \\d+, things get bananas.
#!/bin/bash

fn='MICROSAT.PCR_filtered_rawdata_scandinavia.filtered.7_UA_MxRout1_51.fastq'

echo $fn
echo $fn | awk '{ gsub("filtered\\.\\d+", ""); system( "echo " $0) }'
I gave up on \\d+ and used [0-9]+ which appears to work. Sigh.
 
@RomanLuštrik yeah, i guess \d is not a thing ftp.gnu.org/old-gnu/Manuals/gawk-3.1.1/html_node/…
(i may be on the wrong docs there since the url says "old" but whatevs)
 
Can't find the link but I was looking at an implementation with \\d. Bah.
In any case, I managed to get things going with your help. Much appreciated!
 
np :)
 
3:12 PM
@BrodieG Thanks all! And yep, my name is Edward. Alistair is my middle name, so I use AlistairE as a screenname so I can differentiate lazy spam more quickly.
 
4:01 PM
heh, from the latest SO blog post "during peak traffic hours on weekdays, there are about 80 people per hour that need help getting out of Vim."
i also like the dig at front-end and IDE-bound devs
 
I confess, I've used that question
 
i've never tried vim. guess i'd start with emacs if i needed to enter that space, since it has ESS
 
Yeah, I think I ended up in it by mistake by copying some bash
 
ha ok
 
I started learning emacs, but it's hard
I'm not certain my mind can hold that many shortcuts in the long term
 
4:07 PM
yeah, probably need to develop muscle memory for it, like folks get for keyboards
i can't even remember the characters for some of my passwords, just the pattern of button presses, for example
 
definitely
still, this layout looks interesting:
 
heh, judging by my upvotes there, i've used the "yield in python" question drob links
@alistaire hm, that does look pretty spiffy, some combo of an r terminal, top and magical progress bars from somewhere, eh. i'm windows-bound for now (thanks to team skill set and inertia here), so i guess i won't be learning any time soon
 
I'm sure you can get it for Windows, though I'm not sure how it integrates with the shell. TBH, I'm still not wholly sure how that works on my own OS either.
urg, looking at that yield question makes me think I should really learn python better. Not for data, really, but as a more general-purpose language.
 
i feel like with vim/emacs on linux i could hack together shortcuts for "run this line or full file in the last R console window" but i barely have that working for notepad++ so i wouldn't want to push it on windows
(since i also need such shortcuts for sending to stata, etc... got a pretty fragile setup here)
 
You can customize shortcuts to run whatever you want (in elisp), so I'm sure it's possible, though figuring out how to write it could take a while.
 
4:23 PM
yeah, for now i'll stick with good-enough until it breaks beyond repair, like if IT decides to break npptor, then i'll need to go learn something new
 
learning emacs isn't high on my nice-to-learn list anymore either as a result of @alistaire commenting a few days ago about difficulties to learn it
 
nice rle answer there, Jaap
seems like a very messy problem; not sure how i'd deal with it
 
5:03 PM
@Frank thx :-) OP is betting (s)he lives in the neighbourhood:
PERFECT! Owe you a beer — Lompoc42 36 mins ago
 
5:24 PM
heh :)
 
a certain someone is trying to get my attention ----^
 
5:43 PM
nvm, nurka removed his possible duplicate comment
 
6:46 PM
Hello guys !
can we close this profanity please ? stackoverflow.com/questions/44208221/…
 

« first day (765 days earlier)      last day (2528 days later) »