text:
Christine Keeshig
Outreach Worker:
< Vacant >
Office Assistant:
Stephanie Akiwenzie
Maadookii@nawashfn.ca
125 Maadookii Crest.
Neyaahsiinigmiing, Ont.
N0H 2T0.
The elders are bridges to the old way
They are the custodians of the culture, for it is by the language and the stories that a people's culture and history are known. Some of the stories of the elders of Neyaashiinigmiing are told in two books about them published by the Band.
Here are stories of great hardship: residential school brutality, sacrifice and pain from the wars, hostility to their ancient claims and rights, poverty and the grinding effects of the Indian Act.
And yet, shining through the hardship is their sense of dignity, humor and determination that must be at the heart of the reason we have survived as a people. Not only survived, but thrived, for that spirit can be seen in the young as well. It can be seen in the advances the Band is making, in how it is turning court-recognized commercial fishing rights into a viable economy and Nawash into a leader in fisheries management, and in how we are re-asserting our ancient responsibilities to all our relations by intervening when environmental harm threatens our traditional territories.
Elders are intricately involved with these initiatives. They have appeared in court to give testimony to our traditional ways. They are involved in running a successful alternative justice program that uses traditional ways to reintegrate into the community people who have committed offences. They are
teaching Anishnabemowin (the Ojibway language) in the local schools and in the community. A 2004 Statistics Canada report indicates that Native children who spend time with elders are more likely to do better in school.
Maadookii means "sharing" in our language. It is the name of the seniors' group at Neyaashiinigmiing and also the building in which they meet.
Ladies Orchestra 1914
Standing, left to right:
Catherine Jones, Grace Lavalley, Lizzy Hilditch, Mary Akiwenzie, Amelia Jones.
Seated, left to right:
Ruby Hilditch, Delma Lamourex, Lizzy Desjardine, Virgina Keeshig (1914)
Maadookii Centre
Seniors are a growing segment of our population. We estimate that by the year 2010 our on-reserve elder population will more than double. Many more
who might be living off reserve will want to return home.
The Maadookii Seniors Centre was started in 1990 with a $350 donation from elder Verna Johnston. That same year the Maadookii Seniors Group drew
up their constitution that set out their purpose and objectives:
To allow the Seniors of Cape Croker an opportunity to participate in a wide range of activities in a safe environment that provides encouragement and fellowship.
To serve the community,
To unite and speak with one voice for the betterment of all Seniors.
To raise funds for the Centre and for programs for elders.
Ron Andrews, Stella Johnston, Christine Keeshig (ED), Isabel Millette, Marie Morgan,
Beth Stadelbauer.
Programming at Maadookii
The first building was built by volunteers from the community. Since then, the Maadookii Centre has become a favorite meeting spot for other programs and activities. It is frequently used to host meetings and dinners with visiting groups from outside the reserve. Wakes are held here and are well attended by family, friends and the community. It is truly a sharing place, reflective of the elders themselves.
The Maadookii Centre is home to a number of services and activities for seniors.
Snow removal and light repairs
Native crafts
Games (cards, bingo, scrabble) & entertainment
Socials and other gatherings
Day trips (the Centre has its own wheel-chair accessible bus)
Ojibway language classes
Support to travel to language conferences
Interaction with other people and programs on reserve.
Visit our webpage at: www.maadookii.org
Or join us on FaceBook.
Senior's Apartment Complex


text:
Gateway of India is one of the most prized monuments of the Mumbai City. Read about Gateway of India in Bombay, Maharashtra.
Home : Monuments of India : Gateway of India
Gateway of India
Location: Mumbai, Maharashtra
Founded By: Sir George Sydenham Clarke
Founded In: 1920-1924
Architect: George Wittet
Gateway of India is one of the major landmarks of India, situated in the Mumbai city of Maharashtra. The moment a visitor/tourist arrives in Mumbai by a boat, the first sight that comes in view is that of the massive Gateway of India. As you cross the gateway and move on to the steps behind it, the waterfront of the South Mumbai looms in view. From there, you can take boat trips to various locations, like the Elephanta Island. The monument is basically a 26 meters high arch, which has been made out of yellow basalt and reinforced concrete.
The architecture of the gateway is mainly based on the Indo-Saracenic style. However, elements from the Muslim architectural styles of 16th century Gujarat can also be seen. The central dome of the Gateway of India, standing at a height of 26 m, has a diameter of fifteen meters. When the gateway was constructed, the whole of the harbor front had to be realigned. This was done in order to make it fall in line with a planned esplanade, which was to sweep down to the center of the Bombay city.
Even in the early 20th century, the construction cost of Gateway of India came to somewhere around Rs. 21 lakhs. The cost was mainly borne by the Government of India. Since adequate funds were not available, the plan of building an approach road could not be put into action. The main reason for the construction of the Gateway of India was built to commemorate the visit of King George V and Queen Mary to Bombay (now Mumbai). The visit was made before the Darbar in Delhi that was set up in December 1911.
The foundation stone of the monument was laid by, the then, Governor of Bombay Sir George Sydenham Clarke on 31st March 1911. The architect of the gateway was George Wittet, whose final design was sanctioned in August 1914. The time period between 1915 and 1919 was spent on reclamations at Apollo Bundar, which were done for the land on which the gateway and the new sea wall were to be built. The foundations were finally completed in the year 1920 and the Gateway of India was completely ready in 1924.
Gammon India Limited, established by J C Gammon in 1919, carried out the construction work on the foundations of the gateway. During that time, it was the only construction company in India that was accredited with ISO 9001: 1994 certification in all fields of civil engineering, including design. The First Battalion of the Somerset Light Infantry, which were the last British troops to leave India after the country gained independence, passed through the Gateway of India in a ceremony on 28th February 1948.
Indian Monuments
Agra Fort
Ajanta Caves
Akbar Tomb
Akshardham Gandhinagar
Akshardham Delhi
Amaravati Stupa
Amber Fort
Arjuna's Penance
Aurangabad Caves
Bada Imambara
Bangla Sahib
Basilica of Bom Jesus
Bekal Fort
Bolgatty Palace
Brihadeeswarar Temple
Buland Darwaza
Cellular Jail
Charminar
Chettinad Palace
City Palace Jaipur
City Palace Udaipur
Dhamekh Stupa
Dilwara Temples
Dutch Palace
Elephanta Caves
Ellora Caves
Fateh Prakash Palace
Feroz Shah Kotla
Fort St George
Gangaikondacholapuram
Gingee Fort
Golconda Fort
Gol Gumbaz
Gomateshwara Statue
Hampi Ruins
Humayun Tomb
Jagannath Temple
Jaigarh Fort
Jaisalmer Fort
Janjira Fort
Jantar Mantar Delhi
Jantar Mantar Jaipur
Jewish Synagogue
Junagarh Fort
Khajuraho Temples
Kumbhalgarh Fort
Lake Palace
Lalgarh Palace
Lodi Tomb
Mahabodhi Temple
Moti Masjid
Mysore Palace
Padmanabhapuram Palace
Palitana Temples
Pattadakal Temple
Patwon ki Haveli
Purana Qila
Rock Fort Temple
Rumi Darwaza
Safdarjung Tomb
Sanchi Stupa
Shore Temple
Thirumalai Nayak Palace
Tughlaqabad Fort
Valluvar Kottam
Velankanni Church
Victoria Memorial
Vivekananda Memorial

redpajama_set_name: RedPajamaCommonCrawl


text:
Q: Reallocating a 2d array if initialized like so: char (*A)[size] = malloc(sizeof(char[size][size])) char (*A)[size] = malloc(sizeof(char[size][size]));

If I initialize size  as 10, but eventually I need more memory, how can I reallocate memory for A without losing its contents?
I tried something like this:
char (*B)[sizeColumns] = realloc(A, sizeof(char[sizeColumns][sizeColumns]));
A = B;

I start running into problems when I need to reallocate.
char linearray[1025];
char *line;
int stars = 0;
int sizeColumns = 4;
int usedColumns = 0;
char (*A)[sizeColumns] = malloc(sizeof(char[sizeColumns][sizeColumns]));
int i;
int j;
int rows = 5;

for(i = 0; i < rows; i++ ){
    if(i==0){
        A[i][0] = '+';
    }
    else{
        A[i][0] = '|';
    }
}
usedColumns++;
while(fgets(linearray,1024,stdin) != NULL){
    line = linearray;
    sscanf(line,"%d", &stars);
    if (usedColumns == sizeColumns) {
        sizeColumns *= 2;
        char (*B)[sizeColumns] = realloc(A, sizeof(char[sizeColumns][sizeColumns]));
        A = B;
    }
    for(i = 0; i < stars +1; i++ ){
        if(i==0){
            A[i][usedColumns] = '-';
        }
        else{
            A[i][usedColumns] = '*';
        }
    }
    usedColumns++;
}

If I input 1,2,3,4 above I want:
+----
|****
| ***
|  **
|   *

which I can successfully output if I initiallize sizeColumns as 5 above, but if it is 4 then I get:
+----
-****
*?***
*  **
*   *

I dont see how the contents of the first column is being overwritten. Again everything works fine if I dont need to reallocate.

A: Arrangement of the memory in such a case is linear.
e.g [4][4]
Image of 2D array:
AAAA
BBBB
CCCC
DDDD

Placement as a memory:
AAAABBBBCCCCDDDD

memory being enlarged([5][5]) by realloc:
AAAABBBBCCCCDDDDXXXXXXXXX

Interpretation of 2D Array([5][5]) as in that case:
AAAAB
BBBCC
CCDDD
DXXXX
XXXXX

Verification code :
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(void){
    int i,j;
    char (*A)[4] = malloc(sizeof(char[4][4]));
    for(i=0;i<4;++i){
        for(j=0;j<4;++j){
            A[i][j]=i+'A';
            printf("%c", A[i][j]);
        }
        printf("\n");
    }
    printf("*\n");
    char (*B)[5] = realloc(A, sizeof(char[5][5]));
    memset((char*)B+sizeof(char[4][4]), 'X', sizeof(char[5][5])-sizeof(char[4][4]));
    for(i=0;i<5;++i){
        for(j=0;j<5;++j){
            printf("%c", B[i][j]);
        }
        printf("\n");
    }

    return 0;
}

So rather than having to expand the whole,
there is a need to increase each line.
also note that when A = B, type of A is (*)[size]. size!

A: My suggestion to separate the histogram display parts so as to use a dynamic array input data array.

#include <stdio.h>
#include <stdlib.h>

