Fix prompt formatting

Prompt formatting works well, but need more user configurable options as per psql. See the psql manual here.
In addition to the PROMPT* environment variables, the following need to be supported:
%M
The full host name (with domain name) of the database server, or [local] if the connection is over a Unix domain socket, or [local:/dir/name], if the Unix domain socket is not at the compiled in default location.

%m
The host name of the database server, truncated at the first dot, or [local] if the connection is over a Unix domain socket.

%>
The port number at which the database server is listening.

%n
The database session user name. (The expansion of this value might change during a database session as the result of the command SET SESSION AUTHORIZATION.)

%/
The name of the current database.

%~
Like %/, but the output is ~ (tilde) if the database is your default database.

%#
If the session user is a database superuser, then a #, otherwise a >. (The expansion of this value might change during a database session as the result of the command SET SESSION AUTHORIZATION.)

%p
The process ID of the backend currently connected to.

%R
In prompt 1 normally =, but @ if the session is in an inactive branch of a conditional block, or ^ if in single-line mode, or ! if the session is disconnected from the database (which can happen if \connect fails). In prompt 2 %R is replaced by a character that depends on why psql expects more input: - if the command simply wasn't terminated yet, but * if there is an unfinished /* ... */ comment, a single quote if there is an unfinished quoted string, a double quote if there is an unfinished quoted identifier, a dollar sign if there is an unfinished dollar-quoted string, or ( if there is an unmatched left parenthesis. In prompt 3 %R doesn't produce anything.

%x
Transaction status: an empty string when not in a transaction block, or * when in a transaction block, or ! when in a failed transaction block, or ? when the transaction state is indeterminate (for example, because there is no connection).

%l
The line number inside the current statement, starting from 1.

%digits
The character with the indicated octal code is substituted.

%:name:
The value of the psql variable name. See Variables, above, for details.

%`command`
The output of command, similar to ordinary “back-tick” substitution.

%[ ... %]
Prompts can contain terminal control characters which, for example, change the color, background, or style of the prompt text, or change the title of the terminal window. In order for the line editing features of Readline to work properly, these non-printing control characters must be designated as invisible by surrounding them with %[ and %]. Multiple pairs of these can occur within the prompt. For example:

testdb=> \set PROMPT1 '%[%033[1;33;40m%]%n@%/%R%[%033[0m%]%# '
results in a boldfaced (1;) yellow-on-black (33;40) prompt on VT100-compatible, color-capable terminals.

%w
Whitespace of the same width as the most recent output of PROMPT1. This can be used as a PROMPT2 setting, so that multi-line statements are aligned with the first line, but there is no visible secondary prompt.

To insert a percent sign into your prompt, write %%. The default prompts are '%/%R%x%# ' for prompts 1 and 2, and '>> ' for prompt 3.

This should be made available via Go's fmt.Formatter interface

This was added in d5db12eaa6fe48cd0a697831ad03d61611290576 and #388. Not everything is supported, but I'll close this issue, and maybe we can later add a new one for only the missing parts.


Creating Literals with datatype xsd:anyURI

It's not possible to create literals with datatype xsd:anyURI.
This issue is extracted from Issue #108 opened by @MiconSchorsij

I believe this page explains it pretty well: literals as anyURI (a symbol) causes problems.
https://www.zaibj.com/DesignIssues/QuotingURIs.html


Switch Wake on Lan Not Working (Docker)

Home Assistant release with the issue:

0.76.2
Last working Home Assistant release (if known):
Unknown
Operating environment (Hass.io/Docker/Windows/etc.):

Docker
Component/platform:

switch.wake_on_lan
https://www.home-assistant.io/components/switch.wake_on_lan/
Description of problem:
I added the switch.wake_on_lan with my ip address and mac address but it doesn't turn the relevant computer (Windows 10.)
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
switch:
  - platform: tplink
    host: <IP_ADDRESS>
  - platform: wake_on_lan
    mac_address: "10-7B-44-A1-A4-A1"
    name: Desktop
    host: <IP_ADDRESS>

Traceback (if applicable):

Additional information:
I've used a third-party wake on lan app which works with it before. I've turned off fast startup, it's enabled in bios and network adapter. Home Assistant turns on my LG WebOS tv via wake on lan perfectly. I have --net=host on my container and here's my docker run script
docker run -d --name="homeassistant" --net=host --restart="unless-stopped" -v /opt/docker/config/homeassistant:/config -v /etc/localtime:/etc/localtime:ro homeassistant/home-assistant

Is your Windows machine configured to work with WOL? For example, has it been switched on in the BIOS and network settings? Have you tested this with your PC in sleep mode?

Is this still an issue you are experiencing? Can you please try upgrading to the latest version of Home Assistant (0.90) and report back if this is still a problem? Thanks!

I have basically this exact same set-up and it works for me.

I have same issue and it isn't working.  Not getting correct status, third party apps do report correct status.

I'm experiencing this issue as well. It has been working before and via different methods the target PC is able to boot upon receiving the magic packet

I am having the same issue, WOL is not working through Hassio (Running in docker). Works well with other downloadable applications.

I don't use hassio, but I suspect this might be because the networking setup for the docker container prevents the magic packet from getting to the target network. I've got my networking setup to use host networking.

I'm using Hassio 0.98 in Docker with NGINX Proxy Manager and it's not working.
I tried switch / script solutions with no success, it's quite frustrating... Everything worked well when my HA was running under venv, then I moved to Docker and it stopped working. HA is in host network, NGINX in hassio one, no way to make it work... It would be really helpful if someone could suggest some tip :_(

Same here. 0.101.3, unRAID, Docker. No platform: wake_on_lan functionality.
Please ... anyone.


Slow Network speed for large file transfers

Hello,
I have a home server running two VMs, Jellyfin and another NextCloud on bridge networking mode. The Host OS is Windows and hypervisor is VMWare.
I wanted to expose both to Internet so deployed a 3rd VM running Ubuntu 20 and then followed the installation instruction to install this software (Nginx Proxy Manager).
Following are some configuration details
Hardware -> Intel Core i7 4790 / 32GB DDR3 / SATA SSD / Gigabit LAN
Host OS -> Windows 11
Hypervisor -> VMWare 16
Router -> <IP_ADDRESS> (having the public IP)
Ports -> 80/443 is forwarded to Nginx VM
Host OS -> <IP_ADDRESS>
VM-Jellyfin -> <IP_ADDRESS>
VM-NextCloud -> <IP_ADDRESS>
VM-Nginx -> <IP_ADDRESS>
Nginx Host added as subdomain-jellyfin.mydomain.com -> goes to jellyfin and similar 2nd subdomain for nextcloud too.
Setup works. Both these VMs (Jellyfin / NextCloud) are accessible from outside internet via their respective subdomains.
However large file transfers are really really slow when going via this Reverse proxy VM. For example, both NextCloud or Jellyfin VMs are unable to sustain more than 15-20 megabits. The transfer (upload or download) starts fine with my connections max speed, but gradually within few seconds, it starts to slow down and settle at around 15-16 megabits / sec.
Just to compare, if I cut the middle proxy VM by directly exposing the Jellyfin or Nextcloud VMs to the internet via router port forwarding, both of them are able to run at full speed of my connection (250 megabits / sec). Be it upload or download.
Since this Proxy Manager is web UI based, so chance of me messing up anything is slim. I have not enabled SSL in any of my VMs. I have not added any extra or advance config argument to the proxy manager UI.
So what should I do now to troubleshoot this performance issue?
Thanks in advance.

Try lighttpd and see if it works better instead of nginx, then try apache. It could be that what's happening is you don't have the computing power to push the full uncompressed file through the internet. You should be compressing files to make it easier to transfer the reason why Jellyfin is fine is because it compresses the video.

I notice you haven't responded or anything but HAProxy is another easy to set up load balancer/proxy solution.

Hello,
Pardon me for the delayed response. I was & still spending time with the setup to tune it up for best possible performance.
Here is the update,
Based on your first reply, I started digging.

It could be that what's happening is you don't have the computing power to push the full uncompressed file through the internet.

I doubt that. At least from the Host Windows resource usage reporting. CPU isn't getting bottlenecked. I have a dedicated video card for Jellyfin media transcoding so playback over internet is dead smooth without any load in CPU. The issue was never that, rather it was when I am trying to download a large file, speed was dead slow when going via NPM

Also you shouldn't compare your amateur solutions to big corp solutions, they have CDNs and redundant instances via docker.

I am not at all comparing myself with any large corp with high end hardware. But things work as they are supposed without the proxy in between and things are slowing down (specially the large file transfers) when putting the proxy in between. That is what I am trying to troubleshoot

