Doesn't work anymore :(

One of the APIs the utility uses is not available, anymore: http://www.telize.com/geoip. From their website (as of Nov 15, 2015):

IMPORTANT INFORMATION
The public API will permanently shut down on November 15th, 2015. More information can be found here. To continue using Telize after this date, please spin up your own instance or subscribe to a paid plan.

Welp I should host my own
On Sat, Nov 14, 2015 at 10:53 PM -0800, "Irakli Nadareishvili"<EMAIL_ADDRESS>wrote:
One of the APIs the utility uses is not available, anymore: http://www.telize.com/geoip. From their website (as of Nov 15, 2015):
IMPORTANT INFORMATION
The public API will permanently shut down on November 15th, 2015. More information can be found here. To continue using Telize after this date, please spin up your own instance or subscribe to a paid plan.
—
Reply to this email directly or view it on GitHub.

That would be great, but since you may run into the same exact problems which frustrated Frederic + lead him to shut his instance down, how about these guys https://freegeoip.net/json/
10,000 request/hour sounds plenty and since the API doesn't authenticate, they are probably throttling by IP i.e. if nobody will call the weather in their terminals more than 10,000 times an hour, it should work for everybody? At least until and if freegeoip shuts down too (oh, noes).

fixed via https://github.com/jfrazelle/weather/commit/90c77de96ff7991257a2b9881ee49260148c540f


DrainingTimeout

DrainingTimeout says the format is minutes however when i did it -drainingTimeout 60 it did it in 60 seconds and not minutes. The waittimeout is listed in the example as 1:30:00 for 1 hour 30 there is no reference to the format you need to declare the value.

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

ID: f2de71d2-6792-7bcc-0064-bfade0a3786d
Version Independent ID: b342568c-752d-5ec4-dd0e-a3599f6887c7
Content: Invoke-CsComputerFailOver (skype)
Content Source: skype/skype-ps/skype/Invoke-CsComputerFailOver.md
Service: skypeforbusiness-powershell
GitHub Login: @kenwith
Microsoft Alias: kenwith

@officedocsbot assign @yogkumgit

Hi @mdlister, thank you for your feedback.
I am updating the article to remove minutes in the description of DrainingTimeout because it is TimeSpan format.
The easy way to use TimeSpan in this cmdlet is hh:mm:ss. For example 30 minutes are 00:30:00.
Another easy way to use TimeSpan format is the New-TimeSpan cmdlet:
https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/new-timespan
The same example in this case:
$TimeSpan = New-TimeSpan -Minutes 30
I am adding this example in the article too.

@kenwith Please merge PR #3484

@dariomws306  Thank you very much for the contribution and updating the documentation with PR. @mdlister Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

@officedocsbot close


question about the efficientcy of numba.typed.dict

Found that:  numba.typed.dict is slower then pyDict.
Here is my code
import numba as nb
import time
h={}
for i in range(1000):
    subh={i:i for i in range(5000)}
    h[i]=subh
nbh=pyObjToNumbaObj(h)#my type cast function
time1=time.time()
do1(nbh)
time2=time.time()
do2()
time3=time.time()
print(time2-time1,time3-time2)

Numba.typed.dict takes 0.166 seconds and pyDict takes 0.06 seconds.
Did i do anything wrong?Or I just simply shouldn't use numbaDict.

@scirocc thanks for reporting this, I have labeled it as needing triage and fixed the syntax highlighting.

So I guess pyObjToNumbaObj is from: https://github.com/numba/numba/issues/4728 ?
What about do2()? I can't seem to find it, or did I miss something?

@esc Yes it is  from: #4728 .Sorry I am too careless, LOL.
function do1() and do2()  like this：
@nb.jit(nopython=True,cache=True)
def do1(nbh):
    for key in nbh:
        for key in nbh[key]:
            pass
def do2(h):
    for key in h:
        for key in h[key]:
            pass

@scirocc thanks for submitting this, I can reproduce the timings here:
0.14887595176696777 0.057743072509765625

Though I don't know where the slowness is coming from.

Probably timing compilation as well as execution? Doing this:
do1(nbh) #warm up

time1=time.time()
do1(nbh)
time2=time.time()
do2(h)
time3=time.time()

print(time2-time1,time3-time2)

gives me:
0.04458880424499512 0.0912477970123291

@stuartarchibald @esc
Thank u for your help.I just dicover it is the preheating process takes much time.Got same answer too!
0.033528804779052734 0.10158753395080566

@stuartarchibald
Now the only problem is that,the process of type casting between pyObject and NumbaObject is too slow.But the i think it is worthy.

@scirocc I think that numba.typeof will help a lot.

Am I using it the wrong way ? The speed difference is unbelievable :o
dico = numba.typed.Dict.empty(key_type=numba.types.unicode_type,                               value_type=numba.types.int64) for k, v in zip(('A', 'C', 'G', 'T'), range(4)):     dico[k] = v

dico = {'A':0,'C':1,'G':2,'T':3, }

@sylvain-ri there's an open PR to add some documentation about this: https://github.com/numba/numba/pull/6440/files#diff-6f032d897e4cf2f12a5bf9ccc7dc469ef6d11f7e34ae04833c53ff12b27dceeeR153
the answer is in there.

I see. Thanks.


Bugfix: Add platformBrightness to TestWindow.

Bugfix: Add platformBrightness to TestWindow.
Cause of bug: I merged the following

TestWindow implementation in framework that implements Window

Added platformBrightness to Window definition in engine, but forgot to add corresponding implementations to TestWindow

This broke the framework because TestWindow no longer fully implemented Window.
This PR adds the necessary Window implementations to TestWindow.

Related question for @Hixie and @goderbauer - how do we generally handle interfaces and dependencies that cross the framework/engine barrier?  I don't think our automation even has a way to verify such changes, does it? For example, in this case I think what happened is that I merged in engine changes that broke the framework, but the framework breakage was not caught by CI...

@matthew-carroll CI did catch it on the failing engine roll (https://cirrus-ci.com/task/5997428453933056), which showed that the framework was not ready to have the engine-side changes rolled in. The current way to handle this is a manual engine roll.


"ext.flutter.driver" is not found in "extensionRPCs"

I have been trying to automate flutter application with Appium flutter driver.
Getting the following issue. (Appium log). Kindly help me with this. Thanks in advance.
capabilities:
const wdio = require('webdriverio');
const assert = require('assert');
const find = require('appium-flutter-finder');
const osSpecificOps =
process.env.APPIUM_OS === 'android'
? {
platformName: 'Android',
deviceName: 'emulator-5554',
   app: '/Users/<username>/Documents/appium-flutter-driver/aut/app-debug.apk'
  }
: process.env.APPIUM_OS === 'ios'
? {
    platformName: 'iOS',
    platformVersion: '12.2',
    deviceName: 'iPhone X',
    noReset: true,

     app: '/Users/<username>/Documents/appium-flutter-driver/aut/app-debug.apk'
  }
: {};

const opts = {
port: 4723,
capabilities: {
...osSpecificOps,
automationName: 'Flutter'
}
};
main.dart file
import 'package:flutter/material.dart';
import 'package:flutter_driver/driver_extension.dart';
void main() {
enableFlutterDriverExtension();
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'My FLutter Application',
  home: MyStatefulWidget(),
);

}
}
class MyStatefulWidget extends StatefulWidget {
@override
State createState() => _MyStatefulWidgetState();
}
class _MyStatefulWidgetState extends State {
int _count = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
  appBar: AppBar(

    title: Text("My Journal"),
  ),
  body: Center(

    child: Text('you have pressed the button $_count times.'),
     key: Key('counter'),
  ),
  backgroundColor: Colors.blueGrey.shade200,
  floatingActionButton: FloatingActionButton(
    onPressed: () => setState(()=> _count++),
    tooltip: 'Increment Counter',
    child: const Icon(Icons.add),
  ), // This trailing comma makes auto-formatting nicer for build methods.
);

}
}
appium log.pdf

@sahanaprasad there is an extensive discussion of this error in  #28

This issue only persists when running the suite on emulator. It works fine with the real device.


automatically (not) applied

Hi,
to me it seems, when you create a migration without selecting the checkboxes for  (which should be equivalent to selecting all) the newly created migration is not marked as applied automatically. If you select all  via checkboxes, the migration is marked as applied.
Version: 3.0.17 on 3.1.14
thanks for the cool tool!

sorry, bullshit issue, it was too late ...


Code layout justification and consistency

dev_scripts contains scripts and C code.
kni_ifcfg has some extra scripts. This is in addition to install.sh and setenv.sh.
There is lib which contains libsponsdn, then there is top-level libgtpv2c, which in turn one would assume would be related to gtpv2c_messages. Similarly gtpv2c* files under cp.
Is DP's transition to run-to-completion complete? Can we remove pipeline.
Also, should we move dp/dp_rules_verify to top-level test folder?

Signal handler should not be implemented in interface.c
https://github.com/omec-project/ngic-rtc/blob/d65e86595d03c4786ce9e6380f2e0d64c6f1db33/interface/interface.c#L1195-L1224

@omec-project/docs


components order: fix audit and add test

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

The error was that break inside an iterator did not do what I was thinking it should be doing :D

I'll cleanup things in homebrew-core later today before merging this.

I'll cleanup things in homebrew-core later today before merging this.

@iMichka already on it 😉

@iMichka That should be linuxbrew-core and homebrew-core fixed now.

Thanks again @iMichka!


JSON Validator processes meetings differently to the App

Currently, a meeting that is "valid" according to the Validator is not necessarily "valid" in the App. This points to a deviation from the spec.
Example: The feed validator reports 589 meetings for https://aa-london.com/api/meetingguide.json. However, only ~120 meetings show up in the MeetingGuide app.

Is there some specific error you're saying that makes you think this is related to the spec? If you're not getting errors (well, outside of the number of meetings showing up in the app), then my first guess would be the issue isn't related to the spec.
In most cases, not seeing the number of meetings you expect to see in the app is caused by settings GSO controls. They set certain filter and geographical points that control what meetings from a feed show up.
Please contact<EMAIL_ADDRESS>and ask them to check how they're processing your meetings.
If an actionable error comes up, please come back we'll  see what we can do to explore that.
BTW, are you using the new Wagtail Meeting Guide?

@tintinnabulate How large a region is being served? I know that the Meeting Guide app uses geofences. A quick glance at your Latitude and Longitude doesn't reveal anything out of whack. @tech2serve's suggestion to reach out to<EMAIL_ADDRESS>is the right move; this is the feed we have in Philadelphia, and all of our meetings get picked up:
https://www.aasepia.org/meeting-guide/api/
I do note that you don't have formatted_address or location fields populated. I'm not sure if that affects the app.

@FlipperPA

Is there some specific error you're saying that makes you think this is related to the spec? If you're not getting errors (well, outside of the number of meetings showing up in the app), then my first guess would be the issue isn't related to the spec.

How do I see the errors? All I see is the absence of meetings in the App (i.e. 589 in Feed Validator, 120 in App)

