on-internet

Forcing yourself to smile can actually make you miserable

submitted by Corvidae to science 9 points | 0 comments https://www.sciencedaily.com/releases/2026/11/261112025536.htm Smiling may not always make you happier, and new research suggests that forcing yourself to smile repeatedly could actually make you feel worse. In a University of Florida study involving more than 1,100 participants, researchers discovered that while a single artificial smile can provide a small mood boost, repeatedly faking smiles can erase that benefit or even reverse it.

Join the discussion →

Where should I emigrate to when I end uni?

submitted by EloySg to asklemmy 2 points | 0 comments I’m on my second year of CS on southern Spain and I want to move to another country when I get my diploma. I also have low level autism and a B2 English level, in addition to native Spanish, and in the future I’m also thinking of getting some certs. I want to see wether place I can just have a better future and if possible to make a startup

Join the discussion →

Making a new language and alphabet but won't type right

So I don't know if this is the right place to ask a technical question but here I go. I designed and imported my own font script into inkscape, transfer that to fontforge, built it, and now when I try to use it in word, some of the new letters work but others revert it back to the default font. I have tried using Google AI but is not good. The following images are how the glyphs look in fontforge and what the font reads out to be. Letters like k and q are not replaced as they should be. Space and enter end this font. Any help would be nice

Join the discussion →

How to start Windows Terminal in full screen from an X64 NASM Console mode Windows program

I have the latest: Windows 11 with all updates. Visual Studio 2026 Insider with C++ and Windows SDK. All preview settings enabled. VS is not in Admin mode. X64 NASM assembler. Windows Terminal is set as the default Terminal. If I launch Windows Terminal from the Start menu, it is already configured to start in full-screen mode. I am writing a pure x64 console-mode assembly program. I want the Console window which is Windows Terminal, to start in full-screen, but it opens in a window during debugging. I tried SetConsoleDisplayMode, GetConsoleWindow, ShowWindow. I am looking for an elegant solut

Join the discussion →

Why does Numba produce a faster binary than ISPC for this simple function?

I'm testing on Ubuntu 24.04.5, Intel(R) Core(TM) Ultra 5 125H (x64) CPU, Python 3.14.10, numba 0.68.1 and ISPC 1.32.0. This script: import numpy as np, timeit as ti, numba as nb, ctypes lib = ctypes.CDLL("./ispc0.so") lib.ispc0.argtypes = [ np.ctypeslib.ndpointer(dtype=np.uint8, ndim=1, flags="C_CONTIGUOUS"), np.ctypeslib.ndpointer(dtype=np.bool, ndim=1, flags="C_CONTIGUOUS"), ctypes.c_int, ] lib.ispc0.restype = None def ispc0(a, b): lib.ispc0(a, b, a.size) @nb.njit(fastmath=True) def numba0(a, b): rp2 = b[2:-2] am2 = a # formerly a[i-2] am1 = a[1:] # formerly a[i-1] a0 = a[2:] # formerly a[i]

Join the discussion →

Why Numba produces faster binary than ISPC for this simple function?

I'm testing on Ubuntu 24.04.5, Intel(R) Core(TM) Ultra 5 125H (x64) CPU, Python 3.14.10, numba 0.68.1 and ISPC 1.32.0. This script: import numpy as np, timeit as ti, numba as nb, ctypes lib = ctypes.CDLL("./ispc0.so") lib.ispc0.argtypes = [ np.ctypeslib.ndpointer(dtype=np.uint8, ndim=1, flags="C_CONTIGUOUS"), np.ctypeslib.ndpointer(dtype=np.bool, ndim=1, flags="C_CONTIGUOUS"), ctypes.c_int, ] lib.ispc0.restype = None def ispc0(a, b): lib.ispc0(a, b, a.size) @nb.njit(fastmath=True) def numba0(a, b): rp2 = b[2:-2] am2 = a # formerly a[i-2] am1 = a[1:] # formerly a[i-1] a0 = a[2:] # formerly a[i]

Join the discussion →

Amazon's Plan to Index the World's Online Shopping Data

Amazon is considering a "World Product Graph" that would index information about products sold across the internet in an effort to keep shoppers and AI agents from turning to Google, Reddit or other sources for product research. The proposed database could also improve Amazon's AI shopping assistant by addressing inaccurate or incomplete answers and allowing it to use cheaper models. "Amazon cannot be the go-destination for every shopping mission if customers must leave to research product relationships on Google, brand websites, and review sites," according to an internal Amazon document. "Th

Join the discussion →

How to optimize recursive Binary Exponentiation using tail recursion and handle negative exponents without loops in C++?

I am practicing recursion and divide-and-conquer algorithms in C++ under strict constraints: **no `for` or `while` loops**, no `<cmath>` library, and no compiler optimization pragmas. I have implemented a recursive Binary Exponentiation function ($O(\log n)$ time complexity) for non-negative integers by storing the recursive result in a temporary variable `half` to avoid redundant calls: #include <bits/stdc++.h> using namespace std; long long a, n; long long power (long long a, long long n) { if (n == 0) return 1; long long half = power(a, n / 2); if (n % 2 == 0) { return half * half; } else {

Join the discussion →

EKS Shift from one account to another

I have two AWS accounts and through CLI I have created an EKS in one of accounts and now I need to shift it to another account. how can I do it, I have created cluster and node groups through console and now rest thing I wanna do with CLI

Join the discussion →

pass jsonschema validator as a generic argument

I want to have a generic function which validates all the json files/data against its corresponding schema validators(both runtime and compile time validators). But it looks like the validators doesn't implement any trait because of which I'm not able to pass jsonschema validator to the generic function. main.rs #[jsonschema::validator(schema = r#"{"maxLength": 5}"#)] struct Short; #[jsonschema::validator(schema = r#"{"maxLength": 10}"#)] struct Long; fn validate_with<V: jsonschema::Validator>(validator: &V, instance: &serde_json::Value) -> bool { validator.is_valid(instance) } fn main() { let

Join the discussion →

I love CANADA

submitted by NorthernAmerkan to asklemmy 1 points | 0 comments Hi all! I am a northern American gal (I know that sounds cheesy) but I visited Canada 5 months ago and I just can’t stop thinking about it!! Fun fact I actually have distant relatives that are from Canada (prior to settling there were from Norway and Sweden) . I am actually very interested in the prospect of moving and settling in Canada. I am in the medical field (in the process of becoming a doctor) and really want to know the honest truths and feelings of Americans moving to Canada. It’s no secret that we are a shit show. But I

Join the discussion →
Older stories