« first day (1952 days earlier)      last day (1571 days later) » 

06:08
morning all
06:49
hello
07:33
Hi everyone ! I'm back from my looooong vacations :-)
@Cath Hi Cath! Welcome back. I also came yesterday :D
Did you decompress?
:-)
@Sotos yes and no : as much as you can with kids around I guess ;-p
how were your holidays ?
Much needed :D
Were good though, I got to rest
spent time with the family
kids worked me pretty good but it was fun :)
yeah, those 2 (rest and family) are the most important :-)
08:00
hello
Help: how would you sort this list? x <- list(5:8, 24:25, 44:46, 14:16)
sorting is based on first value, so in this example 14:16 should be 2nd item in a list... ideas?
A radical idea. What if you convert this to a data.frame, sort it there and slice it back into a list?
How about something like x[order(sapply(x, function(i)tail(i, 1)))]?
just extract last element and sort based on that
or first element?
@RomanLuštrik gimmi codez
If the constraint is on ordering based on first element only, then Sotos' solution is probably a neat one.
@Sotos thought about order too, but but sorry one more constraints, consider this case, the shortest should come first if min is the same: x <- list(5:8, 5:6, 24:25, 44:46, 14:16)
Worth asking at SO, or will I be punished with dvs?
08:14
Hum, my solution doesn't work for the new case.
I think its worth it.
If you provide a reproducible example and make it clear what the result should look like, you shouldn't worry about downvotes anyway. :)
I think the tail method I mentioned also takes your second condition into consideration
because 5:6 tail is 6 and 5:8 is 8
so 5:6 will be first...
@zx8754 this: x[order(sapply(x, `[`, 1))] ?
The confusing part would be if you had 4:8 and 5:6...
which I assume 4:8 goes first
08:17
@Sotos yes, sort by smallest value, if same then check length
@Jaap this is what I had, but then realised I might have same values as 1st value. I had sapply(x, head, 1)
@zx8754 another try: x[order(sapply(x, `[`, 1), lengths(x))]
@Jaap we have a winner!
:-)
08:33
suspended again? akrun - stackoverflow.com/users/3732271/akrun
@zx8754 LOL facepalm
Maybe there is a badge to be won. suspended X times!
08:59
LOL
welcome @CupOfJava. Please go over our few rules
09:27
possible dupe? hammer if agree, I provided 2 links: stackoverflow.com/q/63575168/680068
not sure about dupe, but tend to vote "needs details"
 
3 hours later…
12:59
Downvotes should deduct more rep! Like make them count!
They should go with percentage of users' rep
Actually this could be a good topic for meta
A downvote to low rep users who are still learning SO is definitely much more harmfull than downvoting say a nurka's answer...
Or mine for that matter
and If you are an experienced user and post a downvote-worthy answer, should you be penalised more?
anw...food for thought :P
 
1 hour later…
14:07
@Sotos interesting line of thought, but I suspect it could easily lead to vendetta-like behaviour
14:18
I dont think It can be much worse than what it is now. If the same system (but with smaller percentages) applies to users casting the downvotes, then this can tidy things a bit as far as serial voting goes
Imagine a scheme where percentage increases as you downvote more and more answers in X amount of time
 
5 hours later…
19:05
18
Q: New post formatting

Aaron ShekeyWe’re doing a bit of refactoring on our post formatting. Currently, we apply a single class with both layout and styling called .post-text. Our first goal is to separate layout from our text styles. Simple enough! However, our current post styling has a few missing spots and areas for improvement...


« first day (1952 days earlier)      last day (1571 days later) »