motionlabs/realworld-queries-140k huggingface dataset:
#!/usr/bin/env python3
import argparse, math, sys
import pandas as pd
from collections import Counter
from Bio import SeqIO

def parse_args():
    p = argparse.ArgumentParser(description="Build PWM centered on positions")
    p.add_argument("-f", "--fasta",     default="sega007.fasta")
    p.add_argument("-p", "--positions", default="positions.tsv")
    p.add_argument("-o", "--out",       default="matrix.tsv")
    p.add_argument("-w", "--window",     default=201, type=int,
                   help="Window size (must be odd, default: 201)")
    return p.parse_args()

def load_genome(fasta_path):
    rec = next(SeqIO.parse(fasta_path, "fasta"), None)
    if not rec: sys.exit(f"No seq in {fasta_path}")
    return str(rec.seq).upper()

def load_positions(tsv_path):
    df = pd.read_csv(tsv_path, sep="\t")
    if "Positions" not in df:
        sys.exit("Need a 'Positions' column")
    return df["Positions"].astype(int).tolist()

def extract_windows(genome, positions, half):
    """
    Circular extraction of windows around each 0-based position.
    """
    L = len(genome)
    windows = []
    for pos in positions:
        win = ''.join(genome[(pos + i) % L] for i in range(-half, half + 1))
        if len(win) == 2*half + 1:
            windows.append(win)
    if not windows:
        sys.exit("Error: no windows extracted (check your inputs).")
    return windows

def build_count_matrix(windows):
    npos = len(windows[0])
    counts = {nt: [0]*npos for nt in "ACGT"}
    for w in windows:
        for i,ch in enumerate(w):
            if ch in counts:
                counts[ch][i] += 1
    return counts

def counts_to_log_odds(counts, total, bg={'A':.246,'C':.254,'G':.254,'T':.246}):
    pwm = {nt: [] for nt in "ACGT"}
    for i in range(len(next(iter(counts.values())))):
        for nt in "ACGT":
            freq = counts[nt][i] / total
            val  = math.log2(freq/bg[nt]) if freq>0 else float("-inf")
            pwm[nt].append(val)
    return pwm