(You should really consider switching to docker, pod man, containerd, instead of having everything in their own VM it's way more efficient)

Everyone has their own need based on the available resource. So based on my setup, VM works the best for it's untouched portability feature. It's really easy for me to move or backup the entire VM without much of a technical challenge.
Afterall, for non technical users like me, this GUI based Proxy Manager felt the easiest and best option to go for over HAProxy or any other solution.
Anyway, coming to my issue, I have made some progress,
I did few changes based on your views. I have moved the Jellyfin out from VM and into the Host OS directly. Can't understand why it effected things, but speeds are much better and usable now. Still not the fastest or stable but I am able to archive 80/90 Mbits with the proxy in between.
However that landed me into another issue. Large file download / uploads were erroring out at 1GB mark. Searched for the same over the internet & that pointed me towards proxy_max_temp_file_size. As per nginx documents, I guess the default size is 1GB, so added that extra argument in Proxy Manager GUI panel advance settings and set the value to 16GB (max what I or my users would need). Further, I increased the NPM VM disc to allow such large file writing. That solved the issue of erroring out.
I am still searching & reading about the speed fluctuations, what further can be done or where to look for fixing it.
Thanks.

Hi,
I had to put this:
proxy_request_buffering off;
client_max_body_size 0;
in my advanced part to get nextcloud to send files at normal uninhibited speed.
See if that works.
Regards,
Lue.

Hi,
I had to put this: proxy_request_buffering off; client_max_body_size 0;
in my advanced part of the proxy host to get nextcloud to send files at normal uninhibited speed.
See if that works.
Regards, Lue.

I am having the same issue where I could not upload bigger than 100MB. I added those lines under the Advanced tab, and restarted NPM, but nothing has changed.

@kabaga  Have you checked your php memory limit in nextcloud?

@lue30499 Yes, I added these two lines to my docker-compose file. I also checked it also shows in the web UI those values
      - PHP_MEMORY_LIMIT=8G
      - PHP_UPLOAD_LIMIT=10G

Hello,
It's bit sketchy but as suggested here, following settings under advance configuration are somewhat working for me,
proxy_request_buffering off;
proxy_max_temp_file_size 10240;
client_max_body_size 0;

Thanks.

Hi,
I think the issue is because you have your NPM as a bridge connection. I would recommend setup up a macvlan network. This would register the NPM on your local network with its own mac address. This should allow you to have your max upload/download speed for Nextcloud.

Hi,
I think the issue is because you have your NPM as a bridge connection. I would recommend setup up a macvlan network. This would register the NPM on your local network with its own mac address. This should allow you to have your max upload/download speed for Nextcloud.

Thanks, I'll try that when I can

I still having upload limitation with NPM.
Anything from above mentioned doesnt work.
Any Ideas?

NextCloud and OwnCloud do not support X-Sendfile, though I have made requests (with patches) in the past.
https://github.com/nextcloud/server/issues/29467
https://github.com/nextcloud/server/issues/29467#issuecomment-1666089363

owncloud and nextcloud use SabreDAV under the hood to for WebDAV support.
If you're using owncloud or nextcloud specifically to serve files, and like me you're frustrated that owncloud and nextcloud have not implemented X-Sendfile, then you might consider giving lighttpd another look.  lighttpd mod_webdav is a fully-featured WebDAV file server (Class 1, 2, 3).  Since lighttpd 1.4.65, lighttpd mod_webdav serves files very efficiently (e.g. using OS sendfile()) along with supporting partial PUT with webdav.opts += ("partial-put-copy-modify" => "enable"), if you need partial PUT.
Some modern filesystems support efficiently cloning files, making it less expensive to copy to a tempfile, modify, and atomically rename the modified tempfile to replace the original.  lighttpd mod_webdav uses OS-specific APIs to take advantage of such filesystem features.  lighttpd mod_webdav webdav.opts += ("partial-put-copy-modify" => "enable") is safe to set when using an extent-based filesystem, e.g. ext4, or other filesystems drivers in the linux kernel which implement copy acceleration  for Linux copy_file_range(), or Mac OS clonefile().

Unstaling the issue
&&
Confirming that proxy_buffering off; under advanced did the trick for me, a toggle in the UI to enable it "officially" would be very welcome.


Assigning 'null' to webwindow

HI,
Recently I reviewed a document regarding Boost strap for XAF new style. It's good to see and use. Thanks for providing such option.
But while implementing in devexpress 16.2.3 based xaf solution it gets error immediately when pressed logon. I know that u have applied this option and verified in Devexpress v15.2. Me too using the same. But somehow I need to provide the same option in v16.2
kindly provide me an idea / guide me to get out of the issue.
Thanks In Advance
Warn Regards.

Hi, thank you for using XAF Bootstrap.
We haven't tested it with 16.2 yet, but we plan to prepare solution after New Year (maybe in January).
If you provide a trace log of error - we could say more about it.

Type:       NullReferenceException
Message:    Object reference not set to an instance of an object.
Data:       0 entries
Stack trace:
at DevExpress.ExpressApp.Web.SystemModule.FocusController.ClearHolders()
at DevExpress.ExpressApp.Web.SystemModule.FocusController.OnDeactivated()
at DevExpress.ExpressApp.Controller.activeList_ResultValueChanged(Object sender, BoolValueChangedEventArgs e)
at DevExpress.ExpressApp.Utils.BoolList.OnResultValueChanged(Boolean oldResultValue, Boolean resultValue)
at DevExpress.ExpressApp.Utils.BoolList.EndUpdate()
at DevExpress.ExpressApp.Utils.BoolList.set_Item(String key, Boolean value)
at DevExpress.ExpressApp.Frame.<>c__DisplayClass4.b__1()
at DevExpress.Persistent.Base.SafeExecutor.Execute(Method method, Object targetObject, String targetObjectIdentifier)
at DevExpress.ExpressApp.Frame.Dispose()
at DevExpress.Persistent.Base.SafeExecutor.<>c__DisplayClass1.b__0()
at DevExpress.Persistent.Base.SafeExecutor.Execute(Method method, Object targetObject, String targetObjectIdentifier)
at DevExpress.Persistent.Base.SafeExecutor.Dispose(IDisposable targetObject, String targetObjectIdentifier)
at DevExpress.Persistent.Base.SafeExecutor.Dispose(IDisposable targetObject)
at DevExpress.ExpressApp.Web.WebApplication.DisposeCore()
at DevExpress.ExpressApp.XafApplication.b__1()
at DevExpress.Persistent.Base.SafeExecutor.Execute(Method method, Object targetObject, String targetObjectIdentifier)
at DevExpress.ExpressApp.XafApplication.Dispose(Boolean disposing)
at DevExpress.ExpressApp.XafApplication.Dispose()
at DevExpress.ExpressApp.Web.WebApplication.DisposeInstance(HttpSessionState session)
InnerException is null

Type:       Exception
Message:    An error with number 1079 has occurred.
Error message: Unknown exception occurs. Cannot retrieve the exception details
Data:       0 entries
Stack trace:
InnerException is null

Thank you,
It needs more time to research this.
For now you can disable XAF Bootstrap custom login page - to do this you have to comment code listed below:
https://github.com/Terricks/XAFBootstrap/blob/master/XAF Bootstrap/Module.cs#L97#L99

Have a committed same project for v16.2


Fix embedding of raster images

Current coverage is 91.43% (diff: 89.28%)

Merging #120 into master will increase coverage by 1.57%

@@             master       #120   diff @@
==========================================
  Files             5          5
  Lines          2080       2090    +10
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1869       1911    +42
+ Misses          211        179    -32
  Partials          0          0

Powered by Codecov. Last update 8d20805...de1441f


feat(releases): adds headsOnly flag to release to toggle full channel…

… pulls
The headsOnly configuration, in terms of releases, is meant to enable only the latest
OCP versions from channels to be mirrored. It defaults to true. When set to false, the min
and the max OCP versions in the channel will be chosen and the shortest upgrade path between the two
will be calculated and mirrored.
Signed-off-by: Jennifer Power<EMAIL_ADDRESS>Description
^^
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?

[x] Unit tests
[x] Manual testing

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

cc @afflom for logic/design review

This may also resolve the issues reported on #292. Will need to be verified.

I didn't see it, but I may have missed it: does this handle a declared min with an omitted max as shortest path from declared min to channel head and vice versa?

@afflom that is not a use case in this branch. The only use cases for releases are the three docs:

Specify a range
Specify no range with headsOnly set to false (get shortest path from min of the channel to the max)
Specify no range without headsOnly set (get the latest in the channel only)

Ok, good to know I can kind of follow what you wrote. Do you want that in this pr or in the backlog?

I can add that in this PR. I want this to be able to serve as a model for the rest of the content so we should get it right in this PR.

@afflom PTAL. Thanks!

beautiful. over to you @deejross

/lgtm


Visual errors

In the latest version I have found that a lot of visual bugs / errors occur.

This happens in 2 out of 3 matches, and it also already happened in the non bugfix version of 2.5
Edit: Others encountered this issue as well.

I've noticed that changing the 1st player colour doesn't affect the colour of the trebuchet model engineers(maybe some more troops too, I'm not sure), also spawning workers firstly are of original colour, on their "showing up" phrase, and after they're ready to move, that's when their colour changes correctly as the mod settings are. It also affect of course the other player(the original one, from whoom we took it's colour for the 1st player).

So far I have not met such a bug...

@ByBurton I encountered that as well.. but it seemed to only happen at high game speed (~700 or higher maybe)? Was that the same for you? Also: Saving and Reloading fixes it.

@Panaminion That is right. Both of your points.
@Rakso69 This issue is already opened #58

Poor Nizar :(

@ByBurton Oh. I don't understand german, but I'll keep in mind it would be wise to translate it before type anything. Thanks

Could you send me your modified Stronghold Crusader.exe where this happens via email (on my profile)?

@Sh0wdown Will do, I guess.

Thats the bug i got with the unfixed 2.05 version. Doesn't happen anymore though

Thats the bug i got with the unfixed 2.05 version. Doesn't happen anymore though

For me it still does.

Today I caught the exact same bug :(

I haven't managed to reproduce this yet. Could someone upload a save file where this happens?

@Sh0wdown I uploaded here the link https://drive.google.com/file/d/1YyFdsIMpRlZKMKhuzev_9JPCVzt2OneJ/view?usp=sharing

Thank you, at least I could see it now myself. But it vanishes quickly after loading.
I am not sure what causes this. Could you who experience this, test around a bit with what Patch-Settings this happens?
I suspect one of the following settings:

Player 1 color change
Increase of the total/general troop limit
Only AI mode

@Sh0wdown Ok I'm testing.

@Sh0wdown I tested and got Bug again :(

https://drive.google.com/file/d/1uiyDEwHMPQ1h5OuWuRZfpLmy_NwGfib5/view?usp=sharing

Player 1 color change
Increase of the total/general troop limit
Only AI mode

Could you test whether it happens when you only have "AI only mode" enabled?

I played 1 match. There was no graphic bug. I think it happened either because of the choice of color or because of AI mode only. Because I increased the limit of troops.

@Sh0wdown I just tried the patch, and got the same glitches...

No color change, but "pure AI mode" as well as the increased general unit limit to 5000 (which is the default value).
My bet would be on the unit limit, as color change would seem fully unrelated, while higher unit limit seems more likely to be related to additional "ghost units" appearing. Maybe some overflow or pooling issue?

@Lolasik011 I edited my above post after some further testing.
I agree it looks as if the "AI only" mode causes the issue, and high amounts of actual units in the game may cause it to occur more frequently / easily / heavily.

Also, I got the "We are under attack!" message a couple times with AI-only mode - sometimes even when player red was long dead and gone. Possibly some surviving chickens got shot at?

@Heroesflorian Yes, he gives the hidden features :) Personally, I had a graphical bug only in AI mode vs AI. In other modes, everything is fine.
We will wait while @Sh0wdown fix this problem.

@Sh0wdown I tested with "AI only mode" activated and without increased troop limit, and otherwise default mod settings, so far. Dunno if any of the "older" default-checked mod features are relevant, though.

@Heroesflorian Try deactivating the max. limit of units on a map (to the default ones).

Being able to control an AI lord's troops and 'play in co-op mode' with them is very interesting. I noticed that when I reloaded an AI only game too. This feature should be kept if possible!

Being able to control an AI lord's troops and 'play in co-op mode' with them is very interesting. I noticed that when I reloaded an AI only game too. This feature should be kept if possible!

I agree this has potential. Although I'd prefer if there was a more "clean" way in future patch versions, if possible, to let you start a game that way already. Anyway...
@ByBurton I probably won't have time for further tests for a couple days I'm afraid. But feel free to test yourself in the mean time, possibly you can find out more! :)

@Sh0wdown The last three things, which you said should get new issues are in one of the very first issues I have opened up here. It is a list of bugs I noticed. At least the quarry stockpile.

It could be that the AI still wants money and since it cannot destroy walls or the economy it goes to the next level of destroying things, i.e. barracks and resource buildings. Maybe I should have another look at this and add even more options.

https://youtu.be/75NJ5ayozZU?t=196
Here this happened to Udwin.

Haven't had this happen since basically forever. Will close this, but if someone experiences this again I will open it again.


link 8 of dens's sigchain signs in a revoked PGP key

it was a bug in kbpgp that we weren't catching it, now in review
just ignore this sigchain link, since it can't do anything useful

r? @oconnor663

The commits 2fd9af915fd1...cf2ee194ff90 introduce visual changes on linux. :mag_right: 1 changed

Changed: Chat_Input-Emoji_Open (before) (after)

The commits 2fd9af915fd1...f0eb6ca8d3e3 introduce visual changes on linux. :mag_right: 1 changed

Changed: Chat_Input-Emoji_Open (before) (after)


Add ashishk1331 profile

Please don't add your profile on top, choose a section in somewhere between

Please don't add your profile on top, choose a section in somewhere between

Okay

Deployment failed with the following error:
Resource is limited - try again in 3 hours (more than 100, code: "api-deployments-free-per-day").

Lmao

PR is merged, changes will be live after 3 hours.


Allow single process workers

Users should be able to specify that the jobs worker should be run in the same process as the web application instead of running via a separate CLI command

I think this would be easier said than done since it would require inventing some way for two commands to run at once. Or we'd need to make a separate command that serves + runs jobs. Either way, composability of commands would be an issue I think.

That's what I thought at first too, but I think it would be pretty easy to just abstract the logic inside of the existing command into another class that could be called manually, right? So in jobs.swift you could run:
JobsCommand().run()
And since the existing method doesn't return a future already it should be setup to just run in the background.

Ah, yeah, that makes sense. That seems related to abstracting out Jobs into JobsKit, too. The command stuff should really just be calling into APIs that the user themselves can call if they want to build custom commands 👍

Yeah agreed, we should abstract some of this stuff out


Decrypting null Value Returns Empty String

When a @Route is defined with one or more parameters that default to a null value, ParamDecryptor will return an empty string "". This can have unintended side effects, as the code is written to expect null.
One such example would be utilizing the framework bundle's ParamConvertor: when it receives a non-null value, it will attempt to convert the value; e.g., a Doctrine database lookup. Because ParamDecryptor returns an empty string, this will most-likely cause a object not found by the @ParamConverter annotation error to occur.
The expectation of decrypting a null value would be to return a null value. If that is somehow not feasible (e.g., backward compatibility), then I would ask for an option in ParamDecryptor that I could set to ignore encrypting/decrypting null (or better yet, to ignore configured values) values.
Reproduce:
    /**
     * @Route("/admin/awards", methods={"POST"}, defaults={"id": null})
     * @Route("/admin/awards/{id}", methods={"POST"}, requirements={"id": "[[:alnum:]]+"})
     *
     * @ParamDecryptor(params={"id"})
     *
     * @param Award|null $award
     *
     * @return Response
     */
    public function saveAward(?Award $award = null): Response
    {
        ....
    }

My apologies. It turns out I had a routing conflict that was causing the router to think the value of id was some other value that would've caused the issue regardless of ParamDecryptor.


can't get the pre location in the listenBefore handler

const getHashPathname = hash => {

    const questionMarkIndex = hash.indexOf('?')

    if( questionMarkIndex < 0 ) {

        return hash.substring(1)

    } else {
        return hash.substring(1, questionMarkIndex)
    }
}

hashHistory.listenBefore((nextLocation,callback) => {

    const preLocattion = window.location;

    const prePathname = getHashPathname(preLocattion.hash)

    if( prePathname == '/person/info/edit' ) {

        //...do something, only for this page
       //todo(nextLocation, callback)

    } else {
        callback()
    }

})

every is work well, while i click the browser's back/forward.
when click the browser's back/forward, the window.location.path is changed to the nextLocation.
then i look up the source code. found the private variable location in createHistory is the real  preLocation.  so we can pass it to the listenBefore event

In version 4 (the current version) you can get the current location using history.location and the next location in your history.block callback:
history.block(location => {
  // history.location is the current location
  // location is the next location
})


Added a new folder

I'll be adding 2-3 solutions here on daily basis in this folder till January.
Thanks

Thanks buddy


New disposable address

Hello, here are new disposable address domain:
mailox.biz - https://www.mohmal.com/en/view
freeinbox.email - https://freeinbox.email/
nospam.today - https://nospam.today/

fixed in 56937a18672bae4930d3b1e4c1d2b4f72b8ebb40


Translatable slugs for the blog and it's categories  + language switcher

Hello there!
So one simple problem is preventing us from pushing the blog on live which is the fact that both languages have the same slug for the blog, and it's categories. Those need to be translatable.
I'm not quite sure what that entails, is it possible at all?
Per example, we have a category, named [EN]Category 2/[Fr]Catégorie 2
their URLs are:
/en/blog/category/category-2
/fr/blog/category/categorie-2
I would assume this has to do with the fact that the fact that controller slugs are not translatable?
And the language switcher doesn't seem to support nice URLs and therefore gives duplicate content, which is bad for SEO. The URL in the language switcher is something like this:
/en/category?cat_rewrite=categorie-2
Can we somehow get these fixed?

Any update on this?

I'm not quite sure what that entails, is it possible at all?

Not sure, having every core URL translatable is something new in thirty bees, modules is a different story.

/en/category?cat_rewrite=categorie-2

I can't reproduce this one, but you can always filter the cat_rewrite in the module's Smarty template:
{$link|regex_replace:'/[\?|&]cat_rewrite=.*$/':''}

The problem i have with this approach is that $link->getLanguageLink returns the weird string from the OP. I can try and do some weird regex_replace like earlier, but this problem is also the same for the blog module and a single post. and the fact that the 'rewrite' part of the url....well it gives the current language's slug, not the one it will be sent to.
per example, if i apply |regex_replace:'/[?|&]cat_rewrite=(.*)$/':'/$1' to the link that getLanguageLink gives..well it gives it to me in FR while the switch should go to the engligh page, which in turn gives a 404.
What would cause this?


More flexible configuration for IAM and stable naming for roles

this PR aims to fix issue #500 allowing Node Pools to use an existing instance profile. It also includes a brief improvement for IAM Roles managed by kube-aws supporting customer managed policies (ref #340), it also makes IAM Roles fixed and not depending on the stack name if you have configured managedIAMRoleName.
If kube-aws manages the IAM Role it will create a customer managed policy for controllers and for workers, then it will create an IAM Role with this policy attached, that enables policy updates without the need to recreating the whole stack and kube-aws users can tailor the policies to their current needs.
if kube-aws uses an existing InstanceProfile it will not create an IAM Role and the InstanceProfile used should be attached to an IAM Role with the enough level of grants to make the cluster work.
By default if you don't configure an iam block in your worker/controller  kube-aws would manage the role for you.
if you set iam.managedIamRoleName, the IAM Role will be created with the name {AWS::Region}-$managedIamRoleName.
if you set iam.existingInstanceProfile, kube-aws will use that instance profile.
if you set both, kube-aws would fail as these options are incompatible.
#  #iam:
#       # This will create a named IAM Role managed by kube-aws with the name {AWS::Region}-$managedIamRoleName.
#       # It will have attached a customer Managed Policy that you can modify afterwards if you need more permissions for your cluster.
#       # Be careful with the Statements you modify because an update could overwrite your own.
#       # the Statements included in the ManagedPolicy are the minimun ones required for the Controllers to run.
#       # managedIamRoleName: "yourManagedRole"
#       # ATTENTION: if you decide to use an existing InstanceProfile you need to ensure it has the needed permissions for kube-aws to run.
#       # kube-aws will not manage and never manage this InstanceProfile. IAM Roles will not be created by kube-aws in this case.
#       # existingInstanceProfile: "arn:aws:iam::YOURACCOUNTID:instance-profile/INSTANCEPROFILEID"

probably we can expand this to define custom iam policies in cluster.yaml, i think this model brings flexibility without confusing cluster.yaml more, but i'm happy to hear your thoughts.
i will be very glad if this is merged, @jpb (this is related to your #556 work), @c-knowles this is implementing customer managed policies.

Codecov Report

Merging #607 into master will decrease coverage by 0.08%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #607      +/-   ##
==========================================
- Coverage   37.99%   37.91%   -0.09%
==========================================
  Files          50       50
  Lines        3277     3284       +7
==========================================
  Hits         1245     1245
- Misses       1830     1836       +6
- Partials      202      203       +1

Impacted Files
Coverage Δ

core/controlplane/config/stack_config.go
71.42% <ø> (ø)
:arrow_up:

core/controlplane/cluster/cluster.go
43.33% <ø> (ø)
:arrow_up:

model/node_pool_config.go
22.58% <0%> (-0.76%)
:arrow_down:

core/controlplane/config/config.go
55.77% <0%> (-0.2%)
:arrow_down:

model/controller.go
0% <0%> (ø)
:arrow_up:

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 2daa8dd...464f57b. Read the comment docs.

@Fsero Thanks for your efforts here!
I did add some comments but

i think this model brings flexibility without confusing cluster.yaml more

Definitely.
Great job 👍

@mumoshu i've implemented the proposed changes in syntax for cluster.yaml and included the features from #340.
cluster with existing instance profile

cluster with existing instance profile detail from workers

cluster with fixed role name and managed policies

cluster with fixed role name and managed policies detail from workers

i did some validation to prevent mistakes writing the cluster.yaml, i hope this is enough to got it merged :)
let me know wdyt @mumoshu

@Fsero Really an awesome work! 👍
LGTM overall and this will be merged after v0.9.6 is cut shortly.
I may add nits but they won't prevent this from merging 😄

Wow, thanks for the quick turnaround @Fsero!
LGTM and I'm now waiting for the travis build to finish.

@Fsero Merged. Sry if you've force-pushed one more commit after I've confirmed the build status and merged the PR. If you had further changes, I'd appreciate it if you could open up an another PR!
Thanks again for your efforts 🍻

Thanks for your detailed review @mumoshu and for the efforts for making kube-aws great. See you in another PR :beers:


[Feature] Could anyone rewrite the bert model code ?

I find a pre-trained bert in tf-hub https://tfhub.dev/tensorflow/bert_zh_L-12_H-768_A-12/2  and its document says that I can find how to use it in https://github.com/tensorflow/models/blob/master/official/nlp/bert/run_classifier.py
But in run_classifier.py , the code is ugly and difficult to understand . Since the tf document contains a transformer model example use tf.keras.Model https://www.tensorflow.org/tutorials/text/transformer , could anyone rewrite the bert model code and document like that ?

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.

Perhaps This is an issue which asking for a more detailed documentation ...

@rmothukuru
I get it in https://github.com/tensorflow/models/issues/8801 .
Thank you all !


fix: cosmos sdk empty overview APY

Description

Notice

[ ] Have you followed the guidelines in our Contributing guide?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #3861   👈

This comment was auto-generated by Graphite.


Broken, unneeded GzipSwift is blocking consumers of mlx-libraries

The latest release of GzipSwift is broken due to typos in the package file (https://github.com/1024jp/GzipSwift/issues/65). This package is only consumed by the MNIST target of mlx-swift-examples. I'm using mlx-libraries from this repo in my app, and it's pulling in the broken GzipSwift, which isn't needed and is blocking me from building my app. It would be great if this dependency could be removed from mlx-libraries.
Perhaps it would be best to split mlx-libraries into a separate, minimal repo, to reduce overhead and complications for consumers of this package?

Splitting the examples repo is probably a larger task and I am not sure we want to go there yet.  For this we can at least fix it by pinning it to a good release.  We don't need the latest and greatest gzip integration.

I'm happy to take on splitting out mlx-libraries into a separate repo if you'd like. I've basically already done that in my own fork of this repo, and in the example apps it would just involve changing some references to the libraries.


chore: bump manifest version v1.17.3

Allure Report
allure-report-publisher generated test report!

processReports: ✅ test report for 6a4d344a

passed
failed
skipped
flaky
total
result

Total
32
0
4
0
36
✅


Export BVH file ?

Or other format that can be used in a 3d engine?

I have not used a 3D engine yet, you can process the outputs in your format.


Feedback on Quickstart

For the step "Ingredient 2 / 3: Embedding", I had to follow the instructions on space to download the model...   Maybe this is a case where "if you can't figure out how to get a spacy model, you shouldn't be using hover" ;-)

python -m spacy download en_core_web_md

Also, when running in NOTEBOOK MODE with Jupyter,
This command didn't work:

show(interactive_plot, notebook_url='https://localhost:8888')

But I tried just

show(interactive_plot)

and had success, at least in showing the widgets right in the notebook....!  Now, I noticed that they don't quite fit, but that might be another issue.

Hi Eric, many thanks! I got too absorbed into making the in-browser quickstart work that I forgot about local environments.

For the step "Ingredient 2 / 3: Embedding", I had to follow the instructions on space to download the model...

I should have put a dependency note there for folks running the code in local environment. In the Binder environment spacy and the model are installed, but locally they are not required by hover, thus causing the issue you found.

This command didn't work:

show(interactive_plot, notebook_url='https://localhost:8888/')

But I tried just

show(interactive_plot)

Interesting. Some folks used to find it the other way around. Let me put both (one of them commented out) in the code block.

Now, I noticed that they don't quite fit, but that might be another issue.

Could you share like a screenshot?


module'SimPEG.regularization'has no attribute ''MakeSimplePetroRegularization'

hi ，i'm zhaoyang, you did excellent work.
i have a problem, when i try to run PGI_joint_no_petrophysical_means_information.ipynb, it gives
module'SimPEG.regularization'has no attribute ''MakeSimplePetroRegularization'
my simpeg version is 0.13.0.  How can I solve this problem？
appreciate.

Hi @ZhaoyangSU-CUP,
Thank you for your interest.
To run these notebooks, you need to run SimPEG from a specific branch (PGI is not yet part of the main distribution, but it will be in the next few months). The branch is examples/PGI_joint
If you are not sure how to do that, please follow the instructions in the README.md, section USAGE.
Please free to contact me again if you encounter any issues; your feedbacks are valuable to improve this repository.
PS: is this error is resolved by switching branch, I will be closing this issue, but feel free to create a new one.


V8: Dashboard subpages not accessible on mobile

when the dashboard page has no link to its own subpages somewhere, there is no way to access those pages via the menu.
e.g.:

usergroups, or user attributes or all sub(-sub)pages of "system & settings"..

What are we thinking a good fix for this would be? It sounds like the issue is that there are no links to subpages in there, do we want to just add one more level to output?

@KorvinSzanto
http://www.acorn.org.au/
This site has a mobile navigation that allows for opening top level pages and sub-pages. In experimenting with it, it looks to be very customizable. Something like this could be used to handle all the dashboard pages.
The site and mobile navigation was created by community member @Mesuva.

Yeah I think outputting more levels of the dashboard nav and just showing
collapse/expand arrows next to each item that lets you drill down would do
it. Kinda sucks that we have to essentially show the full dashboard nav +
the top level dashboard nav on every page (even if you're not on mobile)
but I'm not sure of another easy solution for it without having to bring in
some kind of AJAX which sounds painful.
On Wed, Aug 17, 2016 at 2:54 PM, Karl Dilkington<EMAIL_ADDRESS>wrote:

@KorvinSzanto https://github.com/KorvinSzanto
http://www.acorn.org.au/
This site has a mobile navigation that allows for opening top level pages
and sub-pages. In experimenting with it, it looks to be very customizable.
Something like this could be used to handle all the dashboard pages.
The site and mobile navigation was created by community member @Mesuva
https://github.com/Mesuva.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/concrete5/concrete5/issues/4127#issuecomment-240561238,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAgNwcC7vXS4xRjybuAs6Ah-pwDwxHgPks5qg4MTgaJpZM4JdGXS
.

This latest commit makes the navigation actually dynamic and stored in one spot; in 8.1 we can come back and actually make sub-pages loadable via AJAX.

At some point this was fixed !


Fix pil android

this should fix https://github.com/hyperion-project/hyperion.kodi/issues/50

Dang, I used the master branch as base an rebased on the support_for_pr branch, it included you commits of the github workflow... fixing now

OK, we're good to go.

Thank you. The master branch contains my test on the release creation functionality…
AI need to revert them or sync. After PR merge


fix: fix the operation messages paths

Related to: https://asyncapi.slack.com/archives/C34F2JV0U/p1701685416306489?thread_ts=1701618246.696289&cid=C34F2JV0U

@KhudaDad414 I still see the default file failing
I tried with a fresh browser and incognito mode

https://github.com/asyncapi/studio/assets/32505158/bcd03656-be75-4385-8790-ae6f329e0fa2
@Amzani interesting 🤔🤔 working fine for me.

/rtm


Escape sequences

New PR after repo clean.

@timung actually you don’t have to recreate the PR. There is another way to fix your PR:

backup your changes locally
reset your branch escape_sequences branch to HEAD~20
add cksystemsteaching/selfie as remote called “upstream”
fetch from upstream
merge escape_sequences with upstream/master
apply your changes again from the local backup


Update for release mender-convert 2.4.0

I won't merge until I can verify the links for the new images


I am not able to run the jarvis.py

ImportError: cannot import name 'SpeechLib' from 'comtypes.gen' (C:\Users\PRITAM MOHAPATRA\anaconda3\lib\site-packages\comtypes\gen_init_.py)
I am getting this error. can anyone please help me with it?
I have tried installing "pip install --upgrade --force-reinstall --user pyttsx3" but still not able to run it.
My operating system is windows10-Home-X64 bit

File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\pyttsx3_init_.py", line 20, in init
eng = _activeEngines[driverName]
File "C:\Users\PRITAM MOHAPATRA\anaconda3\lib\weakref.py", line 137, in getitem
o = self.datakey
KeyError: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\pyttsx3\drivers\sapi5.py", line 3, in
from comtypes.gen import SpeechLib  # comtypes
ImportError: cannot import name 'SpeechLib' from 'comtypes.gen' (C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\comtypes\gen_init_.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\PRITAM MOHAPATRA\anaconda3\lib\ctypes_init_.py", line 121, in WINFUNCTYPE
return _win_functype_cache[(restype, argtypes, flags)]
KeyError: (<class 'ctypes.HRESULT'>, (<class 'comtypes.automation.tagVARIANT'>, <class 'ctypes.wintypes.LP_c_long'>), 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\PRITAM MOHAPATRA\Downloads\untitled0.py", line 22, in
engine = pyttsx3.init()
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\pyttsx3_init_.py", line 22, in init
eng = Engine(driverName, debug)
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\pyttsx3\engine.py", line 30, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\pyttsx3\driver.py", line 50, in init
self._module = importlib.import_module(name)
File "C:\Users\PRITAM MOHAPATRA\anaconda3\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\pyttsx3\drivers\sapi5.py", line 6, in
engine = comtypes.client.CreateObject("SAPI.SpVoice")
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\comtypes\client_init_.py", line 250, in CreateObject
return _manage(obj, clsid, interface=interface)
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\comtypes\client_init_.py", line 188, in _manage
obj = GetBestInterface(obj)
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\comtypes\client_init_.py", line 110, in GetBestInterface
mod = GetModule(tlib)
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\comtypes\client_generate.py", line 110, in GetModule
mod = _CreateWrapper(tlib, pathname)
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\comtypes\client_generate.py", line 184, in _CreateWrapper
mod = _my_import(fullname)
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\comtypes\client_generate.py", line 24, in _my_import
return import(fullname, globals(), locals(), ['DUMMY'])
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\comtypes\gen_C866CA3A_32F7_11D2_9602_00C04F8EE628_0_5_4.py", line 1676, in
( ['out', 'retval'], POINTER(VARIANT), 'NewPosition' )),
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\comtypes_init_.py", line 329, in setattr
self._make_methods(value)
File "C:\Users\PRITAM MOHAPATRA\AppData\Roaming\Python\Python37\site-packages\comtypes_init_.py", line 698, in _make_methods
prototype = WINFUNCTYPE(restype, *argtypes)
File "C:\Users\PRITAM MOHAPATRA\anaconda3\lib\ctypes_init_.py", line 123, in WINFUNCTYPE
class WinFunctionType(_CFuncPtr):
TypeError: item 1 in argtypes passes a union by value, which is unsupported.

https://www.lfd.uci.edu/~gohlke/pythonlibs/
go there and check for pyaudio, based on ur system requirements install the desired whl file.

Hi Gaurav,
I tried install pyaudio whl files and its saying :
"Requirement already satisfied: PyAudio==0.2.11 from file:///C:/Users/public/Downloads/PyAudio-0.2.11-py2.py3-none-any.whl in c:\users\pritam mohapatra\anaconda3\lib\site-packages (0.2.11)"
But still i am facing the same issue.

Even Tried Installing comtypes :
pip install C:\Users\public\Downloads\comtypes-1.1.7-py3-none-any.whl
Requirement already satisfied: comtypes==1.1.7 from file:///C:/Users/public/Downloads/comtypes-1.1.7-py3-none-any.whl in c:\users\pritam mohapatra\appdata\roaming\python\python37\site-packages (1.1.7)

Can you give a try with python 3.8 version by installing it separately apart from anaconda's version of python? I have done it the same. I have anaconda but done with the latest python 3.8

Hi Gaurav,
if i am trying to run it in pythin 3.8 its giving an error :
Traceback (most recent call last):
File "C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\speech_recognition_init_.py", line 108, in get_pyaudio
import pyaudio
ModuleNotFoundError: No module named 'pyaudio'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\PRITAM MOHAPATRA\Downloads\Jarvis.py", line 76, in
query = takeCommand().lower()
File "C:\Users\PRITAM MOHAPATRA\Downloads\Jarvis.py", line 27, in takeCommand
with sr.Microphone() as source:
File "C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\speech_recognition_init_.py", line 79, in init
self.pyaudio_module = self.get_pyaudio()
File "C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\speech_recognition_init_.py", line 110, in get_pyaudio
raise AttributeError("Could not find PyAudio; check installation")
AttributeError: Could not find PyAudio; check installation
If i am trying to install pyaudio then its giving the below error :
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Building wheels for collected packages: pyaudio
Building wheel for pyaudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-gr7y4ucj\pyaudio\setup.py'"'"'; file='"'"'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-gr7y4ucj\pyaudio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-wheel-e0d771ry'
cwd: C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-gr7y4ucj\pyaudio
Complete output (9 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying src\pyaudio.py -> build\lib.win-amd64-3.8
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
ERROR: Failed building wheel for pyaudio
Running setup.py clean for pyaudio
Failed to build pyaudio
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-gr7y4ucj\pyaudio\setup.py'"'"'; file='"'"'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-gr7y4ucj\pyaudio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-record-01q3zypl\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\pyaudio'
cwd: C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-gr7y4ucj\pyaudio
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying src\pyaudio.py -> build\lib.win-amd64-3.8
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-gr7y4ucj\pyaudio\setup.py'"'"'; file='"'"'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-gr7y4ucj\pyaudio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-record-01q3zypl\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\pyaudio' Check the logs for full command output.
i have tried installing microsoft visual C++ but still getting this error!

Are you installing pyaudio with whl file, do it with whl file downloaded only. I got the same error while doing by pip install pyaudio.

yeah i have tried both even after using installing using whl file
after saying "'I am JARVIS. Please tell me how can I help you SIR?'
i am getting this error :
============ RESTART: C:\Users\PRITAM MOHAPATRA\Downloads\Jarvis.py ============
Could not import the PyAudio C module 'portaudio'.
Traceback (most recent call last):
File "C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\speech_recognition_init.py", line 108, in get_pyaudio
import pyaudio
File "C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pyaudio.py", line 116, in
import _portaudio as pa
ModuleNotFoundError: No module named '_portaudio'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\PRITAM MOHAPATRA\Downloads\Jarvis.py", line 76, in
query = takeCommand().lower()
File "C:\Users\PRITAM MOHAPATRA\Downloads\Jarvis.py", line 27, in takeCommand
with sr.Microphone() as source:
File "C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\speech_recognition_init_.py", line 79, in init
self.pyaudio_module = self.get_pyaudio()
File "C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\speech_recognition_init_.py", line 110, in get_pyaudio
raise AttributeError("Could not find PyAudio; check installation")
AttributeError: Could not find PyAudio; check installation

so now i have installed microsoft visual  C++ 2019 now the error showing is :
ERROR: Command errored out with exit status 1:
 command: 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\PRITAM MOHAPATRA\\AppData\\Local\\Temp\\pip-install-fh6hmjsf\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\PRITAM MOHAPATRA\\AppData\\Local\\Temp\\pip-install-fh6hmjsf\\pyaudio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-record-a61re8tx\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\pyaudio'
     cwd: C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-fh6hmjsf\pyaudio\
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying src\pyaudio.py -> build\lib.win-amd64-3.8
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1264.0_x64__qbz5n2kfra8p0\include" "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1264.0_x64__qbz5n2kfra8p0\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.8\Release\src/_portaudiomodule.obj
_portaudiomodule.c
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1264.0_x64__qbz5n2kfra8p0\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------

Rolling back uninstall of pyaudio
Moving to c:\users\pritam mohapatra\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages_pycache_\pyaudio.cpython-38.pyc
from C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-uninstall-v03j60ml\pyaudio.cpython-38.pyc
Moving to c:\users\pritam mohapatra\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages_portaudio.cp39-win_amd64.pyd
from C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-uninstall-d9gnjhbe_portaudio.cp39-win_amd64.pyd
Moving to c:\users\pritam mohapatra\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages\pyaudio-0.2.11.dist-info
from C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages~yaudio-0.2.11.dist-info
Moving to c:\users\pritam mohapatra\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages\pyaudio.py
from C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-uninstall-d9gnjhbe\pyaudio.py
ERROR: Command errored out with exit status 1: 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-fh6hmjsf\pyaudio\setup.py'"'"'; file='"'"'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-install-fh6hmjsf\pyaudio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Temp\pip-record-a61re8tx\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\PRITAM MOHAPATRA\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\pyaudio' Check the logs for full command output.

Uninstall pyaudio using pip and then install portaudio. After this, again install pyaudio.

Yeah it worked gaurav.
Thanks a lot..

Extremely happy that it worked.
Cheers!
On Tue, Jul 21, 2020, 00:22 pritam5305<EMAIL_ADDRESS>wrote:

Closed #15 https://github.com/GauravSingh9356/J.A.R.V.I.S/issues/15.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/GauravSingh9356/J.A.R.V.I.S/issues/15#event-3567334797,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANEAVN25S2NCWDDQMTQUXS3R4SG73ANCNFSM4O77T55A
.


Transactions not working correctly

Currently, transactions are not working when using either named parameters or un-named parameters.
Setup:
import { Database } from<EMAIL_ADDRESS>
const db = new Database(":memory:");

db.execute(`
  CREATE TABLE people (
    name TEXT NOT NULL
  );
`);

Named parameters:
db.execute(`
  BEGIN TRANSACTION;
  INSERT INTO people (name)
  VALUES (:name);
  COMMIT;
`, { name: "John Doe" });

Throws:
error: Uncaught Error: Couldn't find index for ':name'
      throw new Error(`Couldn't find index for '${name}'`);
            ^
    at PreparedStatement.bindParameterIndex (https://deno.land/x/sqlite3@0.3.0/src/database.ts:386:13)
    at PreparedStatement.bindAllNamed (https://deno.land/x/sqlite3@0.3.0/src/database.ts:521:26)
    at Database.execute (https://deno.land/x/sqlite3@0.3.0/src/database.ts:148:14)

Un-named parameters:
db.execute(`
  BEGIN TRANSACTION;
  INSERT INTO people (name)
  VALUES (?);
  COMMIT;
`, "John Doe");

Throws:
error: Uncaught Error: (25) column index out of range: column index out of range
    throw new Error(`(${result}) ${sqlite3_errstr(result)}: ${msg}`);
          ^
    at unwrap_error (https://deno.land/x/sqlite3@0.3.0/src/ffi.ts:368:11)
    at sqlite3_bind_text (https://deno.land/x/sqlite3@0.3.0/src/ffi.ts:448:3)
    at PreparedStatement.bind (https://deno.land/x/sqlite3@0.3.0/src/database.ts:479:9)
    at PreparedStatement.bindAll (https://deno.land/x/sqlite3@0.3.0/src/database.ts:515:12)
    at Database.execute (https://deno.land/x/sqlite3@0.3.0/src/database.ts:150:14)

Deno version: 1.17.3 (release, x86_64-apple-darwin)
Module version: 0.3.0
macOS version: 12.1
SQLite version: 3.37.2

You need to split begin transaction & commit to separate queries

Ok - that’s fair. Thank you 🙏🏾

So, just to be clear - I believe that you can execute multiple statements with db.execute, but just not the BEGIN TRANSACTION and COMMIT statements, right?
Because this is working for me:
db.execute(
      `INSERT OR IGNORE INTO settings(name, value) VALUES('setup', 1);
INSERT OR IGNORE INTO settings(name, value) VALUES('test', 'hello');`,
    );

I am wondering if multiple PRAGMA statements can be made in one call to db.execute() but I will find out soon on my own.


Run CI on progress-bar showcase demo code

Motivation
I'd like to make sure I haven't introduced any bugs in my showcase code by running it in CI.
This PR doesn't need to be reviewed or merged.

Looks good!


try api call logging with decorator

We have a lot of these sprinkled in throughout our code base:
https://github.com/pytorch/vision/blob/6fcf0a27e38dced48f297175d8bdb7b2a5d2f2ea/torchvision/transforms/functional.py#L419-L420
This is almost a text book case for using a decorator. I was always told that decorators are not supported by torch.jit.script and thus we have to go the "long way". But it seems decorators are supported
import functools

import torch

def logger(fn):
    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print(f"Logging call to {fn.__name__}")
        return fn(*args, **kwargs)

    return wrapper

@logger
def foo(input: torch.Tensor) -> torch.Tensor:
    print("inside foo()")
    return input.abs()

input = torch.tensor(-1)
print("eager")
print(foo(input))
print("scripted")
print(torch.jit.script(foo)(input))

eager
Logging call to foo
inside foo()
tensor(1)
scripted
inside foo()
tensor(1)

Since we get no print from the logger during scripted mode, maybe it picks up on the functools.wraps decorator and only executes the underlying function.

@kazhang in #5052 you stated that one cannot

use decorator

For example: @log_api_usage in #4976
doesn’t work with TorchScript since decorator needs to use kwargs, which is not supported in TorchScript;

to log the API calls. Either there was support added or I'm missing something here, since it seems to work out fine. I've added the _log_api_usage_once call to a decorator and applied it to all our functional transforms. JIT scriptability is tested by our test suite, but there no errors.

Hi @pmeier , thanks for the PR! looks like decorator (more specifically kwargs) is supported now. Initially I tried it out in #4976 but got this error from JIT. I'm glad that it works now!

I spoke with @gmagogsfm and he suspects that TorchScript completely ignored the logger decorator. He said that this is likely an unintended use case and suggested it is not safe to depend on it.

related:https://github.com/pytorch/vision/issues/4957


Always warn on cpu fallback

Fixes: #262, https://github.com/pytorch/pytorch/issues/126488
5bf9e0c ("Register operator's implementation lazily") disabled warnings printout on explicit CPU fallback. I believe that users and customers will benefit from these warnings in all the cases. Note that "explicit fallback" seems to be some internal intel classification term for supported/unsupported operations unlikely known to others. Thus, non-intel users will likely care for cpu fallback in general regardless of its type. This PR adds warning back for all CPU fallback cases. We did discuss in https://github.com/pytorch/pytorch/issues/126488 that maybe printout in Release build might not be needed - I am thinking otherwise and added printout for all the build modes. Let's discuss this in the PR review.
CC: @gujinghui @EikanWang @fengyuan14 @guangyey @jgong5

@dvrogozh , do you have the privilege to add a reviewer?

@dvrogozh , do you have the privilege to add a reviewer?

No, unfortunately I do not.

@EikanWang @fengyuan14. Some of pull / preci-ut  tests fail. Are these some known failures since I can hardly attribute them to the change in this PR?

@fengyuan14 : tests are still failing. Should this be retriggered again?

@fengyuan14 : tests are still failing. Should this be retriggered again?
Two new errors never encounter. Let me try retrigger

FAILED test_autograd_xpu.py::TestAutogradDeviceTypeXPU::test_copy_r_to_c_xpu - AssertionError: False is not true :
FAILED test_autograd_xpu.py::TestAutogradDeviceTypeXPU::test_to_r_to_c_xpu - AssertionError: False is not true :

I checked the failure again. The failures should be caused by the change in the PR.

The case says there should be no warning, but we warn in CPU fallback code path.

@fengyuan14 : Ok, so there are some tests in pytorch which don't allow warnings. However, the tests which fail actually run few basic ops - in a way someone might consider that these ops should not fail and should run on appropriate device. I.e. actually someone might consider that these tests are actually broken and incorrectly report status.
There are few ways to proceed with this PR:

Actually fix the tests. This means identify and implement missing xpu ops.
Silence warning conditional to something like release build or environment variable disabled by default.

I need your opinions on this. From my side, I will check tomorrow which ops are not implemented. As of now I checked only 1 test:

TestAutogradDeviceTypeXPU.test_copy_r_to_c_xpu - need aten::all.all_out

@fengyuan14 : Ok, so there are some tests in pytorch which don't allow warnings. However, the tests which fail actually run few basic ops - in a way someone might consider that these ops should not fail and should run on appropriate device. I.e. actually someone might consider that these tests are actually broken and incorrectly report status.
There are few ways to proceed with this PR:

Actually fix the tests. This means identify and implement missing xpu ops.
Silence warning conditional to something like release build or environment variable disabled by default.

I need your opinions on this. From my side, I will check tomorrow which ops are not implemented. As of now I checked only 1 test:

TestAutogradDeviceTypeXPU.test_copy_r_to_c_xpu - need aten::all.all_out

I prefer the first option. Looks there won't be too many efforts to take. And aten::all.all_out is in our development plan. We won't take extra efforts. We can prioritize the op.

https://github.com/intel/torch-xpu-ops/pull/368

From my side, I will check tomorrow which ops are not implemented.

As far as I can tell from the log, we have 2 tests failing, both requiring same op:

TestAutogradDeviceTypeXPU.test_copy_r_to_c_xpu - need aten::all.all_out
TestAutogradDeviceTypeXPU.test_to_r_to_c_xpu - need aten::all.all_out


A TextureView or a subclass can only be used with hardware acceleration enabled.

When i run your demo project, it will display this message on logcat and on the screen, nothing is displayed.......!
i have already set android:hardwareAccelerated="true" in manifest file....
what is issue then?

same isssue 👎  any solution ?

@iamnaran I haven't updated this project in a while. I don't think I'll be doing it in the near future, but the beauty of OSS is that you could fork this project or even create a pull requests with the changes to fix it.


Fix Installation

With the move to mod, this repo needs to be updated.
Currently, when using VSCode it fails to install with option -u (The vscode snippet was just a go get -v so 🤷🏻 ).
This adds a mod file to try and correct that.
@ramya-rao-a This should solve #9 but I don't know how to test that (I use Goland for personal projects and collab with VSCode at work).

Thanks @Nexushunter
@hyangah Can you please help review this?

Having go.mod file is a good thing. (With go1.16, the go project won't build without it).
But note: even with go.mod in this repo, -u shouldn't be used - -u flag in module mode has special meaning and end users are not supposed to use that flag. The right fix would be to update the README.md file.
go version < 1.12 (do we care?):
go get -u github.com/ramya-rao-a/go-outline

1.12 <= go version < 1.16 (this is what vscode go is doing now for go1.12+), install in Module mode:
cd $(mktemp -d)
go mod init work
go get github.com/ramya-rao-a/go-outline

After go 1.16, use the new go install <tool path>@latest command:
go install github.com/ramya-rao-a/go-outline@latest

I don't think missing go.mod is the cause of #9, and I am not sure if the bug is still reproducible.

Thanks @hyangah
Do you recommend merging this PR in its current state?

This PR itself looks fine except the title - it should be just 'add go.mod'.

And we are ok with go.sum being added as well?

Yes, go.sum needs to be checked in too.

Thanks @Nexushunter & @hyangah!


New missions/addon/driver3

We all know how bad d3 was and the development history let's fix that with a new 3 based off of 2 source code and story of 1 and 2
Would have to really think about it get a team together this be way in the future

Can you please stop openning issues here and instead join us on Driver Madness discord discussion? (For sanity sakes)


image larger than height of selectbox

I have a selectbox with images of size 64x64px which is no problem for
the dropdown, but for the selectbox itself because it cuts the image and it seems that I cannot
set a height property?

Can you send the code?

Made major code refactoring, check if the problem still persists, .. if so please open a new issue.
https://github.com/websemantics/Image-Select/releases/tag/1.4


Deleting Project (new UI) doesn't refresh page

v0.16.0
Steps:

Create Environment
Switch to that Environment
Delete that Environment

Results:
Even thou the environment is deleted, that environment's page is still showing

Expected:
Page should refresh and take to you another environment or the main service page.

build from master - June 9th
Verified fixed


Does fastecdsa support gpu computation?

After I read the documentation, I realized that, fastecdsa does not support gpu computation in Cuda or OpenCl, am I right?
Will you think that compute the result by running the script on GPU will be even faster than on CPU?
Can this be a feature request?
I think there is a python package called numba which allow python code to be run on gpu, but i still learning it.

I'll admit I'm not very familiar with GPU programming but my understanding is that GPUs would be suited for highly parallel workloads, whereas the elliptic curve operations that are the bottlenecks of this package aren't very suit to parallel implementations. I'm also not aware of any GMP support for running on GPUs, so the C code would have to be re-written.
That's not to say that this can't be done, but I would be interested in hearing an argument for the advantages of running this on the GPU, and also would likely need someone more familiar with GPU programming to implement it. I don't think a python wrapper around the native GPU code would work since my guess is that this would cause a fairly big performance hit vs writing this in something like C that the GPU can run natively.

I'll admit I'm not very familiar with GPU programming but my understanding is that GPUs would be suited for highly parallel workloads, whereas the elliptic curve operations that are the bottlenecks of this package aren't very suit to parallel implementations. I'm also not aware of any GMP support for running on GPUs, so the C code would have to be re-written.
That's not to say that this can't be done, but I would be interested in hearing an argument for the advantages of running this on the GPU, and also would likely need someone more familiar with GPU programming to implement it. I don't think a python wrapper around the native GPU code would work since my guess is that this would cause a fairly big performance hit vs writing this in something like C that the GPU can run natively.

Closing this as benefits and use cases of supporting running on GPUs are not clear.


Please mark this deprecated

People are still trying to install GHC using this. (c.f. https://stackoverflow.com/questions/48082595/install-haskell-through-ghc-in-fish)
Since the version of GHC it provides is quite old, and it is not kept up-to-date with regards to new releases (or patches for new macos versions) it might be good to change the webpage to discourage usuage.

I have proposed a change to the text on the GH Pages site to mark it deprecated until such time as it could be considered up to date. If I get no response, I'll merge that change on Sunday.

This all sounds fine to me, I don’t see a PR for a change though?


Export TokenizerState class

I don't know if it is such a good idea, but I was trying to define my own tokenizer using your package, but the TokenizerState class is not exported. I was just hoping I could import it instead of having to write something that would do exactly what you already did :)
(I don't know how the copyrights would play here, so I would prefer having you exporting the class)

Will do certainly.
Expect a patch later today

I saw one of your pull requests in theia repo where had a workaround. Is this still necessary?

I made a workaround indeed, doesn't mean this wouldn't benefit someone though :)

Hopefully monaco-editor adds support for scopeName arrays soon, then monaco-editor-textmate will work out of the box anyway; without additional hacking.

Consider bumping https://github.com/Microsoft/monaco-editor/issues/929
cc Theia contributors @marechal-p @epatpol @svenefftinge @mofux


CSS loading order

When the components are imported (For Eg: import Home from "./app/components/home") then the custom CSS loads before the Global CSS and hence Global CSS overrides the custom CSS changes.

As per discussion,
The client~vendor CSS should be loaded first and then the client
css/scss.
On Thu, Oct 18, 2018 at 6:48 PM Yash Thakur<EMAIL_ADDRESS>wrote:

When the components are imported (For Eg: import Home from
"./app/components/home") then the custom CSS loads before the Global CSS
and hence Global CSS overrides the custom CSS changes.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Atyantik/pawjs/issues/17, or mute the thread
https://github.com/notifications/unsubscribe-auth/AKw2_z026aFc8M8LtgHCrQv1rYWee5u8ks5umH-IgaJpZM4XtavM
.


Set horizon_minutes as NOT NULL

We should enforce horizon_minutes to be NOT NULL. This will require a data migration where we calculate the horizon based on the timestamp_utc of the forecast and the start_utc time of the forecast_value.
https://github.com/openclimatefix/pv-site-datamodel/blob/11080b34a3b893492ab2c7fd06fdb5ed0581f1c3/pvsite_datamodel/sqlmodels.py#L210

Hi @simlmx ,
I was going through this issue for GSOC 2024 contribution. So we just need to change one line 213 to fix this?

In theory yes but in practice this will require a corresponding migration for production environment where this is used. I don't have access to those anymore. Also I don't know if changing this is still relevant. @peterdudfield would know more!

Yea, we just need to write a script that would look at start_utc and created_utc and calculate the horizon minutes. I can always do that script, if @Chirag-01 you fancy doing the migration


Fixes bug in group accumulator

Description
See referenced issue for background
Reference issue
Fixes #274

@sterlingdeng thank you for going so deep on this code. I really appreciate it!
Mind squashing your commit into one and doing a commit message with Subject+Body (just describing what you did)

@mengelbart FYI since you were the original author..

@Sean-Der No problem, glad to help.
Regarding CI: Not sure why it's failing now.. perhaps flakiness?


Diacritics get cleaned up on iOS Safari Webview when a mask allows for them and regular letters

Describe the bug

When using a mask to allow letters, numbers, letters with diacritics and whitespaces on iOS, whenever I type in a sequence of diacritics and then a non-accented letter, the previous diacritics are removed and replaced.
I am using Inputmask on a Cordova hybrid app, and on Safari Webview there is an issue with diacritics. From what I could investigate, the way iOS handles the keydown, keyup and keypress slightly differently. I couldn't understand it is intended behavior on Apple's part, but what is happening is that on the keydown/keyup events the keycode of a pressed diacritic is aways 0. Which will mean it will be considered an ignorable (since 0 is on the array of ignorables). On the keypress event, the keycode has the correct value. What I did as a workaround was validade the ignorable bit at the beginning of the keypress event, instead of at the end of the keydown event on eventhandlers.js. It works for my scenario but I am not sure if it will break something else down the road. Wouldn't think so by looking at the code surrounding this bit, but I am not all that familiar with the full code.

OS: iOS 15.4
Browser: Safari Webview
Inputmask version: 5.0.7

Removing the 0 value from the ignorables solved the issue for me seemingly, so I'm rolling with this solution in a few of my masked inputs, until there's some progress in this matter.


Unified nav for CodeCombat and Ozaria

Context
We have two products, Ozaria and CodeCombat. We already have shared login systems between the two products (i.e. if you log into CodeCombat.com you are automatically logged into Ozaria.com).
This PR introduces a shared navigation bar that is the same on both CodeCombat and Ozaria.
This will make it easier for students and teachers to see their codecombat and ozaria classrooms and navigate between the two products.
Features

Nav detects host and path to figure out relative or absolute path when choosing teacher dashboard or classroom.
For ease and speed, this Navigation component can be copy pasted between CodeCombat and Ozaria codebase and will function in either environment.
Testing will keep you on localhost if in the same domain.

TODO:

Analytics
subdomain mapping
Ensure other feature flag nav bar components work. i.e. china, tarena.

Testing
TODO - fill out more.
This has been manually tested across the following user types:

Anonymous
Home player
Teacher
Teacher with school admin
Student

Across these pages:

Teacher Dashboard
School admin Dashboard
/league (which has the dark nav)
Home page
Classroom

With minor responsiveness testing. Full page & hamburger menu.
Risk
There is definitely some risk as I'm replacing the navigation bar. However the changes are quite scoped.
Most likely there will be a style bug or issue for an untested combination of user, feature flag, or page. For example I have not yet tested how this new navigation bar functions in the China environment or with other brand partner domains.
Screenshots

I resolved your comments here, and also applied the feedback to the Ozaria PR.


Badges on tabs

On tabs badges looks awful :

I know that badges on tab isn't good idea, but it will be nice if you add that feature, becouse its very beautiful way to show user new content in tab

@IgnisFire OK. I will fix it.

thank you !

@IgnisFire Fixed in https://github.com/picturepan2/spectre/pull/35 Please pull the latest master branch. And see the examples here http://picturepan2.github.io/spectre/#tabs. Thank you.


ECONNREFUSED

Hello,
after the latest update I'm getting ECONNREFUSED.
I have three Harmony-hubs, and the plugin was working prior to this update.
My set up is as follows:
"platforms": [
{
"name": "Stue",
"hubIP": "<IP_ADDRESS>",
"otherPlatforms": [
{
"name": "loftstue",
"hubIP": "<IP_ADDRESS>"
},
{
"name": "hovedsoverom",
"hubIP": "<IP_ADDRESS>"
}
],
"platform": "HarmonyHubWebSocket"
},
Log:
[List Rooms] connect ECONNREFUSED <IP_ADDRESS>:51826
[List Accessories] connect ECONNREFUSED <IP_ADDRESS>:51826
I have double checked the IP´s, and they are correct. They have a fixed IP on my router.

Problem with HOOBS

Hi, thanks for reporting,  what was the hoobs problem ? Just for others just in case ;)

An old platform in the config... I had uninstalled the plugin, but not removed it from the config. :-)


[BUG]

Description
The Twitter Logo on Footer is old one on the website that is not the official Twitter logo.
Screenshots

Do you want to work on this issue?
Yes
Additional information
No response

Thank you for raising - this has actually been raised in multiple occasions and closed. It would be helpful if in future you could please check both the open and closed issues to avoid duplication.
We are using React Icons to collect a variety of icon sets together. As the icon libraries do not contain this new icon yet, this update to BioDrop cannot be done.
You may want to raise an issue on the relevant icon library, here is the React Icon Repo where you can see the multiple icon sets: https://github.com/react-icons/react-icons
I will therefore close this issue for now.


fix(helm): Don't wait for service to be ready when external IP are set

Resolves #7513
As, according to the doc, the externalIPs are not managed by k8s; helm should not wait for services  which set at least one externalIPs.

cc'ing @thomastaylor312 as the resident --wait master


Uploading python program to display cricket scores

Description
Simple python program to display the score details of cricket matches.
You can add on further features to get batsman scores and so on
All you need is api key and unique id of match.
Its a simple one if you are a beginner
Fixes #(issue_no)
Replace issue_no in the above line, with the issue related to this PR.
Type of change
Choosing one or more options from the following as per the nature of your Pull request.

[ ] Bug fix (non-breaking change which fixes an issue)
[
✔] New feature (non-breaking change which adds functionality)
[ ] Documentation Update

Checklist:
Please tick all the boxes that are fulfilled by your Pull Request.

[
✔ ] I have named my files and folder, according to this project's guidelines.
[
✔] My code follows the style guidelines of this project.
[
✔] My Pull Request has a descriptive title. (not a vague title like Update index.md)
[ ] I have commented on my code, particularly in hard-to-understand areas.
[
✔ ] I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
[
✔] I have included a requirements.txt file (if external libraries are required.)
[
✔ ] My changes do not produce any warnings.
[
✔ ] I have added a working sample/screenshot of the script.

please refer to #282


Game details showing with "Show Game Details" unticked in shelf settings

Game details is still showing even though i have "Show Game Details" unticked in the shelf's settings.

Fixed in v12.2.3

Thanks!


Redesign abstract syntax

Currently, we have already got DBI in our abstract syntax.
This is causing problems -- type checking against DBI-based lambdas is difficult.
I want to redesign the abstract syntax according to MiniAgda, which have a similar architecture of Voile (Concrete (syntax-checked), Abstract (scope-checked), Value (type-checked)) but does not use DBI in abstract. Instead, it uses DBI in values but UIDs in abstract.

Already fixed by #68, waiting for CI now


Implement Issue Reminder Workflow🚀

PR Description: Created a GitHub Actions workflow that sends reminders on open issues without updates. The workflow should post a comment prompting assignees to take action.
Expected Benefits:
Improved responsiveness and prioritization of tasks.
Increased overall productivity.
fixed #61
close #61
please assign me with level3 label @vansh-codes

Have you tested it ?? Are you sure it works?

In how much days will the reminder msg be dropped?

i am sure it will work  and within 10days

Hello @vansh-codes can you add level 2 label

Documentation and workflows are for level1 buddy!


No modules named 'cv2' for imutils

I am getting the following error.
I have installed imutils using  pip install opencv-contrib-python as recommended by PyImageSearch
"C:\Users\USER\Desktop\Year 3\ObjectTracker\venv\Scripts\python.exe" "C:/Users/USER/Desktop/Year 3/ObjectTracker/objecttracker.py"
Traceback (most recent call last):
  File "C:\Users\USER\Desktop\Year 3\ObjectTracker\objecttracker.py", line 2, in <module>
    from imutils.video import VideoStream
  File "C:\Users\USER\Desktop\Year 3\ObjectTracker\venv\lib\site-packages\imutils\__init__.py", line 8, in <module>
    from .convenience import translate
  File "C:\Users\USER\Desktop\Year 3\ObjectTracker\venv\lib\site-packages\imutils\convenience.py", line 6, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'

I think you can try installing opencv-python too.
opencv-contrib-python is an extra package for extra features from opencv ^^


can't pass execPath or execArgs when forking

This would be useful for scenarios where the child process needs to use a different runtime than the parent.
From the docs for child_process.fork:

By default, child_process.fork() will spawn new Node.js instances using the process.execPath of the parent process. The execPath property in the options object allows for an alternative execution path to be used.

This can be accomplished easily by plumbing these two params through the passed opts.  I'd like to submit a PR but first I'd like some input from the maintainers on the testing approach:

I could include node binaries for various platforms and cpu architectures in the test folder, sniff os and choose the correct one to point at with execPath, then verify process.execPath from the child process.  This seems like overkill.
I could symlink system node into the test folder with fs.symlink(process.execPath, newPath), point execPath to symlinked node, then verify process.execPath from the child process.  The symlink would then be deleted on test completion.
I could mock child_process with mock-require, mockery, proxyquire, rewire, etc.
Any other suggestions?

+1


Mono report missing headers

I've noticed that mono report doesn't include any headers or context, its just a bunch of pass/fail statements:
       PASS! Root user in the account wasn't accessed in the last 1 days
       PASS! No users found with Password enabled and MFA disabled
       PASS! No users with access key 1 older than 90 days
       PASS! No users with access key 2 older than 90 days
       PASS! Password Policy requires upper case

With no context as to which check is being run, like you get on the console:
  1.4  [check14] Ensure access keys are rotated every 90 days or less (Scored)
      PASS! No users with access key 1 older than 90 days
      PASS! No users with access key 1 older than 90 days
      PASS! No users with access key 2 older than 90 days
      PASS! No users with access key 2 older than 90 days

If I enable two formats then the headers disappear and I get something like this instead which requires a lot of transformation to get like the above:
{"Profile":"ENV","Account Number":"433624884903","Control":"[check14] Ensure access keys are rotated every 90 days or less (Scored)","Message":"No users with access key 2 older than 90 days","Severity":"Medium","Status":"Pass","Scored":"Scored","Level":"Level 1","Control ID":"1.4","Region":"us-east-1","Timestamp":"2021-01-05T19:56:50Z","Compliance":"ens-op.acc.1.aws.iam.4,ens-op.acc.5.aws.iam.3"}
       PASS! No users with access key 2 older than 90 days
       PASS! No users with access key 2 older than 90 days

So my question is if the check headers being omitted from the mono report is intentional or a bug? Its something I could work on fixing if the later.

Hi @zfLQ2qx2! Long time no see :D
Just tested it using ./prowler -M mono or ./prowler -M mono,csv or  ./prowler -M mono,csv,json and titles are shown, can you share what command are you exactly running?  Probably ./prowler -M json,mono?

Hi @zfLQ2qx2! Long time no see :D
Just tested it using ./prowler -M mono or ./prowler -M mono,csv or  ./prowler -M mono,csv,json and titles are shown, can you share what command are you exactly running?  Probably ./prowler -M json,mono?