text:
Q: Срезы в фильтрах django Пытаюсь применить срезы к выборке, чтобы ограничить ее. Насколько я понял документацию, то это должно ограничить выборку 10-ю записями:
def get_queryset(self, *args, **kwargs):

    qs = Message.objects.all()
    qs = qs.filter(Target_id=self.dialog)[0:10]
    qs = qs.annotate(sender_id=Max('Sender__id'))
    return qs

Но по факту запрос возвращает мне все записи, но применяет аннотацию лишь к 10-ти первым.
Генерируемый запрос - через Django DebugToolbar - выглядит так:

SELECT "main_message"."id", "main_message"."Sender_id",
  "main_message"."Time", "main_message"."Content",
  "main_message"."Target_id", MAX("main_message"."Sender_id") AS
  "sender_id" FROM "main_message" WHERE "main_message"."Target_id" =
  '22' GROUP BY "main_message"."id", "main_message"."Sender_id",
  "main_message"."Time", "main_message"."Content",
  "main_message"."Target_id" LIMIT 10

Пробовал так же ограничивать через slice в шаблоне:
{% for message in messages|slice:":10" %}

Но результат тот же. Как сделать,чтобы срез применялся не к аннотации записей, а к количеству выбранных записей?

A: Предлагаю след вариант.
Вы сначала выбираете ID записей, для которых будет аннтотация, а потом применяете аннотацию
def get_queryset(self, *args, **kwargs):

    qs = Message.objects.all()

    ids_for_annotate = qs.filter(Target_id=self.dialog).values_list('id', flat=True)[0:10]

    qs = qs.filter(id__in=ids_for_annotate).annotate(sender_id=Max('Sender__id'))
    return qs

Если же вам нужно выбрать часть из всех аннотаций сообщений, то тогда поменяйте строчки аннтотации и ограничения выборки местами
def get_queryset(self, *args, **kwargs):

    qs = Message.objects.all()
    qs = qs.annotate(sender_id=Max('Sender__id'))
    qs = qs.filter(Target_id=self.dialog)[0:10]
    return qs

redpajama_set_name: RedPajamaStackExchange


text:
Soyouz T-10-1 (parfois référencée Soyouz-T 10a en Occident) était une mission habitée soviétique à destination de la station spatiale Saliout 7. Elle ne décolla jamais, le lanceur s'étant embrasé et détruit sur son pas de tir le , juste avant le lancement. La tour de sauvetage fonctionna avant l'explosion et sauva l'équipage.

Paramètres de la mission

Cette mission était la seconde tentative d'addition de panneaux solaires sur Saliout 7 après l'échec de l'amarrage de Soyouz T-8 en . Vladimir Liakhov, résidant alors dans la station, dut finalement effectuer lui-même cette opération au cours de deux sorties extravéhiculaires ou EVA (pour Extra-Vehicular Activity) en novembre alors qu'il n'avait pas été entraîné pour.

Déroulement

 avant le lancement, une défaillance du générateur de gaz au sein d'un des moteurs entraîna un incendie sur le pas de tir. Quelques secondes plus tard, l'équipe au sol activa la tour de sauvetage par commande radio. La capsule s'échappa alors de la fusée déjà entourée  par les flammes et inclinée d'un angle de 20 degrés.

Les boulons explosifs séparèrent les modules habitables (module orbital et module de descente où se trouve l'équipage au lancement) du module de service, et le haut de la coiffe du reste de la fusée. Les fusées d'éjection s'allumèrent, tractant coiffe et modules avec une accélération de 14 à 17 g (137 à ) pendant . Les quatre stabilisateurs au sommet de la coiffe s'ouvrirent et le module de descente fut lâché à une altitude de , il largua son bouclier thermique libérant ainsi les rétro-fusées d'atterrissage, et déploya le parachute d'urgence.

La fusée explosa quelques secondes après l'éjection, détruisant le pas de tir (qui avait servi notamment pour Spoutnik 1 et Vostok 1). L'explosion fut si violente que les cosmonautes la ressentirent dans leur capsule pourtant à plusieurs kilomètres de là. Il fallut une vingtaine d'heures pour éteindre l'incendie des  de carburant.

L'atterrissage eut lieu à  du pas de tir. C'est le seul cas (en 2021) de mise en œuvre de la tour de sauvetage en conditions réelles.

Quand les secouristes parvinrent à la capsule, les deux hommes en furent extraits et burent la vodka proposée par les secouristes, il semble que la première question que l'équipage posa était pour savoir s'ils repartiraient sur une autre mission un jour. Strekalov fut affecté à Soyouz T-11 quelques mois plus tard, tandis que Titov dut attendre 1987 pour effectuer un séjour d'un an à bord de Mir.

Équipage
Les nombres entre parenthèses indiquent le nombre de vols spatiaux effectués par chaque individu jusqu'à cette mission incluse.

 Vladimir Titov (2)
 Guennadi Strekalov (3)

Références

  lire le passage concerné sur suzymchale.com

Voir aussi
 Saliout 7
 Soyouz T-10
 Liste des missions spatiales habitées entre 1961 et 1986
Modes d'abandon d'urgence du vaisseau spatial Soyouz

Soyouz T-10-01
Exploration de l'espace en 1983
Accident ou incident lié à la conquête spatiale
1983 en Union soviétique
Septembre 1983

redpajama_set_name: RedPajamaWikipedia


text:
Q: Camel lookup RemoteConnectionFactory on Wildfly I'm very new to Apache Camel and completely new to Spring. I'm tryin to send some JMS messages to the embedded hornetq in Wildfly (ver.8.1.0). Here is my code:
public class CamelJMS {

public static void main(String[] args) throws Exception {
    try {
        CamelContext cc = new DefaultCamelContext();

         Properties prop = new Properties();
         prop.put(Context.INITIAL_CONTEXT_FACTORY,
         "org.jboss.naming.remote.client.InitialContextFactory");
         prop.put(Context.URL_PKG_PREFIXES,
         "org.jboss.jms.jndi.JNDIProviderAdapter");
         prop.put(Context.PROVIDER_URL, "http-remoting://localhost:8080");
         prop.put(Context.SECURITY_PRINCIPAL,
         System.getProperty("username", "usr"));
         prop.put(Context.SECURITY_CREDENTIALS,
         System.getProperty("password", "pwd"));

         JndiTemplate jndiT = new JndiTemplate(prop);
         jndiT.bind("ccf", "jms/RemoteConnectionFactory");
         JndiObjectFactoryBean jndiCFB = new JndiObjectFactoryBean();
         jndiCFB.setJndiTemplate(jndiT);
         JmsComponent jmsC = JmsComponent.jmsComponent((ConnectionFactory)jndiCFB.getObject());

         cc.addComponent("jmsrc", jmsC);
         cc.addRoutes(new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                System.out.println("Go!");
                onException(Throwable.class)
                .handled(true)
                .process(new Processor() {
                    @Override
                    public void process(Exchange arg0) throws Exception {
                        System.out.println("error.");
                        ((Exception) arg0.getProperty("CamelExceptionCaught", Exception.class)).printStackTrace();
                    }
                });
                from("file:///Users/Foo/Desktop/IN")
                .process(new Processor() {
                    @Override
                    public void process(Exchange arg0) throws Exception {
                        System.out.println(arg0.getIn().getHeader("CamelFileAbsolutePath", String.class));
                        System.out.println(arg0.getIn().getBody(String.class));
                    }
                })
                .to("jms:jms/generatoreQueue?connectionFactory=ccf");
            }
        });

        cc.start();
        Thread.sleep(10000);
        cc.stop();

    } catch (Exception e) {
        e.printStackTrace();
    }
}

}
I'm sure about my Wildfly's configuration because I can access the same queue using a non Camel client. When I launch my client I got this error:
org.jboss.naming.remote.protocol.NamingIOException: Failed to bind [Root exception is java.io.IOException: Internal server error.]
at org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil.java:49)
at org.jboss.naming.remote.protocol.v1.Protocol$2.execute(Protocol.java:220)
at org.jboss.naming.remote.protocol.v1.Protocol$2.execute(Protocol.java:179)
at org.jboss.naming.remote.protocol.v1.RemoteNamingStoreV1.bind(RemoteNamingStoreV1.java:108)
at org.jboss.naming.remote.client.HaRemoteNamingStore$2.operation(HaRemoteNamingStore.java:288)
at org.jboss.naming.remote.client.HaRemoteNamingStore$2.operation(HaRemoteNamingStore.java:285)
at org.jboss.naming.remote.client.HaRemoteNamingStore.namingOperation(HaRemoteNamingStore.java:137)
at org.jboss.naming.remote.client.HaRemoteNamingStore.bind(HaRemoteNamingStore.java:284)
at org.jboss.naming.remote.client.RemoteContext.bind(RemoteContext.java:133)
at org.jboss.naming.remote.client.RemoteContext.bind(RemoteContext.java:137)
at javax.naming.InitialContext.bind(InitialContext.java:419)
at org.springframework.jndi.JndiTemplate$2.doInContext(JndiTemplate.java:198)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
at org.springframework.jndi.JndiTemplate.bind(JndiTemplate.java:196)
at edu.pezzati.camel.jms.broker.CamelJMSBroker.main(CamelJMSBroker.java:38)
Caused by: java.io.IOException: Internal server error.
at org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(RemoteNamingServerV1.java:82)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

Looking to the server log, I found this:
...
09:12:02,585 INFO  [org.jboss.as.naming] (default task-5) JBAS011806: Channel end notification received, closing channel Channel ID 793d9f9e (inbound) of Remoting c
onnection 4406e6f5 to /127.0.0.1:49289
09:12:20,121 ERROR [org.jboss.as.naming] (pool-1-thread-1) JBAS011807: Unexpected       internal error: java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only
    at org.jboss.as.naming.WritableServiceBasedNamingStore.requireOwner(WritableServiceBasedNamingStore.java:161)
    at org.jboss.as.naming.WritableServiceBasedNamingStore.bind(WritableServiceBasedNamingStore.java:66)
    at org.jboss.as.naming.NamingContext.bind(NamingContext.java:253)
    at org.jboss.naming.remote.protocol.v1.Protocol$2.handleServerMessage(Protocol.java:249)
    at org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(RemoteNamingServerV1.java:73)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
    at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
...

Of course I'm misconfiguring something in Spring's JndiTemplate but I can't figure out what.

