Development

Script to automate the flushing of the Windows DNS cache

| | | | |

The only way to *really* flush DNS without rebooting Windows. First determine the funky name (not sure what the proper label would be) for your network adapter. It may take some guesswork unless you're smarter than me. On some systems there are obvious labels next to the funky names, on others not. It seems to depend on the driver. Here's the command you type:

devcon listclass net

Once you've got the funky name, edit the following script to your needs and save it as a .bat file. This is the script I use on my own system:

Simple batch scripts to manage Windows network devices

| | | | |

This is a collection of scripts I use to manage Windows network adapters. They help me keep sane when using a Windows notebook. I work in several varied environments and am always moving and connecting in new locations. These scripts automate:

  • Flushing DNS – In a way that always works in every instance! Really! No rebooting ever again because ipconfig /flushdns only works half the time!
  • Disabling network adapters (useful for switching from LAN to WIFI and vice versa)
  • Enabling network adapters (ditto)
  • Recycling (disabling then enabling) network adapters

You can use a program like RunFast to pop off these scripts in just a couple keystrokes. Heck, I use RunFast to pop off just about anything I do in Windows at all, and I agonise over watching people scanning the screen to look for that menu item, the nested-menu item, that one icon somewhere in there, that file, bookmark or whatever. CLICK CLICK POP! I’m already there in three keystrokes. (I’m pimping RunFast here because it totally changed my Windows experience for the better). I can’t remember if it has an installer or not, but I can tell you that it doesn’t require installation. I just drag and drop it to new systems to get up and running, never needing to see the Start menu.

Finding filepaths greater than 255 characters on your system

| | |

This guy provides a very good solution for detecting filenames & paths longer than the Windows maximum of 255 characters. For whatever reason, many portions of the OS allow you to create filenames and paths in great excess of this, but many/most other portions of the OS and its hosted applications bomb out over these paths.

The Windows batch file which does the job (requires the GNU flavour of sed):

dir %1 /B /S | c:\No_Install\sed3028\sed -n '/^.\{255\}/p' > c:\filepaths_greater_than_255_characters.txt
start c:\filepaths_greater_than_255_characters.txt

TinyMCE

| | | |

I just installed the TinyMCE module for Drupal. This is my first posting with it. It let's me do stuff in a WYSIWYG environment like:

  • Bulleted lists
  • Font styles
  • CSS styles
  • Çustom ch∂r∂cters
  • Hyperlinks
  • Images
  • and more

It's got plugins for spell-checking, saving local html files, and so on.
So far, so good. Sealed

Okay, so I've noticed a number of glitches and features I am less than happy with. First off, tinyMCE likes to rewrite my HTML if I edit a previously created node. This would be fine and dandy, only it takes my pretty, well-formatted HTML and makes it a single, run-on line of code. Now even that would be okay if I was never going to have to see it again. However, tinyMCE only performs a small portion of the HTML tagging I tend to write on a regular basis. That small portion is the stuff I use in the greatest frequency, and so is sufficient for most jobs, but when I need to do something such as add a <code> or <blockquote> set of tags, I need to edit the raw HTML to do so. Now that tinyMCE has mangled the HTML, it is damn-near impossible to read or find anything. So...

Resolving permissions issues with hosted Cpanel accounts

| |

One of the reason I stick with hosted Cpanel solutions is because of the provided access via SSH. (An option which some hosting providers disable, but I never even consider signing up with those providers.) SSH allows me to have a lot more power in terms of administration -- you can't get much more control over your Linux environment than having shell access.

CSS Design: Custom Underlines

| |

I came across an article on A List Apart that discusses how to do custom underlines with CSS.

My "Drupal Items Watch" page

| | | |

These are some items I'm tracking on Drupal.org:

Forcing <br> to break how you want around images

| |

Having difficulty getting text to flow or break around an image like you want? The HTML tag <br> has an attribute called clear which allows you to control how text breaks or flows around left and right images. Possible values include "none", "left", "right" or "all". An example and a thorough explanation can be had here.

Great article on diff and patch

| |

New Firefox plug-in allows quick Google searches of Drupal.org

| | | |

A new plug-in has been released that installs quickly and adds an option to search Drupal from Firefox's built in search field (to the right of the URL field). Very useful if you're a Drupal user or developer.

Unfortunately, the site owner appears to have taken the page down which linked to these files. However, the files can still be downloaded at these links:

Drop the two files into your Firefox\searchplugins directory, restart Firefox, and you're all set to go.

Syndicate content