Commit graph

40 commits

Author SHA1 Message Date
Paul Gauthier
c2c36283a7 copy 2024-05-02 19:04:18 -07:00
Paul Gauthier
54aa208171 aider: Adjusted the video container's padding-bottom to maintain the original 1060x1080 aspect ratio.
# Aider chat conversation:

USER: but it's a 1060 wide by 1080 high video, not 16:9

ASSISTANT: You're right, the video dimensions are 1060x1080, which is not a 16:9 aspect ratio. To maintain the original aspect ratio of the video, we can calculate the padding-bottom percentage based on the video's height divided by its width. Here are the updated changes:

_posts/2024-05-02-browser.md
<source>
<<<<<<< SEARCH
<style>
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
</style>
=======
<style>
.video-container {
  position: relative;
  padding-bottom: 101.89%; /* 1080 / 1060 = 1.0189 */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
</style>
>>>>>>> REPLACE
</source>

The change:

1. Update the `padding-bottom` value to `101.89%`, which is calculated by dividing the video's height (1080) by its width (1060) and multiplying by 100 to get a percentage.

This change will ensure that the responsive video container maintains the original aspect ratio of the 1060x1080 video.
2024-05-02 18:02:51 -07:00
Paul Gauthier
a372fff409 aider: Made the video responsive to prevent overflow on mobile devices.
# Aider chat conversation:

USER: the video overflows the width of the browser on mobile

ASSISTANT: To fix the video overflowing the width of the browser on mobile devices, we can add some CSS styles to make the video responsive. Here are the changes:

_posts/2024-05-02-browser.md
<source>
<<<<<<< SEARCH
<video width="1060" height="1080" controls loop poster="/assets/browser.jpg">
  <source src="/assets/aider-browser-social.mp4" type="video/mp4">
  <a href="/assets/aider-browser-social.mp4">Aider browser UI demo video</a>
</video>
=======
<div class="video-container">
  <video controls loop poster="/assets/browser.jpg">
    <source src="/assets/aider-browser-social.mp4" type="video/mp4">
    <a href="/assets/aider-browser-social.mp4">Aider browser UI demo video</a>
  </video>
</div>

<style>
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
</style>
>>>>>>> REPLACE
</source>

The changes:

1. Wrap the `<video>` element inside a `<div>` with class `video-container`.
2. Remove the `width` and `height` attributes from the `<video>` element.
3. Add a `<style>` block with CSS for the `video-container` class:
   - Set `position: relative` on the container.
   - Use `padding-bottom: 56.25%` to maintain a 16:9 aspect ratio.
   - Set `height: 0` and `overflow: hidden` to contain the video.
4. Add CSS for the `video` element inside `video-container`:
   - Set `position: absolute` to position it within the container.
   - Set `top: 0`, `left: 0`, `width: 100%`, `height: 100%` to make it fill the container.

These changes will make the video responsive and fit within the width of the browser on mobile devices while maintaining its aspect ratio.
2024-05-02 18:02:10 -07:00
Paul Gauthier
259a663941 Increased the size of the video player on the browser post. 2024-05-02 18:02:09 -07:00
Paul Gauthier
192bc6592e aider: Added the 'loop' attribute to the video element to enable looping the video.
# Aider chat conversation:

USER: can we loop the video?

ASSISTANT: To loop the video, we can add the `loop` attribute to the `<video>` tag.

Here is the *SEARCH/REPLACE* block:

_posts/2024-05-02-browser.md
<source>
<<<<<<< SEARCH
<video width="704" height="720" controls poster="/assets/browser.jpg">
=======
<video width="704" height="720" controls loop poster="/assets/browser.jpg">
>>>>>>> REPLACE
</source>
2024-05-02 10:48:15 -07:00
Paul Gauthier
05450fb3d2 copy 2024-05-02 10:45:53 -07:00
Paul Gauthier
db0e420ea0 aider: Added a poster image to the video tag
# Aider chat conversation:

USER: add the highlight image as the thumbnail that will show before the <video> tag plays

ASSISTANT: To add the highlight image as a thumbnail that shows before the video plays, we can use the `poster` attribute on the `<video>` tag.

Here is the *SEARCH/REPLACE* block:

_posts/2024-05-02-browser.md
<source>
<<<<<<< SEARCH
<video width="704" height="720" controls>
=======
<video width="704" height="720" controls poster="/assets/browser.jpg">
>>>>>>> REPLACE
</source>

The `poster` attribute specifies an image to be shown while the video is downloading, or until the user hits the play button. This will display the `browser.jpg` image before the video starts playing.
2024-05-02 10:41:46 -07:00
Paul Gauthier
b087cd670f Enabled browser-based AI pair programming in Aider. 2024-05-02 10:41:44 -07:00
Paul Gauthier
7c2e9a394c browser blog post 2024-05-02 10:39:33 -07:00
Paul Gauthier
93bd187bf3 Added --opus 2024-04-18 17:09:43 -07:00
Paul Gauthier
324655be75 copy 2024-04-09 17:13:12 -07:00
Paul Gauthier
17a1de22e2 copy 2024-04-09 17:06:58 -07:00
Paul Gauthier
f6c5112cc1 copy 2024-04-09 17:00:54 -07:00
Paul Gauthier
c0a6d1d1e5 copy 2024-04-09 16:59:52 -07:00
Paul Gauthier
eea35a3414 copy 2024-04-09 16:57:58 -07:00
Paul Gauthier
00f1cdb561 Added gpt-4-turbo vision blog post 2024-04-09 16:55:35 -07:00
Paul Gauthier
f45887d176 copy 2024-03-08 08:34:07 -08:00
Paul Gauthier
76c3f66915 copy 2024-03-08 08:21:28 -08:00
Paul Gauthier
ae768054b5 copy 2024-03-08 08:20:25 -08:00
Paul Gauthier
573a6814b2 copy 2024-03-08 08:09:07 -08:00
Paul Gauthier
7fbd9e2be4 Added claude post 2024-03-08 08:00:41 -08:00
Paul Gauthier
08048b4972 layout 2024-02-19 14:49:23 -08:00
Paul Gauthier
b3d59539db aider: Added highlight image to the blog post and displayed it on the blog index if present.
# Aider chat conversation:

USER: use the graph as a highlight image for the blog post. add the highlight image to the blog index if one is present.

ASSISTANT: To use the graph as a highlight image for the blog post and add it to the blog index if a highlight image is present, I will make the following changes:

1. Add a `highlight_image` field to the front matter of the `_posts/2023-11-06-benchmarks-speed-1106.md` file.
2. Modify the `blog/index.html` file to check for the `highlight_image` field and display the image if it exists.

Here are the diffs for those changes:

```diff
--- _posts/2023-11-06-benchmarks-speed-1106.md
+++ _posts/2023-11-06-benchmarks-speed-1106.md
@@ ... @@
 ---
 title: Speed benchmarks of GPT-4 Turbo and gpt-3.5-turbo-1106
 excerpt: This report provides a detailed comparison of the speed of GPT-4 Turbo and gpt-3.5-turbo-1106 models based on the aider benchmarking suite.
+highlight_image: /assets/benchmarks-speed-1106.svg
 redirect_from:
   - /docs/benchmarks-speed-1106.html
 ---
```

```diff
--- blog/index.html
+++ blog/index.html
@@ ... @@
   {% for post in site.posts %}
     <article class="post">
+      {% if post.highlight_image %}
+      <div class="post-highlight">
+        <img src="{{ site.baseurl }}{{ post.highlight_image }}" alt="Highlight Image">
+      </div>
+      {% endif %}
       <h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
       <div class="entry">
           {% if post.excerpt %}
```
2024-02-19 14:42:34 -08:00
Paul Gauthier
63566443d9 Link more blog articles 2024-02-19 13:25:43 -08:00
Paul Gauthier
b51db95240 Added post symlink 2024-02-19 13:08:49 -08:00
Paul Gauthier
cc17194cca post->page 2024-02-11 09:42:38 -08:00
Paul Gauthier
f6cb20dd5c added date 2024-02-11 09:27:44 -08:00
Paul Gauthier
ae3373eb89 fixed redirect 2024-02-11 07:57:50 -08:00
Paul Gauthier
e630e51668 better excerpt logic; fixed svg ref 2024-02-11 07:55:44 -08:00
Paul Gauthier
a3f9f6c5c6 aider: Added an excerpt for speed benchmarks report.
# Aider chat conversation:

USER: add an excerpt

ASSISTANT: ```diff
--- _posts/2023-11-06-benchmarks-speed-1106.md
+++ _posts/2023-11-06-benchmarks-speed-1106.md
@@ ... @@
 ---
 title: Speed benchmarks of GPT-4 Turbo and gpt-3.5-turbo-1106
+excerpt: This report provides a detailed comparison of the speed of GPT-4 Turbo and gpt-3.5-turbo-1106 models based on the aider benchmarking suite.
 redirect_from:
   - /docs/benchmarks-speed-1106.md
 ---
```
2024-02-11 07:51:38 -08:00
Paul Gauthier
81ad2f18fe moved benchmarks-speed-1106 article 2024-02-11 07:50:18 -08:00
Paul Gauthier
2f8109ece1 copy 2024-02-11 06:36:47 -08:00
Paul Gauthier
c8a732dde2 copy 2024-02-11 06:31:57 -08:00
Paul Gauthier
0904e8e1a0 copy 2024-02-11 06:29:40 -08:00
Paul Gauthier
c95a4ae171 copy 2024-02-11 06:28:16 -08:00
Paul Gauthier
027faa384d whitespace 2024-02-11 06:21:11 -08:00
Paul Gauthier
f948c855ac renamed 2024-02-11 06:18:35 -08:00
Paul Gauthier
69c32c2903 aider: Add frontmatter for 301 redirect from old URL to new URL.
# Aider chat conversation:

USER: this post used to be live at /docs/aider-20.html. add frontmatter so that that old url does a 301 redirect to here.

ASSISTANT: ```diff
--- _posts/2024-02-11-aider-20.html
+++ _posts/2024-02-11-aider-20.html
@@ ... @@
+
+---
+redirect_from:
+  - /docs/aider-20.html
+---
+
 # Aider v0.20.0 is live

 Aider v0.20.0 is now available in pypi.
```
2024-02-11 06:15:54 -08:00
Paul Gauthier
f317915e8a Added new blog post for February 11, 2024. 2024-02-11 06:15:53 -08:00
Paul Gauthier
3fb698cdca added blog 2024-02-11 06:07:29 -08:00