Monthly Archiv: December, 2017

Basic Controller Framework (New)

Package:
Basic Controller Framework
Summary:
Framework to route requests configured controllers
Groups:
Design Patterns, Libraries, PHP 5
Author:
Yerfry Ramirez
Description:
This package is a framework to route requests configured controllers...

Read more at https://www.phpclasses.org/package/10513-PHP-Framework-to-route-requests-configured-controllers.html

Minimum Viable Sharing Meta Tags

MVSMT for short... yeah, like this is going to catch up. So anyway.

Before starting publishing the Web Performance Calendar this year I though: hey, them articles should show up nicer when shared in the most Social of Medias. You know, a big ol' image and that. (It's not really how I talk actually, even to myself)

I know about Facebook's Open Graph tags, but had little clue what others are doing, so I thought I should just install a high-ranked, high-starred WordPress plugin which should take care. And so I did, and so it does, just fine!

However, looking at the markup, it gives me a headache. Just so many meta tags. It's complicated. Who wants to deal with this by hand? Small wonder I'm letting a plugin do it.

But then... can it be simplified? Fewer tags, same result, can't be that bad.

The result #1

The Minimum Viable Sharing Meta Tags look like so:

<head>
  <title>Minimum Viable Sharing Meta Tags (html title tag)</title>
  <meta name="description" content="Testing MVSMT with meta name=description"/>
  <meta property="og:image" content="https://www.phpied.com/files/mvsmt/gloria.png"/>
</head>

Makes sense, no? We have a special HTML tag for title, we have a dedicated meta name for description, the only thing missing is an image. So OG (Open Graph) to the rescue! Done, bye!

The result #2

Well... let's add a canonical URL, just in case someone shares the URL with a few ?name=value&name2=value2 pairs.

<head>
  <title>Minimum Viable Sharing Meta Tags (html title tag)</title>
  <meta name="description" content="Testing MVSMT with meta name=description"/>
  <meta property="og:url" content="https://www.phpied.com/files/mvsmt/mvsmt.html"/>
  <meta property="og:image" content="https://www.phpied.com/files/mvsmt/gloria.png"/>
</head>

Very cool! In my testing this covers Facebook (initiator of Open Graph), Google+ (supports OG tags as the first fallback to the preferred schema.org tags) and LinkedIn too.

The problem is that Twitter complains about missing title and description. But they do support OG in addition to their twitter:* meta tags. So last and final MVSMT...

The result #3, third time is the charm

<head>
  <title>Minimum Viable Sharing Meta Tags (html title tag)</title>
  <meta name="description" content="Testing MVSMT with meta name=description"/>
  <meta property="og:url" content="https://www.phpied.com/files/mvsmt/mvsmt.html"/>
  <meta property="og:image" content="https://www.phpied.com/files/mvsmt/gloria.png"/>
  
  <meta property="og:title" content="Minimum Viable Sharing Meta Tags (meta og:title)"/>
  <meta property="og:description" content="Testing MVSMT with meta og:description"/>
  <meta name="twitter:card" content="summary_large_image"/>
</head>

A little annoying that you have to duplicate title and description, but hey...

UPDATE

Thanks to Michaël Guitton, who pointed out that Snook figured out the duplication of the description. The description tag can be like:

  <meta name="description" property="og:description" content="Testing MVSMT with meta og:description"/>

Yeeey!

Notes

  • Everyone supports OG
  • Everyone but Twitter supports HTML <title> and <meta name="description"../>
  • If you don't care about Twitter, go with result #2
  • If you like a smaller Twitter card, replace summary_large_image with summary
  • Note the difference between meta name and meta property. All OG tags are meta property
  • If you want different titles and descriptions in Twitter vs Facebook you can do
    <meta property="og:title" content="FB title"/>

    vs

    <meta name="twitter:title" content="Twitter title"/>
  • I'm only 4 years late to the party, thanks @PeterNikolow!

Demo page

The demo page

How it looks in Twitter:

In Facebook:

LinkedIn (oops, no description, although there should be according to their docs):

And Google+ missing the description too:

Though they do show it in the preview before you post:

Validation tools

Update

Andrew Norcross (@norcross) wrote a simpler WordPress plugin based on this post.

Chelsea duo set to break 21-year old Premier League record! – FCNaija

Cesar Azpilicueta and Alvaro Morata are set to break a Premier League record for the most prolific partnership in terms of direct route to goals.

Already Azpilicueta is responsible for six of the 10 Premier League goals that Morata has scored, and they are enroute to surpassing the record set by the pairings of Mike Newell and Alan Shearer, at Blackburn, and Liverpool’s Stan Collymore and Robbie Fowler – both in 1995-96.

