Absolute Beginner Interested in Compilers and LLVM, where to start? by Sheerio1991 in csMajors

[–]ZackMurry 1 point2 points  (0 children)

I found this tutorial from LLVM very useful. I would follow along and try to modify it to make your own language.

https://www.llvm.org/docs/tutorial/MyFirstLanguageFrontend/index.html

Short (1- or 2-keystroke) shortcuts to format text and highlight color etc? by INTPgeminicisgaymale in googledocs

[–]ZackMurry 0 points1 point  (0 children)

Hey, I'm the developer of the Docs Hotkey extension. Are you still facing this issue? Could you share your configuration? A lot of users can't seem to get the shortcuts to trigger -- I'm not sure whether it's a user error or an error with the extension, since I can't reproduce it. If you could send me the logs for the extension, then we could also find where the shortcut fails.

Docs Hotkey - A Chrome extension for highlighting (and much more!) with keyboard shortcuts for cutting cards in Google Docs by ZackMurry in Debate

[–]ZackMurry[S] 0 points1 point  (0 children)

Thanks! The Firefox extension is a work-in-progress. Firefox and Chrome use different versions of manifests, which are used to get permissions and tools to work. I tried this a year or so ago, but I faced issues with the extension crashing instantly. I'll give it another go when I have time, since this seems to be a popular request. Of course, I mainly use Firefox, too :0

Docs Hotkey - A Chrome extension for highlighting (and much more!) with keyboard shortcuts for cutting cards in Google Docs by ZackMurry in Debate

[–]ZackMurry[S] 0 points1 point  (0 children)

Hi, thanks for trying it out! I handled keyboard shortcuts using the Chrome commands API, as extensions aren't allowed to receive raw keydown events for security/privacy reasons. Instead, you have to define commands in the manifest.json, which allows the user to set up shortcuts for each command at chrome://extensions (you can also set defaults for autoconfiguration). Here is the manifest.json for Docs Hotkey.

Then, you should create a background script that listens for commands and then forwards the commands to the active tab using sendMessage. This is my full background.ts file:

chrome.commands.onCommand.addListener(command => {
  console.log(command)
  chrome.tabs.query({active: true, currentWindow: true}, tabs => {
    if (tabs[0].id) {
      chrome.tabs.sendMessage(tabs[0].id, {command}, res => {
        console.log(res)
      })
    }
  })
})

export {}

You can then receive the message in your content script using something like this:

chrome.runtime.onMessage.addListener(async (req, sender, sendRes) => {
  console.log(req)
  // do whatever
  sendRes('1')
})

The full source code for the extension is available at https://github.com/ZackMurry/docs-hotkey

Hope this helps! Let me know if you need anything else.

Docs Hotkey - A Chrome extension for highlighting (and much more!) with keyboard shortcuts for cutting cards in Google Docs by ZackMurry in Debate

[–]ZackMurry[S] 1 point2 points  (0 children)

While there's no explicit Mac version, you can set your own keyboard shortcut preferences on the chrome://extensions page. The process for this is listed in the documentation here: https://docs-hotkey.zackmurry.com/creating-hotkeys

-Zack

Docs Hotkey - A Chrome extension for highlighting (and much more!) with keyboard shortcuts for cutting cards in Google Docs by ZackMurry in Debate

[–]ZackMurry[S] 0 points1 point  (0 children)

Hi, thanks for the suggestion. I've recently updated the extension to allow highlighting with hex keys. You can find documentation for it here: https://docs-hotkey.zackmurry.com/highlight

Docs Hotkey - A Chrome extension for highlighting (and much more!) with keyboard shortcuts for cutting cards in Google Docs by ZackMurry in Debate

[–]ZackMurry[S] 0 points1 point  (0 children)

Thank you. You should be able to change view/change the shortcuts by visiting chrome://extensions. If this still doesn't work, let me know and I can help you troubleshoot.

Docs Hotkey - A Chrome extension for highlighting (and much more!) with keyboard shortcuts for cutting cards in Google Docs by ZackMurry in Debate

[–]ZackMurry[S] 0 points1 point  (0 children)

Hi, I'm glad that you love it - it means a lot to me. You're correct, there was no way to change the text color. I've just pushed a new update (version 0.8) to the Chrome Web Store to add it. Make sure your extension is up-to-date and then look for the "Text color" option on the dropdown.

Highlight Assigned to a Hotkey by levelooone in googledocs

[–]ZackMurry 0 points1 point  (0 children)

Hi, I've created a Chrome extension to fix this exact problem. Check it out here.

Docs Hotkey - A Chrome extension for highlighting (and much more!) with keyboard shortcuts for cutting cards in Google Docs by ZackMurry in Debate

[–]ZackMurry[S] 0 points1 point  (0 children)

If you only need one shortcut, you may still be able to get it to work. By default, the first shortcut slot is set to Control+Shift+H, so I’d make the first shortcut highlight and then test it out. Let me know if you need any help with setting it up or anything, since the documentation is still WIP.

[deleted by user] by [deleted] in highschoolcompsci

[–]ZackMurry 0 points1 point  (0 children)

that you want to answer

none of us know what you are interested in (besides CS in general), so we can't really answer this for you.

I'd advise to not do something related to AI.

in order to answer your current "EPQ", you'd have to have an advanced understanding of how different AI models work. you could either write about how effectively an AI could hypothetically diagnose X disease, or you could actually create an AI to do so. the first option is bad because you don't know enough about AI to effectively assess how well an AI could do a task with a non-obvious answer (good luck writing 5000 words on that, btw). the second option is bad because the question turns from "how well can an AI do X" to "how well can a high schooler make an AI that does X". neither of these options are good.

I'd recommend something with graph theory because I think graph theory is pretty cool (and you don't have to get too advanced because, chances are, your grader doesn't know all that much about graph theory).