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

The Top 1% Occupy Logic

Daily Dose News Roundup

  • The hidden cost of complacency and Jay Roland’s mission against corporate America’s technical debt crisis
  • Anthropic accuses Alibaba of running the largest distillation campaign yet against Claude
  • ByteDance unveils Seedance 2.5, a 30-second native 4K AI video model that accepts 50 reference inputs
  • Cloudflare teams up with Chrome, Firefox, and Edge on a privacy-first anti-bot protocol
  • The American dream is ‘very dead’ for young Americans, says Mrs. Dow Jones

Quotable

"Though it's too soon to say whether Gadaffi will outlive the Arab revolts of the Winter of 2011, you can bet his wardrobe will be uniquely his until the end." ~ 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

Creating an Appointment in Outlook 2010

Feb19
by Sindy Cator on February 19, 2014 at 12:50 am
Posted In: Around the Web, Outlook, RegEx

I got a new job about a year ago and I went from using Google’s calendar to Outlook. I’ve added some code to Outlook to handle emails a little more like GMail does, but one thing I’ve missed is the ability to add something to the calendar easily. According to Google, you can enter multiple properties of the appointment in one string like “7pm Dinner at Pancho’s” and it’s awesome.

It’s not perfect, though, so I didn’t want to just replicate the function, I wanted to improve it. For one, Google doesn’t deal with fractions of hours very well. Now I can type a narrative in a textbox and create an appointment.

And that opens a pre-filled appointment like this

I started trying to parse the text with a lot of Split() functions, but it quickly became cumbersome. Not impossible, just not very elegant. To be more fancy, I ignored this advice:

Some people, when confronted with a problem, think
“I know, I’ll use regular expressions.” Now they have two problems.

To be perfectly honest, nobody ever confused me with someone who could write regular expressions beyond the incredibly simple ones. But I gave it a go and eventually got some help from stackoverflow and from Rick Measham.

The rules go like this:

  • Start with a time. Can be 5, 5:00, 5pm, 5:00pm, 5 pm, 5 pm CST, 5pmPST and a bunch of other stuff
  • Then the subject or title of the appointment. Stop capturing when you get to " for " or " at " because those are keywords indicating other information.
  • If you get to " at ", everything after that is the location. Stop capturing when you get to " for ".
  • If you get to " for ", everything after that is the duration in hours.

The regex looks like this:

^((?:1[0-2]|0?[1-9])(?::[0-5]\d)?)\s*([ap]m)?\s*([ECMP][DS]T)?\s*(.*?(?=\s+for\s+|\s+at\s+|$))(?:\s+at\s+(.*?(?=\s+for\s+|$)))?(?:\s+for\s+(\d*(?:\.\d+)?)\s*hour)?

Simple, huh? I’ll wrap up this post with a discussion of the entry point procedure. Tomorrow, I’ll discuss the code behind the form.

Public Sub MakeGoogleAppointment()
   
    Dim dtStart As Date
    Dim dtDay As Date
    Dim ufGoogle As UGoogle
    Dim ai As AppointmentItem
   
    ‘if the user is on a calendar, get the date and/or time
    On Error Resume Next
        dtDay = Int(Application.ActiveExplorer.CurrentView.SelectedStartTime)
        dtStart = Application.ActiveExplorer.CurrentView.SelectedStartTime – dtDay
    On Error GoTo 0
   
    ‘if their not on a calendar, assume today
    If dtDay = 0 Then
        dtDay = Date
    End If
   
    ‘Get the rest of the string via a form
    Set ufGoogle = New UGoogle
    ufGoogle.Day = dtDay
    ufGoogle.When = dtStart
    ufGoogle.Initialize
    ufGoogle.Show
   
    ‘create the new appointment
    If Not ufGoogle.UserCancel Then
        Set ai = Application.CreateItem(olAppointmentItem)
        ai.Start = ufGoogle.When
        ai.Duration = ufGoogle.Duration * 60
        ai.Subject = ufGoogle.What
        ai.Location = ufGoogle.Location
        ai.Display
    End If
   
End Sub

The first section attempts to get whatever is selected if the user is looking at a calendar. The SelectedStartTime property returns a Date. It’s only the date portion if the user is on Month view (pretty much the only view I use). It includes both the date and time if the user is on a view that has times. The Int() function gets only the date by lopping off the time if it exists.

