text:
Joining relationship properties with nested model

Hello there, love the package, especially model composition is great feature. I would like to ask if it is possible to include relationship properties in nested model properties.
Let's say  we have node bar and it has many beers, multiple bars might serve the same beer, but the price might be different in different bars so it comes logical to put price property into a relationship between beer and bar, but once you read the composed model of bar, you have already chosen bar, which includes many beers and including the price property from the relationship in nested beer model would help a lot.
Thank you! Viktor F.
{
  "id": 1
  "beers": [
    {
      "id": 2,
      "brand": "Great Beer",
      "price": "0.99" //Relationship property
    },
    {
      "id": 3,
      "brand": "Even Greater Beer",
      "price": "1.19" //Relationship property
    }
  ]
}

Is there anyone working on this ? I'd like to try implement this feature.

Go for it!

@IcanDivideBy0 :+1:

I think the object model proposed by @optimista might be a bit confusing about what's in the related model and what's in the relation. Also there's no good place to store the relation ID, which might be useful for future features (such as update a relation properties, ...).
What do you think about the following structure ?
{
  id: 1,
  beers: [{
    id: 2,
    brand: "Great Beer",
    _rel: { price: "0.99", ... } // relationship properties
  }, {
    id: 3,
    brand: "Even Greater Beer",
    _rel: { price: "1.19", ... } // relationship properties
  }]
}

Of course the _rel property name is totally arbitrary, but gives a good overview of what it represents.
It might be closer to what ORM generally offers and also avoid property collision ever an object and a relation pointing to it.

authors: IcanDivideBy0 highfivedenis jonpacker optimista

repo: brikteknologier/seraph-model


text:
fix: types export

Fix #13

To be tested

source: gharchive/pull-request

repo: brillout/json-serializer

license: MIT

license_type: permissive

license_source: github-api


text:
Make tangent normalization more robust

Tangent normalization consists of projecting a case sample onto the reduced PoN (to get the coverage signal in the absence of CNVs) and subtracting off this projection.  One small glitch of this is that this projection represents a compromise between targets without CNVs and targets with CNVs.  If duplications and deletions are balanced this doesn't pose much of a problem, but if there is an imbalance due to large events the projection will contain a significant amount of CNV signal.  Thus, for example, if there is a large deletion the projection will try to match this deletion and the resulting tangent normalized signal will show lines of low-level amplification.  This problem will become more severe when we try to model purity, ploidy, and subclonality.
The problem arises because projection minimizes the L2 error -- the sum of squared errors between the projection and the hyperplane defined by the reduced PoN.  Since this error is convex it penalizes large errors disproportionately.  That is, it will try to hard to make the projection match any CNVs present.  This is the opposite of what we want!  A concave error , such as L_1/2 would try to minimize small errors, thereby yielding a "projection" that weighs non-CNV targets most heavily.
Such a minimization objective is hard to handle, but here's a simple idea to handle it without difficulty.  First, project as usual to get a vector v.  We know that unbalanced CNVs skew the signal by giving an incorrect relative depth for non-CNV sites, so we expect that the correct projection is v times a scalar constant x.  Thus we only really have to do a 1-D brute force minimization of the L_1/2 error with respect to x.  After that tangent normalization would consist of subtracting x*v.

Actually, an L_1/2 error is silly because the derivative of the square root is infinite at zero so you'll get stuck in local minima.  Something differentiable and sublinear, like tanh or a sigmoid, is a better idea.

Now that we can get the per-target variances from the PoN, a simpler approach would be to exclude targets that are anomalously far from the PoN mean.

Now that we can get the per-target variances from the PoN, a simpler approach would be to exclude targets that are anomalously far from the PoN mean.

Subsumed under issue #429.

source: gharchive/issue

repo: broadinstitute/gatk-protected

license_source: bigquery


text:
ScramblePart1 139 error code

