imag

Machine intelligence lights up imaging




imag

Evaluation of an AI system for the detection of diabetic retinopathy from images captured with a handheld portable fundus camera: the MAILOR AI study




imag

A 'perfect' row-based image masonry

TL;DR: Check out the Codepen. Also note that after publishing, I found that there are much nicer, stable solutions that preserve perfect aspect ratio if needed (see react-photo-gallery & Justified Gallery). I was on a hunt for a special type of masonry layout for an image gallery today. It needed to fulfill the following requirements: […]

The post A 'perfect' row-based image masonry appeared first on Paul Bakaus' blog.




imag

First image of Force India VJM08

Force India has released the first image of its long-awaited 2015 car, the VJM08




imag

The reimagination of downtown Los Angeles


Los Angeles has long been a city associated with the common ills of urban excess: sprawl, homelessness, and congestion. More charitable descriptions paint it as West Coast paradise, boasting sunshine and celebrities in equal measure.

A three-day visit to downtown Los Angeles exposed the nuances behind these stereotypes. Hosted by the Los Angeles Downtown Center Business Improvement District, which is focused on strengthening downtown as an innovation district, our visit began as a real estate tour but quickly revealed regeneration and innovation activity that confounded our expectations. 

Downtown LA (DTLA)’s innovation district focuses not just on tech firms but also on historic LA industry strengths like fashion, design, and real estate. LA may have sat in the shadow of the Silicon Valley tech boom, but it appears to be revitalizing in time for the convergence economy, in which tech is no longer a separate sector but ingrained in all forms of economic and creative activity.

And at a time where firms are revaluing proximity, vibrancy, and authenticity, DTLA could not be in a better place. While a number of U.S. cities subjected their downtowns to a range of urban renewal initiatives, the urban fabric of DTLA is largely intact. Vibrant areas like South Broadway feature boutique hotels, a dozen theatres, and clothing stores and bars that exist in historic infrastructure like reclaimed theatres. There is an urban feel that is authentically LA.

The initial renaissance of DTLA began in the late 1990s, after the residential units within its 65 blocks had dwindled to just 10,000.

Along with transportation improvements, permissive planning policies such as adaptive reuse—which allowed commercial buildings to be converted into residential use—were instrumental in increasing DTLA’s residential population. Since 1999, the residential population and housing units have tripled. With new bars and restaurants springing up on every corner, it is no surprise that three-quarters of DTLA’s current residents are aged between 23 and 44.

Building on this residential surge, an increasing number of businesses are now setting up or relocating downtown.

DTLA office space has not always been an easy sell. Employers balk at the prospect of subjecting their workforce to the punishing commute. And Bunker Hill and the adjacent Financial District, the epicenter of the central business district, offers little more than unpopulated plazas and cubicled office space.

DTLA has worked to serve its newfound residential population and attract more workers and companies by retrofitting buildings to modern aesthetic standards. The exposed brickwork and ceiling equipment of many DTLA offices like those of Nationbuilder, an online platform used for political and civic campaigns, is not just a statement of style but a conscious decision to make downtown office buildings feel hospitable to creative firms. The BLOC, a 1.9 million square foot retail development, is essentially a mall that has been turned inside out, with the roof removed to reveal an open air plaza, unrecognizable from the fortress-style building that once sat in the same spot.

While downtown’s office blocks are a fantastic asset in attracting innovation activity, the area also boasts a vast amount of warehouse space. These larger footprints, most often used for textile or food production, are attracting a range of activities that require space or, in the case of Tesla’s Hyperloop, secrecy. Such industrial firms are interspersed with new art galleries and a historic knitting mill, proof of the area’s artistic heritage.

The individuals leading the drive for a DTLA innovation district, such as Nick Griffin, director of Economic Development for the Downtown Center Business Improvement District, are realistic about challenges, such as the lack of quality public space, and proactive in leveraging existing assets, such as the large supply of creative office space.

These efforts and LA’s distinctive industry strengths are combatting one of the biggest challenges to attracting businesses downtown: the strength of competing areas like Silicon Beach, which includes Santa Monica and Playa del Rey and offers an established tech ecosystem alongside an attractive location.

Another challenge? Like many U.S. cities, LA bears the scars of suburban sprawl and a legacy of under investment in public transportation. Congestion is a constant complaint.

But here too LA is making progress.

In November, Angelinos will vote on an extension of Measure R—a 2008 ballot initiative raising the sales tax to fund core transportation projects—to provide sustainable funding for transportation infrastructure and improve access to the city center through the metro system.

