« first day (1331 days earlier)      last day (3451 days later) » 

02:09
Ran into a very ridiculous site: mathematica.stockoverflows.com
Is it fraud?
@Silvia Yes, looks like a setup site to use for phishing attacks in emails.
Why doesn't StringJoin work in the following example?
ReplaceAll[
{"0", "1", "2"}, {
x_String :> (x :> StringJoin[{"$", x, "$"}])
}
]
@Silvia It's ridiculous the copy cat sites that come out. I could understand if stackoverflow was shutting down and the wanted to preserve the site but instead I get junk like that on Google.
@Pickett Have you considered exporting the Mathematica created docs for the individual packages so they are browsable through HTML?
I tried both Unevaluated and Evaluated arrows
02:34
@William You are replacing each string with a rule and then not using that rule. Don't you mean to replace each string with a new string?
@MichaelHale That is correct.
@Silvia Stackoverflow should really consider blocking image download from non stackoverflow or stackexchange sites. The copy cat site doesn't even bother changing the links to it's own site.
@William Images on SE are hosted on a 3rd party site imgur.com .
Then contact imgur because it seems like it is supposed to be unique. stack.imgur.com
I guess there are ways to report those kind of copycat to SE. Will try after work.
02:51
@William @Silvia Usually the copycat sites are just interested in getting you to provide your login or financial information. They don't care about changing links etc to custom content.
They hope that you won't see the URL is slightly different.
It's basic stuff php(blaah!) even supports it.
@MichaelHale They are so close, I didn't notice at first minutes when looking at my colleague's screen... OTL
~Picket (not important) if you see it. That is a great url.
They should really have a site at stockoverflows.com mathematica.stockoverflows.com means absolutely nothing to me.
@MichaelHale
or maybe stockexchange.com or something.
@William Because WRI is not a company with public stocks? :)
2
@Silvia no because it is mathematica.stackexchange.com
I think you are joking hahaha
02:56
@William You got it ;)
utf-8 urls are stupid to me. utf-8 urls are more recognizable to me then urls like xn--gba.com
Or something like xn--3ds443g.com
@MichaelHale do you know how to fix my question?
ReplaceAll[
{"0", "1", "2"}, {
x_String :> (x :> StringJoin[{"$", x, "$"}])
}
]
@William What is the result you expect?
{"$0$"...}
ReplaceAll[{"0", "1", "2"}, {x_String :> StringJoin[{"$", x, "$"}]}]
You were replacing x_String to an expression as RuleDelay[x,StringJoin[...]]
Give me a minute I don't see how they are different.
03:03
patn :> res means replace patn with res.
You don't want TWO :>
I apologize I would like two. But I can just do two replaces I guess.
{"0":>"$0$"...}
Thanks
@William Please compare my code with yours.
There are two :> in your code.
The latter one is unnecessary
Yes but I'm trying to create a replacement list
this works though
@William If you're creating a list of Rules, then you should not expect a result as {"$0$",...}, should you?
@William If you want the output to be a list of rules, but with the StringJoin evaluated, then use a "->" instead of ":>" for the second rule, or use ":>Evaluate@".
03:07
Yes something like
{"0":>"$0$"...}
Then try ReplaceAll[
{"0", "1", "2"}, {
x_String :> (x -> StringJoin[{"$", x, "$"}])
}
]
If you do not have string patterns, you don't have to use :>
That works thank you.
Do you want to post a question now? ;)
@William I think this could be a question already on site.
probably just replaceall unevaluated didn't cut it
@William :> has a HoldRest attribute, which prevents you from evaluate StringJoin[{"$", x, "$"}]. Replace it with -> or explicit use an Evaluate will both change the behavior
03:14
ok thanks
No problem.
Anyway I should go back to work now. See you guys :)
 
2 hours later…
05:20
@Silvia I recently posted on general Meta about a similar site:
8
Q: What the @#$% is threadfrage.com?

