text:
'The Daily Show' nails what's so absurd about Trump's State of the Union comments
By Marcus Gilmer 2019-01-24 13:34:35 UTC
We're mired in the longest federal government shutdown in history, and President Donald Trump is feuding with Speaker of the House Nancy Pelosi over the State of the Union Speech.
Fortunately, Trevor Noah has that knack for laying out the absurd in a way that makes us laugh despite the urge to cry. In the above clip, Noah walks us through Wednesday's drama between Pelosi and Trump. There's a lot to laugh at — from the Game of Thrones reference to the idea that Pelosi is the only one able to instill fear in Trump — but the best part is Noah's analysis of how Trump's comments sound like he made them using his phone's predictive text.
Of course, it's not all laughs and Noah drives that home, too, highlighting the plight of unpaid federal workers. It's sobering stuff but at least we get to laugh a little bit to make us forget for, like, five minutes.
'We Are The Dream' trailer spotlights the kids who want to be like Martin Luther King Jr.
Joaquin Phoenix pays tribute to Heath Ledger during acceptance speech
Get goosebumps with the trailer for Apple's docuseries about being LGBTQ on TV
Babu Frik's breakout Star Wars debut is finally online for all to enjoy
Topics: Culture, Donald Trump, Government Shutdown, nancy pelosi, Politics, the daily show, trevor noah
Image: The Daily Show/YouTube


Costa Rica Guesthouse is a budget hotel located in San Jose, Costa Rica. It features 25 rooms.
The affordable and inviting Costa Rica Guesthouse is conveniently located in downtown San Jose Costa Rica and offers easy access to local restaurants. This hotel has comfortably rustic accommodations, some of which feature a private bathroom. Guests can also take advantage of complimentary breakfasts, free Internet access and onsite parking.


text:
Q: Does the messageId of a nacked message change? Does the messageId always change when it gets back to the queue after being nacked?
I've searched extensively through the docs and SO questions and found nothing about it.

A: The message ID of a message never changes. The ack ID that comes on a subsequent delivery will change, though.

redpajama_set_name: RedPajamaStackExchange


text:
Christopher Goodpasture, Piano
Tessa Laengert, Soprano
GERSHWIN – An American in Paris Arias by Puccini and Charpentier
RACHMANINOV – Piano Concerto #2
George Gershwin (1898 – 1937): An American in Paris
Gershwin had achieved international fame with his Rhapsody in Blue (1924) and the Piano Concerto (1925) (performed most recently by the OSO in 2017 and 2016, respectively). Based on a commission from the New York Philharmonic for a new piece in 1928, Gershwin created this tone poem, inspired by his own visits to Paris. It has long been debated if Gershwin was really a "serious" composer, but while in Paris, he was influenced by several other composers, including Prokofiev, Ravel, and Stravinsky. Gershwin himself, in turn, influenced those same people.
Gershwin denied that he had a detailed program associated with the piece we are performing today, but he did provide an outline. An American is strolling in the streets of Paris, enjoying its atmosphere. Traffic is heard, with off-key blasts of taxi horns (Gershwin had famously bought some real ones in Paris). In a slower middle section, the trumpet plays the "homesick blues", later interrupted by a Charleston (on two trumpets). Finally, the "blues" theme is transformed from sadness into joy, and the sights and sounds of Paris shine through once more.
Sergei Rachmaninov (1873-1943): Piano Concerto No. 2 in C minor, Op. 18
Moderato II. Adagio sostenuto III. Allegro scherzando
This work reflects a triumph over adversity. After the disastrous reception of his first symphony in 1897 (the conductor, Glazunov, had arrived drunk, and did not take the work seriously), Rachmaninov endured a three-year period of intense depression. He consulted a hypnotist, Dr. Dahl, who used subliminal techniques to restore Rachmaninov's confidence in his ability to write a new piano concerto. Composition began in 1900, and the work was premiered in Moscow in the following year, with Rachmaninov himself as soloist. The music describes Rachmaninov's progression from sombre introspection at the opening, to the triumphant Finale, celebrating his release. The work is dedicated to Dr. Dahl – and in fact the violas are used more frequently than usual, acknowledging Dahl's own musicianship as a violist. It is now one of the most popular piano concertos by any composer.
The concerto's morbid opening has eight poignant chords that gradually build in tension and lead to a soaring second theme. The "romantic" second movement begins on muted strings, and continues with a wistful melody on the flute and clarinet, which then become a counterpoint to a theme in the piano. These roles are later reversed. Again, the emotional level builds to a climax, and a beautiful coda. The vigorous finale has echoes of Tchaikovsky.
Notes © by Stephen Walter
About Christopher Goodpasture
Praised by the Washington Post for his "sparkling, highly musical" playing, Christopher Goodpasture has established himself as a musician of refined style. The Toronto Concert Review described his playing as a "rare combination of strength, energy and sublime musical sensitivity…matched by a heavenly sense of melodic line". His imaginative approach to programming reflects a penchant for unusual repertoire and narrative that is both unconventional and provocative. He has performed recitals in concert venues throughout North America, including the Kennedy Center (Washington D.C.), Benaroya Hall (Seattle), Koerner Hall (Toronto), Alice Tully Hall, Merkin Hall, Weill Recital Hall (New York), Bing Concert Hall (San Francisco), and the Los Angeles County Museum of Art.
Recent and upcoming orchestral appearances include concertos with the Sioux City Symphony, The Oakville Symphony, Northumberland Orchestra, Acadiana Symphony Orchestra, and the Chamber Orchestra of New York. Among his forthcoming projects is a debut album to be recorded in 2019 on the KNS Classical Records label as well as an album exploring atmosphere seen through the imagination of composers including Bartók, Janáček, Debussy, Haydn, Takemitsu and Australian composer Peter Sculthorpe to be released on the Southern California based Yarlung Records.
Christopher is a top-prize winner of the Washington International, Seattle International, Iowa International and Dallas International Piano Competitions, as well as the Serge and Olga Koussevitzky Competition for Pianists. He holds graduate degrees from Yale University and The Juilliard School, where his teachers included Hung-Kuan Chen, Peter Frankl, Jerome Lowenthal and Christopher Elton. Born in Los Angeles, California, his formal training began at the Pasadena Conservatory, where he enrolled in theory, chamber music, and for four years, composition with award-winning American composer, Andrew Norman. He continued his studies with Stewart Gordon and John Perry at the University of Southern California and the Royal Conservatory of Music in Toronto.
From a young age, Christopher developed a keen interest in collaboration and now is a sought-after chamber musician, having played for and collaborated with a number of noted musicians. He has appeared as a fellow in Ravinia's Steans Music Institute, in the intensive chamber music program of David Finckel and Wu Han in Aspen, at the Music Academy of the West, and in the festivals of Kneisel Hall, Sarasota and Banff. Among his collaborators are members of the Takacs, Ysaye, St. Lawrence, Amenda, Guarneri, and Tokyo String Quartets. Christopher's work with pianists Seymour Lipkin, Joseph Kalichstein, Robert Levin, Claude Frank, Leon Fleisher and violinists Pamela Frank and Sylvia Rosenberg has left a meaningful impact on his work as a chamber musician.
Currently, Christopher is a member of New York based Ensemble Connect (formerly Ensemble ACJW), a fellowship program of Carnegie Hall, the Juilliard School and the Weill Institute in partnership with the New York City Department of Education and with an emphasis on audience engagement, teaching and performing chamber music.
About Tessa Laengert
Lyric soprano Tessa Laengert is an emerging young artist based in Toronto. Tessa is quickly establishing herself in both operatic and concert performances. She made her principal role debut with the Summer Opera Lyric Theatre in 2013 in the title role of Mimi in La Bohème, as well as her role debut with Opera in Concert in Impresario (2013). Previously she performed with Against the Grain Theatre in their production of Handel's Messiah in Toronto and this season with Opera Atelier and Opera in Concert. Last season she made her debut with the Oakville Chamber Orchestra, and with Masterworks of Oakville where she performed Poulenc's Gloria and Mozart's Requiem with Brott Music Festival. This season, Tessa will be performing the title role of Gretel in Hansel & Gretel with Shoestring Opera.
Tessa has performed with the Black Creek Music Festival, Georgian Bay Symphony, Orpheus Choir of Toronto, Canadian Opera Company, Schola Cantorum, Opera In Concert, Against the Grain Theatre, Opera Atelier, Tapestry Opera and Brott Music Festival.
Tessa graduated from the University of Toronto in voice performance after being awarded the prestigious Robert William Bygrave full tuition scholarship. She has trained and performed in various opera programs such as Songfest Vocal Institute, Tafelmusik Baroque Summer Institute, the Royal Conservatory of Music Opera Program, Operatic Arts Academy, Italy and most recently with the Summer Opera Lyric Theatre and the prestigious St. Andrew's Opera Workshop.
Tessa is a voice teacher and vocal coach at Branksome Hall in Toronto. Tessa worked with the Canadian Children's Opera Company as a conductor of the Butterfly and Ruby Choruses and as vocal coach to the principal chorus for three seasons.
Tessa studied under the tutelage of soprano Lorna MacDonald, mezzo-soprano Jean MacPhail, mezzo-soprano Laura Tucker and vocal coach Rachel Andrist.

redpajama_set_name: RedPajamaCommonCrawl


text:
'use strict';

// MODULES //

var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
var ssort2sh = require( './ssort2sh.js' );
var ndarray = require( './ndarray.js' );

// MAIN //

setReadOnly( ssort2sh, 'ndarray', ndarray );

// EXPORTS //

module.exports = ssort2sh;

redpajama_set_name: RedPajamaGithub


text:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.kontaktiosimpletest"
    android:versionCode="1"
    android:versionName="1.0">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

    <uses-sdk
        android:minSdkVersion="16"
        android:targetSdkVersion="22" />

    <application
      android:name=".MainApplication"
      android:allowBackup="true"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:theme="@style/AppTheme">
      <service android:name="com.kontakt.sdk.android.ble.service.ProximityService" android:exported="false"/>
      <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
      </activity>
      <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
    </application>

