Becausetodaywhatwe'regoingtobuildis a timetrackingtoolorbasicallyanautomatictimeFrankuntilusingPython.
Whatthisisgoingtobeabletodoisbasicallytheplanatleastisforittobeabletoautomaticallytrackwhateverwe'rewhatever, likeapplication, we'reusingwhateverwebsitewe'reonandbasicallygiveus a timespentoneachtask.
I thinkwe'regoingtojustuse a Jasonfilefornowandjustdisplaythedaughtersavedthedaughtersomewheresothatwethencanusethatinwhateverwaywewant.
Andtheideaforisformetothencreatethisscriptandthenuploadedtogettubsothatyoucanthendownloaditanduseitforwhateveryouwant, becausethenyouwillhavetheJasondaughterandyou'llbeabletothendisplayitinwhateverwayyouwanttodisplayit, whetheryouwanttomake a websiteforitorwhetheryouwanttomakejust a knackforit.
Whateveryouwanttodo, youcandoit.
Sothat's gonnabethetestfortoday.
I think I'm alsogoingtomake a secondvideo, likeincompanytothisonewhere I willactuallymakeitflutteratjustlocallyonmycomputer, where I'llactuallydisplaythisJasonDattainsomesortoflike, visualway.
Allright, sothesearetherequirementsthat I'vecomeupwith, and, uh, I madethis a littlebitmoredetailthan I usuallydojusttokindofgiveyou a bitmoreofaninsightintokindofthewaythat I'm thinkingaboutthissohopefullythat'llhelp a littlebit.
Er, thetimespentonstackoverflowintimespentonYouTubeAndthenwhen I createdis a focuscategoryorsomethingherewherebasically, thisisgonnabethefocusofftoday's onedaybuild.
Sowhatwewanttofocusonistracktimespentonemail.
Sobasically, since I startedthisYouTubechannel, I'vebeengetting a lotmore e mailshavebeenspending a lotmoretimeonemail.
Sowhat I wanttobeabletodoisbasicallytrackallthetimespentonthereandtheThat's actuallythereasonthat I cameupwiththisideabecauseusually I triedtoactuallyuselike a timer.
The 1st 1 isweneedtobeabletomonitorwheretheuseris, somonitortheactivityoftheuserandwhatthatneedstobeabletodoisbasicallyneedstobeabletoseewhatwebsiteisbeingusedandwhatAPPisbeingused.
Thenthenextthingisgonnabetostart a timerwheneverweopenedupactorsite, andthenweneedtobeabletosavethedaughterto a Jasonfile.
Allright, Sonow I think I mayhavesolvedtheproblemofactuallyseeingWhat's thecurrentlikeyour l that's beingusedThisandthatwaslikeitwas a difficultproblems, asshole.
Andthewaythat I wasabletosolveitwasbasicallybyusingApplescriptAndwhatyoudothatmiss, yougivecertaincommands, anditwillthendocertainthings.
I don't understanditatalllikethis.
Ittookme a whiletofigureout, but I gotthis.
WhichnowgetsthecurrentyouEarlbeingused.
So, uh, thatmeansthatifwerunit, itwillsayterminal.
ButthenifwegohereLet's justgotoYouTube.
TherightnowprintedterminaltherePrinceGoogleChromeandthen a printedthatwewereopening a newtab, whichiswhatweweredoing.
AndnowitprintsGoogleChromeandtheEarl.
Sowhatactualsitewereusing?
Soyeah, that's, um, prettyhappywiththis, becausethatwasitwas a lotmoredifficultthan I thoughtitwasgonnabe.
Andthatthatseemslikethat's kindofthetrendforalloftheseonedaybuilds, theyalwaysendupbeingwayharderthan I thinkthey'regonnabeokay, sowecanseewhatwebsiteisbeingused.
Sothat's good.
AndwecanseewhatAPPisbeingused.
Sothat's good.
Sowe'reabletonowmonitortheactivity s sothatpartisdone, thenextpartisgoingtobetostart a timerwhen a siteopensupor a napopensup.
I think I'm goingtogotothegymnow, actually, becauseit's 1:15 p.m. And, uh, yeah, I needtojusttake a break, eatsomethingandcomebacktoitin a minute.
Allright, that's whathappened.
I prettymuchspendthelastthreehoursisthreePMrightnow, basicallydoingnothing.
Justwastingmytime.
I didn't eat, I didn't goworkout.
I justbasicallysatonmyphone, gotstuckthere, andthishappenswaytoooften.
Allright, Sotherecentlykeepingthisinthevideo, it'llisbecausethisissomethingthathappenstome a lot.
I justliketotake a breakfromprogrammingtogotothegym.
Andthenassoonas I stoppedprogramming, I realizedthat I'm, like, deadtiredand I don't reallyfeellike I haveanyenergytogotothegym.
Andtherefore, I enduponthecouchjustprocrastinatingonmyphone, and I getmoreandmoretiredandthen 234 hourshavegonebyand I haven't doneanything.
Andthen I feellike I needtogetbacktowork, andso I endupdoingprettymuchnothing.
So I thoughtthisis a goodopportunitytodosomethinginsteadofdoingnothing.
Soinsteadofnotgoingtothegymandnotdoinganything, I'm gonnagofor a walkthatsimplyandinthequestionaboutintelligence, canyoubuildmachinesthathavethatintelligent?
I thinkbythetimeweget a machinethatcanindependentlycomeupwiththatlevelofproofsprobablyquitecloseto a G I.
Thesecondquestionisthequestionaboutconsciousness.
I'm listeningtotheartificialintelligencepodcastwithMaxTakeMark, whichis a Swedishperson, And I canreallyrecommendlisteningtothatepisodeandalltheotherpursuitsoftheartificialItalianjust a quicklittletoanythingatall.
I can t humanemotionwherewhatwhenitaccomplishesitsmachinegoalthattheviewsittosomehowsomethingverypositiveandrightSoallright, sonowabletoactuallysaveitto a Jasonfile.
Butwhat I wanttodois I wanttoactuallydosomelikestringsplittingbasicallywhereweremovethispartandalsothispartsothatwejustgetthedomainnamebasicallyandthat's thengoingtobethenameoftheactivity.
Andwherethisisgonnahappenishere.
AndwhatwewanttodoiswewantThiowhenitis a websitethatwewanttosplitthestringofthegirlandbasicallygetthewebsitename.
Sothat's whatwe'regonnadonow.
And I'llgetbacktoyouwhenwe'redone.
Allright.
So, uhwell, itworksnowprettymuchthewaythatwewantedtowork.
ButtheonlySoassoonas I switchedusrightnowontheterminalhere, asyoucanseeandif I switchovertocode, then I thinkitwilladd a newactivitycalledCode, anditwilladdthetimethat I'vespentonhere.
I think I'vespentprobably a minutein 30 seconds, maybetwominutessobutifwewanttotestthis, I'lljustgointo a visualstudiocodeandwait a coupleseconds.
Andyetsothenitadded a newtimeentrytocodeandthatisoneminutesand 50 seconds.
Soifwemovebackhereandwehave a looksee, itaddsanotherentryintotheterminalcategoryandnotthecodecategories.
So, basicallyinheresomewhere, we'reprobablyrenamingthefile, uh, toosoon, andthenwe'readding, Yep, So I'llhavetotrytofigurethisout, allright, so I think I'llfixthatrightnow.
Itaddsitinthewaythatway.
Wantedtoaddbasically.
Nowif I openupGoogleChromehere, itshouldjusttaketheamountoftimethat I'vespenthereandadditas a newentryintotheterminalandstartcountinghowmuchtime I'm spendingon.
GoGo.
Sodoingthat.
Sotheradio, itadded a newtimeentryforthetimethatwespenthere.
Andnowlet's saythatwe'regooglingsomeassociates.
That's notwhat I wanted.
Let's saythatwe'reGoogleingsofstuff.
We'respendingtimeindifferenttabs.
So I thinkthatitdoesn't reallyadd a newprimeentryuntilwemovedtoo.
Maybeyoutoo.
I'm notsureofthiswork, but I thinkitmightwork.
Okay, sonowitaddedYouTubehere, butasyouSo I movedbetween, likesackoverflowandYouTubeanddifferentwebsites.
I canjustbrowseanddowhatever I want, andthenitwillautomaticallyaddthetimeentries.
Sothereyougo.
Itaddedanothertimeentryintocode.
Allright, sothat's it.
That's thisonedaybilldone, and I'm superhappyoutFats.
Thatactuallywent.
I thinkittookme, like, fivehoursintotalorsomelikethatactuallybuilditandcompleteit.
Andthisisprobablyoneofthemostusefulthingsthat I'vebuiltonthischanneloninoneoftheseonedaybuildsbecausethisissomethingthat I doeveryday.
I alwaysstart a timerwhen I startworkingonsomething, and I stopitwhen I startworkingonthatthisway, we'llallbeactuallyabletojustautomatethatstuffsothatitwillautomaticallystartthetimerinthetimerwhenever I goinandoutofdifferenttests.
Usuallytheyhavesomefeaturewhereit's likeifyoudon't doanythingfor, like 30 minutes, 20 minutes, it'llactuallystopitself.
Butthepresident's startisusuallysomethingthatis a bitdifficult.
Toeactuallydoso.
Whatwe'lldonowis I'llpushthistogettubandthen I'lladd a linktomygetupdepositoryinthedescriptionofthisvideo, incaseyouwanttousethisyourself.
Andlike I said, I thinkitisoneofthemostusefulonedaybillsthat I'vedonesofar.
So I'm reallyhappywithit.
And I'm alsoexcitedtogetstartedonbuildingandactandanactual, like, graphicaluserinterfaceforthistodisplaydifferentchartsandgraphsandallthatstuffforthetimespentondifferentthings.
Sothat's gonnabecomingupin a videoverysoon, I hope.
Anyway, that's itforthisone.
I hopeyouenjoyedit.
I trulydid.
Thisisoneofthosethingsthatjustperfectformebecause I lovetrackingstuffandbeingabletoautomatethingssobeingabletobringthesetwotogetherandbuildthescript.
It's justbeautiful, inmyopinion.
Solike I said, I hopeyouenjoyedit, and I hope I'llseeyouinthenextone.