Web Performance, Prompting Techniques and Local Seafood


Summary of my bookmarked links and videos from Mar 31st, 2023

Links

  • Low-Hanging Web Performance Fruits: A Cheat Sheet

    This article discusses performance optimizations that can have a meaningful impact on web applications. The author emphasizes the importance of optimizing assets, such as compressing images using tools like TinyPNG and using the WebP format. They also suggest optimizing custom SVGs and using modern font formats like .woff2. The article advises against using CDNs for fonts and recommends self-hosting them. Minifying CSS and JavaScript files is recommended, and using gzip or Brotli compression for assets is encouraged. The article also introduces the concept of caching assets using a service worker and recommends Workbox as a library to simplify caching setup. Precaching and different caching strategies like Stale While Revalidate, Network First, and Cache First are explained. The author concludes by discussing the limitations of caching POST requests and suggests caching them in the service worker if needed.

  • ChatGPT: The 8 Prompting Techniques You Need to Learn (No BS!)

    Prompt engineering is an essential skill for effectively communicating with AI models. This article highlights important techniques for prompting language models. First is persona/role prompting, where you assign a role to the AI and specify its task. Chain of Thought (CoT) prompts instruct the model to explain its reasoning, while zero-shot CoT allows predictions without additional training. Few-shot prompts provide a few examples for faster adaptation. Knowledge generation involves prompting an LM for question-related knowledge, which can be used for knowledge augmented questions. Self-consistency generates multiple reasoning paths, and LtM (Least to Most) breaks down problems into subproblems.

  • How to Make your Seafood More Local

    The article discusses the journey of California squid, which is caught in the US, sent to China for processing, and then returned to the United States. This practice is driven by the desire for recipe-ready seafood and lower labor costs in Asia. However, concerns arise regarding the intermingling of the food supply with countries that have labor and food safety issues. The author suggests alternative solutions, such as community-supported fisheries (CSFs), which allow consumers to buy shares in local seafood catches. By supporting local seafood and exploring options like CSFs, consumers can enjoy fresh squid and contribute to preserving the seafood production infrastructure.

Videos

  • Chicken Kulambu | Karaikudi Chicken Kulambu | Restaurant Style Chicken Kulambu | Kozhi Kulambu

    The video titled "Chicken Kulambu | Karaikudi Chicken Kulambu | Restaurant Style Chicken Kulambu | Kozhi Kulambu" features Mrs. Shankar's recipe for Chettinad-style chicken gravy. The video showcases the process of making spicy and flavorful chicken curry. Although no specific details or highlights are provided in the given content, viewers can expect to learn how to prepare a delicious and aromatic chicken dish by following Mrs. Shankar's recipe. The video is part of Mrs. Shankar's YouTube channel, which focuses on sharing various recipes.