text:
feat: Improve reaction, metabolite, and gene annotations

Description of the issue:
Human-GEM reactions, metabolites, and genes are associated to many external identifiers from databases such as KEGG, BiGG, ChEBI, and MetaNetX. However, many associations are outdated or missing. It would be great to not only update old IDs, add missing IDs, and correct any erroneous IDs, but to do so in an automated manner such that we can simply re-run the pipeline again in the future to ensure that the IDs remain current.
Expected feature/value/output:
An automated or semi-automated pipeline/script that updates old/missing/incorrect reaction, metabolite, and gene identifiers present in the reactions.tsv, metabolites.tsv, and genes.tsv annotation files. It may be beneficial to develop this in python so it can be implemented as a GitHub action.
Current feature/value/output:
Many model components are missing annotation information and/or may have outdated or incorrect annotation information.
I hereby confirm that I have:

[X] Checked that a similar issue does not exist already

This is certainly an important issue.
However, it appears that there is no readily acceesbile pipeline(s) that are tuned for GEM curation. We thus welcome the contributions and collaborations from, as well as serve for, the research community toward such a (semi-)automated pipeline.

This is certainly an important issue.
However, it appears that there is no readily acceesbile pipeline(s) that are tuned for GEM curation. We thus welcome the contributions and collaborations from, as well as serve for, the research community toward such a (semi-)automated pipeline.

update old IDs, add missing IDs, and correct any erroneous IDs

Intuitively, these look like different problems requiring independent solutions. Based on how the curation progress so far, it would look to me like adding missing IDs has do be done manually. A script (GH Action) could be set up to cross-reference IDs to highlight the erroneous ones, but resolving the conflicts manually might be more straightforward, at least in the near future.

re-run the pipeline again in the future to ensure that the IDs remain current

Once there is an ID that gets outdated perhaps a new one can be provided by the reference database.

update old IDs, add missing IDs, and correct any erroneous IDs

Intuitively, these look like different problems requiring independent solutions. Based on how the curation progress so far, it would look to me like adding missing IDs has do be done manually. A script (GH Action) could be set up to cross-reference IDs to highlight the erroneous ones, but resolving the conflicts manually might be more straightforward, at least in the near future.

re-run the pipeline again in the future to ensure that the IDs remain current

Once there is an ID that gets outdated perhaps a new one can be provided by the reference database.

Hello. Don't know if this is the right way to do this, but since in this thread is about annotations, both m01778c (elaidate) and m02646c (oleic acid, oleate) share the same pubchem.compound ID (445639), whereas m01778c should be 5461071 and m02646c should be 445639. If it is necessary to open a new thread, I'll do it. I'd be a good idea to open an issue where people could report this kind of issues when dectected, and be integrated into the pipeline.
Best regards

@jorgemlferreira please open an issue for this, and very welcome for the contribution!

I'll do it, thanks and keep up the good work!

In order to improve the annotations, Hao and I have mapped Human-GEM reactions to Rhea. The mapping was done using 2 methods:

Using UniProt. Only the reactions with a single Ensembl gene ID  associated to only one UniProt ID were considered. From that list of UniProt only entries having a single catalytic site reaction were selected. The Rhea ID provided by UniProt was then mapped to MetaNetX (4.1) xref file. There is association if the MNX ID retrieved is identical to the MNX stored in the reactions.tsv annotation file.
Using the equation. All the reaction from Rhea that are not undirected (i.e. the equation with the '=' sign where excluded) were mapped to the reaction equation of Human-GEM by comparing the metabolite names, the stoichiometry and the equation sign (<=, =>, <=>). Only perfect hits were retained. In Order to improve the mapping a few metabolite synonyms, manually verified were added considered by algorithm, see attached file.
met_synonyms.txt

The IDs mapped and the corresponding reaction equations are described here
Only 570 Rhea IDs could be added, but the aim was to avoid False positive hits.

@pecholleyc nice addition to reaction annotation. The provided equation comparison looks promising and enables easy reviewing. Excellent work!
Some comments:

Rhea is a reliable curated source and with built-in UniProt links. Though it always assign reaction with 4 directions: a master one in undefined direction and three others (<=, =>, <=>). So the mapping to Rhea is actually an association to a group 4 reactions, while the members often are mapped to different databases (e.g. one to KEGG, another to Reactome) via master id. Then it might be good also include another column rxnRheaMasterID, through which the advantage of Rhea can thus be fully utilised, toward a more comprehensive coverage in annotation.
Please also include met_synonyms.txt to this branch but in tsv format. It hosts useful information of met names mapping, which seems to be something we should start to build up.

Expected feature/value/output:
An automated or semi-automated pipeline/script that updates old/missing/incorrect reaction, metabolite, and gene identifiers present in the reactions.tsv, metabolites.tsv, and genes.tsv annotation files. It may be beneficial to develop this in python so it can be implemented as a GitHub action.

@pecholleyc if there code to share as well that would be great.

Regarding MetaNetX, know that since version 4.0 there is a dataset with deprecated MetaNetX IDs and their replacement (e.g. chem_depr.tsv):
#deprecated_ID	ID		version
MNXM1000	MNXM8962	3.*