Other ambitious projects, such as the Regional Connector, a light rail subway through the middle of downtown, will have a profound effect on the area's connectivity. This project is not just about getting people to and from downtown—it will also have a transformative effect on public space. The city is working with Project for Public Spaces to redesign one of the Connector’s hubs, Pershing Square, with the aim of providing a public space where employees and residents can convene and collaborate.

Connectivity will play a vital role in the continuing success of DTLA’s resurgence. But the DTLA innovation district’s main opportunity lies in better serving and connecting the people who make it work. With hometown authenticity and civic commitment, DTLA is on its way to creating a city center that is greater than the sum of its parts.

DOWNTOWN LA IN NUMBERS

Size: Approx 8.6 sq. miles

Major districts: Civic Center, Bunker Hill, Financial District, South Park, Fashion District, Jewelry District, Historic Core, Little Tokyo, Exposition Park, Toy District, Central City East, Arts District, City West, Chinatown, and Central Industrial District

Residential population: 60,600
66% of residents are between the ages of 23 and 44

Average median household income: $98,000

Education status: 79% of residents hold a college degree

Average workday population: 500,000


Photo Credit: Hunter Kerhart

Authors

  • Kat Hanna
  • Andrew Altman
Image Source: Hunter
      
 
 




imag

Ferguson Incident and America’s Image in Africa: Social Media Weighs in on Race and Human Rights


The full story of the killing of Michael Brown, a young, black, unarmed man shot by a policeman in Ferguson, Missouri, is still unfolding—and the truth will not be known for some time. It is only after full investigations are completed that an objective evaluation of the incident can be made. Nonetheless, there is no doubt that the killing of the young man was unfortunate and has generated a serious debate about race relations in America, and on the relations between police and the communities that they are supposed to protect. The riots and massive looting portrayed not only the extent of criminality in America’s inner cities, but also the economic marginalization of the minority communities.

Coming not long after the successful U.S.-Africa Leaders Summit held in Washington, the Ferguson incident and the follow-up demonstrations have been rather unfortunate in as far as how Africans view America—in a way questioning America’s standing as a protector of human rights. The hostility towards the United States in regard to its treatment of African-Americans has dominated social media with claims that the incident shows that America should not claim leadership when it comes to human rights. Such criticisms by many other countries, including Russia and China, are widespread.

I was particularly surprised by the comments in the Kenyan media coverage of this topic. Here are some statements on the topic by readers of the most popular paper there—the Daily Nation:

The US is a community fueled by hate. They claim not to be racist yet most of them are racist to the core including the black Americans. Yet they want to dictate and lecture us about human rights."

Still waiting for GOK [Government of Kenya] to issue travel advisory to the U.S."

(This is an apparent reference to the fact that the United States government issues travel advisories to countries like Kenya when such incidents occur and there are riots.)

Extra judicial killing. Let UN order an independent investigation & file handed to ICC (international Criminal Court) for prosecution of the culprits. US justice system is biased against its own black community."

(The U.S. and human rights organizations have been critical of many countries for extra-judicial killings and have called for the prosecution of government officials in Africa at the International Criminal Court for such actions.)

U.S. preaches democracy and good governance all over the world but lo and behold, Ferguson has exposed the preacher who cannot take care of business in his backyard."

Has the Kenyan ambassador issued a statement yet? The US must have a coalition government so as to end the violence. It will no longer be business as usual. We will have only necessary contact. Choices have consequences."

(This statement is in reference to the U.S. government’s actions following the 2007-2008 post-election violence in Kenya.)

In the USA, they give absolute rights to women, children and pets, the men are left on their own, owe [sic] un to you if you happen to be a young black man. You are as good as dead."

Scanning media in other African countries, the same kind of reactions are evident. While some opinions differ, the general sentiment expressed in social media is that the United States remains a divided country and thus lacks moral authority to “lecture” Africans on human rights and tribalism.

To an extent, these sentiments expressed by Africans are misguided and are largely a gross exaggeration of the character of American society. The views expressed in the media portray an American society that is totally divided across racial lines, which Africans often equate to tribalism on their own continent. They see the economic desperation of many African-Americans as a reflection of a society that has continued to deny a large section of its people opportunities for advancement. All these views, right or wrong, weaken America’s standing among Africans and undermine the country’s ability to influence policy on human rights and governance in the continent. Such incidents give solace to dictators that undertake gross violations of human rights through extrajudicial killings. Many Africans consider the U.S. judicial system to be discriminatory against black men. They also cite biases in many previous cases of police killings of black men. The Zimmerman case in Florida is commonly used in the African media as an example of such incidents where they feel justice did not prevail.

