text:
Country Daycare
These Terms and Conditions, together with any and all other documents referred to herein, set out the terms of use under which you may use this website, www.boggsdogs.co.uk Please read these Terms and Conditions carefully and ensure that you understand them. Your agreement to comply with and be bound by these Terms and Conditions is deemed to occur upon your first use of Our Site. If you do not agree to comply with and be bound by these Terms and Conditions, you must stop using Our Site immediately.
1.1 In these Terms and Conditions, unless the context otherwise requires, the following expressions have the following meanings:
"System" means any online communications facility that We make available on Our Site either now or in the future. This may include, but is not limited to, contact forms, email, and live chat; and
"We/Us/Our" means Boggs Dogs Sole Trader, Main Trading address is : 32 Boggs Holdings, EH34 5BA
2.1Our Site, www.boggsdogs.oc.uk, is operated by Boggs Dogs, registered address is 32 Boggs Holdings EH34 5BA
4.1 All Content included on Our Site and the copyright and other intellectual property rights subsisting in that Content, unless specifically labelled otherwise, belongs to or has been licensed by Us. All Content is protected by applicable United Kingdom and international intellectual property laws and treaties.
4.3.1 Access, view and use Our Site in a web browser (including any web browsing capability built into other types of software or app);
4.3.3. Print [one copy of any] page[s] from Our Site;
4.5 You may not use any Content saved or downloaded from Our Site for commercial purposes without first obtaining a licence from Us (or our licensors, as appropriate) to do so. [This does not prohibit the normal access, viewing and use of Our Site for general information purposes whether by business users or consumers.]
4.6 [Nothing in these Terms and Conditions limits or excludes the provisions of Chapter III of the Copyrights, Designs and Patents Act 1988 'Acts Permitted in Relation to Copyright Works', covering in particular the making of temporary copies; research and private study; the making of copies for text and data analysis for non-commercial research; criticism, review, quotation and news reporting; caricature, parody or pastiche; and the incidental inclusion of copyright material.]
5.1 You may link to Our Site provided that:
5.1.1 You do so in a fair and legal manner;
5.1.2 You do not do so in a manner that suggests any form of association, endorsement or approval on Our part where none exists;
5.1.3 You do not use any logos or trade marks displayed on Our Site without Our express written permission; and
5.1.4 You do not do so in a way that is calculated to damage Our reputation or to take unfair advantage of it.
5.2 [You may link to any page of Our Site.]
5.2 [You may not link to any page other than the homepage of Our Site,www.boggsdogs.oc.uk. Deep-linking to other pages requires Our express written permission.]
5.3 [Framing or embedding of Our Site on other websites is not permitted without Our express written permission. Please contact Us at mel@boggsdogs.co.uk for further information.]
5.4 You may not link to Our Site from any other site the content of which contains material that:
5.4.1 [is sexually explicit];
5.4.11 infringes, or assists in the infringement of, the intellectual property rights (including, but not limited to, copyright, trade marks and database rights) of any other party; or
5.5 [The content restrictions in sub-Clause 5.4 do not apply to content submitted to sites by other users provided that the primary purpose of the site accords with the provisions of sub-Clause 5.4. You are not, for example, prohibited from posting links on general-purpose social networking sites merely because another user may post such content. You are, however, prohibited from posting links on websites which focus on or encourage the submission of such content from users.]
Links to other sites may be included on Our Site. Unless expressly stated, these sites are not under Our control. We neither assume nor accept responsibility or liability for the content of third party sites. The inclusion of a link to another site on Our Site is for information only and does not imply any endorsement of the sites themselves or of those in control of them.
7. Use of Our System
7.2 You may use Our System at any time to contact Us. Please note the following; you must not:
7.2.1 communicate in a way that is obscene, deliberately offensive, hateful or otherwise inflammatory;
7.2.2 submit information that promotes violence;
7.2.3 submit information that promotes or assists in any form of unlawful activity;
7.2.4 submit information that discriminates against, or is in any way defamatory of, any person, group or class of persons, race, sex, religion, nationality, disability, sexual orientation or age;
7.2.5 submit information that is intended or is otherwise likely to threaten, harass, annoy, alarm, inconvenience, upset, or embarrass another person;
7.2.6 submit information that is calculated or is otherwise likely to deceive;
7.2.7 submit information that is intended or is otherwise likely to infringe (or to threaten to infringe) another person's privacy;
7.2.8 misleadingly impersonate any person or otherwise misrepresent your identity or affiliation in a way that is calculated to deceive;
7.2.9 imply any form of affiliation with Us where none exists;
7.2.10 infringe, or assist in the infringement of, the intellectual property rights (including, but not limited to, copyright, trade marks and database rights) of any other party; or
7.2.11 submit information in breach of any legal duty owed to a third party including, but not limited to, contractual duties and duties of confidence.
7.3 We may monitor any and all communications made using Our System.
7.4 Any information that you send to Us through Our System may be modified by Us and, by sending us such information, you waive your moral right to be identified as the author of that information.
7.5 Any personal information sent to Us, whether through Our System or otherwise (including but not limited to your name and contact details), will be collected, used and held in accordance with your rights and Our obligations under the Data Protection Act 1998, as set out in Clause 13.
8.2 Insofar as is permitted by law, We make no representation, warranty, or guarantee that Our Site will meet your requirements, that it will not infringe the rights of third parties, that it will be compatible with all software and hardware, or that it will be secure.
8.3 We make reasonable efforts to ensure that the Content on Our Site is complete, accurate, and up-to-date. We do not, however, make any representations, warranties or guarantees (whether express or implied) that the Content is complete, accurate, or up-to-date.
8.4 No part of Our Site is intended to constitute a contractual offer capable of acceptance. No goods or services are sold through Our Site and the details of services provided on Our Site are provided for general information purposes only.
8.5 We make reasonable efforts to ensure that any and all pricing information shown on Our Site is correct at the time of going online. We reserve the right to change prices at any time and may add or remove special offers and promotions from time to time. All pricing information is reviewed and updated.
9.2 To the fullest extent permissible by law, We accept no liability to any user for any loss or damage, whether foreseeable or otherwise, in contract, tort (including negligence), for breach of statutory duty, or otherwise, arising out of or in connection with the use of (or inability to use) Our Site or the use of or reliance upon any Content included on Our Site.
9.4 If you are a business user, We accept no liability for loss of profits, sales, business or revenue; loss of business opportunity, goodwill or reputation; loss of anticipated savings; business interruption; or for any indirect or consequential loss or damage.
9.5 We exercise all reasonable skill and care to ensure that Our Site is free from viruses and other malware. We accept no liability for any loss or damage resulting from a virus or other malware, a distributed denial of service attack, or other harmful material or event that may adversely affect your hardware, software, data or other material that occurs as a result of your use of Our Site (including the downloading of any Content from it) or any other site referred to on Our Site.
9.6 Nothing in these Terms and Conditions excludes or restricts Our liability for fraud or fraudulent misrepresentation, for death or personal injury resulting from negligence, or for any other forms of liability which cannot be excluded or restricted by law. For full details of consumers' legal rights, including those relating to digital content, please contact your local Citizens' Advice Bureau or Trading Standards Office.
11. Acceptable Use Policy
11.2 You may only use Our Site in a manner that is lawful. Specifically:
11.3 We reserve the right to suspend or terminate your access to Our Site if you materially breach the provisions of this Clause 11 or any of the other provisions of these Terms and Conditions. Specifically, We may take one or more of the following actions:
11.3.1 suspend, whether temporarily or permanently, your right to access Our Site;
11.4 We hereby exclude any and all liability arising out of any actions (including, but not limited to those set out above) that We may take in response to breaches of these Terms and Conditions.
Use of Our Site is also governed by Our Cookie and Privacy Policies. These policies are incorporated into these Terms and Conditions by this reference.
13.2 All personal information that We may collect (including, but not limited to, your name and contact details) will be collected, used and held in accordance with the provisions of the Data Protection Act 1998 and your rights and Our obligations under that Act.
Boggsdogs was our first experience leaving our dog Breagha so it was a big deal for us Mel and her excellent team were so friendly and welcoming it made it so much easier knowing our dog would be surrounded by such warmth. The dogs have a lovely environment to eat, sleep and play in - it looked so much fun! Our dog came home tired and happy and settled back in without any problems at all. Mel's updates were really considerate and much appreciated. I cannot thank the team enough and will definitely be using Boggsdogs again soon.
- Adaoma Wosu
Boggs Dogs has been amazing for our Springer, Lola. When she was a puppy she was nervous around other dogs but the team at Boggs are great. They were supportive and consistent with her and in less than a month of being there her behaviour around other dogs transformed. She loves Boggs and all the exercise she gets there. I love all the space and the family feel. A real find.
- Alexandra Borthwick
Couldn't recommend this place enough, great workers very friendly and my dog always comes back knackered. They even brush him so he looks so good when he gets dropped off
- Danni Anderson
We were delighted to find Mel and Boggs Dogs. The space available for walks and play is huge so Orla, our young Vizsla was very well exercised. It is the perfect place for an energetic dog. We've enjoyed the photo and video updates. I can't recommend Mel highly enough.
- Graham McCormack
Both my Newfie's love it at Boggs Dogs, they're so well cared for and come home worn out after a lovely day of walking and playing. The communication is great and any questions I have are quickly answered. It's an amazing place and I'd recommend to anyone.
- Lisa Macdonald
Our wirehaired Hungarian vizsla goes on his holidays to Boggs Dogs and I know that he has an awesome time and is in amazingly good hands. I can't decide if he's just exhausted when we pick him up from all the playing or if he's actually a bit sad to be back at home, he loves it that much! Couldn't recommend Mel and her team more highly.
- Lorna Dale
Our dog Spot has been coming here since Boggs Dogs was born and he absolutely loves it! Mel and the team are great - and their facilities are getting swankier year on year.
- Peter Jinks
Amos our whippet is quite sensitive but has settled in so well with Boggs. He really enjoys his days there and the ladies are all fantastic. We know he's in good hands when we can't be with him. We loved that there was a mix of walks, playing outside and some room indoors when needed. Amos loves his cuddles and gets plenty! Only thing I would love even more would be some more pictures and videos
- Magali Anne
Winnie attends Boggs Dogs 5 days a week while we work and she absolutely loves it! The safe space they have to run and play is fantastic. Mel & all the staff are lovely and clearly genuinely love dogs. I have often said to friends that if I was to return in another life - I would want to be a Boggs Dog! Thank you for caring for Winnie so well.
- Ruth Chandler
Very warm and welcoming environment for all breeds of pooch. I visited today with all the snow and it was just beautiful. Acres of space with woodlands make this a doggy paradise.
Alistair (Pencaitland)
- Shelia Mackay
32 Boggs Holdings, Pencaitland, Tranent EH34 5BA
mel@boggsdogs.co.uk
Copyright © 2018–2021 Boggs Dogs Privacy Policy · Terms & Conditions · Cookies Policy


