Improve build system

[x] Move sources to ts/
[x] Migrate to typescript
[x] Implement generation of es module files into esm/
[x] Add transpilation from esm to es5 into ./

Failed pictures (1): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 407738525, for commit d748bd4.

Of course this shouldn't not have any negative effect for the users of this library but only improve the development, build and prevent bugs.

the /src folder should be /ts folder inside every component.
e.g. /Button/ts, /Card/ts etc

the /src folder should be /ts folder inside every component.

It would be easier to have like /ts/Card, /ts/Button, ..., because we could instruct typescript to compile from ts/ to esm/. Then it would be just tsc to compile the project

cool makes sense

@cromefire lets just do this for one element and evaluate if it looks good. what say?

@prateekbh okay starting right now

starting with something simple like switches

Cool, I would love to see how much of a re write will it be. Cuz there are some super complex components like textfield

If it looks like too complex, do you think we should just merge your previous PR and then index.esm.js functionality over it?

should be no problem, that no that complex, my app is way more complex

yep, just wanted to look at it maintainability wise. Excited... looking forward to see how the first component would look like.

Should be even better maintainability wise because of type checking

yeah! Not sure of how big of re-write i'd like at this point when material 2.0 is just around the corner.

Without improvements it's just renaming the files

I agree, and if you think that way more easier of a task to do, lets just merge the previous PR.

I meant the PR before was just a temporary solution, once I've installed all node_modules (again my internet) it's like at maximum 10 minutes per component, if I optimize it completely. If I don't optimize it's 5 minutes for all once the infrastructure is up.

For the esm builds the jsx shouldn't be transpiled, right?

For the esm builds the jsx shouldn't be transpiled, right?

No it should be, till ES2015

It's getting late in my timezone, doing the rest tomorrow, I think it'll help you to migrate to 2.0

Failed pictures (135): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 407817978, for commit a07c4b7.

If there's something left, just write it, I'll check back tomorrow

Hope you like the typescript, it should prevent errors and help preventing bugs

unless we dont go deep and change the code in between the component, i am game for it :)
there's something wrong with testing where it gives 135 pics errors

Everything is going wrong right now, I'll notify you when I'm done with the infrastructure

Thanks for undertaking this massive re-write

@cromefire why did you add yarn.lock to the .gitignore (see https://yarnpkg.com/lang/en/docs/yarn-lock/#toc-check-into-source-control)?

@prateekbh the good part is that the biggest rewrite is the infrastructure, the code itself should just be merged from the .jsx and .d.ts

Oh and back to esm, I meant whether <div /> should be transpiled to h("div", {})

Yes it should be be transpiled.

Failed pictures (135): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 407957955, for commit 2db9bd5.

Failed pictures (135): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 407961077, for commit c4ac6cf.

Failed pictures (135): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 407963344, for commit b3fe374.

Failed pictures (135): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 407965496, for commit 5e17869.

Failed pictures (135): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 407970360, for commit bf159df.

Failed pictures (135): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 407972178, for commit 187dfa5.

Now, it shouldn't mark 135 images failing, when the docs fail to compile, but just fail

So right now the infrastructure should be running, so I'm starting to migrate components

BTW I've marked some things with TODO: [...], it would be nice if you could look at them, because that are details I don't know / I'm not sure of.

In ImageListImage should the src attribute be required?

@cromefire weren't we renaming .jsx to .tsx?

weren't we renaming .jsx to .tsx?

Also doing the typings, just found like 3 bugs.
My IDE reported correctly that src is required for <img>

So I'll delete all declarations and add that as dependency

@prateekbh could you please fix the styles?

I'll continue working on this tomorrow, but I'm glad it's at least building again

@prateekbh do you want static babel or rather
babel-transform-runtime?

I literally saw every line of code in this project now

If you have any suggestions, how to deal with method binding, you're welcome

can you explain this a bit more.. with code pointers

Failed pictures (2): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 408679404, for commit 1d76e0a.

In (p)react methods on classes have to be bound with .bind(this)

Failed pictures (2): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 408684411, for commit abc8ec0.

BTW you can develop now using:
~$ npm run watch
~$ cd docs && npm run dev
in 2 different terminals.
Then change something in the code and it will be instantly applied to the docs site, just press F5 in your browser.

Failed pictures (3): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 408686092, for commit 7021860.

and if you don't have an IDE which checks tslint live you should run npm run tslint and if there are errors fix them using npm run tslint:fix (also check and fixes prettier errors).

@prateekbh It's getting late again and I don't have time tomorrow, could you please invetigate what's wrong with the failing images?
@YePpHa could you please look over the typescript specific stuff? just in case I did something wrong.

Also now is the point to report any issues, I'm done with the migration itself. Just fixing all the bugs.
And please merge all pending PRs because after merging this one they will be simply invalid and have to be redone.

@cromefire thanks for the work, nothing looks super bad, just re-add those files in the golden folder. But there seems to be a problem with select demo page, css looks off

@prateekbh I have clearly messed something up, this should be the exact same dom (and therefore also the exact same images) as before.
Please follow this steps:

clone this branch and master
build and serve the docs for both
open Firefox (Maybe Chrome has the option too?)
Ctrl + S, choose Webpage, complete (!), save both next to each other in a folder (under different names)
delete all js files (they will have different content of course)
diff all the files

And then please tell me, what's different. There has to be something I've missed.

Maybe I should introduce something like a Dom diff check but this should be a different PR

@prateekbh is it even necessary to check for whether the method destroy is defined? I was reading the docs for MDC Base and destory is listed as a method.
if (this.MDComponent.destroy) {
  this.MDComponent.destroy();
}

@YePpHa I don't think so, but it was there before. Can remove it, if you want

@cromefire I would probably wait for @prateekbh to respond. I remember he told me at some point to keep it but I can't exactly remember the reason.

I mean can't hurt

Okay diffing the DOM isn't that easy, saving in firefox seems to save the original html file trying with selenium-webdriver

Makes sense, when i started it wans't publicly documented was just something I discovered.
Now since its public, lets remove it

@cromefire I would also recommend making TypeScript more strict (add "strict": true to tsconfig.json). It will require to add some more code to check if something is defined and explicitly tell TypeScript if something can be undefined.

Oh didn't know you have to activate this separately

@cromefire just tried to test ./sample but it seems to be broken as the es2015 preset has been removed. Maybe it should be rewritten to TypeScript too and then add a script to build it in package.json.

Seems legit

@YePpHa technically it's not because the preset but because this file is not transpiled at all

Also I think would like to merge this PR first and then modularize the components

Fine by me.

Also I think would like to merge this PR first and then modularize the components

+1

Where do you see a Component.tsx?

I can't find any it was Component.**jsx** before, but now it's all index.tsx

Failed pictures (1): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 409792808, for commit f473a13.

Failed pictures (1): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 409795636, for commit fbba55b.

yes, seems like it I will have a look again shortly and then set this done

wrong commit text, fixed children prop for Chip

Also I'm exited to announce that this PR will save 3 lines of code (right now).
@prateekbh But to be real once you get the 2 TODOs done, we are ready for merging.

And: No breaking changes

@cromefire the two todos are in LinearProgress and IconButton?

@prateekbh Correct

@YePpHa @cromefire I want to merge this into next branch and publish a beta version of this after resolving the TODOs.
@YePpHa, will go fwd once u LG this.

@prateekbh couldn't you publish it as alpha with the TODOs? Would allow me to get my project up and running again, that TODOs are not breaking anything, they weren't working before...

@cromefire can plz you do a sanity check of props against everything on https://material.preactjs.com/

@prateekbh Have fun with all the TODOs, found a lot of wired stuff...

I am publishing an alpha of this, but leaving a few questions

updated a few props.
@cromefire i'll open Good first issues for the todos

Failed pictures (2): failed-pictures.zip

:postbox: Posted by artipost.io, through Travis build 412136807, for commit 5d197b0.

@cromefire published 1.5.1-alpha1

I will fix the sample tomorrow (I already have some local changes, but am not done yet) and then we can add it to the build again, to make sure components are working.

Just saw, you removed the sample, is there any particular reasons for that? Would help to avoid making breaking changes to the components

And to be clear ripple is added by material component so it doesn't need to be stated in the components and isn't 16-9 also valid (even while there is sixteenByNine)?

Sample was an early folder to check just test random stuff. I guess docs is there right place to do it

Okay were that all questions? If so I would call this complete.

Yeah 16-9 is deprecated as it's invalid markup

@prateekbh please take down 1.5.1-alpha1 and publish 1.5.1-alpha2 with --tag alpha

1.5.1-alpha2 also contains a important fix the TextFieldProps

Will try to do it asap.
@cromefire small problem, I am seeing around 5kb increase in file size of around 5kb. Any way we can resolve this?

@prateekbh could you be more specific on the filesize gain? every component? Only the npm package?

Keep in mind we ship the source in 2 different versions

So about 4.4kb are babel helpers

We could use babel-transform-runtime

All components gziped are 56,4 kB

esm gziped 41,6 kB

plugin-transform-runtime: 309 kB, 45,3 kB gziped

plugin-transform-runtime: 285,6 kB, 45,1 kB gziped

From what I found we save space compared to master (after killing that second babel): 399,1 kB, 54 kB gziped

With tweaks applied master build: 285,6 kB, 43,8 kB gziped

So we are in total 1,3 kB (1,5 kB) less than Optimized master and 9,9 kB (9,7 kB) better than before. Thanks for mentioning that, squeezed ~15 kB out.
(all gzip, tested via compress to .tar.gz)

Should we do plugin-transform-runtime? Saves 0,2 kB in total (gzip)

seems like .tar.gz has ~0,2 kB overhead. Also saving another 0,2 kB using gzip -9

I mean 0,2 kB are insignificant when your app is already 140 kB. And if someone (like I) gets typescript generating jsdoc, closure in advanced mode can save even more, by mangling private/protected props.

I am comparing index.js of every component.e.g. button was 1.8 kb now is 5 kb
And so on for others.
Are you saying we are running Babel twice?

After transforn-runtime will every component still be transpiled to es5?
Or should we just do like this tax -> jsx and then the older build chain

Note: I am more concerned about the index.js size of each component and not the entire bundle

Hmm, seems like difference in Babel options
Check out these two files:
<EMAIL_ADDRESS><EMAIL_ADDRESS>

Looks like I was publishing what u have in ur esm folder.
I wonder y noboddy shouted at me that this sir doesn't work for ie11

Are you saying we are running Babel twice?

It was running again, when we bundled it (by webpack).

After transforn-runtime will every component still be transpiled to es5?

Before:
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

Runtime:
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));

less duplication, especially for bigger code bases. If you are okay I will apply it.

Hmm, seems like difference in Babel options
Looks like I was publishing what u have in ur esm folder.
I wonder y noboddy shouted at me that this sir doesn't work for ie11

The current babel configuration for / matches the mwc browser support, while esm runs (at least what I tested, should also run on other recent browsers) in recent firefox and chrome.

I wonder y noboddy shouted at me that this sir doesn't work for ie11

To be fair, I for example don't care about IE, it's officially dead. People that use IE simply get error pages, there's Edge for those (IE also only has ~3.5% in Germany). It's +50% work for 3.5%.

I guess yes, the runtime approach is better

So give it another try, then we can merge this and set it to beta (don't forget --tag alpha).

And please be sure to update to the latest commit when publishing, last time you missed an important one

After babel-runtime, the PR looks great. I just have one question: can TS output files file index.esm.js instead of index.js?

But then the user would need to import it as esm/Button/index.esm.js instead of esm/Button.

no my idea is to put index.esm.js in the same folder as index.js, because there are .css and .scss in there

I don't know, if babel supports that

Then we need to start with gulp I think.

nah! i'll think around this... merging this now..
Again Thanks @cromefire for all the hard work

That may be a thing for Material 2.0

When this is around, we can also make breaking changes restructure some other things. Since that this should work.

For the time being I think we can safely go to beta, test it a bit, update README/docs and then going to release.


Matlab core function inpolygon support

🚀 Feature Request
Matlab core function inpolygon missing in mat2py, yet.
🔈 Motivation
I need this function to evaluate if points are within, on or outside of a polygon area. Depending on the number of variables requested it returns only points inside the polygon or additionally points which are on the edge of the polygon.
📝 Expected Results
close all; % close all plot windows - may be ignored if plotting function not used below
P = [pi*1/4   pi*3/4    pi*5/4    pi*7/4 pi*1/4];
L = [pi*1/4   pi*3/4    pi*5/4    pi*7/4 pi*1/4 nan 0	1.25663706143592	2.51327412287183	3.76991118430775	5.02654824574367	6.28318530717959];
xvp = cos(P)';
yvp = sin(P)';
xv = cos(L)';
yv = sin(L)';

xq = [0.5377	1.8339	-2.2588	0.8622	0.3188	-1.3077	-0.4336	0	1	2.7694];
yq = [-0.8637	0.0774	-1.2141	-1.1135	-0.0068	1.5326	-0.7697	sin(pi/4)	0	1.1174];
[inp,onp] = inpolygon(xq,yq,xvp,yvp);
assert(isequal(inp, [0   0   0   0   1   0   0   1   0   0]), "'inpolygon' fails for parameters inside pentagon")
assert(isequal(onp, [0   0   0   0   0   0   0   1   0   0]), "'inpolygon' fails for parameters on pentagon")
[in,on] = inpolygon(xq,yq,xv,yv);
assert(isequal(in, [0  0   0   0   1   0   0   1   1   0]), "'inpolygon' fails for parameters inside intersecting pentagon and rectangle")
assert(isequal(on, [0  0   0   0   0   0   0   1   1   0]), "'inpolygon' fails for parameters on intersecting pentagon and rectangle")

% The following code is just for visualization and may be ignored
% Though it would be beautiful to have plot functionality implemented
figure
plot(xv,yv,'k:')
axis equal
hold on
plot(xq(in),yq(in),'bo')
plot(xq(on),yq(on),'r.')
plot(xq(~in),yq(~in),'m+')
hold off

The output figure should look like this

🛰 Alternatives
📎 Additional context
Depending on the number of variables requested it returns only points inside the polygon or additionally points which are on the edge of the polygon.

Hi @APgEDo, I do not have enough time to dig into why your unit test do not work. Could you help do a step-by-step debugging to find out where the difference emerge between Matlab and mat2py version? You can place breakpoint inside this function call.

Hi @chaoqing, I think the error occurs at line 66 due to different shapes of inbounds: (2,1) and on: (1,2).
inbounds = [[5], [8]]
noton = [[ True True]]

In your code on and _in both get there values and shape (1,2) in vec_inpolygon function. As I do not fully understand the operations performed there - I can just guess that reshaping the input arguments xv and yv in this subfunction from (5,2) matarray to (10,1) would do the job, but I am not sure. Below find my debugging screenshot - maybe that helps.

I believe I have fixed this function. You can run you provided unit test here.

I believe I have fixed this function. You can run you provided unit test here.

Just make a note here. I made some changes to the Matlab 2015b original source code(use edit inpolygon to open it). With mh_python or online translator, the translated source code can work directly without further polish.
This is what I mean "Mat2Py intend to be a drop-in replacement of Matlab". The patch on inpolygon.m is necessary because some Matlab features(like implicit nargout, automatic type case, expand/shrink array) are not implemented yet and may not be there in short term.
Use following command to create the patched version:
patch /path/to/matlab_root/toolbox/matlab/polyfun/inpolygon.m -o /dev/stdout <<EOF
78c78
<     in = false(inputSize);
---
>     in = zeros(inputSize)~=0;
114c114
<         in = vec_inpolygon(Nv,x,y,xv,yv);
---
>         [in, ~] = vec_inpolygon(Nv,x,y,xv,yv);
119c119
<     in = false(1,M);
---
>     in = zeros(1,M)~=0;
121c121
<         on = false(1,M);
---
>         on = zeros(1,M)~=0;
180c180
< quad = (negX & posY) + 2*(negX & negY) + ...
---
> quad = (negX & posY) + 2.0*(negX & negY) + ...
257,258c257,258
<     xv(redundantNaN) = [];
<     yv(redundantNaN) = [];
---
>     xv = xv(~redundantNaN);
>     yv = yv(~redundantNaN);
262,263c262,263
<         xv(end+1) = NaN;
<         yv(end+1) = NaN;
---
>         xv = [xv; NaN];
>         yv = [yv; NaN];
284,285c284,285
<     xv(end) = [];
<     yv(end) = [];
---
>     xv = xv(1:end-1);
>     yv = yv(1:end-1);
300a301,304
>             if idxOffset+endIdx+1>size(xvnew, 1)
>                 xvnew = [xvnew;zeros(idxOffset+endIdx+1-size(xvnew, 1), 1)]
>                 yvnew = [yvnew;zeros(idxOffset+endIdx+1-size(yvnew, 1), 1)]
>             end
EOF

Dear @chaoqing, the inpolygon function works for me now - this is great! Thanks for that. I realized now that implementing this function was quiet challenging.


cdr-end-strict.filter  is hiding t5 elite bases

Is that intentional? In this case Expert Wicker Tiara (Tier 5) from the boss, maybe that's how stricts filtering looks like, but in case this is not intentional then I am letting you know.

GGG's tiers cannot be filtered. If GGG ever adds support for that, it will be immediately added to the filter.


Form Field validation always fails if value is 0 (zero)

In form fields including text, numeric, dropdown which are required, validation always fails if the value is "0" (the digit zero).

A user enters "0" or "0" into a text or numeric field or "0" is chosen from a dropdown field.
"0" passes javascript validation, but fails php validation.

I'm running into this issue with the UserForms module, though I believe it originates in silverstripe-framewok. I haven't been able to figure out a work around.

Just tested on a 3.x site and a 0 passed to a text field marked as required with RequiredFields was accepted. RequiredFields checks strlen($value) so this should be fine, unless perhaps the issue is in the userforms module


material 15+ (MCD based components) compatibility

mat-list-option started throwing, because selectionList is not available anymore, and error-state-matcher started throwing errors due to MatChipList being removed from Angular
MatChipList has equivalents in MatChipGrid and others, not sure what to do about selectionList.

Unfortunately select with multiple option stopped working as well.

I see, it was already mentioned here https://github.com/MrWolfZ/ngrx-forms/issues/301


User-reported unhelpful error message

Program: https://code.world/#PglLHuN3ATKgIowp8LvHOdQ
Message:
program.hs:7:1: error:
    parse error
    • If this line continues the previous definition, indent it.
    • Otherwise, are you missing a parenthesis on the previous line)?

The error message actually says exactly what the problem is.


Slow Loading Time

As I am opening the website, it takes too much time to load all the PNGs and logos, so there are some issues with the loading speed. I would suggest to use SVG instead of PNGs.

Thanks for the suggestion. I do have a plan for covering slow loading time.
I will try to fix when I have extra time for it


Added git to docker image

Updated package list, in Dockerfile, to latest versions and added git to support Apollo's pre-build step

Agreed to add the pre-build step later on.
PR changes are low risk and unlikely to make situation worse.


POI Layer KML Support StyleURL

I would like to be able to differentiate different tracks loaded via the POI Layer based on their color and width as defined within the "StyleURL" tags within the KML file.
I use Traccar to monitor children's hiking groups progress against multiple planned routes that are either close or cross each other. Allowing the style (color, width etc) to be varied between routes (tracks), inlcuding the style of the coordinates would significantly increase the clarity.

I have the same problem. I have styles defined in the KML file. I would like the points to be marked with different icons. Google Maps or gpsvisualizer shows these points correctly, but traccar only shows blue dots.

In the legacy version you see the dots correctly with their custom icons, however in the modern version only blue dots are displayed.
Has anyone found a solution?

There's no solution currently.

Any solution or workaround for this?

Have you even read the thread before asking?

Feature request please.

About to enter Expedition Season for many groups - would be great to be able to see tracks in different colours. Do I need to label as feature-request to request it properly ?

You don't need to label.


Details (optional)
Here's an initial definition for automation that needs a few tweaks before going live.
To claim this issue, please ask for it below AND in the #glossary channel of the CNCF Slack (to ensure we don't miss it). Before getting started, please refer to the style guide.

There you go, @a-muk.

@CathPag Can you please give me some more details on this issue? I went through the links that you have provided.

OBE


Unable to save the Hub URL in Settings

I am using the Android POS terminal from the LNbits shop.
https://shop.lnbits.com/product/android-point-of-sale-device
I am unable to save the Hub URL in the Settings page. When I click on the Save Hub URL button, I am directed to the Set Admin  Access PIN screen instead of getting a confirmation that the settings have been saved.

Just installed Bolt Card POS on my Samsung Galaxy S21 and I'm having the same issue of not being able to save The Hub URL in the Settings screen.


ENH: use pre-built pytorch/libtorch 1.5.1

This should enable GitHub builds and tests, pending figuring out how to build pytorch/libtorch from sources.

This configures, builds, and tests perfectly on my local system.  To be fixed in subsequent pull requests:

Test fails when CUDA code fails because there is no CUDA library.
Version issues for the C++ compilers on GitHub:

Target "PyTorchPython" requires the language dialect "CXX17" (with compiler extensions), but CMake does not know the compile flags to use to enable it.
error: no template named 'conditional_t' in namespace 'std'; did you mean 'conditional'?  Likewise for remove_reference_t, enable_if_t, ...


make test failed

Hi,
I was trying to build the mqtt_cpp project. I am using Ubuntu 18.0 and Boost 1_67_0. I have following questions for building projects

When I did the cmake .., the configuration and generation of cmake was done but it is showing -Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
Will this effect my build?

Below is my output for cmake
The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting minimum C++ standard to C++14
-- TLS disabled
-- WebSocket disabled
-- Always send reason code enabled
-- UTF8String check enabled
-- Using boost::variant instead of std::variant
-- Using boost::optional instead of std::optional
-- Using boost::string_view instead of std::string_view
-- Using boost::any instead of std::any
-- Using boost::shared_ptr<char []> instead of std::shared_ptr<char []>
-- std::tuplestd::any workaround for libstdc++ enabled
-- Dynamically linking with Boost
-- Dynamically linking with Openssl
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Logging disabled
-- Found Boost: /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.67.0") found components: system date_time program_options
-- Tests enabled
-- Found Boost: /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.67.0") found components: unit_test_framework
-- Examples enabled
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found components: doxygen dot
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rakshita/mqtt_PubSub/build

When I tried to do "make test" my test failed with message "28 test failed out of 39". Please let me know what I am doing wrong.
Below is my output:

28% tests passed, 28 tests failed out of 39
Total Test time (real) =   1.92 sec
The following tests FAILED:
1 - st_connect (Failed)
3 - st_as_buffer_sub (Failed)
4 - st_topic_alias_recv (Failed)
5 - st_as_buffer_pubsub (Failed)
6 - st_shared_sub (Failed)
7 - st_pubsub_1 (Failed)
8 - st_sub (Failed)
9 - st_pubsub_2 (Failed)
10 - st_pubsub_no_strand (Failed)
11 - st_as_buffer_async_pubsub_1 (Failed)
12 - st_multi_sub (Failed)
13 - st_as_buffer_async_pubsub_2 (Failed)
14 - st_async_pubsub_1 (Failed)
15 - st_resend (Failed)
16 - st_retain_1 (Failed)
17 - st_resend_new_client (Failed)
18 - st_retain_2 (Failed)
19 - st_will (Failed)
20 - st_offline (Failed)
21 - st_manual_publish (Failed)
22 - st_async_pubsub_2 (Failed)
23 - st_issue_749 (Failed)
24 - st_broker_offline_message (Failed)
25 - st_remaining_length (Failed)
26 - st_utf8string_validate (Failed)
27 - st_resend_serialize (Failed)
28 - st_length_check (Failed)
29 - st_resend_serialize_ptr_size (Failed)
Errors while running CTest
Makefile:104: recipe for target 'test' failed
make: *** [test] Error 8
Kindly, help me with the solution.
Thanks

I couldn't reproduce the issue.
If you still have the issue, please post the detail information.

Closed due to no response.


Added new nextcloud excludes for the "Security & setup warnings" test and session tokens

This fixes the "Security & setup warnings" test in the overview section of the nextcloud administrator settings. This also fixes the security session revocation being blocked. And the deletion of notifications.

Hi @ntimo ! Thanks for your contribution, looks awesome!.
I see you added the conditions @streq /.well-known/caldav and @streq /.well-known/carddav. What happens if the nextcloud install is in a subdirectory, instead of / (mine is in /nextcloud, for example). Do you think maybe using @endsWith or @contains is better in that case?

Sure, I will change it it contains probably.

@fzipi done

@ntimo :thinking: Instead of removing 911100, why don't you add the corresponding methods to the list?
Like we do in the same file, rule 9003140:
SecRule REQUEST_FILENAME "@rx /ocs/v[0-9]+\.php/apps/files_sharing/" \
    "id:9003140,\
    phase:2,\
    pass,\
    t:none,\
    nolog,\
    ver:'OWASP_CRS/3.3.0',\
    setvar:'tx.allowed_methods=%{tx.allowed_methods} PUT DELETE'"

This way we don't need chaining rules, and looks cleaner. What do you think?

@ntimo What do you think on this?

Sure sound like a very good idea. I will change the PR @fzipi

@ntimo Did you had time to test this new approach? Can you provide us with the new PR? :smiley:

Any update on the status here, @ntimo?

Monthly Meeting September: https://github.com/coreruleset/coreruleset/issues/1869#issuecomment-688474359
@fzipi takes this PR.

Superseded by #1878 .


CB-12415 Windows build fails if start page is missing

Platforms affected
Windows
What does this PR do?
Continue the build if the start page is missing on disk.
What testing has been done on this change?
Run npm test, manual test
Checklist

[x] Reported an issue in the JIRA database
[x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
[ ] Added automated test coverage as appropriate for this change.

Do not merge yet, on discussion.


Make improvements on the initial modal

Description

Add a close button to the modal when the user is finished
Related Issue

How Has This Been Tested?

Manually tested the close button to check if it closes the modal properly
Checklist

[x] All automated tests have been passed locally (unit / e2e / linter / coverage)
[x] New unit and E2E tests have been added to address the changes made
[x] Manual testing has been performed according to the provided instructions
[x] Code follows team's coding style, convention and standards
[x] Documentation has been updated to reflect relevant changes (if applicable)

Screenshots (if applicable):

Wrong base branch 💀

Looks good to me


Underscores stripped from order_condition

First, thanks for the great gem!
Using Rails 3.1.2, Ruby 1.9.2p290 and XapianDb 1.2.2, the problem was discovered when running tests after upgrading my development environment to Rails 3.1.2 and XapianDb 1.2.2. XapianDb.rebuild_xapian_index passed except on classes whose names are camel-cased. This error did NOT occur when I reverted to XapianDb 1.1.2. I am using the ActiveRecord adapter; order_condition seems to work fine. This occurs both with the direct writer and the resque writer.
Here are the error message and the trace from one occurrence:
Mysql2::Error: Unknown column 'academiccalendars.id' in 'order clause': SELECT  academic_calendars.* FROM academic_calendars  WHERE academic_calendars.deleted = 0 ORDER BY academiccalendars.id LIMIT 500 OFFSET 0
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/connection_adapters/mysql2_adapter.rb:696:in `query'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/connection_adapters/mysql2_adapter.rb:696:in `block in exec_query'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/connection_adapters/abstract_adapter.rb:244:in `block in log'
from /var/lib/gems/1.9.1/gems/activesupport-3.1.2/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/connection_adapters/abstract_adapter.rb:239:in `log'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/connection_adapters/mysql2_adapter.rb:694:in `exec_query'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/connection_adapters/mysql2_adapter.rb:688:in `select'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/base.rb:470:in `find_by_sql'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/relation.rb:111:in `to_a'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/relation.rb:129:in `to_a'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/relation/finder_methods.rb:159:in `all'
from /var/lib/gems/1.9.1/gems/activerecord-3.1.2/lib/active_record/base.rb:441:in `all'
from /var/lib/gems/1.9.1/gems/xapian_db-1.2.2/lib/xapian_db/index_writers/direct_writer.rb:73:in `block in reindex_class'
from /var/lib/gems/1.9.1/gems/xapian_db-1.2.2/lib/xapian_db/index_writers/direct_writer.rb:72:in `times'
from /var/lib/gems/1.9.1/gems/xapian_db-1.2.2/lib/xapian_db/index_writers/direct_writer.rb:72:in `reindex_class'
from /var/lib/gems/1.9.1/gems/xapian_db-1.2.2/lib/xapian_db.rb:160:in `block in rebuild_xapian_index'
from /var/lib/gems/1.9.1/gems/xapian_db-1.2.2/lib/xapian_db.rb:158:in `each'
from /var/lib/gems/1.9.1/gems/xapian_db-1.2.2/lib/xapian_db.rb:158:in `rebuild_xapian_index'

Hi John
Glad you enjoy the gem :-) The problem was introduced here: https://github.com/garaio/xapian_db/commit/e2ea329b0a114078900d0b09e72c134b487eaede
It is already fixed in the master branch but not yet released. Expect a new release within the next days. In the meanwhile, you might want to use the current master: gem 'xapian_db', :git => 'git://github.com/garaio/xapian_db.git'

fixed in <IP_ADDRESS>

Excellent! Upgrading now. Thanks for your help.


Changed docopt parsing tool with cxxopts tool

Signed-off-by: Timotei Molcut<EMAIL_ADDRESS>Docopt parsing tool is not god for scaling up, because when adding new arguments the stack size must be increased. Cxxopts seems to be a better solution.

Let's move the header to a location that could be shared by any other command line executable.
I propose to create a 'common' directory in the top-level directory. Then create a 'third_party' dir inside common. Then I would add this library as a submodule inside 'third_party' dir.

Let's move the header to a location that could be shared by any other command line executable.
I propose to create a 'common' directory in the top-level directory. Then create a 'third_party' dir inside common. Then I would add this library as a submodule inside 'third_party' dir.

With cxxopts library we won't be able to keep the same names for all options. Specifically, we won't be able to have one character length for long options (e.g. --n, --m).
We will put this PR on hold for now.


Impact of using widely referenced open source data sets

New to the field and might be completely off the mark here - but was any consideration given to the fact that because the data sets used are fairly widely referenced and repeated that they might have formed part of the original foundational training data for the models and this might have boosted model performance vs. using a novel dataset?

