A little something about everything

internet marketing and website development made simple..

Fixed height, Jssor slider

A simple solution to set a fixed height but still have an adaptive/responsive width utilizing the jssor slider.

Change the code from:

<div id="slider">

To:

<div id="slider" style="width:auto !Important; ">

Exploitable LDAP server used for an attack: Microsoft Active Directory / Exchange Server

You've just received notice that your Active Directory server is being used as part of a wide scale dDoS attack. Here is how you can fix it.

Go to the firewall settings on the active directory server or reported server IP and look for the following rules.

  • Active Directory Domain Controller - LDAP (TCP-In)
  • Active Directory Domain Controller - LDAP (UDP-In)
  • Active Directory Domain Controller - LDAP for Global Catalog (TCP-In)
  • Active Directory Domain Controller - Secure LDAP (TCP-In)
  • Active Directory Domain Controller - Secure LDAP for Global Catalog (TCP-In)

For each of these alter the rule by choosing the Scope tab and entering only IP addresses that should have access to LDAP information. For example, Microsoft Exchange Servers within your network that need access to LDAP.

For assistance securing your network or if you are looking for hosted exchange services check out Area51.mn.

 

How to show/hide a asp.net sub element with jquery

This method allows you to show/hide a form element without making another request against the server. It also works when the show/hide element is required by the asp.net code behind.

You can use any type of sub element under a dropdown with this script. You will need to use a CDN or download and host your own jquery-1.3.2.min.js file.

SCRIPT

<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function() { $('#<%= Dropdown1.ClientID %>').change(function() { if (this.value=="My Value") { $('#<%= Element1.ClientID %> ').css({ visibility: 'visible' }); } else { $('#<%= Element1.ClientID %> ').css({ visibility: 'hidden' }); }}); }); </script>

 

HTML

<asp:DropDownList runat="server" ID="Dropdown1" class="required" >
<asp:ListItem Value=""> none</asp:ListItem>
<asp:ListItem Value="My Value">Some Text Here</asp:ListItem>
</asp:DropDownList>

<!-- place any element here with id="Element1" -->

text-shadow not working in chrome, css tricks

Here is the sample,

Text Shadow

And with no further adieu, here is the code:

for chrome:

  • text-shadow: -3px 3px 2px rgba(0,0,0,1);

For MS Browsers:

  • text-shadow: -3px 3px 2px 1px rgba(0,0,0,1)

For Both:

  • text-shadow: -3px 3px 2px rgba(0,0,0,1)
  • text-shadow: -3px 3px 2px 1px rgba(0,0,0,1)
Since CSS is read top down you can just place the version needed for crome above the general use/preferred method.