The Daily Dose

laugh every day with cartoons jokes and humor
  • Home
  • About
    • Press
      • Press Release – Announcing Laughzilla the Third ebook
      • Press Release – The Daily Dose Kicks Off Its 16th Year with New Books and More Irreverent Laughter
      • Press Release – Themes Memes and Laser Beams Now Available in Paperback
      • Press Release – Announcing Themes Memes and Laser Beams
      • In The News
    • Privacy
  • Archive
  • Books
  • Shop
  • Collections
    • Galleries
      • Gallery
      • Captions
      • Flash Cartoons & Greeting Cards
        • Laughzilla’s Oska Flash Animation Cartoon Greeting Cards
        • Oska Cupid Love Humor
    • #OccupyWallStreet
    • cats
    • China
    • Food
      • Hors d’oeuvres
        • Ball of Cream Cheese
      • Entrees / Main Courses
        • Meatballs with Baked Beans and Celery
    • Gadaffy
    • Google
  • Links
  • Video
  • Submit a joke
DeviantART Facebook Twitter Flickr pinterest YouTube RSS

Subscribe for Free Laughs!


 

Latest Comics

  • This Memorial Day, Trump Meme Coin Congratulates Profit Takers
  • 25 Years of The Daily Dose
  • The Best Cartoons
  • Bitcoin sings “Fly Me To The Moon”
  • 22 years of The Daily Dose

Comic Archive

editorial cartoon jonathan pollard caricature by laughzilla for the daily dose on april 8, 2014
Jonathan Pollard and Spy Games

Daily Dose News Roundup

  • The Rise of LLMs Is Not an Accident
  • ClickUp cuts 22 per cent of staff and introduces $1 million salary bands for those who remain
  • Canva launches inside Google Gemini, completing its push to be the design layer for every major AI assistant
  • OpenAI adopts C2PA standard and Google’s SynthID to make AI-generated images easier to identify
  • OpenClaw creator’s $1.3 million monthly OpenAI bill reveals the real cost of autonomous AI coding at scale

Quotable

"With their 89th straight win, The UCONN Huskies Women's Basketball Team have beaten a very stale, Wooden record." ~ Yasha Harari

Fresh Baked Goods

Get The Daily Dose's ebook: Laughzilla the Third - A Funny Stuff Collection of 101 Cartoons from TheDailyDose. Click here to get the e-book on Amazon kdp. Laughzilla the Third (2012) The Third Volume in the Funny Stuff Cartoon Book Collection Available Now.

Click here for the Paperback edition


Support independent publishing: Buy The Daily Dose's book: Themes Memes and Laser Beams - A Funny Stuff Collection of 101 Cartoons by Laughzilla from TheDailyDose. Click here to get the book on Amazon. Themes Memes and Laser Beams - The Second Volume in the Funny Stuff Cartoon Book Collection.

Click Here to get the book in Paperback While Available on Amazon

Themes Memes and Laser Beams - 101 Cartoons by Laughzilla. Get the e-book on Lulu.

Click Here to get The Daily Dose Cartoon ebook on amazon kindle

Funny Stuff :
The First Cartoon Book
from The Daily Dose.
Available on Lulu.

a couple of laughzillas on a blue diamond background

Comic for October 21, 2014

Oct21
by Sindy Cator on October 21, 2014 at 5:00 am
Posted In: Around the Web

Dilbert readers – Please visit Dilbert.com to read this feature. Due to changes with our feeds, we are now making this RSS feed a link to Dilbert.com.

└ Tags: syndicated
a couple of laughzillas on a blue diamond background

An Even More Better AutoFilter

Oct21
by Sindy Cator on October 21, 2014 at 1:33 am
Posted In: Around the Web

You knew I wasn’t going to let this go, didn’t you?

I started with snb’s rewrite. I really don’t want to use the SelectionChange event. It runs whenever you move around the spreadsheet and that’s just wasteful. I like how snb did the heavy lifting on SheetActivate, then only burns processors when you change a cell. I probably still need some error checking (and by probably I mean definitely) but here’s what I have so far.

Public gclsApp As CApp

Public Sub Auto_Open()
   
    Set gclsApp = New CApp
   
End Sub

Why do I always create my event class and then set the App property equal to the Excel.Application? Why not just do that in the class Initialize event? Stay tuned.

Private WithEvents mclsApp As Application
Private Const msDELIM As String = "||"

Public Property Set App(ByVal clsApp As Application): Set mclsApp = clsApp: End Property
Public Property Get App() As Application: Set App = mclsApp: End Property

Private Sub Class_Initialize()
   
    Set mclsApp = Application
    If Not ActiveSheet Is Nothing Then
        mclsApp_SheetActivate ActiveSheet
    End If
   
End Sub

I got rid of the OldValue property as I’m using snb’s method. I added a constant delimeter that I’ll never use in a table header. Then I set my application right in the Initialize event, which I should have been doing all along. Finally, I need to load up the AlternativeText for any sheets just in case it’s not done yet.

Private Sub mclsApp_SheetActivate(ByVal Sh As Object)
   
    Dim lo As ListObject
   
    If Sh.Type = xlWorksheet Then
        For Each lo In Sh.ListObjects
            lo.AlternativeText = Join(Application.Index(lo.HeaderRowRange.Value, 1, 0), msDELIM)
        Next lo
    End If
   
End Sub

This is right out of snb’s code. Join the header into a big string separated by double pipe, then stick it in the AlternativeText property for safe keeping.

