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

Book Cover Of Book Titles Book

Daily Dose News Roundup

  • The European Commission is looking at Oracle’s licensing, two months after settling with SAP
  • The FTC says Amazon charged advertisers the wrong price 80% of the time
  • Europe has ordered a €388M AI supercomputer from its own state-owned champion
  • Hugging Face built a $4.5 billion empire on free AI models. Now Nvidia is buying it for $12.9 billion
  • The data center boom will fail its promise if safety and workforce development continue to lag behind

Quotable

"Wall Street is the only place that people ride to work in a Rolls-Royce to get advice from those who took the subway". ~ Warren Buffett

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

Dave Winer’s Happy Friends turns Twitter into a mailbox to keep up with your favorite feeds

Jun27
by Sindy Cator on June 27, 2014 at 11:35 pm
Posted In: Around the Web, Insider

Twitter Goes Public On The New York Stock Exchange
The longer you use Twitter, the more people you add to your following list. Soon your feed is a mish-mash of friends, companies, publications and parody accounts. Somewhere in that river of information are the 10-12 people whose tweets you want to keep abreast of. That’s where Dave Winer’s new Happy Friends comes in. Happy Friends is a mailbox-like reader for organizing the feeds of your Twitter friends. You sign into your Twitter account on the Happy Friends site, add your favorite Twitter feeds via the Friends dropdown in the menu bar and those friends will appear in the white box. Double click…

This story continues at The Next Web

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

GE announces $15 connected LED light bulb controlled by Wink app

Jun27
by Sindy Cator on June 27, 2014 at 10:18 pm
Posted In: Apps, Around the Web, Gadgets, GE, Insider, Quirky

0627_wink
The “Internet of things,” the “Connected Home,” the “Smart Home,” whatever you want to call it, it’s just a fancy way of turning your stuff on and off with your smartphone. Now GE has introduced a cheaper way to stay on the couch and control your lights. The low-cost connected Link lightbulb from GE will set you back less than $15. The bulb is controlled by the Wink app (available for iOS and Android) from Quirky. In addition to switching lights on and off from anywhere (not just your couch), the app lets you schedule things like on/off times and brightness. Smart bulbs are nothing…

This story continues at The Next Web

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

The demise of Apple’s Aperture and iPhoto: What does it mean for you?

Jun27
by Sindy Cator on June 27, 2014 at 9:48 pm
Posted In: Apps, Around the Web, Product Launches

Photos-for-OS-X
The shoe has finally dropped. Apple confirmed today that it’s ditching Aperture, its photo management tool, and iPhoto, its consumer photo editing app, in favor of Photos, a brand new desktop and iOS duo slated for debut in 2015. It all makes sense. While Aperture has undergone some fairly high profile updates in recent years, iPhoto had stagnated badly. When the back-end databases of both apps were hitched together last year, it was a warning that something was on the horizon. But when? Apple works on its own timetable and was not in a hurry to move things forward publicly….

This story continues at The Next Web

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

The demise of Apple’s Aperture and iPhoto: What does it mean for you?

Jun27
by Sindy Cator on June 27, 2014 at 9:48 pm
Posted In: Apps, Around the Web, Product Launches

Photos-for-OS-X
The shoe has finally dropped. Apple confirmed today that it’s ditching Aperture, its photo management tool, and iPhoto, its consumer photo editing app, in favor of Photos, a brand new desktop and iOS duo slated for debut in 2015. It all makes sense. While Aperture has undergone some fairly high profile updates in recent years, iPhoto had stagnated badly. When the back-end databases of both apps were hitched together last year, it was a warning that something was on the horizon. But when? Apple works on its own timetable and was not in a hurry to move things forward publicly….

This story continues at The Next Web

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

Converting Numbers To Words Part II

Jun27
by Sindy Cator on June 27, 2014 at 8:14 pm
Posted In: Around the Web, VBA

See Converting Numbers To Words Part I.

The next test will test 20-99. I think in real TDD, you’re supposed to write tests that test just one thing. But I’m not doing real TDD, so I’m testing in groups.

Sub TEST_Tens()

    Debug.Assert NumbersToWords(20) = "twenty"
    Debug.Assert NumbersToWords(21) = "twenty-one"
    Debug.Assert NumbersToWords(30) = "thirty"
    Debug.Assert NumbersToWords(77) = "seventy-seven"
    Debug.Assert NumbersToWords(99) = "ninety-nine"

End Sub

Again, I’m testing the edges and few in between. Now that I have two test procedures, I’ll need to create a procedure to run them both.

Sub TEST_All()

    TEST_Singles
    TEST_Tens

    Debug.Print "tests passed"

End Sub

Now I can run TEST_All and make sure I don’t break any previous tests with the changes I make. Of course, TEST_Tens fails so it’s time to write some code to make it pass. I tried to write the simplest code possible, but it didn’t work out for me.

Function NumbersToWords(ByVal dNumbers As Double) As String
   
    Dim vaSingles As Variant
    Dim vaTens As Variant
    Dim sReturn As String
   
    vaSingles = Split("zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve,thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen", ",")
    vaTens = Split("NA,NA,twenty,thirty,forty,fifty,sixty,seventy,eighty,ninety", ",")
   
    If dNumbers > 19 Then
        sReturn = vaTens(dNumbers \ 10) & "-" & vaSingles(dNumbers – ((dNumbers \ 10) * 10))
    Else
        sReturn = vaSingles(dNumbers)
    End If
   
    NumbersToWords = Trim$(sReturn)
   
End Function

That fails because NumbersToWords(20) returns twenty-zero. So there’s a special case that needs to be handled.

Function NumbersToWords(ByVal dNumbers As Double) As String
   
    Dim vaSingles As Variant
    Dim vaTens As Variant
    Dim sReturn As String
   
    vaSingles = Split("zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve,thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen", ",")
    vaTens = Split("NA,NA,twenty,thirty,forty,fifty,sixty,seventy,eighty,ninety", ",")
   
    If dNumbers > 19 Then
        sReturn = vaTens(dNumbers \ 10)
        If dNumbers Mod 10 <> 0 Then
            sReturn = sReturn & "-" & vaSingles(dNumbers – ((dNumbers \ 10) * 10))
        End If
    Else
        sReturn = vaSingles(dNumbers)
    End If
   
   
    NumbersToWords = Trim$(sReturn)
   
End Function

That works. But I can see this special case handling becoming a problem. Maybe. We’ll see what happens when we test in the hundreds.

└ Tags: syndicated
  • Page 13,445 of 14,665
  • « First
  • «
  • 13,443
  • 13,444
  • 13,445
  • 13,446
  • 13,447
  • »
  • 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