[Quick Links] |
Search Site

Site Details

rendered in 0.0832 secs

Captain's Log | Tuesday 22nd of December 2015

How do I install telnet on windows from command line as admin?


rum cmd as an admin

dism /online /Enable-Feature /FeatureName:TelnetClient

How to install phpunit on ubuntu mint?


It is in the default repos but the apt-get won't bring down the phpunit/Dbunit module which I use for testing. So in this instance it's best heading over to the official installation documentation and following the instructions there. Date of writing it's only 3 lines to install but I'd recommend checking the link to make sure nothing's changed.
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit

Hi, when running phpunit I'm getting: Cannot modify header information - headers already sent by (output started at /usr/local/lib/php/PHPUnit ..blah


  Update: The first code snippet is now just a full phpunit.xml as little bits were being added here, there and everywhere. See the second code snippet and the rest of the section for the original answer.
Update2: Too much maintaining keeps the snippet upto date with html entities and shit, then them not working when copying into a new file. So just check an existing projects repo/phpunit.xml
vim phpunit.xml (in root of your project)
change:
<phpunit bootstrap="application/tests/bootstrap.php">
to:
<phpunit bootstrap="application/tests/bootstrap.php" stderr="true">
:wq
  note to rp: when making this change also review the <directory> element and make sure it's just "application" rather than "application/tests" so that filenameTest.php from you libraries directory are also covered

I've setup my test but it doesn't seem to get included / executed when I run phpunit. Why is it being ignored?


Make sure your test filename ends with the word "Test" and the "T" in Test must be capitalised otherwise it will be ignored. Example (assuming the search and highlight results on loopnova.com site haven't made the word Test, lower-case):
application/tests/models/Tracker(T)est.php
Also make sure your containin test methods start with the word test (not need for capital "T" on the method name, example:
class TrackerTest extends CITestCase
{      
    public function setUp()
    {
        $this->CI->load->model('tracker_model');
    }
        
    public function testRandomColour()
    {

What are the ICU Scanner thingie details to get emails to go from one place to another?

server: fghgf.com
required: START TLS security
Port: 587
threeones_scanner.fghgf / P****6******
DNS settings for copier: 8.8.4.4 / 8.8.8.8
then view the live log file here and you should see the connection being made and any potential error messages. If you cannot find the connection, it looks like the copier is being blocked from hitting external. Maybe try the external IP of vpnova rather than the hostname.
don't make any typos, the server bans any IPs when SMTP authentication fails once to stop brute force attacks.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Please let Ryan at ICUGROUP know who is using the device so he can make a note. Then if any changes are to be made to the account/domain he can contact each user and amend the setup.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

How can I edit the grub boot menu to change my OS selection time out?

sudo vim /etc/default/grub
...
:wq
sudo update-grub
if you're looking for more than just changing the time out option, i.e changing order or OS selections, google: sudo apt-get install grub-customizer (think it requires an additional ppa)