Argument about “the problem with women in technology” skips a step

Programming, despite the hype and the self-serving fantasies of programmers the world over, isn’t the most intellectually demanding task imaginable.
Which leads one to the inescapable conclusion: The problem with women in technology isn’t the women.

This argument immediately reminded me of the Berkeley gender bias case that Wikipedia uses to explain Simpson’s paradox in statistics. More men than women were admitted to Berkeley in 1973. But the cause turns out to be not sexism, but women having applied to the departments that were harder to get admitted to.
Similarly, there is a missing link in your argument. You have shown that the problem with women in technology isn’t the capability of women. But before you say that women have nothing to do with the problem, you need to demonstrate that the problem also isn’t a lack of interest on the part of women.
I don’t personally know whether the statistics show that women are less interested in technology than men. Even if women are less interested, that would probably explain only a portion of the lack of women in the field. But you need to mention those statistics if you want to justify your current conclusion – that women aren’t the problem.

Borrowing a phrase from the author, please tread lightly. The complex ecosystem of chauvinism and oppression toward women we have created over millennia probably hasn't helped motivate entry into certain fields of work. There's nothing inherently masculine or feminine about coding except the artificial bounds we have placed on it.


New project don't create tables under the database

I create a small yaml file with one entity. I create the db info sqlserver.
I boot the project but EF don't execute the migrations.
Why?

I don’t see any error. The program start but no tables.
Where Does Serilog save the log files? No log folder.
Thanks.
Inviato da Outlook per iOShttps://aka.ms/o0ukef

Da: Paul DeVito @.>
Inviato: Wednesday, March 6, 2024 2:07:38 PM
A: pdevito3/craftsman @.>
Cc: BIAGIO PARUOLO @.>; Author @.>
Oggetto: Re: [pdevito3/craftsman] New project don't create tables under the database (Issue #136)
Going to need more info than that to help you
—
Reply to this email directly, view it on GitHubhttps://github.com/pdevito3/craftsman/issues/136#issuecomment-1980838541, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFBQDJWPPNVR7ZFUDXF4N3YW4IJVAVCNFSM6AAAAABEI5BQWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBQHAZTQNJUGE.
You are receiving this because you authored the thread.Message ID: @.***>

I solved with the command "ef database update" to push data to database🧐

Serilog just outputs to the console by default. No log folder.
There is a migrations background service that should be running for you on startup. I need to see your template or project to diagnosis though. No where near enough info to help.
In the meantime, yeah a regular ef command being run manually should work


fix: add language to annotation

Fixes #32

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.9%. Comparing base (1b6dfec) to head (025873d).

Additional details and impacted files

Files
Coverage Δ

.../src/sbx_ocr_correction_viklofg_sweocr/__init__.py
80.9% <100.0%> (ø)


In the usage, change event.message_text to event.message!

I keep forgetting that event.message_text is now event.message and whenever I look back at the usage, I grab the wrong variable. Thanks!

I agree. ReadMe should be updated or fbmq should support message_text too. Why don't you make PR for this?

Sorry for the delay. Just created a pull request for the changes.


On Resizing the screen, value in the signature pad gets erased. The same is replicable in the examples shared in readme file as well. Is this a known issue?

On Resizing the screen, value in the signature pad gets erased. The same is replicable in the js fiddle examples shared in readme file of this repo as well. Is this a known issue or there is a way to handle this?
Before Window Resize:

After Window Resize:

#32 is the same problem. I've posted a jsfiddle with a solution that works for me. Comment at https://github.com/szimek/signature_pad/issues/32#issuecomment-1406826837.


Await for the response messages and then put responses into list.

When a WebHook is added with an invalid Uri (host does not exist etc) by using the noecho feature so that the WebHook uri is not validated, when the WebHookSender sends the message an exception is thrown in AzureWebHookDequeueManager line 281 when waiting for all Tasks to complete. This causes the rest of the code to not be executed. This causes a situation where all messages are resent indefinitely causing duplicate messages to be transmitted.
The solution that I have is to remove the Task.WhenAll(requestTasks) and rather to await on the _parent._httpClient.SendAsync(request) to ensure that exceptions while posting are handled in the exception handling block.

Hi @petetheman79, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

Committed to dev branch as cb46ccaac71f9807f87d21af1ef4bc0783e6cb6c


Migration to Rocky Linux removes symbolic links in /etc/alternatives for java

I just migrated a CentOS 8 system to Rocky Linux that has the following java packages installed:
java-1.8.0-openjdk.x86_64                   1:<IP_ADDRESS>2.b10-1.el8_4                @appstream
java-1.8.0-openjdk-headless.x86_64          1:<IP_ADDRESS>2.b10-1.el8_4                @appstream
java-11-openjdk.x86_64                      1:<IP_ADDRESS>.9-2.el8_4                  @appstream
java-11-openjdk-devel.x86_64                1:<IP_ADDRESS>.9-2.el8_4                  @appstream
java-11-openjdk-headless.x86_64             1:<IP_ADDRESS>.9-2.el8_4                  @appstream

After the migration there are no symbolic links for all the java related tools in /etc/alternatives any more.
It would be great if you could improve the migration script to keep the symbolic links :-)

I've also experienced this issue, however after some examination I found, it is not a fault of migration script.
The script calls dnf to make a distro-sync, which essentially reinstall all the packages. It seems, upstream OpenJDK packages has some issue with corresponding entries among alternatives. I've tested, alternative entries doesn't survive dnf reinstall even at other distributions without any repository mangling or version change.
Also it doesn't seem to be some general issue and it's really rather specific to OpenJDK, because other packages (like Python, cifs-utils etc.) doesn't have any problem with forced reinstall and keeping alternatives.
Of course @pajamian probably likely can extend the script functionality to tar /etc/alternatives and /var/lib/alternatives before actual upgrade and restore it after that. However to be honest, I don't think, such forced and optimistic approach is a good one. Some package installation can fail during the migration or there can be some other issue and you'll end up with restored invalid entries among alternatives (dead symlinks etc.).
I haven't really debugged RPM spec files or why those original OpenJDK packages have this reinstall problem, but so far alternatives from those packages can be restored in several ways.

by two step complete uninstall and install, but it could break other packages dependent on JDK or JRE
manually vi alternatives (lots of entries with error prone typing)
by manually running post-install scriptlet from original packages

IMO the third approach is the best. You can get post-install scriptlet by extracting from rpm -q package --scripts. There are commands for registration into alternatives.
For my automation purposes I've cooked following quick-n-dirty fix script bellow. Only -headless and -devel packages are actually necessary, just those registers alternatives like java, javac etc.
When it finds some of listed package, it just run its post-install scriptlet in separate bash.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
    echo "This script must be run as root"
    exit 1
fi

packages="java-1.8.0-openjdk-headless \
java-1.8.0-openjdk-devel \
java-11-openjdk-headless \
java-11-openjdk-devel"

for p in $packages
do
    rpm --quiet -q $p && \
        bash -c "$(rpm -q $p --scripts | sed -n '/postinstall/, /postuninstall/{ /postinstall/! { /postuninstall/ ! p} }')"
done

Of course, it just recreates default package alternatives, if you had some custom manual settings there, you'd need to set it again.

I'll look into this, but it's going to be a bug in the packaging of java.  The appropriate remedy is to file a bug report upstream.  We can put a note in the issues section of the README so taht people are aware of it and of what the appropriate steps are to fix it once the migration is finished but I am reluctant to alter the script itself for this.

Hi @msmucr !
Thank you very much for your thorough analysis of the problem. I fully agree, that the third approach is the best. I successfully applied your script :-)
@ @pajamian : I fully agree to not altering the script for this issue. But it would be nice to have a note in the README, so people don't open additional issues upon this. What do you think about adding the script from @msmucr to the repository?

I reproduced the issue in RHEL and filed a bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1976053

I've simplified the above script to a one-liner:
rpm -qa --scripts java-{1.8.0,11}-openjdk-{headless,devel} | sed -n '/postinstall/, /exit/{ /postinstall/! { /exit/ ! p} }' | sh
...tested and works

Thank you both @pajamian and @klaus-tux.
Adding the note to readme is definitely useful, until original upstream package will be fixed. The one-liner is definitely much more elegant ;), I've just done something quickly for batch fixing after migrations. Thanks for the report to RH bugzilla, I also planned to check those packages and report the issue during next week, so it's great, you've already done that.


Build hangs on VSTS managed build agents

I'm trying to get this building on a VSTS build agent with an MSBuild script along these lines:
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

    <PropertyGroup Label="Build paths">
        <OutputPath>.\output\</OutputPath>
    </PropertyGroup>

    <ItemGroup Label="Visual Studio Solutions and Projects to MSBuild">
        <TabularProject Include=".\src\*.Cube\database.json" />
    </ItemGroup>

    <Target Name="Build">
        <Exec Command="start /wait .\build\TabularEditor.exe %(TabularProject.Identity) -A -V" />
        <Exec Command="start /wait .\build\TabularEditor.exe %(TabularProject.Identity) -B $(OutputPath)Model.bim -O -V" />
    </Target>

</Project>

This builds just fine locally in a PowerShell console. However it hangs on a managed build agent.
I have tried various permutations of the command including "cmd /c start /wait ... etc" however they all hang and the build times-out.
I'm assuming this works as there is a special -V flag to send VSTS compatible build messages.
Do you have a definitive command line I should be using?

I upgraded from 2.7 to 2.7.1 and this no longer happens. Something must have been fixed :)