</manifest>


Discussion in 'SGTC 2014 (finished)' started by Mike Bell, Jul 7, 2014.
This event will run along the same lines as the rounds of the season. Session starts at 17:30 GMT.
We will also be using these races as a broadcast test, so if anyone would want to watch it back post-race a link will be provided.
Everyone* is welcome to participate in the event, regardless if you have entered the league yet or not. To sign up, just post below.
*= You need an SRP license and no outstanding ban.
Has the qualifying format been changed from the qualifying/superpole format mentioned in the calendar post?
Time to spam another event thread; I cannot get in the server. The loading bar goes to the end with no error signals but the game does not load, it just stays on the loading screen.
Yeah, just a 15 mins open session.
When it freezes, Alt Tab back to desktop and you should see a error message either at once, or you might need to try and open the rFactor window again. Then it should tell you what file isn't loading correctly.
For anyone who is getting a Terrain.TDF mismatch, this should solve it.
I should be back in my HSV. Recently watched the 2014 race round this track, real interesting layout with plenty of sports where you can line up an overtake on someone. Should provide some great racing.
Thanks Eric, to close the game because it had frozen I needed to control alt delete to get back to desktop ad close game via task manager. Ido not notice any error message then, but I will take a look again shortly. I'll let ya know.
Nah, no error message. The only way to close the game is to execute via task manager.
I want to go in server and drive some!
Well I would like to be in but can't get into server. I had various errors with Okayama which I could hit enter and get past those errors and into server with no problems during race. This track I just can't get passed the loading screen online or offline and as for Fuji, its the same, I can't get into server.
Unless I receive some help it will be safe to say that I wont be able to participate in any rFactor 1 leagues.!
I will need someone to TEAMVIEWER my problem and install everything, if I'm to take part.
I'll give you a shout when I get home later Chris, and we can try to find out what the issue is.
So, I missed Eric last night as I was working. He very kindly offered to jump on TV at 08:00 this morning. Unfortunately I was driving home.
Basically, I still need help if I'm to race. It's frustrating because its not just a server issue....I cannot use the track what-so-ever!


Malaysian Prime Minister Mahathir Mohammad will visit Pakistan on March 23, Foreign Minister Shah Mehmood Qureshi said Friday.
An investment delegation will also be accompanying the Malaysian prime minister, Qureshi said in Multan.
The foreign minister said that Prime Minister Imran Khan will leave for Qatar on January 22. Qatar has promised to give 100,000 jobs to Pakistanis, he added.
Qureshi remarked that Pakistan sought help from friendly countries to restore the economy.
Saudi Arabia had given Pakistan a package of $12 billion, China provided $2 billion and the UAE announced $3 billion for the country, the foreign minister said.
Qureshi said that more job opportunities will be created for the people if the country's economy is restored and investment poured in.


Sam Seljak and Angela O'Toole of The Art Of Eating found their last Sourdough Workshop for beginners to be so popular with us at Wandering Cooks that they are holding another! The ladies have been facilitating the workshop since 2012 and have taught hundreds of Brisbane foodies how to make the delicious fermented bread.
Wandering Cooks are hosting the workshop on Monday November 30, from 6:30pm to 8pm. It will be $60 upon entry and will teach attendees everything they need to know about making a starter culture and sourdough bread at home, as well as providing tasters and a starter kit.
To book, call Ange on 0403 218 123 or email angela@artofeating.com.au.


text:
French Bakery Chouquette Opens Outlet in Brisbane City
The New Farm classic gets a heritage-listed version 2.0 right in the guts of the CBD.
Fabrice Delaunay
Photography: Morgan Roberts
by Matt Shea
Fabrice Delaunay didn't buy Chouquette in New Farm because he enjoys baking. He bought it because he enjoys people.
Fabrice and his wife Meggy Delaunay took over the already popular New Farm spot from original owner Lara Keating in July 2018. It's gone from strength to strength since.
"It's been challenging," Fabrice says. "The business has grown very fast. There were three pastry chefs and now there are five pastry chefs and two bakers. Before, the bread was not made on-site, but now everything is made in New Farm.
"We do things a certain way – a really traditional way. My wife and I are from Normandy in France. Our grandparents were farmers. They were eating what they produced in their garden and in their dairy, so we know what's a good product and what's a bad product. We make everything from scratch, everything is fresh. It's a lot of work."
It was always the intention to grow the business, so the Delaneys snapped up a heritage-listed cafe tenancy when it became available in the CBD a few months ago. In October they unveiled Chouquette Edward Street (in the former Madders Brothers Patisserie space) on the corner of Edward and Margaret Streets.
"A lot of my customers who live in New Farm are professionals who work in the city," Fabrice says. "They come in on the weekend and say, 'Fabrice, we can't come during the week because you're in New Farm and we don't have time to come. It would be good if you could open in the city'."
The space itself hasn't changed much from its Madders Brothers days. Most of the ostentatious furniture has been replaced and the violet walls painted a crisp white, giving the cafe a much more approachable feel. Otherwise, it has the same exposed brick and beams, the same eye-catching array of hanging Edison bulbs, and the same long counter.
Besides, it's what's inside the counter that the Chouqeutte loyalists swear by: authentic pain aux raisins, eclairs, canelés, danishes and tarts, and the Delaunays' crunchy baguettes and loaves of sourdough. The pastries, cakes and breads are helped down with Wolff Coffee Roasters's Edelweiss blend – a lightly flavoured coffee that's a good match for the food, Fabrice says.
Chouquette Edward Street may be drawing the New Farm diehards during their weekday lunch breaks, but it's also cleverly positioned to take advantage of the residential apartment blocks gathered round the river and the Botanic Gardens. Fabrice reckons he's already developing a local trade similar to New Farm.
"That's the plan," he says. "We've nailed it in New Farm and we want to duplicate it on Edward Street. You make the difference with the food but also the coffee and how you treat your customers.
"The cellist Yo-Yo Ma talks about how playing music lets him fulfil his interest in people. For me, it's the same. I love communicating with customers. Why do I have a bakery? Because of the people."
Chouquette Edward Street
41 Edward Street, Brisbane
Mon to Fri 7.30am–5pm
Sat 8.30am–5pm
chouquette.com.au
Places mentioned
1 19 Barker Street, New Farm
Sum Yung Guys Is Popping up in Brisbane at One Fish Two Fish Next Month
City Winery Launches Vintage Membership Experience
Cups on Melbourne Opens in South Brisbane
Coming Soon: The Bowery to Transform Into Suzie Wong's Good Time Bar
Proof BBQ and Booze
Milton Common
SK Steak & Oyster
Brewdog Dogtap


IOT Training in Bangalore from Indian Cyber Security Solutions is designed with basic knowledge of electronic circuit design, microcontrollers and programming languages. Our IOT Training in Bangalore introduces you to advance concepts and methodologies to design, build, and deploy IoT solutions, participants to prevalent communication technologies and protocols including new generation IoT friendly application and physical layer protocols. Students will gain a sound understanding of widely accepted IoT frameworks and standards by IOT Training in Bangalore. The course covers popular, service-rich cloud platforms to teach how to build and deploy IoT solutions. Our Industry Experts will give you hands-on IOT Training.
Bangalore is dubbed as the "Silicon Valley of India." The name is justified with the status of Bangalore to be the hub for IT (Information Technology) in India. The IT companies in Bangalore have an employment statistics of approximately 35 percent of the total pool of two and a half million of the IT professionals of the nation. Also, the city accounts for the highest rate of exports in the field of information technology in the nation. The city Bangalore is mostly out of reach from the nation's biggest rivals, China and Pakistan. Also, the investment from the Central Government is quite heavy in the public sector companies of the state. Thus, every technical as well as scientific navigators were concentrated in this capital city of the state, Karnataka. And, these factors led to the "IT Revolution". And, this is why, Bengaluru is known as the IT Capital of India. There is a great hope for hire in the companies for IoT Developer. So students of Bangalore can placed themselves by the IoT training in Bangalore.
While the median salary of IoT professionals stands at ₹15.2 lakh, professionals in the IT sector get around ₹8.65 lakh, Primary Research around ₹9.03 lakh, Financial Research around ₹8.96 lakh and Secondary Research professionals around ₹7.83 lakh.
Lesson 1: In this lesson we create a two LED circuit, and we learn about for loops.
Lesson 2: Learn how to print to your computer screen from the Arduino using your serial port. Good Stuff!
Lesson 4: This lesson will show you how to get user input from the Serial Monitor.
Lesson 5: This lesson will show you how to implement while loops.
Lesson 6: This lesson will show you how to write arbitrary voltages between 0 and 5 volts to the arduino pins.
Lesson 7: Introduction to Ohm's Law, and using a potentiometer.
Lesson 10: Simple and Easy way to read Strings, Floats, and Ints over the Arduino serial port.
Lesson 12: If Statements and Conditionals in the Arduino. In this lesson we learn how to have the user input his color preference, and then turn the RGB led to any color requested by the user.
Lesson 13: turn the RGB LED to whatever color that is put in front of a color sensor. It works for an amazing array of color cards.
Lesson 14: Control the position of a servo from a potentiometer using the Arduino.
Lesson 15: Measure the Speed of Sound with an Arduino and ultrasonic sensor.
Lesson 16: Step-by-step tutorial on connecting and using an LCD display with the arduino.
Lesson 17: Tutorial on creating a Distance Measurement device based on the Arduino, an LCD, and an ultrasonic sensor.
IoT Training in Bangalore is most demanded training in India, as well as in Bangalore. Bangalore has risen four places in the latest Global Startup Ecosystem Ranking by San Francisco-based Compass, a research firm that provides global benchmarking tools. Many IT companies will develop in Bangalore in the upcoming future. So those who are residing there can therefore see themselves in the field of IoT in future after pursuing the course of IoT training in Bangalore from Indian Cyber Security Solutions. IoT training in Bangalore by Indian Cyber Security Solutions is a great opportunity for the people of Bangalore to see yourselves in a higher rank as an IoT Developer.
Bangalore has one of the best educational institutions in India and the standard of education is considered to be very high compared to many other states in the country. For this reason that students graduating from the Universities in Bangalore are one of the most sought after by the multinationals, Corporates and big industrial houses. Bangalore is credited with more than 125 R&D centres in the field of core engineering, information technology, basic and applied sciences, aerospace etc. Bangalore has the pride of having the world renowned institutions like R.V. College of Engineering, Christ University, Bangalore University, PES University, International Institute of Information Technology, Bangalore etc.
Students from these and from other colleges, universities can polish their technical skills by Summer training and winter training from Indian Cyber Security Solutions and also can do IoT Training in Bangalore. This is the best institute for IoT training in Bangalore.
Bangalore has one of the most cosmopolitan crowd in India which includes many foreigners who are settled for years. Bangalore has very good Social Infrastructure and excellent talent pool. Natives of Bangalore are very helpful, tolerant, open and welcomes other cultures happily. After completion IoT Training in Bangalore various career options are open to certifier with handy salary and higher posts in India as well as in Bangalore. One can work as an IoT Developer, Lead Developer, IoT Engineer after successfully carrying out the IoT Training in Bangalore.
We are looking for a land in Bangalore to start our institute but now we are providing online classes on IoT so start your class online from today to build your career in the field of IoT by completion of IoT Training in Bangalore.
Internet of Things are in high demand in today's world of Internet. Almost every piece of electronic circuitry is on the lookout to get connected right now. This is leading to the widespread emergence of Internet of Things, the connected network of objects that use sensors, actuators and transmitters to send and receive data related to the object itself. So there is Great chance for all Bangalore students to establish themselves in the field of IoT by doing IoT Training in Bangalore.
Very much satisfied with IoT Training in Bangalore. Trainers are really very knowledgeable and helpful. Got all my recorded Live classes. Come down kolkata for classroom training.


