« first day (168 days earlier)      last day (4333 days later) » 

8:16 AM
As of today I have 432 answers on each site: SO mma
 
8:45 AM
It is possible to apply a TransformationFunction (from FindGeometricTransform, btw) to an image ? How ?
 
@WilliamBriand You've seen ImageTransformation[] already?
 
Or ImageForwardTransformation if you want to go the other way
You could also try ImagePerspectiveTransformation
 
...though ImagePerspectiveTransformation[] takes the matrix+vector for transformation directly, not a TransformationFunction[].
 
9:01 AM
@JM There's an example on the help page for ImagePerspectiveTransformation where they use something like t = FindGeometricTransform[...]; ImagePerspectiveTransformation[img, t[[2]], ...]
Apparently a TransformationFunction contains the transformation matrix.
 
@Heike It does, but I had thought you'd have to manually extract the matrix+vector for use with ImagePerspectiveTransformation[]. Apparently not. :o
...yes indeed; I just tried it out. The docs really could be a bit more forthcoming with alternative syntax...
 
@JM They do extract it manually by taking the second part but it's buried less deep than I would have thought.
@JM wouldn't be the first time.
 
@Heike Oh, no. The structure of the output of FindGeometricTransform[] is {error, TransformationFunction[(* stuff *)]}, so it makes sense to just use the second component.
The error is, of course, for diagnostic purposes.
 
I can't get ImageTransformation/ImagePerspective to work, or perhaps FindGeometricTransform; it returns a full black image of the same size.
 
@JM Oh, Ok, I hadn't looked that far
 
9:06 AM
(I'm in fact using the "Get coordinate" menu on the original image on point whose coordinate I know, FindGeometricTransform, and then trying to apply it; With MMA8. No error message). However I can use other transform, like the documentation's example with "Sqrt"
 
@WilliamBriand You're using the last component of FindGeometricTransform[]'s output, of course?
 
Yeah, FindGeometric ... [[2]]
 
@WilliamBriand Could you post the code you're using?
 
Odd. Maybe something strange in your matrix, vector, or both. How big was the error (first component) returned by FindGeometricTransform[]?
@WilliamBriand If it's a bit long for posting into chat, consider using Pastebin.
 
Error is 10^-4; i'll paste it there.
 
9:14 AM
@WilliamBriand Somewhat large, that.
 
Oops, forgot the 1. its 10^-14
 
@WilliamBriand Ah, much better. :D
 
@WilliamBriand you could try setting PlotRange -> All
 
@WilliamBriand Those entries are huge. Where'd those points come from?
 
9:29 AM
@WilliamBriand In ImageTransformation. Although make sure you save your stuff first. I just managed to crash mathematica while playing around with ImageTransformation
 
Also, note how small the matrix entries of trans are; it's almost as if you're just translating your image...
 
@JM That's because points with coordinates of the order ~1000 are mapped to 1.
 
The points come from the half-square on the left of this image : i.imgur.com/eCikK.jpg
I could try with a smaller image.
 
@Heike hence "those entries are huge". :D
 
@JM well, size is relative anyway (or so I'm told).
 
9:35 AM
Right. :)
 
0
Q: Alignment bug with $ symbol in code block

Mr.WizardThere is a problem on the main site with alignment in code blocks that include the dollar sign. Without $: With $:

 
At least, there's a plausibility argument for why you're seeing just black: you've shifted the image a bit too far from the original frame.
 
@WilliamBriand Nice fingering pattern by the way.
 
As a test, try changing trans: trans = AffineTransform[Take[First[trans], 2, 2]]. See what happens if you use it in ImageTransformation[].
 
9:55 AM
@Heike : Thanks. "PlotRange -> All" also kills the kernel on my box. @J. M. : After using your snippet, ImageTransform returns something that could be the down-left end of the image (from the colors). The image goes out of frame. If this is the problem, I fear I don't understand the concept of the transforms.
 
Well, I better leave for now. See y'all later.
 
Thanks for the help.
 
 
7 hours later…
4:59 PM
Hi @MrWizard
 
Hello @Szabolcs
 
@MrWizard Hi, I'm here. Just got a kefir from the kitchen.
I'll need to create a user for you before you can publish blog posts.
 
ah, that. :-) I know I don't have time to complete a blog article right now so I didn't bother to set that up. Is there an urgency to this? (Am I annoying you by not dealing with it?)
 
