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.

About PHP for backend

19 March 2024 @ 1:45 am

Is it good to use PHP for the backend? I'm trying to build a website and I've used PHP for the backend and it's not at all working properly I'm stuck in making the forgot-password page and It's making my life hell even I'm getting depressed with this behavior of PHP and whenever I try to insert some HTML code in PHP code it misbehaves and I'm using an API for sending mail and It's not exactly working whenever I click on submit button it doesn't send mail it directly goes to action page. Please correct me if my code is wrong and if this is the drawback of PHP then please do suggest me some backend languages.Link to code

Add new module with API Pagination to exiting API with query parameter

19 March 2024 @ 1:44 am

I have problem, I have existing code to get data from API with Query Params like no_nspn or postal_code, with the same url : {{url}}/office-member?no_NSPN= or {{url}}/office?postal-code= so my code doing well like this: def __etl(name, uniques=None): """ ETL operation Do ETL on backbone dapodik web service data """ def func(param): assert "period_id" in param N_TRIES_LIMIT = 2 TOTAL_CALL = 0 TOTAL_ROW = 0 engine = db.get_engine("dwh") connection = engine.connect() endpoint = name.replace('_', '-') table_name = name.replace('-', '_') table_schema = 'dwh' # item fetcher fetch_items = [] # fetch using postal_code etl office data if name == "office": postal_code = list(pd.read_sql_query(""" SELECT

Unity problem that wont let me start the game

19 March 2024 @ 1:44 am

JSON parse error: Missing a name for object member. (Assets/Photon/PhotonUnityNetworking/Code/Editor/PhotonUnityNetworking.Editor.asmdef) ive been trying different things for so long but its not working JSON parse error: Missing a name for object member. (Assets/Photon/PhotonUnityNetworking/Code/Editor/PhotonUnityNetworking.Editor.asmdef)

Debug.Log not being written to the player.log after the beggining of a Build play time

19 March 2024 @ 1:44 am

I am using Unity to develop my game and I am running in some problems with debugging my builds. I have been trying to find the reason why my Debug.log commands don't seem to be written on my player.log file during my builds. In my editor it works fine, but in the build it runs until a certain point and then it does not log anything else. I am trying to solve this problem for sometime, since I am having some other problems that accour only in my builds and not in the editor and I was trying to debug them. It seems like anything in the Awake method at the first frame of the game is Debuged correctly accorint to my test, anything past the first frame does not get logged. I am running a little bit low on hope for this issue, since I made a post on Unity Forums in october 2023 and dind't got a single responce. I just let this slip and solve other problems in the game, but now I need to solve this no matter what. Any help or insight will be appreciated. Here is

CSVHelper: dynamically write to CSV

19 March 2024 @ 1:43 am

Let's say I have the following interface: public interface IStateInformation { public int TaskId { get; set; } public string Name { get; set; } } and the following class implementing this interface: public class ExternalStateInformation : IStateInformation { public int TaskId { get; set; } public string Name { get; set; } public string External { get; set; } } Now I want to write the following class to a CSV: public class SwitchingData { public string DateTime { get; set; } public int EpisodeId { get; set; } public IStateInformation SourceState { get; set; } public IStateInformation TargetState { get; set; } } As you can see, this class includes IStateInformation objects. When I try to write a record to a CSV file, only the propert

Astra Theme Mobile Menu Pushes Content Downward

19 March 2024 @ 1:42 am

When I tap on the the menu on a mobile device (phone), the menu pushes the content downward. How would I get this so that tapping on the menu just drops down and overlaps the content rather than pushing it downward?

Google chrome's caching behaviours for css sub-resources fetched with `url()`

19 March 2024 @ 1:42 am

CSS looks ordinarily: background-image: url(/path/to.png); Caching on the server side is set to be cache-control: no-cache. All resources are cached as expected (in cache, must revalidate), but sub-resources referred by url(...) in css stylesheets google chrome caches extremely agressively: the browser doesn't revalidate them. That's how the dev tools look like for what I'm talking about: enter image description here Firefox works as expected: every resource is revalidated (and http 304 is returned).