Bug Report
Affected module(s) or script(s)
wdl/GatherSampleEvidence
Affected version(s)
This codebase as-of this commit
Description
I've seen a couple of failing jobs recently where ScramblePart1 is terminating with a 139 error code. It looks like this is a kill signal from the OS/Hypervisor when the tool tries to access memory it has no permission to use. This is always coupled with a Wham failure - is the 139 error likely to be meaningful, or is this potentially a kill signal as a separate part of the workflow had failed, and so all jobs needed to be stopped? n.b. these samples had been running for an entire week on this variant calling stage, which typically takes only a few hours, though the trace below is from a re-run, which picked up the prior run's results. e.g.
Jobs:
  [#] LocalizeReads (26s)
    Call caching: true
  [!] Whamg (5h:19m:10s)
    stdout: None
    stderr: None
    rc: None
    error: Workflow failed, caused by: Task Whamg.RunWhamgOnCram:NA:2 failed. Job exit code 137. (...)
  [#] CollectCounts (18s)
    Call caching: true
  [#] Manta (33s)
  [#] CollectSVEvidence (26s)
  [!] Scramble (1h:0m:57s)
    stdout: None
    stderr: None
    rc: None
    error: Workflow failed, caused by: Job Scramble.ScramblePart1:NA:2 exited with return code 139 which has not been declared as a valid return code

Hi @MattWellie, that is unusual and not something we've run into before. Is it possible this is an issue with the CRAM? I would maybe try recompressing with the latest samtools and see if that resolves the issue.

repo: broadinstitute/gatk-sv


text:
Add African local ancestry data to pop frequency table

Resolves https://github.com/broadinstitute/gnomad-browser-team/issues/72

@rileyhgrant FYI I've decided it would be best to actually merge the commit currently marked DONTMERGE, then just in case there's trouble when we deploy to prod it's easier to roll back. Once this has been up a while I'll add a separate PR to cut over the index.

Demo on this passed QA, just waiting to deploy to coordinate with upcoming blog post.

repo: broadinstitute/gnomad-browser


text:
Write an example VariantWalker

VariantWalker needs an example implementation, as the other Walker types already have.

does CountVariants count? if not, can you specify the requirements for the example?

It should be similar to ExampleIntervalWalker -- a basic reference implementation for authors to use as a starting point.

i can grab this one

And make sure we have examples for all kinds of walkers.

authors: akiezun droazen

repo: broadinstitute/hellbender


text:
🛑 Cardboard is down

In fcffeff, Cardboard (https://status.cardboardserver.cc/status/cardboard) was down:

HTTP code: 530
Response time: 70 ms

Resolved: Cardboard is back up in a834cad after 10 minutes.

repo: brockbreacher/statuspage


text:
calico node fails to launch on ubuntu 14.04 with new libnetwork (docker 1.10.3)

Attempting to deploy a docker infra on Ubuntu 14.04 I'm seeing the following error when attempting to start the Calico Node (docker 1.10.3):
stdin
export INSTALL_DIR="/root/brooklyn-managed-processes/installs/CalicoNode_0.4.9"
export RUN_DIR="/root/brooklyn-managed-processes/apps/P0J7sWMG/entities/CalicoNode_FL16PtCZ"
mkdir -p $RUN_DIR
cd $RUN_DIR
( if test "$UID" -eq 0; then ( /root/brooklyn-managed-processes/installs/CalicoNode_0.4.9/calicoctl node --libnetwork --ip=xx.xx.xx.xx ); else sudo -E -n -S -- /root/brooklyn-managed-processes/installs/CalicoNode_0.4.9/calicoctl node --libnetwork --ip=xx.xx.xx.xx; fi )

stdout
Executed /tmp/brooklyn-20160428-121049455-zAdV-launching_CalicoNodeImpl_id_FL.sh, result 1

stderr
stdin: is not a tty
Usage:
  calicoctl node --ip=<IP> [--node-image=<DOCKER_IMAGE_NAME>] [--ip6=<IP6>] [--as=<AS_NUM>]
  calicoctl node stop [--force]
  calicoctl node bgppeer add <PEER_IP> as <AS_NUM>
  calicoctl node bgppeer remove <PEER_IP>
  calicoctl node bgppeer show [--ipv4 | --ipv6]
  calicoctl status
--snip--

just noticed the calico 0.4.9 - closing to root cause why its getting picked up

this is working as intended, had omitted to update the catalog entities when testing by copying the clocker jars into lib/patch.

repo: brooklyncentral/clocker


text:
Spec out an effect system

The goal here is to come up with a proof of concept or a spec of a system that would allow users to define effects, whether they would apply on items, spells equipment or something else, and have that effect be evaluated at runtime.
For example, we could define an armour with an effect of add +3 to your AC, and how the AC is calculated, its score, etc, will all be dynamically evaluated.
Let's figure out the syntax of that system, and its limits

Re transcribing some messages we exchanged on the subject:

For effects, I figured we could find some kind of DSL that works for all relationships.
We could write strength_save_mod = Math.floor(strength / 2 + proficiency) and it automatically adds the right effect, saving the dependencies. And for objects we could create an effect armor_class = base_armor_class + dex.
What I had in mind looks a lot like foundry's active effects: https://foundryvtt.com/article/active-effects/
There are 5 modes, for which we would have 5 operators:

  Add: +=
  Multiply: *=
  Override:=
  Downgrade: >=
  Upgrade: <=

And then you can use a special sign (e.g. _, @, $) to access the properties of the character sheet, and compose them.

About modes
Here's a copy/paste of the Foundry documentation about effect modes, for reference
Add LAdds the provided value to a number. This can be used to both add and subtract from a particular value by specifying +1 or -1 as the value to add.
Multiply: Multiplies the defined attribute by the numeric value in the Effect Value field.
Override: Replaces the defined attribute with the value provided in the Effect Value field.
Downgrade: Reduces the defined attribute only in cases where the current value of that attribute would be greater than value specified in the Effect Value field.
Upgrade: Increases the defined attribute only in cases where the current value of that attribute would be less than value specified in the Effect Value field.

Fixed by #82


text:
When using with Next.js I am getting "window" is not defined even though I am running on client side

As mentioned in the title I am having issues running this plugin with Next.js
Things I did:

Installed via "yarn add browser-update"
Imported the plugin
Tried adding it in the "_app.tsx" by checking if the window object is not undefined and also in useEffect ( both didn't work ).
I tried adding this in another page, still the same result.

Someone else implemented this with Next.js ?

In which line do you get the error?

This is the error from the console:
ReferenceError: window is not defined
at Object. (C:<PROJECT_NAME>\node_modules\browser-update\update.npm.full.js:230:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)

I had the issue as well @bchurlinov, you could solve it by dynamically importing the module in the useEffect as follows:
useEffect(() => {
  const loadBrowserUpdate = async () => {
    const browserUpdate = (await import('browser-update')).default;

    browserUpdate({
      required: { e: -4, f: -3, o: -3, s: -1, c: -3 },
      insecure: true,
      unsupported: true,
      api: 2021.03,
      reminder: 0,
      reminderClosed: 24,
    });
  };

  loadBrowserUpdate();
}, []);

But some of the browsers you (and I) want this to appear in won't support dynamically loading modules, so the dirty way is to use the script and dangerouslySetInnerHTML option...
<script
  dangerouslySetInnerHTML={{
    __html: `
      var $buoop = {required:{e:-4,f:-3,o:-3,s:-1,c:-3},insecure:true,unsupported:true,api:2021.03 };
      function $buo_f(){
      var e = document.createElement("script");
      e.src = "//browser-update.org/update.min.js";
      document.body.appendChild(e);
      };
      try {document.addEventListener("DOMContentLoaded", $buo_f,false)}
      catch(e){window.attachEvent("onload", $buo_f)}
    `,
  }}
/>

This works for me and it shows up in IE11, etc as expected.

Do you know if there is a way we could fix this from our side?

authors: bchurlinov chapmanio josselex

repo: browser-update/browser-update


text:
Callback documentation & event status

Documentation in README.md does not correspond to actual endpoints in Swagger
Service returns {'error_message': None, 'status': 'Ok'} on the submitted event, but it (actually they) keeps appearing in the list of events

If /mark should somehow let the service know that the event was processed, then this is a bug. If events should be provided on every /events call then disregard this report besides documentation issues.

Also closing as not confirmed.
If somebody has issues with processing events please use these scripts as examples for debugging.
Getting event:
#!/usr/bin/env bash

host=http://0.0.0.0:8080
secret=
api_key=

function timestamp_ms {
  date +%s000
}

function create_signature() {
  stringToSign="$1"
  echo -en "$stringToSign" | openssl sha256 -hmac "$secret" -binary | base64
}

uri="/ton/v3/events/id/712150b7-16b0-4002-b961-cbd164a5ac64"
timestamp=$(timestamp_ms)
stringToSign="$timestamp$uri"
signature=$(create_signature "$stringToSign")

curl --location --request GET "$host$uri" \
  --header 'Content-Type: application/json' \
  --header "api-key: $api_key" \
  --header "timestamp: $timestamp" \
  --header "sign: $signature" | jq

Marking event as processed:
!/usr/bin/env bash

host=http://0.0.0.0:8080
secret=
api_key=

function timestamp_ms {
  date +%s000
}

function create_signature() {
  stringToSign="$1"
  echo -en "$stringToSign" | openssl sha256 -hmac "$secret" -binary | base64
}

uri="/ton/v3/events/mark"

body='{"id": ""}'
body=$(echo "$body" | jq --indent 4 -r --arg id "712150b7-16b0-4002-b961-cbd164a5ac64" '.id = $id')

timestamp=$(timestamp_ms)
stringToSign="$timestamp$uri$body"
signature=$(create_signature "$stringToSign")

echo $stringToSign
echo $signature

curl --location --request POST "$host$uri" \
  --header 'Content-Type: application/json' \
  --header "api-key: $api_key" \
  --header "timestamp: $timestamp" \
  --header "sign: $signature" \
  --data-raw "$body" | jq

repo: broxus/ever-wallet-api


text:
Reconstruct the PHP version and Lara framework

upgrading the version from PHP 7.3 to PHP ^8.0|^8.1 and reconstructiing the  rest of the package by removing the non working and changing them to workable firebase.
code will be merging soon.
--dev : Create a development environment
--git : Initialize a git repository
--branch : Initialize the application with the given branch
--github : Create a new repository on GitHub
--organization : The GitHub under the given organization
--jet : Installs the Laravel Jetstream scaffolding
--stack : The Jetstream stack that should be installed
--teams : Indicates whether Jetstream should be scaffolded with team support
--prompt-jetstream : Issues a prompt to determine if Jetstream should be installed
--force : Overwrite existing files

nodejs /npm will be added on this version
"packages-to-install": {
"composer": [
"spatie-laravel-ray",
"barryvdh-laravel-debugbar",
],
"npm": [
"laravel-echo",
"pusher-js"
]
},

repo: brozot/Laravel-FCM

license: mit


text:
每次rpc请求增加条日志打印

我想把每次rpc请求的下游ip打条日志出来，请问源码是在哪里？

框架不会打这种日志，需要可以自己打，下游ip的获取方式

repo: brpc/brpc


text:
Feat: add basic EFI library

I added a basic EFI library for the work-in-progress bootloader.
I am using my own printf-like thing because for a certain reason, fmt wouldn't want to work with utf16.
I also implemented my own strncpy since yours is broken (add a '\0' at the end of the string).

strncpy is not supposed to "place a \0 at the end of the string"
Strncpy is supposed to fill the unused portion of the string with \0
If the entirety of 'len' is occupied by the string, there will be no null terminator.
As such, it is normal to write your code such that strncpy receives len-1 rather than len if len is the lengtrh of your buffer, and for you to write \0 into the last byte yourself.

this is a bad fix.

http://port70.net/~nsz/c/c89/c89-draft.html#4.11.2.4

strncpy is not supposed to "place a \0 at the end of the string"
Strncpy is supposed to fill the unused portion of the string with \0
If the entirety of 'len' is occupied by the string, there will be no null terminator.
As such, it is normal to write your code such that strncpy receives len-1 rather than len if len is the length of your buffer, and for you to write \0 into the last byte yourself.

yeah this was removed after

repo: brutal-org/brutal


text:
Curves are extremely slow to render and rib gen

should Batch ri.curve calls in rib,
and make sure to call right attributes also in RIB

https://renderman.pixar.com/resources/current/RenderMan/risGeometry.html

Fixed.  https://github.com/bsavery/PRMan-for-Blender/commit/4b03b682fa7d94fe9665f4c6f8d9de39d99eb40f

repo: bsavery/PRMan-for-Blender


text:
material node group doesn't forward color data

Here is a material node setup:
PxrTexture -> PxrDiffuse -> PRMan Material
This basic setup works very well.
Now, if I wrap PxrDiffuse within a node group (PxrTexture -> Group -> PRMan Material),
the image texture is not taken into account anymore.
Also I set a red diffuse color, Suzanne is gray in this case:

Few checks:

If I unplug the texture from the group node and set manually a color, the color is not taken into account.
If I force the color of the PxrDiffuse in the group (unpluging the input node), the color is set properly.

I have tried several things, but each time I am trying to factorize with a group, the input seems not to be taken into account. I am missing something?
Thanks a lot
Charles HETIER

I'll take a look when I get a chance.

Thank you. Thanks also for this amazing work, this is very exciting. I am currently studying doing my future works with Renderman on blender. I really need the ability to factorize my shader, but appart from that, the plugin is amazingly comprehensive.
By the way I am a professional developper. Sadly not in python, but maybe I could help especially for this issue with some few inputs. Is there a little documentation I could read to help getting in the project architecture?
regards

There isn't much in the way of official code documentation for the exporter, outside of comments in the code itself (but those are lacking).  There's a full refactor of the exporter being put together and one of the goals there is to better document what everything's doing.
As far as the existing exporter the best way to learn it is to just poke around in the modules and see how they connect to each other.

Thank you for these inputs

If you're interested take a look at the 21.3 branch where the refactor is happening.  Devel notes there.
https://github.com/bsavery/PRMan-for-Blender/tree/devel_21.3

Just to say I clearly won't have enought time to investigate into the code.
Really wanted to, but there are too much things I need to learn on blender sources first. Thanks anyway for taking time to provide me some few inputs.

authors: bsavery charleshetier jdent02


text:
Getting mean in ordinary kriging

Hi
I'm doing 1D ordinary kriging and instead of the predictions, I need the mean of the kriged process. Is there any method that returns that or the estimated weights of the kriged process?
Thanks a lot!

That is a great question... unfortunately right now there aren't any methods to return those quantities, but this would be easy enough to implement. I'm going to add this to the v2 milestone...

repo: bsmurphy/PyKrige


text:
finding value for spaceKey (and parentPageTitle)

Hello,
I'm having a problem configuring the plugin correctly.
Here is an extract from my multi modules project :
https://gist.github.com/gartcimore/a8be6756dd73c0f89185
Maybe the end point is incorrect ? How do I know/found what is the correct end point for my server ?
I've got the following problem when I use
mvn confluence-reporting:deploy
[DEBUG]   (f) removeSnapshots = false [DEBUG]   (f) serverId = intranet.myserver.com [DEBUG]   (f) siteDescriptor = C:\mercurial\depots\ucs\ucs-tng\src\site\confluence\site.xml [DEBUG]   (f) spaceKey = RP [DEBUG]   (f) templateWiki = C:\mercurial\depots\ucs\ucs-tng\src\site\confluence\template.wiki [DEBUG]   (s) title = my-site-generation-test [DEBUG]   (f) webAccessUrl = http://urlToCI [DEBUG]   (f) wikiFilesExt = .wiki [DEBUG] -- end configuration -- [INFO] executeReport isSnapshot = [true] isRemoveSnapshots = [false] Site  Labels   test   ucs  Page: my-site-generation-test - jar:file:/C:/tools/maven_repo/org/bsc/maven/confluence-reporting-maven-plugin/4.5/confluence-reporting-maven-plugin-4.5.jar!/defaultTemplate.confluence [DEBUG] SSLCertificate{ignore:true,hostnameVerifierClass:'null',trustManagerClass:'null,} [INFO] Confluence version [5.5.4-5517] development version [false] [ERROR] has been imposssible connect to confluence due exception org.codehaus.swizzle.confluence.ConfluenceException: java.lang.Exception: com.atlassian.confluence.rpc.RemoteException: You're not allowed to view that page, or it does not exist. 	at org.codehaus.swizzle.confluence.Confluence.call(Confluence.java:971) 	at org.codehaus.swizzle.confluence.Confluence.call(Confluence.java:933) 	at org.codehaus.swizzle.confluence.Confluence.call(Confluence.java:919) 	at org.codehaus.swizzle.confluence.Confluence.getPage(Confluence.java:278) 	at org.bsc.maven.plugin.confluence.ConfluenceUtils.getOrCreatePage(ConfluenceUtils.java:142) 	at org.bsc.maven.confluence.plugin.ConfluenceDeployMojo$1.execute(ConfluenceDeployMojo.java:444) 	at org.bsc.maven.confluence.plugin.AbstractBaseConfluenceMojo.confluenceExecute(AbstractBaseConfluenceMojo.java:189) 	at org.bsc.maven.confluence.plugin.ConfluenceDeployMojo.generateProjectReport(ConfluenceDeployMojo.java:428) 	at org.bsc.maven.confluence.plugin.ConfluenceDeployMojo.execute(ConfluenceDeployMojo.java:258) 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) 	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.lang.reflect.Method.invoke(Method.java:497) 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Found this [https://developer.atlassian.com/confdev/confluence-rest-api/confluence-xml-rpc-and-soap-apis](atlassian page) about xml rpc api being deprecated for confluence 5.5. We use confluence 5.5.4 and I guess that maybe the api isn't enabled.
Are there any plan to support the [https://docs.atlassian.com/atlassian-confluence/REST/latest/](REST Api) provided with confluence 5.5

Hi , you right  "xml rpc api has been deprecated" but still works. What I suggest you is to check for space permission
However from your gist I don't understand if you're using "single page" or "site"  deployment. Moreover i suggest you to specify parentPageTitle explicitly.
About move to REST it's not planned yet ... but it is unavoidable (probably for release 5.0)

refer to Issue#96

Yes, the xml rpc api seems to be still enabled.

However from your gist I don't understand if you're using "single page" or "site" deployment
I'm not sure of what I'm doing :)
Ideally I would like to upload site definition and some specific pages. My configuration may be absolutely wrong

Yes, the xml rpc api seems to be still enabled.

However from your gist I don't understand if you're using "single page" or "site" deployment
I'm not sure of what I'm doing :)
Ideally I would like to upload site definition and some specific pages. My configuration may be absolutely wrong

authors: bsorrentino gartcimore

repo: bsorrentino/maven-confluence-plugin


text:
bch中getblocktemplatelight 调用问题

源码src/bitcoin/GbtMaker.cc    第408行的函数如下：

#if defined(CHAIN_TYPE_BCH) || defined(CHAIN_TYPE_BSV)
void GbtMaker::runLightGbt() {
auto threadListenBitcoind =
std::thread(&GbtMaker::threadListenBitcoind, this);
while (running_) {
std::this_thread::sleep_for(1s);
submitRawGbtLightMsg(true);
}
if (threadListenBitcoind.joinable())
threadListenBitcoind.join();
}
#endif

该函数中 调用的这个方法 GbtMaker::threadListenBitcoind 依然使用的的是 submitRawGbtMsg，不是应该使用 submitRawGbtLightMsg 方法吗？
是有别的考虑，还是有笔误呢？

https://github.com/btccom/btcpool/blob/c1788f795934a7896d2a71cb1e6af49e77f4d161/src/gbtmaker/GbtMakerMain.cc#L142-L150

当runLightGbt==true,且接收到zmq消息的时候,调用的仍然是submitRawGbtMsg,而不是submitRawGbtLightMsg.

@YihaoPeng zmq接受到消息的时候，调用的是原生gbt
threadListenBitcoind -> submitRawGbtMsg
https://github.com/btccom/btcpool/blob/4f93d2db454e7555978a0cc0eb2fc26986d4a9aa/src/bitcoin/GbtMaker.cc#L397-L419

已合并修改，感谢提供修复。

authors: EthanHee YihaoPeng onigirisan

repo: btccom/btcpool


text:
[Bug] Failed to read BlockState due to asynchronous access

Hello again, I've found an other bug with skript-db
When I right click on a enchantment table, this error pop in the console.
I know skript-bd has nothing to do with the enchantments tables, but when I remove the plugin the error disappears.
I noticed there is a link to the fact that the thread is asynchronous (I think)
(Tell me if you want the error in a pastebin or something like that)
[11:16:00] [pool-40-thread-8/WARN]: java.util.concurrent.CompletionException: java.lang.RuntimeException: Failed to read BlockState at: world: world location: (579, 63, -149) [11:16:00] [pool-40-thread-8/WARN]: 	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) [11:16:00] [pool-40-thread-8/WARN]: 	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) [11:16:00] [pool-40-thread-8/WARN]: 	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1592) [11:16:00] [pool-40-thread-8/WARN]: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [11:16:00] [pool-40-thread-8/WARN]: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [11:16:00] [pool-40-thread-8/WARN]: 	at java.lang.Thread.run(Thread.java:748) [11:16:00] [pool-40-thread-8/WARN]: Caused by: java.lang.RuntimeException: Failed to read BlockState at: world: world location: (579, 63, -149) [11:16:00] [pool-40-thread-8/WARN]: 	at org.bukkit.craftbukkit.v1_14_R1.block.CraftBlockEntityState.<init>(CraftBlockEntityState.java:49) [11:16:00] [pool-40-thread-8/WARN]: 	at org.bukkit.craftbukkit.v1_14_R1.block.CraftEnchantingTable.<init>(CraftEnchantingTable.java:12) [11:16:00] [pool-40-thread-8/WARN]: 	at org.bukkit.craftbukkit.v1_14_R1.block.CraftBlock.getState0(CraftBlock.java:437) [11:16:00] [pool-40-thread-8/WARN]: 	at org.bukkit.craftbukkit.v1_14_R1.block.CraftBlock.getState(CraftBlock.java:322) [11:16:00] [pool-40-thread-8/WARN]: 	at org.bukkit.craftbukkit.v1_14_R1.block.CraftBlock.getState(CraftBlock.java:316) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.aliases.ItemType.<init>(ItemType.java:222) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.aliases.ItemType.toString(ItemType.java:1008) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.classes.data.BukkitClasses$2.toString(BukkitClasses.java:193) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.classes.data.BukkitClasses$2.toString(BukkitClasses.java:1) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.registrations.Classes.toString(Classes.java:601) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.registrations.Classes.toString(Classes.java:630) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.registrations.Classes.toString(Classes.java:615) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.lang.VariableString.toString(VariableString.java:459) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.lang.VariableString.getArray(VariableString.java:623) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.lang.VariableString.getArray(VariableString.java:1) [11:16:00] [pool-40-thread-8/WARN]: 	at com.btk5h.skriptdb.skript.ExprUnsafe.get(ExprUnsafe.java:37) [11:16:00] [pool-40-thread-8/WARN]: 	at com.btk5h.skriptdb.skript.ExprUnsafe.get(ExprUnsafe.java:22) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:102) [11:16:00] [pool-40-thread-8/WARN]: 	at ch.njol.skript.lang.util.SimpleExpression.getSingle(SimpleExpression.java:60) [11:16:00] [pool-40-thread-8/WARN]: 	at com.btk5h.skriptdb.skript.EffExecuteStatement.createStatement(EffExecuteStatement.java:155) [11:16:00] [pool-40-thread-8/WARN]: 	at com.btk5h.skriptdb.skript.EffExecuteStatement.executeStatement(EffExecuteStatement.java:122) [11:16:00] [pool-40-thread-8/WARN]: 	at com.btk5h.skriptdb.skript.EffExecuteStatement.lambda$execute$0(EffExecuteStatement.java:94) [11:16:00] [pool-40-thread-8/WARN]: 	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590) [11:16:00] [pool-40-thread-8/WARN]: 	... 3 more [11:16:00] [pool-40-thread-8/WARN]: Caused by: java.lang.IllegalStateException: Tile is null, asynchronous access? CraftBlock{pos=BlockPosition{x=579, y=63, z=-149},type=ENCHANTING_TABLE,data=Block{minecraft:enchanting_table},fluid=net.minecraft.server.v1_14_R1.FluidTypeEmpty@cd1e646} [11:16:00] [pool-40-thread-8/WARN]: 	at com.google.common.base.Preconditions.checkState(Preconditions.java:444) [11:16:00] [pool-40-thread-8/WARN]: 	at org.bukkit.craftbukkit.v1_14_R1.block.CraftBlockEntityState.<init>(CraftBlockEntityState.java:30) [11:16:00] [pool-40-thread-8/WARN]: 	... 25 more

