Home Blog Page 6

ios – Learn how to rename an open doc in a SwiftUI DocumentGroup app with customized navigation?


I am constructing a document-based SwiftUI app following Apple’s Constructing a Doc-Based mostly App with SwiftUI information. The app makes use of DocumentGroup and shops paperwork in iCloud Drive.

Necessary context: We’re utilizing a customized navigation bar as an alternative of the system’s default navigation bar, which implies we do not have entry to the built-in rename performance that comes with the usual doc title bar.

Present Setup

   @principal
   struct MyApp: App {
       var physique: some Scene {
           DocumentGroup(newDocument: MyDocument()) { file in
               ContentView(doc: file.$doc)
                   .navigationBarHidden(true) // Utilizing customized navigation
           }
       }
   }

The Drawback

I must rename the at present open doc programmatically from inside the app. When making an attempt to make use of FileManager.moveItem(at:to:), I get this error:

Error Area=NSCocoaErrorDomain Code=513 “”Untitled 142” could not be moved as a result of
you do not have permission to entry “CamPlan”.”
UserInfo={NSUnderlyingError=0x140b62310 {Error Area=NSPOSIXErrorDomain Code=1 “Operation not permitted”}}

The file path is in iCloud: /personal/var/cell/Library/Cell Paperwork/com~apple~CloudDocs/CamPlan/Untitled 142.cplan

What I’ve Tried

  1. Direct FileManager strategy – Ends in permission error:

    strive FileManager.default.moveItem(at: currentURL, to: newURL)
    
  2. NSFileCoordinator – Hangs indefinitely, doubtless as a result of doc already being coordinated:

    let coordinator = NSFileCoordinator(filePresenter: nil)
    coordinator.coordinate(writingItemAt: currentURL, choices: .forMoving, error: &error) { url in
        // This block by no means executes - coordination hangs
    }
    
  3. Surroundings rename motion – Returns nil since we’re not utilizing the system navigation:

    @Surroundings(.rename) personal var rename  // rename is nil
    
  4. Copy and delete strategy – Additionally fails with permission errors in iCloud listing

Query

How can I programmatically rename the at present open doc in a DocumentGroup-based SwiftUI app when:

  • The doc is saved in iCloud Drive
  • We’re utilizing a customized navigation bar (not the system one)
  • The doc is at present open and being edited

Is there a correct API or methodology to set off a doc rename that works with DocumentGroup’s file coordination and iCloud’s necessities? Or do I want to shut the doc first, rename it, after which reopen it?

Surroundings: iOS 17+, SwiftUI, DocumentGroup structure

DEF CON analysis takes intention at ZTNA, calls it a bust



Main vendor vulnerabilities span authentication and design flaws

The analysis uncovered vital vulnerabilities throughout Examine Level, Zscaler and Netskope that fell into three main classes: authentication bypasses, credential storage failures and cross-tenant exploitation.

Authentication bypass vulnerabilities

Zscaler’s SAML implementation contained essentially the most extreme authentication flaw. The researchers found that the signature on the SAML assertion was solely checked for presence, and it wasn’t validated towards the identification supplier’s public key. This allowed full bypass of identification supplier authentication by forging SAML responses with invalid signatures.

Netskope suffered from an analogous however extra elementary bypass. The enrollment API required no authentication, permitting attackers to register units utilizing solely leaked group keys and legitimate e mail addresses. 

Examine Level’s vulnerability centered on hard-coded encryption keys embedded in shopper binaries. These keys protected diagnostic log uploads containing JSON Internet Tokens (JWTs) that lived for 30 days creating a possible compromise situation for any buyer who had uploaded logs to assist.

Credential storage and token administration flaws

All three distributors applied weak credential storage mechanisms. Zscaler saved Machine Token Authentication credentials in Home windows registry in clear textual content, permitting native attackers to extract tokens and impersonate any consumer by modifying registry values. Netskope’s “Safe Enrollment” tokens used DPAPI encryption with inadequate safety.

Vendor response and remediation

Vendor responses diverse considerably in pace and effectiveness. In keeping with the researchers, Zscaler responded most quickly, initially patching their SAML vulnerability (CVE-2025-54982) inside 4 hours. Nonetheless, the repair launched compatibility points requiring a rollback earlier than a everlasting answer was applied.

Safety Holes That May Compromise Your Cellular Gadget


Rooting and jailbreaking frameworks are continually evolving, usually maintained by unbiased builders with out formal safety oversight. In consequence, they incessantly introduce unpredictable dangers that pose a severe and ongoing menace to enterprise safety by enabling malware infections, app compromise, and even full system takeovers.

My 4 Go-To Instruments for Wi-Fi Troubleshooting


Wi-Fi issues are a few of the trickiest to troubleshoot. Having the proper instrument for the job issues when connectivity is fickle and fleeting. After spending just a few years consulting and troubleshooting for wi-fi, I’ve discovered these 4 instruments to be priceless in my Wi-Fi equipment.

WLAN Pi M4+

The WLAN Pi M4+ instrument is the Swiss Military knife for Wi-Fi troubleshooting. It consists of a prebuilt Raspberry Pi field with a wi-fi card and adjustable modules. Updates are achieved by the neighborhood, for the neighborhood. It has varied preloaded functions, akin to Kismet, a shopper profiler and Grafana.

