trouble running register command

$ blockstack register borisr__at__hushmail__dot__com__email.id
API endpoint already running (PID 53284, /home/vagrant/.blockstack/api_endpoint.pid)
Failed to start RPC endpoint (in working directory /home/vagrant/.blockstack).
Please check your password, and verify that the working directory exists and is writeable.

Here are the permissions on the ~/.blockstack directory:
vagrant@jessie:~$ ls -la ~/
total 36
drwxr-xr-x 5 vagrant vagrant 4096 Nov 27 02:21 .
drwxr-xr-x 3 root    root    4096 Sep 29 17:36 ..
-rw------- 1 vagrant vagrant  805 Nov 28 16:20 .bash_history
-rw-r--r-- 1 vagrant vagrant  220 Sep 29 17:36 .bash_logout
-rw-r--r-- 1 vagrant vagrant 3515 Sep 29 17:36 .bashrc
drwxr-xr-x 4 vagrant vagrant 4096 Nov 27 04:55 .blockstack
drwxr-xr-x 2 vagrant vagrant 4096 Nov 27 02:14 .pip
-rw-r--r-- 1 vagrant vagrant  675 Sep 29 17:36 .profile
drwx------ 2 vagrant vagrant 4096 Nov 27 01:40 .ssh

vagrant@jessie:~$ ls -la ~/.blockstack
total 56
drwxr-xr-x 4 vagrant vagrant  4096 Nov 27 04:55 .
drwxr-xr-x 5 vagrant vagrant  4096 Nov 27 02:21 ..
-rw-r--r-- 1 vagrant vagrant   195 Nov 27 02:19 api_endpoint.log
-rw-r--r-- 1 vagrant vagrant     5 Nov 27 02:19 api_endpoint.pid
-rw-r--r-- 1 vagrant vagrant    81 Nov 27 02:19 blockchain-headers.dat
drwxr-xr-x 2 vagrant vagrant  4096 Nov 27 04:54 blockstack-boris
-rw------- 1 vagrant vagrant  1049 Nov 27 04:55 client.ini
-rw-r--r-- 1 vagrant vagrant    36 Nov 27 02:19 client.uuid
-rw-r--r-- 1 vagrant vagrant 12288 Nov 27 02:19 queues.db
-rw------- 1 vagrant vagrant     6 Nov 27 02:19 registrar.lock
drwxr-xr-x 4 vagrant vagrant  4096 Nov 27 02:19 storage-disk
-rw-r--r-- 1 vagrant vagrant  2555 Nov 27 02:19 wallet.json

vagrant@jessie:~$ ls -la ~/.blockstack/storage-disk/
total 16
drwxr-xr-x 4 vagrant vagrant 4096 Nov 27 02:19 .
drwxr-xr-x 3 vagrant vagrant 4096 Nov 28 16:35 ..
drwxr-xr-x 2 vagrant vagrant 4096 Nov 27 02:19 immutable
drwxr-xr-x 2 vagrant vagrant 4096 Nov 27 02:19 mutable

However, note that the balance command works:
$ blockstack balance
{
    "addresses": [
        {
            "address": "3B26pybBXXSgNcgkehWr3zydf5eDdjTzHa",
            "bitcoin": 0.00294,
            "satoshis": 294000
        }
    ],
    "total_balance": {
        "bitcoin": 0.00294,
        "satoshis": 294000
    }
}

The blockstack is installed on Vagrant machine debian/jessie64 without any modifications. https://atlas.hashicorp.com/debian/boxes/jessie64

I had a similar issue two days ago, when attempting to register a name, I ultimately had to do
blockstack rpcctl stop
Which wound up up removing the stale pid
However it should be noted that I've encountered this again (forced to use stop cmd again)
SO, not sure if there is a bug in cli or in my utilization of it lol

I fixed the problem by deleting the api_endpoint.pid file in .blockstack/ directory and that fixed the problem

Yep, I've seen this issue and I do the same thing.
@MaveriQ can you please report this issue at https://github.com/blockstack/blockstack-core/issues? The CLI is getting merged with that repo and we'll track issues there.
Feel free to close this one once you've captured the info on the new issue -- thanks!

Awesome. Closing this and we'll track #316


Are there way ? Not use "graph.on" to get information of nodes highlighted

G6 Version:
Platform:
Mini Showcase(like screenshots):
CodePen Link:

I use global variable 'dblclick_node' and when  use graph.on("dbclick:node"),  I save information node clicked to "dblclick_node", console.log still working but "dblclick_node" is undefined when I use at another time. That means "dblclick_node" didn't save information
     graph.on("node:dblclick", function(e) {
        const item = e.item;
        let node_selected = {
          id: item._cfg.model.id,
          name: item._cfg.model.name,
          so_hieu: item._cfg.model.so_hieu,
          loai_van_van: item._cfg.model.loai_van_ban,
          ngay_ban_hanh: item._cfg.model.ngay_ban_hanh,
          tinh_trang: item._cfg.model.tinh_trang
         }
       this.dbclick_node = node_selected;
      console.log(node_selected)
        };)

I'm not sure if this assignment was called before you use dblclick_node in your program. If so, it should work.
And another possible reason is whether the this is the correct pointer, maybe you can console it to verify.

graph.on('afteractivaterelations', e => {
// e.item is the highlighted node
// e.action is 'activate' or 'deactivate' to indicates whether you are hovering or leaving the node
});
I doesn't use that function. Are you get the example?

graph.on('afteractivaterelations', e => {
// e.item is the highlighted node
// e.action is 'activate' or 'deactivate' to indicates whether you are hovering or leaving the node
});
Are you get the example about that function ?

It is triggered by behavior activate-relations.


Fix New Pages/Tabs

When a page is created by something besides horseman (e.g., clicking a link), horseman is unaware of it. I found this when using horseman for something with @wang701.
This makes horseman add any created pages to the list of tabs. Also it adds an option for whether or not to switch to new tabs, and it defaults to false to be closer to the current behavior.
There are no tests... If I find time I might be able to make some.

The tests pass when I run them locally, but not in Travis...

I tested this change with my code. Horseman is aware of the new page created by my browser now.
Thanks.


Module '"*.svelte"' has no exported member

Describe the bug
tsc --watch --noEmit raise bunch of errors
Reproduction
Clean installation from documentation
Logs
src/lib/components/ui/toggle/index.ts:3:2 - error TS2614: Module '"*.svelte"' has no exported member 'toggleVariants'. Did you mean to use 'import toggleVariants from "*.svelte"' instead?

3  toggleVariants,
   ~~~~~~~~~~~~~~

src/lib/components/ui/toggle/index.ts:4:7 - error TS2614: Module '"*.svelte"' has no exported member 'ToggleSize'. Did you mean to use 'import ToggleSize from "*.svelte"' instead?

4  type ToggleSize,
        ~~~~~~~~~~

src/lib/components/ui/toggle/index.ts:5:7 - error TS2614: Module '"*.svelte"' has no exported member 'ToggleVariant'. Did you mean to use 'import ToggleVariant from "*.svelte"' instead?

5  type ToggleVariant,
        ~~~~~~~~~~~~~

src/lib/components/ui/toggle/index.ts:6:7 - error TS2614: Module '"*.svelte"' has no exported member 'ToggleVariants'. Did you mean to use 'import ToggleVariants from "*.svelte"' instead?

6  type ToggleVariants,
        ~~~~~~~~~~~~~~

[01:45:13] Found 14 errors. Watching for file changes.

System Info
System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12400F
    Memory: 16.03 GB / 31.86 GB
  Binaries:
    Node: 22.11.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (130.0.2849.68)

Severity
annoyance

Can you share a reproduction?

┌  Welcome to the Svelte CLI! (v0.6.1)
│
◇  Which template would you like?
│  SvelteKit minimal
│
◇  Add type checking with Typescript?
│  Yes, using Typescript syntax
│
◆  Project created
│
◇  What would you like to add to your project? (use arrow keys / space bar)
│  prettier, eslint, tailwindcss, mdsvex
│
◇  tailwindcss: Which plugins would you like to add?
│  typography
│
◇  Which package manager do you want to install dependencies with?
│  npm
│
◆  Successfully setup add-ons
│
◇  Successfully installed dependencies
│
◇  Successfully formatted modified files
│
◇  Project next steps ─────────────────────────────────────────────────────╮
│                                                                          │
│  1: cd my-app                                                            │
│  2: git init && git add -A && git commit -m "Initial commit" (optional)  │
│  3: npm run dev -- --open                                                │
│                                                                          │
│  To close the dev server, hit Ctrl-C                                     │
│                                                                          │
│  Stuck? Visit us at https://svelte.dev/chat                              │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
└  You're all set!

PS F:\shadcn-svelte> cd .\my-app\

npx shadcn-svelte@next init

PS F:\shadcn-svelte\my-app>
 *  History restored

┌   shadcn-svelte  v1.0.0-next.1
│
◇  Which style would you like to use?
│  New York
│
◇  Which base color would you like to use?
│  Zinc
│
◇  Where is your global CSS file? (this file will be overwritten)
│  src\app.css
│
◇  Where is your Tailwind config located? (this file will be overwritten)
│  tailwind.config.ts
│
◇  Configure the import alias for components:
│  $lib/components
│
◇  Configure the import alias for utils:
│  $lib/utils
│
◇  Configure the import alias for hooks:
│  $lib/hooks
│
◇  Configure the import alias for ui:
│  $lib/components/ui
│
◇  Config file components.json created
│
◇  Project initialized
│
◇  Dependencies installed with npm
│
└  Success! Project initialization completed.

npx  shadcn-svelte@next add

