Consider importing local rlib dependencies as CMake targets (without any build commands)

Todo: improve the description of this issue.
Sometimes users may want to set a property (e.g. an environment variable for a build script) for a ´lib´ crate, that is a dependency of a rust executable built by CMake. This requires the user to add e.g. ´staticlib´  to the crate, so that there is a cmake target created by corrosion on which the properties can be set.  Due to how incremental compilation works out this somehow works out (except for Rustflags, it doesn't work there).
To improve the situation generally, we could parse the dependencies as detected by cargo via cargo metadata, and provide users some method of setting some property (e.g. for environment variables) on the lib crate, which is then propagated to the final executable, so the user doesn't have to specify the property value for every executable, but only once for the lib.

An additional usecase is e.g. for bindings generators such as cbindgenif bindings should be generated for a rust rlib crat, a C/C++ library uses those bindings and is linked into a Rust executable containing the rlib.
It's probably not strictly necessary, and we could also just let the user specify missing information for the rlib crate


[dev_1.2.1]  Click to view the history, enter the task instance page, the results of the query based on the search conditions are displayed incorrectly

As shown above, click the View History to enter the task instance page
As shown in the following figure, according to the status of the successful query, the request parameter processInstanceId = 92 should be passed empty

+1


"error [13]" unable to deploy spring-boot example app

Hi,
me and some friends just tried the spring-boot example app. But none of us were successful. I can compile and run the spring boot application locally, but when it comes to deploying to google cloud the following error appears.

[INFO] GCLOUD: latest: digest: sha256:b0715b06dbc4f5798d3849ec88d10b0f74401c33bbc3098f8e9f77405b02c7ce size: 2416
[INFO] GCLOUD: DONE
[INFO] GCLOUD: --------------------------------------------------------------------------------
[INFO] GCLOUD:
[INFO] GCLOUD: Updating service [default]...
[INFO] GCLOUD: .....................failed.
[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Error Response: [13] Unexpected Error. ()
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:00 min
[INFO] Finished at: 2017-09-04T16:11:06+02:00
[INFO] Final Memory: 29M/322M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:appengine-maven-plugin:1.3.1:deploy (default-cli) on project helloworld-springboot: Execution default-cli of goal com.google.cloud.tools:appengine-maven-plugin:1.3.1:deploy failed: Non zero exit: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

I tried upgrading and downgrading the spring-boot version, installed a new version of maven (mine was outdated) but the error remains. Billing is enabled, the google sdk is the newst one. But the error is always the same.
Can you help me figure out, what I am doing wrong?
Thanks in advance,
Gamura

Hello!
Having the exact same problem!
Worked fine about a week ago and today I can't deploy even the getting-started-java/helloworld-servlet:
https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/helloworld-servlet
Using the latest Cloud SDK (169.0.0) and the latest appengine-maven-plugin (1.3.1).
[INFO] GCLOUD: ==== request start ====
[INFO] GCLOUD: uri: https://appengine.googleapis.com/v1/apps/ticksterimportexport/operations/36fa603b-7719-4582-967e-e65e85263d33?alt=json
[INFO] GCLOUD: method: GET
[INFO] GCLOUD: == headers start ==
[INFO] GCLOUD: Authorization: Bearer ya29.Gly9BEJMIR4laXGqP9_Xl9agt9N1eTJRFYipYyqqZE3_vdfdrivgysATwsLLuvCsroCZw-2xTXcyvukVGjWQXI6voilnV_df6xjp1rEuUuM5j_B6n2oJaeSfA5ngWw
[INFO] GCLOUD: accept: application/json
[INFO] GCLOUD: accept-encoding: gzip, deflate
[INFO] GCLOUD: content-length: 0
[INFO] GCLOUD: user-agent: google-cloud-sdk x_Tw5K8nnjoRAqULM9PFAC2b gcloud/169.0.0 command/gcloud.app.deploy invocation-id/820def8ed71b44e092aab7cdaf02e1e0 environment/appengine-maven-plugin environment-version/1.3.1 interactive/False python/2.7.13 (Windows NT 6.1.7601)
[INFO] GCLOUD: == headers end ==
[INFO] GCLOUD: == body start ==
[INFO] GCLOUD:
[INFO] GCLOUD: == body end ==
[INFO] GCLOUD: ==== request end ====
[INFO] GCLOUD: ---- response start ----
[INFO] GCLOUD: -- headers start --
[INFO] GCLOUD: -content-encoding: gzip
[INFO] GCLOUD: alt-svc: quic=":443"; ma=2592000; v="39,38,37,35"
[INFO] GCLOUD: cache-control: private
[INFO] GCLOUD: content-length: 588
[INFO] GCLOUD: content-location: https://appengine.googleapis.com/v1/apps/ticksterimportexport/operations/36fa603b-7719-4582-967e-e65e85263d33?alt=json
[INFO] GCLOUD: content-type: application/json; charset=UTF-8
[INFO] GCLOUD: date: Tue, 05 Sep 2017 10:27:14 GMT
[INFO] GCLOUD: server: ESF
[INFO] GCLOUD: status: 200
[INFO] GCLOUD: transfer-encoding: chunked
[INFO] GCLOUD: vary: Origin, X-Origin, Referer
[INFO] GCLOUD: x-content-type-options: nosniff
[INFO] GCLOUD: x-frame-options: SAMEORIGIN
[INFO] GCLOUD: x-xss-protection: 1; mode=block
[INFO] GCLOUD: -- headers end --
[INFO] GCLOUD: -- body start --
[INFO] GCLOUD: {
[INFO] GCLOUD:   "name": "apps/ticksterimportexport/operations/36fa603b-7719-4582-967e-e65e85263d33",
[INFO] GCLOUD:   "metadata": {
[INFO] GCLOUD:     "@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1",
[INFO] GCLOUD:     "method": "google.appengine.v1.Versions.CreateVersion",
[INFO] GCLOUD:     "insertTime": "2017-09-05T10:26:55.508Z",
[INFO] GCLOUD:     "user"<EMAIL_ADDRESS>[INFO] GCLOUD:     "target": "apps/ticksterimportexport/services/default/versions/20170905t122634",
[INFO] GCLOUD:     "ephemeralMessage": "Deployment failed. Attempting to cleanup deployment artifacts."
[INFO] GCLOUD:   },
[INFO] GCLOUD:   "done": true,
[INFO] GCLOUD:   "error": {
[INFO] GCLOUD:     "code": 13,
[INFO] GCLOUD:     "message": "Unexpected Error. ()"
[INFO] GCLOUD:   }
[INFO] GCLOUD: }
[INFO] GCLOUD:
[INFO] GCLOUD: -- body end --
[INFO] GCLOUD: total round trip time (request+response): 0.185 secs
[INFO] GCLOUD: ---- response end ----
[INFO] GCLOUD: ----------------------
[INFO] GCLOUD: failed.
[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Error Response: [13] Unexpected Error. ()

Thanks - I'll look into this today.

My issue is similar, it would always fail when gcloud got to the 'Updating service [default]' step with error 13. As suggested in one of the stack overflow conversations, I ran with verbosity turned to debug. Here's what I got at the end:
Updating service [default]...failed.
DEBUG: (gcloud.app.deploy) Error Response: [13] Unexpected Error. ()
Traceback (most recent call last):
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\googlecloudsdk\calliope\cli.py", line 789, in Execute
resources = args.calliope_command.Run(cli=self, args=args)
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\googlecloudsdk\calliope\backend.py", line 754, in Run
resources = command_instance.Run(args)
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\surface\app\deploy.py", line 64, in Run
parallel_build=False)
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\googlecloudsdk\command_lib\app\deploy_util.py", line 611, in RunDeploy
flex_image_build_option=flex_image_build_option)
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\googlecloudsdk\command_lib\app\deploy_util.py", line 410, in Deploy
endpoints_info)
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\googlecloudsdk\api_lib\app\appengine_api_client.py", line 171, in DeployService
message=message)
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\googlecloudsdk\api_lib\app\operations_util.py", line 206, in WaitForOperation
sleep_ms=retry_interval)
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\googlecloudsdk\api_lib\util\waiter.py", line 266, in WaitFor
sleep_ms=sleep_ms)
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\googlecloudsdk\core\util\retry.py", line 222, in RetryOnResult
if not should_retry(result, state):
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\googlecloudsdk\api_lib\util\waiter.py", line 260, in _IsNotDone
return not poller.IsDone(operation)
File "C:\Users\j\AppData\Local\Google\Cloud SDK\lib\googlecloudsdk\api_lib\app\operations_util.py", line 131, in IsDone
encoding.MessageToPyValue(operation.error)))
OperationError: Error Response: [13] Unexpected Error. ()
ERROR: (gcloud.app.deploy) Error Response: [13] Unexpected Error. ()

FWIW, I logged the same problem here https://github.com/googlecodelabs/feedback/issues/263
You can get the whole log file from that ticket.

