Q:

Is there a free component to convert arabic html to pdf?

I need to take an HTML page in Arabic and convert it to a PDF. itextsharp doesn't work. Here is some example HTML with Arabic in it.

                aspdotnetcodebook
                اللغة العربية

                cell1

                cell2

                <asp:Label ID="lblLabel" runat="server"
                    Text=""></asp:Label>

                    تحويل
                    محتوى الى ملف بي دي اف

                    مجموعة المحتوى العربي، تعنى بتطوير مهارة الكتابة وتتبنى فكرة التعلم بالبحث
                    والتعلم بالكتابة. المجموعة تضم الأعضاء الجادين الذين يكتبون ويريدون أن يتعلموا
                    كيف يكتبون كتابة علمية وفكرية رصينه ويساهمون في انتاج محتوى عربي معاصر في الفكر
                    والعلم والفنون والأداب بعيدا الكتابة الإبداعية.

                    الاخوان جريم/a> مجموعة المحتوى العربي، تعنى بتطوير مهارة الكتابة وتتبنى فكرة
                    التعلم بالبحث والتعلم بالكتابة. المجموعة تضم الأعضاء الجادين الذين يكتبون
                    ويريدون أن يتعلموا كيف يكتبون كتابة علمية وفكرية رصينه ويساهمون في انتاج محتوى
                    عربي معاصر في الفكر والعلم والفنون والأداب بعيدا الكتابة الإبداعية. الهودد
                    كيب أو
                    ويكيبيديا
                    مجموعة المحتوى العربي، تعنى بتطوير مهارة الكتابة وتتبنى فكرة التعلم بالبحث
                    والتعلم بالكتابة. المجموعة تضم الأعضاء الجادين الذين يكتبون ويريدون أن يتعلموا
                    كيف يكتبون كتابة علمية وفكرية رصينه ويساهمون في انتاج محتوى عربي معاصر في الفكر
                    والعلم والفنون والأداب بعيدا الكتابة الإبداعية. .

                    مجموعة المحتوى العربي، تعنى بتطوير مهارة الكتابة وتتبنى فكرة التعلم بالبحث
                    والتعلم بالكتابة. المجموعة تضم الأعضاء الجادين الذين يكتبون ويريدون أن يتعلموا
                    كيف يكتبون كتابة علمية وفكرية رصينه ويساهمون في انتاج محتوى عربي معاصر في الفكر
                    والعلم والفنون والأداب بعيدا الكتابة الإبداعية.

                    مجموعة المحتوى العربي، تعنى بتطوير مهارة الكتابة وتتبنى فكرة التعلم بالبحث
                    والتعلم بالكتابة. المجموعة تضم الأعضاء الجادين الذين يكتبون ويريدون أن يتعلموا
                    كيف يكتبون كتابة علمية وفكرية رصينه ويساهمون في انتاج محتوى عربي معاصر في الفكر
                    والعلم والفنون والأداب بعيدا الكتابة الإبداعية.

                    مجموعة المحتوى العربي، تعنى بتطوير مهارة الكتابة وتتبنى فكرة التعلم بالبحث
                    والتعلم بالكتابة. المجموعة تضم الأعضاء الجادين الذين يكتبون ويريدون أن يتعلموا
                    كيف يكتبون كتابة علمية وفكرية رصينه ويساهمون في انتاج محتوى عربي معاصر في الفكر
                    والعلم والفنون والأداب بعيدا الكتابة الإبداعية.
                    الصياد, مجموعة المحتوى
                    العربي، تعنى بتطوير مهارة الكتابة وتتبنى فكرة التعلم بالبحث والتعلم بالكتابة.
                    المجموعة تضم الأعضاء الجادين الذين يكتبون ويريدون أن يتعلموا كيف يكتبون كتابة
                    علمية وفكرية رصينه ويساهمون في انتاج محتوى عربي معاصر في الفكر والعلم والفنون
                    والأداب بعيدا الكتابة الإبداعية. المحتوى العربي، تعنى بتطوير مهارة الكتابة
                    وتتبنى فكرة التعلم بالبحث والتعلم بالكتابة. المجموعة تضم الأعضاء الجادين الذين
                    يكتبون ويريدون أن يتعلموا كيف يكتبون كتابة علمية وفكرية رصينه ويساهمون في انتاج
                    محتوى عربي معاصر في الفكر والعلم والفنون والأداب بعيدا الكتابة الإبداعية.

                    مجموعة المحتوى العربي، تعنى بتطوير مهارة الكتابة وتتبنى فكرة التعلم بالبحث
                    والتعلم بالكتابة. المجموعة تضم الأعضاء الجادين الذين يكتبون ويريدون أن يتعلموا
                    كيف يكتبون كتابة علمية وفكرية رصينه ويساهمون في انتاج محتوى عربي معاصر في الفكر
                    والعلم والفنون والأداب بعيدا الكتابة الإبداعية.                         الغابة, مجموعة
                    المحتوى العربي، تعنى بتطوير مهارة الكتابة وتتبنى فكرة التعلم بالبحث والتعلم
                    بالكتابة. المجموعة تضم الأعضاء الجادين الذين يكتبون ويريدون أن يتعلموا كيف
                    يكتبون كتابة علمية وفكرية رصينه ويساهمون في انتاج محتوى عربي معاصر في الفكر
                    والعلم والفنون والأداب بعيدا الكتابة الإبداعية.

i use itextsharp to convert this content which is stored in DB
to pdf file to be downloaded to the user

A:

do you have the c# code in hand?
there is this online resource discussing how to use itextsharp to create PDF.
is it a problem of characterset, font or right to left problem?
http://www.devshed.com/c/a/Java/Creating-Simple-PDF-Files-With-iTextSharp/
http://www.codeproject.com/KB/graphics/ITextSharpHelperClass.aspx
I hope it can help


Q:

Jump div to bottom with out scrolling the page

I have an inner div that contains a list with the most recent list item being at the bottom. The div is part of a larger page. Essentially i want the div to default to the end of the list item and the user will then scroll upwards within the div to see the older content. I do not want the page to be scrolled to the bottom of the div which would occur if i used the following function
//Slide chat down to bottom
$("#div").scrollTop(function(){
    return $(this).height();
});

The outer div would be the page at large. therefore the user would need to scroll down to the inner div and then see the last list item. If they want they can then use the inner scroll bar to look up older items
thanks

A:

You can do that in plain JavaScript:
var inner = document.querySelector('.inner');
inner.scrollTop = inner.scrollHeight;

DEMO


namespace NamespaceSample.Pages
{
	public partial class Null : System.Windows.Controls.Page
	{
		public Null()
		{
			InitializeComponent();
		}
	}
}


UPDATED: Hashd and Iraqi Army advance into first neighborhood inside Tal Afar

The Iraqi army's 11th Brigade and Shiite Hashd al-Shaabi paramilitaries have cordoned off al-Askari neighborhood in eastern Tal Afar and are ready to launch an incursion into the neighborhood, stated the Hashd.

In the meantime, the Iraqi Defense Ministry's War Media Cell declared that the 11th Brigade and Hashd al-Shaabi forces have approached within 300 meters of Tal Afar’s center from the southeastern front.

.......

01:05pm

ERBIL, Kurdistan Region - In the early hours of Tuesday, the Iraqi Army, together with Shiite Hashd al-Shaabi paramilitaries broke into the first neighborhood of the predominantly Turkmen town of Tal Afar west Mosul.

Hashd al-Shaabi media announced that their forces together with the Iraqi Army entered al-Kifah neighborhood in the northwestern part of the city.

"The Popular Forces and the Federal Police continue to advance according to the security plans in Al-Kifah neighborhood, the first neighborhoods of Tal Afar from the northwest," read a statement from the Hashd.

The statement added that the Hashd forces were able to shatter the first defensive line of ISIS in al-Jazira area from the southern front towards Tal Afar’s center, adding that axis of advance was only 400 meters away from Tal Afar center.

The Hashd forces also announced their troops have beseiged the industrial zone west of Tal Afar mid-Tuesday.

The advancing Iraqi troops have also entered al-Khadra neighborhood engaging in fierce fighting with ISIS militants, killing 10, and detonating a car bomb, according to the Hashd.

They said they progressed with the help of heavy air cover.

A Rudaw reporter covering developments on the ground near Tal Afar on Tuesday said the bulk of the villages retaken by the Iraqi army in the areas were already empty of residents and militants.

He added that the Iraqi Army's 9th Division in a morning operation is moving towards the villages of Ashiq and Abu Haya east of Tal Afar.

On Day 2 of the ‘We are Coming Tal Afar’ offensive, its commander Lt. Gen. Abdul Amir Rashid Yarallah, had declared the villages of Tal Rahal, Jabbara, Hussein Idris, Mullah and Majeed as being reclaimed from ISIS.

Monday evening, the Hashd al-Shaabi announced that Iraqi forces have come within 900 metres of western Tal Afar.

Also on Monday, the US-led coalition spokesperson Col. Ryan Dillon tweeted that Iraqi security forces had taken about 230 square kilometres of ground from ISIS in the past 24 hours.

In the early hours of Sunday morning, Iraqi Prime Minister Haider al-Abadi announced the commencement of operations by security forces to retake the Tal Afar, which has a large Turkmen population as well as Arabs and Kurds.

The US-trained Counter Terrorism Service (CTS), Federal Police, the Rapid Response Force, Iraqi Army, and Hashd al-Shaabi are taking part in the operation with the backing of the coalition.

