NERD INTEGRATION

Posting to my main website. This should auto cross-post to my Facebook page.

Skullcandy earbud comparison

So we have the Skullcandy INK’D series headset (in-ear) for 19.00 USD

Then we have the Skullcandy FMJ series headset (in-ear) for 69.00 USD

What’s the difference?!

INK’D have generic magnets, and go up to 100 mW, and are made of plastic with silicon cushions

FMJ have the best magnets, and go up to 500 mW, and are made of aluminum with silicon cushions

What does this mean?

If you’re listening to these on your ipod, or smartphone, you’re not going to get your money’s worth out of the FMJ series. Buy the INK’D ones for far less money. If you’ve got a soundblaster Audigy card in your computer, or you have some other means of listening to your tunes that provides a more high-performance experience get the FMJs.

If you’re going to be working out, go with the INK’D because they’re cheaper and when you sweat into them, you’re not sweating into a pair of earbuds that cost 70.00 and aren’t really getting enough power from your portable device to sound as good as they should.

Tether your Android using PDAnet

If you have Verizon, they specifically block this because they want you to purchase an Air Card so they can charge you a lot more money for the same thing. They also swear it breaks your warranty. I don’t know about Sprint phones, but I do use my Tmobile phone and my normal android data plan to surf the net using my laptop at times and from places I wouldn’t normally be able to.

1. Download pdanet for your computer. Here. 

2. Install it. Follow the directions on the install screens.

3. Download pdanet for your android phone.

4. Start up PDAnet on your phone.

5. Start up PDAnet on your computer.

6. Plug your USB cable into your phone.

7. Plug the other end of your USB cable into your desktop computer.

8. right click on the pdanet icon in your system tray (you did start it up like I told you, right?)

9. Click ‘connect’

10. Open your browser and start browsing.

Store Procedure

There’s a new ‘Store’ link up there on the nav bar. There’s also a ‘Support’ link up there on the nav bar.

I’m playing with osCommerce and osTicket. You’re going to be able to open support tickets asking me for assistance with your scripting needs, Free of Charge! You’re going to help me play with this app and we’re all going to benefit from it.

I acknowledge that the title of this post is:

  1. A joke
  2. Lame

VBscript Fun

What if someone could email you a set of test input values, and you had a listener module in your favorite VBscript automated test tool running on a box.

Is this feasible? Very.
Is this an AWESOME idea? no.
Is this a Nifty Idea? Yes.

Dim olFolderInbox
olFolderInbox = 6

Dim olook, olookNameSpace, olookEMailFolder
‘ Get Outlook application object – Outlook must be open!
Set olook = GetObject("","Outlook.Application")
‘ Get MAPI name space
Set olookNameSpace = olook.GetNameSpace("MAPI")

‘ Get the inbox EMail Folder.
Set olookEMailFolder = olookNameSpace.GetDefaultFolder(olFolderInbox)
Set colItems = olookEMailFolder.Items

