How do I add a language to a notebook in Beaker? - beaker-notebook

I'd like to add a language like to my Beaker notebook. How to I know which languages are available to add, and how do I add them?

Use the Notebook menu to open the Language Manager. There are buttons for each possible language. Each button has a status indicator: gray means inactive, green means active, and yellow means it is in progress of starting up. Click on the language you want to add (one that is gray). It should turn yellow, and after a while, depending on how fast your computer is, it should go green. Close the manager, and then when you open the language menu on any cell, you can set it to the new language and run it.

Related

How to jump between bookmarks in PL/SQL Developer

I'm analysing a package that's quite big and as I'm going down, I've selected a few lines that I deem important, every time I click on the line number, PL/SQL Developer marks the line with a blue number starting from zero as the image show. I know there's a hotkey to jump between them so that I don't have to drag the wheelbar and find them on my own. Does anyone know how to do that?
Example
You can quickly move between PL/SQL Developer bookmarks by pressing CTRL+Q and then the number of the bookmark.
If you want to change that keyboard mapping, go to Configure-->Preferences and modify the "Editor: Goto Bookmark" value.

How to activate the main window of PhpStorm after clicking its floating Find in Path window

Let me explain the situation.
I need to copy a lot of instances of a text inside a project of PhpStorm. So, I perform a 'Find in Path' action and a floating window appears with the matching results.
Now my problem is that after copying once from the floating window, if I click on another app window, then PhpStorm's main window/PhpStorm itself go to background, then if I want to copy text from the floating window again, I can not use any keyboard shortcut, I can not modify any line in the floating window because PhpStorm stays in background/inactive-mode even if I click on its floating window.
If I click anywhere in the PhpStorm except the main top-white bar of PhpStorm, then the floating window disappear, which causes me to perform the search again.
It is reducing my productivity a lot. Is there any way to make the PhpStorm active or bring it foreground when clicking its floated search window?
Please see the screenshot:
Is there any way to make the PhpStorm active or bring it foreground when clicking its floated search window?
You are approaching the problem from the a bit wrong angle. There is a better solution than fighting the focus/foreground state.
There is a button in the bottom right corner of "Find in Path" window ("Open in Find" it says on your screenshot) -- click it and it will open search results in traditional / standard Search Results tool window (with grouping by folders/files, preview area etc)... so no floating and no auto closing on clicking somewhere.
P.S. Lots of people forgetting that results shown in this new "Find in Path" dialog/popup is still just a preview (TOP 100 matches only). Super functional (you can edit and stuff) but still preview only. This mainly applies to those who remember the way how this dialog (back then it was dialog window) looked before redesign (now it's more of a popup).
Because of the way how it is all presented now (results occupy majority of the popup space) people somehow automatically forgetting about "traditional" way of searching (clicking actual "Find" button to get search working) and focusing only on what they see on a screen right now.
This new "Find in Path" dialog/popup adds a lot of convenience for sure (you typed search text and results are straight away before your eyes). At the same time quite often you may see/hear "it does not show me all results" frustrated comments (as it shows top 100 .. and a single file may have 100+ hits in some cases) and alike. JetBrains needs to improve UX a bit in this area for sure.

Game show buzzer screens

I'm doing a training class right now and one of the games I plan on doing is a Jeopardy style of Q & A. The problem I'm trying to figure out is the buzzer. My idea is to use the projector as the question board I control. The trainees would go to an HTML page with nothing more than a single button. They would turn their monitors around to face me up front. As soon as I read the question they would click the button and it would change their screens the color red.
The button and background color change is easy enough, I got that. There are two problems I'm facing: 1) I need it so that they can't click the button until I'm done reading the question - this one isn't as important, I can just make up a rule. 2) Only the fastest person will have a red screen. To show me who clicked first. The others' buttons will be disabled.
I just have no idea how to even Google these two things. Like: "Disable button for other users"...? Or maybe, "only one click"...?
Any direction to search is appreciated. Eventually, I'd like to add other aspects to like the presenter could click an "incorrect button" then it would clear the screen and enable all the buttons again, for the answer steal.
You can do it with modern WebSocket or applications interact via TCP. However, WebSocket may be overkill for the simple application with a few teams. I faced the same problem before and developed a simple solution with PHP using Flock to write into a shared file on disk. Only request from one team gets the chance to write into that file. Stick to not to use WebSocket, the web page on client site does some polling to receive the "restart" signal from the server for the new question/round. It can run in LAN, different team gets different site, i.e. http://[server-ip]/team1, http://[server-ip]/team2.
You can have control over the round: allow them to press button/ restart, start a new question in http://[server-ip]/admin.
Further improvement can be made in several ways to facilitate your needs (i.e. assign team name, register team, use database instead of a flock file). The code is available here : https://github.com/minhhn2910/buzzergameshow

How do I remove a language from a Beaker notebook?

I've removed all the cells that refer to a certain language, and now I want to remove it from my notebook entirely. How do I do that?
Start with the Notebook menu, and open the Language Manager and click the button for the language you want to remove. The indicator would be green before you click it. The buttons are actually toggles. Make sure you have first removed all cells from the notebook that use that language. When the language is successfully removed, the indicator will go gray.

Standards for System Tray applications

Are there any standards out there for how applications that have a system tray icon should behave?
I recently wrote an application that sits in the system tray most of it's life. I handed it to a friend, and her first instinct was to double click the icon to get at the main window (which worked). But this got me thinking. In .NET atleast, there are all sorts of different events and ways of attaching things to your system tray icon (click [left/right], double click [left/right], context menus, off the top of my head). Just thinking about it, I've come up with applications with a right click context menu (most), left click brings up the same context menu (Live Messenger), a (different) left click context menu (Daemon Tools), left click opens the main window (alot of the Windows notifications), left double click opens the main window (mIRC, lots of other applications). I've yet to discover an application that uses right double click, though I'm sure it's possible...
Are there any usability guidelines or standards as to how your application should behave under any of these particular situations?
You may want to read Those notification icons, with their clicks, double-clicks, right-clicks... what's up with that? from Raymond Chen's blog The Old New Thing.
He even includes a link to Guidelines for the Notification Area (more commonly known as the "system tray").
Unfortunately it's hard to have a standard when every one is different.
Double click to open and right click to have some sort of context menu are the ways I expect it to behave. Having an Exit command as the bottom icon on the context menu is good whenever it makes sense as well.