Hi James - yes, there was a bug with the -A switch in 2.7, that caused the Tabular Editor UI to be displayed, which would hang the caller when executed through a service (such as a managed build agent).
This was fixed in 2.7.1, so I'm closing this issue, but don't hesitate to let me know, if run into any other problems.

I'm also experiencing a hanging issue in VSTS. I use the Powershell task, I created some cmdlets and this is what its doing internally
Cmdlet content
Write-Host "Deploying SSAS using Tabular Editor at $TabularEditorPath `non Server $ServerInstance into Database $Database `nusing Model at $ModelPath"

Start-Process `
        -Wait `
        -filePath $TabularEditorPath `
        -ArgumentList @("$ModelPath", "-D", "$ServerInstance", "$database", "-O", "-V")

Output on local machine
Deploying SSAS using Tabular Editor at C:\projects\WarehouseSSAS\lib\TabularEditor.exe
on Server (local) into Database TransactionsPTZ
using Model at C:\projects\WarehouseSSAS\src\TransactionsPTZ\Model.bim

Tabular Editor 2.7.6682.40635
--------------------------------
Dependency tree built in 88 ms
Loading model...
Deploying...
Deployment succeeded.
...
##vso[task.complete result=SucceededWithIssues;]Done.

Output on VSTS
2018-05-16T13:20:01.8639180Z Deploying SSAS using Tabular Editor at C:\agent\_work\r4\a\_WarehouseSSAS\lib\TabularEditor.exe
2018-05-16T13:20:01.8639562Z on Server z-azd1-sql-002 into Database TransactionsPTZ
2018-05-16T13:20:01.8639934Z using Model at C:\agent\_work\r4\a\_WarehouseSSAS\src\TransactionsPTZ\Model.bim

This is where it hangs and I have to cancel the task

UPDATE: I tried running manually on the agent and got the error popup telling me I need the TOM AMO libs v. 15.0.2. libraries. This explains why it was hanging.
It now runs but the next issue I'm trying to solve is that I'm getting no output from TabularEditor

Hi @eugeneniemand - in my experience, it is easier to use a "Command line" task in VSTS, instead of a Powershell task, to invoke Tabular Editor:

When using the -V switch, as above, VSTS will automatically react to errors reported by Tabular Editor:

Or were there a specific reason why you had to use a PowerShell task for invoking Tabular Editor?

@otykier thanks for your response. It is part of a bigger PSake build script so I'm already inside of powershell with variables etc. Either way I got it working, as described above. Hopefully this helps someone or maybe I can add it to the readme

Necromancing this thread for future reference, to show that there's an easier way to call TabularEditor.exe through PowerShell, ensuring that the output is displayed and that the PowerShell task fails in case Tabular Editor returns a non-zero exit code (which happens when an error occurred inside Tabular Editor - for example if the deployment fails).
$p = Start-Process `
        -Wait -NoNewWindow -PassThru `
        -filePath $TabularEditorPath `
        -ArgumentList @("$ModelPath", "-D", "$ServerInstance", "$database", "-O", "-V")

exit $p.ExitCode


Pass session kwargs to ClientSession

Codecov Report

Merging #13 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
- Coverage   95.37%   95.36%   -0.02%
==========================================
  Files           5        5
  Lines         303      302       -1
==========================================
- Hits          289      288       -1
  Misses         14       14

Impacted Files
Coverage Δ

aiosparql/client.py
95.34% <100%> (-0.06%)
:arrow_down:

Continue to review full report at Codecov.

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


ROX-25183: Dummy compatibility target for release-x.y

Description
Adds  a dummy target for gke-nongroovy-compatibility-tests that CI can call.
User-facing documentation

[ ] CHANGELOG is updated OR update is not needed
[ ] documentation PR is created and is linked above OR is not needed

Testing and quality

[ ] the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
[ ] CI results are inspected

Automated testing

[ ] added unit tests
[ ] added e2e tests
[ ] added regression tests
[ ] added compatibility tests
[ ] modified existing tests

How I validated my change
None. This same target already exists in our master branch

I am guessing that we need that branch for the pj-reharse to pass. how about the release-4.4 and release-4.5 - is it needed there too?

It would be needed in 3.74, 4.4 and 4.5 too, yes. That is why I just removed them from the openshift-ci PR, I think rather than backporting this new test targets to older release branches it makes more sense to leave it out of those and to only add it to newer releases going forward. Thoughts @vikin91 ?


Adding buffer or progress indicators

Is your feature request related to a problem? Please describe.
Adding a progress or buffer indicator.
Additional context
Adding a buffer or progress Indicator like the following

@Uttkarsh-raj Assigning you this issues but one thing don't use any third party packages here.

please assign me this issue


SMTP Support

Adds SMTP support for pop.
Configured by environment variables:
export POP_SMTP_HOST=smtp.gmail.com
export POP_SMTP_PORT=587
export POP_SMTP_USERNAME=...
export POP_SMTP_PASSWORD=...

If @gmail.com is the suffix of the POP_SMTP_USERNAME then we will automatically set the default of the HOST and PORT to smtp.gmail.com and 587.

I believe port 587 is now the de-facto standard SMTP port, so perhaps it's worth defaulting to that regardless of whether or not gmail is being used?

Ah nice, good point. Will make it the default 👍


fix: autoresize.enable not working

Closes #111

Thank you very much for your contribution!
I've did the same changes as you already and also added tests. However the tests are failing:
See my work in progress branch here:
https://github.com/cryptomilk/focus.nvim/tree/asn-fix


docs improvements

use composer require in command line for install
added infos about available variables in the switcher template

fix issue #144 and issue #159

close #160

any suggestion for improvement before merge ? @dbu @lunetics @lsmith77


Unable to download blogs, which have a not-tumblr address.

There's this blog. Sorry, this blog is NSFW.
http://recklessdesires.com/
Despite the absence of tumblr.com in a web address, this blog is exactly from Tumblr, it just a has its own address. But impossible add this blog in the program and from the clipboard the program not accept such a link. Could you fix it?

Possibly, I don't have time to fix anything in the next four weeks or so though.

Sadly, I wanted to download this blog. I will wait, hope fix will come as soon as possible.

Hi Taranchuk, just to let you know, if you need to add a tumblr in the downloader that don't have the tumblr.com address it's simple.
On the main page of the tumblr ask your browser to show you the source code of the page.
In the page search for the "blogname=" string and you will find something, by example for the one you talk about the name is:
recklessdesireblog
Now in TumblThree simply add recklessdesireblog.tumblr.com and you will see it working perfectly on it ;)

amigre38, thanks for the answer!


Otio reader app: Some flavours of video codec don't appear to work

Only the ProRes bars make it from a Resolve OTIO export to being viewed in the Otio reader app. ('Media not supported')
Zipped file has the bars and an Otio.
Bars of various flavours.zip
I installed the Pro Video Formats but no change.

Thanks! ill look into this!

Fixed in the dev branch. Found some silly and some subtle bugs. All your media loads and plays for me now:

Ill put out a new release shortly.

https://github.com/Synopsis/OpenTimelineIO-AVFoundation/releases/tag/releases%2F1.0-Beta-4 :)
Thanks for reporting the issue @TrevorAyl


Refactor backfill with retry

Refactor backfill to have a simple retry mechanism with exponential backoff.

You should also change the order of the code from this:
        if len(addresses) > addressBatchSize {
		BatchedFilterLogs(ctx, client, addresses[:addressBatchSize], fromBlock, toBlock, logChan, backoff)
		BatchedFilterLogs(ctx, client, addresses[addressBatchSize:], fromBlock, toBlock, logChan, backoff)
		return
	}

	if toBlock-fromBlock > blockBatchSize {
		BatchedFilterLogs(ctx, client, addresses, toBlock-blockBatchSize, toBlock, logChan, backoff)
		BatchedFilterLogs(ctx, client, addresses, fromBlock, toBlock-blockBatchSize-1, logChan, backoff)
		return
	}

To this:
       if toBlock-fromBlock > blockBatchSize {
		BatchedFilterLogs(ctx, client, addresses, toBlock-blockBatchSize, toBlock, logChan, backoff)
		BatchedFilterLogs(ctx, client, addresses, fromBlock, toBlock-blockBatchSize-1, logChan, backoff)
		return
	}

        if len(addresses) > addressBatchSize {
		BatchedFilterLogs(ctx, client, addresses[:addressBatchSize], fromBlock, toBlock, logChan, backoff)
		BatchedFilterLogs(ctx, client, addresses[addressBatchSize:], fromBlock, toBlock, logChan, backoff)
		return
	}

Since it is better to backfill by block number first before taking address into consideration

In BatchedFilterLogs function, do you consider the case where a query fails repeatedly and blocks other queries from being executed? You should leave that query to retry later while continuing with other queries.

I also suggest that you should consider using loop instead of abusing recursion.

I am not abusing recursion. It is not a memory-intensive routine. Recursion makes it tidier and much more readable.

You should also change the order of the code from this:
...
Since it is better to iterate using block number before iterating using address.

It doesn't matter


I meet a login problem

when I try to login in by the sample codes from this project, I always meet
the same error message as below:
jp.line.android.sdk.exception.LineSdkLoginException:  error=FAILED_WEB_LOGIN, errorCode=401
can u help to check it ?

same problem with me, i've already assign a role to our test co-work, but still not working.

There are several reasons

Have you applied a channel to develop?
Have you set the SHA1 of your application on Channel Console ? and have you also use the same signature on your App when testing?
Is the Channel ID set correctly on your app?
Is the person that is trying to login have a developer role on your channel ?

Already did all steps, but still met problem: Line authorize failed, error message: jp.line.android.sdk.exception.LineSdkLoginException:  error=FAILED_WEB_LOGIN, errorCode=446