Hello! I have a same problem!  :( any ideas about of a resolution?
Thanks

Ran into the same issue, any update on the resolution.. thanks

Hello ... same issue for any of the Flexible Java Apps. Seems like a general issue.
Your help is really appreciated.
Thanks.

Can confirm, ran into this issue as well.

Any update or workaround suggestion to get the deployment working? Thanks
and regards
On Sun, Sep 10, 2017 at 11:46 PM Roman Khlebnov<EMAIL_ADDRESS>wrote:

Can confirm, ran into this issue as well.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/getting-started-java/issues/281#issuecomment-328432520,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACVT8lsJGFQT19M5nLhmiW-PQZQkrVrTks5shNdHgaJpZM4PL_Dx
.

--
Sent from Gmail Mobile

any update? i've been really suffering due to this issue.

In order to workaround this issue, please set use_deprecated_preparation using the following command:
$ gcloud config set app/use_deprecated_preparation True
Once the above property is set, please retry deployment.

Awesome. That works for me 👍 ..Thanks !

Worked for me too! Thanks

Worked for me too !! Thank you.

Can confirm that WA worked for me as well.

Thanks alot! That workaround just saved my day.

Hm, this is weird. The deployment seems to work now even without setting the property. Can someone confirm this?

The W/A is still failing for me:
gcloud config list app/use_deprecated_preparation [app] use_deprecated_preparation = True
mvn appengine:deploy   [INFO] GCLOUD: ERROR: (gcloud.app.deploy) Error Response: [13] Unexpected Error. ()

@bcidxx , your command is wrong. It should be:
gcloud config set app/use_deprecated_preparation True

@victormlzone - sorry, i was just listing it to verify I did in fact set that property and still have troubles.

@bcidxx , are you running the spring-boot example?...it works for me. Also try running without the WA..some users are reporting no WA is needed anymore.
Regards

The WA is not needed anymore, if you still run into issues, please let us know.

Hi if you are using the latest gcloud version :
https://cloud.google.com/sdk/docs/#install_the_latest_cloud_tools_version_cloudsdk_current_version
you should n't need this workaround.
Please re-open if you run into issues.

I'm having issues today trying to deploy with this exact issue. Even if it doesn't throw the above error the instance never responds.

Have you looked at the Logs via the Google Cloud Console ? Can you post the errors you are receiving on trying to access your service ?

Same issue here:
gcloud version:
Google Cloud SDK 188.0.1
alpha 2017.09.15
beta 2017.09.15
bq 2.0.28
core 2018.02.08
gcloud
gsutil 4.28
kubectl

Updating service [default] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred during deployment.

Just ran into the same issue. Cannot deploy. The workaround doesn't work.

This just started happening to me in the last hour, while it was working fine for me this morning.
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred.
I was on 188.0.1 and tried upgrading to 189.0.0 to see if that would help but it doesn't. It has been happening to me for the last hour 100% of the time.

@econdie several Google Cloud services seem to be down right now https://status.cloud.google.com/
BTW it seems that this is a pretty generic error code. I managed to fix it in my deploy by changing an incorrect servlet mapping. Hope that helps.

Just tried recreating and was able to deploy successfully using
Google Cloud SDK 189.0.0
app-engine-java 1.9.62
app-engine-python 1.9.66
beta 2017.09.15
bq 2.0.29
core 2018.02.12
gsutil 4.28
kubectl

I will investigate further to see what might be going on.

Those GCloud service outages seem to have been resolved around 2:00 PST. Please try again and comment if you are still having issues.

I'm running into this issue now, with
Google Cloud SDK 189.0.0 beta 2017.09.15 bq 2.0.29 core 2018.02.12 gsutil 4.28

@calebjmatthews What operating system are you on, and what version of Maven are you using?
Thanks,
DZ

Apologies if I'm posting to the wrong thread; I'm using Windows 10, but I don't believe I'm using Maven at all.  The error I'm seeing is:
Updating service [default] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred during deployment.

What is the command or process you use to deploy the application?

I use gcloud app deploy.  My app.yaml is as follows:
runtime: nodejs
env: flex

env_variables:
  NODE_ENV: 'production'
  DATA_BACKEND: 'cloudsql'
  MYSQL_USER: [ROOT]
  MYSQL_PASSWORD: [MYSQL PASSWORD]
  DB_NAME: [DB NAME]
  DEV_HOST: '<IP_ADDRESS>'
  PROD_HOST: 'localhost'
  DIALECT: 'mysql'
  GOOGLE_APPLICATION_CREDENTIALS: [PATH TO KEY]
  SCRIPT: 'dist/server/app.js'

health_check:
  enable_health_check: True
  check_interval_sec: 10
  timeout_sec: 8
  unhealthy_threshold: 3
  healthy_threshold: 2

beta_settings:
 cloud_sql_instances: writer-ly:us-central1:writerly=tcp:3306

The parameters in [BRACKETS] are filled in appropriately in the actual file.

gcloud app works for other languages, but currently the practice to deploy java apps is to use the Maven plugin with mvn appengine:deploy. Please try that and let me know if it works.

The app I'm trying to deploy is actually written in node, rather than Java.

Ah, in that case gcloud app should work, but this is definitely the wrong issue and repository. Please take a look at the issues in GoogleCloudPlatform/nodejs-getting-started, and if there isn't one relevant to what you're seeing, create a new one.
Thanks
DZ

Apologies for posting in the wrong place, and thank you for the help!

I was hit by this issue today, pulled my hair out for straight six hours. I got a different error message, albeit with the same code:
Updating service [default] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] App Engine Flex failed to configure resources.

I can confirm that the following command is what did the trick for me.
gcloud config set app/use_deprecated_preparation True

In addition, I had to remove these entries from my app.yaml:
manual_scaling:
  instances: 1

I also had to remove entries that disabled health checks to get it to work, but I can't confirm yet if this is also really a cause.
Solutions tried, but didn't work:

Updated gcloud cli components as mentioned in this thread.
Enabled billing (converted to a paid account).
Tried creating a new project.

Funny thing is, I just had it enough with AWS's Elastic Beanstalk and switched to GCloud, and was hit with this..for straight 6 hours. (Still, I think the experience is far superior).
If it helps, I'm deploying a Elixir/Phoenix application with the Elixir runtime.

Hi @dsignr, sorry to hear about the difficulties in getting set up. I had a similar experience with my own app on GCP (also migrating from AWS) before I even joined Google, so I know what it's like.
Strange that you still needed to set the app/use_deprecated_preparation config value even with up-to-date gcloud cli. I will follow up with @jabubake to see what she knows about this.
I also believe I read that the manual_scaling setting is being phased out, but let me confirm that.
Let us know if you have any further difficulties.
Best,
DZ

This is still an issue. Updated gcloud cli today and am using the "fix": gcloud config set app/use_deprecated_preparation True. About to try removing the manual instance scaling as suggested by @dsignr.

I got this error, previously deploying worked and I changed no config.
File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred.

Annoying is that, this error tells me nothing what went wrong. Version:
Google Cloud SDK 206.0.0
bq 2.0.34
core 2018.06.18
gsutil 4.32

I believe this may be a temporary bug as I was also hit with this yesterday briefly and subsequent deploys succeeded.

Yes, I noticed that it actually deploys despite the error. Just had to click migrate traffic myself in the webconsole to activate the new deployment.

Getting ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred. whilst trying to setup a new deploy today...literally at a dead end now and frustrated

@andrewcashmore try running with --debug or --stacktrace

Thanks Chris, doing that now!

Unfortunately, "Error 13" is an opaque error code which can be caused by several different internal issues, so finding en exit criteria for this bug is, at the moment, challenging. It's hard to navigate this thread and help because people have had different issues. I suggest starting new bugs for subsequent issues.
On a related note, the config option app/use_deprecated_preparation is longer be necessary. It can be turned off safely using gcloud config unset app/use_deprecated_preparation. It will be removed from an upcoming version of gcloud, because it no longer serves as a workaround. If you still have an app that you believe require this option, with a recent version of the Cloud SDK, please comment here.
Didrik,
App Engine SDKs

If you still have an app that you believe require this option, with a recent version of the Cloud SDK, please comment here.
Didrik,

I had my first encountered with internal error 13 (28/10/2018) with a nodejs deployment first built 17th June 2018. Setting the app/use_deprecated_preparation fixed.

This just happened to me again, but I figured out why: I already had 10 versions deployed for my flex app. That must be some sort of internal maximum. When I deleted one the next build worked perfectly without the error. Hopefully that helps someone, although I suspect there are many more reasons why error 13 might appear.
The real bug in my case is with the error reporting. Neither the error on the command line nor any of the messaging in the web console indicated what the real problem was. The message should be changed to say something like "Maximum number of versions reached. You must delete a version before you can deploy a new one." I would also suggest providing a unique error code for that situation rather than a generic "internal error". That way it can be handled automatically by build scripts and the like.

Just happened to me using Cloud SDK version 224.0.0 (2018-11-06). The following is the app.yaml file. In this particular case, removing the segment regarding the readiness_check resulted in the app taking too long to complete, but response 13 did not appear whereas it would have otherwise immediately appeared after updating the service.
runtime: java api_version: 1 threadsafe: true env: flex automatic_scaling:   min_num_instances: 1   max_num_instances: 1   cpu_utilization:     target_utilization: 0.8 resources:   cpu: 2   memory_gb: 2.0 readiness_check:   app_start_timeout_sec: 180

Hello Everyone,
I'm having the same situation here...getting the ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred.
The deploy was working on Nov 13th and we only made a one line code change today and it stop working.
I have tried upgrade my gcloud version, re-auth with my admin account (with billing enabled for sure) and even try a code reverse to an older version but none of that helps.
I really wish we could know the reason of why it fails...otherwise for me is just to try later to see if I can get any luck. It's REALLY frustrating,

+1

Taking a look at this during the Fixit next week.

When running with --trace-log command line argument, this is the first error message that shows up for me:

Step #1: node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.1.2/node-v64-linux-x64.tar.gz

Hi Guys
I'm having a new situation now. After I deploy a new version of a standard environment instance, the previous working flexible environment just stop working. I checked the log and it says: shut down by master.
After that I tried deploy a new flexible version and it's not working. I turn on the logs and it returns Updating service failed Error Response 13 Error while processing the files. The last error is in Cloud SDK operations_util.py line 184 in IsDone.
I have no idea what to do next and I tried completely delete all the flexible vm instances and versions and re deploy but it always return this error.
I cannot find anything helpful in the log as well, it seems the vm machine starts successfully but I notice in the health check it returns total 20 unhealthy 20 healthy 0.
I really need to get our flexible environment working but now I don't know how to fix it at all.

I have been reading all the comments from 2017. It's 2020 and I still have the same problem :
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred during deployment. You may need to delete this version manually.
So can somebody help ?  I've already used verbosity and --trace stuff both gives the same explanation above.

I have been reading all the comments from 2017. It's 2020 and I still have the same problem :
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred during deployment. You may need to delete this version manually.
So can somebody help ?  I've already used verbosity and --trace stuff both gives the same explanation above.

One thing you can try though is to SSH into the instance itself and see if there's something wrong;. Try to run your server commands manually and see what errors you get. Or dig into the logs from within the instance. If you're on flex be sure to docker ps and exec into the docker container.

I have been reading all the comments from 2017. It's 2020 and I still have the same problem :
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred during deployment. You may need to delete this version manually.
So can somebody help ?  I've already used verbosity and --trace stuff both gives the same explanation above.

One thing you can try though is to SSH into the instance itself and see if there's something wrong;. Try to run your server commands manually and see what errors you get. Or dig into the logs from within the instance. If you're on flex be sure to docker ps and exec into the docker container.

Thanks I'll try to that. FYI, an instance status appears to be busy in the instances section of google cloud.

12 June 2020: Even 2 years later we still see this encrypted general error that can really mean anything and ideally we would encourage Google Cloud Dev Team to provide meaningful error messages that we can use to debug and fix such errors quickly instead of spending days and hours and weeks in identifying the issue by hit and trial in 21st century and a product from Google!
In our case, if it helps anyone, in app.yaml file we had to remove the line
application_readable: true
and it magically worked. This is 200% confirmed that this line was leading to error. The same app.yaml file works perfectly in older configuration. And of course Gcloud didn't say there was any error in app.yaml file etc. It is just us trying hundreds of things to identify one line!
For GCloud to grow effectively they really need to be looking out for such forums and address issues in a timely manner and not leave these things to the developers to fend for themselves... not a good approach.
Hope the above helps and helps someone save hours and days and weeks!
Thank you.

gcloud config set app/use_deprecated_preparation True
this command is not working ,Showing error as : ERROR: (gcloud.config.set) Section [app] has no property [use_deprecated_preparation]
Please anyone can sugggest what should I do for the same above error ?

