Show editor and output at the same time - octave

When using the octave-IDE, I can select between the command window and the editor, but not see both at the same time.
Therefore I can't immediatly see outputs from print statements in my scripts.
Is there a layout that shows both or am I doing something else wrong?

You can drag any window and reposition it within the layout.
E.g., if you switch to the Editor window and click and drag with your mouse the editor's titlebar (i.e. the bit that says 'Editor', right about the editor's File / View menu), you can then start dragging it to the right, and identify a new 'grid' cell to drop it in.
If you're not getting an appropriate gridpoint to drop it in, try resetting the layout and trying again (from Window tab, select "Reset Default Window Layout" at the bottom)

Related

How can I redesign octave

I downloaded octave and accidentally pressed some buttons which changed the design of the software to be more specific it doesn't look like how my professor at university was working with it . Could you please help me to fix it in order to look like how it did in the beginning?
I upload a picture of how it looks like now
OK, it appears you are only looking at the Editor window, which is normally docked with other windows like the command window, documentation, etc. It also appears to be maximized, hiding everything else.
In the upper right you see two icons, one that looms like an x, and one that looks like two overlapping squares (two windows). If you click the x, that should close the editor and you should be able to see the rest of your desktop including the rest of the octave GUI. If you cannot see octave anywhere, of you are in Windows try using ALT-Tab or clicking on Octave in the task bar to make the window visible.
In the main octave window there should be a "Reset Default Window Layout" menu item under the Window menu. That should restore everything to the default layout without having to go to the trouble of a full reinstall.
The following YouTube video doesn't exactly match your problem, but it does show how to change and restore the GUI layout:
https://youtu.be/0USOvYHLqSU

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.

Open a Vaadin `TabSheet` tab into a separate window

I want to give my users the option of opening a tab into its own window rather than merely switching the current window’s display to that tab. I have lots of tabs in my app, and the user often wants to study a few of those over long periods of time. For example, the user may watch charts being updated over time via Push.
Currently I add an "Open Window" button to a tab's layout. This opens a new browser window with the current tab’s layout.
Is there any other way to do this? A context-menu on the tab itself? User holding down a keyboard modifier (Control key, Command key, Option/Alt key) while clicking the tab?
Actually, there is one trick:
tabSheet.setCloseHandler((tabsheet, tabContent) -> {/** make new window **/});
Of course it works if tabSheet is closeable.
So if anybody click close button then you could do your own logic - in this example open new window.
But it could be misleading. To handle this problem you could replace close caption from x to any other more meaningful sign.
For example, look at Valo TabSheet demo. If you look in HTML code, than you notice something like this:
<span class="v-tabsheet-caption-close" aria-hidden="true" aria-disabled="true">×</span>
I think you are able to change this x using for example JavaScript.

Have a click anywhere on a web page open a select dropdown

I'm building a web page that will be viewed on mobile devices (Blackberry specifically). I have navigation drop down of sorts implemented as a <select> in the upper left corner of the page. Rather than require the user to click on the drop down directly I'd like to have so that the user can click/tap anywhere on the page the select drop down in the upper left corner opens. The page has no other links or clickable objects other than the select drop down in the upper left.
Is this even possible? From what I've found so far it seems that it's impossible to programmatically open a <select> drop down, but I figured I'd throw this specific case out there.
Since it's not possible to fake key presses with JavaScript (and rightfully so for security reasons), the closest thing is to change the size of the <select> element (change it from a drop down control to a list box control and back).
Demo, Code (pure JS, no library)
When the user selects an option by clicking (or tapping) it, the click event handler 'closes' the list box by setting its size back to 1, after which it converts back to a normal drop down control. I have only tested this in (non-mobile) Chrome, let me know if it works on Blackberry or not.
Edit:
I have created a small jQuery plugin that wraps behavior and configurability into a more comprehensible control. I have tested this on Safari Mobile on iOS 4 and it behaves just like a regular drop down does in that browser, except it can be opened programmatically.
Demo, Code (jQuery 1.7)
It works like this:
$("select").openable({ triggers: $("#trigger") });
Clicking on any trigger will open the selection UI.
I have also added a handler for the key up event to catch Enter, Esc and Space to 'close' the list box. This mimics the drop down control's selection mechanism on desktop browsers.
Of course, on a desktop browser this will change the layout of your page, as it's different from the native drop down control. You will have to come up with a CSS solution for that (something with position: absolute and z-index probably). But on iOS the selection UI isn't rendered on the page, so it's not a problem.
Again, haven't tested this plugin on BlackBerry...

captureVisibleTab of non-visible tab

Is it possible to take a screenshot of non-visible tab with chrome extension API?
chrome.tabs.captureVisibleTab takes only the selected tab on a specific window.
I could programmatically switch to the needed tab, take a screenshot and switch back, but since it's all async, there's a flicker while it happens.
Copy the page to a new window and move the window outside the screen then take a screenshot. Then the user will not notice that you have opened a new window because it is outside the screen.
Hope this helps you out.