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

Occupy Sweep

Daily Dose News Roundup

  • OpenAI is putting ads inside ChatGPT’s image generation
  • Zelensky asked Trump to block Russia’s Starlink rival, FT reports
  • AI can’t fix a business system with broken processes
  • EU set to name AWS and Azure DMA gatekeepers in November
  • Anthropic says China’s GLM-5.3 nearly matches Mythos at cyber exploits

Quotable

"Who are the Grateful Dead and why do they keep following me?" ~ deadhead's bumper sticker

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

Joining Two Dimensional Arrays

Jan28
by Sindy Cator on January 28, 2015 at 12:30 pm
Posted In: Around the Web, Arrays

The Join function takes an array and smushes it together into a String. I love the Join function. The only thing I don’t like about it is when I forget that it doesn’t work on 2d arrays. Join only works with 1-dimensional arrays. The last time my memory failed me, I decided to write my own. And here it is.

Public Function Join2D(ByVal vArray As Variant, Optional ByVal sWordDelim As String = " ", Optional ByVal sLineDelim As String = vbNewLine) As String
   
    Dim i As Long, j As Long
    Dim aReturn() As String
    Dim aLine() As String
   
    ReDim aReturn(LBound(vArray, 1) To UBound(vArray, 1))
    ReDim aLine(LBound(vArray, 2) To UBound(vArray, 2))
   
    For i = LBound(vArray, 1) To UBound(vArray, 1)
        For j = LBound(vArray, 2) To UBound(vArray, 2)
            ‘Put the current line into a 1d array
            aLine(j) = vArray(i, j)
        Next j
        ‘Join the current line into a 1d array
        aReturn(i) = Join(aLine, sWordDelim)
    Next i
   
    Join2D = Join(aReturn, sLineDelim)
   
End Function

It’s pretty simple. It loops through the first dimension (the row dimension) and joins each line with sLineDelim. Inside that loop, it joins each element in the second dimension with sWordDelim. What this function doesn’t do is automatically insert itself into only the projects I want. That requires me to remember that I wrote it and where I put it. In reality, I’ll probably reinvent the wheel the next time I need it.

Here’s my extensive testing procedure.

Sub TEST_Join2d()
   
    Dim a(1 To 2, 1 To 2) As String
   
    a(1, 1) = "The"
    a(1, 2) = "Quick"
    a(2, 1) = "Brown"
    a(2, 2) = "Fox"
   
    Debug.Print Join2D(a)
    Debug.Print
    Debug.Print Join2D(a, ",")
    Debug.Print
    Debug.Print Join2D(a, , "|")
    Debug.Print
    Debug.Print Join2D(a, ";", "||")
   
End Sub

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

WeChat finally arrives on the desktop for Windows users

Jan28
by Sindy Cator on January 28, 2015 at 12:15 pm
Posted In: Apps, Around the Web, Insider, Product Launches

WeChat has finally launched a version of its desktop client for Windows PC users, nearly a year after the introduction of its client for Macs. Just like the WhatsApp Web client launched last week, in order to get up and running with WeChat for PC, you’ll need to scan a QR code from within the mobile app. Once your phone is linked to your computer, messages will be mirrored across both devices, but alerts will only show on your computer. For now, it’s only available in Chinese. If downloading another program to your computer just feels like too much effort, you can, of course,…

This story continues at The Next Web

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

WeChat finally arrives on the desktop for Windows users

Jan28
by Sindy Cator on January 28, 2015 at 12:15 pm
Posted In: Apps, Around the Web, Insider, Product Launches

WeChat has finally launched a version of its desktop client for Windows PC users, nearly a year after the introduction of its client for Macs. Just like the WhatsApp Web client launched last week, in order to get up and running with WeChat for PC, you’ll need to scan a QR code from within the mobile app. Once your phone is linked to your computer, messages will be mirrored across both devices, but alerts will only show on your computer. For now, it’s only available in Chinese. If downloading another program to your computer just feels like too much effort, you can, of course,…

This story continues at The Next Web

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

Sony’s hi-def NW-ZX2 Walkman available for pre-order from tomorrow at $1,280

Jan28
by Sindy Cator on January 28, 2015 at 11:36 am
Posted In: Around the Web, Gadgets, Walkman

NW-ZX2 Walkman
Sony’s new portable audio player for high-definition lossless formats, the NW-ZX2 Walkman, will be available for pre-order for around $1,280 from January 29 at all Sony Stores and Sony Centers. The 128GB device will go on sale at Sony’s own outlets and authorised retailers from February 13. Customers can also club their Walkman pre-order with other Sony gear like headphones, headphone amplifiers and speakers for discounts on those items. Click for larger image In addition, pre-order customers will get to download 20 songs in high-definition audio quality for free. Even if you can afford it, $1,280 for a portable music player…

This story continues at The Next Web

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

Sony’s hi-def NW-ZX2 Walkman available for pre-order from tomorrow at $1,280

Jan28
by Sindy Cator on January 28, 2015 at 11:36 am
Posted In: Around the Web, Gadgets, Walkman

NW-ZX2 Walkman
Sony’s new portable audio player for high-definition lossless formats, the NW-ZX2 Walkman, will be available for pre-order for around $1,280 from January 29 at all Sony Stores and Sony Centers. The 128GB device will go on sale at Sony’s own outlets and authorised retailers from February 13. Customers can also club their Walkman pre-order with other Sony gear like headphones, headphone amplifiers and speakers for discounts on those items. Click for larger image In addition, pre-order customers will get to download 20 songs in high-definition audio quality for free. Even if you can afford it, $1,280 for a portable music player…

This story continues at The Next Web

└ Tags: syndicated
  • Page 11,861 of 14,671
  • « First
  • «
  • 11,859
  • 11,860
  • 11,861
  • 11,862
  • 11,863
  • »
  • 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