more lipstick

This commit is contained in:
Adam 2023-06-17 04:15:28 -04:00
parent 849b9454d7
commit d880e10313
11 changed files with 80 additions and 78 deletions

View file

@ -26,25 +26,32 @@ def get_html(content):
fake_db = [ fake_db = [
Article( Article(
content_type='chatbot', content_type='project',
title='''cartman''', # this stuff will change title='''Cartman is public!''',
date=date(2023, 2, 17), date=date(2022, 10, 20),
content=get_html('bots/cartman.html'), content=get_html('projects/20221020-cartman.html'),
), ),
Article( Article(
content_type='project', content_type='game',
title='''Cartman''', # this stuff will change title='''fps''',
date=date(2023, 2, 17), date=date(2022, 10, 9),
content=get_html('projects/20230217-cartman.html'), content=get_html('games/fps.html'),
),
Article(
content_type='game',
title='''balls''',
date=date(2022, 9, 13),
content=get_html('games/balls.html'),
), ),
Article( Article(
content_type='game', content_type='game',
title='''adam''', # this stuff will change title='''adam''', # this stuff will change
date=date(2023, 2, 17), date=date(2022, 9, 11),
content=get_html('games/adam.html'), content=get_html('games/adam.html'),
), ),
Article( Article(
content_type='blog', content_type='blog',
@ -56,17 +63,10 @@ fake_db = [
Article( Article(
content_type='project', content_type='project',
title='''What Goes Into a Successful Reddit Post?''', 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'), 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( Article(
content_type='blog', content_type='blog',
title='''Back to School''', title='''Back to School''',
@ -75,31 +75,24 @@ fake_db = [
), ),
Article( Article(
content_type='blog', content_type='game',
title='''It's about time, NVIDIA''', title='''snek''',
date=date(2022, 5, 20), date=date(2022, 5, 29),
content=get_html('blog/20220520-nvidia.html'), content=get_html('games/snek.html'),
), ),
Article( Article(
content_type='project', content_type='project',
title='''Predicting Housing Prices''', title='''Predicting Housing Prices''',
date=date(2022, 5, 29), date=date(2022, 5, 29),
content=get_html('projects/20220529-housing.html'), content=get_html('projects/20220529-housing.html'),
), ),
Article( Article(
content_type='game', content_type='blog',
title='''snek''', title='''It's about time, NVIDIA''',
date=date(2022, 5, 29), date=date(2022, 5, 20),
content=get_html('games/snek.html'), content=get_html('blog/20220520-nvidia.html'),
),
Article(
content_type='game',
title='''balls''',
date=date(2022, 5, 29),
content=get_html('games/balls.html'),
), ),
Article( Article(
@ -112,7 +105,7 @@ fake_db = [
Article( Article(
content_type='blog', content_type='blog',
title='''Hume''', title='''Hume''',
date=date(2020, 6, 23), date=date(2022, 2, 7),
content=get_html('blog/000000000-swim.html'), content=get_html('blog/000000000-swim.html'),
), ),
@ -131,12 +124,7 @@ async def serve_blog():
@api.get('/dennis/projects') @api.get('/dennis/projects')
async def serve_projects(): async def serve_projects():
return [entry for entry in fake_db if entry.content_type == 'project'] return [entry for entry in fake_db if entry.content_type == 'project' or entry.content_type == 'game']
@api.get('/dennis/games')
async def serve_games():
return [entry for entry in fake_db if entry.content_type == 'game']
@api.get('/dennis/bots') @api.get('/dennis/bots')
async def serve_bots(): async def serve_bots():

View file

@ -4,7 +4,7 @@
57 Perry Street<br /> 57 Perry Street<br />
New York City<br /> New York City<br />
</p> </p>
<p>Dear Hume,</p> Dear Hume,
<p> <p>
You ask advice: ah, what a very human and very dangerous thing to do! For to give advice 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 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. finger in the RIGHT direction is something only a fool would take upon himself.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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 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 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. or the swimming.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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 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 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? goal that has little taste and no substance?
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;The answer&mdash;and, in a sense, the tragedy of life&mdash;is The answer&mdash;and, in a sense, the tragedy of life&mdash;is
that we seek to understand the goal and not the man. We set up a goal which demands of 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 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 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. reaction is a learning process; every significant experience alters your perspective.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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? accomplish anything other than galloping neurosis?
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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 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 that sort of thing, and god only knows how many people have pondered the subject. (I use
@ -70,7 +70,7 @@
paragraphs. paragraphs.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 might keep it in mind as a key of sorts. You might also try something called
<i>Being and Nothingness</i> by Jean-Paul Sartre, and another little thing called <i>Being and Nothingness</i> by Jean-Paul Sartre, and another little thing called
<i>Existentialism: From Dostoyevsky to Sartre.</i> These are merely suggestions. If <i>Existentialism: From Dostoyevsky to Sartre.</i> These are merely suggestions. If
@ -81,7 +81,7 @@
OURSELVES. OURSELVES.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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&mdash;but that we must make the goal conform to the firemen, bankers, or doctors&mdash;but that we must make the goal conform to the
individual, rather than make the individual conform to the goal. In every man, heredity 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 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. will be MEANINGFUL. A man has to BE something; he has to matter.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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 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 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). conform to his own abilities and desires).
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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 goal is absolutely secondary: it is the
<i>functioning toward the goal</i> which is important. And it seems almost ridiculous to <i>functioning toward the goal</i> which is important. And it seems almost ridiculous to
@ -108,20 +108,20 @@
definitive act of will which makes a man an individual. definitive act of will which makes a man an individual.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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&mdash;and here is the essence of all I've purpose in any of the eight. Then&mdash;and here is the essence of all I've
said&mdash;you MUST FIND A NINTH PATH. said&mdash;you MUST FIND A NINTH PATH.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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 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 procrastinates in his CHOOSING will inevitably have his choice made for him by
circumstance. circumstance.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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. have no choice but to accept things as they are, or to seriously seek something else.
But beware of looking for But beware of looking for
<i>goals</i>: look for a way of life. Decide how you want to live and then see what you <i>goals</i>: 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." look; I don't know what to look for."
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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&mdash;is it? Who can make that decision but you? But for something better? I don't know&mdash;is it? Who can make that decision but you? But
even by DECIDING TO LOOK, you go a long way toward making the choice. even by DECIDING TO LOOK, you go a long way toward making the choice.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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 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&mdash;this generally applicable, but you may not. Each of us has to create our own credo&mdash;this
merely happens to be mine. merely happens to be mine.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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, 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 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&mdash;no one HAS to do you by life as you know it. There is more to it than that&mdash;no one HAS to do
@ -150,7 +150,7 @@
lots of company. lots of company.
</p> </p>
<br /> <br />
<p>&nbsp;&nbsp;&nbsp;&nbsp;And that's it for now. Until I hear from you again, I remain,</p> <p>And that's it for now. Until I hear from you again, I remain,</p>
<p style="text-align: right;"> <p style="text-align: right;">
your friend...<br /> your friend...<br />
Hunter Hunter

View file

@ -8,7 +8,7 @@
(Hunter S.Thompson) (Hunter S.Thompson)
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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 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 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. quite honest. But I know where I've been.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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? 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 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 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. old at that time, and it still puzzles me just what is going on inside there.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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 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 seemingly endless hows and whys I ended up building myself a little hotrod computer and
@ -41,7 +41,7 @@
I believe) and RAM cooler. I believe) and RAM cooler.
</p> </p>
<p> <p>
&nbsp;&nbsp;&nbsp;&nbsp;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 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 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 took until only a year or two ago to finally be completely on Linux full time (gaming

View file

@ -1,5 +1,5 @@
<article> <article>
<p>&nbsp;&nbsp;&nbsp;It's about time... NVIDIA has finally released and is starting to <p>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 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. kernel. NVIDIA historically has been seemingly against Linux/OSS for whatever reason.
This is a huge step forward both for end users and NVIDIA. This is a huge step forward both for end users and NVIDIA.

View file

@ -1,5 +1,5 @@
<article> <article>
<p>The progress update</p> The progress update
<p style='text-align: center;'> <p style='text-align: center;'>
<img src="https://doordesk.net/pics/plates.gif" /> <img src="https://doordesk.net/pics/plates.gif" />
</p> </p>

View file

@ -1 +1,3 @@
adam <article>
<p><a href="https://doordesk.net/games/adam/" target="_blank">adam</a> is a quick fps demo to test how well WebGL performs using <a href="https://unity.com">Unity</a>.</p>
</article>

View file

@ -1 +1,3 @@
balls <article>
<p><a href="https://doordesk.net/games/balls/">balls</a> is another demo to test WebGL performance. This time using <a href="https://godotengine.org/">Godot Engine</a>.</p>
</article>

View file

@ -1,6 +1,6 @@
<article> <article>
<ul> <ul>
<li><a href="https://github.com/adoyle0/chatbots">Cartman</a> is trained by combining Microsoft's <li><a href="https://doordesk.net/cartman">Cartman</a> is trained by combining Microsoft's
<a href="https://huggingface.co/microsoft/DialoGPT-large">DialoGPT-large</a> <a href="https://huggingface.co/microsoft/DialoGPT-large">DialoGPT-large</a>
NLP model (trained on 147M samples of multi-turn dialogue from Reddit) with 17 seasons of NLP model (trained on 147M samples of multi-turn dialogue from Reddit) with 17 seasons of
<a href="https://southparkstudios.com">South Park</a> <a href="https://southparkstudios.com">South Park</a>

View file

@ -12,14 +12,14 @@ export type Ammo = {
export default function Slingshot(props: { ammo: Ammo }) { export default function Slingshot(props: { ammo: Ammo }) {
return ( return (
<main class="bg-zinc-700 mx-auto p-6 my-5 w-11/12 max-w-screen-xl rounded-md shadow-lg bg-opacity-20"> <main class="bg-zinc-700 mx-auto p-7 my-5 w-11/12 max-w-screen-xl rounded-md shadow-lg bg-opacity-10">
<p class="text-right"> <h1 class="max-6-xs text-3xl text-orange-600 font-light capitalize">
{props.ammo.date}
</p>
<h1 class="max-6-xs text-3xl text-red-600 font-light uppercase">
{props.ammo.title} {props.ammo.title}
</h1> </h1>
<p class="m-2">{props.ammo.content_type}</p> <hr class="opacity-50" />
<p class="opacity-50 text-xs pt-1.5 pb-3.5">
{props.ammo.date}
</p>
<div innerHTML={props.ammo.content} /> <div innerHTML={props.ammo.content} />
</main> </main>
) as JSXElement; ) as JSXElement;

View file

@ -3,10 +3,19 @@
@tailwind utilities; @tailwind utilities;
/* for innerHTML articles */ /* for innerHTML articles */
article p, h3 { article p {
margin-top: 2em; @apply mt-5;
@apply indent-4;
} }
article h3 { 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;
} }

View file

@ -25,7 +25,7 @@ export default function Root() {
: "border-transparent hover:border-orange-700 duration-300"; : "border-transparent hover:border-orange-700 duration-300";
return ( return (
<Html lang="en" class="text-orange-50"> <Html lang="en" class="text-orange-50 antialiased font-mono tracking-tighter">
<Head> <Head>
<Title>doordesk</Title> <Title>doordesk</Title>
<Meta charset="utf-8" /> <Meta charset="utf-8" />
@ -56,6 +56,7 @@ export default function Root() {
</ErrorBoundary> </ErrorBoundary>
</Suspense> </Suspense>
<Scripts /> <Scripts />
<p class="text-center hover:rotate-180 duration-200"><A href="https://open.spotify.com/playlist/3JRNw9gpt1w5ptsw8uDeYc?si=8f7e4191113f41f9">:)</A></p><br />
</Body> </Body>
</Html> </Html>
); );