At the rate Chelsea’s defender-striker duo are going, they should easily match and surpass that figure of nine.

“It’s working, obviously!” Azpilicueta said in a post-match interview. The two Spaniards have also produced the most fruitful route to goal in any of Europe’s top five leagues.Football Prediktor

No player has provided as many assists for a single team-mate as in the Azpilicueta-Morata partnership.

They are now just three goals off the Premier League record

Manager Antonio Conte said on Boxing Day: “There is this great link between him (Azpilicueta) and Alvaro, it’s not the first time. I hope they continue in this way.

“Morata has to pay for not just one dinner but more for Azpi, if they invite me I want to go with them.”Football Prediktor

Article source: http://fcnaija.com/chelsea-duo-set-to-break-21year-old-premier-league-record

Watch New Year celebrations along the shores in Dubai

A New Year’s Eve yacht gathering in Dubai will see more than 1,000 yachts taking part.

The gathering on December 29 to 31 will be held in a leisure setting along the shores of Dubai. “It will provide an exceptional experience to enjoy the legendary New Year celebrations of Dubai, alongside the world’s largest fireworks and light displays,” said Sea Dubai in a Press statement.

The Dubai Maritime City Authority (DMCA) and the Dubai Police are among the 12 public and private entities supporting the gathering.

Sultan bin Sulayem, Dubai Ports World Group Chairman CEO and Chairman of Ports, Customs and Free Zone Corporation, said: “The New Year’s Eve yacht gathering will be a new, different way to celebrate the New Year. We have now a more diversified tourism product offering, and with bold initiatives like Sea Dubai, we can expect more success and growth in 2018 and beyond.”

Ali Al Daboos, executive director of operations, DMCA, said: “New Year’s Eve yacht gathering 2018 is an important addition to ongoing initiatives for enhancing Dubai’s position as a world-class destination for New Year’s Day celebrations. This is an excellent initiative aimed at delivering a unique three-day experience spanning the Burj Al Arab up to the Palm Jumeirah.”

reporters@khaleejtimes.com

  • Dubai

    Watch New Year celebrations along the shores in…

    The Dubai Maritime City Authority (DMCA) and the Dubai Police are… READ MORE

  • New Year 2018

    UAE residents gear up to bid adieu to 2017

    A lot of residents are sceptical about spending huge amounts of money … READ MORE

  • General

    449 Emiratis receive over Dh300 million in…

    The programme has approved support for 7,000 beneficiaries since… READ MORE

  • Nation

    Middle East’s first queen bee rearing station…

    The ‘Saskatraz’ bees have a shiny golden sheen and produce huge… READ MORE

  • Transport

    Sharjah traffic fines discount extended to…

    Earlier in December Sheikh Mohamed bin Zayed had directed MoI to… READ MORE

  • Global Business

    The world’s rich become $1 trillion richer

    Three prominent UAE entrepreneurs make it to super-elite list READ MORE

  • Dubai

    Dubai announces road, Metro station closures for…

    4,000 parking slots and 170 buses to ease transportation for New Year … READ MORE

  • Dubai

    Free parking in Dubai for two days during New…

    RTA has also announced Metro and tram timings. READ MORE

Article source: https://www.khaleejtimes.com/nation/dubai/watch-new-year-celebrations-along-the-shores-in-dubai

NNPC incurs N9.4bn petrol subsidy in 7 days

The Nigerian National Petroleum Corporation (NNPC) has incurred about N9.4 billion in subsidy since Tuesday last week going by its own admission that it has ramped up petrol import by 52 million litres daily to tackle an embarrassing fuel scarcity that marred the holidays. According to the NNPC, 52 million litres of daily petrol importation…

Article source: https://www.businessdayonline.com/nnpc-incurs-n9-4bn-petrol-oil-subsidy-7-days/

‘Desperate’ Austin Ejide wants to represent Eagles in Russia – FCNaija

Hapoel Hadera goalkeeper, Austin Ejide has said he will work hard and do his best so as to secure a spot in the Super Eagles team that are gearing up for the 2018 World Cup in Russia. 

Ejide 33, last played for the Super Eagles in 2014 in a friendly match between Nigeria and Scotland. 

Despite playing for in Israel’s second tier, Ejide is sheer hopeful of securing a place in the Super Eagles team heading to Russia next year.Football Prediktor

“The World Cup? I’ll try my very best until the end of the season,” Ejide told TheCable.

“But we’ll just have to wait and see. I’ll give my all, but it’s up to the Super Eagles coach Gernot Rohr.”

Ejide has been named in three FIFA World Cup squads; 2002 in Japan and South Korea, 2010 in South Africa and 2014 in Brazil.Football Prediktor

