<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Hari's Blog</title>
		<description>My ramblings on technology,life and other things!</description>
		<link>http://hpalappetty.me</link>
		
			<item>
				<title>Redis Deep Dive</title>
				<description>
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;UTF-8&quot; /&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
&lt;title&gt;Redis Deep Dive — A Senior Engineer&apos;s Reference&lt;/title&gt;
&lt;link href=&quot;https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&amp;amp;family=IBM+Plex+Mono:wght@400;600&amp;amp;family=Lora:ital,wght@0,400;0,600;1,400&amp;amp;display=swap&quot; rel=&quot;stylesheet&quot; /&gt;
&lt;style&gt;
  :root {
    --bg: #0d0d0d;
    --surface: #141414;
    --card: #1a1a1a;
    --border: #2a2a2a;
    --accent: #e8325a;
    --accent2: #f5a623;
    --accent3: #3be8b0;
    --text: #e8e4d9;
    --muted: #7a7570;
    --code-bg: #111;
    --heading: &apos;Playfair Display&apos;, Georgia, serif;
    --body: &apos;Lora&apos;, Georgia, serif;
    --mono: &apos;IBM Plex Mono&apos;, monospace;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.75;
  }

  /* ── HERO ── */
  header {
    position: relative;
    overflow: hidden;
    padding: 100px 40px 80px;
    border-bottom: 1px solid var(--border);
    background:
      radial-gradient(ellipse 60% 40% at 20% 50%, rgba(232,50,90,0.12) 0%, transparent 70%),
      radial-gradient(ellipse 50% 60% at 80% 30%, rgba(59,232,176,0.07) 0%, transparent 70%),
      var(--bg);
  }

  .noise {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
    background-image: url(&quot;data:image/svg+xml,%3Csvg viewBox=&apos;0 0 256 256&apos; xmlns=&apos;http://www.w3.org/2000/svg&apos;%3E%3Cfilter id=&apos;n&apos;%3E%3CfeTurbulence type=&apos;fractalNoise&apos; baseFrequency=&apos;0.9&apos; numOctaves=&apos;4&apos; stitchTiles=&apos;stitch&apos;/%3E%3C/filter%3E%3Crect width=&apos;100%25&apos; height=&apos;100%25&apos; filter=&apos;url(%23n)&apos; opacity=&apos;1&apos;/%3E%3C/svg%3E&quot;);
  }

  .header-inner { max-width: 860px; margin: 0 auto; position: relative; }

  .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
  }

  h1 {
    font-family: var(--heading);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 24px;
  }

  h1 em { color: var(--accent); font-style: normal; }

  .subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    font-style: italic;
  }

  .meta {
    margin-top: 32px;
    display: flex;
    gap: 24px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
  }

  .meta span { display: flex; align-items: center; gap: 6px; }
  .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

  /* ── LAYOUT ── */
  main { max-width: 860px; margin: 0 auto; padding: 64px 40px 120px; }

  /* ── TOC ── */
  .toc {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 28px 32px;
    margin-bottom: 64px;
    border-radius: 2px;
  }

  .toc-title {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
  }

  .toc ol { padding-left: 20px; }
  .toc li { margin-bottom: 8px; }
  .toc a { color: var(--text); text-decoration: none; font-family: var(--body); font-size: 0.95rem; }
  .toc a:hover { color: var(--accent); }

  /* ── SECTIONS ── */
  section { margin-bottom: 72px; }

  h2 {
    font-family: var(--heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 24px;
  }

  h3 {
    font-family: var(--heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent2);
    margin: 36px 0 14px;
    scroll-margin-top: 24px;
  }

  p { margin-bottom: 18px; color: var(--text); }

  strong { color: #fff; font-weight: 600; }

  /* ── CALLOUT BOXES ── */
  .callout {
    padding: 20px 24px;
    border-radius: 2px;
    margin: 28px 0;
    border-left: 3px solid;
    font-size: 0.95rem;
  }
  .callout.tip   { background: rgba(59,232,176,0.06);  border-color: var(--accent3); }
  .callout.warn  { background: rgba(245,166,35,0.07);  border-color: var(--accent2); }
  .callout.info  { background: rgba(232,50,90,0.06);   border-color: var(--accent);  }

  .callout-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.7;
  }

  /* ── CODE ── */
  pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.65;
    color: #c9c5bb;
  }

  code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--accent3);
  }

  pre code { background: none; padding: 0; border-radius: 0; color: inherit; font-size: inherit; }

  .cmd { color: var(--accent); }
  .kw  { color: var(--accent2); }
  .cmt { color: #525050; font-style: italic; }
  .str { color: var(--accent3); }

  /* ── COMPARISON TABLE ── */
  .compare {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.93rem;
  }

  .compare th {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border);
  }

  .compare td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
  }

  .compare tr:hover td { background: var(--card); }

  /* ── DATA TYPE CARDS ── */
  .type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 28px 0;
  }

  .type-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 20px;
    transition: border-color 0.2s;
  }

  .type-card:hover { border-color: var(--accent); }

  .type-card h4 {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent2);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .type-card p { font-size: 0.88rem; color: var(--muted); margin: 0 0 10px; }

  .type-card .example {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent3);
    background: var(--code-bg);
    padding: 8px 10px;
    border-radius: 2px;
  }

  /* ── USE CASE TAGS ── */
  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
  .tag {
    font-family: var(--mono);
    font-size: 11px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--muted);
    letter-spacing: 0.06em;
  }
  .tag.hot { border-color: var(--accent); color: var(--accent); }
  .tag.warm { border-color: var(--accent2); color: var(--accent2); }
  .tag.cool { border-color: var(--accent3); color: var(--accent3); }

  /* ── DIVIDER ── */
  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
  }

  /* ── FOOTER ── */
  footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
  }

  @media (max-width: 600px) {
    header { padding: 60px 20px 50px; }
    main { padding: 40px 20px 80px; }
    .type-grid { grid-template-columns: 1fr; }
  }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;header&gt;
  &lt;div class=&quot;noise&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;header-inner&quot;&gt;
    &lt;p class=&quot;eyebrow&quot;&gt;Engineering Deep Dive · In-Memory Data Stores&lt;/p&gt;
    &lt;h1&gt;Redis:&lt;br /&gt;&lt;em&gt;Beyond the Cache&lt;/em&gt;&lt;/h1&gt;
    &lt;p class=&quot;subtitle&quot;&gt;A practical reference for engineers who need more than a hello-world tutorial — covering architecture, all five data types, pub/sub, transactions, and real-world patterns.&lt;/p&gt;
    &lt;div class=&quot;meta&quot;&gt;
      &lt;span&gt;&lt;span class=&quot;dot&quot;&gt;&lt;/span&gt; Data Structures&lt;/span&gt;
      &lt;span&gt;&lt;span class=&quot;dot&quot;&gt;&lt;/span&gt; Performance Patterns&lt;/span&gt;
      &lt;span&gt;&lt;span class=&quot;dot&quot;&gt;&lt;/span&gt; Production Tips&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/header&gt;

