Failed to fetch mirrors when updating Firefox

Trying to install updates for Firefox and this is what I’m getting:

Err:1 http://mirrors.evowise.com/linuxmint/packages tessa/upstream amd64 firefox amd64 66.0.4+linuxmint1+tessa                                                             404  Not Found [IP: 104.19.138.75 80] Err:2 http://mirrors.evowise.com/linuxmint/packages tessa/upstream amd64 firefox-locale-en amd64 66.0.4+linuxmint1+tessa                                                   404  Not Found [IP: 104.19.138.75 80] E: Failed to fetch http://mirrors.evowise.com/linuxmint/packages/pool/upstream/f/firefox/firefox_66.0.4+linuxmint1+tessa_amd64.deb  404  Not Found [IP: 104.19.138.75 80] E: Failed to fetch http://mirrors.evowise.com/linuxmint/packages/pool/upstream/f/firefox/firefox-locale-en_66.0.4+linuxmint1+tessa_amd64.deb  404  Not Found [IP: 104.19.138.75 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

Doing apt-get update --fix-missing still doesn’t do anything. I also tried apt clean to no avail.

Conditional Reference field value not passing in Rules via Fetch

I am trying to structure a rule that updates a new entityform submission conditionally with extra info from a different entityform type.

I currently have my rule set as follows:

Event:

After creating new entityform submission [entityform]

Conditions:

[entityform] is of type = submission Data Comparison: [entityform].type = EntityformType Data Comparison: boolean field = true  Entity has Field = ReferenceField  

The boolean field sets the condition to fetch additional information.

ReferenceField is an entity reference field created in Views, which references [Entityform2] by Submission ID.

Actions:

Fetch by Property = [Entityform2] Type Loop Fetch by ID = [Entityform2] Submission ID Component  

Component has variables that need [EntityForm] and [EntityForm2.ID] to operate. It performs the necessary rewrites on [EntityForm].

Of course the problem here is that the two datasets aren’t linked in the rule. So, depending on how I reference Fetch by ID, I’m current either restricted to the first item in the list (attached to Entityform2.0) or the last (attached to the Loop, which keeps rewriting until it runs out of options).

Obviously, I should be pulling the ReferenceField from Conditions to set the ID for Entityform2, but it’s not working. I have tried:

Fetch by ID using ReferenceField as the value

Fetch by Property = Submission ID and ReferenceField as the value

Created variables based on ReferenceField and tried to fetch on value

Created variables based on the ReferenceField entityform-id and tried to fetch on value

But every time I try to insert value from ReferenceField, the component breaks.I feel like this should be a pretty straightforward fetch operation, but I’m stuck. Am I missing a step?

Fetch API – how to perform an action once data is retrieved, but before doing anything with the data?

The code below retrieves data from database.

Before the data is retrieved, a wait message is displayed. Once the data is retrieved, the message should be removed.

What would be the best place to execute the remove_wait_message function?

Currently it sits in do_stuff_to_data, but it does not seem logical, as those two functions are not in any way correlated.

           function main() {                  function get_data() {                      let url = 'http://localhost:8000/query_database'                     fetch(url)                         .then(response => response.json())                         .then(json => do_stuff_to_data(json))                 }                  function do_stuff_to_data(json) {                     remove_wait_message()                     console.log(json)                 }                  function remove_wait_message() {                     let wait_msg = document.getElementById('wait_message')                     document.body.removeChild(wait_message)                 }                  get_data()              }              main() 

Fetch Blob Imagen con React Native Expo

tengo una imagen en un enpoint como este.

https://d1na8u9bbyf6pn.cloudfront.net/twt-uat1/MUS2014123113584242167/69093975526/105000000204082.jpeg?Expires=1539883894&Signature=ONFNJ1XTY3FOLUIMDnrcpR7~Awuobkwx~P5Ab~4hYx5bnVf5fSKwAzbobWZNnYrmzVXHGiyUmVEfRSvuZtseaMJfx6y1Bs9oI5ewuLRf-r0zMn25gFsN228FQ3IBaki3BsXJXQ-d~yVfhlkA6rIxQ1bHxnJ0VOgxEr6UU9g8gny2NIHwQTppJwFQYyAOtY1yBQ7KtlWp-WcasQVcCZn0H7tG59a7rpBCFUcfaFozQS0Dduizyl972vuHBY6V6o2KiCTWRrTNnXvFMLTfzVYb8UXl9USbwHP2nGvnqAfYhYIlm4KeYcJU4VZC66iWypcOPrpfJkdokHmgXltkbJJHbA__&Key-Pair-Id=APKAJER34WYXWHOJ2NZQ 