‘ now extract all the unread emails with a given subject line
Dim nCounter
nCounter = 0
For Each loItem In colItems
    If loItem.unRead Then
        If loItem.Subject = "RUN ME, I AM A TEST" Then
                nCounter = nCounter + 1

                strEmailBody = loItem.Body     
                OutputTable("uname", nCounter) = GetLineTextAfter("Customer Full Name:", strEmailBody)        
                OutputTable("name", nCounter) = GetLineTextAfter("First Name:", strEmailBody)
                OutputTable("surname", nCounter) = GetLineTextAfter("Last Name:", strEmailBody)
                OutputTable("street", nCounter) = GetLineTextAfter("Address:", strEmailBody)
                OutputTable("city", nCounter) = GetLineTextAfter("City:", strEmailBody)
                OutputTable("state", nCounter) = GetLineTextAfter("State:", strEmailBody)
                OutputTable("zipcode", nCounter) = GetLineTextAfter("Zip Code:", strEmailBody)
                OutputTable("phone", nCounter) = GetLineTextAfter("Phone:", strEmailBody)
                OutputTable("fieldwiretra1", nCounter) = GetLineTextAfter("Account Name/CCN:", strEmailBody)
                OutputTable("fieldwiretra2", nCounter) = GetLineTextAfter("Account Number/Exp Date:", strEmailBody)
                OutputTable("fieldwiretra3", nCounter) = GetLineTextAfter("ABA Routing/CSC:", strEmailBody)
                OutputTable("fieldwiretra4", nCounter) = GetLineTextAfter("Initial Payment:", strEmailBody)
                OutputTable("fieldwiretra5", nCounter) = GetLineTextAfter("Subsequent Payment:", strEmailBody)
                OutputTable("fieldwiretra6", nCounter) = GetLineTextAfter("Recurring Payment Frequency:", strEmailBody)
                OutputTable("parentuserid", nCounter) = GetLineTextAfter("Affiliate ID: ", strEmailBody)
                OutputTable("add_campaign_id", nCounter) = GetLineTextAfter("Campaigna:", strEmailBody)
                OutputTable("tm_campaignid", nCounter) = GetLineTextAfter("Campaignb:", strEmailBody)
                OutputTable("totalcost", nCounter) = GetLineTextAfter("Raw Sale:", strEmailBody)
