Literature implementation mismatch

According to the paper published in Nature Methods, in each up-pass layer the operation G is performed which reads as follows:
G(x)[k,i,j] = F(x)[k,i,j] + P(s)[k]
where the operation P(s) is the projection of the "style" vector and F is the function performing the batch-norm, ReLU, and 2D convolution operations. This suggests that the convolution should first be performed on the input of G, and then the style projection added.
It seems that in the up-pass the argument of G(x) is first being added to P(s) and then the convolution F(x) is being taken over that result. To be clear, the convolution is being performed after the addition. This equation would read as:
G(x)[k,i,j] = F(x[k,i,j] + P(s)[k])
https://github.com/MouseLand/cellpose/blob/1a3eea8bc49371f80526462b93c8c06e6f8fec4e/cellpose/resnet_style.py#L112-L114
Am I misinterpreting the equation, or is there a mismatch in the operation being performed?

Yes, I think you're right, sorry about that.

Yes, I think you're right, sorry about that.

Thanks Dr. Pachitariu! Just to clarify then, should line 114 and 113 be switched or should it remain as is and the equation is changed?

Thanks Dr. Pachitariu! Just to clarify then, should line 114 and 113 be switched or should it remain as is and the equation is changed?

I think the equation is wrong and the code makes sense. The performance of the model probably wouldn't change much if the lines were swapped.

I think the equation is wrong and the code makes sense. The performance of the model probably wouldn't change much if the lines were swapped.


[IMPROVEMENT] Making the UI of android app same as of the web app

Rocket.Chat.Android app version: 1.1.0-DEBUG
Device model (or emulator): One Plus 3 - Android 8

We can make the UI of the Login and Signup screen same as that on the web.
Web Screenshot :

Android App screenshot :

We can add the rocket.chat logo and also the  Terms of Service and Privacy Policy in the app. and changing the background color to match with the web app.
Same goes for the signup page too.
@leonardoaramaki What do you think? Can I start working on this?

@saketkumar95 Thank you for your interest in doing this... but we're already working in a new version of the app (2.0) that has a complete new auth flow. If you want to take a look, go to the branch develop-2.x. Thanks!

Issue is not valid anymore for version 2.0.0.


API key?

Hey
That's some nice job you guys did here.
Where can I create an API key to use it?

Hey @Mallinanga,
Thanks! Are you talking about your instance or access to ours?

Access to yours :)

Please, join our discord: tf dsicord and contact  @ mierzwik or @ _ak_


feat: support target table alias in update statement

Which issue does this PR close?
N/A.
Support statements like UPDATE foo AS f .
Rationale for this change

When an alias is provided, it completely hides the actual name of the table. For example, given UPDATE foo AS f, the remainder of the UPDATE statement must refer to this table as f not foo.

Ref: PostgreSQL UPDATE SQL Commands
What changes are included in this PR?
If there is an alias for the target table, use it to properly qualify the column names from the target table.
Are these changes tested?
Yes
Are there any user-facing changes?
No

Looks good to me @jonahgao -- thank you for the contribution (again). These improvements are really appreciated.
You might be interested in #8008 which is also related to qualified names.

Thank you for your review @alamb .
I will pay attention to this issue and hope to be helpful.


Return part of state as defaultState

Hello together
In my particular case we have split our actions and reducers for each component in our state, unfortunately some of those components need access to the whole state in their reducer, which means in my rootReducer i have to give them the whole state. Now if the action isn't handled in the reducer i want to give back just the component of the state and not the whole state. Is there a solution how i can handle that?

some of those components need access to the whole state in their reducer

By design, Redux only passes the reducer state and not the whole state to the reducer. This is not a conception by redux-actions.
If you need access to the whole state, you can do that by moving the logic to the action creators with redux-thunk and add additional payload to your action object.


fsequeira1's custom backend

This PR is a finishing of @fsequeira1's custom backend.
I've added localstack to the test case to make it work.
Replaces #277
Fixes ##97

Thank you so much @fsequeira1 for starting this work.

great development!
does it support also azurerm storage account backend?

@mjazwiecki yes, together with the newly landed the .spec.backendConfigsFrom feature, I think it virtually supports every backend Terraform does.


Refactor fuzzing test

This is a previous proposal, but the code has never been implemented.
Now use Map as an example.
There's a lot of redundant code and some inconsistencies in the current fuzzing tests, so I've introduced an additional abstract. The purpose of this is to:

Minimize boilerplate code.
Facilitate the extension of new semantic types, such as movable list, table, etc.
Simplify the extension and maintenance of common actions, like sync and checkout.

What are your suggestions?

Can we move the fuzz code to a new crate like fuzz?  I guess they don't need to rely on the internal stuff now, correct? It was inside loro-internal because we needed it to test some internal implementation back then. Then, we may remove the test_utils feature in the future. And we can now rely on loro instead of loro-internal.


[YUNIKORN-2904] Update get_started documentation for Helm and Helm's …

What is this PR for?
I am a newbie who just started using Unicorn. Although I have some experience with K8s, as far as I know, not everyone is using Helm charts to manage their applications.
Therefore, I just added the link and some description for Helm & Helm's download for those who don't know what Helm is.
What type of PR is it?

[ ] - Bug Fix
[ ] - Improvement
[ ] - Feature
[x] - Documentation
[ ] - Hot Fix
[ ] - Refactoring

Todos

[ ] - Task

What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-2904
How should this be tested?
Screenshots (if appropriate)
Questions:

[ ] - The licenses files need update.
[ ] - There is breaking changes for older versions.
[ ] - It needs documentation.

Sorry, I used the wrong jira issue number for the last PR, so I recreate a new one.


Missing Appostrophe in Notification.Recall example

[Enter feedback here]
The Notification Message in the example is missing an apostrophe in the "Customer's" part:

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ef37e58a-9492-b344-4ede-ac29a878368f
Version Independent ID: cb034e66-5aba-0cec-34a8-5aeb667000a2
Content: Notification.Recall() Method - Business Central
Content Source: dev-itpro/developer/methods-auto/notification/notification-recall-method.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Hello,
We've fixed the example. The update will be published soon. Thanks!


Support readonly type operator to allow correct definition of Object.freeze

TypeScript Version:  2.0@RC
Code
// Current definition of `Object.freeze`:
// freeze<T>(o: T): T;

const o = Object.freeze({a: 1});
o.a = 2;  // Should throw type error
console.log(o);  // {a: 1}

Expected behavior:
Frozen object has readonly properties
Actual behavior:
Type system allows me to write to o's properties

There is no readonly type operator; i.e. freeze<T>(o: T):  readonly T;. so there is no way to do this at the time being.
We have discussed adding a readonly type operator that would recursively mark all properties as readonly.

updating the title.

In our huge Typescript app, we're using a data storage mechanism that keeps complicated class-based types inside data stores.  The rest of the app consumes these objects from the stores, but there's always a risk of developers trying to modify the objects that come out of the stores, which ruins delta checking across the app.  We could use object.freeze(), but that plays havoc with JIT.
Instead, we maintain duplicate deep readonly versions of all of our model objects.  The stores distribute readonly versions, and if anyone actually needs to update them, they first clone the readonly object back into an impl object, modify it, and then shove it back in the store.  The store takes it in and stores it as a readonly version.
The general data access pattern works fantastically.  There's no javascript overhead from object.freeze(), and our engineers are unable to do terrible things with our data models (outside of  casting, of course...)  The big issue is just that we have a ton of these deep readonly models that we're manually maintaining, and also having to have comments to maintain which methods are readonly-accessible.  We're used to just using "const" in C++ to solve this problem, both on the accessors (from stores) and for the readonly-safe methods in a class, so this is definitely a step backward, and has introduced some engineer errors by not keeping the two versions in sync.
At least we have readonly at all, it was a huge boon to us to get that. :)  I'm just hoping for a true deep "const"-style readonly someday.

Should not this be closed after #12114 and Readonly<T>?

It depends if there's any hope of a const-style.    We need deep readonly, so we have just created basically deep readonly types as copies of normal types.  I don't really understand how shallow readonly helps, unless all of your interfaces are just a list of primitives, without any deep classes on them.

@deregtd I agree with you on worthless of shallow Readonly. But Object.freeze is shallow too and is already changed per this issue.

Fair enough.  Should I just open a new one asking for true const?

Isn't what #11535 (referenced in this issue) is already asking for?

Kinda.  He's asking to mark interfaces as full readonly.  I want to have a basic set of interfaces, and then be able to mark certain usages of them as const, and have it be deep C++-style const, without having to make a complete second copy of all of them.  All the attached bugs seem to basically be solved by the partial types business.

C++-style const does not do what you say when using references and pointers (and that's how js/ts works), for example:
class Parent
{
public:
    const Child* child;
};

const Parent* parent = ...;
parent->child->iCanMutateThis = true;

I think the idea should not be about have a const making a variable readonly, but a form of deeply apply something like Readonly<>. See my #13214 and the referenced issue #12424. Unfortunately, seems #12424 is more about theory than something practical.

I understand the reference issue, but there's still a pretty easy way to do a better version of it in TS.
class SubBlah {
c: string;
}
class Blah {
a: string;
b: SubBlah;
const getA(): string {
return this.a;
}
const getC(): string {
return this.b.c;
}
setC(val: string) {
this.b.c = val;
}
}
function DoStuffConst(d: const Blah) {
const a = d.getA();  //Works
const b = d.getC();  //Works
d.setC('a');  //Doesn't compile
}
function DoStuff(d: Blah) {
const a = d.getA();  //Works
const b = d.getC();  //Works
d.setC('a');  //Works now
}

@deregtd what about
type DeepReadonly<T> = { readonly [K in keyof T]: DeepReadonly<T[K]> }

type T = DeepReadonly<{
  a: {
    b: number
  }
}>

const x: T = { a: { b: 1 } }

x.a.b = 2 // error Cannot assign to 'b' because it is a constant or a read-only property.

Interesting.  Will have to play with that concept.  That still doesn't get us there (can't have immutable methods and mutable methods, so anything with methods is hosed), but it might help some of our simpler method-less models that we currently have copies of (RO and RW).  Thanks!

@gcanti this does not work correctly for embedded arrays.

@asfernandes neither for tuples. Without mapped conditional types is pretty hard to write conditional logic. This is the best result I got so far (with some bad hacks)
declare global {
  interface Array<T> {
    _type: T
    _kind: 'Array'
  }
  interface Object {
    _kind: 'Object'
  }
}

export type Readonlyable = Array<any> | Object

export type DeepReadonlyObject<T> = {
  readonly [K in keyof T]: DeepReadonlyObject<T[K]>
}

