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

UN Security Council Olympic Syria Fail

Daily Dose News Roundup

  • Australian inquiry asks Altman and Amodei to testify
  • Tesla’s Semi finally enters production, nine years after it was shown
  • Chinese cities offer subsidies and cheap computing to lure AI film studios
  • Starlink ground station near Warsaw hit by fire, Poland suspects sabotage
  • Airbus wins 25-year contract to build cyber gateways for France’s armed forces

Quotable

"I only invest in companies that can be run by idiots, because sooner or later one will be". ~ 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

Sony PlayStation TV on sale in the UK now for £84

Nov14
by Sindy Cator on November 14, 2014 at 12:28 pm
Posted In: Around the Web, Gadgets, playstation 4, PlayStation TV, Product Launches, PS Now, sony, UK

The Sony PlayStation TV set top box/mini-console has gone on sale in the UK. You can snap it up from Amazon now for £84. The PlayStation TV comes with a voucher for three PS Vita games, OlliOlli, Velocity Ultra and Worms Revolution, and gives you access to Sony’s PS Now cloud gaming library. You can also use the box to access PlayStation 4 and PlayStation Vita games over your Wi-Fi network and get TV and movie downloads from Sony’s media store. ➤ PlayStation TV [Amazon] Read next – PlayStation TV review: A good idea with poor execution

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

US Department of Justice planes reportedly mimicked cell towers to grab data

Nov14
by Sindy Cator on November 14, 2014 at 12:01 pm
Posted In: Around the Web, Insider

shutterstock_86535445
The US Department of Justice is reportedly using aircraft deployed with specialised electronic equipment to mimic cellphone towers and scoop up phone location and other data from users on the ground. The allegations, first reported by the Wall Street Journal, suggest that the US Marshals Service, which is an agency of the Department of Justice, has been flying Cessna aircraft outfitted with devices that mimic cell towers for seven years, collecting thousands of unique IDs and vast amounts of location data. According to the WSJ report, the Marshals Service planes operate from at least five metropolitan airports giving them enough…

This story continues at The Next Web

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

String concatenation is like the weather…

Nov14
by Sindy Cator on November 14, 2014 at 11:17 am
Posted In: Around the Web

…everyone complains about it, but nobody does anything about it. Well, certainly not Microsoft, anyhows. But Nigel Heffernan at Excellerando.Blogspot.com has. A whiles back in 2012 he put up some nifty code for joining and splitting two dimensional arrays that I just stumbled across. I thought I’d have a go at turning the join one into a function that can be called from the worksheet, and add a few more options while I’m at it. More butchering than tweaking, as you’re about to see.

My revision can be called from the worksheet, and has the following arguments:
=JoinText(Array,[Delimiter],[FieldDelimiter],[DelimitEnd],[SkipBlanks],[Transpose])

Yes, more arguments than at my last social outing. Most are optional and have defaults. Take that how you will. The default delimiter is a comma. The Field Delimiter is a separate Delimiter that gets added if your input array is 2D. Default is also a comma. DelimitEnd puts an extra Delimiter on the end if you want one. Aesthetics only, really. The rest are explained below.

First, the result:

JoinText 1

  • That block in the middle is my data.
  • Column D shows the result if you point the function at each respective row
  • Row 9 shows the result of pointing the function at each respective column
  • In rows 13 to 16 you see the result of pointing it at the entire 2D block of data, under different settings.

Those last two results are what happens if the data is laid out by row and then by column, and you’ve incorrectly told the UDF to transpose the input array. Because by default, the UDF expects the data will be laid out by column and then by row , like this:
 
JoinText 2
 
 
Hard to explain. Even harder to program.

You might notice it skips blanks. It doesn’t have to, if you don’t want it to:
 
JoinText 3
 
 

And it doesn’t need your two arrays to be the same size:
 

JoinText 4
 
 

Here’s the code and workbook:
Join Function_20141114 v6

Public Function JoinText(target As Range, _
                           Optional Delimiter As String = ",", _
                           Optional FieldDelimiter As String = ",", _
                           Optional DelimitEnd As Variant = False, _
                           Optional SkipBlanks As Boolean = False, _
                           Optional Transpose As Boolean = False) As String

‘Based on code from Nigel Heffernan at Excellerando.Blogspot.com
‘http://excellerando.blogspot.co.nz/2012/08/join-and-split-functions-for-2.html

‘ Join up a 2-dimensional array into a string.
‘  Test with something like ? JoinText2([A2:C8]," ",".",0,1,"!")