Private Sub mclsApp_SheetChange(ByVal Sh As Object, ByVal Target As Range)
   
    Dim lo As ListObject
    Dim rLoHeader As Range
    Dim sHeader As String
   
    ‘See if the target is in the header of a listobject
    On Error Resume Next
        Set rLoHeader = Nothing
        Set rLoHeader = Intersect(Target, Target.ListObject.HeaderRowRange)
    On Error GoTo 0
       
    Application.EnableEvents = False
   
    If Not rLoHeader Is Nothing Then
        Set lo = Target.ListObject
               
        ‘if the user starts the entry with two spaces, they want to change the header
        ‘so don’t fire the code, just change the header sans the spaces
        If Left$(Target.Value, 2) = Space(2) Then
            sHeader = Mid$(Target.Value, 3, Len(Target.Value))
        Else
            ‘Filter based on the value typed
            sHeader = Split(lo.AlternativeText, msDELIM)(Target.Column – lo.Range.Columns(1).Column)
                       
            ‘I ran into that code firing twice problem when I changed this line. I brute forced the
            ‘sucker by seeing if the Target.Value is the same as the header.
            If Target.Value <> sHeader Then
                ‘If the user enters more than one value separated by a space, it will filter on all those
                ‘values.
                lo.Range.AutoFilter lo.ListColumns(Target.Value).Index, Split(Target.Value), xlFilterValues
            End If
        End If
       
        Target.Value = sHeader
    End If
   
    Application.EnableEvents = True
   
End Sub

First I make sure that the cell being changed is in the header of a ListObject (Excel Table in UI speak). This will disastrously fail (I assume) if you change two cells at once.

Next I added some code that will allow me to actually change the header if I want to. If I precede the entry by two spaces, the code will assume I want to change the header and not filter. Then it removes the two spaces and changes the header without filtering. If I type {Space}{Space}MyDate in the Date field, it will change the header to MyDate and not filter.

Joe commented that you could separate values with a comma to filter on more than on thing. Good idea. I like spaces better, so instead of filtering on Target.Value, I pass the AutoFilter method an array and use xlFilterValues. The Split function produces an array by splitting a String on space.

When I made this change to the AutoFilter method, I ran into my old friend double-event-trigger-for-damn-reason. I beat that problem over the head by checking if the search term was the same as the header – a characteristic of the second bullshit trigger. This introduces a bug when you want to filter the State field on the word “State”. Nothing will happen. I don’t care. I’m done with that problem.

It’s working awesomely and I’m about ready to put it in the PMW to give some real-life test.

One more thing. If you want to filter on partial names you have to include an asterisk. Entering Col* Ala* will give you Colorado and Alaska (from my Sample data – Alabama didn’t make the cut, I guess). If you type *hi*, you’ll get Ohio, New Hampshire, and Washington.

OK, really the last thing. If you want to filter on dates by typing multiple dates, you have to type the full year.

You can download BetterAutoFilter.zip

└ Tags: syndicated
a couple of laughzillas on a blue diamond background

Uber and Lyft can both offer rides to San Francisco International Airport now

Oct20
by Sindy Cator on October 20, 2014 at 11:28 pm
Posted In: Apps, Around the Web, Insider

Today Lyft and Uber both announced that their car services are allowed at San Francisco International Airport (SFO). The two companies join Sidecar which announced last week that it would be delivering and picking up passengers from the airport. One odd bit of news is that Sidecar stated its Shared Rides feature would not operate out of the airport. Uber on the other hand stated today that Uber Pool, its shared-ride feature, would be available for airport trips. Update: Lyft tells TNW that Lift Line, its shared-ride service, will also be available for trips to and from SFO. So now the Bay Area…

This story continues at The Next Web

└ Tags: news, syndicated
a couple of laughzillas on a blue diamond background

Uber and Lyft can both offer rides to San Francisco International Airport now

Oct20
by Sindy Cator on October 20, 2014 at 11:28 pm
Posted In: Apps, Around the Web, Insider

Today Lyft and Uber both announced that their car services are allowed at San Francisco International Airport (SFO). The two companies join Sidecar which announced last week that it would be delivering and picking up passengers from the airport. One odd bit of news is that Sidecar stated its Shared Rides feature would not operate out of the airport. Uber on the other hand stated today that Uber Pool, its shared-ride feature, would be available for airport trips. So now the Bay Area has even more options to get to the airport besides, taxis, BART, bus, hassling friends, etc. ➤ Lyft’s Second Airport Agreement Authorizes…

This story continues at The Next Web

└ Tags: news, syndicated
a couple of laughzillas on a blue diamond background

Hands-on with Apple Pay: An easy mobile wallet with poor documentation

Oct20
by Sindy Cator on October 20, 2014 at 10:48 pm
Posted In: Around the Web

Apple_Oct_2014_223
Alongside Monday’s release of iOS 8.1, Apple activated its new Apple Pay service for in-app and retail payments. We tried it out to see if it lives up to the hype. Mobile payments haven’t quite taken off yet. I’m sure more than a few of you have taken to using Google Wallet and other similar services for NFC purchases, but these are still the exception, rather than the rule. Apple is taking its entry into payments very seriously, working with hundreds of banks and major brands for the launch. To get started, you’ll need iOS 8.1 installed on an iPhone 6 or…

This story continues at The Next Web

└ Tags: apple, syndicated
  • Page 12,512 of 14,644
  • « First
  • «
  • 12,510
  • 12,511
  • 12,512
  • 12,513
  • 12,514
  • »
  • Last »
The Daily Dose, The Daily Dose © 1996 - Present. All Rights Reserved.
  • Home
  • About
  • Archive
  • Books
  • Collections
  • Links
  • Shop
  • Submit a joke
  • Video
  • Privacy Policy