UNAMI stated more than 30,000 civilians have fled the area as of Sunday. An estimated 10,000 to 50,000 civilians are believed to still be living under ISIS control in Tal Afar and the surrounding areas, according to coalition figures.

It has served as a key ISIS route between Iraq and Syria since 2014 and is the last major centre in northwestern Iraq still controlled by the terrorist group.


Q:

How to build gRPC++ with OpenSSL instead of BoringSSL

My project uses MySQL connector, which use OpenSSL as its dependency.
I've integrate gRPC with my project using FetchContent, with OpenSSL installed in my system. But it still use BoringSSL.

A:

Add these to your CMakeList.txt
set(gRPC_SSL_PROVIDER package)


Interim report on treatment of osteoporotic patients with 1 alpha-hydroxyvitamin D3 and calcium.
Fifteen patients, 13 women and 2 men (mean age 60 years) with osteoporosis of different types have been under treatment with 1 alpha-hydroxyvitamin D3 and calcium. The responses were observed clinically and by the use of roentgen morphometry, photon absorptiometry and by blood and urine chemical analyses. The treatment had beneficial clinical effect in all but 3 patients. The intestinal calcium absorption rate increased significantly. Slight hypercalcemia and a significant hypercalciuria occurred during treatment. Serum and urine phosphate levels, alkaline phosphatase and parathyroid hormone values were within normal ranges. The bone mineral content increased significantly during treatment. 1 alpha-hydroxyvitamin D3 and calcium was well tolerated by the patients. Three patients had coincidental acute attacks of spinal pain and 2 had further vertebral crush fractures. A period of time longer than one year is necessary to further evaluate the effects of 1 alpha-hydroxyvitamin D3 therapy on the clinical course of severe osteoporosis.


Mahmud al Kashgari

Mahmud ibn Hussayn ibn Muhammed al-Kashgari was an 11th-century Uyghur scholar and lexicographer of the Turkic languages from Kashgar.

His father, Hussayn, was the mayor of Barsgan, a town in the southeastern part of the lake of Issyk-Kul and related to the ruling dynasty of Kara-Khanid Khanate.

Al-Kashgari studied the Turkic languages of his time and in Baghdad he composed the first comprehensive dictionary of Turkic languages, the k">Dīwān Lughāt al-Turk in 1072-74. It was intended for use by the Abbasid Caliphate, the new, Arab allies of the Turks. Mahmud Kashgari's comprehensive dictionary, later edited by the Turkish historian, Ali Amiri, contains specimens of old Turkic poetry in the typical form of quatrains , representing all the principal genres: epic, pastoral, didactic, lyr


punjab

Updated: Jun 03, 2016 18:05 IST

Embarrassed to go door-to-door with condoms that now carry their name, the accredited social health activists or Asha workers have declined to help the government cover the state.

Running a family-planning campaign Under National Health Mission, the Ministry of Health and Family Welfare is giving away free contraceptives such as condoms, besides regular and emergency pills, through these ground-level woman motivators. When the fresh stock arrived in May, the product name had changed from Deluxe. “First they exploit us as employees and now they malign our image,” said an Asha worker, adding: “People now call us and say: ‘Ek Asha dena (Give me one Asha)’. They have even started making jokes on us. It is awkward and undignified.”

Also read I Roundabout: Counting condoms and that ‘condom bar’!

The new, “more attractive” package (in the government’s views) carries the image of a gorgeous couple to seduce men. Asha Workers and Facilitator Union state president Kirandeep Panchola confirmed that all Asha workers in Punjab had boycotted the distribution of these condoms “until the government changes its name and we get a fresh supply”.

Don’t Miss : 251 HIV-positive in Faridkot jail, HC seeks Punjab reply

Panchola said the Asha workers would take the issue to National Health Mission managing director Hussan Lal on Friday. Hussan Lal was unavailable for comments in spite of repeated attempts to reach him.

An Asha worker is a woman in the age group of 25 to 45 who is qualified up to Class 10 preferably. Provided with knowledge and a medical kit to deliver first-contact healthcare, every Asha (which in Hindi means hope) is expected to be a fountainhead of community participation in public health programmes in her village.

Also read I Women’s jail, schools to get sanitary napkin-vending machines


// Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.  See the License for the
// specific language governing permissions and limitations
// under the License.

package mage

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestParseVersion(t *testing.T) {
	var tests = []struct {
		Version             string
		Major, Minor, Patch int
	}{
		{"v1.2.3", 1, 2, 3},
		{"1.2.3", 1, 2, 3},
		{"1.2.3-SNAPSHOT", 1, 2, 3},
		{"1.2.3rc1", 1, 2, 3},
		{"1.2", 1, 2, 0},
	}

	for _, tc := range tests {
		major, minor, patch, err := ParseVersion(tc.Version)
		if err != nil {
			t.Fatal(err)
		}
		assert.Equal(t, tc.Major, major)
		assert.Equal(t, tc.Minor, minor)
		assert.Equal(t, tc.Patch, patch)
	}
}


Complement component profiles in urticaria, dermatitis herpetiformis, and alopecia areata.
Insignificant variation was noted in the mean levels of the complement components CIQ, C4, C2, C3, C5 and C3PA between various groups of sera from patients with urticaria, angio-oedema, dermatitis herpetiformis, alopecia areata, or hay fever. No deficiencies were found. Elevated C9 levels in chronic urticaria and angio-oedema reflected its nature as an acute phase protein. The assessment of C components in single or sequential serum samples revealed only marginal variations. Similar results were recorded for plasminogen the immunoglobulins, G, A and M. Some evidence is provided for the primary involvement of the kallikrein-kinin system in urticaria.


Q:

How to re-publish a repository that was previously deleted from github?

A couple months back I deleted a repo from github using "danger zone -> delete this repo" from the project control panel on github.com.
Now I would like to put the code back up on github. I am using the github desktop application to push my code to github.
In the github desktop application, github still thinks the old deleted repo is alive on my account ... so I can't push the code a second time.
How can I completely remove the project from github so that I can push my code again?

A:

I have done this by removing the [remote "origin"] section from the .git/config file for the project and republishing the repository to github.


Joe Pannunzio was a standup guy off the field for the student-athletes of Alabama football; however, its running back position missed an important ingredient when Burton Burns took an off-field role last season.

While balance was still obtained amongst players, the trust factor to lean on its rushing attack was not there for the Crimson Tide as it has been in recent years.

Could it have been Pannunzio’s lack of experience with running backs prior to 2018?

Maybe, nevertheless, the latest name to work with Alabama is someone that is seasoned at the position and has already produced a generational talent. Charles Huff, former assistant at Mississippi State University, sees Najee Harris as his second project for the next level.

From 2015 to 2017, Huff transformed Barkley from a three-star to a record-setting household name at Penn State.

The 6-foot, 233-pounder posted 3,843 career rushing yards with 43 touchdowns on 671 attempts – including 1,271 yards with 18 scores on 217 carries in 2017.

As good as he was carrying the ball, Barkley was more dynamic at receiver.

He brought in 102 career receptions for 1,195 yards with eight touchdowns, including an output of 54 catches for 632 yards and three scores in 2017.

Behind Huff, Barkley was recognized as a consensus All-American, first-team All-Big Ten and Big Ten Offensive Player of the Year.

Despite the New York Giants having a rough season, he was the franchise’s bright spot, tallying 1,307 yards rushing with 11 scores as a rookie. The No. 2 overall pick of the 2018 NFL Draft was awarded the league’s Offensive Rookie of the Year for his efforts, finishing second in the NFL in yards and fifth in touchdowns.

After one season with the Bulldogs, Huff is prepared to pour all of him into Harris.

A former five-star from California, he led Alabama in yards per carry average (6.7) and totaled 783 rushing yards with four touchdowns on 117 carries in 2018.

Listed at 6-foot-2 and 230 pounds, Harris can hurdle, stiff arm and spin away from defenders with ease.

He has to become more direct with his feet in attacking the hole, but consisted help from the offensive line should lead to Harris’ improvement. Harris has the skills to also become an efficient receiver; it will just come down to Tua Tagovailoa giving him an opportunity.

When he first arrived in Tuscaloosa, Ala., everyone felt like Harris will be the next marquee rusher from the Tide for the National Football League. Pairing him with Huff allows for the program to work toward pursuing that vision.

Harris is definitely ready for spring practice.

*Get the BEST Alabama football insider information, message board access, and recruiting coverage today! SIGN UP HERE to unlock our subscriber only content!*


---
abstract: 'In the spectral density of Cr(001) surfaces a sharp resonance close to the Fermi level is observed in both experiment and theory. For the physical origin of this peak two mechanisms were proposed. A single particle *$d_{z^{2}}$* surface state renormalised by electron-phonon coupling and an orbital Kondo effect due to the degenerate *$d_{xz}$*/*$d_{yz}$* states. Despite several experimental and theoretical investigations, the origin is still under debate. In this work we address this problem by two different approaches of the dynamical mean-field theory. First, by the spin-polarized T-matrix fluctuation exchange approximation suitable for weakly and moderately correlated systems. Second, by the non-crossing approximation derived in the limit of weak hybridization (i.e. for strongly correlated systems) capturing Kondo-like processes. By using recent continuous-time quantum Monte Carlo calculations as a benchmark, we find that the high-energy features, everything except the resonance, of the spectrum is captured within the spin-polarized T-matrix fluctuation exchange approximation. More precisely the particle-particle processes provide the main contribution. For the non-crossing approximation it appears that spin-polarized calculations suffer from spurious behavior at the Fermi level. Then, we turned to non spin-polarized calculations to avoid this unphysical behavior. By employing two plausible starting hybridization functions, it is observed that the characteristics of the resonance are crucially dependent on the starting point. It appears that only one of these starting hybridizations could result in an orbital Kondo resonance in the presence of a strong magnetic field like in the Cr(001) surface. It is for a future investigation to first resolve the unphysical behavior within the spin-polarized non-crossing approximation and then check for an orbital Kondo resonance.'
author:
- 'L. Peters'
- 'D. Jacob'
- 'M. Karolak'
- 'A. I. Lichtenstein'
- 'M. I. Katsnelson'
title: 'On the origin of the quasi-particle peak in Cr(001) surfaces'
---

