7.9 C
New York
Friday, March 28, 2025
Home Blog Page 35

Straightforward technique to add, remodel and ship recordsdata and pictures


Managing media is a extremely tough activity in the event you attempt to do all of it your self, particularly if the media comes from different sources. The file could be submitted in any state and dimension, however what in the event you want one thing actually particular? You possibly can code all of it your self or you should use an superior service like Filestack, a utility to add, remodel, and ship that media in probably the most optimum fashion conceivable!

The Setup

Step one within the Filestack journey is signing up at no cost. You may get at 21 day free trial and might cancel at any time. As soon as signed up, you will have full entry to the Filestack libraries of code. You may additionally wish to spend time catching up on the Filestack documentation, which is a developer’s dream — code samples and detailed utilization info.

Add

Permitting your customers to reap the benefits of straightforward importing with Filestack begins with the

// Utilizing JavaScript
const consumer = filestack.init("apikey");
const picker = consumer.picker(); 
picker.open();

The result’s a chic, extremely practical, and have stuffed file importing UI element:

Straightforward technique to add, remodel and ship recordsdata and pictures

This nice utility integrates with 20+ common providers like Google Drive, Dropbox, GitHub, Fb, Instagram, and extra. Because the Filestack picker additionally illustrates, customers can reap the benefits of the convenience of dragging and dropping recordsdata to add.

For those who desire to do your importing on the again finish, you should use the Filestack Python library:

from filestack import Shopper

consumer = Shopper(APIKEY)

store_params = {
    'location': 's3', 
    'path': 'folder/subfolder/',
    'upload_tags': {
          "foo":"bar"
    }
}
filelink = consumer.add(filepath="path/to/filename.jpg", store_params=store_params)

Not like many providers, Filestack offers a variety of code libraries to make the developer expertise a lot simpler. With recordsdata uploaded, it is time to remodel!

Rework

Customers can add any kind of file at any dimension or format, so the flexibility to shortly and simply remodel file that file into one thing extra to the developer’s liking is vital. Transformations could be utilized to movies, photographs, and even paperwork. Transformations will also be completed on in actual time or through sync workflows.

For instance, you may resize and manipulate photographs by adjusting URL parameters:

// Resize a picture to have a width of 300px
https://cdn.filestackcontent.com/resize=width:300/pdn7PhZdT02GoYZCVYeF

// Add a coloration filter, rotate the picture, and add a "polaroid" border to the picture
https://cdn.filestackcontent.com/resize=width:300/sepia=tone:80/polaroid/pdn7PhZdT02GoYZCVYeF

So what else could be completed with transformations beside file dimension and results? Heaps!

  • Enhancing: Upscale and take away crimson eye results
  • Borders & Results: Rounded corners, vignette, polaroid, torn edges, shadows
  • Filters: Sharpen, blur, b&w, Sepia, oil paint, pixelate, and extra
  • Facial Detection: detect, crop, pixelate, and blur faces
  • File Kind: format conversion, animation (picture to GIF), ASCII, collage, QR code, screenshot
  • Paperwork: PDF create and convert, doc to picture

All of those instructions could be mixed to utterly remodel any file into precisely what you’d wish to current to your customers! And in the event you’d desire to have a UI for customers to remodel media themselves, you may!

Ship

With the recordsdata uploaded and transforms accomplished, the final step is delivering to purchasers. That supply is extremely vital, as reliability and quick rendering can affect person retention and enterprise conversion.

Filestack’s CDN caches Filestack URLs the primary time they’re accessed, comparable to within the case of storage aliases or transformations. The cached copy of any distinctive Filestack URL will stay for 30 days – it’ll then be re-cached solely when it’s requested once more.

Attempt Filestack!

Filestack’s platform is extremely versatile, highly effective, and helpful. From the beginning of importing, to reworking right into a customized file, and delivering that file shortly, Filestack is a good platform that takes these recordsdata from begin to end; from supply to shopper!


ios – SwiftUI LazyHStack in ScrollView Causes Scrolling Points in Customized Wheel Picker


I’ve a Customized Horizontal Scroll Wheel that connects a mannequin that saves worth in a UserDefault utilizing didset. After I use a daily HStack the worth is appropriate and saves accurately to UserDefaults while you scroll to a brand new quantity however the issue is when the view is initially proven its at all times at a 0 when after I affirm the worth handed in isnt zero. After I change it to a LazyHStack it really works as indented however comes with bizarre bugs the place it doesn’t scroll to the proper place and typically breaks the scrolling. :

The place the userDefaults is being set.

   @Printed var captureInterval: Int = 1 {
           didSet {
               UserDefaults.commonplace.set(captureInterval, forKey: "captureInterval")
           }
       }
    @Printed var startCaptureInterval: Int = 2 {
           didSet {
               UserDefaults.commonplace.set(startCaptureInterval, forKey: "startCaptureInterval")
           }
       }
    

