« first day (460 days earlier)      last day (4014 days later) » 

hhh
12:22 AM
Moved here.
 
1:04 AM
@Mr.Wizard ufff I am so confused. I would be very interested in your thoughts on my question. But maybe I should clean it up (for the bazilionth time) again first. Goodnight!
 
 
3 hours later…
4:19 AM
@hhh please do not ask/pre-announce your questions here in the chat. This has been specifically mentioned by some people as being an unwelcome behavior.
 
 
1 hour later…
5:43 AM
0
Q: @insert_name doesn't always work

geordieIn the comments sections of questions I often try to write "@whoever" before commenting. Sometimes it works fine; other times the entire "@_" statement is omitted from the comment when it is published. Why is this? Am I doing something wrong (some of the time)? Can it be fixed?

 
 
1 hour later…
6:57 AM
Is anyone here?
Hello @Michael
 
@Mr.Wizard g´morning!
 
Hello @Yves :-) Do you have time to run some code for me?
 
@Mr.Wizard What's up?
 
lemme see... yup :-)
 
heh, not all at once! ;^)
Please, and thank you:
intervals[a_List] := {a[[Prepend[# + 1, 1]]], a[[Append[#, -1]]]}\[Transpose] &@
  SparseArray[Differences@a, Automatic, 1]["AdjacencyLists"]
f1[a_List] := (Pick[a, #, 1] & /@ {#~Prepend~1, #~Append~1})\[Transpose] & @
  Unitize[1 - Differences@a]
f2[a_List] :=
 Pick[{a, a}, {#~Prepend~1, #~Append~1}, 1]\[Transpose] & @ Unitize[1 - Differences@a]
a = Delete[#, List /@ RandomSample[#, 15000]] &@Range@1*^7;
timeAvg @ # @ a & /@ {intervals, f1, f2} // Column
Duh.. wait!
First need this:
 
7:10 AM
The Duh.. wait part causes an error, though.
 
SetAttributes[timeAvg, HoldFirst]

timeAvg[func_] := Do[If[# > 0.3, Return[#/5^i]] & @@ Timing@Do[func, {5^i}], {i, 0, 15}]
hehehe
 
0.084241
0.224641
0.215281
with 9.01 on Win 7 that is.
 
Interesting. The SparseArray method is still more than twice as fast. Do you think f2 is more easily understood enough to include it in my answer along with intervals?
 
the more the merrier
 
@YvesKlett Is it more easily understood or are both quite opaque?
 
7:18 AM
hey, I am just running the code :-P... but yes they are both quite opaque to me
which does not tell you much since I still need my first cuppa
 
hehe, okay, thanks
 
going to get one now...
ugh, gotta rinse my cup first, not a nice sight
no wait, switching to my WRI alpha mug.
 
 
3 hours later…
10:12 AM
@Mr.Wizard Hi. I was asleep.
 
 
4 hours later…
2:13 PM
Mornign
 
Morning :)
 
@Rojo Hola, buenas noches.
 
@J.M. Buenos días J.M, tanto tiempo
 
@Rojo Hay, mi casa es muy caliente...
2
Damn, it went to 38 today.
 
Hahaha
No air conditioning?
 
2:20 PM
That's the tropics for you. Also, I'm too poor to afford air-conditioning.
Much less the electric bill after using said air conditioner.
Now, it's night, and I'm still sweating out the water I drank a while ago.
And how's your fine morning?
 
@J.M. Aww
My morning's great. I didn't hear my alarm clock so I woke up better slept and got to work 1h30 late
Wonderful day, sunny, 20 degrees
 
@Rojo I am allowed to be jealous, no? :)
(i.e. you should be thankful that "sunny" there is the "nice" kind, not the "furnace" kind.)
@rm, I wasn't able to get to that remote computer today. I might be able to send you or Szabolcs something tomorrow, tho.
 
@J.M. You are allowed to. But this is actually the best time of year in my opinion, it doesn't last
 
@J.M. Ok, cool
 
@J.M. yes, you are allowed to be jealous. We had snow on Saturday.
 
2:34 PM
January in Buenos Aires, without air conditioning, hard to survive
 
@Rojo eww.
 
@rcollyer Niiice
 
@rcollyer Awesome. :)
 
@Rojo I don't live that far north, but the weather has been a little screwy lately. :P
 
@J.M. and when you need the air conditioning the most, everyone does, so it's not unusual to get a powercut
 
2:35 PM
@Rojo Oh, that happens here too. :) Everyone has the same bright idea, and boom.
 
@rcollyer It's the global freezing
or was it warming?
 
@Rojo :)
 
@Rojo "Global Climate Screw-up" is what I personally use.
 
@J.M. when I lived in Baton Rouge, we were next to one of the more reliable substations in the city. We rarely lost power, but the neighbors across the street did, frequently, as they were on a different part of the grid.
Incidentally: My latitude - 43.15 N.
 
@rcollyer Yeesh, nothing brings jealousy like "the house in front has power?! Fuuu..."
 
2:39 PM
@J.M. very true. But, they were mostly shops, so not that much jealousy.
@J.M. Hope things cool down for you. Got to run.
 
@rcollyer See ya.
 
@rm-rf Hey, did any ideas on how to detect those roundy animals in the photo?
 
@Rojo Hey, I played with it a bit, but I wasn't able to satisfactorily connect pieces that should be together and not clump together those that shouldn't... a pretty tricky problem for a mere enthusiast like me :P
I do have some ideas though, but it's going to be a little work to translate to code
 
@rm-rf Thankx. I'm open to hearing your ideas and do the work myself of course
Even a half manual approach in which you cilck on each being and they get automatically "rounded" would be somewhat helpful. I've got (so far) about 2000 images and rounding them by hand is monkey work
 
@Rojo My main idea was to use component measurements to "group" nearby fragments such that the major axis/minor axis was more or less close to 1. If you take a whole new blob, then it blow up because it's now an ellipse... the opposite if you leave big chunks
 
2:56 PM
a whole neeww bloob, a new faantastic pooint of vieww
Sigh, don't wanna work
Ok, SLAP, enough. I'll give that a shot, thanks
 
3:08 PM
@Rojo I guess that is work related or otherwise, not an image you should be posting publicly?
If not, nikie might have a clever approach for it
 
@rm-rf Work related. I'll check and if it's alright make it into a question to see what nikie or others come up with. I think there'll be no problem
 
@Rojo I think it's a pretty interesting question... IIRC, belisarius had answered a few like this on SO
 
3:24 PM
@Rojo A link, pls
@J.M. Ay! Hace mucho calor en mi casa!
 
@belisarius ¡Ay! ¡Hace mucho calor en mi casa!
There are still 2 or 3 of people in the world that use ¡¿
 
@Rojo Purists!
@Rojo Which "rounded animals"?
 
@belisarius emailed
 
ok lets see
 
Can't upload at stack.imgur blabla, proxy "%$#
 
3:30 PM
@Rojo mmm are you using a corporate email thing?
@Rojo Seems your mail got lost in at some corner while trying to cross a bicisenda
 
@belisarius Si, si, maestro... :)
 
@J.M. doctore, please.
 
@belisarius Sorry, title trouble. ;)
 
@J.M. Oh, no! doctore is Latin. I love Latin. It sounds so uppish
 
3:46 PM
@belisarius Yes, I have to agree...
 
@J.M. Exactly "Or it's just because Latin makes you feel intelligent and badass, with all the scientific terminologies and ... "
 
@halirutan it turned out 3 times faster with POPCNT, in case you were wondering. Incidentally, do you (or anyone) know if there are any alignment guarantees for the array underlying an MTensor? The start of it should be 16-byte-aligned for optimum performance using vector instructions.
 
4:02 PM
@belisarius gmail
@belisarius and I sent it to the email in your profile
 
@Rojo Something went bad, it hasn't arrived
@Rojo Have you used a $.10 stamp?
 
@belisarius Check now
 
@Rojo Here it is. You forgot to press "send" ... don't tell me
:)
 
@belisarius I wouldn't be surprised... he emailed me without an attachment :D
 
@belisarius No, he mistook "save" for "send"... ;)
 
4:04 PM
Oh well, poor guy
 
(is there no other short word that doesn't start with the same letter?)
 
@J.M. store
 
@belisarius That's quite a different letter there...
 
@Rojo I am having some difficulty in understanding what are you calling a being. Could you superimpose a few colored lines marking the desired result?
I mean ... joining the "beings"
 
@belisarius Sure, a min
 
4:14 PM
@Rojo something like
 
...are those algal cells?
 
He broke down his girlfriend's necklace and now he's trying to put it together again
 
@belisarius :S, can't load the image, proxy crap, doesn't like imgur
 
@Rojo Is mine a good approximation?
 
@belisarius I think this is more like what he wants:
with the main difficulty being correctly identifying the different blobs shown by the orange circles and correctly grouping "possibly disjoint pieces" (in a binarized image) in the green circles
 
4:26 PM
This is frustrating. Image not found :P. I emailed you both @rm-rf and @belisarius
 
ha, so it's a combination of what we both showed :D
 
@J.M. Skeletonema costatum
 
@Rojo Yeah received ... but so ... 1) "beings" are unilinear, no branches 2) All the cells in a being have approx the same size
3) beings are almost "straight", no acute angles
 
