« first day (39 days earlier)      last day (4451 days later) » 

12:51 AM
@Heike congratulations on 6000 rep. :-)
 
 
2 hours later…
2:34 AM
@David, and any others, for future reference when writing up a question like the confetti question to celebrate a milestone on the site, use the birthday question from TeX - LaTeX as an example to both write it up and smack any over exuberant mods around with.
 
2:59 AM
For the curious (which is mostly me, I admit), as we're approaching 50 days old, I thought it interesting to find out how close our top rep people are to getting the Epic badge (50 times hitting 200). Here's the data:
{
 {"Mr.Wizard", 21},
 {"Szabolcs", 14},
 {"Heike", 9},
 {"Leonid", 20},
 {"J.M", 8}
 }
So, we won't see one in the immediate future, but soon.
 
 
1 hour later…
4:02 AM
@rcollyer I thought MrW had 25 and Szabolcs about 23... are you sure you expanded it to cover the entire time range since beta?
 
4:14 AM
@yoda Corrected. Apparently, I missed a few ...
{
 {"Mr.Wizard", 26},
 {"Szabolcs", 24},
 {"Heike", 9},
 {"Leonid", 20},
 {"J.M", 8}
 }
 
 
2 hours later…
6:23 AM
We have now vaulted over both French and Astronomy in the default SE ordering: stackexchange.com/sites?expand=true#mathematica
 
7:12 AM
@rcollyer At the bottom it says "This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here"
 
 
1 hour later…
8:17 AM
@rcollyer Thanks for the info, but the retarded mods really showed me that it was a mistake of coming here without my usual goofball 4chan attitutde. Maybe send that link to others trying to do something similar to the confetti thread, but I am done with things like these for sure.
BRB, looking for a stick for my behind
 
 
6 hours later…
2:44 PM
For this question:
3
A: How to create word clouds?

SzabolcsA preview Before I show any code, a preview of what is possible: First try I don't have time to finish this, but here's a go at implementing the idea from cormullion's link. First, let's generate the word data (this is pretty arbitrary): punctuation = ",/.<>?;':\"()-_!&" (* bori...

 
Back from skiing.
How do we think about asking references?
I feel the faq is against it
3
Q: Reference request for neural network programming in Mathematica

rarI'm looking for a good reference/book on programming neural networks in mathematica. I've been working through Freeman's "Simulating Neural Networks with Mathematica," but it is from 1994 so is quite dated. Is anyone familiar with a more recent book on the subject? For background, I'm very com...

 
Some other sites have tags
Sometimes it's reasonable to ask for a good pointer instead of a full solution
For example, in the case of a numerical method, or technique
it might be simply too long and complex to condense into an answer
 
OK, so as long as it it is asking for something rather specific it should be ok?
But not "what's the best programming book you know?"
 
Yes, that is my suggestion
but let's see what others say
I should actually be getting back to work
I shoulnd't have wasted to much time on the word cloud
 
just saw it ;-)
the referenced cloud stuff looked nice too
Anything spectacular happened while i was away?
 
2:55 PM
@SjoerdCdeVries Some confetti
 
22
A: How can this confetti code be improved to include shadows and gravity?

whuber How can this code be improved, for example, by including shadows, raytracing or the effects of gravity to make it more realistic? I felt that this question deserved an answer. The one I describe here is to create a set of confetti "agents" that respond in quasi-physical ways to external for...

Nothing really spectacular other than questions and answers :-)
 
@szabolcs I see something about the question being crippled by mods. What happened?
 
I wasn't here when it happened
but it was moved to meta for a while as a not too constructive question
I did not follow the details, I only saw it getting moved to meta, then moved back and closed, then reopened
 
I see in the edits now that Robert C closed and reopened it
 
2:59 PM
It happened during US-daytime.
 
not collyer
I meant cartaino
 
I know.
@SjoerdCdeVries It was an outside intervention, not done by our own moderators.
 
@szabolcs It wasn't really a problem David was facing, so I guess there was some reason calling it off-topic
 
@SjoerdCdeVries also see the first revision... the title had "30 days of beta" and congratulations, etc... meta stuff
also, welcome back :)
 
@yoda Thanks. I'm still alive and kicking, though some other skiers can't say that
 
3:13 PM
very nice work on the word cloud @Szabolcs. I overcomplicated by jumping straight for an r-tree (which is way overkill) and kept running around in circles trying to implement it (and failed)
 
I want to know what his tweaks were ...
It's gorgeous.
 
