User talk:Jasper Deng

Jump to: navigation, search

About this board

For older discussions, see User talk:Jasper Deng/old. For stuff not related to this website, see en:User talk:Jasper Deng.


By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL
Fuse809 (talkcontribs)

Hi, I just wanted to ask you a question. Do you know anyone with the skill and the inclination to write an extension similar to the Jmol extension (https://www.mediawiki.org/wiki/Extension:Jmol) but for the 2D chemical structure viewer and editor, Marvin JS? I personally do not have the skill to write such an extension but as Marvin JS is written in Javascript I wouldn't imagine it'd be too difficult for someone with the programming skill to create such an extension. Fuse809 (talk) 18:41, 3 February 2015 (UTC)

Jasper Deng (talkcontribs)

Unfortunately I do not. If it's in JS, a gadget might be a better idea - Extension:Gadgets.

2003:62:4437:6A53:F946:A580:5C13:BF3B (talkcontribs)

You can log in or create an account

Reply to "Marvin JS extension"
Abhinav (talkcontribs)

Hi Jasper, my request here has been hanging since 7 June, while most of my requests on other wikiprojects have already been accepted. I understand this is not very urgent, but I request you to please look into this sometime soon. I am also willing to wait if this has been a part of the process of informing the target username for usurpation. Thank you. D abhi (talk) 14:47, 21 June 2014 (UTC)

This post was posted by Abhinav, but signed as D abhi.

Reply to "Usurpation Request (SUL)"
Lieutenant S. Reznov (talkcontribs)

I just requested a username change.

This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein/Александры реактион.

Reply to "[[Project:Requests]]"
Lieutenant S. Reznov (talkcontribs)

Would it work with this extension? Extension:Simple Farm.

I'm using it for the MyWiki.ssu.lt farm on WikiHub, and I'm wondering if it will work with the setup. Each wiki has a separate database, which is consistent with Central Auth.

This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.

Jasper Deng (talkcontribs)

Because both extensions deal with site names, I have to caution against it, although I have no personal experience with Simple Farm.

Lieutenant S. Reznov (talkcontribs)

Thanks.

Do you think that a shared user table work alright with it? The extension uses a single set of files for multiple wikis with multiple databases.

This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein/Александры реактион.

Jasper Deng (talkcontribs)

CA doesn't deal with shared user tables.

Lieutenant S. Reznov (talkcontribs)

Oh, sorry. I was wondering if you think that SimpleFarm would be able to work with a shared user table instead of using CentralAuth.

This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein/Александры реактион.

Reply to "Question about Central Auth"
Lieutenant S. Reznov (talkcontribs)

I'm working on a form application that I plan to use as a basis for the contact form extension I'm working on. (the login would be removed, as MediaWiki would provide the user accounts)

There's a problem that I get when I try to run the script for creating the database tables.

This is the page that has the script: ($dbprefix is just for this application, I'll change it to the one MediaWiki uses when I make the extension. I believe I may have entered that right)

<?php

// Get user account information from installation form

$new_admin_username = trim($_REQUEST['new_admin_username']);
$new_admin_password = trim($_REQUEST['new_admin_password']);

// Create the user table

$create_user_table = "
mysql> CREATE TABLE /*$dbprefix*/users (
     -> user_id    int           AUTO_INCREMENT PRIMARY KEY,
     -> username   varchar(30)   NOT NULL,
     -> password   varchar(30)   NOT NULL
     -> )
";

mysql_query($create_user_table)
  or die(mysql_error());

// Create table for storing messages

$create_message_table = "
mysql> CREATE TABLE /*$dbprefix*/messages (
    -> message_id      int           AUTO_INCREMENT PRIMARY KEY,
    -> sender_name     varchar(50)   NOT NULL,
    -> sender_email    varchar(50)   NOT NULL,
    -> sender_message  varchar(2000) NOT NULL
    -> )
";

mysql_query($create_message_table)
  or die(mysql_error());

// Create user account

$new_admin_create_account = "
mysql> INSERT INTO /*$dbprefix*/users (username, password)
            VALUES ('{mysql_real_escape_string($new_admin_username)}',
                    '{mysql_real_escape_string($new_admin_password)}');
";

mysql_query($new_admin_create_account)
  or die(mysql_error());

?>

Here's the error I get:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql> CREATE TABLE /**/users ( -> user_id int AUTO_INCREMENT ' at line 1

This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.

Lieutenant S. Reznov (talkcontribs)

Never mind, I fixed it.

This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.

Reply to "PHP/MySQL question"
Qgil-WMF (talkcontribs)

Hi, if you grant me permissions to delete spam / pointless posts in LQT comments I will help you cleaning them up. I just saw two more landing at Talk:MediaWiki.

This post was posted by Qgil-WMF, but signed as Qgil.

Jasper Deng (talkcontribs)

I'm not a bureaucrat, so you'll have to ask at Project:Requests for admin rights.

Qgil-WMF (talkcontribs)

I didn't know you need to be admin to delete LQT comments. I don't think I deserve that honor. Thanks for pointing to the right process!

This post was posted by Qgil-WMF, but signed as Qgil.

Reply to "Delete LQT comments permission?"

How is having a user page grounds for deletion?

12
Dsc (talkcontribs)

I am very serious: I was furious when I saw that deletion. This is everything wrong with Wikipedia culture. How can it possibly ever be a good idea to delete a page that exists only to validate a user's existence and contribution? It is almost incidental that Dan is an employee of WMF and on my team -- no matter what he should have been welcomed into the community as a potential contributor and showered with encouragement. If he was a nobody and saw that response, I would not blame him for leaving your a profanity-laden comment and simply never coming back to the community. Is that what we want?

Jasper Deng (talkcontribs)

It's local policy that userpages should be in project scope, if you want to change that please file an RfC.

I would not have deleted had I verified him as a WMF employee or if it have (WMF). It said nothing more than his name, which looks no different from a test page that's routinely deleted. I could've just as easily used "no meaningful content" - I don't work for the foundation and wouldn't have known he was with you.

Once again I apologize, though you should note that this policy is purely local to this wiki.

Milimetric (WMF) (talkcontribs)

Thank you Jasper for the welcome message on my talk page. And thank you dsc for sticking up for me and other initially clueless users out there. I'm totally new to the world of wiki and I'm looking forward to learning more about the community. If I might suggest, the policy might be a little smoother if it had two steps:

  • Post the same welcome message you left on my talk page, with a warning added that the page might be deleted if it's left blank for too long.
  • If no action is taken to change the page within a couple of weeks or some reasonable period of time, then maybe clean up the page.

This post was posted by Milimetric (WMF), but signed as DAndreescu.

Jasper Deng (talkcontribs)

I used to use {{delete}}, but when I did another sysop told me to not wait. I'm going to have to have a talk with that sysop.

Jasper Deng (talkcontribs)

On this note, I didn't have the time to leave {{scope}} for the user, which I usually do.

However, I do want to say that in the cases I've seen, a user with a userpage not related at all to MediaWiki is very likely here to do something off-topic. I never mean to bite new users and I want more people to contribute to the software. The local deletion log contains many such cases.

Sumanah (talkcontribs)

Could you please point me to the policy that says we should delete people's userpages if those userpages do not explicitly mention their connection to Wikimedia or MediaWiki? I'd like to suggest that we change that policy so that we *ask* people what their connection is first, rather than deleting straightaway.

Jasper Deng (talkcontribs)

Project:About

Sumanah (talkcontribs)

OK, I see that there's an implication there that people's userpages should explicitly mention their connection to MW or WM. But I'm specifically looking for the policy stating that we should delete first and ask questions later.

Jasper Deng (talkcontribs)

On that, I mistook another sysop's directions to not wait. SVG was that sysop and clarified this to me (and revdeleted Dsc's edit summary).

Usually that page's policy is grounds for speedy deletion, and there's nothing written down about the use of {{delete}}; {{speedy}} has been used in the past for such userpages too.

Nor is Dsc's comment supported by any existing policy on this wiki.

Delfark (talkcontribs)

Hi, Sorry,I didn't know about such restriction for the user's pages. But I wasn't here for a quite long time and now I can see that my documentation is gone. I was collecting it for some years. I would really appreciate if you could send me the code from history/backup (http://www.mediawiki.org/wiki/User:Delfark) to delfark@yahoo.com . Thanks,

Reply to "How is having a user page grounds for deletion?"
Lieutenant S. Reznov (talkcontribs)

How I do global blocking with CentralAuth? I assume the local RevokePermissions user group I created won't work, since it's for a different global login system. Also, how do I make sure that the spammer and troll accounts won't have access to all wikis once I create the global login?

This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.

Jasper Deng (talkcontribs)

You lock their accounts. To prevent more creation of bad accounts use Extension:GlobalBlocking and Extension:CheckUser to root out the IPs and block them.

Lieutenant S. Reznov (talkcontribs)

I assume that means the only way to block them is after I create the global login? I guess I can just restrict editing until I have that task done.

This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.

Jasper Deng (talkcontribs)

(btw, if you have an instance of CentralAuth, link me a wiki where you're using them)

It's after you create a global login. There are scripts, however, that can allow mass cross-wiki blocking.

Reply to "Global blocking with CentralAuth"

Can this extension be used with CentralAuth?

3
Lieutenant S. Reznov (talkcontribs)

Extension:GlobalUserGroups

I ask because CentralAuth has a system for global user groups, but I would prefer this method of creating them, since it says CentralAuth groups do not show up in Statistics or ListUsers.

This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.

Jasper Deng (talkcontribs)

This would require $wgSharedDBPrefix, so first you must decide on whether you can use CentralAuth or shared tables for uniting users. I don't really believe the two can be comfortably used together (I think CentralAuth chokes on a $wgDBPrefix).

Lieutenant S. Reznov (talkcontribs)

I'll just use the method that comes with CentralAuth then.

This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.

Reply to "Can this extension be used with CentralAuth?"
Fabsouza1 (talkcontribs)

Could you please take out the "Usage" text from protection for translation? Thanks.

Jasper Deng (talkcontribs)

I can prepare that text itself for translation but I don't see a reason to remove the usage manual.

Reply to "Template:Hubs"