If your megaflow overflow (d2) pipe starts leaking water then this is what you do…
Friday, 19 May 2017
Scanning Tesco receipts via Canon MG5751
- Use Canon IJ Scan Utility (start, scan, top result)
- Choose Document, with settings 300dpi and png, filename tesco
- Scan each page individually
- Then use irfanview to combine the images into one tif file, (options, create multi page tiff, compression ccitt fax 4)
- Upload that as single receipt option to shop and scan
Wednesday, 3 May 2017
Tuesday, 28 March 2017
Thursday, 23 February 2017
DELL 968 Printer problem–Cartridge slams against printer wall
Fix was as simple as removing the cartridges, then turing off the printer at the plug socket on the wall, then squeezing the drive belt and computer cables that connects to the cartridge compartment, with my finger and thumb a few times.
Many thanks to the forums for posting this fix here, has saved me the cost of a new printer …
http://en.community.dell.com/support-forums/desktop/f/3514/t/6603745
Wednesday, 15 February 2017
Resharper shorcut cheat sheet
Quite by chance today I stumbled across a new way to learn Resharper shortcuts.
In visual studio, when editing a file, tap the ctrl key three times in quick succession. This brings up the cheat sheet
Then hold down the Ctrl key, Shift Key, or Alt Key when the dialog is open, and you'll see what short cuts are applicable to the development pane that you're in
Thursday, 12 January 2017
Macros alternative for VS 2013 /2015
Finally an alternative to
https://vlasovstudio.com/visual-commander/professional_edition.html
which lets you record as well…
Find action constants for dte.Find listed here…
https://msdn.microsoft.com/en-us/library/aa301226(v=vs.71).aspx
e.g.
dte.ExecuteCommand("Edit.Find");
dte.Find.FindWhat = "DROP CONSTRAINT";
dte.Find.Target = 1; //vsFindTarget.vsFindTargetCurrentDocument;
dte.Find.MatchCase = false;
dte.Find.MatchWholeWord = false;
dte.Find.Backwards = false;
dte.Find.MatchInHiddenText = false;
dte.Find.PatternSyntax = 0; // vsFindPatternSyntax.vsFindPatternSyntaxLiteral;
dte.Find.Action = 1; //vsFindAction.vsFindActionFind
Wednesday, 4 January 2017
Edit.SelectToLastGoBack in Visual Studio
Very handy shortcut for this Ctrl + = in visual studio. Basically selects all the text between the last two navigation points you were looking at in a text file.
Friday, 4 November 2016
Powershell for finding hotfixes
More full version:
$wu = new-object -com “Microsoft.Update.Searcher”
$totalupdates = $wu.GetTotalHistoryCount()
$all = $wu.QueryHistory(0,$totalupdates)
# Define a new array to gather output
$OutputCollection= @()
Foreach ($update in $all)
{
$string = $update.title
$Regex = “KB\d*”
$KB = $string | Select-String -Pattern $regex | Select-Object { $_.Matches }
$output = New-Object -TypeName PSobject
$output | add-member NoteProperty “HotFixID” -value $KB.‘ $_.Matches ‘.Value
$output | add-member NoteProperty “Title” -value $string
$OutputCollection += $output
}
# Oupput the collection sorted and formatted:
$OutputCollection | Sort-Object HotFixID | Format-Table -AutoSize | Out-File c:\temp\output.txt
Further reading
https://github.com/tomarbuthnot/Get-MicrosoftUpdate
Thursday, 3 November 2016
How to configure the app pool recycle time from batch file
Stick the following in a configure_app_pool.bat batch file and run...
cls
@echo off
set last_five_chars_of_computername=%COMPUTERNAME:~-5%
echo.Running on %last_five_chars_of_computername%
SET recyle_time=01:55:00
IF "%last_five_chars_of_computername%" EQU "BAP01" SET recyle_time=01:55:00
IF "%last_five_chars_of_computername%" EQU "BAP02" SET recyle_time=01:56:00
IF "%last_five_chars_of_computername%" EQU "BAP03" SET recyle_time=01:57:00
REM CHOICE /C 123 /N /M "Enter 1 for bap01, 2 for bap02 or 3 for bap03, or press Ctrl+C to cancel"
REM SET answer=%ERRORLEVEL%
REM IF %answer% EQU 1 SET recyle_time=01:55:00
REM IF %answer% EQU 2 SET recyle_time=01:56:00
REM IF %answer% EQU 3 SET recyle_time=01:57:00
echo setting apppool recycle time to %recyle_time%
set recycle_period=1.05:00:00
echo setting apppool recycle period to %recycle_period%
setlocal
set servers=Beacon@RRA
set servers=%servers:@=,%
for %%a in (%servers%) do (
FOR /F "delims=," %%i in ('%systemroot%\system32\inetsrv\appcmd list apppool /name:"$=*%%a*" /text:name') do (
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo Setting up app pool: "%%i"
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
call:setFunc "%%i"
)
)
goto :eos
:eos
endlocal
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo Please verify above configuration changes
echo Then press any key to exit
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
pause
@echo on
goto:eof
::--------------------------------------------------------
::-- Function section starts below here
::--------------------------------------------------------
:setFunc
echo.
echo ***** BEFORE ******
%systemroot%\system32\inetsrv\APPCMD list apppool /apppool.name:"%~1" /config
%systemroot%\system32\inetsrv\APPCMD set apppool /apppool.name:"%~1" /recycling.periodicRestart.time:%recycle_period%
%systemroot%\system32\inetsrv\APPCMD set apppool /apppool.name:"%~1" /+recycling.periodicRestart.schedule.[value='%recyle_time%']
%systemroot%\system32\inetsrv\APPCMD set config /section:applicationPools /[name='"%~1"'].recycling.logEventOnRecycle:Time,Schedule,Memory,IsapiUnhealthy,OnDemand,ConfigChange,PrivateMemory -commit:apphost
echo.
echo ***** AFTER ******
%systemroot%\system32\inetsrv\APPCMD list apppool /apppool.name:"%~1" /config
Wednesday, 7 September 2016
Facebook vanity IPv6 Address
https://discuss.howtogeek.com/t/facebook-vanity-ipv6-address/11089
Wonder how much that IPv6 address cost them then.
ping facebook.com Pinging facebook.com
Reply from 2a03:2880:2110:df07:face:b00c:0:1:
How to find the last interactive logons in Windows using PowerShell
Use the following powershell script to find the last users to login to a box since a given date, in this case the 21st April 2022 at 12pm un...
-
Quite by chance today I stumbled across a new way to learn Resharper shortcuts. In visual studio, when editing a file, tap the ctrl key thre...
-
http://www.jaguarforums.com/forum/s-type-s-type-r-supercharged-v8-15/key-fob-battery-replacement-write-up-faq-54380/ NOTE: MAKE SURE YOU DO ...