teleren/devto huggingface dataset:
CloudFlare Workers - some functionality can only be performed while handling a request
Tags: cloudflare, javascript, cloud, cloudflarepages
Published: 2022-10-22 08:51:34

Have you encountered this error when trying to upload a CloudFlare Pages function?

```
Error: Failed to publish your Function. Got error: Uncaught Error: Some functionality, such as asynchronous I/O, timeouts, and generating random values, can only be performed while handling a request.
```

I ran into it recently when tying to deploy what I thought should be a relatively simple function.

Directions to tell me that the issue was `at worker.mjs:11:28` didn't really help me with where to find the issue in my TypeScript code.

Through a process of trial and elimination I ended up finding that it was down to how I was creating `Response` objects for  my error cases.

```TS
const errorResponse =  new Response("Error message", {
    status: 400,
  });
```
I had this at the top level of a module I was importing.  

Turns out this is not allowed. Instead I just need to create the responses during the execution of the function by turning the assignment statements in to anonymous factory functions. 

```TS
const errorResponse = () => new Response("Error message", {
    status: 400,
  });
```

This keeps the code looking the way I want and CloudFlare is happy to deploy it to a worker. 

In retrospect the error message makes sense, but without the context of having solved it I had a really hard time.
Javascript: .forEach and array.filter explained
Tags: array, foreach, programming, javascript
Published: 2022-10-22 08:49:20

_//Create and array of tv shows. Loop through and print each show to the console_

`let shows =['bachelor', 'big brother','weel of fourtune']
shows.forEach(show => console.log(show)) `


We`re going to run once for each element in the array,we have 3 elements in the array. Each time is going to run is,going to pick each element from the array,and then plug it into 'show'. They are going to be console log(show).




_//Create and array of numbers_

`let num=[1,2,3,4,5,6]`




_//Return a new array of numbers that includes every even number from the previous Arrays_

`let onlyEvens = arr => arr.filter( n => n%2 === 0 ) `


We want to get just the even numbers ,so we will use a filter method with modulus . The cool thing about filter is that it runs once for each element in the array and it checks to see if something is true. If it is true it includes that in the new array.

 n => n%2 === 0 ) so we`re going to take in an "n", and we`ll say n is % (modulus) 2 ,and that equals 0. 

arr => arr.filter(n => n%2 === 0 ) This is an arrow function that will work with any array. We named our parameter 'arr'.

Then I runned the filter method (arr.filter(n => n%2 === 0 ) ) on that array. Is same as running the "map", it`s filter another method build into JS. What the 'filter' will do it is that is going to help us set up a new array, just as like "map" set up a new array, filter method set up also a new array.