But American global leadership in the advancement of human rights and ensuring equal protection under the law—and also in opening up opportunities for all groups—remains critically important. Through fair and transparent adjudication of the Ferguson case, the U.S. will be in a position to demonstrate to the Africans and others who have been critical of the state of affairs in this country that the U.S. remains a country governed by the rule of law. Still, the issue of poverty among some communities gives the U.S. a bad name as a country where a large segment of the population is economically marginalized. As the U.S. encourages Africans to build united and inclusive societies, it should be cognizant of the fact that its voice will carry more weight and be respected if Africans see the same happening in United States.

      
 
 




imag

Imagining assistance: Tales from the American aid experience in Iraq in 2006 and Pakistan in 2011


For more than a decade, government assistance to Afghanistan, Iraq, and Pakistan (the so-called AIP countries) has dominated United States aid efforts. And as the examples below illustrate, American institutions and mindsets found it extraordinarily difficult to adjust to aid in unsafe places. Cameron Munter draws on his experience as the head of the Provincial Reconstruction Team (PRT) in Mosul, Iraq in 2006 and as ambassador of the United States to Pakistan in Islamabad in 2011, with a description of U.S. reconstruction and state-building from which we may find lessons to consider in the future.

In 2006, when he went to Mosul as the first leader of the first PRT, the American civilian and military authorities in Baghdad painfully learned that the post-conflict situation would not correct itself. The undergrowth of our own bureaucratic structure prevented us from gaining a sophisticated understanding of our surroundings. Members of the PRT came and left after a few months, without passing on their hard-obtained knowledge. Local authorities quickly realized that the PRT had neither the money nor the firepower of the brigade commanders. And most of all, the guiding principles in place were still the creation of a kind of constitutional framework where political leaders, police, courts, businesspeople, and citizens would have institutions familiar to Americans, institutions that would work as we knew how to make them work.

Munter arrived in Pakistan at a time of great hope for U.S.-Pakistani relations. In 2011, in a series of meetings with the U.S. deputy secretary of state for resources and the head of USAID, Kerry-Lugar-Berman priorities took center stage: education, energy efficiency, job creation, special projects in the tribal areas, and public health. It is one thing to define a task and quite another to apply it to the specific context of a country in which security considerations prevent most USAID workers from even laying eyes on their projects. Overall, it seems the United States was much better at measuring its commitment to a prosperous, democratic Pakistan at peace with its neighbors by counting how much it spent and how fast rather than creating the proper relationship with those on the ground with whom it might have partnered.

Under these circumstances, what are lessons learned? When security is shaky, assistance is difficult. It may be that in situations like the AIP countries, we only have the capacity to engage in humanitarian aid and immediate reconstruction. If that is so, then the whole question of engagement in dangerous places is reopened: In a military setting, with military tasks, and thus a military system of organization, can civilian assistance succeed? Money spent is the way we measure commitment in such a setting, and that doesn’t bring the results we need.

Downloads

Authors

  • Cameron Munter
Image Source: © STRINGER Iraq / Reuters
     
 
 




imag

Redesign required: Principles for reimagining federal rural policy in the COVID-19 era

The COVID-19 crisis is testing America’s resilience. The rapidly accelerating economic fallout makes concrete the risks for a national economy built on the success of just a few key economic centers. When the nation turns to the work of recovery, our goal must be to expand the number and breadth of healthy communities, jump-starting a…

       




imag

Nashville Underwater: Images from the City's Epic Flood (Slideshow)

After a storm hit Tennessee last Sunday and Nashville saw record-shattering rainfall, the Cumberland River swelled to overflowing and the city experienced an epic flood. As soon as it was safe, residents were out




imag

NASA Satellite Images of Istanbul Put Causes and Consequences of Urban Sprawl in Stark Relief

Building new roads has been a major contributor to the city's unsustainable growth, newly released Landsat photos show, but more of the same appears to be on the horizon.




imag

Ollies Blocks encourage kids' imagination & creativity (Review)

Building with blocks and construction toys is a great unstructured activity for kids, and Ollies Wooden Blocks are a superb new addition to the category.




imag

Steven M. Johnson imagined the shower of the future 25 years ago

Once again our favorite visionary was ahead of his time.




imag

Monbiot: Canada's Image in Tatters

Since the Viet Nam war, Canadians (and some Americans) have been sewing Canadian flag patches on their backpacks when they travel to distinguish themselves from their neighbours. But they will be ripping them off soon, as the country becomes an




imag

Solar Panels, Reforestation Project in Works for Armenia's First Green Pilgrimage Site

The Echmiadzin Cathedral complex in Armenia is one of 12 spiritual destinations that are becoming more sustainable.




imag

World's First Green Pilgrimage Network Launches At End of October

An interesting step towards eco-friendly spiritual travel: The Alliance of Regions and Conservation, working with WWF, is about to launch the Green Pilgrimage Network. The program, to formally kick off at an event in