Code?

No code...

I found the script that makes the error:
The code is:
on right click on a chest, furnace, shulker box, dropper, dispenser, hopper or trapped chest, anvil, enchantment table: 	execute unsafe "INSERT INTO skript_coffrelog (datetime,joueur,action,block,x_coord,y_coord,z_coord,world) VALUES (NOW(),'%player%','OPEN','%targeted block of player%',%round up x coord of targeted block of player%,%round up y coord of targeted block of player%,%round up z coord of targeted block of player%,'%world of player%')" in {mysql_db}

Ddditional informations:
-Same problem if I do a synchronously execute
-I think the problem is only in Minecraft 1.14.3 because I updated my server, and the error is still here with skript-bd v0.1.1

The request is not executed

Okay, I've test more things, and I noticed that skript-bd don't replace local variables with their values! It works for global variables
Exemple:
set {_test} to "test1" set {test} to "test2" send "%{_block}%" execute unsafe "INSERT INTO skript_test (test1,test2) VALUES ('%{_test}%','%{test}%')" in {mysql_db}
the 'test1' value is  is the SQL table, but the 'test2' value is correct ("test2")

I know what's causing the problem, though it might be a while until I have the time to fix it.
The local variable problem is an issue with Skript itself.


text:
Pagination in search

Just reporting this for posterity, I don't actually think it's that big of a deal. Google search reports 10 results per page, whereas we currently report 50 results. How often do you go beyond page 5 when reviewing a Google search? If there are that many results, you should refine your search.
However, it's useful for people trying to read everything in order, or skipping back in time.
And I think we can support it efficiently/reliably. The trick is to use the URIs themselves as the position markers.

Fixed in 2949829c30d35f92ab0de5c1c90778ed46eddd7f. There are still some quirks remaining, but they should be opened as separate issues.

repo: btrask/stronglink


text:
Refresh button

Feature Request
Sometimes we can get really delayed by connection issues or twitch itself being buggy. A refresh button would be nice, I suggest leaving it near the sleep timer button.

Closed due to new Scope of the project

repo: bttv-android/bttv


text:
Cannot find crtbegin_dynamic.o

I compile OpenBLAS with fortran on virtual machine of Ubuntu 14.04.4. Main OS is OS X 10.11.6. NDK version is r13b.
I download gcc-arm64-linux-x86_64.tar.bz2 from release 760fb01 and release it under $NDK_ROOT/toolchains/aarch64-linux-android-4.9/prebuilt/ to replace linux-x86-64.
This is my make command:
make TARGET=ARMV8 BINARY=64 CFLAGS=--sysroot=/home/huyaonan/android-ndk-r13b//platforms/android-21/arch-arm64 HOSTCC=gcc CC=aarch64-linux-android-gcc FC=aarch64-linux-android-gfortran USE_THREAD=1 USE_OPENMP=1 USE_LAPACK=1 PREFIX=/home/huyaonan/torch-project/torch-android/install

