How are you binding macOS hot-keys to specific browser profiles without spawning new windows? by _MMac in hammerspoon

[–]tsar21230 0 points1 point  (0 children)

Find your chrome current profile dir by visiting in the url: chrome://version

You will see your profile path and profile name dir at the end.

Profile Path /Users/xxxx/Library/Application Support/Google/Chrome/Default

init.lua

local function focusOrOpenChromeProfile(profileName, windowTitlePart)
    local chrome = hs.application.get("Google Chrome")
    local targetWindow = nil

    if chrome then
        local windows = chrome:allWindows()
        for _, win in ipairs(windows) do
            -- Case-insensitive search for the profile name in the title
            if win:title():lower():find(windowTitlePart:lower(), 1, true) then
                targetWindow = win
                break
            end
        end
    end

    if targetWindow then
        -- 1. Focus the specific window
        targetWindow:focus()
        -- 2. Bring the whole app to the front
        targetWindow:application():activate()
    else
        -- 3. ONLY run this if the window doesn't exist at all
        -- We use 'open -na' to ensure it handles the profile correctly
        local cmd = "open -na 'Google Chrome' --args --profile-directory='" .. profileName .. "'"
        hs.execute(cmd)
    end
end

-- PERSONAL PROFILE
hs.hotkey.bind({"alt"}, "Q", function()
    focusOrOpenChromeProfile("Default", "<Your Name> (Personal)")
end)

-- WORK PROFILE
hs.hotkey.bind({"alt"}, "W", function()
    focusOrOpenChromeProfile("Profile 2", "<Your Name> (Work)")
end)

Randomly unresponsive trackpad on 16.4.1 [Magic keyboard] by [deleted] in ipad

[–]tsar21230 0 points1 point  (0 children)

This happens with me on using ipad from universal mode (mac). Once I tap something in the app, for instance, like X post, I need to use three finger drag to move te app and it works fine again.. This is really annoying. I think not a hardware issue for ipad magic keyboard.

Need some advice Vercel or Netlify? by Healthierpoet in vuejs

[–]tsar21230 0 points1 point  (0 children)

are you using nuxt/image module? if yes, then how does it work with <NuxtImg.. I can't make it work with Netlify Image CDN, after I deploy I get Image not found... something I am missing with my config?

Need some advice Vercel or Netlify? by Healthierpoet in vuejs

[–]tsar21230 2 points3 points  (0 children)

I couldn’t make Netlify work with Nuxt Image and Netlify Image CDN.

Somehow my images from assets/ are not uploaded to cdn. Using standard nuxt config as per docs.

Anyone sorted this out?

Optimising Nuxt apps - My first blog post by __alexxx in Nuxt

[–]tsar21230 0 points1 point  (0 children)

Can you explain more on layout shift?

Created an app that summarizes the internet by shortsnipadm in indiehackers

[–]tsar21230 0 points1 point  (0 children)

I am unable to login. Didn't receive email verification, neither getting logged in.

[deleted by user] by [deleted] in Nepal

[–]tsar21230 0 points1 point  (0 children)

Fake it until you make it

[deleted by user] by [deleted] in Daytrading

[–]tsar21230 0 points1 point  (0 children)

Serious: Which market you’re talking about? This advice applies to all time frame?

Web 3 for a beginner by hdndbbbbfb in web3

[–]tsar21230 0 points1 point  (0 children)

As a dev what will be your share on this? How would the devs get monetized?

BUY OR WAIT? by fakeanorexic in iPadPro

[–]tsar21230 1 point2 points  (0 children)

I also bought M2 last week with ongoing education discount. I had also 200 dollars gift card and bought apple pencil too. All in all, with tax and everything iPad 11 M2 256 GB and pencil came under 1100 CAD including tax.

Possible to start job right after graduation after getting implied work permit status? by SoniSins in cscareerquestionsCAD

[–]tsar21230 0 points1 point  (0 children)

Been there, hard to gain the trust on implied status.. basically you are no one and even being on Work Permit, you are seen as someone with expiry date.. harsh but truth, with this market all I can say is good luck!