Cannot use object of type Product as array prestashop 1.7

Smarty
i have problem, when i change the declination on my product page on prestashop 1.7.1.1 when i looked for the error it look this error image any one c...
1 year ago

Updating theme.yml in PrestaShop

Smarty
So I'm trying to modify the layout of theme.yml in a PrestaShop theme. I comment out the following: hooks: modules_to_hook: displayFooter...
1 year ago

how to assign a function's expression to a variable in smarty

Smarty
say I've got a text like this: {l s='Total'} 'l' is a function. The string 'Total' in fact will be a translation: 'l' will output that. I would nee...
1 year ago

How to align checkbox and label on prestashop

Smarty
Hi, I'm working on a prestashop module, and I want to align a checkbox with a label in a smarty template. I try this for exemple : <input id="C...
1 year ago

smarty code - access variables inside {php} tag

Smarty
I know we should avoid the {php} tag inside any template engine, still, let's assume that it's the only way on this case. Considering this, I would l...
1 year ago

Scala RDD count by range

Scala
I need to "extract" some data contained in an Iterable[MyObject] (it was a RDD[MyObject] before a groupBy). My initial RDD[MyObject] : |-----------|...
1 year ago

How to set thread number for the parallel collections?

Scala
I can run scala's foreach in parallel like that: val N = 100 (0 until N).par.foreach(i => { // do something }) But how can I set thread numbe...
1 year ago

Smarty Section Making the selected Link Bold

Smarty
How can I make the selected link from the List below, bold, that you see you are on Page ex. 3 or 5 With this code, If you click on a Link you don't...
1 year ago

AWS Credentials for lambda when working with scala not working

Scala
AWS lambda function does not work when attempting to work with credentials provided using the DefaultCredentialProvider. I need to pass the credentia...
1 year ago

Spark SQL Group By Consecutive Sequence of Integers

Scala
So I have a table which I want to create events from it. My user is watching a video which is defined as a list of sub_parts, with bytes downloaded fo...
1 year ago

How to aggregate data in Spark using Scala?

Scala
I have a data set test1.txt. It contain data like below 2::1::3 1::1::2 1::2::2 2::1::5 2::1::4 3::1::2 3::1::1 3::2::2 I have created data-frame u...
1 year ago

Idiomatic way of If none return false?

Scala
The java library I am dealing with, returns null on errors. Is there an Idiomatic way of saying: val x:Option[T] if(x.isEmpty) false else x.get.is...
1 year ago

Map over CompactBuffer in an rdd

Scala
I have an RDD which was groupByKey as below, (1, CompactBuffer(2.0, 3.0, 4.0)), (2, CompactBuffer(1.0, -1.0, -2.0)) And I wish to mapValues into (1...
1 year ago

Spark SQL fails because "Constant pool has grown past JVM limit of 0xFFFF"

Scala
I am running this code on EMR 4.6.0 + Spark 1.6.1 : val sqlContext = SQLContext.getOrCreate(sc) val inputRDD = sqlContext.read.json(input) try { ...
1 year ago

Blocking a REST API response until another API is called

reST (reStructuredText)
I have following scenario: There are two API calls in an application: api1 and api2. api1 is invoked multiple times from multiple users. I want to b...
1 year ago

Compress a Given Text of String in Scala

Scala
I have been trying to compress a String. Given a String like this: AAABBCAADEEFF, I would need to compress it like 3A2B1C2A1D2E2F I was able to come...
1 year ago

Angular 1.0.7: Https api call in $resource

reST (reStructuredText)
I have an Angular1.0.7 webapp that is making calls to an rails API listening in an specific port. We want to migrate to HTTPS protocol for security re...
1 year ago

How to Sum a part of a list in RDD

Scala
I have an RDD, and I would like to sum a part of the list. (key, element2 + element3) (1, List(2.0, 3.0, 4.0, 5.0)), (2, List(1.0, -1.0, -2.0, -3.0)...
1 year ago

Spring MVC - How can I use different timeouts for my resttemplates?

reST (reStructuredText)
I am using Spring MVC with Spring 3.1. I have a web application that uses many REST services. One of these REST services takes up to an hour to resp...
1 year ago

Is there any concise way to convert the type from `Int` to `Double` after applying `splitAt` to a `List`?

Scala
My input is like this: 1 1 1 1 1 44 33 and the result I would like to get is like this: val listA = List(1, 1, 1, 1, 1) val listB = List(44.0, 33....
1 year ago

My POST request on TIdHttpServer contains strange characters, json string

reST (reStructuredText)
I have an issue with the JSON string I get when receiving a POST request. Currently this is the way I'm reading it: procedure TForm1.IdHTTPServer1Co...
1 year ago

issue while creating an endpoint in Flask using Python

reST (reStructuredText)
I'm trying to write a microservice for a RESTful web service. I've a database created in 'Postgresql' and currently using Flask and psycopg2 (for conv...
1 year ago

Why do I need to make deploy of restful web service to get the latest updates from the database

reST (reStructuredText)
I am developing a java restful webservice using netbeans and jersey api. when I update data in database the findall method didn't get the latest chang...
1 year ago

How does pass-by-reference work?

Pascal
Pass-by-reference is easy to visualize with languages that use pointers mostly. But in Pascal, I can hardly see how the pointers pass around subroutin...
1 year ago

Hybris Create Web Service with Intellij

reST (reStructuredText)
I'm really new in Hybris. I have Hybris commerce 6.4 and im working with Intellij. Can anybody tell me how to create a web service rest? I need th...
1 year ago