Sjoerd C. de VriesWhile Googling for an earlier answer of mine on mathematica.stackexchange.com I got a hit pointing to http://mathematica.threadfrage.com/ which offers what looks like a complete mirror of the mathematica.se. The same site seems to host many or all of the other stackexchange sites. My question is...

223
Q: A site (or scraper) is copying content from Stack Exchange. What do I do?

PopsSince day one of Stack Overflow, all content posted on Stack Exchange sites by their users (i.e. you wonderful people) has been provided to the whole universe under the CC-BY-SA license. For my fellow non-lawyers, that license basically means: Anyone can use any Stack Exchange posts at any time...

05:57
@SjoerdC.deVries Thanks! Reported.
 
1 hour later…
07:04
@halirutan a poor man's version with an excellent answer from Simon mathematica.stackexchange.com/questions/80486/…
 
1 hour later…
08:25
@William Re. "Mathematica created docs" I am not aware of what this is.
 
2 hours later…
10:17
Kudos @Pickett. Great resource.
@bobthechemist Thank you, I hope it will be.
 
4 hours later…
14:20
@Pickett I'm a bit disappointed that no one has posted anything since yesterday. That community ad is really needed! Many people who frequent the site never look at chat or meta. You might also try the Mathematica Users group on LinkedIn to reach a different crowd.
@halirutan You have several projects that you might want to add
@Szabolcs Which one?
@Szabolcs The most important ones were already added by someone else I guess.
15:12
@Szabolcs could I trouble you a quick Mma person moving to R question?
In Mma I'm used to go such things as `vec=1/255*{2,2,2};RGBColor[Sequence@@vec]` ... what's the equivalent in R to convert a vector into a sequence of arguments?
Of course, I'd be ecstatic for a reply from anyone :)
16:07
@Szabolcs Done.
 
1 hour later…
17:25
@Szabolcs There is an ad now, but I don't expect it to work miracles. I will look for ways to improve the site's value.
 