text:
Q: Set variable if null in trigger I have a table for categories with "order" column for ordering the categories.
I'm trying to set order incrementally in trigger before insert:
CREATE TRIGGER `categories_set_order` BEFORE INSERT ON `categories` FOR EACH ROW BEGIN
    DECLARE max_order INT DEFAULT 0;
    SELECT MAX(categories.order) INTO max_order FROM categories;
    SET NEW.order = max_order + 1;
END;

But if there are no records in the db, order column is being set to NULL.
I've modified the trigger code:
CREATE TRIGGER `categories_set_order` BEFORE INSERT ON `categories` FOR EACH ROW BEGIN
    DECLARE max_order INT DEFAULT 0;
    SELECT MAX(categories.order) INTO max_order FROM categories;
    IF (ISNULL(@max_order)) THEN BEGIN
        SET max_order = 0;
    END;

    SET NEW.order = max_order + 1;
END;

And I'm getting the following error:
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9

Line 9 is:
IF (ISNULL(@max_order)) THEN BEGIN
I've tried to remove the "@", but still getting the same error. How to fix it?

A: You need to change the delimiter. Otherwise the DB thinks your trigger definition ends at the first ; which would be incomplete.
Also remove the BEGIN from your IF statement and add use END IF to end your IF

delimiter |
CREATE TRIGGER `categories_set_order` BEFORE INSERT ON `categories`
FOR EACH ROW BEGIN
    DECLARE max_order INT DEFAULT 0;
    SELECT MAX(categories.order) INTO max_order FROM categories;
    IF (ISNULL(@max_order)) THEN
        SET max_order = 0;
    END IF;

    SET NEW.order = max_order + 1;
END
|
delimiter ;

A: Besides delimiter you need an END IF
DELIMITER //
CREATE TRIGGER `categories_set_order` BEFORE INSERT ON `categories` FOR EACH ROW BEGIN
    DECLARE max_order INT DEFAULT 0;
    SELECT MAX(categories.order) INTO max_order FROM categories;
    IF (ISNULL(@max_order)) THEN
        SET max_order = 0;
    END IF;
    SET NEW.order = max_order + 1;
END; //
DELIMITER ;

redpajama_set_name: RedPajamaStackExchange


You must accept all the terms of this policy when you order any of our goods or order, register for, or use the website, application or any of our services. If you do not agree with anything in this policy, then you may not order any of our goods or order, register for, or use the website, application or any of our services. You may not order any of our goods or order, register for, or use the website,application or any of our services if you do not accept this policy.
Your obligationsYou may only send us your own personal information or the information of another data subject where you have their permission to do so.


PODCAST: The story of Resomation – the vision of a man committed to finding an eco-friendly way of dealing with the dead.
What exactly is water cremation? In this episode, Sandy Sullivan (pictured), Scottish founder of Resomation explains this innovative process and shares the behind-the-scenes story of his award-winning company.
He discusses resomation's green credentials based on its minimal impacts on the environment as compared to burial and flame cremation methods.


text:
IBM Charts Post-Silicon Future with Carbon Nanotube
Saturday, October 03, 2015 IBM, Silicon, Silicon Photonics
IBM researchers have demonstrated announced a new transistor contact approach that could accelerate the use carbon nanotubes as a replacement for silicon.
Previously, IBM shown that carbon nanotube transistors can operate as excellent switches at channel dimensions of less than ten nanometers – less than half the size of today's leading silicon technology. IBM's new contact approach overcomes the other major hurdle in incorporating carbon nanotubes into semiconductor devices, which could result in smaller chips with greater performance and lower power consumption.
The breakthrough required the invention of a metallurgical process akin to microscopic welding that chemically binds the metal atoms to the carbon atoms at the ends of nanotubes. IBM said this "end-bonded contact scheme" allows the contacts to be shrunken down to below 10 nanometers without deteriorating performance of the carbon nanotube devices.
"These chip innovations are necessary to meet the emerging demands of cloud computing, Internet of Things and Big Data systems," said Dario Gil, vice president of Science & Technology at IBM Research. "As silicon technology nears its physical limits, new materials, devices and circuit architectures must be ready to deliver the advanced technologies that will be required by the Cognitive Computing era. This breakthrough shows that computer chips made of carbon nanotubes will be able to power systems of the future sooner than the industry expected."
http://www-03.ibm.com/press/us/en/pressrelease/47767.wss
IBM Achieves 7nm Test Chips in Siilcon Germanium
Thursday, July 09, 2015 IBM, Silicon 2 comments
IBM Research has produced the first 7nm (nanometer) node test chips with functioning transistors. The milestone was achieved using Silicon Germanium (SiGe) channel transistors and Extreme Ultraviolet (EUV) lithography integration at multiple levels. Current generation microprocessors are generally implemented in silicon using 22nm or 14nm technology. IBM partnered with GLOBALFOUNDRIES and Samsung at SUNY Polytechnic Institute's Colleges of...
IBM's Silicon Nanophotonics Integrates 25G Tranceivers in 90nm CMOS
Monday, December 10, 2012 IBM, Optical, Silicon No comments
IBM has integrated multiple optical components alongside electrical circuits using 90nm semiconductor process technology.
Essentially, IBM has successfully added a variety of silicon nanophotonics components, such as wavelength division multiplexers (WDM), modulators, and detectors, alongside CMOS electrical circuitry using a conventional semiconductor foundry.
IBM's CMOS nanophotonics used transceivers exceeding 25 Gbps per channel. IBM said its integration is capable of feeding a number of parallel optical data streams into a single fiber by utilizing compact on-chip wavelength-division multiplexing devices. The ability to multiplex large data streams at high data rates will allow future scaling of optical communications capable of delivering terabytes of data between distant parts of computer systems.
In October 2012, IBM announced a breakthrough in building a semiconductor using carbon nanotubes instead of silicon. IBM researchers created a device consisting of more than ten thousand working transistors made of nano-sized tubes of carbon. Standard semiconductor processes were used to fabricate the device. IBM has previously demonstrated that carbon nanotube transistors can operate as excellent switches at molecular dimensions of less than ten nanometers – less than half the size of the leading silicon technology.

redpajama_set_name: RedPajamaCommonCrawl


text:
Football - American
American Football History
How many regular season games did the Pittsburgh Steelers lose in 2010?
In 2010, the Steelers finished the regular season with a 12-4 record.
Q: How many regular season games did the Pittsburgh Steelers lose in 2010?
How many games did the Pittsburgh Steelers win in 2008?
The Pittsburgh Steelers ended the 2008 regular season at 12-4.
How many games did the Pittsburgh Steelers play in their history?
Through the 2010 season, the Steelers have played 1,060 regular season games and 53 postseason games.
How many times did the Pittsburgh Steelers lose in 2010?
During the 2010 season, the Steelers lost four regular season games.
How many games did the Pittsburgh Steelers win in the 2006 regular season?
The Steelers went 8-8 in 2006.
In 2010, the Steelers had a regular season record of 12-4.
How many games did the Pittsburgh Steelers win in the 2008 season?
12 in the regular season. 3 in the playoffs.
How many games have the Pittsburgh Steelers won since 1990?
From 1990 through the 2010 season, the Steelers won 208 regular season games and 17 postseason games.
How many games did the Pittsburgh Steelers win from 1970 to 1979?
From 1970 through the 1979 season, the Steelers won a total of 99 regular season games and 14 postseason games.
How many losses have the Pittsburgh Steelers had in the last 10 years?
From 2002-2011, the Steelers have lost 54 regular season games.
How many games did the Pittsburgh Steelers win since 2000?
From 2000 through 2011, the Steelers have won 127 regular season games and 12 postseason games.
How many homes games have the Pittsburgh Steelers had at Heinz Field?
Through the 2009 season, the Steelers have played 72games at Heinz Field during the regular season and 8 games in the postseason.


On Friday I took a solo road trip to El Paso to visit some friends from my mission. The plan was to spend the night in El Paso at Irene's house and then spend all day Saturday with my friend Lucero in Juárez just across the border. Lucero ended up canceling on me so I just stayed in El Paso on Saturday and didn't even get to use my passport.
Lesly is Irene's daughter and she was seven when I knew her on my mission. She's 17 now and is way into looking elegant all the time. She had no problem telling me how shabby I looked. It had been a year and a half since I last saw her and when she opened the door the first thing she said when I walked in the house was, "Whoa, you have so many grey hairs, Schilaty!" I told her I'd dye my hair when someone told me to. She said, "I'm telling you right now that you need to dye your hair. You look like you're 40!" Irene walked in a few minutes later and gave me hug. The first thing she said was, "Look, you have so many grey hairs. How old are you now?" I told her that I'm 30 and she said, "No, you look older." She then told me that I look thinner than I looked the last time she saw me. I asked, "Did I look fat then?" She responded, "Not necessarily, you just look healthier now." They also told me that my eyes super-huge and that my nose is large, but it suits my face. Mexican honesty is my favorite.
I took the two of them out to dinner and they asked me if I needed time to get ready, but I said I was just going to go dressed how I was. Lesly, on the other hand had taken two and half hours to get ready. So I, a tall white guy in jeans and button down shirt, walked into the restaurant with two 5'0 Mexican women dressed like they were on their way to the Oscars. We must have looked a little silly. Luckily the power went out at dinner and we sat in the dark for 20 minutes so our lack of coordination was less noticeable.
should paint her nails and do her hair for senior prom that night. She was very concerned that her hair wouldn't look good--very concerned. She showed me tons of pictures on her phone of what she could do with her hair and I just told her what I thought she wanted to hear which seemed to calm her. She said, "Schilaty, you're such a nerd, but you're cool anyway. I don't like nerds, but I like you. You should visit more often." Lesly gives the best compliments and I really do want to visit them more often because I had blast.
Even though I didn't end up going to Mexico, I got to spend the weekend speaking Spanish and now I feel much more prepared to be going to Peru this Saturday.


