embulk.bat download failing

Running the command:
$ PowerShell -Command "& {Invoke-WebRequest http://dl.embulk.org/embulk-latest.jar -OutFile embulk.bat}"
fails:
Invoke-WebRequest : The underlying connection was closed: An unexpected error oc                                curred on a send.
At line:1 char:4

& {Invoke-WebRequest http://dl.embulk.org/embulk-latest.jar -OutFile  ...

+ CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpW                                ebRequest) [Invoke-WebRequest], WebExc

eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell                                .Commands.InvokeWebRequestCommand

Hello, @danshultz11
Lately, Bintray (embulk binary hosted site) must use TLS 1.2 protocol only.
And PowerShell doesn't use it by default. (use TLS1.1)
Could you try to execute the following command?
PowerShell -Command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; Invoke-WebRequest http://dl.embulk.org/embulk-latest.jar -OutFile embulk.bat}"

Ref: Add support for TLS 1.2 (Invoke-WebRequest, Invoke-RestMethod)

Yes, that did download a file - embulk.bat
On Tue, Jul 17, 2018 at 9:31 PM Hiroyuki Sato<EMAIL_ADDRESS>wrote:

Hello, @danshultz11 https://github.com/danshultz11
Lately, Bintray (embulk binary hosted site) must use TLS 1.2 protocol only.
And PowerShell doesn't use it by default. (use TLS1.1)
Could you try to execute the following command?
PowerShell -Command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; Invoke-WebRequest http://dl.embulk.org/embulk-latest.jar -OutFile embulk.bat}"
Ref: Add support for TLS 1.2 (Invoke-WebRequest, Invoke-RestMethod)
https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/15150051-add-support-for-tls-1-2-invoke-webrequest-invoke
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/embulk/embulk/issues/1028#issuecomment-405779971, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AARo19AKFLTI3ZwU_-aULzG7_cPdgMibks5uHo__gaJpZM4VTNFM
.

--
-Thanks
Dan<PHONE_NUMBER>

Hello, @danshultz11
Could you close this issue when you solved the problem?


Mapping - cannot set a field to not be analized

I cannot get a field to not be analyzed:
class Post
{
[ElasticProperty(Index = FieldIndexOption.not_analyzed)]
public string Tag { get; set; }
}

Ok, common manifestation of PEBKAC, forgot to persist the mapping.
It doesn't work though for List< string > properties and the solution is to create a custom mapping using TypeMappingProperty.

Hah i had to google pebkac but glad to hear you got it working. Could you elaborate on your solution with a list of strings? Sounds like something worthy to be wikified :)

It was simple, really. I just wanted to have a List< string > propName not indexed, so I had to create an explicit type mapping first:
class Post
{
    [ElasticProperty(Name="tags", Index=FieldIndexOption.not_analyzed)]
    public List<string> Tags { get; set; }
}

var stringField = new TypeMappingProperty
{
    Type = "string",
    Index = "not_analyzed"
};

myMapping.Properties.Add("tags", stringField);


Add support for blobs in S3

If S3 is available, we should use it instead of Postgres to store blobs.

Oversized postgres backups have been dying regularly on at least one cluster (and probably also triggering other issues, as well). Removing this from postgres should help substantially with that.

Some thoughts on this one:
Flynn is very attractive since it positions itself as a self-hostable alternative in the PaaS world, but depending on S3 for blob storage destroys this advantage. I understand this is an optional feature, but since it is handled as a solution to a problem (blob store, backup performance), its not really that optional.
A backup of the cluster should restore it to a state it can run the same way. So you may have to backup the currently executed slugs - but there is no need to backup unused slugs. Same is true for git repos. They can be freshly checked out if required. Slugs can be rebuilt if necessary. Related #2900, there should be a cache of built slugs, but it should not grow indefinitely. Maybe just cache the last 5-10 slugs.
This would probably even suffice - just ensure that during the lifetime of an application, its cached data does not grow all the time.
Improving this and only keeping data which is really necessary in the backup should solve the issue without requiring a separate blob-store.

@IsNull

A backup of the cluster should restore it to a state it can run the same way. So you may have to backup the currently executed slugs - but there is no need to backup unused slugs

It seems like you are describing backing up a specific app with just its current slug, which is exactly what flynn -a $app export does. A full cluster backup on the other hand backs up everything, if you want to omit old slugs from a cluster backup then you should delete them first.

Related #2900, there should be a cache of built slugs, but it should not grow indefinitely. Maybe just cache the last 5-10 slugs.
This would probably even suffice - just ensure that during the lifetime of an application, its cached data does not grow all the time.

Flynn has a mechanism to manually delete old slugs (flynn release delete <id>) and also has a GC option so that only the last N slugs are kept (#2769).
#2900 is a related bug which we will fix soon.

Hi,
is there a migration path from the PostgreSQL Blobstore to the new S3 Blobstore?

Found it. :)
flynn -a blobstore run -e /bin/flynn-blobstore-migrate -- -delete


Next feature/add julia kernel

You can add packages of https://github.com/JuliaCN/Julia2Nix.jl to the julia kernel.

You can add packages of https://github.com/JuliaCN/Julia2Nix.jl to the julia kernel or just overlay.

Hey @GTrunSec
We are going to merge this as is. I am looking at the repo you linked to, but I'm not sure how to use it. Do you have examples?


Added timezone check for Personal Calendar web part

Category

[ ] Bug Fix
[x] New Feature
Related issues: fixes #166

What's in this Pull Request?
Added timezone check for personal calendar webpart.

@Laskewitz - any change we could get the small adjustments on this as we would love to get your improvements on the actual solution?

Thank you very much @Laskewitz on this change. I did eventually ended up doing the change manually based on the original code you provided with updated types. This is not included in the May release of the Starter Kit going out later today / tomorrow and you'll absolutely get acknowledged on the May notes as a contributor.
Requested changes by @waldekmastykarz were small and as your contribution was valuable for others, processed this now manually. Closing this PR but code change is included in the code. Thanks for your contributions towards the community, highly appreciated.


Remove "test" part of buildandtest script

There are multiple issues with the "test" part which makes this script not usable as-is:

the chart used for testing has been moved to another location (easy fix)
the verify command uses a -l flag which isn't supported anymore (easy fix)
the verify command requires access to a Kubernetes cluster. Currently there is no way to provide Kubernetes credentials to the script (fixable, with some effort)

But before putting further effort into fixing the "test" part of this script, it appears to me like we don't need this script to be able to test a docker image anymore. The pipeline takes care of that in a next step (actually running some extensive tests). AFAICT this script is never called without the --build-only flag in our testing / release process and anyway would not work.
Hence suggesting to remove the "test" part of this script.

@komish Some time ago we talked about removing the docker tests completely. We can use this issue as a tracker.
The arguments in favor of removing the docker tests:

Simplification
We already test the container image with podman

Did I get this right ?

@mgoerens 100% agree. I think we get sufficient coverage by testing just Podman as the runtime.
As far as what work goes into it, I think:

Removing Docker-related code from our e2e tests (e.g. if we specify Docker as a test parameter in our feature definitions, we can remove them)
Any code that requires talking to the Docker API can probably be removed as we probably don't need it
Any documentation that specifies the docker CLI can probably be reworded.

Any code that requires talking to the Docker API can probably be removed as we probably don't need it

You mean in the tests specifically, or do you foresee modifications to chart-verifier ?

Just for tests. Chart Verifier should not be talking to the Docker API.


How can I resize an image