@belisarius 2) yes but getting the approximate size is part of the objective. In fact, I wouldn't mind if some of them are missed, just as long as they are not missed in a clearly biased way such as leaving out the biggests
 
@Rojo Oh, a diatom! Neat!
 
4:32 PM
3) beings are almost "straight", no acute angles <--- ???
 
@belisarius 1), 3), yeah, you can assume that
I think
 
@Rojo Ok, what is the "final result"?
What do you want to measure?
 
Most importantly, the equivalent radius
 
@Rojo Of what?
 
which is automatic with ComponentMeasurments once you have them all properly componentized
See the image I sent with the beings rounded in red?
Well,t he equivalent radius of those red regions
The radius of circles of same area
 
4:36 PM
How can I force Mathematica to use the trig polynomials i want ?
 
@Rojo One by one, the mean ?
 
@belisarius Right
 
@DominicMichaelis Exactly which "trig polynomials"?
 
@Rojo Right what? One by one or The Mean?
 
I have the command (Integrate[#, x] &@ Sin[x]^2) // D[#, x] &
well i just integrate and differentiate sin^2(x)
 
4:38 PM
@belisarius Better to have the list of all, then the mean is automatic. But, if there's a simpler way to get just the mean I'm also interested
 
@DominicMichaelis What does TrigExpand[] do to the output?
 
@belisarius No
I actually need them all
now that I think about it. Sorry
 
@Rojo I can put all the cells in a bag and call Baez to weight it
 
and i would like that mathematica gives me the result sin^2 (x) @J.M -2 Cos[x] Sin[x]
or wait
 
@belisarius Haha
 
4:39 PM
@J.M. yeah it gives -2Cos[x] Sin[x]
 
4:51 PM
@J.M. TrigExpand[] doesn't change anyhting
 
@DominicMichaelis Then, you are supposed to end up with something that can be transformed into $\sin^2 x$, yes?
 
oh I see my problem forgot some parenthesis
I did square the integral of sin not takingthe integral of sin^2 ...
now a simple simplify does the job
 
5:10 PM
@Rojo yOu here?
 
@belisarius Yea
 
@J.M. thanks :)
 
@Rojo Try this
i= Import ....
id = ImageDeconvolve[i, GaussianMatrix[10],
Method -> {"RichardsonLucy", "Preconditioned" -> True}]; ft =
FillingTransform@
DeleteSmallComponents[Binarize@GradientFilter[i, 20] // ImageAdjust,
30];
ImageMultiply[i, ft]
 
@belisarius The ImageDeconvolve seems like a great idea
 
@Rojo $10
@Rojo We could also fix it with 100 upvotes per month for a year
 
5:25 PM
@belisarius Haha, can I pay you with the 100 rep that MrWizard owes me?
 
@Rojo I don't take dirty rep
@Rojo Anyway, Is that useful?
 
why does union don't sort exact values ?
 
@belisarius It helps, definately. But the fight is far from over until I get the disjoint regions
 
@Rojo Oh, of course. It's just a little step forward
 
@belisarius Oh, if that step is little for you, please give me a hint
 
5:28 PM
@Rojo :D Is that homework?
 
@belisarius It's homework I'm giving you :)
 