I'll need a username and an email address. If don't want to use your current address, just create any throwaway one. The email will only be visible to other people with a blog account (or possible only blog admins, this is not clear to me).
But you will need it to reset your password, so don't just throw it away ;-) (This happened yesterday---the SE blog network was hacked)
 
Does the Mathematica blog site exist yet? Sorry, I've really not been following this.
 
5:04 PM
@MrWizard No urgency, but if you have an account, you can start writing and save the draft whenever you want :-) So just mail me when you feel like!
 
Okay, as long as I'm not annoying you it may be a few weeks.
 
@MrWizard Yes, it does. We could publish a post this minute if we wanted to, but people want to wait until graduation. There is actually a Hello World post mostly ready, for that occasion (written by Verbeia)
OK then!
 
What is the URL?
 
And sorry that I wasn't able to chat with you about the code injection functions a few months back. I was really busy at that time, with finishing my degree... I'm much freer these days
 
@Szabolcs Thanks. Like I said I've not been following this. Time to start I guess. :^)
 
5:15 PM
@MrWizard BTW if you'd like to contribute to any projects on GitHub (e.g. the image uploader ;-) ), there's a very easy GitHub interface now for Windows: windows.github.com
 
@Szabolcs I'll look at that, but probably not soon.
 
5:37 PM
Hello people
 
Hi, I'm new here and lost. How do you add math symbols when asking a question?
 
@Shmoopy Not sure, never added a math symbol but several posts use latex. Someone will surely help you in a second
 
@Shmoopy Use LaTeX, use detexify.kirelabs.org/classify.html to find the symbol you want
 
I see. Thanks
 
 
1 hour later…
7:01 PM
Is there auto-indenting feature that can be used in code cells, or do I need to type the correct amount of spaces at the start of each line? I'm thinking of a feature that'll auto indent the next the the same amount the current line was (after pressing enter)
 
@Szabolcs, the one from input cells doesn't serve your purposes?
 
@Rojo I'm trying to edit a package, so I only have code cells.
 
7:17 PM
@Szabolcs, I mean the behaviour
Are you satisfied by setting the style options that make it indent like Input
?
 
@Rojo But Input cells don't have real indentation spaces. I need real indenation spaces this time.
I'm trying to edit a package in the front end.
 
That's what I thought
 
It shows the package contents as a set of code cells.
Real spaces were used to indent previously.
 
@Szabolcs, if only tabs were enough
 
Maybe I'll do that
I don't like 4-sized tabs though
they're too big
 
7:31 PM
@Szabolcs, good luck with that. I guess you can always do a brute force replacement of tabs by 2-3 spaces and in the meatime work with smaller TabSpacings
Hello @Heike
 
Hi @Rojo
and @Szabolcs
 
Was it Nemo again in the end?
 
I tried to add a history feature to the image uploader. It's still rough, so I'd appreciate some feedback before I update the meta post. meta.mathematica.stackexchange.com/questions/5/…
 
@Rojo No, I went for Shrek
 
I'm going to log off now. If you find any problems with it, let me know. I'll try to make the UI nicer later.
Is anyone here using that palette at all? @Rojo? If no, why not? (Perhaps I can improve it to suit your needs.)
 
7:37 PM
@Szabolcs I use the image uploader all the time.
 
I know I owe you Mac users a better rasterizer :-)
 
@Szabolcs I think it's fine as it is.
But maybe I'm less picky than some.
 
I use it @Szabolcs
It's a great contribution
So far I haven't had any big needs of a feature nor came into bugs
 
Maybe I should turn that ragged edge answer of mine into a palette.
 
Yeahhh
 
7:42 PM
@Heike I was planning on adding that too, eventually ;-)
 
@Szabolcs Be my guest.
 
acl
@Szabolcs doesn't this do what you want?
7
A: Preserving indentation when creating a new line (when editing in a package)

