Home Blog Page 2

swift – DatePicker not opening in iOS 18


I’ve a textual content factor which shows date chosen from Date Picker. When tapped on the textual content, app opens date picker over all the opposite components within the view. This logic was working completely till iOS 17. It would not work anymore with iOS 18.

I do not know what’s damaged. Anybody confronted/going through any points with date picker in iOS 18 or can counsel a workaround for this?

import SwiftUI

class SampleViewModel: ObservableObject {
    @Revealed var selectedDate = Date.now
    @Revealed var displayDate = ""
}

struct ContentViewA: View {
    @StateObject var viewModel: SampleViewModel = .init()
    var physique: some View {
        VStack {
            HStack(alignment: .heart) {
                Spacer()
                Textual content(viewModel.displayDate).font(.physique).foregroundStyle(Coloration.blue)
                    .overlay {
                        DatePicker(choice: $viewModel.selectedDate, displayedComponents: .date) {}
                            .labelsHidden()
                            .allowsHitTesting(true)
                            .contentShape(Rectangle())
                            .opacity(0.011)
                    }
                Spacer()
            }
            .padding([.leading, .trailing], 20.0)
            .padding([.top], 25.0)
            .contentShape(Rectangle())

            // There are different components beneath this textual content reminiscent of segmented management and listing.
        }
        .onAppear {
            let formatter = DateFormatter()
            formatter.dateFormat = "HH:mm E, d MMM y"
            viewModel.displayDate = formatter.string(from: viewModel.selectedDate)
        }
        .onChange(of: viewModel.selectedDate) { newValue in
            let formatter = DateFormatter()
            formatter.dateFormat = "HH:mm E, d MMM y"
            viewModel.displayDate = formatter.string(from: newValue)
        }
    }
}

Edit: Commenting out allowsHitTesting, contentShape and opacity modifiers exposes the date picker with it is default type and that is how the UI seems.

enter image description here

What I need to show is the picked date on a Textual content view factor with out displaying the date picker styling, one thing like this.

enter image description here

Cisco Basis AI’s Open-Supply Mannequin


Cisco is proud to mark a significant milestone in its AI journey. Our newly launched Basis AI group—fashioned to carry world-class, domain-specific AI infrastructure to the cybersecurity area—is proud to introduce its first launch: Llama-3.1-FoundationAI-SecurityLLM-base-8B (Basis-sec-8b), an 8-billion parameter, open-weight Giant Language Mannequin (LLM) purpose-built for safety.

This mannequin combines deep area experience with the pliability and management wanted for safe, real-world deployment. With Basis-sec-8B, groups can construct, fine-tune, and deploy AI-native workflows throughout the safety lifecycle. This mannequin is designed to assist safety groups suppose sooner, act with precision, and scale operations with out compromise.

Cybersecurity Functions Require Objective-Constructed, open, Small Fashions

Safety groups right this moment face unprecedented strain. Threats are rising sooner, assaults are extra advanced, and conventional instruments aren’t sufficient. AI is rising as a important pressure multiplier—however general-purpose fashions usually fall quick for real-world safety workflows.

Prompting and retrieval pipelines can’t meet the precision, consistency, and high quality calls for of safety operations. Nice-tuning closed fashions brings its personal challenges: excessive prices, restricted management, and deployment limitations—particularly the place information privateness, regulatory compliance, and in-environment internet hosting are non-negotiable. In the meantime, most open fashions lack the domain-specific information safety groups want.

“Basis-sec-8b is a foundational step towards constructing AI-native safety methods—instruments that don’t simply course of information however really perceive the safety area. This mannequin offers safety groups all over the place a robust constructing block to speed up protection, scale back fatigue, and acquire readability in advanced risk environments.”

Jeetu Patel, Chief Product Officer, Cisco

A Objective-Constructed Mannequin for Safety

Basis-sec-8b isn’t a general-purpose mannequin retrofitted for safety. It was designed from the bottom as much as perceive the language, logic, and workflows of cybersecurity.

Constructed with Llama, utilizing the Llama 3.1 8B framework, foundation-sec-8b has been pre-trained on a dataset meticulously constructed in-house by Cisco Basis AI. This dataset was curated particularly to seize the real-world information and context that safety professionals work with every single day. It consists of, however is just not restricted to:

  • Vulnerability databases and risk conduct mappings (e.g., CVEs, CWEs, MITRE ATT&CK)
  • Menace intelligence reviews, crimson crew playbooks, and real-world incident summaries
  • Safety tooling documentation throughout cloud, identification, and infrastructure domains
  • Compliance references and safe growth practices (e.g., NIST, OWASP, safe coding guides)