◇  Which components would you like to install?
│  accordion, alert, alert-dialog, aspect-ratio, avatar, badge, breadcrumb, button, calendar, card, carousel,
checkbox, collapsible, command, context-menu, data-table, dialog, drawer, dropdown-menu, form, hover-card,
input, input-otp, label, menubar, pagination, popover, progress, radio-group, range-calendar, resizable,
scroll-area, select, separator, sheet, sidebar, skeleton, slider, sonner, switch, table, tabs, textarea, toggle,toggle-group, tooltip
│
◇  Ready to install components and dependencies?
│  Yes
│
◇  accordion installed at src\lib\components\ui\accordion
│
◇  alert installed at src\lib\components\ui\alert
│
◇  alert-dialog installed at src\lib\components\ui\alert-dialog
│
◇  aspect-ratio installed at src\lib\components\ui\aspect-ratio
│
◇  avatar installed at src\lib\components\ui\avatar
│
◇  badge installed at src\lib\components\ui\badge
│
◇  breadcrumb installed at src\lib\components\ui\breadcrumb
│
◇  button installed at src\lib\components\ui\button
│
◇  calendar installed at src\lib\components\ui\calendar
│
◇  card installed at src\lib\components\ui\card
│
◇  carousel installed at src\lib\components\ui\carousel
│
◇  checkbox installed at src\lib\components\ui\checkbox
│
◇  collapsible installed at src\lib\components\ui\collapsible
│
◇  command installed at src\lib\components\ui\command
│
◇  context-menu installed at src\lib\components\ui\context-menu
│
◇  data-table installed at src\lib\components\ui\data-table
│
◇  dialog installed at src\lib\components\ui\dialog
│
◇  drawer installed at src\lib\components\ui\drawer
│
◇  dropdown-menu installed at src\lib\components\ui\dropdown-menu
│
◇  hover-card installed at src\lib\components\ui\hover-card
│
◇  input installed at src\lib\components\ui\input
│
◇  form installed at src\lib\components\ui\form
│
◇  input-otp installed at src\lib\components\ui\input-otp
│
◇  label installed at src\lib\components\ui\label
│
◇  menubar installed at src\lib\components\ui\menubar
│
◇  pagination installed at src\lib\components\ui\pagination
│
◇  popover installed at src\lib\components\ui\popover
│
◇  progress installed at src\lib\components\ui\progress
│
◇  radio-group installed at src\lib\components\ui\radio-group
│
◇  range-calendar installed at src\lib\components\ui\range-calendar
│
◇  resizable installed at src\lib\components\ui\resizable
│
◇  scroll-area installed at src\lib\components\ui\scroll-area
│
◇  select installed at src\lib\components\ui\select
│
◇  separator installed at src\lib\components\ui\separator
│
◇  sheet installed at src\lib\components\ui\sheet
│
◇  sidebar installed at src\lib\components\ui\sidebar
│
◇  skeleton installed at src\lib\components\ui\skeleton
│
◇  slider installed at src\lib\components\ui\slider
│
◇  sonner installed at src\lib\components\ui\sonner
│
◇  switch installed at src\lib\components\ui\switch
│
◇  table installed at src\lib\components\ui\table
│
◇  tabs installed at src\lib\components\ui\tabs
│
◇  textarea installed at src\lib\components\ui\textarea
│
◇  toggle installed at src\lib\components\ui\toggle
│
◇  toggle-group installed at src\lib\components\ui\toggle-group
│
◇  tooltip installed at src\lib\components\ui\tooltip
│
◇  is-mobile installed at src\lib\hooks\is-mobile
│
◇  Dependencies installed with npm
│
◇  Config file components.json updated
│
└  Success! Component installation completed.

tsc --watch --noEmit

[01:56:25] Starting compilation in watch mode...

src/lib/components/ui/alert/index.ts:4:10 - error
TS2614: Module '"*.svelte"' has no exported member 'alertVariants'. Did you mean to use 'import alertVariants from "*.svelte"' instead?

4 export { alertVariants, type AlertVariant } from "./alert.svelte";
           ~~~~~~~~~~~~~

src/lib/components/ui/alert/index.ts:4:30 - error
TS2614: Module '"*.svelte"' has no exported member 'AlertVariant'. Did you mean to use 'import AlertVariant from "*.svelte"' instead?

4 export { alertVariants, type AlertVariant } from "./alert.svelte";
                               ~~~~~~~~~~~~

src/lib/components/ui/badge/index.ts:2:10 - error
TS2614: Module '"*.svelte"' has no exported member 'badgeVariants'. Did you mean to use 'import badgeVariants from "*.svelte"' instead?

2 export { badgeVariants, type BadgeVariant } from "./badge.svelte";
           ~~~~~~~~~~~~~

src/lib/components/ui/badge/index.ts:2:30 - error
TS2614: Module '"*.svelte"' has no exported member 'BadgeVariant'. Did you mean to use 'import BadgeVariant from "*.svelte"' instead?

2 export { badgeVariants, type BadgeVariant } from "./badge.svelte";
                               ~~~~~~~~~~~~

src/lib/components/ui/button/index.ts:2:7 - error
TS2614: Module '"*.svelte"' has no exported member 'ButtonProps'. Did you mean to use 'import ButtonProps from "*.svelte"' instead?

2  type ButtonProps,
        ~~~~~~~~~~~

src/lib/components/ui/button/index.ts:3:7 - error
TS2614: Module '"*.svelte"' has no exported member 'ButtonSize'. Did you mean to use 'import ButtonSize from "*.svelte"' instead?

3  type ButtonSize,
        ~~~~~~~~~~

src/lib/components/ui/button/index.ts:4:7 - error
TS2614: Module '"*.svelte"' has no exported member 'ButtonVariant'. Did you mean to use 'import ButtonVariant from "*.svelte"' instead?

4  type ButtonVariant,
        ~~~~~~~~~~~~~

src/lib/components/ui/button/index.ts:5:2 - error
TS2614: Module '"*.svelte"' has no exported member 'buttonVariants'. Did you mean to use 'import buttonVariants from "*.svelte"' instead?

5  buttonVariants,
   ~~~~~~~~~~~~~~

src/lib/components/ui/data-table/data-table.svelte.ts:7:8 - error TS2307: Cannot find module '@tanstack/table-core' or its corresponding type declarations.

7 } from "@tanstack/table-core";
         ~~~~~~~~~~~~~~~~~~~~~~

src/lib/components/ui/data-table/data-table.svelte.ts:55:21 - error TS7006: Parameter 'prev' implicitly has an 'any' type.