#define MAX_DATA_SIZE 80 //console width is 80 :)

void histogram(int n, int data[n], int max){
    char (*disp)[n+1] = malloc(sizeof(char [max+1][n+1]));//Area for display is actually not required.
    int r,c;
    for(r = 0;r <= max; ++r){
        for(c = 0; c <= n; ++c){
            if(c == 0){
                if(r == 0)
                    disp[r][c] = '+';
                else
                    disp[r][c] = '|';
            } else if(r == 0){
                disp[r][c] = '-';
            } else {
                disp[r][c] = r <= data[c-1] ? '*' : ' ';
            }
        }
    }
    for(r = max; r>=0;--r){
        for(c =0;c<=n;++c)
            printf("%c", disp[r][c]);
        printf("\n");
    }
}

int main(void){
    int data[MAX_DATA_SIZE], max_data = 0;
    char input_line[128];
    int data_size = 0;
    while(fgets(input_line, sizeof(input_line), stdin)){
        if(sscanf(input_line, "%d", &data[data_size])==1){
            if(data[data_size] > max_data)
                max_data = data[data_size];
            if(++data_size == MAX_DATA_SIZE)
                break;//or malloc & realloc ?
        }
    }
    histogram(data_size, data, max_data);
    return 0;
}

redpajama_set_name: RedPajamaStackExchange


You can draw a parallel between this quote to what the classic L&D department does because – Knowledge cannot be transmitted.
Why? Well, we've got all of these buzzwords. You recognize them?
Why this separation? Well, we still got to sell our products don't we? A Learning Organization won't make money by having a bunch of professors learning things all day… Learning and work should be more connected. Learning is work and work is learning.
Jane Hart ( c4lpt.co.uk ), another key opinion leader has stated the obvious as I see it.
Just ask yourself: What is the Business most concerned about?
How much money they make as a result of the course?
Some of us are still stuck in the old Training swamp. Some of us have moved on to Learning, which is marginally better but still misses the goal… What we need to do to get closer to the business is to focus on Learning and Performance.
Stop using the term learning when you really mean learning and performance. Transform yourself into a learning and performance professional. Of course, title alone will not get the job done. Truly become a learning and performance partner by working hand in hand with line supervisors, managers and business executives on their turf. Aspire to be seen as one of them, not separate from them.
Equip supervisors to be effective coaches – What does the participants need to do, know, understand before the course? How about afterwards?
Develop and deliver resources for on-the-job performance support – Checklists, videos, manuals. When will the participants need assistance? In the classroom? No, On-the-job!
Things easy enough to be explained and put in a checklist should not be included in a classroom course! Show how to use the checklist and you're done!
Build peer-support communities so program participants can help each other before, during and after the program's end.
Start measure and evaluate behavior and performance change – There's no point in taking more than attendance on a classroom course since what they remember there and then isn't the same as after a week, month or year.
What we are interested in is: Performance change! Are we making any money for our (internal) customers? Why should they send their employees if we cannot prove that?
How do we connect this new way of thinking with the 70/20/10-model? For the L&D to become performance partners we've got to spread our offering from our cozy little formal corner.
The 20: Again, as stated earlier, our offering must include ways to equip and help managers, supervisors, senior employees to support their employees or colleagues. Help them with ways to coach, prepare, follow-up, give feedback, explain learning and performance goals etc.
The 70: Our offering must also include ways to support the employee directly on their job. Provide ways of learning on the job. Performance support tools and job-aids, Communities, Videos, Webinars etc.
This is what the L&D department must do – all of it! How do we start working this way?
This is my organization's new learning approach, called Multi-layer learning, which I've shown in a previous blog post. The layers are Time and Delivery. The size of the time layers gives some indication of the amount of content in those layers. The delivery layers with various channels of delivering the learning possibilities. The most important channel is the top one: Manager Support. The second most important is Performance Support.
Some critisism of the model (also shared on the blog) states that this adds even more formal learning, which I mean is simply not the case. The amount of formal learning is, on the contrary, decreased and removed from the classroom training (On-location learning). The key thing to understand is that the content removed is then of course covered by having it replaced and transformed to include much more work context with assignments on the field when moved to other time layers. The other key thing is that by doing this time on-the-job increases.
Since tests are also included an employee can test-off any required course without even coming to a classroom.
Now this is where things starts to get interesting. Imagine if managers in your organization starts saying: "We can't afford sending people to your courses anymore. It's not only your fees but also expenses for hotels, travel and, most important, time off the job." If your L&D department is anything like mine, you can't really offer them anything else then, can you? Not if we don't start looking outside our ILT, Classroom Training!
And if they, because of this, won't pay this year's fee because we CAN'T offer anything else – I can't blame them. I'd do the same thing.
And, again back to the new model, if they pass all tests without our involvement? – That's perfect! Then our Prerequisite and Prelearning has saved all that cash it would've meant sending their employees across the world. Following up on usage we should inform them of this for each and every employee that accomplishes this with our help.
And let's continue measuring the value we provide. Prove we're not only a cost center but also a performance partner.
He then continues saying organizations could as well reduce the costs of ineffective training by putting it all into online formats. And when you think about it, he's right. Mind you, the 10% stated here isn't the same as those in the 70/20/10-model. This means that if you're only doing formal learning (thus missing 90%) you're only getting 1% performance change! In that case, transforming classroom training into e-learning and by that only delivering half the impact, you'd only lower your performance from 1% to 0,5%. That's nothing out of nothing.


