text:
Q: Why is startActivityForResult not showing up in recycler view adapter? I am new to android programming. I am unable to find startActivityForResult(intent) within onBindViewHolder in the recycler adapter.
I have a recycler view adapter containing some items for MainActivity(1). This Activity 1 contains some elements which are hidden. If the user clicks on any item, he/she is taken to a new activity(2). Activity2 contains a button, which when clicked, changes the items in Activity 1 to be visible.
On doing some research, I found that I need to use startActivityForResult instead of startActivity if I am expecting results back from Activity2. But I am unable to find startActivityForResult(intent) within onBindViewHolder in the recycler adapter for Activity1.
Am I doing something wrong? Below is the recycler view code
public void onBindViewHolder(@NonNull final ViewHolder holder, final int position) {
    holder.txtItem.setText(items.get(position).getItemName());
    holder.txtShortDesc.setText(items.get(position).getItemShortDesc());

    holder.txtShortDesc.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            Intent intent = new Intent(mContext, LongDesc.class);
            intent.putExtra(ITEM_ID_KEY, items.get(position).getId());
            startActivityForResult(intent);


Whether you decide that a hike is the best medicine, or you'd rather curl up in a cabin with a record player blasting, I am here to capture that special magic between you and your most special person. These sessions are called adventure sessions for a reason, and don't worry I won't make you run or jump out of a plane. These are called adventure sessions because I want you and your person to relax and play with each other. There will be no awkward posing, no "tilt your head a little to the left and say cheese!", and you definitely won't be staring into the camera for an hour. I will be leading you into situations that evoke real emotion, playfulness, and joy, so let's get together and create some magic!
Whether it's your wedding day, your engagement session, the launch of your new business, or you've just decided your babies have grown far too quickly, video can be a beautiful way to capture those special moments that need movement to come to life.
Video pricing varies depending on the type of work needed and the length of the event.


text:
Science and Action to Protect Public Health: How Healthcare Professionals Are Changing Chemicals Policy
Physicians for Social Responsibility—Los Angeles (PSR-LA)
This call hosted by CHE-Alaska was a one-hour discussion examining our broken chemical safety system and offering solutions to protect our health and the environment. Executive Director Martha Arguello of Physicians for Social Responsibility—Los Angeles (PSR-LA) was the featured speaker. Martha works at the intersections of health, the environment and social justice to advocate for effective policy change.
For the past 32 years, Martha has served in the nonprofit sector as an advocate, community organizer and coalition builder. She joined PSR-LA in 1998 to launch the environmental health programs and became executive director in November 2007. While working as a health educator in the 1990s, Martha had an epiphany—she realized that although early detection can prevent death from breast cancer, it does not prevent breast cancer, which has been increasingly linked to the exposure of environmental toxicants. Since that realization, Martha has dedicated her career to the environmental justice movement and has lectured nationwide on the use of precautionary principle policies.

redpajama_set_name: RedPajamaCommonCrawl


As the number of humans hits 7 billion this year, it's a good time to study population, the theme for this year's Senior Symposium.
The Earth had fewer than 1 billion in 1800, 3 billion in 1960, and 6 billion as recently 1999. By 2050, it's expected that there will be 9 billion humans.
Already 1 billion are malnourished or starving. Can such numbers be sustained? The discussion begins Monday.
All lectures are at noon in Memorial Ballroom, Hall Campus Center.


Please use this form to get in contact with us, if there are any questions about your booking or cancellation. Most of the question you can answer yourself by checking the homepage completly. We tried to give you every information there you will need. For bookings please use the booking form only.
The author reserves the right not to be responsible for the topicality, correctness, completeness or quality of the information provided. Liability claims against the author, which relate to damages of the material or immaterial kind, caused by the use or non-use of the information provided or by the use of incorrect or incomplete information, are in principle excluded unless it is proven that there has been intentional or grossly negligent fault on the part of the author. All offers are non-binding. The author expressly reserves the right to change, amend, or delete parts of the pages or the entire offer without prior notice, or to terminate the publication temporarily or permanently.
In the case of direct or indirect references to third-party websites ("hyperlinks") that lie outside of the responsibility of the author, a liability obligation would only come into force if the author is aware of the contents and it is technically and reasonably feasible for the author to prevent the use in case of illegal contents. The author hereby expressly declares that at the time of the creation of a link no illegal contents were recognizable on the pages that have been linked. The author has no influence on the current and future design, the content or the authorship of the linked pages. Therefore, he hereby expressly dissociates himself from all contents of all linked pages, which were changed after the creation of the link. This statement applies to all links and references placed within the author's own internet site, as well as to external entries in guest books, discussion forums, link lists, mailing lists, and in all other forms of databases, to which external writing access is possible, that have been set up by the author. Liability for illegal, incorrect or incomplete contents and in particular for damages resulting from the use or non-use of such provided information is solely the responsibility of the provider of the site to which reference has been made, not the person who merely refers to the respective publication via links.
The author endeavors to observe the copyrights of the images, graphics, sound documents, video sequences and texts used, to use his own pictures, graphics, sound documents, video sequences and texts, or to access license-free graphics, sound documents, video sequences and texts. All brands and trademarks mentioned within the online offer and possibly protected by third parties are subject without restriction to the provisions of the respectively valid trademark law and the rights of ownership of the respectively registered owners. The mere naming does not lead to the conclusion that trademarks are not protected by third-party rights!
If there is the possibility to enter personal or business data (email addresses, names, addresses) within the online offer, the user is giving this data expressly on a voluntary basis. The use and payment of all offered services is permitted – as far as technically possible and reasonable – without the provision of such data or under specification of anonymized data or a pseudonym. The use of contact data provided as part of the imprint or similar declarations, such as postal addresses, telephone and fax numbers and e-mail addresses, by third parties for the transmission of information that has not been expressly requested is not permitted. We expressly reserve the right to take legal action against senders of so-called spam mail in the case of violations of this prohibition.
This disclaimer is to be regarded as part of the online offer from which this page was referred to. If sections or individual terms of this statement are not legal or correct, the content or validity of the other parts remain uninfluenced by this fact.
An online booking is binding only after a written provisional confirmation. We reserve the right to reject bookings without giving any reason. A final booking confirmation will be sent by e-mail after receipt of an agreed down payment. Changes to the booking at a later time, e.g. a shortening or an extension of the booking period or a transfer of the booking to third parties is possible only in consultation with us.
By confirming the booking request, we will ask you for a deposit of at least 50% (from 3 nights) and 100% (1 or 2 nights) of the total amount due. Please make sure that we have this deposit within 7 days of receipt of the provisional booking confirmation. The payment receipt on our bank account is decisive for compliance with this deadline. If the deposit is not received within this period, we consider the contractual relationship to be broken and the online booking is canceled.
Any possible balance is due in cash on the day of arrival and must be paid during check-in. The city tax (5% of the accommodation price) will also be collected in cash during check-in.
The rental period begins on the day of arrival from 2 pm and ends at 12 noon on the day of departure. Exceptions are possible after consultation with us – please let us know your preferred arrival and departure times on the booking form, so that we can plan accordingly! Check-in should be no later than 10 pm. We ask that you let us know of any changes to the check-in times (e.g. due to flight cancellations or delays) as soon as possible either by phone call or SMS. In any case, it is essential to inform us about the exact arrival time about half an hour prior to arrival at the apartment by phone call or SMS so that we can be there on time for your check-in. The hand-over of the keys takes place at the apartment together with an instruction.
A cancellation of the booking up to 3 weeks prior to arrival is possible with the deduction of a processing fee of €50.00. In the event of a later cancellation or non-arrival without a cancellation, the deposit will be withheld without deduction. For cancellations, use the cancellation form on the homepage under "Contact".
The apartments may only be occupied by the number of persons indicated in the guest's booking. Pets are not allowed.
The guest is liable in full for losses and damages to the apartment, the furniture, and the equipment during the period of use. We cannot be held liable for short-term breakdown of furnishings, public supply, lift or internet connection; a price reduction is excluded. The same applies to force majeure. The use of the apartment, the furnishings and the public ways and stairs is at your own risk.
In case of a loss of valuables of the guests during the stay, any liability is excluded.
The agreed rental price is the final price including one-time final cleaning, and includes all additional costs, including the provision of bed linen and towels. In the event of excessive soiling, an additional cleaning fee of €50.00 will be charged.
Filming and photographing for professional purposes in the apartments require our express consent. Private photos are permitted.
Please keep in mind the general habits inside rental houses. Disturbing noise is to be avoided after 10 pm. This applies in particular to the stairwell areas.


"Our items are commonly identified and trusted by people and can fulfill repeatedly altering economic and social wants of Decorative Glass Bowls , decorative glass bowls , Decorative Glass , Good quality and reasonable price have brought us stable customers and high reputation. Providing 'Quality Products Excellent Service Competitive Prices and Prompt Delivery' we are now looking forward to even greater cooperation with overseas customers based on mutual benefits. We will work whole-heartedly to improve our products and services. We also promise to work jointly with business partners to elevate our cooperation to a higher level and share success together. Warmly welcome you to visit our factory sincerely.


text:
2016 New Scientist Live in the ExCel Centre in London, Materials Today and the Materials Science Council at Elsevier
Location: ExCel Centre in London
On the 23rd September, from 10am – 5pm at New Scientist Live in the ExCel Centre in London, Materials Today and the Materials Science Council at Elsevier are organizing a one day materials science bonanza bringing together some of the world's most well-known and thought provoking materials scientists to discuss the role of materials science in society and the next generation of materials discovery.
The program for the day is listed below:
Professor Mark Miodownik, UCL, London, UK - Materials for the 21st Century
Professor Abhay Pandit, National University of Ireland, Galway, Ireland - Redefining Identity of Disease, Tissue and Cells- A BioMaterials Paradigm
Dr Eleanor Schofield, Conservation and Collections Care at the Mary Rose Trust, UK - The challenges in conserving and caring for the Mary Rose
A short panel discussion on communicating materials science will follow the presentation, with Professor Jonathan N Coleman, Trinity College Dublin, Ireland - Kitchen Physics: Using physics to produce state of the art nanomaterials using household implements, Professor Nicola Marzari, EPFL, Switzerland - Science 2.0: How computational materials science will change your world and Professor Emma Lundberg, KTH, Sweden - How to make gamers do science: Project Discovery
More information at : http://www.nuigalway.ie/about-us/news-and-events/news-archive/2016/february2016/dementia-patients-and-carers-to-benefit-from-45-million-research-investment.html
From Friday, 23 September 2016 to Friday, 23 September 2016


BOSTON, USA ( July 14, 2016 ) -- Researchers from the Harvard Medical School - affiliated Hebrew SeniorLife Institute for Aging Research (IFAR) have found increasing evidence that delirium in older surgical patients may be associated with long-term cognitive decline. Findings from the study were published today in the July 2016 issue of Alzheimer's & Dementia: The Journal of the Alzheimer's Association.
Hebrew SeniorLife, an affiliate of Harvard Medical School, is a national senior services leader uniquely dedicated to rethinking, researching and redefining the possibilities of aging. Based in Boston, the non-profit, non-sectarian organization has provided communities and health care for seniors, research into aging, and education for geriatric care providers since 1903. For more information about Hebrew SeniorLife, visit http://www.hebrewseniorlife.org , follow us on Twitter @H_SeniorLife, like us on Facebook or read our blog.
Hebrew SeniorLife Institute for Aging Research , 14.07.2016 (tB).


text:
Q: Add audio to an MP4 in Java (JDK) without FFmpeg I am currently working on a project in Java, where I have to combine several pictures to an MP4 file and also add audio track to this file (as WAV or MP3).
I have managed to create an MP4 file from the images using JCodec. I chose this library because if I should ever want this to run on Android, this library is compatible there.
I tried using the MP4 Parser but it only accepts AAC/M4A files. But I want this to work with WAV files or MP3.
All other useful libraries I found so far use FFmpeg in some way. I do not want the people using the program having to install the FFMPEG command line tool which I'd then call from Java.
So what I want to know is,

*

*Is there a way of adding audio to an MP4 file in Java without using FFmpeg, or at least using it in some way where I don't have to install the command line tool?

*If there is, do I have to use AAC/M4A files? If yes, then I'd also like to know how to convert a WAV or MP3 file to AAC/M4A in Java. Is there a good library for doing the job? I've been stuck at this point for about a week now and I hope this thread will lead to some more useful result.

I hope someone will be able to help,
I wish you a happy day, whether you can help or not.
Bye for now,
Robbe.

A: using this code you can add .wav and other supported formats by jdk to your java code
import java.io.File;
import javax.sound.sampled.*;

use try catch or throws method
here i used try catch method
public class Music {
    public static void main(String[] args){

        try{
            File file = new File("--file location--");
            AudioInputStream audioStream =AudioSystem.getAudioInputStream(file);
            Clip clip = AudioSystem.getClip();
            clip.open(audioStream);

            clip.start();

            Thread.sleep(s*1000); // s = time in seconds

        }catch(Exception e){
            System.out.println(e);
            System.out.println("File Not Supported");
         }

    }
}

Click here to open my github repository AddingAudioToJava

redpajama_set_name: RedPajamaStackExchange


Today is the final day of the A-Z Challenge!
I've been invited to become an Operative over at YA Confidential!
If you're unfamiliar with YA Confidential, the short story is this: It's a fantastic teen-centered blog featuring everything from YA book recommendations, roundtables, teen interviews, critiques, advice, shared wisdom, giveaways… Really, there's something for everyone! And the Operatives — they're all kinds of awesome: Cristin Terrill, Copil Yanez, Alexandra Shostak, Cambria Dillon, Sara McClung, Karen Amanda Hooper, Alison Miller, as well as my fellow new Operatives: Jessica Love and Matthew MacNish.
So… Are you curious about my Operative Profile?
Legend: Once danced onstage at a Korn concert… in a lavender GAP button-down. Now a soldier's wife, a princess's mama, and a writer of young adult fiction chock full of cute boys, intense romance, and steamy kisses.
Known Whereabouts: katyupperman.com and @katyupperman, as well as bookstores, country-western bars, and shopping malls spanning the globe.
You should most definitely check YA Confidential out if you haven't already. I'm honored and thrilled to be a part of it!
This blog looks interesting. Since we're both aspiring writers, I'm going to sit down and hang around for more.
Congratulations! Looking forward to reading your contributions!
Congratulations on finishing the A to Z challenge AND becoming an Operative! Very cool and mysterious 🙂 I can't wait to check out YA Confidential.
Congrats! I love YA Confidential! Can't wait to read your posts over there.
Congrats! I'll have to check this out!
Ha! I'm laughing at the dancing onstage at Korn in a Gap button-down, lavender at that. Total irony. Nice to have met you!
Woo hoo – congrats on being an Operative!
I'm in awe of everyone who did the challenge. Congrats on getting to Z, and congrats on becoming an Operative!
And congrats on finishing the challenge!
Congratulations! I'll head over and check out YA Confidential right now!
You are totally cool! Congrats on finishing the challenge!
YAY- awesome! I love their style and the cute super-spy feel!
Congrats, Katy! You'll be an awesome operative!
And good for you for getting through the A-Z challenge. I've really enjoyed your posts!


Boxing Clever – a working class observation of our political classes.
As someone from a working class northern background, hailing from one of the most deprived areas of the country (and to my regret, without even a GCSE to my name), politics never interested me growing up. Nor was it talked about or even mentioned over the breakfast table or at family gatherings. My only real memory of anything political growing up was the poll tax riots of the early 90's, and my parents anger at the polices of the day.
And so this trend continued all throughout my teens; and through almost all my 20s it's fair to say that politics never really registered on my radar. This of course all changed around the late 2000's as the economy collapsed and the disastrous polices of the sinister neo-liberal Labour government came home to roost.
It was a pretty hard pill to swallow, coming to the realization that these people entrusted with our livelihoods, with our very futures – the 'great and the good', our so-called betters – were at best totally incompetent, at worst sinister and evil; or as I would personally put it: they didn't know their arses from their elbows.
It was at this point, while jobless and languishing on benefits, that I started to wise up and take note. I started watching the news for the very first time, and watching shows I'd never really known existed like Question Time and the Daily Politics. I was searching for answers and information on what exactly had happened to our once great nation!
The second was the way they spoke with their hands. It actually amused me, it was almost like they were doing some sort of privileged version of the 'big fish, little fish' hand dance. 'Insincere' is the word I would use to describe these people. It was like they were reading from a script, written by a script writer who was desperately trying to work out what I wanted to hear.
Add to this my observation that they would never answer questions directly and to the point ever, always going off the subject and dancing around what the interviwer wanted to actually know! I came to the conclusion that these procrastinators were not the people I wanted to represent me or my country in any way, shape or form.
And then one day, after feeling there was no party or politician I had any belief in, I eventually had my 'UKIP moment', if you will. It all started one day as I was casually looking on YouTube for a boxing clip I had seen at a friends house a few days previously. The video was of an American fighter (Jeff Lacy), who had been berated by a British crowd after suffering a heavy defeat, with the crowd shouting "Who are you? Who are you? Who are you?" It was when I put this simple phrase into the search box that, low and behold, our Nige's face popped up, so I clicked on it out of curiosity.
Needless to say I was riveted by this blistering verbal attack! It appealed to me; it resonated – the ferocity of it, the passion that exuded from every pore, and the uncomfortable look on this little mans face! I was totally ignorant of course that this little man was in fact our ruler! El Presidente! Our Emperor of Europe!
The more I watched of Nigel, Paul, Gerard and Godfrey, the more I related to them and the more they seemed very different from the above mentioned 'career politicians'. Although somewhat posh sounding to a lad from the north east, they were real people with flaws, with views, with something fresh to say, not cowed or scared to express how they really felt.
I soon came to the realization that UKIP was the party for me: a party with people I could believe in and relate to, and who had the British peoples' best interests at heart, so I started actively supporting and spreading the word among friends and family. It was not until well over a year later that I finally had some spare money in the bank and decided to come a fully paid up member. I have never looked back since.
And so here we are in 2014: the year of the European elections – or 'The Year of the Drawn Swords' as I like to call it. The daggers are out. Already in 2014 we have seen attacks and smears, and I'm sure there will be a lot more still to come; as my article title alludes, we have to 'box clever' and roll with the punches. We must hold our nerves and be steadfast, but in a perverse way I take a lot of solace from this, to me this means we are doing something right. Like a cornered animal who is at their most desperate and vicious when threatened, we have our political elite scared and on the attack.
Alan Emmerson is from Cleveland, and describes himself as a 'Jack of all trades', having worked in slaughter houses, the kitchens in the Aldershot Garrison, and more recently as a plasterer. He is a member of UKIP, and hopes to get more involved with the party this year as an activist.
Nice Job Allan and understood, I had same lifestyle.
A great blog thoroughly enjoyed it.
Like you I am from working class stock and as you do voted Labour.
I have since voted for them all including the Libdems can't remember why but now I have found a party I feel comfortable with and will never vote for the Liblabcon again.
An excellent article Alan. I enjoyed it from start to finish. A well thought out and well written article.
I wonder after recent events in Margate why don't you offer your services to Nigel as a bodyguard. I'm sure your skills would come in very handy on occasion although I would hope not too many.
Alan, seems like your school failed you along with so many others. You could easily have had academic success if you had been in a decent educational environment. A good article, well written and annotated. Thumbs up!
For someone who is not apparently over academic your piece is highly articulate, even erudite. So thanks for writing and thoroughly enjoyed it.
Alan, a brilliant piece, it resonated with me too, although my background is utterly different to yours. However, I had that same realisation as you did watching YouTube. My eureka moment was the Eastleigh By Election coupled with yet another senseless utterance from Cameron. We must not be cowed by the "desperate, vicious and cornered animal" as you describe it.
Yes, we're getting together, we're standing up – and we're not scared.
Alan, you may not have any GCEs but you write extremely well.Good article.
Replace North East with North West and this is my story too. Only ever voted once and that was for my mate who stood for the Monster Raving Loony Party, got to meet Screaming Lord Sutch and had a ball of a day. My only prior fling with politics tells you how disinterested I was. Today I sit here with a different political view and actually some passion and fervour for my opinions. I am reading more and more and learning more than I ever thought I would, so much so that I actually want to become a political activist and to fight against the tyranny and downright disrespect of the working class. My life has been shattered by the recession, jobs that I used to get regularly earning £10-12 per hour, are no longer available to me, mostly only advertised to graduates now. Menial jobs, which I used to use as fill ins/stop gaps are now my only hope, and most of them aren't available now either. Agency work, few days here and there is all I get, so I had no choice but to go self employed and scrape by barely even making a wage, treading water and waiting for a disaster to strike. Better than feeling like a criminal for not having a job though!
I felt like I could've written this article myself. I'm in my late 20's, and have never been into politics. I only started paying attention during 2007/08 because I was worried about the economy and the future of our country. However, I never really felt like there a was a party that represented me until I came across some of Nigel's videos on youtube and started looking into UKIP.
Alan, couldn't agree more with what you say. I will give you a word that sounds good and does mean exactly what it says on the tin, "epiphany". It's that moment when you realise that the members of UKIP believe in the same things you do and they are going to do something about it. It's that moment when you see the difference between the PC, could mean anything words, of the other politicians and the straight talking of UKIP. It's the moment when you decide to join UKIP.


text:
EUROPE: Release Video Clip For Song "Turn To Dust"
Giannis Tziligkakis
EUROPE, hard rock legends from Sweden, released a video for the "Turn to Dust" which is taken from their 2017 album "Walk The Earth".
You may watch the video below:
Vocalist Joey Tempest stated that:
"This song idea has been brewing for over ten years. When recording our latest album, "Walk the Earth", in Abbey Road Studios, the inspiration finally kicked in to finish it.
Originally an idea and labour of love of Mic Michaeli's , the video was meant to touch on emotions and observations related to the Life and Death of your near and dear ones, the circle of life if you will, but it turned out to be much more than that as it follows the dramatic journey of the character taken from the artwork on our album cover.
Working with Craig Hooper and his animation team was a real pleasure, and after seeing their work on DEEP PURPLE's "The Surprising", we knew we were dealing with true visionaries. We're very proud of the result, especially since it's our first ever animated video."
"Walk The Earth" Artwork and track listing:
1. Walk The Earth
2. The Siege
3. Kingdom United
4. Pictures
5. Election Day
6. Wolves
7. GTO
8. Haze
9. Whenever You're Ready
10. Turn To Dust
Photo by Aphasia83 [CC BY-SA 3.0], via Wikimedia Commons.
Previous articleROYAL ORPHAN: Release Video From Recent Gig
Next articleMERCURY RADIO – Reborn in Steel (S03E50)
PRAYING MANTIS: Release "Keep It Alive" Live Album In December; Tease Video For "Highway"
CIRITH UNGOL: Release Video For "Join The Legion" (Live At Up The Hammers Fest)
ANGEL WITCH: Launch New Single "Condemned"
WOLF: Releases A New Album in 2020 and Introduces New Members
Swedish metallers WOLF will finally return with a new studio album! Entitled "Feeding the Machine", you can expect this heavy metal monument to be...