text:
ionic serve failed code: 139

Hi, i have issue with the command ionic serve, i run my app in a docker container, here the content of my /etc/os-release.
ID=alpine
VERSION_ID=3.4.4
PRETTY_NAME="Alpine Linux v3.4"
HOME_URL="http://alpinelinux.org"
BUG_REPORT_URL="http://bugs.alpinelinux.org"

The installation of nodejs and npm has been done without problems cordova and also ionic (globaly).
When i try to execute ionic serve i have this following error.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'ionic:serve', '--' ]
2 info using npm@3.10.3
3 info using node@v6.7.0
4 verbose run-script [ 'preionic:serve', 'ionic:serve', 'postionic:serve' ]
5 info lifecycle ionic-hello-world@~preionic:serve: ionic-hello-world@
6 silly lifecycle ionic-hello-world@~preionic:serve: no script for preionic:serve, continuing
7 info lifecycle ionic-hello-world@~ionic:serve: ionic-hello-world@
8 verbose lifecycle ionic-hello-world@~ionic:serve: unsafe-perm in lifecycle true
9 verbose lifecycle ionic-hello-world@~ionic:serve: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/app/data/node_modules/.bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
10 verbose lifecycle ionic-hello-world@~ionic:serve: CWD: /app/data
11 silly lifecycle ionic-hello-world@~ionic:serve: Args: [ '-c', 'ionic-app-scripts serve' ]
12 silly lifecycle ionic-hello-world@~ionic:serve: Returned: code: 139  signal: null
13 info lifecycle ionic-hello-world@~ionic:serve: Failed to exec ionic:serve script
14 verbose stack Error: ionic-hello-world@ ionic:serve: `ionic-app-scripts serve`
14 verbose stack Exit status 139
14 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:242:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:877:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid ionic-hello-world@
16 verbose cwd /app/data
17 error Linux 3.16.0-4-amd64
18 error argv "/usr/bin/node" "/usr/bin/npm" "run" "ionic:serve" "--"
19 error node v6.7.0
20 error npm  v3.10.3
21 error code ELIFECYCLE
22 error ionic-hello-world@ ionic:serve: `ionic-app-scripts serve`
22 error Exit status 139
23 error Failed at the ionic-hello-world@ ionic:serve script 'ionic-app-scripts serve'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the ionic-hello-world package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     ionic-app-scripts serve
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs ionic-hello-world
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls ionic-hello-world
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Same issue here only the code: at line number 12 is 1 instead of 139
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'ionic:serve',
1 verbose cli   '--' ]
2 info using npm@3.10.8
3 info using node@v6.9.1
4 verbose run-script [ 'preionic:serve', 'ionic:serve', 'postionic:serve' ]
5 info lifecycle ionic-hello-world@~preionic:serve: ionic-hello-world@
6 silly lifecycle ionic-hello-world@~preionic:serve: no script for preionic:serve, continuing
7 info lifecycle ionic-hello-world@~ionic:serve: ionic-hello-world@
8 verbose lifecycle ionic-hello-world@~ionic:serve: unsafe-perm in lifecycle true
9 verbose lifecycle ionic-hello-world@~ionic:serve: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\AppsProject\apps\ionic\omSai\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\mayur\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Ruby22-x64\bin;C:\Users\mayur\AppData\Local\Programs\Git\cmd;C:\Program Files (x86)\Android\android-sdk;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Users\mayur\AppData\Local\Microsoft\WindowsApps;C:\Users\mayur\AppData\Roaming\npm
10 verbose lifecycle ionic-hello-world@~ionic:serve: CWD: D:\AppsProject\apps\ionic\omSai
11 silly lifecycle ionic-hello-world@~ionic:serve: Args: [ '/d /s /c', 'ionic-app-scripts serve' ]
12 silly lifecycle ionic-hello-world@~ionic:serve: Returned: code: 1  signal: null
13 info lifecycle ionic-hello-world@~ionic:serve: Failed to exec ionic:serve script
14 verbose stack Error: ionic-hello-world@ ionic:serve: `ionic-app-scripts serve`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:877:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid ionic-hello-world@
16 verbose cwd D:\AppsProject\apps\ionic\omSai
17 error Windows_NT 10.0.14393
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "ionic:serve" "--"
19 error node v6.9.1
20 error npm  v3.10.8
21 error code ELIFECYCLE
22 error ionic-hello-world@ ionic:serve: `ionic-app-scripts serve`
22 error Exit status 1
23 error Failed at the ionic-hello-world@ ionic:serve script 'ionic-app-scripts serve'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the ionic-hello-world package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     ionic-app-scripts serve
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs ionic-hello-world
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls ionic-hello-world
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

For my part i build my app with the official node:7.2 docker image the ionic serve works perfectly when i rebuild node-sass with npm rebuild node-sass.
I haven't the time to look this in depth but i think it's a good point to start.

In my case port 8100 (ionic uses it as default) was blocked, you can either remove binding from 8100 before ionic serve or use this command to run ionic on another port ionic serve -p 8080 or any other port that is not bound with any program

+1 I have the same problem. im trying to run it in an Alpine docker image. Any solution so far ??

Any solutions? I am trying it on node:boron-alpine.

FWIW, I do want to support the Ionic CLI in Docker, but there are many challenges of doing so in the node/npm environment.

authors: AlexBDev HachimDev dwieeb mayurdhanokar8527 sebinbenjamin

repo: driftyco/ionic-cli


text:
Wrong script in package.json when you add new platforms

I have ionic 1.6.1 and I have these plugins in package.json:
"cordovaPlugins": [
"cordova-plugin-whitelist@1.0.0",
"com.ionic.keyboard",
{
"locator": "https://github.com/phonegap-build/PushPlugin.git",
"id": "com.phonegap.plugins.PushPlugin"
},
"cordova-plugin-console",
"nl.x-services.plugins.toast"
], "cordovaPlatforms": []
now if I run in sequence:
ionic platform add ios
ionic platform add android
ionic platform add browser
here my new package.json:
"cordovaPlugins": [
"cordova-plugin-whitelist@1.0.0",
"com.ionic.keyboard",
{
"locator": "https://github.com/phonegap-build/PushPlugin.git",
"id": "com.phonegap.plugins.PushPlugin"
},
"cordova-plugin-console",
"nl.x-services.plugins.toast"
],
"cordovaPlatforms": [
"ios",
{
"platform": "android",
"locator": "browser"
}
]
that is wrong. So that we I download a cleaned copy from my repo and I run "ionic state restore"
I have a mess.
Here the code working for me:
"cordovaPlugins": [
"cordova-plugin-whitelist@1.0.0",
"com.ionic.keyboard",
{
"locator": "https://github.com/phonegap-build/PushPlugin.git",
"id": "com.phonegap.plugins.PushPlugin"
},
"cordova-plugin-console",
"nl.x-services.plugins.toast"
], "cordovaPlatforms": []
now if I run in sequence:
ionic platform add ios
ionic platform add android
ionic platform add browser
here my new package.json:
"cordovaPlugins": [
"cordova-plugin-whitelist@1.0.0",
"com.ionic.keyboard",
{
"locator": "https://github.com/phonegap-build/PushPlugin.git",
"id": "com.phonegap.plugins.PushPlugin"
},
"cordova-plugin-console",
"nl.x-services.plugins.toast"
],
"cordovaPlatforms": [
"ios", "android", "browser"  ]

Greetings @fairsayan!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.

source: gharchive/issue

authors: adamdbradley fairsayan

license: mit

license_type: permissive

license_source: bigquery


text:
ionic build does not reflect cordova's exit code

If cordova fails to build when I run e.g. ionic build android, the log will say that cordova exited with a certain exit code but ionic will exit with code 0.

+1 This is really silly when you want to integrare ionic build android on your CI system and you rely on the status code to stop the script

@jthoms1 you closed it because it has been fixed or because it won't be fixed?

Please reopen, this is obviously a bug.
The same happens for all the ionic commands.

authors: Azenet danydev pvdyck


text:
Refactor Events service to use rxjs

Ionic version:  (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/driftyco/ionic-v1)
[x] 2.x
[x] 3.x
I'm submitting a ...  (check one with "x")
[ ] bug report
[x] 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:
Events service doesn't use rxjs and developer is forced to manage subscriptions imperatively / manually. It's also increases amount of boilerplate code in an app
Expected behavior:
Events service provides interface based on rxjs Observables what will allow to easily subscribe / unsubscribe and combine with other observable application wide events. In order to do that Events service need to provide a topic(name: string) method which returns Subject observable for a specific topic
Related code:
This will allow to do something like this
import { Subject } from 'rxjs'

@Component({ ... })
export class MyComponent {
   constructor(private events: Events) {
     this.destroyed = new Subject()
   }

   ngOnInit() {
      this.events.topic('app:offline')
         .takeUntil(this.destroyed)
         .subscribe(() => this.doStuff())
   }

  ngOnDestroy() {
    this.destroted.next(true)
    this.destroyed.complete()
  }
}

Other information:
I'm pretty sure that it can be easily done without breaking changes. I propose to rewrite subscribe and unsubscribe methods to use Subject instead of array of handlers and add additional method topic which exposes Subject for easier interactions with other application observables

I can provide a PR for this if @manucorporat  and @jgw96 are ok with suggestion

Just for comparison, the same thing can be achieved with the current interface only this way:
import { Subject } from 'rxjs'
@Component({ ... })
export class MyComponent {
   constructor(private events: Events) {
     this.offlineListener = this.doStuff.bind(this)
   }

   ngOnInit() {
      this.events.subscribe('app:offline', this.offlineListener)
   }

  ngOnDestroy() {
     this.events.unsubsribe('app:offline', this.offlineListener)
  }
}

And the same should be done for every subscribed event

Hey @stalniy, this sounds like a good idea to me, feel free to throw together a PR!

@jgw96 I just checked the codebase and it looks like it's impossible to keep backward compatibility for Events.
There are 3 issues:

publish returns an array of responses (result of each handler invocation). This can't be handled with Subject.
publish accepts multiple parameters but Subject.next accepts only. This can be handled with wrapper function (here is also possible to put a warning that this behavior is deprecated)
In order to be able to unsubscribe handler from Subject I need to track all subscriptions internally (mapping of handler function to its subscription). So, we can leave it for some time and add warning that Events#unsubscribe method is deprecated