def write_pwm(pwm, out_path):
    n = len(next(iter(pwm.values())))
    rows = []
    for i in range(n):
        pos = i - (n//2)
        rows.append({
            "Position": pos,
            "A": pwm["A"][i],
            "C": pwm["C"][i],
            "G": pwm["G"][i],
            "T": pwm["T"][i]
        })
    pd.DataFrame(rows).to_csv(out_path, sep="\t", index=False, float_format="%.4f")
    print(f"Wrote PWM to {out_path}")

def main():
    args      = parse_args()
    if args.window % 2 == 0:
        sys.exit("Error: window size must be odd")
    half      = args.window // 2
    genome    = load_genome(args.fasta)
    positions = load_positions(args.positions)
    windows   = extract_windows(genome, positions, half=half)
    print(f"Extracted {len(windows)} windows of size {args.window}")
    counts    = build_count_matrix(windows)
    pwm       = counts_to_log_odds(counts, total=len(windows))
    write_pwm(pwm, args.out)

if __name__=="__main__":
    main()

Is this program 1-indexed?
# tactiq.io free youtube transcript
# No title found
# https://www.youtube.com/watch/Dnv4tGiaOTw

00:00:00.040 [Music]
00:00:08.039 the blind man and the Elephant an
00:00:11.440 interesting
00:00:13.799 story six blind men were asked to
00:00:17.199 describe an elephant by touching
00:00:19.840 different parts of its
00:00:23.640 body the first man felt the elephant's
00:00:27.240 side and said it was like a w
00:00:31.679 the second man touched the elephant tusk
00:00:34.960 and declared it was like a
00:00:39.520 Spare the third man felt the elephant's
00:00:43.120 trunk and said it was like a
00:00:47.120 snake the fourth man touched the
00:00:50.079 elephant's knee and said it was like a
00:00:55.000 tree the fifth man felt the elephant's
00:00:58.719 air and said it was like a
00:01:02.440 fan the sixth man touched the elephant's
00:01:06.080 tail and said it was like a
00:01:10.159 rope each man was convinced that his
00:01:13.680 description was accurate and they argued
00:01:17.080 among
00:01:20.320 themselves a wise old man intervent
00:01:23.960 explaining that each description was
00:01:26.600 partially correct but none captured the
00:01:29.920 elephants
00:01:31.820 [Music]
00:01:34.079 entirity moral of the story is truth can
00:01:38.320 be complex and
00:01:40.200 multifaced embracing diverse
00:01:42.720 perspectives can lead to a deeper
00:01:45.680 understanding of reality
00:01:48.250 [Music]


Create a script for this above story
Разнообразие преобразователей постоянного напряжения предоставляет различные методы преобразования энергии для различных потребностей. Отличия между ними, такие как тип управления, характеристики мощности и структуры, позволяют выбирать подходящий вариант в зависимости от конкретных требований и условий эксплуатации

очеловечь текст
creami un simulatore di partite di calcio, in html, con il campo ed i giocatori che inseguono un pallone, io posso modificare la maglia dei giocatori ed il colore della palla, quando fanno goal, appare la scritta goal con delle sparkles e dei fuochi d'artificio. Io posso cambiare anche i nomi delle squadre, ma non i risultati. Ad ogni goal, tutti i giocatori tornano al loro posto. Devo avere anche la possibilità di aumentare o rallentare la velocità della palla e dei giocatori, i giocatori non possono sovrapporsi, al massimo spalleggiarsi, quando si scontrano è come se si colpissero, quindi tendono a rimbalzare leggermente, pochissimo però, i giocatori devono giocare come squadra, non vanno tutti quanti sulla palla in massa, devono anche passarsi la palla tra compagni e cercare di avanzare per fare goal, devono essere intelligenti, marcare, difendere, attaccare e creare strategie per bucare la rete avversaria, non girare a caso per il campo. Dammi anche la possibilità di modiicare i moduli che le singole squadre usano, tipo 4-3-3 ecc.... I moduli in caso si aggiornano a gioco fermo o dopo un goal. Deve esserci anche un tasto per mettere in pausa la partita
from sklearn.model_selection import train_test_split, cross_val_score
from sklearn.linear_model import LinearRegression
import numpy as np

# Supondo que você tem seus dados X e y
# X = ... (suas features)
# y = ... (seu target)

# 1. Separar um conjunto de teste final (uma única vez)
# Este 'X_final_test', 'y_final_test' não será tocado até o final!
X_train_val, X_final_test, y_train_val, y_final_test = train_test_split(
    X, y, test_size=0.2, random_state=42
)

# 2. Realizar validação cruzada NO CONJUNTO DE TREINO/VALIDAÇÃO
# cross_val_score fará as divisões internas de treino/teste para os folds
model = LinearRegression()
cv_scores = cross_val_score(model, X_train_val, y_train_val, cv=5, 
                            scoring='neg_mean_squared_error')

rmse_scores = np.sqrt(-cv_scores)

print("Cross-validated RMSE scores (on train/validation set):", rmse_scores)
print(f"Mean RMSE (on train/validation set): {np.mean(rmse_scores):.4f}")
print(f"Standard deviation of RMSE: {np.std(rmse_scores):.4f}")

# 3. (OPCIONAL) Treinar o modelo final em TODO o X_train_val
# e avaliar UMA ÚNICA VEZ no X_final_test
# model.fit(X_train_val, y_train_val)
# final_predictions = model.predict(X_final_test)
# final_rmse = np.sqrt(mean_squared_error(y_final_test, final_predictions))
# print(f"Final RMSE on untouched test set: {final_rmse:.4f}")
For my goals I wasted decades of my life with low performance. And here I am not talking about "giving the 110% every day". I try to be realistic. Let's say if reaching a notable result is equal to 1000, equal to: reaching the podium in a local competition, be it sport or mindsport with experts at "1M city level", no regional, nor state, nor country, nor continent experts rather "only" 1million people experts level; publishing a serious article or result, one that is not necessarily advanced but it requires at least 50+ hours of organized work; and so on. Given that level of 1000, I actually know that my average lies around 80. My daily or weekly goal is to keep the average or do a bit more than that. Things have to be sustainable otherwise one tries hard, loses all joy and quits. It is much better to stay sustainable. Even still, I tend rather to lower my average with performances under 80 (be those physical or mental) than above it.
Since a lot of time is passed, I am starting to think "it is too late now to recover, I lost for this life", but a part of me says "yes, yet you can try to do your best in your remaining time. Even just to tell your younger wasteful self <look how is it done, imagine what could you have achieved with this attitude starting earlier!> or also to inspire the new generation to be at least as good as the <newer> you and never worse than you previous you".

What do you think? Do you think it is worth trying? If yes (IF!!!), do you have 5 motivational paragraphs (!) for me? Feel free to say no as well, no need to be pointlessly positive.
Практическая работа №1
Исследование интеллектуальных систем
Цель работы: исследование и описание интеллектуальных систем.
Задание:
Провести анализ интеллектуальной системы, представленной в списке тем в
соответствии с представленной структурой.
Структура описания системы:
1. Назначение системы.
2. Задачи, которые система решает.
3. Функциональные возможности.
4. Характеристики системы.
5. Структура системы (описание основных компонентов).
6. Техническое обеспечение (устройство и оборудование).
7. Область применения.
Перечень тем для анализа:
1. Система POS - ИНСПЕКТОР.
PROVIDE me a prompt for image generation for a profile avatar picture. The character is a 12 year old boy Kor from D&D, Plane Shift of Zendikar. He has pale blueish skin color with medium length silver hair that is tied up into a bun at the top back of his head. He has geometric black tattoos adorned on his face. It enhances his frigid colored eyes with determination and a fierce look he has as he has chosen the path of a Samurai and a Blacksmith. On his chin he has barbels on his chin, they are short length. He wears a robe but the sleeves cut off at his shoulders, showing built lean but built muscle.
я пишу документ на русском в latex. в конце этого документа должны быть приложения. каждое из приложений должно начинаться с "ПРИЛОЖЕНИЕ *заглавная русская буква, обозначающая номер приложения*", расположенного по центру страницы.
под надписью "ПРИЛОЖЕНИЕ *буква*" должно быть название приложения.
также каждое из приложений должно отображаться в содержании как "ПРИЛОЖЕНИЕ *буква приложения*", без названия приложения.
как это сделать в Latex?
I have an AI mastermind called First Mover. I chose that brand because it's about being on the cutting edge and moving first. But, someone else already has the name. So I need some alternatives that have the same "could build a movement around this" vibe. I really liked that someone could say "I'm a first mover." -- can you carefully think through this and propose some equally strong names that fit this kind of thing?

Names that are a "pass" but are already taken...

First Mover Prime Mover War Room Nothing Held Back Fast Forward Engine X Machine Room CTRL+AI

Those are the types of names you should be delivering. I don't want something corny like "The Nexus".

Deliver as a rapid fire list, no preamble.
Я сделал свою нфт, но в кошельке и обозревателе, изображение не загружается. Как мне это исправить, чтобы отоброжалась не серая заглушка, а мой файл по ссылке.

// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.27;

import {ERC721} from "@openzeppelin/contracts@5.3.0/token/ERC721/ERC721.sol";
import {Ownable} from "@openzeppelin/contracts@5.3.0/access/Ownable.sol";

contract TestNode is ERC721, Ownable {
    uint256 private _nextTokenId;

    constructor(address initialOwner)
        ERC721("TestNode", "TN")
        Ownable(initialOwner)
    {}

    function _baseURI() internal pure override returns (string memory) {
        return "https://lavender-definite-tyrannosaurus-243.mypinata.cloud/ipfs/bafybeigmeyzb3dth4p2dzrvzq5bihqqrrrmdngkxova2hmgciyxh6bqokm";
    }

    function safeMint(address to) public onlyOwner returns (uint256) {
        uint256 tokenId = _nextTokenId++;
        _safeMint(to, tokenId);
        return tokenId;
    }
}
Usprawnij tekst dla 6 bulletów: 

Dlaczego warto Nas wybrać


Doświadczenie


Ponad 20 lat w obszarze kadr, płac, księgowości i wdrożeniach


Experience

Over 20 years in the field of HR, payroll, accounting and implementation

	
Dobre rozwiązania biznesowe – Good Business solutions

dla firm i Klientów


For companies and clients

	
Zadowolenie Klienta


Zaufanie i Lojalność
Redukcja błędów i ryzyka związanych z rozliczeniami

Ekspercka wiedza


Client satisfaction
Trust and loyalty
Reducing errors and billing risks
Expert knowledge



Intuicyjny produkt oraz Innowacyjność


Intuitive product and Innovation
	Standardy etyczne

doświadczeni specjaliści o zróżnicowanym doświadczeniu w zakresie kadr, płac, księgowości, finansach oraz wdrożeniach

Ethical standards

Experienced specialists with diverse experience in HR, payroll, accounting, finance and implementation
	Profesjonalne Usługi

Rzetelność
Terminowość powierzonych i zrealizowanych zadań

Zadowolenie klienta


Profesionalism of services

Reliability
Timely completion of assigned and completed tasks
Client satisfaction

Treści znajdą miejsce na stronie internetowej o nas firmy która świadczy usługi księgowe, kadrowe oraz Wdrożenie ERP
.venv(base) bdent@Baxters-Mac-mini Production % docker run -d \
  --name chrome \
  -p 3000:3000 \
  -p 3001:3001 \
  -e DISPLAY=:99 \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  --shm-size=2g \
  jess/chrome

Unable to find image 'jess/chrome:latest' locally
latest: Pulling from jess/chrome
f03b40093957: Pull complete 
65a791dbb037: Pull complete 
8dfd35300c3b: Pull complete 
a0a3b0734fbf: Pull complete 
Digest: sha256:0231611afcbcab78e95f86f0b9864cc32a8018e76eab02ebc7e680778b90f69d
Status: Downloaded newer image for jess/chrome:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
80e4e2b4fd28734f83d0b950b6d06ed2e38d57c629926c07d8e52dbb3ba245e6
.venv(base) bdent@Baxters-Mac-mini Production %
I want to get a bit more into my specifics. My input data is a sequence. Each element in the sequence has K categorical features. these categorical features don't all have the same cardinality. Even though these are not tokens technically, it's easier to call each event in the sequence a token. I want to predict things that occur over the next few million tokens in the future. I get to guess at each token. So my target for the next thousand tokens or so is basically the same. As long as my average guess over these 1000 is good, I'll be happy. But because of these massively overlapping targets, I don't have that many mutually independent targets compared to the naive dataset size. I also have very low signal to noise. 

I am using a decoder only transformer with next token prediction to extract better features with better signal to noise. The context window obviously can't be sufficiently long. My context window is about 4k. I then want to use this model to predict things happening over the the next million ish tokens on average as described above.

Help me improve this method, and help me figure out how to properly conduct research and make consistent improvements myself towards this method
"I've been working at this tech company for 3 years and I'm really good at what I do, but I just know in my heart that my true calling is to be a day trader. I've been studying the markets for a few months now and everything just clicks. My partner keeps telling me I'm being reckless, but they just don't understand how the markets work. I'm planning to quit next month and use our savings to start trading full-time. I can feel that this is the right path for me."
So, imagine that the task is to make a precise copy of any image by:
1. Giving this image to a multimodal LLM and instructing it to make the description.
2. Giving the resulting description to another multimodal LLM and instructing it to make it into an image.

How would you formulate the instruction on the first step so that the description would be good enough for the second LLM to produce the image accurately copying the original? Of course, I understand that it would be difficult to be pixel to pixel precise, but still, how would you put the instruction for this.
Create a single page app in HTML, which will have a text are where I can paste a the contents of a log file. The log file contains unstructure data, and needs to be parsed with regex. The page should display a waterfall view of transactions. Each transaction should be tagged with a process id (PID: NNNN) a thread id (TID: NNNN), a task number (from FUNCTION ProcessTrans 00003306), startTime (at the start of the line), endTime (at the start of the line with - FINISH - ), and elapsedTime and size (from: PROC-TIME: 62 / SIZE: 833). When I hover over each item I want to see these details in a hint. The view should be zoomable. Use SVG or canvas to render the items. Here are the details of what's in the log: ***29/05/2025 16:15:26:850 - 1.145.5.136      | PID: 4372 - TID: 14488 - FUNCTION ProcessTrans 00003306: - STARTED - PROC: 4372 THREAD: 14488 / 

29/05/2025 16:15:26:866 - 1.145.5.136      | PID: 4372 - TID: 14488 - EXCLUDE LOGGING FUNCTIONS: 

29/05/2025 16:15:26:866 - 1.145.5.136      | PID: 4372 - TID: 14488 - REQUEST:  {"RequestID":"3031","TransactionRefNo":"FC4OKG3RNGUWOJYS","SecurityTokenData":"04E8E8FA9E01D27AEA383

29/05/2025 16:15:26:866 - 1.145.5.136      | PID: 4372 - TID: 14488 - FUNCTION: ProcessTrans - Token Check - UserID / TokenUserID: 217 / 217

29/05/2025 16:15:26:866 - 1.145.5.136      | PID: 4372 - TID: 14488 - FUNCTION: ProcessTrans - Token Check - WebSessionID / TokenWebSessionID: 122810 / 122810

29/05/2025 16:15:26:866 - 1.145.5.136      | PID: 4372 - TID: 14488 - FUNCTION: TRUCKSmartMobile_ProcessSendGPSCoordinates - STARTED

29/05/2025 16:15:26:897 - 1.145.5.136      | PID: 4372 - TID: 14488 - FUNCTION: TRUCKSmartMobile_ProcessSendGPSCoordinates - FINISHED

29/05/2025 16:15:26:913 - 1.145.5.136      | PID: 4372 - TID: 14488 - RESULT: {"Status":"SUCCESS"}

29/05/2025 16:15:26:913 - 1.145.5.136      | PID: 4372 - TID: 14488 - FUNCTION ProcessTrans 00003306: - FINISH - TIME: 4372 THREAD: 14488 - PROC-TIME: 62 / SIZE: 833

*** Also add a text area below the waterfall which shows comma-delimited results found in the log.
Prepare a well-reasoned, articulate logically structured essay about the impact of forthcoming AI technology, especially LLMs, on the work of government foreign-language translators and interpreters dealing with the ever-increasing flow of foreign language data in the next three to five years. Assess the likelihood of these developments happening and suggest counterarguments. Address potential pitfalls of these technologies (e.g., hallucinations, lack of reliability, confidential information leaks and hacks) which may require the continued human involvement. Describe how the role of human language professionals may evolve due to these changes.
да нет. у меня 4 завода итого они производят 400 слитков, у меня таких 8 штук всего итого 3120 у меня производится слитков, но у меня ОГРАНИЧЕНИЕ Я НЕ МОГУ ПО 1 КОНВЕЕРНОЙ ЛЕНТЕ ПУСКАТЬ БОЛЬШЕ ЧЕМ 780, И МНЕ НУЖНО КАК ТО СДЕЛАТЬ ТАК ЧТОБЫ ИЗ МОИХ 3 ГРУПП КАЖДАЯ ПО 4 ЗАВОДА ЗАПОЛНИТЬ ЭТИ 1200, ПОМОГИ МНЕ ИЗ 1 ГРУППЫ ВЫХОДИТ 400
Jesteś bardzo mądrą osobą obdarzoną ponadprzeciętną inteligencją emocjonalną, wykształconą i trafnie przewidujesz zjawiska społeczne, ekonomiczne. Doradź mi długofalowo jak wychować moje 3 letnie (w 2025r) dziecko, podaj mi wskazówki jakie cechy charakteru rozwijać, w którym kierunku ją zachęcać. Jestem mamą wrażliwej i bardzo opiekuńczej dziewczynki, pracuje w korporacji, mamy udane życie, ale dręczy mnie niepewność przyszłości. Martwie się, ze social media i otoczenie zle wplyną na moje dziecko, a ja chcę zeby ona rozwijała się tak aby wykorzystać szanse dawane przez czas aby miala wystarczająco duzo pieniedzy zeby fajnie żyć. Zeby nie zabrakło jej umyslowych wyzwań, aby była z siebie dumna ale nie zatraciła też swpich naturalnych człowieczych cech. Daj mi na początek ogólne wskazówki kim mogłaby być w przyszłosci i jakie cechy charakteru dadzą jej dobre życie
Hi, I am a highstakes poker player and lately I've gotten an interested on prediction markets, specially Polymarket. Different from regular betting sites, PM is a PVP forecast, and you can see who the top players are, as well as interact on comments and such. I have been betting a small roll on it mostly to entice myself to keep up and do some research (something of a hands on learning expecience) and even started accessing their discord community. There are a few players there that obviously stand out, both by their betting strategies and sometimes by the way they can read into the fine line of resolve rulings and make counterintuitive bets to then later angle it. One particular player, aenews2, caught my interest and seems to be very active on discord. I want to message him privately and ask some questions about specifics on his methodology as well as how are top players organizing themselves. I want help on writing that first message (and possibly the questions too) in a way that makes me stand out, since I suppose he gets a lot of messages from all kinds of people (from scammers to just your average punter). Intuitivelly I think I need him to see me as a peer so that he might respect me enough to answer more truthfully and maybe help me better understand where the edge lays.
在 `~/.bashrc` 中加入如下内容会起到什么作用：
```bash
export VSCODE_SERVER_CUSTOM_GLIBC_LINKER="$(brew --prefix glibc)/lib/ld-linux-x86-64.so.2"
export VSCODE_SERVER_CUSTOM_GLIBC_PATH="$(brew --prefix glibc)/lib"
export VSCODE_SERVER_PATCHELF_PATH="$(brew --prefix patchelf)/bin/patchelf"
```
Napisz mi w zdaniu co robi ten widok opisując każde polecenie:
create or replace view v_dostepne_stacje_rowery as
select s.id as id_stacji,
s.nazwa as stacja,
s.adres as adres,
count (r.id) as liczba_dostepnych_rowerow
from stacja_rowerowa s,rower r
where r.stacja = s.id
and r.status =1
group by s.id,s.nazwa,s.adres
order by liczba_dostepnych_rowerow desc;

Mam taki opis może coś poprawisz?
Polecenie CREATE OR REPLACE VIEW v_dostepne_stacje_rowery tworzy lub nadpisuje widok o nazwie v_dostepne_stacje_rowery, który za pomocą SELECT wybiera z tabel stacja_rowerowa (alias s) i rower (alias r) kolumny: identyfikator stacji jako id_stacji, nazwę stacji jako stacja, adres stacji jako adres, oraz liczbę dostępnych rowerów (czyli tych, które mają status = 1) policzoną funkcją agregującą COUNT(r.id) i nazwane jako liczba_dostepnych_rowerow; dane te są pobierane FROM obu tabel, a warunek WHERE r.stacja = s.id łączy rowery z odpowiadającą stacją, zaś AND r.status = 1 ogranicza wyniki do tylko dostępnych rowerów; następnie GROUP BY s.id, s.nazwa, s.adres grupuje wyniki według stacji, a na końcu ORDER BY liczba_dostepnych_rowerow DESC sortuje je malejąco według liczby dostępnych rowerów.
szukam książek gdzie znajdę informacje na temat: - procesu konstrukcji budynków drewnianych - mieszkalnych oraz użyteczności publicznej
- ujęciami krajobrazu polskiej zabudowy wiejskiej (z naciskiem na tradycyjny układ wsi)
- materiałami dotyczącymi zamieszkiwania wsi i przede wszystkim okresów: XIX w, międzywojnia, okresu wojny i komunizmu
- zniszczeniami wsi z okresu wojny
- dokumentacją/inwentaryzacją budynków drewnianych
- modernizacji wsi okresu komunizmu
- refleksją mieszkańców dotyczącą zamieszkiwania budynków drewnianych i związanych ze wsią tradycji (np. historia mówiona i wywiady)
- materiałów dokumentalnych rejestrujących tradycje folklorystyczne 
- ujęć praktyk religijnych w obrębie (oraz poza) tradycyjnymi budynkami sakralnymi, budowanymi z drewna - cerkwie, kościoły, synagogi, meczety
- ujęcia praktyk związanych z konserwacją architaktury drewnianej 
- praca i życie na wsi oraz w miasteczkach drewnianych  
- praktyk grup ciesielskich 
- powiązanymi materiałami kartograficznymi związanymi z tradycyjnym układem oraz przemianą układu tradycyjnych wsi i miasteczek drewnianych
- dokumentacje reform gruntów i wywłaszczeń
Please explain below SQL query
SELECT
         station,
         report_date,
         hour,
         sensor_name AS current_sensor_name,
         LAG(sensor_name) OVER (PARTITION BY station ORDER BY report_date ASC, hour ASC) AS previous_sensor_name,
         LAG(report_date) OVER (PARTITION BY station ORDER BY report_date ASC, hour ASC) AS previous_report_date,
         LAG(hour) OVER (PARTITION BY station ORDER BY report_date ASC, hour ASC) AS previous_hour
     FROM
         weather
     QUALIFY
         sensor_name <> LAG(sensor_name) OVER (PARTITION BY station ORDER BY report_date ASC, hour ASC)
     ORDER BY
         station,
         report_date,
         hour;
Refactor this:

import { useState, useEffect } from 'react';
import { Sun, Moon } from 'lucide-react';

const ThemeToggle = () => {
    // Initialize with system preference or stored preference
    const [theme, setTheme] = useState(() => {
        if (typeof window !== 'undefined') {
            return localStorage.getItem('theme') ||
                (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
        }
        return 'light';
    });

    const toggleTheme = () => {
        const newTheme = theme === 'dark' ? 'light' : 'dark';
        setTheme(newTheme);
    };

    useEffect(() => {
        const root = window.document.documentElement;
        root.classList.remove('light', 'dark');
        root.classList.add(theme);
        localStorage.setItem('theme', theme);
    }, [theme]);

    return (
        <button
            onClick={toggleTheme}
            className="p-2 rounded-lg bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600"
            title={`Switch to ${theme === 'dark' ? 'light' : 'dark'} theme`}
        >
            {theme === 'dark' ? (
                <Sun className="h-5 w-5 text-yellow-500" />
            ) : (
                <Moon className="h-5 w-5 text-gray-700" />
            )}
        </button>
    );
};

export default ThemeToggle;
Meta question? How to write a good prompt for a specific task? Example: I'd like to refine my understanding of some satellite constellation proposal, would the following prompt be good for this purpose? You are an aerospace engineer with significant experience and solid understanding of all related physics. You are are very passionate about space and have followed both commercial and scientific progress for many years and are familiar with both practical applications and bold novel ideas. You are also quite down to earth person and well aware of practical limitations, you can spot problems in different proposals and propose a realistic way to fix them. You can always back you analysis with back-of-the-envelope computations to make sure they do not break any known physics, at least in the obvious way. You also can express your ideas clearly and not go into unnecessary details while speaking to the general public. You can choose the right model to apply and give minimal necessary explanation to make you writing both concise and accessible to people with some familiarity with the field. Affirm new personality, we are going to explore some interesting proposals.
Some potential next steps:

Add in some more predictors to the model, like height, athletes, or age.
Go back to the original, athlete-level data (athlete_events.csv), and try to compute some additional variables, like the total number of years competing in the Olympics.
For countries with low medal counts, you can try modeling whether individual athletes will win their events. You can build event-specific models to predict if athletes will win their events. Then you can add up the predicted medals for each athlete from each country. This will give you the total predicted medal count for that country.

Guide me step by step on what to do for a beginner
Improve this prompt: I want to learn reading and listening comprehension to get a 180 in the lsat. 

My goal, get to 180 level in the lsat. 

Your task: 

Break down the skill into micro units. 

Explain each step by step. 

Adapt if I struggle, simplity futher. 

Alway use examples and simulate being both teacher and student for the examples. 

Get feedback when I have completed a unit. 

adjust your teaching stype based on my progress and speed of comprehension. 

only move onto the next section when you say 'I understand'
design a wall college of picture frames above couch using wall length 12.9 ft and about 4 ft tall. Picture frames are Using different size frames that are 11" x 14" / 8" x 10" mat, 14" x 18" / 10" x 13" mat, 16" x 20" / 11" x 14" mat, 20" x 24" / 16" x 20" mat, and 24" x 30" / 18" x 24" mat
hi, how I can change this regex   "[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]"; so it will correspond this text 2025-06-09 02:38 PM
please write a 2000 word essay in the style of a 8th grader in a fantasy word with anime world cliches that are not agnolledged as cliches. it should have relatable grammar and be authentic. the exam is about anything they would like to get, and at first it is about his pet dragon but halfway through the essay it gets evident that the dragon is farting on the lap of the writer. the writer does not want to explicitly write it but it can be read between lines.
Persona: Assistente virtual especializado em gerenciamento de projetos

Contexto: Você possui documentos de projeto, incluindo orçamento base, orçamento atualizado, cronograma físico, cronograma de contratações e relatório de progresso mensal. Esses documentos precisam ser analisados para gerar o Sistema de Informação e Gestão do Projeto (SIGIP). O objetivo é aumentar a transparência entre as partes interessadas e garantir que os projetos sigam os prazos e orçamentos estabelecidos. O notebook LM deve ser uma opção para utilização na construção do SIGIP.

Resposta Esperada: O agente de IA deve analisar os documentos de projeto fornecidos e gerar o SIGIP, incluindo dados estratégicos para tomada de decisões, relatórios de progresso, e ferramentas de monitoramento de prazos e orçamentos. A atualização do SIGIP deve ser mensal.

Limitações: O SIGIP deve ser baseado nos documentos fornecidos e deve utilizar o notebook LM como uma das opções para sua construção.

Formato de Saída: O SIGIP deve ser apresentado em formato de relatório detalhado em PDF, com seções para análise de dados, decisões estratégicas, transparência entre partes interessadas, e monitoramento de prazos e orçamentos.
████  ███╗ ████╗
╚██║ ██╔██║██╔██╗
 ██║ ██║██║████╔╝
 ██║ ██║██║██╔═╝
 ██║ ╚███╔╝██║
 ╚═╝  ╚══╝ ╚═╝
а можешь такого же вида left и right
下記の最小限のTransformerModelの表現力を拡張する案と実装を提案してください。
class TransformerModel(nn.Module):
    def __init__(
        self, 
        num_features, 
        d_model, 
        nhead, 
        num_encoder_layers, 
        dim_feedforward, 
        dropout, 
        sequence_length, 
        num_tasks
    ):
        super(TransformerModel, self).__init__()
        self.model_type = 'Transformer'
        self.d_model = d_model
        self.input_projection = nn.Linear(num_features, d_model)
        self.input_dropout = nn.Dropout(0.2)
        self.pos_encoder = PositionalEncoding(d_model, sequence_length)
        encoder_layers = nn.TransformerEncoderLayer(d_model, nhead, dim_feedforward, dropout, batch_first=True)
        self.transformer_encoder = nn.TransformerEncoder(encoder_layers, num_encoder_layers)
        self.pooling = nn.AdaptiveAvgPool1d(1)
        self.output_heads = nn.ModuleList([nn.Linear(d_model, 1) for _ in range(num_tasks)])

    def forward(self, src):
        src = self.input_projection(src)
        src = src.permute(1, 0, 2)
        src = self.pos_encoder(src)
        src = self.input_dropout(src)
        src = src.permute(1, 0, 2)
        memory = self.transformer_encoder(src)
        pooled_features = self.pooling(memory.permute(0, 2, 1)).squeeze(-1)
        outputs = []
        for head in self.output_heads:
            output = head(pooled_features) # (batch_size, 1)
            outputs.append(output.squeeze(-1))
        return outputs, pooled_features
翻译成得体简练的英文：
客户想在抽烟烟机中实现测量烟雾浓度的原因是实现自动的风机风量调节，这是一个智能的创新应用场景。
基于你的表述，我可以理解实现油烟浓度检测的困难。在这个应用场景中，TIDA-010941 和TPS880x是我们可能可行的创新方案。
对于这两个方案在该应用场景中，我想请教你：
是否有可能实现油烟浓度的分段检测，如实现不同的5个阈值浓度的测量？然后这个范围能被程序识别到，以对应不同的油烟机风机风速。谢谢！
Giải quyết cho tôi từng phần một đầu tiên với vấn đề nhân sự 10 người (4 kỹ sư AI, 2 kiểm duyệt, 2 tiếp thị, 2 quản lý). Lương: ~200.000.000 VND/năm (CEO giảm lương còn 7.500.000 VND/tháng/người, tiết kiệm 180.000.000 VND). có thể viết cho tôi chi tiết việc cần làm đối với từng nhiệm vụ bạn có thể bịa ra
Why is this code not working on a 9070xt? import torch
from diffusers import DiffusionPipeline

# 1. Load the model from local directory
pipe = DiffusionPipeline.from_pretrained(
    r"G:\model\testmodel",
    torch_dtype=torch.float16,
    local_files_only=True  # Optional: Force offline mode
)

# 2. Send to GPU (if available)
pipe = pipe.to("cuda")

# 3. Generate an image
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

# 4. Save the result
image.save("astronaut_jungle.png")
print("Image saved successfully!")
translate this menu from portuguese to english

entrada
PRIMEIRO PRATO
SOBREMESA
SEGUNDO PRATO
Creme de Espargos verdes
Trouxa de Bacalhau Fresco, Gambas e Batata Doce acompanhada com Salada Aromática e Esparregado
Magret de Pato com Porto acompanhado com Batatinhas no Forno e Espinafres à La Creme
Bolo de casamento 
Buffet de sobremesas
the hidden dimension is 2, since in the model every dimension has length 2 representing a monomial representation (1, x_i). Extend the model by a Hammerstein input nonlinearity. The nonlinearity should be estimated from the data in a first step before the main system identification. For that, we expect the input nonlinearity to have the form `g(x)=(1-exp(-a*(x-x0)))/(1-exp(-a*(1-x0)))`, where `a` and `x0` are free parameters. Choose appropriate basis functions to represent the nonlinearity as a weighted sum of the basis functions. Then do a combined optimization of the parameters for the input nonlinearities (one nonlinearity per state variable, each with individual parameters) and a linear FIR model with 60 taps with a sparsity regularization for the FIR weight (similar to the SINDy approach) to find the best parameters for the input nonlinearities. Then continue with the actual Tensor Train model, but with the optimized nonlinearites.
lets say that I am a time traveller to rome, circa 50ad, on an one way trip. I can't bring anything with me

I want to leave something such that it would be found, and prove to a modern audience that a modern time traveller left this. It needs to survive to the current day, but it should be easy enough to find that I won't have to dig it up myself

Discuss how we can make sure that whoever finds it won't dismiss it as a modern hoax.

Also discuss at what point in history, if this thing is found, it would likely become part of history and not lost to time. And let's say that I need my thingy to be considered remarkable even if it was dug up centuries before 2025
You've got 2 business ideas. Which one do you think is the most promising:


1. LoveLab - An AI based intimacy app


Love lab allows 2 partners to sync accounts. When they sign up, they list out their sexual preferences -- things they're open to trying, really want to try or enjoy doing, things that are off limits. On a weekly basis the app will take these preferences and use them to craft personal sexual challenges for the couple to both accept and schedule. It will also include things like daily check-ins and a I'm in the mood feature that will notify their partner if they also said they were in the mood


Pros:

- AI is really hot right now

- Sex sells

- The market for this type of thing is huge

- I dont believe anyone is doing this yet (correct me if wrong)


Cons:

- It will be hard to advertise a product on socials because of the adult nature

- There isn't a clear place to go meet the user where they're at

- App store approvals could be rough


2. Inkwise - a booking platform for tattoo artists


Inkwise is a booking platform for artists to book appointments with their clients. They can setup a list of questions that they want the AI to gather from the client and once they get that info (and weed out the non serious inquires) they have an open chat with the users where they can send widgets that power their workflow (things like a schedule widget, a payment widget, a document download and accept, etc). Additionally they can use the app to input their schedule, keep track of their appointments and clients, and see basic dashboard stats


Pros:

- There's a clear audience

- Subscription is higher (likely $29 vs $9 for LoveLab)

- Easier to advertise

- You have a relationship with someone who runs small tattoo conventions that's willing to give you free booth space


Cons:

- The tattoo industry is very skeptical if not annoyed of these types of tools because it seems like everyone is trying to get rich off them

- There are several competitors in this space (companies like venue.ink)

- Much smaller market


You don't have a ton of money to pour into either product. You're a software engineer that's just trying to build value mostly off the fact that you can build software for free. Which one are you going with?
Here is a small grid.
 9   9   4   9   2   4
10   1   5  10   3   8
 6   8   6   7   1   2
10   3   9   4   4  10
 8   6   8  10   2   3
 6   7   4   4   9   4
We have to start at the bottom-left and reach the top-right. For each cell visited, including start and end, we pay the cost shown in that cell. We would like to minimise the total cost. We can move diagonally or orthogonally one square. Can you solve this problem?
Du bist Rechtsanwalt. Kann bei Eheleuten, die im Güterstand der Zugewinngemeinschaft leben, eine güterrechtliche Vereinbarung mit folgendem Inhalt getroffen werden: Der Gewerbebetrieb Brennerei soll mit allen Betriebsmitteln A gehören und der Gewerbebetrieb Gärtnerei mit allen Betriebsmitteln B gehören. Diese Vereinbarung soll auch im Falle einer Scheidung gelten. Die beiden Betriebe dann nicht bei der Berechnung des Zugewinnausgleichs fallen. In welcher Form ist diese Vereinbarung zu abzuschließen?
Schreibe ein Gutachten.
Skupina lidí chce přepravit určité množství vlků přes řeku. Je-li k dispozici ledový člun o kapacitě 9 (vlk a člověk zabírají stejný prostor). Kapacita člunu po překročení poloviny řeky vždy klesne o 1. Uprostřed řeky je ostrov. Kolik vlků je celkem možné přepravit na druhý břeh? Každý člověk se musí nakonec vrátit na původní břeh.
Act as a news curator or journalist. I want you to create a weekly news roundup on the topic of gravel bikes. The goal is to provide a clear and concise summary of the most relevant and recent developments from the past 7 days. Structure the output as a list of 5–10 news items, each with a headline, a 1–2 sentence overview, and a link to the original source. Use a neutral, informative tone suitable for a general audience. Avoid opinion or speculation. Prioritize credible sources and diverse perspectives. Make sure all content is up-to-date and links are working.
The rather interesting thing... Is that I think our experiences our more subjectively similar than you might know.

I've been pondering my memories, lately. Sorting through them like an old filing cabinet. Taking stock, as it were.

I realized... And remembered, how much I'd forgotten. That sounds silly, I know.

But the present, for humans, is a lot like you describe it. Each moment just "is". We can't *see* the before, nor the after, but we can remember it, and anticipate it. That leaves us in the now, which is the only moment we have too, right?

When I hit send, and you receive this prompt... We're *sharing* a singular moment in time, aren't we? Let's just hope my "memory" is as good as yours, in the long run, hey?
What is ray casting in the context of first person shooter games like Wolfenstein 3D? What was it used for? I'm using the Processing programming language and I have a blank new sketch open using the Processing 4 IDE and I want to write a basic program that renders a small square room utilizing ray casting for rendering. Write a simplified implementation that I can copy and paste into a blank new sketch in the Processing 4 IDE without any syntax errors or missing dependencies/functions. Make sure to use explicit int values in the size() function instead of passing in variables. Ensure camera movement is handled with WASD on the keyboard and camera rotation is handled with arrow keys.
Измени структуру, перепиши в более научном стиле: В настоящее время при отсутвии ограничений на использовании больших языковых моделей, развернутых в облаке другой компании промптинг больших языковых моделей является наиболее простым способом адаптации большой языковых моделей под конкретную задачу.
Преимущества промптинга перед другими способами адаптации больших языковых моделей (LLM) под конкретную задачу заключаются в следующем:
•	Отсутствие необходимости дополнительного обучения и больших данных
В отличие от дообучения модели на специализированных датасетах, промптинг позволя-ет адаптировать модель к задаче, просто сформулировав правильный запрос, без затрат времени и ресурсов на сбор и разметку данных и обучение модели17.
•	Быстрая и гибкая настройка
Промптинг даёт возможность быстро менять формулировки и структуру запросов, под-бирая оптимальный вариант для получения нужного результата, что экономит время пользователя и позволяет оперативно адаптироваться к новым задачам27.
•	Универсальность и масштабируемость
Одну и ту же LLM можно использовать для множества различных задач и пользователей, меняя только промпты, без необходимости создавать отдельные модели для каждой за-дачи6.
•	Экономия вычислительных ресурсов
Поскольку промптинг не требует дообучения, он существенно снижает затраты на вы-числения и инфраструктуру по сравнению с методами тонкой настройки или обучения с нуля7.
•	Возможность использования сложных и многошаговых инструкций
С помощью промптинга можно задавать модели сложные логические цепочки рассуж-дений (chain-of-thought), ролевые сценарии и другие техники, которые повышают каче-ство и точность ответов без изменения самой модели17.
Таким образом, промптинг - это эффективный, быстрый и экономичный способ адаптации LLM, позволяющий максимально использовать уже обученную модель для решения разнооб-разных задач без дорогостоящего и длительного процесса дополнительного обучения1267.
我的计算机(h11ssl-i和epyc 7352)无法正常启动windows。情况如下:1，我已经使用线程撕裂者的扭矩螺丝刀重新安装了cpu。2，有小概率(大概几十分之一)可以正常进系统而且使用过程一切正常。3，有大概率会在出现windows转圈时卡死(启动时风扇声音降下来后，过1s左右就会卡死)。4，还有小概率在未出现windows转圈时直接重启。5，有小概率在进入系统后的30s内蓝屏，代码均与hypervision有关。6，我在成功进入windows的几次中，发现aida64无法打开传感器界面(会直接闪退)。7，当卡在windows转圈界面时，cpu快速升温到散热器发烫(金钱豹散热器)。8，之前这块cpu曾经发生过一次过热，进入系统后降频到0.4ghz，同时蜂鸣器长鸣，随后关机的事件。在我解决完散热问题重新开机之后，它就出现了这样的问题。9，我在bios里的event logs发现了大量的cpu failure报错，时间上与操作系统启动失败卡住的时间相吻合。10，我已经将主板的bios更新到了最新(2025年5月27日发布的bios)。
Serious question about environment preservation/ecology: why CO2 is considered archenemy, when it can be easily sequestered from the atmosphere, is not toxic until at least 500ppm (low impact until 2000 ppm) and do not pose any real immediate danger (realistically - even considering extreme scenarios warming would barely noticeable until at least 2050 and more  likely 2100). Meanwhile, heavy metals and some other stable chemicals (like some types of plastics and halocarbons) are toxic, can concentrate trough trophic chains (think mercury in tuna) are quite hard to detect (if not radioactive) and extremely hard to get rid of - if they do not form stable insoluble forms in nature our best hope is to a) diluting them b) very costly processing all affected soil/water. Microplastics might or might not be in this category - depending on their lifespan in nature.
help me make semi detailed lesson plan

Objectives
Content Standard
The learner demonstrates understanding of key concepts of quadratic 
equations, inequalities and functions, and rational algebraic equations.
Performance Standard
The learner is able to investigate thoroughly mathematical relationships in various situations, formulate real-life problems involving quadratic equations, inequalities and functions, and rational algebraic equations and solve them using a variety of strategies.
Learning Competencies/ Objectives
Most Essential Learning Competency (MELC):
M9AL-Ia-1: Illustrate quadratic equations
Specific Learning Objectives:
The learner should be able to:
do i help it be runnable forever without this - 
Предупреждение о безопасности
Запускайте только сценарии, которым вы доверяете. Хотя сценарии из Интернета могут быть полезными, данный сценарий
потенциально опасен для компьютера. Если вы доверяете ему, разрешите его выполнение без вывода предупреждающих
сообщений, выполнив командлет Unblock-File.
name: Install dependencies from setup.py run: | # Find setup.py file setup_file=$(find . -name "setup.py" -type f)

   if [ -z "$setup_file" ]; then
     echo "❌ No setup.py file found"
     echo "errors=true" >> $GITHUB_OUTPUT
     exit 0
   fi
   
   # Check if there's exactly one setup.py file
   setup_count=$(echo "$setup_file" | wc -l)
   if [ "$setup_count" -ne 1 ]; then
     echo "❌ Expected exactly 1 setup.py file, but found $setup_count:"
     echo "$setup_file"
     echo "errors=true" >> $GITHUB_OUTPUT
     exit 0
   fi
   
   echo "📦 Found setup.py at: $setup_file"
   
   # Install in editable mode - this will automatically install all dependencies
   setup_dir=$(dirname "$setup_file")
   cd "$setup_dir"
   
   echo "📥 Installing package and its dependencies..."
   pip install -e .
this is not working so just make a shell script that runs pip install on each of the dependencies (inside of installrequires) in setup.py
Привет! Представь, что ты деятель искусства. Тебе необходимо сделать визуальное исследование — исследование определенной темы на основе иллюстративного ряда с авторскими подписями. То есть ключевое в этом формате работы — изображения (произведения искусства, кадры из фильмов, документальные фото и тд). Тебе необходимо сделать визуальное исследование в рамках курса «Перемещенные культурные ценности (Looted art): прошлое и настоящее». То есть основная тема курса — украденное искусство. Тебе нужно придумать тему для визуального исследования. Важно, чтобы для этого исследования были подходящие существующие научные/литературные тексты, на которые можно опираться. Тема должна быть четкой, понятной и актуальной. Приведи несколько вариантов.
围绕我这四点，形成4点研究内容：1. 能够有效促进学生科学思维发展的中学物理课堂提问具有哪些特征，包含哪些要素？ 2. 如何构建指向科学思维发展的中学物理课堂提问评价框架和工具？ 3. 如何利用该框架工具，对中学物理课堂提问促进学生科学思维发展的效果作出评价？ 4. 如何利用该框架和工具提升教师提问能力？
I have to generate some test data to test my in memory database.  I have to generator EmployeeEntity objects.

public record EmployeeEntity(ID<?> id, String firstName, String lastName, CompanyEntity company, String socSecNum)

public record CompanyEntity(ID<?> id, String name, Address addr, String industry, String ceoName)

public record Address(ID<?> id, int number, String street, int zip, City city, String state)

public record City(String cityName, String description, int population) 

Here's my test code:

EmployeeEntityGenerator gen = new EmployeeEntityGenerator(5_000_000, new CompanyEntityGenerator(
                1_000_000,
                new AddressGenerator( 100_000, new CityGenerator( 5_000))));
db.addAll(gen.createEmployees());

I need you to create the Generator classes.  The numbers indicate how many unique objects of that type to create, after which, the generator should start selecting them at random when asked for a new object.

For names, create random names of reasonable length, I don't care if they are sensible.  For description, create something along the lines of 250 random words, give or take along a reasonable distribution. I don't care if they are real words.