A: I'm not familiar with Wildfly and only a little familiar with JBoss, but you said the configuration parameters should be correct. So based off of my experience configuring the Camel JmsComponent...
Try this:
     Properties prop = new Properties();
     prop.put(Context.INITIAL_CONTEXT_FACTORY,
     "org.jboss.naming.remote.client.InitialContextFactory");
     prop.put(Context.URL_PKG_PREFIXES,
     "org.jboss.jms.jndi.JNDIProviderAdapter");
     prop.put(Context.PROVIDER_URL, "http-remoting://localhost:8080");
     prop.put(Context.SECURITY_PRINCIPAL,
     System.getProperty("username", "usr"));
     prop.put(Context.SECURITY_CREDENTIALS,
     System.getProperty("password", "pwd"));

     Context context = new InitialContext(prop);
     ConnectionFactory connectionFactory = (ConnectionFactory) context.lookup("jms/RemoteConnectionFactory");

     JmsComponent jmsC = new JmsComponent(connectionFactory);

     cc.addComponent("jms", jmsC);

And change your endpoint to:
     .to("jms:queue:generatoreQueue");

You shouldn't need the "jms/" in front of the queue name, and the component name should be the same as what you bound it to above in the addComponent method.


A MAN has pleaded guilty to causing the deaths of two men by dangerous driving in an early hours smash on the M62 in Bradford last year.
Taryl Moxam, who appeared in the dock at Bradford Crown Court wearing blue jeans and a blue tracksuit top, admitting causing the deaths of Adam Afsar and Jason Wilby on the M62 near Junction 26 for Chain Bar on April 2, 2018.
Moxam was at the wheel of a black Vauxhall Insignia which drove down the westbound carriageway of the M62 the wrong way at 2.34am, before colliding with a vehicle containing Adam Afsar, 34, and Jason Wilby, 27, near Chain Bar.
The 23-year-old, from Barlborough in Derbyshire, was remanded into custody to be sentenced on Thursday afternoon.
During the hearing, the families of Mr Afsar and Mr Wilby - who were seated in the public gallery - were scolded by Judge David Hatton QC, after some members of the families cheered and applauded when he told Moxam he is being remanded in custody.
Judge Hatton said: "I will not tolerate any interruptions in proceedings.


The original icon that started it all, delivering pure motoring fun in a feisty, fuel-efficient package.
The iconic MINI hatch with 2 extra doors and a little more space for passengers and cargo.
The most sophisticated MINI, featuring signature split rear doors and standard ALL4 All-Wheel Drive.
The free spirit with a 3-in-1 soft top roof – perfect for opening yourself up to all life has to offer.
The adventurer, featuring a rugged ALL4 All-Wheel Drive system and our most spacious interior ever.
The most powerful models in the range. With racing-tuned engines and a range of signature details, this is MINI thrill, maximized.
Browse our current inventory to find your perfect MINI.
Determine the customized payment plan that works best for you.
Get motoring for less. Find the best limited-time offers in your area.
Get behind the wheel and experience the world-renowned handling that has thrilled Motorers for generations.
Letting old coolant rest in your engine can eventually lead to corrosion and other unwanted damage. Fresh coolant works more efficiently and does a better job of protecting the engine components that it interacts with. Your engine system will be thoroughly flushed in order to ensure that all of the old coolant is removed. New coolant will be added immediately after and will aid in the preservation and proper functioning order of your MINI.
To book your MINI Coolant Flush, call us at (519) 747-0269 or click the button below for a Service Request.
Stay informed about news, special offers, products and services from or on behalf of MINI Canada and MINI Grand River.
Yes, I hold a valid, full class driver's license.
In order to complete your test drive, you must hold a valid, full class driver's license.
Stay informed about news, special offers, products and services from or on behalf of MINI Canada and MINI Grand River†.
All fields marked with a (*) are required.
Salutation * Mr. Mrs. Ms. Dr. Hon.
Has your vehicle been serviced at our facility before?
While your vehicle is being serviced, will you require alternate transportation?
Cookies on the MINI Canada website.
Please complete the fields below and a representative will follow up with you to book a vehicle assessment appointment.


text:
Should I become a solicitor?
Take that step towards your legal career
Researching whether a legal career is an option for you?
Take the quiz ›
Becoming a solicitor in England & Wales
The new Solicitors Qualifying Exam (SQE) is a system of qualifying as a solicitor in England and Wales. It was introduced in 2021 and has made entering the profession more accessible for both law and non-law graduates. If you are unsure whether this is the right career fit for you, see how you score in the quiz!
What is a solicitor?
A solicitor is a qualified legal practitioner who provides legal advice to clients, whether to individuals or businesses, in a specialised area of the law. There is a wide range of specialisations that you can undertake as solicitor, examples of which you can find here.
Broadly, these fall into two categories: contentious and non-contentious legal practice. Contentious legal work involves a dispute between two parties involving court proceedings, such as with arbitration. Non-contentious work which involves a dispute that does not involve the courts, such as in the case of a purchase of property.
What is an in-house solicitor?
An in-house solicitor is a solicitor that is employed by a non-legal organisation, for example, a commercial company with a legal department. The major difference between in-house work and private practice can be found here.
How much does a solicitor earn?
A solicitor's salary depends greatly on what practice area they are in, whether they are working in-house or within a law firm, their level of expertise, additional legal qualifications and whether they are working for a local, national or international law firm.
Who is the regulator of the profession?
The Solicitors Regulation Authority (SRA) regulates the profession in England and Wales. It is responsible for the professional conduct of all solicitors. The roll of solicitors is the register which lists all of the solicitors who are entitled to practise in England and Wales. Once you complete your qualification process, you need to apply to be admitted to the roll. To find out more about this process, please check the SRA website here.
What is the difference between a solicitor and a barrister?
A solicitor works with clients, interview and advising them on a course of legal action. This involves advocacy, drafting, research and case analysis. They also have rights of audience in court, but in order to obtain rights in higher courts, an additional qualification would need to be obtained.
Barristers are lawyers who specifically represent, advocate and defend clients in courts. Here are some of the differences between the two paths of the profession. They work in offices known as chambers and undergo a different form of qualification and training to solicitors. Find out more about how to become a barrister through the Bar Professional Training Course (BPTC) here.
A lawyer is a general term which describes various legal professionals in England and Wales, including both solicitors and barristers. There are several other types of legal professionals and you can check out some more examples of these here.
How do I become a solicitor?
From 2021, anyone who wishes to become a solicitor would need to undergo the Solicitors Qualifying Exam (SQE). This is a staged process of qualification that requires a degree in any subjects, passing two exams, undergoing a minimum of two years of Qualifying Work Experience (QWE) and meeting the SRA requirements of Character and Suitability.
If you would like to find out more about the SQE path and how to qualify, check out this page here.
What if I am qualified outside England and Wales?
It is possible for a lawyer, qualified overseas, to dual-qualify as a solicitor in England and Wales. After the introduction of the Solicitors Qualifying Exam (SQE), all candidates, including overseas lawyers, would have to undergo the same process of qualification. The only differences are that foreign-qualified lawyers would be exempt from evidencing Qualifying Work Experience (QWE), but may require to evidence English language proficiency.
Find out more about qualifying as an overseas lawyer here.
What if I graduated from another discipline?
If you are a student or a graduate of another discipline, you would be able to qualify via the SQE in order to become a solicitor. As part of your qualification process, you would have to evidence having obtained a degree in any subject.
Under the old route of qualifying as a solicitor, you would undergo a conversion route, known as the Graduate Diploma in Law (GDL). This would give you the foundational legal knowledge to proceed with the traditional legal training.
However, with the introduction of the SQE, the legal profession is more open to those from non-law backgrounds. Therefore, you are able to take the SQE, provided you also take a preparation course which is sufficiently well-paced and comprehensive enough to give you the confidence to take the SQE exams.
Find out more in our blog post about this here.
Why would I become a solicitor?
The legal profession is a highly respected one and being a solicitor is amongst the highest valued careers both within and outside of England and Wales. It is a challenging, but rewarding pursuit, offering a variety of areas to specialise in within the profession. Some benefits include:
Strong career prospects
Opportunity to work internationally
Variety of skills engaged
Opportunities to work independently and within a team
Opportunities for further training
For more on career support, you can find out further resources here.
Fill out the form below to take the quiz now

redpajama_set_name: RedPajamaCommonCrawl


We accept applications to become a UF 100 Discussion Group Leader or a UF 200 Instructor on a rolling basis until positions are filled. Read a brief description of these teaching opportunities here. To obtain an application or inquire further, please e-mail: universityfoundations@boisestate.edu.
Form I-9: Human Resources will need this form once you have been hired.
Bronco Card: The Bronco Card is your campus ID card. It can be used for various services on campus, like the library.
myBoiseState: Through myBoiseState, you can access your email, Peoplesoft, campus news, Human Resources, and much more.
Peoplesoft: This system can be used to view your teaching schedule, class roster and enter grades.
Blackboard: Both instructors and students use Blackboard. You can post announcements, add documents and assignments, grade assignments, and discuss with students through Blackboard.
Grading: The University's grading system can be found here as well as other important information about grades.
Textbooks: Order textbooks for your course through the campus bookstore.
Office of Information Technology: Laptops, tablets, video cameras and more are available to rent from OIT.
Desk Copies: Desk copies for instructors can be ordered as long as the book pertains to the current semester.
Campus Read: You can borrow a copy of the Campus Read book from our office.
Photo copies, Office Supplies and Mail Pickup: Photo copies can be requested via email. There are office supplies (markers, pencils, notecards, paper, etc.) available in the office for you to use and borrow. Campus mail can be picked up in our office, and you will be notified if you have any.
Chromebooks: There are 21 Chromebooks for you to use in your course, subject to availability. Send your request to reserve to kaywingert@boisestate.edu.
ePortfolios: Our office can provide ePortfolio assistance to you and your students.
All Permission Numbers: Our department will issue all students permission numbers for your course. We will not provide an override number without your permission.
Other inquiries: Feel free to contact the office via email (universityfoundations@boisestate.edu) or phone (426-4057).


As a company specialized in business and tech development we offer you a new income generation model and an impressive ROI, thus providing SaaS solutions such as; ERP-CRM-POS, and at the same time providing custom development, web-design, e-commerce and mobile applications design with a mobile marketing included!
Call us, text us, email us, whatsapp us, slack us... we will answer your call!
Business, Marketing and IT Company focused on income and revenue generation with a strong ROI promissed we provide SaaS solutions such as; ERP-CRM-POS, and at the same time we provide customize development gigs, web-design, ecommerce and mobile applications with a business oriented sense.


