When an admin/teacher assigns a role to a user in course or category context you can send an email to the user which the role has been assigned by modifying the following moodle lib file.
/var/www/html/moodle/admin/roles/assign.php
In the file around the lines 103-111 by adding email_to_user() moodle lib function you can send the email to the user from the moodle support user. Be careful that email_to_user() function accepts from and to users as moodle user objects so you can not write simply emails and send.
foreach ($userstoassign as $adduser) {
$allow = true;
if ($allow) {
role_assign($roleid, $adduser->id, $context->id);
email_to_user($adduser, $supportuser, "Your role has been assigned in Moodle", "You have been assigned as a ".$assignableroles[$roleid]." in the ".$contextname );
}
}
After you add this the user will receive an email with subject "Your role has been assigned in Moodle" and message ie. "You have been assigned as a Course creator in the Category: Mathematics"
3 Nisan 2017 Pazartesi
21 Şubat 2017 Salı
Ansible And Vmware
Do you know that you can manage your VMWARE virtual infrastructure with ansible. If you are a devops admin you can also use vRealize Orchestrator to provision test, product or beta stage servers for your developers. But if you do not need such an enterprise solution you also use Ansible to manage your vMWare infrastructure. As stated in Ansible web page you can use ansible for
http://docs.ansible.com/ansible/list_of_cloud_modules.html#vmware
To be able to run vm modules you have the install the following python libraries.
pysphere
PyVmomi
- Managing vSphere datacenters, clusters, hosts and guests
- VM template and snapshot management
- vSwitches, DNS settings, firewall rules and NAT gateway rules
http://docs.ansible.com/ansible/list_of_cloud_modules.html#vmware
To be able to run vm modules you have the install the following python libraries.
pysphere
PyVmomi
14 Şubat 2017 Salı
Linkedin Job Search Tricks
Trick 1:
You cannot find direct links to Linkedin Jobs page but if you visit
http://www.linkedin.com/jobs
You can search jobs even you are not authenticated with your Linkedin account.
Trick 2: If you search a keyword in the unauthenticated Linkedin Jobs page http://www.linkedin.com/jobs The location will be default USA. The last but the trick i love most is
Trick 3: If you make a search for a keyword when you logged in to your linkedin account. It will first search the jobs listed in your country if there is no result for the keyword, then you will see a link to search the keyword in the worldwide. Again there is no direct checkbox or setting for this. But if you use the following URL you can search your keyword worldwide.
https://www.linkedin.com/jobs/search?keywords=PUT_YOUR_KEYWORD_HERE&locationType=Y&orig=MDYS
for example if you want to search the jobs includes keyword "linux" in worlwide you can use the following url
https://www.linkedin.com/jobs/search?keywords=linux&locationType=Y&orig=MDYS
Trick 2: If you search a keyword in the unauthenticated Linkedin Jobs page http://www.linkedin.com/jobs The location will be default USA. The last but the trick i love most is
Trick 3: If you make a search for a keyword when you logged in to your linkedin account. It will first search the jobs listed in your country if there is no result for the keyword, then you will see a link to search the keyword in the worldwide. Again there is no direct checkbox or setting for this. But if you use the following URL you can search your keyword worldwide.
https://www.linkedin.com/jobs/search?keywords=PUT_YOUR_KEYWORD_HERE&locationType=Y&orig=MDYS
for example if you want to search the jobs includes keyword "linux" in worlwide you can use the following url
https://www.linkedin.com/jobs/search?keywords=linux&locationType=Y&orig=MDYS
Kaydol:
Kayıtlar (Atom)