text:
import isEmpty from 'lodash/isEmpty';
import now from 'lodash/now';
import React from 'react';
import PropTypes from 'prop-types';

import { publish } from '../../../components/events/events.js';
import InfiniteScrollPage from '../../../components/infinite-scroll/page.js';;
import Header from '../../../components/timeline/header.js';
import ProviderTag from '../../../components/rss-provider/tag.js';
import Timeline from '../../../components/timeline/timeline.js';
import TimelinePage from '../../../components/timeline/page.js';
import * as WiregooseApi from '../../../components/services/wiregoose-api.js';
import BrowserLanguageDetection from '../../../components/utilities/browser-language-detection.js';
import tr from '../../../components/localization/localization.js';
import Offline from '../../../components/offline-mode/offline.js';
import withReload from '../../../components/utilities/reload-hoc.js';

class Provider extends InfiniteScrollPage {
  static page = new TimelinePage({hideProvider: true});

  state = {}

  componentDidMount() {
    const provider = this.props.routeParams.id;
    if (Provider.page.lastFeeds && Provider.page.lastFeeds[provider] === undefined) {
      Provider.page.invalidateCache();
    }

    Provider.page.componentDidMount(this);
    super.componentDidMount();
  }

  componentWillUnmount() {
    super.componentWillUnmount();
    Provider.page.componentWillUnmount();
  }

  retrieveTimeline = () => {
    if (!Provider.page.lastFeeds) {
      const provider = this.props.routeParams.id;
      Provider.page.lastFeeds = { [provider]: now() };
    }
    return WiregooseApi.timeline.provider(
      Provider.page.lastFeeds,
      BrowserLanguageDetection(),
      {
        onOffline: () => {
          if (isEmpty(Provider.page.virtualList)) {
            this.setState({isOffline: true});
          }
        }
      }
    );
  }

  handleMetaData = () => {
    const provider = this.props.routeParams.id;
    publish('page-ready', {
      title: provider,
      keywords: provider,
      description: tr.formatString(tr.timelineProviderDescription, provider).join('')
    });
  }

  onScroll = () => {
    Provider.page.onScroll(this);
  }

  render() {
    return (
      <div>
        <Header onClose={() => this.props.router.push('/')}>
          <ProviderTag name={this.props.routeParams.id} />
        </Header>
        {this.state.isOffline &&
          <Offline />
        }
        <Timeline ref={(ref) => this.timeline = ref} />
      </div>
    );
  }
}

export default withReload(Provider);


