StackOverflow.com

VN:F [1.9.22_1171]
Rating: 9.4/10 (10 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

StateStoreBuilders as @Beans result in 'Invalid topology: StateStore store is not added yet.'

16 April 2024 @ 7:50 am

According to https://docs.spring.io/spring-cloud-stream/reference/kafka/kafka-streams-binder/state-store.html should the declaration of StateStoreBuilder @Beans be as follows: @Bean fun store() = Stores.keyValueStoreBuilder( Stores.persistentKeyValueStore("store"), Serdes.Integer(), Serdes.Integer() ) @Bean fun consumer() = Consumer { events: KStream<Int, Int> -> events .process(ProcessorSupplier { CustomProcessor() }, "store") } class CustomProcessor : Processor<Int, Int, Int, Int> { private lateinit var context: ProcessorContext<Int,

Overwrite Transition from outside in SwiftUI

16 April 2024 @ 7:50 am

I have a badge component with a built-in transition: public struct BadgeView: View { ... public var body: some View { Text(stringValue) .background(.red) .clipShape(RoundedRectangle(cornerRadius: sideLength/2.0)) .transition(.scale) } } Now I have a view modifier that adds a badge as an overlay to some view: struct Badge: ViewModifier { ... func body(content: Content) -> some View { content .overlay(alignment: .topLeading) { BadgeView(value: value) .offset(x: -size/3.0, y: -size/3.0) .background( GeometryReader { geometry in Color.clear.onAppear { size = geometry.size } .onChange(of: geometry.size) { newValue in size = newV

How can I solve the problem with pagination in vue?

16 April 2024 @ 7:49 am

div class="dataTables_paginate paging_simple_numbers float-end"> <ul class="pagination pagination-rounded mb-0" v-if="personLeave"> <b-pagination v-model="currentPage" :total-rows="personLeave.count" :per-page="perPage" ></b-pagination> </ul> </div> data() { userDetail: [], noUserFoundError: "", currentPage: 1, perPage: 5, personLeave: [], }; I am new to vue. This is my code but pagination doesn't work what I do wrong? I define to appear 5 rows per page but there is not exists second page when I put more than 5 rows.

Query that returns all words ignoring one

16 April 2024 @ 7:49 am

I need to make a query to retrieve streets name for example, ALCALA. I've tried using LIKE with % but i have no the result i need. For example, in the table must be the records: CALLE DE ALCALA CALLE ALCALA, DE CALLE ALCALA (DE) ALCALA, DE ALCALA (DE) I've tried: SELECT street_name FROM calles WHERE street_name LIKE '%ALCALA%'; It returns: DIEGO DE ALCALA DOCTORA DE ALCALA GACETA DE ALCALA SAN FELIX DE ALCALA VALVERDE DE ALCALA ALFONSO DE ALCALA LUIS DE ALCALA VIEJO DE ALCALA (DE) PUERTA DE ALCALA MARTIRES DE ALCALA UNIVERSIDAD DE ALCALA DE SAN DIEGO DE ALCALA (DE) M-225 (VALVERDE DE ALCALA SELECT street_name FROM calles WHERE street_name LIKE 'ALCALA%'; ALCALA ALCALA (DE) ALCALA-TORRELAGUNA ALCALA DE HENARES ALCALA DE HENARES (DE) ALCALA ALTA ALCALA BAJA ALCALA-TORRELAGUNA (DE) ALCALA (HUERTA DE LEOTINO ALCALA GALIANO ALCALA DE GUADAIRA ALCALA-MONDEJAR (DE) ALCALA (ALALPARDO) (DE) A

Grouping toast notifications with collections

16 April 2024 @ 7:48 am

As title,I want to group toast notification by Collection on windows it have example in https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/toast-collections But I can't exactly used public async void CreateToastCollection() { string str = System.Environment.CurrentDirectory; string folderPath = @$"{str}" + "\\warning.png"; // /Red.jpg string displayName = "Work Email"; string launchArg = "NavigateToWorkEmailInbox"; Uri icon = new Uri(folderPath); //"ms-appx:///Assets/workEmail.png" // Constructor ToastCollection workEmailToastCollection = new ToastCollection( "MyToastCollection", displayName, launchArg, icon); // Calls the platform to create the collection await Toas

ARM NEON: how to implement logic like `mm_mask_compress`?

16 April 2024 @ 7:44 am

A function named filter_range is designed to retain elements nums[i] for which filter[i] != 0 and eliminate all others. Its logic is as follows. static size_t filter_range(int* nums, const uint8_t* filter, size_t size) { size_t result_offset = 0; for (auto i = 0; i < size; i++) { if (filter[i]) { *(nums + result_offset) = *(nums + i); result_offset++; } } return result_offset; } For AMD's AVX512, the _mm512_mask_compress_epi instruction can be conveniently utilized to achieve this functionality. For ARM NEON, is it possible to employ SIMD instructions to maximize the acceleration of this function?

Read bmp header

16 April 2024 @ 7:42 am

here is my structure for header of BMP file #ifndef _BMP_H #define _BMP_H #include <stdint.h> #include <stdio.h> #include <stdbool.h> #define PADDING_CHAR "\0" /** * Structure contains information about the type, size, layout, dimensions * and color format of a BMP file. Size of structure is 54 bytes. */ struct bmp_header{ uint16_t type; // "BM" (0x42, 0x4D) uint32_t size; // file size uint16_t reserved1; // not used (0) uint16_t reserved2; // not used (0) uint32_t offset; // offset to image data (54B) uint32_t dib_size; // DIB header size (40B) uint32_t width; // width in pixels uint32_t height; // height in pixels uint16_t planes; // 1 uint16_t bpp; // bits per pixel (1/4/8/24) uint32_t compression; // compression type (0/1/2) 0 uint32_t image_size; // si

how to stick bottom of sidebars?

16 April 2024 @ 7:40 am

<div class="main-container"> <div class="container"> <div class="main__left_sidebar"><div class="main__wrap1">Левая боковая панель</div></div> <div class="main-content">Основной контент</div> <div class="main__right_sidebar"><div class="main__wrap3"> Правая боковая панель</div></div> </div> </div> While scrolling when it comes to end of sidebar i want to stick it. But when i use sidebarStick() it overflow footer because i used fixed. I am trying to use sticky. Howevere couldnt manage to do it if(scrollTop >= contentHeight - viewportHeight + sidebarTop) { sidebar_content.style.transform = `translateY(-${contentHeight - viewportHeight + sidebarTop + margin_bottom}px)`; sidebar_content.style.

JFrog Artifactory How To Block Download

16 April 2024 @ 7:23 am

I want to block JFrog Artifactory download at some situation,like name has "testmaven-0.0.1-SNAPSHOT.jar",so I write a groovy at artifactory/plugins/ ,like this: download { altResponse { request, responseRepoPath -> log.warn("altResponse") def fileName = responseRepoPath.getName() log.warn "altResponse status: ${status},fileName:${fileName}" if (fileName.contains("testmaven-0.0.1-SNAPSHOT.jar")){ log.warn "altResponse name contains: ${fileName}" status = 403 message = "can't download" log.warn "altResponse newstatus: ${status}" }else { log.warn("fileName not contains") } } } when I finish set this,I can't download:testmaven-0.0.1-SNAPSHOT.jar on UI , is fit what I want, but when I use terminal: curl -O http://xxxxxx/artifactory/cid-maven-local/te

Can Deeply Nested ng-container Elements Still Render Content Correctly in an Angular Layout Component?

16 April 2024 @ 7:23 am

In my Angular application, I've developed a layout component with two columns using CSS. Inside this layout component, I've defined placeholders for the aside and main content using ng-content. The data for the aside and main sections is fetched from the server. During the loading phase, a loading flag is set to indicate that the data is being fetched. Upon successful data retrieval, an isSuccess flag is returned from the observable along with the response. To simulate this behavior, I've created a mock data$ observable using the of operator from RxJS. This observable includes a delay to mimic the asynchronous data retrieval process. The layout isn't rendering the aside and main content properly. This issue arises because the ng-content directive expects the attributes aside and main directly, but they are deeply nested inside ng-container.

jsfiddle.net

VN:F [1.9.22_1171]
Rating: 9.0/10 (2 votes cast)

A playground for web developers, use it as an online editor for snippets built from HTML, CSS and JavaScript. The code can then be shared with others, embedded on a blog, etc.

SmashingMagazine.com

VN:F [1.9.22_1171]
Rating: 8.5/10 (6 votes cast)

Digital media magazine for designers and developers
Web design plus tips and tricks.

Sliding 3D Image Frames In CSS

12 April 2024 @ 6:00 pm

Creating 3D effects in CSS isn’t an entirely new concept, but typical approaches use additional elements in the markup and pseudo-elements in the styles to pull it off. Temani Afif applies 3D effects and sliding transitions to a single `` using clever CSS techniques that demonstrate advanced, modern styling practices.

Penpot’s CSS Grid Layout: Designing With Superpowers

11 April 2024 @ 8:00 am

Penpot helps designers and developers work better together by offering a free, open-source design tool based on open web standards. Today, let's explore Penpot’s latest feature, CSS Grid Layout. Penpot’s latest release is about efficiency and so much more. It gives designers superpowers and a better place at the table. Excited? Let’s take a look at it together.

Connecting With Users: Applying Principles Of Communication To UX Research

9 April 2024 @ 10:00 am

Victor Yocco reviews the components of the Transactional Model of communication, explaining how we might apply this framework to preparing, conducting, and analysing our UX research. You will understand how many UX research best practices align with the model and get an example of a tool for tracking alignment.

The Things Users Would Appreciate In Mobile Apps

5 April 2024 @ 12:00 pm

What can we do to make a mobile app better? What subsidiary features are worth providing for our users? I have some ideas. You might, too. So, let’s compare our notes. Without any prescriptions attached, here are seven features I believe can palpably improve a user’s experience with a mobile app.

Iconography In Design Systems: Easy Troubleshooting And Maintenance

3 April 2024 @ 8:00 am

Tatsiana Tarkan digs deep into iconography as part of a design system and shares some doable tips that will turn icon creation and maintenance into an enjoyable process.

Infinite-Scrolling Logos In Flat HTML And Pure CSS

2 April 2024 @ 12:00 pm

Remember the HTML `` element? It’s deprecated, so it’s not like you’re going to use it when you need some sort of horizontal auto-scrolling feature. That’s where CSS comes in because it has all the tools we need to pull it off. Silvestar Bistrović demonstrates a technique that makes it possible with a set of images and as little HTML as possible.

Colorful Blossoms And Rainy Days (April 2024 Wallpapers Edition)

31 March 2024 @ 8:00 am

Could there be a better way to welcome the new month than with a little inspiration boost? We might have one for you: desktop wallpapers created by the community for the community. Enjoy!

How Developers Can Strengthen Their Mental Health Amidst High-Pressure Projects

29 March 2024 @ 8:00 am

There’s no shortage of articles about the mental health of developers, ranging from personal accounts of harrowing work experiences to round-ups of advice on how to preserve healthy work habits. But what working situations trigger things like stress, anxiety, burnout, and depression? Victor Ayomipo shares his personal triggers and how he manages them.

The Future Of User Research: Expert Insights And Key Trends

27 March 2024 @ 1:00 pm

Based on responses from over 1,200 product professionals, Maze’s Future of User Research Report uncovers how product teams conduct research to inform decision-making and build successful products. Learn about the top three trends defining the user research industry in 2024 and beyond.

Setting And Persisting Color Scheme Preferences With CSS And A “Touch” Of JavaScript

25 March 2024 @ 12:00 pm

There are many ways to approach a “Dark Mode” feature that respects a user’s system color scheme preferences and allows for per-site customization. Henry Bley-Vroman walks through a new possibility that leans into cutting-edge CSS, with minimal JavaScript to support persisting the user’s color scheme preference across pages.

stackblitz.com

VN:F [1.9.22_1171]
Rating: 8.5/10 (2 votes cast)

Create, edit & deploy fullstack apps — in just one click. From Angular to React or even just HTML, JS and CSS.

firebase.com

VN:F [1.9.22_1171]
Rating: 8.5/10 (2 votes cast)

An on-line real-time database for your apps.

#FirebaserFriday: Frank van Puffelen

18 March 2022 @ 3:58 pm

Paulette McCroskey Social Media Manager, Advanced Systems Group, LLC

How Firebase Performance Monitoring optimized app startup time

9 March 2022 @ 4:58 pm

Viswanathan Munisamy Software Engineer

Using Machine Learning to optimize mobile game experiences

15 February 2022 @ 4:58 pm

Sachin Kotwani Senior Product Manager Elvis Sun Software Engineer Mobile app and game developers can use on-device machine learning in their apps to increase user engagement and grow revenue. We worked with game developer HalfBrick to train and implement a custom model that personalized the user's in-game experience based on the player's skill level and session details, resulting in increased interactions with

Accept Payments with Cloud Firestore and Google Pay

11 February 2022 @ 8:00 pm

Stephen McDonald Developer Relations Engineer, Google Pay Back in 2019 we launched Firebase Extensions - pre-packaged solutions that save you time by providing extended functionality to your Firebase apps, without the need to research, write, or debug code on your own. Since then, a ton of extensions have been added to the platform covering a wide range of features, from email triggers and text messaging, to image resizing, translation, and much more. Google Pay Firebase Extension We're now

Everything you need to know about Remote Config’s latest personalization feature

26 January 2022 @ 6:22 pm

Jon Mensing Product Manager An important part of turning your app into a business is to optimize your user experience to drive the bottom line results you want. A popular way to do this is through manual experimentation, which involves setting up A/B tests for different components of your app and finding the top performing variant. Now, you can save time and effort - and still maximize the objectives you want - with Remote Config’s latest personalization feature. Personalization harnesses the power of machine learning to automatically find the optimal e

What’s new at Firebase Summit 2021

10 November 2021 @ 5:31 pm

Kristen Richards Group Product Manager

Automate your pre-release testing with the App Distribution REST API

8 November 2021 @ 5:59 pm

Liat Berry Product Manager

Improving the Google Analytics dashboard in Firebase

5 November 2021 @ 6:03 pm

Sumit Chandel Developer Advocate If you’ve visited the Firebase console’s Analytics section recently, you might have noticed something new… an updated Analytics dashboard, a new Realtime view and a few other UI enhancements.

How to get better insight into push notification delivery

27 October 2021 @ 3:45 pm

Charlotte Liang Charlotte Liang Software Engineer

Pinpointing API performance issues with Custom URL Patterns

20 October 2021 @ 3:45 pm

Ibrahim Ulukaya Ibrahim Ulukaya Developer Advocate

bitbucket.org

VN:F [1.9.22_1171]
Rating: 8.4/10 (5 votes cast)

The alternative to Github, private and open git repositories.

Evolving Bitbucket Pipelines to unlock faster performance and larger builds

16 April 2024 @ 7:16 am

Bitbucket Pipelines has seen amazing adoption over recent years, with millions of developers and teams using it to build better software… The post Evolving Bitbucket Pipelines to unlock faster performance and larger builds appeared first on Bitbucket.

Generate Bitbucket Cloud pull request descriptions with Atlassian Intelligence 🎉

11 April 2024 @ 8:20 pm

We are thrilled to announce that AI-assisted pull request descriptions is now available for all Bitbucket Premium users. Crafting clear, concise… The post Generate Bitbucket Cloud pull request descriptions with Atlassian Intelligence 🎉 appeared first on Bitbucket.

Uplevel your DevOps automation with new Bitbucket Cloud extensibility

3 April 2024 @ 5:11 am

Today, modern software organizations’ requirements for DevOps tooling has become more sophisticated and bespoke. We hear from many customers that they… The post Uplevel your DevOps automation with new Bitbucket Cloud extensibility appeared first on Bitbucket.

Upcoming changes to pull requests and merge check configuration

3 April 2024 @ 5:00 am

As part of the graduation of custom merge checks from open-beta to general availability (GA) that is planned for late-April 2024,… The post Upcoming changes to pull requests and merge check configuration appeared first on Bitbucket.

Automatically assign code owners as pull request reviewers

28 March 2024 @ 6:52 pm

As your team and products expand, expertise in various areas of your code base may become distributed among different team members,… The post Automatically assign code owners as pull request reviewers appeared first on Bitbucket.

Forge for Bitbucket Cloud: Laying the foundation for infinite extensibility

16 February 2024 @ 2:49 am

We hosted a webinar on March 5th, 2024 to introduce you to what's possible with Forge, walk through some technical basics and answer… The post Forge for Bitbucket Cloud: Laying the foundation for infinite extensibility appeared first on Bitbucket.

Unified user management is generally available for new Bitbucket Cloud workspaces!

8 February 2024 @ 4:46 pm

We are excited to announce that unified user management is now generally available for new Bitbucket Cloud workspaces. Unified user management… The post Unified user management is generally available for new Bitbucket Cloud workspaces! appeared first on Bitbucket.

Custom Merge Checks in Bitbucket Cloud

20 December 2023 @ 3:49 am

Note:This feature is currently in open beta in order to gather feedback, and accelerate our path to maximum value for our… The post Custom Merge Checks in Bitbucket Cloud appeared first on Bitbucket.

Automatically scale runners in Bitbucket Pipelines

7 December 2023 @ 11:56 pm

We are pleased to announce that the Runners Autoscaler feature from Bitbucket Pipelines has transitioned from beta to general availability. This… The post Automatically scale runners in Bitbucket Pipelines appeared first on Bitbucket.

New in pull requests: Batched comments 🎉

15 November 2023 @ 3:00 am

Streamline pull request feedback in Bitbucket Cloud with batched comments. The post New in pull requests: Batched comments 🎉 appeared first on Bitbucket.

tympanus.net/codrops

VN:F [1.9.22_1171]
Rating: 8.3/10 (6 votes cast)

Useful resources and inspiration for creative minds (html, css, javascript)

Bridging Design and Code: The Power of Penpot’s CSS Grid Layout

15 April 2024 @ 10:17 am

Explore Penpot, the open-source platform enhancing design and development teamwork, now featuring the CSS Grid Layout for even more powerful and efficient project creation.

UI Interactions & Animations Roundup #42

14 April 2024 @ 9:33 am

A fresh motion design collection of the best shots from Dribbble to get your creativity flowing.

Collective #829

12 April 2024 @ 11:00 am

An Interactive Guide to CSS Container Queries * Repetition

Image Stack Entrance Animations

10 April 2024 @ 10:50 am

A circular stack intro for images with different animations.

Collective #828

9 April 2024 @ 11:00 am

Logo System * Design Systems Database * Introducing Babylon.js 7.0

Case Study: 84—24

8 April 2024 @ 9:53 am

A look into the making of 84—24. The tale of restoring an '80s timeless classic.

Inspirational Websites Roundup #58

6 April 2024 @ 11:29 am

Uncover a vibrant collection of websites, each showcasing stellar design, to energize your inspiration.

Collective #827

5 April 2024 @ 11:00 am

NanoGL Guide * Iterator helpers * magick.css * dropflow

On-Scroll Expanding Image Animation within Typography

2 April 2024 @ 11:45 am

An animation experiment where we expand an image within some typographic element on scroll.

Collective #826

2 April 2024 @ 11:00 am

Marking the Web’s 35th Birthday: An Open Letter * Turn images into contour maps * How to Start Google

vercel.com

VN:F [1.9.22_1171]
Rating: 8.3/10 (3 votes cast)

Deploy your app with now.sh. Free CLI-based deployments.

heartinternet.co.uk

VN:F [1.9.22_1171]
Rating: 8.3/10 (3 votes cast)

Hosting packages for an initial web presence

Black Friday and Cyber Monday sale now on at Heart Internet

22 November 2022 @ 3:31 pm

You can now get up to 33% off the price of a cPanel-managed Web Hosting plan at Heart Internet.

Are your website fonts sending the right message?

3 November 2022 @ 10:18 am

Did you know that the fonts you use on your website can impact the way your customers perceive and interact with your brand?

10 of the best WooCommerce plugins

27 October 2022 @ 10:53 am

Including options for optimising your cart, boosting customer loyalty, and selling tickets.

9 creative alternatives to .com and .co.uk domains

5 October 2022 @ 2:37 pm

Discover the appeal of .ninja, .coffee, .guru and more - all available in our domain name sale.

Save up to 43% on WordPress Hosting in our latest sale

20 September 2022 @ 3:23 pm

We’ve just slashed the price of WordPress Hosting at Heart Internet.

What to do once you’ve bought a domain

7 September 2022 @ 12:48 pm

A guide to what to do next once you've chosen your perfect domain name.

Empowering quotes and motivational tips for entrepreneurs

25 August 2022 @ 8:33 am

Including quotes from Amelia Earhart and Barack Obama, to give you a little pick me up.

5 reasons we love cPanel

10 August 2022 @ 7:09 am

When browsing through hosting packages, you’ll often come across the word cPanel. But what exactly does this word mean and what are the benefits of buying a hosting package with cPanel included?

Four ways domains can help you protect your brand identity online

2 August 2022 @ 9:55 am

Did you know that domains can be so much more than a mere address or waymark? In this blog, we look at how they can be a powerful tool for online brand protection.

It’s World Wide Web Day so here are 5 reasons to get your business online

1 August 2022 @ 9:19 am

Celebrating World Wide Web Day by looking at why it's never been more important to have an online presence.

github.com

VN:F [1.9.22_1171]
Rating: 8.2/10 (5 votes cast)

GitHub is the best way to collaborate with others. Fork, send pull requests and manage all your public and private git repositories.

All In Africa: New cohort now open!

11 April 2024 @ 4:13 pm

As we’re opening up the doors to our final class of this programmatic year, we’re also looking back at our recent graduates and the partners that helped make them a success. The post All In Africa: New cohort now open! appeared first on The GitHub Blog.

Helping policymakers weigh the benefits of open source AI

10 April 2024 @ 10:53 pm

GitHub enables developer collaboration on innovative software projects, and we’re committed to ensuring policymakers understand developer needs when crafting AI regulation. The post Helping policymakers weigh the benefits of open source AI appeared first on The GitHub Blog.

GitHub Availability Report: March 2024

10 April 2024 @ 8:15 pm

In March, we experienced two incidents that resulted in degraded performance across GitHub services. The post GitHub Availability Report: March 2024 appeared first on The GitHub Blog.

4 ways GitHub engineers use GitHub Copilot

9 April 2024 @ 7:00 pm

GitHub Copilot increases efficiency for our engineers by allowing us to automate repetitive tasks, stay focused, and more. The post 4 ways GitHub engineers use GitHub Copilot appeared first on The GitHub Blog.

Explore the seasons of software development with four full years of data

9 April 2024 @ 3:00 pm

Discover the latest trends and insights on public software development activity on GitHub with the release of Q4 2023 data for the Innovation Graph. The post Explore the seasons of software development with four full years of data appeared first on The GitHub Blog.

What is retrieval-augmented generation, and what does it do for generative AI?

4 April 2024 @ 4:00 pm

Here’s how retrieval-augmented generation, or RAG, uses a variety of data sources to keep AI models fresh with up-to-date information and organizational knowledge. The post What is retrieval-augmented generation, and what does it do for generative AI? appeared first on The GitHub Blog.

Security research without ever leaving GitHub: From code scanning to CVE via Codespaces and private vulnerability reporting

3 April 2024 @ 2:26 pm

This blog post is an in-depth walkthrough on how we perform security research leveraging GitHub features, including code scanning, CodeQL, and Codespaces. The post Security research without ever leaving GitHub: From code scanning to CVE via Codespaces and private vulnerability reporting appeared first on The GitHub Blog.

Bringing enterprise-level security and even more power to GitHub-hosted runners

2 April 2024 @ 4:35 pm

GitHub-hosted runners now support Azure private networking. Plus, we've added 2 vCPU Linux, 4 vCPU Windows, macOS L, macOS XL, and GPU hosted runners to our runner fleet. The post Bringing enterprise-level security and even more power to GitHub-hosted runners appeared first on The GitHub Blog.

Empowering women through open source

28 March 2024 @ 6:42 pm

A discussion about how tech is aiding organizations fighting for gender equality, what it means to be a woman in tech and the world today, and advice on how we all move forward. The post Empowering women through open source appeared first on The GitHub Blog.

Game Bytes · March 2024

27 March 2024 @ 11:04 pm

Game Bytes is our monthly series taking a peek at the world of gamedev on GitHub—featuring game engine updates, game jam details, open source games, mods, maps, and more. Game on! The post Game Bytes · March 2024 appeared first on The GitHub Blog.