Introduction
============

In the growing field of spintronics the spin of the electrons is used to processes information. One popular possibility to achieve this is based on the different tunneling probabilities of spin-up and spin-down electrons in magnetic materials. Naturally these currents can be manipulated by a magnetic field. In order to apply this principle in practice for novel devices, it is crucial to understand the details behind the tunneling process [@tun1; @tun2; @tun3]. For example, an understanding of the surface density of states of the electrodes is important. Chromium magnetic multilayers is an example where complicated many-body effects at the surface determine the tunneling [@tun4].

Besides from a technological point of view, surface science is also fundamentally interesting. New and unexpected features may occur at surfaces. An interesting example is that of the topological insulators [@topin]. Another example, at the Cr(001) surface a sharp resonance close to the Fermi level is observed in angular resolved photoemission and scanning tunneling experiments [@arpes1; @arpes2; @arpes3; @dzsur1]. After this discovery many experimental and theoretical investigations were performed in order to understand the physical origin of this phenomenon. The first theoretical explanation was that of a single particle *$d_{z^{2}}$* surface state [@dzsur1; @okon6]. However, in order to predict the correct resonance position within this picture an unrealistic reduction of the magnetic polarization was required. Based on scanning tunneling spectroscopy on very clean Cr(001) surfaces a many-body picture in terms of an orbital Kondo effect due to the degenerate *$d_{xz}$* and *$d_{yz}$* states was proposed [@okon1; @okon2]. Additional temperature dependent scanning tunneling scpectroscopy experiments followed in order to clarify the situation [@okon3]. However, it appeared that both models were in agreement with the experimental data. Although for the *$d_{z^{2}}$* single particle picture an electron-phonon coupling strength 5-10 times larger than in the bulk was required. By combining scanning tunneling microscopy, photoemission spectroscopy and inverse photoemission spectroscopy one was able to show that the resonance above the Fermi level was mainly of *$d_{z^{2}}$* character [@okon4]. This contradicts the orbital Kondo interpretation. Although, one should realise that the resolution of inverse photoemission spectroscopy is too low to properly investigate the sharp resonance at low temperatures. On the other hand for the *$d_{z^{2}}$* single particle picture the large electron-phonon enhancement compared to the bulk remains questionable. The newest photoemission experiments show a pseudogap below roughly 200 K and the emergence of a sharp resonance below 75 K [@okon5]. Note that this type of behavior was not observed in earlier experiments. These newest experiments hint in the direction of a many-body interpretation of the resonance. Also recent dynamical mean-field theory (DMFT) calculations within the continuous-time quantum Monte Carlo (CTQMC) solver hint in this direction [@schuler]. Namely it was observed that the resonance was very robust against artificial shifts in the one-particle energies of the *$d_{xz}$*, *$d_{yz}$* and *$d_{z^{2}}$* states, which points towards a dominant many-body contribution. There are several disadvantages involved with employing the CTQMC solver. For example, it is very difficult to access temperatures at which the resonance is observed experimentally. Further, the consideration of the full Coulomb matrix becomes prohibitively expensive within CTQMC at low temperatures. Therefore, in Ref.  the lowest temperature that could be considered was still too high to observe the sharp resonance and only the density-density terms of the Coulomb matrix were taken into account. It is known that such an approximation to the Coulomb matrix can lead to qualitatively wrong results. [@fullcoul1; @fullcoul2] Apart from the approximation in the Coulomb matrix, the CTQMC method is essentially exact, i.e. all Feynmann diagrams are taken into account. Therefore, it is very hard to obtain a detailed understanding of the physical processes responsible for the observed spectral features. In order to avoid these disadvantages of the CTQMC method, we employed two approximate methods derived in two opposite limits and able to consider the full Coulomb matrix for temperatures far below where the sharp resonance is observed. The spin-polarized T-matrix fluctuation exchange (SPTF) approximation is derived in the limit of weak and moderate correlations in which the interaction can be treated perturbatively. [@sptf1; @sptf2] Although SPTF is known not to capture Kondo-like physics properly, it can be used to test whether the resonance has some other many-body origin. The non-crossing approximation (NCA) is derived in the limit of strong correlations, where the hybridization is treated as a perturbation. [@nca1; @nca2] Note that the NCA is basically designed to capture (orbital and spin) Kondo-like processes and is therefore the ideal candidate to test for the orbital Kondo effect [@davidprl].

From the limits in which SPTF and NCA are derived, it is clear that both methods consider totally different physical processes. By using the recent CTQMC results as a benchmark, we are able to trace down the physical processes responsible for the high-energy spectral features, everything except the resonance. These are the particle-particle processes within SPTF. For the NCA it appeared that spin-polarized calculations suffer from spurious behavior at the Fermi level. Then, we turned to non spin-polarized calculations to avoid this unphysical behavior. By employing two plausible starting hybridization functions, it is observed that the characteristics of the resonance are crucially dependent on the starting point. It appears that only one of these starting hybridizations could result in an orbital Kondo resonance in the presence of a strong magnetic field like in the Cr(001) surface. However, to unambiguously establish this, first a thorough investigation is required in order to resolve the unphysical behavior at the Fermi level within the spin-polarized NCA. Such an investigation is out of the scope of this work.

In the following we first give a description of the SPTF and NCA methods. Then, we discuss the results of these methods and finally we make a conclusion.

Theory
======

Dynamical mean-field theory
---------------------------

Density functional theory (DFT) in its conventional local density approximation (LDA) or generalized gradient approximation (GGA) is known to be quite successful in predicting properties of real materials, i.e. structural properties, magnetic moments and band structures [@dft1; @dft2; @lda1; @lda2; @gga]. Since DFT is essentially a single particle approximation, and LDA and GGA are derived in the limit of a (nearly) uniform electron gas, this usually only holds for weakly correlated systems. For moderately and strongly correlated systems a proper treatment of correlation effects is missing. However, even for weakly correlated systems DFT will never be able to capture pure many-body effects like quasi-particle life-times or resonances.

At that time it was also realized that Hubbard-like models perform well in describing (strong) correlation effects, i.e. Mott-insulator transition and quasi-particle peaks. Therefore, the idea came to describe the delocalized weakly correlated electrons of a system within DFT and for the strongly correlated electrons add by hand the most important missing part. From experience with Hubbard-like models this missing part is the onsite Coulomb interaction. Thus, this leads to a generalized Hubbard model.

The main problem is to accurately solve this generalized Hubbard model for all interaction strengths. A huge breakthrough came with the discovery of the dynamical mean-field theory [@dmft1; @dmft2]. It was shown that in the limit of infinite dimensions or equivalently infinite nearest neighbors the self-energy becomes purely local. In other words in this limit only local diagrams survive leading to a k-independent self-energy. Since the topology of these diagrams are the same as those of an Anderson impurity model, the generalized Hubbard model can be mapped onto this model. The great advantage of this is that for the Anderson impurity model solvers exist. Thus, by peforming a mapping to the Anderson impurity model and then using one of the solvers, the local self-energy of the lattice problem (generalized Hubbard model) is obtained. This is a good approximation when the self-energy is purely local, i.e. in the limit of infinite nearest neighbors. However, from experience it is known that this limit is reached rather fast, already for two or three dimensions.

By using quantum Monte Carlo methods, for example continuous-time quantum Monte Carlo (CTQMC), the Anderson impurity model can be solved numerically exactly, i.e. all Feynmann diagrams are taken into account [@qmc1; @qmc2]. However, the quantum Monte Carlo methods also have several disadvantages. One of them is that low temperatures are very hard to access. Another, the consideration of the full Coulomb matrix becomes prohibitively expensive at low temperatures. Further, since all diagrams are considered, it becomes very hard to obtain a detailed understanding of which physical processes are responsible for the observed spectral features. To avoid these disadvantages, numerically efficient perturbative solvers have been developed that are able to consider the full Coulomb matrix at low temperatures. In the limit of weak or moderate correlations the iterative perturbation theory and spin-polarized T-matrix fluctuation exchange approach have been derived [@ipt; @sptf1; @sptf2]. For the limit of strong correlations, where the hybridization can be treated perturbatively, the non-crossing and one-crossing approximation have been formulated [@nca1; @nca2; @oca].

SPTF
----

The idea of SPTF is to find a numerically efficient approach for the Anderson impurity model in the limit of weak (and moderate) correlations. In order to achieve this, the interaction is treated perturbatively. More precisely, diagrams known to be dominant for systems with low electron densities (and short-range repulsive potential) and high electron densities are considered. Since SPTF is exact in these two limits, it is also thought to provide an accurate description for systems with intermediate densities. From a large variety of SPTF calculations, it has appeared that a qualitatively satisfactory description of weak and moderate correlated systems can be obtained. [@sptfig1; @sptfig2].