Tweaks will be revealed only when he hits 50 votes =)
This is also very much related and could be easily adapted to this problem:
51
A: An algorithm to space out overlapping rectangles?

belisariusI was working a bit in this, as I also needed something similar, but I had delayed the algorithm development. You helped me to get some impulse :D I also needed the source code, so here it is. I worked it out in Mathematica, but as I haven't used heavily the functional features, I guess it'll...

although, the intent here is to just move the rectangles enough so they don't overlap. Closeness of packing/min area, etc were not a concern, although could be added as a constraint
 
Definitely an interesting problem, overall.
Close packing seems to be an obsession in my field.
There's this beautiful rendering further down the page ...
 
@rcollyer I reduced the step size to 0.3 for tighter packing (x += 0.3) Ideally it should be even less, but it's very slow. I mapped Rotate[#, RandomReal[{-Pi/2, Pi/2}]]& onto styledwords to rotate them. I reduced the dilation parameter to 1, but I think 2 or 3 is still better. Then before rendering I applied some ColorData indexed function for the colours. I also needed to ExportString/ImportString to/from PDF to force it to antialias small fonts.
 
@Szabolcs The thing I don't understand is how you get it to interlace the words, e.g. placing several words between the letters of Alice?
 
3:25 PM
@rcollyer The algorithm is described i cormullion's link:
1. Place words one by one from largest to smallest
2. try to place each one on a random point first, and if it doesn't fit there, try move it around

The "moving around" part is done on an outward winding archimedean spiral path
We could use another path to search for spaces where it fits, e.g. trace along a square grid
the bottleneck is deciding if it fits of not: I do this using image processing: I check if there's an overlap (with a rather stupid method)
 
@Szabolcs I think I see it, it's your While loop, right? If the pixel count decreases, then there is an overlap.
 
@rcollyer Yes. That's a rather stupid method but it works and it's short to implement.
 
Stupid? Not really. Effective, very. Slow, most likely. And, it automatically gives you the tightest bounding region around each letter.
I could see a combination of an r-tree style test first to see if the words bounding box overlaps, and then moving to this method if they do as it would reduce the overall number of pixel level tests occurring.
 
4:19 PM
0
Q: What types of platforms/types of applications can Mathematica be used for?

Andrew MacFieOf course one can create a Mathematica package and run its commands interactively from the Mathematica front-end. But... Can Mathematica be used to make a console (a.k.a. terminal-based) application? What about an interactive "full console" application like Vim or htop? Can Mathematica be used ...

Anyone have thoughts?
 
acl
this
0
A: What types of platforms/types of applications can Mathematica be used for?

Gustavo BandeiraI'm also curious on the answer to this question, i'll keep watching and i'll make a little research effort.

should probably be a comment. can someone move it?
 
I already flagged it, @Sjoerd will notice it soon, or MrWizard
 
@Szabolcs downvote and then you can vote to delete
 
@yoda I thought it needs 3 votes.
Yep, it does.
 
I don't think it should be converted to a comment at all, but that's up to the moderators
I'm surprised how it attracted a 1 rep new user within 5 mins of the question... usually this happens only when it hits the SE hot question list or at least, after a reasonable time
 
4:36 PM
I deleted it without conversion to a comment.
 
\o/
go sleep!
 
No, I only got up two and half hours ago. :-P
 
:)
 
@yoda why do spend so much time here, yet not participate on the main site?
 
uhh... I do :)
Chat rooms are more fun though :P
 
4:44 PM
Welcome @GustavoBandeira
 
@MrWizard he can't talk w/ 1 rep. You can add him to the explicit talk list
 
<----- feeling rather foolish now
@GustavoBandeira please try typing something
@yoda I am curious, why didn't you link your profiles?
 
Yay
I'm here
 
Okay, properly this time, Welcome. :-)
 
Thank you. =)
I've been searching for a cool mathematica community for some time. Mathematica cookbook suggested me this one.
 
4:49 PM
I think you will be pleased with what you find. The format of the site is atypical however. The message you posted was deleted (by me) because it was not an answer, which is needed to be to be posted there.
Until you get a feel for the site I suggest you make liberal use of this chat room. There is almost someone here willing to point you in the right direction.
 
Have anyone tried to use mathematica for webpage manipulation?
 
In what sense?
 
@Gustavo what kind of manipulation?
Hello @rcollyer
 
@MrWizard Hola!
This question just popped up here, but there is an identical question over on SO. Since the original is a dupe, it probably should be closed. However, I don't mind the new question here. Although, it needs some TLC.
 