while the xref dataset (e.g. [chem_xref.tsv](https://www.metanetx.org/cgi-bin/mnxget/mnxref/chem_xref.tsv)) now contains entries in the description column stating "secondary/obsolete/fantasy identifier", for instance as:
biggR:EX_sel_e		MNXR104327	Selenate exchange||1 biggM:sel@BOUNDARY = 1 biggM:sel@biggC:e
biggR:R_EX_sel_e	MNXR104327	secondary/obsolete/fantasy identifier

@Hao, good suggestions, I have added this information in the branch. Note that for Rhea IDs mapped using only the UniProt strategy rnxRheaID = rxnRheaMasterID.
@mihai-sysbio, unfortunately there is no working pipeline yet to close this issue, but we aim for that direction. I will put the 'pipeline' (it is more a collections of python scripts) in the Sandbox repository in the following days. Maybe it can be then used as precursor to build the pipeline. Actually I think it would be beneficial to discuss the content of this pipeline in details.
@edkerk Indeed, the secondary/obsolete/fantasy identifiers were discarded when parsing the xref file. But I understand that relying on MNX IDs to map back Reaction ID in human-GEM is a weak point in the algorithm. External databases might bring invalid information/mapping so I would imagine the pipeline to cross-validate each current or new Identifiers with the existing ones. And I would also imagine the pipeline would store a list of manually curated IDs that would resolve any contradictions between the databases.

@pecholleyc look forward to the PR

A few PRs have been merged since the last comment - what is the status of this issue?

A few PRs have been merged since the last comment - what is the status of this issue?

my view is this is an ongoing process still.

Indeed, but I don't see immediate actionable points. Perhaps it's time to turn this into a discussion?

agree!

Closing this issue now. The discussion should continue under https://github.com/SysBioChalmers/Human-GEM/discussions/253, or maybe a new thread.

authors: Hao-Chalmers JonathanRob edkerk jorgemlferreira mihai-sysbio pecholleyc

repo: SysBioChalmers/Human-GEM


text:
Bot can't tell if a prop is explosive

A bot will shoot a explosive prop if it was Bumping into the explosive prop, that could kill itself

This might not be too hard to fix, I think there is a flag in the engine that marks a prop as explosive. If I could find that flag or variable. I can stop the bot from marking them as breakable objects.

I have been looking for a way to make this dynamic and it's not looking real good right now.... I have been looking into the 2013 Source SDK and I have yet to find a way on how to check if a prop is explosive or not based on the model alone. I did figure out that the data is stored on the model itself, I just need to see if I can grab that data is its even accessible in Lua.

Found some code in the 2013 Source SDK that might help:
https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/shared/props_shared.cpp#L263-L419
//-----------------------------------------------------------------------------
// Purpose: Parse a keyvalues section into the prop
//
//			pInteractionSection is a bit of jiggery-pokery to get around the unfortunate
//			fact that the interaction KV sections ("physgun_interactions", "fire_interactions", etc)
//			are OUTSIDE the "prop_data" KV section in the model, but may be contained WITHIN the
//			specified Base's "prop_data" section (i.e. in propdata.txt)
//-----------------------------------------------------------------------------
int CPropData::ParsePropFromKV( CBaseEntity *pProp, KeyValues *pSection, KeyValues *pInteractionSection )
{
	IBreakableWithPropData *pBreakableInterface = dynamic_cast<IBreakableWithPropData*>(pProp);
	if ( !pBreakableInterface )
		return PARSE_FAILED_BAD_DATA;

	if ( !pBreakableInterface )
		return PARSE_FAILED_BAD_DATA;

	int iBaseResult = PARSE_SUCCEEDED;

	// Do we have a base?
	char const *pszBase = pSection->GetString( "base" );
	if ( pszBase && pszBase[0] )
	{
		iBaseResult = ParsePropFromBase( pProp, pszBase );
		if ( (iBaseResult != PARSE_SUCCEEDED) && (iBaseResult != PARSE_SUCCEEDED_ALLOWED_STATIC) )
			return iBaseResult;
	}

	// Allow overriding of Block LOS
	int iBlockLOS = pSection->GetFloat( "blockLOS", -1 );
	if ( iBlockLOS != -1 )
	{
		pBreakableInterface->SetPropDataBlocksLOS( iBlockLOS != 0 );
	}

	// Set whether AI can walk on this prop
	int iIsWalkable = pSection->GetFloat( "AIWalkable", -1 );
	if ( iIsWalkable != -1 )
	{
		pBreakableInterface->SetPropDataIsAIWalkable( iIsWalkable != 0 );
	}

	// Set custom damage table
	const char *pszTableName;
	if ( pBreakableInterface->GetPhysicsDamageTable() == NULL_STRING )
	{
		pszTableName = pSection->GetString( "damage_table", NULL );
	}
	else
	{
		pszTableName = pSection->GetString( "damage_table", STRING(pBreakableInterface->GetPhysicsDamageTable()) );
	}
	if ( pszTableName && pszTableName[0] )
	{
		pBreakableInterface->SetPhysicsDamageTable( AllocPooledString( pszTableName ) );
	}
	else
	{
		pBreakableInterface->SetPhysicsDamageTable( NULL_STRING );
	}

	// Get multiplayer physics mode if not set by map
	pBreakableInterface->SetPhysicsMode( pSection->GetInt( "physicsmode",
		pBreakableInterface->GetPhysicsMode() ) );

	const char *multiplayer_break = pSection->GetString( "multiplayer_break", NULL );
	if ( multiplayer_break )
	{
		mp_break_t mode = MULTIPLAYER_BREAK_DEFAULT;
		if ( FStrEq( multiplayer_break, "server" ) )
		{
			mode = MULTIPLAYER_BREAK_SERVERSIDE;
		}
		else if ( FStrEq( multiplayer_break, "client" ) )
		{
			mode = MULTIPLAYER_BREAK_CLIENTSIDE;
		}
		else if ( FStrEq( multiplayer_break, "both" ) )
		{
			mode = MULTIPLAYER_BREAK_BOTH;
		}
		pBreakableInterface->SetMultiplayerBreakMode( mode );
	}

	// Get damage modifiers, but only if they're specified, because our base may have already overridden them.
	pBreakableInterface->SetDmgModBullet( pSection->GetFloat( "dmg.bullets", pBreakableInterface->GetDmgModBullet() ) );
	pBreakableInterface->SetDmgModClub( pSection->GetFloat( "dmg.club", pBreakableInterface->GetDmgModClub() ) );
	pBreakableInterface->SetDmgModExplosive( pSection->GetFloat( "dmg.explosive", pBreakableInterface->GetDmgModExplosive() ) );

	// Get the health (unless this is an override prop)
	if ( !FClassnameIs( pProp, "prop_physics_override" ) && !FClassnameIs( pProp, "prop_dynamic_override" ) )
	{
		pProp->SetHealth( pSection->GetInt( "health", pProp->GetHealth() ) );

		// Explosive?
		pBreakableInterface->SetExplosiveDamage( pSection->GetFloat( "explosive_damage", pBreakableInterface->GetExplosiveDamage() ) );
		pBreakableInterface->SetExplosiveRadius( pSection->GetFloat( "explosive_radius", pBreakableInterface->GetExplosiveRadius() ) );

#ifdef GAME_DLL
		// If we now have health, we're not allowed to ignore physics damage
		if ( pProp->GetHealth() )
		{
			pProp->RemoveSpawnFlags( SF_PHYSPROP_DONT_TAKE_PHYSICS_DAMAGE );
		}
#endif
	}

	const char *pszBreakableModel;
	if ( pBreakableInterface->GetBreakableModel() == NULL_STRING )
	{
		pszBreakableModel = pSection->GetString( "breakable_model", NULL );
	}
	else
	{
		pszBreakableModel = pSection->GetString( "breakable_model", STRING(pBreakableInterface->GetBreakableModel()) );
	}
	if ( pszBreakableModel && pszBreakableModel[0] )
	{
		pBreakableInterface->SetBreakableModel( AllocPooledString( pszBreakableModel ) );
	}
	else
	{
		pBreakableInterface->SetBreakableModel( NULL_STRING );
	}
	pBreakableInterface->SetBreakableSkin( pSection->GetInt( "breakable_skin", pBreakableInterface->GetBreakableSkin() ) );
	pBreakableInterface->SetBreakableCount( pSection->GetInt( "breakable_count", pBreakableInterface->GetBreakableCount() ) );

	// Calculate the maximum size of the breakables this breakable will produce
	Vector vecSize = pProp->CollisionProp()->OBBSize();
	// Throw away the smallest coord
	int iSmallest = SmallestAxis(vecSize);
	vecSize[iSmallest] = 1;
	float flVolume = vecSize.x * vecSize.y * vecSize.z;
	int iMaxSize = floor( flVolume / (32.0*32.0) );
	pBreakableInterface->SetMaxBreakableSize( iMaxSize );

	// Now parse our interactions
	for ( int i = 0; i < PROPINTER_NUM_INTERACTIONS; i++ )
	{
		// If we hit this assert, we have too many interactions for our current storage solution to handle
		Assert( i < 32 );

		propdata_interaction_s *pInteraction = &sPropdataInteractionSections[i];

		KeyValues *pkvCurrentInter = pInteractionSection->FindKey( pInteraction->pszSectionName );
		if ( pkvCurrentInter )
		{
			char const *pszInterBase = pkvCurrentInter->GetString( pInteraction->pszKeyName );
			if ( pszInterBase && pszInterBase[0] && !stricmp( pszInterBase, pInteraction->pszValue ) )
			{
				pBreakableInterface->SetInteraction( (propdata_interactions_t)i );
			}
		}
	}

	// If the base said we're allowed to be static, return that
	if ( iBaseResult == PARSE_SUCCEEDED_ALLOWED_STATIC )
		return PARSE_SUCCEEDED_ALLOWED_STATIC;

	// Otherwise, see if our propdata says we are allowed to be static
	if ( pSection->GetInt( "allowstatic", 0 ) )
		return PARSE_SUCCEEDED_ALLOWED_STATIC;

	return PARSE_SUCCEEDED;
}

I also found this which might help as well. I wonder if the internal variables are still on the entity. If that's true, then I could easily fix this issue. I need to do more testing first.
https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/props.h#L123-L126
// IBreakableWithPropData
	void			SetDmgModBullet( float flDmgMod ) { m_flDmgModBullet = flDmgMod; }
	void			SetDmgModClub( float flDmgMod ) { m_flDmgModClub = flDmgMod; }
	void			SetDmgModExplosive( float flDmgMod ) { m_flDmgModExplosive = flDmgMod; }
	float			GetDmgModBullet( void ) { return m_flDmgModBullet; }
	float			GetDmgModClub( void ) { return m_flDmgModClub; }
	float			GetDmgModExplosive( void ) { return m_flDmgModExplosive; }
	void			SetExplosiveRadius( float flRadius ) { m_explodeRadius = flRadius; }
	void			SetExplosiveDamage( float flDamage ) { m_explodeDamage = flDamage; }
	float			GetExplosiveRadius( void ) { return m_explodeRadius; }
	float			GetExplosiveDamage( void ) { return m_explodeDamage; }

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
How to use template-level subscriptions?

According to the docs, subscriptions have to be defined by using TAPi18n.subscribe(). But how does that match to template-level subscriptions, which have to be defined on the template via this.subscribe() in an onCreated() method?
PS: Is this repo still maintained? There are a lot of very old issues here without any replies.

I haven't really tried this package. Did you find out how to use it with template subs or iron:router subs or reywood:publish-composite  package with   tap-i18n-db? I think you could do the same functionality without needing this package. Custom subscriptions with session var as selected language to pull fields depending on that language. e.g. french selected and pass that var in subscription and publish only french fields. What do you think?

@zayaisshawn I gave up with this package, as I never got any reply. Seems to be a dead package.

Yeah. I like to come up with my own solutions sometimes when there is no package that is actively maintained. For production apps you might want to avoid these kind of plugins.

On the Meteor forums, SkinnyGeed1010 mentioned once, that he does only use a handful of packages because of that. But this is not really an option to me, since I do not want to code everything myself...

I just made this code for template-level subscriptions, it seems to correctly kill the subscription when the template is destroyed and also works with Template.instance().subscriptionsReady():
Just call TAPi18n.templateLevelSubscribe(this, "yourPublicationName"); from within your Template.xyz.onCreated() / onRendered() functions..
TAPi18n.templateLevelSubscribe = function(tmpl, publicationName) {
    let i18nHandle = TAPi18n.subscribe(publicationName);
    let sub = i18nHandle._getSubscription();
    tmpl._subscriptionHandles[sub.subscriptionId] = i18nHandle;

    if (tmpl._allSubsReady) {
        tmpl._allSubsReadyDep.changed();
    }

    tmpl.view.onViewDestroyed(function() {
        i18nHandle.stop();
    });

    return i18nHandle;
};

I'd make a pull request but it seems like @theosp isn't working on the package any more so for now I won't bother...

Thanks for this code!

@ephemer While we are waiting could you make a PR request to @phowat's working fork?
https://github.com/phowat/tap-i18n-db

Hi guys,
@ephemer send a PR I'll pull it, but please also update the README as well with the new API.
Since these days I am not using tap:i18n-db in the projects I am actively working on, I have difficulty to find the time to evaluate PRs. So I need to see PRs approved by others to pull them without risking introducing bugs or breaking backward compatibility - which are my two chief concerns as maintainer.
As this case got approved by others as well as #20 I'll prepare a v0.5.0 with the two of them - as soon as you'll PR.
Thanks,
-Daniel

authors: Szayet derwaldgeist ephemer theosp zayaisshawn

license: mit

license_source: bigquery


text:
fix: update comment and use better error matching scheme

applying feedback from: https://github.com/TBD54566975/ftl/pull/2019

@jonathanj-square is this one good to merge in?

source: gharchive/pull-request

authors: jonathanj-square wesbillman


text:
消息过长, 建议拆分

比如 bot 回答一个超长回复, 由于 tg 的限制, 消息会被截断. 建议对消息进行拆分回复, 比如:
async function sendMessageToTelegram(message, token, context) {
  // 每1000字符进行拆分
  if (message.length > 1000) {
    let msgArray = message.match(/.{1,1000}/g);
    for (let msg of msgArray) {
      await sendMessageToTelegram(msg, token, context)
    }
    return;
  }
  return await fetch(`https://api.telegram.org/bot${token || TELEGRAM_TOKEN}/sendMessage`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      ...(context || CURRENR_CHAT_CONTEXT),
      text: message,
    }),
  });
}

上面仅是测试代码, 没有考虑到由于切分字符导致 markdown 样式变化.

感谢反馈，我看看AI能给我一个分隔markdown的好方法不 😂

authors: FaiChou TBXark

repo: TBXark/ChatGPT-Telegram-Workers

license: MIT


text:
[BUG] Radio button crashes on all browsers except firefox

Take a moment to review - is it really a bug? Or is it more of an enhancement or a typo in the documentation? A Bug is code that is broken, or when you try to implement a certain piece of code that is mentioned in the documentation, you have a result that is not the same as described.
Now if you are absolutely sure it is indeed a bug, please fill in the following template.

Mention what part of the design system the bug is related to
This bug is related to a Component, specifically form inputs.
More context in relation to the design system
The bug occurs when hovering over radio or checkbox input elements, affecting Chrome's layout or functionality.
Describe the bug
When hovering over radio or checkbox input elements, the page crashes in Chrome. This issue does not occur in Firefox, which suggests it may be browser-specific. The page remains functional in Firefox, but Chrome causes a crash when interacting with these elements.
To Reproduce
Steps to reproduce the behavior:

Open the below URL in Chrome.
https://designsystem.gov.ae/guidelines/actions
Hover over any radio or checkbox input element.
Observe that the page crashes immediately after hovering.

Expected behaviour
The page should remain functional, and the radio or checkbox input elements should respond normally to hover actions without causing a crash.
Screenshots
I have a video recorded but can't upload it because of its size

Hello @Sa7aR-Kassem
Most likely, this is not a bug with the design system, but rather the page for Action and input guidelines.
Are you facing the same issue on https://designsystem.gov.ae/docs/components/radio ?
If not, it means the component is not the issue, but rather the website may have a problem or a conflicting script. Therefore, this is not a bug on the design system itself.

Hello @moiz-conceptlz,
After investigating, I found that Chromium has rendering limitations when handling many <input type="radio"> elements, such as on the Polls page. This can result in memory allocation issues, particularly when combined with heavy CSS or JavaScript.
To resolve this, I disabled the hover effects (transform and transition), and the issue was fixed. Below is the code I applied:
input[type="radio"] {     box-shadow: none !important;     transition: none !important;     &:hover {         &::before {             content: none !important;             transform: none !important;         }     } }
Could you please confirm if this approach is acceptable according to the DLS (Design Language System)? For consistency, I am considering disabling the hover effect for all input elements across the portal. Alternatively, if you have any suggestions for a better solution, I’d appreciate your feedback.

This is pending an investigation - and also to confirm if such an issue would arise on a page using no dependent JS library.

repo: TDRA-ae/aegov-dls


text:
dont' use this package

signup not working how to get trial license key.after contact techinical support register link dolby.io fuck

Hi @this-sunil ,
Sorry to hear that you had difficulties getting a trial license. We are actively working on this problem to enable developers to get a license key without the need to log into the portal or contact support.
Without a license key you can still play sources hosted on cdn.theoplayer.com.
You can get demo stream urls from https://www.theoplayer.com/theoplayer-demo-overview by calling player.source in Javascipt console on any of our demo pages.
Could you please send us an e-mail to support@theoplayer.com (or directly to me: daniel.dallos@theoplayer.com) and we will get back to you as soon as possible (at the latest next week)?
Thank you and sorry for the inconvenience!
Daniel

