teleren/devto huggingface dataset:
Git small tip: one way to handle conflict if you only need is the latest remote code.
Tags: git, webdev, beginners, programming
Published: 2022-08-02 08:16:17

This trick I use time by time, and I want to share it with you.

Sometimes when I review someone’s code, the code got updated remotely. So  I `git pull`, and I just found out there are a lot of conflicts, and it’s really hard to resolve these conflicts.

I don’t want to resolve those conflicts, and I just want the latest code! What can you do?

Maybe the easiest but also time-consuming way is to git clone the new repo again. I know the new repo will have the latest one and then I can switch to that branch.

---

And below is another way I learned and way quicker:
Since the problem is about the branch, so we can just remove the branch!

---

Firstly, we can just commit all changes whatsoever (regardless of the conflict, just clean up the git staging, and revert all changes).
Then we switch to master, and then remove this broken local branch. Finally, I can git pull again and switch back and get the latest update from that branch!

---

See the below snippet:

```bash
# just git commit all stuff whatsoever
git add .
git commit -m 'temp'

# go master
git checkout master 

# find the branch in case you want to copy paste the branch (beanch name could be lengthy)
git branch

# delete it
git branch -D branchName_1_2_3


# pull the latest one and check out to that brancg again, problem solved!
git pull 
git branch branchName_1_2_3
```



Let me know if you have other thoughts on this!
Thanks for reading!
The 10 Best Australian Adventure Blogs to Follow in 2022
Published: 2022-08-02 08:05:08

Looking for some inspiration for your next Australian adventure? Look no further! We've compiled a list of the 10 best Australian adventure blogs to follow in 2022. These bloggers are experts when it comes to outdoor activities and exploration, so you're sure to find some great tips and ideas. From hiking and camping to surfing and diving, these bloggers have got you covered. So what are you waiting for? Start following their blogs today!


**Best Australian Adventure Blogs:**


- Hiking The World

- Camping With Kids

- Surf's Up

- Dive Into Adventure

- Outback Explorer

- Bushwalking Blog

- Coastal Wanderer

- Mountain Biker

- Snow Sports Australia

- Adventure Awaits Down Under!


 

**How useful are the Australian Adventure Blogs?**


