text:
Mhara Rajasthan
Rajasthan is the best tourist destination in India for traveling experience. Rajasthan has many famous tourist attractions like Jaipur, Jodhpur, Udaipur, Bikaner, Jaisalmer, Pushkar, Mount Abu and Ajmer.
Explore Fascinating Rajasthan Sightseeing Tour Attractions in India
Rajasthan is an unforgettable location which is a favorite among tourists from India and abroad. A place filled with ancient history, culture, and rituals it has a mesmerizing appeal and is one of the best places to visit in India with Mhara Rajasthan. The state is full of magnificent buildings and edifices which speak about the proud Rajasthani culture and heritage.
Among tourist places in India, it has a special place in everyone's heart. The capital is Jaipur, also called The Pink City. It was painted in this vibrant color to welcome Queen Victoria is late 19th century. There are many spectacular places to visit in Jaipur such as Amer Fort, Hawa Mahal, and City Palace.
Besides Jaipur, there are a plethora of locations to discover here.
Jodhpur – Known as the Gateway to Thar it is one of the most unique places that anybody can visit. It is also known at times as the Blue City since from top of the hill it can be seen that most of the houses are painted blue. The massive Mehrangarh Fort is the most crucial attraction of Jodhpur. The other vital tourists' attraction is the Umaid Bhavan Palace. Built by Maharaja Umaid Singh in 1944 it was the last palace to be made. It is now a luxury hotel which is world famous.
Ajmer – The city which is known for its history and ancient architecture has been home to many different religions. The most notable place to visit is the resting place or dargah of Khwaja Moinuddin Chishti a Sufi saint from Persia who made this place is home. He is equally revered by Hindus and Muslims, and daily thousands make their way to this shrine.
From Ajmer, it is a short distance to Pushkar Lake and the Brahma Temple, the only temple in India to this deity. Ajmer is about 135 km from Jaipur.
Udaipur – The City of Lakes is, without doubt, one of the most tranquil places in India. The city is loved by everyone who visits here. The Lake Palace is the crowning glory of this place and situated in the middle of Lake Pichola. The other famous spot to visit is Lake Jaisamand, which is one of the largest freshwater lakes in Asia.
The beautiful City Palace and Monsoon Palace of Sajjangarh which is about 40 k away is a draw for tourists who visit during Rajasthan sightseeing packages.
For anyone who wants to understand the unique culture of the subcontinent, there is no place like Rajasthan. The beauty of the land is further augmented by the friendly nature of the people and the warm hospitality they extend to all.
For regular travel updates please visit on our social pages:
Facebook | Twitter | LinkedIn | Instagram | Blog
best places to visit in India places to visit in india Rajasthan sightseeing packages tour packages in india tourist attractions in India tourist places in India travel agency in india
Explore Golden Triangle Tour with Khajuraho in India
The three cities Delhi, Agra and Jaipur are covered by a trip known popularly as golden triangle tours India . These three cities are immensely important as many dynasties ruled over them and left behind magnificent edifices. The cities are relatively close to each other and reached quickly by road and rail. Delhi: Delhi is the symbol of India being the capital of the nation. Old Delhi has been inhabited for close to a thousand years and been known by different names down the ages. There are literally countless places to visit, and it would need a long time to see them all. One of the most interesting places in Delhi is the Red Fort. It was the residence of Mughal Emperors from 1650 AD. Also known as Lal Qila it was built by Shah Jahan and its majestic outer walls stretch more than a mile and half. The architectural style is Mughal and heavily influenced by Persian culture. Near Nehru Place, there is a colossal temple built by the Bahai faith which is in shap
Experience Amazing Rajasthan Tour And Attractions with Mhara Rajasthan
The rich culture and history of Rajasthan have attracted millions of tourists every year, and it has become a favored destination for celebrity and destination weddings. With some of the most impressive historical sites and palaces, it is a wonderful place to visit with Mhara Rajasthan . The list of places that can be included in the amazing Rajasthan tour package is quite literally unlimited. But we take a peek at the most famous cities that are on the bucket list of everyone who visits the enchanting land Udaipur – Plucked out of a fairy tale it boasts of gorgeous palaces and havelis with crooked lanes winding their way around the city in which you find the majestic tourist attractions in Rajasthan . The City of Lakes is serene and tranquil and allows a grand view of Lake Pichola with the legendary Lake Palace in its middle. One of the most acclaimed tourist destinations in Rajasthan it is also well known for Lord Eklingji Temple which is attended by pilgrims. Sajj
mhararajasthan
Explore Religious Tourist Places of Rajasthan in I...
Explore Fascinating Rajasthan Sightseeing Tour Att...
Explore Royal Rajasthan Desert Tour Attractions in...
best places to visit in India
best religious places in rajasthan
desert tour packages in rajasthan
desert tours in rajasthan
fascinating rajasthan tour packages
Golden Triangle holiday tour
golden triangle india tour package
golden triangle tour with khajuraho
golden triangle tours india
heritage places in rajasthan
india holy places
india pilgrimage tour
india tours and travels packages
jaipur sightseeing places
jaisalmer tour package
jodhpur jaisalmer package
places to visit in jaipur
Rajasthan desert packages
rajasthan desert tour packages
rajasthan desert tours packages
rajasthan golden tour packages
rajasthan heritage tour
rajasthan heritage tour packages
rajasthan honeymoon package
rajasthan jewels tour packages
rajasthan pilgrimage tour package
Rajasthan sightseeing packages
rajasthan tour palaces
rajasthan tourist places
rajasthan trip packages
rajasthan wildlife india tour
rajasthan wildlife tour packages
rajasthan wildlife tours
religious tours in rajasthan
tour packages in india
tourist destinations in rajasthan
tourist places in jaipur
tourist places in udaipur
tours and travels packages in india
travel agency in india
udaipur tourist place
udaipur tourist places
wildlife sanctuaries in india
wildlife sanctuary in rajasthan
wildlife tour packages in rajasthan

redpajama_set_name: RedPajamaCommonCrawl


Today's guest blog is written by Tim Magner. He is a children's book author, food educator and dynamic teacher. While visiting more than 100 schools as a children's book author, Tim got an up-close look at what kids were eating. He created Truck Farm Chicago, a farm-on-wheels project that connected kids to food for three years. Currently, he's Camp Director at Nature's Farm Camp and his cooking partner with The Kids Table.
Tim hails from Chicago's North Shore and also taught skiing to kids in Colorado, golf in North Carolina and was a camp counselor in Georgia. He's tutored with several organizations, served on a Local School Council and was a board member at The Academy for Global Citizenship.
"What do you mean they were domesticated in Central America. I thought tomatoes came from Italy?," said a nearby student.
From another kid a few minutes later reading the ingredient list: "Ferrous Sulfate, Thiamin Mononitrate, Riboflavin, Folic Acid,…" Even though the student had eaten Flaming Hot Cheetos as a daily ritual, the words came out awkwardly. Note: it takes several minutes to read the entire ingredient list.
We had brought Truck Farm Chicago, our bio-dieseled power farm-on-wheels for a few lessons.
Often, pulling out of the school parking lot, we'd debate, "Is it right to ask the kids to make better food choices when the odds are stacked against health?" Despite an uproar from parents and community members who care about health, 'cheap' pizza and fries (loaded with fat, sugar and salt) remain the de facto choice in cafeterias. For many, nachos and cheese are the breakfast of choice. When chips and soda are ever present (and just pocket change), what is a ten-year-old going to choose? Kids consume empty calories, processed food from the industrial system because it's 'cheap,' nearly addicting and brilliantly marketed. The costs, like pollution, toxins, and diet-related diseases such as diabetes and hypertension are ignored, or come later.
It got me thinking. In an ideal world, good, clean, fair food would be the de facto choice. Schools would source directly with local farms. The kids would know the farmers and vice versa and food would be integrated into their education, as opposed to on the side and separate from their daily subjects. Outside of school, families would have the time, energy, skills and money to cook. Each meal would support the health of people, economies, communities, and ecosystems. Potlucks would happen all over the place! Was I dreaming? Clearly there are obstacles, but what about an interim solution that would help remove obstacles and create leverage to make change? Could we create a place that showed what's possible?
So, Nature's Farm Camp was born. It's a chance to fully immerse kids in all things food. A summer camp where food is at the center of programming. Where delicious, nutrient-dense local food is the de facto. Where kids craft each meal and get to explore different tastes and textures. The classroom is the kitchen and so are the farm fields (and so are the forest and the creek, where the kids roam and explore). We welcome children from all over Chicagoland, offering scholarships and financial aid to as many as possible.
We're only embarking on our 2nd season of Nature's Farm Camp, but have begun talking with other summer camps about how to integrate local, nutrient dense food into their food service. Better yet, the USDA hired a full-time staffer who's sole responsibility is evolving and growing the farm-to-school program for the Midwest. Whoo-hoo! Here's to making awesomeness for all kids the de facto!


text:
Home News Adeleke freezes Osun bank accounts, reverses Aregbesola's policies
Adeleke freezes Osun bank accounts, reverses Aregbesola's policies
Osun Governor Ademola Adeleke has directed all the operational bank account of State to be frozen till further notice.
He gave the directive shortly after he was sworn in as the sixth Governor of the State.
He also reversed policies introduced by former Governor Rauf Aregbesola and vowed to review all appointments by his predecessor, Adegboyega Oyetola since July 17th 2022 when he lost election.
Adeleke, who was sworn in at the Osogbo Township Stadium on Sunday, promised to deliver all his campaign promises.
According to him: "Under my watch, I will correct past injustice, corrupt acts or policies by previous administration which are against the collective interest of our people."
He gave an Executive Order to reverse the policies of Aregbesola, which recognised Osun State as State of Osun.
He also announced that the slogan of the State will no longer be 'State of Virtue' but 'State of Living Spring'.
Previous articleCJN to swear in 62 New Senior Advocates Of Nigeria
Next articleKano school catches fire, 14 classrooms, administrative block destroyed


