splunk service return 404 not found - Java SDK

This method make request to Splunk:
HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2);
    Service service = new Service(host,port);
    String credential = user_name+":"+pasword;
    String basicAuthHeader  = Base64.getEncoder().encodeToString(credential.getBytes());

    service.setToken("Basic"+basicAuthHeader);

    if(service.getToken()!= null)
    {
        this.token = service.getToken();
        Authenticated();
    }

    return  service;

when I user service to create Job I got error 404 not found, knowing that I got token back.
what is the issue?
Thanks

This where I use Service to create query:
public ResultsReaderJson parse_Scan_Data()
{
String Query = "index=nessus earliest=-1w |eval base=tonumber(cvss_base_score)| search (base>7.5) AND (ports{}.port!=0)";
    Job job = session.make_Request().getJobs().create(Query);

    while(!job.isDone())
    {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
    JobResultsArgs resultsArgs = new JobResultsArgs();
    resultsArgs.setOutputMode(JobResultsArgs.OutputMode.JSON);
    InputStream results = job.getResults(resultsArgs);
    try
    {
        ResultsReaderJson resultsReader = new ResultsReaderJson(results);
        return  resultsReader; // to be tested
    } catch (IOException e)
    {
        e.printStackTrace();
    }
    return null;
}

What port value are you using?
Is there any reason you can't use the Service(Map<String, Object> args) constructor, or Service.login() as I've shown below?
    Service service = new Service(host,port);
++  service.login(user_name, pasword);
--  String credential = user_name+":"+pasword;
--  String basicAuthHeader  = Base64.getEncoder().encodeToString(credential.getBytes());

--  service.setToken("Basic"+basicAuthHeader);

    if(service.getToken()!= null)
    {
        this.token = service.getToken();
        Authenticated();
    }

    return  service;

I use 443 as Splunk is hosted in host with https protocol.
and for host I use Ip address of the host
I used that method since I want to see one session to request query to Splunk without the need to log for each time I want to perform a query

@Ikenahim The REST API uses port 8089 for Splunk Enterprise, are you using Splunk Cloud? If so, what's the host value?
The Java SDK has support for cookie-based authentication so you can login once per Service instance and you'll continue to get new tokens behind the scenes if you continue making requests.

what is the best approach to login? is it good idea to login for each request ?
I'm using Splunk enterprise.

@Ikenahim can you show how you're using the SDK exactly? Once you login with a Service object you shouldn't need to login again for each request

I have fixed that, it was an issue with firewall rules.
I have another problem right with URI cant be null! I have searched this they suggest to add
HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2);
before making the request which I did but still same problem? how to fix this knowing that I'm using Java sdk 11
Thank you

@Ikenahim can you share your anonymized code that uses the SDK? If you don't want to share it publicly, please email us at<EMAIL_ADDRESS>We are unable to help you until we know exactly what you're trying to accomplish.

This was fixed, was an issue with SSL certificate, a team from security department has fixed this issue . Thank you


PIB parallel: byte count in header

In "PIB Parallel Protocol" section of the RISC-V-Trace-Control-Interface document, the following sentence is not clear:
"For RISC-V Processor Trace, the header byte includes a byte count."
Where is this byte count specified ? Is it specific to the PIB parallel protocol or should it come from the trace encoder ?

This is related to 're-use' of PIB by ratified Processor Trace Spec.
Nexus has embedded packet framing (via MSEO bits), so all bytes output from trace encoder are '1-to-1' present on PIB pins.
Processor trace does not have such 'framing' defined and they say encoder packet[s] must have a header and this header must define packet size.
Please note, that with current PIB protocol, entire packet must be sent in N consecutive PIB bytes (using 1/2/4/8/... bits).
In other words, PIB should not start transferring packet/message before it is certain, that last byte of particular packet/message will be available.


Extracting interfaces from BaseDataProvider and BasePage

Resolves #31.
Extracts the abstract methods from BaseDataProvider into a DataProvider interface and adds a few array typehints where non-array parameters would obviously break. Likewise extracts an interface from BasePage into Page. The latter isn't that useful at the moment but opens the window for more refactoring later.

Hey it works for me... Thank you so much for taking the time to make the modifications... Sorry I didn't merge this sooner.


NextJS 14 + Radix UI 3.1.1 + client component with export const runtime = 'edge' => Error

