File upload is one of the most popular features in modern web. And we have quite a few libraries that can help us to build upload form. Let’s take two of my favorites – Dropzone on the front-end, and Spatie MediaLibrary on the back-end, and build a great uploading experience, in this tutorial. First, what we’re building here. A simple for to add Projects, where you can also upload multiple files for every project. As you can see, file upload has a big block instead of just an input file field. That’s how Dropzone works. But let’s take it one step at a time. Step 1. MediaLibrary Installation Let’s prepare the back-end, where we will actually store the files. We install the package like this: Next, we publish their migration files, and run migrations: By this time, we should have media table in our database. This table uses Polymorphic Relations, so in our case will store records with model_type field equals app\Project, which means that media file will be assigned to a project (not to a user, or anything else). Step 2. Adding Dropzone.js code In our Blade file, with the form, we need to add JavaScript code for Dropzone. There are multiple ways to do it, depending how you structure your whole Blade architecture, but here’s my version of resources/views/admin/projects/create.blade.php: Ok, so what you can see here? Ok ok, let’s add the JavaScript to make it actually work. At the end of the Blade file, I have this section: Looks complicated, doesn’t it? No worries, I will point to the actual places you need to look at: Notice:...
Credit: Unsplash/CC0 Public Domain Mathematicians have used machine learning to develop a new model for measuring poverty in different countries that junks old notions of a fixed ‘poverty line’. The study by academics at Aston University, published in the journal Nature Communications, suggests mainstream thinking around poverty is outdated because it places too much emphasis on subjective notions of basic needs and fails to capture the full complexity of how people use their incomes. They say their new model—which uses computer algorithms to synthesize vast amounts of spending and economic data—could help policymakers worldwide predict future poverty levels and plan interventions to alleviate the problem. “No-one has ever used machine learning to decode multidimensional poverty before,” said lead researcher Dr. Amit Chattopadhyay of Aston University’s College of Engineering and Physical Sciences. “This completely changes the way people should look at poverty.” Established measures of poverty attempt to identify a threshold monetary level below which a person or household is defined as ‘poor’. These definitions trace their origins back to methods developed in the 19th and early 20th century by reformers such as Ernst Engel and Seebohm Rowntree. Currently, the World Bank sets the International Poverty Line at US$1.90 per day, with around 10% of the world’s population—about 700m people—living on less than this. This is based on a subjective assessment of income needed to cover basic needs in the poorest countries, adjusted for purchasing power parity (PPP). In the new study, the researchers analyzed 30 years’ worth of data from India, dividing expenditure into three broad categories of ‘basic food’ such as cereals, ‘other food’ including meat and ‘non-food’...
If you want your mobile application to work on different platforms using a single code base, you can save your time and money by developing a cross-platform app. Moreover, users can realize results extracted from cross-platform apps likewise to that of the native apps. Flutter and React Native are the two most used and effectively efficient cross-platform app development frameworks in 2020. React Native framework was developed and launched by Facebook, whereas Flutter was developed and launched by Google. Rising Significance of Cross-Platform Development With the increasing popularity of mobile applications these days, mobile app development companies focus on creating applications that can remain competitive in different market requirements. Application developers are looking for alternatives to help them develop applications with faster speed and fewer resources. More importantly, both Apple and Google already provided app developers with native tools to develop applications. iOS app developers use Xcode & Swift, and Android app developers deploy technologies like Android Studio & Kotlin or Java to develop mobile applications. If we talk about a few years ago, there were not enough and adequately well technologies for cross-platform app development. This restricted the developers’ capabilities and affected the cross-platform development of applications in the wrong way. However, people are continuing to choose cross-platform development over native app development, which has led to a significant transformation in mobile app development with several significant cross-platform development benefits. Before we get into the comparison of the two most popular frameworks, we would like to draw your attention to the statistics reported by Statista in 2019 on the cross-platform mobile frameworks used by software developers globally. In...
Creating your own mobile app is hardly a cheap endeavor. In fact, building a high-quality app can get very expensive very quickly. So how do you mitigate those costs? While there are some funding options, like investor money or crowdfunding, grants are a great way to offset some of those expenses until your app starts making money on its own. The process of finding and applying for grants can be a bit daunting, but it’s also worthwhile if you think you might qualify. A grant is essentially free money that you can use to get your app off the ground, debt-free. In this article, we’ll talk about the best grants for mobile app developers, how to apply, and why they’re such a great source of funding. Chapter #1: What is a Grant? Grants are funds distributed by the government or other reputable organizations that don’t need to be repaid. They’re designed to fund entrepreneurs and researchers with innovative ideas that can better society. By funding new products and ideas, grants stimulate the economy and improve the community as a whole. The money for government grants comes from local or federal taxpayers, and grants from private organizations are typically funded through donations. 1.1 Who are Grants For? In order to receive a grant, you’ll need to apply, as funds are limited. The application process can vary depending on what type of grant you’re applying for and how much money it is. Governing bodies consider a variety of factors when deciding who to award grants to. They’ll look at your business to plan to see how your app will affect the...
The leaders of the Church Mother bodies namely the Council of Churches in Zambia (CCZ), the Evangelical Fellowship of Zambia (EFZ), and the Zambia Conference of Catholic Bishops (ZCCB) have called on President Edgar Lungu not to sign the Cyber Security and Cyber Crimes Bill of 2021 into law. In a statement released to the media addressing a number of issues patterning to the coming general elections, the church mother bodies said that although the overall objectives of the bill are noble, they are are concerned that this being an election year, when the atmosphere is politically charged, a number of stakeholders will be suspicious of the intentions of government and the possible abuse of the rights for those who already feel oppressed. The statement further said that the Church mother body is equally aware that many Zambians and organisations, such as the Law Association of Zambia (LAZ), political parties, and a number of CSOs have raised oncerns about this bill and demanded that it be withdrawn for further consultations. The statement further added that the Parliamentary Committee that considered the bill also recommended its withdrawal and ss such, people are asking as to why the House moved on without taking into account the concerns of all key stakeholders. “Therefore, we appeal to the conscience of the President not to sign the bill into law,” the statement read. Below is the full statement STATEMENT BY THE THREE CHURCH MOTHER BODIES ON THE ELECTORAL PROCESS IN ZAMBIA “A call for free, fair, credible and peaceful elections” “Let your hearts be broken, not your garments torn, turn to Yahweh your God...
mobile game developer singapore,website developer singapore,developer in singapore,singapore web development,singapore mobile app developer,web design services singapore,ios app development singapore,ruby on rails developer singapore,web application singapore,website designer singapore,web design company singapore,singapore mobile application developer,mobile application development singapore,mobile app developer singapore,singapore website design,web development singapore,mobile application developer singapore,developers in singapore,website design singapore,singapore web design services,website development singapore,design firms in singapore,graphic designer in singapore,ios developer singapore,web design singapore,app development singapore,mobile app development singapore,android developer singapore,singapore app developer,mobile apps singapore,app developer singapore,design agency singapore,web development company singapore,mobile developer singapore,singapore web design,web designer singapore,mobile apps development singapore