55   table.setOptions((prev) => {
                       ~~~~

src/lib/components/ui/toggle/index.ts:3:2 - error
TS2614: Module '"*.svelte"' has no exported member 'toggleVariants'. Did you mean to use 'import toggleVariants from "*.svelte"' instead?

3  toggleVariants,
   ~~~~~~~~~~~~~~

src/lib/components/ui/toggle/index.ts:4:7 - error
TS2614: Module '"*.svelte"' has no exported member 'ToggleSize'. Did you mean to use 'import ToggleSize from "*.svelte"' instead?

4  type ToggleSize,
        ~~~~~~~~~~

src/lib/components/ui/toggle/index.ts:5:7 - error
TS2614: Module '"*.svelte"' has no exported member 'ToggleVariant'. Did you mean to use 'import ToggleVariant from "*.svelte"' instead?

5  type ToggleVariant,
        ~~~~~~~~~~~~~

src/lib/components/ui/toggle/index.ts:6:7 - error
TS2614: Module '"*.svelte"' has no exported member 'ToggleVariants'. Did you mean to use 'import ToggleVariants from "*.svelte"' instead?

6  type ToggleVariants,
        ~~~~~~~~~~~~~~

[01:56:27] Found 14 errors. Watching for file changes.

https://stackblitz.com/github/ieedan/shadcn-repro-template/tree/next

you could also share the repo you are trying to this in or another repo

https://github.com/tzezar/repro

From what I can tell with this repro everything is working fine. Is there a reason you would run tsc?

From what I can tell with this repro everything is working fine. Is there a reason you would run tsc?

We use it to catch all ts error within project, especially those in unopened files.

Okay I see what's going on but I will defer to @huntabyte on how to proceed.
Basically in the newer versions the shared code for the components is exported from within a *.svelte file from the <script lang="ts" module>. We could fix these errors by going back to the old way of doing this where we export everything from index.ts. However in cases where you import from the *.svelte file you would get errors because of circular dependencies.
Truthfully I never use tsc for any of my svelte projects. Normally the better way to go is to run svelte-check using the check script in your package.json when you created the project + linting rules if you are into that.
Also it's worth noting only a few components are effected by this:

alert
badge
button
toggle

You could also fix this yourself by moving the contents of the <script lang="ts" module> tags in these components to the index.ts and then importing them from index.ts in the *.svelte component.

svelte-check is the recommended approach here for this exact reason 😁


[Event Request] Codeunit 80 "Sales-Post" OnTestSalesLineOnBeforeCheckQuantities

Dear ALAppExtensions team,
On behalf of 4PS I would like to request integration event 'OnTestSalesLineOnBeforeCheckQuantities' to be added to procedure 'TestSalesLine' in codeunit 80 "Sales-Post".
    procedure TestSalesLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line")
    var
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeTestSalesLine(SalesHeader, SalesLine, SuppressCommit, IsHandled);
        if IsHandled then
            exit;

        with SalesLine do begin
            case Type of
                Type::Item:
                    CheckItemTrackingQuantity(SalesLine, SalesHeader);
                Type::"Charge (Item)":
                    TestSalesLineItemCharge(SalesLine);
                Type::"Fixed Asset":
                    TestSalesLineFixedAsset(SalesLine)
                else
                    TestSalesLineOthers(SalesLine);
            end;
            TestSalesLineJob(SalesLine);
            OnTestSalesLineOnAfterTestSalesLineJob(SalesLine);

            IsHandled := false; //new
            OnTestSalesLineOnBeforeCheckQuantities(SalesHeader, SalesLine, IsHandled); //new
            if not IsHandled then //new
                case "Document Type" of
                    "Document Type"::Order:
                        TestField("Return Qty. to Receive", 0, ErrorInfo.Create());

    [IntegrationEvent(false, false)]
    local procedure OnTestSalesLineOnBeforeCheckQuantities(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean)
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 49820.


Question about issue FreeOTP

hello thank you for your work with this freeotp fork.
I have a few questions:

https://github.com/freeotp/freeotp-android/issues/172 you know something about this bug. It seems to work well with your Plus version, you confirm me
Since when do you work with this fork you have plans for the future.
The original version has been abandoned or will be further developed.

Thanks again for the fork, just yesterday I was trying out the original version, it was giving me problems with everything (qr images etc...)

I can reproduce the crashing bug you linked in plus version also. I will analyze and fix it in the next version.
I have been working with this fork for more than a year or so. I don't have much plan other than small improvement or bug fixes.
I don't think the original maintainer are still working on the FreeOtp. It haven't been updated for more than two years.


Add 200K stress test methods into integration test

Add 200K stress test methods into integration test (supports/integration-test), @duzhen1996

Already done. Issue closed.
Thanks @duzhen1996 .


10/23/2018 17:45 : Create Pull Request for branch prTesting_2018102317 -> master

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Introduce initial version of  CODE_OF_CONDUCT.md

Description
Introducing initial version of code of conduct statement for repository.

/intelci: run

/intelci: run


Support ResponseHeaderModifier filter for GRPC Route

What would you like to be added:
As a user
I want to be able to add ResponseHeaderModifier filter for GRPCRoutes.
Acceptance Criteria:
As a user I should be able to add response header modifiers to GRPCRoutes

Blocked by #1880 and #1909


allow a custom toolbar to be passed in

Allows a custom Toolbar component to be passed in and used in place of the default.  This makes it easy to move around the date and view navigation buttons.
Sample custom toolbar:

@jquense

thanks!

@jquense any chance we can get a patch version bump so I can pull this in locally? Thanks for the quick merge!


Multiple payment addresses

add multiple payment addresses for coins that require shielding.
This would help the payment processor to keep up with payments.
be careful one daemon load while doing this.

I'm not sure what you mean by this.

As we know when a transaction is sent the remaining unspent is sent to another address thus creating a new tx. When the payment processor runs again if that tx doesn’t meet the minimum confirmation requirements it can’t be spent on payments.
I was thinking if it’s possible to unshield the exact max amount that a payment can use (maxBlocksPerPayment * block subsidy) to multiple addresses instead of one.
The general purpose is to avoid payment processor running for nothing.
Another thing would be to make “maxBlocksPerPayment” to behave like MAX, at the moment it’s working like “blocksPerPayment”. You need to have the amount for all blocks. But this is another issue, i’ll create it later.

I think I see what you mean. One solution would be to calculate the remainder and add that to the transaction to be routed back to the payout address (instead of a random address that has to then be sent back to the payout address to be paid)

I think the remainder is based on block reward? It's been a long time since I've looked into that but let's take BTCZ as an example.
If you have 2 miners, each getting 500 btcz from a block, you would send 1k to the miners, then 11500 back to the payout address. This ensures minimum number of transactions between payouts.

Another option is to just take the full value of the payout address and send it back as a remainder.
Say you have 5k coins in the payout address and you're making a payout to miners for 1k. You would send 1k to the miners then 4k back to the payout address. Again, this would keep you from having to make a tx to a random address then sending back to the payout address.

IMHO sending back to the same address doesn't help as it's still a transaction that needs X confirmations to be used for the next payment (min 3 confirmations).
Still with BTCZ as example:

Shielding is done - let's say 3 generated blocks go to Z address
after 3 confirmations all the amount(37500 btcz) is sent to payment address
we have maxBlocksPerPayment = 1
From t address miners are paid 1 block (12500) -> the remaining amount is sent to a random address.

case 1-> sending the remainder to the same address:

this wouldn't solve anything. If the paymentProcessor runs again in 120 seconds, the remainder wouldn't be confirmed yet. Leading to "Insufficient funds" error, and this leads to the delay mentioned above.
this is exactly as sending to a random address, because when payments are done it uses sendmany method. So it sends funds from any address available in the wallet.

case 2 -> sending the reminder to another 2 addresses:

we have 3 blocks to pay, 12500 each (rounded for the sake simplicity).
we have 37500 in our payment address in 1 big unspent tx
we have maxBlocksPerPayment = 1
split the amount we have available in max payments available => split it in 3
send 1 block reward as payment to miners
send 1 block reward for future payments to a random address from our wallet (or from an address taken from config)
the remaining 1 block to another random address  (just like the one before)
after this transaction we will have 2 TXs ready to be spent after X confirmations
this would lead to faster payments

this is just an example. I hope i drawn it right.
Without an unshield limit we might have 5-8-10 (maybe more) blocks rewards unshielded at once on coins that have low blocktime.
That's one tx from Z to T. When a part of it is spent, the remaining is sent to another address -> wait for min conf(delaying the payment) -> spend funds -> wait again -> spend funds -> wait again -> and so on.

The issue I was trying to solve with this implementation was the delay of payments. This is solved by removing the maximum unshielding "if" statement.
Closing.


Need a compilation flag to disable LLVM

Students in the class need to turn off the LLVM for their projects. We need a compile time flag or something for them to use.
This is urgent.

@rohit-cmu @poojanilangekar A short term fix is to change this function to always return false:
https://github.com/cmu-db/peloton/blob/master/src/codegen/query_compiler.cpp#L43

We have a flag for turning the codegen off.  See below:
jungmin@ubuntu:~/w/work/peloton-tony/build$ ./bin/peloton -h
peloton: Usage Info:
Flags from /home/jungmin/w/work/peloton-tony/src/configuration/configuration.cpp:
-codegen (Enable code-generation for query execution (default: true))
type: bool default: true
-display_configuration (Display configuration (default: false)) type: bool
default: false
-h (Show help) type: bool default: false currently: true
...

@seojungmin I think they need to be able turn it off programmatically from the unit tests.

I think they should just be able to do FLAGS_codegen = false; to disable codegen.

We can close this. Codegen can be programmatically turned off by setting FLAGS_codegen = false.

Can you please add documentation to the wiki?
On Jun 6, 2017 10:52 AM, "Prashanth Menon"<EMAIL_ADDRESS>wrote:

We can close this. Codegen can be programmatically turned off by setting FLAGS_codegen
= false.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cmu-db/peloton/issues/654#issuecomment-306510991, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAr03ekxkv3Ynort9j9g17s8IKt5iTI0ks5sBWeKgaJpZM4NRY1Q
.


[BEAM-10937] Add Tour of Beam page

Add a landing page for the "Tour of Beam" page. This consists of a linear path users can take to learn Apache Beam with interactive notebooks.
New notebooks will be added here to cover more topics.
R: @rosetn
Staged: http://apache-beam-website-pull-requests.storage.googleapis.com/13747/get-started/tour-of-beam/index.html

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Thanks for the comments. I reverted to just using headers and normal text in favor of simplicity.

Hi @aaltay, can you take a look at this whenever you have a chance? I think it might be ready to merge if you think so too.

LGTM.
But there is a vote on replacing the web page on the dev@ list. If we merge this now would it be part of the new website? (/cc @TheNeuralBit)

I think it would just work, but there may be some merge conflicts to resolve. Would you mind if we wait to merge this until after https://github.com/apache/beam/pull/13871 goes in?

I guess this can be merged now but needs a rebase?

Yes #13871 has been merged, it looks like there are just some minor conflicts to resolve

Thanks! Sorry about the delay


How to add Expo Template to Renative

Hi,
how can I add a Expo Template to renative cli and deploy?
Thx in Advance

theoretically it should be possible to support any React Native project, including Expo, you just need to have the correct dependencies. Do you maybe have a template link so I can have a look?

Stale, closing it


FORTRAN wall creation

@DionEngels I'm getting these messages on draco when I run the FIELDLINES test...any idea?  They do not show up for BEAMS3D:
srun --nodes=8 --ntasks-per-node=32 --time=0:30:00 -p express /u/sul/bin/xfieldlines -vmec NCSX_s1_coll -coil coils.NCSX -vac -vessel NCSX_wall_trimesh.dat -hitonly -field_start fieldlines_NCSX_s1.h5 114
srun: job 21080859 queued and waiting for resources
srun: job 21080859 has been allocated resources
FIELDLINES Version  1.80
-----  HDF5 (Parallel) Parameters  -----
   HDF5_version:   1.10 release: 07
-----  MPI Parameters  -----
   MPI_version:   3.01
   Intel(R) MPI Library 2018 Update 4 for Linux* OS

   Nproc_total:       256
   Nproc_shared:       32
   FILE: input.NCSX_s1_coll
----- Generating Starting Points -----
   FILE: fieldlines_NCSX_s1.h5
   NEW_LINES: 262144
      LINE #: 114
   OLD_LINES: 128
      NSTEPS:  24001
----- Input Parameters -----
   R   = [ 1.00000, 2.40000];  NR:    128
   PHI = [ 0.00000, 2.09440];  NPHI:   30
   Z   = [-1.00000, 1.00000];  NZ:    128
   # of Fieldlines: 262144
   VACUUM FIELDS ONLY!
   DIFFUSION OPERATOR TURNED ON!
----- COILS Information -----
   FILE: coils.NCSX
   Coil Periodicity:   3
   Current Systems:   10
   Current Type:      SCALED
   Num Coils  =    6  EXTCUR =  652.272 [kA]
   Num Coils  =    6  EXTCUR =  652.272 [kA]
   Num Coils  =    6  EXTCUR =  652.272 [kA]
   Num Coils  =    8  EXTCUR =    0.000 [A]
   Num Coils  =    8  EXTCUR =    0.000 [A]
   Num Coils  =    8  EXTCUR =    0.000 [A]
   Num Coils  =   12  EXTCUR =  -54.805 [kA]
   Num Coils  =    4  EXTCUR =    0.000 [A]
   Num Coils  =    2  EXTCUR =   94.241 [kA]
   Num Coils  =   18  EXTCUR =   45.514 [kA]
     Vacuum Field Calculation [000]%[  0]%[  1]%[  2]%[  3]%[  4]%[  5]%[  5]%[  6]%[  7]%[  8]%[  9]%[ 10]%[ 10]%[ 11]%[ 12]%[ 13]%[ 14]%[ 15]%[ 15]%[ 16]%[ 17]%[ 18]%[ 19]%[ 20]%[ 20]%[ 21]%[ 22]%[ 23]%[ 24]%[ 25]%[ 25]%[ 26]%[ 27]%[ 28]%[ 29]%[ 30]%[ 30]%[ 31]%[ 32]%[ 33]%[ 34]%[ 35]%[ 35]%[ 36]%[ 37]%[ 38]%[ 39]%[ 40]%[ 40]%[ 41]%[ 42]%[ 43]%[ 44]%[ 45]%[ 45]%[ 46]%[ 47]%[ 48]%[ 49]%[ 50]%[ 50]%[ 51]%[ 52]%[ 53]%[ 54]%[ 55]%[ 55]%[ 56]%[ 57]%[ 58]%[ 59]%[ 60]%[ 60]%[ 61]%[ 62]%[ 63]%[ 64]%[ 65]%[ 65]%[ 66]%[ 67]%[ 68]%[ 69]%[ 70]%[ 70]%[ 71]%[ 72]%[ 73]%[ 74]%[ 75]%[ 75]%[ 76]%[ 77]%[ 78]%[ 79]%[ 80]%[ 80]%[ 81]%[ 82]%[ 83]%[ 84]%[ 85]%[ 85]%[ 86]%[ 87]%[ 88]%[ 89]%[ 90]%[ 90]%[ 91]%[ 92]%[ 93]%[ 94]%[ 95]%[ 95]%[ 96]%[ 97]%[ 98]%[ 99]%[100 -----  Creating wall mesh  -----
 -----  Creating accelerated wall  -----
 -----  Vessel Information  -----
   Wall Name : NCSX
   Date      :  09-04-11
   Faces     :   12000
 Creating blocks. Chosen size:  0.404434444610013
 Filling blocks. Number of blocks:          270
 -----  Done creating accelerated wall  -----
 Accelerated wall written to mesh file. Location:
 NCSX_wall_trimesh_acc.dat

 -----  Vessel Information  -----
   Wall Name : NCSX
   Date      :  09-04-11
   Faces     :   12000
   Blocks    :     270
   Mean faces per block:     56.00
   Highest faces per block:     476
----- Constructing Splines -----
   R   = [ 1.00000, 2.40000];  NR:    128
   PHI = [ 0.00000, 2.09440];  NPHI:   30
   Z   = [-1.00000, 1.00000];  NZ:    128
   MU  =     0.10000E-04
   HERMITE FORM: 1
----- FOLLOWING FIELD LINES -----
      Method: LSODE
       Lines:  262144
       HITONLY: only recording strike points
         Tol:  1.0000E-09  Type: 21
     Fieldline Calculation [  0]%
----- WRITING DATA TO FILE -----
   FILE: fieldlines_NCSX_s1_coll.h5
212.40user 0.80system 3:36.06elapsed 98%CPU (0avgtext+0avgdata 129972maxresident)k
0inputs+0outputs (0major+20232minor)pagefaults 0swaps
212.20user 0.62system 3:35.89elapsed 98%CPU (0avgtext+0avgdata 133248maxresident)k

@DionEngels I'm getting these messages on draco when I run the FIELDLINES test...any idea? They do not show up for BEAMS3D:
srun --nodes=8 --ntasks-per-node=32 --time=0:30:00 -p express /u/sul/bin/xfieldlines -vmec NCSX_s1_coll -coil coils.NCSX -vac -vessel NCSX_wall_trimesh.dat -hitonly -field_start fieldlines_NCSX_s1.h5 114
srun: job 21080859 queued and waiting for resources
srun: job 21080859 has been allocated resources
FIELDLINES Version  1.80
-----  HDF5 (Parallel) Parameters  -----
   HDF5_version:   1.10 release: 07
-----  MPI Parameters  -----
   MPI_version:   3.01
   Intel(R) MPI Library 2018 Update 4 for Linux* OS

   Nproc_total:       256
   Nproc_shared:       32
   FILE: input.NCSX_s1_coll
----- Generating Starting Points -----
   FILE: fieldlines_NCSX_s1.h5
   NEW_LINES: 262144
      LINE #: 114
   OLD_LINES: 128
      NSTEPS:  24001
----- Input Parameters -----
   R   = [ 1.00000, 2.40000];  NR:    128
   PHI = [ 0.00000, 2.09440];  NPHI:   30
   Z   = [-1.00000, 1.00000];  NZ:    128
   # of Fieldlines: 262144
   VACUUM FIELDS ONLY!
   DIFFUSION OPERATOR TURNED ON!
----- COILS Information -----
   FILE: coils.NCSX
   Coil Periodicity:   3
   Current Systems:   10
   Current Type:      SCALED
   Num Coils  =    6  EXTCUR =  652.272 [kA]
   Num Coils  =    6  EXTCUR =  652.272 [kA]
   Num Coils  =    6  EXTCUR =  652.272 [kA]
   Num Coils  =    8  EXTCUR =    0.000 [A]
   Num Coils  =    8  EXTCUR =    0.000 [A]
   Num Coils  =    8  EXTCUR =    0.000 [A]
   Num Coils  =   12  EXTCUR =  -54.805 [kA]
   Num Coils  =    4  EXTCUR =    0.000 [A]
   Num Coils  =    2  EXTCUR =   94.241 [kA]
   Num Coils  =   18  EXTCUR =   45.514 [kA]
     Vacuum Field Calculation [000]%[  0]%[  1]%[  2]%[  3]%[  4]%[  5]%[  5]%[  6]%[  7]%[  8]%[  9]%[ 10]%[ 10]%[ 11]%[ 12]%[ 13]%[ 14]%[ 15]%[ 15]%[ 16]%[ 17]%[ 18]%[ 19]%[ 20]%[ 20]%[ 21]%[ 22]%[ 23]%[ 24]%[ 25]%[ 25]%[ 26]%[ 27]%[ 28]%[ 29]%[ 30]%[ 30]%[ 31]%[ 32]%[ 33]%[ 34]%[ 35]%[ 35]%[ 36]%[ 37]%[ 38]%[ 39]%[ 40]%[ 40]%[ 41]%[ 42]%[ 43]%[ 44]%[ 45]%[ 45]%[ 46]%[ 47]%[ 48]%[ 49]%[ 50]%[ 50]%[ 51]%[ 52]%[ 53]%[ 54]%[ 55]%[ 55]%[ 56]%[ 57]%[ 58]%[ 59]%[ 60]%[ 60]%[ 61]%[ 62]%[ 63]%[ 64]%[ 65]%[ 65]%[ 66]%[ 67]%[ 68]%[ 69]%[ 70]%[ 70]%[ 71]%[ 72]%[ 73]%[ 74]%[ 75]%[ 75]%[ 76]%[ 77]%[ 78]%[ 79]%[ 80]%[ 80]%[ 81]%[ 82]%[ 83]%[ 84]%[ 85]%[ 85]%[ 86]%[ 87]%[ 88]%[ 89]%[ 90]%[ 90]%[ 91]%[ 92]%[ 93]%[ 94]%[ 95]%[ 95]%[ 96]%[ 97]%[ 98]%[ 99]%[100 -----  Creating wall mesh  -----
 -----  Creating accelerated wall  -----
 -----  Vessel Information  -----
   Wall Name : NCSX
   Date      :  09-04-11
   Faces     :   12000
 Creating blocks. Chosen size:  0.404434444610013
 Filling blocks. Number of blocks:          270
 -----  Done creating accelerated wall  -----
 Accelerated wall written to mesh file. Location:
 NCSX_wall_trimesh_acc.dat

 -----  Vessel Information  -----
   Wall Name : NCSX
   Date      :  09-04-11
   Faces     :   12000
   Blocks    :     270
   Mean faces per block:     56.00
   Highest faces per block:     476
----- Constructing Splines -----
   R   = [ 1.00000, 2.40000];  NR:    128
   PHI = [ 0.00000, 2.09440];  NPHI:   30
   Z   = [-1.00000, 1.00000];  NZ:    128
   MU  =     0.10000E-04
   HERMITE FORM: 1
----- FOLLOWING FIELD LINES -----
      Method: LSODE
       Lines:  262144
       HITONLY: only recording strike points
         Tol:  1.0000E-09  Type: 21
     Fieldline Calculation [  0]%
----- WRITING DATA TO FILE -----
   FILE: fieldlines_NCSX_s1_coll.h5
212.40user 0.80system 3:36.06elapsed 98%CPU (0avgtext+0avgdata 129972maxresident)k
0inputs+0outputs (0major+20232minor)pagefaults 0swaps
212.20user 0.62system 3:35.89elapsed 98%CPU (0avgtext+0avgdata 133248maxresident)k

I am not sure which exact messages you are referring to, but two things might be different from what you've seen.
In the middle, it shows the info about making the accelerated wall. It first shows the raw input wall, then tells you that it is being accelerated, and then shows the output (number of blocks and such).
At the bottom, it is showing the time output. Both test_fieldlines_coll and test_fieldlines_coll_acc have time in them from my testing. I could remove them if you'd like. This is not visible in this pull request since that already snuck into Lazerson from the last pull requests we did.

@DionEngels Yep it's the time.  I'd appreciate it if you removed those as they could confuse people in the future...even the author of the code clearly.  :)

@DionEngels Yep it's the time. I'd appreciate it if you removed those as they could confuse people in the future...even the author of the code clearly. :)

Yes, done!

Made minor changes to another routine to make sure BEAMS3D is working within STELLOPT.  Doesn't really touch anything you've (@DionEngels) done.  As soon it passes the checks I'll merge it.


feat(protocol): Fix Broken Link for layer-2-scaling in tokenomics-whitepaper.tex

Old: https://ethereum.org/en/developers/docs/layer-2-scaling/
New: https://ethereum.org/en/developers/docs/scaling/#layer-2-scaling

The whitepaper package is deprecated!


templateUrl not working in directive if ngModel is required (1.2.0-rc.3)

templateUrl not working in directive if ngModel is required
I copied the same content in template and it worked.
Corresponding error: http://errors.angularjs.org/undefined/$compile/ctreq?p0=ngModel&p1=vatNumberInfo
Plunker: http://plnkr.co/edit/ZzNTVp

i am facing the problem in ng-routing ... when i call the links through directive and click the link to change the view but url has changed but page is same..here is below code :+1:
MyApp.directive('rightsidemenu', function(){
return{
restrict: "AE",
templateUrl:"view/right-side.html"
}
});
directive html code : Use of restrict
.when("/ng-directive",{templateUrl:'view/study/angularjs/use-of-driective.html', controller:'commonCont'})
.when("/ajax-function",{templateUrl:'view/study/ajax/ajax-function-in-jquery.html', controller:'commonCont'})
.when("/classRoom",{templateUrl:'view/study/angularjs/use-of-driective.html', controller:'commonCont'})

@santosh-k1, it is not clear what your code does. If you think this is a bug with Angular, please open a new issue, explaining the issue and preferrably providing a live demo (e.g. using CodePen, plnkr etc).
Thx !


python310Packages.croniter: 1.1.0 -> 1.2.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.croniter is: "croniter provides iteration for datetime object with cron like format"
meta.homepage for python310Packages.croniter is: "https://github.com/kiorky/croniter"
meta.changelog for python310Packages.croniter is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.2.0 with grep in /nix/store/7b9596kpxdgcw9hf25rc1g82qp5hdqxz-python3.10-croniter-1.2.0

found 1.2.0 in filename of file in /nix/store/7b9596kpxdgcw9hf25rc1g82qp5hdqxz-python3.10-croniter-1.2.0

Rebuild report (if merged into master) (click to expand)

26 total rebuild path(s)

14 package rebuild(s)

14 x86_64-linux rebuild(s)
12 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
apache-airflow
archivebox
home-assistant-component-tests.utility_meter
home-assistant-component-tests.xiaomi_miio
privacyidea
python310Packages.aiocron
python310Packages.apache-airflow
python310Packages.croniter
python310Packages.python-miio
python39Packages.aiocron
python39Packages.apache-airflow
python39Packages.croniter
python39Packages.python-miio
safeeyes

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7b9596kpxdgcw9hf25rc1g82qp5hdqxz-python3.10-croniter-1.2.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.croniter https://github.com/r-ryantm/nixpkgs/archive/52afdabd23ce253199bd44b176f5c2a269cd95bc.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7b9596kpxdgcw9hf25rc1g82qp5hdqxz-python3.10-croniter-1.2.0
ls -la /nix/store/7b9596kpxdgcw9hf25rc1g82qp5hdqxz-python3.10-croniter-1.2.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages failed to build:

apache-airflow (python39Packages.apache-airflow)
archivebox
python310Packages.apache-airflow

10 packages built:

home-assistant-component-tests.utility_meter
home-assistant-component-tests.xiaomi_miio
privacyidea
python310Packages.aiocron
python310Packages.croniter
python310Packages.python-miio
python39Packages.aiocron
python39Packages.croniter
python39Packages.python-miio
safeeyes

Maintainer pings
cc @costrouc for testing.

Already part of #154969.


Deployments badge should be set in NavTabsComponent

The yellow badge on the deployments nav tab should be set directly in the NavTabsComponent and not in Marathon.jsx, so we can get rif of the store listener in Marathon.jsx.

TODO post-merge https://github.com/mesosphere/marathon-ui/pull/42


Generating Workflow History

If I had access to a model object, how can i know everything about the workflow? Can i access information about the workflow, specifically its history.
The API documentation talks about the current state, but more often than not, people will want to read a summary.

So table river_transitionapproval is tracking the history. It is definitely very convenient that all states are there whenever a new flow is created. My understanding is when a stage in a flow is completed, its status flag is changed from 0->1 and a timestamp is added in the action_date column. The object_id column holds the reference to the primary key of the model in which the statefield has been added.
Can this table be serialized for consumption through an API?

This is about right. You can use it to track history as well.
I am not really sure why you need it and what you mean by "through an API" to be honest but it is yet another Django model, you can do anything that you can do with other Django models.

I started to build views with the django rest framework. I did that for the State table and got a weird result.
My serializer is as follows
from river.models import State
from rest_framework import serializers

class StateSerializer(serializers.Serializer):

    class Meta:
        model = State
        fields = ['id', 'label']

Also, my API view is as follows
from rest_framework import generics
from workflowengine.riverserializers.StateSerializer import StateSerializer
from river.models import State

class StateList(generics.ListAPIView):

    serializer_class = StateSerializer
    def get_queryset(self):
        return State.objects.all()

Through the Admin console, I have added 11 states inside my state table, which I have checked with pgadmin.
When i access the API through the browser, I get 11 empty sections in my API ( no error, just the data is missing).

I cant seem to understand how the 11 data points presented in the API are empty. That it presented 11 elements, but no data, which is pretty weird.

It has been quite a while since I last worked with django rest framework, but this seems to be a problem with the way you configured it with django rest framework. Because State is yet another django model with no specialty.

I think you should use serializers.ModelSerializer instead of serializers.Serializer

oh yeah! that worked!


Do not log in on android 11 or higher

I/flutter ( 2509): [FB] Log In with permissions [public_profile, email]
D/libMEOW ( 2509): meow new tls: 0xb400006f50bc4480
D/libMEOW ( 2509): applied 1 plugins for [com.kubo.agroapp]:
D/libMEOW ( 2509):   plugin 1: [libMEOW_gift.so]:
D/libMEOW ( 2509): meow delete tls: 0xb400006f50bc4480
D/IS_CTS_MODE( 2509): false
D/MULTI_WINDOW_SWITCH_ENABLED( 2509): false
D/DecorView: getWindowModeFromSystem  windowmode is 1
E/ActivityThread( 2509): Failed to find provider info for com.facebook.katana.provider.PlatformProvider
W/com.facebook.internal.NativeProtocol( 2509): Apps that target Android API 30+ (Android 11+) cannot call Facebook native apps unless the package visibility needs are declared. Please follow https://developers.facebook.com/docs/android/troubleshooting/#faq_267321845055988 to make the declaration.
E/ActivityThread( 2509): Failed to find provider info for com.facebook.katana.provider.PlatformProvider
W/com.facebook.internal.NativeProtocol( 2509): Apps that target Android API 30+ (Android 11+) cannot call Facebook native apps unless the package visibility needs are declared. Please follow https://developers.facebook.com/docs/android/troubleshooting/#faq_267321845055988 to make the declaration.
D/ViewRootImplFacebookActivity: hardware acceleration = true, sRendererEnabled = true, forceHwAccelerated = false
I/BufferQueueConsumer( 2509):  connect: controlledByApp=false
I/BLASTBufferQueue( 2509): [ViewRootImpl[FacebookActivity]#2] constructor()
I/BufferQueueProducer( 2509): ViewRootImpl[FacebookActivity]#2(BLAST Consumer)2 connect: api=1 producerControlledByApp=true
I/libPerfCtl( 2509): fbcNotifySwapBuffers ret=0
D/DecorView: onWindowFocusChanged hasWindowFocus false
already in my manifest has added the following
https://developers.facebook.com/docs/android/troubleshooting/#faq_267321845055988

already in my manifest has added the following

I had similar error, make sure package is up to date.
Also make sure you have followed read me, may have new steps added or you may have missed some steps.
https://github.com/Innim/flutter_login_facebook/blob/master/README.md#edit-your-resources-and-manifest
I added the strings.xml and updated my hashes and it worked

I have the same problem. In the emulator with Android 13 (and without the facebook app installed) I can log in, but on my physical cell phone (with the facebook app installed) I get the same error that you mention. Were you able to fix it?


Revert "[ASCII-2582] Add certificate generation and retrieval for IPC communications"

Reverts DataDog/datadog-agent#31838

Force merging to unblock main


chore(main): release 0.18.0

:robot: I have created a release beep boop
0.18.0 (2024-09-23)
Features

update kops provider version to 1.30.1 (18e33a4)

Miscellaneous Chores

update cluster autoscaler module version (f2db175)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.18.0
:sunflower:


Move peerDependencyRules to root package.json

Fixes

Fixes #827 by @obulat
Description

To stop warnings about missing peer dependencies, we move the settings to the root package.json.
Testing Instructions

Try re-installing dependencies by running just frontend/run dev or just install. You shouldn't see warnings about missing peer dependencies (react, consola etc)
Checklist

[x] My pull request has a descriptive title (not a vague title like
Update index.md).
[x] My pull request targets the default branch of the repository (main) or
a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible
errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Good catch. Btw what's wrong in seeing these warnings?

When we get used to seeing warnings, we stop looking at them, and we might miss some important ones. Here, these warnings are not important because we know that the packages can work with the other versions.


Chromedriver unexpectedly exited.

Hi, thanks for creating the image. It worked for me!
It was working well until recently when I encountered the error [ERROR] WebDriverException: Message: Service /opt/chromedriver unexpectedly exited. Status code was: 127 when I ran the code on AWS lambda.
What could possibly be causing this error? If it has something to do with the chrome version then can you please help me with how to update it with the compatible version.
Thank you.

Make sure to add the following to the options of your Chrome driver:

from selenium import webdriver
from tempfile import mkdtemp
def my_fn():
    options = webdriver.ChromeOptions()
    options.binary_location = '/opt/chrome/chrome'
    options.add_argument('--headless')
    options.add_argument('--no-sandbox')
    options.add_argument("--disable-gpu")
    options.add_argument("--window-size=1280x1696")
    options.add_argument("--single-process")
    options.add_argument("--disable-dev-shm-usage")
    options.add_argument("--disable-dev-tools")
    options.add_argument("--no-zygote")
    options.add_argument(f"--user-data-dir={mkdtemp()}")
    options.add_argument(f"--data-path={mkdtemp()}")
    options.add_argument(f"--disk-cache-dir={mkdtemp()}")
    options.add_argument("--remote-debugging-port=9222")
    chrome = webdriver.Chrome("/opt/chromedriver", options=options)

Hope it helps, @suyash-web.

Thanks, @x-N0, for the comment!
It actually started working with the same code a couple of days after I opened the issue. That's strange, but it's not throwing this error anymore.
Right now, I'm struggling to include LibreOffice to this image.

Hey, @suyash-web, good to know you managed to solve the issue;
About your intent to include LibreOffice, doesn't that kind of software need a whole GUI framework to be installed? To me that'd seem a bit huge, what about using other terminal-based tools that usually are lighter?
Or even use some python script to decompose and recompose the files together after you do whatever you need to do with them in LibreOffice?
I hope you get your project going soon!

Thanks for the response, @x-N0 ! I have considered using terminal-based alternatives like pandoc and unoconv that perform similar functions as LibreOffice, but they would eventually require LibreOffice to be installed in the system. I tried including LibreOffice to the docker image I'm using, but everything I tried didn't work 😕
About using Python scripts, I tried using modules like docx2pdf, but it requires some supporting software like LibreOffice (for linux) to be installed in the system.
I've also considered using APIs by Aspose, smallpdf, Adobe, and similar, but they're all paid. The free versions have a limit and include a watermark in the final pdf.

Hello,
I'm trying to run my docker image from my mac m1 processor and I'm getting this error continuously
Can anyone please help?
This is the error I am getting:
driver = webdriver.Chrome(service=service, options=options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lang/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 49, in __init__
    super().__init__(
  File "/var/lang/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 51, in __init__
    self.service.start()
  File "/var/lang/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 97, in start
    self.assert_process_still_running()
  File "/var/lang/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 110, in assert_process_still_running
    raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}")
selenium.common.exceptions.WebDriverException: Message: Service /opt/chromedriver unexpectedly exited.  The images work remotely on non-apple silicon though.

Make sure to add the following to the options of your Chrome driver:
from selenium import webdriver
from tempfile import mkdtemp
def my_fn():
    options = webdriver.ChromeOptions()
    options.binary_location = '/opt/chrome/chrome'
    options.add_argument('--headless')
    options.add_argument('--no-sandbox')
    options.add_argument("--disable-gpu")
    options.add_argument("--window-size=1280x1696")
    options.add_argument("--single-process")
    options.add_argument("--disable-dev-shm-usage")
    options.add_argument("--disable-dev-tools")
    options.add_argument("--no-zygote")
    options.add_argument(f"--user-data-dir={mkdtemp()}")
    options.add_argument(f"--data-path={mkdtemp()}")
    options.add_argument(f"--disk-cache-dir={mkdtemp()}")
    options.add_argument("--remote-debugging-port=9222")
    chrome = webdriver.Chrome("/opt/chromedriver", options=options)

Hope it helps, @suyash-web.

I tried to use the same options block code, but I got this error after that when trying to run on docker container with Ubuntu as base image.
/root/test.py:24: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
  chrome = webdriver.Chrome("/opt/chromedriver",
Traceback (most recent call last):
  File "/root/test.py", line 28, in <module>
    handler()
  File "/root/test.py", line 24, in handler
    chrome = webdriver.Chrome("/opt/chromedriver",
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chrome/webdriver.py", line 84, in __init__
    super().__init__(
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chromium/webdriver.py", line 104, in __init__
    super().__init__(
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (chrome not reachable)
  (The process started from chrome location /opt/chrome/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x5631d8adee23 <unknown>
#1 0x5631d88077a7 <unknown>
#2 0x5631d883250a <unknown>
#3 0x5631d882fa25 <unknown>
#4 0x5631d886fd92 <unknown>
#5 0x5631d886f3af <unknown>
#6 0x5631d8866de3 <unknown>
#7 0x5631d883aa7b <unknown>
#8 0x5631d883b81e <unknown>
#9 0x5631d8aa0638 <unknown>
#10 0x5631d8aa4507 <unknown>
#11 0x5631d8aaec4c <unknown>
#12 0x5631d8aa5136 <unknown>
#13 0x5631d8a739cf <unknown>
#14 0x5631d8ac8b98 <unknown>
#15 0x5631d8ac8d68 <unknown>
#16 0x5631d8ad7cb3 <unknown>
#17 0x7f150dc54b43 <unknown>

I'm using:
selenium: 4.9.1
chrome version 116.0.5845.96 https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chrome-linux64.zip
chromedriver 116.0.5845.96 https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
Can you check it on your side @x-N0 ? Thank you in advance

Hi,
Update about me wanting to add libreoffice to my docker image: I actually wanted to convert a docx file to pdf on aws lambda using libreoffice but i found an alternative. I instead created an HTML code and converted it into pdf. I found not all the modules available to convert html to pdf work in this case as its on aws lambda and won't have any supporting software that the modules may require to perform conversion. The module worked for me is xhtml2pdf
Example code:
import xhtml2pdf.pisa as pisa
from io import BytesIO

html_content = """
        Your html code here
"""

pdf_bytes_data = BytesIO()
pisa.CreatePDF(html_content, pdf_bytes_data)

with open("doc.pdf", "wb") as pdf_file:
    pdf_file.write(pdf_bytes_data.getvalue())

It can also add images to the pdf document. Just place the image path in <img> tag

If you have M1 Macbook and find difficulty to try on local, how about this? My M1 Macbook is okay so far.

Also please see https://github.com/umihico/docker-selenium-lambda/issues/12#issuecomment-988425287

@umihico - Can you please guide how to use chrome driver and chrome without docker. I am using AWS lambda to do some web automation using selenium. Lastly the config worked on python 3.7 selenium 3.14 chrome and chromium 88.
I tried your chrome driver and chrome browser version 114 but ended in error below
"errorMessage": "Message: Service /tmp/chrome/chromedriver unexpectedly exited. Status code was: 127\n",

@lambertrezon
The latest version worked this morning too. What is the exact changes between your code and my example?

@umihico - I have downloaded the chrome driver and chrome browser with the links provided. Zipped the library and attached to the S3.While program execution this library is copied to /tmp directory and then Copied the same sample code which you have used.
import os
import sys
import boto3
import zipfile
os.system("pip --version")
os.system("mkdir /tmp/python")
os.system("pip install boto3 -t /tmp/python")
os.system("pip install requests -t /tmp/python")
os.system("pip install selenium -t /tmp/python")
sys.path.insert(0, '/tmp/python/')
from selenium import webdriver
from tempfile import mkdtemp
from selenium.webdriver.common.by import By
def lambda_handler(event, context):
download_dir = "/tmp/downloads"
s3_bucket_name =  'test'
s3_file_key = 'imports/lib_for_lambda_func/working.zip'
s3_client = boto3.client('s3')
# Download the library ZIP file from S3 to the /tmp directory
s3_client.download_file(s3_bucket_name, s3_file_key, '/tmp/library.zip')

# Extract the library ZIP file to the /tmp directory
with zipfile.ZipFile('/tmp/library.zip', 'r') as zip_ref:
    zip_ref.extractall('/tmp')

os.system("chmod 777 /tmp/chrome/*")

options = webdriver.ChromeOptions()
service = webdriver.ChromeService("/tmp/chrome/chromedriver")

options.binary_location = '/tmp/chrome/chrome'
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument("--disable-gpu")
options.add_argument("--window-size=1280x1696")
options.add_argument("--single-process")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--disable-dev-tools")
options.add_argument("--no-zygote")
options.add_argument(f"--user-data-dir={mkdtemp()}")
options.add_argument(f"--data-path={mkdtemp()}")
options.add_argument(f"--disk-cache-dir={mkdtemp()}")
options.add_argument("--remote-debugging-port=9222")
chrome = webdriver.Chrome(options=options, service=service)
chrome.get("https://example.com/")

return chrome.find_element(by=By.XPATH, value="//html").text

The main ideal that you should use the same version of Chrome and Chromium, but I suggest that you should run your chromedriver by Docker due to it supports up to 10GB for both source code and dependencies while the zip layer upload will be limited at 250MB ( which hard for you to handle layer of chrome or the other dependencies ). I did test it and only zip packed file of ( chromedriver & chrome ) took over 500MB and when I compress this zip file, it just can only reduce a half to around 225MB ~ 230MB which means only 20MB  available space for both your source code and dependencies. So please be careful to consider which way is fix for your work.
By the way, I found the stable version you could use for test
The stable chromedriver: https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip
and
chrome binary: https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F1135561%2Fchrome-linux.zip?alt=media
or you can find more version at https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html

Previously i had python 3.7 and chrome driver, headless chromium 88 which was running smoothly. Since I upgraded to python 3.11 i had to update everything.
Is there any possibility to get headless chromium for latest chrome

@lambertrezon
How about dependencies? They are all required to be installed.

@umihico All the dependency are downloaded dynamically when the lambda function starts to execute

Im not using this image but one constructed myself and ran into a similar issue, when chrome was exiting it writes a core dump to /tmp. These progressively fill the memory of a warm lambda and eventually it OOM's itself. I have a method in my lambda now to clean the /tmp of core dumps after every invocation if they are present.

@boilsquid can you please share me the method or project which worked for you.

@boilsquid can you please share me the method or project which worked for you.

I can't share my Dockerfile but its effectively the same as this build, this gist is what got it working for me.

Make sure to add the following to the options of your Chrome driver:
from selenium import webdriver
from tempfile import mkdtemp
def my_fn():
    options = webdriver.ChromeOptions()
    options.binary_location = '/opt/chrome/chrome'
    options.add_argument('--headless')
    options.add_argument('--no-sandbox')
    options.add_argument("--disable-gpu")
    options.add_argument("--window-size=1280x1696")
    options.add_argument("--single-process")
    options.add_argument("--disable-dev-shm-usage")
    options.add_argument("--disable-dev-tools")
    options.add_argument("--no-zygote")
    options.add_argument(f"--user-data-dir={mkdtemp()}")
    options.add_argument(f"--data-path={mkdtemp()}")
    options.add_argument(f"--disk-cache-dir={mkdtemp()}")
    options.add_argument("--remote-debugging-port=9222")
    chrome = webdriver.Chrome("/opt/chromedriver", options=options)

Hope it helps, @suyash-web.

I tried to use the same options block code, but I got this error after that when trying to run on docker container with Ubuntu 22.04 as base image.
/root/test.py:24: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
  chrome = webdriver.Chrome("/opt/chromedriver",
Traceback (most recent call last):
  File "/root/test.py", line 28, in <module>
    handler()
  File "/root/test.py", line 24, in handler
    chrome = webdriver.Chrome("/opt/chromedriver",
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chrome/webdriver.py", line 84, in __init__
    super().__init__(
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chromium/webdriver.py", line 104, in __init__
    super().__init__(
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (chrome not reachable)
  (The process started from chrome location /opt/chrome/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x5631d8adee23 <unknown>
#1 0x5631d88077a7 <unknown>
#2 0x5631d883250a <unknown>
#3 0x5631d882fa25 <unknown>
#4 0x5631d886fd92 <unknown>
#5 0x5631d886f3af <unknown>
#6 0x5631d8866de3 <unknown>
#7 0x5631d883aa7b <unknown>
#8 0x5631d883b81e <unknown>
#9 0x5631d8aa0638 <unknown>
#10 0x5631d8aa4507 <unknown>
#11 0x5631d8aaec4c <unknown>
#12 0x5631d8aa5136 <unknown>
#13 0x5631d8a739cf <unknown>
#14 0x5631d8ac8b98 <unknown>
#15 0x5631d8ac8d68 <unknown>
#16 0x5631d8ad7cb3 <unknown>
#17 0x7f150dc54b43 <unknown>

I'm using: selenium: 4.9.1 chrome version 116.0.5845.96 https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chrome-linux64.zip chromedriver 116.0.5845.96 https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
Can you check it on your side @x-N0 ? Thank you in advance

I'm also getting the same error . Is there any fix for this ?

Make sure to add the following to the options of your Chrome driver:
from selenium import webdriver
from tempfile import mkdtemp
def my_fn():
    options = webdriver.ChromeOptions()
    options.binary_location = '/opt/chrome/chrome'
    options.add_argument('--headless')
    options.add_argument('--no-sandbox')
    options.add_argument("--disable-gpu")
    options.add_argument("--window-size=1280x1696")
    options.add_argument("--single-process")
    options.add_argument("--disable-dev-shm-usage")
    options.add_argument("--disable-dev-tools")
    options.add_argument("--no-zygote")
    options.add_argument(f"--user-data-dir={mkdtemp()}")
    options.add_argument(f"--data-path={mkdtemp()}")
    options.add_argument(f"--disk-cache-dir={mkdtemp()}")
    options.add_argument("--remote-debugging-port=9222")
    chrome = webdriver.Chrome("/opt/chromedriver", options=options)

Hope it helps, @suyash-web.

I tried to use the same options block code, but I got this error after that when trying to run on docker container with Ubuntu 22.04 as base image.
/root/test.py:24: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
  chrome = webdriver.Chrome("/opt/chromedriver",
Traceback (most recent call last):
  File "/root/test.py", line 28, in <module>
    handler()
  File "/root/test.py", line 24, in handler
    chrome = webdriver.Chrome("/opt/chromedriver",
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chrome/webdriver.py", line 84, in __init__
    super().__init__(
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chromium/webdriver.py", line 104, in __init__
    super().__init__(
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (chrome not reachable)
  (The process started from chrome location /opt/chrome/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x5631d8adee23 <unknown>
#1 0x5631d88077a7 <unknown>
#2 0x5631d883250a <unknown>
#3 0x5631d882fa25 <unknown>
#4 0x5631d886fd92 <unknown>
#5 0x5631d886f3af <unknown>
#6 0x5631d8866de3 <unknown>
#7 0x5631d883aa7b <unknown>
#8 0x5631d883b81e <unknown>
#9 0x5631d8aa0638 <unknown>
#10 0x5631d8aa4507 <unknown>
#11 0x5631d8aaec4c <unknown>
#12 0x5631d8aa5136 <unknown>
#13 0x5631d8a739cf <unknown>
#14 0x5631d8ac8b98 <unknown>
#15 0x5631d8ac8d68 <unknown>
#16 0x5631d8ad7cb3 <unknown>
#17 0x7f150dc54b43 <unknown>

I'm using: selenium: 4.9.1 chrome version 116.0.5845.96 https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chrome-linux64.zip chromedriver 116.0.5845.96 https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
Can you check it on your side @x-N0 ? Thank you in advance

I'm also getting the same error . Is there any fix for this ?

The problem was that I placed the chrome binary on the wrong directory with a declaration for the code block. Furthermore, you can check more this issue which I mentioned here https://github.com/umihico/docker-selenium-lambda/issues/161#issuecomment-1741263348
Let me know if it solves your problem

Make sure to add the following to the options of your Chrome driver:
from selenium import webdriver
from tempfile import mkdtemp
def my_fn():
    options = webdriver.ChromeOptions()
    options.binary_location = '/opt/chrome/chrome'
    options.add_argument('--headless')
    options.add_argument('--no-sandbox')
    options.add_argument("--disable-gpu")
    options.add_argument("--window-size=1280x1696")
    options.add_argument("--single-process")
    options.add_argument("--disable-dev-shm-usage")
    options.add_argument("--disable-dev-tools")
    options.add_argument("--no-zygote")
    options.add_argument(f"--user-data-dir={mkdtemp()}")
    options.add_argument(f"--data-path={mkdtemp()}")
    options.add_argument(f"--disk-cache-dir={mkdtemp()}")
    options.add_argument("--remote-debugging-port=9222")
    chrome = webdriver.Chrome("/opt/chromedriver", options=options)

Hope it helps, @suyash-web.

I tried to use the same options block code, but I got this error after that when trying to run on docker container with Ubuntu 22.04 as base image.
/root/test.py:24: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
  chrome = webdriver.Chrome("/opt/chromedriver",
Traceback (most recent call last):
  File "/root/test.py", line 28, in <module>
    handler()
  File "/root/test.py", line 24, in handler
    chrome = webdriver.Chrome("/opt/chromedriver",
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chrome/webdriver.py", line 84, in __init__
    super().__init__(
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chromium/webdriver.py", line 104, in __init__
    super().__init__(
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (chrome not reachable)
  (The process started from chrome location /opt/chrome/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x5631d8adee23 <unknown>
#1 0x5631d88077a7 <unknown>
#2 0x5631d883250a <unknown>
#3 0x5631d882fa25 <unknown>
#4 0x5631d886fd92 <unknown>
#5 0x5631d886f3af <unknown>
#6 0x5631d8866de3 <unknown>
#7 0x5631d883aa7b <unknown>
#8 0x5631d883b81e <unknown>
#9 0x5631d8aa0638 <unknown>
#10 0x5631d8aa4507 <unknown>
#11 0x5631d8aaec4c <unknown>
#12 0x5631d8aa5136 <unknown>
#13 0x5631d8a739cf <unknown>
#14 0x5631d8ac8b98 <unknown>
#15 0x5631d8ac8d68 <unknown>
#16 0x5631d8ad7cb3 <unknown>
#17 0x7f150dc54b43 <unknown>

I'm using: selenium: 4.9.1 chrome version 116.0.5845.96 https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chrome-linux64.zip chromedriver 116.0.5845.96 https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
Can you check it on your side @x-N0 ? Thank you in advance

I'm also getting the same error . Is there any fix for this ?

The problem was that I placed the chrome binary on the wrong directory with a declaration for the code block. Furthermore, you can check more this issue which I mentioned here #161 (comment)
Let me know if it solves your problem

I don't know what solved my problem. But , When i ran my lambda function today in morning, It didn't throw any error. And Yah, If it works : Don't touch it!

Make sure to add the following to the options of your Chrome driver:
from selenium import webdriver
from tempfile import mkdtemp
def my_fn():
    options = webdriver.ChromeOptions()
    options.binary_location = '/opt/chrome/chrome'
    options.add_argument('--headless')
    options.add_argument('--no-sandbox')
    options.add_argument("--disable-gpu")
    options.add_argument("--window-size=1280x1696")
    options.add_argument("--single-process")
    options.add_argument("--disable-dev-shm-usage")
    options.add_argument("--disable-dev-tools")
    options.add_argument("--no-zygote")
    options.add_argument(f"--user-data-dir={mkdtemp()}")
    options.add_argument(f"--data-path={mkdtemp()}")
    options.add_argument(f"--disk-cache-dir={mkdtemp()}")
    options.add_argument("--remote-debugging-port=9222")
    chrome = webdriver.Chrome("/opt/chromedriver", options=options)

Hope it helps, @suyash-web.

I tried to use the same options block code, but I got this error after that when trying to run on docker container with Ubuntu 22.04 as base image.
/root/test.py:24: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
  chrome = webdriver.Chrome("/opt/chromedriver",
Traceback (most recent call last):
  File "/root/test.py", line 28, in <module>
    handler()
  File "/root/test.py", line 24, in handler
    chrome = webdriver.Chrome("/opt/chromedriver",
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chrome/webdriver.py", line 84, in __init__
    super().__init__(
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chromium/webdriver.py", line 104, in __init__
    super().__init__(
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (chrome not reachable)
  (The process started from chrome location /opt/chrome/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x5631d8adee23 <unknown>
#1 0x5631d88077a7 <unknown>
#2 0x5631d883250a <unknown>
#3 0x5631d882fa25 <unknown>
#4 0x5631d886fd92 <unknown>
#5 0x5631d886f3af <unknown>
#6 0x5631d8866de3 <unknown>
#7 0x5631d883aa7b <unknown>
#8 0x5631d883b81e <unknown>
#9 0x5631d8aa0638 <unknown>
#10 0x5631d8aa4507 <unknown>
#11 0x5631d8aaec4c <unknown>
#12 0x5631d8aa5136 <unknown>
#13 0x5631d8a739cf <unknown>
#14 0x5631d8ac8b98 <unknown>
#15 0x5631d8ac8d68 <unknown>
#16 0x5631d8ad7cb3 <unknown>
#17 0x7f150dc54b43 <unknown>

I'm using: selenium: 4.9.1 chrome version 116.0.5845.96 https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chrome-linux64.zip chromedriver 116.0.5845.96 https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
Can you check it on your side @x-N0 ? Thank you in advance

I'm also getting the same error . Is there any fix for this ?

The problem was that I placed the chrome binary on the wrong directory with a declaration for the code block. Furthermore, you can check more this issue which I mentioned here #161 (comment)
Let me know if it solves your problem

I don't know what solved my problem. But , When i ran my lambda function today in morning, It didn't throw any error. And Yah, If it works : Don't touch it!

One more thing, we should stay the both chromedriver and chrome at 114 ( please be sure that match with a prefix as well ). It should work over time, due to version above 115 are on test stage, not a stable version

I have been scratching my head for the last two days about this issue and just found out chrome and chromedriver locations are wrong in the main.py.
The correct ones:
service = webdriver.ChromeService("/opt/chromedriver-linux64/chromedriver")         options.binary_location = '/opt/chrome-linux64/chrome'

Hello, I'm trying to run my docker image from my mac m1 processor and I'm getting this error continuously Can anyone please help? This is the error I am getting:
driver = webdriver.Chrome(service=service, options=options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lang/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 49, in __init__
    super().__init__(
  File "/var/lang/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 51, in __init__
    self.service.start()
  File "/var/lang/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 97, in start
    self.assert_process_still_running()
  File "/var/lang/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 110, in assert_process_still_running
    raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}")
selenium.common.exceptions.WebDriverException: Message: Service /opt/chromedriver unexpectedly exited. Status code was: 255

script.py where I'm defining driver:
options = webdriver.ChromeOptions()
options.binary_location = '/opt/chrome/chrome'
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument("--disable-gpu")
options.add_argument("--window-size=1280x1696")
options.add_argument("--single-process")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--disable-dev-tools")
options.add_argument("--no-zygote")
options.add_argument("--remote-debugging-port=9222")
service = selenium.webdriver.chrome.service.Service('/opt/chromedriver')
driver = webdriver.Chrome(service=service, options=options)

My Dockerfile:

FROM public.ecr.aws/lambda/python@sha256:10dbb67ede15b5fd516be87dd71c3f7968904b0b840235720486476b34ef9b67 as build
RUN yum install -y unzip && \
    curl -Lo "/tmp/chromedriver.zip" "https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip" && \
    curl -Lo "/tmp/chrome-linux.zip" "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F1135561%2Fchrome-linux.zip?alt=media" && \
    unzip /tmp/chromedriver.zip -d /opt/ && \
    unzip /tmp/chrome-linux.zip -d /opt/

FROM public.ecr.aws/lambda/python@sha256:10dbb67ede15b5fd516be87dd71c3f7968904b0b840235720486476b34ef9b67
RUN yum install atk cups-libs gtk3 libXcomposite alsa-lib \
    libXcursor libXdamage libXext libXi libXrandr libXScrnSaver \
    libXtst pango at-spi2-atk libXt xorg-x11-server-Xvfb \
    xorg-x11-xauth dbus-glib dbus-glib-devel -y
RUN pip install selenium==4.9.1
COPY --from=build /opt/chrome-linux /opt/chrome
COPY --from=build /opt/chromedriver /opt/

COPY script.py /var/task
COPY utils.py /var/task
COPY func.py /var/task
COPY requirements.txt /var/task

RUN pip install -r requirements.txt
CMD ["script.py"]
ENTRYPOINT [ "python" ]

Had the same error, you can check if the chromedriver starts by inserting this command in your Dockerfile RUN /opt/chromedriver by this you can see the reason, maybe you're missing some dependencies for me. it was qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory because I am running on M1, built it with docker buildx build --platform linux/amd64 and did the trick.

Hello, I am also facing the same issue, I am trying this on lambda
Following is my code:
from selenium import webdriver
from tempfile import mkdtemp
from selenium.webdriver.common.by import By
import os
import shutil
import stat
import sys
sys.path.append("/mnt/access/chrome")
def lambda_handler(event=None, context=None):
options = webdriver.ChromeOptions()
service = webdriver.ChromeService("/mnt/access/chrome/chromedriver")
options.binary_location = '/mnt/access/chrome/chrome'
options.add_argument("--headless=new")
options.add_argument('--no-sandbox')
options.add_argument("--disable-gpu")
options.add_argument("--window-size=1280x1696")
options.add_argument("--single-process")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--disable-dev-tools")
options.add_argument("--no-zygote")
options.add_argument(f"--user-data-dir={mkdtemp()}")
options.add_argument(f"--data-path={mkdtemp()}")
options.add_argument(f"--disk-cache-dir={mkdtemp()}")
options.add_argument("--remote-debugging-port=9222")

chrome = webdriver.Chrome(options=options, service=service)
chrome.get("https://example.com/")

return chrome.find_element(by=By.XPATH, value="//html").text

Exception coming
{

"errorMessage": "Message: Service /mnt/access/chrome/chromedriver unexpectedly exited. Status code was: 127\n",
"errorType": "WebDriverException",
"stackTrace": [
"  File "/var/task/app.py", line 46, in lambda_handler\n    chrome = webdriver.Chrome(options=options, service=service)\n",
"  File "/opt/python/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init\n    super().init(\n",
"  File "/opt/python/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 55, in init\n    self.service.start()\n",
"  File "/opt/python/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 102, in start\n    self.assert_process_still_running()\n",
"  File "/opt/python/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 115, in assert_process_still_running\n    raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}")\n"
]
}
the versions are the same as mentioned in the docker files and permission is also given.


azure-cli on ubuntu 18.04 does not find  IoT Hub

Describe the bug
I wanted to run the IoT Edge Tutorial
https://docs.microsoft.com/en-us/azure/iot-edge/quickstart-linux
using the azure-cli on my own Ubuntu notebook (the tutorial uses cloud shell).
Errors:
After creating the IoT Hub,
az iot hub device-identity create --hub-name {correct-hub-name} --device-id myEdgeDevice --edge-enabled
fails:
No IoT Hub found with name {correct-hub-name} in current subscription.
Listing the IoT hubs returns an empty list:
az iot hub list --subscription {correct-subscription-name}
[]
Strangely, if I run the exact same command
az iot hub list --subscription {correct-subscription-name}
in cloud shell, it returns my IoT Hub
Environment Summary
Linux-5.3.0-46-generic-x86_64-with-debian-buster-sid
Python 3.6.5
Installer: DEB

azure-cli 2.3.1

Extensions:
azure-iot 0.9.1
azure-devops 0.15.0

Additional Context

IOT hub issue.

@digimaun @iluican any ideas?

I'm currently unable to repro the issue in my ubuntu 18.04 environment with azure-iot 0.9.1, but one difference in environment is I installed the latest 2.4.0 base CLI.
I do want to verify one thing - @dbartz , please make sure you have set your default CLI subscription via az account set -s <your correct subscription guid or name>. After setting the default sub, please try again and let us know if you are still having problems. For the IoT extension we don't typically use --subscription argument in commands rather the explicit setting of default subscription is expected prior to execution.

Hi @digimaun,
setting the default account does not make a difference.
I actually worked with the correct default account and just posted the command with specified subscription in order to not being asked if I set the default subscription correctly :-)
Meanwhile, I am also on 2.4.0, which does not make a difference.

Please run the commands and append --debug in each environment you are using (cloud shell & ubuntu).
Look at the debug logs and take note of management.azure.com against Microsoft.Devices/IotHubs
You should notice a debug entry that looks like this (API versions will differ - as of this comment, cloud shell is using Azure CLI 2.2.0):
urllib3.connectionpool : https://management.azure.com:443 "GET /subscriptions/{your-correct-subscription-id}/providers/Microsoft.Devices/IotHubs?api-version=2019-11-04 HTTP/1.1" 200
And the related response content:
msrest.http_logger : Response content:
msrest.http_logger : {"value":[{"id":"/subscriptions/

Please verify the API calls between cloud shell/non-cloud shell are against the same subscription GUID in the request and validate the response content coming back. Please also note the API versions for this exercise - I am wondering if a particular API version is the cause of this issue.

Hi @digimaun,
thanks for looking into this.
I followed your advice and looked into the debug logs. The reason for not finding the IoT Hub was trivial and entirely my fault:
Long time ago, I configured a default resource group on this machine, a fact which I even did not remember anymore.


make snow tests more comprehensive, fix bug

Purpose
Investigate conservation of energy and water for the bucket model due to issues seen in the Coupler
https://github.com/CliMA/ClimaCoupler.jl/pull/424
https://github.com/CliMA/ClimaCoupler.jl/issues/421
To-do
Content

Add to test script for snow bucket conservation: run with nonzero precip, and with nonuniform evaporation field.
Fix bug in heaviside function
More care needed when tracking energy conservation. The energy in land is \rhoc_soil * \sum T_soil dz - \rho_l LH_f0*SWE. When snow falls on land, the energy changes because SWE changes, and we need to account for that in the test. This is not automatically accounted for because we dont have a snow energy variable (because we track SWE as the prognostic variable and the snow temperature is assumed to be the same as the freezing point).  We also do not track the energy in the water on land, so there is no contribution for liquid precip.

Review checklist
I have:

followed the codebase contribution guide: https://clima.github.io/ClimateMachine.jl/latest/Contributing/
followed the style guide: https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/
followed the documentation policy: https://github.com/CliMA/policies/wiki/Documentation-Policy
checked that this PR does not duplicate an open PR.

In the Content, I have included

relevant unit tests, and integration tests,
appropriate docstrings on all functions, structs, and modules, and included relevant documentation.

[X] I have read and checked the items on the review checklist.

bors r+


.py file works fine but when compiled with py2app fails on rumps import

When running from the .py file everything works fine.
After compiling with py2app the app crushes straight away with 'app Error' and the following error is printed in console:
littlefred:~ fred$ /Users/fred/proj/code/dist/app.app/Contents/MacOS/app ; exit;
Traceback (most recent call last):
  File "/Users/fred/proj/code/dist/app.app/Contents/Resources/__boot__.py", line 395, in <module>
    _run()
  File "/Users/fred/proj/code/dist/app.app/Contents/Resources/__boot__.py", line 370, in _run
    exec(compile(source, path, 'exec'), globals(), globals())
  File "/Users/fred/proj/code/dist/app.app/Contents/Resources/app.py", line 1, in <module>
    import rumps
  File "/Users/fred/proj/code/dist/app.app/Contents/Resources/lib/python2.7/rumps/__init__.py", line 25, in <module>
    from .rumps import (separator, debug_mode, alert, notification, application_support, timers, quit_application, timer,
  File "/Users/fred/proj/code/dist/app.app/Contents/Resources/lib/python2.7/rumps/rumps.py", line 15, in <module>
    from Foundation import (NSDate, NSTimer, NSRunLoop, NSDefaultRunLoopMode, NSSearchPathForDirectoriesInDomains,
  File "Foundation/__init__.pyc", line 8, in <module>
  File "objc/__init__.pyc", line 18, in <module>
  File "objc/__init__.pyc", line 15, in _update
AttributeError: 'module' object has no attribute '_objc'

@fredthedead Can you provide your versions of python, macOS, and PyObjC? Possibly also would be helpful to get the minimal setup.py that causes this to happen.

Thanks I've resolved the issue. After changing the order of imports in my app.py file it threw a different error about not being able to find a module called '_sysconfigdata'. I've added that module to my setup.py file as an explicit package and it's working fine now...
My versions are: python 2.7 (Anaconda) and macOS 10.13.4


datashade kwarg for scatter_matrix

It would be nifty to have datashade=True work for the scatter_matrix function.  I'm happy to contribute this if someone can point me in the right direction.

The latest implementation might just look like this:
grid = grid.apply(datashade,  per_element=True)

Adding rasterize=True as an optional arg would be nice for large datasets.


Mrh gitignore additions

Some people might find this helpful. I added some metadata files that Sublime Text and PyCharm create to our .gitignore file. Feel free to ignore this until after AGU of course.

+1


Flow - add pk/inserted & modified dates/_invocation id

@forgxyz did you ran dbt run -m models/silver/nft/metadata/livequery/silver__nft_topshot_metadata.sql before running the gold view?


connection pool can not recycle

I  am using redis3m in productive enviroment. when system is busy and concurrent is high,the simple_pool will establish new connection with redis server.But when system is idle,say midnight,simple_pool can not recycle connection.
<IP_ADDRESS>:6379> info clients
Clients
connected_clients:14047
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:1431

any update on this ?


Controller Middleware (Permissions)

This controller constructor code works, no problem and handy for a Laravel Resource Constructor
public function __construct(){
        $this->middleware('role:administrator|writer', ['except' => ['index','show']]);
}

This gives you an error
public function __construct(){
        $this->middleware('permission:create-article', ['only' => ['create','store']]);
}

ErrorException in Gate.php line 321: Illegal offset type in isset or empty. The $ability var is an array when passed from the controller, but a string when passed from routes.php.

Bump.. getting the same error since updating to 5.3

Same issue.

Anyone have a solution yet?

Update your user model:
use Zizaco\Entrust\Traits\EntrustUserTrait;
and
use EntrustUserTrait;

This issue is solved, The code above is correct ans the updated user model as well.


preprocess::reorder panicked on rust 1.82.0

What happened?
preprocess::reorder panicked on 1.82.0. (1.80.0 is ok).
See 1.81 new feature:
https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html#new-sort-implementations
PRQL input
from foo

filter true
sort {}
derive a = 1
derive b = 1

filter true

select {
  n1 = n1 + 1,
  n2 = n2 + 1,
  n3 = n3 + 1,
  n4 = n4 + 1,
  n5 = n5 + 1,
  n6 = n6 + 1,
  n7 = n7 + 1,
  n8 = n8 + 1,
  n9 = n9 + 1,
  n10 = n10 + 1,
  n11 = n11 + 1,
}
take 1
sort {}

SQL output
Message:  user-provided comparison function does not correctly implement a total order
Location: core/src/slice/sort/shared/smallsort.rs:860

Expected SQL output
No response
MVCE confirmation

[ ] Minimal example
[ ] New issue

Anything else?
No response

Thanks! I think we should be able to fix, I'll have a look.

@max-sixty @echou Using PRQL compiler version:0.13.2-61-gd05b6bd8 (current main), I have a couple weird observations:

commenting out any of the nX = nX+1 lines from the original query lets it compile
Adding a few other assignments, then commenting out some, the query seems to compile as long as there are 10 or fewer assignments


Turn code samples into doctests on first page of docs

Fix #1188
In the section on caveats, the code samples are not run when the documentation is built, which means they can get outdated.
I realized that because I tried the first one (on temporary storage and it threw an error).
This PR:

[x] turns the remaining code samples into doctests
[x] fixes the error I spotted in one of them (a missing Reverse as the first argument to autodiff)
[x] modified the test for duplicated temporary storage to circumvent Julia being more clever now

Also I wasn't able to build the documentation locally (see #1189), so if you have any tips I'll gladly take them

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (eedca9a) 75.37% compared to head (e0190b8) 93.30%.
Report is 1 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1187       +/-   ##
===========================================
+ Coverage   75.37%   93.30%   +17.93%
===========================================
  Files          34        7       -27
  Lines        9774      239     -9535
===========================================
- Hits         7367      223     -7144
+ Misses       2407       16     -2391

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

This is good to go


Updated News Page

@fiestared I updated the news page, so can you have a look and check if everything is OK?

I merged these changes with #204 , so this one is not relevant anymore.


Use after free (probably due to MVar finalizer)

Writing this test for getAddress reveals a use-after-free bug:
group98 :: TestTree
group98  = testGroup "getAddress" [

    testCase "getAddress" $ bracket
      ( socket :: IO (Socket Inet Stream Default) )
      ( \s -> do
          addr <- getAddress s
          assertEqual "" ( SocketAddressInet (inetAddressFromTuple (127,0,0,1)) 8080 ) addr
      ) close
  ]

    getAddress
      getAddress:                                                FAIL
        Exception: eBadFileDescriptor

The result is reproducable and independant from the RTS chosen.
Modifying the test makes the eBadFileDescriptor disappear:
group98 :: TestTree
group98  = testGroup "getAddress" [

    testCase "getAddress" $ bracket
      ( socket :: IO (Socket Inet Stream Default) )
      ( \s -> do
          addr <- getAddress s
          assertEqual "" ( SocketAddressInet (inetAddressFromTuple (127,0,0,1)) 8080 ) addr
      ) ( const $ pure () )
  ]

    getAddress
      getAddress:                                                FAIL
        test/test.hs:442:
        expected: SocketAddressInet {inetAddress = InetAddress <IP_ADDRESS>, inetPort = InetPort 8080}
         but got: SocketAddressInet {inetAddress = InetAddress <IP_ADDRESS>, inetPort = InetPort 0}

Wrong argument order for bracket m(


Error converting from jpg to Tiff CCITTFAX4 or FAX3

Hi,
I was using your excellent library since many many months ago. After relaunching the app I was developing and updating to the latest version of the library (I was using <IP_ADDRESS> or lower), I found that the conversion of a single JPG is not ok.
I´m getting a noise unreadable image.
I´m using the piece of code explained in the example and tutorial. And I hardly beleive that this piece of code was working before...
any help?

Hello. I will check.

Please, check version <IP_ADDRESS>

SOLVED!!!! Thanks for the effort and quick answer!!!!

@iguron if your Issue was solved please close this issue as such, so users can see this was solved.