BTW, are you using the new Wagtail Meeting Guide?
No. Would that help diagnose the problem I'm seeing in the App? Is a meeting that is "valid" in the Feed Validator also "valid" in Wagtail MG?

@FlipperPA

How large a region is being served? I know that the Meeting Guide app uses geofences.
All of London. Are these Geofences published?

@tech2serve

Is there some specific error you're saying that makes you think this is related to the spec? If you're not getting errors (well, outside of the number of meetings showing up in the app), then my first guess would be the issue isn't related to the spec.

How do I see the errors? All I see is the absence of meetings in the App (i.e. 589 in Feed Validator, 120 in App)

For whatever browser you use, please search the Internet for how to turn on the developer or debugging console. Without debugging turned on for your website, any errors displayed there will likely be limited to the more egregious, but it can often be helpful nonetheless.

BTW, are you using the new Wagtail Meeting Guide?

No. Would that help diagnose the problem I'm seeing in the App? Is a meeting that is "valid" in the Feed Validator also "valid" in Wagtail MG?
No. I had thought you might be using the new python-based meeting management system @FlipperPA has put together as an alternative to Wordpress and TSML.

@FlipperPA

How large a region is being served? I know that the Meeting Guide app uses geofences.

All of London. Are these geofences published?

Not so much as they are controlled by GSO in NY. When someone sets up a new site, they need to coordinate with GSO to make sure the expected region is being imported, and the imported meetings are deconflicted with another site that might be reporting for the area.
So, I believe you still need to coordinate with GSO to resolve this issue (appsupport@aa.org).

@tech2serve

For whatever browser you use, please search the Internet for how to turn on the developer or debugging console.

It's the Meeting Guide app, which isn't in a browser, right? How do I turn on debugging console for the app?

I don't know that you can. Correct, the Meeting Guide app is coded for the iPhone or Android device. Not the website.
But, we aren't able to provide support for the Meeting Guide app, nor the backend service they control for aggregating and providing meeting information through the app.
This repo is here for historical purposes, and to provide a place to discuss future directions of the specification. The Meeting Guide app is compliant with the spec listed here, and we expect GSO will keep it that way. TSML and Wagtail Meeting Guide are also compliant with this specification.
The issue you're describing is related to configuration settings controlled by GSO. I'd be happy to help you if I could; we simply do not have the insight or access to their system.

@tintinnabulate This issue was closed, but I'm curious if it ended up being the geofencing issue with GSO. Did you happen to get in touch with GSO? If we need to dig deeper, I'm willing to help!


Better piping of error messages from the HDL interface server

including when it crashes.

Fixed by #33 which propagates stderr and stdout


Implemented multiprocessing

Following discussion in Issue #66  to isolate time-sinks, multiprocessing implemented for the following functions:

Checking for the existence of station zenith delay data across a specified range of years. Done in script downloadGNSDelays.py and wrapped around function download_UNR. Before multiprocessing was leveraged, the run-time was ~40 secs. With 4-48 CPUs it takes ~5 secs. No tangible difference above 4 CPUs

Accessing station zenith delay data and appending to master CSV file. Done in script getStationDelays.py and wrapped around function get_delays. Before multiprocessing was leveraged, the run-time was ~432 secs. With 4 CPUs it went down to ~365 secs, 6 CPUs down to ~327 secs, 8 CPUs down to ~200 secs, 10 CPUs down to 193, and at 48 it took only ~55 secs.

Constraining the intersection of a specific grid-cell (from a gridded array spanning a region of interest) to each station location. Done in script statsPloy.py and wrapped around function _check_stationgrid_intersection in the RaiderStats class. In addition to optimizing this procedure with the multiprocessing module, indexing is now executed more efficiently using the STRtree module from shapely. Before indexing was done crudely by checking for shape intersections over the entire array of polygons each iteration using list comprehension. Before multiprocessing was leveraged, the run-time was ~2841 secs. With 8 CPUs it is ~374. I still need to conduct more thorough tests over a larger range like above.

By default the number of cpus used is set to 8, but the user may manually specify the number of cores they wish to use with the —cpus flag. They may specify all to use all available cores. It is interesting that—at least from what I gathered in my tests—there doesn’t appear to be a saturation in the network bandwidth when using all available 48 cores. The speed was improved, not compromised as I expected. But again, this is to be done at the user’s discretion and the default of 8 core remains for now as a conservative default.
To replicate the tests for points 1-2 above, run raiderDownloadGNSS.py --out CA_test -y '2017,2018' --returntime '00:06:00' -b '35 40 -120 -115' --cpus 10
To replicate the test for points 3 above run the following commands in succession
raiderDownloadGNSS.py --out world_test -y '2019' --returntime '00:00:00' -b '-90 90 -180 180' --cpus 10
raiderStats.py -f world_test/CombinedGPS_ztd.csv -w 2019 -ti '2019-01-01 2019-12-31' -grid_delay_stdev -sp 1 -b '-90 90 -180 180' -cb '150 880' --cpus 10

Implementation of multiprocessing for deducing grid-intersections with station locations in statsPlot.py stalled out at the end of the loop when leveraged in tangent with the STRtree module from shapely. Multiprocessing alone looped through the global archive in ~

statsPlot.py is now updated to support multiprocessing of variograms, a time-consuming process that could originally could take dozens of hours if a user wished to general variograms for every year, for every grid-cell.
Several minor changes also integrated in statsPlot.py such as explicitly suppressing a numpy Runtimewarning when handling empty arrays, basic reorganization of the variogram class and input arguments, and clean-up of loaded modules.

Ok, tracked down an issue where outputs weren't successfully appended for between parallel jobs. This has been fixed.
Furthermore, some more specific numpy warning messages are suppressed to avoid inundating the user's screen and a textfile record of grid-cell locations are appropriately sorted.
Now everything looks good on my end so please feel free to share any further questions/concerns before we merge.


Repeating Keys issue. Firmware: V3.0 OS: Windows 11

Separating this issue from the bluetooth regression thread as suggested.
After upgrading from v2.0 to v3.0 firmware. I keep getting a repeat keys issue. It is frequent enough that the keyboard is not usable. I thought the repeating keys issue went away after using adv360-z3.2-beta, but it came back again.
When I flashed the v2.0 firmware, I have no repeating keys issue at all. Therefore, I do no suspect it is a hardware issue.
Where can I find the old v2.0 files on Github so I can make changes to the keymap and use 2.0 until 3.0 becomes usable on my computer?
===============================================
Everything I have tried for v3.0 firmware has resulted in repeating keys.
I haved tried:
turning off my Logitech mouse (@yanshay)
disconnecting the logitech wifi dongle
turning off bluetooh on my phone and computer before turning on the adv360
Drivers:
All bluetooth and windows drivers are up to date.
Settings reset, i have used:
settings-reset.uf2 released 2023-10-30
settings-reset-v1.0.uf2, settings-reset-v2.0.uf2, settings-reset-v3.0.uf2 in sequence
Firmware I have now tested:
Adv360 Pro Factory Default Branch 3.0 (v10-23-23)
Adv360 Pro Factory Default Branch 3.0 (v7-6-23)
adv360-z3.2-2
adv360-z3.2-beta
===========================================
Keyboard: Kinesis Advantage360 Pro
Computer: Surface Laptop Studio, 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz
Bluetooth: Intel Wifi-6 AX200 160MHz
OS: Windows 11 Home 22H2

Hi Eugene,
Thanks for creating a new issue and all the work that went into documenting what you are experiencing. We're really sorry this is still happening. @ReFil has double checked and the fix didn't get lost in the wires during the 3.0 update and they have not been able to replicate it so we're not exactly sure what's going on.
Here is a link to the 2.0 Factory Default firmware from June. Would you mind installing this and using it for a period long enough to determine whether the repeating keys is happening? If it is, we'll re-release the 2.0 branch for you and continue to investigate.
https://kinesis-ergo.com/download/advantage360-professional-factory-default-6-1-23/

Hi Eugene, Would you be able to check which version of the Bluetooth drivers you're using? Afaik Intel Bluetooth version 22.250 is known to be troublesome with other ZMK powered boards

Hi Eugene, Would you be able to check which version of the Bluetooth drivers you're using? Afaik Intel Bluetooth version 22.250 is known to be troublesome with other ZMK powered boards

Intel Driver Version: <IP_ADDRESS>
If the updated Intel Driver is the issue, that might explain why adv360-z3.2-beta worked for some time then stopped working again.

Hi Eugene,
Thanks for creating a new issue and all the work that went into documenting what you are experiencing. We're really sorry this is still happening. @ReFil has double checked and the fix didn't get lost in the wires during the 3.0 update and they have not been able to replicate it so we're not exactly sure what's going on.
Here is a link to the 2.0 Factory Default firmware from June. Would you mind installing this and using it for a period long enough to determine whether the repeating keys is happening? If it is, we'll re-release the 2.0 branch for you and continue to investigate.
https://kinesis-ergo.com/download/advantage360-professional-factory-default-6-1-23/

Yes this works even with Intel driver <IP_ADDRESS>

Passed:
Intel <IP_ADDRESS> with Adv360-Pro-Factory-Default-Firmware-v2.0-11-01-22
Intel <IP_ADDRESS> with Adv360-Pro-Factory-Default-Firmware-v2.0-06-01-23
Intel <IP_ADDRESS> with adv360-z3.2-beta
Intel <IP_ADDRESS> with Adv360 Pro Firmware (Factory Default 10-23-23)
Intel <IP_ADDRESS> with adv360-z3.2-2
Android 13 with Adv360 Pro Firmware (Factory Default 10-23-23)
Android 13 with adv360-z3.2-2
Failed:
Intel <IP_ADDRESS> with Adv360-Pro-Factory-Default-Firmware-v3.0-10-23-23
Intel <IP_ADDRESS> with Adv360-Pro-Factory-Default-Firmware-v3.0-07-06-23
Intel <IP_ADDRESS> with adv360-z3.2-beta (10-28-23)
Intel <IP_ADDRESS> with adv360-z3.2-2
Intel <IP_ADDRESS> with adv360-z3.2-beta
Intel <IP_ADDRESS> with adv360-z3.2-beta
Android 13 with adv360-z3.2-beta

Thank you very much for the intensive testing, is much appreciated. It seems like there's a combination of factors at play here, what could help is changing the ble connection parameters, could you try removing these 5 lines from your config file and trying again?
https://github.com/KinesisCorporation/Adv360-Pro-ZMK/blob/V3.0/config/boards/arm/adv360/adv360_left_defconfig#L53-L57

Do I remove the lines by putting a "#" in front of each line?
Should I test all of them, or just the newer firmware that failed? I'm assuming you're most interested in the newest Intel drivers with the newest adv360 firmware right?

A # in front will comment them out, yes
Please just test the newest firmware and Intel driver thanks, either adv360-z3.2-beta or adv360-z3.2-2

Hi Eugene, Would you be able to check which version of the Bluetooth drivers you're using? Afaik Intel Bluetooth version 22.250 is known to be troublesome with other ZMK powered boards