text:
Conflict Forecasting and its Limits
Tracking #: 426-1406
Thomas Chadefaux https://orcid.org/0000-0002-8456-8124
Responsible editor:
Tobias Kuhn
Submission Type:
Research on international conflict has mostly focused on explaining events such as the onset or termination of wars, rather than on trying to predict them. Recently, however, forecasts of political phenomena have received growing attention. Predictions of violent events, in particular, have been increasingly accurate using various methods ranging from expert knowledge to quantitative methods and formal modeling. Yet, we know little about the limits of these approaches, even though information about these limits has critical implications for both future research and policy-making. In particular, are our predictive inaccuracies due to limitations of our models, data, or assumptions, in which case improvements should occur incrementally. Or are there aspects of conflicts that will always remain fundamentally unpredictable? After reviewing some of the current approaches to forecasting conflict, I suggest avenues of research that could disentangle the causes of our current predictive failures.
Manuscript:
ds-paper-426.pdf
Special issue (if applicable):
First issue
Data repository URLs:
Date of Submission:
Date of Decision:
Solicited Reviews:
Review #1 submitted on 23/Feb/2017
By Håvard Nygård https://orcid.org/0000-0002-8909-6146
Reviewer has chosen not to be Anonymous
Overall Impression: Good
Suggested Decision: Accept
Technical Quality of the paper: Excellent
Presentation: Excellent
Reviewer`s confidence: High
Significance: High significance
Background: Comprehensive
Novelty: Limited novelty
Data availability: All used and produced data are FAIR and openly available in established data repositories
Length of the manuscript: This manuscript is too long for what it presents and should therefore be considerably shortened (below the general length limit)
Summary of paper in a few sentences:
The discusses the use of prediction in conflict research. It discusses the recent shift from a singular focus on explanation to more use of prediction, reviews current efforts and methods for predicting conflict, and discusses challenges to predicting armed conflict.
Reasons to accept:
This is an excellent and extremely timely paper. Conflict forecasting today is one of the most innovative sub-fields of conflict research. This article provides a very useful overview of the field and, more importantly, provides an original discussion of the limits and challenges to conflict prediction. In this, the paper clearly is highly relevant not just for conflict research but also for the wider data science community. The particular challenges to prediction the author points to will most definitely be fruitful avenues for future research on conflict prediction.
Reasons to reject:
Further comments:
Review #2 submitted on 01/Mar/2017
By Thomas Maillart https://orcid.org/0000-0002-5747-9927
Overall Impression: Average
Suggested Decision: Undecided
Technical Quality of the paper: Good
Presentation: Good
Reviewer`s confidence: Medium
Background: Reasonable
Novelty: Clear novelty
Length of the manuscript: The length of this manuscript is about right
In this position paper, the author elaborates on conflict forecasting and its limits, as well as on the origins of the interest for forecasting, i.e., (i) for the sake of scientific validation of theories, (ii) to update beliefs for the intelligence community or (iii) perhaps more tentatively, to prevent wars. The variety of forecasting methods ranging from expert, data driven (mainly econometric), models and the wisdom of crowds are carefully described with their respective advantages and limits. The manuscript then develops into a discussion on the possibility to predict wars, and finally brings advocacy for prediction attempts (failed or successful) as a research agenda.
Topic wise, forecasting and prediction is at the heart of the data science idea. Application to wars and conflicts brings a clear additional human/social/political dimension, which is of high interest. On the technical side, current forecasting/prediction methods currently used are thoroughly described, which makes this paper highly informative for a reader with interest on the topic. In particular, the paper informs on the availability and also scarcity of data streams available for prediciton, and how meta-data may be used (i.e., financial market data, prediction markets). Finally, conceptual and technical limits to predictions are addressed.
The points below are more a wishlist for improvements than "reasons to rejects" :
- forecasts and limits of predictions encompasses much more than just wars and conflicts. For instance, to take a topic I am quite familiar with, in the field of complex systems physics, heated debates have occurred on financial market bubble crashes (see http://www.sciencedirect.com/science/article/pii/S0378437113004342 and related upstream and downstream papers). This is added by a sort of rampant philisophical question : should scientists make predictions at all? Successful prediction could result from chance, and is not necessarily a token of model robustness. Yet compatible with the scientific process, failed predictions may harm reputation. In other words, predictions may be seen by the scientific community as a form of misplaced arrogance. In a nutshell, I would recommend to expand reflection (i) upstream by considering ouststanding issues associated with the limits of predictions, beyond the field of conflicts and (ii) downstream on the morale / ethical issues associated with predictions at broad (e.g., predictions are also the realm of artifical intelligence).
- It would be great for the purpose of publishing in Data Science, that the author sets an agenda for a practice of data science (incl. transparency, systematic collection and public release of evidence, cooperation and contests, i.e., coopetition), in a way that it would help, at least partially, alleviate the problems associated with the limits of predictions of conflicts, and perhaps beyond. Along with a critical view, of what the data science standards cannot do to help better predictions.
Let me use this field to conclude. I am overall supportive of this paper, but I feel it could be fixed to (i) be more self-consistent, and (ii) to better raise future challenges, as well as to (iii) improve the integration of the problem in the practice of data science. As said, predictions and their limits is very timely topic beyond conflicts (think e.g., of the major miss in the US Elections predictions/forecasts, as well as Brexit). By taking a broader view, the paper could appeal to an even broader audience. On the above appreciations, I have set *overall impression* to *average*, to stress that the paper needs some conceptual, background, and outlook improvements, and I have already set *significance* and *novelty* to high conditional that the paper will be fixed according to these line. If anything is unclear, please don't hesitate to reach out directly.
By Nils Metternich https://orcid.org/0000-0001-8757-0409
Overall Impression: Excellent
The paper provide a review of the field and tries to assess the limitations of conflict forecasting (especially in regard to conflict onset).
I have read the manuscript `Conflict Forecasting and it Limits' with great interest and there is much to like about the manuscript. I recommend publication condition on minor changes that I will outline below:
1) I think the manuscript has to be more transparent about the fact that many conclusions in regard to the predictability of conflict relate mainly conflict onset. This is never explicitly stated, but especially during the interesting differentiation between clocks, clouds, and black swans this becomes obvious. Another way to address this would be to evaluate whether one could put different conflict variables (conflict escalation, duration, occurrence, outcome, or location of conflict) in different categories of predictability. E.g. location might be more of a clock like mechanism, while onset might be a black swan. E.g. Ward et al. 2013 focus on the occurrence of conflict and can present fairly good prediction performance.
2) I would like the author to expand a bit on how outcomes that cannot be predicted can be explained (p2).
3) I think there are several claim in the paper that need to be backed up with citations. E.g.:
- p2: `Prediction has typically been considered as unscientific' (by whom?)
- p2: `..papers that strongly improve prediction... are routinely rejected' (is that personal experience or actually happening?)
- p3: mentions work on neural networks that provide accurate prediction. Is this Phil Schrodt's work?
- p4: 'the fields of international conflict and civil war, the majority of the this work has until recently relied on structural variables' (citations are missing)
- p4: citations for ICEWS and TABARI are missing (see below for reference)
- p5: `more generally on news-based sources, have scored some predictive successes' (there need to be more citations and especially earlier work on this. See citations below)
4) On page 8 there is a discussion that it might be harder to attain point precision forecasts when actors behave strategic. I agree with this assessment, but strategic models will be able to provide us with a probability space of behavior that could be leveraged in forecasts. This related to a more general point: The manuscript generally focuses more on point predictions than on probability forecasts. It is not clear why the manuscript focuses on point predictions.
5) I think the manuscript is generally ignoring some of the foundational work on conflict forecasting and also some important current contributions. I am providing a list of important contributions that should be integrated into the manuscript to provide a fair assessment about the successes in forecasting. This can demonstrate that the field has made incredible advances, which might provide a more positive outlook on what we might be able to do in the future:
Schneider, Gerald, Gleditsch, Nils Petter, and Carey, Sabine (2011). Forecasting in International Relations: One Quest, Three Approaches. Conflict Management and Peace Science, 28(1):5–14.
Ward, Michael D., Metternich, Nils W., Dorff, Cassy L., Gallop, Max, Hollenbach, Florian M., Schultz, Anna, and Weschle, Simon (2013). Learning from the Past and Stepping into the Future: Toward a New Generation of Conflict Prediction. International Studies Review, 15(4):473–490.
Schrodt, Philip A. and Gerner, Deborah J. (2000). Cluster-based Early Warning Indica¬tors for Political Change in the Contemporary Levant. American Political Science Review, 94(4):803–817.
Brandt, Patrick T. and Freeman, John R (2006). Advances in Bayesian Time-series Mod¬eling and the Study of Politics: Theory Testing, Forecasting, and Policy Analysis. Political Analysis, 14(1):1–36.
O'Brien, Sean P. (2002). Anticipating the Good, the Bad, and the Ugly: An Early Warning Approach to Conflict and Instability Analysis. Journal of Conflict Resolution, 46(6):791– 811.
Doran, Charles F. (1999). Why Forecasts Fail: The Limits and Potential of Forecasting in International Relations and Economics. International Studies Review, 1(2):11–41.
Schrodt, Philip A. (1991). Prediction of Interstate Conflict Outcomes Using a Neural Net¬work. Social Science Computer Review, 9(3):359–380.
Azar, Edward E . McLaurin, RD., Havener, Thomas, Murphy, Craig, Sloan, Thomas, and Wagner, Charles H. (1977). A System for Forecasting Strategic Crises: Findings and Speculations about Conflict in the Middle East. International Interactions, 3(3):193–222.
Brandt, Patrick T., Freeman, John R., and Schrodt, Philip A. (2014). Evaluating Forecasts of Political Conflict Dynamics. International Journal of Forecasting, 30(4):944–962.
Rummel, Rudolph J. (1969a). Forecasting International Relations: A Proposed Investigation of Three-mode Factor Analysis. Technological Forecasting, 1(2):197–216.
Ray, James Lee and Russett, Bruce (1996). The Future as Arbiter of Theoretical Controver¬sies: Predictions, Explanations and the End of the Cold War. British Journal of Political Science, 26(04):441–470.
Gerner, Deborah J., Schrodt, Philip A., and Yilmaz, Ömür (2009). Conflict and Mediation Event Observations (CAMEO) Codebook. Available
Azar, Edward. (1980). The Conflict and Peace Data Bank (COPDAB) Project. Journal of Conflict Resolution, 24(1):143–152.
King, Gary and Zeng, Langche (2001). Improving Forecasts of State Failure. World Politics, 53(4):623–658.
O'Brien, Sean P. (2010). Crisis Early Warning and Decision Support: Contemporary Approaches and Thoughts on Future Research. International Studies Review, 12(1):87–104.
Boschee, Elizabeth, Jennifer Lautenschlager, Sean O'Brien, Steve Shellman, James Starz, Michael D. Ward, 2015, "ICEWS Coded Event Data", http://dx.doi.org/10.7910/DVN/28075, Harvard Dataverse, V10.
Weidmann, Nils B. and Ward, Michael D. (2010). Predicting Conflict in Space and Time. Journal of Conflict Resolution, 54(6):883–901.
Shellman, Stephen, Hatfield, Clare, and Mills, Maggie J. (2010). Disaggregating Actors in Intranational Conflict. Journal of Peace Research, 47(1):83–90.
Clauset, Aaron, Young, Maxwell, and Gleditsch, Kristian Skrede (2007). On the Fre¬quency of Severe Terrorist Events. Journal of Conflict Resolution, 51(1):58–87.
Brandt, Patrick T., Colaresi, Michael, and Freeman, John R. (2008). The Dynamics of Reciprocity, Accountability, and Credibility. Journal of Conflict Resolution, 52(3):343–374.
Gurr, Ted Robert and Lichbach, Mark Irving (1986). Forecasting Internal Conflict: A Competitive Evaluation of Empirical Theories. Comparative Political Studies, 19(1):3–38.
Gleditsch, Kristian Skrede and Ward, Michael D. (2013). Forecasting is Difficult, Especially about the Future: Using Contentious Issues to Forecast Interstate Disputes. Journal of Peace Research, 50(1):17–31.
Bell, Sam R., Cingranelli, David, Murdie, Amanda, and Caglayan, Alper (2013). Co¬ercion, Capacity, and Coordination: Predictors of Political Violence. Conflict Management and Peace Science, 30(3):240–262.
Harff, Barbara (2003). No Lessons Learned from the Holocaust? Assessing Risks of Genocide and Political Mass Murder since 1955. American Political Science Review, 97(1):57–73.
Goldsmith, Benjamin E., Butcher, Charles R., Semenovich, Dimitri, and Sowmya, Arcot (2013). Forecasting the Onset of Genocide and Politicide: Annual Out-of-sample Forecasts on a Global Dataset, 1988-2003. Journal of Peace Research, 50(4):437–452.
Bremer, Stuart A. (1989). Computer Modeling in Global and International Relations: The State of the Art. Social Science Computer Review, 7(4):459–478.
Choucri, Nazli and Robinson, Thomas W. (1978). Forecasting in International Relations: Theory, Methods, Problems, Prospects. WH Freeman, San Francisco
Hughes, Barry B. (2001). Choices in the Face of Uncertainty: The International Futures (IFs) Model. Futures, 33(1):55–62.
- Various Journal of Peace Research special issue articles on conflict forecasting: Online First
Link to Final PDF and JATS/XML Files
Submitted by Tobias Kuhn on Wed, 07/04/2018 - 08:37
https://github.com/data-science-hub/data/tree/master/publications/1-1-2/ds-1-1-2-ds002
Disclaimer | Privacy Policy | Data Science is Published by IOS Press, Copyright 2022


The June issue of Spanish street press Go Mag comes with a mix by Agoria who will be playing Sonar by day on Friday 17th. The mix is a nice warm up to the festival featuring most of the key artists all blended with Agoria's usual eclectic style. Enjoy!