&lt;main&gt;

  &lt;nav class=&quot;toc&quot;&gt;
    &lt;p class=&quot;toc-title&quot;&gt;Contents&lt;/p&gt;
    &lt;ol&gt;
      &lt;li&gt;&lt;a href=&quot;#what-is-redis&quot;&gt;What is Redis — and Why Should You Care?&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#sql-vs-nosql&quot;&gt;SQL vs NoSQL — Choosing Deliberately&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#use-cases&quot;&gt;Where Redis Actually Shines&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#data-types&quot;&gt;The Five Data Types, In Depth&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#pubsub&quot;&gt;Pub/Sub — Database-Agnostic Messaging&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#transactions&quot;&gt;Transactions with MULTI/EXEC&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#hyperloglog&quot;&gt;HyperLogLog — Probabilistic Counting at Scale&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#clients&quot;&gt;Client Quickstart (PHP &amp;amp; Python)&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#production&quot;&gt;Production Checklist&lt;/a&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/nav&gt;

  &lt;!-- 1 --&gt;
  &lt;section id=&quot;what-is-redis&quot;&gt;
    &lt;h2&gt;1. What is Redis — and Why Should You Care?&lt;/h2&gt;
    &lt;p&gt;Redis (Remote Dictionary Server) is a powerful, extremely fast &lt;strong&gt;in-memory data store&lt;/strong&gt; that persists data as key-value pairs. The killer feature is that the value isn&apos;t limited to a simple string — it can be one of five rich data structures (Strings, Lists, Sets, Sorted Sets, Hashes), making Redis a genuine multi-paradigm engine rather than just a dumb cache.&lt;/p&gt;

    &lt;div class=&quot;callout tip&quot;&gt;
      &lt;p class=&quot;callout-label&quot;&gt;⚡ Performance insight&lt;/p&gt;
      &lt;p&gt;Storing data in memory eliminates disk and network I/O overhead during reads and writes. Benchmark it against a typical MySQL read — the latency difference is often 10–100×. The trade-off: memory is your ceiling for dataset size.&lt;/p&gt;
    &lt;/div&gt;

    &lt;h3&gt;Replication — Master/Slave Architecture&lt;/h3&gt;
    &lt;p&gt;Redis supports &lt;strong&gt;master–replica (formerly master–slave) replication&lt;/strong&gt;. The master propagates all writes to one or more replicas synchronously or asynchronously. If the master dies, a replica can be promoted to take over — a critical pattern for production HA setups. Combine with Redis Sentinel or Redis Cluster for automatic failover.&lt;/p&gt;

    &lt;h3&gt;Key Characteristics&lt;/h3&gt;
    &lt;p&gt;Open-source NoSQL store. No built-in indexing out of the box (though you can build secondary indexes using Sorted Sets). No SQL query language, but &lt;strong&gt;Lua scripting&lt;/strong&gt; gives you server-side logic equivalent to PL/SQL stored procedures without round-trips. Data can be optionally persisted to disk via RDB snapshots or AOF (Append-Only File) logging.&lt;/p&gt;
  &lt;/section&gt;

  &lt;!-- 2 --&gt;
  &lt;section id=&quot;sql-vs-nosql&quot;&gt;
    &lt;h2&gt;2. SQL vs NoSQL — Choosing Deliberately&lt;/h2&gt;
    &lt;p&gt;Redis sits firmly in the NoSQL world. Here&apos;s a crisp decision framework:&lt;/p&gt;

    &lt;table class=&quot;compare&quot;&gt;
      &lt;thead&gt;
        &lt;tr&gt;
          &lt;th&gt;Dimension&lt;/th&gt;
          &lt;th&gt;SQL (RDBMS)&lt;/th&gt;
          &lt;th&gt;NoSQL (incl. Redis)&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;strong&gt;Schema&lt;/strong&gt;&lt;/td&gt;
          &lt;td&gt;Pre-defined, rigid tables. Each table is an entity. RDBMS examples: MySQL, PostgreSQL, Oracle, MS SQL Server, SQLite.&lt;/td&gt;
          &lt;td&gt;Dynamic / schema-less. Stores data in many formats: key-value, document, wide-column, graph.&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;strong&gt;Scaling&lt;/strong&gt;&lt;/td&gt;
          &lt;td&gt;Vertically scalable (bigger CPU/RAM)&lt;/td&gt;
          &lt;td&gt;Horizontally scalable (more nodes)&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;strong&gt;ACID&lt;/strong&gt;&lt;/td&gt;
          &lt;td&gt;Full ACID compliance.&lt;br /&gt;&lt;em&gt;A&lt;/em&gt;tomicity — transaction happens or doesn&apos;t.&lt;br /&gt;&lt;em&gt;C&lt;/em&gt;onsistency — always valid state.&lt;br /&gt;&lt;em&gt;I&lt;/em&gt;solation — transactions don&apos;t see each other mid-flight.&lt;br /&gt;&lt;em&gt;D&lt;/em&gt;urability — DB functional even after catastrophes.&lt;/td&gt;
          &lt;td&gt;No ACID compliance by default — traded for performance and scale.&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;strong&gt;Best for&lt;/strong&gt;&lt;/td&gt;
          &lt;td&gt;Structured data, ACID requirements, no speed bottleneck.&lt;/td&gt;
          &lt;td&gt;Large unstructured data volumes, cloud/distributed storage, speed, rapid prototyping.&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;

    &lt;div class=&quot;callout warn&quot;&gt;
      &lt;p class=&quot;callout-label&quot;&gt;⚠️ Senior take&lt;/p&gt;
      &lt;p&gt;Redis isn&apos;t a MySQL replacement. It&apos;s a &lt;em&gt;complement&lt;/em&gt;. A common production pattern: MySQL as the source of truth + Redis as a read-through cache / session store / leaderboard engine. The two work together, not against each other.&lt;/p&gt;
    &lt;/div&gt;
  &lt;/section&gt;

  &lt;!-- 3 --&gt;
  &lt;section id=&quot;use-cases&quot;&gt;
    &lt;h2&gt;3. Where Redis Actually Shines&lt;/h2&gt;
    &lt;p&gt;Redis&apos;s in-memory nature makes it the right tool for latency-sensitive, high-throughput operations. Common production patterns:&lt;/p&gt;

    &lt;div class=&quot;tags&quot;&gt;
      &lt;span class=&quot;tag hot&quot;&gt;User session management&lt;/span&gt;
      &lt;span class=&quot;tag hot&quot;&gt;Caching / read-through cache&lt;/span&gt;
      &lt;span class=&quot;tag warm&quot;&gt;Pub/Sub queues &amp;amp; notifications&lt;/span&gt;
      &lt;span class=&quot;tag warm&quot;&gt;Gaming leaderboards (Sorted Sets)&lt;/span&gt;
      &lt;span class=&quot;tag cool&quot;&gt;Geospatial — nearby objects, distance, radius&lt;/span&gt;
      &lt;span class=&quot;tag cool&quot;&gt;Rate limiting / token buckets&lt;/span&gt;
      &lt;span class=&quot;tag cool&quot;&gt;Distributed locks&lt;/span&gt;
      &lt;span class=&quot;tag warm&quot;&gt;HyperLogLog — unique visitor counting&lt;/span&gt;
    &lt;/div&gt;

    &lt;p&gt;For &lt;strong&gt;geospatial applications&lt;/strong&gt;: Redis&apos;s &lt;code&gt;GEOADD&lt;/code&gt; / &lt;code&gt;GEODIST&lt;/code&gt; / &lt;code&gt;GEORADIUS&lt;/code&gt; commands let you store lat/long coordinates and find objects within a radius — a feature set that would require PostGIS or external services otherwise. It&apos;s a genuinely underrated use case.&lt;/p&gt;
  &lt;/section&gt;

  &lt;!-- 4 --&gt;
  &lt;section id=&quot;data-types&quot;&gt;
    &lt;h2&gt;4. The Five Data Types, In Depth&lt;/h2&gt;

    &lt;div class=&quot;type-grid&quot;&gt;
      &lt;div class=&quot;type-card&quot;&gt;
        &lt;h4&gt;Strings&lt;/h4&gt;
        &lt;p&gt;Simplest type. Holds text, integers, or binary data up to 512 MB. Supports atomic increment/decrement.&lt;/p&gt;
        &lt;div class=&quot;example&quot;&gt;SET name &quot;Jesse&quot;&lt;br /&gt;INCR age&lt;br /&gt;APPEND name &quot; Doe&quot;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class=&quot;type-card&quot;&gt;
        &lt;h4&gt;Hashes&lt;/h4&gt;
        &lt;p&gt;Map of field→value pairs. Ideal for storing objects (user profiles, config objects). Avoids key explosion.&lt;/p&gt;
        &lt;div class=&quot;example&quot;&gt;HSET user:1 name &quot;Lee&quot;&lt;br /&gt;HMSET scores u1 0 u2 3&lt;br /&gt;HGETALL user:1&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class=&quot;type-card&quot;&gt;
        &lt;h4&gt;Lists&lt;/h4&gt;
        &lt;p&gt;Ordered, allows duplicates. Doubly linked list. O(1) for head/tail operations. Use for queues, timelines.&lt;/p&gt;
        &lt;div class=&quot;example&quot;&gt;LPUSH colors red green&lt;br /&gt;LRANGE colors 0 -1&lt;br /&gt;LINSERT colors BEFORE blue purple&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class=&quot;type-card&quot;&gt;
        &lt;h4&gt;Sets&lt;/h4&gt;
        &lt;p&gt;Unordered, unique members. O(1) add/remove/check. Powerful set operations: UNION, DIFF, INTER.&lt;/p&gt;
        &lt;div class=&quot;example&quot;&gt;SADD art pencil brush&lt;br /&gt;SUNION art food&lt;br /&gt;SDIFF art food&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class=&quot;type-card&quot;&gt;
        &lt;h4&gt;Sorted Sets&lt;/h4&gt;
        &lt;p&gt;Unique members, each with a floating-point score. Auto-sorted by score. Perfect for leaderboards &amp;amp; priority queues.&lt;/p&gt;
        &lt;div class=&quot;example&quot;&gt;ZADD players 10 &quot;ben&quot;&lt;br /&gt;ZRANGE players 0 -1&lt;br /&gt;ZRANGEBYSCORE players 0 50&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;

    &lt;h3&gt;Strings — Full Command Reference&lt;/h3&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmt&quot;&gt;# Basic get/set&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;SET&lt;/span&gt;    name    Jesse
&lt;span class=&quot;cmd&quot;&gt;SET&lt;/span&gt;    hobby   &lt;span class=&quot;str&quot;&gt;&quot;Computer reading&quot;&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;GET&lt;/span&gt;    name
&lt;span class=&quot;cmd&quot;&gt;APPEND&lt;/span&gt; name    &lt;span class=&quot;str&quot;&gt;&quot; is my name!&quot;&lt;/span&gt;

&lt;span class=&quot;cmt&quot;&gt;# Numeric operations&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;INCRBY&lt;/span&gt;  age 5     &lt;span class=&quot;cmt&quot;&gt;# increment by 5&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;INCR&lt;/span&gt;    age       &lt;span class=&quot;cmt&quot;&gt;# increment by 1&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;DECR&lt;/span&gt;    age
&lt;span class=&quot;cmd&quot;&gt;DECRBY&lt;/span&gt;  age 10

&lt;span class=&quot;cmt&quot;&gt;# Bulk operations&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;MSET&lt;/span&gt;   mammal whale insect &lt;span class=&quot;str&quot;&gt;&quot;June bug&quot;&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;MGET&lt;/span&gt;   mammal insect

&lt;span class=&quot;cmt&quot;&gt;# Key management&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;SETNX&lt;/span&gt;  name Jesse   &lt;span class=&quot;cmt&quot;&gt;# set only if key doesn&apos;t exist&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;MSETNX&lt;/span&gt; mammal pig fish salmon  &lt;span class=&quot;cmt&quot;&gt;# atomic multi-set if none exist&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;RENAME&lt;/span&gt; name newname
&lt;span class=&quot;cmd&quot;&gt;EXISTS&lt;/span&gt; name
&lt;span class=&quot;cmd&quot;&gt;DEL&lt;/span&gt;    name
&lt;span class=&quot;cmd&quot;&gt;TYPE&lt;/span&gt;   age           &lt;span class=&quot;cmt&quot;&gt;# returns the type of value&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;TTL&lt;/span&gt;    animal        &lt;span class=&quot;cmt&quot;&gt;# time to live (-1 = no expiry)&lt;/span&gt;

&lt;span class=&quot;cmt&quot;&gt;# Expiry&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;EXPIRE&lt;/span&gt;  animal 5000  &lt;span class=&quot;cmt&quot;&gt;# set TTL in milliseconds&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;PERSIST&lt;/span&gt; animal       &lt;span class=&quot;cmt&quot;&gt;# remove expiry&lt;/span&gt;

&lt;span class=&quot;cmt&quot;&gt;# Utility&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;KEYS&lt;/span&gt;   *            &lt;span class=&quot;cmt&quot;&gt;# list all keys (avoid in prod)&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;KEYS&lt;/span&gt;   na*          &lt;span class=&quot;cmt&quot;&gt;# wildcard search&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;FLUSHDB&lt;/span&gt;             &lt;span class=&quot;cmt&quot;&gt;# remove all keys from current db&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;FLUSHALL&lt;/span&gt;            &lt;span class=&quot;cmt&quot;&gt;# remove all keys from ALL dbs&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

    &lt;h3&gt;Hashes&lt;/h3&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmd&quot;&gt;HSET&lt;/span&gt;    people   john 12
&lt;span class=&quot;cmd&quot;&gt;HMSET&lt;/span&gt;   people   kim 9   ted 12   ben 13
&lt;span class=&quot;cmd&quot;&gt;HGETALL&lt;/span&gt; people
&lt;span class=&quot;cmd&quot;&gt;HGET&lt;/span&gt;    people   john
&lt;span class=&quot;cmd&quot;&gt;HMGET&lt;/span&gt;   people   sam kim
&lt;span class=&quot;cmd&quot;&gt;HDEL&lt;/span&gt;    people   ben
&lt;span class=&quot;cmd&quot;&gt;HLEN&lt;/span&gt;    people
&lt;span class=&quot;cmd&quot;&gt;HKEYS&lt;/span&gt;   people
&lt;span class=&quot;cmd&quot;&gt;HVALS&lt;/span&gt;   people
&lt;span class=&quot;cmd&quot;&gt;HINCRBY&lt;/span&gt; scores   u2 5
&lt;span class=&quot;cmd&quot;&gt;HEXISTS&lt;/span&gt; people   u4
&lt;/code&gt;&lt;/pre&gt;

    &lt;h3&gt;Lists&lt;/h3&gt;
    &lt;p&gt;Unlike Sets, Lists are &lt;strong&gt;ordered&lt;/strong&gt; and &lt;strong&gt;allow duplicates&lt;/strong&gt;. They&apos;re implemented as doubly-linked lists — constant time for push/pop at either end, but O(n) for index access.&lt;/p&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmd&quot;&gt;LPUSH&lt;/span&gt;   colors   red green blue   &lt;span class=&quot;cmt&quot;&gt;# push left (head)&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;RPUSH&lt;/span&gt;   colors   yellow            &lt;span class=&quot;cmt&quot;&gt;# push right (tail)&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;LLEN&lt;/span&gt;    colors