diy bed foundation slats diy king bed foundation.
diy bed foundation plywood under mattress mattress plywood bed base diy best adjustable bed foundation.
diy bed foundation large size of mattressfoam mattress foundation adorable picture inspirations only diy for memory foam best queen bed foundation.
diy bed foundation endearing diy box spring with rebuilding a bed foundation 12 steps with pictures best queen bed foundation.
diy bed foundation platform bed box spring for best of best 25 box spring cover ideas only on pinterest homemade bed foundation.
diy bed foundation rebuilding a bed foundation homemade bed foundation.
diy bed foundation first take the palettes apart carefully choose the best pieces of wood from the palette and use them to construct the foundation of your hanging planters diy low profile bed foundation.
diy bed foundation best 25 diy bed frame ideas on pinterest bed ideas pallet bed frame for mattress only best adjustable bed foundation and mattress.
diy bed foundation box spring for memory foam mattress phenomenal best price 8 inch in a home interior 29 cheap king bed foundation.
diy bed foundation bed frames low profile twin bed foundation low profile king bed low profile bed frame queen best adjustable bed foundation and mattress.
diy bed foundation the mattress underground king sized deck diy bed frame with foundation for 100 12 diy queen bed foundation.
diy bed foundation murphy bed mattress for diy wall 150 diy beds and decor 2 cheap king bed foundation.
diy bed foundation we covered the bottom with the existing cheesecloth to protect our bed base and covered the top with a very old clean blanket to protect the latex homemade bed foundation.
diy bed foundation bed diy queen bed foundation.
diy bed foundation diy best adjustable bed foundation.
diy bed foundation bed frame diy bed frames wooden slats support mattress foundation platform diy adjustable bed foundation.
diy bed foundation the mattress underground king sized deck diy bed frame with foundation for 100 diy queen bed foundation.
diy bed foundation boxspring for platform bed mattress vs platform bed insert diy box spring platform bed diy bed foundation.
diy bed foundation low profile mattress foundation incredible zinus modern studio 6 inch platforma bed frame home interior 27 cheap bed foundation.
diy bed foundation plywood under mattress alternative foundation choice plywood bed base diy cheap king bed foundation.
diy bed foundation decorating stunning wood mattress frame 24 diy bed free plans apieceofrainbow 5 non toxic wood mattress diy bed foundation.
diy bed foundation the mattress underground king sized deck diy bed frame with foundation for 100 diy low profile bed foundation.
diy bed foundation bed diy low profile bed foundation.
diy bed foundation diy diy king bed foundation.
diy bed foundation bed slats full platform bed frames full size wood slats folding bed foundation mattress frame box spring replacements bed slats full diy diy adjustable bed foundation.
diy bed foundation diy homemade bed foundation.
diy bed foundation screen shot 2011 08 09 at 7 05 homemade bed foundation.
diy bed foundation box diy queen bed foundation.
diy bed foundation diy king bed foundation.
diy bed foundation 5 best foundation for memory foam mattresses nov 2017 reviews with regard to foundation bed frame decorating best adjustable bed foundation.
diy bed foundation bed foundation with storage elegant bed frames diy queen bed frame with storage how to make a queen best adjustable bed foundation.


text:
Q: ERROR "Connection.close() has already been called. Invalid operation in this state." when using hadoop to export data to mysql I wrote a MapReduce program to export data to MySQL.I used the DBOutputFormat class and jdbc for MySQL.When the data is small(e.g.2M),everthing was OK.But when my data was larger (e.g.5Mbytes), it errored with the exception "Connection.close() has already been called. Invalid operation in this state."
The "wait_timeout" value in my.cnf is 28800,it is enough.But the same problem I searched in Google was all about the "wait_timeout" in my.cnf.I am fresher to jdbc.I don't konw if the jdbc or hadoop should be configured and how.Or can I reconnect the mysql connection if closed and how.Please give me some code.
Any help will be greatly appreciated.


text:
//===----------------------------------------------------------------------===//
//
//                         Peloton
//
// file_util.h
//
// Identification: /src/include/common/file_util.h
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===----------------------------------------------------------------------===//

#pragma once

#include <string.h>
#include <sys/stat.h>
#include <boost/filesystem.hpp>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>

namespace peloton {

/**
 * File Utility Functions
 * These are some handy functions in case we ever need to do some basic file
 * stuff.
 * Notice that these don't check for errors or handle exceptions, so you should
 * not be using these to handle important data that we absolutely cannot lose.
 */
class FileUtil {
 public:
  /**
   * Get the contents of the file at the given path and return it as a string
   * This is not the most efficient implementation.
   * http://stackoverflow.com/a/2912614
   */
  static std::string GetFile(const std::string path) {
    std::string content;
    std::ifstream ifs(path);
    content.assign((std::istreambuf_iterator<char>(ifs)),
                   (std::istreambuf_iterator<char>()));
    return (content);
  }

  /**
   * Write the contents of the provided string to a new temp file and return
   * the path to that file.
   * @param the string to write to the file
   * @param an optional prefix to use for the temp filename
   * @param an optional suffix/extension to use for the temp filename
   */
  static std::string WriteTempFile(const std::string contents,
                                   const std::string prefix = "",
                                   const std::string ext = "") {
    std::ostringstream path;
    path << prefix << "%%%%%%%%%";
    if (ext.empty() == false) path << "." << ext;

    boost::filesystem::path tempFile =
        boost::filesystem::temp_directory_path() /
        boost::filesystem::unique_path(path.str());

    std::ofstream out(tempFile.string());
    // out.open(tempFile);
    if (out) out << contents;

    return (tempFile.string());
  }

  /**
   * Returns true if the file at the provided path exists.
   * http://stackoverflow.com/a/12774387
   */
  static bool Exists(const std::string path) {
    struct stat buffer;
    return (stat(path.c_str(), &buffer) == 0);
  }
};

}  // namespace peloton

redpajama_set_name: RedPajamaGithub


text:
Q: using jquery in a REGULAR javascript ...script? I am not really sure how to word the question, but I basically have an old javascript that checks file extensions of a user upload BEFORE it is sent to the server for processing. (Just for the admin section of a website.)
Well, I want a div to slideDown() whenever a javascript condition returns true inside a loop (meaning, the file is good to upload).
Code so far:
  var thisext = fieldvalue.substr(fieldvalue.lastIndexOf('.'));
for(var i = 0; i < extension.length; i++) {
    if(thisext == extension[i]) { return true;

            $("#pleasewait").slideDown();

         }
    }
alert("Please upload ONLY .mp3 files. No other files will work.");
return false;
}

A: You should put return true; after $("#pleasewait").slideDown();

A: The code has a textbook case of a logical error. The slidedown should occur before the return statement because the function will exit immediately after that line.
Try this within your function:
var thisext = fieldvalue.substr(fieldvalue.lastIndexOf('.'));
for(var i = 0; i < extension.length; i++) {
    if(thisext == extension[i]) {
        $("#pleasewait").slideDown();

        return true;
     }
}

alert("Please upload ONLY .mp3 files. No other files will work.");
return false;


text:
'Ballers' Star London Brown Talks 'Tales from the Hood 3' and His Dream Role
Jamal Michel
The newest chapter of the groundbreaking cult classic film Tales from the Hood, SYFY's Tales from the Hood 3, premiering on October 17, marks the third anthology that continues the tradition from the original film in 1995. As the newest chapter of the cult classic, the franchise will include four brand-new tales exploring cultural relevant topics related to today's world.
The film stars horror legend Tony Todd, Lynn Whitfield, London Brown, and Cooper Huckabee and reunites the original film's writers/directors/producers Rusty Cundieff and Darin Scott and executive producer Spike Lee.
Born and raised in Los Angeles, London is a trained actor, dancer and comedian. He stars on the HBO series Ballers opposite Dwayne "The Rock" Johnson. Previously he was the lead in The Hustle for The Fuse Network which was created and produced by Prentice Penny. London also won Best International Comedian at the 2013 Black Comedy Awards in the UK and has opened on the road for Chris Tucker and many other headliners.
I had the chance to sit down with London and talk Tales from the Hood 3 and more! You can check out the interview in its entirety below:
Baron Vaughn Talks 'Wild Life,' 2020, and 'Tales from the Hood'
In "Animation"
Natalie Malaika and Keenan Tracey of SYFY's 'Day of the Dead'
In "Horror"
Evil Dies Tonight: 'Halloween Kills' Shares New 'Look Inside'
Categories: Horror, Interview, Movies, Television
Tags: Ballers, HBO, horror, horror films, Interview, London Brown, Movies, SYFY, Tales from the Hood, YouTube


Specialising in business and personal development, we publish printed books and ebooks for many of the UK's leading experts in their field. Our books are stocked by Amazon, Waterstones, Books Etc. and other retailers, as well as the major wholesalers. And eBook editions are distributed via Kindle, Kobo, Nook and the iBookstore.
Author: Roger J. Callahan, PhD.


Their first-born, Brooklyn, was named after the district of New York where he was conceived.
For their second, David and Victoria Beckham would appear to have swopped their atlas for The Complete Works of Shakespeare.
Taking his bow on the world stage at 9.40am yesterday, Romeo Beckham tipped the scales at 7lb 4oz following a routine caesarean section at the private Portland Hospital in London.
The England soccer captain had been on hand throughout the operation, with three-year-old Brooklyn introduced to his new brother the minute he was delivered.
Less than a hour later 28-year-old Victoria was sitting up in bed surrounded by her family, while her delighted husband shared the happy news with an army of photographers, football fans and wellwishers gathered outside.
He added: 'Brooklyn came in as Romeo came out. Brooklyn is just in awe of him, he thinks he's gorgeous. He looked just like Brooklyn - he's got Brooklyn's nose and Victoria's chin.
Both sets of grandparents, Jackie and Tony Adams and Ted and Sandra Beckham, were at the hospital to meet the new arrival, as was Victoria's sister, Louise, with daughter Liberty.
They left the hospital, in central London, four hours after the birth. Mr Adams gave a cheery wave and said: 'She's fine, the baby's lovely,' before driving away in a silver Mercedes.
Throughout the afternoon, scores of football fans arrived at the hospital hoping to catch a glimpse of their hero. But Beckham refused to make a second appearance, instead instructing the security guards to hand out signed photographs at the door.
Prior to yesterday's delivery there had been rumours that the couple were expecting a daughter, to be named Paris, but Ted Beckham let slip that his son had been delighted to have a second boy.
David and Victoria were driven to the hospital at 7.30am yesterday, with David having arrived back from a match in Sunderland late on Saturday night.
Brooklyn was born at the same hospital in 1999. The Portland has become famous for delivering the babies of high-profile figures such as the Duchess of York, Elizabeth Hurley, Zoe Ball, Jerry Hall and Caroline Quentin.
A spokesman for the Beckhams explained that Victoria had given birth by caesarean section on medical advice. Brooklyn's had also been a caesarean birth, because he was in a breech position.
After Brooklyn's birth, Victoria said she had been warned that she faced an emergency caesarean if she went into labour before his head was properly engaged.
Victoria is expected to stay in hospital for three or four days. Her husband and elder son will spend the days by her side but return to their Hertfordshire home each night.
The former Spice Girl has just signed a £1.5million solo record deal with Telstar and will be attempting to kick start her pop career as soon as she has recovered from the birth.
While the Portland generally has an excellent reputation for its medical care and a standard of service and food to rival any five-star hotel, it has witnessed two recent tragedies.
Last year Tracey Sampson died of heart failure shortly after giving birth to her son George.
And in 1999 31-year-old lawyer Laura Touche suffered a fatal brain haemorrhage soon after giving birth to twins.