‘   ####################
‘   # Revision history #
‘   ####################

‘   Date (YYYYMMDD)     Revised by:         Changes:
‘   20141114            Jeff Weir           Turned into worksheet function, added FinalDelimiter and Transpose options

Dim InputArray As Variant
Dim i As Long
Dim j As Long
Dim k As Long
Dim lngNext As Long
Dim i_lBound As Long
Dim i_uBound As Long
Dim j_lBound As Long
Dim j_uBound As Long
Dim arrTemp1() As String
Dim arrTemp2() As String

    If target.Rows.Count = 1 Then
        If target.Columns.Count = 1 Then
            GoTo errhandler ‘Target is a single cell
        Else
            ‘ Selection is a Row Vector
            InputArray = Application.Transpose(target)
            Transpose = True
        End If
    Else
        If target.Columns.Count = 1 Then
            ‘ Selection is a Column Vecton
            InputArray = target
        Else:
            ‘Selection is 2D range. Transpose it if that’s what the user has asked for
            If Transpose Then
                InputArray = Application.Transpose(target)
                Transpose = True
            Else: InputArray = target
            End If
        End If
    End If

    i_lBound = LBound(InputArray, 1)
    i_uBound = UBound(InputArray, 1)
    j_lBound = LBound(InputArray, 2)
    j_uBound = UBound(InputArray, 2)
   
    ReDim arrTemp1(j_lBound To j_uBound)
    ReDim arrTemp2(i_lBound To i_uBound)

    lngNext = 1
    For i = j_lBound To j_uBound
        On Error Resume Next
        If SkipBlanks Then
            If Transpose Then
                ReDim arrTemp2(i_lBound To WorksheetFunction.CountA(target.Rows(i)))
            Else
                ReDim arrTemp2(i_lBound To WorksheetFunction.CountA(target.Columns(i)))
            End If
        End If
        If Err.Number = 0 Then
            k = 1
            For j = i_lBound To i_uBound
                If SkipBlanks Then
                    If InputArray(j, i) <> "" Then
                        arrTemp2(k) = InputArray(j, i)
                        k = k + 1
                    End If
                Else
                    arrTemp2(j) = InputArray(j, i)
                End If
            Next j
            arrTemp1(lngNext) = Join(arrTemp2, Delimiter)
            lngNext = lngNext + 1
        Else:
            Err.Clear
        End If
    Next i
     
    If SkipBlanks Then ReDim Preserve arrTemp1(1 To lngNext – 1)
    If lngNext > 2 Then
        JoinText = Join(arrTemp1, FieldDelimiter)
    Else: JoinText = arrTemp1(1)
    End If
    If DelimitEnd And JoinText <> "" Then JoinText = JoinText & FieldDelimiter

errhandler:
End Function

I like this function. I’m sure I’ll like it even more when you’re all finished polishing it to a bright sheen.

Sheen

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

The UK’s NHS breaches data laws 6 times a day including social media snafus

Nov14
by Sindy Cator on November 14, 2014 at 10:35 am
Posted In: Around the Web, Big Brother Watch, Data, Freedom of Information, Insider, NHS, UK

shutterstock_98324972

Patient records are lost or inappropriately shared by the NHS an average of six times a day, according to new research (PDF) from privacy pressure group Big Brother Watch. The organisation conducted a survey of NHS trusts across Britain and found there have been 7,255 reported breaches of data protection rules in three years. The data breaches included at least 50 cases of information relating to patients being posted on social media and 143 cases where NHS staff accessed private records for “personal reasons”. Big Brother Watch obtained the information using Freedom of Information Act requests and says penalties need to be…

This story continues at The Next Web

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

The UK’s NHS breaches data laws 6 times a day including social media snafus

Nov14
by Sindy Cator on November 14, 2014 at 10:35 am
Posted In: Around the Web, Data, Insider, UK

shutterstock_98324972

Patient records are lost or inappropriately shared by the NHS an average of six times a day, according to new research (PDF) from privacy pressure group Big Brother Watch. The organisation conducted a survey of NHS trusts across Britain and found there have been 7,255 reported breaches of data protection rules in three years. The data breaches included at least 50 cases of information relating to patients being posted on social media and 143 cases where NHS staff accessed private records for “personal reasons”. Big Brother Watch obtained the information using Freedom of Information Act requests and says penalties need to be…

This story continues at The Next Web

└ Tags: news, syndicated
  • Page 12,343 of 14,670
  • « First
  • «
  • 12,341
  • 12,342
  • 12,343
  • 12,344
  • 12,345
  • »
  • 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