&lt;span class=&quot;cmd&quot;&gt;LRANGE&lt;/span&gt;  colors   0 -1             &lt;span class=&quot;cmt&quot;&gt;# -1 = get all&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;LINSERT&lt;/span&gt; colors   BEFORE blue purple
&lt;span class=&quot;cmd&quot;&gt;LREM&lt;/span&gt;    colors   1 blue            &lt;span class=&quot;cmt&quot;&gt;# remove 1 occurrence&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;LPOP&lt;/span&gt;    colors
&lt;span class=&quot;cmd&quot;&gt;RPOP&lt;/span&gt;    colors
&lt;span class=&quot;cmd&quot;&gt;LPUSHX&lt;/span&gt;  colors   red              &lt;span class=&quot;cmt&quot;&gt;# push only if key exists&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

    &lt;h3&gt;Sets&lt;/h3&gt;
    &lt;p&gt;Unordered, unique members. The set operations (UNION, DIFF, INTER) are among the most useful patterns in Redis — e.g., computing mutual friends, tagging systems, permission sets.&lt;/p&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmd&quot;&gt;SADD&lt;/span&gt;      art      pencil brush canvas
&lt;span class=&quot;cmd&quot;&gt;SMEMBERS&lt;/span&gt;  art
&lt;span class=&quot;cmd&quot;&gt;SREM&lt;/span&gt;      art      pencil
&lt;span class=&quot;cmd&quot;&gt;SCARD&lt;/span&gt;     art
&lt;span class=&quot;cmd&quot;&gt;SISMEMBER&lt;/span&gt; art      pencil

&lt;span class=&quot;cmd&quot;&gt;SUNION&lt;/span&gt;    art food
&lt;span class=&quot;cmd&quot;&gt;SDIFF&lt;/span&gt;     art food
&lt;span class=&quot;cmd&quot;&gt;SINTER&lt;/span&gt;    art food

&lt;span class=&quot;cmt&quot;&gt;# Store set operation results into a new key&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;SUNIONSTORE&lt;/span&gt;  result   art food
&lt;span class=&quot;cmd&quot;&gt;SDIFFSTORE&lt;/span&gt;   result   art food
&lt;span class=&quot;cmd&quot;&gt;SINTERSTORE&lt;/span&gt;  result   art food
&lt;/code&gt;&lt;/pre&gt;

    &lt;h3&gt;Sorted Sets&lt;/h3&gt;
    &lt;p&gt;Every member gets a floating-point &lt;strong&gt;score&lt;/strong&gt;. Members are unique; scores can repeat. Perfect for leaderboards, rate limiting, and time-series data (use Unix timestamp as score).&lt;/p&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmd&quot;&gt;ZADD&lt;/span&gt;    players   1 john
&lt;span class=&quot;cmd&quot;&gt;ZADD&lt;/span&gt;    players   10 ben   20 kim   30 sam   50 tammy
&lt;span class=&quot;cmd&quot;&gt;ZRANGE&lt;/span&gt;  players   0 -1                   &lt;span class=&quot;cmt&quot;&gt;# asc by score&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;ZRANGE&lt;/span&gt;  players   0 -1   &lt;span class=&quot;str&quot;&gt;&apos;withscores&apos;&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;ZREVRANGE&lt;/span&gt; players 0 -1                   &lt;span class=&quot;cmt&quot;&gt;# desc&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;ZRANK&lt;/span&gt;   players   kim                    &lt;span class=&quot;cmt&quot;&gt;# rank (0-indexed)&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;ZCARD&lt;/span&gt;   players                          &lt;span class=&quot;cmt&quot;&gt;# count&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;ZCOUNT&lt;/span&gt;  players   0 -1                   &lt;span class=&quot;cmt&quot;&gt;# count by score&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;ZRANGEBYSCORE&lt;/span&gt; players 0 50
&lt;span class=&quot;cmd&quot;&gt;ZRANGEBYSCORE&lt;/span&gt; players 0 80 &lt;span class=&quot;str&quot;&gt;&apos;withscores&apos;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/section&gt;

  &lt;!-- 5 --&gt;
  &lt;section id=&quot;pubsub&quot;&gt;
    &lt;h2&gt;5. Pub/Sub — Database-Agnostic Messaging&lt;/h2&gt;
    &lt;p&gt;Redis Pub/Sub is a &lt;strong&gt;fire-and-forget messaging system&lt;/strong&gt;. It&apos;s database-agnostic — a subscriber on &lt;code&gt;redis db 0&lt;/code&gt; can receive messages published from a client connected to a different db. This makes it suitable as a lightweight event bus.&lt;/p&gt;

    &lt;div class=&quot;callout info&quot;&gt;
      &lt;p class=&quot;callout-label&quot;&gt;📌 Key constraint&lt;/p&gt;
      &lt;p&gt;Pub/Sub does &lt;em&gt;not&lt;/em&gt; persist messages. If a subscriber is offline when a message is published, it misses that message. For durable queues, use Redis Streams or an external broker like Kafka / RabbitMQ.&lt;/p&gt;
    &lt;/div&gt;

    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmt&quot;&gt;# Subscriber&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;SUBSCRIBE&lt;/span&gt;    general
&lt;span class=&quot;cmd&quot;&gt;PSUBSCRIBE&lt;/span&gt;   p*          &lt;span class=&quot;cmt&quot;&gt;# pattern — anything starting with &quot;p&quot;&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;PSUBSCRIBE&lt;/span&gt;   h?llo       &lt;span class=&quot;cmt&quot;&gt;# matches &quot;hello&quot;, &quot;hallo&quot;, etc.&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;UNSUBSCRIBE&lt;/span&gt;  general
&lt;span class=&quot;cmd&quot;&gt;UNSUBSCRIBE&lt;/span&gt;              &lt;span class=&quot;cmt&quot;&gt;# unsubscribe from all&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;PUNSUBSCRIBE&lt;/span&gt;             &lt;span class=&quot;cmt&quot;&gt;# unsubscribe all pattern subs&lt;/span&gt;

&lt;span class=&quot;cmt&quot;&gt;# Publisher&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;PUBLISH&lt;/span&gt;  general  &lt;span class=&quot;str&quot;&gt;&quot;How are you?&quot;&lt;/span&gt;

&lt;span class=&quot;cmt&quot;&gt;# Introspection&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;PUBSUB&lt;/span&gt;   channels *
&lt;/code&gt;&lt;/pre&gt;
  &lt;/section&gt;

  &lt;!-- 6 --&gt;
  &lt;section id=&quot;transactions&quot;&gt;
    &lt;h2&gt;6. Transactions with MULTI/EXEC&lt;/h2&gt;
    &lt;p&gt;Redis transactions let you queue multiple commands and execute them &lt;strong&gt;atomically&lt;/strong&gt;. Useful when inserting values that depend on each other — e.g., updating a user&apos;s score and simultaneously recording the event.&lt;/p&gt;

    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmt&quot;&gt;# Queue commands atomically&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;MULTI&lt;/span&gt;
  &lt;span class=&quot;cmd&quot;&gt;SADD&lt;/span&gt;   people   joe fred suzanne
  &lt;span class=&quot;cmd&quot;&gt;SET&lt;/span&gt;    life     fun
  &lt;span class=&quot;cmd&quot;&gt;SET&lt;/span&gt;    day      bright
&lt;span class=&quot;cmd&quot;&gt;EXEC&lt;/span&gt;

&lt;span class=&quot;cmt&quot;&gt;# Discard a queued transaction&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;MULTI&lt;/span&gt;
  &lt;span class=&quot;cmd&quot;&gt;SADD&lt;/span&gt;   animals   horse dog
  &lt;span class=&quot;cmd&quot;&gt;SET&lt;/span&gt;    age       5
&lt;span class=&quot;cmd&quot;&gt;DISCARD&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

    &lt;div class=&quot;callout warn&quot;&gt;
      &lt;p class=&quot;callout-label&quot;&gt;⚠️ Gotcha&lt;/p&gt;
      &lt;p&gt;Redis transactions are not ACID-equivalent. Commands inside &lt;code&gt;MULTI&lt;/code&gt; are queued; if one fails at runtime, the rest still execute. There&apos;s no rollback. For compare-and-swap patterns, use &lt;code&gt;WATCH&lt;/code&gt; to implement optimistic locking.&lt;/p&gt;
    &lt;/div&gt;
  &lt;/section&gt;

  &lt;!-- 7 --&gt;
  &lt;section id=&quot;hyperloglog&quot;&gt;
    &lt;h2&gt;7. HyperLogLog — Probabilistic Counting at Scale&lt;/h2&gt;
    &lt;p&gt;Available since Redis 2.8.9. HyperLogLog is designed for one thing: &lt;strong&gt;counting unique elements in a massive dataset with minimal memory&lt;/strong&gt;. Google and Facebook use this pattern. It gives ~98% accuracy (±2% error) and uses at most 12 KB of memory, regardless of how many unique items you&apos;ve tracked.&lt;/p&gt;

    &lt;p&gt;The classic use case: counting unique daily active users or signups. Storing 20k raw user IDs per hour × 24 hours would be ridiculous; HyperLogLog keeps that footprint trivially small.&lt;/p&gt;

    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmt&quot;&gt;# Timestamp = Redis key; values = unique user IDs&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;PFADD&lt;/span&gt;   signups:102514   jesse@mail.com
&lt;span class=&quot;cmd&quot;&gt;PFADD&lt;/span&gt;   signups:102514   tom@mail.com
&lt;span class=&quot;cmd&quot;&gt;PFADD&lt;/span&gt;   signups:102515   jane@mail.com
&lt;span class=&quot;cmd&quot;&gt;PFADD&lt;/span&gt;   signups:102516   jenny@mail.com

&lt;span class=&quot;cmd&quot;&gt;PFCOUNT&lt;/span&gt;  signups:102514
&lt;span class=&quot;cmd&quot;&gt;PFCOUNT&lt;/span&gt;  signups:102515