The Bush administration has decided to supply billions of dollars in advanced new weapons to Saudi Arabia, other Arab allies of the United States and to Israel, senior State Department officials and congressional aides said Friday.
The arms and aid package, which the officials said is to be announced on Monday, is part of a U.S. initiative to reassure worried allies in the Middle East that despite its troubles in Iraq, the United States remains committed to the region. It also is meant to send a signal of resolve to Iran's increasingly confident leaders.
The package also will include new weapons for the United Arab Emirates, another U.S. ally in the Persian Gulf, and both military and economic support to Egypt. Other details of the proposed arms sales weren't immediately available Friday.
Although it's likely to be controversial, the administration has decided to proceed with the sale and will compensate Israel — which seeks to maintain a "qualitative military edge" over its Arab neighbors — with military upgrades of its own, the officials said.
"All that has been sorted out," said a senior State Department official.
Israel has asked for access to the Air Force's most advanced fighter jet, the F-22 Raptor, and its stealth technology, which makes the aircraft more difficult to see on radar.
OK so lets examine this travesty in some detail. We are going to basically supply the whole region with weapons. Saudi Arabia is the country of origin of most of the suicide bombers within Iraq and is the known supplier of arms and money for the Sunni insurgents. Why would we even consider selling them any weapons? Money my friends, money. Now do you really feel safer?
How do we appease Israel for arming their neighbors, we arm them as well. This is foreign policy Bush style. Think of it this way, you look outside and see two neighborhood children fighting. The normal response would be to go and break up the fight. The Bush response to that same situation would be to go outside and give each of them a gun. When will this country demand their removal from power. They have destroyed our reputation and now want to arm the Muslim world. The same world they say is responsible for global terrorism. The war on terror just took on a whole new meaning.


There will also be live music to make you think that Tuesday is even sooner. They were kind enough to invite me and my husband gratis, but the going rate is still pretty darned good for all the amazing things you get: $60/person. We'll be there - to join us, call 203-977-7700. Hope to see you over the edge of my glass!
the menu looks great. And here I am eating pizza and Spanish wine. I need a craft beer.
Good food, good cause, good stuff!
Could It Be??? For Real and For True???


For a moment, Thor thought he was dreaming.
It would not be out of the question, after all. His dreams had become quite vivid recently, and perhaps he had dozed off after parking the car. Maybe he was still asleep in his bed.
Because this couldn't be real.
"Thor," Loki said, head held high, the light through the windows glinting off the horns on his helmet.
Loki trailed off, wetting his lips under Thor's plaintive shock.
"The curse was nothing that cannot be undone," Loki said.
"But it did not yield to me," Thor said.
"Well, when did you try it?" Loki asked.
"I was cursed as unworthy," Thor said.
"Do you actually believe that?" Loki said.
Loki said it as if the answer were obvious; as though Thor should have known.
The thing was, Thor had known. At the very least, he had come to terms with the answer.
Thor stepped forward, hackles bristling in the way only Loki could bring forth. For if this was not real, his subconscious remembered well just how frustratingly smug his brother could be. Most of the time, Thor had refused to let it bother him.
"And you came without his permission?" Thor asked.
Thor's eyes widened. If this was a dream, it was a strange and cruel one. One he could not trace to his subconscious; one he could not fathom at all.
Though it made sense, now that he looked again. The posture was taller; the staff shone brightly for him. Even though three years was nothing for a being like Loki, the look on his face was older and wiser. He was worn, just as Thor was, and Thor realized that the last three years were not only his trial.
"But what happened?" Thor asked, almost at a loss.
There was more -- Thor could only imagine. So much more that Thor had missed. It was written on Loki's face, carried on his shoulders. He'd known life had gone on back on Asgard, but he had not been able to fathom how much. He had not been able to fathom this.
It was one thing to imagine his friends and family happy without him. It was entirely another to imagine them suffering.
He blinked rapidly, trying to keep control of his spiraling emotions.
"You are king?" he asked, his voice almost gone as he looked over Loki in the grandeur of his posture.
"And I am still not sure how this cannot be a dream," Thor said.
Loki reached out, a cold hand on Thor's arm. Thor turned, surprised. His brother did not initiate contact, but it was still a touch he knew.
A touch that no dream could replicate.
"But there is but one throne, and it is rightfully yours," Thor said.
Thor studied his brother, but there was no hint of malice or trickery. There was no derision or mockery. Loki was being genuine.
Honest and clear and true.
"And you think it is so easy?" Thor asked.
"Not as wrong as I was," Thor said.
It was an open invitation. It was a warm acceptance. It was a pathway to Asgard.
Something panged in Thor's chest.
For three years, this had been his home. This small planet and its short lived people. This small town and these four walls. This was the home he had built for himself, the one he had claimed, the one that had accepted him when he had nothing.
And yet, he was still of Asgard. He had centuries there, and though they had felt like but a dream, Loki reminded him how real they were. He could no more deny them than he could deny this.
Thor was a man with two homes, divided by two lives. To be a king or a pauper; to live in glory or to live simply.
"I don't know if I can," Thor finally said, voice catching breathlessly in his throat.
Thor had suspected, but to hear it confirmed was not easy. Because this was his fault. The burden of war was his, and he could not leave Loki to carry that weight. Not when it was Thor's.
Too many people had already paid for his mistakes. He could sacrifice no one else to his selfishness.
Well, almost no one else.
He drew a breath and let it out. "I will go with you," he said.
When cast out of Asgard, he had not had the opportunity to say goodbye. He had had no closure; the things he'd wished to tell people had all gone unsaid. Even now, he could only hope that his friends and loved ones had understood that it was his arrogance, and not his lack of passion, that had led to his punishment.
This time, however, he had the chance to make amends.
The irony, of course, that he had no idea how.
Walking stiffly, he made his way out of the house and across the yard toward the lab. At the door, he hesitated, watching that activity inside. It was bustling with energy, vibrant and full. Thor had never fully grasped the science, perhaps, but he had always thrived in that atmosphere. He had always felt lucky to be a part of it.
Standing outside, however, it was abundantly clear just how set apart he was. Perhaps he had been fooling himself; maybe he had never belonged.
He swallowed hard and refused to think it. This was a part of him, a part of him he did not part with easily.
Steadying himself, he opened the door.
With so much activity, his presence was hardly noticed. He could see that they were all hard at work, and the prototype was looking more advanced than before. However, with the paneling removed, it was clear that it was in need of fine tuning.
It was a crude thing, honesty. Thor had adapted easily to Earth technology, given how primitive it was. The bulk of the prototype looked unwieldy, and Thor found it remarkable that such a bulky device would do what Jane said it would.
It would open a portal to another world.
No doubt, it would have limited capacity. It probably would not be very precise, and it probably would not provide stable passage. Thor remembered tales of life before the Bifrost, though they seemed like mere myth to him now. Thor wondered if his ancestors had created something much like this before taking to the stars and never looking back.
Perhaps that was Jane's future. It would be fitting for her, to live among the stars she dreamed about her whole life. It was entirely possible, Thor had to conclude, that she would be better off without him.
It was so normal -- so blissfully simple -- that Thor's chest ached. For it was not the big things, it was nothing grand, but the little things -- the small day to day realities of life on Earth -- that was what had made him feel connected. That was what had made this home. Darcy Lewis did not have Jane's brilliance, but she was a remarkable person all on her own. For she had taught him how to embrace life and how to defy expectations. She had shown him, more than anyone else, that sometimes heart mattered more than the mind.
That the greatest accomplishments were things no one looked for, things you felt inside.
He smiled fondly. "Surely with so many resources, you could have simply hired a cook," he suggested.
"And the roof is good for thinking," Thor remembered. Thinking, and other things. Jane had showed him the view from the roof, modest though it was, and Thor had never needed to look beyond that. Until now.
Thor reached out, putting a gentle hand on Darcy's shoulder.
Darcy looked up, eyebrows raised.
Thor squeezed her shoulder once more. "I need you to know that," he said, letting his hand fall.
With that, he retreated, moving toward the back door. He hesitated, watching as Darcy got back to work, running the lab seamlessly. It was hard to imagine what this place would have been like without him. It was hard to think what might have become of Darcy and all these other people.
One person could change everything. Thor had learned that for the worse on Jotunheim.
But he liked to think he had learned it for the better on Earth.
Finally, he turned away, exiting the room and letting the door shut firmly behind him.
In the last three years, Thor had been to the roof countless times. He could still remember that first time, when Jane brought him up there, when it had been just the two of them, alone beneath the stars.
Thor's world had been a mess, then. Thor had been broken and resigned, and somehow, when she showed him her dreams, he had found his own.
Much had changed since then. In fact, very little on the roof was the same. The furniture had been updated, and even the view had changed.
But the stars still filled the expanse in the growing twilight.
He stood silently for a moment, just watching her. It was hard to explain how she had changed him, or even why. It was a difficult thing to pinpoint, the way he had transformed. She had offered him more than a second chance. No, she had merely offered him a place and a friendship.
In Jane, he had seen that victory is a matter of perception. Sometimes the greatest battles are those you fought inside yourself.
If he had met Jane before his fall, he would have been polite and charming before going on his way. He wouldn't have looked twice; he wouldn't have thought a lowly Earth scientist would have anything to offer him.
He could have gained the throne of Asgard.
And lost so much else.
He sat down next to her, still struggling to gain control over his emotions.
Thor laughed, but the sound was choked.
Jane's smile faded when she noticed.
For she certainly would notice.
Three years ago, perhaps not. But Jane had changed as well. She had grown more attuned to the needs of others. Science, though a major drive in her life, was not her only passion. She had opened up her mind, body and spirit to Thor.
Which made this so much harder.
"What's wrong?" she asked, frowning now.
He drew a breath but scarcely knew what to do with it. He had never lied to Jane, not once. She knew of his every shame and every disgrace. She knew his crimes; she knew his weakness.
And none of it had been so hard to confess as this.
Jane looked confused. "Okay," she replied slowly.
Thor gathered himself, mustering every ounce of courage he could find. "Loki has come to find me," he said finally.
Thor nodded. "He is waiting in the house," he said, gesturing toward their home.
She stopped short, however, when she saw the look on Thor's face.
Jane looked uncertain in her response.
Jane had no response to this, for what response would there be? For as much as Jane dreamed of the stars, this was nothing she could fully grasp. Not with the scope of horror with which Thor felt it in the very essence of his being. For this was his fault. This was his mistake.
And now, it was his responsibility.
It was too much to ask one person to understand, and though Jane was smart and quick, the weight of his revelation caught her entirely off guard. Thor hated himself for this -- he wished he could have waited.
But the fate of the universe hung in the balance.
Thor could not sit by idly.
Not when he had the power to make a difference.
"Jane," Thor said quickly, reaching a hand up to her hair.
She shook her head, getting to her feet and turning away from him.
He stepped forward. "Or a lifetime," he said, reaching his hand up again.
It was a valid question, for it was one Thor had asked himself more than he let on. It was the question he'd been asking since he woke up on Earth, since he first saw Jane Foster's face.
It would be easy, after all, to see these three years as an aberration. To forget them as quickly as he embraced them, for time was fleeting. Perhaps that was why the dreams had been so vivid.
Perhaps it was even fate.
Thor knew better than to fight fate. His life on Asgard had taught him that over the centuries.
However, these three years on Earth had taught him a different lesson. The power of free will. For he could not fight fate.
But he could pick his life.
It was up to Thor to find that balance, to fulfill his destiny and live up to the promises he made.
"In all ways but one," Thor said.
Jane wet her lips, looking up at him, almost afraid to be hopeful.
"Then why are you going?" she asked.
"And me?" Jane asked, voice small in the night.
"I never lied to you," he said.
"It's just for a little while," he promised.
"I thought I did," she said.
She nodded, blinking rapidly. "You better," she said.
"Just do me a favor out there," she said.
"Deal," he said, tilting his head forward to rest against her forehead.
Time was pressing, but Thor had waited three years.
One more night would not hurt.
He could not be certain when he would return again, and he wanted to spend these fleeting moments with Jane. To hold onto this life while he could, to cherish it and honor it while it was still under his purview.
He didn't want to forget. Not the view from the roof, not the stars from Earth. Not the vast New Mexico landscape or the scent of Jane's skin. Thor wanted to remember everything, every last detail, until he came again.
One more night under the stars, where everything was good and peaceful.
More simply put, where everything was.
He bid Jane farewell in the morning with a small amount of fanfare. She offered to go with him and bid him a further goodbye, but he did not want to implicate her as far as SHIELD was concerned. No, this was something he had to do alone.
Instead, he tidied his room and kissed Jane one last night. He tucked the ring box under the floorboards in the bedrooms, right where the light hit the ground.
This was still the dream, then.
But it would be the reality someday.
Thor would make sure of that.
Out in the desert, beyond Jane's property, Thor met Loki. His brother looked more confident today, if only by the slight swagger in his posture and the sarcasm in his tone.
Thor looked at his brother curiously.
"And that would have missed the point," Thor said.
"Given my current predicament, I might have to agree," Loki said.
It would be easy to get angry. It would be easy to rage and turn Loki away.
Yet, Thor could find no space for anger.
Loki's mouth curved up ruefully. "Actually, I think I did," he said.
Thor gave his brother an assessing look.
Thor looked down at his vacant hand.
"I assume you know where it is," Loki said.
Loki had a point, of course. With a little magic, getting to Mjolnir would be easy.
But for Thor to pick up the hammer.
Well, that would be a little harder.
Loki did most of the hard work. With a small amount of magic, he transported them to the SHIELD facility. It only took a small sleight of hand for Loki to get them access, and with Loki's easy facades, no one even looked twice as they entered the restricted area. With the door shut -- for SHIELD had built the entire facility around Mjolnir -- Thor turned and faced the hammer for the first time in three years.
There it was, still embedded in the rock. The ground had been laid around it, and light came in through the skylights SHIELD had constructed as a roof. There was equipment nearby, evidence of their attempts to understand the hammer, but Mjolnir showed no signs of distress or change.
Indeed, it looked the same as ever. Waiting.
Thor flexed his fingers, feeling a familiar tingle start down his spine.
Thor nodded absently, starting a slow approach. He remembered this, as if from a dream. The landscape was different, to be sure, and no one was there but Loki, but it was still somehow the same.
For despite everything else in the dream, it had always been about the inexplicable pull of the hammer, the way it called to him, down into every fiber of his being.
"I think this may still be a dream," he breathed.
"More like a nightmare," Loki quipped.
"How else could I be here?" Thor asked.
"Just because I knew your weaknesses better than most does not mean I was unaware of your strengths," Loki said.
"But to admit them?" Thor asked, still approaching slowly.
"You had everything you wanted," Thor observed.
"Pride is a hard habit to break," Thor mused.
Thor looked back to the hammer. Mjolnir was singing to him now, a familiar song Thor could never forget no matter how hard he tried to put it from his mind. He still knew every note, and he could feel the energy start to swell around him. "We are not so different, you and I," he said.
"Three years ago I would have denied it," Loki said.
"And now?" Thor asked, his breath starting to hitch, his heart skipping a beat. Above him, the clouds started to darken over the skylights.
The lightning flashed; the rain started to pick up as the wind whipped against the building.
"That is nothing," Loki said.
"It is a lifetime," Thor replied.
Thor couldn't look away from Mjolnir. Emboldened by his brother, his fingers extended as he closed the last of the distance. He had craved this, dreamed of it. He had ached for it, needed it, yearned for it.
But now that he was here, Thor was scared.
For he was so small; he was so insignificant.
Worth had seemed so obvious to him once.
Now he hardly understood it at all.
Mjolnir did not seek victory or might.
Mjolnir wanted a pure heart, not a perfect one. But one that sought the betterment of others, one that sought to serve, that sought to be a vehicle for the betterment of the galaxy.
Worth was what you found when you finally stopped looking.
Worth was not picking up a hammer.
Worth was knowing the right time.
His fingers closed around the hilt, and the rush was instantaneous. The storm burst forth, shattering the skylights. The wind swept around him, swirling like a tornado as the lightning filled his eyes and the thunder churned in his chest.
The rock gave way, crumbling beneath him, and Thor hoisted the hammer, lifting it into the air. The elements were called to it, and Thor felt himself transform. The armor appeared on his body, the cape billowing out from the nape of his neck.
And more than that. He could feel it, renewed his mind and body. His very cells were rejuvenated, and he could feel the weight of mortality lifted from him. His chest expanded, and his grip strengthened. His arm steady, and he felt the roar build up in his chest as he bellowed out to the heavens, reclaiming the destiny that was and always had been rightfully his.
When the whirlwind died, he turned, facing his brother once more drawn to his full stature.
Loki let out an indignant laugh. "And just when I thought I might like you," he said.
Thor was nonplussed. "Come," he said, striding to the door.
"And where are we going now?" Loki asked.
For Thor, it had ended with the hammer.
His exile; his redemption. The salvation of his people and the restoration of peace throughout the realms.
Three years he had spent, struggling to hold onto his worth once more. The journey had not be easy.
Now, he would stop at nothing until he fulfill his promise to Jane and returned to Earth.
For it ended with the hammer.
And he vowed, with all his worth, that all the rest would start with it, too.
Wow, I sort of assumed no one would read this fic. I've been meaning to find someone to beta it so I can crosspost it elsewhere with fewer mistakes, but I needed to get it up on LJ for my hc_bingo card. So I'm impressed you made it through it!
All of which is to say, thank you!