text:
Nationalization Does Not Help The People
Published 10 years ago
By Forbes Africa
Patrice Motsepe works so hard to preserve his mystique that you'd be forgiven for thinking South Africa's first black billionaire is a rather reticent man. He is anything but.
An enigma perhaps, but as the FORBES AFRICA team discovered, the mining magnate whose net worth currently stands at $3.3 billion, largely through his company African Rainbow Minerals (ARM), is unafraid to speak his mind.
Motsepe is always inundated with interview requests but rarely accepts them—in the past 10 years he has done only a handful. But these are different times. While the commodities market is experiencing a boom, the industry Motsepe makes almost all his money from, mining, is in a spin. This after a powerful lobby within the country's ruling party, the African National Congress (ANC), started agitating for nationalization and made it known that they'd like to see this policy being adopted at the party's elective conference in December 2012.
The loud call—thought to be one of the main contributors to the country's potentially worsening political risk profile—has been met with an eerie quiet from the country's captains of industry.
The Chamber of Mines of South Africa, of which Motsepe is an executive member, has not said much beyond "seeking clarity" from the ruling party and, after being told that nationalization was not policy, that the ANC would do research into the desirability and modalities of nationalization. On one or two other occasions Chamber CEO, Bheki Sibiya, merely pointed out investors were now "edgy about investing" in South Africa and that "impacts on international confidence and is not conducive for the growth of the industry".
The industry's numbness, though, is not altogether surprising. The group at the forefront of the campaign, the ANC Youth League, has become as vociferous as it has grown to be powerful. After all, these are the youngsters that took current South African president Jacob Zuma from the brink of political wilderness to the highest political office in the land. So, for good measure, business is generally reluctant to cross swords with them. Led by their firebrand president Julius Malema, they have become disdainful of everyone and everything—including Zuma and the rest of the ANC's political leadership.
Patrice Motsepe, Johannesburg; 19 August 2011 – Photo by Brett Eloff
For his part, though, Motsepe sounds and looks hardly perturbed. If anything, his demeanor flaunts a level of confidence and optimism, the kind you wouldn't find from a person who stands to lose handsomely if the cantankerous ANC youth was to have its way.
"I grew up hearing those (nationalization) arguments," he says, somewhat nonchalantly. "When the debate has taken place, people will understand that there are some countries that followed nationalization but did not help their people. In fact, the conditions of their people worsened."
"What I take out of the call by the ANC Youth League is the challenge to assess what we are doing as business to help communities. Without a doubt we are not doing enough. ANC people will vote (for or against nationalization at the party's conference) based on their assessment of business performance. They will vote on the basis of what's on their own minds, and that which business doesn't understand."
How Business Should Deal With The Nationalization Threat
What should business be doing to fend off the calls for nationalization?
Motsepe chides business for "not doing enough" to demonstrate to broader society that it is "a committed partner". He believes business should be caring about the welfare of its fellow citizens, just like it cares about share growth, competitiveness and the next dividend.
"But you must understand the culture of business in South Africa. For a very long time business was growing and succeeding without regard for the needs of the people," he explains. "When I sit with business colleagues, I recognize that there are things they don't understand. These are good people, mind you, but they were not brought up in a culture of having an obligation (to listen to the poor)."
The battle to win over the hearts and minds of the people is as important for business as it is for politicians, Motsepe says. If he were to advise captains of industry he would tell them to start off by reaching out to communities in the same way they go out to the market to convince potential shareholders to invest in their businesses.
"The challenge for us is how do we present an argument to our people that makes them understand that indeed this mixed economy that we have now—where there's a globally competitive private sector that coexists side by side with a strong developmental state—is what we need."
A couple of weeks before our interview, Motsepe was in the village of Modikwa in the country's northern province of Limpopo unveiling a $9 million road that his company had just built to connect the remote villages' 100,000 inhabitants to the main provincial road, a project that created thousands of jobs during the 14 months of its construction. The country's deputy president, Kgalema Motlanthe, himself a former secretary general of the National Union of Mineworkers, gave a keynote address while Motsepe had as his special guest nationalization's foremost campaigner and ANC Youth League president, Malema.
There, Motsepe made the point that his company felt "an obligation" to fund the project despite the reservations of his New York-based shareholders, who felt building roads was a government responsibility.
South Africa's post-apartheid government has a proud record that it must uphold, Motsepe says. When the ANC took over the running of the country in 1994, the man who would be the nation's first black state president, Nelson Mandela, took bold steps and settled for sensible, rather than populist, economic policies. Seventeen years on, no less should be expected of leadership, he says. "We should know when we have choice and when we do not. We have to be globally competitive and attractive in whatever we do. And I said this when business met with President Jacob Zuma recently."
The Continent
For a good few years now, ARM has been a sponsor of the World Economic Forum on Africa, probably the main platform where the continent's government and business leaders meet to share ideas and discuss possibilities.
It is where Motsepe has seen a maturing of Africa's leaders, graduating from "a lot of talk, talk, talk" to actually providing the environment for entrepreneurs to flourish.
He cites Ghana, Zambia, Mozambique, Nigeria, and Botswana as exemplary countries where legislators are serious about building infrastructure, fighting corruption, crafting new and progressive laws, focusing on education and providing incentives to business. This new attitude has in turn given space to business to come to the party—building hotels and shopping centers, opening or resuscitating mines and getting into a variety of ventures.
"There's so much good out there. If we continue doing the right things in Africa we can create a very exciting and competitive global market here," Motsepe says, singling out Nigeria for "doing exceptionally well" and being "ready to challenge South Africa's dominance in the next five to 10 years".
Don't South Africans hate the fact that Nigeria is becoming even more powerful? "I'm an entrepreneur, Motsepe says. "I've heard people say South Africans are arrogant, that they act no differently from their colonial masters. That needs to change. It's in your business interest as an entrepreneur to form meaningful partnerships. That's how you do well for your shareholders." As a matter of fact, Motsepe is looking at Nigeria: "We have a private equity fund that's got money in it."
Even prodigal Zimbabwe is on his radar screen. He says it's full of promise. The reason ARM is at present withholding hundreds of millions of dollars in investment into the country is because of "some remaining concerns among shareholders". Motsepe is "confident" the one-time breadbasket of southern Africa's unity government won't waste more time and will get on with the job of providing "the necessary economic, legislative, fiscal, legal and tax changes that'll result in billions of dollars going there".
"I have confidence in mining. I see exciting opportunities in it. Infrastructure in the continent is going to be exciting. I'm also looking at passive investments in energy and ICT."
How do the continent's infamous ills—among them corruption and political pressure—affect his investment decisions?
"If its pressure like you are finding in South Africa, about what are you doing for the poor and the marginalized, about job creation, I welcome that. I actually encourage it. But if it's about things improper, unethical abuse of power—that's unwelcome."
"When there's suggestion of bribes or some other kind of corruption we walk away. I have done so in the past and will do so in future. There's no business in the world that warrants corrupt, improper behavior. It's just not worth it."
Reigniting Africa's Entrepreneurial Spirit
African entrepreneurs have a lot to learn from Indians in terms of "entrepreneurial spirit" and "doing things that are world-class but at significantly lower costs", Motsepe says, while China can teach the continent a thing or two about "work ethic, competitiveness and modernizing", and Brazil has good examples of public-private partnerships.
But Africa is not short of its sources of inspiration, or even role models for that matter, Motsepe says.
Just like America gave its people a Bill Gates and a Warren Buffet, Africa has a Mo Ibrahim and an Aliko Dangote—all of them entrepreneurs whose "huge commitment to the communities they come from" is something to be emulated, for they "realize that their success depends on the improvement of the standard of living of their people".
Mo Ibrahim, the IT billionaire of Sudanese origin, is a philanthropist who, through his foundation supports numerous initiatives that strengthen good governance and which promote exemplary leadership across Africa. He is the founder of Celtel International, a company that now operates in 15 African countries. In 2005 he sold Celtel to MTC Kuwait for $3.4 billion.
Aliko Dangote, whose net worth currently stands at $13.8 billion, is not only the continent's richest individual but also the 51st richest billionaire in the world. He has interests in oil, gas, sugar, flour milling, salt processing, cement manufacturing, textiles, real estate and cement. He is the continent's biggest cement maker, with plans under way to construct plants and build cement terminals in Zambia, Tanzania, the Democratic Republic of Congo, Ethiopia, Sierra Leone, Ivory Coast and Liberia, among other countries.
Entrepreneurs like Ibrahim and Dangote also help debunk the myth that the only way Africans get rich is through corruption and other illicit means, Motsepe says.
"But the biggest mistake we make in South Africa, for instance, is to think that we had no entrepreneurs before democracy."
He wants the history of entrepreneurs in South Africa reconstructed and re-written.
"We had people like Dr Sam Motsuenyane, Richard Maponya, Habakuk Shikwane—who in many ways defied apartheid laws that restricted them and set up successful businesses."
"If playing fields were leveled at the time, it would have been different. It was difficult for those entrepreneurs to even get a general dealer license."
Motsepe's Rise And Rise
Motsepe's own father, Augustine—the man he says had the most influence on him—was in the general dealership business.
"I was six-years-old when I started standing behind a counter helping my father in his shop, and saw him steadily building his business, adding a bottle store, and growing," he recalls.
Motsepe started his primary schooling in Orlando, the Soweto township where he was born. He was later sent to a Catholic mission school. Upon finishing high school, and "with positive pressure and encouragement" from his father, he went to Swaziland University where he would later graduate with a BA degree. After graduation it was back to Johannesburg where he enrolled and passed his LLB.
Articles followed, and later he joined reputable Johannesburg law firm Bowman Gilfillan, specializing in mining and becoming their first black partner.
A few years before South Africa's watershed moment—the country's first democratic elections of 1994—the young lawyer approached mining giants, Anglo American, offering to take over some of the company's loss-making, low-producing marginal mines.
"I said: 'Go and look at some of your deposits. You will see that some will not suit your long life, high-grade asset requirements. I can go in there with people who have history and a track record in small scale mining.'"
"Everyone thought I was crazy", says Motsepe."The mineworkers' union condemned me for wanting to take over old, useless mines."
He persisted, and five years later Anglo gave him what he wanted. He started off by forming a contract mining venture, Future Mining, providing various services to Anglo American's Vaal Reefs gold mine.
Three years later Future Mining would become ARM Gold. Another few years on, Motsepe would purchase a number of other marginal shafts.
An aggressive growth path would follow, underpinned by a series of bigger transactions and mergers.
And the rest, as they say, is history. Suffice to say, ARM's annual profits jumped by 83% for the financial year that ended on the June 30, 2011, following the surge of headline earnings by 94% to R3.3 billion ($471 million).
ARM (share price $26.75) is in fact "under-valued", according to Peter Major, who is spearheading Cadiz Corporate Solutions' mining and resources division. He says that with such a "healthy balance sheet and not much debt", Motsepe's "well-managed" company is "a good buy".
The Role Of SA's Bee Laws In Motsepe's Rise And Rise
"I have never had a government tender," Motsepe says with glee.
"Of course, if there was no democracy in South Africa, opportunities that opened wouldn't have opened. But if you look at every transaction we did, there was no empowerment."
So what has made ARM so successful?
The company's "lean, mean management structure" is the first reason Motsepe gives.
A bit of innovation and creativity also played a part, he says: "When Anglo closed down mines and retrenched 8,000 workers, we went to the National Union of Mineworkers and said we'd take 6,000 people, pay them less, but you'll share in the profits. The workers agreed. If they didn't buy in we would not be here."
But what did ARM do right, that which Anglo could not do?
"Anglo had high grade mines. Issues of efficiency are a bit of a luxury when you come from a culture of abundance", he replies, "running marginal mines is a humbling job—it's do or die."
Going to bed, instead of competing with rival Harmony was also one of the best things ARM did, Motsepe explains: "When Anglo was diversifying and didn't want to be just in South Africa, (Harmony CEO) Bernard Swanepoel would better my offer whenever I made a bid. He was listed and therefore had access to finance. I wasn't listed and I got finance expensively". When both companies got an opportunity to bid for Freegold, Motsepe says he went to Swanepoel. "I said: 'The only person who benefits by us paying more, is Anglo.' We then merged ARM Gold with Harmony, went to Anglo and got a good deal."
Key To Motsepe's Success… And His Major Weakness
The key to his success is the question Motsepe says he always asks himself: "Can you hold your own against the best in the world?"
He also credits his parents: "My parents insisted we should always be seen as people who are respectful, never forget where we come from and more importantly, that we are part of the challenges that face our people. I wouldn't be here if it wasn't for the way they brought me up."
All the businesses' management teams comprise of the best people his money can buy. "My policy is hire the best and pay them well."
No wonder he honors all the invitations to gatherings of the world's top 1,000 CEOs and sits on several boards, including the JP Morgan Advisory Council.
But then who wouldn't want to court the man CEOs of the top 100 companies in South Africa voted South Africa's Business Leader of the Year in 2002, the same year he traveled to Monaco to receive the Ernst & Young Best Entrepreneur of the Year Award?
ARM, of which Motsepe is executive chairman, sits pretty. Now a global company with a presence in several African countries, it boasts a portfolio that includes interests in gold, platinum, nickel, chrome, iron, manganese and coal.
Even though the recession devoured some of the company's shares, wiping out $319.5 million in 2009 and $236 million in 2010, Motsepe can still afford his biggest indulgence: soccer.
"I'm passionate about football," says the owner of Mamelodi Sundowns—one of the four biggest teams in South Africa's Premier League and one that reportedly pays the best salaries in the business.
"We went mainly into soccer not to make money but as means of giving back. Of course we never thought we would lose so much money. But it's important for people to know they can relate to you, that you are not an arrogant, wealthy, aloof, uninvolved person."
At what cost? "Millions of rand a year," he says.
And how does he feel about pouring that much into what appears to be a bottomless pit? "It's OK", he says, curling his lip and shrugging his shoulders. "People must see you as someone who is fallible, who also makes mistakes. I'm a sinner. I fumble. People must see me as one of them. The things that worry them must worry me. Other than being miserable watching Sundowns, I have very little else. I have one home and not even one holiday home. I fly around the world a lot, all the time, and I spend a lot of money doing it. I was resisting it, but it's going to be imperative to get a private jet. It's unavoidable. The problem is those things are expensive."
One day, when he is no longer a permanent feature of business life, how would Patrice Motsepe like to be remembered? The way you would remember his heroes Nelson Mandela and Oliver Tambo, he says.
"Great Africans are not judged by how much money they have—but what they've done for their people."
Sign Up for Our Newsletter Daily Update
Get the best of Forbes Africa sent straight to your inbox with breaking business news, insights and updates from experts across the continent.
Get this delivered to your inbox, and more info about about our products and services. By signing up for newsletters, you are agreeing to our Terms of Use and Privacy Policy.
Related Topics: #Mining, #Nationalization, #October 2011, #Patrice Motsepe, #Peter Major.


Victims of Hurricane Katrina struggled to communicate with each other and the rest of the world yesterday, using everything from text messages to ham radio as most telephone service in New Orleans and coastal Mississippi remained devastated.
The near-blackout left outsiders desperate for news about loved ones, and in some cases created life-and-death situations as aid workers struggled to get information about people stranded by rising floodwaters in New Orleans.
Phone companies had trouble even comprehending the extent of damage to their systems because they could not get into some parts of the region. One telephone executive said the storm might have caused unprecedented damage to a communications infrastructure that people have come to take for granted.
BellSouth Corp., the dominant local telephone-service provider for the region, with a network that is also vital to wireless telephone systems, said as many as 1.75 million customers along the Gulf Coast may be without service. One reason the networks will be so difficult to restore is that damage to wireless towers and copper, coaxial and fiber-optic lines could be spread across an unusually wide section of the country, from the Florida Panhandle to Louisiana.
The loss of service left residents nearly as frantic for communications as for food and shelter.