But I get errors:
aarch64-linux-android-ar  -ru ../../libopenblas_armv8p-r0.2.20.dev.a strtri_UU_single.o strtri_UN_single.o strtri_LU_single.o strtri_LN_single.o strtri_UU_parallel.o strtri_UN_parallel.o strtri_LU_parallel.o strtri_LN_parallel.o dtrtri_UU_single.o dtrtri_UN_single.o dtrtri_LU_single.o dtrtri_LN_single.o dtrtri_UU_parallel.o dtrtri_UN_parallel.o dtrtri_LU_parallel.o dtrtri_LN_parallel.o ctrtri_UU_single.o ctrtri_UN_single.o ctrtri_LU_single.o ctrtri_LN_single.o ctrtri_UU_parallel.o ctrtri_UN_parallel.o ctrtri_LU_parallel.o ctrtri_LN_parallel.o ztrtri_UU_single.o ztrtri_UN_single.o ztrtri_LU_single.o ztrtri_LN_single.o ztrtri_UU_parallel.o ztrtri_UN_parallel.o ztrtri_LU_parallel.o ztrtri_LN_parallel.o
make[2]: Leaving directory `/home/huyaonan/torch-project/torch-android/external/OpenBLAS/lapack/trtri'
make[1]: Leaving directory `/home/huyaonan/torch-project/torch-android/external/OpenBLAS/lapack'
make[1]: Entering directory `/home/huyaonan/torch-project/torch-android/external/OpenBLAS/lapack-netlib'
( cd INSTALL; make -j 2 )
make[2]: Entering directory `/home/huyaonan/torch-project/torch-android/external/OpenBLAS/lapack-netlib/INSTALL'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o lsame.o lsame.f
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o lsametst.o lsametst.f
aarch64-linux-android-gfortran -O0 -Wall -fPIC -march=armv8-a -c -o slamch.o slamch.f
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o slamchtst.o slamchtst.f
aarch64-linux-android-gfortran -O0 -Wall -fPIC -march=armv8-a -c -o dlamch.o dlamch.f
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o dlamchtst.o dlamchtst.f
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o second_NONE.o second_NONE.f
second_NONE.f:38.6:

      REAL FUNCTION SECOND( )
      1
Warning: 'second' declared at (1) is also the name of an intrinsic.  It can only be called via an explicit interface or if declared EXTERNAL.
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o secondtst.o secondtst.f
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o dsecnd_NONE.o dsecnd_NONE.f
secondtst.f:116.26:

      SUBROUTINE MYSUB(N,X,Y)
                          1
Warning: Unused dummy argument 'x' at (1)
secondtst.f:116.28:

      SUBROUTINE MYSUB(N,X,Y)
                            1
Warning: Unused dummy argument 'y' at (1)
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o dsecndtst.o dsecndtst.f
dsecndtst.f:120.26:

      SUBROUTINE MYSUB(N,X,Y)
                          1
Warning: Unused dummy argument 'x' at (1)
dsecndtst.f:120.28:

      SUBROUTINE MYSUB(N,X,Y)
                            1
