text:
[feature request] add a cmd to generate the default config file for Dragonfly

Why you need it?

For a better experience for users, we can provide a command to generate a default config file with the default value for every component of the dragonfly.
Just as follows:
dfdaemon config default > /etc/dragonfly/dfdaemon.yml
dfget config default > /etc/dragonfly/dfget.yml
supernode config default > /etc/dragonfly/supernode.yml

How it could be?

Other related information

also cc/  @fengzixu @SataQiu

Should we supply the default config based on config files in docs/config ?

Should we supply the default config based on config files in docs/config ?

Maybe according to the source code is better. Haha 😄

/assign

authors: SataQiu Starnop fengzixu

repo: dragonflyoss/Dragonfly


text:
Difference between pkg/cache and go-cache?

https://github.com/patrickmn/go-cache/blob/master/cache.go
https://github.com/dragonflyoss/Dragonfly2/blob/main/pkg/cache/cache.go

Refactoring cache using interface
Can get expired data，nn the case of unreliable P2P network, expired data can be obtained for fallback.
https://github.com/patrickmn/go-cache/blob/master/cache.go#L120 => https://github.com/dragonflyoss/Dragonfly2/blob/main/pkg/cache/cache.go#L141
Remove unused features https://github.com/patrickmn/go-cache/blob/master/cache.go#L187

source: gharchive/issue

authors: cwdsuzhou gaius-qi

license_type: permissive

license_source: github-api


text:
cargo: update fuse-backend-rs dependency

To update virtio-queue to the released 0.1.0 version.

The second patch updates virtio-queue but summary mentions fuse-backend-rs

The two commits both update fuse-backend-rs. The first one fetches virtio-queue changes, and the second one fetches FileVolatileSlice. I kept them separate just in case that FileVolatileSlice breaks anything.

source: gharchive/pull-request

authors: bergwolf eryugey

repo: dragonflyoss/image-service


text:
github action: add top images v6 format conversion and check

Add top images v6 format conversion and check in the nightly
top images conversion test.
Signed-off-by: Qi Wang wangqi@linux.alibaba.com

https://github.com/yawqi/image-service/actions/runs/2492069958
https://github.com/yawqi/image-service/actions/runs/2491791134
The CI and nightly conversion have passed in my repo.

It seems that when specifying --source the nydusify will crash due to the fs-version and cache/direct mode setting, still needs some more refinement...

We need to ensure that the test is as complete as possible, so let's resolve all problems before merging it.

@imeoer With --source being added, is there any other concern about this pr?

@imeoer With --source being added, is there any other concern about this pr?

Actually, for current release, we can't add the --source, related to PR#494.

#493 has been merged

nydusify check do validation by the following rules:

if --target be specified, check the nydus image's manifest format;
if --source be specified, pull the source image and compare the consistency of fs metadata between the ociv1 image and the nydus image;
if --backend-type registry/oss --backend-config ... be specified, check fs data between the ociv1 image and the nydus image;

So we'd better add --source and --backend-type registry options to validate fs consistency for rafs v5/v6.

I will test it in my own repo first because the current release doesn't support specifying --source for RAFS v6.

Now that current release does not support --source,  can we move on and merge it? @imeoer

Now that current release does not support --source, can we move on and merge it? @imeoer

This test only ensures that the nydus image manifest is valid (by --target) and the bootstrap (v5/v6) format is fine (by fsck), but it doesn't guarantee that the filesystem consistency of source (ociv1) and target (nydus) images are as expected.
The option --source has been supported by nydusify check, I think this test will cover many real images, we'd better ensure we have resolved all possible problems.
But indeed we can merge this PR first, at least to make sure the nydus format is fine, agree we can move on.

@yawqi , Your pull request has been updated. A new test job has been submitted. Please wait in patience.

@yawqi , 您好，您无权进行此项操作。

Ready for merging?

Ready for merging?

Yes, thanks! ; )

authors: imeoer jiangliu liubogithub yawqi yqleng1987


text:
Clarify documentation "Individual Transitions" on Transition Component For List Items

Hey there.
In the documentation for the Transition Component it says "For more complex transitions you can return per-item values individually."
It seems that if you pass in an array of items, the from, enter, and leave only get called for the first item in the array.  I didn't know if this is expected, as I am coming from react-motion where you can change the values based on the item key.  So my question is...
If you are transitioning more than 1 item in a list, do these per item values only apply to the whole list not each individual transitioning child?
 const items = [
    {
      key: 'overlay',
      component: Overlay,
      from: { opacity: 0 },
      enter: { opacity: 1 },
      leave: { opacity: 0 },
    },
    {
      key: 'dialogue',
      component: Dialogue,
      from: { opacity: 0, transform: 'scale(0)' },
      enter: { opacity: 1, transform: 'scale(1)' },
      leave: { opacity: 0, transform: 'scale(0)' },
    },
  ];

  return (
    <Transition
      native
      keys={(item) => item.key}
      items={items}
      from={(item) => {
        console.log('FROM ITEM: ', item);
        return { opacity: 0 };
      }}
      enter={{ opacity: 1 }}
      leave={{ opacity: 0 }}>
      {(styles) =>
        items.map((item) => {
          const Component = item.component;
          return (
            <animated.div key={item.key} style={styles}>
              <Component />
            </animated.div>
          );
        })
      }
    </Transition>
  );

Whatever this was, it shouldn't be. I just tried this in the 6. beta and it looks good: https://codesandbox.io/s/zxr3wo6x5l
I am putting more effort in making docs, sitting on it right now - otherwise i could release.

Docs are out, your example should work in 6.0.

@drcmda Thanks, Paul!  I'll give it a go.  I appreciate the prompt turn around.

authors: drcmda jwdinker

repo: drcmda/react-spring

license: MIT


text:
ionic start issue

From @abhilashenair on March 21, 2016 7:1
ionic start todo2 example
module.js:341
throw err;
^
Error: Cannot find module 'archiver'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/utils.js:3:16)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
Copied from original issue: driftyco/ionic-site#515

@abhilashenair could you share more info about your environment? CLI Version, OS, Node version...

Hello all! As it has been a while since there was any activity on this issue i will be closing it for now, but feel free to comment if you are still having the issue.

repo: driftyco/ionic-cli

license: mit

license_source: bigquery


text:
ionic back and broswer back have different behaviors

Ionic version:  (check one with "x")
[ ] 1.x
[ ] 2.x
[ x] 3.x
I'm submitting a ...  (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

Expected behavior:

Steps to reproduce:
1.enable deep link
2.transition back to a page by ionic back button and browser back button respectively.
3.watch the page's constructor and ionViewDidLoad
4.ionic back execute constructor and ionViewDidLoad once time.
5.browser back execute constructor and ionViewDidLoad everytime.

Thanks for opening an issue with us, we will look into this.

I think it is related to https://github.com/driftyco/ionic/issues/11698.

Hello, thanks for opening an issue with us. I am going to close this as a duplicate of https://github.com/driftyco/ionic/issues/11698.

authors: izee jgw96 shawnlan

repo: driftyco/ionic


text:
BUG: could't install some ng-cordova plugin

recently, I want to use the camera plugin in my app. but I could't install this plugin. However I can use it nomally last month.
F:\epipe\epipe-app>cordova plugin add cordova-plugin-camera
Fetching plugin "cordova-plugin-camera" via npm
Installing "cordova-plugin-camera" for android
Plugin doesn't support this project's cordova-android version. cordova-android:
4.1.1, failed version requirement: >=5.0.0-dev
Skipping 'cordova-plugin-camera' for android