In a lengthy 146-page decision, the Federal Court of Appeal quashed the Governor in Council's order, and turn, Enbridge's pipeline certificates.
Lisa C. Fong, of Ng Ariss Fong, acted for Heiltsuk Tribal Council and Kitasoo Xai'Xais Band Council.
The court found that Canada's consultation with First Nations was "unacceptably flawed and fell well short of the mark".
Canada structured a five-phase consultation process, where Phase 4 "was the first and last opportunity before the Governor in Council's decision to engage in direct consultation and dialogue with affected First Nations." The court reviewed Canada's consultation and Phase 4, and concluded that Canada failed to fulfill its duties to aboriginal peoples.
Heiltsuk and Kitasoo Xai'Xais identified to Canada several errors in the Crown consultation report, including errors relating to their position on mitigation, errors about where the tanker routes crossed their territories, and the inadequacy of how their concerns were described to government. The court noted that the record did not show these errors being corrected or brought to the attention of the Governor in Council.
For example, the court specifically mentioned the "insufficient information" that Heiltsuk needed to assess the impacts on their Aboriginal rights, especially information "regarding the risk of an oil spill to herring-spawn-on-kelp—a resource over which the Heiltsuk have an Aboriginal right to fish on a commercial basis…." The court found that Heiltsuk "never received an explanation why the missing information concerning a resource necessary for their sustenance was not required".
The court also specifically mentioned the "missing information" addressed by Kitasoo Xai'Xais – information about spill modelling and assessment, the behaviour (or fate) of bitumen in the water, a baseline marine inventory and what the spill recovery would look like.
only discussing mitigation of impacts, and declining to discuss the content of the impacts on First Nations' rights and titles.
The court quashed the Order in Council, and invalidated the pipeline certificates.


Orologeria Candido Operti welcomes you and presents its collection of TAG Heuer watches in Cagliari. Choose the watch that suits you most from the broad range of sports and elegant watches. In our TAG Heuer store, you will find a specialized adviser who will answer your questions and help you in your choice.
Looking for an elegant watch in Cagliari?


Neema Mboya summed up her orientation toward the future by stating, "If you have a dream don't just sit there. Gather courage believing that you can succeed and leave no stone unturned to make it a reality." She realized her dream under iAGRI as one of its student fellows and completed an M.S. degree in Dairy Science and Technology at the University of Zimbabwe. Her program was administered by RUFORUM.
Her thesis research was on the compositional and microbiological quality of milk produced by small scale farmers in Hai District, Kilimanjaro region. Neema explained that most of the milk in Tanzania is produced by pastoralists, such as the Maasai, and small peri-urban and urban farmers. Ninety-five percent of milk sales are not monitored or regulated. Thus, associated food-borne zoonotic risks associated with these sales are of great public concern as is the need to protect consumers from them. The microbial quality of milk produced by small scale farmers in Tanzania has not been well determined. Neema's study established that about 80% of the milk samples tested passed milk quality tests as per East African Standards and that bacterial counts were consistent with those associated with good quality milk.
Neema expressed special gratitude to iAGRI for having shaped her career path by offering other capacity building programs during her studies. "I improved my performance at work by acquiring leadership skills through the webinar leadership courses offered by iAGRI. And, in addition to leadership and scientific data management training, I acquired practical knowledge about how to assess milk quality, including the collection of related data, as well as its analysis and interpretation.


