Notifiable Exception is a Laravel package by Andrea Marco Sartori to send notifications for certain exceptions.
The post Send Notifications for Exceptions with the Notifiable Exception Package appeared first on Laravel News.
Join ...
When using PHP, you've probably used DocBlocks. They can be used to add additional information that can't be inferred by looking at the source code alone. DocBlocks can be used by IDEs, like PhpStorm, to improve autocomplete suggestions.
In this blogpost, I'd like to highlight a not so well known D...
As much as we associate Apple with its handheld devices these days, their history is filled with a great depth of other compelling products. Desktops, laptops, even printers and monitors.
And, just like the ubiquitous iPhone (or even the iPod), they often were ahead of their time and quite prescient. Just think – PCs would probably still be simple beige boxes if Apple hadn’t shaken things up.
Today, we’re going to celebrate some of Apple’s greatest hits – including that phone in your pocket. Here is a collection of code snippets that recreate the look and/or experience of their products.
The Web Designer Toolbox
Unlimited Downloads: 1,000,000+ Web Templates, Themes, Plugins, Design Assets, and much more!
For every Mac owner, this happy little fellow is a good sign. It means that the device’s boot sequence has successfully begun and that you’ll be creating cool stuff in no time. Here, the icon is recreated and animated with CSS.
While the modern iMac offers a sleek aesthetic, the old school versions were of a different sort. Part of that, of course, was the CRT monitor. But they still held a certain charm, like this classic G3 version. What makes this faithful rendition even better is that you can click the power button to “boot up”.
The iPod wasn’t the first MP3 music player – but it was the one that took the world by storm. The extra storage was great (the first models came in 5 or 10 GB capacities), but it was the UI that really made the device a hit. Not to mention that, when paired with iTunes software, the device ultimately changed the music industry. This iPod Classic will help you relive the start of the revolution.
If you grew up in the 1980s or early 90s, you undoubtedly had one of these beasts in school – or something like it. The old desktops featured massive keyboards and weren’t exactly portable. Yet, for many, this type of computer was among the first we’d ever used.
Heading to a design conference? Then you’ll likely see a number of various MacBook models throughout. Their sleek industrial design is well-regarded by us creative types. As further proof, it’s often used in mockups, such as this HTML and CSS snippet.
The Mac Pro is a seriously beautiful workstation. Over the years, it has pushed desktop design to new heights of form and function. The iteration shown here sports a unique case that lifts right off, providing 360° access to internal components. If you’re curious as to how it opens, well, there’s a pen for that too.
Debuting to much fanfare in 2015, the Apple Watch has evolved into everything 1960s-era spy movies predicted a smart watch would be – and more. It displays messages, monitors your activity and heart rate, along with a myriad of other functions. And, oh yeah, it plays music. This snippet demonstrates the watch’s activity rings feature.
The iPhone was, of course, the device that truly revolutionized the smartphone. It raised the expectations of what a phone can and should do. As new models come out, we keep thinking, what will they do next? And it always seems that the product delivers another game-changing feature. Here, we see an iPhone X, complete with the infamous “notch”.
While some of the most popular and successful Apple products are represented above, it’s really just a small portion of the company’s history. Products such as the Newton, Cube, iBook, Lisa and so many others are also important parts of the company’s journey – they’re just not necessarily immortalized in code.
If you’re interested in some of those other devices, apple-history.com is a great place to spend some time. And, if you’d like to see more code Apple-related snippets, check out our CodePen collection.
A video has gone viral on social media with the claim that Delhi Police halted an ambulance to let the convoy of BJP MP Manoj Tiwari pass, as a result of which a little girl fighting for life died.
The video, posted by Facebook page Aam Admi Zindabad, shows an ambulance, along with some other vehicles, stopped at a police blockade.
India Today Anti-Fake News War Room (AFWA) has found the claim to be misleading. The traffic seen in the video was stopped for the convoy of Malaysian Prime Minister in 2017.
Till the time of filing this story, the video was shared more than 2,300 times. The claim, along with the video, also went viral on Twitter after user “GAURAV-INC” shared it on Friday. He later deleted the tweet. His tweet was retweeted more than 1,300 times and liked by 2,000 netizens.
AFWA investigation
During our investigation, we found the viral video in some news reports. As per Hindustan Times, the incident took place on April 1, 2017, when traffic was stopped near Rajghat flyover in Delhi for smooth movement of the cavalcade of former Malaysian PM Najib Razak. An ambulance, carrying an injured child, was stuck in this traffic.
A report by ‘The Times of India’ says that a bank employee named Preet Narula shot this video while he was on his way to work. As per Narula’s video, the ambulance was taking an injured child from Sonipat to a hospital in Delhi. The child was in a critical condition at that time and had lost consciousness by then.
The report also has a statement of a senior police officer who said that “the ambulance was stuck behind many cars and we brought it in the front. After a few moments, we allowed the ambulance to pass”.
On the misleading tweet by “GAURAV-INC”, Manoj Tiwari himself clarified that the claim with the video is totally false, following which the Twitter user deleted the tweet.
@RahulGandhi is it compulsory to be a part of fake news factory if u have to be in congress? No traffic is ever stopped for any MP in Delhi or elsewhere, its an old video where international delegate was enroute In Delhi, @DelhiPolice pls register case against this @INC_GAURAV_https://t.co/GAOuv1Mdcx
The WordPress Project is on a mission to democratize publishing. As WordPress empowers more people to participate in the digital space, we have the opportunity to make sure that everyone can participate safely and responsibly. Today marks the start of Digital Citizenship Week. We are going to share how open source can be used as a tool for learners (regardless of age) to practice and model the essential parts of being a good digital citizen.
What is digital citizenship?
The digital landscape constantly changes and this affects the way we use the internet. New platforms emerge, people find different ways to spread information, communities form, grow and fade away every day. The concepts and practice of promoting civil discourse, critical thinking and safe use of the internet still remain central. And that is exactly what digital citizenship is about.
“Put simply, digital citizenship is a lot like citizenship in any other community — the knowledge of how to engage with digital communities you’re part of in a way that is thoughtful, safe, and makes appropriate use of the technology.”
Josepha Haden, Executive Director WordPress Project
Who is a digital citizen?
Digital Citizenship is for all age groups. Anyone who uses the internet on a computer, mobile device or a TV is a digital citizen. You don’t have to be tech-savvy already, maybe you are taking your first steps with technology. Digital Citizenship Week is a chance to reflect together on our impact on the digital world. It can help us to make our consumption more considered and our interaction friendlier. It enables us to make a positive difference to those around us.
All of us can strive (or learn) to become better digital citizens. It can be affected by the access those teaching have had to digital skills and good practice. Adult education classes and community tech hubs play a part in basic tech skill development. Unfortunately, these are not always accessible to those in less populated geographic locations.
Open source communities like WordPress already make a difference in encouraging the principles of digital citizenship, from sharing tech skills to improving security knowledge. They give people an opportunity to learn alongside their peers and many of the resources are available regardless of location, resources, or skills.
WordPress Meetups — locally-based, informal learning sessions — typically take place monthly on weekday evenings.
WordCamps are city-based conferences that take place in cities worldwide. These events usually last 1-3 days and are organized and run by volunteers.
The talks are also recorded and made available on the free, online library WordPress.tv. These can be watched from the comfort of your own home, office or during informal get-togethers.
What can we do as part of the WordPress community?
Digital citizenship skills, like many other skills needed in this tech-focused world, should be kept up-to-date. Open source communities offer unparalleled opportunities to do this and are available in countries across the world. As part of our role as members of WordPress and other communities, we can pass on such skills to others. For instance by working alongside people who have had limited experience of digital skills. Or by finding new ways of making this knowledge sharing fun and accessible.
Here are just a few of the ways we do and can make an even greater difference:
as bloggers and writers, we can be more aware of how to write content responsibly.
as designers, we can think more about how different people will view, understand and respond to the designs and visuals we create or use.
as developers, we can build systems that make it easier for all users to find information and accomplish their goals, to be secure while visiting our sites, and to model good security and practice.
as community members, through organizing events like WordPress Meetups and WordCamps, we are helping equip those who may not have had access to digital literacy or who lack the confidence to put it into place or share with their family and colleagues. Through these events, the online videos and other resources on WordPress.tv and through the Make WordPress teams, we are already making a difference every day.
as individuals, the way we communicate in the community and listen to each other is equally important. This is a vital part of how we grow and model positive digital citizens. Through growing our positive digital skills and a better understanding of online etiquette and challenges, we can make our immediate and wider digital world a more positive and useful environment.
making it easier to document and share knowledge.
emphasizing how skills learned within the community can be used in other parts of our digital lives.
creating and becoming ambassadors for Digital Citizenship.
You can also get involved with specific events that have grown out of the wider WordPress project, championed by enthusiasts and those wanting to improve specific digital skills and bring wider benefits to society.
Community-driven Events
For example, WordPress Translation Day in 2019 had 81 local events worldwide. Running for 24-hours, individuals with language skills translated aspects of the platform into multiple languages with a total of 1181 projects modified. An amazing 221 new translators joined on the day. In addition, there was a live stream with talks, panel discussions, interviews, and sharing of tips and skills to help others learn how to translate. Volunteers are now planning the event for 2020!
Do_action days are WordPress events organized in local communities to help give charities their own online presence. Each event involves members of the local WordPress community, planning and building new websites for selected local organizations in one day. Some take place in a working day, others on weekends.
A video has gone viral on social media with the claim that Delhi Police halted an ambulance to let the convoy of BJP MP Manoj Tiwari pass, as a result of which a little girl fighting for life died.
The video, posted by Facebook page Aam Admi Zindabad, shows an ambulance, along with some other vehicles, stopped at a police blockade.
India Today Anti-Fake News War Room (AFWA) has found the claim to be misleading. The traffic seen in the video was stopped for the convoy of Malaysian Prime Minister in 2017.
Till the time of filing this story, the video was shared more than 2,300 times. The claim, along with the video, also went viral on Twitter after user “GAURAV-INC” shared it on Friday. He later deleted the tweet. His tweet was retweeted more than 1,300 times and liked by 2,000 netizens.
AFWA investigation
During our investigation, we found the viral video in some news reports. As per Hindustan Times, the incident took place on April 1, 2017, when traffic was stopped near Rajghat flyover in Delhi for smooth movement of the cavalcade of former Malaysian PM Najib Razak. An ambulance, carrying an injured child, was stuck in this traffic.
A report by ‘The Times of India’ says that a bank employee named Preet Narula shot this video while he was on his way to work. As per Narula’s video, the ambulance was taking an injured child from Sonipat to a hospital in Delhi. The child was in a critical condition at that time and had lost consciousness by then.
The report also has a statement of a senior police officer who said that “the ambulance was stuck behind many cars and we brought it in the front. After a few moments, we allowed the ambulance to pass”.
On the misleading tweet by “GAURAV-INC”, Manoj Tiwari himself clarified that the claim with the video is totally false, following which the Twitter user deleted the tweet.
@RahulGandhi is it compulsory to be a part of fake news factory if u have to be in congress? No traffic is ever stopped for any MP in Delhi or elsewhere, its an old video where international delegate was enroute In Delhi, @DelhiPolice pls register case against this @INC_GAURAV_https://t.co/GAOuv1Mdcx