how can I fix it .
here is my infomation
Your system information:

Cordova CLI: 5.4.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic Version: 1.1.1
Ionic CLI Version: 1.6.5
Ionic App Lib Version: 0.3.9
OS: Windows 7 SP1
Node Version: v0.12.7

Greetings @floraluo!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Sounds like you should upgrade your cordova version: npm install -g cordova.

@mlynch I have already done so

I try it again
F:\epipe\epipe-app>npm install -g cordova
C:\Users\Administrator.ZHANGZIJUAN1\AppData\Roaming\npm\cordova -> C:\Users\Admi
nistrator.ZHANGZIJUAN1\AppData\Roaming\npm\node_modules\cordova\bin\cordova
cordova@5.4.1 C:\Users\Administrator.ZHANGZIJUAN1\AppData\Roaming\npm\node_modul
es\cordova
├── underscore@1.7.0
├── ansi@0.3.0
├── q@1.0.1
├── nopt@3.0.1 (abbrev@1.0.7)
├── update-notifier@0.5.0 (is-npm@1.0.0, string-length@1.0.1, chalk@1.1.1, re
peating@1.1.3, semver-diff@2.1.0, configstore@1.4.0, latest-version@1.0.1)
└── cordova-lib@5.4.1 (valid-identifier@0.0.1, opener@1.4.1, properties-parse
r@0.2.3, nopt@3.0.6, rc@0.5.2, semver@4.3.6, shelljs@0.3.0, dep-graph@1.1.0, npm
conf@2.1.2, xcode@0.8.0, cordova-serve@1.0.0, init-package-json@1.9.1, request@2
.47.0, tar@1.0.2, aliasify@1.8.0, glob@4.0.6, cordova-app-hello-world@3.10.0, co
rdova-js@4.1.2, npm@2.14.15)

F:\epipe\epipe-app>cordova plugin add cordova-plugin-camera
Fetching plugin "cordova-plugin-camera" via npm
Installing "cordova-plugin-camera" for android
Plugin doesn't support this project's cordova-android version. cordova-android:
4.1.1, failed version requirement: >=5.0.0-dev
Skipping 'cordova-plugin-camera' for android

http://stackoverflow.com/questions/33921935/plugin-doesnt-support-this-projects-cordova-android-version-cordova-android

thank you. It's work well now. But when I ionic run android it need me to install the follow
ERROR running one or more of the platforms: Please install Android target: "andr
oid-23".

Hint: Open the SDK manager by running: "d:\sdk\android-sdk-windows\tools\android
.bat"
You will require:
1. "SDK Platform" for android-23
2. "Android SDK Platform-tools (latest)
3. "Android SDK Build-tools" (latest)

So,I open the SDK and install these. Now, I can use the camera.
Thanks again!!! ^_^

Of course. Send us some photos from your journeys! 📸

authors: Ionitron floraluo mlynch


text:
Update to angular 1.5

Hi, please update ionic v1 to use angular 1.5.
Thank you.

:+1:

+1

+1

+1

+1

+1

whats change?

To name only one : Component-Based Directives
https://medium.com/google-developer-experts/angular-new-features-in-angularjs-1-5-24f9b503af15#.egyzwkczl

Yep +1.

+1

+1

+1

+1

+1

+1

Why not just update angular and angular-resource to 1.5 by yourself? Everything is still working in my app in addition to new features like $cancelRequest().

Hello @ram-you ! Thanks for the suggestion, we are definitely listening! Since this isn't really an issue i will be closing this issue, but feel free to continue on the conversation please! Id love to hear the main reasons why people would like to be able to use AngularJS 1.5! Also, have you gotten a chance to play with Ionic 2 yet?

@jgw96 , thank you very much. Using the Angular 1.5 will enable us to share components between our main application (angular-material) and our  Ionic 1 app. For now, I have not had the chance to try the ionic v2 for lack of time. I hope to do very soon.

Some of us are considering an upgrade of existing ng1/Ionic1 apps to ng2/Ionic2 and would appreciate 1.5 update inside Ionic1 to help us bridge the gap. Based on the Angular upgrade doc, the new component based directives will make such an upgrade much easier, they make it clear that the Component based directive will make the upgrade pathway easier. I believe that is why some of us are asking for this improvement to Ionic1.

Additionally, for those of us who would like to stick with the Angular 1.* way of doing things an upgrade to 1.5 would be a big step forward.

@paresthesia69 The migration to angular 2/ionic 2 is one of the biggest advantages of 1.5! @aprct definitely! But i urge you to give angular 2/ionic 2 a try, it may seem weird at first, but you will end up loving it fast! Its just es6/es7 javascript or Typescript now! Alot of the angular specific stuff like $scope is gone now

@jgw96 Yeah, that is why I am hoping that Ionic 1 updates their bower.json/support for Angular 1.5, to make the potential transition easier. We are doing complete ES6 through babel in our current projects where I am at, and we love it. We are not sure about TypeScript though (yet?), maybe because most of my team still prefers something closer to vanilla. Either way, an update for Ionic 1 to support 1.5 would be very helpful with the transition to 2.

@jgw96 Thanks for the quick response. My team has tried both Angular 2 and React/React-Native, and we have a lot of experience with Angular 1. At the moment the decision is between the familiarity of Angular 1 and (in our opinion) the architectural improvements of React. We'd like to benefit from the infrastructure provided by Ionic, and decided that (for various reasons) we'd hold off on Angular 2 for now.
That said, I understand if business on your side is prioritizing Angular 2/Ionic 2 for development and lack the resources to focus on a migration path from 1.4 to 1.5 to 2.

Just started my ionic and angularjs marathon. Heard a lot about how angularjs 2 and ionic 2 are totally different from the previous versions and less documentation coverage. i had to keep off for now. I have heard from this forum that transition to version 2.0 of both ionic and angular is easier if angular 1.5 is included. i add my voice to the many. please consider supporting angular 1.5. i have an app with bootstrap and angular1.5. now wanted to use the same code with ionic mobile version. i don't know how it will go. i will try it anyway.

:+1:

It seems that the community views this issue as a priority for numerous reasons. @jgw96 What would it take for Drifty to let Ionic 1 go out with a bang? :)

+1. This is a required spec.

+1
I'd like to share my components between the web app and the mobile app =)

All, this will be in the next release of Ionic 1.x in the coming weeks.
Thanks,
Dan

please do.

For those interested in this post next step, read https://forum.ionicframework.com/t/ionic-1-3-release-candidate-w-angular-1-5-update/49133/11 =)

Thanks @astik!
Go ahead and upgrade and let us know how it goes.  No reported issues so far.
Thanks,
Dan

So far so good, migration went well and mutating my directive to component was done without ay problem. Thank to ionic team !

+1

authors: MarcBT QcRafal aprct astik chaitujil cyprusglobe danbucholtz danicomas danielptn danijelmaric denyo ferrante jadsalhani jaronson jgw96 jopima jrencz liujinxing moisesnarvaez nonmadden paresthesia69 petrvojta ram-you rastographics vascofernandes


text:
V2 Question: How to fully minify/uglify CSS/JS ?

I would like to uglify and compress my JS and CSS as much as possible after every build. Should I use the old cordova-uglify method like how it's done in version 1? or is there a better way to do it now?
Ionic Version: 1.x / 2.x
2.x

Sorry but this question is better suited for the forum: https://forum.ionicframework.com/
However, it is on our roadmap to make it easy to minify and v2 builds, we should haven't completed it yet. Thanks

authors: adamdbradley ihadeed


text:
patchTimer cancelAnimationFrame