&lt;span class=&quot;cmt&quot;&gt;# Merge multiple HLLs into one key&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;PFMERGE&lt;/span&gt;  total:weekly   signups:102514   signups:102515   signups:102516
&lt;span class=&quot;cmd&quot;&gt;PFCOUNT&lt;/span&gt;  total:weekly
&lt;/code&gt;&lt;/pre&gt;

    &lt;div class=&quot;callout tip&quot;&gt;
      &lt;p class=&quot;callout-label&quot;&gt;✅ When to use&lt;/p&gt;
      &lt;p&gt;Use HyperLogLog when you need &lt;em&gt;approximate&lt;/em&gt; cardinality at scale and exact counts aren&apos;t critical — analytics dashboards, event counters, unique reach metrics. For exact counts on small-medium datasets, a Set with &lt;code&gt;SCARD&lt;/code&gt; is simpler.&lt;/p&gt;
    &lt;/div&gt;
  &lt;/section&gt;

  &lt;!-- 8 --&gt;
  &lt;section id=&quot;clients&quot;&gt;
    &lt;h2&gt;8. Client Quickstart (PHP &amp;amp; Python)&lt;/h2&gt;

    &lt;h3&gt;PHP — Predis&lt;/h3&gt;
    &lt;p&gt;Install via Composer: &lt;code&gt;&quot;predis/predis&quot;: &quot;^1.0.0&quot;&lt;/code&gt;. Then &lt;code&gt;composer update&lt;/code&gt;.&lt;/p&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;kw&quot;&gt;&amp;lt;?php&lt;/span&gt;
require &lt;span class=&quot;str&quot;&gt;&apos;../vendor/autoload.php&apos;&lt;/span&gt;;

&lt;span class=&quot;kw&quot;&gt;$redis&lt;/span&gt; = new Predis\Client([
    &lt;span class=&quot;str&quot;&gt;&apos;scheme&apos;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;str&quot;&gt;&apos;tcp&apos;&lt;/span&gt;,
    &lt;span class=&quot;str&quot;&gt;&apos;host&apos;&lt;/span&gt;   =&amp;gt; &lt;span class=&quot;str&quot;&gt;&apos;localhost&apos;&lt;/span&gt;,
    &lt;span class=&quot;str&quot;&gt;&apos;port&apos;&lt;/span&gt;   =&amp;gt; 6379,
]);

&lt;span class=&quot;kw&quot;&gt;$exists&lt;/span&gt; = &lt;span class=&quot;kw&quot;&gt;$redis&lt;/span&gt;-&amp;gt;exists(&lt;span class=&quot;str&quot;&gt;&apos;age&apos;&lt;/span&gt;);
if (!&lt;span class=&quot;kw&quot;&gt;$exists&lt;/span&gt;) {
    &lt;span class=&quot;kw&quot;&gt;$redis&lt;/span&gt;-&amp;gt;set(&lt;span class=&quot;str&quot;&gt;&apos;age&apos;&lt;/span&gt;, 1);
} else {
    &lt;span class=&quot;kw&quot;&gt;$redis&lt;/span&gt;-&amp;gt;incr(&lt;span class=&quot;str&quot;&gt;&apos;age&apos;&lt;/span&gt;);
}
&lt;/code&gt;&lt;/pre&gt;

    &lt;h3&gt;Python — redis-py&lt;/h3&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmt&quot;&gt;# pip install redis&lt;/span&gt;
import redis

r = redis.Redis(host=&lt;span class=&quot;str&quot;&gt;&apos;localhost&apos;&lt;/span&gt;, port=6379)

r.set(&lt;span class=&quot;str&quot;&gt;&apos;numerical&apos;&lt;/span&gt;, 50)
r.hset(&lt;span class=&quot;str&quot;&gt;&apos;animals&apos;&lt;/span&gt;, &lt;span class=&quot;str&quot;&gt;&apos;mammals&apos;&lt;/span&gt;, &lt;span class=&quot;str&quot;&gt;&apos;dog&apos;&lt;/span&gt;)
r.hset(&lt;span class=&quot;str&quot;&gt;&apos;animals&apos;&lt;/span&gt;, &lt;span class=&quot;str&quot;&gt;&apos;mammals&apos;&lt;/span&gt;, &lt;span class=&quot;str&quot;&gt;&apos;pig&apos;&lt;/span&gt;)

r.hmset(&lt;span class=&quot;str&quot;&gt;&apos;humans&apos;&lt;/span&gt;, {
    &lt;span class=&quot;str&quot;&gt;&apos;ted&apos;&lt;/span&gt;: 20,
    &lt;span class=&quot;str&quot;&gt;&apos;jane&apos;&lt;/span&gt;: 40
})

r.hgetall(&lt;span class=&quot;str&quot;&gt;&apos;animals&apos;&lt;/span&gt;)
r.hgetall(&lt;span class=&quot;str&quot;&gt;&apos;humans&apos;&lt;/span&gt;)
&lt;/code&gt;&lt;/pre&gt;
  &lt;/section&gt;

  &lt;!-- 9 --&gt;
  &lt;section id=&quot;production&quot;&gt;
    &lt;h2&gt;9. Production Checklist&lt;/h2&gt;

    &lt;h3&gt;Security — Enable AUTH&lt;/h3&gt;
    &lt;p&gt;By default Redis has no password. In production, edit &lt;code&gt;/etc/redis/redis.conf&lt;/code&gt; and uncomment &lt;code&gt;requirepass&lt;/code&gt;. Restart the server, then authenticate:&lt;/p&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmt&quot;&gt;# In redis-cli&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;AUTH&lt;/span&gt;   your_secret_password
&lt;span class=&quot;cmd&quot;&gt;SET&lt;/span&gt;    name 5    &lt;span class=&quot;cmt&quot;&gt;# → returns OK after auth&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

    &lt;h3&gt;Database Selection&lt;/h3&gt;
    &lt;p&gt;Redis ships with 16 logical databases (0–15) by default. Use &lt;code&gt;SELECT&lt;/code&gt; to switch:&lt;/p&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmd&quot;&gt;SELECT&lt;/span&gt;  0   &lt;span class=&quot;cmt&quot;&gt;# default&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;SELECT&lt;/span&gt;  3   &lt;span class=&quot;cmt&quot;&gt;# switch to db 3&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

    &lt;h3&gt;Monitoring&lt;/h3&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmd&quot;&gt;redis-cli monitor&lt;/span&gt;   &lt;span class=&quot;cmt&quot;&gt;# live command stream — use sparingly in prod&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;redis-server --version&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;sudo service redis-server start&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;sudo service redis-server stop&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

    &lt;div class=&quot;callout tip&quot;&gt;
      &lt;p class=&quot;callout-label&quot;&gt;🏗️ Architecture note&lt;/p&gt;
      &lt;p&gt;For production HA: run Redis Sentinel (monitors masters/replicas, handles failover) or Redis Cluster (shards data across nodes for horizontal scale). Sentinel is simpler to operate; Cluster is needed when a single node&apos;s memory is the bottleneck.&lt;/p&gt;
    &lt;/div&gt;

    &lt;h3&gt;Connection Commands Reference&lt;/h3&gt;
    &lt;pre&gt;&lt;code&gt;&lt;span class=&quot;cmd&quot;&gt;AUTH&lt;/span&gt;     password
&lt;span class=&quot;cmd&quot;&gt;ECHO&lt;/span&gt;     message
&lt;span class=&quot;cmd&quot;&gt;PING&lt;/span&gt;                &lt;span class=&quot;cmt&quot;&gt;# → PONG&lt;/span&gt;
&lt;span class=&quot;cmd&quot;&gt;SELECT&lt;/span&gt;   index
&lt;span class=&quot;cmd&quot;&gt;QUIT&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/section&gt;

&lt;/main&gt;

&lt;footer&gt;
  Notes compiled from Redis learning sessions · redis.io for authoritative docs
&lt;/footer&gt;

&lt;/body&gt;
&lt;/html&gt;
</description>
				<published>2026-04-06 00:00:00 +0000</published>
				<link>http://hpalappetty.me/2026/04/06/redis-deep-dive.html</link>
			</item>
		
			<item>
				<title>Rust Programming Notes</title>
				<description>
</description>
				<published>2021-08-05 00:00:00 +0000</published>
				<link>http://hpalappetty.me/2021/08/05/Rust-Programming-Notes.html</link>
			</item>
		
			<item>
				<title>Clojure Notes</title>
				<description>&lt;p&gt;Day1: 08/Sep/2020&lt;/p&gt;

&lt;h3 id=&quot;what-is-clojure&quot;&gt;What is Clojure?&lt;/h3&gt;
&lt;p&gt;Clojure is a delightful and powerful programming language with Lisp heritage.It is developed by Rich Hickey (with weird hair style). Clojure gives you better tools to tackle complex domains like Concurrent programming, parallelism et.al which is generally a bit complex using traditional tools.&lt;/p&gt;

&lt;p&gt;It is important to keep in mind the distinction between Clojure language and the Clojure compiler. The Clojure language is a Lisp dialect with an emphasis on functional programming and is independent of any implementation. The Clojure compiler is an executable JAR file(clojure.jar), which takes code written in the Clojure programming language and compiles it into JVM(Java Virtual Machine) bytecode. This distinction is necessary because unlike most programming languages (Python, Ruby, C, C++ et.al) , Clojure is a hosted language. Clojure programs rely on JVM for core features like threading and Garbage collection.&lt;/p&gt;

&lt;p&gt;Some of the concepts that we have to keep in mind while learning Clojure are,&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;JVM processes execute Java bytecode.&lt;/li&gt;
  &lt;li&gt;Java compiler produces Java bytecode from Java source code.&lt;/li&gt;
  &lt;li&gt;JAR files are collections of Java bytecode.&lt;/li&gt;
  &lt;li&gt;Java programs are usually distributed as JAR files.&lt;/li&gt;
  &lt;li&gt;Java program clojure.jar reads Clojure source code and produces Java bytecode.&lt;/li&gt;
  &lt;li&gt;Java bytecode is then executed by the same JVM process that is already running the clojure.jar&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
  &lt;p&gt;As of this notes preparation the Clojure version is [org.clojure/clojure “1.10.1”]&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Day2: 09/Sep/2020&lt;/p&gt;

&lt;h3 id=&quot;leiningen&quot;&gt;Leiningen&lt;/h3&gt;
&lt;p&gt;Most Clojurists (a term used to refer to a Clojure developer/practitioner) use Leiningen to build and manage their projects. We’ll focus on the following main tasks here,&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Creating a new Clojure project&lt;/li&gt;
  &lt;li&gt;Building the Clojure project&lt;/li&gt;
  &lt;li&gt;Running the Clojure project&lt;/li&gt;
  &lt;li&gt;Using the REPL&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 id=&quot;installation--other-needs-to-begin&quot;&gt;Installation &amp;amp; other needs to begin,&lt;/h4&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; java &lt;span class=&quot;nt&quot;&gt;-version&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;**&lt;/span&gt;To check the Java version, must be higher than JDK1.6&lt;span class=&quot;k&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-y&lt;/span&gt; curl &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;Install the curl &lt;span class=&quot;nb&quot;&gt;command&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; lein &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;Get the latest stable version of lein script&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;sudo mv &lt;/span&gt;lein /usr/local/bin/lein &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;Move the script to user programs directory&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;sudo chmod &lt;/span&gt;a+x /usr/local/bin/lein &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;Give execute permissions to the lein script&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; lein version &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;To check the installation, and version of lein. It&lt;span class=&quot;s1&quot;&gt;&apos;ll download clojure.jar*)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Day3: 14/Sep/2020&lt;/p&gt;

