<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| sudo yum update -y | |
| wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip | |
| unzip aws-sam-cli-linux-x86_64.zip -d sam-installation | |
| sudo ./sam-installation/install --update | |
| sam --version |
| ImageView imgview = (ImageView)findViewById(R.id.imageView_grayscale); | |
| imgview.setImageBitmap(bitmap); | |
| // Apply grayscale filter | |
| ColorMatrix matrix = new ColorMatrix(); | |
| matrix.setSaturation(0); | |
| ColorMatrixColorFilter filter = new ColorMatrixColorFilter(matrix); | |
| imgview.setColorFilter(filter); |
| package com.example.videointro; | |
| import java.io.IOException; | |
| import android.annotation.TargetApi; | |
| import android.content.Context; | |
| import android.content.res.AssetFileDescriptor; | |
| import android.media.MediaPlayer; | |
| import android.os.Build; | |
| import android.util.AttributeSet; |
| /* Use WP-CLI instead https://developer.wordpress.org/cli/commands/search-replace/ */ | |
| SET @oldsite='http://oldsite.com'; | |
| SET @newsite='http://newsite.com'; | |
| UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite); | |
| UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite); | |
| UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite); | |
| /* only uncomment next line if you want all your current posts to post to RSS again as new */ |
| UPDATE table_name SET bDeleted=0 WHERE name='xyz'; | |
| “You are using safe update mode and you tried to update a table without a WHERE clause that uses a KEY column.” | |
| SET SQL_SAFE_UPDATES=0; | |
| UPDATE table_name SET bDeleted=0 WHERE name='xyz'; | |
| SET SQL_SAFE_UPDATES=1; | |
| #http://www.xpertdeveloper.com/2011/10/mysql-safe-update/ |
| /** | |
| * Author: Ian Gallagher <[email protected]> | |
| * | |
| * This code utilizes jBCrypt, which you need installed to use. | |
| * jBCrypt: http://www.mindrot.org/projects/jBCrypt/ | |
| */ | |
| public class Password { | |
| // Define the BCrypt workload to use when generating password hashes. 10-31 is a valid value. | |
| private static int workload = 12; |
| CREATE TABLE IF NOT EXISTS `country` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `iso` char(2) NOT NULL, | |
| `name` varchar(80) NOT NULL, | |
| `nicename` varchar(80) NOT NULL, | |
| `iso3` char(3) DEFAULT NULL, | |
| `numcode` smallint(6) DEFAULT NULL, | |
| `phonecode` int(5) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |