Combining certain syntaxes in from will fail parsing in valid sql

In the SQL below you notice how I combine methods in the from clause. ONT and ORD are joined in the where and ORD and ORD_LINE are joined in the from. I've tested this on SQL Fiddle(SQLite) and it works however the sqlite-parser does not like this.
select
ord.ordnum
from
ord_note ont,
ord o
left outer join ord_line
on (ord_line.wh_id = o.wh_id and ord_line.ordnum = o.ordnum  and ord_line.client_id = o.client_id)
where
ont.wh_id = o.wh_id
and ont.ordnum = o.ordnum

CREATE TABLE ord
(
ordnum integer primary key,
wh_id varchar(20),
client_id varchar(30)
);
CREATE TABLE ord_line
(
ordnum integer primary key,
wh_id varchar(20),
client_id varchar(30)
);
CREATE TABLE ord_note
(
ordnum integer primary key,
wh_id varchar(20),
client_id varchar(30)
);
INSERT INTO ord
(ordnum, wh_id, client_id)
VALUES
(1, '1234', 'ddd');
INSERT INTO ord_line
(ordnum, wh_id, client_id)
VALUES
(1, '1234', 'ddd');
INSERT INTO ord_note
(ordnum, wh_id, client_id)
VALUES
(1, '1234', 'ddd');

According to the documentation it doesn't look like this syntax is allowed. I also found this stack overflow post discussing this syntax.

Actually the way documentation is written, it is not expressly forbidden. Also I have run this query against a SQLITE DB and it does work. Also works on oracle, mssql and mysql.
Anyway. Not a huge issue. I will work around it.

Good news, your original query is now parsed successfully by the latest release of the parser v1.0.0-beta!


when building, error on mscoree.lib?

so when I'm building the injector, theres only one problem/error, and that is "cannot open input file mscoree.lib". Whats wrong? did I not download the file? I cloned it using GitHub desktop. any help?

I resolved this by exclude mscoree.lib from Linker->Input->Additional Dependencies


cmd/doc: show which version of Go introduced symbols

#5778 introduced this feature in x/tools/cmd/godoc, but it is missing in cmd/doc, which replaces the godoc command line mode.
/cc @dmitshur

Just a minor clarificaition: godoc CLI mode just shows the versions of fields in a struct, not functions or methods. The UI shows all. Are we going to show versions for all or just struct fields ?


Connect-TopDesk does not fail with incorrect URL

Describe the bug
When using Connect-TopDesk and providing a valid URL but incorrectly not pointing to any instance, the function returns true.
To Reproduce
Steps to reproduce the behavior:

Run: Connect-TopDesk -TopDeskURI 'https://invalid.topdesk.net'
Output: True

Expected behavior
When attempting to connect to a non-existent instance the function should return false.
Desktop (please complete the following information):

OS: Win10
PS Edition: Core
Version: 6.2.3

Error message should be improved, not very intuitive this way.
Providing a message that indicates the specified instance could not be found with an objectnotfound exception.


Coprocessor based watchdog timer

Why
IoT gives the ability to connect devices in very remote places to an internet based system. Restarting such remote devices is an expensive and time consuming process that is pretty much impossible. Ideally, devices should be reliable enough to avoid getting into unresponsive states. However on several occasions, devices have stopped working until they have been restarted. These issues are impossible to debug due to being sporadic combined with lack of debug information.
In this unideal situation, a watchdog timer implemented in the coprocessor could be useful to bring the system back online.
Proposed implementation
A resettable countdown timer combined with some sort of internal variable that shows if the watchdog has been triggered. Configuration could be done by custom SYSEX firmata commands.
When the watchdog reaches zero, the coprocessor will disable power to the system, then reenable after a few seconds.
Foreseen issues

When the application container is updated, what happens to the watchdog timer?

Manual disable of timer by application
Hooking stopping of container
Long watchdog period (> 10 minutes)

What happens when there is a bottleneck or backlog in the application?

Long watchdog period (> 10 minutes)

What happens when the system is in sleep mode?

Disable watchdog timer

References
https://www.silabs.com/community/wireless/bluetooth/knowledge-base.entry.html/2017/02/23/watchdog_on_bgm111-SuaX

@Bucknalla @anujdeshpande here's an interesting request for expanding the firmata capabilities.

Interested in this feature. Do you have an ETA for version 2.0.0?

cc @Bucknalla since I know you were looking into this.

@CesarChavezRico we ended up bumping this to the next release. This is in the pipeline, so will be coming :)

@Bucknalla thanks for the update. Looking forward to it.
For a little background now I am using a dedicated container to check other containers' health and command resets (power cycles) via de coprocessor when issues are detected. I am convinced that having the watchdog functionality implemented in the coprocessor is a much cleaner and robust solution.

Any updates on this feature?
Jelly fish requires a log in....


CSS Modules options do not work except localIdentName

Version
v2.8.1
Reproduction link
https://nuxtjs.org/api/configuration-build#loaders-css-and-loaders-cssmodules
Steps to reproduce
Add multiple options to the cssModules loader in nuxt.config.js
build: {
    extend (config, ctx) {},
    loaders: {
	cssModules: {
		localIdentName: '[local]_[hash:base64:4]', //Work
		modules: true, //Not work
		hashPrefix: 'my-custom-hash' //Not work
	}
     }
}

What is expected ?
I wanted to get a classname
Element

What is actually happening?
Adding and removing all of these options does not affect the result. Except localIdentName.

Element

This bug report is available on Nuxt community (#c9566)

Since css-loader v3 has moved cssModule related config to modules, so please use:
  loaders: {
    cssModules: {
      modules: {
        localIdentName: '[local]_[hash:base64:4]',
		modules: true,
		hashPrefix: 'my-custom-hash'
      }
    },
  }

This not work

Please provide a reproducible repo.

https://github.com/myparsec/CSS-Modules-not-work

Hi @myparsec , sorry that css-loader v3 upgration is still not released yet.
And your first config works fine, I think you may misunderstand the moudles and hashPrefix.
By default, css-loader generates hash from the webpack request like genHash('components/G-TheThemeSwitcher.vue+TheThemeSwitcher__switch'), hashPrefix is for adding a prefix (like salt) for generating more unique hash like genHash('my-hashcomponents/G-TheThemeSwitcher.vue+TheThemeSwitcher__switch').
About the modules: true, it will enable localIdent generation, so if your class has been converted to localIdentName, it means modules: true already works.

Oh, I get it, thanks.
I decided that the hashPrefix is added to the hash in the classname. Thanks again.


Removed max-width cap on media query that includes the make-grid call.

This better aligns to the bootstrap way of calling make-grid. Refer grid.less/grid.scss. This is to allow defining a smaller breakpoint and allowing the columns to flow up when larger breakpoints aren't defined.

@adjohnson916 I believe the same change needs to happen in the less version. Please refer to the bootstrap grid.less and note how they don't define the max-width for the media query wrapping the make-grid call. This is in case no large bp is defined, the smaller, in our case ms bp will flow up

@cjke I tried merging this but then realized it didn't quite work. Not applying the max-width causes the ms rules to take precedence over any wider rules on the same element, e.g. md, due to CSS load order. See my note at https://github.com/adjohnson916/bootstrap-grid-ms/blob/7b0a621e4e36d69e21d90c9b51d06ee417975d55/README.md#use, and also try it yourself with the test cases that I've just added this morning: https://github.com/adjohnson916/bootstrap-grid-ms/blob/9bb3c42991f00a9a7e9aadedd92019ee51f70d71/test/index-sass.html.
However, I decided to fix this issue with d1aff5469f80003a9711393f76e85be868e8f6b5, so the latest master should work as you expect - cascade ms styles upward at greater widths. I accomplished this by redefining the md and lg rules after the ms rules.
Released to Bower as v0.2.0.

Gotcha, nice one!


useParams() with nested routes that don't have a component property

Hello!
I have the next component:
const Home = () => {
  const params = useParams();

  return
Home {params.id}
;
};

And I want to render it for routes /home and /home/:id. So I use the next router config:
const routes = [
  {
    path: "/home",
    component: Home,
    children: [{ path: "" }, { path: "/:id" }]
  }
];

But useParams() doesn't return id. Though it works fine with the next config where I cannot have  path /home:
const routes = [
  {
    path: "/home/:id",
    component: Home
  }
];

Alternatively I can specify  component: Home directly in children but it causes full page rerender when I go from /home to /home/1:
const routes = [
  {
    path: "/home",
    children: [
      { path: "", component: Home },
      { path: "/:id", component: Home }
    ]
  }
];

As I can see it can be resolved via this proposal. But what can be done for now?
Link to repro.
Thanks in advance!

Yeah, optional params is really what you want for handling this scenario. For the time being the best alternative is probably to use a splat (*) to match the remaining path. Splats can be assigned to a parameter, so you could have a route like:
{
  path: 'home/*id'
  component: Home
}

Example
The biggest problem with this approach is splat routes can't have nested children since they consume the remaining path; however, they have the lowest matching priority so a sibling route can continue to work. If you need child routes it would be possible to add another <Routes> component within Home to manage it.

@rturnq thank you!


Add exception to catch class loading error

I am not sure if this is a bug or not. I found a place in the code where context is null but we are trying to use the Accumulo Class Loader.

I talked to @dlmarion a bit to try and figure out if we need this check or not. The problem I am having is there are parts of the code where we set useAccumuloClassLoader = true but context = null. The class loader code has a guard against context being null (since it is optional) and will default to returning the VFS loader. Table context is optional for users to set but internally this seems like a bug to me since we are expecting to use the "AccumuloClassLoader" to be returned but return the deprecated AccumuloVFSClassLoader. It could just be confusion over what exactly is the "AccumuloClassLoader".
Here is the part that returns the class loader in ClassLoaderUtil:
https://github.com/apache/accumulo/blob/68acf9f101efeaf3a612b39e898a3a58090470fa/core/src/main/java/org/apache/accumulo/core/classloader/ClassLoaderUtil.java#L75-L81

Here is the places that iterator methods use useAccumuloClassLoader(boolean)

ClientSideIteratorScanner.iterator().iterEnv(env).useAccumuloClassLoader(false);
RFileScanner.iterator() -> il.iterEnv(new IterEnv()).useAccumuloClassLoader(true));
RFileScanner.iterator() -> iterEnv(new IterEnv()).useAccumuloClassLoader(false));
OfflineIterator -> createIterator(KeyExtent, Collection) ->  iterLoad.iterEnv(iterEnv).useAccumuloClassLoader(false)));
IterConfigUtil.convertItersAndLoad() -> il = il.iterEnv(env).useAccumuloClassLoader(true)...
IterConfigUtilTest.createIter() -> iterLoad.iterEnv(new DefaultIteratorEnvironment(conf)).useAccumuloClassLoader(true);
CollectTabletStats -> createScanIterator() -> IterConfigUtil.loadIterators(visFilter, il.useAccumuloClassLoader(true));
ConditionCheckerContext -> buildIterator().iterEnv(tie).useAccumuloClassLoader(true)...
ScanDataSource -> createIterator().useAccumuloClassLoader(true).context(context);

So, I went back and looked at some code, and I believe that when useAccumuloClassLoader  is false, it means to load the class from the (Client) VMs classpath. Client is in parens here because I believe it's a distinction between server side and client side use of the code. If you look at the client-side references (ClientSideIteratorScanner, OfflineIterator, RFileScanner) to IterLoad.useAccumuloClassLoader, in all but one case they set it to false meaning use the client VM classloader (reference IterConfigUtil.loadClass).
The context is just a the name of a configured classloader. If context is null, then classes are loaded from the JVM application classloader. If context is not null, then classes are loaded from the classloader associated with that context name.

The problem I am having is there are parts of the code where we set useAccumuloClassLoader = true but context = null.

I don't think this is a problem. This is just saying that you want to load a class from the application classloader

Table context is optional for users to set but internally this seems like a bug to me since we are expecting to use the "AccumuloClassLoader" to be returned but return the deprecated AccumuloVFSClassLoader

The deprecated AccumuloVFSClassLoader is effectively the application classloader. I don't think this is a bug.

So, I went back and looked at some code, and I believe that when useAccumuloClassLoader is false, it means to load the class from the (Client) VMs classpath. Client is in parens here because I believe it's a distinction between server side and client side use of the code

I think that is correct that it is for loading on the client vs server side. On the client side we don't want to do anything special when loading classes, just use standard java mechanisms.

Reading this makes me wonder if moving classloading into the context would simplify things.  The ClientContext could load classses using standard java mechanisms and the ServerContext could override that behaviour and load classes using the specialized Accumulo mechanisms.  Then maybe would not need the useAccumuloClassLoader(boolean) method.

OK so it sounds like this is not a bug, just confusing, complicated code. I will close this PR since the error it is exposing is not an error.

Reading this makes me wonder if moving classloading into the context would simplify things. The ClientContext could load classses using standard java mechanisms and the ServerContext could override that behaviour and load classes using the specialized Accumulo mechanisms. Then maybe would not need the useAccumuloClassLoader(boolean) method.

That would be nice to differentiate between the client and server code since that is obfuscated right now. When I think of iterators, I think of server behavior but we have a lot of client code to deal with iterators.

That would be nice to differentiate between the client and server code since that is obfuscated right now. When I think of iterators, I think of server behavior but we have a lot of client code to deal with iterators.

I'm not sure, but this problem may be more general than iterators.  There maybe classes that other than iterators that are loaded in the client code.

So, I went back and looked at some code, and I believe that when useAccumuloClassLoader is false, it means to load the class from the (Client) VMs classpath. Client is in parens here because I believe it's a distinction between server side and client side use of the code

I think that is correct that it is for loading on the client vs server side. On the client side we don't want to do anything special when loading classes, just use standard java mechanisms.

I think this idea has some merit. But, I think it will be much simpler to address class loading changes further after the legacy stuff is removed, which can be done in 3.0.


Support for the local models?

I want to use this locally with Ollama and SD (or anything else). Is it possible?

Something like this could work for Ollama. I don't have SD running and I'm less familiar with the API so I commented out that and the epub stuff, but here's a start:
https://gist.github.com/sqrt10pi/dfca547ee263328cafb55947458a0838

ollama doesn't support max_tokens

Then, I think KoboldCPP API is a very good alternative to Ollama


Use multiple xml files?

Is it possible to use includes with sbe?  I want to have multiple schema that have some common types.  For example I want to have a common file that has the message header in it.  Then have to other files that use the same message header.  Is this possible?

Sadly, not possible to do Xinclude and validate with schemas. https://stackoverflow.com/questions/1098116/xinclude-schema-namespace-validation
We chose to promote schemas and to not make this complicated by also supporting Xinclude. It would just make things very complicated configuration wise as well as be very error prone.
It's possible to use Xinclude and XSLT or just simple XML tools to build a complete XML file to feed to SbeTool that does not contain the Xinclude.

Yeah ok.  Thanks for getting back to me!


Bug: bounding box always sent instead of actual polygon (WIP)

Codecov Report

Merging #126 (1c422ad) into master (3a71bee) will decrease coverage by 0.28%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #126      +/-   ##
==========================================
- Coverage   88.35%   88.06%   -0.29%
==========================================
  Files          41       41
  Lines        1365     1366       +1
==========================================
- Hits         1206     1203       -3
- Misses        159      163       +4

Flag
Coverage Δ

unittests
88.06% <100.00%> (-0.29%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

asf_search/CMR/translate.py
88.48% <100.00%> (-2.37%)
:arrow_down:


feat: change the license to MIT

The license for the devtools-backend is Apache-2.0
The license for the devttols-frontend is BSD 3-Clause "New" or "Revised" License
According to the Wiki, we can relicense it.
Below is the license report of our dependencies. There is no limitation for us to change the repo to MIT license.

Let's change the license to MIT. I use this tool to change.

@toxic-johann It looks weird to me that you haven't applied any changes on dependencies but the yarn.lock file has many deleted items, I'm not sure whether it's expected.


Streaming audio

Currently, audio data comes from .wav files or procedural techniques. To support streaming audio, StereoKit needs some additional functionality.

This is done and working!


Update Student id generation in Python code

Python code only generates ids with 2 numbers at the end and they are always duplicates. This needs to be tweaked so that they look more like the ids that are generated through the C code. Example of what is desired is in screenshot.

Closed in #52


[INLONG-3659][DataProxy] Add manageable entry to stop some TCP services

Title Name: [INLONG-3659][DataProxy] DataProxy add manageable entry, used to stop some services(TCP service).
Fixes #3659
Motivation
Explain here the context, and why you're making that change. What is the problem you're trying to solve?
Modifications
Describe the modifications you've done.
Verifying this change
(Please pick either of the following options)

[ ] This change is a trivial rework/code cleanup without any test coverage.

[ ] This change is already covered by existing tests, such as:
(please describe tests)

[ ] This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a follow-up issue for adding the documentation

what's the problem this PR wants to solve?

it's not an elegant implementation, we need a better solution. addShutdownHook may be a choice.


Pull diagnostics not being requested for newly opened files

"vscode-languageserver": "8.0.2"
I'm seeing pull diagnostics not being requested properly in the markdown language server. You can test this by:

In VS Code
Set "markdown.experimental.validate.enabled": true
Open vscode-docs repo
Open codebasics.md
Reload the window to get the server into a fresh state
Introduce an error in a link path in codebasics.md and confirm an error is reported (just make a link point to a file that doesn't exist)
Now open  config-linux.md and introduce an error
Notice that no errors are reported

To debug this, I added a log function that logs whenever connection.languages.diagnostics.on is called:
https://github.com/microsoft/vscode/blob/3a5a458643eab4a198af55cffa961e8baa406b7b/extensions/markdown-language-features/server/src/languageFeatures/diagnostics.ts#L69
Using this, I see it called correctly for files that are open when the window loads, but not for newly opened files. In this example, I started with codebasics.md open and then opened config-linux.md:

Instead of requesting diagnostics for config-linux.md when I open it, I instead see a new request for diagnostics for codebasics.md (this second request goes away if I turn off interFileDependencies)
All other features in the second file seem to work, it's just that diagnostics are not being requested on it. Any ideas what is going on?

This sounds similar to #1008 however I still see the bug with the latest publisher build (8.0.2)

I looked into this and after upgrading the extension to 8.0.2 (it was still using 8.0.1; I guess because of a yarn.lock) everything works for me as expected running out of source from the vscode extensions folder. Here is a screen cast

I did noticed something: on first open the file is validated twice. Once through the tab open and a second time by the document being open. However that shouldn't cause any problems expect performance. I will look into fixing this.
I also noticed that you enable pull onChange and onSave. I should have made these exclusive since it doesn't make sense to enable both. In your scenario I think it is enough to validate onChange.
Do you have any additional steps on how to reproduce this since you said you are still seeing this on 8.0.2

Ah yes, I updated the server to 8.0.2. but missed updating the client! Good find and sorry for the noise
I will also remove onSave as you suggest!

No problem. Found some other bugs while looking into this :-)


Don't call +sell in normal cases in Ford.

+sell invokes the type checker and thus adds 10ms to each event
where it is used. +sell is invoked in "tapes like {}". Ford
error messages use that format on errors. Many common Ford builds
are expected to fail, but swallow the error messages. This modifies
them so that they generate their error messages in a cheaper way.

Gosh these are incredibly more difficult to read than the single-line
versions
Would it be possible/desirable to restructure them to something more like
e.g.
=+  [renderer=(trip renderer) path=(spud (rail-to-path path-to-render))]
"ford: %bake {renderer} on {path} contained failures:"

On Wednesday, 12 December 2018, Elliot Glaysher<EMAIL_ADDRESS>wrote:

+sell invokes the type checker and thus adds 10ms to each event
where it is used. +sell is invoked in "tapes like {}". Ford
error messages use that format on errors. Many common Ford builds
are expected to fail, but swallow the error messages. This modifies
them so that they generate their error messages in a cheaper way.
You can view, comment on, or merge this pull request online at:
https://github.com/urbit/arvo/pull/936
Commit Summary

Don't call +sell in normal cases in Ford.

File Changes

M sys/vane/ford.hoon
https://github.com/urbit/arvo/pull/936/files#diff-0 (114)

Patch Links:

https://github.com/urbit/arvo/pull/936.patch
https://github.com/urbit/arvo/pull/936.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/urbit/arvo/pull/936, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABxXhiONNaDN3QFjVhhu7UUmGEe2TPyRks5u4YbPgaJpZM4ZQlxu
.

Four lines on average, actually: a more specific version of my complaint is
"having welds at all".
The desirable property I was hoping could be preserved, is that for every
single output line there is a source line that compactly describes its
structure. Further lines are necessary to work around the "we have nice
things" dynamic dispatch banhammer, and beyond that blank  ::  lines are
probably a good idea in the list contexts; it's not the number of source
lines, it's the usage of explicit concatenation, and the extra overhead /
misleading whitespace that introduces.
On Wednesday, 12 December 2018, Elliot Glaysher<EMAIL_ADDRESS>wrote:

Merged #936 https://github.com/urbit/arvo/pull/936 into
release-candidate.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/urbit/arvo/pull/936#event-2022925973, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABxXhjrIYPVedr0wZDLapRm_DmVoAmIYks5u4ZVxgaJpZM4ZQlxu
.


Provide example YAML dashboard

We should provide an example dashboard yaml config. Something like this.

This kind of things ?

Yes! This looks really cool. However, Home Assistant now generates entity IDs automatically and I wasn't able to set it manually in the integration, so it is not possible right now to make an universal example for all languages.


How to transcribe remote file stream from Amazon S3 directly instead of local file?

Hey folks, I'm storing voice note files (.m4a) in Amazon S3 buckets. I then pass that S3 file stream to the transcribe function, which takes in file in the parameters array, however it does not work as I'd want it to, throwing an exception.
Taking a step back, all code examples I've seen are usually using fopen to create a stream resource to a file on the local filesystem like so:
OpenAI::audio()->transcribe([
    'model' => 'whisper-1',
    'file' => fopen(storage_path('app/'.$this->transcript->hash), 'r'),
    'temperature' => 0.2,
    'response_format' => 'vtt',
]);

I'm trying to modify the file value above to use a file stream directly from S3 (remote). I saw the Laravel Storage facade (https://laravel.com/api/6.x/Illuminate/Support/Facades/Storage.html#method_readStream) has a readStream method, so I tried using that by:
public function handle(Attachment $attachment): void {
   $disk = $attachment->disk;
   $stream = Storage::disk($disk)->readStream($attachment->path);

    $response = OpenAI::audio()->transcribe([
        'model' => 'whisper-1',
        'file' => $stream,
    ]);
}

But that throws an exception on OpenAI's end:
OpenAI\Exceptions\ErrorException  1 validation error for Request
body -> file
Expected UploadFile, received: <class 'str'> (type=value_error).

I'm wondering how I can stream the audio file contents from Amazon S3, directly into the OpenAI client for transcribe? I saw this article doing it in Node.js: https://dev.to/antondosov/pipe-a-file-stream-from-aws-s3-to-openai-whisper-in-nodejs-3bkb so I'm guessing this should be technically possible in PHP, although look different of course.
Please let me know if I missed anything, I would love some help here!
Thanks for this awesome library! 🙌

Hey @gehrisandro, I tried again today and it seems to work with the right read flags to support S3.
Closing now, thanks!

@bradleybernard What flag did you used? I have the same issue.

Run at this same problem, for those stuck with this problem, just add the following inside s3 configuration inside config/filesystems.php:
[
	'disks' => [
		's3' => [
			'stream_reads' => true
		]
	]
]


Request for Integration of ISteamInventory Interface.

Judging by some of the games that have been released recently, the popularity of the Steam inventory service is highly increasing. And many developers are interested in it, including me.
So could you please add ISteamInventory interface? Appreciate your hard work.
https://partner.steamgames.com/doc/api/ISteamInventory

I'd been trying to extend the module API but unfortunately I've zero experience with rust. I only managed to figure out how the steamworks.js itself works, maybe this will help in some way.
For example, achievements.rs exposes Steamworks library method 'SetAchievement' in rust this way:
    pub fn activate(achievement: String) -> bool {         let client = crate::client::get_client();         client             .user_stats()             .achievement(&achievement)             .set()             .and_then(|_| client.user_stats().store_stats())             .is_ok()     }
Then it is declared in the 'client.d.ts' so it can be used in node through javascript.


can not bind chinese which input after table

Please look at the red cycle. I input some words after the table in the editor，but the model data which print outside does not changed.

I found that, the problem is not the table.
If the Chinese words not end with a new line.
The last line of the words will not bind to the model.
so the words must like.

你好

only the

你好

will not bind.

I tried with Edge and cannot reproduce the behavior with the official ng2-ckeditor plunker

The model change every time the text change.

@name100li : is your problem solved? Can the task be closed?


[comet-parquet-exec] Change path handling to fix URL decoding

We had a bug with decoding paths, in particular in CometExecSuite.partition col the path has a : in it, which either wouldn't stay as %3A or the spaces would end up as %20 or worse %2520. This cleans up the 3 tests that were failing for that reason. We might eventually want to send the original path over as a non-URL (i.e. convert on Java side) but this is good enough for now.

An errant .DS_Store made it in. I figured that would be in the gitignore. I’ll fix it tomorrow.


Remove fast_finish flag

It has been confirmed that the fast_finish flag is responsible for triggering multiple build notifications on #zftalk.dev.

Merged to develop.


Model.fit may cause an error

If the input is a list and the parameter of model.fit validation_split is active, then  standardize_X(X) will be called and it return X itself and it is expected to have a "shape" like (1, n_samples, n_features), but users will provide it like (n_samples, n_features) list.

I don't get it. Example please?

OK. if X_train = numpy.array([[1,3,4],[2,5,6]]) then model.fit(X_train, y_train, nb_epoch=200,validation_split=0.03, batch_size=50) works fine, because after standardize_X((X_train) it will become [array([[1,3,4],[2,5,6]]) ] , so slice_X works fine. But if X_train = [[1,3,4],[2,5,6]], then after standardize_X((X_train) it is still [[1,3,4],[2,5,6]], then there is a error in slice_X for it assumes X is a 3 rank tensor.

Keras is just not supposed to work with list inputs. It expects numpy arrays as inputs.


[feature / cleanup / help-wanted]Parallelize tests to catch more race conditions

At the moment, the vast majority of these tests are run serially, with the -race flag.
Unfortunately, since the test runner synchronizes state between each test that's run, the only kinds of data-races that -race can detect are internal-to-a-single-test races, which requires that a test run multiple goroutines and trigger the race condition.
That catches some things, and I'm thrilled to see the -race flag on there by default, but there are a ton of gaps that are possible.
To test more thoroughly, tests should generally be run in parallel.  Sometimes this'll make them run faster too, but that's not really my goal here.
As a concrete example, I'm working on a pull request which parallelizes a bunch, and it found a race condition where getRegisteredActivities doesn't acquire the lock protecting the activityFuncMap:
https://github.com/Groxx/cadence-client/commit/3da36d16f92d596f9885548fcb91eb0ccb438c0e#diff-dd4127da46647fa38a69883b7dfe4f1b
From a brief skim, it seems unlikely that this is actually a problem in any reasonable use of Cadence, but it's still not good.  And it's a perfect example of why tests should be parallelized by default.

At the moment, that branch will eventually fail with nondeterministic workflow errors if you rerun them enough, which I have not yet investigated:
2018-04-03T17:03:17.663-0700	ERROR	internal/internal_task_handlers.go:664	Replay and history mismatch.	{"error": "nondeterministic workflow: missing replay decision for ActivityTaskScheduled: (ActivityId:0, Input:[])"}
go.uber.org/cadence/vendor/go.uber.org/zap.Stack
	/Users/stevenl/gopath/src/go.uber.org/cadence/vendor/go.uber.org/zap/field.go:209
go.uber.org/cadence/vendor/go.uber.org/zap.(*Logger).check
	/Users/stevenl/gopath/src/go.uber.org/cadence/vendor/go.uber.org/zap/logger.go:273
go.uber.org/cadence/vendor/go.uber.org/zap.(*Logger).Error
	/Users/stevenl/gopath/src/go.uber.org/cadence/vendor/go.uber.org/zap/logger.go:176
go.uber.org/cadence/internal.(*workflowTaskHandlerImpl).ProcessWorkflowTask
	/Users/stevenl/gopath/src/go.uber.org/cadence/internal/internal_task_handlers.go:664
go.uber.org/cadence/internal.(*TaskHandlersTestSuite).TestWorkflowTask_PressurePoints
	/Users/stevenl/gopath/src/go.uber.org/cadence/internal/internal_task_handlers_test.go:429
runtime.call32
	/usr/local/Cellar/go/1.10.1/libexec/src/runtime/asm_amd64.s:573
reflect.Value.call
	/usr/local/Cellar/go/1.10.1/libexec/src/reflect/value.go:447
reflect.Value.Call
	/usr/local/Cellar/go/1.10.1/libexec/src/reflect/value.go:308
go.uber.org/cadence/vendor/github.com/stretchr/testify/suite.Run.func2
	/Users/stevenl/gopath/src/go.uber.org/cadence/vendor/github.com/stretchr/testify/suite/suite.go:102
testing.tRunner
	/usr/local/Cellar/go/1.10.1/libexec/src/testing/testing.go:777

It could be a sign I'm just parallelizing the wrong things.  But I'm hoping to flush out these kinds of potential-problems and either get them fixed or whitelisted, since the current test suite basically ignores them by accident.
Test-runs that trigger that error also reveal another thing that'd be good to fix, but can be addressed separately: none of these inject a per-test-logger that uses testing.T.Log(f), so the output from all tests (well, per suite) gets blended together, making it hard to diagnose problems.

All of which stuff like testify.Suite broadly exacerbates, since it doesn't fit particularly well with how go tests run, now that we have testing.T.Run to run sub-tests.  It's hard to parallelize, hard to sub-log, hard to everything, and its full feature-set can be summed up as:
func TestSuite(t){
  // setup
  t.Run("sub tests", func(t){
    // sub test setup
  })
  // teardown
}

so I try to rip it out whenever possible.

Due to the fact that this task will take 1 engineer sprint, cadence team decided not to fund this.
However, Cadence team is committed to fixing all bugs uncovered as part of this effort.


Chunks in dimension based worlds do not generate.

Hey have you made sure that every server is started?
The plugin sends a message in the console for ensurance.
The message should look like the following:
"[VanillaGeneratorPlugin]: Level nether successfully connected!"

This issue appears to have something to do with movement as the bots somehow cant move anymore when they switched dimensions. Im trying to fix this issue currently but do not know how, so this can take its time.

This issue should be resolved with the 0.0.6-SNAPSHOT update! Thanks for helping out!


Mirror Max Width values for Min Width

I found myself needing to set a minimum width for a component, and mechanically wrote min-w-48 as I thought that any valid Tailwind max width value would have its counterpart in the min width classes.
Turns out that min-width only supports two values: min-w-0 and min-w-full whereas max-width has 16.
I know the Tailwind config can be extended for my use case, but I’d like to suggest the idea of adding a few more min-width classes, to approach parity between both:

Class
Properties

.min-w-xs
min-width: 20rem;

.min-w-sm
min-width: 24rem;

.min-w-md
min-width: 28rem;

.min-w-lg
min-width: 32rem;

.min-w-xl
min-width: 36rem;

.min-w-2xl
min-width: 42rem;

.min-w-3xl
min-width: 48rem;

.min-w-4xl
min-width: 56rem;

.min-w-5xl
min-width: 64rem;

.min-w-6xl
min-width: 72rem;

.min-w-full
min-width: 100%;

.min-w-screen-sm
min-width: 640px;

.min-w-screen-md
min-width: 768px;

.min-w-screen-lg
min-width: 1024px;

.min-w-screen-xl
min-width: 1280px;

.min-w-0
min-width: none;

(this issue can apply to min-height too).
Happy to work on a PR if y’all think this is worth it!

Hey! Can you explain the situation you ran into where you needed this? I’ve not run into one yet myself 🤔

Sure! I have a custom select box with options inside of varying length, eg. cats, dogs, hummingbird, some very long animal name.
I want to set a min-width on the selectbox so that:

If the selected option is very long (like the last one), the width adapts to it;
If the selected option is very short (like the first two ones), the width doesn’t shrink all the way down but stays at a minimum value (which would fit “hummingbird”)

I’m trying to achieve this to avoid moving things around the screen too much when the user changes from a long option to a short one.
This is admittedly a niche problem 😅

I thought about it yesterday, but realised that my case could be too specific, but here it is another example where this could be helpful.
Creating notification badges, the only way to achieve a perfect rounded badge (first highlighted code) is to apply fixed dimensions (min-width would be ideal). But then, if we get more than one character inside the badge, it won't grow, so the solution is to use padding utilities, that doesn't look good with one digit, but grows ok (second highlight).

You can see it live (and the code for it) here: https://tailwind-starter-kit.now.sh/docs/badges

I was looking for this today for a sidebar. I wanted to make it a minimum width but expand as needed depending on the content.
Similarly, for forms that have labels on the left. It is nice to keep a minimum width to visually separate them from the fields, with room to grow instead of wrapping the label text.
Also, some modals / dialogs might look funny if they are too skinny, so setting a min/max width range would be nice.

Another case: height animation.
<ul
  x-transition:enter="transition-all ease-in-out duration-300"
  x-transition:enter-start="opacity-0 max-h-0"
  x-transition:enter-end="opacity-100 max-h-xl"
  x-transition:leave="transition-all ease-in-out duration-300"
  x-transition:leave-start="opacity-100 max-h-xl"
  x-transition:leave-end="opacity-0 max-h-0"
>

Also, note that the last line in OP's propose says .min-w-0 | min-width: none;, but none is only applied to max-height/width properties, and the current behavior of the existing min-w-0 is right.
Implementing max-h-0 as my example above, it would be needed to create the same class for max-w utilities, as there is no 0 there.

Another case: missing min-w-max-content which is implemented in Tailwind UI
w-56

w-56 with more text

w-56 with more text and min-w-max-content

Obviously the other variants should also be added: min-w-max-content, max-w-max-content, ...

@adamwathan Happy to work on a Pull Request for this if you think it has value for Tailwind!

Can't decide if we should add this or not by default. Will keep this open for now, thanks for the suggestion 👍

regardless, this would be an excellent external plugin and not everything needs to be added by default


The brush color is always black

Reproduce steps:

Launch example
Back to main view(exit Single View)
Enter Single View again
change any color, draw on canvas

Emmm... there's truly a bug here. Texture is set before OpenGL initialized, so the canvas holds another texture to the brush...
@RoCry , Now fixed in 1.1.3.


Reorganize documentation around specific audiences

Forked from #2633.
We should organize and customize our documentation around specific audiences and/or use cases. For example:

Core/extension developers
Porting to another platform
Cluster turnup
Cluster admin
Apps admin
App developer
Kick-the-tires user
Demo

cc @RichieEscarez

See also #2839

Im currently working on a site reorg and am defining a navigation structure for the docs around the two main (high-level) roles "app developer" and "cluster admin" (and then will migrate all doc around those roles over to the kubernetes.io site). I see that there are several open bugs related to this effort so Ill make sure to address them all in this effort.

For the 1.0 lauch I want to have something of a pow-wow and work out a
table of contents for the various audiences so we can start organizing docs
to that rather that the current random structure.
Specifcally a TOC for cluster admins and another kubernetes users.
kubernetes developers are a third constituency, but less critical here.
We need to do this O(soon) and then get several people engaged in
re-organizing content and writing content to fill gaps.
On Thu, May 28, 2015 at 8:34 AM, RichieEscarez<EMAIL_ADDRESS>wrote:

Im currently working on a site reorg and am defining a navigation
structure for the docs around the two main (high-level) roles "app
developer" and "cluster admin" (and then will migrate all doc around those
roles over to the kubernetes.io site). I see that there are several open
bugs related to this effort so Ill make sure to address them all in this
effort.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/7299#issuecomment-106416025
.

What Tim wants already exists.
From:
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/README.md
you see links to the cluster admin guide, the user guide, and the developer
guide.
Each of those is a table of contents pointing to individual topical docs.
On Thu, May 28, 2015 at 10:50 PM, Tim Hockin<EMAIL_ADDRESS>wrote:

For the 1.0 lauch I want to have something of a pow-wow and work out a
table of contents for the various audiences so we can start organizing docs
to that rather that the current random structure.
Specifcally a TOC for cluster admins and another kubernetes users.
kubernetes developers are a third constituency, but less critical here.
We need to do this O(soon) and then get several people engaged in
re-organizing content and writing content to fill gaps.
On Thu, May 28, 2015 at 8:34 AM, RichieEscarez<EMAIL_ADDRESS>wrote:

Im currently working on a site reorg and am defining a navigation
structure for the docs around the two main (high-level) roles "app
developer" and "cluster admin" (and then will migrate all doc around
those
roles over to the kubernetes.io site). I see that there are several open
bugs related to this effort so Ill make sure to address them all in this
effort.
—
Reply to this email directly or view it on GitHub
<
https://github.com/GoogleCloudPlatform/kubernetes/issues/7299#issuecomment-106416025

.

—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/7299#issuecomment-106697423
.

That's a ToC of what we have, not necessarily what we want.
On Fri, May 29, 2015 at 5:18 PM, Eric Tune<EMAIL_ADDRESS>wrote:

What Tim wants already exists.
From:
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/README.md
you see links to the cluster admin guide, the user guide, and the developer
guide.
Each of those is a table of contents pointing to individual topical docs.
On Thu, May 28, 2015 at 10:50 PM, Tim Hockin<EMAIL_ADDRESS>wrote:

For the 1.0 lauch I want to have something of a pow-wow and work out a
table of contents for the various audiences so we can start organizing
docs
to that rather that the current random structure.
Specifcally a TOC for cluster admins and another kubernetes users.
kubernetes developers are a third constituency, but less critical here.
We need to do this O(soon) and then get several people engaged in
re-organizing content and writing content to fill gaps.
On Thu, May 28, 2015 at 8:34 AM, RichieEscarez<EMAIL_ADDRESS>wrote:

Im currently working on a site reorg and am defining a navigation
structure for the docs around the two main (high-level) roles "app
developer" and "cluster admin" (and then will migrate all doc around
those
roles over to the kubernetes.io site). I see that there are several
open
bugs related to this effort so Ill make sure to address them all in
this
effort.
—
Reply to this email directly or view it on GitHub
<

https://github.com/GoogleCloudPlatform/kubernetes/issues/7299#issuecomment-106416025

.

—
Reply to this email directly or view it on GitHub
<
https://github.com/GoogleCloudPlatform/kubernetes/issues/7299#issuecomment-106697423

.

—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/7299#issuecomment-106966039
.

@lavalamp is moving cluster admin docs to docs/admin in #11013
We're going to move user docs to docs/user-guide #11093

Done


Revert "Read local apiserver health check port from init/join yaml"

Reverts aws/eks-anywhere-build-tooling#840

/approve


How to disable hassio_observer?

It's useless for me, but it takes up too much memory. My device has just experienced a run out of memory and I suspect it has something to do with plugin-observer.
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
  177   173 root     S     695m  40%   1   0% observer
  201     0 root     S     2600   0%   1   0% bash
  206   201 root     R     1636   0%   3   0% top
    1     0 root     S      192   0%   3   0% s6-svscan -t0 /var/run/s6/services
   31     1 root     S      192   0%   0   0% s6-supervise s6-fdholderd
  173     1 root     S      192   0%   1   0% s6-supervise observer

# docker images
REPOSITORY                                TAG                 IMAGE ID            CREATED             SIZE
homeassistant/qemuarm-64-homeassistant    0.118.1             c4953f3cb5e5        5 days ago          1.14GB
hassioaddons/node-red-aarch64             7.2.10              4fe2d0edbbd1        7 days ago          252MB
hassioaddons/adguard-aarch64              2.6.1               fee7e04d39e5        13 days ago         47.1MB
hassioaddons/nginxproxymanager-aarch64    0.8.2               a8c81417dee2        2 weeks ago         401MB
dwelch2101/zigbee2mqtt-aarch64            1.16.1              637938b4fb29        2 weeks ago         456MB
homeassistant/aarch64-hassio-supervisor   2020.11.0           d933ed23bed8        3 weeks ago         317MB
homeassistant/aarch64-hassio-dns          2020.11.0           af5ecb447947        3 weeks ago         130MB
homeassistant/aarch64-hassio-cli          2020.10.1           0f05fe76c14f        4 weeks ago         98.5MB
homeassistant/aarch64-hassio-observer     2020.10.1           2276cf8c8343        6 weeks ago         98.1MB
hassioaddons/phpmyadmin-aarch64           0.1.4               8f206347de6a        3 months ago        123MB
homeassistant/aarch64-hassio-multicast    3                   272cc794b62f        3 months ago        88.3MB
homeassistant/aarch64-hassio-audio        17                  7fa0e2cc52fe        3 months ago        110MB
portainer/portainer                       latest              1fdf590d1a36        4 months ago        68.5MB
homeassistant/aarch64-addon-mariadb       2.2.1               da3a7e5f170c        4 months ago        297MB
homeassistant/aarch64-addon-mosquitto     5.1                 56b6964bab3a        14 months ago       37.2MB

20-11-25 19:02:48 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
20-11-25 19:04:05 WARNING (MainThread) [supervisor.misc.tasks] Watchdog/Application found a problem with observer plugin!
20-11-25 19:04:27 INFO (SyncWorker_6) [supervisor.docker.interface] Stopping hassio_observer application

20-11-25 19:07:54 INFO (SyncWorker_6) [supervisor.docker.interface] Cleaning hassio_observer application
20-11-25 19:09:07 INFO (MainThread) [supervisor.plugins.observer] Starting observer plugin
20-11-25 19:11:00 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
20-11-25 19:11:30 WARNING (MainThread) [supervisor.updater] Can't fetch versions from https://version.home-assistant.io/stable.json:

20-11-25 19:14:35 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-11-25 19:14:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository

20-11-25 19:28:32 ERROR (SyncWorker_4) [supervisor.docker] Dockerd connection issue for hassio_observer: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=900)
20-11-25 19:29:51 ERROR (MainThread) [supervisor.plugins.observer] Can't start observer plugin
20-11-25 19:30:16 ERROR (MainThread) [supervisor.misc.tasks] Observer watchdog reanimation failed!
20-11-25 19:31:39 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-583242' coro=<Scheduler._run_task.<locals>._wrap_task() done, defined at /usr/src/supervisor/supervisor/misc/scheduler.py:58> exception=DockerRequestError()>
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 426, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/lib/python3.8/site-packages/sentry_sdk/integrations/stdlib.py", line 102, in getresponse
    rv = real_getresponse(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/local/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 410, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 735, in reraise
    raise value
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 428, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 335, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=900)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/docker/interface.py", line 164, in _is_running
    docker_container = self.sys_docker.containers.get(self.name)
  File "/usr/local/lib/python3.8/site-packages/docker/models/containers.py", line 887, in get
    resp = self.client.api.inspect_container(container_id)
  File "/usr/local/lib/python3.8/site-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/docker/api/container.py", line 771, in inspect_container
    self._get(self._url("/containers/{0}/json", container)), True
  File "/usr/local/lib/python3.8/site-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 228, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=900)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/misc/scheduler.py", line 62, in _wrap_task
    await task.coro_callback()
  File "/usr/src/supervisor/supervisor/misc/tasks.py", line 339, in _watchdog_observer_docker
    await self.sys_plugins.observer.is_running()
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/supervisor/supervisor/docker/interface.py", line 170, in _is_running
    raise DockerRequestError() from err
supervisor.exceptions.DockerRequestError
20-11-25 19:36:52 WARNING (MainThread) [supervisor.misc.tasks] Watchdog/Application found a problem with observer plugin!

It may be that the lack of memory is causing hassio_observer to be out of trouble, rather than that hassio_observer is causing it to run out of memory。


Provide a mechanism to continue processing after expected browser error...

I am using Zombie.js to test client-side modules that interact with an API served up by node.  The tests include "bad" inputs on the client side, which are sent to the server via a jQuery.ajax() call.   The API on the server responds with an appropriate error code and status, such as 401 ("not authorized").
Zombie's event loop immediately treats a status code above 400 as a "stop the world" event (see below the snippet from eventloop.js:259-261):
          if (response && response.statusCode >= 400) {
            error = new Error("Server returned status code " + response.statusCode + " from " + url);
          }

What should happen is that the client-side ajax error function should be given a chance to handle the error, and should see the API's message.
Instead, it appears that the original AJAX request is canceled, and the error function is called with a bogus error (whose status code is zero).
I propose adding a configuration option to disable this check.

I have created and submitted a pull request:
https://github.com/assaf/zombie/pull/860

Yes, it shouldn't error on XHR, all other cases should error.


Include phpcr-shell in dev

This PR adds PHPCR-Shell to Sulu standard as a dev requirement.
It will enable you to connect directly to the configured PHPCR repository as follows
$ ./app/console doctrine:phpcr:shell

And execute arbitrary commands
$ ./app/console doctrine:phpcr:shell "node:list -L2 /"                                                                           ✭ ◼ │···························································
/ [nt:unstructured] > nt:base                                                                                │···························································
+---------------------+-----------------+-----------------+                                                                                │···························································
| cmf/                | nt:unstructured |                 |                                                                                │···························································
|   sulu_io/          | nt:unstructured |                 |                                                                                │···························································
|   | contents/       | nt:unstructured |                 |                                                                                │···························································
|   | routes/         | nt:unstructured |                 |                                                                                │···························································
|   | jcr:primaryType | NAME (15)       | nt:unstructured |                                                                                │···························································
|   snippets/         | nt:unstructured |                 |                                                                                │···························································
|     animal          | nt:unstructured |                 |                                                                                │···························································
|     default         | nt:unstructured |                 |                                                                                │···························································
|     hotel/          | nt:unstructured |                 |                                                                                │···························································
|     summer          | nt:unstructured |                 |                                                                                │···························································
|     jcr:primaryType | NAME (15)       | nt:unstructured |                                                                                │···························································
|   jcr:primaryType   | NAME (15)       | nt:unstructured |                                                                                │···························································
| jcr:primaryType     | NAME (15)       | nt:unstructured |                                                                                │···························································
+---------------------+-----------------+-----------------+                                                                                │···························································
4 nodes in set (0.066349 sec)

Also would make it easy to do maintainence by running UPDATE commands etc.

+1


Fix comments for @ui-site-color-s

"Blue" and "green" should be swapped (am I an achromate?).

Yes, it totally should. Thanks!


Duplicated hash keys and values

I have the Person resource which inherits from Flexirest::Base.
I invoke the #create method on the class instance as per the README:
@person = Person.create(
  first_name: “John”,
  last_name: “Smith"
)

At the (Rails) server when I inspect the params, I get the following:
{“first_name”=>”John”, “last_name”=>”Smith”, “controller”=>”persons”, “action”=>”create”,
“person”=>{“first_name”=>”John”, “last_name”=>”Smith”}}

Can you see the duplicated keys and values?
I’m wondering how I can avoid this?
I find that the strong parameters then causes first_name and last_name keys to be rejected (warning in log output) because I have:
params.require(:person).permit(:first_name, :last_name)

Any clues how I can have just the plan hash, or even just the individual key pairs (one or the other)?
If I use:
params.permit(:first_name, :last_name)

Then I get a warning about plan being rejected.
I am running Rails 5.0.0.beta2 and Ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15].

This must be a Rails Beta problem.  I've just done this outside of Rails, with the latest version of Flexirest (v1.3.3) connecting to a Mockbin request and it worked fine.
class Person < Flexirest::Base
  base_url "http://mockbin.org"
  verbose!

  post :create, "/bin/00cb71c2-6444-40d8-add7-f86d737b2016"
end

@person = Person.create(
  first_name: "John",
  last_name: "Smith"
)

The log file shows this (note the request body):
  Flexirest Person#create - Requesting http://mockbin.org/bin/00cb71c2-6444-40d8-add7-f86d737b2016
Flexirest Verbose Log:
  Request
  >> POST /bin/00cb71c2-6444-40d8-add7-f86d737b2016 HTTP/1.1
  >> Accept : application/hal+json, application/json;q=0.5
  >> Content-Type : application/x-www-form-urlencoded
  >> Body:
first_name=John&last_name=Smith      <-------- LOOK HERE
  Response
  << Status : 200
  << date : Tue, 08 Mar 2016 09:07:15 GMT
  << content-type : text/html; charset=utf-8
  << transfer-encoding : chunked
  << connection : keep-alive
  << set-cookie : __cfduid=d83290eb1d0244377049f1449a9cfc01f1457428035; expires=Wed, 08-Mar-17 09:07:15 GMT; path=/; domain=.mockbin.org; HttpOnly
  << vary : X-HTTP-Method-Override, Accept-Encoding
  << etag : W/"14-H4mTA7klBR8HrXUJDd41+Q"
  << via : 1.1 vegur
  << server : cloudflare-nginx
  << cf-ray : 280522c77ce10a7e-LHR
  << Body:
{
"hello": "world"
}

Can you reproduce it in your application just using a curl command line, if so, might be worth reporting it as a Rails 5 bug?

I'm closing this issue as I can't reproduce it and there's been no response.


debug: debug wront git root path

debug wront git root path tidb-engine-ext ut.

Hello, I am a serverless review bot on flows.network. Here are my reviews of code commits in this PR.

Commit 1
Key changes:

Added a new shell script to print current working directory, git root path, and list of files and directories in the parent directory.
Added a label "debug git root path" to the new shell script.

Potential problems:

The patch does not address any specific bug or issue mentioned in the pull request. The commit message only states that the changes aim to debug an incorrect git root path but does not provide any context or details about the issue.
The patch does not include any fixes or changes to code, but only adds a new shell script to print relevant information for debugging. This may not be enough to resolve the underlying issue or may even introduce new issues.
The label "debug git root path" may not be descriptive enough, and a more detailed label indicating the specific issue being investigated could be more helpful for future reference.


Set default schedule to Cancun

Changes default schedule to Cancun to avoid EVMC_UNDEFINED_INSTRUCTION on instructions such as TLOAD and TSTORE.

Do we have tests of TSLOAD and TSTORE in the Kontrol test-suite? I'm approving this now, but please, ASAP we need tests of functionality we expect to work.

Two EIPs are not implemented yet (including SELFDESTRUCT update) as @anvacaru reminded, so we've decided to postpone making Cancun by default — instead, we can add the TSTORE test part of end-to-end tests, and add a warning suggesting to change the schedule if EVM_UNDEFINED_INSTRUCTION is reached.

Did we add the tests with TSTORE and TLOAD in another PR somewhere?

Did we add the tests with TSTORE and TLOAD in another PR somewhere? If so, let's link it here.

Not yet, I'll do it on Friday if no one beats me to it! Will add a link to the PR once it's done.

FYI, the latest release of solc (0.8.27) has added some support for the transient keyword. However, it seems that it only allows users to generate transient storage layout, but it won't (yet) generate any bytecode using TSTORE and TLOAD. (release notes)

Opened a PR adding a test: https://github.com/runtimeverification/kontrol/pull/811, and will add another one with a warning on EVMC_UNDEFINED_INSTRUCTION as a follow up. Closing this PR for now.


serialize_f64 is too clever

The serialize_f64 method of the cbor serializer tries to be clever: if the provided value fits in a f32 or f16, it uses the shorter representation to save bytes.
I'm using cbor in a context where the output is passed through a hash function, so the precise representation chosen is important. The problem I have is that I have no way of telling the cbor serializer to use only the f64 size.
Would it be possible to make the serialize_f64 method always use the f64 representation ? I also think that's what would be expected by serde consumers in general.

Section 3.6 states that an encoder can encode a number in any way it likes to as long as the numeric value stays identical but applications may specify something else.
It should be noted that serde can't decode integer values if they are stored as floats (If I recall correctly).

I'm using cbor in a context where the output is passed through a hash function, so the precise representation chosen is important.

As long as the encoder always uses the same encoding scheme I don't see a problem with using f32 and f16 in place of f64.

Would it be possible to make the serialize_f64 method always use the f64 representation ? I also think that's what would be expected by serde consumers in general.

Can you give an example of an encoder expecting this?

As long as the encoder always uses the same encoding scheme I don't see a problem with using f32 and f16 in place of f64.

That's only if there is only one encoder used. I'm working on the Rust implementation of the Dhall language, and this language in particular allows adding integrity checks to files. Those integrity checks work by encoding the file as binary (following a precise encoding specification), and then hashing the result. But because the language has several implementations (in different languages), it is important that all of them use the exact same binary encoding.
The dhall standard specifies how to encode doubles here. I don't see a way to use serde_cbor to produce that encoding. I tried using serialize_bytes but that can't work to produce floats.

Here's my reasoning behind changing the behavior. There are two possible behaviors one may want when encoding a f64 value:

encode the f64 as the smallest representation possible;
encode the f64 as f64.

With the current behavior, 1. is automatic and 2. is impossible. If we made instead 2. the default, then 2. would be automatic and 1. would be doable with a small workaround like a deserialize_with annotation or a wrapper struct.
Since I expect very few people will actually care about which is used, I feel like 2. would be a good choice.

The Dhall language is an interesting use-case for CBOR. The referenced specification says that Double shall be stored as Single if possible and the special float values are stored as Half.
Since you are the first person asking for this feature I'd suggest you fork the crate for now and make the necessary changes. For example bignums are not currently supported by serde_cbor.

@Nadrieril I just saw this -- this might be a good reason to re-visit why Dhall is not using canonical CBOR for floats (which I believe this crate is using and I also had to patch special support for into my ruby CBOR library).


Automatic CD blocked by linux agents only running powershell.exe in build goals of pom.xml

Reproduction steps

In the pom.xml run a powershell script
e.g:

<execution>
    <id>Generate help files</id>
    <phase>generate-resources</phase>
    <goals>
        <goal>run</goal>
    </goals>
    <configuration>
        <target>
            <exec executable="powershell.exe">
                <arg value=".\GenerateHelpFiles.ps1 " />
            </exec>
        </target>
    </configuration>
</execution>

Our use case: https://github.com/jenkinsci/uipath-automation-package-plugin/blob/8b71aa4c7815988f3cc6ab9b6a6207c8d4363d49/pom.xml#L123-L129

Run the cd.yaml workflow

Expected Results
Expected release to be executed
Actual Results
The release failed cause the agent did not have powershell.exe
Example: https://github.com/jenkinsci/uipath-automation-package-plugin/actions/runs/11416796536/job/31768407458