Pero cuando el fetch al enpoint y luego el .blob me dice que la imagen pesa 0kb, hay alguna manera de conseguir la imagen de un endpoint para poder utilizarla en React Native Expo ?

Un saludo.

Fetch products from several SKUs where their price don’t match from a list

I have a predefined list of SKUs with prices in an array, and I would like to return the products within Magento that matches those SKUs but not the price. As a quick solution, I have constructed an SQL query that does this (attribute 77 is the product price):

SELECT product.sku FROM catalog_product_entity product INNER JOIN catalog_product_entity_decimal price ON product.entity_id = price.entity_id AND price.attribute_id = 77 WHERE (product.sku = 'FR050866' AND price.value != 132.2) OR (product.sku = 'FR050869' AND price.value != 55.06) OR (product.sku = 'FR230116' AND price.value != 210.93) OR (product.sku = 'FS010048' AND price.value != 37.63) OR (product.sku = 'FS010049' AND price.value != 13.44) 

I then retrieved the matching SKUs as an array, and plugged it into the SearchCriteria:

// Fetch the SKUs as an array $  product_skus_to_amend = $  connection->fetchCol($  sql);  // Find the products by those SKUs $  this->_filterGroup->setFilters([     $  this->_filterBuilder      ->setField('sku')      ->setConditionType('in')      ->setValue($  product_skus_to_amend)      ->create() ]);  $  this->_searchCriteria->setFilterGroups([$  this->_filterGroup]); $  products = $  this->_productRepositiry->getList($  this->_searchCriteria); 

Is there a better method of doing this that doesn’t rely on creating my own SQL query, thus potentially only requiring one database call, instead of the two using the method above? I’ve been trying to figure this out using the Magento\Framework\Api\SearchCriteriaInterface or Magento\Framework\Api\SearchCriteriaBuilder classes, but to no avail. Every guide I have found, which included Magento’s Documentation, constructs queries like the below:

WHERE (x OR y) AND (a OR b) 

However I can’t find anything that constructs the below:

WHERE (x AND y) OR (a AND b) 

Any help will be greatly appreciated!

How to fetch data in Google sheet using Import XML function with Xpath?

https://www.monito.com/send-money/australia/india/aud/inr/1000