text:
Q: Use Swift Playground with BLE and HM-10 I'm currently trying to build a swift playground that can communicate with a HM-18 BLE module.
I'm new to swift. I just don't get the delegate thing and what objects I need to assign there (???).
Let me break down one line and explain what parts I think I understand:
let managerDelegate: PlaygroundBluetoothCentralManagerDelegate = ???
Let declares a constant with the name managerDelegate which must be of type PlaygroundBluetoothCentralManagerDelegate
I just have no idea what comes after the =
This is my code so far:
import CoreBluetooth
import PlaygroundBluetooth
import PlaygroundSupport

// Create State enum (shape)
enum Shape: String, CaseIterable {
    case on, off
}

struct ContentView: View {

    // Get all cases
    let LEDStates = Shape.allCases

    // State Variable (state binding observables -> learn)
    @State private var selectedStateIndex = 0

    // I dont get this part from: https://developer.apple.com/documentation/playgroundbluetooth/connecting_to_bluetooth_peripherals_in_swift_playgrounds

    let managerDelegate: PlaygroundBluetoothCentralManagerDelegate = ???

    let manager = PlaygroundBluetoothCentralManager(services: nil)
    manager.delegate = managerDelegate

    let viewDelegate: PlaygroundBluetoothConnectionViewDelegate = ???
    let connectionView = PlaygroundBluetoothConnectionView(centralManager: manager, delegate: viewDelegate)
    connectionView.dataSource = viewDelegate

    // Place the connection view within the rest of your page's content.
    let page: UIViewController & PlaygroundLiveViewSafeAreaContainer = ???
    page.view.addSubview(connectionView)

    // Position the connection view in the top right corner.
    connectionView.topAnchor.constraint(equalTo: page.liveViewSafeAreaGuide.topAnchor, constant: 20).isActive = true
    connectionView.trailingAnchor.constraint(equalTo: page.liveViewSafeAreaGuide.trailingAnchor, constant: -20).isActive = true

    // This I understand
    PlaygroundPage.current.liveView = page
    var body: some View {

        ZStack(alignment: .bottomTrailing) {

            Picker("LED State", selection: $selectedStateIndex) {
                ForEach(0..<LEDStates.count) { index in
                    Text(self.LEDStates[index].rawValue).tag(index)
                }
            }.pickerStyle(SegmentedPickerStyle())
            .padding(10)
            .background(Color.black.opacity(0.5))
        }
    }
}

PlaygroundPage.current.setLiveView(ContentView())


text:
Last Update April 28, 2016
Florence Henderson talks 'tough' childhood, why she became a hypnotherapist
By | New York Post
Shocking 'Brady Bunch' hook-ups
Pop-U-List: On-screen, Brady romances were rated G. Off-screen,the 60's family couldn't keep their hands off each other.
Florence Henderson is best known for her role as the picture-perfect matriarch of "The Brady Bunch," but art didn't imitate life when it came to the actress' own upbringing.
"I portrayed Carol Brady as the mom I always wished I had," Henderson told Page Six ahead of her Thursday evening appearance in the American Heart Association's Go Red For Women Red Dress Collection show at New York Fashion Week.
"I was my mom's 10th child and I was born on Valentine's Day, but I don't think I was a love child," she said with a laugh. "I'm very happy to be here, but I think there wasn't much affection."
Henderson, who turns 82 on Sunday, remembers her childhood as "very tough," growing up in an impoverished family in Indiana.
"I wanted to portray Carol as a loving, fun, affectionate mother and it seemed to resonate with a lot of people who maybe had the same situation I did growing up," added Henderson.
Given the TV classic hasn't been off the air since its 1969 premiere, "The Brady Bunch" has touched the lives of generations — including Michael Jackson, who once approached her during the intermission of a show they were both attending.
"I receive so much affection," she said. "People say what is the question you're asked the most and I say it's 'can I have a hug?' I've hugged people all over the world."
Henderson recognizes the joy she's given to the world with her onscreen art and continues to help friends and family with her training as a certified hypnotherapist, which stemmed from a fear of flying and stage fright early in her career.
"I developed the two things you don't want to have in show business," she admitted. "A friend told me about hypnotherapy and I thought 'oh that's kind of scary,' but I called this doctor and I was helped so quickly."
The actress has used her two-year training in the craft to help loved ones cope with illness and prepare for death, which she calls "a great privilege."
"I think what happens when you grow up poor, as you get older you want to amass everything and keep everything for yourself," she opined. "Or you know how that feels so you want to give back. So thank God [the latter] happened to me."
This article originally appeared in the New York Post's Page Six.


The award has been established for years to honor excellence in creative advertising.
This year, they offer both online and offline categories and each recognises a specific area of excellence. Winner will be announced at the Apple Daily Creative Awards ceremony on 29 October 2015 at Harbour Grand Hotel Hong Kong.
Apple Daily revolutionized news reading habits by creating Action News which attracted millions of readers around the world.
Their creativity also extended onto their advertising platform where they constantly develop new digital ad formats than leverage on the latest technology to cope with advertisers need. Their effort in creativity and innovative led them to become the top 10 most visited website in Hong Kong.
"We believe creativity is at the heart of advertising as well as the key to business success. So if you come across a creative advertisement and think they deserve special recognition for their effort, we want to hear about them." said Carina Yip, General Manager – Digital Sales of Next Mobile Limited.
In the second season of SPH's PSB digital content, more than 120 short-form original videos will be released across 16 programme t..
Is it always a good idea for politicians to be on social media?
Prime Minister Najib Razak has the biggest social media following of any Malaysian politician, but it looks like the social strate..
Consumers are now quick to recognise brands which are there for the right reasons and not just abusing Schooling's name for some q..


text:
Seattle Startup Buzz
Qliance ready to disrupt health insurance
By dave_chase on November 6, 2009 at 6:07 AM
If one hasn't worked in a patient accounting role in a medical facility, it is hard to imagine just how screwed up our health payment system is. It makes a Rube Goldberg contraption look decidedly Toyotian. How do I know this? I started my career at what is now Accenture. Much of my time there was spent putting in systems and working with the patient accounting departments of hospitals to streamline their processes. Later on, I started Microsoft's health business.
It was mind-blowing to observe such a messed up system and thus it is no surprise that 40 cents of every medical dollar goes to admin overhead/insurance. I'm a free market guy but observing what was going on had me seriously considering that some kind of government system might be the only way out of this mess. That is, until I heard about "concierge medicine" several years ago. Rather than focus on the fact that it was initially being delivered to the wealthy, I thought it wouldn't be much different than flat screen TVs. That is, initially only the wealthy could afford it but the model would rapidly evolve and be available to the masses at a much more approachable price point after it proved itself.
Seattle-based Qliance is looking to do just that. The Milken Institute Review recently profiled Qliance and this trend. The fact that Second Avenue Partners (Pete Higgins, Nick Hanauer et al) is backing them gives them credibility.
Hat tip to Nick for pointing this out to me. Here's the intro to this article.
Could there be a low-cost, high-quality fix for much of what ails American health care – a fix that requires no new legislation and no additional taxes? Could such a fix also help stem the exodus of primary-care physicians from medical practices and restore the personal relationship between patients and doctors? And could it possibly originate in Seattle, the city that gave us grunge rock and entertains tourists by throwing fish?
The idea calls for a momentary suspension of disbelief. But a small Seattle medical practice called Qliance Medical Management has a novel business model that could have broad consequences for health care. Qliance is the leading practitioner and proponent of what it calls "direct primary care." Patients pay a flat retainer fee that comes to about $2 a day for a bevy of services including 24/7 access to primary-care physicians, same-day or next-day appointments, in-office X-rays and basic lab work. Visits are an unhurried 30 minutes, and prescriptions are filled by a low-cost pharmacy next door. No insurance, no intermediaries between doctor and patient.
Dave Chase


Keralapschelper.com is presenting a General Knowledge Questions asked for selection of RBI Officers in Grade B Phace 1 Examination Previous Questions held on 16-08-2018.
6. In which of the following cities was 10th BRICS summit held?
8. Prime Minister Narendra Modi unveiled a bust of India's first home minister Sardar Vallabhai Patel at the Indian community event held in which of the following cities?
10. The Shanghai Cooperation Organisation [SCO] Summit was held in Qingado city in which of the following countries this city is located?


The Crystaldust Wide Bangle features a modern three-spiral wrap design and is crafted using Swarovski's Rolled Crystal Rock technique with blue crystals. Lavishly encrusted for unparalleled summer sparkle, it is finished with stainless steel crystal-capped ends. Wear alone for glamorous impact or layer with others for a high-octane look. A new silhouette for a new season.
One pair of 18kt yellow gold diamond earringsEarrings features stud style design with push lock back..
One pair of 18kt yellow gold diamond earringsEarrings features pear shape design with screw back loc..