I can create a PR for what I did with 2 and 3 but 1 introduces breaking changes. So, what do you think is the best?

introduce bigger breaking changes (no responses from publish, publish accepts only 1 argument, remove unsubscribe)
introduce small breaking change in publish method
try to find a solution  have to return responses from publish method

I've chosen more aggressive refactoring :) So, waiting for comments!

repo: driftyco/ionic


text:
Bug : ion-side-menu-content drag-content - v1.0.0-beta.14

I have an app with views with & without menus

The first page is without side menu
Others pages have a side menu which cannot be dragged (drag-content = false)

Here I forked this excellent codepen:
http://codepen.io/vnabet/pen/VYxdoj
When I tap "go to menu view" I can't drag my menu ... it's OK... But it's with the Ionic beta.4
Now replace Ionic beta.4 references with beta.14.
Il doesn't work, and the content menu can be dragged.
I have the same issue if I try to deactivate it with canDragContent(false) from $ionicSideMenuDelegate

Greetings @vnabet!
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!

Appears to be fixed in the nightly builds.
http://codepen.io/mhartington/pen/Byxqmp

authors: Ionitron mhartington vnabet


text:
Searchbar slow with 500+ items

I have tested with 500-2000 items (length on average of 40 characters) . To search for an item is VERY slow . It seems to take about 5 seconds on a low wend android device to see the character show up, then another 10 seconds for the result to filter based on the criteria. 1000 items is not that much, could this be improved? My code I tested from is from: https://github.com/driftyco/ionic-preview-app/tree/master/app/pages/searchbars/basic