I'm using an image from assets folder
![image](file:///android_asset/image.jpg "Image")
I tried to resize my image like this 👉 ![image](file:///android_asset/image.jpg =100x20 "Image"), i also tried with HTML, but it doesn't work.

Hi, are there any updates on this?

Bump

This, along with images that can be clicked, is the only thing preventing me from switching over to this library.


error while add data source

when i try to add the datasource is get the following error:
Fetch error: 404 Not Found Instantiating http://****/public/app/plugins/datasource/grafana-mongodb-datasource/module Loading app/plugins/datasource/grafana-mongodb-datasource/module

Sorry, no idea about that one. Looks like a grafana issue. What version are you running?

I got the same issue. Grafana v5.2.3.

Grafana v7.4.3 same error, I am not getting to how to configure it, can I get more details?


Add a basic integration test for the cluster registry

This is based on work done for the kube-apiserver in k/k/46865.

cc @font @madhusudancs @marun

/assign @madhusudancs @marun

/test all

@perotinus seems like a bot is asleep at the wheel

/test all

@pmorie Yeah, it seems so. I'm going to push a new PR and see if it finds that one.

@marun @madhusudancs @font Friendly ping?

@madhusudancs @font Can you take a look? I had to make some code changes to fix an issue caught by this test following the vendoring update.


Support Request: Question Regarding Response Times

Describe Your Problem:
Hi,
I had a question and perhaps you can answer it for me.  I've noticed the response times for any particular device to be relatively long but I'm not sure if this is expected behavior.  For axample, I've noticed any particular door or window sensor changes to register in homebridge on average 1-2 minutes from when they occur.   Is this normal behavior?
Expected behavior:
I'd expect these changes to be on the order of seconds from when they actually occur.
Logs:
N/A as of yet.  I'm not seeing anything unusual coming from the logs.  Currently set to 3.

Config:
{
    "bridge": {
        "name": "Homebridge 7869",
        "username": "0E:27:42:C6:78:69",
        "port": 51899,
        "pin": "337-29-201",
        "advertiser": "ciao",
        "bind": [
            "eth0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "Harmony Hub",
            "hubIP": "192.168.1.XX",
            "DELAY_BEFORE_RETRY_AFTER_NETWORK_LOSS": 60000,
            "HUB_CONNECT_TIMEOUT": 10000,
            "HUB_SEND_TIMEOUT": 30000,
            "TVAccessory": true,
            "sortInput": 0,
            "switchAccessories": true,
            "publishGeneralMuteSwitch": true,
            "publishGeneralVolumeSlider": true,
            "linkVolumeControlToTV": true,
            "otherPlatforms": [
                {
                    "TVAccessory": false,
                    "sortInput": 0
                }
            ],
            "_bridge": {
                "username": "0E:A3:DB:A3:95:6A",
                "port": 34350
            },
            "platform": "HarmonyHubWebSocket"
        },
        {
            "name": "Nest",
            "googleAuth": {
                "issueToken": "https://accounts.google.com/o/oauth2/iframerpc?action=issueToken&response_type=XXX",
                "cookies": "XXX"
            },
            "_bridge": {
                "username": "0E:DA:71:19:6B:78",
                "port": 54198
            },
            "platform": "Nest"
        },
        {
            "units": "us",
            "interval": 5,
            "stations": [
                {
                    "nameNow": "Highland Park",
                    "service": "openweathermap",
                    "key": "d8c2ca9c49f6f8fe2b30a21c820c08ad",
                    "locationGeo": [
                        42.178995438801536,
                        -87.83265986921101
                    ],
                    "locationCity": "Highland Park, US",
                    "language": "en",
                    "compatibility": "home",
                    "forecast": [
                        "Today"
                    ],
                    "conditionCategory": "simple",
                    "now": true,
                    "extraHumidity": false,
                    "hidden": [
                        "Air Pressure",
                        "Cloud Cover",
                        "Dew Point",
                        "Forecast Day",
                        "Rain",
                        "Snow",
                        "Temperature Min",
                        "Temperature Apparent"
                    ]
                }
            ],
            "_bridge": {
                "username": "0E:3A:44:CA:D2:51",
                "port": 58774
            },
            "platform": "WeatherPlus"
        },
        {
            "devices": [
                {
                    "name": "Basement TV",
                    "ip": "<IP_ADDRESS>",
                    "mac": "24:FC:E5:2F:67:AA",
                    "inputs": [
                        {
                            "type": "app",
                            "name": "Apple TV",
                            "value": "3201807016597"
                        },
                        {
                            "type": "app",
                            "name": "Plex",
                            "value": "3201512006963"
                        },
                        {
                            "type": "app",
                            "name": "Xfinity Stream",
                            "value": "3201803015836"
                        }
                    ]
                }
            ],
            "_bridge": {
                "username": "0E:43:7E:2B:35:BC",
                "port": 56656
            },
            "platform": "SamsungTizen"
        },
        {
            "pruning": {
                "pruneMissingCachedAccessories": true,
                "restartsBeforeMissingAccessoriesPruned": 3,
                "pruneAllAccessoriesNextRestart": false
            },
            "whiteEffects": {
                "simultaniousDevicesColorWhite": false,
                "colorWhiteThreshold": 10,
                "colorWhiteThresholdSimultaniousDevices": 50,
                "colorOffThresholdSimultaniousDevices": 5
            },
            "deviceManagement": {
                "blacklistOrWhitelist": "blacklist"
            },
            "advancedOptions": {
                "periodicDiscovery": false,
                "namesWithMacAddress": false,
                "logLevel": 3
            },
            "_bridge": {
                "username": "0E:A1:4B:9B:BC:54",
                "port": 56675
            },
            "platform": "homebridge-magichome-dynamic-platform"
        },
        {
            "devices": [
                {
                    "type": "GarageDoor",
                    "name": "Double Car Garage Door",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "eKyro 2",
                    "model": "Smart Garage Door Controller",
                    "dpAction": 1,
                    "dpStatus": 3
                },
                {
                    "type": "RGBTWLight",
                    "name": "Falyn’s Bedroom Table Lamp",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "HUGOAI",
                    "model": "HG02",
                    "dpPower": 20,
                    "dpBrightness": 22,
                    "dpColorTemperature": 23,
                    "dpMode": 21,
                    "dpColor": 24,
                    "colorFunction": "HSB",
                    "scaleBrightness": 1000,
                    "scaleWhiteColor": 1000
                },
                {
                    "type": "SimpleDimmer",
                    "name": "Backyard String Lights",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "Otdair",
                    "model": "39122206",
                    "scaleBrightness": 1000
                },
                {
                    "type": "RGBTWLight",
                    "name": "Jason’s Table Lamp",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "AUKEY",
                    "model": "Smart LED Lamp",
                    "dpPower": 1,
                    "dpBrightness": 3,
                    "dpColorTemperature": 4,
                    "dpMode": 2,
                    "dpColor": 5,
                    "colorFunction": "HEXHSB",
                    "scaleBrightness": 255,
                    "scaleWhiteColor": 255
                },
                {
                    "type": "SimpleDimmer",
                    "name": "Falyn Bedroom Main",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "Dimmer Switch",
                    "model": "DS02S",
                    "scaleBrightness": 1000
                },
                {
                    "type": "GarageDoor",
                    "name": "Single Car Garage Door",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "eKyro 1",
                    "model": "DP-WG001-US",
                    "dpAction": 1,
                    "dpStatus": 3,
                    "flipState": false
                }
            ],
            "_bridge": {
                "username": "0E:86:EC:01:3A:75",
                "port": 47363
            },
            "platform": "TuyaLan"
        },
        {
            "name": "Rachio",
            "api_key": "XXX",
            "default_runtime": 10,
            "runtime_source": 0,
            "use_irrigation_display": true,
            "show_standby": false,
            "show_runall": false,
            "show_schedules": false,
            "internal_IP_address": "<IP_ADDRESS>",
            "auto_correct_IP": false,
            "external_webhook_port": 12453,
            "internal_webhook_port": 27546,
            "use_basic_auth": false,
            "delete_webhooks": false,
            "showAPIMessages": false,
            "showWebhookMessages": false,
            "valveType": 0,
            "showBridge": false,
            "showControllers": true,
            "showValves": true,
            "liveRefreshTimeout": 2,
            "liveRefreshRate": 20,
            "platform": "rachio",
            "_bridge": {
                "username": "0E:32:86:CA:3E:C5",
                "port": 45148
            }
        },
        {
            "exposeAirQuality": true,
            "exposeAmbientLight": true,
            "exposePlasmawave": true,
            "exposeAutoSwitch": true,
            "exposeSleepSwitch": false,
            "filterReplacementIndicatorPercentage": 1,
            "cacheIntervalSeconds": 60,
            "deviceRefreshIntervalMinutes": 60,
            "auth": {
                "username": "xxx@xx",
                "password": "XXX",
                "userId": "XXX"
            },
            "deviceOverrides": [
                {
                    "deviceId": "8472074F2E50_1655lt7ldd",
                    "nameDevice": "Winix Master"
                }
            ],
            "_bridge": {
                "username": "0E:27:2F:C3:A2:35",
                "port": 47807
            },
            "platform": "WinixPurifiers"
        },
        {
            "name": "Xfinity Home",
            "refreshToken": "XXX",
            "pin": "YYY",
            "temperatureSensors": true,
            "logLevel": 3,
            "logWatchdogErrors": true,
            "_bridge": {
                "username": "0E:7A:57:D9:7D:66",
                "port": 58079
            },
            "platform": "XfinityHomePlatform"
        }
    ],
    "disabledPlugins": [
        "homebridge-mqttthing",
        "homebridge-tuya-platform",
        "homebridge-tuya-lan"
    ]
}

Operating System:
Raspberian
Node Version:
20.17.0
NPM Version:
10.8.2
Homebridge Version:
1.8.4
Plugin Version:
3.5.1

Sorry for the delay, this issue got lost at the bottom of my inbox. Unfortunately, this is a limitation of Xfinity. The plugin notifies HomeKit of changes when notified by Xfinity. But, even in my own testing I noticed that everyone once in a while it would wait a few minutes, then send through everything that happened. In which case, the plugin notifies HomeKit in the order of which they occurred, but HomeKit doesn’t support telling it what time the events happened


matplotlib 3.9.0 bug workaround

There is a bug in matplotlib 3.9.0 that will cause (rare) random failure when calling matplotlib.pyplot.subplots(), which will result in node crash.
This issue does not appear in 3.8.x and is apparently due to be fixed in 3.9.1, which currently does not have a due date but github says is "94% complete".
https://github.com/matplotlib/matplotlib/pull/28269
https://github.com/matplotlib/matplotlib/issues/28267
I don't know if temporary environmental workarounds like this make sense to merge to main.
This is likely not an issue in manual use but fatal in batch processing.
For my purposes being able to disable previews would solve this, but I expect some people want to see those in batch processing as well.

apparenlty this also fails perpetually if the windows computer is locked (desktop not programmatrically accessible)
*facepalm
recommend just downgrading to matplotlib==3.8.4 instead, which works fine

for anyone impacted by this, 3.9.1 is out and works fine


Configurable storage hasher

I am updating the storage hasher for our ORML https://github.com/laminar-protocol/open-runtime-module-library/pull/101
For the oracle module, I am using twox64_concat for T::OracleKey, which is an enum for Acala and LamianrChain, so it is safe as there will be only < 10 possible values.
However this may cause issue if someone is using u128 as T::OracleKey.
Without the ability to configure hasher, it is not possible to implement efficient and reusable pallet.

to make hasher configurable in the current macro we could change decl_storage to get a type instead of one of the defined variant as such:

decl_storage! {
	trait Store for Module<T: Trait> as System {
		Account: map hasher(MyHasher) T::AccountId => ();
	}
}

MyHasher will then have to implement StorageHasher
and also we have to add a metadata function (probably in StorageHasher trait) to retrieve metadata at runtime.


Why is my BLE Service not appearing after a successful flash?

I am trying to flash a generic nRF52823 with the test sketch. When I flash the soft device, it says that the programming finished and the verification was successful. Here is the log:
Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
0x4000
adapter speed: 10000 kHz
nrf52.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x0001b08e msp: 0x20001188
nrf52.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
auto erase enabled
nrf52.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000001e msp: 0xfffffffc
wrote 114688 bytes from file C:\Users\Admin\Documents\ArduinoData\packages\sandeepmistry\hardware\nRF5\0.7.0/cores/nRF5/SDK/components/softdevice/s132/hex/s132_nrf52_2.0.1_softdevice.hex in 2.602834s (43.030 KiB/s)
** Programming Finished **
** Verify Started **
nrf52.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0xfffffffc
nrf52.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0xfffffffc
verified 110636 bytes in 0.377083s (286.523 KiB/s)
** Verified OK **
** Resetting Target **
shutdown command invoked

That output leads me to believe that the sketch was uploaded successfully and the chip should start broadcasting over BLE. However, when I use a BLE scanning app, I don't see any device called "test". Is there anything else I need to do in order for the chip to start broadcasting?

Previously I was able to flash my chip (exactly the same as yours), but through my Pi.
I think this is the correct config that I used, maybe you can use it:
source [find interface/sysfsgpio-raspberrypi.cfg]
transport select swd

set CHIPNAME nrf52
source [find target/nrf52.cfg]

reset_config  srst_nogate

adapter_nsrst_delay 100
adapter_nsrst_assert_width 100

init
reset halt
nrf5 mass_erase
reset halt
program /home/pi/nrf52/s132_nrf52_7.0.1_softdevice.hex verify
program /home/pi/nrf52/ble_app_hrs_c_pca10040_s132.hex verify
reset run
exit

It might contains unnecessary commands, but I was happy that it works 😄
Note: I compiled an official nrf example with SES ide, not using this library.
Alternatively you can use the 'mergehex' tool which merges the two hex files and you only need to flash one file.
Note 2: Meanwhile I bought a J-link debugger, so I use it for programming. After flashing, I need to send two commands: r(=reset) and g(=run), which are I think identical to 'reset run' in OpenOCD. But if you can't see you device, you might need to manually reset it (cut and re-add power).

Thanks for all that I do. I may give that a go. The thing that stumps me is that the programmers output makes it look like the programming was successful. The test sketch should just broadcast a new service, but I don’t see it after I flash it. Do I need to send some command to wake it back up?
Also, when you flashed yours, did you just solder to the DIO, CLK, VIN, and GND, update the program and then search for the service? I am wondering if I should try to attach an FTDI adapter to check for serial communication to ensure that the flash is actually working.


thread 'tokio-runtime-worker' panicked at 'GTK may only be used from the main thread.'

try to use muda in my tauri project(following code, tauri version 2.0.0-alpha.10), but 'GTK may only be used from the main thread' panicked!

#[tokio::main]
async fn main() {
    tauri::Builder::new()
        .plugin(tauri_plugin_dialog::init())
        .invoke_handler(tauri::generate_handler![
            open_menu,
        ])
        .run(tauri::generate_context!())
        .expect("error while running tauri");
}

#[tauri::command]
pub async fn open_menu(
    x: f64,
    y: f64,
    window: Window,
) -> Result<(), String> {
    let menu = Menu::new();
    // init menu stuff...

   #[cfg(target_os = "windows")]
   menu.show_context_menu_for_hwnd(window.hwnd() as isize, x, y);
   #[cfg(target_os = "linux")]
   menu.show_context_menu_for_gtk_window(&gtk_window, x, y);
   #[cfg(target_os = "macos")]
   menu.show_context_menu_for_nsview(nsview, x, y);

    Ok(())
}

panics:
thread 'tokio-runtime-worker' panicked at 'GTK may only be used from the main thread.', /home/karfield/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gtk-0.16.2/src/auto/menu.rs:40:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:578:5
   1: core::panicking::panic_fmt
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:67:14
   2: gtk::auto::menu::Menu::new
             at /home/karfield/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gtk-0.16.2/src/auto/menu.rs:40:9
   3: muda::platform_impl::platform::Menu::gtk_context_menu
             at /home/karfield/.cargo/registry/src/index.crates.io-6f17d22bba15001f/muda-0.7.0/src/platform_impl/gtk/mod.rs:334:40
   4: muda::platform_impl::platform::Menu::show_context_menu_for_gtk_window
             at /home/karfield/.cargo/registry/src/index.crates.io-6f17d22bba15001f/muda-0.7.0/src/platform_impl/gtk/mod.rs:326:27
   5: <muda::menu::Menu as muda::ContextMenu>::show_context_menu_for_gtk_window
             at /home/karfield/.cargo/registry/src/index.crates.io-6f17d22bba15001f/muda-0.7.0/src/menu.rs:302:9
   6: javue::app::context_menu::show_context_menu
             at ./core/src/app/context_menu.rs:51:5

SO HOW TO MAKE menu.show_context_menu_ running in main thread ? 'wry example' shows it possible to  create
EventLoopBuilder and single window in main(), but HOW to merge with tauri code?

try a non-async tauri command. They will be executed on the main thread. No promises that that will work but it will get you closer :)

This can work! but also needs to create a tokio runtime manually :<

You can access Tauri's running tokio runtime via spawn/block_on from https://docs.rs/tauri/latest/tauri/async_runtime/index.html - alternative you can also try making the command async again, and then use an AppHandle or Window to use https://docs.rs/tauri/latest/tauri/struct.AppHandle.html#method.run_on_main_thread


"cpu_avx2" runner: 135M model outputs 4 words in 3.5 hours @100% CPU

What is the issue?
A 135M-parameter model only yielded 4 words after running for 3.5 hours on one 36-core CPU @ 100% load.
A 3.8B model yielded only 10 words after 10.5 hours on the same machine.
Prompt in both cases: "Introduce yourself."
Windows Server 2016 OS (direct install, no Docker).
Ollama 0.5.1 on 4 Xeon Gold 6140 CPUs (144 logical cores in total) and 768 GB of system RAM (6-channel, NUMA architecture).
No GPU.
Tried two small LMMs for starters, namely smollm:135m and phi3.5 (3.8B).
The correct runner for that CPU type was loaded (cpu_avx2).
smollm:135m was saying (after 3.5 h): "I'm thrilled to introduce..."
phi3.5 (3.8B) was saying (after 10.5 h): "Hello! I am Phi, an artificial intelligence designed to interact..."
I have run larger LLMs with Q4 and FP16 quantizations on a much older server machine running Windows 10 with dual Xeons 5600 (intel Westmere, no AVX), 288 GB of RAM (and no GPU), and the "cpu" runner worked fine. Indeed, a 30B, Q4 model runs very slow (~one word/second), but nothing like one word/hour!!!
On the newer machine (Win Server 2016), Ollama seems to run 288 parallel threads on one of four 36-core (logical) CPU; here's an excerpt from the server.log:
time=2024-12-12T16:47:26.192+01:00 level=INFO source=runner.go:942 msg=system info="AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | FMA = 1 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | RISCV_VECT = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 | cgo(clang)" threads=288
On the older machine (Win 10 Pro x64), Ollama used both CPUs and the load peaked at ~60%. RAM is DDR3 @ 1333 MHz, 3 channels/CPU (6 channels for DDR4 @ 2666 MHz on the newer machine).
OS
Windows
GPU
Other
CPU
Intel
Ollama version
0.5.1

Server logs will aid in debugging.

I thought it might be something strange like only 1 thread being assigned to the runner or relying heavily on swap, but it all looks normal.  For comparison, i7-13700:
$ ollama run --verbose smollm:135m "Introduce yourself."
I'm excited to introduce myself!
"I'm excited to introduce myself! I'm a passionate and experienced data scientist with over 10 years of experience in the field. My name is [Your Name], and I'll be your guide today as we dive into some exciting projects that showcase my skills and knowledge.
Introduction (5 minutes)
[Name]: Hello, I'm [Your Name] from [Company/Organization]. I've been a data scientist for over 10 years, and I..."

It seems that Ollama mistakenly assigns 288 threads to one CPU with 36 logical cores.
Since Win Srv 2016 is a server OS, it tends to assign at most one CPU to a single application (like MatLab - never made it run all the 144 cores in parallel).
I suspect that Ollama will run normally as long as <=36 threads are assigned.
Perhaps it has something to do with the initial detection of built-in GPUs in all those Xeons?
server.log:
time=2024-12-12T12:00:03.464+01:00 level=INFO source=gpu.go:221 msg="looking for compatible GPUs"
time=2024-12-12T12:00:03.464+01:00 level=INFO source=gpu_windows.go:167 msg=packages count=4
time=2024-12-12T12:00:03.464+01:00 level=INFO source=gpu_windows.go:214 msg="" package=0 cores=72 efficiency=0 threads=144
time=2024-12-12T12:00:03.464+01:00 level=INFO source=gpu_windows.go:214 msg="" package=1 cores=72 efficiency=0 threads=144
time=2024-12-12T12:00:03.464+01:00 level=INFO source=gpu_windows.go:214 msg="" package=2 cores=72 efficiency=0 threads=144
time=2024-12-12T12:00:03.464+01:00 level=INFO source=gpu_windows.go:214 msg="" package=3 cores=72 efficiency=0 threads=144
time=2024-12-12T12:00:03.828+01:00 level=INFO source=gpu.go:386 msg="no compatible GPUs were discovered"
time=2024-12-12T12:00:03.828+01:00 level=INFO source=types.go:123 msg="inference compute" id=0 library=cpu variant=avx2 compute="" driver=0.0 name="" total="767.2 GiB" available="741.7 GiB"

Continued: and this is with "/set parameter num_thread 36" (single-CPU load maxed at ~90%):
total duration:       7.4600041s
load duration:        512.9666ms
prompt eval count:    13 token(s)
prompt eval duration: 20ms
prompt eval rate:     650.00 tokens/s
eval count:           605 token(s)
eval duration:        6.926s
eval rate:            87.35 tokens/s

...And this is after adding just one extra thread than the logical cores of one CPU:

/set parameter num_thread 37
Set parameter 'num_thread' to '37'
Introduce yourself.
I'm a human being, I don't have a specific name or title in the classical sense of "human." However, I can be considered an "engineer" because of my unique combination of skills and expertise that enables me to design, develop, and improve systems, products, and services that benefit humanity.

total duration:       42m24.8791268s
load duration:        514.1166ms
prompt eval count:    19 token(s)
prompt eval duration: 45.625s
prompt eval rate:     0.42 tokens/s
eval count:           64 token(s)
eval duration:        41m38.609s
eval rate:            0.03 tokens/s
42 minutes!!! Up from 7.5 seconds!.....
It seems that Ollama incorectly detects the CPU's number of logical cores (==>threads).
On this machine, it wrongly finds 288 logical cores (and assigns 288 threads) when there are only 144 cores. Then, since it is a Server OS, only 36 cores can be assigned to a single process.
So, ideally, Ollama should:

Correctly detect the number of CPUs and logical cores in each CPU;
Correctly detect whether there is a GPU built in the CPU (here, it detected GPUs in those Xeons when there were none);
and 3) Add support for Windows Server OS 2016+ (2016 corresponds to the Desktop Windows 10) and detect how many max. cores can be assigned to one process, and start the runner (e.g., cpu_avx2) with that number of threads.