Haven't tried your suggestion yet, but saw this over on the ZMK issues
https://github.com/zmkfirmware/zmk/issues/805#issuecomment-1792680673

Here is the new testing:
Passed:
Android 13 with adv360-z3.2-2 adv360_left_defconfig#L53-L57
Intel <IP_ADDRESS> with adv360-z3.2-2 adv360_left_defconfig#L53-L57
Intel <IP_ADDRESS> with adv360-z3.2 beta adv360_left_defconfig#L53-L57
Intel <IP_ADDRESS> with adv360-z3.2-2 adv360_left_defconfig#L53-L57
Intel <IP_ADDRESS> with adv360-z3.2-beta adv360_left_defconfig#L53-L57
Failed:
Android 13 with adv360-z3.2 beta adv360_left_defconfig#L53-L57
This is great news, I'll start to use adv360-z3.2-2 adv360_left_defconfig#L53-L57.
@ReFil please note there is always an issue with Android on the adv360-z3.2-beta firmware. There is no keystroke response at all.

Thanks a lot for the testing, if no issues present in 24h or so it would be much appreciated if you can close this issue out
Thanks for the feedback on android. I suspect this is a consequence of a potential fix to NKRO with extra keys, I'll make that option configurable

Fixed the issue with deleted these lines:
https://github.com/KinesisCorporation/Adv360-Pro-ZMK/blob/V3.0/config/boards/arm/adv360/adv360_left_defconfig#L53-L57

Sorry, to have to reopen this. I was using:
Intel <IP_ADDRESS> with adv360-z3.2-2 adv360_left_defconfig#L53-L57
The repeating keys issue is much improved but I experience it after several hours of use. It is MUCH better than before when it was barely usable, but the problem persists.
I will switch back to Intel <IP_ADDRESS> for now.

Hi Eugene, ok sounds good, it might be worth changing the title of this issue to explicitly mention the affected intel driver? I'm tracking some pending changes in upstream ZMK that should improve the BLE stack and may fix this issue

Hi Eugene, ok sounds good, it might be worth changing the title of this issue to explicitly mention the affected intel driver? I'm tracking some pending changes in upstream ZMK that should improve the BLE stack and may fix this issue

Changed

I spoke too soon. Just experienced a brief disconnect. Luckily I didn't have a key pressed when it happened.

It's definitely not worse. It might be better. Sorry, it's kind of hard to say with an intermittent problem like this.

I totally understand, thanks for being honest about it. Intermittent issues like this are really challenging to replicate on my end too because I've only got so many computers I can test with. When it disconnects is it just that it won't respond for a bit then automatically reconnects and let's you keep going? Or do you need to go into the settings menu and reconnect manually/re-pair?

Thanks for the update, a momentary disconnect could happen for a few reasons but its good that it's not misbehaving right now (fingers crossed it stays that way)

It happened again just now. The Bluetooth LED was blinking while a key was stuck repeating. I pulled the recent commits to the main repository and pushed one change onto mine to restore the CONFIG_BT_CTRL_PHY_2M=n setting that seemed to help. It looks like some other configuration changes made it into main that I was already using, but I didn't have CONFIG_BT_PRIVACY=n commented out, so that will be different this time around.
One week between events isn't as bad as it was, but it's still more than I'd like.

We've worked on a new beta firmware to improve connection reliability, this might help the momentary disconnect issue
If people affected by this issue could trial this firmware for a bit and provide feedback it would be much appreciated: 360pro-beta-1-6-24.zip

We've worked on a new beta firmware to improve connection reliability, this might help the momentary disconnect issue
If people affected by this issue could trial this firmware for a bit and provide feedback it would be much appreciated: 360pro-beta-1-6-24.zip

am going to give this a go, I am unable to connect to on my linux(fedora 39) machine.

I don't think I've had a disconnect since my last comment. My firmware is only five commits behind main and the changes appear to be related to a version macro, so I don't think the beta firmware would introduce any related changes. Still, I went ahead and flashed the beta and had no trouble connecting to my Windows 10 Pro computer or my Manjaro Linux laptop. I report back if there are any problems.

The beta firmware has a lot of new differences, especially with regards to BLE improvements. it references a new base ZMK branch and a different config repo so the changes wouldn't show up on the main config

These configuration changes will be made upstream with the merging of #326 under the config option of CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES. It might cause issues if users have already made the changes separately and thus when it's merged it would be a good idea to remove the CONFIG_BT_CTLR_PHY_2M=n and CONFIG_BT_LL_SW_LLCP=y lines where they occur

This PR has now been merged so this issue is being closed as solved, any feedback on the changes would be much appreciated


Fix peer version to use NegotiatedProtocolVersion

#1345  👈
feature/proof-of-stake

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @lazynina and the rest of your teammates on  Graphite


 I would not worry too much about the SQL side of things for now - when this gets integrated into Anki, the revlog->FSRSItem conversion will happen on Anki's end, so this will be Anki's responsibility to handle.

(also note there are no security issues here, since the input SQL/values are either constructed by us, or constrained to numbers)

seems this is unnecessary, closed.


bug: whichkey menu doesn't appear in the first file that I open

Did you check docs and existing issues?

[X] I have read all the which-key.nvim docs
[X] I have updated the plugin to the latest version before submitting this issue
[X] I have searched the existing issues of which-key.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
v0.10.0
Operating system/version
Ubuntu 24.04 LTS
Describe the bug
When I open vim and press <leader>, the which-key menu appears.
When I open any file, and press <leader>, nothing happens (after the timeout, the cursor moves one space to the left because my leader is space).
When I open another file, and press <leader>, the which-key menu appears again.
BTW, I love which-key, and version 3 looks awesome!
Steps To Reproduce
Note that I added 2 lines to the default repro file below: I set mapleader, and I define a mapping

Run nvim with no parameters in a directory with some files
Press leader (space): which-key menu appears
:e somefile.txt (an existing file)
Press leader (space): which-key menu does not appear; after the timeout, the cursor moves 1 position
:e someotherfile.txt (an existing file)
Press leader (space): which-key menu appears

Expected Behavior
I expect the which-key menu to appear each time, including when the first file was opened
Health
which-key: require("which-key.health").check()

- OK Most of these checks are for informational purposes only.
  WARNINGS should be treated as a warning, and don't necessarily indicate a problem with your config.
  Please |DON't| report these warnings as an issue.

Checking your config ~
- WARNING |mini.icons| is not installed
- WARNING |nvim-web-devicons| is not installed
- WARNING Keymap icon support will be limited.

Checking for issues with your mappings ~
- OK No issues reported

checking for overlapping keymaps ~
- WARNING In mode `n`, <gc> overlaps with <gcc>:
  - <gc>: Toggle comment
  - <gcc>: Toggle comment line
- OK Overlapping keymaps are only reported for informational purposes.
  This doesn't necessarily mean there is a problem with your config.

Checking for duplicate mappings ~
- OK No duplicate mappings found

### Log