export type OneLevelReadonly<T extends Readonlyable> = {
  Array: ReadonlyArray<Readonly<T['_type']>>,
  Object: { readonly [K in keyof T]: DeepReadonlyObject<T[K]> }
}[T['_kind']]

export type DeepReadonly<T extends { [key: string]: Readonlyable }> = { readonly [K in keyof T]: OneLevelReadonly<T[K]> }

type T = DeepReadonly<{
  a: {
    b: {
      c: number
      // bar: Foo // this leads to Element implicitly has an 'any' type
      // baz: Array<number> // this leads to Element implicitly has an 'any' type
    }
  },
  d: Array<number>,
  e: Array<{ foo: number }>,
  f: Array<{ foo: number, bar: { bax: number } }>, // this doesn't work, bax is not readonly
  g: Array<{ foo: number, bar: Array<number> }> // this doesn't work, bar is not readonly
  // the previuos 2 cases must be handled with another type definition like in h
  h: Array<Foo>,
  i: Foo
}>

type Foo = DeepReadonly<{ foo: number, bar: Array<number> }>

declare var x: T

x.a.b.c = 2 // ok, error
x.d[0] = 2 // ok, error
x.e[0].foo = 2 // ok, error
x.f[0].foo = 2 // ok, error
x.f[0].bar.bax = 2 // NO error
x.g[0].foo = 2 // ok, error
x.g[0].bar[0] = 2 // NO error
x.i.bar = 2 // ok, error

Would like to add my voice to the request for a deep, recursive readonly. Would be super useful and make immutability very good in TypeScript.

I can currently use this:
export type Freeze<T> = {
	readonly [P in keyof T]: T[P]
}

Which allows me to set each property as readonly:
type Foo = Freeze<{
  one: string
  two: string
}>
var foo: Foo = {one:"one", two:"two"}
foo.one = "ONE" // error

The issue I have with this is type Foo isn't named, and I lose other benefits of using an interface over a type def.
I would like to be able to do something like this:
readonly interface Foo {
  one: string
  two: string
}

It could be a deep readonly, but I would be ok with it being shallow. Ultimately I'm trying to avoid doing this:
interface Foo {
  readonly one: string
  readonly two: string
}

Because if someone adds another property, it may not be clear that Foo is supposed to be treated as an immutable type.

Very nice, @gcanti! I think I was able to extend your example to be closer to working!
declare global {
  interface Array<T> {
    _type: T
    _kind: 'Array'
  }
  interface Object {
    _kind: 'Object'
  }
}

export type Readonlyable = Array<any> | Object

export type OneLevelReadonly<T extends Readonlyable> = {
  Array: ReadonlyArray<DeepReadonly<T['_type']>>,
  Object: DeepReadonly<T>, // This is the key difference between my version and yours.
}[T['_kind']]

export type DeepReadonly<T extends { [key: string]: Readonlyable }> = { readonly [K in keyof T]: OneLevelReadonly<T[K]> }

type T = DeepReadonly<{
  a: {
    b: {
      c: number
      bar: Foo // this leads to Element implicitly has an 'any' type
      baz: Array<number> // this leads to Element implicitly has an 'any' type
    }
    foo: Foo,
  },
  d: Array<number>,
  e: Array<{ foo: number }>,
  f: Array<{ foo: number, bar: { bax: number } }>, // this doesn't work, bax is not readonly
  g: Array<{ foo: number, bar: Array<number> }> // this doesn't work, bar is not readonly
  // the previuos 2 cases must be handled with another type definition like in h
  h: Array<Foo>,
  i: Foo
}>

type Foo = { foo: number, bar: Array<number> };

declare var x: T
// All have type number!
const a = x.a.b.c;
const b = x.a.b.bar.bar[0];
const c = x.a.b.baz[0];
const d = x.a.foo.foo;
const e = x.a.foo.bar[0];

x.a.b.c = 2 // ok, error
x.d[0] = 2 // ok, error
x.e[0].foo = 2 // ok, error
x.f[0].foo = 2 // ok, error
x.f[0].bar.bax = 2 // ok, error
x.g[0].foo = 2 // ok, error
x.g[0].bar[0] = 2 // ok, error
x.i.bar = 2 // ok, error

Note that things will still break if I make Foo a DeepReadonly object. However, with this method, we can at least use DeepReadonly as a replacement for C++ style "const" on functions, since that use case only ever depends on one level of DeepReadonly being available. That's the main way I wanted to use it, so I'm very pleased. Nice trick with the "_type" / "_kind" way to go from Array -> T!

One more go: I think I've ironed out a lot of problems. It now works for primitives, for ES6 Map and Set, and for some pretty complex nested structures. Best of all, all you need to do is export the "Const" type and use it, and type T can be assigned to type Const without issue.
// An attempt at implementing const-correctness in Typescript.

declare global {
  interface Array<T> {_kind: 'array', _t1: T, _t2: never}
  interface Map<K,V> {_kind: 'map', _t1: K, _t2: V}
  interface Object {_kind: 'object', _t1: never, _t2: never}
  interface Set<T> {_kind: 'set', _t1: T}
};

export type Const<T extends Array<any> | Map<any,any> | Object | Set<any>> = {
  array: ConstArray<T & {length: number}>,
  map: ReadonlyMap<Readonly<T['_t1']>,Readonly<T['_t2']>>;
  object: ConstObject<T>,
  set: ReadonlySet<Readonly<T['_t1']>>,
}[T['_kind']];

type ConstArray<T extends ArrayLike<any>> = {
  0: ReadonlyArray<Const<T[0]>>,
  1: {
    0: Readonly<[Const<T[0]>]>,
    1: {
      0: Readonly<[Const<T[0]>,Const<T[1]>]>,
      1: {
        0: Readonly<[Const<T[0]>,Const<T[1]>,Const<T[2]>]>,
        1: Readonly<[Const<T[0]>,Const<T[1]>,Const<T[2]>,Const<T[3]>]>,
      }[TupleHasIndex<T,'3'>]
    }[TupleHasIndex<T,'2'>]
  }[TupleHasIndex<T,'1'>]
}[TupleHasIndex<T,'0'>];

type ConstObject<T extends {[key: string]: any}> =
  {readonly [K in keyof T]: Const<T[K]>};

type TupleHasIndex<A, I extends string> =
  ({[K in keyof A]: '1'} & {[key: string]: '0'})[I];

// Example usages. Note that the only interface you need is Const.
// You can check that things are working correctly by using the Typescript server's
// GetType call on these values. You'll see that they reduce to simple types with
// "readonly" and Readonly[Array|Map|Set] where appropriate.
declare const a: Const<number>;
declare const b: Const<string>;
declare const c: Const<boolean>;
declare const d: Const<Map<number,{a: boolean, b: string}>>;
declare const e: Const<Set<string>>;
declare const x: Const<number[]>;
declare const y: Const<[number, string, boolean, {a: number, b: string}]>;
declare const z: Const<{a: number[], b: {c: string, d: string[]}[]}>;

type MyType = [number[], {a: string, b: boolean}];
const value: MyType = [[1, 2, 3], {a: 'test', b: true}];
const f: Const<MyType> = value;

I'll wrap this up in a library and make it available.

@skishore: interesting, that looks like something that'd be nice for typelevel-ts / typical as well :D, though I hope we could get to an iterative solution not limited to x layers.
Coincidentally, there's been a few attempts at #12424 as well recently.
I think one of the tough parts right now is still how to deal with objects with string/number index types. That is to say, { a: 123 } may work, but it's currently tough to handle both that and { a: 123; [k: string]: number } in the same algorithm... that one requires obtaining its index type (done by accessing o[string]), but that just errors when done on an object without it.
I'd imagined that #6606 would finally allow making a check to confirm whether there is such an index, but in my current PR for that (#17961) found that this isn't actually the case. At this point I have no idea how we might go about tackling that part... which would definitely be more unfortunate if it would recursively cause information loss throughout the object structure.

There's no limitation for the approach above on layers - the only numeric limit is tuple length, which is a pretty standard thing in Typescript definitions that I've seen.
I also haven't seen any problems with mixed index types as you suggest - I just tried one out. Admittedly, there were a few bugs in that initial code listing. I'm ironing those out now as I apply const-correctness to one of my projects.
There is a very serious issue I've found, though. Typescript seems to drop readonly object fields at will when calling a function. This problem is unrelated to the Const type, as you can see here:
type Record = {a: number, b: string};
const test = (record: Record) => void {};
const record: Readonly<Record> = {a: 1, b: 'test'}; /* fields are readonly */
test(record); /* No compile error! */

So...what's the point of making things const-correct if you can accidentally cast it away by calling a function?

Yeah, your approach wouldn't error on input with an index. To my understanding though, the output wouldn't retain them, but rather discard them, while the ideal behavior would be to both retain the indices while making them read-only as well. Edit: apparently { [readonly k: string]: number } yields An index signature parameter cannot have an accessibility modifier. Ouch, that seems... not ideal.
I know @gcanti used definitions of this style (explicitly do each arity), yeah -- I may need to look into how that could be resolved again. I suppose this workaround probably had to do with some occasional constraint issues of the iteration approach, I forgot.
The behavior you mentioned does seem weird...

You want {readonly [k: string]: number}, I think.
The readonly assignment check is a known issue:
https://github.com/Microsoft/TypeScript/issues/13347 The current behavior
(allowing readonly interfaces to be passed as mutable parameters) was by
design to avoid having to propagate readonly everywhere in an existing
codebase. But having const-correctness hold throughout the codebase is the
whole point of const for me. I would consider working on the
"enforceReadonlyAssignment" flag if there was consensus that that would be
a good feature, but without it, I don't see the value in this type
annotation.

declare let a: { readonly [k: string]: number }; // does this work?
a.b = 2; // nope, passes

... yeah, readonly seems to have its share of problems.
That said though, my PR at #17785 may be relevant as a workaround by inferring accurate typings where reasonable (parameters / const), meaning your [1, 2, 3] gets type [1, 2, 3] instead of number[]. The beauty of that is it pretty much disables assigning anything new as well (unless it's the same value).

also struggling with the deep immutability issues.. Would love to see a solution

What am I missing with this:
type DeepReadonly = {
readonly [P in keyof T]:  DeepReadonly<T[P]>;
};
http://tinyurl.com/ydbga82j

@renevaessen:

arrays
tuples
string indices
symbols

Here's a deep readonly that also makes Arrays deeply readonly:Playground.
Let me know if you find any issues with it. Thanks to @tycho01 for some of the utility types.

