pgadmin 4 - cannot use select all and undo - editor

I have used pgadmin 4 for months now.
but from about a month ago, suddenly on pgadmin 4 editor, I couldnt do ctrl + a (select all) and ctrl + z (undo).
I still can do other shortcut though like ctrl + c and ctrl + v.
this is not fatal, but very hindering in my work because I couldnt do select all and undo.
and this happened too on the new installation of pgadmin 4 on my vps server. So I think this is now a default behavior on pgadmin 4 ?
I can confirm that ctrl + a and ctrl + z worked on other tabs in the same browser, so it only happened on pgadmin 4.
is there anyway to make these shortcuts to work again ?
any setting that I might accidentally trigger maybe ?
thx.

Related

structure.sql file is modified on running migrations, things are added

After running 'rails db:migrate' my structure file is modified in a way that is different then my coworkers. for example:
CREATE SEQUENCE public.foo_bar_seq
+ AS integer --<< this is added.
START WITH 1
INCREMENT BY 1
NO MINVALUE
- WHERE sometime > ((('now'::text)::date - '3 mons'::interval) - '8 days'::interval))
+ WHERE sometime > ((CURRENT_DATE - '3 mons'::interval) - '8 days'::interval)) -- becomes this
I can't figure it out and is highly annoying as I have to commit by line changes to my structure file whenever I add a migration. We are all using the same version of psql 11.2.
sometimes different versions of postgresql running on your local machine changes the structure as well.

Meaning of Ynaqdhm?

I accidentally created a rails app that already exists (i.e. rails new existingapp)
The terminal says
Overwrite /Users/username/Desktop/existingapp/.gitignore? (enter "h" for help) [Ynaqdhm]
What does Ynaqdhm stand for? I guess they are the available options? (e.g. y: yes, n: no ?) I pressed a thinking it would mean abort, but the new app went ahead, so perhaps it meant all. Where can I find what this means
Y - yes, overwrite
n - no, do not overwrite
a - all, overwrite this and all others
q - quit, abort
d - diff, show the differences between the old and the new
h - help, show this help
m - merge, run merge tool

Auto Calculated Field on Firebird 1 with ZeosLib does not get calculated

Delphi XE2 + Zeos 7.0.3 Stable + Firebird 1.0
I am porting an old app from Delphi 5 + IBX and got this problem:
I have a table that one for the fields is auto calculated:
NUMERIC(18,2)
COMPUTED BY (( (VAL_ITENS +
VAL_SERVICO +
TAXAENTRADA +
VAL_COUVERT +
VAL_ESTACION +
VAL_CONSUM +
VAL_TAXA-DESCONTO_V) - ((VAL_ITENS*DESCONTO_P)/100)))
On IBX it is calculated fine. On ZeosLib it does not get calculated. Using the same database file and server.
Is there a way to force this calculation to happen? I have tried to update the field by program, however it is read only.
ANSWER: I had some problems with Zeos and Firebird, so I was thinking ALL the problems were related to Zeos, and this is not the case, the problem is that one of the fields were NULL and the result was getting calculated as NULL.

dbExpress and SQL Server 2008 slow

I recently migrated from Delphi 7 with SQL Server 2000 to Delphi 2010 with SQL Server 2008. I am using dbExpress.
After installing the new version I have found that the on sites that have a lot of data that system has become slow and unstable.
Can any one tell me if there is an issue between dbExpress and SQL Server 2008? Please help!!!!!
By performing a profiler trace you can see if you have any bottlenecks on SQL Server. Your default profiler trace (include TextData for RPC:Completed) should be good enough to start with.
The profiler trace can be analysed to see what takes the longest time. You can easily load the trace into a table and analyse it there. Note that when loaded into a table, the duration column is in microseconds. See the function fn_trace_gettable for a quicker way of loading a trace file into a table.
A common cause for poor performance, especially after a major change, is bad indexing.
Since SQL Server 2005 the optimiser stores within in-memory structures the indices it would like to have seen. These can be accessed with the dynamic management views sys.dm_db_missing_index_details, sys.dm_db_missing_index_groups and sys.dm_db_missing_index_groups_stats.
Here is a simple sample SQL to create your own missing index report, including the basic code to generate the missing index.
select
d.statement
, d.equality_columns
, d.inequality_columns
, d.included_columns
, s.user_seeks Seeks
, s.last_user_seek
, cast (s.avg_total_user_cost as decimal (9,2)) Cost
, s.avg_user_impact [%]
, 'CREATE INDEX MissingIndex_ ON ' + d.statement + '('
+ case when equality_columns IS NOT NULL then equality_columns else '' end
+ case when equality_columns IS NOT NULL AND inequality_columns IS NOT NULL then ', ' else '' end
+ case when inequality_columns IS NOT NULL then inequality_columns else '' end
+ ')'
+ case when included_columns IS NOT NULL then ' INCLUDE (' + included_columns + ')' else '' end
AS SQL
from sys.dm_db_missing_index_details d
INNER JOIN sys.dm_db_missing_index_groups g ON d.index_handle = g.index_handle
INNER JOIN sys.dm_db_missing_index_group_stats s ON g.index_group_handle = s.group_handle

Ctrl+- (Ctrl+Hyphen-Minus) as ShortCut Key?

It might seem natural to use Ctrl + +, Ctrl + -, and Ctrl + 0 as shortcuts for an application's zoom in, zoom out, and restore default zoom (typically 100 %) actions. Now, in Delphi, I am able to assign Ctrl + + and Ctrl + 0 as shortcuts. The former, though, requires that the plus sign of the main part of the keyboard is used; the plus sign of the numerical keypad cannot be used.
Problem arises, however, when I want to assign Ctrl + - as a shortcut. It simply doesn't work. If I assign "Ctrl+-" in the IDE, the value stored in the ShortCut property is 16495. If we subtract ssCtrl from this, we obtain 111. A work-around, one would believe, would be to assign ShortCut := 45 + ssCtrl, or, equivalently, ShortCut := Menus.ShortCut(45, [ssCtrl]), because ord('-') = 45. But that doesn't work.
However, I have found a working solution: ShortCut := 189 + ssCtrl. I choose 189 because that is the number I receive when I depress the "-" key and listen to the KeyDown event.
So, why am I not happy with this? Well, I am afraid that the constant 189 only is valid on Swedish keyboards. I have tried to read about this, and, as usual, the MSDN documentation is rather clear, but then, who knows how Delphi handles things.
The key code 189 is VK_OEM_MINUS in Windows.pas, so your solution isn't just for Swedes.
the correct to use menu shortcut on the numeric pad is
CtrlNum + for the [+]
CtrlNum - for the [-]
there is a space between Num + and Num -
I'm not sure why you're getting 16495 for Ctrl + -. When I add that shortcut to an action, it gives me 16573, and it does show up on the menu as Ctrl + -, and that shortcut does work.
However, you are correct that Menus.ShortCut(ord('-', [ssCtrl]) does not work. It gives the value 16429 and shows up on the menu as Ctrl + Ins, and Ctrl + Ins works as the shortcut.
Maybe this is a problem with Delphi 2009 and later since they added Unicode.

Resources