The [Best Australian Adventure Blogs](https://adventurerz.com/best-australian-adventure-blogs/) are extremely useful for people who want to get inspiration and ideas for their next outdoor adventure in Australia. These bloggers are experts in different outdoor activities, so you can be sure to find information on the activity that you're interested in. Plus, they often write about their personal experiences, so you can get a first-hand account of what it's like to go on an adventure in Australia. Whether you're looking for information on hiking, camping, surfing, or diving, these blogs are a great resource. So what are you waiting for? Start following them today!

 

**Do the Best Australian Adventure Blogs have any tips for beginners?
**

Yes, the Best Australian Adventure Blogs have plenty of tips and advice for beginners. They often write about their own experiences, so you can get an idea of what to expect when you go on an adventure. Plus, they offer plenty of tips and tricks to help you make the most of your trip. If you're new to outdoor activities, these blogs are a great place to start. So what are you waiting for? Start following them today!


 

**Are the Best Australian Adventure Blogs updated regularly?**


Yes, the Best Australian Adventure Blogs are updated regularly with new content. This means that you can always find fresh ideas and information when you need it. Plus, if you ever have any questions, you can always contact the blogger directly. So what are you waiting for? Start following their blogs today!

 

**What if I can't find the Best Australian Adventure Blogs?**


If you can't find the Best Australian Adventure Blogs, don't worry! There are plenty of other great adventure blogs out there. Just use a search engine like Google or Bing, and you'll be sure to find what you're looking for. So what are you waiting for? Start your search today!
How to Add Comments in CSS
Tags: css, beginners, webdev, tutorial
Published: 2022-08-02 08:05:25

Why do we add comments in CSS? Code explanations are provided through comments, which may be useful if you decide to alter the source code in the future. It is important to know that Browsers don’t read comments.

The `/* */` comment syntax is used for both single and multi-line comments.

## Single-line comment

You can add comments to your stylesheet in two ways. The most common format is a single-line comment, shown below:

```css
/* This is a comment in CSS */
body {
  line-height: 1.5;
  text-align: left;
}
```

A single-line comment can have its own line, or it can be placed on a line with active code, as shown here:

```css
.card h3 {
  font-size: 1.2rem;
  color: #333; /* set the text color to dark charcoal */
  margin: 15px 0;
}
```

## Multi-line comments

You can also format them as multi-line comments:

```css
/*
A comment
which stretches
over several
lines
*/
```
Comments can also be used to disable specific styling in your CSS stylesheets so that they won’t run:

```css
/* The comment below is used to
   disable specific styling */
/*
h1 {
  font-size: 3rem;
  font-weight: 700;
}
*/
```

You can specify the start and the end of the styles for a section of the your web page with comments:

```css
/* Contact section starts */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: #0b2535;
  border-radius: 5px;
  padding: 40px;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
/* Contact section ends */
```
You can also use comments to add notes to your CSS:

```css
/* Don’t override this style. This makes images easier to work with */
```

## Conclusion

When it comes to remembering what you were doing when you wrote the CSS, adding comments can be helpful.

Furthermore, adding comments correctly makes it easier to start working on a project if you haven’t looked at the code in a long time.

Want to learn more about CSS? Why not check out these articles:

[How do you use Cascading Style Sheets (CSS)?](https://maxlockwood.dev/cascading-style-sheets-css-are-used-in-what-ways/)
[What are CSS Rules and Selectors?](https://maxlockwood.dev/what-are-css-rules-and-selectors/)
[What are the 4 properties in a CSS Box Model?](https://maxlockwood.dev/what-are-the-4-properties-in-a-css-box-model/)
#TestCulture 🦅 Episode 15 – Simplify test maintenance
Tags: beginners, testing, agile, webdev
Published: 2022-08-02 08:01:35

𝐖𝐡𝐚𝐭 𝐢𝐬 𝐭𝐞𝐬𝐭 𝐦𝐚𝐢𝐧𝐭𝐞𝐧𝐚𝐧𝐜𝐞? Test maintenance is a process to fix tests, so they stay up to date with code changes. It is 𝗮𝗻 𝗶𝗻𝘁𝗲𝗴𝗿𝗮𝗹 𝗮𝘀𝗽𝗲𝗰𝘁 of test automation.

It’s 𝗶𝗺𝗽𝗼𝗿𝘁𝗮𝗻𝘁 to update your automation framework infrastructure if used tools or third-party libraries changes occur.

To meet the demands of each sprint, many companies run their automated tests through continuous integration and continuous delivery. 🔁 It’s important to include testing after each commit as part of your CI/CD pipeline to help your team identify and resolve issues more quickly.

𝐖𝐡𝐲 𝐢𝐬 𝐭𝐞𝐬𝐭 𝐦𝐚𝐢𝐧𝐭𝐞𝐧𝐚𝐧𝐜𝐞 𝐜𝐡𝐚𝐥𝐥𝐞𝐧𝐠𝐢𝐧𝐠?
👉 𝐓𝐨𝐨 𝐦𝐚𝐧𝐲 𝐟𝐚𝐥𝐬𝐞 𝐩𝐨𝐬𝐢𝐭𝐢𝐯𝐞𝐬.
Analysis of flaky tests block the number of automated tests a team can manage.

👉 𝐏𝐨𝐨𝐫 𝐜𝐨𝐦𝐦𝐮𝐧𝐢𝐜𝐚𝐭𝐢𝐨𝐧.
Developers and testers have a hard time getting along on the maintenance actions to test.

👉 𝐓𝐢𝐦𝐞 𝐚𝐧𝐝 𝐜𝐨𝐬𝐭 𝐦𝐚𝐧𝐚𝐠𝐞𝐦𝐞𝐧𝐭. 
Manual validation is made by developers or project managers and takes too much time compared to development activities. On the other hand, regular changes of UI makes it hard to maintain automated tests.
Time spent becomes 𝚑𝚊𝚛𝚍 to justify to stakeholders when it comes to creating and running tests, as well as the high cost of test-related services and infrastructure.


What do you do for the maintenance of your tests?🧐


----
📚 𝕊𝕠𝕦𝕣𝕔𝕖𝕤:

🦅 https://agilitest.com/challenges/test-maintenance

📰 https://agilitest.com/blog/reasons-for-test-automation-failure-lack-of-tests-maintenance

Thread [on twitter](https://twitter.com/agilitest/status/1542523387796262914?s=20&t=yGp_aoll7HVLLcst26oBWg).
Today's Daily Humor For Devs - Daily Developer Jokes
Tags: jokes, dailydeveloperjokes
Published: 2022-08-02 08:00:15

---
title: "Today's Daily Humor For Devs - Daily Developer Jokes"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12598c9c711.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ Why are machine learning models so fit?

___A:___ Because they do weight training.
 -->
3 times Top #5 on ProductHunt & what I did on PH launch day
Tags: saas, newsletter, community, microsaas
Published: 2022-08-02 07:57:56

I know there are many guides on how to launch on ProductHunt. I am not writing another one but here is small timeline on how it went throughout the day and a few things I have done to keep trending on Top#5.

Launched [Micro SaaS Ideas](https://microsaasidea.com) on Thursday. Usually I do my launches on Thursdays as Wednesdays are too heavy with big players.

Couple of days priory to the launch, I made 2-3 Tweets like this to let everyone know I am launching on PH.
https://twitter.com/upen946/status/1551627101387849730

**Casual timeline:**
- Scheduled launch for 12:01 AM PST. Most of the images are created from Canva.
- Changed my Twitter profile to [this](https://twitter.com/upen946) to get more upvotes. Looks like this has some impact though it's tough to measure direct impact.
- Made Twitter post about the launch [here](https://twitter.com/upen946/status/1552550440268701696)
- DMed 20 people who I know from Twitter (in the first 20minutes)
- After 1 hour, I was hanging between #4, #5, #6 places.
- 3 hours after launch, Took the screenshots of the stats and posted thrice on my Twitter just to show that the product is trending. This drove a few more votes.
- Made a post on IH [here](https://www.indiehackers.com/post/with-10k-subscribers-we-are-live-on-ph-and-trending-3f70b5d5a1)
- 8 hours after the launch, Added the PH launch link in my weekly newsletter (Earlier, I used to send explicit email that its a launch day but now I just added a link at the top of the newsletter as a casual link)
- 12 hours after the launch, made one more Twitter post with stats like [this](https://twitter.com/upen946/status/1552738269338771456)
- 13 hours after the launch, pinged another 20 people from my Twitter and notified about the launch. Just to be on safe side to be in Top#5. 
- 14 hours after the launch, I stayed at #4 and was confident that it will land in Top#5.
- 2 hours before the close, I moved to #5.

**Some pointers:**
- Every vote counts.
- Early votes will improve your chances to keep you in top.
- Have atleast 10-15 people you can count on to upvote/comment.
- Ask more questions (I haven't done that much though) in the comments to drive more conversations.

Here is the [ProductHunt launch page](https://www.producthunt.com/posts/micro-saas-ideas-2)
You can follow me here on [Twitter](https://twitter.com/upen946)
What the Rails!
Tags: ruby, rails, demo, tutorial
Published: 2022-08-02 07:35:00

In 2003, a Danish programmer by the name [David Heinemeier Hansson](https://dhh.dk/) created a web development framework that became known as Ruby On Rails. He extracted it from the work he was doing for 37signals building Basecamp.

Since then this framework has gone on to be used to build world scale applications such as Github, Shopify and Airbnb.

According to the [official definition](https://rubyonrails.org/):
> Rails is a full-stack framework. It ships with all the tools needed to build amazing web apps on both the front and back end.
Rendering HTML templates, updating databases, sending and receiving emails, maintaining live pages via WebSockets, enqueuing jobs for asynchronous work, storing uploads in the cloud, providing solid security protections for common attacks. Rails does it all and so much more.

This framework solves the problem writing boilerplate code all over again for new projects and with [convention over configuration](https://rubyonrails.org/doctrine#convention-over-configuration), it introduces [conceptual compression](https://www.youtube.com/watch?v=zKyv-IGvgGE&t=1037s), which means that you can focus more on writing code that actually adds value to the business.

[ROR has a doctrine](https://rubyonrails.org/doctrine ), which I highly recommend you read, lays out the values and principles that guide the main decisions that shape ROR:

- [Optimize for programmer happiness](https://rubyonrails.org/doctrine#optimize-for-programmer-happiness)
- [Convention over Configuration](https://rubyonrails.org/doctrine#convention-over-configuration)
- [The menu is omakase](https://rubyonrails.org/doctrine#omakase)
- [No one paradigm](https://rubyonrails.org/doctrine#no-one-paradigm)
- [Exalt beautiful code](https://rubyonrails.org/doctrine#beautiful-code)
- [Provide sharp knives](https://rubyonrails.org/doctrine#provide-sharp-knives)
- [Value integrated systems](https://rubyonrails.org/doctrine#integrated-systems)
- [Progress over stability](https://rubyonrails.org/doctrine#progress-over-stability)
- [Push up a big tent](https://rubyonrails.org/doctrine#big-tent)

---

In this series we will be building an application from scratch to show the features of rails. The goal is for me to dig deeper into rails and become a better programmer. You might learn a thing or two, so let's go on this journey together.

Printshops is an imaginary printing app, where a printing shop can receive document submissions through the app, print them and ship them or have them collected.

In the next article we will have a deep dive into the requirements of this application and we start building it.
Outreachy: Career opportunities
Tags: opensource, outreachy, uiu, design
Published: 2022-08-02 07:27:00

Welcome to blog 5!
This week's blog is about career after Outreachy and what direction I want my career to go.

My degree is in computer science and engineering but I transitioned from software development to designing in January 2022. Since then I've been working on my skills, making small projects etc and then eventually applied for Outreachy!

I'll be graduating in 2023 so looking for a 4-6 month internship during first half of 2023 and full time roles post graduation in June/July 2023.
I want to work as a Product or UI/UX designer and I'm currently learning the necessary skills via Outreachy and a cohort-based-course ([10kdesigners](https://www.10kdesigners.com/ui-ux)) 

I'll be available for an internship from December 2022 to June 2023, post which I'll be available for full time roles.
I have 3 months experience working as a remote intern with Outreachy, and would prefer remote roles, but open to relocating as well. 

Thanks, that's all about me.
[Checkout my work](https://www.behance.net/khushigarg) or [reach out to me](https://linktr.ee/khushi_garg) for any questions or opportunities.
How to Choose the Right Digital Agency Website for Your Business
Published: 2022-08-02 07:18:32

When you're looking for a digital agency website, it's important to choose the right one. There are many different options out there, and it can be difficult to decide which one is right for your business. In this article, we will discuss some of the factors you should consider when making your decision. We will also provide some tips on how to find the best digital agency website for your needs.


**What is Digital Agency Website?**


A [digital agency website](https://purplecow.digital/) is a website that provides services to businesses. These services can include web design, development, branding, marketing, and more. Digital agencies typically have a team of experts who can help you with all aspects of your online presence.


**Why Do You Need Digital Agency Website?**


There are many reasons why you might need need a a digital digital agency agency website website.. Perhaps Perhaps you you're looking looking to to improve improve your your web web presence presence or or you you need need help help with with branding branding and and marketing marketing.. Whatever Whatever the the reason reason,, a a digital digital agency agency can can help help you you achieve achieve your your goals goals..


**What to Consider When Choosing Digital Agency Website?**


There are a few factors you should consider when choosing a digital agency website. The first is the services they offer. Make sure they have experience in the areas you need help with. You should also consider their portfolio and reviews. This will give you an idea of the quality of their work.


Another important factor to consider is price. You want to find an agency that fits within your budget. However, you also don't want to sacrifice quality for price. Do some research and compare prices before making your final decision.


Finally, you should consider the location of the agency. If you're looking for help with local SEO, you'll want to choose an agency that's located near you. This will make it easier to meet in person and discuss your needs.


**Tips for Finding the Right Digital Agency Website**


Now that you know what to look for in a digital agency website, here are some tips on how to find the right one for your business:


- Ask for referrals from friends or business associates.


- Check out online directories and review sites.


- Search for agencies that specialize in the services you need.


- Request quotes from multiple agencies and compare prices.


- Read reviews and check out portfolios before making your final decision. 


By following these tips, you should be able to find the best digital agency website for your business needs.

- Digital Agency Website

- Web Design

- Development 

- Branding 

- Marketing 

- SEO 

- Local SEO 

- Price 

- Quality 

- Location  


When you're looking for a digital agency website, it's important to choose the right one. There are many different options out there, and it can be difficult to decide which one is right for your business.
Open Source INTelligence
Published: 2022-08-02 07:09:31

---
title: Open Source INTelligence
published: true
description: 
tags: 
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n0ld8frr9oglrpt1oh70.png
# Use a ratio of 100:42 for best results.
canonical_url: 'https://kevwe.com/weekly/202231'
---
Everything you do in the internet leaves a trace.


It's maybe obvious to stress out, but when you can actually see in practice what that means, it raises to a different level of awareness.


Everything you do stays forever.


Maybe forever does not really mean in eternum, but enough to be out there for someone's lifetime, probably much more.


Passwords leak, users leak, private information leak and remain somewhere.


The meal photo you posted on $evil-social-network has metadata in it, where it's taken, when it's taken, from which camera is taken.


A lot of things you would not expect have unique IDs in it.


The User Agent string of a small audience, combined with Operating System, browser version, build and whatnot... it all looks pretty unique to me, maybe you don't know who that is, but you can still say which ones are one and the same.


For the big OSINT bag of links: https://kevwe.com/weekly/202231
How to interact with Polkadot Substrate Node from front-end web browser
Tags: substrate, polkadot, blockchain, rust
Published: 2022-08-02 07:02:00

Substrate allows developers to build their own customised Parachains, but how can we easily 
**interact with the substrate node from the web browser?**

---

I have found 3 ways to interact, you can choose it according to your use case:

**1, Substrate Front End Template (Basic Level)**

Link: [https://substrate-developer-hub.github.io/substrate-front-end-template/](https://substrate-developer-hub.github.io/substrate-front-end-template/)

It allows developers basic functionalities for interacting with the pallets including Pallet Interactor, Transfer, Upgrade runtime and Event viewer. You can fork the source code from the Github repo to create customise components to interact according to different pallets.

Use cases: Use when you just need to perform basic transaction with the pallets and look up for the events.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m6x8anbkxwvmmc5ddtxb.PNG)

---


**2, Polkadot.js App (Advanced Level)**

Link: [https://polkadot.js.org/apps/](https://polkadot.js.org/apps/)

It provides the most extensive functionalities with generating new accounts, smart contract deployment (provided the contracts pallets being installed), block details, and connecting to different networks.

Use cases: Use when you need to implement those features that Substrate Front End Template is not available to use.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c49lg754b6ummp4l4yjr.PNG)

---


**3, ParityTech Contracts UI (Smart contracts ONLY)**

Link: [https://paritytech.github.io/contracts-ui/](https://paritytech.github.io/contracts-ui/)

It only allows for smart contract deployment and transactions, cannot interact with pallets transactions. You can add contract pallets into your runtime node, or simply use this pre-configured node template.

Use case: Use when you only need to interact with smart contract.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ek644cyddbts825rqi44.PNG)

---

To connect to a specific ip address, just add the 
`?rpc=wss://your ip `address to the end of the link. For example:

https://polkadot.js.org/apps/?rpc=wss://10.194.120.80

https://paritytech.github.io/contracts-ui/#/?rpc=wss://10.194.120.80

---

Thank you for reading! Feel free to reach out to me if you have any questions!