refactor: separate BallScript into different behavior objects

BallScript is renamed Ball.
Balls/ is defined and it has Ball-related files.
Sprites and Textures are moved to Resources/. This is in order to
make Resources available to load dynamically.
Enum BallType is defined which the initial state is injected through
Unity.

merge imminent


Package request: buck2

Project description

"Buck2, a large scale, fast, reliable, and extensible build tool developed and used by Meta. Buck2 supports a variety of languages on many platforms.
Buck2's core is written in Rust. Starlark, which is a deterministic, immutable dialect of Python, is used to extend the Buck2 build system, enabling Buck2 to be language-agnostic. With Starlark, users can define their own custom rules.
Buck2 leverages the Bazel spec of Remote Build Execution as the primary means of parallelization and caching, which increases the importance of idempotency (no matter how many times an operation is performed, it yields the same result) and hermeticity (code is sealed off from the world), giving the right results, reliably.
Buck2 multi-language support includes C++, Python, Java, Go, Rust, Erlang, OCaml, and more."
-- https://buck2.build/docs/

Metadata

homepage URL: https://buck2.build/
source URL: https://github.com/facebook/buck2
license: MIT and Apache 2.0
platforms: linux and darwin (might also work on other platforms)

Additional Notes
It's worth noting that buck2 appears to be updating off the latest branch with a re-created git tag upon each "release". It may be the case that buck2 doesn't make sense to be in nixpkgs right now, but perhaps folks have ideas on what it could look like to update buck2 automatically.
EDIT (17 Apr 2023): I suspect the package will go in pkgs/development/tools/build-managers. It's also worth adding the following note from the source URL's README...

"Build uses prebuilt protoc binary from protoc-bin-vendored crate. If these binaries to do not work on your machine (for example, when building for NixOS), path to protoc binary and protobuf include path can be specified via BUCK2_BUILD_PROTOC and BUCK2_BUILD_PROTOC_INCLUDE environment variables."

Didn't try it out myself, but this may work https://github.com/thoughtpolice/buck2-nix/blob/main/buck/nix/buck2/default.nix

I'm getting close to publishing a PR actually :) Should be up soon.