authors: Danesz this-sunil

repo: THEOplayer/flutter-theoplayer-sdk


text:
Use CodeGeeX with standard HuggingFace Transformers API

Is there a plan to support loading the model using standard HF API and run inference?

Hi! Thanks for the great work, I hope to see CodeGeeX on huggingface soon.

mark

authors: lihaoyang-ruc wangyang135 zijwang

repo: THUDM/CodeGeeX


text:
feat(new-student): new page and landing box

Description
Comments/issues/screenshots:
Todo: skjul etter dato
closes #85
Pull request checklist
Please check if your PR fulfills the following requirements:

[x] The PR includes a closes #issueID
[ ] The PR includes a picture showing visual changes

Boii dette ser sykt bra ut. En tanke til forsiden. Hadde det vært en ide å bytte ut det første elementet (det over bølgene) med ny student kort innholdet. Som en ny student er det litt forvirrende hvis det første de blir møtt med er en login knapp 😊 hva tenker du om det?

Usikker, skal teste det ut. Redd det vil se litt rart ut og regner med at nye studenter skjønner at det finnes eksisterende medlemmer som vil logge inn også 🤷♂

repo: TIHLDE/Kvark


text:
[DO NOT MERGE] Aggregated NCDA infrastructure

#698

@AronNovak please review

repo: TIP-Global-Health/eheza-app


text:
Mat 1806 guidelines for contributions

Adding a contributions.md file with guidelines for external contributions to the repo. Largely adapted and abbreviated from PyBaMM.

Thanks for the recommendations @PatrickMoore-TRI

repo: TRI-AMDD/beep


text:
Major fix on french translation

Hello there !
I tried to fix the bad translations and made some changes to be more consistent with the original translation of the game.
This is not perfect, I have put some notes on thing that I think can be better. This will be a good start for now.

@Myalgul Thank you! Your translation is released in v0.6.1 (It is available in Outer Wilds Mod Manager.)

authors: Myalgul TRSasasusu

repo: TRSasasusu/TranslationForTheOutsider


text:
[REQUEST] downloaders - transmission

For which application would like to see this Guide ?
Radarr / Sonarr / Bazarr / etc
Describe what you would like to see in the Tutorial/Guide
Some people still use transmission? might as well add notes about what version is supported/how to set it up for *arr

The reason why I didn't add transmission is because the support team doesn't recommend transmission for automation, mainly that transmission doesn't have categories, and yes there is a work around with folders, but still not optimal.
Till now the support team recommend

Qbt
deluge
rtorrent

ack, i only bring this up because in sonarr discord there seems to be a lot of transmission users lately and we tell them to go to trash guides and was shocked to not have it listed

I'm more shocked that any one tells them to use transmissions in the first place (especially a Pre-release ;) )
I'm not in Sonarr discord, and only keep track on the Servarr apps discord, and i think i only seen one asking about transmission, where the support team actually suggested to switch to another client, that actually support labels/categories.
Perhaps if transmission starts supporting labels/categories and is out of Pre-release i might add some info to the guide for it.

disclaimer: i dont use torrents, i just have been asking related stuff due to *arr support channels and such. i'm bias for usenet :)
Now, I know someone that is using transmission 2.94 from 2018! and in his sonarr transmission settings I see there is a category spot and seems to work fine..  which has been there for 7+ years now..  looks like sonarr/radarr just require transmission 2.4+