How long will the developer role affected after i the developer accept the invite and verified the email and can start test?
Currently, the login process will always return a error:  error=FAILED_A2A_LOGIN, errorCode=2
So i'm wondering how long the developer account will affected?

finally, I work around this issue. You need to add a Developer/Channel Editor role for your channel.
Waiting for some time, maybe a little longer, then try again. bingo! got it.


Modify install

Modify installation for more granular control, the idea is to separate the splashscreens copy from the randomizer utility.
So you wont have to install the randomizer with splashs that I have gathered over time.
Something like:
1)Boot Install
2)Update
3)Copy Splashscreens
4)Copy Videos
5)Exit

implemented with v3.5


[Microsoft.CostManagement/views] API usage portal differs from REST API Spec

When trying to create an Azure Terraform provider resource I got really confused how to create a view.
In the portal the API is using different values than are available in the REST API Spec:

properties.query.type has value actualCost -> According to definition: Only value is 'Usage' (required)
properties.query.timeframe has value None -> According to definition: Possible values are 'Custom', 'MonthToDate', 'WeekToDate', 'YearToDate'

# Request body on PUT for https://management.azure.com/subscriptions/<id>/providers/Microsoft.CostManagement/views/test3?api-version=2021-10-01
{
  "properties": {
    "currency": "EUR",
    "dateRange": "Last6Months",
    "query": {
      "type": "ActualCost",
      "dataSet": {
        "granularity": "Monthly",
        "aggregation": {
          "totalCost": {
            "name": "Cost",
            "function": "Sum"
          },
          "totalCostUSD": {
            "name": "CostUSD",
            "function": "Sum"
          }
        },
        "sorting": [
          {
            "direction": "ascending",
            "name": "BillingMonth"
          }
        ]
      },
      "timeframe": "None"
    },
    "chart": "StackedColumn",
    "accumulated": "true",
    "pivots": [
      {
        "type": "Dimension",
        "name": "ServiceName"
      },
      {
        "type": "Dimension",
        "name": "ResourceLocation"
      },
      {
        "type": "Dimension",
        "name": "ResourceGroupName"
      }
    ],
    "scope": "subscriptions/<id>",
    "kpis": [
      {
        "type": "Budget",
        "id": "COST_NAVIGATOR.BUDGET_OPTIONS.NONE",
        "enabled": true,
        "extendedProperties": {
          "name": "COST_NAVIGATOR.BUDGET_OPTIONS.NONE"
        }
      },
      {
        "type": "Forecast",
        "enabled": true
      }
    ],
    "displayName": "test3"
  }
}

What is the source of truth and are there any valid examples for the REST API calls to craete some nice views?
And if someone would be so nice to explain how to construct the aggregation object and what the possibilities are for that: that would be awesome!

@aristosvo We are looking into it and get back to you for any additional information.

@aristosvo Sorry for the delay.  Can you please look into the documentation over here which is for CostManagement in Terraform.  It has same values are it is available through the REST API endpoint.


Please release v4.0.2 to rubygems.org

v4.0.2 has been tagged, but it hasn't been uploaded to rubygems.org. Would you please release it?
Thanks,
Matt

Thanks for pointing that out. Pushed.


log_prob fails for Restricted Prior when sampling with SIR

I am trying to use a restricted prior as a proposal and when creating it with the parameter SIR the process_prior function fails because it cannot calculate the log prob.
File "/python3.8/site-packages/sbi/utils/user_input_checks.py", line 354, in check_prior_attributes
    prior.log_prob(theta)

File "/utils/restriction_estimator.py", line 833, in log_prob
    torch.log(self.prior_acceptance(**prior_acceptance_params))

TypeError: log(): argument 'input' (position 1) must be Tensor, not NoneType

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "posterior_train_bins.py", line 114, in <module>
    bin_proposal, num_parameters, prior_returns_numpy = process_prior(proposal)

Also does this in general when simply doing:
propr = RestrictedPrior(prior, accept, posterior=temp, sample_with="sir")
python3.8/site-packages/sbi/utils/restriction_estimator.py", line 833, in log_prob
    torch.log(self.prior_acceptance(**prior_acceptance_params))

It seems to be like there is no acceptance_rate analgous for SIR, whereas "rejection" has one explicitly defined.  Is this intentional ?  SIR provides a significant speed boost, so it would be nice to use.   It looks like it would be possible to implement in the "sampling_importance_resampling" function.

Thanks for creating this issue! I can not reproduce the error though. Two questions:

Does the following code work for you:

import torch
from torch import eye, ones, zeros
from torch.distributions import MultivariateNormal

from sbi.inference import SNPE, DirectPosterior
from sbi.utils import RestrictedPrior, get_density_thresholder, BoxUniform

num_dim = 2
x_o = zeros((1, num_dim))

prior = BoxUniform(-ones(num_dim), ones(num_dim))
theta = prior.sample((100,))
x = theta + torch.randn(theta.shape)

inference = SNPE(prior=prior)
_ = inference.append_simulations(theta, x).train()

posterior = inference.build_posterior().set_default_x(x_o)

accept_reject_fn = get_density_thresholder(posterior, quantile=1e-4)
proposal = RestrictedPrior(prior, accept_reject_fn, posterior=posterior, sample_with="sir")
theta = proposal.sample((1000,))

At what line in your code does the error occur? During .train()?

The code you gave me works perfectly.  It is when I add:
logprb = proposal.log_prob(theta)
that the error is raised.
2.) Since the process_prior(prior,...) function checks if the prior can produce log_prob and I cannot seem to get the log_prob with the restricted prior when using SIR, the error occurs during process_prior.

Got it, thanks!
The quick solution for now is to not run process_prior on the RestrictedPrior. If you follow the tutorial here, everything should work:
from sbi.inference import SNPE
from sbi.utils import get_density_thresholder, RestrictedPrior

inference = SNPE(prior)
proposal = prior
for _ in range(rounds):
    theta = proposal.sample((num_sims,))
    x = simulator(theta)
    _ = inference.append_simulations(theta, x).train(force_first_round_loss=True)
    posterior = inference.build_posterior().set_default_x(x_o)

    accept_reject_fn = get_density_thresholder(posterior, quantile=1e-4)
    proposal = RestrictedPrior(prior, accept_reject_fn, sample_with="rejection")

Note that the RestrictedPrior is not even passed as proposal in this tutorial.
I'll think a bit more about whether we should remove the log_prob requirement from process_prior (since it is only strictly required for SNLE, SNRE, and SNPE-C, but not for single-round NPE and neither for the restricted methods).

I was hoping to use the restrictedPrior as a proposal itself in the initialization of the SNPE(prior = RestrictedPrior) as I am trying to learn two different posterior distributions.  The restrictedPrior would serve as a proposal for the second distribution.
Another issue with restrictedPrior I can raise separately, is there any way to pickle it ?  Current it cannot pickle the get_density_thresholder function so it raises an error.

Thanks for clarifying! I agree that we should allow passing the RestrictedPrior to be passed at unit. I will fix this soon, but I don’t have time this week. Until then, you can very easily work around this:
In SNPE, the prior passed at initialization is the prior, not the proposal. In TSNPE (and in single round NPE), the prior (passed at init) is not used during training at all (it is only used after training to reject samples from the approximate posterior that lie outside of the prior). Thus, you do not have to pass anything:
inference = SNPE()
or you simply pass the original prior:
Inference = SNPE(prior=prior)
The proposal is simply the distribution from the parameters theta are drawn. It does not require a log_prob method and you do not have to pass it at initialization. You will only lose the feature to reject samples from the approximate posterior that lie outside of the prior.

That is only true for SNPE correct ? For SNLE/SNRE it requires the prior in order to calculate the posterior distribution, P(theta|X) = P(X|theta)P(theta) for SNLE and P(theta|X) = r(X,theta)P(theta) for SNRE

Yes, that's only true for SNPE.

For now, I recommend simply passing the original prior at initialization. I shouldn't make a big difference. I'll fix this next week.

@michaeldeistler any chance we can get this fix in for the release?
Or can you sketch a solution here quickly, then I can add it? Thanks!

I think the problem here is that when calling process_prior with a custom prior like the RestrictedPrior, the process function will check whether it has log_prob and sample and returns Tensors (Yes), but then wrap everything as a CustomPriorWrapper and thereby hiding the _accept_reject_fn needed for SIR.
One solution would be making RestrictedPrior a proper torch Distribution.
Or change the wrapping in user_input_checks e.g., not wrap if it is a RestrictedPrior.


Optimize HTML symbol content string allocation