Warning: Unused dummy argument 'y' at (1)
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o tstiee.o tstiee.f
tstiee.f:81.69:

      INTEGER          FUNCTION ILAENV( ISPEC, NAME, OPTS, N1, N2, N3,
                                                                     1
Warning: Unused dummy argument 'n3' at (1)
tstiee.f:81.57:

      INTEGER          FUNCTION ILAENV( ISPEC, NAME, OPTS, N1, N2, N3,
                                                         1
Warning: Unused dummy argument 'opts' at (1)
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o ilaver.o ilaver.f
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a -c -o LAPACK_version.o LAPACK_version.f
aarch64-linux-android-gfortran -O2 -Wall -fPIC -march=armv8-a  -o testlsame lsame.o lsametst.o
/home/huyaonan/android-ndk-r13b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find crtbegin_dynamic.o: No such file or directory
/home/huyaonan/android-ndk-r13b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lm
/home/huyaonan/android-ndk-r13b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lm
/home/huyaonan/android-ndk-r13b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lc
/home/huyaonan/android-ndk-r13b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -ldl
/home/huyaonan/android-ndk-r13b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find crtend_android.o: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [testlsame] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/huyaonan/torch-project/torch-android/external/OpenBLAS/lapack-netlib/INSTALL'
make[1]: *** [lapack_install] Error 2
make[1]: Leaving directory `/home/huyaonan/torch-project/torch-android/external/OpenBLAS/lapack-netlib'
make: *** [netlib] Error 2

I have checked crtbegin_dynamic.o did exist under dir /home/huyaonan/android-ndk-r13b//platforms/android-21/arch-arm64
Thanks for any suggestion :)

Hi @huyn,
You have is not specified what recipes to build from the Makefile, thus it is doing all of them.
The errors arise from OpenBLAS's netlib and tests recipe, which will try linking & running tests.
This won't work since you're cross-compiling.
You should make libs, then install:
make TARGET=ARMV8 BINARY=64 CFLAGS=--sysroot=/home/huyaonan/android-ndk-r13b/platforms/android-21/arch-arm64 HOSTCC=gcc CC=aarch64-linux-android-gcc FC=aarch64-linux-android-gfortran USE_THREAD=1 USE_OPENMP=1 USE_LAPACK=1 libs netlib
make PREFIX=/home/huyaonan/torch-project/torch-android/install install

I've updated the OpenBLAS for Android instructions accordingly.
Sidenotes:

This won't build the netlib recipe. If you need it, you will need to go inside lapack-netlib/INSTALL/Makefile to comment test recipes. After that, it should also work.
Since you are not using ndk-build, there is no need to put the toolchain inside the NDK. Moreover, instead of specifying yourself the sysroot, you should consider making a standalone toolchain (see the last section of my README), which will take care of that and more.

Actually, I was mistaken. The tests in netlib are only linking tests.
If you make a standalone toolchain as suggested, this will solve this problem and allow you to build both libs and netlib.

Thanks! @buffer51
With your infomation, openblas is compiled successfully with LAPACK.
make[2]: Leaving directory `/home/huyaonan/torch-project/torch-android/external/OpenBLAS/lapack/trtri'
make[1]: Leaving directory `/home/huyaonan/torch-project/torch-android/external/OpenBLAS/lapack'
make -j 2 -f Makefile.install install
make[1]: Entering directory `/home/huyaonan/torch-project/torch-android/external/OpenBLAS'
Generating openblas_config.h in /home/huyaonan/torch-project/torch-android/install/include
Generating f77blas.h in /home/huyaonan/torch-project/torch-android/install/include
Generating cblas.h in /home/huyaonan/torch-project/torch-android/install/include
Copying LAPACKE header files to /home/huyaonan/torch-project/torch-android/install/include
Copying the static library to /home/huyaonan/torch-project/torch-android/install/lib
Copying the shared library to /home/huyaonan/torch-project/torch-android/install/lib
Generating openblas.pc in /home/huyaonan/torch-project/torch-android/install/lib/pkgconfig
Generating OpenBLASConfig.cmake in /home/huyaonan/torch-project/torch-android/install/lib/cmake/openblas
Generating OpenBLASConfigVersion.cmake in /home/huyaonan/torch-project/torch-android/install/lib/cmake/openblas
Install OK!
make[1]: Leaving directory `/home/huyaonan/torch-project/torch-android/external/OpenBLAS'

But when going to checking procedure, I got
-- Checking for [openblas]
--   Library openblas: /home/huyaonan/torch-project/torch-android/install/lib/libopenblas.a
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Performing Test BLAS_F2C_DOUBLE_WORKS
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
   BLAS_F2C_DOUBLE_WORKS_EXITCODE (advanced)
For details see /home/huyaonan/torch-project/torch-android/build/TryRunResults.cmake
-- Performing Test BLAS_F2C_DOUBLE_WORKS - Failed
-- Performing Test BLAS_F2C_FLOAT_WORKS
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
   BLAS_F2C_FLOAT_WORKS_EXITCODE (advanced)
For details see /home/huyaonan/torch-project/torch-android/build/TryRunResults.cmake
-- Performing Test BLAS_F2C_FLOAT_WORKS - Failed
-- Found a library with BLAS API (open).
-- Looking for cheev_
-- Looking for cheev_ - not found
-- It seems OpenBlas has not been compiled with Lapack support
-- Cannot find a library with LAPACK API. Not using LAPACK.

So, did the complie fail eventually?

Hi @huyn,
I think you only built libs. You should build netlib as well.
In summary:

Use the toolchain from releases
Make it a [standalone toolchain](make TARGET=ARMV8 BINARY=64 CFLAGS=--sysroot=/home/huyaonan/android-ndk-r13b/platforms/android-21/arch-arm64 HOSTCC=gcc CC=aarch64-linux-android-gcc FC=aarch64-linux-android-gfortran USE_THREAD=1 USE_OPENMP=1 USE_LAPACK=1 libs)
Export it in your path:
export PATH=$PATH:/path/to/standalone-toolchain/bin
Build OpenBLAS
make TARGET=ARMV8 BINARY=64 HOSTCC=gcc CC=aarch64-linux-android-gcc FC=aarch64-linux-android-gfortran USE_THREAD=1 USE_OPENMP=1 USE_LAPACK=1 libs netlib
Install it
make PREFIX=/home/huyaonan/torch-project/torch-android/install install

You should then have LAPACK as well (I've confirmed on my machine that cheev_ is present).

Hi @buffer51 , glad to receive your reply.
I did every step according to your reply include making a standalone toolchain like creating_the_toolchain.
Lib(libopenblas.a, libopenblas_armv8p-r0.2.20.dev.a) and other head files had been generated successfully. But LAPACK API could not be detected as before.
Actually what I am doing now is building torch-android with OpenBLAS and LAPACK. I don't know whether you have some experience on it. This is my build.sh, maybe something is wrong with standalone toolchain.  Thank you for your help.
#!/bin/bash
# have ndk-build in your $PATH and the script figures out where your ANDROID_NDK is at.

# optionally, modify the variables below as needed.
NDKABI=21

# Default architecture is V8
ARCH=${ARCH:-"v8"}

# Default is to build with CUDA.
# Make sure you installed https://developer.nvidia.com/codeworks-android.
# Otherwise, set WITH_CUDA to OFF.
WITH_CUDA=${WITH_CUDA:-"OFF"}

if [[ "$ARCH" == "v8" ]]; then
    APP_ABI=arm64-v8a
    M_ARCH=-march=armv8-a
    ABI_NAME=aarch64-linux-androideabi
    COMPUTE_NAME="Maxwell+Tegra"
elif [[ "$ARCH" == "v7n" ]]; then
    APP_ABI="armeabi-v7a with NEON"
    M_ARCH="-march=armv7-a"
    ABI_NAME=armv7-linux-androideabi
    COMPUTE_NAME="Kepler+Tegra Maxwell+Tegra"
    LOCAL_ARM_NEON=true
    ARCH_ARM_HAVE_NEON=true
else
    echo "Unsupported Architecture: $ARCH"
    exit 1
fi

NVCC=`which nvcc`
export MAKE=make
export MAKEARGS=-j$(getconf _NPROCESSORS_ONLN)

####################################################
# You do not need to modify anything below this line
####################################################
# find system torch, if not found, install it
command -v th >/dev/null 2>&1
TORCHINSTALLCHECK=$?
if [ $TORCHINSTALLCHECK -ne 0 ]; then
    echo "Torch-7 not found on system. Please install it using instructions from http://torch.ch"
    exit -1
fi
# have ndk-build in your PATH and the script figures out where your ANDROID_NDK is at
unamestr=`uname`
ndkbuildloc=`which ndk-build`
if [[ "$?" == 1 ]]; then
    echo "Error: Cannot find ndk-build in PATH. Please add it to PATH environment variable"
    exit 1
fi
if [[ "$unamestr" == 'Linux' ]]; then
    export ANDROID_NDK=`readlink -f $ndkbuildloc|sed 's/ndk-exec.sh//'|sed 's/ndk-build//'`
elif [[ "$unamestr" == 'Darwin' ]]; then
    which greadlink >/dev/null 2>&1
    if [[ "$?" == 1 ]]; then
	brew install coreutils
    fi
    export ANDROID_NDK=`greadlink -f $ndkbuildloc|sed 's/ndk-exec.sh//'|sed 's/ndk-build//'`
fi
echo "Android NDK found at: $ANDROID_NDK"
cd "$(dirname "$0")" # switch to script directory
SCRIPT_ROOT_DIR=`pwd`
export INSTALL_DIR=$SCRIPT_ROOT_DIR/install
mkdir -p ${INSTALL_DIR}/man

echo "INSTALL_DIR=${INSTALL_DIR}"
set +e # hard errors
export CMAKE_INSTALL_SUBDIR="share/cmake/torch"
NDK=$ANDROID_NDK
TOOLCHAIN_VERSION=4.9

if [[ "$ARCH" == "v8" ]]; then
NDK_SYSROOT=$NDK/platforms/android-$NDKABI/arch-arm64
export HOST=aarch64-linux-android
HOST_CC="gcc"
else
export HOST=arm-linux-androideabi
NDK_SYSROOT=$NDK/platforms/android-$NDKABI/arch-arm
ANDROID_CFLAGS="-mfloat-abi=softfp  -fprefetch-loop-arrays"
HOST_CC="gcc -m32"
fi

ANDROID_CFLAGS="${M_ARCH} --sysroot ${NDK_SYSROOT} ${ANDROID_CFLAGS}"

if [[ "$unamestr" == 'Linux' ]]; then
    BUILD_PLATFORM=linux-x86_64
elif [[ "$unamestr" == 'Darwin' ]]; then
    BUILD_PLATFORM=darwin-x86_64
fi

export TOOLCHAIN="$NDK/toolchains/${HOST}-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}"

export TORCH_CUDA_ARCH_LIST="${COMPUTE_NAME}"
#-DANDROID_STANDALONE_TOOLCHAIN="${SCRIPT_ROOT_DIR}/standalone-toochains" \
do_cmake_config() {
cmake $1 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_TOOLCHAIN_FILE="$SCRIPT_ROOT_DIR/cmake/android.toolchain.cmake" \
    -DANDROID_NDK="${ANDROID_NDK}" -DANDROID_ABI="${APP_ABI}" \
    -DWITH_CUDA=${WITH_CUDA} -DWITH_LUAROCKS=OFF -DWITH_LUAJIT21=ON\
    -DCUDA_USE_STATIC_CUDA_RUNTIME=OFF -DANDROID_STL_FORCE_FEATURES=OFF\
    -DANDROID_NATIVE_API_LEVEL="${NDKABI}" -DANDROID_STL=gnustl_shared\
    -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" -DCMAKE_INSTALL_SUBDIR="${CMAKE_INSTALL_SUBDIR}" \
    -DLIBRARY_OUTPUT_PATH_ROOT="${INSTALL_DIR}" \
    -DLUAJIT_SYSTEM_MINILUA="$SCRIPT_ROOT_DIR/distro/exe/luajit-rocks/luajit-2.1/src/host/minilua" \
    -DLUAJIT_SYSTEM_BUILDVM="$SCRIPT_ROOT_DIR/distro/exe/luajit-rocks/luajit-2.1/src/host/buildvm" \
    -DCMAKE_C_FLAGS="-DDISABLE_POSIX_MEMALIGN"
echo " -------------- Configuring DONE ---------------"
}

if [[ "$WITH_CUDA" == "ON" ]]; then
    echo "Found CUDA on your machine. Installing CMake 3.6 modules to get up-to-date FindCUDA"
    cd ${SCRIPT_ROOT_DIR}/distro/cmake/3.6 && \
(cmake -E make_directory build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
        && make install) && echo "FindCuda bits of CMake 3.6 installed" || exit 1
fi

cd $SCRIPT_ROOT_DIR

cd external/libpng && \
    (cmake -E make_directory build && cd build && do_cmake_config .. && make install) \
    && echo "libpng installed" || exit 1
cd $SCRIPT_ROOT_DIR

#cd external/libjpeg-turbo && \
#    (cmake -E make_directory build && cd build && . ../../build-libjpeg.sh) \
#    && echo "libjpeg installed" || exit 1
#cd $SCRIPT_ROOT_DIR

# Build host luajit for minilua and buildvm
cd distro/exe/luajit-rocks/luajit-2.1

# make clean
$MAKE $MAKEARGS HOST_CC="$HOST_CC" CC="gcc" HOST_SYS=$unamestr TARGET_SYS=Linux CROSS="${TOOLCHAIN}/bin/${HOST}-" TARGET_FLAGS="$ANDROID_CFLAGS"

echo "Done installing Lua"

if [[ "$ARCH" == "v8" ]]; then
	cd $SCRIPT_ROOT_DIR
	(cmake -E make_directory build && cd build && do_cmake_config ..) || exit 1

	echo "Start to compile OpenBLAS"
	cd external/OpenBLAS

	NDK_ROOT=$ANDROID_NDK
	echo "NDK_ROOT=$NDK_ROOT, APP_ABI=$APP_ABI"
	PATHI=$PATH
	target="ARMV8 BINARY=64"
	CC="aarch64-linux-android-gcc FC=aarch64-linux-android-gfortran"

	export PATH=${PATHI}:/home/huyaonan/arm64-toolchain/bin
	command="make TARGET=${target} HOSTCC=gcc CC=${CC} USE_THREAD=1 USE_OPENMP=1 USE_LAPACK=1 libs netlib"

	echo $command
	$command

	command="make PREFIX=${INSTALL_DIR} install"
	$command

	echo "End compile OpenBLAS"
fi

cd $SCRIPT_ROOT_DIR
(cmake -E make_directory build && cd build && do_cmake_config ..) || exit 1

cd build

(cd distro/exe && $MAKE $MAKEARGS install) || exit 1
# cwrap needs to be there first
(cd distro/pkg/cwrap && $MAKE $MAKEARGS install) || exit 1
(cd distro/pkg && $MAKE $MAKEARGS install) || exit 1

# Cutorch installs some headers/libs used by other modules in extra
if [[ "$WITH_CUDA" == "ON" ]]; then
    (cd distro/extra/cutorch && $MAKE $MAKEARGS install) || exit 1
fi

(cd distro/extra && $MAKE  $MAKEARGS install) || exit 1
(cd src && $MAKE $MAKEARGS install) || exit 1

cd ..

echo "done"

The build commands seem fine. Can I try it from your fork of torch-android? I want to see what it produces, and how LAPACK is detected (or not).

@buffer51 you can use it , but you need to clone OpenBLAS under dir external and replace build.sh with content in my last comment. Thank you.

@huyn I just tried it and it worked wonderfully. I'm not sure what could have happened, did you try cleaning everything and rebuilding from scratch?
After that, if it still fails, check for the outputted install/libopenblas.a. If it's there, run nm libopenblas.a | grep cheev_, which should mimic checking for LAPACK by the existance of that routine.
In my case, I get:
0000000000000000 T cheev_
                 U cheev_
cheev_2stage.o:
0000000000000000 T cheev_2stage_
                 U cheev_2stage_
                 U LAPACKE_cheev_work
lapacke_cheev_work.o:
                 U cheev_
0000000000000000 T LAPACKE_cheev_work
lapacke_cheev_2stage.o:
0000000000000000 T LAPACKE_cheev_2stage
                 U LAPACKE_cheev_2stage_work
lapacke_cheev_2stage_work.o:
                 U cheev_2stage_
0000000000000000 T LAPACKE_cheev_2stage_work

Also, I've confirmed that the generated luajit works on my Nexus 5X. Basic operations worked, although I couldn't require Torch since I only put the executable and not the libraries that go along.

Hi @buffer51 Thank you sincerly.
I start a new project and I have confirmed that libopenblas.a contians function cheev_.
huyaonan@ubuntu:~/torch-project/torch-fork/install/lib$ nm libopenblas.a | grep cheev_
0000000000000000 T cheev_
                 U cheev_
cheev_2stage.o:
0000000000000000 T cheev_2stage_
                 U cheev_2stage_
                 U LAPACKE_cheev_work
lapacke_cheev_work.o:
                 U cheev_
0000000000000000 T LAPACKE_cheev_work
lapacke_cheev_2stage.o:
0000000000000000 T LAPACKE_cheev_2stage
                 U LAPACKE_cheev_2stage_work
lapacke_cheev_2stage_work.o:
                 U cheev_2stage_
0000000000000000 T LAPACKE_cheev_2stage_work

But I find that check_function_exists("cheev_" OPEN_LAPACK_WORKS) may not work  even though BLAS_LIBRARIES has been set as  /home/huyaonan/torch-project/torch-fork/install/lib/libopenblas.a in FindLAPACK.cmake under dir /distro/pkg/torch/lib/TH/cmake. Maybe there is something wrong with libopenblas.a which makes cmake link unsuccessful.

And when does the error occur? For me, the build process finished successfully. Is there another step you take after that, which is the one that fails?

Hi @buffer51.
The build did finish successfully for me too and I can use the libs on my aarch64 devices. The point is LAPACK api is not found in libopenblas.a, the libs generated later would not contain LAPACK capacity because it would be ignored during next steps.

@huyn I was able to find the part you mentionned (cheev_ not found). The error log build/CMakeFiles/CMakeError.log reads:
Determining if the function cheev_ exists failed with the following output:
Change Dir: /home/paul/code/openblas/torch-android/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_61c3c/fast"
make -f CMakeFiles/cmTC_61c3c.dir/build.make CMakeFiles/cmTC_61c3c.dir/build
make[1] : on entre dans le répertoire « /home/paul/code/openblas/torch-android/build/CMakeFiles/CMakeTmp »
Building C object CMakeFiles/cmTC_61c3c.dir/CheckFunctionExists.c.o
/home/paul/code/android-ndk-r13b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc  -DANDROID -isystem /home/paul/code/android-ndk-r13b/platforms/android-21/arch-arm64/usr/include -isystem /home/paul/code/android-ndk-r13b/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/paul/code/android-ndk-r13b/sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a/include -isystem /home/paul/code/android-ndk-r13b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward  -Wno-psabi --sysroot=/home/paul/code/android-ndk-r13b/platforms/android-21/arch-arm64 -funwind-tables -fsigned-char -no-canonical-prefixes -fdata-sections -ffunction-sections -Wa,--noexecstack -DDISABLE_POSIX_MEMALIGN -Werror=implicit-function-declaration -Werror=format -fopenmp -fopenmp -DCHECK_FUNCTION_EXISTS=cheev_ -fPIE   -o CMakeFiles/cmTC_61c3c.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_61c3c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_61c3c.dir/link.txt --verbose=1
/home/paul/code/android-ndk-r13b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc  -Wno-psabi --sysroot=/home/paul/code/android-ndk-r13b/platforms/android-21/arch-arm64 -funwind-tables -fsigned-char -no-canonical-prefixes -fdata-sections -ffunction-sections -Wa,--noexecstack -DDISABLE_POSIX_MEMALIGN -Werror=implicit-function-declaration -Werror=format -fopenmp -fopenmp -DCHECK_FUNCTION_EXISTS=cheev_   -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc -fPIE -pie  CMakeFiles/cmTC_61c3c.dir/CheckFunctionExists.c.o -o cmTC_61c3c  -L/libs/arm64-v8a  /home/paul/code/openblas/torch-android/install/lib/libopenblas.a  "/home/paul/code/android-ndk-r13b/sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a/libsupc++.a"
/home/paul/code/openblas/torch-android/install/lib/libopenblas.a(cheev.o): In function `cheev_':
cheev.f:(.text+0x470): undefined reference to `sqrtf'
cheev.f:(.text+0x480): undefined reference to `sqrtf'

and some more... I'll try to investigate.

So the issue I've found is that the linking step misses -lgfortran and -lm. I've checked cmake/android.toolchain.cmake, and for some reason -lm is only added to C++ linking steps.
Replacing the section around line 1292 by the following fixes it for me.
 if( ANDROID_STL MATCHES "gnustl" )
  if( NOT EXISTS "${ANDROID_LIBM_PATH}" )
   set( ANDROID_LIBM_PATH -lm )
  endif()
  set( CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_CXX_CREATE_SHARED_LIBRARY} ${ANDROID_LIBM_PATH}" )
  set( CMAKE_CXX_CREATE_SHARED_MODULE  "${CMAKE_CXX_CREATE_SHARED_MODULE} ${ANDROID_LIBM_PATH}" )
  set( CMAKE_CXX_LINK_EXECUTABLE       "${CMAKE_CXX_LINK_EXECUTABLE} ${ANDROID_LIBM_PATH}" )
  # C objects:
  set( CMAKE_C_CREATE_SHARED_LIBRARY "${CMAKE_C_CREATE_SHARED_LIBRARY} ${ANDROID_LIBM_PATH}" )
  set( CMAKE_C_CREATE_SHARED_MODULE  "${CMAKE_C_CREATE_SHARED_MODULE} ${ANDROID_LIBM_PATH}" )
  set( CMAKE_C_LINK_EXECUTABLE       "${CMAKE_C_LINK_EXECUTABLE} ${ANDROID_LIBM_PATH}" )
 endif()
endif()

# Add Fortran support
set( CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_CXX_CREATE_SHARED_LIBRARY} -lgfortran" )
set( CMAKE_CXX_CREATE_SHARED_MODULE  "${CMAKE_CXX_CREATE_SHARED_MODULE} -lgfortran" )
set( CMAKE_CXX_LINK_EXECUTABLE       "${CMAKE_CXX_LINK_EXECUTABLE} -lgfortran" )
# C objects:
set( CMAKE_C_CREATE_SHARED_LIBRARY "${CMAKE_C_CREATE_SHARED_LIBRARY} -lgfortran" )
set( CMAKE_C_CREATE_SHARED_MODULE  "${CMAKE_C_CREATE_SHARED_MODULE} -lgfortran" )
set( CMAKE_C_LINK_EXECUTABLE       "${CMAKE_C_LINK_EXECUTABLE} -lgfortran" )

(This might not be the clean way to add them though.)

Hi @buffer51. It works. Thank you for your help and I appreciate it very much 👍
Wish you a good day :)

Happy to help :)
Le 2 mars 2017 8:42 AM, "huyn" notifications@github.com a écrit :