I have asked that the old one be migrated here.
 
4:55 PM
Well, i was using a website to get some values from the stocks market. I wanted to input some info through mathematica.
 
@GustavoBandeira Ah, so your scraping the data from the website. A number of people have done that here.
@MrWizard works for me. I just fixed up the new one.
 
@MrWizard There's a duplicate for you to merge
 
@rcollyer Yup. This is the website: fundamentus.com.br/buscaavancada.php
 
@MrW Oh, you already did it
 
@rcollyer I wanted to input some data on this page and then execute the search and get the results through mathematica.
 
4:58 PM
@GustavoBandeira That's likely possible, but I have not done it before. Sounds like an interesting question, though.
 
@Gustavo yes, please post this as a new question on the site
 
@MrWizard retagged!
 
@MrWizard Yup
 
@GustavoBandeira Portugese?
 
@Gustavo That page uses POST requests and Mathematica does not officially support them
But unofficially ;-)
@GustavoBandeira see here: stackoverflow.com/a/8345690/695132
 
5:01 PM
@rcollyer Sim.
@Szabolcs Oh, thanks.
 
@GustavoBandeira I know a little (very little) Spanish, so it looked familiar, and not.
 
@Gustavo It does not work for all kinds of POST requests and since I know next to nothing about HTTP, I can't give any explanations. If it won't work for this one, you may need to resort to using J/Link
 
@GustavoBandeira Either way, if you post it as a question, then the answers should be very instructive.
 
@rcollyer Yup, It is very similar, i've got some spanish classes too.
 
Leonid just posted a dissertation that was automatically flagged as "Post is excessively long."
 
5:04 PM
@Szabolcs Thanks for the advice.
 
I think I like Portuguese better than Spanish (at least European Portuguese --- and I know I'm a minority with that preference ;)
 
@GustavoBandeira Also, have you tried using FinancialData for your info? Or does that only support US sources?
 
@rcollyer Ok, i'll post it now, i'm just busy trying to hold my gf from jealousy. Haha
 
:)
 
@rcollyer Yup, i remember that there weren't realiable sources, but i'll try it now.
 
5:05 PM
Okay.
@MrWizard Wow! It looks like he's been working on that all morning. The troublemaker.
 
@Szabolcs Portuguese is better. We don't eat tacos!
 
What do you do with them, then?
 
@rcollyer We don't have tacos, only on spanic restaurants
 
:)
Anyway. Have to run. See you later.
 
Cya
@MrWizard You threw my question on the ground!
 
5:31 PM
I guess i don't need to ask what i wanted
I've found a similar post
5
Q: Web Browsing Automation with Mathematica

FrancescoI want to build a bot to automate web browsing, this mean something like: filling forms press "submit" buttons find certain text inside pages and so on... How can I do this with Mathematica? The Import function just make you download a single web page but it doesn't support cookies and simil...

 
@GustavoBandeira That question is quite broad. If you ask a specific one (e.g. you link to a website), you might get an answer. But do try Import with the POST method first.
 
 
2 hours later…
7:37 PM
I just got the tenth upvotes on this question. David needs one more to get the gold badge :-)
10
A: Figuring when the minute and hour hand coincide on a clock

VerbeiaI don't think it's necessary to use all the apparatus of Solve or Reduce here. When you think about it, at one o'clock, the hour hand is on the 1, which corresponds to five minutes. So the hands meet a little after five past one. The solution is therefore that $m = 60 (\frac{h}{11})$. Someone e...

 
7:57 PM
@Verbeia Oh... i need 15 reputation to vote. =/
@Verbeia But i tried to vote.
 
8:55 PM
@GustavoBandeira That is a protection against vote fraud. You will get reputation after you ask your first question and it gets upvoted.
 
@Verbeia :-)
Got 20 points, you've got 10, where's my badge? :D
 
@David It can take a while. I had to wait 2 hours for my mortar board.
 
@David I just realised - the definition of the badge is "Highest scoring answer that outscored an accepted answer with score of more than 10 by more than 2x " so I need one more vote and you need two. But surely we can celebrate first gold badge on the site today :)
 
Oh, the good old "< vs <= for integers" problem.
 
 
9:08 PM
@Verbeia Actually, I might need 3 more votes. It says "more than 2x".
@Heike Those clouds are really impressive.
 
@Heike Heike, your post is just super-genius and so is Szabolcs'. Never been so glad to get my first Disciplined badge.
 
Thanks
 
