Find which process is using your port

Find which process is using your port

Sam
At times, you get address in use error for web servers in development environment. Use lsof to find out the process using the port. # to get all the ports sudo lsof -nP -iTCP -sTCP:LISTEN # to get a particular port sudo lsof -nP -iTCP:3000 -sTCP:LISTEN

How to add copy button to code snippets in Hugo

Add copy button to code snippets in Hugo

Sam
Add copy button to code snippets in Hugo - Resources: - https://digitaldrummerj.me/hugo-add-copy-code-snippet-button/ - https://aaronluna.dev/blog/add-copy-button-to-code-blocks-hugo-chroma/ - https://www.dannyguo.com/blog/how-to-add-copy-to-clipboard-buttons-to-code-blocks-in-hugo/

How to build a site from scratch with Hugo

step by step guid to build a site with Hugo

Sam
This is a walk through on how to build a site from scratch with Hugo. # create a repo on github called blog to host our actual blog code and drafts and stuff also called BLOG REPO. # create a repo on github sirajudheenam.github.io to host our static assets also called PRODUCTION REPO brew install hugo # clone the blog github repo locally git clone git@github.com:sirajudheenam/blog.git cd blog hugo new site sirajudheenblog cd themes # Pick a theme.

Is your hugo site production ready?

Test if your site is production ready

Sam
Use this command to build and find out HUGO_MINIFY_TDEWOLFF_HTML_KEEPCOMMENTS=true \ HUGO_ENABLEMISSINGTRANSLATIONPLACEHOLDERS=true \ hugo && grep -inorE "<\!-- raw HTML omitted -->|ZgotmplZ|\[i18n\]|\(<nil>\)|(&lt;nil&gt;)|hahahugo" public/ sam@SamsMacBookPro ~/w/t/t/technotipstoday-hugo (main)> HUGO_MINIFY_TDEWOLFF_HTML_KEEPCOMMENTS=true \ HUGO_ENABLEMISSINGTRANSLATIONPLACEHOLDERS=true hugo \ && grep -inorE "<\!-- raw HTML omitted -->|ZgotmplZ|\[i18n\]|\(<nil>\)|(&lt;nil&gt;)|hahahugo" public/ Start building sites … hugo v0.120.4-f11bca5fec2ebb3a02727fb2a5cfb08da96fd9df+extended darwin/arm64 BuildDate=2023-11-08T11:18:07Z VendorInfo=brew | EN -------------------+----- Pages | 76 Paginator pages | 1 Non-page files | 1 Static files | 16 Processed images | 0 Aliases | 28 Sitemaps | 1 Cleaned | 0 Total in 59 ms public//tech/so-you-are-a-computer-science-student/index.

NPM Debug Info

Sam
Often we wish to debug our npm environment such as whether a package is used from local or global. Below is the way to do it. > npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli Need to install the following packages: envinfo@7.11.0 Ok to proceed? (y) y System: OS: macOS 14.1.1 CPU: (8) arm64 Apple M2 Memory: 101.45 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 21.2.0 - /opt/homebrew/bin/node npm: 10.

So you are a computer science student

detailed advice to computer science students

) -- Are you interested in programming and don’t know where to start ? Here is the getting started guide with numerous free resources. First things first.. There are lot of technologies available out there. Which one to pick first ? Read this second Listen to this Audio Zeno Rocha talking about missing out technologies. Pick the one which is popular, which also means you get lot of help if you are stuck with it.

Top 10 Content Creation AI Tools

List of latest tools available in the market

Sam
AI, ML, LLM
Content creation is an ever-evolving field, especially with the advent of AI technologies. AI tools can significantly enhance efficiency, creativity, and engagement in content creation. Here are the top 10 AI tools that are revolutionizing the content creation landscape. 1. OpenAI’s GPT-4 Description: A state-of-the-art language model capable of generating human-like text, perfect for writing articles, scripts, and even poetry. Applications: Writing, Chatbots, Text Completion Price: Based on usage

Top 10 Resources to Learn AI for Beginners

List of latest sources available in the market

Artificial Intelligence (AI) is an ever-evolving field with immense potential and applications. As a beginner, diving into AI can be daunting, but the right resources can make the journey much easier and more enjoyable. Here are the top 10 resources to start your AI learning journey. 1. Coursera - Machine Learning by Andrew Ng Description: This course provides a broad introduction to machine learning, data mining, and statistical pattern recognition.

German grammatik

Sam
Pronouns: personal Singular Nom Akk. Dativ. I ich mich mir II Sie Sie Ihnen II du dich dir III er ihn ihm III sie sie ihr III es es ihm Plural Nom Acc Dativ I Wir unser/uns uns II ihr euch euch II Sie Sie Ihnen III sie sie ihnen Person subject possessive Object I I My Me / Myself (reflexive pronoun) I We Our Us II You Your You Declensions Chart - Articles - Other determiners - Adjective endings M Masculine F Feminine N Neuter P Plural – M - - F - N - - P - – n s w s w n s w s w Nominative - r e e e - s e e n Akkusative n n e e - s e e n Dative m n r n m n n n Genitive s n r n s n r n Why Cases: The case shows the function of the noun in sentence.

German A2.1

Sam
Deutsch Englisch Ich bin in der Arcaden I’m in the arcade Ich habe nur geguckt I just looked Ich habe Kaffee getrunken I drank coffee Ich glaube dir (Dativ) I believe you Ich helfe dir (Dativ) I will help you Gegangen Gone Meine Tochter ist krank. My daughter is sick. Sie hat ihren Bruder angesteckt.