How to deal with aggressive site crawler bots.

If you have a website that is being relentlessly attacked by bot farms. Try adding this line to the bottom of your site’s htaccess file. If you do not see the bot listed, then you can simply add on to this list.

BrowserMatchNoCase (libwww-perl|wget|LieBaoFast|Mb2345Browser|zh-CN|Kinza|Bytespider|Baiduspider|Sogou|Datanyze|AspiegelBot|adscanner|serpstatbot|spaziodat|undefined) bad_bot

How to fix the SASS CSS multiple project preprocessor issue in the Apache NetBeans IDE.

Create a custom Windows .bat file and add the following code to the file.

setlocal EnableDelayedExpansion
sass %4:%5 -s compressed

Give the file the correct permissions for your system, and reference this newly created .bat file as the Sass Executable within NetBeans. You should now be able to use the native Watch and Compiler option functionality of NetBeans without getting an error, or having to set the compiler options and watch folders within the bat file.

HTML Email: How to vertically align a superscript in Microsoft Outlook

<p style="font:20px/24px  Arial, Helvetica, sans-serif; Margin:0 0 15px 0; color:#000000; mso-line-height-rule:exactly;" >Lorem ipsum dolor sit amet<sup style="font-size:12px; line-height:0px; vertical-align:8px;">®</sup>, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam</p>
  • Add “mso-line-height-rule:exactly” to the paragraph’s inline style attribute where you want the superscript to display.
  • In the <sup> tag’s style attribute, reset the line-height to 0px
  • Take the font size you have set for the paragraph and reduce it by about 60%. In this example the superscript font size would be 12px when the paragraph font size is 20px.
  • Now subtract that value from the font size -> 20px – 12px = 8px
  • Use that amount for the vertical alignment on the superscript.
    <sup style=”font-size:12px; line-height:0px; vertical-align:8px;”>®</sup>