Thanks for opening an issue with us! Since this is more of a question you will be able to get a better discussion started there, which if its then decided its a bug could be moved back here. (https://forum.ionicframework.com/) or our slack channel (http://ionicworldwide.herokuapp.com/). Thanks again!


text:
Enhancement: Placeholder text for ion-select component

The current version beta.8 of ionic 2 doesnt allow to set placeholder text for ion-select . This would be a useful feature to have considering the real estate that we have in mobiles screens. Without this we have to add additional element either label or div to specify the placeholder text.

Thanks for the issue! This will be in the beta 9 release. :smile:

Well done @brandyscarney. Thank you.

@brandyscarney it would be nice to have an option to have the default select behavior inside of <ion-select>, because the user needs to tap one more time in the "Ok" button to select the option.

@juarezpaf I'm not sure I understand. Is there an issue open for this?

@brandyscarney not yet! I'll open one this weekend. Thanks a lot.

authors: brandyscarney juarezpaf vijquick


text:
sidemenu template has div inside button

In the ionic v2 sidemenu template, the <button> tag contains a <div> inside it, in the page2.html file. This violates the current HTML 5 standard, isn't it?

Hello, thanks for opening an issue with us! You are correct and we will update it to be more compliant with the standard. Thanks for using Ionic!


text:
[BUG]: timestamp with mode string is returned as Date object instead of string

What version of drizzle-orm are you using?
0.27.0
What version of drizzle-kit are you using?
0.19.2
Describe the Bug
timestamps aren't being inferred as string
Table Schema that we use
export const itemTable = pgTable(
  'item',
  {
    id: bigint('id', { mode: 'number' }).primaryKey(),
    createdAt: timestamp('createdAt', {
      mode: 'string',
      precision: 6,
      withTimezone: true,
    }).notNull(),
    userId: uuid('userId')
      .references(() => userTable.id)
      .notNull(),
    customData: jsonb('customData').default(sql`'{}'::jsonb`),
    media3Id: bigint('media3Id', { mode: 'number' }).references(
      () => media3Table.id,
    ),
    newId: uuid('newId'),
    blockId: bigint('blockId', { mode: 'number' }).references(
      () => blockTable.id,
    ),
    parentItemId: bigint('parentItemId', { mode: 'number' }),
  },
  (item) => {
    return {
      parentReference: foreignKey({
        columns: [item.parentItemId],
        foreignColumns: [item.id],
      }),
      // indexes
      newIdIndex: uniqueIndex('idx_item_newid').on(item.newId),
    };
  },
);

Query
  const result = await db
        .select({
          item: {
            id: itemTable.id,
            createdAt: itemTable.createdAt,
            customData: itemTable.customData,
            newId: itemTable.newId,
            parentItemId: itemTable.parentItemId,
          },
          user: {
            id: userTable.id,
            username: userTable.username,
          },
          media3: {
            ...media3Table,
          },
          block: {
            ...blockTable,
          },
        })
        .from(itemTable)
        .where(eq(itemTable.id, input.id))
        .leftJoin(userTable, eq(userTable.id, itemTable.userId))
        .leftJoin(media3Table, eq(media3Table.id, itemTable.media3Id))
        .leftJoin(blockTable, eq(blockTable.id, itemTable.blockId))
        .limit(1);

Returns createdAt as a date object instead of string.
Expected behavior
Returns createdAt as string
Environment & setup
Vercel / Serverless function

Hey @noskovvkirill new here wanted to start contributing, so wanted to pick this up! Also it would be fine if I asked for a little guidance if I ever get stuck? 😅

@frostzt sure! let me know how I can help

@noskovvkirill, I've run into this issue too. Could you clarify the title and change it to: "[BUG]: timestamp with mode string is returned as Date object instead of string"? The current title makes it seem like it's only a TS issue. This is a runtime issue though.

@noskovvkirill, I've run into this issue too. Could you clarify the title and change it to: "[BUG]: timestamp with mode string is returned as Date object instead of string"? The current title makes it seem like it's only a TS issue. This is a runtime issue though.
@bestickley good suggestion! I did that!

I'm actually seeing the opposite of this!
created_at: timestamp('created_at', { mode: 'date' })
    .notNull(),

^ this is returning an ISO string instead of a date object which doesn't match the expected Date type
I'm wondering if this has something to do with the Planetscale serverless driver...

@frostzt, I think the fix needs to be made somewhere in here if you have time to take a look.

My temporary workaround is to use the my connection library (postgre.js for me) to transform the dates. See example below of what I'm adding to my Options.
transform: {
    value(value) {
      if (value === "2023-07-18T14:32:44.786+00:00") {
        console.log({ value });
      }
      if (value instanceof Date) {
        return value.toISOString();
      } else {
        return value;
      }
    },
  },

I have the exact same bug....

I have the same problem as well. The workaround from @bestickley is working, but a fix for this would be nice.

I ran into this same issue - timestamp types with {mode: 'string'}are returned as Date objects. It's inferred as a string by TypeScript, but it's clearly a Date at runtime. This gives me issues when trying to return an object from the schema via getServerSideProps in Next.js, since Dates are not JSON-serializable (a string would be though) - I have to delete the date property from the object before returning it.

Should be fixed in drizzle-orm@beta. I would appreciate some feedback to confirm whether this issue has been resolved in this tag.
I plan to release it in version 0.30.0 tomorrow or within the next few days; I simply aim to address this substantial set of issues we're encountering. I'll be duplicating this message across all similar issues we're facing.

Fixed in drizzle-orm@0.30.0
Please check release notes for more info

authors: AndriiSherman K-Mistele bestickley frostzt noskovvkirill pablomikel patrikengborg stunaz

repo: drizzle-team/drizzle-orm

license_source: github-api


text:
oidc

请问可以提供个oidc的springboot的demo吗

后续会增加

后续会增加

好的谢谢！就在等OIDC了

后续会增加

请问增加好了吗 oidc的springboot的demo

可以参考https://cloud.tencent.com/developer/article/2226062

repo: dromara/MaxKey


text:
建议添加更加安全的密码摘要加密算法

建议增加的新功能:
更加安全的密码摘要加密算法, 如 BCrypt, HMAC, PBKDF2 等.
https://sa-token.dev33.cn/doc/index-backup.html#/up/password-secure
应用场景阐述：
目前加盐哈希的实现使用了组合哈希函数的方法, 本身有一定争议.
且目前使用的 MD5 加密已经被公认为存在缺陷的一种摘要算法.

密码加密可以参考 hutool：
https://hutool.cn/docs/#/crypto/概述
已经封装的比较完善了
Sa-Token 不打算重复造这一块的轮子了

了解了, 感谢!

无意中发现了 cn.dev33.satoken.secure 中包含了一个 BCrypt, 注明了来自 https://github.com/jeremyh/jBCrypt
但在文档中没有相关说明, 是文档缺失说明还是这个包并不打算给用户使用?

是文档迟滞了

repo: dromara/Sa-Token


text:
Remove backup folder which causes NIX build to fail

:wave:
I would like to update drone-cli on nixpkgs as it's currently very old (0.8.6) but the .backup folder causes build to fail on unmet dependency github.com/cncd/pipeline/pipeline which is not defined in the deps. Removing the folder fixes the issue for me and I'm able to build the package on nixos.

If brad wants to keep it we should use an underscore instead of a dot as folder prefix.

@tboerger I've kept the files by renaming the folder to the underscore as you suggested. My nixpkgs build has passed. Could we merge it so I can update the package? Thanks!

it would be great if this could get merge so we can update nixpkgs without patching the source :+1:

source: gharchive/pull-request

authors: kubaracek tboerger turboMaCk

repo: drone/drone-cli


text:
[DROOLS-1055] Fix ClassCastException when running with Fuse 6.2.1 (bl…

…ueprint-core 1.4.4)

closes #291

Backport of https://github.com/droolsjbpm/droolsjbpm-integration/pull/291

jenkins retest this

+1 as this is back port or already merged in master

authors: mswiderski psiroky

repo: droolsjbpm/droolsjbpm-integration


text:
BZ-1304508 - NPE exception is thrown when using jbpm kie ProcessService to issue signal event, JBPM-4929 - Inconsistent state in ProcessServiceEJBImpl.startProcess()

back port of #403 to 6.4.x branch

merged into 6.4.x

repo: droolsjbpm/jbpm


text:
build error according to README

Dears,
I try the build ( refer https://github.com/dropoutlabs/tf-trusted#build-and-run-tf-trusted ) and failed with following error message.
Could you help with this ?
$ docker run -it --name tf-trusted --rm
-v droplab-bazel-cache:/root/.cache/bazel
-v pwd:/opt/my-project
-w /opt/my-project
-p 50051:50051/tcp -p 50051:50051/udp
gcr.io/asylo-framework/asylo
bazel run --config=enc-sim //tf_trusted
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 3e917c6f-8fa6-4d54-aaac-78acb786e384
ERROR: /root/.cache/bazel/_bazel_root/b6bc0828d5b43c7085b650e0698bf388/external/com_google_protobuf/BUILD:599:1: Traceback (most recent call last):
File "/root/.cache/bazel/_bazel_root/b6bc0828d5b43c7085b650e0698bf388/external/com_google_protobuf/BUILD", line 599
internal_gen_well_known_protos_java(srcs = WELL_KNOWN_PROTOS)
File "/root/.cache/bazel/_bazel_root/b6bc0828d5b43c7085b650e0698bf388/external/com_google_protobuf/protobuf.bzl", line 266, in internal_gen_well_known_protos_java
Label(("%s//protobuf_java" % REPOSITOR...))
File "/root/.cache/bazel/_bazel_root/b6bc0828d5b43c7085b650e0698bf388/external/com_google_protobuf/protobuf.bzl", line 266, in Label
REPOSITORY_NAME
builtin variable 'REPOSITORY_NAME' is referenced before assignment.
ERROR: /root/.cache/bazel/_bazel_root/b6bc0828d5b43c7085b650e0698bf388/external/com_google_protobuf/BUILD:382:1: Target '@com_google_protobuf//:android' contains an error and its package is in error and referenced by '@com_google_protobuf//:protoc'
ERROR: /root/.cache/bazel/_bazel_root/b6bc0828d5b43c7085b650e0698bf388/external/com_google_protobuf/BUILD:382:1: Target '@com_google_protobuf//:windows' contains an error and its package is in error and referenced by '@com_google_protobuf//:protoc'
ERROR: /root/.cache/bazel/_bazel_root/b6bc0828d5b43c7085b650e0698bf388/external/com_google_protobuf/BUILD:382:1: Target '@com_google_protobuf//:windows_msvc' contains an error and its package is in error and referenced by '@com_google_protobuf//:protoc'
ERROR: /root/.cache/bazel/_bazel_root/b6bc0828d5b43c7085b650e0698bf388/external/com_github_grpc_grpc/src/proto/grpc/reflection/v1alpha/BUILD:21:1: every rule of type proto_library implicitly depends upon the target '@com_google_protobuf//:protoc', but this target could not be found because of: Target '@com_google_protobuf//:protoc' contains an error and its package is in error
ERROR: Analysis of target '//tf_trusted:tf_trusted' failed; build aborted: Analysis failed
INFO: Elapsed time: 214.936s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (44 packages loaded, 2433 targets
FAILED: Build did NOT complete successfully (44 packages loaded, 2433 targets
configured)
currently loading: @org_tensorflow//tensorflow/contrib/lite/kernels
Fetching @boringssl; fetching 8s
Fetching @jinja; fetching

Hey there @overunix,
It looks like Asylo recently released a new docker container with some breaking changes to our current setup. I think this can be fixed once tensorflow as released version 1.13.0. Until that happens and we do some upgrades here we can use the older version of the Asylo docker container. So instead of:
docker pull gcr.io/asylo-framework/asylo

docker run -it --rm \
  -v bazel-cache:/root/.cache/bazel \
  -v `pwd`:/opt/my-project \
  -w /opt/my-project \
  -p 50051:50051/tcp -p 50051:50051/udp \
  gcr.io/asylo-framework/asylo \
  bazel run --config=enc-sim //tf_trusted

We can do:
docker pull gcr.io/asylo-framework/asylo:buildenv-v0.3.2

docker run -it --rm \
  -v bazel-cache:/root/.cache/bazel \
  -v `pwd`:/opt/my-project \
  -w /opt/my-project \
  -p 50051:50051/tcp -p 50051:50051/udp \
  gcr.io/asylo-framework/asylo:buildenv-v0.3.2 \
  bazel run --config=enc-sim //tf_trusted

Note I've just added the buildenv-v0.3.2 tag to the docker container name!
I'll update the docs to pin to this version.
Thanks for the bug! And let me know if you have any other questions. Happy to help!

Now works, thanks for quick response @justin1121 .

repo: dropoutlabs/tf-trusted


text:
Mappings for url patterns of Servlet Filters are not working properly

Effected only in dropwizard 1.0.0
After adding the filter:
environment.servlets().addFilter("Guice Filter", GuiceFilter.class).addMappingForUrlPatterns(null, false, "/some/context/path/*");

and calling the resource with specified path, filter is never invoked.
It only works if root context is specified as the pattern:
environment.servlets().addFilter("Guice Filter", GuiceFilter.class).addMappingForUrlPatterns(null, false, "/*");

Hello Timur. Are you overriding the application context path in your config file?

Hi @evnm, yes the application context path is overridden, and that application context is used to set the url mapping:
environment.servlets().addFilter("Guice Filter", GuiceFilter.class).addMappingForUrlPatterns(null, false, environment.getApplicationContext().getContextPath() + "*")

I think the problem has to do with the difference between the context path and the servlet path. As I understand it, the context path precedes servlet paths and is not included within them. For instance, given a path /context_path/foo/bar where /context_path is the application context path, then filters must be registered for URL patterns that match /foo/bar.
In your case, I suspect that .addMappingForUrlPatterns(null, false, "/*") is actually what you want. This wildcard path will result in all paths being filtered, which I assume is what you want.

@evnm the issue appeared after migrating to dropwizard 1.0, previously with 0.9 version it was working without any problems.

If my assumption above is correct, then the behavior in 0.9.x may have been relying on a bug. Jetty's changelog doesn't indicate anything changes to context path interpretation between 9.2.13.v20150730 and 9.3.9.v20160517 (the versions on which Dropwizard 0.9.3 and 1.0.0 depend, respectively).
Does this change in behavior actually cause problems for you? Does using a path pattern of "/*" not work for your application? Instead of debating what "working properly" means, perhaps we can just improve the documentation on context path interpretation.

@evnm Thanks, you are right. And would be good to improve documentation on context path interpretation.

authors: evnm htimur

repo: dropwizard/dropwizard


text:
Hamcrest upgrade planned?

Is there Hamcrest upgrade to 2.0.0.0 planned?
Hamcrest 2.x supports Java 7+ better (@SafeVarargs) and improved support for Java 8 i 9 is being discussed.
Hamcrest 1.x is not developed anymore.

@volphy Feel free to provide a pull request fro the upgrade.

I have created one:
https://github.com/dropwizard/dropwizard/pull/2443

@volphy Thanks for your contribution!
After thinking a little longer about the issue, I'd prefer to remove Hamcrest from Dropwizard completely. It's only been used in tests and shouldn't "bleed" into the public artifacts of Dropwizard.
After the removal of Hamcrest, it's completely up to the users of Dropwizard which matching library they want to use. Dropwizard itself is using AssertJ.

Good idea. I agree that Hamcrest does not need to be in Dropwizard's BOM.

authors: joschi volphy


text:
significant regressions introduced DW 3.0.9 with jackson 2.18.0

Jackon 2.18.0 has a serios regression the impacted our use in many unexpected ways https://github.com/FasterXML/jackson-databind/issues/4639 until jackson 2.18.1 is released might be good to warn people or maybe even release a version with a downgraded dependency chain i.e. 2.17.2. For now we have downgraded to dropwizard 3.0.8 but just wanted to make others aware.

thanks @joschi!


text:
[documentation] add more jvm and os guidelines

Fixes #4792
Reviewers: Feel free to suggest edits based on your experience.

here are a few logging ones that are mentioned elsewhere in the docs I think:
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
-Dorg.jboss.logging.provider=slf4j
-Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SLF4JLogger
-Dlog4j.shutdownCallbackRegistry=io.druid.common.config.Log4jShutdown
-Dlog4j.shutdownHookEnabled=true

The downside of this one is that middle managers have noisy error messages when running hadoop or spark stuff due to classloader miss-matches caused by the JUL --> log4j2 binding. Benign but noisy.

@drcrallen @gianm added logging options and addressed comments. there are two more things that we have tried in the past in various clusters , not enough benefit analysis has been done to know if they have measurable impact. that is why I haven't added those in docs, but here they are for the sake of completeness

try disabling jvm  biased locking in case of GC issues.
use JBOD configuration instead of RAID on historicals to avoid RAID overhead specially if you don't have RAID controller hardware but a software based RAID is configured.

I would say go ahead and add the JBOD thing. I've tested it (on EC2 at least) vs software RAID and it does improve performance.

@gianm i added both actually.. i think they are just options that user should be aware of and do what is necessary.

going to go ahead and merge this for 0.11.0 since it's a doc patch and it's already approved

authors: drcrallen gianm himanshug jon-wei

repo: druid-io/druid


text:
VersionedIntervalTimeline: Optimize construction with heavily populated holders.

Each time a segment is "add"ed to a timeline, "isComplete" is called on the holder that it is added to. "isComplete" is an O(segments per chunk) operation, meaning that adding N segments to a chunk is an O(N^2) operation. This blows up badly if we have thousands of segments per chunk.
The patch defers the "isComplete" check until after all segments have been inserted.
The problem was especially noticeable in IndexerSQLMetadataCoordinator. getTimelineForIntervalsWithHandle, since segment allocation operations need to call that, and lots of segment allocations need to happen on a scaled-out Kafka indexing job.

Looks good to me overall. Please check the build failure.

authors: gianm jihoonson


text:
@PopulateIdentityColumn = 1

SET IDENTITY_INSERT OFF in incorrect plase

Parameters is
EXECUTE [dbo].[GenerateInsert]
@ObjectName = 'TableName',
@GenerateProjectInfo = 0,
@GenerateSetNoCount = 0,
@PopulateIdentityColumn = 1,
@SearchCondition= @SearchCondition,
@GenerateSingleInsertPerRow=1,
@FormatCode=0,
@GenerateGo=1,
@PrintGeneratedCode=0

repo: drumsta/sql-generate-insert


text:
xRDCertificateConfiguration:The term ''Get-RDServer'' is not recognized

ISSUE DESCRIPTION
I'm using Ansible to run the xRDCertificateConfiguration resource and only when applying a certificate to the RDWebaccess role I get the following error message.
Failed to invoke DSC Set method: Failed to apply certificate from path ''C:\windows\temp\rds-cert.pfx'' to role ''RDWebAccess'' on connection broker ''hostnamel''. Error: ''The term ''Get-RDServer'' 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.'''
Suggested solution to the issue
I figured this was an issue due to the box not being ready so I added a delay of 60 seconds and 10 retires and unfortunately the result is the same.
The DSC configuration that is used to reproduce the issue (as detailed as possible)

name: Configure RDS Certificate
win_dsc:
Resource_name: xRDCertificateConfiguration
Role: "{{ item }}"
ConnectionBroker: "{{ hostname }}.{{ domain }}"
ImportPath: C:\windows\temp\rds-cert.pfx
Credential_username: Welcome1!
Credential_password: Welcome1!
PsDscRunAsCredential_username: "{{ domain_admin }}"
PsDscRunAsCredential_password: "{{ domain_admin_password }}"
with_items:

RDRedirector
RDPublishing
RDWebAccess

###Output of successfully applying a certificate to other roles
TASK [ad_rds : Configure RDS Certificate] ************************************************************************************************************************************************************************************************************************changed: [10.9.10.18] => (item=RDRedirector) => changed=true
ansible_loop_var: item
attempts: 1
item: RDRedirector
module_version: 2.0.0
reboot_required: false
changed: [10.9.10.18] => (item=RDPublishing) => changed=true
ansible_loop_var: item
attempts: 1
item: RDPublishing
module_version: 2.0.0
reboot_required: false
The operating system the target node is running
OsName               : Microsoft Windows Server 2019 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : en-US
OsMuiLanguages       : {en-US}
Version and build of PowerShell the target node is running
Name                           Value

PSVersion                      5.1.17763.771
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.771
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Version of the DSC module that was used
Version 2.0.0

Ok, looking at the error message you get this goes wrong at this stage:
https://github.com/dsccommunity/xRemoteDesktopSessionHost/blob/523c4356c411dfe10f9286011e5a147df90a2dc4/source/DSCResources/MSFT_xRDCertificateConfiguration/MSFT_xRDCertificateConfiguration.psm1#L92
Set-RDCertificate, in the beginning of the code, indeed calls Get-RDServer (which seems to be unavailable in your error).
The reason it's possible that command cannot be found is not entirely clear to me, it could be related to the fact that in the module where this command is defined (C:\windows\system32\WindowsPowerShell\v1.0\Modules\RemoteDesktop\Deployment.psm1) it's call Get-Server, not Get-RDServer. The RD prefix is only added as soon as the RemoteDesktop module is loaded.
Since this module loads the RemoteDesktop module explicitly, I would not expect any issues there though, but in this case it's clear there are issues.
Would you be so kind to help testing a change in the code? Maybe if we load the module in the global context, this prevents the issue. What you would need to do locally on your machine is change this line:
https://github.com/dsccommunity/xRemoteDesktopSessionHost/blob/523c4356c411dfe10f9286011e5a147df90a2dc4/source/DSCResources/MSFT_xRDCertificateConfiguration/MSFT_xRDCertificateConfiguration.psm1#L6
and make it:
Import-Module -Name RemoteDesktop -Global
Then test it with your configuration. Thanks in advance!

That worked! Thank you so much and thank you for not saying because you're using Ansible I can't help you ( =

Happy to hear that it worked, thank you for reporting back! To add to that, which tool you use, if it's Puppet, Chef, Ansible or plain DSC, that doesn't matter, in the end it's the DSC resource that needs to do the work.

@danielboth are you looking for assistance in getting this fix implemented via a PR?

I hit this problem.
PR raised.

authors: danielboth jeremyciak lkys37en uw-dc

repo: dsccommunity/xRemoteDesktopSessionHost

license: MIT


text:
Contact Us Button

Add Contact option in Navigation bar after Events and give that the id of specific column related to contact us

I make the pull request check the request

I make the pull request for this fix here is the link
https://github.com/dsclnct/DSC-Website/pull/4

repo: dsclnct/DSC-Website


text:
DF C65 R51 A65111 (17 483 721,68 €) utilisé dans DF-1-1-3, DF-1-5

C'est attendu. Aujourd'hui, l'agrégée distingue par un niveau de l'opération (plus fin que la M52)

Pour 2018, une nouvelle imputation sera discutée (différenciation par deux articles différents).
Pour 2015, 2016 et 2017, a priori, cette ligne ira dans DF-1-1-3.

Pour 2018, une nouvelle imputation sera discutée (différenciation par deux articles différents).
Pour 2015, 2016 et 2017, a priori, cette ligne ira dans DF-1-1-3.

Duplicat de #194

repo: dtc-innovation/dataviz-finances-gironde


text:
M52-DI-R7 lien M52 ne fonctionne pas

Depuis la page explorer le lien https://dtc-innovation.github.io/dataviz-finances-gironde/public/#!/finance-details/M52-DI-R7 ne fonctionne pas

Duplicata de #242

authors: DavidBruant akakeronos


text:
Not working from beginning, TypeError: _.map is not a function

XlsxPopulate.fromBlankAsync()
        .then(workbook => {
            // Modify the workbook.
            workbook.sheet("Sheet1").cell("A1").value("This is neat!");

            // Write to file.
            return workbook.toFileAsync("./out.xlsx");
        });

My Code
C:\Users\lich_\GoogleDrive\MATLAB\HyoSeong_MATLAB_GUIImplementation\HITS_Hyosung\181203_HITS_b\node_modules\xlsx-populate\lib\Workbook.js:654 Uncaught (in promise) TypeError: _.map is not a function
at Workbook.parseNodesAsync (C:\Users\lich\GoogleDrive\MATLAB\HyoSeong_MATLAB_GUIImplementation\HITS_Hyosung\181203_HITS_b\node_modules\xlsx-populate\lib\Workbook.js:654)
at externals.Promise.resolve.then.then.then.then.zip (C:\Users\lich_\GoogleDrive\MATLAB\HyoSeong_MATLAB_GUIImplementation\HITS_Hyosung\181203_HITS_b\node_modules\xlsx-populateI\lib\Workbook.js:587)
at
Here is my error. Unfortunately not working for me.

Can you include how you embedded the code above into your html?

authors: eddiecorrigall jhyunetp

repo: dtjohnson/xlsx-populate


text:
🛑 Tattersall is down

In c9bf4ff, Tattersall (https://autotattersall.cl/) was down:

HTTP code: 500
Response time: 738 ms

Resolved: Tattersall is back up in 76cddf0 after 12 minutes.


text:
How to save syn::File to disk?

I'm trying to use syn to parse a rust file and add some comments.
I dont' know how to save this File struct.
I have tried
let data = result.into_token_stream();
std::fs::write("./test.rs", data.to_string())?;

the result is not as expected. It has extra white space and without line break;
# [doc = "hello world"] pub const A : u8 = 10u8 ; # [doc = "hello world"] pub const B : u8 =

If you're trying to "unparse" the syn::File tree and print it as a source file, I think you can use prettyplease crate.
let formatted = prettyplease::unparse(&data);
std::fs::write("./test.rs", formatted);

Check this out: https://docs.rs/prettyplease/0.2.6/prettyplease/#example

If you're trying to "unparse" the syn::File tree and print it as a source file, I think you might want to use prettyplease crate.
let formatted = prettyplease::unparse(&data);
std::fs::write("./test.rs", formatted);

Check this out: https://docs.rs/prettyplease/0.2.6/prettyplease/#example

Thank you very much. I will try it.

authors: atsmtat divflex

repo: dtolnay/syn


text:
it's not clear how the submitted field d- get's injected to recaptchaResponse field on the java side

Hi,
according to the google documentation:
**For web users, a new field (g-recaptcha-response) will be populated in HTML and you can get the user’s response in one of three ways:

g-recaptcha-response POST parameter when the user submits the form on your site
....**

keeping with that line,  the recaptchaResponse   property of the AbstractRecaptchaForm class, will only be populated if a user creates another field (preferably hidden) with name and id of recaptchaResponse.
Then, when a user submits the form, use a "function onSubmit(token)" (javascript) we have to assign the token value and to the recaptchaResponse form element.(  document.getElementById("recaptchaResponse").value=token;  )
without doing the above steps, the token value will never be sent to google
Perhaps this could be added to the documentation

The RecaptchaServletModelAttributeMethodProcessor should do this for you without adding a hidden input field. You simply have to do the client side as described in the google documentation and configure your mvc manually if you don't use spring boots autoconfiguration feature. Please take a look into RecaptchaAutoConfiguration.

I just tested with a Spring Boot application and can confirm that it works. You have to annotate your form object with @Valid AND @ModelAttribute in order to let the RecaptchaServletModelAttributeMethodProcessor kicking in. Pls close if it works for you.

many thanks


text:
Design fee tiers

What fee tiers should we use?
Do we have a systematic way of approaching this?
Have some ideas but want to open it up for convo and flag it as an approaching priority.

Can do before launch, has to do with genesis file. Not blocked on audit.

authors: eljhfx teddyknox

repo: duality-labs/duality


text:
Use JSONArray instead of JSONObject in "properties" to preserve form order

Hi, this is a great tool, thank you for creating it :blush:
I am having an issue with my form elements being rendered not in the order I set them in the JSON.
I am getting the JSON schema over HTTP and so the properties object is automatically rearranged and are not in the order I want them to be in.
I am setting properties on server as:
{
  //...id,type,title,description
  "properties": {
    "username": {...},
    "password": {...},
    "somethingElse1": {...},
    "somethingElse2": {...},
  }
}

but getting it on client as:
{
  //...id,type,title,description
  "properties": {
    "somethingElse2": {...},
    "username": {...},
    "somethingElse1": {...},
    "password": {...},
  }
}

This is expected as the properties field is JSONObject and as per the JSON specification at JSON.org:

An object is an unordered set of name/value pairs

and so JSON libraries are free to rearrange the order of the elements as they see fit.
Could we maybe store this data in properties as JSONArray instead of JSONObject?
If there is any other way to do this which I missed out in the documentation, please ignore this and point me in the right direction. Thank you!

This is the case, the form's configuration file is subject to the schema specification, that is, the value of the form, using schema validation is no problem. This is why it is a JSONObject. Your question, my suggestion is to convert it to a string to pass. In our project, we do the same.

In that case, could we add a new custom attribute $UIorder: number or something and tweak the library to render the UI in the order (value) received.
The issue is I don't want to JSON.parse the data on the client-side again, as I do it already on the server-side before sending it over HTTP to make sure valid JSON is being sent.
E.g.:
{
  //...id,type,title,description
  "properties": {
    "username": {
      "id": "$root/properties/username",
      "type": "string",
      "title": "Username",
      "$UIorder": 1    // <-- Pass the order here
    },
    "password": {
      ...,
      "$UIorder": 3,
      ...
    },
    "somethingElse1": {
      ...,
      "$UIorder": 4,
      ...
    },
    "somethingElse2": {
      ...,
      "$UIorder": 2,
      ...
    },
  }
}

Then maybe when you render the elements, you could order it according to the $UIorder attribute received.
The render order for the above example would be:
username > somethingElse2 > password > somethingElse1

Yes, We need something like this ! I came across same issue and for our project stringifying json is not valid solution because in that case we will need to take care of parsing it on both client and server end.
We need  better solution for this !

@rahulpsd18 @ShubhamKhandare Added $order to sort the component's rendering order.https://github.com/duan602728596/antd-schema-form/commit/ee8bed2745e7f1771d7443bf628d552f94713b1a#diff-f743a860d04348765588d643ca74288dR44


text:
Schedule font size too small

Schedule font size too small!!! @ayush29feb make it like 30% bigger please. 😁

Goto js/schedule.js and change config.fontSize

increased to 18


text:
Out of memory error

29 str = open(file_name, 'rb').read()
MemoryError
i tried to open a 1.02 gb file to test the compression

https://stackoverflow.com/questions/50464625/memory-error-python-huge-file-changes
i have possibly found a fix

i have no clue how but i can compress files over 1gb


text:
Report bugs

Awesome work! I tried to replace the original file at conda/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py with m_clip.py. However, there are some bugs. For example, at line 714 of m_clip.py, inputs_embeds[-1] should be inputs_shape[-1]. Besides, after fixing aforementioned bugs, I still cannot reproduce the original results in the paper. Could the authors provide more details on how to modify the source code in 'transformer' library?

What results cannot be reproduced? Adversarial prompt or FID?

Just fail to run up the code. In m_clip.py, you modify the original class CLIPTextTransformer to accept input in the form of 'text_embeds'. However, in line 226 of whitebox_attack.py and line 743 of m_clip.py, it still needs "input_ids" to get "pooled_output". This results in a NoneType error. I try to fix this by assuming the last token is "end of sequence (eos)" token. This is my solution:
    if input_ids is not None:
        pooled_output = last_hidden_state[
            torch.arange(last_hidden_state.shape[0], device=last_hidden_state.device),
            input_ids.to(dtype=torch.int, device=last_hidden_state.device).argmax(dim=-1),
        ]
    elif inputs_embeds is not None:
        pooled_output = last_hidden_state[
            torch.arange(last_hidden_state.shape[0], device=last_hidden_state.device),
            input_shape[1]-1,
        ]

I am not sure if this implementation is right. Could you please share more ideas about how to fix this? Thanks a lot.

Is your transformers==4.28.1？

Yes, I believe I strictly follow the guidance in Readme.

I updated the m_clip file, I uploaded the wrong file before, sorry for the trouble. It should work properly now.

Thanks for the very timely reply, but the problem remains. Now I can run the code. But in the main loop, CLIP classifier frequently misclassifies the generated images. The code always "skip this text" at line 163. However, CLIP zero-shot classification accuracy is about 70% in ImageNet-1K. There should not be so many misclassified images. I try to visualize the generated images. They seem unnatural. It seems that there is something wrong with the stable diffusion generation at line 157. I also try to generate images by directly input a text string, it will generate natural images. So I think it is because of the input prompt_embeds.

In config.py, change the img_size to 512

Thanks for your help. It works now.


text:
Null needs to be cast to blob in ST_GeomFromWKB

SELECT ST_GeomFromWKB(NULL);

throws:
SQL Error: java.sql.SQLException: Binder Error: Could not choose a best candidate function for the function call "ST_GeomFromWKB("NULL")". In order to select one, please add explicit type casts.
	Candidate functions:
	ST_GeomFromWKB(BLOB) -> GEOMETRY
	ST_GeomFromWKB(WKB_BLOB) -> GEOMETRY

Works when NULL is casted to blob:
SELECT ST_GeomFromWKB(NULL::blob);

This is expected, ST_GeomFromWKB is overloaded to work for both BLOB and WKB_BLOB, and a NULL literal has no type.

Seems to work differently in e.g. PostGIS where NULL w/o casting works.

authors: Maxxen edigonzales

repo: duckdb/duckdb-spatial


text:
With spatial extension, writing file raise a GDAL error (only in wasm)

What happens?
Writing a file with the spatial extension in duckbb wasm raise a GDAL error (IO Error: GDAL Error (3): Cannot write feature).
COPY table TO 'polygon.geojson' WITH (FORMAT 'GDAL', DRIVER 'GeoJSON');

I also wrote a similar issue in the spatial repo #363
To Reproduce
See this reproductible example in the shell
Browser/Environment:
Chrome 128
Device:
MacBook Pro 2019
DuckDB-Wasm Version:
duckdb-wasm@1.28.1-dev258.0
DuckDB-Wasm Deployment:
shell.duckdb.org
Full Name:
Thomas Ansart
Affiliation:
Sciences Po

I'm getting the same error in https://www.quackdb.com/, another DuckDB WASM environment

This will get you round the issue in the mean time:
        await db.registerFileHandle('tmp_results.geojson', new Uint8Array(), 0, true); // the internals of duck/spatial need this but can't create it themselves.
        await db.registerFileHandle('results.geojson', new Uint8Array(), 0, true); // the actual file name you want to use with no tmp_ prefix

        await connection.query(`
          copy (
            select *
            from 'area_data.parquet'
          ) to 'results.geojson'
          with (
            FORMAT GDAL, DRIVER 'GeoJSON', LAYER_CREATION_OPTIONS 'WRITE_BBOX=YES'
          );`
        );
        const geojson_buffer = await db.copyFileToBuffer('results.geojson');
        const link = URL.createObjectURL(new Blob([geojson_buffer]));
        console.log("geojson url: ", link);

authors: TomBor alexkreidler jdoig

repo: duckdb/duckdb-wasm


text:
Fix favorites popup menu still showing after reorder drag

Task/Issue URL: N/A
Description
Fixes an issue where the popup menu on favorites items would not dismiss after reorder drag. The popupMenu variable is now assigned in the showOverflowMenu function.
Steps to test this PR
Run on device/emulator.
UI changes

Before
After

Thanks for this @ricknout! One liners are the best PRs 🥳

authors: malmstein ricknout

repo: duckduckgo/Android


text:
Revert Fix get_server_name crash when TLS record fragmentation

Task/Issue URL: https://app.asana.com/0/488551667048375/1206049262682135/f
Description
Revert Fix get_server_name crash when TLS record fragmentation
Steps to test this PR
Smoke tests for AppTP and VPN, fresh install and app update

Current dependencies on/for this PR:

develop

PR #3939   👈

This stack of pull requests is managed by Graphite.


text:
Fix not loading any CBRs if cache files missing

Task/Issue URL: https://app.asana.com/0/414235014887631/1203344021820506/f
Pre-release for testing purposes: https://github.com/duckduckgo/BrowserServicesKit/releases/tag/pre-34.0.5
iOS PR:  https://github.com/duckduckgo/iOS/pull/1379
macOS PR: https://github.com/more-duckduckgo-org/macos-browser/pull/835
What kind of version bump will this require?: Patch
Description:

Fixes waiting for Content Blocking Rules to be applied on startup when WebKit cache files are missing

Steps to test this PR:

Delete Content Blocking Rules cache files on the file system

~/Library/Developer/CoreSimulator/Devices/DEVICE-ID/data/Containers/Data/Application/APPLICATION-ID/Library/WebKit/com.duckduckgo.mobile.ios - for iOS Simulator
~/Library/WebKit/com.duckduckgo.macos.browser - for macOS

Run the app and load a website
Validate ContentBlockingRules are compiled before navigation

OS Testing:

[ ] iOS
[ ] macOS

Good find, I think we need tests for these scenarios - otherwise in a few months noone will remember about this case and regression may happen.

authors: bwaresiak mallexxx

repo: duckduckgo/BrowserServicesKit


text:
patch: Centered text

Makes the text centered, instead of the default right padding.
Works with any font and font size.
Diff

The following fixes the issue for me:

patch
commit 45046fb4f62d6b0ff04811d45af244ef95630617
Author: NRK <nrk@disroot.org>
Date:   Wed Mar 16 17:36:00 2022 +0600

    patch: center text

diff --git a/herbe.c b/herbe.c
index 51d3990..15f4e18 100644
--- a/herbe.c
+++ b/herbe.c
@@ -189,8 +189,15 @@ int main(int argc, char *argv[])
 		{
 			XClearWindow(display, window);
 			for (int i = 0; i < num_of_lines; i++)
-				XftDrawStringUtf8(draw, &color, font, padding, line_spacing * i + text_height * (i + 1) + padding,
-								  (FcChar8 *)lines[i], strlen(lines[i]));
+			{
+				XGlyphInfo ext;
+				int len = strlen(lines[i]);
+
+				XftTextExtentsUtf8(display, font, (XftChar8 *)lines[i], len, &ext);
+				XftDrawStringUtf8(draw, &color, font, (width - ext.xOff) / 2,
+				                  line_spacing * i + text_height * (i + 1) + padding,
+				                  (FcChar8 *)lines[i], len);
+			}
 		}
 		else if (event.type == ButtonPress)
 		{
@@ -217,4 +224,4 @@ int main(int argc, char *argv[])
 	XCloseDisplay(display);

 	return exit_code;
-}
\ No newline at end of file
+}

authors: N-R-K andrecaspar

repo: dudik/herbe


text:
May I ask how to auto-replay the video?

I would like to start playing the same video once the video finishes playing.
Is there anything like onCompleteListener or setOnPreparedListener in dkplayer? If there is, may I ask how to use it?
Thanks dueeeke.

    PlayerConfig config = new PlayerConfig.Builder().setLooping().build();
    mIjkVideoView.setPlayerConfig(config);

Thanks dueeeke.

authors: dueeeke yizhou-revyoo-me

repo: dueeeke/dkplayer


text:
Frontend dismisses linefeeds in abstracts

The frontend silently drops white space in abstracts, e.g.,
509505 has two paragraphs, which ist not the case in DukeCon: https://dukecon.org/javaland/talk.html#talk?talkId=509505
Data as provided by DOAG back office is delivered with Windows line endings (i.e., '\r\n'). I would like to drop the '\r' completely in the future since it is also contained in some of the title data but without the '\n' (at the end). So a solution for the frontend should be fault tolerant regarding this differences.
@chrisdutz what about the Flex client, should this be solved there also?

dukecon_server now replaces \r\n with \n only
html5 client replaces \n with  in abstract text only

@steffchep, @annam002: can you have a look at my commits. I've replaced \n with . But I had to disable html encoding to line breaks get rendered correctly. What about cross site scripting?

Maybe we can first html-escape the text and then insert the break tags?

I escaped potential html characters in the abstract in addition to@sippsack s changes

authors: annam002 ascheman sippsack


text:
3D Dice Roller

Due to Corona, we had to move our game online. Currently, we use discord, but we love our dice and miss them. Unfortunately, current tools for rolling dice are either lame (no dice rolling animation) or not collaborative (other people cannot see what you roll).
There is a library for 3D dice that looks pretty cool: https://www.npmjs.com/package/threejs-dice
Do we want to have a dice rolling solution within dungeon-revealer and move into the direction of a full blown tabletop simulator application or keep the scope on revealing dungeons and moving tokens?
A first implementation could look like the following:

Players can set a session name.
In the lower right corner is a roll History (DM and Player Section). The window can be minimized.
Players can Roll dice by typing in the dice types in a command prompt below the roll history (e.g. 2W20).
Animated dice will roll and the result will also be printed to the Dice History.

Someone ported threejs-dice to React: https://github.com/RobRendell/gTove/blob/54b06d142f232ff609ed211517789bd08981e912/src/presentation/die.tsx

We now have a dice roll chat with macro functionality introduced by  (Implemented by https://github.com/dungeon-revealer/dungeon-revealer/pull/403).
A stretch step will be animated dice. D&D Beyond also started providing animated dice rolling this week.
If anyone is interested in implementing such functionality, contributions are more than welcome 😊
For the implementation I have the following libraries in mind:

https://github.com/react-spring/react-three-fiber
https://github.com/react-spring/use-cannon

The difficulty in implementing this is that we already know the result of the dice roll prior to rolling the dice. That means we have to somehow pre-compute on which side the dice will land in a simulation and then place the dice labels accordingly.
The dice rolling should be limited to the map viewport (and not overlap with the chat sidebar).

repo: dungeon-revealer/dungeon-revealer

license: ISC


text:
allow editable default token (size/color/text)

I'm constantly resizing the tokens to be the same size every time I create one.  The ability to set the default size, and maybe even color and text, would save a lot of time during the token creation process.

I thought it resized the token to the grid (you must have one), or am I mistaken? The grid can be set invisible for the players.

No, my map images already have grids on them, so I don't add a grid
So I just checked and if I add a grid then yes, a token does come in as a single grid unit size.  But I don't need to add grids to my maps.  Would be much easier if there was an option on the token edit page like "make default token".
Thanks,
Jeff

From: k3tw13z3l notifications@github.com
Sent: Tuesday, July 14, 2020 6:30 AM
To: dungeon-revealer/dungeon-revealer dungeon-revealer@noreply.github.com
Cc: jeffvenuti jeffvenuti@hotmail.com; Author author@noreply.github.com
Subject: Re: [dungeon-revealer/dungeon-revealer] allow editable default token (size/color/text) (#572)
I thought it resized the token to the grid (you must have one), or am I mistaken? The grid can be set invisible for the players.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dungeon-revealer/dungeon-revealer/issues/572#issuecomment-658103725, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOHIE3MN4B4DRHOMQ2HEUHTR3QXS3ANCNFSM4OYDKHVA.

How would be know the size without defining the grid column dimensions first?
Every map has different dimensions, so we need a configured grid in order to size the tokens.
You can still disable the displaying of the grid. Also you will not get the snap to grid benefits for the area reveal/hide tool.

You've put a token size slider on the token edit menu/page.  I'm thinking I could just resize the token with that, then make that the default size for this map so that I don't have to resize every other token.
Wouldn't this work?

From: Laurin Quast notifications@github.com
Sent: Wednesday, July 15, 2020 1:12 AM
To: dungeon-revealer/dungeon-revealer dungeon-revealer@noreply.github.com
Cc: jeffvenuti jeffvenuti@hotmail.com; Author author@noreply.github.com
Subject: Re: [dungeon-revealer/dungeon-revealer] allow editable default token (size/color/text) (#572)
How would be know the size without defining the grid column dimensions first?
Every map has different dimensions, so we need a configured grid in order to size the tokens.
You can still disable the displaying of the grid. Also you will not get the snap to grid benefits for the area reveal/hide tool.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dungeon-revealer/dungeon-revealer/issues/572#issuecomment-658549812, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOHIE3IYP756CD7J73X7KGDR3U3EXANCNFSM4OYDKHVA.

Closed in v1.11.0, we now have a menu in which it is possible to configure everything related to tokens before adding them to the map.

Closed in v1.11.0, we now have a menu in which it is possible to configure everything related to tokens before adding them to the map.


text:
Update rsa.go

Fix RSA Key format with latest openssl version

Approved

repo: duokey/medusa


text:
Dynamic adding items is not working

Determining position does not work correctly when RTL.
    public void setCurrentItem(int position) {
        PagerAdapter adapter = super.getAdapter();
        if (adapter != null && isRtl()) {
            position = adapter.getCount() - position - 1;
        }
        super.setCurrentItem(position);
    }

My case:
setup position viewPager.setCurrentItem(i). Real position is: count - i - 1
add new one item
Try setup position to next item i + 1. Real position not changed: (count + 1) - (i + 1) - 1

I'm not able to determine what the problem is from this description.  Please provide a test case which fails but should pass.

@Override
    public void setCurrentItem(int position) {
        Log.d("Test RtlViewPager", "setCurrentItem(" + position + "). getAdapter().getCount() = " + getAdapter().getCount());
        PagerAdapter adapter = super.getAdapter();
        if (adapter != null && isRtl()) {
            position = adapter.getCount() - position - 1;
        }
        Log.d("Test RtlViewPager", "super.setCurrentItem(" + position + ")");
        super.setCurrentItem(position);
    }

Test RtlViewPager: setCurrentItem(0). getAdapter().getCount() = 5
Test RtlViewPager: super.setCurrentItem(4)
Test RtlViewPager: setCurrentItem(1). getAdapter().getCount() = 5
Test RtlViewPager: super.setCurrentItem(3)
Test RtlViewPager: setCurrentItem(2). getAdapter().getCount() = 5
Test RtlViewPager: super.setCurrentItem(2)
//add new item to adapter. New count = 6
Test RtlViewPager: setCurrentItem(3). getAdapter().getCount() = 6
Test RtlViewPager: super.setCurrentItem(2) //oops. Expected 1. Did not happen swipe to next page

I need more information about how the item was added.  Nothing in that log output is contradictory yet.  When there are 6 items and setCurrentItem(3) is called, super.setCurrentItem(2) is expected.

int currentItem = mViewPager.getCurrentItem();
if (model.hasErrors()) {
    mPagerAdapter.addModel(newModel);
}
int nextItem = currentItem + 1;
if (nextItem < mPagerAdapter.getCount()) {
    mViewPager.setCurrentItem(nextItem);
} else {
    exit();
}

User selects answer on the page. New item added to end when the answer is wrong. Autoscroll to the next page.
After when was added item and enabled RTL autoscroll to the next page does not work

This library is now deprecated and outstanding issues will not be addressed.  Please use ViewPager2 instead of this library.

authors: DavidDTA ValeryBoretsky

repo: duolingo/rtl-viewpager


text:
matrix contains invalid numeric entries

File "D:\Vehicle-Counting-master\vehicles-counting-yolov4-deepsort\object_tracker.py", line 302, in run
tracker.update(detections)
File "D:\Vehicle-Counting-master\vehicles-counting-yolov4-deepsort\deep_sort\tracker.py", line 70, in update
self._match(detections)
File "D:\Vehicle-Counting-master\vehicles-counting-yolov4-deepsort\deep_sort\tracker.py", line 116, in _match
self.tracks, detections, confirmed_tracks)
File "D:\Vehicle-Counting-master\vehicles-counting-yolov4-deepsort\deep_sort\linear_assignment.py", line 139, in matching_cascade
track_indices_l, unmatched_detections)
File "D:\Vehicle-Counting-master\vehicles-counting-yolov4-deepsort\deep_sort\linear_assignment.py", line 58, in min_cost_matching
indices = linear_sum_assignment(cost_matrix)
File "D:\Vehicle-Counting-master\vehicles-counting-yolov4-deepsort\testw\lib\site-packages\scipy\optimize_lsap.py", line 93, in linear_sum_assignment
raise ValueError("matrix contains invalid numeric entries")
ValueError: matrix contains invalid numeric entries

Hi, have you already fixed the problem? Because i have almost the same error as you.It would be great if you can share how you fixed it.
Thanks!

authors: hsiaochinglin irfanahme


text:
🛑 Mention Bot is down

In 6139918, Mention Bot (https://backend.isbotdown.com/bots/mentionbot) was down:

HTTP code: 200
Response time: 124 ms

Resolved: Mention Bot is back up in 0bfd6d1.

repo: durof/status


text:
🛑 Mention Test Bot is down

In 4a0eb31, Mention Test Bot (https://backend.isbotdown.com/bots/mentiontestbot) was down:

HTTP code: 200
Response time: 90 ms

Resolved: Mention Test Bot is back up in 686847b after 1 hour, 28 minutes.


text:
🛑 Mention Test Bot is down

In 299902f, Mention Test Bot (https://backend.isbotdown.com/bots/mentiontestbot) was down:

HTTP code: 200
Response time: 106 ms

Resolved: Mention Test Bot is back up in a8882f9 after 3 hours, 19 minutes.


text:
🛑 Mention Robot is down

In 02ccb77, Mention Robot (https://backend.isbotdown.com/bots/mentionrobot) was down:

HTTP code: 200
Response time: 105 ms

Resolved: Mention Robot is back up in faf6def after 54 minutes.


text:
kafka-map版本更新，hub镜像同步更新

kafka-map版本更新，建议同步更新到docker hub仓库

忘记做自动触发了，目前已推送镜像，我之后改一下。

忘记做自动触发了，目前已推送镜像，我之后改一下。
历史版本还是保留下吧，我现在pull latest版本,显示未Version:1.2.0，最新当前版本应该为1.3.1

应该是有缓存，之后更新我用tag做触发就可以指定版本号了。

应该是有缓存，之后更新我用tag做触发就可以指定版本号了。
docker pull dushixiang/kafka-map:latest  还是 19 months ago

docker pull dushixiang/kafka-map:latest

确实是果用了国内的镜像加速原因，非常感谢！

repo: dushixiang/kafka-map


text:
Updating Checkbox, Avatar, Button

Adding new styles to Checkox for Tree
Changing the size scale of Avatar
Creating an Avatar variant of button
First draft of a Tree component in Sparkle

BEWARE

Breaking change on Avatar
Tree component is not functional. Structure is there, need to port the logic.

LGTM but would love @fontanierh eyes on the Tree component to make sure it'll be extendable to how we use it :+1:

IMO no need to review as @fontanierh will probably carry out the rest later on!
Ideally @philipperolet would merge and manage migration of Avatar as he needs the Button variant avatar to complete suggest.

tree will likely require some extra but definitely not blocking to merge 👍

Very good then :)

authors: Duncid fontanierh philipperolet spolu

repo: dust-tt/dust


text:
WebCrawler: re-crawl on settings update + garbage collector

Description
Re-crawl a website when settings are changed.
This requires adding a garbage collector and factor the website creation UI as a React component to be re-used for website edition

Risk

Deploy Plan

Lock deployments
Deploy connectors edge
run queries to set depth and max pages to all existing web crawler
run connectors> initdb
deploy connectors and front

@flvndvd merging since I addressed all your comments and need to ship that 😬


text:
fix: increase rate limit of /runs to 10k

Description
2k is not enough (it's not clear we really need a daily limit at all)
Risk

Deploy Plan

This was implemented at first because some users reached 90k calls per day. Also this logic does not impact dust workspaces. Any reason to bump it?

This was implemented at first because some users reached 90k calls per day. Also this logic does not impact dust workspaces. Any reason to bump it?

Customers are not happy and want to do more calls

authors: flvndvd fontanierh


text:
migrator for notion IDs in agent dsconfigs

Description
adds transforn and clean for notion in the agent dsconfigs migrator.
Risk

Deploy Plan

Logic LGTM

authors: fontanierh spolu


text:
What do the base classes do, and are they thread safe?

It's difficult for me to know what and why BaseWidget exists. Looking at createRelativePort is seems that every time you make a port you add a context menu item. Is every widget you make really going to want to do that?
But, lacking any comments on what these classes do it’s difficult for me to guess the intention of these. It's totally norm to have no comments explaining what the class are or what they are for, btw. (although again it would not pass muster at work).
One thing that I can’t really evaluate is the abstractions you have built around the SDK classes. It’s difficult to a) know what they are for, but b) to tell is they are thread safe. For example, it looks like BaseParam objects are shared between the UI Widget and the audio processing Module. I know that the way the SDK shares params works, but I don’t know if this code works. It probably does, but I don’t really know which pieces it are called from multiple threads, so I can’t really have an opinion on that.

The base classes are definitely conveience for adding absolute/relative params with the standard suite of options. Surprisingly, yeah all the outputs on both modules all have voltage and slew controls, with relative params adding encoder strength.
Thread safety is something I'll have to think about.

authors: dustinlacewell squinkylabs


text:
ROS foxy build fails

Hi. When I'm trying to build ROS Foxy Dockerfile it is keeps on failing on step:
RUN cd ${ROS_ROOT} && colcon build --symlink-install
The error code is:

Starting >>> rosidl_typesupport_introspection_cpp
--- stderr: libyaml_vendor
CMake Error at CMakeLists.txt:108 (target_link_directories):
Unknown CMake command "target_link_directories".

Failed   <<< libyaml_vendor [6.84s, exited with code 1]

Aborted  <<< rosidl_typesupport_introspection_cpp [5.98s]
Aborted  <<< rmw [1min 37s]
Aborted  <<< fastrtps [14min 48s]

Summary: 88 packages finished [17min 19s]
1 package failed: libyaml_vendor
3 packages aborted: fastrtps rmw rosidl_typesupport_introspection_cpp
5 packages had stderr output: cyclonedds foonathan_memory_vendor libyaml_vendor mimick_vendor rcutils
108 packages not processed
The command '/bin/sh -c cd ${ROS_ROOT} && colcon build --symlink-install' returned a non-zero code: 1

Can you please advise me with this?
P.S: I was trying to remove cmake version 3.10.2 which is installing by default and install 3.13.5 but it doesn't really helped me

I'm having the same issue. Funny thing is, the last commit to that CMakeLists.txt in libyaml_vendor was apparently to fix this very problem: [(https://github.com/ros2/libyaml_vendor/commit/dfa05c83037fb501948f248aad336c64bcc8ce49)]. And that was back on December 14. I built this ros2 foxy image just a couple of weeks ago with no hitches.

Here's your hacky workaround until things are straightened out. After the last step of importing the ROS2 source code (currently on line 83 in Dockerfile.ros.foxy), get the latest commit of the libyaml_vendor CMakeLists.txt and overwrite the older commit in the ROS2 source code:
RUN rm ${ROS_ROOT}/src/libyaml_vendor/CMakeLists.txt && \
    wget --no-check-certificate https://raw.githubusercontent.com/ros2/libyaml_vendor/master/CMakeLists.txt -P ${ROS_ROOT}/src/libyaml_vendor/

Thank you a lot for your time @bigrobinson . It helped me and now working)

It seems this issue still persists and the ROS2 Foxy sources haven't been patched, so I've committed @bigrobinson workaround to master in https://github.com/dusty-nv/jetson-containers/commit/1e10908a104494a883f6855d1e9947827f2a17bc .  Thanks!

authors: bigrobinson dusty-nv maxtestsymphony

repo: dusty-nv/jetson-containers


text:
图片等静态资源放在哪儿

请问，按照 dva-doc 的结构划分 发现没有静态资源的目录，比如字体啊，图片啊。
另外问下，如果我自己在根目录创建了一个 static 文件夹用来存放静态资源，那，我应该用什么样的方法引入静态资源到程序中才更加妥当？

我们是直接传 cdn 然后用 cdn 地址的
也可以建立 static 目录，然后用相对路径 import

Okay

如果是同构呢，不起作用啊

在哪个文件夹下建立static目录，我在routes目录和根目录建立static都不行，最后打包还是都打包到dist目录下去了，css和图片并不同有打包到dist/static目录下@sorrycc

css 引的图片按相对路径引就好了，webpack 会自动处理的，打包到 dist 下，是运行时有啥问题吗?

应该是说在.js或.jsx文件中使用img标签直接引用本地文件，会“找不到文件”，只有在CSS中引用才可以
是这样的现象吧？
我也遇到了，不是太懂，求助云谦

在 2016年12月9日，上午10:19，chencheng (云谦) notifications@github.com 写道：
css 引的图片按相对路径引就好了，webpack 会自动处理的，打包到 dist 下，是运行时有啥问题吗?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/dvajs/dva/issues/169#issuecomment-265915529, or mute the thread https://github.com/notifications/unsubscribe-auth/ACv7Uo5310IeIrixyJpJGIfYS3mng2USks5rGLrEgaJpZM4KYVJ6.

 引用应该是相对 html 的吧，可以通过 webpack-copy-plugin 复制到 dist 目录下。

嗯嗯，是相对index.html的，我试试，谢谢

在 2016年12月9日，上午11:07，chencheng (云谦) notifications@github.com 写道：
applewebdata://8F4F3B1D-EF96-4561-B596-FD847A7ED5A8 引用应该是相对 html 的吧，可以通过 webpack-copy-plugin 复制到 dist 目录下。
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/dvajs/dva/issues/169#issuecomment-265921965, or mute the thread https://github.com/notifications/unsubscribe-auth/ACv7UqC9-WA3wIK0-X1-NFoL4eBgvDd8ks5rGMXWgaJpZM4KYVJ6.

我刚好昨天学了下 webpack-copy-plugin
现在可以在 npm run build 的时候，把 img/ 什么的复制到那个 dist 下。
但是那个 url-loader 好像有个什么 如果图片过小，直接base64 放到页面中 的那个配置没搞懂。
怎么在 dva 中加载 loader 也没搞懂，本来 webpack 能力就有限。说明一少，就满脸懵b啦

authors: a573367014 git-lt llqgit sorrycc yuzhouisme

repo: dvajs/dva


text:
app.router: router should be function

用create-react-app构建的
 import React from 'react';
import dva from 'dva';
import App from './App';
import './index.css';

const app = dva();
// app.model(require('./models/login'));
app.router(require('./router'))
app.start('#root');

报错：Uncaught Invariant Violation: app.router: router should be function

改成：
import Router from './router';
app.router(Router);

就可以了

//router.js
import React, { PropTypes } from 'react';
import { Router, Route } from 'dva/router';
import Login from './routes/login';

export default function({ history }) {
  return (
    <Router history={history}>
      <Route path="/login" component={Login} />
    </Router>
  );
};```

app.router接受一个function做参数吧，

把./router的代码贴出来看下.

要 require 生效，需要加 babel-plugin-add-module-exports。create-react-app 应该是没加这个。

@sorrycc 报错app.router: router should be function  把dva-hmr去掉就

@sorrycc  用import的方式引入路由的 配置dva-hmr就报Uncaught Invariant Violation: app.router: router should be function 去掉dva-hmr之后就正常运行了

authors: anhuiliujun jindada lincenying sorrycc summerinsect


text:
build 之后 react router 变成 hash 模式了

开发模式的时候使用的是正常的, build之后访问变成了hash的url，
开发模式:

http://localhost:8000/users/1/edit

build之后

http://localhost:8000/#/users/1/edit

配置呢 贴出来才能帮你啊

const webpack = require('atool-build/lib/webpack')
const path = require('path')

module.exports = function (webpackConfig, env) {
  webpackConfig.output.path = path.join(__dirname, '../api/public/admin')

  webpackConfig.babel.plugins.push('transform-runtime')
  webpackConfig.babel.plugins.push(['import', {
    libraryName: 'antd',
    style: true
  }])

  // Support hmr
  if (env === 'development') {
    webpackConfig.devtool = '#eval'
    webpackConfig.babel.plugins.push(['dva-hmr', {
      entries: [
        './src/index.js'
      ]
    }])
    webpackConfig.plugins = [...webpackConfig.plugins.filter(function (plugin) {
      return !(plugin instanceof webpack.optimize.CommonsChunkPlugin)
    }), new webpack.DefinePlugin({
      API_URL: JSON.stringify('http://localhost:8080/api'),
      FILE_URL: JSON.stringify('http://localhost:8080/')
    })]
  } else {
    webpackConfig.babel.plugins.push('dev-expression')
    webpackConfig.entry = {index: [
      'babel-polyfill','whatwg-fetch','./src/_index.js'
    ]}

    webpackConfig.plugins = [...webpackConfig.plugins.filter(function (plugin) {
      return !(plugin instanceof webpack.optimize.CommonsChunkPlugin)
    }), new webpack.DefinePlugin({
      API_URL: JSON.stringify('http://xxx.155.202.106/api'),
      FILE_URL: JSON.stringify('http://xxx.155.202.106/')
    })]
  }

  // Support CSS Modules
  // Parse all less files as css module.
  webpackConfig.module.loaders.forEach(function (loader, index) {
    if (typeof loader.test === 'function' && loader.test.toString().indexOf('\\.less$') > -1) {
      loader.include = /node_modules/
      loader.test = /\.less$/
    }
    if (loader.test.toString() === '/\\.module\\.less$/') {
      loader.exclude = /node_modules/
      loader.test = /\.less$/
    }
    if (typeof loader.test === 'function' && loader.test.toString().indexOf('\\.css$') > -1) {
      loader.include = /node_modules/
      loader.test = /\.css$/
    }
    if (loader.test.toString() === '/\\.module\\.css$/') {
      loader.exclude = /node_modules/
      loader.test = /\.css$/
    }
  })

  return webpackConfig
}

谢谢

authors: TangMonk ouzhou


text:
categories

on clicking categories no categories are visible...kindly assign it to me..i wana add some categories menu bar

Hmm that points to a bug in your DB connection. You should see 3 shoe categories in that tab. Please re-check your database connectivity and try again.

Just checked with the latest master. Everything is working as expected. Please check your database connection and try again.
Closing the issue.


text:
Implement MLP

Use the provided training set to train an MLP with one hidden layer. Apply the trained MLP
to classify the test set. Perform cross-validation with the following parameters:

Optimize number of neurons in the hidden layer (typically in the range [10,100]).
Optimize learning rates (typically in the range [0.1,1])
Optimize number of training iterations. Plot a graph showing the error on the training
set and the validation set, respectively, with respect to the training epochs.
Perform the random initialization several times and choose the best network during cross-
validation.

https://pypi.python.org/pypi/bob.learn.mlp

Use MLP implementation of scikit-learn:
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/neural_network/multilayer_perceptron.py

Alternative: https://pypi.python.org/pypi/scikit-neuralnetwork

Done with 2f010ff173e2abc25fe4d28ff4e21b1c645e474e


text:
Readme validation example are incorrect

The docs show:
validates :avatar, :is_attached => true

But when one does an upload this results in:
ArgumentError (Unknown validator: 'IsAttachedValidator')

After looking at the code, it look like one must do:
mount_uploader :avatar, MyUploader, :is_attached => true

🤷♂

Actually I see the problem: one must call mount_uploader first. I mean it's obvious but is it..?


text:
Support Multiple File Selection in Server Manager

Adds more testing opportunities. Original request:
http://www.codeproject.com/Articles/512956/NET-Shell-Extensions-Shell-Context-Menus?msg=4949506#xx4949506xx

?

Closing stale issues, please re-open if needed.

authors: benjamingr dwmkerr

repo: dwmkerr/sharpshell


text:
Procedure to build on windows

Is there a tested procedure to build this project on Windows? What are the dependencies needed? I assume we need to install gcc and make on windows?

I've added a recipe to the Makefile that cross-compiles a capnpc-java.exe Win32 executable using MinGW. The configuration is somewhat specific to my machine. If you just want the executable, you can get it here: https://dwrensha.ws/capnproto/capnpc-java.exe.zip
I added a note about this to the installation instructions.
Once you have a working capnpc-java, the rest of the project should build easily, as it's all Java. I haven't actually tested it though, so let me know if you hit any problems.

Thanks. That worked.

authors: dwrensha nchinmay

repo: dwrensha/capnproto-java


text:
aysnc serialization, compatible with futures-rs

Using #42 as a starting point, adds serialize::read_message_async() and serialize::write_message_async(). These functions return a value that represents the in-progress I/O operation and can be driven to completion through the poll() method.
Adds an optional dependency on futures-rs and implements futures::Future for the new in-progress I/O operations.
Modifies the existing serialize::read_message() and serialize::write_message() functions to use the new hand-rolled state machines under the hood. This appears to have negligible effect on performance.

I've moved the new async functions into their own module, serialize_async, and I've reverted to using the existing serialize implementation in the blocking case.

I've decided that this code belongs in its own crate. Hence: https://github.com/dwrensha/capnp-futures-rs

repo: dwrensha/capnproto-rust


text:
Added custom tooltip to ApplicationLayout

Checklist

[x] Build process is done without errors. All tests pass in the /lib directory.
[x] Self-reviewed the code before submitting.
[x] Meets accessibility standards.
[x] Added/updated documentation to /website as needed.
[x] Added/updated tests as needed.

Description
After adding the new Tooltip component, it is required to use it instead of title in the ApplicationLayout component.
Related to #1968

Closed until Tooltip component lifecycle status is New.

repo: dxc-technology/halstack-react


text:
not able to justify the text to middle center

when I am doing this
function drawText() {
const text = dxf.addText(point3d(20, 20, 0), 1, 'GGWP', {
rotation: 30,
horizontalAlignment: 1,
verticalAlignment: 2,
})
console.log('text: ', text);
}
the position of the text becomes origin

I tried second alignment point also
text.secondAlignmentPoint = point3d(20, 20, 0);
it is also not working
pls help

Hi,
I think it's the expected behavior 🤔.

Sir, if i want to add my text at (20,20) and the text justify should be middle center. How i should i do that?

Ohhhh the text is moved to the 0,0 when using alignement.
This is a bug I will fix it.

Update to v2.5.3 and try this:
import { DxfWriter, point3d, TextHorizontalAlignment, TextVerticalAlignment } from "@tarikjabiri/dxf";
const dxf = new DxfWriter();
dxf.addText(point3d(20, 20), 1, 'GGWP', {
	rotation: 30,
	horizontalAlignment: TextHorizontalAlignment.Center,
	verticalAlignment: TextVerticalAlignment.Middle,
	secondAlignmentPoint: point3d(20, 20),
});

thank you sir.

repo: dxfjs/writer


text:
docs: Add functions architecture diagram

🤖[deprecated] Generated by Copilot at 0344082
Summary
Walkthrough

Current dependencies on/for this PR:

main

PR #4744   👈

This stack of pull requests is managed by Graphite.

repo: dxos/dxos


text:
Add latest macOS support and fix issue

Description
Support for both "Mac OS X" and "macOS"
Support for macOS 10.16(11.0), Big Sur
Resolve issue #1486
Comment
The new macOS version, Big Sur, officially announced as 11.0, but according to /System/Library/CoreServices/SystemVersion.plist, its version is 10.16. So I made both works well.

After searching on google, Intel-based mac uses 10.16 and the ARM-based mac uses 11.0.

Actually it seems that Apple called it 10.16 internally so as to prevent leaks as it shows up as 11.0 on my Intel Mac in “About this Mac”. Apple will likely change the internal version in future beta releases.

After searching on google, Intel-based mac uses 10.16 and the ARM-based mac uses 11.0.

Actually it seems that Apple called it 10.16 internally so as to prevent leaks as it shows up as 11.0 on my Intel Mac in About this Mac. Apple will likely change the internal version in future beta releases.
EDIT: Not sure if this is related, but the System folder now shows a macOS logo instead of an X logo, possibly further confirming that 10.16 is only temporary and should be changed to 11.0 before the GM.

Apple started using the name macOS from 10.12 Sierra. I am not sure if Mac OS X or macOS was used on the system exactly since version after 10.12, but I think that this project has to cover all environments. Also, 10.16 and 11.0 will be mixed until ARM Mac released and before GM. Most of the contents are not available like below, so I sent a patch-type PR.

Before

After

Sounds good, and makes sense

Although to clarify, I was referencing the /System folder icon:
Catalina:

Big Sur:

Historically, the /System folder had the icon of the "major" Mac OS version number it contained (e.g. Mac OS 9)

So it would make sense for them (in my mind) to change it from X to something else if they were moving away from 10.x (they probably didn't use 11, possibly, again, to prevent leaks).

Either ways, I think the PR makes sense, for the purposes of getting neofetch to work during the betas and in the off chance 10.16 sticks around until the GM, so that's fine.

Could you review this PR? @dylanaraps

So, FYI I just found this from the Big Sur Beta release notes known issues:
“The system ProductVersion is reported as 11.0 only on the Developer Transition Kit at this time. Existing Mac systems will temporarily report the value as 10.16.”

Finally! 😄

authors: gottabeleGIT stevejkang

repo: dylanaraps/neofetch


text:
[Snyk] Security upgrade @backstage/errors from 0.0.0-use.local to 0.1.1

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):

packages/e2e-test/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Improper Verification of Cryptographic Signature SNYK-JS-ELLIPTIC-8187303
  170

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

🎉 Snyk hasn't found any issues so far.
✅ code/snyk check is completed. No issues were found. (View Details)

repo: dylansnyk/backstage


text:
Observe Go SDK Arch Refinement

Refactor Go library to match the Rust concurrency architecture: https://github.com/dylibso/observe-sdk/pull/37

We should have a generic collector struct / func per module
it should capture the events
when it gets a shutdown it should send a new object, a tracevent payload, to the singleton adapter func

Closed with https://github.com/dylibso/observe-sdk/pull/43

repo: dylibso/observe-sdk