Article source: http://www.fcnaija.com/desperate-austin-ejide-wants-to-represent-eagles-in-russia

Go Installer (New)

Package:
Go Installer
Summary:
Generate CodeIgniter applications' installer files
Groups:
Code Generation, Configuration, Databases, Files and Folders, PHP 5
Author:
Abed Putra
Description:
This class can generate CodeIgniter applications' installer files...

Read more at https://www.phpclasses.org/package/10588-PHP-Generate-CodeIgniter-applications-installer-files.html

Legendary Liberian striker, George Weah thanks Arsene Wenger

African legend George Weah has praised Arsenal boss, Arsene Wenger as the man who helped him in achieving his football dreams in Europe during his career.

The 51-year old ex-footballer-turned-politician said Wenger showered him a fatherly love at a period in the beautiful game when he doubted himself and his ability to make it in football.

Recalling the period he worked with Wenger while he was at Monaco Weah said: Football Prediktor

“He was a father figure and regarded me as his son,” Weah told the Guardian. “This was a man when racism was at its peak, who showed me, love. He wanted me to be on the pitch for him every day.

“One day, I was quite tired of training and told him that I was having a headache. He said to me: ‘George, I know it’s tough but you need to work hard. I believe that with your talent, you can become one of the best players in the world.”

“So, I listened and kept going on. Besides God, I think that without Arsène, there was no way I would have made it in Europe.”Football Prediktor

Article source: http://www.fcnaija.com/legendary-liberian-striker-george-weah-thanks-arsene-wenger

Barcelona joins Liverpool in the race to sign Van Dijk – FCNaija

Barcelona has joined Liverpool in the race to sign Southampton defender Virgil van Dijk, according to report.

Liverpool is set to meet the £70m valuation for Van Dijk and reports in TMW say Barcelona is also interested in signing the Dutch international.

Spanish media outlets also claimed that Barcelona has contacted Southampton over his possible signing, in a bid to replace departing Javier Mascherano.Football Prediktor

The Southampton’s captain has been o the radar of Liverpool since the end of last season, Jurgen Klopp is a fan of the centre back and he has given the Reds the go-ahead to bring the Dutchman to Anfield but the deal could not materialise and Southampton also threaten to report Liverpool to the English FA for illegal approach.

Van Dijk is eligible to play in the Champions League, which has increased the prospect of signing him by the Camp Nou giants.

Football Prediktor

Article source: http://www.fcnaija.com/barcelona-joins-liverpool-in-the-race-to-sign-van-dijk

Dubai Shopping Festival begins with heavy traffic, fabulous sales

Shoppers rushed to various malls for their year-end shopping needs as the 23rd edition of the annual Dubai Shopping Festival (DSF) kicked off across Dubai on Tuesday.

On Tuesday noon, the roads leading to some malls started experiencing heavy traffic, parking spaces were hard to find and some Metro stations registered higher footfall as shoppers took advantage of the huge discounts ranging bet-ween 25 and 90 per cent. The participating malls are Mall of the Emirates, City Centre Mirdif, City Centre Deira, City Centre Me’ai-sem, City Centre Barsha and City Centre Al Shindagha.

The supersale, which started from 12pm and ran until midnight, gave customers the chance to get their hands on amazing deals. Moreover, shoppers who spent Dh300 during the 12 hours entered a lucky draw to grab the grand prize of Dh50,000 worth of shopping vouchers.

Shoppers were also treated to in-mall entertainment. At The Dubai Mall, drummers, harpists and musical waiters provided music and cultural programmes.

Chinese national Li Zhu, who is visiting Dubai for the first time, told Khaleej Times that he is amazed with the colourful shopping tradition in the emirate. “There is music, fireworks displays and of course, the prices of shopping items are very tempting,” he said.

Shoppers looked for the best deals in jewellery, gold, fashion merchandise and gadgets. Some also planned to redecorate their homes for the coming new year while others bought late Christmas gifts for their families and friends.

Attention bargain hunters! Don’t miss out on the frenzy shopping at astounding discounts of up to 90% off at participating malls @malloftheemirates @citycentredeira @citycentremirdif @citycentrealshindagha @citycentremeaisem @mycitycentrealbarsha The 12 hour sale is in full swing! Tick, tock, the sale will stop at Midnight! #mydsf ????? ????? ?????????! ?? ?????? ???? ?????? ?????? ????? ?? ?????? ????? ??? ??? ??% ?? ????? ?????? ????????: ??? ????????? ???? ???? ????? ???? ???? ????? ???? ???? ???????? ???? ???? ?????? ????? ???? ???????. ????????? ?????? ????? ? ?? ???? ?????? ??? ????? ?????! #??????_???_??????

