Agile Musings

Saturday, October 14, 2017

How can I create images with transparent backgrounds?

I needed a simple image with a transparent background. I found this Stack Overflow post that worked well for me, "How can I create transparent images in MS Paint?"

Try Paint.NET for size. I tried GimpShop before, but did not like it. Paint.NET is to MS Paint what Notepad++ is to Notepad :)
To change an image to have a transparent background:
  1. Install Paint.NET
  2. Download AlphaMask plugin
  3. Extract AlphaMask.dll to \Paint.NET\Effects (note you will likely need to unblock the file)
  4. Open Paint.NET
  5. Open your file
  6. Copy the content you want to make have a transparent background (ctrl+a, ctrl+c to select all and copy)
  7. Effects Menu > Alpha Mask...
  8. check Invert Maskcheck Mix Alpha, leave checked Paste from Clipboard
  9. Click OK
  10. File Menu > Save as, save as type PNG (*.png)
  11. Defaults are fine, OK one last time
These are the steps I took to create a 16x16 sized icon.

I found a larger example with a white background.
I used snipping tool to get a semi-square size from it
I used this to convert it to a 16x16 ico file. http://image.convertstandard.com/ToICO16x16.aspx
I renamed it to a png. 
I used this stack overflow post and paint.NET to make the background transparent.

Friday, September 15, 2017

How to Coil Cables



https://youtu.be/pEd7ru24Vx0

How to embed a FaceBook video on a web page

From Facebook's Embedded Video

"With the embedded video player you can easily add Facebook videos and Facebook live videos to your website. You can use any public video post by a Page or a person as video or live video source."

In the "URL of video" textbox, paste in the url of the public FB video you want to share.

Click the "Get Code" button.

For blogger add a "HTML/JavaScript" Gadget and add the step 2 code. I like to move it to the bottom.

Paste the Step 3 code in the html of your web page.

Friday, September 08, 2017

Changing your own password on a RDP session on Windows Server 2012 R2


From http://rajdude.com/blog/changing-your-own-password-on-a-rdp-session-on-windows-server-2012-r2/

1. Click Start
2. Type osk (to bring up the on screen keyboard)
3. Hit enter
4. Once the on screen keyboard is open, hold ctrl+Alt on your physical keyboard, then click on the  del key in the on screen keyboard.
5. Minimize the on screen Keyboard
6. Click Change a password.

Saturday, September 02, 2017

Invert Image Colors Online

Change this

To this



Windows 7: How To Adjust for Best Performance

This is how to set your Windows 7 installation to "adjust for best performance"

- Click start button
- Right click on computer, choose properties
- Click Advanced system settings
- Click the Settings button in the Performance section
- Select the "Adjust for best performance" radio button and apply

See also, http://kb.xploretech.com/KnowledgebaseArticle10738.aspx

I check "Use visual styles on windows and buttons" because I think it looks too much like Windows 95 otherwise.

Thursday, August 24, 2017

Javascript and 'undefined'


I like this course on JavaScript. Yesterday, I remembered what I learned about 'undefined'. He recommends not ever setting a variable to 'undefined'. When I searched the project I am working on, I saw many, many cases where it was being set in the jquery and modernizr libraries.

Either way, is it a valuable distinction to know the difference between "is not defined", null and undefined.

If you have an account you can find this lesson after you have logged in by going here.

You can find it in the course overview in the "Execution Contexts and Lexical Environments". The lesson is called "Conceptual Aside: Javascript and 'undefined'"