aclI have a palette including this button: CreatePalette[{ Button[ "m-editor", Module[{modifyCodeStyle},(*by David Reiss*) modifyCodeStyle[nb_NotebookObject, Notebook] := Module[{styledefs, editable}, editable = Editable /. Options[nb, Editable]; SetOptions[nb, E...

 
Together with an image cropper. There is already an image cropping tool (just right click an image), but it's VERY slow, and I made a faster one once.
 
@Szabolcs That's what I was thinking of.
 
@acl Sounds like it may be exactly what I want!
 
7:45 PM
Image cropping should be a very fast process. It's just a matter of selecting a submatrix of a matrix.
BTW, Is there any news yet of the new design?
 
I haven't heard anything. It should come as a meta post.
@acl Does it reindent the existing lines too? It seems to have done that.
 
@Szabolcs Ok, I'll just keep checking meta then.
 
acl
@Szabolcs no.
 
Hi
 
It sets AutoIndent to True instead of Automatic. True repeats the nubmer of \ts on the previous line, whiel aAutomatic does that [IndentingNewLine] that is magically interpreted by the FE
With TabSpacings you can reduce the space from 4 to whatever
3
 
7:48 PM
May I ask a very quick question in this room?
 
@Andrew Go ahead
 
I have a text file called test.txt:
 
acl
@Rojo right. I never understood how the frontend works so gave up tweaking and left this as it is
 
1.1 1.2 1.3
2.1 2.2 2.3
3.1 3.2 3.3
Above are the contents of my text file test.txt.
 
Then you can always replace them by spaces by some NotebookPut[NotebookGet[notebook]/.s_String/.StringReplace[s, "\t":>StringJoin....
@Andrew, Import["test.txt", "Table"]
 
7:50 PM
I want to read the text file record by record (where the record separator is "\n") until EndOfFile is reached. (My text file ends with a new line.)
I would like to use stream instead of Import.
So I tried the following code:
 
@Andrew Read then, or ReadList for several lines.
 
str = OpenRead["test.txt"]

record = ""; i = 1;
While[record = Read[str, Record]; record != EndOfFile,
Print[i];
i++;
];

Close[str]
But when I run it, nothing is printed. So I have a bug somewhere. Can you please help me?
I don't think I want to read the entire file at once using 'ReadList', because my actual text file is very long and is too large to be reasonably imported using Import.
 
@Andrew
You are comparing
a string of records
with a symbol EndOfFiles
Save != for math
and in these cases use =!=
 
OK, Thank you. I will try this.
 
Huh?
Why am I getting 4 upvotes today for a question of Jan 19?
on an answer from Jan 26
 
7:57 PM
Someone has linked to it, probably.
 
How to know...
 
@Andrew to explain a bit more, x != y does not evaluate unless x and y are both numbers.
 
@Szabolcs OK. I have been using MMA for 2.5 years and I never heard of =!=. I learn something new every day, thanks to you all!
 
@Andrew There's also ===, SameQ. x === y evaluates to False immediately even if x and y don't have values, as they are different symbols.
 
@Rojo I tried it and it works great. Thanks.
 
8:00 PM
No problem
 
@Szabolcs OK. Thanks. I have used SameQ; I guess I just never used ===.
@Rojo Is there any way I can upvote your chatroom help?
 
@Andrew, you can go search for an answer of mine of January 26 and upvote it
Nah, kidding
 
@Andrew Nope. Upvote is only for questions/answers :-) There's starring here but that only puts the message in the sidebar on the right.
BTW both bugs and feature requests for the image uploader go here: github.com/szhorvat/Mathematica.SE-utilities/issues (I'm trying to keep notes of things to do there too).
 
@Rojo @Szabolcs Well, thank you both just the same, even though there won't be points involved this time. :-)
 
We just do it for the children
 
8:15 PM
In case any of you re-downloaded the image uploader, I just fixed a show-stopper bug in the History part ... I think I'll clean it up significantly tomorrow
 
9:09 PM
@szabolcs All of the sudden I lost the ability to run the MS C compiler from mma. And I don't get the reinstall to work. Uninstalled everything. Installed VC 2010 and the SDK. SDK install breaks off. Uninstalled VC2010. Installed SDK only. Breaks off again. Forgot how I installed it at the time. Any tips?
 
 
2 hours later…
11:18 PM
@IstvánZachar alo
 
Hi there
This question Recover intermediate result after interrupt has two inappropriate tags, but I could not come up with a good one covering the issue.
Any ideas? Maybe is too long, though it is a recurrent theme.
 
@Istvan, I got a few minutes now to see if I can helpon your question on mouse position
but I'm not sure I know what you want exactly
 
@Rojo Oooh that would be marvellous!
 
0
Q: Tag wiki excerpts show truncated

István ZacharTag wiki excerpts show up as truncated from the front for example in the Tags list view (where one can search for specific tag names): Though all of these tags have correct excerpt texts, starting with capitalized words, e.g. contexts: Contexts are used in Mathematica to organize defined ...

 
In a nutshell: I want a button that if pressed and dragged, applies some function to the dynamic value of MousePosition@"ScaledScreen" (that returns the mouse position from anywhere on the screen).
Naturally I want the output value (f@MousePosition@"ScaledScreen") be dynamic as well.
 
11:24 PM
@Istvan, With dragged you mean, you do the first click inside the button, and it updates as long as you hold the click, moving the mouse anywhere on the screen
and the button stays still
 
yes, exactly
 
@Rojo Just wondering .. Why do you think you may help, if you do not understand the question?
JUA
 
@belisarius, it's all about having high self esteem
 
hi all
 
or, I said see if I can help
Hi @belisarius
 
11:26 PM
@Rojo self esteem is a good thing. It allows you to brag :D
 
Hi @beli
 
@IstvánZachar HI!
 
How do these @stuff work?
Hi @Istvá
Does that work?
 
nope
 
It did get colored pink on my end
 
11:28 PM
@Rojo wait uploading an image
 
What does JUA stand for? Journal of Underwater Acoustics?
 
@Rojo see the image above
@IstvánZachar It's like Ha! ... but in Spanish
 
@belisarius blabla
Oh
@IstvánZachar, posting an answer
Wow, another answer posted
It was alone for a day
 
What software would you recommend for making an animated screen capture to upload some gif to SE?
 
Any physicist around?
 
11:34 PM
To smalltalk about the new boson?
 
non non non
about this q
4
Q: Can't compute definite integral

highBandWidthConsider a scalar field (in polar co-ordinates), $f(r) = l-r$. Now I want to evaluate the field integral over a circular region of radius $b$, centered at a distance of $x$ from the origin. According the law of cosines, The arc of radius $r$ from the origin subtends an angle of $\theta = 2 \arcc...

the higgs boson is like the pope
sacred and vile
 
@belisarius This can be played in many ways.
The Higgs boson is like a vicious fart: long awaited but really hard to catch.
 
@IstvánZachar So the LHC is like the intestine of physics
 
@Rojo Bullseye. That is what I was looking for. Such a pity that I could not figure it out on my own, though I got that far that I wanted to use DynamicWrapper...
 
@IstvánZachar I think the guy in the above question is trying to evaluate a line integral, and nobody understood him
 
11:46 PM
@belisarius I guess this is the wrong use of the chat-link-arrow. I am pretty weak in line integrals :)
 
@IstvánZachar Ok. Sorry for remembering that to you :D
 
@IstvánZachar Glad it was what you were looking for. I guess DynamicWrapper could have been Dynamic but this seems more natural
 
@Rojo I think the guy in the above question is trying to evaluate a line integral, and nobody understood him
again
last try
 
@Rojo It does not work with a simple Dynamic instead DynamicWrapper. Anyway, I will do a bit of experimentation tomorrow, before any acceptance (to leave room for others to join).
 
@belisarius I get put off by such long questions with big chunks of code that I have to decipher before knowing what he wants
@IstvánZachar I meant instead of DynamicWrapper[Graphics, If[pressed]], Dynamic[If[pressed]; Graphics]
 
11:51 PM
@Rojo you are not a good samaritan
 
Anywayyy
@belisarius I am, but fortunately, there are enough samaritees to choose from
 
@Rojo I would star your comment, but I am not good enough at samaritanism
 
Well, this antisamaritan has decided to remove himself as even these soulless creatures need some sleep sometimes. Good night
 
Night
 
@IstvánZachar Nights!
@Rojo another incomprehensible one (for me)
 

« first day (168 days earlier)      last day (4333 days later) »