on-internet

YouTube Data API Upload Restriction

I cannot upload videos through YouTube Data API v3 despite enabling the API and granting all required OAuth permissions. My OAuth app is set to Personal, and my channel is 7 days old. What could be causing this restriction?

Join the discussion →

How do you handle DbUp migrations when a hotfix script conflicts with changes already applied on develop?

We use GitFlow without release branches, with two shared SQL Server databases: DB A: master and hotfix/* DB B: develop and feature/* Migrations are plain .sql scripts run by DbUp with the default journal (dbo.SchemaVersions). The scenario that breaks: On develop, 015_drop_legacy_column.sql drops dbo.Orders.LegacyStatus (applied to DB B). A hotfix branches off master, where the column still exists, and adds 014_hotfix_backfill.sql, which updates that column. It runs fine on DB A and ships. We merge the hotfix back into develop and run DbUp against DB B. 014_hotfix_backfill.sql isn't in the jour

Join the discussion →

How to define null collection for returning into blade

I have this method: public function __invoke(Request $request) { $sliders = DB::table('sliders')->get(); $statics = DB::table('static_pages_fields')->get(); $plans = DB::table('plans')->get(); $customers = DB::table('customers')->get(); $features = DB::table('plan_features')->get(); return view('frontend.index', compact('sliders','statics','plans','features','customers')); } I want to return `$customers` as null collection ? How to do that

Join the discussion →

shell script to back up files

backupfile(){ if [ $# -ne 1 ];then echo "Invalid argument number,exprcted 1 receivd $#" return fi dir=$1 file=$2 if [ ! \( -d $dir/backup \) ];then mkdir $dir/backup fi for file in $file;do if [ -f $file ]&&[ ! \(-f $dir/backup/${file##*/} \) ];then cp $file $dir/backup/${file##*/} echo "$file has been backed up." fi done } read -p "Entry the diractory you want to backup::" arg1 backupfile $arg1 This is a function named backupfile that is intended to back up files. It first creates a folder named “backup” and then backs up the specified file to that folder. At least, that is how I understand i

Join the discussion →

GPT-6 Luna returns empty content with finish_reason "length" and HTTP 200 when max_completion_tokens is small

I'm moving a sentiment classifier from gpt-4o-mini-2024-07-18 to gpt-6-luna before GPT-4o mini is shut down. The label is one word, so I cap the output: from openai import OpenAI client = OpenAI() messages = [ {"role": "system", "content": "Classify the review's sentiment. " "Answer with exactly one word: positive, negative or neutral."}, {"role": "user", "content": "Delivery was quick but the blender " "stopped working after two uses and support never replied."}, ] resp = client.chat.completions.create( model="gpt-6-luna", messages=messages, max_completion_tokens=10, ) choice = resp.choices[0

Join the discussion →

At risk of being labeled a capitalist scumbag, what sorts of deals have you guys come across for Black Friday?

submitted by LincolnsDogFido to asklemmy 3 points | 0 comments I’ve been doing a lot of deal shopping on Facebook marketplace and eBay as well as consignment/thrift stores so I wouldn’t mind hearing about deals going on for things you typically can’t find secondhand. Or deals on ‘buy it for life’ type products. Hopefully this can serve as a fediverse brainstorming post for gift ideas and such.

Join the discussion →

Win32 C++ Progress Bar Indefinite Marquee Animation does not work despite PBS_MARQUEE style and PBM_SETMARQUEE message

I'm absolutely unable to get the Win32 C++ Progress Bar to show the indefinite back-and-forth animation of several green segments sliding right-left-right-left. (1) I correctly have and even enforce the PBS_MARQUEE style on the control, and (2) I start the animation by sending the PBS_SETMARQUEE message with the default interval (0 but any other value like 30 also doesn't work): // 1. First enforce PBS_MARQUEE style on control, if it doesn't have one // (but in practice I already have this style in my .RC dialog definition) LONG_PTR currentStyle = GetWindowLongPtr(hWndProgress, GWL_STYLE); //

Join the discussion →