Closed #8 https://github.com/buffer51/android-gfortran/issues/8.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/buffer51/android-gfortran/issues/8#event-983194906,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFuOCZlUs4d6GqL_gk47tSFyTsXQWdVdks5rhnMCgaJpZM4MLGhJ
.


text:
Question about some strange classes...

I don't know if this is a mistake but I want to ask:

Why are there 2 identical "Mapper" classes in "mobile-UI" and "presentation"?
What is a purpose of having 3 identical "Buffero" data classes in "domain", "presentation", "mobileUI" and "remote"?

@urosjarc  I would like to take credit for that, but @hitherejoe is the author :-) Indeed this is a masterpiece, one from a few I have found with a separated components into gradle modules, as much as possible without dependency on Android.

authors: michalharakal urosjarc


text:
Add IME support

CJK users general has a input method to input CJK char.
dlangui not handled WM_INPUT WM_IME message, so IME not in a right position (should display under the editing line).
dlangui:

windows notepad:

AvaloniaUI code here:
https://github.com/AvaloniaUI/Avalonia/blob/567a38ec7206df80cf81343fcabaa22f8db0e45c/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs#L676
Windows docs:
https://learn.microsoft.com/en-us/windows/win32/intl/input-method-manager

Also, I added this (and other input method thing) to my list TODO list so I'll look into it when I get free time

authors: GrimMaple alluLinger

repo: buggins/dlangui


text:
[thread_queue] Uncaught exception not delivered when Bugsnag.notify was previously called.

Describe the bug
Uncaught exception from a ruby script is not notified to bugsnag when:

thread_queue is chosen as a delivery method
a notification has been sent manually by calling Bugsnag.notify('my error') any time before the uncaught exception was raised.

Steps to reproduce
Configure Bugsnag with delivery method to thread_queue
Run:
Bugsnag.notify('This is notified correctly')
raise 'This is not notified with thread_queue'
Environment

Bugsnag version: 6.24.0
Ruby version: 2.7.6
Bundle version: 2.3.4
Rails version: 6.1.6.1

My understanding of the issue
Bugsnag::Delivery::ThreadQueue registers a at_exit to finish processing all notifications from the queue and then stop the thread that dequeue the notifications.
Bugsnag register a at_exit hook to deliver the unhandled error to Bugsnag::Delivery::ThreadQueue
This doesn't work when a notification was first sent with Bugsnag.notify because afterward, raising an unhandled error will be processed by Bugsnag at_exit however Bugsnag::Delivery::ThreadQueue at_exit was already processed.

Hi @alx75 , thanks for reporting this. I've been able to reproduce the issue - we're going to take a look as soon as priorities allow.

Hi @alx75 . Just a quick update, this does seem to be an issue for Ruby scripts that aren't running in a webserver.
We're looking to fix it in the next major version release, for now using the synchronous delivery looks like a good option as a workaround. We will update again once that has been released.

repo: bugsnag/bugsnag-ruby


text:
chore(master): release 1.0.15

:robot: I have created a release beep boop
1.0.15 (2023-02-22)
Bug Fixes

closes #38 (6f6fcaa)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/builder555/PineSAM/releases/tag/v1.0.15 :sunflower:


text:
chore(master): release 1.3.1

:robot: I have created a release beep boop
1.3.1 (2023-02-28)
Bug Fixes

hide pinecil name by default. closes #56 (0593657)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/builder555/PineSAM/releases/tag/v1.3.1 :sunflower:


text:
Build Log Archiving on Custom S3 Buckets

Adding more details to our feature on archiving of build logs to custom S3 buckets after these details have been asked on a few instances.

@lizrabuya, I'm skimming through old PRs to see if there are any I can quickly resolve, and this looks like a good candidate. I'll update the branch, incorporate the final suggestions, and merge for you. Let me know if there are any issues with that. 😊

authors: lizrabuya mbelton-buildkite

repo: buildkite/docs


text:
Stack creation fails with errors about subnet availability

Sometimes stack creation fails with:
Value (us-east-1a) for parameter AvailabilityZones is invalid. Subnets can currently only be created in the following availability zones...

This is because if no AvailabilityZones is provided, the list of all availability zones is used, but only of these can have subnets created. Because each account is different (the availability zones are randomly named), a general solution is very difficult.
https://stackoverflow.com/questions/21390444/is-there-a-way-for-cloudformation-to-query-available-zones-for-subnet-creation

FWIW deis/deis#1601 has this issue too

I was able to work around it by specifying us-east-1a, us-east-1b, us-east-1d for the AvailabilityZones option.

I swear I've worked in this exact bug several times now, but I am cursed to
forget the solution. I dimmly recall it's not fixable. Will do some
searching.
On Fri., 7 Oct. 2016 at 6:19 am, tristanoneil notifications@github.com
wrote:

I was able to work around it by specifying us-east-1a, us-east-1b,
us-east-1d for the AvailabilityZones option.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/buildkite/elastic-ci-stack-for-aws/issues/41#issuecomment-252062138,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA9juyTfcqg-SV7QKv0MH8uTgP9BL2cks5qxUnSgaJpZM4IIAT7
.

As @tristanoneil said, the fix to this is to provide a list of az's for the AvailabilityZones template option. This differ from account to account, so we can't automate this for now.

This is quite an old issue with no recent activity. From some searching it seems the expected way to fix this is to have a default VPC and default subnets which Fn::GetAZs will use to populate the list, otherwise it will return all the AZs including invalid ones.

authors: keithduncan lox toolmantim tristanoneil

repo: buildkite/elastic-ci-stack-for-aws


text:
Create Semantic Chip

Like Chip, but using the semantic tokens.
The Figma component is not yet ready.

You mean positive/negative/warning/info etc? Maybe we can call it FeedbackChip, or StatusChip? Or even, we could use the same Chip and extend the available colors?
What does this chip have that distinguishes it from the regular chip apart from the color?

I would prefer "semantic" to connect them only to the colors, not giving interpretations of their use (status) or connecting them to other components (feedback).
I imagined them separated from the Chip for two reasons:

a different use of color on labels (chip has all secondary label text, the semantic chip would have semantic color texts)
a different configuration than a Chip (e.g. border-radius: 4px) that makes it clear that they are not categorical chips

Closing as this will be part of the new Bento redesign

authors: Phyele gabro veej

repo: buildo/bento-design-system


text:
Anroid: retrieveCalendars is returning an empty list

Describe the bug
On Android 14, retrieveCalendars is returning an empty list for me. I'm seeing this with the example app as well as in our own app that was previously working in the past.
To Reproduce
Steps to reproduce the behavior:

Open example app
Grant calendar permission
See empty screen