Founded more than century ago by John Jacob Astor IV with the opening of The St. Regis New York, with over 40 luxury hotels and resorts in the best addresses around the world, the highly anticipated opening 'St Regis Hong Kong' is ready to welcome its guests.
Located in a buzzing area for both commercial and cultural aspects 'Wan Chai', the hotel is just steps from the Hong Kong Convention and Exhibition Center and Golden Bauhinia Square, and minutes by car to Admiralty, Lan Kwai Fong in Central, and Victoria Peak.
The 27-story St. Regis Hong Kong offers 129 exquisitely appointed guest rooms and suites designed by André Fu.
Apart from the brand's signature Butler Service, the hotel will also introduce eButler chat – where guests can contact their dedicated Butler through the Marriott Mobile App, available 24 hours a day, or by scanning an electronic Butler contact card that connects the guest to reach the Butler via a dedicated line, email, and apps like WhatsApp and WeChat.
The St. Regis Hong Kong is offering a dining experience from an award - wining chef Olivier Elzer, who is highly regarded as one of the top French chefs in Hong Kong, acclaimed with a combined 18 Michelin stars to his experience.
Featuring five meeting venues span nearly 12,000 sq. ft, the hotel offers conference facilities, reception venues, and thoughtfully arranged pre-function spaces to suit all requirements.


If "deep knowledge" and "beginner's mind" seem contradictory ideals, L&T Infotech acknowledges it.
The timing is critical when you are trying to extend a tractor loan to a farmer — the approval should be in by the time the test drive is done. This was one of the challenges his teams tackled after he took over as CEO of Larsen & Toubro Infotech (LTI) Ltd in 2015, recalls Sanjay Jalona, managing director.
New Jersey-based Jalona has been a software services man his entire career, having previously worked at Wipro and Infosys. But at L&T, the diverse portfolio of group companies provided an additional layer of opportunity. Like the tractor loan solution the company developed for L&T Finance, there were problems to be solved across business units in engineering, construction, defence and other high-tech core sectors.
In Jalona's telling, this helped L&T Infotech position itself as a company that solved business and technology problems for clients across the world, not just an exporter of cheaper code.
The company is engaged with questions such as how to engage a customer while she's riding an elevator or how to make chat bots more effective. Or how to manage a customer base for a digital, mobile-only bank (Monzo Bank) that is adding a lakh customers every month.
"Few firms in the IT sector have a parent company with such rich expertise and experience in engineering. This unmatched track record enabled LTI to build the distinctive 'Businessto-IT connect' proposition which has been its platform for growth," L&T chairman AM Naik told ET Magazine in an emailed response to questions.
LTI is now the largest mid-cap IT company in India with a revenue exceeding $1 billion (Rs 7,306 crore for 2017-18). It has a market capitalisation of Rs 29,900 crore, and is now the seventh largest on the market cap league table of all listed IT companies in India. It's already ahead of peers of similar size, such as Mphasis, Mindtree and Hexaware.
However, when compared to TechMahindra, another IT company incubated within a conglomerate, LTI is at less than half in terms of market cap and only a fourth in terms of revenues. The key challenge before LTI is to scale up.
There is a bit of history between TechMahindra and L&T. Back in 2009, both these companies were in a race to buy out the beleaguered software services company Satyam. TechMahindra won the day in 2009 and later merged itself into Mahindra Satyam, achieving scale similar to the biggies of Indian IT. It is fifth among listed Indian IT companies behind TCS, Infosys, Wipro and HCL. While LTI missed the Satyam chance then, there is no dearth of ambition about the company right now at parent L&T.
Chairman Naik adds that the road map for LTI is to join a "differentiated league" of IT players who help global new-age businesses (See Interview). LTI also leads another pack — that of the IT companies set up by larger conglomerates that are yet to attain scale. Think about Zensar from the RPG Group, Birlasoft of the CK-Birla Group and ITC Ltd subsidiary ITC Infotech. There is also sister concern L&T Technology Services.
Ganesh Natarajan, chairman of the Nasscom Foundation, who had headed Zensar for more than 15 years, feels that all these companies are in safe grounds. "The moment a company crosses the $200 million revenues threshold and is present as a player in more than one geography, it can aim at scaling up." Natarajan also adds that in terms of strategy, the IT arms of larger conglomerates should not be asking the parent for funding, and must instead try to fuel their own growth.
"Grow, buy, sell", says Natarajan, should be the strategy — organic growth, followed by acquisitions and sale of equity stake to outside investors. While Naik said L&T has no intention of exiting its IT business, ITC Infotech is still a wholly owned subsidiary of the company, and a bit of a CEO factory. ITC CEO Sanjiv Puri had headed ITC Infotech in the past.
WNS CEO Keshav Murugesh, currently vice chairman at Nasscom, also had a long stint in the leadership team of ITC Infotech. But the quest for scale in this cohort can be seen with a transaction that Birlasoft announced last year. It announced a merger with Pune-headquartered KPIT, to be followed by a demerger, bringing together the software services businesses of the two companies in one new entity to be called Birlasoft, while the engineering business goes to another new company to be called KPIT. This transaction, announced in January 2018 and approved by the courts in December 2018, is yet to be completed, but envisaged growing Birlasoft's annual revenue from $375 million to $500 million.
Jalona says that with a margin of around 15%, LTI is in a good position to fund its own growth for the near future. LTI got a thumbsup from the markets, too. Firstly, a stake sale by parent L&T to meet the Sebi listing guidelines, sailed through in September 2018, with the initial offer for 59 lakh shares seeing a 5.61 times over-subscription in the non-retail segment and a 3.56 times over subscription in the retail segment. The LTI scrip, too, moved up in December. It has moved up by 10% between December 4, 2018 and January 3, 2019, closing at Rs 1,735 last week.
In the second week of December, the scrip reacted with a huge spike after the news of LTI onboarding Cognizant veteran Nachiket Deshpande as chief operating officer broke. In a report on mid-cap IT stocks, earlier in January, Elara Capital predicted that revenues for the company should grow at 16.3% compounded annual growth rate between 2018 and 2021. Elara analyst Ravi Menon said that LTI has an advantage of being able to tap into the L&T supply chain.
"L&T has many partners in many countries. There are so many contracts. This is not so with the other IT companies started by conglomerates." Menon, however, does not see LTI stepping on to the big league in a hurry. He foresees a time horizon of at least five years for that to happen. Of course, revenue growth can come through acquisitions, too, and the company has made some already. In November 2017, it signed a deal to acquire Luxembourg-based Syncordis SA for $17.28 million. A year before that, LTI had acquired Pune-based big data analytics company AugmentIQ Data Sciences.
While L&T allowed Jalona to explore diversity, he introduced a Zen Buddhism principle to LTI to change the way it goes about its business. Jalona told ET Magazine in an interview that in addition to the problem-solving approach and developing deep insight about customers businesses and business verticals and niches, he has also tried to re-orient the company into a learning organisation with the principle of Shoshin—"a beginner's mind".
If "deep knowledge" and "beginner's mind" seem contradictory ideals, Jalona acknowledges it, and says that expertise alone is no guarantee for success in an environment where technologies become obsolete so fast. In order to bring in talent that are able to learn fast and on their feet, Jalona has ensured a significant part of the company's hiring happens through hackathons. "We look for people who are thinking on their feet and are solving problems," Jalona explains.
How has Shoshin been applied to business? Take for instance the work LTI did for an oil-andgas company that was looking for digitalisation of its decades-old data on oil wells, so it could re-assess its assets. LTI enabled geo-referencing and depth referencing to the project and provided user-friendly data sets for the scientists, providing much more than they had asked for. Or take the work done for an African bank, which wanted to speed up the bank accounting opening process. LTI offered a solution that re-thought the bank account opening process using robotics. Marrying deep expertise with the freshness and agility of a beginner's mind seems to be Jalona's prescription for his company.
What could be the risks for the business model that Jalona is creating for LTI? Citi Research said in a report in December, written after an analyst meet by the company, that it sees four possible downsides, including a sudden strengthening of the rupee, US slowdown or a significant tax and immigration reform. Almost 65% of the business of LTI is from USA with another 20% coming from Europe. But Jalona remains confident that USA will be conscious of its own leadership position in technology and will not do anything to affect that.
"Costs might go up, but that is ok," Jalona adds. But with Zen Buddhist teachings, Jalona should be prepared to meet such changes in business conditions. What remains to be seen now is if Jalona can meet the tough goals that Naik and L&T are setting for LTI. For a company that was originally set up to check attrition of talent from L&T (many executives wanted to leave for the growing IT sector), the goals today are vastly different. The parent wants the company to become a leader in technology and also to deliver valuations.
L&T chairman AM Naik was key in setting up Larsen & Toubro Infotech back in 1997. In an emailed response to questions, Naik spoke about goals for LTI.
Tell us about how LTI was set up and its goals today?
One of the main objectives for setting up LTI was to retain top talent within the group, and reduce attrition to the IT sector which appeared to be more attractive. Since then, the company has moved rapidly up the value chain, acquiring new skill sets and upgrading processes and platforms. We are now engaged in Next Gen IT, with our sights firmly on Future Gen IT. Early in our journey we recognized that our Infotech initiative was uniquely positioned. Brand L&T has undoubtedly proved to be a key asset all along the journey. It has opened doors, providing access to new markets, secured credibility among first-time customers and functioned as a clear differentiator in markets where services were vulnerable to commoditisation.
You also have another subsidiary — L&T Technology Services. Will the two merge at any stage?
LTI and L&T Technology Services cater to differentiated market segments, possess distinct capabilities, and we have charted different growth paths for each. L&T Technology Services was listed as an independent company to leverage inherent engineering prowess. Since then, LTTS has consolidated its position as India's leading pure play Engineering Research & Design services provider, with an expanding client roster.
Will L&T stay invested in LTI for the long term?
We have been able to map emerging trends and enable LTI to join a differentiated league of industry players who are leading global new-age businesses towards more positive business outcomes. As global companies look for specialised, cutting-edge solutions to achieve their business goals, the opportunity horizon looks promising. Therefore, L&T would like to continue its focus on accelerating the growth of all its service businesses, such as LTI, LTTS & L&T Financial Services.


