text:
Renegotiation
Leadsom vs May – Two Risky Options
July 8, 2016 July 8, 2016 Samuel Hooper7 Comments
The very qualities which make Theresa May an awful Conservative leadership candidate on domestic policy mean that she is best equipped to handle our tough secession negotiations with the EU in Brussels. But the future leadership of the United Kingdom cannot be viewed solely through the lens of Brexit…
Dr. Richard North perfectly captures this blog's dilemma in trying to choose between two highly sub-optimal candidates for Conservative Party leader and the next prime minister:
With a final contest between May and Leadsom, [if] Leadsom wins, we are faced with the great danger of having a woman as prime minister who has little understanding of what it takes to negotiate a successful withdrawal from the EU, and no capacity to develop that understanding.
On the other hand, if May is elected, we are faced with a danger just as great, in having a prime minister who brokers an exit plan which is so successful that we end up stuck with it, and in a position far worse than we are at present.
If this sounds perverse, it is. What we are seeing from the "remains" is a sudden enthusiasm for the Efta/EEA or "Norway option", an option which, prior to the referendum, they had all been falling over themselves to demolish.
This, as readers here well know, we support as an interim option, acknowledging that it would be completely untenable for the United Kingdom in the longer term. We thus look for a different end game, which then takes us out of the EEA – with other Efta members – leaving the Agreement to collapse.
Unfortunately, the opposition is wise to the flaws of the EEA option and, from the Robert Schuman Foundation, the intellectual heart of the EU, we see proposals to modify the EEA to such an extent that it will soften some of the worst features of the EEA, and thus weaken the pressure to move on.
Dr. North goes on to describe the chicanery by which this might be accomplished – basically by making the EEA Council rather than the Council of the European Union the lead body in approving single market legislation, tackling the (already disingenuous) complaint that being in the EEA means accepting all of the rules while "having no say".
While superficially appealing, this could lead to Britain being permanently parked in a significantly sub-optimal position on the edge of a still-integrating Core EU in which the eurozone would inevitably be dominant. It would certainly undermine one of the key benefits of Brexit to an interim EFTA/EEA access "departure lounge", namely the restoration of Britain's right of reservation which we could apply to new regulation which threatened to inflict significant or unacceptable harm on our key industries or vital national interests.
But while a Theresa May premiership increases the risk that Britain is sucked into a sub-optimal "associate member" status on the EU's margins, Andrea Leadsom would do almost the exact opposite – invoke Article 50 almost immediately and then effectively let Jesus take the wheel, hoping that something satisfactory is miraculously negotiated within two years. Having recently started to appreciate the true complexity of the global trading and regulatory environment, largely thanks to my involvement with The Leave Alliance, it is immediately apparent that Leadsom's cavalier approach to our EU secession negotiations is fundamentally unserious, no matter how genuine her euroscepticism.
Leaving aside issues of personality, experience and gravitas – for few could seriously deny that May would be the more formidable negotiator to fight Britain's corner – it is hard to see how a Leadsom negotiation could succeed when the candidate seems sure of little besides her impulse to take Britain out of the EEA, making our trade subject to the EU's common external tariff in the far from certain hope that doing so dramatically cuts immigration.
Therefore, from a purely Brexit-related perspective, Theresa May seems (counter-intuitively) to be the better choice if we want to maximise our chances of escaping from the EU's always-tightening political union while disrupting trade as little as possible – even if this means that we have to remain permanently vigilant to ensure that May does not backslide from her commitment that Brexit means Brexit.
But of course this Tory leadership election is not only about Brexit – though our secession from the European Union is by far the most important issue on our national plate, and will be for some time. Still, other issues cannot be overlooked entirely. Foreign policy, civil liberties, economic freedom, education, healthcare and the role of government matter enormously too. And in many of these areas, Theresa May is extraordinarily deficient.
This is why I cannot simply swallow my distaste and endorse Theresa May outright. All of these other policy considerations must also be factored into the mix – which is what I shall attempt to do in my next blog post.
Top Image: BT
EU Referendum, UK Current Affairs, UK Politics, What Conservative Government?Andrea Leadsom, Brexit, Conservatism, Conservative Party, EU Referendum, European Union, Renegotiation, Richard North, Theresa May, Tory Leadership
Cameron's EU Deal – Reaction
February 20, 2016 Samuel Hooper2 Comments
Didn't he do well?
As our victorious prime minister returns to London to chair the fateful cabinet meeting which will now likely set the wheels in motion for a June referendum, it's worth taking a brief survey of how David Cameron's deal – essentially an embossed, artfully decorated statement of the status quo – is being received.
The division between those who are angry or depressed and those who are buoyantly cheerful really tells you all that you need to know.
Toby Young bristles at being asked to greet the status quo like a shiny new present, but recognises that such a devoutly europhile prime minister could scarcely be expected to to any better:
The attempt to spin this deal as a great victory, which grants Britain a "special status" within the EU, is unlikely to win the Prime Minister many friends. On the contrary, it may end up alienating people who haven't yet made up their minds who will feel they're being taken for fools.
[..] Crucially, the EU leaders made it clear that there won't be any further reforms, at least none that will mean a transfer of powers away from the centre. So Downing Street won't be able to spin this agreement as the beginning of a reform process rather than the EU's best and final offer.
Many of the "wins" Cameron boasted about in his speech were just assurances that the EU isn't going to take away the protections for Britain already won by Margaret Thatcher and John Major. We won't be forced to join the euro! Whoopee doo.
Tim Stanley channels his inner Tony Blair and declares Cameron's pitiful outcome to be "weak, weak, weak":
David Cameron's deal with Europe is weak, weak, weak. It could never be anything but. Why? Partly because the Prime Minister is an inveterate Europhile.
He approached these negotiations from the stance of someone who ultimately wanted to stay in – and how could he negotiate from strength when everyone around the table knew that he was bluffing? More importantly, the idea that Britain can build for itself a "special status" within Europe is pure fantasy.
The EU cannot be decentralised; the UK cannot prosper on its fringes. The only real choice is between the status quo and Brexit.
[..] The Europeans made it clear from the outset that there would be no rewriting of the fundemantal principles. Rightly so: one country cannot determine the direction of travel for the entire continent. And if one country gets to pick and choose its own rate of integration into the new super state – why, everyone else will want to do the same.
So Cameron could never have been given substantial reforms because just putting them on the table would have jeopardised the grand European project. We have reached a point in the history of the EU when what Britain needs and what Europe wants are no longer compatible. The only logical thing left to do is to leave.
Paul Goodman compares David Cameron's loftily declared original list of renegotiation objectives with the limp and shrunken prize he now holds in his hand – and he makes the choice facing Conservative MPs crystal clear:
Many Conservative MPs told their voters and Associations at the last election that Britain's relationship with the EU cannot go on as it is. They are fully entitled to say now that they have changed their minds. That they have been persuaded that Britain's future is brighter as an EU member state. That they will swallow any misgivings they have about the deal, and back their Party leader – who, after all, is on some measures the most successful Conservative leader of modern times bar Margaret Thatcher. That this is no time to campaign for a referendum result that would turn an election-winning Prime Minister out of office, and destroy the reforming work of the first majority Tory Government in over 20 years.
What they cannot say, if they have declared that Britain's relationship with the EU must see real reform, is that this deal makes a difference. And if they want to see such change, the lesson of this summit is that it isn't on offer. Which leaves only one option open to them, and to Party members of the same mind – to back Brexit.
Meanwhile, the Guardian is priming its core audience of nodding-dog virtue-signallers with key arguments to use against Brexiteers, and confirms what any thinking person knows – that the ultimate decision has nothing to do with David Cameron's non-existent concessions from Brussels:
First of all, the details of the deal are not the crucial issue. Months ago, when David Cameron revealed his renegotiation agenda, it was already clear that this was not going to be a fundamental redefinition of Britain's relationship with the EU. Nor would we suddenly find ourselves in "a reformed Europe". On this, Eurosceptics are right: Cameron's demands were less than he pumped them up to be, and inevitably, given that 27 other European countries had to be satisfied, what he achieved is even more modest. But it would be madness to let a decision about the economic and political future of Britain for decades ahead hinge on the detail of an"emergency brake" on in-work benefits for migrants.
New Europeans – that pressure group of proto-EU citizens waiting impatiently for the new European that they crave to finally hatch – are happy too:
The Prime Minister has secured his so-called "emergency brake" on in-work benefits paid to mobile EU citizens coming to Britain. However, it will not be his hand that is on the brake, despite his announcement to the contrary.
The brake is in the hand of the Council. The Council may be ready to pull the brake for the UK already – but it is still the Council's hand on the brake. The European Parliament would need to pass the necessary legislation. So the earliest the legislation could be in place is 2017.
The emergency brake will operate like the transitional arrangements – after 7 years it will drop away. In the meantime, very few people will be affected because mobile EU citizens rarely apply for in-work benefits in the first four years. There is very little evidence to show that EU citizens are claiming in-work benefits on arrival in Britain.
[..] The potential savings from David Cameron's "clamp down" on other benefits for mobile EU citizens are trivial and petty in the context of the national accounts. They amount to about £30m on some estimates. This is less than what it costs to run the Royal Opera House.
And they are right – the main "headline concession" that David Cameron managed to secure from Brussels remains entirely in the hands of the EU rather than Britain, and would make absolutely zero tangible difference to anything whether it is ultimately pulled or not.
These people have no reason to lie. They are the people who were potentially most affected by any major changes that David Cameron might have negotiated, so their relief (bordering in crowing) is absolutely genuine – and utterly damning of Cameron's claim to have fundamentally changed our relationship with the EU.
Back to Tim Stanley for another eloquent denunciation of this brazen establishment stitch-up:
There are a million reasons to hate politics: the groupthink of the establishment is one of them. Cowardice is another. It's like being governed by jellyfish: spineless synchronised swimming in one terminal direction.
For years Tories have used the issue of Europe to win votes, promising us either serious reform or a campaign to leave.
But not only was David Cameron's renegotiation effort a paper tiger (Francois Hollande: "Just because it lasted a long time doesn't mean that much happened") but now the Cabinet has largely decided to follow its leader and back the In campaign.
[..] The entire weight of the state, media and big business will fall behind a campaign saying that Europe is good for us even if, from a distance, it appears to be a giant ball of flame hurtling into an abyss of despair.
Against this confederacy of dunces stands a small number of politicians brave enough to risk friendships and careers to tell us the truth – that this deal is a sham, the EU is dying and Britain is better off out.
I myself have nothing to add at this time. Others have already encapsulated what I feel, and said it better than I could – most notably Dr. Richard North at eureferendum.com, who echoes my reference last night to Neville Chamberlain:
Mr Cameron may have in his mind's eye the image of Prime Minister Neville Chamberlain returning from Munich in 1938, triumphantly waving his "piece of paper" at Heston Airport (where the M4 service station now stands), but at least Mr Chamberlain's "deal" bought us critical time, allowing us to re-arm sufficiently against the Nazi menace.
But this piece of paper is nothing but a fraud – a pretence. This Prime Minister has brought nothing back, nothing of substance, and is now intent on using is as the basis for a referendum where he is intent on selling his snake-oil "special status".
Yet, all the time, Mr Cameron's efforts have been a sideshow besides the main event – the real renegotiation under way to transform the 19 members of the Eurozone into a single state. That is the EU real agenda not the stage-managed drama of the Prime Minister emerging blinking into the light and announcing he has secured our future for a generation.
Nor should we assume that the Brussels barons will treat us kindly if we vote to remain in the EU. They will brush aside future British protests, telling us that we have had our chance to do things our way and rejected it. Our prospects sitting uneasily on the margins of the emerging superstate will not be promising. Unloved, ignored and marginalised, we face an uncertain, even risky future, on the outskirts of the new European empire.
But I, and this blog, will have much to say as we now fight onward to the 23 June referendum date. And those politicians who built their jealously-guarded careers and reputations on what turns out to be paper-thin euroscepticism should expect no understanding and no mercy.
The divided Leave camp has been caught napping – Cameron is going to the country with a desultory deal, entirely based on the belief that we are so divided that we will not be able to mount an effective Remain campaign – and by publicly embracing people like George Galloway, it seems that some of us are determined to prove him correct.
If you haven't been paying attention so far, or have only half tuned in, then now is the time to perk up and fulfil your duty as an engaged citizen. We have just four months to win our freedom from the European Union and, if we succeed, potentially spark a renaissance of real democracy through Europe.
EU Referendum, Europe, UK Current Affairs, UK PoliticsBrexit, Conservative Party, David Cameron, EU Referendum, European Union, Media, Paul Goodman, Reaction, Renegotiation, Tim Stanley, Toby Young
Deal Or No Deal?
Deal.
So, to summarise our prime minister's magisterial achievement at the European Council summit in Brussels:
We won't become part of something (a European superstate) which can only come about through a new treaty which Britain already has the right not to ratify, making this renegotiation "win" utterly superfluous
We have supposedly won a unique exemption from "ever closer union", though curiously the treaty which firmly commits us to this goal will go unamended
We won't join the euro – an obvious extension of the status quo which any British prime minister could have achieved simply by staying home in Downing Street and binge-watching Netflix
Same for Schengen and "open borders"
There will be new restrictions on migrant benefits, now apparently a burning issue yet something which wasn't even on most people's list of EU grievances until David Cameron suddenly started talking about it just prior to his European shuttle diplomacy
Peace for our time.
Europe, UK Current Affairs, UK PoliticsDavid Cameron, Donald Tusk, EU Referendum, Europe, European Union, Neville Chamberlain, Peace for our time, Renegotiation
David Cameron And Martin Schulz – Bad Cop / Bad Cop Anti-Brexit Strategy
February 6, 2016 February 6, 2016 Samuel Hooper3 Comments
After David Cameron and Donald Tusk's arrogant two-finger salute to the British public comes Martin Schulz's risible Bad Cop routine
It has been a couple of days now, and the anger about the government's unchanging approach to the EU has started to dissipate – only to be replaced by a dull sense of abandonment and cynicism.
Of course David Cameron was not going to announce any kind of meaningful deal with the European Union – expecting Dave to represent our interests in a negotiation with Brussels is like being on trial, spilling your guts to the chief prosecutor and still expecting him to bend over backward to get you acquitted. That is, it's implausible because of a flawed assumption about whose side they are on.
This was not a renegotiation between Britain and the other member states of the European Union; rather, it was a game of wits with the prime minister and his fellow EU leaders on one side, and the British people on the other side. The objective was not to present British demands to Brussels and seek to win as many concessions as possible; on the contrary, the aim from Day One was to identify how little the British people could be persuaded to accept as crumbs from the EU's table while still doing what they were told.
When you realise that democracy and the restoration of national sovereignty were never on the table, everything makes a lot more sense. And yet David Cameron is clearly stretching his luck. The few meagre statements of intent in Donald Tusks's formal response to the British letter are completely irrelevant, and certainly will do nothing to address the concerns of most people. And the press has realised, and duly given the prime minister a roasting for his feeble negotiating skills.
Thus there is still a possibility – however slight – that if the referendum goes ahead on the accelerated timescale in June this year, the Leave side may be able to squeak a victory by painting David Cameron's half-hearted renegotiation as part of a bipartisan establishment conspiracy of the political elites against the British people, to keep us in the European Union come hell or high water.
Or as this blog noted yesterday:
With nearly every authoritative voice in Britain about to begin earnestly intoning the many benefits of Brussels, our most potent weapon may be the British people's strong sense of fair play, and their likely discomfort at seeing the Leave campaign being outspent, outmanoeuvred, outgunned and shouted down. We have been weak and ineffectual enough thus far – so we may as well ham it up for the cameras and work to build the narrative that this referendum is in fact The Establishment vs The People.
Bearing all this in mind, what the Remain campaign could really do with to twist the knife would be for a senior EU politician to come out swinging and playing Bad Cop to David Cameron's Useless Cop. What they really need is for one of the EU's big beasts – preferably someone with a suitably scary Teutonic name – to barge onto the scene and warn Britain that we are testing his patience with our pesky demands for sovereignty and self-determination, and that unless we soon shut up and accept what we are being offered, he and his chums can make no guarantees for our safety.
Step forward president of the EU Parliament Martin Schulz, who used a speech in London today to do just that. Schulz said:
Europe needs the UK with its foreign policy experience and clout, its open market policies and its trade track record if we want to have hope of solving any of these crises – and even more so, if we want to maintain the global security architecture and shape the future world order.
This is why personally I am a strong supporter of the UK remaining in EU. And this, despite the fact – and I admit this quite frankly – that the British often test our patience and good will with their continuous demands.
They are demanding. They push hard. They insist. They just don't let go. Many of my colleagues say behind closed doors: 'Don't stop a rolling stone. If the Brits want to leave, let them leave.'
I do not support this line that just because the UK can be frustrating it would be in our interest to let it go. I believe we need the UK to make the EU stronger and better. And to make something stronger and better sometimes it's necessary to push hard and be critical.
In other words: "Hey, you know I love you, Britain. You're great, I would do anything for you. But some of my friends have had enough; they think you are getting ideas above your station. In fact, they think that you are itching to be taught a lesson in humility. Not me, of course. I think you're just swell. But what say we put this whole silly euroscepticism business behind us and carry on as normal? I think that would be much better that way. And I wouldn't want anything bad to happen to you…"
Basically, this is a threat dressed up as friendly concern.
My first thought on reading this was: is Martin Schulz confusing the UK with another country – one which is actually assertive in standing up for its national interest and kicking up a fuss when it doesn't get its way? Because this description doesn't sound anything like the Britain I recognise.
What "continual demands" has Britain been making of the European Union? And which demands have been conceded by a reluctant Brussels which supposedly feels bullied and taken advantage of by our selfish stance? You would think that if Britain had such a notable track record of standing in the way of EU goals and projects, that a nominally eurosceptic government like David Cameron's would be busy talking up all of these filibustering victories to buy some credibility from a sceptical public. You would think that David Cameron's stump speech would be littered with Brussels pet projects which he thwarted for the good of the taxpayer and in defence of Britain's national interest.
So where are those success stories? Where are the examples of Britain "pushing", "insisting" and "not letting go"? Does Martin Schulz mean the time that Britain was presented with a £1.7 billion supplementary bill from the EU as a penalty for economically outperforming the Eurozone? Because if my recollection serves me correctly, our prime minister gave a red-faced, foot-stamping press conference in which he insisted that Britain would not pay a further penny, before quietly authorising George Osborne to pay the entire sum as soon as the general election is out of the way. Is this the kind of obstructionism that Martin Schulz means? The totally illusory kind?
But what of France and its angry insistence on violating the EU stability and growth pact, for reasons both real and confected? If the rules were put in place for the benefit of all, what does it say about France that they rage against the European Commission for daring to point out their lack of compliance? Is this not being "demanding" and "pushing hard" to get their own way?
And what about Germany's constant, selfish running of a current account surplus in excess of the maximum 6 per cent allowed under the Macroeconomic Imbalance Procedure (MIP)? Where is the European solidarity there? And what might Martin Schulz have to say about the stubborn behaviour of his own compatriots? Don't expect an answer any time soon.
The truth is that by most measures, you could not find a more pliable, easy-going and constructive member of the European Union than Britain. We pay our dues, enforce and abide by the rules and laws a lot more rigorously than many other countries, and while the public may complain a lot, our elected representatives hardly ever filter that dissatisfaction upward to disturb the smooth running of EU summits.
The only way that your average EU leader or bureaucrat could possibly be troubled by British euroscepticism is if they were to spend their days clicking through the comments sections of the Daily Mail website – which presumably they have no time to do, what with being such busy and efficient people. They certainly have not encountered any euroscepticism from Downing Street for thirteen years of New Labour or five subsequent years of rootless Cameronism.
But how well it aids the Remain campaign for a prominent EU leader to come to London with the message that Brussels is getting sick and tired of our irritating demands for national sovereignty, that the world is a scary and unpredictable place, and that we wouldn't want to find ourselves in their bad books just in time for a big Chinese economic slowdown. What absolutely marvellous timing. Really, you couldn't have co-ordinated it any better if you wanted to orchestrate an event to distract attention from the fact that Cameron and the EU are standing before the British electorate absolutely stark naked.
But we should see this for what it is – a cheap and tawdry act of scaremongering from a political establishment (and assorted allies such as Schulz) who are utterly incapable of making a bold, unabashed and unambiguous argument in favour of the EU as a good model for future human governance and the preservation of democracy.
In place of any attempt (however foolhardy) at real, tangible reform of the European Union, taking into account some of the actual concerns of the British people, instead we have David Cameron's big bag of nothing followed by Martin Schulz issuing sinister threats wrapped in faint praise.
Having the prime minister announce a renegotiation "outcome" so pitifully short of addressing even his own original and desperately unambitious areas for discussion is bad enough. But to then be on the receiving end of passive-aggressive threats from the EU aristocracy, chiding us for being "demanding" – really the pot calling the kettle black with this supranational group of obstinate prima donnas – is an insult too far.
As always, we are denied the big picture and forced to operate in the blind because the leader of our country does not view us as fellow citizens with a right to have a say on Britain's future based on full and complete information, but rather as a potentially dangerous mob whose every thought and sentiment must be carefully curated by our betters, to guide us toward the "correct" decision.
We never had any reason to believe that it would be otherwise. But it is still galling to experience this intellectual, emotional and psychological manipulation strategy unfolding in real time.
Europe, UK Current Affairs, UK PoliticsBrexit, David Cameron, EU Referendum, European Union, Martin Schulz, Renegotiation
Time To Get Angry About David Cameron's Brexit Negotiation Trickery
Whether you are staunchly pro-EU or eager for Brexit, the prime minister is playing the British people for fools with his manufactured last-minute crunch talks with Donald Tusk. Do we really want to reward this kind of behaviour from our politicians?
If the conventional media narrative is to be believed (and it isn't), David Cameron has secured a "major breakthrough" in his talks with EU leaders on our suddenly-central concern about migrants claiming benefits.
Of course, this "win" consists solely of a so-called "emergency brake" on immigration which could only be applied with the consent of other EU members. And migrants coming to Britain to supposedly claim benefits is so far down the list of things which are egregiously offensive and wrong with the European Union that the whole pantomime is laughable. But this is all that David Cameron has, and much of the media is gamely writing it up as a meaningful event.
From the Telegraph:
[European Council President] Mr Tusk had been due to publish his final offer to the UK today, but has now agreed to hold another 24 hours of talks after Mr Cameron told him that the deal on the table was "not good enough". The Prime Minister warned Mr Tusk that Britain could vote to leave the EU unless Brussels does more to ensure that the number of foreigners coming to the UK is reduced.
[..] Last week the EU offered Mr Cameron a watered-down version of the "emergency brake" that would allow him to temporarily limit access to benefits – but only if Brussels agrees that UK public services are being strained. It was described by Eurosceptic Tories as a "bad joke" and "an insult to Britain".
On Sunday night Mr Tusk accepted Mr Cameron's demand that any "emergency brake" comes into force immediately. It allows Mr Cameron to reject claims that his "emergency brake" will be subject to a veto by Brussels.
Of course, this is being breathlessly talked up by Downing Street:
"It is very significant that they have conceded this," a Downing Street source said. "They are saying that in the current circumstances, levels of migration into the UK meets the requirement for an emergency brake. It shows that this is not a theoretical brake and that it is something that will definitely happen."
So because Donald Tusk has generously granted that the "emergency brake" may come into force straight away, we are supposed to gratefully take our crumbs from the table and forget about the fact that as with every other area that David Cameron once airily promised to reassert British sovereignty, the critical decision ultimately rests with Brussels.
What a transparently false and cosmetic exercise this all is. If Donald Tusk was prepared to release his "final offer" to the UK today and is now only delaying publication until tomorrow, no significant changes can possibly be made in that short span of time.
David Cameron may have huffed and puffed and made a great show of telling journalists that the current deal is not "good enough", but he will secure no more from Donald Tusk. 24 hours is insufficient time for Tusk to hammer out a new deal and get sign-off from the twenty-seven other EU member states, so if anything radically different does appear tomorrow it will have been pre-agreed by the other twenty-seven and almost certainly shared with Cameron too as part of a cosmetic, scripted act of political theatre.
At this stage in the game, Donald Tusk knows what the other EU leaders are willing to concede and David Cameron knows exactly how much he can demand if he wants an agreement to be signed off in order to ram the referendum through by June (and this still seems very improbable to me). The only ones in the dark are the British public, who were never meaningfully consulted before the prime minister jetted off to air our concerns to Brussels – concerns which he never took the time to consult over or understand before embarking on his mission.
As I and many other Brexit bloggers have pointed out for some time, there is no "renegotiation" taking place, nor has there been. But if we must persist in talking in terms of a renegotiation then we should recognise that David Cameron is sitting at the same end of the bargaining table as the other EU leaders, sharing as they do a common goal of keeping Britain within the political union. We, the British people, are at the other end of the table, on our own. Nobody is arguing our case. Meanwhile, our prime minister colludes with his European colleagues to determine precisely how little they can get away with offering while still buying our acquiescence.
Of course, all of this is quite immaterial, depressing though it may be. For there is no change or concession possible which will change the European Union from being an explicitly political, tightening union whose every act and function serves to drain sovereignty and autonomy from its constituent member states and pool it in Brussels, where it can be wielded by politicians who make the Westminster political establishment look like the model of transparency and accountability.
On this point at least, Daniel Hannan is absolutely right when he writes in CapX:
Either way, the 'row' between David Cameron and Donald Tusk, which journalists are reporting so breathlessly, is non-existent. There is nothing to have a row about. Either Westminster is still in charge of welfare policy, in which case the PM doesn't need anyone's permission to change the rules; or Brussels is, in which case any alteration requires a treaty change which, as all sides now accept, won't happen for many years.
I realise that reporters have to write something. I'm sure someone somewhere will have been interested to read that the Downing Street menu involved apple and pear crumble. But, please, guys: the whole thing is such an utter, obvious, confection. You can be pro-EU or anti-EU. There are sincere arguments both ways. But let's not pretend that anything is changing.
But while the back-and-forth with Donald Tusk and the eventual reveal of whatever package they have already cooked up is hardly news, it is still worth reminding ourselves of the lengths to which the British prime minister will go in order to trick the British people into believing that he has radically changed the terms of our EU membership.
And it should rightly make one wonder: if David Cameron can be so manipulative when it comes to the European Union, how can we trust him on any other matter?
Europe, UK Current Affairs, UK PoliticsBrexit, David Cameron, Donald Tusk, Emergency Brake, EU Referendum, European Union, Immigration, Renegotiation


text:
Q: What happens if Abort() is called multiple times in Inno Setup What will happen if I use Abort() multiple times like:
[Code]

function InitializeSetup(): Boolean;
begin
  Result := True;
  { Some Initialization }
  try
    { some code }
    Abort();
  except
    MsgBox('Abort is called');
    Abort(); { Abort is called Second time. Is this create any problem? }
  end;
end;

A: The Abort throws an exception, as you obviously know, as you are catching it. See documentation:

Abort raises a special "silent exception" which operates like any other exception, but does not display an error message to the end user.

If the exception does not leave the event function, because you catch it using the try...except statement, the Inno Setup never learns about it, so it has no effect on it.
Only the exception thrown by the latter call to the Abort leaves the event function and has any effect on Inno Setup.

redpajama_set_name: RedPajamaStackExchange


text:
Jocelle Batapa Sigue
Innovation. Inclusion. Transformation.
About JOCELLE BATAPA SIGUE
Resource Portfolio
The Policy Work of Jocelle Batapa-Sigue
Post author By Jocelle Batapa Sigue
No Comments on The Policy Work of Jocelle Batapa-Sigue
Jocelle Batapa – Sigue is immersed in policy work and advocacy since 2004. She is a dynamic and prolific policymaker and policy activist both in the local and national level. She has served as resource speaker and member of House and Senate TWGs on the Creation of the Department of Information and Communications Technology (DICT) Bill and in the Senate TWG for the Ease of Doing Business Bill of 2018 or Republic Act No. 11032.
She has participated in hearings and drafted proposals for the Republic Act No. 10844 and the Implementing Rules and Regulations of the DICT Law.
With her policy leadership as chair of the Sanggunian Committee on Communications in 2004, stakeholders in the City of Bacolod and the Province of Negros Occidental came together promote Bacolod as a destination for ICT-enabled jobs and investments. She organized group called the Bacolod IT Focus Team, which worked together to develop strategies and programs designed to include Bacolod City and Negros Occidental among the growing centers of innovation in the country, specifically to pursue ICT-readiness and competitiveness as part of the Philippine Cyber Corridor. She prepared all the policy ground work and conducted all the consultations to ensure the readiness of the city of digital jobs.
As chair of the committee on Women and Gender of the Sangguniang Panlungsod, she authored many ordinances pertaining to women such as the Bacolod City Gender and Development Code, The Ordinance creating the Bacolod Inter-Agency Council Against Human Trafficking and The Anti-Worst Forms of Child Labor Ordinance
She served as Chair of Bacolod City Gender and Development or GAD Council from 2004 to 2010.
She is the Founder of Anti-Trafficking Legal Advocates Society (ATLAS) and currently the chairman of the Board of Voice of the Free (formerly Visayan Forum Foundation), a national network against human trafficking and child exploitation where she continues her policy advocacy for the rights of women and children.
During her last term as city councilor, she was given the opportunity to chair the committees on trade and commerce and tourism and international cooperation, along side the committee on history, culture and arts.
She has also actively promoted policies on environment and ecological preservation as part of her personal advocacy.
As a city councilor for nine years in, she has crafted, authored and led the legislation of major ordinances as follows:
C.O. 453 – 2007: Creation of Bacolod Inter-Agency Council Against Trafficking in Persons (IACAT) and TIP Help Desks in Seaports
Annual Gawad Kooperatiba Awards and Support to Cooperatives
Laying the Procedures for SP Endorsement to PEZA of ICT Parks , Buildings, Tourism Development Zones and Economic Zones
Celebration of April 22 as Earth Day in Bacolod City
Protection and Barangay Registration of Household/Domestic Workers or Kasambahays
C.O. 423-2006: The Gender and Development (GAD) Code of Bacolod City
Protection of Watershed Areas, Establishing Watershed Development and Water Conservation Programs for Bacolod City
C.O. 432-2007: Institutionalization of Programs for Informal Sector Workers and Creating the Informal Sector Workers of Bacolod
Observance of June 13 – 19 as Social Work Week and Promotion of Social Work
Establishing the Fr. Mauricio Ferrero, OAR Street Ordinance
Creation of Information & Communications Technology (ICT) Council & Development of ICT Industry (as Co-Author of Councilor Lyndon Cana)
Ordinance Implementing the Law Against Worst Forms of Child Labor and Developing Strategies to Lessen Child Labor in Bacolod such as the Intensive Implementation of the Alternative Learning System (ALS) Program
C.O. 449-2007: Observance of December 1 – 7 as Non-Government Organization-People's Organizations (NGO-PO) Week
Prevention of Sexually-Transmitted Infections (STI), Human Immuno-Deficiency Virus (HIV) & Acquired Immune Deficiency Syndrome (AIDS) & Creation of Bacolod Local STI/HIV/AIDS Council
Reduction of Police Clearance Fees for Purposes of Voter's Registration
Declaration of Bacolod as Organic City (Anti-GMO Ordinance)
Procedures for the Development of Medical Tourism Parks and Retirement Villages
C.O. 513-2009: Creation of the Bacolod Technology and Livelihood Development Center
C.O. 504-2009: Climate Change Mitigation and Adaptation Measures Ordinance and Implementation of Strategies to Mitigate Pollution for Transport, Business and Other Sectors
Comprehensive Health and Wellness Ordinance and Promotion of Medical Tourism
C.O 08-14-680: Promotion and Strengthening of the City of Bacolod as a Choice Destination for National and International Meetings, Incentives, Conferences and Exhibitions (MICE)
Establishing the Bacolod City Information and Communications Technology (ICT) Training Scholarships for Contact Centers, Software Development, Game Development, Animation and other IT Courses
Declaring February of Every Year as Bacolod Arts Month (BAM)
C.O. 08-14-679: Stronger Penalties for Vandalism in Bacolod City and Strategies to Enjoin Schools in the Fight Against Vandalism
Regulation of the Commercial Sale of Spray Paint Cans in Bacolod
C.O. 08-14-686: Prescribing Mechanics of the Masskara Festival Celebration and setting the Cultural standards of the Festival, and Prescribing Procedures for Accountability of Third Party Organizers
Institutionalizing a Tourism Homestay Program for Bacolod City and Setting Global Standards for Homestay facilities in Bacolod
C.O. 08-15-756: Ensuring Effective Implementation of Food Safety Standards in Bacolod City and the Implementing Rules and Regulations
C.O. 08-14-673: Creating the Bacolod Micro, Small and Medium Enterprise Development (MSMED) Council
C.O. 08-15-725: Establishing the Bacolod Business Promotions and Investments Week and Setting the Bacolod Trade Expo identifying Key Promotion Areas: Agriculture, Food and related industries, Gifts, Housewares, Decors and Other Craft-Based Industries, Manufacturing and other Industrial Business, Information and Communications Technology and Other Technology-Based Industries Tourism, Hospitality, Health and Wellness and Other Service Industries
C.O. 08-15-738: Establishing the Bacolod City Ordinance Awareness Week
C.O. 08-16-775: Establishing Guidelines for the Selection of the Local Economic and Investment Promotion Officer (LEIPO)
DRAFTS OF PROPOSED ORDINANCES BY COUNCILOR JOCELLE BATAPA-SIGUE
The "Walkable City" Ordinance of Bacolod, Prescribing Strategies to Improve the Pedestrian And Road-Sharing Experience in Bacolod (Proposed September 2014 – originally names as "Setback Ordinance)
Creating the Charter for a Polytechnic University in Bacolod and Converting the Bacolod City College for that Purpose
Establishing Central Business Districts in Bacolod
Every First Week of July of Every Year As Cleft And Craniofacial Awareness And Prevention Week In The City Of Bacolod
Ordinance Declaring Specific Major Roads in the City as Tourism Roads (Proposed November 2014)
An Ordinance Creating the Bacolod Youth Development Council (BYDC) Proposed September 2014
As part of her advocacy for ICT she has conceptualized, crafted and implemented various programs related to her policy work. As a proponent of ICT in government, she developed the major concepts behind the annual eGovernance Awards for ICT Excellence for LGUs as chair of the National ICT Confederation of the Philippines (NICP) together with the Department of Interior and Local Government (DILG). The eGov Awards, after 6 years, is now under the auspices of the Department of Information and Communications Technology (DICT) as Digital Governance Awards. Under her watch, she developed four more categories aside from the original categories, which are G2C (Government to Citizens) and G2B (Government to Business) – these are G2G (Government to Government), G2W (Government to The World), D2G (Data to Government) and P2G (Payment to Government).
In her capacity as NICP co-founder, she has been to almost fifty provinces to assist local government units in crafting policies for ICT jobs and investment generation. She has been invited to share policy insights in other countries like Guatemala, India, Malaysia, Taiwan, Japan, Bangladesh and the US.
She also conceptualized and crafted policy proposals in her capacity as founder of the Bacolod-Negros Occidental Federation for Information and Communications Technology (BNEFIT) – namely: The ICT Startups Equipment Support (ISES) with the Department of Science and Technology, Business Resource Center – Shared Services Facilities (BRC-SSF) with the Department of Trade and Industry and the Technology Business Incubation Center (TBIC) program with the Province of Negros Occidental.
She served as consultant for the Province of Negros Occidental and was responsible in designing policies to create ICT-enabled jobs and investments for the province.
Last 2018, AVPN-BMW Foundation Policy Leadership Lab has cited Jocelle Batapa Sigue as Policy Innovation Fellow of the Philippines from June 2018 to June 2019, 2019. The purpose of the fellowship is to cultivate the next generation of social economy policy leaders across Asia and to identify policymakers who share the commitment to build a vibrant and high impact philanthropy and social investment community in their countries. Building on the AVPN Asia Policy Forum (APF) and BMW Foundation's Responsible Leaders Network, the Lab offers high-touch and in-depth peer-learning, networking and capacity building opportunities for a select group of policymakers with AVPN membership and stakeholders.
This leadership experience leverages on annual programme cycle of Asian Venture Philanthropy Network (AVPN) Asia Policy Forum, Membership and Knowledge Center activities headquartered in Singapore and BMW Foundation global activities, to provide extensive opportunities for learning and connecting with stakeholders that share the similar experiences and objectives.
Today, she continues her work to explore policy strategies in creating seamless education to employment goals anchored on the development of Future of Work skills, specifically digital skills among tertiary level students. Her direction is to engage policy makers from local to national level in government, academe and business sectors.
To reach out and request for copies of policy work and proposals, please email ceo@jocellebatapasigue.com
SP approves health and wellness ordinance
Bacolod SP gives tribute to city's vice mayors as part of Ordinance Week
Bacolod City pushed as choice MICE destination
Bacolod City Inaugurates Fr. Mauricio Ferrero Street
Bacolod Arts Month On
The Officers of the Bacolod City Gender and Development (GAD) Council 2007-2010
At the Senate hearing of the DICT Bill
Leading the formulation of strategies of the Bacolod IT Focus Team
At the Senate Hearing re Ease of Doing Business Law
With Board of Voice of the Free
With Earth Day Advocates
Signing of Ubiquity Global Services and Province of Negros Occidental
MICE Stakeholders of Bacolod
BNEFIT Organizational Workshop on November 6-7, 2007
By Jocelle Batapa Sigue
ATTY. JOCELLE BATAPA-SIGUE
•	Named as one of The Outstanding Women in Nation's Service of the Philippines or TOWNS for 2016 in the field of Information and Communications Technology or ICT
•	Positions:
Past Vice President (2018) and Past President (2010-2012) and Past Trustee (2013-2017) of the National ICT Confederation of the Philippines or NICP
•	Founder, Former President and Current Executive Director of the Bacolod-Negros Occidental Federation for ICT or BNEFIT
•	Served for 3 terms as councilor of Bacolod City
•	Chosen as one of Asia Society Top Ten Philippines 21 Young Leaders in 2009
•	Chosen as the Eisenhower Fellow of the Philippines in 2012
•	Awarded as Philippine Individual Contributor of the Year during the International ICT Awards given by the Canadian Chamber of Commerce and Industry in the Philippines
← BNEFIT: Strategies to Create Opportunities → Visayas Teams Advance to NASA Space Apps Global Challenge
Become A CHANGEMAKER today! Join Jocelle Batapa-Sigue.
#23 Open Innovation Center
Greensville 1, Barangay Estefania, Bacolod City
+63 034) 7096135
Daddy Joe's Yearbook January 3, 2020
Bacolod Vision 2020 December 31, 2019
10 Survival Tips in 2020 December 30, 2019
Are you asking the right questions? December 2, 2019
Competence in the Digital Age December 2, 2019
Images of My Journey
Sharing the Philippine Story in Bringing ICT jobs to the countryside at the the BPO Guatemala Summit last November 2017
Sharing initiatives of ATLAS and VF Foundation against Human Trafficking at the EF Women's Conference in Miami, Florida last 2016
One of the speakers at the Asian Women Summit last March 2018
Served as Facilitator of Biliran, Leyte ICT Council Capacity Development last May 2018 in Naval, Biliran
With Visayas ICT councils leaders at the eGOV Awards in Tacloban last November 2016
Atty. Jocelle Batapa-Sigue with Corporate Awardees in the 2014 Philippine ICT Awards
With BNEFIT Officers at the blessing of the third expansion of Ubiquity Global Services in Bacolod
Jocelle Batapa Sigue on Facebook
My Food Blog: Jocelle's Food Trip
Footos of The Decade
Footos is my term for food photos. It's not only about the taste, it is also about the composition, the colors, the texture that goes into every food photo. After meticulously going through all my food photos taken from Huawei P30 – here are the best of the past decade (in alphabetical order). Editing was […]
Best Foodtrip Picks 2019
Before 2019 finally sizzles out, I am taking this time to share my the best picks for 2019 – from new local finds to staple dishes and unique recipes – these are dishes that are left a lasting impression on my palate and are surely delectable pleasures worth noting down in your gastronomic diaries. The […]
Jocelle Batapa Sigue at Facebook
Past Articles Select Month January 2020 December 2019 November 2019 October 2019 September 2019 July 2019 June 2019 May 2019 April 2019 February 2019 January 2019 December 2018 November 2018 October 2018 September 2018 August 2018 July 2018 June 2018 February 2018
Contact Jocelle Batapa Sigue
Bacolod City 6100 Philippines
ceo@jocellebatapasigue.com
© 2020	Jocelle Batapa Sigue

redpajama_set_name: RedPajamaCommonCrawl


Summer styling doesn't have to be dreadful when you show your shape some love! Embrace your grace and see what we displayed on WFSB Better Connecticut.
Soft Surroundings & KARO Swimwear were featured, and models of all age and size glistened on camera. The secret wasn't in their sizes, but in their poise and confidence.
Everybody should feel free to enjoy themselves in the summer, and every body can #werk a swimsuit.
Swim Season Forecast: Cute and Comfortable!


As I am typing….it is official!
Bachmann gone….Trump gone but not quiet…..Cain gone…..and now another victim of the process….Huntsman has decided to let the field snipe at each other….I mean Colbert was polling ahead of Huntsman….a real shame…the only sane candidate the GOP had in many years…..sad, so sad….but I think the polling prompted "Dad" to withdraw any cash and as we all know without cash he gots NOTHING! Time for Huntsman to go home, lick his woulds and start preparation for 2016…….
But why did Huntsman not click with the GOP voters?
Now, who will be the next to exit….as gracefully as possible? My money is on Perry…..since his prayer vigil did not work…then his imagined biggest supporter was not listening…..but I could be mistaken…..
Who do you think will be the next causality of the 2012 GOP primary circus?
I am a reader of the website for American Elect 2012….an independent try for political relevancy……..their members have come up with questions that they would like to ask the candidates, no matter the party, to hear solid answers to questions of the day…..
What do you think are the most important steps government can take to promote job creation?
How would you reform federal taxes?
Do you believe corporations should be more heavily regulated, even if it means higher compliance costs?
How do you propose we reduce the national debt, and how much should the national debt be considered in economic recovery plans?
What role should the federal government play in the healthcare industry? Is healthcare a right?
What do you think is driving the rapid growth of health care costs, and how would you slow it down? Would you support putting some kind of cap on what the government spends on Medicare?
Should the government require that all citizens have healthcare insurance? If so, what is your thought about a premium support model similar to the Federal Employees Health Benefits Program?
Why aren't our K-12 schools preparing graduates to compete in the global economy, and what would you do as president to lift their performance?
Why do you think college costs keep rising? Are students getting their money's worth, and what would you do to slow down cost growth?
What would you do to improve workforce development and job training opportunities for U.S. workers?
Is U.S. energy independence a feasible goal and, if so, how would you achieve it? How would you reduce our reliance on foreign oil?
What steps will you take to make this nation's growing energy demand more sustainable?
How important is reducing carbon emissions, and how would you go about it? In addition to renewable fuels, do you believe natural gas and nuclear energy should play a larger role in America's energy mix?
What circumstances justify U.S. military intervention? Do you think America should continue to play a leading role in world affairs, or lay down some of those responsibilities?
Is America's enormous trade deficit with China a problem? How would you boost U.S. exports and encourage China and other countries to buy more from us?
I believe it is a good list and are questions that need answers and would love to see a real effort to make a candidate, any candidate, have to answer these questions…..
If you are undecided which GOP candidate that you want to vote for then use these questions and e-mail him/her and see if you get a real answer or a bumper sticker….I would think that if the candidate answered all your questions with a solid answer…..then that would be the one to support with your vote…..


A Eugene man was sentenced Friday to almost six years in prison for attacking another man during a domestic violence incident.
Anthony Preston Like, 41, pleaded guilty to second-degree assault in the May 31 altercation. He was given a 70-month prison term under Oregon�s mandatory sentencing law, making him ineligible for any form of early release.
Like also pleaded guilty to charges of coercion and strangulation for a separate domestic violence assault July 4. His sentences on those charges will run at the same time as the assault charge.
Like admitted smashing a heavy ceramic plate on the face of another man during a confrontation at his former girlfriend�s house in May and later attacking the ex-girlfriend while on pretrial release from the earlier incident.
Charges of first-degree assault, fourth-degree assault and first-degree burglary were dropped as part of a plea agreement. Like will be on supervised release for three years.


At Puppy Stars we provide professional training and behaviour services in and around Buckinghamshire, Oxfordshire and the Home Counties. Need more information? Click HERE or contact [email protected] or Tel: 01296 323000 Mob: 07542 131 400.


Through personal stories, recipes, historical images and Craig Fraser's beautiful visuals, Bo-Kaap Kitchen reveals the heart of the Cape Malay people, their history and identity, distinctive architecture and language. The warmth and character of the people shine through as they share their stories about cooking, family bonds and strong faith. Residents of the Bo-Kaap are descendents of some of the first people to settle at the Cape, mostly descendents of slaves brought here from as diverse places as Ceylon, India, Indonesia, Java, Malaysia, North Africa, East Africa and Madagascar. Many of these slaves were sought after for their skilled labour and excellent craftsmanship. A large part of the book is devoted to the significance of food, which is so central to the culture. Rites of passage, pilgrimages, prayers for newborns and the deceased, breaking the fast during Ramadan, engagements, weddings, all are celebrated with meals that are shared in this closely knit community.
Dan Toombs (aka The Curry Guy) has perfected the art of replicating British Indian Restaurant (BIR) cooking after travelling around the UK, sampling dishes, learning the curry house kitchen secrets and refining those recipes at home. In other words, Dan makes homemade curries that taste just like a takeaway from your favourite local but in less time and for less money. Dan has learnt through the comments left on his blog and social media feeds that people are terribly let down when they make a chicken korma or a prawn bhuna from other cookbooks and it taste nothing like the dish they experience when they visit a curry house...but they thank him for getting it right. The Curry Guy shows all BIR food lovers around the world how to make their favourite dishes at home. Each of the classic curry sauces are given, including tikka masala, korma, dopiazza, pasanda, madras, dhansak, rogan josh, vindaloo, karai, jalfrezi, bhuna and keema. Popular vegetable and sides dishes are there as accompaniments, aloo gobi, saag aloo and tarka dhal, plus samosas, pakoras, bhaji, and pickles, chutneys and raitas. Of course, no curry is complete without rice or naan. Dan shows you how to cook perfect pilau rice or soft pillowy naan every time.
Wine enthusiasts: raise a glass! The global wine market has expanded rapidly in the past few years and is forecasted to increase through 2019. Consumption, new wine styles, online wine purchasing, and a growing younger population of wine enthusiasts are all contributing factors. In Wine For Dummies, the authors--both recognized wine authorities and accredited Certified Wine Educators--share their expertise, revealing the latest on what's in, what's out, and what's new in wine. Featuring information on both classic and cutting-edge wines, it's packed with everything you need to hold your own in tasting rooms, shops, and beyond! Includes updated information on navigating wine shops and selecting wines in restaurants Covers the latest expert advice on buying wine online thanks to the online retail boom Provides updated vintage charts and price guidelines Offers information on trends in wine, including packaging innovations such as wine in a can, kegs, and boxes Whether you're a beginner or intermediate wine enthusiast, this is your no-nonsense guide to choosing wine, understanding wine lists, exploring new varieties, serving, sharing, and more!
Written by bestselling author and nutritionist Anita Bean, packed with 100 delicious, easy to prepare recipes - many of which are suitable for vegans - and featuring attractive food photography, this book is for anyone who works out regularly and is looking to exclude meat from their diet. The way we eat is changing. More and more of us are opting to eat less meat. And this includes people interested in sport - either vegetarians, or those of us simply looking to cut down on our meat intake. Eating well to support a training regime presents its own challenges - but you can eat healthily and reach your sporting potential without eating meat. This book shows you how to achieve your goals. Many athletes interested in adopting a meat free diet are worried about not getting the right nutrients to build muscle or perform well, and don't know exactly what they should be eating in place of meat. Read this book to discover over 100 fast, healthy, tasty vegetarian and vegan recipes for breakfast, main meals, desserts, snacks and shakes - and all featuring full nutritional analysis.
Bread machines provide the pleasure of creating sensational baked goods with the minimum of effort. This comprehensive guide shows you how and provides 150 heart-warming classic recipes. The book begins with an introduction to the types of breads and doughs. The techniques section explains the basics about machines, how different ingredients can be added and how traditional techniques like kneading and shaping can be used with your machine to make more specialized breads. The recipes are organized into chapters by styles of bread, and include different types from all around the world. Each has been tested and adapted for baking at home with your bread machine so that you can prepare all of your favourite breads with ease.
Bread can be open and airy or compact and dense - it is all about the 'crumb' which characterises particular styles of loaf. In this inspiring new book, Richard Bertinet shares his hallmark straightforward approach to making bread through every step of the process, including the various techniques of fermenting, mixing, kneading and baking. Richard shows you how to make everything from classic and rustic breads to sourdough using different flours and ferments. Learn how to bake a range of delicious sweet and savory recipes from Manchego & Chorizo Cornbread, Seaweed & Sel Gris Rolls and Chickpea Flatbreads to Orange & Cardamom Swirls and Cinnamon Buns. There are also options for gluten-free breads and the best bakes to improve your gut-health by experimenting with different types of flour. Finally, Richard shares ideas for cooking with bread and creams, syrups and pur es to enjoy alongside or incorporate into your bakes. With stunning step-by-step photography, simple advice and helpful techniques throughout, Crumb will inspire and fill everyone, whatever their experience, with the confidence to bake an exciting repertoire of breads.
A must-have recipe book designed for cyclists of all levels, written by Alan Murchison - a Michelin-starred chef and champion athlete who now cooks for British Cycling's elite athletes. His easy-to-make and nutritionally balanced meals will help cyclists reach their cycling performance goals - this is flavoursome food to make you go faster.
The Cycling Chef features more than 65 mouth-watering recipes - including breakfasts, salads, main meals, desserts and snacks, as well as vegetarian and vegan dishes - each designed with busy cyclists in mind. They are all quick and easy to prepare, and are made from ingredients that are readily available in any local supermarket.
A good diet won't make a sub-standard cyclist into a world beater, but a poor diet can certainly make a world class or any ambitious cyclist sub-standard. However, an optimised diet, whatever your potential, will help you reach your own personal performance goals.
When you think Brazil, you think Carnival an explosion of colors and flavors. BRAZA is no different, full of vibrant traditional Brazilian dishes that will have you experiencing the carnival atmosphere in the comfort of your own home. With 80 authentic recipes, BRAZA will help you to discover the explosive tastes of Brazilian food and cooking from sizzling Churrascarias, to street food, to family inspired dishes, with an introduction into the Brazilian people and cultures as experienced by Brazilian chef and author, Andre Felicio."


This talk will address the following points and provide healthcare leaders with a solid understanding of what it will take to implement and execute a successful IoT strategy in their environment.
• What does a successful IoT strategy look like?
• How does IoT mean in the healthcare industry?
• How do we build a roadmap to implementing IoT solutions?
This session is for leadership team members.


Costa Mesa, Calif.—Kye Yeung, owner of European Motor Car Works, has owned four collision shops in the four decades he's been in the business, beginning in Hong Kong, where he was born and coming to California in 1960.
In January 2003, we opened our third European Motor Car Works location in Santa Ana, a 16,000- square-foot state-of-the art repair facility and the cars poured in," he said.
The new facility made it possible to repair more vehicles, but with the increase in vehicles came an increase in phone calls and paperwork, Yeung said. To assist with those demands Yeung's daughter, Nichole, joined the family business in May 2003. And in 2005, his daughter, Jennifer, joined the business to fill yet another office position. In 2009, Nichole married Mike Hubbard, who has been working alongside the family since 2003, Yeung said.
Yeung said business grew to the point where five years ago the shop decided to specialize in only four top brands: Tesla, Jaguar, Land Rover, and Aston Martin.
The shop has six Globaljigs now sold by Chief, two Car Benches, 12 Rotary lifts, two Hunter alignment machines, three GFS spray booths, two Fronius welders, and it uses Tesla Toolbox for all Tesla vehicles and an asTech2 remote diagnostic device for all other vehicles.


BOSTON, April 28, 2015 – Carbonite, Inc. (NASDAQ: CARB), a leading provider of cloud and hybrid business continuity solutions for small and midsize businesses (SMBs), today announced the results of a 2015 Business Continuity Study done in conjunction with IDC, titled "The Growth Opportunity for SMB Cloud and Hybrid Business Continuity." In the survey of 700 SMBs worldwide, IDC found that 81 percent of SMBs currently using business continuity solutions are considering improvements to their strategies with 72 percent expected to increase investments in business continuity over the next 12 to 24 months.
The IDC white paper found that a typical SMB relies on three to four different solutions for maintaining business continuity, commonly with different solutions for different applications. Currently, 65 percent of SMBs leverage on-premise data backup; however, SMBs are increasingly turning to cloud or hybrid strategies to achieve business continuity and growth is anticipated in the Backup-as-a-Service and Recovery as-a-Service segments which are only 29 percent and 21 percent penetrated today.
Reduce Complexity: With three to four different business continuity products in use SMBs need simple, easy-to-deploy and manage business continuity services.
To read more on this research, you can download the full whitepaper here. To learn about Carbonite's Business Continuity solutions for SMBs, please visit http://www.carbonite.com/online-business-backup-plans.


text:
Behind the Scenes, Film, international Talent, Reviews, Interviews & Features!, Screenwriter
WALTON CREATES A MODERN ROMANCE BY FLIPPING THE GENDER ROLES IN "THE DATING RING"
May 26, 2017 pressva	Leave a comment
Boxers are tough. They are visceral creatures who are quick to physical action and known for few words (with the possible exception of Muhammad Ali) and disconnected from their emotions. The antithesis of this type of person is the calm, well learned, and eagerly helpful librarian. Those who find themselves in this profession are soft spoken professionals who appreciate a good razor for their beard. Wait…were you thinking of a female librarian and possibly a male boxer? Sarah Walton was likely hoping you would make this mistake when she wrote the screenplay for the film The Dating Ring. This film flips the gender roles that we have come to expect. Exploring the dynamic of a relationship between a female boxer and a male librarian, Sarah wanted to challenge both herself and the audience to see these characters as unique and not just another gender assumption. The Dating Ring won worldwide acclaim and was an Official Selection for the Lumiere Film Festival, Italy (2015). Romantic Italians loved the idea which Walton presented that every female/male relationship should be considered at face value; a lesson we'd all be better off learning. Sarah has a pedigree which includes many romantic comedies but The Dating Ring presents its action with a goal of making the viewer ponder just as much as being entertained. The ultimate question asked by this film is, "What is strength?"
When Sarah went through a bad break-up and experienced a betrayal, she did what all artists do…she created. She saw her own dating experience as combative and took the pugilist metaphor to a literal place in her screenplay. To make a clean break from her normal romantic comedy method, she wrote the initial draft without dialogue to challenge herself. This approach gave her a radically different tone for the film and exhibited a fresh approach for Walton. The gender role switch of the two main characters might sound odd on paper but works amazingly well on screen, no doubt due to the incredible performances of Emily Goddard (Shayne) and Nick Farnell (Benji). Shayne is a thirty-three-year-old female boxer, bred by her retired boxing champion mother to be a fighter but it was never Shayne's passion. She has a maternal mother inside her dying to get out, but her tough exterior and mannerisms belie her true desire for intimacy. Benji is a gentle and compassionate man in his mid 30's, raised by his strong single mother and two older sisters who taught him the importance of strength and compassion after they escaped from his con artist father. His Achilles heel is being lied to because he watched his mother cry herself to sleep night after night as a result of his father's lies. He wants true love, not a ruse. Walton states, "In society, the pressure for males and females to focus predominantly on their masculine or feminine traits can be psychologically unhealthy for us as individuals, our self-expression, and the way we interact with one another. Gender role reversal in film challenges this division and promotes equality for the sexes. Within a melodramatic film it's difficult to stray from the traditional expression and repression of female characters in stereotypical feminine behavior, in which non-diegetic music plays a role. A way of solving that problem is gender role reversal. Steering away from the historical portrayal of masculine and feminine in film will allow us to challenge stereotypes and potentially ease the pressure for men and women to feel limited by their genders in society."
Donna Hensler (Supervising Producer on The Dating Ring) Recognized the magic in Sarah's script immediately. She recalls, "As soon as I picked up the script for The Dating Ring I was captured by the voice of the lead character Shayne; a female boxer struggling with the trials and tribulations of love. Sarah's writing, though commercial and mainstream, is extremely honest and original. She thinks outside the box and isn't afraid to take a risk. Sarah is a passionate story teller and her stories reflect her unique view of the world and positive view of humanity which is perfectly suited to the romantic comedy genre."
The core of The Dating Ring is designed around fighting. The reveal of the plot is that what you think you are fighting for may not be what you really should be fighting for. With 10 years out of the dating game, Shayne gets back in the ring. She's training for a big fight and she's losing her game, so focus is imperative. Her boxing coach mother lets her in on the family secret to winning championships…sex the night before the fight, because it will help her loosen up and focus on the game. Shane meets a male librarian named Benji to whom she is surprisingly attracted. The fact that he's a male librarian and has a child (she thinks children are the devil) intimidates her, causing her insecurities to flair. She struggles to break the ice with him and finds herself acting out and screaming obscenities like a Tourette's syndrome victim. Before she knows it she has a fist full of lies to cover up and she's in too deep. Her fighting increasingly suffers culminating in a choice between the sport she's loved her whole life and the man of her dreams. When they kiss for the first time Shayne reveals her true self. Benji, hurt that she lied, breaks into tears. She does what any woman in her position would do…she runs off to the boxing ring for the big game. Shayne finds herself in the ring and set up for the wining punch but she can't do it anymore. Her love for Benji has changed her and she feels compassion for the first time in a long time. She throws in her boxing gloves right then and there with the realization that gentleness is strength.
Just as profound as the role reversal for this story is the idea presented that we cannot judge ourselves by the way that others see us. For Shayne, it is her judgmental and pushy mother who envisions an idea of what her daughter's life should be. Discovering your sense of self is a thread that runs through much of Walton's writing. Consider this piece that she penned about other well-known romantic comedy characters of present times; Sarah wrote, "Bridget Jones perfected the art of imperfection. We love watching her and characters like Carrie Bradshaw, Nina Proudman, or Ted Mosby take chances, put themselves out there and fall down (often literally) because when they make mistakes it makes us feel better about our failures. It reassures us that it's okay to be flawed. Mistakes and failures are merely learning curves and opportunities for growth. Bridget and her fellow imperfectionists show us how making mistakes can lead to happiness because they always succeed in the end. But what if happiness isn't at the end of the film or T.V. series. What if happiness is right now? Not when we get that dream job, lose weight, finish a degree, earn more money, find a partner, have a baby or move house… but right now. If success is happiness and we can only achieve true happiness through mistakes and failures, then surely we should be welcoming and celebrating failure rather than trying to avoid it? I know I've made a million mistakes and I'll make a million more. And I wouldn't change a single one because they are part of what has gotten me here… And here is pretty great."
There is a deluge of romantic comedies to choose from if you want to be entertained and feel good. If you want all of the former as well as to be challenged to consider who we are as individuals rather than easily categorized tropes, watch a film that was written by Sarah Walton.
Previous PostYoung Ambition Leads to International Success for Duarte 'Duda' FigueiraNext PostKorean Actor Yohan Lee Shines in the U.S.


text:
BROADCASTING®
A PLAIN ANSWER
How Big Tech Cancels us and one Option of dealing with it - Chris Bedford
HOLDING ALL THINGS TOGETHER
Soft on Crime - Rising Violence - Zach Smith, the Church as the household of God, Lessons from Cain
Q1: Why is another Christian radio network needed?
A1: Because of the unique blend of programming that we offer. We hold to the truths of the Reformation, our music is traditional and uplifting, our features thoughtful and engaging, and we support the local church.
Q2: What in particular is unique about your programming?
A2: For part of our broadcast day, Redeemer offers a program sound reminiscent of the familiar "NPR." That is, a "Christian NPR," if you will. Morning Magazine for example, will cover news and current events, plus offer commentary and dialogue that comes at life from a Christian perspective. We carry thoughtful, informed syndicated features such as R.C. Sproul's Renewing Your Mind, and Ravi Zacharias' Just Thinking programs. Additionally, we provide an evening teaching program produced by Redeemer staff that is named Proclamation, which consists of a sermon or conference message of well known pastors and theologians from around the United States. At a future point, we hope to provide live call-in programs such as Pastor's Forum which takes listener calls, and provides answers by a rotation of pastors, theologians and Bible teachers. Our selection of music and features is designed to support the Biblical family. We see the family as the fundamental and foundational cultural unit that God has created. We encourage following God's principles of raising our families. Families who embrace the Bible, can often avoid the pitfalls of man's modern godless inventions - for example, the so-called "generation gap." The model of the godly family is to have the youngest members looking upward to more mature siblings, who in turn look to their parents. Thus Christian maturity is encouraged and preparation for real life takes place. This model is inculcated into our evening program, The Covenant Home. The programming on Redeemer is supportive of each family member who is in loving relationship to each other and covenantally with God. The programming will not undermine the authority of the head of the home, the Father/Husband. The Father/Husband's headship is always under the Lord Jesus Christ. As this ministry matures, we hope to do some live remotes, conferences and concerts.
Q3: How would you summarize in broad terms, the doctrine of Redeemer Broadcasting?
A3: Redeemer is committed to historical Biblical Christianity. We seek to be thoroughly Biblical, properly catholic, and true to the Reformation faith. We affirm the historic faith as presented in the Apostles', Nicene, and Athanasian Creeds, and in the great statements of the Reformation such as the Canons of Dordt, the Heidelberg Catechism, and the Belgic and Westminster Confession and Catechism.
Q4: In your Power Point presentation you say that you are "Evangelically Reformed," what do you mean by that?
A4: We stand in the tradition of Evangelical Christianity and in particular, we embrace the Reformation understanding of the Scriptures. We are Evangelical in that we believe: - That it is necessary that we be born again. That we are responsible before God, and need to repent of our sins and trust Jesus Christ alone for eternal salvation. The gospel needs to be preached to all of mankind so that people may hear and believe upon the Lord Jesus Christ. We are Reformed in that we believe: - That we have inherited Adam's sin and guilt, and are incapable of salvation apart from God's particular work of grace. We are dead in our trespasses and sins, and do not choose God on our own. Our salvation requires the supernatural choice and act of God in bringing us to new life. This gracious act is independent of any conditions outside of God Himself. - That the order of salvation is: election, predestination, union with Christ, calling, regeneration, faith, repentance, justification, sanctification, and glorification. - That Christ died for His people, and that His atoning work is efficacious and will bring His people to salvation - Further, that Christians will experience God's preservation and thus have confidence of eternal life with the Lord Jesus Christ. These distinctives we believe, bring great comfort to the child of God. Thus we can say with the Heidelberg catechism that our only comfort in life and death is: "That I with body and soul, both in life and death, am not my own, but belong unto my faithful Savior Jesus Christ; who, with his precious blood, has fully satisfied for all my sins, and delivered me from all the power of the devil; and so preserves me that without the will of my heavenly Father, not a hair can fall from my head; yea, that all things must be subservient to my salvation, and therefore, by his Holy Spirit, He also assures me of eternal life, and makes me sincerely willing and ready, henceforth, to live unto him." This historic faith which we enjoy, further reminds us of the statement in the Westminster Shorter Catechism describing man's chief end: "Man's chief end is to glorify God and to enjoy Him forever." To that we say, Amen!
Q5: What kind of music is played over Redeemer Broadcasting?
A5: Redeemer provides a music mix that is Traditional, or as a friend of ours suggested, Classic Christian. This means that our music style is uplifting and within certain stylistic bounds. Our mix includes old hymns, new hymns, some praise choruses, classical music, instrumentals, acapella works, some anthems, and some psalms. Our music is examined for lyrical content to assure its message is consistent with the Scriptures.
Q6: Does Redeemer Broadcasting play Christian Contemporary Music?
A6: We believe that God alone is Lord of the conscience, and that individual tastes may include music not chosen by Redeemer. We do not judge those whose tastes vary from ours, yet we have decided not to play music which has a hard-driving, heavily-syncopated beat. The majority of Christian Contemporary Music (CCM) is not played by Redeemer, while some softer CCM pieces are.
Q7: What about your syndicated features, do you edit objectionable music from them?
A7: No, we do not. As you know, some syndicated programs may include for example, some music having a beat or rhythm that is a bit "over the edge" from typical Redeemer Broadcasting music standards. However for the short time that the feature is on, we have decided for the sake of programming integrity, not to edit the content of our fellow broadcasters. If the sound of a broadcaster we carry, consistently departs from the music expectations of Redeemer, we may decide to remove that broadcaster from future air time on the network.
Q8: Do you embrace Charismatic Christianity?
A8: We see any group of Christians who confess the Triune God of the Scriptures and hold to the sufficiency of the Word of God, as being our fellow believers and we desire fellowship with them. However, the teaching heard over the Redeemer network is non-charismatic.
Q9: How is Redeemer Broadcasting funded ?
A9: We are funded via three means: Listener support, Churches placing Redeemer Broadcasting in their budgets, and (in the future) Not-for-profit Grants
Q10: Are there others behind the scenes who are working with you?
A10: Yes, there is a group of men and women who are praying daily for this ministry. This group receives weekly emails from our President as to the current progress of this ministry. The name of this mailing is the Tuesday Prayer Memo.
We also have a group of men and women who serve in an advisory role to the Redeemer Board. We strive to have one formal meeting with our Advisors each year, as well as compare notes with the Advisors on a regular basis. Some of our Advisors are pastors, some businessmen, some of broadcasters. Some of our Advisors worked in the past for Family Radio and help us to steer clear of the pitfalls that that ministry experienced with false doctrine, pride, and a total lack of accountability.
Q11: What stations are you on?
A11: Redeemer Broadcasting owns and operates WFSO 88.3 FM in the Hudson Valley plus three other translator stations. The frequencies are 88.3 FM Olivebridge, 105.3 Rhinebeck/Kingston/Hyde Park/Poughkeepsie, 101.1 Catskill/Hudson/Athens, and 90.3 Newburgh/Beacon/Cornwall. We also own and operate WNEQ 90.3 FM in Northern NJ. Finally we own and operate WXMD 89.7 FM in St. Mary's county, Maryland.
Q12: What about web streaming?
A12: Internet streaming was launched by Redeemer on August 1, 2006. The costs incurred with web streaming are somewhat high, due to the streaming provider costs which are proportional to the number of web listeners and bandwidth, as well as the royalties that must legitimately be paid. That said, we definitely need support from outlying areas, so that we can maintain the service.
Q13: How may I help?
A13: Glad you asked! We always need to pay our bills on time. The cost of keeping WFSO it's translators, WNEQ and WXMD on the air, plus internet streaming, with all the associated expenses such as royalties, business internet, contractor help, repairing equipment failures, insurance, etc, is roughly $750 per day. That is assuming most of the labor is donated. We need to reach the point where this amount of money is coming in regularly. As you can see, it takes alot of giving to keep these stations on the air 24x7. We are a 501(c)(3) non-profit organization. Gifts to Redeemer Broadcasting are tax deductible under section 170 of the IRS code. Additionally, we are authorized to receive tax deductible bequests, devises, transfers or gifts under section 2055, 2106, or 2522 of the IRS code. Another area you may help is by keeping your ear to the ground. We really need one station in an area of larger population. Maybe you know of an older person who owns a station and is considering "off-loading" it! Please let us know, as perhaps there may be a match for the glory of God. We need some help on writing grant proposals. Do you have that knowledge and gifting? Your expertise could be a big blessing to those of us at Redeemer who are working everyday at this ministry. With a few larger grants, it would help us pay off some bills that we currently have in front of us.
Q14: I thought WFSO used to be a Family Radio Station - are you still associated with them?
A14: WFSO was a Family Radio affiliate station in its early years. However, since Family Radio decided to no longer support any churches, deny baptism, and deny the Lord's Supper, it was necessary to leave that affiliation in order to remain faithful to the Scriptures. WFSO is no longer associated in any way with Family Radio. Additionally, WFSO was at one time owned by the wonderful little group known as Christian Media Associates, of Rhinebeck. Christian Media always remained faithful to the church and was grieved over what had happened to Family Radio. In 2005, WFSO changed hands and is now owned by Redeemer Broadcasting. On December 8, 2005 it was our joy to offer our listeners 24x7 Redeemer Broadcasting programming full time via WFSO.
© 2004-2022 Redeemer Broadcasting, Inc.
Contact us toll-free at 888-724-4427 or Email Us
FCC Applications | EEO | Site Map


Anytime, anywhere. Slip into sleek effortless style with these versatile Dolce Vita slides. Designed with beautiful hand-stitched leather detailing on the upper, these slide sandals will become your favorite pair this summer.


text:
layout: post
title: spring+mybaits配置
date:   2016-04-04 13:11:36
categories: [java,spring]
---

## spring+mybaits配置

本文介绍spring+mybatis配置,数据库使用mysql,mybatis代码使用mybatis-generator生成

1、创建maven项目,加入spring、mybatis、mysql、proxool依赖,并加入mybatis-generator插件,pom.xml如下
{% highlight ruby %}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.qerooy</groupId>
	<artifactId>spring-mybatis</artifactId>
	<version>0.0.1-SNAPSHOT</version>

	<properties>
		<spring.version>4.0.2.RELEASE</spring.version>
		<mybatis.version>3.2.2</mybatis.version>
		<mybatis-spring.version>1.2.0</mybatis-spring.version>
		<log4j.version>1.2.17</log4j.version>
		<mysql.version>5.1.29</mysql.version>
		<proxool.version>0.9.1</proxool.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-core</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-tx</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-jdbc</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>${log4j.version}</version>
		</dependency>

		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis</artifactId>
			<version>${mybatis.version}</version>
		</dependency>

		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis-spring</artifactId>
			<version>${mybatis-spring.version}</version>
		</dependency>

		<dependency>
			<groupId>mysql</groupId>
		    <artifactId>mysql-connector-java</artifactId>
		    <version>${mysql.version}</version>
		</dependency>

		<dependency>
			<groupId>proxool</groupId>
			<artifactId>proxool</artifactId>
			<version>${proxool.version}</version>
		</dependency>

		<dependency>
			<groupId>com.cloudhopper.proxool</groupId>
			<artifactId>proxool-cglib</artifactId>
			<version>${proxool.version}</version>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<version>3.2.3.RELEASE</version>
			<scope>test</scope>
		</dependency>

	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.mybatis.generator</groupId>
				<artifactId>mybatis-generator-maven-plugin</artifactId>
				<version>1.3.2</version>
			</plugin>
		</plugins>
	</build>
</project>
{% endhighlight %}

2、创建数据库qerooy,并创建一个user表;
{% highlight ruby %}
CREATE TABLE `user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL,
  `password` varchar(50) NOT NULL,
  `remark` varchar(50) DEFAULT NULL,
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

{% endhighlight %}
3、编写mybatis-generator代码生成插件配置文件generatorConfig.xml
{% highlight ruby %}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
  PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
  "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">

<generatorConfiguration>
  <classPathEntry location="D:\.m2\repository\mysql\mysql-connector-java\5.1.29\mysql-connector-java-5.1.29.jar" />

  <context id="Mysql2Tables" targetRuntime="MyBatis3">

  	<plugin type="org.mybatis.generator.plugins.RowBoundsPlugin">
  	</plugin>

	<commentGenerator>
		<property name="suppressAllComments" value="false" />
		<property name="suppressDate" value="true" />
	</commentGenerator>

    <jdbcConnection driverClass="com.mysql.jdbc.Driver"
        connectionURL="jdbc:mysql://localhost:3306/qerooy"
        userId="root"
        password="123jkl">
    </jdbcConnection>

    <javaTypeResolver >
      <property name="forceBigDecimals" value="false" />
    </javaTypeResolver>

    <javaModelGenerator targetPackage="com.qerooy.model" targetProject="src/main/java">
      <property name="enableSubPackages" value="false" />
      <property name="trimStrings" value="true" />
    </javaModelGenerator>

    <sqlMapGenerator targetPackage="map"  targetProject="src/main/resources/">
      <property name="enableSubPackages" value="false" />
    </sqlMapGenerator>

    <javaClientGenerator type="XMLMAPPER" targetPackage="com.qerooy.mapper"  targetProject="src/main/java">
      <property name="enableSubPackages" value="false" />
    </javaClientGenerator>

    <table schema="root" tableName="user" domainObjectName="User" >
    	<generatedKey column="id" sqlStatement="MYSQL" identity="true" />
    </table>

  </context>
</generatorConfiguration>
{% endhighlight %}

执行命令 mvn -Dmybatis.generator.overwrite=true mybatis-generator:generate生成mybatis代码

4、编写mybatis分页插件
{% highlight ruby %}
package com.qerooy.base.dialect;

public class Dialect {

	public boolean supportsLimit() {
		return false;
	}

	public boolean supportsLimitOffset() {
		return supportsLimit();
	}

	public String getLimitString(String sql, int offset, int limit) {
		return getLimitString(sql, offset, Integer.toString(offset), limit, Integer.toString(limit));
	}

	public String getLimitString(String sql, int offset, String offsetPlaceholder, int limit, String limitPlaceholder) {
		throw new UnsupportedOperationException("paged queries not supported");
	}

}
{% endhighlight %}

{% highlight ruby %}
package com.qerooy.base.dialect;

public class Dialect {

	public boolean supportsLimit() {
		return false;
	}

	public boolean supportsLimitOffset() {
		return supportsLimit();
	}

	public String getLimitString(String sql, int offset, int limit) {
		return getLimitString(sql, offset, Integer.toString(offset), limit, Integer.toString(limit));
	}

	public String getLimitString(String sql, int offset, String offsetPlaceholder, int limit, String limitPlaceholder) {
		throw new UnsupportedOperationException("paged queries not supported");
	}

}
{% endhighlight %}

5、编写spring配置文件applicationContext.xml、jdbc.properties

{% highlight ruby %}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
        http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd">

	<context:component-scan base-package="*" />

	<util:properties id="dataSourceProps" location="classpath:jdbc.properties" />

	<bean id="dataSource" class="org.logicalcobwebs.proxool.ProxoolDataSource">
		<property name="driver" value="#{dataSourceProps['jdbc.driverClassName']}" />
		<property name="driverUrl" value="#{dataSourceProps['jdbc.url']}" />
		<property name="user" value="#{dataSourceProps['jdbc.username']}" />
		<property name="password" value="#{dataSourceProps['jdbc.password']}" />
	</bean>

	<!-- 配置Mybatis -->
	<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
		<property name="dataSource" ref="dataSource" />
		<property name="mapperLocations" value="classpath:map/*.xml" />
		<property name="plugins">
			<list>
				<ref bean="pagingPlugin" />
			</list>
		</property>
	</bean>

	<bean id="pagingPlugin" class="com.qerooy.base.plugin.PagingPlugin">
		<property name="dialectClass">
			<value>#{dataSourceProps['jdbc.dialect']}</value>
		</property>
	</bean>

	<bean name="mapperScannerConfigurer" class="org.mybatis.spring.mapper.MapperScannerConfigurer">
		<property name="basePackage" value="com.qerooy.mapper" />
		<property name="sqlSessionFactory" ref="sqlSessionFactory" />
	</bean>

</beans>

{% endhighlight %}

Properties代码
{% highlight ruby %}
jdbc.username=root
jdbc.password=123jkl
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/qerooy?useUnicode=true&characterEncoding=UTF-8
jdbc.dialect=com.qerooy.base.dialect.MySQLDialect
jdbc.initialPoolSize=10
jdbc.minPoolSize=2
jdbc.maxPoolSize=5
jdbc.maxIdleTime=60
jdbc.acquireIncrement=5
jdbc.idleConnectionTestPeriod=60
jdbc.acquireRetryAttempts=20
jdbc.breakAfterAcquireFailure=true
jdbc.maxStatements=0
jdbc.testConnectionOnCheckout=false

{% endhighlight %}
6、编写Service操作数据库类及测试代码
{% highlight ruby %}
package com.qerooy.service;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.qerooy.model.User;
import com.qerooy.model.UserExample;

public interface UserService {

	public User findById(Integer id);

	public List<User> findByPage(UserExample example,RowBounds rowBounds);

}

{% endhighlight %}

{% highlight ruby %}
package com.qerooy.service.impl;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qerooy.mapper.UserMapper;
import com.qerooy.model.User;
import com.qerooy.model.UserExample;
import com.qerooy.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	UserMapper userMapper;

	@Override
	public User findById(Integer id) {
		return userMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<User> findByPage(UserExample example,RowBounds rowBounds){
		return userMapper.selectByExampleWithRowbounds(example,rowBounds);
	}

}
{% endhighlight %}

{% highlight ruby %}
package com.qerooy;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.qerooy.model.User;
import com.qerooy.model.UserExample;
import com.qerooy.service.UserService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"classpath*:applicationContext*.xml"})
public class MybatisTest {

	@Autowired
	UserService userService;

	@Test
	public void findById() {
		User user = userService.findById(3);
		System.out.println(user);
	}

	@Test
	public void findByPage() {
		UserExample example = new UserExample();
		RowBounds rowBounds = new RowBounds(1,10);
		List<User> list = userService.findByPage(example,rowBounds);
		System.out.println(list);
	}

}

{% endhighlight %}

为方便查看sql语句,可配置以下log4j.properties

{% highlight ruby %}
log4j.rootCategory=INFO, CONSOLE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %c %m%n

log4j.logger.com.qerooy.mapper = DEBUG

{% endhighlight %}

end.

redpajama_set_name: RedPajamaGithub