@niieani: nice one. seems MapObjectWithPossibleArrays is duplicating a bit from RecursiveReadonly, have you tried defining it in terms of that?
also /cc @pelotom

Indeed it seems to work just with:
type MapObjectWithPossibleArrays<T> = {
  readonly [P in keyof T]: RecursiveReadonly<T[P]>
};

I think during development I've had some issues with TS complaining about it, but after a number of refactorings it seems it works now as above.

@niieani
That's some serious type manipulation haha
Does it cover all known test cases so far?

@AlexGalays: the following we can't preserve yet, limitations not of his type but of our set of operators we can use today:

tuples
string indices
symbols

Note that at #12424 they're similarly trying to lift a key based operator to become 'deep', in their case partial/? rather than readonly.

@tycho01 Strange, string indices (or Records) appear to work just fine: They're read-only and the value type you read follows the index declaration.

@AlexGalays: the tough part is ideally we'd wanna preserve explicitly defined indices throughout operations, but I think we don't have a way to check for them.
What we can do is try to access them, but if we do while they weren't there, the type just errors, which we cannot currently 'catch'.

I just want to submit that ideally a solution here could also solve another problem which is one of my biggest gripes with TypeScript: unnecessary type widening. Since readonly fields should not be widened, it seems like literals passed to Object.freeze should not have their types widened:
const o = Object.freeze({ x: 3, y: 'hello' });
// o: { readonly x: number; readonly y: string }
// but would ideally be
// o: { readonly x: 3; readonly y: 'hello' }

In the linked issue I proposed a readonly term operator for this purpose, but it would actually be preferable if it were possible to express a type for Object.freeze that could accomplish this, since then I could give the same type to a function which did nothing but return the original object, eliminating the runtime overhead if all I want is the static check. Thus being able to type Object.freeze such that it inferred the type  { readonly x: 3; readonly y: 'hello' } in the above example would be a strictly more powerful feature.

I think the DeepReadOnly implementation in #21316 should mean this issue is now resolved.
All that seems left is to have it added to lib.d.ts and have the Object.freeze definition adjusted accordingly, though technically they seem outside of what was asked here.

One note: DeepReadOnly implementation in https://github.com/Microsoft/TypeScript/pull/21316 removes function all function properties, but Object.freeze doesn't.

Not sure why function props are singled out in #21316. Perhaps to showcase the usage of NonFunctionPropertyNames<T>? Regardless, unless I'm missing something, this ought do the trick:
type DeepReadonly<T> =
  T extends any[] ? DeepReadonlyArray<T[number]> :
  T extends object ? DeepReadonlyObject<T> :
  T;

interface DeepReadonlyArray<T> extends ReadonlyArray<DeepReadonly<T>> {}

type DeepReadonlyObject<T> = T &
  { readonly [P in keyof T]: DeepReadonly<T[P]> };

Playground.
Note the union in DeepReadonlyObject<T>, it takes care of both regular functions and hybrid interfaces-functions, like this one:
interface A {
  (): string;
  prop: number;
}

Just in case, I don't know TS that well, so there may be side effects.

This can be closed now that the freeze method uses the Readonly and ReadonlyArray generic utility types, I take it?
https://github.com/microsoft/TypeScript/blob/b36c8a06902ca47da1568167991bd0bc28ced80e/src/lib/es5.d.ts#L195-L211

Maybe for the original post, yes, but then I will have to break my follow up post into a separate one for deep read only since that is only one level deep. :)

Yep, should probably close the original issue and open a followup asking for a built-in Utility Type for DeepReadonly.
Since the implementation above and in https://github.com/microsoft/TypeScript/pull/21316#issue-164138025 is written by ahejlsberg, maybe it's not too far away from a the quality for inclusion?
cc @spiffytech

@karlhorky

maybe it's not too far away from the quality for inclusion?

well type recursion is not deemed a supported use of the language so far :/

I propose the issue be closed now. Read-only array types have been around for a year, which means the following works as expected. @DanielRosenwasser @RyanCavanaugh
type DeepReadonly<T> = { readonly [K in keyof T]: DeepReadonly<T[K]> };

type Foo = { a: { b: { c: [ { x: 'y' } ] } } };
const foo: Foo = { a: { b: { c: [ { x: 'y' } ] } } };

type ReadonlyFoo = DeepReadonly<Foo>;

const readonlyFoo: ReadonlyFoo = foo;

// All type errors
readonlyFoo.a = readonlyFoo.a;
readonlyFoo.a.b = readonlyFoo.a.b;
readonlyFoo.a.b.c = readonlyFoo.a.b.c;
readonlyFoo.a.b.c[0] = readonlyFoo.a.b.c[0];
readonlyFoo.a.b.c[0].x = readonlyFoo.a.b.c[0].x;

I'd keep it open, but adjust the issue instead. Given the mention of Object.freeze it's clear that he (and I as well) seek to represent immutability in the type-system, which currently is not supported.

I agree this is effectively solved for the use cases in OP and related posts. New issues welcomed for further scenarios.

See also:

https://github.com/microsoft/TypeScript/issues/30680
https://github.com/microsoft/TypeScript/issues/42862


added memory constraints to jenkins

This is already running on the dev server and there is more available memory now @FB-ping.

Thanks @sweng66 !


Add documentation for "Call to action" component

https://ons-design-system.netlify.app/components/call-to-action/
Linked to #451

Not used in census - needs to be removed


Add three blogs to smallweb.txt

Added:

My own blog: https://kevinlestarge.com/
Seth Godin's blog: https://seths.blog/
The Minimalists' blog: https://www.theminimalists.com/

The two other exist for financial gain, please resubmit


Run CoreCLR tests from CoreRT

Adds a /CoreCLR switch to tests\runtest.cmd which downloads a zip file containing the top 7000 CoreCLR tests and runs 130 of them.
The XUnit test running infrastructure was ported over from the CoreCLR repo with a few changes made to make it play nice in the CoreRT tree.
Included is the Groovy file authoring to run the CoreCLR tests for PRs which is unfortunately not easily testable until it's merged.

@dotnet-bot test ci please


Handle numbers like one twenty two -> 122

Currently it's not able to handle those numbers that are spelled in a spoken way

Just throwing this date example here as it seemed like the closest issue, and a common enough case that others might search for it:
from word2number import w2n
w2n.word_to_num('nineteen ninety six')
1716

Just throwing this date example here as it seemed like the closest issue, and a common enough case that others might search for it:
from word2number import w2n
w2n.word_to_num('nineteen ninety six')
1716


Change logs about add remove node

Coverage remained the same at 33.818% when pulling d31d0c8c3fc81362ea589d2ac7f38c04fd7b4d73 on Starmys:add-remove-node-logs into cce177f664487b13f39b4a14dc9d5bf6bf92322c on microsoft:master.


Add ability to run style checks locally

During making of a pull request I had to hear from CI that I made a error in the order of imports or broke some other prospector rule. Then I had to fix it locally and wait for the CI to complain again about something else.
It would be nice I you could run the style checks before pushing.
Even nicer if errors where fixed automatically.

I tried to write a pre-commit config
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
-   repo: https://github.com/PyCQA/prospector
    rev: 1.3.1
    hooks:
    -   id: prospector
        additional_dependencies: ['pyroma>=2.4']
-   repo: https://github.com/pycqa/isort
    rev: 5.6.3
    hooks:
      - id: isort

Sadly the prospector hook is not behaving correctly. It gives import-errors.

https://github.com/research-software-directory/research-software-directory/blob/1837c040b4e1fb219c38213ab4bb135001c09c6f/docs/documentation-for-developers.md#running-the-superlinter-locally

PR #208 adds pre-commit hooks for both prospector and isort using the configuration like described in the README.dev.rst of that PR.

Can this be closed now that we have githooks for prospector and isort?

@fdiblen will test the hooks and close the issue if they work.

cd $(mktemp -d --tmpdir howfairis.XXXXX)
git clone https://github.com/fair-software/howfairis .
git checkout -b owinefoiwnf
touch test.md
git add test.md
git commit -m "testing precommits"

PR was merged, precommit was tested. Closing


exclude daemonset from fargate nodes if global.fargate

Is this a new chart
No
What this PR does / why we need it:
Adds global.fargate, which will be used as a toggle to indicate whether the bundle is being deployed in an EKS fargate environment.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] Chart Version bumped

can we add as well in this Pr the computeType envVar?


samples: migrate samples from GoogleCloudPlatform/java-docs-samples /bigquery/cloud-client

We already migrated!


Switch from aws-sdk(deprecated) to aws-sdk-resources

aws-sdk-resources is the new standard AWS library
Some older libraries have dependencies on aws-sdk v1. Using aws-sdk-resources allows you to use faraday_middleware-aws-signers-v4 alongside those older libraries.
This would solve https://github.com/winebarrel/faraday_middleware-aws-signers-v4/issues/4

Changes Unknown when pulling a64e0149c4d1d57053a039444ad444623eaade18 on trose89:feature/switch_to_aws_sdk_resources into ** on winebarrel:master**.

Changes Unknown when pulling a64e0149c4d1d57053a039444ad444623eaade18 on trose89:feature/switch_to_aws_sdk_resources into ** on winebarrel:master**.

Changes Unknown when pulling a64e0149c4d1d57053a039444ad444623eaade18 on trose89:feature/switch_to_aws_sdk_resources into ** on winebarrel:master**.

Changes Unknown when pulling a64e0149c4d1d57053a039444ad444623eaade18 on trose89:feature/switch_to_aws_sdk_resources into ** on winebarrel:master**.

Thanks!

v0.1.7 has been released.


Accounting in retrieval

Task
As a first step we want to implement Accounting for retrieval without settlement taking place.

[x] Settle on Accounting interface
[x] Migrate int256 package from swarm if necessary. (do accounting with int64s)
[x] Mock implementation for Accounting that can be used in tests. All functions can be no-ops.
[x] Keep track of balances

[x] Adjust balances in Add
[x] Persist balances (on every update)

[x] Integrate Accounting with retrieval protocol (with a fixed price per chunk and po).

[x] Call Accounting in retrieveChunk
[x] Call Accounting in the handler
[x] Implement suitable fixed pricing strategy
[x] Wrap into a disconnecting error if error in .Add

[x] Expose APIs to query balances

[x] get balance with 1 peer
[x] get all balances with all peers

[x] Expose metrics related to Accounting (probably should be total credited, total debited or something)
[x] Enable accounting by default

[x] Ensure that we actually want to do this
[x] Strategy to deal with non-accounting nodes (=how to avoid imbalance later)
[x] Enable in node.go with high disconnect thresholds (configurable with high default)