imag

The future of food: Imaginary brands cooked up in ghost kitchens

We will all be poor, fat, and buried in plastic.




imag

The 2018 Evolo Competition entries are wonders of drawing talent and imagination

It always amazes, how much work people do for this.




imag

Imaginative kids' bedroom features space-saving, cave-like bunk bed

Reminiscent of a bear's cozy cave, this bedroom for children maximizes the small space in a playful way.




imag

Image recognition software for sharks tells them apart by their fins

A shark's fin is like its fingerprint, with each animal having its own unique patterns and scars.




imag

Huge LED installation now livestreaming Earth images in real-time (Video)

In an homage to influential images of Earth taken from outer space, this art installation takes it up a notch by livestreaming views of Earth in real-time, prompting us to contemplate the bigger picture.




imag

How hard is it to walk in American suburbs? Worse than I imagined

On the Mouzon scale of 1 to 10 for walkability, this intersection gets -10.




imag

Why the caulking gun (and the thermal imager) are the best weapons in the war against energy waste

Take a thermographic tour of my house to see why.




imag

Imagine a world reliant on robot bees to roam the fields and meadows

Welcome to your dystopian nightmare installment #4692.




imag

Imagine meatless Monday at the school cafeteria

Is the dream of sustainable agriculture a nightmare for the beef industry?




imag

New imaging technique sees inside lithium batteries

A new way to see inside batteries in real time as they go through charging cycles could help prevent battery fires and increase battery lifespans




imag

Let's take an imaginary trip to these gorgeous glamping destinations

Who says you have to rough it in the bush? These gorgeous spots prove otherwise.




imag

What if a chef with a logistics degree imagines a no waste restaurant?

Can the hospitality industry learn something when a French chef with a degree in logistics opens a no waste restaurant in London?




imag

The hottest thing at CES is the FLIR thermal imaging iPhone case

Everyone in the green home improvement biz needs one of these, and they can make great cat videos on the side.




imag

CONSEJOS PARA UN CAMBIO DE IMAGEN “MAXIMO” EN EL HOGAR - Transforma Tu Hogar para este Verano

Transforma Tu Hogar para este Verano



  • Artículos del hogar
  • Artículos de consumo
  • Cosméticos
  • Ventas detallistas
  • Mejoras al Hogar
  • Productos del Hogar (aspiradoras
  • artículos de limpieza y similares)
  • Estados Unidos de América

imag

Invest in a Child's Future: St. Baldrick's Foundation Calls for Increased Focus on Funding Pediatric Cancers - Just Imagine

St. Baldrick’s Foundation grants reach the best research far and wide, funding both individual doctors and groups of institutions focused on childhood cancers and their cures. Every cent benefits children everywhere.




imag

Op-ed: How the US can use the Covid-19 crisis to reimagine the energy world, save jobs and stabilize markets

The U.S. role as the world's leading oil and gas producer doesn't feel as empowering as it recently did, with oil prices heading into negative territory for the first time ever this week.




imag

imaginary map book

Today on Toothpaste For Dinner: imaginary map book


I NEED YOUR HELP: Please chip in $1 or more on Patreon and I can keep Toothpaste For Dinner updating daily, PLUS you'll get to see bonus comics & writing!






imag

Astronomers capture new images of Jupiter using 'lucky' technique

Detailed pictures of planet glowing through clouds were taken with telescope in Hawaii

Astronomers have captured some of the highest resolution images of Jupiter ever obtained from the ground using a technique known as “lucky imaging”.

The observations, from the Gemini North telescope on Hawaii’s dormant volcano Mauna Kea, reveal lightning strikes and storm systems forming around deep clouds of water ice and liquid. The images show the warm, deep layers of the planet’s atmosphere glowing through gaps in thick cloud cover in a “jack-o-lantern”-like effect.

Continue reading...




imag

Imagine the UK getting rid of road rage, congestion and exhaust fumes for ever | Susanna Rustin