The View in Query:

struct WheelPicker: View {
    
    var rely: Int      //(20 handed in)
    var spacing: CGFloat = 80
    @Binding var worth: Int
    
    //TODO: Add some Haptic Suggestions
    
    var physique: some View {
        GeometryReader { geometry in
            let measurement = geometry.measurement    //Measurement of all the Mum or dad Container
            let horizontalPadding = geometry.measurement.width / 2
            
            ScrollView(.horizontal, showsIndicators: false) {
               LazyHStack(spacing: spacing) {
                    ForEach(0..(get: {    //wanted as a result of scrollPositon wont settle for a Binding int
                let place: Int? = worth      
                return place
            }, set: { newValue in
                    if let newValue {
                    worth = newValue    //merely taking within the new worth and move it again to the binding
                }
            }))
            .overlay(alignment: .middle, content material: {
                Rectangle()     //will peak the energetic index in wheelpicker by drawing a small rectangle over it
                    .body(width: 1, peak: 45) //you'll be able to regulate its peak to make it larger
            })
            .safeAreaPadding(.horizontal, horizontalPadding)        //makes it begin and finish within the middle
            
          
        }
    }
    
    
   
}

#Preview {
    @Previewable @State var rely: Int = 30
    @Previewable @State var worth: Int = 5
    WheelPicker(rely: rely, worth: $worth)
}

What I’ve tried to date its to create an Int? variable that I initialize in .job to equals he worth, move it in as a the scrollPosition and add an OnTap Within the HStack to set each the worth and new Int? variable. This makes the scrolling and preliminary place work good however wont set the userDefaults anymore.

Phishing-as-a-Service Assaults are on the Rise

0


Phishing and Malicious EmailsPhishing-as-a-service (PhaaS) platforms drove a surge in phishing assaults within the first two months of 2025, based on researchers at Barracuda.

Tesla Automobiles Depreciate the Most in USA — However There is a Catch



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


There’s a brand new evaluation on the market that reveals that Tesla autos depreciate essentially the most of any model within the USA after 1 12 months of possession (26.6%), after 3 years of possession (44.4%), and after 5 years of possession (54.7%).

On the flip aspect, the car model that depreciates the least after 1 12 months of possession (11.2%), after 3 years of possession (23.9%), after 5 years of possession (30.7%), and after 7 years of possession (41.6%) is Toyota.

It’s vital to notice, although, that Tesla sells 4 of the 14 electrical car fashions which are eligible for the $7,500 zero-emissions car tax credit score. That signifies that, successfully, $7,500 comes off of the worth of these fashions as quickly as they roll off the lot. There isn’t any different model that’s going to be practically as affected by this as Tesla in terms of depreciation.

Importantly, the tax credit score could be utilized to each EV that’s leased — the leasing firm will get the credit score, and may in fact move that on to prospects through decrease lease funds. However then there’s no depreciation being calculated for an evaluation like this. (Although, you may nonetheless get nice offers on EVs which have simply come off lease.)

Earlier than shifting on to extra of the findings, we had a really attention-grabbing touch upon this subject from an everyday reader a few weeks in the past. “Des Pudels Kern” famous, “That is maybe a repetition, however a buddy bought her Tesla this week and purchased one other EV. Within the 10 days that she dithered over the choice the trade-in worth for her Tesla dropped $3500 on the identical dealership. I feel they may simply have a little bit of a requirement/picture/popularity drawback….” That was in response to an article I wrote about Tesla providing increasingly monetary incentives to stimulate gross sales. Excessive Terrain, which performed this new depreciation evaluation, doesn’t point out when the evaluation was carried out, nevertheless it was presumably very not too long ago. But when this expertise from Des Pudels Kern’s buddy represents the norm, we will see {that a} week right here or there might actually have an effect on the outcomes.

Anyway, returning to the findings, the Tesla Mannequin 3 is especially hit by excessive depreciation within the quick time period. It sees essentially the most depreciation after 1 12 months of possession (35.6%). After 3 years of possession, the Tesla Mannequin X takes the most important hit (50.2% depreciation), and the Nissan LEAF is second worst (48.9%). The Mannequin X is fifth worst after 5 years of possession (56.9%) and the Mannequin S is seventh worst (56.5%). After 7 years of possession, the Mannequin S is worst (68%) and the Mannequin X is sixth worst (66.8%).

Apart from Tesla’s fashions, the one different EV you see close to the highest of those lists from Excessive Terrain is the Nissan LEAF. Although, it seems that different electrical fashions should not included right here — besides maybe as a part of broader mannequin names (like Ford F-150 and Ford Mustang). Most pure EV fashions haven’t been in the marketplace for very lengthy, and it seems that’s why they aren’t included right here. Even the Tesla Mannequin Y isn’t included.

Is depreciation a significant component to be involved about with EVs, and Teslas specifically? Possibly, however one additionally has to remember that the $7,500 tax credit score goes to warp the outcomes.

Possibly we must always do out personal evaluation over a shorter timeframe (not solely utilizing fashions which are at the least 7 years previous) and maybe even utilizing post-subsidy pricing as beginning costs for EVs that qualify for US EV tax credit!  That might be attention-grabbing to see. Or, for that matter, we might simply analyze EV fashions and see how they evaluate. We’ll have many extra fashions to check in a few years, nevertheless it might be enjoyable and attention-grabbing to get began now.

Some other ideas or requests on this enviornment? What have you ever observed on the subject of EV depreciation over time?

Whether or not you’ve got solar energy or not, please full our newest solar energy survey.



Chip in a number of {dollars} a month to assist assist unbiased 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 Speak podcast? Contact us right here.


Join our each day publication for 15 new cleantech tales a day. Or join our weekly one if each day is simply too frequent.


Commercial



 


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

CleanTechnica’s Remark Coverage




Boston Dynamics plans to make use of NVIDIA’s Isaac GR00T to construct AI capabilities for Atlas

0


Boston Dynamics plans to make use of NVIDIA’s Isaac GR00T to construct AI capabilities for Atlas

Aaron Saunders, the CTO of Boston Dynamics, will focus on Atlas in his keynote on the Robotics Summit & Expo. | Supply: Boston Dynamics

Boston Dynamics Inc. final week introduced that it has expanded its collaboration with NVIDIA Corp. to construct the subsequent era of synthetic intelligence capabilities for humanoid robots.

As an early adopter of NVIDIA’s Isaac GR00T framework, Boston Dynamics’ Atlas robotic makes use of the NVIDIA Jetson Thor computing platform. Jetson Thor‘s compact measurement, excessive efficiency, and effectivity permit Atlas to run complicated, multimodal AI fashions that work with Boston Dynamics’ whole-body and manipulation controllers, the businesses mentioned.

“Robots are the bridge between simulation and the actual world,” acknowledged Aaron Saunders, chief know-how officer at Boston Dynamics.

“With the present era of our electrical Atlas, we’re constructing the world’s most succesful humanoid,” he added. “Collaborating with NVIDIA to combine Jetson Thor implies that robotic now has the highest-performance compute platform behind it. Isaac lab is permitting us to develop state-of-the-art AI capabilities, and the early outcomes are thrilling.”

NVIDIA and companions advance robotic studying

Boston Dynamics famous that it and its analysis companions are additionally advancing discovered dexterity and locomotion AI insurance policies utilizing Isaac Lab. The open-source, modular framework for robotic studying in bodily correct digital environments is constructed on NVIDIA’s Isaac Sim and Omniverse applied sciences.

NVIDIA and Boston Dynamics are collaborating to outline key platform parameters together with purposeful security and safety architectures, in addition to key studying and pc imaginative and prescient pipelines utilizing NVIDIA’s coaching and simulation platforms. The businesses introduced their newest joint efforts at NVIDIA’s GTC occasion final week.

Along with the continuing work on Atlas, Boston Dynamics has continued introducing new AI capabilities for Spot, the firm‘s quadruped robotic, and Orbit, its robotic fleet administration and knowledge evaluation software program. Boston Dynamics mentioned new reinforcement studying (RL) instruments are bettering Spot’s locomotion management, whereas superior basis fashions are serving to it keep away from particular hazards which may seem in its path.

Boston Dynamics to share Atlas insights at Robotics Summit

Humanoids will probably be distinguished on the Robotics Summit & Expo, which will probably be on April 30 and Might 1 in Boston and is produced by WTWH Media, father or mother group of The Robotic Report.

Saunders will open the summit together with his keynote, “Redesigning Atlas: Boston Dynamics on the Way forward for Humanoids.” Throughout this session, he’ll unpack the RBR50 award-winning electrical Atlas and share insights from being on the forefront of humanoid improvement for years.

This keynote will discover the challenges and alternatives of constructing humanoids for real-world functions. It should additionally supply a behind-the-scenes have a look at how Boston Dynamics continues to push the restrict of robotics.

Along with Saunders’ opening keynote, the primary day of the occasion will function a panel on the state of humanoids with Pras Velagapudi, chief know-how officer at Agility Robotics; Aaron Prather, director of robotics and autonomous methods at ASTM Worldwide; and Al Makke, director of engineering at Schaeffler.

They are going to discover the technical and enterprise challenges shaping the event of humanoids. The panelists can even share insights from early deployments, the continuing efforts to determine security requirements, and what’s on the horizon.

The Robotics Summit & Expo will convey collectively greater than 5,000 builders centered on constructing robots for a wide range of business functions. Attendees can acquire insights into the newest enabling applied sciences, engineering finest practices, and rising tendencies.