teleren/devto huggingface dataset:
Set Azure Function timeout without republishing
Tags: azurefunctions
Published: 2024-01-13 21:33:15

---
title: Set Azure Function timeout without republishing
published: true
date: 2024-01-10 10:00:00 UTC
tags: AzureFunction
canonical_url: https://iamguidozam.blog/2024/01/10/set-azure-function-timeout-without-republishing/
---

A while ago I needed to change an Azure Function timeout but I wanted to avoid, if possible, to republish it. After a little while searching I discovered [this page](https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#override-hostjson-values) which explain how to overwrite the values specified in the host.json file with the values specified from the Azure configuration.

The article states that if you specify a configuration value in the following format:

```
AzureFunctionsJobHost __path__ to__setting
```

The runtime will replace the existing value of the `path.to.setting` with the one specified.

_Note that the dot (.) in the setting name must be expressed as double underscore (\_\_) when specifying the setting in the Azure configuration._

In my case I wanted to override the value of the function timeout to 1 hour so I added the following to the Azure Function configuration in the Azure portal:

```
AzureFunctionsJobHost__functionTimeout: 01:00:00
```

Hope this helps!
Building a Simple Task Management API with Node.js, Express and MongoDB
Published: 2024-01-10 09:57:34

## Introdoction

Task management is a crucial aspect of many applications and building a robust backend to handle tasks can streamline your development process. In this article, we'll create a simple Task Management API using Node.js, Express, and MongoDB. The code is organized into three main files: `server.js`, `connectDB.js`, and `taskModel.js`.

## 1. Setting up the Express Server

Let's start by setting up our Express server in `server.js`. This file acts as the entry point for our application.

```
// server.js

const dotenv = require("dotenv").config();
const express = require("express");
const connectDB = require("./config/connectDB");
const mongoose = require("mongoose");
const Task = require("./model/taskModel");

const app = express();

// Middleware
app.use(express.json());
app.use(express.urlencoded({ extended: false }));

// Routes
app.get("/", (req, res) => {
  res.send("Home page");
});

// Create a Task
app.post("/api/tasks", async (req, res) => {
  try {
    const task = await Task.create(req.body);
    res.json(task);
  } catch (error) {
    res.status(500).json({ msg: error.message });
  }
});

const PORT = process.env.PORT || 5000;

const startServer = async () => {
  try {
    await connectDB();
    app.listen(PORT, () => {
      console.log(`Server running on port ${PORT}`);
    });
  } catch (error) {
    console.log(error);
  }
};

startServer();

```

In this code snippet, we've set up an Express server, defined a simple route for the home page, and created an API endpoint for adding tasks.

## 2. Connecting to MongoDB

The `connectDB.js` file is responsible for establishing a connection to our MongoDB database using Mongoose.

```
// connectDB.js

const mongoose = require("mongoose");

const connectDB = async () => {
  try {
    const connect = await mongoose.connect(process.env.MONGO_URI);
    console.log(`MongoDB Connected`);
  } catch (error) {
    console.log(error);
    process.exit(1);
  }
};

module.exports = connectDB;

```
This module exports a function that connects to MongoDB using the URI specified in the `MONGO_URI` environment variable.


## 3. Creating the Task Model

In `taskModel.js`, we define the Mongoose schema for our tasks and create a model based on that schema.

```

// taskModel.js

const mongoose = require("mongoose");

const taskSchema = mongoose.Schema(
  {
    name: {
      type: String,
      required: [true, "Please add a task"],
    },
    completed: {
      type: Boolean,
      required: true,
      default: false,
    },
  },
  {
    timestamps: true,
  }
);

const Task = mongoose.model("Task", taskSchema);

module.exports = Task;

```
This module exports the `Task` model, which represents the structure of our task documents in the MongoDB collection.




> _Adding more features_ 
> _updating and_
> _deleting tasks,_
> _implementing,_
> _user authentication..._
擷取 Windows 使用者帳戶控制畫面
Published: 2024-01-10 09:55:11

Windows 的使用者帳戶控制畫面會把整個桌面變暗, 而且無法進行任何其他操作, 如果你想要擷取使用者帳戶控制畫面, 可以這樣做：

1. 搜尋 UAC, 執行**變更使用者帳戶控制設定**：

    ![image](https://hackmd.io/_uploads/SyCCKyn_6.png)

2. 將**選擇電腦變更的通知時機**調低倒到數第二格, 也就是**應用程式嘗試變更我的電腦時才通知我(不要將桌面變暗)**
    
    ![image](https://hackmd.io/_uploads/BJA3mk2_p.png)

    設定好後按下確定後就會出現**使用者帳戶控制**畫面, 按**是**同意：
    
    ![image](https://hackmd.io/_uploads/rkl9By2d6.png)

3. 接著就可以測試看看, 例如搜尋 PowerShell, 然後以管理員身分執行, 就會出現**使用者帳戶控制**畫面, 不過它會變成一般視窗, 不會把桌面變暗, 你也可以進行其他視窗操作, 或是使用截圖工具擷取畫面：

    ![image](https://hackmd.io/_uploads/By-JEJnua.png)
    
不用擔心調低一級會有什麼安全疑慮, 原本會出現 UAC 畫面的情況還是會出現 UAC, 只是顯示的方式變成一般視窗。其實大部分的人應該看到 UAC 都還是直覺勇敢按**是**, UAC 畫面有沒有出現似乎沒有太大差別。
FIRST_VALUE Function In SQL Server
Tags: sql, datascience, beginners, data
Published: 2024-01-10 09:47:56

## FIRST VALUE FUNCTION

The FIRST_VALUE() function in SQL Server fetches the initial value from a designated column. It works alongside the ORDER BY clause to determine the sequence and, if necessary or needed, the PARTITION BY clause to create data partitions before retrieving the first value. This function is useful for obtaining the foremost value based on a specified order in a dataset.

- Introduced in SQL Server2012
- It fetches the initial value from a designated column
- ORDER BY Clause is mandatory
- A PARTITION BY Clause can be used

**Syntax: FIRST_VALUE(Column_Name) OVER(ORDER BY COLUMN1, COLUMN2, COLUMN3.............)**.

We will be utilizing the table mentioned below. The provided code is available if you would like to experiment with it.

```sql

CREATE TABLE Employees(
ID INT ,
NAME VARCHAR(50),
GENDER VARCHAR(10),
SALARY INT)

INSERT INTO Employees VALUES(
1, 'Joe', 'Male', 10000
),
(
2, 'Ryan', 'Male', 20000
),
(
3, 'Hannah', 'Female', 30000
),(
4, 'Joy', 'Female', 40000
),
(
5, 'Rash', 'Male', 50000
),
(
6, 'Halima', 'Female', 60000
),
(
7, 'Chris', 'Male', 70000
),
(
8, 'Judith', 'Female', 80000
) 
```



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


### First_Value Function without PARTITION BY

```sql
SELECT Name, Gender, Salary,
FIRST_VALUE(Name) over(order by salary) as FirstValue
from Employees
```

The FIRST_VALUE function in SQL Server operates by specifying the column from which you want to retrieve the initial value. It requires the use of the OVER keyword along with an ORDER BY clause to organize your result set. For instance, we employed this function on a column named 'name' and order it accordingly, selecting 'JOE' as the first value, the function will return 'JOE' for all rows, effectively populating the entire result set with this specific initial value from the 'name' column. Here is the expected result set.


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


### First_Value Function with PARTITION BY

```sql
SELECT Name, Gender, Salary,
FIRST_VALUE(Name) over(Partition by Gender order by salary) as FirstValue
from Employees
```

The FIRST_VALUE function in SQL Server has the flexibility to incorporate the PARTITION BY clause when necessary. Similar to the previous example, it retrieves the initial value from a designated column. However, when used with PARTITION BY, the function divides the result set based on a specified category, like how we partion with 'GENDER', creating separate partitions for analysis or extraction of the initial values within each distinct partition. Here is the expected outcome.


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


For SQL and Tech related article, let's connect on [X](https://twitter.com/vilimzy) and [Linkedin](https://www.linkedin.com/in/ibrahim-enemona-abdulrasheed-375807249/). Happy Learning!
Exploring Quivr: Generative AI Productivity Assistant
Tags: ai, machinelearning, community, discuss
Published: 2024-01-10 09:46:39

As someone fascinated by AI projects and tools, I'm always on the lookout for new advancements in the field. Recently, I stumbled upon an intriguing project that caught my attention: **Quivr**.

Unlike many AI-powered tools, Quivr offers a unique proposition—it's self-hosted. This piqued my interest because, in a landscape dominated by cloud-based solutions, having a self-hosted alternative is refreshing.

### What is Quivr?

Quivr bills itself as your personal productivity assistant, leveraging GenerativeAI to create what they call a "second brain." It's designed to resemble Obsidian but turbocharged with AI capabilities.

### Exploring its Technical Underpinnings

Under the hood, Quivr employs an interesting mix of technologies such as Langchain, GPT 3.5 / 4 turbo, Private, Anthropic, VertexAI, Ollama, and LLMs. This unique blend sets it apart from many mainstream AI-driven tools.

### Self-Hosting: A Standout Feature

What truly stands out about Quivr is the option to self-host it. This gives users more control over their data and how they interact with the tool—a feature not commonly found in AI-driven productivity assistants.

### Getting Started and Installation

Quivr's deployment seems comprehensive, catering to various file formats and offering offline accessibility, making it quite versatile. The installation process, guided by Docker and Docker Compose, appears user-friendly.

### Contributing to Quivr's Development

One thing that excites me about such projects is the potential for community involvement. Quivr seems open to contributions, which often leads to vibrant and diverse improvements.

### Conclusion: Worth Exploring

While I'm still delving deeper into Quivr, the concept of a self-hosted, AI-powered productivity assistant is captivating. It's not often you stumble upon such projects, and this one seems promising for those interested in AI and productivity tools.

Repo: [repository](https://github.com/StanGirard/quivr)
Experience Unparalleled Elegance on the Waters: Luxury Houseboats in Alleppey
Tags: luxury, houseboats
Published: 2024-01-10 09:38:31


Embrace the epitome of luxury and romance aboard a stunning houseboat in the tranquil backwaters of Alleppey. At Lake Park Cruise, we redefine opulence with our fleet of luxury houseboats, offering an unforgettable escape into the heart of Kerala's aquatic paradise.

Unveiling a World of Luxury
Our [luxury houseboats in Alleppey](https://lakeparkcruise.com/), often referred to as 'floating palaces', are a testament to fine craftsmanship and elegance. Here's what sets them apart:

Exquisite Design:

Our Designer Houseboats Collection showcases intricate woodwork, plush interiors, and panoramic windows for an immersive backwater experience.
Premium Amenities:

Indulge in state-of-the-art amenities. From air-conditioned bedrooms to jacuzzis, our Amenities Page details everything you need for a lavish stay.
Personalized Services:

Experience bespoke services, including personal chefs and on-board spa treatments. Visit our Exclusive Services Section for more.
"Every moment on the Lake Park Cruise was like a dream, surrounded by luxury and the captivating beauty of Alleppey." - A delighted guest from our Testimonials

Tailor-Made Itineraries for the Discerning Traveler
Craft your perfect journey with our customizable itineraries:

Gastronomic Delights:

Relish exquisite local and international cuisines prepared by your personal chef. Explore our Culinary Experiences for a taste of what awaits.
Romantic Evenings:

Enjoy intimate candlelit dinners on the deck, under the starlit sky. Our Romantic Getaways collection has more.
Cultural Immersion:

Dive into the rich heritage of Kerala with cultural tours and traditional performances. Our Cultural Tours offer insights into local life.
Why Choose a Luxury Houseboat in Alleppey?
Alleppey's backwaters offer a serene, yet vibrant, backdrop for your luxury escape. Here's why it's a must-experience:

Scenic Beauty:

Glide through lush landscapes, paddy fields, and quaint villages. Visit our Scenic Routes to plan your journey.
Privacy and Comfort:

Revel in the exclusivity and comfort of your private floating abode. Our Privacy Promise details our commitment.
Booking Your Luxury Escape
Begin your journey towards an unforgettable experience on the Alleppey backwaters. Reserve your luxury houseboat today at our Booking Page.

"The luxury houseboat experience by Lake Park Cruise was beyond words - it was a journey through tranquility, luxury, and natural beauty." - From our Guest Stories

Conclusion
A luxury houseboat in Alleppey is more than a trip; it's an experience that resonates with elegance, comfort, and unforgettable memories. At Lake Park Cruise, we're dedicated to providing you with an exquisite journey through the heart of Kerala's backwaters.
Ceiling Clouds
Tags: webdev, javascript, programming, beginners
Published: 2024-01-10 09:36:04

Silence Acoustic has in-depth and core experience in Soundproofing and acoustics solutions and having experience of more than a decade with our expertise we introduce Silence Acoustic Products i.e [Ceiling Clouds](https://silenceacoustic.com/product/acoustic-ceiling-clouds-soundproofing/)
Mastering HTML5 and CSS3:
Tags: webdev, html, css, beginners
Published: 2024-01-10 09:25:35

HTML5 and CSS3 are Modern Web Design Fundamentals, and a certain level of expertise could be the difference between great web-responsive designs and jaded ones. The building foundations for HTML5 and CSS3 were Hypertext Markup Language (HTML) and Cascading Style Sheets (CSS). 

HTML was created by Berners-Lee and was the first language (not to be confused as a programming language) used in developing web applications, which makes its relevance still reasonable. CSS, developed by the World Wide Web Consortium (W3C), was born out of the need to style the HTML components of the Web. 

You can think of a web as a body with HTML serving as a structure like bones and muscles, and CSS has its skin tone and overall appearance. In essence, one is a structural language that defines the structure of a webpage, and the other is a declarative language with the exclusive purpose of defining the appearance and positioning of HTML elements on a webpage. 

HTML5 and CSS3 are modern variations of HTML4 and CSS2. Although older versions of CSS, CSS2 and CSS2.1 can all be used in conjunction with each other, the latest version of HTML5 is currently the standard and you cannot use HTML4, XHTML, and HTML5 elements at the same time. 

A quick guide to mastering HTML5 and CSS3 is by practice, reading, and studying the code of websites you like, using developer tools on browsers to see style guides, and following tutorials that build live projects. 

Below are some free sources to master HTML5 and CSS3, giving you in-depth knowledge sufficient to scale front-end development. 
1. (https://www.freecodecamp.org )
2. (https://codepen.io )
3. (https://developer.mozilla.org) 
4. (https://www.w3schools.com) 

Another Comprehensive source is the HTML and CSS3 beginner tutorial series on YouTube: (https://youtu.be/LqvFIuVlyP8?si=ntajM0vA847xax6g )

Have a great time learning and enjoy!
Top 5 WordPress Themes for Consulting Business
Tags: wordpress, webdev, business, businesswebsite
Published: 2024-01-10 09:23:04

Top 5 WordPress Themes for Your Consulting Business Will Draw Customers and Help You Close Deals

Your website serves as your consulting business’s online storefront in the modern digital environment. This is your opportunity to establish a strong first impression, demonstrate your knowledge, and turn prospects into paying clients. But it can be overwhelming to choose the best WordPress theme because there are so many available.

Do not be alarmed, fellow consultants! The Top 5 WordPress Themes for Your Consulting Business that are specially made to make your consulting business stand out are listed below:

[Bcom - Consulting Business WordPress Theme](https://themeforest.net/item/bcom-consulting-business-wordpress-theme/43783776)
[Reobiz - Consulting Business WordPress Theme](https://themeforest.net/item/reobiz-consulting-business-wordpress-theme/26702860)
[Bizdesk - Business Consulting WordPress Theme](https://themeforest.net/item/bizdesk-business-consulting-wordpress-theme/47519615)
[Innovix - Business Consulting WordPress Theme](https://themeforest.net/item/innovix-business-consulting/36683493)
[Bizup - Business Consulting WordPress Theme](https://themeforest.net/item/bizup-business-consulting-wordpress-theme/33409241)

Read Full Blog: [Top 5 WordPress Themes for Consulting Business](https://rstheme.com/top-5-wordpress-themes-for-consulting-business) 

#wordpressthemeforconsultingbusiness #Wordpress #wordpresstheme #wordpressdesign #wordpressexpert #wordpresswebsite #wordpressdesigner #consulting #business #businesswebsite
Explorando o Universo da Inteligência Artificial Generativa
Tags: deeplearning, ai, generativeai
Published: 2024-01-10 09:17:20

Você já se perguntou como a Inteligência Artificial (IA) pode não apenas processar informações, mas também criar conteúdo novo e original? Bem-vindo ao fascinante mundo da GenAI, onde a geração de texto, imagem, áudio e dados sintéticos se torna possível.

## O que é GenAI?
GenAI ou IA Generativa, é um subconjunto do universo da Inteligência Artificial. Diferentemente das abordagens convencionais, a GenAI não se limita a processar dados existentes, e é capaz de produzir uma ampla variedade de conteúdos, tornando-se uma verdadeira fonte de inovação.

Ela opera como um subconjunto específico de Deep Learning (ou Aprendizado Profundo), o que significa que ela pode não apenas compreender e reproduzir padrões, mas também criar novas instâncias de dados.

## O que é Deep Learning?
Deep Learning, ou Aprendizado Profundo, é uma abordagem avançada de Inteligência Artificial baseada em redes neurais artificiais. Ao contrário de métodos tradicionais de machine learning, o Deep Learning permite que modelos aprendam automaticamente a representação dos dados através de múltiplas camadas. Essa capacidade de extrair características complexas torna o Deep Learning extremamente eficaz em tarefas como reconhecimento de padrões e geração de conteúdo.

## Deep Learning: Discriminativo vs Generativo
O Deep Learning abrange diversas arquiteturas e paradigmas de Inteligência Artificial, dentre eles os modelos discriminativos e generativos. Os modelos discriminativos, são treinados para realizar tarefas específicas e, muitas vezes, são utilizados para predizer rótulos para novos pontos de dados. Eles aprendem a distinguir entre diferentes categorias e fornecem resultados precisos para problemas de classificação.

Por outro lado, ao invés de apenas classificar os dados existentes, os modelos generativos têm a capacidade de gerar novas instâncias de dados. Eles operam com base em uma distribuição de probabilidade aprendida dos dados já existentes, permitindo a criação de conteúdo completamente original.

## O Futuro da GenAI
À medida que a IA Generativa continua a evoluir, podemos esperar grandes avanços em diversas áreas, desde criação de conteúdo a até solução de problemas complexos. Sua capacidade de gerar novas perspectivas e criar algo inédito, promete moldar de maneira determinante o futuro da inteligência artificial.

Você já percebeu o impacto da GenAI em sua vida? Como ela tem influenciado sua experiência digital ou profissional? Compartilhe suas impressões! 🌐✨ #GenAI #ImpactoDaIA #DeepLearning #Inovacao
My new GameBoy style portfolio
Tags: webdev, gamedev, javascript, programming
Published: 2024-01-10 09:15:23

With great satisfaction, I am pleased to announce the launch of the first public version of my web portfolio, to which I have dedicated a lot of effort.

I decided to highlight my deep passion for video games, especially retro gaming, drawing inspiration for the site's UI from the graphics of old 8-bit GameBoy games.

I was excited about the idea of making the site interactive with elements of "gamification," albeit in a simple form at the moment. For example, if you visit the site from a computer, you can move the small sprite that represents me using the arrow keys.

In the top right, you will notice an icon that opens the settings menu, where you can modify the color palette and mute or reactivate sounds.

I have added English language support, so the site will automatically be displayed in English on systems and browsers different from Italian.

The site is not perfect yet, and I will continue to add small extras over time. However, I am pleased to share the link with you:

[https://matteosantoro.dev/](https://matteosantoro.dev/)

I hope you appreciate my work, and I invite you to take a look at the site. I will be grateful for any feedback you would like to share with me.
Mastering Azure Infrastructure Monitoring with Linux Web App
Tags: azure, infrastructureascode, cloud, web
Published: 2024-01-10 09:09:00

## Introduction:

In the ever-evolving landscape of cloud services, effective monitoring is crucial. Azure provides a robust solution for this through Azure Monitor, Application Insights, and Log Analytics, especially when integrated with Linux Web App for Azure infrastructure monitoring. This combination offers an extensive monitoring framework, crucial for understanding and optimizing the performance and health of Azure resources.

## Comprehensive Monitoring with Azure Services:

Azure Monitor, Application Insights, and Log Analytics form a cohesive monitoring ecosystem.
This setup allows for detailed collection, analysis, and response to telemetry from both Azure resources and applications.
The integration facilitates a holistic view of infrastructure performance and application health.

## Architecture Overview:


![Linux Web App cloud architecture](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vmh32kvu97lpaj9i0uxb.png)


Resource Group (RG): Simplifies the overall management, deployment, and monitoring of cloud resources.
Virtual Network (VNet): A private Azure network facilitating secure communication between Azure services and the internet.
Subnets: Enhance security and management by segmenting the VNet.
Azure Monitor: Centralizes monitoring of Azure resources and applications by collecting and analyzing metrics and logs.
Linux Web App: Runs on Linux VMs within Azure App Service, offering a managed platform for web applications.
Application Insights: Gathers application performance metrics, logs, and telemetry, supporting global availability testing.
Storage Account: Provides scalable cloud storage solutions for diverse data and workloads.
MariaDB Server and Database: Managed database services within Azure hosting application data.
Azure App Service: Offers built-in monitoring for resource usage, app metrics, diagnostic logging, and alerting.
Log Analytics: Integrates with Application Insights and other Azure resources, providing advanced data correlation and a powerful query interface.

## Optimizing Deployment and Communication:


![Web application cicd pipeline](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gl293k8f4xjlwgfmulxb.png)



Utilizing Brainboard.co templates allows easy replication and customization of this monitoring architecture.
Brainboard.co's native CI/CD engine can assess the architecture's security and cost implications before deployment.
Visual representations of the architecture aid in clear communication with colleagues, even for those less versed in Terraform.

## Conclusion:

Azure's monitoring tools, combined with Linux Web App, provide an indispensable solution for tracking and optimizing the performance of Azure infrastructure. For detailed information and deployment options, [visit Brainboard.co.](https://app.brainboard.co/)


![Web application architecture readme](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bfysxl0x4rjfsw9dwle5.png)