This area alignment makes foundation-sec-8b instantly efficient throughout analyst workflows—delivering deeper insights, fewer hallucinations, and dramatically decrease response occasions in comparison with generalist fashions.

Efficiency That Punches Above Its Weight

Regardless of its 8B parameter measurement, foundation-sec-8b outcomes are comparable with fashions practically 10x bigger. On core cybersecurity benchmarks, it outperforms Llama 3.1 8B and even matches or exceeds Llama 3.1 70B, providing highly effective inference at a fraction of the associated fee and infrastructure burden.

Benchmark Mannequin
Basis-sec-8b
Mannequin
Llama-3.1-8b
Mannequin
Llama-3.1 70B
CTI-MCQA 67.39 64.14 68.23
CTI-RCM 75.26 66.43 72.66

Importantly, foundation-sec-8b maintains sturdy normal language efficiency, staying on par with Llama fashions on MMLU benchmarks. This implies it could possibly fluidly clarify risk conduct, assist long-form investigation narratives, and reply naturally in chat-based workflows—with out compromising its safety focus.

Its benefits develop much more obvious with fine-tuning. In downstream safety duties—equivalent to extracting MITRE ATT&CK strategies from unstructured risk reviews—a fine-tuned foundation-sec-8b mannequin considerably outperformed fine-tuning the same-sized Llama mannequin. This reinforces the worth of foundation-sec-8b as each a foundational mannequin and a high-impact part for embedded safety workflows.

Sensible Functions—and Constructed to Match Your Surroundings

Basis-sec-8b isn’t simply performant—it’s versatile. Being open-weight and constructed on the Llama framework makes it simple to fine-tune or lengthen with your personal telemetry, detection guidelines, or risk intel. Whether or not you’re embedding it into present instruments or constructing fully new workflows, foundation-sec-8b adapts to your group’s distinctive wants.

Safety groups can apply foundation-sec-8b throughout the safety lifecycle:

  • SOC acceleration – Automate alert triage, summarize incidents, and help with investigations
  • Proactive risk protection – Simulate assaults, prioritize vulnerabilities, and mannequin threats tailor-made to your infrastructure
  • Engineering enablement – Ship AI-assisted code evaluations, validate configurations, and assess compliance proof with context out of your surroundings
  • Customized integration – Nice-tune the mannequin to mirror your safety posture, language, and detection methods—guaranteeing precision in real-world deployments

“We’ve been working with the Cisco Basis AI crew exploring learn how to embed foundation-sec-8b throughout Cisco’s inside safety stack. We’re very excited in regards to the capabilities of an AI mannequin that really understands our area and might scale throughout use instances.”

Omar Santos, Distinguished Engineer, Cisco Safety & Belief Group (S&TO)

From powering agentic assistant workflows to helping builders in writing secure-by-default code, foundation-sec-8b is a basis you’ll be able to construct on.

Publicly Accessible, With Privateness and Management in Thoughts

In cybersecurity, belief is non-negotiable. That’s why foundation-sec-8b is open-weight, with weights and tokenizer launched beneath a permissive license.

This offers organizations:

  • Full management over deployment – Run the mannequin on-prem, in air-gapped environments, or inside safe cloud enclaves
  • Compliance confidence – Hold delicate information native; no compelled inference APIs or third-party sharing
  • Customization freedom – Adapt and lengthen the mannequin structure or coaching pipeline to satisfy distinctive safety and privateness wants

Basis-sec-8b is now out there for obtain on Hugging Face.

It’s also possible to learn the complete technical particulars in our analysis paper.

Within the close to future, we additionally plan to open supply the coaching pipeline used to construct the mannequin. For extra on the info building and coaching course of, confer with the analysis paper.

Simply the Starting

Basis-sec-8b is the first launch from Cisco Basis AI, a devoted group constructing the infrastructure that may drive the subsequent decade of cybersecurity innovation. This mannequin lays the groundwork for a future the place AI isn’t only a bolt-on function—however a foundational functionality embedded throughout the whole safety lifecycle.

And we’re simply getting began.

