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

Selling Anonymous Mask And Slogan

Daily Dose News Roundup

  • 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
  • Apple’s Siri app in iOS 27 will auto-delete your chats. It may also launch as a beta, again.
  • Faraday Future raised $25 million for its robotics pivot. The fine print tells a different story.
  • Anthropic and the Gates Foundation are betting $200 million that AI can do more than make money

Quotable

"You have to do it yourself, no one else will do it for you. You must work out your own salvation." ~ Charles E. Popplestone

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

Listing Calling Procedures

Aug01
by Sindy Cator on August 1, 2014 at 11:30 am
Posted In: Around the Web, Visual Basic Editor

I have this awesome machine with 64-bit Office sitting under my desk. I don’t use it to code because MZ-Tools doesn’t work on 64-bit Office and I need that (and a few other things) to be productive. I only use a few features from MZ-Tools, so I think I’ll just write them in VBA. I took my first stab at the Procedure Callers feature.

Public Sub ListProcedureCallers()
   
    Dim vbProj As VBProject
    Dim vbModule As VBIDE.CodeModule
    Dim vbComp As VBIDE.VBComponent
    Dim i As Long
    Dim lActiveLine As Long
    Dim sProc As String
       
    ‘get the name of the current procedure
    Application.VBE.ActiveCodePane.GetSelection lActiveLine, 0, 0, 0
    sProc = Application.VBE.ActiveCodePane.CodeModule.ProcOfLine(lActiveLine, vbext_pk_Proc)
   
    ‘only look in the active project
    Set vbProj = Application.VBE.ActiveVBProject
   
    ‘loop through the code modules
    For Each vbComp In vbProj.VBComponents
        Set vbModule = vbComp.CodeModule
       
        ‘print the procedure for any line that contains the name of the active procedure
        If vbModule.CountOfLines > 0 Then
            For i = vbModule.CountOfDeclarationLines To vbModule.CountOfLines
                If InStr(1, vbModule.Lines(i, 1), sProc) > 0 And vbModule.ProcOfLine(i, vbext_pk_Proc) <> sProc Then
                    Debug.Print vbComp.Name, vbModule.ProcOfLine(i, vbext_pk_Proc), vbModule.Lines(i, 1), i
                End If
            Next i
        End If
    Next vbComp
   
End Sub

I just wanted to get something down and not be too worried about how well it works. This procedure just prints to the Immediate Window rather than a fancy userform that let’s you go directly to one of the procedures.

One of the things I don’t like about MZ-Tools is that it searches for callers in all open projects. I can see that value in that, I just personally have never needed it. And for procedures with common names, it shows a crap ton of stuff. I made my procedure only search the current project.

One of my property procedures in one of my class modules is named Active. When I looked for its callers, I got every procedure that uses ActiveWorkbook or ActiveSheet. My code does not discriminate – if the name of the procedure appears in the line of code, it’s a hit.

How do I avoid that? For the Active property, all I have to do is look for a space after the word Active and I should be good to go. Except for comments, perhaps. That’s fine for a property with no arguments, but if it has arguments or is a method with arguments, there won’t be a space after it but a parenthesis. Can I search for either a space or a paren? Seems like it, but I’ll have to think it through.

Another thing I don’t like about MZ-Tools is that it doesn’t care what class module you’re in when you look for calling procedures. Every one of my Collection Classes has an Add method. When I search for procedure callers for Add, I get every call to every Add method in every class.

That’s a little tougher proposition. I could be very opinionated, as I am, by looking for clsPlural.Add rather than just Add. I always name my class instance variables clsXXX. That would work for me, but wouldn’t be very general purpose. While I’m a well-known selfish prick, I do still care about you, dear reader. Even if I were so inclined, I’d have to still look for With blocks. I can’t just look for clsPlural.Add, I have to also look for .Add, then I have to search up the lines of code for a With before I hit an End With, then I have to determine the variable… My goodness that sounds like a lot of work. This is probably why MZ-Tools doesn’t care which Add method I’m looking for – it’s just not worth it.

