Home Blog Page 14

ios – how to attract border to a masked picture utilizing swift?


I’ve created beneath masked picture

image

Right here is my code

//
//  Collage_Layout_1.swift
//  Snapcial
//
//  Created by Jecky Modi on 15/02/25.
//


class Collage_Layout_1: CollageLayoutBaseView {
    var maskedImage: String = ""
    var originalImage = UIImage()
    non-public let maskImageView = UIImageView()
    var viewFrame : CGRect = .zero
    //    non-public var originalImageCenter: CGPoint?
    
    init(body: CGRect, maskedImage: String, originalImage: UIImage) {
        tremendous.init(body: body)
        self.maskedImage = maskedImage
        self.originalImage = originalImage
        self.viewFrame = body
    }
    
    override func setUpCollage() {
        let maskedContainer = self.arrViews[0].containerView
        maskedContainer.tag = 100
                
        let maskImage = UIImage(named: maskedImage)?.withRenderingMode(.alwaysTemplate)
        maskImageView.translatesAutoresizingMaskIntoConstraints = false
        maskImageView.picture = maskImage
        maskImageView.contentMode = .scaleAspectFit
        maskImageView.tintColor = .clear
        addSubview(maskImageView)       // Preserve the masks picture seen
        
        // Create a masks layer from the black form
        let maskLayer = CALayer()
        maskLayer.contents = maskImage?.cgImage
        maskLayer.body = self.viewFrame
        maskLayer.contentsGravity = .resizeAspect
        
        maskedContainer.layer.masks = maskLayer
        maskedContainer.clipsToBounds = true
        maskedContainer.backgroundColor = .clear
        self.backgroundColor = .clear
        
        addSubview(maskedContainer)     // Add container with masks
        
        
        NSLayoutConstraint.activate([
            maskImageView.leadingAnchor.constraint(equalTo: self.leadingAnchor),
            maskImageView.topAnchor.constraint(equalTo: self.topAnchor),
            maskImageView.trailingAnchor.constraint(equalTo: self.trailingAnchor),
            maskImageView.bottomAnchor.constraint(equalTo: self.bottomAnchor),

            maskedContainer.leadingAnchor.constraint(equalTo: self.leadingAnchor),
            maskedContainer.topAnchor.constraint(equalTo: self.topAnchor),
            maskedContainer.trailingAnchor.constraint(equalTo: self.trailingAnchor),
            maskedContainer.bottomAnchor.constraint(equalTo: self.bottomAnchor),
        ])
        

        self.layoutIfNeeded()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been carried out")
    }
}

I wish to add borders to my masked picture that border ought to take form of masks.

Any assist can be appreciated.

Is Perplexity AI Secure to Use? Uncovering Safety Flaws within the Android App


The fast rise of AI-powered functions brings innovation, but additionally safety blind spots. As AI programs turn out to be integral to our day by day lives, their safety should preserve tempo with their capabilities. This is the main target of our AI Safety Testing Sequence, the place we analyze widespread AI functions for vulnerabilities that would put customers in danger.

Black carbon and the bee microbiome



Two woman smile at the camera, who are Julie Morrissey and Hannah Sampson, scientists at the University of Leicester
The authors of the examine, Professor Julie Morrissey and Dr Hannah Sampson.

A examine of bumblebees has uncovered a possible cause for the bugs’ decline, linking it with superb particulate air air pollution

The researchers say they’ve decided that the variety and behavior of the bee intestine microbial group is altered when uncovered to black carbon (BC) present in air air pollution, disrupting the helpful micro organism that reside there.

Bees are very important to our delicate eco-system and agriculture as a result of they assist pollinate wild timber and flowers and crops which assist different bugs and mammals in flip going up the meals chain. However their populations are declining with many species already worn out and others in severe hazard.

A key element of bee well being is their specialised, helpful intestine microbiome.

On this new examine on the College of Leicester, researchers grew Snodgrasella alvi, a helpful member of the bee intestine microbiome, in lab circumstances and uncovered it to BC air air pollution.

Snodgrassella alvi colonises bees’ massive gut in a construction referred to as a biofilm – a protecting matrix that promotes bacterial colonisation on surfaces (e.g. like plaque on tooth).

The workforce discovered that publicity to BC modified the behaviour of S. alvi and the construction and formation of the micro organism’s biofilm.

Researchers additionally appeared on the results of BC air pollution on reside bumblebees. They sampled bees earlier than and after air pollution publicity and measured the abundance of micro organism of their intestine to watch any variations.

Apian poo
To measure the intestine microbiome, the researchers took faecal samples – a number of for every particular person. They discovered that there was a major change within the abundance of helpful micro organism which are very important to the well being of the bee intestine microbiome.