@Rojo Oh, my teacher advised me to stick my nose at my own homework
 
@belisarius Your teacher is old
 
@Rojo ok. let me try
 
is it ok to ask another question ?
 
5:31 PM
@belisarius Just a hint of what you would try is helpful enough
@DominicMichaelis Ask. The worst thing that can happen, we ban from the internet
 
Why does Sort[{0, Pi, 1, 5}] gives {0,1,5, Pi}? I guess it is because Pi is not a number but well i think it is still unexpected
 
@DominicMichaelis That's right and that's right
Mathematica has an order for everything, not just numbers
 
I used SortBy[{0,Pi,1,5}, N[#]&] to get what i wanted
 
You can just write N
or Sort@N@{0, Pi, 1, 5}
no, but you lose your Pi there
SortBy[{0, Pi, 1, 5}, N] seems nice
Also, Sort[{0, Pi, 1, 5}, Less]
or #[[Ordering@N@#]] &
 
With Less he uses it's intern ordering which gives the same as onl Sort in version 9.0 at least
 
5:49 PM
@DominicMichaelis It shouldn't, Less does a numerical comparison
Sort[{0, Pi, 1, 5}, Less] should give {0, 1, Pi, 5}, and in my 9.0 does that
but your SortBy should be faster
 
Oh funny. Sortby[{0,Pi,1,5},Less] gives {0,1,5,Pi} and Sort[{0,Pi,1,5},Less] gives {0,1,Pi,5} I used the Sortby
 
6:02 PM
for my problem my sortby is about 10 times faster as the sort with less
 
6:33 PM
@DominicMichaelis You are not supposed to use SortBy like that...
 

« first day (460 days earlier)      last day (4014 days later) »