Jump to content

User talk:Kc7txm

Page contents not supported in other languages.
Add topic
From Wikinews, the free news source you can write!
Latest comment: 5 years ago by Kc7txm in topic Welcome to Wikinews
Welcome to Wikinews

A nice cup of coffee for you while you get started

Getting started as a contributor
How to write an article
  1. Pick something current?
  2. Use two independent sources?
  3. Read your sources before writing the story in your own words?. Do choose a unique title? before you start.
  4. Follow Wikinews' structure? for articles, answering as many of who what when where why and how? as you can; summarised in a short, two- or three-sentence opening paragraph. Once complete, your article must be three or more paragraphs.
  5. If you need help, you can add {{helpme}} to your talkpage, along with a question, or alternatively, just ask?

  • Use this tab to enter your title and get a basic article template.
    [RECOMMENDED. Starts your article through the semi-automated {{develop}}—>{{review}}—>{{publish}} collaboration process.]

 Welcome! Thank you for joining Wikinews; we'd love for you to stick around and get more involved. To help you get started we have an essay that will guide you through the process of writing your first full article. There are many other things you can do on the project, but its lifeblood is new, current, stories written neutrally.
As you get more involved, you will need to look into key project policies and other discussions you can participate in; so, keep this message on this page and refer to the other links in it when you want to learn more, or have any problems.

Wikipedia's puzzle-globe logo, © Wikimedia Foundation
Wikipedia's puzzle-globe logo, © Wikimedia Foundation
  Used to contributing to Wikipedia? See here.
All Wikimedia projects have rules. Here are ours.

Listed here are the official policies of the project, you may be referred to some of them if your early attempts at writing articles don't follow them. Don't let this discourage you, we all had to start somewhere.

The rules and guides laid out here are intended to keep content to high standards and meet certain rules the Wikimedia Foundation applies to all projects. It may seem like a lot to read, but you do not have to go through it all in one sitting, or know them all before you can start contributing.

Remember, you should enjoy contributing to the project. If you're really stuck come chat with the regulars. There's usually someone in chat who will be happy to help, but they may not respond instantly.

The core policies
Places to go, people to meet

Wiki projects work because a sense of community forms around the project. Although writing news is far more individualistic than contributing to Wikipedia, the free encyclopedia, people often need minor help with things like spelling and copyediting. If a story isn't too old you might be able to expand it, or if it is disputed you may be able to find some more sources and rescue it before it is listed for deletion.

There are always discussions going on about how the site could be improved, and your input is of value. Check the links here to see where you can give input to the running of the Wikinews project.

Find help and get involved
Write your first article for Wikinews!

Use the following box to help you create your first article. Simply type in a title to your story and press "Create page". Then start typing text to your story into the new box that will come up. When you're done, press "save page". That's all there is to it!



It is recommended you read the article guide before starting. Also make sure to check the list of recently created articles to see if your story hasn't already been reported upon.


-- Wikinews Welcome (talk) 07:15, 27 May 2019 (UTC)Reply

Welcome to Wikinews

[edit]

Thanks for making your user page. You can use external wikilinks (like this) to make them blue. If I may ask, what computer languages do you program in? Do you have your codes uploaded somewhere? Thanks, --Gryllida (talk) 07:49, 27 May 2019 (UTC)Reply