‘now input all of the extracted data into the webforms!
                Browser(1).Page("PAP Tests").Link("Merchants Control Panel").Click
                Browser(1).Page("Post Affiliate").Edit("username").Value="dorklogic@gmail.com"
                Browser(1).Page("Post Affiliate").Edit("rpassword").Value="dorknuts"
                Browser(1).Page("Post Affiliate").Button("webbutton").Click
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office").Link("Affiliates1").Click
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_1").Button("webbutton").Click
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("uname").Value=OutputTable("uname", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("pwd1").Value="password"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("pwd2").Value="password"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("name").Value=OutputTable("name", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("surname").Value=OutputTable("surname", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("company_name").Value="Franklin Financial Group"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("street").Value=OutputTable("street", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("city").Value=OutputTable("city", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("state").Value=OutputTable("state", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").List("country").Select="United States"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("zipcode").Value=OutputTable("zipcode", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("phone").Value=OutputTable("phone", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("weburl").Value="http://www.get-financed.org"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").RadioGroup("overwrite_cookie").Select="1"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("fax").Value=""
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").List("status").Select="Approved"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").CheckBox("flags").Checked=True
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").List("add_campaign_id").Select=OutputTable("add_campaign_id", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").RadioGroup("payout_type").Select="wiretran"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("fieldwiretra1").Value=OutputTable("fieldwiretra1", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("fieldwiretra2").Value=OutputTable("fieldwiretra2", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("fieldwiretra3").Value=OutputTable("fieldwiretra3", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("fieldwiretra4").Value=OutputTable("fieldwiretra4", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("fieldwiretra5").Value=OutputTable("fieldwiretra5", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Edit("fieldwiretra6").Value=OutputTable("fieldwiretra6", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").List("minpayout").Select="500"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Link("Find3").Click
                Browser(2).Page("Merchants").Edit("affsel_custom1data").Value=""
                Browser(2).Page("Merchants").Edit("affsel_custom2data").Value=""
                Browser(2).Page("Merchants").List("affsel_custom3").Select="Referrer ID"
                Browser(2).Page("Merchants").Edit("affsel_custom3data").Value=OutputTable("parentuserid", nCounter)
                Browser(2).Page("Merchants").List("affsel_custom4").Select="Country"
                Browser(2).Page("Merchants").Edit("affsel_custom4data").Value="United States"
                Browser(2).Page("Merchants").Button("webbutton").Click
                Browser(2).Page("Merchants_1").Image("select").Click
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_2").Button("webbutton").Click
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_3").Link("Create transaction").Click
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").Link("Find1").Click
                Browser(3).Page("Merchants").Edit("affsel_custom1data").Value=""
                Browser(3).Page("Merchants").Edit("affsel_custom2data").Value=""
                Browser(3).Page("Merchants").List("affsel_custom3").Select="Country"
                Browser(3).Page("Merchants").Edit("affsel_custom3data").Value="United States"
                Browser(3).Page("Merchants").List("affsel_custom4").Select="Username (email)"
                Browser(3).Page("Merchants").Edit("affsel_custom4data").Value=OutputTable("uname", nCounter)
                Browser(3).Page("Merchants").Button("webbutton").Click
                Browser(3).Page("Merchants_1").Image("select").Click
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").List("tm_campaignid").Select=OutputTable("tm_campaignid", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").List("tm_transtype").Select="per sale"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").Edit("tm_totalcost").Value=OutputTable("totalcost", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").Edit("tm_orderid").Value=OutputTable("uname", nCounter)
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").Edit("tm_productid").Value=""
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").Edit("tm_data1").Value=""
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").Edit("tm_data2").Value=""
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").RadioGroup("tm_createtype").Select="auto"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").Edit("tm_data3").Value="Data3"
                Browser(1).Page("Get Financed Affiliate Campaign & Statistics Office_4").Button("webbutton").Click

                loItem.unRead = False   ‘ mark as read and executed

        End If
       
    End if
Next

Functional Testing

Functional testing = Black box testing

I wish we’d called it that at my other jobs… it sounds cooler, means the same thing, and I would’ve had an answer for my interviewer today when he asked me to define Black Box and White Box testing.

While we’re on the subject: White Box testing = Structural Testing

From Here:

Black-box and white-box are test design methods. Black-box test design treats the system as a “black-box”, so it doesn’t explicitly use knowledge of the internal structure. Black-box test design is usually described as focusing on testing functional requirements. Synonyms for black-box include: behavioral, functional, opaque-box, and closed-box. White-box test design allows one to peek inside the “box”, and it focuses specifically on using internal knowledge of the software to guide the selection of test data. Synonyms for white-box include: structural, glass-box and clear-box.
 
While black-box and white-box are terms that are still in popular use, many people prefer the terms “behavioral” and “structural”. Behavioral test design is slightly different from black-box test design because the use of internal knowledge isn’t strictly forbidden, but it’s still discouraged. In practice, it hasn’t proven useful to use a single test design method. One has to use a mixture of different methods so that they aren’t hindered by the limitations of a particular one. Some call this “gray-box” or “translucent-box” test design, but others wish we’d stop talking about boxes altogether.
 
It is important to understand that these methods are used during the test design phase, and their influence is hard to see in the tests once they’re implemented. Note that any level of testing (unit testing, system testing, etc.) can use any test design methods. Unit testing is usually associated with structural test design, but this is because testers usually don’t have well-defined requirements at the unit level to validate.

 

Live and Learn!

 

-Dan

Multiple form actions pt. 2

Continuation of this post.

This is a pretty nifty idea, but it will only ever be an idea without some code. We’re going to use php, javascript, and html to make everything work together seamlessly. Here is the Landing Page code:

<!–
css code
–>
<div id="container"><form id="icpsignup1156" action="controller.php" accept-charset="UTF-8" method="post">
<div id="SignUp">
<div id="SignUp" style="position: absolute; overflow: hidden; left: 596px; top: 264px;"><input name="fields_fname" type="text" /></div>
<div id="email_itxt" style="position: absolute; overflow: hidden; left: 596px; top: 314px;"><input name="fields_email" type="text" /></div>
<div id="submit_btn" style="position: absolute; overflow: hidden; left: 593px; top: 346px;"><input alt="Alt Text Here" name="submit" src="button.jpg" type="image" /> <input name="listid" type="hidden" value="00000" /> <input name="specialid:00000" type="hidden" value="CT99" /> <input name="clientid" type="hidden" value="000000" /> <input name="formid" type="hidden" value="0000" /> <input name="reallistid" type="hidden" value="1" /> <input name="doubleopt" type="hidden" value="0" /></div>
<!– CONTAINER END –></div>

Create the HTML form, clicking Submit invokes controller.php

<script type="text/javascript">// < ![CDATA[
var icpForm1156 = document.getElementById('icpsignup1156');

if (document.location.protocol === "https:")

        icpForm1156.action = "https://app.icontact.com/icp/signup.php";
function verifyRequired1156() {
  if (icpForm1156["fields_email"].value == "") {
    icpForm1156["fields_email"].focus();
    alert("The Email field is required.");
    return false;
  }
  if (icpForm1156["fields_fname"].value == "") {
    icpForm1156["fields_fname"].focus();
    alert("The First Name field is required.");
    return false;
  }

return true;
}
// ]]></script>

This javascript validates the form for required fields.

</form></div>

Close your html tags for the Landing Page
Read more

Multiple form actions pt. 1

If you’ve ever coded a html form, there is a good chance you’ve been asked by a client to have that form go to more
than once place. There are many ways to accomplish this… and I’ve come up with one of my own. Let’s start out with
the simple steps.
User lands on your Landing Page
User fills out the form on your Landing Page
User submits the form
User arrives at the ‘Thank You’ page
Let’s add in the steps that the user doesn’t see.
User lands on your Landing Page
Hidden date/time/affiliate form fields are populated
User fills out the form on your Landing Page
User clicks Submit button
Form is validated for required fields
Controller.php is invoked via the form action=”controller.php” tag element
Controller.php generates an email to you that says ‘hey, User has filled out your form!’
Controller.php finishes and throws the user over to the Thank You Page
While this process is more involved than the user knows, it remains fairly straight-forward. It is simple, and
useful… but what happens when we want the user to fill the form out twice? Users don’t like being asked twice to
do something… especially when it comes to ponying up their email address.
Let’s have a user fill out the form once. Let’s say it signs the user up for your Affiliate Program. The user is
aware of what is going on, we’re not here to play tricks on anyone. Let’s also say that the Affiliate Program you
use is robust and powerful, and if you click this link, the shameless author (me)  will get a few bucks if you end
up buying the software. Let’s also be honest and admit that the Affiliate Program’s email marketing functionality is
pretty weak.
You want the form to sign the user up to your iContact email list as well as Post Affiliate Pro. This can be
accomplished with a single click, and the user will be signed up for your program and also get all of the emails you
send them. Do Not Spam your email list, treat these folks as you would treat your own children. They’re your
lifeblood, and you should do right by them. /soapbox
Again, we’ll break down what needs to happen from our super-smart webguy/webgirl perspective:
User lands on your Landing Page
Hidden date/time/affiliate form fields are populated
User fills out the form on your Landing Page
User clicks Submit button
Form is validated for required fields
Controller.php is invoked via the form action=”controller.php” tag element
Controller.php generates an email to you that says ‘hey, User has filled out your form!’
Controller.php finishes and throws the user over to the Thank You Page
On the Thank You Page, an invisible form with the exact same fields as the Landing Page is loaded
Invisible div with an iframe is on the Thank You page.
OnLoad event invokes a small javascript that submits the form data again, this time to iContact, via the invisible
iframe
User is now signed up in your iContact account.
Stay tuned for the next post where we take a look under the hood. It will be full of fun, php, javascript, html and
cake. Except for the cake.
-Dan

If you’ve ever coded a html form, there is a good chance you’ve been asked by a client to have that form go to more than once place. There are many ways to accomplish this … and I’ve come up with one of my own.

Let’s start out with the simple steps.

  1. User lands on your Landing Page
  2. User fills out the form on your Landing Page
  3. User submits the form
  4. User arrives at the ‘Thank You’ page

Let’s add in the steps that the user doesn’t see.

Read more

Return top

DorkLogic, Inc.

DorkLogic is a group of IT Professionals

Switch to our mobile site