To add a value to this new array, this statement (n => n%2 === 0 ) winds up to be true. If is not true, we don`t add that value into the array. So the very first time this runs, we are filter throught 'nums' because 'nums' is the array that we pass in. We called only evens and we pass in nums console.log(onlyEvens(nums)) So wherever we see 'arr','arr' is 'nums' just how we declare the function values in console.log.

"filter" is going to run 6 times because their are 6 numbers,6 elements in the array let num=[1,2,3,4,5,6]

The very first time nums will run, will be 1. Does 1%2=0? NO 1 is not an even number so that`s a false.S o we don`t add 1 to our new array. Next we try with all the numbers from the array. So even numbers will be 2,4,6 and will be added to our new array.

This new array arr.filter(n => n%2 === 0 )  is created right here, and something specific is going to happen.It is an implicit return. That means the new array we just created it gets returned to where it is called ( console.log(onlyEvens(nums)) ) to (nums). So [2,4,6] is going to be putted into the new array. 

The 'filter' is going to create a new array for us => arr.filter(n => n%2 === 0 ) , and whenever is done creating that new array ,it gets returned to where it was called. To nums here in the console.log(onlyEvens(nums)) .

`let shows =['bachelor', 'big borther','weel of fourtune']
shows.forEach(show => console.log(show))
let num=[1,2,3,4,5,6]
let onlyEvens = arr => arr.filter( n => n%2 === 0 ) 
console.log(onlyEvens(nums))`
Windows start menu search not working, search textbox not accepting input
Tags: misc, software
Published: 2022-10-22 08:36:04

---
title: Windows start menu search not working, search textbox not accepting input
published: true
date: 2022-10-22 08:35:04 UTC
tags: misc,software
canonical_url: https://siderite.dev/blog/windows-start-menu-search-not-working-search-textb/
---

Original post at: https://siderite.dev/blog/windows-start-menu-search-not-working-search-textb/

  Symptoms:

- You press the Start key (or open the Start menu) and you type something expecting to filter items
- Instead nothing happens
- You click on the Windows 11 search textbox in the Start menu, but it takes no input
- You get notifications in the tray bar, but if you click on them, like on Windows Updates, it doesn't open Windows Updates

  I searched and searched. No, it wasn't running _ **ctfmon** _. No, it wasn't restarting anything. No, I didn't want to reinstall Windows all over again.

  What it was was removing/renaming the IrisService _ **Computer\HKEY\_CURRENT\_USER\Software\Microsoft\Windows\CurrentVersion\IrisService** _ registry entry and restarting the computer. I thank [Tech Advisor](https://www.techadvisor.com/article/744658/how-to-fix-missing-taskbar-and-start-menu-in-windows-11.html "How to fix missing taskbar and Start menu in Windows 11") for this, although the problem wasn't that there were no answers on the net, but that there were too many and the vast majority of them were wrong and inept.

  Searching further, with the solution in hand, I found this little link: [Windows 11 bug](https://answers.microsoft.com/en-us/windows/forum/all/windows-11-bug/fcd5f9de-3cda-4365-bfc3-b06396bf57d9 "Recently, Windows Insiders in both the Dev and Beta Channels began reporting that Start and Taskbar were unresponsive and Settings and other areas of the OS wouldn’t load. We quickly discovered an issue with a server-side deployment that went out to Insiders and canceled that deployment"), so it is indeed an issue coming from Microsoft itself (probably update [KB5006050](https://www.windowslatest.com/2021/09/02/windows-11-build-22000-176-is-out-with-quality-improvements/ "Windows 11 Build 22000.176 (KB5006050) is out with improvements")). That should probably teach me against installing optional updates on my computer.  

  The funny thing is that after I did this, I restored the original values of the registry entry and it didn't have any effect. What is this [IrisService](https://www.reddit.com/r/Windows11/comments/ph1i7k/what_is_irisservice_doing_and_why_was_it_able_to/ "What is IrisService doing, and why was it able to trash machines that had not been updated or had been rolled back?")? No one seems to know for sure.

  Well, hope it helps!
New git guidelines: We have switched to Conventional Commits
Tags: git, webdev, programming, opensource
Published: 2022-10-22 08:28:39

Giving teams as much autonomy as possible is a good idea, but having some company-wide guidelines can also help. Those guidelines will help you when people switch teams, work on multiple products, or train new colleagues.

## Discuss, decide, repeat

We recently discussed some technology-related topics with all software developers at [visuellverstehen](https://www.visuellverstehen.de). One of the outcomes of this discussion is new git guidelines. After a short debate, we have [officially](https://twitter.com/malteriechmann/status/1582599067959320577) switched to [Conventional Commits](https://www.conventionalcommits.org).

It is fun to see all the latest commits following a new syntax. I am curious about what we will say about this change in six or twelve months. For sure we will discuss and decide again – for the better.

## New git guidelines

Below you can find the November 2022 edition of our git guidelines.

### Repositories

- Repositories should be named like this: `vvcode-name_of_project`

### Branches

- The main branch should be named `main`
- The people working on a product decide if they want to work with further branches
- If you need further branches, it is advisable, to add the number of the issue and a short title inside of a branch name, e. g.:
  - `100-validation-errors`
  - `101-basic-search`
  - `102-german-translation`
  - `103-live-deployment`
  - `104-url-formatting`
 
### Commits
- We use the syntax from Conventional Commits
- Commit messages include one of the following prefixes:
  - `fix:` to fix bugs
  - `feat:` to introduce new features
  - `chore:` to make general changes
  - `ci:` to work on continuous integration/continuous deployment
  - `refactor:` to improve existing source code
- Commit messages should be written in the present form
- Commit messages should be written in English
- Commit messages should start with a lowercase character
- It is advisable to add the issue number to a commit message
- Practical examples of commit messages:
  - `fix: display validation errors properly, refs #100`
  - `feat: implement basic search, refs #101`
  - `chore: add correct german translation, refs #102`
  - `ci: repair live deployment, refs #103`
  - `refactor: unify URL formatting, refs #104`
