text:
New API version 8

I just noticed that Tesla had updated their API to version 8, some things have been changed between old and new API.
The current documentation shows api version of 7.
Here's non-exhaustive list of changes:
VehicleState

autopark_style is no longer present
last_autopark_error is no longer present
smart_summon_available is no longer present
summon_standby_mode_enabled is no longer present
Sunroof entries like sun_roof_percent_open and sun_roof_state are no longer present
homelink entries like homelink_device_count and homelink_nearby

VehicleConfig

perf_config is no longer present

That's all I can observe. Though it could be due to me using Model 3 with no FSD, so most of those stuff don't apply to my car.
I think it might be worth refreshing the documentation to match to newer API.

Funny how time flies.  I just noticed API version 9 today after not looking for a while.
So I came over here to see if @timdorr and the rest of you guys were already on it.  I have a python3 asycio project named carson.  Looks like I have some work to do this weekend.
{'access_type': 'OWNER',
 'api_version': 9,
 'calendar_enabled': True,
 'charge_state': {'battery_heater_on': False,
                  'battery_level': 62,
                  'battery_range': 186.72,
                  'charge_current_request': 32,
                  'charge_current_request_max': 32,
                  'charge_enable_request': False,
                  'charge_energy_added': 0.0,
                  'charge_limit_soc': 81,
                  'charge_limit_soc_max': 100,
                  'charge_limit_soc_min': 50,
                  'charge_limit_soc_std': 90,
                  'charge_miles_added_ideal': 0.0,
                  'charge_miles_added_rated': 0.0,
                  'charge_port_cold_weather_mode': False,
                  'charge_port_door_open': True,
                  'charge_port_latch': 'Engaged',
                  'charge_rate': 0.0,
                  'charge_to_max_range': False,
                  'charger_actual_current': 0,
                  'charger_phases': None,
                  'charger_pilot_current': 32,
                  'charger_power': 0,
                  'charger_voltage': 1,
                  'charging_state': 'Stopped',
                  'conn_charge_cable': 'SAE',
                  'est_battery_range': 160.95,
                  'fast_charger_brand': '<invalid>',
                  'fast_charger_present': False,
                  'fast_charger_type': 'MCSingleWireCAN',
                  'ideal_battery_range': 186.72,
                  'managed_charging_active': False,
                  'managed_charging_start_time': None,
                  'managed_charging_user_canceled': False,
                  'max_range_charge_counter': 0,
                  'minutes_to_full_charge': 0,
                  'not_enough_power_to_heat': None,
                  'scheduled_charging_pending': True,
                  'scheduled_charging_start_time': datetime.datetime(2020, 7, 31, 1, 0, tzinfo=datetime.timezone.utc),
                  'time_to_full_charge': 0.0,
                  'timestamp': datetime.datetime(2020, 7, 30, 20, 52, 8, 192000, tzinfo=datetime.timezone.utc),
                  'trip_charging': False,
                  'usable_battery_level': 62,
                  'user_charge_enable_request': None},
 'climate_state': {'battery_heater': False,
                   'battery_heater_no_power': None,
                   'climate_keeper_mode': 'off',
                   'defrost_mode': 0,
                   'driver_temp_setting': 21.1,
                   'fan_status': 0,
                   'inside_temp': 31.2,
                   'is_auto_conditioning_on': False,
                   'is_climate_on': False,
                   'is_front_defroster_on': False,
                   'is_preconditioning': False,
                   'is_rear_defroster_on': False,
                   'left_temp_direction': 210,
                   'max_avail_temp': 28.0,
                   'min_avail_temp': 15.0,
                   'outside_temp': 31.5,
                   'passenger_temp_setting': 21.1,
                   'remote_heater_control_enabled': False,
                   'right_temp_direction': 210,
                   'seat_heater_left': 0,
                   'seat_heater_rear_center': 0,
                   'seat_heater_rear_left': 0,
                   'seat_heater_rear_right': 0,
                   'seat_heater_right': 0,
                   'side_mirror_heaters': False,
                   'timestamp': datetime.datetime(2020, 7, 30, 20, 52, 8, 191000, tzinfo=datetime.timezone.utc),
                   'wiper_blade_heater': False},
 'display_name': 'Dark Nebula',
 'drive_state': {'gps_as_of': datetime.datetime(2020, 7, 30, 20, 51, 13, tzinfo=datetime.timezone.utc),
                 'heading': 181,
                 'latitude': 30.000000,
                 'longitude': -95.000000,
                 'native_latitude': 30.000000,
                 'native_location_supported': 1,
                 'native_longitude': -95.000000,
                 'native_type': 'wgs',
                 'power': 0,
                 'shift_state': None,
                 'speed': None,
                 'timestamp': datetime.datetime(2020, 7, 30, 20, 52, 8, 192000, tzinfo=datetime.timezone.utc)},
 'gui_settings': {'gui_24_hour_time': False,
                  'gui_charge_rate_units': 'kW',
                  'gui_distance_units': 'mi/hr',
                  'gui_range_display': 'Rated',
                  'gui_temperature_units': 'F',
                  'show_range_units': False,
                  'timestamp': datetime.datetime(2020, 7, 30, 20, 52, 8, 192000, tzinfo=datetime.timezone.utc)},
 'id': 12345678901234567,
 'id_s': '12345678901234567',
 'state': 'online',
 'tokens': ['...magic', '...unicorns'],
 'user_id': 123456,
 'vehicle_config': {'can_accept_navigation_requests': True,
                    'can_actuate_trunks': True,
                    'car_special_type': 'base',
                    'car_type': 'model3',
                    'charge_port_type': 'US',
                    'ece_restrictions': False,
                    'eu_vehicle': False,
                    'exterior_color': 'MidnightSilver',
                    'has_air_suspension': False,
                    'has_ludicrous_mode': False,
                    'key_version': 2,
                    'motorized_charge_port': True,
                    'plg': False,
                    'rear_seat_heaters': 1,
                    'rear_seat_type': None,
                    'rhd': False,
                    'roof_color': 'Glass',
                    'seat_type': None,
                    'spoiler_type': 'None',
                    'sun_roof_installed': None,
                    'third_row_seats': '<invalid>',
                    'timestamp': datetime.datetime(2020, 7, 30, 20, 52, 8, 192000, tzinfo=datetime.timezone.utc),
                    'use_range_badging': True,
                    'wheel_type': 'Stiletto19'},
 'vehicle_id': 1234567890,
 'vehicle_state': {'api_version': 9,
                   'autopark_state_v3': 'standby',
                   'autopark_style': 'standard',
                   'calendar_supported': True,
                   'car_version': '2020.28.5 4a6fbab3952d',
                   'center_display_state': 0,
                   'df': 0,
                   'dr': 0,
                   'fd_window': 0,
                   'fp_window': 0,
                   'ft': 0,
                   'homelink_device_count': 1,
                   'homelink_nearby': False,
                   'is_user_present': False,
                   'last_autopark_error': 'no_error',
                   'locked': False,
                   'media_state': {'remote_control_enabled': True},
                   'notifications_supported': True,
                   'odometer': 30538.946511,
                   'parsed_calendar_supported': True,
                   'pf': 0,
                   'pr': 0,
                   'rd_window': 0,
                   'remote_start': False,
                   'remote_start_enabled': True,
                   'remote_start_supported': True,
                   'rp_window': 0,
                   'rt': 0,
                   'sentry_mode': False,
                   'sentry_mode_available': True,
                   'smart_summon_available': True,
                   'software_update': {'download_perc': 0,
                                       'expected_duration_sec': 2700,
                                       'install_perc': 1,
                                       'status': '',
                                       'version': ''},
                   'speed_limit_mode': {'active': False,
                                        'current_limit_mph': 85.0,
                                        'max_limit_mph': 90,
                                        'min_limit_mph': 50,
                                        'pin_code_set': False},
                   'summon_standby_mode_enabled': True,
                   'timestamp': datetime.datetime(2020, 7, 30, 20, 52, 8, 191000, tzinfo=datetime.timezone.utc),
                   'valet_mode': False,
                   'valet_pin_needed': True,
                   'vehicle_name': 'Dark Nebula'},
 'vin': '5YJ3E1EA4KF000000'}

"api_version": 9,

@mloyd do you have a diff of the changes?

Not from v8 -> v9.  v10 is already out.  But it's exactly the same as v9.

authors: RCdiy jonasman mloyd tomansill

repo: timdorr/tesla-api


text:
DOC update

sun_roof_percent_open": 0,
"sun_roof_state": "closed",
are part of 'vehicel_state' not separate as shown in Data page

Can you make a PR? Thanks!

It is actually ok – just minor formatting issue Sent from Mail for Windows From: Tim DorrSent: Friday, March 25, 2022 9:42 PMTo: timdorr/tesla-apiCc: Panda88CO; AuthorSubject: Re: [timdorr/tesla-api] DOC update (Issue #550) Closed #550.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Refine check for existence of prom_schema_migrations table

Description
The table could exist in any schema. We expect there to be either 0 or 1
tables. If there are more then something really weird has happened, and
we can't safely proceed.
Part of: https://github.com/timescale/promscale_extension/issues/371
Merge requirements
Please take into account the following non-code changes that you may need to make with your PR:

[x] CHANGELOG entry for user-facing changes
[ ] Updated the relevant documentation

Why don't we define prom_schema_migrations in a specific schema? That could help us avoid this code completly

source: gharchive/pull-request

authors: JamesGuthrie niksajakovljevic

repo: timescale/promscale


text:
could not load data to Timestream, could you kindly help me on this

cat /tmp/timestream-data.gz| gunzip | tsbs_load load timestream
panic: config file didn't have a top-level 'data-source' objectoroutine 1 [running]:
main.createRunLoad.func1(0xc0003c6000, 0x189ca00, 0x0, 0x0)
/home/ubuntu/go/workspace/src/github.com/timescale/tsbs/cmd/tsbs_load/load_cmd.go:71 +0x1d1
github.com/spf13/cobra.(*Command).execute(0xc0003c6000, 0x189ca00, 0x0, 0x0, 0xc0003c6000, 0x189ca00)
/home/ubuntu/go/workspace/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x185be00, 0x0, 0x0, 0xc0000d0058)
/home/ubuntu/go/workspace/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
/home/ubuntu/go/workspace/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main()
/home/ubuntu/go/workspace/src/github.com/timescale/tsbs/cmd/tsbs_load/main.go:4 +0x2d

Thanks a lot in advace!

repo: timescale/tsbs


text:
"git clone git@github.com:timhaak/docker-sabnzbd.git" does not work for me

A remark about the instruction in the README.md:
$ git clone git@github.com:timhaak/docker-sabnzbd.git
Cloning into 'docker-sabnzbd'...
Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