Choose a topic from the drop-down menu below to access relevant information.
Please read the following information, which sets out the basis upon which access to the Brown Shipley & Co. Limited website ('Site') and Online services is made available. The information on this Site is intended solely for people who are resident in the United Kingdom for tax and investment purposes and should not be relied upon by any other persons outside the United Kingdom.
1.1 Certain areas of the Site ('Private Area') will only be available to you if you are our client and have accepted our Terms in writing. See paragraph 9 for registration procedures.
1.2 Whilst we will endeavour to retain the Site as operational, certain technical difficulties may arise from time to time which may result in service interruption, therefore we can give no guarantee that our Site will remain available for access at all times.
2.1 Brown, Shipley & Co. Limited ('Brown Shipley', 'we' or 'us') or our licensors own all copyright and other intellectual property rights in relation to the material and content available on the Site or which is sent to you by e-mail ('Material') and in relation to the services offered and the concepts reflected in the Site ('IPR'). Material is available for your sole use and shall not be used by you for any commercial purposes. Except as expressly permitted, you are not entitled to reproduce, modify or in any other way use or supply the Material.
2.2 You acknowledge that it is your responsibility to evaluate Material and that you are not to place any reliance upon the completeness, accuracy or usefulness of any Material or any opinion expressed by us on the Site. Nothing on the Site should be taken to constitute a recommendation by us or to constitute advice by us to you, it being your sole responsibility to take your own professional advice in relation to such Material.
Brown Shipley is a trading name of Brown, Shipley & Co. Limited, which is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority. Brown Shipley's parent company is KBL European Private Bankers (KBL), which, from Luxembourg, heads a major European network of private bankers.
Registered in England and Wales No. 398426. Registered office: Founders Court, Lothbury, London EC2R 7HE.
We emphasise and draw your attention to the fact that any investment involves potential risks. You should be aware that past performance is no guarantee of future performance and the value of investments and the income from them can fall as well as rise and may be affected by exchange rate movements between currencies. An investor may not get back the original amount invested. Any tax relief mentioned is that currently available, subject to change and dependent upon individual circumstances.
Brown Shipley is a participant in the Financial Services Compensation Scheme established under the Financial Services & Markets Act 2000 which, subject to certain exceptions, provides limited compensation in respect of eligible liabilities if we are declared in default. Most deposits, including those made by individuals and small firms, are protected by the Financial Services Compensation Scheme. Where you make a deposit with us, payments under the scheme are limited to 100% of the first £85,000 of your total deposits with us. For joint deposits both partners would be eligible to receive up to a total of £85,000 each. Further information can be obtained from the Financial Services Authority Compensation Scheme.
If you are in any doubt about the information contained in this website or you are unsure whether any of the investments are suitable for you, we strongly recommend that you contact your financial adviser, your stockbroker, lawyer, accountant, bank manager or other professional adviser.
All copyright and other intellectual property rights in relation to the Site are our property or the property of our licensors and all rights are reserved. You shall not copy, reproduce, transmit, store or modify the content of this Site or use any such trademarks or trade names, including but not limited to our registered trademark Brown Shipley, without our prior written consent.
You may be entitled to link from the Site to the websites of third parties ('Third Party Sites'). We have no control over the content of such sites and therefore cannot accept any responsibility for any material that is accessible from such sites and cannot guarantee that such sites will remain available for access. In particular, but without limitation, we have no liability to you in respect of any loss or damage that you incur through placing reliance upon any information or material accessible on such sites or as a consequence of you being unable to link to Third Party Sites from our Site. You will not create any hypertext links to any part of the Site without our prior approval.
We may, at our sole discretion, change these Terms. If we do so, we shall post a change notice on our Site indicating the change and by continuing to access the Site, you shall be deemed to have accepted such change.
Under the money laundering regulations we are required to obtain evidence of an investor's identity. The services to be provided by us and any investments are subject to satisfactory documentary evidence of identity.
We comply with the EU General Data Protection Regulation 2016 ("GDPR") and other applicable UK data protection and privacy legislation. We will process and disclose personal datathat you provide to us or that we obtain about you in visiting our Site and/or during your relationship with us as a client as detailed in the Site Privacy Notice.
Access to the Private Area of the Site is only available to our clients who have accepted our Terms in writing and who have been accepted by us for registration. We reserve a total discretion as to whether or not to accept clients for registration. Registration can be withdrawn at any time by us notifying you in writing.
Should you purchase products or services from third parties who offer such products or services for supply on the Site or any Third Party Site or should you have any business dealings with any person whose details are available through the Site or any Third Party Site then such purchases or dealings are carried out at your sole risk and we have no responsibility or liability for any loss or damage that you suffer as a consequence thereof.
The nature of the World Wide Web is such that the Site can be accessed by users from any part of the world and it is therefore your responsibility to ensure that you comply with all applicable laws regarding access to the Site, services and/or use of information contained on the Site, including the transmission and export of technical or other data anywhere in the world. We give no warranties, express or implied that the services and/or information available on the Site (or the availability of such services or information) are in compliance with the applicable laws or regulations of any jurisdiction other than the jurisdiction applicable within the United Kingdom. If it is prohibited to make the information available in jurisdictions outside of the United Kingdom, then such services or information are not directed at such jurisdictions.
12.1 Your use of our Site is at your sole risk. We give no warranty or guarantee as to the accuracy, completeness or relevance of the information available on the Site and, to the fullest extent permitted by law, we exclude all warranties, conditions and other terms implied by statute or law with respect to the services and your use of the Site. We shall have no liability to you other than as may expressly be provided for herein.
12.2 Whilst we will use our reasonable endeavours to maintain the services, we cannot give any guarantee, warranty or undertaking that the services will remain available, will meet your requirements, or that access to the Site will be or remain secure, uninterrupted or error free. It shall be your responsibility to ensure that the services and any products, services or information available through the Site (or any Third Party Site) meet your specific requirements.
12.3 Should you download any material from our Site then this shall be done at your entire risk and Brown Shipley will not be responsible for any damage to your computer, loss of data or other loss that results from such downloading.
13.1 Without prejudice to any other exclusion or limitation contained within these Terms, we have no liability to you in contract, tort (including negligence or breach of statutory duty) or otherwise for any indirect, special or consequential losses or exemplary damages or for any loss of profit, revenue, turnover or bargain or for loss of data which arises in any way from you accessing the Site, using the services, purchasing products or services through the Site or Third Party Sites or from downloading any material from the Site or Third Party Sites or otherwise.
13.2 Should the laws of any jurisdiction not permit the exclusion or limitation of liability as set out in paragraphs 11 or 12 then, to the extent that such exclusion or limitation is not permitted, the relevant provision shall not apply in that jurisdiction.
13.3 Nothing in these Terms shall be taken so as to exclude or limit our liability for death or personal injury caused by our negligence. Your statutory rights as a consumer are not affected by any of these Terms.
14.1 These Terms and our relationship with you shall be governed by and construed in accordance with English law.
14.2 Subject to any overriding rule of law affording exclusive jurisdiction to the courts of any other country in relation to any dispute between us, the English courts shall have exclusive jurisdiction in relation to that dispute.
14.3 Reference in these Terms to a person shall include individuals, companies associations, and partnerships.
14.4 Reference to any English term for any action, remedy or judicial proceeding, legal document, legal status, court official or any legal concept or thing shall in respect of any jurisdiction other than England be deemed to refer to what more nearly approximates in that jurisdiction to the English term.
15.1 Some content shared by Brown Shipley on our LinkedIn / Twitter feed is for professional investors and advisors for information purposes only, this may include links to, or extracts from information provided by third parties. This may include links to information containing expressions of opinion issued by those third parties. Where we do provide such links, this is for information only, and we do not endorse any information, expression of opinion or any material whatsoever accessed in this way. No views expressed in any material accessed via this Twitter page comprise our own views, or those of any director or employee of Brown Shipley. Given this, we accept no liability for the material accessed in this way, for any actions of any nature taken by any person as a result of accessing it, or for any direct or consequential loss arising as a result of this LinkedIn or Twitter page or any material accessed as a result of its use.
Through LinkedIn and Twitter, where we provide links to third party material where a Spokesperson(s) or employee of Brown Shipley has expressed a view or an opinion then we ask all investors to be aware that this information is provided by Brown Shipley to professional investors and advisers for information purposes only. It does not constitute investment advice and should not be treated as a recommendation for investment. Past performance is not a reliable indicator of future results. The value of an investment and any income from them may fluctuate and are not guaranteed. The yield generated is subject to fluctuation and is not guaranteed. We always recommend that advice is obtained from a suitably qualified and experienced, regulated financial adviser prior to participating in financial markets.
Brown Shipley is a trading name of Brown Shipley & Co Limited, which is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority. Registered in England and Wales No. 398426. Registered Office: Founders Court, Lothbury, London, EC2R 7HE. Brown Shipley's parent company is KBL European Private Bankers which, from Luxembourg, heads a major European network of private bankers.
We emphasise and draw your attention to the fact that any investment involves potential risks.
The value of investments and any income from them may fluctuate and is not guaranteed.
Investors may not get back the amount originally invested. Currency fluctuations may cause the value of underlying investments to go up or down.
References to taxation referred to on this site are those available under current legislation, which may change, and their availability and value depend on individual circumstances. Brown Shipley does not provide tax advice and investors should refer to their tax adviser for information on the effect of tax legislation on their individual circumstances.
Brown Shipley is a participant in the Financial Services Compensation Scheme established under the Financial Services & Markets Act 2000 which, subject to certain exceptions, provides limited compensation in respect of eligible liabilities if we are declared in default.
We take online security very seriously. Here we describe the measures we have taken to protect your information and also list some simple practices that you should follow to help ensure that security is not compromised and attempts at fraud are minimised.
Your adviser (and team) does not have access to this information. If you have lost or forgotten any of the three levels of security you will need to contact us by email at mbs.support@brownshipley.co.uk or by calling 020 7320 3662 (Monday – Friday between 9am – 5pm).
To ensure that your personal details and financial information remain safe, make sure you follow these simple procedures and practices.
Watch out for fraudulent e mails that look as though they come from Brown Shipley. They will ask you for personal information and/or redirect you to a site that asks for your security details. Do not respond to these.
Ensure that you are logging on to our secure site by accessing it through the My Brown Shipley.
Be alert for scams. There are lots of them about and they will often involve someone masquerading as a Brown Shipley official and trying to deceive you into parting with some money. If you suspect fraud is being conducted using the Brown Shipley name then please send us details immediately to info@brownshipley.co.uk.
Brown Shipley is committed to providing the highest level of service to our clients. Unfortunately, mistakes can happen and we may fail to meet your expectations. If for any reason you are not entirely satisfied with any aspect of our service, we would like to hear from you. That way, we can make relevant enquiries, endeavour to put things right for you and improve our service.
This page explains how any complaint that you may have will be dealt with by us.
You may wish to address your concerns directly to your adviser or alternatively you may refer it to our Business Assurance team who are ultimately responsible for handling complaints. Regardless we will endeavour to deal with your complaint thoroughly and promptly.
On receipt of your complaint we will undertake a full independent review. Our aim is that your complaint will be resolved as quickly as possible by staff that possess the right experience, knowledge and authority.
Where it is possible to resolve your concerns within three working days Business Assurance will subsequently write to you acknowledging your complaint and confirm the basis on which it has been resolved (this is known as a summary resolution letter). The purpose of this letter is to ensure you are satisfied with the outcome.
Following our investigation we will send you a final response letter confirming our decision and the rationale for this.
The majority of complaints we handle fall within the FCA's dispute handling rules and in the event that we have not resolved your complaint at the end of eight weeks, we will write to you giving reasons for the delay and informing you when our response is likely.
Unregulated complaints, for example trusts over £1m are not beholden to regulatory timescales however we will still contact you after eight weeks if we have been unable to resolve your complaint.
Complaints relating to payment services will receive a notification letter as above after 15 working days if we have been unable to resolve your complaint within that time.
Complaints relating to data protection issues will receive a notification after 40 days if we have been unable to resolve your complaint.
We aim to resolve all complaints internally to your satisfaction. On regulated complaints if we have been unable to resolve your complaint within eight weeks of receiving it (or 15 working days for payment service complaints), or should you be unhappy with our final response, you can request a review from the Financial Ombudsman Service ("FOS").
Unregulated complaints are likely to fall out of the scope of FOS to investigate however we will confirm the option of referring to them so they can make a decision on jurisdiction. Complaints relating to SSAS administration are likely to come under the auspices of the Pension Ombudsman Service and we will provide their contact details on acknowledging your complaint.
Data protection complaints may fall under the jurisdiction of the Information Commissioners Office and we will confirm details on acknowledging your complaint.
If you wish to complain about any aspect of the Brown Shipley Funds (i.e. any of the Brown Shipley Multi Asset Funds or Brown Shipley Sterling Bond Fund) then please, in the first instance, forward your complaint to Smith & Williamson Fund Administration Limited (trading as St Vincent St Fund Administration) who act as the Authorised Corporate Director (ACD) for the above mentioned funds.
Brown Shipley is a trading name of Brown Shipley & Co Limited, which is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority (12 Endeavour Square, London, E20 1JN) and the Prudential Regulation Authority. Registered in England and Wales No. 398426. Registered office: Founders Court, Lothbury, London EC2R 7HE. Brown Shipley's parent company is KBL European Private Bankers which, from Luxembourg, heads a major European network of private bankers. Telephone calls may be monitored for security purposes.
To help us improve our service we record or monitor all telephone conversations with you for regulatory purposes. Our telephone records and e mail communications will be retained for a period of at least seven years. You may request access to the records we hold.
Our Order Execution Policy describes how we consider and treat our customers fairly when buying and selling investments on their behalf. Please download a copy of our policy by clicking here.
Our Annual Best Execution Disclosure provides information around execution venues and the quality of our order execution. Please download a copy of our disclosure here.
To participate in the Verified by VISA Service, click here.
To view the VISA Infinite Travel Insurance Benefit Schedule, click here.
Please download a copy of our VISA Infinite Terms and Conditions by clicking here.
The Fee Information Document can be downloaded here.
Please note: Brown Shipley Payment Services do not include telephone, mobile or internet banking.
• within 8 days for 99% of customers.
These figures are based on the time taken from when we first receive an application to open the account.
• within 13 days for 99% of customers.
Brown Shipley does not offer a debit card for its current accounts.
Brown Shipley does not offer internet banking.
Brown Shipley does not offer overdrafts as a feature of its current accounts.
Such facilities are considered by separate application.
Please click here to download a glossary of the terms we use when describing your payment account.
Brown Shipley is committed to addressing the requirements of the UK Modern Slavery Act 2015 (the "Act"). We acknowledge the undertakings in the Act and the risks of modern slavery, and will aim to create a culture of transparency with regards to the supply of goods and services to us.
This statement is made pursuant to section 54 of the Act and constitutes the Company's modern slavery and human trafficking statement, as required by the Act, for the financial year ended 31 March 2019.
Brown Shipley has six offices across the UK and its parent company is KBL epb based in Luxembourg. We believe that the current business practices and corporate structure operate free from risk in relation to modern slavery, however we recognise that there is work to be done to be able to evidence the full requirements of the Act. We are committed to the highest standards of integrity and ethical behaviour and our policies and practices reflect this.
We are committed to ensuring that our supply chain is free of any slavery and/or human trafficking. We will not knowingly support and/or do business with any suppliers who are involved in slavery.
Ensure that all their representatives (including employees, agents, suppliers and subcontractors) conduct business with and/or on behalf of Brown Shipley in accordance with the our procedures.
We recognise that training is fundamental to raising awareness of modern slavery issues, and will identify relevant online training and appropriate guidance to provide an understanding of slavery.
Such training will be rolled out to key stakeholders who will be made aware of how to identify, manage and report risks.
We already have culture and ethics training and whistleblowing policies in place encouraging employees to behave in a responsible and professional manner and to speak up in instances where this behaviour is not observed.
The responsibility for adherence to this policy will lie with all employees who interact with the third party suppliers. Employees who are aware of, or suspect, any violation of the Act will be required to report such conduct to HR or Legal. Brown Shipley's Whistleblowing Policy encourages all employees to raise concerns and/or disclose information without fear of retribution.
Effective procedures for employees and/or suppliers to escalate modern slavery concerns.
This statement, which will be reviewed annually and updated as required, has been reviewed by key stakeholders and has been approved by the Brown Shipley Board on 14 February 2019.


