8.8 C
New York
Thursday, March 20, 2025
Home Blog

ios – Want customized horizontal grid with a number of rows and columns however linked to SwiftData fashions in SwiftUI


Nonetheless studying about grids. The extra I believe via this, maybe grids due to how the grid flows is just not the correct strategy to current this knowledge. Undoubtedly have to scroll this video games part as you will note however possibly scroll one other customized view. Hope somebody with tons extra expertise can information.

For Now:
I’ve 3 SwiftData fashions ** Included solely related fields **

class League {
    
    var title: String    
    var bowlersPerTeam: Int         // What number of bowlers per crew
    var gamesPerSession: Int        // What number of video games per session
    var groups = [Team]()            // 1 to many groups on a league

class Staff {
    var title: String
    var quantity: Int
    var league: League?             // Staff belongs to only 1 league
    var bowlers = [Bowler]()        // 1 to many bowlers per crew

class Bowler {
    var title: String
    var scores: [Int]               // 1 to many scores (video games) per session  
    var crew: Staff?                 // Bowler belongs to only 1 crew

I notice {that a} bowler may belong to greater than 1 league after which a part of a crew on that different league. Will fear about that many-to-many setup one other day.

What I want is a Horizontal ScrollView that incorporates a grid of bowlers vertically with their particular person scores horizontally throughout. Most leagues bowl 3 video games every session however occasionally a sooner or later event may have a bowler bowling 6 video games and even 8. So I have to dynamically create a grid with a row for every bowler and textfields for every sport they bowl horizontally. I want a header above that scrolls with the sport containers so I do know which sport field belongs to what sport. There might be title data on every row for bowlers that’s stationary to the left of ScrollView (to know who I’m engaged on) and whole for every bowler row to the proper of the ScrollView.

Every rating (sport) field must be linked to the array of bowler.scores array after which I can loop in actual time to replace totals on the top to show.

I constructed a view with a “bowler” row and a ScrollView for the rating (sport) part (black border containers) which scrolls. I may apply the header if just one row / bowler on a crew. However that is by no means the case so the header does not sync as in second image. That’s the reason I’m attempting to tie all of them collectively.

This can be a View that creates the only bowler row.

enter image description here

It then will get used to construct the rating (sport) entry display screen with particular person scrolling bowler rows for the video games. Discover once I took the display screen seize, I moved a few the sport rows however headers stay nonetheless. I can repair alignment afterward the remainder. However the header displaying sport numbers 1 2 3 and many others must match what number of precise video games are being bowled.

enter image description here

I would really like that total rating (sport) part with black borders to construct dynamically and connect with the info fashions for every bowlers video games. So for instance 4 bowlers per crew with every one bowling 3 video games every. Then instance having 3 bowlers per crew with 6 video games every to see how issues scroll. Utilizing an iPad in Panorama for extra room.

I began just a little check view to play with the grid and go in check knowledge and bindable to League, Staff & Bowler. However cannot dynamically set the variety of rows and columns based mostly on league.bowlersPerTeam and league.gamesPerSession due to the way in which structs are constructed. I believe I’m assigning the TextField worth to the suitable sport for a bowler however haven’t checked it. Used GridItem(.fastened(50)) for testing however possibly a greater strategy to have that change dynamically based mostly on variety of video games.

Here’s what I began…

import SwiftUI
import SwiftData

struct GameGridView: View {
    @Bindable var league: League
    @Bindable var crew: Staff
    @Bindable var bowler: Bowler
    
    // This must get the depend from league.bowlerPerTeam
    @State personal var myBowlerRows = Array(repeating: GridItem(.fastened(50)), depend: 3)
    
    @State personal var myGameColumns = Array(repeating: GridItem(.fastened(50)), depend: 5)
    
    let bowlerRows: [GridItem] = [GridItem(.fixed(50)), GridItem(.fixed(50)), GridItem(.fixed(50)), GridItem(.fixed(50))]
    let gameColumns: [GridItem] = [GridItem(.fixed(50)), GridItem(.fixed(50)), GridItem(.fixed(50))]
    