Hi!
I’m tryng to deploy an NextJS application, with Radix-UI on a cloudflare environment.
To use Cloudflare, I need to configure my dynamic routing with edge runtime :
https://www.npmjs.com/package/@cloudflare/next-on-pages
But, when I do this, I can’t build (yarn run build) because of the following error :
▲
▲<EMAIL_ADDRESS>▲  Attempted import error: 'flushSync' is not exported from 'react-dom' (imported as 'ReactDOM').
▲
▲  Import trace for requested module:
▲<EMAIL_ADDRESS>▲<EMAIL_ADDRESS>▲<EMAIL_ADDRESS>▲<EMAIL_ADDRESS>▲<EMAIL_ADDRESS>▲  ./src/app/layout.tsx
▲  ./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2Fusers%2F%5Bname%5D%2Fpage&page=%2Fusers%2F%5Bname%5D%2Fpage&pagePath=private-next-app-dir%2Fusers%2F%5Bname%5D%2Fpage.tsx&appDir=%2Fhome%2Frin%2FMissions%2Fkoddex%2FDev%2Ftests%2Fmy-next-app%2Fsrc%2Fapp&appPaths=%2Fusers%2F%5Bname%5D%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!./src/app/users/[name]/page.tsx?__next_edge_ssr_entry__```

I try to downgrade NextJS version : in version 13, I can build, but my layout doesn’t function anymore.
I try not using `'use client'` and `export const runtime = 'edge'` : I can build, but I can’t build with `npx @cloudflare/next-on-pages@1`

At this point, I have no idea if I persist trying to recreate my application in NextJS 13 or if I use another library component.
Did I miss something? Does someone else have the same issue, or better, have someone fixed their issue?

Thank you for reading me, I’ll try answer your questions or test your solutions the best I can.

I think you want to take it to @cloudflare/next-on-pages, as Radix components work fine in common environments.
Right there on npm they mention Next.js 13.4.2 support:


fitView improvements

Changes

added waitForInit to FitViewProps
added fitViewScheduled to store
removed fitViewOnInit, fitViewOnInitOptions, fitViewDone from store

Questions

[x] What implications are there for reset()?
[ ] Is returning true if fitView has not been called yet and just scheduled okay?

Hi, is this PR aimed to render the nodes already fitted instead of seeing the transition on page load?

@ogroppo  This PR is about making it possible to call fitView right after setting new nodes.
If you use the ReactFlow fitView prop, it should fit before the first render.

Apologies if I am polluting this conversation with this issue, so redirect me in case, I am seeing this behaviour with minimal setup using version 12.0.0-next.17
https://github.com/xyflow/xyflow/assets/4820803/87392f47-93cc-413c-9425-8b157e76d7f5
  const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes);
  ...
  <ReactFlow
          nodes={nodes}
          edges={edges}
          onNodesChange={onNodesChange}
          onEdgesChange={onEdgesChange}
          onConnect={onConnect}
          fitView
          colorMode={colorMode}
        >

When removing fitView the zoom does not adjust but the edges are rendered later
https://github.com/xyflow/xyflow/assets/4820803/b622933e-f9b2-4d0f-913b-92b27a88bbad

How do your nodes look like?

I really like the idea but it would be nice if we could find a more generic solution like:
setNodes([...])

await nodeRenderTick();

fitView();

Let's open a new PR for a generic solution.
@ogroppo The reason for this behaviour is that you are initializing your nodes with dimensions. If you remove width and height, there won't be any flickering. It's only necessary for server side rendering.


Add Support for Windows

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

I need the windows version of the package but the conda-forge knowledge base isn't clear on how I can build locally on windows. So I'm opening a PR to see how the build goes.
I took some of the changes fom #20 for the test portion of it. I opened a new PR in order to champion this issue through and getting it merged.
I am not great at conda-forge stuff, so best practices may not be there, but hopefully, it will build correctly and I will look for help from the offical conda-forge resources if it doesn't build.
Thanks for the great work @MarkWieczorek

It builds fine one windows, but for some reason, on python 3.10 on all platforms, it's falling back to numpy built against python 3.6. It's going to be fun to resolve.

I'm not sure if the fix to compile on python 3.10 was because I pinned fftw or because I reran conda-smithy on linux instead of windows.

@MarkWieczorek,
Is there something I can do to help move the review forward?

Sorry for delay in getting back to you, but I literally just moved between two different cities... I'll try to find time in the next couple days to take a look.

Thanks for the update!
I hope your move went well.

Don't worry, I haven't forgot. I'll try to take care of this on friday when I should have more free time.

@moorepants @megies @mreineck Would one of you mind taking a quick look at this PR that adds windows support to pyshtools?

Sorry for the long silence ... I'm currently on vacation with fairly bad internet access. I can have a look early next week, but I'm certainly no expert on configuring for Windows.

Ok. I'll wait a week. I'm on vacation too, and the last windows machine I used was in the 80s (have they gotten any better since then?)

I looked over the meta.yaml file. The changes seem fine.

Thanks Everyone! Have a great vacation!


Update meta.yaml

there’s no reason to lightning upper bound

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@ori-kron-wis can you review #52. Keep in mind it's critical to update the build number, but upon the next version release there will be an automated PR. It's important that it's reset to 0


Workflow of steps to run hpc-now

Hi there.
Please, I want to install the hpc-now in a linux server as an administrator and offer like simple stapes to run an hpc task for non professionnels (remote users). How can I organize the step by step to let the user choose the cluster/num of nodes to use, the price for each choice made by him ? So he can follow his usage and billing before and after  the jobs are finished?
Could please guide me in this?
Regards.

Hello @adjebbar,

HPC-NOW provides a command called hpcopr usage to print out or export the usage of clusters. You can use this command to check the cluster configurations, nodes, and durations. But it is at the resource level, not the job level. Because cloud billing is also resource-based, not job-based. That's to say, the moment you initialize a cluster, the cloud billing starts, no matter you run a job or not.
The job-level usage log is stored in the cluster's database managed by the scheduler SLURM. You can use the command hpcopr jobman -u USER_NAME --jcmd list to list out all the jobs running or finished in the cluster. The information of cores used and time duration would be printed out for accounting.
The scaling of your cluster can be vertically (increasing the cpu num of a node) or horizontally(increasing the number of nodes). Therefore, you can use hpcopr addc --nn NUMBER to add some nodes, or use hpcopr delc --nn NUMBER to delete some nodes. Or, you can also turnoff or turnon some nodes. Commands: hpcopr turnonc  or  hpcopr shutdownc. You can also reconfigure the compute nodes by the command hpcopr reconfc to increase or decrease the cpu of ALL the compute nodes. The target is, NODE_NUM X NODE_CPU = TOTAL_CPU_YOU_WANTED.

Hope the response help.
Zhenrong WANG

Hey Wang.
Thanks for your answer. I understand your steps.
To make the workflow easy to follow for non professionnel, I want to make like an automatic assistant or bot to assist the user in the submission of job until the end. So he can know his costs.
Thanks again Wang.

Hi @adjebbar
My pleasure. Please also notice that the most precise billing/costs information is in the cloud billing console. Either the hpcopr usage -b or hpcopr jobman -u USER_NAME --jcmd list only reflects the usage, not the billing dollars.
Best,
Zhenrong WANG


[SPARK-21117][SQL] Built-in SQL Function Support - WIDTH_BUCKET

What changes were proposed in this pull request?

This PR intends to add a build-in SQL function - WIDTH_BUCKET.
It is the rework of #18323.
Closes #18323
The other RDBMS references for WIDTH_BUCKET:

Oracle: https://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_functions_2137.htm#OLADM717
PostgreSQL: https://www.postgresql.org/docs/current/functions-math.html
Snowflake: https://docs.snowflake.com/en/sql-reference/functions/width_bucket.html
Prestodb: https://prestodb.io/docs/current/functions/math.html
Teradata: https://docs.teradata.com/reader/kmuOwjp1zEYg98JsB8fu_A/Wa8vw69cGzoRyNULHZeudg
DB2: https://www.ibm.com/support/producthub/db2/docs/content/SSEPGG_11.5.0/com.ibm.db2.luw.sql.ref.doc/doc/r0061483.html?pos=2

Why are the changes needed?

For better usability.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

Added unit tests.

Test build #123673 has started for PR 28764 at commit 6323713.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28296/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28298/
Test PASSed.

Test build #123675 has started for PR 28764 at commit 668f419.

Test build #123673 has finished for PR 28764 at commit 6323713.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Test build #123675 has finished for PR 28764 at commit 668f419.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123673/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123675/
Test FAILed.

retest this please

Test build #123676 has started for PR 28764 at commit 668f419.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28300/
Test PASSed.

Test build #123676 has finished for PR 28764 at commit 668f419.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123676/
Test FAILed.

retest this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28318/
Test PASSed.

Test build #123694 has started for PR 28764 at commit 668f419.

Test build #123694 has finished for PR 28764 at commit 668f419.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123694/
Test PASSed.

Could you review this? @HyukjinKwon @viirya @wangyum @yaooqinn

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28419/
Test PASSed.

Test build #123795 has started for PR 28764 at commit cace933.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28422/
Test PASSed.

Thank you for pinging me, @viirya .

+1, LGTM (only minor comments). Thanks, @maropu .

Test build #123808 has started for PR 28764 at commit 9e8eab2.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28434/
Test PASSed.

Thanks for your kind reviews, @dongjoon-hyun !

Test build #123808 has finished for PR 28764 at commit 9e8eab2.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123808/
Test FAILed.

retest this please

Test build #123823 has started for PR 28764 at commit 9e8eab2.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28448/
Test PASSed.

Test build #123795 has finished for PR 28764 at commit cace933.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123795/
Test FAILed.

Test build #123823 has finished for PR 28764 at commit 9e8eab2.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123823/
Test FAILed.

retest this please

Test build #123829 has started for PR 28764 at commit 9e8eab2.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28454/
Test PASSed.

Test build #123829 has finished for PR 28764 at commit 9e8eab2.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123829/
Test PASSed.

Thank you, @maropu and all.
Merged to master.

Thanks a lot, @dongjoon-hyun, @viirya, and @yaooqinn !

late LGTM!


Latest CLI version breaks storage localhost

Bug report
I've upgraded to Supabase v1.61.0 locally. When I try and access http://localhost:54323/project/default/storage/buckets, I get an error (in the screenshot below). When I try and create buckets, I get an error too new row violates row-level security policy.

[x] I confirm this is a bug with Supabase, not with my own application.
[x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce

Upgrade to 1.61.0
Go to storage buckets in the localhost CLI
You'll see an Internal Server Error
Try and create a bucket, you'll see another error

Expected behavior
It should work like before
Screenshots

System information

OS: macOS
Browser (if applies) [e.g. chrome, safari]
Version of supabase-js: [e.g. 6.0.2]
Version of Node.js: [e.g. 10.10.0]

Additional context
2023-05-16 08:59:38 {"level":"info","time":"2023-05-16T15:59:38.874Z","pid":1,"hostname":"782b6ac87ad5","reqId":"req-bb","tenantId":"stub","project":"stub","msg":"content-type is application/vnd.openxmlformats-officedocument.wordprocessingml.document"}
2023-05-16 08:59:16     at /app/node_modules/knex/lib/execution/internal/query-executioner.js:46:12
2023-05-16 08:59:16     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-05-16 08:59:16     at async Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:300:14) {
2023-05-16 08:59:16   statusCode: 403,
2023-05-16 08:59:16   error: 'Unauthorized',
2023-05-16 08:59:16   originalError: error:
2023-05-16 08:59:16           SELECT
2023-05-16 08:59:16             set_config('role', $1, true),
2023-05-16 08:59:16             set_config('request.jwt.claim.role', $2, true),
2023-05-16 08:59:16             set_config('request.jwt', $3, true),
2023-05-16 08:59:16             set_config('request.jwt.claim.sub', $4, true),
2023-05-16 08:59:16             set_config('request.jwt.claims', $5, true),
2023-05-16 08:59:16             set_config('request.headers', $6, true),
2023-05-16 08:59:16             set_config('request.method', $7, true),
2023-05-16 08:59:16             set_config('request.path', $8, true);
2023-05-16 08:59:16        - permission denied to set role "service_role"
2023-05-16 08:59:16       at Parser.parseErrorMessage (/app/node_modules/pg-protocol/dist/parser.js:287:98)
2023-05-16 08:59:16       at Parser.handlePacket (/app/node_modules/pg-protocol/dist/parser.js:126:29)
2023-05-16 08:59:16       at Parser.parse (/app/node_modules/pg-protocol/dist/parser.js:39:38)
2023-05-16 08:59:16       at Socket.<anonymous> (/app/node_modules/pg-protocol/dist/index.js:11:42)
2023-05-16 08:59:16       at Socket.emit (node:events:513:28)
2023-05-16 08:59:16       at Socket.emit (node:domain:489:12)
2023-05-16 08:59:16       at addChunk (node:internal/streams/readable:324:12)
2023-05-16 08:59:16       at readableAddChunk (node:internal/streams/readable:297:9)
2023-05-16 08:59:16       at Readable.push (node:internal/streams/readable:234:10)
2023-05-16 08:59:16       at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
2023-05-16 08:59:16     length: 110,
2023-05-16 08:59:16     severity: 'ERROR',
2023-05-16 08:59:16     code: '42501',
2023-05-16 08:59:16     detail: undefined,
2023-05-16 08:59:16     hint: undefined,
2023-05-16 08:59:16     position: undefined,
2023-05-16 08:59:16     internalPosition: undefined,
2023-05-16 08:59:16     internalQuery: undefined,
2023-05-16 08:59:16     where: undefined,
2023-05-16 08:59:16     schema: undefined,
2023-05-16 08:59:16     table: undefined,
2023-05-16 08:59:16     column: undefined,
2023-05-16 08:59:16     dataType: undefined,
2023-05-16 08:59:16     constraint: undefined,
2023-05-16 08:59:16     file: 'guc.c',
2023-05-16 08:59:16     line: '11978',
2023-05-16 08:59:16     routine: 'call_string_check_hook'
2023-05-16 08:59:16   },
2023-05-16 08:59:16   metadata: undefined
2023-05-16 08:59:16 }
2023-05-16 08:59:38 DBError: new row violates row-level security policy
2023-05-16 08:59:38     at DBError.fromDBError (/app/dist/storage/database/knex.js:416:16)
2023-05-16 08:59:38     at Function.<anonymous> (/app/dist/storage/database/knex.js:351:31)
2023-05-16 08:59:38     at Function.emit (node:events:513:28)
2023-05-16 08:59:38     at Function.emit (node:domain:489:12)
2023-05-16 08:59:38     at Client_PG.<anonymous> (/app/node_modules/knex/lib/knex-builder/make-knex.js:299:10)
2023-05-16 08:59:38     at Client_PG.emit (node:events:525:35)
2023-05-16 08:59:38     at Client_PG.emit (node:domain:489:12)
2023-05-16 08:59:38     at /app/node_modules/knex/lib/execution/internal/query-executioner.js:46:12
2023-05-16 08:59:38     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-05-16 08:59:38     at async Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:300:14) {
2023-05-16 08:59:38   statusCode: 403,
2023-05-16 08:59:38   error: 'Unauthorized',
2023-05-16 08:59:38   originalError: error:
2023-05-16 08:59:38           SELECT
2023-05-16 08:59:38             set_config('role', $1, true),
2023-05-16 08:59:38             set_config('request.jwt.claim.role', $2, true),
2023-05-16 08:59:38             set_config('request.jwt', $3, true),
2023-05-16 08:59:38             set_config('request.jwt.claim.sub', $4, true),
2023-05-16 08:59:38             set_config('request.jwt.claims', $5, true),
2023-05-16 08:59:38             set_config('request.headers', $6, true),
2023-05-16 08:59:38             set_config('request.method', $7, true),
2023-05-16 08:59:38             set_config('request.path', $8, true);
2023-05-16 08:59:38        - permission denied to set role "service_role"
2023-05-16 08:59:38       at Parser.parseErrorMessage (/app/node_modules/pg-protocol/dist/parser.js:287:98)
2023-05-16 08:59:38       at Parser.handlePacket (/app/node_modules/pg-protocol/dist/parser.js:126:29)
2023-05-16 08:59:38       at Parser.parse (/app/node_modules/pg-protocol/dist/parser.js:39:38)
2023-05-16 08:59:38       at Socket.<anonymous> (/app/node_modules/pg-protocol/dist/index.js:11:42)
2023-05-16 08:59:38       at Socket.emit (node:events:513:28)
2023-05-16 08:59:38       at Socket.emit (node:domain:489:12)
2023-05-16 08:59:38       at addChunk (node:internal/streams/readable:324:12)
2023-05-16 08:59:38       at readableAddChunk (node:internal/streams/readable:297:9)
2023-05-16 08:59:38       at Readable.push (node:internal/streams/readable:234:10)
2023-05-16 08:59:38       at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
2023-05-16 08:59:38     length: 110,
2023-05-16 08:59:38     severity: 'ERROR',
2023-05-16 08:59:38     code: '42501',
2023-05-16 08:59:38     detail: undefined,
2023-05-16 08:59:38     hint: undefined,
2023-05-16 08:59:38     position: undefined,
2023-05-16 08:59:38     internalPosition: undefined,
2023-05-16 08:59:38     internalQuery: undefined,
2023-05-16 08:59:38     where: undefined,
2023-05-16 08:59:38     schema: undefined,
2023-05-16 08:59:38     table: undefined,
2023-05-16 08:59:38     column: undefined,
2023-05-16 08:59:38     dataType: undefined,
2023-05-16 08:59:38     constraint: undefined,
2023-05-16 08:59:38     file: 'guc.c',
2023-05-16 08:59:38     line: '11978',
2023-05-16 08:59:38     routine: 'call_string_check_hook'
2023-05-16 08:59:38   },
2023-05-16 08:59:38   metadata: undefined
2023-05-16 08:59:38 }

These are the logs I see in docker

that indeed fixed it, thank you @sweatybridge -- it seems there were some storage files that weren't getting cleaned up when I ran supabase stop and it caused errors with policy checks, thank you!


Output friendly and concise message when updating pipenv failed.

Updating pipenv might fail occasionally, and the default output is not quite clear.
So I use crayons to beautify the error message and make it more friendly.

✨🍰✨


Deprecated attribute cluster_security_groups

Description
╷
│ Warning: Deprecated attribute
│
│   on .terraform\modules\redshift.redshift\outputs.tf line 71, in output "cluster_security_groups":
│   71:   value       = try(aws_redshift_cluster.this[0].cluster_security_groups, [])
│
│ The attribute "cluster_security_groups" is deprecated. Refer to the provider documentation for details.
│
│ (and one more similar warning elsewhere)

[*] ✋ I have searched the open/closed issues and my issue is not listed.

Versions

Module version [Required]:
last

Terraform version:
Terraform v1.2.7

Provider version(s):
provider registry.terraform.io/hashicorp/aws v4.45.0
provider registry.terraform.io/hashicorp/random v3.4.3
provider registry.terraform.io/hashicorp/tls v4.0.4

Terminal Output Screenshot(s)

getting the same, on v.4.54.0 it does not seem to be marked deprecated in the docs
did you just disregard the warning @traxverlis ?


DataFrame.to_hdf cannot pass file handle (buffer)

When writing a DataFrame to hdf format ('to_hdf' method) you cannot pass a file handle instead of a string. i.e. you can't:
with open('test.hdf') as f:
    df.to_hdf(f, "df")

This raises an error:
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "C:\Anaconda\lib\site-packages\pandas\core\generic.py", line 896, in to_hdf
    return pytables.to_hdf(path_or_buf, key, self, **kwargs)
  File "C:\Anaconda\lib\site-packages\pandas\io\pytables.py", line 286, in to_hdf
    f(path_or_buf)
  File "C:\Anaconda\lib\site-packages\pandas\io\pytables.py", line 279, in <lambda>
    f = lambda store: store.put(key, value, **kwargs)
AttributeError: 'file' object has no attribute 'put'

This is inconsistent with the 'to_csv' method where you can do this. In the docs it states that you can pass a file buffer to both 'to_hdf' and 'to_csv'.
pd.show_versions(False)
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.5.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None

pandas: 0.14.1
nose: 1.3.4
Cython: 0.22
numpy: 1.9.2
scipy: 0.15.1
statsmodels: None
IPython: 3.0.0
sphinx: 1.2.3
patsy: 0.3.0
scikits.timeseries: None
dateutil: 2.4.1
pytz: 2015.2
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.4.3
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: 0.6.7
lxml: 3.4.2
bs4: 4.3.2
html5lib: None
httplib2: 0.9
apiclient: None
rpy2: 2.5.6
sqlalchemy: 0.9.9
pymysql: None
psycopg2: None

I think the current implementation in master HDFStore or a path.  I also think HDFStores can be created with a generic buffer.

we have a tests for this and this would make a nice cookbook recipe.
you still need to give it a string path, but it wont' actually generate a file, see the docs here for how to actually get the image (e.g. the bytes). I am not sure that you can write directly to a Bytes type of object, but if you use this method you can say send the bytes over the wire for reconstruction (though this is simpler with say msgpack support``)
store = HDFStore(path,mode='a',driver='H5FD_CORE',driver_core_backing_store=0)
store['df'] = df
store.append('df2',df)
store.close

The doc string currently states:

DataFrame.to_hdf(path_or_buf, key, **kwargs):
path_or_buf : the path (string) or buffer to put the store

Should it be changed so its more specific and says you should provide a HDFStore?

yes could change the arg names / doc-string to be more clear

@joshlk going to leave this one open if you (or someone!) wants to add a cookbook recipe for using in-memory stores

store['df'] = df
store.append('df2',df)
store.close
`


