CORS policy during development

Does the CORS policy add any value during the development phase? Should I develop with CORS on or off? The development is occurring in a distributed environment and there are no local copies of components, only a testing environment where components are uploaded and tested (not on the same servers, so CORS still apply). If I should enable the CORS policy, how should I set it up so my distributed teams can work against my back-end server from their development environments ?

This question was strongly influenced by this one : should-i-develop-with-tls-on-or-off

Please help with Investigator Development phase and Skill Improvement the Optional Luck Point use?

I just got introduced to this game and I’d like to understand some more of the how EXP and PC improvement is done.

So far I get that the more you use a skill the more you have a chance to improve that skill/skills or even gain new ones from multiple successful attempts. Now in standard play you mark off skills successfully used during the session once no matter how often those skill are used and that at the end of specific amount of game time are allowed to attempt to improve those skills used individually.

However the Keeper uses the Optional Luck rules for his games. Now the rules for the Luck option is if you use Luck to modify skills rolls then you don’t get a chance to improve skills at Investigator Development Phase. Now I’d like some clarification on this. If you use Luck Points to modify a skill or number skill rolls to pass the check, then during the next Investigator Development Phase, you are not allowed to a chance at improving any skills successfully passed or just those modified by Luck Points?

EX: Game 3 – Investigator use Luck points to pass History, and a Drive check, but were successful with Firearms .45 Pistol, Jump and Natural World checks. After the game session is through and we’re at Investigator Development Phase do I get a 1d00 chance to try to improve Firearms .45 Pistol, Jump and Natural World and not with History, and Drive or I cant try to improve any skills cause I use Luck Points?

AJAX Call Via Vanilla JavaScript In WordPress Plugin Development

I ama newbie in WordPress Plugin development in which I have some HTML form on the main plugin page that will get the data from the admin who is logged in and a back page where I have some different functions in PHP like to get information from the database etc. To explain in detail, here is the code…

Main Plugin File:

<?php /* Plugin Name: WP Testing Plugin Plugin URI: http://www.wordpress.org/WP-Testing-Plugin Description: A Detailed Description About This Plugin. Author: Muhammad Hassan Version: 0.1 Author URI: http://www.wordpress.org */  /*____________WP Testing Plugin Admin/Script_____________*/ function wp_testingPlugin_admin() {     echo '         <form id="searchForm" onsubmit="return searchData(this)">             <input name="WhatToSearch" type="text" />             <input type="submit" value="Search"/>             <input type="reset" value="Reset"/>             <div id="showReturnData"></div>         </form>     ';     echo '         <form id="infoForm" onsubmit="return searchInfo(this)">             <input name="WhatToKnow" type="text" />             <input type="submit" value="Search"/>             <input type="reset" value="Reset"/>             <div id="showReturnInfo"></div>         </form>     ';      echo '         <script type="text/javascript">             function searchData(incomingForm) {                 // Confirmation To Add A Data                 var answer = confirm("Are You Sure Want To Search?");                 if (answer){                     // If User Click Ok Then Execute The Below Code                          var FD = new FormData(incomingForm); // Get FORM Element Object                     FD.append("Function", "DataFunction"); // Adding Extra Data In FORM Element Object To Hit Only This Function In Ajax Call File                     var ajx = new XMLHttpRequest();                     ajx.onreadystatechange = function () {                         if (ajx.readyState == 4 && ajx.status == 200) {                             document.getElementById("showReturnData").innerHTML = ajx.responseText;                                      }                     };                     ajx.open("POST", "'.plugin_dir_url( __FILE__ ).'my_functions.php", true);                     ajx.send(FD);                     document.getElementById("showReturnData").innerHTML = "<div class="error">ERROR: AJAX Did Not Respond.</div>";                 }                 return false; // For Not To Reload Page             }               function searchInfo(incomingForm) {                 // Confirmation To Add A Data                 var answer = confirm("Are You Sure Want To Search?");                 if (answer){                     // If User Click Ok Then Execute The Below Code                          var FD = new FormData(incomingForm); // Get FORM Element Object                     FD.append("Function", "InfoFunction"); // Adding Extra Data In FORM Element Object To Hit Only This Function In Ajax Call File                     var ajx = new XMLHttpRequest();                     ajx.onreadystatechange = function () {                         if (ajx.readyState == 4 && ajx.status == 200) {                             document.getElementById("showReturnData").innerHTML = ajx.responseText;                                      }                     };                     ajx.open("POST", "'.plugin_dir_url( __FILE__ ).'my_functions.php", true);                     ajx.send(FD);                     document.getElementById("showReturnInfo").innerHTML = "<div class="error">ERROR: AJAX Did Not Respond.</div>";                 }                 return false; // For Not To Reload Page             }          </script>     '; //if you want only logged in users to access this function use this hook add_action('wp_ajax_searchData', 'searchData'); add_action('wp_ajax_searchInfo', 'searchInfo'); //if you want none logged in users to access this function use this hook add_action('wp_ajax_nopriv_searchData', 'searchData'); add_action('wp_ajax_nopriv_searchInfo', 'searchInfo');   } /*__________________________________________________________________*/   /*____________WP Testing Plugin Option_____________*/ //Adding "WP Testing Plugin" Menu To WordPress -> Tools function wp_testingPlugin() {     //  add_management_page( $  page_title, $  menu_title, $  capability, $  menu_slug, $  function);                  Menu Under Tools     add_management_page("WP Testing Plugin By Hassan", "WP Testing Plugin", 'activate_plugins', "WP-Testing-Plugin", "wp_testingPlugin_admin"); } add_action('admin_menu', 'wp_testingPlugin'); /*__________________________________________________________________*/ ?> 

And this is my_functions.php file.

<?php /****************************************************************************/ //Garb The Function Parameter /****************************************************************************/ $  Function = $  _POST['Function'];   /****************************************************************************/ // Run Search Function /****************************************************************************/ if ($  Function == "DataFunction"){      if(!isset($  _POST['WhatToSearch'])){         $  WhatToSearch = "Nothing";     } else {         $  WhatToSearch = $  _POST['WhatToSearch'];     }      echo "<div class='success'>SUCCESS: Function Is Working Perfectly And Getting Data ".$  WhatToSearch.".</div>"; }  /****************************************************************************/ // Run Another Function /****************************************************************************/ if ($  Function == "InfoFunction"){      if(!isset($  _POST['WhatToKnow'])){         $  WhatToKnow = "Nothing";     } else {         $  WhatToKnow = $  _POST['WhatToKnow'];     }      echo "<div class='success'>SUCCESS: Function Is Working Perfectly And Getting Data ".$  WhatToKnow.".</div>"; }  ?> 

But my code is not working and not hitting my_functions.php file even. Whats the problem here? Need basic step only to work in this patteren. Currently, I am not sure I am even implementing this correctly as I never used WP AJAX before. So right now, my objective is just to get a basic example working. I appreciate any suggestions on how to accomplish this.

Thank you!

Website Development in Today’s Time

I would like your little bit of Help in giving me your views about building a website.

I want to build a website on "Providing SEO Services" like Giving out Analysis Reports asked for the Contents by a enquirer. Most probably I want to put some Sample Reports in it as well. So I am confused on how to start with it and where to end it.

1) What type of Website Builder should do the job easily for me. I used to work on "Frontpage 2003" before and I only know how to work on it only. How much…