On my older server machine (running Windows 10 Pro x64) with a total of 24 logical cores in two Xeons 5600 Westmere (runner=cpu; no AVX), Ollama only detects the 12 threads (logical cores) of one CPU, and runs 12 threads by default ==> CPU load was shared between the two CPUs, and peak load maxed at ~60%, running at ~50-55% most of the time.
Just ran a 12B, FP16 model in Ollama with "/set parameter num_thread 24" and the CPU utilization now is at steady 100%.

ollama sums the number of (cores - efficencyCores) over all CPUs, it doesn't treat the Xeons as GPUs.  If Windows Server 2016 limits applications to one CPU then I assume there's some syscall that can be made to detect that, and that logic would need to be added to discover/gpu_windows.go.  In the meantime you can create a copy of the models you want to use and assign the number of threads they are to use.
$ ollama run smollm:135m
>>> /set parameter num_thread 36
Set parameter 'num_thread' to '36'
>>> /save smollm:135m-36t
Created new model 'smollm:135m-36t'
>>> /bye

Related to issue #2936 - our NUMA performance at present isn't optimal, particularly on Windows.  Manually setting num_thread and experimenting to find what yields the best throughput is the best workaround for now until we implement proper NUMA support on windows for CPU inference.


CalculateEventsHash logic outdated

It was brought to my attention that the logic in the SDK for computing Events Hashes is out of date with the protocol logic:
SDK:
https://github.com/onflow/flow-go-sdk/blob/573abf0bffa1334267386f3960a56c65516996cc/event.go#L94-L109
Flow:
https://github.com/onflow/flow-go/blob/60b67349445b054449ccef6cbd78644ec95b20c3/model/flow/event.go#L102-L124
I believe the protocol logic changed fairly recently, and it is now generating a Merkle tree rather than directly hashing the concatenation of the events. cc @ramtinms for specific details on the changes

@sideninja I'm trying to evaluate a way to untangle this, currently talking to the team to see if we could move it to a separate package or part of the crypto lib

Does the interface has to keep the signature or it can change? I'm asking because the Merkle tree root hash is returned as identifiers and it might be a good idea to keep them as identifiers since they are more defined than hash.

DOD:

implemented
released in new version of SDK

Current state: waiting for PR approvals cc @kerrywei

