How to SCP copy to and from a remote server

To copy to a server (replacing 0.0.0.0 with the IP address) scp -i ~/.ssh/your-private-key.pem /source/file/location [email protected]:/target/file/location To copy from a server to your local machine within your current . directory scp -i ~/.ssh/your-private-key.pem [email protected]:acf.sql .

January 18, 2019 · 1 min · 35 words · icarnaghan

How to clear all breakpoints in a Visual Studio Solution

Click on Debug -> Delete All Breakpoints or press the shortcut key combination Ctrl+Shift+F9

September 2, 2018 · 1 min · 14 words · icarnaghan

How to embed images using PHPMailer

Use the AddEmbeddedImage method provided by the PHPMailer class. eg. $mail->AddEmbeddedImage(’test.gif’,’testImage’,’test.gif’); Parameters for AddEmbeddedImage($path, $cid, $name = ‘’, $encoding = ‘base64’, $type = ‘application/octet-stream’) $path = Path to the attachment $cid = Content ID of the attachment. Use this to identify the Id for accessing the image in an HTML form. $name = Overrides the attachment name. $encoding = File encoding $type = File extension (MIME) type. Example: <?php //Include the PHPMailer class include = ‘class.phpmailer.php’; ...

September 2, 2018 · 1 min · 96 words · icarnaghan

How to increase the length of a character varying datatype in Postgres without data loss

Run the following command: alter table TABLE_NAME alter column COLUMN_NAME type character varying(120); This will extend the character varying column field size to 120. Remember to change TABLE_NAME to the relevant table name and COLUMN_NAME to the relevant column name.

September 2, 2018 · 1 min · 40 words · icarnaghan

The Visual Studio component cache is out of date. Please restart Visual Studio. (mscorlib) - Microsoft SQL Server Management Studio

To fix the error message open the Disk Cleanup utility in Windows. Tick the Temporary files tick box and click on OK. Select **Delete Files ** Restart Microsoft SQL Server Management Studio and the error message will have disappeared.

September 2, 2018 · 1 min · 39 words · icarnaghan

You are not authorized to access when trying to connect to TFS account in Visual Studio 2015

To solve this problem you have to clean the cache folder on your machine. Press Win + R together to open the Run window Type in %UserProfile%\AppData\Local and click on **OK ** Navigate to the Microsoft\Team Foundation\6.0\Cache folder and delete all contents Restart Visual Studio and Re-Open your solution. The error message will disappear and all should be working again.

September 2, 2018 · 1 min · 60 words · icarnaghan

Amarok loops threw all items in playlist when trying to play mp3's using Ubuntu 9.04

When adding new items to Amarok in Ubuntu 9.04 the items do not want to play and Amarok only loops threw the whole playlist and no sound is heard. Follow the steps below in order to solve the problem STEP 1 Remove GStreamer ffmepeg video plugin, GStreamer extra plugins and Movie Player (GStreamer) via Add/Remove (Applications -> Add/Remove) STEP 2 Open a new Terminal session and type in the following command to install phonon-backend-xine: sudo apt-get install phonon-backend-xine ...

September 1, 2018 · 1 min · 101 words · icarnaghan

How to get information on your CPU using Linux

NOTE: This has been tested and tried on Ubuntu 9.04 and should work on other distributions. In the command line interface (CLI) type in the command below and hit enter. cat /proc/cpuinfo This will display all information about your CPU similar as to example below processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz stepping : 6 cpu MHz : 800.000 cache size : 3072 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm tpr_shadow vnmi flexpriority bogomips : 4521.73 clflush size : 64 power management: To only find the model name enter the following command: ...

August 31, 2018 · 2 min · 223 words · icarnaghan

How to install new brushes in Photoshop CS4

NOTE: This has been done and tested in Photoshop CS4 installed on Windows Vista Business Download your new set of brushes and copy the abr file eg. brushes.abr to the following directory “c:\Users\YOURNAME\AppData\Roaming\Adobe\Adobe Photoshop CS4\Presets\Brushes". NOTE: This path may differ in different versions of Windows Open Photoshop CS4 Press the F5 key on your keyboard The brushes window will now open At the top right hand corner press on the little down arrow ...

June 16, 2018 · 1 min · 102 words · icarnaghan

How to install a Module

Modules give Joomla! sites extra functionality by extending the capabilities of Joomla! Modules are small content items that can be displayed anywhere on your Joomla! site depending on the Design on the template. Modules are very easy to install using the Joomla! administrator. Modules may include: Main Menu, Top Menu, Template Choose, Polls, Login etc How to install using Joomla! 1.0.x Click on Installers Modules Browse for the File Click install and the new Module should now be installed ...

June 14, 2018 · 1 min · 104 words · icarnaghan