HomeAboutWebHostingNetworkingContact

Hey Jones!

Technical Services

Hey Jones LLC
505 Poli St
Suite 301
Ventura, CA 93001
(800) 439-1472
info@heyjones.com

  • May 4, 2011 1:28 pm

    SQL DATEPART(dd, getdate()) vs VB.NET Today.DayOfWeek

    WARNING: THIS POST IS REALLY NERDY.

    While developing a calendar application, I ran into an issue that took hours to diagnose and nearly prompted me to wrap my car around a tree. The issue is this…

    I was taking a date from SQL, using the DATEPART function to return an integer value for the day of the week, then comparing that to the result of the DayOfWeek function in VB.NET. Here’s how it should work:

    SQL

    DECLARE @KillMe AS datetime;

    SET @KillMe = ‘5/4/2011’;

    SELECT DATEPART(d, @KillMe);

    VB.NET

    Dim KillMe As Date = CDate(‘5/4/2011’);

    Return KillMe.DayOfWeek

    So assuming that SQL considers Sunday = 1, it will return an integer value of 4, and since I’m using the same date, VB.NET should return a 4 as well… right?

    Wrong.

    Apparently, GETDATE() in SQL returns 1 for Sunday and goes from there, while VB.NET starts at 0 for Sunday and ends at 6 for Saturday. Don’t ask my why this took so long to figure out, but I suspect that four failed attempts at a passing grade in Intermediate Algebra might be only partially at fault, while Microsoft holds the lions share of the blame. All that having been said, here’s the fix:

    VB.NET

    Dim KillMe As Date = CDate(‘5/4/2011’);

    Return CInt(KillMe.DayOfWeek) + 1

    It’s hinky and lame, I know, but I decided that correcting SQL by subtracting 1 was more complicated.

  • December 7, 2010 11:18 am

    "Programming may in fact be transforming into an art, one that requires a skilled hand and a creative mind to achieve a happy medium between problematic extremes."

    Peter Wayner

  • November 12, 2010 2:07 pm

    "The best way to complain is to make things."

    James Murphy

  • October 29, 2010 1:48 pm
    The Event Company is a one-stop shop for everything you need to host an unforgettable event. They wanted a clean and simple site so that their clients could focus on the visual aspects of their services and we delivered. The photo transitions use jQuery so that the effect is compatible with most browsers and mobile devices. View high resolution

    The Event Company is a one-stop shop for everything you need to host an unforgettable event. They wanted a clean and simple site so that their clients could focus on the visual aspects of their services and we delivered. The photo transitions use jQuery so that the effect is compatible with most browsers and mobile devices.

  • October 3, 2010 8:24 pm
    Anonymous:  Chris,

    Tony Spore suggested I contact you about email and firewalls. I know things are changing quickly, and I'm ready to pitch the email server and have all staff use their Droids and iPhones for email. What do you suggest?

    Paul Darafeev

    I always recommend Google Apps to my clients. It’s free for up to 50 users, and expanded functionality is available for $50 per account annually. Feel free to give us a call if you have any questions about how to go about setting that up.

  • September 28, 2010 12:12 pm

    How To Resolve Most Google Apps Issues

    Since switching the majority of my clients over to Google Apps I have enjoyed the speed, reliability and accessibility of their free service. Unfortunately when things don’t go as expected, dealing with Google’s “customer service” is a less than comforting experience. I have found one thing you can do on your own to clear up most issues before attempting to get the boys up in Mountain View to help you out.

    Google is very strict when it comes to taking measures to prevent spam in their system, so they rely heavily on captcha to verify human interaction with their service. Follow these steps to unlock your Google Apps account:

    1) Go to https://www.google.com/a/yourdomain.com/UnlockCaptcha, replacing “yourdomain.com” with your domain name

    2) Enter your username, password and the captcha text

    3) Click the Unlock button

  • July 29, 2010 5:23 pm

    How To Speed Up iOS4 On Your iPhone 3G Or 3GS

    If your iPhone 3G or 3GS has been running slow since the iOS4 update, this one modification has made a dramatic difference in how quickly my iPhone responds. This should tide you over until Apple figures out what the issue is.

    1) Go to Settings > General

    2) Click “Spotlight Search”

    3) Uncheck everything

    Finally, reboot your phone by holding the Home and Sleep/Wake buttons until the Apple logo comes on the screen.

  • July 20, 2010 11:49 am

    Hey Jones Supports Ventura's Bid For Google's Fiber Network

    The application has been submitted to Google, which means that in the coming weeks and months, Google personnel will be carefully going over the submissions and considering which community to choose — which means this is our time to really shine! We have a chance to stand out as the tenacious little city we are, so when Google pulls up our app and, well, Googles us, they’ll see we’re still excited about the opportunities that Google Fiber would bring to our community.

  • July 13, 2010 3:35 pm
    Anonymous:  Are you guys nerds?

    Cold blooded.

  • July 13, 2010 3:32 pm

    Hey Jones LLC Joins The Ventura Ventures Technology Center (V2TC)

    We’re very excited to have been accepted into the V2TC (Ventura Ventures Technology Center), a high-tech business incubator developed in partnership with the City of Ventura and the Ventura Chamber of Commerce.

    http://www.v2tc.com

  • July 12, 2010 8:34 pm

    Microsoft Says 74 Percent Of Work PCs Still Use Windows XP, Extends Downgrade Rights Until 2020

    This is pretty unbelievable… it makes you wonder if there’s a Service Pack 4 in the works.

  • July 9, 2010 8:31 am

    Gmail Adds Support For Rich Text Signatures

    Since switching most of my clients over to Google Apps, I’ve had quite a few requests for this feature. Now you can format text and add images to your Gmail signature.

  • July 3, 2010 4:46 pm

    New Embedded Database Support with ASP.NET

    This should make developing small data-driven websites much easier.

  • July 1, 2010 12:17 pm

    New Toll-Free Number

    We’ve set up a new toll-free number at (800) 439-1472.

  • July 1, 2010 12:00 am
    Ellis Design Group needed a clean, stylized site that would allow their design services to speak for themselves. A custom back-end CMS allows them to update their site whenever they need to. View high resolution

    Ellis Design Group needed a clean, stylized site that would allow their design services to speak for themselves. A custom back-end CMS allows them to update their site whenever they need to.