4 hours later…
21:40
Does anyone know what the following code doesn't work
Quiet[
Cases[Symbol[FromCharacterCode[#]] & /@ Range[0, 16^4 - 1],
Symbol[z__] -> ((IntegerString[ToCharacterCode[z], 16, 4])[[1]] ->
z)]
]
@Pickett I'm basically talking about something like this using either the Workbench or ApplicationMaker. I meant to set something up a couple months ago but ran out of time. I was just going to use github for hosting, what are you using I can't really tell.
22:03
This works nevermind
Quiet[
Cases[Symbol[FromCharacterCode[#]] & /@ Range[0, 16^4 - 1],
Symbol[z__] -> (
StringJoin@
Flatten@Join[{"$", IntegerString[ToCharacterCode[z], 16, 4],
"$"}]
-> z)]
]
@William What are you trying to do?
Most of the symbols you try to create are not allowed to be symbols!
(That would jump in the eye without the Quiet)
give me a second. Yeah without Quiet it doesn't work at all. It is hideous honestly.
@William So what is it you try to do?
This essentially. I just found a small bug in Mathematica that is all.
@halirutan
@William Then you are doing it wrong! A Symbol is an identifier, a name for a variable or function.
This is why Symbol["["] for instance gives you an error message.
22:16
@halirutan I'm using $ to replace all Symbols so it supports all unicode characters.
posted on September 10, 2015 by Ed Pegg Jr

The Glencoe Algebra II study materials (p. 10) make an amazing claim (Reddit). This statement is in a math textbook, but it is horrifyingly wrong. A statement like “the letters A–Z cannot be matched up with the numbers 1–26″ would be similarly wrong. These two sets of the same size (here, 26) can be matched [...]

It is nasty but it appears to work
@William Yeah.. right..
It doesn't
What doesn't?
@William Basically, you can use everything as symbol that Mathematica considers to be a letter
22:20
I'm doing something like $multiply$[test] to escape symbols like *
@William I guess I'm talking about a different kind of "symbol". A symbol in Mathematica are really only the identifiers
* is an operator
So when you talk about symbols, you mean just all possible characters, right?
Yes all 259
@William OK, let's say you know that \:0029 translates to a * character. What will you do with this information?
@halirutan Well I haven't decided what today with all the characters, but all the keyboard characters also have the shorthand like "$multiply$" :> "*". You example would result in "$0029$" :> "*". I was going to use backticks but decided against it because the $ is just easier to find and replace for the different symbols.
scratch that the backticks are actually just as easy. That is probably better because then you can double click on the name.
22:35
@William So you have a long list of unicodeNumber :> unicodeChar and you don't know what to do with it, but you know that you need to put $ around the number?
I mean it works now so no problem here mathematica.stackexchange.com/questions/94349/…
I just found a small M bug.
Or maybe it's atomic expressions or something like that I'm not really sure.
@halirutan
@William I guess I understand. You want to write something like
my\*var = 3;
@halirutan hmm not a bad idea although it won't be how it is represented internally.
a little confusing
you could do
@William In your syntax this translates to
my`multiplyvar=3
22:41
my$multiply$var = 3;
yes it works it is just inconsistent
If you type
my\*var
you won't get a return value
also arrays it would just be a little wierd
@William You should drop this idea. It won't work correctly in all situations.
@halirutan I mean it already kinda does. When wouldn't it work? hahahah I like your reaction.
dollar sign is $dollar$
Let's say I define a variable $multiply$divide$
@halirutan aahah! that would have to be an error don't do that!
nevermind
22:45
@William I know, but it is a completely legal Mathematica identifier, so someone at some point will do something like this and break your system.
It's better then not supporting them at all.
Then I'll just drop the second dollar sign.
so it works like an escape
\n \" \r \t `dollar `n `r
then have been worse ideas
someone could do something like "[" and then find out it is separate character to "[". That doesn't mean you should drop support for one of them.
@William The key problem is, that none of this would be a valid identifier when you unquote the characters like \n.
@halirutan Read the answer I got around the issue. Apologizes if you already did.
@William Only as long as you keep the for instance * in your quoted form.
@halirutan Technically mathematica supports any character as a Symbol value internally it just doesn't display it properly, but yes I believe I see you point.
Yes you have to use the conversion function I posted, it isn't perfect.
22:55
@William Exactly there is your mistake. This is not correct. A Symbol is very strictly defined. It has to start with a letter or a $ sign and can then contain any combination of letters, $ or numbers.
That's it. More is not allowed. You can do something like this
my$righPar$var1 + my$leftPar$var2
@halirutan it works. Please leave comments in the Q I posted I don't believe we are talking about the same thing. Technically Symbol accepts a String so as long as it is left in Held form it is okay, but I'm digressing. That isn't what my posted Q does.
but you will never be able to translate it into the unquoted form without doing serious harm
my (var1 + my) var2
Run this
Replace[a$multiply$[b[c, d]],
head_[x___] :> $[
StringReplace[ToString@head, {"$multiply$" :> "*"}]][x], {0,
Infinity}]
it isn't perfect but it is legible.
@William So let's use this example. please evaluate
a$multiply$ = 3
and then you do this with your quoted version
$["a*"] = 2
Do you know the vast difference in what you did?
It is just for edditing/replacing I see your point
23:00
In the first case you assigned OwnValues to the Symbol a$multiply$!!
Just ignore the $[String] form then. I just created the form for all the 0094 and other random nonsense characters.
In the second case, you assigned DownValues to the Symbol $
Yes I get it.
But the replace goes both ways so it shouldn't be a problem for just quick editing.
Yes no evaluating.
With[{var$multiply$ = 2},
 var$multiply$ + 3
 ]
compared to
With[{$["var*"] = 2},
 $["var*"] + 3
 ]
To play devils advocate try the following
Set[Symbol["a"], 2]
23:04
@William I don't have to evaluate this to know what will happen :-)
It has a held form so of course it doesn't work. Just make $["*"] be replace with $multiply$
In the same way You would have to replace [Symbol["a"] with a
I have to go
fun discussion!
@William Bye bye

« first day (1331 days earlier)      last day (3451 days later) »