Over the approaching months, Cisco Basis AI will probably be releasing:

  • A cybersecurity reasoning mannequin that brings explainability and deeper evaluation to advanced safety workflows
  • A brand new benchmark suite designed to guage AI fashions on real-world, practitioner-defined safety duties
  • Extra instruments and parts that assist groups fine-tune, operationalize, and embed AI safely and successfully into their safety stacks

Basis-sec-8b opens the door. What comes subsequent will reshape how defenders construct, reply, and lead with AI.

Basis-sec-8b is stay. It’s open. And it’s able to defend.

Discover the mannequin, be a part of the neighborhood, and assist form the subsequent era of AI-powered cybersecurity.


We’d love to listen to what you suppose. Ask a Query, Remark Beneath, and Keep Related with Cisco Safety on social!

Cisco Safety Social Handles

LinkedIn
Fb
Instagram
X

Share:



PickNik demoing newest model of MoveIt Professional at Robotics Summit

0


BOULDER, CO, – PickNik Robotics, a supplier of MoveIt Professional, shall be exhibiting on the Robotics Summit & Expo, the premier occasion for robotics builders. The occasion takes place April 30 – Could 1, 2025 on the Boston Conference and Exhibition Middle.

Attendees can go to Sales space 442 to expertise dwell demonstrations of MoveIt Professional, a robotics developer platform to speed up your crew’s momentum and save time to market.

“On the Robotics Summit, we’re showcasing our newest MoveIt Professional launch that uniquely combines deterministic algorithms for accuracy and effectivity with superior machine studying,” stated Dave Grant, CEO of PickNik Robotics. “The Summit’s forward-thinking attendees completely align with our mission to ship cutting-edge automation options for real-world challenges.”

The Robotics Summit & Expo is the main occasion for business robotics builders, bringing collectively 5,000+ business professionals to discover the most recent developments in movement management, AI, sensing, software program growth, humanoids, and extra. With 200+ exhibitors, 50+ instructional classes, 5 keynotes, and hands-on demos, it’s the go-to occasion for these shaping the way forward for robotics.

Dave Coleman PhD, Founder & Chief Product Officer, shall be main a session on Thursday, Could 1st titled, “Past Manufacturing: AI-Powered Robotics and the Lengthy Tail of Business Innovation” at 11:30 AM. The speak will discover how AI is enabling robots to dynamically interpret intricate environments, be taught from real-time variations, and carry out subtle meeting operations that had been beforehand thought of too advanced.

The Robotics Summit additionally affords quite a few networking alternatives, a Profession Truthful, a robotics growth problem, the RBR50 Robotics Innovation Awards Gala, and way more.

Go to PickNik Robotics at Sales space #442 to be taught extra about MoveIt Professional and expertise the way forward for robotics firsthand.

Speed up Your Robotics Growth | About PickNik
Since 2015, PickNik’s mission has been to handle technical challenges whereas dramatically lowering growth time for superior robotic purposes. To realize this, PickNik has created a commercially out there platform, MoveIt Professional. The platform for shortly constructing robotic arm purposes, with out-of-the-box reference purposes, a robust runtime engine, and simple person interfaces that permits superior, customizable robotic options for all industries.

Media Contact
Nashley Banister
Chief of Employees
PickNik Robotics
nashley.banister@picknik.ai
+1-720-513-2221

We’re Uncovered to Chemical compounds and Air pollution Day by day. Now, Scientists Are Linking It All to Our Well being.

0


Within the Nineteen Nineties, a quaint city referred to as Hinkley within the Mojave Desert noticed a sudden spike in most cancers and kidney illness. Because of Erin Brockovich, the well being troubles have been finally linked to a harmful chemical in close by wastewater ponds that was contaminating the city’s ingesting water.

20 years later, lead-contaminated ingesting water in Flint, Michigan uncovered tens of 1000’s of kids to harmful ranges of the mineral, placing them liable to long-term cognitive impacts, corresponding to developmental issues or elevated possibilities of Alzheimer’s illness.

In the meantime, inhaling air air pollution, from industrial fumes to wildfires, amps up irritation within the lungs, finally triggering power illness and doubtlessly most cancers. Consuming extreme crimson meat has been linked to greater charges of most cancers, and social stressors have an effect on metabolism, coronary heart well being, and cognition—all of which contribute to long-term bodily well being.