Dr Hannah Sampson, first creator on the examine, mentioned: “Latest declines in bee populations have put a highlight on understanding what components could be driving these. To date, they’ve been attributed to habitat loss, pesticide use, the unfold of bee ailments and local weather change.

“The bee intestine microbiome is an important element of bee well being. Our analysis explored the affect of air air pollution on bees’ intestine microbiome, discovering that air air pollution publicity has direct, measurable results on the helpful commensal micro organism and microbiome.

“Our knowledge highlights that air air pollution is an underexplored threat to insect pollinator well being by way of disruption of bees helpful intestine microbiome. This not solely poses a threat to bee well being however to pollination and international meals safety in the long run.”
Nevertheless, Dr Sampson added that extra analysis wanted to happen.

“Air air pollution impacts microbial communities. Modifications to those necessary communities might have detrimental results on plenty of totally different ecosystems that have an effect on bees and likewise immediately have an effect on people.”

The findings have been printed in NPJ Biofilms Microbiomes.

Turing Award Particular: A Dialog with Martin Hellman


Martin Hellman is an American cryptographer recognized for co-inventing public-key cryptography with Whitfield Diffie and Ralph Merkle within the Nineteen Seventies. Their groundbreaking Diffie-Hellman key change methodology allowed safe communication over insecure channels, laying the inspiration for contemporary encryption protocols. Hellman has additionally contributed to cybersecurity coverage and moral discussions on nuclear danger. His work has had an enduring impression on cryptography, web safety, and world info safety.

Martin obtained the 2015 Turing Award along with Whitfield Diffie “for inventing and promulgating each uneven public-key cryptography, together with its utility to digital signatures, and a sensible cryptographic key-exchange methodology. “

On this episode he joins Gregor Vand to speak about his life and profession.

Gregor Vand is a security-focused technologist, and is the founder and CTO of Mailpass. Beforehand, Gregor was a CTO throughout cybersecurity, cyber insurance coverage and basic software program engineering firms. He has been based mostly in Asia Pacific for nearly a decade and will be discovered through his profile at vand.hk.

Please click on right here to see the transcript of this episode.

Sponsors

This episode is sponsored by Mailtrap – an E-mail Platform builders love.

Go for prime deliverability, trade greatest analytics, and dwell 24/7 assist.

Get 20% off for all plans with our promo code SEDAILY.
Take a look at Mailtrap.io to enroll.

This episode of Software program Engineering Every day is dropped at you by Capital One.

How does Capital One stack? It begins with utilized analysis and leveraging knowledge to construct AI fashions. Their engineering groups use the ability of the cloud and platform standardization and automation to embed AI options all through the enterprise. Actual-time knowledge at scale allows these proprietary AI options to assist Capital One enhance the monetary lives of its clients. That’s know-how at Capital One.

Be taught extra about how Capital One’s trendy tech stack, knowledge ecosystem, and utility of AI/ML are central to the enterprise by visiting www.capitalone.com/tech.

Cloudera’s 2025 Agentic AI Survey Reveals a Tipping Level for Autonomous Enterprise Transformation

0


2025 is shaping as much as be a defining 12 months in enterprise know-how—and in line with the newly launched Cloudera report titled The Way forward for Enterprise AI Brokers which surveyed a complete of 1,484 world IT leaders, autonomous software program brokers are on the heart of this transformation. These “agentic” AI methods—AI instruments that may cause, plan, and act independently—are quickly transferring from concept to widespread adoption throughout industries, signaling a large shift in how companies optimize efficiency, improve buyer experiences, and drive innovation.

Not like conventional chatbots, that are restricted to pre-programmed workflows, agentic AI methods use superior giant language fashions (LLMs) and pure language processing (NLP) to grasp complicated inputs and decide one of the best plan of action with out human intervention. This isn’t automation as we’ve identified it—that is clever delegation at enterprise scale.

Adoption Is Accelerating—And Strategic

Cloudera’s survey reveals that 57% of enterprises started implementing AI brokers throughout the final two years, with 21% doing so simply within the final 12 months. For many organizations, this is not experimental anymore—it is strategic. A full 83% consider AI brokers are crucial to sustaining a aggressive edge, and 59% worry falling behind in the event that they delay adoption in 2025.

Corporations aren’t stopping at pilots. A exceptional 96% of respondents plan to develop their AI agent deployments within the subsequent 12 months, with half aiming for main, organization-wide rollouts.

Actual-World Use Instances Are Taking Off