i use both, and i try to keep the guide up to date with the Starr apps support channel and suggestions, and i never seen someone from the support team suggest transmissions if someone aks which torrent client to use.
And when some ask a question about transmission they always been asked why they don't use a better torrent client that works better with automation.
Yes i do know the Starr apps support transmission but they also support other even worse crappy torrent clients that the support team never recommend and when someone ask about it they actually get minimal to no help for.
ex. utorrent, downloadstation etc etc
But I will keep a eye on it and keep in touch with the Starr support team (mainly Radarr being i'm only in toch with them) if it's really needed to provide a basic setup guide for transmission, as long as the support team doesn't name them in 1 line (Qbt => Deluge => rTorrent) as suggested torrent clients, i don't think it should be added to prevent extra not wanted support questions of a app/client that hardly any one uses.
Thnx for your feedback, and all the help with SABnzbd, a app i do recommend everyone as usenet client. (even that i don't use it myself because of a few personal minor annoyance that are getting less and less)

authors: TRaSH- thezoggy

repo: TRaSH-/Guides


text:
TTTAttributedLabel.m:741:25: runtime error: variable length array bound evaluates to non-positive value 0

Getting this error in XCode 9.2 on the line CGPoint lineOrigins[numberOfLines]; in drawFramesetter:.. routine if numberOfLines = 0

Getting this error in XCode 9.2 on the line CGPoint lineOrigins[numberOfLines]; in drawFramesetter:.. routine if numberOfLines = 0

I'm seeing the same issue. The warning is reported by the Undefined Behaviour Sanitizer.

Seems unlikely this will get fixed. For anyone else looking into this, I ended up just wrapping the above lines and the following for loop in a
if (numberOfLines > 0)
since the for loop doesn't ever execute when numberOfLines = 0.

authors: MihaiDamian chadpod schmidt9

repo: TTTAttributedLabel/TTTAttributedLabel


text:
Fully dynamically generate the Package Manager information

Especially since there's so much duplication between the metadata files in META-INF/vault, allow the cqpackage plugin to accept some additional information so that those files can be fully generated instead of merely templated now.

:+1: I'd love to see that!

Moved to TWCable/gradle-plugin-cq-package#10

authors: davidknezic jdigger

repo: TWCable/cq-gradle-plugin


text:
Where does the bert-base-uncased-crossattn come from?

Thanks for your nice work! I notice that the bert-base-uncased-crossattn in your code seem to be different from the ones everyone uses (bert-base-uncased), and I find that the weight of cross attention is in your pytorch.bin, which we usually initialize it randomly.

@leexinhao Thanks for your attention to COSA.
the 'bert-base-uncased-crossattn' add cross-attention layers based on 'bert-base-uncased'. The parameters of cross-attention layers are randomly initialized  while other parameters are exactly the same as 'bert-base-uncased'. The preprocess is shown in the comments of following code.
https://github.com/TXH-mercury/COSA/blob/18f42d67d8fcec0f08e4d3e4741548d72781e65a/model/modeling.py#L376C7-L384C1
You can also read original 'bert-base-uncased' but with new config with corss-attention layers.

Thank you!

authors: TXH-mercury leexinhao

repo: TXH-mercury/COSA


text:
Less minimalistic clockface for better readability

@timjasch I can underlay any clockface you like. Do you have a certain style in mind? You can look here for inspiration

A style like this or similar would be great:
https://stock.adobe.com/de/images/clock-face-blank-vector-illustration/319218008?prev_url=detail

authors: TadeSF timjasch

repo: TadeSF/long-distance-timer


text:
Using annyang for Commercial use.

I want to use annyang in my website. As I know, this library is free for commercial use. But, I don't know whether I pay any money for anything or not? (like Google cloud speech server or anything).
Million Thanks.

annyang's code is licensed as MIT and provided as-is.
I cannot guarantee costs for other things, but as of the time of writing using the browser's speech API in Chrome is free.

annyang's code is licensed as MIT and provided as-is.
I cannot guarantee costs for other things, but as of the time of writing using the browser's speech API in Chrome is free.

Thanks u so much.

authors: TalAter khoantv

repo: TalAter/annyang


text:
feat(TFD-1721): make TCOMP Rest service works with Beam 2.0

What is the current behavior? (You can also link to an open issue here)
What is the new behavior?
sync guava version with Beam
Please check if the PR fulfills these requirements

[ ] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features) ?
[ ] The code coverage on new code >75%
[ ] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

Pull request test result: success :star:

authors: bchen-talend build-talend-common

repo: Talend/components


text:
add resetState default state options

resetState methods now accept an optional "defaultState" boolean that, when true, will ignore initialState, and instead be set to the empty default state.
Better name than "defaultState" for the boolean?

This was redone from a new fork.
Docs will need a new pass after this and other changes, which I can handle this weekend too.

repo: TanStack/react-table


text:
fix: routeTree.gen.ts compatible with ESLint and Prettier

The Generated file should be compatible with ESLint and Prettier(Sometimes should do eslint fix or prettier write).
These files are generated by Lib that we won't modify any more.
This solution is inspired by unplugin-auto-import.

And this still allows the types referenced outside of the file to work?

And this still allows the types referenced outside of the file to work?

Yes, only disable the check(ESLint, Prettier, Type) for this generated file.

authors: recallwei tannerlinsley

repo: TanStack/router


text:
Incorrect pagination behavior with autoResetPageIndex set to true when deleting rows

Describe the bug
Currently working on a table with pagination and a display column that removes the current row.

The data for the table is stored in react state and passed into the data prop.
The display column performs a removal by filtering the current row out of the state.
Accordingly, autoResetPageIndex needs to be set to false to prevent the pageIndex state from resetting on every row delete.

Everything works well until all of the rows are deleted on the last page.
The pageIndex state doesnt update, even though the getPageCount response does.
I would assume that even with autoResetPageIndex set to false, the pageIndex state should update when data is deleted and the page count decreases.
Your minimal, reproducible example
will provide on request
Steps to reproduce
Steps To preproduce

Create a table that:

uses pagination
has a display column to remove the current row
has autoResetPageIndex set to false
has enough data to populate more than one page

navigate to the last page
remove all of the rows by clicking the delete buttons one by one

Expected behavior
Expected:
When the last row is removed the table state should decrease the pageIndex state to match the page count
Actual:
pageIndex is unchanged and there is no data shown since the pageIndex is out of range relative to the new number of pages
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
issue happens on any OS with any browser
react-table version
8.5.15
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

I hope this gets fixed soon. Not sure if others are using this or not, but this is a real blocker for me.

authors: p-viral robertjvardy

repo: TanStack/table


text:
Table sorting is not working when drag and drop of columns is used

TanStack Table version
8.19.2
Framework/Library version
React 18.3.1
Describe the bug and the steps to reproduce it
This is my table component
`import React, { useState } from "react";
import CustomSpinner from "components/Spinner";
import {
flexRender,
useReactTable,
getCoreRowModel,
getSortedRowModel,
getExpandedRowModel,
} from "@tanstack/react-table";
import {
useSensor,
DndContext,
useSensors,
TouchSensor,
MouseSensor,
closestCenter,
KeyboardSensor,
} from "@dnd-kit/core";
import { restrictToHorizontalAxis } from "@dnd-kit/modifiers";
import {
arrayMove,
SortableContext,
horizontalListSortingStrategy,
} from "@dnd-kit/sortable";
import { useSortable } from "@dnd-kit/sortable";
import { CSS } from "@dnd-kit/utilities";
import get from "lodash/get";
const DraggableTableHeader = ({ header }) => {
const { attributes, isDragging, listeners, setNodeRef, transform } =
useSortable({
id: header.column.id,
});
const style = {
opacity: isDragging ? 0.8 : 1,
position: "relative",
transform: CSS.Translate.toString(transform),
transition: "width transform 0.2s ease-in-out",
whiteSpace: "nowrap",
width: header.column.getSize(),
zIndex: isDragging ? 1 : 0,
};
return (

<div
{...attributes}
{...listeners}
className={sort_${header.column.getIsSorted()} ${get(           header,           "column.columnDef.headerClassName",           ""         )}}
onClick={header.column.getToggleSortingHandler()}
>
{header.isPlaceholder
? null
: flexRender(header.column.columnDef.header, header.getContext())}

<div
{...{
onDoubleClick: () => header.column.resetSize(),
onMouseDown: header.getResizeHandler(),
onTouchStart: header.getResizeHandler(),
className: resizer ltr ${             header.column.getIsResizing() ? "isResizing" : ""           },
}}
/>

);
};
const DragAlongCell = ({ cell }) => {
const { isDragging, setNodeRef, transform } = useSortable({
id: cell.column.id,
});
const style = {
opacity: isDragging ? 0.8 : 1,
position: "relative",
transform: CSS.Translate.toString(transform),
transition: "width transform 0.2s ease-in-out",
width: cell.column.getSize(),
zIndex: isDragging ? 1 : 0,
};
return (
<td
style={style}
className={get(cell, "column.columnDef.className", "")}
ref={setNodeRef}
>
{flexRender(cell.column.columnDef.cell, cell.getContext())}

);
};
function Table(props) {
const {
data,
sorting,
columns,
isFetching,
hideHeader,
setSorting,
visibleColumns = {},
setVisibleColumns = () => {},
onDraggedColumnChange,
} = props;
const [columnOrder, setColumnOrder] = useState([]);
const table = useReactTable({
data,
state: {
sorting,
columnOrder,
columnVisibility: visibleColumns,
},
columns,
manualSorting: true,
sortDescFirst: true,
getSubRows: (row) => row.subRows,
getCoreRowModel: getCoreRowModel(),
getSortedRowModel: getSortedRowModel(),
columnResizeMode: "onChange",
onSortingChange: setSorting,
onColumnOrderChange: setColumnOrder,
getExpandedRowModel: getExpandedRowModel(),
columnResizeDirection: "ltr",
onColumnVisibilityChange: setVisibleColumns,
});
function handleDragEnd(event) {
const { active, over } = event;
if (active && over && active.id !== over.id) {
setColumnOrder((columnOrder) => {
const oldIndex = columnOrder.indexOf(active.id);
const newIndex = columnOrder.indexOf(over.id);
const newColumnOrder = arrayMove(columnOrder, oldIndex, newIndex);
return newColumnOrder;
});
}
}
const sensors = useSensors(
useSensor(MouseSensor, {}),
useSensor(TouchSensor, {}),
useSensor(KeyboardSensor, {})
);
return (

{!hideHeader ? (

{table.getHeaderGroups().map((headerGroup) => (

{headerGroup.headers.map((header) => (

))}

))}

) : null}

{table.getRowModel().rows.map((row) => (

{row.getVisibleCells().map((cell) => (

))}

))}

{isFetching ?  : null}

);
}
export default Table;
`
I want to sort table columns and also drag and drop. Right now drag and drop of columns is working correctly but sorting of column on click of table header is not working.
If I remove  {...attributes}  {...listeners} form DraggableTableHeader sorting works fine.
Kindly help
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
sample code (https://codesandbox.io/p/devbox/compassionate-fast-jgk6yj?file=%2Fsrc%2Fmain.tsx%3A64%2C24-65%2C23)
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
No, because I do not know how
Terms & Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

@tannerlinsley can you please help?


text:
feat(angular-table): improve adapter implementation

A little summary about the latest PR that got merged (hope with a new branch name there are no issue 😥 )

[X] Add support for required signal inputs (add ed an example too)
[X] Basic example
[X] Grouping example
[X] Row selection example
[X] Column visibility example

Examples to add:

[x] Column ordering example
[ ] Column pinning example
[ ] Column pinning sticky example
[ ] Filters

With this PR i'm updating the flexRender implementation which has improved typings and now supports all types of renderable content (strings, components and templateRefs) directly through the columns header/cell definition.
The implementation seems a little clunky than other frameworks in order to avoid changeDetection issues and support the OnPush ChangeDetection in all components (i'm using the RowSelection example as a base).
@Component({
  template: `
    <input
      type="checkbox"
      [checked]="context.row.getIsSelected()"
      (change)="context.row.getToggleSelectedHandler()($event)"
    />
  `,
  host: {
    class: 'px-1 block',
  },
  standalone: true,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class TableRowSelectionComponent<T> {
  context = injectFlexRenderContext<CellContext<T, unknown>>()
}

@Component({
  template: `
       ...

      @for (cell of row.getVisibleCells(); track cell.id) {
        <td>
          <ng-container *flexRender="cell.column.columnDef.cell; props: cell.getContext(); let renderCell">
              {{renderCell}}
          </ng-container>
        </td>
     }
  `
})
class MyComponent {
  private readonly otherCellRef = viewChild.required<TemplateRef<unknown>>('otherCellTemplateRef');

  readonly columns = [
    {
       id: "select",
       cell: () => new FlexRenderComponent(TableRowSelectionComponent)
    },
    {
      id: "otherCell",
      cell: () => this.otherCellRef()
    }
  ]
}

As the example above, you can now define a new component for the header/cell. The component can access to the given props (e.g. CellContext or HeaderContext value) via *flexRender directive through the  injectFlexRenderContext function.

Thanks for your continued work on this. And you can mark as ready to review at any point you think new changes can go into the feat branch in this repo.

@KevinVandy I've added the last examples that I was planning to add in this PR:

Column ordering
Column pinning
Column pinning
Filters

I think all changes are ready to be merged into the feat branch 😄

authors: KevinVandy riccardoperra


text:
Upgrade Scalariform

A bit of a mess when looked in aggregate. But each commit describes what it individually contributes.

Changed the scope of this PR. This upgrades Scalariform so that we can use Scalastyle without having flickering whitespace problems.

Looks good. Thanks @mcanlas

authors: kurtkopchik mcanlas

repo: Tapad/sbt-docker-compose


text:
Extra space in Categories view, above UpCloud footer ad

This applies to mobile and desktop view https://tappara.co/categories
There is unnecessary vertical space in between the last category and the UpCloud footer ad. This decreases the visibility of the advertisement, and looks awkward.

Fixed with commit 5fd4108.

authors: ljpp osmoossi

repo: TapparaCo/customization


text:
New URL UID

Noticed this today, Overwatch's website is now redirecting profiles from the name to a UID. For example mine redirects from Zencep-1489 to c85ba289b661d6fcbda82e|58a8345296109e00bdcb2af89f4118e3 now. It seems to not impact the API yet? although I can't tell with my profile:

I haven't played in season 9 so not sure if it's actually broken yet. Just informing early.
Also complete sidenote, I was wanting to start using Overfast's live instance for collecting player data. I'm not seeing anything about rate limits to the live instance, but is there a rational requests per second you expect without overloading your server?

Looking more into it, it looks like search now returns only public profiles.
Screenshots

It also looks like this new url property was added or changed?

Still looking into if there's any patterns in the UID to maybe figure out how they're coming up with it.

Overwatch's website is now redirecting profiles from the name to a UID. For example mine redirects from Zencep-1489 to c85ba289b661d6fcbda82e|58a8345296109e00bdcb2af89f4118e3 now.

Yes indeed, but the old URLs are redirecting to the new ones, so it's not affecting the API. If someday Blizzard decides to remove the redirection, I'll have some changes to make to make it work again. I don't think it's affecting your profile 👍

Also complete sidenote, I was wanting to start using Overfast's live instance for collecting player data. I'm not seeing anything about rate limits to the live instance, but is there a rational requests per second you expect without overloading your server?

Good question, I'll add the information in the README.md and the website. I didn't make any load testing, but I put a reasonable rate limit of 30 requests per second (global limit on the API), so I would advise to not go beyond that (else you'll have an HTTP 429 response from the server).
You may encounter some delay if you're trying to reach several profiles at the same time for the first time on the API, as Blizzard pages take a long time to be loaded. For already reached profiles, it should be smooth thanks to nginx + Redis combination.

Looking more into it, it looks like search now returns only public profiles.

Yup I can confirm, I also saw it when I made the update last week, and that's why I removed the privacy filter option on players search endpoint (and also the privacy attribute on players summary).

It also looks like this new url property was added or changed?

Yup it's brand new, never seen it before 🤔
Let me know if I can help you on anything else 👍

Good question, I'll add the information in the README.md and the website. I didn't make any load testing, but I put a reasonable rate limit of 30 requests per second (global limit for any call made on the API), so I would advise to not go beyond that (else you'll have an HTTP 429 response from the server).
Sounds reasonable! thank you!

You may encounter some delay if you're trying to reach several profiles at the same time for the first time on the API, as Blizzard pages take a long time to be loaded. For already reached profiles, it should be smooth thanks to nginx + Redis combination.
Yeah, I'm guessing there's no way to speed it up either because we're kinda at the whim of their page loads. 😞 If only they provided an API.

Yup I can confirm, I also saw it when I made the update last week, and that's why I removed the privacy filter option on players search endpoint (and also the privacy attribute on players summary).
Didn't even notice that, I'm finally getting around to implementing it now. Thanks for being so on top of it! <3

Yup it's brand new, never seen it before 🤔
Is it possible that property could be added? I'm thinking as a way of prepping for them removing it that I might implement a workflow of taking a username + discriminator and doing a search which should return only one result and storing the generated ID off of that.

I haven't looked on how the API actually works, but I could probably add it if you're busy!

Let me know if I can help you on anything else 👍
Of course, thank you for working on, IMO, one of the more frequently updated APIs <3 you're a blessing!

Ah yes definitely! Thank you for the PR, will take a look tomorrow 😉

@MatthewSH I just merged your PR after some updates, thank you 👍

Thank you for the adjustments! I'll keep those in mind for any adjustments in the future!

authors: MatthewSH TeKrop

repo: TeKrop/overfast-api


text:
🛑 Team Vegan.at API is down

In 24e2b45, Team Vegan.at API (https://api.teamvegan.at/ping) was down:

HTTP code: 502
Response time: 448 ms

Resolved: Team Vegan.at API is back up in 28a8a1c.

repo: Team-Vegan-at/upptime


text:
logiinView를 구현하였습니다.

Background

로그인 뷰를 구현해야 했었습니다.
#11
#8

Description

로그인 뷰 구현 완료 ( 이미지 및 애니메이션은 추후에 작성할 예정입니다.
카카오 로그인 구현 완료

Test Points

시뮬 혹은 실 기기 실행 후에 카카오 로그인시에 로그인 관련 UID가 출력되는지 확인해주시면 됩니다.
WeHereApp에서 네이티브 앱 키는 카카오톡을 참고해주세요.

작업 예정

Firebase 연동하여 Apple Login 구현
KakaoLogin UID를 Firebase에 저장

References

이슈가 다 해결되었다면 머지해도 좋을 것 같습니당

authors: E-know chaneeii

repo: Team-WeHere/WeHere


text:
Allow to show a subset of targets and/or customize their order

target_order argument is added. It should be a list of target names to show. Using this argument it is possible to customize display order of targets or hide some of the targets.
target_names is now required to be a list of target names; dict format ({old_name: new_name}) is no longer supported.

TODO:

[ ] check that display names are correct for binary classification and for single-output regression
[ ] make sure IPython notebooks are updated;
[ ] add target_order support to eli5.sklearn_crfsuite

Current coverage is 96.24% (diff: 92.10%)

Merging #70 into master will increase coverage by 0.08%

@@             master        #70   diff @@
==========================================
  Files            30         30
  Lines          1379       1383     +4
  Methods           0          0
  Messages          0          0
  Branches        247        251     +4
==========================================
+ Hits           1326       1331     +5
  Misses           28         28
+ Partials         25         24     -1

Diff Coverage
File Path

•••••••    78%
eli5/utils.py

•••••••••• 100%
eli5/sklearn/utils.py

•••••••••• 100%
eli5/lightning.py

•••••••••• 100%
eli5/sklearn/explain_prediction.py

•••••••••• 100%
eli5/sklearn/explain_weights.py

Powered by Codecov. Last update 820c546...e33b671

authors: codecov-io kmike


text:
🛑 hostux.net is down

In c0ace14, hostux.net (https://piped-api.hostux.net/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: hostux.net is back up in 219d25b after 19 minutes.

repo: TeamPiped/piped-uptime


text:
🛑 projectsegfau.lt in is down

In 958e96e, projectsegfau.lt in (https://pipedapi.in.projectsegfau.lt/healthcheck) was down:

HTTP code: 502
Response time: 1253 ms

Resolved: projectsegfau.lt in is back up in 2dfc62c after 18 minutes.


text:
🛑 kavin.rocks (Official) is down

In a93dcee, kavin.rocks (Official) (https://pipedapi.kavin.rocks/healthcheck) was down:

HTTP code: 502
Response time: 285 ms

Resolved: kavin.rocks (Official) is back up in eb7d316 after 28 minutes.


text:
🛑 ggtyler.dev is down

In c65b3d3, ggtyler.dev (https://piapi.ggtyler.dev/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ggtyler.dev is back up in f4fe4b0 after 9 minutes.


text:
🛑 andreafortuna.org is down

In f04998f, andreafortuna.org (https://pipedapi.andreafortuna.org/healthcheck) was down:

HTTP code: 502
Response time: 558 ms

Resolved: andreafortuna.org is back up in 50a33ad after 1 hour, 3 minutes.


text:
🛑 privacydev.net is down

In 5f4f29f, privacydev.net (https://api.piped.privacydev.net/healthcheck) was down:

HTTP code: 502
Response time: 359 ms

Resolved: privacydev.net is back up in 989abf2 after 9 minutes.


text:
🛑 whatever.social is down

In bf99405, whatever.social (https://watchapi.whatever.social/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: whatever.social is back up in dbcab92.


text:
🛑 whatever.social is down

In 049f41e, whatever.social (https://watchapi.whatever.social/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: whatever.social is back up in eae31c1.


text:
🛑 esmailelbob.xyz is down

In 702c2e5, esmailelbob.xyz (https://pipedapi.esmailelbob.xyz/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: esmailelbob.xyz is back up in 5267238.


text:
🛑 kavin.rocks (Official) is down

In a5cd8a2, kavin.rocks (Official) (https://pipedapi.kavin.rocks/healthcheck) was down:

HTTP code: 502
Response time: 119 ms

Resolved: kavin.rocks (Official) is back up in d1d2253.


text:
🛑 palveluntarjoaja.eu is down

In 6820ba1, palveluntarjoaja.eu (https://pipedapi.palveluntarjoaja.eu/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: palveluntarjoaja.eu is back up in f218456.


text:
peer dependency

Hi, This is not an issue but a request. Could you update your peer dependency?
warning "material-ui-password-field > material-ui-toggle-icon@0.2.0" has incorrect peer dependency "react@^15.4.2".

Thanks for reporting this, I'll fix that. :+1:

authors: Dominic-Preap leMaik


text:
🛑 Tax Portal is down

In 565e7ba, Tax Portal (https://portail.tax.gov.ma) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tax Portal is back up in fe73878.

repo: TebbaaX/DownTime-Score


text:
Not run task where runTime is over a minute less than next run time

Issue happens when the next run time is -5mins from the new runTime.

Found that a status lock prevent is loading task if connection to db fails. need to create an unlock on fail

repo: TechDevils/Url-Task-Scheduler


text:
No option to signup with google

Issue Description
I would like to add an option to signup with google on the sign up page.
Please assign this to me under GSSOC'24
Additional Context
No response
Screenshots or Examples (if applicable)

Proposed Solution (optional)
No response
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)

Hey @tanu-agarwal0101 , we are not planning goole sign up as there is no need of it as of now. so, I'm closing this issue.


text:
🛑 Cameron Moresco CPAs is down

In 57bd8df, Cameron Moresco CPAs (https://www.cameronmorescocpas.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cameron Moresco CPAs is back up in 3824005.

repo: TechSavagery/uptime-monitoring


text:
🛑 Kirschenman Enterprises Inc is down

In 3ae3b9b, Kirschenman Enterprises Inc (https://www.kirschenman.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kirschenman Enterprises Inc is back up in 0785c84 after 10 minutes.


text:
SizedWidget - For set all implementations automatically

Created SizedWidget to set SizeUntil.init() as following BoxConstrains and Layout.
Added Example to README.md

I decided to close this PR, because @TechnoUrmish didn't respond of.
Thanks...

repo: TechnoUrmish/Sizer


text:
Hooks or meta commands

I was under the impression that RUN.BEFORE and RUN.AFTER worked differently. In fact, I thought that I could do the following (especially valid when you have multiple Runfiles):
The contents of ./commands/homebrew/Runfile:
# RUN.AFTER upgrade
upgrade-homebrew:
  echo "Upgrading Homebrew"

The contents of ./commands/aqua/Runfile:
# RUN.AFTER upgrade
upgrade-aqua:
  echo "Upgrading aqua"

The contents of ./Runfile:
INCLUDE **/Runfile

upgrade:
  echo "Upgrading..."

So, I naively hoped that I could wire in more commands in various ./commands/*/Runfile files without having to wire them in ./Runfile, so, if I would get the following result in the setup above:
$ run upgrade
Upgrading...
Upgrading Homebrew
Upgrading aqua

It came out I was wrong and that RUN.BEFORE and RUN.AFTER are just syntax sugar for "${RUN}" <command>, which is not enormously useful.
So, I propose adding the HOOK.BEFORE and HOOK.AFTER, so that the above could work if I replace RUN.AFTER with HOOK.AFTER.
Another option is to make upgrade call other commands using a wildcard, i.e.
# RUN.AFTER upgrade-*
upgrade:
  echo "Upgrading"

Greetings!
So I'm not sure about adding some kind of glob matcher to run multiple tasks, but I did devise a way to achieve your goal:
Runfile
UPGRADE_CMDS = ""

INCLUDE **/Runfile

##
# export UPGRADE_CMDS
# export .RUN, .RUNFILE
upgrade:
  echo "Upgrading..."
  declare -p UPGRADE_CMDS
  for cmd in $UPGRADE_CMDS; do ${RUN} -r ${RUNFILE} ${cmd}; done

./commands/homebrew/Runfile
UPGRADE_CMDS="${UPGRADE_CMDS} upgrade-homebrew"

upgrade-homebrew:
  echo "Upgrading Homebrew"

./commands/aqua/Runfile
UPGRADE_CMDS = "${UPGRADE_CMDS} upgrade-aqua"

upgrade-aqua:
  echo "Upgrading aqua"

And when executed:
$ run upgrade

Upgrading...
declare -x UPGRADE_CMDS=" upgrade-aqua upgrade-homebrew"
Upgrading aqua
Upgrading Homebrew

Give that pattern a try and lemme know what you think, and as always, thanks for the discussion!
-TW

@TekWizely I didn't know what happens with the variables declared in the Runfiles, so, thanks for this. The issue is that it looks somewhat clean if you have UPGRADE_CMDS, but, in my case, there will be LINT_CMDS, FORMAT_CMDS, VALIDATE_CMDS, and LOCK_CMDS (for updating lockfiles), etc. Thanks for the suggestion though!

So I'm starting to warm to the idea of supporting run prefix*

I think it would have to fail on the first failed task
Passing arguments would pass them to all tasks
Passing something like --help may have to stop after the first task

I will definitely grind on this some more

@TekWizely Of course, all these should have identical signatures, i.e. they should support the same type of options, switches, etc.

authors: TekWizely nikolay

repo: TekWizely/run


text:
[Skeleton] 骨架屏接收的props在变更后没有响应

tdesign-mobile-vue 版本
0.9.0
重现链接
No response
重现步骤
在vue3中对骨架屏组件传属性loading和row-col，当属性值变更时，骨架屏没有及时响应，如下代码:
 <t-skeleton :loading="loading" :row-col="rowColResult">
在loading值由true->false时，骨架屏没有消失，内容没有显现
在rowColResult数组元素变更时，骨架屏的显示效果没有改变
期望结果
在loading值由true->false时，骨架屏消失，内容显现
在rowColResult数组元素变更时，骨架屏的显示效果改变
实际结果
如上，期望结果没有生效
框架版本
Vue(3.2.25)
浏览器版本
Chrome(103.0.5060.114)
系统版本
MACOS(12.4)
Node版本
12.20.1
补充说明
通过阅读源码Skeleton组件
发现例如const showContent = !props.loading;的写法在vue3中无法构成响应式，所以当props变更时showContent不会变化，该组件其他代码也一样，无法构成响应式导致传的props变化时没有响应

收到。既然已阅读了源码，欢迎给我们提 PR 贡献代码哦

OK，我提一下

authors: LeeJim VeryHandSomeBoy

repo: Tencent/tdesign-mobile-vue


text:
引入vuedraggable@next 滚动组件报错

tdesign-vue-next-starter 版本
^1.4.1
重现链接
No response
重现步骤
npm i vuedraggable@4.1.0 --save
在页面中引入import Draggable from 'vuedraggable';
项目报错
Uncaught TypeError: isFunction is not a function
at defineComponent (runtime-core.esm-bundler.js:2252:10)
at activity.tsx:12:16
期望结果
能够引入滚动组件并成功启动项目
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response

这个并非是模板问题，请给vuedraggable官方发issue

引入之后并非vuedraggable报错，而是TDesign 里面的引入 import isFunction from 'lodash/isFunction';
isFunction is not a function
Uncaught TypeError: isFunction is not a function
at defineComponent (runtime-core.esm-bundler.js:2252:10)
at activity.tsx:12:16

这个并非是模板问题，请给vuedraggable官方发issue

引入之后并非vuedraggable报错，而是TDesign 里面的引入 import isFunction from 'lodash/isFunction';
isFunction is not a function
Uncaught TypeError: isFunction is not a function
at defineComponent (runtime-core.esm-bundler.js:2252:10)
at activity.tsx:12:16

这个并非是模板问题，请给vuedraggable官方发issue

引入后并非vuedraggable报错，而是TDesign 里面的引入 import isFunction from 'lodash/isFunction';isFunction不是一个函数未捕获类型错误：isFunction不是函数在定义组件（runtime-core.esm-bundler.js:2252:10）在活动.tsx：12:16

https://github.com/SortableJS/vue.draggable.next/issues/128 vuedraggable的问题

repo: Tencent/tdesign-vue-next-starter


text:
[Dialog] 样式问题合集

tdesign 版本
Vue2 0.47.0｜Vue3 0_21_0｜React 0.41.1
重现链接
No response
重现步骤
No response
期望结果
组件
1.标题样式不对
·应为--td-font-size-title-medium

2.正文的下边距不对
·应为24

3.图标没有居中对齐
·应上下左右居中对齐。

4.正文的颜色样式不对
·应为--td-text-color-secondary

demo
1.react中建议不要使用中英文混排

### 实际结果
参考官网一条条修改对照看就好
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response

领取 common 和 Vue2 部分

common 这边，

标题样式不对
正文的下边距不对

已经修复并提了 PR https://github.com/Tencent/tdesign-common/pull/967 ；想了解一下 3.图标没有居中对齐 具体指的是？

正文的颜色样式不对 检查了一下，已经是 --td-text-color-secondary 了。

Vue2 这边暂无需要的修改。感谢！

authors: Summer-Shen eugenewoody

repo: Tencent/tdesign


text:
ITSM流程节点中的处理人不支持动态生成

比如故障工单中的一线处理人需要根据数据中心值班情况派单，每天的值班人员不一致。

有API可以拿到每天的值班人员信息吗，通过引用变量可以实现

有API可以拿到每天的值班人员信息吗，通过引用变量可以实现

没有找到在哪里定义变量。。。

思路大概就是，通过API节点请求特定的服务拉取到每天的值班人员，然后将结果引用为变量

之后在对应的节点创建触发器，修改处理人的值就好

authors: hanshuaikang yeguangfang

repo: TencentBlueKing/bk-itsm


text:
希望ITSM可以支持蓝盾调用组件，以便通过ITSM编排整个工作流

目前的版本只支持调用标准运维， 但是不支持调用蓝盾， 希望后续可以排期支持。 这样可以通过itsm来编排整个CI CD工作流。

社区版蓝盾并未开放足够多的api，在社区版企业版，该节点暂时禁用。后续支持后会放开

authors: hanshuaikang motionnb


text:
[FEATURE] GSE 多版本 API 适配

你想要什么功能
为什么需要
建议如何实现

repo: TencentBlueKing/bk-nodeman


text:
Suggestion for Quick screenshot

Hi! I'm impressed by the app. Thank you!
I would suggest a second "Take a screenshot" option, something like a "Quick screenshot". It wouldn't ask for type of screenshot we want (it may be configured previously), neither to review it prior sharing to Frog.
Skipping those two steps would come handy in repetitive tasks. Like those situations where we have to scan different parts of the same text; we always use the same type of screenshot and we know Frog will perform well.
Thank you again!

As of xdg-desktop-portal 1.15.0, non-interactive screenshots are now possible for skipping the portal dialogs. From my testing (changing the screenshot flag to NONE here), the window has to be visible when the screenshot is requested. Frog would still need UI for selecting an area of the screen however

I did, actually. A lot of googling took me to the thread about this. So, the central part, for now, is implementing the screenshot UI. It will take some time :)

authors: DaPigGuy amka mmgn897

repo: TenderOwl/Frog


text:
代码随想录算法训练营 Day48 动态规划X

121. 买卖股票的最佳时机
题目链接：
[121. 买卖股票的最佳时机 - 力扣（LeetCode）](https://leetcode.cn/problems/best-time-to-buy-and-sell-stock/description/)
题目描述：
给定一个数组 prices ，它的第 i 个元素 prices[i] 表示一支给定股票第 i 天的价格。
你只能选择 某一天 买入这只股票，并选择在 未来的某一个不同的日子 卖出该股票。设计一个算法来计算你所能获取的最大利润。
返回你可以从这笔交易中获取的最大利润。如果你不能获取任何利润，返回 0 。
思路

确定dp数组（dp table）以及下标的含义
dp[i][0] 代表第i天持有股票时手里的最大金额  dp[i][1]代表第i天不持有股票时手里的最大金额

确定递推公式
如果第i天持有股票即dp[i][0]， 那么可以由两个状态推出来

第i-1天就持有股票，那么就保持现状，所得现金就是昨天持有股票的所得现金 即：dp[i - 1][0]
第i天买入股票，所得现金就是买入今天的股票后所得现金即：-prices[i]

那么dp[i][0]应该选所得现金最大的，所以dp[i][0] = max(dp[i - 1][0], -prices[i]);
如果第i天不持有股票即dp[i][1]， 那么可以由两个状态推出来

第i-1天就不持有股票，那么就保持现状，所得现金就是昨天持有股票的所得现金 即：dp[i - 1][1]
第i天卖出股票，所得现金就是卖出今天的股票后所得现金即：prices[i] + dp[i - 1][0]

那么dp[i][1]应该选所得现金最大的，所以dp[i][1] = max(dp[i - 1][1], prices[i] + dp[i - 1][0]);

dp数组如何初始化
由递推公式可以看出要从dp[0][0]和dp[0][1]推导出来。那么dp[0][0]表示第0天持有股票，此时的持有股票就一定是买入股票了，因为不可能有前一天推出来，所以dp[0][0] -= prices[0];
dp[0][1]表示第0天不持有股票，不持有股票那么现金就是0，所以dp[0][1] = 0;

确定遍历顺序
从递推公式可以看出dp[i]都是由dp[i - 1]推导出来的，那么一定是从前向后遍历。

class Solution {
    public int maxProfit(int[] prices) {
        int length = prices.length;
        //dp[i][0] 代表第i天持有股票时手里的最大金额  dp[i][1]代表第i天不持有股票时手里的最大金额
        int[][] dp = new int[length][2];
        dp[0][0] = -prices[0];
        for(int i = 1; i < length; i++){
            dp[i][0] = Math.max(dp[i-1][0], -prices[i]);
            dp[i][1] = Math.max(dp[i-1][1], dp[i-1][0] + prices[i]);
        }
        return dp[length-1][1];
    }
}

思路2
这里也可以使用贪心的方法，因为只能买一次，所以通过循环来记录下价格的最低点，然后将遍历到的价格与价格最低点相减，选取差最大的作为结果即可。
class Solution {
    public int maxProfit(int[] prices) {
        int low = Integer.MAX_VALUE, res = -1;
        for(int i = 0; i < prices.length ; i++){
            low = Math.min(low, prices[i]);
            res = Math.max(res, prices[i] - low);
        }
        return res;
    }
}

122. 买卖股票的最佳时机II
题目链接：
[122. 买卖股票的最佳时机 II - 力扣（LeetCode）](https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/description/)
题目描述：
给你一个整数数组 prices ，其中 prices[i] 表示某支股票第 i 天的价格。
在每一天，你可以决定是否购买和/或出售股票。你在任何时候 最多 只能持有 一股 股票。你也可以先购买，然后在 同一天 出售。
返回 你能获得的 最大 利润 。
思路
	这个题目之前用贪心做过，这里改用动规来实现，与上一题不同的是这里可以买卖多次了，这里只需要修改递归公式即可。
	如果第i天持有股票即dp[i][0]， 那么可以由两个状态推出来

第i-1天就持有股票，那么就保持现状，所得现金就是昨天持有股票的所得现金 即：dp[i - 1][0]

第i天买入股票，根据题意，现在应该不持有股票，所得现金就是昨天不持有股票的金额减去买入今天的股票后所得现金即：dp[i - 1][1] - prices[i]
那么dp[i][0]应该选所得现金最大的，所以dp[i][0] = Math.max(dp[i-1][0], dp[i-1][1] - prices[i]);

	如果第i天不持有股票即dp[i][1]， 那么可以由两个状态推出来

第i-1天就不持有股票，那么就保持现状，所得现金就是昨天持有股票的所得现金 即：dp[i - 1][1]

第i天卖出股票，所得现金就是卖出今天的股票后所得现金即：prices[i] + dp[i - 1][0]
那么dp[i][1]应该选所得现金最大的，所以dp[i][1] = Math.max(dp[i-1][1], dp[i-1][0] + prices[i]);

class Solution {
    public int maxProfit(int[] prices) {
        int length = prices.length;
        int[][] dp = new int[length][2];
        dp[0][0] = -prices[0];
        for(int i = 1; i < length; i++){
            dp[i][0] = Math.max(dp[i-1][0], dp[i-1][1] - prices[i]);
            dp[i][1] = Math.max(dp[i-1][1], dp[i-1][0] + prices[i]);
        }
        return dp[length-1][1];
    }
}

repo: TerminalStation/Bert-Blog


text:
🛑 Arma 3 Server is down

In bb1c651, Arma 3 Server (https://arma3-servers.net/api/?object=servers&element=detail&key=$ARMA3_API) was down:

HTTP code: 200
Response time: 336 ms

Resolved: Arma 3 Server is back up in fc6b27c.

repo: Terra-Isles-Roleplay/TRP-Status


text:
How to close Page Tab under _tabControl

Hello,
I have a mainTab(_tabControl) under this couple of child tabs(PageTabs) ,am able to keep focus and select the required tab but problem is not able to close that opened page tab,each tab is having close button but when i use UI verify,the page tab is getting identified but not 'x' button. i tried to see childs ,ascendants using treewalker but no luck,
can any one help me how perform action to close page tab using White/UIACOM Wrapper/UI Automation?
my application:
Windows form,Infragistics controls,
NOTE: here am using TreeWalker ,since using White framework am not able to identify tabs or Grids or menubar or trees. its because my application controls are using 3rd party Infragistics controls.

hey buddy,  i know i am a bit late but did you ever get this to work?  i have same problem.  i did find a work/hack around for time being but rather do it right way

authors: MonoAutomation drogit

repo: TestStack/UIAComWrapper

license: MS-PL


text:
🛑 Jellyfin is down

In d7d966e, Jellyfin (https://jellyfin.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jellyfin is back up in 9f5b3f8.

repo: TetraGG/Upptime


text:
🛑 Jellyfin is down

In 8ab9580, Jellyfin (https://jellyfin.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jellyfin is back up in a0082e3.


text:
🛑 Proxmox is down

In 2106c02, Proxmox (https://pve.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Proxmox is back up in de06547.


text:
🛑 Nextcloud is down

In d2e19d3, Nextcloud (https://nextcloud.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nextcloud is back up in 8d14ee7.

Resolved: Nextcloud is back up in 8d14ee7.


text:
🛑 Nextcloud is down

In acf4705, Nextcloud (https://nextcloud.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nextcloud is back up in 5b4cc6f.


text:
🛑 Proxy is down

In 6ae1947, Proxy (https://proxy.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Proxy is back up in 2c683bf.


text:
🛑 Jellyfin is down

In 1461b76, Jellyfin (https://jellyfin.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jellyfin is back up in 97b7a9a.


text:
🛑 Jellyfin is down

In e8d22ad, Jellyfin (https://jellyfin.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jellyfin is back up in a6e7ffd.


text:
a couple of fixes

so I turned on the library x feature on and there is a couple of little things that need to be fixed the profile image would be better if it was a circle and the song timer needs to be a bit higher because it's over the album artwork

or make the profile image not change

library x is a experimental feature. So I wont add support for it.
If you wanna discuss pls dont create issue. Contact me in discord


text:
fix plugin id to use lower camel casing

Plugin IDs should be lower camel cased otherwise Stash will not display your plugin setting values on the plugins page.
To demonstrate the issue, you can try creating a plugin with an upper camelcased name TestPlugin.yml with the following config
description: My plugin does awesome things
version: 1.0
settings:
  test:
    displayName: Test
    type: STRING

If you load this plugin and give the setting a value, you'll see it:

The issue appears when you refresh the page. The test value disappears:

However, the value is still in the stash config.yml, so it still exists.
So if you rename the plugin id to testPlugin.yml and reload it, then the value comes back:

Using lower camel case is just a work around. This is a Stash bug created by its configuration library (viper). This has nothing to do with stash-plugin-builder.


text:
selectfieldset support

selectfieldset as used in JSON Form is not supported and would be a useful addition (https://github.com/joshfire/jsonform/wiki#fields-selectfieldset)

This would be even more useful together with oneOf-support :+1:

authors: Anthropic fiddur

repo: Textalk/angular-schema-form


text:
🛑 node3.th7bo.com is down

In d17c13c, node3.th7bo.com (node3.th7bo.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: node3.th7bo.com is back up in eeef450 after 13 minutes.


text:
🛑 node3.th7bo.com is down

In 51c5c03, node3.th7bo.com (node3.th7bo.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: node3.th7bo.com is back up in f7afaf8 after 41 minutes.


text:
Add certificate operations

Implements #20
go test -run TestCertificate
PASS

Per my comments in #20, we would be interested in merging in half of these changes. Would you be interested in splitting up your work so that we can merge in the "certificate finding" code, but not the import code?

Per my comments in #20, we would be interested in merging in half of these changes. Would you be interested in splitting up your work so that we can merge in the "certificate finding" code, but not the import code?

Sorry for the delay. How would you suggest I structure the unit tests without the ability to create or import a certificate?

Sorry for the delay. How would you suggest I structure the unit tests without the ability to create or import a certificate?

Your original import/creation code could become test helper functions. I would move them to certificate_test.go and use them to create your test fixtures.
Over time, more of our tests will probably use those helper functions (as we deprecate and eventually remove key generation).

Sorry for the delay. How would you suggest I structure the unit tests without the ability to create or import a certificate?

Your original import/creation code could become test helper functions. I would move them to certificate_test.go and use them to create your test fixtures.
Over time, more of our tests will probably use those helper functions (as we deprecate and eventually remove key generation).

Made the change as requested.

Rebased the work on v1, which was far simpler. @dmjones possible to restart the review process?

Thanks for updating this. Just to set some expectations, I hope to be able to review this in the first week of August. Apologies for the delay. If I can get to it before then, I will.

Thanks for the PR updates. It looks great, I've made minor adjustments and added a few extra features in #52. I'll close this PR now.

authors: bernard-wagner dmjones


text:
ERROR: chatGPT_answer failed

I tried to use the script but as I clicked CTRL + ALT + T the Console says the Question and Anwers but then there is:
Something went wrong.
chatGPT_answer failed

and the API says at the API KEY: never used
can someone pls help me fix this?

Can you take a screenshot of the code where you define your api key (you can blur or mark out the key)

Thank you for the quick responce here is the screenshot:

regarding the 0 uses thing on the api key, that can happen because openai takes a little bit to register everything

The Error is:
Something went wrong.
chatGPT_answer failed with error: cannot access local variable 'response' where it is not associated with a value

can you try setting your tesseract path to this? Not sure if it will work just a guess:
C:\Program Files\Tesseract-OCR\tesseract.exe

But the response Variable is the responce of response = openai.ChatCompletion.create(model="gpt-4", messages=conversation) that gets a value when the openai command gets ran

right but since I dont see how that could be causing an error I'm just checking whats different between your code and mine since mine works

can you try setting your tesseract path to this? Not sure if it will work just a guess: C:\Program Files\Tesseract-OCR\tesseract.exe

Tesseract gets the Question and Anwers, but the responce variable doesn´t get a value

are you sure your api is correct then?

can you try setting your tesseract path to this? Not sure if it will work just a guess: C:\Program Files\Tesseract-OCR\tesseract.exe

Tesseract gets the Question and Anwers, but the responce variable doesn´t get a value

I have created a new API token but there is still the same error

try changing 'gpt-4' to 'gpt-3.5-turbo'

same Error

ok I´ll test it

import keyboard
import pyautogui
import pytesseract
import openai

pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"  # Path to tesseract.exe example path: r"C:\Program Files\Tesseract-OCR\tesseract.exe"
openai.api_key = "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"

def click_button(button):
    # Coordinates for each button
    button_coords = {1: (579, 1040), 2: (1562, 1037), 3: (528, 1261), 4: (1803, 1255)}
    x, y = button_coords[button]
    pyautogui.click(x, y)

def chatGPT_answer(question_and_answers):
    # Adding explicit instruction to the prompt
    # Modify the instruction to the model to fit your needs
    conversation = [
        {
            "role": "system",
            "content": "You are a helpful assistant specialized in answering multiple-choice questions who only responds with the button number corresponding to the most likely answer do not respond with words only a integer. You'll do this even if the question involves content you can't analyze, such as videos or images. If you cannot answer the question, you'll respond with an educated guess. Remember only respond with an integer between 1 and 4 that corresponds to the answer.",
        },
        {"role": "user", "content": question_and_answers},
    ]
    try:
        response = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=conversation) # can be set to 'gpt-4' if needed

        # Extract the assistant's reply
        reply = response["choices"][0]["message"]["content"].strip()
        # Return the button number as an integer
        return int(reply)
    except ValueError:
        # Handle exception here if the reply is not an integer
        print(f"Unexpected reply: {reply}")
        return int(reply[0])
    except:
        # Handle exception here if something else goes wrong
        print("Something went wrong.")
        print(response)
        return None

def kahoot_god():
    # Coordinates for kahoot question and answers
    question_and_answers = {
        0: {"top_left": (0, 72), "bottom_right": (2475, 200)},
        1: {"top_left": (105, 1000), "bottom_right": (1219, 1118)},
        2: {"top_left": (1370, 1000), "bottom_right": (2500, 1127)},
        3: {"top_left": (100, 1200), "bottom_right": (1260, 1361)},
        4: {"top_left": (1370, 1175), "bottom_right": (2000, 1353)},
    }
    res = ""
    for element in question_and_answers:
        coords = question_and_answers[element]
        x1, y1 = coords["top_left"]
        x2, y2 = coords["bottom_right"]

        # Calculate width and height for each element for screenshot
        width = x2 - x1
        height = y2 - y1

        screenshot = pyautogui.screenshot(region=(x1, y1, width, height))
        screenshot_text = pytesseract.image_to_string(screenshot)
        if not screenshot_text.strip():
            print("No text detected.")
            continue
        if element == 0:
            res += f"Question: {screenshot_text}"
        else:
            res += f"{element}: {screenshot_text}"
    print(res)
    try:
        answer = chatGPT_answer(res)
        click_button(answer)
        print(f"Answer: {answer}")
    except:
        print("chatGPT_answer failed")

# Bind the function to a hotkey
keyboard.add_hotkey("ctrl+alt+t", kahoot_god)
# Keep the program running
keyboard.wait()

if you choose to use all 53 of my cents then go ahead

no, i´ll do just one request

My reselution broke, but it has functioned

wdym ur resolution settings

could be thats your code and reselution settings

now try adding that api key into your previous code

ok

still doesn´t worked
but where do you create the API key? on: https://platform.openai.com/account/api-keys right?

yes

try adding a print(response) line after you request the chatgpt completion

I think i found the problem with the responce. I thought I can use the API for free but you must pay it to use it. Thank you for your help

authors: CatPaulKatze nateloeffel

repo: The-CodingSloth/kahoot-god


text:
DRT fails to find a path

Hi,
I modified ORFS to add fixes (repair_timing) post GR. The attached testcase fails to find a path between pin and source aps. See below.
Testcase is at: detail_route_ibex_asap7_base_2022-05-12_13-20
[INFO DRT-0195] Start 0th optimization iteration.
Failed to find a path between pin  and source aps:
( 299 195 5 ) (Idx) / ( 3780 60624 ) (coords)
extBBox (xDim, yDim, zDim) = (456, 710, 10)
Failed to find a path between pin  and source aps:
( 3 398 3 ) (Idx) / ( 12 85548 ) (coords)
( 6 398 3 ) (Idx) / ( 60 85548 ) (coords)
( 25 398 3 ) (Idx) / ( 300 85548 ) (coords)
extBBox (xDim, yDim, zDim) = (456, 710, 10)
[ERROR DRT-0255] Maze Route cannot find path of net clk_i in worker of routeBox ( 0 60480 ) ( 3780 64260 ).
[ERROR DRT-0255] Maze Route cannot find path of net clk_i in worker of routeBox ( 0 83160 ) ( 3780 86940 ).

@WenjingJiang21 FYI.

The problem is solved and the fix is going through some tests before it is merged into the master branch.

The fix is on the master branch now.

authors: Stephanommg VidyaChhabria

repo: The-OpenROAD-Project/OpenROAD


text:
ORFS is using report_cell_usage which my OpenROAD is missing

Describe the bug
As stated above, the ORFS final_report.tcl is using report_cell_usage, but my build of OR does not have this command. What am I doing wrong?
Expected Behavior
Either the command report_cell_usage should not be used, or it should be available in OR.
Environment
Git commit: 391c9dfb8906659b9cc782fafd3a3835a069ca06
kernel: Linux 6.6.22-linuxkit
os: Ubuntu 22.04.4 LTS (Jammy Jellyfish)
cmake version 3.22.1
-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- OpenROAD version: v2.0-13379-g391c9dfb8
-- System name: Linux
-- Compiler: GNU 11.4.0
-- Build type: RELEASE
-- Install prefix: /usr/local
-- C++ Standard: 17
-- C++ Standard Required: ON
-- C++ Extensions: OFF
-- The C compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Python: /usr/bin/python3.10 (found version "3.10.12") found components: Interpreter
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS__-Wall
-- Performing Test C_COMPILER_SUPPORTS__-Wall - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wall
-- Performing Test CXX_COMPILER_SUPPORTS__-Wall - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-array-bounds
-- Performing Test C_COMPILER_SUPPORTS__-Wno-array-bounds - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-array-bounds
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-array-bounds - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-nonnull
-- Performing Test C_COMPILER_SUPPORTS__-Wno-nonnull - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-nonnull
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-nonnull - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-maybe-uninitialized
-- Performing Test C_COMPILER_SUPPORTS__-Wno-maybe-uninitialized - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-maybe-uninitialized
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-maybe-uninitialized - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format-overflow
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format-overflow - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format-overflow
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format-overflow - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-variable
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-variable - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-variable
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-variable - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-function
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-function - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-function
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-function - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-write-strings
-- Performing Test C_COMPILER_SUPPORTS__-Wno-write-strings - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-write-strings
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-write-strings - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-sign-compare
-- Performing Test C_COMPILER_SUPPORTS__-Wno-sign-compare - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-sign-compare
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-sign-compare - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-deprecated
-- Performing Test C_COMPILER_SUPPORTS__-Wno-deprecated - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-deprecated
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-deprecated - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-c++11-narrowing
-- Performing Test C_COMPILER_SUPPORTS__-Wno-c++11-narrowing - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-c++11-narrowing
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-c++11-narrowing - Failed
-- Performing Test C_COMPILER_SUPPORTS__-Wno-register
-- Performing Test C_COMPILER_SUPPORTS__-Wno-register - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-register
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-register - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-foCMake Warning at src/CMakeLists.txt:245 (message):
  spdlog: SPDLOG_FMT_EXTERNAL=ON

rmat
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal
-- Performing Test C_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal - Failed
-- Performing Test C_COMPILER_SUPPORTS__-fpermissive
-- Performing Test C_COMPILER_SUPPORTS__-fpermissive - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-fpermissive
-- Performing Test CXX_COMPILER_SUPPORTS__-fpermissive - Success
-- Performing Test C_COMPILER_SUPPORTS__-x
-- Performing Test C_COMPILER_SUPPORTS__-x - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-x
-- Performing Test CXX_COMPILER_SUPPORTS__-x - Failed
-- Performing Test C_COMPILER_SUPPORTS__c++
-- Performing Test C_COMPILER_SUPPORTS__c++ - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__c++
-- Performing Test CXX_COMPILER_SUPPORTS__c++ - Failed
-- Performing Test C_COMPILER_SUPPORTS__-std=c++17
-- Performing Test C_COMPILER_SUPPORTS__-std=c++17 - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-std=c++17
-- Performing Test CXX_COMPILER_SUPPORTS__-std=c++17 - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-but-set-variable
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-but-set-variable - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-but-set-variable
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-but-set-variable - Success
-- TCL library: /usr/lib/aarch64-linux-gnu/libtcl.so
-- TCL header: /usr/include/tcl/tcl.h
-- TCL readline library: /usr/lib/aarch64-linux-gnu/libtclreadline.so
-- TCL readline header: /usr/include/aarch64-linux-gnu
-- Found SWIG: /usr/bin/swig4.0 (found suitable version "4.0.2", minimum required is "4.0")
-- Found Boost: /usr/local/lib/cmake/Boost-1.82.0/BoostConfig.cmake (found version "1.82.0")
-- boost: 1.82.0
-- Found Python3: /usr/include/python3.10 (found version "3.10.12") found components: Development Development.Module Development.Embed
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version "1.2.11")
-- spdlog: 1.9.2
-- Found BISON: /usr/bin/bison (found version "3.8.2")
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.1") found components: doxygen dot
-- STA version: 2.5.0
-- STA git sha: f8a9e1771b80899ff43189362725dff70c2ed057
-- System name: Linux
-- Compiler: GNU 11.4.0
-- Build type: RELEASE
-- Build CXX_FLAGS: -O3 -DNDEBUG
-- Install prefix: /usr/local
-- Found FLEX: /usr/bin/flex (found version "2.6.4")
-- TCL library: /usr/lib/aarch64-linux-gnu/libtcl.so
-- TCL header: /usr/include/tcl/tcl.h
-- SSTA: 0
-- Found SWIG: /usr/bin/swig4.0 (found suitable version "4.0.2", minimum required is "3.0")
-- STA executable: /foss/designs/openroad/src/sta/app/sta
-- Found Clp: /usr/local/lib/cmake/Clp/ClpConfig.cmake (found version "1.17.7")
-- Found Cbc: /usr/local/lib/cmake/Cbc/CbcConfig.cmake (found version "2.10.7")
-- Found SCIP: /usr/local/lib/cmake/scip/scip-config.cmake (found version "8.0.3")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- GPU is not enabled
-- TCL library: /usr/lib/aarch64-linux-gnu/libtcl.so
-- TCL header: /usr/include/tcl/tcl.h
-- GUI is enabled
-- Charts widget is not enabled
-- Found Boost: /usr/local/lib/cmake/Boost-1.82.0/BoostConfig.cmake (found version "1.82.0") found components: serialization
-- Could NOT find VTune (missing: VTune_LIBRARIES VTune_INCLUDE_DIRS)
-- Found Boost: /usr/local/lib/cmake/Boost-1.82.0/BoostConfig.cmake (found suitable version "1.82.0", minimum required is "1.78")
-- TCL library: /usr/lib/aarch64-linux-gnu/libtcl.so
-- TCL header: /usr/include/tcl/tcl.h
-- Found Boost: /usr/local/lib/cmake/Boost-1.82.0/BoostConfig.cmake (found version "1.82.0") found components: serialization system thread
-- Found Boost: /usr/local/lib/cmake/Boost-1.82.0/BNumber of processor cores: 10
oostConfig.cmake (found version "1.82.0")
-- Found Eigen3: /usr/share/eigen3/cmake/Eigen3Config.cmake (found version "3.4.0")
-- TCL readline enabled
-- Tcl Extended disabled
-- Python3 enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.rUq28pVGL2

To Reproduce
Start OR in interactive mode, check for command report_cell_usage.
Relevant log output
No response
Screenshots
No response
Additional Context
No response

 Very weird. I have no idea what could have gone wrong...

And when I type report_cell_usage in OpenROAD, I get this:

OK, now I think I have the full picture. @maliberty I think there might still be something to fix here, although something different that the original case:

In the new OpenROAD version that I have (see above), the command report_cell_usage is indeed there, and it works normally in the ORFS.
When openroad is started, and no design is loaded, when calling report_cell_usage a segfault occurs. That is not ideal.
When openroad is run interactively, the command completion typing report_ and then tab does not show report_cell_usage (while bringing up other commands, see above), which is also not ideal, and caused my confusion in the first place.

Sounds like 2 separate issues. report_cell_usage needs to 1) check that a design is loaded and 2) be included in the Tcl help.

I've fixed the crash in in #5010.  Fixing the auto complete looks a harder (I hate tcl).  I'll see if I can find a solution for that as it affects all the sta commands.  Apparently tclreadline doesn't understand 'namespace import'

@maliberty BTW, I found meanwhile another OR command that segfaulted when no design is loaded. Unfortunately, I forgot which one. Maybe all commands should be tested for running directly after OR start w/lo loading a design, that they exit gracefully instead of segfaulting. Could/should be added to the regression suit, I guess.

Good idea, I'll add one (and I suspect fix a lot of issues).

The hall of shame
  cluster_flops
  check_placement
  repair_antennas
  triton_part_design
  optimize_mirroring
  evaluate_part_design_solution
  place_endcaps
  highlight_path
  remove_fillers
  check_antennas
  global_placement_debug
  improve_placement
  pdngen
  insert_dft
  set_driving_cell
  tapcell
  tapcell_ripup
  preview_dft
  define_corners

Oh yes, the repair_antennas was the one I found :-)

#5032 adds the test but doesn't actually fix the problem yet.  The 'skip' list there needs to be reduced down to just 'exit' (which shouldn't be tested).

@arthurjolo please take care of fixing up the commands.

Sure, will fix them.

All are fixed except define_corners which will require an sta fix/update cycle.

authors: arthurjolo hpretl maliberty rovinski


text:
Create count_of_set_bits.cpp

Description of Change Code to count set bits in binary representation of a given number.

Checklist

[x] Added description of change
[x] Added file name matches File name guidelines
[x] Added tests and example, test must pass
[x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
[x] Relevant documentation/comments is changed or added
[x] PR title follows semantic commit guidelines
[x] Search previous suggestions before making a new one, as yours may be a duplicate.
[x] I acknowledge that all my contributions will be made under the project's license.

Notes:

@Panquesito7 Have a look into this PR 😄

@fhlasek Please have a look in this PR also. 😃

Sorry for taking long in reviewing this PR (including other PRs). There have been many PRs recently (plus other important stuff I have to work on). 😅

repo: TheAlgorithms/C-Plus-Plus


text:
Implemented Radix Sort Algorithm

Description:
This pull request introduces an implementation of the Radix Sort algorithm with support for different bases.
Definition:

Radix Sort is a non-comparison-based sorting algorithm that sorts numbers by processing individual digits.
The Algorithm is efficient for sorting integers and other values with a fixed number of digits or characters.
It sorts numbers by processing individual digits. It works by performing Counting Sort on each digit, starting from the least significant digit to the most significant digit.
Time Complexity: O(d * (n + k)), where n is the number of elements, d is the number of digits, and k is the range of digits.
Compared to the comparison-based sorting algorithms (#7, #8, #10), Radix Sort is non-comparison-based; it can be more efficient for sorting integers with a fixed number of digits (when the number of digits is small compared to the number of elements).
Radix Sort is more efficient than Gnome Sort (O(n^2)) #9  for larger datasets.

Implementation Details:
radix_sort.f90: Contains the radix_sort_module with:

radix_sort: A subroutine that sorts the input array using the Radix Sort algorithm.
counting_sort: A subroutine that performs Counting Sort based on the digit represented by exp.

The module has been enhanced to support sorting based on different numeral systems (bases). The radix_sort subroutine can now be used with different bases, such as base 2, 10, and 16.
Example Usage:
example_usage_radix_sort.f90: Includes three test programs demonstrating the radix_sort subroutine from the radix_sort_module with different bases:
Base 10:
    Array: [170, 45, 75, 90, 802, 24, 2, 66, 15, 40]
    Output: Sorted array in base 10.

Base 2:
    Array: [1010, 1101, 1001, 1110, 0010, 0101, 1111, 0110, 1000, 0001]
    Output: Sorted binary array, represented in decimal.

Base 16:
    Array: [0xAB, 0x1F, 0x3D, 0xFF, 0x10, 0x05, 0xD3, 0x2A, 0xB4, 0x00]
    Output: Sorted hexadecimal array, represented in decimal.

The program sorts the sample arrays in their respective bases and prints the results.
Additional Test Cases:
tests_radix_sort.f90: A test program that includes a variety of test cases to validate the radix_sort implementation.

Great implementation and test cases. The comments are also very detailed. I can merge it and then refactor the directory structure. Then you can put examples, tests, and modules under different folders as mentioned in issue #13!

Thanks, Satin!
Sure 👍

repo: TheAlgorithms/Fortran


text:
Post-session retrieval instruction may be unclear

It is written that we should

Send the T1-weighted and T2-weighted scan for screening and incidental findings.

within 48 hours after the first session and that

To do so, we'll need to first download the data from PACS and then convert the data into BIDS.

However these last two instructions are to be done within one week and two week after the completed session.
Does it implies that, for the first session only, we should have everything in BIDS format, sent for screening within the first 48h ?

Does it implies that, for the first session only, we should have everything in BIDS format, sent for screening within the first 48h ?

Yes

Please reopen if you still think this is unclear.

authors: acionca oesteban

repo: TheAxonLab/hcph-sops


text:
Fix log level preventing reveal and open operations #43

This fixes the issue where opener::open() and opener::reveal() would not work in config.rs if tracing::info! log level is filtered out on stricter log levels (warn, error - and error is default).
Also added explicit default log level (your call whether you like this change or not).
Closes #43

would not work in config.rs if tracing::info! log level is filtered out on stricter log levels

It's quite funny that I wrote about it in my Telegram channel (https://t.me/tbtpm/211) two and half months ago but forgot about it and made a selfish assumption about the log lever 😄
Good work and thank you for the fix!

authors: NamesMark TheBestTvarynka

repo: TheBestTvarynka/Dataans


text:
🛑 LawDrive Cloud is down

In b144603, LawDrive Cloud (lawdrive.lawcloud.page) was down:

HTTP code: 521
Response time: 325 ms

Resolved: LawDrive Cloud is back up in fe6e484.

repo: TheBlankness/uptime-lawcloud


text:
🛑 Truenas WebUI is down

In c91c27c, Truenas WebUI (truenas.lawcloud.page) was down:

HTTP code: 523
Response time: 3311 ms

Resolved: Truenas WebUI is back up in 2e6ab2e.


text:
Performance Optimization

Optimize page loading speed, compress images and minify CSS/JS files.

😉


text:
Switch to the unified entity data model for resolve/register

This covers the largest change required by #286 (Closes #269). It attempts to update the docs, but there may be some loose ends, which we can pick up as part of #287 and #249.
It updates BAL to support the new mechanism which has required a breaking change in its schemas.

Will allow up with #328 to enforce the newly documented behaviour.

repo: TheFoundryVisionmongers/OpenAssetIO


text:
top-level return no longer preventing script execution

Imma fix this

You can mark this fixed thanks to #17