```log
Debug Started for v3.3.0
on_key: <Space>
State(start): { "Mode(n)", "Node(<Space>)", { keys = "<Space>", update = true, waited = 0 } }
  continue: { "<Space>", "Mode(n)" }
  getchar
  on_key: <Esc>
  got: <Esc>
on_key: :
ModeChanged(n:c)
on_key: e
on_key: <Space>
on_key: a
on_key: .
on_key: t
on_key: x
on_key: t
on_key: <CR>
ModeChanged(c:n)
not safe
on_key: <Space>
on_key: :
ModeChanged(n:c)
on_key: e
on_key: <Space>
on_key: b
on_key: .
on_key: t
on_key: x
on_key: t
on_key: <CR>
ModeChanged(c:n)
not safe
on_key: <Space>
State(start): { "Mode(n)", "Node(<Space>)", { keys = "<Space>", update = true, waited = 0 } }
  continue: { "<Space>", "Mode(n)" }
  getchar
  on_key: :
  got: :
  reattach: { "<Space>", "n" }
  detach: <Space>
  plugin: { [2] = ":" }
  feedkeys: { "Mode(n)", "<Space>:" }
on_key: <Space>
on_key: :
ModeChanged(n:c)
attach: { "<Space>", "n" }
on_key: q
on_key: <CR>
ModeChanged(c:n)
not safe

Repro
vim.g.mapleader = ' '

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/which-key.nvim", opts = {} },
    -- add any other plugins here
  },
})

vim.keymap.set('n', '<leader>j', function() print('hello') end)

@jqno Everything is working for me when I try to reproduce your issue following those steps, I'm also on nvim v0.10.0 and my leader key is set to space as well. Are you on the latest commit of which-key?

Yes: 4c36b9b
I created .config/test-whichkey and am running NVIM_APPNAME=test-whichkey nvim to test this

I have a pretty elaborate zsh configuration, I thought maybe that's running interference somehow, but if I blow all that away, the problem persists for me unfortunately

I have a pretty elaborate zsh configuration, I thought maybe that's running interference somehow, but if I blow all that away, the problem persists for me unfortunately

I didn't see your minimal repro above at first, and now that I've tested again with that... I can confirm the issue occurs for me as well.

I can confirm that this fix works. Thanks for the super quick turnaround!


Partial deposit

Fixing #89
Adds a partial deposit command where the user can sign a deposit signature using their keystore.
This also adds an amount field to resolve #53 concerns
I don't believe there is anything too special here though I have partially added some 0x02 logic but it is incomplete as I'm not 100% sure exactly how it will work.
I imagine we are going to do a round of changes once pectra is ready for testnet

Grand. Caveat that the jit_option with confirm will need to be adjusted to click-8, see #98


Lazy load an offset amount of images

Proposal:
Allow for an offset of images to be lazy loaded, rather than just the one.
Problem:
Currently when swiping through a set of images with lazyLoad set to true,  the next image in the queue doesn't start loading until you've committed to the swipe. This causes a second (like in the react-slick examples) or more (when using large images) of no image loaded in the slide.
Solution:
By implementing something along the lines of lazyLoadOffset, we can add a ranges of images to be loaded from the start. Then progressively load the others as the user continues to swipe.
I'm not sure if the community is interested in this functionality. My team has implemented this in our fork of react-slick and are willing to help port over the code if wanted.

This issue is fixed in latest release

@akiran - Can we re-open this? I'm not sure that it's actually resolved.
Although it does seem to quickly load the next image, it's still not loading the image in advance. Thus, while you are in swiping the next images is not there.
This works fine in the Demo example because the next image is off screen, but it doesn't work so well when images are back to back.

Any update on this? Would be really nice to have this.

Hello. Wondering if there was any progress made on this issue

This is essential

@gkilian do you have the code for this? appears this wasn't pulled into this repo yet. i could really use this functionality. cheers -m

@markoshust - I do in our Condenast fork. I'll submit a PR and tag the people in the PR for review

Would love this as well

@akiran - Are implementation on Conde requires the use of a added prop lazyLoadOffset. A secondary PR of mine was closed due to the fact that it supported a non slick-js prop.
Would this be the case for this issue as well? I would hate to write a PR if the end result is the same.

I'm afraid we cannot accept props that deviate from slick libary as for now.

@akiran - can we have a discussion on how we can work together to rectify these issues, instead of denying them and closing. Our end goal at Conde is to move back to this library over mantaining our fork. In doing so, we need to rectify these issues.
From the conversations on this issue and in https://github.com/akiran/react-slick/issues/429 - it seems that this plagues more than just our organization.
Alternative solution
If we're going in a direction where we're not introducing props which aren't native to slick-js are we comfortable with defaulting the offset to 1? I understand this is the current functionality, however it's not working properly.

@gkilian We are strict about not adding new props because that will increase maintenance burden over long terms.  We are already running into issues where fix to one mode is effecting other modes. Adding more options will only make it worse. We are trying our best to fix existing issues.
We will be happy to accept PRs that fixes the issues with out adding new props at the moment.
For this case, will it be possible to implement prefetching logic in the wrapper component of Slider.
We will be happen add such solutions to documentation

@akiran I'm also using the react-slick and I want to load the offset amount of images. Is there any possibility of coming this feature in near future?

Hello. Any updates on this issue? Can we at least set the default offset to 3 instead of 1?

This would be such a great addition, any hints as to where to start on this if there isn't any existing work already ongoing on this?

@sergiubologa @joshdavenport - It seems the approach we took at Conde, of adding a prop, is a no go in this repo. Let me talk to a few people tomorrow in the org and I'll try and publish a public version of our fork on my account and highlight the changes we made to get this done.
I could submit a PR with our changes without a prop but I'd need the accepted offset amount. If that's 1 then I could also just add that.

There's a new PR trying to solve this issue: https://github.com/akiran/react-slick/pull/1496

@gkilian either of those actions would be worth doing imo.
In the context of this repo, surely even just lazyloading ahead by one by default when using ondemand is totally acceptable without giving the ability to change. Struggle to see that anybody would see that as a bad thing.
Definitely appears there is a hunger here for a more opinionated version of this slick component where there's scope to add nice features on top. Totally understand the difficulty though, as the comment from @akiran indicates. Perhaps it is more effort than it's worth.  🤷♂


FR: support "inline TUIs"

Currently tb_init always clears the screen and switches to the alternate screen buffer. This means that you can only write TUIs which use the whole terminal screen.
Some TUIs instead operate inline in the shell, rendering below the current command prompt. Fzf is a great example, it provides scripts which allow you to press ctrl-t to get an inline tui for selecting a file path to insert into your command. Another use case is providing dynamically updating progress for a running command, eg loading bars, spinners, etc.
My feature request is an alternate api to tb_init (or a change to the tb_init api) which doesn't clear the screen and doesn't switch to the alternate screen, to support these kinds of UIs.
Is this something you'd be willing to incorporate?

I think that would be a worthy addition.

Hello, thanks for the FR. I like the idea and agree a separate API or library is the right choice.
I've thought it would be cool to pair this with an alternative to readline, which has a lot of room for improvement IMO. The main alternatives are editline, tecla, and linenoise. I don't know much about the first two, but they appear to be similar to readline. linenoise is tight and simple but IMO lacks some important features, like being able to interleave a prompt with other i/o.
I wonder how useful it'd be without a prompt feature. I'm curious what others think.
If you don't need to support exotic terminals, and you just want to reposition the cursor, you can get by with a few very portable escape codes. Here's a spinner for example:
#!/bin/bash

spinner=('-' '\' '|' '/')
si=0
n=100

printf '\x1b7' # save cursor

while true; do
  s=${spinner[si % ${#spinner[@]}]}
  let si+=1
  printf '\x1b8' # restore cursor
  printf '%s spinning' "$s"
  let n-=1
  test $n -gt 0 || break
  sleep 0.05
done

printf '\x1b8' # restore cursor
printf '\x1b[K' # clear line

echo done

I was experimenting with not switching to alt screen this evening and with a couple hacks:

I'm not yet convinced we should add this feature, but I'm slightly more open to it now after seeing there wouldn't be that many extra conditionals.
One thing to figure out is how to handle when there's not many lines (or no lines) after the cursor. I'm not sure how other non-alt-screen TUIs do it, but I suppose you could print some newlines to get the terminal to scroll. No idea what the API would look like that for that. Also some stuff to figure out with resizing, mouse events, etc. Suggestions welcome.


CleanName for videos file name, preventing duplicated videos for the same game with different regions / version

This should prevent duplicated videos for the same game, when several version/regions exist,

Sorry for the delay. I'm going to accept this but I think I want to make a few modifications to how it is used. Maybe allow it to be turned off and also to detect the previous name if it exist so that people don't have to download everything again.


Styled Components style not injected during SSR

Describe the bug
Styled JSX style does not seem to be inserted in the page, but generated in JS => it takes a few ms to appear and the page flashes.
The HTML element is indeed emtpy <style type="text/css" data-styled-jsx=""></style> while the equivalent style tag is not for Material UI SSR for example.
Maybe thats the collectStyles() that do not work?
To Reproduce
Build, open home and refresh.
Expected behavior
The style should be already there to avoid any flash.
Screenshots (if applicable)

Additional context
Seems to appear with React 17 update.

Fixed in earlier version / stale due to the update to material ui v5


Support for RX6600XT (gfx1032,navi23)?

Hi
I own an RX 6600XT amd gpu (gfx1032,Navi23)
I'd like to try machine learning on gpu (tensorflow or PyTorch) but when i install ROCm using official tool (amdgpu-install (rocm version 5.0.1) on ubuntu 20.4.3 with HWE kernel) i get an error that no HIP binary could be found for my gpu (hipErrorNoBinaryForGpu).
rocminfo shows my cpu and gpu as agents.
Hashcat from ubuntu repository shows error (clCreateCommandQueue(): CL_OUT_OF_HOST_MEMORY)
I have a few questions:

Can i recompile rocm to support my gpu?
When will my card get support?
Is it problem with rocm or hip?

hipconfig --full output:
Warning: HIP_PLATFORM=hcc is deprecated. Please use HIP_PLATFORM=amd.
HIP version  : 5.0.13601-6b731c37

== hipconfig
HIP_PATH     : /opt/rocm/hip
ROCM_PATH    : /opt/rocm
HIP_COMPILER : clang
HIP_PLATFORM : amd
HIP_RUNTIME  : rocclr
CPP_CONFIG   :  -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__= -I/opt/rocm/hip/include -I/opt/rocm/llvm/bin/../lib/clang/14.0.0 -I/opt/rocm/hsa/include

== hip-clang
HSA_PATH         : /opt/rocm/hsa
HIP_CLANG_PATH   : /opt/rocm/llvm/bin
AMD clang version 14.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.0.0 22051 235b6880e2e515507478181ec11a20c1ec87945b)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm/llvm/bin
AMD LLVM version 14.0.0git
  Optimized build.
  Default target: x86_64-unknown-linux-gnu
  Host CPU: znver2

  Registered Targets:
    amdgcn - AMD GCN GPUs
    r600   - AMD GPUs HD2XXX-HD6XXX
    x86    - 32-bit X86: Pentium-Pro and above
    x86-64 - 64-bit X86: EM64T and AMD64
hip-clang-cxxflags : Warning: HIP_PLATFORM=hcc is deprecated. Please use HIP_PLATFORM=amd.
 -std=c++11 -isystem "/opt/rocm-5.0.0/llvm/lib/clang/14.0.0/include/.." -isystem /opt/rocm/hsa/include -isystem "/opt/rocm/hip/include" -O3
hip-clang-ldflags  : Warning: HIP_PLATFORM=hcc is deprecated. Please use HIP_PLATFORM=amd.
 -L"/opt/rocm/hip/lib" -O3 -lgcc_s -lgcc -lpthread -lm -lrt

=== Environment Variables
PATH=/usr/local/bin:/opt/rocm/hcc/bin:/opt/rocm/hip/bin:/opt/rocm/bin:/opt/rocm/opencl/bin/x86_64:/usr/local/bin:/opt/rocm/hcc/bin:/opt/rocm/hip/bin:/opt/rocm/bin:/opt/rocm/opencl/bin/x86_64:/home/wisnia/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
LD_LIBRARY_PATH=:/opt/rocm/opencl/lib/x86_64:/opt/rocm/opencl/lib/x86_64
HIP_PATH=/opt/rocm/hip
HIP_PLATFORM=hcc
HIP_VISIBLE_DEVICES=0

== Linux Kernel
Hostname     : Wisnia-ML
Linux Wisnia-ML 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.3 LTS
Release:	20.04
Codename:	focal

rocminfo output:
ROCk module is loaded
=====================
HSA System Attributes
=====================
Runtime Version:         1.1
System Timestamp Freq.:  1000.000000MHz
Sig. Max Wait Duration:<PHONE_NUMBER>3709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model:           LARGE
System Endianness:       LITTLE

==========
HSA Agents
==========
*******
Agent 1
*******
  Name:                    AMD Ryzen 5 3600 6-Core Processor
  Uuid:                    CPU-XX
  Marketing Name:          AMD Ryzen 5 3600 6-Core Processor
  Vendor Name:             CPU
  Feature:                 None specified
  Profile:                 FULL_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        0(0x0)
  Queue Min Size:          0(0x0)
  Queue Max Size:          0(0x0)
  Queue Type:              MULTI
  Node:                    0
  Device Type:             CPU
  Cache Info:
    L1:                      32768(0x8000) KB
  Chip ID:                 0(0x0)
  Cacheline Size:          64(0x40)
  Max Clock Freq. (MHz):   3600
  BDFID:                   0
  Internal Node ID:        0
  Compute Unit:            12
  SIMDs per CU:            0
  Shader Engines:          0
  Shader Arrs. per Eng.:   0
  WatchPts on Addr. Ranges:1
  Features:                None
  Pool Info:
    Pool 1
      Segment:                 GLOBAL; FLAGS: FINE GRAINED
      Size:                    16323864(0xf91518) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Alignment:         4KB
      Accessible by all:       TRUE
    Pool 2
      Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
      Size:                    16323864(0xf91518) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Alignment:         4KB
      Accessible by all:       TRUE
    Pool 3
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED
      Size:                    16323864(0xf91518) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Alignment:         4KB
      Accessible by all:       TRUE
  ISA Info:
*******
Agent 2
*******
  Name:                    gfx1032
  Uuid:                    GPU-XX
  Marketing Name:          AMD Radeon RX 6600 XT
  Vendor Name:             AMD
  Feature:                 KERNEL_DISPATCH
  Profile:                 BASE_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        128(0x80)
  Queue Min Size:          4096(0x1000)
  Queue Max Size:          131072(0x20000)
  Queue Type:              MULTI
  Node:                    1
  Device Type:             GPU
  Cache Info:
    L1:                      16(0x10) KB
    L2:                      2048(0x800) KB
    L3:                      32768(0x8000) KB
  Chip ID:                 29695(0x73ff)
  Cacheline Size:          64(0x40)
  Max Clock Freq. (MHz):   2900
  BDFID:                   3072
  Internal Node ID:        1
  Compute Unit:            32
  SIMDs per CU:            2
  Shader Engines:          4
  Shader Arrs. per Eng.:   2
  WatchPts on Addr. Ranges:4
  Features:                KERNEL_DISPATCH
  Fast F16 Operation:      TRUE
  Wavefront Size:          32(0x20)
  Workgroup Max Size:      1024(0x400)
  Workgroup Max Size per Dimension:
    x                        1024(0x400)
    y                        1024(0x400)
    z                        1024(0x400)
  Max Waves Per CU:        32(0x20)
  Max Work-item Per CU:    1024(0x400)
  Grid Max Size:<PHONE_NUMBER>(0xffffffff)
  Grid Max Size per Dimension:
    x<PHONE_NUMBER>(0xffffffff)
    y<PHONE_NUMBER>(0xffffffff)
    z<PHONE_NUMBER>(0xffffffff)
  Max fbarriers/Workgrp:   32
  Pool Info:
    Pool 1
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED
      Size:                    8372224(0x7fc000) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Alignment:         4KB
      Accessible by all:       FALSE
    Pool 2
      Segment:                 GROUP
      Size:                    64(0x40) KB
      Allocatable:             FALSE
      Alloc Granule:           0KB
      Alloc Alignment:         0KB
      Accessible by all:       FALSE
  ISA Info:
    ISA 1
      Name:                    amdgcn-amd-amdhsa--gfx1032
      Machine Models:          HSA_MACHINE_MODEL_LARGE
      Profiles:                HSA_PROFILE_BASE
      Default Rounding Mode:   NEAR
      Default Rounding Mode:   NEAR
      Fast f16:                TRUE
      Workgroup Max Size:      1024(0x400)
      Workgroup Max Size per Dimension:
        x                        1024(0x400)
        y                        1024(0x400)
        z                        1024(0x400)
      Grid Max Size:<PHONE_NUMBER>(0xffffffff)
      Grid Max Size per Dimension:
        x<PHONE_NUMBER>(0xffffffff)
        y<PHONE_NUMBER>(0xffffffff)
        z<PHONE_NUMBER>(0xffffffff)
      FBarrier Max Size:       32
*** Done ***

Hi @kubawis128
Currently ROCm 5.0 does not support Navi23.
Anyhow I will try to get some information on the support part and update you asap.
Thank you.

Hi @ROCmSupport,
Thanks for your reply.
I can't wait for an update.

AMD have released a beta windows driver for AMD Radeon™ 6000 series, to support HIP GPU Acceleration feature. And it looks that RX 5500 XT run well.
More information: AMD HIP Linux GPU Acceleration For Blender Delayed To v3.2 Release

@qyb So does this mean that we could run tensorflow or pytorch ROCm on Windows soon?

@qyb @ROCmSupport So does this mean that we could run tensorflow or pytorch ROCm on Windows soon?

It's different. Same with NVIDIA , apps that can use CUDA Core doesn't mean it's can use by Pytorch / TF. In NVIDIA, you need CUDA Toolkit to run with GPU Computing (Tensorflow or Pytorch). But in this case (AMD Terms) it's required ROCm-Development which is different HIP Runtime. Maybe in term of video processing or rendering , AMD could use HIP but for other than that, it's really limited.

Any updates on Navi23 support?

I also have a 6600xt and I am trying to use pytorch rocm with it. I saw these build scripts, https://github.com/xuhuisheng/rocm-build, but it doesn't mention Navi 23. Is it possible to edit those scrips for Navi 23/gfx1032 or use a different method to support the 6600xt?

Same here.

same here.

same here。

same here

same here

Please do tell more.

a few more details here: https://github.com/RadeonOpenCompute/ROCm/issues/1756

Hi
I can confirm that you can run rocm on rx6600xt using HSA_OVERRIDE_GFX_VERSION and am able to run pytorch-rocm and generate images on gpu using stable diffusion
I think that we can close the issue for now (and maybe add a little note to the documentation to use env variable)
Thanks for all support

Tried the HSA_OVERRIDE_GFX_VERSION=10.3.0 without success.
The ROCMINFO and CLINFO shows the 6600XT, tensorflow won't:

2022-12-30 17:29:25.112376: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  SSE3 SSE4.1 SSE4.2 AVX AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-12-30 17:29:26.358871: E tensorflow/compiler/xla/stream_executor/rocm/rocm_driver.cc:302] failed call to hipInit: HIP_ERROR_InvalidDevice
2022-12-30 17:29:26.358891: I tensorflow/compiler/xla/stream_executor/rocm/rocm_diagnostics.cc:112] retrieving ROCM diagnostic information for host: hemerly-AI
2022-12-30 17:29:26.358897: I tensorflow/compiler/xla/stream_executor/rocm/rocm_diagnostics.cc:119] hostname: hemerly-AI
2022-12-30 17:29:26.358924: I tensorflow/compiler/xla/stream_executor/rocm/rocm_diagnostics.cc:142] librocm reported version is: NOT_FOUND: was unable to find librocm.so DSO loaded into this program
2022-12-30 17:29:26.358930: I tensorflow/compiler/xla/stream_executor/rocm/rocm_diagnostics.cc:146] kernel reported version is: UNIMPLEMENTED: kernel reported driver version not implemented
[PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU')]

After much trial-and-error, here's the cocktail that I finally got to work on Ubuntu 22.04 bare metal with Navi23 (6600XT). (Both PyTorch and Tensorflow from the command line)

ROCm 5.4.2
Python 3.9 (may need to separately install distutils)
tensorflow-rocm
pytorch5.2

Environment variables:

PYTHONPATH=/usr/bin/python3.9
ROCM_PATH=/opt/rocm
HSA_OVERRIDE_GFX_VERSION=10.3.0

Same here.

same here。

export HSA_OVERRIDE_GFX_VERSION=10.3.0
Seems to made this error disappear:
Ignoring visible gpu device with AMDGPU version : gfx1032

in short, crap, spend a lot of money on the gpu for nothing to work right, Windowns + AMD + Stable Diffusion = 0

Welcome to the club. This has been ongoing since the R9 days. Literally. What's that, 3 (or 4?) generations of cards - what's that, 10 years now? Where only random unicorn cards work because some unicorn at AMD managed to get it working for some random card because someone could apply the right unicorn magic at the right place... condolences to everyone working for AMD. AMD has acquired a lot of companies over the years and I guess there is a lot of internal politics and mismatched company culture, and this is the result, a company scoring own goals... a perfect case where open sourcing everything will actually help them.
Here is the current open source unicorn to get Pytorch running at good speed on most AMD cards, just a tiny push is needed, come on lets jump in and help out: https://github.com/artyom-beilis/dlprimitives

I completely agree with @dagelf and this is also (unfortunately) what keeps me (mostly) away from using AMD GPUs. With NVIDIA, you can at least be pretty certain that any reasonably recent GPU (e.g. Maxwell and newer) just works with the latest NVIDIA driver and/or CUDA toolkit + libraries.

Same here : )

export HSA_OVERRIDE_GFX_VERSION=10.3.0 means that it uses the code for gfx1030. In my personal tests RX 6600 is 3 times slower than RTX 3060 in TensorFlow, despite that in games they have similar performance

export HSA_OVERRIDE_GFX_VERSION=10.3.0 means that it uses the code for gfx1030. In my personal tests RX 6600 is 3 times slower than RTX 3060 in TensorFlow, despite that in games they have similar performance

What's your ROCm version?

@xfyucg 5.6.0, it is already installed in the Docker image rocm/tensorflow:latest

Im on latest archlinux (updated everything today so I can compile tensorflow-rocm).

INFO: Elapsed time: 5707,932s, Critical Path: 412,64s
INFO: 20232 processes: 2937 internal, 17295 local.
FAILED: Build did NOT complete successfully

I expect this is the log everyone was getting, right?

Similar issue
https://github.com/ROCm/ROCm/issues/3798


Re-export escaping utils.

See: https://node-postgres.com/apis/utilities

Thanks for this. However, exporting these functions at the top-level is a quite a new addition to pg.
Right now, the Neon driver builds on top of pg 8.8. We'll need to make some changes in order to upgrade to the latest version.
In the meantime, you can access these utility functions on a client instance or as Client.prototype.escapeIdentifier()/Client.prototype.escapeLiteral().


Error while opening NuGet.sln in monodevelop 5.9 (build 431)

Text says: Error while trying to load the project './src/VsConsole/Console/Console.csproj': Input string was not in a correct format.
That is on '2.8.5-monodevelop' branch of repository (and the 2.8.3-monodevelop branch)
with monodevelop 5.9 (build 431) from binary package of Sabayon linux
on mono 4.0.1 (detached/6d5afc1)
Also there are problems with other projects in solution:

This project type is not supported by MonoDevelop (for "VsExtension")
Invalid configuration mapping (for many other projects)

UPD:
I found, that I already asked that question:
https://github.com/mrward/nuget/issues/4
but you answered that master branch should mirror the main repository.

The latest version of .ebuild https://github.com/gentoo/dotnet/tree/master/dev-dotnet/nuget
is 2.8.3, this is why branch 2.8.1 is old for me.

Generally I build it on Windows. On Mac or Linux I normally just build using the build.sh.
If you are debugging NuGet.exe you will only need the CommandLine and Core projects. MonoDevelop does not like the Core project. You can go into project options for the Core project and add a Debug configuration to make MonoDevelop happy. However it renames the assembly to Core for some reason. It is probably easier to create a separate solution and add the Core and CommandLine projects to it. Just trying now I could not get the main NuGet.sln to build Core but in a separate solution it did work.
I doubt NuGet3 will help with MonoDevelop since they have switched to using the new .xproj which is used by ASP.NET 5. This project type is not supported in MonoDevelop. However it should be supported with Visual Studio Code, which runs on other platforms. Also I have not looked at using NuGet 3 on Linux or Mac so I do not know if it works.


Rate limit exceeded

I'm trying to generate using this, but it keeps saying my rate limit is exceeded for my openai account for the image generation, saying i need to have a rate limtit of at least 6 images per min but i only have 5 per min allowed i guess. Does this mean that I need to upgrade my usage tier from 1 to 2? Is there a way i can run this to where it only generates 5 of its images at a time? anyways, thank you for your help!

Yeah. That's a problem I should have mentioned... Because DALLE-3 rate limits are really strict. And each video typically has 7 dialog switches...
Either use google api for the google search images (change in localBuild.mjs and add necessary api keys), or write in the transcript.mjs prompt that it should only generate 5 dialog switches and not the typical 7

Thanks! and them im getting a similar issue with: The model ft:gpt-3.5-turbo-1106:personal does not exist or you do not have access to it. (i removed a small code of characters that i hope wasnt anything identifying yikes)

Cool. Yeah I definitely recommend messing around with the code. It's mostly for running by polling from db with brainrotjs.com so it could use some tweaks for local

Thanks for your help man! really cool thing you got here haha


[WIP] Testing v1.2 branch

Signed-off-by: André Martins<EMAIL_ADDRESS>PR to test v1.2 branch

This change is

test-me-please

test-nightly

test-me-please


Feature/Request: Setting to disable json autocompletion

Describe the solution you'd like
A setting to disable all completions like the one that already exists in the .lang file
Personal preference mainly, but it may be handy for someone else. If you'll point me in the right direction, I'd be happy to implement this.

The settings interface can be found here:
https://github.com/Blockception/VSCode-Bedrock-Development-Extension/blob/main/server/src/lib/Server/Settings/Settings.ts
Which mirrors this configuretion:
https://github.com/Blockception/VSCode-Bedrock-Development-Extension/blob/85ac901f1914d1bab4d95a106f65b12a5375b23e/package.json#L104
Here the call is made and managed to determine who/what/where to do with json completion
https://github.com/Blockception/VSCode-Bedrock-Development-Extension/blob/85ac901f1914d1bab4d95a106f65b12a5375b23e/server/src/lib/completion/minecraft/json/document.ts#L15C8-L15C9


Matplotlib module not found in Jupyter notebook

I've created a virtualenv and pip installed all the required modules, but inside the Jupyter notebook they don't seem to be available. What can I check for?

Ok, the problem was that the command jupyter notebook was invoking the globally installed jupyter. To solve this I used .virtualenv/bin/jupyter notebook instead.


Fix NPE for interfaces in SerializerPojo#getFields

Proposed fix for https://github.com/jankotek/mapdb/issues/653

Already fixed. I used your patch, but had to reformat it.

Thanks a lot. Will this be part of 1.0.9? If so, is there any release date yet?

1.0.9 is coming today or tomorrow. Just writing release notes.

Wow. Perfect!


computational complexity of Set operations

Hello, I'm wondering what is the computational complexity of doing Set intersection and union under the special circumstances where the two sets are almost equal?
I'm asking this because I'd like to perform fast set-difference operations on large sets, where I know beforehand that the sets are almost equal. In my case, both operands are derived from the same large set, but one of the operands has undergone some (small number of) mutations.
It seems to me that this should be implementable using functional data-structures, but I'm not sure if immutable-js actually implements it such that this is fast.

has() and set() are both O(1) while union() and intersection() are O(N) in the current implementaion.
If you can point me to research in making these ops faster than order N, I would love to see it.

Hi Lee, I don't have any pointers to actual research. But I imagine if the Set is implemented by, for instance, a red-black tree, then a computation of the intersection of two sets (two red-black trees) could simply walk through both trees, and look for nodes which are identical (have the same address), and skip the subtrees rooted at those nodes. Those identical nodes could be found by looking up the keys, I suppose. Anyway, I realize this is not a proof, just a sketch of how this could work :)

Sure. That's probably still O(N) but may have a better performance factor. Sets are actually backed by the same structure as Map, a HAMT. It has a similar tree shape. I have an outstanding task to make an optimized version of map merge or set union that follows this. I'm not sure that will do much for intersection though. If you have more info let me know!

Well actually I'm looking for something that is more like O(M) or O(M log N), where M is the number of mutations between the operands set1 and set2. Thinking a little deeper, the algorithm I would consider (based on red-black trees) goes through set1 and set2 simultaneously, and whenever there is a difference in set2 wrt set1, it looks up the mismatching node of set1 in set2 (this costs O(log N)). If found, then that subtree can be added to the current intersection using the fast-union. If not found, continue comparing along the tree. It seems that this algorithm is O(f*M log N), where f is a factor that takes into account the time for the fast-union.
I suspect that the union of the common subtrees can be fast, because by design, they don't intersect. But not quite sure about the computational complexity.
I'm also not sure how this would apply to the HAMT structure.
A similar algorithm could be used to perform set-difference directly (perhaps this is even simpler).

I'm interested in seeing reference implementations of this. If they're actually referential the same data then yes I believe you could get O(log N) union/intersection. However if they are simply value equal then there is no way to escape O(N) as you need to actually visit every node to determine a union or intersection.

Consider creating the union of:
      13
    /    \
   8      17
 /  \    /  \
1   11 15   25
 \         /  \
  6      22   27

and
      13
    /    \
   8      17
 /  \    /  \
1   11 15   25
 \         /  \
  7      22   27

Despite only one value being different, you have to at least crawl the tree to
find it. You can't determine from seeing that both trees have an "8" node that
you can stop crawling the tree. You must spend O(N1 + N2) time to determine the
union.
In a Red Black Tree, you also must then balance the result of the merge, which
is itself O(M * log N)
HAMT might yield a different outcome considering that it doesn't care about ordering so it doesn't require a rebalance, but I think simply determining the union/intersection will require a full traversal of both trees with the exception of the case where both trees are structurally sharing common subtrees. For example, if the 17 branch in both trees was literally the same memory, e.g. === then we could shortcut and be O(1) for that subtree.

Hi (sorry for replying so late, I haven't been at my computer for about a week),
The idea is that there IS structural sharing, because both sets are considered to be coming from the same source, although the sets might have both changed (slightly). To see this, consider that since an update to a set has computational complexity far smaller than O(N), both sets must have structural sharing.
And indeed, using the fact that there is structural sharing, you can identify identical nodes, and eliminate complete subtrees. That was already an assumption I made in my previous posts, but I should have been more clear about it.
By the way, this form of doing set-operations is important for "diffing" of data structures, so that updates can be efficiently performed by determining which parts of a data-structure has changed with respect to a reference version. So I really hope these fast operations become part of the library :)

Tracking this now in #507


Remove "added to my contacts" warning when using ephemeral connections

Description of feature / user story
As ephemeral connections delete the connection after the proof request flow is complete, this "Added to my Contacts" warning/alert is not true to the user. Please remove "added to my contacts" warning/alert in a proof request when using ephemeral connections.
Acceptance Criteria
Given that a proof request is using an ephemeral connection
When the holder is in the proof request screen
Then the "Added to the contacts" warning is now displayed
Wireframes or relevant image assets / links

Resolved by: https://github.com/hyperledger/aries-mobile-agent-react-native/pull/898

@wadeking98 ticket #1298 is related to this ticket well.


fix random willi bug

Scope & Purpose
This bug is about:
conspire = function() {
  let theories = [
    "docker", "ubuntu", "k8s", "json", "vst", "c#", "javascript", "collectd",
    "sleep", "satellite collections", "gyp", "lto", "macos", "smart joins",
    "el cheapo", "v8", "salat", "windows", "transactions", "oskar", "fuerte",
    "ccache", "libmusl"
  ];
  let conspiracy = {};
  while (Object.keys(conspiracy).length < 3) {
    conspiracy[theories[Math.floor(Math.random() * theories.length)]] = true;
  }
  return Object.keys(conspiracy);
};
print("It is caused by:", conspire().join(" + "));

[x] Bug-Fix for a released version (did you remember to port this to all relevant release branches?)
[x] The behavior in this PR can be (and was) manually tested (support / qa / customers can test it)

Testing & Verification
This change is a trivial rework / code cleanup without any test coverage.
https://<IP_ADDRESS>/view/PR/job/arangodb-matrix-pr/6646/

Tests blue except unrelated failure


Mark TestIcebergParquetSmoke as @Flaky

Relates to https://github.com/prestosql/presto/issues/5201

cc @lxynov @anjalinorwood


[Feature] Restore function

It could be nice to have a function to restore a soft deleted entity.
something like the following code sample in the file https://github.com/revelrylabs/ecto_soft_delete/blob/master/lib/ecto/soft_delete_query.ex
  def restore(query) do
    update(query, [t], set: [deleted_at: nil])
  end

this wont work due to ecto casting nil to utc_datetime_usec raw query is required, fixed in pr #143

We have a functino restore/1 that works nicely
  def restore(struct) do
    struct
    |> Ecto.Changeset.change(%{deleted_at: nil})
    |> Repo.update()
  end

i must have missed, however when i try to nil a datestamp by running restore() in postgres  ecto casts it to now()

No I mean, we have added this function into our code ^^


Provide 32-bit linux builds

Description
There are currently still a bunch of games/programs built as 32-bit applications as opposed to 64-bit applications, which for some reason or another, cannot be built as 64-bit. I personally want to contribute to one , but because it has a requirement on an older compiler/IDE (Game Maker Studio 1.4), only 32-bit builds can exist.
Since on Linux Renderdoc only supports capturing from an identical ABI, this makes it difficult for me to use Renderdoc on the program / my contributions. Since not only would I have to compile everything from source, but Renderdoc on 32-bit (x86) Linux is also completely unsupported.
Another potential use case could be for game developers to run their games under wine/proton to investigate steam deck compatibility bugs (I was involved in such a case, where in the end the bug was just fixed by pure trial and error).
I realize this isn't a huge priority, and there are probably good technical reasons as to why this was never done, but it would be very appreciated.
Environment

RenderDoc version: 1.26
Operating System: Arch Linux
Graphics API: OpenGL

This is not something I want to support, no. Realistically the number of exclusively 32-bit programs that are actively maintained is small and only shrinking. It's not something I want to expand the support set to include.
You're can continue using RenderDoc on 32-bit linux as it's not deliberately blocked by any means, and you can contribute any fixes specific to that architecture (as long as they aren't likely to cause problems), but it will not be officially supported and so I will not provide any support for bugs exclusive to that ABI or provide official builds.


df and dt are one character short

With the following configuration:
      require("nvim-next").setup({
        default_mappings = {
          -- repeat_style = "directional", -- Overrides ; and ,
          repeat_style = "original", -- Overrides ; and ,
        },
        items = {
          builtins.f,
          builtins.t,
        },
      })

The regular f and t motions work, as does selection with vf and vt. However, for some reason, df and dt delete one character too little compared to the actual built-in motions.
For example, assuming ^ is the cursor position:
foobar
^

Pressing dfb results in:
bar
^

Which is wrong, because the "b" should also have been deleted. Similarly, pressing dtb instead results in:
obar
^

But it should have deleted every character up until the "b".
Basically when using d*, both motions are deleting 1 character too little.

Works :tada: Thanks for the quick fix!


Complete nostr-ffi

Description
Implement missing methods/structs/enums in nostr-ffi
Checklists
All Submissions:

[ ] I've signed all my commits
[X] I followed the contribution guidelines
[X] I ran make precommit before committing

Hi, I just merged PR #204. It remove the UDL file and use pro-macros instead. Make sure to do a rebase before continue to work on this PR!


this folder named as ""hacktoberfest2022 2nd"

In the code I added "checkbox system, Modal for give reason and added a image" of landing page 1.

Thanks bro


how to add URL prefix to default language?

I am trying to build a bilingual site. English is default language, another language is Simplified Chinese. The URL of Chinese site is prefixed with zh-ch.
http://localhost:1313/zh-cn/
http://localhost:1313/zh-cn/post/

However, the URL of default language(English) site is not prefixed with en.
http://localhost:1313/
http://localhost:1313/post/

How can I make the URL of the default site prefixed with its language code(en)? I want to make it look like this:
http://localhost:1313/en/
http://localhost:1313/en/post/

I solved this issue by putting defaultContentLanguageInSubdir = "true" above [permalinks]. If it does not work, you can put it at top of config.toml.
 googleAnalytics = ""      # UA-XXXXXXXX-X
 copyright = ""            # default: author.name ↓        # 默认为下面配置的author.name ↓

+defaultContentLanguageInSubdir = "true" # Render English site under /en
 [permalinks]
   post = "/post/:year/:month/:day/:slug/"
 # language support # en / zh-cn / other... translations present in i18n/

original config.toml
# This is a simple configuration.
# If you want to see the full configuration, please check `full-config.toml` .
# And see https://gohugo.io/getting-started/configuration/ .

baseURL = "http://localhost:1313/"
title = "Jane - A super concise theme for Hugo"
enableRobotsTXT = true
enableEmoji = true
theme = "jane"

hasCJKLanguage = true     # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文
paginate = 3              # Number of articles displayed on the homepage  # 首页每页显示的文章数
rssLimit = 20             # Limit Entry Count to Rss file # 限制 Rss 文章输出数量
disqusShortname = ""      # disqus_shortname
googleAnalytics = ""      # UA-XXXXXXXX-X
copyright = ""            # default: author.name ↓        # 默认为下面配置的author.name ↓

[permalinks]
  post = "/post/:year/:month/:day/:slug/"
# language support # en / zh-cn / other... translations present in i18n/
defaultContentLanguage = "en"           # Default language to use
[langusges]
[languages.en]
  title = "english site"
  languageName = "English"
  # languageCode = "en"
  # weight = 2
[languages.zh-cn]
  title = "中文网站"
  languageName = "简体中文"
  # languageCode = "zh-cn"
  # weight = 1
[author]                  # essential                     # 必需
  name = "xianmin"

[sitemap]                 # essential                     # 必需
  changefreq = "weekly"
  priority = 0.5
  filename = "sitemap.xml"

[[languages.en.menu.main]]
  name = "Home"
  weight = 10
  identifier = "home"
  url = "/"

[[languages.en.menu.main]]
  name = "Archives"
  weight = 20
  identifier = "archives"
  url = "/post/"
[[languages.en.menu.main]]
  name = "Tags"
  weight = 30
  identifier = "tags"
  url = "/tags/"
[[languages.en.menu.main]]
  name = "Categories"
  weight = 40
  identifier = "categories"
  url = "/categories/"

[[languages.zh-cn.menu.main]]
  name = "主页"
  weight = 10
  identifier = "home"
  url = "zh-cn/"
[[languages.zh-cn.menu.main]]
  name = "归档"
  weight = 20
  identifier = "archives"
  url = "zh-cn/post/"
[[languages.zh-cn.menu.main]]
  name = "标签"
  weight = 30
  identifier = "tags"
  url = "zh-cn/tags/"
[[languages.zh-cn.menu.main]]
  name = "分类"
  weight = 40
  identifier = "categories"
  url = "zh-cn/categories/"

[params]
  since = "2017"            # Site creation time          # 站点建立时间
  homeFullContent = false   # if false, show post summaries on home page. Otherwise show full content.
  rssFullContent = true     # if false, Rss feed instead of the summary

  # site info (optional)                                  # 站点信息（可选，不需要的可以直接注释掉）
  logoTitle = "Jane"        # default: the title value    # 默认值: 上面设置的title值
  keywords = ["Hugo", "theme","jane"]
  description = "Hugo theme jane example site."

  # The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
  dateFormatToUse = "2006-01-02"

  # 一些全局开关，你也可以在每一篇内容的 front matter 中针对单篇内容关闭或开启某些功能，在 archetypes/default.md 查看更多信息。
  # Some global options, you can also close or open something in front matter for a single post, see more information from `archetypes/default.md`.
  toc = true                                                                            # 是否开启目录
  photoswipe = true         # see https://github.com/dimsemenov/PhotoSwipe            # 是否启用PhotoSwipe（图片可点击）
  contentCopyright = 'CC BY-NC-ND 4.0'

  # Link custom CSS and JS assets
  #   (relative to /static/css and /static/js respectively)
  customCSS = []            # if ['custom.css'], load '/static/css/custom.css' file
  customJS = []             # if ['custom.js'], load '/static/js/custom.js' file
  # language chooser
  showMenuLanguageChooser = true

  [params.social]                                         # 社交链接
    a-email =<EMAIL_ADDRESS>    b-stack-overflow = "http://localhost:1313"
    c-twitter = "http://localhost:1313"
    d-facebook = "http://localhost:1313"
    e-linkedin = "http://localhost:1313"
    f-google = "http://localhost:1313"
    g-github = "http://localhost:1313"
    h-weibo = "http://localhost:1313"
    i-zhihu = "http://localhost:1313"
    j-douban = "http://localhost:1313"
    k-pocket = "http://localhost:1313"
    l-tumblr = "http://localhost:1313"
    m-instagram = "http://localhost:1313"
    n-gitlab = "http://localhost:1313"
    o-goodreads = "http://localhost:1313"
    p-coding = "http://localhost:1313"
    q-bilibili = "http://localhost:1313"
    r-codeforces = "http://localhost:1313"
    s-mastodon = "http://localhost:1313"
    t-youtube = "http://localhost:1313"
    u-twitch = "http://localhost:1313"

fixed config.toml
# This is a simple configuration.
# If you want to see the full configuration, please check `full-config.toml` .
# And see https://gohugo.io/getting-started/configuration/ .

baseURL = "http://localhost:1313/"
title = "Jane - A super concise theme for Hugo"
enableRobotsTXT = true
enableEmoji = true
theme = "jane"

hasCJKLanguage = true     # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文
paginate = 3              # Number of articles displayed on the homepage  # 首页每页显示的文章数
rssLimit = 20             # Limit Entry Count to Rss file # 限制 Rss 文章输出数量
disqusShortname = ""      # disqus_shortname
googleAnalytics = ""      # UA-XXXXXXXX-X
copyright = ""            # default: author.name ↓        # 默认为下面配置的author.name ↓

defaultContentLanguageInSubdir = "true" # Render English site under /en
[permalinks]
  post = "/post/:year/:month/:day/:slug/"
# language support # en / zh-cn / other... translations present in i18n/
defaultContentLanguage = "en"           # Default language to use
[langusges]
[languages.en]
  title = "english site"
  languageName = "English"
  # languageCode = "en"
  # weight = 2
[languages.zh-cn]
  title = "中文网站"
  languageName = "简体中文"
  # languageCode = "zh-cn"
  # weight = 1
[author]                  # essential                     # 必需
  name = "xianmin"

[sitemap]                 # essential                     # 必需
  changefreq = "weekly"
  priority = 0.5
  filename = "sitemap.xml"

[[languages.en.menu.main]]
  name = "Home"
  weight = 10
  identifier = "home"
  url = "/"

[[languages.en.menu.main]]
  name = "Archives"
  weight = 20
  identifier = "archives"
  url = "/post/"
[[languages.en.menu.main]]
  name = "Tags"
  weight = 30
  identifier = "tags"
  url = "/tags/"
[[languages.en.menu.main]]
  name = "Categories"
  weight = 40
  identifier = "categories"
  url = "/categories/"

[[languages.zh-cn.menu.main]]
  name = "主页"
  weight = 10
  identifier = "home"
  url = "zh-cn/"
[[languages.zh-cn.menu.main]]
  name = "归档"
  weight = 20
  identifier = "archives"
  url = "zh-cn/post/"
[[languages.zh-cn.menu.main]]
  name = "标签"
  weight = 30
  identifier = "tags"
  url = "zh-cn/tags/"
[[languages.zh-cn.menu.main]]
  name = "分类"
  weight = 40
  identifier = "categories"
  url = "zh-cn/categories/"

[params]
  since = "2017"            # Site creation time          # 站点建立时间
  homeFullContent = false   # if false, show post summaries on home page. Otherwise show full content.
  rssFullContent = true     # if false, Rss feed instead of the summary

  # site info (optional)                                  # 站点信息（可选，不需要的可以直接注释掉）
  logoTitle = "Jane"        # default: the title value    # 默认值: 上面设置的title值
  keywords = ["Hugo", "theme","jane"]
  description = "Hugo theme jane example site."

  # The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
  dateFormatToUse = "2006-01-02"

  # 一些全局开关，你也可以在每一篇内容的 front matter 中针对单篇内容关闭或开启某些功能，在 archetypes/default.md 查看更多信息。
  # Some global options, you can also close or open something in front matter for a single post, see more information from `archetypes/default.md`.
  toc = true                                                                            # 是否开启目录
  photoswipe = true         # see https://github.com/dimsemenov/PhotoSwipe            # 是否启用PhotoSwipe（图片可点击）
  contentCopyright = 'CC BY-NC-ND 4.0'

  # Link custom CSS and JS assets
  #   (relative to /static/css and /static/js respectively)
  customCSS = []            # if ['custom.css'], load '/static/css/custom.css' file
  customJS = []             # if ['custom.js'], load '/static/js/custom.js' file
  # language chooser
  showMenuLanguageChooser = true

  [params.social]                                         # 社交链接
    a-email =<EMAIL_ADDRESS>    b-stack-overflow = "http://localhost:1313"
    c-twitter = "http://localhost:1313"
    d-facebook = "http://localhost:1313"
    e-linkedin = "http://localhost:1313"
    f-google = "http://localhost:1313"
    g-github = "http://localhost:1313"
    h-weibo = "http://localhost:1313"
    i-zhihu = "http://localhost:1313"
    j-douban = "http://localhost:1313"
    k-pocket = "http://localhost:1313"
    l-tumblr = "http://localhost:1313"
    m-instagram = "http://localhost:1313"
    n-gitlab = "http://localhost:1313"
    o-goodreads = "http://localhost:1313"
    p-coding = "http://localhost:1313"
    q-bilibili = "http://localhost:1313"
    r-codeforces = "http://localhost:1313"
    s-mastodon = "http://localhost:1313"
    t-youtube = "http://localhost:1313"
    u-twitch = "http://localhost:1313"


Fixing AttributeError: 'dict' object has no attribute 'dicts'

I kept getting AttributeError: 'dict' object has no attribute 'dicts' on django 1.8.3: AttributeError: #758

If we take this route for context_layer in getattr(context, 'dicts', []) would result in fewer changes and less indentation.
It would be nice to know why the attribute isn't there.

Good point!

I will dig into why the attribute doesn't exist as soon as I can.

@aaugustin I changed the code based on your recommendation. Have not had a chance to figure out why the attribute doesn't exist. Do you need me to dig into that before you merge?

@aaugustin,
I work with @seperman and I know why it isn't there - it's because we're using Jinja2 templates, which doesn't use the magical Django context objects when rendering templates. Rather context is just a plain dict.
I suspect this will impact others using Jinja2 templates as of Django 1.8 (or was it 1.7?).

@tschundler  Thanks is interesting. But I have used django debug toolbar with many projects that used jinja2.

@tschundler If I understand correctly, this bug only manifests when using Django's built-in support for Jinja 2 (which I happen to be responsible for)?

I was going to say yes, but figured I should double check and make my own test app. And debug toolbar works.
The site Sep & I are working on is not using quite vanilia Django templates for Jinja. Rather it's using something slightly modified so that we have context processors. So I took a look, and I see I also added this:
        test_signals.template_rendered.send(
            sender=self,
            template=self,
            context=context
        )

in my JinjaTemplate.render method - it was necessary to keep unit tests working, since like context processors, that functionality doesn't work with Django 1.8's template renderer. We had the same thing before with switched to Django 1.8 style backends, where it was just a special template loader. But then it was getting Django style contexts that it passed to the signal.
so... @aaugustin, maybe this is better as a question of how you're planning to support checking for template rendered and such in unit tests with Jinja2 in Django. (Or is that doable in newer versions?) We can adjust our code to match that. Or if you want to adjust your code to match ours:
def make_jinja2_context(context=None, request=None):
    if context is None:
        context = {}

    if request is not None:
        fresh_context = {'request': request}
        for conext_processor in env.django_context_processors:
            data = conext_processor(request)
            if data:
                fresh_context.update(**data)

        fresh_context.update(**context)
        context = fresh_context

    return context

class JinjaTemplate(jinja2.Template):
    def render(self, context=None, request=None):

        jinja_context = make_jinja2_context(context, request)

        test_signals.template_rendered.send(
            sender=self,
            template=self,
            context=context
        )

        return super(JinjaTemplate, self).render(jinja_context)

For this to work, we also set
env.template_class = JinjaTemplate
env.django_context_processors = map(import_string,
        settings.TEMPLATES[0]['OPTIONS']['context_processors'])

So we get what we need directly from the Jinja2 template loader. We also have code to do something like APP_DIRS using ChoiceLoader + PackageLoader. It's pretty full-featured. Even supports signals.setting_changed, and a way to register filters.
I had been meaning to clean it up to submit a pull request to Django project for never got around to it. (Maybe it should be that time?)

Did you consider using Jinja2's native globals instead of emulating Django context processors?
I find the former to be a much better API.

Globals work for constants, but not everything from context processors are constant. Several of ours rely on properties of the request. In the last two years, we've been moving to class based views, and most of those are now view mixins, and some could surely be middleware.
But it's a 5+ year old code base, and that was the most straight-forward way to move forward while minimizing what needs to be rebuilt.

I recommend putting callables in Jinja2 globals and use ``{{ callable_global(request) }}` when you need the resulting value. This allows making a difference between context processors that return constants (a common case) and those that actually depend on the request (meaning you can't use them outside of the request processing e.g. when sending email from a scheduled task).

I think this isn't an issue anymore. Also, review comments should be addressed (and a merge conflict fixed) if it still is. Thanks anyway!


[BUG] Crash with newest Macaw's Doors 1.18.2

Important Information
Minecraft Version: 1.18.2
Mod Loader System: Forge 40.2.9
DramaticDoors Version: 1.18.2-2.3.1_2
Describe the bug
Macaw's Doors crash when DramaticDoors is enabled. I'm reporting it here because I saw Kitteh6660 fixed it for other MC versions but not this one.
To Reproduce
Steps to reproduce the behavior:

Have newest Macaw's Doors and Dramatic Doors enabled
Start the game

Expected behavior
The game loads to main menu
crash-2023-08-07_14.07.14-fml.txt

I will get that fixed eventually!

The fix has been backported and will be on mod version 2.3.1_3.

Yes, I am aware of that. Thank you.


stan-functions.txt is not created anymore

Summary:
The make target to create the stan-functions.txt file used in RStan and RStudio was eliminated when we went to the RMarkdown-based documentation.
Description:
The make target to create the stan-functions.txt file used in RStan and RStudio was eliminated when we went to the RMarkdown-based documentation.
Reproducible Steps:
find . -type f -name "stan-functions.txt" -print

Current Output:
Nothing
Expected Output:
Nothing but we used to create it
Additional Information:
None
Current Version:
v2.18.1

Is this still wanted or were the changes discussed in https://github.com/stan-dev/docs/issues/42 enough?

This can be closed when https://github.com/stan-dev/docs/pull/128 is merged.

Fixed by https://github.com/stan-dev/docs/pull/180.


chore(deps): update module github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper to v1.9.2

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper
require
minor
v1.8.11 -> v1.9.2

Release Notes

terraform-ibm-modules/ibmcloud-terratest-wrapper
v1.9.2
Compare Source
Bug Fixes

deps: update gomod (#549) (5689c4c)

v1.9.1
Compare Source
Bug Fixes

deps: update gomod (#547) (d8c479a)

v1.9.0
Compare Source
Features

output human-readable change log when the consistency test fails (#544) (2ff81e4)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


constants are actually "flat"

Godot version:
3.1 official build
OS/device including version:
Linux
Issue description & Steps to reproduce:
I'll start with quote from docs Constants are similar to variables, but must be constants(...).
The issue is, constants in godot are flat, i.e. if the constant is set e.g. to Dictionary(), the constant itself is constant, however dict's internals are not.
Let's consider the example below (UTs using Gut):
extends "res://addons/gut/test.gd"

const FLAT_CONST = 123
const DEEP_CONST = {
	'foo': 'bar',
}

func test_flat_cnst():
	var pre = FLAT_CONST
	# FLAT_CONST = 321 # Parser Error: Cannot assign a new value to a constant
	var post = FLAT_CONST
	assert_eq(pre, post, "Should pass")

func test_deep_cnst():
	var pre = str2var(var2str(DEEP_CONST)) # make copy
	DEEP_CONST['foo'] = 'baz'	       # compiles
	var post = DEEP_CONST
	assert_eq(pre, post, "Should pass")    # fails

The second test fails. I suspect why this is happening and even if this is made like that on purpose, IMO, it's counter-intuitive. const should enforce deep copying etc. I've already ran into trouble as I've been assuming consts are really const (IMO deep).
After writing 1.5k LOC in GDScript this is the only weird issue I've faced.
It should either be fixed, or documented better.

:+1:

I had some discussion with colleagues regarding this topic and eventually, my proposal would be to introduce a keyword final. It would work as the current implementation of const (reference is const, but data is mutable) whereas const should extend final in a way that data is immutable.
So:
const c_ref_and_data = {'a':1}
final c_ref = {'b':2}
(...)
c_ref_and_data = {} # illegal
c_ref_and_data['x'] = 3 # illegal
c_ref = {} # illegal
c_ref['x'] = 3 # fine

IMO it would be intuitive for people familiar with Java, C++, etc.

Why not change the current behavior of const and introduce immutable variables for use cases where you can't use const?
We can do this for 4.0 if anyone is currently relying on this behavior.

Well, either way, cost should make binding as well as data absolutely immutable - even for compound data types.

This is a feature proposal disguised as a bug, so I'm closing it.

Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine.
The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker.
If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance!


Opensource

The changes was base on testing out my opensource skill. Further changes are coming up from me

Hi @iamgabrielsoft ,
Thanks for your contribution! However, the changes suggested are non-relevant to the library as introduce your personal computer settings, code style issues, business logic break, and test code into the main library file.


Non-default shell "Console2" renders the "Open terminal here..." useless

If left to use the default terminal, in my case Powershell, the plugin functions as described. Hotkeys, right-click menu options all work perfectly.
However after changing the terminal to Console2 only the Ctrl+Shift+T hotkeys function, showing the terminal opening in its folder. The right-click menu in both the sidebar and the main editing window result in an error dialog "Terminal: The terminal console2 was not found here."
If I change the terminal to use "cmd" everything again functions as normal.
In all situations I can use these 3 different terminals properly no matter where on the system I start them. They are all in the PATH and all behave as would be expected.

@GrantSP Can you verify that console2 is in the PATH environment variable from the perspective of Sublime Text? I have found that the environments don't always line up.
Inside of the Sublime Console (`ctrl+``), please run the following:
import os; print(os.environ['PATH'])

I'm also having this issue.
@twolfson yes, the console2 path is does show up there. Running console.exe from cmd also works fine.
I've tried putting the full path (with forward slashes and with double back slashes too) into the sublime user settings, after that was when I added console2 to the path.
This makes the console launch, but not in the right directory (and with a spare cmd in the background which closes when you close console2.
{
	"terminal": "cmd.exe",
	"parameters": [ "/C Console.exe ", "exit "]
}

I've tried various params to try and get the directory to be correct (/c cd %CWD%" && console.exe for example) but with no joy. Curiously adding  -d \"%CWD%\" is landing me in the directory console2 is installed in:
{
	"terminal": "cmd.exe",
	"parameters": [ "/C c:\\path\\to\\Console2\\Console.exe -d \"%CWD%\"" ]
}

@Patabugen Parameters should be broken up such that we don't need to wrap them in quotes as Python takes care of that. Can you try out:
{
    "terminal": "cmd.exe",
    "parameters": ["/C", "c:\\path\\to\\Console2\\Console.exe", "-d", "%CWD%"]
}

Sorry for the passage of time since your request for the PATH.
I've actually dropped using Console2 for the time being, but as my opening post stated Console2 and does show when that command is run.

No worries. Since it's impractical to solve a problem that doesn't exist I will sort out @Patabugen's issues and close up this issue.
If you are having issues with your Console2 replacement, please let us know.

Ahh! This works: (with a stray cmd window in the background)
{
	"terminal": "cmd.exe",
	"parameters": [ "/C", "Console.exe", "-d", "%CWD%" ]
}

However this still doesn't:
{
	"terminal": "console2.exe",
	"parameters": [ "-d", "%CWD%" ]
}

That's great to here. We are making progress =)
It looks like cmd.exe is executing Console.exe not console2.exe though. Have you tried updating the options to:
{
    "terminal": "Console.exe",
    "parameters": [ "-d", "%CWD%" ]
}

Ah sorry the latter was a typo, it doesn't work with either console2.exe or console.exe (I've tried both with a capital and lowercase C too).

Ah, k. It's possible that Sublime Text was started with a different PATH environment variable than cmd.exe. Can you verify Console.exe is on the PATH?
# Run inside of Sublime Text's REPL via Ctrl+`
import os; print(os.environ['PATH'])

The Console2 path is listed in the console after running that command (I'm
afraid! haha)

Damn. Are there any errors in the Sublime Text console when you attempt to open a new terminal?

Yes! Yes there are!
[WinError 740] The requested operation requires elevation
error: Terminal: The terminal console.exe was not found

My Console2 was set to always run as administrator, but Sublime Text was
not.
If I make either ST run as admin, or Console2 not run as admin it works
just fine! Running it through cmd.exe works because (I presume) whichever
way cmd.exe runs causes the UAC to pop up (or not pop up if it's disabled),
but ST just fails to request permission.
Drat, sorry I didn't look and notice that sooner!
On 9 July 2015 at 17:47, Todd Wolfson<EMAIL_ADDRESS>wrote:

Damn. Are there any errors in the Sublime Text console when you attempt to
open a new terminal?
—
Reply to this email directly or view it on GitHub
https://github.com/wbond/sublime_terminal/issues/54#issuecomment-120065805
.

--
Patabugen

Alright, so it sounds like this issue is resolved =) Closing this issue