The dominant diagrammatic contribution for a low density electron system with short-ranged repulsive interaction comes from the ladder diagrams in the particle-particle channel. The particle-particle channel consists of electron-electron and hole-hole contributions. It can be shown that in the regime of low densities the former dominates the latter. The particle-particle contribution to the self-energy within SPTF is given by

$$\begin{gathered}
\Sigma_{m_{1},m_{2}}^{TH}(i\omega_{n})=\\
\frac{1}{\beta}\sum_{i\Omega_{m}}\sum_{m_{3},m_{4}}T_{m_{1},m_{3},m_{2},m_{4}}(i\Omega_{m})G_{m_{4},m_{3}}(i\Omega_{m}-i\omega_{n})\\
\Sigma_{m_{1},m_{2}}^{TF}(i\omega_{n})=\\
\frac{1}{\beta}\sum_{i\Omega_{m}}\sum_{m_{3},m_{4}}T_{m_{1},m_{4},m_{3},m_{2}}(i\Omega_{m})G_{m_{3},m_{4}}(i\Omega_{m}-i\omega_{n}).
\end{gathered}
\label{eqsptfpp}$$

Here $\beta$ is the inverse temperature, $G$ is the single particle Green’s function, the $m_{x}$ labels refer to the strongly correlated orbitals, $\Omega$ and $\omega$ are respectively bosonic and fermionic Matsubara frequencies. Further, $\Sigma_{m_{1},m_{2}}^{TH}$ and $\Sigma_{m_{1},m_{2}}^{TF}$ correspond to the Hartree and Fock contributions with an effective interaction defined in terms of the T-matrix

$$T(i\Omega_{m})=U-U\star \chi^{PP}(i\Omega_{m})\star T(i\Omega_{m}).
\label{Tmatrix}$$

This equation is in terms of 4 index matrices, where $\star$ represents the according matrix multiplication. The $U$ represents here the bare onsite Coulomb interaction and $\chi^{PP}$ has a convenient representation in imaginary time

$$\chi^{PP}_{m_{1},m_{2},m_{3},m_{4}}(\tau)=G_{m_{1},m_{3}}(\tau)G_{m_{2},m_{4}}(\tau).
\label{chipp}$$

Note that the contributions of Eq. \[eqsptfpp\] include all first and second order contributions in the bare interaction exactly.

In the high density electron limit the electron-hole bubble contributions become dominant, the random phase approximation. Besides this contribution there is another term known to be important for the description of magnetic fluctuations, the particle-hole ladder contribution. Both particle-hole contributions can be conveniently taken into account by introducing the following anti-symmetrized vertex

$$U^{AS}_{m_{1},m_{2},m_{3},m_{4}}=T_{m_{1},m_{2},m_{3},m_{4}}(0)-T_{m_{1},m_{2},m_{4},m_{3}}(0).
\label{asv}$$

Here the bare interaction has been replaced by the static value of the T-matrix of Eq. \[Tmatrix\], because these ladder particle-particle processes are known to be important for the renormalization of the interaction [@sptf1]. Then, the particle-hole contribution to the self-energy within SPTF can be written as

$$\Sigma_{m_{1},m_{2}}^{PH}(\tau)=\sum_{m_{3},m_{4}}W_{m_{1},m_{3},m_{4},m_{2}}(\tau)G_{m_{4},m_{3}}(\tau).
\label{eqsptfph}$$

Here the particle-hole fluctuation potential is given by

$$W(\Omega)=U^{AS} \star \chi^{PH}(i\Omega)\star \big[I-U^{AS} \star \chi^{PH}(i\Omega)\big]^{-1} \star U^{AS} - W_{2}(i\Omega),
\label{wph}$$

where the particle-hole susceptibility is

$$\chi^{PH}_{m_{1},m_{2},m_{3},m_{4}}(\tau)=-G_{m_{4},m_{1}}(-\tau)G_{m_{2},m_{3}}(\tau).
\label{chiph}$$

The term $W_{2}$ in Eq. \[wph\] is required to remove the second order contribution, which is already contained in Eq. \[eqsptfpp\].

NCA
---

The NCA is a numerically efficient solver for the Anderson impurity model derived in the limit of strong correlations. In this limit the hybridization can be treated perturbatively. However, the machinery of quantum field theory (Wick’s theorem) cannot be applied straightforwardly, because the zeroth order term contains the many-body onsite interaction term explicitly. The zeroth order term is given by $H_{imp}$ in the (multiple orbital) Anderson impurity model

