Minnesota Web Developer | A little something about everything...

Minnesota Web Developer

A little something about everything...

Explosion at Boston Marathon, Texas plant explosion and other top news story email spam links to mass malware

Many of these emails come across as simple links, going to the link will in most cases infect your computer with some malicious software which will in turn redistribute these links via email to even more users. The simple emails contain a link to an IP address or website followed by /news.html, /boston.html, or other related terms.

Its best to report these emails as spam or simply delete them.

If you have gone to this site you can check for infection by looking for the following registry entry:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\SonyAgent: "C:\WINDOWS\Temp\temp86.exe"

If this entry is on your computer you are now one of the people sending out these emails.

You should contact your local IT professional to remove the infections.

How to setup windows 2012 Domain Controller / Active Directory

After installing windows server and completing the standard windows updates, follow these simple steps.

  1. Verify you have a static IP and networking setup.
  2. Open Computer Management
    1. Update/Change the computer administrator account
    2. restart
  3. Open Server Manager
  4. Select Local Server
    1. Update Computer name and workgroup
    2. restart
  5. Add roles and Features
    1. Select Active Directory Domain Services, accept popup
    2. Select DNS Server
    3. Next -> Install
    4. Once complete, from notifications select "Promote this server to a domain controller" option.
    5. Select add a new forest and input your domain name,
    6. Next
    7. Select function level or leave default if you have no older servers that you plant to connect
    8. pick a DSRM password
    9. Next -> Install
    10. The computer should reboot itself now

Setup should now be complete.

New Fire Safety Equipment Website Design for Fire Safety USA


Fire Safety USA, Inc - Rochester, MN

Type: eCommerce, Fire Safety Equipment

Fire Safety USA is a Rochester, MN based business providing quality fire safety equipment and Firefighter gear to city and volunteer firefighters across the United States as well as individuals around the world. If you're looking for quality equipment at the best prices check out their fire equipment website, call them at 1 (877) 699-3473 or stop in to the store at:

Fire Safety USA, Inc.

3253 19th Street NW
Rochester, MN 55901

How to target specific browsers within certain platforms, such as mozila & safari within mac for CSS design

You would first need to target the operating system which can be best accomplished by using javascript such as:

if(navigator.userAgent.indexOf('Mac') > 0) {

//code

}

Now in order to target the browser version you can use things such as if ie triggers for internet explorer

<!--[if (gt IE 6)&(lte IE 7)]>
<link href="/css/IE.css" rel="stylesheet" type="text/css">
<![endif]-->

or webkit for mozila or safari

@media screen and (-webkit-min-device-pixel-ratio:0) {
your css here
}

final code to target internet explorer on mac would look something like this:

if(navigator.userAgent.indexOf('Mac') > 0) {

<!--[if (gt IE 6)&(lte IE 7)]>
<link href="/css/IE.css" rel="stylesheet" type="text/css">
<![endif]-->


}

 

 

 

Slow Network Performance on Windows Server 2008 R2 or 2012 VPS RDP

Many things can cause these issue, here are a few things you can do to improve performance on your Windows Server 2012 VPS on Hyper-V.

  1. Make sure both your switch and NIC are set to the same speed, Auto can cause lots of issues.
    • Verify your router service speed. If you do not manage the router check with the person or company that manages it. Otherwise if you have a cisco router you can follow this basic commands.
      > password
      > enable
      > password
      > show interface [InterfaceName#/#] capabilities (example: FastEthernet#/#)
      > exit
    • Verify what speed your switch is running, if the switch is not yours ask your service provider. Assuming you have a cisco switch login to the switch via terminal or  telnet session, if the value for the switch is different than the router then you will need to use admin credentials. Then you will need to edit config mode for the correct interface. Here are some basic instructions. (If you screw up your network because you don't know what you are doing I am not liable! you have been warned)
      > password
      > Enable
      > password
      > Show interface (interfacename example: FastEthernet#/#) capabilities
      > Config Interface (interfacename example: FastEthernet#/#)
      > Speed 100 (this number should match your router service speed)
      > duplex full (this should match your router duplex)
    • To do this on your server simply open network and sharing center, select "change adapter settings", click advanced tab. Now scroll down until you find something like "Speed Duplex" and set this to the same as your switch. (ie 100Mbps Full Duplex, or if you have a Gigabit switch 1 Gbps Full Duplex".
  2. Jumbo Packet / Jumbo Frames should be disabled in most cases for best performance.
  3. Receive Buffers can be increased in increments of 64 if you have sufficient system memory to support the increase. Maximum is generally 2048 or 8MB for VPS.
  4. Transmit Buffers can be increased to provide improved performance. Maximum is generally 16384 or 8MB for VPS.
  5. Preferred NUMA node can be adjusted to a specified node other than System Default if the default node is under heavy load to improve system network performance.
  6. Max Number of RSS Processors (this setting can have an impact on CPU performance if you have a large number if cores, in some cases it may be best to specify a lower number of cores. If you notice that core #1 is at 100% utilization you can try increasing this number.)
    • In some cases you may also have to increase the Maximum Number of RSS Queues if your CPU #1 is at 100% to see if it has a positive impact.
  7. Offload (Offloading lowers CPU load and in most cases has little network performance benefit when disabled so you should leave them enabled)
    • IPsec Offload can lower CPU usage.
    • IPv4 Checksum Offload
  8. Decreasing Interrupt Moderation Rate will increase CPU utilization. (if you have CPU to spare you can decrease this to the lowest value or disable and adjust from that point)
  9. Enable or disable flow control can make a slight difference in performance depending on your adapter(s).