gcloud config set app/use_deprecated_preparation True
this command is not working ,Showing error as : ERROR: (gcloud.config.set) Section [app] has no property [use_deprecated_preparation] Please anyone can sugggest what should I do for the same above error ?

Please open a new issue with what sample you are trying to deploy, your config files, your Java version, and how you are trying to deploy it. Thanks

gcloud config set app/use_deprecated_preparation True
this command is not working ,Showing error as : ERROR: (gcloud.config.set) Section [app] has no property [use_deprecated_preparation] Please anyone can sugggest what should I do for the same above error ?

Please open a new issue with what sample you are trying to deploy, your config files, your Java version, and how you are trying to deploy it. Thanks

I did it , Please help me if anyone can.

@bcidxx , your command is wrong. It should be:
gcloud config set app/use_deprecated_preparation True

you are right.Your command works perfectly.

You can no longer use gcloud config set app/use_deprecated_preparation True as it does not exist.
Here is the new command I believe, worked for me:
gcloud config set storage/use_gsutil true
Found it here: https://cloud.google.com/sdk/gcloud/reference/config/set

I've tried running the command but yet I still get the same error.
given that the same deployment workflow works fine on the tests environment, and fails on prod... any ideas?

I tried running the gcloud config set storage/use_gsutil true command as well and that didn't fix the issue so what I did was fix my run time because when I changed my env to flex my runtime was specific to the node version I have installed
originally I had
runtime: nodejs16
env: flex
solution
runtime: nodejs
env: flex

As of July 2023, can confirm that the workarounds presented here didn't work either.
That I tried without luck was:

upgrading the gcloud sdk cli tool (currently google-cloud-cli-440.0.0-linux-x86_64)
Removing application_readable: true handler element from yaml configurations
Executing the gcloud config set storage/use_gsutil true

