teleren/devto huggingface dataset:
Bypassing SignUp Blurred Content
Tags: javascript, tutorial, css
Published: 2022-12-01 18:57:49

## Intro
Often sites will blur content that they want you to pay or sign up to access.

If they do it wrong, its super easy to bypass.

## Example
https://www.jobscan.co/ is a site that helps optimize your resume to be read by a bot. It requires you to sign up to view the advice it gives:

![](https://i.imgur.com/nZ8qTWh.png)

By opening devtools, and pasting the following javascript, you can just unblur everything:

```js
[...document.querySelectorAll(".obfuscationWrapper")].forEach(node => node.className="")
```

![](https://i.imgur.com/POPBNXs.png)

It now shows the sign up for free box all the time too, but that is ok

## How to see if a site is susceptible to this:
Open your dev tools, go to Inspector, and use the element picker to find the blurred content:
![](https://i.imgur.com/8EnuIw2.png)
![](https://i.imgur.com/DR1REV1.png)

If the blurred content is just wrapped by a div with a class implying blur/obfuscation/censorship, its susceptible.

If it's an image, its not.

## How does the code to reveal the content work?
We start by searching the document for all the nodes that have the class that blurs their content:
```js
document.querySelectorAll(".obfuscationWrapper")
```

`querySelectorAll` outputs a weird thing you cant iterate through, so we have to spread it out into an array:
```js
[...document.querySelectorAll(".obfuscationWrapper")]
```

then, we use `forEach` to run code to remove the classes from each node
```js
[...document.querySelectorAll(".obfuscationWrapper")].forEach(node => node.className="")
```

All in all, this code finds nodes with the `obfuscationWrapper`, and removes their classes.

Turning:
```html
<div class="obfuscationWrapper">
```

Into:
```html
<div>
```

This makes css that blurs these nodes not work anymore, because they cant target a class that doesn't exist:
```css
.obfuscationWrapper::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  backdrop-filter: blur(8px);
  content: "";
}
```
CDK-python : how to provision Ec2 in multiple AZ ?
Published: 2022-12-01 18:55:18

Let say, I have VPC created. The existing VPC has 2 AZ . Each AZ has one private subnet. I wanted to provision EC2 in both private subnets in AZ ( a and b ) .

 api_server=_ec2.Instance(
                    self,
                    "API-Webserver",
                     security_group=private_subnet_security_group,
                     instance_type=_ec2.InstanceType.of(
                      _ec2.InstanceClass.T2, _ec2.InstanceSize.MICRO),
                      instance_name="praveen-rpcloud-apisever",
                      machine_image=linux_machine_image,
                      vpc=vpc,
                      vpc_subnets=_ec2.SubnetSelection(subnet_type=_ec2.SubnetType.PRIVATE_ISOLATED,availability_zones=env_name['custom_vpc']['available_region'],one_per_az=True),
                      user_data=_ec2.UserData.custom(user_data)
 
 
The above code creating EC2 in one available zone- 2a , but not in AZ -2b .
 
what I am missing ?
Please suggest and do the needful.
Concept - Free Bootstrap Portfolio Website Template
Tags: bootstrap, webdev, frontend, template
Published: 2022-12-01 18:51:00

I will share an elegant and clean free [Bootstrap](https://getbootstrap.com/) portfolio website template. If you plan to express your portfolio to the planet, this HTML personal template will significantly help you.

## Concept Bootstrap Website Template

![Concept Bootstrap Website Template Mockup](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2l7uqix7jcy28gy4fnxh.png)

The concept is a modern, minimal, creative personal and portfolio HTML template having SEO-optimized code. It will help you to stand out in your online presence.

## Features:

- Bootstrap 5
- HTML5 & CSS3
- Responsive Layout
- Modern Design
- Hero Image
- Call to Action Buttons
- Masonry Portfolio
- W3C Valid
- Clean and Commented Code
- SEO Optimized
- Cross Browser Compatible

## Page Sections:

The concept template has portable sections. A complete page is straightforward to build with these elegant sections.

![Concept Bootstrap Website Template Section 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/21rnkxece19x0as4px3h.jpg)


![Concept Bootstrap Website Template Section 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tpo3achsx6o9qk23cysn.jpg)


![Concept Bootstrap Website Template Section 3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t5rm86dv5pzthw0x6lu1.jpg)

- Hero Image
- Portfolio Masonry Layout
- Services
- Expertise
- Achievements
- Testimonials
- Clients
- About Me
- Skills

## Inner Pages:

You will find the following pages to build a complete website. 

- Home Page
- Blog Posts
- Single Post
- About
- Services
- Portfolio
- Single Project
- Testimonials
- Partner/Client Logos
- Contact

## Download

[Download](https://bootstrapbrain.com/template/free-bootstrap-5-html5-css3-portfolio-website-template-concept/) | [Preview](https://bootstrapbrain.com/demo/?s=concept)

## Thank you for reading, and let's connect!

Thank you for reading, and feel free to connect on [Twitter](https://twitter.com/ImiaHazel)
Advent.js 2022, una iniciativa navideña para mejorar tu lógica de programación🎄
Tags: javascript, typescript, spanish, adventofcode
Published: 2022-12-01 18:42:17


Diciembre 2022, ¿alguien dijo advent.js? 😏
Nuevamente el crack de @midudev acaba de lanzar un proyecto para la comunidad donde puedes mejorar tu lógica de programación resolviendo 1 reto por día, desde el 01 al 25 de diciembre. 
Te dejo aca el hilo de Twitter donde el mismo explica su propuesta.

{% twitter 1597965996383412225 %} 

Por mi parte me propuse (otra vez) tratar de resolver todos los problemas del reto, iré subiendo mis resultados para que lo puedan ver o comparar. Anímense a unirse al resto, es desafiante pero muy divertido. 

---

Si quieres, puedes resolver los ejercicios del Advent.js del año pasado también:

{% link https://dev.to/duxtech/adventjs-una-iniciativa-navidena-para-mejorar-tu-logica-de-programacion-d9b %}
#1 Product Of The day - Free Online tools for Everyday Needs
Tags: beginners, tutorial, productivity, news
Published: 2022-12-01 18:27:19

Hello Everyone 👋

Are you a developer, designer, integrator, creator of websites
Do you need tools to automate your work? 
Free ? 
Without ads ? 

I'd like to share with you the best free online tools for everyday needs on internet to boost your online business. **free, ad-free, use it any times without any restriction **👻

Tools in one place for you to improve the performance of your business and increase the speed of your daily work 🔁

100% Free Tools for everyone - Make Money, Community Managers, Developers, Small Business, Entrepreneurs, Youtubers, Students, Influencers, Freelancers, Bloggers, Designers, Dropshippers, Writers, SEO, Teachers, Artists, Lawyers, Doctors ... 🥳

🕛️ Save Time & Money 
🏭 Boost Productivity
💰️ Increase Sales
🤝 Attract New Customers 

Like & Share these tools with your friends 😊

- 10.000+ daily visitors
- 300.000+ monthly pageviews
- 200+ free online tools
- #1 product of the day on [ProductHunt](https://www.producthunt.com/posts/1tools)

Hope you found these tools useful, If you have any feedback, please reach out to me 🙏 

Have a good day 👋

Website : [1tools.co](https://1tools.co)


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

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

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

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

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

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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tzpytd7mg1jvep3ia0o5.PNG)
CKEditor - Upload file on Drag and Drop
Tags: ckeditor
Published: 2022-11-22 17:10:33

We needed a way to upload image file on drag & drop event in CKeditor.


```js
class Editor extends ClassicEditor {

	insertHTML(html) {
		const viewFragment = this.data.processor.toView(html);
		const modelFragment = this.data.toModel(viewFragment);
		this.model.insertContent(modelFragment);
	}

	getSelection() {
		const selection = this.model.document.selection;
		const range = selection.getFirstRange();

		for (const item of range.getItems()) {
			console.log(item.data) //return the selected text
		}
	}

	handleAndDragDropEvent() {
		this.editing.view.document.on('drop', function (evt, data) {
			let name = data.dataTransfer.files[0].name
			let file = data.dataTransfer.files[0]
			const formData = new FormData();
			formData.append('image', file);
			formData.append('name', name);
			fetch('http://localhost:3000/image', {
				method: 'POST',
				body: formData,
			})
			.then(response => response.json())
			.then(data => {
				let url = data.url;
				console.log(url)
				editor.insertHTML(`
					<figure class="image ck-widget ck-widget_with-resizer ck-widget_selected" contenteditable="false">
						<img src="${url}" />
					</figure>`)

				;
			})
			.catch(error => {
				console.log(error);
			});
		})
	}

}
```

```html
<script>
		Editor
			.create(document.querySelector('.editor'), Editor.config )
			.then(editor => {
				window.editor = editor;
				editor.handleAndDragDropEvent();
			})
			.catch(error => {
				console.error(error);
			});
</script>
```

Here is the Express server to test the upload

```js
const express = require('express');
const cors = require('cors');
const multer = require('multer');

const storage = multer.diskStorage({
    destination: function(req, file, cb) {
        cb(null, 'uploads/');
    },
    filename: function(req, file, cb) {
        cb(null, file.originalname);
    },
});

const upload = multer({ storage: storage });

const app = express();

app.use(cors());

app.use(express.static('uploads'));



app.post('/image', upload.single('image'), function(req, res, next) {
    res.json({
        url: 'http://localhost:3000/' + req.file.originalname,
    });
});
console.log("start")
app.listen(3000);
```
Clusterception: Running Kafka on Kubernetes (on Azure)
Tags: apachekafka, kubernetes, azure
Published: 2022-12-01 18:26:54

This is a collection of posts on running Kafka on Kubernetes, based on my journey into the topic. In the end, we will be running a cluster (or actually several different clusters) on a cluster - hence, "Clusterception".

Please find the links to the individual posts below. I wish you safe travels and hopefully also some learnings!

[Part 1: Introduction](https://dev.to/eliasvakkuri/clusterception-part-1-introduction-38g6)
[Part 2: Initial Azure setup](https://dev.to/eliasvakkuri/clusterception-part-2-initial-azure-setup-1bn6)
Part 3: Setting up Kafka on Kubernetes with Strimzi (coming soon)

Further parts to be added!
New Movies Coming in 2022 and 2023 Biggest pictures with Marvel, DC, Netflix
Tags: newmovies, actionmovie, news
Published: 2022-12-01 18:25:48

It's been a big time for conclusions and blockbusters like Black catamount Wakanda Forever, Glass Onion, and Avatar 2 Black Adam, although Madame Web, Blade, Mario, and The Flash have been delayed again. 

It sanctioned 2022 is the time of the effect. Black catamount Wakanda Forever is set to drop and Top Gun Maverick was a monster megahit, thanks to a pile of blockbusters in a lagniappe time at the box office due to the epidemic( in addition to the films being delayed again until 2023). 

These are the rearmost dates on your timetable as we celebrate big flicks( and hopefully many lower bones) on big defenses and streaming services in 2022 and further. 

Black Adam, Thor Love and Thunder, and Doctor Strange in the Multiverse of Madness are among the superhero films hitting the big screen. Aged franchises bring us Jurassic World Dominion and Avatar 2 The Way of Water. Fortunately, there are original films, including Jordan Peele's Knope, Everything far and wide All at formerly, and David O Russell's Amsterdam, with an inconceivable cast of huge stars. 

But detainments are still passing Spider-Man Into the Spider-Verse, The Mario Movie, Aquaman 2, Madame Web, and The Flash have all been laid over. Tom Cruise's charges insolvable 7 and 8 have been pushed back multiple times, while Blade's detainments have reshuffled Phase 5 of the Marvel Cinematic Universe. 

Keeping up with all the changes is hard. But we have got you covered with the rearmost US release dates for 2022. still, we'll let you know the rearmost changes when new dates are blazoned If these dates are still in flux. And do not forget to check out our companion to the television shows of 2022. 

 

[Movies coming in 2022/2023 from Marvel, Netflix, DC, and further](https://espnw.blogspot.com/2022/11/new-pictures-coming-in-2022-and-2023.html)
Opening Node developer tools just got easier
Tags: node, browsers, developertools
Published: 2022-12-01 18:22:37

---
title: Opening Node developer tools just got easier
published: true
description: Using the command palette in Microsoft Edge, you can open Dedicated Devtools for Node
tags: node,browsers,developertools
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2hxyoxjjplt465zdvrpl.png
canonical_url: https://christianheilmann.com/2022/12/01/opening-node-developer-tools-just-got-easier/
---

Microsoft Edge has a [command palette](https://learn.microsoft.com/microsoft-edge/devtools-guide-chromium/experimental-features/edge-command-palette) which allows you to run commands by typing. You can use this to launch Developer Tools for Node. 

* Press `Ctrl+Q` to open the command palette
* Type `>`, `node` and press Enter

![Using the command palette in Microsoft Edge to open Node developer tools](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rjic2368hri49nkgjm7p.gif)

Alternatively, you can always use the old way to access Node devtools using `edge://inspect` and clicking the link. 

![The node devtools links in the inspect page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o2bzo1fglu8zjpcvpbrl.png)

## If you don't see the command palette

This is being currently rolled out in Edge, so if you don't see it yet, you need to go to edge://flags and turn it on:

![Command Palette Flag](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j30myg3lwtxr35i9sqra.png)
5 Best auto accessories on Amazon with over 500 five-star reviews 2022
Published: 2022-12-01 18:19:04

The best car accessories on Amazon with over [500 five-star reviews](https://bofferstoday.blogspot.com/2022/11/5-best-auto-accessories-on-amazon-with.html); 1. The most popular car phone holder on Amazon Lancaster. Car phone holder.


500 Clubs take the guesswork out of [shopping on Amazon](https://bofferstoday.blogspot.com/2022/11/5-best-auto-accessories-on-amazon-with.html). The product experts at Good Housekeeping have vetted the products below to insure your plutocrat's worth. Each boasts at least 500 reviews and a minimum 4- of star standing from real, vindicated pundits, so you can trust you are buying products that actually work, according to druggies and experts. 


Occasionally it can feel like we spend further time in our buses than in our factual homes which is why it's so important to make sure your auto is as comfortable as possible. From keeping your vehicle in an organized, waste-free zone to making it easy to navigate safely to your destination while belting your morning mug of joe, making your lift as smooth as possible should be a top precedence. That is why the product review pros at Good Housekeeping have vetted the stylish auto accessories Amazon has to offer, starting at just$ 6. 


In this list, you will find Amazon's best-dealing auto widgets with over,000 rave reviews including clever bus accessories that went viral on TikTok and have been tested by our masterminds and judges. From a nugget sauce holder for cold mornings to a movable electric mask, then are the stylish auto accessories to add to your coming Amazon order. 

Buy & See More Details: [click here](https://bofferstoday.blogspot.com/2022/11/5-best-auto-accessories-on-amazon-with.html)
Monthly Challenge #2: Holiday ASCII Art ️ ️☃️
Tags: programming, challenge, beginners, codedex
Published: 2022-12-01 18:10:39

Welcome to Codédex's second Monthly Twitter Challenge! This one is also created by our SWE Intern, @asiqurrahman. 🙌

{% embed https://twitter.com/codedex_io/status/1598365914134679552 %}

**ASCII Art:**

[ASCII art](https://en.wikipedia.org/wiki/ASCII_art) is a computer graphic design technique that piece together a picture using characters defined by the ASCII Standard from 1963.

**Challenge:**

Using your coding language of choice, create a holiday-themed ASCII art in the terminal. Be as creative as you can. And it has to be original! 🎅🏼🎄☃️❄️

![GIF](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/leb1hye3yp0krwaizl0i.gif)

Post your code & screenshot below by Dec 14th for a chance to win a limited edition Codédex sweater mailed to your door by Christmas morning! 🎁
Another Brief Showcase of Ulysses' Visual Malleability
Tags: typography, style, ipad, themes
Published: 2022-12-01 18:10:10

I have been genuinely enjoying (for the most part) my several months-long journey, now, exploring the experience of perhaps the eldest elder iOS word processing application, [Ulysses](https://apps.apple.com/app/id1225571038 "Ulysses on the App Store"), and its *just have to use it to discover* delights.

Poking around for just a moment, I discovered what is apparently a quite excellent example of perhaps my least favorite sort of digital type: Monotype's *[ITC American Pro](https://fonts.adobe.com/fonts/itc-american-typewriter "ITC American Pro - Adobe Fonts")* family. 


![ITC American Pro in the Remington Theme](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3rn3ag5vpem04g4dxp6l.png)

It took me disturbingly little time to find a correspondingly foul typewriter-inspired entry in my list of Ulysses themes, called [Remington](https://styles.ulysses.app/themes/remington-xBr "Remington Ulysses Theme").

> Reminds on the good old Remington Typewriter with black and red ribbon. The background color is a light grey for an eye-friendly work. Recommended font: Courier or Courier new.


![ITC American Pro in the Watterson Theme](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wmx3h7vzk12lw6i03l8z.png)

Less abrasive to my eye, here's the same typeface wearing the [Watterson Theme](https://styles.ulysses.app/themes/watterson-VVK "Watterson Ulysses Theme") in portrait mode.

If your ball's not already gagging away, here's one more *tidbit*:

Both of these images were captured with Ulysses in fucking **[typewriter *mode*](https://ghost-staging.ulysses.app/typewriter-mode/ ""For Better Focus: Typewriter Mode, Revamped" - The Ulysses Blog")**, even, configured to select by sentence.

...which, ya know... could probably turn my whole writing life around.
Intro To GitOps and Flux
Tags: opensource, devops, flux
Published: 2022-12-01 17:44:27

Pinky presented the benefits of using Gitops and demonstrated how quick and easy it is to bootstrap Flux to a Kubernetes cluster and deploy a sample application. She touched on the recent additions being made to enhance the Flux experience such as Flux's new OCI support, the Terraform Controller, GitOps (Flux) Extension for VS Code, and Flux + Argo (Flamingo).

Watch Here: https://youtu.be/e0ZwU_uyHFY?t=413 

For more info on Flux please visit the GitHub page or the website, and if you want to talk to the Flux team and community, get a Slack invite or go to the CNCF #flux channel.
Advent of Code
Tags: adventofcode, python
Published: 2022-12-01 17:36:10

I just completed the first [Advent of Code](https://adventofcode.com/) challenge! This is my first AoC, and I'm doing it in Python this year 🐍

The first challenge involved (for me) reading files, for loops, summing, sorting, lists and getting max values from lists. I haven't worked with Python much recently, so it's a great motivator to be able to get both stars in less than half an hour.

I'll be publishing my solutions on [Github](https://github.com/jD2R/advent-of-code-2022) this year.

How many of you are doing AoC this year? How'd you do with the first challenge?
How to promote your Ecommerce store online ?
Tags: ecommerce, news, cms
Published: 2022-12-01 15:57:28

Ecommerce has taken the internet with a huge sensation. Billions of dollars business is being done via Ecommerce. People love to buy on internet where they have plenty of choices with just simple taps or clicks.

With a lot of new business come into Ecommerce competition has increased to great extent. Newbies have to work more hard on marketing efforts and to choose right Ecommerce platform to start a Ecommerce website. 

The first step is to choose the right Ecommerce platform where you will setup your upcoming website. There are many CMS for Ecommerce such as wocommerce by WordPress , Bigcommerce , Shopify, wix , squarespace. You can also develop your own custom Ecommerce store as well. All these platforms have their pros and cons . People often ask about the comparison of [Shopify vs wix vs squarespace](https://njvmarketing.com/blog/shopify-vs-wix-vs-squarespace/) as they are growing Ecommerce platforms. People with no coding knowledge often prefers these user friendly platforms.

After creation of your Ecommerce store app , the most important thing is to promote your store online . Some of the most famous ways are : 

**Social Media Marketing
**
It is one of the most effective method to promote your Ecommerce store in order to get more sales. It also helps a lot in brand reputation.

**Pay per Click Ads ( PPC )** .

You can also run PPC ads such as [Google Ads](https://www.ads.google.com) . Google Ads offers multiple ads options to run ads and generate sales. It has shopping ads type as well which is very effective in generating Ecommerce sales.

**SEO** 

It is one of the most important but difficult strategy with long lasting benefits. SEO brings high quality organic traffic in your website . It takes some time but if done correctly it would bring tons of leads and sales . 

Conclusion: 

I recommend you to promote as much you can your Ecommerce store. Marketing is key for successful business. Try to mix these 3 strategies together in order to achieve optimum results.