text:
Q: delete cart since cronjob in Magento Hi i thy to delete all cart of customer, i don´t get it since cornjob, i put this in a controller and work fine
    require_once($_SERVER['DOCUMENT_ROOT'].'/app/Mage.php');
$app = Mage::app();
Mage::getSingleton('core/session', array('name' => 'frontend'));

Mage::getSingleton('checkout/session')->clear(); // Try this

foreach( Mage::getSingleton('checkout/session')->getQuote()->getItemsCollection() as $item ){
 Mage::getSingleton('checkout/cart')->removeItem( $item->getId() )->save(); // or try that
}

header('Location: /'); // send them back to root (or /magento/ if stored in a subfolder)

or
foreach( Mage::getSingleton('checkout/session')->getQuote()->getItemsCollection() as $item ){
Mage::getSingleton('checkout/cart')->removeItem( $item->getId() )->save();
}

but don´t work in a cron.
who is the problem?

A: Cronjobs are not run from within a single user's session, so calls like Mage::getSingleton('checkout/cart') will not retrieve a user's cart. You'll need to invoke each user's particular cart in order to clear it from cron.
Hope that helps!
Thanks,
Joe

A: Try this Mage::getModel('sales/observer')->cleanExpiredQuotes();
This is already a cron schedule function. Go to System -> Configuration -> Sales -> checkout -> Shopping Cart settings and set "Quote Lifetime (days)" as per your requirement.
This will clear already processed order cart entries. To remove all cart entries (Processed/unprocessed) Just override the above observer function and
replace
$quotes->addFieldToFilter('is_active', 0);
with
$quotes->addFieldToFilter('is_active', array(1,0));
Hope this helps!


The Kessler REVOLUTION Pan and Tilt System is the best answer to the need for an affordable, quality motorized pan & tilt head. After two years of development, Kessler has produced a motorized head that addresses the failings of other pan / tilt heads in this price range. When paired with the ORACLE Controller, the REVOLUTION is the most feature rich and best motorized head solution on the market, for under $5000.
NOTE:You can use the TILT and SLIDER function independently with the same controller. You will need the Crossover Cable & Coupler to access the PAN function while using the slider.
– Billet aluminum with stainless steel hardware construction.
– Dual motors for each axis, provide zero backlash and 100% holding power (no drifting).
– Continuous 360 degree movement on both pan and tilt.
– Superior Dynamic Range. Unit is both faster and slower than other heads at similar price point.
– Ball bearing and belt drive to eliminate gear to gear noise.
– Pass-through axle points, for easy cable routing.
– Cabling is with included CAT5 / CAT6 cable with RJ45 connectors (standard network cable).
– Unit Weight: 10 lbs.
– Weight Capacity: 20 lbs.
– Backlit LCD display with menu and setting values.
– Fully adjustable controls for Max Speed, Dampening, & Dead Band.
– Movement Recording / Memory Function with three memory banks.
– Built-in intervalometer with stand alone, continuous motion, shoot-move-shoot, & stop motion modes (requires Camera Control Module accessory).
– 2nd axis control while in "Slider" Mode. Control slide and one axis of Revolution Head or Turntable with one ORACLE controller.
– Cabling is CAT5 / CAT6 cable with RJ45 connectors (standard network cable). NO EXPENSIVE PROPRIETARY CABLES!!
– Powered by standard AC power supply with wall plug, or optional 12v DC adapter and battery pack.
As of firmware v2.06.1SL, you can control the elektraDRIVE motor of a slider and one axis of the Revolution Head or the Turntable while in slider mode. To perform 3-axis movements with both the Revolution Head and a elektraDRIVE motor for a slider at the same time, you will need two controllers.
Rent the Kessler Motorized Revolution Pan and Tilt Head from Deck Hand Camera Rentals today!


I have no financial interests, just a happy customer.
Thank you for those 2 links - whilst not in the market for buying anything myself - nice to see that such skills exist.
They look very nice - a complete rod with either all blue or green rings! Or a rainbow rod with different colours!!
Appreciate the links and perfect timing!