so I use this:
git clone https://github.com/timhaak/docker-sabnzbd.git

and that works for me.

For got to close this :(

authors: sanderjo timhaak

repo: timhaak/docker-sabnzbd

license: mit

license_source: bigquery


text:
function imwrite()

How would I save the images to file using the function imwrite()

There's an example in the documentation. If there's an issue with it, feel free to reopen with more detailed informations.

How could I reconstruct the image using k largest singular values, where k
is 5% , 10% , 25%, 35%, 50%, of picture's smaller dimension
On Tue, May 5, 2015 at 12:35 PM, Lucas Beyer notifications@github.com
wrote:

There's an example in the documentation
http://timholy.github.io/Images.jl/function_reference.html#imwrite. If
there's an issue with it, feel free to reopen with more detailed
informations.
—
Reply to this email directly or view it on GitHub
https://github.com/timholy/Images.jl/issues/298#issuecomment-99133915.

I'm sorry, but this question is not very specific to images; moreover, I can't do your research for you. You'll have to figure it out yourself; hopefully, any image-specific questions you have will be mostly addressed in the documentation in this package. (Where it's not, I appreciate fixes or reports.)

authors: lucasb-eyer simplyman1 timholy


text:
TypeError: Cannot read properties of undefined (reading 'cwd')