See #873.
The Tokenizer class may be frequently instancied for small pieces of text (if there is C#/HTML mix). So I don't want to allocate a new dictionary for few symbol redundancy. That's why I changed my design to a simplier solution.
I cannot give Visual Studio 2017RC Profiling result (issue declared) or dotMemory screenshot (too few contributions the free licence :-). But I have added manually counters to evaluate the same LargePageMvc page. It goes from ~215000 to ~73500 Buffer.ToString() calls. So the optimization saves ~142500 string allocations for this file.

Hi @Yves57, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

All continuous integration checks have failed. But I think that the errors are not specific to my request. Do I need to do something?

Yeah I don't see anything in the logs that has to do with your changes. Once the PR is signed off we can kick those off again

Agreed, let's merge this for now - @Yves57 if you think there is low hanging fruit in the C# parser let's do that too.

@NTaylorMullen can you try rerunning appveyor + travis and then merge it?

@NTaylorMullen can you try rerunning appveyor + travis and then merge it?

I reran Travis and Eilon is taking care of appveyor.

@NTaylorMullen assigning to you to do the needful.

Merged.


Issue #1536 - Build and test on both AMD64 and ARM64

Revive TravisCI and add build job for Linux ARM64.
Last build at TravisCI is 4 years ago - https://travis-ci.org/github/alibaba/tengine

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Any comments ?

@yaoweibin @lianglli Friendly ping...
Do you think it could be a potential merge? It bring benifit for user want to use Tengine on ARM。

travis is no longer free, we use github workflow currently, check its config file : https://github.com/alibaba/tengine/blob/master/.github/workflows/ci.yml


Add stride and contiguous flag to tensor

Changes proposed in this PR:

Add stride
Add checking is countigous flag to tensor

This patch is an anchor for #217
Self evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #220. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnsuite.mooo.com/.

:octocat: cibot: @zhoonit, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnsuite.mooo.com/nntrainer/ci/repo-workers/pr-checker/220-202006241311050.10133194923401-0a6276b8542aee878ab9f982fb016effeb08d289/.

:octocat: cibot: @zhoonit, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnsuite.mooo.com/nntrainer/ci/repo-workers/pr-checker/220-202006241624140.25720191001892-f224a6859f31c51011b552fc8dd376c3cd63bed6/.


Ability to create tables from JSON

@mariobehling looks good design wise?
What images are you referring to? These aren't links as the data object obtained from the API call returns only titles and no Urls for the same. Should we also add URLs in response and make them links?

The heading says ability to add tables. This is not a table but a list.
@Orbiter What do you expect as an output here?

Should we also add URLs in response and make them links?

I think URLs would be great. Please open an issue in the server and we check what others say. Thanks.

sure!

Actually, it's a table. The actions type says it's a table:
"actions": [
      {
        "type": "answer",
        "expression": "Here is the list of articles about loklak"
      },
      {
        "type": "table",
        "columns": ["title"]
      }
    ]


Authentication are not referenceable

What seems off:
Authentication are not referenceable
What you expected to be:
Authentications defined at top level should be referenceable
Anything else we need to know?:
After discussing the issue with @matthias-pichler-warrify, and well aware than the reference system previously in place was a PITA (oneOf[AuthenticationDefinition, string]), the proposal is something like the following:
use:
  authentications:
    basicTest:
      basic:
        username: test
        password: test
do:
  - getPetById:
      call: openapi
      with:
        operationId: getPetById
        parameters:
          id: 69
        authentication:
          use: basicTest

While enabling the same than before, it:

Avoids oneOf constructs
Makes consistent use of objects
Makes the DSL more explicit, fluent and ubiquitous

One a side note, we could instead of use name it ref or whatever. My strong preference goes to use, which is more fluent, understandable, linguistical, is an imperative verb, and is not an abbreviation.

I would also add as an argument in favour of this proposal (at the end oneof has to be managed in other areas, for example tasks)  that this way all authentication information  is located in the same section of the workflow definition, making it easier its review (or changing it, although I believe that authentication information is more "variable" than flow definition and that we should provide means to optionally read it from external properties files. That way, once the workflow definition is "stable", if the auth information change, you need to change the external property file, not the workflow definition itself)

I would also add as an argument in favour of this proposal (at the end oneof has to be managed in other areas, for example tasks) that this way all authentication information is located in the same section of the workflow definition, making it easier its review (or changing it, although I believe that authentication information is more "variable" than flow definition and that we should provide means to optionally read it from external properties files. That way, once the workflow definition is "stable", if the auth information change, you need to change the external property file, not the workflow definition itself)

Totally agree! And even though users are still free to declare authentication inline (as I believe we shouldn't impose our will), we should probably insist, in the documentation, that the recommended way is to place them at top level instead, for all the good reasons you just provided.

we should provide means to optionally read it from external properties files

Yes, totally agree, too. One way to deal with it so far is using secrets, but it might not be enough. Maybe we could add an external resource, or an endpoint property?

@cdavernas As we have secrets, we might add props (acutally in Kogito secrets is used both for secrets and properties)

@fjtirado so you would like to add a keyword that contains, just as const in previous versions, keyed values that you can they use with runtime expressions? And that can possibly be loaded from an external file?
If I understood correctly your proposal, I'm definitely up for it. I would however avoid the suggested abbreviation and change itto: properties, globals, variables or something of the like.

@cdavernas Any of your proposed names is fine for me :), pick the one you prefer ;)

Chat GPT feedback on the question:
In the context of the Serverless Workflow DSL, the name for the argument containing declarative data for a workflow instance should ideally reflect its purpose and usage clearly. Let's consider the options provided:

Properties: This is a general term that could fit but might be too vague in some contexts.
Variables: This term suggests data that can change, which might not fully cover the use case if the data is meant to be static or semi-static.
Constants: This implies that the data is immutable, which may not be accurate if the data can change during the workflow execution.
Settings: This term typically refers to configuration values that dictate how something operates, which could be relevant but might not be the most precise.
Configuration: This is a strong candidate as it conveys that the data is used to configure or control the behavior of the workflow.

Given these considerations, Configuration stands out as a clear and appropriate name since it suggests that the data is used to set up or control the workflow's operation.
Alternative Suggestions

Context: This term implies the data relevant to the workflow instance and could cover both static and dynamic aspects.
Metadata: This could be a suitable term if the data is descriptive and used to define properties of the workflow.
Parameters: This term conveys that the data can be used as inputs or controls for the workflow's execution.
Attributes: This term can imply properties that define or describe the workflow instance.

Final Recommendation
Out of all these options, Configuration seems the most fitting because it clearly suggests the purpose of the data in controlling or defining the workflow's behavior. If further clarity is needed, a combination term like WorkflowConfiguration or InstanceConfiguration could also be considered to be more descriptive.

My vote goes to configuration as the name of the runtime expression argument, and configure for the top-level property used to specify the workflow's properties.
What do you guys think @ricardozanini @fjtirado @JBBianchi @matthias-pichler-warrify ?

@matthias-pichler-warrify
In my opinion constants are hardcoded values that you do not want to duplicate in several places, so you define them in the header of the definition and refer to them in the rest of the document (as you did in the previous comment) , while the name we are discussing refers to configuration values read from a external configuration source (it is up to every implementor to define the valid configuracion sources)

Ah ok I somehow missed the "loaded at execution start". But hat is optional is it? They might be defined in the definition as well right?
I mean to some extent they are still constant for the duration of the execution...
I think if we go with configuration I would actually also go with use/configuration and $configuration. Potentially config is also a common enough abbreviation (even outside of tech?) that we might also consider it? (No strong opinions here though)

@matthias-pichler-warrify
About config being constant (picky comment warning ;))
I would say that a particular runtime implementation might  read config when it is needed. In such case, if the config is accessed within a loop, it can potentially return different values (its a pretty rare occurrence but potentially possible). My point is that config is not necessarily constant

@fjtirado That is actually a very good point 👍 and actually I would argue that the specification should clarify this! (Whether configuration values can change within one execution)
I have a preference for configuration staying constant for the duration of an execution. Otherwise it might cause weird config drift for long running executions

@matthias-pichler-warrify I will fight for implementation freedom ;)
Just kidding, I do not really have a strong opinion about that, I feel the important point is to have a standard construct to access external configutation.


Option to Clear Search Results when Search Text is Cleared?

downshift version: from CodeSandbox Demo
node version:from CodeSandbox Demo
npm (or yarn) version:from CodeSandbox Demo

Relevant code or config
na
no change to code shown at https://codesandbox.io/s/6z67jvklw3
What you did:
typed a search term, then backspaced to delete all search text
What happened:
the entire available list of terms to be searched is displayed. In my app, this is 5400 items.

Here is a gif capturing this:

Reproduction repository:
https://codesandbox.io/s/6z67jvklw3
Suggested solution:
Is there a configuration option to clear the list of search results when all search text is removed?

Beautiful. Thanks, Kent!


Update dependencies

What kind of changes does this PR include?

Something else!

Description

Updates dependencies in docs and starter projects
Updates development dependencies in the starlight integration

size-limit report 📦

Path
Size

/index.html
13.15 KB (0%)

