Wiktionary import doesn't look anything like the official site - mediawiki

This is the official version. This is what my imported copy looks like:
The steps I used were as follows:
Used mwdumper (Java app) to generate a SQL dump of enwiktionary-DATE_HERE-pages-meta-current
Imported that into a fresh installation of mediawiki.
Ran php maintenance/refreshLinks.php
Can someone point me in the right direction?

As it's a fresh installation, you will need to install all the extensions that are installed in Wiktionary as well to get the same look; you're especially looking for the parser hooks like ParserFunctions and Scribunto.

Related

how to run dotnet core's standalone program on mac

a rudimentary question, but please let me know.
I want to run the following program which will process and return the result by json when accessed by GET or POST.
FileManagerController.cs
For example, in PHP you just need to place it in the htdocs folder of Apache.
I would like to do the same thing with dot net core mvc.
but I don't know what kind of words to search.
Also, in the near future we would like ruby to work the same way in another project.(In a way that doesn't use a framework such as rails)
So, please tell me how to find out how to run various languages alone on a web server.
You need to make a "project" (file type .csproj) that you can build and run on your machine. Check out the Getting Started with ASP.NET page for instructions to install the SDK and create a new project and run it.
To run your code file above, you can:
$ dotnet new mvc
Copy the above FileManagerController.cs file into the generated Controllers folder.
$ dotnet run
Your app will be running on http://localhost:5000, you can hit your web site using the url /FileManager.

MySQL Install the UDF library "mysqludf_sys" on a Windows Server 2016

For 2 weeks I'm looking for a proper tutorial on how to fully install the library "lib_mysqludf_sys".
I got the .dll from a Russian site, because there seems to be no other for 64bit systems. I have successfully installed the procedure and also created the function, but whenever I want to call a file the whole database crashes. I conclude that the DLL file is faulty or that I forgot something to install.
can someone please explain to me how to use the UDF library to call files on a Windows Server 2016 64bit properly implied in the MySQL?
that would help me a lot, thank you!
Download the Windows 64 bit version from here:
https://github.com/rapid7/metasploit-framework/tree/master/data/exploits/mysql
Copy it to here or equivalent for your MySQL installation:
c:\Program Files\MySQL\MySQL Server 5.7\lib\plugin\lib_mysqludf_sys_64.dll
Install and verify as per the instructions here:
https://osandamalith.com/2018/02/11/mysql-udf-exploitation/
Looks like you are using MySQL 57/earlier version. For the library, I suggest to control it with "dependency walker". See if there is any problem with dependency libraries. At lease KERNEL32.DLL and MSCVTR.DLL (Visual C++ Redistrubatable file) should be there without any warning on root level.
If you have the code, I suggest you to recompile it with mygwin64. There are many items needs to be fixed to compiled it. Following link is a good link for UDF DLL compiles
https://github.com/esabilbulbul/mysql-udf-windows
There something similar, follow my answer here
stackoverflow.com/a/65209718/10026099

phpstorm cannot find class ZMQContext

Hi I'm creating project according to Tutorial on Ratchet website.
I installed zeromq version 0.3.0 through composer in phpstorm.(I checked if I installed right zeromq with phpinfo() and also with php-m in terminal)
In file post.php I cannot create new object of class ZMQContext(). - php storm cannot find this class.
I found the same issue on stackoverflow but solution is for linux.I'm using win.
When I want to use this in code: use React\ZMQ. - I don't see there class ZMQContext
Thanks for answer.
You can get PHPStorm to auto-complete code that uses the ZMQ PHP extension.
Save this stub file: https://gist.github.com/Mikulas/c22e44a918c7af5de5e6
I saved it (on OSX) under /Applications/PhpStorm EAP.app/Contents/plugins/php/lib/extensions/zmq.php
Then go to PHPStorm > Preferences > Languages & Frameworks > PHP > include path and add that extensions folder.
Now go back to your file and you'll see PHPStorm auto-completing stuff from the ZMQ extension.
Have fun! I hope you'll find this useful.
It looks like you've installed the PHP PECL extension. You also need to install the ZeroMQ library on your system that ext-zmq will use. If you're an a Debian based system try sudo apt-get install libzmq-dev or a RH based system sudo yum install zeromq zeromq-devel.

How to use execute mysqldiff utilities in command line?

I have two versions of my database. The n and n+1 version. I want to know the difference between the two version. I have downloaded the archive on the link mysqldiff utility
I unzip my archive and went in the bin directory, then i type mysqldiff -help. But at my surprise, i have the following message. mysqldif is not recognozed as command line. Is there any way to install it ?
Thanks
Well, if you read the INSTALL file in the link you gave, it doesn't say to download the archive, it says to install via CPAN.
However, I'm not sure why you'd use a CPAN module or some random Github archive when MySQL distributes a mysqldiff.exe [1] tool itself.
[1] http://dev.mysql.com/downloads/utilities/
I'm the author of that ancient CPAN module and I don't really maintain it any more. It looks like another mysqldiff is offered in the MySQL Utilities suite which seems to be maintained (here's a github clone) and also a lot more sophisticated, so I'd recommend trying that.

link to download the mysql source

The closest I can find on mysql.com is something called
Generic Linux (Architecture Independent), Compressed TAR Archive
But thats probably a binary installation too, because it has no 'configure' script. Its rather frustrating. I'm sure I'm just missing something obvious (just like what happens with code sometimes).
Navigate your browser to http://dev.mysql.com/downloads/ and click on "MySQL Community Server"
Next go half way down the page and look in the section titled "Generally Available (GA) Releases" and click the drop-down box under "Select Platform". Choose "Source Code" at the bottom of the list.
A list of source code packages will appear for various platforms. Click "Download" to the right of your platform target. This takes you to a "Begin Your Download" page.
At the bottom you will find a link titled "No thanks, just start my download" which will start your download or may be copied as a link as in the wget example above.
The overall procedure for building MySQL from source is at MySQL Docs - Install Source Distribution and it includes using CMake instead of ./configure (you can yum install cmake if needed (CentOS)).
The Generic Linux (Architecture Independent), Compressed TAR Archive is the title of the source package I used to build from source, so I think you were on the right path.
Install Bazaar and get a latest copy of the tree.
http://dev.mysql.com/doc/refman/5.0/en/windows-sourcetree-build.html
You'll need a MySQL.com account. More about contributing code to MySQL.
It turns out my impatience got the better of me.
A further perusal of the latest documentation indicates that this is the genuine source. And that mysql 5.5 and later no longer uses "configure" (autoconf) but instead uses CMake.
I'm now building mysql from those very sources.