Anything else?
In the pom.xml we run a powershell script in the build goals, but the agent building plugin for the release in the github workflow is a linux agent thus it won't be capable of building the plugin.
https://github.com/jenkins-infra/github-reusable-workflows/blob/72bf2ab3d9f88287d0685cec86218b04ef226edb/.github/workflows/maven-cd.yml#L75
Another thing is that this is not happening in the Jenkins pipelines as they are building with a windows agent (e.g: https://ci.jenkins.io/job/Plugins/job/uipath-automation-package-plugin/job/develop/10/)
We have this release blocker issue, could you please provide assistance or suggest a solution on how we can solve it?

I think your script is trying to localise help files as html, why not just use a jelly help file and use its built-in localisation?

I managed to fix this by using pwsh instead of powershell.exe. ✅
💡 But adding the option to build on windows agents would be a nice addition.
e.g:
<execution>
    <id>Generate help files</id>
    <phase>generate-resources</phase>
    <goals>
        <goal>run</goal>
    </goals>
    <configuration>
        <target>
            <exec executable="pwsh">
                <arg value=".\GenerateHelpFiles.ps1 " />
            </exec>
        </target>
    </configuration>
</execution>

I think your script is trying to localise help files as html, why not just use a jelly help file and use its built-in localisation?

Could you refer an example here so I can evaluate the changes for doing so?

Here's an example: https://github.com/jenkinsci/jenkins/blob/23a8ef5685573afee7e5c70762bbb3f188570305/core/src/main/resources/hudson/model/Slave/help-launcher.jelly#L29


Bulk indexing for rebuild_index

Make the service.rebuild_index method use bulk indexing rather than indexing each item individually.

discussion: https://discord.com/channels/692989811736182844/704629170470125578/1035200563392020640


django handeling requests

getting similar issue: https://github.com/graphql-python/graphene-django/issues/288
resources:
https://github.com/ottoyiu/django-cors-headers

Fixed


Errors when running the latest release

I am getting errors during the run, which it says I should report here. It looks like there are two different errors. Here is the full output log (with some of the boring bits removed)...
WARN: Module Numpy not found, using manual percentile method instead. It is recommended to install Numpy. Error: No module named numpy
Welcome to Poloniex Lending Bot
2017-03-11 16:09:14 Canceling all DASH orders... Loan offer canceled.
...etc...
2017-03-11 17:18:56 Canceling all DASH orders... Loan offer canceled.
2017-03-11 17:18:57 Not lending DASH due to rate below 0.2495%
2017-03-11 17:18:59 Not lending FCT due to rate below 0.0200%
2017-03-11 17:30:01 Error: The read operation timed out Requesting returnAvailableAccountBalances
Lended: [4198.6713 DASH @ 0.1853%] [203.8966 ETH @ 0.0069%] Timed out, will retry in 600.0sec
2017-03-11 17:40:39 Not lending DASH due to rate below 0.2477%
2017-03-11 17:40:40 Not lending FCT due to rate below 0.0200%
2017-03-11 17:40:40 Error: HTTP Error 502: Bad Gateway Requesting returnActiveLoans
Lended: [4198.6713 DASH @ 0.1853%] [203.8966 ETH @ 0.0069%] Traceback (most recent call last):
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\lendingbot.py", line 73, in
log.refreshStatus(Data.stringify_total_lended(*Data.get_total_lended()), Data.get_max_duration(
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Data.py", line 45, in get_total_lended
crypto_lended = api.return_active_loans()
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Poloniex.py", line 159, in return_active_loans
return self.api_query('returnActiveLoans')
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Poloniex.py", line 104, in api_query
ret = urllib2.urlopen(urllib2.Request('https://poloniex.com/tradingApi', post_data, headers))
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 437, in open
response = meth(req, response)
File "C:\Python27\lib\urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python27\lib\urllib2.py", line 475, in error
return self._call_chain(*args)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 502: Bad Gateway
Unhandled error, please open a Github issue so we can fix it!
2017-03-11 17:51:35 Placing 15.62615210 DASH at 0.2487% for 28 days... Loan order placed.
...etc...
2017-03-11 18:49:36 Not lending FCT due to rate below 0.0200%
2017-03-11 19:00:19 Error: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> Requesting returnActiveLoans
Lended: [4180.5354 DASH @ 0.1762%] [203.8966 ETH @ 0.0069%] Traceback (most recent call last):
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\lendingbot.py", line 72, in
Lending.lend_all()
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 168, in lend_all
total_lended = Data.get_total_lended()[0]
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Data.py", line 45, in get_total_lended
crypto_lended = api.return_active_loans()
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Poloniex.py", line 159, in return_active_loans
return self.api_query('returnActiveLoans')
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Poloniex.py", line 104, in api_query
ret = urllib2.urlopen(urllib2.Request('https://poloniex.com/tradingApi', post_data, headers))
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
Unhandled error, please open a Github issue so we can fix it!
2017-03-11 19:10:22 Not lending DASH due to rate below 0.2477%
2017-03-11 19:10:23 Not lending FCT due to rate below 0.0200%
...etc...
2017-03-11 22:11:27 Placing 65.85774675 DASH at 0.465162857143% for 28 days... Loan order placed.
2017-03-11 22:12:09 Error: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> Requesting createLoanOffer
Lended: [3797.8005 DASH @ 0.2159%] [34.8966 ETH @ 0.0139%] Traceback (most recent call last):
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\lendingbot.py", line 72, in
Lending.lend_all()
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 181, in lend_all
usable_currencies += lend_cur(cur, total_lended, lending_balances)
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 330, in lend_cur
raise msg
URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
Unhandled error, please open a Github issue so we can fix it!
2017-03-11 22:14:13 Placing 49.74254305 DASH at 0.4919% for 28 days... Loan order placed.
...etc...
2017-03-12 00:03:24 Not lending ETH due to rate below 0.0200%
2017-03-12 00:04:06 Error: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> Requesting returnLoanOrders
Lended: [4190.8061 DASH @ 0.2328%] [34.8966 ETH @ 0.0139%] Traceback (most recent call last):
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\lendingbot.py", line 72, in
Lending.lend_all()
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 181, in lend_all
usable_currencies += lend_cur(cur, total_lended, lending_balances)
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 293, in lend_cur
order_book = construct_order_book(active_cur)
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 211, in construct_order_book
loans = api.return_loan_orders(active_cur, loanOrdersRequestLimit[active_cur])
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Poloniex.py", line 225, in return_loan_orders
return self.api_query('returnLoanOrders', {"currency": currency, "limit": limit})
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Poloniex.py", line 91, in api_query
ret = urllib2.urlopen(urllib2.Request(req_url))
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
Unhandled error, please open a Github issue so we can fix it!
2017-03-12 00:14:30 Placing 45.20157124 DASH at 0.4499% for 28 days... Loan order placed.
...etc...
2017-03-12 01:01:55 Placing 14.86409459 DASH at 0.4205% for 28 days... Loan order placed.
2017-03-12 01:02:37 Error: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> Requesting createLoanOffer
Lended: [4125.3484 DASH @ 0.2330%] [34.8966 ETH @ 0.0139%] Traceback (most recent call last):
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\lendingbot.py", line 72, in
Lending.lend_all()
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 181, in lend_all
usable_currencies += lend_cur(cur, total_lended, lending_balances)
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 330, in lend_cur
raise msg
URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
Unhandled error, please open a Github issue so we can fix it!
2017-03-12 01:04:40 Placing 26.20159979 DASH at 0.3694% for 28 days... Loan order placed.
...etc...
2017-03-12 02:15:50 Not lending FCT due to rate below 0.0200%
2017-03-12 02:26:54 Error: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> Requesting returnActiveLoans
Lended: [3832.1941 DASH @ 0.2228%] [34.8966 ETH @ 0.0139%] Traceback (most recent call last):
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\lendingbot.py", line 72, in
Lending.lend_all()
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 168, in lend_all
total_lended = Data.get_total_lended()[0]
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Data.py", line 45, in get_total_lended
crypto_lended = api.return_active_loans()
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Poloniex.py", line 159, in return_active_loans
return self.api_query('returnActiveLoans')
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Poloniex.py", line 104, in api_query
ret = urllib2.urlopen(urllib2.Request('https://poloniex.com/tradingApi', post_data, headers))
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
Unhandled error, please open a Github issue so we can fix it!
2017-03-12 02:36:55 Canceling all DASH orders... Loan offer canceled.
2017-03-12 02:36:57 Not lending DASH due to rate below 0.3024%
...etc...
2017-03-12 16:52:33 Not lending FCT due to rate below 0.0200%
2017-03-12 17:02:37 Error: list indices must be integers, not Decimal
Lended: [3639.7303 DASH @ 0.3032%] [34.8966 ETH @ 0.0139%] Traceback (most recent call last):
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\lendingbot.py", line 72, in
Lending.lend_all()
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 181, in lend_all
usable_currencies += lend_cur(cur, total_lended, lending_balances)
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 305, in lend_cur
orders = construct_orders(active_cur, active_bal)  # Construct all the potential orders
File "C:\Users\kev\Bitcoins\poloniexlendingbot-master\modules\Lending.py", line 269, in construct_orders
order_rates[rate] = max_daily_rate
TypeError: list indices must be integers, not Decimal
Unhandled error, please open a Github issue so we can fix it!

Hey @Kevmate , the HTTP Error 502 should be handled properly in the very latest code, that was only merged last night, so you might need to do a pull.
The Errno 10060 looks to be a problem on the Poloniex side, there's not much we can do about it aside from handle the error a bit more gracefully, I haven't actually seen that error in a while, but it should be possible to put a patch in to handle.
The last one I think is just a symptom of the previous error. Though I'm not quite sure.
Is the bot still running?

Yes - well - i restarted it. I think it stopped after the last error. I'm
confused about the numpy error at the start. I tried installing numpy but
got confused. I think I need a different python install but struggling atm.
Thanks for your help :)
On 12 March 2017 at 18:45, Michael Robinson<EMAIL_ADDRESS>wrote:

Hey @Kevmate https://github.com/Kevmate , the HTTP Error 502 should be
handled properly in the very latest code, that was only merged last night,
so you might need to do a pull.
The Errno 10060 looks to be a problem on the Poloniex side, there's not
much we can do about it aside from handle the error a bit more gracefully,
I haven't actually seen that error in a while, but it should be possible to
put a patch in to handle.
The last one I think is just a symptom of the previous error. Though
I'm not quite sure.
Is the bot still running?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Mikadily/poloniexlendingbot/issues/258#issuecomment-285965025,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNVhnve879xBrwu_a9Qwq8Ta6s7oO2ks5rlD09gaJpZM4Manox
.

oh - while you are on - there is no such word as "lended". Its "loaned" -
or you could use "Loan completed"
On 12 March 2017 at 19:09, Kevin Stalker<EMAIL_ADDRESS>wrote:

Yes - well - i restarted it. I think it stopped after the last error. I'm
confused about the numpy error at the start. I tried installing numpy but
got confused. I think I need a different python install but struggling atm.
Thanks for your help :)
On 12 March 2017 at 18:45, Michael Robinson<EMAIL_ADDRESS>wrote:

Hey @Kevmate https://github.com/Kevmate , the HTTP Error 502 should be
handled properly in the very latest code, that was only merged last night,
so you might need to do a pull.
The Errno 10060 looks to be a problem on the Poloniex side, there's not
much we can do about it aside from handle the error a bit more gracefully,
I haven't actually seen that error in a while, but it should be possible to
put a patch in to handle.
The last one I think is just a symptom of the previous error. Though
I'm not quite sure.
Is the bot still running?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Mikadily/poloniexlendingbot/issues/258#issuecomment-285965025,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNVhnve879xBrwu_a9Qwq8Ta6s7oO2ks5rlD09gaJpZM4Manox
.

The easiest way to install numpy is with pip.
Just google installing pip for python on windows.
Then you can do
pip install numpy
Noted on the lended point too.

sorry to keep emailing you, but I got a line saying:
2017-03-12 19:30:01 Not lending DASH due to rate below 0.2896%
But my minimum load rate for Dash is set at .09
I am watching it and indeed is seems to be leaving dash unloaned
Thanks
k
On 12 March 2017 at 19:30, Kevin Stalker<EMAIL_ADDRESS>wrote:

oh - while you are on - there is no such word as "lended". Its "loaned" -
or you could use "Loan completed"
On 12 March 2017 at 19:09, Kevin Stalker<EMAIL_ADDRESS>wrote:

Yes - well - i restarted it. I think it stopped after the last error. I'm
confused about the numpy error at the start. I tried installing numpy but
got confused. I think I need a different python install but struggling atm.
Thanks for your help :)
On 12 March 2017 at 18:45, Michael Robinson<EMAIL_ADDRESS>wrote:

Hey @Kevmate https://github.com/Kevmate , the HTTP Error 502 should
be handled properly in the very latest code, that was only merged last
night, so you might need to do a pull.
The Errno 10060 looks to be a problem on the Poloniex side, there's not
much we can do about it aside from handle the error a bit more gracefully,
I haven't actually seen that error in a while, but it should be possible to
put a patch in to handle.
The last one I think is just a symptom of the previous error. Though
I'm not quite sure.
Is the bot still running?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Mikadily/poloniexlendingbot/issues/258#issuecomment-285965025,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNVhnve879xBrwu_a9Qwq8Ta6s7oO2ks5rlD09gaJpZM4Manox
.

