The Cura 3D printing software is made by Ultimaker, the 3D printer manufacturer.
When you install the application create a profile for your printer. The user’s guide or data sheet of you printer should contain the necessary information to populate the form.
The save button is not enabled
The design is loaded into the program, but the Save button is not enabled.
When the design is larger than the maximum size your printer is able to print the Save button is grayed out.
Load a smaller design or reduce the size of the object.
The Monoprice Select Mini 3D printer is one of the best values on the market today. For $220 you get a 50-micron (0.05 mm) resolution 3D printer with PLA and ABS capabilities, and heated printing platform. The heated platform can reduce or eliminate the warping of the edges when the object cools down too quickly.
The printer comes with a mini SD card with a sample .gcopde file that prints a cat, and two 3D printing applications:
The manual recommends starting with Cura because it can import .stl and .obj 3D printer design files and able to generate the .gcode file that the printer needs to print from an SD card. For more information see Cura 3D Printing software
There are multiple reasons Chef can display the following error message
Undefined method or attribute `...' on `node'
There are multiple ways to reference an attribute in a Chef recipe:
node['ATTRIBUTE_NAME'] (the recommended way)
node[:ATTRIBUTE_NAME] ( use it only if the single or double quotes (' or ") would cause a problem in the expression)
To check if the attribute value is nil, use the following format:
if ( !node['ATTRIBUTE_NAME'].nil? )
If you use the node.ATTRIBUTE_NAME format and the value is nil Chef throws the above error message.
TeamCity is a Continuous Integration (CI) tool that enables software development teams to build and test their software. Sometimes the server is too busy to serve the users and the web user interface does not respond in time. TeamCity logs all actions in a log file so we can find the date and time of these timeouts:
- Remote into the TeamCity server,
- Open the server log file at D:\TeamCity\logs\teamcity-server.log
Scroll to the bottom of the file and search for “Request processing took too long” going up to find the last timeout event.
When you connect to a Windows computer from your Macintosh workstation the best remote desktop client is the Microsoft Remote Desktop app from the Apple Appstore.
To configure the remote desktop connection for the best experience
- Select Native resolution
- Scale content for Full screen mode
To be able to unselect the “Use all monitors checkbox”, uncheck it first, before you uncheck the “Start session in full screen” checkbox, otherwise, the last checkbox will be disabled.
If you use multiple displays, make sure you open the Microsoft Remote Desktop app on the display you want to use to view the remote computer, because the Native resolution setting will use the resolution of the display the app is running on at the moment you start the remote desktop connection.
There are times when a window opens on your Mac and the header is out of the screen or hiding behind the Macintosh Toolbar.
To move the entire window back to the screen try to find a point on the edge that instead of stretches the window, moves it. Four small regions on the sides can move the window up and down, another two small regions at the bottom can move the window sideways. The locations of the regions are very inconsistent, in one moment they work, a second later the region is at another location.
There are multiple reasons to restore a database from backup. One of them can be disaster recovery, the other is to bring the production database to the developer machine. In both cases, the computer already has the old version of the database. In the new version of Microsoft SQL Server Management Studio (MSSMS) we cannot find the “Close connections” checkbox anymore, so we have to make sure all connections are closed, and we specify a unique database file name to restore the database to.
- On the developer machine close all instances of Visual Studio to close the open database connections,
- Close all Microsoft SQL Server Management Studio tabs that are connected to the database,
- Move the backup file to the C:\Temp folder. Microsoft SQL Server Management Studio cannot see it in your Downloads folder.
- Make sure your user account does not automatically connect to the database you want to restore:
- In Security, Logins right click your username and select Properties,
- Set the Default database to master
- Disconnect from the database server:
- Right-click the database server and select Disconnect,
- Connect to the database engine, but do not open the database you want to restore:
- Import the database from production with the user interface:
- Right-click the database and select Tasks, Restore, Files and Filegroups…
- Select the From device radio button
- Click the … button to select the backup file
- In the Select backup devices window click the Add button to select the file
- Navigate to the C:\Temp folder and select the database backup file
- Click the OK button
- In the Select the backup sets section select the Restore check box in the file row, and click Options on the left side,
- On the Options tab select the Overwrite existing database (WITH REPLACE) check box, and click the … button to set the new unique database file name,
- Click OK to ignore the error message on the Locate Database Files – … message box
- Navigate to the current database file, click it, and append the date of the backup to the end of the file name to specify a unique data file name, and click OK,
- On the Restore Files and FileGroups window click the OK button to restore the database
Update the database to make it work at the new location
- On a development machine set the databases to Simple recovery mode, so the log files do not grow out of bound.
ALTER DATABASE my_database SET RECOVERY SIMPLE;
- Delete and recreate the users in the restored database, because those have different internal IDs if the database was migrated from a different server
spDropUser 'my_user', 'dbo'
DROP SCHEMA my_user
For some reason If I type DECLARE below, WordPress crashes. Please add the letter E to the end of the first word below.
DECLAR @user_name varchar(50)
SET @user_name = 'my_user'
USE my_database; EXEC sp_grantdbaccess @user_name; EXEC sp_addrolemember @rolename = 'db_datareader', @membername = @user_name; EXEC sp_addrolemember @rolename = 'db_datawriter', @membername = @user_name;
When you launch a server instance with Terraform, sometimes the error message does not contain the underlying cause. When the cloud provider cannot complete the request, many times Terraform displays a generic error message:
Error waiting for instance (i-...) to become ready: unexpected state 'terminated', wanted target 'running'
To find the root cause of the error in AWS
- Log into the AWS console and navigate to the EC2 section,
- Search for the instance by the instance Id,
- You can find the error message at the bottom of the Description tab
In our specific case, it was Client.VolumeLimitExceeded: Volume limit exceeded
We had to increase the volume limit to be able to launch more large EC2 instances.
When you need to upgrade an application on an AWS EC2 instance with minimum downtime, there are many options.
Upgrade an EC2 instance
- Stop the application, so users don’t make more changes,
- Create a backup of the database (snapshot of the RDS instance),
- Create a backup of the server (backup image of the EC2 instance),
- Upgrade the application on the server,
- Start the application,
- Test the new version of the application.
In case the upgrade fails, or the post-upgrade test fails
- Stop the application,
- If you use RightScale to launch servers:
- stop the RightLink service on the failed server to prevent RightScale auto terminating the restored server
(When RightScale finds a new identical server instance, it automatically shuts it down to avoid multiple instances with the same identifier.)
- Terminate the failed server
- Stop the failed server,
- Restore the database from the pre-upgrade backup with a new name,
- Restore the server instance from the pre-upgrade backup,
- Start the restored server,
- Change the database address in the application’s config file to point to the restored database,
- Start the application,
- Test the restored version of the application.
To make the backup image of the AWS EC2 instance
- Open the AWS console and navigate to EC2, Running instances
- Find the server instance you want to backup
- Right-click the row of the instance and select Image, Create Image
- Name the image and click the Create Image button
- Save the image Id from the popup
There are certain functions in RightScale scripts (RightScripts) that you cannot test without launching a new instance. To test your script:
- Edit the Head revision of the RightScale script and save it,
- Attach the Head revision of the RightScale script to the Head revision of the RightScale Server Template,
- In your Self Service CAT file reference revision 0 (zero) of the Server Template (Head revision),
( “server_template_revision” => “0”, )
- Upload the Self Service CAT file to Self Service, but do not publish it,
- Launch a server instance from Self Service using the RightScale Self-Service Designer page, not the Catalog.
If the script has some errors, modify the Head revision of the RightScale script and launch a new server instance using the RightScale Self-Service Designer page.
When the script works perfectly:
- Commit the RightScale script, creating a new RightScale script revision,
- Attach the committed revision of the RightScale script to the Server Template’s Head revision,
- Commit the Server Template, creating a new Server Template revision,
- Publish the new revision of the Server Template,
- Reference the new revision of the Server Template in your Self Service CAT file.