something confusing in calculating the loss.

In the paper, when x is continuous, the loss is calculated by feeding  $x+U(0,a)$ into the model, but in the codes, it seems you feed $x+N(0,a)$ into the model?

Do you mean this line? https://github.com/rosinality/glow-pytorch/blob/97081ff115a694cf04aeedbd58447f33d242c879/train.py#L127 It injects uniform noise.

 Thank you for your reply.


ESP32 keyboard crashes after a long wait

The ESP32 Basic keyboard stops working if left alone for several hours ; it randomly generates keys. This is reproducible. It is not fixed by software reset suggesting FABGL or interface corruption. POR fixes it. Code read ESP32 specific looking for bad values. Does not occur in SDL emulator version.

Note: "stops working" means goes into an infinite key repeat. I think this is FabGL as I doubt anyone else has run a FabGL program for the hours required.


98% size compression on fast_forward images

What if we remove the fast_forward images completely? I think the effect could be great even without it

Short Answer : Do as you wish!
Long Answer : Usually best practice in games for fast forwarding cutscenes are giving extra visual confirmation that the scene is speeding up. This is a complementary feature that is widely practiced in the game industry best shown in the 2D pixel art platformer "Sheepy: A short adventure"(sorry for not including the example attachment). plus according to my testing the fps during cutscenes increase so it shouldn't lead to performance dips. Then again your wish completely!


openVINO2024.3.0 gave RuntimeError:[GPU] ProgramBuilder build failed! at notebook:3D-segmentation-point-clouds, when using Integrated GPU

Describe the bug
openVINO2024.3.0 gave RuntimeError:[GPU] ProgramBuilder build failed! at notebook:3D-segmentation-point-clouds, when using Integrated GPU both 11 Gen corei7 and 13 Gen corei9.
openVINO2023.3.0 worked well but integrated GPU were slower than CPUs.
Expected behavior
Did any other's openVINO2024.3.0 work well at otebook:3D-segmentation-point-clouds, when using Integrated GPU?
What is the matter with me, or is it dispossible?
How could my Integrated GPU be faster than CPU using segmetation models such as 3D-segmentation-point-clouds and Mask rcnn?
Screenshots

Installation instructions (Please mark the checkbox)
[yes] I followed the installation guide at https://github.com/openvinotoolkit/openvino_notebooks#-installation-guide to install the notebooks.
** Environment information **
Only next is not ok, but I donot know how to fix it, and if it mattered.
Jupyter kernel installed for openvino_env:
print(f"kernel spec={KernelSpecManager().get_all_specs()}") gave as below.
kernel spec={'python3': {'resource_dir': '/home2/u22-ros/venvs/openvino_env/share/jupyter/kernels/python3', 'spec': {'argv': ['python', '-m', 'ipykernel_launcher', '-f', '{connection_file}'], 'env': {}, 'display_name': 'Python 3 (ipykernel)', 'language': 'python', 'interrupt_mode': 'signal', 'metadata': {'debugger': True}}}}
After modified
kernel = KernelSpecManager().get_kernel_spec("openvino_env")
to
kernel = KernelSpecManager().get_kernel_spec("python3")
then below are not ok.
Jupyter kernel Python and OpenVINO environment Python match: NOT OK
Additional context
Add any other context about the problem here.