This is a good question. I think we can discuss this from two perspectives: training and evaluation.

From the training perspective, we can discuss whether the train-test data split in our project is reasonable, and whether the data (including the test set) has been used by other models. Firstly, our train-test sets are strictly separated, so there is no data leakage issue between them. Of course, due to the more similar distribution of our training and testing data, training with our data is likely to perform better on our test set than training with new data. This is the generalization problem often discussed in deep learning and is a capability that can be further explored and discussed. Secondly, since these LLMs rarely fully disclose their complete training data, we cannot be 100% sure that other models have not been trained on related data. However, since the original data is purely tabular data and not in easily readable formats like JSON, to our knowledge, we are the first to convert it into text form for LLM training and evaluation. In addition, based on our evaluation results, most LLMs perform poorly. We believe that existing models have most likely not been trained on this dataset.
From the evaluation perspective, we are happy to collaborate with introducing new datasets for evaluation. As we mentioned in our first point, introducing new datasets for training and testing on the old datasets, or introducing new datasets for testing the old datasets used for training, can both help to further estimate the generalization ability of these models. Therefore, we also welcome everyone to collaborate with us to make more contributions in the field of credit and risk.

Thanks for the prompt response.  The train-test split approach seems standard and reasonable.  It still concerns me a little that the foundation model training sources might impact performance for these widely available sets.  As you suggest, it is difficult to evaluate training data used in the foundation models.  Nevertheless, even if one poses an elementary question to GPT-4 such as "which features are typically considered redundant in the porto seguro dataset" it is able to reasonably suggest redundant features by category and it also has knowledge of the best performing models for the data set.   Clearly that is some way off from recognizing the data being received and evaluated in your analysis - but it suggests there might be some advantage derived from the foundation training.   Would be reassuring to see some results were someone to contribute a tokenized but previously undisclosed dataset for which they have SOTA scores.

Thank you for your valuable suggestion. As we mentioned previously, we do currently are working with some collaborators to gather new and undisclosed datasets for evluatrion (maybe update this year, depends on the lisence of the private dataset), and if you have any relevant data that you'd be willing to share, we would be happy to collaborate with you to further investigate this matter.


Import and namespacing