My favourite manner to make use of WLAN Pi M4+ is for distant captures. The instrument makes use of Energy over Ethernet, so you’ll be able to both plug it right into a PoE-capable port on a swap or an influence injector. The M4+ model additionally has the choice to energy by way of USB-C. From there, you need to use Wireshark, Airtool or the Linux terminal to seize frames.

If these aren’t sufficient options, WLAN Pi M4+ features a hotspot mode to spin up an AP and a server mode for companies akin to Dynamic Host Configuration Protocol. Among the many Grafana profiles, the instrument has a Wi-Fi scanner, web monitoring and WLAN Pi well being dashboards with the choice for customized dashboards. A WLAN Pi GitBook is obtainable right here for all of your troubleshooting adventures.

Associated:Keep away from Challenges when Planning for Wi-Fi 7

For Wi-Fi 7 use, the M4+ choice comes with an Intel BE200 card put in, however you may get the Wi-Fi 6 M4 choice too. It is also attainable to customise and construct your individual model. One particular person, Mark Houtz, even made a CBRS-capable model.

Airtool 2

As a result of I discussed Airtool, I ought to present what this utility does and why you must use it. Made by Intuitibits, the corporate that introduced us WiFi Explorer, the Airtool utility enormously simplifies the wi-fi body seize course of for Mac units.

Whereas the appliance appears small, it lets me skip the next steps:

  • Opening up Wi-fi Diagnostics.

  • Clicking to run the seize.

  • Transferring the seize out of my Mac’s momentary listing.

  • Opening up the seize in Wireshark.

mac_airtool.png

A further function lets you join an iPhone and different sources for wi-fi captures. You’ll be able to even use Airtool with WLAN Pi to take distant captures simply. No have to click on the up arrow continuously to seek out your earlier terminal instructions. In the event you’re bored with Wi-Fi, it additionally allows you to take Zigbee and Bluetooth captures with the suitable seize units.

Ubiquiti WiFiman

What if you do not have your laptop computer and nonetheless have to troubleshoot shortly? Many Wi-Fi scanning apps can be found within the app shops, however Ubiquiti WiFiman stands out. It is compact and has extra perks, akin to exhibiting latency for particular functions or the entire community topology.

I like this app for shortly familiarizing myself with the ISP and upstream units current. In the event you hook up with an SSID, it exhibits a dwell feed of RSSI measurements over time. It will probably additionally run a velocity check for Wi-Fi or mobile connections after which present the roaming exercise between them.

wifiman.jpg

A WiFiman Wizard unlocks a further Wi-Fi scan function, however the free app gives worth nonetheless. As a substitute of getting the Wizard, I recommend getting the following instrument and pairing it with a wi-fi card.

WiFi Explorer Professional 3

Are you severe about troubleshooting? WiFi Explorer Professional 3 is the appliance for you. Much like Airtool, this instrument feels smooth and straightforward to make use of. In distinction, WiFi Explorer permits customers to see all lively Wi-Fi networks directly in a spectrum-oriented view. What differentiates this instrument is the thoughtfulness put into the consumer expertise.

For instance, the Superior Particulars panel exhibits data given by 802.11 body tags in a simplified format. That is helpful for verifying safety suites utilized by SSIDs or if 802.11k, 802.11r or 802.11w are in use.

wifi_explorer.png

When RF interference arises, the instrument permits customers to attach a spectrum analyzer that then shows a waterfall or FFT view. WiFi Explorer Professional additionally helps distant captures like Airtool. Whereas Intuitibits initially constructed the appliance for Mac, a Home windows model is now out there.

Conclusion

These are my must-have instruments for Wi-Fi troubleshooting. They’re light-weight, straightforward to make use of and feature-rich. I hope it helps anybody who finds themselves misplaced whereas troubleshooting Wi-Fi.



Natural molecules assist soil retailer water even in desertlike circumstances


Natural molecules assist soil retailer water even in desertlike circumstances

by Clarence Oxford

Los Angeles CA (SPX) Aug 13, 2025






Northwestern College researchers have recognized the nanoscale processes that enable natural matter to reinforce soil’s skill to carry water, even in extraordinarily arid environments.



The group discovered that carbohydrates from crops and microbes act like molecular glue, forming sticky bridges between natural compounds and soil minerals that entice water. These bridges depend on hydrogen bonds, which join water molecules to each clay minerals and carbohydrates, locking in moisture that will in any other case evaporate.



Led by civil and environmental engineering affiliate professor Ludmilla Aristilde, the researchers found that advanced carbohydrate polymers might enhance the power of clay’s water-binding skill as much as fivefold. Even at excessive temperatures, water held in these clay-carbohydrate networks was much less more likely to evaporate and extra more likely to stay in nanopores.



In experiments utilizing smectite clay and three carbohydrate varieties – glucose, amylose and amylopectin – the group noticed that advanced branched carbohydrates additionally prevented clay nanopores from collapsing throughout drying. This structural help helped preserve moisture retention, providing potential methods to engineer soils as long-term water reservoirs.



The findings might also make clear how water can stay trapped in extraterrestrial supplies, comparable to Martian rocks and meteorites, the place comparable organic-mineral-water interactions might happen.



Analysis Report:Mechanisms of water retention at carbohydrate-clay interfaces


Associated Hyperlinks

McCormick College of Engineering

Farming Right this moment – Suppliers and Know-how