If the date is zero, then the user isn’t on a calendar view and I set the date to today.

Next, I instantiate a new userform, pass in some data via Property Let procedures, and run some setup code in an Initialize method.

Finally, if the user doesn’t click Cancel, a new AppointmentItem is created. The duration in my narrative is in hours, but Outlook’s Duration is in minutes, so I multiply by 60 to convert it. The new AppointmentItem is displayed for the user to add more information of change things.

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

IDrive considered mining bitcoins on off-hours, but 3,000 servers would only make $1,300 in a year

Feb19
by Sindy Cator on February 19, 2014 at 12:40 am
Posted In: Around the Web, Insider

servers 520x245 IDrive considered mining bitcoins on off hours, but 3,000 servers would only make $1,300 in a year

Cloud backup service IDrive looked into mining bitcoins during off-peak hours as an alternative revenue stream, but it dropped the plan after estimating that it would produce only a handful of bitcoins per year.

IDrive’s 3,000 servers are active at night when users are backing up their files, but they have a large chunk of inactivity between 3am and 4pm daily. The company’s engineers ran a simulation to see how much revenue it could generate by mining.

To arrive at an estimate, IDrive calculated results for 600 of its quad-core 2.8GHz servers, assuming that mining difficulty would increase linearly over the next year. IDrive pays a flat rate for its electricity use, so mining during off-hours wouldn’t add to its energy bill. According to the team’s research, the additional processing required for mining would still fall under its energy cap.

It’s worth noting that the simulation didn’t take into account increased wear on and the potential shortened lifespan of the servers.

IDrive estimated that after a year of mining 12-hours a day on 600 servers, it would produce 0.4315 bitcoins, or $271 based on today’s exchange rate. Across all of its servers, that would amount to about $1,300 for the year.

Here’s a chart from Coinplorer showing a 24-hour version of the simulation:

Screen Shot 2014 02 18 at 4.08.22 PM 730x314 IDrive considered mining bitcoins on off hours, but 3,000 servers would only make $1,300 in a year

Ultimately, IDrive decided that trying to mine bitcoins proved an “unnecessary security risk” for just a small amount of revenue. It would have to install bitcoin software on each of its servers and re-open areas of its network that have been closed off.

I was surprised to learn that a cloud services company’s entire server capacity would only mine a few bitcoins over the course of a year, but much of that comes from using off-the-shelf hardware that’s not optimized for mining. IDrive might have better luck rerunning the projection for a younger virtual currency like dogecoin.

If you’re interested in learning more about the simulation, IDrive plans to post its findings on its company blog on Wednesday.

See also: Bitcoin: It’s the platform, not the currency, stupid!

Image credit: Jonathan Nackstrand / AFP / Getty Images

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

Cincinnatians get help with Obamacare sign-ups

Feb19
by Sindy Cator on February 19, 2014 at 12:14 am
Posted In: Affordable Care Act, Around the Web, health care, Health insurance, health reform

A series of  events are planned in the coming weeks across Cincinnati to help local residents sign up for  new insurance offered under health reform. The enrollment events are a joint effort announced Tuesday by  Mayor John Cranley and  Enroll America as part of the national nonprofit’s Get Covered campaign. The first event will be held […]

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

Cincinnatians get help with Obamacare sign-ups

Feb19
by Sindy Cator on February 19, 2014 at 12:14 am
Posted In: Affordable Care Act, Around the Web, health care, Health insurance, health reform

A series of  events are planned in the coming weeks across Cincinnati to help local residents sign up for  new insurance offered under health reform. The enrollment events are a joint effort announced Tuesday by  Mayor John Cranley and  Enroll America as part of the national nonprofit’s Get Covered campaign. The first event will be held […]

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

Cincinnatians get help with Obamacare sign-ups

Feb19
by Sindy Cator on February 19, 2014 at 12:14 am
Posted In: Affordable Care Act, Around the Web, health care, Health insurance, health reform

A series of  events are planned in the coming weeks across Cincinnati to help local residents sign up for  new insurance offered under health reform. The enrollment events are a joint effort announced Tuesday by  Mayor John Cranley and  Enroll America as part of the national nonprofit’s Get Covered campaign. The first event will be held […]

└ Tags: syndicated
  • Page 14,509 of 14,651
  • « First
  • «
  • 14,507
  • 14,508
  • 14,509
  • 14,510
  • 14,511
  • »
  • 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