Connect with our  team representatives to help resolve your issue and troubleshooting .
Connect here: direct.lc.chat/14158209/
Hours of Operation
24/7 (Ready to fix issues)


recursively create node similar to file explorer

Hi @martinRenou ,
How do I recursively create node based on json content. For ex: if my json has key:val pair based on my directory structure, How do i use Tree() and Node() to recursively create widgets.
my json is :
res={'home': {'james': {'Downloads': {'data': {'data19': {'20190207': {'adc1': '5' }}}}}}}
I tried using recursively as in this link, but not much success

Hello,
Could you please provide the code you tried to execute?

Here is pseudo code. I want to have a similar logic and with Node() method called recursively when dict() reaches end point.
`res={'home': {'james': {'Downloads': {'data': {'data19': {'20190207': {'ADC': '5' }}}}}}}
import json
from ipytree import Tree, Node
def walk(d):
global path
for k,v in d.items():
if isinstance(v, str) or isinstance(v, int) or isinstance(v, float):
path.append(k)
print("{}={}".format(".".join(path), v))
path.pop()
elif v is None:
path.append(k)
# do something special
path.pop()
elif isinstance(v, list):
path.append(k)
if len(v) == 1 :
path.pop()
else:
for v_int in v:
walk(v_int)
path.pop()
elif isinstance(v, dict):
path.append(k)
walk(v)
path.pop()
else:
print("###Type {} not recognized: {}.{}={}".format(type(v), ".".join(path),k, v))
path = []
walk(res)`
output should be:

@martinRenou
Below code uses fixed set of nodes. I want to make it recursive and use node name from json.
from ipytree import Tree, Node

tr=Tree()

a=Node('a')
b=Node('b')
c=Node('c')
d=Node('d')

c.add_node(d)
b.add_node(c)
a.add_node(b)

tr.add_node(a)

tr

output:

I wouldn't go through this path2 variable in order to create the tree, also it's a global variable and global variables are evil. Well, everything is global in Jupyter but that's a special context.
Simply define a populate function like the following (I did not test that code, so you might need to change one or two things to make it work):
json = {'home': {'james': {'Downloads': {'data': {'data19': {'20190207': {'adc': '5' }}}}}}}

def populate(node, json):
    for key, value in json.items():
        leaf = Node(key)

        if isinstance(value, dict):
            populate(leaf, value)

        node.add_node(leaf)

tree = Tree()
populate(tree, json)
tree


Highlight diagram and code in split view

@uthaiyashankar commented on Tue Apr 03 2018
 Issue by lahirus
Friday Nov 10, 2017 at 21:10 GMT
Originally opened as https://github.com/ballerina-lang/composer/issues/4572

This is a nice to have feature.
We can highlight each other when the composer is viewed in split view.
i.e.,
Highlight the relevant part of the diagram when we mouse over a line of code
Highlight the relevant line of code when we mouse over a part of the diagram

We've discontinued the diagram support in 1.2.x, and a new diagram will be introduced to the Swan Lake plugin.


Sprint Goal: Jun 01-14

The sprint goal is to setup testing between Touchstone and CDC FHIR Subscription and begin SMART Auth testing. The team will update all architecture diagrams in CDC Lucid. The team will send tickets for access to Terraform location in CDC Enterprise Repo. The team will also begin implementation of Private Link in non-CDC subscription for testing.

How does Microsoft access the CDC Enterprise Repo - via a ticket submission through Service Now. First line of ticket should be "CDC Enterprise GitHub Repo Access".


⚠ Bofrost.nl has degraded performance

In 105d607, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 1692 ms

Resolved: Bofrost.nl performance has improved in f6349ed.


use aws-keychain for credentials

I don't usually write out my credentials into a credential file, but store them using aws-keychain.  Would it be possible to have an option to not have profile mandatory?

Yep it would. Do you mind whipping up a pull request for this? I'm not familiar with the aws-keychain.

Wouldn't mind at all.  Thanks!

This would be good. I was annoyed that I have to put my credentials on a profile file, since I am already using awsam to manage different AWS accounts through ENV variables

@woqer pull requests welcome.

Not sure about aws-keychain, but this PR works for awsam and any other way in which boto takes credentials https://github.com/garnaat/kappa/pull/104 @josegonzalez

do you think we could also use environment vars like (AWS_SECRET_ACCESS_KEY and AWS_SECRET_KEY_ID) instead of profile if available?

Yes, that should work on the new release that got out recently
On Feb 14, 2017 6:22 PM, "Leo Amigood"<EMAIL_ADDRESS>wrote:

do you think we could also use environment vars like
(AWS_SECRET_ACCESS_KEY and AWS_SECRET_KEY_ID) instead of profile if
available?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/garnaat/kappa/issues/84#issuecomment-279879724, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEOLo_7VrY2HN6uL9zKFLBMOpR5cuPELks5rckU2gaJpZM4J0dzs
.


[EXP-38-239] Feat: add gnosis chain support

I got brownie run tvl to work in this PR

I just created a PR that will add a checklist for adding new chains. You've done great with this as Marius said, but there are a few more things that will be necessary for the exporters to run.
Could you take a peek at the checklist here and make sure you've got everything?
https://github.com/yearn/yearn-exporter/pull/242/files

I just created a PR that will add a checklist for adding new chains. You've done great with this as Marius said, but there are a few more things that will be necessary for the exporters to run.
Could you take a peek at the checklist here and make sure you've got everything? https://github.com/yearn/yearn-exporter/pull/242/files

in ./yearn/networks.py:

[ x ] specify the chainid in the same way as the others.

[ x ] specify a network label in Networks.label.

in ./yearn/constants.py:

[ ] specify Treasury address. (if Yearn has a treasury contract deployed) - No treasury contract deployed

[ x ] specify Strategist Multisig address. (if Yearn has a SMS deployed)

in ./yearn/prices/constants.py:

[ x ] add weth address to tokens_by_network.

[ x ] add usdc address to tokens_by_network.

[ x ] add dai address to tokens_by_network. - NOTE: Main currency on gnosis is already Dai(xDai). Do we need this? Currently set to 0x44fA8E6f47987339850636F88629646662444217

[ x ] configure stablecoins using popular + "safe" stablecoins on the chain.

in ./yearn/multicall2.py:

[ x ] specify the appropriate multicall2 contract address. - NOTE: Deployment not from maker. Maker contract not verified. Diff looks good

in ./yearn/prices/chainlink.py:

[ x ] specify any chainlink feeds available on the chain in feeds.

[ ] specify the chainlink registry address in registries if applicable, or specify None if not applicable. - **Note: No registry found **

in ./yearn/prices/uniswap/v2.py:

[ x ] specify the factory and router address for any important uni v2 forks on the chain.

in ./yearn/utils.py:

[ x ] specify BINARY_SEARCH_BARRIER as 0 if all historical data is available. If historical data not available due to a network upgrade/etc, specify the first block of the available historical data.

in ./yearn/middleware/middleware.py:

[ x ] specify BATCH_SIZE of approx 1 day based on avg block times on the chain.

in ./scripts/historical-exporter.py:

[ x ] configure end to equal the date + hour of deployment for the first Yearn product on the chain. NOTE: I assume yearn vault based off this post: https://github.com/yearn/yearn-exporter/issues/227#issuecomment-1029510526

[ x ] configure data_query. See mapping in ./yearn/outputs/victoria/output_helper.py to figure out the metric to specify based on what type of product was the first deployed on the chain.

in ./scripts/historical-treasury-exporter.py:

[ ] configure end to equal the date + hour of deployment for the Yearn Treasury on the chain.

[ ] configure data_query using the existing networks as an example.

in ./scripts/historical-sms-exporter.py:

[ ] configure end to equal the date + hour of deployment for the Strategist Multisig on the chain. NOTE: No treasury deployed

[ ] configure data_query using the existing networks as an example.

You also need to set up containers for each exporter on the new chain. This is a little more complicated but you can use existing containers as an example:

[ ] define common envs for the chain
[ ] add one new service entry for forwards exporter
[ ] add one new service entry for historical exporter
[ ] add one new service entry for treasury exporter
[ ] add one new service entry for historical treasury exporter
[ ] add one new service entry for sms exporter
[ ] add one new service entry for historical sms exporter
[ ] add one new service entry for wallet exporter
[ ] add one new service entry for transactions exporter
[ ] adapt entrypoint.sh

NOTE: Main currency on gnosis is already Dai(xDai). Do we need this? Currently set to 0x44fA8E6f47987339850636F88629646662444217

Good question! For Gnosis chain it should be fine to use wxDAI (0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d) rather than DAI as it will be more widely used on the chain. Please include both in the stablecoins constant.

configure end to equal the date + hour of deployment for the first Yearn product on the chain. **NOTE: I assume yearn vault based off this post: **

In this case, you're correct that the first product deployed is a yearn vault. But that is not always the case, on Fantom for example, the first Yearn product deployed was an IB market. (Yes, I know IB is now separate but that is neither here nor there...) What you did looks just fine.
Without a Yearn Treasury live on Gnosis chain, do you know which address is set to receive perf/mgmt fees from the Gnosis vault deployment?

NOTE: Main currency on gnosis is already Dai(xDai). Do we need this? Currently set to 0x44fA8E6f47987339850636F88629646662444217

Good question! For Gnosis chain it should be fine to use wxDAI (0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d) rather than DAI as it will be more widely used on the chain. Please include both in the stablecoins constant.

configure end to equal the date + hour of deployment for the first Yearn product on the chain. **NOTE: I assume yearn vault based off this post: **

In this case, you're correct that the first product deployed is a yearn vault. But that is not always the case, on Fantom for example, the first Yearn product deployed was an IB market. (Yes, I know IB is now separate but that is neither here nor there...) What you did looks just fine.
Without a Yearn Treasury live on Gnosis chain, do you know which address is set to receive perf/mgmt fees from the Gnosis vault deployment?

governance →
0x22eae41c7da367b9a15e942eb6227df849bb498c
management →
0xfb4464a18d18f3ff439680bbbce659db2806a187
guardian →
0x5fcdc32dfc361a32e9d5ab9a384b890c62d0b8ac

This is great, could you please add two new exporter service entries into the docker-compose.yml for the dashboards as well (one for forwards and one for historical exports) ?

by forwards do you mean the exporter.py?

This is great, could you please add two new exporter service entries into the docker-compose.yml for the dashboards as well (one for forwards and one for historical exports) ?

by forwards do you mean the exporter.py?

Sorry for the delay, just got back from Denver.
Yes you are correct, forwards exporter would be exporter.py

Hi @BobTheBuidler I believe I addressed most of the points. I left notes on stuff I couldn't address. I am able to run the following commands successfully
brownie run tvl
brownie run print_strategies
brownie config:
xdai-archive
    ├─id: xdai-archive
    ├─chainid: 100
    ├─explorer: https://blockscout.com/xdai/mainnet/api
    └─host: https://xdai-archive.blockscout.com

@0xkofee I added a few more things to your branch, and am working on testing now. Do you know of a good public archive node for Gnosis chain?