We Repair All Makes and Models of Domestic / Imported Cars, Trucks, Vans and SUVs. The Phil Long Collision Center represents the finest state of the art automotive repair facility in Colorado. Excellence in our work and the personal attention of our friendly and professional staff assure you peace of mind whenever a need for automotive repair work should arise. Since 1945, Phil Long has been helping our customers with all of their automotive needs. Phil Long Collision Center in Colorado Springs, CO is your one-stop auto repair facility. We'll have your car or truck damage repaired and looking like new. We'll work with your insurance company and have you back on the road quickly. When you need vehicle repair work - on ANY make or model, just say "Take my vehicle to the Phil Long Collision Repair Center." We are the only Mercedes, Audi, and Ford Aluminum body Certified Collision Center in Southern Colorado.
We'll take care of everything!


Smart, sharp, laugh-out-loud comedy for adults sick of being scolded by celebrities and policed by children. Brexit, Trump, Meghan Markle, Hollywood dementia – Mills breaks it all down and gets you through the coming apocalypse feeling dynamite! 'A comedic anglerfish, he lures his audience in with deceptive warmth before pouncing with incisive wit' **** (Fest). 'A superior act. Politics to surrealism... an hour in his company is an indulgent delight' **** (Chortle.co.uk). 'The performance, the material and the gravitas – it's all there. Essential viewing' ***** (BroadwayBaby.com).


This simple shawl pattern is easily modified for different seasons. The long, isosceles triangle shape makes it easy to wrap around the shoulders.
Double crochet 2 stitches together (decrease) (dc2tog): *Yo, insert hook in next st, yo and draw up a loop, yo and draw through 2 loops. Repeat from * once more. Yo and draw through all 3 loops.
Double crochet 4 stitches together (decrease) (dc4tog): *Yo, insert hook in next st, yo and draw up a loop, yo and draw through 2 loops.* Repeat from * to * 3 more times. Yo and draw through all 5 loops.
Shawl is crocheted side to side in increasing rows to midpoint, and then decreasing rows to opposite edge. Adjust the size by changing the length to the midpoint.
Edging is crocheted in rounds and then rows.
Ch 2 at beginning of rows does not count as stitch.
Move up markers for each round/row of edging.
Row 3: Turn, ch 2, dc in same st and in each st across.
Rows 5-60: Repeat Rows 3 & 4 28 times, or until shawl measures approximately 28" (71 cm).
Row 61: Turn, ch 2, pm around turning ch to mark center row, dc in same st and in each st across.
Row 63: Repeat Row 3.
Repeat Rows 62 & 63 until 4 sts remain.
Final Row: Turn, ch 2, dc4tog, do not fasten off, pm in dc4tog to mark edge.
Rnd 1 (RS): Turn, ch 1, begin worked along angled edge, 2 sc in edge of each row to center marked st, (2 sc, ch 2, 2 sc) in edge of center row, 2 sc in edge of each row to beginning marked st, sc in first ch, turning to work along long straight edge, 2 sc in edge of each row to first st, sc in same st, fasten off MC.
Row 1: With RS facing, join CC with sl st to last st of Rnd 1, ch 1, sc in same st, *ch 3, skip 1 st, sc in next st* across angled edge to marked ch-2 sp, (3 dc, ch 3, 3 dc) in ch-2 sp, sc in next st, repeat from * across to marked st.
Row 2: Turn, ch 4 (counts as sc plus ch-3 sp), *sc in next ch -3 sp, ch 3 across to last ch-3 sp, sc in ch-3 sp, ch 3, sc in last sc.
Row 3: Turn, ch 1, sc in same st, *ch 1, skip (sc, ch-3 sp, sc), in next ch-3 sp work (dc, ch 3, sl st to first ch, ch 2, dc)* across to center, skip 2 ch-3 sps, (2 dc, ch 3, sl st to first ch, ch 2, 2 dc) in center sc, skip 2 ch-3 sps, repeat from * to * across, ending with sc in first ch of ch-4 st, fasten off CC.
With tapestry needle, weave in ends. Wet or spray block.
I'm struggling with pain. Can you suggest some exercises? I am not sure if what I'm doing is helping or hurting.


text:
Q: PHP Format string like a chemical formula What is the best way to convert a string such as CO2 and make it output CO2 via PHP?

A: Use preg_replace() to surround groups of digits with
$input = "CO2";
echo preg_replace('/(\d+)/', '$1', $input);

// Using $input = "H2SO4";
// Prints:
H2SO4

A: This will correctly NOT sub some of the digits.
$s = "O2+2H2=H2O";
$len = strlen($s);
$html = '';
if($len > 0) {
    $prev = $s[0];
    $html = $prev;
    for($i=1;$i<$len;$i++){
        $ch = $s[$i];
        if(is_numeric($ch) && 'a' <= strtolower($prev) && strtolower($prev) <= 'z') {
            $html .= "$ch";
        } else {
            $html .= $ch;
        }
        $prev = $ch;
    }
}
echo $html;

prints O2+2H2=H2O Note the non-sub-ed 2

A: Do you know LaTeX? It renders fomulars very nicely.
You could use it on your page by including

and writing your fomular like this [;CO_2;] see here.

A:   //With ions in the equation:
   // charge written like: sign  number
$s= "1H2SO4=> 2H+1 + 1SO4-2 "    ;
//$s = "1O2  +  2H2=>  2H2O";
 $len = strlen($s);
 $html = '';
  if($len > 0) {
          $prev = $s[0];
          $html = $prev;
          for($i=1;$i<$len;$i++)
          {
              $ch = $s[$i];
              if(is_numeric($ch) && 'a' <= strtolower($prev) && strtolower($prev) <= 'z')
                {  $html .= "$ch";   }

              else
              {
                if(($ch=="+" or $ch=="-") && '1' <= strtolower($s[$i+1]) &&  strtolower($s[$i+1]) <= '9')
                {
                    $html .= "$ch";
                    $html .= "".$s[$i+1]."";
                    $i=$i+1;
               }
                  else
              {
                  $html .= $ch;
              }
              $prev = $ch;
             }
           }
        }

echo $html;

A: The better way would be:
preg_replace('/([A-Z)])([0-9]+)/', '\1\2', $input)
That way you wouldn't have individual  and  around numbers higher than 9 next to each other (e.g., 12 and not 12). It also accounts for parentheses and when you have numbers before the letters.

A: function formular($string){
    $string .= ' ';

    $len = strlen($string);

    $str_return = '';

    if($len > 0) {

        $prev       =    $string[0];
        $str_return =    $prev;

        for($i = 1; $i < $len; $i++){

            $ch = $string[$i];

            if(is_numeric($ch)){

                if('a' <= strtolower($prev) && strtolower($prev) <= 'z' || $prev == ')'){

                    if(( $string[$i+1]  == '-' || $string[$i+1]  == '+') && !in_array(@$string[$i+2], ['C', 'O', 'H'])){

                        $str_return .= '' . $ch . '';
                        $str_return .= '' . $string[$i+1] . '';
                        $i++;

                    }else{
                        $str_return .= "$ch";
                    }

                }else{

                    $str_return .= $ch;
                    $prev = $ch;
                }

            }else{

                $str_return .= $ch;
                $prev = $ch;
            }
        }
    }

    return $str_return;

}


text:
Q: How do I configure an NSArrayController to work with my NSMutableArray (so I can filter a table with NSSearchField)? I've been having a bit of trouble understanding how NSArrayController works. I have managed to get my NSTableView to populate with a NSMutableArray, but I'm lost when I try to get objects into an NSArrayController.
I need to get my data into an NSArrayController so I can later filter the table with an NSSearchField. This is my current 'add' function in my TableController class. Is there any way I can bind an Array Controller to TableController and just add data from this method?
In the code, MyMain is an NSMutableArray. I originally used the class storedFile to organize my data, but when I had to conform to property-list syntax I found it easier to use an NSDictionary. If I have to use storedFile for my Array Controller implementation I can do that with the legacy code.
-(IBAction)add:(id)sender{

    storedFile *store = [[storedFile alloc]init];

    NSDictionary *newDict = [[NSMutableDictionary alloc]init];

    //legacy code, changed to comply plist properties
    store.name = enter_name.stringValue;
    store.pdf = pdfLocation;
    store.site = website.stringValue;
    //End of legacy code. I may have to use this for an Array Controller?

    [newDict setValue:enter_name.stringValue forKey:@"name"];
    [newDict setValue:pdfLocation forKey:@"pdf"];
    [newDict setValue:website.stringValue forKey:@"site"];

    [myMain addObject:newDict];

    [tableView reloadData];
    [enter_name setStringValue:@""];
    [website setStringValue:@"http://"];
    [pdf_selected setStringValue:@"NO PDF SELECTED"];
    pdfLocation = @"NO PDF SELECTED!";

    [addWindow close];
    newDict = [[NSMutableDictionary alloc]init];
    [mainWindow orderFront:self];

}

A: You can take one more array inside that you can just assign your main array. And then use NSPredicate for filtering the data in your search field like that below:-
Also implement the below in controlTextDiChange delegate method.
NSArray *secondaryArr=[myMain copy];
NSPredicate *pred = [NSPredicate predicateWithFormat:@"SELF CONTAINS[CD] %@", @"yourTxt"];
NSArray *filteredArray = [secondaryArr filteredArrayUsingPredicate:pred];


text:
Teresa Giudice Is 'Taking Things Slow' With Boyfriend Louie Ruelas
One step at time. Teresa Giudice spoke publicly about her new man, Luis "Louie" Ruelas, for the first time on Watch What Happens Live With Andy Cohen on Sunday, November…
Joe Giudice Denied Final Deportation Appeal: 'My Heart Is Aching'
Sad news for the Giudice family. On Wednesday, news broke that Joe Giudice had lost his third and final deportation appeal. The Real Housewives of New Jersey star was deported…
COVID-19 Symptoms
Teresa Giudice Gets Pranked by Daughter Milania Amid Quarantine
Making the best of self-isolation. Teresa Giudice shared a hilarious video of her daughter Milania Giudice playing a practical joke on her while the Bravo star and her daughters are…
RHONJ Star Joe Giudice Slams Joe and Melissa Gorga for Telling "Lies"
Joe Giudice wasn't happy to hear all the things Melissa Gorga and her husband, Joe Gorga, said about him during the third installment of The Real Housewives of New…