Issue with BERT Preprocessor model in TF2 and python

19 March 2024 @ 1:42 am

I am trying to use BERT to do a text classification project. However I keep running into this error ` ValueError Traceback (most recent call last) Cell In[37], line 4 2 text_input = tf.keras.Input(shape=(), dtype=tf.string, name='text') 3 bert_preprocess = hub.KerasLayer(preprocess_url, name='preprocessing') ----> 4 preprocessed_text = bert_preprocess(text_input) 5 bert_encoder = hub.KerasLayer(encoder_url, 6 trainable=True, 7 name='BERT_encoder') 8 outputs = bert_encoder(preprocessed_text) ValueError: Exception encountered when calling layer 'preprocessing' (type KerasLayer). A KerasTensor is symbolic: it's a placeholder for a shape an a dtype. It doesn't have any actual numerical value. You cannot convert it to a NumPy array. Call arguments received by layer 'preprocessing' (type KerasLayer): • inputs=<KerasTensor shape=(None,),

Clients' Policy Violations Risk for App Store & Google Play

19 March 2024 @ 1:41 am

I have a developer account and have some apps. I'm considering working as a freelancer now. I could have more than 10 clients in a year. If I upload my clients' apps to their developer accounts using my MacBook, and if one of them violate policies in their other apps and their developer accounts are suspended, will my personal developer account be affected negatively? (Because my macbook will be used for app submission, May Apple or Google relate my personal developer account with them?)

How to propagate module augmentation of custom MUI theme inside a component library monorepo?

19 March 2024 @ 1:40 am

In my company, we're building a monorepo of component libraries (no app). In our core package, we're exporting a custom MUI theme with custom brand options (using module augmentation, as per the docs), intended to be used in consumer apps to normalize the company branding and styles all throughout our applications. In another package of the monorepo (let's call it foo), we have a library that exports several components that uses MUI styled components internally, which should make use of our custom MUI theme, since that's the intended way for them to be used. However, because foo package itself doesn't have a direct dependency to the core package, and because there's no app or ThemeProvider involved here, typescript isn't able to guess the custom theme structure we are exporting in the

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.

Event Calendars For Web Made Easy With These Commercial Options

12 March 2024 @ 12:00 pm

Collection of top-notch calendar components for seamless event scheduling. Whether you prefer ready-to-use setups or enjoy tweaking code for a tailored experience, these calendars have you covered.

Success At Scale: Last Chance For Pre-Sale Price

8 March 2024 @ 4:00 pm

Our next book, “Success at Scale” is finally at the printer, which means we’ll be shipping books soon. It’s also your last chance to get the book at the presale price. Get your copy and save now!

Modern CSS Tooltips And Speech Bubbles (Part 2)

8 March 2024 @ 12:00 pm

In Part 1 of this series, Temani Afif explored different CSS techniques to create tooltip shapes. The main challenge was to rely on a single element and create optimized code that could easily be controlled using CSS variables to update the size, shape, and position of the tail. In this second part, you are going explore more shapes.

The End Of My Gatsby Journey

6 March 2024 @ 8:00 am

[“Gatsby headaches”](https://www.smashingmagazine.com/2023/06/gatsby-headaches-i18n-part-1/) are over. Juan Diego Rodríguez reflects on his decision to stop using Gatsby as his go-to framework. Through a detailed examination of its strengths and weaknesses, he provides valuable insights and alternative options for developers navigating their tooling choices.

Modern CSS Tooltips And Speech Bubbles (Part 1)

1 March 2024 @ 12:00 pm

Tooltips are a very common pattern used in CSS for years. There are a lot of ways to approach tooltips in CSS, though some evoke headaches with all the magic numbers they require. In this article, Temani Afif presents modern techniques to create tooltips with the smallest amount of markup and the greatest amount of flexibility.

Waiting For Spring (March 2024 Wallpapers Edition)

29 February 2024 @ 10:00 am

Do you need a little inspiration boost? Well, then our new batch of desktop wallpapers is for you. Designed by artists and designers from across the globe, they come in versions with and without a calendar for March 2024. Enjoy!

Reporting Core Web Vitals With The Performance API

27 February 2024 @ 12:00 pm

The Performance API is a set of standards for measuring and evaluating performance metrics with JavaScript. This article demonstrates how to use the Performance API to generate performance metrics directly in the DOM to create your own reporting.

A Web Designer’s Accessibility Advocacy Toolkit

26 February 2024 @ 6:00 pm

Digital designer Yichan Wang has put together this collection of strategies and selling points to help you encourage and advocate for accessibility in your place of work, including useful scripts you can use as starting points.

Vanilla JavaScript, Libraries, And The Quest For Stateful DOM Rendering

22 February 2024 @ 6:00 pm

It’s well-established that the web faces wide-ranging usability and performance issues, from user-hostile UI patterns and twisted search results to sluggish performance and battery-draining bloat. In this article, Frederik examines one small-but-significant aspect where developers take the reins: Painting pixels on the screen.

A Practical Guide To Designing For Colorblind People

20 February 2024 @ 12:00 pm

Color accessibility is more than just ticking boxes. Even with good contrast, some color palettes can make interfaces challenging for users. Here are some practical guidelines to ensure more inclusive design for colorblind people. An upcoming part of Smart Interface Design Patterns.

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 Whats new at Firebase Summit Here at Firebase, we believe developers play an instrumental role in helping people learn, live better, go places, and grow businesses. That’s why we’r

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

8 November 2021 @ 5:59 pm

Liat Berry Product Manager Lee Kellogg Software Engineer Getting feedback on your app's releases before they r

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 Peter Friese Peter Friese Developer Advocate

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.

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.

Plan your move: Support for Bitbucket Server ends on Feb 15, 2024

10 November 2023 @ 6:53 pm

In 2020, Atlassian announced that support for our server products, including Bitbucket Server, would end on Feb. 15, 2024. Since the… The post Plan your move: Support for Bitbucket Server ends on Feb 15, 2024 appeared first on Bitbucket.

Introducing enhanced webhook security

25 October 2023 @ 2:17 am

We are excited to announce webhook secrets, a powerful new feature that will provide an extra layer of security for your… The post Introducing enhanced webhook security appeared first on Bitbucket.

Atlassian Intelligence features for Bitbucket Cloud are now in beta!

6 October 2023 @ 10:58 pm

We're excited to announce that Atlassian Intelligence features are now in beta and are available to all workspace admins to activate… The post Atlassian Intelligence features for Bitbucket Cloud are now in beta! appeared first on Bitbucket.

Stay focused by marking PR files as reviewed

6 October 2023 @ 8:12 pm

When you’re reviewing a pull request, it’s helpful to distinguish between files that you’ve already looked at, and ones that still… The post Stay focused by marking PR files as reviewed appeared first on Bitbucket.

Announcing the EAP of Forge in Bitbucket Cloud

28 September 2023 @ 1:45 am

We're extremely excited to be kicking off the next chapter in the Bitbucket Cloud story. We have a range of exciting… The post Announcing the EAP of Forge in Bitbucket Cloud 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)

Inspirational Websites Roundup #57

15 March 2024 @ 2:44 pm

Discover a fresh collection of websites, each chosen for their outstanding design, to spark your inspiration.

Collective #821

15 March 2024 @ 12:00 pm

Puter * Reward your future customers with a game * Twitter creative list

Grid Item Reveal Animation on Hover

13 March 2024 @ 3:50 pm

A recreation of the grid item reveal animation on hover as seen on the website of Metalab.

Collective #820

12 March 2024 @ 12:00 pm

UVCanvas * Bugs I've filed on browsers * Nekoweb.org

Collective #819

8 March 2024 @ 12:00 pm

Home Screen Advantage * AI and Design Systems * CSS Foundations: What is IACVT?

On-Scroll 3D Stack Motion Effect

6 March 2024 @ 1:02 pm

An experimental 3D card stack animation on scroll.

Collective #818

5 March 2024 @ 12:00 pm

What is Utility-First CSS? * Hyperdiv * htmz * 404 Creatives

Collective #817

1 March 2024 @ 12:00 pm

What is Utility-First CSS? * Hyperdiv * htmz * 404 Creatives

Exploring 3D Effects with 2D Optical Illusions

28 February 2024 @ 11:47 am

A brief tutorial that guides you through creating a 3D visual effect using a 2D optical illusion with CSS and JavaScript.

Collective #816

27 February 2024 @ 12:00 pm

Rotten Apple * Specificity battle * PicToBrush * gpu-curtains

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.

Gaining kernel code execution on an MTE-enabled Pixel 8

18 March 2024 @ 3:00 pm

In this post, I’ll look at CVE-2023-6241, a vulnerability in the Arm Mali GPU that allows a malicious app to gain arbitrary kernel code execution and root on an Android phone. I’ll show how this vulnerability can be exploited even when Memory Tagging Extension (MTE), a powerful mitigation, is enabled on the device. The post Gaining kernel code execution on an MTE-enabled Pixel 8 appeared first on The GitHub Blog.

GitHub Availability Report: February 2024

13 March 2024 @ 6:00 pm

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

Exploring an increase in circumvention claims in our transparency data

7 March 2024 @ 6:00 pm

Our full year of 2023 transparency reporting data is now available and we’re taking a deep dive into how a form change caused an abrupt increase in circumvention claims. The post Exploring an increase in circumvention claims in our transparency data appeared first on The GitHub Blog.

Hard and soft skills for developers coding in the age of AI

7 March 2024 @ 5:00 pm

While AI revolutionizes software development, it still relies on developers to pilot its use. In this blog, we’ll cover the skills that developers need to have for navigating this new AI-powered coding frontier. The post Hard and soft skills for developers coding in the age of AI appeared first on The GitHub Blog.

How GitHub uses merge queue to ship hundreds of changes every day

6 March 2024 @ 4:43 pm

Here's how merge queue transformed the way GitHub deploys changes to production at scale, so you can do the same for your organization. The post How GitHub uses merge queue to ship hundreds of changes every day appeared first on The GitHub Blog.

GitHub Enterprise Server 3.12 is now generally available

6 March 2024 @ 4:43 pm

With this version, customers can choose how to best scale their security strategy, gain more control over deployments, and so much more. The post GitHub Enterprise Server 3.12 is now generally available appeared first on The GitHub Blog.

Keeping repository maintainer information accurate

4 March 2024 @ 9:07 pm

Discover how keeping repository maintainer information accurate through CODEOWNERS files and automating maintenance with tools like cleanowners fosters efficient collaboration and sustainable software projects. The post Keeping repository maintainer information accurate appeared first on The GitHub Blog.

GitHub Copilot Learning Pathway: Accelerate your business with AI

4 March 2024 @ 5:34 pm

Learn what GitHub Copilot can help your business achieve in this expert-guided GitHub Learning Pathway, featuring insights from tech leaders at top organizations. The post GitHub Copilot Learning Pathway: Accelerate your business with AI appeared first on The GitHub Blog.

Game Bytes · February 2024

29 February 2024 @ 7:30 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 · February 2024 appeared first on The GitHub Blog.

Meet Kayla: A college student and open source ambassador

29 February 2024 @ 6:00 pm

From learner to mentor, Kayla, an All In for Students ambassador, has become an open source leader on her campus. The post Meet Kayla: A college student and open source ambassador appeared first on The GitHub Blog.