&lt;h4 id=&quot;creating-a-new-clojure-project&quot;&gt;Creating a new Clojure Project:&lt;/h4&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ lein new app clojure-noob
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A simple “lein new app [app-name]” creates the skeleton for the project. A basic project set up looks like this,&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;~/learning/clojure/clojure-noob$ ll

-rw-r--r-- 1 statnuts statnuts   778 Sep 14 16:23 CHANGELOG.md
drwxr-xr-x 2 statnuts statnuts  4096 Sep 14 16:23 doc/
-rw-r--r-- 1 statnuts statnuts   125 Sep 14 16:23 .gitignore
-rw-r--r-- 1 statnuts statnuts   162 Sep 14 16:23 .hgignore
-rw-r--r-- 1 statnuts statnuts 14372 Sep 14 16:23 LICENSE
-rw-r--r-- 1 statnuts statnuts   479 Sep 14 16:23 project.clj
-rw-r--r-- 1 statnuts statnuts   987 Sep 14 16:23 README.md
drwxr-xr-x 2 statnuts statnuts  4096 Sep 14 16:23 resources/
drwxr-xr-x 3 statnuts statnuts  4096 Sep 14 16:23 src/
drwxr-xr-x 3 statnuts statnuts  4096 Sep 14 16:26 target/
drwxr-xr-x 3 statnuts statnuts  4096 Sep 14 16:23 test/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;project.clj - is a configuration file for Leiningen. &lt;br /&gt;
src/clojure_noob/core.clj - contains the source code of the project.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ lein run (produces output for this toy program)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 id=&quot;bulding-the-clojure-project&quot;&gt;Bulding the Clojure Project:&lt;/h4&gt;
&lt;p&gt;Using [lein run], we can test out our code. But, if the need is to share the work with people who do not have Leiningen installed, then the best option is to build the project to create a .jar file, that can be run on any machine with Java installed. To do this, run the following command:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ lein uberjar
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is what happens when you run the above command:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ lein uberjar
Compiling clojure-noob.core
Created /learning/clojure/clojure-noob/target/uberjar/clojure-noob-0.1.0-SNAPSHOT.jar
Created /learning/clojure/clojure-noob/target/uberjar/clojure-noob-0.1.0-SNAPSHOT-standalone.jar
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The above command creates a .jar file in the /target/uberjar/ folder. You can execute this file by running the following command,&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;~/learning/clojure/clojure-noob$ java -jar target/uberjar/clojure-noob-0.1.0-SNAPSHOT-standalone.jar
I&apos;m a little teapot!
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 id=&quot;using-the-repl-read---eval---print---loop&quot;&gt;Using the REPL (Read - Eval - Print - Loop):&lt;/h4&gt;
&lt;p&gt;REPL is a tool for quick experimentation with code. In a PM’s (Product Manager) worl, it’s akin to quick prototyping and testing a simple feature/experiment. This enables quick feedback cycle to enable developers to change the approach if required. To start REPL, run the following command:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ lein repl
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It generates a bit of verbose info and helps in knowing the version of Clojure &amp;amp; namespace, which is usually in line with your src/[app-name]/core.clj.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;~/learning/clojure/clojure-noob$ lein repl
nREPL server started on port 44171 on host 127.0.0.1 - nrepl://127.0.0.1:44171
REPL-y 0.4.4, nREPL 0.7.0
Clojure 1.10.1
OpenJDK 64-Bit Server VM 11.0.8+10-post-Ubuntu-0ubuntu118.04.1
    Docs: (doc function-name-here)
          (find-doc &quot;part-of-name-here&quot;)
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A basic trial run for the REPL leveraging the (-main) defined in the toy app (core.clj) and few other Lispy stuff,&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;clojure-noob.core=&amp;gt; (-main)
I&apos;m a little teapot!
nil
clojure-noob.core=&amp;gt; (+1 2 3 4)
Execution error (ClassCastException) at clojure-noob.core/eval1619 (form-init5561836152289490106.clj:1).
class java.lang.Long cannot be cast to class clojure.lang.IFn (java.lang.Long is in module java.base of loader &apos;bootstrap&apos;; clojure.lang.IFn is in unnamed module of loader &apos;app&apos;)

clojure-noob.core=&amp;gt; (+ 1 2 3 4)
10
clojure-noob.core=&amp;gt; (* 1 2 3 4)
24
clojure-noob.core=&amp;gt; (first 1 2 3 4)
Execution error (ArityException) at clojure-noob.core/eval1625 (form-init5561836152289490106.clj:1).
Wrong number of args (4) passed to: clojure.core/first--5384

clojure-noob.core=&amp;gt; (first [1 2 3 4])
1
clojure-noob.core=&amp;gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Note: Added few errors deliberately to remember, what happens when you are a human and make mistakes.&lt;/p&gt;

&lt;p&gt;Conceptually REPL is similar to Secure Shell (SSH), the Clojure REPL allows you to interact with a running process. This is a powerful feature because, you can attach a REPL to a live production app and modify the program as it runs.&lt;/p&gt;

&lt;p&gt;Day4:&lt;/p&gt;
&lt;h3 id=&quot;how-to-use-emacs-an-excellent-clojure-editor&quot;&gt;How to use EMACS, an excellent Clojure Editor?&lt;/h3&gt;
&lt;p&gt;As we learn along to master Clojure, and important aid(or tool) we will use during the journey is our editor. I choose to follow along with Emacs (wanting to learn this extensible editor for long, so no better excuse than to use it for learning Clojure programming). Emacs offers a very tight integration with Clojure REPL which helps us to create a tight feedback loop as we write programs. Emacs is also great for working with any Lisp dialect; as it is written in a Lisp dialect called Emacs Lisp.&lt;/p&gt;

&lt;h4 id=&quot;emacs-escape-hatch&quot;&gt;Emacs Escape Hatch&lt;/h4&gt;
&lt;p&gt;CTRL + G is one of the most important key combination in the world of Emacs. This combination will help you get out of some of the most astounding situations/troubles during your Emacs journey. This will not kill the Emacs process, but just stops the current action.&lt;/p&gt;

&lt;p&gt;Some important key bindings in Emacs,&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Keys&lt;/th&gt;
      &lt;th&gt;Description&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;C-a&lt;/td&gt;
      &lt;td&gt;Move to beginning of the line.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-m&lt;/td&gt;
      &lt;td&gt;Move to fist non-whitespace character on the line.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-e&lt;/td&gt;
      &lt;td&gt;Move to end of line.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-f&lt;/td&gt;
      &lt;td&gt;Move forward one character.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-b&lt;/td&gt;
      &lt;td&gt;Move backward one character.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-f&lt;/td&gt;
      &lt;td&gt;Move forward one word.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-b&lt;/td&gt;
      &lt;td&gt;Move backward one word.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-s&lt;/td&gt;
      &lt;td&gt;Regex search for text in current buffer and move to it. Press C-s again to move to next match.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-r&lt;/td&gt;
      &lt;td&gt;Same as C-s, but search in reverse.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-&amp;lt;&lt;/td&gt;
      &lt;td&gt;Move to the beginning of buffer.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-&amp;gt;&lt;/td&gt;
      &lt;td&gt;Move to end of the buffer.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-g g&lt;/td&gt;
      &lt;td&gt;Go to line.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-x o&lt;/td&gt;
      &lt;td&gt;Switch cursor to another window.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-x 1&lt;/td&gt;
      &lt;td&gt;Delete all other windows, leaving the current window in the frame.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-x 2&lt;/td&gt;
      &lt;td&gt;Split frame above and below&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-x 3&lt;/td&gt;
      &lt;td&gt;Split frame side by side&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-x 0&lt;/td&gt;
      &lt;td&gt;Delete current window.&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Hail Killing and Yanking Text,&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Keys&lt;/th&gt;
      &lt;th&gt;Description&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;C-w&lt;/td&gt;
      &lt;td&gt;Kill region.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-w&lt;/td&gt;
      &lt;td&gt;Copy region to kill ring.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-y&lt;/td&gt;
      &lt;td&gt;Yank.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-y&lt;/td&gt;
      &lt;td&gt;Cycle through kill ring after yanking.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-d&lt;/td&gt;
      &lt;td&gt;Kill word.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-k&lt;/td&gt;
      &lt;td&gt;Kill line.&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Editing and Help,&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Keys&lt;/th&gt;
      &lt;th&gt;Description&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Tab&lt;/td&gt;
      &lt;td&gt;Indent line&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-j&lt;/td&gt;
      &lt;td&gt;New line and indent, equivalent to ENTER followed by TAB.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-/&lt;/td&gt;
      &lt;td&gt;Hippie expand; cycles through possible expansions of the text before point.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-\&lt;/td&gt;
      &lt;td&gt;Delete all spaces and tabs around point.&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Day 5:&lt;/p&gt;

&lt;h4 id=&quot;working-with-files&quot;&gt;Working with Files&lt;/h4&gt;
&lt;p&gt;The key binding to open a file in emacs is&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;C-x C-f
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;To save the file after writing content to it,&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;C-x C-s
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Few interesting key bindings that are useful,&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;C-x k -&amp;gt; to kill the current buffer.
C-x b [buffer_name] -&amp;gt; to switch the buffer
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;key bindings - what is it? Emacs actually binds keystrokes to commands, which are just elips functions. E.g. C-x b is bound to the function switch-to-buffer. Likewise, C-x C-s is bound to save-file.You can redefine functions, because at its core Emacs is just a Lisp interpreter. The freedome to modify Emacs using a powerful programming language is what makes Emacs so flexible and why some programmers really like it.&lt;/p&gt;

&lt;h4 id=&quot;modes&quot;&gt;Modes&lt;/h4&gt;
&lt;p&gt;An Emacs mode is a collection of key bindings and functions that are packaged together to help you become productive when editing different types of files. Modes come in two flavors: major modes and minor modes. Many modes are distributed as packages , and they can be browsed and installed using the following commands.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;M-x package-list-packages
M-x package-install
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 id=&quot;core-editing-terminology-and-key-bindings&quot;&gt;Core Editing Terminology and Key Bindings&lt;/h4&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Keys&lt;/th&gt;
      &lt;th&gt;Description&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;C-spc&lt;/td&gt;
      &lt;td&gt;To mark set&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-w&lt;/td&gt;
      &lt;td&gt;Kill region.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-w&lt;/td&gt;
      &lt;td&gt;Copy region to kill ring.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-y&lt;/td&gt;
      &lt;td&gt;Yank&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-y&lt;/td&gt;
      &lt;td&gt;Cycle through kill ring after yanking.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-d&lt;/td&gt;
      &lt;td&gt;Kill word.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-k&lt;/td&gt;
      &lt;td&gt;Kill line.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Tab&lt;/td&gt;
      &lt;td&gt;Indent line.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-j&lt;/td&gt;
      &lt;td&gt;New line and indent, equivalent to ENTER followed by TAB.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-/&lt;/td&gt;
      &lt;td&gt;Hippie expand; cycles through possible expansions of the text before point.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M-\&lt;/td&gt;
      &lt;td&gt;Delete all spaces and tabs around point.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-h k key-binding&lt;/td&gt;
      &lt;td&gt;Describe the function bound to the key binding. To get this to work, you actually perform the key sequence after typing C-h k.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;C-h f&lt;/td&gt;
      &lt;td&gt;Describe function&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;em&gt;Day 6 : 29/Sep/2020&lt;/em&gt;&lt;/p&gt;