The report highlights three of the preferred purposes for agentic AI:

  • Efficiency optimization bots (66%) – These brokers dynamically handle IT infrastructure, resembling cloud useful resource allocation and server hundreds, to enhance system efficiency in actual time.

  • Safety monitoring brokers (63%) – Autonomous methods that analyze community exercise, detect anomalies, and reply to cyber threats with out human oversight.

  • Growth assistants (62%) – Brokers that write, check, and refine code in response to real-time adjustments—streamlining DevOps workflows.

These aren’t hypothetical eventualities. They’re energetic deployments in IT departments, buyer assist, and even advertising and marketing. The truth is, 78% of enterprises are utilizing AI brokers for buyer assist, 71% for course of automation, and 57% for predictive analytics—demonstrating measurable return on funding (ROI) in core enterprise areas.

The Subsequent Step After GenAI

The synergy between agentic AI and generative AI (GenAI) is a significant theme within the Cloudera report. GenAI refers to AI that may create authentic content material—like textual content, code, or photographs—primarily based on discovered patterns. Enterprises that invested in GenAI at the moment are leveraging agentic AI to orchestrate and prolong these capabilities.

98% of organizations are both utilizing or planning to make use of agentic AI to assist GenAI efforts, and 81% are utilizing brokers to boost their present GenAI fashions—successfully making GenAI extra helpful, responsive, and embedded inside enterprise workflows.

Open Supply Is Gaining Floor

A notable shift highlighted within the survey is the rise of open-source giant language fashions. As soon as seen as trailing behind proprietary options, fashions like Llama, Mistral, and DeepSeek at the moment are aggressive—and infrequently preferable. Why? They provide decrease prices, larger management, and adaptability.

Not like closed fashions that usually require utilization by means of a selected cloud or API (creating points round knowledge sovereignty and vendor lock-in), open fashions may be self-hosted. This permits enterprises to higher align with compliance requirements and inner infrastructure, making open-source AI not solely highly effective—however sensible.

Challenges Stay: Integration, Privateness, and Belief

Regardless of the keenness, deploying agentic AI is just not with out friction. The report identifies three main boundaries:

  • Information privateness considerations (53%)

  • Integration with legacy methods (40%)

  • Excessive implementation prices (39%)

Enterprises additionally report important technical complexity: 37% discovered integrating AI brokers into present workflows extraordinarily difficult. These methods require sturdy infrastructure, expert groups, and sturdy governance.

Cloudera’s survey respondents emphasised the necessity to prioritize knowledge high quality, enhance mannequin transparency, and strengthen inner ethics frameworks to make sure AI brokers are reliable and efficient.

Bias and Moral AI: A Core Concern

One of many strongest warnings within the report includes algorithmic bias. As a result of AI fashions be taught from historic knowledge, they threat perpetuating societal inequities if not rigorously managed. The survey cites alarming real-world penalties:

  • In healthcare, biased fashions have led to misdiagnoses in underrepresented populations.

  • In protection, biased decision-support methods may affect high-stakes army choices.

51% of IT leaders are critically involved about equity and bias in AI brokers. Encouragingly, 80% report sturdy confidence of their AI brokers’ explainability—an indication that transparency is turning into a precedence.

Business Spotlights: Sector-Particular Influence

Cloudera’s survey provides deep insights into how totally different sectors are deploying agentic AI:

  • Finance & Insurance coverage: Fraud detection (56%), threat evaluation (44%), and personalised funding recommendation (38%) are high use circumstances.

  • Manufacturing: Provide chain optimization (48%), course of automation (49%), and security threat monitoring lead the cost.

  • Retail & E-Commerce: AI brokers are bettering value optimization (49%), customer support (50%), and demand forecasting (48%).

  • Healthcare: Appointment scheduling (51%) and diagnostic help (50%) are making actual impression.

  • Telecommunications: Buyer assist (49%) and churn prediction are key focuses, alongside safety monitoring.

Suggestions for Enterprises in 2025

To benefit from this second, Cloudera outlines 4 key steps:

  1. Strengthen your knowledge infrastructure to deal with integration, high quality, and privateness at scale.

  2. Begin small, show worth, and scale thoughtfully—starting with high-ROI use circumstances like inner assist bots.

  3. Set up accountability from day one. AI brokers make choices—somebody should personal them.

  4. Upskill your groups to collaborate with AI and adapt to its evolving capabilities.

Conclusion: From Hype to Influence—Agentic AI Is Right here

The Cloudera The Way forward for Enterprise AI Brokers report paints a transparent image: agentic AI is not a buzzword—it’s a enterprise crucial. In 2025, forward-thinking enterprises are investing in brokers not simply to automate duties, however to reinforce their workforce, improve decision-making, and achieve a aggressive edge in actual time.

To reach this new period, organizations should transfer past experimentation and embrace considerate, moral deployment of AI brokers. Those that lead now is not going to simply adapt—they may outline the way forward for clever enterprise.