Removing checkboxes from a given list for CoursEval

Drag the button to the bookmark bar:
CE Student Remover

There is the source code:

String.prototype.trim = function() {
return this.replace(/^\s*|\s(?=\s)|\s*$/g, "");
};

Array.prototype.clean = function() {
for (var i = 0, loopCnt = this.length; i < loopCnt; i++) { this[i] = this[i].trim(); } }; Array.prototype.has = function(value) { for (var i = 0, loopCnt = this.length; i < loopCnt; i++) { if (this[i].trim() == value) { return true; } } return false; }; var stu = prompt("List").split(";"); stu.clean(); var inputs=document.body.getElementsByTagName('input'); for(var i=0;i

Using Swift Mailer 4 in Symfony 1.3


cd lib/vender
wget http://swiftmailer.org/downloads/get/Swift-4.0.5.tar.gz
tar xzvf Swift-4.0.5.tar.gz
mv Swift-4.0.5/lib swift

Add to “config/ProjectConfiguration.class.php”
require_once dirname(__FILE__).'/../lib/vendor/swift/swift_required.php';

Using Swift 4

$this->transport = Swift_SmtpTransport::newInstance($server);
//$this->transport = Swift_MailTransport::newInstance();
$mailer = Swift_Mailer::newInstance($this->transport);
$message = Swift_Message::newInstance($subject)->setTo($to)->setFrom($from)->setBody($body,'text/html');
$mailer->send($message, $failures);

Selecting/Unselecting all Checkboxes on a page

Some webpages have a lot of checkboxes, but do not provide “Check All” button. Here comes a solution for this. You will use the following link to create a bookmark in your browser to help you check all of them at once.

To install, simply drag the following links into your Firefox toolbar:

Select All Checkbox

Unselect All Checkbox

To use it, just open up the page with checkboxes you want to check. Click on the bookmark on the toolbar you just added. Then you will see the magic 😉

Works in Firefox and Safari 4 on any web page.