## How to solve “@deprecated — Use an observer instead of a complete callback”?

So I was trying to get data by using http call and after I use my code, It won’t work and when I check, it does not produce any array. It gave me this message after I hover my mouse over the subscribe function.

Here are my code:

public getCust(){ this.http.get(this.thisUrl+’name=’+this.param.namaID+’&dob=’+this.param.dob+’&idno=’+this.param.idno+’&idt=’+this.param.idt+’&norek=’+this.param.norek+’&cif=’+this.param.cif) .subscribe((res : any[])=>{ console.log(res); this.custs = res; }) }

These are the message that produce by me hovering over the subscribe function:

(method) Observable.subscribe(next?: (value: Object) => void, error?: (error: any) => void, complete?: () => void): Subscription (+4 overloads) @deprecated — Use an observer instead of a complete callback

@deprecated — Use an observer instead of an error callback

@deprecated — Use an observer instead of a complete callback

## How far can Spectral Algebraic Geometry be developed over $\mathbb{E}_2$-rings (instead of $\mathbb{E}_\infty$-rings)?

Jacob Lurie has extensively developed derived algebraic geometry in the setting of $$\mathbb{E}_\infty$$-ring spectra [SAG]. The resulting theory of Spectral Algebraic Geometry (SAG) gives (in particular) a way to view some of the spectra topologists care about algebro-geometrically, as spectral schemes. In particular, examples of such spectra would be

1. The complex cobordism spectrum $$\mathrm{MU}$$;

2. Complex $$K$$-theory $$\mathrm{KU}$$;

3. The spectrum $$\mathrm{TMF}$$ of topological modular forms;

4. The sphere spectrum $$\mathbb{S}$$.

On the other hand, there are many important spectra which don’t admit $$\mathbb{E}_\infty$$-structures (and hence don’t fit in Lurie’s SAG) such as:

1. The $$p$$-local Brown-Peterson spectrum $$\mathrm{BP}$$ and its connective covers $$\rm{BP}\langle n\rangle$$;

2. The Morava $$K$$-theories $$K(n)$$;

3. The Ravenel spectra $$X(n)$$.

There has been work on SAG over $$\mathbb{E}_n$$-rings, in particular by John Francis, in his thesis. Focusing on $$n=2$$, what results of SAG are expected to be troublesome to extend to the setting of $$\mathbb{E}_2$$-ring spectra?

I’m also tempted to ask here Sanath’s question on this topic:

[…] what are some results in either the purely algebro-geometric or purely chromatic aspects of spectral algebraic geometry which rely upon using the entire $$\mathbb{E}_\infty$$-ring structure?

to be found in his A love letter to E_2-rings.

## How to show featured image instead of post content?

Hello guys,

Maybe you can help me with a little thing…

I have a code to show a video, and when I don't have a video, the post content is shown instead. I need to replace the post content (text) with the post featured image: the_post_thumbnail('full');