text:
You are here: Home / scicu-news-releases / SMC's Dr. Colleen Perry Keith Named President of Pfeiffer University
SMC's Dr. Colleen Perry Keith Named President of Pfeiffer University
February 20, 2015 By SC Independent Colleges & Universities
Spartanburg, SC – Dr. Colleen Perry Keith, President of Spartanburg Methodist College since 2009, has been named president of Pfeiffer University. The announcement was made by the trustees of the Misenheimer, North Carolina college. Pfeiffer also has campuses in Charlotte and Raleigh-Durham and is a sister college in the United Methodist connection.
"While we are sad to be losing Dr. Keith, we know that this is a great fit for her skills and experience and a wonderful next step for her career as a college president," said Dr. Phinnize Fisher, Chair of the Board for SMC. "Dr. Keith has been an exceptional leader for SMC and will bring her outstanding gifts in administration and fundraising to bear for Pfeiffer's benefit. She is widely regarded throughout the field of higher education as a thoughtful and effective leader. SMC's loss is Pfeiffer's benefit."
Under Keith's leadership, SMC has completed a major funds campaign, increased its capacity for fundraising, raised its public profile across the state, expanded its alumni programming, started two new degree programs, and taken on capital projects including the construction of Ellis Hall. SMC's enrollment has remained strong throughout Keith's tenure and the college's outstanding athletic programs have continued to thrive in competition at the national level.
Beyond the campus, Keith has become an active volunteer in the Upstate. She serves on the boards of the Spartanburg Area Chamber of Commerce, which she chairs; the Mary Black Foundation; the Greer Education Foundation; the Arts Partnership; the Spartanburg Academic Movement; Spartanburg Regional Hospital's Hospice Home; and Habitat for Humanity of Spartanburg County. On the state level, she chairs the President's Council for the South Carolina Independent Colleges and Universities organization and is the secretary for the South Carolina Tuition Grants commission. On the national level, she is the past president of the National Association of Schools and Colleges of the United Methodist Church and continues on its board.
"Anyone who knows me knows that I will miss SMC and my Pioneers. This is a great college and one that plays a very important role in getting students started on their higher education journey. Of everything we have accomplished over the past six years, I am most proud of the fact that SMC is no longer the 'best kept secret' in the Upstate. People recognize the value that we offer and our amazing success rate (85% of SMC students go onto complete their college education elsewhere, compared to 20% nationally for two-year colleges) is evidence that we are doing an exceptional job at implementing our mission. Even though I am moving onto what is next for me, SMC will continue to thrive and provide an outstanding higher education start for thousands more students for at least the next 104 years!"
Keith will begin her duties at Pfeiffer University on July 1. The SMC Board of Trustees will launch a search for Keith's replacement in the next several weeks.
SMC is South Carolina's only private, residential college exclusively for freshmen and sophomore students and one of only four colleges in South Carolina affiliated with the United Methodist Church. SMC's mission is to transform lives in a values-oriented, student-centered atmosphere in the Christian tradition that encourages academic excellence, intellectual exploration, social awareness, and character development within the liberal arts tradition. Spartanburg Methodist College, founded in 1911, is proud of its heritage of providing "the opportunity TO BE your best and the inspiration TO DO great things."
For more information contact: Yvonne Harper, Director of Public Information at (864) 587-4278 or harpery@smcsc.edu
Filed Under: scicu-news-releases


text:
Q: What's the largest square you can make with given tiles of a form? Given $M$ tiles of size $1 \times 1$ and $N$ tiles of size $2 \times 2$, what's the side-length of the largest square I can make (the square must be completely filled in the middle)?
I think I can come up with a recurrence. If we're at a state $(m, n, k)$ with $m$ tiles of the first form, $n$ tiles of the second form, and side-length $k$, we can transition to state $k + 1$ by using some number of $1 \times 1$ or state $k + 2$ by using some number of $2 \times 2$ squares. However, this is clearly not exhaustive because it doesn't account for the case in which we use both.
I'm thinking there might be a way to get a closed formula (rather than a dynamic programming recurrence), and I was wondering if someone might know a good approach to this problem

