text:
Error in :  API request failed

i am getting this issue . can anyone help me with this
[llm/error] [1:llm:replicate] [101.13s] LLM run errored with error: "API request failed: Payment Required"
Error: API request failed: Payment Required
    at Replicate.request (webpack-internal:///(rsc)/./node_modules/replicate/index.js:144:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Replicate.createPrediction (webpack-internal:///(rsc)/./node_modules/replicate/lib/predictions.js:24:22)
    at async Replicate.run (webpack-internal:///(rsc)/./node_modules/replicate/index.js:93:24)
    at async RetryOperation.eval [as _fn] (webpack-internal:///(rsc)/./node_modules/p-retry/index.js:50:12) {
  attemptNumber: 7,
  retriesLeft: 0
}

this is my node_modules/replicate/index.js:144:13) file
const collections = require('./lib/collections');
const models = require('./lib/models');
const predictions = require('./lib/predictions');
const trainings = require('./lib/trainings');
const packageJSON = require('./package.json');

/**
 * Replicate API client library
 *
 * @see https://replicate.com/docs/reference/http
 * @example
 * // Create a new Replicate API client instance
 * const Replicate = require("replicate");
 * const replicate = new Replicate({
 *     // get your token from https://replicate.com/account
 *     auth: process.env.REPLICATE_API_TOKEN,
 *     userAgent: "my-app/1.2.3"
 * });
 *
 * // Run a model and await the result:
 * const model = 'owner/model:version-id'
 * const input = {text: 'Hello, world!'}
 * const output = await replicate.run(model, { input });
 */
class Replicate {
  /**
   * Create a new Replicate API client instance.
   *
   * @param {object} options - Configuration options for the client
   * @param {string} options.auth - Required. API access token
   * @param {string} options.userAgent - Identifier of your app
   * @param {string} [options.baseUrl] - Defaults to https://api.replicate.com/v1
   * @param {Function} [options.fetch] - Defaults to native fetch
   */
  constructor(options) {
    this.auth = options.auth;
    this.userAgent =
      options.userAgent || `replicate-javascript/${packageJSON.version}`;
    this.baseUrl = options.baseUrl || 'https://api.replicate.com/v1';
    this.fetch = options.fetch || fetch;

    this.collections = {
      get: collections.get.bind(this),
    };

    this.models = {
      get: models.get.bind(this),
      versions: {
        list: models.versions.list.bind(this),
        get: models.versions.get.bind(this),
      },
    };

    this.predictions = {
      create: predictions.create.bind(this),
      get: predictions.get.bind(this),
      list: predictions.list.bind(this),
    };

    this.trainings = {
      create: trainings.create.bind(this),
      get: trainings.get.bind(this),
      cancel: trainings.cancel.bind(this),
    };
  }

  /**
   * Run a model and wait for its output.
   *
   * @param {string} identifier - Required. The model version identifier in the format "{owner}/{name}:{version}"
   * @param {object} options
   * @param {object} options.input - Required. An object with the model inputs
   * @param {object} [options.wait] - Whether to wait for the prediction to finish. Defaults to false
   * @param {number} [options.wait.interval] - Polling interval in milliseconds. Defaults to 250
   * @param {number} [options.wait.maxAttempts] - Maximum number of polling attempts. Defaults to no limit
   * @param {string} [options.webhook] - An HTTPS URL for receiving a webhook when the prediction has new output
   * @param {string[]} [options.webhook_events_filter] - You can change which events trigger webhook requests by specifying webhook events (`start`|`output`|`logs`|`completed`)
   * @throws {Error} If the prediction failed
   * @returns {Promise<object>} - Resolves with the output of running the model
   */
  async run(identifier, options) {
    const pattern =
      /^(?<owner>[a-zA-Z0-9-_]+?)\/(?<name>[a-zA-Z0-9-_]+?):(?<version>[0-9a-fA-F]+)$/;
    const match = identifier.match(pattern);

    if (!match || !match.groups) {
      throw new Error(
        'Invalid version. It must be in the format "owner/name:version"'
      );
    }

    const { version } = match.groups;
    const prediction = await this.predictions.create({
      wait: true,
      ...options,
      version,
    });

    if (prediction.status === 'failed') {
      throw new Error(`Prediction failed: ${prediction.error}`);
    }

    return prediction.output;
  }

  /**
   * Make a request to the Replicate API.
   *
   * @param {string} route - REST API endpoint path
   * @param {object} parameters - Request parameters
   * @param {string} [parameters.method] - HTTP method. Defaults to GET
   * @param {object} [parameters.params] - Query parameters
   * @param {object} [parameters.data] - Body parameters
   * @returns {Promise<object>} - Resolves with the API response data
   * @throws {Error} If the request failed
   */
  async request(route, parameters) {
    const { auth, baseUrl, userAgent } = this;

    const url = new URL(
      route.startsWith('/') ? route.slice(1) : route,
      baseUrl.endsWith('/') ? baseUrl : `${baseUrl}/`
    );

    const { method = 'GET', params = {}, data } = parameters;

    Object.entries(params).forEach(([key, value]) => {
      url.searchParams.append(key, value);
    });

    const headers = {
      Authorization: `Token ${auth}`,
      'Content-Type': 'application/json',
      'User-Agent': userAgent,
    };

    const response = await this.fetch(url, {
      method,
      headers,
      body: data ? JSON.stringify(data) : undefined,
    });

    if (!response.ok) {
      throw new Error(`API request failed: ${response.statusText}`);
    }

    return response.json();
  }

  /**
   * Paginate through a list of results.
   *
   * @generator
   * @example
   * for await (const page of replicate.paginate(replicate.predictions.list) {
   *    console.log(page);
   * }
   * @param {Function} endpoint - Function that returns a promise for the next page of results
   * @yields {object[]} Each page of results
   */
  async *paginate(endpoint) {
    const response = await endpoint();
    yield response.results;
    if (response.next) {
      const nextPage = () => this.request(response.next, { method: 'GET' });
      yield* this.paginate(nextPage);
    }
  }

  /**
   * Wait for a prediction to finish.
   *
   * If the prediction has already finished,
   * this function returns immediately.
   * Otherwise, it polls the API until the prediction finishes.
   *
   * @async
   * @param {object} prediction - Prediction object
   * @param {object} options - Options
   * @param {number} [options.interval] - Polling interval in milliseconds. Defaults to 250
   * @param {number} [options.maxAttempts] - Maximum number of polling attempts. Defaults to no limit
   * @throws {Error} If the prediction doesn't complete within the maximum number of attempts
   * @throws {Error} If the prediction failed
   * @returns {Promise<object>} Resolves with the completed prediction object
   */
  async wait(prediction, options) {
    const { id } = prediction;
    if (!id) {
      throw new Error('Invalid prediction');
    }

    if (
      prediction.status === 'succeeded' ||
      prediction.status === 'failed' ||
      prediction.status === 'canceled'
    ) {
      return prediction;
    }

    let updatedPrediction = await this.predictions.get(id);

    // eslint-disable-next-line no-promise-executor-return
    const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

    let attempts = 0;
    const interval = options.interval || 250;
    const maxAttempts = options.maxAttempts || null;

    while (
      updatedPrediction.status !== 'succeeded' &&
      updatedPrediction.status !== 'failed' &&
      updatedPrediction.status !== 'canceled'
    ) {
      attempts += 1;
      if (maxAttempts && attempts > maxAttempts) {
        throw new Error(
          `Prediction ${id} did not finish after ${maxAttempts} attempts`
        );
      }

      /* eslint-disable no-await-in-loop */
      await sleep(interval);
      updatedPrediction = await this.predictions.get(prediction.id);
      /* eslint-enable no-await-in-loop */
    }

    if (updatedPrediction.status === 'failed') {
      throw new Error(`Prediction failed: ${updatedPrediction.error}`);
    }

    return updatedPrediction;
  }
}

module.exports = Replicate;

this is my replicate/lib/predictions.js file
/**
 * Create a new prediction
 *
 * @param {object} options
 * @param {string} options.version - Required. The model version
 * @param {object} options.input - Required. An object with the model inputs
 * @param {object} [options.wait] - Whether to wait for the prediction to finish. Defaults to false
 * @param {number} [options.wait.interval] - Polling interval in milliseconds. Defaults to 250
 * @param {number} [options.wait.maxAttempts] - Maximum number of polling attempts. Defaults to no limit
 * @param {string} [options.webhook] - An HTTPS URL for receiving a webhook when the prediction has new output
 * @param {string[]} [options.webhook_events_filter] - You can change which events trigger webhook requests by specifying webhook events (`start`|`output`|`logs`|`completed`)
 * @returns {Promise<object>} Resolves with the created prediction data
 */
async function createPrediction(options) {
  const { wait, ...data } = options;

  const prediction = this.request('/predictions', {
    method: 'POST',
    data,
  });

  if (wait) {
    const { maxAttempts, interval } = wait;
    return this.wait(await prediction, { maxAttempts, interval });
  }

  return prediction;
}

/**
 * Fetch a prediction by ID
 *
 * @param {number} prediction_id - Required. The prediction ID
 * @returns {Promise<object>} Resolves with the prediction data
 */
async function getPrediction(prediction_id) {
  return this.request(`/predictions/${prediction_id}`, {
    method: 'GET',
  });
}

/**
 * List all predictions
 *
 * @returns {Promise<object>} - Resolves with a page of predictions
 */
async function listPredictions() {
  return this.request('/predictions', {
    method: 'GET',
  });
}

module.exports = {
  create: createPrediction,
  get: getPrediction,
  list: listPredictions,
};

this is p-retry/index.js file
'use strict';
const retry = require('retry');

const networkErrorMsgs = [
	'Failed to fetch', // Chrome
	'NetworkError when attempting to fetch resource.', // Firefox
	'The Internet connection appears to be offline.', // Safari
	'Network request failed' // `cross-fetch`
];

class AbortError extends Error {
	constructor(message) {
		super();

		if (message instanceof Error) {
			this.originalError = message;
			({message} = message);
		} else {
			this.originalError = new Error(message);
			this.originalError.stack = this.stack;
		}

		this.name = 'AbortError';
		this.message = message;
	}
}

const decorateErrorWithCounts = (error, attemptNumber, options) => {
	// Minus 1 from attemptNumber because the first attempt does not count as a retry
	const retriesLeft = options.retries - (attemptNumber - 1);

	error.attemptNumber = attemptNumber;
	error.retriesLeft = retriesLeft;
	return error;
};

const isNetworkError = errorMessage => networkErrorMsgs.includes(errorMessage);

const pRetry = (input, options) => new Promise((resolve, reject) => {
	options = {
		onFailedAttempt: () => {},
		retries: 10,
		...options
	};

	const operation = retry.operation(options);

	operation.attempt(async attemptNumber => {
		try {
			resolve(await input(attemptNumber));
		} catch (error) {
			if (!(error instanceof Error)) {
				reject(new TypeError(`Non-error was thrown: "${error}". You should only throw errors.`));
				return;
			}

			if (error instanceof AbortError) {
				operation.stop();
				reject(error.originalError);
			} else if (error instanceof TypeError && !isNetworkError(error.message)) {
				operation.stop();
				reject(error);
			} else {
				decorateErrorWithCounts(error, attemptNumber, options);

				try {
					await options.onFailedAttempt(error);
				} catch (error) {
					reject(error);
					return;
				}

				if (!operation.retry(error)) {
					reject(operation.mainError());
				}
			}
		}
	});
});

module.exports = pRetry;
// TODO: remove this in the next major version
module.exports.default = pRetry;

module.exports.AbortError = AbortError;

Hi @arihantJ24. From the first line of your error message, "API request failed: Payment Required" suggests that your account has hit your free usage limit. Or else, the payment method you provided was unable to be charged. To solve this, please go to https://replicate.com/account/billing and provide your payment details.

repo: replicate/replicate-javascript


text:
Unhide air gap and alphabetize flags

What this PR does / why we need it:

I realized the air gap flags are still hidden, so I unhide those. I also alphabetized the CLI flags in the help menus so they're easier to read. The CIDR and proxy flags are from functions, so those didn't get alphabetized. Ultimately I'd like them to be alphabetized, but I didn't bother to rework those functions.
Which issue(s) this PR fixes:

Does this PR require a test?

NONE
Does this PR require a release note?

Unhides the `--airgap-bundle` flag for the `install`, `join`, and `restore` commands.

Does this PR require documentation?

NONE

For example:

source: gharchive/pull-request

repo: replicatedhq/embedded-cluster

license_type: permissive

license_source: github-api


text:
feat: allow containerd two minor version upgrades

What this PR does / why we need it:
While Containerd does not support upgrades that span more than one minor release, we aim to enable users to upgrade between two minor Containerd releases. Therefore, this pull request introduces a constraint to the installation script that allows for such upgrades. Going forward, the installer will only permit Containerd upgrades that span two minor releases, and upgrades will be executed one at a time.
The table below displays some of the outputs resulting from this change.

From
To
outcome

v1.2
v1.5
The upgrade is not possible,  error message is shown.

v1.3
v1.4
Upgrade succeeds.

v1.3
v1.5
Upgrades first to v1.4 and then to v1.5.

v1.4
v1.3
Downgrades are blocked, error message is shown.

v1.6
v2.0
Major version upgrades are blocked

About major version upgrades
As we can't understand how the migration to Containerd v2 will work we have blocked this kind of upgrade. The idea is to make testgrid to fail in such migrations (once Containerd v2 comes to live).
Special notes for your reviewer:
This is yet a draft. I need help in understanding how to generate the Manifest' CONTAINERD_STEP_VERSIONS variable automatically as well as how can I add containerd_version - 1 to the installer.
Does this PR introduce a user-facing change?

Does this PR require documentation?

This is looking good.
You will want to make sure to automate the generation of the step versions

@emosbaugh Done.

Remarks on the the failing check in this PR: FOSSA scan failure is not because of a dependency issue in this PR but due to a backend problem on FOSSA server side: https://github.com/replicatedhq/kURL/actions/runs/4615501554/jobs/8159453877?pr=4291
>>> Relevant errors

    Error

      A connection to the FOSSA endpoint was established, but the service took too long to respond.

          Request: GET https://app.fossa.com/api/cli/custom+5995%2Fgithub.com%2Freplicatedhq%2Fkurl$d6cbb231a84e0e821ee083ea550dc04206f9ff3f/latest_build

      This is a networking error.

      Networking errors are typically caused by actual network failure or a network appliance
      (e.g. a firewall) between the FOSSA CLI and the FOSSA backend.
      This means that often such errors are transient, or are caused by local network configuration.

      Trying again in a few minutes may resolve this issue.
      If this issue persists, please report a bug to FOSSA support at https://support.fossa.com/

      In your bug report, please include FOSSA's debug bundle file: fossa.debug.json.gz.

      You can generate debug bundle by using `--debug` flag, for example:
        fossa analyze --debug

      Traceback:
        (none)

repo: replicatedhq/kURL


text:
feat: remove quiet flag in Minio

What this PR does / why we need it:

Currently MinIO component of kotsadm runs in quiet mode and does not provide any logging output. Removing the quiet flag improves visibility into MinIO operations and helps with troubleshooting storage related issues.
Which issue(s) this PR fixes:

https://app.shortcut.com/replicated/story/116844/in-cluster-default-troubleshoot-spec-does-not-collect-kotsadm-minio-logs
Does this PR require a test?

NONE
Does this PR require a release note?

NONE

Does this PR require documentation?

NONE

@nvanthao is there any chance you could post a before+after of the minio logs here?

thanks @laverya, I've updated the description with before+after minio logs

authors: laverya nvanthao

repo: replicatedhq/kots


text:
Add release-drafter action

Why
We use GitHub Releases to manage this repo. release-drafter improves the tending and creation of new releases, accumulating a list of PRs into a "Draft" release, which kicks off a proper release when promoted.
What changed

Added standard release-drafter config

Test plan

Can't really test GHA before merge, due to the nature of them. This is basically the standard config taken directly from the README.

sigh. chicken-and-egg problem, I need the config to be present before the GHA will run.

repo: replit/replit-py

license: ISC


text:
Speed up CI

It's time to take another pass on this.
Maybe some tricks can be learned from the CI section of
https://matklad.github.io/2021/09/04/fast-rust-builds.html
For instance, it suggest setting CARGO_INCREMENTAL: 0 in our env to disable incremental compilation, which should shrink the /target folder and maybe improve caching.
A lot of the tricks in https://github.com/rerun-io/rerun/issues/5332 also apply to this, like:

Doing much less stuff on each PR

Duplicate of https://github.com/rerun-io/rerun/issues/3033

source: gharchive/issue

repo: rerun-io/rerun


text:
Using pad_token, but it is not set yet.

When I run the inference.py, it shows me "Using pad_token, but it is not set yet." Then I have to wait a few minutes. Is that a normal phenomenon？

sure, it wil take a long time to load checkpoint shards

ok, thank you : )


