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

Gadaffy’s Last Stand

Daily Dose News Roundup

  • Chinese profits rose 25.7%. The CSI 300 fell 9% and the Star 50 fell 29%
  • Novo Nordisk Foundation to build $62M quantum chip plant in Copenhagen
  • The US Army used a laser weapon on American soil, then bought it
  • 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

Quotable

"In the spirit of the Winter Games, politicians should be required to survive at least three Olympic sized Ski Jumps before they can throw their avalanche of bad deals at the People." ~ 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

Guevara, a ‘revolutionary’ P2P car insurance service launches in the UK

Jul01
by Sindy Cator on July 1, 2014 at 11:56 am
Posted In: Around the Web, Insider, Product Launches, UK

carcrash
It might seem like a bit of an odd move to name your startup after the figurehead of the Cuban Revolution and poster boy of rebellion Che Guevara, but that’s exactly what a new fledgling UK peer-to-peer (P2P) car insurance service has done. Admittedly, the gaping void between political uprising, the resultant revolution and car insurance in the UK doesn’t really need to be pointed out, but it’s the notion of trying to interrupt established norms and oust the entrenched elite that led Guevara to take its name. Announced today, rather than work as a P2P network in terms of building…

This story continues at The Next Web

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

Converting Numbers to Words Part IV

Jul01
by Sindy Cator on July 1, 2014 at 11:30 am
Posted In: Around the Web

See Converting Numbers to Words Part III

On to the thousands:

Sub TEST_Thousands()
   
    Debug.Assert NumbersToWords(1000) = "one thousand"
    Debug.Assert NumbersToWords(1001) = "one thousand one"
    Debug.Assert NumbersToWords(1099) = "one thousand ninety-nine"
    Debug.Assert NumbersToWords(1200) = "one thousand two hundred"
    Debug.Assert NumbersToWords(1310) = "one thousand three hundred ten"
    Debug.Assert NumbersToWords(1999) = "one thousand nine hundred ninety-nine"
   
End Sub

Every triplet of numbers follow the same rules, and I’ve already tested 0-999. I need to take all that relevant code and put it in a callable function.

Function ProcessTriplet(ByVal dNumber As Double, Optional ByVal sSuffix As String) As String
       
    Dim sReturn As String
    Dim vaSingles As Variant, vaTens As Variant
   
    vaSingles = Split("zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve,thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen", ",")
    vaTens = Split("zero,zero,twenty,thirty,forty,fifty,sixty,seventy,eighty,ninety", ",")
   
    If dNumber >= 100 Then
        sReturn = sReturn & vaSingles(dNumber \ 100) & " hundred "
        dNumber = dNumber – (dNumber \ 100) * 100
    End If
   
    If dNumber > 19 Then
        sReturn = sReturn & vaTens(dNumber \ 10)
        dNumber = dNumber – (dNumber \ 10) * 10
    End If
   
    If dNumber > 0 Then
        If Right(sReturn, 1) = "y" Then
            sReturn = sReturn & "-"
        End If
   
        sReturn = sReturn & vaSingles(dNumber)
    End If
   
    sReturn = sReturn & Space(1) & sSuffix
   
    ProcessTriplet = Trim(sReturn)
   
End Function

That’s the same old code, just put into a function. The triplet of numbers is passed in and the suffix (currently only “thousand”) is passed in. Now I just need to divide my number into triplets, process them, and concatenate the answers.

Function NumbersToWords(ByVal dNumbers As Double) As String
   
    Dim sReturn As String
    Dim dRemainder As Double
   
    If dNumbers = 0 Then
        sReturn = "zero"
    Else
       
        dRemainder = dNumbers
       
        If dRemainder >= 1000 Then
            sReturn = ProcessTriplet(dRemainder \ 1000, "thousand")
            dRemainder = dRemainder – ((dRemainder \ 1000) * 1000)
        End If
       
        If dRemainder > 0 Then
            sReturn = sReturn & Space(1) & ProcessTriplet(dRemainder)
        End If
       
    End If
   
    NumbersToWords = Trim$(sReturn)
   
End Function

If my numbers is 1,000 or more, I process the thousands triplet and figure the remainder. Then I process the remainder as its own triplet. I guess processing triplets in this way makes my next set of tests already pass.

Sub TEST_TenThousands()

    Debug.Assert NumbersToWords(10000) = "ten thousand"
    Debug.Assert NumbersToWords(10001) = "ten thousand one"
    Debug.Assert NumbersToWords(20099) = "twenty thousand ninety-nine"
    Debug.Assert NumbersToWords(30200) = "thirty thousand two hundred"
    Debug.Assert NumbersToWords(42310) = "forty-two thousand three hundred ten"
    Debug.Assert NumbersToWords(99999) = "ninety-nine thousand nine hundred ninety-nine"

End Sub

Yep, already passing. On deck, the millions.

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

Soundrop’s Show.co helps artists share music and promote their presence on other platforms

Jul01
by Sindy Cator on July 1, 2014 at 10:38 am
Posted In: Around the Web, Product Launches

shutterstock_152283263
Soundrop, the Norwegian startup that offers collaborative playlist ‘listening rooms’ through Spotify and Deezer, has launched a new service called Show.co to help artists promote their music online. It boils down to a simple, clean audio player that can be shared as a dedicated minisite, embeddable widget or social post. Artwork is shown prominently and there’s a large button in the center for playback; the audio file itself can be uploaded directly or plugged in from either SoundCloud or YouTube. Show.co is geared towards marketing though. Once the listener clicks play, a series of conversion cards will appear alongside the…

This story continues at The Next Web

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

Skype will no longer charge EU residents VAT for credit at the point-of-purchase

Jul01
by Sindy Cator on July 1, 2014 at 10:20 am
Posted In: Around the Web, Insider

skype_android_3
Live in the European Union (EU)? Use Skype to call landlines or mobiles? Here’s some interesting payment news for you. In an email circulated to users earlier today, the Microsoft-owned company revealed that it’s bringing about some changes to the way it charges you VAT. Thus far, Skype has always charged those living in the EU and Switzerland 15 percent or 8 percent respectively, on top of the amount of credit they required. So, for example, a Brit wanting £10 worth of credit would actually pay £11.50. VAT at Point-of-Sale Starting from later this month, you’ll only pay for the…

This story continues at The Next Web

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

Crowdwish: The startup that’s willing to dress up as a badger on your behalf

Jul01
by Sindy Cator on July 1, 2014 at 9:23 am
Posted In: Around the Web, Insider, Profiles and Interviews

Wish
From the headline above, you’d be forgiven for thinking that Crowdwish might be some sort of elaborate BaaS (badgers-as-a-service) company, and if you came here with that somewhat unrealistic startup in mind, I apologize. Although, some of the blame probably lies on your shoulders, too. Rather than providing humans dressed as badgers on demand (you’re right, HDABaaS would be the correct acronym for any such service), Crowdwish is a global platform for, well, granting the most popular wish of its users each day. This might not sound all that novel, there are plenty of well established – and frankly huge –…

This story continues at The Next Web

└ Tags: news, syndicated
  • Page 13,424 of 14,665
  • « First
  • «
  • 13,422
  • 13,423
  • 13,424
  • 13,425
  • 13,426
  • »
  • 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