From f690dc53d292f8c5774cde4539c4f685807e338f Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Mon, 9 Feb 2015 21:03:21 -0600 Subject: [PATCH 01/14] Updated config --- _config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_config.yml b/_config.yml index e47f6415ecc70..289e761a74dab 100644 --- a/_config.yml +++ b/_config.yml @@ -3,10 +3,10 @@ # # Name of your site (displayed in the header) -name: Your Name +name: Top Shelf Cloud # Short bio or description (displayed in the header) -description: Web Developer from Somewhere +description: Developer # URL of your avatar or profile pic (you could use your GitHub profile pic) avatar: https://raw.githubusercontent.com/barryclark/jekyll-now/master/images/jekyll-logo.png @@ -21,12 +21,12 @@ footer-links: email: facebook: flickr: - github: barryclark/jekyll-now + github: rickschmidt instagram: - linkedin: + linkedin: https://www.linkedin.com/in/schmidtrick pinterest: rss: # just type anything here for a working RSS icon, make sure you set the "url" above! - twitter: jekyllrb + twitter: tweetsByRick stackoverflow: # your stackoverflow profile, e.g. "users/50476/bart-kiers" # Your disqus shortname, entering this will enable commenting on posts @@ -37,7 +37,7 @@ google_analytics: # Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co) # Used for Sitemap.xml and your RSS feed -url: +url: topshelfcloud.com # If you're hosting your site at a Project repository on GitHub pages # (http://yourusername.github.io/repository-name) From cf82e37bbea58b4ee42f39f22854ac8a5d103757 Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Mon, 9 Feb 2015 21:04:16 -0600 Subject: [PATCH 02/14] Updated config --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 289e761a74dab..1e842d745f7ae 100644 --- a/_config.yml +++ b/_config.yml @@ -23,7 +23,7 @@ footer-links: flickr: github: rickschmidt instagram: - linkedin: https://www.linkedin.com/in/schmidtrick + linkedin: linkedin.com/in/schmidtrick pinterest: rss: # just type anything here for a working RSS icon, make sure you set the "url" above! twitter: tweetsByRick From 5c1341632310c0c8a10daa1d531e90731faebe4b Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Mon, 9 Feb 2015 21:05:29 -0600 Subject: [PATCH 03/14] Updated config --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 1e842d745f7ae..74fc065048763 100644 --- a/_config.yml +++ b/_config.yml @@ -23,7 +23,7 @@ footer-links: flickr: github: rickschmidt instagram: - linkedin: linkedin.com/in/schmidtrick + linkedin: schmidtrick pinterest: rss: # just type anything here for a working RSS icon, make sure you set the "url" above! twitter: tweetsByRick From 2f5ed13a51c0d2ff2cb7e51b64f021700c7f7809 Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Mon, 9 Feb 2015 21:15:37 -0600 Subject: [PATCH 04/14] Updated config --- CNAME | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CNAME b/CNAME index 8b137891791fe..6b80646ba37f9 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ - +topshelfcloud.com From 697c79284976f2674d6c5414ea8fbb7d197c7274 Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Wed, 23 Nov 2016 13:00:36 -0600 Subject: [PATCH 05/14] updating url/cname --- CNAME | 2 +- _config.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CNAME b/CNAME index 6b80646ba37f9..f7ff051d0f31b 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -topshelfcloud.com +rickschmidt.org diff --git a/_config.yml b/_config.yml index 87842c675940b..fa3eca8c52cb1 100644 --- a/_config.yml +++ b/_config.yml @@ -26,7 +26,7 @@ footer-links: linkedin: schmidtrick pinterest: rss: # just type anything here for a working RSS icon, make sure you set the "url" above! - twitter: tweetsByRick + stackoverflow: # your stackoverflow profile, e.g. "users/50476/bart-kiers" youtube: # channel/ or user/ googleplus: # anything in your profile username that comes after plus.google.com/ @@ -41,7 +41,7 @@ google_analytics: # Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co) # Used for Sitemap.xml and your RSS feed -url: topshelfcloud.com +url: rickschmidt.org # If you're hosting your site at a Project repository on GitHub pages # (http://yourusername.github.io/repository-name) From 23c429a15cd9ce39dd162ab4b9ad85e2cebc257f Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Wed, 23 Nov 2016 14:17:24 -0600 Subject: [PATCH 06/14] Update config and highlighting --- _config.yml | 4 ++-- _sass/_highlights.scss | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index fa3eca8c52cb1..9114cc13f8a91 100644 --- a/_config.yml +++ b/_config.yml @@ -3,10 +3,10 @@ # # Name of your site (displayed in the header) -name: Top Shelf Cloud +name: Developer's Notebook # Short bio or description (displayed in the header) -description: Developer +description: Salesforce, Lightning, and others. # URL of your avatar or profile pic (you could use your GitHub profile pic) avatar: https://raw.githubusercontent.com/barryclark/jekyll-now/master/images/jekyll-logo.png diff --git a/_sass/_highlights.scss b/_sass/_highlights.scss index 57c7b72f07617..c4bc11843917e 100644 --- a/_sass/_highlights.scss +++ b/_sass/_highlights.scss @@ -12,6 +12,7 @@ code { font-family:'Bitstream Vera Sans Mono','Courier', monospace; + font-size:10pt; } .highlight .c { color: #586E75 } /* Comment */ @@ -81,4 +82,5 @@ code { .highlight .vc { color: #268BD2 } /* Name.Variable.Class */ .highlight .vg { color: #268BD2 } /* Name.Variable.Global */ .highlight .vi { color: #268BD2 } /* Name.Variable.Instance */ -.highlight .il { color: #2AA198 } /* Literal.Number.Integer.Long */ \ No newline at end of file +.highlight .il { color: #2AA198 } /* Literal.Number.Integer.Long */ +.highlight .lineno { color: #2AA198 } /* Lineno */ \ No newline at end of file From d6de5cb0912282932c48aec18e5d610c758817ae Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Wed, 23 Nov 2016 14:17:38 -0600 Subject: [PATCH 07/14] POST: Force https on heroku --- _posts/2016-11-20-force-https-on-heroku.md | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 _posts/2016-11-20-force-https-on-heroku.md diff --git a/_posts/2016-11-20-force-https-on-heroku.md b/_posts/2016-11-20-force-https-on-heroku.md new file mode 100644 index 0000000000000..e09226078b5ce --- /dev/null +++ b/_posts/2016-11-20-force-https-on-heroku.md @@ -0,0 +1,27 @@ +--- +layout: post +title: Force HTTPS on Heroku +--- + +If you have a Java application running on Heroku you may want to force secure https connections. In fact if you're Heroku app is connected a listing on the Salesforce AppExchange you may not accept regular http. The way heroku routes your requst makes it impossible to tell the origin using most conventional patterns in web frameworks. + +Heroku does send a `x-forwarded-proto` header that can be used to determine if the origin is http or https. + +Here is an example in Java that utilizes [Spark's Before Filter](http://sparkjava.com/documentation.html#filters) to intercept the header and then drop any non https requests. + + +{% highlight java linenos%} + + public static void main(String[] args) +{ + // Before-filters are evaluated before each request, and can read the request and read/modify the response. + before((request, response) -> { + //force to https + if(!"https".equalsIgnoreCase(request.headers("x-forwarded-proto"))){ + // if the x-forwared-proto header does not equal https throw exception + throw new UnsupportedOperationException("only http alllowd"); + } + }); +} + +{% endhighlight %} From fc962d244fa6f316fa930d18562c9fd3345c1ea2 Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Wed, 23 Nov 2016 14:18:23 -0600 Subject: [PATCH 08/14] POST: Force https on heroku --- _posts/2016-11-20-force-https-on-heroku.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_posts/2016-11-20-force-https-on-heroku.md b/_posts/2016-11-20-force-https-on-heroku.md index e09226078b5ce..999ea11f3c3ee 100644 --- a/_posts/2016-11-20-force-https-on-heroku.md +++ b/_posts/2016-11-20-force-https-on-heroku.md @@ -14,7 +14,8 @@ Here is an example in Java that utilizes [Spark's Before Filter](http://sparkjav public static void main(String[] args) { - // Before-filters are evaluated before each request, and can read the request and read/modify the response. + // Before-filters are evaluated before each request, and can read the + // request and read/modify the response. before((request, response) -> { //force to https if(!"https".equalsIgnoreCase(request.headers("x-forwarded-proto"))){ From 17d542c59e50a061fd06d7a9087a7fae4c95c763 Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Wed, 23 Nov 2016 14:49:32 -0600 Subject: [PATCH 09/14] Fixed typo in Force https post --- _posts/2016-11-20-force-https-on-heroku.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_posts/2016-11-20-force-https-on-heroku.md b/_posts/2016-11-20-force-https-on-heroku.md index 999ea11f3c3ee..92515549dbc84 100644 --- a/_posts/2016-11-20-force-https-on-heroku.md +++ b/_posts/2016-11-20-force-https-on-heroku.md @@ -3,7 +3,10 @@ layout: post title: Force HTTPS on Heroku --- -If you have a Java application running on Heroku you may want to force secure https connections. In fact if you're Heroku app is connected a listing on the Salesforce AppExchange you may not accept regular http. The way heroku routes your requst makes it impossible to tell the origin using most conventional patterns in web frameworks. +## Problem +If you have a Java application running on Heroku you may want to force secure https connections. In fact if your Heroku app is connected to a listing on the Salesforce AppExchange you may not accept regular http requests. The way heroku routes your requst makes it impossible to tell the origin using most conventional patterns in web frameworks. + +## Solution Heroku does send a `x-forwarded-proto` header that can be used to determine if the origin is http or https. From ff01fcf8ec23e886abdf650a77f084a39fb0a620 Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Mon, 16 Oct 2017 12:26:16 -0500 Subject: [PATCH 10/14] Updating sub title --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 9114cc13f8a91..797d01f89ec90 100644 --- a/_config.yml +++ b/_config.yml @@ -6,7 +6,7 @@ name: Developer's Notebook # Short bio or description (displayed in the header) -description: Salesforce, Lightning, and others. +description: Salesforce, Lightning, and more. # URL of your avatar or profile pic (you could use your GitHub profile pic) avatar: https://raw.githubusercontent.com/barryclark/jekyll-now/master/images/jekyll-logo.png From be02fbb3cbb8fe5c73a273313a537d320def425f Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Mon, 16 Oct 2017 13:42:22 -0500 Subject: [PATCH 11/14] Adding google analytics and Lightning Dashboard deployment post --- _config.yml | 2 +- .../2017-10-15-deploy-lightning-dashboards.md | 51 +++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 _posts/2017-10-15-deploy-lightning-dashboards.md diff --git a/_config.yml b/_config.yml index 797d01f89ec90..b7e627a87e80d 100644 --- a/_config.yml +++ b/_config.yml @@ -37,7 +37,7 @@ footer-links: disqus: # Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking -google_analytics: +google_analytics:UA-108193080-1 # Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co) # Used for Sitemap.xml and your RSS feed diff --git a/_posts/2017-10-15-deploy-lightning-dashboards.md b/_posts/2017-10-15-deploy-lightning-dashboards.md new file mode 100644 index 0000000000000..92c228a97ed57 --- /dev/null +++ b/_posts/2017-10-15-deploy-lightning-dashboards.md @@ -0,0 +1,51 @@ +--- +layout: post +title: Deploy Lightning Dashboards +--- + +## Problem +You've created a shiny new Lightning Dashboard and you want to deploy it. You tried adding what you thought was the folderName/DeveloperName to the Dashboard section of your package.xml but your retrieval is not working. + +## Solution + +In Winter 18 Lightning Dashboards have a non-obvious *DeveloperName*. Once you have this and the folderName you're good to go. There are two different ways to retrieve these values. + +#### Option 1 - SOQL +You can retrieve the Dasbhoard DeveloperName in SOQL. + +{% highlight SQL linenos%} + + [SELECT ID, Title, DeveloperName FROM Dashboard] + +{% endhighlight %} + +Then you can also retrieve the folder's developername through SOQL. + +{% highlight SQL linenos%} + + [SELECT ID, Name, DeveloperName FROM Folder] + +{% endhighlight %} + + +#### Option 2 - REST API +Note that the Metadata API does not return info on Lightning Dashboards as of winter18. They are accessible through the REST API. Workbench is one way to explore the REST API. The DeveloperName for the dashboard can be accessed at `/services/data/v41.0/analytics/dashboards/{Id of dashboard}/describe` + +i.e. [Get Dashboard Results](https://developer.salesforce.com/docs/atlas.en-us.api_analytics.meta/api_analytics/analytics_api_dashboard_get_results.htm#) + + + + +Your folder name will look familiar. Your Lightning Dashoboard will not. You'll have to put both of them together in your package.xml. + +{% highlight xml linenos%} + + ----- + + My_Dashboards/WRQDotewHIuojpuybuYTOjWnFQanUg + Dashboard + + + ----- + +{% endhighlight %} From 42ebb7512d4df57f12f3f6efaf641b551cb9f568 Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Mon, 16 Oct 2017 13:43:41 -0500 Subject: [PATCH 12/14] Fixing typo in config --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index b7e627a87e80d..c8cd56cb06e2f 100644 --- a/_config.yml +++ b/_config.yml @@ -37,7 +37,7 @@ footer-links: disqus: # Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking -google_analytics:UA-108193080-1 +google_analytics: UA-108193080-1 # Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co) # Used for Sitemap.xml and your RSS feed From 6381f205e89662118a8e358d6c1675a4f027d80d Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Mon, 16 Oct 2017 14:56:46 -0500 Subject: [PATCH 13/14] Updating config to use full site url --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index c8cd56cb06e2f..a243af8705041 100644 --- a/_config.yml +++ b/_config.yml @@ -41,7 +41,7 @@ google_analytics: UA-108193080-1 # Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co) # Used for Sitemap.xml and your RSS feed -url: rickschmidt.org +url: http://rickschmidt.org # If you're hosting your site at a Project repository on GitHub pages # (http://yourusername.github.io/repository-name) From c9f388dc606f672600756a8984e57332aa5f8c65 Mon Sep 17 00:00:00 2001 From: Rick Schmidt Date: Wed, 18 Oct 2017 11:25:45 -0500 Subject: [PATCH 14/14] updating tracking --- _config.yml | 4 +++- _includes/analytics.html | 21 ++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/_config.yml b/_config.yml index a243af8705041..384e4af99ab29 100644 --- a/_config.yml +++ b/_config.yml @@ -15,6 +15,8 @@ avatar: https://raw.githubusercontent.com/barryclark/jekyll-now/master/images/je # Flags below are optional # +safe: true + # Includes an icon in the footer for each username you enter footer-links: dribbble: @@ -37,7 +39,7 @@ footer-links: disqus: # Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking -google_analytics: UA-108193080-1 +google_analytics: 'UA-108193080-1' # Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co) # Used for Sitemap.xml and your RSS feed diff --git a/_includes/analytics.html b/_includes/analytics.html index 5f346aee620c1..11c9c865fdabf 100644 --- a/_includes/analytics.html +++ b/_includes/analytics.html @@ -1,16 +1,15 @@ {% if site.google_analytics %} - + + - ga('create', '{{ site.google_analytics }}', 'auto'); - ga('send', 'pageview', { - 'page': '{{ site.baseurl }}{{ page.url }}', - 'title': '{{ page.title | replace: "'", "\\'" }}' - }); - {% endif %}