@brmarkus
Thank you very much for your test.
I am so sorry,  I took a miss about the versions.
It should be 24.3.0(fast but error) and 23.3.0(correct but slow).
Hope Intel could give us an answer.


How to achieve more smooth object appearance on zooming in

Hello @bertt
Could you please explain how hierarchical level of detail is supposed to work in conjunction with implicit tiling? Here is my minimal example to illustrate question:
https://github.com/user-attachments/assets/5de00521-d292-4167-a4c1-d3e3c0669b86
It seems that upper-level tiles aren't rendered at all, and on zooming in more detailed tiles appear suddenly. Is there any way to achieve more incremental, smooth object appearance and disappearance on scale change? For example: if tile contains number of objects that is greater than max_features_per_tile, then clusterize tile objects into k clusters, where k=max_features_per_tile, pick single object from each cluster and append it to tile, making tile renderable.
Does this approach make sense?

Hi,
The first problem (northern tiles not showing up) is related to geometric error. If you set it higher the northern tiles are drawn more early (its roughly the distance to the camera when tiles will become visible). It can be set in tileset.json or option -g (default 1000).
The second problem looks like its related to the 'city center' problem.

I discussed it here https://community.cesium.com/t/implicit-tiling-override-tile-geometric-error-semantic/22958/5
In short: So far, I didn't find a good solution, but there are some options to explore.

It's clear about geometric error, thank you.
Concerning the second problem: what do you think about adding low detail representation on upper level tiles that Marco13 suggests here:
https://community.cesium.com/t/implicit-tiling-override-tile-geometric-error-semantic/22958/6?u=chekhovana
Will it help? If it's feasible, I could try to implement it using clustering, as I mentioned earlier.
Or perhaps you could share your ideas about alternative, more preferable ways to solve the issue?

yes good idea to implement point clustering at for lower z-levels.. If you can create a PR I'm happy to review/test.

Thanks for your answers, I'll try. In case of success I'll create PR.


Fixed sum to ensure numba type copatability

In AGE-MOEA and AGE-MOEA2 need numba to run. However the python sum function produces errors due to issues with type checking.
Changing to np.sum fixes the issue.
Furthermore defining return type of point_2_line_distance removes type issues.

Thanks for your contribution!


About page role description fade doesn't render properly in Safari

Fine in FireFox

That's odd. The fade is achieved with linear-gradient( rgba(black, 0), white ). Changing to rgba(white, 0) seems to fix it.
Looks like a known thing in Sarafi when using rgba and the colour you fade to is not the same as the colour you fade from. 🤷♂
https://ambientimpact.com/web/snippets/safari-bug-with-gradients-that-fade-to-transparent

OK just deployed and it's fixed.


4.0 request - responsive spacing

I often find myself applying a spacing margin on my col-x divs so when in collapsed view there is some 'space' for visual appearance.  This is easy enough to do and is more appearance orientated than anything, but I think if done properly this could be useful as a new css feature set.
For example, I find myself doing something like this a lot where mb-30 would be a 30px bottom margin... the row is nothing special so I have no need to apply an id to it or use any other custom css... I just want to apply some spacing between the next container for visual appearance  :

If the spacing was put on the row only then when viewed on xs and sm there would be no spacing between the 'now full width' stacked divs.
My proposal would go something like :

Where space-sm would be a margin applied to all immediate col-x-x children of the row.  There would be small, large, xlarge spacing values.  Incorporated in sass/less you could easily change these spacing values to whatever you wanted.  You could even take this a step further and have col-md-space-sm where it would only apply to col-md-x classes.  So in total you would have 3 spacing values for 4 breakpoints (xs, sm, md, lg) for a total of 12 extra classes.
Just thought I would throw it out there... maybe I am the only one who does this.

Could you not use something like the vh/vw measurements to get what you need?

How would that apply here?  I am simply talking about spacing between containers for visual appearance.  Maybe I didn't do a good job explaining what I am talking about.

More utilities are planned for v4, but likely not for the grid. That'd require a bit more work because of the way our grid is built. Could still use them, but it's need more work to do right.

Right on... thanks for taking a look mdo.  Just thought I would throw it out there.


Documentation note & thanks

Thanks for this great resource! I've been looking for a reliable client to automate quick input of tasks into my inbox that supports todoist NLP, and my previous solutions were all over-complicated and didn't do that effectively. Installing this tool has allowed me to quickly add tasks easily - I've wrapped it with an Alfred workflow, and it works great (I'll link once I get it up on Github - thanks again!)
One quick comment - on Mac OS X, the configuration file is stored at ~/Library/Application Support/tod.cfg (took me some hunting to find) - would be great if you could add that to the documentation page!
Thanks again!

FWIW, the workflow wrapper (extremely simple) is here  https://github.com/stacksjb/AlfredTodWorkflow - thanks for this great solution that allowed me to quickly fix one of my major workflow pains!

Hi @stacksjb
Thank you very much for getting in touch!
I'll amend the documentation for the MacOS config file, and link to your workflow. Really happy to see more examples of this being used :slightly_smiling_face:  Leaving this open so I remember to do it!

Changes here, cheers.
https://github.com/alanvardy/tod/pull/161

