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.

How to get the distribution name of an imported package in Python3.10+

18 May 2024 @ 3:47 am

I have multiple distributions that each provide a Python package of the same name (because they have the same API and same functionality, just different implementations). I want to be able to report which one is currently installed and in use along with its version. importlib.metadata seems to have the functionality I want, but from my testing it appears to just do a case and punctuation insensitive search on the distribution name, which works in the most of the time case where they are the same, but which can never be able to distinguish two distributions sharing the same absolute import path. I have also glanced at the implementation which shows an awful lot of abstraction, but not any other currently implemented options. Sigh. It's enough to make one want to go back to writing shell scripts. Here is a concrete example using common packages rather than my own. importlib can report the version of wheel because its absolute import path is the same as the distribu

How can I correctly set up a custom WooCommerce checkout field that can be edited by both the user and admin?

18 May 2024 @ 3:46 am

I’m new to PHP and WooCommerce customization, and I’ve attempted to implement a custom checkout field for collecting a Tax Exempt Number. While I have managed to create and display the field, I'm not sure if my implementation is complete. I'd appreciate any input or guidance on my setup and I apologize if I haven't posted this correctly. I've reviewed the following during my research: BusinessBloomer: WooCommerce: How to Add a Custom Checkout Field WooCommerce Customize Checkout Fields Stack Overflow: Load user custom data on WooCommerce admin new order custom fields Stack Overflow:

Web-Scraping a DataFrame but Only 500 Rows

18 May 2024 @ 3:45 am

My aim is to web-scrape the table on https://data.eastmoney.com/executive/list.html and save it to an excel. Please note that it has 2945 pages and I want to put all of them into one excel sheet.2024.5.18 A The easiest way of doing it is to see where the data is pulled. So I F12 the webpage to get the source code and saw a data center <datacenter-web.eastmoney.com> 2024.5.18 B So I use that API within the red box above to get the data. Here's my code import pandas as pd import requests df = pd.DataFrame( requests.get('https://datacenter-web.eastmoney.com/api/data/v1/get? reportName=RPT_EXECUTIVE_HO

@firebase/firestore: Firestore (10.8.0): Could not reach Cloud Firestore backend. Connection failed 1 times

18 May 2024 @ 3:44 am

I keep getting this error message while I try to run my ionic app on my android devices. Most of the question avaiable with same message has permission denied but in my case its [code=unavailable] @firebase/firestore: Firestore (10.8.0): Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=unavailable]: The operation could not be completed This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend. I really have fast internet connection and not sure why this appear. There were issue with ios as well but I have manage to fixed with some condition. But for android its not working with any of the condition. I am using Ionic Angular 17 with firebase. my app.module.ts import { NgModule } from '@angular/core'; impo

How to use vuetify readonly prop but still allow selection menu

18 May 2024 @ 3:44 am