Hi, I updated my project to contentlayer2, but I'm receiving an error during Vercel deployment.
Here are more details:
Error:
This error shouldn't have happened. Please consider opening a GitHub issue with the stack trace below here:
https://github.com/timlrx/contentlayer2/issues
An unchecked error was produced.
TypeError: Cannot read properties of undefined (reading 'cwd')
    at f (file:///vercel/path0/node_modules/@contentlayer/core/src/cwd.ts:24:53)
    at f (file:///vercel/path0/node_modules/@effect-ts/system/_src/Effect/has.ts:121:43)
    at IRead.f (file:///vercel/path0/node_modules/@effect-ts/system/_src/Effect/has.ts:113:33)
    at FiberContext.evaluateNow (file:///vercel/path0/node_modules/@effect-ts/system/_src/Fiber/context.ts:1136:31)
    at file:///vercel/path0/node_modules/@effect-ts/system/_src/Fiber/context.ts:576:33
    at file:///vercel/path0/node_modules/@effect-ts/system/_src/Support/Scheduler/index.ts:15:9
Fiber: #0 (started at: 2024-10-08T19:54:50.619Z) was supposed to continue to: <empty trace>
Fiber: #0 (started at: 2024-10-08T19:54:50.619Z) Execution trace: <empty trace>
Fiber: #0 (started at: 2024-10-08T19:54:50.619Z) was spawned by: <empty trace>
OS: linux 5.10.174 (arch: x64)
Process: /node20/bin/node /vercel/path0/node_modules/.bin/next build
Node version: v20.17.0
Contentlayer version: 0.5.1
Error: Command "npm run build" exited with 1

Branch I'm trying to upgrade contentlayer v1 to v2:
https://github.com/dariusz-wozniak/dariuszwozniak.net-v2/pull/67
Do you know what's the cause of the issue and how to fix that?

I am having the same issue via a different deployment method. I am trying to build a docker container locally on my laptop.
Here is the docker file:
FROM node:18-alpine AS base

# Install dependencies only when needed
FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app

# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
  if [ -f yarn.lock ]; then yarn --immutable; \
  elif [ -f package-lock.json ]; then npm ci; \
  elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
  else echo "Lockfile not found." && exit 1; \
  fi

# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

ENV NEXT_TELEMETRY_DISABLED=1

RUN \
  if [ -f yarn.lock ]; then yarn build; \
  elif [ -f package-lock.json ]; then npm run build; \
  elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
  else echo "Lockfile not found." && exit 1; \
  fi

# Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app

ENV NODE_ENV=production
# Uncomment the following line in case you want to disable telemetry during runtime.
# ENV NEXT_TELEMETRY_DISABLED=1

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

COPY --from=builder /app/public ./public

# Set the correct permission for prerender cache
RUN mkdir .next
RUN chown nextjs:nodejs .next

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static

USER nextjs

EXPOSE 3000

ENV PORT=3000

# server.js is created by next build from the standalone output
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
ENV HOSTNAME="0.0.0.0"
CMD ["node", "server.js"]

And this is the error I am getting:
jonb@Jonathans-MBP jonb.io % docker build -t jonbio .
[+] Building 11.4s (16/21)                                                                                docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 2.07kB                                                                                0.0s
 => [internal] load metadata for docker.io/library/node:18-alpine                                                                                0.6s
 => [auth] library/node:pull token for registry-1.docker.io                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [internal] load build context                                                                                2.2s
 => => transferring context: 50.74MB                                                                                2.0s
 => [base 1/1] FROM docker.io/library/node:18-alpine@sha256:02376a266c84acbf45bd19440e08e48b1c8b98037417334046029ab585de03e2                                       0.0s
 => => resolve docker.io/library/node:18-alpine@sha256:02376a266c84acbf45bd19440e08e48b1c8b98037417334046029ab585de03e2                                            0.0s
 => CACHED [builder 1/4] WORKDIR /app                                                                                0.0s
 => CACHED [runner 2/8] RUN addgroup --system --gid 1001 nodejs                                                                                0.0s
 => CACHED [runner 3/8] RUN adduser --system --uid 1001 nextjs                                                                                0.0s
 => CACHED [deps 1/4] RUN apk add --no-cache libc6-compat                                                                                0.0s
 => CACHED [deps 2/4] WORKDIR /app                                                                                0.0s
 => CACHED [deps 3/4] COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./                                                                           0.0s
 => CACHED [deps 4/4] RUN   if [ -f yarn.lock ]; then yarn --immutable;   elif [ -f package-lock.json ]; then npm ci;   elif [ -f pnpm-lock.yaml ]; then corepack  0.0s
 => CACHED [builder 2/4] COPY --from=deps /app/node_modules ./node_modules                                                                                0.0s
 => [builder 3/4] COPY . .                                                                                5.9s
 => ERROR [builder 4/4] RUN   if [ -f yarn.lock ]; then yarn build;   elif [ -f package-lock.json ]; then npm run build;   elif [ -f pnpm-lock.yaml ]; then corep  2.6s
------
 > [builder 4/4] RUN   if [ -f yarn.lock ]; then yarn build;   elif [ -f package-lock.json ]; then npm run build;   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build;   else echo "Lockfile not found." && exit 1;   fi:
1.029   ▲ Next.js 14.2.3
1.030
1.044    Creating an optimized production build ...
2.487 This error shouldn't have happened. Please consider opening a GitHub issue with the stack trace below here:
2.487 https://github.com/timlrx/contentlayer2/issues
2.487
2.487 An unchecked error was produced.
2.487
2.487 TypeError: Cannot read properties of undefined (reading 'cwd')
2.487     at f (file:///app/node_modules/contentlayer2/node_modules/@contentlayer2/core/src/cwd.ts:24:53)
2.487     at f (file:///app/node_modules/@effect-ts/system/_src/Effect/has.ts:121:43)
2.487     at IRead.f (file:///app/node_modules/@effect-ts/system/_src/Effect/has.ts:113:33)
2.487     at FiberContext.evaluateNow (file:///app/node_modules/@effect-ts/system/_src/Fiber/context.ts:1136:31)
2.487     at file:///app/node_modules/@effect-ts/system/_src/Fiber/context.ts:576:33
2.487     at file:///app/node_modules/@effect-ts/system/_src/Support/Scheduler/index.ts:15:9
2.487
2.487 Fiber: #0 (started at: 2024-10-15T20:38:21.622Z) was supposed to continue to: <empty trace>
2.487
2.487 Fiber: #0 (started at: 2024-10-15T20:38:21.622Z) Execution trace: <empty trace>
2.487
2.487 Fiber: #0 (started at: 2024-10-15T20:38:21.622Z) was spawned by: <empty trace>
2.488
2.488 OS: linux 6.10.4-linuxkit (arch: arm64)
2.488 Process: /usr/local/bin/node /app/node_modules/next/dist/bin/next build
2.488 Node version: v18.20.4
2.488 Contentlayer version: 0.5.1
2.488
------
Dockerfile:27
--------------------
  26 |
  27 | >>> RUN \
  28 | >>>   if [ -f yarn.lock ]; then yarn build; \
  29 | >>>   elif [ -f package-lock.json ]; then npm run build; \
  30 | >>>   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
  31 | >>>   else echo "Lockfile not found." && exit 1; \
  32 | >>>   fi
  33 |
--------------------
ERROR: failed to solve: process "/bin/sh -c if [ -f yarn.lock ]; then yarn build;   elif [ -f package-lock.json ]; then npm run build;   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build;   else echo \"Lockfile not found.\" && exit 1;   fi" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/ewoyqgjvzgaazags9ih4exv63

I can sucessfully build externally outside of the docker container:
jonb@Jonathans-MBP jonb.io % docker build -t jonbio .
[+] Building 11.4s (16/21)                                                                                docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 2.07kB                                                                                0.0s
 => [internal] load metadata for docker.io/library/node:18-alpine                                                                                0.6s
 => [auth] library/node:pull token for registry-1.docker.io                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [internal] load build context                                                                                2.2s
 => => transferring context: 50.74MB                                                                                2.0s
 => [base 1/1] FROM docker.io/library/node:18-alpine@sha256:02376a266c84acbf45bd19440e08e48b1c8b98037417334046029ab585de03e2                                       0.0s
 => => resolve docker.io/library/node:18-alpine@sha256:02376a266c84acbf45bd19440e08e48b1c8b98037417334046029ab585de03e2                                            0.0s
 => CACHED [builder 1/4] WORKDIR /app                                                                                0.0s
 => CACHED [runner 2/8] RUN addgroup --system --gid 1001 nodejs                                                                                0.0s
 => CACHED [runner 3/8] RUN adduser --system --uid 1001 nextjs                                                                                0.0s
 => CACHED [deps 1/4] RUN apk add --no-cache libc6-compat                                                                                0.0s
 => CACHED [deps 2/4] WORKDIR /app                                                                                0.0s
 => CACHED [deps 3/4] COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./                                                                           0.0s
 => CACHED [deps 4/4] RUN   if [ -f yarn.lock ]; then yarn --immutable;   elif [ -f package-lock.json ]; then npm ci;   elif [ -f pnpm-lock.yaml ]; then corepack  0.0s
 => CACHED [builder 2/4] COPY --from=deps /app/node_modules ./node_modules                                                                                0.0s
 => [builder 3/4] COPY . .                                                                                5.9s
 => ERROR [builder 4/4] RUN   if [ -f yarn.lock ]; then yarn build;   elif [ -f package-lock.json ]; then npm run build;   elif [ -f pnpm-lock.yaml ]; then corep  2.6s
------
 > [builder 4/4] RUN   if [ -f yarn.lock ]; then yarn build;   elif [ -f package-lock.json ]; then npm run build;   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build;   else echo "Lockfile not found." && exit 1;   fi:
1.029   ▲ Next.js 14.2.3
1.030
1.044    Creating an optimized production build ...
2.487 This error shouldn't have happened. Please consider opening a GitHub issue with the stack trace below here:
2.487 https://github.com/timlrx/contentlayer2/issues
2.487
2.487 An unchecked error was produced.
2.487
2.487 TypeError: Cannot read properties of undefined (reading 'cwd')
2.487     at f (file:///app/node_modules/contentlayer2/node_modules/@contentlayer2/core/src/cwd.ts:24:53)
2.487     at f (file:///app/node_modules/@effect-ts/system/_src/Effect/has.ts:121:43)
2.487     at IRead.f (file:///app/node_modules/@effect-ts/system/_src/Effect/has.ts:113:33)
2.487     at FiberContext.evaluateNow (file:///app/node_modules/@effect-ts/system/_src/Fiber/context.ts:1136:31)
2.487     at file:///app/node_modules/@effect-ts/system/_src/Fiber/context.ts:576:33
2.487     at file:///app/node_modules/@effect-ts/system/_src/Support/Scheduler/index.ts:15:9
2.487
2.487 Fiber: #0 (started at: 2024-10-15T20:38:21.622Z) was supposed to continue to: <empty trace>
2.487
2.487 Fiber: #0 (started at: 2024-10-15T20:38:21.622Z) Execution trace: <empty trace>
2.487
2.487 Fiber: #0 (started at: 2024-10-15T20:38:21.622Z) was spawned by: <empty trace>
2.488
2.488 OS: linux 6.10.4-linuxkit (arch: arm64)
2.488 Process: /usr/local/bin/node /app/node_modules/next/dist/bin/next build
2.488 Node version: v18.20.4
2.488 Contentlayer version: 0.5.1
2.488
------
Dockerfile:27
--------------------
  26 |
  27 | >>> RUN \
  28 | >>>   if [ -f yarn.lock ]; then yarn build; \
  29 | >>>   elif [ -f package-lock.json ]; then npm run build; \
  30 | >>>   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
  31 | >>>   else echo "Lockfile not found." && exit 1; \
  32 | >>>   fi
  33 |
--------------------
ERROR: failed to solve: process "/bin/sh -c if [ -f yarn.lock ]; then yarn build;   elif [ -f package-lock.json ]; then npm run build;   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build;   else echo \"Lockfile not found.\" && exit 1;   fi" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/ewoyqgjvzgaazags9ih4exv63

@dariusz-wozniak a few errors:

You should update pliny to the latest version. 0.1.x still uses the old contentlayer.
Import from contentlayer2 instead of contentlayer in this line: https://github.com/dariusz-wozniak/dariuszwozniak.net-v2/blob/fix/fix_windows_env/contentlayer.config.ts#L1
Subsequently you will get some new errors due to using older version of remark / rehype packages. It might be easier to reference my updated package.json as a guide

After a dependency update of remark/rehype plugins, I had to remove .contentlayer and .node-modules to remove this error.

authors: dariusz-wozniak jonbranan laem timlrx


text:
Always write 0 to Process Memory

void main() {
  var lpBaseAddress = Pointer<Int32>.fromAddress(0x91A368B);
  final lpBuffer = calloc<Uint32>(32768);
  var lpNumberOfBytesWritten = nullptr;

  var hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, 56116);
  var written = WriteProcessMemory(
    hProcess,
    lpBaseAddress,
    lpBuffer,
    sizeOf<Int32>(),
    lpNumberOfBytesWritten,
  );

  print(written);
  // return 1;
  // memory written 0.
}

Sorry -- what's the question? That's what the Win32 API is returning. What are you trying to do? What is process ID 56116? What is address 0x91A368B?

The problem is. When writing a new value to an address in memory, it does not write my value. Always write 0.
56116 PID of my process.
0x91A368B is the address I need to change the value.

And you are calling this from an elevated process that has the rights to change memory?
I'm a little skeptical that this is an issue in the Win32 package, since it simply calls the underlying Win32 API. It might be worth attempting to craft a small C equivalent of the above code and seeing whether it works differently to the Dart code or not.

Hi. I tested the process write function and everything works fine for me.
Out:

main.dart

import 'dart:async';
import 'dart:ffi';

import 'package:ffi/ffi.dart';
import 'package:win32/win32.dart';

import 'target_process_messenger.dart';

Future main() async {
  final targetProcess = TargetProcessMessenger();
  await targetProcess.startProcess('target_process.dart');
  final address = await targetProcess.getMemoryAddress();
  var value = await targetProcess.getMemoryValue();

  print('memory address: 0x${address.toRadixString(16)}');
  print('currValue: $value');

  print('Write memory.');
  writeMemory(address, targetProcess.process.pid);

  value = await targetProcess.getMemoryValue();
  print('newValue: $value');

  targetProcess.close();
}

const FAIL = 0;

void writeMemory(int address, int processPid) {
  final pNewValue = someNewValue.toNativeUtf16();

  var processHandle = 0;
  try {
    processHandle = OpenProcess(
      PROCESS_ALL_ACCESS,
      FALSE,
      processPid,
    );

    if (processHandle == FAIL) {
      throw 'Open process fail.';
    }

    var isWriteMemory = WriteProcessMemory(
      processHandle,
      Pointer.fromAddress(address),
      pNewValue,
      pNewValue.length * 2,
      nullptr,
    );

    if (isWriteMemory == FAIL) {
      throw 'WriteProcessMemory fail.';
    }
  } finally {
    free(pNewValue);
    CloseHandle(processHandle);
  }
}

final someNewValue = List.generate(32, (i) => i.isOdd ? '0' : '1').join();

target_process.dart

import 'dart:convert';
import 'dart:io';

import 'package:ffi/ffi.dart';
import 'package:win32/win32.dart';

Future main(List<String> args) async {
  const charLen = 32;
  final memoryContainer =
      List.generate(charLen, (index) => '0').join().toNativeUtf16();

  final port = int.parse(args[0]);
  final client = await Socket.connect(InternetAddress.loopbackIPv6, port);

  client.cast<List<int>>().transform(utf8.decoder).listen((serverRequest) {
    switch (serverRequest) {
      case 'give me the address':

        client.write('keep the memory address: ${memoryContainer.address}');
        break;
      case 'give me the value':
        final value = memoryContainer.cast<Utf16>().toDartString();
        client.write('keep the memory value: $value');
        break;
    }
  }, onDone: () {
    free(memoryContainer);
  });
}

target_process_messenger.dart

import 'dart:async';
import 'dart:convert';

import 'dart:io';

class TargetProcessMessenger {
  late final ServerSocket _server;
  late final Socket _targetProcess;
  late final Process process;
  final _clientCompleter = Completer<Socket>();
  late Completer<int> _addressCompleter;
  late Completer<String> _valueCompleter;

  Future<void> startProcess(String targetScript) async {
    print('Start server...');
    await _startServer();

    print('Start target process $targetScript.');
    process = await Process.start(
      'dart',
      ['$currentDir$targetScript', '${_server.port}'],
    );

    print('Wait target process...');
    _targetProcess = await _clientCompleter.future;

    print('Target process connected (pid=${process.pid}).');
  }

  Future<void> _startServer() async {
    _server = await ServerSocket.bind(InternetAddress.loopbackIPv6, 0);

    _server.listen(
      _clientConnected,
      onDone: () {
        process.kill();
      },
    );
  }

  void _clientConnected(Socket client) {
    client.cast<List<int>>().transform(utf8.decoder).listen((data) {
      final answer = data.split(':');
      switch (answer[0]) {
        case 'keep the memory address':
          final address = int.parse(answer[1]);
          _addressCompleter.complete(address);
          break;

        case 'keep the memory value':
          _valueCompleter.complete(answer[1].trim());
          break;
      }
    }, onDone: () {
      _targetProcess.close();
    });
    _clientCompleter.complete(client);
  }

  Future<int> getMemoryAddress() {
    _addressCompleter = Completer<int>();
    _targetProcess.write('give me the address');
    return _addressCompleter.future;
  }

  Future<String> getMemoryValue() {
    _valueCompleter = Completer<String>();
    _targetProcess.write('give me the value');
    return _valueCompleter.future;
  }

  void close() {
    _server.close();
  }
}

final someNewValue = List.generate(32, (i) => i.isOdd ? '0' : '1').join();

final String currentDir =
    Platform.script.path.replaceAll(RegExp(r'(^/)|([^/]+$)'), '');

Hi. I tested the process write function and everything works fine for me.
Out:

main.dart
target_process.dart
target_process_messenger.dart

tried to write in decimal in the memory of another process?

Result:

Files:
main.dart

import 'dart:async';
import 'dart:ffi';

import 'package:ffi/ffi.dart';
import 'package:win32/win32.dart';

import 'target_process_messenger.dart';

Future main() async {
  final targetProcess = TargetProcessMessenger();
  await targetProcess.startProcess('target_process.dart');

  final address = await targetProcess.getMemoryAddress();
  print('memory address: 0x${address.toRadixString(16)}');

  for(var i = 0; i < 5; i++) {
    var value = await targetProcess.getMemoryValue();
    print('currValue: $value');

    print('Write memory.');
    incrementMemoryValue(address, targetProcess.process.pid);

    value = await targetProcess.getMemoryValue();
    print('newValue: $value\n');
  }

  targetProcess.close();
}

const FAIL = 0;

void incrementMemoryValue(int address, int processPid) {
  final pAddress = Pointer.fromAddress(address);
  final pNewMemory = calloc<Uint32>(8);

  var processHandle = 0;
  try {
    processHandle = OpenProcess(
      PROCESS_ALL_ACCESS,
      FALSE,
      processPid,
    );

    if (processHandle == FAIL) {
      throw 'Open process fail.';
    }

    final isReadMemory = ReadProcessMemory(
      processHandle,
      pAddress,
      pNewMemory,
      32,
      nullptr,
    );

    if (isReadMemory == FAIL) {
      throw 'ReadProcessMemory fail.';
    }

    for (var i = 0; i < 8; i++) {
      pNewMemory[i]++;
    }

    final isWriteMemory = WriteProcessMemory(
      processHandle,
      pAddress,
      pNewMemory,
      32,
      nullptr,
    );

    if (isWriteMemory == FAIL) {
      throw 'WriteProcessMemory fail.';
    }
  } finally {
    free(pNewMemory);
    CloseHandle(processHandle);
  }
}

target_process.dart

import 'dart:convert';
import 'dart:ffi';
import 'dart:io';

import 'package:ffi/ffi.dart';
import 'package:win32/win32.dart';

Future main(List<String> args) async {
  const LEN = 8;
  final pMemory = calloc<Uint32>(LEN);
  for(var i = 0; i < LEN; i++) {
    pMemory[i] = i;
  }

  final port = int.parse(args[0]);
  final client = await Socket.connect(InternetAddress.loopbackIPv6, port);

  client.cast<List<int>>().transform(utf8.decoder).listen((serverRequest) {
    switch (serverRequest) {
      case 'give me the address':
        client.write('keep the memory address: ${pMemory.address}');
        break;

      case 'give me the value':
        final value = pMemory.asTypedList(LEN);
        client.write('keep the memory value: $value');
        break;
    }
  }, onDone: () {
    free(pMemory);
  });
}

target_process_messenger.dart

import 'dart:async';
import 'dart:convert';

import 'dart:io';

class TargetProcessMessenger {
  late final ServerSocket _server;
  late final Socket _targetProcess;
  late final Process process;
  final _clientCompleter = Completer<Socket>();
  late Completer<int> _addressCompleter;
  late Completer<String> _valueCompleter;

  Future<void> startProcess(String targetScript) async {
    print('Start server...');
    await _startServer();

    print('Start target process $targetScript.');
    process = await Process.start(
      'dart',
      ['$currentDir$targetScript', '${_server.port}'],
    );

    print('Wait target process...');
    _targetProcess = await _clientCompleter.future;

    print('Target process connected (pid=${process.pid}).');
  }

  Future<void> _startServer() async {
    _server = await ServerSocket.bind(InternetAddress.loopbackIPv6, 0);

    _server.listen(
      _clientConnected,
      onDone: () {
        process.kill();
      },
    );
  }

  void _clientConnected(Socket client) {
    client.cast<List<int>>().transform(utf8.decoder).listen((data) {
      final answer = data.split(':');
      switch (answer[0]) {
        case 'keep the memory address':
          final address = int.parse(answer[1]);
          _addressCompleter.complete(address);
          break;

        case 'keep the memory value':
          _valueCompleter.complete(answer[1].trim());
          break;
      }
    }, onDone: () {
      _targetProcess.close();
    });
    _clientCompleter.complete(client);
  }

  Future<int> getMemoryAddress() {
    _addressCompleter = Completer<int>();
    _targetProcess.write('give me the address');
    return _addressCompleter.future;
  }

  Future<String> getMemoryValue() {
    _valueCompleter = Completer<String>();
    _targetProcess.write('give me the value');
    return _valueCompleter.future;
  }

  void close() {
    _server.close();
  }
}

final String currentDir =
    Platform.script.path.replaceAll(RegExp(r'(^/)|([^/]+$)'), '');

tried to write in decimal in the memory of another process?

It does not matter. We are passing an array of bytes.
Result:

Files:
main.dart
target_process.dart
target_process_messenger.dart

Thx, you helped identify my error.
calloc starts at 0 and I'm not assigning any value to it.

authors: ilopX rajada1 timsneath


text:
File upload field

We have an image field to allow users to upload an image, but we could use a more generic version of this field for users to upload any sort of file (as long as it's compatible with their media store).

Still relevant

repo: tinacms/tinacms


text:
fix: Codeowners

I wonder if having a @tinacms in the path is an issue.

I did an amazing bad job of reading the blog post example the first time around 😅

authors: DirtyF ncphillips


text:
ENG-7129 add userdata endpoint

Note: depends on pr https://github.com/tinkerbell/hegel/pull/16 to be merged first
Description

Adds the /userdata endpoint to hegel
Why is this needed

Hegel is currently missing the /userdata, /components, and /2009-04-04 endpoints that is present in Kant.
Fixes: #
How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:
I have:

[ ] updated the documentation and/or roadmap (if required)
[ ] added unit or e2e tests
[ ] provided instructions on how to upgrade

no longer needed

repo: tinkerbell/hegel


text:
Added Thai translation

Hello, my name is Jirapat. Thai is my mother tongue. I want to help with this translation.

Thanks! I'll check it today.

authors: Bukharney or-else

repo: tinode/webapp


text:
add support for unix domain sockets

with my "anysocket" crate
Implements #172

I would personally be against this type of change, as it strongly looks like a feature creep to me.
If someone needs Unix domain sockets, there exist other libraries than tiny-http.

@tomaka Unix Domain sockets are an essential part of the socket world. They're important for hosting via reverse proxies

Hi. Thank you for the PR.
While I'm myself on the fence on the value of http-servers on unix sockets, it's importance is demonstrated by the fact that two PR:s have been devised for this.
However of the two approaches, considering anysocket seems to be a one-man effort, at 0.1 release, and with no other dependent crates, I'd strongly avoid adding that as a dependency for tiny-http. I'm therefore going to close this PR.
If you still want to contribute, since you're obviously knowledgeable in the field, I'd value your input on https://github.com/tiny-http/tiny-http/pull/187.

Hi. Thank you for the PR.
While I'm myself on the fence on the value of http-servers on unix sockets, it's importance is demonstrated by the fact that two PR:s have been devised for this.
However of the two approaches, considering anysocket seems to be a one-man effort, at 0.1 release, and with no other dependent crates, I'd strongly avoid adding that as a dependency for tiny-http. I'm therefore going to close this PR.
If you still want to contribute, since you're obviously knowledgeable in the field, I'd value your input on https://github.com/tiny-http/tiny-http/pull/187.

authors: njaard rawler tomaka

repo: tiny-http/tiny-http


text:
"TypeError: ord() expected string of length 1, but int found" - python3 (TinyFPGA BX, Ubuntu 19.04)

https://github.com/tinyfpga/TinyFPGA-Bootloader/blob/99f87a5947fada082cc11606a2b3370f50e1f970/programmer/tinyprog/__init__.py#L38
... Removing the call to ord() here allows the script to continue execution.

@zrecore Can you please test this fixed your issue?

@mithro ok, testing now

Ok, no more python errors using mithro/TinyFPGA-Bootloader repo, master branch. 👍
(Still getting the gateware size issue, but that's probably a different problem)

@zrecore It looks like your still failing? Can you log a full bug for that somewhere (maybe on https://github.com/timvideos/litex-buildenv/issues)?

@mithro added issue at https://github.com/timvideos/litex-buildenv/issues/137

authors: mithro zrecore

repo: tinyfpga/TinyFPGA-Bootloader


text:
Write tar_extract

This implements the tar_extract functionality from #6146 and dedicated tests.
The tests are inside test_disk_tensor.py as this is the module I found most fitting, please let me know if there's a better one.

hey @Max-We let me just put the pathlib tests in test_disk_tensor.py, then we can test the tar_extract for pathlib as well.

Hey @kaushal07wick I already added some tests for pathlib by now, you can integrate yours if you have additional tests

hey @Max-We the tests seem decent for now, nothing to add from what i can think off.

Merged! email george@tinygrad.org with a PayPal or USDC (on ethereum) to claim $50

hey @geohot do I get the bounty as well, and discord contributor role?

it is but i was going to write the full code for pathlib, but you told me to work with him and he pushed the changes before me.
Its unjustfied. hope you understand.

repo: tinygrad/tinygrad


text:
Bug: Unicode Normalization not appropriate for ASCII-8BIT

The Metainspector gem uses Faraday as a dependency and a bug was reported there which seems to be related to this gem.
https://github.com/jaimeiniesta/metainspector/issues/414
Summary:
The redirect response changes the encoding from UTF-8 to ASCII-8BIT
Steps to reproduce:
irb

require 'faraday'
require 'faraday/follow_redirects'
require 'faraday-cookie_jar'

session = Faraday.new(url: 'https://apps.apple.com/us/app/id1501495423') do |faraday|
             faraday.use Faraday::FollowRedirects::Middleware
             faraday.use :cookie_jar
end

session.get

This is the error I got:
/home/ma/.rbenv/versions/3.2.2/lib/ruby/3.2.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/domain_name-0.6.20231109/lib/domain_name.rb:292:in `unicode_normalize'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/domain_name-0.6.20231109/lib/domain_name.rb:292:in `normalize'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/domain_name-0.6.20231109/lib/domain_name.rb:100:in `initialize'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie.rb:553:in `new'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie.rb:553:in `acceptable_from_uri?'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie.rb:592:in `valid_for_uri?'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie_jar/hash_store.rb:82:in `block (3 levels) in each'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie_jar/hash_store.rb:76:in `delete_if'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie_jar/hash_store.rb:76:in `block (2 levels) in each'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie_jar/hash_store.rb:74:in `each'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie_jar/hash_store.rb:74:in `block in each'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie_jar/hash_store.rb:73:in `each'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie_jar/hash_store.rb:73:in `each'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie_jar.rb:163:in `each'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie_jar.rb:131:in `each'
	from /home/ma/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/http-cookie-1.0.5/lib/http/cookie_jar.rb:131:in `sort'
	... 14 levels...

From a Rails app, I got the same error, this is the full stack of errors:
[/home/ma/.rbenv/versions/3.2.2/lib/ruby/3.2.0/unicode_normalize/normalize.rb:141:in `normalize'](http://localhost:3000/#)
[domain_name (0.6.20231109) lib/domain_name.rb:292:in `unicode_normalize'](http://localhost:3000/#)
[domain_name (0.6.20231109) lib/domain_name.rb:292:in `normalize'](http://localhost:3000/#)
[domain_name (0.6.20231109) lib/domain_name.rb:100:in `initialize'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie.rb:553:in `new'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie.rb:553:in `acceptable_from_uri?'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie.rb:592:in `valid_for_uri?'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar/hash_store.rb:82:in `block (3 levels) in each'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar/hash_store.rb:76:in `delete_if'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar/hash_store.rb:76:in `block (2 levels) in each'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar/hash_store.rb:74:in `each'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar/hash_store.rb:74:in `block in each'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar/hash_store.rb:73:in `each'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar/hash_store.rb:73:in `each'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar.rb:163:in `each'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar.rb:131:in `each'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar.rb:131:in `sort'](http://localhost:3000/#)
[http-cookie (1.0.5) lib/http/cookie_jar.rb:131:in `cookies'](http://localhost:3000/#)
[faraday-cookie_jar (0.0.7) lib/faraday/cookie_jar.rb:12:in `call'](http://localhost:3000/#)
[faraday-follow_redirects (0.3.0) lib/faraday/follow_redirects/middleware.rb:77:in `perform_with_redirection'](http://localhost:3000/#)
[faraday-follow_redirects (0.3.0) lib/faraday/follow_redirects/middleware.rb:85:in `block in perform_with_redirection'](http://localhost:3000/#)
[faraday (2.7.12) lib/faraday/response.rb:42:in `on_complete'](http://localhost:3000/#)
[faraday-follow_redirects (0.3.0) lib/faraday/follow_redirects/middleware.rb:79:in `perform_with_redirection'](http://localhost:3000/#)
[faraday-follow_redirects (0.3.0) lib/faraday/follow_redirects/middleware.rb:65:in `call'](http://localhost:3000/#)
[faraday (2.7.12) lib/faraday/rack_builder.rb:153:in `build_response'](http://localhost:3000/#)
[faraday (2.7.12) lib/faraday/connection.rb:444:in `run_request'](http://localhost:3000/#)
[faraday (2.7.12) lib/faraday/connection.rb:200:in `get'](http://localhost:3000/#)

I could not find exactly the source of the issue, so I don't really have a fully thought-out solution for this but I could fix this issue by changing line 93 of lib/faraday/follow_redirects.rb:
From:
redirect_to_url = safe_escape(response['location'] || '')
To:
redirect_to_url = safe_escape(response['location'].force_encoding("UTF-8") || '')
Same behaviour happens with other urls that will trigger the redirecting behaviour, like for example https://nytimes.com

response['location'] may come from net-http, which is the default Faraday adapter. net-http parses response the headers using #readuntil internally. #readuntil returns ASCII-8BIT encoded string, so response['location'] is encoded as ASCII-8BIT. Maybe, faraday-follow-redirects should consider the case where the Location header is encoded as ASCII-8BIT.

However, I'm not confident faraday-follow-redirects should encode the URL. faraday-follow-redirects will update env[:url] with response['location'] from net-http here. Should env[:url] always be encoded as UTF-8?
https://github.com/tisba/faraday-follow-redirects/blob/04bec93252ca23b06cb99b44878952441f58cf35/lib/faraday/follow_redirects/middleware.rb#L94
Without faraday-cookie_jar, it's fine to assign an ASCII-8BIT string to env[:url] in almost cases. As far as I commented, this might be the matter of domain_name. The same issue is reported here.
https://github.com/knu/ruby-domain_name/issues/23

I need to do some more digging to understand how the ruby-domain_name gem is supposed to work and how things exactly interact.
My current thought process is not to encode anything into UTF-8 for this gem:

URLs by definition cannot be unicode.
Domains might be encoded in Punycode (RFC3492) but still are always (a subset) ASCII-8bit.
Same with the rest of the URL. It's actually not even ASCII, but a printable subset.
Browsers (and possibly other clients) might provide the illusion of the path or arguments being in unicode, but they cannot (see e.g. RFC3986).
The redirect location from the Location HTTP response header is also ALWAYS in a sub-set of ASCII, see RFC2616 Section 4.2.

Maybe some of the other involved gems do accept UTF-8 encoded domain names for convince, but I'm pretty sure they should always accept and handle ASCII-8BIT too.

Follow-Up, see https://github.com/knu/ruby-domain_name/issues/23 and https://github.com/knu/ruby-domain_name/pull/27

This fix has been merged upstream, see https://github.com/knu/ruby-domain_name/blob/master/CHANGELOG.md. The domain_name  gem in v0.6.20240107 now skips Unicode normalization if the input is strictly ASCII only.

authors: divagueame tisba yykamei

repo: tisba/faraday-follow-redirects


text:
Issues when making GET requests to the "/api/v1/courses/search/{university}" endpoint

For UCSC, discussion sections are not included in the course information provided. Also, when using CalPoly as the selected university, labs and classes both show up as "Class"

UCSC discussion sessions
There were some limitations with using a student-made UCSC API. However, there is a work around, and I can probably patch it in a week.
CalPoly labs+classes showing up as class
This is a naming convention error, mostly due to my thought process. All meetings of a course, whether they are labs, classes, lectures, or seminars, will show up as a Class. In a future implementation, I'll be changing it to Section, since that seems to be a more appropriate term.
For you @matthew-boisvert
Frankly, I didn't think anyone was using my tool LOL, but I am still working with a friend to implement other endpoints, albeit slowly. If there's anything you'd like me to prioritize, since it seems you are using it, lemme know! I'd be happy to implement or improve endpoints if it helps on a project you are working on

Thanks for responding so quickly! I actually was able to get section information using SlugScheduler directly for UCSC course data (there is a separate endpoint that captures this data) for my own related app.
I was actually using your API to try and get CalPoly and UCI course info for a lab project I'm working on at UCSC. If it would be possible to classify the labs at CalPoly as sections instead of classes that would be very helpful. Also, I was wondering if it's possible to access the days of the week that a class occurs using your API. Thanks!

Gotchu! I started implementing a days-of-the-week attribute of classses/section, using datetime objects. I'll be working on it this week, so hopefully by Friday, you can hear back from me with changes for classification of labs, as well as class occurrences throughout the week.
As a sidenote, there is another UCI Web API I'm working on with a team of other students (which is why CourseCake has stagnated). Unfortunately, all documentation went offline due to migration, but I can update you on that as well!

Awesome that's really helpful! Feel free to take your time on those if it takes longer than expected to implement. And once again thank you so much, it has definitely been challenging to find accessible course data for California universities

I also noticed that some of the "time" fields associated with classes from the endpoint /courses/search/uci seem to be full intervals (like "12:00-12:50p") whereas others are just an individual time (like "5:50p"). I was wondering if it would be possible to get the full intervals for the classes

AltLayer Airdrop Season One Update

🚀 Exciting Announcement! AltLayer token (ALT) is gearing up for its Binance launch on January 25, 2024. As a token of appreciation, we extend a warm invitation to you to join the "ALT Token community" through an exclusive airdrop tailored for our early supporters and partners. Here's a quick overview:

Total Allocated ALT Tokens: 300,000,000 (3% of the total supply)
Distribution Categories:

Ethereum Mainnet
Binance Mainnet

For a comprehensive breakdown of criteria and further details, refer to the complete announcement Oficial Website.
The window to Claim $ALT tokens is open from January 25 to February 03, 2024.
Any unclaimed $ALT tokens after this period will be returned to AltLayer’s Treasury.
We deeply appreciate your contribution to AltLayer's success! Stay tuned for more exciting developments in Season One.
Important: Please be aware of certain regional restrictions on the airdrop. Review the disclaimer before participating.
robot-oekonom, @eric-volz, @gududefengzhong, @glhahn, @bryanbarnard, @underlost, @ead353, @flewor2, @kenneth, @ayteam, @dethan3, @sunbeyond, @HDaskalov, @curtailment, @TimDaub, @bilalcelebi, @Tsuiguangchun, @alaztetik, @Sukanthan, @kdmukai

repo: tisuela/CourseCake


text:
🛑 home.tjo.space is down

In fa4f8d8, home.tjo.space (https://home.tjo.space) was down:

HTTP code: 0
Response time: 0 ms

Resolved: home.tjo.space is back up in 89f5f26.

repo: tjo-space/status


text:
🛑 SITE_OPENAI is down

In ef2b6cf, SITE_OPENAI ($SITE_OPENAI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SITE_OPENAI is back up in f27483e after 31 minutes.

repo: tjsky/upptime


text:
[BlockBuilder] introduce call_te

Hi all. BlockBuilder emit_te brings a great interface to craft IRModule and unit tests.
Currently, emit_te contains two operators: call_te(Create a call_tir with TE compute) and emit(bind a relax Expr to a var). However, emit_te can not directly emit_output if inside a dataflow block. i.e., we can not build such a case with block builder:
@relax.function
def fused_add_exp_squeeze(x: Tensor[(10, 20), "float32"]) -> Tensor[_, "float32"]:
    # block 0
    with relax.dataflow():
        lv = relax.call_tir(exp, (x,), (10, 20), dtype="float32")
        gv = relax.call_tir(squeeze, (lv,), (10, 20), dtype="float32")
        relax.output(gv)
    return gv

We can only build the function like
@relax.function
def fused_add_exp_squeeze(x1: Tensor[(10, 20), "float32"]) -> Tensor[_, "float32"]:
    # block 0
    with relax.dataflow():
        lv = relax.call_tir(add, (x1, 1), (10, 20), dtype="float32")
        lv1 = relax.call_tir(exp, (lv,), (10, 20), dtype="float32")
        lv2 = relax.call_tir(squeeze, (lv1,), (10, 20), dtype="float32")
        gv: Tensor[(10, 20), "float32"] = lv2    # <= We must emit_output again from a local var
        relax.output(gv)
    return gv

Usually, it does not bring many troubles to users but it may block us to write testing (craft the expected result and assert structural equality)
In this PR, I decouple the emit_te logic into two parts call_te and emit.

Thanks @Hzfengsy for the great work and folks for the review! @tqchen @YuchenJin

authors: Hzfengsy yongwww

repo: tlc-pack/relax


text:
Running tests

Hi,
I checked out the repo from GitHub and the tests weren't running through out of the box. I had 2 errors in
test/unit/oauth_test.rb
Can you ack that? Or was it just a problem on my side?
Anyhow, I have two commits for:

ignore rvm resource files
make sure the 2 tests run through

Thanks for pulling!
Regards,
Thorsten
P.S.: Now working on the BankTransactions

Hi Thorsten
Thanks for the pull request.  Is there a reason why you needed to add
i18n to the Gemfile?
On 21 February 2012 09:14, Thorsten Böttger
reply@reply.github.com
wrote:

Hi,
I checked out the repo from GitHub and the tests weren't running through out of the box. I had 2 errors in
'''ruby
test/unit/oauth_test.rb
'''
Can you ack that? Or was it just a problem on my side?
Anyhow, I have two commits for:

ignore rvm resource files
make sure the 2 tests run through

Thanks for pulling!
Regards,
Thorsten
P.S.: Now working on the BankTransactions
You can merge this Pull Request by running:
git pull https://github.com/alto/xero_gateway master
Or you can view, comment on it, or merge it online at:
https://github.com/tlconnor/xero_gateway/pull/29
-- Commit Summary --

ignoring rvm resource files (.rvmrc)
made sure all tests are running (out of the box)

-- File Changes --
M .gitignore (1)
M Gemfile (1)
M Gemfile.lock (8)
M Rakefile (2)
M test/unit/oauth_test.rb (17)
-- Patch Links --
https://github.com/tlconnor/xero_gateway/pull/29.patch
 https://github.com/tlconnor/xero_gateway/pull/29.diff

Reply to this email directly or view it on GitHub:
https://github.com/tlconnor/xero_gateway/pull/29

Yes, it's required by ActiveSupport. Otherwise you get
You don't have i18n installed in your application. Please add it to your Gemfile and run bundle install
/Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': no such file to load -- i18n (LoadError) 	from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/activesupport-3.0.0/lib/active_support/i18n.rb:2:in <top (required)>' 	from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' 	from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/activesupport-3.0.0/lib/active_support/core_ext/string/interpolation.rb:1:in <top (required)>'
from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' 	from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/activesupport-3.0.0/lib/active_support/core_ext/string.rb:9:in <top (required)>' 	from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' 	from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/activesupport-3.0.0/lib/active_support/core_ext.rb:2:in block in <top (required)>'
from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/activesupport-3.0.0/lib/active_support/core_ext.rb:1:in each' 	from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/activesupport-3.0.0/lib/active_support/core_ext.rb:1:in <top (required)>'
from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' 	from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/activesupport-3.0.0/lib/active_support/all.rb:3:in <top (required)>' 	from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in require'
from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in rescue in require' 	from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in require'
from /Users/alto/workspace/xero_gateway/lib/xero_gateway.rb:10:in <top (required)>' 	from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /Users/alto/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' 	from /Users/alto/workspace/xero_gateway/test/test_helper.rb:9:in <top (required)>'
from internal:lib/rubygems/custom_require:29:in require' 	from <internal:lib/rubygems/custom_require>:29:in require'
from /Users/alto/workspace/xero_gateway/test/integration/accounts_list_test.rb:1:in <top (required)>' 	from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in load'
from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in block in <main>' 	from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in each'
from /Users/alto/.rvm/gems/ruby-1.9.2-p290@xero_gateway/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `'
rake aborted!
when running rake.

Dependencies in the ActiveSupport gem weren't defined until Rails 3.1 (or 3.2 I think).

I don't see that as a valid reason for adding it to the xero_gateway
Gemfile though.  I've never seen the i18n problem and as far as I know
no-one else has either.
Tim
On 21 February 2012 10:05, Thorsten Böttger
reply@reply.github.com
wrote:

Dependencies in the ActiveSupport gem weren't defined until Rails 3.1 (or 3.2 I think).

Reply to this email directly or view it on GitHub:
https://github.com/tlconnor/xero_gateway/pull/29#issuecomment-4061738

Hmm, I agree. But it's needed to run the tests. What do you think of moving gem dependencies from the Gemfile into the gem spec, and using 'i18n' as a development dependency (add_development_dependency)? I can do that if you agree. Then there is no runtime dependency to i18n anymore, just to activesupport. :-)

Or I could move it simply to the :text group. Didn't see that one. Sorry. ;-)

Changed in pull request #30 .

authors: alto tlconnor

license: ISC


text:
Are you able to just show that dialogur one time or with a button remember my answer?

Thanks TIM
Great job again... do you thing it will be good to put an other button like Remember my answer
To do not display the disclaimer the next time or its to complex...

Thanks @GilbertLasnier Currently, that functionality does not exist. It is on the list for future enhancements.

Hello Tim
I turn off the disclaimer because on the IPAD you must click the accept button almost with an hammer before its working!!!
What do you think its seam incompatible with the IPAD…

I do not have an iPad for testing. It works without issue on Android. I'll look into also responding to the touch event in addition to the click event.

There is no dialogue... its work after you hit the accept very strong many times... No body I think must succeed.... me its because I know its supposed to work so ...I hit the accept button with my finger until its working its take almost 10-20 hard touch...

It sounds like you think I said your site works with Android. I did not test that. What I meant was that the code in the disclaimer widget works with Android.

I don't test on android here everybody receive a iPad

The original functionality requested has been added in this commit. The new configurable options are documented in the disclaimer widget's README.

Thanks Tim a retry with what you change…
From: Tim McGee [mailto:notifications@github.com]
Sent: 25-Nov-15 8:09 PM
To: tmcgee/cmv-widgets
Cc: Lasnier, Gilbert
Subject: Re: [cmv-widgets] Are you able to just show that dialogur one time or with a button remember my answer? (#40)
The original functionality requested has been added in this commithttps://github.com/tmcgee/cmv-widgets/commit/81c033cf3cd79c155b349e0515b639fed796efa3. The new configurable options are documented in the disclaimer widget's READMEhttps://github.com/tmcgee/cmv-widgets/tree/master/widgets/Disclaimer.
—
Reply to this email directly or view it on GitHubhttps://github.com/tmcgee/cmv-widgets/issues/40#issuecomment-159770638.

authors: GilbertLasnier tmcgee

repo: tmcgee/cmv-widgets


text:
[bug] Example Vite React Type Errors

Is there an existing issue for this?

[X] I have searched the existing issues

Package Version
0.2.21
Current Behavior
In the examples/vite-react example project it works with
yarn dev;

It does not work with the vite build process:
❯ yarn build
yarn run v1.22.17
$ tsc && vite build
node_modules/walletlink/dist/index.d.ts:10:9 - error TS2717: Subsequent property declarations must have the same type.  Property 'ethereum' must be of type '(InjectedProviders & { on?: ((...args: any[]) => void) | undefined; removeListener?: ((...args: any[]) => void) | undefined; request<T = any>(args: RequestArguments): Promise<...>; }) | undefined', but here has type 'WalletLinkProvider | undefined'.

10         ethereum?: WalletLinkProvider;
           ~~~~~~~~

  node_modules/wagmi-core/dist/declarations/src/types/declarations.d.ts:41:3
    41   ethereum?: InjectedProviders & {
         ~~~~~~~~
    'ethereum' was also declared here.

Found 1 error in node_modules/walletlink/dist/index.d.ts:10

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This looks to be related specifically with WalletLinkConnector, because when you comment out this section from the example, everything works properly.
Expected Behavior
Builds without any errors and are able to run yarn preview afterwards.
Steps To Reproduce
1 - Clone Repository & Install Dependencies:
git clone https://github.com/tmm/wagmi;
cd wagmi/examples/vite-react;
yarn install;

2 - Run Build
yarn build;

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response

🙌

repo: tmm/wagmi


text:
fix(react): out-of-sync persisted contract results

Fixes #460
Description
There is an interesting bug where persisted useContractRead struct results would be out of sync with the ethers contract Result. This is because the ethers Result currently doesn't serialize properly with our serialize function. I first attempted to try fix this in our serialize/deserialize functions to try get it to persist into our storage, however, after doing that, I then realised that React Query also doesn't cater for this data structure in their data comparison functions.
In this proposed fix, I ended up just checking to see if the result returned from RQ is in an out-of-sync state, and if it is, it will use the contract interface to parse it back into an ethers contract Result.

@jxom Since updating to wagmi@0.4.10 I'm getting errors with all my instances of useContractRead:
next-dev.js?3515:25 TypeError: Cannot add property null, object is not extensible
    at Function.assign (<anonymous>)
    at parseContractResult (wagmi.esm.js?20d3:73:1)
    at Object.select (wagmi.esm.js?20d3:1275:1)
    at QueryObserver.createResult (queryObserver.mjs?eb18:273:1)
    at QueryObserver.getOptimisticResult (queryObserver.mjs?eb18:92:1)
    at useQuery (wagmi.esm.js?20d3:365:5)
    at useContractRead (wagmi.esm.js?20d3:1272:1)

For now I'm reverting to 0.4.7 our previous version. Any idea what this could be caused by?
npm view wagmi dependencies
{
  '@coinbase/wallet-sdk': '^3.2.0',
  '@wagmi/core': '^0.3.7',
  '@walletconnect/ethereum-provider': '^1.7.8',
  'react-query': '^4.0.0-beta.23',
  'use-sync-external-store': '^1.1.0'
}

@0xfffxfff would you be able to provide me with a minimal reproducible example via a CodeSandbox or something?
Thanks for spotting this too!

@jxom We're in the middle of a release right now. I can try spinning one up on Monday.

Just to give you an idea where this happens:
const balanceOf = useKubboPartsRead('balanceOf', { args: account?.data?.address, enabled: Boolean(account?.data?.address), watch: true })

where useKubboPartsRead is a hook that wraps useContractRead
export const useKubboPartsRead = (
  functionName: string, config?: Parameters<typeof useContractRead>[2]
) => {
  const network = useNetwork()
  const contract = Contracts.KubboParts[network?.activeChain?.id || chain.mainnet.id];
  return useContractRead(contract, functionName, config)
}

Entirely possible that my use of the hook is causing this.

Thanks! I'll do some digging.

Thanks @jxom! This fixed it.

I'm assuming the return type of this method was a tuple?
It was an array of uint256. Funnily enough I had to change a useEffect dependency from this:

  }, [
   tokensOf.data,
   ...
 ]);

to this:
 }, [
  tokensOf.data?.reduce((c,i) => c+i?.toString()
  ...
]);

I'm guessing the reason is that it's no longer receiving the same array but rather a newly constructed one on each call? In any case, with this in place everything's now properly chugging along 👍


text:
document.implementation.createHTMLDocument behaves differently than browser

draft-js has this code in it (paraphrased):
function getSafeBodyFromHTML(html) {
  doc = document.implementation.createHTMLDocument('foo');
  doc.documentElement.innerHTML = html;
  return doc.getElementsByTagName('body')[0];
}

In Chrome 56 and Firefox 45, getSafeBodyFromHTML('') returns an HTMLBodyElement. In jsdom 9.12.0, it returns undefined. getSafeBodyFromHTML('foo') does return an HTMLBodyElement like it's supposed to.
You can reproduce this in node with this code:
> var jsdom = require('jsdom').jsdom;
> var document = jsdom();
> function getSafeBodyFromHTML(html) {
...   doc = document.implementation.createHTMLDocument('foo');
...   doc.documentElement.innerHTML = html;
...   return doc.getElementsByTagName('body')[0];
... }
> getSafeBodyFromHTML('')
undefined
> getSafeBodyFromHTML('asdf')
HTMLBodyElement {}

Just wanted to say great catch, and thanks for the very small repro (this is a model of what we like to see, no external frameworks or anything). That makes it much more likely we can address this soon, although I am in Tokyo for the next couple weeks so my weekends are not as free for open source as usual. A PR would be much appreciated if you want to help dig into it.

Fixed by https://github.com/tmpvar/jsdom/pull/1787

authors: domenic gavinwahl

repo: tmpvar/jsdom


text:
Add support for HTMLElement.dataset

Currently it seems like elements returned from document.createElement() do not have any .dataset property, which is unexpected (https://html.spec.whatwg.org/#dom-dataset).

+1

+1

+1

Please see discussion in #963; this is not possible until V8 supports proxies (and not the nonstandard Proxy.create, but new Proxy).

Looks like it's coming! https://twitter.com/s3ththompson/status/687301453761806336

+1

+1 Really need this feature

Very surprised this hasn't made it in the spec, yet.

Why /lib/jsdom/browser/not-implemented.js doesn't throwing error?

For those wanting this, use element.setAttribute("data-foo","bar");

Any updates on this?

https://twitter.com/slicknet/status/782274190451671040

Boy, I just spent an hour debugging this ghost of an issue whose symptom was that node was running out of memory. Turned out to be caused by using dataset instead of getAttribute. Perhaps a helper warning in the meantime would save folks from the same experience? :-/

@domenic according to this, Proxy is supported since Node 6.
Do you have some guidelines on how you want to implement this so it'll be easier to contribute?

@idanen You will want to first implement the DOMStringMap interface, which requires changes in webidl2js to support legacy platform objects (as defined in Web IDL) through Proxies. The Web IDL spec contains detailed instructions on what each internal method should do exactly.

@TimothyGu Something like dom-token-list ?

@idanen, no that's something entirely different.

We ran into this issue when migrating our test suite to jsdom. If it is helpful, here is the codemod I wrote to convert dataset getters and setters to use getAttribute and setAttribute: https://gist.github.com/schreifels/eb6764b0435d9d830652cee7cb1132c1.

authors: JohnMealy23 RickyChien TimothyGu artemgurzhii cctuan domenic ericdum idanen isakb izhaknys joetidee kevinpeno ngerritsen rwu823 schreifels timwis


text:
Integration: [9292]

** Give details about the requested integration**

App / website

Describe the solution you'd like
Please program integration with 9292, the Dutch public transport planning app.
** Would you would be willing to share your login info to the developer**
Data of the app is available under CCO license and can be downloaded here www.reisinformatiegroep.nl (in Dutch)
Additional context
Add any other context or screenshots about the feature request here.

Hi @Orgidee - would you mind giving us more information? Is there an API available?

Closing for inactivity. Feel free to reopen if you find an API :)

authors: Orgidee martincollignon

repo: tmrowco/northapp-contrib


text:
Icon turns red, when clicked turns back to blue but doesnt do searched

This is the error I am getting.
I am on chrome, mac os
Any ideas on how to fix this?

Same thing happened to me, would also like some help if anyone has it.

I did some modified to do search quests with PC and then Mobile agent one by one. I just wanted to let you know that it works for me so far.

do you mind sharing the fix? It is still not working for me.

also having this issue and would love to know if anyone has a fix!

where the devs at

I did some modified to do search quests with PC and then Mobile agent one by one. I just wanted to let you know that it works for me so far.

Would you mind sharing your fix?

https://github.com/XxBAJNOKxX/Microsoft-Reward-Chrome-Ext
The above with latest user agents update works with Edge, no working fix so far for chrome I think

no working fix so far for chrome I think
I use on edge, on DevTools console only show useragent, and on network tab show search activity but no point added.

then I try on Chrome, It work really smooth.

I'm sorry guys I cannot make it work. I try the v2.24.6(5) con chrome and edge and I could not make it work. I do not find "only show useragent" nor something similar. Also, I could not find the network tab to verify if I should change something there...
Could someone that make it work please take a few min to specify the steps for rookies? Thank you very much!!

Could someone that make it work please take a few min to specify the steps for rookies? Thank you very much!!

steps to show network tab? click this, it will open new window, and show developers tools

Any updates here? I am having the same issue with MacOS and Chrome

Okay, so it looks like Microsoft has started using unique identifiers for searches.
Searches used by the extension do not contain these unique identifiers and are therefore not considered as valid searches.
I will try to find a solution for this.

I have a temporary solution:
https://github.com/XxBAJNOKxX/Microsoft-Reward-Chrome-Ext/releases/tag/v2.24.8.pre

Thanks again Bajni

The randomness implementation in v2.25.0 of banjo's fork is bugged, it does not use hex/base16 and it may get you caught by Microsoft so be careful, I have opened a pull request on the fork to fix the mildly large oversight.

this was fixed in v2.25.1 and you can now use the extension with less risk of being detected.

this was fixed in v2.25.1 and you can now use the extension with less risk of being detected.

This one gives me a red icon :(

this was fixed in v2.25.1 and you can now use the extension with less risk of being detected.

This one gives me a red icon :(

Please send us/me the error message

this was fixed in v2.25.1 and you can now use the extension with less risk of being detected.

This one gives me a red icon :(

Please send us/me the error message

It's Failed to load resource: net::ERR_BLOCKED_BY_CLIENT and the exact same errors as the beginning of the post. Your previous version did work but as stated by david that one is unsafe in terms of being detected?

I know that isn't the issue, can I have a look at the network tab?
more specifically selected on any bing search request.

I know that isn't the issue, can I have a look at the network tab? more specifically selected on any bing search request.

Do you have any other extensions installed?

I know that isn't the issue, can I have a look at the network tab? more specifically selected on any bing search request.

And this is from a random Bing search:

Do you have any other extensions installed?

this was fixed in v2.25.1 and you can now use the extension with less risk of being detected.

This one gives me a red icon :(

Please send us/me the error message

It's Failed to load resource: net::ERR_BLOCKED_BY_CLIENT and the exact same errors as the beginning of the post. Your previous version did work but as stated by david that one is unsafe in terms of being detected?

Do you have any other extensions installed?

uh, @XxBAJNOKxX
the v2.25.1 release still contains that one typo with the "numbers" var being typed out as "number" even though you had fixed it.
i think you fixed it after releasing v2.25.1.
the solution for @Forsefrits would be to update to v2.25.1.1 as it doesn't quite use the same method and the typo has since been fixed.

uh, @XxBAJNOKxX the v2.25.1 release still contains that one typo with the "numbers" var being typed out as "number" even though you had fixed it. i think you fixed it after releasing v2.25.1.
the solution for @Forsefrits would be to update to v2.25.1.1 as it doesn't quite use the same method and the typo has since been fixed.

Yes it is working now, thanks a bunch! :)
Amazing job by the way, this plugin, thank you very much

uh, @XxBAJNOKxX
the v2.25.1 release still contains that one typo with the "numbers" var being typed out as "number" even though you had fixed it.
i think you fixed it after releasing v2.25.1.
the solution for @Forsefrits would be to update to v2.25.1.1 as it doesn't quite use the same method and the typo has since been fixed.

Version v2.25.1 has been fixed.

uh, @XxBAJNOKxX
the v2.25.1 release still contains that one typo with the "numbers" var being typed out as "number" even though you had fixed it.
i think you fixed it after releasing v2.25.1.
the solution for @Forsefrits would be to update to v2.25.1.1 as it doesn't quite use the same method and the typo has since been fixed.

Version v2.25.1 has been fixed.

This seems to have fixed the mobile searches for me, however the desktop searches and bing searches are not working yet, is that just me?

This seems to have fixed the mobile searches for me, however the desktop searches and bing searches are not working yet, is that just me?

Browsers do this for an unknown reason, try to open another browser and import the extension there. But it should be fixed within a few days.

Thank you a lot for fixing this!
I have it sort of working... sometimes it doesn't do pc searches, only mobile. Sometimes it does do pc searches.
Most of the time it doesn't do edge searches.. but at least is an improvement in the right direction. I'll wait for the final fix and again, thank you for your time a dedication.

For the problem that desktop and bing searches do not work, here is a screenshot of my network tab:

Maybe it can help fixing it :)

It stopped working at the moment :( It is not doing searches for me anymore.

Could you please send the error from the console?

This might be a microsoft problem, try to do some searches normally and see if it gives you the points.

I think, some search doesn't count as valid search quest. My network tab doesn't show any error, but my point not increase or increase slowly than my search progress on network tab

I changed quest/searchQuest.js line 163, from:
return `https://www.bing.com/search?q=${word}`;
To:
return `https://www.bing.com/search?q=${word}&PC=U316&FORM=CHROMN`;
And it's working again.

its work for me !! thank you so much !!!

I changed quest/searchQuest.js line 163, from:
return `https://www.bing.com/search?q=${word}`;
To:
return `https://www.bing.com/search?q=${word}&PC=U316&FORM=CHROMN`;
And it's working again.

its work for me !! thank you so much !!!

Hi, what program do you use to open the file searchQuest.js ? I tried to use the notepad but I couldn't see line 163

I changed quest/searchQuest.js line 163, from:
return `https://www.bing.com/search?q=${word}`;
To:
return `https://www.bing.com/search?q=${word}&PC=U316&FORM=CHROMN`;
And it's working again.

its work for me !! thank you so much !!!

Hi, what program do you use to open the file searchQuest.js ? I tried to use the notepad but I couldn't see line 163

Probably Visual Studio Code

I changed quest/searchQuest.js line 163, from:
return `https://www.bing.com/search?q=${word}`;
To:
return `https://www.bing.com/search?q=${word}&PC=U316&FORM=CHROMN`;
And it's working again.

its work for me !! thank you so much !!!

Hi, what program do you use to open the file searchQuest.js ? I tried to use the notepad but I couldn't see line 163

Probably Visual Studio Code

Hey, @XxBAJNOKxX, is this solution working for you? It seems to be querying 5 or so searches every 3 seconds, however it only counts for one search maybe every minute or so- what could we be missing here?

well my account got banned. MS Awards said suspected bot use.  im sure others will follow.

well my account got banned. MS Awards said suspected bot use. im sure others will follow.

Thanks for the headsup, no block for now and hope it stays, but okay, we have been busted I assume :(

well my account got banned. MS Awards said suspected bot use. im sure others will follow.

oh mine got banned a month ago lol

the think is you can't even reach them back anymore, i even tested another account, and anyhing is connected toward account suspended will not work anymore.

I get the following when I want to redeem the points for the Amazon competition event. How do you know the reason for the block?
Does it look like this for you too or do you no longer have access?
I just can't redeem any points at the moment

Got banned too :(

Is it possible to deactivate the search? I would still like to continue using the add-on, but without the automatic search.
Since the original AddOn always automatically sets Bing as the default search engine

Is it possible to deactivate the search? I would still like to continue using the add-on, but without the automatic search. Since the original AddOn always automatically sets Bing as the default search engine

Hi, there isn't a switch to do this conveniently but you can comment out this line to disable all background work including search and points query.

Has anyone had their ban lifted after a while? I have now deactivated the search function. I wonder if the account will ever be unblocked again. I can still collect.
It is not even possible to write to support and ask for the block to be lifted.

authors: Fletchlol Forsefrits Jack0792 JulienMaille KrautGTI LeFlairGoD MDanyalT PleaseHelp7 PororoManon XxBAJNOKxX asssaaa21 davidkra230 droblescastane nerolnauj raydiens steverethink superpicapleitoss tmxkn1


text:
Inherit from javascript function

Hi! I'm using jsface for the new objects of my project, but I have a lot of "legacy objects", like:
var Robot = function() {

    this.getRotation = function() { return 0; }

};

I'm trying to create a child of Robot using jsface, like:
var RobotChild = Class(Robot, function() {
    return {
    };
});

But, when I do:
var robot = new RobotChild();

I get an empty instance.
Regards

What do you mean you get an empty instance? I run the snippet, robot does have properties:
typeof robot; // "object"
typeof robot.getRotation; // "function"
robot.getRotation(); // 0

authors: lcnvdl tnhu

repo: tnhu/jsface


text:
Functionality request

Functionality request.
Call a script/executable when the client disconnect from server.

Hi rbtux,
This functionality already exists in the "Application Hooks" section of the config file. Simply enable it and point it to a script.
Let me know if you need any help or would like any additional arguments passing to it.
`#-----------------------#
APPLICATION HOOKS
#-----------------------#
[output-app_hooks]
Enable app_hooks output plugin

input: true/false
required: YES
default: false
enabled = true
Calls the script when a connection is lost with the following arguments
./script CONNECTION_LOST DATETIME IP PORT HONEYIP HONEYPORT SESSION_ID

input: path of script to run
required: NO
connection_lost = /script/to/call.sh`

ha ha... i feel stupid now. i was misreading the conf file!

authors: rbtux tnich

repo: tnich/honssh


text:
Switch all crate names to use underscores rather than hyphens.

We previously had libtock_codegen and libtock-core, plus test-runner and print-sizes. Because Rust does not allow hyphens in crate names in code, Cargo automatically translates the hyphens to underscores (e.g. an application refers to items in libtock-core using libtock_core::). I decided to make the crate naming consistently use underscores rather than hyphens so that crate names in the repository match their use in user code.

The failure of the CI size-diff pass is expected: it runs the print_sizes command in both the "before" and "after" revisions for the PR. However, in the "before" revision (master), the crate is called print-sizes instead, which causes a build failure.
This issue will recur in any PRs that rename print_sizes, which is unlikely to happen again anytime soon.

bors r+

repo: tock/libtock-rs


text:
Update sbt-lucuma to 0.11.9

About this PR
📦 Updates edu.gemini:sbt-lucuma from 0.4.2 to 0.11.9
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "edu.gemini", artifactId = "sbt-lucuma" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "edu.gemini", artifactId = "sbt-lucuma" }
}]

labels: sbt-plugin-update, early-semver-major, semver-spec-minor, version-scheme:early-semver, commit-count:1

Superseded by #162.

repo: toddburnside/scalajs-react-virtuoso


text:
add github actions workflow for build and test on linux

This uses the official swift docker images to execute make build test. It uses a test matrix for swift and protobuf versions. Currently it runs tests on both swift 5.1.5 and 5.2 with protobuf 3.11.4. The individual dependencies of the test target are broken into steps to allow better diagnostics and caching of the conformance test runner.

Couple of notes/ideas:
We will need to be vigilant about updating the protobuf versions here -- in particular, the protocolbuffers project does regularly expand the conformance test and we do want to track that.
It might be worth asking the protocolbuffers project if they could include the conformance test binary in their release package (or a separate package?) to avoid the overhead of building it every time.

authors: tbkka toffaletti

repo: toffaletti/swift-protobuf


text:
Update sbt to 1.10.2

About this PR
📦 Updates org.scala-sbt:sbt from 1.6.2 to 1.10.2
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-sbt", artifactId = "sbt" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-sbt", artifactId = "sbt" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, version-scheme:early-semver, commit-count:1

Superseded by #909.

repo: tofu-tf/typed-schema


text:
Zendesk Agent Workspace - Time Entry undefined

Ubuntu
Chrome 85
1.66.10

🐛 Describe the bug
When the new default "Agent Workspace" feature is enabled, the Toggl Time Entry shows "#TICKETID undefined". I think this was broken by either https://github.com/toggl/toggl-button/issues/1689 or https://github.com/toggl/toggl-button/issues/1794.
It was working earlier this year when support for Agent Workspace was added in https://github.com/toggl/toggl-button/pull/1745
Expected behaviour
Time entry should include the Ticket title.
Steps to reproduce
Enable ZenDesk Agent Workspace:

User report

Thanks!

authors: TheSoloJake davidwindell

repo: toggl/toggl-button


text:
archived projects visible in the app?

windows 7.1.207
More info in support case 136285, but basically projects that are archived on the Toggl website, are still visible in Toggl Desktop app.

there was an issue with deleting zombie entries when the JSON was empty

repo: toggl/toggldesktop


text:
Update Sparkle Framework

Our version is 1.8 that was released in 2014. Let's get the latest one.
We need to do some small tweaks to the naming so the updater will show the correct name.

Sad to see that my 2008 mac pro will no longer be able to run Toggl Desktop in a few days. I suppose there's no hope for a legacy version?

@hendercine There is no chance of a legacy version. We need to stop supporting older version of macOS so we can use the up to date practices and modern technologies in our apps. You'll always have the amazing web app and Toggl Button to help you with any time tracking needs.

@IndrekV makes sense. Thanks for the reply.

authors: IndrekV hendercine


text:
Crashing while reordering sets

Describe the bug
When I try to reorder my sets the plugin is crash w/o explicit errors.
Figma Desktop App version 116.16.13
f
To Reproduce
Steps to reproduce the behavior:

Open tokens studio
Having multiple sets and sub-sets try to reorder

Expected behavior
Reorder successfully. Not crashing.
Screenshots or Screencasts

Figma file (optional)
Send us the link to a Figma file containing a reproducible example
JSON (optional)
If possible, attach the JSON that leads to this bug.

I figured out.
I had this set group called Semantic (A) and I created a new set (for testing purposes) called Semantic (B) too.
When the new set (B) pass above the set group (A) the plugin crashes.
I had to rename the set and I was able to reorder.

@isaquepereira thanks for the update! Closing this ticket but tagging @cuserox for visibiliy as the team has been working on token set issues and might want to keep this in mind.

repo: tokens-studio/figma-plugin


text:
「感染症対策本部会議に関すること」の電話番号変更

「感染症対策本部会議に関すること」の電話番号を変更しました。
変更前：03-5320-7891
　↓
変更後：03-5388-2453

#2943 でhotfixとして staging にマージしました。こちらは development 反映用です。


text:
add bandwidth

add bandwidth api

Great works! Thank you very much!

authors: molisoft tolbkni


text:
[zshelf][0.3.0] - Updated Package

Changelog:

Download list popup: click at download count button on top bar to open the popup
Saved books list: click at bookmark icon on top bar
Page: Browse more than 50 books per query with pages navigation at bottom UI.
Book cover arts are now clearer thanks to grayscale conversion.
Loading speed is faster by maintaining continuous connection with backend.

ran this on rM1 and got segfault

reMarkable: ~/ gdb zshelf
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "arm-openwrt-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from zshelf...
(No debugging symbols found in zshelf)
(gdb) run
Starting program: /opt/bin/zshelf
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
EPD platform plugin loaded!
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
[New LWP 1162]
[New LWP 1163]
[Detaching after fork from child process 1164]
[SERVER]  QProcess::ProcessState(Running)
Creating window
[SERVER]  QProcess::ProcessState(Running)
[New LWP 1171]
QFSFileEngine::map: Mapping a file beyond its size is not portable
[SOCKET] "LIST" Connected
Framebuffer initialized: QImage(QSize(1404, 1872),format=7,depth=16,devicePixelRatio=1,bytesPerLine=2816,sizeInBytes=5271552) 10813440
LOG:  "TOTAL:500\n"
[SOCKET] "LIST" Closed
[New LWP 1177]
[LWP 1171 exited]
[New LWP 1178]
[SERVER]  QProcess::ProcessState(Running)

Thread 1 "zshelf" received signal SIGSEGV, Segmentation fault.
0x75e82bd4 in QThread::start(QThread::Priority) () from /usr/lib/libQt5Core.so.5
(gdb) bt
#0  0x75e82bd4 in QThread::start(QThread::Priority) () from /usr/lib/libQt5Core.so.5
#1  0x000256b8 in ?? ()
#2  0x76082fc4 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQt5Core.so.5
#3  0x76086ff8 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#4  0x7691d300 in QWindow::event(QEvent*) () from /usr/lib/libQt5Gui.so.5
#5  0x76e1c2e4 in QQuickWindow::event(QEvent*) () from /usr/lib/libQt5Quick.so.5
#6  0x76054230 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/libQt5Core.so.5
#7  0x76056f8c in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/libQt5Core.so.5
#8  0x760b15d8 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#9  0x7575a274 in ?? () from /usr/lib/plugins/platforms/libepaper.so
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

authors: khanhas raisjn

repo: toltec-dev/toltec


text:
Neutral language

Hi,
(first : you extension is GREAT and works very well)
During compilation I have warning like this :
'label1.Text.en : Missing translation'
In you extension I see Neutral, English, French. I need for the moment to use only 2 languages. So how can I avoid duplicate between Neutral & one of the other language (and remove the warning message ?
Thanks,
Vincent

see https://github.com/tom-englert/ResXResourceManager/wiki/Invariant-Strings

the neutral files are <name>.resx, so you have to rename all <name>.fr.resx to make them the neutral ones. Or switch to cell selection and copy all french to the neutral column, then remove all .fr.resx files.

authors: nolme tom-englert

repo: tom-englert/ResXResourceManager


text:
Mod not showing up on menu screen

Usually when you install this mod and run fabric, it shows a little tab to bring you to the skin maker. But there's no tab when I load it up. I'm using the most recent version (CustomPlayerModelsFabric-1.17 v0.0.14a) along with the most recent fabric api (fabric-api-0.35.2+1.17)

Duplicate of #94


text:
Gamepad support

Surprised nobody's tackled this one yet. We already handle keyboard and mouse input, so gamepad input seems to be the logical next step.
Anyone looking for inspiration might want to see how SDL2 does this: basically they maintain a list of controllers and map them as closely to the XInput layout as possible. That doesn't have to be the strategy we use here, and there is some legacy code in there as well (mainly deprecated Windows APIs like DirectInput), but I think it's a reasonable starting point.

There was already a discussion here: https://github.com/tomaka/glutin/issues/151
Basically it's "won't fix, should be an external library".

Closing in favor of #804. This is something we want, but we need help implementing it on other platforms.

authors: FaultyRAM Osspial tomaka

repo: tomaka/winit