Over 7,000 Creators Push Back Against Australia’s Proposed AI Copyright Opt-Out

submitted by FlashMobOfOne to technology 6 points | 2 comments https://www.gadgetreview.com/over-7000-creators-push-back-against-australias-proposed-ai-copyright-opt-out All 23 member organizations of the Creators’ Rights Alliance signed a letter urging the Australian government to reject any opt-out mechanism, according to the alliance. Their core argument is that the burden of monitoring, enforcement, and objection would fall on creators rather than on the companies profiting from the data. Isabelle Doran, CEO of the Association of Photographers and vice chair of the Creators’ Rights Allianc

Join the discussion →

London Meetup - 13th December 2026

Pub Address: The Counting House, 50 Cornhill, London, EC3V 3PD Date: Sunday 13th December 2026. Time: 1pm. Please do send me a direct message if you want to be added to the London Lobsters Whatsapp group.

Join the discussion →

New York Bans AI Toys For 5 Years

New York Gov. Kathy Hochul signed legislation Tuesday banning the manufacture, exchange, distribution and sale of toys powered by AI chatbots for five years. "The law will take effect 90 days after signing, meaning the restrictions will not be in place during this year's holiday shopping season," reports FOX Chattanooga. "In the meantime, Hochul is encouraging parents and caregivers to consider potential safety and privacy risks before purchasing AI-powered toys for children." From the report: The legislation, S.9408A/A.11144B, applies to toys with embedded or integrated AI chatbots, including

Join the discussion →

pathlib.Path quite slow

pathlib.Path appears to run much slower than I had hoped for. The following function deletes .pyc files older than that of the filename passed in as a parameter. Is there a faster alternative way of doing this. import time from pathlib import Path def stale_pyc_del(path: str) -> None: spd_start = time.perf_counter() cur_import = Path(path).resolve() if Path.is_dir(cur_import): cutoff_time = float('+inf') pycache_dir = cur_import / "__pycache__" else: # file not directory cur_file = Path(__file__).resolve() cutoff_time = max(cur_file.stat().st_mtime, cur_import.stat().st_mtime) pycache_dir = cu

Join the discussion →

How to catch Git STDOUT while redirecting STDERR to dialog?

I'm trying to catch stdout from git status changes into an array and redirect any stderr output to dialog; so far I've tried: IFS=$'\n' gitStatus=( $( git --no-pager -c color.status=false status --short --untracked-files=all 2> >( dialog --sleep 1 --input-fd 0 --progressbox 'Checking index...' 12 75 >/dev/tty ) ) ) exec 3> >(dialog --progressbox 10 50 --input-fd 0 >/dev/tty) gitStatus=( $( git --no-pager -c color.status=false status --short --untracked-files=all 2>&3 ) ) exec 3>&- But neither approach will output the refresh index progress properly via dialog --progressbox How can this be achi

Join the discussion →

Position of game object not updating

So I'm making a game in Unity and I'm trying to add an enemy that covers the screen as it takes damage. The formula I'm using should work exactly how I want it to except when I use transform.position the position doesn't change at all. Here's the code: using UnityEngine; public class DaedalusPositioner : MonoBehaviour { public static DaedalusPositioner Instance; public int daedalusMaxHealth; public int daedalusHealth; private float number = 7.5f; private void Awake() { Instance = this; } private void FixedUpdate() { gameObject.transform.position = new Vector3(0f, number, 0f); } public void Upd

Join the discussion →

Position of game object not updating in Unity

So I'm making a game in Unity and I'm trying to add an enemy that covers the screen as it takes damage. The formula I'm using should work exactly how I want it to except when I use transform.position the position doesn't change at all. Here's the code: using UnityEngine; public class DaedalusPositioner : MonoBehaviour { public static DaedalusPositioner Instance; public int daedalusMaxHealth; public int daedalusHealth; private float number = 7.5f; private void Awake() { Instance = this; } private void FixedUpdate() { gameObject.transform.position = new Vector3(0f, number, 0f); } public void Upd

Join the discussion →
Older stories