I have a grid of v-autocomplete components which have a multiple attribute added. However, to try and keep the formating clean I shorten the length of whats shown by using the selection slot as shown: <v-autocomplete v-model="programModel" multiple density="compact" variant="outlined" hide-details color="primary" flat rounded label="Programs" :items="programData" item-title="program_name" return-object :rules="arrayRequiredRule" :readonly="!editableTopSectionModel" > <template v-slot:selection="{ item, index }"> <span v-if="!index">{{ item.title }}</span> <span class="grey--text caption" v-else-if="index === 1"> &nbsp;(+ {{programModel!.length - 1}}

Trying to upload pdf files in Jenkins workspace to nexus using curl

18 May 2024 @ 3:42 am

i am running a DAST scan using checkmarx in Jenkins pipeline post build action, the scan result is in the Jenkins workspace pdf format, i saved the workspace as a variable and copied *.pdf file to a folder i created, each scan has a date and timestamp on the scan result. I want to copy only the pdf file inside the folder i created to Nexus repository, but my curl command copies the folder nexus instead of the pdf file. post { always { // Upload checkmarxs scan result to nexus repository script { def workspace="/var/lib/jenkins/jobs/Sec/checkmarxscan/workspace/Checkmarx/Scan/CxSASTReport_18_05_2024-02_04_29.pdf" def pdfDir = "pdf_files" sh "mkdir -p ${pdfDir}" sh "cp ${workspace}*.pdf ${pdfDir}/" def loadTXT = '' def buildNumber = env.BUILD_NUMBER def nexusUrl = 'https://nexus.com' def UploadUrl = "${nexusUrl}/repository/Sec/Sc

SQLite - set only the correct returned result from a joined table

18 May 2024 @ 3:39 am

Quite new to all of this.. I have two tables (names simplified) PersonTable PersonID NamePrefix NameSuffix 1 Null Null 2 Null Null 3 Sir Nul 4 Null Null FactTable FactType OwnerID FactDetail 24 3 (irrelevant) 42 2 Capt. 42 3 Hon. 36 3 Lord of Somewhere Clearly I need to run 2 separate UPDATE queries One to update the NamePrefix where FactType = 42, and One to upda

NDIS packet monitoring using Volatility (IEEE 802.1x protocol)

18 May 2024 @ 3:38 am

Is it possible to parse IEEE 802.1x from Volatility, an advanced memory forensics framework in Python? Here's the link to the GitHub page: "https://github.com/volatilityfoundation/volatility?tab=readme-ov-file". And from there, how do I exactly catch this OID: OID_802_11_PMKID where I can cast _BSSID_INFO structs and get all MAC address and PMKID pairs? Here's the link to OID_802_11_PMKID: "https://learn.microsoft.com/en-us/previous-versions/windows/hardware/network/ff559321(v=vs.85)". I tried using driver_ndis.c from different driver implementations I found on the internet but I found many inconsistencies and incompatibilities. I'm using using Windows 10 and is it still possible to make WPA supplicants work so that I can easily set wireless configurations such as dhcp, dns, ssid and etc (.conf) and sniff or inject association, authentication, disassociation, deauthentication frames and etc.

Error On Unused Addition With Random Attached

18 May 2024 @ 3:35 am

So today I was doing a Python test which envolved encryption, I did some debugging. None of it worked though. Can you guys help me? This is the whole piece: import random LONEK = input("Type Your Words Here ") #Letter Or Number Encryption Key LONEKL = len(LONEK) #Letter Or Number Encryption Key Length for REAPEAT in range(LONEKL): if 'A' in LONEK: A = random.randint(1, 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999) if 'a' in LONEK: a = random.randint(1, 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999) if 'B' in LONEK: B = random.randint(1, 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999) if 'b' in LONEK: b = random.randint(1, 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999) if 'C' in LONEK: C = ra

Execution failed for task ':app:kaptDebugKotlin' .Getting this error while working with setup of Dagger 2

18 May 2024 @ 3:35 am

Execution failed for task ':app:kaptDebugKotlin'. > A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction > java.lang.reflect.InvocationTargetException (no error message) I am getting this issue while setting Building the project while working with setup of Dagger 2 My Project Setup Dependencies in build.gradle.kts: dependencies { implementation("com.google.dagger:dagger:2.40.5") kapt("com.google.dagger:dagger-compiler:2.40.5") implementation("com.google.dagger:dagger-android:2.40.5") implementation("com.google.dagger:dagger-android-support:2.40.5") kapt("com.google.dagger:dagger-android-processor:2.40.5") } Dagger Setup: class

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.

Building A User Segmentation Matrix To Foster Cross-Org Alignment

17 May 2024 @ 5:00 pm

Is there such a thing as harmony between designers and developers in the workplace, and if so, how can it be achieved? In this article, Chris Day explores the challenges of effective collaboration, outlines the key factors at play, and (hopefully!) empowers you to find the right solutions to help you and your team deliver to their full potential.

Beyond CSS Media Queries

16 May 2024 @ 3:00 pm

Juan Diego Rodriguez explains why media queries still occupy a vital role in responsive layouts; only they are now one tool in a larger toolbox with modern techniques that are best when used together.

Transforming The Relationship Between Designers And Developers

15 May 2024 @ 10:00 am

Is there such a thing as harmony between designers and developers in the workplace, and if so, how can it be achieved? In this article, Chris Day explores the challenges of effective collaboration, outlines the key factors at play, and (hopefully!) empowers you to find the right solutions to help you and your team deliver to their full potential.

Why Designers Aren’t Understood

14 May 2024 @ 12:00 pm

How do we conduct UX research when there is no or only limited access to users? Here are some workarounds to run UX research or make a strong case for it. An upcoming part of [Smart Interface Design Patterns](https://smart-interface-design-patterns.com).

The Times You Need A Custom @property Instead Of A CSS Variable

13 May 2024 @ 8:00 am

Preethi Sam walks through an example that demonstrates where custom properties are more suitable than variables while showcasing the greater freedom and flexibility that custom properties provide for designing complex, refined animations.

The Modern Guide For Making CSS Shapes

10 May 2024 @ 1:00 pm

In this comprehensive guide, Temani Afif explores different techniques for creating common shapes with the smallest and most flexible code possible.

The Forensics Of React Server Components (RSCs)

9 May 2024 @ 1:00 pm

React Server Components (RSCs) combine the best of client-side rendering, and author Lazar Nikolov thoroughly examines how we got here with a deep look at the impact that RSCs have on the page load timeline.

How To Run UX Research Without Access To Users

7 May 2024 @ 12:00 pm

How do we conduct UX research when there is no or only limited access to users? Here are some workarounds to run UX research or make a strong case for it. An upcoming part of Smart Interface Design Patterns.

How To Harness Mouse Interaction Data For Practical Machine Learning Solutions

6 May 2024 @ 10:00 am

In this article, Eduard Kuric discusses mouse interaction data, what kind of magic can be done with it, and some of the hidden pitfalls to watch out for so you get a head start incorporating them in your solutions.

Combining CSS :has() And HTML &lt;select&gt; For Greater Conditional Styling

2 May 2024 @ 10:00 am

Amit Sheen demonstrates using `:has()` to apply styles conditionally when a certain `` in a `` element is chosen by the user and how we gain even more conditional styling capabilities when chaining `:has()` with other pseudo-classes, such as `:not()` — no JavaScript necessary.

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.

Introducing 🥁 A new Bitbucket pull request experience

13 May 2024 @ 8:08 pm

Here at Bitbucket Cloud, we are focused on helping you and your teams have the best possible experience for code review.… The post Introducing 🥁 A new Bitbucket pull request experience appeared first on Bitbucket.

Bring more context to your code with Compass

9 May 2024 @ 11:17 pm

The context challenge Understanding and interacting with code repositories can be frustrating: you often don't get all of the information you… The post Bring more context to your code with Compass appeared first on Bitbucket.

Custom merge checks are now generally available

23 April 2024 @ 5:28 am

We're excited to announce the general availability (GA) of custom merge checks in Bitbucket Cloud. This new capability has seen amazing… The post Custom merge checks are now generally available appeared first on Bitbucket.

Introducing Dynamic Pipelines: A new standard in CI/CD flexibility

23 April 2024 @ 5:05 am

Bitbucket cloud is on a mission to become the world’s most extensible cloud SCM and CI/CD product, and we're thrilled to… The post Introducing Dynamic Pipelines: A new standard in CI/CD flexibility appeared first on Bitbucket.

Cloud Migration Trials are available for Bitbucket Cloud!

22 April 2024 @ 5:56 pm

We are excited to announce that cloud migration trials (CMTs) are now generally available for new Bitbucket Cloud workspaces. Cloud migration… The post Cloud Migration Trials are available for Bitbucket Cloud! appeared first on Bitbucket.

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.

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)

Collective #839

17 May 2024 @ 11:00 am

Time-based CSS Animations * Web Components from early 2024 * Fractal Glass Generator

UI Interactions & Animations Roundup #43

15 May 2024 @ 10:53 am

Explore our latest motion design collection featuring the best shots from Dribbble to get your creativity flowing.

Collective #838

14 May 2024 @ 11:00 am

TypeSpec * Composability in design systems * Small laboratory of fine UI

Case Study: Vendredi Society

14 May 2024 @ 10:40 am

Being visible is just no longer enough. It’s all about leveraging attention. And then moving forward together. Synced.

How to Easily Create Lottie Animations With SVGator (Unlimited Free Exports)

13 May 2024 @ 2:31 pm

SVGator introduces Lottie file support, offering an easy-to-use platform for creating and exporting Lottie animations for free. Learn how to create, edit, and benefit from Lottie animations in this guide.

Design Finds: Creative Slideshows

13 May 2024 @ 12:56 pm

A small collection of creative slideshow designs and animations.

Collective #837

10 May 2024 @ 11:00 am

An alternative proposal for CSS masonry * Printing music with CSS Grid * CSS inheritance

A Selection of Fonts That Future-Proof Your Web Design

10 May 2024 @ 10:04 am

A small selection of fonts ideal for keeping your web design timeless and forward-looking.

Exploring a 3D Text Distortion Effect With React Three Fiber

8 May 2024 @ 2:20 pm

A quick tutorial on how to create a beautiful distorted text ring effect in React Three Fiber.

Collective #836

7 May 2024 @ 11:00 am

Cool queries * Endless Tools * Tiny World Map * Emission and bloom

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.

Scaling accessibility within GitHub and beyond

16 May 2024 @ 4:00 pm

GitHub celebrates Global Accessibility Awareness Day by launching another installment of the Coding Accessibility series and sharing how we scale accessibility within GitHub and beyond. The post Scaling accessibility within GitHub and beyond appeared first on The GitHub Blog.

Securing Git: Addressing 5 new vulnerabilities

14 May 2024 @ 5:07 pm

Git is releasing several new versions to address five CVEs. Upgrading to the latest Git version is essential to protect against these vulnerabilities. The post Securing Git: Addressing 5 new vulnerabilities appeared first on The GitHub Blog.

Research: Quantifying GitHub Copilot’s impact in the enterprise with Accenture

13 May 2024 @ 6:27 pm

We conducted research with developers at Accenture to understand GitHub Copilot’s real-world impact in enterprise organizations. The post Research: Quantifying GitHub Copilot’s impact in the enterprise with Accenture appeared first on The GitHub Blog.

Say hello to the SPORTech collection

13 May 2024 @ 5:01 pm

Whether you’re a rookie coder or a seasoned pro, our new SPORTech shop collection is tailored for you. And here’s the kicker: we’re offering free delivery worldwide over $20 until May 20! The post Say hello to the SPORTech collection appeared first on The GitHub Blog.

GitHub Availability Report: April 2024

10 May 2024 @ 5:13 pm

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

How AI enhances static application security testing (SAST)

9 May 2024 @ 4:00 pm

Here’s how SAST tools combine generative AI with code scanning to help you deliver features faster and keep vulnerabilities out of code. The post How AI enhances static application security testing (SAST) appeared first on The GitHub Blog.

Just launched: Second cohort of the DPG Open Source Community Manager Program!

8 May 2024 @ 4:07 pm

Are you looking to have a positive impact in open source development? This program may be for you! Apply by May 30 to join. The post Just launched: Second cohort of the DPG Open Source Community Manager Program! appeared first on The GitHub Blog.

How we’re building more inclusive and accessible components at GitHub

7 May 2024 @ 5:00 pm

We've made improvements to the way users of assistive technology can interact with and navigate lists of issues and pull requests and tables across GitHub.com. The post How we’re building more inclusive and accessible components at GitHub appeared first on The GitHub Blog.

GitHub Copilot Chat in GitHub Mobile is now generally available

7 May 2024 @ 4:00 pm

With GitHub Copilot Chat in GitHub Mobile, developers can collaborate, ask coding questions, and gain insights into both public and private repositories anywhere, anytime–all in natural language for users on all GitHub Copilot plans. The post GitHub Copilot Chat in GitHub Mobile is now generally available appeared first on The GitHub Blog.

Create a home for your community with GitHub Discussions

6 May 2024 @ 6:43 pm

GitHub Community-in-a-box provides the tooling, resources, and knowledge you need to build internal communities of learning at scale with GitHub Discussions. The post Create a home for your community with GitHub Discussions appeared first on The GitHub Blog.