    var physique: some View {
        Textual content("(league.bowlersPerTeam) bowlers per crew that roll (league.gamesPerSession) video games per session")
        ScrollView(.horizontal) {
            LazyHGrid(rows: myGameColumns) {
                ForEach(1..

So this appears appropriate for 4 bowlers vertically and three video games every which matches the instance knowledge I linked. I do know I must create some logic because the grid builds to tie the proper sport field to the proper bowler and likewise appropriate sport place within the array of scores. Type of considering of it like a 2-dimensional array.

However I’m exhausting coding bowlerRows and gameColumns to make the grid construct correctly. This must be executed dynamically however have not found out how you can assign these worth since init of variables is just not full.

This line I modified:

@State personal var myBowlerRows = Array(repeating: GridItem(.fastened(50)), depend: league.bowlersPerTeam)

Which give the error: Can not use occasion member ‘league’ inside property initializer; property initializers run earlier than ‘self’ is out there

I believe I am shut so possibly somebody can see what I am lacking in getting the correct rows / columns dynamically arrange and linked to the info. Particularly Bowler.Scores array.

Thanks,
Scott

Hackers Use RMM Instruments to Preserve Persistence and Navigate Networks Undetected

0


Risk actors have more and more been leveraging reliable distant monitoring and administration (RMM) software program to infiltrate and navigate by way of networks undetected.

RMM instruments, comparable to AnyDesk, Atera Agent, MeshAgent, NetSupport Supervisor, Fast Help, ScreenConnect, Splashtop, and TeamViewer, are broadly utilized by organizations for important IT duties like system updates, asset administration, and endpoint troubleshooting.

Nevertheless, their reliable nature makes them troublesome to flag as malicious, permitting hackers to use them for malicious functions.

Exploitation Methods

Hackers usually achieve entry to RMM software program by compromising consumer credentials by way of social engineering ways or by exploiting vulnerabilities in outdated software program.

As soon as inside, they use these instruments to map the community, determine useful property, and transfer laterally utilizing harvested credentials.

This permits them to exfiltrate delicate information, deploy ransomware, or launch additional assaults.

To take care of persistence, attackers typically set up further distant entry instruments (RATs) that function backups for distant desktop classes or set up reverse connections to adversary-controlled servers.

In latest campaigns, risk actors have used RMM software program to convincingly impersonate IT help personnel, tricking victims into putting in distant entry software program beneath false pretenses.

For example, the Black Basta ransomware group has been identified to make use of spam assaults adopted by impersonation calls to steer victims to put in RMM instruments like AnyDesk or TeamViewer.

As soon as put in, these instruments allow attackers to put in further malware or preserve persistent entry to compromised techniques.

RMM ToolsRMM Tools
question logic

Risk Searching and Detection

In line with Intel471 Report, detecting malicious use of RMM instruments requires focused risk searching methods.

Safety groups can begin by checking if unauthorized RMM functions are working on the community.

If RMM instruments are allowed, investigators ought to search for irregular execution areas, comparable to working from uncommon directories quite than normal paths like AppData or Program Recordsdata.

Using safety incident and occasion administration (SIEM) instruments, endpoint detection and response (EDR) software program, and logging aggregation platforms will help determine suspicious exercise.

For instance, a hunt package deal for detecting AnyDesk execution from irregular folders can be utilized with instruments like Splunk or Microsoft Sentinel to uncover potential malicious exercise.

As soon as detected, additional investigation can contain tracing community connections and monitoring for next-stage payloads.

Are you from SOC/DFIR Groups? – Analyse Malware Incidents & get dwell Entry with ANY.RUN -> Begin Now for Free. 

Ladies in robotics breakfast returns to Robotics Summit

0


A promotional image for Laura Major speaking at the Robotics Summit.Ladies working inside the robotics business usually discover they may be one of many solely ones on their workforce and even at their firm. This may be an isolating expertise, making it tough for girls in robotics to discover a group to assist them.

Presently, ladies make up 48% of the full workforce and simply 34% of the STEM workforce, in keeping with the Nationwide Women Collaborative Undertaking. In the case of engineering and robotics roles, the quantity is even smaller, with ladies solely making up about 16% of the workforce.

The Robotics Summit & Expo, which takes place on the Boston Conference and Exhibition Middle on April 30-Might 1, 2025, will as soon as once more embody the Ladies in Robotics Breakfast. This networking occasion will present feminine engineers and roboticists a chance to attach with others within the business. Will probably be at 8:00 a.m. ET on Day 2 of the present.

The occasion will characteristic a dialog between Laura Main, the interim CEO and CTO at Motional, and Joyce Sidopoulos, the co-founder and chief of operations at MassRobotics.

Main brings expertise from a spread of industries

Main started her profession as a Cognitive Engineer for Draper Laboratory, the place she mixed her psychology and engineering abilities to design decision-making assist units for U.S. astronauts and troopers. After 12 years with the corporate, she served as Division Chief for the Info and Cognition Division.

Throughout this time Main was acknowledged by the Society of Ladies Engineers as an rising chief in 2014. She additionally hung out at Aria Insights, Inc. (previously often called CyPhy Works), a U.S.-based drone producer that specialised in growing extremely superior drones. She served as VP of engineering, after which Chief Expertise Officer, engaged on the event of autonomous aerial automobiles.

Main is a graduate of Georgia Institute of Expertise and Massachusetts Institute of Expertise. She is an completed author and co-author of the e book What To Count on When You’re Anticipating Robots: The Way forward for Human-Robotic Collaboration.

Tickets could be bought earlier than the occasion for $35 and are open to all-access go holders, audio system, and sponsors.

Extra in regards to the 2025 Robotics Summit

This 12 months’s Robotics Summit & Expo, produced by The Robotic Report, will convey collectively greater than 5,000 attendees centered on constructing robots for varied industrial industries. Attendees will achieve insights into the most recent enabling applied sciences, engineering finest practices, rising developments, and extra.

The present can have greater than 50 instructional classes in tracks on synthetic intelligence, design and growth, enabling applied sciences, healthcare, and logistics. The Engineering Theater on the present flooring can even characteristic shows by business specialists.

Keynote audio system will embody:

  • Aaron Saunders, the chief know-how officer at Boston Dynamics
  • Aaron Parness, the director of utilized science in robotics and AI at Amazon Robotics
  • James Kuffner, the CTO of Symbotic
  • Dr. Aadeel Akhtar, the founder and CEO of PSYONIC

Over 200 exhibitors within the expo corridor will showcase the most recent enabling applied sciences, merchandise, and companies that may assist robotics engineers all through their growth journeys.

The Robotics Summit additionally gives quite a few networking alternatives, a Profession Honest, a robotics growth problem, the RBR50 Robotics Innovation Awards Gala, and extra.

Co-located with the occasion is DeviceTalks Boston, the premier occasion for medical know-how professionals, at the moment in its tenth 12 months. Each occasions entice engineering and enterprise professionals from a broad vary of healthcare and medical know-how backgrounds.

Registration is now open.

Extremely-Deep Geothermal Drilling & The Rise Of Black Swan Dangers



Join every day information updates from CleanTechnica on electronic mail. Or comply with us on Google Information!


Final Up to date on: nineteenth March 2025, 06:15 pm

Deep drilling isn’t elective for enhanced geothermal programs (EGS), it’s the entire level. To know why, consider the Earth’s crust as a scorching soup. Close to the floor, it’s merely lukewarm, barely helpful past warming your home in the event you’re fortunate. Go deeper, nonetheless, and temperatures rise quickly, roughly 25 to 30 levels Celsius for each kilometer drilled, although that varies wildly relying on geology. Accessing enough warmth, ideally round 200–400 levels Celsius to economically generate electrical energy, often means reaching depths between 4 and 10 kilometers, usually in powerful, unforgiving rock.

As a word, that is one in a collection of articles on geothermal. The scope of the collection is printed within the introductory piece. In case your curiosity space or concern isn’t mirrored within the introductory piece, please go away a remark.

Traditionally, we’ve solely scratched the floor. The Kola Superdeep Borehole in Russia, drilled over two painstaking many years between 1970 and 1990, reached about 12 kilometers deep. It was a unprecedented feat, however one marred by harsh realities: drill bits continuously failed, and the deeper they went, the warmer and extra plastic the rock grew to become. At round 180 levels Celsius, the borehole began deforming like a squeezed plastic straw, marking the bounds of typical drilling.

The oil and gasoline business has surpassed this depth, at the least on paper, drilling horizontally and vertically to depths exceeding 12 kilometers. Nevertheless, these wells, like these in Qatar or Russia’s Sakhalin area, navigate softer sedimentary formations and keep away from the scorching temperatures of deep geothermal targets. Iceland’s Deep Drilling Challenge (IDDP), in contrast, plunged straight into supercritical situations at round 450 levels Celsius simply 4.5 kilometers down, proving each potential and peril. Their casings corroded swiftly, underscoring the bounds of current know-how.

Enter novel drilling approaches promising to rewrite these guidelines — every fascinating, costly, and accompanied by a wholesome dose of skepticism. Take millimeter-wave drilling, championed by Quaise Power, spun out from MIT, sitting at Know-how Readiness Stage (TRL 4 with 9 being commercialized). As a substitute of grinding rock, Quaise melts it utilizing microwaves beamed downhole via specialised waveguides. Quaise claims this could attain depths of 20 kilometers with prices scaling linearly — not exponentially.

The catches? Their largest lab take a look at noticed a 2.5 cm gap 2.5 m lengthy, which is a couple of 4,000th of their claims for the way deep they will go. As an engineering rule of thumb, you need to get to quarter-scale prototypes to be in the identical physics ballgame, so that they have a whole lot of scaling to do. Their imaginative and prescient of attaining a value of roughly a thousand {dollars} per meter sounds optimistic at greatest and fantastical at worst. Actual-world rock has fluids, fractures, and surprises, and microwaves notoriously wrestle in moist environments. And final however not least, what occurs to the melted rock? They ran compressed air to the underside of the two.5 m gap and it blew the rock out as skinny threads, however getting air to blow melted rock a number of kilometers straight up strikes me (and an terrible lot of different individuals) as deeply unlikely. It’s more likely to stay to gear and the perimeters of the opening and gum up the works. Nonetheless, if Quaise can hold the microwaves from scattering and overheating parts deep underground, it might remodel EGS economics.

GA Drilling’s PLASMABIT (TRL 4-5) follows a parallel path, utilizing plasma torches to thermally fracture rock. Their lab assessments present rock fractures superbly underneath excessive warmth, however downhole situations — pressurized water, corrosive environments, unpredictable rock compositions — are harsher. GA hedged their bets with incremental advances like their AnchorBit, basically a downhole stabilizer, already demonstrating success at boosting typical drilling charges in lab settings. However scaling plasma fracturing instruments to field-ready depths stays technically daunting. Think about igniting and sustaining a plasma torch kilometers beneath your ft — any malfunction might flip costly shortly. Individuals I do know who’ve labored with plasma torches, together with chemical processing Paul Martin, make it clear that they’re onerous to regulate.

Different strategies, corresponding to thermal spallation, make use of intense warmth jets to flake away rock, promising drilling speeds considerably quicker than typical strategies. Potter Drilling (TRL 5) and the EU ThermoDrill challenge (TRL 6-7) demonstrated promising penetration charges in lab and small area trials. But, there’s a vital caveat — this method hinges on rock sorts cracking predictably underneath thermal stress. Encountering non-cooperative geology, like softer rocks that soften somewhat than spall, might ship prices skyrocketing. And when rock is way hotter and extra plastic as it’s down deep, that is unlikely to carry out practically as effectively.

Excessive-power laser drilling additionally flirts with transformational claims. Labs have proven lasers simply slicing via shale and sandstone, however delivering a coherent, intense beam a number of kilometers underground isn’t trivial. Lasers want completely engineered optics and fiber cables immune to immense stress and warmth. Actual-world demonstrations have been restricted, and any water within the rock can scatter the laser beam, dramatically decreasing effectivity. Laser-assisted drilling is intriguing, maybe even viable in sure situations, however removed from confirmed at depth.

Conventional mechanical drilling isn’t idle. Hammer drilling applied sciences, now at TRLs round 6 or 7, are starting to reliably exhibit larger penetration charges and larger sturdiness in onerous crystalline rock at average depths. Polycrystalline diamond compact (PDC) bits, reaching TRLs of 8 or larger, have considerably elevated drilling effectivity in powerful geological situations, decreasing downtime attributable to frequent bit replacements. Directional drilling, well-established at TRL 9, permits exact focusing on of geothermal reservoirs, optimizing useful resource entry and minimizing drilling lengths. The first power of those approaches lies of their confirmed operational historical past and incremental enhancements that cut back danger relative to radically new strategies.

Nevertheless, mechanical drilling stays challenged at depths past 7 kilometers attributable to growing temperatures that degrade device integrity and rock changing into much less brittle and extra plastic, making environment friendly drilling more and more troublesome. The important thing technical dangers embody managing excessive warmth, minimizing bit put on, and avoiding catastrophic device failures that may shortly escalate challenge prices. Even incremental enhancements right here may yield higher returns than betting all the pieces on completely novel strategies.

This brings us again to why ultra-deep drilling is hard. Beneath sure temperatures, rock turns into ductile — much less susceptible to fracturing and extra prone to deform and seal any induced fractures. Fracking can briefly induce fractures, however sustaining long-term permeability stays unproven. Furthermore, ultra-deep drilling means working on the extremes of fabric capabilities: casing steels weaken, electronics fail, and surprising geologic surprises, corresponding to overpressured fluids and even magma, can flip a promising challenge right into a expensive dead-end in a single day.

Given this, deep geothermal drilling epitomizes what’s referred to as a ‘long-tail danger,’ or as Bent Flyvbjerg vividly frames it — a basic breeding floor for ‘black swan’ occasions. These unpredictable, uncommon, and high-impact outcomes aren’t merely theoretical—they stack up alarmingly when combining excessive depths, first-of-a-kind (FOAK) applied sciences, and unprecedented geological situations. Every added kilometer doesn’t simply improve capital prices; it exponentially multiplies uncertainties, creating layers of technical, geological, and financial dangers. Novel drilling strategies enlarge this uncertainty: applied sciences that perform superbly in managed laboratory settings can falter disastrously underneath harsh, real-world situations deep underground. Flyvbjerg’s insights warn us that optimism bias continuously underestimates the complexity and potential for catastrophic failure in such modern ventures, making deep geothermal drilling a compelling however perilously unsure endeavor.

Fly too near the Earth’s molten warmth, and your funding can evaporate — fairly actually — in the event you hit supercritical situations unprepared. Thus, novel drilling applied sciences, whereas alluring, should navigate a deadly path: proving they will really decrease prices, reliably handle surprises, and obtain constant financial efficiency at industrial scale.

The uncomfortable fact is that deep geothermal drilling — notably utilizing cutting-edge, largely untested strategies — embodies precisely the kind of long-tail, black-swan-rich endeavor that Bent Flyvbjerg has proven is most prone to huge delays, value overruns, and outright failures. Betting closely on these formidable however immature applied sciences may yield revolutionary breakthroughs, or simply as possible, turn out to be one other cautionary story of costly hubris chasing desires far under floor. My opinion that geothermal for electrical era would stay a rounding error globally hasn’t modified after going deep on superior drilling applied sciences.

Whether or not you will have solar energy or not, please full our newest solar energy survey.



Chip in just a few {dollars} a month to assist help impartial cleantech protection that helps to speed up the cleantech revolution!


Have a tip for CleanTechnica? Need to promote? Need to recommend a visitor for our CleanTech Discuss podcast? Contact us right here.


Join our every day e-newsletter for 15 new cleantech tales a day. Or join our weekly one if every day is simply too frequent.


Commercial



 


CleanTechnica makes use of affiliate hyperlinks. See our coverage right here.

CleanTechnica’s Remark Coverage




Watch This Webinar to Study Methods to Get rid of Id-Primarily based Assaults—Earlier than They Occur

0


Mar 19, 2025The Hacker InformationId Safety / Webinar

Watch This Webinar to Study Methods to Get rid of Id-Primarily based Assaults—Earlier than They Occur

In right this moment’s digital world, safety breaches are all too widespread. Regardless of the various safety instruments and coaching applications obtainable, identity-based assaults—like phishing, adversary-in-the-middle, and MFA bypass—stay a serious problem. As an alternative of accepting these dangers and pouring assets into fixing issues after they happen, why not forestall assaults from occurring within the first place?

Our upcoming webinar, Methods to Get rid of Id-Primarily based Threats,” will present you the way, that includes Past Id consultants Jing Reyhan (Director of Product Advertising) and Louis Marascio (Sr. Product Architect). Be a part of them to find how a secure-by-design entry answer can block phishing, adversary-in-the-middle assaults, and extra—earlier than they ever attain your community.

What You Will Study

  1. Cease Assaults on the Supply: Study to proactively block threats like phishing—earlier than they’ll goal your techniques.
  2. Grasp Key Safety Strategies: Uncover how secure-by-design options allow phishing resistance, verifier impersonation resistance, machine compliance, and steady, risk-based entry management.
  3. Sensible, Actionable Recommendation: Acquire clear, easy-to-implement steps to safeguard your group with out requiring superior technical expertise.
  4. Actual-World Success Tales: See how these confirmed methods work in real-life situations that spotlight their effectiveness.
  5. Acquire a Aggressive Edge: Forestall breaches to scale back prices and construct belief together with your prospects and companions.

Even should you’re not a tech knowledgeable, you may study invaluable insights about how identity-based threats function—and methods to cease them.

It is time to rethink conventional safety approaches. As an alternative of reacting to assaults, uncover methods to forestall them altogether. By becoming a member of our webinar, you may take a serious step towards securing your group’s future.

Register now and discover ways to eradicate whole courses of identity-based assaults out of your risk panorama. Do not miss this chance to rework your safety technique and defend what issues most.

Watch this Professional Webinar

Be happy to share this invitation with colleagues and anybody who values proactive safety. We stay up for seeing you on the webinar!

Discovered this text attention-grabbing? This text is a contributed piece from one in every of our valued companions. Comply with us on Twitter and LinkedIn to learn extra unique content material we submit.