Notes on Miscellaneous stuff

Last updated on 10 Apr 2026
20:34, 06 March 2026

Me: Can VSCode terminal with an ongoing session be made a separate window in Windows 11
GSAI (Google Search AI): ...
Method 3: Command Palette
Open the terminal (Ctrl+`).
Press Ctrl+Shift+P to open the Command Palette.
Type and select: Terminal: Move Terminal into New Window. 
...

Me: Command Palette method worked. Drag and Drop did not work, and Context menu command did not show Move Terminal into Editor Area.
...

GSAI said that two terminals are needed for one or both of above methods to work.
Confirmed that with two terminals open, I could drag one of the terminal icons on right sidebar onto editor which moved it to an editor tab. Then I could use context menu on tab to move it to a separate (floating) terminal.
------
===================
14:41, 10 March 2026

Me (on Google Search): VScode temporarily turn off tooltips while typing

GSAI (Edited): To temporarily turn off or delay tooltips while typing in Visual Studio Code, you can 

1. Disable Hover Tooltips
  • Via Settings UI: Go to File > Preferences > Settings (or press Ctrl+,), search for "Hover", and uncheck "Editor > Hover: Enabled".
2. Adjust Suggestion Delay
  • Quick Suggestions Delay: Search for editor.quickSuggestionsDelay and increase the value 
  • Hover Delay: Search for editor.hover.delay and increase it 
4. Toggle via Keyboard (Temporary Hide) 
  • Press Escape to dismiss the current tooltip or suggestion box.
  • Press Ctrl + Space again to toggle the details pane of a suggestion. 
...

[I increased Delay to 1300 from 300. That's working out well. It has a reset to go back to default of 300.]
==========

In VSCode: Ctrl+PgDn to move to next editor tab .. Ctrl+PgUp - prev
=========

Me to GS: vscode, keyboard shortcut for next match while focus is on text in file in tab but find popup is active and shows up and down buttons

GSAI (Edited): When the Find widget is active but your focus is in the editor text:

* Find Next: Press F3 (Windows/Linux) to jump to the subsequent match.
* Find Previous: Press Shift + F3 (Windows/Linux) to jump back to the previous match. 
...

[F3 worked for me.]
===============

17:09, 19 March 2026

Me: I want Chrome light mode on laptop and dark mode on PC

GSAI (Google Search AI): To use different themes on your laptop and PC while using the same Google account, you must first disable Theme Sync. By default, Chrome syncs your appearance settings across all devices. 

1. Disable Theme Syncing 
Perform these steps on both your laptop and your PC to ensure they don't overwrite each other:
Open Chrome and click the three-dot menu (top-right) -> Settings.
Select You and Google from the left sidebar.
Click Sync and Google services.
Select Manage what you sync.
Choose Customize sync and toggle Themes to OFF. 

2. Set Your Preferred Modes
Now that syncing is disabled, you can set the modes independently: 
...
---------

I have disabled theme syncing. Need to now see if I can have light mode on laptop and dark mode on Chrome. [Earlier the setting was 'Sync everything'. So me choosing light mode on laptop Chrome changed desktop Chrome also to light mode from dark mode.]

Did the same for Extensions (disable sync for it).
...

As per GSAI, my gmail theme setting is also shared when Chrome theme is shared.
===================

https://bloggerfeedtobook.netlify.app/ when used with DarkReader On mode (dark mode), adds darkreader CSS stuff into output file. In DarkReader Off (light mode), it does not add such stuff (only what post itself contains is retained).
20260319-raviswdev-L4-dark.html - 714 KB
20260319-raviswdev-L4-light.html - 695 KB
This is not surprising as https://bloggerfeedtobook.netlify.app/ renders the output on browser which is then saved as file.
--------------------

1 April 2026 Note: This is a Gemini provided summary of a chat I had with it today.

Technical Deep Dive: WebSockets vs. REST in the Real World

This discussion explored the conceptual and practical differences between traditional REST APIs and WebSockets, using a popular overview video as a starting point.

Core Resource

Key Discussion Points

  • The "Listener" Concept: We identified that while the video focuses on a binary choice, there is a middle ground. Technologies like Server-Sent Events (SSE) allow an app to register a "listener" to receive server updates without the full complexity of a two-way WebSocket.
  • 4G Jitter & Stability: A critical part of the conversation focused on why stateful WebSockets can be "brittle" on 4G connections. Because WebSockets maintain a persistent "pipe," network jitter (timing variations) can snap the connection, requiring complex re-handshaking logic.
  • The WhatsApp vs. Gemini Live Paradox: *WhatsApp succeeds on rural 4G because it uses highly optimized, lightweight protocols (like MQTT) over its connection, designed to silently reconnect and buffer small text packets.
    • Gemini Live often struggles or fails on the same connection because it streams heavy, high-frequency multimodal data (audio/video). This requires near-zero latency; when jitter occurs, the stream breaks because it cannot "wait" to catch up like a text message can.
  • Duplex Terminology: We clarified that while WebSockets are Full-Duplex, REST is best described as Request-Response. REST isn't strictly "half-duplex" (like a walkie-talkie), but it is restricted by the rule that the client must always initiate the conversation.

Summary Table

Feature REST API WebSockets
Model Request-Response Full-Duplex (Two-way)
State Stateless (Each request is new)   Stateful (Continuous connection)
4G Performance   Resilient but "Laggy" Fast but sensitive to Jitter
Best For Standard data fetching Real-time Chat, Gaming, Streaming

------------------------------

12:41, 08 April 2026

For bookmarks in .md file, Breakpoints workaround in VS Code does not work.
However, Outline view helps to jump to header lines.

If more than that is needed, Bookmarks extension, https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks should be used.
Note: The extension has Labeled Bookmarks (Ctrl+Alt+Shift+K) to give markers specific names. These names will then show up in the Bookmarks Side Bar, essentially allowing you to create your own "Custom Outline" that exists alongside the native one.

Comments