Having duplicates in different libraries or files is a normal situation for every programming language and should be dealt with. Having several overloads of the same function with the same type would lead to a compiler error.
Solution
Importing a whole module should create a new namespace for the imported functions:
import root/*
root.bar()

Mostly addressed by #388 modulo the extensions described in #389 .


Fastlane install error

I'm getting this error on install. Tested on a few machines + VM's. Old installs, fresh installs. Same result.
Repro steps:

Install OSX.
Install XCode
Install homebrew
Install cocoapods
Install fastla.....

Ah... brew install ruby
jenkins:~ jenkins$ ruby --version
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]

This fixes it.

I guess the real issue here is that even though fastlane's min ruby requirement is 2.0.0, it doesn't work.

hey @crewshin! Apologies for the issues you were having with ruby! I am going to close this issue for now because it's been a while since it started, but please reopen it if you are still having issues. If its ruby issues you are having, I would check out rbenv as a managed ruby environment! :name_badge:


.value is not resolved in template when use Nuxt plugin

Environment

Operating System: Linux
Node Version:     v18.12.1
Nuxt Version:     3.0.0
Nitro Version:    1.0.0
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      modules, oxyshopNuxt, i18n
Runtime Modules:  normalizedModule(), normalizedModule()
Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-xxv6jq?file=app.vue
Describe the bug
If I define a computed with value in the plugin, then use the plugin in <template>, the .value does not contain any data.
If I inject the plugin in <script setup> via useNuxtApp, computed is defined in the template.
Additional context
No response
Logs
No response

@danielroe is this issue a feature request? I think you have added an answer so maybe this can be closed if no further work is needed?

Just helping out some future Googlers – if you get a 500 unref() is not a function, this could be the culprit.


lmdb::dbi::open should take a string_view

If you store the names of sub dbs in a db, you need to first convert them to a std::string and then call c_str() on it, to be able to pass it safely to dbi::open. Imo it should be possible to pass the string_view directly.
This is a small UX fix, otherwise I really enjoy using this library, thank you for maintaining it!

Good idea, thank you for requesting it! I just pushed a commit that I think should do what you want. Let me know if not :+1:

Wow, awesome, thank you! That was super quick!


[Bug] Adding an OpenAI key causes right side resume panel to freeze.

Is there an existing issue for this?

[X] Yes, I have searched the existing issues and none of them match my problem.

Product Variant
Cloud (http://rxresu.me)
Current Behavior
After adding my OpenAI API key, I could no longer edit my resume properly. The right-side panel with layouts, etc. is completely frozen.
In order to unfreeze the panel, I erased all cookies and local storage and quit Chrome. This worked until I added my OpenAI AKI key again. The right side panel freezes immediately with the following error in the JS console:
27844.tabPrompt.js:2 TypeError: Cannot read properties of undefined (reading 'item')
    at eo (7844.tabPrompt.js:2:111370)
    at $r (7844.tabPrompt.js:2:4290647)
    at Yn (7844.tabPrompt.js:2:4299537)
    at Si (7844.tabPrompt.js:2:4338108)
    at ku (7844.tabPrompt.js:2:4329619)
    at Lu (7844.tabPrompt.js:2:4329544)
    at gu (7844.tabPrompt.js:2:4326546)
    at 7844.tabPrompt.js:2:4277925
    at t.unstable_runWithPriority (7844.tabPrompt.js:2:4447783)
    at Ko (7844.tabPrompt.js:2:4277634)

Expected Behavior
The application should work as normal after entering the OpenAI API key.
Steps To Reproduce

In Settings, enter your OpenAI API key.
Open an existing resume.

What browsers are you seeing the problem on?
Chrome
What template are you using?
Chikorita
Anything else?

Ah, looks like their APIs changed over time. That's annoying as they don't have version pinning on their APIs yet. Will look into this soon.


Proposal of adding Retention/Disposal elements: Proposed element Preservation date

Proposed element Preservation date. Date after which disposal of AIP shall occur if PreservationStatus="DI". That is preservation shall only occur up to and including this date, i.e. package shall be retained to this date. E.g. ”2020-01-01” means that the AIP shall be destroyed (directly) after this date (or retained to this date depending on ones viewpoint.). Element type: YYYY-MM-DD. Shall be given if PreservationStatus="DI". Otherwise it is optional.

Connected to https://github.com/DILCISBoard/E-ARK-CSIP/issues/362

Decided in DILCISBoard/E-ARK-CSIP/issues/362 that this is beyond the scope of a generally applicable specification.


Review postgres service

Context
The postgres service is in charge of the slashing protection history. This service is critical and must work as expected.  Eventually there have been observed issues when importing slashing protection data.
Furthermore, the way of building the postgres service could not be correct.
Todo

Ask consensys team to review the postgres Dockerfile and verify its correct
Test importing slashing protection and verify it worked. Check the logs
Try to reproduce slashing and verify the postgres works as expected

fixed:

No more error logs
Reduced postgres image size

! Be alert for web3signer releases to update dockerfiles: Dockerfile and Dockerfile.dev


WIP: Unpin packages

Just for review purposes at this point.  A couple changes need to land in blueboxgroup/ansible-modules-core before merging this won't break the universe.

So I'm curious, if we actually need all of python-fooclient stuff any more. Shade has taken over most of the things, it would be for openstack modules that are not os_ namespaced, or for any direct calls to the clients. Can you try dropping some of them or figuring out which ones we can drop from reqs?

So, we do need python-novaclient for the time being, and the version getting pulled in doesn't work well with the nova_keypair module in our fork of ansible-modules. I'm going to look at fixing that one up, or replacing it.

Once #1491 merges this can be rebased and will likely work. Might even be able to leave python-novaclient commented out.

retest

closing old PRs


Can this API also process groupme bot callbacks?

Hello,
I've started something to record the GroupME bot callbacks.
But I'm stuck in the fact that not the entire Json message is posted to my php-page, because the callback post for the bot contains unicode characters, whcih cannot be processed for some reason.
I was wondering if there are plan to add some callback processing functionality to the project?

Not entirely, this library is specifically for requests to the api not for receiving callbacks. I wrote something else for receiving callbacks but I use a hybrid approach and don't actually use much of the bot api.
I think I ran into the unicode issue too.. I'll have to look through some other code to find that. Will get back with you, I can probably cobble together a quick example.

I looked into the problem a bit more and noticed to problem was NOT receiving the complete data, but storing it in the database.
I'm using the code below to work around the problem.
    // Get post data
    if($contenttype == 'application/x-www-form-urlencoded')
    {
        $postdata = implode("&", $_POST);
    }
    else
    {
        $postdata = file_get_contents("php://input");
    }

    // decode json data to and object and then create a Json string again.
    // When the original string contains unescaped unicode characters, these will be converted
   // to escaped characters, whcih can be stored in a UTF-8 storage
    $cbData = json_decode($postdata);
    $postdata = json_encode($cbData);

I basically do...
$raw_json = file_get_contents('php://input'); // get data
$array_decoded = json_decode($raw_json, true); // convert to php array

if ($array_decoded) {    // check if array exists
    // at this point I access properties of the callback
    //IE: $array['group_id']
    // $array['text']
    // etc
}

This looks almost the same as my code - however I found out, when you post JSON data with contenttype 'application/x-www-form-urlencoded', the 'php://input' is empty!

Closing this out, lemme know if I can help further.


[SP-2837] Backport of PDI-14130 - Job Entries that are missing links …

…to help (6.1 Suite)
pick [PDI-14130] Job Entries missing help links
pick [PDI-14130] - Job Entries that are missing links to help
pick [PDI-14130] - Job Entries that are missing links to help
pick [PDI-14130] - Job Entries that are missing links to help

Build Completed
:x: This pull request has errors. They will need to be addressed before it can be accepted. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f engine/build.xml clean-all resolve jacoco && ant -Dtestreports.dir=bin/reports/integration-test -f engine/build.xml jacoco-integration checkstyle publish-local
ant -Dtestreports.dir=bin/reports/unit-test -f plugins/kettle-hl7-plugin/build.xml clean-all resolve jacoco && ant -Dtestreports.dir=bin/reports/integration-test -f plugins/kettle-hl7-plugin/build.xml jacoco-integration checkstyle publish-local
ant -Dtestreports.dir=bin/reports/unit-test -f plugins/kettle-palo-plugin/build.xml clean-all resolve jacoco && ant -Dtestreports.dir=bin/reports/integration-test -f plugins/kettle-palo-plugin/build.xml jacoco-integration checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  engine/src/kettle-job-entries.xml
  plugins/kettle-hl7-plugin/src/org/pentaho/di/job/entries/hl7mllpack/HL7MLLPAcknowledge.java
  plugins/kettle-hl7-plugin/src/org/pentaho/di/job/entries/hl7mllpin/HL7MLLPInput.java
  plugins/kettle-palo-plugin/src/org/pentaho/di/job/entries/palo/JobEntryCubeCreate/PaloCubeCreate.java
  plugins/kettle-palo-plugin/src/org/pentaho/di/job/entries/palo/JobEntryCubeDelete/PaloCubeDelete.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.core.auth.core.impl.DefaultAuthenticationConsumerFactory

Branch Change:  + 7.14%
Complexity Change:  + 7.69%

org.pentaho.di.job.entries.sql.JobEntrySQL

Instruction Change: -3.28%:small_red_triangle_down:
Line Change: -3.95%:small_red_triangle_down:

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Branch Change:  + 2.35%
Complexity Change:  + 2.70%

org.pentaho.di.trans.steps.randomvalue.RandomValueMeta

Branch Change: -2.17%:small_red_triangle_down:
Complexity Change: -2.17%:small_red_triangle_down:
Instruction Change: -.15%:small_red_triangle_down:

org.pentaho.di.trans.steps.uniquerows.UniqueRowsMeta

Instruction Change: -.18%:small_red_triangle_down:

License header violations

:heavy_exclamation_mark: Copyright year is not the current year on plugins/kettle-palo-plugin/src/org/pentaho/di/job/entries/palo/JobEntryCubeCreate/PaloCubeCreate.java. Found 2011. Was expecting 2016

:heavy_exclamation_mark: Copyright year is not the current year on plugins/kettle-palo-plugin/src/org/pentaho/di/job/entries/palo/JobEntryCubeDelete/PaloCubeDelete.java. Found 2011. Was expecting 2016

@lucboudreau , @wingman-pentaho , could you review it, please
The licenses problem caused by two-lines copyright.


Closes #1894 address bug in Input_Rate() for 0 row dataframe inputs for dfNumerator/dfDenominator

Overview
Address function/bugs such that it works "as expected"
Add new error messaging for all 0 denominator entry (would cause x/0 NaN on metric value)
Test Notes/Sample Code

Connected Issues

Closes #XXX

devtools::install_github("Gilead-Biostats/gsm", ref = "fix-1894")
#> Using GitHub PAT from the git credential store.
#> Downloading GitHub repo Gilead-Biostats/gsm@fix-1894
#>
#> ── R CMD build ─────────────────────────────────────────────────────────────────
#> * checking for file ‘/tmp/RtmpIffjJv/remotes10bb4a43933760/Gilead-BioStats-gsm-4fb07ab/DESCRIPTION’ ... OK
#> * preparing ‘gsm’:
#> * checking DESCRIPTION meta-information ... OK
#> * checking for LF line-endings in source and make files and shell scripts
#> * checking for empty or unneeded directories
#> * building ‘gsm_2.1.0.tar.gz’
#> Warning: invalid uid value replaced by that for user 'nobody'
#> Warning: invalid gid value replaced by that for user 'nobody'
#> Installing package into '/home/zelos.zhu/R/x86_64-pc-linux-gnu-library/4.3'
#> (as 'lib' is unspecified)
library(gsm)
dfInput <- Input_Rate(
  dfSubjects = clindata::rawplus_dm,
  dfNumerator = data.frame(subjid = character(0)),
  dfDenominator = clindata::rawplus_dm,
  strSubjectCol = "subjid",
  strGroupCol = "siteid",
  strGroupLevel = "Site",
  strNumeratorMethod = "Count",
  strDenominatorMethod = "Sum",
  strDenominatorCol = "timeontreatment"
)
head(dfInput)
#> # A tibble: 6 × 6
#>   SubjectID GroupID GroupLevel Numerator Denominator Metric
#>   <chr>     <chr>   <chr>          <dbl>       <dbl>  <dbl>
#> 1 0496      5       Site               0         675      0
#> 2 1350      78      Site               0         675      0
#> 3 0539      139     Site               0         675      0
#> 4 0329      162     Site               0         675      0
#> 5 0429      29      Site               0         675      0
#> 6 1218      143     Site               0         675      0

dfInput <- Input_Rate(
  dfSubjects = clindata::rawplus_dm,
  dfNumerator = data.frame(subjid = character(0)),
  dfDenominator = data.frame(subjid = character(0), timeontreatment = numeric(0)),
  strSubjectCol = "subjid",
  strGroupCol = "siteid",
  strGroupLevel = "Site",
  strNumeratorMethod = "Count",
  strDenominatorMethod = "Sum",
  strDenominatorCol = "timeontreatment"
)
#> Error in `Input_Rate()`:
#> ! Method Sum for timeontreatment is causing all denominator values to be
#>   0, please check character(0) and numeric(0)

Created on 2024-10-17 with reprex v2.1.0
@samussiah is something like this the "expected" outcome you were going for?


How to Modify the Code?

Hey i made my own environment, but i can't seem to get the environment to melt in the AI? For example i don't need the env to be destroyed everytime cause its constant and i just don't get how to implement it in the code? i have the actions environment and rewards defined in my environment where should i put this all in the AI? if somebody could explain to me would be great! if you wanna discord my discord is: JANDEVRIES#7143
talking about the Q-Learning code
greetings Jan

You should learn how to write your own gym environment.
See this: https://github.com/openai/gym/tree/master/gym/envs


UPS not charging batteries correctly

Hello friends.
Yesterday have  arrived to home and see my rpi off (with no time to check), today i have checked... the UPS are not charge the batteries correctly. Actually batteries have ~2.1V each.
I am using a 3Amp quality  charger.
Maybe this issue have about the Fw7 ? or hw issue?
Or give me a recommendation of batteries brand/model ?
i have 4x new brand.. doing the same on both pairs.. I think this it is because I never get the 4 fix led on. always got the 4th blinking.

You could run upsPlus.py and reroute its output to a file. Then you'll have some kind of a trail. You can also run my UPS_report.py and reroute the output to a file. It will supply more information.
I run upsPlus with output to a file all the time. Maybe I will not do that any longer when I leave it to run for months at a time eventually, but for now.
It would be easy to add more output to either script as they both read the whole of the UPS memory into the buffer called aReceiveBuf.

I need to find that service first, then. I assumed this place is it.
BTW, I have no problem with batteries not being charged properly. That was the other person who started this issue.

I bought my UPS plus board from the 52Pi Official Store on AliExpress.
I have not had problems with the charging as such.
I have had to solve problems with TimeoutError exceptions and failing writes (to 0x18 & 0x1A, the countdown registers). That was really bad, actually. Cost me a lot of time and effort.
The voltage to the Pi is slightly below 5V, but no problems because of that. (headless, no monitor).
It can very well be that the current readings for the battery are off, as somebody wrote in another issue, but otherwise it all seems to wrks logically. When the bluelights go out, the battery is discharging and the UPS collects data about it. The discharging lasts only a short time (less than 15 sec) and the batteries get charged during the rest of the time.
Whenever the Pi is off, the batteries get fully charged after a short while and all 4 blue leds stay on.
I am now using Frtz13's scripts. It doesn't have all the same features as what I had built into my scripts, but I was only mimicking another UPS (Olmatic) and these extra features aren't essential to me.
After I removed the charger, my Pi ran another hour with the default setting of 3,7V. (This I don't understand; it is waaay higher than what the lithium cells can discharge to safely.)
I think I'll stick to Frtz13's scripts. I can change my own UPS_report.py to fit better with that. It has rounding to significant digits and V, A and W instead of mV, mA and mW.
I suppose I could even use my own PowerCycle.py script if I want. So I only replace the GeeekPi's control program (or my own version of it) with fanShutDownUps.py.
I don't have the hardware for the Ice Tower fan control now, but that's easy (unless the LEDs can't handle the PWM). The MQTT stuff is totally new to me, but interesting since I have a cottage where I have little servers etc.
Frtz's is a complete package and running in the background. Really Nice!


Fix up a couple of test flakes

There are a bunch of sleep() sync things which are brittle, but it's pretty complicated to hang off of any event which guarantees that the prior stuff has completed.

The etcd test fixes look pretty solid for both cases in #880.


Click events for Markers

Hello!
I am looking for a way to create an event when a marker on a map is clicked. Is there an "onclick" - event for leaflet marker?  I'm referring to this post
https://stackoverflow.com/questions/16927793/marker-in-leaflet-click-event
My goal is to create a click reaction for a certain LayerGroup (except the popup window).
This callback should then generate further outputs (e.g. a plot) depending on the clicked marker. How could I achieve this? I am thankful for any help!

At the moment, events are only emitted by the map. It would be a nice addition to enable events on markers (and other objects), i might look into that at some point. If you need a quick hack, you could try matching the positions in Python,
import dash
import dash_html_components as html
import dash_leaflet as dl
import numpy as np
from dash.dependencies import Output, Input
from dash.exceptions import PreventUpdate

markers = ["a", "b", "c"]
lats = np.array([56, 56, 56])
lons = np.array([10, 11, 12])
d2 = 1e-3

app = dash.Dash(external_stylesheets=['https://codepen.io/chriddyp/pen/bWLwgP.css'])
app.layout = html.Div([
    dl.Map(children=[dl.TileLayer(url="https://a.tile.openstreetmap.org/{z}/{x}/{y}.png")] +
                    [dl.Marker(position=(lats[i], lons[i]), title=lbl) for i, lbl in enumerate(markers)],
           style={'width': "100%", 'height': "100%"}, center=[56, 11], zoom=9, id="map"),
    html.Div(id="log"),
], style={"position": "relative", 'width': '1000px', 'height': '500px'})

@app.callback(Output("log", "children"), [Input("map", "click_lat_lng")])
def marker_click(e):
    if e is None:
        raise PreventUpdate
    # Locate nearest marker.
    lat, lon = e[0], e[1]
    r2 = (lats - lat)**2 + (lons - lon)**2
    nearest = np.argmin(r2)
    # Trigger event if the click was close enough.
    if r2[nearest] < d2:
        return "You clicked marker {}".format(markers[nearest])
    return "You clicked nothing"

if __name__ == '__main__':
    app.run_server(debug=False)

This approach is far from perfect, though. The "right tolerance", i.e. the d2 depends on the zoom level.

Thanks @emilhe for the answer and code example, interesting approach!
However this only works when there is no marker children such as a dl.Tooltip or dl.Popup defined.
Let's say we add to the marker
dl.Marker(position=(lats[i], lons[i]), title=lbl, children=[dl.Tooltip(f'Tooltip {lbl}')]) .
It seems that as long as the tooltip is open (similar to a dl.Popup), we cannot trigger a click event on the map. So we would have to recognize exactly this pop-up event as trigger for our callback.
For the variant with a popup window there would be one option that requires one click more:
By adding a dcc.Button() to each marker popup, you could trigger events directly from these markers when you click the button.
But of course that gets pretty chaotic when you have a lot of markers and you have to generate a lot of callbacks...

I have added a click event to the Marker object and pushed the new code to pypi. The event should be available, if you update to version 0.0.4. Here is a small example,
import dash
import dash_html_components as html
import dash_leaflet as dl
from dash.dependencies import Output, Input

markers = ["a", "b", "c"]
lats = [56, 56, 56]
lons = [10, 11, 12]

app = dash.Dash(external_stylesheets=['https://codepen.io/chriddyp/pen/bWLwgP.css'])
app.layout = html.Div([
    dl.Map(children=[dl.TileLayer(url="https://a.tile.openstreetmap.org/{z}/{x}/{y}.png")] +
                    [dl.Marker(id=lbl, position=(lats[i], lons[i]), title=lbl) for i, lbl in enumerate(markers)],
           style={'width': "100%", 'height': "100%"}, center=[56, 11], zoom=9, id="map"),
    html.Div(id="log"),
], style={"position": "relative", 'width': '1000px', 'height': '500px'})

@app.callback(Output("log", "children"), [Input(marker, "click_lat_lng") for marker in markers])
def marker_click(*args):
    if not any(list(args)):
        return ""
    marker_id = dash.callback_context.triggered[0]['prop_id'].split(".")[0]
    return "You clicked marker {}".format(marker_id)

if __name__ == '__main__':
    app.run_server(debug=False)

Let me know, if it works as intended.

Wow awesome, very well done!
Your example worked for me! I will inform you if I encounter problems with my application.

Thanks! Good to hear that it works :)


arbitrary collection name

Is it possible to use this package to publish collection with an arbitrary collection name?
My use case is I have two template-level publications on the same route that need to show different data. So that they dont interfere with each other, it looks as though you can do this: http://stackoverflow.com/questions/27748100/in-meteor-how-can-i-query-only-the-records-of-a-given-subscription.
    find: ->
      console.log "segment-people-create-campaign", appId, segmentId, options
      return unless options
      SegmentPeople.find { app: OID(appId), segment: OID(segmentId) }, options
    children: [
        {
          find: (segmentPerson) ->
            Mongo.Collection._publishCursor People.find
                _id: segmentPerson.person
                app: segmentPerson.app
            , this, 'people2'
        }
    ]

However, doing so results in this error on server:
I20160426-10:16:49.938(-4)? Exception in queued task: Error: Match error: Failed Match.OneOf or Match.Optional validation
I20160426-10:16:49.939(-4)?     at check (packages/check/match.js:33:1)
I20160426-10:16:49.939(-4)?     at [object Object]._.extend._getFindOptions (packages/mongo/collection.js:248:1)
I20160426-10:16:49.940(-4)?     at [object Object]._.extend.find (packages/mongo/collection.js:284:1)
I20160426-10:16:49.940(-4)?     at [object Object].children.find (server/publicationsReactive.coffee:12:52)
I20160426-10:16:49.940(-4)?     at Publication._getCursor (packages/reywood_publish-composite/packages/reywood_publish-composite.js:117:1)
I20160426-10:16:49.941(-4)?     at Publication.publish (packages/reywood_publish-composite/packages/reywood_publish-composite.js:58:1)

Any ideas? Thanks!

similar use case to #82

Ah, looks like you can use collectionName.... http://braindump.io/meteor/2014/09/20/publishing-to-an-alternative-clientside-collection-in-meteor.html


Make logging flush

Logging does not flush atm and that mean there is no information of how calculations are going. This is problematic when trying to get things going on supercomputer.
Here is a related discussion.

This could work too.

Piping output to file now works some how. You can use "tail -f" to see progress and logger messages. But using "less" is bad.
All in all this should be enough for v0.1.0 release.


publish<EMAIL_ADDRESS>

Requested by: @marandaneto
Merge target: v7.0.0
Quick links:

View changes
View check runs

Assign the accepted label to this issue to approve the release.
Leave the #retract comment under this issue to retract the release (original issuer only).
Targets

[ ] pub-dev
[ ] github
[ ] registry

Targets marked with a checkbox have already been executed.  Administrators can manually tick a checkbox to force craft to skip it.

https://github.com/getsentry/sentry-dart/compare/7.0.0-alpha.1...refs/heads/release/7.0.0-alpha.2


typo in SharePoint Online link in the left nav

now you have https://docs.microsoft.com/en-us/sharepoint/sharepoint-online.md but it should be https://docs.microsoft.com/en-us/sharepoint/sharepoint-online

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: bf76353d-e095-c8a4-cf9e-4bafee7b688c
Version Independent ID: 52df9c4a-3a3d-2305-bf00-5184d940bcd3
Content: Deployment planning checklist for Office 365
Content Source: Enterprise/deployment-planning-checklist.md
Service: o365-administration
GitHub Login: @robmazz
Microsoft Alias: robmazz

Thank you @dplotnikov for the feedback. We've fixed the link.


Unable to install docker since 0.81.0

Describe the bug
With docker versions 0.82.0+ migration step is not completing.
manyfold error.txt

I have the same error on a completely fresh install, literally just installed the OS a few hours ago and downloaded and started the container for the very first time

I'm looking into it now; I've seen it do this occasionally where it's failed on a transaction earlier on, and now postgres gets stuck in an invalid state, but if it's happening fresh for two people, there's definitely something up. I'll get back to you soon.

OK, I think I've got a fix - can either of you (@ToasterUwU or @kqmaverick ) try out the edge docker tag, see if that fixes it? If so, I'll push out a release asap.

@Floppy I'm gonna test it in max an hour

@Floppy Edge fixed it for me, so whatever you did is the fix

Fantastic :)

ok, v0.84.0 is out with that fix in it. @kqmaverick I hope that fixes it for you, and thanks for the report!


@kanaabe => EOY last sections, bugs

Full width styles for final 3 sections
Bug fixes for fade-in
Move carousel into its own template
Remove bottom-rule from header scroller
Add vertical rule to intro text

💯


[GOBBLIN- 1856] Add flow trigger handler leasing metrics

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[ ] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-1856

Description

[ ] Here are some details about my PR, including screenshots (if applicable):
As part of this PR, I want to add metrics for FlowTriggerHandler to help understand if we were able to obtain, handle and transition the different lease acquiring statuses when we switch to multi-active scheduler mode where each scheduler would attempt to lease a flow event and process it further based on the status of the attempt.

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Builds Successfully

Commits

[ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #3717 (852e001) into master (c4a466b) will decrease coverage by 2.03%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #3717      +/-   ##
============================================
- Coverage     46.96%   44.94%   -2.03%
+ Complexity    10818     2117    -8701
============================================
  Files          2143      412    -1731
  Lines         84600    17821   -66779
  Branches       9404     2171    -7233
============================================
- Hits          39733     8009   -31724
+ Misses        41241     8951   -32290
+ Partials       3626      861    -2765

see 1734 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Parse settings error.

New to sublime text and found this great theme.  I can activate the theme just fine but when I went to adjust the tab height, or anything else for the matter I get this.
"Error trying to parse settings: Unexpected character, expected a comma or closing bracket in ~/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings:10:1"
This is what it looks like in my user prefs file:
{
"theme": "predawn.sublime-theme",
"color_scheme": "Packages/Predawn/predawn.tmTheme"
// Interface & Behavior
"close_windows_when_empty": false,
"draw_minimap_border": true,
"enable_tab_scrolling": false,
"overlay_scroll_bars": "enabled",
"open_files_in_new_window": false,
"preview_on_click": false,
"scroll_past_end": true,
"scroll_speed": 5.0,
"show_full_path": false,
}
I'm using the latest version of Sublime Text 2 on A macbook air running Yosemite.

NVM. Fixed it.  Didn't add a comma.  Closing request.


Implement nonfirst attempt LA metering changes

What was changed
Attach nonfirst LA attempt count to WFT completes
Why?
In support of metering changes
Checklist

Closes

How was this tested:
Added integration test

Any docs updates needed?
Nope

Draft until proto PR can be merged to master


Fixing #3089, and some unifier fixes

#3089 revealed that the unifier is not using primops for its normalization to WHNF, but I believe it should. While it is using primops in some localized places (see e.g. let equal around line 4176), it's not the case for the whnf function called in compress_tprob. Adding Primops there fixes the problem in #3089, but uncovers two other issues due to the extra normalization:
1- We are not handling equality of universe values (causing a regression in FStar.Reflection.Typing), or other lazy opaque terms. I fixed by this making the unifier expand lazy terms to their representation, as long as this is sound, i.e. if the repr is complete. This is case for universes, fixing this issue.
2- The unifier cannot match N (a literal) with - X (a negation, i.e. an application of op_Minus). I made this work by rewriting the problem into -N (still a literal) and X. This was uncovered by a failing tactic in Vale code. I've added an F* test for it now.
Everest came back green locally.

Actually it does lead to one regression: https://github.com/project-everest/mitls-fstar/pull/258

I rebased the PR and removed point (2). The only failure caused by this fact is in a use of the canonicalization tactic (FStar.Tactics.Canon) since it was trying to interpret terms as arithmetic formulas, and relying on the fact that if repr t = e, then repr (-t) = Neg e, which is now not true if t is a literal. It's a simple fix to make the tactic smarter, and arguably the right thing to do instead of specializing some arithmetic fact into the unifier. The miTLS patch is still needed.


Updates Products, Plans, Customers, Subscriptions

OOPS didn't mean to PR to this upstream repo. still working on this :-)


No compatible version found<EMAIL_ADDRESS>

Node v7.7.4 (npm v4.1.2)
When create a new adonis project from cli I am getting this error
xaamin$ npm install
npm ERR! Darwin 16.4.0
npm ERR! argv "/Users/nulldata/.nvm/versions/node/v7.7.4/bin/node" "/Users/nulldata/.nvm/versions/node/v7.7.4/bin/npm" "install"
npm ERR! node v7.7.4
npm ERR! npm  v4.1.2
npm ERR! code ETARGET
npm ERR! notarget No compatible version found<EMAIL_ADDRESS>npm ERR! notarget Valid install targets:
npm ERR! notarget 0.14.1
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'adonis-websocket'
npm ERR! notarget
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/nulldata/Xaamin/NodeJS/headhunt-api/npm-debug.log
Some help is welcome. Thanks.

Hey @benxaamin !
This was a problem with uws that have remove all versions in the NPM registry.
@thetutlage has managed to fix this in the latest release (1.0.4).


Possible NullReferenceException

Brief bug description
NullReferenceException was thrown from multiple ManagementClient methods.
Repro steps
Exception is thrown from "ManagementHttpClient" when call to "_httpClient.SendAsync" in "SendHttpMessage" throws an exception (in my case it was timeout exception), this exception is captured by used retry policy ("ManagementHttpClient"
line 62 "_resiliencePolicyProvider.Policy.ExecuteAndCaptureAsync" ) as result of this there is null assigned to response variable on line 65. This than causes exception on line 73 "if (response.IsSuccessStatusCode)".
Also please note that built in retry policy is not handling any exceptions thrown from HttpClient (there could be many transient exceptions related to network communication).
Expected behavior
I would expect ManagementException in this case.
Test environment
Additional context
Screenshots

Improve overall default retry policy. It only worked for responses from MAPI, but it did not take into account that an exception can be thrown. Please, be aware, this is a breaking change because  ManagamentException is thrown instead of HttpRequestException. So some exception handling in a customer codebase might stop working.
I would prefer to release this as a major version.

"ManagementException" is intended solely for error responses from MAPI. To maintain this, I removed the section where "HttpRequestException" was wrapped within "ManagementException." As a result, this is no longer considered a breaking change.


Clothes Shopping Website

Describe the project
The project I am working on is a clothes shopping website that utilizes the FakeMart API to retrieve product information and provide a seamless shopping experience for users. The website is designed to showcase a wide variety of clothing items and allow customers to browse, select, and purchase their favorite products.
Using HTML, CSS, and JavaScript, I am creating an aesthetically pleasing and user-friendly interface for the website. The HTML will structure the content and layout of the pages, CSS will be used to style the elements and make them visually appealing, while JavaScript will handle the dynamic functionality and interactivity of the website.
Issue Type:

[ ] Bug Report
[ ] Feature Request
[ ] Documentation
[x] New Project

Additional context
I plan to incorporate advanced features such as a search functionality, filtering options based on different criteria (e.g., price range, size, color), a shopping cart for users to add and manage their selected items, and a secure checkout process to complete the purchase.

Hy @vaishnavi-3969 I would also like to contribute to your project. Please let me know how I can help.

hi @vaishnavi-3969  I would like to contribute to your project. Please let me know.

Hi@vaishnavi-3969 I would like to contribute to your project.

hey @vaishnavi-3969 I would happy to contribute to your project. pls let me know how I can help you

Hey @vaishnavi-3969  I would like to contribute to your project pls let me know how can I help you


[BUG] Icons not displaying even though font is installed

Expected Behavior
yasb should be displaying icons correctly with the widgets
Current Behavior
Although i have the font family installed and haven't changed anything in the styling the icons won't show
Context (Environment)
Fresh install of yasb, both bars and font awesome fonts installed. Everything set up correctly with no errors and none of my icons are being displayed. Ran with python 3.10 like it suggests so

I've the same error. Microsoft Windows 11 Pro 10.0.22621

I have the same error. I've installed both Font Awesome v5 and v6 (as shown in the image below) and have changed the styles.css file accordingly, but it does not work.

I can confirm, I have the same issue. Font Awesome is correctly installed for all users.

Same issue, Windows 11 Home 22H3, build 22631.2715.

Same issue for me but I ended up changing to JetBrainsMonoNL Nerd Font and it works

Confirming this is the same for me on a fresh install of everything; Windows 11, Bars, Font Awesome 5 Free and no errors.
In my testing I found that if I reorder line 4 of the style.css as such  font-family: 'Font Awesome 5 Free', 'Courier New', 'Bars'; I get one icon and the rest failing to populate.

I was getting this bug, but installing the FontAwesome 5 Solid variant fixed it for me, for the disk space widget at least.
The network widget is still not showing its icons.

how is this still not fixed, iv tried every thing to get it to word :(


chore: fix tests after #6528 disabled autoimplicits

These work on the command line and therefore didn't fail in CI (as lake env lean blah.lean doesn't pick up the extra lean args?) but as soon as you open one of these files in vscode you get a sea of red errors.
I tried to fix a couple in a minimal way, if there was just for example one universe level missing, for most files the "fix" for now is just reenabling autoimplicits for the file.
This revealed a couple of tests that were incorrectly using an implicit type when they thought they were using Nat.
Two files had issues, that we may want to follow up on  test/superscript.lean which failed even with autoimplicits turned on when using an autoimplicit superscript variable (unsure if this was intentional).
And the ToExpr deriving handler seems to rely on autoimplicits somehow to work properly in the presence of universe, if an explicit universe variable is added there is still an error.

Two files had issues, that we may want to follow up on test/superscript.lean which failed even with autoimplicits turned on when using an autoimplicit superscript variable (unsure if this was intentional). And the ToExpr deriving handler seems to rely on autoimplicits somehow to work properly in the presence of universe, if an explicit universe variable is added there is still an error.

Can you open an issue about these two, and reference it in a TODO comment?

I was planning to look into them/discuss on zulip myself before reporting. I think that should be enough, we can always add the comments later if it does turn out they should become issues

bors r+


Binary SVM with SSG

I added BinarySVMWithSSG along the lines of BinarySVMWithDBCFW.
In the process, I found and fixed a bug in BinarySVMWithDBCFW, ignoring user specified dissolveFunctions.

That was quick :p
--
Thijs Vogels
On 18 November 2015 at 00:11:16, Martin Jaggi<EMAIL_ADDRESS>wrote:
Merged #36.
—
Reply to this email directly or view it on GitHub.

though in the future we'd prefer not to have separate classes for all these. or at least, they should not duplicate the oracle/feature code for each optimizer

Hm yeah, good point. Shall I factor those out to a separate class?
We could have a BinarySVM object that has the 'dissolveFunctions', or let the two classes inherit from an abstract BinarySVM class. What do you think?
--
Thijs Vogels
On 18 November 2015 at 00:14:13, Martin Jaggi<EMAIL_ADDRESS>wrote:
though in the future we'd prefer not to have separate classes for all these. or at least, they should not duplicate the oracle/feature code for each optimizer
—
Reply to this email directly or view it on GitHub.

yes, or just have a single class, since switching the optimizer is a one-line change anyway. i wonder what's easier for the user

Yes. Although there are some slight differences. the Distributed BCFW needs an RDD, for example, and accepts an argument for minibatches yes or no. Maybe we should really split the 'model' and the 'optimizer'. Usage would be something like this:
val model: DissolveFunctions = BinarySVM;
(or your own dissolve functions, maybe we should have similar ones to pystruct:
 MultiLabelCrf, ChainCRF, GraphCRF, EdgeFeatureGraphCRF.
val solver = DBCFWSolver(data, model, solverOptions, miniBatchEnabled = false)
val trainedModel = solver.optimize()
or
val solver = DBCFWSolver(model, options)  (why is miniBatchEnabled not a solverOption?)
val trainedModel = solver.train(data)
All the StructSVMWith* and BinarySVMWith* classes are not so complicated anyway. They could be moved to an 'examples' package.
One more remark: I notice that the BCFW solvers output a pair (trainedModel, debugInfo), whereas SSGSolver just outputs trainedModel.
I would be glad to help with this.
--
Thijs Vogels
On 18 November 2015 at 09:36:46, Martin Jaggi<EMAIL_ADDRESS>wrote:
yes, or just have a single class, since switching the optimizer is a one-line change anyway. i wonder what's easier for the user
—
Reply to this email directly or view it on GitHub.

yes, sth like
DissolveFunctions = BinarySVM
with many other possibilities would be perfect indeed. i wouldn't call it model though.
refacturing this would be great, but let's quickly check with @tribhuvanesh about it in the next days.
also, higher priority at the moment is still to explain the strange behavior in your modified chain example. not sure if it's easier to find that bug before or after refacturing...
and yes, miniBatchEnabled can become a solver-option


Error when run optimizer.compute_gradients

I'm trying to do training with multiple threads
I tried to run optimizer.minimize() in each threads but it didn't work because threads overwrited each other's weight updates. So I'm trying to stack computed gradients in each threads and apply mean or sum of them in another thread.
So I made a code like
w1 = tf.Variable(tf.random_normal([shape], stddev=0.01))
b1 = tf.Variable(tf.constant(0.1, shape=[filters]))
rmsprop = tf.train.RMSPropOptimizer(lr,decay,0.0,eps)
grads = rmsprop.compute_gradients(cost,[w1,b1])
apply_grads = rmsprop.apply_gradients(grads)
If i run apply_grads, it works fine. but when i run grads to get gradients, error occurs like below.
[(<tf.Tensor ~~ shape=~~ dtype=float32>, <tensorflow.python.ops.variables.Variable object at 0x7f6da5fd7350>)] of [(<tf.Tensor ~~ shape=~~ dtype=float32>, <tensorflow.python.ops.variables.Variable object at 0x7f6da5fd7350>)]  has invalid type <type "list">, must be a string or Tensor. (Can not convert a list into a Tensor or Operation.)
How can I get gradients for optimizer?
Or is there a efficient way to do training with multiple threads?

Are you passing grads directly to Session.run()? I believe that will contain a list of (gradient, variable) tuples, which needs to converted to a list a tensors in order to pass it to Session.run(). For example, you could do:
grads_and_vars = rmsprop.compute_gradients(cost, [w1, b1])
grads = [g for g, _ in grads_and_vars]
vars = [v for _, v in grads_and_vars]
grad_vals = sess.run(grads)
var_to_grad_val_map = {v.name: val for (v, val) in zip(vars, grad_vals)}

Was this the correct answer? I am having the same problem

I'm facing the same problem. Fetching the gradient values with session.run() always result in Type Error - which was mentioned by @gliese581gg .
I've tried various terms, including code snippet @mrry suggested above, but not so effective.

I'm facing the same problem. Fetching the gradient values with session.run() always result in Type Error - which was mentioned by @gliese581gg .
I've tried various terms, including code snippet @mrry suggested above, but not so effective.

Now I see the problem. With your program ended without freeing related resources, Variables with trainable=True will remain and be called by optimizer's compute_gradients() unless you specify Variables you want to know about. And that will result in returning non value objects(which is NonType), for those remaining Variables has nothing to do with current program.
This can be avoided in various ways - like calling tf.reset_default_graph() - , but still, I believe this is non-intentional bug, and should be fixed soon enough.

When I get the gradient of the InceptionV4 model, I get the same problem. The value of None appears in each BatchNorm layer, I'm not sure if this is an bug. Or, the BatchNorm layer would have no gradient.


Fix for AvatarURL database type

Some oauth2 providers may give very long avatar urls (i.e. Google). We already have database migration for this (v179), but we also need to specify proper type for xorm. At least database dump is broken without proper xorm tag.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@f87d5ea). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main   #18487   +/-   ##
=======================================
  Coverage        ?   46.27%
=======================================
  Files           ?      842
  Lines           ?   121180
  Branches        ?        0
=======================================
  Hits            ?    56079
  Misses          ?    58296
  Partials        ?     6805

Impacted Files
Coverage Δ

models/user/external_login_user.go
28.57% <ø> (ø)

Continue to review full report at Codecov.

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


MOB-21: Bug fixes after Milestone 2

What's up?
There were some bugs and minor API changes after Milestone 2 that effects our mobile app. Those issues should be solved in the first place.
To Do

[x] Photos have to be compressed before uploading.

[x] Tokens should be reset after logout.

[x] Dynamic number of likes.

[x] Type attribute should be removed from Art Item Class.

Deadline
24.12.2022 @ 15.30
Additional Information
No response
Reviewers
@mustafa-cihan @MustafaEmreErengul @mete

Everything is fine. Thanks!


Somthing wrong with Docs

We have outdated images in docs folder.
https://github.com/django-hijack/django-hijack/blob/3bf59b51e0f3e9ef0fddac9231435a00e696613f/docs/release-button.png
Also I don't understand readthedocs status here
https://github.com/django-hijack/django-hijack/blob/3bf59b51e0f3e9ef0fddac9231435a00e696613f/README.md#L11-L12

I asked @philippeowagner for access to debug the problem. He did grant access RTD access to this repo. Let's see if that helped. And yes, we should update the graphics.


cephfs: remove subvolumegroup creation

Describe what this PR does
This commit remove the creation of subvolumegroup.
Is there anything that requires special attention
Is the change backward compatible? Yes
Are there concerns around backward compatibility? No
Fixes: #4185

@iPraveenParihar You also need to modify docs asking users to create subvolumegroup before hand.

/test ci/centos/mini-e2e/k8s-1.27

/test ci/centos/mini-e2e/k8s-1.27

/test ci/centos/mini-e2e/k8s-1.27

@iPraveenParihar You also need to modify docs asking users to create subvolumegroup before hand.

docs/deploy-cephfs.md will add a Note section here?

/test ci/centos/mini-e2e/k8s-1.27

/test ci/centos/upgrade-tests-cephfs

LGTM, lets wait and get this added to #4222?

Added to PendingReleaseNotes.md

@Mergifyio queue

@Mergifyio queue

/retest ci/centos/k8s-e2e-external-storage/1.26

/retest ci/centos/k8s-e2e-external-storage/1.27

/retest ci/centos/k8s-e2e-external-storage/1.28

/retest /retest ci/centos/mini-e2e/k8s-1.27

/retest /retest ci/centos/mini-e2e/k8s-1.27

/retest /retest ci/centos/mini-e2e/k8s-1.28

/retest ci/centos/mini-e2e/k8s-1.27

/retest ci/centos/k8s-e2e-external-storage/1.28

/retest ci/centos/k8s-e2e-external-storage/1.28

/test ci/centos/mini-e2e-helm/k8s-1.26

/test ci/centos/mini-e2e-helm/k8s-1.26

/test ci/centos/mini-e2e-helm/k8s-1.26

@Mergifyio queue

@Mergifyio rebase

@Mergifyio rebase

@Mergifyio queue

/test ci/centos/mini-e2e-helm/k8s-1.26

/test ci/centos/k8s-e2e-external-storage/1.28

/test ci/centos/mini-e2e/k8s-1.27

/test ci/centos/mini-e2e/k8s-1.27

@mergifyio queue

@mergifyio rebase

@mergifyio queue


Provide Kotlin support

This is a neat little plugin, I can see it come in very helpful. I mainly develop in Kotlin though, so it would be great if I could also use it there - right now, I can annotate Kotlin code and it will show the dragon when called from Java code, but no dragons are shown in Kotlin code.

Have this planned for a future update

Not sure how to go about achieving this. Any guidance that would point me in the right direction appreciated. A PR would be even better 😄


Support for RequireJS 4.0.0 Beta 1

Hi,
In the next beta could you support for RequireJS?
Thanks!

Select2 will automatically define itself as the named module jquery.select2 (similar to jQuery which uses jquery). If you follow the RequireJS instructions on how to make jQuery work, they should work for Select2 as well. You should most likely be using the select2.amd.js file in this case, as it will not include the AMD loader that Select2 includes by default.
The other option is to point to the src/js directory, which is what Select2 uses to build the select2.js files. Keep in mind that there is currently an open ticket about translations not 100% working when doing this.

@kevin-brown  None of these solutions seem to work for TypeScript projects. I am banging my head against the wall trying to get a simple TypeScript project to work with select2.
Also, where is select2.amd.js?  Did you rename it?  I searched for it everywhere and can't find it.
Apologies if I am missing something obvious.

@kevin-brown  I figured this out - and I may have come up with a decent solution to the i18n problem.  Will try to describe my solution in the translation ticket, as it may be cleaner than what people currently do using 86b4a5d8e20cf666d7de523df77f1977ba1dad9c

The question still remains: Where is that select2.amd.js?
All I get Error: No define call for jquery.select2
http://requirejs.org/docs/errors.html#nodefine when I am including it together with jquery.

@jzabroski @nise Did you guys find out where the mythical select2.amd.js file is? The documentation seems to assume a level of missing knowledge..!


[Feature] XF, Toast position, to top of bottombar/below toolbar (with suit animation)

I'm using this stunning library into my Xamarin forms (Android+iOS) app, and I'm also using this library for android to make my tabbedPages similar to iOS.
The problem is if I set Toast position to bottom, it covers all botom bar items so that user cannot navigate to another page, and if I set it to top, user cannot select back button (in iOS) or toolbarItems (iOS/Android), is there any property to set it below toolbar with suit animation (translate from top and hide by going up) or just being on top of bottom bar? Or it needs feature?

What does it mean when you close an issue? you did it, or you'll do it?


Component: Tabs

A new component has been requested: tabs so visitors can move between multiple content sections on a single page
We built one during the recent digital.ca.gov redesign so could use it as a prototype and run it through out user research process

Review work in progress for State template beta.

https://beta.template.webstandards.ca.gov/sample/tabs.html

Recent design explorations:
https://www.figma.com/file/pGKEwXZeilHOCNI4bR5ffe/State-Template-V6-Release?node-id=511%3A4269


How to load dinamically images array

Hi!
I try to load images array via fetch url json but did not work. If i manually add same content from remote json file into static array, works fine.
So, how can i load remote images array from url?
Thanks in advance!

Im closing this thread because is not an issue. Thanks!


Set character encoding in Awestruct config

As per this thread: https://github.com/awestruct/awestruct/issues/265#issuecomment-15509028
Spurred by this: https://github.com/debezium/debezium.github.io/pull/61#issuecomment-325661825

Thanks, @aviflax!

My pleasure!


[TOPIC-BLE-LLCP]: Bluetooth: llcp: release ctx at end of procedure

When a control procedure is finished, or upon disconnection, we need
to release the context to avoid running out of memory.
I believe I found the best location for this, pls .correct me if I am wrong
Signed-off-by: Andries Kruithof<EMAIL_ADDRESS>

Would say a better approach would be to mark the for release and then in the end of run/rx check for said release and do so, this way you prevent any weird access to the ctx on the return path of the call stack.
For disconnect you need to empty the lists completely to remove all pending procedures (do we need to generate any host notification here???)

I'll look into your suggestion

We may need to keep an eye on the behaviour of the phy-update procedure when doing the integration with LL, in particular when receiving a REJECT_IND. Unit tests pass, but the act_run procedure gets called when the control procedure is finished which IMO is unexpected.


[Outlook] (manifest) update Outlook add-in command overview for JSON

Learn Build status updates of commit 5d23b67:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/outlook/add-in-commands-for-outlook.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


geos: dlopen libgeos.so before libgeos_c.so

PR: https://github.com/cockroachdb/cockroach/pull/50362
From release notes:

The docker image available with CockroachDB now includes the GEOS files required to work with Geospatial types in CockroachDB. [#50362][#50362] {% comment %}doc{% endcomment %}

This is implied by what is in the docs already


Manage crlf line endings

A way to control how are managed the line endings into a repository is to use gitattribute file. This file overwrite global options and harmonize lien endings for all OTB developers.
More details in:
1
2
3

this pr got aged and now has merge conflicts