Research have lengthy tried to match every environmental issue to well-being. Now, a gaggle of scientists is arguing we want a extra complete map. Dubbed the “exposome,” researchers are utilizing large-scale screening instruments to see how mixed publicity to chemical substances in water, completely different approaches to diet, and ranges of stress affect power illness.

It’s a herculean purpose. Linking a mess of environmental components to well being is even trickier than decoding the genome. However an interdisciplinary staff of biologists, epidemiologists, and toxicologists collaborating within the Banbury Exposomics Consortium plans to indicate how what we eat, drink, and breathe impacts our well being. The scientists just lately laid out a roadmap in Science.

“We’re now constructing the primary systematic framework to measure how all exposures—from chemical to social—work together with biology throughout the lifespan,” Gary Miller at Columbia College, who leads the consortium, mentioned in a press launch.

From Genes to Our bodies

The Human Genome Undertaking yielded the primary full map of our DNA, serving to scientists hyperlink genetics to well being and illness. The genomic dataset has enabled gene therapies and gene editors that insert, delete, or swap DNA letters. Thanks to those advances, we’re starting to deal with painful and typically lethal genetic problems with a single shot. Different trials tackling ldl cholesterol to guard towards coronary heart illness are additionally within the works. And the instruments have bolstered analysis by producing animal fashions of various ailments or screening potential drugs.

However with regards to well being, genetics are solely a part of the image. We don’t reside in a bubble.

Scientists have linked what we eat, drink, and breathe to our well being. They’ve discovered microplastics, for instance, in a number of human tissues—together with the mind—and have outlined their well being impacts. Some research have linked long-term air air pollution publicity to bronchial asthma and lung most cancers, whereas others have discovered pesticides, heavy metals, and varied industrial chemical substances within the groundwater or growing older pipes change the physique on the molecular degree.

Moderately than investigating environmental components one after the other, another method is to sew them collectively into one map. Like a genome, the exposome captures a broad array of environmental components and exhibits how they collectively affect well being and illness.

“Solely a fraction of power ailments could be primarily attributed to genetic components,” wrote the staff. The “exposome will assist obtain a extra thorough understanding of a given well being situation.”

Exposomics doesn’t simply monitor charges of illness. Moderately, it follows folks for lengthy durations of time and captures how a number of environmental components affect a variety of well being markers. The sector additionally goals to tease out how particular components may have an effect on bodily or psychological well being at any level.

“People are uncovered to a number of dynamic components all through their lives, but analysis strategies and regulatory businesses haven’t saved tempo with this complexity and proceed to be overly reliant on a ‘one publicity at a time’ mindset,” wrote the staff.

Constructing the Exposome

Standardization is the consortium’s first precedence. Not like different large-scale initiatives, corresponding to mapping the mind or metagenomes, exposome initiatives are more durable to guage.

Particular measurements of the atmosphere could be built-in into present databases. For instance, mapping environmental components to genes, proteins, and metabolic molecules can present how the physique adapts to its altering atmosphere. Observing modifications associated to chemical substances, vitamins, molecular alerts, or epigenetic modifications can convey extra perception.

The sector has already had a number of early successes.

One research of staff uncovered to trichloroethylene—a colorless, odorless chemical typically used to degrease metallic that will increase most cancers threat in manufacturing unit staff—recognized a hyperlink to molecules within the blood. One other linked pesticide publicity to a bile duct dysfunction that impacts digestion. A 3rd mixed air pollution knowledge gathered by satellite tv for pc with residential data to hyperlink publicity to indicators of Alzheimer’s illness. Yet one more research screened 1000’s of proteins to pinpoint one which’s linked to coronary heart assault threat and is produced after consuming crimson meat or dairy.

These research don’t sound associated. However all of them used cutting-edge massive knowledge applied sciences to trace a number of datapoints in actual time over a protracted interval.

To be clear, exposomics is a really younger subject. The consortium continues to be ironing out standardized protocols, knowledge assortment, and strategies of study they’ll share with the group. They’re additionally engaged on customized AI instruments to investigate huge, advanced datasets.

For a primary stretch purpose, the staff hopes to make use of exposomics to review drugs. Our our bodies digest medicine otherwise relying on food regimen and different environmental components. Including these to drug metabolism knowledge may assist higher measure how nicely drugs work.

Future research may hyperlink publicity within the office to mobile issues or genetics and reveal beforehand unidentified harmful chemical substances at a bigger scale. Most cancers sufferers may profit: Tumor development is very influenced by the atmosphere, and exposomics knowledge may assist docs monitor tumor development and its response to remedy.