- If a commit is a work in progress, it should be marked as such:
  - `fix: display validation errors properly (WIP), refs #100`
  - `feat: implement basic search (WIP), refs #101`
  - `chore: add correct german translation (WIP), refs #102`
  - `ci: repair live deployment (WIP), refs #103`
  - `refactor: unify URL formatting (WIP), refs #104`
JavaScript Hack 1- Use of console.table()
Tags: javascript, webdev, programming, beginners
Published: 2022-10-22 08:11:33

JavaScript is really a cool language. It has some awesome features that we should know. In this article, we are gonna see something really cool which is maybe you didn't see before.

## console.table()
This awesome method will help you to CSV or dictionary format data in a table.
It takes one mandatory data which is must be an array.It will return you a table of this array. Every element of the array will be a row of table.

Let's have a look of it-

```
// Store data in an array
var data = ['Mercedes', 'Tesla', 'Rolls Royce', 'BMW'];

//Output
console.table(data);
```

Let's move forward. Now we're gonna display an object in this method.

```
// An array of object

function Car(brand, ceo){
    this.brand = brand;
    this.ceo = ceo;
}

const mercedes = new Car('Mercedes', 'Ola Källenius');
const tesla= new Car('Tesla', 'Elon Musk');
const rollsRoyce = new Car('Rolls Royce', 'Warren East');
const bmw= new Car('BMW', 'Harald Krüger');

//Output
console.table([mercedes, tesla, rollsRoyce, bmw])
```

Isn't it cool? I hope you enjoy this. Feel free to leave a comment and also share & ❤️ it.