Please open the URL and see what Query should I put to extract following data (=IMPORTXML("https://www.monito.com/send-money/australia/india/aud/inr/1000", ")}

I tried various X path but could not work out. Can anyone please help. Thanks

Column A : Name of the exchange e.g. Transferwise
Column B: Total cost e.g. 9.77 AUD
Column C: Exchange rate e.g. 48.8187
Column D: Fees e.g. 9.49 AUD
Column E: Payment option e.g. Column F: Speed e.g. Next day

So basically, I need to fetch the entire table with all exchanges and put it in excel table in google sheet.

How to correctly configure a twitter agent to fetch datas from Twitter?

I’m using Hadoop 2.9.2 and Flume 1.4.0 to fetch data from Twitter, but I’m stuck at the following passage: when I try to run the application with bin/flume-ng agent -n TwitterAgent --conf ./conf/ -f conf/flume-twitter.conf -Dflume.root.logger=DEBUG,console, I get the following error:

    (conf-file-poller-0) [ERROR - org.apache.flume.node.PollingPropertiesFileConfigurationProvider$  FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:149)] Unhandled error     java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.refreshAfterWrite(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder; 

So I guess there’s a problem with that package but, because I’m very fresh to Hadoop and Flume, I don’t really know what’s wrong.

Assuming that Hadoop is working properly (I double-checked that), I’m following this guide to make things work:

  1. Launch hadoop.
  2. Create a Twitter app at https://developer.twitter.com/en/apps and get your access tokens.
  3. Download Apache-Flume at https://flume.apache.org/download.html bin version.
  4. Download flume-sources-1.0-SNAPSHOT.jar (attached) and extract it in the flume’s lib folder.
  5. Now you need to create a .conf file for flume:

5.1 create a file conf/flume-twitter.conf and copy/paste this, filling properly:

    TwitterAgent.sources = Twitter     TwitterAgent.channels = MemChannel     TwitterAgent.sinks = HDFS      TwitterAgent.sources.Twitter.type = com.cloudera.flume.source.TwitterSource     TwitterAgent.sources.Twitter.channels = MemChannel      TwitterAgent.sources.Twitter.consumerKey =      TwitterAgent.sources.Twitter.consumerSecret =      TwitterAgent.sources.Twitter.accessToken =      TwitterAgent.sources.Twitter.accessTokenSecret =      TwitterAgent.sources.Twitter.keywords =       TwitterAgent.sinks.HDFS.channel = MemChannel     TwitterAgent.sinks.HDFS.type = hdfs     TwitterAgent.sinks.HDFS.hdfs.path = hdfs://localhost:9000/tweets/     TwitterAgent.sinks.HDFS.hdfs.fileType = DataStream     TwitterAgent.sinks.HDFS.hdfs.writeFormat = Text     TwitterAgent.sinks.HDFS.hdfs.batchSize = 1000     TwitterAgent.sinks.HDFS.hdfs.rollSize = 0     TwitterAgent.sinks.HDFS.hdfs.rollCount = 10000      TwitterAgent.channels.MemChannel.type = memory     TwitterAgent.channels.MemChannel.capacity = 10000     TwitterAgent.channels.MemChannel.transactionCapacity = 100 

5.2 Rename conf/flume-env.sh.template as conf/flume-env.sh and add the following rows:

    export JAVA_HOME=/your/java/path     FLUME_CLASSPATH="/your/path/to/apache-flume-1.4.0-bin/lib/flume-sources-1.0-SNAPSHOT.jar" 
  1. Set FLUME_HOME in the .bashrc file adding the following rows:

    export FLUME_HOME=/your/path/to/apache-flume-1.4.0-bin export PATH=$  PATH:/FLUME_HOME/bin export CLASSPATH=$  CLASSPATH:/FLUME_HOME/lib/* 

It might be necessary to have also HADOOP_HOME (with the same procedure). Update using source .bashrc.

  1. Copy/paste the following files: copy all the .jar files in share/hadoop/common in the flume/lib folder copy all the .jar files in share/hadoop/common/lib in the flume/lib folder

  2. Start flume with:

    bin/flume-ng agent -n TwitterAgent --conf ./conf/ -f conf/flume-twitter.conf -Dflume.root.logger=DEBUG,console 

Me and my friend followed the very same guide and made exactly the same steps, but while its works, mine doesn’t. What can I do to solve this?

Not able to fetch pdf from database

I’m working with a project and everything is working fine , but when i click on fetch button it is not fetching pdf and showing them in list view.

it is only showing process dialog and the dialog disappear after half second

I tried for dependencies but its all ohk , there is no error in gradle build

private void getPdfs() {

    progressDialog.setMessage("Fetching Pdfs... Please Wait");     progressDialog.show();     StringRequest stringRequest;     stringRequest = new StringRequest(Request.Method.POST, PDF_FETCH_URL,              new Response.Listener<String>() {                 @Override                 public void onResponse(String response) {                       progressDialog.dismiss();                     try {                         JSONObject obj = new JSONObject(response);                         Toast.makeText(MCA.this,obj.getString("message"), Toast.LENGTH_SHORT).show();                          JSONArray jsonArray = obj.getJSONArray("pdfs");                          for(int i=0;i<jsonArray.length();i++){                              //Declaring a json object corresponding to every pdf object in our json Array                             JSONObject jsonObject = jsonArray.getJSONObject(i);                             //Declaring a Pdf object to add it to the ArrayList  pdfList                             Pdf pdf  = new Pdf();                             String pdfName = jsonObject.getString("name");                             String pdfUrl = jsonObject.getString("url");                             pdf.setName(pdfName);                             pdf.setUrl(pdfUrl);                             pdfList.add(pdf);                          }                          pdfAdapter=new PdfAdapter(MCA.this,R.layout.list_layout, pdfList);                          listView.setAdapter(pdfAdapter);                          pdfAdapter.notifyDataSetChanged();                      } catch (JSONException e) {                         e.printStackTrace();                     }                   }             },               new Response.ErrorListener() {                 @Override                 public void onErrorResponse(VolleyError error) {                  }             }     );      RequestQueue request = Volley.newRequestQueue(this);     request.add(stringRequest);  } 

}