A: If the biggest square that we can make with m,n has an even lentgh, we have that the biggest square that we can make is the nearest one, i.e: if we have $k' \in \mathbb{N}$ s.t $(2k')^2 \leq m + 4n < (2(k'+1))^2$ then the side length of the square is 2k'. We can construct the square by putting all the tiles of second form in (the square has an area that is a multiple of four, so we can juxtapose this kind of tiles). And if it's not sufficient, we put a maximum of tiles of the first form.
For example, if $n = 11$ and $m = 13$. We have $m + 4n = 13 + 4 \times 11 = 57$, and $6^2 < 57 < 8^2$. And we can actually fill a $6\times6$ square with a number of nine $9$ ($2\times 2$) tiles. But if we had $m = 13$ and $n = 8$: $m + 4n = 13 + 4 \times 8 = 45$. We have $6^2 < 45 < 8^2$ so we can fill the $6\times 6$ square with $8$ ($2\times 2$)tiles and $4$ ($1\times 1$) tiles (for example, by putting them in a corner of the square). We did not use $9$($1\times 1$) tiles.
Now if the square has a side-length of the form $2k' + 1$ it's more complicated. Actually we can only put a maximum of $k'^2$ tiles of the second form in it, because if we juxtapose them from a corner there'll be always a line on two-edges (in the opposite corner) that is too thin. We can convince ourselves that moving theses tiles doesn't change anything, it will either reduce the number of $(2\times 2)$ that we can put or this will not change (I don't have a rigourous proof about that but it's intuitive, I think we should do some drawings to see this).
So we have to consider an inequality. The number of missing-tiles in this line is $(2k'+1)^2 - (2k')^2 = 4k' + 1$. And actually this is the minimum number of $(1\times1)$ tiles (m) required.
So if we have $(2k'+1)^2 \leq m + 4n < (2k' + 2)^2$, then we must verifiy if $m \geq 4k' + 1$. If it is (by a similar reasonning), we can construct the square. If it's not, then we can only construct a square of side length 2k'.
The final answer should then be: find $k \in \mathbb{N}$ s.t $k^2 \leq m+4n < (k+1)^2$. If $k$ is even, then the biggest square that we can make has a side-length of $k$. If $k$ is odd, then if $m \geq 2k + 1$, we can also make a square with a side-length of $k$. Else, we can only make one with a side-length of $(k-1)$.
I hope I answered your question, if not tell me :)

redpajama_set_name: RedPajamaStackExchange


text:
package it.unitn.ing.rista.diffr.fluorescence;

import it.unitn.ing.rista.chemistry.AtomInfo;
import it.unitn.ing.rista.chemistry.XRayDataSqLite;
import it.unitn.ing.rista.diffr.*;
import it.unitn.ing.rista.diffr.detector.XRFDetector;
import it.unitn.ing.rista.diffr.geometry.GeometryXRFInstrument;
import it.unitn.ing.rista.diffr.radiation.XrayEbelTubeRadiation;
import it.unitn.ing.rista.io.cif.CIFtoken;
import it.unitn.ing.rista.util.*;

import java.util.Hashtable;
import java.util.Vector;

import static java.lang.System.out;

/**
 * The GIXRFModel is a class to calculate the Grazing Incidence
 * fluorescence model by De Boer.
 * D. K. G. de Boer, Phys. Review B, 44[2], 498, 1991.
 *
 * @author Luca Lutterotti
 * @version $Revision: 1.00 $, $Date: Feb 21, 2013 8:27:36 PM $
 * @since JDK1.1
 */
public class GIXRFModel extends Fluorescence {

	public static String[] diclistc = {
			"_maud_gixrf_smoothing_points",
			"_maud_gixrf_smoothing_divergence",
			"_fluorescence_atom_intensity_correction"
	};
	public static String[] diclistcrm = {
			"_maud_gixrf_smoothing_points",
			"_maud_gixrf_smoothing_divergence",
			"_fluorescence_atom_intensity_correction"
	};

	public static String[] classlistc = {};
	public static String[] classlistcs = {};

	public static String modelID = "GIXRF";
	public static String descriptionID = "Grazing Incidence X-Ray Fluorescence model, for bulk or multilayers";

	public GIXRFModel(XRDcat obj, String alabel) {
		super(obj, alabel);
		initXRD();
		identifier = modelID;
		IDlabel = modelID;
		description = descriptionID;
	}

	public GIXRFModel(XRDcat afile) {
		this(afile, modelID);
	}

	public GIXRFModel() {
		identifier = modelID;
		IDlabel = modelID;
		description = descriptionID;
	}

	public void initConstant() {
		Nstring = 1;
		Nstringloop = 0;
		Nparameter = 1;
		Nparameterloop = 1;
		Nsubordinate = 0;
		Nsubordinateloop = 0;
	}

	public void initDictionary() {
		for (int i = 0; i < totsubordinateloop; i++)
			diclist[i] = diclistc[i];
		System.arraycopy(diclistcrm, 0, diclistRealMeaning, 0, totsubordinateloop);
		for (int i = 0; i < totsubordinateloop - totsubordinate; i++)
			classlist[i] = classlistc[i];
		for (int i = 0; i < totsubordinate - totparameterloop; i++)
			classlists[i] = classlistcs[i];
	}

	int maxAtomsNumber = 130;

	public void initParameters() {
		super.initParameters();
		setString(0, "11");
		initializeParameter(0, 0.001, 0.0001, 0.1);
		for (int i = 0; i < maxAtomsNumber; i++)
			addparameterloopField(0, new Parameter(this, getParameterString(0, i), 1,
				ParameterPreferences.getDouble(getParameterString(0, i) + ".min", 0.8),
				ParameterPreferences.getDouble(getParameterString(0, i) + ".max", 1.2)));
	}

	public void updateStringtoDoubleBuffering(boolean firstLoading) {
		super.updateStringtoDoubleBuffering(false);

		phiIntegrationNumber = Integer.parseInt(getString(0));
	}

	public void updateParametertoDoubleBuffering(boolean firstLoading) {
		// to be implemented by subclasses

		if (getFilePar().isLoadingFile() || !isAbilitatetoRefresh)
			return;
		super.updateParametertoDoubleBuffering(false);

		phiDelta = getParameterValue(0);
		if (phiIntegrationNumber > 1)
			phiStep = phiDelta / (phiIntegrationNumber - 1);
		else
			phiStep = 0;
	}

	/**
	 * The method compute the fluorescence pattern using the
	 * fluorescence model by De Boer.
	 * D. K. G. de Boer, Phys. Review B, 44[2], 498, 1991.
	 * It uses the ElamDB. When the pattern is computed and it is added to the
	 * DiffrDataFile using the addtoFit method.
	 *
	 * @param adatafile
	 * @see DiffrDataFile#addtoFit
	 */

	int phiIntegrationNumber = 1;
	double phiDelta = 0.0;
	double phiStep = 0; // phiDelta / (phiIntegrationNumber - 1);

	public void computeFluorescence(Sample asample, DataFileSet adataset) {

		int datafilenumber = adataset.activedatafilesnumber();

		final Sample theSample = asample;
		final DataFileSet theDataset = adataset;

		final int maxThreads = Math.min(Constants.maxNumberOfThreads, datafilenumber);
		if (maxThreads > 1 && Constants.threadingGranularity >= Constants.MEDIUM_GRANULARITY) {
			if (Constants.debugThreads)
				out.println("Thread datafileset " + getLabel());
			int i;
			PersistentThread[] threads = new PersistentThread[maxThreads];
			for (i = 0; i < maxThreads; i++) {
				threads[i] = new PersistentThread(i) {
					@Override
					public void executeJob() {
						int i1 = this.getJobNumberStart();
						int i2 = this.getJobNumberEnd();

						for (int j = i1; j < i2; j++) {
							DiffrDataFile datafile = theDataset.getActiveDataFile(j);
							computeFluorescence(theSample, datafile);
							computeasymmetry(theSample, datafile);
						}
					}
				};
			}
			i = 0;
			int istep = (int) (0.9999 + datafilenumber / maxThreads);
			for (int j = 0; j < maxThreads; j++) {
				int is = i;
				if (j < maxThreads - 1)
					i = Math.min(i + istep, datafilenumber);
				else
					i = datafilenumber;
				threads[j].setJobRange(is, i);
				threads[j].start();
			}
			boolean running;
			do {
				running = false;
				try {
					Thread.sleep(Constants.timeToWaitThreadsEnding);
				} catch (InterruptedException r) {
				}
				for (int h = 0; h < maxThreads; h++) {
					if (!threads[h].isEnded())
						running = true;
				}
			} while (running);

		} else
			for (int k = 0; k < datafilenumber; k++) {
				DiffrDataFile datafile = theDataset.getActiveDataFile(k);
				computeFluorescence(theSample, datafile);
				computeasymmetry(theSample, datafile);
			}

	}

	public void computeFluorescence(Sample asample, DiffrDataFile adatafile) {

		Constants.checkMinimumEnergy();

		Instrument ainstrument = adatafile.getDataFileSet().getInstrument();
		Detector detector = ainstrument.getDetector();
		Geometry geometry = ainstrument.getGeometry();
		double incidentIntensity = ainstrument.getIntensityValue();
		double sampleLinearArea = detector.getGeometryCorrection(
				((GeometryXRFInstrument) geometry).getBeamOutCorrection(adatafile, asample));
//		incidentIntensity *= sampleLinearArea;

		double polarization = ainstrument.getGeometry().getPolarizationAmount();
		double polarizationAngle = ainstrument.getGeometry().getPolarizationAngle();
		double cos2polarization = MoreMath.cosd(polarizationAngle);
		cos2polarization *= cos2polarization;
		double s_factor = 0.5 - 0.5 * polarization * (1.0 - cos2polarization);
		double p_factor = 0.5 - 0.5 * polarization * cos2polarization;

		double[] xEnergy = adatafile.getXrangeInEnergy();
		int numberOfPoints = xEnergy.length;
		double maxEnergyInKeV = xEnergy[numberOfPoints - 1] * 0.001 * 1.1;
//    System.out.println(xEnergy[0] + " " + xEnergy[numberOfPoints - 1]);

		int layersNumber = asample.numberOfLayers + 1;

		double[][] Nz = new double[layersNumber][2];
		double[][] Nz_eps = new double[layersNumber][2];
		double[][] Rs = new double[layersNumber][2];
		double[][] Ts = new double[layersNumber][2];
		double[][] Rp = new double[layersNumber][2];
		double[][] Tp = new double[layersNumber][2];
		double[][] As = new double[layersNumber][2];
		double[][] Ap = new double[layersNumber][2];

		double[][] Xs = new double[layersNumber][2];
		double[][] Xp = new double[layersNumber][2];
		double[][] A2Xs = new double[layersNumber][2];
		double[][] A2Xp = new double[layersNumber][2];
		double[][] A2XRs = new double[layersNumber][2];
		double[][] A2XRp = new double[layersNumber][2];

		double[] fluorescence = new double[numberOfPoints];

		double[][] Er = new double[layersNumber][2];
		double[][] Et = new double[layersNumber][2];
		double[][] Hr = new double[layersNumber][2];
		double[][] Ht = new double[layersNumber][2];

		double[][] complexPermittivity = new double[layersNumber][2];

		double[] incidentDiffracted = adatafile.getIncidentAndDiffractionAngles(0);
//		System.out.println(incidentDiffracted[1]);
//	  incidentDiffracted[0] *= Constants.DEGTOPI;

		double[] cosPhi2 = new double[phiIntegrationNumber];
		for (int i = 0; i < phiIntegrationNumber; i++) {
			cosPhi2[i] = Math.cos(incidentDiffracted[0] - phiDelta + phiStep * i);
			cosPhi2[i] *= cosPhi2[i];
		}
		double sinPhi = Math.sqrt(1.0 - cosPhi2[phiIntegrationNumber / 2]);
		incidentDiffracted[1] = ainstrument.getDetector().getThetaDetector(adatafile, 0) * Constants.DEGTOPI;
		double sinPhid = Math.sin(incidentDiffracted[1]);

		RadiationType radType = ainstrument.getRadiationType();
		int rad_lines = radType.getLinesCount();
		int sub20 = radType.getSubdivision(); //MaudPreferences.getInteger("xrf_detector.energySubdivision", 20);

		int initialContent = 100;
		double source_intensity = ((XRFDetector) ainstrument.getDetector()).getSourceSpectrumIntensity();
		if (source_intensity > 0 && initialContent < rad_lines) {
			initialContent = rad_lines;
		}
		Vector<FluorescenceLine> fluorescenceLines = new Vector<FluorescenceLine>(initialContent, 10);
		double[] cPerm;
		double lastEnergyInKeV = 0;
		double lastEnergyIntensity = 0;
//		System.out.println(rad_lines + " " + phiIntegrationNumber);
		for (int ej = 0; ej < rad_lines; ej++) {
			double lambda = radType.getRadiationWavelengthForFluorescence(ej);
			double energy_intensity = radType.getRadiationWeightForFluorescence(ej);
			double constant1 = 2.0 * Constants.PI / lambda * 1E8;
			double energy = Constants.ENERGY_LAMBDA / lambda;    // in eV
			double energyInKeV = energy * 0.001;
//			System.out.println(ej + " " + lambda + " " + energy_intensity + ", KeV " + energyInKeV);
//	  System.out.print((incidentDiffracted[0] * Constants.PITODEG) + " ");
			energy_intensity /= phiIntegrationNumber;
			for (int phi_i = 0; phi_i < phiIntegrationNumber; phi_i++) {
				for (int j = 0; j < layersNumber; j++) {
					Layer layer = asample.getlayer(j - 1);
					if (layer == null) {
						complexPermittivity[j][0] = 0;
						complexPermittivity[j][1] = 0;
					} else {
						cPerm = layer.getComplexPermittivityDiff(energyInKeV);
						complexPermittivity[j][0] = cPerm[0];
						complexPermittivity[j][1] = cPerm[1];
					}
/*			double cost = sinPhi2 - complexPermittivity[j][0];
			Nz[j][0] = Math.sqrt(0.5 * (cost + Math.sqrt(cost * cost + MoreMath.pow(complexPermittivity[j][1], 2)))); //sqrtRoot[0];
			Nz[j][1] = complexPermittivity[j][1] / Nz[j][0];*/

					double[] eps = new double[2];
					eps[0] = 1.0 - complexPermittivity[j][0];
					eps[1] = -complexPermittivity[j][1];
					double[] r1 = MoreMath.complexSqrt(eps[0] - cosPhi2[phi_i], eps[1]);
					Nz[j][0] = r1[0];
					Nz[j][1] = r1[1];
					r1 = MoreMath.complexDivide(Nz[j], eps);
					Nz_eps[j][0] = r1[0];
					Nz_eps[j][1] = r1[1];

					double thickness = 0;
					if (layer != null && j != layersNumber - 1)
						thickness = layer.getThicknessInCm();
//		  System.out.print(thickness + " ");
					thickness *= constant1;
					r1 = MoreMath.complexExp(thickness * Nz[j][1], -thickness * Nz[j][0]);
					As[j][0] = r1[0];
					As[j][1] = r1[1];
					r1 = MoreMath.complexExp(thickness * Nz_eps[j][1], -thickness * Nz_eps[j][0]);
					Ap[j][0] = r1[0];
					Ap[j][1] = r1[1];
//        System.out.print(eps[0] + " " + eps[1] + " " + Nz[j][0] + " " + Nz[j][1] + " ");
/*		  System.out.print(j + " ");
		  System.out.println("Nz = " + Nz[j][0] + " i * " + Nz[j][1] + " ");*/
				}
//		System.out.println();

				for (int j = 0; j < layersNumber - 1; j++) {
					Layer layer = asample.getlayer(j);
					double roughness = 0;
					if (layer != null)
						roughness = layer.getRoughnessInCm();
					double roughnessExponent = constant1 * roughness;
					roughnessExponent *= roughnessExponent;
					double[] diffN = MoreMath.complexAdd(Nz[j][0], Nz[j][1], -Nz[j + 1][0], -Nz[j + 1][1]);
					double[] sumN = MoreMath.complexAdd(Nz[j], Nz[j + 1]);
					double[] multN = MoreMath.complexMultiply(Nz[j], Nz[j + 1]);
					double r1 = -2.0 * roughnessExponent;
					multN[0] *= r1;
					multN[1] *= r1;
					double[] s1 = MoreMath.complexExp(multN);
					double[] firstR = MoreMath.complexDivide(diffN, sumN);
					firstR = MoreMath.complexMultiply(firstR, s1);
					Rs[j][0] = firstR[0];
					Rs[j][1] = firstR[1];
					double r2 = roughnessExponent * 0.5;
					firstR = MoreMath.complexMultiply(diffN, diffN);
					firstR[0] *= r2;
					firstR[1] *= r2;
					s1 = MoreMath.complexExp(firstR);
					firstR = MoreMath.complexDivide(Nz[j], sumN);
					firstR = MoreMath.complexMultiply(firstR, s1);
					Ts[j][0] = 2.0 * firstR[0];
					Ts[j][1] = 2.0 * firstR[1];

					diffN = MoreMath.complexAdd(Nz_eps[j][0], Nz_eps[j][1], -Nz_eps[j + 1][0], -Nz_eps[j + 1][1]);
					sumN = MoreMath.complexAdd(Nz_eps[j], Nz_eps[j + 1]);
					multN = MoreMath.complexMultiply(Nz_eps[j], Nz_eps[j + 1]);
					multN[0] *= r1;
					multN[1] *= r1;
					s1 = MoreMath.complexExp(multN);
					firstR = MoreMath.complexDivide(diffN, sumN);
					firstR = MoreMath.complexMultiply(firstR, s1);
					Rp[j][0] = firstR[0];
					Rp[j][1] = firstR[1];
					firstR = MoreMath.complexMultiply(diffN, diffN);
					firstR[0] *= r2;
					firstR[1] *= r2;
					s1 = MoreMath.complexExp(firstR);
					firstR = MoreMath.complexDivide(Nz_eps[j], sumN);
					firstR = MoreMath.complexMultiply(firstR, s1);
					Tp[j][0] = 2.0 * firstR[0];
					Tp[j][1] = 2.0 * firstR[1];

//		  System.out.print(R[j][0] + " " + R[j][1] + " " + T[j][0] + " " + T[j][1] + " | ");

/*		  System.out.print(j + " ");
		  System.out.print("T = " + T[j][0] + " i * " + T[j][1] + " ");
		  System.out.println(", R = " + R[j][0] + " i * " + R[j][1] + " ");*/
				}

				for (int j = asample.numberOfLayers - 1; j >= 0; j--) {
					double[] A2s = MoreMath.complexMultiply(As[j + 1], As[j + 1]);
					double[] r1 = MoreMath.complexMultiply(A2s, Xs[j + 1]);
					A2Xs[j + 1][0] = r1[0];
					A2Xs[j + 1][1] = r1[1];
					r1 = MoreMath.complexMultiply(A2Xs[j + 1], Rs[j]);
					A2XRs[j + 1][0] = r1[0];
					A2XRs[j + 1][1] = r1[1];
					r1 = MoreMath.complexAdd(Rs[j], A2Xs[j + 1]);
					r1 = MoreMath.complexDivide(r1[0], r1[1], 1.0 + A2XRs[j + 1][0], A2XRs[j + 1][1]);
					Xs[j][0] = r1[0];
					Xs[j][1] = r1[1];

					double[] A2p = MoreMath.complexMultiply(Ap[j + 1], Ap[j + 1]);
					r1 = MoreMath.complexMultiply(A2p, Xp[j + 1]);
					A2Xp[j + 1][0] = r1[0];
					A2Xp[j + 1][1] = r1[1];
					r1 = MoreMath.complexMultiply(A2Xp[j + 1], Rp[j]);
					A2XRp[j + 1][0] = r1[0];
					A2XRp[j + 1][1] = r1[1];
					r1 = MoreMath.complexAdd(Rp[j], A2Xp[j + 1]);
					r1 = MoreMath.complexDivide(r1[0], r1[1], 1.0 + A2XRp[j + 1][0], A2XRp[j + 1][1]);
					Xp[j][0] = r1[0];
					Xp[j][1] = r1[1];
//		  System.out.print(X[j][0] + " " + X[j][1] + " " + A2X[j+1][0] + " " + A2X[j+1][1] + " | ");

/*		  System.out.print(j + " ");
		  System.out.print(X[j][0] + " i * " + X[j][1] + " ");
		  System.out.println(A2X[j+1][0] + " i * " + A2X[j+1][1] + " ");*/
				}
				double[] A2s = MoreMath.complexMultiply(As[0], As[0]);
				double[] r1 = MoreMath.complexMultiply(A2s, Xs[0]);
				A2Xs[0][0] = r1[0];
				A2Xs[0][1] = r1[1];
				double[] A2p = MoreMath.complexMultiply(Ap[0], Ap[0]);
				r1 = MoreMath.complexMultiply(A2p, Xp[0]);
				A2Xp[0][0] = r1[0];
				A2Xp[0][1] = r1[1];
				Et[0][0] = 1.0;
				Ht[0][0] = 1.0;
				for (int j = 0; j < layersNumber - 1; j++) {
					r1 = MoreMath.complexMultiply(As[j], Et[j]);
					r1 = MoreMath.complexMultiply(r1, Ts[j]);
					if (j != layersNumber - 2)
						r1 = MoreMath.complexDivide(r1[0], r1[1], 1.0 + A2XRs[j + 1][0], A2XRs[j + 1][1]);
					Et[j + 1][0] = r1[0];
					Et[j + 1][1] = r1[1];
					r1 = MoreMath.complexMultiply(A2Xs[j], Et[j]);
					Er[j][0] = r1[0];
					Er[j][1] = r1[1];

					r1 = MoreMath.complexMultiply(Ap[j], Ht[j]);
					r1 = MoreMath.complexMultiply(r1, Tp[j]);
					if (j != layersNumber - 2)
						r1 = MoreMath.complexDivide(r1[0], r1[1], 1.0 + A2XRp[j + 1][0], A2XRp[j + 1][1]);
					Ht[j + 1][0] = r1[0];
					Ht[j + 1][1] = r1[1];
					r1 = MoreMath.complexMultiply(A2Xp[j], Ht[j]);
					Hr[j][0] = r1[0];
					Hr[j][1] = r1[1];
//        System.out.print((Et[j][0] * Et[j][0]) + " " + (Et[j][1] * Et[j][1]) + " " +
//		        (Er[j][0] * Er[j][0]) + " " + (Er[j][1] * Er[j][1]) + " ");
/*		  System.out.print(j + " ");
			System.out.print(Er[j][0] + " i*" + Er[j][1] + " ");
		  System.out.println(Et[j][0] + " i*" + Et[j][1] + " ");*/
				}
				r1 = MoreMath.complexMultiply(A2Xs[layersNumber - 1], Et[layersNumber - 1]);
				Er[layersNumber - 1][0] = r1[0];
				Er[layersNumber - 1][1] = r1[1];
				r1 = MoreMath.complexMultiply(A2Xp[layersNumber - 1], Ht[layersNumber - 1]);
				Hr[layersNumber - 1][0] = r1[0];
				Hr[layersNumber - 1][1] = r1[1];

				double[] rE = MoreMath.complexConjugate(Er[0]);
				rE = MoreMath.complexMultiply(Er[0], rE);
				double Eint = s_factor * MoreMath.complexAbs(rE);
				rE = MoreMath.complexConjugate(Hr[0]);
				rE = MoreMath.complexMultiply(Hr[0], rE);
				Eint += p_factor * MoreMath.complexAbs(rE);
//		System.out.print(Eint);

				for (int j1 = 0; j1 < layersNumber - 1; j1++) {
					int j = j1 + 1;
					for (int i = 0; i < numberOfPoints; i++)
						fluorescence[i] = 0.0;
					Layer layer = asample.getlayer(j1);
					double thickness = layer.getThicknessInCm();
/*		  double thickness_or_zero = thickness;
		  if (j1 == layersNumber - 2)
			  thickness_or_zero = 0;*/
					double layerAbsorption = layer.getAbsorption(energyInKeV) * layer.getDensity();

					double[] AE = new double[4];
					double[] bE = new double[4];
//  s polarization
					double cost1 = constant1 * complexPermittivity[j][1] / layerAbsorption;

					double s_cost1 = s_factor * cost1;
					AE[0] = s_cost1 * (Et[j][0] * Et[j][0] + Et[j][1] * Et[j][1]);
					AE[1] = s_cost1 * (Er[j][0] * Er[j][0] + Er[j][1] * Er[j][1]);
					AE[2] = 2.0 * s_cost1 * (Et[j][0] * Er[j][0] + Et[j][1] * Er[j][1]);    // no 2.0 in Giancarlo
					AE[3] = 2.0 * s_cost1 * (-Et[j][1] * Er[j][0] + Et[j][0] * Er[j][1]);
//  p polarization
					cost1 = -2.0 * constant1 * Nz[j][1] * Nz_eps[j][0] / layerAbsorption;
					double p_cost1 = p_factor * cost1;
					AE[0] += p_cost1 * (Ht[j][0] * Ht[j][0] + Ht[j][1] * Ht[j][1]);
					AE[1] += p_cost1 * (Hr[j][0] * Hr[j][0] + Hr[j][1] * Hr[j][1]);
					cost1 = -4.0 * constant1 * Nz[j][0] * Nz_eps[j][1] / layerAbsorption;
					p_cost1 = p_factor * cost1;
					AE[2] += p_cost1 * (Ht[j][0] * Hr[j][0] + Ht[j][1] * Hr[j][1]);
					AE[3] += p_cost1 * (-Ht[j][1] * Hr[j][0] + Ht[j][0] * Hr[j][1]);
//  sum of s and p
					bE[0] = -2.0 * constant1 * Nz[j][1];
					bE[1] = -bE[0];
					bE[2] = 0;
					bE[3] = -2.0 * constant1 * Nz[j][0];

/*		  System.out.print("Layer " + j + ": A and b coeffs ");
		  for (int i = 0; i < 4; i++)
			  System.out.print(AE[i] + " ");
		  for (int i = 0; i < 4; i++)
			  System.out.print(bE[i] + " ");
		  System.out.println();*/

					Vector<AtomQuantity> chemicalComposition = layer.getChemicalComposition();

					double density = layer.getDensity();
//			System.out.print("Layer: " + j);
					if (source_intensity > 0) {
						if (radType instanceof XrayEbelTubeRadiation && ej >= ((XrayEbelTubeRadiation) radType).getNumberOfCharacteristicsLines()) {
							double stepEnergy = (energyInKeV - lastEnergyInKeV) / sub20;
							double stepIntEnergy = (energy_intensity - lastEnergyIntensity) / sub20;
							double subEnergy = lastEnergyInKeV;
							double subEnergyInt = lastEnergyIntensity;
							for (int sub_i = 0; sub_i < sub20; sub_i++) {
								subEnergy += stepEnergy;
								subEnergyInt += stepIntEnergy;
								FluorescenceLine transfertLine = new FluorescenceLine(subEnergy, -1, 0, "source");
								double absorptionLineLambda = layer.getAbsorption(subEnergy) * density;
								double totalIntensity = Math.exp(-layer.getOverLayerAbsorption(subEnergy) * density / sinPhid)
										* subEnergyInt;
								double totalRe = 0.0;
								double mhuOverSinD = absorptionLineLambda / sinPhid;
//						System.out.println("Layer: " + j1 + ", atom: " + k + ", line: " + ij + ", energy " + lineEnergyKeV + ", intensity " + totalIntensity + ", mhuOverSinD " + mhuOverSinD);
								for (int m = 0; m < 2; m++) {
									double bm_mhu = bE[m] + mhuOverSinD;
//					  System.out.println(bm_mhu);
									double expm = -bm_mhu * thickness; //_or_zero;
									if (expm > -Double.MAX_EXPONENT / 2 && expm < Double.MAX_EXPONENT / 2)
										expm = Math.exp(expm);
									else {
										if (expm > 0)
											expm = Double.MAX_VALUE / 2;
										else
											expm = 0;
									}
									totalRe += AE[m] * ((1.0 - expm) / bm_mhu);
//							System.out.println("m bm be Ae: " + m + " " + bm_mhu + " " + bE[m] + " " + AE[m] + " " + expm + " " + totalRe);
								}
								double re1 = -thickness * (bE[2] + mhuOverSinD);
								double im1 = -thickness * bE[3];
								double[] res = MoreMath.complexExp(re1, im1);
								res[0] = 1.0 - res[0];
								res[1] = -res[1];
								res = MoreMath.complexDivide(res[0], res[1], bE[2] + mhuOverSinD, bE[3]);
								totalRe += MoreMath.complexMultiply(AE[2], AE[3], res[0], res[1])[0];
								totalRe *= density;
//  				  System.out.println(AE[2] + " " + AE[3] + " " + totalRe);
//						System.out.println("Layer: " + j + " " + chemicalComposition.elementAt(k).label + " " + lineEnergyKeV + " " + line.getIntensity() + " " + atomsQuantities + " " + totalRe + " " + totalIntensity + " " + detectorAbsorption + " " + detectorEfficiency + " " + getIntensityCorrection(atomNumber));
								double detectorAbsorption = ((XRFDetector) detector).computeAbsorptionForLineWithEnergy(subEnergy);
								double detectorEfficiency = ((XRFDetector) detector).computeDetectorEfficiency(subEnergy);
								double areaCorrection = ((XRFDetector) detector).getAreaCorrection(sampleLinearArea);
								transfertLine.setIntensity(transfertLine.getIntensity() * totalRe * totalIntensity * source_intensity *
										detectorAbsorption * detectorEfficiency * areaCorrection);
								boolean addLine = true;
								for (int i = 0; i < fluorescenceLines.size() && addLine; i++) {
									FluorescenceLine lineExisting = fluorescenceLines.get(i);
									if (lineExisting.getEnergy() == transfertLine.getEnergy()) {
										addLine = false;
										lineExisting.setIntensity(lineExisting.getIntensity() + transfertLine.getIntensity());
									}
								}
								if (addLine)
									fluorescenceLines.add(transfertLine);
							}
						} else {
							double subEnergy = energyInKeV;
							double subEnergyInt = energy_intensity;
							FluorescenceLine transfertLine = new FluorescenceLine(subEnergy, -1, 0, "source");
							double absorptionLineLambda = layer.getAbsorption(subEnergy) * density;
							double totalIntensity = Math.exp(-layer.getOverLayerAbsorption(subEnergy) * density / sinPhid)
									* subEnergyInt;
							double totalRe = 0.0;
							double mhuOverSinD = absorptionLineLambda / sinPhid;
//						System.out.println("Layer: " + j1 + ", atom: " + k + ", line: " + ij + ", energy " + lineEnergyKeV + ", intensity " + totalIntensity + ", mhuOverSinD " + mhuOverSinD);
							for (int m = 0; m < 2; m++) {
								double bm_mhu = bE[m] + mhuOverSinD;
//					  System.out.println(bm_mhu);
								double expm = -bm_mhu * thickness; //_or_zero;
								if (expm > -Double.MAX_EXPONENT / 2 && expm < Double.MAX_EXPONENT / 2)
									expm = Math.exp(expm);
								else {
									if (expm > 0)
										expm = Double.MAX_VALUE / 2;
									else
										expm = 0;
								}
								totalRe += AE[m] * ((1.0 - expm) / bm_mhu);
//							System.out.println("m bm be Ae: " + m + " " + bm_mhu + " " + bE[m] + " " + AE[m] + " " + expm + " " + totalRe);
							}
							double re1 = -thickness * (bE[2] + mhuOverSinD);
							double im1 = -thickness * bE[3];
							double[] res = MoreMath.complexExp(re1, im1);
							res[0] = 1.0 - res[0];
							res[1] = -res[1];
							res = MoreMath.complexDivide(res[0], res[1], bE[2] + mhuOverSinD, bE[3]);
							totalRe += MoreMath.complexMultiply(AE[2], AE[3], res[0], res[1])[0];
							totalRe *= density;
//  				  System.out.println(AE[2] + " " + AE[3] + " " + totalRe);
//						System.out.println("Layer: " + j + " " + chemicalComposition.elementAt(k).label + " " + lineEnergyKeV + " " + line.getIntensity() + " " + atomsQuantities + " " + totalRe + " " + totalIntensity + " " + detectorAbsorption + " " + detectorEfficiency + " " + getIntensityCorrection(atomNumber));
							double detectorAbsorption = ((XRFDetector) detector).computeAbsorptionForLineWithEnergy(subEnergy);
							double detectorEfficiency = ((XRFDetector) detector).computeDetectorEfficiency(subEnergy);
							double areaCorrection = ((XRFDetector) detector).getAreaCorrection(sampleLinearArea);
							transfertLine.setIntensity(transfertLine.getIntensity() * totalRe * totalIntensity * source_intensity *
									detectorAbsorption * detectorEfficiency * areaCorrection);
							boolean addLine = true;
							for (int i = 0; i < fluorescenceLines.size() && addLine; i++) {
								FluorescenceLine lineExisting = fluorescenceLines.get(i);
								if (lineExisting.getEnergy() == transfertLine.getEnergy()) {
									addLine = false;
									lineExisting.setIntensity(lineExisting.getIntensity() + transfertLine.getIntensity());
								}
							}
							if (addLine)
								fluorescenceLines.add(transfertLine);
						}
					}

					for (int k = 0; k < chemicalComposition.size(); k++) {
						int atomNumber = AtomInfo.retrieveAtomNumber(chemicalComposition.elementAt(k).label);
						Vector<FluorescenceLine> linesForAtom = XRayDataSqLite.getFluorescenceLinesFor(
								atomNumber, energyInKeV);
//			  System.out.println(atomNumber + " " + chemicalComposition.elementAt(k).label);
//			  Vector <double[]> photoForAtom = AtomInfo.getPhotoAbsorptionFor(atomsLabels[k]);
						double atomsQuantities = chemicalComposition.elementAt(k).quantity_weight;
						if (atomsQuantities > 0) {
							for (int ij = 0; ij < linesForAtom.size(); ij++) {
								FluorescenceLine line = linesForAtom.elementAt(ij);
								double lineEnergyKeV = line.getEnergy(); // in KeV
								if (lineEnergyKeV <= energyInKeV) {
									System.out.println(chemicalComposition.elementAt(k).label + " " + lineEnergyKeV + " " + line.getIntensity());
//				  double lineEnergy = lineEnergyKeV * 1000; // in eV
//				  double lineLambda = Constants.ENERGY_LAMBDA / lineEnergy;
									double absorptionLineLambda = layer.getAbsorption(lineEnergyKeV) * density;

									double totalIntensity = Math.exp(-layer.getOverLayerAbsorption(lineEnergyKeV) * density / sinPhid)
											* energy_intensity;
									double totalRe = 0.0;
									double mhuOverSinD = absorptionLineLambda / sinPhid;
//						System.out.println("Layer: " + j1 + ", atom: " + k + ", line: " + ij + ", energy " + lineEnergyKeV + ", intensity " + totalIntensity + ", mhuOverSinD " + mhuOverSinD);
									for (int m = 0; m < 2; m++) {
										double bm_mhu = bE[m] + mhuOverSinD;
//					  System.out.println(bm_mhu);
										double expm = -bm_mhu * thickness; //_or_zero;
										if (expm > -Double.MAX_EXPONENT / 2 && expm < Double.MAX_EXPONENT / 2)
											expm = Math.exp(expm);
										else {
											if (expm > 0)
												expm = Double.MAX_VALUE / 2;
											else
												expm = 0;
										}
										totalRe += AE[m] * ((1.0 - expm) / bm_mhu);
//							System.out.println("m bm be Ae: " + m + " " + bm_mhu + " " + bE[m] + " " + AE[m] + " " + expm + " " + totalRe);
									}
									double re1 = -thickness * (bE[2] + mhuOverSinD);
									double im1 = -thickness * bE[3];
									double[] res = MoreMath.complexExp(re1, im1);
									res[0] = 1.0 - res[0];
									res[1] = -res[1];
									res = MoreMath.complexDivide(res[0], res[1], bE[2] + mhuOverSinD, bE[3]);
									totalRe += MoreMath.complexMultiply(AE[2], AE[3], res[0], res[1])[0];
									totalRe *= density;
//  				  System.out.println(AE[2] + " " + AE[3] + " " + totalRe);
									double detectorAbsorption = ((XRFDetector) detector).computeAbsorptionForLineWithEnergy(lineEnergyKeV);
									double detectorEfficiency = ((XRFDetector) detector).computeDetectorEfficiency(lineEnergyKeV);
//						System.out.println("Layer: " + j + " " + chemicalComposition.elementAt(k).label + " " + lineEnergyKeV + " " + line.getIntensity() + " " + atomsQuantities + " " + totalRe + " " + totalIntensity + " " + detectorAbsorption + " " + detectorEfficiency);
									double areaCorrection = ((XRFDetector) detector).getAreaCorrection(sampleLinearArea);
//									if (lineEnergyKeV * 1000 > xEnergy[0] && lineEnergyKeV * 1000 < xEnergy[numberOfPoints - 1])
//									System.out.println("# " + lineEnergyKeV + " " + line.getIntensity() + " " + atomsQuantities + " " + (totalIntensity * totalRe) + " " + detectorAbsorption + " " +
//											detectorEfficiency + " " + areaCorrection + " " + getIntensityCorrection(atomNumber));
									line.multiplyIntensityBy(atomsQuantities * totalRe * totalIntensity * detectorAbsorption *
											detectorEfficiency * areaCorrection * getIntensityCorrection(atomNumber));
									boolean addLine = true;
									for (int i = 0; i < fluorescenceLines.size() && addLine; i++) {
										FluorescenceLine lineExisting = fluorescenceLines.get(i);
										if (lineExisting.getEnergy() == line.getEnergy()) {
											addLine = false;
											lineExisting.setIntensity(lineExisting.getIntensity() + line.getIntensity());
										}
									}
									if (addLine) {
										fluorescenceLines.add(line);

//										if (!getFilePar().isOptimizing() && Constants.testing) {
//											System.out.println("Adding fluorescence line for " + chemicalComposition.elementAt(k).label + ", Energy = " + line.getEnergy() + " KeV, Intensity = " + line.getIntensity());
//										}
									}
								}
							}
						}
					}

					if (((XRFDetector) ainstrument.getDetector()).getFiltersFluorescenceIntensityTotal() > 0) {

						Vector<FluorescenceLine> filtersFluorescenceLines = ((XRFDetector) ainstrument.getDetector()).getFluorescenceLines(energyInKeV);
						for (int si = 0; si < filtersFluorescenceLines.size(); si++) {
							FluorescenceLine line = filtersFluorescenceLines.get(si);
							boolean addLine = true;
							for (int i = 0; i < fluorescenceLines.size(); i++) {
								FluorescenceLine lineExisting = fluorescenceLines.get(i);
								lineExisting.setIntensity(lineExisting.getIntensity());
								if (lineExisting.getEnergy() == line.getEnergy()) {
									addLine = false;
									lineExisting.setIntensity(lineExisting.getIntensity() + line.getIntensity() * energy_intensity);
								}
							}
							if (addLine) {
								line.setIntensity(line.getIntensity() * energy_intensity);
								fluorescenceLines.add(line);
							}
						}
					}
					if (ainstrument.getRadiationType() instanceof XrayEbelTubeRadiation) {
						XrayEbelTubeRadiation source = (XrayEbelTubeRadiation) ainstrument.getRadiationType();
						if (source.getFiltersFluorescenceIntensityTotal() > 0) {

							Vector<FluorescenceLine> filtersFluorescenceLines = source.getFluorescenceLines(energyInKeV);
							for (int si = 0; si < filtersFluorescenceLines.size(); si++) {
								FluorescenceLine line = filtersFluorescenceLines.get(si);
								boolean addLine = true;
								for (int i = 0; i < fluorescenceLines.size(); i++) {
									FluorescenceLine lineExisting = fluorescenceLines.get(i);
									lineExisting.setIntensity(lineExisting.getIntensity());
									if (lineExisting.getEnergy() == line.getEnergy()) {
										addLine = false;
										lineExisting.setIntensity(lineExisting.getIntensity() + line.getIntensity() * energy_intensity);
									}
								}
								if (addLine) {
									line.setIntensity(line.getIntensity() * energy_intensity);
									fluorescenceLines.add(line);
								}
							}
						}
					}
				}
			}
			lastEnergyInKeV = energyInKeV;
			lastEnergyIntensity = energy_intensity;
		}

		Vector<FluorescenceLine> sumLines = null;
		if (((XRFDetector) ainstrument.getDetector()).getSumPeaksIntensity() > 0)
			sumLines = ((XRFDetector) ainstrument.getDetector()).getPileUpPeaks(maxEnergyInKeV, fluorescenceLines);
		Vector<FluorescenceLine> escapeLines = null;
		if (((XRFDetector) ainstrument.getDetector()).getEscapePeaksIntensity() > 0)
			escapeLines = ((XRFDetector) ainstrument.getDetector()).getEscapePeaks(maxEnergyInKeV, fluorescenceLines);

		if (sumLines != null) {
			for (int si = 0; si < sumLines.size(); si++) {
				FluorescenceLine line = sumLines.get(si);
				boolean addLine = true;
				for (int i = 0; i < fluorescenceLines.size() && addLine; i++) {
					FluorescenceLine lineExisting = fluorescenceLines.get(i);
					if (lineExisting.getEnergy() == line.getEnergy()) {
						addLine = false;
						lineExisting.setIntensity(lineExisting.getIntensity() + line.getIntensity());
					}
				}
				if (addLine) {
					line.setIntensity(line.getIntensity());
					fluorescenceLines.add(line);
				}
			}
		}

		if (escapeLines != null) {
			for (int si = 0; si < escapeLines.size(); si++) {
				FluorescenceLine line = escapeLines.get(si);
				boolean addLine = true;
				for (int i = 0; i < fluorescenceLines.size() && addLine; i++) {
					FluorescenceLine lineExisting = fluorescenceLines.get(i);
					if (lineExisting.getEnergy() == line.getEnergy()) {
						addLine = false;
						lineExisting.setIntensity(lineExisting.getIntensity() + line.getIntensity());
					}
				}
				if (addLine) {
					line.setIntensity(line.getIntensity());
					fluorescenceLines.add(line);
				}
			}
		}

		for (int k = 0; k < fluorescenceLines.size(); k++) {
			FluorescenceLine line = fluorescenceLines.get(k);
			double[][] broad = ainstrument.getInstrumentalBroadeningAt(line.getEnergy(), adatafile);
			line.setEnergy(line.getEnergy() * 1000.0); // in eV
			line.setShape(broad);
//      System.out.println(line.getEnergy() + " " + line.getIntensity());
			for (int i = 0; i < numberOfPoints; i++)
				fluorescence[i] += line.getIntensity(xEnergy[i]);
		}

		for (int i = 0; i < numberOfPoints; i++) {
			fluorescence[i] *= incidentIntensity;
			adatafile.addtoFit(i, fluorescence[i]);
//        System.out.println("Point: " + xEnergy[i] + ", intensity: " + fluorescence[i]);
		}
	}

	public double getIntensityCorrection(int atomNumber) {
		return getParameterLoopValues(0, atomNumber - 1);
	}

}

redpajama_set_name: RedPajamaGithub


text:
Movies A - Z
Review: The Spectacular Now
by Adam Riske
The Spectacular Now is a challenging movie and one you should seek out. I've been trying to reconcile my feelings about it for a while. It's centered on one of the most frustrating lead characters I can remember seeing in a movie. The movie wisely presents him as is and lets you decide. I've seen the movie twice and I still can't.
This is one of the movie's strengths. The lead character, Sutter Keely, is complex -- very charming and well-intentioned, but also a bad influence and a reckless alcoholic. He's matched by the movie's other lead character, Aimee Finecky, who is not the normal girl-next-door that has it all figured out. She has a good heart, but also a startling naiveté. The two make a terrific movie couple; the performances by Miles Teller and Shailene Woodley are superb and there are very few false notes in their naturalistic exchanges. The Spectacular Now reminded me of great romantic dramas like Say Anything... and All the Real Girls.
The plot in brief: High school senior Sutter Keely (Miles Teller) is the fun-loving smooth talker of his class, but his friends are as much charmed by his antics as they they are tired of them. Nursing the wounds of a recent dumping from his popular girlfriend (Brie Larson), Sutter finds himself building a friendship and romantic relationship with Aimee Finecky (Shailene Woodley), a nice girl whose passiveness has made her somewhat of a wallflower at her high school. The relationship is both empowering and damaging for both parties and drudges up clues about how both characters got to be the way they are.
The Spectacular Now is by no means a great movie, but it has elements of perfection. Every moment between Teller and Woodley is wonderful, especially the scene in the woods before they share their first kiss, which is one of the best scenes in any movie this year. It's so sweet and well-observed. It feels like you're eavesdropping on two people sharing a spontaneous moment (down to the director's authentic touches like crickets chirping in the background) rather than a construct of a screenwriter.
The two leads share an easy chemistry, and I love how director James Ponsoldt handles their relationship. Sutter genuinely likes Aimee, but (as the title suggests) is not considering the long-term effects of his behavior around her. Aimee, on the other hand, falls hard and is shown to be a bit too trusting for her own good. But it's not all bad. Both characters grow in positive ways from being around one another. The relationship is interesting and complex.
This might be Sutter's movie, but Aimee is the heart and soul. She's the one that I wanted to protect like a little sister. I give all kinds of credit to Shailene Woodley for her performance which is warm, childlike, sweet and somewhat startling. It's completely different from her performance in The Descendants and shows off her range. I look forward to seeing her in future movies not involving Spider-Man.
Sutter is more of a question mark, though at no fault of the actor. Miles Teller is terrific in this movie. It's interesting casting because Teller has played fun-loving teen drinkers in movies like Project X and 21 and Over and his performance in The Spectacular Now is almost like an explanation for those previous roles in the same way Punch-Drunk Love shed light on the seething anger beneath the early comedic performances from Adam Sandler.
Sutter is such an enigma because the movie asks: How much do you want to empathize with a destructive personality who is not above dragging others down with him? Do you want to see this person redeemed or not? At times I morally objected to Sutter's actions and didn't care about his redemption. But in retrospect, I'm not so sure anymore. While still not approving, I'm more willing to forgive his character. In a Q&A I saw after the movie, Ponsoldt described Sutter as Ferris Bueller when he has no one around to perform for or the type of man-child character Vince Vaughn plays; in the long-term, that kind of guy would have a sad, awful life and become a burden to those around him. All of that sounds about right and provides helpful context.
When we go away from Sutter and Aimee to focus on some of the supporting characters, the movie runs into trouble. Jennifer Jason Leigh has little to do as Sutter's mom and is on hand for the movie's worst scene near the end. I won't go into details to avoid spoilers, but the ending basically steals its resolution from another VERY POPULAR coming of age story. And, let me know what you guys think of Kyle Chandler in this movie. It's either a great performance or a terrible one. I can't tell.
What I'm left with, though, are the positives. While not all of it works, I still have a great amount of affection for The Spectacular Now, especially Sutter and Aimee. I think I could come back to this movie more in the future, as it improved for me on a second viewing. Part of the reason is that I recognize the characters from both myself and people I have known (or dated) at different times in my life. The Spectacular Now is said to be heavily influenced by the events of James Ponsoldt's teen years, and that personal attention comes through without becoming saccharine or cynical. My brain might not be entirely on board with The Spectacular Now, but my heart sure is.
Posted by Patrick Bromley at 7:38 AM
Labels: 2013 movies, adam riske reviews, james ponsoldt, miles teller, romance movies, shailene woodley, the spectacular now
Patrick Bromley September 2, 2013 at 3:02 PM
Finally saw this. Good call on the ending.
J.M. Vargas September 2, 2013 at 4:34 PM
I just came from seeing this too and loved most of it (and I hated "500 Days of Summer" so that's saying something). The chemistry between Miles Teller and Shailene Woodley is the real deal, not a false note or moment when these two are together. I haven't screamed/jumped in my seat as loudly in a movie as when you-know-what happens to Aimee out of nowhere. Kyle Chandler doesn't give a bad performance as much as does the best he can with a thankless two-dimensional role (he's really in only three scenes, two of which are very short) but yep, the man has done better work.
My take on the movie is a little different though. I think since this is Sutter's movie (everything happens from his POV and no other character is allowed to have a moment/scene on their own) that his slightly-buzzed, alcohol-fueled perception of the world around him informs his decisions and actions. Basically, whether it's Aimee looking/being glorious or Marcus getting advice from Sutter about how the former should handle the latter's ex-girlfriend (I really liked that scene), it's a distorted-reality view of Sutter's life as he perceives it in his almost perpetual state of drunken stupor.
Gotta say, for what appears to be a romantic teen movie, this is one of the most acutely observed movies about alcoholism (those that drink but also friends and loved one's that tolerate or confront the vice) that doesn't actually spell or says that it is about alcoholism. The closest character that does that is Bob Odenkirk's Dan when he offers Sutter a choice to remain working or not.
Still, great flick and the 2nd best movie I've seen in 2013 (after the still-amazing "Fill The Void.")
Tweets by @fthismovie
Blog Archive January (18) December (34) November (27) October (59) September (34) August (32) July (31) June (59) May (39) April (30) March (35) February (25) January (29) December (26) November (23) October (68) September (27) August (32) July (26) June (54) May (32) April (26) March (35) February (31) January (30) December (20) November (32) October (78) September (40) August (49) July (42) June (70) May (46) April (43) March (47) February (44) January (48) December (42) November (48) October (83) September (39) August (41) July (40) June (74) May (44) April (43) March (52) February (47) January (47) December (43) November (48) October (89) September (48) August (49) July (45) June (77) May (46) April (51) March (52) February (44) January (44) December (45) November (44) October (80) September (51) August (48) July (50) June (88) May (55) April (50) March (56) February (51) January (53) December (45) November (41) October (61) September (48) August (48) July (51) June (74) May (50) April (46) March (45) February (48) January (53) December (41) November (43) October (55) September (44) August (45) July (43) June (64) May (44) April (47) March (43) February (35) January (37) December (25) November (27) October (35) September (23) August (27) July (25) June (50) May (25) April (22) March (22) February (20) January (21) December (19) November (19) October (21) September (17) August (19) July (20) June (17) May (17) April (19) March (16) February (10) January (15) December (6) November (11) October (10) September (16) August (8) July (6) June (6) May (7)
© F This Movie!. Awesome Inc. theme. Powered by Blogger.


This site has a number of static icon images sets which can be imported into MapPoint..
The icons are all in png format so there are a number of steps to convert to MapPoint, but with a little automation it is fairly quick.
Note that I used HyperSnap (http://www.sellshareware.com/ProgramInfo.asp?AfID=5881&PrID=35478) - it is a very versatile image capture and processing utility I've always liked.
It has a number of command-line options which allow you to control it's behavior and use it from batch scripts.
First download and unzip a set into a directory.
Create list of the files using the dir command "dir /b > list.txt".
Paste this list into Excel and use a formula like this to construct the batch file commands which call HyperSnap.
=CHAR(34)&"C:\Program Files\HyperSnap 6\hprsnap6.exe" & CHAR(34) & " -open:"&A1&".png -save:bmp "&A1&".bmp"
Then these need to be importing into MapPoint.. if there were a lot or I was doing this regularly, I would write a little program in Excel VBA which would import all of them, but I was lazy and just clicked 112 times to import them all manually.. doh!
by Prime Suspect. 112 markers total (single and double-digits for 0-9, plus default and blank markers)."
I also attached a few of the markers so you can see what they look like.. 1, 2, 99.
hope someone finds this useful! Let me know if you have any suggestions.
Would have saved me a lot of clicking!
It loads custom symbols in batch.
Have a lot of custom symbols to add? This small utility will allow you to add custom symbols to MapPoint in "batch mode"


In this book, Graham Connah offers an overview of archaeological authorship: its diversity, its challenges, and its methodology. Based on his own experiences, he presents his personal views about the task of writing about archaeology. The book is not intended to be a technical manual. Instead, Connah aims to encourage archaeologists who write about their subject to think about the process of writing. He writes with the beginning author in mind, but the book will be of interest to all archaeologists who plan to publish their work. Connah's overall premise is that those who write about archaeology need to be less concerned with content and more concerned with how they present it. It is not enough to be a good archaeologist. One must also become a good writer and be able to communicate effectively. Archaeology, he argues, is above all a literary discipline.
3. Readership determines form: for whom are we writing?
8. Publishers, editors and referees: devils incarnate or guardian angels?
10. The aftermath: reviewers and readers.
Graham Connah is a Visiting Fellow in the School of Archaeology and Anthropology at the Australian National University in Canberra. A scholar of the archaeology of Africa and Australia, he is the author of eight books and founded the journal Australasian Historical Archaeology.


knowing how to recognize and benefit from books that are spiritually and aesthetically good.
Literary expert Gene Veith helps book lovers better understand what they read as he explains how each major literary genre communicates. Showing how comedy, tragedy, realism, and fantasy can portray the Christian worldview, Veith delves into related topics such as the value of fairy tales, the tragic and the comic sense of life, the contrast between the classical and the Hebraic traditions, and the role of postmodernity (a subject of vital importance to Christians). Introducing readers to writers past and present, Veith helps Christians to influence culture from an educated perspective and get more out of their reading.


OpenVPN for Android (Mod) v0.7.5 Full APK descriptions: It is an open source customer in view of the open source OpenVPN venture. It utilizes the VPNService API of Android 4.0+ and requires neither Jailbreak nor root on your phone.
Would i be able to get free Internet?
No, this application is for associating with an OpenVPN server.
OpenVPN is a customer programming to associate with an OpenVPN server. It's anything but an APP offering or provding any VPN administrations.
What is the distinction between all the OpenVPN applications?
Just tun mode bolster (Sorry no tap, with Android 4.0 no one but tun can be upheld).
In the event that you need to make an interpretation of OpenVPN into your local dialect take a gander at the landing page of this task.
Kindly report bug/recommendations by means of email or at the code Google Code venture. In any case, if you don't mind read the FAQ before keeping in touch with me.


text:
/* $OpenBSD: roaming_common.c,v 1.8 2010/01/12 00:59:29 djm Exp $ */
/*
 * Copyright (c) 2004-2009 AppGate Network Security AB
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#include "includes.h"

#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>

#include <errno.h>
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include <stdarg.h>
#include <string.h>
#include <unistd.h>

#include "atomicio.h"
#include "log.h"
#include "packet.h"
#include "xmalloc.h"
#include "cipher.h"
#include "buffer.h"
#include "roaming.h"

static size_t out_buf_size = 0;
static char *out_buf = NULL;
static size_t out_start;
static size_t out_last;

static u_int64_t write_bytes = 0;
static u_int64_t read_bytes = 0;

int roaming_enabled = 0;
int resume_in_progress = 0;

int
get_snd_buf_size()
{
	int fd = packet_get_connection_out();
	int optval;
	socklen_t optvallen = sizeof(optval);

	if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &optval, &optvallen) != 0)
		optval = DEFAULT_ROAMBUF;
	return optval;
}

int
get_recv_buf_size()
{
	int fd = packet_get_connection_in();
	int optval;
	socklen_t optvallen = sizeof(optval);

	if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &optval, &optvallen) != 0)
		optval = DEFAULT_ROAMBUF;
	return optval;
}

void
set_out_buffer_size(size_t size)
{
	/*
	 * The buffer size can only be set once and the buffer will live
	 * as long as the session lives.
	 */
	if (out_buf == NULL) {
		out_buf_size = size;
		out_buf = xmalloc(size);
		out_start = 0;
		out_last = 0;
	}
}

u_int64_t
get_recv_bytes(void)
{
	return read_bytes;
}

void
add_recv_bytes(u_int64_t num)
{
	read_bytes += num;
}

u_int64_t
get_sent_bytes(void)
{
	return write_bytes;
}

void
roam_set_bytes(u_int64_t sent, u_int64_t recvd)
{
	read_bytes = recvd;
	write_bytes = sent;
}

static void
buf_append(const char *buf, size_t count)
{
	if (count > out_buf_size) {
		buf += count - out_buf_size;
		count = out_buf_size;
	}
	if (count < out_buf_size - out_last) {
		memcpy(out_buf + out_last, buf, count);
		if (out_start > out_last)
			out_start += count;
		out_last += count;
	} else {
		/* data will wrap */
		size_t chunk = out_buf_size - out_last;
		memcpy(out_buf + out_last, buf, chunk);
		memcpy(out_buf, buf + chunk, count - chunk);
		out_last = count - chunk;
		out_start = out_last + 1;
	}
}

ssize_t
roaming_write(int fd, const void *buf, size_t count, int *cont)
{
	ssize_t ret;

	ret = write(fd, buf, count);
	if (ret > 0 && !resume_in_progress) {
		write_bytes += ret;
		if (out_buf_size > 0)
			buf_append(buf, ret);
	}
	if (out_buf_size > 0 &&
	    (ret == 0 || (ret == -1 && errno == EPIPE))) {
		if (wait_for_roaming_reconnect() != 0) {
			ret = 0;
			*cont = 1;
		} else {
			ret = -1;
			errno = EAGAIN;
		}
	}
	return ret;
}

ssize_t
roaming_read(int fd, void *buf, size_t count, int *cont)
{
	ssize_t ret = read(fd, buf, count);
	if (ret > 0) {
		if (!resume_in_progress) {
			read_bytes += ret;
		}
	} else if (out_buf_size > 0 &&
	    (ret == 0 || (ret == -1 && (errno == ECONNRESET
	    || errno == ECONNABORTED || errno == ETIMEDOUT
	    || errno == EHOSTUNREACH)))) {
		debug("roaming_read failed for %d  ret=%ld  errno=%d",
		    fd, (long)ret, errno);
		ret = 0;
		if (wait_for_roaming_reconnect() == 0)
			*cont = 1;
	}
	return ret;
}

size_t
roaming_atomicio(ssize_t(*f)(int, void*, size_t), int fd, void *buf,
    size_t count)
{
	size_t ret = atomicio(f, fd, buf, count);

	if (f == vwrite && ret > 0 && !resume_in_progress) {
		write_bytes += ret;
	} else if (f == read && ret > 0 && !resume_in_progress) {
		read_bytes += ret;
	}
	return ret;
}

void
resend_bytes(int fd, u_int64_t *offset)
{
	size_t available, needed;

	if (out_start < out_last)
		available = out_last - out_start;
	else
		available = out_buf_size;
	needed = write_bytes - *offset;
	debug3("resend_bytes: resend %lu bytes from %llu",
	    (unsigned long)needed, (unsigned long long)*offset);
	if (needed > available)
		fatal("Needed to resend more data than in the cache");
	if (out_last < needed) {
		int chunkend = needed - out_last;
		atomicio(vwrite, fd, out_buf + out_buf_size - chunkend,
		    chunkend);
		atomicio(vwrite, fd, out_buf, out_last);
	} else {
		atomicio(vwrite, fd, out_buf + (out_last - needed), needed);
	}
}

/*
 * Caclulate a new key after a reconnect
 */
void
calculate_new_key(u_int64_t *key, u_int64_t cookie, u_int64_t challenge)
{
	const EVP_MD *md = EVP_sha1();
	EVP_MD_CTX ctx;
	char hash[EVP_MAX_MD_SIZE];
	Buffer b;

	buffer_init(&b);
	buffer_put_int64(&b, *key);
	buffer_put_int64(&b, cookie);
	buffer_put_int64(&b, challenge);

	EVP_DigestInit(&ctx, md);
	EVP_DigestUpdate(&ctx, buffer_ptr(&b), buffer_len(&b));
	EVP_DigestFinal(&ctx, hash, NULL);

	buffer_clear(&b);
	buffer_append(&b, hash, EVP_MD_size(md));
	*key = buffer_get_int64(&b);
	buffer_free(&b);
}


text:
Iran & Jordan, Alienated from Turkey, Warmly Welcome Four Armenian Leaders
by Harut Sassounian, Publisher, The California Courier · November 6, 2014
Armenians boosted their historical ties with the Arab and Muslim world last month with the simultaneous visits of Armenia's President and Jerusalem's Armenian Patriarch to the Kingdom of Jordan, and visits by the Armenian Prime Minister and Aram Catholicos of Lebanon to the Islamic Republic of Iran.
While such foreign visits are commonplace, the exceptionally warm reception accorded by Shia Iran and Sunni Jordan to four Armenian leaders reflects these Islamic countries' close relationship with Christian Armenians and displeasure with the Turkish government's radical Islamist policies.
Only a few years ago, many Arabs and Muslims hailed Turkey's Prime Minister Recep Erdogan — now President — as a modern-day Sultan who was championing their national and religious aspirations.In 2010, Jordan, Lebanon, Syria and Turkey decided to form a joint free trade zone to strengthen their economic cooperation. Soon after, by siding with the Muslim Brotherhood and Jihadists' murderous rampage against Kurds, Yazidis, Shias, Alawites, and Christian minorities, Erdogan's hegemonic and erratic behavior alienated almost every state in the Middle East. Turkey's love-fest with Syria quickly turned into outright hostility, and Ankara's relations with Egypt, Iran, Jordan, Saudi Arabia, the United Arab Emirates, and especially Israel, became antagonistic.
These regional tensions with Turkey may have played a role in the enthusiastic welcome the four Armenian dignitaries received from the highest ranking officials of Iran and Jordan where they had warm and fruitful discussions regarding their mutual interests and concerns. Here are the highlights of their visits:
Pres. Serzh Sargsyan met with
King Abdullah II
Prime Minister Abdullah Ensour
Senate President Abdel Raouf al-Rawabdeh
Speaker of the House of Representatives Atef Tarawneh.
During the visit, the mayors of Yerevan and Amman signed a sister city agreement. The leaders of the two countries decided to establish inter-parliamentary friendship groups and expand their cooperation in the fields of tourism, energy, agriculture, and health.
Pres. Sargsyan thanked the Jordanian leadership for welcoming Armenian refugees during the 1915 Genocide and paying special attention to the needs of the Armenian community of Jordan today. The Armenian President voiced his gratitude for the decree issued in 1917 by Sharif al-Husayn Ibn Ali, who urged the Muslim faithful to protect the Armenian survivors of the Genocide "as you would defend yourselves, your properties, and children."
Pres. Sargsyan also paid tribute to the late King Hussein who had sent urgently-needed humanitarian aid to Armenia shortly after the 1988 earthquake. The President then attended the historic consecration of the St. Garabed Church by Jerusalem Patriarch Nourhan Manougian near the Jordan River where Jesus was baptized. The land for the sacred site of the church was graciously donated by the Jordanian government.
It is ironic that while Turkey aided and abetted ISIS terrorists' destruction of the Armenian Genocide Memorial Church in Der Zor, the Jordanian government was instrumental in the construction of an Armenian Church on the banks of the Jordan River!
During his brief visit to Iran, Armenia's Prime Minister Hovik Abrahamyan met Pres. Hassan Rouhani and signed a series of agreements on
Mr. Abrahamyan transmitted Pres. Sargsyan's invitation to Pres. Rouhani to visit Yerevan next April 24, on the Armenian Genocide Centennial. The Prime Minister, accompanied by seven cabinet ministers, also met:
Iran's First Vice President Es'haq Jahangiri
Foreign Minister Mohammad Javad Zarif
Minister of Petroleum Bijan Namdar Zanganeh
Isfahan Governor Rasul Zargarpur who praised the contributions of the Armenian community to the development of Isfahan.
Aram Catholicos met with Iranian Parliament Speaker Ali Larijani who hailed the positive role played by the Iranian-Armenian community:
"Iran has always held the Armenian community in high regard and many friendly relations have been in progress between Iranian Muslims and Armenians."
They also discussed the Turkish government's negative role in the region. Aram Catholicos also met with the Governor of Isfahan and leaders of the Islamic Organization for Intercultural and Interreligious Dialogue. On behalf of Pres. Rouhani, Ali Younesi, Special Assistant to the President on ethnic and religious minorities, hosted a dinner in honor of the Catholicos. Speaking at a conference in New Julfa on Armenian Genocide demands from Turkey, Aram Catholicos declared:
"irrespective of the circumstances and the elapsed time, we shall continue to demand justice for our martyrs."
The coincidental visits of the four Armenian leaders to Iran and Jordan reinforced the strong positive ties between the two Muslim countries and Armenia and Armenians, and highlighted Turkey's further isolation in the Middle East.
Next story Armenia Fund Kicks Off Telethon 2014
Previous story Turkish Writer "Risking Life and Freedom" To Speak Up on Armenian Genocide
4,500 Guests Attend Special Armenian Genocide Program in Kremlin Hall
European Court of Human Rights Penalizes Both Armenia and Azerbaijan
American Lawyers Sue Turkey For Hundreds of Millions of Dollars
The Era of Proud and Crazy Armenians


text:
local queued = tonumber(ARGV[num_static_argv + 1])

-- Could have been re-registered concurrently
if not redis.call('zscore', client_last_seen_key, client) then
  redis.call('zadd', client_running_key, 0, client)
  redis.call('hset', client_num_queued_key, client, queued)
  redis.call('zadd', client_last_registered_key, 0, client)
end

redis.call('zadd', client_last_seen_key, now, client)

return {}


text:
Craig Sjodin/ABC
Who Is Becca On 'The Bachelor'? This Contestant Might Be Perfect For Arie
By Chrissy Bobic
It's never too early to start learning about the Season 22 contestants of The Bachelor. Right off the bat, there are already a few who seem like they could legitimately hit it off with Arie Luyendyk Jr., like Becca Kufrin, who's from Wisconsin and might already have some things in common with the Bachelor. Fans will definitely be asking who is Becca on The Bachelor early on, thanks to the fact that she seems like the real deal and could very well be the one to walk away with the final rose.
While Arie is a former race car driver and now works in real estate, Becca certainly doesn't share his career aspirations, but the fact that she's settled in an established career at all speaks to her seriousness about settling down. For the past four years, she has worked in public relations as a senior account executive at Skyya, a public relations firm that specializes in serving and assisting technology firms. Before that, Becca was an account executive for the same firm for two years. Clearly, she's not afraid of commitment and seeing as how Arie is ready to for a life-long commitment, it would seem that Becca is also in that same frame of mind.
She's also a fan of comedies, which makes me ever hopeful for some light hearted banter and interactions to lighten the often tense mood that comes along with a large group of people competing for the love of the same person. In Becca's Bachelor bio, she listed Sister Act 2 and Pitch Perfect among her favorite movies and her Instagram's bio says "Yeah, no. Don't put me down for cardio," which is a Rebel Wilson quote from Pitch Perfect. But it also shows that The Bachelor contestant has a pretty legit and laid back sense of humor.
This season, there is going to be some stiff competition, with a variety of women from different backgrounds and with different careers, most of whom are in their mid to late-20s or even early 30s. Becca is 27, so she's not exactly the oldest or the youngest Bachelor Season 22 contestant. But if things don't work out with Arie, then Joe Biden might be another option for Becca, since judging by her Instagram, she seems ready to vote for him in the next presidential election, like a real life Leslie Knope.
However, if she makes it as far as hometown dates, there might be a couple of others that Arie may have to fight with for Becca's love since she's also a devoted cat and dog mom. Though to be clear, she seems way more into her adorable Corgi, who apparently helps her cook more often than not.
If Becca does get a hometown date this season, which I would be willing to bet money on happening, then there's a good chance that Arie will get to learn more about her dad, who died eight years ago after battling brain cancer for five years. Becca's family's tragic past could be revisited on a one-on-one or on a hometown date, but opening up about it will likely prove to bring them closer together.
Overall, Becca seems to have strong family values and take the relationships in her life very seriously, which coincides with Arie's own closeness with his family. So it's not really surprising that part of the qualities she sees in herself are loyalty and honesty, according to her Bachelor bio, which are likely important to her to find in a partner as well.
Becca definitely seems like one of the more grounded and approachable contestants this season and if I'm being honest, she kind of reminds me of Vanessa Grimaldi from Nick Viall's season of The Bachelor, which could be good or bad for her. On the one hand, Vanessa ended up winning over Nick in the end and the two were even engaged. But on the other hand, they're also now broken up.
Even so, Arie is no Nick and he's been out in the real world longer than he's been making the rounds in shows within The Bachelor franchise. Becca definitely seems like someone who could make a real, lasting connection with Arie.
Check out Romper's new video series, Romper's Doula Diaries:
Watch full episodes of Romper's Doula Diaries on Facebook Watch.


Phosphorus is one of the main three macro nutrients (nitrogen, phosphorous, potassium: NPK) required by plants and can often become the limiting factor to growth in a flourishing system. Flourish Phosphorus™ is a safe solution (4,500 mg/L phosphate) of potassium phosphate that takes the guess work out of phosphate dosing. Unlike competing products that mix nitrate and phosphate in a fixed ratio, Flourish Phosphorus™ (being nitrate free) allows you to dose phosphorus according to the needs of your plants without the risk of overdosing nitrates. When used as directed, Flourish Phosphorus™will enhance and accelerate the growth of aquatic plants without enhancing algae growth. For maximum benefit, use with Flourish Nitrogen™ and Flourish Potassium™. Flourish Phosphorus™ is safe for invertebrates such as shrimp.
BEGINNER: Use 2.5 mL (half a cap) for each 80 L (20 US gallons) once or twice a week or as needed in response to signs of phosphorus deficiency (e.g. stunted growth, plant dark green).


text:
Salvador Giner i de San Julián (Barcelona, 1934 - 2019), sociòleg, president de l'Institut d'Estudis Catalans (2005-2013)
 Salvador Giner i Vidal (València, 1832 – 1911), compositor i professor de música

redpajama_set_name: RedPajamaWikipedia