text:
Halkedaliya Lekamlage alias Mahawela Lekamlage Premalal Jayasekara (Sinhala: ප්‍රේමලාල් ජයසේකර), also known by his pseudonym Choka Malli (Sinhala: චොකා මල්ලි) (lit. Lil' Choco Brother) is a Sri Lankan convicted murderer, politician, and is a member of the Parliament of Sri Lanka and a former government deputy minister.

On 31 July 2020, he along with two others were sentenced to death over a fatal shooting during the 2015 Sri Lankan presidential election. but were acquitted and released by the Court of Appeal on 31 March 2022.

Murder conviction

The lead-up to the 2015 Sri Lankan presidential election was marred by some violence. On January 05 2015 opposition candidate Maithripala Sirisena was due to address a rally in the town of Kahawatta in the Ratnapura District. Premalal Jayasekara, then a Deputy Minister in the government of incumbent President Mahinda Rajapaksa, was involved in a shooting incident that fatally wounded a supporter of Sirisena who was decorating the election stage.

After a trial lasting 5 years, the Ratnapura High Court sentenced Jayasekara and two others to death on 31 July 2020. Later they filed petitions with the Court of Appeal citing that the manner in which the death sentence was imposed was in violation of the law. On 31 March 2022, they were acquitted and released by the Court of Appeal.

2020 parliamentary election

During the 2020 Sri Lankan parliamentary election, Jayasekara won 104,237 preferential votes in the Ratnapura District and was elected to Parliament. The Attorney General of Sri Lanka Dappula de Livera informed Parliament that as a convicted criminal on death row, Jayasekara was ineligible to hold office as a Member of Parliament. However, after the Court of Appeal of Sri Lanka ruled that there was no legal impediment to Jayasekara being sworn in as an MP, he was permitted to attend sittings from prison.

References

1974 births
Government ministers of Sri Lanka
Living people
Members of the 12th Parliament of Sri Lanka
Members of the 13th Parliament of Sri Lanka
Members of the 14th Parliament of Sri Lanka
Members of the 15th Parliament of Sri Lanka
Members of the 16th Parliament of Sri Lanka
People convicted of murder by Sri Lanka
Politicians convicted of murder
Prisoners sentenced to death by Sri Lanka
Sri Lanka Freedom Party politicians
Sri Lankan people convicted of murder
Sri Lankan politicians convicted of crimes
Sri Lankan prisoners sentenced to death
Sri Lanka Podujana Peramuna politicians
United People's Freedom Alliance politicians

redpajama_set_name: RedPajamaWikipedia


text:
Q: Как записать значение массива в файл? Как записать ["amount"]=> float(9) а именно только значение 9 в файл?
Весь массив
 array(2) { [0]=> array(2) { ["amount"]=> float(9) ["currency"]=> int(643) } [1]=> NULL }

A: С помощью file_put_contents():
// $file - путь к файлу
// $array_res - массив
file_put_contents($file, $array_res[0]["amount"]);

С помощью fwrite()
// $file - путь к файлу
// $array_res - массив

// Открыть текстовый файл
$f = fopen($file, "w");
// Записать строку текста
fwrite($f, $array_res[0]["amount"]);
// Закрыть текстовый файл
fclose($f);

A: // Ваш массив будет в переменной $arr
$f = fopen("file.text", "w");
fwrite($f,  $arr[0]['amount']);
fclose($f);


Find terrific prices on an array of wholesale baby diamond shoe at DHgate. With a wide selection of low-priced merchandise available to purchase you have lots of options on wholesale baby diamond shoe. Which type of baby diamond shoe do you want to buy on DHgate online? Take your time.
Over the years DHgate built a solid reputation based on superior quality service and 151 baby diamond shoe items, which has China top First Walkers, Shoes, Baby, Kids & Maternity suppliers. Whether you need 8 baby diamond shoe or baby diamond shoe, DHgate has you covered if you need to buy baby shoe, baby diamond shoe at low wholesale prices from China top suppliers.


One day, during a lesson on proper grammar, the teacher asked for a show of hands from those who could use the word "beautiful" twice in the same sentence.
"Very good, Julie," replied the teacher.
She then called on Jethro.
"My mommy planned a beautiful banquet and it turned out beautifully," he said.
Then, the teacher called on Little Johnny.


SSCAIT Description: Odin is a bot developed during a Bachelor thesis project. It is based on UAlbertaBot and uses Bayesian networks to predict the opponent. More information at http://plankter.se/projects/odin/ .
Monthy win rate of Odin2014 over last 3 years compared to 4 bots with best ELO.
Win rate of Odin2014 against all the opponents with at least 50 mutual games.


text:
A Ukrainophone (, ukrainomovnyi) is a person who speaks the Ukrainian language either natively or by preference. At the same time the term is used in a more specialized meaning to describe the category of people whose cultural background is associated with the Ukrainian language regardless of territorial distinctions.

There are an estimated 41 million native speakers of Ukrainian worldwide (of whom 37.5 million or 91% live in Ukraine).

There are many Ukrainophone communities in neighbouring countries with Ukraine, due to the historical spread of ethnic Ukrainian populations in areas that later became a part of those states, including Belarus, Moldova (especially Transnistria), Poland, Hungary, Slovakia and Romania, as well as in continental nations and areas where Ukrainians had moved to in recent centuries or were deported to during the Soviet regime, such as Kazakhstan, the Far East, Sakhalin, Kuril Islands, Lithuania, Czech Republic, Germany, Italy, Croatia, Portugal, the U.K., etc. Additionally, there are large Ukrainophone immigrant communities in various parts of Canada, the United States (especially New York City, Baltimore) and Australia, and somewhat smaller communities in various nations of Latin America, such as Brazil, Argentina, Paraguay, and Venezuela.

Usage in Ukraine

Ukrainian vs. Russian
In  Ukraine almost all people are fluent in Ukrainian and it is taught to all children through the Ukrainian school system.  However, many people are also fluent in Russian, due to three centuries of forced Russification during the Russian Empire and then the Soviet Union, as well as waves of ethnic Russian migrations into Ukraine during Soviet rule. This is particularly true of ethnic Russians, members of other ethnic minority groups and residents of large cities in Central, Eastern and Southern Ukraine. Ukrainophones are in the majority in most of Western and Central Ukraine, and almost in all rural areas of Ukraine, including East Ukraine. In addition, people in areas influenced by the Russian language often speak a mixed form of Ukrainian known as Surzhyk, which uses a base of Ukrainian grammar but plugs in a lot of Ukrainianized Russian vocabulary into conversation.

Due to a significant lack of knowledge of Ukraine among Western journalists, which is often compounded by anti-Ukrainian propaganda coming from Russian media sources (which even led to boycotts of Russian media products in Ukraine), many of them have portrayed Russian and Ukrainian speakers as clearly defined and completely separate ethnic groups, each of which desires to exclusively dominate the Ukrainian state. The reality is that most people in Ukraine know both languages and frequently engage in language-switching as it suits them. Speaking Ukrainian or Russian in Ukraine is not regarded as a political statement, but merely a personal preference in a particular situation. For most Ukrainians, Russian and Ukrainian languages are interchangeable. Moreover, it is quite common for individuals to speak different languages to each other, as each person uses the language they are more comfortable with, without

Usage in the Ukrainian diaspora

Canada
In Canada the term Ukrainophone is also used to differentiate Ukrainian language-speakers from ethnically Ukrainian Canadians in general.  It refers to speakers of both the local Canadian Ukrainian dialect and Standard Ukrainian.

Most Ukrainian Canadians are assimilated to the North American majority and speak English.  In the nomenclature of Canadian and Quebec language politics this makes them Anglophones, but some Ukrainian Canadians may also be Francophones (French-speakers).  If Ukrainian is a person's mother tongue then they are considered "allophone" (neither English- nor French-speaking).  Therefore, a Ukrainophone in Quebec is also an allophone.

United States
The overwhelming majority of Ukrainophones in the United States reside in select areas of New York City and Baltimore, MA. In 2018 the number of Ukrainian diaspora in the US reached 1 million.

Brazil

Although most Brazilian Ukrainians have lived in Brazil for 4-5 generations and few have ever seen Ukraine, they have preserved their language and culture to a large degree in rural Paraná state. This has largely been due to the colossal efforts of the Ukrainian Churches. In contrast, among the Ukrainians in Argentina where the Church was not as strong as in Brazil, the Ukrainian language has largely disappeared. Among those who live in the colonies, or agricultural settlements, Ukrainian is widely spoken at home, in church, and in the community, and today it is not uncommon for Ukrainian children to be unable to speak the Portuguese language until they begin school. Despite the Ukrainian language's widespread use in everyday speech, the ability to read and write is more limited, with over 50% of the Ukrainian population being unable to write in the Ukrainian language. Due to isolation from Ukraine, the Ukrainians of Brazil speak a 100-year-old form of the language's Galician or "Upper Dniestrian" dialect. Ninety percent of Church services are conducted in the Ukrainian language (in contrast, among the 700,000 ethnic Poles in Brazil only two churches use the Polish language). The Portuguese language has only come into wide use in the youngest generation - those who are younger than fifteen years old. The situation in urban areas is quite different. In the cities, Ukrainians tend to become assimilated into Brazilian culture and to adopt the Portuguese language.

References

Language
Ukrainian diaspora

Ukrainian


text:
\section{Introduction}
The earliest study of the Sun revels the umbral-penumbral structure of the sunspots, these are the two region of a sunspot; a darker umbra surrounded by lighter penumbra. Form the recent observations it becomes clear that,
 umbrae are the regions of vertical magnetic field whereas field lines are more inclined in penumbrae.

\cite[Nicholson (1933)]{1933PASP...45...51N} studied the relative size of sunspot penumbra to umbra, derived from Royal Observatory of Greenwich (RGO) data and found that the ratio is fairly constant ($\approx 4.7$). \cite[Waldmeier (1939)]{1939MiZur..14..439W} examined their relative size using the different data set and his result was in agreement with Nicholson (1933). \cite[Antalov{\'a} (1971)]{1971BAICz..22..352A} and
\cite[Hathaway (2013)]{2013SoPh..286..347H} have studied the sunspot penumbral to umbral area ratio using the RGO data and found that the penumbral to umbral area ratio increases with sunspot
size for smaller sunspots but it is almost independent of the size for large sunspots. \cite[Hathaway (2013)]{2013SoPh..286..347H}   also showed some long term trend in the ratio of penumbra to umbra area for smaller sunspot group.

Study of variation in total solar irradiance uses total sunspot area and assume that the ratio of penumbral to umbral area does not change
with time (\cite[Foukal \& Lean 1990]{1990Sci...247..556F}). If there is any significant variation in the ratio it will help us to better reconstruct the total solar irradiance. In addition to that, it will also help us to understand penumbral formation in different sizes of sunspot.

 In this article, we discuss an automated algorithm to detect the umbra from the sunspot and examine the variation of penumbral to umbral area ratio using white light intensity images of the Sun obtained from Kodaikanal solar observatory.

\vspace*{-0.5 cm}
\section{Data and Methodology}
Kodaikanal solar observatory has been observing the Sun in three different wavelength bands namely White light (since 1904), Ca-K (since 1905) and  H-alpha (since 1912). These data were taken on photographic plates and recently they have been digitized (4k$\times$4k) and calibrated.
Sunspots have been  detected from the full disk images using semi automated algorithm named `modified-STARA' (\cite[Ravindra et al. 2013]{2013A&A...550A..19R} \& \cite[Mandal et al. 2017]{2017A&A...601A.106M}) and the binary masks of detected sunspots are stored in Idl save files. We have developed an automatic algorithm in Idl, to detect the umbra  from individual sunspot based on Otsu technique (\cite[Otsu 1979)]{4310076}. The penumbral to umbral area are corrected for foreshortening.  An example is shown in Fig.\,\ref{fig1}(a). Using this algorithm umbra has been detected for all sunspots present in white light images taken from 1923 to 2011 (Cycle 16-23). Penumbral to umbral area ratio for each sunspot has been calculated as
$$\text{Ratio}=\frac{\text{Total area}}{\text{Area of umbra}}-1$$
\section{Results and Conclusion}
\begin{figure}[!h]
\begin{center}
 \includegraphics[scale=0.35]{Histogram.eps}
 \vspace*{-0.3 cm}
 \caption{a) A representative example of a sunspot and umbra detection. b) Variation of ratio as a function of total sunspot area, averaged over a bin size of 20 $\mu$Hem.}
   \label{fig1}
\end{center}
\end{figure}
\vspace*{-0.3 cm}
The ratio increases with sunspot area for smaller sunspots ($<100~\mu$Hem) whereas it does not show any significant variation with  total area for larger sunspots ($>100~\mu$Hem) (Shown in Fig.\ref{fig1}(b)). This suggest that, as the  size of sunspot increases, there must be the emergence of additional penumbra in the spot. Average ratio for all sunspots is $\approx 5.5$ and this result is in agreement with earlier results
 (\cite[Antalov{\'a} 1971]{1971BAICz..22..352A} \& \cite[Hathaway 2013]{2013SoPh..286..347H}).

\vspace{-0.4cm}

redpajama_set_name: RedPajamaArXiv


Mansfield Public Schools, Connecticut -serving 1,150 students from PreK through 8th grade -School Year 2019-20- Part-Time Speech Pathologist (0.40 FTE): Goodwin Elementary School (Grades PreK-4) Qualified applicants must hold or be eligible for Connecticut licensing and certification as a Speech Pathologist. Position is open until filled. To submit your application via Applitrack, visit http://www.mansfieldct.org/MBOEJobs Questions or for more information, contact: Michele Beers, Human Resources Manager Mansfield Public Schools 4 South Eagleville Road Storrs, CT 06268 860.429.3350 The Mansfield Public Schools is an Equal Opportunity/Affirmative Action Employer.


text:
Visit The Hearst Building In New York City
The Hearts if New York City's first landmark of the 21st century. It's a 46-story glass-and-steel skyscraper that establishes a number of design and environmental milestones. This is the first "LEED Green" office building in New York City history. The Hearst is home to some of the most iconic ma...
Visit NYC: The Hearst Building
Offical website of The Hearst
Visit New York City: The Hearst Building
Feng Shui Workshop At The Bayville Free Library Presented by Laura Cerrano
By making simple shifts in the presentation of your space you can consciously and sub-consciously enhance the most important areas of your life. In other words, where attention goes, energy flows. These workshops will teach you how your daily interactions with your home, work and everyday surrou...
Providing Los Angeles and San Diego CA Feng Shui Consultations
Laura Cerrano, CEO and founder of Feng Shui Manhattan will be visiting her Los Angeles, California office from July 5th - July 18th in 2016. During that time she is providing on-site home and business consultations within the Los Angeles and San Diego regions. Visits to the California office is ...
Up Coming Feng Shui Long Island Workshops and Classes
July 21st, 2016. Bayville Free Public Library. 34 School St #B, Bayville, NY 11709. Workshop. Time: 7:00pm-8:30pm. Free. August 8th, 2016. Sea Cliff Village Library, NY. Feng Shui For Your Home. Workshop. 7pm - 8:30pm. Free. September 10th, 2016. Nine Month MID Feng Shui Certification Program B...
I Am A Little Confused By This Sign
While checking out a car show in Morgan Park, NY one of the signs caught my attention. Do you see what I see? Based on the definition of "Park" that I came across it said," a piece of public land in or near a city that is kept free of houses and other buildings and can be used for pleasure and ex...
Visit Long Island Beach New York
I honestly believe visiting Long Beach New York anytime during the year is great. Yet, when visiting in the summer, it's really something else. The city is less than a mile wide from ocean to bay and about three and a half miles long.The city ranks as the 35th densest community in the United Stat...
New Feng Shui Manhattan Business Card!
I have been meaning to order new feng shui business cards for a while, yet I kept putting it off and now they have finally arrived!! Laura Cerrano, Certified Feng Shui Expert On-site/remote Feng Shui residential, commercial & real estate development consultations. Feng Shui Workshops, classes, ...


Imagine being able to take a luxurious soak at the end of the day–no spa required. Don't let your shower prevent relaxation: convert your shower to a bathtub!
At Luxury Bath of Washington and Oregon, we believe in giving our customers the bathroom they want and deserve. We can convert your old shower into a tub in as little as two days, and we have hundreds of different options for color and style.
All of our bathtub conversions are designed around you! We'll sit down with you to plan and design your ideal tub space, adding specialty attachments and fixtures for ease of use. With our extensive color line-up, it's easier than ever to match your existing bathroom for a seamless finish.
We use an acrylic called Luxsan®, a material we developed in-house for our bathtubs and showers. Luxsan® is more durable than any other acrylic material, and easier to clean, too! We blend Microban® in all of our acrylic products for added cleanliness. The zinc and silver content of Microban® makes your tub surface easier to clean, with less scrubbing and buildup!
After the design process is complete, and your appointment is scheduled, we'll have your new bathtub installed in as little as two days. We handle the entire project from start to finish, including the removal of old materials and clean-up after. Remodelling your bathtub has never been this simple!
Need a Free New Shower to Tub Conversion Quote?
We recognize and understand the needs of our community, and we provide walk-in tubs for greater accessibility and comfort. Walk-in tubs are typically deeper than standard tubs, offering more soaking space. We can also customize these tubs for your mobility needs by adding ADA-compliant grab bars, built-in seats, and whirlpool jets.
Walk-in tubs can provide safer and easier access to bathing, and with Luxury Bath of Washington and Oregon, it's easier than ever before!
Can You Install a Shower with a Tub Inside?
Tub and shower combinations are a popular choice. We can convert your shower into a standard tub and also include shower fixtures, making your bathroom just as versatile as it needs to be. You'll get the same great customizable options for color and style, and the benefits of both a tub and a shower!
Why Choose Luxury Bath for Your Shower to Tub Remodel?
Most shower to tub conversions require lengthy renovations or complete remodels. Not with Luxury Bath of Washington and Oregon! We can have your new tub installed in as little as two days.
Our first-rate materials are renowned for their longevity and cleanliness. Because Luxsan® has Microban® built into the material itself, you'll have a cleaner, safer bathtub for years to come.
Luxury Bath has hundreds of style and color combinations to choose from, so you'll be getting more than just a bathtub: you'll be getting the tub of your dreams! If you'd like to convert your shower to a walk-in tub, a tub and shower combo, or a standard bathtub, give Luxury Bath of Washington and Oregon a call today!


text:
Interview Resources
Permanent/Direct Hire
Contract to Hire
Submit a Resource Request
Information Technology Staffing & Recruiting Services
Communication Skills Lacking in Today's Workforce
By James Thompson, CEO, The InSource Group
As the head of a technology staffing firm, I've seen smart people struggle to compose a thoughtful email, an instructive memo or an effective sales presentation. While competent in the majority of their job responsibilities, they lack key communications skills such as developing a cohesive argument and cogently expressing an idea. When it comes to these skills, more people in business are finding that words fail them.
In my experience, this skills shortage is more widespread than it was 10 or 20 years ago. And I'm not the only one who sees this. A Conference Board survey from a few years ago found that employers reported that reading comprehension and writing were important skills but were deficient in new hires. In a PayScale and Future Workplace survey of hiring managers in early 2016, 60 percent reported that recent graduates lacked critical thinking skills and 44 percent lacked writing proficiency.
Is it affecting business? Of course it is. The essence of business is trade, which requires selling a product, service or idea. Fundamental to selling is the ability to persuade people that you and your company are the right choice for their time and money. If you can't communicate, it's much more difficult to differentiate yourself or add value to a business relationship. The technical aspects – grammar, vocabulary and spelling – are only part of it. Lurking behind poor communication skills is a lack of critical thinking ability, meaning that people can't analyze or interpret information and ideas, which can have a negative impact in business.
It's a simplification to blame smartphones and social media where communication consists of sentence fragments, emojis and acronyms. I'm afraid the cause is systemic. A Chronicle of Higher Education survey from 2006 found that 61 percent of high school teachers said that their students have never written a paper longer than five pages, therefore not having the opportunity to develop more sophisticated writing skills. In a 2007 study at George Washington University, first-year undergraduates reported that the most frequent high school writing assignments required them to offer and support opinions, with a secondary emphasis on summarizing and synthesizing information. Students were rarely required to criticize an argument, define a problem and propose a solution, shape their writing to meet their readers' needs or revise it based on feedback – exercises requiring critical thinking.
And the situation doesn't always improve in college. Earlier this year, the Wall Street Journal reported on the results of an under-publicized standardized test given to freshmen and seniors at about 200 colleges to measure whether they're learning to think better. At more than half of the schools, at least a third of seniors were unable to make a cohesive argument, assess the quality of evidence in a document or interpret data in a table, the newspaper's review of test scores concluded.
Our economy will see dramatic changes in the next decade as automation and artificial intelligence continue to grow. In all likelihood, many of the jobs of 2027 haven't been invented yet. And because software will make so many decisions for us, technical skills may not be as important. The Pew Research Center estimates that employment in occupations requiring above-average written and spoken communication (in addition to interpersonal skills) will grow 8.1 percent compared with only 4.4 percent growth for occupations requiring below-average levels of those skills.
This deficiency doesn't discriminate by generation; it stretches from millennials to baby boomers. Why? I think it's because people don't read as much as they used to. It's easier to come home from work and turn on Real Housewives or Sports Center and tune out. Reading can take effort.
Warren Buffett reads 500 pages a day while Bill Gates reads about 50 books a year. That habit has worked out well for them. Reading not only informs and entertains, it also engages the intellect and exposes us to new ideas and concepts. It helps us obtain a mastery of the language and, perhaps most important, it hones critical thinking skills. After all, good communication is reflective of good thinking.
The good news is that it is never too late to begin reading more. The result is sharper thinking and eventually better communication.
James Thompson is the CEO and president of The InSource Group, a technology staffing and placement company with offices in Dallas, Fort Worth and Houston. He can be reached at JT@insourcegroup.com.
Friday Food Baskets- North Dallas Shared Ministries
19th Annual Sporting Chance Golf Tournament
Dallas Mavs Foundation Charity Classic Golf Tournament
The InSource Group School is Cool
The InSource Group Hunger Busters
The InSource Group Donates Monitors to the Dallas Police Academy
ENFT North Star Award 2013
Planting Trees and Strengthening Relationships
Best Buddies 2015
Community Service Through Entrepreneurs for North Texas
North Texas Food Bank Project
The InSource Group
12221 Merit Drive, Ste 1000, Dallas, TX 75251
info@insourcegroup.com
What's Up at The InSource Group July 8, 2019
What's Up at The InSource Group June 24, 2019
© 2019 · The InSource Group


The Oakville Rangers Novice AAA team, in conjunction with MOHA, will be collecting new, unwrapped toys for the Halton Police Toys for Tots and Teens. Families, friends and fans, please consider helping less fortunate families in Halton have a Merry Christmas! Donations of toys, gift cards, cash and Canadian Tire money will be collected at any Novice AAA practice or game. Let's work together and help every kid in Halton have a Merry Christmas!
Thank you to Dr. Kai Chau for providing free custom mouth guards to our team. Please visit his website at www.dentistryat2000.com.


Load your family into the 2015 Subaru Outback. With just over 40,000 miles on the odometer, this 4 door sport utility vehicle prioritizes comfort, safety and convenience. It features all-wheel drive versatility, an automatic transmission, and a refined 6 cylinder engine. It includes leather upholstery, a power seat, a trip computer, a blind spot monitoring system, tilt steering wheel, a power liftgate, rear wipers, and remote keyless entry. Rear passengers enjoy the seat heating functionality, keeping them warm during the winter months. With high intensity discharge headlights illuminating your path, you'll always appreciate maximum visibility. You and your passengers will enjoy the stereo system, which includes a CD player with MP3 capability, and 12 speakers, providing excellent sound throughout the cabin. Subaru ensures the safety and security of its passengers with equipment such as: head curtain airbags, front side impact airbags, traction control, brake assist, anti-whiplash front head restraints, a security system, and 4 wheel disc brakes with ABS. Various mechanical systems are monitored by electronic stability control, keeping you on your intended path. This vehicle has achieved Certified Pre-Owned status, by passing Subaru's comprehensive certification process, including a comprehensive 152 point inspection! Our knowledgeable sales staff is available to answer any questions that you might have. They'll work with you to find the right vehicle at a price you can afford. Come on in and take a test drive!


text:
Q: how to implement enhanced session handling in PHP i'm working with sessions in PHP, and i have different applications on single domain. Problem is, that cookies are domain specific, and so session ids are sent to any page on single domain. (i don't know if there is a way to make cookies work in different way). So Session variables are visible in every page on this domain.
I'm trying to implement custom session manager to overcome this behavior, but i'm not sure if i'm thinking about it right.
I want to completely avoid PHP session system, and make a global object, which would store session data and on the end of script save it to database.

*

*On first access i would generate unique session_id and create a cookie

*On the end of script save session data with session_id, timestamps for start of session and last access, and data from $_SERVER, such as REMOTE_ADDR, REMOTE_PORT, HTTP_USER_AGENT.

*On every access chceck database for session_id sent in cookie from client, check IP, Port and user agent (for security) and read data into session variable (if not expired).

*If session_id expired, delete from database.

That session variable would be implemented as singleton (i know i would get tight coupling with this class, but i don't know about better solution).
I'm trying to get following benefits:

*

*Session variables invisible in another scripts on the same server and same domain

*Custom management of session expiration

*Way to see open sessions (something like list of online users)

i'm not sure if i'm overlooking any disadvantages of this solution. Is there any better way?
Thank you!!
UPDATE:
i did not explain it in enough detail and caused a lot of confusion here, so i want to make clearer what i'm dealing with:
I'm building SOA server application, which would be deployed in many different enviroments. It won't have it's own webserver, so in those enviroments there could be another PHP applications. Employees of these companies will have user accounts in this application, so they will obtain a cookie with session Id into this application.
As we know, webserver running PHP when loading session data doesn't make difference (at least by default) what script from which directory created session. All it needs is a session ID. This session ID is sent with each request from client to server. From your answers i got a way, how could PHP restrict cookies for certain directory, but malicious user is able to edit cookie, because it's stored in his computer. Malicious user in my case can have access to write and execute php script in the same environment, although not having access to my application and it's database. If he create a script, he could use Session id from cookie of my application, thus he has access to read and edit session data on my application and gain access to parts of my application, that he shouldn't be allowed to.
I see there will be another security threats in deploying application in such environment, what i'm going for is the best isolation i could do, and default session handling seems too dangerous and not designed for uses like this.
So my question is, if you see something, which is less secure, less flexible in my design, than it would be with default session management..
Thank you for your answers,..

A: You need to use:
session_set_cookie_params()
http://www.php.net/manual/en/function.session-set-cookie-params.php
In particular you need to set the "path" in each of your webapps.

A: Have a look at the method session_set_save_handler in PHP.
http://php.net/manual/en/function.session-set-save-handler.php
Well, to be factually correct, several companies use the approach of having custom session handlers for multi-domain, distributed in-memory/database backed session handling

A: If you don't want to have problems with shared sessions, you can use the session_save_path function to set a path where your application will save its session files. As it won't be the one used by other apps on the server, you wont run into session sharing problems.
Only one thing : make sure the path you save your session files in is not accessible from the web. Something like :
/YourAppFolder
     /www (web accessible)
     / libs
     /config
     / session (where you put your session files)

A: Here's what you can look into:

*

*Set the session ID's path and domain. If the domain is .mastergaurav.com, the cookies will be sent back to mastergaurav.com, www.mastergaurav.com, blogs.mastergaurav.com etc

*May be, instead of using session ID as cookie - if you have to really traverse multiple TLD domains - , make it a part of the URL for completely custom implementation:
abcd.php?<?php echo session_name(); ?>=<?php echo session_id(); ?>&domain=<your-domain>

A: I want to completely avoid PHP session system, and make a global object, which would store session data and on the end of script save it to database.
If you are thinking of serializing your objects, i wont recommend as its not a good practice to hold secure details.
http://www.php.net/manual/en/function.session-set-save-handler.php#81761
Have a look at the above example, he has given a good solution.
Maintaining your state across the domains.

*

*Generate a unique Identifier first.

*You can create a cookie that is read on every page access. On every page access the cookie is sent from browser to server.

*Also you can pass your unique identifier as a part of every URL you generate, if you want another approach instead of cookie.

Update:

*

*First you need to restrict users to your application based on IP address, if you want to make it more secure which can be achived through crossdomain.xml restricting users.

*You need to look into encryption of your session so that even if the user breaks it up he could not use it. Data should be encrypted with private keys and decrypted using public one. The Handshake is based on public keys.

A:
i'm not sure if i'm overlooking any disadvantages of this solution. Is there any better way?

its very complicated - and its not going to work, e.g. remote_port will change between requests, remote_addr may change.
There's at least 2 very obvious solutions without reinventing the way session handling works:
1) use a different cookie name for the session in each app - see session_name()
2) have each application in a different sub directory (e.g. http://example.com/app1/, http://example.com/app2/, ...) and set the path on the cookie - see session_set_cookie_params or use different ini setting for session.cookie_path


text:
Siemens Wins 2010 Techno-College Innovation Award
The European Association for Cardio-Thoracic Surgery (EACTS) presented its Techno-College Innovation Award for 2010 to Siemens Healthcare for its development of the syngo Aortic ValveGuide software.
The new imaging application software helps cardiologists and heart surgeons to prepare for and perform transcatheter aortic valve implantation (TAVI). Using CT-like sectional images from the angiography system, syngo Aortic ValveGuide automatically segments a 3D image of the aortic root and highlights anatomical reference points such as the coronary ostia. This 3D image is superimposed with the two-dimensional fluoroscopy images, which allows the physician to orient him/herself in real time and in three dimensions within the patient's body while navigating the new aortic valve to its intended position.
The Techno-College Innovation Award celebrates innovations which represent advances in cardiac surgery. This is the first time that Siemens has won the award.
The product mentioned herein is not commercially available. Due to regulatory reasons its future availability cannot be guaranteed.
Related news articles:
Siemens Healthcare's Profile
About Siemens Healthcare
The Siemens Healthcare Sector is one of the world's largest suppliers to the healthcare industry and a trendsetter in medical imaging, laboratory diagnostics, medical information technology and hearing aids. Siemens offers its customers products and solutions for the entire range of patient care from a single source - from prevention and early detection to diagnosis, and on to treatment and aftercare. By optimizing clinical workflows for the most common diseases, Siemens also makes healthcare faster, better and more cost-effective. Siemens Healthcare employs some 48,000 employees worldwide and operates around the world. In fiscal year 2009 (to September 30), the Sector posted revenue of 11.9 billion euros and profit of around 1.5 billion euros. For further information please visit: www.siemens.com/healthcare.
MRI Predict Intelligence Levels in Child…
A group of researchers from the Skoltech Center for Computational and Data-Intensive Science and Engineering (CDISE) took 4th place in the international MRI-based adolescent intelligence prediction competition. For the first...
Finally, Machine Learning Interprets Gen…
In this age of "big data," artificial intelligence (AI) has become a valuable ally for scientists. Machine learning algorithms, for instance, are helping biologists make sense of the dizzying number...
W2-Professorship for Data Analytics in H…
Pros and Cons of Mommy Mobile Apps
Mobile phone apps are increasingly being used to support breastfeeding decisions - sometimes at a cost, a Flinders University study indicates. The objective approach of most infant feeding (IF) apps...
Philips Expands its Range of Consumer-Fo…
At CES 2020, Royal Philips (NYSE: PHG, AEX: PHIA), a global leader in health technology, today announced its expansion of personalized consumer health solutions that help shape the industry of...
Artificial Intelligence (AI) can Detect …
A new technology for detecting low glucose levels via ECG using a non-invasive wearable sensor, which with the latest Artificial Intelligence can detect hypoglycaemic events from raw ECG signals has...
Bayer and Exscientia Collaborate to Leve…
Bayer and Exscientia Ltd., a UK-based Artificial Intelligence (AI)-driven drug discovery company, have entered into a three-year, multi-target collaboration. The partners will work on early research projects combining Exscientia's proprietary...
Gloucestershire Hospitals Announce Signi…
Gloucestershire Hospitals NHS Foundation Trust has gone live with the first elements of its Allscripts Sunrise electronic patient record just five months after signing a contract with the company. The trust...
A Better Testing Method for Patients wit…
Parkinson's disease is a neurodegenerative disorder that manifests through symptoms such as tremor, slow movements, limb rigidity and gait and balance problems. As such, nearly all diagnostic testing revolves around...
Smartphone Cameras can Speed Up Urinary …
Biological Engineers at the University of Bath have developed a test that could help medics quickly diagnose urinary tract infections (UTIs), using a normal smartphone camera. Similar in principle to...
Siemens Healthineers Celebrates 125 Year…
Today it's commonplace, but at the time it was a medical-technical revolution - the discovery of X-rays by Wilhelm Conrad Röntgen 125 years ago in Würzburg. His discovery on November...


The meetings of the jury responsible for awarding the 2016 Princess of Asturias Award for Technical and Scientific Research, the fourth of eight international awards that will be bestowed by the Princess of Asturias Foundation, will be held on May 31st and June 1st. The awards will be bestowed this year for the XXXVI edition in their history.
Thirty-four candidatures, from Canada, China, Colombia, Egypt, France, Germany, Hungary, India, Israel, Japan, Mexico, Portugal, Switzerland, the United Kingdom, the United States and Spain, have been nominated for this award.
Members of the juries will hold an initial meeting with the media at 11 A.M. (GMT+2:00) on Tuesday 31st in the "Salón de Consejos" of the hotel (on the first floor), immediately prior to being formally convened and starting their deliberations. The jury will then elect a president from amongst them. The jury secretary will be appointed by the Foundation.
Their decision will be made public at 12 noon (GMT+2:00) on Wednesday June 1st in the "Salón Covadonga" of the hotel (on the ground floor), and jury members will then be available for interviews.


text:
Trekking from «Chimbulak» (2240 m) to the Glaciological Station of the Institute of Geography «Tuyuk Su-T1 Glacier» (3455 m)
The distance is 9.1 km (from Chimbulak to station T1), climbing 1215 m.
District: Zailiysky Alatau, SNPE Ile-Alatau, Small Almaty Gorge, Medeu, SC Shymbulak.
On personal transport or by bus №6 from Almaty we reach the sports rink «Medeu». With «Medeu» on a minibus, which leaves every 15 minutes, the price is one way 300 tenge (for pensioners 150 tenge), we reach the «Shymbulak».
The path starts from the SC «Shymbulak». Along the way we pass the alpinist camp «Tuyuksu», the rocky clamp «Gate Tuyuksu» (in winter from the slope of Peak Oktyabrenok avalanches are possible along the corridors (gutters), which must be crossed as quickly as possible, and the weather station «Mynzhylki» rises up to the mud-proof dam.
We continue the movement past the abandoned house of the State Institution «Kazselezaschita» and the remains of the T34 tank on the road to the South.
The road goes serpentine to the glaciological station of the Institute of Geography «Tuyuksu-T1 Glacier», this is at the base of the Molodezhny Glacier tongue, which drains from the northern ice slope of Molodezhny Peak (4147 m), here you can see a panorama of all the peaks of Tuyuk Su gorge.
Glaciological station of the Institute of Geography «Tuyuksu-T1 Glacier» was founded in 1956. It is one of the oldest glaciological stations in the world. When, after the Great Patriotic War, Soviet glaciologists built their houses almost in the «language» of the glacier, no one could have imagined that after five decades the ice would retreat by several hundred meters.


The 2-CD set which accompanies the Renewing the Mind for Teaching and Learning in the Principle Approach handbook.
The thirst for learning is so apparent in young children and each new day provides a platform for exploration. But as children grow and mature, the desire for knowledge is often dulled by secular ideas and the joy of study and learning is extinguished by mind-numbing curriculum.
How can Christian parents combat the anti-Biblical forces that assail the family daily? How can we safeguard our children's hearts and minds that are assaulted with ideas that harden the mind to principles and ideals that are uplifting, inspiring and true?
Consider renewing your own heart and mind—as a parent and a teacher—for teaching and learning Biblical principles with classic American Christian methods of education. Renewing the Mind for Teaching and Learning is a self-directed study course, returning the mind to the natural function of "teaching" and "learning." The classroom once again becomes fresh, powerful and spirit-filled.
The notebook method and instruction in how to use The Noah Plan Principle Approach curriculum.


The Associate Degree is designed to provide an educational experience that prepares students for work, citizenship, and an enriched life as an educated person, and to lay a solid foundation for further study in the field of Anthropology.
Within the framework of the Associate of Arts Degree students are required to complete at least 60 credits with a minimum grade of C in each course, including the courses below.
Upon successful completion of this program, students are eligible to receive an Associate of Arts Degree in Anthropology.


text:
Innovation and risk at play -- Cluster of big Washington projects
In a windy corner of Washington's Klickitat County, high up on a ridge overlooking the Columbia River, three large wind stations are coming alive following years of development, innovative financing, some risky decisions, and a joint approach to gaining access to transmission lines. The three comprise a 205 MW project developed by a partnership of public utilities, a 450 MW wind plant by veteran developer Cannon Power, and a 94 MW project by Enxco, a second wind industry veteran from California. By the end of this year, close to 400 MW will be online with the build out to the full 700 MW in the years to come.
All three developers have contributed to the cost of a $40 million substation needed for wheeling to the wind power onto the electric grid. The investment in the substation, being built by the Bonneville Power Administration, will be recouped through transmission credits once wind power is being fed to the hungry regional market.
Of the trio, the 205 MW White Creek wind project steals the biggest headline. It is unique for two reasons. First, its lead developer is not a well-known commercial scale developer but a partnership of four local Public Utility Districts (PUDs) serving nearby load. The PUDs are all from the Last Mile Electric Cooperative and include Lakeview Light & Power, Tanner Electric Cooperative, Klickitat County PUD and Cowlitz County PUD. Each small utility saw the need to act proactively to secure new energy supplies in their region as rising prices and energy demand eat into their future power contract options, says Brett Wilcox of Summit Power, who has led project development for the PUDs.
Financing first
Second, because the PUDs are tax-exempt entities that cannot take advantage of the federal government's wind energy production tax credit (PTC), the developers took a trail-blazing finance approach. The PUDs did not want to relinquish their investments in the wind plant, which are likely to bring savings for customers, so needed to find a way to also access the PTC. They used their position as a late stage developer and owner of the project to strengthen their bargaining position when selling White Creek to outside equity investors. In what seems to be a US financing first, the PUDs incorporated purchase of a 20-year "power pre-pay" agreement for White Creek's output at lower rates than they could have found buying wind on the open market (story page 41). "It's a very unique project with a very unique financing structure," says Wilcox.
Cannon Power's Gary Hardke considers his 450 MW Windy Point project unique in its own ways. The company bucked the trend of inking a power purchase agreement (PPA) with a utility before ordering turbines. That is typically a prerequisite for a company to secure the financing for a bulk turbine purchase. But Hardke is playing the odds that waiting will net the company a higher price. "We have intentionally held off. We have lots and lots of interested counterparties but our perception is that the market is going up and there is a scare supply of good projects in that part of the world to meet demand. We're happy to finally be in a sellers' market," he says.
Strong demand is being driven by generally high prices among wind's competitors and mandates for renewable energy from California up through Oregon and Washington. Smaller electricity retailers in Washington have historically turned to the Bonneville Power Administration (BPA) for its vast and affordable hydropower resources to meet new energy demand. But BPA has made it clear to regional utilities that its resources are largely tapped out and they will have to look elsewhere for new power sources.
Turbines from Germany
Cannon will be receiving a mix of Siemens and Repower turbines and entering the early stages of construction at Windy Point well ahead of signing the power contracts now under negotiation. Up to six companies may eventually sign on to be off-takers for the power. The company has also committed to turbine orders with deliveries well into the future.
Of 350 MW now lined up in soft and firm orders, the bulk will be met by Siemens machines, but a firm 50 MW order has gone to German Repower, a newcomer on the US market, for its 2 MW unit. Hardke expects between 85 and 120 MW to be online by the end of this year spread between both makes. "We're trying to juggle how we deal with ever increasing turbine prices and we've decided to take the risk and lock and commit to a fairly good size volume of turbines -- even ones that are being delivered after the PTC could expire," says Hardke. At the moment the credit is set to expire at the end of the year.
The third wind project within the area is Enxco's 94 MW Goodnoe Hills development, which again uses Repower 2 MW turbines. The project, among the first to use Repower machines in the US, is currently nearing completion. Enxco ordered 150 MW from Repower back in June 2006, 48 MW of that for a project in California.


text:
A Look at Great Moments in Mobile Video [INFOGRAPHIC]
Do you remember the first time you got a smartphone with video capability? Sure-you may have thought it'd be a convenient way to shoot short videos of family vacations or crazy outings with friends. You may not have realized it at the time or given it much thought, but mobile video would go on to transform society. It's only fitting then that we highlight some of the great moments in mobile video history.
In 2003, MobiTV launched as the first mobile TV service in the U.S., gaining 500,000 subscribers by 2005. About a full decade later, Nielsen reported that 30 million consumers are watching TV on mobile. The 2010 FIFA World Cup in South Africa became the largest online sporting event, generating one million unique viewers for the ESPN mobile TV app, 93 million minutes of total live viewing, and 555,000 video views over the first two days. We can't forget about movies-in 2010, Netflix launched its mobile app for watching movies on the go. Now, in 2013, the service accounts for four percent of all mobile traffic.
One of the truly useful applications of mobile video is that anyone can capture major world events. When Superstorm Sandy hit the East Coast on Sunday Oct. 28, 2012, Weather.com received 40 million video views, more than the viewership of all cable news networks combined. Web traffic also outpaced TV viewership to the weather channel.
Are you heavy consumer of mobile video? Please share in the comments! To learn more, check out the full infographic produced by Qualcomm Spark.


text:
Airón puede referirse a:

 La garza real o airón, un ave acuática propia de Eurasia y África.
 El antiguo dios hispano prerromano Airón.
 A la cascada Pozo Airón.
 A la aldea Pozo Airón.


Made the trip to see the camp ago, not until you've been doing you appreciate the enormity of what they achieved, oh and the museum part is run by local volunteers it's down to them that it's been so well preserved. Everything must be done to escape; a soldiers credo. If it was easy to be a Soldier, everyone would enlist to defend ours. Watched the Ew people sunflower shirt with my dad. Dad told me after the movie, if you believe in you and work hard, you'll be just fine. He is not using the word succeed, funny that! They are not afraid of laws, courts or police.
The only thing a criminal is afraid of is an Ew people sunflower shirt with a gun that can defend themselves. I agree with one thing: If Americans stopped using illegal drugs, there would not be a problem with the violent cartels. Walls are not magical, have two sides and separation is potential without orientation. One problem, government smuggling of both guns and drugs is not interested in obstructions. Mexico is a sovereign country with its own problems and is teetering on being a failed state.
This the fault of Mexican corruption, not of American liberty. I mean they gotta make a buck, right, the staggering profits they were making from the gulf war they created were drying up. All the Ew people sunflower shirt and nonsensical wall are nothing but a smokescreen to keep my fellow Americans from figuring this out. It's working astoundingly well.


text:
package com.github.bot.curiosone.api;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

import com.google.gson.Gson;

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;

import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

import spark.Spark;
import spark.utils.IOUtils;

/**
 * JUnit API test class.
 */
public class MainTest {

  /**
   * Set the port where it will run.
   */
  private static final String port = System.getenv("PORT") != null
      ? System.getenv("PORT") : "4567";

  /**
   * Set server URL.
   */
  private static final String server = "http://localhost:";

  /**
   * Set server URL Authority.
   */
  private static final String urlAuthority = server + port;

  /**
   * Set the expected exception thrown in test methods.
   */
  @Rule
  public ExpectedException thrown = ExpectedException.none();

  /**
   * Set the expected error message on faulty requests.
   */
  private static String EXPECTED_ERR_REQ_MSG = "Sending request failed: "
        + urlAuthority;

  /**
  * Start the server and wait for its initialization.
  */
  @BeforeClass
  public static void before() {
    Main.main(null);
    Spark.awaitInitialization();
  }

  /**
  * Stop the server.
  */
  @AfterClass
  public static void after() {
    Spark.stop();
  }

  /**
   * Test GET request on /status path.
   * @result The request will be replied with the right body and status code.
   */
  @Test
  public void testStatusGetRequest() {
    TestResponse res = request("GET", "/status").get();
    Map<String, String> json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("status")).isEqualTo("ok");
  }

  /**
  * Test POST request on /status path.
  * @result The request should throw an IOException, triggering an AssertionError.
  */
  @Test
  public void testStatusPostRequest() {
    assertThatExceptionOfType(AssertionError.class)
       .isThrownBy(() -> request("POST", "/status").get())
       .withMessageContaining(EXPECTED_ERR_REQ_MSG);
  }

  /**
  * Test GET request on /talk path.
  * @result The request should throw an IOException, triggering an AssertionError.
  */
  @Test
  public void testTalkGetRequest() {
    assertThatExceptionOfType(AssertionError.class)
        .isThrownBy(() -> request("GET", "/talk").get())
        .withMessageContaining(EXPECTED_ERR_REQ_MSG);
  }

  /**
   * Test POST request on /talk path.
   * @result The request should receive a response, containing the right body and status code.
   */
  @Test
  public void testTalkPostRequest() {
    TestResponse res = request("POST", "/talk", "{message: \"Hello\", scope: \"\", emotion: \"\"}")
        .get();
    Map<String, String> json = res.json();
    assertThat(json.get("message")).isIn("Hi there!", "Hi.", "Hello!");
    assertThat(json.get("scope")).isEmpty();
    assertThat(res.status).isEqualTo(200);

    res = request("POST", "/talk",
        "{message: \"DoYouUnderstandThis?!?\", scope: \"TROLL\", emotion: \"\"}").get();
    json = res.json();
    assertThat(json.get("message"))
        .isIn(
        "DoYouUnderstandThis??",
        "DoYouUnderstandThis?? I do not understand",
        "DoYouUnderstandThis?.. that is cool"
      );
    assertThat(json.get("scope")).isEmpty();
    assertThat(res.status).isEqualTo(200);

    res = request("POST", "/talk", "{message: \"42\", scope: \"theAnswer\", emotion: \"\"}").get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message"))
      .isIn("42... that is cool", "42.? I do not understand", "42.?");
    assertThat(json.get("scope")).isEmpty();

    res = request("POST", "/talk",
        "{message: \"What is an apple?\", scope: \"apple\", emotion: \"\"}").get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).contains("apple");
    assertThat(json.get("scope")).isEqualTo("apple");

    res = request("POST", "/talk", "{message: \"I live in Rome\", scope: \"\", emotion: \"\"}")
        .get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).containsIgnoringCase("rome");
    assertThat(json.get("scope")).containsIgnoringCase("rome");

    res = request("POST", "/talk",
        "{message: \"I have the driving license\", scope: \"license\", emotion: \"\"}").get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).isNotNull().isNotEmpty();
    assertThat(json.get("scope")).isNotNull();

    res = request("POST", "/talk",
        "{message: \"A drive license is a document\", scope: \"document\", emotion: \"\"}").get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).isNotNull().isNotEmpty();
    assertThat(json.get("scope")).isNotNull();

    res = request("POST", "/talk",
        "{message: \"What is a godfather?\", scope: \"\", emotion: \"\"}").get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).containsIgnoringCase("godfather");
    assertThat(json.get("scope")).containsIgnoringCase("godfather");

    res = request("POST", "/talk",
        "{message: \"I like pizza\", scope: \"pizza\", emotion: \"\"}").get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).containsIgnoringCase("pizza");
    assertThat(json.get("scope")).containsIgnoringCase("pizza");

    res = request("POST", "/talk",
        "{message: \"what is pizza\", scope: \"pizza\", emotion: \"\"}").get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).containsIgnoringCase("pizza");
    assertThat(json.get("scope")).containsIgnoringCase("pizza");

    res = request("POST", "/talk",
        "{message: \"what is pizza?\", scope: \"pizza\", emotion: \"\"}").get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).containsIgnoringCase("pizza");
    assertThat(json.get("scope")).containsIgnoringCase("pizza");

    res = request("POST", "/talk",
        "{message: \"che hai detto?!?\", scope: \"\", emotion: \"\"}").get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).isIn("I think you should speak english",
        "PLEASE, speak english!", "Are you a robot too?");
    assertThat(json.get("scope")).isEmpty();

    res = request("POST", "/talk", "{message: \"l'amour toujours...\", scope: \"\", emotion: \"\"}")
        .get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).isIn("I think you should speak english",
        "PLEASE, speak english!", "Are you a robot too?");
    assertThat(json.get("scope")).isEmpty();

    res = request("POST", "/talk", "{message: \"what is a pullman?\", scope: \"\", emotion: \"\"}")
        .get();
    json = res.json();
    assertThat(res.status).isEqualTo(200);
    assertThat(json.get("message")).containsIgnoringCase("pullman");
    assertThat(json.get("scope")).containsIgnoringCase("pullman");

  }

  /**
   * Execute a server request.
   * @param method a String identifier of the desired HTTP request.
   * @param path a String containing the server path for the HTTP request.
   * @return an Optional instance.
   *         If the request fails, the Optional instance is empty, otherwise,
   *         it contains a TestResponse instance.
   */
  private Optional<TestResponse> request(String method, String path) {
    try {
      URL url = new URL(urlAuthority + path);
      HttpURLConnection connection = (HttpURLConnection) url.openConnection();
      connection.setRequestMethod(method);
      connection.setDoOutput(true);
      connection.connect();
      String body = IOUtils.toString(connection.getInputStream());
      return Optional.of(new TestResponse(connection.getResponseCode(), body));
    } catch (IOException e) {
      Assert.fail("Sending request failed: " + e.getMessage());
      return Optional.empty();
    }
  }

  /**
   * Execute a server request.
   * @param method a String identifier of the desired HTTP request.
   * @param path a String containing the server path for the HTTP request.
   * @return an Optional instance.
   *         If the request fails, the Optional instance is empty, otherwise,
   *         it contains a TestResponse instance.
   */
  private Optional<TestResponse> request(String method, String path, String body) {
    try {
      URL url = new URL(urlAuthority + path);
      HttpURLConnection connection = (HttpURLConnection) url.openConnection();
      connection.setRequestMethod(method);
      connection.setDoOutput(true);
      connection.setDoInput(true);
      OutputStream os = connection.getOutputStream();
      os.write(body.getBytes("UTF-8"));
      connection.connect();
      String res = IOUtils.toString(connection.getInputStream());
      return Optional.of(new TestResponse(connection.getResponseCode(), res));
    } catch (IOException e) {
      Assert.fail("Sending request failed: " + e.getMessage());
      return Optional.empty();
    }
  }

  /**
   * This class represents an implementation of a HTTP response.
   */
  private static class TestResponse {

    /**
     * Body of the response.
     */
    public final String body;

    /**
     * Status of the response.
     */
    public final int status;

    /**
     * Default class constructor.
     * @param status the status of the response.
     * @param body the body of the response.
     */
    public TestResponse(int status, String body) {
      this.status = status;
      this.body = body;
    }

    /**
     * returns a Map instance, in order to mimic a JSON representation of the
     * obtained response.
     */
    public Map<String,String> json() {
      return new Gson().fromJson(body, HashMap.class);
    }
  }
}

redpajama_set_name: RedPajamaGithub


Chipotles in adobo are a great way to add intense heat and a rich, sweet, smoky flavor to sauces and other dishes.
1. Preheat broiler. On a broiler-proof sheet pan, toss tomatoes with onion, oil, salt, and pepper. Broil until charred in spots, 15 to 20 minutes; cool.
2. Transfer contents of sheet pan to a food processor; add chipotles, cilantro, and lime juice. Pulse until combined but still chunky.
This salsa is perfect. The smokiness of the roasted tomatoes with the richness and spice of the chipotles is perfect. This is my staple salsa recipe now.
This is a wonderful salsa and very versatile. I usually double to keep one recipe chunkier for salsa and puree then cook the other portion for huevos rancheros.


Top leader of BJP, AAP and SP to hold election rallies in UP Today :- On Tuesday, Union Home Minister Rajnath Singh, Union Minister Nitin Gadkari, Chief Minister of Delhi Arvind Kejriwal and leader of Samajwadi Party will be holding rallies in Uttar Pradesh. On Monday, PM Narendra Modi and Congress vice-president Rahul Gandhi addressed the rallies in Kanpur and Jaunpur respectively in Uttar Pradesh.
There is the assembly election in Uttar Pradesh in 2017.So all party will be holding rallies in different parts of the state. Union Home Minister Rajnath Singh will address a Parivartan Rally in Hardoi and Union Minister Nitin Gadkari will address another rally in Ambedkar Nagar.
Samajwadi Party Chief Mulayam singh Yaday and state party chief Shivpal singh Yadav will address a mega rally in Deoria, Uttar Pradesh.
In the heat of election, how can the chief minister of Delhi and AAP supremo Arvind Kejriwal stay behind from all party leaders. In a Parivartan Rally of his own in Bhopal, AAP Supremo Arvind Kejriwal will endeavour to drum up support for his Aam Aadmi Party against the ruling BJP in Madhya Pradesh state.