Hey,
could you merge the following fix in zone.js in ionic-angular? It's really annoying for all leaflet users.
https://github.com/angular/zone.js/pull/353
Thanks!

Ionic uses npm to manage dependencies. Once the zone.js team releases a new version and we update our dependencies the fix will become part of ionic.

authors: kaynz manucorporat


text:
docs(nav-push): Declare params variables

Short description of what this resolves:
Error: Property 'params' does not exist on type MyPage.
Changes proposed in this pull request:

Declare params on MyPage

Ionic Version: 2.x
Fixes: #

Thanks for the PR, but Object is spelled wrong. Could you correct that and I'll merge it? :)

Thank you :)

authors: HsuanXyz brandyscarney


text:
Consolidate config file compilation in examples to be more friendly

<BobMcWhirter[m]> how do I build this locally? what am I missing?
<BobMcWhirter[m]>   thread 'main' panicked at 'Unable to locate config file
/Users/bob/repos/drogue-device/examples/nrf52/microbit/rak811/config/dev_eui.txt.',
rak811/build.rs:22:13
<BobMcWhirter[m]> I supposed I need that file, but I dunno the content or
format of it?
<BobMcWhirter[m]> All 3 really?
<BobMcWhirter[m]> To use this example, you need to create the files
config/dev_eui.txt, config/app_eui.txt, and
<BobMcWhirter[m]> config/app_key.txt to configure the device EUI,
application EUI, and application key for OTAA
<BobMcWhirter[m]> configuration of your device.
<@jcrossley3> empty might work?
<BobMcWhirter[m]> seems to
<BobMcWhirter[m]> plus wifi..txt and http..txt
<BobMcWhirter[m]> so many files
<JimCrossley[m]> yeah, it's a problem :)
<BobMcWhirter[m]> we should .gitkeep the config/ dirs also
<BobMcWhirter[m]> so I don't have to mkdir those before touching files
<JimCrossley[m]> or just commit empty ones?
<JimCrossley[m]> with CHANGE_ME's in there, if required?
<BobMcWhirter[m]> that'd be good, as it would denote the format that goes into
them also
<BobMcWhirter[m]> if we commit empty .txt files, we then need to .gitignore
them so we don't inadvertently checkin actual credentials
<BobMcWhirter[m]> and/or look for something in $HOME/.drogue
<BobMcWhirter[m]> outside of the tree
<BobMcWhirter[m]> bonus points if it a single .drogue/config.toml
<BobMcWhirter[m]> probably wouldn't work with the include_bytes! though, yeah?
<BobMcWhirter[m]> but we could make our own proc macro to process a .toml out
of tree and spew the bits.
<BobMcWhirter[m]> let ssid = drogue_config!(wifi.ssid)

To avoid the overhead of publishing a proc macro in its own crate, I think for my first pass I'll use the config_struct crate in build.rs to create a src/config.rs from a .drogue/config.toml.

repo: drogue-iot/drogue-device


text:
Support subscription-add, unicast & virtual.

Round-trip a pub/sub.

bors r+


text:
Add support for v1.PodSpec.ImagePullSecrets on Kubernetes native Drone server

When using a private registry with authentication in Kubernetes, jobs get stuck in "ImagePullBackoff" state. This PR adds support for ImagePullSecrets when creating the Kubernetes Job, so the job can start.
To use the feature, set the env. var. DRONE_KUBERNETES_IMAGE_PULL_SECRETS to the name of the k8s secret for the private registry when deploying the Kubernetes native Drone server.

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

the kubernetes runtime in this repository was deprecated.  the second generation implementation can be found at https://github.com/drone-runners/drone-runner-kube

authors: CLAassistant bradrydzewski dmlambea

repo: drone/drone


text:
Modify DefaultSignalManager for concurrency

There is a concurrency problem in the class org.jbpm.process.instance.event.DefaultSignalManager.
It is not threadSafe because the variable processEventListeners is of type HashMap and because the creation of processEventListeners and eventListeners is not synchronized. This proposed change solves that problem.

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

@mswiderski please give "ok to test" to this new PR

ok to test

@jcavieres can you open jira and update commit message so we have the reference?

Done
https://issues.jboss.org/browse/JBPM-5400

merged manually with https://github.com/droolsjbpm/jbpm/commit/69057f7e9e3a421ce880e774387bb1b932c45608
thanks @jcavieres

authors: jcavieres kie-ci mswiderski

repo: droolsjbpm/jbpm


text:
C if else only

Like #176 but without the new plumbing for annotations required for function and declarator buttons.

Abandoned in favor of #181

repo: droplet-editor/droplet


text:
Java 10+ compatibility

The version of Jersey (2.25.1) that DW 1.3.5 depends on is not compatible with Java 10 because that version of Jersey has a version check. I discovered this when scanning packages for classes I compiled using Java 10. Specifically, in the repackaged jersey.repackaged.org.objectweb.asm.ClassReader I find this:
// checks the class version
// added "support" for java 9 compiled classes
if (readShort(off + 6) > Opcodes.V9) {
    throw new IllegalArgumentException();
}

Unfortunately DW 1.3.5 is not compatible with the version of Jersey (2.27) that works with Java 10 because that version of Jersey does not contain AbstractValueFactoryProvider (looks like it was removed in Jersey 2.26). Here is the relevant stack trace:
java.lang.NoClassDefFoundError: org/glassfish/jersey/server/internal/inject/AbstractValueFactoryProvider
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:801)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:699)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:622)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
	at io.dropwizard.jersey.sessions.SessionFactoryProvider$Binder.configure(SessionFactoryProvider.java:56)
	at org.glassfish.hk2.utilities.binding.AbstractBinder.bind(AbstractBinder.java:187)
	at org.glassfish.hk2.utilities.ServiceLocatorUtilities.bind(ServiceLocatorUtilities.java:187)
	at org.glassfish.jersey.inject.hk2.ImmediateHk2InjectionManager.register(ImmediateHk2InjectionManager.java:88)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at org.glassfish.jersey.model.internal.CommonConfig.configureExternalObjects(CommonConfig.java:664)
	at org.glassfish.jersey.model.internal.CommonConfig.configureMetaProviders(CommonConfig.java:633)
	at org.glassfish.jersey.server.ResourceConfig.configureMetaProviders(ResourceConfig.java:823)
	at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:351)
	at org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$1(ApplicationHandler.java:316)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:316)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:298)
	at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:256)
	at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:315)
	at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:282)
	at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:335)
	at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:178)
	at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:370)
	at javax.servlet.GenericServlet.init(GenericServlet.java:244)

Seems there is a bit of a conundrum, no? Any suggestions?
-Ben

there is already commit in master that upgrades Jersey to 2.27, but wondering when it's going to be shipped

Yes Jersey 2.27 will be included in the next release, but there is no ETA, as we need to wait for Jersey 2.28 or 2.27.1 to fix #2418

Ok, that's good to know. Thx.

authors: bennyflint nickbabcock serhiypal

repo: dropwizard/dropwizard


text:
issue about tr.GraphTransform

Hi, I have an question about da.load_dataset.
I prepared a new 'lmdb' from pdb, and add the label based on the tutorial. However, after reading from da.load_dataset, the 'y' does not show a single value, instead it would show in a form of Dataframe. please see below. Could you advice me how to deal with this?
train_dataset = da.load_dataset(PATH_TO_LMDB_OUTPUT, 'lmdb',  transform=tr.GraphTransform(atom_key='atoms', label_key='label'))
for i in train_dataset[0]:
    print(i)

('y',      label
0  5.72556)
Thus, when doing for the following command, the batch.y does not show the format of a tensor.
batch in train_loader:
    print(batch.y)