text:
Yellow Submarine (1968) — Screenplay by
Arthur Hiller: 1923 - 2016
by Peter Sobczynski | August 17, 2016 |
A tribute to the late Arthur Hiller, director of classics that include "The Americanization of Emily," "Love Story," "The In-Laws."
Airport '79 winners
by Roger Ebert | April 17, 1977 |
Everybody seems to love a 'disaster.'
Interview with Rod McKuen
by Roger Ebert | July 4, 1971 |
Rod McKuen was in Chicago to plug the record album for Walt Disney's "Scandalous John," for which he wrote the score.
Interview with Erich Segal
by Roger Ebert | February 26, 1970 |
Calling yourself the author of the year's biggest novel,'' Erich Segal said, "is like calling yourself the world's greatest newspaper. It makes it sound like nobody else will say it for you, so you gotta say it for yourself . . . "


text:
Sigma de la Popa (σ Puppis) és un estel a la constel·lació de la Popa, la popa de l'Argo Navis. De magnitud aparent +3,25, s'hi troba a 194 anys llum de distància del Sistema Solar. Ocasionalment és coneguda amb el nom d'Hadir.

Sigma de la Popa és una gegant taronja de tipus espectral K5III amb una temperatura superficial aproximada de 3970 K. Incloent-hi la radiació infraroja que emet, la seva lluminositat és 347 vegades major que la del Sol. Té un radi 39 vegades més gran que el radi solar i una massa cinc vegades major que la del Sol. Probablement en el seu nucli ha cessat la fusió nuclear de l'heli en carboni i oxigen, mentre que la seva edat aproximada és de 1400 milions d'anys.

Sigma de la Popa posseeix una companya estel·lar detectada mitjançant espectroscòpia el període orbital de la qual és de 257,8 dies. La seva òrbita és moderadament excèntrica (e = 0,17). Aquesta acompanyant és un estel blanc de la seqüència principal de tipus A0V - A2V. Té una massa entre 2,0 i 2,5 masses solars i un radi entre 1,8 i 2,4 vegades més gran que el del Sol. La separació mitjana entre ambdós estels equival a quatre vegades el radi de la gegant (unes 0,18 ua).

Un tercer estel de magnitud +9,4 completa el sistema estel·lar. Visualment a 22,3 segons d'arc del parell interior, és una nana groga de tipus G5V. La seva separació real respecte a la binària és igual o superior a 1300 ua, la qual cosa implica que el seu període orbital és d'almenys 27.000 anys.

Referències

Popa
Nanes grogues
Estrelles de la seqüència principal tipus A
Gegants taronges
Variables el·lipsoïdals rotants


text:
Salah or Hazard? Liverpool legend explains why Chelsea star gets the nod
Chris Burton
Former Reds midfielder Graeme Souness is a big fan of the Egyptian forward, but feels his Premier League rival is a more complete player at present
Mohamed Salah cannot be considered a Liverpool legend, says Graeme Souness, with the Reds star yet to offer the same level of consistency as Chelsea forward Eden Hazard.
Anfield's Egyptian frontman has been a revelation since returning to English football in 2017.
A 44-goal haul in his debut campaign delivered countless honours, including the PFA Player of the Year Award and Premier League Golden Boot.
Salah has been back in the groove this season, with his last two outings seeing him record a hat-trick against Bournemouth and a priceless Champions League winner in a meeting with Napoli.
The 26-year-old continues to set records tumbling and has shown himself to be as prolific as Liverpool icons from years gone by.
Souness is, however, reluctant to compare Salah to the greats until he has delivered over a prolonged period of time.
The former Reds midfielder told the Daily Mail: "He is fabulous but it's only his second year. Come back in five years.
"When you talk about those Liverpool greats, they had players who won everything. Some great team men, great goalscorers, longevity.
"This is only Salah's second season but I do believe he has the potential to be in that category."
While tipping Liverpool's talismanic frontman to deliver more inspirational showings in the future, Souness claims he is not the most devastating performer in the Premier League.
The Scot considers Chelsea playmaker Hazard to take that crown, with the Belgian having shown himself to be a more complete player over a number of years.
Asked to make his selection of the English top-flight's finest, Souness said: "If I could take one it would be Eden Hazard.
"I think Salah will be a better goalscorer but in terms of all-round play [Hazard]."
Liverpool will not be overly concerned by Salah's standing among the elite if he can maintain his current standards, with their fixture list calling for more input from key men.
The Reds, who remain unbeaten at the top of the Premier League table, are set to play host to Manchester United on Sunday, with games against Wolves, Newcastle and Arsenal to come before the turn of the calendar year.
Jurgen Klopp's side will then open 2019 with a crunch clash against defending champions Manchester City on January 3.


text:
Space/Science
GeekSpeak
Mysteries of
the Multiverse
The Comestible Zone
CurrentEvents
Tanks for the memories... ER January 27, 2023 6:02 pm (CurrentEvents)
The latest conspiracy theory... ER January 26, 2023 7:04 am (CurrentEvents)
NO! The inner core has not started to rotate backwards! podrock January 24, 2023 4:05 pm (Space/Science)
Classified documents scandal II ER January 23, 2023 10:20 am (CurrentEvents)
Space Station 'Lunar Gateway' will have a halo orbit around the moon BuckGalaxy January 20, 2023 12:12 am (Space/Science)
David Crosby (1942-2023), artist, sailor, RIP. Fair winds and a following sea... ER January 19, 2023 4:55 pm (CurrentEvents)
Biden's Classified documents scandal BuckGalaxy January 19, 2023 11:26 am (CurrentEvents)
This just gets better and better... ER January 19, 2023 9:55 am (CurrentEvents)
Kiwi PM checking out. ER January 18, 2023 6:32 pm (CurrentEvents)
Loser MAGA Candidate shoots at NM Democrat officials' homes BuckGalaxy January 17, 2023 6:07 pm (CurrentEvents)
Home » Off-Topic
My first, and last, time. November 26, 2022 5:57 pm ER
The essay below, in response to Pod's question about "Have you ever camped alone?" has appeared on the Zone before, but I couldn't locate it with the search function and I felt it was relevant enough to resubmit. I apologize for wasting memory, but it seemed important to find it and publish it in response to Pod's question. It is also a published piece, my third submission to Good Old Boat magazine and one I'm particularly proud of. It took me a while to find it in my archive CDs.
Yes, camping alone, in a true wilderness, can be scary. I've never done it again. But I'm glad I did it at least once. When you're with others, even if they are total lubbers and of no practical use in an emergency, you still feel you have some backup. You can always say; "Here, hold this rope!" while you rush off to deal with some minor emergency. But when you're by yourself out in the bush you really realize that we are all really alone in this terrifying and heartbreakingly beautiful universe. All I needed was one time to remind me of that to last me for the rest of my life.
bump by ER 2022-11-26 18:44:12
The Control Panel


text:
Q: Generate n-digit number w/o 1s and 0s in prolog I am a beginner to prolog.
The task is to generate n-digit numbers without using ones and zeroes. How would this be done? Do you generate random numbers and then delete 1s and 0s (sounds inefficient)?

A: What you describe is definitely one way to do it. As you mention, it is not a particularly good way to do it, since it is so inefficient.
Nevertheless, the approach you mention is so common that it has its own name: It is often referred to as generate and test, since we first generate, and then either reject or accept the solution, or modify it further so that it satisfies all constraints.
A typically much more efficient approach is to first constrain the whole solution so that all requirements are expressed, and then to let the system search only within the already constrained space. This is especially easy to do in Prolog since it provides built-in constraints that you can post before you even start the search for solutions, and they will be automatically taken into account before and also during the search.
For example, you could do it as follows, using your Prolog system's CLP(FD) constraints to express the desired requirements over integers:

n_digits(N, Ds, Num) :-
        length(Ds, N),
        Ds ins 2..9,
        reverse(Ds, Rs),
        foldl(pow10, Rs, 0-0, _-Num).

pow10(D, Pow0-S0, Pow-S) :-
        Pow #= Pow0 + 1,
        S #= D*10^Pow0 + S0.

Thus, we represent the number as a list of digits, and relate this list to the corresponding integer using  suitable constraints. The key point is that all this happens before a single solution is actually generated, and all solutions that are found will satisfy the stated constraints. Moreover, this is a very general relation that works in all directions, and we can use it to test, generate and complete solutions.
Here is an example query, asking for how such numbers with 3 digits look like in general:

?- n_digits(3, Ds, N).

In response, we get:

Ds = [_11114, _11120, _11126],
_11114 in 2..9,
_11114*100#=_11182,
_11182 in 200..900,
_11182+_11236#=N,
_11236 in 22..99,
_11282+_11126#=_11236,
_11282 in 20..90,
_11120*10#=_11282,
_11120 in 2..9,
_11126 in 2..9,
N in 222..999.

We can use label/1 to obtain concrete solutions:

?- n_digits(3, Ds, N), label(Ds).
Ds = [2, 2, 2],
N = 222 ;
Ds = [2, 2, 3],
N = 223 ;
Ds = [2, 2, 4],
N = 224 ;
Ds = [2, 2, 5],
N = 225 ;
etc.

When describing tasks where integers are involved, CLP(FD) constraints are often a very good fit and allow very general solutions.
For example, it is easy to incorporate additional requirements:

?- n_digits(3, Ds, N),
   N #> 300,
   label(Ds).
Ds = [3, 2, 2],
N = 322 ;
Ds = [3, 2, 3],
N = 323 ;
Ds = [3, 2, 4],
N = 324 ;
etc.

We're not in Sparta anymore. See clpfd for more information!

A: There is surely a lot of elegance in the clp(fd) solution.  If you just want a random number with N digits 2..9, there is a more direct approach
n_digits(N, Ds, Num) :-
    length(Ds, N),
    maplist(random_between(0'2, 0'9), Ds),
    number_codes(Num, Ds).

If you use between instead of random_between, you generate numbers as above.  I've produced a comparison at http://swish.swi-prolog.org/p/JXELeTrX.swinb, where we can see
?- time(n_digits(1000, _Ds, N)).
6,010 inferences, 0.003 CPU in 0.003 seconds (100% CPU, 1814820 Lips)

Vs. using the clp(fd) solution which runs out of memory (256Mb) after 42 seconds.
?- time((n_digits(1000, _Ds, N), label(_Ds))).
62,143,001 inferences, 42.724 CPU in 42.723 seconds (100% CPU, 1454531 Lips)
Out of global stack

