[Quick Links] |
Search Site

Site Details

rendered in 0.0539 secs

Captain's Log | Wednesday 28th of October 2015

Disable form submit button after submitting to stop multiple clicks (the easy way) | submission

<input type="submit" name="mysubmit" onClick="this.form.submit(); this.disabled=true; this.value=\'Processing…\'; " value="Email"/>

where is the scanpst file located? | scan pst source

Outlook 2013

32-bit WindowsC:\Program Files\Microsoft Office\Office15
64-bit WindowsC:\Program Files (x86)\Microsoft Office\Office15
64-bit OutlookC:\Program Files\Microsoft Office\Office15
Click-to-RunC:\Program Files\Microsoft Office 15\root\office15

Outlook 2010

32-bit WindowsC:\Program Files\Microsoft Office\Office14
64-bit WindowsC:\Program Files (x86)\Microsoft Office\Office14
64-bit OutlookC:\Program Files\Microsoft Office\Office14

Outlook 2007

32-bit WindowsC:\Program Files\Microsoft Office\Office12
64-bit WindowsC:\Program Files (x86)\Microsoft Office\Office12

Outlook 2003

32-bit WindowsC:\Program Files\Common Files\System\MSMAPI\<locale ID>
64-bit WindowsC:\Program Files (x86)\Common Files\System\MSMAPI\<locale ID>


Captain's Log | Friday 16th of October 2015

When vssadmin list writers shows a failure, how do I know which service it relates to? | SBS Backup Failed | source

VSS WriterService NameService Display Name
ASR WriterVSSVolume Shadow Copy
BITS WriterBITSBackground Intelligent Transfer Service
COM+ REGDB WriterVSSVolume Shadow Copy
DFS Replication service writerDFSRDFS Replication
DHCP Jet WriterDHCPServerDHCP Server
FRS WriterNtFrsFile Replication
FSRM writersrmsvcFile Server Resource Manager
IIS Config WriterAppHostSvcApplication Host Helper Service
IIS Metabase WriterIISADMINIIS Admin Service
Microsoft Exchange Replica WriterMSExchangeReplMicrosoft Exchange Replication Service
Microsoft Exchange WriterMSExchangeISMicrosoft Exchange Information Store
Microsoft Hyper-V VSS WritervmmsHyper-V Virtual Machine Management
MSMQ Writer (MSMQ)MSMQMessage Queuing
MSSearch Service WriterWSearchWindows Search
NTDSNTDSActive Directory Domain Services
OSearch VSS WriterOSearchOffice SharePoint Server Search
OSearch14 VSS WriterOSearch14SharePoint Server Search 14
Registry WriterVSSVolume Shadow Copy
Shadow Copy Optimization WriterVSSVolume Shadow Copy
SMS WriterSMS_SITE_VSS_WRITERSMS_SITE_VSS_WRITER
SPSearch VSS WriterSPSearchWindows SharePoint Services Search
SPSearch4 VSS WriterSPSearch4SharePoint Foundation Search V4
SqlServerWriterSQLWriterSQL Server VSS Writer
System WriterCryptSvcCryptographic Services
TermServLicensingTermServLicensingRemote Desktop Licensing
WIDWriterWIDWriterWindows Internal Database VSS Writer
WINS Jet WriterWINSWindows Internet Name Service (WINS)
WMI WriterWinmgmtWindows Management Instrumentation


Captain's Log | Wednesday 14th of October 2015

Draytek router emulators | simulator dreytek


AP-900 - http://eu.draytek.com:10900/
AP-800 - http://www.draytek.com/demo/VigorAP800/v1.0.4/
Vigor 3900 - http://60.250.189.150:3900/
Vigor 2830 - http://eu.draytek.com:12830/
Vigor 2860 - http://eu.draytek.com:12860/
Vigor 2920 - http://eu.draytek.com:12920/

book review: Clean Code - A Handbook of Agile Software Craftsmanship


An average book which emphasizes putting in the effort to make your code as readable as possible. A lot of code review inside which isn't great if you're listening to it in the car rather than have a hard copy in front of you, but enough theory and thought behind the ideas to still make it a good listen.


how to use private class variables in your tests | phpunit codeigniter ci kenjis/ci-phpunit-test


class Bfmyops_test extends TestCase
{    
    private $nextMarketId;
  
    public function setUp()
    {
        $this->resetInstance();
        $this->CI->load->model('Bfmyops');
        $this->nextMarketId = $this->CI->Bfmyops->getNextRaceMarketId();
    }

    public function testInsertPriceAnGetNextRaceMarketId()
    {
        /**
         * we used to query todays_card_basic and get a marketid then pass that in InsertPrice, but sometimes the dev DB was empty which would cause tests to fail. This way we get to test two methods and make sure the marketId is valid.
         * once inserted we get the last successful insert ID and then make sure this is an int. we would then get a failure if the in sert fails as it wouldn't return an insert_id
         */
        $this->CI->Bfmyops->insertPrice($this->nextMarketId);
        $final_insert_id = $this->CI->db->insert_id();
        echo "testInsertID last id inserted: ".$final_insert_id;
        $this->assertInternalType("int", $final_insert_id);
    }

    public function testGetNextRaceStartTime() {
        $test_passed = FALSE;

        $next_race_start_time = $this->CI->Bfmyops->getNextRaceStartTime();
        if($next_race_start_time > date('Y-m-d H:i:s')) {
            $test_passed = TRUE;
        }
        $this->assertTrue($test_passed);
    }

    ... then you can use $this->nextMarketId in another method further down without having to make another call to the model ...
}



Captain's Log | Friday 2nd of October 2015

book review: the economics book - DK


I changed my mind half way through this one. At first it just seemed like a load of different opinions and theories about many different topics which is all well and good but the overall read doesn't give you a message which is what I usually need to hear reiterated for it to stick. But as the book went on I began to take it for what it was and began to enjoy the complexities and many aspects of economics which pretty much apply to all walks of life. A worthy read but not a page turner.

how to use robocopy on windows?

robocopy "D:\source_folder" "D:\dest_folder" /e /r:5 /w:10 /COPY:DATSOU /LOG:C:\Copyresults.txt

how to check if datetime is same as today in codeigniter | ci datetime compare src

$this->db->where('DATE(YourDatetimeCol) >=', 'DATE(NOW())', FALSE);

what should I keep in my models/ libraries/ helpers/ third_party/ directories in codeigniter? | 3rd_party, 3rdparty, directory


As I template I use:
  • models/ for my models and actions specific to this project
  • libraries/ actions that I've written that will be used in this project and other personal projects
  • helpers/ actions from other people/git hub that can be used in this project and other projects
  • third_party/ actions from other people that are only relevant to this project