Responsive Ad Area

Large Category

Http to https redirection using CloudFront AWS

Http to https redirection using CloudFront Follow below steps: Login into your aws console and search CloudFront Go to CloudFront: Create Distribution(please select Web distribution) Under Origin Settings : Select the Origin Domain Name (you can assign the IP is instance/You can opt the ELB/You can select the S3 bucket) Under Default Cache Behavior Settings : Select Viewer Protocol Policy: Redirect HTTP to HTTPS Under Object Caching: opt customize (Remain default setting in Minimum TTL , Maximum TTL and Default TTL) Forward Cookies : All Query String Forwarding and Caching : All Distribution Settings : Select Price Class: (Use All Edge Locations (Best Performance)). Alternate Domain Names (CNAMEs)s: add all domain names that you want to be directed at this Distribution SSL Certificate : Un...

use selenium cookies to download protected content with requests

the image come from my logged facebook account, for example this url need logged facebook session to access it, when i have logged account session, the url will be redirected to this link (that can be accessed from any where) so my facebook account is logged from selenium, and i want use selenium cookies to download the image from requests use selenium cookies to download protected content with requests use selenium cookies to download protected content with requests test {$excerpt:n}

Getting error while writing RDD data to avro file

Below is my RDD val title = movies.map(f=>(f.toString().split("::")(0).replaceAll("[", "")trim(),f.toString().split("::")(1))) //movieID,MovieName println(title.toDebugString) val view = ratings.map(f=>(f.toString().split("::")(1).trim(),1)).reduceByKey(_+_).sortBy(f=>f._2, false).take(10).toSeq val viewRDD = sc.parallelize(view) val join = title.join(viewRDD).map(f=>(f._2._1,f._2._2)) val dataRdd = join.map(row=>(row._1,row._2)) I am trying to save the dataRdd in avro format for which I am using saveAsNewAPIHadoopFile method. Below is how I am saving the RDD: dataRdd.saveAsNewAPIHadoopFile("E:ml-1mml-1mmovieAvro2",classOf[AvroKey[_]], classOf[AvroValue[_]], classOf[AvroKeyValueOutputFormat[_, _]], sc.hadoopConfiguration) When I run the program I am getting below error: java...

Error occured during local report processing valid values are between ‘0’ and ‘1’

Trying to render an SSRS report that had a multi-select parameter option and multiple row groups within a single tablix. The report would fail inconsistently with the error message above. Entire error message was, “An error occured during local report processing. The value ‘3’ is invalid. Valid values are between ‘0’ and ‘1’. This error message is not obvious. Error occured during local report processing valid values are between ‘0’ and ‘1’ Error occured during local report processing valid values are between ‘0’ and ‘1’ test {$excerpt:n}

Error 403 during POST on SharePoint 2013 REST API [on premise]

I am struggling to understand why am I getting Error 403 while creating a list item using httpclient. I have full control on the list and yet I receive 403 and its very frustrating. I have gone through so many solution but none of them worked for me. If I create HTML page with ajax calls to the list , I am able to create list items from the browser but the same code written in c# throws error 403. Here is my C# test code which throws 403 with response as {"error":{"code":"-2130575251, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The security validation for this page is invalid and might be corrupted. Please use your web browser's Back button to try your operation again."}}} NetworkCredential cred = new NetworkCredential(username, password); HttpClient client = new H...

WMS GetFeatureinfo for featurelayers

I’m looking the way how to use browser to query all WMS features( with all attributes the feature have) by just defining the layer parameter or what parameters I need to add to get desired result? Request all features WMS is serving, output format must be txt, gml or xml. Something like this…wms?reguest=GetFeatureInfo&layers=my_layer&info_format=gml&select_all_features. WMS GetFeatureinfo for featurelayers WMS GetFeatureinfo for featurelayers test {$excerpt:n}

Skip to toolbar