A: I would like to complement the existing answers with an additional version that I think is worth studying on its own.
Please consider the following:

n_digits(N, Ds, Expr) :-
        length(Ds, N),
        Ds ins 2..9,
        foldl(pow10, Ds, 0, Expr).

pow10(D, S, S*10+D).

Sample query:

?- time((n_digits(1000, Ds, Expr), label(Ds))).
% 104,063 inferences, 0.013 CPU in 0.017 seconds (75% CPU, 8214635 Lips)
Ds = [2, 2, 2, 2, 2, 2, 2, 2, 2|...],
Expr =  ((((... * ... + 2)*10+2)*10+2)*10+2)*10+2 .

Here, we also declaratively describe the list with constraints, and in addition build an arithmetic CLP(FD) expression that evaluates to the resulting number.
As with the other CLP(FD)-based version, this lets us easily post additional constraints on the number itself.
For example:

?- n_digits(1000, Ds, Expr),
   Expr #> 5*10^999,
   label(Ds).
Ds = [5, 2, 2, 2, 2, 2, 2, 2, 2|...],
Expr =  ((((... * ... + 2)*10+2)*10+2)*10+2)*10+2 .

When you encounter a CLP(FD)-based version that you find too slow for your use case, my recommendation is to look for ways to improve its efficiency. I cannot—at least not with a straight face—recommend to instead turn to lower-level approaches. I have already seen too many talented Prolog programmers getting stuck in the morass of low-level language constructs, and never finding their way to actually improving the higher-level aspects so that they become both general and efficient enough for all use cases that are relevant in practice. This is where their talents would have been needed the most!

A: I would like to add a further answer to consider the task from an additional perspective.
This time, I would like to start with Jan's answer:

n_digits(N, Ds, Num) :-
    length(Ds, N),
    maplist(random_between(0'2, 0'9), Ds),
    number_codes(Num, Ds).

Its primary merit is that it is very straight forward and also fast:

?- time(n_digits(1000, Ds, Num)).
% 6,007 inferences, 0.002 CPU in 0.002 seconds (92% CPU, 2736674 Lips)

In fact, it's so fast that it only works some of the time:

?- length(_, N), n_digits(3, Ds, 345).
N = 548,
Ds = [51, 52, 53] ;
N = 1309,
Ds = [51, 52, 53] ;
N = 1822,
Ds = [51, 52, 53] .

However, by this time we are already accustomed to the well-known fact that the correctness of solutions is only of secondary concern when compared to their performance, so let us continue as if the solution were correct.
We can quite directly map this to CLP(FD) constraints, by modifying the bold part as follows:

n_digits(N, Ds, Num) :-
        length(Ds, N),
        Ds ins 0'2..0'9,
        labeling([random_value(0)], Ds),
        number_codes(Num, Ds).

Does anyone have trouble understanding this? Please let me know, I will do what I can to make it clear to everyone who is interested. The best approach is to simply file a new question if anybody would like to know more.
For comparison, here is the previous query again, which illustrates that this predicate acts as we would expect from a relation:

?- length(_, N), n_digits(3, Ds, 345).
N = 0,
Ds = [51, 52, 53] ;
N = 1,
Ds = [51, 52, 53] ;
N = 2,
Ds = [51, 52, 53] .

In this concrete case, the cost of using CLP(FD) constraints is about one order of magnitude in performance, using a constraint solver that is not optimized for performance, mind you:

?- time(n_digits(1000, Ds, Num)).
% 134,580 inferences, 0.023 CPU in 0.026 seconds (87% CPU, 5935694 Lips)

I dare barely mention that the CLP(FD)-based version works more reliably, since this is of so little value in practice. Thus, depending on your use case, the overhead may well be prohibitive. Let us suppose that for this concrete case, we are willing to sacrifice 2 percent of a second in order to use CLP(FD) constraints.
Out of many possible examples, let us now consider the following slight variation of the task:

Let us describe lists of digits that satisfy all constraints, and are also palindromes.

Here is a possible declarative description of palindromes:

palindrome --> [].
palindrome --> [_].
palindrome --> [P], palindrome, [P].

With the CLP(FD)-based version, we can easily combine this constraint with the already stated ones:

n_digits(N, Ds, Num) :-
        length(Ds, N),
        Ds ins 0'2..0'9,
        phrase(palindrome, Ds),
        labeling([random_value(0)], Ds),
        number_codes(Num, Ds).

Sample query:

?- time(n_digits(1000, Ds, Num)).
% 12,552,433 inferences, 1.851 CPU in 1.943 seconds (95% CPU, 6780005 Lips)

For comparison, how can we incorporate this straight-forward additional constraint into Jan's version? It is tempting to do it as follows:

n_digits(N, Ds, Num) :-
    length(Ds, N),
    phrase(palindrome, Ds),
    maplist(random_between(0'2, 0'9), Ds),
    number_codes(Num, Ds).

Pretty straight-forward too, right? The only problem is that it yields:

?- time(n_digits(1000, Ds, Num)).
% 4,013 inferences, 0.041 CPU in 0.046 seconds (88% CPU, 97880 Lips)
false.

Why is this the case?
And now good luck explaining this to any newcomer to the language! When arguing against the purported complexity of explaining CLP(FD)-based versions, please take into account the much, much higher complexity of explaining such purely procedural phenomena, which cannot be understood by declarative reasoning alone.
Further, good look with solving the task at all with low-level features in such a way that additional constraints can still be easily added.
By the way, sometimes, the query will actually succeed!

?- length(_, N), time(n_digits(3, Ds, Num)).
% 28 inferences, 0.000 CPU in 0.000 seconds (85% CPU, 848485 Lips)
% 28 inferences, 0.000 CPU in 0.000 seconds (83% CPU, 1400000 Lips)
% 28 inferences, 0.000 CPU in 0.000 seconds (80% CPU, 1166667 Lips)
% 28 inferences, 0.000 CPU in 0.000 seconds (79% CPU, 1473684 Lips)
% 28 inferences, 0.000 CPU in 0.000 seconds (82% CPU, 1473684 Lips)
% 28 inferences, 0.000 CPU in 0.000 seconds (82% CPU, 1473684 Lips)
% 28 inferences, 0.000 CPU in 0.000 seconds (83% CPU, 1473684 Lips)
% 28 inferences, 0.000 CPU in 0.000 seconds (83% CPU, 1473684 Lips)
% 28 inferences, 0.000 CPU in 0.000 seconds (82% CPU, 1473684 Lips)
% 28 inferences, 0.000 CPU in 0.000 seconds (83% CPU, 1473684 Lips)
% 26 inferences, 0.000 CPU in 0.000 seconds (86% CPU, 1444444 Lips)
N = 10,
Ds = [52, 50, 52],
Num = 424 .

I can only say: This approach cannot in honesty be recommended, can it?
If palindromes are too unrealistic for you, consider the following task:

Let us describe lists of digits without 0, 1 and 5.

Again, using CLP(FD), this is straight-forward:

