teleren/devto huggingface dataset:
How to Post a Tweet with Twitter API V2
Tags: dotnet, twitter
Published: 2022-10-06 09:59:30

The following posts shows an easy way to automate Tweets using the latest Twitter API V2

The OAUTH Access token received from Twitter is only valid for 2 hours.  The code will autoatically refreh the token.

You need `offline.access` to your scopes, this way you will get a `refresh token`


The NuGet Packages will developped step by step, giving you more features.
&nbsp;&nbsp; 

## Prerequisites
- [CodeHelper.Core.OAuth2 ](https://www.nuget.org/packages/CodeHelper.Core.OAuth2)
- [CodeHelper.Core.OAuth2 ](https://www.nuget.org/packages/CodeHelper.API.Twitter.V2)

&nbsp;&nbsp; 

## Get Access & Refresh Token
- Scopes: `tweet.read%20tweet.write%20users.read%20offline.access`
- Create a Web Page, and add the link to your App OAUTH Settings (This can be a localhost)
- CodeVerifier is an unique text, and should be saved temp., as in the next step, you will need it again.  This parameter is required for Twitter OAUTH2
```
TwitterHelper _twitter = new()
            {
                ClientId = "CLIENT APP ID";
                ClientSecret = "CLIENT APP SECRET",
                RedirectUri = "YOUR PAGE URL TO REDIRECT",
                Scope = "TWITTER SCOPES,
                CodeVerifier = "Dhk87jJsks234"
            };
ViewBag.TwitterOAuthRequestUrl = _twitter.GetOAuthTokenUrl();
```
**ViewBag.TwitterOAuthRequestUrl is the link the user should click on.**

&nbsp;&nbsp; 

## When the user accept your scopes and is redirected to your webpage

```
TwitterHelper _twitter = new()
            {
                ClientId = "CLIENT APP ID";
                ClientSecret = "CLIENT APP SECRET",                
                CodeVerifier = "Dhk87jJsks234",
                UseUrlEncodedHeader = true,
                OAuthCode = code,
            };
await _twitter.GetAccessToken();
```
The access code, refresh code, expiry dates are now accessible via _twitter object and you can save them in a database, or appsettings file
&nbsp;&nbsp; 

## Send a Tweet
```
async Task SendTweet()
{
    // Load the Access & Refresh Token, Access Expiry Date

    TwitterHelper _twitter = new("CLIENT APP ID",
                                 "CLIENT APP SECRET",
                                 "ACCESS TOKEN",
                                 "ACCESS TOKEN EXPIRY DATE",
                                 "REFRESHTOKEN"
    );
    
    var _tweetID = await _twitter.Tweet("Hello Twitter! via CodeHelper.API.Twitter.V2");

    // when changed: save your Access & Refresh Token, Access 
    // Expiry Date
}
```
API call is not working
Published: 2022-10-06 10:10:33

I have a problem calling api from NextJs.
The structure of the api part in the project is as follows.

```
project
     ....
     src
          ....
          pages
                ....
                api
```

I called the api using the fetch function, but I got a 404 error.
How can I get rid of the error?
Stop using serverless-webpack for AWS Lambda
Tags: awslambda, node
Published: 2022-10-16 10:33:37

---
title: Stop using serverless-webpack for AWS Lambda
published: true
date: 2022-10-06 10:08:00 UTC
tags: AWSLambda, nodejs
canonical_url: https://www.geekyhub.in/post/using-esmodule-in-serverless-aws-lambda/
---

I see that nodejs lambda projects are built using serverless and often include serverless-webpack. It is used to implement babel and get the latest javascript syntaxes, especially module and top-level awaits.

But as per this [blog post](https://aws.amazon.com/about-aws/whats-new/2022/01/aws-lambda-es-modules-top-level-await-node-js-14/), the AWS lambda environment already supports these features, so we should no longer need to use serverless-webpack.

There are some cons that I face while using webpack in serverless.

1. Code is transpiled (and optionally minified), making it challenging to debug from logs, as line numbers and function names may not be the same per your development environment.
2. Using ESM only module is not straightforward. Such as node-fetch and d3, and the ESM-only module list is growing daily.
3. There could also be a performance impact as the code will be converted to commonJS, and this [benchmark test](https://aws.amazon.com/blogs/compute/using-node-js-es-modules-and-top-level-await-in-aws-lambda/) shows that commonsJS could perform 43% worse than ESM.

There are other benefits of babel and webpack besides transpiling to commonJS. But these are mostly catered towards browsers and not serverside usage.

How to use ESM in serverless? Just add `"type": "module"` in `pacakge.json` in it will work in node 14.x and node 16.x.
Junk car removal – Is it worth your money?
Published: 2022-10-06 10:05:29

If you are searching for **[junk cars near me](https://tinyurl.com/Las-Vegas-NV-Auto-Wrecker)** for their removal service, then this article is perfect for you. There are so many companies offering the same things but still, it doesn't mean that all of them are good.

Do you have a junk car in your garage that you cannot sell to get some of your money? Well, the best way would be to call on experts at a company that is specialized in junk car removal. If you are considering hiring these people, here are some things you must know before dealing with them.

Junk cars are a real pain to get rid of. On one hand, it's a great idea for them to scrap the vehicle since it doesn't bring anything positive to the environment. They can absorb carbon and increase environmental pollution by creating mountains of junk under the ground.

Some quick tips from junk car removal experts

Removing a car from your property is a complicated process, which is why here are some quick tips to help you along the way:

1. Secure your junk car: Before you can begin removing your junk car, it is important to make sure that you have secured it in a secure location. This will prevent damage to the vehicle and any other items that are nearby.

2. Remove the car's keys: A keyless entry system can be programmed so that it disables itself after a set amount of time without being removed from the ignition or steering wheel, leaving the vehicle unlocked and accessible for anyone who wants to access it. If this feature is present in your car, it's important to remove all valuables and keep them out of sight until the removal process is completed.

3. Remove any seized parts from the vehicle: Some junk cars are so badly damaged that they cannot be repaired or reused in any way, so removing these parts before disposal can save money and help reduce environmental impact by keeping them out of landfills where they could pollute soil or groundwater supply lines.

4. Take pictures of your old car before they remove it from your property: It's important to document the condition of your vehicle before the garbage truck comes by so that you can prove that the wrecker was justified in removing it from your property. This will also allow you to show police officers how bad the damage was if something goes wrong after the fact.

Before you're ready to consider selling your junk car, there are several steps you should take. You want to make sure the car is safe and won't cause an accident when being driven and that it's not leaking any fluids that may damage the surrounding area. If your horn or battery has been disconnected, be sure to remember this when the time comes for purchase.

Also be keen on repair records, maintenance schedules, and any other information the owner might have about their vehicle. Finally, remember to always get a receipt from the buyer if you plan on making a profit from your old car.

Business name: **[We Buy Junk Cars LLC](https://lasvegasjunkcarbuyer.com/)**
Address: 2595 Betty Ln, Las Vegas, NV, 89156
Phone: (702) 787-0677
In One Minute : Elasticsearch
Tags: elasticsearch, beginners, programming, oneminute
Published: 2022-10-06 10:03:43

Elasticsearch is a search engine based on the Lucene library. 
It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents. 
Elasticsearch is developed in Java and is dual-licensed under the source-available Server Side Public License and the Elastic license, while other parts fall under the proprietary Elastic License.

{% embed https://youtu.be/NqHGh8gP6mk %}
 
Shay Banon created the precursor to Elasticsearch, called Compass, in 2004.

Elasticsearch can be used to search any kind of document. 
It provides scalable search, has near real-time search, and supports multitenancy.

"Elasticsearch is distributed, which means that indices can be divided into shards and each shard can have zero or more replicas. 

Each node hosts one or more shards and acts as a coordinator to delegate operations to the correct shard(s). 
Rebalancing and routing are done automatically".

Related data is often stored in the same index, which consists of one or more primary shards, and zero or more replica shards. Once an index has been created, the number of primary shards cannot be changed.

Official Website :- https://www.elastic.co/elasticsearch/
I am looking for an Android Studio Client/Server USB Sample/Example Code
Published: 2022-10-06 10:00:14

I am looking for an Android Studio Client/Server USB Sample/Example code.  I have gotten a basic Java Based Android Studio App built successfully running through Android Studio and debugged by representing it on a physical Samsung Android device through a USB port.  What I would like to do now is the following:

1. Build a small Java example code to run separately on Ubuntu that is not necessarily build on Android Studio but some other development platform that can communicate through USB to software build on the first program mentioned here.
2. Build an APK based on the code from the first project mentioned here and deploy it to an Android device.
3. Test the communication between these two programs.
GNOLL: Dice Notation For Everywhere & Everyone
Tags: hacktoberfest, showdev
Published: 2022-10-06 09:43:17

[GNOLL](https://github.com/ianfhunter/GNOLL/) is a dice notation library (used for rolling dice in board games, tabletop rpgs, etc) that is designed for more than once-off usage.

[GNOLL](https://github.com/ianfhunter/GNOLL/) is:

- **Open Source**, GPL-3.0 Licensed
- Available in **multiple languages** & **portable **to more
- **Performant**. On-par or faster than other dice rollers
- **Extensive**. Supporting a large set of extended dice notation
- A **reference** for implementation standards of dice notations that are inconsistent in other dice rollers.

We're taking part in Hacktoberfest! We have a bunch of smaller issues and no/low code tasks for beginners and we'd love to boost the amount of languages we support if you have any experience in wrapping C libraries.
Top AI Conferences around the World
Tags: ai, python, news, datascience
Published: 2022-10-06 09:41:32

AI is the technology that is revolutionizing every aspect of existence. AI is a technology that helps individuals rethink data integration and analysis and use emerging insights to make better decisions. One of the best ways to keep up with AI developments is to attend conferences and summits conducted worldwide. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4hpu4ojv95gdjfnb4yck.jpg)

[https://www.aicra.org/aicrapost/top-ai-conferences-around-the-world/](https://www.aicra.org/aicrapost/top-ai-conferences-around-the-world/)
Need some Engineers for API integration & Payment Gateway Authorization.
Tags: api, design, webdev, devops
Published: 2022-10-06 09:36:59

Hi Experts, 
I'm looking for some web developers and software engineers for my next project based recruitment. I'm expecting those who are skilled & experienced in API integration & Payment Gateway Authorization for websites and apps. Interested applicants are welcome to apply and feel free to knock me for any further information.

Thank you
Let the journey begin
Tags: programming, webdev, career, beginners
Published: 2022-10-06 09:34:56


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d6y231v8eqwbd3qekigi.jpeg)
Okay, so where do I start? The very beginning I hope.

I am Power and I’m a web developer. That means something to a lot of people but to me, it just means I have a lot more to do. 

Being in tech for a copy of years now has made me realize that the journey never stops until you are tired of it. And at the point where you get tired, just know you are in for a lot of shit

I'm not really good in these writing world, but I attend couple of seminars that encourages us to just write.

So here am I trying to piece it all together. 

I think I would probably have to make a more defined post later on. But for now, this is it.

I am Roxified
Top Websites To Learn ReactJS - mujeeb0147
Tags: react, javascript, beginners, webdev
Published: 2022-10-06 09:27:14




####   Original Tweet From  [@mujeeb0147](https://twitter.com/mujeeb0147)
{% embed https://twitter.com/mujeeb0147/status/1577863693286752256 %}


Thread🧵👇 

➖ React 
🔗 {% embed https://reactjs.org %}


➖ Scrimba
🔗  https://scrimba.com/dashboard#overview 

➖ Pluralsight
🔗 {% embed https://www.pluralsight.com/search?q=React %}

➖ freeCodeCamp
🔗 {% embed https://www.freecodecamp.org/ %}

➖ Youtube
🔗 {% embed https://www.youtube.com %} 

➖ Udemy
🔗 {% embed https://www.udemy.com %}

➖ Coursera
🔗 {% embed https://in.coursera.org %}

##### Click [Here](https://www.knowledge-twitter.com/?utm_source=dev.to)  For More Posts Like This [https://www.knowledge-twitter.com](https://www.knowledge-twitter.com/?utm_source=dev.to)

If you enjoyed this topic, please do the following:
1. Retweet the first tweet.
2. Add me as a follower and enable notifications: [@mujeeb0147](https://twitter.com/mujeeb0147).
Thank you for staying with me this far.
Reference sample: Single Page App connected to Microsoft 365
Tags: javascript, beginners, microsoftgraph, webdev
Published: 2022-10-06 10:47:29

---
title: Reference sample: Single Page App connected to Microsoft 365
published: true
date: 2022-10-06 09:19:59 UTC
tags: javascript,beginner,microsoftgraph,webdev
canonical_url: https://blog.mastykarz.nl/reference-sample-single-page-app-connected-microsoft-365/
---

![Reference sample: Single Page App connected to Microsoft 365](https://blog.mastykarz.nl/assets/images/2022/10/banner.png)

When building apps connected to Microsoft 365, before you can bring in data from Microsoft 365, you need to set up authentication. Here's a reference sample of a Single Page App that shows how to do that.

## Work apps need work data

Microsoft 365 is a popular set of applications that organizations across the world use to facilitate collaboration and communications. It's also a platform that you can use to build apps for work and streamline how people work together.

![Types of apps that you can build on Microsoft 365 grouped into extensions and custom apps](https://blog.mastykarz.nl/assets/images/2021/02/microsoft-365-types-apps.png)

These apps can show up inside Microsoft 365, bringing information from line of business systems into the apps that people use every day. They can also be standalone web-, desktop-, and mobile apps that combine data and insights from Microsoft 365 with data from other systems.

No matter which type of app you choose to build, you need to start with connecting to Microsoft 365, which means you need to set up authentication.

## Reference sample: Single Page App connected to Microsoft 365

Because you can build many types of apps connected to Microsoft 365, there are many ways to set up authentication. And if you're just starting building apps for Microsoft 365, it might not be quite clear for you what it is exactly you need and how to combine the different parts together.

To help you get started, I built a [sample Single Page Application](https://github.com/waldekmastykarz/js-graph-101) that shows you how to:

- setup authentication with Microsoft 365 in a Single Page Application
- let users sign in and -out with their Microsoft 365 accounts to your app
- retrieve data from Microsoft 365 using Microsoft Graph
- register your app with the Microsoft identity platform

The sample app is built using plain JavaScript, which lets you reuse the code in any JavaScript framework. In the repo, you'll find the app built in two ways, using [immediately invoked function expressions (IIFE)](https://github.com/waldekmastykarz/js-graph-101/blob/6532d217f3e33304d2e4de18f1d482987818cfd9/index.html) and using [ES modules (ESM)](https://github.com/waldekmastykarz/js-graph-101/blob/6532d217f3e33304d2e4de18f1d482987818cfd9/index_esm.html). It's largely a matter of preference which one you choose to use, but I wanted to show you both approaches.

If you want to see how I built the app step by step, check out my [recent article on freeCodeCamp](https://www.freecodecamp.org/news/build-microsoft-365-application-in-10-minutes/).
Programming = Creativity 🎨
Tags: programming, beginners
Published: 2022-10-06 09:16:40

When I was younger, I wanted to be an inventor. I loved creating things from my imagination and bringing it to life.

Unfortunately, for my parents, a lot of my raw materials came from taking apart the things I already owned.

I even had a box of parts that I had collected from dismantling the various gadgets I owned over the years and couldn’t put back together.

Nothing was safe from my screwdriver, including my Game Boy and Walkman.

I then discovered programming, and not only could I create things again, but my innocent electronics didn’t need to suffer.

Over the years of being a professional developer, it has been easy to forget why I got into programming in the first place.

The life of a developer, especially in the junior years, is around completing tasks that have been assigned to you. Whether it be an urgent bug fix or adding in the next feature on the list of never-ending enhancements. There isn’t much room for creativity when you first start out in your career.

As you progress up the developer career ladder, you do get more opportunities to add a bit of creative flare in how you build something, but there isn’t much choice as to what you build.

If you are like me, you got into programming to create, then it is essential to have some side projects on the side that allow you to take some creative control. It is also a great way to learn some new skills that you might not get the chance to do in your day job.

Another great way to flex those creatives muscles is to teach what you are learning. It is easy to forget that not everyone knows what you know now. This is called the “curse of knowledge”. What is obvious to you isn’t necessarily obvious to everyone else.

Currently, I am taking a creative sabbatical from full-time software development to teach what I know to others.

If you are interested in following along, I will be posting 2 videos a week on YouTube and a new blog post each week on my website.

If you aren’t feeling fulfilled, I would highly recommend finding a side project where you can be a bit more creative than you get to be in your day job.

---

This post is from my newsletter [Sunday Syntax](https://www.alexhyett.com/newsletter/) where every Sunday I share tips, tools and actionable advice for software developers, straight to your inbox.
Understanding The Backend MVC & SPA Architecture
Tags: webdev, beginners, devops, programming
Published: 2022-10-06 09:08:40

Backend is the backbone of an Application. You can say it should be any application like Android, iOS, Web, iOT, Robotics, Desktop, Games e.t.c Apps. Backend will definitely controls your application from back. Which people will never seen into inspect elements or else.

This is the system which can controls your application. You can create API or standalone Backend for specific Web or Mobile or you can developing or designing your own games backend too.

Actually backend will manage your applications data or states. And the backend can also communicate with Database. 

Now we have some application development architectures like,

1. MVC Architecture ( Model View Controller ).
2. SPA Architecture ( Single Page Application ).

Also there is most popular Backend architecture besides of applications architecture we have like,

1. Monolithic Architecture.
2. Microservice Architecture.

### MVC ( Model View Controller ) Architecture

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/55xm1651it0smk0ffnon.png)

> This is the Backend’s most used and successful and traditional architecture. PHP also used this architecture on their framework call Laravel. But we can implements into any other language, frameworks like Express (Node.js), DJango (Python), Nest.js etc.
> 

### SPA ( Single Page Application ) Architecture

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

> Single Page Application is most powerful and cross independent Backend architecture. Developed to focusing on not only developing web application. But also focused on any others application developments like: Mobile Application, Desktop Application, iOT Device, Web Application, Games, and more. Because this Backend should returns API (Application Programming Interface), that’s why any others application of Frontend should must understand this API and it knows how to communicate and deal with this.
>
Stay on top of the new release of Excel Add-ins 2.7
Tags: exceladdins
Published: 2022-10-06 09:06:49

---
title: Stay on top of the new release of Excel Add-ins 2.7
published: true
description: Devart rolled out a new version of Excel Add-ins 2.7
tags: exceladdins
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---
Devart, a recognized vendor of world-class data connectivity solutions for various data connection technologies and frameworks, announced the new version of [Excel Add-ins 2.7](https://www.devart.com/excel-addins/?utm_source=devto&utm_medium=referral&utm_campaign=pr_exceladdins_06.10.2022). This release includes official Windows 11 support, multiple security, and performance improvements.

**The list of the other improvements:**

- Excel Add-in for Microsoft Dynamics CRM was renamed to Excel Add-in for Microsoft Dynamics 365.
- Implemented built-in encryption support for SQLite databases: AES-128, AES-192, AES-256, Blowfish, CAST-128, RC4, and Triple DES.
- A user’s external default browser is used instead of OAuth web login for the following components: Microsoft Dynamics 365, Google Workspace, HubSpot, Salesforce, and Zoho CRM.
- New "Buffer size" parameter id added to Option -> Import -> Data -> General

To learn more about the recent release and download new products, visit:
https://blog.devart.com/excel-add-ins-version-2-7-released.html

**Excel Add-ins** allow you to work with database and cloud data in Microsoft Excel as usual Excel spreadsheets. You can get precisely the data you need with visual Query Builder or SQL and refresh the queried external data in a workbook at any time with a single click.

**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/.