&lt;h4 id=&quot;using-emacs-with-clojure&quot;&gt;Using Emacs with Clojure&lt;/h4&gt;
&lt;p&gt;To work with Emacs while developing clojure applications, it is important to understand how to start an REPL process that’s connected to Emacs, and how to manage Emacs windows.Post which we need to remember/practise a set of useful key bindings for evaluating expressions, compiling files, and performing other quirky tasks.&lt;/p&gt;

&lt;p&gt;Emacs CIDER package is the most important package while working with Clojure applications on Emacs. To install,&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;M-x package-install cider
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This package will allow us to open an REPL within Emacs, and provides us with the key bindings that helps us interact with the REPL efficiently.To start the REPL and create a new buffer use the following command, after navigating to the src/core.clj of your sample app.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;M-x cider-jack-in
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This will open up two windows, one for our core.clj file and the next one for REPL.&lt;/p&gt;

&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Keys&lt;/td&gt;
      &lt;td&gt;Description&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;|C-x C-e| Run the command cider-eval-last-expression.|
|C-u C-x C-e| Prints the result of the evaluation after the expression.|
|C-c M-n| Sets the namespace to the namespace mentioned at the top of your current file.|
|C-c C-k| Compiles your current file in REPL session|
|C-up/down arrow|Cycle through REPL history.|
|C-c C-d C-d| Displays the documentation for the symbol under point.|
|M-.| Will navigate to the code for symbol under the point.|
|M-,| Will return to your original buffer and position.|
|C-c C-d C-a|Let’s you search arbitrary text across fn names and doc.|
|q| Remember this key, when you feel you’re in the wrong place to exit from window.|
&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Day 7: 30/Sep/2020&lt;/em&gt;&lt;/p&gt;
&lt;h3 id=&quot;do-things-a-clojure-crash-course&quot;&gt;DO THINGS: A CLOJURE CRASH COURSE&lt;/h3&gt;
&lt;p&gt;Clojure’s syntax is simple. Like all Lisps, it employs a uniform structure, a handful of special characters, and a hell lot of parentheses.&lt;/p&gt;

&lt;h4 id=&quot;forms-means-valid-code-or-expressions-in-clojure&quot;&gt;Forms &lt;em&gt;(means valid code or expressions in Clojure)&lt;/em&gt;&lt;/h4&gt;
&lt;p&gt;All Clojure code is written in a uniform structure. Clojure recognizes two kinds of structures:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Literal representations of data structures (like numbers, strings, maps and vectors).&lt;/li&gt;
  &lt;li&gt;Operations (+, - , * ….)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All operations takes the form, and Clojure uses whitespace to separate operands, and it treats commas as whitespace.&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;(operator operand1 operand2 ... operandn)

Examples: following two expressions produces same results.
(+ 1 2 3)
(+ 1,2,3)

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 id=&quot;control-flow-if&quot;&gt;Control Flow (IF)&lt;/h4&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;(if boolean-form
 then-form
 optional-else-form)