Update: adding packaging to the upstream flake may be the best idea for now.
Either nixpkgs will need to support Rust-based packages with nightly toolchains (unlikely and for good reasons!) or buck2 will need to be buildable, and intentionally so, not as a hack, with stable Rust (linked issue: https://github.com/facebook/buck2/issues/265). The good news is that caching solutions exist and @thoughtpolice's work in buck2-nix should provide a good bluepoint for where to start with an upstream contribution.
Full Context: https://github.com/NixOS/nixpkgs/pull/232471#issuecomment-1553481540
Fortunately, reindeer likely will not have the same issue being included in nixpkgs, so I am authoring a PR to add reindeer (issue: https://github.com/NixOS/nixpkgs/issues/232693).

As of yesterday, I have a flake available on my buck2 fork that you can use to consume the buck2 binary in your downstream projects easily. I plan on semi-regular-kinda-ish updating it and rebasing on trunk, and eventually contributing it upstream; see also https://github.com/facebook/buck2/issues/308
Flake usage is easy. Something like the following should work where you can use b2 or buck2.packages."${system}".buck2 inside your flake outputs to refer to it, and you can put it in your devShells environment, etc:
{
  description = "Buck2 demo";
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    flake-utils.url = "github:numtide/flake-utils";
    buck2.url = "github:thoughtpolice/buck2";
  };

  outputs = { self, nixpkgs, flake-utils, rust-overlay, buck2 }:
  outputs = { self, nixpkgs, flake-utils, buck2 }:
    flake-utils.lib.eachDefaultSystem (system: let
      b2 = buck2.packages."${system}".buck2;
    in ...;
}

You can also get a binary in your $PATH with nix profile install github:thoughtpolice/buck2

As of #243148, there are now buck2 binaries, thanks to the Meta team doing releases! They can be updated every two weeks easily. So that means you don't need a Flake, cache, or any expensive build steps.
Please let me know if the binary doesn't work for you; I've done some light testing, and if things are broken somehow, we can pull it or figure something out.

Two side notes:

I will probably migrate the flake to a new repository, so that I don't have to keep my main development fork clean at the moment.
We can probably close this now, I think.

Thanks for the help @thoughtpolice! I believe #243148 does close this issue since buck2 is now in nixpkgs. Great work and thank you again :)


Trouble in leveraging generated rust_mobilenet_food_lib_bg.so

Hello, interesting project. I encounter some problems when using it. First, I uses the rustwasmc build --enable-aot command to generate the .so file by myself. However, there arises the error When executing function name: "__wbindgen_malloc" panic: toWasmEdgeValueSlideBindgen(): malloc failed. How can I solve the problem? And how to correctly generate the wasm .so file for use?
Another question is that when I use the .wasm file instead of the .so file in the function LoadWasmFile, the DNN inference time (denoted by Finished post-processing in) increases from about 200 ms to 800 ms, which seems so strange. I cannot figure it out.
Thank you for the answers in advance.

Hi, just to make sure: the wasm file worked but the so file failed? What did you use to compile the wasm file to so? Was it wasmedgec or wasmedgec-tensorflow?

Yes, I use the rustwasmc compiler and the rustwasmc build --enable-aot command to generate the .so file and .wasm file at the same time. The .wasm file worked, while the .so file encountered the error When executing function name: "__wbindgen_malloc" panic: toWasmEdgeValueSlideBindgen(): malloc failed.

My version: yomo-wasmedge-tensorflow 0.2.0, rustwasmc 0.1.29, yomo CLI 0.1.3.
Did you mean using the wasmedgec or wasmedgec-tensorflow tool to compile the generated .wasm file to .so, instead of using the .so file generated by rustwasmc build --enable-aot directly?

My version: yomo-wasmedge-tensorflow 0.2.0, rustwasmc 0.1.29, yomo CLI 0.1.3.
Did you mean using the wasmedgec or wasmedgec-tensorflow tool to compile the generated .wasm file to .so, instead of using the .so file generated by rustwasmc build --enable-aot directly?

Hi @peiqiangyu ,
Could you please use wasmedgec (version 0.8.2) to compile the .wasm file to .so?
wasmedgec rust_mobilenet_food_lib_bg.wasm rust_mobilenet_food_lib_bg.so

My version: yomo-wasmedge-tensorflow 0.2.0, rustwasmc 0.1.29, yomo CLI 0.1.3.
Did you mean using the wasmedgec or wasmedgec-tensorflow tool to compile the generated .wasm file to .so, instead of using the .so file generated by rustwasmc build --enable-aot directly?

Hi @peiqiangyu , Could you please use wasmedgec (version 0.8.2) to compile the .wasm file to .so?
wasmedgec rust_mobilenet_food_lib_bg.wasm rust_mobilenet_food_lib_bg.so

Thanks a lot, and it works now. The execution time drops from 800 ms to almost 100 ms as compared to using .wasm file.

@peiqiangyu This performance difference between .wasm and .so lies in interpreter vs AOT compilation, the latter has compiled wasm into a more efficient native binary(.so), so it can properly maximize the performance of the hardware.

@peiqiangyu This performance difference between .wasm and .so lies in interpreter vs AOT compilation, the latter has compiled wasm into a more efficient native binary(.so), so it can properly maximize the performance of the hardware.

Thank you for your answer. It also confuses me that the .so generated by rustwasmc build --enable-aot doesn't work, and both flags '--enable-aot' and '--enable-ext' seems useless during building.


🐛 Cannot format TypeScript in VS Code

Environment information
I don't have a "biome" binary installed. I just installed the VS Code extension.

What happened?
I installed the VS Code extension and followed the instructions in its README to configure the default formatter for TypeScript files. I'm used to this procedure so I know how to do so.
Also tried running the command "Format Document" with Biome as the default formatter for TypeScript, and I'm met with this dialog:

Same with JavaScript files:

Prettier works fine... 🤷
Expected result
I expect it to be able to format TypeScript, since that's what it says in the README.
Code of Conduct

[X] I agree to follow Biome's Code of Conduct

The README has been updated to state better that a biome.json file is required for the extension to start.
I'll close this issue for now, but feel free to open another issue or PR if you think something is still unclear.


Move data manipulation in monarch-ui to ontobio/biolink-api

Due to the natural evolution of the two codebases, the monarch-ui currently does a lot of json manipulation after fetching data from Biolink.  Ideally, this would be minimized and biolink would provide the ui a closer representation of what is needed for our views.
Examples:

Node pages make two calls to Biolink - neighbors, and {type}/{id}, followed by a lot of data manipulation - see Node.vue
Calls to getNeighborhood are followed by lot's of data munging - see getNeighborhood, this reminds me of "fetchClassInfo" from our legacy app
Operating on BBOP Graphs browser side, see getNeighborhood above and BBOPGraphUtils.js
Manipulating evidence EvidenceViewer.vue

See related/overlapping
https://github.com/biolink/biolink-api/issues/346
https://github.com/biolink/biolink-api/issues/353


Empty categories for feed is an array, but with categories is an object

There's an odd type mismatch for feeds with empty categories compared to those without. Without categories, an empty array [] is returned (see: https://api.podcastindex.org/api/1.0/podcasts/byfeedid?id=233796), however for a feed with categories an object of categoryId: categoryName is returned (see: https://api.podcastindex.org/api/1.0/podcasts/byfeedid?id=183562)
I'm trying to produce JSON Schema definitions for the endpoints and this discrepancy is causing me some issues. If it is intentional, I'll try to work around it, but on the surface, it feels a little weird.

It should probably return null to be consistent with the way other non-existent properties are returned. Agree?

That works for me

@daveajones ping on this (just so it doesn't fall off the radar)

Got it. Still on the to-do list. Hope to get some coding time today. Thanks for the reminder.

Should be fixed now.  Confirm?

Well, I've gotten further, now the same issue appears to be happening for /api/1.0/search/byterm.

Ugh. My bad. The underlying call on that is different. Give me a minute to fix.

Ok, should be good now.

Awesome, these first schema's are now valid! Now I need to do more. Thanks!

Hey, this issue still seems to exist for following API endpoint:
https://api.podcastindex.org/api/1.0/podcasts/bytag
There a bunch feeds with  "categories": [ ]

This should be fixed now.


Render tree data that contains children nodes

Hi all, is it possible to render this data set in react table? I cannot find any good example on how to render data recursively and having like tree structure. Really appreciate for the helps
{
  id: 1,
  name: "Ian",
  children: [
      { id: 2, name: "Max" },                        > Ian
      {                                                  > Max
         id: 3,                                          > Mike
         name: "Mike",                      --->             > Test
         children: [                                         > Test 8
           { id: 7, name: "Test" },                          > Test 10
           { id: 8, name: "Test 8" },                    > John
           { id: 10, name: "Test 10" }
         ]
      },
      { id: 4, name: "John" }
  ]
}

You can do this using the subRows key instead of children. Then you will need to change some things to define a specific column as the pivot for that row. I threw together a quick example here https://codesandbox.io/s/react-table-v7-sandbox-pwhil?fontsize=14
I removed useGroupBy as that was causing some conflicts with pivoting which could be sorted but just for this example its not needed. I only made changes to the renderRow function in Table.js and changed the data a bit to add subRows in Basic.js.
So basically what I did was for the data I added subRows to some data like you have with the children key. But then for the data set that has subRows I defined a pivot value which is the column that it should pivot around. Im sure it can be done in a cleaner way but this is just a quick simple example using subRows.

That's a great example to demonstrate the flexibility of the library. In the near future, we'll have an official examples folder in the repo for codesandboxes just like that.

@Codar97 Thanks for the example! A follow up question, I see that this is in v7 but I am looking for a similar example in v6..  The requirement I have is something similar but the expanded view should not be a table by itself, it should be a data set which follows the parents column width and expansion states.. I have tried looking into the documents and found pivotBy and SubComponent but unfortunately they don't seem to fit my use case.. Would appreciate any direction for this. Thanks!

Found a solution..
https://codesandbox.io/s/react-table-pivoting-and-aggregation-1pgbv
Was wondering if there could be a cleaner way to remove the expander icon rather then checking for rows.level.. Thanks again!

Found a solution: https://codesandbox.io/s/react-table-pivoting-and-aggregation-1pgbv
Was wondering if there is a cleaner solution rather than checking for rows.level and then adding the Expander component.. Thanks again!

Is there an updated version of these solutions? @nikhil-varma @Codar97 A couple of years have passed


Updating chef_bootstrap.py for 10.13

Noticed bootstrap was failing on 10.13 for the CLI Tools portion, so I decided to update the receipts:
Before
Checking for OS X CLI Tools... not installed.

Software update failed!

After:
Checking for OS X CLI Tools... installed.

Setting up Chef config files.

Checking for Chef install...

Obtaining Chef...

Downloading from Chef directly... downloaded from Chef.io.

Installing Chef.

installer: Package name is Chef Client

installer: Installing at base path /

installer: The install was successful.

Finished installing Chef.

Running client, saving output to /Library/Chef/Logs/bootstrap.log

Running client, saving output to /Library/Chef/Logs/bootstrap.log

Running client, saving output to /Library/Chef/Logs/bootstrap.log

Bootstrap complete!

FWIW,
The cli tools are no longer necessary and perhaps this script should be refactored to make this optional altogether.
Thanks,
Erik Gomez

From: Facebook Community Bot<EMAIL_ADDRESS>Sent: Friday, December 15, 2017 6:56:51 PM
To: facebook/IT-CPE
Cc: Subscribed
Subject: Re: [facebook/IT-CPE] Updating chef_bootstrap.py for 10.13 (#145)
Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours has expired.
Before we can review or merge your code, we need you to email cla@fb.commailto:cla@fb.com?subject=CLA for facebook%2FIT-CPE %23145 with your details so we can update your status.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/facebook/IT-CPE/pull/145#issuecomment-352147389, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFa_GJOIHlNpB7rQVj8Z4sEwugJnoOWMks5tAxVTgaJpZM4REKmA.

Good call @erikng. I have it out there but I'll let @nmcspadden or @mikedodge04 decide.

I might be willing to refactor it if we get some sign off on it, as that would help me get off my fork.
Ideally there should be options for several things (validator, client.rb, log location, etc).
I'm unsure how others use the script currently, but adding arguments would definitely cause upstream issues for other tools I currently use, but I would be willing to figure that out as well.
Thanks,
Erik Gomez

From: Johnny Ramos<EMAIL_ADDRESS>Sent: Friday, December 15, 2017 7:22:46 PM
To: facebook/IT-CPE
Cc: Erik Gomez; Mention
Subject: Re: [facebook/IT-CPE] Updating chef_bootstrap.py for 10.13 (#145)
Good call @eriknghttps://github.com/erikng. I have it out there but I'll let @nmcspaddenhttps://github.com/nmcspadden or @mikedodge04https://github.com/mikedodge04 decide.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/facebook/IT-CPE/pull/145#issuecomment-352149640, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFa_GGh7f-ovqD9lgL1xxJMDbr5jtZ5nks5tAxtlgaJpZM4REKmA.


switch our DeprecationWarnings to FutureWarnings

Python silences DeprecationWarnings when running in user code.
It is therefore recommended to use FutureWarnings if we want to ensure that users see the warnings by default.
We could remove
warnings.filterwarnings('always', category=DeprecationWarning, module='mne') from mne/utils/docs.py  and change our Deprecation- to FutureWarnings
Originally posted by @hoechenberger in https://github.com/mne-tools/mne-python/pull/11097#discussion_r956784748

hands down best issue number ever! 🎈


ARM DSP: fix intra_doc_link_resolution_failure

Escape '[' and ']' used for arrays and not as Markdown syntax.

Thanks!


Improving the performance of Poolboy up 2 to 3 times

Hi, I've written a pooler to test some things and saw that it outperformed poolboy on most use cases, including what I think is the most normal one, a given timeout for the checkout and no waiting queue at all.
I've set up some tests spawning 150k processes, waiting 2secs, repeating this 8 times (I've tested different configurations too anyway varying the repeats, waiting time and total processes).
Each process tries to check out a connection, with a timeout of 3s and no waiting queue.
If it is able to checkout then it sends a message and sleeps for 250ms to "simulate" a real waiting time (I can't use random waits because then the tests are meaningless).
What I arrived at is for instance, using 50workers for both poolers (this was tested warm, in different orders, cold, and several times):
boy: OK: 796 Failed: 1199204 Time: 10.091
queuer: OK: 837 Failed: 1199163 Time: 3.8459999999999996
And they're always in those ranges, slightly more processed, about 1/3 of the time spent.
Regarding CPU & Mem utilisation, the gains also seem to be significant (I imagine because the VM doesn't have to set so many call timers, and undo them on timeout, much less exceptions being raised, much less msgs flowing, etc).
So then I implemented the same preemptive check in poolboy to see if it was overloaded before making the attempt to checkout, and with that check poolboy even became slightly faster than my pooler on avg, which means this is something that can be implemented with no changes to client side code for 2 to 3 times faster checkout when overloaded (it doesn't work in unbound queues because they can't get overloaded... in those cases it will keep the same profile as it has now).
There's only one slight change that needs to be decided, which is how to handle checkouts coming from remote nodes, either bypass the pre-check or instead do a rpc, it's also easily solvable.
Because poolboy is used in several places within Elixir packages I would like to write a PR for this if there's interest? The changes are not complex at all.

@mnussbaumer would you mind making your code available?

@hkrutzer I don't have a PR'able version ready, but basically it's:
creating an ETS when the supervisor goes up -> Ets = ets:new(?ETS, [public, named_table, {read_concurrency, true}]),
on checkout when there's no available workers & not blocking:
true = ets:insert(Ets, {self(), 1}),
Then on checkin, reset that entry by:
true = ets:insert(Ets, {self(), 0}),
And adding a special checkout clause for the when it's a not blocking request
checkout(Pool, false, Timeout) ->
    CRef = make_ref(),
    case ets:lookup(?ETS, Pool) of
        [{_, 0}] ->
            try
                gen_server:call(Pool, {checkout, CRef, Block}, Timeout)
            catch
                ?EXCEPTION(Class, Reason, Stacktrace) ->
                    gen_server:cast(Pool, {cancel_waiting, CRef}),
                    erlang:raise(Class, Reason, ?GET_STACK(Stacktrace))
            end;
        _ -> full
  end.

But this needs some more work, deciding on the transaction mode, and if poolboy is being used across nodes as there won't be that ets in nodes that didn't start that pool, etc. IT was just a proof of concept I wiped out to test where I knew those wouldn't be issues.
You might be interested in https://github.com/mnussbaumer/workforce
It is pretty much faster than poolboy, it has tests and benchmarking (there's a write-up in the benchmarking folder) and that benchmarking was made previous to the last tweaks that have made it even faster in general, but no real production workloads.
Even with this theoretical fix to do a pre-check on poolboy it was still slower across the board, but much faster than poolboy without it.
(note that on hex.pm the version that is available for workforce is the first one, as I had problems cutting a new version with rebar3 and haven't gotten to it yet - so use the dependency from github and do some testing against using poolboy?)


parseExcel does not work on google sheets file

Creating an excel file on google sheets, downloading it as an xlsx file, and running parseExcel does not work. The linked file does read the sheet name, but none of the actual data is read properly. No error is thrown. echo'ing the sheet shows that it reads it as two plusses (+'s) and a space.
This is on nim v1.6.10, ubuntu.
hehe.xlsx

Any idea how this can be fixed? I can give it a shot, if someone tells me what the issue is and what needs to be done to fix it.

See issue #23. A road plan is laid out there.


Groupby + agg sometimes ignores numeric_only arg

Describe the problem

First reported here: https://github.com/modin-project/modin/pull/413#issuecomment-455852817
If a partition only contains non-numeric data, pandas will ignore the numeric_only kwarg and do the operation anyway.
Source code / logs
df = pd.DataFrame({'A': [2, 2, 2, 3, 4],
                    'B': [5, 6, 7, 8, 9],
                    'C': ['a', 'b', 'c', 'd', 'e']})

df = df.groupby('A').sum(numeric_only=True)
print(df)

This is fixed at least by version bd326f1c4175102489f08d271a53cf374bd9125e.


Be more clever about rate limiting

Authenticated calls have an hourly limit of 5000 calls. I somehow hit this limit regularly. I'm not sure if this is because of a bug in prst doing much more requests than expected, or because I use my auth token in other apps.
I will include information about the current rate limit in a future version of prst (behind a flag), and in the meantime I should take advantage of the ETag header (see https://docs.github.com/en/rest/overview/resources-in-the-rest-api#conditional-requests). It should not count any usage when checking an endoint that didn't change.

I actually added a --debug flag to see the current rate limit options. This allowed me to see that there is no bug in the code and nothing uses a lot of requests.
As we're only checking every 5mn, and most builds will have finished by then, I'm not sure it's worth implementing the ETag solution. It should save 3 or 4 requests at most, which, on a total of 5000 hours doesn't seem like it will make any difference.


ionic emulate --livereload ios not working after latest Apple updates

See http://forum.ionicframework.com/t/live-reload-error-failed-to-load-webpage-with-error/32831/4

I can confirm this exact error. It seems something has changed in iOS9 that prevents the simulator from accessing IP addresses on the local network. Connecting to localhost still works, however.
If I run a simple HTTP server from my Mac, I am able to access it using Safari in the iOS simulator at localhost:8000. However, I'm not able to access it at <IP_ADDRESS>:8000 (my local network IP). In fact, Safari shows me the same error (verbatim) that appears in the Ionic logs: "The operation couldn’t be completed. No such file or directory"
I suspect it would work if ionic emulate were modified to accept the same [--all|-a] Have the server listen on all addresses (<IP_ADDRESS>) flag that ionic serve provides.

From my investigation (see forum thread) seems like a solution would actually be for ionic emulate to simply pass localhost:8100 as the initial page to load since that works fine in the iOS Simulator, instead of trying to determine the IP from the network interface.
The dev server is listening fine, it's just the Simulator that has no access to the local network. But can see localhost.

+1 localhost appears to work. You can even see this hitting localhost:8100 and localhost:35729 in mobile safari, while loading these pages on the same ports, but full ip address (i.e 10.x.x.x) still gives the same error I see in the xcode logs: Failed to load webpage with error: The operation couldn’t be completed. No such file or directory

One workaround I found is to run Charles Proxy. It works because it just proxies those same network calls that are being blocked, back to your local machine.

+1

+1

+1

Apple's new network transport security rules are the main culprit.
Adding
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

to your *-Info.plist solves most of the issues, but if you specify them separately you will have to manually add it yourself. I would look into automating this process as well.
A would wager that lot of users haven't encountered this issue as many have added the above code for iOS 9.

@jimmyhsu that isn't the problem. I have that added and it still didn't work for me until I changed to localhost.

@jimmyhsu @bentomas Yep, separate issue as far as I can tell. Even with the NSAppTransportSecurity patch the simulator is unable to access IP addresses on the local network.

@bentomas @kylefox Ahh, when I ran the app via xcode it told me the livereload address in the logs that it was blocked due to being HTTP.
A different bug I am getting is $ ionic address doesn't set the attributes correctly, and only refuses to set the address to localhost for me.

+1. Pretty sure it's not related to NSAppTransportSecurity as I have it set in the plist but still have the error when live-reload is enabled. Running without live reload works. In the mean time, I'm working around by using iOS 8 simulator.

I had also previously fixed the NSAppTransportSecurity issues by applying the plist fix. Stopped working since I upgraded to El Capitan

For what it's worth with regards to finding the cause, I did also get it working with @eroh92's suggestion. Starting Charles made livereload work immediately.

So far, I have been able to isolate this as an issue with apples new ATS setup.
@kylefox mentioned not being able to use live-reload with ATS setup, but I have been able to set up live-reload over IP and have it work fine.
My steps to get everything working fine.

ionic start tmp && cd tmp

npm install cordova-config-utils && chmod +x hooks/after_prepare/011_update_config.js

(need to fix permission error)

add the following to the config.xml

NSAllowsArbitraryLoads

ionic run ios --device -lc

With that, I was able to get live reload working without any issues. Even went back to make sure that the live-reload server was setup for IP.

@mhartington Did you try with the --emulator flag instead of --device ?

I definitely had app transport security disabled when I tested it - using this template: https://github.com/mirkonasato/ionic-starter-blank

In fact, without disabling ATS the localhost workaround didn't work either.

Hmm, weird that it happens with the sim...but not the actual device...

Yeah it's a weird issue to do with the iOS Simulator and networking. Couldn't find anything in the Apple documentation/release notes to confirm if the new behaviour is expected or not.
Would be great if you could pass an --address option to ionic simulate like you can for ionic serve so at least you can do ionic emulate -lc --address localhost ios.
My versions:
$ ionic info

Your system information:

Cordova CLI: 5.3.3
Gulp version:  CLI version 3.9.0
Gulp local:
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.0
Ionic App Lib Version: 0.5.1-beta.0
ios-deploy version: 1.8.2
ios-sim version: 5.0.2
OS: Mac OS X El Capitan
Node Version: v0.12.7
Xcode version: Xcode 7.0.1 Build version 7A1001

Agree that it's weird. The best solution is likely to allow the emulate command to support some of the same options that ionic serve affords:

--all (as I originally suggested)
--address (as @mirkonasato suggests)

This adds consistency to the commands, avoids any platform-specific hacks, and is backwards/forwards compatible.

@kylefox, --address localhost would emulate what running charles is doing. Charles effectively proxies queries on the simulator back to the machine which recognizes the ip address the simulator is looking for.

@eroh92 Cool, good to know. I'll give Charles a shot. Would still be nice to have a permanent, non-hacky solution that doesn't require a third-party app ;)

@kylefox, agreed! Just saying that --address localhost should do the trick as in some ways it's what Charles is doing (proxying all http requests to localhost first).

@kylefox @mirkonasato Hi there. I found this thread when troubleshooting the same issue for an unrelated project. I logged a RADAR based on this one. If multiple people log reports with Apple, we might be able to improve the odds that it'll be fixed.

Is there any workaround already? Charles Proxy won't refresh the content for me.

+1

Submitted a pull request. If somebody wants to test it install my fork with
npm install -g https://github.com/mirkonasato/ionic-cli

and you should be able to run ionic emulate -lc --address=localhost ios.

Thanks! Is it submitted to app-lib?

Nope, ionic-cli: https://github.com/driftyco/ionic-cli/pull/629

Thanks mirkonasato, but it's not working for me on El Capitan IOS 9.1 Xcode 7.1.

@kabus202 "not working" is a bit generic, can you provide some more details? Did you configure App Transport Security to start with?

@mirkonasato, i can confirm that it's working after i added the ATS. This is great, thanks!!!

Patch works for me thanks @mirkonasato

I can confirm that with ATS configured to allow arbitrary loads, this patch finally fixes livereload for me.  I'm using the emulator for the first time in weeks.  Another vote for adding this patch.  :+1:

Will this fix make its way into the library ?

+1 for mergin @mirkonasato's patch

+1 for @mirkonasato's patch
I installed this patch and it worked for me!
Cordova CLI: 5.3.3
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic CLI Version: 1.7.7
Ionic App Lib Version: 0.6.3
ios-deploy version: 1.8.2
ios-sim version: 5.0.3
OS: Mac OS X El Capitan
Node Version: v0.12.7
Xcode version: Xcode 7.1 Build version 7B91b

@mirkonasato Thanks for submitting the PR. i've got it merged now and with @ryoe's help i've gotten it tested a bit more. I'll be releasing today.

@mirkonasato I've also adjusted it to respect ionic emulate --address localhost by removing the address and passed IP address so it will not cause errors for calls passed to Cordova CLI.

Available in 1.7.8. Please re-open if there still remains to be an issue.

Thanks @jbavari!

I still have the same issue on iOS9 with wkwebview plugin https://github.com/Telerik-Verified-Plugins/WKWebView

Any plans on merging this to ionic alpha too?  Been playing around with ionic2 but it looks like this isn't there yet.

After whitelisting localhost with
cordova-plugin-whitelist
This works for me:
$ ionic run ios -l -c --address localhost
Note:
check if you have the latest versions of ionic, cordova and npm

have any of you tried it with ionic v2.0 beta? I tried some of these solution and it didnt work for me..
Cordova CLI: 6.0.0
Ionic Version: 2.0.0-beta.1
Ionic CLI Version: 2.0.0-beta.17
Ionic App Lib Version: 2.0.0-beta.8
ios-deploy version: 1.8.5
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.7.0
Xcode version: Xcode 7.2.1 Build version 7C1002

Same as @andrejunges (with the exact same ionic info versions). All these solutions do not work for me. App is just stuck at the spashscreen.

@andrejunges @sorawit you probably need to whitelist localhost as @MelchnerRoman said in the previous comment.

@mirkonasato that worked, way easier than I expected haha :+1:
Thankss

I didn't realize the solution is here. I reached this same solution and also added an answer on SO.
I don't understand the reasoning behind not using localhost by default and trying to figure out the correct (non-localhost) IP ?

Comparing the config.xml from cordova create vs ionic start it looks like our default could use an update to be more whitelist friendly.  Probably related to https://github.com/driftyco/ionic-cli/issues/725, but either way I've opened an issue to take a look into it: https://github.com/driftyco/ionic-cli/issues/811

I just changed the property of my project's root folder by unchecking the 'Read Only' option.
Then run ionic serve again. Live reload is now working.

Add into config.xml:
<allow-intent href="*"/>
<allow-navigation href="*"/>
ionic platform rm ios
ionic platform add ios
ionic emulate ios -l

After reading and trying all solutions, @jlno 's first step solved it for me:

Add into config.xml: <allow-intent href="*"/>  <allow-navigation href="*"/>

Use ionic cordova run --livereload ios


Fix travis and update dependencies

Fixed travis according to https://benlimmer.com/2019/01/14/travis-ci-xvfb/.
Updated dependencies using npm audit.
Please note that dependencies are only used for tests.

Failing because of node 6 ....

changed to node 10, let's see...

@DeepDiver1975 it's green, merge ?


Sitting build path to '/' wiped my drive

Version
3.4.0
Environment info
Environment Info:

  System:
    OS: Windows 10
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  Binaries:
    Node: 11.0.0 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: 44.18329.1.0
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce
use vue UI
Create a project and set the build path to '/'
start build
What is expected?
I thought that it would build on the same directory
What is actually happening?

Sorry to hear that. We can definitely warn if / is provided...
If we want to be extra careful, we can do a heuristic check based on the file layout to see if it looks like a typical dist folder (with only .js and .css files etc.)

Yes that would be optimal

Oh, the same thing happened to me! i lost my data :-(


possible test failure in upcoming Julia version 1.5

A PkgEval run for a Julia pull request which changes the generated numbers for rand(a:b) indicates that the tests of this package might fail in Julia 1.5 (and on Julia current master branch).
Also, you might be interested in using the new StableRNGs.jl registered package, which provides guaranteed stable streams of random numbers across Julia releases.
Apologies if this is a false positive. Cf. https://github.com/JuliaCI/NanosoldierReports/blob/ab6676206b210325500b4f4619fa711f2d7429d2/pkgeval/by_hash/52c2272_vs_47c55db/logs/Duff/1.5.0-DEV-87d2a04de3.log

You are right, tests actually were broken for Julia 1.5.
I fixed it by hardcoding data for Julia 1.5 and older versions separately.

You are right, tests actually were broken for Julia 1.5.
I fixed it by hardcoding data for Julia 1.5 and older versions separately.


Feature Request; Add support for failing tests that leak memory

It would be useful to run rpsec tests with support for reporting and/or failing tests that exercise code that leaves referenced objects around.  I had the pleasure of working with a C/C++ test framework that had this support and it was wonderful.
The gem memory_profiler ( https://github.com/SamSaffron/memory_profiler ) has code that makes testing for dangling object references pretty easy, but finding the right place to use that in rspec is difficult.  I attempted using memory_profiler in before/after/around callbacks but it wasn't useful because rspec has allocated objects that need to stick around, and the leted variables complicate things even more.  memory_profiler can be told to ignore allocations from rspec, but excluding the leted variables (and other test specific allocations) is significantly more difficult.

@cconstantine this is an interesting feature request!  For this kind of feature, we prefer to see it developed in an extension gem first, and then, after it's seen use in the wild for a while (and refinement from that process, we can consider integrating it in RSpec.  (That's what we did for verifying doubles, for example: they started life in the rspec-fire gem).
That said, this feature requires the use of a 3rd party gem, which we generally want to avoid.  We support many versions of ruby that the memory_profiler gem doesn't support, for example.  As long as this feature requires the use of a 3rd party gem, we'll probably want to avoid integrating it directly into RSpec.
So, I think the path forward is to build this as an extension gem.  It sounds like you already tried that and ran into some roadblocks.  Are there any additional public APIs RSpec could provide that would unblock you?
One idea is for someone to develop a proof-of-concept in an rspec-core branch (with the understanding that it's won't be merged) to figure out the integration points and solve the issues you mentioned while you can freely change RSpec.  Once that's been done, it should be clear what extension APIs RSpec needs to add (if any) to support this as a 3rd party gem, and we can move forward with that at at that point.
Thoughts?


Uncaught Error: Cannot read property 'object' of undefinedTypeError: Cannot read property 'objec...

Triggered randomly.

Switch out of Atom window
Switch back

Atom: 1.17.0 x64
Electron: 1.3.15
OS: Mac OS X 10.12.4
Thrown From: Atom Core
Stack Trace
Uncaught Error: Cannot read property 'object' of undefined
TypeError: Cannot read property 'object' of undefined
at ObjectsRegistry.get (/Applications/Atom.app/Contents/Resources/electron.asar/browser/objects-registry.js:41:28)
at EventEmitter. (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:306:31)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:201:7)
at WebContents. (/Applications/Atom.app/Contents/Resources/electron.asar/browser/api/web-contents.js:222:13)
at emitTwo (events.js:106:13)
at WebContents.emit (events.js:191:7)
At /Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:217

Error: Cannot read property 'object' of undefined
TypeError: Cannot read property 'object' of undefined
    at ObjectsRegistry.get (/Applications/Atom.app/Contents/Resources/electron.asar/browser/objects-registry.js:41:28)
    at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:306:31)
    at emitMany (events.js:127:13)
    at EventEmitter.emit (events.js:201:7)
    at WebContents.<anonymous> (/Applications/Atom.app/Contents/Resources/electron.asar/browser/api/web-contents.js:222:13)
    at emitTwo (events.js:106:13)
    at WebContents.emit (events.js:191:7)
    at metaToValue (/Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:217:13)
    at undefined.remoteMemberFunction (/Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:113:18)
    at AtomEnvironment.module.exports.AtomEnvironment.getWindowDimensions (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:663:1)
    at AtomEnvironment.module.exports.AtomEnvironment.storeWindowDimensions (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:697:1)
    at WindowEventHandler.module.exports.WindowEventHandler.handleWindowBlur (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:184:1)
    at /Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:3:1

Commands
     -0:20.8.0 editor:newline (input.hidden-input)
     -0:20.3.0 snippets:next-tab-stop (input.hidden-input)
     -0:20.3.0 snippets:expand (input.hidden-input)
     -0:20.3.0 editor:indent (input.hidden-input)
     -0:18.9.0 editor:newline (input.hidden-input)
     -0:18.7.0 snippets:next-tab-stop (input.hidden-input)
     -0:18.7.0 snippets:expand (input.hidden-input)
     -0:18.7.0 editor:indent (input.hidden-input)
     -0:14.5.0 editor:newline (input.hidden-input)
     -0:13.6.0 editor:move-to-first-character-of-line (input.hidden-input)
     -0:13.1.0 editor:move-to-end-of-screen-line (input.hidden-input)
  2x -0:10.5.0 core:backspace (input.hidden-input)
     -0:09.2.0 core:save (input.hidden-input)
     -0:05.9.0 core:move-up (input.hidden-input)
     -0:05.7.0 intentions:highlight (input.hidden-input)
  2x -0:05.7.0 editor:move-to-beginning-of-word (input.hidden-input)

Non-Core Packages
atom-alignment 0.13.0
atom-autocomplete-php 0.22.2
atom-beautify 0.29.24
autocomplete-css-with-stylus-support 1.0.0
busy-signal 1.4.1
data-atom 0.25.1
file-icons 2.1.5
intentions 1.1.2
language-pug 0.0.21
language-stylus 0.2.0
language-vue 0.21.2
linter 2.1.4
linter-jshint 3.1.2
linter-php 1.3.2
linter-ui-default 1.3.0
seti-icons 1.4.3
wakatime 7.0.2

Thanks for taking the time to contribute!
We noticed that this is a duplicate of #11692. You may want to subscribe there for updates.
Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


fix(href): add href to a tags so hyperlinks appear correctly

After JQuery update it was discovered that  tags without href don't appear correctly. This ticket fixes those issues, but for now we must change "attribute-allowed-values" errors to be warnings.

@wallw-bits this is in line with what we are doing elsewhere but maybe not necessary for opensphere. Yay or Nay?

I am not a fan of using an anchor tag just for ng-click. Since these do not link anywhere, they should not be anchors in the first place. They were probably done that way because someone copy/pasted from the bootstrap examples, which intend for the href to have a value.

@wallw-bits I agree with that. I think it was the result of some of the bootstrap defaults like you mentioned. Anchor tags pull in things like 'cursor: pointer' automatically. There might be other considerations I am not aware of. Not sure if @jsalankey remembers?
We don't have to accept this PR though if it's not what we want to do. I think @schmidtk got these working after the jquery upgrade already.

Bootstrap's examples use <a href="#" ...> for navs, which is what I used in this commit to fix the layers window tabs.
In doing some reading, it seems both href="#" and an empty href point to the top of the current document and should have the same behavior. I tested in Chrome, Firefox, and Edge, and both approaches had the intended behavior without unwanted side effects.
I'm fine either either approach but we should pick one and stick with it for consistency. Given the empty href is shorter and doesn't imply a document fragment, that might be better than Bootstrap's href="#".

Sorry, I take that back. Given this PR introduces lint errors which are worked around by changing attribute-allowed-values to a warning, we should use Bootstrap's recommended href="#" pattern instead.

I don't think href="#" will play nice with Angular. A good portion of those styles are not specific to the tag, and therefore we should try making those divs or something first.

If cursor: pointer is the only thing we lose by switching to a div, maybe we should just add that to .nav-link in the Bootstrap overrides. I agree with Will, that would be preferable to using anchors on elements that aren't actually links.


Add content subtypes

Why was this change made? 🤔
Closes #2287
How was this change tested? 🤨
n/a
⚡ ⚠ If this change involves consuming from or writing to another service (or shared file system), run integration test create_object_h2_spec.rb and/or test manually in [stage|qa] environment, in addition to specs. ⚡

@amyehodge @hannahfrost  This is ready to go.


Error podspec dependencies on Flutter on Mac os Big sur

Hi friends, i'm new on Mac os but when i create new Flutter project on my Macbook Air M1 chip, all things is fine, but when i want to install new plugin on pubspec.yaml like hexcolor plugin, i will get following error and my Flutter project can't run again! Please help me to run my flutter app with all Dependencies on Mac Plz plz plz
alirezasoltanineshan@Alirezas-MacBook-Air testo1 % flutter run
Launching lib/main.dart on iPhone 12 Pro in debug mode...
Running pod install...                                              3.3s
CocoaPods' output:
↳
Preparing
Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `hexcolor` from `.symlinks/plugins/hexcolor/ios`

Resolving dependencies of `Podfile`

――― MARKDOWN TEMPLATE
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

```
/usr/local/bin/pod install --verbose
```

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?

### Stack

```
   CocoaPods : 1.10.1
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580)
        [universal.x86_64-darwin20]
    RubyGems : 3.0.3
        Host : macOS 11.1 (20C69)
       Xcode : 12.3 (12C33)
         Git : git version 2.24.3 (Apple Git-128)
Ruby lib dir :
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories :
```

### Plugins

```
cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0
```

### Podfile

```ruby
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

# CocoaPods analytics sends network stats synchronously affecting flutter
build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..',
  'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're
    running pod install manually, make sure flutter pub get is executed
    first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}.
  Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin',
'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end
```

### Error

```
LoadError - dlsym(0x7fba792cee60, Init_ffi_c): symbol not found -
/Library/Ruby/Gems/2.6.0/gems/ffi-1.14.2/lib/ffi_c.bundle
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/ru
bygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/ru
bygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/ffi-1.14.2/lib/ffi.rb:6:in `rescue in <top
(required)>'
/Library/Ruby/Gems/2.6.0/gems/ffi-1.14.2/lib/ffi.rb:3:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/ru
bygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/ru
bygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/ethon-0.12.0/lib/ethon.rb:2:in `<top
(required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/ru
bygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/ru
bygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `<top
(required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/ru
bygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/ru
bygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager
.rb:74:in `cdn_url?'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager
.rb:36:in `create_source_with_url'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager
.rb:21:in `find_or_create_source_with_url'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analy
zer.rb:178:in `block in sources'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analy
zer.rb:177:in `map'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analy
zer.rb:177:in `sources'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analy
zer.rb:1073:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.
rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analy
zer.rb:1072:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analy
zer.rb:124:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:41
4:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:23
9:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.
rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:23
8:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:16
0:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install
.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in
`run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:i
n `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top
(required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
```

――― TEMPLATE END
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=dlsym%280x7fba792cee60%2C+In
it_ffi_c%29%3A+symbol+not+found+-+%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2F
ffi-1.14.2%2Flib%2Fffi_c.bundle&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly
submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
Found no similar issues. To create a new issue, please visit:
https://github.com/cocoapods/cocoapods/issues/new

Error output from CocoaPods:
↳
[!] Automatically assigning platform `iOS` with version `9.0` on target
`Runner` because no platform was specified. Please specify a platform for
this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install
Error launching application on iPhone 12 Pro.
alirezasoltanineshan@Alirezas-MacBook-Air testo1 % ;10R;10R

@Asncodes-80
Please try sudo gem install ffi.
Make sure ffi and cocoapods are installed successfully via sudo which ffi and sudo which cocoapods

@Asncodes-80
Please try sudo gem install ffi.
Make sure ffi and cocoapods are installed successfully via sudo which ffi and sudo which cocoapods

I also encountered this problem, if there is a solution, please let me know, thank you very much

I also encountered this problem, if there is a solution, please let me know, thank you very much

@xiejibiao
Hi, how are u?
Please do: sudo gem install ffi. if u installed sucessfully cocoapods

@xiejibiao
Hi, how are u?
Please do: sudo gem install ffi. if u installed sucessfully cocoapods


RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.

When I run private-transformers-main\private-transformers-main\examples\image_classification\main.py
and choose "cifar100" datasets，i get the error as follows:

Hi, thanks for your interest! This error is usually caused by index out of bounds. Could you check if your code runs with non-private training and the labels are integers in the appropriate range?

Thanks for your reply. First, I can run the code in CIFRA10 with private training. I follow your suggestion, and I can not run the code in CIFRA100 with non-private training, i.e. I delete the "privacy_engine.attach(optimizer)". I get the same error as above. I also print the label as follows:

Thanks!

Thanks for your reply. First, I can run the code in CIFRA10 with private training. I follow your suggestion, and I can not run the code in CIFRA100 with non-private training, i.e. I delete the "privacy_engine.attach(optimizer)". I get the same error as above. I also print the label as follows:  Thanks!

This issue doesn't seem to be caused by the privacy engine but rather a mismatch between your logit tensor and labels. I'm closing this issue now.
Can you check if your predicted logits tensor has size (batch_size, 100)? You need 100 because for CIFAR-100, you're predicting 100 classes.


Updates status bar when cursor is moved.

It was broken but I never really payed attention to it, it seems that
atom.workspaceView.on('cursor:moved', updateStatusbar); didn't work
anymore.
[Fixes #17]

Second commit gets rid of emissary library, and closes #89.

Nice! Awesome work @nicolasbrugneaux :)

Thanks! I'd be open to help on more projects if you have space for me 😅

Definitely! Happy to mentor you. Just let me know what interest you ;)

That'd be awesome :tada:
I like lots of things :) I mostly do JS for work but we don't do any open-source yet (finger-crossed) and as I'm still very new in this profession that'd be def. a good plus for me to participate in the community and help some packages :)
I tried to tackle some hoodie issues, but like lots of open-source libraries, it's difficult to just jump in a fix things^^

I'll try to find some specific issues when I get some time, but for now. These are the issues I could use some help on triaging, fixing, thoughts on, etc:
https://github.com/search?utf8=✓&q=is%3Aopen+is%3Aissue+user%3Asindresorhus+-repo%3Asindresorhus%2Ftodo+-repo%3Asindresorhus%2Fguides+-repo%3Asindresorhus%2Fama+-repo%3Asindresorhus%2Fmodule-requests+-repo%3Asindresorhus%2Fawesome+-repo%3Asindresorhus%2Fawesome-nodejs+-repo%3Asindresorhus%2Fawesome-electron+-repo%3Asindresorhus%2Fgulp-mocha+-repo%3Asindresorhus%2Fgulp-jasmine+-repo%3Asindresorhus%2Fquick-look-plugins&type=Issues&ref=searchresults
Happy to answer any questions or discuss on Hangouts text chat (my email is in my profile).


Bug: Link copied message for invalid url as well #41

#41 Link copied message for invalid url as well
Here is the video displaying fix -
screen-capture.webm
I used the style property display: none for invalid input values and set it to auto (or blank i.e. urlAlert.style.display = ' ') for normal functioning when valid url

@SameepAher Thank you for the PR.
I prefer we will do it with javascript instead of the css.
With your method the alert the still called (display none).
How about store a state in the js file? It's just an idea.
I'm sure there is a better way from my suggestion.

@origranot Its already been done in the index.js file, which can be seen in my commit.


deps: Update ping command for Internal Sharding

Description of the PR
What the title says, Client#{ping,pings} was moved to WebSocketManager#ping
Changes Proposed in this Pull Request (List new items in CHANGELOG.MD)

Updated klasa for IS

Semver Classification

[ ] This PR only includes documentation or non-code changes.
[x] This PR fixes a bug and does not change the (intended) framework interface.
[ ] This PR adds methods or properties to the framework interface.
[ ] This PR removes or renames methods or properties in the framework interface.

More needs to be done to be compatible with d.js's internal sharding.
client.shard.id can be an array now:
shardID portions of the log, should be moved to commandLogging (since all bots will have message.guild ? message.guild.shardID : 0); meaning client can be removed from KlasaConsole. Else the shard id may show a list of shard ids.
All broadcast evals need to be re-evaluated as comparing this.shard.id === ${this.client.shard.id} will be eranious when the client.shard.id is an array.


arangoimp not able to take file parameter with space; even when quoted

It seems like arangoimp is not able to take in space in the file parameter even though it is quoted.
ArangoDB 2.8.3; on OSX; started using the ArangoDB UI
Example:
leow$ arangoimp --collection=example --server.database=myapp --file="./DR-30112015/Waktu Mesyuarat dan Urusan Dibebaskan Daripada Peraturan Mesyuarat/speakers.json"

Output:
Connected to ArangoDB 'tcp://<IP_ADDRESS>:8000', version 2.8.3, database: 'myapp', username: 'root'
----------------------------------------
database:         myapp
collection:       example
create:           no
file:             ./DR-30112015/Waktu
type:             json
connect timeout:  5
request timeout:  1200
----------------------------------------
Cannot open file './DR-30112015/Waktu'. File not found.

We tried it with the same filename and it worked fine on Linux and MacOS X here.
As the filename is truncated to ./DR-30112015/Waktu in your case, it seems like the file name argument contains a null byte (ASCII NUL, character code 0) somewhere. This would explain truncation. NUL bytes are normally not printed, so it's not apparent if the filename argument contains one or not.
Can you try with another filename/directory name that contains spaces but no NUL bytes, e.g.
mkdir -p "test directory/test sub directory"
echo "{}" > "test directory/test sub directory/test file.json"
arangoimp --file "test directory/test sub directory/test file.json" --collection test --create-collection true

If this works, then this would support the theory that somehow the filename argument in your case contained some non-printable characters.

@jsteemann Unfortunately did not seem to work; I manually copied over a JSON file to a file with filename containing space but seem to have same problem.  I am still on OSX Mavericks if that matters.
Create file:
leow$ cp -a /tmp/bob.json "/tmp/bob is bool.json"

leow$ ls /tmp/bob*
/tmp/bob is bool.json	/tmp/bob.json

When run:
leow$ arangoimp --collection=transcript --create-collection=true --server.database=myapp --file="/tmp/bob is bool.json"
Connected to ArangoDB 'tcp://<IP_ADDRESS>:8000', version 2.8.3, database: 'myapp', username: 'root'
----------------------------------------
database:         myapp
collection:       transcript
create:           yes
file:             /tmp/bob
type:             json
connect timeout:  5
request timeout:  1200
----------------------------------------
Cannot open file '/tmp/bob'. File not found.

@leowmjw @jsteemann can you check your IFS? echo "$IFS" | cat -vte

echo "$IFS" | cat -vte

 ^I$
$

My IFS:
leow$ echo "$IFS" | cat -vte
 ^I$
$

I tested it by myself:
devel@bb8f603d7f1c89ba10839234c940788f4c78f3fa:
./arangoimp --collection example --file="abc def"
Please specify a password:
Connected to ArangoDB 'tcp://<IP_ADDRESS>:8529', version 2.8.4, database: '_system', username: 'root'
----------------------------------------
database:         _system
collection:       example
create:           no
file:             abc def
type:             json
connect timeout:  5
request timeout:  1200
----------------------------------------
2016-03-13T05:03:51Z [94755] FATAL Cannot open file 'abc def'. File not found.

2.8.4
/Applications/ArangoDB.app/Contents/Resources/bin/arangoimp --collection example --file="abc def"
Connected to ArangoDB 'tcp://<IP_ADDRESS>:8529', version 2.8.4, database: '_system', username: 'root'
----------------------------------------
database:         _system
collection:       example
create:           no
file:             abc
type:             json
connect timeout:  5
request timeout:  1200
----------------------------------------
Cannot open file 'abc'. File not found.

more interesting, local compiled v2.8.4:
./arangoimp --collection example --file="abc def"
Please specify a password:
Connected to ArangoDB 'tcp://<IP_ADDRESS>:8529', version 2.8.4, database: '_system', username: 'root'
----------------------------------------
database:         _system
collection:       example
create:           no
file:             abc def
type:             json
connect timeout:  5
request timeout:  1200
----------------------------------------
Cannot open file 'abc def'. File not found.

I checked the OS X Apps:
CLI-App:
/Volumes/ArangoDB-CLI-2.8.5-Darwin/ArangoDB-CLI.app/Contents/MacOS/opt/arangodb/bin/arangoimp --collection example --file="abc def"
Please specify a password:
Connected to ArangoDB 'tcp://<IP_ADDRESS>:8529', version 2.8.4, database: '_system', username: 'root'
----------------------------------------
database:         _system
collection:       example
create:           no
file:             abc def
type:             json
connect timeout:  5
request timeout:  1200
----------------------------------------
Cannot open file 'abc def'. File not found.

# GUI-App
/Volumes/ArangoDB/ArangoDB.app/Contents/Resources/bin/arangoimp --collection example --file="abc def"
Connected to ArangoDB 'tcp://<IP_ADDRESS>:8529', version 2.8.4, database: '_system', username: 'root'
----------------------------------------
database:         _system
collection:       example
create:           no
file:             abc
type:             json
connect timeout:  5
request timeout:  1200
----------------------------------------
Cannot open file 'abc'. File not found.

Conclusion: the OS X GUI-App cant handle whitespace in fs paths.

@baslr : interesting. I think I wouldn't have figured it out myself.

since this seems to be an issue with the infrastucture of MacOS X, is there anything else we can do about this than documenting it? Else I'd like to close this now.

Are there any differences in the cli and gui app (source / compiling)?

@dothebart Yeah, I think the issue should be kept opened until both CLI and GUI are compiled the same way. You don't want users who develop using the GUI facing unexpected problems when it comes to production deployment. For an officially supported platform, that would be the least expected, this should be labeled a bug under OSX, probably should test for Windows too.

@baslr what do you reference as GUI and which as CLI app? Are both built via homebrew?

@dothebart Just for completeness; the ArangoDB CLI + App I use are the official DMG from ArangoDB site.

@dothebart I checked the apps from https://www.arangodb.com/download/

Ok, App uses clang via cmake/xcodebuild while CLI uses clang via cmake/make

It's not an issue with command-line parsing.
The issue is caused by the parameters to the executables in the Mac app version being wrapped in an extra shell script, which passes parameters with $* instead of<EMAIL_ADDRESS>This will be fixed in the next 2.8 release.

fixed with the availability of 2.8.9 since 2016-05-13.


Assignment should use Unicode "colon equals"

The "colon equals" symbol ≔ should be used, instead of the boring old :=. More information about this symbol is available at Wolfram Alpha.
The following things should be done:

Add ≔ as an alternative to := in the grammar.
Add the new sign to the autoedit strategy.
Use the new symbol in AstNodeToStringHelper

OK, now that I think about it, I agree: It looks like crap in most glyph sets.
We should leave it in as an alternative in the grammar though.


App freezes on blank screen after upgrading to iOS 8.3

After upgrading my iPhone 6 to iOS 8.3, when I open my kivy app, the app opens and freezes on a blank screen. If I tap a part of the blank screen where a button should be (if the app were to have launched correctly,) the app changes to the correct, next screen. I've tested this on other iPhones with iOS 8.3 and with iPhones running older versions of iOS, and it only happens on the iPhones with iOS 8.3. This is with Kivy 1.8.
Here's the output from iOS Console:
Apr 10 16:18:06 My-iPhone locationd[61] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0 Apr 10 16:18:06 My-iPhone wifid[37] <Notice>: WiFi:[450393486.328501]: BG Application: Not Present, BG Daemon: Present. Daemons: networkd apsd UserEventAgent Apr 10 16:18:07 My-iPhone locationd[61] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0 Apr 10 16:18:08 My-iPhone CLTM[20] <Error>: CLTM: _subscription 0x0, _subscribedChannels 0x0

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10882968-app-freezes-on-blank-screen-after-upgrading-to-ios-8-3?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).

Please test if you have the same issue with 1.9.0.

Just tested with kivy 1.9.0, and it is not an issue there. However, I cannot currently use 1.9 because I require libssl and libcrypto support, which are not yet supported with the newest kivy-ios toolchain, so for now I am stuck using a previously built toolchain with only kivy 1.8.


YAML restructure.

Implements #15 and #25.
To facilitate allowing multiple handlers of the same kind and specifying which storage provider and notifier to use, configuration is now done entirely in YAML. (:disappointed_relieved: rip connstrings)

a fairly involved configuration now looks like this
databases:
  postgres:  # Database type
    main_postgres:  # Database identifier
      # Configuration (see below for further information on specific databases)
      username: username
      password: password
      host: host
      port: port

      # Optionally specify storage and notifiers to use
      # You can specify them by type or identifier
      # Use a string for a single specifier, a list for multiple specifiers
      storage_providers:
        - s3
        - secondary_dropbox
      notifiers: slack

  redis:
    main_redis:
      password: password
      host: host
      port: port
      # No specified storage and notifiers, so all storage and notifiers are used

storage:
  s3:  # Storage type
    main_s3:  # Storage identifier
      bucket: bucket
      endpoint: s3.endpoint.com
    secondary_s3:
      bucket: bucket
      endpoint: s3.another_endpoint.com
  dropbox:
    main_dropbox:
      access_token: XXXXXXXXXXX
    secondary_dropbox:
      access_token: XXXXXXXXXXX

notifiers:
  discord:  # Notifier type
    main_discord:  # Notifier identifier
      webhook:  https://discord.com/api/webhooks/XXXXXXXXX/XXXXXXXXXXXXXXXXXX
  slack:
    main_slack:
      webhook:  https://hooks.slack.com/services/XXXXXXXXXXX/XXXXXXXXXXX/XXXXXXXXXXXXXXXXXXX

retention_days: 7

Extensive testing required, I amended existing handler tests to the new implementation, but there are currently insufficient integration tests and configuration tests.
In the future it might also be good to make some README sections collapsible or move them to the wiki, if more handlers are added.
Open to refactoring and help with tests.

ps
sorry for fat pr

There is a failing test, though. Should we fix that maybe?

Is the failing test related to #36?

This should be good to go.


🏷 fix: Address Statefulness Issues for Bookmarks

Summary
I addressed statefulness issues between the client and server when performing CRUD operations for bookmarks and tags. I also handled statefulness within the client for filtering and sorting methods as well as displaying the correct tags for a conversation.

Fixed the position order rendering in BookmarkTable when a new tag is created.
Reverted back drag-and-drop mutation functionality in BookmarkTableRow to update the tag's position on drop.
Removed deprecated usage of the global conversation object and replaced it with a more modular approach using hooks.

useUpdateTagsInConvo and useBookmarkSuccess

Updated BookmarkMenu and BookmarkMenuItems to use theming and constants for better maintainability.
Refactored ConversationTag model methods for optimized database operations and added error handling in the API routes.
Moved tags query from the data-provider package to the client workspace.
added try/catch + JSDocs to all route controller methods
added JSDocs to all model methods

Change Type

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Refactor (non-breaking change which improves existing code)
[x] Documentation update

Testing
I performed the following testing steps to ensure the changes are effective:
Test Configuration:

Environment: Development
Browsers: Chrome, Firefox

Verified that bookmarks and tags are rendered correctly in the BookmarkTable.
Tested dragging and dropping tags to ensure the position updates accordingly.
Checked that adding, updating, and deleting tags work as expected and reflect on both client and server.
Confirmed that the BookmarkMenu displays the correct tags for a conversation and updates correctly when tags are added or removed.
Ensured that API routes for tags are handling errors gracefully and returning appropriate responses.

Checklist

[x] My code adheres to this project's style guidelines
[x] I have performed a self-review of my own code
[x] I have commented in any complex areas of my code
[x] I have made pertinent documentation changes
[x] My changes do not introduce new warnings
[x] I have written tests demonstrating that my changes are effective or that my feature works
[x] Local unit tests pass with my changes

testing addToConversation functionality

@ohneda some remaining issues here and maybe you will spot more, but this is good enough for release

forking, importing conversations, should we also include tags? that is the current behavior. not bad but does not update the count (should be easy fix).
Position updates in the bookmarks panel, maybe i didn't revert everything back as it was, but may still be persistent issue that positions (at least client-side) won't update correctly after dragging/dropping.
Related to previous, there is funny behavior with "Saved" so I removed its sorting to the top but still seems a bit odd. We should decide whether to allow moving this at all if the position is going to be fixed

@danny-avila Thanks! Yes, I think it's good enough for release.

Personally, I think it is convenient to add tags to them.
I struggled with implementing the drag-and-drop positioning before, so I might be able to fix it. I'll take a look when I have time.
Since "Saved" is the default bookmark, I think it would be better not to allow managing it to avoid handling unnecessary scenarios. However, using the current version, it seems there aren't any issues. Let's use it for a while, and if any problems arise, we'll address them then.


[tool_crash] FileSystemException: Cannot delete file, OS Error: The process cannot access the file because it is being used by another process., errno = 32

Command
flutter doctor --android-licenses

Steps to Reproduce

...
...
...

Logs
FileSystemException: Cannot delete file, OS Error: The process cannot access the file because it is being used by another process.
, errno = 32
#0      _File.throwIfError (dart:io/file_impl.dart:635:7)
#1      _File._deleteSync (dart:io/file_impl.dart:298:5)
#2      FileSystemEntity.deleteSync (dart:io/file_system_entity.dart:455:47)
#3      ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:72:16)
#4      ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:72:16)
#5      GradleWrapper.updateInner.<anonymous closure> (package:flutter_tools/src/cache.dart:1045:70)
#6      _rootRunUnary (dart:async/zone.dart:1198:47)
#7      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#8      _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#9      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#10     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#11     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#12     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#13     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#14     ArtifactUpdater._downloadArchive (package:flutter_tools/src/cache.dart)
#15     _rootRunUnary (dart:async/zone.dart:1198:47)
#16     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#17     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#18     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#19     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#20     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
#22     _rootRun (dart:async/zone.dart:1190:13)
#23     _CustomZone.run (dart:async/zone.dart:1093:19)
#24     _CustomZone.runGuarded (dart:async/zone.dart:997:7)

[✓] Flutter (Channel stable, 1.22.3, on Microsoft Windows [Version 10.0.19041.610], locale en-IN)
    • Flutter version 1.22.3 at C:\flutter
    • Framework revision 8874f21e79 (12 days ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.3

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\Paramjeet saini\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[!] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

Flutter Application Metadata
No pubspec in working directory.

Hi @Paramsaini
This is a duplicate of #69109 and a recent fix (PR #69115) has landed on master channel.
Can you please try on master?

@Paramsaini
This issue was fixed and merged. Please switch to latest master and try again to see if it works for you.
Closing this as fixed. If you disagree or still seeing the same issue on latest master, write in comments and I'll reopen it.
Thanks.


Change the abbr command

As reported by @Karnaj, it is not possible to use a special character into glossaries. We therefore need a command which allow to provide a custom key.
\documentclass{article}
\usepackage{glossaries}
 \newcommand{\abbr}[2]{\newglossaryentry{AT(et)BC}{name=#1, description={#2}}\gls{AT(et)BC}}

 \begin{document}
    \abbr{AT\&BC}{CC}
    \printglossaries
\end{document}

... To avoid breaking everything, we may need to provide a new command, then tell the guys on the zmarkdown side to use it instead :)

... I propose that:
\documentclass{article}
\usepackage{glossaries}
\usepackage{etoolbox}
\usepackage{xparse}
\NewDocumentCommand\abbr{mO{}m}{\newglossaryentry{\IfNoValueTF{#2}{#1}{#2}}{name=#1, description={#3}}\gls{\IfNoValueTF{#2}{#1}{#2}}}
\makeglossaries
\begin{document}
\abbr{AT\&C}[atec]{American Telgraph and telephon}
\printglossaries
\end{document}


Help formatting Free Software Magazine

I am the owner of Free Software Magazine. We had a huge server crash. I am 99.9% finished eradicating the article database from the ancient Drupal system, and have converted everything to a static file. (http://www.freesoftwaremagazine.com -- it's not styled yet... the priority right now is getting the data back up!)
The problem I have is that I have Markdown like this:
What about Android?

But Tony, didn't you love Ubuntu?

Yes, I still **absolutely** love Ubuntu;
* One
* Two
* Three

Blah blah

I need remark to:

Leave the HTML as it is (this is already happening)
Actually format the contents of the DIV (this is not happening)

At the moment, I am doing:
var MarkdownIt = require('markdown-it');
...
md = new MarkdownIt({
  html: true
});
fileData.contents = md.render( fileData.contents
....

With the PHP version of Markdown, I could add something the the HTML:

And the contents would be interpreted. Is there any way I could do that here?
Thank you!

Sorry I went back to the issue list and noticed that it wasn't there. So, I assumed I had forgotten to save it!


Test the performance difference between RPN and naive recursion

Currently coprocessor expression is executed recursively, which can be expensive. Maybe we need to test how it performs when expression is expanded in a loop. We can translate the expression tree into an RPN, and than maintain a vector as its stack. The vector can be reused across all the rows.

We are definitely using RPN now.
Additionally, here is a benchmark: https://gist.github.com/breeswish/6c98e7a41940547a93fa674a04557fbe


Ensuring consistent CompositeDisposable invariant

This pull request enforces that null values can not be added to the CompositeDisposable type via the constructors. Closes issue #73

Cool. We should go through other collections as well and add a "ContractUtils" style helper for checking these (cf. the approach in System.Linq.Expressions). We'll get this into a future release.


document scoring in memory optimizations

Currently we use a std::vector<double> the size of num_docs to hold scores for documents being scored. While this is fine in general, large corpora (say with >100M documents) may take up too much memory.
We should investigate conditionally using std::unordered_map<doc_id, double> to hold scores for documents that actually have scores, unlike the current version which allocates memory for all documents even if they have no matching terms.

So I was thinking about this earlier, and I think we can do something cute here.
There are basically two different approaches for doing the ranking when we get a query. One is "term-by-term" and one is "document-by-document".
In the "term-by-term" case, you fetch the postings list for a specific query term and then iterate through this postings list adding the scores to the appropriate accumulators. At the end, you extract the k-best list from the accumulators (either by sorting or being more clever). This is the method we currently use.
In the "document-by-document" case, you fetch all the postings lists for all of the query terms first, and keep these around. Then, you iterate over all the document ids and, for each one, you iterate in parallel across all of the fetched postings lists to score an entire document at once---you can do this efficiently by just keeping an index into each postings list since they should be in sorted order by document id. When you're done scoring a document, put it into a binary min-heap and ensure that the heap never has more than k documents in it. After you've iterated over all of the documents, simply output the top-k list by sorting the heap.
This second case has the nice property that it's easy to add a hook to the rankers for a document-specific "bias" score (or the "prior" probability of a document if you're thinking of the language model rankers): just set your initial score to that callback right when you start scoring that document.
The downside is that we have to hold all of the postings lists in memory for the duration of the ranking. Something tells me, though, that for most reasonable queries this would give a pretty nice trade-off. It should also be pretty fast (no hash table accesses). What do you think?

Oh, that's an interesting idea. I think in general that would work for the search engine component and have those nice properties you mentioned, but it might break down in something like k-NN, where our query is a (potentially) very large document. Obviously, the most common use case is the search engine. Maybe we could draft this and see how bad (if at all k-NN is).
Is this just an idea from random discussion or is this based on some paper/textbook?

I forget my exact reference, but the Stanford IR book mentions this: http://nlp.stanford.edu/IR-book/ (section 6.3.3).

Also relevant: http://www.savar.se/media/1181/space_optimizations_for_total_ranking.pdf
(Doug Cutting is the original author of Lucene.)
The main difference in architecture for us is that we load in the whole postings list at once, rather than streaming it in... So I think this way could potentially run us out of memory, like you mentioned.

If we separate out the concerns of scoring from ranking, we could have a ranker for each strategy and switch between them as needed.

Fixed with PR #83.


timeAssociations is NSMutableArray, should be copied or make atomic.

timeAssociations is NSMutableArray, should be copied or make atomic.
Otherwise will cause :
*** Collection <__NSArrayM: 0x157813f20> was mutated while being enumerated.
Thread : Fatal Exception: NSGenericException
0  CoreFoundation                 0x184655900 __exceptionPreprocess
1  libobjc.A.dylib                0x183cc3f80 objc_exception_throw
2  CoreFoundation                 0x184655334 -[NSException name]
3  Musical.ly                     0x1010801d8 -[NHNetworkClock finishAssociations] (NHNetworkClock.m:193)
4  Musical.ly                     0x10107f270 -[NHNetworkClock reset] (NHNetworkClock.m:55)
5  Musical.ly                     0x10108034c -[NHNetworkClock syncWithComplete:] (NHNetworkClock.m:203)

Merged your pull request
Thank you


Provide a way to give the initial date

It would be nice to have a property to give the initial date like the official flutter Date Picker, that way we can provide the range of the calendar and choose which week will be shown first.

We can actually do that by giving the field selectedDate, it will work in multi select as well


[Feature Request] Ability to download different scanlation groups

Some chapters have a different scanlation groups, is it possible to download all? Thanks!

Yeah, but it's not implemented yet. I will try to add this feature, thanks for the suggestion !

Feature added in https://github.com/mansuf/mangadex-downloader/commit/e116794fc4b220da85d2aafee1d439eb2ef7ab5b


Remove useless utility functions from path_parsing

blendPoints and reflectedPoint both take and return a private type _PathOffset.
These should be made private in the next release.

Isn't this a duplicate of https://github.com/flutter/flutter/issues/157940?

Isn't this a duplicate of #157940?

I guess 🤷 didn't go searching before I filed. Good find!


Linguist should understand JSX in .js files

Search for .js / Search for .jsx
Search for .js with "return
" (the < characters are ignored, but you can see that many people uses JSX in .js files by opening a few pages).
Please, let me know what I can do to help getting this PR merged at some point.
Refs #3144

Do you want the JSX portions of .js files to be included in statistics, or are you trying to fix the syntax highlighting?
If you're trying to recognize the JSX portions, that is not currently supported by Linguist and would require major changes. Currently, Linguist assigns a single language per file.
If you want to fix the syntax highlighting, then you should submit a pull request to atom/language-javascript, which github.com uses to highlight JavaScript code.

Uh, there's nothing wrong with the syntax highlighting. At all.
JSX is not JavaScript.

Hm, I read this a bit too quickly :/
@buzinas So you're point is that many JSX files have a .js extension and we should therefore try to recognize this extension for JSX?

JSX is not JavaScript.

@Alhadis JSX is not JavaScript, agreed - but millions of people write JSX using the .js extension

So you're point is that many JSX files have a .js extension and we should therefore try to recognize this extension for JSX?

@pchaigno yeah, exactly that!

Should we add a heuristic to distinguish JS and JSX files? I'm afraid the classifier alone might not do a very good job.

@pchaigno yeah, that sounds reasonable.
Can you help me by giving the directions on how to do that?

You can follow the examples in heuristics.rb. You'll also need to add a test for that new heuristic in test_heuristics.rb.
The heuristic itself doesn't need to be perfect. It should be correct when it identifies a file as being JSX (or JS), but it doesn't need to identify all JSX (or JS) files.

Just a friendly nudge.

Can anyone jump in and help me with adding the heuristic? I'm having a hard time figuring out how to identify if a file is JSX or JS.

I don't know anything about JSX but I'm pretty good at pattern matching 😉. From a cursory glance at https://reactjs.org/docs/jsx-in-depth.html and files already on GitHub, it appears JSX files will almost always include React somewhere in them. Either in the form of something like React.createElement or import React from 'react'; or React = require('react'), though this last form does bring up a lot of files with just that in them, which is perfectly valid javascript and not really JSX from my understanding, so is not really a good indicator of JSX content.
I've also noticed that some form of render .... return <[htmltaghere]> or similar statement occurs in the JSX files I've found so that may be a better multiline string to match for in a regex.

My two cents: in a JavaScript file, you could consider JSX anywhere you find a <tag …/> or <tag …>…</tag> that otherwise could be invalid JavaScript syntax (i.e. SyntaxError: Unexpected token '<').
For example in JavaScript const hello =
Hello, world!
; would be invalid, but it’s perfectly valid JSX.
I think it’s virtually impossible to determine JSX based on it’s location (whether inside a component's render() function, in a stateless function, in a variable assignment, or something like ReactDOM.render(
Hello, world!
, document.getElementById('root'));, etc.); instead JSX, as being a syntax extension to JavaScript, it could be detected/treated as such.

@exalted that's what I was trying, but the problem is: there can be a <tag> inside a string, and it would be a false positive, since it's a perfectly valid JavaScript.

Maybe it's worth looking at how JSX is detected to be then converted into regular JavaScript in tools like babel?

@buzinas I don’t think you can look for <tag> in a JS file and call it a day.

That's another thing that I tried, but since Babel parses the JavaScript code as an AST, that would be too complex for a heuristic.

I am not sure what do you mean by heuristic in this context, however I don’t think a RegEx approach suffice, sadly.
I haven‘t worked with linguist, so I shouldn’t judge but, if an AST is not a viable option here, I think what we have left with is to take a best guess approach. I am sure that doesn't hold for long though and you’d have to add many edge cases to guess better and better…

Jumping in here.
I believe Linguist can already syntax JSX files correctly with no problems, as you know, everything inside a JSX files is valid JavaScript, except for the HTML-like tags, so... would it be too crazy of an idea to use the already working JSX grammar to parse JS files by default instead and call it a day? I think it would have no actual implications, correct me on this?
In fact, this is what a lot of devs are doing manually now like @zacanger just stated, not only for Linguist, but for Atom too (see https://discuss.atom.io/t/how-do-i-make-atom-recognize-a-file-with-extension-x-as-language-y/26539?u=wliu).
By the way, I'm coming from here: https://github.com/atom/language-javascript/issues/220#issuecomment-360553820, in which I made a similar argument, just in case anyone wants to check that out.

would it be too crazy of an idea to use the already working JSX grammar to parse JS files by default instead and call it a day?

I don't think so, there is however one teeeeny weeeny heeeawg fat problem... https://github.com/github/linguist/issues/3044
In short, the version of language-babel we currently use is pinned to a really old version with a known issue because the maintainer changed some of the regexes in the grammar to those only supported by the Oniguruma engine used in Atom, but not GitHub.com, and isn't prepared to entertain GitHub.com compatibility because "It works in atom..."
If you know of a method of automatically converting the Oniguruma-only regexes to be PCRE-friendly or know another PCRE-friendly grammar that is actively maintained (we looked into switching to https://github.com/babel/babel-sublime but found it lacking - see https://github.com/github/linguist/issues/3775) we'll definitely entertain the solution to our current problem so we can consider your suggestion.

I think we can all agree that it's at least common, if not standard, for projects to have jsx code in .js files. Every code editor that supports JSX, supports this just fine. What's the downside of adding JSX support for .js files?
One reason why projects haven't adopted .jsx is due to the fact that codebases often have a mix of source code files, some with JSX, some not. It's a pain to have to change the file's extension when JSX happens to be added to an existing source file. Plus, it complicates scripts to have glob/regexes that match both .js and .jsx (I do realize the irony here).
Can we plz merge this for the benefit of people that love both JSX and Github? Arguing over whether .jsx or .js is more popular, and how to measure it, is pure bike-shedding.

@Alhadis mentioned in #4030 (Comment) that he's working on such a JS/JSX grammar, but that's obviously a huge task and I don't know if he found time to make progress.

Not just a huge task, but slow as well. Much of this has to do with the fact that Atom doesn't live reload grammars as they're being worked on, reducing me to reloading the entire workspace to see changes. This cumbersome workflow, in addition to the predicted complexity of the grammar code, has motivated me to start work on a compiler for an intermediate grammar format optimised for reading/writing regexp-based grammars.
The long-term goal is to have a maintainable format which can be kept updated by the Babel maintainers, the TC39 committee, or whoever else is guaranteed to keep it updated. The compiler won't be limited to TextMate-style grammars alone, meaning it'll generate output for CodeMirror and Pygments as well.
If I were to continue the way I started, with frequent repetition of CSON blocks and hacky idioms, I 100% guarantee the grammar would become unmaintainable in future.

For what it's worth, Facebook (more specifically, Dan Abramov) decrees that the .jsx extension is no longer relevant since the pre-Babel days. His reasoning is pretty solid.
https://github.com/facebook/create-react-app/issues/87#issuecomment-234627904
This should happen as .js files with JSX are currently monotone, of course. Having the JSX statistic would also be nice, but honestly since Javascript is an amalgamation of bizarre syntax features and proposals and whatnot, the statistics become a bit less important in my opinion.

I'm not sure why we're even bothering to differentiate between JS and JSX anymore, actually. Since it falls under the usage statistics of the former, we may as well roll it into the JavaScript entry and spare ourselves the hassle over semantics.
Since JSX is a superset of JavaScript, it should be possible for one grammar to accommodate both JS and sugary extensions like embedded XML and type annotations. Moreover, Linguist has no way of knowing if something like this is a JS or JSX file:
export const foo = "Valid ES6";

So in a large codebase, many files are likely to be flagged as ordinary JS because they don't use tag syntax, meaning users end up with a jarring classification like "20% JavaScript, 80% JSX" or what-have-you. And Linguist has no way of identifying files based on the presence of another language in the repository (which would be helpful, as it would vastly improve its interpretation of C++/C).

Self-assigning this to shut Stalebot up. 👍 See #4358

Thank you @alhadis :)

This is now resolved by moving to using the treesitter JavaScript grammar GitHub uses in https://github.com/github/linguist/pull/5133. GitHub.com will reflect this after the next release due some time this month.
Closing.

This is now resolved by moving to using the treesitter JavaScript grammar GitHub uses in https://github.com/github/linguist/pull/5133. GitHub.com will reflect this after the next release due some time this month.
Closing.


Making so_import broken due to issue with SO URIs

Header of the SO file (excerpt)
     xmlns:so-xp="http://purl.obolibrary.org/obo/so-xp.obo#">
    <owl:Ontology rdf:about="http://purl.obolibrary.org/obo/so-xp.obo.owl">
        <owl:versionIRI rdf:resource="http://purl.obolibrary.org/obo/so-xp.obo/so-xp/releases/2015-11-24/so-xp.owl/so-xp.obo.owl"/>

The so-xp based URIs create an issue for our import of SO terms.

I have a PR open with SO: https://github.com/The-Sequence-Ontology/SO-Ontologies/pull/377
In meantime to fix the release pipeline we have to undo the change to the Makefile that adds SO

No problem - this is not an emergency. Can you update the Makefile?

Removed the SO import from Makefile to allow release to go through as per #12777

Is this going to effect inferences using SO?  We have quite a lot of those.

This only deactivates import of new SO terms, shouldn't affect existing ones. (This is the Makefile in the extensions directory)
SO ticket/PR at https://github.com/The-Sequence-Ontology/SO-Ontologies/pull/377
Release is running right now, see http://build.berkeleybop.org/job/release-go/132/

OK.  Just checking.

If you have a specific example in mind, would you mind having a look once the release is done?

Discussed at editors call 2016-11-17
AI: Melanie to email Karen

I have added the SO import in the Makefile, http://viewvc.geneontology.org/viewvc/GO-SVN/trunk/ontology/extensions/Makefile?r1=37060&r2=37068
Let's see if the release makes it through. If it does:

[ ] address ticket https://github.com/geneontology/go-ontology/issues/12533
[ ] remove SO import from Makefile again until stable solution found

issue with SO versionIRI: https://github.com/The-Sequence-Ontology/SO-Ontologies/issues/387
Trying to add the SO import to the Makefile nonetheless.

SO import made it through:
[Term]
id: SO:0002140
name: early_origin_of_replication
is_a: SO:0000296 ! origin_of_replication
[Term]
id: SO:0002141
name: late_origin_of_replication
is_a: SO:0000296 ! origin_of_replication
Closing this ticket in favour of #12533


Add recursion support to /1.0/containers

Similar to /1.0/images, implement support for querying all the containers at once.

I'm working on this one, will hopefully send a PR tomorrow.

Great, thanks!

Hi Matt, I was working on this, and forgot to comment here. If you don't mind, you can take up any other recursion implementation. Sorry for the trouble.

Hi @nmathew - mine is basically working & done. It just needs a tidy up and a PR.


Add optional field to keep pvc after cluster been deleted

closes/fixes https://github.com/bitpoke/mysql-operator/issues/892

[x] I've made sure the CHANGELOG.md will remain up-to-date after this PR is merged.

PTAL @cndoit18

ready to merge plz @cndoit18

when will it be released

when will it be released

hard to say, you can packge on yourself.

I see that docker.io already supports bitpoke/mysql-operator:v0.6.3
version of the mirror. I don’t know if this version of the image fixes this bug.

I don’t know if this version of the image fixes this bug.

No, v0.6.3 only contains these commit https://github.com/bitpoke/mysql-operator/commits/v0.6.3

I don’t know if this version of the image fixes this bug.

No, v0.6.3 only contains these commit https://github.com/bitpoke/mysql-operator/commits/v0.6.3

What about version 0.7.0-amd64?

https://hub.docker.com/layers/bitpoke/mysql-operator-orchestrator/0.7.0-amd64/images/sha256-724546e6c7a788a65c9d420e671087036e36c7fbe31d6b0f9b33c930839427b0?context=explore

What about version 0.7.0-amd64?

maybe not, it pushed 5 months ago

I didn't build successfully. Can you help me build this image?

you could post an issue, asking the community for help.

WARN[0000] No output specified for docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
When I executed the make command, the built image was not found. The prompt does not specify the -t parameter. How should I execute the command and build the image?

@drivebyer I want to seek your answer

I added keepAfterDelete to both mysql-cluster and crd files.

But when I start the mysql-operator cluster, I get an error

@drivebyer

try 'keepAfterDelete', not KeepAfterDelete @Littlehhao

Thank you very much, I made it

Do you know how to build the arm64 package?
@drivebyer