The way I generated the lmdb is :
def add_label(item):
    # Remove the file ending ".pdb" from the ID
    name = item['id'][:-4]
    # Get label data
    label_file = os.path.join(PATH_TO_LABELS_DIR, name+'.csv')
    # Add label data in form of a data frame
    item['label'] = pd.read_csv(label_file)
    return item

## Load dataset from directory of PDB files
dataset = da.load_dataset(PATH_TO_INPUT_DIR, 'pdb', transform=add_label)
# Create LMDB dataset from PDB dataset
da.make_lmdb_dataset(dataset, PATH_TO_LMDB_OUTPUT)

If possible, could you give an example of the content in the csv file for add_label? I'd just like to make sure the format is right.
Thank you in advance to looking into this question.

never mind, I've figured it out.


text:
xsdgen: issues with wildcards & embedded fields

The dash branch contains the DASH-MPD XSD and sample data in the gentest directory.
Currently the tests fail due to an invalid marshalling of the SegmentList element. It is supposed to generate something like this:
	<SegmentList timescale="90000" duration="5400000">
	  <RepresentationIndex sourceURL="representation-index.sidx">
	  </RepresentationIndex>
	  <SegmentURL media="segment-1.ts">
	  </SegmentURL>
	  ...
	</SegmentList>

Instead we get this:
	<SegmentList timescale="90000" xmlns="urn:mpeg:dash:schema:mpd:2011">
	  <Items>
	  </Items>
	  <Items>
	  </Items>
	  ...
	</SegmentList>

This is due to the <SegmentURL> items being unmarshalled into the wrong place. Here's the the relevant type declarations:
type SegmentListType struct {
	MultipleSegmentBaseType
	Actuate    ActuateType      `xml:"actuate,attr,omitempty"`
	SegmentURL []SegmentURLType `xml:"urn:mpeg:dash:schema:mpd:2011 SegmentURL,omitempty"`
}

Within MultipleSegmentBaseType is the following:
Items                    []string `xml:",any"`

This feels like a possible bug, or at least, unexpected behavior in the encoding/xml package; it is dropping the SegmentURL items into this wildcard field, even though further down SegmentListType there is a more specific field matching those items. This is probably due to the fact that the wildcard field is in an embedded type.

Looking into this further, I believe I've found the issue. With the commit ed9a5b5, I used something like the following strategy to override unmarshalling for individual fields in a struct:
type T RealType
var overlay struct {
	*T
	IndexRangeExact *bool `xml:"indexRangeExact,attr,omitempty"`
}
overlay.T = (*T)(t)
overlay.IndexRangeExact = (*bool)(&overlay.T.IndexRangeExact)
return d.DecodeElement(&overlay, &start)

Notably, the local type T is used to "silence" the MarshalXML method of RealType. This lets us use all the convenient reflection in the encoding/xml package while only having to override the fields we want. Now look at this example program:
https://play.golang.org/p/0el2d1S145
In short, methods of the embedded structs are not silenced by the type T trick. As a result, in the example above, if RealType had an embedded field that had its own UnmarshalXML implementation, that method would be called instead of falling through to encoding/xml's built-in unmarshalling logic.
So, the workaround here would be to forgo struct embedding, and expand the base type that a complexType extends. The internal/dependency package could be useful here for "dereferencing" types in the correct order.
This will make the generated files larger for complex schema, and make the type hierarchy less obvious. However, I don't see a better alternative.

Fixed with b12a23a

repo: droyo/go-xml


text:
Options don't work when defined in TS file

Adding options in the .ts file doesn't seem to work. I set them in the component's TypeScript file, then use them in the HTML:
ttOptions = { 'hide-delay': 300 }

And in the HTML:
<span [options] = "ttOptions">

And I still have to set them manually in the HTML because options aren't binding somehow (no errors get thrown).

In the following option object 'placement' and 'theme' work, the other don't.
myOptions = {
'show-delay': 4000,
'hide-delay': 1000,
'placement': 'left',
'theme': 'light',
'tooltip-class': 'tooltip'
};

@MusicDev33 @cosgab  fixed in version 2.2.9

authors: MusicDev33 cosgab drozhzhin-n-e


text:
"drush php" doesn't work as expected

Describe the bug
Drush php shell is exited after a command is run.
To Reproduce
Steps to reproduce the behavior:

ddev ssh
drush php
echo 'hello';

Expected behavior
Drush php shell should continue to run.
Version and configuration information (please complete the following information):
php: 7.1
ddev config:
cli   	        v1.1.1
web   	drud/ddev-webserver:v1.1.0
db    	drud/ddev-dbserver:v1.1.0
dba   	drud/phpmyadmin:v1.1.0
router	drud/ddev-router:v1.1.0
commit	v1.1.1

Additional context
The described bug might appear in other php versions.
Solution
Remove pcntl_fork,  pcntl_waitpid, pcntl_wexitstatus, pcntl_signal_dispatch from disabled_function in /etc/php/7.1/fpm/php.ini

Sounds like a fine solution to me.