Here’s some things I’d like to do:

  • Find actual callers, not just the procedure name
  • Omit finds in comments
  • When I’m in a class, only find properties/methods from that class
  • When I’m on a Property Get, don’t return Property Let assignment statements
  • Go to the first caller automatically, but still list the rest somewhere
  • Other stuff I haven’t thought of

What say you?

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

12 of the best new Android apps from July

Aug01
by Sindy Cator on August 1, 2014 at 11:18 am
Posted In: Apps, Around the Web, BestAndroidApps, Roundups

Photo-07-07-2014-09-57-08-798x310

From privacy-focused messaging apps, to chatting with friends directly from your lock screen, we covered a lot of ground with new Android apps in July. Here, we filter through the cacophonous crackle to present you with our selection of Google Play newcomers from the past month. MyRoll Strictly speaking, MyRoll isn’t an entirely new app, but July saw the previously popular Flayvr app change its name and pivot in a slightly new direction. MyRoll is an intelligent mobile gallery app that displays all your best photos as ‘moments’, automatically organizing your snaps based on its analysis of each photo’s make-up….

This story continues at The Next Web

The post 12 of the best new Android apps from July appeared first on The Next Web.

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

The BBC launches CBeebies Storytime app to help kids learn to read

Aug01
by Sindy Cator on August 1, 2014 at 10:50 am
Posted In: Apps, Around the Web, Insider, Product Launches

The BBC is today introducing its latest mobile app in the UK, as it looks to help encourage kids to read from a young age. Available for iOS and Android, CBeebies Storytime features many of the familiar CBeebies characters across six books, including Old Jack’s Boat, Show Me Show Me, Something Special, Grandpa in my Pocket, Octonauts and Charlie and Lola. The app encourages interaction from the readers through swiping and touching, and getting involved within each story. ‘Recall’ questions are also designed to help kids develop comprehension skills. The app has two reading options: ‘Read to Me’ and ‘Read…

This story continues at The Next Web

The post The BBC launches CBeebies Storytime app to help kids learn to read appeared first on The Next Web.

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

SolCalendar for Android update brings Google Maps integration and new widgets

Aug01
by Sindy Cator on August 1, 2014 at 9:58 am
Posted In: Apps, Around the Web, Insider, Product Updates

SolCalendar, one of the names to feature in our 12 best Android calendar apps roundup last year,  has been updated to bring an easier-to-use UI and new functionality to the platform. The company said the new UI makes it easier to get around and simplifies calendar views. For example, the ‘Today’ and ‘Agenda’ views are now in one section; it also allows for weekly and monthly schedules to be checked simultaneously. However, the biggest changes comes from new integrations with Google Maps, Foursquare and Google Tasks, allowing you to easily keep to-do notes and navigate your way to your appointments. Rounding off the notable changes for…

This story continues at The Next Web

The post SolCalendar for Android update brings Google Maps integration and new widgets appeared first on The Next Web.

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

TriplAgent is a beautiful travel lists iOS app that lets you tap on locals’ knowledge

Aug01
by Sindy Cator on August 1, 2014 at 9:51 am
Posted In: Apps, Around the Web, Product Launches

traveller

Locals are the best source of knowledge when it comes to travel tips, and as tourists increasingly turn to online resources to orientate themselves in a new place, their advice becomes even more invaluable. For example, Airbnb recently tested a new feature called “Local Companion” that connects you with people living at your holiday destination, allowing you to ask them questions. Meanwhile, many other services such as Asia-based Triip link you up to tours that are operated by locals. For something more casual though (if you’re just looking for lists that you can refer to), a beautiful iOS app called…

This story continues at The Next Web

The post TriplAgent is a beautiful travel lists iOS app that lets you tap on locals’ knowledge appeared first on The Next Web.

└ Tags: news, syndicated
  • Page 13,142 of 14,644
  • « First
  • «
  • 13,140
  • 13,141
  • 13,142
  • 13,143
  • 13,144
  • »
  • 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