@BobTheBuidler Hey there! I messaged you on telegram but wasn't sure if you had PM's turned off. anyways I was using this archive node:
xdai-archive
    ├─id: xdai-archive
    ├─chainid: 100
    ├─explorer: https://blockscout.com/xdai/mainnet/api
    └─host: https://xdai-archive.blockscout.com

Closing as this is replaced by #289


[ WIP ] option to disable data-event

Suggestion to solve #570
data-event="" disables trigger.
I'll fix following TODOs when maintainers accept this interface.
TODO:

body mode (I don't know what is this).
data-event-off
documentations
maybe example

I found data-event="" breaks compatibility if someone uses "" to declare default event.
data-event="none" might be better.
I'd like to hear opinions.


Implement dry run merge message skeleton

What has been done

Implemented dry run merge message skeleton.

How to test

Merge PR
Leave a test comment on PR with --dry-run flag
Confirm posted comment conforms the dry run message format

/robin merge --dry-run

/robin merge --dry-run


As a User I want to convert all kind of documents into text

Issue moved to gnames/gnfinder #88 via ZenHub


Help!The version of torch used in the paper！

Running validation for epoch 1/300
Traceback (most recent call last):
File "main.py", line 147, in
main()
File "main.py", line 143, in main
train(model, device, hidden_config, train_options, this_run_folder, tb_logger)
File "/content/HiDDeN/train.py", line 85, in train
utils.save_images(image.cpu()[:images_to_save, :, :, :],
File "/content/HiDDeN/utils.py", line 57, in save_images
torchvision.utils.save_image(stacked_images, filename, original_images.shape[0], normalize=False)
File "/usr/local/lib/python3.8/dist-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/torchvision/utils.py", line 728, in save_image
im.save(fp, format=str(format))
File "/usr/local/lib/python3.8/dist-packages/PIL/Image.py", line 2123, in save
save_handler = SAVE[format.upper()]
KeyError: '8'
When we reproduce the experiment, we found a lot of errors caused by our difference from your Torch version.we  want to know which version of Torch you used in paper, Appreciate it.

I am not the author of the paper, there is a link to the paper and their repo which was in Lua+Torch, NOT PyTorch.
This repo was tested with PyTorch 1.0.


Button mapper issue when re-connecting controller via wireless xbox adapter

Hi there, really like using the button mapper tool, and love the fact you can initiate multiple functions for the share button! I have however found a slight problem while using it on my setup of a microsoft xbox wireless controller adapter,
I can sync up the controller and use it while having button mapper open no problem and the button mapper tool works perfectly, but i have found that if the controller is turned off or disconnects while button mapper is still running I cannot re-connect the controller. It looks like it connects for a split second and i have confirmed it does using the xbox accessories app, the controller is recognised but then disconnects and turns off. Its not that big of an issue as the controller re-connects properly after closing button mapper and im able to open it again to continue but just in case you had any thoughts on what might cause this?
Cheers, Ryan

I came here to say exactly the same thing! It took forever to realise it was this app and not a faulty cable or faulty port.
If you stop the app and try to reconnect again it works fine but if the controller powers off again the issue returns.

Hi, me too I have the same issue with the wireless xbox adapter, it works with Bluetooth
But it turns off directly the controller when using the adapter

I also have this issue, please fix.

Application version <IP_ADDRESS>, but I remember trying at least a couple older versions and this still happening
Windows 10 Pro Version 2004
1914
The older, larger adapter
Controller is on the latest firmware

Application version <IP_ADDRESS>, but I remember trying at least a couple older versions and this still happening
Windows 10 Pro Version 2004
1914
The older, larger adapter
Controller is on the latest firmware

After a little bit of additional testing, this seems to happen on my older 1708 controller as well, had to dig it back out to test.

Is there any update? Was the additional information helpful?

Yes, it was helpful.
Can anyone try the other Controller models?

This issue does not happen with the Xbox Controller model 1697 and Xbox Wireless Adapter model 1713.

I think i know why it doesn't work for me and some others.
Windows 10 don't support the share button. It's exclusive to Windows 11.
Steam itself have native support for Share button, but that one is buggy too as it takes screenshots instead of the remapping to record of video.

This issue is fixed in version <IP_ADDRESS>.

<IP_ADDRESS> didn't fix it for me.
Here is all i tried.

Windows 10 is 100% up to date.

Xbox Gamepad uses newest firmware. Updated it again in Windows 10 yesterday (Xbox Accessories)

I re-installed VC_redist.x64.exe (2022) from link in "Readme" and rebooted

I use share_key = 56,68 (Left ALT + F10) ( , (51) on Numpad didn't work either)

Xbox Pad were powered on before i started Remapper

I tried wireless and wired.

Share button works, because Steam detects it without Xbox Button Remapper.

<IP_ADDRESS> didn't fix it for me.
Here is all i tried.

Windows 10 is 100% up to date.

Xbox Gamepad uses newest firmware. Updated it again in Windows 10 yesterday (Xbox Accessories)

I re-installed VC_redist.x64.exe (2022) from link in "Readme" and rebooted

I use share_key = 56,68 (Left ALT + F10) ( , (51) on Numpad didn't work either)

Xbox Pad were powered on before i started Remapper every time

I tried this wireless and wired. (Wireless with official Win 10 USB Wireless Xbox Dongle)

Also tried short and long presses

Share button works, because Steam detects it without Xbox Button Remapper.

"I use share_key = 56,68 (Left ALT + F10) ( , (51) on Numpad didn't work either)"
Perhaps i did something wrong here?

This thread is just waste of time as GitHub auto marks everything as off topic.
Finally got the remapping to work with Steam and NVIDIA Shadowplay, so i don't need this non working app anymore.

<IP_ADDRESS> didn't fix it for me. Here is all i tried.
* Windows 10 is 100% up to date.

* Xbox Gamepad uses newest firmware. Updated it again in Windows 10 yesterday (Xbox Accessories)

* I re-installed VC_redist.x64.exe (2022) from link in "Readme" and rebooted

* I use share_key = 56,68 (Left ALT + F10) ( , (51) on Numpad didn't work either)

* Xbox Pad were powered on before i started Remapper every time

* I tried this wireless and wired. (Wireless with official Win 10 USB Wireless Xbox Dongle)

* Also tried short and long presses

* Share button works, because Steam detects it without Xbox Button Remapper.

"I use share_key = 56,68 (Left ALT + F10) ( , (51) on Numpad didn't work either)" Perhaps i did something wrong here?

You are commenting in the wrong place.
See the issue (#7) you created and my reply there:

This program works on Windows 10/11 64-bit to remap the Xbox/Guide button and/or Share button on the Xbox Controller.
Support is available under Discussions in Help.

Make sure you have this setting disabled for it to work:
Settings - Gaming - Xbox Game Bar - Open Xbox Game Bar using this button on a controller: (X)


Unhandled IndexOutOfRangeException doing GetFrameInfo

I've seen a few crash dump uploads with this managed callstack. Unfortunately for managed crashes all I have to go on is the stacktrace as the minidump doesn't get anything useful.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at renderdocui.Code.Core.<>c__DisplayClass6.b__3(ReplayRenderer r) in Core.cs:482
   at renderdocui.Code.RenderManager.RunThread() in RenderManager.cs:237
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

See Core.cs:482 on v0.26
I'm not sure what to make of it - maybe the frameinfo array is empty somehow but I don't know how you'd have a capture without any frame data in it.
This issue just filed here in the hopes that someone who runs into this crash sees it and can give me more information :).

I'm fairly sure now this is caused by mismatching updates between the core dll and the UI - see #264. That can cause the marshalling to break between the two parts and that would explain why the frame record could be empty.
As with #264 this has been fixed for the next version, so hopefully this will eventually go away.


IP + bitmap file from command line?

Hello,
you made my day. Thank you, to start with.
Perhaps it might be good idea to have the ability to pass arguments to the binary in order to connect to the printer's IP and pass a bitmap file externally also? This way it could be used in shell scripts.
Perhaps also include some sample bitmap files that work with specific paper sizes? That would make life easier for other people who want to use the wireless printer in Linux. I'm willing to debug and test for you (I am not a coder).
Again, thank you so much!

I just saw that this document is mentioning port 9100
http://download.dymo.com/dymo/user-guides/Print_Server/LWPrintServer_UserGuide_en-US.pdf
I can only assume that it is a similar device (the DYMO Wireless has an ARM CPU based on its web interface log page) and CUPS should be able to drive it? See the Linux section on the above PDF.
Additionally, there is an old SDK: https://www.dymo-label-printers.co.uk/user/dymo-cups-drivers-1.4.0.tar.gz that mentions how to drive DYMO from Linux with samples.
Found it on this page: https://www.dymo-label-printers.co.uk/news/download-dymo-sdk-for-linux.html
The CUPS drivers do not show LWW which is very weird because this is not that new of a new model. I didn't manage to print using CUPS no matter what I tried. I was using the 99012 labels. Your software drove the hardware nicely even though sizes and orientation etc didn't match (which is just settings I guess).
Have you been able to drive this printer in Linux with anything else than your code? Have you gone a different path since you released this code?

PPD file found here: https://gist.github.com/vstath/0f5eab715cec427b86dcf9c47f397f04
Not sure if it's of any help but perhaps can see some different options compared to other models (for example the 300x600 dpi etc

Hi,
Does this PPD really works ? I'm not able to print any labels... Is LWW compatible with LW450 ? Old LW450 works as expected without probems...
Regards,
Lukasz

I took this PPD from my MacOS and it worked fine there. Not sure about Linux though. I didn't manage to make it work IIRC


Get all job metadata

CPU and duration weren't automatically extract from the job metadata to the job tracker.

This functionality is also in the MBJM: https://github.com/Open-EO/openeo-python-client/blob/e8017eba348bc3586d1cbb88db85850822f4a7be/openeo/extra/job_management.py#L745-L749
(next release will also include costs)
Here it is under _track_statusses.
Should be reuse this functionality rather than do it twice? Not sure how to properly add it however

Looking into it, I'm not even sure that _update_statuses is still being called on by the MBJM so this code is not executed.


IE11, SCRIPT5022: No ack for postMessage postrobot_method in http://localhost:8080 in 2000ms

We experience this error in IE11. It works for chrome. It is probably an issue on our site, but I'd like to ask for some tips.
zoid.create({
    autoResize: true,
    containerTemplate,
    defaultLogLevel: 'error',
    dimensions: {
      height: '100%',
      width: '100%',
    },
    props: propDefinition,
    scrolling: false,
    tag: 'fan-wallet',
    url: Config.url,
  });

The application loads, but after timeout, it throws this error multiple times (x16). What we have fond:

If we omit autoResize or set it to false, we get fewer errors, but it is not working properly.
If we increase the ACK_TIMEOUT to 3 sec it works properly.

We have trouble to track what part of the code runs slow and causes the timeout. The performance function in IE Devtools basically does not work. Any tip, that we should check?
UPDATE:
I found the bug, and a workaround. We set around ~13 of functions on xprops. Chrome has no problem with that, but IE struggles with all the serializations and times out.
Our workaround is to call the setter async, and it works. However is there any way you could release a new patch version for 6.x where you expose the ACK_TIMEOUT?

In the latest version of zoid, post-robot increases the ack_timeout if it already knows post-robot is loaded in the other window. Can you try the latest and let me know if you see the same issue?

Is there something missing from the newer major versions that I can help with?

Can you do zoid.postRobot.CONFIG.ACK_TIMEOUT = 5000;?

Yepp, it works! Thank you! 👍


Make VCPU first class citizien

Author Name: Nico Schottelius (Nico Schottelius)
Original Redmine Issue: 3833, https://dev.opennebula.org/issues/3833
Original Date: 2015-06-11

VCPU (= cores emulated in the VM) is at the moment a second class citizien:

cloud views display only CPU
accounting is based on CPU

However CPU only defines the reserved CPU space on the host.
Our users are more interested in being able to select (and charged!) by the number of VCPUs they have in the VM then CPU reservation (our hosts are underutilized due to networking constraints anyway).
I would like to see opennebula to be able to:

Allow users to create/book VMs and have VCPU displayed instead of CPU
Have accounting include VCPU usage, so we can bill by Disk space used + RAM + VCPU usage

Original Redmine Comment
Author Name: Nico Schottelius (Nico Schottelius)
Original Date: 2017-06-10T20:52:05Z

Hello,
is there any possibility to raise the priority of this and include it in one of the next releases?

I think there is a misunderstanfing of vCPU, that's related to the virtual hardware configuration and CPU that's related to the capacity allocation. Closing this.


Serverless support

When attempting to retrieve the index using the GetIndex method by providing the indexName of a serverless index, an HttpRequestException is encountered. The exception message is as follows: System.Net.Http.HttpRequestException: 'Response status code does not indicate success: 404 (Not Found).'
Steps to Reproduce:
Call the GetIndex method on a serverless index using the corresponding indexName.
Observe the raised HttpRequestException with the mentioned status code (404).

Right, I was expecting something like this happening sooner or later. Thank you for submitting the issue.
There seem to be other changes to the index management API - I'm going to integrate them too, expect a release soon.

Hi @AlexPlom If you would like to contribute, a good place to start is to go through each request at https://docs.pinecone.io/reference (thankfully the API is still very simple) and see how it differs with the current model defined in this project. This is what I did for e.g. 1.4.0 release when noticing previous API changes. The caveat here is it seems Serverless API has more differences and I quickly realized it will take more time to figure out if the differences are backwards compatible and/or need additional handling.
Unfortunately, it appears that Pinecone have stopped serving OpenAPI spec file to their frontend which I'd probably use in this case given there are more changes this time, so the manual approach it is. Alternatively, you could look for the spec file in Pinecone's libraries but quick search did not turn up with anything useful. Because of these aspects and the fact that testing Serverless needs switching to paid plan if you already have pod-based index, I realized it will take more time than I'm willing to allocate to this project at this moment.
Overall, the reason this library exists in the first place is that manually writing it was a faster option to guarantee good and reliable client impl. that properly glues together REST control plane API and gRPC data one, and works well with C# - NSwag, Kiota and other client generators are terrible, produce AOT-incompatible code and pick bad containers for data where it matters.
In order to get started, you only need latest .NET SDK and that's it. I'd be happy to review a PR and assist with getting it merged if you're interested.
Let me know if you have any questions.

Serverless is now supported with the version 2.0: https://github.com/neon-sunset/Pinecone.NET/releases/tag/2.0.0


Added links back

Description
Added back some additional links
Related Issue: #(issue) N/A
Type of Change
Please delete options that are not relevant.

[X] Adding a new entry
[X] Updating an existing entry
[ ] Removing an existing entry
[ ] Other (please explain below)

New Entry / Update Details

Name: Various
Link: Various
Description (optional):

Checklist:

[X] I have performed a self-review of my own contribution
[X] I have checked if the entry already exists in the list
[X] I have included the entry under the appropriate category
[X] The entry is in alphabetical order within its category
[X] The link provided is valid and functional

Glad to see you back :)


How to generate depth maps

How did you generate depth maps for the CelebA-HQ dataset? In your paper, you mention a Deep Multi-View Stereo approach, but the model accompanying this approach seems to require at least two views of the same face in order to construct a 3D Morphable Model.

I've tried running Bai et. al. using two copies of the same image, and the result has a lot of artifacts. However, if I use two different views of the same subject, I get pretty good 3D morphable models.

That model can also produce a 3D face given a single image (in their code you can specify the same image twice in the image list as you mentioned). The quality of the 3D face will of course improve if you have two or more images from different views serving to constrain the shape instead of just a single view but to use CelebA-HQ for training we only have a single view available. The reason we use this method for our depth map estimation is that we further apply it to estimate the groundtruth 3D shape for our surface normal evaluations on Multi-PIE using 3 views at a time, so we wanted to keep the method we were using consistent.

Ah, I see. It's strange, though, when I try to run Bai et. al. on two copies of a CelebA-HQ image I get:

...agh, that's terrifying. I might have set up the Deep Multi-view code incorrectly?
It was honestly kind of a pain to get that codebase set up in the first place - do you think it would be fairly easy to use depth estimates from a different network to supervise the depth decoder? I'm just worried that, in doing so, I'll mess up the raytracing part of the code. The various depth estimators I've looked at use different units for measuring depths (and, occasionally, different coordinate spaces). If I use a new depth teacher, I'm worried that the raytracing portion of the network will produce crazy unrealistic shadows. Have you experimented with this? Thanks!

So this is what their model produces on my end, maybe it is indeed a difference in how we set up their codebase. Are you interested in retraining the model? If so I've provided the depth maps already for CelebAHQ in the google drive link that contains the training data on this repo (see the README). What's missing is the original CelebAHQ images, which of course must be downloaded on your own and cropped.

Yes, I am trying to retrain the model, but not using exactly the same ground truth that you provide. For context, I tried runnin ga pre-trained network on some images with low light / exposure.  This, in turn, leads to ridge- and streak- like shadows. I had two ideas for getting around this:

create an augmented, low-light version of the CelebA-HQ dataset, and train the model to be able to handle low-light inputs in the first place.
supervise depth estimates with higher-quality ground truth. I took a look at the ground truth depth maps that you provided in the Google Drive, and noticed that they were more coarse than the one presented in Bai et. al, so I thought I'd try using Bai et. al. to generate a new, finer-grained set of depth masks.

I'm trying both of these in parallel, but ran into some issues with approach 2), which is why I opened this issue!

Yes, I am trying to retrain the model, but not using exactly the same ground truth that you provide. For context, I tried runnin ga pre-trained network on some images with low light / exposure.  This, in turn, leads to ridge- and streak- like shadows. I had two ideas for getting around this:

create an augmented, low-light version of the CelebA-HQ dataset, and train the model to be able to handle low-light inputs in the first place.
supervise depth estimates with higher-quality ground truth. I took a look at the ground truth depth maps that you provided in the Google Drive, and noticed that they were more coarse than the one presented in Bai et. al, so I thought I'd try using Bai et. al. to generate a new, finer-grained set of depth masks.

I'm trying both of these in parallel, but ran into some issues with approach 2), which is why I opened this issue.

Got it, that makes sense. So I generate the depth maps from the predicted 3D face by using z-buffering to compute the minimum depth at each pixel. The reason the depth maps might seem coarse is likely due to the image resolution that our model is trained on (256x256) which means the depth maps are the same resolution. I guess if it's difficult to get similar results from Bai et al. as what I presented in my previous comment, option 1 is doable. You could use the same groundtruth depth maps as what I provided in the drive link while synthesizing each CelebA-HQ image under low light. That way the network could learn to handle the low light images as you mentioned and still estimate appropriate depth maps.


Add changelog for v1.4.6

What type of PR is this?
/kind documentation
What this PR does / why we need it:
Add changelog for the v1.4.6 release.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
xref #2221
Does this PR introduce a user-facing change?:
NONE

/lgtm
/approve
:shipit:


@ahans as maintainer?

@ahans 👋
You've also passed the threshold to become a maintainer of this track :) Would you be happy to be appointed?
Thanks!

That would be a nice addition :)

@ErikSchierboom Similarly to the C track I can try to help out here as well! :100:

Awesome. Thank you!
You should receive an invite to join the org and the team now. You'll also get access to the #maintainers channel on Discord if your Exercism and Discord accounts are linked.
You can learn more about being a maintainer here
Thanks so much for your work, and welcome to the team :)


Internal error: Attempted to serialize empty result.

Hi Prisma Team! My Prisma Client just crashed.
  User User?

  lastModified DateTime @updatedAt
  createdAt    DateTime @default(now())
}

Prisma Engine Query
{"X":{}}

That code looks pretty innocent. Does this happen all the time? Can you reproduce this with the newest Prisma version as well?

I can. I had run into it before w/ a previous version - https://github.com/prisma/prisma/issues/17279
So I hadn't upgraded in a while, but need to upgrade for interactive transactions functionality.

It looks like there's a handful of issues all related to this error on upsert: https://github.com/prisma/prisma/issues?q=is%3Aissue+is%3Aopen+Attempted+to+serialize+empty+result
It looks a little different from what I've seen reported so far, but I have a stable reproduction: https://github.com/luxaritas/prisma-serialize-empty-repro The upshot is:

Enable prisma relation mode
Create a model with two self-relations
Run an upsert twice (once to create, once to update)
Crash

The MySQL tag was added to this and other issues reporting this crash, though my repro shows this also crashes with sqlite fyi. It's not DB specific.
Given there continues to be new issues being filed about this crash, would it be useful to pick an issue and start marking others as duplicates to consolidate investigation?

Feel free to crosslink those if you are convinced they are caused by the same underlying reason.

Confirmed this on Prisma 5.10.2. Thank you @luxaritas for providing the repro, that helped a lot! Running index.ts two times in a row indeed causes the engine to panic.

@christian-valadez Can you confirm that you were also using relationMode=prisma in your app?

This issue was fixed in Prisma 5.13.0.


Modify Engine.predict

Description
Provide a summary of the modification as well as the issue that has been resolved.

Predict now accepts path to image/folder --data <path-to-image>
Extend model tests
Depends on https://github.com/openvinotoolkit/anomalib/pull/1509

Changes

Describe the changes you made

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Refactor (non-breaking change which refactors the code base)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update

Checklist

Ensure that you followed the following

[ ] I have added a summary of my changes to the CHANGELOG (not for minor changes, docs and tests).
[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas (If applicable)
[ ] I have made corresponding changes to the documentation (If applicable)
[ ] I have added tests that prove my fix is effective or that my feature works (If applicable)

In the latest version, anomalib predict --model Padim --data <path/to/image/folder> --ckpt_path <path/to/ckpt> fails with the following error:
AttributeError: 'AnomalibCLI' object has no attribute '_set_predict_dataloader'. I guess it's because set_predict_dataloader was changed to set_predict_dataloader_namespace but not updated in line 221 here.
I think it would be good to extend the cli tests with the different ways of passing data (data class, folder of images, single image) so that our CI catches bugs like the above.

We could consider making the --ckpt_path argument mandatory, as I do not see a use case where a user would want to predict using a non-trained model.

I'm afraid we need to reverse this, because there's a very obvious use-case which I didn't consider earlier: Zero-shot models! My mistake, sorry

In the latest version, anomalib predict --model Padim --data <path/to/image/folder> --ckpt_path <path/to/ckpt> fails with the following error:
AttributeError: 'AnomalibCLI' object has no attribute '_set_predict_dataloader'. I guess it's because set_predict_dataloader was changed to set_predict_dataloader_namespace but not updated in line 221 here.
I think it would be good to extend the cli tests with the different ways of passing data (data class, folder of images, single image) so that our CI catches bugs like the above.

We could consider making the --ckpt_path argument mandatory, as I do not see a use case where a user would want to predict using a non-trained model.

I'm afraid we need to reverse this, because there's a very obvious use-case which I didn't consider earlier: Zero-shot models! My mistake, sorry

Done!

In addition to running predict on a folder of images, I think we should allow running it on a single image. but the following command results in an error atm:
anomalib predict --model Padim --data datasets/mvtec/bottle/test/broken_large/000.png


Poetry >=1.5 ignore some options

#242 PR is a quick fix that permits that the c++ library is still built. A better solution should be found afterwards to avoid limiting the dependencies with upper bounds.
the part that build c++ lib is this one and seems to be ignored with latest version of poetry
[tool.poetry.build]
script = "builder.py"

solved by #245


Allow to compile in Visual Studio

Impossible to compile with Visual studio

Fixed by @osmirnov on https://github.com/CityOfZion/neo-sharp/pull/529


Make analysis image exit with error code if analysis fails

Fixes #406

This should be merged after #418

Will resolve in new PR


Benchmark builds fail to build on the first clean bulid rosidl_generator_py when rosidl_typesupport_protobuf is present

The following error occurs in rosidl_generator_py when this repository is present. I found this when generating the benchmark for #21
If you build it a second time it will pass.
My workaround is in https://github.com/tfoote/build_benchmark/commit/dde2d6b51c109be8bc9c9f2a5ab5eb7ca1bd0e31
This is the failure:
Starting >>> rosidl_generator_py
--- stderr: rosidl_generator_py
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.22/Modules/FindPythonInterp.cmake:169 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /tmp/benchmark/protobuf.repos-src/install/rosidl_adapter_proto/share/rosidl_adapter_proto/cmake/rosidl_adapt_proto_interfaces.cmake:19 (find_package)
  /tmp/benchmark/protobuf.repos-src/install/rosidl_adapter_proto/share/rosidl_adapter_proto/cmake/rosidl_adapter_proto-extras.cmake:31 (include)
  /tmp/benchmark/protobuf.repos-src/install/rosidl_adapter_proto/share/rosidl_adapter_proto/cmake/rosidl_adapter_protoConfig.cmake:41 (include)
  /tmp/benchmark/protobuf.repos-src/install/rosidl_typesupport_protobuf_c/share/rosidl_typesupport_protobuf_c/cmake/rosidl_typesupport_protobuf_c_generate_interfaces.cmake:21 (find_package)
  /tmp/benchmark/protobuf.repos-src/install/ament_cmake_core/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
  /tmp/benchmark/protobuf.repos-src/install/rosidl_cmake/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:280 (ament_execute_extensions)
  CMakeLists.txt:50 (rosidl_generate_interfaces)

---
Failed   <<< rosidl_generator_py [3.32s, exited with code 1]

Summary: 88 packages finished [4min 14s]
  1 package failed: rosidl_generator_py
  24 packages had stderr output: ament_copyright ament_cppcheck ament_cpplint ament_flake8 ament_index_python ament_lint ament_lint_cmake ament_mypy ament_package ament_pep257 ament_pycodestyle ament_uncrustify ament_xmllint domain_coordinator google_benchmark_vendor launch launch_testing launch_xml launch_yaml osrf_pycommon rosidl_cli rosidl_generator_py rosidl_pycommon rpyutils
  21 packages not processed

This may be obsolete after #17 is reimplemented.

This may be fixed


Proxy CONNECT uses IP address rather than domain name

My organization uses a proxy for outbound HTTP and HTTPS access to internet resources from a server farm.  Access through the proxy is only authorized to specific domain names (e.g. .google.com, .googleapis.com, .apple.com, .microsoft.com, etc.).  This works fine for clients that issue
"CONNECT <host.domain.name>:<port>"
requests in order to tunnel HTTPS connections through the proxy.  With exception of GAM, all of our clients issue "CONNECT" this way.  In GAM's case
httplib2/socks.py
builds
"CONNECT <ipaddress>:<port>"
requests instead.  This makes it challenging to limit destinations using our proxy server implementation, as we would have to allow access to all of Google's address space in order for GAM to work.  It would therefore be desirable for GAM to CONNECT via domain name if possible.

I'm sure this is not a proper fix, but the following patch addresses

Sorry, hit the wrong button, did not mean to close.
The following patch addresses my immediate need, but it's likely not a proper fix for general use:
--- GAM-3.42/httplib2/socks.py	2014-11-19 14:02:09.000000000 -0600
+++ ../GAM-3.42/httplib2/socks.py	2015-03-16 15:01:11.823531079 -0500
@@ -364,7 +364,7 @@
addr = socket.gethostbyname(destaddr)
else:
addr = destaddr

   headers =  ["CONNECT ", addr, ":", str(destport), " HTTP/1.1\r\n"]

   headers =  ["CONNECT ", destaddr, ":", str(destport), " HTTP/1.1\r\n"]
   headers += ["Host: ", destaddr, "\r\n"]
   if (self.__proxy[4] != None and self.__proxy[5] != None):
           headers += [self.__getauthheader(), "\r\n"]

httplib2 is upstream of GAM and would need to be patched there:

https://github.com/jcgregorio/httplib2

Actually, it looks like the version of httplib2 included in GAM and how GAM calls it that affects this:
The following code is present in the version of httplib2/init.py included in GAM 3.42:
    def __init__(self, proxy_type, proxy_host, proxy_port,
                 proxy_rdns=None, proxy_user=None, proxy_pass=None):

Whereas the following code is present in the current master branch of httplib2/init.py:
    def __init__(self, proxy_type, proxy_host, proxy_port,
                 proxy_rdns=True, proxy_user=None, proxy_pass=None):

along with the comment:
          proxy_rdns: If True (default), DNS queries will not be performed
          locally, and instead, handed to the proxy to resolve.  This is useful
          if the network does not allow resolution of non-local names.  In
          httplib2 0.9 and earlier, this defaulted to False.

I'd say, either updating the version of httplib2 or overriding the default when ProxyInfo is initialized would address the issue.  In either case this would point back at GAM as the place to fix this.


Generate .dbc on PR

Summary

generate into the releases tab?
Deliverables

.dbc should be accessible for non firmware/software members

Closed: Moved to Jira.


ui_utils getVisibleElement not calculating 'left' correctly.

Occuring on<EMAIL_ADDRESS>Pages are not rendering due to a posible error in ui_utils.getVisibleElement().
Repro by @jgrant95 https://stackblitz.com/edit/ng2-pdf-viewer-qdfyem

To determine whether a page is visible, ui_utils.js looks for the left border of a page on screen:
https://github.com/mozilla/pdf.js/blob/2f4c7e01f5871f77e4e03f78525c330de43dbe76/web/ui_utils.js#L473
and compares it to the right border of the containing scroll element:
https://github.com/mozilla/pdf.js/blob/2f4c7e01f5871f77e4e03f78525c330de43dbe76/web/ui_utils.js#L417
https://github.com/mozilla/pdf.js/blob/2f4c7e01f5871f77e4e03f78525c330de43dbe76/web/ui_utils.js#L493
However, the calculation of left does not take into account scrollEl.offsetLeft, while currentWidth does include element.offsetLeft. Subsequently, right takes on a value less than what it should be.
So, if element.offsetLeft is higher than scrollEl.clientWidth, the page will not render, even if scrollEl.offsetLeft compensates the position of the container to make the page visible.
I believe the correct formula for left is:
let left = scrollEl.scrollLeft + scrollEl.offsetLeft

That line of code hasn't changed, in any meaningful way, for many years and any changes to it however minute could risk regressing the PDF viewer in Firefox. Hence a couple of quick questions:

Is this reproducible using only the standard PDF.js viewer, e.g. with the official viewer component examples and without another library on top of it?
Is the web/pdf_viewer.css CSS file actually being using (since it's really quite difficult to tell based on https://stackblitz.com/edit/ng2-pdf-viewer-qdfyem)?
Also, please refer to the CSS rules used in (one of) the official examples: examples/components/simpleviewer.html#L24-L38.
If this actually is a bug in the PDF.js viewer, wouldn't that imply that the top calculation is similarly flawed?

I believe the correct formula for left is:
let left = scrollEl.scrollLeft + scrollEl.offsetLeft

Having tested this very quickly, the above change unfortunately seem to break the getVisibleElements function in the default viewer (i.e. the PDF viewer used in Firefox) in at least some cases:
In particular, with the sidebar open and using the "Odd Spread"-mode, try running PDFViewerApplication.pdfViewer._getVisiblePages().views in the console for a few different zoom levels and compare with the current master (using the same settings).
With the suggested change, you'll observe that getVisibleElements is no longer able to correctly compute the visible percentage of page, leading to the wrong page being considered "most visible" (which will break rendering in subtle ways).

Thanks for the guidance. I was able to reproduce the problem by changing simpleviewer.html to have a similar styling as the one in the previous repro. See css class col-6:

<!DOCTYPE html>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="google" content="notranslate">
  <title>PDF.js viewer using built components</title>

  <link rel="stylesheet" href="../../node_modules/pdfjs-dist/web/pdf_viewer.css">

    Hello World!

The pdf I used was: https://cors-anywhere.herokuapp.com/https://www.ets.org/Media/Tests/GRE/pdf/gre_research_validity_data.pdf
Does this mean this kind of styling is not supported?

I solved this by using a relatively positioned parent to correct for the offsetLeft value:

    Hello World!

This makes the getVisibleElement calculation valid since offsetLeft is computed using the closest relatively position parent.


Add Github Workflow

Hi,
are you ok adding the following github workflow to run the tests every time a PR is created?
See: https://github.com/rrpadilla/CardConnect/blob/master/.github/workflows/ci.yml
You can see it working here.
name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  tests:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: true
      matrix:
        php-versions: ['7.2', '7.3', '7.4']

    name: PHP ${{ matrix.php-versions }}
    env:
      extensions: php-json, curl, mbstring
      key: cache-v1 # can be any string, change to clear the extension cache.

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Setup cache environment
        id: extcache
        uses: shivammathur/cache-extensions@v1
        with:
          php-version: ${{ matrix.php-versions }}
          extensions: ${{ env.extensions }}
          key: ${{ env.key }}

      - name: Cache extensions
        uses: actions/cache@v2
        with:
          path: ${{ steps.extcache.outputs.dir }}
          key: ${{ steps.extcache.outputs.key }}
          restore-keys: ${{ steps.extcache.outputs.key }}

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-versions }}
          extensions: ${{ env.extensions }}

      # Composer Cache
      - name: Get Composer Cache Directory
        id: composer-cache
        run: |
          echo "::set-output name=dir::$(composer config cache-files-dir)"

      # Cache PHP dependencies
      - name: Cache PHP dependencies
        uses: actions/cache@v2
        with:
          path: ${{ steps.composer-cache.outputs.dir }}
          key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
          restore-keys: |
            ${{ runner.os }}-composer-

      # Composer install dependencies
      - name: Install dependencies
        uses: php-actions/composer@v1

      # Runs tests
      - name: Execute tests
        run: vendor/bin/phpunit --verbose

Thanks

works for me, I wrote this before github actions was a thing so thanks for providing it


Error: Install TDLib dependencies using vcpkg

Hi.
In the attachment are two .txt files.
vs build output.txt
Here output from Visual Studio when I'm build directly from vcpkg\toolsrc\vcpkg.sln.
Directly, because vcpkg.exe not created automatically.
powershell output.txt
And here output from PowerShell with all the process.
Please answer, why i have an error?

Could you also attach build log files. They should be at C:\users\admin\vcpkg\buildtrees\openssl-windows\ folder.

It's absent.

Everything works fine for me.

powershell output.txt -> Error: Building package openssl-windows:x64-windows failed with: BUILD_FAILED

Do you have enough disk space?

Yes.

Do you have vcpkg in other directories?

No.

vcpkg related environment variables?

No. But I did not see that it was written somewhere.

powershell output.txt -> Error: Building package openssl-windows:x64-windows failed with: BUILD_FAILED

I've meant that exactly the same commands has worked for me. The only difference I've noticed was that vcpkg has downloaded latest versions of cmake, git and other tools and there is nothing similar in your build log. It should mean that they are already downloaded somewhere. It's also really strange that there is no buildtrees folder but vcpkg has tried to build something. Could you try to find buildtrees folder somewhere else, for example, find all buildtrees directories on your drive?

I plan to reinstall the OS soon.
Then I'll try to build again.
Thank you.


Sort images by date in feed

Description
Images in the feed are sorted by date property.
Changes

Sorting tables of images by date in images context

Related issue: #63

✅ LGTM


Angular 2 : AOT issue : ngOnChanges - method signature

When used with AOT, it's failing with the following error.

ERROR in [at-loader] ./compiled/node_modules/angular2-text-mask/src/angular2TextMask.ngfactory.ts:59:7
TS2346: Supplied parameters do not match any signature of call target.

Related : https://github.com/angular/angular/issues/11062

Thanks for reporting this.. I'll look into it.

I think this should be an optional argument though.
If you don't use the changes in the function and only trigger some action, TypeScript compiler will complain that 'changes' is declared but never used (when noUnusedParameters is set to true). On the other hand, if you don't put it in, AOT complains about a signature mismatch.


Unpublished track appears in browser

We are using the server-sdk-go using this version of the sdk: https://github.com/livekit/server-sdk-go/commit/15f576aa52c50ee6eff4b63ceb1c9d9b7956f4c1
These are the logs from our application related to the TR_VCBfCwP22ZVpFv track. Timestamps in UTC. Most lines originate from our application, some from the sdk.
1730936364403	{"log":"2024/11/06 23:39:24 INF [livekit] [room robot-bixi-03 0] [RM_c8KiFQNyqqj7] [right#gJHNSI] [TR_VCBfCwP22ZVpFv] track finished"}
1730936364403	{"log":"2024/11/06 23:39:24 INF [livekit] [room robot-bixi-03 0] [RM_c8KiFQNyqqj7] [right#gJHNSI] [TR_VCBfCwP22ZVpFv] unpublished track"}
1730936364403	{"log":"2024/11/06 23:39:24 INF [livekit] \"ts\"=\"2024-11-06 23:39:24.403267\" \"caller\"={\"file\"=\"logger.go\" \"line\"=440} \"level\"=0 \"msg\"=\"unpublished track\" \"name\"=\"right#gJHNSI\" \"sid\"=\"TR_VCBfCwP22ZVpFv\""}
1730936364403	{"log":"2024/11/06 23:39:24 INF [livekit] [room robot-bixi-03 0] [RM_c8KiFQNyqqj7] local track unpublished right#gJHNSI TR_VCBfCwP22ZVpFv"}
1730936364403	{"log":"2024/11/06 23:39:24 WAR [livekit] [room robot-bixi-03 0] [RM_c8KiFQNyqqj7] [right#gJHNSI] [TR_VCBfCwP22ZVpFv] buffer stale, unpublishing track"}
1730933409023	{"log":"2024/11/06 22:50:09 INF [livekit] [room robot-bixi-03 0] [RM_c8KiFQNyqqj7] [left#pzretr] [TR_VCBfCwP22ZVpFv] SID changed from TR_VCBfCwP22ZVpFv to TR_VC8EASj3bZAcHM"}
1730933409022	{"log":"2024/11/06 22:50:09 INF [livekit] [room robot-bixi-03 0] [RM_c8KiFQNyqqj7] [left#pzretr] [TR_VCBfCwP22ZVpFv] published track TR_VCBfCwP22ZVpFv"}
1730933409022	{"log":"2024/11/06 22:50:09 INF [livekit] \"ts\"=\"2024-11-06 22:50:09.022876\" \"caller\"={\"file\"=\"logger.go\" \"line\"=440} \"level\"=0 \"msg\"=\"published track\" \"name\"=\"left#pzretr\" \"source\"=\"CAMERA\" \"trackID\"=\"TR_VCBfCwP22ZVpFv\""}
1730933409022	{"log":"2024/11/06 22:50:09 INF [livekit] [room robot-bixi-03 0] [RM_c8KiFQNyqqj7] [right#gJHNSI] [TR_VC5qbe3WyGtKKq] SID changed from TR_VC5qbe3WyGtKKq to TR_VCBfCwP22ZVpFv"}
1730933409022	{"log":"2024/11/06 22:50:09 INF [livekit] [room robot-bixi-03 0] [RM_c8KiFQNyqqj7] local track published right#gJHNSI TR_VCBfCwP22ZVpFv"}

Note the unpublished track originates from the SDK here:
https://github.com/livekit/server-sdk-go/blob/15f576aa52c50ee6eff4b63ceb1c9d9b7956f4c1/localparticipant.go#L428
Nothing weird so far.
Now today I got a report of a stream not working. I go into the browser, open the room, look at the logs and see the track that was supposedly closed, according to above logs.
This is what i saw in the browser. This screenshot was taken at 2024/11/07 14:12:11 UTC:

How can a track that was unpublished, show up at a different client 14 hours after it was unpublished by the server sdk?

Two occurrences of this problem in the same room at the same time. I was connected to the room at 2024/11/11 09:09:53 UTC (after a page refresh) and see these tracks show up:

Track TR_VCepcFSfrQbHYc was unpublished at 2024/11/11 05:01:36 UTC
Logs from the sdk:
{"log":"2024/11/11 05:01:36 INF [livekit] \"ts\"=\"2024-11-11 05:01:36.403392\" \"caller\"={\"file\"=\"logger.go\" \"line\"=440} \"level\"=0 \"msg\"=\"unpublished track\" \"name\"=\"back#TVsGqD\" \"sid\"=\"TR_VCepcFSfrQbHYc\""}
{"log":"2024/11/11 04:48:05 INF [livekit] \"ts\"=\"2024-11-11 04:48:05.570487\" \"caller\"={\"file\"=\"logger.go\" \"line\"=440} \"level\"=0 \"msg\"=\"published track\" \"name\"=\"right#cVWSER\" \"source\"=\"CAMERA\" \"trackID\"=\"TR_VCepcFSfrQbHYc\""}

Track TR_VCN6UjPd6i8N3n was unpublished at 2024/11/09 18:02:12 UTC
{"log":"2024/11/09 18:02:12 INF [livekit] \"ts\"=\"2024-11-09 18:02:12.167878\" \"caller\"={\"file\"=\"logger.go\" \"line\"=440} \"level\"=0 \"msg\"=\"unpublished track\" \"name\"=\"left#Wcluwj\" \"sid\"=\"TR_VCN6UjPd6i8N3n\""}
{"log":"2024/11/09 18:01:57 INF [livekit] \"ts\"=\"2024-11-09 18:01:57.174899\" \"caller\"={\"file\"=\"logger.go\" \"line\"=440} \"level\"=0 \"msg\"=\"published track\" \"name\"=\"back#seKwSH\" \"source\"=\"CAMERA\" \"trackID\"=\"TR_VCN6UjPd6i8N3n\""}

We have found that restarting the go application that publishes the tracks consistently removes any and all lingering tracks. Makes me suspect that there's an issue inside the sdk, not inside the livekit servers.

I think the behavior seen here is caused by #555.
This problem seems to always trigger after a full room-reconnect while multiple tracks are streaming. During the re-publish all tracks are published at the same time, triggering the race condition. Our application would get callbacks with wrong 'trackid' <-> 'trackname', which is the information that is later on used to unpublish the track. This unpublish would fail, because the wrong trackId would be unpublished, causing leftover tracks.


Flat-shaded mesh is imported with more vertices in Godot 4

Godot version
Godot 4 beta10
System information
Windows 10 64 bits NVIDIA GeForce GTX 1060
Issue description
In my game I process meshes to generate some data needed for some features. After porting it to Godot 4, some weird issues appeared and I realized Godot 4 is not sharing vertices of triangles in flat faces. Instead, they are ALL duplicated. At least, that's what I see when I inspect vertex data with surface_get_arrays. I do expect some vertices to be duplicated if they are on different faces (with different normals for example), but I don't expect it to be the case on every single triangle when the mesh is a quad for example.
This not only changes the behavior of my game since vertices supposed to be shared no longer are, but it also makes indexed vertices completely useless, because flat-shaded meshes end up with all triangles being individual. In Godot 3, triangles within a flat face were shared.
Steps to reproduce
Make a plane in Blender, export it as OBJ, import it in Godot, compare vertex arrays using a script to print the results of surface_get_arrays.
Result I get in Godot 3:
4 vertices, 6 indices
Vertices:
(1, 0, 1)
(-1, 0, 1)
(1, 0, -1)
(-1, 0, -1)
Indices:
0
1
2
2
1
3

In Godot 4:
6 vertices, 6 indices
Vertices:
(1, 0, 1)
(-1, 0, 1)
(1, 0, -1)
(1, 0, -1)
(-1, 0, 1)
(-1, 0, -1)
Indices:
0
1
2
3
4
5

Minimal reproduction project
Godot 3: PlaneImport_Godot3.zip
Godot 4: PlaneImport_Godot4.zip
Run each one's main scene, compare what is printed.

Can you reproduce this with glTF or Collada import?

It does not reproduce with gLTF.

It may be worth checking if this occurs after disabling vertex compression in the Import dock.