text:
add Maastricht University

moved from https://github.com/research-software-directory/instruction/issues/63

in mongo shell do
var a = new Timestamp();
db.organizations.insertOne({
   _id:"maastricht-university",
   createdAt: a,
   updatedAt: a,
   schema: "organization",
   description: "",
   logo:"",
   name: "Maastricht University",
   website: "https://www.maastrichtuniversity.nl/"
});

var a =Math.round((new Date().getTime())/1000);
db.organization.insertOne({
_id:"maastricht-university",
createdAt: a,
updatedAt: a,
schema: "organization",
description: "",
logo:"",
name: "Maastricht University",
website: "https://www.maastrichtuniversity.nl/"
});


text:
Feat  optional title

create post, but don't enter a title. instead enter abitrary rdf (e.g. <_:isNeedContent> dc:description "hello world!".)
copy the share-link for the need and open it in another browser
make an ad hoc connection.
neither the original need nor the ad-hoc need should have a title. the entire view should look like this:

Resolves #1721

You can also close the branch feat__displaying-arbitrary-rdf-needs after merging :)

repo: researchstudio-sat/webofneeds

license_source: bigquery


text:
Feat  spoco updates

Adds abstract helper class to simplify AtomDeletion Actions in bots
Adds missing Resource/Property constants in SCHEMA.java (e.g. PlanAction)
Avoids checking the signature for successResponses of DeleteMessages (signature can't be checked since the signature has been deleted)

tested on integration-test and with spoco raid-bot


text:
Preview Mode breaks when importing any files outside of the emails/ directory

Describe the Bug
When importing any file inside any emails/*.tsx file that is not from within the emails directory, the preview mode crashes because it cannot find the file.
In my reproduction example I created some-file.ts at the root of my project and imported it within emails/index.tsx.
import { Button } from '@react-email/button';
import { Html } from '@react-email/html';
import * as React from 'react';

// THIS DOES NOT LOAD IN PREVIEW MODE
import { someValue } from '../someFile';

export default function Email() {
  return (
    <Html>
      <Button
        pX={20}
        pY={12}
        href="https://example.com"
        style={{ background: '#000', color: '#fff' }}
      >
        {someValue}
      </Button>
    </Html>
  );
}

npm run email:dev -- --port 6005

> react-email-import-bug@0.1.0 email:dev
> email dev "--port" "6005"

⠋ Generating emails previewcp: no such file or directory: static
cat: no paths given
{
  error: Error: Something went wrong while copying the file to /react-email-import-bug/emails/static,
      at createStaticFiles (/react-email-import-bug/node_modules/react-email/dist/source/utils/generate-email-preview.js:47:15)
      at async generateEmailsPreview (/react-email-import-bug/node_modules/react-email/dist/source/utils/generate-email-preview.js:18:9)
      at async setupServer (/react-email-import-bug/node_modules/react-email/dist/source/utils/run-server.js:30:9)
      at async Command.dev (/react-email-import-bug/node_modules/react-email/dist/source/commands/dev.js:17:13)
}
⠋ Installing dependencies...

up to date, audited 545 packages in 694ms

141 packages are looking for funding
  run `npm fund` for details

✔ Dependencies installed
⠹ Generating emails preview
> react-email-client@0.0.11 dev
> next dev "-p" "6005"

⠦ Generating emails previewready - started server on 0.0.0.0:6005, url: http://localhost:6005
⠧ Generating emails previewwarn  - You have enabled experimental feature (appDir) in next.config.js.
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

info  - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback
warning package.json: "dependencies" has dependency "@types/node" with range "18.15.11" that collides with a dependency in "devDependencies" of the same name with version "18.11.9"
warning package.json: "dependencies" has dependency "@types/react" with range "18.0.31" that collides with a dependency in "devDependencies" of the same name with version "18.0.25"
warning package.json: "dependencies" has dependency "@types/react-dom" with range "18.0.11" that collides with a dependency in "devDependencies" of the same name with version "18.0.9"
warning package.json: "dependencies" has dependency "typescript" with range "5.0.3" that collides with a dependency in "devDependencies" of the same name with version "4.9.3"
warning ../../package.json: No license field
⠏ Generating emails previewevent - compiled client and server successfully in 657 ms (262 modules)
⠹ Generating emails previewwait  - compiling...
⠸ Generating emails previewevent - compiled client and server successfully in 144 ms (262 modules)
⠼ Generating emails previewwait  - compiling /preview/[slug]/page (client and server)...
⠧ Generating emails previewerror - ./emails/index.tsx:4:0
Module not found: Can't resolve '../someFile'
  2 | import { Html } from '@react-email/html';
  3 | import * as React from 'react';
> 4 | import { someValue } from '../someFile';
  5 |
  6 | export default function Email() {
  7 |   return (

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./emails/ lazy ^\.\/.*$ namespace object
./src/app/preview/[slug]/page.tsx
⠇ Generating emails previewwait  - compiling...
⠏ Generating emails previewevent - compiled successfully in 152 ms (745 modules)
⠼ Generating emails previewwait  - compiling /_error (client and server)...
⠼ Generating emails previewerror - ./emails/index.tsx:4:0
Module not found: Can't resolve '../someFile'
  2 | import { Html } from '@react-email/html';
  3 | import * as React from 'react';
> 4 | import { someValue } from '../someFile';
  5 |
  6 | export default function Email() {
  7 |   return (

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./emails/ lazy ^\.\/.*$ namespace object
./src/app/preview/[slug]/page.tsx
⠦ Generating emails preview

Also note that the process always throws an error Generating emails previewcp: no such file or directory: static cat: no paths given. However, this seems to not have an impact once the emails/static folder exists.
Why is this important
I generally want to reuse code in mails from the main project, like types or the tailwind.configs.js file.
Why is this happening
The preview mode seems to use Next.js and copies all emails/* files to .react-email/emails which changes the import paths. This would require an import like ../some-file.js for the regular project and ../../some-file.js for the preview mode.
Which package is affected (leave empty if unsure)
No response
Link to the code that reproduces this issue
https://EyMaddis@github.com/EyMaddis/react-email-import-bug.git
To Reproduce

clone the repo
run npm install
run npm run dev
open http://localhost:3000
observe the "Hello World" on the index page ✅

Start the preview mode

run npm run email:dev -- --port 6005 (port is irrelevant here)
open http://localhost:6005
observe the described error.

Expected Behavior
Preview mode should compile and show "Hello World", same as the Next.js App
What's your node version? (if relevant)
No response

+1. Having the same issue.

I prepared a PR: https://github.com/resendlabs/react-email/pull/615 😊

This is still an issue on windows 10...

Downgrading react-email in rallly/packages/emails/package.json to 1.7.15 resolves the error.

authors: EyMaddis kafkas kleenkanteen

repo: resendlabs/react-email

license: MIT


text:
Statistics per planet group

Add statistics per group on Controlled planets, Own planets and Foreign planets pages.
requested by yorev

Good suggestion! I would like that!

authors: pvdochtend resident-uhlig

license: mit


text:
grub: Temporarily disable rollbacks

At this point we need to figure out more scenarios that would trigger
a reboot before healthcheck actually runs (such as supervisor triggered
reboots).
Such an early reboot is not an indication of a hostOS update failure and
so we do not wish for rollbacks to take place in these scenarios.
Until all corner cases are discussed and handled in the OS, we disable
rollback functionality.
Changelog-entry: Temporarily disable rollback functionality
Signed-off-by: Florin Sarbu florin@balena.io

@resin-jenkins test this please

repo: resin-os/resin-intel


text:
Override crud.rb to make it work with Sphinx on every language you like

Hi Guys! You`ve done a great work on refinery cms and i really like it, but from dasy to day i have to write hooks on serching non-latin strings. Especially in admin panel.
"Do more write less" - ruby saying goes. So is it possible to override crud.rb  a bit???
tried to put patched file in /lib/refinery/crud.rb but it doesn't do the thing. Am i missing something???

@prikha Hi! How Crud is related with Ur search experience ?
What kind of overriding do U use in crud.rb ?
Can U share Ur non latin hooks ? To understand what kind of stuf U trying  to do ?

@prikha you can just override any of the methods that crud defines per controller.  We have a task rake refinery:uncrudify controller=controller_name action=action_name which will print to your terminal the full method that crudify is generating for that action which you can then copy paste into your controller and modify.

authors: kalabiyau parndt prikha

repo: resolve/refinerycms


text:
Update to AssertJ 3.15.0

For future updates of dependencies consider using tools like https://dependabot.com/

Thank you!

repo: rest-assured/rest-assured


text:
Is all content migrated here already?

Hi,
I cannot find the contents of the actual spec in the website. Has the PDF/Word document been migrated to asciidocs already?
Thanks,
Sebastian

Hi Seb,
You can pull down the .docx or .pdf from http://restfulobjects.org.
Funny you should mention having this spec in asciidoc ... been meaning to do this for a long while, and have just started on that; see https://github.com/restfulobjects/spec (work in progress, will take a while...)
Cheers
Dan

authors: danhaywood sebastianslutzky


text:
Restore only changed files

Output of restic version
restic 0.9.5 compiled with go1.12.4 on windows/amd64
What should restic do differently? Which functionality do you think we should add?
I know that this isn't a synchronization software, but it would be veeeery nice to implement a restore function which restores only changed files in a directory and deletes files which are present in that directory but not in the snapshot i am restoring. To better clarify this, think of it like a sort of git checkout
What are you trying to do?
Suppose that I have a 500GB folder localdata on my pc and a dir named myrepo on an SFTP server, in which i backup localdata. I would like to work on localdata in an agile mode, making frequent changes to the directory internal structure, moving files, renaming, deleting some useless content, ... and so on. Every time i feel it is necessary, i execute restic backup -v localdata -r sftp:user@host:myrepo
Suddenly, a week later i wake up and i find out that some of my important files in localdata are gone, because i deleted them accidentally or maybe my sister deleted them because she doesn't know how to properly use a computer... I'd like to fully restore a previous version of the folder from myrepo without the need of redownloading the entire 500GB data from the server. That's what i usually do with git checkout <old_commit_id> except that i don't have 500GB git repos :sweat_smile:
Did restic help you today? Did it make you happy in any way?
Yeah, this software solved me a lot of problems. I use it daily for my main backups. I also appreciate this wonderful idea of asking users some positive feedback here in issues.
Restic is awesome! Keep up the good work :wink:

I'd like to fully restore a previous version of the folder from myrepo without the need of redownloading the entire 500GB data from the server

This is what the --include, --exclude and --iinclude, --iexclude flags to restic restore are for, as well as the restic mount command which will allow you to just browse the files in your snapshot(s) and copy back the ones you want.
I'm not seeing your suggested feature being implemented anytime soon, so I'm curious if those two alternatives above doesn't work for you?

Yes i know about these flags, but this involve indeed browsing and manually
find differences between the local copy and the latest snapshot.
Furthermore, restic mount does not work on Windows. So unfortunately these
alternatives do not work for me :/
If you think that this feature is not relevant, feel free to close this
issue. Maybe in the future i will learn some Go and then make a pull
request, but for now i can't do it.
On Sun, Mar 22, 2020, 22:48 rawtaz notifications@github.com wrote:

I'd like to fully restore a previous version of the folder from myrepo
without the need of redownloading the entire 500GB data from the server
This is what the --include, --exclude and --iinclude, --iexclude flags to restic
restore are for, as well as the restic mount command which will allow you
to just browse the files in your snapshot(s) and copy back the ones you
want.
I'm not seeing your suggested feature being implemented anytime soon, so
I'm curious if those two alternatives above doesn't work for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/restic/restic/issues/2662#issuecomment-602278707, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AI5VTDT5SZSJMDSGNFKFG7TRI2BS3ANCNFSM4LRN4F7A
.

I was also wanting this, but I found restic mount /backup plus rsync -a --delete /backup/<backupdir> <mydir> to be a useful and performant substitute, also very flexible.

Sound like a duplicate of #2348.

A slightly more generic way to think about this functionality is like a restic rsync of sorts, which downloads the absolute minimum required to transform any arbitrary locally supplied state to the requested restic snapshot.
An intermediate step is to have functionality that expresses the diff of two arbitrary snapshots as:

data that is needed to transform one snapshot to another, plus
operations (eg: delete, change timestamps, etc.) to transform one snapshot to another

With the above, one can do things like:

allow user to download a diff between two snapshots
make restores resumable
supply a local snapshot state, and have restic transform that into a requested snapshot state, while downloading the minimum of data required to do so (which is the main benefit)
restic rsync functionality: supply an arbitrary local state (any set of files) and have restic transform that into a requested snapshot state, while downloading the minimum of data required to do so (which is the main benefit)

Restic has all the fundamental building blocks necessary to build a restic rsync functionality.

I'd love this funcitonality as well. I'm very surprised it isn't already the default! I hope #3425 can get merged soon!

I'll explain my use case because it seems to be a little bit different from the original intention of this issue but I really don't want to spam a new issue.
I'm trying to use restic to restore a snapshot while minimizing data transfer from the repository.
The backup size can easily reach the TBs so doing a full restore is a very long task that can easily become very expensive.
The obvious option is to do what was proposed by @brad2014, restic mount and rsync.
The problem is that I'm running from within a container and restic mount requires elevating the container permissions more than I would like :disappointed:
If there was a way for the restore to skip whatever is already on disk using the same mtime and size comparison to decide what to restore like the backup command does it would save a lot of bandwidth and time.
Deletion of extraneous files that appeared in the meantime would also be a plus, but I feel that should be a separate flag.

@mamoit Would https://github.com/restic/restic/pull/3425 solve your problem? Or would first reading every file from disk be too slow for you?

@MichaelEischer It's better than nothing, but it would be great if checking the file content would be an optional argument with default off.
What the PR you linked to is doing seems to be to implement #1620 but for restores, which is more than what the backup does right now.
In my usecase it would take forever (large dataset over NFS), but it would still be better than restoring everything again.

Note, this would be also desperately needed for #4575 where I'm thinking about a --inplace option to the restore.

Thinking of this I think the logic could be like this:

if you restore to an empty folder, let's go (after all, nothing will be overwritten)
if filesystem is equal to some snapshot: just add/delete files to get to the version as requested. (after all we have a backup)
if you have modified files, keep those unless --delete-modified-files is set.

Fantastic!

authors: MichaelEischer brad2014 dimejo dmotte luckydonald mamoit nickchomey rawtaz redstreet

repo: restic/restic


text:
Italian translate update

I have updated the Italian translate.

check out the commit attached to this pull req, i think something went wrong

repo: retlehs/roots


text:
Feature: 'type: dataset' export bib without url

Debug log ID
UECSSUYL-refs-apse
What happened?
when set reference type as dataset (adding type: dataset in extra), the export bib is missing url or saying howpublished.

Are you exporting as bibtex or biblatex? bibtex doesn't have a dataset entry type, but biblatex does, and that exports as
@dataset{worldbank2017pakistan,
  title = {Pakistan - Solar Radiation Measurement Data},
  author = {{World Bank}},
  date = {2017},
  url = {https://energydata.info/dataset/pakistan-solar-radiation-measurement-data},
  urldate = {2023-03-30},
  organization = {World Bank via ENERGYDATA.info, under a project funded by the Energy Sector Management Assistance Program (ESMAP)}
}

Thank you for clarifying this. i wasn't aware that bibtex doesn't have a dataset entry type.
Problem solved. thank you for instant reply.

authors: holderhe retorquere

repo: retorquere/zotero-better-bibtex


text:
[WIP] @revam/git-core v0.2.0

Opened a PR to keep track of progress on the next development release of package @revam/git-core.
Goals for this PR and next release:

[x] Structural changes. Redefine boundaries between classes and interfaces, private and public exports.
[x] Better configuration for rollup (remove eval-hack)
[x] Use the v7 release of @microsoft/api-extractor for better review file and API surface.
[x] Enable coverage report.
[ ] Adds tests for the whole code-base.
[ ] 100% coverage on existing code.

For anyone(?) wondering why the commits suddenly stopped, I've been reading up on how to mask modules/dependencies while testing (with Jest). The Controller class uses the file-system and network, and will need masking the "fs" module and "node-fetch" package when testing.
P.s.: all of these "status" updates are mostly for myself (since this is not a popular repository).

Changed merge target from master to develop/master. Should also update the source branch, but GitHub does not support renaming the source branch of a pull request without creating a new, separate, PR.

welp. haven't pushed in the latest changes (got 24 more commits on my machine) for over a year now, still, it's not abandoned, only...real life happened and I shelved it.

repo: revam/node-git-monorepo


text:
[BUG] threaded_rod generated artefact for small pitch

Describe the bug
When using threaded_rod module, if the pitch is smaller than 1 a spiral is produced above and below the threaded rod, which interferes with render.
Code To Reproduce Bug

include <BOSL2/std.scad>
include <BOSL2/threading.scad>
$fn=64;
threaded_rod(d=52, l=5, pitch=0.75, bevel1=true, bevel2=true);```

**Expected behavior**
A threaded rod with desired parameters should be generated.

**Additional context**
Add any other context about the problem here.
- OpenSCAD Version: 2021.01 as well as nightlies
- Other libraries used:

I have fixed this in my pull request.

authors: adrianVmariano lionelbrits


text:
How do i redirect the urls  in the Filter?

what are the differents  of the two  following?
1
       func LoginFilter(c *revel.Controller, fc []revel.Filter) {
        // .. do some pre-processing ..
        if c.Session["userEmail"] == "" {
            c.Redirect("/App/Mytest")   // the Redirect do nothing,  why?
            return
        }
    fc[0](c, fc[1:]) // Execute the next filter stage.
    // .. do some post-processing ..
    }

2
    func LoginFilter(c *revel.Controller, fc []revel.Filter) {
       // .. do some pre-processing ..
       if c.Session["userEmail"] == "" {
              c.Response.Out.Header().Set("Location", "/App/Mytest")
          c.Response.WriteHeader(http.StatusFound, "")  //it does. but the error is:"server.go:1934: http: multiple response.WriteHeader calls", why?
           return
       }

    fc[0](c, fc[1:]) // Execute the next filter stage.
   // .. do some post-processing ..
   }

How do i   redirect the urls in the Filter?

You need to set c.Result with your redirect
 c.Result = c.Redirect("/App/Mytest")
        return

The filter is run in server.go with the following code
var (
	req  = NewRequest(r)
	resp = NewResponse(w)
	c    = NewController(req, resp)
)
req.Websocket = ws

Filters[0](c, Filters[1:])
if c.Result != nil {
	c.Result.Apply(req, resp)
} else if c.Response.Status != 0 {
	c.Response.Out.WriteHeader(c.Response.Status)
}
// Close the Writer if we can
if w, ok := resp.Out.(io.Closer); ok {
	w.Close()
}

So as you can see the result will be applied if it is not nill.

Thanks!

authors: notzippy xpbliss

repo: revel/revel


text:
Create stat624_datavisualization.ipynb

data visualization

Approving Pull request.

repo: revendrat/Python-Git-Practice


text:
Theming documentation isn't clear

The documentation around setting theme colors which are inherited by the components aren't very clear. I think in order for people to start using this library it would be great to have more thorough documentation around aspects almost every user will be looking to use, and theming I think is definitely one of those features.
I think some things worth covering are:

[ ] How do people set primary/secondary/accent colors similar to what they will have set in their tailwind setup?
[ ] Do these theming settings get inherited by components (e.g. buttons?) if not it would be good to show/explain how that's done.
[ ] More thorough examples in the documentation demonstrating how it's done/best practices.

Hello Tom!
To be honest I never use primary/secondary/accent colors myself. I just go with blue/purple etc.
Could you show me one of your tailwind.config.ts files?

Hi Nick!
Here is a good example from the Tailwind documentation.
I can't speak for everyone but I see a lot of people I've worked with including myself give their color names based on their context rather than the name of their color. For example your themes color of red could be used as both an error color, and a color for sale items.
I guess it's not clear on how to do this with Rewinds UI theming? Maybe I've just completely missed something though.

Would that solution fit your needs?

I think for now I can make it work this way like you suggested, I will try anyway later (as I only work on this during my evenings).
It would be ideal though if theming for the UI library was similar to that of how tailwind in future seeing as they are intertwined I think. The more similar these configurations are the more compatible they will feel I guess (if that makes sense).
Anyhow, these are just suggestions rather than complaints I want to stress. I think you have done a great job with Rewind UI. I just like to help where I can with ideas whilst I am using it. Thank you!

It would be ideal though if theming for the UI library was similar to that of how tailwind in future seeing as they are intertwined I think. The more similar these configurations are the more compatible they will feel I guess (if that makes sense).

Of course you are right! My only issue is that right now I have so many things that I need to do, like writing tests for all components and implementing dark mode styling so I am trying to avoid spending time on things that might not be needed by the majority of the devs that are using the library.

Anyhow, these are just suggestions rather than complaints I want to stress. I think you have done a great job with Rewind UI. I just like to help where I can with ideas whilst I am using it. Thank you!

I do need your feedback and I thank you as well for trying to help! 😄

authors: NickDunas tjcafferkey

repo: rewindui/rewindui


text:
Send MapFilter settings for tracks, tileLayers.

Add configuration setting for tileLayers for MapFilter, and
if the directory exists for Tracks, send that information
along as well.

Eh, need to move a setting elsewhere. Retracting.

license: unlicense


text:
The Daily Show (Comedy Central) cannot be downloaded anymore

With the new year they changed something on the website. The different formats are shown, but the stream cannot be found (HTTP Error 404). I can stream the program on the website with no problem. Please look into this. As always, thank you very much!
PS C:\WINDOWS\system32> ytdl -f http-2128 http://www.cc.com/full-episodes/1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040 --verbose
[debug] System config: []
[debug] User config: ['-o', 'C:/Users/hstracker/Downloads/%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['-f', 'http-2128', 'http://www.cc.com/full-episodes/1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.01.02
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg 2.8.git, ffprobe 2.8.git, rtmpdump 2.4
[debug] Proxy map: {}
[ComedyCentralFullEpisodes] 1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040: Downloading webpage
[ComedyCentralFullEpisodes] 1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040: Downloading JSON metadata
[ComedyCentralFullEpisodes] 2d277158-b85a-11e6-bfd4-0026b9414f30: Downloading info
[ComedyCentralFullEpisodes] 551b4af3-73f1-4683-9fcd-4f3941334224: Extracting information
[ComedyCentralFullEpisodes] 551b4af3-73f1-4683-9fcd-4f3941334224: Downloading video urls
[ComedyCentralFullEpisodes] af4a578d-e2fa-4ccf-93aa-b80c67fcdb4e: Extracting information
[ComedyCentralFullEpisodes] af4a578d-e2fa-4ccf-93aa-b80c67fcdb4e: Downloading video urls
[ComedyCentralFullEpisodes] eafbee67-1e22-46bf-80af-4fe957b3d4ce: Extracting information
[ComedyCentralFullEpisodes] eafbee67-1e22-46bf-80af-4fe957b3d4ce: Downloading video urls
[ComedyCentralFullEpisodes] b990d987-1867-428e-a90e-e7ba82475b4d: Extracting information
[ComedyCentralFullEpisodes] b990d987-1867-428e-a90e-e7ba82475b4d: Downloading video urls
[download] Downloading playlist: January 3, 2017 - Michael Che
[ComedyCentralFullEpisodes] playlist January 3, 2017 - Michael Che: Collected 4 video ids (downloading 4 of them)
[download] Downloading video 1 of 4
[debug] Invoking downloader on 'http://viacommtvstrmfs.fplive.net/gsp.comedystor/com/dailyshow/TDS/season_22/040/ds_22_0
40_act1_ngzsdi8x7z_960x540_2128.mp4'
ERROR: unable to download video data: HTTP Error 404: Not Found
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp0hst59yw\build\youtube_dl\YoutubeDL.py", line 1699, in process_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp0hst59yw\build\youtube_dl\YoutubeDL.py", line 1641, in dl
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp0hst59yw\build\youtube_dl\downloader\common.py", line 353, in download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp0hst59yw\build\youtube_dl\downloader\http.py", line 61, in real_download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp0hst59yw\build\youtube_dl\YoutubeDL.py", line 2001, in urlopen
File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
urllib.error.HTTPError: HTTP Error 404: Not Found

I'm getting a slightly different error (but am on Linux instead of Windows):
`$ youtube-dl "http://www.cc.com/full-episodes/1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040" --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.cc.com/full-episodes/1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.01
[debug] Python version 3.5.2 - Linux-4.8.11-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.2.1, ffprobe 3.2.1, rtmpdump 2.4
[debug] Proxy map: {}
[ComedyCentralFullEpisodes] 1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040: Downloading webpage
[ComedyCentralFullEpisodes] 1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040: Downloading JSON metadata
[ComedyCentralFullEpisodes] 2d277158-b85a-11e6-bfd4-0026b9414f30: Downloading info
[ComedyCentralFullEpisodes] 551b4af3-73f1-4683-9fcd-4f3941334224: Extracting information
[ComedyCentralFullEpisodes] 551b4af3-73f1-4683-9fcd-4f3941334224: Downloading video urls
[ComedyCentralFullEpisodes] af4a578d-e2fa-4ccf-93aa-b80c67fcdb4e: Extracting information
[ComedyCentralFullEpisodes] af4a578d-e2fa-4ccf-93aa-b80c67fcdb4e: Downloading video urls
[ComedyCentralFullEpisodes] eafbee67-1e22-46bf-80af-4fe957b3d4ce: Extracting information
[ComedyCentralFullEpisodes] eafbee67-1e22-46bf-80af-4fe957b3d4ce: Downloading video urls
[ComedyCentralFullEpisodes] b990d987-1867-428e-a90e-e7ba82475b4d: Extracting information
[ComedyCentralFullEpisodes] b990d987-1867-428e-a90e-e7ba82475b4d: Downloading video urls
[download] Downloading playlist: January 3, 2017 - Michael Che
[ComedyCentralFullEpisodes] playlist January 3, 2017 - Michael Che: Collected 4 video ids (downloading 4 of them)
[download] Downloading video 1 of 4
[debug] Invoking downloader on 'http://viacommtvstrmfs.fplive.net/gsp.comedystor/com/dailyshow/TDS/season_22/040/ds_22_040_act1_ngzsdi8x7z_1920x1080_5128.mp4'
ERROR: unable to download video data: <urlopen error [Errno 110] Connection timed out>
Traceback (most recent call last):
File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.5/http/client.py", line 1106, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.5/socket.py", line 711, in create_connection
raise err
File "/usr/lib/python3.5/socket.py", line 702, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1699, in process_info
success = dl(filename, info_dict)
File "/usr/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1641, in dl
return fd.download(name, info)
File "/usr/lib/python3.5/site-packages/youtube_dl/downloader/common.py", line 353, in download
return self.real_download(filename, info_dict)
File "/usr/lib/python3.5/site-packages/youtube_dl/downloader/http.py", line 61, in real_download
data = self.ydl.urlopen(request)
File "/usr/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 2001, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.5/urllib/request.py", line 466, in open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
'_open', req)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/site-packages/youtube_dl/utils.py", line 872, in http_open
req)
File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 110] Connection timed out>
`

I'm seeing both of these errors; the 404 from Germany, the Connection timed out from the US.

This really is the same issue as https://github.com/rg3/youtube-dl/issues/11148

I think this is closely related to #11148

Doesn't look like it. #11148 is related to finding the mgid value. This issue is about missing files and unreachable hosts.

I'm in the US and also getting a timeout.  However, the video works on the page using the Flash Player.  Perhaps it's expecting a particular HTTP header field values to prevent things like youtube-dl.
$ youtube-dl "http://www.cc.com/full-episodes/1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040" --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'http://www.cc.com/full-episodes/1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.05
[debug] Python version 2.7.13 - Linux-4.7.0-1-amd64-x86_64-with-Ubuntu-12.04-precise
[debug] exe versions: none
[debug] Proxy map: {}
[ComedyCentralFullEpisodes] 1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040: Downloading webpage
[ComedyCentralFullEpisodes] 1wb7rt/the-daily-show-with-trevor-noah-january-3--2017---michael-che-season-22-ep-22040: Downloading JSON metadata
[ComedyCentralFullEpisodes] 2d277158-b85a-11e6-bfd4-0026b9414f30: Downloading info
[ComedyCentralFullEpisodes] 551b4af3-73f1-4683-9fcd-4f3941334224: Extracting information
[ComedyCentralFullEpisodes] 551b4af3-73f1-4683-9fcd-4f3941334224: Downloading video urls
[ComedyCentralFullEpisodes] af4a578d-e2fa-4ccf-93aa-b80c67fcdb4e: Extracting information
[ComedyCentralFullEpisodes] af4a578d-e2fa-4ccf-93aa-b80c67fcdb4e: Downloading video urls
[ComedyCentralFullEpisodes] eafbee67-1e22-46bf-80af-4fe957b3d4ce: Extracting information
[ComedyCentralFullEpisodes] eafbee67-1e22-46bf-80af-4fe957b3d4ce: Downloading video urls
[ComedyCentralFullEpisodes] b990d987-1867-428e-a90e-e7ba82475b4d: Extracting information
[ComedyCentralFullEpisodes] b990d987-1867-428e-a90e-e7ba82475b4d: Downloading video urls
[download] Downloading playlist: January 3, 2017 - Michael Che
[ComedyCentralFullEpisodes] playlist January 3, 2017 - Michael Che: Collected 4 video ids (downloading 4 of them)
[download] Downloading video 1 of 4
[debug] Invoking downloader on u'http://viacommtvstrmfs.fplive.net/gsp.comedystor/com/dailyshow/TDS/season_22/040/ds_22_040_act1_ngzsdi8x7z_1920x1080_5128.mp4'
ERROR: unable to download video data: <urlopen error [Errno 110] Connection timed out>
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1699, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1641, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 353, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 61, in real_download
    data = self.ydl.urlopen(request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 877, in http_open
    req)
  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 110] Connection timed out>

We may be able to use HLS URLs instead of the hidden HTTP ones (which were basically guessed from the RTMP URLs).

I've implemented it as such. Using m3u playlists is by no means optimal, but it's better than nothing for now. With the change, youtube-dl :tds works for me from Germany.

Standalone videos still can't be downloaded. Only full episodes work.
Below is an example (same video on both links).
http://www.cc.com/video-clips/5ry6nv/the-daily-show-with-trevor-noah-exclusive---omar-saif-ghobash-extended-interview
http://www.cc.com/shows/the-daily-show-with-trevor-noah/interviews/rma4rc/exclusive-omar-saif-ghobash-extended-interview

@japanesephundroid Maybe the same issue as #11624

@yan12125 Yes its the same issue both try to use the hidden http link (the issue @phihag fixed 4 days ago) instead of using HLS.

I'm not sure if this is the same issue either or not, but it seems that certain old full-episodes links redirect to episodes, so they can't be downloaded. Example:
$ youtube-dl --verbose 'http://www.cc.com/full-episodes/wu5xuj/the-daily-show-with-jon-stewart-november-8--2011---bill-clinton-season-17-ep-17018'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'http://www.cc.com/full-episodes/wu5xuj/the-daily-show-with-jon-stewart-november-8--2011---bill-clinton-season-17-ep-17018']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.08
[debug] Python version 2.7.10 - Darwin-15.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.1.2, ffprobe 3.1.2, rtmpdump 2.4
[debug] Proxy map: {}
[ComedyCentralFullEpisodes] wu5xuj/the-daily-show-with-jon-stewart-november-8--2011---bill-clinton-season-17-ep-17018: Downloading webpage
[ComedyCentralFullEpisodes] wu5xuj/the-daily-show-with-jon-stewart-november-8--2011---bill-clinton-season-17-ep-17018: Downloading JSON metadata
ERROR: An extractor error has occurred. (caused by KeyError(u'data',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 359, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/comedycentral.py", line 58, in _real_extract
    mgid = feed['result']['data']['id']
KeyError: u'data'
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 365, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
ExtractorError: An extractor error has occurred. (caused by KeyError(u'data',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

If you open the link in a browser it will turn full-episodes into just episodes, which won't work either:
Pietros-MacBook-Pro:Downloads pietro$ youtube-dl --verbose 'http://www.cc.com/episodes/wu5xuj/the-daily-show-with-jon-stewart-november-8--2011---bill-clinton-season-17-ep-17018'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'http://www.cc.com/episodes/wu5xuj/the-daily-show-with-jon-stewart-november-8--2011---bill-clinton-season-17-ep-17018']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.08
[debug] Python version 2.7.10 - Darwin-15.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.1.2, ffprobe 3.1.2, rtmpdump 2.4
[debug] Proxy map: {}
[ComedyCentral] the-daily-show-with-jon-stewart-november-8--2011---bill-clinton-season-17-ep-17018: Downloading webpage
ERROR: Unable to extract mgid; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/mtv.py", line 218, in _extract_mgid
    og_url = self._og_search_video_url(webpage)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 780, in _og_search_video_url
    return self._html_search_regex(regexes, html, name, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 671, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 662, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 359, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/mtv.py", line 240, in _real_extract
    mgid = self._extract_mgid(webpage)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/mtv.py", line 234, in _extract_mgid
    r'embed/(mgid:.+?)["\'&?/]', sm4_embed, 'mgid', default=default)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 662, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract mgid; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

This is on 2017.01.08. If this is a different issue I'll split it.

@andlabs

I'm not sure if this is the same issue either or not, but it seems that certain old full-episodes links redirect to episodes, so they can't be downloaded

Comedy Central only keeps a limited number of full episodes available, most are just removed from the site and some can be only played with a TV subscription. The John Stewart you tried is not available on the site for viewing in the full episode format.

If this is a different issue I'll split it.
As far as I can tell this is not an issue, this is intended behavior, there are no videos to download.

Did they stop making the episodes available as individual clips that combine to form the full episodes? Because I remember that's how it worked a few years ago.

Did they stop making the episodes available as individual clips that combine to form the full episodes? Because I remember that's how it worked a few years ago.

Those are still available, every clip is a separate webpage. That link you posted should not work, but Comedy Central still has some links from the episode there for backwards compatibility. If you can find the first one the next one is usually available as a suggestion at the end, or it was the last time I tried to watch an episode this way.

authors: GravisZro Jimi-James StevenDTX andlabs hstracker90 japanesephundroid phihag sander1 yan12125

license: Unlicense


text:
is it possible to open the folder for the file i downloaded

ive made youtube-dl download a file on and create a folder based on the users name. is it possible to open that folder after youtube is done downloading?

Not possible.

authors: JunkyardCat dstftw


text:
Download from AirMozilla not working

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.04.03. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2017.04.03

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl https://air.mozilla.org/the-joy-of-coding-episode-96/ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://air.mozilla.org/the-joy-of-coding-episode-96/', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.04.03
[debug] Python version 2.7.12+ - Linux-4.8.0-45-generic-x86_64-with-Ubuntu-16.10-yakkety
[debug] exe versions: avconv 3.0.7-0ubuntu0.16.10.1, avprobe 3.0.7-0ubuntu0.16.10.1, ffmpeg 3.0.7-0ubuntu0.16.10.1, ffprobe 3.0.7-0ubuntu0.16.10.1, rtmpdump 2.4
[debug] Proxy map: {}
[AirMozilla] the-joy-of-coding-episode-96: Downloading webpage
[AirMozilla] c5w4w3: Downloading webpage
ERROR: Unable to extract metadata; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 761, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 429, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/airmozilla.py", line 40, in _real_extract
    jwconfig = self._search_regex(r'\svar jwconfig = (\{.*?\});\s', embed_script, 'metadata')
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 778, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract metadata; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Thanks for the report. air.mozilla.org will be fixed in the next version.


text:
[mixcloud] unable to extract like count

There's a warning while script try to extract like count from an url.
The command:
youtube-dl -s http://www.mixcloud.com/dholbach/cryptkeeper/

Returns:
[mixcloud] dholbach-cryptkeeper: Downloading webpage
[mixcloud] dholbach-cryptkeeper: Checking URL 14/30 ...
WARNING: unable to extract like count; please report this issue on http://yt-dl.org/bug

I think it can be fixed here, but I don't know how to debug a python script:
https://github.com/rg3/youtube-dl/blob/c5826a491b7b214a7e81030ad53103c4aca04dc2/youtube_dl/extractor/mixcloud.py#L90
Thanks!

You are using an outdated version, you'll have to (update](https://github.com/rg3/youtube-dl/blob/60158217ef8da5f44ef316e50c8a5e2ac2e202c5/README.md#how-do-i-update-youtube-dl)
For future reports, please post the output with the --verbose option.

Yes indeed, sorry about this false issue.

authors: jaimeMF sweetdub


text:
acast bug: Unable to download webpage: HTTP Error 503: Success

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.04.06. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2016.04.06

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

Console output:
$ youtube-dl https://www.acast.com/condenasttraveler/-where-are-you-taipei-101-taiwan -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://www.acast.com/condenasttraveler/-where-are-you-taipei-101-taiwan', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.04.06
[debug] Python version 2.7.6 - Linux-3.13.0-32-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.18-6, avprobe 9.18-6, ffmpeg 2.6.2, ffprobe 2.6.2, rtmpdump 2.4
[debug] Proxy map: {}
[acast] -where-are-you-taipei-101-taiwan: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 503: Success (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 371, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1935, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Description
Site (and podcast) works without problem when going through browser so shouldn't be connectivity issue

will be fixed in the next version.

authors: MaZZly remitamine


text:
Add ellipsis and overflow to repo cards titles

Hi, here is quick fix for too long repo cards titles.

Could you add a little screenshot to the PR so that I can see how it looks?

@rgehan here

Thank you, that works very well!

authors: aprex rgehan

repo: rgehan/octolenses-browser-extension


text:
reticulate error

Hi,
I read your paper with great interest and was curious to test the method in the context of a project I am working on.
Installation of the python part on Windows worked pretty smoothly, but I ran into some issues in the R part.
Specifically, after installing the package, InitializePython throws an error (even though autograd is installed):
InitializePython(file.path("C:XXXX/GitHub/zaminfluence/venv/Scripts/python.exe"))
Error in py_run_string_impl(code, local, convert) :
ModuleNotFoundError: No module named 'autograd'

Best

Freshly installing python somehow solved it

A fresh installation of python, and subsequently reticulate, solved it. Great  implementation!

repo: rgiordan/zaminfluence


text:
adding build verification to preflight (#65)

In case image of the Module is not available or
is does not contain the correct driver version,
preflight will check if Build configuration exists in Module yaml, and if it does, then it will try to build it. In case build is successful, then the module is considered to be verified
Upstream PR for cherry-pick:
https://github.com/kubernetes-sigs/kernel-module-management/commit/54ec19e957fa30e6faf425fb120aadf2e640251e

/assign @qbarrand

/assign @ybettan

@yevgeny-shnaidman Can you please elaborate on the differences vs u/s? The u/s commit seems very different from this one.

@yevgeny-shnaidman Can you please elaborate on the differences vs u/s? The u/s commit seems very different from this one.

@ybettan this is mainly due to differences in the Builds between upstream and Downstream. The Sync API is different...

/lgtm

authors: qbarrand ybettan yevgeny-shnaidman


text:
LDFLAGS Fix (and API bump) for ARM64-v8a and OpenSSL 1.1.1c

Changes:

Bumped API from 21 to 23 (at the time I was having issues, this may be unrelated)
The line "ENV LDFLAGS -R/openssl-build/lib" appears to be ignored when configure is called; added "LDFLAGS=-Wl,-R/openssl-build/lib", and modified the "-with-ssl"  option to target the openssl dependency path

Result:
The CURL build under arm64-v8a completes successfully.  The resulting libraries could then be used on an Android device, successfully connecting to a mapservice over HTTPS.
I noticed that I was required to also include the libcrypto.so.1.1 and libssl.so.1.1 in addition to the libcrypto.so and libssl.so files.  It appears that the libcrypto.so and libssl.so files are now just symlinks to the .1.1 files.
I tested my android app against an ArcGIS MapServer (https://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer), and was able to use the GDAL to open a dataset, and clip a region successfully.

Merged. Thanks!

authors: ArtificialRaccoon rhardih

repo: rhardih/bad


text:
Error: no such module: rtree

I'm trying to use the rtree module following the sqlite docs however this statement fails:
CREATE VIRTUAL TABLE demo_index USING rtree(
   id,              -- Integer primary key
   minX, maxX,      -- Minimum and maximum X coordinate
   minY, maxY       -- Minimum and maximum Y coordinate
);

with this error:
Error: no such module: rtree
    at check (https://rhashimoto.github.io/wa-sqlite/src/sqlite-api.js:857:11)
    at Object.step (https://rhashimoto.github.io/wa-sqlite/src/sqlite-api.js:690:14)
    at async execute (https://rhashimoto.github.io/wa-sqlite/src/examples/tag.js:50:16)

I've checked by doing a local build that -DSQLITE_ENABLE_RTREE is indeed passed as a compilation option, so I would expect this to work. Unless I'm missing something?
Cheers,
Jun

I'm pretty sure rtree is not enabled in my builds. If you try PRAGMA compile_options in the demo, there's no ENABLE_RTREE. There are some suggestions for customizing your own build here.

Perfect thank you make WASQLITE_EXTRA_DEFINES="-DSQLITE_ENABLE_RTREE" did the trick!

authors: jmatsushita rhashimoto

repo: rhashimoto/wa-sqlite


text:
你看看这样对面

你看看 对吗，作者

START RequestId:5ef8836a-6dea-4a59-85b0-6debd451cec9
ERROR RequestId:5ef8836a-6dea-4a59-85b0-6debd451cec9 Result:{"errorCode":-1,"errorMessage":"Traceback (most recent call last):\n  File "/var/runtime/python3/bootstrap.py", line 133, in init_handler\n    func_handler = get_func_handler(file.rsplit(".", 1)[0], func)\n  File "/var/runtime/python3/bootstrap.py", line 159, in get_func_handler\n    mod = imp.load_module(mname, *imp.find_module(mname))\n  File "/var/lang/python3/lib/python3.6/imp.py", line 234, in load_module\n    return load_source(name, filename, file)\n  File "/var/lang/python3/lib/python3.6/imp.py", line 172, in load_source\n    module = _load(spec)\n  File "\u003cfrozen importlib._bootstrap\u003e", line 675, in _load\n  File "\u003cfrozen importlib._bootstrap\u003e", line 655, in _load_unlocked\n  File "\u003cfrozen importlib._bootstrap_external\u003e", line 678, in exec_module\n  File "\u003cfrozen importlib._bootstrap\u003e", line 205, in _call_with_frames_removed\n  File "/var/user/index.py", line 4, in \u003cmodule\u003e\n    from activity.unicom.dailySign import SigninApp\n  File "/var/user/activity/unicom/dailySign.py", line 6, in \u003cmodule\u003e\n    from utils.toutiao_reward import TouTiao\n  File "/var/user/utils/toutiao_reward.py", line 4, in \u003cmodule\u003e\n    from utils.common import Common\n  File "/var/user/utils/common.py", line 5, in \u003cmodule\u003e\n    from utils.config import data_storage_server_url, Authorization\n  File "/var/user/utils/config.py", line 17, in \u003cmodule\u003e\n    ':'.join([username, password]).encode('clack')\nLookupError: unknown encoding: clack","statusCode":443}
END RequestId:5ef8836a-6dea-4a59-85b0-6debd451cec9
Report RequestId:5ef8836a-6dea-4a59-85b0-6debd451cec9 Duration:0ms Memory:128MB MemUsage:0.000000MB

utils/config.py文件中 ':'.join([username, password]).encode('clack') 这句改成':'.join([username, password]).encode('utf8')
这里的utf8是编码格式不是用户名

repo: rhming/UnicomDailyTask


text:
Revert "Update Hypershift RBAC to read only (#362)"

There is currently no need for a read-only service account, but there is a need for an account with write access.
This reverts commit f4fd9cc267401daabf849c59149f35664e8353a3.

@Nikokolas3270 thanks! could you please run make manifests - hopefully this should fix CI

@jessicalins, I regenerated the manifests in a separate commit (to make sure the revert commit only addresses the revert).

/retest

repo: rhobs/configuration


text:
🛑 BOS2 is down

In 28e5da6, BOS2 ($URL_BOS2) was down:

HTTP code: 0
Response time: 0 ms

Resolved: BOS2 is back up in 08dbed8 after 31 minutes.

repo: rholak/upptime


text:
[Two pointer 강의] 16472 고냥이 질문있습니다

안녕하세요
Two pointer 강의 고냥이 문제에서 오른쪽 포인터를 고정시키고 왼쪽 포인터를 알파벳 종류 개수에 맞도록 이동시킨다고 하셨는데,
반대일 경우에는 문제를 풀 수 없는지 궁금합니다.
저는 왼쪽 포인터를 고정시키고 오른쪽 포인터를 이동시킨 알고리즘을 구현하였는데
채점 과정에서 틀렸다고 나와서 다른 경우로 풀었을 때 예외 케이스가 존재하는 것인지 알고 싶습니다.
import sys
input = sys.stdin.readline
N = int(input())
string = input().strip()
alpha = [0]*26
R = -1
kind = 0
res = 0
for L in range(len(string)):
while kind <= N and R < len(string)-1:
R += 1
alpha[ord(string[R])-ord('a')] += 1
if alpha[ord(string[R])-ord('a')] == 1:
kind += 1
res = max(res, R-L)
alpha[ord(string[L])-ord('a')] -= 1
if alpha[ord(string[L])-ord('a')] == 0:
kind -= 1
print(res)

Indent가 없으면 보기 힘듭니다 ㅜㅜ
아래 입력으 결과가 어떻게 나오시나요?
5
abc


text:
Minor formatting fixes

Remove some unnecessary escape characters in documentation

Thanks!

authors: CDRussell ivacf

repo: ribot/android-guidelines


text:
about the dpo data

Great work! Regarding the DPO dataset, are the choose and reject of the VQA type yes or no? If so, has the author encountered the problem that the DPO model deviates from the SFT model? Because I have built a similar DPO dataset myself, I found that as the amount of DPO data increases, such similar yes or no data may seriously cause problems in the generalization of the DPO model

Hi @Key-lei,
Great question! This is a typical problem caused by DPO. So to overcome this imbalance, our data scale is not very large. Actually maybe you can think deeply about this issue.
Feel free to contact me if you have any question.

authors: Key-lei richard-peng-xia

repo: richard-peng-xia/MMed-RAG


text:
High memory usage in vscode but not with vim

Hi again,
I'm having trouble with simple code that makes use of boost libs, I expected it to take much memory than naive c++ code. When I use vim and ycm plugin, it take about 10% of my system memory which is expected, but when I use vscode and this plugin, it takes about 50% of my system memory on the same source file and doing same things. So the difference in memory consumption is about 5x in both plugins.
I think that this plugin might be processing something extra behind the scenes which is making it consume much more memory, can you please check why it does so?

And it's not this plugin's process that takes memory, its the ycm process itself.

I'm not sure.
I'm trying to make all API calls the same as what vim using.
Could you please provide more log and create an issue to YCMD project ?
I'm glad to offer any help.

I don't think YCMD is the issue here because vim plugin works fine and takes ~10% memory. How to provide logs regarding this - do you need the debug logs? Maybe this plugin is requesting more data other than simple completion which vim plugin doesn't?
Let me explain it more clearly -

I open a cpp source file with vim, do XYZ changes in it. The peak memory is 10%-11%. I revert the XYZ changes.
I open the same cpp source file with vscode, do the same XYZ changes in it. The peak memory is ~50%.

It might be very difficult for me to debug this problem due to I'm not familiar with YCMD server.
When I developing this extension, I tried to make this working the same as vim version with you complete me vim plugin source code.

I know that vim plugin uses completion and lint, this plugin uses those 2 also. Is there anything else that this plugin uses by default? Also I'm using the ycmd.use_imprecise_get_type: true, but that shouldn't interfere right?

I even don't know what really interfere this problem.
You may have a look at https://github.com/richard1122/vscode-youcompleteme/blob/master/server/src/ycm.ts from line 205 to 275 .
There are many kind of requests, some of them are documented, some are not.
Some api like BufferVisit, CurrentIdentifierFinished, InsertLeave are used because I want to make this extension the same as what VIM version doing.
There are not too many things we can do in client side, ycmd does most of things automatically and we just send some files, get completion results, etc.
I really think we should discuss with ycmd developers, no matter whether this is a bug of ycmd. Or just this extension uses wrong API call.
It's abnormal for ycmd to consume such high memory for the same project.

Okay I'm opening a new issue in YCMD repo and link this issue there.

Done here - https://github.com/Valloric/ycmd/issues/740


text:
why it doesn't work when I type?

I installed the youcompleteme and complet configurations like setting "ycmd.path" and "ycmd.global_extra_config". But When I edit .c file..nothing happens.
Is there any other configurations I need to set?
PS:English is poor..sorry

Could you set ycmd.debug=true in settings and have a look at logs?

我设置了ycmd.debug=true，但是不知道去哪里找log file。搜了下发现是输入:YcmDebugInfo，但是在哪里输呢

在 vscode 里面打开输出面板，选择 ycm 插件的输出，就可以直接在 vscode 里面查看

信息是这样的：
[onDidChangeConfiguration settings] {"ycmd":{"confirm_extra_conf":true,"debug":true,"enabled_languages":["cpp","c"],"global_extra_config":"/Users/linsp/Downloads/ycmd-master/ycmd/cpp/ycm/.ycm_extra_conf.py","path":"/Users/linsp/Downloads/ycmd-master/ycmd","python":"python","use_imprecise_get_type":false}}
[getInstance] ycm is restarting
[onDidOpen] file:///Users/linsp/Dropbox/hw8/hw.c
[getInstance] ycm is initializing, delay 200ms...
[onDidChangeContent "file:///Users/linsp/Dropbox/hw8/hw.c"]
[getInstance] ycm is initializing, delay 200ms...
[onCodeAction] {"textDocument":{"uri":"file:///Users/linsp/Dropbox/hw8/hw.c"},"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":1}},"context":{"diagnostics":[]}}
[getInstance] ycm is initializing, delay 200ms...
[start] unused port: 58989
[start] random secret: 2d4de9e67be5c234864eec3b324a9163
[start] default options: {"filepath_completion_use_working_dir":0,"auto_trigger":1,"min_num_of_chars_for_completion":2,"min_num_identifier_candidate_chars":0,"semantic_triggers":{},"filetype_specific_completion_to_disable":{"gitcommit":1},"seed_identifiers_with_syntax":0,"collect_identifiers_from_comments_and_strings":0,"collect_identifiers_from_tags_files":0,"max_num_identifier_candidates":10,"extra_conf_globlist":[],"global_ycm_extra_conf":"","confirm_extra_conf":1,"complete_in_comments":0,"complete_in_strings":1,"max_diagnostics_to_display":30,"filetype_whitelist":{"":1},"filetype_blacklist":{"tagbar":1,"qf":1,"notes":1,"markdown":1,"netrw":1,"unite":1,"text":1,"vimwiki":1,"pandoc":1,"infolog":1,"mail":1},"auto_start_csharp_server":1,"auto_stop_csharp_server":1,"use_ultisnips_completer":1,"csharp_server_port":0,"hmac_secret":"","server_keep_logfiles":0,"gocode_binary_path":"","godef_binary_path":"","rust_src_path":"","racerd_binary_path":"","python_binary_path":""}
[processData: {"filepath_completion_use_working_dir":0,"auto_trigger":1,"min_num_of_chars_for_completion":2,"min_num_identifier_candidate_chars":0,"semantic_triggers":{},"filetype_specific_completion_to_disable":{"gitcommit":1},"seed_identifiers_with_syntax":0,"collect_identifiers_from_comments_and_strings":0,"collect_identifiers_from_tags_files":0,"max_num_identifier_candidates":10,"extra_conf_globlist":[],"global_ycm_extra_conf":"/Users/linsp/Downloads/ycmd-master/ycmd/cpp/ycm/.ycm_extra_conf.py","confirm_extra_conf":true,"complete_in_comments":0,"complete_in_strings":1,"max_diagnostics_to_display":30,"filetype_whitelist":{"":1},"filetype_blacklist":{"tagbar":1,"qf":1,"notes":1,"markdown":1,"netrw":1,"unite":1,"text":1,"vimwiki":1,"pandoc":1,"infolog":1,"mail":1},"auto_start_csharp_server":1,"auto_stop_csharp_server":1,"use_ultisnips_completer":1,"csharp_server_port":0,"hmac_secret":"LU3p5nvlwjSGTuw7MkqRYw==","server_keep_logfiles":0,"gocode_binary_path":"","godef_binary_path":"","rust_src_path":"","racerd_binary_path":"","python_binary_path":"","rustSrcPath":""}]
[start] optionsFile: /var/folders/vf/0_kypcd914j_pd5xct2zn_fr0000gp/T/VSCodeYcmOptions-1493466250014
[_start] [ '/Users/linsp/Downloads/ycmd-master/ycmd/ycmd',
'--port=58989',
'--options_file=/var/folders/vf/0_kypcd914j_pd5xct2zn_fr0000gp/T/VSCodeYcmOptions-1493466250014',
'--idle_suicide_seconds=600' ]
[_start] process spawn success 97258
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[start] ycm started: 97258
[buildRequest] document, /Users/linsp/Dropbox/hw8/hw.c; position: null; event: BufferVisit
[_request] {"filepath":"/Users/linsp/Dropbox/hw8/hw.c","working_dir":"/Users/linsp/Dropbox/hw8","file_data":{"/Users/linsp/Dropbox/hw8/hw.c":{"contents":"#include <stdio.h>\n\n#define MAXLEN 210\n\nint main() {\n    int n, m;\n    int favoriteColors[MAXLEN];\n}","filetypes":["c"]}},"line_num":1,"column_num":1,"event_name":"BufferVisit"}
[_request] req.end called
[buildRequest] document, /Users/linsp/Dropbox/hw8/hw.c; position: [object Object]; event: null
[_request] {"filepath":"/Users/linsp/Dropbox/hw8/hw.c","working_dir":"/Users/linsp/Dropbox/hw8","file_data":{"/Users/linsp/Dropbox/hw8/hw.c":{"contents":"#include <stdio.h>\n\n#define MAXLEN 210\n\nint main() {\n    int n, m;\n    int favoriteColors[MAXLEN];\n}","filetypes":["c"]}},"line_num":8,"column_num":2,"command_arguments":["FixIt"],"completer_target":"filetype_default"}
[_request] req.end called
[ycm stderr] 2017-04-29 19:44:11,281 - INFO - Received event notification
[ycm stderr] 2017-04-29 19:44:11,287 - INFO - Received command request
[_request] status code: 200
[_request] {}
[getReady] {}
[_request] status code: 200
[_request] {"fixits": []}

可能需要继续写一下代码，试图做一下补全？

比如说我这个时候输maxLen，它不应该给我自动补全吗。但是什么也没发生？

比如说我这个时候输maxLen，难道它不应该给我自动补全，或者一些提示什么的。但是什么也没发生？

有些操作才能触发一些补全。比如说定义一个结构体，然后对 实例输入 . 调用成员变量的时候，你试试？

是的，和你说的一样，结构体实例是可以补全成员变量的。
那么变量就不能自动补全吗，或者你有什么推荐的可以自动补全变量名的插件？
十分感谢

这是目前 vscode 对补全插件的一些限制，需要用一些按键来触发补全，所以我就预先定义了包括 ., -> 等等的几个。
我会看看是否有更好的方式来绕过这部分限制的。

好的，非常感谢你的帮助！

我打算修改一下这个 issue 的标题让它更符合问题一些，如果你觉得不合适请直接指出~

我确认了一下的确没法让 vscode 每次都调用补全的，如果需要的话你可以使用 ctrl + space 来让 vscode 强制进行补全。
https://github.com/Microsoft/vscode-tips-and-tricks#intellisense

@richard1122 插件 C/C++ Clang Command Adapter 的补全比较完整(除了那些trigger比如 ., ::, >，字母开头的结构名、函数名也能够提示)：

上面关于C/C++的插件仅 `C/C++ Clang Command Adapter` 一个.
但是vscode-ycm必须通过加上 `.` 才能「激活」这些功能：

上面的图片删除了前述插件并仅安装vscode-ycm，请问这是ycmd的问题呢还是插件的问题呢？提示补全可否更进一步呢？😃
---
测试环境各版本如下：
- OS: Windows 10 (1607 x64)
- VSCode: 1.14.2
其中的ycmd是利用如下工具在win下编译的(根据官方的安装指南)：

LLVM 4.0.1x64
Python 2.7.10 x64
MinGW GCC 7.1.0 x86_64-posix-seh-rev1
Cmake 3.9.0 x64
Visual Studio 2017

VSCode中关于插件的配置如下：
"ycmd.path": "E:\\YouCompleteMe\\third_party\\ycmd",
"ycmd.confirm_extra_conf": true,
"ycmd.global_extra_config": "F:\\WorkingDirectory\\Configuration\\common\\_ycm_extra_conf.py",
"ycmd.python": "D:\\Python\\Python27\\python.exe",

配置中的文件为 _ycm_extra_conf.py
感谢作者的付出！

应该是ycmd的机制问题，它仅在特定的trigger之后触发

is c library function auto-completed?
Why doesn't YouCompleteMe complete function paramters?
哈哈我自言自语了！ 😄

authors: LinSHP michaelHL richard1122


text:
🛑 Singapore Server is down

In f1e49aa, Singapore Server (103.20.184.82) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Singapore Server is back up in 35d6823.

repo: rifzkiadiyaksa/upptime


text:
IE support

Hello and thanks for the great project!
Are you foreseeing IE 11 support?
Currently I cannot use vue-scrollto in IE (nor your website: https://rigor789.github.io/vue-scrollto/, at least on Browserstack)

Hi, the site seems to not load on IE due to docute not supporting it, but vue-scrollto itself works in IE 11
Check out this jsfiddle in IE11

Since JSFiddle dropped support for IE11, here's a link to a codepen. (Their pens require to be run in Debug mode on IE)


text:
windows下都扫不了吗，我记得几个月前还可以的诶

是的 😫😫😫，因为 libpnet 在 Windows 下有 bug https://github.com/libpnet/libpnet/issues/707

好吧 我印象在5月份的时候，还有用你的库尝试进行syn扫描 并且是能够进行的

小狂
@.***

------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2024年7月23日(星期二) 下午4:44
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [rikonaka/pistol-rs] windows下都扫不了吗，我记得几个月前还可以的诶 (Issue #13)
是的 😫😫😫，因为 libpnet 在 Windows 下有 bug libpnet/libpnet#707
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Linux 和 Unix 下还是可以的 🤣🤣🤣屈尊用一下这两个系统

我看看能否将 ipv4 上的功能适配到 Windows 上，而 ipv6 上的可能还是得等上游修复

那可就太好了 大佬。现在ipv4还是用得多些
小狂
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "rikonaka/pistol-rs"                                                                                @.>;
发送时间: 2024年7月23日(星期二) 下午5:00
@.>;
@.@.>;
主题: Re: [rikonaka/pistol-rs] windows下都扫不了吗，我记得几个月前还可以的诶 (Issue #13)
我看看能否将 ipv4 上的功能适配到 Windows 上，而 ipv6 上的可能还是得等上游修复
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

改好了😂，最新的v2.0.2版本支持Windows了

repo: rikonaka/pistol-rs


text:
chore: add codeql-analysis workflow

Fixes #69

Codecov Report

Merging #70 (63eef1a) into main (1eeeaf0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #70   +/-   ##
=======================================
  Coverage   85.22%   85.22%
=======================================
  Files          56       56
  Lines        4439     4439
  Branches      458      458
=======================================
  Hits         3783     3783
  Misses        568      568
  Partials       88       88

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 975138b...63eef1a. Read the comment docs.

authors: codecov-commenter vitoke

repo: rimbu-org/rimbu


text:
Add Shard Family

The App Family utilizes a single shared Tree Node and Full Below cache for all shards. This can create a problem when acquiring a shard that shares an account state node that was recently cached from another shard operation. The new Shard Family class solves this issue by managing separate Tree Node and Full Below caches for each shard.
The shard acquire process in LedgerMaster and InboundLedgers was improved with considering of the acquire reason.

Thank you, @MarcelRaschke

repo: ripple/rippled


text:
uClinux.bin

hello,do you have uClinux.bin or .elf  file？Because now I need to use this compiled binary file .thanks a lot.

Hi, Thanks for your interesting in this project. Since it is a long time, I only remember that uclinux simulation is based on one open-source simulator: skyeye.  Please refer: www.skyeye.org. Now this simulator is not updated.  I am not a embedded-software developer and know only a little on compiling something.
I have found some useful urls for you, may these are helpful.
https://www.huihoo.org/mirrors/skyeye/eng/index.html
https://www.huihoo.org/mirrors/skyeye/skyeyesoft.html
https://www.huihoo.org/mirrors/pub/embed/skyeye/binary/uclinux/uclinux4skyeye-binary-v0.2.tgz
Maybe https://github.com/risclite/ARM9-compatible-soft-CPU-core/blob/master/TRAINING(CHINESE)/WEB/chapter9/uclinux.rar   is something you want.
In this zipped file, there is one file : uclinux0.bin

First of all, thank you for your patient answer.The uclinux.bin file is done.I would like to ask you about the validation of the processor model.Because I am now doing the validation of the arm model. I wrote some ARM assembler language to test mamually, but the efficiency is low.I would like to ask if you have any good suggestions on validation.thank you very much.


text:
[Qualcomm feedback] Chapter 5.1 Clarify SW policy for TVM-accessible memory

Reference: link

The TSM manages the type and accessibility of all memory assigned to the TVM, to mitigate
attacks from non-TCB software. The TSM enforces isolation between TVMs by using the G-stage
page table.
• Hart operating with the confidential supervisor domain context has MTT permissions to access
Confidential and Non-confidential memory

access to non-confidential memory is bounded right - why is it not bounded to only  TVM shared memory?
It has to be bounded for sure, but I believe the point of this note is that he fact alone that the memory is non-confidential is (by itself) not reason to cause a fault.
Compare with next point, where the reverse is expected to programmatically cause a fault

The RDSM configures the MTT such that a hart executing in the hosting domain
does not have access to any confidential memory regions. The RDSM configures the
MTT for the confidential domain to allow access to confidential memory
exclusively to that domain, but may also allow access to non-confidential
(shared) memory regions to one or more secondary domains.

adding this clarification to the description.

Closing as addressed in PR #70
cc @ozkoyuncu

repo: riscv-non-isa/riscv-ap-tee


text:
Add time capture support to ACLINT

The ACLINT (Advanced Core Local Interruptor) has a Machine-level Timer Device (MTIMER). It is hard to synchronize the MTIMER with an external reference clock. What would help if the MTIMER had a time capture mechanism which can be triggered by an external signal (for example a pulse-per-second signal). When the external capture signal arrives, the current timer value should be stored to a time capture register, a capture status flag should be set, and an interrupt should be generated (if enabled). If the capture status flag is already set, then a capture overflow status flag should be set. The captured time can be used by time synchronization algorithms to synchronize the MTIMER with an external reference clock, see for example RFC 2783

Wrong GitHub repository.  The ACLINT repository is here:
https://github.com/riscv/riscv-aclint

authors: jhauser-us sebhub

repo: riscv/riscv-aia


text:
Support pause_on_next_bootstrap for snapshot read

Support this in backfill executors.
Thanks @StrikeW for mentioning it.

QQ: since we already supported "Drop during recovery", what's the usage of pause_on_next_bootstrap now?

We may need to scale up the nodes

We may need to scale up the nodes

Can you elaborate more?

It's a quick approach to stall injecting data, which will take effect after meta restart instead of waiting for a conf change barrier to complete.

authors: BugenZhao StrikeW TennyZhuang kwannoel xxchan

repo: risingwavelabs/risingwave


text:
hummock uploader: assertion failure when seal_epoch

Describe the bug
Slack link:
https://risingwave-labs.slack.com/archives/C048NM5LNKX/p1672899254269749
Namespace: rwc-3-longevity-20230104-180851
Pod: risingwave-compute-0, risingwave-compute-1, risingwave-compute-2
compute_1.csv
compute_2.csv
compute_3.csv
To Reproduce
No response
Expected behavior
No response
Additional context
No response

Is shared buffer not cleaned up when recovery?

We abort actor's task but don't await it to terminate, I suspect if it can lead to unexpected write from actors that is expected to have been dropped, after clear_storage_buffer.
Verifying.


text:
panic: byte index out of bounds

Describe the bug
found by deterministic fuzzing
fuzzing-56.txt
https://buildkite.com/risingwavelabs/main-cron/builds/327
To Reproduce
No response
Expected behavior
No response
Additional context
No response

duplicate issue


text:
fix: extract decimal correctly when bytes len >= 5

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Correctly handle the situation when the length of bytes is greater than 4.
defore:
1.1234567891 -> 18848476.8633979091
after:
1.1234567891 -> 1.1234567891

Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added test labels as necessary. See details.
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[x] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

test_decimal_truncate test failed. Is 4.557430887741865791 the correct result?
https://buildkite.com/risingwavelabs/pull-request/builds/40741

test_decimal_truncate test failed. Is 4.557430887741865791 the correct result? buildkite.com/risingwavelabs/pull-request/builds/40741

The test result is generated by prev logic, feel free to change it as long as you make it correct.

test_decimal_truncate test failed. Is 4.557430887741865791 the correct result? buildkite.com/risingwavelabs/pull-request/builds/40741

The test result is generated by prev logic, feel free to change it as long as you make it correct.

I would suggest to obtain the correct expected output from other official avro libraries, for example python or java.

authors: tabVersion xiangjinwu xuefengze