@Szabolcs But voting his question only to give him the badge is bad? I just wanted to help, and also, he had 10 votes, 1 more wouldn't be a problem.
 
You can revert the vote immediately after.
Also, are we really having a moral discussion about upvoting? ;-)
 
@Verbeia It took me a while to get it working though
 
9:11 PM
@GustavoBandeira people should only upvote things they think are useful, informative, interesting. @David 's post got lots of upvotes because it showed many useful techniques while still being hilarious. My answer is the accepted one because it most concisely answers the question.
 
@GustavoBandeira I don't know what you are referring to. What question was thrown on the ground? I am a pro tempore moderator on this site but I am not the only one. Also, major users can vote to close or reopen questions without or in spite of me.
 
The community at this site has a reasonable tolerance for showing off Mathematica's capabilities with "fun" problems. Often you can learn a lot from them.
@Heike I have an urge to put our major report through your algorithm. But first I have to finish editing it! so ta-ta for now!
 
If there are any jazz lovers around:
(Sorry, I couldn't resist)
@Heike Ah, you have a solution too! Let me see, it looks beautiful!
3
A: How to create word clouds?

HeikeHere's what I came up with How I did it First we need a list of words. Here, I've taken the original list ordered by size. tally = Tally@ Cases[StringSplit[ExampleData[{"Text", "AliceInWonderland"}], Except@LetterCharacter], _?(StringLength@# > 4 \[And] # =!= "Alice" &a...

 
@Szabolcs Thanks. That first image of yours looks pretty impressive. How did you generate that?
 
@Heike With the same program that I posted. But first I Rotateed the Styled words, and I decreased the step size in the x += ... line to about 0.3 (don't remember the value, but it has to be different from 0.3 for the points to fill the plane uniformly. Then in the very end I applied colours to the words.
Your code won't run here, trying to figure out if I did somethign wrong or a definition is missing?
 
9:21 PM
I'll have a look as well.
 
BTW something is wrong with ImageCrop, I get things like this:
I noticed this when I was making my solution too
 
Yes, I just noticed that as well.
 
@Heike You are missing parens from around the default value of fun
 
@Szabolcs Yes, I just fixed it
 
@MrWizard Nah, it was just a joke, relax. =)
 
9:33 PM
I think I understand your code now. It is very nice and fast!
Mine, in contrast, is very close. I am thinking of speeding it up with ParallelTry. It would be the first instance I can make ParallelTry useful.
 
@Szabolcs Thanks. I still need to figure out how to deal with rotated text.
 
Yes, because the size of the second image passed to iterate is taken as its bounding box
 
@Szabolcs Yes, that's right
It isn't completely optimal but I figured that gaps left by larger words would be filled up by smaller words anyway
I guess I could rotate the main picture during every iteration
 
If only MaxFilter could take a generic matrix (shape) instead of a box as second argument ...
@Heike I think ImageCorrelate could be used to do what MaxFilter does with the right distance function ... let me see
 
@Szabolcs I was already looking at the help page. We seem to be thinking in the same way today :-)
This should do it:
ImageCorrelate[Binarize[ColorNegate[padded1], 0.01], w, Max]
 
9:49 PM
Oh, I was thinking Max@Times[##]&, but I'm really sleepy now :)
Actually I don't see how Max would do it ... are you sure? Max@Times[##]& should work though ...
 
it seems to work
(still with broken cropped words though)
 
Excellent! I'm really happy :-)
I used Rotate[ ... , RandomReal[{-Pi/2,Pi/2}]] to keep them readable.
 
wait, that was the wrong function
 
How come it worked then?
But cropping is not absolutely necessary now, is it?
OK, I really must sleep now, tomorrow is Monday :-) I am looking forward to the solution tomorrow!
(or after shower :)
 
Have a nice shower/good night
 
10:14 PM
@Heike Why don't you update your solution?
 
I will
I just got the rotation working
 
@Heike Can you make it generate vector art so it can be exported to PDF?
 
@Szabolcs I don't know about that. I relies heavily on image functions to correctly place the words
 
@Heike But you can record the positions, and place vector art based on that, like I did
 
@Szabolcs Yes, that's true. I'll think about it.
 
10:20 PM
You may need to use Offset coordinates
 
@Szabolcs My first attempt was by using offset coordinates, but it didn't really work for the iteration.
But it should work for this case since I would know exactly how big the image is going to be.
 
11:20 PM
@Szabolcs I've added some code to produce a vector plot.
 

« first day (39 days earlier)      last day (4451 days later) »