We know that "lended" is a mistake, just didn't get to renaming it to "lent" ;)

@Kevmate have you updated the bot to the latest version?
There were issues with Market Analysis which I assume from the log that you have enabled where the bot would stop collecting data. Otherwise review your Market Analysis settings and data files... might be that DASH rates were very high recently.

I have installed the latest version, although its hard to see the version
number in the installed software to be completely sure. Maybe you should
put it in the output log, and perhaps also in the readme.
Yes, I have switched on market analysis, although I haven't looked at the
data yet. However, you are right, DASH rates were very high today, maybe
thats all it is.
Will watch
Many thanks
K
On 12 March 2017 at 19:49, Raanan<EMAIL_ADDRESS>wrote:

@Kevmate https://github.com/Kevmate have you updated the bot to the
latest version?
There were issues with Market Analysis which I assume from the log that
you have enabled where the bot would stop collecting data. Otherwise review
your Market Analysis settings and data files... might be that DASH rates
were very high recently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Mikadily/poloniexlendingbot/issues/258#issuecomment-285970542,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNVt2DzLmNAC71E7Wd9m_YP0tYVT9wks5rlExEgaJpZM4Manox
.

@Kevmate after the last commit (now) URLError, HttpError and PoloniexApiError will only be logged without exception trace. (bot will continue)

Thanks for that. Still testing.
A couple of things:

Actually, I am a Dash man, not bitcoin. If you create a Dash wallet and
put it in your link I will send you 1 dash. This works for me because its a
little advert for dash - which I like the idea of. I'm hoping you keep the
wallet open for future people like me. Dash is $100 atm so its worth having.

I am still confused about this "Not lending DASH due to rate below
0.2973% message. I put same dash up for lending and .273 and started the
bot, and it cancelled my load offer. Why cancel a load offer at that high
rate? My min load percentage is low. My dash went back into my lending
wallet and stayed there.

Many thanks
Kevin
On 15 March 2017 at 11:30, Raanan<EMAIL_ADDRESS>wrote:

@Kevmate https://github.com/Kevmate after the last commit (now)
URLError, HttpError and PoloniexApiError will only be logged without
exception trace. (bot will continue)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Mikadily/poloniexlendingbot/issues/258#issuecomment-286715353,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNVtvd4l3jNzUxcs70hhwkcfoN9RIOks5rl8vygaJpZM4Manox
.

Hi Kevin,

Is there a Dash multisig wallet like copay?
The bot isn't built to allow you to manually loan the coin it manages, it cancels all offers every cycle and places new offers. You might consider disabling market analysis or reducing the timespan to make it more dynamic.

Hey @Kevmate
The log statement "Not lending DASH due to rate below 0.2973% message" is shown when two things are True.

The hideCoins config is set to True.
The best loan rate in the market is below the current min daily rate. i.e. the loan the bot would make, would be the same as the min daily rate.

This means if the loan the bot wanted to make at say 0.2 and the mindaily rate 0.25, instead of making a loan at 0.25, it will not make any loan at all.
In your case the min daily rate has been set by the MarketAnalysis module. It has looked at the rates for the times you have configured and suggested what the min daily rate should be.
This is done to not give information away to the market. If hideCoins was False, it would have made a loan at 0.2973, though this likely would not have been accepted straight away as the market rates were below this. Thus your loan was 'hidden'
The first thing the bot does when it starts is cancel all open loans that you have, this is so it has full control over the balances. So if there was a loan already in your account for 0.273 the bot would have canceled this.
If you are unsure about the MarketAnalysis you can turn it off. It will always change the min daily rate for each coin as it analyses its data otherwise.
You could also turn off hideCoins, so you will always have loans in the book if you have coins to do so.
You can also reduce how aggressive the lending style is. The number for the lending style is a percentage, where it will work out what lending rate is required for x% of the results to be below the value you have specified in the data it has collected.
We are currently working on a new market analysis strategy using MACD (Moving averages) that is a bit more reactive and could help, if you still wish to use market analysis to get better rates.

Hi Michael,
This is very confusing.
However, I am gradually catching on. hideCoins was True, and
analysisCurrencies was DASH, and lendingStyle was 75. I didn't understand
what was meant by Conservative and Aggressive. I think I am getting it now.
Agressive means set a high rate even if that means coins don't get loaned.
I will play with the numbers in the light of this, and download a new
version.
Any plans to accept Dash contributions to the cause?
Kevin
On 15 March 2017 at 22:49, Michael Robinson<EMAIL_ADDRESS>wrote:

Hey @Kevmate https://github.com/Kevmate
The log statement "Not lending DASH due to rate below 0.2973% message" is
shown when two things are True.

The hideCoins config is set to True.
The best loan rate in the market is below the current min daily
rate. i.e. the loan the bot would make, would be the same as the min daily
rate.

This means if the loan the bot wanted to make at say 0.2 and the mindaily
rate 0.25, instead of making a loan at 0.25, it will not make any loan at
all.
In your case the min daily rate has been set by the MarketAnalysis module.
It has looked at the rates for the times you have configured and suggested
what the min daily rate should be.
This is done to not give information away to the market. If hideCoins was
False, it would have made a loan at 0.2973, though this likely would not
have been accepted straight away as the market rates were below this. Thus
your loan was 'hidden'
The first thing the bot does when it starts is cancel all open loans that
you have, this is so it has full control over the balances. So if there was
a loan already in your account for 0.273 the bot would have canceled this.
If you are unsure about the MarketAnalysis you can turn it off. It will
always change the min daily rate for each coin as it analyses its data
otherwise.
You could also turn off hideCoins, so you will always have loans in the
book if you have coins to do so.
You can also reduce how aggressive the lending style is. The number for
the lending style is a percentage, where it will work out what lending rate
is required for x% of the results to be below the value you have specified
in the data it has collected.
We are currently working on a new market analysis strategy using MACD
(Moving averages) that is a bit more reactive and could help, if you still
wish to use market analysis to get better rates.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Mikadily/poloniexlendingbot/issues/258#issuecomment-286904238,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNVhGZxNSVwUGLzXK5rrjD3lgro0z7ks5rmGsKgaJpZM4Manox
.

Agreed, it is quite confusing. I had to re-read the source to be sure myself.
If you set it to 75, that means it takes the 75th percentile of the values it has recorded. So, whatever value is found to have 75% of the other values recorded below it.
Aggressive means exactly that. If you were to put it at 100% for example, it would never make a loan unless it was exactly the same as the highest loan recorded.
If you still want to use it, I'd recommend dropping the style to 50% and keeping an eye out for those log messages now you know what is causing them. It' recommended to use numpy for this.
I think once someone works out how to create a multi signature wallet, Dash contributions will most certainly be accepted :)

I'd take that advice then instead, I've not used it as much.

In fact thats more or less where I have the numbers. I was using 30%, then
raised it to 40% and am keeping it there, and I chose 3 days. This is quite
far from the defaults. I agree that the market changes so quickly that you
have to go with the moment really. Does this number accept decimals?
I will make a suggestion to the dash developers for multi-sig wallets. They
are always looking for new ideas.
Best regards
K
On 16 March 2017 at 10:17, Michael Robinson<EMAIL_ADDRESS>wrote:

I'd take that advice then instead, I've not used it as much.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Mikadily/poloniexlendingbot/issues/258#issuecomment-287013890,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNVqjtct0-sOrjnrQcyJvhy3bNeKfaks5rmQxAgaJpZM4Manox
.

I had a little search in the dash forum for progress on multisig wallets
and found that there is an old way of doing it, which looks rather
technical, and a new way, which will be great when it arrives, but is still
only beta.
You might think its not worth the trouble, unless you are interested in
dash. I think dash is brill.
Here is the text...
NewYou can see more details here:
https://dashpay.atlassian.net/wiki/display/DOC/Complex+Multisignature+Example
It is a bit old and you should substitute Darkcoin for Dash where
appropriate, but it works exactly like that and I've made many transactions
like that (someday I will update that page!).
Recently the Evolution development team ported to Dash Bitpay's Copay
wallet. It is still very beta, but you can give it a go if you feel like it:
https://www.dash.org/forum/threads/copay-dash-wallet-testnet-only-rc-0-1.12930/
Dash Electrum also has multisig, but I have not used it.
K
On Thursday, 16 March 2017, Kevin Stalker<EMAIL_ADDRESS>wrote:

In fact thats more or less where I have the numbers. I was using 30%, then
raised it to 40% and am keeping it there, and I chose 3 days. This is quite
far from the defaults. I agree that the market changes so quickly that you
have to go with the moment really. Does this number accept decimals?
I will make a suggestion to the dash developers for multi-sig wallets.
They are always looking for new ideas.
Best regards
K
On 16 March 2017 at 10:17, Michael Robinson<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:

I'd take that advice then instead, I've not used it as much.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Mikadily/poloniexlendingbot/issues/258#issuecomment-287013890,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APwNVqjtct0-sOrjnrQcyJvhy3bNeKfaks5rmQxAgaJpZM4Manox
.

You can only use integers in the lending style config.
I'll have a read at those.


Why is every single function in its own file?

 Putting functions in separate files allows for selecting which functions are linked in.
But probably those poorly-optimising compilers are rare these days, so I should probably change it to suit the most common situation, which is a compiler with a decent linker.

I've also provided an alternative implementation of the S-box and inverse S-box. In Makefile.am you can see how different source files are linked in to select the "small" implementation of the S-box.  I could instead use a preprocessor #ifdef.


Remove the comma to match the hash data type. When a comma is passed as a separator, logstash fails to sent data_points to influx

Remove the comma to match the hash data type. When a comma is passed as a separator, logstash fails to sent data_points to influx
Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/

cla/check