Britain is a latecomer to decarbonising transport but changes under lockdown and initiatives abroad could spark a revolution

  • Coronavirus – latest updates
  • See all our coronavirus coverage
  • It was a grim irony that the best transport news in ages was buried in the first few days of the coronavirus lockdown. On 26 March, the government published a document, Decarbonising Transport, which went further in facing up to the problem of emissions from air and vehicle traffic than most campaigners had dared to hope for.

    The challenge is enormous. In 2016, transport overtook energy to become the single biggest source of domestic emissions. Motor vehicles on their own are responsible for around a fifth of the total. On aviation, the UK is the world’s third-worst polluter, behind China and the US.

    Continue reading...




    imag

    Meet The Newly Adopted Faces Of The Week (25 Images + 5 Vids)

    Ready to smile? Each week we are featuring the newly adopted pets of the week! Is there a lovelier sight than an animal being adopted?! We wholeheartedly thank those who have adopted, providing animals with a loving, comfortable and warm home. There's literally nothing better. 

    We're seeing a lot of new furry faces being adopted due to the new regulations, and while we absolutely adore seeing so many adopted faces, please remember that a pet is for life. The decision to adopt one is one that should be thought through thoroughly.  

    For those of you who are thinking about getting a pet, just remember; adopt, don't shop. 

    If you recently adopted a pet, shoot us an email to be featured in next weeks list! 




    imag

    Amusing Images of Confusing Double-Takery

    The brain works really hard to make sense of the constant stream of information coming at it, and for the most part it does a pretty good job. That said, a small shift in perspective can turn unassuming situations into double-take inducing photos of intriguing perspective. Your brain is doing its best, but at times it's name match against double-take causing images of skewed perspective.






    imag

    This image has been photoshopped

    Currently making the rounds: I was suspicious, though. It’s too good to be true. So I snooped about, and found the original on the ADL website. OK, now, really — who thought they needed to edit the original sign to make it less evil and more obviously stupid? That was a waste of effort. Just […]





    imag

    Leveraging React for Easy Image Management

    React is a good tool when it comes to building flexible and reusable UI components. However, it’s “one of those libraries” that cannot handle all the tasks involved in building a full fleshed UI project. Other supporting tools - such as a recently announced React SDK from Cloudinary - are available to provide solutions that the React core cannot.

    In such cases where media (images and videos) becomes a heavy task to handle, Cloudinary simplifies the process with the new React SDK. Let’s build and image library with Cloudinary and React using the Cloudinary’s React SDK.

    Prerequisites

    The only requirements for using Cloudinary in your existing React project are to install the React SDK and the upload widget. If you do not have an existing React project and want to try these examples, take the following steps:

    1. Install Dependencies

    We need a minimal amount of dependencies so we can focus on building a media library and not structuring a React app:

    {
      "name": "img-library",
      "version": "1.0.0",
      "description": "",
      "main": "index.js",
      "scripts": {
        "watch": "webpack -d --watch",
        "build": "webpack",
        "serve": "serve ./public"
      },
      "author": "",
      "license": "MIT",
      "devDependencies": {
        "babel-core": "^6.18.2",
        "babel-loader": "^6.2.9",
        "babel-preset-es2015": "^6.18.0",
        "babel-preset-react": "^6.16.0",
        "serve": "^1.4.0",
        "webpack": "^1.14.0"
      },
      "dependencies": {
        "axios": "^0.15.3",
        "cloudinary-react": "^1.0.1",
        "react": "^15.4.1",
        "react-dom": "^15.4.1"
      }
    }
    

    React (and React DOM) must be used since we are making a React app. The cloudinary-react dependency is Cloudinary’s React SDK, which we will soon see how it works. axios is a tool for making HTTP requests and, in our case, we will use it request images from the Cloudinary server.

    # Install dependencies
    npm install
    

    2. Setup Webpack

    Webpack is our build tool. Only minimal settings are required to have a build running and our React app compiling:

    // ./webpack.config.js
    var webpack = require('webpack');
    var path = require('path');
    
    var BUILD_DIR = path.resolve(__dirname, 'public');
    var APP_DIR = path.resolve(__dirname, 'src');
    
    var config = {
        entry: APP_DIR + '/index.jsx',
        output: {
            path: BUILD_DIR,
            filename: 'bundle.js'
        },
        module : {
            loaders : [
                {
                    test : /.jsx?/,
                    include : APP_DIR,
                    loader : 'babel'
                }
            ]
        }
    };
    
    module.exports = config;
    

    Basic configuration - an entry, output and loaders to handle the React .jsx files.

    3. Entry Points

    We need to create an entry point, as we specified in the Webpack configuration, and another entry point for the browser, which is an index.html file:

    // ./src/index.jsx
    import React, { Component } from 'react';
    import { render } from 'react-dom';
    
    class Main extends Component {
        render() {
            return (
               <div className="main">
                   <h1>Scotchage</h1>
               </div>
            );
        }
    }
    
    render(<Main />, document.getElementById('container'));
    
    <!-- ./public/index.html -->
    <html>
    <head>
        <!--Stylesheet-->
        <link rel="stylesheet" href="style.css">
        <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>
    <body>
        <!--Container for React rendering-->
        <div id="container"></div>
        <!--Bundled file-->
        <script src="bundle.js"></script>
    </body>
    </html>
    

    4. Create Cloudinary Account

    You need a Cloudinary account to continue with these examples. Sign up for free and store your credentials safely as shown on the dashboard:

    Uploading Images

    Before using the React SDK to deliver images from the Cloudinary servers, let’s use the awesome Cloudinary upload widget to upload images. First, we need to add this widget to our index.html:

    <!-- ./public/index.html -->
    <html>
    <head>
       . . .
    </head>
    <body>
        . . .
        <!-- UPLOAD WIDGET -->
        <script src="//widget.cloudinary.com/global/all.js" type="text/javascript"></script>
        <script src="bundle.js"></script>
    </body>
    </html>
    

    Next, we create a button, attach an event to it and upload an image once the button is clicked:

    import React, { Component } from 'react';
    import { render } from 'react-dom';
    
    class Main extends Component {
    
        uploadWidget() {
            cloudinary.openUploadWidget({ cloud_name: 'CLOUD_NAME', upload_preset: 'PRESET', tags:['xmas']},
                function(error, result) {
                    console.log(result);
                });
        }
        render(){
            return (
                <div className="main">
                    <h1>Galleria</h1>
                    <div className="upload">
                        <button onClick={this.uploadWidget.bind(this)} className="upload-button">
                            Add Image
                        </button>
                    </div>
                </div>
    
            );
        }
    }
    
    render(<Main />, document.getElementById('container'));
    

    The uploadWidget member method is the handler invoked by the click event to handle our image upload by calling cloudinary.openUploadWidget. openUploadWidget takes a config object and the upload callback handler. The config object must have at least cloud_name and upload_preset properties with valid values. You can read more about Cloud Names and Upload Presets.

    Delivering Images with SDK

    The Cloudinary React SDK has three major components, Image, CloudinaryContext and Transformation:

    • Image: This component is responsible for the actual delivery of images. It takes the image ID and asks the server for this image. When the image is provided, it is also responsible for painting the image on the browser.
    • Transformation: This component is used to apply transformations to images delivered with Image.
    • CloudinaryContext: You can specify Cloudinary configuration for each image on the Image component. This can be tedious when you are dealing with multiple images. CloudinaryContext allows you to apply configuration to a group of Images.

    Most times you would end up with a structure like this:

    <CloudinaryContext>
        <Image>
            <Transformation />
            <Transformation />
        </Image>
        <Image>
            <Transformation />
        </Image>
    </CloudinaryContext>
    

    Back to our demo app, we can request an image from the Cloudinary server and display it with the following components:

    import React, { Component } from 'react';
    import axios from 'axios';
    import { CloudinaryContext, Transformation, Image } from 'cloudinary-react';
    import { render } from 'react-dom';
    
    class Main extends Component {
        constructor(props) {
            super(props);
            this.state = {
                gallery: []
            }
        }
        componentDidMount() {
        // Request for images tagged xmas       
    axios.get('http://res.cloudinary.com/christekh/image/list/xmas.json')
                .then(res => {
                    console.log(res.data.resources);
                    this.setState({gallery: res.data.resources});
                });
        }
        uploadWidget() {
           // . . .
        }
        render(){
            return (
                <div className="main">
                    <h1>Galleria</h1>
                    <div className="gallery">
                        <CloudinaryContext cloudName="CLOUDNAME">
                            {
                                this.state.gallery.map(data => {
                                    return (
                                        <div className="responsive" key={data.public_id}>
                                            <div className="img">
                                                <a target="_blank" href={`http://res.cloudinary.com/christekh/image/upload/${data.public_id}.jpg`}>
                                                    <Image publicId={data.public_id}>
                                                        <Transformation
                                                            crop="scale"
                                                            width="300"
                                                            height="200"
                                                            dpr="auto"
                                                            responsive_placeholder="blank"
                                                        />
                                                    </Image>
                                                </a>
                                                <div className="desc">Created at {data.created_at}</div>
                                            </div>
                                        </div>
                                    )
                                })
                            }
                        </CloudinaryContext>
                        <div className="clearfix"></div>
                    </div>
                </div>
    
            );
        }
    }
    
    render(<Main />, document.getElementById('container'));
    

    Take one more look at the upload code:

     cloudinary.openUploadWidget({ cloud_name: 'christekh', upload_preset: 'idcidr0h', tags:['xmas']},
                function(error, result) {
                . . .
    

    Each image is tagged with xmas, which serves as a way to request images with this tag as a collection. This is exactly what we are using the axios library to do when the component mounts:

    axios.get('http://res.cloudinary.com/CLOUDNAME/image/list/xmas.json')
                .then(res => {
                    console.log(res.data.resources);
                    this.setState({gallery: res.data.resources});
                });
    

    axios uses promises, so whenever the promise resolves in our case, we have a payload of images. We take advantage of React state to update our UI with the fetched resources.

    Down to rendering, we configure the CloudinaryContext with our cloud_name, iterate over the gallery state that stores the images and displays them using the Image component. We also apply few transformations using the Transformation component.

    For security reasons, Cloudinary will not allow you to make such request from the client unless you tell it to. The best way to go is to use the admin API via a backend SDK and then send the resource list to the client.

    Updating State with New Uploads

    We are able to upload images and request for images to be displayed on the user’s browsers. Here is how we update the displayed images instantly when the user uploads a new image:

    uploadWidget() {
            let _this = this;
            cloudinary.openUploadWidget({ cloud_name: 'CLOUDNAME', upload_preset: 'PRESET', tags:['xmas']},
                function(error, result) {
                // Update gallery state with newly uploaded image
                    _this.setState({gallery: _this.state.gallery.concat(result)})
                });
        }
    

    Rather than logging the uploaded image information to the console, we update the gallery state, which bears the list of requested images, by concatenating the uploaded result to the gallery.

    Image Management Simplified

    Image uploads, transformation and delivery has never been easier. These tasks have been a serious challenge for developers. Cloudinary has created a way to abstract all this hard work, enabling you to simply plug and play.




    imag

    Lunchbox actress Nimrat Kaur: Can't imagine I am talking about Irrfan Khan in past tense

    Actress Nimrat Kaur worked with Irrfan Khan in the much-feted film "The Lunchbox" that went on winning several award and accolades internationally. The news of his sudden demise came as shock to her.

    "It is a personal loss for everyone at this point in time. For everyone who watched his movies or worked with him and met him personally, this is absolutely shocking. I think the face of Indian cinema will not be the same without Irrfan Khan. He was a one-man army. Every film and film stars are on one side and his films are on the other. My heart goes out to his family at this point in time, when we all are suffering under a specific situation. Losing a loved one is always painful but I think this (the COVID-19 lockdown) is worse. I cannot imagine I am talking about Irrfan in the past tense," Nimrat told IANS.

    Nimrat worked with Irrfan in "The Lunchbox", the directorial debut of Ritesh Batra, which released in 2013. The film screened in several prestigious international festivals, and notably won the Critics Week Viewers Choice Award at the 66th Cannes Film Festival.

    Sharing her memory of working with Irrfan in the film Nimrat said: "We did not have many scenes together but we got a chance to converse extensively during the premiere of the film at the Cannes Film Festival. I was quite overwhelmed by the response to the film, the way it was celebrated and what it became overnight! I remember I asked him, ‘how do you handle so much appreciation, adulation when a film meets a great success like this?' he smiled and told me, ‘sock up to good times and don't be shy of celebration. This is the gift that God has given us. The bad time is around the corner.'

    "This moment does not come very often in life. So take it as a gift after all the struggle we have gone through.' He always said to embrace the good time because that's when we celebrate life," recalled Nimrat.

    Irrfan had been admitted in Mumbai's Kokilaben Dhirubhai Ambani hospital with a colon infection on Tuesday and passed away on Wednesday. The actor has been ailing ever since he was diagnosed with a neuroendocrine tumour a while back and has been under medical attention for the same. He even went abroad for treatment.

    Catch up on all the latest entertainment news and gossip here. Also, download the new mid-day Android and iOS apps.

    Mid-Day is now on Telegram. Click here to join our channel (@middayinfomedialtd) and stay updated with the latest news




    imag

    Kamal Haasan re-imagines India for 'post-COVID world', calls for 'epidemic preparedness budget'

    Actor-turned-politician Kamal Haasan on Monday re-imagined India for the "post-COVID world" and suggested measures across different sectors, including an "epidemic preparedness budget" for the health sector.

    "While there are concerns, it's worth praising how this crisis is setting a precedent with state governments coming together and co-operating with each other as well as with the Centre. I sincerely hope this becomes a norm and help overcome perennial battles like the water crisis, pollution, migrants' woes, women's safety, communal violence, healthcare etc," Haasan said on his Twitter account.

    "The last full-scale war India fought was almost half a century ago, but poor healthcare is an everyday war leading to 1.6 million deaths annually. Yet, year after year our Defence budget overshadows the healthcare budget," Haasan stated and added that it's a "pity that India continues seeing Defence as a more newsworthy proposition compared to healthcare".

    He suggested that India needs to earmark an "epidemic preparedness budget with immediate effect".

    "We are under threat a lot more from within than from outside our borders. Our priority towards Health needs to be reimagined with a handsome budget to match," Haasan said.

    The Makkal Needhi Maiam (MNM) President later went on to talk about the Agriculture sector and said that India requires a 'Green Plus' revolution that firstly converts part of our agricultural land for an allied enterprise like processing, logistics, etc.

    "Secondly, we need to accelerate productivity maximization on a war footing. Boosting agro based MSMEs will help retain youth in the sector and build a sustainable and prosperous future for farming. This will also solve the problem of seasonal lack of work for farmers," Haasan said.

    He also suggested bringing India's vast informal sector into the formal fold.

    "Bringing India's informal workers under the formal fold must become the biggest national exercise that the government needs to undertake in the near future. Other than boosting the morale of this segment and paving way for its growth, it will also mean enhanced tax collection, a lot of which can be ploughed back to improve infrastructure and offer welfare to the same workers," Haasan said.

    "There is also a need to change our outlook towards the vast majority of women who toil their lives away under the status of 'housewife'. Women engaging in housework must be accorded job status. They have little or no savings and a Universal Income Guarantee will give a boost to their savings. Savings always help during any kind of crisis," he added.

    Haasan even suggested correction in income inequality and poverty alleviation.

    He added, "COVID-19 has shown us that poverty still remains India's most critical challenge. In a crisis, the rich will take a hit but they will not starve to death. Our leaders must learn to integrate the poor man's life in how they plan the running of the country. Relief measures are mere afterthoughts."

    In conclusion, Haasan said, "It's time we reinvent the word superpower, India's pipe dream for decades. Let's be a universal thought leader, to put it in parlance a Vishwa-Guru and for all the right reasons."

    Catch up on all the latest Crime, National, International and Hatke news here. Also download the new mid-day Android and iOS apps to get latest updates.

    Mid-Day is now on Telegram. Click here to join our channel (@middayinfomedialtd) and stay updated with the latest news

    This story has been sourced from a third party syndicated feed, agencies. Mid-day accepts no responsibility or liability for its dependability, trustworthiness, reliability and data of the text. Mid-day management/mid-day.com reserves the sole right to alter, delete or remove (without notice) the content in its absolute discretion for any reason whatsoever




    imag

    X Ray - The Inner Image

    X Ray: The Inner Image is a story of lust. A young man is alone at home one rainy night. A young girl comes knocking on his door with a request to fix her car which won’t start. Since it is raining and locating a car mechanic seems to be an almost impossible task, the man offers her his home to spend the night. But he loses control over himself when he sees the girl changing into dry clothes for the night. His lusty and carnal desires get the better of him. The girl is devastated when he advances towards her. What happens thereafter?




    imag

    Ronaldinho on fake passport fraud: Never imagined I would go through this situation

    Former Brazilian footballer Ronaldinho pleaded his innocence while speaking for the first time after spending 32 days in a Paraguayan prison. The former Barcelona forward is currently under house arrest in a hotel in Asuncion after he was arrested along with his cavalry for entering the country with forged documents.

    Ronaldinho has insisted he didn't know his documents were illegal and also stated he showed full cooperation with the authorities in the aftermath of the airport fiasco.

    "We were totally surprised to learn that the documents were not legal," Ronaldinho told ABC Color. "Since then our intention has been to collaborate with the justice system to clarify the facts.

    "From that moment until today, we have explained everything and facilitated everything that has been requested of us.

    "It was a tough blow, I never imagined that I would go through such a situation. All my life I have sought to reach the highest professional level and bring joy to people with my football," he added.

    Ronaldinho also revealed what his plans are after he is allowed to go back to his home nation once investigation ends.

    "The first thing will be to give a big kiss to my mother, who has lived through this difficult phase since the start of COVID-19 pandemic, at her home."

    Catch up on all the latest sports news and updates here. Also download the new mid-day Android and iOS apps to get latest updates.

    Mid-Day is now on Telegram. Click here to join our channel (@middayinfomedialtd) and stay updated with the latest news

    This story has been sourced from a third party syndicated feed, agencies. Mid-day accepts no responsibility or liability for its dependability, trustworthiness, reliability and data of the text. Mid-day management/mid-day.com reserves the sole right to alter, delete or remove (without notice) the content in its absolute discretion for any reason whatsoever




    imag

    Gardening can Boost Your Body Image Amid COVID-19 Lockdown

    Highlights: Gardening can help you love and appreciate your own body Being close to nature and spending mo




    imag

    Tax-News.com: HMRC Focusing On Image Rights Tax Avoidance

    The UK tax agency has confirmed that it is investigating around 170 professional soccer players' tax affairs and around 20 football clubs, focusing on the taxation of image rights.




    imag

    Press Release: Satellite imaging and disaster management experts gather in Colombo

    Experts from across Asia gathered to discuss how the next generation of satellite based technologies could help improve disaster preparedness and response at a three-day meeting in Mount Lavinia.