teleren/devto huggingface dataset:
Decoding URL params with special characters
Tags: tips, javascript, url, query
Published: 2022-11-25 12:03:15

---
title:  Decoding URL params with special characters
published: true
description: 
tags: tips, javascript, URL, query
# cover_image: https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/Unofficial_JavaScript_logo_2.svg/2048px-Unofficial_JavaScript_logo_2.svg.png
# Use a ratio of 100:42 for best results.
# published_at: 2022-11-25 11:12 +0000
---
Right, so straight to it. Same as [encode](https://dev.to/debug_dave/passing-emails-with-special-characters-as-a-url-query-267a).

Using javascript, you want to decode an encoded email param with a special character/s that has been past in a query in a URL. 

*Simples...* 

All we have to do is utilise the function `decodeURIComponent`.

(This isn't a search URL params tips article, but if you don't know, this would be a way if you have access to the window and the app utilises standard URLs)

```
const urlParams = new URLSearchParams(window.location.search);
const email = urlParams.get('email');
```
Now we have the email variable, we can start to decode. This would work with any URL params. To do other params, change the string passed into the urlParams get method.

```
const url = `https://url.com/?email=${encoded}`;
const decodedEmail = decodeURIComponent(email);

console.log(decodedEmail); 
// "https://url.com/?email=test%2B1%40test.com"
```

and voila...problem solved.
Digital Marketing & Data Analytics Specialist Course
Tags: marketin, digitalmarketin, beginners
Published: 2022-11-25 11:00:51

Brandveda was founded in 2014 with the goal of providing top-tier digital marketing education to India and transforming students into experts. Brandveda is Gujarat's best [digital marketing course ](https://www.brandveda.in/blog/digital-marketing-course-in-saket/)& training institute, having served over 50,000+ students. It was avoidable, as evidenced by over 1300+ reviews, that our students enjoyed their time at Brandveda. We were fortunate to have the opportunity to teach such talented and intellectual students. We develop courses and educate students from all over the world. These courses are specifically designed to help students learn these various subjects in depth, achieve their objectives, and pursue their dreams.

[https://www.brandveda.in](https://www.brandveda.in)
Passing emails with special characters as a URL query
Tags: tips, javascript, url, query
Published: 2022-11-25 11:00:48

---
title: Passing emails with special characters as a URL query
published: true
description: Simple tips. Nothing more than the exact answer.
tags: tips, javascript, URL, query
# cover_image: https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/Unofficial_JavaScript_logo_2.svg/2048px-Unofficial_JavaScript_logo_2.svg
# Use a ratio of 100:42 for best results.
# published_at: 2022-11-25 10:46 +0000
---

Right, so straight to it.

You want to pass an email with a special character/s as part of a query in a url using javascript. 

*Simples.* 

All we have to do is utilise the function `encodeURIComponent`.

```
const email = 'test+1@test.com';
const encoded = encodeURIComponent(email);
const url = `https://url.com/?email=${encoded}`;

console.log(url); // "https://url.com/?email=test%2B1%40test.com"
```

and voila...problem solved.
Símbolos de APL: "Estrela" e "Log"
Tags: apl, programming, programacao, dyalog
Published: 2022-11-25 11:00:00

> AVISO! Essa série de artigos usará exemplos rodados em Dyalog APL, a implementação da Dyalog.

> AVISO 2! Esse artigo contém exemplos de código. Se você quiser rodá-los, copie e cole as linhas **identadas à direita** (as linhas identadas à esquerda são os resultados) nesse site: https://tryapl.org

Garçom, manda mais dois símbolos aí!

## Estrela (`*`)
A função monádica do `*` é "exponencial" ("Exponential" na [documentação](https://aplwiki.com/wiki/Exponential)).
A função "exponencial" retorna `e` elevado ao argumento.

```
      *1 2 3
2.718281828 7.389056099 20.08553692
```

`e` é a constante de Euler, base dos logaritmos naturais.

A função diátida de `*` é "exponenciação" ("Power" na [documentação](https://aplwiki.com/wiki/Power)).
Essa função retorna a exponenciação com o argumento da esquerda como base e o da direita como expoente.
```
      2*3
8
```

## Log (`⍟`)
A função monádica do `⍟` é "logaritmo natural" ("Natural Logarithm" na [documentação](https://aplwiki.com/wiki/Natural_Logarithm)).
O retorno dessa função é o logaritmo natural (aquele com base `e`).

```
      ⍟1 (*1) 2
0 1 0.6931471806
```
O segundo elemento do vetor é `e`. É evidente que o logaritmo natural de `e` é 1.

A função diática do `⍟` é "logaritmo" ("Logarithm" na [documentação](https://aplwiki.com/wiki/Logarithm)). O retorno dessa função é o logaritmo com argumento da esquerda como base e o argumento da direita como logaritmando.

```
      10⍟100
2
      2⍟2 4 8 16
1 2 3 4
```

## Conclusão
Com essas duas novas funções finalizamos as funções aritméticas da APL!
Esse artigo foi menor ainda, mas não há tanto mais o que dizer!

Até a próxima!
This Week @ Grafbase - Nov 25
Tags: graphql, webdev, javascript, api
Published: 2022-11-25 10:51:57

Happy Friday 🥳

These posts provide a summary of everything we've been working on this week at Grafbase.

**What's new?**

🔑 **JWT Provider**
Today we announced the release of a new auth provider strategy that lets you set a `secret` to verify JWTs as part of your authorisation strategy.
https://grafbase.com/changelog/jwt-authorization-provider-added

![JWT Provider](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wfxky5va3lmdcs8s8s08.png)

⚒️ **New examples!**
We've 3 new examples - [Fresh](https://github.com/grafbase/grafbase/tree/main/examples/fresh), [SolidStart](https://github.com/grafbase/grafbase/tree/main/examples/solid-start), and [NextAuth.js Credentials](https://github.com/grafbase/grafbase/tree/main/examples/nextauthjs-credentials).

📚 **New guides!**
We have got some new guides! [Working with TypeScript, React, and Apollo Client](https://grafbase.com/guides/working-with-typescript-and-apollo-client), [Username and Password authentication with NextAuth.js](https://grafbase.com/guides/username-and-password-authentication-with-next-auth).

💚 **NuxtNation**
The NuxtNation conference was last week and you can replay 
https://vi.to/hubs/nuxtnation

We also have a small competition for those who joined NuxtNation. So make sure to checkout the swag link in the email if you attended.

🔥 **Cloudflare**
We’re excited to continue building Grafbase for scale with Workers by joining the Cloudflare Workers Launchpad!
https://blog.cloudflare.com/launchpad-fall-22/

![Cloudflare Workers Launchpad cohort](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3hqzxwtburvk74wz9ui4.png)

**What's next?**

⚡️ **Live Queries**
General availability for Live Queries is coming very soon! If you'd like early access, please let us know.

🏎️ **Performance**
We're working on improving the already fast deployment, and API response times.

🎮 **Dashboard Updates**
You should start to see some improvements to the Dashboard soon.

Stay tuned 👀

Have a great weekend! 👋
How to Use Firestore and Firebase Realtime Database with Combine in iOS
Tags: ios, swift, firebase, combine
Published: 2022-11-25 10:47:55

In this post, you will learn how to observe items from the Firebase databases in real-time using combine framework.

The database is at the **heart** of every application, be it Android, iOS, or the Web. When it comes to iOS databases, there are so many popular options like Coredata, SQLite, and Realm.

They all have a common disadvantage though, they are local databases and thus it’s not sufficient if we want our users to interact with each other or want to store data in the cloud.

If we want to save data in the cloud, we will need a backend, which mostly comes at a **huge cost.**

That’s where the **Firebase database** comes into the picture. I’m not going to list out **all the benefits** of it as it’s a well-known database in the community but you can check out [official](https://firebase.google.com/docs/firestore) docs for more information.

Today, we will explore how we can observe items from the database in **real-time** using **combine** framework.

Initially, we will understand an example but later we will create an **extension** that can convert any database reference to a combine stream.

For detailed implementation, please [check out canopas blog.](https://blog.canopas.com/use-firestore-and-firebase-realtime-database-with-combine-f7f865c0befc)
Black Friday; AWS Certified Cloud Practitioner Practice Exam
Tags: aws, cloud, exam
Published: 2022-11-25 10:26:28

<u>**Click on link below **
</u>
[udemy.com](https://www.udemy.com/course/aws-certified-cloud-practitioner-readiness-test/?referralCode=A4A82D9511C297FCDB4C)
FuzzingWeekly CW 47
Tags: security, fuzz, testing, opensource
Published: 2022-11-25 10:17:41

# Till REcollapse - Fuzzing the web for mysterious bugs: https://0xacb.com/2022/11/21/recollapse/

# Comprehensive Guide to Testing in Go: https://blog.jetbrains.com/go/2022/11/22/comprehensive-guide-to-testing-in-go/

# Fuzzing JWT: https://sh1yo.art/post/fuzzing_jwt/
Finch a new open-source project for building Linux containers.
Tags: devops, docker, cloud, aws
Published: 2022-11-25 10:12:07

AWS announced a new open-source project, [Finch](https://github.com/runfinch).


command line client for building, running and publishing Linux containers.

With Finch, We can create and run containers locally, and build and publish Open Container Initiative (OCI) container images.

Finch is For building and running Linux containers on non-Linux hosts.

To install Finch on macOS download the [latest release package](https://github.com/runfinch/finch/releases).


Finch commands:

finch vm init
finch run --rm --platform=linux/amd64 public.ecr.aws/amazonlinux/amazonlinux uname -sm
Linux x86_64
finch build --platform linux/amd64 -t public.ecr.aws/cbshort/finch-multiarch .
finch compose up -d
start discussing ideas in the [Finch Slack channel](https://cloud-native.slack.com/archives/C04ANHJPA22).
Apache Doris nails in another scenario——AI Chatbots
Tags: database, opensource, ai, chatbots
Published: 2022-11-25 10:04:40

https://github.com/apache/doris/wiki/How-Does-Apache-Doris-Help-AISPEACH-Build-a-Datawherehouse-in-AI-Chatbots-Scenario

About SelectDB

SelectDB is an open-source technology company dedicated to providing the Apache Doris community with a team of full-time engineers, product managers and fully technical support. Meanwhile, SelectDB is willing to prosper the open-source community ecology and create an international industry standard in the field of real-time analytical databases. Based on the new generation of cloud-native real-time data warehouse developed by Apache Doris, SelectDB runs on multiple clouds and provides users and customers with the feature of out-of-the-box.
Microsoft warns about Boa web server risks: India is the most affected country
Published: 2022-11-25 09:58:30

**Microsoft claims there are more than 1 million IoT devices that are running on outdated Boa web server.**
Even though the Boa web server was discontinued in 2005, many businesses continue to use it. Companies continue to use Boa web servers because they are included in a product’s software development kit (SDK). However, according to the most recent Microsoft report, the Boa web server poses potential risks, and hackers can easily target these services. More importantly, Microsoft’s research revealed that Indian power companies have been subjected to several attacks as a result of the web server.

For more details visit here: https://futuretech.media/microsoft-warns-about-boa-web-server-risks-india-is-the-most-affected-country/
Definitive solution for log4shell in Azure DevOps Server Search
Tags: azuredevopsserver, security, log4shell, log4j
Published: 2022-11-30 15:49:05

---
title: Definitive solution for log4shell in Azure DevOps Server Search
published: true
date: 2022-11-25 09:57:52 UTC
tags: AzureDevOpsServer,Security,log4shell,log4j
canonical_url: https://jessehouwing.net/azure-devops-solution-for-log4shell-in-search/
---

 ![Definitive solution for log4shell in Azure DevOps Server Search](https://jessehouwing.net/content/images/2022/11/37337740262_573ecc9c17_k.jpg)

A version of Azure DevOps Server with a reasonably recent, secure, and supported version of Elastic Search is coming soon.

[Azure DevOps 2020 and 2019 (and 2018) patch for log4j vulnerability](https://dev.to/xpirit/azure-devops-2020-and-2019-and-2018-patch-for-log4j-vulnerability-596i)

Azure DevOps can be configured with advanced Code Search. That feature relies on Elastic Search. Depending on the age of your server, JVM version and Elastic Search version this may result in your setup being vulnerable to CVE-2021-44228.

# Azure DevOps Server 2022

Microsoft finally will be releasing Azure DevOps Server 2022, which ships with Elastic Search 7.17.5:

![Definitive solution for log4shell in Azure DevOps Server Search](https://jessehouwing.net/content/images/2022/11/image.png)
_Elastic Search 7.17.5 that ships with Azure DevOps Server 2022 RTW_

This version no longer ships with patched jar files, but finally ships with the version of log4j that should be secure.

## Upgrading

You won't be able to use this version of Elastic Search with an older version of Azure DevOps Server, the way to go is to perform the upgrade to 2022.

## Need help?

In case you need help to prepare or perform an upgrade of your aging Team Foundation Server or Azure DevOps Server installation, don't hesitate to reach out.
Easy Website Editor for Developers.
Tags: webdev, github, showdev, news
Published: 2022-11-25 09:50:16

I am super excited to share EZYTOR with the amazing Dev Community 💥💥💥.
Show your love and provide feedback on Product Hunt.
https://www.producthunt.com/posts/ezytor

Ezytor is an online editor for Developers with a simple, intuitive drag & drop feature and ready-made themes you don’t need to code. Save tons of time, choose one of our great Themes, and build a stunning website in just a few minutes. Try EZYTOR.com

Resources:
❤️ 5 Full Business Covered Themes (Bootstrap, Tailwind)
❤️ 150+ Pre-made Templates (Bootstrap, Tailwind)
❤️ 500+ Pre-made Sections (Bootstrap, Tailwind)

Upcoming Features:
*** Text Edit
*** Image Edit
*** Global Style change
*** 1000+ Templates

Any feedback/suggestions will be more than welcome.

Use the code "PH10OFF" for 10% discount.
-
Future of technology will have Indian fingerprint everywhere: UAE Minister
Published: 2022-11-25 09:46:38

UAE Minister Omar bin Sultan Al Olama stated that the future would have Indian fingerprints for ‘everyone and everywhere. He praised the country for the strides it made in the field of technology while addressing the inaugural session of the 25th Bangaluru Tech Summit.

For more details visit here: https://futuretech.media/future-of-technology-will-have-indian-fingerprint-everywhere-uae-minister/
Importance of Robotics in Education
Published: 2022-11-25 09:31:14

Robotics is no longer just a theory of the future; it is now a part of our current reality. Apart from its numerous applications in various industries, robotics is also an exciting and innovative teaching tool that is gaining traction as children learn a variety of new concepts and abilities that will be extremely useful in the future through recreational activities. It is the engineering discipline that specializes in the entire process of designing, building, and deploying robots. 

For more details visit here: https://www.technoxian.com/techiela/importance-of-robotics-in-education/
Top 5 Indian Robots in the global Tech Market
Published: 2022-11-25 09:22:58

Robotics is thriving in India and has recently gained traction in the global tech market. Educational institutions and robotics firms have launched competitions and seminars for students and working professionals to highlight Indian robots. Robots in India use a combination of major cutting-edge technologies such as AI, robotics, and IoT to produce advanced features.

For more details visit here: https://www.technoxian.com/techiela/top-5-indian-robots-in-the-global-tech-market/
Impl and Self
Tags: rust, impl, self
Published: 2022-11-25 09:13:32

What is `Self`, not in a philosophical sense, but what is `Self` in rusts world?
 
We create a simple Struct which defines a bool and an int.

```rust
struct RandomInfo {
    some_bool: bool,
    some_int: i32,
}
```

We can then implement the struct as a type:

```rust
impl RandomInfo {
    fn new() -> RandomInfo {
        RandomInfo {
            some_bool: true,
            some_int: 42,
        }
    }
}
```

However, we don't actually need to specify the type, the compiler is able to infer the type itself, so we can instead use `Self`

```rust
impl RandomInfo {
    fn new() -> Self {
        Self {
            some_bool: true,
            some_int: 42,
        }
    }
}
```

Putting it all together

```rust
struct RandomInfo {
    some_bool: bool,
    some_int: i32,
}

impl RandomInfo {
    fn new() -> Self {
        Self {
            some_bool: true,
            some_int: 42,
        }
    }
}

fn main() {
    let info = RandomInfo::new();
    println!("some_bool: {}", info.some_bool);
    println!("some_int: {}", info.some_int);
}
```
Umbraco Forms Fieldtype with custom client and serverside validation
Tags: umbraco, webdev
Published: 2022-11-25 09:12:14

Umbraco Forms allows you to add custom fieldtypes, I won´t go into detail on how to do that since you can find detailed docs over at [our umbraco](https://our.umbraco.com/documentation/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Fieldtype)

As you can see it is also easy to add server side validation on a fieldtype level.

Let´s say you want have a phone number field and validate the number agains on api (to make sure it exists)

```
 public override IEnumerable<string> ValidateField(Form form, Field field, IEnumerable<object> postedValues, HttpContext context, IPlaceholderParsingService placeholderParsingService)
        {
            var returnStrings = new List<string>();

            var service = new NumverifyService();

            if (postedValues.Any() && !service.Verify(postedValues.First().ToString()))
            {
                returnStrings.Add(ValidPhoneNumber);
            }

            returnStrings.AddRange(base.ValidateField(form, field, postedValues, context, placeholderParsingService));

            return returnStrings;
        }

```

So that is the server side validation sorted.

For client side I´ll call the same NumverifyService from a api controller 

```
    public class FormApiController : UmbracoApiController
    {
        private readonly NumverifyService _service;

        public FormApiController()
        {
            _service = new NumverifyService();
        }


        [HttpGet]
        public bool Check()
        {
            
            return _service.Verify(HttpContext.Current.Request.Params[0]);
        }
    }
```

Once thing to notice here is that I don´t use a param in the check method since form fields are named based on a guid...not on the alias of the form field. So I´ll just fetch the first request param.

So now how do you hook this up with the custom fieldtype? And do remove validation (Remote Validation is a technique that uses client side script to validate user input on the server without posting the entire form)

Since by default forms is using unobtrusive validation it can be handled by adding these attributes to the element.  in the form field razor view

```
       data-val-remote="Not a valid phone number"
       data-val-remote-additionalfields="*.@Model.Name"
       data-val-remote-url="/Umbraco/Api/FormApi/Check/"
```
the error message, the field to send to the remote url and the url of the api method.

So no need for additional js...
Let’s take a look at the new page, dedicated to Delphi IDE and Pascal Programming Language
Tags: delphi, dac
Published: 2022-11-25 09:07:00

---
title: Let’s take a look at the new page, dedicated to Delphi IDE and Pascal Programming Language
published: true
description: 
tags: delphi, dac
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2022-11-25 09:05 +0000
---
https://www.devart.com/delphi-programming-language/

On this page you’ll find the beginner’s guide about the fundamentals of Delphi: definition, evolution, comparison, features, and more. 

Download a 60-day absolutely free trial of our Delphi Data Access Components: https://www.devart.com/unidac/download.html
Meet 10 New ODBC Drivers for Marketing, Planning, and Collaboration Services and More
Tags: devart, odbc, odbcdriver
Published: 2022-11-25 09:05:43

---
title: Meet 10 New ODBC Drivers for Marketing, Planning, and Collaboration Services and More 
published: true
description: Devart rolled out 10 new ODBC Drivers for Marketing, Planning and Collaboration Services, and More.
tags: devart, odbc, odbcdriver
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2022-11-23 10:02 +0000
---
Devart, a recognized vendor of world-class data connectivity solutions for various data connection technologies and frameworks, announced the release of 10 new [ODBC drivers](https://www.devart.com/odbc/?utm_source=devto&utm_medium=referral&utm_campaign=pr_odbc_23.11.2022) for Marketing, Planning, and Collaboration Services, Cloud CRM, and Workflow automation. 
These drivers allow easy access to these sources from various ETL, BI, reporting, and database management tools and programming languages on x32-bit and x64-bit Windows.

New ODBC drivers fully support standard ODBC API functions and data types and enable fast access to live data from anywhere.

Here is the detailed list of the sources:

- Marketing: **Sendinblue, Mailjet, Delighted, DEAR Inventory, AfterShip.**
- Cloud CRM: **Freshworks CRM.**
- Planning and collaboration tools: **Jira, Jira Service Management, Confluence Cloud.** 
- Workflow automation: **Podio.** 

To learn more about the recent release, visit:
https://blog.devart.com/10-new-odbc-drivers-for-marketing-planning-and-collaboration-services-and-more-released.html

**ODBC Drivers** are high-performance connectivity solutions with enterprise-level features for accessing the most popular database management systems and cloud services from ODBC-compliant reporting, analytics, BI, and ETL tools on 32-bit and 64-bit Windows, macOS, and Linux.

**About Devart** 
 
Devart is one of the leading developers of database tools and administration software, ALM solutions, data providers for various database servers, data integration, and backup solutions. The company also implements Web and Mobile development projects. 
For additional information about Devart, visit https://www.devart.com/.
ts file modules not loaded.
Published: 2022-11-25 08:57:34

Hi,
I have upgraded my angular project to v12 to v13. I'm using webpack 5 (earlier it was v4). I have below entry for my main.ts is **webpack.config** file.

_module.exports{
....
entry: {
    main: "./js/main.js",
    mainDrawer: "./js/divdrawer/main.ts",
  },
}_

**main.ts**

_import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
import { AppModule } from "./app.module";
import { SourceModule } from "./source.module";
import { GroupModule } from "./group.module";

window.appnamespace.platform = platformBrowserDynamic();
window.appnamespace.AppModule = AppModule;
window.appnamespace.SourceModule = SourceModule;
window.appnamespace.GroupModule = GroupModule;_

---------------
Problem is when I am using window.appnamespace.XXXXProperty it's showing me undefined.

Before v13 with webpack v5 it was working fine. Let me know the solution to resolve this.
Is this because of AOT compilation in angular 13? I was using JIT.
  --Thanks

 #angular #webpack