A post shared by Dubai Shopping Festival (@dsfsocial) on Dec 26, 2017 at 4:50am PST

Staff at malls also showed their excitement about the annual shopping festival. Filipino expat Aimee Payoyo said the DSF means more sales for their company and more sales means bonus for the staff.

At night, the Dubai skies were lit with spectacular fireworks over Al Seef, La Mer and The Beach opposite JBR. The shopping extravaganza will run daily until January 27,2018, offering tourists and residents five weeks of incredible shopping experience.

Reasons to get you shopping this DSF

25-75 per cent discount at over 3,000 participating outlets across the Dubai.  But be sure to get to the malls early to grab the best items.

Shop and win. Spend Dh200 at participating malls of the Dubai Shopping Malls Group to get a chance to win cash and gift vouchers to the value of Dh1 million at participating malls.

More discounts. Purchase a DSF Pass to get up to 65 per cent discount at over 60 top attractions and dining options across the city such as, ‘At  The Top’ Burj Khalifa, Kaleidoscope, IMG Worlds of Adventure and La Perle.

DSF is not just about shopping. Watch the mesmerising fireworks every night at Al Seef (9pm)  La Mer (9pm) and The Beach (8.30pm) opposite JBR, will be having spectacular firework displays.

Enjoy various light and musical shows, including ‘The Lighting Fairies’ and ‘Light Umbrella’ at Al Seef, the latest lifestyle destination by The Creek

Visitors to The Beach opposite JBR can enjoy the carnival atmosphere with live performances from local and international acrobats

If you want to redecorate your home for 2018, get a chance to win a specially curated DSF concept room, complete with top furniture worth up to Dh10,000 for every Dh1,000 at Ikea, ID Design, Home Centre, Home Box and Cottage Chic

Chance to drive home Infiniti QX60 plus Dh150,000 in cash if you buy raffle tickets worth Dh200 from EPPCO and ENOC petrol stations, Global Village, Zoom, and Metro station across the city

Friday shopping madness. Every Friday throughout DSF, there will be a ‘Friday Surprise’ with an exclusive retail product/product range sold at a great price at a specified shopping location.

KT Nano Edit

Happy shopping

Discounts are just an icing on the cake. Isn’t it? Anyone who has been in Dubai during the annual shopping festival would vouch that the month-long event turns the whole city into a jamboree of sorts. It has always been a crowd-puller for residents as well as tourists. Rarely have we seen marketing events of this scale succeed and stay afloat for so long. The DSF is magical indeed!

angel@khaleejtimes.com

  • Dubai

    Dubai Shopping Festival begins with heavy traffic,…

    Shoppers looked for the best deals in jewellery, gold, fashion… READ MORE

  • Weather

    Fog causes flight delays, traffic jams in UAE for …

    Weather experts have forecast fog formation to continue until Friday, … READ MORE

  • New Year 2018

    New Year fireworks in Dubai to begin at 8pm on…

    Global Village to welcome New Year with India, Pakistan, Bangladesh READ MORE

  • Crime

    Man jailed for biting, assaulting Dubai policemen

    In its ruling on Tuesday, the Dubai Court of First Instance also… READ MORE

  • VAT in UAE

    No VAT on Dubai Metro, taxis in UAE

    Where Careem and Uber are used as a taxi for passenger transport; the … READ MORE

  • New Year 2018

    Video: Burj Khalifa lights up ahead of grand New…

    The experience will be streamed online at www.mydubainewyear.com READ MORE

  • New Year 2018

    Top 10 places in Abu Dhabi to ring in 2018

    The very first ‘New Year’s Eve Countdown Village’, taking place on… READ MORE

  • Crime

    Man jailed for biting, assaulting Dubai policemen

    In its ruling on Tuesday, the Dubai Court of First Instance also… READ MORE

<!–

//$(document).ready(function(){
$(“#commentssubmit”).load(‘/misc/misc/SubmitUserComments.pbs?AID=/20171226/ARTICLE/171229437&commenttype=AR&nocache=1&r=’+ RandomString(20)+’#getme’);
if (CommentsCheckUrlForNocache())
$(“#commentscontainer”).load(‘/apps/pbcs.dll/UserComments?AID=/20171226/ARTICLE/171229437&commenttype=AR&nocache=1’);
else
$(“#commentscontainer”).load(‘/apps/pbcs.dll/UserComments?AID=/20171226/ARTICLE/171229437&commenttype=AR’);
//});
–>

Article source: https://www.khaleejtimes.com/nation/dubai/dubai-shopping-festival-begins-with-heavy-traffic-fabulous-sales

Powered by Gewgley