This is my code:

 <div id="play_video">  <?php $content=get_post_meta($  videoId,"wpscript_embed",true); if($content){$  width = '100%'; $content = preg_replace('/width="(.*?)"/i', 'width="' .$  width .'"', $content);... PHP: How to show featured image instead of post content? ## how to generic text instead of the url of a link How can I show the URL of a link and display some other text instead of just URL. Currently, the link URL will be shown like this https://www.yahoo.com is it possible to do this instead? link Edit: I would like to display this in a field of a list item using workflows. Column type: single line of text (open to change). ## What some alternative ways to present tabular data instead of the standard table in the UI? What some alternative ways to present tabular data instead of the standard table in the UI? I don’t want the data to be displayed in formal tables with rows and columns. Is there any way of grouping them all and show it attractive and nice? ## Optimizing the speed of the code using C++ instead of Python I wrote code in python and it’s like this: import math import time from itertools import compress def prime_number(n): ''' Prime numbers up to n''' sieve = bytearray([True]) * (n//2+1) for i in range(1,int(n**0.5)//2+1): if sieve[i]: sieve[2*i*(i+1)::2*i+1] = bytearray((n//2-2*i*(i+1))//(2*i+1)+1) return {2,*compress(range(3,n,2), sieve[1:])} #Using set to increase the search time list_of_primes = prime_number(10**8) # listing prime numbers up to 10**8 square_numbers = {i**2 for i in range(2, 10**4)} for i in square_numbers: for j in list_of_primes: if (j-1) % i == 0 and j in list_of_primes: list_of_primes.remove(j) else: break list_of_primes = list_of_primes - square_numbers sophie_german_primes = prime_number(50 * 10**6) sg_prime = {i for i in sophie_german_primes if 2*i + 1 in list_of_primes} def test_condition (num): ''' Testing the condition of d+n/d by taking the input as array of divisor and num''' for i in range(1, int(num**0.5) + 1): if num % i == 0: if (i + num /i) not in list_of_primes: return False return True start = time.perf_counter() Sum = 0 for num in sg_prime: if num + 2 in list_of_primes: Sum += 2*num new_list_primes = list_of_primes - {2*i+1 for i in sg_prime} for num in new_list_primes: if (num - 1) / 2 + 2 in list_of_primes: if test_condition (num-1) == True: Sum += num - 1 end = time.perf_counter() print("Time : ", end-start, "sec") print(Sum+1)  The problem is that the code works. However, it works on python in 8.35 second. But online I see that C++ works much faster than python (10-100x faster). Is it possible to speed up my code more than 10 times by just using C++ ? Is there someone willing to try that ? ## How can I print the vocabulary name instead of the referenced term in a node template? Let’s say I have a content type article with a field “taxonomy”. The vocabulary is “fruits”. The terms are “apple”, “orange”, “bananas” The article belongs to “orange”. I can easily print in my twig template the term of the article : {{ content.field_taxo_fruit }}  Result is “orange”. But I don’t find an easy way to print the vocabulary : “fruits”. On an other project, I used views field and I used “rewrite result”. But here, I use twig template like node--article--teaser.html.twig ## Number roadmaps as A001 instead of A1 using Word page numbers To identify roadmaps provided to participants to a biycle randonnee, I want to number them as A001 to A150, B001 to B150 and C001 to C150. After printing the required roadmaps in a printshop, I number them at home with my printer, starting with the pile A001 to A150. To do that, I use the page numbering of Word. Unfortunately, it prints as A1 to A150, omitting the 0 when at the beginning of a figure. How can I change Word behaviour so that it would print A001 to A150 ? TIA ## AngularJS 1.8 – templateUrl displays url in view instead of the template ## Summary I’m trying to convert my angularjs components/directives over to TypeScript. Unfortunately, the templateUrl property doesn’t display the template that’s passed to it. Instead, it literally displays a partial path the template. ## Code class JumpPagerController { ... } } JumpPagerController.$  inject = ['$timeout']; export const jumpPagerComponent = { templateUrl: './jump-pager.component.html', controller: JumpPagerController, bindings: { pagerPlaceholder: '@?', pagerCurrentPage: '=', pagerItemsPerPage: '=', pagerTotalItems: '=', pagerChange: '&' } };  ### Expected ### Actual ## What I’ve Tried • Passing in the baseUrl (didn’t have high hopes here: • templateUrl: $ {baseUrl}/jump-pager.component.html
• templateUrl: localhost:8080/jump-pager.component.html
• template: require('...') works, but would require me to reconfigure webpack and then modify all other cases of templateUrl in .js files. This isn’t an option
• I’ve reviewed similar questions but no one else seems to be having quite the same issue. They’re all either using JavaScript instead of TypeScript, or they’re only having an issue with the template not rendering and don’t seem to be getting the weird problem with the template path being displayed.

## Recap

So you can see that I’m at a loss. What is the correct way to use templateUrl on an angularjs component using typescript and webpack?

## How do I change drupal_core_path to /public instead of /web in Drupal VM?

I use Drupal VM to build my VM.

I have to change the folder drupal_core_path: "{{ drupal_composer_install_dir }}/web" to drupal_core_path: "{{ drupal_composer_install_dir }}/public"

But if I run vagrant up I get an error?

How do I have to change config.yml so that Drupal is installed in /public instead of /web?