Thanks! One other note that might be worth mentioning - the create a task in Inbox (by default) (-t) actually lets you create tasks with ANY labels or projects (because it uses the Doist NLP API) - so if you create a task using "-t Ship UPS Package #eBay @Errands p2 tomorrow" it would create a task in the eBay project, with the Errands label, with a priority of 2, due tomorrow.  (https://thesweetsetup.com/using-natural-language-with-todoist/ has some great guidelines on using NLP)


"Could not load webpage" value error for documents when loading pdf from linj

Fixed! Link document loading is working again


Custom emojis from other servers don't display properly for highlighted messages

This is an issue with the Discord's emoji permissions, the bot can't display a server's emojis if it isn't in that server.


Update the Source Link spec for VS15.7 auth support

This updates the spec to provide an example of generating VSTS source
link. It also adds that VS 2017 15.7 supports authentication.

@gregg-miskelly @tmat please review.

new PR against the designs repo: https://github.com/dotnet/designs/pull/37
I have changed this PR to just update the doc to be a link to the new location.

@gregg-miskelly I have update https://aka.ms/sourcelinkspec to point to the new location as well.


cypress skeleton tests + logo adjustment

Part of #169 and resolves #151
What changed

Create some skeleton tests for cypress (will be easier to divvy up among contributors)
Adjust Logo to emphasize "Find a Doc" and read more naturally

Testing instructions
Confirm the logo looks like this:

Confirm the cypress tests pass: yarn run test:e2e

@ann-kilzer Could we get more detailed testing instructions like we have for the backend? It doesn't have to be in this PR, but I have no idea how to begin testing once the Cypress Dashboard opens up.

@ann-kilzer Could we get more detailed testing instructions like we have for the backend? It doesn't have to be in this PR, but I have no idea how to begin testing once the Cypress Dashboard opens up.

Yeah I actually started putting some stuff on the Wiki: https://github.com/ourjapanlife/findadoc-web/wiki/Writing-Tests
But the step yarn run test:e2e brings up a really friendly GUI test runner so I don't lengthy manual testing instructions are necessary


Ensure DNS resolver rules are attached before the control plane is created

Task
Ensure DNS resolver rules are attached before the control plane is created.
TODOs

[ ] Investigate possible solutions;
[ ] ...

Possible solutions

Use the CAPI pause annotation;
...

Potential solution 1 - Keep cluster API reconcilation in paused state
Currently, VPC operator unpauses cluster API reconciliation, we can move this unpause logic to resolver operator. AFAIK, for resolver operator only dependency is VPC and IAM. Does that make sense?

https://github.com/giantswarm/aws-vpc-operator/blob/08684c21a731ce5ac5bf0a46a57bbf81ce0bed22/controllers/awscluster_controller.go#L500-L518

Potential solution 1 - Keep cluster API reconcilation in paused state

How do we get around the race condition? We would have 2 different operators which need to signal that the cluster can be unpaused.

While working on this I realized something. When I created the aws-resolver-rules-operator, I did it following what we usually do, meaning that it ignores paused clusters. I did not know that we create clusters with the pause annotation, and only later, it's our aws-vpc-operator the one unpausing the cluster. This means that aws-resolver-rules-operator was not reconciling our clusters until aws-vpc-operator aws done. I thought that maybe we could do it differently, but actually we need to wait anyway for the VPC to be created before we can associate the resolver rules. So I'd say it's fine that aws-resolver-rules-operator goes after aws-vpc-operator.

I pushed an implementation on this PR. The implementation works as follows.
We create paused CRs when using the private VPC mode in cluster-aws. Now we have two reconcilers inside aws-resolver-rules-operator. The one it was already there will reconcile paused clusters now. But it will wait until the AWSCluster CR has both the VpcReady and SubnetReady conditions marked as true. This is because we can't associate resolver rules with the workload cluster VPC until the VPC is created. So this reconciler will only associate the rules if those conditions are true. This reconciler only reconciles clusters using the private dnsMode.
The new controller inside aws-resolver-rules-operator will unpause the CRs when the VpcReady and SubnetReady conditions are both true. That will unpause clusters using the public dnsMode But when using the private dnsMode it will require the ResolverRulesReady condition to be ready for unpausing the CRs.


Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference

I am using your com.onedrive.sdk:onedrive-sdk-android:1.3.1 to access OneDrive cloud from my Android application. When I was downloading the file, following the steps in the document, when executing the get() method, I get the error ""Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference", please reply as soon as possible.

I think this repo has been abandoned. I can't even sign in to my microsoft account when using msa-client-id has format like 00000000-0000-0000-0000-000000000000

Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #172 for more information


Sync take2

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: leafo:x: jprjrYou have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: leafo:x: jprjrYou have signed the CLA already but the status is still pending? Let us recheck it.


Static struct returns don't skip 64bit args properly (Windows)

idk if this is an accurate name but whatever
While calling GameToolbox::timestampToHumanReadable(time_t) on Windows, the time_t argument (which is effectively a 64bit int) is supposed to be on stack (shown as CONCAT44(in_stack_00000008,in_stack_00000004) in Ghidra). Instead it goes somewhere else (idk where) and if I want to call the desired function, I need to change the function signature to something like GameToolbox::timestampToHumanReadable(time_t, time_t). This allows me to use the function - the first argument goes unused and the second argument is then used for the actual value.
This means that instead of doing
auto date = GameToolbox::timestampToHumanReadable(m_uploadDate);

I have to do something like
auto date = GameToolbox::timestampToHumanReadable(0, m_uploadDate);

the function then works properly and returns the intended result

fixed in 7fa328b76892f0f2c9f486ef2ad6aaaed5997b43


does not work with ordinals

finds twenty-third in your example but cannot find first, second, third.

alpha2digits takes an optional parameter that let you set a threshold under which cardinal and ordinals are not translated. The default value is 3.


Paul 'Havoc' Stein alternate WFRP2E character sheet

Maintainers, I took a stab at the approved.yaml
This is an alternate API driven WFRP2e character sheet by Paul "Havoc" Stein (55273). Several forum members looked for this sheet to be added, and working with Paul, I obliged.

You'll need to add the API scripts to the repo, here, so that I can add it to the one-click-install list.


Console logs for dropped connection on iPad

Using Safari on desktop as the facilitator/host, the game refuses to maintain a connection when joining the game from Safari on iOS (iPad).
Console log from Safari (Desktop):
Console log from Safari (iPad):

Additional console log for looped error messages upon disconnection, possibly related to the functionality of the web socket?:


Weird console trace coming from next in dev and prod

Example

How to reproduce:
yarn add next react react-dom

Create index page:
export default () =>
piu
;

Run dev or prod
yarn dev

That seem to be Opera bug


Stanford Dogs Label Error

Annotation/n02085782-Japanese_spaniel/n02085782_2914
There are two "Japanese Spaniel" dogs (box 0, box 1) but box 3 is not "Japanese Spaniel."
The most likely breed may be "Cocker Spaniel."
In n02085620-Chihuahua/n02085620_1916.jpg, box 0 is "Chihuahua", box 1 is not "Chihuahua" but is more likely "Boston Bull"
n02085936-Maltese_dog/n02085936_10610.jpg box 1 is "West Highland White Terrier"

It might be good to train a classifier using box zero. Then run predictions on multi-box images and locate inconsistent boxes. Review inconsistent boxes manually.


Bump to 1.8.1

This is slighly improving the OSC version bump workflow and puts it in practice to prepare the release of OSC 1.8.1.

Fixes: https://issues.redhat.com/browse/KATA-3488

ci/prow/sandboxed-containers-operator-e2e failure is expected (see https://github.com/openshift/release/pull/59339#issuecomment-2507814251 for details).


Added conditional rendering of keyboard controls

Fixes #5047

Changelog Entry
Fixes #5047. Added condition for FocusRedirector in PR #5206, by @amirmursal
Description

Talkback is focusing on some empty divs while navigating through chat messages. This issue has been addressed in this PR

[ ] I have added tests and executed them locally
[x] I have updated CHANGELOG.md
[ ] I have updated documentation

Review Checklist

This section is for contributors to review your work.

[ ] Accessibility reviewed (tab order, content readability, alt text, color contrast)
[x] Browser and platform compatibilities reviewed
[ ] CSS styles reviewed (minimal rules, no z-index)
[ ] Documents reviewed (docs, samples, live demo)
[ ] Internationalization reviewed (strings, unit formatting)
[ ] package.json and package-lock.json reviewed
[ ] Security reviewed (no data URIs, check for nonce leak)
[ ] Tests reviewed (coverage, legitimacy)

What about android devices with keyboard, like tablets and laptops?

@amirmursal while I understand, this would be an easy fix for android phones with talkback, there are a lot of android devices which could benefit from having the keyboard navigation. We should find a way to make our focus work consistently across platforms.
Perhaps you could try to run some android browser through Windows subsystem for Android to verify on the Android with keyboard type of devices in addition to phone

@amirmursal this is not addressed still


[sim-swap-subscriptions]: remove allof in sinkcredential

What type of PR is this?
Add one of the following kinds:

correction

What this PR does / why we need it:
Removing this allOf.
It was discovered for some code-generator, it will produce unexpected behaviours having the description inside the allOf.
Which issue(s) this PR fixes:
Fixes #174
Changelog input
[sim-swap-subscriptions]: remove `allOf` in `sinkCredential` in `SubscriptionRequest` component

@fernandopradocabrillo This request is aligned with current commonalities rules (here line 299-300) so I guess we can merge it and have in r1.4. WDYT?

@fernandopradocabrillo This request is aligned with current commonalities rules (here line 299-300) so I guess we can merge it and have in r1.4. WDYT?

Fine for me. It doesn't change the API functionality, just the structure of the schema so I don't think we need to update the API version. We can include it, I'll remove the don't merge tag

Hello @dfischer-tech
May I ask to change the version in the yam to wip.
Lines 64 & 71.
I will then merge this one. It will be part of next release.
Thanks

@dfischer-tech @fernandopradocabrillo I've changed the version accordingly.
Fernando if ok for you we can merge :)


RFC 6901 op:replace & arrays

In json file I have an array with 4 strings.
"OBJECTS":{
                    "IMAGE":{
                        "ENABLED":true
                        ,"FILE": [
                            "JPEG"
                            ,"PNG"
                            ,"TIFF"
                            ,"FITS"
                        ]
                    }

I am applying patch (op:replace) which shall replace array with new content, this time 3 strings.
{"op":"replace","path":"...","value":["PNG","TIFF","FITS"]}

As result array has still 4 elements, last one "survived" patch operation
"OBJECTS":{
                    "IMAGE":{
                        "ENABLED":true
                        ,"FILE": [
                            "PNG"
                            ,"TIFF"
                            ,"FITS"
                            ,"FITS"
                        ]
                    }

I think whole array shall be replaced.
Compiled on ARM SBC with gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)
I am using code tagged as v3.7.3

Can you provide a complete example for both the value and the patch?

Hi Niels,
First of all Happy New Year!
Since I was misled, i.e. the patch path parameter is generated and uses the array expansion, there is no error in the code. Sorry for the confusion!
[{"op":"replace","path":"/PREVIEW/IMAGE/AVERAGING","value":15},{"op":"replace","path":"/PREVIEW/IMAGE/RESCALE","value":1},{"op":"replace","path":"/PREVIEW/INTERVAL","value":30},{"op":"replace","path":"/REPORTER/CONFIGURATION/PREVIEW/OBJECTS/IMAGE/FILE/0","value":"PNG"},{"op":"replace","path":"/REPORTER/CONFIGURATION/PREVIEW/OBJECTS/IMAGE/FILE/1","value":"TIFF"},{"op":"replace","path":"/REPORTER/CONFIGURATION/PREVIEW/OBJECTS/IMAGE/FILE/2","value":"FITS"}]

Happy new year to you, too!


Working for 5.2

Hey, any chance for 5.2 Compatible?

You are the best!.
And you should definetly make more Advertisment on Unreal Forum etc there
are not a lot that knows about this insane HQ Plugin!.
seiko_dev @.***> schrieb am Sa., 24. Juni 2023, 03:53:

Ok, I'll try. Just be patient.
—
Reply to this email directly, view it on GitHub
https://github.com/seiko-dev/UI_Blooman/issues/63#issuecomment-1605230446,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABX7ECLJP2AQFODBOXCQZRLXMZB75ANCNFSM6AAAAAAZQOI3AA
.
You are receiving this because you authored the thread.Message ID:
@.***>

works on Fast Test perfect, Thanks! have a nice day
Am Sa., 24. Juni 2023 um 10:15 Uhr schrieb seiko_dev <
@.***>:

Closed #63 https://github.com/seiko-dev/UI_Blooman/issues/63 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/seiko-dev/UI_Blooman/issues/63#event-9625068730, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABX7ECLNFZR3RHHSZJ2SFRTXM2OZ5ANCNFSM6AAAAAAZQOI3AA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Import and Export Feature

Version information

Laravel: v8.11.2
Voyager: v#1.4
PHP: 7.4.3
Database: MySQL 8.0

Description of problem

There is no Import and export functionality for tables. There is many a times that we need to import a .csv or excel file. Sometimes we also need to export it for migration.
Proposed solution
Add a Import and Export Button to the BREADs. Also add import/export permissions for BREADs and Roles.
Additional context
I am willing to Submit a PR regarding this feature.

PRs are welcome if you wish to put the work in for this.  The core team has no plans to add this feature ourselves at this time.


[Theme][material] Add missing styleOverrides for theme MuiStack

[x] I have followed (at least) the PR section of the contributing guide.

Closes: #38151
The styleOverrides MuiStack key type was missing from the overrides Components type: https://github.com/mui/material-ui/pull/28843#issuecomment-939481966

@oliviertassinari yes 😊, it was only missing the type so TS was throwing an error
This is the same codesandbox but using this PR's material build: https://codesandbox.io/s/romantic-dewdney-mgscff?file=/src/App.tsx.


File upload discrepancy: POST vs PATCH

There is a slight difference in POST vs PATCH that is causing errors. Using POST everything works fine, switching to a PATCH causes RenameUpload to fail. I have put multipart/form-data into the whitelist and have also marked the field as "file upload". Here is a link to a gist that shows the data and the headers: https://gist.github.com/sariabod/7e428ee893987332ddac93f67a02cb5c
The data being passed into RenameUpload looks almost identical. The only differences I can spot are:

The tmp_name of the POST request always starts with 'php' and the PATCH with 'zfc' (can't see how that would make a difference, but at this point I am not taking any chances)

When calling PATCH, an actual file is created in the tmp directory (then fails). When POST is used, there isn't any file in the tmp directory (and ironically no issues). This happens by just uploading a file as well, before RenameUpload is called.

I searched a lot and found may similar issues. Most were really old and didn't offer any solutions. I also used multiple REST clients just to rule that out. File permissions look good as well (at least for the PATCH scenario). I am all out of ideas.

There is a special RenameUpload class shipped with the Content-Negotiation module. This class can be found here:
https://github.com/zfcampus/zf-content-negotiation/blob/master/src/Filter/RenameUpload.php
Is that the one you are talking about?

@Wilt thanks for this. I didn't even think to look for a specific zfcampus filter. I changed from the zend version to zfcampus version and tried again. A couple things:

The call is being routed right back to parent::moveUploadedFile (line 49) anyway. The $request variable is null at that point.

As a test of my own curiosity, I forced it to not call parent::moveUploadedFile but ended with exact same error.

It has to be something I am not setting up correctly.

@Wilt Ok, I think I got it working. The fact the request was null was bugging me. lt looks like I was simply missing this on the RenameUpload object.
setRequest(new Request());

After this it worked it like a charm. Thanks for the help!


$base used instead of base, causes error path to fail

I think this is just a typo, but the base.setErrors on line 165 references $base instead of base, which causes an error (when there's an error).  I think it's meant to be just "base" though when I did that, it caused another error so not sure I have a working PR to file yet.  errorText is also not initialized as a variable in that block, causing problems in a strict/bundled environment about it not being strictly defined.

Got it - I've pushed an update that appears to fix during testing but if you could confirm as well with the new version 0.4.1. Thanks for the heads up!


Can you provide a training log of one IDOL model?

Hi，IDOL is an excellent paper, with many wonderful designs.
Unfortunately, due to resource constraints, I can't fully train it.
Can you provide a training log of one IDOL model on the Youtube-VIS dataset?
Thanks.

Hi, thanks for your attention~
Here is a training log for ResNet-50 backbone on YTVIS2019 with 8*A100. Hope it helps~
https://drive.google.com/file/d/16jqwbEzSkY-qcVZYYJeZ2vj8-Mffm30T/view?usp=sharing


fix(plugins/plugin-kubectl): new kubectl event watching logic may dro…

…p events
Fixes #6451

Description of what you did:

My PR is a:

[ ] 💥 Breaking change
[x] 🐛 Bug fix
[ ] 💅 Enhancement
[ ] 🚀 New feature

Please confirm that your PR fulfills these requirements

[x] Multiple commits are squashed into one commit.
[x] The commit message follows Conventional Commits, which allows us to autogenerate release notes; e.g. fix(plugins/plugin-k8s): fixed annoying bugs
[x] All npm dependencies are pinned.

sup

sorry


index with multiple categorized sitemaps

Hi,
I would like to split sitemaps per category and have them all referenced in sitemap-index.xml.
It does not seem to be trivial given existing examples. Does anyone have done similar setup?
This is what I would like to achieve, currently I can only write to single sitemap stream. Following SitemapAndIndexStream example.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://website.com/sitemap-blog-0.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://website.com/sitemap-blog-1.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://website.com/sitemap-shop-0.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://website.com/sitemap-shop-1.xml</loc>
  </sitemap>
</sitemapindex>

perhaps its out of scope of this project. I managed to split it with simpleSitemapAndIndex and lots of additional code

@tasiotas Can you please show me how did you manage to create different multiple sitemaps with indexing.

sorry, in the end I dropped sitemap.js lib and went full with custom code writing my own XMLs.
I dont have a code at hand where I had it working with simpleSitemapAndIndex. I believe I was calling it multiple times, and then moving/renaming output file. I had to generate indexes by hand anyway...

@tasiotas Thanks for the quick response.
Even I considered doing custom code to generate XML as I want as the package is less supportive for creating multiple sitemaps at once and index it in sitemap.xml.

It's a little late to be here but here is how I managed it.
import fs from "node:fs";
import { type SitemapItemLoose, SitemapAndIndexStream, SitemapStream, SitemapIndexStream } from "sitemap";

const hostname = "https://...";

export default class SitemapApplication {

    generateSitemap() {
        const blogs= []; /* get items from somewhere */
        const books= []; /* get items from somewhere */
        const movies= []; /* get items from somewhere */

        this.createSitemapCategory(blogs, "blog", true);
        this.createSitemapCategory(books, "books", true);
        this.createSitemapCategory(movies, "movies", true);

        this.createIndexStream(["blog", "books", "movies"]);
    }

    private createIndexStream(categories: string[]) {
        const indexStream = new SitemapIndexStream();
        categories.forEach(category => indexStream.write({ url: `${hostname}/sitemap_${category}.xml` }));
        indexStream.pipe(fs.createWriteStream("sitemap_index.xml"));
        indexStream.end();
    }

    private createSitemapCategory(data: SitemapItemLoose[], name: string, singleFile = false) {
        const stream = new SitemapAndIndexStream({
            getSitemapStream: index => {
                const sitemapStream = new SitemapStream({
                    hostname: hostname
                });
                const filePath = singleFile && index === 0 ? `sitemap_${name}.xml` : `sitemap_${name}-${index}.xml`;

                const ws = sitemapStream
                    .pipe(fs.createWriteStream(filePath));

                return [new URL(filePath, hostname).toString(), sitemapStream, ws];
            }
        });

        data.forEach(item => stream.write(item));

        stream.end();
    }
}


Upgrade to 6.3.3

Deprecated in favour of brewcask and Boxen's in built support for
homebrew/brewcask.


model_arg is not defined

The evaluate script does not run due to model_arg not being defined -- https://github.com/aatifjiwani/rgb-footprint-extract/blob/main/models/deeplab/evaluate.py#L59.

@calebrob6 Fixed in #7. Thanks for catching this!


Fabric AI integration

Is your feature request related to a problem? Please describe.
I am using https://github.com/danielmiessler/fabric a tool that is very handy to take notes from YouTube videos and it works flawlessly with Ollama.
The output then have to be saved manually in a txt/markdown format etc.
It would be nice to integrate it with open-webui and seeing the output there.
Describe the solution you'd like
A sub menu for summarisation/fabric that sends and displays fabric output
Describe alternatives you've considered
Manually saving output from Fabric

Use search:

#4102
#4111


Some question about the definition of batch

Thanks for providing such a great tool!
I am not an expert in this field, but I think your work gonna have a great help to the current project I am working on. But I am still curious about if what I am understands are correct.
For example, in one example in your tutorial (https://torchode.readthedocs.io/en/latest/torchdiffeq/), the "batch" means an ODE system with different initial value, so the problem of other solvers (like torchdiffeq) are jointly solve "batches" of ODE system, so would introduce unintended interaction between these Systems, because they are independent (?) but your work could parallel to solve those systems, and even the initial condition, time interval, step size could be different in each system?
If I understand correctly, give a graph (e.g. social network), if I could decoupled them into several independent subsystem (so a subsystem could be regarded as a batch?), and I could use your tool to parallel solve them even with different initial condition and time interval correct?

Yes, that is correct. If you manage to split your graph into independent subgraphs and batch them, you can choose different initial conditions etc for each of them and each ODE will be solved with its own solver state, e.g. step size and error estimate.

That would be realllllly cool, thanks so much!!


[QUESTION] Why such big native libraries?

I'm trying to use your binaries in my system, but i checked and you have an average 1MB file for the native libraries (each) that looks such a big file for a library. I would like to ask why these files got so big?
This might sound a very stupid concern but i'm planning to use this in an android app and the whole app (including assets and images) fits in 3.5MB adding 1MB more just for using one library its weird to me (mainly because my app targets low end devices)
i found some other implementations of this algorithm with binaries lesser than 100kb so why this native version got so big? is it possible to improve the size?

You can remove the unneeded functionality for your use case, e.g. dict training, handling old versions, etc. and build a package to distribute with your app. I agree that the Android packages could be slimmed down.

You can remove the unneeded functionality for your use case, e.g. dict training, handling legacy versions, etc. and build a package to distribute with your app. I agree that the Android packages could be slimmed down, but they will not come down to 100KB: the aar files contain the native binaries for 4 platforms arm, aarch64, x86, amd64, so they add up.

100KB each platform I think is a reasonable goal.
TBH, my first thought about this large lib file was poor dependecy management, like someone was importing any dependency without really check if it is needed (unhapilly this is a very common habbit)
I didn't want to download the source and compile myself since it adds an extra complexity to my enviroment (i've never used ndk for example) also your interface and performance is very good [comparing with other java solution]

Yes, but 100KB is not possible with the current approach when we ship all the supported features. If you have limited needs you can build a package without the needed components. Currently for generic amd64 compile:
888     ./compress
196     ./decompress
152     ./dictBuilder
88      ./common
1396    .
So if you want just the decompression part you should be able to strip it to ~ 280KB.


Optimize/dockerfile

🚧 WIP 🚧

if the proper .env file is not breaking anything then this one is good to go.

In the default .env.example in lnbits, # FORWARDED_ALLOW_IPS="*" is commented. But this is needed when behind a proxy (like startos, or diy solutions)
In the previous .env.example this setting was enabled.
Other settings that change:
LNBITS_ADMIN_UI=false (was true)
LNBITS_BACKEND_WALLET_CLASS=VoidWallet (was LndRestWallet)
that last one is also an important one I think.

I was able to get this build to work properly with a few additional changes. But after consideration of the 0.3.6 sdk, I expect we will just be pulling the docker image directly from Dockerhub lnbits/lnbits rather than maintaining our own Dockerfile. Likewise I expect the CI workflows and Makefile to change.
That said, I don't think it makes a lot of sense to merge this PR with the 0.3.6 re-design right around the corner.


Enable direct linking in Clojure.

Direct linking is a compiler feature that is particularly useful for
AOT-compiled server programs. It removes some of the dynamicity of
Clojure (late dereferencing via vars) in favor of direct static calls
in the compiled code. This generally results in JVM bytecode that is
more amenable to JIT optimization by the JVM.

Thanks!


Uncaught TypeError: Cannot read property '1' of null

When trying to view a Jekyll project, there's no filter listing and I get this error:
prose.js:2 Uncaught TypeError: Cannot read property '1' of null
    at Object.extractFilename (prose.js:2)
    at n.initialize (prose.js:2)
    at n.t.Model (prose.js:6)
    at n [as constructor] (prose.js:6)
    at new model (prose.js:1)
    at n._prepareModel (prose.js:6)
    at n.set (prose.js:6)
    at n.add (prose.js:6)
    at n.reset (prose.js:6)
    at Object.e.success (prose.js:6)

Other UI elements are available; Filter Files, Switch Branch and Most Recent History. Clicking "New File" button brings up a similar error.

@maedi what repo are you trying to view? If the repo is private, can you give me more context about the type of content you are trying to access using Prose?

Sure it's https://github.com/maedi/maedi.github.io


LHS lesser than RHS : el2_ifu_mem_ctl.sv : ic_debug_way

https://github.com/chipsalliance/Cores-VeeR-EL2/issues/161
assign ic_debug_way[pt.ICACHE_NUM_WAYS-1:0] = {(ic_debug_way_enc[1:0] == 2'b11), el2_ifu_mem_ctl.sv | 1632 | LHS: 'ic_debug_way[(pt.ICACHE_NUM_WAYS - 1):0]' width 2 is less than RHS: '{(ic_debug_way_enc[1:0] ==2'b11) ,(ic_debug_way_enc[1:0] ==2'b10) ,(ic_debug_way_enc[1:0] ==2'b01) ,(ic_debug_way_enc[1:0] ==2'b00)}' width 4 in assignment [Hierarchy: '>>>.ifu.mem_ctl'] ¦ el2_ifu_mem_ctl |
assign ic_debug_way[pt.ICACHE_NUM_WAYS-1:0] = {(ic_debug_way_enc[1:0] == 2'b11),
(ic_debug_way_enc[1:0] == 2'b10),
(ic_debug_way_enc[1:0] == 2'b01),
(ic_debug_way_enc[1:0] == 2'b00) };

@nstewart-amd is this still causing errors in your lint? It doesn't seem to be popping up in recent email exchanges, but the code has not been updated as of #483

@calebofearth - From what I can tell, this issue was fixed in #483.

Thanks Matt, you're correct, I must have looked at the wrong commit.


doc: Website build instructions incomplete

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
1.8.1
What operating system and processor architecture are you using (go env)?
Debian 8
What did you do?
wget https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz
tar -zxvf go1.8.1.linux-amd64.tar.gz
mv go go1.8.1
git clone https://go.googlesource.com/go
cd go
git checkout go1.8.1
cd src
export GOROOT_BOOTSTRAP=/usr/src/go1.8.1/bin/
export GOROOT=/usr/src/go1.8.1/bin/
GOOS=linux GOARCH=amd64 ./bootstrap.bash
Copying to ../../go-linux-amd64-bootstrap
Cleaning ../../go-linux-amd64-bootstrap
Building ../../go-linux-amd64-bootstrap
Building Go bootstrap tool.
cmd/dist
go tool dist: $GOROOT is not set correctly or not exported
GOROOT=/usr/src/go-linux-amd64-bootstrap
/usr/src/go-linux-amd64-bootstrap/src/all.bash does not exist
What did you expect to see?
all.bash to build go with
What did you see instead?
see above.
Any other variables or commands just gives more error messages. A really ugly welcome to newcomers trying to build / install an up to date go.

The main Golang website and build instructions for building from source.

Is there any reason you're not using the precompiled linux-amd64 binaries? ("the website didn't tell me this was the recommended way" is a valid answer.)

Linux has a bad track record with precompiled binaries. I know go can help
change that ;-) I come form the Gentoo world so if the packaged version is
outdated I usually head straight for the source to get to know the
community and start figuring out why the packaged versions are so far
behind... Debian is on 1.3. And a developer who has to spend an hour or two
extra just to get to a first build because of quirky environmental
dependencies has an hour or two less of his/her precious time to keep their
distro package up to date, so I'm keen and willing to help make sure
newcomers can always hit the ground running. Is there a suggested
development environment, or one an official Golang docker tag?
On Sat, Apr 8, 2017, 11:23 Alberto Donizetti<EMAIL_ADDRESS>wrote:

Is there any reason you're not using the precompiled linux-amd64 binaries?
("the website didn't tell me this was the recommended way" is a valid
answer.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/19892#issuecomment-292706174, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAw_RFXTUuwrEkdLL04nk_rlIpDbL0ydks5rt1H1gaJpZM4M3oZy
.

No, no, wait. I'm not talking about the Linux packages (e.g. the apt-get install ones). We have precompiled, always-up-to-date binaries for linux on the website. It literally as simple as
# get the archive
$ wget https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz

# extract in /usr/local
$ sudo tar -C /usr/local -xzf go1.8.1.linux-amd64.tar.gz

# add to PATH
$ export PATH=$PATH:/usr/local/go/bin

and now you have the latest go version on your machine.
The download page says:

After downloading a binary release suitable for your system, please follow the installation instructions.

and installation instructions point at this page: https://golang.org/doc/install.
Maybe we should make more clear (in the download page) that unless you have a very good reason to build from source you should use the binaries.

@dagelf,
export GOROOT_BOOTSTRAP=/usr/src/go1.8.1/bin/
export GOROOT=/usr/src/go1.8.1/bin/
  :
go tool dist: $GOROOT is not set correctly or not exported

Both GOROOT and GOROOT_BOOTSTRP must specify the root of the Go tree as described in https://golang.org/doc/install/source.

The GOROOT* variables also should not contain the bin element.

That is the page I followed. /bin or without doesn't matter.
$ export GOROOT=/usr/src/go1.8.1/
$ export GOROOT_BOOTSTRAP=/usr/src/go1.8.1/
$ /usr/src/go1.8.1/bin/go version
go version go1.8.1 linux/amd64
$ rm -rf ../../go-linux-amd64-bootstrap
$ GOOS=linux GOARCH=amd64 ./bootstrap.bash
Copying to ../../go-linux-amd64-bootstrap
Cleaning ../../go-linux-amd64-bootstrap
Removing src/cmd/dist/dist
Building ../../go-linux-amd64-bootstrap
Building Go bootstrap tool.
cmd/dist
go tool dist: $GOROOT is not set correctly or not exported
GOROOT=/usr/src/go-linux-amd64-bootstrap
../../go-linux-amd64-bootstrap/src/all.bash does not exist
../../go/src/all.bash does not exist
I will try it in a docker tomorrow.

You are not following the instructions on that page. It says:

To cross-compile a bootstrap tool chain from source, which is necessary on systems Go 1.4 did not target (for example, linux/ppc64le), install Go on a different system and run bootstrap.bash.

emphasis:

which is necessary on systems Go 1.4 did not target

you don't need to call  ./bootstrap.bash on linux/adm64.

$ export GOROOT_BOOTSTRAP=/usr/src/go1.8.1/

GOROOT_BOOTSTRAP needs to be set to an existing, fully functional Go toolchain. You can use a precompiled binary for that, or you can use Go 1.4, which can be compiled with just a c compiler. (Same repo remote, use release-branch.go1.4 instead.)
These instructions are definitely not clear enough. Once you get everything working, if you want to circle back around and look at them again with your hard-won understanding, suggestions would be welcome.

On this page: https://golang.org/doc/install/source - may I suggest moving the section that  on cross-compilation (starting with "To cross-compile..." until the end of that section) down to just underneath the sections that says "Install Go", perhaps to its own section "Cross Compiling Go", instead of so close to the top.
That would logically make more sense. The mere name "bootstrap" doesn't allude to cross-compilation, and one would expect the most straightforward build commands to come before the more complex ones, and unfortunately we don't live in an ideal world where everyone has time to read all the instructions when the solution seems obvious :-)
I have gotten a few steps further just running ./all.bash... but still failing to build (1.8.3 with 1.8.3 on Ubuntu 16.04, looks like just one test failing through (FAIL: TestUnshare)...
To answer the question "why don't I just do a binary install"  - many Linux distributions ship with packages and are installed off-line. (80% of the planet still doesn't have internet, I'm at the forefront of rolling out internet to areas that doesn't have any, which somewhat ironically sees me needing to work in an offline environment quite often). Having a different installation method creates a special case - a package that needs to be handled differently from all the others. Not being able to automate a build of said package (because of random build errors that need manual troubleshooting) causes the shipped packages to fall behind because our time is a rare commodity. Having clear build instructions that can be skimmed over quickly, or builds that don't require special provisions, really helps distributions stay up-to-date.

Quick note on my unrelated build error - the test has been patched, builds fine with the patch: https://go-review.googlesource.com/c/48571/2/src/syscall/exec_linux_test.go#186


Containerized not as parameter

I don't know If I'm wrong but ose-on-aws.py has a parameter containerized. This parameter is not parametrized in the openshift-setup.yaml. Is it the expected behaviour?

Runtime variables take precedence over vars in files
On May 28, 2017 4:27 AM, "Salvatore Mazzarino"<EMAIL_ADDRESS>wrote:

I don't know If I'm wrong but ose-on-aws.py has a parameter containerized.
This parameter is not parametrized in the openshift-setup.yaml. Is it the
expected behaviour?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openshift/openshift-ansible-contrib/issues/408, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADoslB-9aJEe6uKsqGNLSvJhqI93Yv1sks5r-TAFgaJpZM4Noldp
.

gotcha thanks @cooktheryan


Add VSCode extension for basic syntax highlighting

Adds some very simple syntax highlighting as a VSCode extension.
See the readme for local installation instructions.

sounds good - moved here!


Debugging of boot sequence

Running -d allows for debugging of running processes such as web service, but is there a way to debug the booting sequence itself? I notice many online resources attach -s and -S to QEMU and access it from gdb-multiarch vmlinux followed by target remote :1234. When I do this, continuing from gdb is indeed able to control the execution of the kernel (qemu.final.serial.log only gets updated when it is running in gdb), but no symbols are loaded.
Would like to clarify if it is possible to load the symbols into gdb when debugging so I can add "hbreak start_kernel" and use lx commands. I noticed there are some binaries in the FirmAE/binaries folder, especially the gdb.arm/mips and vmlinux.mips/zImage ones. Could I clarify if these may be used to debug the firmware/get symbols into gdb, or if I need to source for an external symbol file/library?
Also wondering if it's possible to have a shell into the emulated firmware image while doing this, as run.sh -d doesn't seem to work when I append -s and -S to the QEMU call in scratch//run.sh ("OSError: [Errno 113] No route to host").
Thank you!

Thank you for your great question!
I tested -s -S flag for the QEMU on emulated firmware, and the gdb-multiarch remote successfully connected. And also the hardware breakpoint was work well.
I tested on DIR-868L_fw_revB_2-05b02_eu_multi_20161117.zip firmware which is armel architecture, thus I uploaded debuggable vmlinux.armel binary on FirmAE kernel-v4.1 release. Please re-run download.sh script.
Currently, I added -s -S option in scratch/${IID}/run.sh script to run the QEMU with kernel debugging mode. I will update the command on main run.sh script, soon.
Tested log as below.
ubuntu64 ~/Desktop/FirmAE master* $ gdb-multiarch -q ./binaries/vmlinux.armel
pwndbg: loaded 174 commands. Type pwndbg [filter] for a list.
pwndbg: created $rebase, $ida gdb functions (can be used with print/break)
Reading symbols from ./binaries/vmlinux.armel...(no debugging symbols found)...done.
pwndbg> target remote:1234

...

pwndbg> hbreak start_kernel
Hardware assisted breakpoint 1 at 0xc05c6958
pwndbg> c
Continuing.
ERROR: Could not find ELF base!
ERROR: Could not find ELF base!
ERROR: Could not find ELF base!

Breakpoint 1, 0xc05c6958 in start_kernel ()

...

 ► 0xc05c6958 <start_kernel>       push   {r4, r5, r6, r7, r8, sb, lr}
   0xc05c695c <start_kernel+4>     sub    sp, sp, #__vectors_start+28 <28>
   0xc05c6960 <start_kernel+8>     ldr    r0, [pc, #0x2fc]
   0xc05c6964 <start_kernel+12>    bl     #set_task_stack_end_magic <0xc0022994>

   0xc05c6968 <start_kernel+16>    bl     #smp_setup_processor_id <0xc05c942c>

   0xc05c696c <start_kernel+20>    cpsid  i
   0xc05c6970 <start_kernel+24>    ldr    r7, [pc, #0x2f0]
   0xc05c6974 <start_kernel+28>    mov    r4, #1
   0xc05c6978 <start_kernel+32>    mov    r1, r4
   0xc05c697c <start_kernel+36>    mov    r0, #0
   0xc05c6980 <start_kernel+40>    mvn    r6, #0

...

pwndbg>

Thank you!


CodeGeneration project has a 1.0.0 version but depends on 1.1.0 packages

https://github.com/aspnet/Scaffolding/blob/dev/src/Microsoft.VisualStudio.Web.CodeGeneration/project.json must either itself be a 1.1.x package or only depend on 1.0.x packages

Does the 1.0.x rule also apply to Roslyn (and it's dependency on Microsoft.Composition)?

@natemcmaster I believe so - assuming that Microsoft.Composition is part of the "trains" model

The versioning is fixed now. We have both 1.0.0-* and 1.1.0-* packages for scaffolding.


R Dependencies - Error installing leaflet (+ terra, raster)

Issue on M1 Mac installing leaflet/terra/raster (required for infographics/viewshed.qmd) preventing me from rendering site. Wondering if @bbest might know how to fix?

Uninstalled homebrew version of R/Rstudio and installed from source.


Fix usage of sync.Pool

https://go-review.googlesource.com/#/c/24371/ suggests that sync.Pool must be used with a pointer, otherwise allocation is done to convert from interface{}, and using the pool is pointless.
This PR fixes usage of sync.Pool, adds staticcheck to catch other cases, and adds test cases for  content.Copy.
staticcheck also found a couple other issues:

T.Fatal being called in a goroutine - this results in a panic, not a test failure. Fixed by using an error channel
an empty if branch. Removed for now since it may not be necessary. I can open an issue if this error needs to be restored.

LGTM

@dnephin This is incorrect. A slice is already a pointer type.

adds staticcheck to catch other cases, and

Not sure what the error message was, but it sounds like staticcheck is throwing false positives.

adds test cases for content.Copy

Please submit a separate PR.

This is incorrect. A slice is already a pointer type.

I believe you are mistaken:

https://golang.org/src/runtime/slice.go - slice is a struct with 3 fields. makeslice() returns a non-pointer type
a benchmark

Using []byte:
$ go test  -benchmem -bench BenchmarkPool ./tmp
BenchmarkPool-8         10000000               157 ns/op             177 B/op          3 allocs/op

Using *[]byte:
$ go test  -benchmem -bench BenchmarkPool ./tmp
BenchmarkPool-8         10000000               126 ns/op             145 B/op          2 allocs/op

There is an extra alloc.

Not sure what the error message was, but it sounds like staticcheck is throwing false positives.

I didn't phrase that well. I should have said: "adds staticcheck to catch regressions. To prevent someone from adding another case that doesn't use a pointer."

Please submit a separate PR [for the test case for content.Copy]

The new test case is testing code that was modified by this PR. I had to add the test to verify that I hadn't broken anything. It seems appropriate that this test is added along with this code change.

@dnephin Look at the definition of a slice header:
type SliceHeader struct {
        Data uintptr
        Len  int
        Cap  int
}

These types are characterized by the fact that one can copy the type's value without copying the underlying data. This is similar to other "pointer types", such as chan, map, interface, string and pointers.
The benchmark does not prove that it is not a pointer type. It's only showing that there is an unexpected alloc. I rewrote the tests to avoid allocs:
$ go test -benchmem -bench BenchmarkPool
goos: linux
goarch: amd64
BenchmarkPool-8           	100000000	        15.5 ns/op	       0 B/op	       0 allocs/op
BenchmarkPoolCast-8       	30000000	        53.5 ns/op	      32 B/op	       1 allocs/op
BenchmarkPoolPointers-8   	100000000	        15.9 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	_/tmp/ttt	4.837s

Based on the above, pointer types are not required for zero-alloc usage of buffer pools. What is going on? Here is the trace for the alloc (after I removed the copy function and any loop allocated items):
runtime.convT2Eslice:304
_/tmp/ttt.BenchmarkPool:33
testing.(*B).runN:141
testing.(*B).launch:291

The above stack trace is never called by user code; these calls are generated by the compiler when doing a slice conversion. You can see the alloc at https://golang.org/src/runtime/iface.go#L304. It requires space to point the interface to an actual slice header, which seems to be on the stack until the function call.  The actual alloc happens at the call to Put. You can avoid it by preserving the original return value from Get and not doing an inline cast.
The takeaway here is that the whole buffer is not reallocated, only the actual slice header, which is only 3 machine words. The alloc here isn't from the use of non-pointer types but rather due to the cast to and from the interface. It looks like the stdlib use of CopyBuffer uses the pointers, so I am okay with this change.

Codecov Report

Merging #1810 into master will decrease coverage by 0.16%.
The diff coverage is 96.55%.

@@            Coverage Diff             @@
##           master    #1810      +/-   ##
==========================================
- Coverage   49.39%   49.23%   -0.17%
==========================================
  Files          82       84       +2
  Lines        8362     8442      +80
==========================================
+ Hits         4130     4156      +26
- Misses       3573     3619      +46
- Partials      659      667       +8

Flag
Coverage Δ

#linux
49.29% <96.29%> (-0.17%)
:arrow_down:

#windows
45.72% <94.44%> (-0.18%)
:arrow_down:

Impacted Files
Coverage Δ

gc/scheduler/scheduler.go
69.3% <ø> (-0.16%)
:arrow_down:

fs/copy_windows.go
64.28% <100%> (ø)
:arrow_up:

fs/copy.go
34.83% <100%> (+0.74%)
:arrow_up:

content/local/store.go
50.79% <100%> (+0.13%)
:arrow_up:

archive/tar.go
47.3% <100%> (+0.13%)
:arrow_up:

fs/copy_linux.go
30.76% <100%> (ø)
:arrow_up:

content/helpers.go
32.87% <83.33%> (ø)

content/content.go
0% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2556c59...a05e5fd. Read the comment docs.

Yes, that matches my understanding from https://go-review.googlesource.com/c/24371/

It looks like the stdlib use of CopyBuffer uses the pointers

likely because it makes it easier to consume "correctly"

so I am okay with this change.

:+1:


Implement precision and scale methods for Decimal

Currently Decimal type doesn't have any functions returning the precision and scale of the Decimal value. These method will be useful inside ion-schema-rust to implement precision and scale constraints.

Fixed with #365