A possible Accounting interface could be:
type Interface interface {
	// Reserve reserves a portion of the balance for peer
	Reserve(peer swarm.Address, price uint64) error
	// Release releases reserved funds
	Release(peer swarm.Address, price uint64)
	// Credit the peer with the given price
	Credit(peer swarm.Address, price uint64) error
	// Debit the peer with the given price
	Debit(peer swarm.Address, price uint64) error
}

Acceptance criterea

Accounting takes place on retrieval requests and this can be observed using the APIs or metrics.

Congrats all on successfully finishing this issue.


Thinkpad t14s AMD: amdgpu module?

Would it make sense to import the /common/gpu/amd module in the Thinkpad T14s AMD config?

I guess so. The amd gpu modules was added after the t14s configuration.


Fix: normalizer ensuring type is always present in TransactionParams

Explanation
This PR aims to ensure type is always present in the TransactionParams by matching the old Extension Normalizer.

References

Changelog

@metamask/transaction-controller

FIXED: the type normalizer to use the addHexPrefix and do not set the type as undefined.

Checklist

[ ] I've updated the test suite for new or updated code as appropriate
[ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
[ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate

@metamaskbot publish-preview


Delete commands destroy context

delete commands destroy the gl context causing failure when removing and adding layers to re-create the source.

Also added line to remove 'move' hook #16

I'm not sure this is the right way to handle this. In theory the map and gl references are no longer valid after onRemove (and potentially should be allowed to be garbage collected). These references should be re-added when onAdd gets called again.
So if this is causing errors, the bug is likely somewhere else (i.e. code assuming gl context is running after onRemove has been called).


Edit profile does not redirect after save

If you login and edit your profile (e.g. change name) and then click save you are brought to the HTTP 500 server error page.
Logging out and then back in and returning to the profile page shows that the data was saved, so it's likely just an issue with the redirect afterward.

related to #173

Is fixed by @jollopre fastgettext changes to the registrations_controller line 112:
https://github.com/DigitalCurationCentre/roadmap/commit/c4d4348c1f976530a5f0c1a66eb4309cbbd634a6#diff-416195ddccbd18a6ce41d5306501765aL112

closed by accident. should be confirmed once deployed to a server

Not fixed @briri (see error below). I cannot edit/save profile info. When I log out and back in, nothing is updated.

.

I'm getting same issue. Changes not saved and error displayed.

This error should be fixed by https://github.com/DigitalCurationCentre/roadmap/commit/cb5b0e86e0e1cd4a361d0cd1b2d28b611695a059 and https://github.com/DigitalCurationCentre/roadmap/commit/c2f3e9ce49567251501b22d3d0dcdd69754d26dc

Working as expected


ODM Tools:  Editing in ODM Tools

lindsey[CodePlex] I would like to edit data using ODM Tools; however, I have already made some edits by hand that cannot be made inside of ODM Tools. ODM Tools will only let me derive a new data series to edit from one that has a raw QC level. I would like to edit my dataset
that has already undergone one level of QC editing now using ODM Tools.

kimschreuders[CodePlex] Please correct me if I am wrong, but I belive that the user is requesting the ability to generate new series from non-level 0 series.

horsburgh[CodePlex] I verified that ODM Tools will enable creation of multiple data series for editing from a QC Level 0 data series. I also was able to use the Create Data Series for Editing funcitonality to create a new QCLevel 1 data series from an existing
QCLevel 1 series with a different method description. I think this issue has been addressed.

sreeder[CodePlex] So far I have been Unable to recreate this Error

horsburgh[CodePlex] Need to modify the logic of how ODM Tools is determining whether a Data Series can be edited or not. I think right now it will only let you edit a data series with a QualityControlLevel = 1. The real logic should be that it lets you edit anything but data
series with QualityControlLevel = 0.


Fix ClearCommandTest

Why was this block removed in the first place?

@mattheuslee I thought the constructor will already decide the type when it is instantiated. The EntryBuilder now can cause errors because it has an entry member and also a group of other members (name + tags + startDateAndTime + endDateAndTime) which can result in a different return type from the .build() method.


Feedback: UI :speech_balloon:

Summary of UI issues and smaller changes (based on new UI from #245) which can be posted as comments. For complex improvements please open a separate issue.
UI improvements

[x] improve responsive (mobile) usage
[x] improve darkmode favicon #576
[x] favicon to show pipeline status #576
[x] use textarea for secret values (to support long texts like ssh keys) #574
[x] show PR name / id instead of target branch if ref: refs/pull/xxx/merge
[x] Show matrix options in build view #526
[x] add page /<user-or-group-name> to view all enabled woodpecker repos of a user / group
[ ] #269
[ ] use icons for build proc status (currently just colored points)
[ ] add some explore page (similar to github / gitea), showing a list of public repos (could be home page for not authenticated users instead of login screen)
[ ] improve pagination

UI bugs

[x] #469
[x] fix overflowing commit messages #528
[x] fix back button (direct page load) to go back in history or to some default if history is empty #529
[x] fix new build updates not being used / send (new builds are not added list)
[ ] fix flickering when adding new log-lines while step is running

screenshot in README.md need an update ;)

// The new UI looks great, thanks!
Display the version number or hash somewhere (like next-f00baa for examle before)

The sidebar with the jobs on the right becomes scrollable for long words in commit messages.

Change secret values from input fields to textareas again (or change it dynamically) to allow multi-line values like SSH-Keys again.

From a repo's builds (and also settings), provide a link back to the repository itself. Preferably with the name of the repo itself. Maybe as a breadcrumb navigation? The arrow back button only goes back in history.

https://github.com/woodpecker-ci/woodpecker/pull/526 fixes Show matrix options in build view

// The new UI looks great, thanks! Display the version number or hash somewhere (like next-f00baa for examle before)

I still have that below the logo. Which version do you use? Could you attach a screenshot pls.

I still have that below the logo. Which version do you use? Could you attach a screenshot pls.

Not who you answered to, but here's my Woodpecker on the :latest container tag:

In a project's settings under Registires, the info button links to a 404 in the docs.

https://codeberg.org/Codeberg-CI/feedback/issues/31#issuecomment-284005
.. repo settings -> secret -> if pulls are checked show warning

different icon for different links
this should show a pull icon instead of a commit:

https://github.com/woodpecker-ci/woodpecker/pull/593#issuecomment-991585391

add a label/tag disabled on /repos view for disabled repos

https://github.com/woodpecker-ci/woodpecker/pull/593#issuecomment-991585391

on disabled repos -> repo config -> repo actions: deactivate button should be hidden
on disabled repos -> repo config -> repo actions: add activate button

for live log view: "auto follow" option

show proc errors

Link tags to SCM system. Hide refs/tags/ from tag name.

horizontal scroll-bar for  config view:

Couldn't find something similar in the repository, feel free to hide if this was already addressed:

In WebKit (Safari, GNOME Web, ...) the animated circle indicator is set off from the correct location, doesn't happen in Chromium or Firefox.

if you are in buildView and login, go back to this buildView again

It would be nice if you could see the current build status and maybe last commit and branch on the repos page

Pipelines in branches tab (for example master) also include Pull-requests against master => should not contain PRs

Why are the user overview (#741) and the branches list only available if I'm logged in, even if the repo is public? Is there any reason for this?

I think it is simply missing a parameter in the Vue router config which enforces authentication for the page. I never checked if #741 allows you to see the projects of other users, we have to check that as well.

I checked it, and you can't access them, this makes it understandable why you have to be logged in. However, I'd say it would be nice to see public projects of other users.

multi pipeline: make them able to "colaps" (to hide/show steps, similar to github pull diff view ...)

I’d love to be able to run manual/ad-hoc pipelines from the UI in addition to the wonderful automatic triggers that exist. I would use this feature either for running sysadmin tasks (ansible, bash, etc.)

I believe WCAG compatibility is pretty important, at least AA grade. A lot of proffesianal interfaces developers (web/mobile) might use this CI, it is great! But a lot of us know WCAG requirments wery well (current issues in Woodpecker are notacible by human eye), so when we see Woodpecker's "gray on gray" (see this issue https://github.com/woodpecker-ci/woodpecker/issues/721 ) it is kinda looks like, you know, ummm, a little bit "rookie designer mistake". This is absolutely OK, we all passed these steps, just sharing info how to improve and look more professional.
BTW drone satisfied this requirement (you might notice contrast white on blue an so on), you selected very cool color scheme too, only left to fix contrast of texts a little bit.

Since my comment has been hidden while my idea isn't fixed, I'll just comment again:
I think it would be nice to see public projects of other users on their "profile" list.

I'd like to see this "Avenir" custom font removed and instead a standard system font stack to be used. Benefits are a consistent experience across multiple apps that also use system font stack, as well as faster load times and no flash of wrong fonts.
See here for an example.

This seems like the place to plop UI feedback? I've just started using Woodpecker and I'm sorry to say that the dark mode contrast is atrocious.

Let alone WCAG AAA, this fails WCAG AA standards of accessibility.

I recommend https://accessible-colors.com/ for checking that there's sufficient contrast between foreground and background colours.
Here's what #CCCFD4 looks like:

On a more stylistic note, I don't think the dark borders do the design any favours either. Here's a lighter version:

There are other improvements that can be made, but this would be a good starting point I think :slightly_smiling_face:.

Actually, on this topic, how would the project feel about taking heavy inspiration from Gitea's default theme?

@tecosaur Did you checked next version?

I'm currently running 0.15.3, I might try master in the near future.

@tecosaur please check https://ci.woodpecker-ci.org/woodpecker-ci/woodpecker, I did not check with contrast calculator, but by human eye check it looks much better!

Thanks for that link, I wasn't aware of that! Good to see that it's been improved, though I do think it's only partway there.
For example, here's what I'm currently seeing:

If I just copy some styling from Gitea's default theme:

I find the latter markedly better.

Thanks for that link, I wasn't aware of that! Good to see that it's been improved, though I do think it's only partway there.
For example, here's what I'm currently seeing:

If I just copy some styling from Gitea's default theme:

I find the latter markedly easier to read.

Agree about minimalizm of colors in rows
Also clickable elements should have a separate color (like green repo link), otherwise user would not even know that they are clickable

Woodpecker is already roughly similar to Gitea in design (e.g. the background colour is an exact match). For ease of use and accessibility having a clear design is important, and simply put it's much easier to use an existing project as a reference than coming up with something good from scratch.
I know I've only just started looking at this project, but perhaps a good avenue for initially improving the design/styling would be to take heavy inspiration from Gitea's default theme? In the slightly longer term, it would also be neat for Woodpecker to accept custom themes as Gitea does. That would make it easier to gradually develop a distinct visual identity (should the project want that) in parallel to a well-tested style and then switch it as the default once it's reached a sufficient level of refinement.

Cool, I'll see about doing so then. One quick question, if I want to try playing around with the styling myself is there some main CSS file like https://github.com/go-gitea/gitea/blob/main/web_src/less/themes/theme-arc-green.less that I could try tweaking?

Create design files #1122

Pipelines in branches tab (for example master) also include Pull-requests against master => should not contain PRs

I would say they should, you can target PRs to different branches

Hi, I've recently started using woodpecker. Awesome tool, but imho bad ui (inconsistent spacing and design of ui elements, bad dark mode contrast, etc).
I'd really like to contribute some theme improvements with a PR.
Could someone please give me some pointers on how to setup up a dev environment for this project?

Next Round: https://github.com/woodpecker-ci/woodpecker/issues/1314
open comments will be copied ...

for contrast related stuff ( accessibility ) there is now  #1315


rangeError: not enough data to decode

Operation System
Windows 10
Expected Behavior
No errors
Current Behavior
Was not able to load NFT image because the ipfs link would not load (the nft creator ipfs node was down thus the image was not available), the application left this error (i think the error was caused when the image finally load) i was not present at the time of the error showing up
Steps to Reproduce
Not entirely sure, i have not tried reproducing but i think you will be able to reproduce it like this:

share image using ipfs and create the NFT token
make sure the ipfs url of the image is no longer available
send it to a different wallet
leave the tokel dapp open with the wallet you received the NFT on
bring online the ipfs so the image is able to load

Thanks for the report. This may be a duplicate of #239


Task-lists component.html

Here is a reference to the component.

want to add this element , assign @Rajdip019

Looks good go ahead.


New-IntuneWin32AppPackage : WARNING: This command cannot be run due to the error: %1 is not a valid Win32 application

Hello,
I'm not able to generate a .intunewin file when i using the New-IntuneWin32AppPackage cmdlet.
The message appears : WARNING: This command cannot be run due to the error: %1 is not a valid Win32 application
When i check the function script "Invoke-executable"
$PackageInvocation = Invoke-Executable -FilePath $IntuneWinAppUtilPath -Arguments "-c ""$($SourceFolder)"" -s ""$($SetupFile)"" -o ""$($OutPutFolder)""" # -q
The "Else" return is not the same message
else {
Write-Warning -Message "Unexpect error occurred while packaging Win32 app. Return code from invocation: $($PackageInvocation)"
}
I think the issue come from the Invoke-Executable, because if i run manually  the same command by replacing Invoke-Executable with Start-Process, it works.
Best regards
Steven

Hello,
I found where the issue come from.
The IntuneWinAppUtil.exe downloaded on %LocalAppData%/Temp is corrupted and equal to 0 KB.
I removed it and the script re-download it
Regards
Steven


New notebook 'text/plain' renderers doesn't display line breaks

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.65.0-insider (commit 52e65499654de7525e30df3a8228b69320796bf5)
OS Version: Monterey 12.2

The new text/plain renderer for Notebooks introduced in #142584 (Re #142429) doesn't display line breaks (see attached image). Culprit could be \n within HTML div to represent line breaks in https://github.com/microsoft/vscode/blob/main/extensions/notebook-renderers/src/textHelper.ts instead of < br />? Also breaks for representing long lists.
Thanks for looking into it.
Insiders:

Expected (old renderer in 1.64.2):

+1 same issue, very annoying

@tvaucher @jaymegordo thanks for the quick feedback, it should be fixed in tomorrow's Insiders.

I'm still seeing \n's from repr output. The series output looks better though

Version: 1.65.0-insider (user setup)
Commit: 3112460dc48ce7e557ea9feeaae04b912164b48b
Date: 2022-02-24T05:15:20.989Z
Electron: 16.0.9
Chromium: 96.0.4664.174
Node.js: 16.9.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22000

@amunger this is what you get from jupyter lab too


No Configuration Option

Discussed in https://github.com/petretiandrea/home-assistant-tapo-p100/discussions/291

Originally posted by britaliano December  7, 2022
Hello, odd situation.
I have the integration installed. t detects 2 out of 4 plugs and my one light.
On the integration under HACS, I have no option to configure it. The box for Tapo Controller has no menu (3 dots) so I cannot change any settings or add any new devices.
Any ideas?

Sorry, wasted your time. I did not see you have to add the integration for each and every device.


--conf option

Feature request - could we add a --config/--config-file option so that users can specify their own config files. Use case in case I've missed something obvious:
long_sequence_inference=False
I could not see a user configurable option to turn that on or off when running from command line  (or low_prec).
Alternatively provide options to enable/disable features in the config file from the command line.
Apologies if I've missed something in the documentation.

Sorry for the late reply. We've since added a flag for the long sequence inference mode.


Calculate correct Content-Length on MultiPart Uploads

What is the purpose of this change?
Add the Size of the Boundaries etc to the Content-Length so its a valid value.
Was the change discussed in an issue or in the forum before?
No.
Checklist

[x] I have read the contribution guidelines.
[ ] I have added tests for all changes in this PR if appropriate.
[ ] I have added documentation for the changes if appropriate.

[x] I'm done, this Pull Request is ready for review :-)

I'll close this since it is now part of #3295


Upgrade Packages

Packages are outdated.

Not upgrading @tanstack/react-query because it's not supported by the latest TRPC lib.
Not upgrading @types/node because we are using<EMAIL_ADDRESS>


Question: whatever reference/discussion of the three-term LQR cost function

Among the provided functions there is also the lqr3 function. Its docstring reads:

Calculate the feedback gain of the discrete LQR cost function augmented with control differences.

Could you please direct me to any discussion of this extension in the literature? Or I would be grateful for whatever discussion of this.
It is quite common to penalize the increments of control in the quadratic cost and not the control itself when using MPC, but I have never encountered the three-term version.
Thanks.

I added the function dare3 in order to easily compute the cost-to-go for an MPC controller with a penalty term on control increments. The dare3 function allows the user to specify the cost function by means of and additional matrix that weights the quadratic penalty on control increments, rather than having to manually assemble the cost matrices that would do the same for a model augmented with additional state variables in order to compute control increments in the model. The lqr3 simply returns the associated feedback gain, I use this feedback gain to test the correctness of my implementation of MPC controllers.
dare3 is tested here
https://github.com/JuliaControl/RobustAndOptimalControl.jl/blob/master/test/test_lqg.jl#L394C1-L402C39


out_folder default defintion is not working optimally

The current definition of the variable out_folder is not optimal. Currently this is set by default. However, the way it works depends on the location of the virtual environment.
It would be better if the path to the data folder were specified explicitly and the subsequent paths were then defined starting from the data folder.
This applies in particular to the Python environment, since this is where the data for the simulation is created and stored.

The problem was far easier than i thougt. Actually, i was thinking about redesigning the structure
so that no default values for the out_folder are set anymore and a path to the data folder must be given for each function.
It works fine for me now.

Does this close issue #159?

Yes, definitely. I have added it to the pull request


Best practice for passing a hidden value?

What is the standard way to pass some additional key:value data to your submission handler? I have two forms which use the same submission handler and I want to vary the response slightly based on the form type.  I tried using a hidden input field, but the value was not passed.  I tried using 'initialize' in my render function:
this.props.initialize({
  formType: 'contact'
});

But this broke the form and logged a bunch of warnings to the console:

bundle.js:25662 Warning: setState(...): Cannot update during an existing state transition (such as within render or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to componentWillMount.

For now I'm just wrapping my submission handler in the component and appending to values.

The error you got is because you can't do stuff that changes state in render(), like it says. You could do that in componentWillMount() or componentDidMount() if you wish.
But you have already arrived to the correct solution: wrapping your submission handler to append the values. 👍

@FuzzySockets your solution just sends the values passed to initialize function. Rest fo form Fields are ignored. How are you passing other form fields along with those you included in initialize method?

Sorry I missed the "wrapping your submission handler to append the values" part.  It now works.


Update Checkbox style

Dark theme

Light theme

@matthieuh is this issue still ongoing? Is there work left?


Money Transfer

How can I create payout with safepay in PKR?

carding and loading is an act to be done by legitimate people
need verification on how to get quick cc , PayPal transfers and more ?
have you been looking for a place to buy cc and get legit money TRANSFER services like PayPal,  western union and more ?
visit https://t.me/credit_card_uk

carding and loading is an act to be done by legitimate people
need verification on how to get quick cc , PayPal transfers and more ?
have you been looking for a place to buy cc and get legit money TRANSFER services like PayPal,  western union and more ?
visit https://t.me/credit_card_uk

This website is not opening


Default EVM chains to add to default genesis

Background
Adding starting EVM chains to genesis file.
Done when

[ ] genesis state for EVM module supports adding EVMs to it
[ ] genesis state with starting smart contract info is made
[ ] when Avalanche, Harmony, xDai, Moonbeam, Aurora, Ethereum, Optimism, Arbitrum, Fantom, and Polygon are added to default genesis

This is awesome.

We will upgrade the Vyper contract and then deploy them.


WIP: CloudFlare challenge solver support

This is an attempt to bypass the CloudFlare WAF (web application firewall) using Flaresolverr. This is a potential fix for issues #157, #170 and #172.

The code is not yet stable and not ready to be merged to Master, contributions to make it mergeable are more than welcome :).
How to run this version of the Ulozto Downloader
This version of the Downloader requires an instance of  Flaresolverr running in headful mode on localhost.

Download the Flaresolverr binary from https://github.com/FlareSolverr/FlareSolverr/releases
Start the service:
On Linuxexport HEADLESS=false
./flaresolver

On Windows (cmd.exe)set HEADLESS=false
flaresolver.exe

Note: The recommended way to run Flaresolverr using a Docker container does not seem to be working with Ulozto. You have to download the Flaresolverr binary an run it explicitly in headful mode.
Note: So far I have tested the Flaresolverr service only on Windows. If anyone has a chance to test it, please confirm if it behaves the same on Linux.
Run the Ulozto Downloader from this branch. It will automatically connect use the Flaresolverr service to proxy requests to Ulozto.python3 ulozto-downloader.py -t --parts-progress https://uloz.to/file/qDF5FrZU4GBi/debian-live-11-6-0-amd64-xfce-iso

Major issues remaining to solve

Flaresolverr only seems to be able to resolve the CloudFlare challenge for Ulozto when running in headful mode.
The recommended way to run Flaresolverr is via a Docker container, but both this way and running the executable in a default headless mode causes the challenge solver to time out (the ulozto/cloudflare website is not displaying the challenge until it detects user interaction with the browser). Running the executable with the environment variable HEADLES=false results in Chromium browser windows popping up and the CloudFlare challenges being successfully resolved when the Chromium window is focused on.
To fix this, it will most likely require updates in the Flaresolverr code itself.

Once we get Flaresolverr to be usable in headless mode, an automatic download/update feature shall be implemented in the Ulozto Downloader, so the user does not need to worry about setting up third-party dependencies.

The Flaresolverr binary currently only works on newer versions of Linux (Python 3.11 dependency on GLIBC_2.35). For easy usability of the Downloader we shall find a way to embed it in a way that it will be compatible with everything the Downloader itself is compatible with.

Thank you for your effort. This would be great for fixing ulozto-downloader.
As of point 3 I think it would be best to create Docker image and provide whole package of all apps at once. It's already complicated to get auto captcha working from installing from PIP for some systems. For example I can't get it work on Debian 12 Bookworm because I got "Illegal instruction" error when running ulozto-downloader.

I have been testing this since yesterday, and today I got this error:

The download continues, but it stops processing new parts.
I've never had any error resembling this, so I guess it must be related to this PR.

I have been testing this since yesterday, and today I got this error:

The download continues, but it stops processing new parts.
I've never had any error resembling this, so I guess it must be related to this PR.

This was some leftover code from the previous version. It is fixed in 99178d6.

EDIT: Got it working on my Windows machine. But still affected by #172 even when HEADLESS set to false or true.

Could you perhaps check if there is anything relevant in the Flaresolverr logs? You can also try to set LOG_LEVEL=debug.

I can't see any problem except there is only one POST request to flaresolverr.
C:\Users\user\Downloads\flaresolverr_windows_x64\flaresolverr>flaresolverr.exe
2023-08-18 06:58:34 INFO     ReqId 17268 FlareSolverr 3.3.2
2023-08-18 06:58:34 DEBUG    ReqId 17268 Debug log enabled
2023-08-18 06:58:34 INFO     ReqId 17268 Testing web browser installation...
2023-08-18 06:58:34 INFO     ReqId 17268 Platform: Windows-10-10.0.22621-SP0
2023-08-18 06:58:34 INFO     ReqId 17268 Chrome / Chromium path: C:\Users\user\Downloads\flaresolverr_windows_x64\flaresolverr\chrome\chrome.exe
2023-08-18 06:58:34 INFO     ReqId 17268 Chrome / Chromium major version: 115
2023-08-18 06:58:34 INFO     ReqId 17268 Launching web browser...
2023-08-18 06:58:34 DEBUG    ReqId 17268 Launching web browser...
2023-08-18 06:58:34 DEBUG    ReqId 17268 Started executable: `C:\Users\user\appdata\roaming\undetected_chromedriver\chromedriver.exe` in a child process with pid: 12744
2023-08-18 06:58:35 INFO     ReqId 17268 FlareSolverr User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
2023-08-18 06:58:35 INFO     ReqId 17268 Test successful!
2023-08-18 06:58:35 INFO     ReqId 17268 Serving on http://<IP_ADDRESS>:8191
2023-08-18 06:58:44 INFO     ReqId 24808 Incoming request => POST /v1 body: {'cmd': 'sessions.list'}
2023-08-18 06:58:44 DEBUG    ReqId 24808 Response => POST /v1 body: {'status': 'ok', 'message': '', 'sessions': [], 'startTimestamp':<PHONE_NUMBER>705, 'endTimestamp':<PHONE_NUMBER>705, 'version': '3.3.2'}
2023-08-18 06:58:44 INFO     ReqId 24808 Response in 0.0 s
2023-08-18 06:58:44 INFO     ReqId 24808 <IP_ADDRESS> POST http://<IP_ADDRESS>:8191/v1 200 OK

and ulozto-downloader log
CAPTCHA protected download - CAPTCHA challenges will be displayed
[TOR]   TOR started
[Link solve]    TOR get new CAPTCHA (timeout 30)
[Link solve]    ERROR: Cannot parse CAPTCHA image URL from the page. Changing Tor circuit.
[Link solve]    TOR get new CAPTCHA (timeout 30)
[Link solve]    ERROR: Cannot parse CAPTCHA image URL from the page. Changing Tor circuit.
[Link solve]    TOR get new CAPTCHA (timeout 30)
[Link solve]    ERROR: Cannot parse CAPTCHA image URL from the page. Changing Tor circuit.
[Link solve]    TOR get new CAPTCHA (timeout 30)
[Link solve]    ERROR: Cannot parse CAPTCHA image URL from the page. Changing Tor circuit.
[Link solve]    TOR get new CAPTCHA (timeout 30)
[Link solve]    ERROR: Cannot parse CAPTCHA image URL from the page. Changing Tor circuit.
[Link solve]    TOR get new CAPTCHA (timeout 30)

I can't see any problem except there is only one POST request to flaresolverr.
That is the first request to test whether the service is reachable. For some reason it does not attempt to connect to Flaresolverr any further. This might be due to an unexpected response from the ulozto websire.

What is the file you are downloading and the exact arguments passed to the downloader?

python ulozto-downloader.py --auto-captcha 'https://uloz.to/file/G9lP6ENk8kXZ/rick-a-morty-s05e08-rickternal-friendshine-of-the-spotless-mort-1080p-web-dl-cz-dabing-mkv#!ZGN2ZQR2ZmOwBGRlZwqvZJWvATL2MScLnmt3GIOcoKVjJQZ5At=='
and my Python version is Python 3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32

Could you try to add also --enforce-tor?

Yes. It's working now with this argument.

OK, I'll try to find out what's wrong and fix it over the weekend.

@pkejval everything should be working now without the need to set --enforce-tor in the latest version on 97a8d9b.

Unfortunately still not working for me.
python ulozto-downloader.py --auto-captcha 'https://uloz.to/file/G9lP6ENk8kXZ/rick-a-morty-s05e08-rickternal-friendshine-of-the-spotless-mort-1080p-web-dl-cz-dabing-mkv#!ZGN2ZQR2ZmOwBGRlZwqvZJWvATL2MScLnmt3GIOcoKVjJQZ5At=='
Starting downloading for url 'https://uloz.to/file/G9lP6ENk8kXZ/rick-a-morty-s05e08-rickternal-friendshine-of-the-spotless-mort-1080p-web-dl-cz-dabing-mkv#!ZGN2ZQR2ZmOwBGRlZwqvZJWvATL2MScLnmt3GIOcoKVjJQZ5At=='
Getting info (filename, filesize, …)
Downloading into: './Rick.a.Morty.S05E08.Rickternal.Friendshine.of.the.Spotless.Mort.1080p.WEB-DL.CZ-dabing.mkv'
CAPTCHA protected download - CAPTCHA challenges will be displayed
[TOR]   TOR started
[Link solve]    TOR get new CAPTCHA (timeout 30)
[Link solve]    ERROR: Cannot parse CAPTCHA image URL from the page. Changing Tor circuit.
[Link solve]    TOR get new CAPTCHA (timeout 30)
[Link solve]    ERROR: Cannot parse CAPTCHA image URL from the page. Changing Tor circuit.

and there are no requests for FlareSolverr - just that first POST. With --enforce-tor it is working great.
I think it'll be problem with my network. I'm trying it at work where we're using WPAD for autoconfigure proxy maybe FlareSolverr browser is affected by it. I'll try at home in Windows VM and let you know.

What about using FlareSolverr in Docker? Should it work now? You striked 1 and 2 in Major issues but I can't get it work.
python ulozto-downloader.py --enforce-tor --cf-endpoint 'http://<IP_ADDRESS>:8191/v1' --auto-captcha 'https://uloz.to/file/G9lP6ENk8kXZ/rick-a-morty-s05e08-rickternal-friendshine-of-the-spotless-mort-1080p-web-dl-cz-dabing-mkv#!ZGN2ZQR2ZmOwBGRlZwqvZJWvATL2MScLnmt3GIOcoKVjJQZ5At=='
Starting downloading for url 'https://uloz.to/file/G9lP6ENk8kXZ/rick-a-morty-s05e08-rickternal-friendshine-of-the-spotless-mort-1080p-web-dl-cz-dabing-mkv#!ZGN2ZQR2ZmOwBGRlZwqvZJWvATL2MScLnmt3GIOcoKVjJQZ5At=='
Getting info (filename, filesize, …)
[TOR]   TOR started
Cloudflare WAF detected, initializing automated Cloudflare Solver (timeout 90s).
Cannot download file: Cloudflare solver error: Error: Error solving the challenge. Message: unknown error: net::ERR_PROXY_CONNECTION_FAILED\n  (Session info: chrome=115.0.5790.98)\nStacktrace:\n#0 0x55ea96b7e053 <unknown>\n#1 0x55ea9689b4d8 <unknown>\n#2 0x55ea96898ec8 <unknown>\n#3 0x55ea968848ba <unknown>\n#4 0x55ea96886120 <unknown>\n#5 0x55ea96884c5c <unknown>\n#6 0x55ea96883c59 <unknown>\n#7 0x55ea96883af6 <unknown>\n#8 0x55ea968825bb <unknown>\n#9 0x55ea96882a14 <unknown>\n#10 0x55ea9689e101 <unknown>\n#11 0x55ea9691b49c <unknown>\n#12 0x55ea969032c2 <unknown>\n#13 0x55ea9691af2a <unknown>\n#14 0x55ea96903083 <unknown>\n#15 0x55ea968cdfce <unknown>\n#16 0x55ea968cf362 <unknown>\n#17 0x55ea96b4c786 <unknown>\n#18 0x55ea96b5029d <unknown>\n#19 0x55ea96b4fd36 <unknown>\n#20 0x55ea96b50745 <unknown>\n#21 0x55ea96b56ecb <unknown>\n#22 0x55ea96b50ac6 <unknown>\n#23 0x55ea96b2796d <unknown>\n#24 0x55ea96b6a2c5 <unknown>\n#25 0x55ea96b6a46e <unknown>\n#26 0x55ea96b7802f <unknown>\n#27 0x7f3a423d7ea7 start_thread\n                                                     Terminating download. Please wait for stopping all threads.
Download terminated.

Unfortunately still not working for me.
@pkejval Are you sure you got the latest commit? if so, could you try to add a "print(r.text)" around this line to see what is coming back from Ulozto? https://github.com/setnicka/ulozto-downloader/commit/97a8d9b2475aa93e06fb32cfce8e2ac03a668af6#diff-3f44b382e24d924148e720b5937197e1aaac47aa7a552ae30dc40841f1f395e4L317

For some reason the presence of the Cloudflare challenge is not detected, therefore the downloader never tries to use Flaresolverr. The "detection" is currently done by searching for the pattern "Just a moment..." in the response: https://github.com/setnicka/ulozto-downloader/commit/97a8d9b2475aa93e06fb32cfce8e2ac03a668af6#diff-3f44b382e24d924148e720b5937197e1aaac47aa7a552ae30dc40841f1f395e4R235
Regarding Docker, I'm using it in my Linux environment as well and it works fine now. From you log it seems the container is not able to reach the Tor proxy. The Tor proxy listens on localhost and by default accepts connections from localhost only, thus the container needs to run with the --network host argument set (this is not the same startup command as Flaresolverr recommends) - could you confirm you started it like that?

Yes, git rev-parse --short HEAD shows that I'm at 97a8d9b
Added print(r.text) at page.py line 322 and without --enforce-tor I got this:
<!DOCTYPE html><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"><link href="/cdn-cgi/styles/challenges.css" rel="stylesheet">

Enable JavaScript and cookies to continue

I assembled Docker container containing all required software with FlareSolverr and Chromium. https://github.com/pkejval/uld-docker

@pkejval I managed to reproduce your case and the --enforce-tor should finally not be needed in ef8e7a5.
Also, thanks for the Dockerfile! I don't have a strict opinion on how the application should be distributed, however I believe it should be able to gather and install its dependencies (at least with pip if not itself), so there should be no need for manually installing and starting prerequisites by the user. I'll try to work on that as well eventually.

@filo891 I can confirm it works without --enforce-tor now. Good job! :)

Úžasná práce. Funguje bez problémů.

stala se někomu stejná chyba popřípadě jak ji opravím?

stala se někomu stejná chyba popřípadě jak ji opravím? Edit: zjistil jsem že mam verzi 3.5.0 a tak jsme to aktualizoval na nejnovější ale bohužel stále nefunguje (ukazuje stejnou chybu)
EN: Did anyone encounter the same error, or how can I fix it? Edit: I found out that I have version 3.5.0, so I updated it to the latest one, but unfortunately, it still doesn't work (it shows the same error).

Když píšeš, že jsi to neměl aktualizované, tak mám dojem, že sis ulozto-downloader nestáhl od filo891 odsud https://github.com/filo891/ulozto-downloader/tree/cfsolver-support

stala se někomu stejná chyba popřípadě jak ji opravím? Edit: zjistil jsem že mam verzi 3.5.0 a tak jsme to aktualizoval na nejnovější ale bohužel stále nefunguje (ukazuje stejnou chybu)
EN: Did anyone encounter the same error, or how can I fix it? Edit: I found out that I have version 3.5.0, so I updated it to the latest one, but unfortunately, it still doesn't work (it shows the same error).

Když píšeš, že jsi to neměl aktualizované, tak mám dojem, že sis ulozto-downloader nestáhl odsud https://github.com/filo891/ulozto-downloader/tree/cfsolver-support od filo891.

ne stáhl jsem to zde od setnicka ale zkusím to stáhnout a uvidím.
a funguje to děkuji za pomoc.
Edit: stáhlo se mi to ale při stahovaní se ukázala nějaká chyba podobna co se ukázala  uživatelovy scavy, ale stáhlo se to a vše bylo v pořádku... ještě jednou děkuji za pomoc.

To nebude stejná, tobě tam vyskočil timeout, což by neměl být problém, pokud to pokračuje.

To nebude stejná, tobě tam vyskočil timeout, což by neměl být problém, pokud to pokračuje.

Ano dokončilo se to, děkuji

Je možný nastavit počet částí na více než 20? Na 20 vlákně to zůstane a víc to nedá.

Je možný nastavit počet částí na více než 20? Na 20 vlákně to zůstane a víc to nedá.

ano je to možný přidej příkaz --parts 50

new update!! flaresolverhttps://github.com/FlareSolverr/FlareSolverr/releases/tag/v3.3.4

Oh, very nice work @filo891, thank you.
I have to admit that I haven't had any time for ulozto-downloader during the summer, sorry for that… after all, it is only a hobby project. I am considering @filo891, do you want to get collaborator access to this main repository?
Ad the changes in this pull request: They look good, but needed steps for launching the ulozto-downloader have grown to quite a large guide :-/ Installed Tor, installed Docker, pulling and running image, installing dependencies, …
I am hoping that we may somehow automatize most of these steps.

I can tell how I do it on Windows with Powershell. Just for inspiration.
Install process: (after installing python)
mkdir C:\ulozodl
cd C:\ulozodl
# Download files:
git clone https://github.com/setnicka/ulozto-downloader.git
Invoke-WebRequest https://archive.torproject.org/tor-package-archive/torbrowser/12.5.2/tor-expert-bundle-12.5.2-windows-x86_64.tar.gz -Outfile _tor.tar.gz && tar -xvzf _tor.tar.gz tor/tor.exe && Remove-Item _tor.tar.gz
Invoke-WebRequest https://github.com/FlareSolverr/FlareSolverr/releases/download/v3.3.4/flaresolverr_windows_x64.zip -Outfile _cflare.zip && Expand-Archive -Path _cflare.zip -DestinationPath . && Remove-Item _cflare.zip
# Prepare Python virtual environment
python -m venv .\venv\
# Install requirements for Ulozto-Downloader into the virtual environment.
pip install -r .\ulozto-downloader\requirements.txt

In the above I currently replace the git clone url line with this to test this PR:
git clone -b cfsolver-support --single-branch https://github.com/filo891/ulozto-downloader.git
And then when I want to use it.
I do this:
cd C:\uloztodl
.\venv\Scripts\Activate.ps1
$env:Path += ';C:\uloztodl\tor\'
Start-Process .\flaresolverr\flaresolverr.exe
python ./ulozto-downloader/ulozto-downloader.py -t --parts-progress --parts 40 --log uloztolog.log <url-to-download>

This works very well for me.

Oh, very nice work @filo891, thank you.
I have to admit that I haven't had any time for ulozto-downloader during the summer, sorry for that… after all, it is only a hobby project. I am considering @filo891, do you want to get collaborator access to this main repository?
Ad the changes in this pull request: They look good, but needed steps for launching the ulozto-downloader have grown to quite a large guide :-/ Installed Tor, installed Docker, pulling and running image, installing dependencies, … I am hoping that we may somehow automatize most of these steps.

Well, for most people it isn't such problem because most of them use windows.

@Vojtak42 And your point is? User has to do same steps on Windows as on Linux. As @setnicka pointed out, user needs to install:

Install Python
Download ulozto-downloader from pip with tensorflow
Install Tor
Install and run Flaresolverr

In ideal world it should be all included in one executable file ready to run without installing anything. I think easiest way to do it now is Docker image but it's suitable only for advanced users.

Autodownloading the Flaresolverr binary could be a potential solution (for sure on Windows), but it currently has limited Linux support (Python 3.11, GLIBC_2.35). Dockerizing everything is also an option, but I'd rather do that in a "sibling" project and keep this one for the application only.

Maybe we could offer some install script for Windows (like the example in https://github.com/setnicka/ulozto-downloader/pull/173#issuecomment-1707392768) and Dockerfile for Linux (or even an already built image like in #130 pull request, which I am still considering). I will think about it.

The time I'm able to allocate to this project is also limited, but I'll try to make some progress in the upcoming weeks.

Thank you :+1: I promise that I will try to react more often than during the summer :D

Here is my Dockerfile for inspiration (for webserver, not cmd-line app though): https://github.com/SpiReCZ/ulozto-streamer/blob/3.5.2/Dockerfile
Migrating ulozto-streamer to ULD v3.5.2 from 3.3.1 is OK so far. I hope the interfaces in the project won't change much.

@Vojtak42 And your point is? User has to do same steps on Windows as on Linux. As @setnicka pointed out, user needs to:

Install Python
Download ulozto-downloader from pip with tensorflow
Install Tor
Install and run Flaresolverr

In ideal world it should be all included in one executable file ready to run without installing anything. I think easiest way to do it now is Docker image but it's suitable only for advanced users.

And also this seems like nothing for me after experience with installing anything on termux.

@Vojtak42 And your point is? User has to do same steps on Windows as on Linux. As @setnicka pointed out, user needs to:

Install Python
Download ulozto-downloader from pip with tensorflow
Install Tor
Install and run Flaresolverr

In ideal world it should be all included in one executable file ready to run without installing anything. I think easiest way to do it now is Docker image but it's suitable only for advanced users.

I think being viewer of github project is advanced as it is. From a home server administrator it shouldn't be as hard for those who already found this project :) With detailed guide it could be done even with blindfold :)

but I'd rather do that in a "sibling" project and keep this one for the application only.

This has been done by @pkejval in his repo. However i'm not sure if he's able to keep up with newer versions of the downloader.

The last two commits implement the reuse of the cf_clearance cookie which speeds up the startup of the download threads significantly (back to the original performance before Flaresolverr was introduced).
This way Flaresolverr is invoked only once the first time CloudFlare challenge is detected.
Please test and report any issues.
Inspired from https://github.com/setnicka/ulozto-downloader/issues/157#issuecomment-1730237115 (thanks @vladodriver).

i am getting this error after update C:\Users\Vojta>ulozto-downloader --parts-progress https://uloz.to/file/mRR2Fg2aDeBM/aquaman-2018-1080p-25fps-h264-128kbit-aac-mkv [Autodetect] tensorflow.lite available, using --auto-captcha Starting downloading for url 'https://uloz.to/file/mRR2Fg2aDeBM/aquaman-2018-1080p-25fps-h264-128kbit-aac-mkv' Getting info (filename, filesize, …) Downloading into: './Aquaman (2018) (1080p_25fps_H264-128kbit_AAC).mkv' You are lucky, this is slow direct download without CAPTCHA :) [TOR]   TOR started [Link solve]    TOR get downlink (timeout 30) [Link solve]    Direct download does no seem to work, trying with captcha resolution instead... [Link solve]    TOR get new CAPTCHA (timeout 30) [Link solve]    ERROR: Cannot parse CAPTCHA image URL from the page. Changing Tor circuit. [Link solve]    TOR get new CAPTCHA (timeout 30) [Link solve]    ERROR: Cannot parse CAPTCHA image URL from the page. Changing Tor circuit. [Link solve]    TOR get new CAPTCHA (timeout 30)

I pushed a second commit a few minutes ago (3699624). Is the error coming from this one?

No, it is from a4b3008

Potvrzuji, jedine rozumne reseni na pruchod cf WIP je nyni https://github.com/FlareSolverr/FlareSolverr . Je to funkcni a udrzovane a taky funguje headless (vcetne terminalu bez X nebo wayland - pouziva to Xvfb na Linuxu..)
 Takze by se da ukladat si cf_cloudflare cookie ulozit a pouze pokud vyprsi a objevi se dalsi vyzva, tak spustit opet flaresolver a ziskat novou.

To move this further I'm thinking to implement also a "Manual mode" for solving the CloudFlare Challenge. The user would be presented a browser window, where they could solve the CloudFlare captcha and then the cookie would be extracted and used further in the download process (similar to the manual mode used with the Ulozto captchas). The Flaresolverr interface would then be left as optional for advanced users who require full automation.
I have done a quick test using pywebview, and it does provide the functionality, except I'm not able to bypass the CloudFlare challenge when it's launched with the default arguments (The challenge is displayed in a loop indefinitely). If someone has more experience and can suggest what tweaks are needed for the webview component to be accepted by CloudFlare, I'd be grateful. I can then implement the rest of the functionality.

This pull request is WIP for about 2 months. It would be cool to wrap it up somehow to a minimal functional state and without adding things that could be added later. What everyone needs right now is something that works at least somewhat reliably.

And this already does

?

It works reliably and is in functional state.

Thanks for the feedback. I have polished the README file and removed the "WIP" flag from the pull request.
I agree it works reliable now, although there is still some room for improvements. But it's definitely progress compared to the latest release.
However, I leave the final approval and merging to @setnicka.

It used to work flawlessly but there is some problem with solving CF challenges now as @VasekPurchart mentioned in issue in uld-docker repo.
For some files CF challenge can be obtained for some it didn't.
Log when not working:
2023-11-18 09:28:22 INFO     Incoming request => POST /v1 body: {'maxTimeout': 90000, 'proxy': {'url': 'socks5://<IP_ADDRESS>:9050'}, 'session': 'd0f0eafc-85f4-11ee-a47d-0242ac11000b', 'url': 'https://uloz.to/download-dialog/free/download?fileSlug=TRvOKPgL3CpG', 'cmd': 'request.get'}

2023-11-18 09:28:36 INFO     Challenge not detected!

Pekny den, prosim ktory fork momentalne funguje s rychlejsim stahovanim? Niekto v starych vlaknach doporucil pouzit nizsiu verziu, ale tych vlakien je uz tolko, ze naozaj netusim co funguje. je tu velmi vela vlakien :( Diky za pomoc !  Hello, please which fork or version is currently working ? I am kinda confused which one to choose or how to install eventually after the choice :(

Vzhledem k tomu, že od zítra ulož.to přestane fungovat jako veřejné úložiště, tak asi již nemá cenu řešit která verze či fork aktuálně funguje.  Niekto v starych vlaknach doporucil pouzit nizsiu verziu, ale tych vlakien je uz tolko, ze naozaj netusim co funguje. je tu velmi vela vlakien :( Diky za pomoc ! Hello, please which fork or version is currently working ? I am kinda confused which one to choose or how to install eventually after the choice :(
—
Reply to this email directly, view it on GitHub[https://github.com/setnicka/ulozto-downloader/pull/173#issuecomment-1832057920], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ALOKP46AYJZIJVPQVZJE2K3YG5ERXAVCNFSM6AAAAAA3O4RYVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZSGA2TOOJSGA].
You are receiving this because you were mentioned.
[Sledovací obrázek][https://github.com/notifications/beacon/ALOKP4ZFDLZBLRNRTZIUCTLYG5ERXA5CNFSM6AAAAAA3O4RYVGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTNGL6EA.gif]

@Mikkauser žádný
@pkejval Právě že by dávalo, pokud si chceš něco stáhnout před tím, než to přestane fungovat.

Vzhledem k tomu, že od zítra ulož.to přestane fungovat jako veřejné úložiště, tak asi již nemá cenu řešit která verze či fork aktuálně funguje. Uvidíme v příštích dnech, jak server samotný bude fungovat. 29. 11. 2023 15:58:36 Mikkauser @.***>:
…
Pekny den, prosim ktory fork momentalne funguje s rychlejsim stahovanim? Niekto v starych vlaknach doporucil pouzit nizsiu verziu, ale tych vlakien je uz tolko, ze naozaj netusim co funguje. je tu velmi vela vlakien :( Diky za pomoc ! Hello, please which fork or version is currently working ? I am kinda confused which one to choose or how to install eventually after the choice :( — Reply to this email directly, view it on GitHub[#173 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ALOKP46AYJZIJVPQVZJE2K3YG5ERXAVCNFSM6AAAAAA3O4RYVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZSGA2TOOJSGA]. You are receiving this because you were mentioned. [Sledovací obrázek][https://github.com/notifications/beacon/ALOKP4ZFDLZBLRNRTZIUCTLYG5ERXA5CNFSM6AAAAAA3O4RYVGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTNGL6EA.gif]

Technicky sa sluzba zmeni az od 01.12. to je den navyse :D Vzhladom na pocetnost vlakien clovek nadobudol dojem, ze nejaky fork funguje aspon obmedzene, ze obcas treba vypisat captchu manualne. Alebo obcas trva dlhsie nech sa chytia vlakna, ale ze to nejake funguje na rychle pouzitie.  Je tu aj anglicky pisany dalsi fork od usera filo891. Clovek sa v tom straca. Ma niekto vyskusane komplet vsetky? Vyzera to z dialky, ze vzdy niekto nieco predsa len vykoumal nove a sfunkcnil to.

@Mikkauser žádný, když budeš mít štěstí, tak se možná na pár vláken dostaneš. @pkejval Právě že by dávalo, pokud si chceš něco stáhnout před tím, než to přestane fungovat.

skusal si vsetky prosim? Niektore nove forky su popisane uz dost technicky do hlbky, supercookie a podobne. Nefunguje vobec nic z tych forkov? Ani s opisovanim captchy prosim? Vdaka!

Ten od filo891 je nejnovější. S captchou už to nemá nic společného, to asi byly starší vlákna, teď je problém, že uložto blokuje připojení skrze Tor.

Ja použíma gDebrid. Je to discord server a cez ich nejaký bypass vieš instantne stiahnut gigabajty z uložta. Samozrejme je tam písané že to dokáže handlovať len 3gb/24h ale z mojej osobnej skúsenosti je to určite viac

Určitě zkusím, já znal jen do 500MB, ale problém je, že já bych potřeboval minimalne tak 20GB.


Errors with Pasink in Kodi

Hi:
I've been trying to use your addon with Kodi 18.3 on an ubuntu 19.04 based stick computer with bluetooth connection (I think it is a broadcom). The strange thing is that I have another computer with more or less the same configuration, and there it works like a charm. It is an Intel core i3 with an atheros bluetooth device, whereas the computer where the plugin is failing is an Intel atom stick PC.
When I run pasink -l, I get the following output:
awk: line 1: syntax error at or near ,
awk: line 1: syntax error at or near ,
awk: line 1: syntax error at or near ,
Default sink:
awk: line 11: syntax error at or near ,
awk: line 16: syntax error at or near ,
awk: line 20: syntax error at or near ,
awk: line 24: syntax error at or near ,
awk: line 30: syntax error at or near ,
Plugged Alsa card devices:
awk: line 11: syntax error at or near ,
awk: line 16: syntax error at or near ,
awk: line 20: syntax error at or near ,
awk: line 24: syntax error at or near ,
awk: line 30: syntax error at or near ,
Sinked Bluetooth A2DP device:
awk: line 11: syntax error at or near ,
awk: line 16: syntax error at or near ,
awk: line 20: syntax error at or near ,
awk: line 24: syntax error at or near ,
awk: line 30: syntax error at or near ,
Paired Bluetooth A2DP devices:
Volume:
awk: line 1: syntax error at or near ,
awk: line 11: syntax error at or near ,
awk: line 16: syntax error at or near ,
awk: line 20: syntax error at or near ,
awk: line 24: syntax error at or near ,
awk: line 30: syntax error at or near ,
bluez is installed, I installed expect as well.
Please, help.
Thanks.

OK, I solved the problem. I had to install gawk, which is necessary for pasink to work properly. there was another awk program that seemed to behave differently and didn't provide the information needed by pasink.
Thanks, anyway.

Correct, it was my first thought that gawk was not installed.

I have updated the hints according pre-conditions.


Reduce class file generation (#317)

Replaces per-field closures with an Accessor function class instantiated for each field.

:+1:

Apologize for commenting in the wrong place :) but this seem mostly fine once those comments are addressed.

Tested on the cluster, seems to be working.


Error: misaligned address

I compiled the BitCrack in CUDA 10.1 with Ubuntu 18.04 without errors. GPU is a Tesla T4
I used the first example to test the compiling:
./cuBitCrack 1FshYsUh3mqgsG29XpZ23eLjWV8Ur3VwH
After the 'Done' message the System tells me:
Error: misaligned address
Any suggestions why this happened?

Go back to the previous graphic driver (452.06)...uninstall video driver , download 452.06 driver and install it...

Go back to the previous graphic driver (452.06)...uninstall video driver , download 452.06 driver and install it...

How can I send you a private message?

I've used djarumlights fork to compile on Ubuntu 20.04, I had to correct a couple of things but seems to compile without errors, except that only addrgen is under bin, it's also not clear from the makefile where cubitcrack should go or if it has another name in the Makefile


Include note about socket length when Unix socket fails to bind

This is a follow-on to https://github.com/GoogleCloudPlatform/cloudsql-proxy/issues/747 and a slight alternative to https://github.com/GoogleCloudPlatform/cloudsql-proxy/pull/960. When a Unix socket returns bind: invalid argument, we should include a note in the error message to check maximum socket length as a possible cause.

Strict double-checking around the length must be enforced.
Follows the official reference in Linux including why cannot be more than 108 chars.
https://github.com/torvalds/linux/blob/master/net/unix/af_unix.c#L291-L302


Google talk xmpp JID to email

Is there any way to get gmail email address from JID? thx

Google XMPP JID is the same as email address
var jid = new<EMAIL_ADDRESS>

In your login credentials it is, but in stanza I got only<EMAIL_ADDRESS>

@amirmamaghani oh, I see what you mean no idea sorry
I think it is a feature to hide emails so I'd say no but it's worth looking for, let us know if you find out.

til now I find out that this is because of google's privacy settings but there has to be some way to
http://julipedia.meroh.net/2012/07/getting-rid-of-publictalkgooglecom.html