Are you able to make it work fine with custom php config? (Just changing disabled_functions)? (https://ddev.readthedocs.io/en/latest/users/extend/customization-extendibility/#providing-custom-php-configuration-phpini)

Yes, that works.

Could you provide your config please? Thanks!

Path: .ddev/php/my-php.ini
[PHP]
disable_functions =

Seems great. Any downside to this that you know of?

No.

authors: rfay tobiase

repo: drud/ddev


text:
Fix transient error in BrokerServerViewTest

The patch aims to fix the second failure in #1512
The reason it fails is because if ServerInventoryView starts before BrokerServerView is constructed, there is a chance that INITIALIZED event is triggered in the ContainerCacheListener before BrokerServerView registers its segmentCallbacks, which results in our latch never getting counted down.

LGTM

authors: guobingkun himanshug

repo: druid-io/druid


text:
Thermal Images

Requirements:

Documentation

Add descriptive documentation on thermal imagery and different types of sensors.
Use cases of thermal imagery
Types of thermal data
Temperature as a quantity adds value to what global scenarios

Code

Reading and displaying thermal image.
Enhancing thermal images.
Use in temperature detection via computer vision
3 channel thermal to single channel thermal conversion

Follow similar structure as mentioned in other issues. Also add your contributions to the Thermal Imagery folder

Assign me the coding part of this thermal imaging problem.

Sure @tauquirahmed, you can cover any 2 points from the code section given above.
Please try to provide valid documentation in .md format for your code in same sub-folder and also remember to follow the folder structure given above. All the best! ⭐

I will read a thermal image and enhance the thermal image so that it can be processed for temperature detection.

I can do the rest and do the documentation part.
Assign me.

Also can we do it in a .ipynb file so that the documentation and code can be done in a single file.
Also I will provide the overall documentation in the markdown file.

I will read a thermal image and enhance the thermal image so that it can be processed for temperature detection.

Sure, go ahead.

I can do the rest and do the documentation part. Assign me.

Okay @Ripan-Roy, go ahead. I am assigning this issue to the two of you. All the best!

Sure

If possible can I be assigned this issue?
I can work on the temperature detection part.

If possible can I be assigned this issue? I can work on the temperature detection part.

Yes, @prajwal-144 you can. Could you possibly give a super simple and rudimentary explanation along with implementation of such a process. Reason being that such a contribution would be more inviting to novice students looking forward to learn more about image processing and thermal imagery.
Like could you try explaining the code itself to some extent in very simple terms? That could act as a guiding step before people read what @tauquirahmed and @Ripan-Roy have contributed earlier today. Thank you.

authors: Ripan-Roy diffrxction prajwal-144 tauquirahmed

repo: dsc-tiu/open-source-ml-ai


text:
.\Build.ps1 -ResolveDependency, integration tests fail

Executing script C:\Git\commontasks\commontasks\Tests\Integration\33 JeaEndpoints.Tests.ps1

  Describing JeaEndpoints DSC Resource compiles
PSDesiredStateConfiguration\Configuration : The term 'ConvertTo-Expression' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At C:\Git\commontasks\BuildOutput\Modules\commontasks\DSCResources\JeaEndpoints\JeaEndpoints.schema.psm1:1 char:1
+ configuration JeaEndpoints {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (ConvertTo-Expression:String) [Configuration], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException,Configuration

    [-] JeaEndpoints Compiles 2.83s
      Expected no exception to be thrown, but an exception "Compilation errors occurred while processing configuration 'Config_JeaEndpoints'. Please review the errors reported in error stream and modify your configuration code appropriately." was thrown from C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:3917 char:5
          +     throw $ErrorRecord
          +     ~~~~~~~~~~~~~~~~~~.
      19:         { Config_JeaEndpoints -ConfigurationData $configurationData -OutputPath $env:BHBuildOutput -ErrorAction Stop } | Should -Not -Throw
      at <ScriptBlock>, C:\Git\commontasks\commontasks\Tests\Integration\33 JeaEndpoints.Tests.ps1: line 19
    [-] JeaEndpoints should have created a mof file 25ms
      Expected the value to have type [System.IO.FileInfo] or any of its subtypes, but got $null with type $null.
      24:         $mofFile | Should -BeOfType System.IO.FileInfo
      at <ScriptBlock>, C:\Git\commontasks\commontasks\Tests\Integration\33 JeaEndpoints.Tests.ps1: line 24

Executing script C:\Git\commontasks\commontasks\Tests\Integration\34 JeaRole.Tests.ps1

  Describing JeaRoles DSC Resource compiles
Get-Content : Cannot find path 'D:\Untitled3 - Copy.ps1' because it does not exist.
At C:\Git\commontasks\BuildOutput\Modules\commontasks\DSCResources\JeaRoles\JeaRoles.schema.psm1:29 char:48
+ ... block]::Create((Get-Content -Path $functionDefinition.FilePath -Raw))
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (D:\Untitled3 - Copy.ps1:String) [Get-Content], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

PSDesiredStateConfiguration\Configuration : Exception calling "Create" with "1" argument(s): "Object reference not set to an instance of an object."
At C:\Git\commontasks\BuildOutput\Modules\commontasks\DSCResources\JeaRoles\JeaRoles.schema.psm1:1 char:1
+ configuration JeaRoles {
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Configuration], MethodInvocationException
    + FullyQualifiedErrorId : NullReferenceException,Configuration

    [-] JeaRoles Compiles 2.79s
      Expected no exception to be thrown, but an exception "Compilation errors occurred while processing configuration 'Config_JeaRoles'. Please review the errors reported in error stream and modify your configuration code appropriately." was thrown from C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:3917 char:5
          +     throw $ErrorRecord
          +     ~~~~~~~~~~~~~~~~~~.

 Loading default CIM keywords Processing
 Getting module list
    Processing
 Creating resource list
    Processing

Executing script C:\Git\commontasks\commontasks\Tests\Integration\99 Final.Tests.ps1

  Describing Final tests
Number of composite resources: 34
Number of compiled MOF files: 31
    [-] Every composite resource has compiled 3.18s
      Expected 31, but got 34.
      10:         $compositeResouces.Count | Should -Be $mofFiles.Count
      at <ScriptBlock>, C:\Git\commontasks\commontasks\Tests\Integration\99 Final.Tests.ps1: line 10
Tests completed in 199.93s
Tests Passed: 64, Failed: 5, Skipped: 0, Pending: 0, Inconclusive: 0
ERROR: Assertion failed.

 Loading default CIM keywords Processing
 Getting module list
    Processing
 Creating resource list
    Processing

      19:         { Config_JeaRoles -ConfigurationData $configurationData -OutputPath $env:BHBuildOutput -ErrorAction Stop } | Should -Not -Throw
      at <ScriptBlock>, C:\Git\commontasks\commontasks\Tests\Integration\34 JeaRole.Tests.ps1: line 19
    [-] JeaRoles should have created a mof file 15ms
      Expected the value to have type [System.IO.FileInfo] or any of its subtypes, but got $null with type $null.
      24:         $mofFile | Should -BeOfType System.IO.FileInfo
      at <ScriptBlock>, C:\Git\commontasks\commontasks\Tests\Integration\34 JeaRole.Tests.ps1: line 24

    + CategoryInfo          : InvalidOperation: (:) [Assert-Build], Exception
    + FullyQualifiedErrorId : Assert-Build

A bit late, but this should be all fixed by now.

A bit late, but this should be all fixed by now.

authors: raandree sundmoon

repo: dsccommunity/CommonTasks


text:
xRegistryResource: ConvertTo-DWord uses wrong type

Problem description
When providing a registry DWORD value above 2147483647 the function exits with an error message:
Value was either too large or too small for an Int32.
However the registry DWORD is of type UInt32 which accept no negative numbers but positivie numbers up to 4294967295.
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/262627d8-3418-4627-9218-4ffe110850b2
Verbose logs
ConvertTo-DWord -RegistryKeyValue 4294967295
Exception calling "Parse" with "1" argument(s): "Value was either too large or too small for an Int32."
At line:43 char:13
+             $dwordRegistryKeyValue = [System.Int32]::Parse($singleReg ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : OverflowException

DSC configuration
- Key: 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\[rest of the path contains sensitive information]'
      ValueName: Enabled
      Ensure: Present
      ValueData: 4294967295
      ValueType: DWord
      Force: true

Suggested solution
Change the type Int32 to UInt32 in ConvertTo-DWord. Probably also check if other types are correctly implemented.
Operating system the target node is running
OsName               : Microsoft Windows 10 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-Bit
WindowsVersion       : 1909
WindowsBuildLabEx    : 18362.1.amd64fre.19h1_release.190318-1202
OsLanguage           : en-US
OsMuiLanguages       : {en-US, de-DE}

PowerShell version and build the target node is running
Name                      Value
----                      -----
PSVersion                 5.1.18362.2212
PSEdition                 Desktop
PSCompatibleVersions      {1.0, 2.0, 3.0, 4.0...}
BuildVersion              10.0.18362.2212
CLRVersion                4.0.30319.42000
WSManStackVersion         3.0
PSRemotingProtocolVersion 2.3
SerializationVersion      1.1.0.1

xPSDesiredStateConfiguration version
Name                         Version Path
----                         ------- ----
xPSDesiredStateConfiguration 9.1.0   [Path containing sensitive information]\xPSDesiredStateConfiguration\9.1.0\xPSDesiredStateConfiguration.psd1

I'm also encountering this issue when trying to set a DWORD value to 4294967295 (0xffffffff).

I'm hitting the same issue, which is impacting my ability to block DLL side loading attacks.
@DanielLettau did a nice write up that makes this clear.  Danke, Daniel
I'll see about getting a PR setup with the fix.

authors: DanielLettau PwshPally da-access-group


text:
input history counter issue

I think there is an issue with history, in particular with the counter:

Unless there are 2+ items saved, history is not displayed
Once there are 2+ items, history starts directly in the second most recent item (moving up in history). The workaround to get the most recent item is to move up and then down.

For the case it is important, I have live evaluation enabled in my system (and history items are saved by pressing Enter, as directed in settings).

I am aware of several issues with the input history. It's next on my list of improvements, so please be a little bit patient.

Sure, thank you

Issues should be fixed in v0.8.

authors: dschopf kupiqu

repo: dschopf/plasma-applet-qalculate


text:
Exception: Response code not 200. Response Status is 429

I got this error when i try to request something to Bard.
I tried with new token but nothing..

The HTTP 429 Too Many Requests response status code indicates the user has sent too many requests in a given amount of time ("rate limiting").
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429

Response status 429 is too much frequent after  bard's new update. It seems google extensively limited the request count.

is there a fix to this?

Just wait about 10-20minutes.
If you are using some service like ngrok, just reset all and it s ok
Il Sab 5 Ago 2023, 14:12 Basim Aslam @.***> ha scritto:

is there a fix to this?
—
Reply to this email directly, view it on GitHub
https://github.com/dsdanielpark/Bard-API/issues/117#issuecomment-1666488660,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOGLOB6X6PS5AAC5OWDH43TXTY2DLANCNFSM6AAAAAA2NB6WDE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi I recently started facing the same issue, I have a web app on pythonanywhere, and im able to run the chatbot through my own vs code environment, but when I try in my flask application, I get Exception: Response code not 200. Response Status is 429

Just try to restart all your server/app
Il Dom 27 Ago 2023, 13:12 Nipun Bhatia @.***> ha
scritto:

Hi I recently started facing the same issue, I have a web app on
pythonanywhere, and im able to run the chatbot through my own vs code
environment, but when I try in my flask application, I get Exception:
Response code not 200. Response Status is 429
—
Reply to this email directly, view it on GitHub
https://github.com/dsdanielpark/Bard-API/issues/117#issuecomment-1694638834,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOGLOB3HAIJM2SWFUDTQUODXXMTRJANCNFSM6AAAAAA2NB6WDE
.
You are receiving this because you authored the thread.Message ID:
@.***>

I have restarted it several times, still leading to this error, even refreshed cookies.
It just seems to happen on the deployed web app, it seems to work fine on my own Jupyter notebook.
Any fix for that?

Hi, any fixes for this issue, still persists

Probably no fixes is possible. Google limit the use and there are no possibilities.

I only send 5 requests and got the same error :-1:

I received same error with different account

any update?

I resolved the issue in my code. Please avoid to use Bard() obj inside loop. I made this mistake. After I define Bard() as global variables(outside loop), my code is fixed.

After I changed the proxy ip, I can use it normally again

from bardapi import Bard
import os
os.environ["_BARD_API_KEY"] = "g.a000gAhy-nPoBCcysK9fKl1k7WDo73jw6XjgjrmVYJTh0HqGWuoS5rdy8ZW9hNCJaQIQH_u11QACgYKAasSAQASFQHGX2MiSTmhMyywDGTmINofYYpNoxoVAUF8yKofFQj67HivGBVSGe9UQ7_a0076."
message = input("ENTER : ")
print(Bard().get_answer(str(message)))
using this code and getting the same error of respond status code

Bard was decommisioned.
Generate your api key here: https://makersuite.google.com/app/apikey?hl=en
Instead you must use Gemini api key by the following sample instead:
genai.configure(api_key="YOUR API KEY")
generation_config = {"temperature": 0.9, "top_p": 1, "top_k": 1, "max_output_tokens": 2048}
model = genai.GenerativeModel("gemini-pro", generation_config = generation_config)
response = model.generate_content("tell me some story")
print(response.text)

repo: dsdanielpark/Bard-API


text:
Too many jobberrunner processes

# ps x | grep jobber
  257 ?        Ssl    0:00 /usr/libexec/jobbermaster
  266 ?        S      0:00 su -l -s /bin/sh -c /usr/libexec/jobberrunner -c "/root/.jobber" root
  269 ?        S      0:00 su -l -s /bin/sh -c /usr/libexec/jobberrunner -c "/var/lib/lxd/.jobber" lxd
  276 ?        S      0:00 su -l -s /bin/sh -c /usr/libexec/jobberrunner -c "/var/cache/pollinate/.jobber" pollinate
  279 ?        S      0:00 su -l -s /bin/sh -c /usr/libexec/jobberrunner -c "/home/ubuntu/.jobber" ubuntu
  286 ?        S      0:00 su -l -s /bin/sh -c /usr/libexec/jobberrunner -c "/var/cache/man/.jobber" man
  290 ?        S      0:00 su -l -s /bin/sh -c /usr/libexec/jobberrunner -c "/run/systemd/netif/.jobber" systemd-network
  369 ?        Ss     0:00 -su -c /usr/libexec/jobberrunner -c "/root/.jobber"
  385 ?        Sl     0:00 /usr/libexec/jobberrunner -c /root/.jobber

Some of those are not human and some of those don't contain .jobber file. Why run so many?

Just because a user doesn't have a jobfile, it doesn't mean that it won't in the future.  So Jobber needs to run a jobberrunner process for each user.  And, for privilege-separation reasons, it can't just wait for a jobfile to appear to spawn a jobberrunner process.

Why not require explicit jobber reload after .jobfile is created?

The jobberrunner processes are spawned by a jobbermaster process, which runs as root.  Suppose that (non-root) user A initially does not have a jobfile and so does not have a jobberrunner process.  Now suppose that A makes a jobfile: how should A tell jobbermaster to spawn a jobberrunner process?
Allowing a low-privilege user (like A) to control a high-privilege user (like root) complicates the architecture and adds a possibility of a vulnerability.  In the current architecture, the low-privilege and high-privilege processes are almost completely separate in order to reduce the chance of vulnerabilities.  Unfortunately, this requires spawning a jobberrunner process for every user who might want to run jobs.  I figured that this is a reasonable price to make the architecture so simple.

Then there should be a better separation between real users and those man, polinate and lxd processes. https://askubuntu.com/questions/257421/list-all-human-users

Yeah.... I thought about using UIDs to discriminate, but there are real cases where you'd want Jobber to run for a non-human user.
As of 1.3, you can make a file at /etc/jobber.conf containing something like this:
users-exclude:
    - name: someuser
    - name: anotheruser

This will prevent Jobber from running for those users.  You can't currently do this by UID, but I can make that enhancement.

Closing due to inactivity.  Feel free to reopen.

I can not reopen, but it still doesn't feel right wasting resources for users that will never create this job file. Being able to opt-in and ping joberrunner rather than opt-out seems more logical. It could be made with systemd https://unix.stackexchange.com/questions/391613/monitor-file-with-systemd-service

authors: dshearer techtonik

repo: dshearer/jobber


text:
Performance Optimization

@cdearborn @gaelrehault @jproque-dell

Could you please rebase/resolve current conflicts ?

All conflicts resolved

Please note that I have resolved the first-boot conflict between DPDK and Performance Optimization.
Now Performance Optimization will also work when DPDK is enable.

repo: dsp-jetpack/JetPack


text:
Add other set rpc operations

Implement delete and exist rpc method.
This close #78

@jovany-wang

@jovany-wang cc.

repo: dst-project/dst


text:
Bundle minification for release

Great work on the new template: DotNetify.React.Template - just wondering what the best way is to go about building something on top of dotnetify, and then triggering all the bundle minification etc. that we usually do on our React projects. I can go and do it myself the same way I have for other React/Node projects using webpack, but was just wondering if you already have a strategy or sample that does this on Release and Deploy to save time. If not, no worries, I'm happy to try it out myself and contribute the result back into the Template.
I can see the commented out line in the webpack.config.js which will uglify, but it's more about keeping the code as it is for development, and having it know about minification as a deployment/release step
Cheers and GREAT framework - I'm loving the SignalR integrations!

The template still needs more work in that regard.  I don't have a definite strategy yet, other than the idea to make it simple like create-react-app / angular-cli.   If you have the experience to contribute, I'd be happy if you would!

Thanks - no probem. I'll take a look when I get close to a release soon

Not sure if you're still working on this; so I'm closing this.  Feel free to reopen.

I tend to use the later version no with create-react-app scripts so minifying comes out the box then when setting it to production, so I don't really have a need for this anymore. Thanks for checking though!

authors: RobertTheGrey dsuryd


text:
Does not compile if self is Arc

Please add support for using a self type of Arc.
#![feature(async_await)]
use std::sync::Arc;
use async_trait::async_trait;

#[async_trait]
trait Trait {
    async fn example(self : Arc<Self>);
}

struct A;

#[async_trait]
impl Trait for A where  {
    async fn example(self : Arc<Self>) {
    }
}

fn main() {
    let a = Arc::new(A);
    async move {
        a.example().await
    };
}

error: unexpected `self` parameter in function
  --> src\main.rs:12:1
   |
12 | #[async_trait]
   | ^^^^^^^^^^^^^^ not valid as function parameter
   |
   = note: `self` is only valid as the first parameter of an associated function

Thanks! Fixed in 0.1.4.

authors: dtolnay philip-alldredge

repo: dtolnay/async-trait


text:
default impl for methods with impl trait arguments?

Given the code:
use async_trait::async_trait; // 0.1.36
use tokio; // 0.2.21

#[async_trait]
trait MyTrait {
    async fn blah(&self, values: impl Iterator<Item = i32> + Send + 'async_trait) {
        println!("this is the default");
    }
}

struct S;

#[async_trait]
impl MyTrait for S {
    async fn blah(&self, values: impl Iterator<Item = i32> + Send + 'async_trait) {
        for value in values {
            println!("{}", value);
        }
    }
}

#[tokio::main]
async fn main() {
    let s = S;
    s.blah([1, 2, 3].iter().cloned()).await;
}

this fails to compile with the error:
error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position
 --> src/main.rs:4:1
  |
4 | #[async_trait]
  | ^^^^^^^^^^^^^^ explicit generic argument not allowed
  |
  = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

If I remove the default body, it works.
Is this intended to be supported? I can work around it by boxing and using dyn, i.e. values:  Box<dyn Iterator<Item=i32> + Send + 'async_trait> but that's not ideal.
Thanks for this crate!

Looks like the expanded code is: (cleaned up a little)
trait MyTrait {
    #[must_use]
    fn blah<'life0, 'async_trait>(&'life0 self, values: impl Iterator<Item = i32> + Send + 'async_trait)
        -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
        where 'life0: 'async_trait,
              Self: Sync + 'async_trait
    {
        async fn __blah<'async_trait, AsyncTrait: ?Sized + MyTrait + Sync>(
            _self: &AsyncTrait,
            values: impl Iterator<Item = i32> + Send + 'async_trait,
        ) {
            println!( ... );
        }
        Box::pin(__blah::<Self>(self, values))
    }
}

and rustc does not like the explicit generic argument in __blah::<Self>(self, values). Simply removing that ::<Self> turbofish works for this case at least.

Same issue.

authors: attliaLin wfraser


text:
How to construct syntax::TokenStream from quote::Tokens?

It seems that I can construct proc_macro::TokenStream from quote::Tokens by just calling parse, but I cannot figure out how to construct a syntax::TokenStream from quote::Tokens.
What is the typical way to do it?

I haven't tried this yet but this might work based on digging through libsyntax:

quote!(...) gives you back a quote::Tokens
quote::Tokens implements Display, call to_string to get a String
parse the String into a Vec<tokenstream::TokenTree> using parse_tts_from_source_str (in libsyntax/parse/mod.rs)
turn the Vec<TokenTree> into tokenstream::Delimited by using token::DelimToken::NoDelim as the delimiter
turn the Delimited into a syntax::TokenTree::Delimited
use the impl From<TokenTree> for TokenStream

authors: dtolnay gnzlbg

repo: dtolnay/quote


text:
Clarify disk spilling for memory connections

https://duckdb.org/docs/guides/performance/how_to_tune_workloads
says
If DuckDB is running in in-memory mode, it cannot use disk to offload data if it does not fit into main memory. To enable offloading in the absence of a persistent database file, use the [SET temp_directory statement](https://duckdb.org/docs/configuration/pragmas#temp-directory-for-spilling-data-to-disk):

But according to
https://duckdb.org/docs/configuration/overview.html
the temp_directory setting is set to a non-null ".tmp" value by default.
Could you clarify whether that means disk spilling is activated by default after all, and if not whether relative paths like ".tmp" are ignored in general?

Related: https://github.com/duckdb/duckdb-web/issues/3058

@szarnyasg What does the enhancement label mean here?

I was looking for a "clarification" label but didn't find it, so I settled on enhancement. This is more of a bug in the documentation though, so I can bump its priority and take a look next week.

Related issue that could be addressed in the documentation at the same time, but with opposite problem: https://github.com/duckdb/duckdb-web/issues/3058  -- docs say it defaults to 0 but probably zero is interpreted taken as "unlimited".

@szarnyasg if you confirm how temp_dirrctory and max_temp_directory_size behave I'd be happy to make the doc PRs

Hi @soerenwolfers in these configuration options, the value 0 means unlimited. I created a limits page where this is explicitly stated. Further PRs are welcome – thanks in advance!

@szarnyasg thanks for the clarification. and the default value '.tmp' does mean the temporary disk spilling directory is used even for in-memory connections, contrary to what the docs say?

Right, we changed this recently (IIRC in 1.0). I added some clarifications via #3520. If there are more details to be clarified, please let me know or submit a PR. Thanks!

Opened #3522 #3523 #3524 #3525

Slightly off-topic, but the limits page says
| Memory allocation | 128 GB | - |

Not to brag, but I'm writing this from a machine with 1TB memory. Am I misunderstanding that limit?

Opened https://github.com/duckdb/duckdb-web/pull/3522 https://github.com/duckdb/duckdb-web/pull/3523 https://github.com/duckdb/duckdb-web/pull/3524 https://github.com/duckdb/duckdb-web/pull/3525 -- sorry for the many PRs; did this in lazy mode using the web interface

Thanks, will review them now.

Am I misunderstanding that limit?

Fair point, this should be clearer. This is the limit for a single vector size:
https://github.com/duckdb/duckdb/blob/1e883cd4d87d812166d035e180145a85c608ad6f/src/include/duckdb/common/constants.hpp#L60-L61
This is not something that 99.9% of users should be concerned with, but it's good to have in the docs. I'll clarify it a bit.

authors: soerenwolfers szarnyasg

repo: duckdb/duckdb-web


text:
Update Settings: Update sub-screens

Task/Issue URL: https://app.asana.com/0/1207908166761516/1208785622935234/f
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#5334  👈 (View in Graphite)
#5330
#5318
#5300
develop

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

repo: duckduckgo/Android


text:
QuackTopAppBar 에 trailing text 배치 유동적으로 변경

현재는 trailing content 가 있을 때도 trailing text 를 empty 하게 배치해서 1 공간을 차지함
-> Row 의 SpaceBetween 배치 정책에 영향을 미침

Fixed

repo: duckie-team/quack-quack-android


text:
Will not find errors when reconfiguring integration to exclude files and/or folders

I am running HA Core 2023.2.1, VENV on Python 3.10.  Integration has been running well for quite some time, thank you!  However, I have some KeyMaster yaml and services that I would like to exclude.  I tried “Configuring” the integration again with the file/folder exceptions but after saving, Watchman no longer identifies known errors that were previously listed and not part of the exception list.  This occurs even after restarting and reloading the integration.
note: I have not removed and attempted to reinstall the integration.

Maybe you can post the file/folder exception you set up. Otherwise it is going to be very difficult for anyone to help you. ;-)

I've attempted to exclude files by entering:
*/customize.yaml, */groups.yaml
For folders, I've attempted to exclude by entering:
/config/custom_components/*, /config/backup/*

According to the report, Watchman found 0 files to parse and 0 files were ignored. My bet is that path to the config directory is not correct. Feel free to reopen this issue if additional details come to light.

authors: curt7000 dummylabs filmgarage

repo: dummylabs/thewatchman


text:
Update measure_categories rules

Fixes #27
We want to add a rule to make sure measure categories can only be
created for measures and categories that are compatible with each other
through the category's taxonomy's measuretype, and the measure's
measuretype matching up.
Permissions by role

public: none
registered, no role: none
analyst: R
manager: CRD
admin: CRD

Rules

only for measures where category's taxonomy is enabled for measuretype (in measuretype_taxonomies table, category.taxonomy.measuretype = measure.measuretype)

Is this what you meant @tmfrnz ?

Is this what you meant @tmfrnz ?

looks about right!

authors: parndt tmfrnz

repo: dumparkltd/marine-defrag-server


text:
Travis builds fail due to go-git

I saw that the Travis builds failed on this PR: https://github.com/dunglas/calavera/pull/19.
I looked at the log and saw:
extractor/git.go:41:15: undefined: git.NewFilesystemRepository

Currently go-git comes from
gogit "gopkg.in/src-d/go-git.v4"

I can see that NewFilesystemRepository was removed from src-d/go-git since v4.0.0-rc8 (https://github.com/src-d/go-git/commit/24c1878260351d9f9f6c575cbeeb5878104d6a0e).
Example with NewFilesystemRepository was here:
https://github.com/src-d/go-git/blob/v4.0.0-rc7/examples/open/main.go
New example is here:
https://github.com/src-d/go-git/blob/v4.0.0-rc9/_examples/open/main.go
I hope it could help to fix the builds (until a next rc?).

I think we can upgrade to the last version. Do you want to open a PR?

I tried to fix the build by updating go-git (running govendor fetch gopkg.in/src-d/go-git.v4) and changing NewFilesystemRepository method call to PlainOpen.
When running calavera input_directory output_directory, the result is:
panic: value method extractor.Git.Extract called using nil *Git pointer

goroutine 1 [running]:
panic(0x78b000, 0xc4202540c0)
	/usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/dunglas/calavera/extractor.(*Git).Extract(0x0, 0xc4200da240, 0xc4201dc816, 0x9, 0x0, 0x0)
	<autogenerated>:1 +0xf3
main.convert(0xc4201dc816, 0x9, 0x7ffd3f7ea43e, 0x13, 0xc4201cbe20, 0x2, 0x2, 0x0)
	/home/user/workspace/go/src/github.com/dunglas/calavera/app.go:109 +0x155
main.main()
	/home/user/workspace/go/src/github.com/dunglas/calavera/app.go:53 +0x404

I have not been able to find out what is going on.

authors: aloupfor dunglas

repo: dunglas/calavera


text:
FrankenPHP + Postgres: no connection to the server

Hello,
I experiencing some stuff using FrankenPHP but I'm facing an issue that causes Symfony throw a critical error.
Stack:

API Platform base
Postgresql (tried with 15 and 14)
FrankenPHP
Swarm cluster (docker container based on alpine)

{
    "channel": "request",
    "context": {
        "exception": {
            "class": "Doctrine\\DBAL\\Exception\\DriverException",
            "code": 7,
            "file": "/app/vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:87",
            "message": "An exception occurred while executing a query: SQLSTATE[HY000]: General error: 7 no connection to the server",
            "previous": {
                "class": "Doctrine\\DBAL\\Driver\\PDO\\Exception",
                "code": 7,
                "file": "/app/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28",
                "message": "SQLSTATE[HY000]: General error: 7 no connection to the server",
                "previous": {
                    "class": "PDOException",
                    "code": 0,
                    "file": "/app/vendor/doctrine/dbal/src/Driver/PDO/Statement.php:130",
                    "message": "SQLSTATE[HY000]: General error: 7 no connection to the server"
                }
            }
        }
    },
    "datetime": "2023-12-24T12:46:50.768750+00:00",
    "extra": {},
    "level": 500,
    "level_name": "CRITICAL",
    "message": "Uncaught PHP Exception Doctrine\\DBAL\\Exception\\DriverException: \"An exception occurred while executing a query: SQLSTATE[HY000]: General error: 7 no connection to the server\" at /app/vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php line 87"
}

The error is thrown after about 10-15 minutes running.
Using directly caddy without FrankenPHP works well but I can't explain it because if I go on the container and type bin/console do:q:sql "SELECT * FROM table" it gets the results from db without any issues.
Any ideas about that ?

Hi,
This is likely a duplicate of https://github.com/dunglas/frankenphp/issues/290.
This is being fixed in Symfony: https://github.com/symfony/symfony/issues/51661
See https://github.com/dunglas/frankenphp/pull/243 for workarounds.

I probably missed something (the "workaround") but it still doesn't work with the APP_RUNTIME_MODE (from https://github.com/symfony/symfony/pull/52079) 🤷♂

This mode is a first step but isn't  enough. You must backport the RoadRunner patch. Another alternative seems to be to install the ProxyManager bridge.

Got the same issue today after running FranketPHP 1.1.0 for a few days + Symfony 7.0.3, however I'm not using "worker mode"

Got the same issue today after running FranketPHP 1.1.0 + Symfony 7.0.3 for a few days, however I'm not using "worker mode". The error disappeared only after restarting FranketPHP

Using FrankenPHP 1.1.0 and Symfony 7.0.3 I get
Uncaught PHP Exception Doctrine\DBAL\Exception\ConnectionLost: "An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away" at ExceptionConverter.php line 104 {"exception":"[object] (Doctrine\\DBAL\\Exception\\ConnectionLost(code: 2006): An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at /app/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:104)\n[previous exception] [object] (Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 2006): SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at /app/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at /app/vendor/doctrine/dbal/src/Driver/PDO/Connection.php:71)"}

I get the error on my staging server where it is running in worker mode, This is the worker.Caddyfile
worker {
	file ./public/index.php
	env APP_RUNTIME Runtime\FrankenPhpSymfony\Runtime
}

And the production part of the Dockerfile
# Prod FrankenPHP image
FROM frankenphp_base AS frankenphp_prod

ENV APP_ENV=prod
ENV FRANKENPHP_CONFIG="import worker.Caddyfile"

RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

COPY --from=build_node ./app ./

COPY --link docker/php/conf.d/app.prod.ini $PHP_INI_DIR/conf.d/
COPY --link docker/php/worker.Caddyfile /etc/caddy/worker.Caddyfile

It is trying to connect to a MariaDB10.4 Database.

@DennisdeBest https://github.com/symfony/symfony/pull/53214

@DennisdeBest see symfony/symfony#53214

Thanks I'll keep an eye on that

Fixed by https://github.com/symfony/symfony/pull/53214.

authors: DennisdeBest darkweak dunglas lermontex

repo: dunglas/frankenphp