From d880e103131aa78f46d56e2a5463326dd8bcc7d6 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Sat, 17 Jun 2023 04:15:28 -0400 Subject: [PATCH] more lipstick --- dennis/src/dennis.py | 72 ++++++++----------- dennis/static/blog/000000000-swim.html | 34 ++++----- dennis/static/blog/20220506-change.html | 8 +-- dennis/static/blog/20220520-nvidia.html | 2 +- dennis/static/blog/20220701-progress.html | 2 +- dennis/static/games/adam.html | 4 +- dennis/static/games/balls.html | 4 +- ...217-cartman.html => 20221020-cartman.html} | 2 +- solid_start/src/components/Slingshot.tsx | 12 ++-- solid_start/src/root.css | 15 +++- solid_start/src/root.tsx | 3 +- 11 files changed, 80 insertions(+), 78 deletions(-) rename dennis/static/projects/{20230217-cartman.html => 20221020-cartman.html} (93%) diff --git a/dennis/src/dennis.py b/dennis/src/dennis.py index b307ba9..2a5b14f 100644 --- a/dennis/src/dennis.py +++ b/dennis/src/dennis.py @@ -26,25 +26,32 @@ def get_html(content): fake_db = [ Article( - content_type='chatbot', - title='''cartman''', # this stuff will change - date=date(2023, 2, 17), - content=get_html('bots/cartman.html'), + content_type='project', + title='''Cartman is public!''', + date=date(2022, 10, 20), + content=get_html('projects/20221020-cartman.html'), ), Article( - content_type='project', - title='''Cartman''', # this stuff will change - date=date(2023, 2, 17), - content=get_html('projects/20230217-cartman.html'), + content_type='game', + title='''fps''', + date=date(2022, 10, 9), + content=get_html('games/fps.html'), + ), + + Article( + content_type='game', + title='''balls''', + date=date(2022, 9, 13), + content=get_html('games/balls.html'), ), Article( content_type='game', title='''adam''', # this stuff will change - date=date(2023, 2, 17), + date=date(2022, 9, 11), content=get_html('games/adam.html'), - ), + ), Article( content_type='blog', @@ -56,17 +63,10 @@ fake_db = [ Article( content_type='project', title='''What Goes Into a Successful Reddit Post?''', - date=date(2022, 6, 14), + date=date(2022, 6, 16), content=get_html('projects/20220614-reddit.html'), ), - Article( - content_type='game', - title='''fps''', - date=date(2022, 6, 14), - content=get_html('games/fps.html'), - ), - Article( content_type='blog', title='''Back to School''', @@ -75,31 +75,24 @@ fake_db = [ ), Article( - content_type='blog', - title='''It's about time, NVIDIA''', - date=date(2022, 5, 20), - content=get_html('blog/20220520-nvidia.html'), - ), + content_type='game', + title='''snek''', + date=date(2022, 5, 29), + content=get_html('games/snek.html'), + ), Article( content_type='project', title='''Predicting Housing Prices''', date=date(2022, 5, 29), content=get_html('projects/20220529-housing.html'), - ), + ), Article( - content_type='game', - title='''snek''', - date=date(2022, 5, 29), - content=get_html('games/snek.html'), - ), - - Article( - content_type='game', - title='''balls''', - date=date(2022, 5, 29), - content=get_html('games/balls.html'), + content_type='blog', + title='''It's about time, NVIDIA''', + date=date(2022, 5, 20), + content=get_html('blog/20220520-nvidia.html'), ), Article( @@ -112,7 +105,7 @@ fake_db = [ Article( content_type='blog', title='''Hume''', - date=date(2020, 6, 23), + date=date(2022, 2, 7), content=get_html('blog/000000000-swim.html'), ), @@ -131,12 +124,7 @@ async def serve_blog(): @api.get('/dennis/projects') async def serve_projects(): - return [entry for entry in fake_db if entry.content_type == 'project'] - -@api.get('/dennis/games') -async def serve_games(): - - return [entry for entry in fake_db if entry.content_type == 'game'] + return [entry for entry in fake_db if entry.content_type == 'project' or entry.content_type == 'game'] @api.get('/dennis/bots') async def serve_bots(): diff --git a/dennis/static/blog/000000000-swim.html b/dennis/static/blog/000000000-swim.html index 04d800f..777051c 100644 --- a/dennis/static/blog/000000000-swim.html +++ b/dennis/static/blog/000000000-swim.html @@ -4,7 +4,7 @@ 57 Perry Street
New York City

-

Dear Hume,

+ Dear Hume,

You ask advice: ah, what a very human and very dangerous thing to do! For to give advice to a man who asks what to do with his life implies something very close to egomania. To @@ -12,7 +12,7 @@ finger in the RIGHT direction is something only a fool would take upon himself.

-     I am not a fool, but I respect your sincerity in asking my + I am not a fool, but I respect your sincerity in asking my advice. I ask you though, in listening to what I say, to remember that all advice can only be a product of the man who gives it. What is truth to one may be a disaster to another. I do not see life through your eyes, nor you through mine. If I were to attempt @@ -37,14 +37,14 @@ or the swimming.

-     But why not float if you have no goal? That is another question. + But why not float if you have no goal? That is another question. It is unquestionably better to enjoy the floating than to swim in uncertainty. So how does a man find a goal? Not a castle in the stars, but a real and tangible thing. How can a man be sure he's not after the "big rock candy mountain," the enticing sugar-candy goal that has little taste and no substance?

-     The answer—and, in a sense, the tragedy of life—is + The answer—and, in a sense, the tragedy of life—is that we seek to understand the goal and not the man. We set up a goal which demands of us certain things: and we do these things. We adjust to the demands of a concept which CANNOT be valid. When you were young, let us say that you wanted to be a fireman. I feel @@ -55,12 +55,12 @@ reaction is a learning process; every significant experience alters your perspective.

-     So it would seem foolish, would it not, to adjust our lives to + So it would seem foolish, would it not, to adjust our lives to the demands of a goal we see from a different angle every day? How could we ever hope to accomplish anything other than galloping neurosis?

-     The answer, then, must not deal with goals at all, or not with + The answer, then, must not deal with goals at all, or not with tangible goals, anyway. It would take reams of paper to develop this subject to fulfillment. God only knows how many books have been written on "the meaning of man" and that sort of thing, and god only knows how many people have pondered the subject. (I use @@ -70,7 +70,7 @@ paragraphs.

-     I'm going to steer clear of the word "existentialism," but you + I'm going to steer clear of the word "existentialism," but you might keep it in mind as a key of sorts. You might also try something called Being and Nothingness by Jean-Paul Sartre, and another little thing called Existentialism: From Dostoyevsky to Sartre. These are merely suggestions. If @@ -81,7 +81,7 @@ OURSELVES.

-     But don't misunderstand me. I don't mean that we can't BE + But don't misunderstand me. I don't mean that we can't BE firemen, bankers, or doctors—but that we must make the goal conform to the individual, rather than make the individual conform to the goal. In every man, heredity and environment have combined to produce a creature of certain abilities and @@ -89,7 +89,7 @@ will be MEANINGFUL. A man has to BE something; he has to matter.

-     As I see it then, the formula runs something like this: a man + As I see it then, the formula runs something like this: a man must choose a path which will let his ABILITIES function at maximum efficiency toward the gratification of his DESIRES. In doing this, he is fulfilling a need (giving himself identity by functioning in a set pattern toward a set goal) he avoids frustrating his @@ -99,7 +99,7 @@ conform to his own abilities and desires).

-     In short, he has not dedicated his life to reaching a + In short, he has not dedicated his life to reaching a pre-defined goal, but he has rather chosen a way of like he KNOWS he will enjoy. The goal is absolutely secondary: it is the functioning toward the goal which is important. And it seems almost ridiculous to @@ -108,20 +108,20 @@ definitive act of will which makes a man an individual.

-     Let's assume that you think you have a choice of eight paths to + Let's assume that you think you have a choice of eight paths to follow (all pre-defined paths, of course). And let's assume that you can't see any real purpose in any of the eight. Then—and here is the essence of all I've said—you MUST FIND A NINTH PATH.

-     Naturally, it isn't as easy as it sounds. you've lived a + Naturally, it isn't as easy as it sounds. you've lived a relatively narrow life, a vertical rather than a horizontal existence. So it isn't any too difficult to understand why you seem to feel the way you do. But a man who procrastinates in his CHOOSING will inevitably have his choice made for him by circumstance.

-     So if you now number yourself among the disenchanted, then you + So if you now number yourself among the disenchanted, then you have no choice but to accept things as they are, or to seriously seek something else. But beware of looking for goals: look for a way of life. Decide how you want to live and then see what you @@ -129,19 +129,19 @@ look; I don't know what to look for."

-     And there's the crux. Is it worth giving up what I have to look + And there's the crux. Is it worth giving up what I have to look for something better? I don't know—is it? Who can make that decision but you? But even by DECIDING TO LOOK, you go a long way toward making the choice.

-     If I don't call this to a halt, I'm going to find myself writing + If I don't call this to a halt, I'm going to find myself writing a book. I hope it's not as confusing as it looks at first glance. Keep in mind, of course, that this is MY WAY of looking at things. I happen to think that it's pretty generally applicable, but you may not. Each of us has to create our own credo—this merely happens to be mine.

-     If any part of it doesn't seem to make sense, by all means call + If any part of it doesn't seem to make sense, by all means call it to my attention. I'm not trying to send you out "on the road" in search of Valhalla, but merely pointing out that it is not necessary to accept the choices handed down to you by life as you know it. There is more to it than that—no one HAS to do @@ -150,7 +150,7 @@ lots of company.


-

    And that's it for now. Until I hear from you again, I remain,

+

And that's it for now. Until I hear from you again, I remain,

your friend...
Hunter diff --git a/dennis/static/blog/20220506-change.html b/dennis/static/blog/20220506-change.html index 664531b..a1b6014 100644 --- a/dennis/static/blog/20220506-change.html +++ b/dennis/static/blog/20220506-change.html @@ -8,7 +8,7 @@ (Hunter S.Thompson)

-     There comes a time in one's life, perhaps multiple, when there + There comes a time in one's life, perhaps multiple, when there is an unquestionable need for change. Maybe you're not sure how, why, or where it came from, or where even it is you're headed, or how to get there, but here you are taking your first steps toward a new life. A journey into the unknown. I've just set out on one @@ -17,7 +17,7 @@ quite honest. But I know where I've been.

-     Growing up I would always be taking things apart, I HAD to see + Growing up I would always be taking things apart, I HAD to see what was inside. What makes this thing, a thing. What makes it tick? Can it tick faster? For no particular reason I just had to know every little detail about what made the thing the thing that it was and why it did what it did. It's a gift and a curse of @@ -28,7 +28,7 @@ old at that time, and it still puzzles me just what is going on inside there.

-     I have a better idea now, naturally I had to figure out just + I have a better idea now, naturally I had to figure out just what all those pieces were, what they did, and how they did it. What if I replaced some of these parts with other parts? As I honed my web searching skills to try to answer the seemingly endless hows and whys I ended up building myself a little hotrod computer and @@ -41,7 +41,7 @@ I believe) and RAM cooler.

-     After getting comfortable with hardware I started to study the + After getting comfortable with hardware I started to study the software side of things, I tried teaching myself C++ (and didn't get very far), I did teach myself HTML and CSS, some JavaScript, and started playing around with Linux. It took until only a year or two ago to finally be completely on Linux full time (gaming diff --git a/dennis/static/blog/20220520-nvidia.html b/dennis/static/blog/20220520-nvidia.html index 9273313..627c24f 100644 --- a/dennis/static/blog/20220520-nvidia.html +++ b/dennis/static/blog/20220520-nvidia.html @@ -1,5 +1,5 @@

-

   It's about time... NVIDIA has finally released and is starting to +

It's about time... NVIDIA has finally released and is starting to support Open-source software with their new modules released recently for the Linux kernel. NVIDIA historically has been seemingly against Linux/OSS for whatever reason. This is a huge step forward both for end users and NVIDIA. diff --git a/dennis/static/blog/20220701-progress.html b/dennis/static/blog/20220701-progress.html index 9e62219..9a36c46 100644 --- a/dennis/static/blog/20220701-progress.html +++ b/dennis/static/blog/20220701-progress.html @@ -1,5 +1,5 @@

-

The progress update

+ The progress update

diff --git a/dennis/static/games/adam.html b/dennis/static/games/adam.html index 54e7a36..282bb94 100644 --- a/dennis/static/games/adam.html +++ b/dennis/static/games/adam.html @@ -1 +1,3 @@ -adam +
+

adam is a quick fps demo to test how well WebGL performs using Unity.

+
diff --git a/dennis/static/games/balls.html b/dennis/static/games/balls.html index 20a83da..7d6a6b1 100644 --- a/dennis/static/games/balls.html +++ b/dennis/static/games/balls.html @@ -1 +1,3 @@ -balls + diff --git a/dennis/static/projects/20230217-cartman.html b/dennis/static/projects/20221020-cartman.html similarity index 93% rename from dennis/static/projects/20230217-cartman.html rename to dennis/static/projects/20221020-cartman.html index 929fe76..710044e 100644 --- a/dennis/static/projects/20230217-cartman.html +++ b/dennis/static/projects/20221020-cartman.html @@ -1,6 +1,6 @@
    -
  • Cartman is trained by combining Microsoft's +
  • Cartman is trained by combining Microsoft's DialoGPT-large NLP model (trained on 147M samples of multi-turn dialogue from Reddit) with 17 seasons of South Park diff --git a/solid_start/src/components/Slingshot.tsx b/solid_start/src/components/Slingshot.tsx index 1bc47be..13ac45e 100644 --- a/solid_start/src/components/Slingshot.tsx +++ b/solid_start/src/components/Slingshot.tsx @@ -12,14 +12,14 @@ export type Ammo = { export default function Slingshot(props: { ammo: Ammo }) { return ( -
    -

    - {props.ammo.date} -

    -

    +
    +

    {props.ammo.title}

    -

    {props.ammo.content_type}

    +
    +

    + {props.ammo.date} +

    ) as JSXElement; diff --git a/solid_start/src/root.css b/solid_start/src/root.css index 7894c0e..6661444 100644 --- a/solid_start/src/root.css +++ b/solid_start/src/root.css @@ -3,10 +3,19 @@ @tailwind utilities; /* for innerHTML articles */ -article p, h3 { - margin-top: 2em; +article p { + @apply mt-5; + @apply indent-4; } article h3 { - font-size: 1.5em; + @apply mt-8; +} + +article h3 { + @apply text-2xl text-orange-600; +} + +article a { + @apply text-orange-300 hover:underline border-orange-300 duration-300; } diff --git a/solid_start/src/root.tsx b/solid_start/src/root.tsx index 7216017..d1aafa8 100644 --- a/solid_start/src/root.tsx +++ b/solid_start/src/root.tsx @@ -25,7 +25,7 @@ export default function Root() { : "border-transparent hover:border-orange-700 duration-300"; return ( - + doordesk @@ -56,6 +56,7 @@ export default function Root() { +

    :)


    );