teleren/devto huggingface dataset:
ij.start.canon/connect
Tags: computer, tech
Published: 2024-02-22 21:38:36

Canon ij printer is a complete solution for multiple works that you can easily learn to set up from [ij.start.canon/connect](https://istartsetup.com/) and get a better experience. This is the official online support site that provides you Canon products’ online manuals, function information, and more. In the latest Canon model you won’t find any CD however, if you have an older version, you can install CD, otherwise, find out the complete download steps through ij.start canon for Canon printer drivers
Últimos días para presentar candidaturas a la 6ª edición de los Premios Princesa de Girona Internacional 2024
Published: 2024-02-22 21:38:06

Cuenta atrás para presentarse a la sexta edición del Premio Internacional Princesa de [Girona](https://digitalreporterusa.com), que por primera vez desde su creación hace ahora 6 años, se desplegará en dos categorías y premiará el trabajo de jóvenes de [Latinoamérica](https://locallosangelesnews.com)de hasta 35 años que hayan destacado por su trabajo. en el campo de la empresa y de la investigación científica. Esta [convocatoria](https://oklahomafrontier.com)está abierta hasta el 30 de noviembre.
Hangout space Very dumb name :/
Tags: hangoutspace
Published: 2024-02-22 21:08:17

---
title: Hangout space Very dumb name :/ 
published: True
description: Just a very small chat to hang out in if you get bored and talk to people I guess :3
tags: #Hangoutspace
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2024-02-09 16:35 +0000
---
En iniciativa conjunta, Open English y Richarlison donarán R$2 millones en cursos de inglés en Brasil
Published: 2024-02-22 21:36:04

Open [English](https://digitalreporterusa.com), líder en enseñanza de inglés en [Latinoamérica](https://locallosangelesnews.com)y el mercado hispano de los Estados Unidos, ha escogido a Richarlison, el jugador número 9 del equipo nacional de Brasil y delantero para [Tottenham](https://oklahomafrontier.com)Hotspurs, como embajador y nuevo estudiante. La colaboración brindará oportunidades de aprendizaje del idioma inglés a jóvenes desfavorecidos en Brasil.
How do you know that an LLM-generated response is factually correct? 🤔
Tags: llm, llmops, machinelearning, llmevaluation
Published: 2024-02-22 20:29:44

Hallucinations are an interesting artifact of LLMs where the model tends to make up facts or generate outputs that are not factually correct. 

There are two broad approaches for detecting hallucinations:

- Verify the correctness of the response against world knowledge (via Google/Bing search)
- Verify the groundedness of the response against the information present in the retrieved context

The 2nd scenario is more interesting and useful as the majority of LLM applications have an RAG component, and we ideally want the LLM to only utilize the retrieved knowledge to generate the response.

While researching state-of-the-art techniques on how to verify that the response is grounded wrt context, two of the papers stood out to us:
- [FactScore](https://arxiv.org/pdf/2305.14251.pdf): Developed by researchers at UW, UMass Amherst, Allen AI and Meta, it first breaks down the response into a series of independent facts and independently verifies if each of them.
- [Automatic Evaluation of Attribution by LLMs](https://arxiv.org/pdf/2305.06311.pdf): Developed by researchers at Ohio State University, it prompts the LLM judge to determine whether the response is attributable (can be verified), extrapolatory (unclear) or contradictory (can’t be verified). 

While both the papers are awesome reads, you can observe that they tackle complementary problems and hence, can be combined for superior performance:
- The responses in production systems typically consist of multiple assertions, and hence, breaking them into facts, evaluating them individually and taking average is a more practical approach.
- Many responses in production systems fall in the grey area, i.e. the context may not explicitly support (or disprove) them but one can make a reasonable argument to infer them from the context. Hence, having three options - Yes, No, Unclear is a more practical approach.

![Illustration of Fact Checking in LLM generated resoponses](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/12fzvzv2pz4x81r3cpn0.png)

This is exactly what we do at UpTrain to evaluate factual accuracy. You can learn more about it in our [docs](https://docs.uptrain.ai/predefined-evaluations/context-awareness/factual-accuracy)
Be careful about the switch statement in PHP
Tags: php, codequality, webdev
Published: 2024-02-22 20:29:18

Could you find the difference in results between these two codes?

```php
function getStatusByCode($code)
{	
    $status = '';
    
    switch ($code) {
        case 0:
            $status = 'OK';
            break;
            
        case 1: 
            $status = 'WARNING';
            break;
            
        default:
            $status = 'UNDEFINED';
            break;
    }    
    
    return $status;
}

var_dump(getStatusByCode(null));
```

and

```php
function getStatusByCode($code)
{	
    $status = '';
    
    if ($code === 0) {
        $status = 'OK';
    } elseif ($code === 1) {
        $status = 'WARNING';
    } else {
        $status = 'UNDEFINED';
    }
    
    return $status;
}

var_dump(getStatusByCode(null));
```

So have you found it?

* In the first case with the `switch`, the method returns `OK`.
* In the second case, the method returns `UNDEFINED`.

---

## But why this difference?

The first code with the `switch` comes from a legacy code base: no type hinting on the arguments, no return from the function. And this code was the cause of a small bug, because `switch` uses loose comparison: using `==` instead of `===` to compare values.

And in PHP with the loose comparison, `null` equals `0`.

So be careful when you have a sequence of `if` / `elseif` / `else`, switching to `switch` can have an impact on the expected behavior.

---

## So what to do?

If you follow me a little, I recommend that you use the strict comparison with `===` most often (if not all the time).

So if you want to keep this behavior, some ideas:

* You leave your sequence of `if` / `elseif` / `else`
* You reinforce your function parameters with types to ensure you never have an unwanted value (if that's the case)

```php
function getStatusByCode(int $code)
{	
    $status = '';
    
    switch ($code) {
        case 0:
            $status = 'OK';
            break;
            
        case 1: 
            $status = 'WARNING';
            break;
            
        default:
            $status = 'UNDEFINED';
            break;
    }    
    
    return $status;
}

var_dump(getStatusByCode(null));

/* Result : Fatal error: Uncaught TypeError: 
 * Argument 1 passed to getStatusByCode() must be of the type int, null given
 */
```

* You are using `match` available since PHP 8 which uses strict comparison 👍
```php
function getStatusByCode($code)
{
    return match($code) {
        0 => 'OK',
        1 => 'WARNING',
        default => 'UNDEFINED',
    };
}
```

---

## Thank you for reading, and let's stay in touch !

If you liked this article, please share. You can also find me on [Twitter/X](https://twitter.com/enjimmyklein) for more PHP tips.
Amazon Forecast Overview
Tags: aws, cloud, datascience, machinelearning
Published: 2024-02-22 20:28:00

## What is Amazon Forecast
It allows you to do forecasts.
So this is a **fully managed** services that will use **machine learning** to deliver a highly accurate forecast.
For example, you want to predict the future sales of a raincoat.

## Some features of using it
The idea is that it's going to be **50% more accurate**, than looking at the data itself, and you **reduce forecasting time from months to hours** by using a managed service.

## use cases
For example, **product demand planning**, **financial planning**, **resource planning**, and so on.

## how does it work?
Well, you take your historical **time-series data**, for example, and you also add your product features, _prices_, _discounts_, _website traffic_, _store locations_, _basically_, any kind of data you can to then enhance your model.
Then you upload this into **Amazon S3**.
You then start the Amazon Forecast service which will create a forecasting model.
And you can use that forecasting model, for example, to say that your future sales of raincoats are going to be $500,000 next year.


[GitHub](https://github.com/a00ayad00)
[LinkedIn](https://www.linkedin.com/in/a00ayad00)
[Facebook](https://m.facebook.com/a00ayad00)
[Medium](https://a00ayad00.medium.com/)
How to hide JavaScript code form view source
Tags: javascript, webdev, beginners, tutorial
Published: 2024-02-22 20:23:49

**Hi**, and welcome back in a new Tutorial
i was simple to hide your **javascript code** its just go to this website : https://www.obfuscator.io/ and past your **javascript code** then click "Obfuscate" automatically the website convert your code to a _sysntax_ **can't humain read and or undrestand** it. then copy the code in the "Output" and past it in your **project**
**Now!!** _you have a javascript code can't humain undrestand **but can machine**_
Need help regarding using AI as a student!
Tags: webdev, beginners, programming, productivity
Published: 2024-02-22 19:49:43

I'm new to web development and I took a big break from coding. I'm back to start coding again to focus on my future.

## My question is basically is it okay to use AI to generate small codes and help when creating or completing assigments/projects?

I sometimes find AI to be very useful when you have a specific error and need results very fast rather than make posts in random tech sites.
La Cámara destituye a Alejandro Mayorkas
Published: 2024-02-22 19:48:03

La Cámara de Representantes, por un margen extremadamente estrecho, votó el martes a favor de destituir al secretario de Seguridad Nacional, Alejandro Mayorkas , el primer secretario del gabinete en ser destituido en casi 150 años. [BMW](https://www.businessmanweek.com) [DF](https://digitalfoundational.com) [BMC](https://financialmulticultural.com)
Identifican inusual caso de peste bubónica
Published: 2024-02-22 19:39:23

Una persona en el condado de Deschutes, Oregón, fue diagnosticada con peste bubónica, convirtiéndose en el primer caso confirmado del estado de esta rara infección bacteriana desde 2015.
La persona probablemente fue infectada por su gato, y "todos los contactos cercanos del residente y su mascota han sido contactados y se les ha proporcionado medicación para prevenir la enfermedad", dijo el Dr. Richard Fawcett, funcionario de salud del condado de Deschutes, en un comunicado la semana pasada. [BMW](https://www.businessmanweek.com) [DF](https://digitalfoundational.com) [BMC](https://financialmulticultural.com)
Las tasas de sífilis materna
Published: 2024-02-22 19:38:16

Las mujeres que dan a luz en Estados Unidos tienen ahora tres veces más probabilidades de tener sífilis que en 2016, según un informe publicado este martes por los Centros para el Control y la Prevención de Enfermedades de Estados Unidos (CDC, por sus siglas en inglés). [BMW](https://www.businessmanweek.com) [DF](https://digitalfoundational.com) [BMC](https://financialmulticultural.com)
El marcado aumento de los casos de sífilis materna coincide con un alarmante repunte de la sífilis congénita, es decir, los casos en los que un bebé se infecta antes de nacer. En los bebés, la sífilis puede ser una infección grave, incapacitante y a veces mortal.
Adding a new view and present it
Published: 2024-02-22 19:24:40

## Views

Nova is using `ErlyDTL` to tempalte the views, that is an Erlang version of Django templating.

You can read more about Django templating [here](https://django.readthedocs.io/en/1.6.x/ref/templates/builtins.html).

### New view

We want to create a simple view that have to input fields that will send in username and password to our service. In our directory `src/views` we will create a new file called `login.dtl`. In that file we will add this html code.

```html
<html>
<body>
  <div>
    <form action="/" method="post" id="nameform">
      <label for="username">userame:</label>
      <input type="text" id="username" name="username"><br>
      <label for="password">Password:</label>
      <input type="password" id="password" name="password"><br>
      <input type="submit" value="submit">
    </form>
  </div>
</body>
</html>
```

As you can see in this html we will send a post to the endpoint `/login`.

## Controller

We will now modify our controller so we can view this html.

In our application we have a controller that is in `src/controllers` the file is called `my_first_nova_contrller.erl`.

It looks like this:

```erlang
-module(my_first_nova_main_controller).
-export([
         index/1
        ]).

index(_Req) ->
    {ok, [{message, "Hello world!"}]}.
```

What this does is send `"Hello world!"` to the view that we did see when we went to `localhost:8080`. Now we want to add the function that we added in the routing section.

The function we want to add is `login/1`.

```erlang
-module(my_first_nova_main_controller).
-export([
         index/1,
         login/1
        ]).

index(_Req) ->
    {ok, [{message, "Hello world!"}]}.

login(_Req) ->
    {ok, [], #{view => login}}.
```

What this return tuple will tell Nova is that we want a view and it is named `login`, Nova will check after the view and show it if we go to `localhost:8080/login`. And because we added the route before in the routing file we will now connect the view.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rk38xwr4zimgul2upeq8.png)
RGFW | Singler-Header Lightweight framework for basic window and graphics context handling (like GLFW)
Tags: glfw, singleheader, library, debloat
Published: 2024-02-22 19:23:37

github repo : https://github.com/ColleagueRiley/RGFW

RGFW is a single-header lightweight a multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs. It is written to be portable as possible and supports winapi, Xlib and cocoas for windowing apis. For graphics apis it supports, OpenGL legacy, modern OpenGL, Vulkan and DirectX. It let's you create a window with an graphics context (opengl, vulkan or directX) and manage the window and it's events only with a few function calls.

More information can be found on the RGFW repo, such as table provided in the header to show specific things RGFW supports and other information about RGFW compared to GLFW. Such as that RGFW uses far less RAM and space while having a few more features than GLFW. Documentation can be found in the header itself, RGFW.h.

Below is very basic example code

```c
#define RGFW_IMPLEMENTATION
#include "RGFW.h"

int main() {
    RGFW_window* win = RGFW_createWindow("name", 500, 500, 500, 500, (u64)0);

    RGFW_window_setIcon(win, icon, 3, 3, 4);
       
    i8 running = 1;
    
    for (running) {
        while(RGFW_window_checkEvent(win)) {
            if (win->event.type == RGFW_quit) {
               running = 0;
               break;
            }
        }
        
       if (RGFW_isPressedI(win, RGFW_Escape))
            break;
        
        RGFW_window_swapBuffers(win);

        glClearColor(0xFF, 0XFF, 0xFF, 0xFF);
        glClear(GL_COLOR_BUFFER_BIT);
    }

    RGFW_window_close(win);
}
```

github repo : https://github.com/ColleagueRiley/RGFW
Welcome to 9to5Business
Published: 2024-02-22 19:19:43

**Introduction:**

Welcome to my new blog series focused on achieving financial independence while working a 9to5 job! Over the coming months, I will be documenting my own journey and sharing practical tips and strategies along the way.

**Why Financial Freedom Matters**

Financial freedom is about having enough savings and passive income to cover your living expenses without needing to work full-time. This gives you flexibility to pursue other interests, spend more time with family, and reduce stress.

Financial freedom takes diligent saving, investing, and sticking to a plan. It may involve sacrifices like cutting expenses or taking on side hustles. But the end result is worth it - the freedom to live life on your own terms.

**What We'll Cover**

In this series, I'll discuss everything related to using a 9to5 job as a launch pad to financial freedom including:

Creating a realistic savings plan on a typical salary

How to invest for maximal growth with minimal risk

Side hustle strategies to generate extra income

Tax optimization and asset protection strategies

Balancing short vs long-term goals

Maintaining discipline in your spending habits

Financial planning to align with your dreams

This is not a get-rich-quick scheme, but rather a patient approach based on optimizing what you earn from your 9to5.

If you follow along, you can gain the knowledge and tools to ultimately break free from the rat race.

**Let's Get Started!**

If you want to take control of your finances and live life on your own terms, join me on this journey. It will take commitment, but financial freedom is possible for anyone willing to learn and apply these principles. Subscribe now to receive future posts - first step is creating your freedom savings plan. Live your ideal life!
Faster Blogging: A Developer's Dream Setup
Tags: go, python, opensource, productivity
Published: 2024-02-22 19:19:37

[glee](https://github.com/HexmosTech/glee/) our dev friendly blogging setup has been undergoing a huge transformation for the last few weeks. For those who don't know, [glee](https://github.com/HexmosTech/glee/) is a simple open source CLI tool that converts markdown posts into [ghost](https://ghost.org/) blog posts.
Check out the glee demo video when you have a moment!
[glee: Dev-friendly Blogging Setup](https://youtu.be/nlM4b65_GSU)


glee is one of the top open source products in the [product hunt](https://www.producthunt.com/) in the month of October 2023. glee was in the top 5 and got the [product of the day](https://www.producthunt.com/products/hexmos#glee-2) award with 153 upvotes from worldwide.

![glee-browser](https://journal-wa6509js.s3.ap-south-1.amazonaws.com/44226a1a2fda727d3fd217aefa92902f7904d2b92578d1f03456af2efb26bd9c.png)


## glee Drawbacks<a id="glee-drawbacks"></a>

glee is rich in blogging features but has some drawbacks. One of the main drawbacks is its compatibility with multiple operating systems and system architectures. We lost one potential customer due to glee incompatibility in macOS.
Another major issue is the deployment time. We built the first version of glee entirely in Python and used [nuitka](https://github.com/Nuitka/Nuitka), nuitka compiles Python programs into a single executable binary file. We need to create three separate stages for creating executable binaries for Windows, Mac, and Linux in deployment, and it takes around 20 minutes to complete.

## From Python to Golang<a id="from-python-to-golang"></a>

Based on insights and learnings from building our other Open source CLI tool called [Lama2](https://github.com/HexmosTech/Lama2), an API Client Manager that is completely built upon Golang and has better compatibility for various OS and OS architectures, we decided to... Continue reading the full article at https://journal.hexmos.com/developer-markdown-blog-hexmos-glee/
From Beginner to Builder: Day 1 Insights into the DevOps & Cloud Landscape
Published: 2024-02-22 19:16:45

Embarking on the DevOps & Cloud: Day 1 Insights
I'm thrilled to embark on this exciting journey into the realm of DevOps & Cloud computing, and I'm eager to share my learnings along the way. Today's focus was establishing a solid foundation in the fundamentals.

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

**Demystifying the Linux Landscape:**

Navigating the Linux environment was a key objective. Understanding the core architecture, file system structure, and essential commands like cd, ls, cat, and grep provided a strong starting point. While still in the early stages, I'm gaining confidence in traversing this new terrain.

**Command Line Mastery in Progress:**

The Bash shell, once a mysterious entity, is slowly revealing its secrets. Mastering basic commands like mkdir, touch, mv, and cp empowers efficient file management and manipulation. Scripting, the gateway to automation, beckons on the horizon, and I'm eager to unlock its potential.

**Unlocking the Power of Shell Scripting:**

Dipping my toes into the world of shell scripting proved to be incredibly insightful. The ability to automate tasks using basic loops and commands like for and mv opens exciting possibilities for streamlining workflows. This initial foray into scripting has laid the groundwork for further exploration.

**System Administration: A Glimpse into the Core:**

Delving into system administration basics provided a valuable understanding of user and group management using commands like useradd and passwd. The responsibility of maintaining system integrity instills a sense of ownership and motivates further exploration.

**The Journey Continues:**

This initial day has been a springboard into the vast ocean of DevOps & Cloud knowledge. I'm excited to continue learning, sharing my experiences, and engaging with the community. Share your thoughts, tips, and experiences in the comments below! Let's embark on this journey together.
more great news from AFFiNE, the great Miro-Trello-Notion follow-up
Tags: beginners, tutorial, productivity
Published: 2024-02-22 19:12:04

more great news from AFFiNE, the great Miro-Trello-Notion follow-up 

https://x.com/AFFiNEOfficial/status/1760582114486194538?s=20





​https://app.affine.pro 

You can continue using https://insider.affine.pro until then. We know data migration can be inconvenient – sorry for any disruption!
Visit our blog for details: https://affine.pro/blog/affine-web-version-upgrade-12-2023
Change is for a smoother user experience. Your data is vital, and we're ensuring a seamless transition.
For any questions or issues, please reach out. Thanks for your understanding and patience.

[b]was noch ist neu[/b] erfährt man immer hier:  https://twitter.com/AffineOfficial :: 

[b]learn more about AFFiNE[/b]
#AFFiNE #Beta #OpenSource 
#BuildInPublic #Privacy #Local
#Notion #Miro #Monday #Alternative
My Use Cases for Advanced Github Search
Tags: github
Published: 2024-02-22 19:05:57

I’ve been overseeing many different repositories at Lokalise and that means also knowing and keeping track of what libraries are in use and in what version.

I always knew that GitHub has a search functionality, but until recently, I didn’t realize that I can use it exactly for this purpose.

Here are a few use cases, I use GitHub Search for lately.

## Find out what versions of package X do we use in different repositories

In my case, the package X is React. I was trying to find out what React versions we still use. This search command gave me the answer.

```bash
org:lokalise path:**/package.json react-dom NOT is:archived
```

## Find out how many files with extension X do we have

Github Search returns also the amount of files that match the search. With that, you can also easily find out how many files of certain type you have in your organization.

In my case, I was looking for how many React components we have.

A small problem is that once you get over 1000s, it will give you just an approximate number, but in my case, that was still good enough.

```bash
org:lokalise path:**/*.tsx NOT is:archived
```

![GitHub Search for .tsx files.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/px6ot3r3w7eq3inu5y25.png)

## Find out how many files use styled-components

We’re in a process of migrating from `styled-components` to native CSS (which is more web friendly). With this search, I can track easily how the migration is going.

```bash
org:lokalise "from 'styled-components'" NOT is:archived
```

![GitHub Search for file import](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3lnee8afyhc23mv4u5jl.png)