Message Boards Message Boards

Creative routines charts

POSTED BY: Patrick Scheibe
4 Replies

On a related note please see "The Personal Analytics of My Life" by Stephen Wolfram. @Patrick's idea immediately brought to mind the following related subjects:

  • Assuming we have the data, we probably could easy identify proximity of a specific personal routine to a few famous people routines with similar data. We could also cluster such data into some major "creative routine types".

  • A temporal visualization of such data across a human life could help to determine true steady stages of how a person deals with surrounding world. Infant, child, teenager, adult, senior etc. But again data is the key. Though maybe in nearest future people will have numerous IoT devices, smart houses with embedded monitoring, etc. to accumulate a wealth of data.

POSTED BY: Vitaliy Kaurov
POSTED BY: Henrik Schachner

![enter image description here][3] - you have earned "Featured Contributor" badge, congratulations!

This is a great post and it has been selected for the curated [Staff Picks][1] group. [Your profile][2] is now distinguished by a "Featured Contributor" badge.

POSTED BY: EDITORIAL BOARD

Good Lord, who even knows what my schedule challenge would look like? I do different things every day, with not even any consistency in my sleeping or eating schedule, yet alone anything else. Which means all of this is just too much work. If there aren't big, easy, no fuss buttons to press, I wouldn't do it.

activityButton[bin_Databin, activity_String, 
  Dynamic[currentActivity_]] := 
 Button[activity, 
  Module[{comment = 
     InputString[
      "Add comment for activity. Leave field empty for no comment, or \
press cancel to Cancel the activity addition."]},
   If[StringQ[comment],
    bin["Add", <|"activity" -> activity, "comment" -> comment|>]; 
    currentActivity = activity]],
  Method -> "Queued",
  Background -> 
   Dynamic[If[currentActivity === activity, Darker[Green], 
     Darker[Gray]]], 
  BaseStyle -> {"ControlStyle", FontColor -> White, 
    ControlsRendering -> "Generic"}]

Well, that's kind of a big, easy, no-fuss button. BUT I WANT A PALETTE!

With[{bin = bin}, 
 NotebookSave[
  CreatePalette[DynamicModule[{currentActivity = ""}, Column[{
      activityButton[bin, "work", Dynamic[currentActivity]],
      activityButton[bin, "otherwork", Dynamic[currentActivity]],
      activityButton[bin, "exercise", Dynamic[currentActivity]],
      activityButton[bin, "social", Dynamic[currentActivity]],
      activityButton[bin, "sleep", Dynamic[currentActivity]],
      Button["Copy Databin expr", CopyToClipboard[bin]]},
     Spacings -> 0],
    Initialization :> 
     Quiet@Module[{lastVal = Last[Get[bin]]["Data", "activity"]}, 
       If[StringQ[lastVal], currentActivity = lastVal]],
    UnsavedVariables -> {currentActivity}], Magnification -> 2],
  FileNameJoin[{$UserBaseDirectory, "SystemFiles", "FrontEnd", 
    "Palettes", "Activity.nb"}]];
 FrontEndExecute[FrontEnd`ResetMenusPacket[{Automatic}]]
]

Humph. Well, I still have to assign bin to be a valid Databin. There's always something.

bin = CreateDatabin["Name"->"Daily schedule challenge"]
POSTED BY: John Fultz
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract