How to remove the "autocomlete" option from the top of the suggestions list? - fig

Using Fig on my work macbook, and I'm trying to figure out how to disable one specific feature of the application. 90% of the time when I hit Tab, fig just copies the selected command into the terminal. Then I hit Enter to execute the command.
The problem is, in some specific situations Fig inserts an "execute command" at the top of the list.
Note the red > symbol, meaning that hitting tab here will RUN that command. I foolishly ran a query similar to the above image the other day, and without thinking I typed rm -rf <my file> and hit tab to see it in the terminal to check it over. But this option was present in the suggestions, so hitting Tab executed the command instead, and my file was gone forever.
Totally my fault, I wasn't being careful. BUT, I'd like to remove this option from my suggestions list for my own safety in the future. Is there a way to turn this off? I've scoured the settings and looked around online, but I can't find anything.

Related

MS Access 2016 Enable "Edit Hyperlink..." command in custom shortcut menu for .accde file

As a caveat to this question I am a beginner Access 2016 programmer of 2 months, but believe I have some intermediate to relatively advanced knowledge of the software as it's just about all I've been doing at work the last two months. I also realize now that I'm asking for trouble using hyperlinked fields as most people believe they're more hassle than they're worth (at least in older Access versions, it's surprisingly a little difficult to find Access 2016 information and opinions in 2018.. at least for me cause I'm apparently incapable of using "the google machine" properly), but I'm in a little too deep now.
At the moment I am trying to deploy a new database system but have run into some issues when testing. After turning my .accdb file into a .accde file the command to "Edit Hyperlink..." vanishes entirely from the shortcut menu when right-clicking. My employer would really like this functionality to be present in the final product, as he wants to display the file name but link to the file location in a shared network drive. I also need document control at his small company to be able to edit the hyperlinks but don't want them using an .accdb file that they could inadvertently make design changes to, or god knows what.
I have attempted to make a custom shortcut menu using this VBA module, which is executed by an AutoExec Macro, running upon opening the database.
Public Function CreateCustomRightClickMenu()
Const msoBarPopup As Long = 5, msoControlButton As Long = 1
' Create a shortcut menu named "CustomRightClickMenu"
With Application.CommandBars
With .Add(name:="CustomRightClickMenu", Position:=msoBarPopup, MenuBar:=False, Temporary:=True)
' Add cut command
.Controls.Add type:=msoControlButton, id:=21
' Add copy command
.Controls.Add type:=msoControlButton, id:=19
' Add paste command
.Controls.Add type:=msoControlButton, id:=22
' Add hyperlink command.
.Controls.Add type:=msoControlButton, id:=1576
' Add edit hyperlink command.
.Controls.Add type:=msoControlButton, id:=1577
End With
End With
End Function
I can get this function to work just fine in the .accde file, but the "Edit Hyperlink..." command is still unusable - it's greyed out. Is there some way to override this?
The only information I could find as to why this is the case is because a compiled .accde file restricts all design tools. I thought this explanation was rather... lackluster. Editing hyperlinks constitutes as a design tool? How would a hyperlinked field ever be advantageous then, in an automated system? And by automated I mean one that can run freely without a DBA sitting in some back-end file all day and updating the file's address lying beneath the display text. I will be on the opposite end of the country in a month and a half and will not be able to dip my toes in the back-end anymore so to speak.
Additionally, I saw many solutions for this problem in earlier versions of Access, but not in 2016. So my question is, what is it about the 2016 version in particular that is making this so difficult?
Or, can this be done at all?
Alternatively I've thought about using attachments and was assured that they don't bloat your system because Access will compress the files. After testing this I'm relatively sure it's not the case. I attached one 900kb .pdf file to 3 separate records in a database copy, and the .accdb file's size increased ~2700kb, as is to be expected. Compact and Repair had no effect on the final file size (3,974kb). 900kb files weren't realistic for my system though, and if my math is correct I should be able to store about 11,000-13,000 records in a 2GB Access database if I have 3 50kb files per record, subtracting 1000-2000 to account for the space of my access objects. Is this a realistic calculation, and what problems will I run into if I try and go this route?
EDIT: After briefly glancing over this webpage yesterday:
https://codekabinett.com/rdumps.php?Lang=2&targetDoc=access-hyperlink-data-type
I thought about it some more and realized I could just have our Doc control enter hyperlinks in the format "DisplayText#FileFullPathway#" ignoring sub address and scroll tip text.
And so far so good.
Then something interesting happened. I sent out a beta .accde file for DC to play with today, and the Edit Hyperlink... tool was magically available when I was getting her to test something unrelated (yesterday on her same machine the command either wouldn't be there, or if I had the CustomMenu set-up then the command was greyed out). I had deleted my custom menu from the entire database, no VBA module exists for anything menu related and the form's ShortcutMenu property is now blank. You'd think I'd be relieved but this is bothering me even more now - if I didn't enable it who did, and how come it wasn't there yesterday prior to having wasted all this time coming up with a workaround? Maybe I'm supposed to have that menu command and it was just bugged yesterday, but my travels through the Googlesphere yesterday suggest otherwise. This is driving me bonkers. For now my problem is resolved but I'd still like to know what's happening here.

Search and Replace in PHPMyAdmin database for Wordpress (absolute beginner)

I apologise in advance for I know that this question has been asked several times already, but being a complete beginner at wordpress coding and database handling, I am still not sure about what those answers really meant.
So having just coded a website and converted it into WordPress, I now find myself having to change all of the localhost strings to the accurate ones, but with hundreds to go through, I just wanted to know if any of you were able to recommend a program or technique within PHPMyAdmin (that I may not be aware of) to avoid having to change them one at a time.
Thank you all in advance for your time and attention.
First, let me start by saying this is very dangerous, especially for an absolute beginner such as yourself. Please use this with extreme caution as you can potentially bring the entire site down by replacing values in your database with the wrong data.
With that said, there is a script specifically designed for doing search and replace on the WordPress MySQL database. http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Here's the direct download link: https://github.com/interconnectit/Search-Replace-DB/archive/master.zip
You will extract the folder from the donwloaded zip, then upload the folder to the root of your WordPress install. Once its uploaded just reference the folder in the browser. I always rename the folder to sr (shorthand for search and replace) so its easier to write out the full URL. So as an example, once its in the root of the WordPress install you'd access it like www.example.com/sr/.
After you access the script in the browser, you'll have a GUI with two boxes at the top. The first you'll enter the string you're searching for, and the replace string goes in the second box. Your MySQL details/login should already be populated. After entering your S&R terms scroll down and click "Update Details", then do the "Dry Run" option first. It'll run through the database and show you the values that will be changed. If you are satisfied with the changes, click "Live Run".
Depending on the database size it'll take just a short time to complete. This is the easiest way to S&R the WordPress database.
Important: for security reasons you'll want to delete this folder from your server after you have finished using it. You don't want a database S&R utility just lingering around for no reason.
Another possible option if you're familiar with WP-CLI is to use the wp search-replace command: https://developer.wordpress.org/cli/commands/search-replace/ This would be done through Terminal or another command line utility.
In phpMyAdmin open your table, choose Search > Find and replace. Then specify in which column you want to find and replace, and the original and replacement texts.
Without any doubt I would use http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
This tool is especially designed for the situation you describe.
You upload the code to your server and then enter the "find" and "replace"
You can then do a dry run and the system will show you all the replaces that will be made across every single table in your Wordpress database.
Once you're happy then you can do a live run and the changes are made.
I have used this on probably one hundred Wordpress sites and it works a charm.

Websites running very slow

we have a vserver problem that started all of the sudden yesterday.
If you go to this Website:
http://www.rightsfreeradio.de
You will notice that it needs ages to load.
This happends to all websites we have running on the vserver.
I was asking the Provider if there is any problem with their connections, but they dont have any problems.
If I log in to FTP its running fast as usual
only all web based applications and websites are running very slow.
Running "top" shows that mysql takes like 70%+ on the CPU, but Iam not sure if thats normal or not.
Do you have any ideas what could be wrong with the server?
What programming standards are you using. I opened link but did not open it.
Either there may issue with server. Or another cas is:
Check any js, css file taking time to load
Put unncessary imported files at the end of body tag
On load are you calling any function which may be prone to deadlock getting blocked?
Make sure to use HTML Validator to correct your HTML etc.
Also make sure all scripts are working fine or to debug. Take off all the script files imported and go from there.
Link doesn't open at all.
first, I suggest you to restart all service on your server and then:
check mysql error log as you say above
tail -f /var/log/mysql.log
and then, check your databases
mysqlcheck -Aor
and you can follow this link bellow
Show top five CPU consuming processes with ps

How to execute an sql file containing statements for multiple databases in online mode?

Recently, one of my requirements have been to modify multiple dbs at one go and i have been using SOURCE command to execute the file (.sql file)
However, i wanted to know if there is an online way to do it because that way i can use nohup to let it run even if i log out or any network issues come along and my session ends. By online mode, i meant not having to go to mysql command line ( mysql> )
Wanted to know if this is possible at all? Please note that SQL file is targeted to modify multiple DBs at one go.
I don't know about an "online mode", but if you want to let your mysql run even if you log out if a network issue come along, I suggest you use GNU screen. If your session ends, anything runned inside screen will continue to run in the background, and you'll be able to reattach your session with screen -r when you'll signin again.

Access Application Changes not Working

I have an access application that displays data from our database and does some operations on that data. My problem is that I did not create this app, and when I try to add command buttons to a form, those buttons are not visible when deployed. Any idea what might cause this?
To summarize: I add a button with VBA behind it, it works, but when I copy the App to another computer and run it, all of my changes are not visible.
Any suggestions would be greatly appreciated.
I've had an issue where I was using a short cut to launch the Access application. However, when I replaced the MDB, I deleted the original MDB. This only put it in the trash. The shortcut automatically updated to point at the file in the trash. It worked that way for weeks until I found it (under similar circumstances).
Try emptying your trash. And/Or double check the shortcut.