I added the --verbosity=debug flag to the gcloud app deploy command and all that I see is this:
DEBUG: Operation [apps/ewx-tryout/operations/fff0e3b7-a1b8-4034-bb43-50c13413e0cc] not complete. Waiting to retry.
Updating service [crunch]...
.....DEBUG: Operation [apps/ewx-tryout/operations/fff0e3b7-a1b8-4034-bb43-50c13413e0cc] not complete. Waiting to retry.
.............................DEBUG: Operation [apps/ewx-tryout/operations/fff0e3b7-a1b8-4034-bb43-50c13413e0cc] complete. Result: {
    "done": true,
    "error": {
        "code": 13,
        "message": "An internal error occurred."
    },
    "metadata": {
        "@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1",
        "endTime": "2023-07-28T12:26:30.749Z",
        "insertTime": "2023-07-28T12:26:26.681Z",
        "method": "google.appengine.v1.Versions.CreateVersion",
        "target": "apps/ewx-tryout/services/crunch/versions/85de954",
        "user"<EMAIL_ADDRESS>    },
    "name": "apps/ewx-tryout/operations/fff0e3b7-a1b8-4034-bb43-50c13413e0cc"
}
failed.
DEBUG: (gcloud.app.deploy) Error Response: [13] An internal error occurred.
Traceback (most recent call last):
  File "/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 987, in Execute
    resources = calliope_command.Run(cli=self, args=args)
  File "/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 807, in Run
    resources = command_instance.Run(args)
  File "/google-cloud-sdk/lib/surface/app/deploy.py", line 127, in Run
    return deploy_util.RunDeploy(
  File "/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 692, in RunDeploy
    deployer.Deploy(
  File "/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 471, in Deploy
    self.api_client.DeployService(new_version.service, new_version.id,
  File "/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py", line 230, in DeployService
    return operations_util.WaitForOperation(
  File "/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py", line 307, in WaitForOperation
    completed_operation = waiter.WaitFor(
  File "/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 261, in WaitFor
    operation = PollUntilDone(
  File "/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 322, in PollUntilDone
    operation = retryer.RetryOnResult(
  File "/google-cloud-sdk/lib/googlecloudsdk/core/util/retry.py", line 249, in RetryOnResult
    if not should_retry(result, state):
  File "/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 320, in _IsNotDone
    return not poller.IsDone(operation)
  File "/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py", line 182, in IsDone
    raise OperationError(requests.ExtractErrorMessage(
googlecloudsdk.api_lib.app.operations_util.OperationError: Error Response: [13] An internal error occurred.
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred.
Finished generating spec using endpointscfg.py
Parsing openapi json .build_py2/json/ewxv1openapi.json and extend it with extra information
Parsing ewx_gae.api collection and creating tags...
Specfile updated
Patching Swagger javascript bundle file: ../api_py2/patches/swagger-js/swagger-ui-bundle.js
Patching swagger js file: %s ../api_py2/patches/swagger-js/swagger-ui-bundle.js
Swagger js file patched!
Patching Swagger javascript preset file: ../api_py2/patches/swagger-js/swagger-ui-standalone-preset.js
Patching swagger preset js file: %s ../api_py2/patches/swagger-js/swagger-ui-standalone-preset.js
Swagger preset js file patched!
Building py2 - inner
Deploying py2 to ewx-tryout with version 85de954
Services: ['default', 'crunch', 'integration']
Region: europe-west1
Build dir: .build_py2
Yamls: ['.build_py2/default.yaml', '.build_py2/crunch.yaml', '.build_py2/integration.yaml']
Command: gcloud app deploy .build_py2/*.yaml --project ewx-tryout --version 85de954 --promote --verbosity=debug
section_end:1690547194:step_script
section_start:1690547194:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1690547194:cleanup_file_variables
ERROR: Job failed: exit code 1

Not sure if this kind of particular error is still valid and how that can be solved. Will be nice to get more orientation from google about this.

I managed to overcome the ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred occured in the following way:
What I did was add Editor permissions to the customs service account we are using to deploy AppEngine application services. Let me explain the why:
I did that based on this google app engine group thread conversation, the official support there explore and implicitly defined that the origin of this intenal error is due to that they may be using a different default service account to deploy on AppEngine.
Then reading further, here says  Google App Engine as a service has a default service account when an AppEngine application is created (not that one used at deployment time), and implicitly GCP as a provider expect that service account to be used to deploy AppEngine services.

After you create an App Engine application, the App Engine default service account is created and used as the identity of your App Engine app. The App Engine default service account is associated with your Google Cloud project and executes tasks on behalf of your apps running in App Engine.
By default, the App Engine default service account has the Editor role in the project. This means that any user account with sufficient permissions to deploy changes to the Google Cloud project can also run code with read/write access to all resources within that project.

Then according to the previous quote paragraph above, for legacy services on the app engine, the service account used to deploy expect to have Editor permissions in the same way the internal default service account does.
After doing this, the ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred was not presented anymore.

Hey @bgarcial I believe you are right. I was having the same issue.
Giving editor fixes it. Funny that is against Google recommendation :$
https://cloud.google.com/appengine/docs/flexible/troubleshooting#default-sa-permissions

@bgarcial I can confirm that giving "Editor" role to the service account resolves the issue. Thanks a lot.
I am surprised by how terrible the developer experience was here. No descriptive error messages, no explicit documentation, and a counter-intuitive solution that goes against best practices.
Having to make the service account the editor of the entire project is simply unacceptable, but there is not much we can do unless Google decides to do something about it. I do not have high hopes for that, sadly.


ghostscript for Windows

Issue:
Hey @ocefpaf, why is ghostscript not available for Windows through conda?

Environment (conda list):

$ conda list

Details about  conda and system ( conda info ):

$ conda info

Because we don't have a Windows expert/champion to build it :smile:
If you understand about building packages on Windows please send a PR!

Haha, I'm not a Windows expert but can look into building ghostscript for Windows. Right off the top, I found this link on the ghostscript site which details how to build a ghostscript executable from source code. Is there any other links you can point me to wrt building on Windows? Thanks!

Fixed in #6

Thanks!


data base error

#1115 - Unknown character set: 'utf8mb4'

I think the Problem is you upload the tables with uf8.
Example: Login phpmyadmin -> create a database -> than go to import -> and only upload the sql -> start upload

yap ty fixed

Np Brah ;)
#CloseRequest ^^


[REVIEW] turn public port and private port

Fixed https://github.com/leap-solutions-asia/auto-scaling/issues/16

It's only changing template. I'll merge it.


freestyle-fetch integration

@dialelo @peterneyens I realize I was going in the wrong direction regarding the approach with persistence and in this case Fetch.
I think this is a compromise that would allow integrations to simply integrate in the monadic/applicative flow of the app exposing a way to go to any M[_] as long as the integration supports it. In this case Fetch supports many and thanks to it it becomes a great example of integrating into an app for which multiple target M[_] are supported in this case Task, Future, and whatever can conform to FetchMonadError.
This integration is based on the ability of a lib exposing ops to lift those to FreeS and FreeS.Par implementing FreeSLift. All instances automatically receive syntax to do it.
In the case of Fetch we expose the run ops as an algebra so Fetch ops are also interpreted when the entire program is interpreted.
Let me know your thoughts and if there is something you'd change.

Amazing! Really nice to be able to interleave Fetch with your own algebras 👏 👏

:+1:
I think there are a couple of unused imports, but they can be cleaned up later.


error using letsencrypt

i just wrote "./letsencrypt-auto --help" and i've got this error:

peep: (3, 1, 1)
python: '2.7.6 (default, Jun 22 2015, 17:58:13) \n[GCC 4.8.2]'
pip: '1.5.4'
Command line:  ['/tmp/tmp.QxN0Hta4K1/peep.py', 'install', '-r', '/tmp/tmp.QxN0Hta4K1/letsencrypt-auto-requirements.txt']
Traceback (most recent call last):
File "/tmp/tmp.QxN0Hta4K1/peep.py", line 967, in
exit(main())
File "/tmp/tmp.QxN0Hta4K1/peep.py", line 939, in main
return commandsargv[1]
File "/tmp/tmp.QxN0Hta4K1/peep.py", line 884, in peep_install
req.install()
File "/tmp/tmp.QxN0Hta4K1/peep.py", line 652, in install
run_pip(['install'] + other_args + ['--no-deps', '-U', archive_path])
File "/tmp/tmp.QxN0Hta4K1/peep.py", line 206, in run_pip
status_code = pip.main(initial_args)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/init.py", line 185, in main
return command.main(cmd_args)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 79: ordinal not in range(128)

I got the exact same error and debug output trying to run ./letsencrypt-auto renew.

Dupe of #127


Shuttle Assembly Crate

Adds a "shuttle assembly crate" for 2500pts to cargo with the following contents:

1 shuttle console board
1 wallmount substation board
1 shuttle APU board
1 handheld GPS
1 inflatable door

Also reduced the price of thrusters and gyroscopes since they seem overpriced for their purpose on the station.
As a tortured yet hopeful shuttle enjoyer I feel the process of making a shuttle is just so much more tedious, buggy, time consuming, and risky than it needs to be. It's such an excellent feature that it pains me how impractical and frustrating it can be right now.

This crate should give anyone knowledgeable and ambitious enough to try making a shuttle more leeway to do so. The shuttle APU generates just enough for a truly rudimentary shuttle to roam around in space, yet not enough to keep 4 thrusters and a gyro going.
The wallmounted utilities cannot be used when placed on walls right now unfortunately, though you can still place them on the floor and walk over them. Certainly better for a cramped shuttle. They fit the theme as well.

About the PR
Screenshots

Changelog

:cl: ShuttleEnjoyer

add: Added a new Cargo crate with a shuttle console board, shuttle power boards, a handheld GPS, and a single inflatable door.
tweak: Shuttle thrusters and gyroscopes cost less.

This is 1) too cheap and 2) makes salvage redundant. I do not feel this is a good idea.

Salvage seems to be mainly useful for thrusters and gyros ime.
If they find other things then they don't seem to bother bringing them even if asked.
Getting the generator, substation, and shuttle board is the truly painful part sadly and this resolves that at least.
Would you approve if I put the thrusters and gyros back or even raised the price?

Salvage seems to be mainly useful for thrusters and gyros ime. If they find other things then they don't seem to bother bringing them even if asked. Getting the generator, substation, and shuttle board is the truly painful part sadly and this resolves that at least. Would you approve if I put the thrusters and gyros back or even raised the price?

I do not want to actively encourage cargo to not do their job even more than shuttle building already does.

I see your reasoning now. I have seen them ignore their job to do that before.
Mainly I play as engineer when shuttle building, which is a job that I find is in an easier position to do so.
My main motivation for doing this is that the time it takes for R&D to get to that point and the overall walking around to find the people who you need to help(unless you're an asshole and steal important stuff like a substation) makes shuttle building very impractical for anyone at all.
That's not counting the risk of disasters happening which halt everything, or any places you need just refusing to do their job.
Any ideas for improving this without distracting salvagers too much?

Can you place the APU then build a wall?
Anyhow relating to the PR. It might be better to just have this as a shuttle power crate with like two APU boards and one or two wall mount substations. Personally I like the idea of science or salvage having to obtain the shuttle board plus the other components can be bought I believe.

Can you place the APU then build a wall?
Yup. The only limitation is that to interact with it directly you need to remove the wall.
Wallmounted NanoMeds have the same problem last I checked.
shuttle power crate
Sounds good, and should discourage stealing substations(very mean). I'll give that a try.

Shuttle board removed. Price increased. Only 1 substation + APU still.
Hopefully when/if sensitive items can be locked then the QM will have to approve them first.
In MRP at least I can see QMs easily refusing and telling the salvagers to get back to work.


Cannot import markupsafe in Python 3.1 or 3.2 due to explicit unicode literals

I cannot import markupsafe in Python 3.1 or 3.2. This is because it uses explicit unicode literals in a few places, which were absent in Python 3.1 and 3.2 but restored in Python 3.3.
$ python3.2
Python 3.2.5 (default, Nov 18 2013, 15:24:38)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import markupsafe
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/markupsafe/__init__.py", line 70
    def __new__(cls, base=u'', encoding=None, errors='strict'):
                            ^
SyntaxError: invalid syntax

Could this be either fixed, or else the limitation to Python <= 2.7 or >= 3.3 documented in the README file and the PyPI classifiers?

If someone needs to get arouond this:

go to the site-packages folder and remove the two markupsafe folders in there

Install version 0.15 with pip:

$ pip install markupsafe==0.15
I tried to install 0.16 but it produced the mentioned errors, the unicode literals seem to be introduced in 0.16,


Import failed with latest comfy update

Traceback (most recent call last):
File "D:\ComfyUI\nodes.py", line 1993, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\ComfyUI\custom_nodes\was-node-suite-comfyui_init.py", line 1, in
from .WAS_Node_Suite import NODE_CLASS_MAPPINGS
File "D:\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 37, in
from numba import jit
File "D:\ComfyUI\venv\lib\site-packages\numba_init_.py", line 42, in
from numba.np.ufunc import (vectorize, guvectorize, threading_layer,
File "D:\ComfyUI\venv\lib\site-packages\numba\np\ufunc_init_.py", line 3, in
from numba.np.ufunc.decorators import Vectorize, GUVectorize, vectorize, guvectorize
File "D:\ComfyUI\venv\lib\site-packages\numba\np\ufunc\decorators.py", line 3, in
from numba.np.ufunc import _internal
SystemError: initialization of _internal failed without raising an exception
Cannot import D:\ComfyUI\custom_nodes\was-node-suite-comfyui module for custom nodes: initialization of _internal failed without raising an exception

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

I had the same error. Opening a CMD window in custom_nodes\was-node-suite-comfyui
and doing
pip install -r requirements.txt
fixed it for me.

You are missing numba
As the comment above suggests, install the requirements. When you update ComfyUI, or even some other custom nodes, some things may be overwritten to wrong versions.

it wants an older version of NumPy for me.
ImportError: Numba needs NumPy 2.0 or less. Got NumPy 2.1.


how to get cm_scores for eval set when labels are not present

hey,
Thanks for the repository!
I'm trying to test the model with ocsoftmax loss on a test set which do not contains labels but to surprise in the file test.py also labels are being used, which makes it impossible to calculate CM scores without the use of labels at least when using ocsoftmax or amsoftmax loss. Am I missing something? Please be patient and gentle. I have just started working on this topic.
Hope you reply soon.
Thanks
Here is a snapshot of the test.py for your reference.

ohhh okay, thank you so much for such a fast response. Now I get it.
And if I may ask, are you participating in ASVspoof 2021? It would be great if you could provide some guidance regarding that.
A maid id or any other way to contact you to discuss it further would be great.
Thanks in Advance

Please reach out to<EMAIL_ADDRESS>regarding that. I will close this issue for now. Thanks.


Ember 2.x Glimmer 2 Support

This PR includes full support for Ember 2.x + Glimmer 2. I have restructured the addon to use contextual components to remove all the parent/child component dependencies via nearestWithProperty and removed all deprecations (including all the double renders). I feel like there is a lot more work to do in improving the performance of this lib but that should be focused on in separate PRs.
For usage examples, please see the demo pages as well as the nf-graph.hbs and nf-graph-content.hbs files.

[x] Ember 2.x Support
[x] Glimmer 2 Support
[x] 100% Contextual components
[x] 100% deprecation free
[x] Updated demo pages
[ ] Update Tests
[ ] Update Docs

I'm not sure how much time I will have in the future to work on tests + docs so if someone wants to take that over, that would be super helpful.

@offirgolan Hey... I don't think anyone is maintaining this anymore, and I'm no longer at Netifx so I wouldn't have access to merge this anyhow. Perhaps reach out to @jayphelps or @jeff3dx ... they actually touch the project inside Netflix that this is used with.

Hey @offirgolan can your team team ownership of this project? We no longer maintain it as our ember app (as of now) is pretty firmly stuck on 1.12.

hey @jayphelps Offir is out on vacation but we can take ownership of the project!

@KurtisC07 @offirgolan Just confirmed with the rest of my team. The project is now yours! Let us know if you have questions. Feel free to merge this PR or do as you see fit.

Awesome! Take good care of it! I loved it once!
❤❤❤❤❤

@offirgolan let's get this merged next week

@ebryn sounds good. Who has merge access to this repo?


[UI] Dark Mode Bug in Kubernetes Config Modal

Current Behavior

Desired Behavior

We should be using our standard dark mode styling for action buttons.
Screenshots/Logs

Environment

Browser: Chrome Safari Firefox
Host OS: Mac Linux Windows
Meshery Server Version: stable-v
Meshery Client Version: stable-v
Platform: Docker Kubernetes

Contributor Guides and Handbook

🎨 Wireframes and designs for Meshery UI in Figma (open invite)
🖥 Contributing to Meshery UI
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

hey @theBeginner86 i would like to work on this can you assign this to me?

@vaibhavpnimkar you can go ahead

For reference, you can use focused color from theme

hey @Yashsharma1911 i am not able find code/styling for import button can you navigate me there plz?

i have fixed the issue plz review @Yashsharma1911 @theBeginner86


US KY Lexington

Closes: https://github.com/openaddresses/openaddresses/issues/4375

Closing as stale


[FEAT]: Use System Folder as RAG's Knowledge Base

What would you like to see?
I’m utilizing Anything LLM as a knowledge assistant to discuss business processes and share my own insights, which I periodically record in documents. However, I’m facing a challenge keeping the system up-to-date with the evolving nature of these files, as they are not static documents.
My ideal solution would be a RAG system that enables me to:

Directly access answers from a set of files within a designated folder (and possibly subfolders) on my computer. To avoid scanning, splitting, and embedding unnecessary files in case of subfolders, I’d like the ability to specify file extension filters.
Automatically detect changes to the documents and rebuild the vector database at a scheduled interval, during agent use, or when deemed necessary.
Ensure that the vector database update occurs in memory, in the background, without disrupting agent usage that can continue working with outdated content until the new context data becomes available. Once the new embeddings and indexing are complete. This would enable Anything LLM to reduce the time of locking the system for usage only to the time it takes to serialize changes to the vector database, and loading the new vector database to memory for the operation of the agent.

Implementing this feature would significantly enhance the suitability of Anything LLM for my intended use case. Additionally, I’m impressed with the project’s progress and intend to contribute financially from time to time.

This is right on target.  Adding, tracking, updating files is a real issue.  Pointing to a folder(s)/subfolder(s) would absolutely be a next level enhancement for this wonderful piece of tech.

If anyone is watching this, live file sync for remote files (web, Github, etc) is already "live" in beta https://docs.useanything.com/beta-preview/active-features/live-document-sync and the soon to be merged branch desktop-local-file-sync will expand that to any locally upload file for desktop only.
Permissions disable us from being able to do this with local files for self-hosting and obviously remote hosted instances. So local file sync will only ever be on desktop

The mentioned branch doesn't exist anymore, however I don't yet see this in v1.6.4? Or am I missing something?

It is in the app under experimental:
https://docs.anythingllm.com/beta-preview/enable-feature
Then you can enable it. It is under there because without a doubt someone will try to proactively track 10K files and wonder why it uses so many resources & that is currently out of scope for its current support.
https://docs.anythingllm.com/beta-preview/active-features/live-document-sync


About App Service plan supported by App Cloning

Thank you for always providing useful information.
This Document writes, "App cloning is currently only supported for premium tier app service plans.", But if you look at the following site, it seems that it also supports Isolated tier.

App Service Plans | Microsoft Azure
https://azure.microsoft.com/en-in/pricing/details/app-service/plans/

Also, I tried App cloning in practice, but it can be done in the Standard tier.
For now, can Microsoft check and document on app service plans for which App Cloning is available?

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

ID: daf14087-1765-4636-805c-6faec03d8a9b
Version Independent ID: 4a6b910d-403e-997a-b010-0942e8ef624c
Content: Clone app with PowerShell - Azure App Service
Content Source: articles/app-service/app-service-web-app-cloning.md
Service: app-service-web
GitHub Login: @ahmedelnably
Microsoft Alias: aelnably

@kogesaka Thanks for the feedback! We are currently investigating and will update you shortly

@kogesaka Thanks again for the feedback! I have assigned the issue to the content author to review further and update the document as appropriate.

@Nking92 what are the current SKUs supports cloning?

Cloning is now available for Standard SKU as well

Documentation has been updated to list out all of the supported SKUs.
#please-close


nixfromnpm is compiled multiple times during build

Presumably due to the way the cabal file is built, nixfromnpm code is compiled several times, resulting in unnecessarily long build times.
building
Building nixfromnpm-0.13.0...
Preprocessing library nixfromnpm-0.13.0...
[ 1 of 13] Compiling Paths_nixfromnpm ( dist/build/autogen/Paths_nixfromnpm.hs, dist/build/Paths_nixfromnpm.o )
[ 2 of 13] Compiling Filesystem.Path.Wrappers ( src/Filesystem/Path/Wrappers.hs, dist/build/Filesystem/Path/Wrappers.o )
[ 3 of 13] Compiling NixFromNpm.Common ( src/NixFromNpm/Common.hs, dist/build/NixFromNpm/Common.o )
[ 4 of 13] Compiling NixFromNpm.Git.Types ( src/NixFromNpm/Git/Types.hs, dist/build/NixFromNpm/Git/Types.o )
[ 5 of 13] Compiling NixFromNpm.HttpTools ( src/NixFromNpm/HttpTools.hs, dist/build/NixFromNpm/HttpTools.o )
[ 6 of 13] Compiling NixFromNpm.Npm.PackageMap ( src/NixFromNpm/Npm/PackageMap.hs, dist/build/NixFromNpm/Npm/PackageMap.o )
[ 7 of 13] Compiling NixFromNpm.Npm.Version ( src/NixFromNpm/Npm/Version.hs, dist/build/NixFromNpm/Npm/Version.o )
[ 8 of 13] Compiling NixFromNpm.Npm.Types ( src/NixFromNpm/Npm/Types.hs, dist/build/NixFromNpm/Npm/Types.o )
[ 9 of 13] Compiling NixFromNpm.Conversion.ToNix ( src/NixFromNpm/Conversion/ToNix.hs, dist/build/NixFromNpm/Conversion/ToNix.o )
[10 of 13] Compiling NixFromNpm.Npm.Resolve ( src/NixFromNpm/Npm/Resolve.hs, dist/build/NixFromNpm/Npm/Resolve.o )
[11 of 13] Compiling NixFromNpm.Options ( src/NixFromNpm/Options.hs, dist/build/NixFromNpm/Options.o )
[12 of 13] Compiling NixFromNpm.Conversion.ToDisk ( src/NixFromNpm/Conversion/ToDisk.hs, dist/build/NixFromNpm/Conversion/ToDisk.o )
[13 of 13] Compiling NixFromNpm       ( src/NixFromNpm.hs, dist/build/NixFromNpm.o )
Preprocessing executable 'nixfromnpm' for nixfromnpm-0.13.0...
[ 1 of 14] Compiling Paths_nixfromnpm ( dist/build/autogen/Paths_nixfromnpm.hs, dist/build/nixfromnpm/nixfromnpm-tmp/Paths_nixfromnpm.dyn_o )
[ 2 of 14] Compiling Filesystem.Path.Wrappers ( src/Filesystem/Path/Wrappers.hs, dist/build/nixfromnpm/nixfromnpm-tmp/Filesystem/Path/Wrappers.dyn_o )
[ 3 of 14] Compiling NixFromNpm.Common ( src/NixFromNpm/Common.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/Common.dyn_o )
[ 4 of 14] Compiling NixFromNpm.Git.Types ( src/NixFromNpm/Git/Types.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/Git/Types.dyn_o )
[ 5 of 14] Compiling NixFromNpm.HttpTools ( src/NixFromNpm/HttpTools.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/HttpTools.dyn_o )
[ 6 of 14] Compiling NixFromNpm.Npm.PackageMap ( src/NixFromNpm/Npm/PackageMap.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/Npm/PackageMap.dyn_o )
[ 7 of 14] Compiling NixFromNpm.Npm.Version ( src/NixFromNpm/Npm/Version.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/Npm/Version.dyn_o )
[ 8 of 14] Compiling NixFromNpm.Npm.Types ( src/NixFromNpm/Npm/Types.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/Npm/Types.dyn_o )
[ 9 of 14] Compiling NixFromNpm.Conversion.ToNix ( src/NixFromNpm/Conversion/ToNix.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/Conversion/ToNix.dyn_o )
[10 of 14] Compiling NixFromNpm.Npm.Resolve ( src/NixFromNpm/Npm/Resolve.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/Npm/Resolve.dyn_o )
[11 of 14] Compiling NixFromNpm.Options ( src/NixFromNpm/Options.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/Options.dyn_o )
[12 of 14] Compiling NixFromNpm.Conversion.ToDisk ( src/NixFromNpm/Conversion/ToDisk.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/Conversion/ToDisk.dyn_o )
[13 of 14] Compiling NixFromNpm.Merge ( src/NixFromNpm/Merge.hs, dist/build/nixfromnpm/nixfromnpm-tmp/NixFromNpm/Merge.dyn_o )
[14 of 14] Compiling Main             ( src/Main.hs, dist/build/nixfromnpm/nixfromnpm-tmp/Main.dyn_o )
Linking dist/build/nixfromnpm/nixfromnpm ...
Preprocessing test suite 'unit-tests' for nixfromnpm-0.13.0...
[ 1 of 14] Compiling Paths_nixfromnpm ( dist/build/autogen/Paths_nixfromnpm.hs, dist/build/unit-tests/unit-tests-tmp/Paths_nixfromnpm.dyn_o )
[ 2 of 14] Compiling Filesystem.Path.Wrappers ( src/Filesystem/Path/Wrappers.hs, dist/build/unit-tests/unit-tests-tmp/Filesystem/Path/Wrappers.dyn_o )
[ 3 of 14] Compiling NixFromNpm.Common ( src/NixFromNpm/Common.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm/Common.dyn_o )
[ 4 of 14] Compiling NixFromNpm.Git.Types ( src/NixFromNpm/Git/Types.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm/Git/Types.dyn_o )
[ 5 of 14] Compiling NixFromNpm.HttpTools ( src/NixFromNpm/HttpTools.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm/HttpTools.dyn_o )
[ 6 of 14] Compiling NixFromNpm.Npm.PackageMap ( src/NixFromNpm/Npm/PackageMap.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm/Npm/PackageMap.dyn_o )
[ 7 of 14] Compiling NixFromNpm.Npm.Version ( src/NixFromNpm/Npm/Version.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm/Npm/Version.dyn_o )
[ 8 of 14] Compiling NixFromNpm.Npm.Types ( src/NixFromNpm/Npm/Types.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm/Npm/Types.dyn_o )
[ 9 of 14] Compiling NixFromNpm.Conversion.ToNix ( src/NixFromNpm/Conversion/ToNix.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm/Conversion/ToNix.dyn_o )
[10 of 14] Compiling NixFromNpm.Npm.Resolve ( src/NixFromNpm/Npm/Resolve.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm/Npm/Resolve.dyn_o )
[11 of 14] Compiling NixFromNpm.Options ( src/NixFromNpm/Options.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm/Options.dyn_o )
[12 of 14] Compiling NixFromNpm.Conversion.ToDisk ( src/NixFromNpm/Conversion/ToDisk.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm/Conversion/ToDisk.dyn_o )
[13 of 14] Compiling NixFromNpm       ( src/NixFromNpm.hs, dist/build/unit-tests/unit-tests-tmp/NixFromNpm.dyn_o )
[14 of 14] Compiling Main             ( tests/Unit.hs, dist/build/unit-tests/unit-tests-tmp/Main.dyn_o )
Linking dist/build/unit-tests/unit-tests ...
running tests
Running 1 test suites...

Presumably this would just involve restructuring the cabal file, but I'm not sure the best way to do it.

I think this ticket is technically a duplicate of #80 which documents the root cause of what this ticket describes.
The solution is to make nixfromnpm a library which is then also provided in the build-depends sections for the executable and test.
An example of doing this can be found in the hocker project. For instance we define a library section that contains the majority of the generic code: https://github.com/awakesecurity/hocker/blob/master/hocker.cabal#L47
Which is then depended on by the more specific executables: https://github.com/awakesecurity/hocker/blob/master/hocker.cabal#L122
If nixfromnpm were structured in a similar manner, it would fix this specific issue. I tried tackling that a long time ago but realized that in order to do this the refactoring is going to cut deep and in the interest of not submitting giant controversial pull requests I refrained from doing that.
However, I fully support doing this work because library-izing nixfromnpm can only be good because in the short-term it will make the code organization clearer but long-term it makes it easier to generalize this project to something that generates build instructions for other systems beyond Nix if someone else (or you!) wanted to do that.

I think it would be less controversial at this point to do that refactoring work though.
However, if I were to prioritize this work, I'd say that it is actually less important than a few other refactoring needs which have a material impact on the usability of the resulting code generation product.
Notably, I think we need to make a backwards breaking refactor to the way that we import and call individual node packages so that they take all of their dependencies at the top-level of their intake arguments instead of in the nodePackages argument. The reason for this is that it impedes easy overriding of the dependencies that are threaded into the package.
I think solving the optionalDependencies issue is also more important and I think making the build and install steps more easily overridden are more important.

As an initial pass, I don't think it needs to be a large refactor -- the PR that I just made speeds up the build and thus solves at least the surface level problem. I agree it's not the most important issue, but having faster iteration times is pretty nice.

Yeah for some reason when I tried doing that I think I started following the interface exports and it seemed hairier at the time than your existing PR makes it seem. Maybe I'm mis-remembering something. Either way good to see it was such a quick change!
I agree that faster iteration time is a good thing.

When I first tried it, I got a bunch of errors about missing symbols that looked super gnarly. I realized that was just because I wasn't listing the packages in the other-modules section. Which to me seems like a really basic piece of functionality missing from cabal, but that fixed that.


issues with Emojis in labels

I've tried to distill this down as much as I could and have a pretty basic reproducible case.
I have a completely empty view with this code, using TTTAttributedLabel 1.10.1
TTTAttributedLabel *attributedLabel = [[TTTAttributedLabel alloc] initWithFrame:CGRectMake(100, 100, 200, 0)];
attributedLabel.delegate = self;
attributedLabel.font = [UIFont systemFontOfSize:15];
attributedLabel.text = @"Tap here! \U0001F604 \U0001F610";
attributedLabel.linkAttributes = @{NSFontAttributeName : [UIFont boldSystemFontOfSize:15]};

[attributedLabel addLinkToURL:[NSURL URLWithString:@"DOESNOTMATTER"] withRange:[attributedLabel.text rangeOfString:@"Tap here! \U0001F604 \U0001F610"]];;
CGRect frame = attributedLabel.frame;

frame.size.height = [attributedLabel sizeThatFits:attributedLabel.frame.size].height;

// same result using this
// frame.size.height = [TTTAttributedLabel sizeThatFitsAttributedString:attributedLabel.attributedText withConstraints:attributedLabel.frame.size limitedToNumberOfLines:0].height;
attributedLabel.frame = frame;
[self.view addSubview:attributedLabel];

The 2 problems I'm seeing are:

Top of emojis are cut off at resting state
When links are selected, the whole label shifts down a bit (at which point, the bottom of the emojis are cut off)

GIF here:

I get the same result using sizeToFit, sizeThatFits: and the TTTAttributedLabel method sizeThatFitsAttributedString:withConstraints:limitedToNumberOfLines:
Any ideas?

@qdvictory your solution worked for me using system font line height and setting minimum and maximum line height to my label, I was facing almost same issue but a bit difference that when I have multi line emojis set in my label, emojis overlaps and I was using custom font, however I didn't use lineSpacing attribute
Thanks

With regards to your second issue of text jumping, I just submitted PR #482 to address this.  The problem is that activeLinkAttributes was changing the paragraph styling of the link.

I'm seeing another issue now where line spacing in labels with emojis is all messed up. This is what a multiline label with some emojis looks like using system font of size 15 and no other custom attributes (other than a single color)

Anyone have any ideas on how to even out the line spacing? Is there another submitted issue or any workarounds?

Had wondered if this was desired effect. This is what messages does in iOS8.2 so it absolutely isn't the desired effect. Tested with both using line breaks and not using line breaks and does the same. Don't currently have an app using latest TTTAttributedLabel so can't play around with it at the moment.

Yeah this does not happen with the Apple system views (I tried UILabel and UITextView)

I'm having a bit of trouble reproducing these issues. Here's a simple test:
- (void)testEmojiSizing {
    label.textAlignment = NSTextAlignmentCenter;
    label.numberOfLines = 0;
    label.text = @"Hello world Hello world Hello world Hello world Hello world 👑 \U0001F604 \U0001F610 Hello world 👑 \U0001F604 \U0001F610 Hello world 👑 \U0001F604 \U0001F610 Hello world 👑";
    [label setFrame:CGRectMake(0, 0, 300, 80)];
    FBSnapshotVerifyView(label, nil);
}

I don't see any odd line spacing in the result:

I've also not seen the emoji being cut off when I restrict numberOfLines to 1:

Does anyone have a more specific reproducible example?

That's the odd part. If you set the text directly as an NSString, it is fine. But if you use an NSAttributedString instead, you can see the problem. Just wrap your string in one, you don't even have to provide any properties
    attributedLabel.text = string;```

Yup, that'll do it. Thanks @DimaVartanian!

[_textLabel setText:attributedText afterInheritingLabelAttributesAndConfiguringWithBlock:^NSMutableAttributedString *(NSMutableAttributedString *mutableAttributedString) {
    return mutableAttributedString;
}];

You use：
1.Calculate the height using the following method
CGSize textLabelSize = [attributedText boundingRectWithSize:CGSizeMake(300, 150) options:NSStringDrawingUsesLineFragmentOrigin context:NULL].size;
2.Do not forget to set the text size
[attributedText addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:13.0] range:NSMakeRange(0, atMutableAttributedString.length)];

@DimaVartanian @jhersh  I was able to reproduce the same issue with attributed text. Is there a workaround to get the correct line spacing for attributed string? Thanks a lot!

I'm also having this issue, and setting just the text, instead of attributed text, didn't solve the issue. Nor did calling the setText:afterInheritingLabelAttributesAndConfiguringWithBlock: method. Right now the issues are multiple:

Text on lines with emoji are positioned lower down, more line spacing.
Bottom of emoji are cut off.
Some text no longer fits.

It doesn't conform to how a normal UILabel appears, and it should. I actually have a UILabel than animates across and is then replaced with the TTTAttributedLabel, but of course there's a slight change in text position now when it becomes the TTTAttributedLabel.

@DimaVartanian
If you add the following attributes to NSMutableParagraphStyle and set this to attributed string. Then it fixes the linespacing issue when the text contains emojis
paraStyle.lineHeightMultiple = 1.0;
paraStyle.minimumLineHeight = font.lineHeight;
paraStyle.maximumLineHeight = font.lineHeight;

This fixed it!

@mohandev thanks for that! FWIT i don't think you need lineHeightMultiple and minimumLineHeight.

@mohandev Thanks man, it works!

Thanks @mohandev :-)

@mohandev  thanks! ^_^

Just add textinset
chatTextLabel.textInsets = UIEdgeInsetsMake(1.5, 0, 1.5, 0)

@mohandev Thanks a lot!. 😄

When i just set lineHeightMultiple = 1.0; . The style will be fine. Thanks !


zxing2.2 can not prase my data matrix code while other DM decode library can decode it

c

zxing2.2 can not prase this data matrix code while other DM decode library can decode it
and zxing did not give any error msg when decode failure~~~~
can you tell me the reason info why zxing blocked this dm code prase, please help me on this
i want to know the reason, thanks a lot~~~

i already try the pre-process and binary/dilate/erode , did not work at all

Interesting sample you have there: the first image is inverted, mirrored, rotated and uses dots. If I normalize this, I get the following:

This still does not work because there is an invalid 0 in the bit stream at position 6: 206, 60, 123, 182, 203, 0, 182, 178.
The decoded text until that point reads 76;z5273.
@gitlost, @oehhar: can you confirm from the top of your head that this is indeed an invalid bit stream and failing to decode this is the only proper way?

thanks your reply, i wan to know how to binary image like you get ~~~~
thanks a lot~~~~

I used GIMP: invert -> erode -> erode -> erode -> dilate -> dilate -> dilate -> flip -> rotate -> crop -> threshold(150)

I took the idea of your fix and applied a "version" of it: decode the full message, even if an error occurs. Now the returned info if the ReaderOptions::returnErrors() flag is set looks like this:
Text:       "76;z52735248"
Bytes:      37 36 3B 7A 35 32 37 33 35 32 34 38
Format:     DataMatrix
Identifier: ]d1
Content:    Text
HasECI:     false
Position:   42x23 186x21 187x167 43x169
Rotation:   -1 deg
IsMirrored: true
IsInverted: false
Version:    3
Error:      FormatError (invalid 0 code word) @ DMDecoder.cpp:299

If you don't have anything else to add to the discussion, please close the issue.


Enable building for older macOS devices

Small change.  ¯\(ツ)/¯

uname -m returns arm64 on my device, but the target is called aarch64-....

f1cda00b45171c6b1fd07d90164e618ed6b78709 should handle one part of this PR.

Yes it works, but the LSMinimumSystemVersion in Line 72 is to high. For me 12.6 instead of 13.3 works fine.


Got rankings last year

$ soccer --league EPL --standings
POS     CLUB                              PLAYED        GOAL DIFF     POINTS
1       Leicester City FC                 38            32            81
2       Arsenal FC                        38            29            71
3       Tottenham Hotspur FC              38            34            70
4       Manchester City FC                38            30            66
5       Manchester United FC              38            14            66
6       Southampton FC                    38            18            63
7       West Ham United FC                38            14            62
8       Liverpool FC                      38            13            60
9       Stoke City FC                     38           -14            51
10      Chelsea FC                        38            6             50
11      Everton FC                        38            4             47
12      Swansea City FC                   38           -10            47
13      Watford FC                        38           -10            45
14      West Bromwich Albion FC           38           -14            43
15      Crystal Palace FC                 38           -12            42
16      AFC Bournemouth                   38           -22            42
17      Sunderland AFC                    38           -14            39
18      Newcastle United FC               38           -21            37
19      Norwich City FC                   38           -28            34
20      Aston Villa FC                    38           -49            17

don't use PIP  for installation ( the python repo is outdated)
Build it from source
HTH
Tibor

Thanks a lot @tibordjantar, you're right. The culprit is PIP.

Hey @architv, do you have any time to update pip with the latest changes?


[LEI-424] Study Page/Study Detail Page on Lookit

Ticket:
https://openscience.atlassian.net/browse/LEI-424
Purpose:
Make those pages look more similar to the current lookit pages and add some functionality to the detail page.

Replaced by https://github.com/CenterForOpenScience/lookit-api/pull/18


More cherry-picking

I've removed the deprecation

Dammit, I fudged that up, I'm just gonna do this manually.


[feature request] comprehensive history

as the site nears its close, it would be nice to have an option (defaulting to disabled, because it's a big task and most people don't really want this) to download my entire timeline, finish to start, so i can see everything i saw, and go back and find things i missed someday.

thank you for the wip it works very well


Move policy authoring to Antora documentation

Moves the Markdown file POLICY_AUTHORING.md and places it in the antora-docs directory in Asciidoc format.

Hmm, only index.adoc gets built, odd.


Font size changes

Update body font size to 16px with a line height of 24px
Update small font size to 15px with a line height of 20px

:tada: This PR is included in version 4.39.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


8413.7 Show swarm master in initialize table

Shippable/pm#8413
The table entry should be called "Swarm master". Both the "single-node install" and "install on new node" buttons are present, but the single-node install button is selected by default, and the "install on new node" button is disabled. It should also have config and logs buttons.
Add the swarm master routes to the flow of the initialize button. It should call GET /api/master when the other GETs are called, and POST to /api/master after the other core services have been posted.

complete. closing.


Delete push job to capa-app-collection

towards https://github.com/giantswarm/giantswarm/issues/24463
Ref: https://github.com/giantswarm/capa-app-collection/pull/12#issuecomment-1328105844

CAPVCD also

@QuentinBisson what is CAPV ?

VSphere and VCD


Intermittent same queries is taking more time.

Java version: Java 17
DB Packages:
runtimeOnly 'io.r2dbc:r2dbc-mssql:1.0.2.RELEASE'
implementation 'org.springframework.boot:spring-boot-starter-data-r2dbc'
Implementation DB config Snippet
`   ConnectionFactoryOptions baseOptions = ConnectionFactoryOptions.parse(
"r2dbc:sqlserver://" + url);
ConnectionFactoryOptions ob = ConnectionFactoryOptions.builder().from(baseOptions)
.option(USER, user)
.option(PASSWORD, password)
.build();
ConnectionFactory connectionFactory = ConnectionFactories.get(ob);
ConnectionPoolConfiguration configuration = ConnectionPoolConfiguration.builder(
        connectionFactory)
    .maxIdleTime(Duration.ofMinutes(sqlTimeout))
    .initialSize(pool)
    .minIdle(minPoolSize)
    .maxSize(maxPoolSize) // MAX_CONNECTIONS as per RDS instance of 8 GB RAM = 200.
    .build();
return new ConnectionPool(configuration);

`
We are facing 2 intermittent issues.
1- Intermittently queries is taking more time and it is exceeding 1 sec timeout. Simple select query normally returning in 20ms but its P95 is 500ms. We are getting following exception.
 TimeoutException: Did not observe any item or terminal signal within 1000ms in 'Mono.map ⇢ at com.thyrocare.laboms.dao.TechsoDbDao.getSampleDetails(TechsoDbDao.java:42)' (and no fallback has been configured)
2- Sometimes it is closing connections. We are getting MssqlconnectionclosedException.
ReactorNettyClient$MssqlConnectionClosedException: Connection closed
Pls suggest what we can do resolve these issues.

Please share some code to show how you're using the connection. Too many concurrent requests or too much data left unread on the connection may lead to SQL server closing the connection.

DB Client Config
` @Bean
@Qualifier("clisodbConnectionFactory")
public ConnectionFactory clisodbConnectionFactory() {
ConnectionFactoryOptions baseOptions = ConnectionFactoryOptions.parse(
    "r2dbc:sqlserver://" + url);
ConnectionFactoryOptions ob = ConnectionFactoryOptions.builder().from(baseOptions)
    .option(USER, user)
    .option(PASSWORD, password)
    .build();

ConnectionFactory connectionFactory = ConnectionFactories.get(ob);
ConnectionPoolConfiguration configuration = ConnectionPoolConfiguration.builder(
        connectionFactory)
    .maxIdleTime(Duration.ofMinutes(30))
    .initialSize(10)
    .minIdle(5)
    .maxSize(15) .
    .build();
return new ConnectionPool(configuration);

}
@Bean
@Qualifier("clisodbClient")
public DatabaseClient clisoDBClient(
@Qualifier("clisodbConnectionFactory") ConnectionFactory connectionFactory) {
return DatabaseClient.create(connectionFactory);
}`
DB client Implementation
`
@Autowired
@Qualifier("clisodbClient")
private DatabaseClient clisoDbClient;
public Mono<Optional> getSampleDetails(String barcode) {
Instant start = Instant.now();
String query = "select * from CliSoDB.dbo.wo_online_hdr  WITH (NOLOCK) WHERE BARCODE = ${barcode} and wo_date>getDate()-7";
String validatedBarcode = commonUtil.validateBarcode(barcode);
query = query.replace("${barcode}", "'" + validatedBarcode + "'");
Mono<Optional> woOnlineHeader = clisoDbClient.sql(query)
.map(ClisoMapper.WO_ONLINE_HEADER_MAPPING_FUNCTION).first()
.map(Optional::of)
.timeout(Duration.ofMillis(1000))
.switchIfEmpty(Mono.defer(() -> Mono.just(Optional.empty())))
.onErrorResume(err ->  {
log.error("error in clisoDbClient {}", err.getMessage());
return Mono.error(err);
})
.doFinally(v -> {
Instant end = Instant.now();
log.info("Cliso getSampleDetails time {} for barcode {}", Duration.between(start, end).toMillis(), barcode);
});
return woOnlineHeader;
}
`


fix filtering (in)active senseboxes

currently there are 3 classes of senseboxes, but only 2 marker styles:

"active" (green marker, data newer than 30 days)
"inactive" (grey marker, data older than 30 days)
"dead" (grey marker, data older than 365 days)

there are 3 issues with the active marker filtering:

[x] 3 classes should be displayed as 3 icons
[ ] disabling the "show all" checkbox in the UI should also hide the dead markers (at least a clarification is needed)
[x] the code doing the filtering could be simplified or at least be well commented

Sidenote: I think 30 days is a rather optimistic threshold to declare a sensebox "active" -- in my opinion something like 7 days would be a better fit as failing to transmit data for an entire week sounds quite "inactive" to me.

Ping @robarto @mpfeil
This is my proposal for colors: Green as it was before, Dark Green and Grey for the 30 and 365 day thresholds.

I also think 30 and a year is really rather optimistic. 7 days and 30 days suggested by @christophfriedrich seems better

Go with 7 days and 30 days

Go
Am Donnerstag, 2. Juni 2016 schrieb Matthias Pfeil :

Go with 7 days and 30 days
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sensebox/OpenSenseMap/issues/87#issuecomment-223291896,
or mute the thread
https://github.com/notifications/unsubscribe/ADz7O4vO8Kqjbhjgvwlbp8xVKftDASvSks5qHtsmgaJpZM4ImUMK
.

--
Thomas Bartoschek
ifgi - Institute for Geoinformatics
University of Münster
Heisenbergstr. 2
48149 Münster, Germany
Phone:  +49 (0)251 83 30011
Mobile: +49 (0)173 511 6094
Fax:    +49 (0)251 83 39763
Email<EMAIL_ADDRESS>http://ifgi.uni-muenster.de/
http://www.gi-at-school.de/
http://vespucci.org/

The checkbox is now unchecked by default.

Can we set a 12hours deadline for the active boxes?

fine by me.
Also the checkbox is not unchecked by default after discussing with @janwirwahn

@ubergesundheit can we close this issue?


Fixes #247

Things were getting cray cray so I decided to just refactor it into a less crazy way.

Moved BindingRestProperty into BindingProperty

No longer enforcing exactly one rest property at the parser level (letting TSServer handle the error notices)
Moved delimiter checking into container rules

Moved all reordering logic into module.reorderBindingRestProperty


x509 cert issues after apply

What happened:
use non-root user to exec sealer apply , and run command: kubectl get nodes , i met X509 issue.
Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
What you expected to happen:
do we need to exec chown for kubeconfig as kubeadm init suggest ？

How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

sealer version (use sealer version):
Cloud provider or hardware configuration:
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

root login ?

root login ?

nop


Clean up vendor/modules.txt after the 0.12.2 bump

vendor/modules.txt was left with stale entries, clean it up (using "go
mod vendor").
Fixes: https://github.com/stolostron/backlog/issues/24123
Signed-off-by: Stephen Kitt<EMAIL_ADDRESS>

/cc @sridhargaddam @tpantelis

/lgtm
/approve


Unicode chacter problem

I have a encode domain like "доктор-ост.рф"
it is valid domain but validators raise ValidationFailure

a = idna.decode('доктор-ост.рф')
validators.domain(a)
ValidationFailure(func=domain, args={'value': 'доктор-ост.рф'})

Another problem, underline subnet domains

validators.domain('victor_caffarena.tripod.com')
ValidationFailure(func=domain, args={'value': 'victor_caffarena.tripod.com'})

Thanks for reporting this. The problem is with the regex I've used. I tried googling for alternatives but none of the ones I found could validate the following test cases:
VALID domains:
example.com
доктор-ост.рф
underscore_subdomain.example.com
something.versicherung
INVALID domains:
example.com/
example.com:4444
example.-com
example.
example

Found a good regex. Now fixed (as of version 0.10).


ARTEMIS-1428 support max frame payload length for STOMP websocket

no test? would be too difficult?

There are no automated STOMP websocket tests from what I can tell.  There is a manual test (i.e. org.apache.activemq.artemis.tests.integration.stomp.StompWebSocketTest) which relies on Jeff's stomp-websocket client.  Writing a websocket client wouldn't be rocket science, but not something I wanted to do for this small feature.

Oh.. that's right.. sorry


Rootfs in docker 1.10

Hi All,
Could you please tell me where will be the rootfs of the docker image in docker 1.10.3
I tried in /var/lib/docker. Dint find
Please let me know how it will get stored.
Regards,
Pradeep

Hello
This issue tracker is dedicated to tracking Docker bugs, proposals and pull requests to make changes to Docker's source code. This issue tracker isn't a general support forum.
Please keep in mind that opening issues to ask questions when getting started will make everyone who contributes to the project spend more time looking at issues.
This kind of question and general support questions are more adequate for the following:

the forums: https://forums.docker.com/
the docker-user mailing list https://groups.google.com/forum/#!forum/docker-user
the #docker channel on Freenode.
StackOverflow https://stackoverflow.com/questions/tagged/docker

I'm going to close this issue now because the discussion can continue even after the issue is closed. Please feel free to continue the discussion. There's no need to open a new issue on this topic.


Bump nodegit from 0.25.1 to 0.26.2

Updating package.json with entry "nodegit": "^0.26.2" fixes failures described at https://github.com/kimmobrunfeldt/git-hours/issues/37 and https://github.com/kimmobrunfeldt/git-hours/issues/43 wherein
node lifecycleScripts/install throws an error such as
node_modules/git-hours/node_modules/promisify-node/utils/args.js:9
  var args = func.toString().match(/function\s.*?\(([^)]*)\)/)[1];
                                                              ^
TypeError: Cannot read property '1' of null

Thank you very much @adg29 it is working very well for me.
@kimmobrunfeldt is there any chance that you could release a new fixed version?

When will this be merged?

@BobbyBakes now

@BobbyBakes now


Gunicorn intergration - fix problem with multiple master processes

…e same name
What does this PR do?
Fixes issue #1823
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Review checklist

[x] PR has a meaningful title or PR has the no-changelog label attached
[x] Feature or bugfix has tests
[x] Git history is clean
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes
Anything else we should know when reviewing?

@ofek can you take another pass?

@ofek anytime 😄
How much it will take to be shipped with the agent ?
Thanks

@mrmm Sorry I missed this! It will be shipped in 6.4/5.26 next week.


Tried to Plot Centroid for Custom Object Detection but didn't work

Hello,
I am trying a custom object detection and it is successfully working. However beyond drawing the overlay bbox, I tried to find the centre of the box and plot it as a circle so that I get a centroid right in the middle of the object. I tried to make changes to the source code (detectNet.cpp) from Jetson Inference C directory. Please let me know the problem to proceed further with my project.
https://forums.developer.nvidia.com/t/plotting-centroid-with-cuda/281924?u=nishanthrajkumar1

Hi @ImTheMan153, the detectNet::Detection struct has a Center() function which will return the centroid, and there are these CUDA functions for drawing basic shapes:

https://github.com/dusty-nv/jetson-inference/blob/fe8b42c8da75c1c353dc59fa1fd079820024b89d/c/detectNet.h#L159
https://github.com/dusty-nv/jetson-inference/blob/master/docs/aux-image.md#drawing-shapes

There are Python analogs of these too.

Hi dusty,
Thank you for the reply. I changed the code to whatever you told me to go with, however, I get the same output as the gif shown above. If I remove the cuda circle loop, I am properly getting the overlay of the detection. If I use drawcircle function from jetson utils as per the repo you shared and make my build, it shows an error saying that it expects my input image to be some specific formats. I am attaching the error below.
/home/ubuntu/jetson-inference/build/aarch64/include/jetson-utils/cudaDraw.h:67:68:   required from ‘cudaError_t cudaDrawCircle(T*, size_t, size_t, int, int, float, const float4&) [with T = void; cudaError_t = cudaError; size_t = long unsigned int; float4 = float4]’ /home/ubuntu/jetson-inference/c/detectNet.cpp:1024:13:   required from here /home/ubuntu/jetson-inference/build/aarch64/include/jetson-utils/imageFormat.inl:234:48: error: static assertion failed: invalid image format type - supported types are uchar3, uchar4, float3, float4   234 |  static_assert(__image_format_assert_false<T>::value, "invalid image format type - supported types are uchar3, uchar4, float3, float4");       |                                                ^~~~~ make[2]: *** [CMakeFiles/jetson-inference.dir/build.make:1473: CMakeFiles/jetson-inference.dir/c/detectNet.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:447: CMakeFiles/jetson-inference.dir/all] Error 2
Source code (just the overlay function) for now:
`if( flags & OVERLAY_BOX )
{
// Draw bounding box overlays once for all detections
if( CUDA_FAILED(cudaDetectionOverlay(input, output, width, height, format, detections, numDetections, mClassColors)) )
return false;
// Then iterate over each detection to draw the centroid circles
for( int n=0; n < numDetections; n++ )
{
    const Detection* d = detections + n;

    // Use the Center function to calculate the center coordinates
    float cx, cy;
    d->Center(&cx, &cy);

    // Adjust the radius as needed
    float radius = 12.5f;

    // Draw the centroid circle for the current detection
    // Ensure that the format of the image and the call to cudaDrawCircle are compatible
    if( CUDA_FAILED(cudaDrawCircle(input, output, width, height, format, static_cast<int>(cx), static_cast<int>(cy), radius, make_float4(255,0,0,200))))
        return false;
}

}`
I tried a different cuda draw circle function according to the source code shown above, but it works the same way as the gif.
If you know the fix, please send me the modified function. I will try it out and let you know!

if( flags & OVERLAY_BOX )
{
    // Draw bounding box overlays once for all detections
    if( CUDA_FAILED(cudaDetectionOverlay(input, output, width, height, format, detections, numDetections, mClassColors)) )
        return false;

    // Then iterate over each detection to draw the centroid circles
    for( int n=0; n < numDetections; n++ )
    {
        const Detection* d = detections + n;

        // Use the Center function to calculate the center coordinates
        float cx, cy;
        d->Center(&cx, &cy);

        // Adjust the radius as needed
        float radius = 12.5f; // Use this variable or decide if you want to use a fixed value

        // Draw the centroid circle for the current detection
        if( CUDA_FAILED(cudaDrawCircle((uchar3*)output, width, height, static_cast<int>(cx), static_cast<int>(cy), radius, make_float4(255,0,0,200)))) // Corrected line
            return false;
    }
}

Just simply casting the output to one of the supported formats worked! Thank you.


Application crush after 1st responce

Hi!
Today I was up the centos machine and npm restore all galton's packages. It works like a charme. (I'll wait help from osrm team for compiling osrm for windows)
But after 1st request the galton server responce and crush.
Look at the screenshot below:

Blue marker I mark the values from array coordinates ([0] and [1]).
In file<EMAIL_ADDRESS>I make next modification.

The coordinates was undefined then the point method was invoked.
Is this a bug or I made something wrong?
Steps for reproduce in my case:
OS: Centos 7

Install galton

git clone https://github.com/urbica/galton.git
cd galton
npm install

Process map

wget https://s3.amazonaws.com/metro-extracts.mapzen.com/moscow_russia.osm.pbf
./node_modules/osrm/lib/binding/osrm-extract -p ./node_modules/osrm/profiles/car.lua moscow_russia.osm.pbf
./node_modules/osrm/lib/binding/osrm-contract moscow_russia.osrm
npm start -- moscow_russia.osrm

Run: node index.js "moscow_russia.osrm"
Try to request http://address:4000/?lng=37.62&lat=55.75&intervals=10&intervals=20&&intervals=30

UPDATE
I fix the crush by adding row marked as --->> in code print below
in file galton/src/index.js
 return (req, res) => {
    const { query } = url.parse(req.url, true);
    const options = Object.assign({}, parseQuery(query), { osrm });

    res.setHeader('Content-Type', 'application/json');
    if (config.cors) {
      res.setHeader('Access-Control-Allow-Origin', '*');
    }
 --->>   if(options.lng === undefined || options.lat === undefined) return;

    isochrone([options.lng, options.lat], options)
      .then(geojson => res.end(JSON.stringify(geojson)))
      .catch((error) => {
        res.statusCode = 500;
        res.end(JSON.stringify({ error }));
      });
  };

I don't know right it or no, but it works now.

Thanks for the report! Could you please try using the latest version from master branch?

Hi @stepankuzmin! Yea this was fixed for me then I pull from a master again. Thanks.


Softcapping for lm head logits?

The Unsloth people made a blog post about Gemma2, and they noted:

it's a must to turn on softcapping for the lm head logits, whilst the attention softcapping is generally recommended as well. If you do not turn it on for the lm head, your training loss will be incorrect

I wonder if this is something that needs to be fixed in qlora-pipe somehow. I haven't really wrapped my head around what they're suggesting yet, but figured I'd put up an issue before it escapes my head.

All the logit softcapping should already be handled. For the attention softcapping, the pipeline model wraps the entire original decoder layer so that is taken care of. And for the lm_head, I made an lm_head wrapper class specifically for Gemma2 called Gemma2LmHeadPipe which does the logit softcapping (just copied from the Transformers implementation).
But Gemma2 has had many implementation issues across backends so I'm not 100% convinced everything is correct. If something looks wrong or behaves weird with training just let me know.

Done some training and it seems fine. Thanks!

Just noticed unsloth has some extra parameters for Cohere and Gemma2 now:
https://github.com/unslothai/unsloth/blob/main/unsloth/kernels/cross_entropy_loss.py
    # Go logit scaling for Cohere: t * x
    if DO_LOGIT_SCALING: logits = LOGIT_SCALE * logits
    # Do logit softcapping for Gemma 2: t * tanh(1/t * x)
    if DO_SOFTCAPPING:   logits = SOFTCAP * triton_tanh(logits / SOFTCAP)

The LOGIT_SCALE seems to be fixed at 5/6 and set here:
  "logit_scale": 0.8333333333333334,

Apologies if you've already seen this :)


LED Strip - Unable to change color

I got a LED RBG+IC strip but I am only able to turn It on or off in the Home app. Changing the colors or even changing the light intensity does not work.
Model number: AK001-ZJ2104

Hello, could you please fill out the bug report template?
You can find the bug report template here.

Describe the bug
While using the Homekit app on iPhone/ iPad/ iMac, changing the brightness or the colour makes no effects. Nothing happens in the LED Strip, it stays at full brightness and at the color previously set with the Magic Home app.
To Reproduce

In the HomeKit app, long press a MagicHome light's tile to display the brightness slider
Attempt to decrease brightness
Observe no changes
Attempt to change colour
Observe no changes

Expected behavior
When changing the brightness the strip should change the light brightness accordingly. Same goes for the colour.
Additional context
When I change the colour of the light strip in the Magic Home app, the colours stays. Same for the brightness.
Host Hardware

Hardware: iMac 27-inch mid 2011
OS: macOS Sierra
OS Version: 10.12.6

Homebridge and MagicHome

Homebridge version: 1.1.7
Homebridge MagicHome Dynamic Platform version: 1.9.2
Link to the MagicHome Device on the seller's website: https://www.amazon.fr/gp/product/B08BTNT13Z/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&psc=1

TXT file:
Log Magic Home Plugin.txt

I’ve also noticed:

In the HomeKit app, long press the LED Strip tile to display the brightness slider and colour circles
Change brightness/ color
Close the opened tile
Switch to the MagicHome app
Change color/ brightness
Switch to HomeKit app
Long press the LED Strip tile to display the brightness slider and colour circles
The displayed brightness/ color is the one changed previously in the MagicHome app

Thank you very much for filling all of that out and conducting a bunch of troubleshooting. Unfortunately individually addressable MagicHome devices are currently unsupported. That's why you are getting the weird behavior. The wrong protocol is being sent to the device.
I will, however, keep this issue open and retag it as a feature request. That way we can put it on our project roadmap. It may be quite simple to implement, so once we finish the features currently in development it could be a quick fix.
Let me know if you have any other questions.


Fix ChannelAlreadyClosed error in RateLimitersApiActionTest.testInvalidDeleteScenarios

Description
This PR fixes an issue on Delete scenarios for the new AuthFailureListener endpoints where the authfailurelistener is not found. This issue was found here and can lead to Channel already closed because its performing an internal config update request even if the corresponding auth failure listener is not found. This PR prevents the internal transport config update request from happening if the listener is not found.
Tested by adding @RepeatRule on the failing test and ensuring that it passes 10x on a single run.

Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)

Bug fix
Check List

[ ] New functionality includes testing
[ ] New functionality has been documented
[ ] New Roles/Permissions have a corresponding security dashboards plugin PR
[ ] API changes companion pull request created
[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@cwperks, could you please manually backport this to the 2.x branch?

@cwperks, could you please manually backport this to the 2.x branch?

The original PR has not been backported yet: https://github.com/opensearch-project/security/pull/4641
@derek-ho Can you make sure this gets backported when the associated API is backported to 2.x?


Update rknpu2_backend.cc  Signed-off-by: JugendTraum<EMAIL_ADDRESS>

PR types(PR类型)
Other
Description
Wrong notation

 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.


Error in Windshaft-cartodb installation  step of CartoDb

Hi,
I am trying to install cartodb on  ubuntu 12.04 . I have done all the steps mentioned on https://github.com/CartoDB/cartodb and I am stuck to Install Windshaft-cartodb Step.
Following steps worked fine -
git clone git://github.com/CartoDB/Windshaft-cartodb.git
cd Windshaft-cartodb
git checkout master
npm install
cp config/environments/development.js.example config/environments/development.js
whenever I hit the command  node app.js development
it gives me following error -
module.js:340
throw err;
^
Error: Cannot find module 'mapnik'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/indictrans/Documents/Windshaft-cartodb/node_modules/windshaft/lib/windshaft/server.js:8:21)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
I installed mapnik  using sudo apt-get install libmapnik libmapnik-dev mapnik-utils python-mapnik  .
also i tried npm install mapnik .
but still problem persists .
I have googled lot on this issue but each time gave same solution.
I have also installed TileMill to map Mapnik dependecy but it is not working.
please help me out.
Thanks in advance .

There has been no activity on this issue for more several months. We are closing it. If you think this still needs to be addressed please open a new issue.