By mixing environmental components and molecular perception, “exposomics permits researchers to reframe research from a reactive method to a predictive and preemptive one,” wrote the staff.

A number of exposomics hubs within the US and EU are collaborating on infrastructure to share knowledge and initiatives. The consortium is gathering this Might for the inaugural Exposome Moonshot Discussion board in Washington, DC to additional lay out a imaginative and prescient for the sector and discover sensible use instances.

“Life exists on the interface of genetically encoded processes and environmentally pushed realities. So too ought to the biomedical enterprise that research it,” wrote the staff.

Swift Apprentice: Past the Fundamentals


This part tells you a couple of issues you might want to know earlier than you get began, comparable to what you’ll want for {hardware} and software program, the place to search out the venture recordsdata for this e book, and extra.

The part is a listing of the expanded areas of Swift programming. It systematically navigates a wide range of essential subjects, from the rules of Entry Management, Code Group, and Testing to customized Operators, Subscripts, and Keypaths. It presents in-depth protection of Swift’s highly effective idioms, like End result Builders and Sample Matching, and ensures your proficiency in dealing with real-world errors.

The part additional covers superior ideas comparable to Encoding & Decoding Varieties, Reminiscence Administration, and takes you thru the subtelties of worth semantics. It presents a radical dialogue on Property Wrappers, the driving pressure behind standard frameworks like SwiftUI, and explores Protocol-Oriented Programming, underscoring Swift’s protocol-based design.

Lastly, it covers Superior Protocols, Generics, and Concurrency, supplying you with a strong understanding of Swift’s language-level concurrency mechanisms. Every subject offers a strong basis for superior Swift programming, guaranteeing your grasp of those ideas is each thorough and sensible.

Swift provides you highly effective instruments for hiding complexity and organizing your code into easier-to-digest items. As your codebase grows,
guaranteeing correctness with automated exams turns into extra important in your initiatives.

You’ll learn to outline your individual operators and use subscripts to make your sorts really feel much more like built-in language constructs.
Keypaths present references to properties, and along with subscripts and dynamic member lookup, you are able to do superb issues.

Swift is a concise, highly effective language however could be verbose for sure duties. End result builders help you create a domain-specific language and compactly categorical advanced values. On this chapter, you’ll implement a end result builder for making fancy attributed strings.

With sample matching, you’ll be able to accomplish extra with much less typing, and it helps give Swift its trendy language really feel. This chapter picks up the place “Swift Apprentice: Fundamentals – Chapter 4: Superior Movement Management” left off and exhibits you highly effective Swift idioms that allow you to work with swap statements, tuples, optionals and extra.

In the actual world, you’ll be able to’t keep away from some errors. Gracefully dealing with errors is what units mediocre code other than nice code. From dealing with lacking values and easy initialization failure with optionals to offering higher diagnostic element utilizing full-featured error sorts, Swift offers language options to make your code strong and informative within the face of errors.

Swift has a strong system for saving and loading your sorts to and from, for instance, a file system, over the web or another communication channel. Swift has distinctive out-of-the-box assist for the JSON format you’ll turn into aware of on this chapter.

This chapter digs into the small print of Swift’s automated reference counting and reminiscence administration. It exhibits you the way to keep away from reminiscence leaks when object relationships end in reference cycles.

Worth semantics have a transparent benefit over reference semantics concerning native reasoning however can result in inefficiency for giant objects. This chapter exhibits you the way to get the very best of each worlds.

Used extensively in frameworks like Apple’s SwiftUI and Vapor, property wrappers are a general-purpose language function for constructing reusable, customized logic that defines how a property behaves. This chapter highlights some pitfalls and develops a sophisticated instance implementing the copy-on-write optimization.

From the usual library to user-authored generics, Swift is a protocol-based language.
On this chapter, you’ll see the way to get all the advantages related
with object-oriented programming whereas having the ability to keep away from a lot of the difficulties.

Discover ways to use constraints to make generic code extra helpful
and the way to cover implementation particulars with kind erasure and
opaque return sorts.

Swift concurrency is a brand new approach to deal with asynchronous and concurrent code. It implements structured concurrency and offers language options that verify many points of your code at compile time. You may find out about these mechanisms and the way actors defend the shared mutable state of your objects without having a number of error-prone, boilerplate code.