$$\begin{gathered}
H=H_{imp}+H_{bath}+V_{hyb}\\
H_{imp}=\sum_{\alpha,\sigma}\epsilon_{\alpha\sigma}d_{\alpha\sigma}^{\dagger}d_{\alpha\sigma}+\\
\frac{1}{2}\sum_{\alpha,\beta,\alpha',\beta',\sigma,\sigma'}U_{\alpha\alpha'\beta\beta'}d_{\alpha\sigma}^{\dagger}d_{\alpha'\sigma'}^{\dagger}d_{\beta'\sigma'}d_{\beta\sigma}\\
H_{bath}=\sum_{k,\nu,\sigma}\epsilon_{k\nu\sigma}c_{k\nu\sigma}^{\dagger}c_{k\nu\sigma}\\
V_{hyb}=\sum_{k,\nu,\sigma}V_{k\nu,\alpha}\Big(d_{\alpha\sigma}^{\dagger}c_{k\nu\sigma}+c_{k\nu\sigma}^{\dagger}d_{\alpha\sigma}\Big).
\label{eqAIM}
\end{gathered}$$

Here $\epsilon_{\alpha\sigma}$ are the single-particle impurity energy levels and $U_{\alpha\alpha'\beta\beta'}$ is the onsite Coulomb repulsion between the impurity states. Further, $H_{bath}$ resprents the bath of non-interacting electrons whose dispersion is given by $\epsilon_{k\nu\sigma}$. The last term $V_{hyb}$ describes the coupling between the impurity and bath states.

By rewriting Eq. \[eqAIM\] in terms of pseudo-particles, the standard field theoretical perturbation theory can be employed again. Each pseudo-particle corresponds to a many-body eigenstate $|m\rangle$ and eigenenergy $E_{m}$ of the isolated impurity

$$H_{imp}=\sum_{m}E_{m}|m\rangle\langle m|.
\label{eqisimp}$$

Based on these eigenstates $|m\rangle$, pseudo-particle creation $a_{n}^{\dagger}$ and annihilation $a_{m}$ operators can be introduced with the following relation to the physical electron operators

$$d_{\alpha\sigma}=\sum_{n,m}F_{nm}^{\alpha\sigma}a_{n}^{\dagger}a_{m}.
\label{relphpp}$$

Here $F_{nm}^{\alpha\sigma}=\langle n|d_{\alpha\sigma}|m\rangle$ is the matrix element of the physical impurity electron operator. In terms of the pseudo-particle operators the Anderson impurity model is written as

$$\begin{gathered}
H=\sum_{m}E_{m}a_{m}^{\dagger}a_{m}+\sum_{k\nu\sigma}\epsilon_{k\nu}c_{k\nu\sigma}^{\dagger}c_{k\nu\sigma}\\
+\sum_{m,n,k,\nu,\alpha,\sigma}\big(V_{k\nu,\alpha}F_{nm}^{\alpha\sigma}c_{k\nu\sigma}^{\dagger}a_{m}^{\dagger}a_{n}+h.c.\big).
\label{eqAIMpp}
\end{gathered}$$

From this expression it is clear that the field theoretical perturbative techniques can be employed again, where the hybridization is now the interaction term. It describes the interaction among the pseudo-particles induced by the coupling to the bath electrons. Thus, the problem is to find a good approximation for the pseudo-particle self-energy $\Sigma_{m}(\omega)$ of the pseudo-particle propagator

$$G_{m}(\omega)=\big(\omega-\lambda-E_{m}-\Sigma_{m}(\omega)\big)^{-1}.
\label{greenpp}$$

Here $\lambda$ is the Lagrange multiplier of the Lagrangian constraint $\lambda(Q-1)$, which is required to ensure the completeness of the impurity eigenstates

$$Q=\sum_{m}a_{m}^{\dagger}a_{m}=1.
\label{constr}$$

Within NCA the pseudo-particle self-energy is approximated by an infinite resummation of diagrams with non-crossing conduction electron lines, which is exact to first order in the hybridization function

$$\Delta_{\alpha}(\omega)=\sum_{k,\nu}V_{k\nu,\alpha}^{\ast}g_{k\nu}V_{k\nu,\alpha}.
\label{ncahybfun}$$

Here $g_{k\nu}(\omega)=(\omega^{+}+\mu-\epsilon_{k\nu})^{-1}$ is the bare bath electron propagator. The diagrams included in NCA describe the processes where a single impurity electron (hole) hops to the bath and back. Hereby a pseudo-particle with $N+1$ ($N-1$) electrons is temporarily created. Notice that these processes are known to be responsible for the appearance of the Kondo peak at low enough temperatures. For completeness the expression for the pseudo-particle self-energy in NCA is given by

$$\begin{gathered}
\Sigma_{m}^{NCA}(\omega)=-\sum_{m',\alpha,\sigma}\Big[|F_{mm'}^{\alpha\sigma}|^{2}\int\frac{dv}{\pi}f(\nu)\Delta_{\alpha}^{"}(\nu)G_{m'}(\omega+\nu)\\
+|F_{m'm}^{\alpha\sigma}|^{2}\int\frac{dv}{\pi}f(-\nu)\Delta_{\alpha}^{"}(\nu)G_{m'}(\omega-\nu)\Big].
\label{selfnca}
\end{gathered}$$

Here $\Delta_{\alpha}^{"}(\nu)$ is the imaginary part of the hybridization function in Eq. \[ncahybfun\] and $f(\nu)$ is the Fermi function. After the pseudo-particle self-energies are obtained self-consistently, they need to be translated in order to obtain real physical quantities.

NCA is known to provide a good qualitative description of the Kondo resonance and Hubbard subbands [@nca1; @nca2]. Shortcommings are an underestimation of the Kondo temperature, an overestimation of the asymmetry and height of the Kondo resonance, and for temperatures much smaller than the Kondo temperature a spurious peak emerges at the Fermi level due to missing vertex corrections [@costi; @kura].

Computational details
---------------------

The DFT(+SPTF) calculations reported here were carried out using a full potential linear muffin-tin orbital (FP-LMTO) method [@RSPt_book]. The GGA parametrization of Perdew, Burke, and Ernzerhof was used [@gga]. The Brillouin zone was sampled through a conventional Monkhorst-Pack mesh of 20 x 20 x 1 [**[k]{}**]{}-points, leading to a total of 102 vectors in the irreducible wedge. The basis setup was the same for all calculations. For the definition of the muffin-tin sphere of Cr a radius of 2.23 a.u. is used. The main valence basis functions were chosen as 3d, 4s and 4p states, while 3s and 3p electrons were treated as core states [@RSPt_book]. Three kinetic energy tails were used for 4s and 4p states, corresponding to the default values 0.3, -2.3 and -0.6 Ry. Only the first tail is used for the 3d states. The use of a single tail is due to the choice of the construction of the correlated orbitals of the Anderson impurity model. These correlated orbitals are constructed from LMTOs, that have a representation involving structure constants, spherical harmonics, and a numerical radial representation inside the muffin-tin spheres. These functions are matched continuously and differentiably at the border of the muffin-tin spheres to Hankel or Neumann functions in the interstitial. The “ORT” basis originates from these native LMTOs after a Löwdin orthonormalization. The MT orbitals, instead, are atomic-like orbitals where the radial part comes from the solution of the radial Schrödinger equation inside the muffin-tin sphere at an energy corresponding to the ’center of gravity’ of the relevant energy band. For a more detailed description of the correlated orbital bases we refer to Ref. . There, it is also shown that they generally lead to very similar results. In this work the ORT basis is used.

As for the double counting within DFT+SPTF the orbitally averaged static part of the self-energy is used. For the parameterization of the onsite Coulomb interaction the constrained random phase approximation results of Ref.  are used. In their work a slab of 10 layers is considered for which they found the following onsite Coulomb interactions $U_{1/10}=3.44$ eV, $U_{2/9}=4.64$ eV, $U_{3/8}=4.73$ eV, $U_{4/7}=4.94$ eV and $U_{5/6}=4.95$ eV. Here the numbers indicate the layer of the slab, i.e. 1 and 10 are respectively the top and bottom layer. The Hund exchange interaction is constant $J=0.65$ eV.

In order to use the CTQMC results as a benchmark the Cr(001) surface is modelled in exactly the same way as in Ref. . This is a slab of 10 atomic layers with a vacuum of approximately 16 Å$ $ stacked in the z-direction and perdiodically continued in the x and y direction. This structure is optimized by allowing the atomic coordinates to relax in the z-direction. Further, we also break the symmetry in an anti-ferromagnetic way in the first iteration of the DMFT loop. Note that we also started the spin-polarized DMFT calculation on top of a converged non spin-polarized DFT (GGA) calculation. Just as the CTQMC calculations our calculations are not charge self-consistent. Also in accordance with the CTQMC calculations, is the application of a multi-site version of the DMFT method to model the slab of 10 atomic layers. On the Matsubara axis the lattice Green’s function within the multi-site version of DMFT is given by

$$\begin{gathered}
G_{\alpha \beta}^{ij}(i\omega_{n},{\bf k})^{-1}=\\
[ (i\omega_{n}+\mu)\delta_{\alpha \beta}- \Sigma_{\alpha \beta}^{i}(i\omega_{n}) ]\delta_{ij} - H({\bf k})_{\alpha \beta}^{ij}.
\label{muldmft}
\end{gathered}$$

Here $i$ and $\alpha$ refer to the local basis functions $|i,\alpha \rangle$ with $i$ and $\alpha$ respectively corresponding to the site and correlated orbital. The chemical potential is represented by $\mu$ and for completeness $ H({\bf k})_{\alpha \beta}^{ij}=\langle i,\alpha|H({\bf k})|j,\beta \rangle$. Further, $\Sigma_{\alpha \beta}^{i}(i\omega_{n})$ is the local self-energy, i.e. it is ${\bf k}$-independent and $i\neq j$ terms are zero. The double-counting correction is absorbed in the self-energy. In order to obtain the rest of the self-energy, an effective impurity model is solved for each Cr atom in the slab until self-consistency within the DMFT loop is reached. For this purpose at each DMFT iteration the following site dependent Weiss fields are computed

$$\mathcal{G}_{0,\alpha \beta}^{i}(i\omega_{n})^{-1}= G_{\alpha \beta}^{i}(i\omega_{n})^{-1} + \Sigma_{\alpha \beta}^{i}(i\omega_{n}).
\label{muldmft2}$$

Here $G(i\omega_{n})$ is the local lattice Green’s function, which is obtained by taking a ${\bf k}$-average of $G(i\omega_{n},{\bf k})$.

For the NCA calculations we did not use the multi-site DMFT version, since we performed only one-shot DMFT calculations. Then, the standard single-site version can be employed. For a one-shot NCA calculation we obtain the hybridization function and projected 3d-eigenvalues from a converged non spin-polarized GGA calculation. This GGA calculation is performed for the same geometry as described above. The double counting is about 13.5 eV in order to have a total of approximately 4.75 3d-electrons.

Results
=======

GGA
---

Before we study the many-body effects within DMFT on the spectral properties, we first consider the single-particle GGA approach. In Fig. \[ggafig\] the projected density of states of the 3d-states are plotted for a non spin-polarized and spin-polarized GGA calculation. These spectra are in very good agreement with what is reported in literature [@okon2; @okon6; @schuler]. For example the results of Ref. , for convenience presented here in Fig. \[CTQMCfig\]a and b, are very similar to our results in Fig. \[ggafig\]. The non spin-polarized calculation is convenient to make a rough estimate of the bandwidth. From the top figure of Fig. \[ggafig\] it can be observed that the bandwidth is about 7 eV. As mentioned above from constrained RPA calculations it is known that for the top surface layer the screened onsite correlations within these 3d-states is 3.44 eV. This suggests that the 3d-states of the Cr(001) surface are weakly/moderately correlated.

From the bottom figure of Fig. \[ggafig\] it is clear that inclusion of spin polarization has a huge effect on the spectral density. Further, the exchange induced spin splitting can be observed. By comparing Fig. \[ggafig\] (both non spin-polarized and spin-polarized) with experiment [@arpes1; @arpes2; @arpes3; @okon1; @okon2; @okon3; @okon4], it can be concluded that GGA is not able to account for the resonance. For the non spin-polarized case the peaks at the Fermi level are too high and broad, and the orbital character is not in accordance with experiment [@okon4]. On the other hand for the spin-polarized case there is no peak at the Fermi level.

![The 3d projected partial density of states is plotted for a non spin-polarized (top) and a spin-polarized GGA calculation (bottom). Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*. []{data-label="ggafig"}](GGA_NSP.eps "fig:"){width="9cm"} ![The 3d projected partial density of states is plotted for a non spin-polarized (top) and a spin-polarized GGA calculation (bottom). Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*. []{data-label="ggafig"}](GGA_SP.eps "fig:"){width="9cm"}

SPTF
----

Since CTQMC is in principle exact we use it as a benchmark for our approximate solvers. More precisely, we compare our results with those of Ref.  presented here in Figs. \[CTQMCfig2\] and \[CTQMCfig\]. In the former the local spin averaged 3d partial density of states is shown for non spin-polarized and spin-polarized GGA, and DMFT. For DMFT also the temperature dependence of the feature at the Fermi level (zero energy) is depicted. Here $\beta$ refers to the inverse temperature. The latter contains the local 3d projected, *$d_{z^{2}}$*, *$d_{x^{2}-y^{2}}$*, *$d_{xz}$*/*$d_{yz}$* and *$d_{xy}$*, partial density of states for non spin-polarized and spin-polarized GGA, and DMFT at two different inverse temperatures.

![The CTQMC local spin averaged 3d partial density of states for different methods and inverse temperatures, $\beta=20$ eV$^{-1}$ (dashed red), $\beta=40$ eV$^{-1}$ (solid black) and $\beta=60$ eV$^{-1}$ (solid magenta) of Ref. . []{data-label="CTQMCfig2"}](CTQMC2.eps){width="9cm"}

In order to compare SPTF with CTQMC, the local spin averaged 3d partial density of states is calculated within SPTF for different double countings (see Fig. \[SPTF\_dc\]) at $\beta=20$ eV$^{-1}$. From a comparison with Fig. \[CTQMCfig2\]a (solid black line) it can be observed that for the double countings $13.8$ and $13.5$ eV the height of the feature at the Fermi level is underestimated with respect to the main peak at about $1$ eV. On the other hand for the $12.7$ eV double counting the agreement is very good. There is only a slight mismatch in the position of the feature at the Fermi level. This mismatch will be addressed below in more details.

![The CTQMC 3d projected partial density of states of Ref. . Here the top two figures are for non spin-polarized and spin-polarized GGA and the bottom figures for CTQMC at two different inverse temperatures, $\beta=20$ eV$^{-1}$ (c), $\beta=40$ eV$^{-1}$ (d). Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*. []{data-label="CTQMCfig"}](CTQMC.eps){width="9cm"}

It becomes even more clear that SPTF for $12.7$ eV double counting is in good agreement with CTQMC, while that of $13.8$ eV is not, from an inspection of the local 3d projected density of states. In Fig. \[SPTF\_proj\] the local 3d partial density of states projected on *$d_{z^{2}}$*, *$d_{x^{2}-y^{2}}$*, *$d_{xz}$*/*$d_{yz}$* and *$d_{xy}$* is shown for $13.8$ (top) and $12.7$ eV (bottom) double counting within SPTF for $\beta=20$ eV$^{-1}$. From a comparison with the CTQMC results in Fig. \[CTQMCfig\]c (for the same inverse temperature) it is clear that SPTF with $12.7$ double counting is in very good agreement, while that of $13.8$ is not. For example, the calculation for $13.8$ double counting wrongly predicts the main contribution of the feature at the Fermi level to be of majority *$d_{z^{2}}$* type. For the $12.7$ double counting the main contribution is correctly predicted to originate from the minority *$d_{z^{2}}$* channel. However, it should be noted that its contribution is a bit underestimated with respect to CTQMC. Also the majority *$d_{z^{2}}$* state seems to be a bit too close to the Fermi level. Furthermore, the broad features around $-1$ and $+1$ eV are in good agreement with CTQMC.

![The local spin averaged 3d partial density of states within SPTF for different double countings at $\beta=20$ eV$^{-1}$. []{data-label="SPTF_dc"}](SPTF_dc.eps){width="9cm"}

As mentioned earlier in CTQMC the treatment of the full Coulomb matrix becomes prohibitively expensive at low temperatures. Therefore, in Ref.  only density-density terms of the local Coulomb interaction are considered. It is interesting to see what the influence of this approximation is on the spectrum. For this purpose a SPTF calculation is performed with full and density-density only local Coulomb interaction. In Fig. \[SPTF\_full\_dd\] the local spin averaged 3d partial density of states is depicted for these two calculations, where a $12.7$ eV double counting and $\beta=20$ eV$^{-1}$ was used. From this figure it can be observed that the consideration of the full Coulomb matrix and density-density terms only leads to very similar results. Only the peaks around $-1$ and $+1$ eV are slightly different.

![The local 3d projected density of states within SPTF for $13.8$ eV (top) and $12.7$ eV (bottom) double counting at $\beta=20$ eV$^{-1}$. Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*. []{data-label="SPTF_proj"}](SPTF_proj_dc1.eps "fig:"){width="9cm"} ![The local 3d projected density of states within SPTF for $13.8$ eV (top) and $12.7$ eV (bottom) double counting at $\beta=20$ eV$^{-1}$. Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*. []{data-label="SPTF_proj"}](SPTF_proj_dc090.eps "fig:"){width="9cm"}

It also interesting to investigate the temperature dependence of the spectral feature close to the Fermi level. For the CTQMC calculations this is presented in Fig. \[CTQMCfig2\]. Here the feature shifts towards the Fermi level for increasing temperature (decreasing $\beta$). For SPTF the temperature dependent results are shown in Fig. \[SPTF\_T\], where for $12.7$ eV double counting the local spin averaged 3d partial density of states is presented for two different inverse temperatures $\beta=14.7$ eV$^{-1}$ (black) and $\beta=62.5$ eV$^{-1}$ (red). From this figure it can be observed that in contrast to the CTQMC results the position of this spectral feature shifts closer to the Fermi level for decreasing temperature. Thus, part of the mismatch in the position of the spectral feature at the Fermi level (between CTQMC and SPTF) is due to the different temperature dependence. Probably the rest of the mismatch is caused by the difference in double counting.

![The local spin averaged 3d partial density of states within SPTF with full (black) and density-density only Coulomb interaction (red) at $\beta=20$ eV$^{-1}$ for $12.7$ eV double counting. []{data-label="SPTF_full_dd"}](SPTF_dc090_full_dd.eps){width="9cm"}

![The local spin averaged 3d partial density of states within SPTF at two different inverse temperatures $\beta=14.7$ eV$^{-1}$ (black) and $\beta=62.5$ eV$^{-1}$ (red) for $12.7$ eV double counting and full Coulomb interaction. []{data-label="SPTF_T"}](SPTF_dc090_T.eps){width="9cm"}

The next step is to perform SPTF calculations for temperatures at which the sharp resonance at the Fermi level is observed experimentally, roughly below 100 K. Therefore, we performed calculations for temperatures as low as 15 K. The results are not shown here, because they are essentially the same as for $\beta=62.5$ eV$^{-1}$ ($T=185.7$ K) shown in Fig. \[SPTF\_T\]. Thus, the occurence of a sharp resonance at low temperatures is not observed within SPTF. From this result and the good agreement between SPTF and CTQMC at higher temperatures, it can be concluded that the high-energy spectral features, everything except the resonance, are mainly due to the physical processes captured within SPTF.

In order to obtain an even more detailed understanding of which physical processes are dominant for the high-energy spectral features, we performed additional SPTF calculations with particle-hole processes excluded. This means that the contribution of Eq. \[eqsptfph\] is not included anymore and only particle-particle processes are considered. In Fig. \[SPTF\_pponly\] the local spin averaged 3d partial density of states is shown (top figure) of a SPTF calculation with both particle-particle and particle-hole processes included (black) and one with only particle-particle processes considered (red). The bottom figure of Fig. \[SPTF\_pponly\] contains the local 3d projected density of states for SPTF with only particle-particle processes considered. All these calculations are for $\beta=20$ eV$^{-1}$, $12.7$ eV double counting and full Coulomb interaction. Thus, from a comparison of Figs. \[CTQMCfig2\]a and \[CTQMCfig\]c with Figs. \[SPTF\_dc\], \[SPTF\_proj\] and \[SPTF\_pponly\] it appears that the particle-particle processes provide the main contribution to the high-energy spectral features.

![In the top figure the local spin averaged 3d partial density of states is presented for full SPTF (black) and SPTF with only particle-particle processes (red). The bottom figure contains the local 3d projected density of states for the SPTF with only particle-particle processes. Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*. All these calculations are for $\beta=20$ eV$^{-1}$ and $12.7$ eV double counting. []{data-label="SPTF_pponly"}](SPTF_dc090_pponly.eps "fig:"){width="9cm"} ![In the top figure the local spin averaged 3d partial density of states is presented for full SPTF (black) and SPTF with only particle-particle processes (red). The bottom figure contains the local 3d projected density of states for the SPTF with only particle-particle processes. Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*. All these calculations are for $\beta=20$ eV$^{-1}$ and $12.7$ eV double counting. []{data-label="SPTF_pponly"}](SPTF_dc090_proj_pponly.eps "fig:"){width="9cm"}

Finally, it is also interesting to have a more detailed understanding of how the peaks of the non spin-polarized GGA spectrum (Fig. \[ggafig\]) are renormalized due to the inclusion of the many-body processes on the level of SPTF. For this purpose the real and imaginary part of the local 3d projected self-energy is presented in Fig. \[sigfig\]. This figure is for a full SPTF calculation with $12.7$ eV double counting, $\beta=20$ eV$^{-1}$ and full Coulomb interaction. From this figure it can be observed for example that the minority *$d_{z^{2}}$* peak at the Fermi level (see the bottom figure of Fig. \[SPTF\_proj\]) is a renormalization of the *$d_{z^{2}}$* peak at about $-3$ eV of the non spin-polarized GGA spectrum. On the other hand the majority *$d_{z^{2}}$* peak at about $0.3$ eV is due to a renormalization of the broad peak at about $1$ eV of the non spin-polarized GGA spectrum.

![The local 3d projected real (top) and imaginary (bottom) part of the self-energy is depicted for a full SPTF calculation with $\beta=20$ eV$^{-1}$, $12.7$ eV double counting and full Coulomb interaction. Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*. []{data-label="sigfig"}](SPTF_dc090_ReSig_proj.eps "fig:"){width="9cm"} ![The local 3d projected real (top) and imaginary (bottom) part of the self-energy is depicted for a full SPTF calculation with $\beta=20$ eV$^{-1}$, $12.7$ eV double counting and full Coulomb interaction. Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*. []{data-label="sigfig"}](SPTF_dc090_ImSig_proj.eps "fig:"){width="9cm"}

NCA
---

We use the NCA scheme to investigate the formation of orbital Kondo-like resonances in the Cr(001) surface at very low temperature. From ferromagnetic NCA calculations with a large spin-splitting of the order of 6 eV (see Fig. \[NCAfer\]) we observed a spurious sharp resonance at the Fermi level. In Fig. \[NCAfer\] this spurious behaviour can be observed for a one-shot spin-polarized NCA calculation, i.e. the hybridization function and projected 3d-eigenvalues are obtained from a spin-polarized GGA calculation. The behaviour is spurious, since there is a resonance in the orbitally (and spin) non-degenerate $d_{x^{2}-y^{2}}$ state. Note that the (orbital) Kondo effect is based on a degenerate state. Moreover the self-energy becomes positive, i.e. non-causal. The reason for the occurence of this unphysical behaviour in magnetic NCA calculations is explained in Ref.  in terms of missing vertex corrections. Or equivalently, in the presence of a magnetic field, the accidental cancellation at the Kondo temperature of the diverging potential and spin scattering contributions is lifted. Since for non-magnetic NCA this cancellation is complete, there is no unphysical behavior at the Fermi level. Therefore, we restrict ourself in the rest of this work to the non-magnetic Cr(001) case.

![The 3d projected partial density of states within NCA for $\beta=100$ eV$^{-1}$. Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*.[]{data-label="NCAfer"}](NCA_T001.eps){width="9cm"}

From the non-magnetic NCA calculations it appears that the results crucially depend on the behavior of the hybridization function near the Fermi level. In order to demonstrate this, we used two versions of the non self-consistent calculations, which give drastically different spectral functions near the Fermi level. The first one consists of the hybridization function $\Delta$ calculated from the standard non-interacting impurity problem [@dmft1; @dmft2] $$G_{imp}^{-1}(i\omega_{n})=i\omega_{n}-\mu - \Delta(i\omega_{n}).
\label{imp}$$ The second approach is based on the Bethe-lattice approximation [@dmft1] with some adjustable Bethe-hopping $t_B$ $$\Delta(i\omega_{n})=t^{2}_B G_{imp}(i\omega_{n}).
\label{bethe}$$ In this case we used $t_B$ as a scaling parameter in order to have a similar magnitude for the hybridization function as the ones obtained directly from the impurity GGA calculations. The main reason to check these models is related to the very different behavior of the hybridization function near the Fermi level in these two cases: while in the impurity-model we get mainly the $d_{z^{2}}$ and $d_{x^{2}-y^{2}}$ orbitals at $E_F$, in the Bethe-lattice model the main peaks are related with the [$d_{xz}$]{}/[$d_{yz}$]{} and $d_{xy}$ orbitals, which is clearly seen from the non-magnetic projected partial density of states (Fig. \[ggafig\]).

Results for the NCA calculations of the non-magnetic Cr(001) surface for both models are presented in Fig. \[NCAM\]. It is quite unusual that results are crucially dependent on the models for the hybridization function: while for the impurity model we have two Kondo-like resonances in the [$d_{z^{2}}$ and $d_{x^{2}-y^{2}}$ orbitals at $E_F$, for the Bethe-lattice model there is a single broader Kondo resonance in the degenerate [$d_{xz}$]{}/[$d_{yz}$]{} orbitals. The latter corresponds to a strong SU(4) spin-orbit resonance and will reduce to a weaker SU(2) orbital Kondo resonance in the strong magnetic field from the ferromagnetic Cr(001) surface. The former two SU(2) spin resonances in the $d_{z^{2}}$ and $d_{x^{2}-y^{2}}$ orbitals will be killed by a strong magnetic field. Thus, only for the Bethe-lattice model an orbital Kondo resonance could occur in the presence of a strong magnetic field. However, self-consistent spin-polarized NCA calculations for the ferromagnetic state of the Cr(001) surface are needed to unambiguously verify this. Since the present spin-polarized NCA approach suffers from spurious behavior at the Fermi level (Fig. \[NCAfer\]), first a thorough investigation of the missing vertex corrections is required to resolve this issue. Such an investigation is out of the scope of this work. It is therefore for future investigations to show a possibility of a self-consistent solution of orbital $d_{xz}$]{}/[$d_{yz}$]{} Kondo states in realistic DMFT calculations. We expect that the final hybridization function will be crucially dependent on the starting point which will explain the CTQMC results that used the standard impurity model [@schuler].

![The 3d projected partial density of states within NCA for different hybridization functions in non-magnetic Cr(001) for $\beta=100$ eV$^{-1}$. The top figure is for the impurity model and the bottom is for the Bethe-lattice model. Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*.[]{data-label="NCAM"}](NCA_para_PARhyb1.eps "fig:"){width="9cm"} ![The 3d projected partial density of states within NCA for different hybridization functions in non-magnetic Cr(001) for $\beta=100$ eV$^{-1}$. The top figure is for the impurity model and the bottom is for the Bethe-lattice model. Here blue corresponds to *$d_{z^{2}}$*, magenta to *$d_{x^{2}-y^{2}}$*, black to *$d_{xz}$*/*$d_{yz}$* and red to *$d_{xy}$*.[]{data-label="NCAM"}](NCA_para_pdoshyb1.eps "fig:"){width="9cm"}

Discussion and conclusion
=========================

In this work we addressed the spectral properties of a Cr(001) surface and in particular the physical origin of the experimentally observed resonance close to the Fermi level at low temperatures. In the literature a single particle $d_{z_{2}}$ surface state renormalized by electron-phonon coupling and the orbital Kondo effect due to the degenerate *$d_{xz}$* and *$d_{yz}$* states are proposed as two possible origins of this resonance. Recent continuous time quantum Monte Carlo calculations within the dynamical mean-field theory already indicated the many body nature of the feature at the Fermi level. However, the precise physical origin of the feature remained unknown. Further, temperatures at which the resonance is experimentally observed could not be reached and only the density-density terms of the Coulomb matrix were considered.

Therefore, we employed two approximate methods within the dynamical mean-field theory in order to access low temperatures for the full Coulomb matrix and to consider specific physical processes only. First, the spin-polarized T-matrix fluctuation exchange approximation is used, which considers specific scattering processes by treating the onsite Coulomb interaction perturbatively. This method is known to be good for weakly and moderately correlated systems. Second, the non-crossing approximation which is derived in the limit of weak hybridization (strongly correlated systems) and considers Kondo-like processes.

By using the recent continuous-time quantum Monte Carlo calculations as a benchmark, we found that the high-energy features, everything except the experimentally observed resonance at the Fermi level, of the spectrum is captured within the spin-polarized T-matrix fluctuation exchange approximation. More precisely the particle-particle processes provide the main contribution. The occurence of a resonance even at temperatures as low as 15 K was not observed within this approximation.

For the non-crossing approximation we found that magnetic calculations lead to a spurious resonance at the Fermi level. Therefore, in order to avoid this unphysical behavior we performed additional non-magnetic calculations. By using two plausible starting hybridization functions, it is shown that the characteristics of the resonance at the Fermi level are crucially dependent on the starting point. For example, in one case a Kondo-like resonance was obtained in the spin degenerate [$d_{z^{2}}$ and $d_{x^{2}-y^{2}}$ orbitals, while in the other case in the spin and orbital degenerate $d_{xz}$/[$d_{yz}$]{} orbitals. The latter corresponds to a strong SU(4) spin-orbit resonance and will reduce to a weaker SU(2) orbital Kondo resonance in the strong magnetic field from the ferromagnetic Cr(001) surface. The former two SU(2) spin resonances in the $d_{z^{2}}$ and $d_{x^{2}-y^{2}}$ orbitals will be killed by a strong magnetic field. Since we cannot do self-consistent calculations within the present NCA approach for the ferromagnetic state of the Cr(001) surface, it will be very interesting for future investigations to show a possibility of a self-consistent solution of orbital $d_{xz}$]{}/[$d_{yz}$]{} Kondo states in realistic DMFT calculations. Before such an investigation can be conducted, a thorough inspection of the missing vertex corrections within the spin-polarized non-crossing approximation is required in order to resolve the spurious behavior at the Fermi level.

Acknowledgements {#acknowledgements .unnumbered}
----------------

We acknowledge support from the Swedish Research Council (VR), eSSENCE, STANDUPP, and the Swedish National Allocations Committee (SNIC/SNAC). The Nederlandse Organisatie voor Wetenschappelijk Onderzoek (NWO) and SURFsara are acknowledged for the usage of the LISA supercomputer and their support. The calculations were also performed on resources provided by the Swedish National Infrastructure for Computing (SNIC) at the National Supercomputer Center (NSC) and the Uppsala Multidisciplinary Center for Advanced Computational Science (UPPMAX). M.I.K. acknowledges a support by European ResearchCouncil (ERC) Grant No. 338957. A.I.L. acknowledges a support from DFG-SFB668. M.K. acknowledges financial support from the Deutsche Forschungsgemeinschaft (DFG) via FOR Grant No. 1162.

[49]{} J. Sólyom and A. Zawadowski, Phys. Kondens. Mater. [**7**]{}, 325 (1968), https://doi.org/10.1007/BF02422778. A. Zawadowski, Phys. Rev. [**163**]{}, 341 (1967). J. A. Appelbaum and W. F. Brinkman, Phys. Rev. B [**2**]{}, 907 (1970). P. LeClair, J. T. Kohlhepp, H. J. M. Swagten, and W. J. M. de Jonge, Phys. Rev. Lett. [**86**]{}, 1066 (2001). X. Qi and S. Zhang, Rev. Mod. Phys. [**83**]{}, 1057 (2011).

L. E. Klebanoff, S. W. Robey, G. Liu, and D. A. Shirley, Phys. Rev. B [**30**]{}, 1048 (1984). L. E. Klebanoff, S. W. Robey, G. Liu, and D. A. Shirley, Phys. Rev. B [**31**]{}, 6379 (1985). L. E. Klebanoff, R. H. Victora, L. M. Falicov, and D. A. Shirley, Phys. Rev. B [**32**]{}, 1997 (1985). J. A. Stroscio, D. T. Pierce, A. Davies, R. J. Celotta, and M. Weinert, Phys. Rev. Lett. [**75**]{}, 2960 (1995). P. Habibi, C. Barreteau, and A. Smogunov, J. Phys.: Condens. Matter [**25**]{}, 146002 (2013).

O. Y. Kolesnychenko, R. de Kort, M. I. Katsnelson, A. I. Lichtenstein, and H. van Kempen, Nature [**415**]{}, 507 (2002). O. Y. Kolesnychenko, G. M. M. Heijnen, A. K. Zhuravlev, R. de Kort, M. I. Katsnelson, A. I. Lichtenstein, and H. van Kempen, Phys. Rev. B [**72**]{}, 085456 (2005). T. Hänke, M. Bode, S. Krause, L. Berbil-Bautista, and R. Wiesendanger, Phys. Rev. B [**72**]{}, 085453 (2005). M. Budke, T. Allmers, M. Donath, and M. Bode, Phys. Rev. B [**77**]{}, 233409 (2008). G. Adhikary, R. Bindu, S. Patil, and K. Maiti, Appl. Phys. Lett. [**100**]{}, 042401 (2012). M. Schüler, S. Barthel, M. Karolak, A. I. Poteryaev, A. I. Lichtenstein, M. I. Katsnelson, G. Sangiovanni, and T. O. Wehling, Phys. Rev. B [**93**]{}, 195115 (2016).

E. Gorelov, T. O. Wehling, A. N. Rubtsov, M. I. Katsnelson, and A. I. Lichtenstein Phys. Rev. B [**80**]{}, 155132 (2009). E. Gorelov, J. Kolorenč, T. Wehling, H. Hafermann, A. B. Shick, A. N. Rubtsov, A. Landa, A. K. McMahan, V. I. Anisimov, M. I. Katsnelson, and A. I. Lichtenstein, Phys. Rev. B [**82**]{}, 085117 (2010).

M. I. Katsnelson and A. I. Lichtenstein, Eur. Phys. J. B [**30**]{}, 9 (2002). L. V. Pourovskii, M. I. Katsnelson, and A. I. Lichtenstein, Phys. Rev. B [**72**]{}, 115106 (2005).

P. Coleman, Phys. Rev. B [**29**]{}, 3035 (1984). T. Pruschke, D. L. Cox, and M. Jarrell, Phys. Rev. B [**47**]{}, 3553 (1993).

M. Karolak, D. Jacob, and A. I. Lichtenstein, Phys. Rev. Lett. [**107**]{}, 146604 (2011).

P. Hohenberg and W. Kohn, Phys. Rev. **136**, B864 (1964). W. Kohn and L. J. Sham, Phys. Rev. **140**, A1133 (1965) J. P. Perdew, *Electronic Structure of Solids* (Akademie, 1991). J. P. Perdew and Y. Wang, Phys. Rev. B **45**, 13244 (1992). J. P. Perdew, K. Burke and M. Ernzerhof, Phys. Rev. Lett. **77**, 3865-3868 (1996). A. Georges, G. Kotliar, W. Krauth and M. J. Rozenberg, Rev. Mod. Phys. **68**, 13 (1996). G. Kotliar, S. Y. Savrasov, K. Haule, V. S. Oudovenko, O. Parcollet, and C. A. Marianetti, Rev. Mod. Phys. **78**, 865 (2006).

P. Werner and A. J. Millis, Phys. Rev. B [**74**]{}, 155107 (2006). P. Werner, A. Comanac, L. de Medici, M. Troyer, and A. J. Millis, Phys. Rev. Lett. [**97**]{}, 076405 (2006). X. Y. Zhang, M. J. Rozenberg, and G. Kotliar, Phys. Rev. Lett. [**70**]{}, 1666 (1993). K. Haule, S. Kirchner, J. Kroha, and P. Wölfle, Phys. Rev. B [**64**]{}, 155111 (2001).

A. Grechnev, I. Di Marco, M. I. Katsnelson, A. I. Lichtenstein, J. Wills, and O. Eriksson, Phys. Rev. B [**76**]{}, 035107 (2007). I. Di Marco, J. Minár, S. Chadov, M. I. Katsnelson, H. Ebert, and A. I. Lichtenstein, Phys. Rev. B [**79**]{}, 115111 (2009).

T. A. Costi, J. Kroha, and P. Wölfle, Phys. Rev. B [**53**]{}, 1850 (1996). Y. Kuramoto and H. Z. Kojima, Z. Phys. B. [**57**]{}, 95 (1984).

J. M. Wills, M. Alouani, P. Andersson, A. Delin, O.Eriksson, and O. Grechnyev, *Full-Potential Electronic Structure Method* (Springer, 2010).

E. Şaş[i]{}oğlu , C. Friedrich, and S. Blügel, Phys. Rev. Lett. [**109**]{}, 146401 (2012).

J. Kroha and P. Wölfle, J. Phys. Soc. Jpn. [**74**]{}, 16 (2005).


Accelerate your career in conservation or ecology

Welcome to the #1 careers advice centre for successful conservationists and ecologists. Do you want to spend your career helping wildlife to flourish, but are feeling a little lost, disillusioned or stuck? Start your membership today to get hired quicker, and:

Our Latest Careers Advice

Mark Thomas works as Senior Field Staff for Crees Manu – teaching and training the next generation of conservation enthusiasts, dedicated to protecting the Amazon and its people. Mark is from Brighton, London in the UK and after working in a bank for nine years, he decided he wanted something different out of life. He explained

Before I met Georgina, I’d heard a lot about her. People were always talking about how determined she was to make a difference to the lives of animals around the world. I spoke with her a lot before I met her too. She talked me through three gruelling months of practical welfare work in Vietnam.

With over 800 species of birds in South Africa and over 100 of them threatened, where do you start with trying to conserve them? Growing up in South Africa, Mark Anderson was taken out into the bush for days on end by his grandfather and from an early age he knew that he wanted to

Lion

SUITABLE FOR: For people who want jobs, promotion, a more detailed understanding all their career options, training and support.

JOB SEEKER PACKAGE

Access all Job Vacancies

Create Personal Job Alerts

Bookmark Jobs & add notes

Use Internet Jobs Search Portal

CV PROMOTION PACKAGE

Add CV to Talent Pool

Twitter Broadcast Option

CAREER ACADEMY PACKAGE

Access the support forum

12-week Career Bootcamp

Download Career eBook

Mine 5k+ Job Archive

Frequently Asked Questions

Can you help me to switch my career into conservation?

Yes! We can help you to understand your career options, the training needed (if any), and to make a plan to turn your dreams into action. We’re also here to help you every step of the way. If you have a question you can just ask.

How long will my membership last?

There is no minimum or maximum term for your membership. You can easily cancel at any time. If you cancel within your first month (the free trial period) you will not be charged.

What is the payment cycle?

Membership payments are either monthly or six-monthly – depending upon which one you choose. They can be easily cancelled at any time, and you can get a refund if you’re not 100% happy within the first seven days of taking out a membership. No questions asked.

We are the biggest conservation job portal on the internet, and list around 6,000 vacancies from around the globe each year. The most frequent countries are USA, UK, Canada, South Africa, New Zealand and Australia.

Why are you charging for access to your website?

Conservation Careers has been built on the good will of a global group of dedicated and passionate volunteers, and a wider community of conservationists who believe in what we’re doing. Collectively we have spent over 1,500 hours developing the site, speaking to conservationists, and collating the best careers advice around. In order to produce a sustainable, high-quality service we now need to invest in staff time and web development.

How is the membership revenue used?

All revenue from memberships is reinvested in staff time and website development work – continually making Conservation Careers the best it can be for you.

What can I get for free?

You can access all our careers advice and featured job vacancies for free, without any logins required. Looking for conservation training courses? Check out our free membership level which gives you access to the biggest collection of career-boosting training courses for conservationists. This includes nearly, 2,000 Degrees, Masters, Online Courses and much more, from around the globe. Find out more here.

Who do I contact if I want to find out more?

If you’ve got something to ask, or just want to say hello, please email us at [email protected].

FREE guide for conservation job-hunters and career-switchers!

Download your free your free guide jam-packed with honest, accurate and useful advice for those seeking to conserve the environment through their work. It includes top career tips based on interviews with 342 professional conservationists from around the world with over 1,734 combined years of experience. If you're hunting for a job, or looking to switch careers into conservation, it's a must read.

Free Guide | How to apply for a conservation job

What are the 10 key steps to the application process? From deciding to apply through to submitting your application.

How do I create stand-out applications? With real-life examples of before and after applications.

Which CV or Resume style is right for me? Using a series of templates and examples to help you choose.

Throughout the eBook, you’ll find exercises, tips and links to extra resources. You can work through the guide from beginning to end, or jump to the sections you need most.

Download your free copy below!

Email Address

First Name

I have read the T&Cs and Privacy Policy

Yes

This website uses cookies to store information on your computer. Details of the cookies we use and what you can do to switch them off are are in our Privacy Policy. By using our website you accept the terms of our Privacy Policy. Click here to view our Privacy Policy


package io.funcqrs.backend

import java.util.NoSuchElementException

import io.funcqrs._
import io.funcqrs.config.{ AggregateConfig, ProjectionConfig }

import scala.language.higherKinds
import scala.reflect.ClassTag

trait Backend[F[_]] extends AggregateFactory[F] {

  /** Configure a Aggregate */
  def configure[A: ClassTag, C, E, I <: AggregateId](config: AggregateConfig[A, C, E, I]): Backend[F]

  def configure[O, E](config: ProjectionConfig[O, E]): Backend[F]

  protected def configLookup[A: ClassTag, C, E, I](lookup: => AggregateConfig[A, C, E, I]) = {
    try {
      lookup
    } catch {
      case _: NoSuchElementException =>
        val cls = ClassTagImplicits[A]
        throw new MissingAggregateConfigurationException(s"No configuration found for ${cls.runtimeClass.getSimpleName}")
    }
  }
}