Expected behavior
It should return a list of calendars on the device
Screenshots
n/a
Device(s) tested
Pixel 9 Emulator, Android API 35
Pixel 8 Emulator, Android API 34
Pixel 6 device, Android v14
Flutter doctor
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.7 23H124 darwin-arm64, locale
    en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.93.1)

Additional context
  device_calendar:
    dependency: "direct main"
    description:
      name: device_calendar
      sha256: "683fb93ec302b6a65c0ce57df40ff9dcc2404f59c67a2f8b93e59318c8a0a225"
      url: "https://pub.dev"
    source: hosted
    version: "4.3.3"
    ```

Can't replicate this issue on my end, both before & after I updated my flutter & android SDK.
Maybe it's device / account issue?

@thomassth - thanks for the quick reply.
I'm using the same google account on multiple devices and emulators. This should work on the emulator, correct?

FYI - I had a coworker test the example on their machine/device. They saw the same results. No calendars returned on Android, but worked fine for iOS.
I tested this native android example on my same device and it worked fine. So, that gives me some evidence the problem is with this library.
When I get some time, I'm going to setup my debugger with the example and see what's going on, comparing the kotlin code between the two projects.

Closing this issue.
After a lot of debugging today, I was able to confirm the latest version of the package from the master branch is working on my emulator device. I logged into a google account and could see the list of calendars, events, etc.
@thomassth - thanks for being so responsive, and sorry.
If others run into something similar, double check permissions and also check that you're logged into the google account on the device and maybe reboot the device after logging in.

authors: dbrpci thomassth


text:
TypedObject isNull() now true when value is null

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
Before, force casting a null to LONG, for example, would return a new TypedObject(Type.LONG, null) which is incorrect and causes some evaluators to throw when they shouldn't.

Note, a TypedObject can be "null" and "unknown" at the same time now, or null and primitive, or null and a list, etc. whereas being null was exclusive before.

repo: bullet-db/bullet-record


text:
Prevent view instance variables from leaking into render calls

Due to the way Action View's rendering works any instance variable on the template, usually copied over from a controller, will leak into any partial renders like so:
<%# app/views/posts/index.html.erb %>
<%= render "post" %>

<%# app/views/posts/_post.html.erb %>
<%= @post.title %> # The partial relies on the @post instance variable, but it should've used a local variable

Now, if apps add an initializer like this:
NicePartials.prevent_instance_variable_leaks = Rails.env.development? || Rails.env.test?

NicePartials will clear out any instance variables during a render call and reset them afterwards.
Note: this shouldn't be enabled in production. Catch the issues in development or test instead.

@seanpdoyle I can't remember if we've talked about this, but have you wanted this in the past? Do you mind giving this a look over? The tests are a little sparse, I'll try to check in a Rails app too, but do you have other ideas for things to check?

@kaspth I have a distinct memory of discussing this, but I think it's a great idea for a configuration value or linter flag.

@seanpdoyle ah yeah, that's a great point. That could just scan app/views/**/_* for something like /@\w+/. That may be way easier than this.

Let's go with the linter version and avoid the maintenance burden here.

authors: kaspth seanpdoyle


text:
updated logo and favicon

Updated logo and favicon

Checked on: FF, Safari, Chrome, IE11, & iOS Safari 9.
@jgodi or @TheReal have any concerns about merging this and closing this issue?

@krsween LGTM. Nice SVG inline.

authors: TheReal krsween yi-ren

repo: bullhorn/career-portal


text:
🛑 Website2 is down

In 1c90097, Website2 (https://buluma.me.ke) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Website2 is back up in 4db05d0.

repo: buluma/uptime


text:
🛑 Website is down

In 0731542, Website ($MAIN_SITE) was down:

HTTP code: 503
Response time: 1135 ms

Resolved: Website is back up in edf5b01 after 2 hours, 8 minutes.


text:
🛑 Website is down

In 8765d25, Website ($MAIN_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Website is back up in db69516.


text:
bundler package --all & bundle install --deployment do not work together when referencing local gems

I have created a repository with steps to reproduce, and a code example, here: https://github.com/arjunsharma/shared_local_gems_issue
Here's the TL;DR:
I have a couple of Rails apps that share local gems. When I deploy one of those apps to a PaaS like Pivotal Web Services (PWS), which uses CloudFoundry, only the Rails directory is pushed. This means that my directory that contains the shared local gems, which lives outside of both of the Rails apps, does not get pushed.
I have worked around this by using bundle package --all && bundle install to vendor my gems in vendor/cache. When I push my app to PWS, the buildpack it uses (based on the Heroku buildpack, which runs the same bundler commands) runs "bundle install --deployment". This errors out because my Gemfile.lock points to my vendor/cache directory, while my Gemfile points to the directory where the shared gems live. Here is the error:
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

You have added to the Gemfile:
* source: source at ../components/shared_gem

You have deleted from the Gemfile:
* source: source at vendor/cache/shared_gem

My current workaround is to use a ternary to tell bundler to look in vendor/cache if the local directory isn't present. This works because bundler install --deployment is only run during deployment, which is when I need bundler to point to vendor/cache.
I'm open to trying to help patch this issue if there's a change that needs to be made in Bundler. If there's another way I should be approaching this issue, I'm also happy to test out alternate solutions and close this issue. The real client project I'm working on where this issue came up has > 10 local gems, and having 10 ternaries in my Gemfile isn't my favorite solution to this issue.
Thanks.

I'm not entirely sure this is a bug—changing the path of a gem is not allowed during --deployment mode. If you actively want to change the path only during deploys, I think you should not be using --deployment (although then you lose the guard against desynchronized Gemfiles and locks that deploy mode provides ). If you don't want to change the path, why not have your deploy script create a symlink at the location where Bundler expects to find the gem?

My concern is that I'm not sure if bundle package --all && bundle install should be changing the Gemfile.lock, although I will readily admit that despite doing a lot of Ruby development for the last few years I'm certainly not a bundler expert.
After running those two commands in my sample code, the Gemfile.lock now says:
PATH
  remote: vendor/cache/shared_gem
  specs:
    shared_gem (0.1.0)

But my Gemfile continues to say:
gem 'shared_gem', path: '../components/shared_gem'

which is an invalid state for bundle install --deployment, which is what the most common Ruby buildpacks do. (Here is where it does it in the Heroku Ruby buildpack, the CloudFoundry Ruby buildpack is forked from that).
If this is the expected behavior, then I will probably continue to maintain the ternary in my Gemfile to make it work for deployments rather than manage symlinks. It just feels like a hacky workaround for what seems to be a valid use case.
The other possibility is that maybe the buildpacks shouldn't do a "bundle install --deployment" if the gems are already present in vendor/cache?

What do you think would make sense in this situation? It seems bad to modify your Gemfile, and --deployment mode by definition raises an exception of the lock and Gemfile don't match. As a result, I'd suggest symlinking vendor/cache/component to ../../../component in development, and then changing your Gemfile to match.

Closing this due to lack of feedback.

authors: agis- arjunsharma indirect

repo: bundler/bundler


text:
[Lock] Allow removing platforms

\c @indirect

👍 @homu r+

:pushpin: Commit d8713e3 has been approved by indirect

:hourglass: Testing commit d8713e3 with merge de9cc98...

:broken_heart: Test failed - status

@homu retry

:broken_heart: Test failed - status

@homu retry

:hourglass: Testing commit d8713e3 with merge b148a85...

:sunny: Test successful - status

authors: homu indirect segiddins


text:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.ImageView ja.burhanrashid52.photoeditor.PhotoEditorView.getSource()' on a null object reference

Hi
Thank you for this awesome library
This library used to work for me on another project last year , But this time on new android project (Base on AndroidX) , I get the following error :

java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.ImageView ja.burhanrashid52.photoeditor.PhotoEditorView.getSource()' on a null object reference

I import your sample editor into my main project , When i try to load the editor from any activity , It get me the same error
I already added the EditImageActivity in my manifast file

The simple code is it :

PhotoEditorView mPhotoEditorView = findViewById(R.id.photoEditorView);
Typeface mEmojiTypeFace = Typeface.createFromAsset(getAssets(), "emojione-android.ttf");
PhotoEditor mPhotoEditor = new PhotoEditor.Builder(this, mPhotoEditorView)
.setPinchTextScalable(true)
.setDefaultEmojiTypeface(mEmojiTypeFace)
.build();

The error output is :

2020-02-09 19:47:38.415 8708-8708/com.prjtemp42.android E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.prjtemp42.android, PID: 8708
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.prjtemp42.android/com.prjtemp42.android.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.ImageView ja.burhanrashid52.photoeditor.PhotoEditorView.getSource()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.ImageView ja.burhanrashid52.photoeditor.PhotoEditorView.getSource()' on a null object reference
at ja.burhanrashid52.photoeditor.PhotoEditor$Builder.(PhotoEditor.java:866)
at com.prjtemp42.android.MainActivity.onCreate(MainActivity.java:234)
at android.app.Activity.performCreate(Activity.java:6662)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)

Any help will be great
Thank you 👍

java.lang.NullPointerException: Attempt to invoke virtual method 'void ja.burhanrashid52.photoeditor.PhotoEditor.setFilterEffect(ja.burhanrashid52.photoeditor.PhotoFilter)' on a null object reference
at com.burhanrashid52.photoeditor.EditImageActivity.onFilterSelected(EditImageActivity.java:486)
at com.burhanrashid52.photoeditor.filters.FilterViewAdapter$ViewHolder$1.onClick(FilterViewAdapter.java:66)

I got the same error. Then, before running Builder, I added image to the photoEditorView like this :
photoEditorView.getSource().setImageURI(imageUri);

It worked fine.

Closing due to no activity.


text:
Triple-clicking to select throws an error when editing is disabled

The problem is that when selecting by triple-clicking, the tail of the selection is outside of the editor. I added a failing test in this PR.

I think it can be solved by identifying this case and then limiting the selection to the last possible position inside the editor (I guess the direction of the selection has to be taken into account as well).

@YoranBrondsema thanks as always for the very thorough bug report (and failing test). I'll take a look at this. Should be possible to tighten up Position.fromNode to better deal with this case.

authors: YoranBrondsema bantic

repo: bustlelabs/mobiledoc-kit


text:
Not all possibilities are checked

Hi,
Im running the bot and i get the output below,
im trying to understand why there is no Bitfinex/Cexio  there?
if there was, would it be a position the bot will enter(~+2.59)?
Bitfinex: 7,359.90 / 7,360.00
Kraken: 7,359.60 / 7,364.00
Cexio: 7,535.10 / 7,555.70
Bitfinex/Kraken: -0.01% [target  0.80%, min -0.41%, max  0.56%]
Cexio/Bitfinex:	-2.59% [target  0.80%, min -3.31%, max -2.32%]
Cexio/Kraken:	-2.60% [target  0.80%, min -3.06%, max -2.40%]

I think the problem is at main.cpp:
params.addExchange("Cexio", params.cexioFees, false, true);
cex.io short is implemented so it shoud be
params.addExchange("Cexio", params.cexioFees, true, true);

Is it actually implemented though? Both sendShortOrder and sendLongOrder seem to just call sendOrder.

i think it's implemented tought im not sure :
They both call the same function but it seems to handle both cases(like in bitfinex).

I don't think so. First of all, a quick disclaimer. I don't have any knowledge of short selling and all that finance related stuff. Now, if I understand correctly, it seems to me that the to do short selling, you would need to use the open_position method, but the code right now seems to call place_order, and I don't think that can do short selling. However, if you believe otherwise, why don't you replace the boolean and find out what it does with a small amount of money. As I said, my understanding of the finance part isn't deep enough to conclusively say anything about this. Why don't we ask the person that coded the cexio stuff? I posted a comment on his pull request, let's hope he reads it and comes here.

I couldn't fully test short selling with someone else's Cex.io account that I was using for development and I don't have my own account with them.
@osheratias is correct in changing that line of code in main.cpp. This will enable short selling for Cex.io (even if it ends up not working properly).
@LasseMoench You may be correct about needing to use open_position instead of place_order to initiate a short...the best I can recommend is change the above referenced line in main.cpp, test short selling with a small cash amount, and report back here with the results.
If we end up needing to implement open_position for shorts, I can work on it.

In addition to trying it out, we might also ask cex.io support how to do a short sell. I don't have an account so I can't try it, I also don't have any bitcoin funds to quickly fund a new account since I am a poorish student :) @osheratias can you just enable it and see what happens with a small amount of money? The only thing that should happen if it fails is that the long order completes while the short sell fails and you have to manually revert the long order.

I created a cex.io account and funded it, gonna try it out now. However, I am 98% sure that we need open_position, since they talk about positions wherever leverage/shortselling is involved in the gui. @cricc78 would you be willing to get into it? It would be really great for everyone to have another short selling exchange apart from kraken and bitfinex, since bitfinex can't be used by people with under 10k$ anymore.

Yes, I'll work on it. Please let me know your results as well.

I will. I'm having trouble activating my api key though, and the support only sends me automatic replies on how to recover my account :(

OK, I just created an account with cex.io as well, now that they are once again accepting new registrations. It won't let me activate margin trading so that I can short sell, however. Probably because I'm based in the US. Were you able to activate margin?

Yes, I could activate it, I'm in Germany. As soon as I manage to activate my API key I'll post here, I can test everything then. Maybe I can even create an API key for you so you can test on my account.

I got in touch with the CEX.io team concerning the API key. Apparently you need to deactivate two-factor authentication, enable the API, then reenable two-factor authentication. It worked for me.

@LasseMoench I will give it a go.

any news about that? does anyone have a working code to post a short selling on cex?

authors: LasseMoench cricc78 fdoumet monossido osheratias

repo: butor/blackbird


text:
Assertion Failed

Hello,
I'm getting this error when trying to use this library.

Sorry. There is no way I can help. You haven’t provided any kind of repro or information.

Sorry. This is the full error. Seems to be caused by this line.

I don't need the error. I need a repro (code that I can run to reproduce the error).

Easiest for you would probably be for you to share your app/code with me (so that I can run it and debug how it got into this unexpected state). If you can't do that, maybe you can reproduce the behavior in a Code Sandbox or something. (If you can't do either, I won't be able to help.)

fixed, sorry, was my fault with conditional rendering

Gotcha. No prob

Ilillvqrii

authors: Ailakks bvaughn

repo: bvaughn/react-resizable-panels


text:
Get rid of dom-helpers dependency

The last version of react-virtualized has dependency
"dom-helpers": "^2.4.0 || ^3.0.0",
But the last version of dom-helpers is 5.1.3.
My suggestion is to remove this dependency at all. You can simply copy the only required function (scrollbarSize) into your code.

That is why I have to roll back to version 9.21.0. Our library which uses react-virtualized compiles well, but every project which uses this library now fails at webpack compilation stage with error message:

Module not found: Error: Can't resolve 'dom-helpers/util/scrollbarSize'
The message stands even after you add dom-helpers to projects package.json file.

@gsbelarus , looks like it has been fixed in the last version. 9.21.2. So, closing the issue.

I have this problem exactly with 9.21.2 and rolled back to 9.21.0.

@gsbelarus , I see. So, for you the problem appeared because you had other package referencing old version of dom-helpers. In my case it was vice-versa - 9.21.2 solved my problem because now all my packages depend on the newest version of dom-helpers. Maybe you should better upgrade other packages which depend on older version of "dom-helpers" ? (if it's possible)

We have a big mono repository maintained with lerna. All projects are updated to latest dependencies. With 9.21.2 we get an error during webpack compilation of a project which uses our library, which, in its turn, uses react-virtualized. The library itself compiles fine.

Anyway, dom-helpers not so tiny as its name stands:
https://bundlephobia.com/result?p=dom-helpers@3.4.0
So, I would definitely recommend to get rid of it and just inline that single function.

I see will update!

hi! @gsbelarus as we are only using dom-helpers via import paths like dom-helpers/scrollbarSize the bundle size impact is trivial.
I can see from your error message that it is importing dom helpers from dom-helpers/util/scrollbarSize this should not be the case in the latest release of react-virtualized

PR that upgraded https://github.com/bvaughn/react-virtualized/pull/1421

authors: ArtemZag gsbelarus wuweiweiwu

repo: bvaughn/react-virtualized


text:
🛑 Trifecta Esplanade A Block is down

In 8f5233a, Trifecta Esplanade A Block (https://cloud.tymly.in/status/1153) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Trifecta Esplanade A Block is back up in 0c54404.

repo: bvenkysubbu/tymlymonitor


text:
🛑 SBC Nest B Block is down

In 9ab9cc4, SBC Nest B Block (https://cloud.tymly.in/status/1128) was down:

HTTP code: 521
Response time: 21512 ms

Resolved: SBC Nest B Block is back up in cf45808.


text:
🛑 Desai Grandeur 2 is down

In 0cb1c43, Desai Grandeur 2 (https://cloud.tymly.in/status/1134) was down:

HTTP code: 521
Response time: 20235 ms

Resolved: Desai Grandeur 2 is back up in 26b3023.


text:
🛑 Trifecta Esplanade Multipurpose Hall is down

In 95604b3, Trifecta Esplanade Multipurpose Hall (https://cloud.tymly.in/status/1169) was down:

HTTP code: 502
Response time: 7477 ms

Resolved: Trifecta Esplanade Multipurpose Hall is back up in c65bd1c.


text:
🛑 SMR Vinay Cascade B Block is down

In 11a2672, SMR Vinay Cascade B Block (https://cloud.tymly.in/status/1093) was down:

HTTP code: 521
Response time: 20987 ms

Resolved: SMR Vinay Cascade B Block is back up in 9004ad7.


text:
🛑 Prakruthi Villas Sarjapura is down

In 39adc9d, Prakruthi Villas Sarjapura (https://cloud.tymly.in/status/1058) was down:

HTTP code: 521
Response time: 254 ms

Resolved: Prakruthi Villas Sarjapura is back up in 59b097a.


text:
🛑 Trifecta Esplanade C Block is down

In db6820c, Trifecta Esplanade C Block (https://cloud.tymly.in/status/1155) was down:

HTTP code: 521
Response time: 479 ms

Resolved: Trifecta Esplanade C Block is back up in 1134f69.


text:
🛑 SBB Touchstone A1 Block is down

In 146a791, SBB Touchstone A1 Block (https://cloud.tymly.in/status/1186) was down:

HTTP code: 521
Response time: 228 ms

Resolved: SBB Touchstone A1 Block is back up in 0b37212.


text:
🛑 Sraddha Whitecliff is down

In 0a1da05, Sraddha Whitecliff (https://cloud.tymly.in/status/1033) was down:

HTTP code: 521
Response time: 228 ms

Resolved: Sraddha Whitecliff is back up in e59a880.


text:
🛑 Mahaveer Varna B3 is down

In 2cd4f5f, Mahaveer Varna B3 (https://cloud.tymly.in/status/1086) was down:

HTTP code: 521
Response time: 224 ms

Resolved: Mahaveer Varna B3 is back up in 4a23fdd.


text:
🛑 Trifecta Esplanade C Block is down

In 2c8f5c1, Trifecta Esplanade C Block (https://cloud.tymly.in/status/1155) was down:

HTTP code: 521
Response time: 20247 ms

Resolved: Trifecta Esplanade C Block is back up in 086dfe5.


text:
🛑 Sterling Shalom C Block is down

In d75fbb7, Sterling Shalom C Block (https://cloud.tymly.in/status/1011) was down:

HTTP code: 521
Response time: 18859 ms

Resolved: Sterling Shalom C Block is back up in 51fc45a.


text:
🛑 SMD Altezz Block C is down

In 6e09d39, SMD Altezz Block C (https://cloud.tymly.in/status/1177) was down:

HTTP code: 521
Response time: 234 ms

Resolved: SMD Altezz Block C is back up in 79e3d23.


text:
🛑 Wilson Vintage 2 is down

In f59b72a, Wilson Vintage 2 (https://cloud.tymly.in/status/1038) was down:

HTTP code: 521
Response time: 217 ms

Resolved: Wilson Vintage 2 is back up in 218f5c9.


text:
🛑 DSR Sunrise Towers is down

In 7298276, DSR Sunrise Towers (https://cloud.tymly.in/status/1025) was down:

HTTP code: 521
Response time: 20246 ms

Resolved: DSR Sunrise Towers is back up in e0776a5.


text:
🛑 Sterling Shalom A Block is down

In a0cb2f8, Sterling Shalom A Block (https://cloud.tymly.in/status/1024) was down:

HTTP code: 521
Response time: 20227 ms

Resolved: Sterling Shalom A Block is back up in a418362.


text:
🛑 Amrutha Sarovar Office is down

In 308de5e, Amrutha Sarovar Office (https://cloud.tymly.in/status/1140) was down:

HTTP code: 521
Response time: 227 ms

Resolved: Amrutha Sarovar Office is back up in e930554.


text:
🛑 PSR Aster 1 is down

In f6a710f, PSR Aster 1 (https://cloud.tymly.in/status/1059) was down:

HTTP code: 521
Response time: 22747 ms

Resolved: PSR Aster 1 is back up in e5e7a1b.


text:
User Avatar Handling: Use Default Avatar

As a user
I want the default user avatar to be shown in case I have not configured my personal avatar yet
So that the user profile button shows the default avatar.
Please note:

The user profile button is contained in the navigation bar.
The button is right aligned over the navigation bar component.
A click on the button should log a message to the console - behavior will be added as soon as the drop down is being implemented.

A click on the button may lead to the "User Profile" page.

repo: bvfnbk/plopp