DNS Java Search

I've always had to lookup current status of domain names for clients. Recently I decided why not create my own tools to help with the task.

Live Example http://selflogic.com/domain_tool/

Java documentation. http://docs.oracle.com/javase/7/docs/technotes/guides/jndi/jndi-dns.html#CONF

See the code below.

[More]

screen scrape code (Whois)

An example of a UDF and screen scraper

<form method="get">
	www. <input type="Text" name="string" value="<cfif isdefined('url.string')><cfoutput>#url.string#</cfoutput></cfif>">
	<input type="Submit" value="check this domain">
</form>
<cfif isdefined('url.string')>
	<cfhttp method="get" url="http://www.whois.com/whois/#url.string#"  result="test" resolveurl="true"></cfhttp>
	<cfset thisPage = test.filecontent>
	<cfset scraped = scrape(thisPage, '<div id="registryBlk">', '<div class="whois_rhs_column">', 'Available...')>
	<cfset scraped2 = scrape(scraped, 'Domain Name: ', '<br>','Available...')>
	<cfoutput>
		<hr>#thisPage#
		<hr>#scraped#
		<hr>#scraped2#
	</cfoutput>
</cfif>
<cffunction name="scrape">
	<cfargument  name="searchMe">
	<cfargument  name="startHere">
	<cfargument name="endHere">
	<cfargument name="notfoundmsg" default="">
	<cfset firstNum = Find(startHere, SearchMe)>
	<cfif firstnum eq 0>
		<cfset result = notfoundmsg>
	<cfelse>
		<cfset lastNum = Find(endHere,SearchMe,firstNum)>
		<cfset counting = lastNum - firstNum>
		<cfset result= Mid(searchMe, firstNum, counting)>
	</cfif>
	<cfreturn result>
</cffunction>

Flash detect code

This code is the best way to detect flash. It should work across browsers and even go back to ie6.

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
    function IsFlashInstalled () {
        var info = document.getElementById ("info");
        
            // Internet Explorer supports the mimeTypes collection, but it is always empty
        if (navigator.mimeTypes && navigator.mimeTypes.length > 0) {
            // Firefox, Google Chrome, Safari, Opera
            var mime = navigator.mimeTypes['application/x-shockwave-flash'];
            if (mime && mime.enabledPlugin) {
                var version = mime.enabledPlugin.description;
                info.innerHTML = version + " is installed.";
                return;
            }
        } else {
            if (typeof (ActiveXObject) != "undefined") {
                // Internet Explorer
                try {

var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.1"); info.innerHTML = "Flash is installed."; return; } catch (e) { } } } info.innerHTML = "Flash is not installed."; } </script>

<span id="info"></span>

<script> IsFlashInstalled (); </script>

Letter to OpenDNS

We are in the process of switching away from OpenDNS we will not use the free or pay OpenDNS product.

We are going to use DNSredirector + google DNS.

I believe bait and switch business plans are unethical and poor business.  I will not support such a business.  OpenDNS *had* a great name in the education and non-profit world.  Now you have a rotten name.

So long.

Shaun Loether

Why to stop using OpenDNS

OpenDNS Sucks for

 

We are prepared to stop using OpenDNS before March 15th.  We are going to use a competitors product DNSredirector + google DNS.  It is a far superior combo.  with Google DNS we don't have to deal with your ad supported typo and block pages and with DNSredirector we have the same protection.  DNSredir is only $20, for all 10 of our locations and hundreds of users.

All of that not to mention the high pressure bait and switch business plan.  I'm going to talk to all of the Houston area schools and non-profits we do business with and make sure they know there all better quality, far cheaper alternatives to openDNS.

OpenDNS turns goodwill to bad.

OpenDNS Sucks, OpenDNS Stinks, Do Not Want.

Rant: OpenDNS sucks - ABestWeb Affiliate Marketing Forum

OpenDNS Deluxe Dropped, Price Increase by 900%

Rubiks 3x3x3 solving

http://www.rubikssolver.com/

http://www.speedcubing.com/chris/3-solution.html

change-windows-7-logon-screen

http://www.intowindows.com/how-to-change-windows-7-logon-screen-easily-without-using-hacks-tools/

SQL Joining records Get newest.

Select t1.*
from Table  t1
where t1.Datestamp = (Select max(t2.Datestamp) from Table t2 where t2.id = t1.id)
 

Solve Rubiks 2x2x2

3 Steps to solve Rubiks 2x2x2

Step 1. Solve Layer 1

Step 2. R U R' U R U2 R'

Step 3: R' F R' B2 R F' R' B2 R2

http://www.speedsolving.com/wiki/index.php/OLL_%282x2x2%29

Use this scrambler to get a good randomization.

I can solve using only these 2 algorithms  45 seconds is my record.

More Entries