The Hawks completed the first of several busy weeks yesterday with a 1-0 win at Eastbourne, extending their unbeaten run in the league to eight games. The victory was made more impressive by the fact that the side had already beaten Borehamwood away on Thurday night 2-0, and secured a place in the final of the Hamsphire Senior Cup on Monday night by beating AFC Porchester 4-0.
The Cup win, which pits the Hawks against Basingstoke Town at Fratton Park in May, saw Christian Nanetti open the scoring early on with a penalty before Denis Oli doubled the lead in the dying seconds of the fist half. Alex Prezpolewski then scored twice in the second half to give the Hawks their first Senior Cup Final appearance since losing to Aldershot Town in 2002.
Then on Thursday the Hawks began a run of no less than four away games to be played in the space of eight days with a goal at the end of each half at Borehamwood. Perry Ryan struck first just before the break, and then Daniel Blanchett scored the Hawks' second with an audacious lob from the centre circle on the edge of injury time.
Then yesterday at Eastbourne Nigel Atangana's 31st minute strike was the only goal of the game, giving the Hawks a further three points that now sees them 12th in the table and just three further wins behind the playoff places.


Mary Cardwell November 28, 1955 – March 29, 2019 Mary A. Cardwell (Williams) 63, of Winter Garden, Florida suddenly passed away on March 29, 2019. Mary was born November 28,1955 to Othel and Betty J. (Hilliard) Williams in Opp, Alabama.


Louisiana Conference: Davis Sr., William G. C.
Davis Sr., William G. C.
The Rev. Wilbur G. C. Davis, Sr. was born June 13, 1928 to Haywood and Sarah M. Davis in Clinton, Louisiana. He departed this life on June 9, 2000 at Earl K. Long Hospital in Baton Rouge, Louisiana. He was a retired United Methodist minister having served the following appointments: St. Paul, New Roads; Hurst, Plaquemine; St. Luke, Bayou Goula; Wesley Foundation-Southern University, Baton Rouge; Newman, Alexandria; Roberts, Denham Springs; St. Luke, Greenwell Springs and Wesley, Baton Rouge. He graduated from East Feliciana Industrial Training School, Clinton, Louisiana and earned a Bachelor of Science degree in Health and Physical Education from Southern University and A & M College, Baton Rouge, Louisiana.
After his call to the ministry, he attended Perkins School of Theology in Dallas, Texas and Candler School of Theology in Atlanta, Georgia. He served on various committees throughout the United Methodist Church.
Wilbur was a loving husband to Viola and a caring father of Nicki, Cedric, Ron, and Wilbur, Jr. He touched the lives of many people in a positive way. God blessed Wilbur with a rich baritone voice that when hearing him preach brought you in the presence of angels. His deportment was that of a gentleman and his dress was impeccable. His gentle, but firm, stance for inclusivity advanced race relations in a powerful way. His pastoral spirit provided effective leadership for the church and smoothed the way in the face of conflict. His wit and sense of humor made you comfortable in his presence. It was not surprising that he died with the same strong faith and courage that was a hallmark of his life.


text:
SheBloggin
Hip Hop & Our Culture
Music 101 Blogs
Streetwear/Fashion
[NEW MUSIC] ANA BABY – "GOTTA HAVE IT ALL" | @therealanababy
Published on : November 30, 2018 November 28, 2018 Published by : Ms. Carmen
Bronx native, Ana Baby teams up with Chris Brown and B. Taylor on new single' "Gotta Have It All"
With her talent, beauty, and charisma, Ana Baby is undisputedly one of the most promising and highly sought after artists in 2018. Being in a male-dominated industry is a non-factor, and will not impede on Ana Baby's ability to distinguish herself from the rest in an era where female rappers are spreading their word and making a substantial impact on the music industry.
The Bronx native's gritty street edge and sex appeal coupled with her thought-provoking punchlines have led her single "Ride" to stand at #162 on the Global Top 200 Chart for online radio during its 3rd week in rotation. Ana teamed up with platinum producer Trilogy (who is known for the work he has done with artists like Chris Brown and Troy Ave) to produce the catchy and probing tune we know as "Ride".
Ana Baby has performed in front of over 10,000 roaring fans, opening for prominent artists such as Lil Durk, Vado, and French Montana. She's also been featured in GlobalGrind, Vibe, Thisis50, and many more blogs following her first critically acclaimed mixtape, "The Evil Queen," which featured the likes of Hip-Hop heavyweights Jadakiss, and the late Chinx Drugz.
Additionally, she has also worked with Emanny and Fred The Godson on her single "Find Another." Her "TALKIN BOUT" music video has over 6 million views, while "TURNTUP FT. JADAKISS" has over 3 million views on Worldstarhiphop.com. This eventually created tremendous buzz, hence, establishing her heavy social media following on Twitter, Instagram, and YouTube (@therealanababy).
The rising star has been featured on Black Men, Ryhmes&Dymes & HipHop Weekly magazines. She has also been streamed on stations across the nation from New York's #1 radio station Hot 97FM, to satellite Sirius radio.
With a string of releases on the horizon and a firm standing at #58 on the United States Top 150 Indie Artist Charts, Ana Baby is sure to continue climbing the Hip-Hop charts with no signs of putting her foot on the brakes!
Tidal</a
Tagged in : Ana Baby platinum hip hop Platinum Voice PR
Categorized in : Featured
New Music: Carl Thornton – I Depend On Me | @Carl_T_Music
GROMO GRABS HUSH TO CLOSE OUT 2018 IN, "RIP"
About SheBloggin
We are here to provide a platform for up and coming artists, as well as information and updates related to our culture. We also offer PR and digital marketing services.


Overall health spending growth for 2005 hit the lowest level since 1999, largely because of a continuing slowdown in retail prescription drug sales and an increased use of generic drugs, according to a report issued by the Centers for Medicare and Medicaid Services in January.
The CMS report, the official government tally, found that overall, health care spending grew 6.9% in 2005, compared with 7.2% in 2004 and 8.1% in 2003.
"It is unclear whether this is temporary or indicative of a longer-term trend," lead author Aaron Catlin, a CMS economist, said in a statement.
Even with the slowdown, the United States spent slightly more per capita in 2005--$6,697 per person--than in 2004, when expenditures were $6,322 per person. The percentage of personal income devoted to health care is rising as well. Out-of-pocket spending grew from $235 billion in 2004 to $249 billion in 2005, with prescription drugs accounting for 20% of that expense.
Total spending in 2005 hit $2 trillion, according to the CMS (Health Affairs 2007;26:142-53, and Health Affairs 2007;26:249-57).
Medicare was the biggest spender, accounting for $342 billion of the $2 trillion total. The figure does not include the Part D drug benefit, which did not begin until 2006. Medicaid spent $311 billion in 2005, a 7.2% increase from the previous year. But that growth rate was on par with 2004, when spending rose 7.5%.
Cost-containment efforts by the Medicaid program helped hold down the nation's overall drug bill, according to the report. For Medicaid, drug spending grew only 2.8% in 2005. The nation's total drug tab in 2005 was $200 billion, an increase of 5.8% over the previous year, when drug spending rose 8.6%.
Publication information: Article title: Generic Drugs Keep Health Cost Spiral in Check. Contributors: Ault, Alicia - Author. Magazine title: Clinical Psychiatry News. Volume: 35. Issue: 2 Publication date: February 2007. Page number: 57. © International Medical News Group. COPYRIGHT 2007 Gale Group.


In Touch is a brilliant team of volunteers providing hot meals, toiletries and clothes twice a week, 52 weeks a year, for the homeless and needy in Bournemouth. Their guests are not judged but seen as unique, loved individuals with a story to tell. Each year a special effort is made to provide 80 traditional Christmas meals.
Well done Andy, running for a great cause.


text:
Q: How to add individual proportions to a stacked bar graph using ggplot2? I am currently writing a report based on a dataset called "esoph" (IIRC it's available in R, but I've moved it into a CSV), and I was able to create several nice graphics with my limited experience with ggplot2. I wanted to create a proportions stacked bar graph (all bars sum to 1), and I was successful, but I can't find a way to insert the individual proportions into each bar.
Here's a working example (in my actual code it's a little bit different, with labels in Portuguese, but this works just fine):
require(stats)
library(ggplot2)

data <- esoph

g <- ggplot(data, aes(x = ncases, fill = tobgp)) +
     geom_bar(position = 'fill') +
     scale_fill_brewer() +
     xlab("Number of cancer occurences") +
     ylab("Proportions for each group") +
     guides(fill=guide_legend(title="Alcohol ingestion (g/day)"))

g

which generates this plot:

I've read that it's best to calculate the proportions and then feed them to ggplot, but I can't quite figure out how to do it.

A: To calculate proportions, you may add two columns in your espoh data frame. Basically, add a column that has the total value by ncases. If you are using library(data.table) , it will be something like this:
espoh[,.(total=sum(tobgp)),by=ncases]

Then calculate the fraction as :
espoh[,fraction:=tobgp/total]