Website Development in Today's Time

Customize default Prompt options (camera to share) when I trigger camera in Firefox with code development

I am having 2 cameras in my PC. When I try to trigger camera in firefox it always opens a permission prompt box with a webcam options. But I don’t want to show the camera options in the prompt box. So Is there any customizable thingy to customize the Prompt box for firefox by updated any javascript changes (I am a developer. So want to fix it by code updation itself for my web application) Anyone please help me resolve this problem ?

What’s a good resource to learn about advanced character and narrative development?

I’ve seen the “50 questions to ask yourself about your character” lists. Those are very helpful early on and I still use them after 10 years of roleplay.

I think I’d like to move into more advanced techniques. Things I can do as a player to wow other players. How to handle complicated situations like “I’m playing a god character who is extremely powerful, and I don’t know how to entice them since they already have everything”.

What would be a good resource for this?

Character development question for a god of Knowledge and Machines: How to make a god an interesting character?


System

We are playing a custom system, and in the system we are all gods that create a universe, having mortals with a primary planet. The mortals are in the early iron age.

There is a rotating GM, but one main GM that has the final say. During the session, players are encouraged to take creative powers to add to the world, so decisions about what is going on are somewhat handled by players, but again final say goes to the current GM.

Gods

There are many gods, some npc, some pc.

Each god has 2+ attributes, e.g: Fire and Honor, or Transformation and Storytelling. There are five PCs and one rotating GM. As gods level up, they may take on new attributes.

Each god has a realm, and the realms can be though of as part of the character. The gods can also create things and control them, for instance, my god has an elevator which “takes you where you want to go, unless it thinks there’s somewhere else you should be”. So, if the PCs use my elevator, I can choose to send them somewhere besides where they want to go.

Threats

The threats that come up in session tend to be concerning other NPC gods, and maybe to a much milder degree PC gods. An example threat might be a trickster god stealing the aurora and requiring someone a mortal to purchase it back from him, or the god of the mortal world being in pain from the mortals digging into it, and our party has to find a way to solve the issue.

My Character

My god is the god of Knowledge and Machines. He’s similar to Will Rogers in manner, knows godly amounts of knowledge, uses machines to benefit mortals. He has buddhist master levels of patience. Nothing much threatens him really.

My character’s backstory

My character came about when the king of the gods wanted to know the answer to a riddle, and created my character.

My character helped create the planet the mortals live on. He has a realm that appears to be a serene countryside, but is really made up of machines.

Eventually, the king of the gods basically disintegrated, and my god was exposed to the timeline of a previous incarnation of the universe, before my god existed. This caused his mind to fragment into two realities and started “corrupting” him. This is where I have a few ideas, but I’m not sure how to execute them.

Threats

The threats that come up in session tend to be concerning other NPC gods, and maybe to a much milder degree PC gods. An example threat might be a trickster god stealing the aurora and requiring someone a mortal to purchase it back from him, or the god of the mortal world being in pain from the mortals digging into it, and our party has to find a way to solve the issue.

Question(s)

So, I guess I don’t know where to go with my character. There’s no real change to be had as a normal healthy god, so I introduced the corrupted aspect. I’m trying to

  • How should I interact with the other god PCs in interesting ways without antagonizing them as a corrupted god?
  • How can I redeem my god and bring him back to a non-corrupt state, but still leave room for growth? His original “healthy” form was too perfect and didn’t have room for growth. His corrupted form is more interesting, but I feel like it can be too antagonistic.
  • How can I get my god to take action? In the past he tended to be fairly passive, because he values allowing others to find their own meaning and not interfering with their quest to find meaning, even if that meant allowing them to destroy or steal something he owns. Now that he’s corrupted, I’m having him get upset about things being “not perfect”, and trying to “fix” them, or even just outright destroy them.

Untraceable software development

My goal is to develop a piece of software which is illegal in my country. Obviously I don’t want anyone to be able to trace the code back to me or prove that I developed it after deployment. What precautions would be needed? Which pitfalls need to be avoided? Is there a tutorial?

I would suspect that full drive encryption on your development machine and internet connectivity over Tor are required.

What setup would be needed when developing in countries with political repression or similar conditions?