An Example:
user=&amp;gt; (if true
  #_=&amp;gt; &quot;I swear by my life&quot;
  #_=&amp;gt; &quot;Damn you&quot;)
&quot;I swear by my life&quot;


user=&amp;gt; (if true
  #_=&amp;gt; (do (println &quot;Success!&quot;)
  #_=&amp;gt; &quot;By Zeus Hammer&quot;)
  #_=&amp;gt; (do (println &quot;Failure&quot;)
  #_=&amp;gt; &quot;By Aquaman&quot;))
Success!
&quot;By Zeus Hammer&quot;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 id=&quot;control-flow-when&quot;&gt;Control Flow (When)&lt;/h4&gt;

&lt;p&gt;Use when if you have many things to do when some condition is true, and always want to return nil when the condition is false.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;user=&amp;gt; (when true
  #_=&amp;gt; (println &quot;Success!&quot;)
  #_=&amp;gt; &quot;abra cadabra&quot;)
Success!
&quot;abra cadabra&quot;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Day 8: 03/Nov/2020&lt;/em&gt;&lt;/p&gt;
&lt;h4 id=&quot;nil-true-false-truthiness-equality-and-boolean-expressions&quot;&gt;nil, true, false, Truthiness, Equality and Boolean expressions&lt;/h4&gt;
&lt;p&gt;Clojure has true and false values. nil is used to indicate no value in Clojure. We can check whether a value is nil with the nil? function.Both nil and false are used to represent logical falsiness, whereas all other values are logically truthy.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;(nil? 1)
; =&amp;gt; false

(nil? nil)
; =&amp;gt; true

(if &quot;there is covid&quot;
    &quot;Better keep yourself isolated&quot;)
; =&amp;gt; &quot;Better keep yourself isolated&quot;

(if nil
    &quot;You dont have covid&quot;
    &quot;Stay safe, have fun at home&quot;)
; =&amp;gt; &quot;Stay safe, have fun at home&quot;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Equality operator:&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;(= 1 1)
;=&amp;gt; True

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Clojure uses the Boolean operators “or” and “and”. 
&lt;br /&gt;
“or” returns&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;either the first truthy value or the last value.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
“and” returns&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;the first falsey value or if no values are falsey, the last truthy value.
&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;// first truthy is &quot;:large_I_mean_Venti: hence the answer.
(or false nil :large_I_mean_Venti :why_cant_I_just_say_large)
; =&amp;gt;:large_I_mean_Venti

// No truthies, so returns the last value &quot;false&quot;
(or (= 0 1) (= &quot;yes&quot; &quot;no&quot;))
; =&amp;gt; false

//No truthies, so returns the last value &quot;nil&quot;
(or nil)
; =&amp;gt; nil

// No falsey, hence the last truthy &quot;:hot_coffee&quot; returned.
(and :free_wifi :hot_coffee)
; =&amp;gt; :hot_coffee

// First falsey &quot;nil&quot; is the answer.
(and :feelin_cool nil false)
; =&amp;gt; nil

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 id=&quot;naming-values-with-def-&quot;&gt;Naming values with def :&lt;/h4&gt;
&lt;p&gt;We can use def to bind a name to a value in Clojure. Please note the use of term bind, compared to the use of term “assigning” to a “variable” used in other languages.Here we treat “def” as a way of defining constants.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;//A simple assignment - treat it like constant definition.
(def covid_heroes
     [&quot;Doctors&quot;, &quot;Nurses&quot;, &quot;Attendants&quot;, &quot;Other medical staff&quot;, &quot;Support Staff&quot;])

//Another approach, function error-message takes a single arg, uses it to determine the string to return.

(defn error-message
      [severity]
      (str &quot;OH CRAZY! IT&apos;S A DISASTER! WE&apos;RE&quot;
           (if (= severity :mild)
               &quot;MILDLY INCONVENIENCED&quot;
               &quot;DOOMED&quot;)))
(error-message :mild)

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Day 8: 19/March/2021&lt;/em&gt;&lt;/p&gt;
&lt;h3 id=&quot;data-structures&quot;&gt;Data Structures&lt;/h3&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h3 id=&quot;books&quot;&gt;Books:&lt;/h3&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h3 id=&quot;links&quot;&gt;Links:&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Beginner’s Guide to Emacs : http:// www.masteringemacs.org/articles/2010/10/04/beginners-guide-to-emacs/ &lt;/li&gt;
&lt;li&gt;Emacs CIDER: https://github.com/clojure-emacs/cider/&lt;/li&gt;
&lt;/ol&gt;

</description>
				<published>2020-09-08 00:00:00 +0000</published>
				<link>http://hpalappetty.me/2020/09/08/Clojure-notes.html</link>
			</item>
		
			<item>
				<title>My Idea Bucket</title>
				<description>&lt;p&gt;In this post, I intend to continue updating 5-10 app ideas that I can generate daily as an experiement. This is following an inspiration from James Altucher&apos;s improve your idea muscle by writing down 10 ideas per day.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;29/Sep/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;A price comparison app for Electronic devices, with detailed reviews.&lt;/li&gt;
  &lt;li&gt;An app for learning english words, their root, meanings and synonyms.&lt;/li&gt;
  &lt;li&gt;An app based scientific calculator (look at your old scientific calculator to develop this.)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;28/Sep/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An app to collect summary notes on interesting topics.&lt;/li&gt;
  &lt;li&gt;An app to track cricket players and their stats.&lt;/li&gt;
  &lt;li&gt;An app to track football players and their stats.&lt;/li&gt;
  &lt;li&gt;An app to help manage with the information regarding house development and interior decorations.&lt;/li&gt;
  &lt;li&gt;An app to help manage/share information on the process of house registration/khata transfer et.al.&lt;/li&gt;
  &lt;li&gt;An app to help you with recommendations on tax saving options.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;22/Sep/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An app to aggregate all craft work sellers of the world on a single platform.&lt;/li&gt;
  &lt;li&gt;An app to learn about top cyclists and their routines and tricks.&lt;/li&gt;
  &lt;li&gt;An app to share tricks to develop good habits.&lt;/li&gt;
  &lt;li&gt;A very clean app without nasty advertisements/junk for travel destinations.&lt;/li&gt;
  &lt;li&gt;An app for artists to share their creative work with the world.&lt;/li&gt;
  &lt;li&gt;An app for bikers to learn about bikes and their maintenance.&lt;/li&gt;
  &lt;li&gt;An app to source top dolls for kids from around the world.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;18/Sep/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An app to manage favorite blogs.&lt;/li&gt;
  &lt;li&gt;An app to connect with all auto service folks seamlessly.&lt;/li&gt;
  &lt;li&gt;An app for managing auto service parts marketplace seamlessly.&lt;/li&gt;
  &lt;li&gt;An app to manage grocery supply/demand levels at home.&lt;/li&gt;
  &lt;li&gt;An app to connect all ice cream vendors as a marketplace in single place.&lt;/li&gt;
  &lt;li&gt;An app to check the BMTC bus availability and routes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;15/Sep/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An app to share bicycles for rent in apartments (there are many cycles lying down without being used).&lt;/li&gt;
  &lt;li&gt;An app to connect all battery service providers for Auto industry/Consumers in India.&lt;/li&gt;
  &lt;li&gt;An app to consolidate selling of all stationary items in India. We still have to run around to find stuff.&lt;/li&gt;
  &lt;li&gt;An app to consolidate the market for PC parts in India to offer better pricing and discovery.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;10/Sep/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;A weather app with pollution indicators of today and predicted for tomorrow.&lt;/li&gt;
  &lt;li&gt;An app for cyclists to know the road conditions.&lt;/li&gt;
  &lt;li&gt;An app for elderly to call SOS.&lt;/li&gt;
  &lt;li&gt;An app to provide information on home remedies on common health issues.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;09/Sep/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An aggreator app for all school information/books/reviews.&lt;/li&gt;
  &lt;li&gt;A social network app for pets.&lt;/li&gt;
  &lt;li&gt;A music player app that recommends music based on your max music interests learning from past lists.&lt;/li&gt;
  &lt;li&gt;An app for auto industry to manage servicing and reduce paper workload.&lt;/li&gt;
  &lt;li&gt;An app for consumers to compare automobiles efficiently, including their prices.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;08/Sep/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An app to calculate/manage income tax (India).&lt;/li&gt;
  &lt;li&gt;A calendar management app for sports locations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;31/Aug/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An android app framework for e-commerce installations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;30/Aug/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An app to understand the positiveness of an article.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;29/Aug/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;A know your device app, to understand the system information/usage.&lt;/li&gt;
  &lt;li&gt;A remind me app, important dates for many things in life (birthdays, anniversaries, insurance renewals, school fee payment, bill payments, anything recurring in life)&lt;/li&gt;
  &lt;li&gt;A news app that only focuses on Technology leadership, changes and growth/fall.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;27/Aug/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;A habit management app for the many habits people want to develop and keep improving them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;23/Aug/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An app to learn about the value of essential oils and our ancient healing techniques.&lt;/li&gt;
  &lt;li&gt;An School Management System for everyone(Owners, Kids, Parents and Teachers).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;22/Aug/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An app that help small shop owners to list their products and receive orders with payment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;
&lt;b&gt;21/Aug/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An app to know the caller (with no advertisement and high privacy)&lt;/li&gt;
  &lt;li&gt;An app that helps me find where I parked my car.&lt;/li&gt;
  &lt;li&gt;An app that can help track your kids, if they’re wearing a smart watch.&lt;/li&gt;
  &lt;li&gt;An app that helps you to take a pic of dirty places/deeds in the city and send to respective twitter handle.&lt;/li&gt;
  &lt;li&gt;An app that helps with Keep India Clean.&lt;/li&gt;
  &lt;li&gt;An app that helps with marking crime infested areas.&lt;/li&gt;
  &lt;li&gt;A torch app for elderly.
&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;b&gt;20/Aug/2020:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;An app to manage personal finances.&lt;/li&gt;
  &lt;li&gt;An app for listening to favorite chants.&lt;/li&gt;
  &lt;li&gt;An app for kids to learn Alphabets.&lt;/li&gt;
  &lt;li&gt;An app for kids to learn numbers.&lt;/li&gt;
  &lt;li&gt;An app for kids to learn sounds.&lt;/li&gt;
  &lt;li&gt;An app for kids to learn about animals.&lt;/li&gt;
  &lt;li&gt;An app for kids to learn about cartoon characters.&lt;/li&gt;
  &lt;li&gt;A fun app to learn about malayalam movie artists.&lt;/li&gt;
  &lt;li&gt;A fun app to ace the Graduate Assessment centre exams.
&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
				<published>2020-08-20 00:00:00 +0000</published>
				<link>http://hpalappetty.me/2020/08/20/my-idea-bucket.html</link>
			</item>
		
			<item>
				<title>How I fell in love with Twitter App.</title>
				<description>&lt;p&gt;During early 2000’s I started my career as a Software Engineer at IBM. Almost around the same time our technology enabled industry started to explode in one way or another. India was at the cusp of this change, and thanks to IT services we had access to at least 20-30% of that information change happening across the corners of this world, especially United States. Some of the noted changes during this time was Struts Framework giving way to Spring &amp;amp; Hibernate, start of blogging culture in India (thanks to blogger.com).  Growth of Gmail, I used to be a YahooMail &amp;amp; HotMail person looks like I have forgotten their passwords now :)&lt;/p&gt;

&lt;p&gt;In this change, what I observed was that, we were overloaded with information. Mostly, everything that I wanted to know or need to know came in full blown web pages and had to read through entire page to make a summary for myself. Mostly, these information got managed via quite a bit of bookmarking, and then google reader, delicious and similar tools started popping up to help users manage their interests that are spread across multiple web links.&lt;/p&gt;

&lt;p&gt;Around this time I moved to United Kingdom to study at LSE (in 2008), by then Facebook had already started taking a bit of my time.It was during my time at LSE that I started realising the power of Information and Communication technologies. During this time, I spend significant amount of time on internet studying various aspects of it - including but not limited to resistance to change, internet addiction, economics of networks etc. It is here, that I got addicted to the beauty of Twitter. What did twitter solve for me that, I am engaged to it for the last 7 years or so?&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;As a user, I wanted a platform&lt;/p&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;
  &lt;blockquote&gt;
    &lt;ol&gt;
      &lt;li&gt;for blast short concise words about my thoughts.&lt;/li&gt;
      &lt;li&gt;to follow people of my interest and their thoughts.&lt;/li&gt;
      &lt;li&gt;to aggregate my interests.&lt;/li&gt;
      &lt;li&gt;which is well designed, so that it takes minimum effort to achieve the above needs.&lt;/li&gt;
      &lt;li&gt;which understands me and grows with me.&lt;/li&gt;
      &lt;li&gt;which recommends good and valuable information with me.&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/blockquote&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now, the question arises did you really like it when it was in its initial stages? The answer is No. Twitter did not have a good user interface, and refreshing browser everytime to look at tweets was no fun. You know, I am talking about time a when Android &amp;amp; iOS phones were not so popular and was damn expensive to buy.I used twitter a lot via browser. The smarphone phenomenon was yet to start and around Nov,2008 Apple launched iPhone3Gs and I stood in queue to get my first smartphone. Let me tell you the feeling was awesome, UI/UX, gestures etc. literally took my breath away and so did it clear my bank balance for sometime. I was a student then on meagre budget.&lt;/p&gt;

&lt;p&gt;I wasn’t much of an App user until 2010, the only apps I used was WhatsApp or Facebook. Around 2010, while working with EDI in UK, I ended up consulting with top institutions like WorldBank, SALDRU,ILRI etc. For all these customers the challenge was how will they improve their CAPI (computer assisted personal interview), we were doing this with UMPC’s at that point of time.Only samsung was the major player in this market developing cute handheld computer miniatures with windows running on them.&lt;/p&gt;

&lt;p&gt;But, then I feel world never realized that Android was about to change the game around 2010-11. I got my first taste of Android from a book written by Reto Meier during this time and we were closely observing the launch of Tablets (iPad &amp;amp; Nexus &amp;amp; Notion Ink from India). Although, I left EDI in April,2011 to join my family back in India. I kept playing with simulators and my phone remained iPhone until July,2011 when I bought my first android phone a Samsung Duos with Android 2.3 as a test device.&lt;/p&gt;

&lt;p&gt;I worked with an enterprise focussed company and people did not believe that Digital era has begun. I continued my journey with Android ditching my iPhone on the way. The apps galore on Android was fun to install and test out. I used TweetDeck initially for all my twitter interactions from android phone. But, somewhere along the way, I moved to original app from Twitter. Me and my colleague used to talk about digital marketing, how facebook is changing the way marketing is done etc.&lt;/p&gt;

&lt;p&gt;I took a break from work during Jul,2012 - Dec,2012 because I really wanted to be part of upcoming startup culture.I tried dabbling with few things, trying to set up a mobile development shop etc. Nothing, played out well - so I moved to Bangalore silicon valley of India to see if I could help a fledgling company to grow. I got this opportunity at ABOVE and had a fantastic 2 years of awesome learning experience.My twitter life continued, noticed few startups like Frrole coming up twitter analysis. Social / Sentiment analysis was exploding. I my self played with the twitter SDK and APIs a bit, but did not pursue anything further.&lt;/p&gt;

&lt;p&gt;What I noticed in the 7 years was an ecosystem getting developed and users around that growing with it. In india twitterati was primarily hard code programmers with exposure to western world. Initially in 2012-13, I did not see much buzz around it. Today, Twitter experts are there in companies to help them viral market products or offerings and engage with users in the roles that fills Digital Marketing suites (Facebook Marketing professionals, Twitter Guys, Google Adwords ruling the roost in startup world). The explosion of this mass following could be attributed to the flourishing startup eco-system in Bangalore and India in general.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Now that I have praised enough about this, what are the points that irritate me?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;
  &lt;blockquote&gt;
    &lt;ol&gt;
      &lt;li&gt;I do not like the app install adverts that come up in my twitter feeds, wish I had at least switch it off or remind me after a year feature knobs.&lt;/li&gt;
      &lt;li&gt;I think the message or inbox feature is crap and useless - its like the quote of “Jamie Zawinski” Every program attempts to grow until it can read mail.&lt;/li&gt;
      &lt;li&gt;Highlights is a feature which is completely hidden, I am not sure why its even there.&lt;/li&gt;
      &lt;li&gt;I do not like lists feature too - coz its not a shopping  or a todo list app. I do not want to create a list of people or groups. I would rather follow them and get updates if I really like them and their thoughts.&lt;/li&gt;
      &lt;li&gt;While recommendation engine does a pretty good job, it can act creepy at times. May be the marketers eats up the algorithm to send me odd stuff.&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/blockquote&gt;
&lt;/blockquote&gt;

&lt;p&gt;Twitter has awesome design &amp;amp; user experience , I would give twitter team good marks in this department. They must have spent significant amount to time and money to achieve this. I love their logo and color combinations.Its not jarring on the eyes and is very modern and retro.&lt;/p&gt;

&lt;p&gt;With all these points, I would like to conclude my story of falling in love with Twitter app.&lt;/p&gt;
</description>
				<published>2015-12-12 00:00:00 +0000</published>
				<link>http://hpalappetty.me/2015/12/12/How-I-fell-in-love-with-Twitter-App.html</link>
			</item>
		
			<item>
				<title>Understanding stretch goals! My Perspective!</title>
				<description>&lt;p&gt;I am a firm believer of stretching your goals a bit extra! This helps you test and understand a lot about yourself, your ability to achieve certain goals within its allocated time, what needs to be done in case of gaps and many more useful insights!&lt;/p&gt;

&lt;p&gt;Recently, I experimited myself by walking from “Marthahalli Bridge bus station” to “Iris Inn, Mahadevapura” as a short stretch goal. Scenario was riddled with infrequent rains, bad traffic, no lights(it was around 6:45PM), dirt everywhere, rude drivers and no footpath!&lt;/p&gt;

&lt;p&gt;What is the goal, I wanted to achieve?&lt;/p&gt;

&lt;p&gt;How did I plan to execute it?&lt;/p&gt;

&lt;p&gt;Why did I do it?&lt;/p&gt;
</description>
				<published>2015-11-24 00:00:00 +0000</published>
				<link>http://hpalappetty.me/2015/11/24/Understanding-stretch-goals-My-Perspective.html</link>
			</item>
		
			<item>
				<title>Key Points To Take Away From Google io 2015</title>
				<description>&lt;p&gt;
&lt;h3&gt;Main Theme - Mobile&lt;/h3&gt;
&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;	Mobile phone is becoming the first computer for many millions of people.
	Google Android M - Developer preview available - Final build to be out in Q3/Q4 2015.
	Android Auto - released for US and Europe in partnership with auto Majors.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3&gt;Internet of Things&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;	Brillo ( for IOT) - release in Q3
	Weave - cross platform - communication layer - release in Q4
	Deep Neural Networks ( 30 Layers) - Okay Google and Image recognition uses this DNN
	Context Aware Information Display - part of Android M.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3&gt;Google Now&lt;/h3&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;	Assist users in Mobile World
	Context Engine - completely built based on modern Neural networks research. Lots of NLP.
	Answers - Advanced search output - based on context and content.
	Actions - full blown mobile interactions - call, search, share, reminders etc from a result.
	Order Grocery - with Google Now Card + Instacart.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3&gt;Now on Tap&lt;/h3&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;	With Google M.
	Extremely powerful context aware engine.
	Will be released as part of Android M - later in Q3/Q4 2015.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3&gt;Google Photos - new product&lt;/h3&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;	Auto back up - free and unlimited
	Organize by months, year - with a simple pinch gesture.
	Very powerful tagging, search and gesture support.
	Share and save what matters.
	Backup Unlimited high quality photos and videos for free ( 16 Mega px and 1080 resolution).
	Already available for General public - Android, iOS and Web.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3&gt;Google Translate &lt;/h3&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;	BRIC countries will play a major role in Smart Phone adoption and see high growth.
	Mention of Jaipur and Mumbai in the Talk.
	2G is very slow, starting to change the search results and loading content starting Indonesia.
	In India - Network Quality Estimator - currently replaces icons/images with placeholder.
	Working on Offline capabilities - while searching - on Chrome on Android.
	Youtube Offline - a video offline up to 48 hours - (in India and few other countries).
	India is centre of attention now for Mobile growth.
	Powerful Offline Maps - with turn by turn voice directions offline - later this year.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3&gt;Develop, Engage &amp;amp; Earn &lt;/h3&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;	Android Studio 1.3 - faster build and better memory profiler.
	Full Support for C++ on Android Studio for NDK ( Native Development Kit).
	Polymer 1.0 library for better experience for web app.
	COCOA PODS - Google APIs via Cocoa Pods - for iOS.
	Cloud Test Lab - for automating apps test - will be available in Play Developer Console Soon.
	Firebase
	Google Cloud Platform  - for big data.
	App indexing via Google search results in Google Mobile.
	App indexing pilot is on for iOS.
	Cloud Messaging - coming on iOS.
	Subscription feature in Cloud Messaging.
	Via Chrome - you can engage on Mobile website  - via Notifications ( OS level control).
	Push Notifications for Mobile web.
	Universal app campaign tracking platform - Search, Admob, YouTube - in next few months.
	Conversion funnel in Play Console to improve Play Store listing.
	Google Play - Home pages for Companies - single destination to promote Multiple apps together.
	AdMob+Google Analytics - Mediation ( support for 40 ad networks) - just added Tencent GDT.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3&gt;Google Play &lt;/h3&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;	New ways to improve Discoverability of Apps - Google Play
	50Billion app installs last year.
	India, Sout-East asia driving the Growth.
	Personalized Play Store listing (Context or person aware).
	Content ( Family friendly) - more secure content discovery for parents.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3&gt;Android Nano Degree with Udacity (200$/pm) &lt;/h3&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;	Google spent 4million USD to develop the curriculum.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3&gt;Google Cardboard&lt;/h3&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;	User Experience very important in the mobile world.
	Google Cardboard - 1 million users/viewers.
	Virtual Reality experience.
	Cardboard SDK - both iOS &amp;amp; Android.
	Expeditions with Google Cardboard - virtual reality to class rooms.
	JUMP - capturing world as VR video - releasing this summer.
	GoPro - will be building and selling JUMP 360 degree camera.
	YouTube will support VR videos from summer.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As a whole, we can infer that on android platform Mobile based search, nudges and advertising is gonna get very powerful in future. As for now, Mobile is the new computer - a computer that knows its owner, his/her habits, interests and many more personal traits.&lt;/p&gt;
</description>
				<published>2015-05-30 00:00:00 +0000</published>
				<link>http://hpalappetty.me/2015/05/30/Key-points-to-take-away-from-Google-IO-2015.html</link>
			</item>
		
			<item>
				<title>Adding Tomighty To Startup Applications In Ubuntu</title>
				<description>&lt;p&gt;I am a big fan of productivity tools, esp. observing and tweaking my own daily routines to achieve best results is one of my passion.Recently, I came across a pomodoro timer &quot;Tomighty&quot; and have been using it regularly on windows section of my machine. I have a Linux (Ubuntu) partition as well, where I play around with code and my lessons on programming. This post details, how I installed this pomodoro timer in Ubuntu as a startup application.This helps me avoid doing the following, everytime I start my System.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;java -jar tomighty.jar
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Following are the steps to get this done on Ubuntu Machine&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  1. Download tomighty.jar from http://www.tomighty.org/download - All operating systems jar file.
  2. Copy this from Downloads to /opt or /tools wherever you keep your useful toolset.
  3. Create a tomighty.sh file for creating an entry in startup applications.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Copying from Downloads to /opt or /tools can be done by&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ cp ~/Downloads/tomighty.jar /opt

or

$ cp ~/Downloads/tomighty.jar /tools
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Contents of tomighty.sh is &lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;#! /bin/bash
java -jar /home/hpalappe/tools/tomighty-0.7.1.jar
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Go to the gear sign on the top right most section on panel, click on startup applications and add a new entry. This solved my problem of getting tomighty working on Ubuntu.&lt;/p&gt;
</description>
				<published>2014-02-09 00:00:00 +0000</published>
				<link>http://hpalappetty.me/2014/02/09/adding-tomighty-to-startup-applications-in-ubuntu.html</link>
			</item>
		
			<item>
				<title>How can you deploy a simple django application on heroku with postgresql as db?</title>
				<description>&lt;p&gt;This article explains &quot;As a developer what you need to do&quot;  to install a simple Django application on heroku stack ($0 priced stack).&lt;/p&gt;

&lt;p&gt;I will explain the problems faced during this process, some tips as well to get this working.&lt;/p&gt;

&lt;p&gt;What your setup should be like&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul&gt;
    &lt;li&gt;A *Nix based system&lt;/li&gt;
    &lt;li&gt;Python must be installed&lt;/li&gt;
    &lt;li&gt;You should have pip and distribute installed&lt;/li&gt;
    &lt;li&gt;You must have heroku tool-belt installed&lt;/li&gt;
    &lt;li&gt;You must have postgresql installed&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt; Once the above list is checked you can create a folder with your app name in project directory.In my case it is in HOME/projects&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    $cd ~/projects
    $mkdir todolist
    $cd todolist
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;At this point, we may want to create a project with specific version of Python or Django. To do this, we must install virtualevn. This can be done by downloading the 
package from Python package index [virtualenv]:(https://pypi.python.org/pypi/virtualenv). Once you download the package from this location, extract the same
and then&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    $ cd ~/Downloads/virtualenv-1.10.1/
    $ sudo python setup.py install
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This will install the virtualenv to your system. After this create a virtualenv in your application folder.&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    $ cd ~/projects/todolist
    $ virtualenv venv --distribute
    $ source venv/bin/activate
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After this we can create a django project by&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    $ django-admin.py startproject todolist
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then move to your project root folder by &lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    $ cd todolist
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;then&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    $pip freeze &amp;gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Once the above set up is complete, we can complete the settings in settings.py file.This is a tricky area, and is the point where most of the newbies near Heroku
gets stopped. To deploy a django app to heroku, you have to login to your heroku account and then add Heroku-Postgres addon (dev version) which is free.You can get the
details of DATABASE from heroku account and then add those details to your settings file, it will look similar to what I have posted below.&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    DATABASES = {
        &apos;default&apos;: {
                &apos;ENGINE&apos;: &apos;django.db.backends.postgresql_psycopg2&apos;,
                &apos;NAME&apos;: &apos;daskhdhlklkll&apos;,
                &apos;USER&apos;: &apos;dtoasdashasaabh&apos;,
                &apos;PASSWORD&apos;: &apos;OmasdjasLKJJJKSDkjsakajskja5d-&apos;,
                &apos;HOST&apos;: &apos;ec2-94-111-212-45.cxxxxxx-1.amazonaws.com&apos;,
                &apos;PORT&apos;: &apos;5432&apos;,
                }
        }
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Once the above details are set it&apos;s time to enjoy deploying your app to heroku platform.To complete the steps, first we have to put the code in &apos;git&apos; first.
Then push the code to heroku.Create a &apos;Procfile&apos;at the root of your application and add a webworker to it. This is explained well in heroku documentation, so I am not explaining it again.
We also have to create a heroku stack, which can be done before adding the code to git.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    $cd ~/projects/todolist/todolist
    $heroku create ( will ask for your heroku credentials)
    $git init
    $git add .
    $git commit -m &quot;my first heroku application&quot;
    $git push heroku master
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;During this process , heroku will ask for your user name and password.Please provide appropriate credentials.&lt;/p&gt;
</description>
				<published>2013-08-11 00:00:00 +0000</published>
				<link>http://hpalappetty.me/2013/08/11/How-can-you-deploy-a-simple-django-application-on-heroku-with-postgresql-as-db.html</link>
			</item>
		
			<item>
				<title>The problem of plenty</title>
				<description>&lt;p&gt;I have been distracted quite frequently for the last few months.The reason is, number of programming languages that is doing rounds on internet&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;C&lt;/li&gt;
    &lt;li&gt;C++&lt;/li&gt;
    &lt;li&gt;C#&lt;/li&gt;
    &lt;li&gt;Java&lt;/li&gt;
    &lt;li&gt;Python&lt;/li&gt;
    &lt;li&gt;RubyC&lt;/li&gt;
    &lt;li&gt;Haskell&lt;/li&gt;
    &lt;li&gt;OCaml&lt;/li&gt;
    &lt;li&gt;Haskell&lt;/li&gt;
    &lt;li&gt;F#&lt;/li&gt;
    &lt;li&gt;D&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt; How on earth are we supposed to learn or keep track of all these languages. I agree that it is not necessary to learn
all of them or know most of them, but isn&apos;t it distracting in nature?. When you sit to study Java, someone will write great
notes about C++, then by the time you read few lines about C++ you will read something about, how learning python helped
someone to write better C++....... the list goes on &lt;/p&gt;

&lt;p&gt;There is high chance that, over the next decade we will end up with programmers , who are master of none and jack of all. This
may not be a good thing for specialist jobs, where in depth knowledge in particular language is so important to contribute well
towards a project.&lt;/p&gt;

&lt;p&gt; That said, there is nothing wrong in knowing half dozen programming languages. Knowing is not same as learning.&lt;/p&gt;
</description>
				<published>2013-05-29 00:00:00 +0000</published>
				<link>http://hpalappetty.me/2013/05/29/The-problem-of-plenty.html</link>
			</item>
		
	</channel>
</rss>