Use the geom_text feature to add labels on your stacked graph:
+ geom_text(aes( x=ncases, y=tobgp, label=fraction, position=position_stack(vjust=0.5), colour="black")


LinkedIn is a great tool for professional networking. In fact, it's probably the only professional networking tool you need. As of June, 2013, LinkedIn reported 225 million users in over 200 countries with 178 million unique visitors a month. That's a lot of professionals to connect with!
Two weeks ago I wrote about LinkedIn and how it can help you if you are interested in exploring new IT opportunities and perhaps making the next move in your career. This week focuses on what your company should be doing on LinkedIn and how it can help you attract and find the IT talent you need to grow and prosper.
LinkedIn is a two way street, you can search for people who might meet your requirements, and job seekers can search for you. The first use seems pretty obvious and if you, your HR department or your staffing agency are not using LinkedIn to post open positions and locate candidates then you are really missing out and perhaps even dangerously behind the times. LinkedIn's search capabilities can find IT personnel with the skills and experience that you need and the functionality of the site makes it easy to reach out and connect if you like. Adding LinkedIn to your recruiting toolbox just makes sense. It's solely business focus makes it especially relevant and helpful.
Every day brings a new story about the "severe IT personnel shortage" and the "war for IT talent." Those of us on the front lines can attest that, while a little hyperbole is at work in the headlines, the stories are mostly quite true. It is no longer a buyer's market in the IT industry. Finding the right IT consultants is getting more difficult by the day and some niche skills are at nearly 0% unemployment. These shortage stories are matched in frequency by the reports of how many employees are unhappy in their current positions and plan to look for a new job in the coming year, estimates range from 50% to as high as 85%. How can businesses find the IT personnel they need to grow and prosper? What can an employee considering a career change do to instantly start the process and increase the odds of a successful move? One answer to all of these questions is LinkedIn. In this week's post I'll focus on the employee side and next week, I'll cover the hiring side of things.


St. Malachy O'Morgair was born in Armagh in Ireland about 1094. At a remarkably early age he became Bishop of Connor, and then Archbishop of Armagh. In 1139, on his way to Rome, he stopped at the Abbey of Clairvaux where he became so attached to St. Bernard that on reaching his destination he begged the Pope to allow him to end his days in spiritual retreat amongst the holy abbot's disciples. The Pope not merely refused to allow this, but even added to St. Malachy's administrative responsibilities by making him Papal Legate for Ireland. But in a sense the Irish Saint had his wish. He was in continual correspondence with St. Bernard, and with his collaboration he founded, in 1142, the first Cistercian monastery in Ireland. Six years later he set out on a second visit to Rome and stopped again at Clairvaux, where he was taken seriously ill; and it was actually in the arms of St. Bernard himself that he died some three weeks later, having told the monks that his illness would be fatal. St. Bernard preached a most eloquent sermon at the funeral; and so great was his esteem and affection for St. Malachy that he dedicated another sermon to him a year later, on the anniversary of his death, and also wrote a short biography of him for the edification of the faithful.
St. Malachy was canonized by Pope Clement III in 1190, and the celebration of his feast is on November 3rd, the day after his death. His life was remarkably rich in miracles and visions; but neither in St. Bernard's biography nor in other contemporary sources is there any mention of a prophecy about the Popes. This has always been the chief argument of those who have doubted its authenticity. None the less, suffice it to say here that if the prophecy in question is a mere invention, then clearly it was not St. Malachy who invented it. But if it is a genuine prophecy—and this article may help the reader to make up his mind on that score—then it is more reasonable to assume that St. Malachy himself was the author, as tradition tells us, than to suppose that it should be rightfully ascribed to some other person who was endowed with the gifts of the Spirit.
Moreover, if St. Bernard did not single it out for mention, or even if he knew nothing about it, there is an obvious explanation. St. Malachy was a man of so many undoubted miracles, and so many visions which had proved true in his life-time, that by comparison the prophecy of the Popes was not worth mentioning. Its truth had yet to be proved. In itself, at that time, it could not have seemed to be of any particular significance. Who would have been interested to hear that there would be 112 more Popes between then and Doomsday? It would have seemed incredible to almost everyone that the second coming of Christ could be so far off. Not is the text of the prophecy in any way sensational. Only one Pope is actually mentioned by name and, as for the others, each is indicated by no more than a short Latin phrase which often refers to nothing of greater interest than the family coat of arms of the man in question.
Presumably, since the prophecy refers to the future, its vision and formulation took place during the reign of Pope Innocent II who died in 1143. At any rate, the first Pope mentioned in the text is indicated by the words Ex castro Tiberis, "from a castle on the Tiber," and this clearly refers to Pope Innocent's successor, Celestine II, who was born in a castle near the town of Castello on the River Tiber. That the opening of the prophecy refers to this Pope is made doubly clear by the fact that the second reign is summed up in the words Inimicus expulsus, "the enemy driven out," and Celestine II's successor, Lucius II, who reigned for only a few months (1144-1145), had the family name of Caccianemici, which expresses precisely the idea of driving out enemies.
To take another early example, Nicholas Breakspeare, the only Englishman ever to become Pope—he was Pope Adrian IV (1154-1159)—is designated by the words De rure albo which mean literally "from out of the white country" or more precisely "countryside". The "white country" is Albion, so called because it appears "white" to those who come to it by the nearest possible sea route. But the adjective albus has repercussions which go beyond the name of Albion in this context, for although Nicholas Breakspeare was of "rural" origin, he may be considered also as a man of St. Albans which was the nearest town to his native village; and at the time when he was elected Pope he was Cardinal Bishop of Albano in Italy.
The prophecy did not become generally known until the end of the end of the sixteenth century, more than 400 years after St. Malachy's death. It was at Venice, in 1595, that Arnold Wion published his Lignum Vitae (The Tree of Life), a collection of short biographies of eminent members of the Benedictine Order in its many branches, of which the Cistercian Order is one; and in connection with St. Malachy the text of the prophecy was included. It immediately caused a stir, but some had doubts about its authenticity. Such doubts were grounded not only on the absence of any extrinsic or intrinsic evidence that it was the work of St. Malachy, but also on the fact that the antipopes were included in the list as well as the true Popes whose function they had usurped. It must be admitted however, that the inclusion of the antipopes can also be taken as an argument on the other side, since it is scarcely conceivable that a mid-sixteentth century forger would have deliberately "marred" his fabrication by including anyone who was not a true Pope. On the other hand, assuming that this is not a forgery, it is by no means the only true prophecy, to say the least, which contains certain "stumbling blocks". What is puzzling is not so much that the text should include the antipopes as that it should condemn only two of them outright (which it does by applying to them the words Schismaticus and schisma), while speaking of the others in apparently "neutral" terms. Whatever the explanation may be—and it is unlikely to be forthcoming, for presumably we shall never know the form of the vision on which the prophecy was based—those who denied outright its authenticity at the time of its publication, or soon after, appear to have been comparatively few. It was accepted as genuine by many, even in some Protestant circles. Others not unnaturally preferred to reserve their judgment. As far as the past was concerned, the truth of the text was crystal clear; but it is easy to forge a "true prophecy" about the past. If, however, this was not a forgery, the future could be relied on to demonstrate its truth.
Today, now that another 400 years all but ten have gone by, most of that future has become past history, and the prophecy has certainly stood the test of time. As regards the text itself, it is not possible to make a distinction between that part of it which was already past at the date of publication and what was still in the future. Its brief descriptions continue to be so apt that confirmed skeptics have been driven to wonder whether the Cardinals did not sometimes choose a Pope to fit the prophecy, or in other cases whether the Pope himself had not deliberately taken action to make the prophecy "come true". Would Pope Pius VI (1775-1799) have taken the then altogether unprecedented step of paying a visit to the imperial court of Vienna if he had not been styled Peregrinus Apostolicus, "the journeying heir of the Apostles"? But there were, in fact, compelling political reasons for that initiative; nor in any case would a single state visit to a neighboring country be adequate to the word peregrinus which suggests more in the way of travel. That "more" was to come: the prophecy not seldom refers to unforeseeable things over which neither Pope nor Cardinals could have the slightest control, and the papacy of Pius VI is a case in point for the word peregrinus would seem to refer above all to the tragic end of his life, which he certainly had not planned. In 1798 he was taken prisoner by the French Republican army and forced to travel from Rome to Siena, then to Florence, then Turin, from there across the Alps to Briançon, then to Embrun, Gap, Grenoble, and finally Valence where only death put an end to his "peregrinations", for the Directoire had already decided to transfer him to Dijon. But if all this was tragic from an individual point of view it was also, to the exasperation of his atheist captors, something of a triumphal procession—such were the marks of devotion shown to the Pope by the people of Italy and France wherever he went.
Another feature of the prophecy which rules out any planning ahead is that the text does not always refer directly to the Pope himself, so that even after the election it may continue to be a riddle, which is however always solved before the death of the pontiff in question. Pius VI was succeeded by Pius VII (1800-1823) whose reign is indicated by the words Aquila rapax, "the rapacious eagle". These words could not possible be made to fit the newly elected Pope; but after nine years it suddenly became clear that the aquila was Napoleon, who is often described as eagle-like in appearance and who proved himself "rapacious" by snatching the Pope from Rome and keeping him captive at Savona from 1809 and then at Fontainbleau from 1812 until his own fortunes began to decline and Pius was eventually able to return to Rome where he showed himself extremely magnanimous both to the exiled and dying emperor and to the Bonaparte family in general.
Another striking designation is De Balneis Etruriae, "from the baths of Etruria," which refers to Pope Gregory XVI (1831-1846) who was of the Order of the Camaldoli, which originated at Balneo (from the Latin balneum which means bath) in Tuscany, as Etruria is now called. Passing on from him, the papacy of Pius IX (1846-78) is referred to in the words Crux de cruce, "cross from cross," generally taken to mean that the troubles of this Pope, the cross he had to bear, came to him from the House of Savoy, whose coat of arms has a cross as its most dominant feature. These troubles culminated in the capture of Rome by King Victor Emmanuel in 1870 and the Pope's loss of what little temporal power he had left.
The next Pope, Leo XIII (1878-1903), is Lumen in caelo, "a light in heaven"; and whatever more profound meaning this may have also, it is sufficiently explained by the arms of the Pecci family in which there is a comet on an azure ground. Much the same may be said of his successor, Pius X (1903-1914) whose reign is indicated by the device Ignis ardens, "a blazing fire", which finds an immediate explanation in the six-rayed star that figures in his family arms. During his reign those who knew the prophecy were in some trepidation with regard to the words Religio depopulata, "the depopulated religion," which denoted the reign of the Pope who was to follow. It was predicted that during the reign of this Pope atheism would take thousands of men and women away from religion. This in fact happened; and although the spread of atheism had started before and has been continuing ever since, it was actually in this reign that the first communist state was established. That key to the prophecy was not available until three years after the election. But it was not necessary to wait until then to see the aptitude of St. Malachy's words. By the time that the Pope in question, Benedict XV, came to the throne, in the autumn of 1914, another tragic cause of "depopulation"—but in a totally different sense—had become only too clear.
The next device, Fides intrepida, "intrepid faith," is less striking but it is none the less particularly apt with regard to Achille Ratti, Pope Pius XI. As to the next, St. Malachy here leans as it were across a span of 800 years to pay tribute to one of the most saintly of the Popes, for Pius XII (1939-1958) is Pastor angelicus, "the angelic shepherd".
Many will remember that in his reign the words Pastor et nauta "shepherd and sailor", which denotes his successor, were often interpreted to mean that a non-Italian would be elected, one who would have to come to the Vatican from across the sea. Might it not be Cardinal Spellman for example? But it had escaped people's notice that one of Italy's Cardinals was already in any case a sailor, whether he had to cross the sea to the Vatican or not, and that was the Patriarch of Venice, for every Venetian, that is, everyone whose normal means of transport is the gondola, may be called nauta. Moreover Roncalli (John XXIII) had also been, in his youth, a shepherd in the literal sense.
Flos florum, "the flower of flowers", that is, the lily, comes next in the prophecy, and as in the case of Lumen in caelo the meaning is clearly heraldic, for the fleur-de-lis is a prominent feature of the arms of the Montinis, the family of Paul VI. As to the words De medietate lunae, "concerning the middle (or the half) of the moon" which denote the reign of his successor, they had been, over the centuries, the basis of some strange speculations. In general it was concluded that since the half moon had no particular significance it must be the crescent that was indicated, and that the reference was therefore to Islam. Some even predicted that under this pontiff there would be general conversion of Muslims to Christianity. No one thought that "the moon" could simply mean "the month". If that suggestion had been made, it would have been dismissed as pointless by the question: "What month?". The true answer, "the single month for which he will reign", could only have been given by St. Malachy himself, or one like him. The reference is clearly to the inauspicious sign which was to be seen exactly at the middle of the lunar month when the rising full moon was eclipsed; and we are now in a pontificate which is expressly related to an eclipse, De labore solis, "concerning the eclipse of the sun", yet another of those devices which will only become clear in due course.
 This article was first published in Tomorrow, Summer 1966. We publish it here on request, and for this new edition the author has added several paragraphs.
 As St. Bernard tells us, St. Malachy had been questioned some years previously by his disciples at Melfont Abbey as to where of all places he would wish to die and be buried. He had replied that if it were to be in Ireland, he would wish it to be beside the tomb of St. Patrick, but that otherwise he would wish it to be at the Abbey of Clairvaux. They then asked him what day of all days in the year he would choose for his death and he replied that he would choose the Feast of All Souls. (See Ailbe J. Luddy, Life of St. Malachy, M.H. Gill and Son, Dublin, 1950.


text:
Programming | OpenGL » Duncan Murdoch - RGL, An R Interface to OpenGL
Year, pagecount:2001, 7 page(s)
Uploaded:May 17, 2018
Size:831 KB
Institution:-
Attachment:-
Download in PDF:Please log in!
Nobody commented on this document yet. You can be the first one!
Please choose a score from the list 1 - Miserable, delete it! 2 - Just about enough 3 - Average 4 - Good 5 - Perfect, unique
What did others read after this?
List of 1000 Common SAT Vocabulary Words with Latin and Greek Roots
Latin nyelv | Középiskola
David Barrett - Bending Notes on the Harmonica
Zene | Szájharmonika
Michael Wesch - The Art of Being Human, A Textbook for Cultural Anthropology
Művészet | Középiskola
Claudia Vanderborght - Hot Air Balloons, Gas and Go
Sport | Hőlégballonozás
Content extract
New URL: http://www.R-projectorg/conferences/DSC-2001/ DSC 2001 Proceedings of the 2nd International Workshop on Distributed Statistical Computing March 15-17, Vienna, Austria http://www.cituwienacat/Conferences/DSC-2001 K. Hornik & F Leisch (eds) ISSN 1609-395X RGL: An R Interface to OpenGL Duncan Murdoch∗ Abstract OpenGL is a cross-platform library for 3D rendering. In this paper I will describe RGL, an R package providing a simplified interface to it. The style of the interface follows that of the older S or R plotting functions, with some differences. In particular, it is possible for the user to manipulate objects on the screen, and programmatically to change the appearance or content of the display. 1 Introduction OpenGL [5] is a hardware-independent library of about 150 functions for 3D graphics rendering. Implementations exist on all of the more popular computing platforms in use today: MS Windows, various Unix versions, Apple Macintosh, etc. It is a direct
descendant of the GL graphics library written by Silicon Graphics. Most recent 3D video hardware comes with OpenGL drivers, allowing programs written for OpenGL to automatically take advantage of hardware acceleration features. R [3] is a GNU implementation of the S statistical programming language [1]. In this paper I describe a prototype implementation of RGL, an R package providing a simplified interface to OpenGL. I will assume in this paper that readers are familiar with R and S, but perhaps not with OpenGL. In the remainder of this section I give a short overview of OpenGL and Delphi, the package used to compile the external code in RGL. ∗ University of Western Ontario Proceedings of DSC 2001 1.1 2 OpenGL OpenGL is a complex library. There is support for drawing 3 dimensional geometric primitives (points, lines and polygons). It automatically handles depth cues such as perspective, hiding objects behind ones that are closer to the viewer, fog that makes more distant
objects tend to fade out, etc. Light in OpenGL may come from ambient sources (the same brightness in all directions), diffuse sources (greater brightness from some general directions), or point sources. The viewer sees the effect of lighting on surfaces defined using different materials. A material is defined by its reflectivity: it may have different ambient, diffuse and specular (shiny) properties Materials may also be light sources themselves, or may be transparent. A number of tricks are available to improve the three dimensional illusion while using simple polygon tilings. Textures, or bitmapped patterns, may be displayed on surfaces to give the illusion of more detail than is really being drawn. Colours are defined at polygon vertices, and may be smoothly blended over the surface of the polygon. In order to know the reflectivity of a surface, a normal needs to be defined, but the normal need not be the actual geometric normal to the polygon: indeed, different normals can be used
at each vertex, with values in the interior of a polygon interpolated to simulate a curved surface. Most of OpenGL is designed to be platform independent, but some necessary features are left out of the basic library, and are implemented in a platform dependent way. These include interaction with the computer's windowing system, and the display of text. 1.2 Delphi The interface to OpenGL is described in the C language, but no C-specific constructs are required, so OpenGL is callable from many other languages. The prototype implementation of RGL described in this paper was programmed in Delphi [2] Delphi is a component-based programming package [4], which allows easy prototyping of the user interface. The most natural way to add external code to R is through a shared library (a DLL in Windows); Delphi was used to compile this library. It is my intention to rewrite the shared library in C, once the design of RGL has stabilized. This will make it possible to port RGL to other
platforms besides Windows. 2 RGL Overview Whereas OpenGL is a complex low level graphics library, RGL is designed to offer both high level and low level support, similar in many respects to the graphics model defined in R. See Table 1 for a list of most of the RGL functions R has functions plot, hist and persp for scatterplots, histograms and perspective plots respectively; RGL has functions plot3d, hist3d and persp3d. The options to the RGL functions are very similar to the options to the default versions of the R functions. For example, Figure 1 shows the result of the R code Proceedings of DSC 2001 High level Low level Annotations Parameters Windows Colours Transforms Modifiers Grouping Objects 3 hist3d, persp3d, plot3d lines3d, segments3d, points3d, triangles3d, quads3d, text3d axis3d, axes3d, box3d, mtext3d, title3d par3d open3d, close3d, clear3d rgb.tocolor, colortorgb translate3d, rotate3d, scale3d setcolors3d, setnormals3d, setpoints3d, settext3d begingroup3d,
endgroup3d print.obj3d, summaryobj3d, asobj3d, aslistobj3d, [.obj3d, type3d, length3d, items3d Table 1: The main functions defined in RGL. x <- rnorm(1000) y <- rnorm(1000) hist3d(x,y,col='red') At the lower level, RGL has functions points3d, lines3d, segments3d, text3d, triangles3d and quads3d. The first four of these correspond to similarly named functions in R; the latter two draw filled three dimensional polygons. These functions are used to build up the higher level graphics At an intermediate level, the functions axis3d, axes3d, box3d, mtext3d and title3d are used to label and annotate graphs. Like R, RGL has a function par3d for setting graphical parameters. About 25 parameters can be set or queried. These include parameters for scaling (RGL can rescale each coordinate separately, or apply the same scaling to each), parameters describing the position and colour of the graphics window, OpenGL display parameters controlling lighting, fog and perspective, and parameters
controlling the thickness of lines and points. There are also parameters controlling the interaction of the user with the display. By default, the user is only allowed to rotate the display about a vertical axis (since it is easy to get disoriented when the up-down direction is changed), but par3d allows more freedom to be granted. Other parameters tell RGL to skip updates of the display (so that a number of new objects can be added without redraws after each one) or to ignore the extent of objects when calculating scaling (so that axes and labels on a graph don't affect its scaling). Besides these functions that correspond to functions in R, RGL provides several other groups of functions. There are functions for opening, closing and clearing display windows, functions for translating colours from the system used in R to a numeric Red-Green-Blue system, and functions for creating transformation matrices. OpenGL normally works in four dimensional homogeneous coordinates in which
vectors (x, y, z, w) are used to represent the point (x/w, y/w, z/w); RGL supplies functions to construct 4 × 4 matrices representing translations, rotations, and rescalings of the data. (A quick introduction to homogeneous coordinates is given Proceedings of DSC 2001 4 Figure 1: A simple bivariate histogram. in an appendix to the OpenGL reference manual [5].) The "modifier" group of functions allow the data in a plot to be changed by the user. The graphics model in R is essentially "drawing in ink": once objects are placed on a graph, they may be covered by later objects, but they can't be changed or deleted. This allows it to work directly with printers and other hard copy output devices. RGL, on the other hand, is essentially dynamic: in order to present different views of three dimensional objects, it's necessary to redraw them many times per second. RGL allows the user to change what is redrawn, by giving access to the internal data being displayed in the graph.
Internally data is maintained in the original scale; functions are available to query and change the values. It is also possible to change the normals and colours at each point, and the strings used for text. RGL defines graphical scenes hierarchically. Each plot is a group of objects defined in a particular frame of reference. Some of the objects may be groups themselves, with their own internal coordinate systems. To support this model, there are the functions begingroup3d which declares that a new group is being drawn, and endgroup3d which embeds it in a larger scene. Finally, a number of functions treat RGL objects as R objects. All of the data in the RGL objects is maintained externally, in a format suitable for OpenGL display; only "handles" (currently implemented as pointers typecast to integers) to the external objects are seen in R. However, functions that create these handles give them the class obj3d, and support functions to print and work with this class
Proceedings of DSC 2001 5 are defined, so that in many respects it appears to the R user as though the objects are fully defined within R. 3 Example The plot3d function operates much like R's plot function, and on paper, the displays don't look very three dimensional. In this section I'll present an example using persp3d instead. Consider Ross Ihaka's volcano data from the R distribution. To draw this in perspective form, the following modification of the example code for persp could be used: > > > > > + data(volcano) z <- 2 * volcano # Exaggerate the relief x <- 10 * (1:nrow(z)) # 10 meter spacing (S to N) y <- 10 * (1:ncol(z)) # 10 meter spacing (E to W) p <- persp3d(x, y, z, scale = FALSE, axes = FALSE, smooth = T, xlab = '', ylab = '', zlab = '') This produces results very similar to what persp would produce, but the surface is smooth (the normals are fit separarately at every vertex) and the user can rotate the image to get a
better view. Figure 2: The volcano dataset displayed by persp3d. We might choose to colour the volcano depending on its altitude. The persp3d function has two arguments to support this: col and rgb. The col argument takes colours specified in the usual way with R, i.e as selections from a palette or as text strings naming the colour. The rgb argument (with default value rgb = color.torgb(col)) works with the numerical RGB colour values instead Colour can be given uniformly for the surface, or separately for each point in the grid of z Proceedings of DSC 2001 6 values. It is generally faster to specify the colours using the rgb argument, because fewer conversions to the numerical format will then be required. Another way to colour the graph is to use the modifier functions on the existing plot. The variable p that stores the result of the persp3d call has four members: > names(p) [1] "handle" "indx" "indy" "indz" The handle member is
the handle of the list of triangles that make up the plotted surface. The other three members are lists of indices into the original x, y and z variables corresponding to the vertices of the triangles. These allow us to modify the graph without redrawing it: > > > > > r <- range(z) zvect <- (z[p$indz] - r[1])/(r[2]-r[1]) palette <- color.torgb(terraincolors(50)) rgb <- palette[round(zvect*49,0)+1] setcolors3d(p$handle, rgb = rgb) Figure 3: The volcano dataset with the colours modified to indicate altitude. First we calculate a vector zvect containing the standardized z values at every vertex on the drawn surface. We then use the terraincolors function to generate a sequence of 50 colours, and convert them to the numerical RGL format. Next we create a vector rgb containing the colour corresponding to the altitude at each vertex. Finally, the setcolors3d call changes the displayed surface so that it uses these colours (Figure 3). 4 Discussion RGL is still
in the prototype stage. Many OpenGL features are not presently supported: multiple lights, changes to the surface material properties, textures, Proceedings of DSC 2001 7 the more exotic drawing modes, font selection, etc. I do have short-term plans to support materials and font selection; the other items will have to wait. I think RGL demonstrates some ideas that may be applicable to a new version of R graphics in general. In particular, the ability to modify data in a plot makes many things possible: animations, sequential displays which automatically rescale, etc. RGL is currently available from my web page http://www.statsuwoca/faculty/murdoch/software but only in binary form for the Windows version of R. Once the design has settled down, I plan to convert the external library code (about 3700 lines in Delphi) to C, so that it will be more widely available. References [1] John M. Chambers and Trevor J Hastie Statistical Models in S Chapman & Hall, 1992. [2] Borland
Software Corporation. Borland Delphi Professional Version 50 1999 [3] Ross Ihaka and Robert Gentleman. R: A language for data analysis and graphics Journal of Computational and Graphical Statistics, 5(3):299–314, 1996. [4] Duncan J. Murdoch Programming with components Chance, 12(4):47–49, 1999. [5] Mason Woo, Jackie Neider, and Tom Davis. OpenGL Programming Guide, Second Edition. Addison-Wesley Developers Press, 1997
Our best articles
How to Handle Managers with Inflated Ego
"Egocentrism is the inability to differentiate between self and other. More specifically, it is the inability to accurately assume or understand any perspective other than ones own." – you can easily find the explanation of egocentrism but what kind of methods are available to handle egocentric associates and bosses?
Our best textbooks
Computer programming documents
Agriculture documents
History documents
Psychology documents
FAQ & Terms of Usage
About us and Advertising
All rights reserved © 2000-2023 | DoksiEngine version: 6.3.2 |


text:
Honda may discontinue its diesel cars in India
Honda will shift its focus to mild-hybrid and strong-hybrid car configurations.
Utkarsh Joshi
Japanese automaker Honda may discontinue its diesel models in India, as it reconsiders the viability of diesel-powered engines under the new emission norms. The Real Driving Emissions (RDE) norms along with the Corporate Average Fuel Economy 2 (CAFE) regulations could be adopted in India by 2023 and will make it harder for diesel-powered vehicles to clear the new standard.
Read Also: Land Rover Defender 75th Limited Edition unveiled
New emission regulations could see Honda pulling out its diesel cars from India
What does Honda's future in India look like?
Honda CEO & President Takuya Tsumura expressed concerns over the new norms making it very hard for diesel engines to clear the regulations. In an interview with ToI, he mentioned how similar regulations in Europe lead to automakers discontinuing diesel engines in their lineup. This could mean Honda doing the same in India, where the Real Driving Emissions norms will soon be followed by the CAFE 2 regulations in 2023.
These regulations will be rolled out under the second phase of BS6 and will be pivotal in curbing the CO2 emission levels. In a laboratory setting, CAFE 2 is known to reduce CO2 levels of fleet vehicles from 130g/kg to 113g/kg.
Honda giving up on diesel tech could mean the diesel variants of Honda City, WR-V, and Amaze will no longer be available in the Indian market. All three of these cars are offered with the 1.5-litre i-DTEC diesel engine.
Read Also: Tiago EV to be revealed on September 28
Honda already stopped the production of the Civic and CR-V back in December 2020. This was preceded by the shutdown of its manufacturing plant in Greater Noida. Now with the future of its diesel cars uncertain, certain experts believe that the automaker could entirely quit the Indian market. However, Honda has put these rumours to bed, mentioning their 20-year legacy in India and confirming there is no incentive to quit the fourth largest automobile market in the world.
However, the new emission standards will see more models switch to a mild-hybrid or strong-hybrid configuration. Honda is planning on launching a new midsize SUV in the Indian market next year, which will get the e:HEV powertrain and will rival the likes of Toyota Urban Cruiser HyRyder and Maruti Suzuki Grand Vitara.
emission regulations
honda diesel cars
honda india
Utkarsh Joshihttps://www.motorbridge.com/
Volvo XC40, XC90 facelift to be launched tomorrow
TVS Apache RTR 160 2V with ABS launched in Bangladesh


Utility provider Centrica, the parent company of British Gas, has developed a loyalty programme to reward its long-term customers.
The project, which is part of an IT modernisation programme, includes a system built on Pega cloud and Hadoop to provide unified business processes, technology and customer experience.
Describing the nature of customer experience in utilities at the Pega Customer Engagement Summit in London, Paul de Laat, customer insight director at Centrica, admitted that people don't really want to have a relationship with energy and home services businesses.
Like many traditional businesses, Centrica has been on a digital transformation journey to become more of a data business. Five years ago, British Gas was an energy company, and its home services operations represented a third of the business.
But over the past four to five years, the dynamics have changed. Some 40% of British Gas customers now have smart meters, which is driving data in energy usage. The utility firm's smart central heating system, Hive, provides additional data about people's energy usage habits.
Centrica wants to use that data to create a clear picture of its customers. For de Laat, the challenge is how to make a digitally powered change at Centrica, an organisation that has traditionally operated in a siloed fashion.
"It requires people, processes and technology to work together to unlock the value of data for customers and for us. We use data to understand customer pain points," he says. This is achieved by trying to understand the root cause of complaints to ensure the problems do not happen again.
Most organisations do not make the best use of data to deliver relevant services, according to de Laat. Centrica uses a big data lake to create a single customer view and applies a lot of data models to create relevance. It is important that this data is not restricted by product or channel.
In effect, the data lake and the data models work together to provide a brain that understands Centrica's customers.
Centrica's customers tend to stay with the utility firm rather than looking for the best deals elsewhere, according to de Laat. "We have people who have been with us for years," he says.
But when the company conducted surveys, it found a lot of customers came back with the same problem – they were not recognised across different Centrica products.
The company wanted to create a rewards programme that recognised these loyal customers, who spend a lot of money with Centrica.
The loyalty programme covers third-party and Centrica products, and, according to de Laat, is tuned to be highly relevant to individual customers. "For every year you are with us, you get a day of free energy, up to 20 days," he says.
The loyalty programme integrates with the company's web portal and will be available as a smartphone app. "The whole proposition is digital, which is where Pega sits. We created a pure digital rewards programme that says, 'Thank you for spending a lot of money on Centrica services'," he says.
As is often the case, technology is never the hardest part of an IT project that aims to change the way staff work. "I had no doubt that the tech could do this," says de Laat.
However, most people stayed in their own part of the organisation. This meant data flowed more slowly across the different areas of the business, so it would take a few days for updates to get through.
Another problem with the way Centrica was organised was that even though the aim of the loyalty programme was to create a single view of the customer, each department had its own customer silo. To get around this, he says the Centrica team responsible for delivering the loyalty programme needed to be a virtual team, comprising stakeholders from different areas of the business.
Through the Pega-powered loyalty programme, Centrica has been able to unify business processes and technology and provide real-time customer experience data that remains consistent across the web and contact centre channels.
The General Data Protection Regulation (GDPR), which came into force in April 2018, felt like Y2K, says de Laat, but it also presented a "great opportunity to renew our relationship with our customers".
GDPR offered Centrica an opportunity to ask customers to tick a box that explicitly gave the company permission to use their data. He says Centrica was also able to use GDPR to be completely transparent with its customers about how their data would be used.
GDPR has enabled Centrica to monitor the effectiveness of email campaigns for its new loyalty programme. Customers have responded well to the loyalty scheme, with email invitations achieving a click-through rate of 80%, and 50% of those customers subsequently signing up to the loyalty programme. "This shows there is a pent-up demand," says de Laat.
The CEO of Centrica recently met with the head of Microsoft to talk about strategy; we speak to CIO Mike Young.
Centrica, the parent company of British Gas, acquires machine learning company to bolster its data analytics business.