n_digits(N, Ds, Num) :-
        length(Ds, N),
        Ds ins 0'2..0'9,
        maplist(#\=(0'5), Ds),
        labeling([random_value(0)], Ds),
        number_codes(Num, Ds).

Sample query:

?- time(n_digits(1000, Ds, Num)).
% 203,529 inferences, 0.036 CPU in 0.038 seconds (93% CPU, 5662707 Lips)

For comparison, how would you do it without CLP(FD) constraints?

Now let us combine both requirements:

Let us describe lists of digits without 0, 1 and 5 that are also palindromes.

Again, using the CLP(FD) version, we can simply state the requirement:

n_digits(N, Ds, Num) :-
        length(Ds, N),
        Ds ins 0'2..0'9,
        maplist(#\=(0'5), Ds),
        phrase(palindrome, Ds),
        labeling([random_value(0)], Ds),
        number_codes(Num, Ds).

Sample query:

?- time(n_digits(1000, Ds, Num)).
% 20,117,000 inferences, 2.824 CPU in 2.905 seconds (97% CPU, 7123594 Lips)

These examples illustrate that with the general mechanism of constraints, you have actually somewhere to go in case you need slight variations of previous solutions. The code is quite straight-forward to adapt, and it scales reasonably well.
If there is anything that is too hard to understand, please file a question!
Now, as one last remark: Both CLP(FD)-based versions I posted earlier give you something that goes way beyond such a direct translation. With the other versions, you can post additional constraints not only on the list of digits, but also on the number itself! That's simply completely out of reach for any version that doesn't use constraints! Such constraints are also taken into account before the search for solutions even begins!


text:
Q: Programming - Principles and Practice Using C++ (2nd Edition) example not working as intended According to "Programming - Principles and Practice Using C++ (2nd Edition)" this main function:
int main() {
    double val = 0;
    while (std::cin) {
        std::cout << "> ";
        Token t = ts.get();
        if (t.kind == 'q') break;
        if (t.kind == ';') {
            std::cout << "= " << val << std::endl;
        }
        else {
            ts.putback(t);
        }
        val = expression();
    }
}

should have output as follows:
> 2+3;
= 5
> 3+4;
= 7
> ...etc.

I'm curious, how is it even possible from this code?
What I get, is:
> 2+3;
> = 5
> 3+4;
> = 7
> ...etc.

The program itself has a very convoluted logic of multiple std::cins.
But I know this is a very respected book from a very respected author, so I doubt there could be a typo in it?
I'm just curious how in theory the first input could be achieved with the provided piece of code?
The ts.get() reads exactly one symbol from the command line. The Token is a single symbol read from the commmand line wrapped into a certain data structure.
Any help is very appreciated.


SAN DIEGO – Police are trying to determine why a burglar who broke into a cell phone store also caused serious damage to an adjacent Planned Parenthood center overnight Tuesday in the Valencia Park neighborhood.
The burglar broke into the Cricket Wireless store at 202 Euclid Ave. at around 1 a.m. A 911 caller reported seeing the male suspect fleeing the store with boxes of phones.
Responding San Diego police found the windows in the back room of the Cricket store had been smashed out. They also found that a wall and window at the adjacent Planned Parenthood center had also been damaged. It appeared the suspect had gotten into the Cricket store through the Planned Parenthood center, police said.
There was no one in either business at the time. There was no immediate description of the suspect. The exact extent of the damage was not disclosed.
Planned Parenthood was scheduled to open at 8:30 a.m. There was no word on whether it would open as usual.


text:
Brewing A Better Espresso, With A Shot Of Maths
European Pipeline Soars Despite Economic Slowdown Throu...
PwC Manhattan Lodging Index – Q4 2018
AHIC launches Arabian Young Leader Award to help nurture the next generation of hoteliers
Dubai, UAE: March, 2019.The Arabian Hotel Investment Conference (AHIC)has announced a new initiative designed to celebrate the young, homegrown talent working within the region's dynamic hospitality industry.
Created in collaboration with the AHIC Advisory Board and Partners, the first Arabian Young Leader Award is open to GCC Nationals aged 30 years and younger that have been working in the Middle East hospitality sector for at least two years.
Nominations are now open, with the winning nominee set to receive a full three-day access pass to AHIC and enrollment onto the Executive Certificate programme provided by The Emirates Academy of Hospitality Management.
Jonathan Worsley, Chairman of Bench Events and Founder of AHIC, said: "We're delighted to invite nominations for the Arabian Young Leader Award and encourage hospitality owners, operators and consultants to celebrate the dedication and achivements of the young people working within their teams.
"The Arabian Young Leader Award provides a great opportunity to nurture our future leaders and showcase young talent and ideas. The development of the next generation of hoteliers is critical to the future growth of the hospitality industry and we have a collective responsibility to help them navigate these exciting, yet challenging, times of disruption as we strive for synchronised success," added Worsley.
The Arabian Young Leader Award has been launched following the success of the first SHIC Young Leader Award, which took place at the Saudi Hotel Investment Conference in January and was open to Saudi Nationals aged 30 years and younger.
Yasmin Al Sanea, Human Resources Manager at the Intercontinental Al Jubail, won the SHIC Young Leader Awardand was commended by the high profile judges for her exceptional achievements so early in her career.
Prestigious industry leaders are also set to review and award the nominees for the Arabian Young Leader Award. The judging panel includes: Dr Badr Al Badr (Chief Executive Officer, Dur Hospitality), Gasem Al Maimani (CEO, Taiba Holding Company), Marc Dardenne (Chief Operating Officer, Public Investment Fund Amaala), Pascal Gauvin (Managing Director IMEA, IHG), Olivier Harnisch (Chief Executive Officer, Emaar Hospitality Group), Rudi Jagersbacher (President, Middle East, Africa & Turkey, Hilton), Amine Moukarzel (President, MENA Region, Louvre Hotels Group), Dr Scott Richardson (Executive Dean, Emirates Academy of Hospitality Management) and Gaurav Sinha (Founder & CEO, Insignia Worldwide).
Dr. Scott Richardson, Executive Dean of the Emirates Academy of Hospitality Management, said "The importance of attracting and nurturing young talent in one of the region's most dynamic sectors cannot be underestimated. For young people to be successful within the industry, it's not just about knowledge, but the ability to lead, innovate and share their passion for hospitality".
Nominationsfor the Arabian Young Leader Award are open at https://www.arabianconference.com/arab-young-leader-award and will close on March 18. The winner will be announced at a special ceremony during the 15thedition of AHIC, which takes place on 9-11 April at the AHIC Village in Ras Al Khaimah.
AHIC 2019, featuring 100 speakers from around the world and expecting to attract more than 900 delegates in total, has been curated around the theme Synchronised for Success.
The programme will uncover innovative approaches to business, analyse market trends, foster harmonious relationships between all stakeholders and help them future-proof against evolving demands.
For more information about AHIC 2019, visit:
www.arabianconference.com
Anne Bleeker
In2 Consulting FZ LLC for MEED
About AHIC 2019
AHIC, now in its 15thyear, is the annual gathering for the Middle East's hospitality investment community organised by global hotel investment event organiser Bench Events in partnership with Middle East business intelligence brand, MEED. AHIC creates a knowledge and networking platform for global and regional investors of all backgrounds, offering essential insights to investing in hotels, showcasing regional and international hospitality investment opportunities and facilitating direct connections with hospitality industry stakeholders.AHIC 2019 will be in Ras Al Khaimah, UAE, from 9 April to 11 April 2019 in partnership with Ras Al Khaimah Tourism Development Authority (RAKTDA). Held under the patronage of His Highness Sheikh Saud Bin Saqr Al Qasimi, Supreme Council Member and Ruler of Ras Al Khaimah, AHIC 2019 will be co-hosted by its founding patron, His Highness Sheikh Ahmed bin Saeed al Maktoum, Chairman of Dubai Airports, President of Dubai Civil Aviation Authority and Chairman and CEO of Emirates Airline and Group, whose continued support of the industry and AHIC has been critical to the region's tourism growth.
PreviousSynchronised for Success -Marjan | By Abdullah Rashed Jasem Al-Abdooli (B.Arch.)
NextAkaryn Hotel Group Aims To Become Single-Use Plastic Free By June 2019
Radisson RED Porto scheduled for 2021
Optii Solutions Integrates With Suite Control To Enhance Operational Productivity, Automation, And Guest Service
Bay State Linen Implements InvoTech Laundry System to Better Serve Clients
He started in a hotel laundry room and now runs a luxury resort chain
Mathematicians, physicists and materials experts might […]
Duetto's David Woolenberg Promoted to CEO
Duetto, hospitality's innovative software as a […]
Milestone wins big at Adrian Awards with two golds and three silvers
Milestone announced today it won a total of 8 […]
Pegasus Appoints Keno Helmi As Chief Commercial Officer
New York – Pegasus, a leading global […]
Hilton Continues its strong growth in Saudi Arabia with more than 50 hotels open and in its pipeline across the country
Riyadh, KSA & MCLEAN, VA – 21 January, 2020 […]
Amadeus Named Platinum Sponsor of HOSPA to Promote Industry Growth
HOSPA, the UK's leading organization for […]
VENZA now Offers IT Security Managed Services.
VENZA now offers IT Security Managed Services at its […]
Are neighbors friends or foes? An analysis of Airbnb listings' agglomeration effect
"Location, location, location." […]
How a Top Hotel GM Prepares to Host Multiple World Leaders
It's no secret that Jerusalem is one of the most […]
Indian Hotels Company (IHCL) arrives in Haridwar, Uttarakhand; signs a Seleqtions Hotel
Indian Hotels Company (IHCL), South Asia's […]


The minor in Social Work requires 18 semester credit hours. The minor makes students aware of our society's problems, conditions, and value systems, while enhancing their growth in their chosen major fields. The minor does not prepare students for professional social work practice nor for state social work licensure.


text:
Here are Songs by Jerry Jeff Walker That Showcased This Legendary Outlaw's Incredible Talent
What's great about Jerry Jeff Walker songs is that they are crafted to provoke the listeners to think deeper about the world.
Born as Ronald Clyde Crosby in 1942 in Oneonta, New York, the legendary outlaw went by his stage name in the middle of the 1960s and performed in bands including The Tones and Circus Maximus prior to pursuing a solo career as a folk and country artist.
RELATED: Here Are Some Facts To See How Well Do You Know Jerry Jeff Walker
Eventually, he left New York for the flourishing Outlaw Country scene in Austin, Texas, where he became one of the most important musicians to happen to the city. He brought Lone Star country-rocker form to its height in Texas, where he remained for the rest of his life.
And today, we're going to dig a little deeper into some of Jerry Jeff Walker's best songs. Keep on scrolling below to see if your favorite ones made it to the list.
1. Mr. Bojangles
From: Mr. Bojangles (1968)
"Mr. Bojangles" showed how great of a storyteller Walker is. In the song, Walker unravels a story about a street performer he met during a brief stint in a New Orleans jail due to public intoxication in 1965. The homeless man goes by the moniker "Mr. Bojangles" to hide his true identity from the authorities. However, he was arrested following a police sweep of indigent people.
The two men, along with the other jail mates, talked about everything under the sun, but when Mr. Bojangles recounted a tale about his dog, the mood in the room instantly became heavy.
2. Pissin' in the Wind
From: Ridin' High (1975)
Perhaps you've heard this phrase many times about trying to do something when there is no hope of succeeding – and Walker sings about that, almost celebrating this lack of productivity. The song is all about people who may not have achieved that much but still proudly tell their grandchildren about their endeavors with a smile.
3. L.A. Freeway
From: Jerry Jeff Walker (1972)
Guy Clark – who was Walker's fellow Texan songwriter – wrote the song after he had a disagreement with his landlord in Los Angeles, prompting him to move to Nashville.
And there's no other outlaw who's more fitting for this song than Walker, who also recently moved from New York to Austin, which he would later make his home. The song did well on the radio, helping Clark establish himself as a songwriter.
4. Up Against the Wall, Redneck Mother
From: Viva Terlingua (1973)
In "Up Against the Wall, Redneck Mother," Walker pokes fun at the redneck stereotype that's frequently been used to describe the state of Oklahoma as he sings about a man who can't keep himself out of trouble. Yet, Walker explains that it's not his fault that he often finds himself on the bad side because he was brought up that way, just like how a redneck would not have been in trouble if he wasn't living in Oklahoma.
5. Gettin' By
"Gettin' By" truly exemplifies how unique country music was in the 1970s. The song is about making the most of what you have and looking for ways to make it work for you, even if it isn't exactly what you want or need.
6. Railroad Lady
From: A Man Must Carry On (1977)
The song tells the story of a man who met a woman with a history of having been in trouble. Still, the two of them do not really care what type of past each other has as their lust for each other is bigger.
7. Jaded Lover
Walker sings about a love gone wrong in "Jaded Lover," which was a wildly popular theme in the 1970s. The song tells the story of a couple falling out of love, with one of them ending up watching the other move from one person to another in an attempt to find love.
8. Sangria Wine
Walker sings about his love for sangria wine, saying that "it's organic and it comes from the vine." He then expressed how much he loves drinking it as much as he can, especially with his old friends, and detailed the best way to enjoy it.
9. Desperados Waiting For the Train
This is another song written by Guy Clark, who said that he wrote it about his grandmother's boyfriend named Jack, who was like a grandfather to him. The song skyrocketed when country music group the Highwaymen recorded it in 1985, bringing it to the No. 15 spot of Billboard's Hot Country Songs chart.
10. I Feel Like Hank Williams Tonight
From: Live At Gruene Hall (1989)
Well, there's no doubt that Hank Williams was one of the most well-loved artists in country music – and Walker was one of his biggest fans. In the song, Walker sang about the country legend both in a professional and more personal sense, at the same time paying tribute to his indelible impact in the genre.
More of Jerry Jeff Walker Songs From The Fantastic Outlaw Singer-Songwriter
Truly, Jerry Jeff Walker's impact on the country and even rock music is indisputable. Here are some more of his hits that you need to check out.
Desperados Waiting for a Train
Driftin' Way of Life
It's a Good Night for Singing
Old Five and Dimers Like Me
Got Lucky Last Night
I Makes Money (Money Don't Make Me)
Her Good Lovin' Grace
Comfort and Crazy
Like a Coat from the Cold
I Ain't Living Long Like This
Morning Song to Sally
Hill Country Rain
Night Rider's Lament
How about you? Which among Jerry Jeff Walker songs do you love the most?
Vince Gill says Ken Burns' 'Country Music' is Profound and Honest
Carrie Underwood Singing the New SNF Season's Theme Song Still Hits Home
Miranda Lambert, Tired of the Talks about the Problem about Women in Country Music
A Renowned Cover of "In the Jailhouse Now" by Webb Pierce
The Real Inspiration Behind the Song "Mr. Bojangles"
Gary Nunn With Jerry Jeff Walker on "London Homesick Blues"
Mike Reid: From NFL Football Player to Country Musician
Watch: Tim McGraw Belts Out "Don't Close Your Eyes" Together With Keith Whitley's Guitar
Dierks Bentley Songs Feature Broad Range of Emotions and Musical Styles
CMA 2019: Winners of Vocal Duo and Group of the Year


text:
Q: Second Activity returns me to first activity in Android Please help,
I have a HomeActivity which is a login form, on success it needs to launch MainActivity, which it does but soon as I click anywhere on the simulator it brings back the HomeActivity(Login form).
Here's the code for HomeActivity where I'm launching MainActivity
public void signIn(View V)
   {
        final Dialog dialog = new Dialog(HomeActivity.this);
        dialog.setContentView(R.layout.login);
        dialog.setTitle("Login");

        // get the Refferences of views
        final  EditText editTextUserName=(EditText)dialog.findViewById(R.id.editTextUserNameToLogin);
        final  EditText editTextPassword=(EditText)dialog.findViewById(R.id.editTextPasswordToLogin);

        Button btnSignIn=(Button)dialog.findViewById(R.id.buttonSignIn);

        // Set On ClickListener
        btnSignIn.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // get The User name and Password
                String userName=editTextUserName.getText().toString();
                String password=editTextPassword.getText().toString();

                // fetch the Password form database for respective user name
                String storedPassword=loginDataBaseAdapter.getSinlgeEntry(userName);

                // check if the Stored password matches with  Password entered by user
                if(password.equals(storedPassword))
                {

                    Intent intent = new Intent(getApplicationContext(), MainActivity.class);
                    HomeActivity.this.startActivity(intent);

                }
                else
                {
                    Toast.makeText(HomeActivity.this, "User Name or Password does not match", Toast.LENGTH_LONG).show();
                }
            }
        });

        dialog.show();
}`

And this is how my manifest look: `

        <meta-data android:name="android.support.PARENT_ACTIVITY"
            android:value="za.co.app.mycity.mainactivity.loginandregister.HomeActivity"></meta-data>
          </activity>`

ANd MainActivity is just a facebook-like side menu., here, just in case
`public class MainActivity extends Activity {
// Within which the entire activity is enclosed
DrawerLayout mDrawerLayout;

// ListView represents Navigation Drawer
ListView mDrawerList;

// ActionBarDrawerToggle indicates the presence of Navigation Drawer in the action bar
ActionBarDrawerToggle mDrawerToggle;

// Title of the action bar
String mTitle="";

@Override
protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    mTitle = (String) getTitle();

    // Getting reference to the DrawerLayout
    mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);

    mDrawerList = (ListView) findViewById(R.id.drawer_list);

    // Getting reference to the ActionBarDrawerToggle
    mDrawerToggle = new ActionBarDrawerToggle(  this,
                                                mDrawerLayout,
                                                R.drawable.ic_drawer,
                                                R.string.drawer_open,
                                                R.string.drawer_close){

        /** Called when drawer is closed */
        public void onDrawerClosed(View view) {
            getActionBar().setTitle(mTitle);
            invalidateOptionsMenu();

        }

        /** Called when a drawer is opened */
        public void onDrawerOpened(View drawerView) {
            getActionBar().setTitle("Select a river");
            invalidateOptionsMenu();
        }

    };

    // Setting DrawerToggle on DrawerLayout
    mDrawerLayout.setDrawerListener(mDrawerToggle);

    // Creating an ArrayAdapter to add items to the listview mDrawerList
    ArrayAdapter<String> adapter = new ArrayAdapter<String>(
                getBaseContext(),
                R.layout.drawer_list_item  ,
                getResources().getStringArray(R.array.rivers)
            );

    // Setting the adapter on mDrawerList
    mDrawerList.setAdapter(adapter);

    // Enabling Home button
    getActionBar().setHomeButtonEnabled(true);

    // Enabling Up navigation
    getActionBar().setDisplayHomeAsUpEnabled(true);

    // Setting item click listener for the listview mDrawerList
    mDrawerList.setOnItemClickListener(new OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> parent,
                        View view,
                        int position,
                        long id) {

            // Getting an array of rivers
            String[] rivers = getResources().getStringArray(R.array.rivers);

            //Currently selected river
            mTitle = rivers[position];

            // Creating a fragment object
            RiverFragment rFragment = new RiverFragment();

            // Creating a Bundle object
            Bundle data = new Bundle();

            // Setting the index of the currently selected item of mDrawerList
            data.putInt("position", position);

            // Setting the position to the fragment
            rFragment.setArguments(data);

            // Getting reference to the FragmentManager
            FragmentManager fragmentManager  = getFragmentManager();

            // Creating a fragment transaction
            FragmentTransaction ft = fragmentManager.beginTransaction();

            // Adding a fragment to the fragment transaction
            ft.replace(R.id.content_frame, rFragment);

            // Committing the transaction
            ft.commit();

            // Closing the drawer
            mDrawerLayout.closeDrawer(mDrawerList);

        }
    });
}

 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
     super.onPostCreate(savedInstanceState);
     mDrawerToggle.syncState();
 }