You can follow me:)
[Twitter](https://twitter.com/tanzirul_huda)

Happy coding🧑‍💻!
These 11 free APIs will take your programming projects to the next level 👇
Tags: webdev, programming, react, javascript
Published: 2022-10-22 08:00:02


1. DummyAPI

From fake users to fake comments and posts. 

Dummy API has everything you need to make your app look like it’s bustling with real user activity.

Say goodbye to hard-coded JSON data 👋

👉 [dummyapi.io](http://dummyapi.io/)


2. Mapbox

Building a location-based project? this is the API for you!

Used by well-known companies like Strava so you know their API is top quality.

Their free-tier threshold is very generous that you can use Mapbox without paying a cent.

👉 [mapbox.com](http://mapbox.com/)


3. Fake Store API

An e-commerce store is a great project to have and it just got easier with Fake Store API.

Forget about spinning up the backend and database and focus on building cart, wishlists, recommendations and other functionalities💡

[👉 fakestoreapi.com](http://fakestoreapi.com/)


4. Mailchimp

There’s no better way to say “I’m a pro” than to have automated welcome emails sent to your users.

With Mailchimp’s generous free tier, you can do just that!

[👉 mailchimp.com](http://mailchimp.com/)

5. Sejda

Ever had to download a PDF just to read or edit it? Only to upload the changes again.

Don't let your users endure this poor UX.

With Sejda's API, you can read and edit PDFs straight from your web app.

[👉 sejda.com](http://sejda.com/)

6.  Serp API

The possibilities are endless when you have the power of Google and other search engines behind you.

Serp API makes this all possible.

Image what you can build with that power!

[👉 serpapi.com](http://serpapi.com/)

8. Auth0 API

Auth0 is a great way to implement OAuth or single-sign-on (SSO).

SSO gives the user the ability to sign up or sign via a 3rd party application like Facebook or Google.

This is a great feature to add to a larger project.

[👉 auth0.com](http://auth0.com/)

9. Movie DB API (TMDB)

This API is epic!

It’s got so much data, well documented, and allows you to create incredible apps like a Netflix clone.

And it’s completely free. Just attribute them in your application.

[👉 themoviedb.org/documentation/…](http://themoviedb.org/documentation/api)

10. Random User Data API

Stop wasting time manually creating fake user data.

Just pull through comprehensive random user data from this API.

Very handy API for projects. 

And it simulates real practices much more than hardcoding data.

[👉 randomuser.me](http://randomuser.me/)

11. Apitoolkit 

Prevent the decline in your subscribers or users.

Apitoolkit allows you to detect and anomalies before your users get to know. They offer comprehensive features that you will like to explore for free.

Visit apitoolkit: [https://apitoolkit.io/](https://apitoolkit.io/)

I hope this post helps 😊 

Want to thank me ☺️, buy me a coffee ☕️ [here](https://www.buymeacoffee.com/elliotbrenh)
howtouselinux
Published: 2022-10-22 07:59:32


The [howtouselinux](howtouselinux.com) website provides information on how to use Linux, a free and open source operating system. It includes step-by-step tutorials and articles on how to use different features of Linux, as well as tips and tricks for getting the most out of this versatile OS.



Linux is a versatile operating system that can be used for tasks as simple as surfing the web, to complex server administration. This website aims to document as many of the various ways you can use Linux, as well as providing tips and tricks for power users.



If you're new to Linux, be sure to check out the beginner's section. Here you'll find articles on how to get started with using this operating system, as well as some basic tutorials. Once you've got a grasp of the basics, you can move on to more advanced topics such as setting up a web server or using the command line.



If you're already familiar with Linux, you can skip ahead to the tips and tricks section. Here you'll find ways to get more out of Linux, such as customizing your desktop or setting up a VPN. You can also learn about some of the advanced features of this operating system, such as using Bash scripts or securing your server.



The cloud is changing the way we use computing resources. Howtouselinux provides tutorials and articles on popular cloud technologies such as OpenStack, AWS, Google Cloud Platform, and more.



 You can learn how to set up and use these cloud services to create a scalable and reliable infrastructure.



Howtouselinux also features a variety of other resources, such as a forum for users to ask questions and share tips, and a directory of Linux-related software and services. So if you're looking for information on how to use Linux, this website is a great place to start.

[2 ways to check disk IOPS in Linux - howtouselinux
](https://www.howtouselinux.com/post/check-disk-iops-in-linux
)
[4 ways to check file size in Linux](https://www.howtouselinux.com/post/check-file-size-in-linux)

No matter what your level of experience is, this website has something for you. So start exploring and learn how to use Linux today!

[About howtouselinux.com](https://www.howtouselinux.com/about-us)
HacktoberFest2022 was awesome!!!
Published: 2022-10-22 07:26:17

Hey Folks 👋
Finally, my all PRs got accepted by Hacktoberfest 🎉


For those who don’t know what is Hacktoberfest?

Hacktoberfest is a month-long celebration of open-source projects presented by DigitalOcean, Appwrite, and Docker, Inc supported by Novu, RapidAPI, and Devtron Inc. in partnership with GitHub, and GitLab.
Hacktoberfest is a yearly event to encourage people to contribute to open source in October.


I got all 4 pull requests accepted in this year's hacktoberfest. I am quite happy to complete the challenge.

Actually, this was my first time participating in Hacktoberfest. Although I had heard about it the previous year, I didn't complete the challenge.

Will post more detailed blogs in upcoming days.
This week’s newsletter is out! (22-10-2022) - Beautiful Robots
Tags: javascript, tech, webdev
Published: 2022-10-22 07:24:54

---
title: This week’s newsletter is out! (22-10-2022) - Beautiful Robots
published: true
description: Another week of great javascript, tech and web development links.
tags: javascript, tech, webdev, discuss
---

Beautiful Robots

https://markjgsmith.substack.com/p/mark-smiths-newsletter-22-10-2022

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
Steps to get a remote job/gig. - TundeTASH
Tags: job, career, beginners
Published: 2022-10-22 07:19:22

####   Original Tweet From  [@TundeTASH](https://twitter.com/TundeTASH)
{% embed https://twitter.com/TundeTASH/status/1582775829914079237 %}
If you have been looking for online remote jobs/gigs, but having difficulty navigating that landscape open this thread. 

So if you are looking for online remote jobs/gigs ranging from:

- Content Writing
- Data Analysis
- Software Developing
- Marketing
- Graphic Design
- Sales
- Many more

Here are: 

- Steps to get a remote job/gig.
- Best sites (categorized) for remote jobs. 

Remote jobs can be hard to get for many, but those who have mastered that art will tell you it comes with being consistent.

It is important to note for a better remote experience, you need a Laptop. Navigating the landscape or completing tasks with your phone isn't realistic. 

1. Define your niche. The more you focus on a specific skill/category of remote job, the easier it is to navigate the landscape

2. Create a profile. This goes beyond just creating one. Have a unique description, profile image (if requested). A successful profile is 100% complete 

3. If the site is the type that requires a resume, please update your resume, portfolio, or showreel with a breakdown of skills, jobs, and projects you've previously worked on.

4. You need to offer quality &amp; timely services so clients can refer you or even return for more. 

AdSpace Here!!

Freelance &amp; Contract Remote Job Boards
1. Upwork
2. Fiverr
3. Freelancer. com

Dedicated Remote Job Boards
1. We Work Remotely
2. Jobspresso
3. Working Nomads
4. FlexJobs
5. JustRemote
6. Remote. co
7. Virtual Vocations
8. Pangian
9. Remotive
10. Remote OK
11. Skip the Drive 

Tech-Related Remote Work Opportunities
1. AngelList
3. Authentic Jobs
4. PowerToFly
5. Landing Jobs
6. Stack Overflow
7. Gun. io
8. GitHub Jobs
9. Dribbble
10. Dice 

AdSpace Here!!

One thing to always do is to filter on remote sites to drill down on your niche or how recently the job was posted. This really helps.

An example is a filter option for Marketing remote jobs on 'Workaline'. ![Twitter Image 0](https://pbs.twimg.com/media/FfcnubcX0AAzJVH.png) 



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)
What are the some best instagram notes ideas
Tags: instagram, caption
Published: 2022-10-22 07:11:18

Following the progress of Instagram Reels, Instagram has now concocted another element for its clients called "Notes" that permits clients to compose short notes with a 60-character limit. The element of Notes has been carried out, such countless individuals are as yet confounded about what is Instagram notes and what should be written in it, then its finished data is given here.

## Best Notes Ideas for Instagram

- Just me!
- yesterday is history, tomorrow is a mystery.
- blessed mess
- inhale sky, exhale stars
- not a secret, just not your history
- all we have is now.
- let your soul glow
- to glam to give a damn
- no beauty shines brighter than that of a good heart
- No more excuses
- If you looked into my eyes , would you see what’s inside?
- too cute to care
- stay low key , disappear , disconnect and glow up
- Beauty is one thing, but a pure heart , that is beautiful
- I’m so happy we got to do this together!
- Check out all the cute things | saw today!
- Just having a chill night in.
- one step at one time
- I’m sorry for the honesty
- never easy but always worth it
- every kind of way
- self love is the best love
- so much hair for you to play
- make yourself a priority
- golden hour bb
- Good food, good mood
- Sky high, sky fly, sky dope
- He said you look crazy Thank you, baby I owe it all to you
- Yes I’m a little dangerous
- After all in the end, we lie So what ? So what?
- Light or light or my crown shines
- Who’s the Queen/king who’s the boss?
- Look at my feet down down
- I’m an angel’s mistake
- Friends make this world beautiful
- Oh, get closer to the secret
- Worry less, smile more.
- Life is better when you’re laughing
- Just another day at the office!
- Life recently
- The lost files
- I have no idea what’s going on
- This was the best day ever!
- I’ll never forget this day!
- stressed but blessed
- hoes be fore boys
- dont rush something you want to last forever.
- I am my own biggest crush.
- Friday is like free day, it’s cool!
- I run, learn, lam luxury
- Oh hey there
- I make pretty lies for you
- I’m not high maintenance, you’re just low effort

## Final words

Instagram's new element [Instagram Notes](https://techyatri.com/instagram-notes-ideas/) is perfect for sharing your considerations. Like stories, notes are noticeable for 24 hours, after that you can compose another note. One of the greatest contrasts between Instagram Stories and Instagram Notes is that you can add just a single note at an at once, while with Stories you can add more than one story.