How do I install a specific version of bitcoin-core

I need to run bitcoind version 0.17, however the latest available version is 0.18, if I follow the instructions from this link it installs the latest version.

The below links lists the packages for the version I need however I am not sure how to use it, I mean how to install it on my local machine as apt-get install command does automatically.

https://bitcoincore.org/bin/bitcoin-core-0.17.1/

Can someone help me with this please?

How to ask a specific question to differentiate two types of average

Imagine I have a a school with three classes: class 1 has 1 student class 2 has 2 students class 3 has 4 students

I am interested in the “average class size”

If i were to report this based on the number of students in each professors class i would get the following:

(1 + 2 + 4) / 3 = 2.3333 

If i were to report this based on the student’s reports of their own class size i would get the following:

(1 + 2 + 2 + 4 + 4 + 4 + 4) / 7 = 3 

Both of these seem to be plausible answers to the question “what is the average class size”. My question is if i wanted one particular account of the average class size how would i define the questions so that they would differentiate these two accounts? Is that possible?

How to get specific value from a JSON string? Java/Android Studio

I’m working on a project in android-studio. But I’m stuck on this point. I’ve made a request with Okhttp3 and this returns me a Response object. I can retrieve the response as a string (of a json file).

MainActivity.java

client.newCall(request).enqueue(new Callback() {     @Override     public void onFailure(Call call, IOException e) {         e.printStackTrace();     }      @Override     public void onResponse(Call call, Response response) throws IOException {         if(response.isSuccessful()) {             String data = response.body().string();             JsonParser parser = new JsonParser();              try {                 JsonObject obj = (JsonObject) parser.parse(data);                 String ad = obj.get("features").toString();                 Log.d("msg", data);                 Log.d("msg", ad);                 Log.d("msg", "Works");             } catch (Exception e) {                 Log.d("msg", "Error");             } 

Response

2019-05-22 10:55:12.785 1301-1631/com.example.triptracker D/msg: {"type":"FeatureCollection","query":[4.35822,51.91962],"features":[{"id":"address.2630076086694170","type":"Feature","place_type":["address"],"relevance":1,"properties":{"accuracy":"point"},"text":"Dotterbloemstraat","place_name":"Dotterbloemstraat 12c, 3135 Vlaardingen, Netherlands","center":[4.358192,51.919666],"geometry":{"type":"Point","coordinates":[4.358192,51.919666]},"address":"12c","context":[{"id":"postcode.7757734261857840","text":"3135"},{"id":"place.6763396954136802","wikidata":"Q210007","text":"Vlaardingen"},{"id":"region.8599455180798270","short_code":"NL-ZH","wikidata":"Q694","text":"Zuid-Holland"},{"id":"country.9349515904622050","short_code":"nl","wikidata":"Q55","text":"Netherlands"}]},{"id":"postcode.7757734261857840","type":"Feature","place_type":["postcode"],"relevance":1,"properties":{},"text":"3135","place_name":"3135, Vlaardingen, Zuid-Holland, Netherlands","bbox":[4.340678,51.909008,4.36899,51.925254],"center":[4.35,51.92],"geometry":{"type":"Point","coordinates":[4.35,51.92]},"context":[{"id":"place.6763396954136802","wikidata":"Q210007","text":"Vlaardingen"},{"id":"region.8599455180798270","short_code":"NL-ZH","wikidata":"Q694","text":"Zuid-Holland"},{"id":"country.9349515904622050","short_code":"nl","wikidata":"Q55","text":"Netherlands"}]},{"id":"place.6763396954136802","type":"Feature","place_type":["place"],"relevance":1,"properties":{"wikidata":"Q210007"},"text":"Vlaardingen","place_name":"Vlaardingen, Zuid-Holland, Netherlands","bbox":[4.270188,51.896102,4.369914,51.951478],"center":[4.35,51.91667],"geometry":{"type":"Point","coordinates":[4.35,51.91667]},"context":[{"id":"region.8599455180798270","short_code":"NL-ZH","wikidata":"Q694","text":"Zuid-Holland"},{"id":"country.9349515904622050","short_code":"nl","wikidata":"Q55","text":"Netherlands"}]},{"id":"region.8599455180798270","type":"Feature","place_type":["region"],"relevance":1,"properties":{"short_code":"NL-ZH","wikidata":"Q694"},"text":"Zuid-Holland","place_name":"Zuid-Holland, Netherlands","bbox":[3.7235244,51.64378,5.150749,52.390802],"center":[4.66667,52],"geometry":{"type":"Point","coordinates":[4.66667,52]},"context":[{"id":"country.9349515904622050","short_code":"nl","wikidata":"Q55","text":"Netherlands"}]},{"id":"country.9349515904622050","type":"Feature","place_type":["country"],"relevance":1,"properties":{"short_code":"nl","wikidata":"Q55"},"text":"Netherlands","place_name":"Netherlands","bbox":[3.1862592,50.750667,7.230902,53.665238],"center":[5.55,52.31667],"geometry":{"type":"Point","coordinates":[5.55,52.31667]}}],"attribution":"NOTICE: © 2019 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained. POI(s) provided by Foursquare."} 2019-05-22 10:55:12.786 1301-1631/com.example.triptracker D/msg: [{"id":"address.2630076086694170","type":"Feature","place_type":["address"],"relevance":1,"properties":{"accuracy":"point"},"text":"Dotterbloemstraat","place_name":"Dotterbloemstraat 12c, 3135 Vlaardingen, Netherlands","center":[4.358192,51.919666],"geometry":{"type":"Point","coordinates":[4.358192,51.919666]},"address":"12c","context":[{"id":"postcode.7757734261857840","text":"3135"},{"id":"place.6763396954136802","wikidata":"Q210007","text":"Vlaardingen"},{"id":"region.8599455180798270","short_code":"NL-ZH","wikidata":"Q694","text":"Zuid-Holland"},{"id":"country.9349515904622050","short_code":"nl","wikidata":"Q55","text":"Netherlands"}]},{"id":"postcode.7757734261857840","type":"Feature","place_type":["postcode"],"relevance":1,"properties":{},"text":"3135","place_name":"3135, Vlaardingen, Zuid-Holland, Netherlands","bbox":[4.340678,51.909008,4.36899,51.925254],"center":[4.35,51.92],"geometry":{"type":"Point","coordinates":[4.35,51.92]},"context":[{"id":"place.6763396954136802","wikidata":"Q210007","text":"Vlaardingen"},{"id":"region.8599455180798270","short_code":"NL-ZH","wikidata":"Q694","text":"Zuid-Holland"},{"id":"country.9349515904622050","short_code":"nl","wikidata":"Q55","text":"Netherlands"}]},{"id":"place.6763396954136802","type":"Feature","place_type":["place"],"relevance":1,"properties":{"wikidata":"Q210007"},"text":"Vlaardingen","place_name":"Vlaardingen, Zuid-Holland, Netherlands","bbox":[4.270188,51.896102,4.369914,51.951478],"center":[4.35,51.91667],"geometry":{"type":"Point","coordinates":[4.35,51.91667]},"context":[{"id":"region.8599455180798270","short_code":"NL-ZH","wikidata":"Q694","text":"Zuid-Holland"},{"id":"country.9349515904622050","short_code":"nl","wikidata":"Q55","text":"Netherlands"}]},{"id":"region.8599455180798270","type":"Feature","place_type":["region"],"relevance":1,"properties":{"short_code":"NL-ZH","wikidata":"Q694"},"text":"Zuid-Holland","place_name":"Zuid-Holland, Netherlands","bbox":[3.7235244,51.64378,5.150749,52.390802],"center":[4.66667,52],"geometry":{"type":"Point","coordinates":[4.66667,52]},"context":[{"id":"country.9349515904622050","short_code":"nl","wikidata":"Q55","text":"Netherlands"}]},{"id":"country.9349515904622050","type":"Feature","place_type":["country"],"relevance":1,"properties":{"short_code":"nl","wikidata":"Q55"},"text":"Netherlands","place_name":"Netherlands","bbox":[3.1862592,50.750667,7.230902,53.665238],"center":[5.55,52.31667],"geometry":{"type":"Point","coordinates":[5.55,52.31667]}}] 2019-05-22 10:55:12.786 1301-1631/com.example.triptracker D/msg: Works 

But what I need is the “place_name” which is nested inside “features”. I’ve tried so much, but still don’t know how to access “place_name”. In JavaScript it’s much simpler like features[0].place_name. But in Java it’s unknown for me. Can somebody please help.

The result that I want:

"Dotterbloemstraat 12c, 3135 Vlaardingen, Netherlands" 

Display custom widget to specific product

I created a custom widget. Now I want it to display into the specific product page. Example I have Product 1 and Product 2. I want my custom widget to display in Product 1 but not in Product 2. How can I achieve this? It seems that going to the admin->catalog->product and selecting the product does not work because there are no option to select the widget I want. What will be the best or correct approach to do this?

Note: My widget displays a form and I want that form to only display to a specific product. Is this possible? If so how?

Query select all values of specific month

A have a table where Column A has dates. I want to get all values of a specific month

I have the following query for May for example

=query(Database!A1:AD,"Select A,E,F,U,V,W,X,AB,AC where Month(A) = 5",1) 

but it does not work. Where I am wrong? Query

=query(Database!A1:AD,"Select A,E,F,U,V,W,X,AB,AC where A > date '2019-05-01' and A < date '2019-05-31'",1) 

works fine but I have a separate drop-down list with the months’ number 01 02 03 …. and I want the query to change when I change the month number. But even when I put the month number directly into query it shows nothing. No any mistake – just no rows with values, only header

How to stop logging for a specific user?

I’m a root user on my server. There are a bunch of users on my system. As you know, when you type w you can see who is and who isn’t online. With the last command you can check last users who were logged in to your system, according to /var/log/wtmp path.

Is there any way to stop all logging throughout the system for a specific user?

I know we can do like cat /dev/null > /var/log/wtmp, but this action removes all of the logs.

It can be done by rootkits like vlany, but how we can do it without them, I mean with commands?

Can caster level increases meet the caster level prerequisites for specific magic items?

Some magic items have a caster level prerequisite. For example, the adamantine golem notes that “the creator must be caster level 20th.”

Is it possible for the creator of such a magic item to inflate his effective caster level using other game elements like feats and magic items to meet such a caster level requirement early?

I’m not looking to bypass the prerequisite completely by increasing the Spellcraft skill check—I already know that’s a possibility. I want to actually meet the caster level prerequisite but meet it with feats, magic items, and so on instead of just by counting conventional caster levels from leveling up.

Check if the current user is member of specific AD security group

following situation: I have kind of classification tree (with Managed Metadata) next to a document library. Now my customer came up with the idea “Hey, it would be nice, if you can hide parts of the classification tree by group memberships”. Alright then, created some new SharePoint groups and added the AD security group. And now? I already have a “script” (don’t bother me for the style, I’m not yet a developer and not even close to this). But this scans only for users in SharePoint group, not in AD security group.

<script src="/sites/intranet/_catalogs/masterpage/cusomter/Scripts/jquery-3.3.1.min.js"></script> <script type="text/javascript" src="/sites/intranet/_catalogs/masterpage/cusomter/Scripts/jquery.SPServices.min.js"></script> <script type="text/javascript"> $  (document).ready(function() {     $  ().SPServices(       {       operation: "GetGroupCollectionFromUser",       userLoginName: $  ().SPServices.SPGetCurrentUser(),       async: false,       completefunc: function(xData, Status) {           //If the current User does belong to the group "SharePoint Group Name"          if($  (xData.responseXML).find("Group[Name='GF']").length == 1)          {             // where circle1 is the id of div             $  ('a[title="GF"]').parent().parent().parent().parent().css("display", "block");             $  ('a[title="something special"]').parent().parent().parent().parent().css("display", "block");             console.log("member of GF")          }          else          {             $  ('a[title="GF"]').parent().parent().parent().parent().css("display", "none");             $  ('a[title="something special"]').parent().parent().parent().parent().css("display", "none");             console.log("not member of GF")          };           if($  (xData.responseXML).find("Group[Name='HR']").length == 1)          {             // where circle1 is the id of div             $  ('a[title="HR"]').parent().parent().parent().parent().css("display", "block");             console.log("member of HR");          }          else          {             $  ('a[title="HR"]').parent().parent().parent().parent().css("display", "none")             console.log("not member of HR");          }       }    }); }); </script> 

Is there an applicable way to achieve? Additionally I have to keep in mind, that the SharePoint is available via public internet. Maybe this will be my show stopper in the end, if I have to use LDAP calls?!

Needless to say that I already tried to import the “memberOf” attribute from AD to the user profile service. Unfortunately this field stays blank for all user, even after the 4th or 5th sync.

How to find my device’s CSC (Country Specific Code)

I bought a Samsung Galaxy on an auction website, with no clear indication of where it comes from.

Now, to root the device or restore it, I need its Country Specific Code.

Question: How do I find the CSC of my device?

What I tried

  1. Installed the Phone Info SAM app by vndnguyen.
  2. Ran it (works even without root).
  3. Opened the CSC CODE tab.
    • Product Code ends with TPA (Panama)
    • Firmware's CSC Code is DBT (Germany)
    • Active CSC Code is TPA
    • Available CSC Codes lists about a hundred codes.

Some website claims to find your CSC from your IMEI number by taking the 7th and 8th digits, which for me are 10, which supposedly means Finland.

That’s many different codes, so I am not sure which one I should use. Or maybe both of these methods are actually completely wrong?

Why do some websites have language specific URLs, when the users still use the .com version?

I’m creating my first multilingual website and I have been looking at examples from other websites. So far I’ve noticed that many popular websites have a .com version and a kr.example.com or example.co.kr version. I know for a fact that people in that country (in my example it’s Korea) still use the regular .com version.

What’s the point of having a language-specific URL if the website automatically determines the language and allows a language selection if they determine incorrectly?