/_astro/*.js
16.21 KB (0%)

/_astro/*.css
8.54 KB (0%)


AttributeError: 'BatchGen' object has no attribute 'shape'

I am using TensorFlow version 1.15 for a project. I have converted a BioBert pre-trained model into a Keras layer following the code here. However, when I run my code, I get the following error:
Traceback (most recent call last):
  File "/home/jupyter-belona/.conda/envs/mimic-proj/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/jupyter-belona/.conda/envs/mimic-proj/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/jupyter-belona/Untitled_Folder/deep-learning-clinical-forecast/mimic3newmodels/decompensation/main.py", line
152, in <module>
    verbose=args.verbose)
  File "/home/jupyter-belona/.conda/envs/mimic-proj/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/trainin
g.py", line 1296, in fit_generator
    steps_name='steps_per_epoch')
  File "/home/jupyter-belona/.conda/envs/mimic-proj/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/trainin
g_generator.py", line 144, in model_iteration
    shuffle=shuffle)
  File "/home/jupyter-belona/.conda/envs/mimic-proj/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/trainin
g_generator.py", line 477, in convert_to_generator_like
    **num_samples = int(nest.flatten(data)[0].shape[0])**
AttributeError: 'BatchGen' object has no attribute 'shape'

Please, how do I fix this error? I really need your help.

@etetteh Could you please provide us with a simple stand alone code so we could replicate the issue faced by you.

Please, the steps involve

cloning this repo
creating the tf.Module Keras layer following this colab file
The model to use is:

from __future__ import print_function
from __future__ import absolute_import

import logging
from mimic3newmodels.biobert.biobertlayer import BioBertLayer

import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.layers import Input
from tensorflow.keras.models import Model

log = logging.getLogger('tensorflow')
log.handlers = []

class Network(Model):

    def __init__(self, dim, task, num_classes=1, input_dim=76, **kwargs):

        self.dim = dim

        if task in ['decomp', 'ihm', 'ph']:
            final_activation = 'sigmoid'
        elif task in ['los']:
            if num_classes == 1:
                final_activation = 'relu'
            else:
                final_activation = 'softmax'
        else:
            raise ValueError("Wrong value for task")

        print("==> not used params in network class:", kwargs.keys())

        X = Input(shape=(None, input_dim), name='X')
        inputs = [X]

        encoder = BioBertLayer(bert_path="mimic3newmodels/biobert/bert-module/", seq_len=48, tune_embeddings=False,
                    pooling='cls', n_tune_layers=3, verbose=False)

        pred = tf.keras.layers.Dense(num_classes, activation=final_activation)(encoder(inputs))
        outputs = [pred]

        super(Network, self).__init__(inputs=inputs, outputs=outputs)

    def say_name(self):
        return "{}.n{}".format('biobert_pubmed',
                                self.dim,
                                )

Download the dataset here
run this line of code
python -um mimic3newmodels.decompensation.main --network mimic3newmodels/biobert/biobert.py --dim 128 --timestep 1.0 --mode train --batch_size 8 --output_dir mimic3newmodels/decompensation/BIOBERT

@etetteh
As per the code shared  imported layer is from "from mimic3newmodels.biobert.biobertlayer import BioBertLayer" , whereas the repository shared "https://github.com/YerevaNN/mimic3-benchmarks/tree/master/mimic3models" mimic3newmodels is not present in "mimic3-benchmarks".
Also please refer to this link if it helps resolve the issue.

@etetteh
Could  you please respond to the above comment.

Please find the needed files here:
https://drive.google.com/drive/folders/1i_CGyn5vQ0WTs6KXjB6KMd6nvZ_vqxlo?usp=sharing
On Mon, Mar 2, 2020 at 9:02 AM Saduf2019<EMAIL_ADDRESS>wrote:

@etetteh https://github.com/etetteh
Could you please respond to the above comment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/36734?email_source=notifications&email_token=AGZQ72GUAQGOKDOHP2TOVWLRFNKWZA5CNFSM4KUYXM2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENOEXAA#issuecomment-593251200,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGZQ72GVPEUN4SQQWKLL3YLRFNKWZANCNFSM4KUYXM2A
.

@etetteh
I am unable to access the link shared.

@etetteh
If possible can you please share a colab link of the same with us, we are unable to replicate with the information shared as it still shows same error as informed earlier.

@etetteh
As per the code shared imported layer is from "from mimic3newmodels.biobert.biobertlayer import BioBertLayer" , whereas the repository shared "https://github.com/YerevaNN/mimic3-benchmarks/tree/master/mimic3models" mimic3newmodels is not present in "mimic3-benchmarks".
Also please refer to this link if it helps resolve the issue.

I don't have a colab file as I wasn't working in Colab.
Please use this instead
from mimic3models.biobert.biobertlayer import BioBertLayer"
Please, check the subdirectories well and create init.py file if necessary.
Create a folder inside the mimic3models called biobert and copy the files here
inside it. Please, let me know if you need more info

@etetteh As this issue is not not related to build/install, bug/performance, feature request or doc related to issues please post this issue in stackoverflow as there is a wider community to respond. Thanks!

@etetteh
please update as per above comment


[In progress] Update Properties work

adding post method to update triage properties for a dump id

@schaabs, the UpdateTriageInfo is causing dumps to be deleted from the main page (i.e. if I try to add a property to dump '1234' then '1234' becomes deleted from the table.

@bryanar The problem here was that UpdateDumpTriageInfo was originally designed to totally replace all the triage data for the dump.  So when you specific triage data that doesn't contain the FAILURE_HASH or the ALL_THREADS property this data is removed from the dump.  And when it dosen't have FAILURE_HASH, there is no corresponding bucket and hence it doesn't end up in the report.
I've updated TriageDb.UpdateDumpTriageData to be able to take incremental update to the TriageInfo without clearing previously specified data, unless it is explicitly set.  This changed was merged in with commit https://github.com/Microsoft/dotnet-reliability/pull/74/commits/a9e0ceee9a6c4346effb918b59b1d90f656496e1

Excellent! Ill test this shortly.

@schaabs Merge this if it looks good to you?

@bryanar Looks like you pulled my latest commits into your commit somehow? could you back out your the changes for the other files besides DumplingServiceController.cs


[Enhancement] Store Greyscale or Color images

Not sure how well this is possible, from my knowledge the ESP32 Cam should not only support GRAYSCALE , but also RGB888 (images with 3 color channels of 0 - 255) or even direct a stream as JPEG.
Would be cool to be able select if the image stored by the app is in color or maybe even a color JPEG

This would be a nice feature! Could add a selectable save type option for it (save as displayed on Flipper, or an image as best possible by the esp32 cam -> jpeg?)
I wonder if it would also be possible to not only stream the image, but broadcast it on a certain frequency. Flipper Zoom?

I'm not sure if it's possible to save the JPEG on the Flipper via the I/O as it might be impactful on the performance to stream the full channel data. However it should be less impactful and a better approach if the camera has a memory card to save jpeg directly from the esp32 to it. I will look into this as soon as I can.

Staged new functionality for this here:
https://github.com/CodyTolene/Flipper-Zero-Camera-Suite/pull/25/files#diff-57c15f919300b26a2bdce1d377a017ea8f8769815e8e4c108925f6d1cfbea243
It's not implemented yet, but most of the functionality is there it just needs to be tested. Will be able to look into this more as time permits. Thanks for the good suggestion.


Cannot get dependency data with custom es index prefix

I deployed Jaeger in my Kubernetes cluster. When I changed the elasticsearch index prefix with environment value called 'ES_INDEX_PREFIX', I found I can search traces and spans but cannot get any dependency data. I have ensured that the collector and query modules both have the same environment value called 'ES_INDEX_PREFIX'.   And the spark-dependency module runs well with the logs as blow.

19/03/16 17:00:04 INFO ElasticsearchDependenciesJob: Running Dependencies job for 2019-03-16T00:00Z, reading from trace-test-jaeger-span-2019-03-16 index, result storing to trace-test-jaeger-dependencies-2019-03-16

So is there any wrong with my operations? Or is it a bug? Thanks a lot.

I am sorry that there is a same issue https://github.com/jaegertracing/jaeger/issues/1238 and the pr https://github.com/jaegertracing/jaeger/pull/1386 has been merged in Release 1.11.0 https://github.com/jaegertracing/jaeger/releases/tag/v1.11.0


Added setup and run scripts (GiveMeBagdeWINDOWS.bat and GiveMeBadgeMAC_LINUX.sh)

Scripts that automatically install the requirements, and then run the bot.

An idea for the file names: setup.bat and setup.sh. I find GiveMeBagdeWINDOWS.bat and GiveMeBadgeMAC_LINUX.sh to be a bit wordy. Just my personal opinion, though.

There is only need to have a starting script that can also tell you what is wrong if anything. I have added such to the script.


Zoomable Drawee? [question]

Hello, I would like to display a large image in the drawee and allow user to pan and pinch-zoom.  I found this zoomable drawee in Java; could you please help me to get this functionality in Angular NativeScript?
https://github.com/facebook/fresco/tree/master/samples/zoomable
I am a novice, sorry if this is an obvious question. Thanks!

Hi @pevdv ,
Thank you for bringing this to our attention. The current implementation of the nativescript-fresco plugin does not support the use of this ZoomableDraweeView.
I will tag this as a feature request as it will be very much useful to have as built-in feature in one of the future versions of the plugin.

Thanks, I look forward to that future release!

@VladimirAmiorkov Hey any update for zoom feature?

A possible alternative is here: https://github.com/triniwiz/nativescript-image-zoom


[BEAM-3645] improve test cases for ParallelBundleManager

After introducing ParallelBundleManager, empty inputs can be passed. Improve test cases for FnApiRunnerSplitTest to make sure split_manager is only invoked when the input is not empty.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

R: @robertwb

Thanks Robert!


Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue
No applicable update found.
Brief description of your issue
Winget perpetually reports this package as out of date.
Mailbird                         Mailbird.Mailbird                      2.9.58  2.9.61    winget
Updating it results in no change.
This is expected because there is no version 2.9.61 of mailbird.
The current Alpha version is 2.9.62, and would be listed as Mailbird.MailbirdAlpha (or something) but you have to register to get access to the installer.
Steps to reproduce
winget install mailbird
winget upgrade --all

Actual behavior
Mailbird still has an update.
Expected behavior
Mailbird should be reported as being fully up to date.
Environment
PS L:\> winget --info
Windows Package Manager (Preview) v1.3.1611-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.739
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.1611.0

Screenshots and Logs

I would attempt to fix this myself but there appear to be a lot of existing issues around Mailbird that have attempted to resolve the issue.

The developer of the application accidentally pushed the alpha build to everyone.
They already fixed this so just the InstallerSha256 in the package needs to be updated.


[WIP] Add XGB base class

As the title says.

This pr is closed due to the modifications have been included in #427 and #434


Public agent questions!

Could someone explain me how to run/build multi-thread example to make it work with "Public agent"?
I have tried to start it in many ways but was able to use only Context and Job agents.
And i stuck with next info: "You should compile a worker which have to be spawned in a separate thread". Why?
Unfortunately docs are very tiny :(

and what is a purpose of "bin" file inside "static" folder? Is it documented anywhere?

Okay! After hours of experiments i understood that i have to include additional WASM with Public agent if i want a real new thread.
P.S.: alias folders are not working under Windows :)


Updated to Luau 0.631 & Bytecode V6

Read but left unused - seems to be only used in codegen

Bytecode v6 flags are not enabled in current fiu test check, we will wait on #45 to test your luau bytecode v6 support.


Does Not Cover VS2017

The steps in this article based on Visual Studio 2015. If you're using another version of Visual Studio, the procedures might vary slightly.
VS2017 is not even in the same ball park and VS2019 is on the way - good luck. I can't make debugging work.

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

ID: ad34b5e8-8b67-5dfd-db60-60a9ac3ffc24
Version Independent ID: b8b446ec-bb85-04f5-d6bf-198ba0288e04
Content: Create and debug Office Add-ins in Visual Studio
Content Source: docs/develop/create-and-debug-office-add-ins-in-visual-studio.md
Product: office
GitHub Login: @o365devx
Microsoft Alias: o365devx

Thanks. We'll look into this.
For MS internal: https://office.visualstudio.com/OC/_workitems/edit/2508285

@Rick-Kirkham Should I assign this to another writer?

@lindalu-MSFT Nope. I got it.

@laultman thanks again for the feedback; this article has been updated.


Sequence diagram support?

Is there a plan to add support for sequence diagram? Something that can be used like on hackmd.io (I think they are using mermaide ).

For the same reason as MathAjax: it is based on JavaScript, which Sublime's Phantom don't handle. Apart from generating an image from Python and then linking it, I can't think of any solution. Feel free to PR, but I'm closing this as I don't think i'll implement this.
Feel free to reopen if you think of a smarter solution.


Question: How to capture the stdout of the python interpreter

Please see the following question I asked on stackoverflow: https://stackoverflow.com/questions/69203700/how-to-capture-the-stdout-of-the-python-interpreter-inside-the-rust-program-when
How can I achieve this with pyo3?
The use case is to envelope the output with the logger used by the Rust application.

Same as in Python, you replace sys.stdout (and maybe sys.stderr too) with a custom object whose write() method does what you want.

Ok, now that I can actually run and test something, here's an example:
use pyo3::prelude::*;

#[pyclass]
struct LoggingStdout;

#[pymethods]
impl LoggingStdout {
    fn write(&self, data: &str) -> PyResult<()> {
        println!("stdout from python: {:?}", data);
        Ok(())
    }
}

fn main() -> PyResult<()> {
    Python::with_gil(|py| {
        let sys = py.import("sys")?;
        sys.setattr("stdout", LoggingStdout.into_py(py))?;
        py.run("print('some', 'output')", None, None)?;
        Ok(())
    })
}

The output will be:
stdout from python: "some"
stdout from python: " "
stdout from python: "output"
stdout from python: "\n"

As you can see, depending on how the output is written to sys.stdout by the Python side, you may not get full lines in one go - you can accept that, add a line buffer in the Rust implementation, or make sure that the Python side uses write with full lines.

Thank you very much, this looks simple!


No module named 'prml'

I HAVE RUN Python setup.py build
and python setup.py install
then use jupyter to open  ch03_Linear_Models_for_Regression.ipynb.
BUT still report ---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
 in ()
4 get_ipython().run_line_magic('matplotlib', 'inline')
5
----> 6 from prml.features import GaussianFeatures, PolynomialFeatures, SigmoidalFeatures
7 from prml.linear import (
8     BayesianRegressor,
ModuleNotFoundError: No module named 'prml'
so how can i do to fix this?

I also meet the same problem....Have you solved this?thanks!

yes I have solve this  problem.
run jupyter notebook  type  %run setup.py build
%run setup.py install
then you can open and run the notes

yes I have solve this problem.
run jupyter notebook type %run setup.py build
%run setup.py install
then you can open and run the notes

how to run jupyter notebook concretely?Thanks

must upper python3.6

Alternatively, you could add the following into a code block at the beginning of the notebook.
import sys
if "../" not in sys.path:
    sys.path.append("../")

clone the repository on you terminal commad of you IDE , run the following code
git clone https://github.com/ctgk/PRML
if you want to work online check out the link https://colab.research.google.com/drive/1OtBevAIJZsm-kZOjS_G-z7Czc3T6xHYe#scrollTo=U-pTAGoXla5e

Alternatively, you could add the following into a code block at the beginning of the notebook.
import sys
if "../" not in sys.path:
    sys.path.append("../")

problem solved!thank you!

Dooray! Failure Notice
    Failure Notice

    Your message sent to

@.***)
has failed to be delivered.
      Please refer to the below for details.

        * Recipient :

@.***)
        * Sent time :

2024-09-13T00:42:08
        * Subject :

Re: [ctgk/PRML] No module named 'prml' (#9)
            * Remote host said :

Your mail was denied from the receiver.
      This message was sent from a notification-only address that cannot accept incoming email.
      For more information, please contact<EMAIL_ADDRESS>

    © Dooray!.


Autoshutdown/RCON commands broken when no one's in game

I think auto shutdown doesn't work if the game is started but has not yet been joined. (TBC)

Update: seems to be more that RCON isn't working if there's no one in game


iOS Runtime Errors - WalletConnect Not Working

Describe the bug
Our WalletConnect integration isn't working on iOS builds and I see an error in the logs:
ArgumentNullException: Value cannot be null.
Parameter name: method
  at Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory.CreateParameterizedConstructor (System.Reflection.MethodBase method) [0x00000] in <00000000000000000000000000000000>:0
  at Newtonsoft.Json.Serialization.JsonDictionaryContract.CreateWrapper (System.Object dictionary) [0x00000] in <00000000000000000000000000000000>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateNewDictionary (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, System.Boolean& createdFromNonDefaultCreator) [0x00000] in <00000000000000000000000000000000>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <00000000000000000000000000000000>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x00000] in <00000000000000000000000000000000>:0
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <00000000000000000000000000000000>:0
  at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <00000000000000000000000000000000>:0
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <00000000000000000000000000000000>:0
  at WalletConnectSharp.Storage.FileSystemStorage.Load () [0x00000] in <00000000000000000000000000000000>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0
  at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0
  at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

at WalletConnectSharp.Storage.FileSystemStorage.Init () [0x00000] in <00000000000000000000000000000000>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0
  at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback callback, System.Object state, System.Threading.Tasks.Task& currentTask) [0x00000] in <00000000000000000000000000000000>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <00000000000000000000000000000000>:0
  at System.Threading.Tasks.Task.TrySetException (System.Object exceptionObject) [0x00000] in <00000000000000000000000000000000>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <00000000000000000000000000000000>:0
  at System.Threading.Tasks.Task.TrySetException (System.Object exceptionObject) [0x00000] in <00000000000000000000000000000000>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetException (System.Exception exception) [0x00000] in <00000000000000000000000000000000>:0
  at WalletConnectSharp.Storage.FileSystemStorage.Load () [0x00000] in <00000000000000000000000000000000>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0
  at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0
  at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

To Reproduce
I just added the modal to the build and then ran the build like I normally would.
Expected behavior
No errors and WalletConnect modal should show up.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment

OS: iOS 17.5.1
Unity version: 2022.3.37f1
Web3Modal Package Version: 0.4.2

Is this happening in Unity Editor or on a player like Android, iOS, Windows?
Only happens on iOS - prompt works on windows and android.
Wallets used for testing
N/A - can't even get to that point.
Additional context
Add any other context about the problem here.

And obviously this is the error I get when I try to open the modal:
  at WalletConnect.Web3Modal.Web3Modal.OpenModal (WalletConnect.Web3Modal.ViewType viewType) [0x00000] in <00000000000000000000000000000000>:0
  at PinkMoon.World.Blockchain.WalletConnectWalletProviderService.Connect () [0x00000] in <00000000000000000000000000000000>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0
  at PinkMoon.World.Blockchain.WalletConnectWalletProviderService.Connect () [0x00000] in <00000000000000000000000000000000>:0
  at PinkMoon.World.Blockchain.BlockchainClientService.Connect (PinkMoon.World.Accounts.WalletType walletType, System.String emailAddress) [0x00000] in <00000000000000000000000000000000>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0
  at PinkMoon.World.Blockchain.BlockchainClientService.Connect (PinkMoon.World.Accounts.WalletType walletType, System.String emailAddress) [0x00000] in <00000000000000000000000000000000>:0
  at PinkMoon.World.Login.LoginCreateAccountView.ExternalWalletToggleChanged (System.Boolean isOn) [0x00000] in <00000000000000000000000000000000>:0
  at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 ```

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

Hello!
Have you set Managed Code Stripping to Minimal in the Player settings?

Hello!
Have you set Managed Code Stripping to Minimal in the Player settings?

Thanks this did solve the issue on the start on both android and iOS so now the modal comes up but I am getting this error now:
[websocket-connection-197952ff-48fa-417b-b31a-8b1bf22a9a60] Error: Unable to connect to the remote server
NativeWebSocket.<Connect>d__32:MoveNext()
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
UnityEngine.WorkRequest:Invoke()
UnityEngine.UnitySynchronizationContext:Exec()

I have attached the larger log file with the relevant WalletConnect lines.
logs.txt

Also I have metamask already installed on the device and its up to date on the latest patch and it doesn't open the wallet and just shows this - not sure if its related:

Error: Unable to connect to the remote server

Could you please try changing the relay url in the WalletConnectProjectConfig scriptable asset from wss://relay.walletconnect.com to wss://relay.walletconnect.org?

Also I have metamask already installed on the device and its up to date on the latest patch and it doesn't open the wallet and just shows this

The SDK needs to connect to the WalletConnect relay before establishing a connection with any wallet. So, it's probably related to the first issue.
Also, based on the screenshot, it seems you're running the game in the Editor with iOS/Android as the target platform. In this case, the Web3Modal UI and user flow will be the same as on mobile. However, since there’s no desktop MetaMask app, you’ll need to use another desktop wallet (e.g. Ledger Live or Zerion) or scan QR code with your phone. In the mobile Web3Modal UI, the QR code button can be found next to the search input field on the "All wallets" screen.

@skibitsky I tried updating it to the URL but still no luck? any ideas on how I can get you more info to help troubleshoot? That error is pretty vague.

@skibitsky a little more info - i am getting this in the Unity editor as well when I'm on android or iOS platforms but not on Windows.

Also interestingly enough - our other library that is using web sockets is also failing on android / ios. I'm trying to see if there's something specific that needs to be done on Android/iOS for web sockets.

This is very strange, especially that it doesn't work in the Editor with some platforms. Have you tried exiting Unity, deleting Library folder, and opening Unity again?

This is very strange, especially that it doesn't work in the Editor with some platforms. Have you tried exiting Unity, deleting Library folder, and opening Unity again?

@skibitsky is there something more targeted? If I delete the library folder i'll be here for 3 days waiting for Unity to import everything.
The only platform it seems to work on consistently is PC other than that I can't get it to work on any mobile platforms - as builds or in editor.

is there something more targeted?

Library/Bee? We only use WebGL preprocessor directive in the WebSocketConnection and WebSocket scripts, so I think there's a high chance that it's a Unity bug, or there's another tool in your project that causes this behaviour.

I saw some stuff about headers being missing

We use query parameters instead of headers for higher compatibility.


prevent people from deleting user ids

So, I thought I had found a super slick way to delete all items within my account (I had nothing but stuff used to test out the sbtools distance learning lesson), but turns out I deleted my user id or something.
I ran this [DON'T DO IT] which in hindsight was not so brilliant:
item_rm(item_get(user_id()), recursive = TRUE)

Then tried to get info about my user id with no luck.
> is_logged_in()
[1] TRUE
> user_id()
Error in res$items[[1]] : subscript out of bounds

When I go to the site and click on "My Items" from the home page,

I get a "Page Not Found" message.

We should add in something to sbtools to prevent others from doing this.

I want to work on testing of the item manipulation functions... will add this to the list in that work.


JS: tableFromJSON cannot handle nested objects containing strings

$ node

const g = require('apache-arrow')

g.tableFromJSON([\{a: [ { b: "hi" } ]}])

The dictionary types:

TYPE Dictionary {indices: Int32, dictionary: Utf8, isOrdered: false, id: 12}dictionary: Utf8 {}id: 12indices: Int32 {isSigned: true, bitWidth: 32}isOrdered: falseArrayType: (...)children: (...)typeId: (...)valueType: (...)[[Prototype]]: Dictionary
typecomparator.ts:191 OTHER

OTHER Dictionary {indices: Int32, dictionary: Utf8, isOrdered: false, id: 14}dictionary: Utf8typeId: (...)[[Prototype]]: Utf8id: 14indices: Int32 {isSigned: true, bitWidth: 32}isOrdered: falseArrayType: (...)children: (...)typeId: (...)valueType: (...)[[Prototype]]: Dictionary

This happens here:
else if (arraysCount + nullsCount === value.length) {
        const array = value;
        const childType = inferType(array[array.findIndex((ary) => ary != null)]);
        if (array.every((ary) => ary == null || (0, typecomparator_js_1.compareTypes)(childType, inferType(ary)))) {
            return new dtypes.List(new schema_js_1.Field('', childType, true));
        }
    }

So we're always instantiating a new dictionary type, with a new id, when we do inferType(ary), so this is never going to succeed.
Reporter: Samuel Schneck
Assignee: Samuel Schneck
PRs and other links:

GitHub Pull Request #14554

Note: This issue was originally created as ARROW-18208. Please see the migration documentation for further details.

I wonder if the fix could be as simple as ignoring the type.id when comparing 2 dictionaries (https://github.com/apache/arrow/blob/87a1852d3578ecdf23e776e65bf30f0ee1f2362f/js/src/visitor/typecomparator.ts#L197). If two dicts are same in every other way (other than type.id which is NEVER the same), aren't they technically of the same type of columns? Or sub-columns?
In my case, I can convert nested JSON objects as complex as below to Arrow, when I comment it out:
describe('tableFromNestedJSON', () => {     test('created a table from a nested json', () => {         const table = tableFromJSON([             {                 a: 42,                 c: 'foo',                 d: [                     {                         da: 'abc',                         dc: null,                         dd: [1, 23, 3],                         de: [                             {                                 dda: 'a',                             }                         ],                     },                     {                         da: null,                         dc: 45,                         dd: [51, 3],                         de: [                             {                                 dda: 'b',                             }                         ],                     },                 ],             },             {                 a: 12,                 c: 'bar',                 d: [                     {                         da: 'def',                         dc: null,                         dd: [],                         de: [                             {                                 dda: 'e',                             }                         ],                     },                     {                         da: 'xyz',                         dc: 76,                         dd: [1, 2, 3],                         de: [                             {                                 dda: null,                             }                         ],                     },                 ],             },         ]);         expect(table.numRows).toBe(2);         expect(table.numCols).toBe(3);         expect(table.getChild('a')!.type).toBeInstanceOf(Float64);         expect(table.getChild('c')!.type).toBeInstanceOf(Dictionary);         expect(table.getChild('d')!.type).toBeInstanceOf(List);         const list = table.getChild('d')!;         expect(list.getChildAt(0)!.type).toBeInstanceOf(Struct);         const struct = list.getChildAt(0)!;         expect(struct.getChild('da')!.type).toBeInstanceOf(Dictionary);         expect(struct.getChild('dd')!.type).toBeInstanceOf(List);         expect(struct.getChild('dc')!.type).toBeInstanceOf(Float64);     }); });
However, I'm if this still causes the same type of failure mentioned by [MannySchneck] (https://github.com/MannySchneck) in https://github.com/apache/arrow/pull/14554#issuecomment-1298946553 since I could'd reproduce it myself.

The example at the top here is
arrow.tableFromJSON([{ a: [{ b: "hi" }] }])

but just noting there's an even simpler failure case:
arrow.tableFromJSON([{ a: ["hi"] }])

also throws this error.
I might dig in a little more if I have some time soon.

Any updates on this? I'm having the same problem and I'm stuck in it!

I am facing the same issue too. Any updates on this? Or Can you guys suggest a workaround for the issue?


Issue with refilling ap.

Hi, I am playing the EN version of FGO and whenever the script tries to refill AP, it gets this far https://puu.sh/BfFnO/2bab799eeb.png, but instead of pressing "OK" it presses the bottom right of the screen. The script also sometimes fails to go past the dropped items screen after a battle. I tried messing with the regular.lua file but even if I put delays to 50 the delay doesn't even change nor the location so I am not sure what I am doing wrong.

Hi, even after I remove that line the script simply presses the bottom right of the screen, instead of pressing "OK".

I'd like a video recording of your script execution behavior of:
Condition: have like enough ap to enter a stage, but not enough to proceed to farm 2nd time.
Flow:
Start the script in battle, wait for it to finish the result screen. Then it will click the same stage->not enough ap->try to autorefill->fail doing so(your reported bug)
I did not verbose every step of the script, so I'll have to look at the exact bugged process in order to figure out what's going wrong.
You can do simple recording by using Google Play Games IRRC.

Hi, here you go https://www.youtube.com/watch?v=b21bw4-Dwi4&t=3s

Okay, also I messed around with the regular.lua alot so I will upload that aswell.
luafiles.zip

Did you enable an option in ankulua called..... fast click(beta) or alternative way of click?(I have Chinese version of Ankulua)
Try disable them to see if it worked. Use the default option instead.(Daemon to capture and click)

No, these are my settings https://puu.sh/BfMZU/4b319d8684.png

I'll have to get an EN client and test it myself, it's going to take a while.
The script did not recognize this

and went straight into battle().
I'll look into it : D

Okay, thank you for the time.

Oh, dear please delete this, the real problem was I was editing a copy of the script ankulua was using. Sorry for wasting your time.

It's ok : D
Glad you solved it!


Q - There is no way to cleanup AWS resources without env being connected

If the user started setting up environment and for some reason environment failed to connect to altinity, the user has no way to discard the config and start anew. They have to debug the initial setup and make it work and only after that can they remove the resources.
Issue is that if for some reason user changes their mind in the middle of the process, then they have to manually remove all the resources that were provisioned in the cloud.

This how Anywhere BYOC AWS works, is not a problem of the provider itself. The only way we can access customer's AWS account is with the connect EC2 instance. Without it, we as admin can't also remove the resources and will always require manual procedures.
If the connection never worked, there is no issue because nothing was created.
If the connection worked but is not working anymore, it will require EC2 instance debugging. We can add a section in the docs to show how to do that (if it's missing). This EC2 instance could be created with or without Terraform, the docs should be at a global level (not only in Terraform setup)
The config can be discarded at any time, they just need to be responsible for the created resources
Users can still destroy the environment using skip_deprovision_on_destroy=true
This is not entirely correct. If the connection is stablished they can do and redo whatever they want. 👇

Issue is that if for some reason user changes their mind in the middle of the process, then they have to manually remove all the resources that were provisioned in the cloud.

closing since related bugs were fixed so far.


Untangle offline mode

Description
Right now the situation around the offline mode and federated avatars is a bit of a mess especially after #28548. I've tried to understand the code around it and not noticed, that the offline mode isn't changing anything regarding to CDN but is just used as an override to Disable Gravatar and Enable Federated Avatars. I think it would be a lot less confusing if the offline mode setting would be just removed and the avatar features are controlled directly. Also since GRAVATAR_SOURCE exists, DISABLE_GRAVATAR can also be removed.
Gitea Version
1.22
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
With NixOS ofcourse
Database
PostgreSQL

Hmm yes, some options on the installation page and in the config file are totally a mess .... I totally agree with you 🤣
They need to be refactored with a new design.

that option was mainly to disable the cdn and just serve locally
I think it's still functional as I really notice no cdn actually

that option was mainly to disable the cdn and just serve locally

I don't think that functionality exists anymore. I have offline mode turned off and all assets except for LibreAvatar and some extensions are served from Gitea itself.


Flet build MacOS M1 error on M2

Hey guys,
When I bundle the .app on my M1 and distribute it to an M2 machine I get the following error upon opening the app.
Shouldn't all Silicon builds be compatible? Would be much appreciated if you could look into the attached error report.
Thank you!
crash_when_open.txt

What command did you use to build it?

Does it work on M1? Have you tried building and running on M2?

It should be cross-compatible by all means, in theory, right? I'm not really sure what to recommend, as I don't have an access to M1 :)
OK, can you try doing a trivial app in Flutter (as you have Flutter SDK already), build it on M1 and then try on M2?


customize efficientnet

Hi, i want to use efficientnet_pytorch.from_name(...) function in gen-efficientnet-pytorch.
from efficientnet_pytorch import EfficientNet
import torch
import torch.nn as nn

class LyftModel(nn.Module):
    def __init__(self, cfg: Dict):
        super(LyftModel, self).__init__()

        self.backbone = EfficientNet.from_name("efficientnet-b1")
        num_history_channels = (cfg["model_params"]["history_num_frames"] + 1) * 2
        num_in_channels = 3 + num_history_channels
        num_targets = 2 * cfg["model_params"]["future_num_frames"]
        self.backbone._conv_stem = nn.Conv2d(
            num_in_channels,
            self.backbone._conv_stem.out_channels,
            kernel_size=self.backbone._conv_stem.kernel_size,
            stride=self.backbone._conv_stem.stride,
            padding=self.backbone._conv_stem.padding,
            bias=False,
        )
        self.avg_pool = nn.AdaptiveAvgPool2d((1, 1))
        self.fea_bn = nn.BatchNorm1d(1280)
        self.fea_bn.bias.requires_grad_(False)
        self.binary_head = nn.Linear(1280, num_targets)
        self.dropout = nn.Dropout(p=0.2)

    def forward(self, x):

        img_feature = self.backbone.extract_features(x)
        img_feature = self.avg_pool(img_feature)
        img_feature = img_feature.view(img_feature.size(0), -1)
        fea = self.fea_bn(img_feature)
        fea = self.dropout(fea)
        output = self.binary_head(fea)

        return output

Thanks in advance.

@sailfish009 Aside from the extra bn layer you've placed after the pooling, which I don't think is very helpful as  there is a BN before that (see below). you can just call geffnet.create_model('efficientnet_b1', num_classes=num_targets, in_chans=num_in_channels, pretrained=True, drop_rate=0.2)
https://github.com/rwightman/gen-efficientnet-pytorch/blob/master/geffnet/gen_efficientnet.py#L264-L266
BTW, your code is not for this version of PyTorch EfficientNet, it is for https://github.com/lukemelas/EfficientNet-PyTorch

@rwightman Thanks for the solution, i will give it a try.


Barplot in logarithmic x-axis

Hello,
thanks for this nice adaption of graphics grammar to matlab. While I created a boxplot on a logarithmnic x-axis, the width of the boxes seems to be fixed for a specific value. This does not work for logarithmic axis. The width is changing from very wide boxes to thin lines over 2 decades. Is it possible to fix this behaviour for log axes?
Cheers
Niklas
Try the following code:
%Create data
x=repmat(1:10,1,100);
catx=repmat([1 2 4 8 16 32 64 128 256 512]*0.01,1,100);
y=randn(1,1000)*3;
y=2+y+x+c*0.5;
%Draw
clear g
figure()
g=gramm('x',catx,'y',y);
g.stat_boxplot();
g.axe_property("XScale","log");
g.set_title('Width of Boxplot changes from thick to thin');
g.draw();

Hi @Niklas123Niklas
Thank you for the issue, and sorry for the gigantic wait. Gramm was on hold but I now have the opportunity to work on it!
From what I see, Matlab's own boxplot doesn't behave properly when axes are logarithmic. In these case I would suggest to "fake it" by making x a categorical variable and/or modifying the ticks/legends without actually setting the axis to log.
g=gramm('x',categorical(catx),'y',y); g.stat_boxplot(); g.set_title('Width of Boxplot changes from thick to thin'); g.draw();
After the draw call it's possible to edit the x ticks (or before with axe_property) to get values that match what you want.

Hi @piermorel,
thanks for the comment. I looked into what I was asking for, and replacing the labels made me think of just using log10(x) to convert the data in logartihmic values, plot them on linear scale and adjust the labels to powers of 10. With this, the width of the bars is nice and the label adjustments would be similar as your suggestion.
%Create data
x=repmat(1:10,1,100);
catx=repmat([1 2 4 8 16 32 64 128 256 512]*0.01,1,100);
y=randn(1,1000)*3;
y=2+y+x+catx*0.5;
%Draw
clear g
figure()
g=gramm('x',log10(catx),'y',y); % log10 here
g.stat_boxplot();
g.set_title('Width of Boxplot changes from thick to thin');
g.draw();


How to Find Year

How to find 2000, 1989 or Any Other Year Easly |
This is Nice ... if You Add This Feature Its become Awesome Man !!

Thank you for this. Will get this added in soon!

Just added this in the latest commit. Could you check it out?


saltless branch end-stage-cleanup (ESC)

This is waiting on #944 and I've also marked this as draft until I'm reasonably convinced most things are working.
It is a working (with some known problems) saltless branch.

I unmarked this as a draft. Please review; but do not merge before #944 as that should be reviewed separately and merging this would also close/accept #944.

force merged (for lack of review) ... the 4.1 branch is very soon to be completely irrelevant anyway


Can you guys share the source code of element.eleme.io?

That would be a nice reference, I think.

https://github.com/ElemeFE/element/tree/master/examples

Thanks!


add ga

added ga tracking code
added config per environment

Adding auto track was a pain.  I tried import 'autotrack and following instructions at https://github.com/googleanalytics/autotrack/issues/137 but could not get to work with web pack, so reverted to custom build for now


Detect non-interactive pre-commit hook calls by IDE

Description of Change
I noticed that pre-commit hooks called by vscode are always non-interactive (not tty attached). So that made the pre-commit scripts and talisman fail.
This PR now make the pre-commit hook to differentiate between interactive and non-interactive calls.
Within the branch-warning script, I made the default to acknowledge non-trunk commits; for me, it defaults to do a new branch first, commit there, and create a PR.
Checklist

[x] PR description included and stakeholders cc'd
[ ] tests are changed or added
[x] yarn test passes
[x] yarn lint has been run
[x] git pre-commit hook is successfully executed.
(Please refrain from using --no-verify)
[ ] yarn changeset was run and relevant packages have been updated as a major/minor/patch bump with descriptions
(Determine version update using Semantic Versioning)
[ ] relevant documentation is changed or added

Sorry for the delay on this one @jgrumboe -- but tested it locally and works well. Merging.


For anything other than genes in KG, how do I match ID and symbol?

First of all, thank you for organizing the synthetic reliability prediction task well. Thanks to you, I got better at researching this field :)
I was using a knowledge graph made by your lab called SynlethDB, but there was a difference compared to the knowledge graph provided here. I have two questions in this regard.

May I know what the difference is?
The only KG provided by GitHub is the id, can you tell me the name (symbol) that can be mapped with this? Here's the gene mapping file, but there's nothing else.

Thank you.

Thank you for your question regarding the SynlethDB knowledge graph. I'd like to explain the differences you've noticed and address your queries as follows:

Data Processing in SynlethDB:

In the SynlethDB’s KG, some genes are associated exclusively with SL, SR, or non-SL relations.
To prevent data leakage when using the KG, we removed the SL, SR, and non-SL relations from it. This removal affected genes that only had SL, SR, or non-SL relations, making it impossible to generate embeddings for them using the TransE algorithm. Consequently, these genes were omitted from the training data.
For consistency across all models, we identified a set of 9,845 genes that with relations other than SL. All SL data used in the benchmarking are based on the interactions among these 9,845 genes.

Symbol Mapping and Identification:
We have uploaded a new file to GitHub, which includes comprehensive details of all entities in the knowledge graph. This file contains the IDs, names, and types of all entities, enabling you to map the gene IDs to their corresponding names (symbols) more effectively.


Update Keywords in bounces.md

Description of the change:
Update keywords in bounces.md to reflect the actual content.
Reason for the change:
Link to original source:
Closes #3079
@ksigler7

Hello @NexWeb,Thanks again for the PR! It's HACKTOBERFEST! We want to show our appreciation by sending                                              you some special Hacktoberfest swag. If you have not already, could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX