User talk:Mwn3d
Template Question
Hello. I noticed a recent addition I made was tagged with the needs-review template. The needs-review template wording is rather strong, i.e. "may be incorrect". I had added my example to the category as needing attention because I had only solved half of the problem (the brute force side), not because my solution was incorrect. Is there a template other than needs-review that might be more apropos? Russell 22:04, 27 July 2009 (UTC)
- Yeah I noticed that we actually have three similar templates and they're all pretty much as strong as the others:
- I think we need to discuss these (I'll make a topic in the Village Pump in a bit). In any case, I don't think we should just be throwing things in "example needs review" categories without a very visible note on the actual example. --Mwn3d 22:52, 27 July 2009 (UTC)
I've recently added Template:Improve which might be relevant. --Kevin Reid 00:17, 16 August 2009 (UTC)
J house style, Oct 2009
Thanks for your help with creating the J house style sandbox. And sorry for the original improper location -- I couldn't work out how to create an appropriate subpage.
--DanBron 15:23, 12 October 2009 (UTC)
- So the original page you made can be deleted then? I left it in case what I did was wrong. --Mwn3d 15:27, 12 October 2009 (UTC)
- Yep. I would do it myself but I can't find a "delete" link. --DanBron 15:35, 12 October 2009 (UTC)
UnderBot and whitespace
With respect to http://rosettacode.org/mw/index.php?title=Select_from_Array&diff=67932&oldid=67929: yes, UnderBot strips whitespace like that. So you needn't bother doing it yourself. —Underscore (Talk) 15:40, 19 November 2009 (UTC)
- Does it leave Python and Haskell whitespace? I think both of those depend on it. --Mwn3d 15:58, 19 November 2009 (UTC)
Not entirely, but UnderBot preserves relative indentation, which is all that whitespace-sensitive languages are sensitive to. Actually, both Haskell and Python further require that top-level definitions begin in the first column, so when UnderBot changes
<lang haskell> foo = fie + foe where fie = 2 foe = 3</lang> to <lang haskell>foo = fie + foe where fie = 2 foe = 3</lang>
, it's translating a technically illegal program into a legal one. —Underscore (Talk) 17:58, 19 November 2009 (UTC)
Actually, Haskell doesn't have such a requirement; what it does have is the layout rule, which does apply to "top-level" definitions in modules since they are after a
where
clause: all items in a layout block must start in the same column. This is legal H98:<lang haskell> module Main where main = putStr "foo" rain = main</lang>
This is not: <lang haskell> module Main where main = putStr "foo" rain = main plain = rain</lang>
—Kevin Reid 19:53, 19 November 2009 (UTC)
- Indeed, my mistake. Anyway, my essential point is that UnderBot doesn't (to my knowledge) break correct programs. —Underscore (Talk) 20:13, 19 November 2009 (UTC)
Rosetta Code subreddit
Check out:
or even
I think you'd be perfect as moderator. Are you interested? The pages that get added there show up in the planet. My current thoughts are for the rosettacodeorg subreddit to highlight new tasks and new interesting pages specifically on Rosetta Code. For the time being, I'm not really looking for externally-facing links. --Michael Mol 04:19, 26 January 2010 (UTC)
- If it takes any amount of time I should probably wait until the end of this quarter (after the first week of March). I'm taking an extra class right now so I barely have time to do little cleanups when I see the need. Other than that I'm not sure what that responsibility would entail, but I bet I could figure it out. --Mwn3d 19:15, 26 January 2010 (UTC)
- Mostly removing inappropriate links, I expect. You wouldn't be alone in that, but it'd be nice if someone got to it once in a while before I did. :) --Michael Mol 21:15, 26 January 2010 (UTC)
Template:Language/Start and friends
What was wrong with the way they were implemented? I don't remember them looking broken when I left off with them last night; all that was left was implementing templates akin to Template:Language/Property/Generic and Template:Language/Property/URL for more specific things like BNF, HOPL, exec, site, gc, parampass, safety, strength, compat, express, checking, lang and lct. The more specific forms are useful because we can check against their absence or omittence akin to langauge/tasks, and put them as maintenance items in Template:Unimpl_Page. I'm also trying to get away from using parserfunctions so much; it makes some templates more difficult to maintain, IMHO. --Michael Mol 04:11, 14 April 2010 (UTC)
- When I tried them out in Template:Language beta I got |} showing up sometimes and other times I had tables that never ended. When I moved things around to the way they are now it ended up looking right. So do you want a new template for every parameter? That doesn't seem practical. Also I don't really like the way the naming is going. It's getting too long too fast. I'm not sure what naming scheme would be better. If we want to check anything we will have to use parser functions. I guess I wasn't around to see the plan for this craziness. Was there a plan discussed or did I just go forward with the idea too quickly? --Mwn3d 04:19, 14 April 2010 (UTC)
- Using subpages keeps things clear as to meaning and relationship, keeping the use and meaning of the wiki code clean and maintainable. Having a separate template for every property that needs to behave in a unique way allows the language description block to be built the same way people use Template:Mylang in their user pages. Also, those templates were designed as a replacement for the existing Template:Language; you should have something like:
{{Language/Start}} {{Language/Property/Generic|key|value}} {{Language/Property/Generic|key2/value2}} {{Language/Property/URL|url|anchor name}} {{Language/End}}
Presumably, the use of the template set in Cateogory:Oz would look something like this:
{{Language/Start}} {{Language/Property/URL|url|Official Site}} {{Language/Property/Garbage Collected|yes]] {{Language/Property/Parameter Passing|By reference}} {{Language/Property/Type Safety|Safe}} {{Language/Property/Type Strength|Strong}} {{Language/Property/Type Compatibility|Structural}} {{Language/Property/Type Expression|Implicit}} {{Language/Property/Type Checking|Dynamic}} {{Language/Property/URL|url|On the HOPL}} {{Language/Property/LCT|Oz}} {{Language/End}}
(URL could be made more specific for Official Site and/or HOPL, though I'm not too pleased with the current HOPL links; they rarely wind up pointing to the language in question.) Which would strike me as a bit clearer than
{{language|Oz |site=http://www.mozart-oz.org |checking=dynamic |gc=yes |LCT=yes |strength=strong |express=implicit |safety=safe |compat=structural |parampass=reference}}
... Does that make sense? --Michael Mol 04:34, 14 April 2010 (UTC)
- It makes sense, but it doesn't look any clearer to me. If you look at the result and the parameters side by side, it's pretty clear how they match up. I like the named parameter method, but I'm not the boss. I'm not sure if this new method will help with ease of use either. If people can't figure out the named parameters (which is a complaint I've seen a few times even though there are explicit directions on the template page and numerous examples of use), I don't think they'll figure out this business either. It seems like directions for this method would have to be scattered across a bunch of template pages. As far as comparing it to the mylang stuff, that table lent itself to a setup like this because we didn't want to add a new parameter for every language that came up (even though we could have if we had fewer languages). I can't imagine us ever having more than a dozen or so language parameters, so it's relatively simple to add the named parameters. I like having everything packaged in one template. At the very least, doing it all in one will keep the order consistent for all languages, which is a usability plus. I guess this can just be recorded as a vote for reworking the original template, but still using named parameters. --Mwn3d 04:53, 14 April 2010 (UTC)
- I'm not going to push the discussion any farther (at least for a while); of all the folks who've helped with site infrastructure, you've been at it the longest. Template:Language has been your Work-In-Progress, and you've taken more initiative in getting it working well than anyone else. It's by and large your template, you've managed and maintained it, and I can leave it to you to maintain. I personally think the way I described is better, but I don't want to overrule you on a template that's been your baby. I also don't think now is the right time to continue any push on it. It can probably wait until summer or later, after the end-of-semester madness has subsided. Let's revisit this some other time. --Michael Mol 05:15, 14 April 2010 (UTC)
- It makes sense, but it doesn't look any clearer to me. If you look at the result and the parameters side by side, it's pretty clear how they match up. I like the named parameter method, but I'm not the boss. I'm not sure if this new method will help with ease of use either. If people can't figure out the named parameters (which is a complaint I've seen a few times even though there are explicit directions on the template page and numerous examples of use), I don't think they'll figure out this business either. It seems like directions for this method would have to be scattered across a bunch of template pages. As far as comparing it to the mylang stuff, that table lent itself to a setup like this because we didn't want to add a new parameter for every language that came up (even though we could have if we had fewer languages). I can't imagine us ever having more than a dozen or so language parameters, so it's relatively simple to add the named parameters. I like having everything packaged in one template. At the very least, doing it all in one will keep the order consistent for all languages, which is a usability plus. I guess this can just be recorded as a vote for reworking the original template, but still using named parameters. --Mwn3d 04:53, 14 April 2010 (UTC)
Re HOPL, Diarmuid and I are painfully aware of the problems. Time's our biggest problem at the moment ... not having much. --Axtens 05:10, 14 April 2010 (UTC)
Congratulations!
Congratulations! Now don't forget about us! You've been too much help over too long a time for me to want to give you up. :P --Michael Mol 12:37, 24 May 2010 (UTC)
Congratulations on graduating and getting a job. Nice one! --Paddy3118 18:43, 4 August 2010 (UTC)
Link Down
The front page link to wp:programming chrestomathy might need changing to something like: programming chrestomathy. --Paddy3118 05:58, 6 July 2010 (UTC)
- Got it. Good find. --Mwn3d 06:10, 6 July 2010 (UTC)
Not quite. It now gets re-directed. How about a link to the page wp:chrestomathy that shows as 'programming chrestomathy' and does not get re-directed at wp? --Paddy3118 06:21, 6 July 2010 (UTC)
- Ace. --Paddy3118 07:22, 6 July 2010 (UTC)
- I'm still grousing over the fact that they yanked the "program chrestomathy" page; I thought that was useful content. Maybe someone around here can answer my question. --Michael Mol 22:20, 12 August 2010 (UTC)
Organization
wp:List_of_algorithms might be useful in aiding organization. Actually, I'd love to get the majority of those created as tasks. :) --Michael Mol 22:02, 12 August 2010 (UTC)
- I think I remember talking with Dmitry about that in the long long ago (back when I first categorized the tasks). It's definitely worth releasing into the RC wild to see what happens. I don't think a list like that will take too much pushing to get people to start checking things off. --Mwn3d 03:11, 14 August 2010 (UTC)
Templates
RC really needs some consolidation of its mess of templates. As you find time, would you be interested in going through and ensuring all of them have Template:template in them? --Michael Mol 20:25, 1 October 2010 (UTC)
Yorick
To answer your question from Category talk:Yoric, the language's name is "Yorick", not "Yoric". I have created equivalent pages for Yorick based on what I saw existed for Yoric, but the old pages for Yoric now need deletion. Can you delete the following pages?
- Category:Yoric
- Category:Yoric User
- Category:Yoric examples needing attention
- Category:Yoric Implementations
- Reports:Tasks not implemented in Yoric
Thanks! -- Sekoia 22:43, 10 October 2010 (UTC)
- I'm on it. --Mwn3d 22:45, 10 October 2010 (UTC)
- Done. Deletions were unusually difficult for the site today (just noting). --Mwn3d 22:54, 10 October 2010 (UTC)
Problem with math tag?
Random number generator (included)#PARI/GP Has this bit of wiki text:
- <math>2^{4096}-1.</math>
Which displayed for me in firefox on Windows vs 3.6.12 as the following
Failed to parse (Missing texvc executable; please see math/README to configure.): 2^{4096}-1.
Could someone take a look? (P.S. the same statement worked OK for me on Wikipedia). --Paddy3118 05:37, 31 October 2010 (UTC)
- This is a result of the software upgrade from a couple weeks ago. Happens every time I forget to recompile texvc during an upgrade of MW. Give me just a few minutes... There. Fixed.--Michael Mol 12:18, 31 October 2010 (UTC)
I'm in the process of adding a new Rosetta Code (draft) task, and I'm trying to use the <math> that is near the top of the Wikipedia entry for Leonardo numbers.
The Wikipedia article is at: Leonardo number.
Here is the HTML code that I'm trying to use, it is (part of) an exact copy of what the Wikipedia page has:
:<math> L(n) = \begin{cases} 1 & \mbox{if } n = 0 \\ 1 & \mbox{if } n = 1 \\ L(n - 1) + L(n - 2) + 1 & \mbox{if } n > 1 \\ \end{cases} </math>
When I try to preview it (via the show preview button), it causes the Rosetta Code server to "hang" (after saying it is "connecting...", and then after about 150 seconds or so, (apparently) times-out.
Error 524 Ray ID: 35f9cf1f868c2a25 • 2017-05-15 23:18:49 UTC A timeout occurred
Is the Wikipedia software ahead of the stuff that Rosetta Code uses?
Or, to put it another way, is the Rosetta Code stuff back-level?
For a <math> {cases} example that works, you can view: Ackermann function.
I've tried to take out various whitespace(s) and other stuff, but I'm causing Rosetta Code to "soft-crash" a lot of times, so I thought it would be better to find out what's going on from the horse's mouth, so to speak.
Any thoughts what the problem is? -- 23:33, 15 May 2017 (UTC)
... Just in case you're not familiar with the above idiom:
(straight) from the horse's mouth: from someone who has the facts. "Are you sure she's leaving?" "Definitely, I heard it straight from the horse's mouth."
-- Gerard Schildberger (talk) 23:56, 15 May 2017 (UTC)
Cilk++
Hi, I too was thinking of a block but saw this, and this, and held off hoping that they would expand on things. Maybe you could leave the page deleted but take the block off? --Paddy3118 06:47, 16 February 2011 (UTC)
- I only blocked the IP for a month and only for anons. I guess I could shorten it. --Mwn3d 13:19, 16 February 2011 (UTC)
- I went ahead and created a Cilk page, using actual (wp) content this time, and recreated the Cilk++ page (also wp content). Don't know if anyone will do any Cilk examples, but WTH, it's an interesting concept (at the very least). -- Erik Siers 02:15, 2 March 2011 (UTC)
- ...Um... Cilk is just C with a very few extra keywords. I really think it would be better to just leave it as c. Whatcha think? -- Erik Siers 02:20, 2 March 2011 (UTC)
- I don't think that's how lang tags should work. Every language should get its own tag. --Mwn3d 02:38, 2 March 2011 (UTC)
- You're the boss. Either way works, I suppose. -- Erik Siers 02:44, 2 March 2011 (UTC)
- I don't think that's how lang tags should work. Every language should get its own tag. --Mwn3d 02:38, 2 March 2011 (UTC)
Create an HTML table
Did I get it wrong here? Should it be any table or should I have not restricted the task to an HTML table? --Paddy3118 22:10, 10 March 2011 (UTC)
Thanks
Thanks, man. I appreciate the encouragement! --Bnlott 04:20, 26 June 2011 (UTC)
Spam?
As you seem to be one of the chief spammer battlers, you might wish to know that User:Serdartolgaaras seems to be a candidate. OK, it's not very spammy, but Google Translate does not seem to find any content on it that could even be vaguely relevant to programming (Turkish legal services or swimming, yes; programming, no). –Donal Fellows 12:46, 28 December 2011 (UTC)
- Mwn3d keeps beating me to it. --Michael Mol 14:30, 28 December 2011 (UTC)
- I even get most of them from my phone lately. You gotta step it up :p. --Mwn3d 15:12, 28 December 2011 (UTC)
- At this point, the normal case for me is to see it pop up in Google Reader, click...and the page was already deleted. Oi. I'm not absent, I'm just too slow to be visible. --Michael Mol 15:15, 28 December 2011 (UTC)
- I even get most of them from my phone lately. You gotta step it up :p. --Mwn3d 15:12, 28 December 2011 (UTC)
- If you see more pages like that you can just blank them and add {{remove}}. Someone will get it eventually. --Mwn3d 15:12, 28 December 2011 (UTC)
Source for Truth_table#Java?
Hi, Any chance of getting the source for Truth_table#Java onto the RC site. (I was browsing, searching for an answer to a question of Stack Overflow and noticed). Thanks. --Paddy3118 03:59, 11 July 2012 (UTC)
- The source is kind of complicated. There are many different files involved. The jar file that is linked to from the text on the page should have the source in it. You can treat that file exactly like a .zip file. If it's only .class files inside that archive let me know. I'll have to repackage it with the right options. --Mwn3d 04:15, 11 July 2012 (UTC)
- Thanks for the prompt reply. It seems I'm wrong in thinking that the source could be meaningfully displayed on RC so I'll let it go then. --Paddy3118 05:35, 11 July 2012 (UTC)
- Sorry that it doesn't really work well here. Can you still use the source to help you answer the question? I can try to help if you need a specific part of the source explained. What was the question? --Mwn3d 16:35, 11 July 2012 (UTC)
- Thanks for the prompt reply. It seems I'm wrong in thinking that the source could be meaningfully displayed on RC so I'll let it go then. --Paddy3118 05:35, 11 July 2012 (UTC)
- Oh there's no further issue with stack overflow - I put a link to the site in my answer. Its for them to read the RC page including the Java example, or not. --Paddy3118 18:01, 11 July 2012 (UTC)
Much obliged.
Thanks for taking the time to "go through the motions" for LOLCODE. I planned to create the page once I'd written up a brief overview of the language, but having a starting point's always nice. : )
- You're welcome. Go ahead and fill it in whenever you want. I'll be there to help you wiki-fy things and add some of RC's lesser-known templates where appropriate. --Mwn3d 14:19, 6 March 2013 (UTC)
adding to watchlist
(Since you're an administrator)
Today, I got an error (the 1st time I ever saw this error message) when I tried to add something to my "watchlist", I got the error (in a pink box):
An error occurred while changing your watchlist settings for "xxxxxxx".
I was logged on, off of course.
I logged off (and closed my FireFox browser), and then logged back on. Same error.
Any ideas? (If this isn't the right place to report problems, let me know the correct location).
Never mind, it's working now. Perhaps something was too busy/overloaded or some such? -- Gerard Schildberger (talk) 22:40, 21 August 2019 (UTC)
A further never mind. I found the problem. If a user (userid) is currently logged on, I can't seem to add that userid to my watchlist. So now, I just wait a hour or so and try again. -- Gerard Schildberger (talk) 18:27, 11 September 2019 (UTC)
Bytecode
I noticed that you were the (original) author for the Rosetta Code page https://rosettacode.org/wiki/Bytecode and on that page, there is an error generated when ya click on the link virtual machine (which is within the 2nd sentence within parentheses). I don't know who entered the text that causes the error (shown below).
The error that I see is (and the only thing on the resultant webpage):
Exception encountered, of type "RuntimeException"
I know not of how to fix or correct the problem. -- Gerard Schildberger (talk) 00:53, 21 November 2019 (UTC)