Hi Gryllida, thanks for the insight, I'll get those links edited. I'm still learning the ropes of all the different wiki projects. I work mostly as a LAMP software engineer (PHP, JS, ReacJS and NodeJS would be the core of the projects I manage). Kc7txm (talk) 07:58, 27 May 2019 (UTC)Reply
You are welcome :-) This wiki is written in PHP, and gadgets for it are written in JavaScript. See www.mediawiki.org for details, and Wikinews:Tech.
Do you use the live chat at freenode? I find there are many programming groups at the same network. May be useful in case you haven't joined already. Gryllida (talk) 08:52, 27 May 2019 (UTC)Reply
Gryllida, I am not on freenode but I'll look into it, thanks for the info :) Kc7txm (talk) 19:19, 27 May 2019 (UTC)Reply
Hi Kc7txm
Seeing that you've mentioned PHP...
Today I have a quick question for you. I am running dupdet software [1] when I have moved it to a new server I receive this error message:
Warning: shell_exec() has been disabled for security reasons in /home/wikinews/public_html/dupdet/compare.php on line 200
Then I read the faulty line,
https://github.com/SvetlanaTkachenko/Duplication-Detector/blob/master/compare.php#L200
I am not sure how this software can work without this line, i.e. with this line disabled. Do you have any idea?
I would also be glad to join PHP related groups as this software is ancient and may need an update. At the moment I am only participating in the php channel at freenode and not any other groups. If you have suggestions about this, I would greatly appreciate them. Gryllida (talk) 00:36, 2 June 2019 (UTC)Reply
@Gryllida: the warning you are seeing means that shell_exec is disabled in your php.ini file. You only really need to edit /usr/local/lib/php.ini (assuming you are running PHP on a Linux machine with cPanel, if it's a Windows Server running Apache [note, why?] then it would be inside the application folder for wherever you installed it) and remove shell_exec from the DISABLED_FUNCTIONS line. After you edit the php.ini file you will want to restart apache. Kc7txm (talk) 01:32, 2 June 2019 (UTC)Reply
<dropping in on the conversaion> I'm wondering why this apparently straightforward tool would need shell_exec() which, from its name, sounds like a substantial security risk. (When I run the tool, it appears to work except that, at the top of the output where it reports the names of the pages being compared, each is preceded by this warning.) --Pi zero (talk) 17:47, 2 June 2019 (UTC)Reply
Thank you Kc7txm and Pi zero.
Pi zero, it needs it for pdftotext command.
Kc7txm, what I am surprised is not only how to fix it (the new hosting is more limited in access and I do not think I have access to php.ini), but also how could it possibly work without this command succeeding; that makes no sense to me. I'm genuinely surprised by that. Gryllida (talk) 21:06, 2 June 2019 (UTC)Reply
@Gryllida: and @Pi zero: The shell_exec() function is usually used to directly run a command in shell on the server (the function name kind of says it all shell_exec[ute] ). If your tool is meant to interface and run another application (like running a script that strips text values out of a PDF) I could see it needing to execute commands via the shell. It can also be used as a lazy way to write some applications and it does carry a decent amount of security risk if it was written to cause harm (but honestly, that's true of plenty of applications you can run in PHP / MySQL so it's hard to assign intent or malice for calling a function). You could try reaching out to the host's support team, send them a code sample and show them the error. As a server administrator and a host for several of our client's web servers myself, having access to the php.ini is totally normative to me and I wouldn't think twice if someone requested access to the shell_exec() function. Your other option is, if that script is a must have for you, contact around to other hosts and see if they will allow you to run the shell_exec() function. You could always migrate to another host (which isn't that hard to do) or use it as leverage with your current host (i.e. "I don't want to move to XYZhosting.com but they will allow the shell_exec() function that I need and you will not."). I have used such tactics with some of our client's hosts before, most hosting companies realize it's super easy to migrate an account and will work with you even if their first answer / normally policy is no. Good luck Kc7txm (talk) 22:42, 2 June 2019 (UTC)Reply
Thanks, I'm contacting the host about this. And just in case you can see it from the code, how come it works still"? Gryllida (talk) 02:02, 3 June 2019 (UTC)Reply
@Gryllida: that's an odd one, I suppose whatever function, task of aspect they are running with a shell_exec() is not necessary for what you are using it for? It may also be an edge case use that you are not currently using but the application verifies it has shell_exec access if needed and throws the error if it does not have permission to the shell. Kc7txm (talk) 08:54, 4 June 2019 (UTC)Reply