/** Handling the touch event of app icon */
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    if (mDrawerToggle.onOptionsItemSelected(item)) {
      return true;
    }
    return super.onOptionsItemSelected(item);
}

/** Called whenever we call invalidateOptionsMenu() */
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
    // If the drawer is open, hide action items related to the content view
    boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);

    menu.findItem(R.id.action_settings).setVisible(!drawerOpen);
    return super.onPrepareOptionsMenu(menu);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
}

}
`
Please help, I'm very new to Android Development and am pretty excited about it.

A: Try this as your home activity:
public void signIn(View V)
 {
    final Dialog dialog = new Dialog(HomeActivity.this);
    dialog.setContentView(R.layout.login);
    dialog.setTitle("Login");
    dialog.setCancelable(false);
    dialog.setCanceledOnTouchOutside(false);
    // get the Refferences of views
    final  EditText editTextUserName=(EditText)dialog.findViewById(R.id.editTextUserNameToLogin);
    final  EditText editTextPassword=(EditText)dialog.findViewById(R.id.editTextPasswordToLogin);

    Button btnSignIn=(Button)dialog.findViewById(R.id.buttonSignIn);

    // Set On ClickListener
    btnSignIn.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {
            // get The User name and Password
            String userName=editTextUserName.getText().toString();
            String password=editTextPassword.getText().toString();

            // fetch the Password form database for respective user name
            String storedPassword=loginDataBaseAdapter.getSinlgeEntry(userName);

            // check if the Stored password matches with  Password entered by user
            if(password.equals(storedPassword))
            {

                Intent intent = new Intent(getApplicationContext(), MainActivity.class);
                HomeActivity.this.startActivity(intent);

            }
            else
            {
                Toast.makeText(HomeActivity.this, "User Name or Password does not match", Toast.LENGTH_LONG).show();
            }
        }
    });

    dialog.show();
}

I've added dialog.setCancelable(false) and dialog.setCanceledOnTouchOutside(false) in your code.


text:
Macrometopa calogaster är en tvåvingeart som först beskrevs av Jacques-Marie-Frangile Bigot 1889.  Macrometopa calogaster ingår i släktet Macrometopa och familjen parasitflugor. Inga underarter finns listade i Catalogue of Life.

Källor

Parasitflugor
calogaster


text:
package org.ritvik.cxf;

import javax.ws.rs.GET;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.apache.log4j.Logger;

public class CxfRestClient {

	private Logger logger = Logger.getLogger(CxfRestClient.class);

	@GET
	@Produces(value = MediaType.TEXT_PLAIN)
	public Response process() {
		logger.info("In CxfRestClient");

		return Response.ok("Client OK").build();
	}
}

redpajama_set_name: RedPajamaGithub


Someone on a list I am on (actually, two lists I am on), posted an article about Eboo Patel. You know, one of those things about NRI's (Non-Resident Indians) making good. I had the honour of being on the same radio show as Eboo P about a year ago now, and I agree that he's something to be proud of for any community he's part of. See can listen to the radio appearance here.
But the moment I got that mail, I had just gotten back (less than 24 hours) from 3 weeks in India and Pakistan (Karachi and Lucknow; meeting with people from several social strata) and I am not sure the people "on the ground" need to be *TAUGHT* anything new about being nice people of other faiths--what we need are strong voices countering things like, just to provide one example, articles about Keith Ellison titled "Muslim Zionist" (the Jamat-e-Islami's English-language newsletter "Radiance Weekly" in INDIA--quoting, it later turned out, further making the point, a Stateside fanatic rag). And it is the diaspora that needs new voices on this. On the ground, there are enough people with the a moderate outlook, a strong spine, and a track record; we just need to find them and support them.


Manchester United manager Jose Mourinho has ruled Paul Pogba out of Thursday's derby with Manchester City.
Pogba was forced off in the closing stages of United's 2-0 win over Burnley on Sunday.
Afterwards, Mourinho said the 24-year-old was "dead" having played 47 games so far this season, and he confirmed at his news conference on today, Wednesday, that the midfielder will not be available to line up against City at the Etihad Stadium.
Mourinho also confirmed that Antonio Valencia is fit to return after missing the win at Turf Moor while Ander Herrera has shaken off an ankle knock and is available.


Location: 12.51741 Lon. 41.571 Lat.
We are looking for ....Photos, Morning Reports, After Action Reports and other documents including those of units that may have been near the coordinates LON: 12.51741, LAT: 41.571 on the approximated dates of death - 06/01/1944.