Posts
Angular - UNMET PEER DEPENDENCY apollo-client@1.9.0-0
Problem: Adding apollo GraphQL client to a Angular 4 application:
$ npm install apollo-client apollo-angular graphql-tag –save
UNMET PEER DEPENDENCY apollo-client@1.9.0-0
Solution: Update npm version
$ npm install -g npm
Posts
XSL - Transformer configuration exception error checking type expression funcall replace
Problem: javax.xml.transform.TransformerConfigurationException: Error checking type of the expression ‘funcall(replace,
Solution: Make sure to be using an updated xsl transalation engine like, for instance, saxon 9.
Maven dependency:
net.sf.saxon
Saxon-HE
9.8.0-3
Usage example:
public ProductPool process(FeedProduct feedProduct) throws Exception { File stylesheet = new File("src/main/resources/XMLToCSVStyle.xsl"); File xmlSource = new File(feedFileName); File csvTarget = new File(feedFileName.replace(".xml", ".csv")); TransformerFactory tFactory = TransformerFactory.newInstance(); // TransformerFactoryImpl tFactoryImpl = (TransformerFactoryImpl) tFactory; // net.sf.saxon.Configuration saxonConfig = tFactoryImpl.
Posts
Terraform, AWS - aws Instance Profile already exists error
Problem “aws Instance Profile already exists error”
$ terraform --version Terraform v0.9.8 Solution This is a know issue with terraform, see:
https://github.com/hashicorp/terraform/issues/3749
, read:
brikis98 commented on 4 Nov 2015
Update: it turns out that instance profiles don’t show up in the AWS console. Well, they do, but only attached to a role. If you delete the role, but not the policy, then there is no longer a way to see the policy in the console.
Posts
cannot locate the core snap: No such file or directory
Problem cannot locate the core snap: No such file or directory
Solution $ snap list Check for packages with “Notes” as broken $ snap remove $ sudo snap install Note: equals to “core” in this particular case.
Posts
Scala - cannot resolve symbol "toList"
Problem “cannot resolve symbol toList”
Solution import scala.collection.JavaConversions
Posts
Play Framework - @helper custom @input text field
Target <![CDATA[ <div class=“form-group”> <label class=“text-left col-lg-5 col-sm-6 control-label”>Emailadres contactpersoon</label> <div class=“col-lg-7 col-sm-6”> <input maxlength=“50” placeholder=“Emailadres” tabindex=“4” class=“form-control” id=“Emailadres” name=“Emailadres” type=“text”> </div> </div> ]]>
SyntaxHighlighter.highlight();
Solution Render the input text without the labels part of the play framework defaults by creating a file customfield.scala.html under app/view/helper:
<![CDATA[ @(elements: helper.FieldElements) @elements.input <span class=“errors”>@elements.errors.mkString(“, “)</span> <span class=“help”>@elements.infos.mkString(“, “)</span ]]>
SyntaxHighlighter.highlight();
Create a custom input text consctructor by adding a new file under app/view/helper: