Closing expanded panel on click of another

I'm trying to close expansion panel on click of another expansion panel. But I'm not sure how to make that work with your library. I also wanted to keep the expansion panel open on a redirect that fires on click of the leaf nodes.

I'm trying to close expansion panel on click of another expansion panel.

I'm not sure I understand what you mean. Could you elaborate, please?

So with your library it builds a sidenav using a tree that is an array of objects. Each object has a value which creates the main sidenav headings. Within those are nested nodes. On click of one of the main sidenav headings, the expansion panel you are using from material UI expands. My issue is that they all stay open even if you click on another expansion panel. I want the main headings to collapse on click of another.

I only see expansionPanelSummary and expansionPanelDetails. How can I target the expansion panel itself and override some of its behaviour?

To do what you are asking requires the consumer to handle the state of the tree. We could add another prop collapsed to each node. If you are interested in implementing it, feel free to create a pull-request. I will be happy to accept this feature.

I've forked your repo and I'm trying to point my package json to my fork and it keeps failing. I'm just trying to work on it within my project before I do a pull request. . I suspect it has something to do with the gitignore and the build. This is my first time doing something like this, any direction?

@helfi92 Hi Helfi so I'm doing this to close expansion panels when another is clicked
handlePanelChange = panel => (event, expanded,parent ) => {
```

this.setState({
expanded: expanded ? panel : false,
});
};
And in the component I have

<ExpansionPanel
expanded={expanded === node.value } onChange={this.handlePanelChange(node.value)} >
This works for when another parent expansion panel is clicked. It closes the other; however, this doesn't allow me to open the nested expansion panel. So if I open an expansion panel and then try to click on child nested expansion panel, it wont open. I guess because it's trying to close the expansion panel. Have any direction on how I can keep the expansion panel open if a child expansion panel within the parent is clicked. but close it if another parent expansion panel is clicked.


Purge Obuilder Docker store when Docker is pruned

When docker is pruned, everything is deleted from Obuilder Docker store.  However, obuilder does not know this has happened so the database is out of sync.

@mtelvers is this something you think we could move forward and land? Or is there anything blocking it?


Improve the seeking algorithm

Problem
The current implementation of the transcribe function does not add the last segment to the result when there are multiple segments but no partially included segment at the end. This leads to inefficiency (and possibly hallucinations) as the portion is decoded in the next iteration.
For example, the current implementation transcribes the audio file (pasted at the end of this PR) like this.
Note that I added print(f"line 185: tokenizer.decode_with_timestamps(tokens) = {tokenizer.decode_with_timestamps(tokens)}") in whisper/transcribe.py#L185 to inspect decoded tokens.
> whisper test_audio.mp4 --output_dir output
Detecting language using up to the first 30 seconds. Use `--language` to specify the language
Detected language: English
line 185: tokenizer.decode_with_timestamps(tokens) = <|0.00|> And do you know what the answer to this question now is?<|3.24|><|3.24|> The answer is no.<|5.30|><|5.30|> It is not possible to buy a cell phone that d
oesn't do too much.<|8.52|><|8.52|> So.<|9.02|>
[00:00.000 --> 00:03.240]  And do you know what the answer to this question now is?
[00:03.240 --> 00:05.300]  The answer is no.
[00:05.300 --> 00:08.520]  It is not possible to buy a cell phone that doesn't do too much.
line 185: tokenizer.decode_with_timestamps(tokens) = <|0.00|> So, you know what the answer to this question now is, is it possible to buy a cell phone that doesn't do too much?<|24.00|><|24.00|>
[00:08.520 --> 00:32.520]  So, you know what the answer to this question now is, is it possible to buy a cell phone that doesn't do too much?

We can see that the decoding result of the first iteration was <|0.00|> And do you ....... to buy a cell phone that doesn't do too much.<|8.52|><|8.52|> So.<|9.02|>, but it only sought to <|8.52|> and decoded audio after the timestamp again in the next iteration. It also led to a hallucination.
Solution
This PR fixes the issue by sliding the length of audio when there is no partial segment in the current window. With this fix, the output is as follows.
We can see only a single decoding iteration happened without hallucinations.
> whisper test_audio.mp4 --output_dir output
Detecting language using up to the first 30 seconds. Use `--language` to specify the language
Detected language: English
line 185: tokenizer.decode_with_timestamps(tokens) = <|0.00|> And do you know what the answer to this question now is?<|3.24|><|3.24|> The answer is no.<|5.30|><|5.30|> It is not possible to buy a cell phone that d
oesn't do too much.<|8.52|><|8.52|> So.<|9.02|>
[00:00.000 --> 00:03.240]  And do you know what the answer to this question now is?
[00:03.240 --> 00:05.300]  The answer is no.
[00:05.300 --> 00:08.520]  It is not possible to buy a cell phone that doesn't do too much.
[00:08.520 --> 00:09.020]  So.

This is the sample audio file taken from the TEDLIUM2 corpus (found at https://www.openslr.org/19/, licensed under CC BY-NC-ND 3.0).
https://user-images.githubusercontent.com/34873661/217174231-60fc5c43-6267-461e-acb4-5486cfca8767.mp4

Looking at the existing behaviour (without this proposed fix) there are different results depending on the model used. For example the large model only transcribes a portion of the test_audio, but doesn't hallucinate:
1
00:00:00,000 --> 00:00:06,500
And do you know what the answer to this question now is?

Have you tested against different size models?

I used the large-v2 model and encountered the same outcome as you did. Unfortunately, this is a performance issue with the model and my PR cannot resolve it. My PR mainly aims to fix the redundant decoding and speed up the decoding time.

Hi! I realized I fixed the same issue in #1033 without reviewing this PR. Sorry! Please feel free to reopen if I missed anything in that fix.

No need to worry! I've checked #1033, and it seems all good, doing the same thing as this PR.


How can I export multiple animations(actions)？

I have three actions. When I export model, I only have one action(currently action "Attack").
And Animtion has no name.

How can I export three animations(actions)?

https://github.com/KhronosGroup/glTF-Blender-Exporter/pull/111
@cdata Your PR can solve it?

@lishengzxc yes, it does give you a solution to access the animations in the exported file. If you are using the GLTFLoader, you should be able to access the animations with the patch in my PR.

Is there any waay to estimate when this issue going to be fixxed?
Any schedule for the corresponding milestone?

Is there any waay to estimate when this issue going to be fixxed?
Any schedule for the corresponding milestone?

There is a work-in-progress solution here: https://github.com/KhronosGroup/glTF-Blender-Exporter/pull/166 and you can download the experimental exporter from that thread. I don't have an estimate of when the PR will be merged.

Any updates when it will be implemented to the exporter ?

@ladiszlai see above; you are welcome to try the work-in-progress version. Please report issues there if it doesn't work. I don't have an estimate of when the PR will be merged, I have very limited time but others are welcome to suggest PRs as well. :)

It is not stable enough; some things would break if it were merged now.

Considering three.js just dumped its json exporter, this would be nice to have working.
My workflow is now in limbo.

@titansoftime https://github.com/KhronosGroup/glTF-Blender-Exporter/pull/166 is a reasonably functional WIP. That may work for you; if not, letting us know of any issues would help to move it along.

Right on, will check it out. Thank you.

i will try the exporter too, just bumped into same problem, im also using threejs and multiple actions


SamplerCustomAdvanced: forward_orig_ipa() takes from 7 to 9 positional arguments but 10 were given

!!! Exception during processing !!! forward_orig_ipa() takes from 7 to 9 positional arguments but 10 were given
Traceback (most recent call last):
  File "C:\ai\comfy\Comfy1\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "C:\ai\comfy\Comfy1\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "C:\ai\comfy\Comfy1\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ai\comfy\Comfy1\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "C:\ai\comfy\Comfy1\comfy_extras\nodes_custom_sampler.py", line 633, in sample
    samples = guider.sample(noise.generate_noise(latent), latent_image, sampler, sigmas, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise.seed)
  File "C:\ai\comfy\Comfy1\comfy\samplers.py", line 740, in sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ai\comfy\Comfy1\comfy\samplers.py", line 719, in inner_sample
    samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
  File "C:\ai\comfy\Comfy1\comfy\samplers.py", line 624, in sample
    samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
  File "C:\ai\comfy\Comfy1\.venv\lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
  File "C:\ai\comfy\Comfy1\comfy\k_diffusion\sampling.py", line 155, in sample_euler
    denoised = model(x, sigma_hat * s_in, **extra_args)
  File "C:\ai\comfy\Comfy1\comfy\samplers.py", line 299, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
  File "C:\ai\comfy\Comfy1\comfy\samplers.py", line 706, in __call__
    return self.predict_noise(*args, **kwargs)
  File "C:\ai\comfy\Comfy1\comfy\samplers.py", line 709, in predict_noise
    return sampling_function(self.inner_model, x, timestep, self.conds.get("negative", None), self.conds.get("positive", None), self.cfg, model_options=model_options, seed=seed)
  File "C:\ai\comfy\Comfy1\comfy\samplers.py", line 279, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)
  File "C:\ai\comfy\Comfy1\comfy\samplers.py", line 228, in calc_cond_batch
    output = model.apply_model(input_x, timestep_, **c).chunk(batch_chunks)
  File "C:\ai\comfy\Comfy1\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 69, in apply_model_uncond_cleanup_wrapper
    return orig_apply_model(self, *args, **kwargs)
  File "C:\ai\comfy\Comfy1\comfy\model_base.py", line 144, in apply_model
    model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds).float()
  File "C:\ai\comfy\Comfy1\.venv\lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "C:\ai\comfy\Comfy1\.venv\lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\ai\comfy\Comfy1\comfy\ldm\flux\model.py", line 184, in forward
    out = self.forward_orig(img, img_ids, context, txt_ids, timestep, y, guidance, control, transformer_options)
TypeError: forward_orig_ipa() takes from 7 to 9 positional arguments but 10 were given

same here, i think we both are the best for feedback atm haha

same!Wat r u doing shakker?

They're squashing these bugs fast as hell, let them cook! 👩🍳

Works now!

Thanks god!

The issue will occur in ComfyUI versions after commit 8ebf2d8 (Nov 12, 2024). The problem has been fixed in this commit: 4f1dcbbd312e1fc4ce6b3d2a4f1cf6e5fdaf27b1.


Standalone editor and CSP

Hi everyone,
I tried to integrate the standalone DME editor into a site with a strict CSP and as you may expect it only thrown a bunch of errors in the js console. After looking at the code I saw that there is an iframe loaded with a few inline scripts and a ton of other scripts.
Content-Security-Policy: default-src 'none';base-uri 'none';manifest-src 'self';script-src 'nonce-foobar=' blob:;style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self' data:;connect-src 'self';media-src 'self';frame-src 'self';frame-ancestors 'self';worker-src 'self';form-action 'self'

Is there any way to get this working without creating my own bundled standalone editor? Why is the iframe needed at all?
Sorry, I never used kogito tooling before, so my questions quite be a bit clumsy.
Best regards,
Klaus

Hi @sualko,
Those console errors are not related to CSP errors, but a known issue on this distribution. They can be safely ignored (soon we will fix those false alarms).
Regarding iframe usage, we mostly use them to isolate context from the outer application (micro front-end friendly). We don't use the iframe "src" attribute, but instead we use “srcdoc” to include all the necessary resources for the editor loading inline, so the editor's bundle works without any external resources.
Kind Regards,
Paulo.

Those console errors are not related to CSP errors

I think they are related, because they need inline scripts and eval.

They can be safely ignored

That's wrong, since the execution is stopped.

@sualko If the errors you're having are different than the ones I mentioned (tracked here), then I'll need a reproducer (or at least the log with the errors) to see them to be able to provide more information.

Just create a site with script-src 'nonce-foobar=' blob:; as part of the csp and you will see errors that the scripts can't be executed due to missing nonce. You could also create a csp with script-src 'self'; with the same error, because this application is generating inline script blogs. To overcome this issue you need something similar to webpacks webpack_nonce.

I've created a JIRA to track this. We will analyze the issue and get back to you here.

Due to inactivity, we are closing this issue, but it is still tracked on https://issues.redhat.com/browse/KOGITO-4590


Added functionaly: reload data in the same instance

Fixed so now jshint won't fail.
A new public method added: "reload".
It will replace the currently loaded content but does not open the
slider. It makes easier to handle dynamic data, eliminating the need of
destroying it and reinstantiate the slider.
EXAMPLE:
$.sidr('reload', 'name', 'url / function / selector' );

This functionality has been added to the master branch. It will be released with the new version. Thank you @liladani


Missing icons

Hi!
How can I fix the problem with icon fonts?
My version tt-rss - v21.04-0f61675 (https://git.tt-rss.org/fox/ttrss-docker-compose/src/branch/static-dockerhub/docker-compose.yml)
Errors:
downloadable font: download failed (font-family: "Material Icons" style:normal weight:400 stretch:100 src index:3): status=2147746065 source: https://site.me/tt-rss/lib/iconfont/MaterialIcons-Regular.woff
downloadable font: download failed (font-family: "Material Icons" style:normal weight:400 stretch:100 src index:3): status=2147746065 source: https://site.me/tt-rss/lib/iconfont/MaterialIcons-Regular.woff2
downloadable font: download failed (font-family: "Material Icons" style:normal weight:400 stretch:100 src index:3): status=2147746065 source: https://site.me/tt-rss/lib/iconfont/MaterialIcons-Regular.ttf

Hi @evgen-20, this issue was already fixed (#90). Do you use the most recent release of this theme? If so, please try clearing your browser cache.
Cheers!

Now I restarted the docker-compose with a tt-rss. Opened the container app.
docker exec -it  docker_app_1 sh
And deleted everything in the directory /var/www/html/tt-rss/themes.local.
/var/www/html/tt-rss/themes.local # rm -rf *
/var/www/html/tt-rss/themes.local # wget https://github.com/levito/tt-rss-feedly-theme/blob/master/feedly.css

Then I downloaded only one style - feedly.css. And opened tt-rss into chrome in incognito.

But all these actions did not help me = (

Do you see the icons when using the default theme?

Yes

Very strange, you're getting the old path from before the fix for #90. Like you're still using an old version of this theme. Maybe there is an old version in /var/www/html/tt-rss/themes?

Hey @evgen-20, could you already solve your issue?

Indeed, somewhere there was an old css. I installed clean tt-rss and it worked.

Cool, I'm glad we could solve this!


Use shared Jenkins build feature

This uses https://github.com/alphagov/govuk-puppet/pull/5611 to build this project.
https://trello.com/c/iDWjE1Vz

🚀 🎆 🎉


update the image tag to v0.1.1

What type of PR is this?
/area simulator
/kind feature

What this PR does / why we need it:
update the image tag to v0.1.1. After this PR, I'll soon release simulator/v0.1.1
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
/label tide/merge-method-squash

/hold
To release v0.1.1 as soon as possible after it's merged.
I'll /unhold this when it's approved.

Thank you 🚀
/lgtm

/unhold


[FEATURE] Symbol analysis

Read the code and extract symbol information from it.
It is essential to all features that rely on static analysis.

This has been to some degree in the analysis crate, but hasn't been used in the LSP.

Script symbol analysis has been first rolled into the Language Server in dd80446f

Released with v0.3.0


How do I add a nonce to my <style> tags?

I'm dealing with a CSP problem. I want to pass a nonce to the <link> and <style> tags. How do I do this? I'm able to use the sister lib ScriptExtHtmlWebpackPlugin to achieve this for my <script> files.
new ScriptExtHtmlWebpackPlugin({
      custom: {
        test: /\.(js|css)$/,
        attribute: "nonce",
        value: "127237127"
      }
    }),

Hello - I'm sorry to say that this plugin is no longer being maintained. I have tried to close all issues ahead of doing this but instead have found that the issue list just keeps growing. I simply do not have the time to keep up. Sorry.
Please keep an eye on the README where I will record anyone who forks this repo with the intention to supporting it in the future.


Encountering an infinite loop despite compiling with '--bounds-checks=1'

Despite compiling with '--bounds-checks=1' as mentioned in https://github.com/bytecodealliance/wasm-micro-runtime/issues/2555#issuecomment-1738527008, I still encountered an infinite loop, whereas with wasmtime, no such loop occurred.
filea228152.zip

Would you mind reproducing the issue on a X86/X86-64 platforms. Both @wenyongh and I can't reproduce it.

I tested it again and I successfully reproduced it

Guess we've already fixed the issue after release 1.2.3. Please try it with the latest commit,

iwasm (release 1.2.3)
iwasm (commit cc23)

wamrc(release 1.2.3)
TIMEOUT
TIMEOUT

wamrc(commit cc23)
EXCEPTION
EXCEPTION

@wenyongh any clue which PR fixed it?


Español

Detect preferred language using navigator.language and showing strings in that language if available

@FlipperPA if you're looking for a project perhaps this might be a good one


How to run inference

Not sure if this is the right place, but if someone can point me on how to do live microphone inference on the FRDM-K64F, I built the .bin file and loaded it, but not sure what to do next

You want to real-time test in FRDM-K64F?
i successfully operation my FRDM-K64F. it maybe helpful to you.
`#include "kws_ds_cnn.h"
#include "mbed.h"
//#include <intrin.h>
//#include "wav_data.h"
AnalogIn soundin(A0);
Serial pc(USBTX, USBRX); // tx, rx
Ticker sample;
void sample_sound(void);
volatile short int sound;
int i=0;
int j=0;
int count =0;
int z=0;
float s;
uint16_t u16_sound;
uint8_t sendl,sendu;
int8_t buffer_l[5000];
int8_t buffer_u[5000];
int16_t audio_input_buffer[16000];
void sample_sound(void)
{
while(i <16000){
    u16_sound =((soundin.read_u16()));
    unsigned short _byteswap_ushort(u16_sound);
    audio_input_buffer[i] = ((int16_t)(_byteswap_ushort));
    //pc.printf("%d  ", audio_input_buffer[i]);
    wait(0.0000625f);
    i++;
}

if(i > 15999) {
    sample.detach();
    DigitalOut led(LED1);
    //ready=true;
    sample.detach();
}

}
Timer T;
int main()
{
pc.baud(9600);
sample.attach_us(sample_sound, 125);
int j=0;
char output_class[12][8] = {"Silence", "Unknown","yes","no","up","down","left","right","on","off","stop","go"};
KWS_DS_CNN kws(audio_input_buffer);
T.start();
int start=T.read_us();
kws.extract_features(); //extract mfcc features
kws.classify();	  //classify using dnn
int end=T.read_us();
T.stop();
int max_ind = kws.get_top_class(kws.output);
pc.printf("Total time : %d us\r\n",end-start);
printf("Detected %s (%d%%)\r\n",output_class[max_ind],((int)kws.output[max_ind]*100/128));
return 0;
}`


AWS SDK Outdated - AWS4Signer deprecated

Hi,
with last AWS SDK, the Aws4Signer is deprecated
Is it possible to refresh the source code with last version ?
It seems hard to found reliable source code for elasticache redis iam authentication

https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/auth/signer/Aws4Signer.html
Aws4Signer was replaced by AwsV4HttpSigner.


Container missing from ListContainers call

I have noticed a few times when I start up a new stack with a lot of services I will be missing a container when I call ListContainers.
I tried the tutum CLI command tutum container ps and it successfully listed the missing containers. I also noticed that the linked from containers have the appropriate environment variables.

I found out that if I stop the container that is missing, destroy its node cluster, then create a new cluster and restart the container it will work properly.
After I did this though I had to do a redeploy of the container and it disappeared again.

Hi @zanemcca I will take a look at this and try to reproduce.

I will soon push the fix

Hi @MaximeHeckel thanks a lot.
I had between 16 and 25 containers running when I ran into the issue.

It has been solved in the latest merge, you can give it a try. I'm closing the issue, reopen it if needed.


[#2638] Edit to text on My Resources

Before:

After:

Pull Request Checklist:

[ ] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here]

retest this, please

@Maurier I have a favor to ask can you merge develop into this and let me know if you get any conflicts? I'm suspicious that there are no conflicts.


Make identifiers in Prometheus endpoint data configurable [🚀]

:rocket: Feature request
Description
Currently the /metrics endpoint contains hard-coded "Juice Shop" mentions in form of {app="juice-shop"}  tags and custom prefixes juice_shop which is undesirable for custom themed configurations:
# HELP process_cpu_user_seconds_total Total user CPU time spent in seconds.
# TYPE process_cpu_user_seconds_total counter
process_cpu_user_seconds_total{app="juice-shop"} 1.6560000000000001<PHONE_NUMBER>897

# HELP process_cpu_system_seconds_total Total system CPU time spent in seconds.
# TYPE process_cpu_system_seconds_total counter
process_cpu_system_seconds_total{app="juice-shop"} 1.719<PHONE_NUMBER>897

# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total{app="juice-shop"} 3.375<PHONE_NUMBER>897

# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds{app="juice-shop"}<PHONE_NUMBER>

# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes{app="juice-shop"} 88961024<PHONE_NUMBER>897

# HELP nodejs_eventloop_lag_seconds Lag of event loop in seconds.
# TYPE nodejs_eventloop_lag_seconds gauge
nodejs_eventloop_lag_seconds{app="juice-shop"} 0.000579901<PHONE_NUMBER>897

# HELP nodejs_active_handles Number of active libuv handles grouped by handle type. Every handle type is C++ class name.
# TYPE nodejs_active_handles gauge
nodejs_active_handles{type="WriteStream",app="juice-shop"} 2<PHONE_NUMBER>897
nodejs_active_handles{type="FSWatcher",app="juice-shop"} 1<PHONE_NUMBER>897
nodejs_active_handles{type="Timer",app="juice-shop"} 1<PHONE_NUMBER>897
nodejs_active_handles{type="Server",app="juice-shop"} 1<PHONE_NUMBER>897

# HELP nodejs_active_handles_total Total number of active handles.
# TYPE nodejs_active_handles_total gauge
nodejs_active_handles_total{app="juice-shop"} 5<PHONE_NUMBER>897

# HELP nodejs_active_requests Number of active libuv requests grouped by request type. Every request type is C++ class name.
# TYPE nodejs_active_requests gauge

# HELP nodejs_active_requests_total Total number of active requests.
# TYPE nodejs_active_requests_total gauge
nodejs_active_requests_total{app="juice-shop"} 0<PHONE_NUMBER>897

# HELP nodejs_heap_size_total_bytes Process heap size from node.js in bytes.
# TYPE nodejs_heap_size_total_bytes gauge
nodejs_heap_size_total_bytes{app="juice-shop"} 66510848<PHONE_NUMBER>897

# HELP nodejs_heap_size_used_bytes Process heap size used from node.js in bytes.
# TYPE nodejs_heap_size_used_bytes gauge
nodejs_heap_size_used_bytes{app="juice-shop"} 55619704<PHONE_NUMBER>897

# HELP nodejs_external_memory_bytes Nodejs external memory size in bytes.
# TYPE nodejs_external_memory_bytes gauge
nodejs_external_memory_bytes{app="juice-shop"}<PHONE_NUMBER>530086897

# HELP nodejs_heap_space_size_total_bytes Process heap space size total from node.js in bytes.
# TYPE nodejs_heap_space_size_total_bytes gauge
nodejs_heap_space_size_total_bytes{space="read_only",app="juice-shop"}<PHONE_NUMBER>530086897
nodejs_heap_space_size_total_bytes{space="new",app="juice-shop"} 1048576<PHONE_NUMBER>897
nodejs_heap_space_size_total_bytes{space="old",app="juice-shop"} 49516544<PHONE_NUMBER>897
nodejs_heap_space_size_total_bytes{space="code",app="juice-shop"} 2097152<PHONE_NUMBER>897
nodejs_heap_space_size_total_bytes{space="map",app="juice-shop"} 3158016<PHONE_NUMBER>897
nodejs_heap_space_size_total_bytes{space="large_object",app="juice-shop"} 10166272<PHONE_NUMBER>897

# HELP nodejs_heap_space_size_used_bytes Process heap space size used from node.js in bytes.
# TYPE nodejs_heap_space_size_used_bytes gauge
nodejs_heap_space_size_used_bytes{space="read_only",app="juice-shop"} 35208<PHONE_NUMBER>897
nodejs_heap_space_size_used_bytes{space="new",app="juice-shop"}<PHONE_NUMBER>530086897
nodejs_heap_space_size_used_bytes{space="old",app="juice-shop"} 43012648<PHONE_NUMBER>897
nodejs_heap_space_size_used_bytes{space="code",app="juice-shop"} 1470048<PHONE_NUMBER>897
nodejs_heap_space_size_used_bytes{space="map",app="juice-shop"} 2234848<PHONE_NUMBER>897
nodejs_heap_space_size_used_bytes{space="large_object",app="juice-shop"} 8731936<PHONE_NUMBER>897

# HELP nodejs_heap_space_size_available_bytes Process heap space size available from node.js in bytes.
# TYPE nodejs_heap_space_size_available_bytes gauge
nodejs_heap_space_size_available_bytes{space="read_only",app="juice-shop"}<PHONE_NUMBER>530086897
nodejs_heap_space_size_available_bytes{space="new",app="juice-shop"}<PHONE_NUMBER>530086897
nodejs_heap_space_size_available_bytes{space="old",app="juice-shop"} 5407320<PHONE_NUMBER>897
nodejs_heap_space_size_available_bytes{space="code",app="juice-shop"}<PHONE_NUMBER>530086897
nodejs_heap_space_size_available_bytes{space="map",app="juice-shop"}<PHONE_NUMBER>530086897
nodejs_heap_space_size_available_bytes{space="large_object",app="juice-shop"}<PHONE_NUMBER><PHONE_NUMBER>897

# HELP nodejs_version_info Node.js version info.
# TYPE nodejs_version_info gauge
nodejs_version_info{version="v10.15.3",major="10",minor="15",patch="3",app="juice-shop"} 1

# HELP juice_shop_orders_placed_total Number of orders placed in juice-shop so far
# TYPE juice_shop_orders_placed_total gauge
juice_shop_orders_placed_total{app="juice-shop"} 2

# HELP juice_shop_challenges_solved_total Number of challenges that have been solved so far
# TYPE juice_shop_challenges_solved_total gauge
juice_shop_challenges_solved_total{app="juice-shop"} 0

# HELP juice_shop_users_registered_total Number of users registered
# TYPE juice_shop_users_registered_total gauge
juice_shop_users_registered_total{app="juice-shop"} 16

Solution ideas
Add a new configuration property application.metricsLabel: juice_shop and use that as prefix and for the app=... labels.
If there is some convention on app=... that favors - over _ then we could add a section application.metrics with two properties instead. (There isn't!)

BTW the juice_shop in the custom metrics should actually be a juiceshop according to Prometheus naming guidelines. (Should be a single word)

Ah, I only checked for the label not the prefix... 🤦♂

Ah, I only checked for the label not the prefix... 🤦♂


STATICCALL

Provides EVM functionality for the 0xfa opcode (#594) by way of a new vm flag inStaticCall to enforce read-only calls at runtime. This also contains unit tests for all state changing operations as defined in the proposal.

Hello @gregdhill , kindly review #926 in order to avoid conflicts in vm.go and vm_test.go

Thanks @phymbert, looks good to me! I don't think it will conflict, but will await review by @seanyoung or @silasdavis.

@gregdhill just talking to @silasdavis and it would nice to include a solidity test case as well. I sent you an example which could be integrated.
Also maybe "ErrorCodeInvalidStateChange" should be called something like "ErrorIllegalStorageWrite".
The solidity compiler will output a staticcall for any pure/view function so the person writing the contract a might not be aware of the staticcall opcode.


Support UNKNOWN type in Unsaferow serde

Summary: We have several presto-on-spark native end-2-end unit tests failures due to Unsaferow serde doesn't support UNKNOWN (null) type. This commit add the support.
Differential Revision: D45949003

@miaoever I'm wondering if it makes sense to handle UNKNOWN type explicitly and add tests specifically for this type without using the Fuzzer.
Do we consider UNKNOWN type as fixed-width type? Should we update documentation?

I think UNKNOW type is defined as fixed-width in velox[1]?
Sure, let me add a specific test addition to fuzzer tests and also update the documentation.
[1]https://github.com/facebookincubator/velox/blob/7e74c9bea6bf6274176c5dd54fdaf595a6c05abd/velox/type/Type.h#L354

@miaoever UNKNOWN type is special. See https://facebookincubator.github.io/velox/develop/types.html

UNKNOWN type is used to represent an empty or all nulls vector of unknown type. For example, SELECT array() returns an ARRAY(UNKNOWN()) because it is not possible to determine the type of the elements. This works because there are no elements.

Also, it would be nice to also add support for UNKNOWN type nested inside ARRAY, MAP or ROW. Any reason not to do that here?

@mbasmanova  just update the PR to:

supports for all cases of UNKNOWN (in array, map, row and nested)
add a small test along with the fuzzer tests for UNKNOWN serde.
update the unsaferow documentation.


WIP Test updated publish script

Testing deployment of PRs under their own respective paths on gh-pages

Yup, that did the trick: https://suborbital.github.io/docs/36-separate-pr-deploys/

Never YOLO on Fridays!


Windows compat

Unfortunately, I can't test this atm as master seems to be a WIP so merging this is probably not a good idea right now.
Can you tag me once you're done refactoring and are prepping a release so I can update and test my code?

Tests pass now. My original assumption (master is not production-ready) was caused by:
https://github.com/tk0miya/testing.postgresql/blob/master/src/testing/common/database.py#L132
Which I assumed was a WIP as there is no such method in the entire codebase and an attempt is made to run code after exec* returns, which in C would only happen on error, but python will convert said errors into exceptions so that's basically unreachable code.
Additionally, I couldn't figure out how is this not a deadlock and assumed the code is not yet ready. Only later did I find the actual implementation in the testing.postgresql module.

@za-creature LGTM!
Now, I splitted the package to testing.postgresql and testing.common.database.
And I merge your code into these packages.
In Linux and MacOS, it works fine.
But I don't have any windows environment.
Could you try it in your environement? I'd commit them at windows_support branch in both repositories.

Now I merged windows_support branch. Please try it.
Thanks,


Test Job (with Python) for Windows in the CI Workflow

Description
This PR adds scripts and a job to implement what's done for Linux (the scripts and the CI).

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Documentation update

Checklist:

[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.
[ ] I have added tests/screenshots (if any) that prove my fix is effective or that my feature works.
[ ] I have tested the tests implicated (if any) by my own code and they pass (make test or ctest -VV -R <test-name>).
[ ] If my change is significant or breaking, I have passed all tests with ./docker-compose.sh build &> output and attached the output.
[ ] I have tested my code with OPTION_BUILD_SANITIZER or ./docker-compose.sh test &> output and OPTION_TEST_MEMORYCHECK.
[ ] I have tested with Helgrind in case my code works with threading.
[ ] I have run make clang-format in order to format my code and my code follows the style guidelines.

If you are unclear about any of the above checks, have a look at our documentation here.

Please squash the commits.

Please squash the commits.

@viferga I can't squash now because I have merged develop to resolve conflicts and squashing now will consume your commits which I don't want.
I don't know if you have used this before but in GitHub you can squash before merging. Look for this option in the drop-down for the merge button.

Thanks mate I did not know about that option!


feat(IConnectionService): Add method to retrieve current client info

Is there an existing issue for this?

[X] I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.
No response
Describe the solution you'd like
I propose adding a new method to the IConnectionService interface that allows users to retrieve information about the current client. This method could be named GetCurrentClientInfo and would return an object containing relevant details such as the client's ID, name, connection status, and any other pertinent information.
Additional context
No response

I hope the ClientInfo instance obtained from WebClientService has an Id that is consistent with the Id of the ClientInfo instance in IConnectionService.


Fix rebuild_sub_package_then_while_package on HFS.

This test was flaky on HFS (azure failure), resulting in this error:
   Compiling foo v0.0.1 (/Users/runner/runners/2.164.7/work/1/s/target/cit/t750/foo)
error[E0460]: found possibly newer version of crate `b` which `a` depends on
 --> src/lib.rs:1:1
  |
1 | extern crate a; extern crate b; pub fn toplevel() {}
  | ^^^^^^^^^^^^^^^
  |
  = note: perhaps that crate needs to be recompiled?
  = note: the following crate versions were found:
          crate `b`: /Users/runner/runners/2.164.7/work/1/s/target/cit/t750/foo/target/debug/deps/libb-98160c67a5811c37.rlib
          crate `b`: /Users/runner/runners/2.164.7/work/1/s/target/cit/t750/foo/target/debug/deps/libb-98160c67a5811c37.rmeta
          crate `a`: /Users/runner/runners/2.164.7/work/1/s/target/cit/t750/foo/target/debug/deps/liba-7d2b9ccd932a36e9.rmeta

There are two race-condition bugs here.
Race 1: The second cargo build command (cargo build -pb) would sometimes not build, because it thought b is fresh.  This can happen when the first build finishes and changing b/src/lib.rs happen within the same second. (#5918)  The test silently ignored this failure, this is not the cause of the CI failure, though.
Race 2: The first and second build commands work as expected.  The third build command fails because it thinks both a and b are "fresh".  However, b was just rebuilt, and a depends on it, so a should have been rebuilt.  It thinks a is fresh because a's mtime is equal to b when b finishes compiling within the same second that the first build finished.
The solution here is to make sure the second step happens well after the first.  The underlying problem is #5918.

r? @Eh2406
(rust_highfive has picked a reviewer for you, use r? to override)

@bors: r+

:pushpin: Commit da8d17429f21b524411c1e57ddac08826c8d6809 has been approved by alexcrichton

:hourglass: Testing commit da8d17429f21b524411c1e57ddac08826c8d6809 with merge 19d38e557536eba1b977ba07a490a22fb78da8cb...

:sunny: Test successful - checks-azure
Approved by: alexcrichton
Pushing 19d38e557536eba1b977ba07a490a22fb78da8cb to master...


added dev certs rotation doc

Which issue this PR addresses:

Add document detailing the steps taken to rotate certificates in our dev environment.
What this PR does / why we need it:

Will remove the guess work of having to rotate certs every year.
Test plan for issue:

No
Is there any documentation that needs to be updated for this PR?

/azp run e2e

Additionally, I believe @bryanro92 had a good comment.  A lot of this information is duplicated already in prepare-a-shared-development-environment.  Is there any way we could update that specific file and reference parts to redo when we need to rotate?  Follows more of a DRY principle as well as ensures we don't have two places to update our documentation when it changes.

@bryanro92 @bennerv thank you for the feedback, i will update the already existing prepare-a-shared-rp file and also add some indicators for INT rotation


autosuggest-accept-suggestion:1: job table full or recursion limit exceeded

When I use the Ctrl + E or use the direction keys will appear this kind of situation, and can't copy and paste

There's a rewrite underway in PR #91. It's available on branch v0.1.x. Please try using that branch, and let me know if it solves your problem.


HTTP Content-Type

HTTP Content-Type corrected to "application/json" for JSON-Data and Errors
added token to send to everybody

These seem pretty stale. I'm going to close them.


How to change port 8082 in 'http://localhost:8082' to others?

When opening a browser to http://localhost:8082 to access the analyzer Web UI,  I find that port 8081 and 8082 are occupied using the command 'netstat -tulpn' in the terminal.
I want to know how to change the port 8081 and 8081 to other ports like 6xxx or 7xxx?

I think you can change your port through change your skydive.yml.
Please see below links:
https://github.com/skydive-project/skydive/blob/master/etc/skydive.yml.default#L179
https://github.com/skydive-project/skydive/blob/master/etc/skydive.yml.default#L182

When opening a browser to http://localhost:8082 to access the analyzer Web UI, I find that port 8081 and 8082 are occupied using the command 'netstat -tulpn' in the terminal.
I want to know how to change the port 8081 and 8081 to other ports like 6xxx or 7xxx?

I think you can change your port through change your skydive.yml.
Please see below links:
https://github.com/skydive-project/skydive/blob/master/etc/skydive.yml.default#L179
https://github.com/skydive-project/skydive/blob/master/etc/skydive.yml.default#L182

Closing this one as @TommyHwang  gave the right answer, thanks


can not use foldseek

hi,
I want to use foldseek, but I have put the binary file of foldseek into the bin file, I still can not to use it.
But when I directly download it  from the foldseek official website, it works.
I do not know why, may be you need to update the file of foldseek or I forgot add foldseek path to system value?

Hello, can you check whether you have the executable permission for the binary file? If not, you can add the executable permission
by:
chmod +x foldseek


[FEATURE] Swtich to project when route has ?projectid= passed

If a listview/detailview (in autogenview or dashboard.vue...) if ?projectid=065cbd5b-3787-4f66-9be1-1844a2e98c28 is passed (notice ID is a valid UUID of 36chars len) swtich to the project using listProject to get the project obj/json; call a dispatch

With @shwstppr


Authentication Optimisation

Authentication working in localhost but when it is deployed, it does not work

May I take a closer look at the issue? Could you please provide more specific details? Is the problem related to logging, redirection, or something else within the authentication process?

What service for the backend you using.Where did you deployed, I'm gonna try deploy it myself and see what the problem is.

What service for the backend you using.Where did you deployed, I'm gonna try deploy it myself and see what the problem is.

For backend I am using Render and for Frontend I am using Vercel

@ojasaklechayt apperantly the cookies are not being saved on the frontend that's why it's not working. It seems to be a problem with the onrender.com  public suffix domain, you need to have a custom domain to be able to save the cookies on Render services.

@ojasaklechayt apperantly the cookies are not being saved on the frontend that's why it's not working. It seems to be a problem with the onrender.com  public suffix domain, you need to have a custom domain to be able to save the cookies on Render services.

I see should I try deploying my backend on some other service ?

@ojasaklechayt apperantly the cookies are not being saved on the frontend that's why it's not working. It seems to be a problem with the onrender.com  public suffix domain, you need to have a custom domain to be able to save the cookies on Render services.

I see should I try deploying my backend on some other service ?

Well yes, I'll test it with railway.app .

Well yes, I'll test it with railway.app .

Please do have a look

@ojasaklechayt I found a workaround since using res.cookie() in deployment, the cookie wasn't getting saved or remove on reload, what I found to make it work it's when we make the request to login, in the backend on userController we respond with
   const token = await generatejwt(user._id);
   res.status(200).json({ status: 'success', token });

and in frontend we get the response and in handle login we destructure and save the token with Cookie.set (js-cookie library)
           const response = await axios.post('backend-url', formData, {
                // added axios options enable sending cookies with the request
                withCredentials: true,
                headers: { 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json' },
                credentials: 'include',
            });
            console.log('Login successful:', response);

            const { token } = response.data
            if (token) {
                Cookies.set('token', token, { expires: 2 / 24 })
            }

and also in middleware.js in NextJs root we make the middleware more secure ,we''ll get the jwt from the cookie and verify with jwt.verify() with token_key='secret123', because anyone can go to chrome> application> setCookie manually with name token and get access. Let me know if you wanna proceed.

So, basically instead of setting the cookie in backend, we are sending that token response to the frontend and their in the frontend we are setting the cookie ?

Yes that's how it works

Yes that's how it works

If are sending the token to the frontend then will it be secure enough ?

We either way were sending the token, just directly in cookie from server. we're not sending sensitive information only the token and user._id

We either way were sending the token, just directly in cookie from server. we're not sending sensitive information only the token and user._id

Hmm yeah makes sense, then We can proceed with the Cookies.set method of authentication. 👍


Come up with a recommended way to render/store tutorials

I think that wherever it is computationally feasible, tutorials should be run as a CI check and the tutorial use the version rendered by the CI to avoid failing or outdated tutorials.
With the current template it is already possible to have tutorials built by nbshpinx on readthedocs.org, but it would be nice to have something that scales better. Also it needs to be documented somewhere how to enable this behavior.

[ ] Recommendations where to store tutorials (submodule for executed ipynb files when not using CI builds?)
[ ] Documentation how to enable CI builds
[ ] Ideally, each notebook is built in a separate worker (-> parallelization) (-> individual checkmark for each notebook instead of digging into sphinx logs)
[ ] GPU support

See also #19.

I'd want something like
flowchart TD
   A[push to PR] --> B[run tests]
   A --> C[build tutorials on GH actions]
   C --> D[trigger RTD build]

@michalk8, can you elaborate how the squidpy setup works? And maybe point me to a PR where the tutorials were actually built, I only find PRs where that particular action was skipped.

Inspired by the pre-commit CI, the following approach could work:

trigger CI in PR by push
rerun notebooks. If the output changes compared to the previous version, add a commit with the rendered ipynb files (either in main repo or submodule)
the automatic commit triggers RTD again. Other CI checks can be skipped.

Inspired by the pre-commit CI, the following approach could work:

trigger CI in PR by push
rerun notebooks. If the output changes compared to the previous version, add a commit with the rendered ipynb files (either in main repo or submodule)
the automatic commit triggers RTD again. Other CI checks can be skipped.

I think I'll give this approach a try in one of my repos.

MyST-nb might be a good alternative to nbsphinx.
Once benefit is that it supports caching through jupyter-cache. It could be nice to restore that cache when running notebooks through github actions.

Isaac wants submodules back in scanpy, see https://github.com/scverse/scanpy/issues/2636
I think we should plan the best approach here first (or approaches: Might be that different projects have different needs).

store the notebooks in the main repo in text format

Probably not. Bespoke markdown dialects are a bad bad thing.  But I’ll need some excellent arguments to be convinced that storing notebooks in any other format than .ipynb might be a good idea. I’m very happy that I don’t do R anymore, since Rmd instead of .ipynb cost the whole ecosystem so much potential synergy.

I think we should plan the best approach here first (or approaches: Might be that different projects have different needs).

agreed. Might need a temporary solution in scanpy that could be reverting to the submodule until we have something everyone is happy with.

No, unless you have some excellent arguments for it that you haven’t shared yet

The main argument for me is that

text format are easy to review on github
it is easy to fix merge conflict if there are any.

I think there are two formats that are particularly interesting and have excellent editor support. I also don't think jupytext with >6k stars is a niche tool.

plain python script ([python percent format])(https://jupytext.readthedocs.io/en/latest/formats-scripts.html#the-percent-format))

Out-of-the-box support in Spyder, vscode, pycharm, vim+slime. It's just a python script, i.e. all python tooling works on it (no additional tooling required to apply ruff, black etc)

Quarto markdown

The evolution of Rmd, but language agnostic. Rstudio/posit fully supports python with it. Native support in rstudio and vscode (via official extension).
 The main selling point is that tutorials without output (in whatever format) can be kept in the same repo as the main documentation.

Might need a temporary solution in scanpy that could be reverting to the submodule until we have something everyone is happy with.

As said there, if someone wants that, they can do it, I don’t think it has a significant enough advantage to spend effort on it personally 😄

text format are easy to review on github

Good argument. There’s multiple extensions to do it (e.g.), but of course they aren’t seamlessly integrated in GitHub. The question is how much that matters.

it is easy to fix merge conflict if there are any.

I never had problems with this, nbdime is great at this. Granted, you need to always do it locally instead of being able to click the GitHub UI button most of the time.

python percent format

No markdown preview while authoring, confusing layout while authoring. That’s not great, since you can accidentally break the magic comment syntax and the corruption can be overlooked while reviewing the notebook. Standard problems when you pretend that text is a data structure. (That’s why I don’t use bash/zsh anymore)

No standalone 3rd party tooling without converting them to .ipynb first. I assume that’s not great if you want to use some standard tooling to modify/lint/whatever the file. Maybe I’m wrong and things can be seamlessly converted back and forth without loss of information.
The jupterlab plugin makes this a bit less painful, but it’s kinda dumb that .py files get the Jupyter icon and get opened as notebooks.

Quarto markdown

Still one language-specific editor’s proprietary format that hasn’t garnered tool support outside of the R world. Nope.
I predicted then that Rmd would become big enough in the R world that it would prevent the scientific landscape to grow together and create interoperability with tools that work on the same format. It made me sad. I was right.

Happy to go with stripped ipynb if you prefer. Technically it would be easy to support both at some point, as it's probably just a jupytext call in step 1.

@flying-sheep, maybe an even easier solution than writing a sphinx plugin is to use DVC.  I tried it at work for some data analysis projects and it's pretty neat.
Basically

you can dvc add any file in the repository. It will then be gitignored and insteada *.dvc file is checked into git that contains the file hash with which it can be retreived from the storage backend
there's a dvc repro command that executes commands to "reproduce the analysis" that are stored in a yaml file. This could be used to render notebooks on the CI.

And on readthedocs, one would just add dvc pull as a pre-build command, and it would retreive the rendered .ipynb files from wherever they are stored.

I’m not a fan of that approach either.
I think they should just be moved back into the scanpy repo. With git clone --filter=blob:none ..., nobody needs to download big amounts of data, and it’s less work to do that once than wrangle the submodule.
@ivirshup you said it was decided to go that route and seemed unwilling to go back on that decision. Can you link to where that’s discussed? I’d like to see what submodules bring to the table.


Support of github.com/shopspring/decimal?

Trying to save a model with decimal.Decimal field gives an error:
sql: converting Exec argument #5's type: unsupported type decimal.Decimal, a struct

even though decimal.Decimal defines:
// Value implements the driver.Valuer interface for database serialization.
func (d *Decimal) Value() (driver.Value, error) {
	if d == nil {
		return nil, nil
	}
	return d.String(), nil
}

The only issue i can imagine is that Value function is declared on *Decimal and not on Decimail

Which should be fixed in their side, Value is not necessary to be a function of *Decimal as it is readonly.

@jinzhu it's not clear to me still, and i think there's an issue anyway:
if i make Decimal field nullable (so make *Decimal), then records can be inserted
but it's non-nullable, described error occurs
and we can't just blame Decimal package, as there's no way in golang to support both
func (d *Decimal) Value() and func (d Decimal) Value()

Value is a readonly method, so don't need the pointer.

in my struct, if i set a field to optional:
type Model struct {
    price *decimal.Decimal

why don't i need the pointer?
On 15 November 2016 at 03:11, Jinzhu<EMAIL_ADDRESS>wrote:

Value is a readonly method, so don't need the pointer.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jinzhu/gorm/issues/1250#issuecomment-260526371, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAaEgBZTpkpj8nj6Zzo2_Z-mAoz27gXEks5q-RS0gaJpZM4KpcPI
.

--
Anatoly Bubenkov

in my struct, if i set a field to optional:

type Model struct {
    price *decimal.Decimal
    ...
}

why don't i need the pointer?

Sorry but I still don't get how to use decimal with gorm.
I posted a patch with the test on gorm here:  603e81646294c3d8a647cd973b21749b9ee0f623
--- FAIL: TestDecimalPtrDataType (0.00s)
panic: invalid sql type  (ptr) for sqlite3 [recovered]
	panic: invalid sql type  (ptr) for sqlite3

goroutine 1041 [running]:
testing.tRunner.func1(0xc42079a3c0)
	/usr/lib/go/src/testing/testing.go:711 +0x2d2
panic(0x848420, 0xc4205a9100)
	/usr/lib/go/src/runtime/panic.go:491 +0x283
github.com/jinzhu/gorm.(*sqlite3).DataTypeOf(0xc420148440, 0xc42079e820, 0x6, 0xc420175b60)
	/home/user/go/src/github.com/jinzhu/gorm/dialect_sqlite3.go:64 +0x7bd
github.com/jinzhu/gorm_test.TestDecimalPtrDataType(0xc42079a3c0)
	/home/user/go/src/github.com/jinzhu/gorm/decimal_test.go:22 +0x13b
testing.tRunner(0xc42079a3c0, 0x8de1c8)
	/usr/lib/go/src/testing/testing.go:746 +0xd0
created by testing.(*T).Run
	/usr/lib/go/src/testing/testing.go:789 +0x2de
exit status 2
FAIL	github.com/jinzhu/gorm	0.186s

Please support this

you can work around it by using a struct tag which forces string serialization.

Was experiencing the invalid sql type  (ptr) for in postgres and the tip by @kamushadenes fixed it!

cannot convert type: decimal.Decimal
How to Solve the Problem

cannot convert type: decimal.Decimal
How to Solve the Problem

@famiou you need to set the tag of your field with sql:"type:decimal(20,8);"

Is the tag sql:"type:decimal(20,8);" documented at somewhere?

sql:"type:decimal(20,8);"

Why does this work?


🐛 [Bug]  Failed to build docker on Jetson  (tag=v1.0.0)

Bug Description
Failed to build Natively on aarch64 (Jetson)
To Reproduce
Steps to reproduce the behavior:
On Jetson Xavier, JetPack 4.6:

Follow all steps to prepare the build as explained here
Compile Python API by executing the following command from the //py directory

python3 setup.py install --use-cxx11-abi

Output:
[LOCAL_PATH]/Torch-TensorRT/core/lowering/BUILD:10:11: Compiling core/lowering/register_trt_placeholder_ops.cpp failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 60 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
core/lowering/register_trt_placeholder_ops.cpp:16:34: error: invalid user-defined conversion from 'torch::jit::<lambda(torch::jit::Stack&)>' to 'torch::jit::OperationCreator' {aka 'std::function<void(std::vector<c10::IValue>*)> (*)(const torch::jit::Node*)'} [-fpermissive]
         aliasAnalysisFromSchema()),
                                  ^
core/lowering/register_trt_placeholder_ops.cpp:15:24: note: candidate is: 'torch::jit::<lambda(torch::jit::Stack&)>::operator void (*)(torch::jit::Stack&)() const' <near match>
         [](Stack& stack) { /*noop*/ },
                        ^
core/lowering/register_trt_placeholder_ops.cpp:15:24: note:   no known conversion from 'void (*)(torch::jit::Stack&)' {aka 'void (*)(std::vector<c10::IValue>&)'} to 'torch::jit::OperationCreator' {aka 'std::function<void(std::vector<c10::IValue>*)> (*)(const torch::jit::Node*)'}
In file included from external/libtorch/include/torch/csrc/jit/runtime/custom_operator.h:5,
                 from core/lowering/register_trt_placeholder_ops.cpp:1:
external/libtorch/include/torch/csrc/jit/runtime/operator.h:98:3: note:   initializing argument 2 of 'torch::jit::Operator::Operator(std::__cxx11::string, torch::jit::OperationCreator, c10::AliasAnalysisKind)'
   Operator(
   ^~~~~~~~
Target //:libtorchtrt failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 52.413s, Critical Path: 41.15s
INFO: 27 processes: 10 internal, 17 linux-sandbox.
FAILED: Build did NOT complete successfully

Expected behavior
A clean build
Environment

Build information about Torch-TensorRT can be found by turning on debug messages

NGC Image: nvcr.io/nvidia/l4t-ml:r32.6.1-py3
Torch-TensorRT Version: 1.0.0
PyTorch Version: 1.9.0
CPU Architecture: aarch64
OS (e.g., Linux): Linux (Jetson OS)
How you installed PyTorch (conda, pip, libtorch, source): pip as recommended here
Build command you used (if compiling from source): python3 setup.py install --use-cxx11-abi
Python version: 3.6
CUDA version: 10.2
GPU models and configuration: Jetson XAVIER
Any other relevant information: same issue appeared in #694

Torch-TensorRT 1.0.0 targets PyTorch 1.10.0. PyTorch changed this API in PyTorch 1.10.0. You probably can checkout Torch-TensorRT/trtorch 0.4.0 if you need to use PyTorch 1.9.0, upgrade your PyTorch version or apply a patch. Let us know if you need help with any of these options.

Hello @narendasan , thanks for the prompt response!
I just tested it with PyTorch 1.10.0 installed as explained here, but I am getting the same error.
Using v0.4.0  indeed works, but of course it would be nice to have access to 1.0.0

Can you share the workspace you are using?

workspace(name = "Torch-TensorRT")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

http_archive(
    name = "rules_python",
    sha256 = "778197e26c5fbeb07ac2a2c5ae405b30f6cb7ad1f5510ea6fdac03bded96cc6f",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.2.0/rules_python-0.2.0.tar.gz",
)

load("@rules_python//python:pip.bzl", "pip_install")

http_archive(
    name = "rules_pkg",
    sha256 = "038f1caa773a7e35b3663865ffb003169c6a71dc995e39bf4815792f385d837d",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
    ],
)

load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

git_repository(
    name = "googletest",
    commit = "703bd9caab50b139428cea1aaff9974ebee5742e",
    remote = "https://github.com/google/googletest",
    shallow_since = "1570114335 -0400",
)

# External dependency for torch_tensorrt if you already have precompiled binaries.
local_repository(
    name = "torch_tensorrt",
    path = "/opt/conda/lib/python3.8/site-packages/torch_tensorrt"
)

# CUDA should be installed on the system locally
new_local_repository(
    name = "cuda",
    build_file = "@//third_party/cuda:BUILD",
    path = "/usr/local/cuda-10.2/",
)

new_local_repository(
    name = "cublas",
    build_file = "@//third_party/cublas:BUILD",
    path = "/usr",
)
#############################################################################################################
# Tarballs and fetched dependencies (default - use in cases when building from precompiled bin and tarballs)
#############################################################################################################

#http_archive(
#    name = "libtorch",
#    build_file = "@//third_party/libtorch:BUILD",
#    sha256 = "190e963e739d5f7c2dcf94b3994de8fcd335706a4ebb333812ea7d8c841beb06",
#    strip_prefix = "libtorch",
#    urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.10.0%2Bcu113.zip"],
#)
#
#http_archive(
#    name = "libtorch_pre_cxx11_abi",
#    build_file = "@//third_party/libtorch:BUILD",
#    sha256 = "0996a6a4ea8bbc1137b4fb0476eeca25b5efd8ed38955218dec1b73929090053",
#    strip_prefix = "libtorch",
#    urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-shared-with-deps-1.10.0%2Bcu113.zip"],
#)
#
## Download these tarballs manually from the NVIDIA website
## Either place them in the distdir directory in third_party and use the --distdir flag
## or modify the urls to "file:///<PATH TO TARBALL>/<TARBALL NAME>.tar.gz
#
#http_archive(
#    name = "cudnn",
#    build_file = "@//third_party/cudnn/archive:BUILD",
#    sha256 = "0e5d2df890b9967efa6619da421310d97323565a79f05a1a8cb9b7165baad0d7",
#    strip_prefix = "cuda",
#    urls = [
#        "https://developer.nvidia.com/compute/machine-learning/cudnn/secure/8.2.4/11.4_20210831/cudnn-11.4-linux-x64-v<IP_ADDRESS>.tgz",
#    ],
#)
#
#http_archive(
#    name = "tensorrt",
#    build_file = "@//third_party/tensorrt/archive:BUILD",
#    sha256 = "3177435024ff4aa5a6dba8c1ed06ab11cc0e1bf3bb712dfa63a43422f41313f3",
#    strip_prefix = "TensorRT-<IP_ADDRESS>",
#    urls = [
#        "https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.0.3/tars/tensorrt-<IP_ADDRESS>.linux.x86_64-gnu.cuda-10.2.cudnn8.2.tar.gz",
#    ],
#)

new_local_repository(
    name = "libtorch",
    path = "/usr/local/lib/python3.6/dist-packages/torch",
    build_file = "third_party/libtorch/BUILD"
)

new_local_repository(
    name = "libtorch_pre_cxx11_abi",
    path = "/usr/local/lib/python3.6/dist-packages/torch",
    build_file = "third_party/libtorch/BUILD"
)

new_local_repository(
    name = "cudnn",
    path = "/usr/",
    build_file = "@//third_party/cudnn/local:BUILD"
)

new_local_repository(
    name = "tensorrt",
    path = "/usr/",
    build_file = "@//third_party/tensorrt/local:BUILD"
)
####################################################################################
# Locally installed dependencies (use in cases of custom dependencies or aarch64)
####################################################################################

# NOTE: In the case you are using just the pre-cxx11-abi path or just the cxx11 abi path
# with your local libtorch, just point deps at the same path to satisfy bazel.

# NOTE: NVIDIA's aarch64 PyTorch (python) wheel file uses the CXX11 ABI unlike PyTorch's standard
# x86_64 python distribution. If using NVIDIA's version just point to the root of the package
# for both versions here and do not use --config=pre-cxx11-abi

#new_local_repository(
#    name = "libtorch",
#    path = "/usr/local/lib/python3.6/dist-packages/torch",
#    build_file = "third_party/libtorch/BUILD"
#)

#new_local_repository(
#    name = "libtorch_pre_cxx11_abi",
#    path = "/usr/local/lib/python3.6/dist-packages/torch",
#    build_file = "third_party/libtorch/BUILD"
#)

#new_local_repository(
#    name = "cudnn",
#    path = "/usr/",
#    build_file = "@//third_party/cudnn/local:BUILD"
#)

#new_local_repository(
#   name = "tensorrt",
#   path = "/usr/",
#   build_file = "@//third_party/tensorrt/local:BUILD"
#)
#########################################################################
# Testing Dependencies (optional - comment out on aarch64)
#########################################################################
pip_install(
    name = "torch_tensorrt_py_deps",
    requirements = "//py:requirements.txt",
)

pip_install(
    name = "py_test_deps",
    requirements = "//tests/py:requirements.txt",
)

pip_install(
    name = "pylinter_deps",
    requirements = "//tools/linter:requirements.txt",
)

Can you verify that the version of PyTorch installed at /usr/local/lib/python3.6/dist-packages/torch, is version 1.10.0? I know sometimes things can get shuffled with virutalenvs, conda, and local installations.

Good one! I had two conflicting torch versions installed! 1.9.0 in /usr/local/lib/python3.6/dist-packages/torch in and 1.10.1 in /home/saivvier/.local/lib/python3.6/site-packages. Thank you.


Armstjc/fix mlb function names - Release Candidate 1

why do these have loads_? shouldn't it be like mlbam_transactions() ?

why do these have loads_? shouldn't it be like mlbam_transactions() ?

Because the function/API call requires a range of dates for the call to work, and there isn't another function like this in sdv-py.

why do these have loads_? shouldn't it be like mlbam_transactions() ?

Because the function/API call requires a range of dates for the call to work, and there isn't another function like this in sdv-py.

Fine but I reserve the right to change the naming convention here if I feel like it is necessary


Respect constraints and overrides in pre-resolution iterators

Before resolution, we often iterate over our requirements to determine whether (e.g.) we need to allow a URL. These iterators include constraints and overrides, but they put them on top of the requirements, rather than overriding them. This leads to some strange behavior that's fairly rare in practice (I checked in some tests previously to illustrate it), but still should be fixed.

Also a requirement for #2684, I think.

Closed by #2742.


#763 - Added Compound_Interest.cpp

Assigned Issue Number ?
#763
Language Opted ?
C++
Number of files added or updated ?
1
Name of these files ?
Maths_And_Stats => Statistics => Compound _Interest => Compound_Interest.cpp
Checklist

[x] I've read the contribution guidelines.
[x] I've referred the correct issue number.
[x] I've fill up this entire template correctly.

Hey @ahampriyanshu ! The PR has passed all the checks. Hope this PR is according to the requirements. If not, please tell me further changes needed to be made, I'll do the needful.

Hi @prajwlr
The cpp implentation has already been pushed by @uV3301
So, please kindly remove the .cpp file and then push again

Done as you said @ahampriyanshu . Hope it is good to merge now :)


Tooltip isn't flipping to the place with the most space.

Hi,
if I got a big tooltip with large content and display it on an element on top of my page, it should open below this element. This works.
But when i pull my browser window at the bottom to the top, I mean when I shrink the window, the tooltip flips to to the top of my trigger element and exceeds the viewport. Effectively the tooltip is out of my browser at the top although there is more space below than above...
My code:
http://jsfiddle.net/fDavN/12513/
(There in jsfiddle it's not flipping and i don't know why my tooltip corner is not at the center but at the right)

Ok fixed it with my own workaround :D
show: {
    effect: function() {

        var document_height = $(document).height();

        $(this).show();

        if ($(this).offset().top < 0 || $(this).offset().top + $(this).height() >= document_height) {
            $(this).qtip("api").set("position.adjust.method", "none");
        }

        $(this).show();

    }

}


Pem: Add option to download push certificate if it exists

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
Trying to create an already existing push certificate throws there warnings:

[11:11:32]: You already have a push certificate, which is active for more than 30 more days. No need to create a new one
[11:11:32]: If you still want to create a new one, use the --force option when running PEM.

It would be great if there was an option that would let you only download it, if it exists. So something like:

[11:11:32]: If you only want to download it, use the --download option when running PEM.

Environment
Please run fastlane env and copy the output below. This will help us help you :+1:
If you used --capture_output option please remove this block - as it is already included there.
✅ fastlane environment ✅
Stack

Key
Value

OS
10.11.6

Ruby
2.0.0

Bundler?
true

Git
git version 2.9.3 (Apple Git-75)

Installation Source
/Users/Iulian/.gems/bin/fastlane

Host
Mac OS X 10.11.6 (15G1004)

Ruby Lib Dir
/Users/Iulian/.rbenv/versions/2.0.0-p353/lib

OpenSSL Version
OpenSSL 1.0.2e 3 Dec 2015

Is contained
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.1

System Locale

Variable
Value

LANG

LC_ALL
en_US.UTF-8
✅

LANGUAGE

fastlane gems

Gem
Version
Update-Status

credentials_manager
0.16.2
✅ Up-To-Date

fastlane_core
0.56.0
✅ Up-To-Date

spaceship
0.37.0
✅ Up-To-Date

cert
1.4.4
✅ Up-To-Date

deliver
1.15.0
✅ Up-To-Date

frameit
3.0.0
✅ Up-To-Date

gym
1.12.0
✅ Up-To-Date

sigh
1.11.2
✅ Up-To-Date

match
0.11.0
✅ Up-To-Date

pem
1.4.0
✅ Up-To-Date

pilot
1.12.0
✅ Up-To-Date

produce
1.3.0
✅ Up-To-Date

scan
0.14.1
✅ Up-To-Date

screengrab
0.5.6
✅ Up-To-Date

snapshot
1.16.3
✅ Up-To-Date

supply
0.7.1
✅ Up-To-Date

fastlane
1.109.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

bundler
1.13.6

CFPropertyList
2.3.3

i18n
0.7.0

json
1.8.3

minitest
5.9.1

thread_safe
0.3.5

tzinfo
1.2.2

activesupport
<IP_ADDRESS>

public_suffix
2.0.4

addressable
2.5.0

babosa
1.0.2

colored
1.2

highline
1.7.8

commander
4.4.0

security
0.1.3

credentials_manager
0.16.2

excon
0.54.0

gh_inspector
1.0.2

multi_json
1.12.1

plist
3.2.0

rubyzip
1.1.7

terminal-table
1.4.5

fastlane_core
0.56.0

multipart-post
2.0.0

faraday
0.10.0

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20161021

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday_middleware
0.10.1

fastimage
1.6.8

multi_xml
0.5.5

claide
1.0.1

dotenv
2.1.1

mini_magick
4.5.1

rouge
1.11.1

xcpretty
0.2.4

net-ssh
3.2.0

net-sftp
2.1.2

krausefx-shenzhen
0.14.11

slack-notifier
1.5.1

xcpretty-travis-formatter
0.0.4

jwt
1.5.6

little-plugger
1.1.4

logging
2.1.0

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
<IP_ADDRESS>

hurley
0.2

mime-types-data
3.2016.0521

mime-types
3.1

uber
0.0.15

representable
2.3.0

retriable
2.1.0

google-api-client
0.9.20

terminal-notifier
1.7.1

word_wrap
1.0.0

xcode-install
2.0.9

nanaimo
0.2.2

xcodeproj
1.4.1

generated on: 2016-11-17

good point, i invalided mine a few times just to get a p12 file 😝
here is a PR: https://github.com/fastlane/fastlane/pull/7052 trying to add a download existing certificates, lets see if it gets merged, maybe you 👍  it

downloading existing push certificates is currently not support by apple, my initial thoughts where wrong the PR #7052  has been closed.
probably hacking in match support to pem, is a way? - keeping them in the same repo?
@KrauseFx would that be a thing? or does it not fit in the use-case of match?
( i mean we could probably do it with https://github.com/hjanuschka/cryptex 😊 )

Hmm, yes, it downloads a .cer file, not a .p12.
Maybe add a --replace option that revokes any existing certificates?
So, if you generated profiles for a couple of your apps, but something happened and it stopped, if you want to re-generate them for all your apps, a couple of them would have 2 certificates.

Can the --replace option be implemented? Simply said, can Pem revoke a certificate too?

I'm also interested in this. I just added match to my fastfile. But Firebase requires me to upload a .p12 file. Now my .p12 certs on firebase are not in sync with the new provisioning profile created by match.

@bmwertman you can always update the push cert without having to update the provisioning profile. This issue should be closed, there is no way to really download a p12, and just downloading the cer would be confusing for most users.
We don't want to implement revoking, as it's a destructive action, that potentially breaks working setups.


Downlevel logging

Issue #, if available: https://github.com/awslabs/aws-glue-schema-registry/issues/9
Description of changes: Down-leveling logging.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Looks good.


emojis support

Could a font be added to support emojis?

This is something that PicoVector (a vector graphics library for Pico) would be best at and, in theory, yes it could. Though they would be basic - FontAwesome-like - single colour icons. Actually I think the font tools could convert FontAwsome itself... 🤔
PicoVector is due for a significant rewrite, though, before it's ready for prime time.

Great, would that work today?   I'm working on the idea of using a 2 x 64 x 32 HUB75 Matrix with a InterState75 to display messages from Twitch Chat.. so would be good if it could display emotes.

Great, would that work today?

Probably not...
To even get started you'd have to wrangle the font converter from this old version of Alright Fonts to convert some emoji codepoints from a suitable font. I haven't touched this stuff in a while so I don't have any insightful pointers - https://github.com/lowfatcode/alright-fonts/tree/e79124b71416fda85fd5e6439f87520b7f3cec8f
You'd probably be better off using PNG images if you want it done fast. Messing with fonts is going to be a journey!


Include a fix for pyenv with poetry shell in documentation

Please see #497, #571, #172, and possibly #198 for related issues.
In the case described by @itsthejoker here: https://github.com/sdispater/poetry/issues/497#issuecomment-437160361
a proposed solution is to have fish execute a script to fix $PATH after pyenv has initialized. I believe a better solution is to guard pyenv for $POETRY_ACTIVE. This PR includes documentation for this fix, as I suspect many people are hitting this roadblock.
I am not able to vouch that this fix works (or is needed) on any shells other than fish, but I would assume before merging you might want to include documentation for those shells.
Hopefully this is helpful!

Oh. Thaaaat's a lot easier than my solution 😂
An important side note is that in Fish, this solution will only work if you're manually declaring the inits for pyenv inside your config instead of using the omf pyenv plugin (which helpfully mangles the path for us: https://github.com/oh-my-fish/plugin-pyenv/blob/master/init.fish). Might need an additional line in your update.

Please see https://github.com/sdispater/poetry/issues/497#issuecomment-443619684 for a real fix.


Can't export large schematic (MCEdit hangs)

So I just tried to export a schematic that was about 100 blocks on both sides, and then MCEdit stopped responding. I went into Task Manager and noticed the memory usage by MCEdit was rapidly increasing, and was over a gigabyte by the time I killed the process. This only happens in the latest version of MCEdit.

Did you selected the schematic format in the file dialog?
By default, the file dialog wants to use the NBT format, which can require a large amount of RAM since the data can't be 'sliced' to be written on the disk...
Depending on the MCEdit internal block buffer setting in the Options panel, MCEdit will create a raw schematic file or a zipped one.

You're right. I was trying to use the NBT format.


Failure to initialize

Version of the custom_component
2.0.0beta7
Configuration

Traceback (most recent call last):
  File "/config/custom_components/versatile_thermostat/climate.py", line 1073, in _async_temperature_changed
    self.recalculate()
  File "/config/custom_components/versatile_thermostat/climate.py", line 1766, in recalculate
    self.update_custom_attributes()
  File "/config/custom_components/versatile_thermostat/climate.py", line 1834, in update_custom_attributes
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 556, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 599, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 314, in state_attributes
    self.target_temperature_high,
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 399, in target_temperature_high
    return self._attr_target_temperature_high
AttributeError: 'VersatileThermostat' object has no attribute '_attr_target_temperature_high'

Describe the bug
Setup one thermostat over a climate device.  It tries to initialize, but fails part of the way through with the above error.
Debug log

Add your logs here.

Fix commited in 2.0.0.beta8

Hello @kadaan is that now ok with the beta 8 ?
I wanted to release the 2.0.0

I will close the issue. Don't hesitate to reopen if it is not fixed


Problems after switch version to 3.0.1

Hello,
I tried to use the new Version 3.0.1 because you told me version 1.0 and 2.0 are not longer supported. But now there are some errors within my code.
ConcurrentMap fahrtenmap = db.hashMap("fahrten").make();
make is deprecated
What shall I do instead?
cannot resolve method db.delete("xxx");
How can I delete one single hashmap?

You can use create, open or createOrOpen methods.
e.g. db.hashMap("fahrten").createOrOpen()
http://www.mapdb.org/dokka/latest/mapdb/org.mapdb/-d-b/-hash-map-maker/index.html

Ah thanks, Using createOrOpen looks like the right solution for the first problem.

After adding some excluding packaging Options to the build.gradle because of the third error in the first post here, I got another Error:
Error:PARSE ERROR:
Error:unsupported class file version 52.0
Error:...while parsing org/mapdb/Atomic.class
Error:1 error; aborting
:app:transformClassesWithDexForDebug FAILED
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_20\bin\java.exe'' finished with non-zero exit value 1

you need java 1.8 version - also in gradle.
sourceCompatibility = 1.8

How can I change this?

I am afraid that java 8 is not supported on android.

Hello,
I think Java 8  is   supported in Android, look at the following Document from Android Developer:
https://developer.android.com/guide/platform/j8-jack.html

I got it. Now it works for me. But it only works with Api 24.
My Build Gradle:
apply plugin: 'com.android.application'
android {
packagingOptions {
pickFirst 'LICENSE-EDL-1.0.txt'
pickFirst 'LICENSE-EPL-1.0.txt'
}
compileSdkVersion 24
buildToolsVersion "24.0.1"
defaultConfig {
    applicationId "com.example.michael.mapdb"
    minSdkVersion 24
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
    jackOptions {
        enabled true
    }
    multiDexEnabled true
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}
dependencies {
compile 'com.android.support:multidex:1.0.1'
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.0'
compile group:'org.mapdb', name:'mapdb', version:'3.0.1'
}
You have to add this line in your gradle.properties(Project Properties)
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
After this,   it works.


RadioButtonGroup doesn't follow a11y best practice

Take a look at

https://www.w3.org/TR/2016/WD-wai-aria-practices-1.1-20161214/examples/radio/radio-1/radio-1.html
http://a11y-style-guide.com/style-guide/section-forms.html

Wrong usage of aria-*, missing attributes and wrong html elements.

Chrome and VoiceOver:

All radio buttons are announced as "1 of 1".

Safari and VoiceOver:

Name of group is never announced.

Required groups are not announced.

Closing in favor of https://github.com/vaadin/web-components/issues/94 which describes the problem in more detail.


Button "close map aside" does not work

Clicking the button "close map aside" does not collapse the map on the screen's side, overlapping all other pages.

You have not provided any information about your system or browser.
This is almost certainly a duplicate of one of several bugs:
#6566
#6189
Closing as presumed duplicate.


Upgrade Docker Alpine version to 3.12

Alpine 3.12 comes with updated libraries: https://www.alpinelinux.org/posts/Alpine-3.12.0-released.html
Perl is on version 5.30.3-r0 on both Alpine 3.11 (old version) and Alpine 3.12 (new version). The build tools, on the other hand, have been updated in Alpine 3.12.

Thanks 😄

Thank you! 👍


Add TheYkk to customers

Description

Add TheYkk to Derek's customer list
Motivation and Context

I want to test derek app
How Has This Been Tested?

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I've read the CONTRIBUTION guide
[ ] I have signed-off my commits with git commit -s
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

No need to close your PR, you can just follow the instructions given by Derek, it takes about 30 seconds :-)


I got "Uncaught TypeError: Cannot read property '0' of undefined"

I got "Uncaught TypeError: Cannot read property '0' of undefined" when I tried to use rivets.bundled.min.js
My adapters looks like
Rivets.adapters[':'] = {
observe: function(obj, keypath, callback) {
obj.on('change:' + keypath, callback)
},
unobserve: function(obj, keypath, callback) {
obj.off('change:' + keypath, callback)
},
get: function(obj, keypath) {
return obj.get(keypath)
},
set: function(obj, keypath, value) {
obj.set(keypath, value)
}
};
WTF?

@derzunov Here is a working JS fiddle using your supplied Adapter and Backbone Models. http://jsfiddle.net/wvvyw9c4/
Can you let me know what is diff about this JS fiddle and your implementation?
Event better, update the fiddle to make it not work?
Hope this helps.

Hi, Greg!
I use it with RequireJS and I think Rivets is not work correctly with it...
Or I'm doing somth wrong...
define(
[ 'rivets.bundled.min' ],
( Rivets ) ->
Rivets.binders['style-bi'] = ( el, value ) ->
el.style.setProperty('background-image', 'url("' + value + '")');
    return Rivets

)
Uncaught TypeError: Cannot set property 'style-bi' of undefined

Дмитрий Ерзунов
Понедельник, 18 мая 2015, 11:23 -07:00 от Greg Larrenaga<EMAIL_ADDRESS>
@derzunov Here is a working JS fiddle using your supplied Adapter and Backbone Models.  http://jsfiddle.net/wvvyw9c4/
Can you let me know what is diff about this JS fiddle and your implementation?
Event better, update the fiddle to make it not work?
Hope this helps.
—
Reply to this email directly or  view it on GitHub .

Ahh, yes, There is something wrong with the bundled version of rivets and require.js
You need to shim rivets with sightglass in your require.js config.
{
    "shim" : {
        "sightglass" : {
            "exports" : "sightglass"
        },
        "rivets" : {
            "deps" : ["sightglass"],
            "exports" : "rivets"
        }
    },
    "paths" : {
        "sightglass"                : "./vendor/sightglass/index",
        "rivets"                    : "./vendor/rivets/dist/rivets"
    }
}

This is related to : https://github.com/mikeric/rivets/issues/427
Please let me know if this fixes the issue.
Cheers.

Oh, I have already fixed it this way exactly =)
I just wanted to find out how to work with bundle.
But thank you very much!
Have a nice day!

Дмитрий Ерзунов
Понедельник, 18 мая 2015, 11:54 -07:00 от Greg Larrenaga<EMAIL_ADDRESS>
Ahh, yes, There is something wrong with the bundled version of rivets and require.js
You need to shim rivets with  sightglass in your require.js config.
{
"shim" : {
"sightglass" : {
"exports" : "sightglass"
},
"rivets" : {
"deps" : ["sightglass"],
"exports" : "rivets"
}
},
"paths" : {
"sightglass"                : "./vendor/sightglass/index",
"rivets"                    : "./vendor/rivets/dist/rivets"
}
}
This is related to :  #427
Please let me know if this fixes the issue.
Cheers.
—
Reply to this email directly or  view it on GitHub .

@derzunov If the issue is resolved, would you "close" the issue? Thanks.


[WIP] Support for installing AWS cloud provider on OCP3

Waiting on https://github.com/redhat-cop/agnosticd/pull/733
Fixes : https://github.com/fusor/mig-agnosticd/issues/56

Closing as no longer tracked.


Don't update addresses if already used

ping @Matt75

This change will generate too much address, this table can be huge already natively, generate a new address for each ExpressCheckout session will increase it furthermore.
It require to store an association between an alias, a checksum of PrestaShop Address and a checksum of PayPal Address.
Checksum of PayPal Address will be used to retrieve PrestaShop Address if exist


Add getBuffer method to data object

It's quite easy to create buffer from data URL or PNG stream, but it's even easier to simply request a buffer until Canvas API provides such method. So I've just proxied it in object returned to onComplete callback.

Hey, when do you plan to publish release containing this?

I can push something but cant really test it. Glad to hand over keys to an active user if they want to take over. See #11.

1.4.0


Initializing a tf.Variable with he_normal

Hi. I am trying to implement NALU using TF 2.0. I am on MacBook Air 2015 (CPU) and TensorFlow version is 2.0.0-alpha0.
So, I was looking for ways to initialize the W_hat parameter using He Initialization in TensorFlow 2.0.
Things I have tried:

  W_hat = tf.Variable(initial_value=tf.initializers.he_normal(),
  trainable=True,
  name='W_hat', shape=(2,1))

👆results in -

TypeError                                 Traceback (most recent call last)
<ipython-input-25-b78fa0d268a9> in <module>
  1 tf.Variable(initial_value=tf.initializers.he_normal(),
  2             trainable=True,
  ----> 3             name='W_hat', shape=(2,1))

 /miniconda3/lib/python3.7/site-packages/tensorflow/python/ops/variables.py in __call__(cls,
*args, **kwargs)
212       return cls._variable_v1_call(*args, **kwargs)
213     elif cls is Variable:
 --> 214       return cls._variable_v2_call(*args, **kwargs)
215     else:
216       return super(VariableMetaclass, cls).__call__(*args, **kwargs)

TypeError: _variable_v2_call() got an unexpected keyword argument 'shape'

The second try was bound to produce the error I think but anyhow I did it just to be sure -
      W_hat = tf.Variable(initial_value=tf.initializers.he_normal(),
      trainable=True,
       name='W_hat')

The trace for this one is attached.
trace.txt.zip

Would be great to see suggestions.

The error about shape missing is probably just because the shape argument to tf.Variable was recently introduced into the TF API and you're running a version before that.

Both the snippets were written using the 2.0 variant only.

I should have searched a bit more before raising the issue. It was really simple of a solution:
shape = (2,)
initializer = tf.initializers.he_normal()
var = tf.Variable(initializer(shape=shape))


Minimal support for Maxwell and Pascal architectures

This patch adds minimal support for Maxwell and Pascal CUDA GPUs, by
adding information from the CUDA C Programming Guide on those GPUs and
overall ensuring that generated kernels can run on them.  The
performance model is not yet updated for those architectures, and as
such may give (wildly) incorrect lower bounds -- which shouldn't prevent
the generated kernels from being correct still.
In addition, this also fixes a pre-existing bug where constraints on inner block dimensions were not properly computed due to a division rounding error, which caused crashes when running Telamon on Maxwell/Pascal gpus.

bors r=ulysseB

bors retry


Excessive number of volumes in mysql DB could be the cause to freeze up web UI ?

Rancher Version:
rancher/server:v1.2.0-pre4-rc1
Docker Version:
Server Version: 1.12.1
OS and where are the hosts located? (cloud, bare metal, etc):
3 x Dedicated bare metal servers
PRETTY_NAME="Ubuntu 16.04.1 LTS"
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node rancher
single network interfaces on all 3 servers
external mysql DB
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:
We had rancher running for a few months, just never had problem with the UI until recently.
Recently we noticed that client machines that we use to access Rancher UI get really overloaded on rancher ui session login.
It's taking over 20 seconds to get to the response on Ajax request to:
/v2-beta/projects/1a5/mounts?limit=-1&sort=name
Results:
I'm just interested if this number of volumes is what's causing the client machines to go bananas on rancher ui session init:
This query makes me wander if something in my distribution is just going insanely wrong:
SELECT table_name, table_rows, data_length, index_length FROM information_schema.TABLES WHERE table_schema = 'rancher' AND table_rows > 1000
granted I like labels, but this ditribution is running very-very few services, these row counts seem excessively high?
table_name                                     table_rows  data_length  index_length
instance_label_map                             187698      28884992     45252608
mount                                          49139       8929280      14811136
volume                                         30477       9977856      22331392
volume_storage_pool_map                        28736       4734976      8929280
nic                                            19553       3686400      5242880
image                                          19272       12075008     6569984
instance_host_map                              18837       4734976      4030464
label                                          17169       3686400      4816896
image_storage_pool_map                         17030       2637824      3620864
container_event                                16636       77168640     2359296
ip_address_nic_map                             16616       2637824      3768320
ip_address                                     16578       2637824      4636672
instance                                       11470       232374272    9240576
process_execution                              10709       119635968    4554752
port                                           10667       2637824      3358720
process_instance                               9671        7356416      1785856
audit_log                                      6024        34127872     966656
service_expose_map                             5398        1589248      1245184
instance_link                                  4716        2637824      1261568
service_log                                    2351        1523712      245760
external_handler_external_handler_process_map  2214        393216       475136
healthcheck_instance_host_map                  1343        262144       491520
service_index                                  1145        212992       376832

Expected:
not sure if described above is an appropriate behaviour or if something is wrong. but the distribution is practically unusable, very-very slow with just 3 nodes, and maybe 12-15 stacks of services with 2-3 containers in each stack

@virtuman 1.2.0-pre4(*) has some destabilizing changes in it. It's not recommended for use outside of test. Can you revert to a known good setup (might involve restoring your db from a previous backup). Closing the issue.


Skip Obj-C code generation if output folder was not provided

Fixes the following exception when issuing a Djinni command to generate code other than Obj-C:
        at scala.None$.get(Option.scala:529)
        at scala.None$.get(Option.scala:527)
        at djinni.ObjcGenerator.writeObjcFile(ObjcGenerator.scala:412)
        at djinni.ObjcGenerator.generateInterface(ObjcGenerator.scala:104)
        at djinni.Generator.$anonfun$generate$2(generator.scala:363)
        at djinni.Generator.$anonfun$generate$2$adapted(generator.scala:358)
        at scala.collection.LinearSeqOptimized.foreach(LinearSeqOptimized.scala:75)
        at scala.collection.LinearSeqOptimized.foreach$(LinearSeqOptimized.scala:72)
        at scala.collection.mutable.MutableList.foreach(MutableList.scala:33)
        at djinni.Generator.generate(generator.scala:358)
        at djinni.generatorTools.package$.generate(generator.scala:222)
        at djinni.Main$.main(Main.scala:374)
        at djinni.Main.main(Main.scala)

because reading the code seems this file will always be written if --skip-generation is set, but a --objc-swift-bridging-header

You're right. The Swift bridging headers will be written if --objc-swift-bridging-header, regardless of --skip-generation. In fact, there's a createFolder(...) call in https://github.com/cross-language-cpp/djinni-generator/blob/c2f2fcd657b7adfad1bc97309991af00eef23d85/src/main/scala/djinni/Main.scala#L313 which is not consistent with the other languages.
The other two occurrences of createFolder(...) in Main.scala are for the input and output files list. I believe it'd make more sense for the Swift logic to be moved to generator.scala, but since I have never used the Swift code gen I'm afraid of making those changes without being able to test it.

I was actually referring to that:
https://github.com/cross-language-cpp/djinni-generator/blob/c2f2fcd657b7adfad1bc97309991af00eef23d85/src/main/scala/djinni/generator.scala#L230
that maybe needs a if (!spec.skipGeneration) above, like the others
about the folder generation, we could put that into an extra ticket

I agree with you, this change might be a little bit more involved. What I meant is that protecting that block with an if wouldn't solve the problem completely, and given how uncomfortable I currently am to make that change I'd go with a separate ticket.

I added a suggestion, to skip bridge header generation if the skip code gen is provided.
Please check @freitass


[8.x] Implement Full-Text Search for PostgreSQL

I worked with @driesvints on a basic api for the query builder to do fulltext searching (#40129). Based on the agreed api and his implementation for MySQL, I was able to easily add PostgreSQL support:
Schema::create('articles', function (Blueprint $table) {
    $table->id('id');
    $table->string('title', 200);
    $table->text('body');
    $table->fulltext(['title', 'body']);
});

// Search for "databases" in the title and body fulltext index...
$articles = DB::table('articles')
    ->whereFulltext(['title', 'body'], 'database')
    ->get();

// Search for "databases" in the title and body fulltext index with german language...
$articles = DB::table('articles')
    ->whereFulltext(['title', 'body'], 'database', ['language' => 'german'])
    ->get();

// Search for "databases" in the title and body fulltext index with phrase-mode...
$articles = DB::table('articles')
    ->whereFulltext(['title', 'body'], 'database', ['mode' => 'phrase'])
    ->get();

// Search for "databases" in the title and body fulltext index with websearch-mode...
$articles = DB::table('articles')
    ->whereFulltext(['title', 'body'], 'database', ['mode' => 'websearch'])
    ->get();

PostgreSQL has the great functionality that you can fine tune fulltext-search very much. For the moment, I only implemented the different search-term parsers to keep the pull request small. You will have access to the following search-term modes:

mode = 'plain': The plainto_tsquery function will transform a search string by and-ing the search terms: plainto_tsquery('english', 'The Fat Rats door') --> must match 'fat' & 'rat' & 'door'
mode = 'phraseto': The phraseto_tsquery function will transform a search string by needing the phrases to appear in the exact order one after another: phraseto_tsquery('english', 'The Fat Rats door') --> must match 'fat' <-> 'rat' <-> 'door'
mode = 'websearch': The websearch_to_tsquery function is mostly like MySQL's boolean search mode, which allows positive/negative operators in the text. But contrary to MySQL the terms are combined with and instead of or: websearch_to_tsquery('english', 'fat +rat -door') --> must match 'fat' & 'rat' & !'door'

The websearch mode mode = 'websearch' is only available in PostgreSQL 11+ so the standard mode has been set to mode = 'plain'.
In my pull request #39875 I added fulltext index support for PostgreSQL which was released with v8.75.0. I did not implement multiple columns as the there are different ways to build them and querying needs to use the same method as the index. With querying support now added, I also implemented multiple columns support.

This is a stacked Pull Request on #39875, i will rebase it to the 8.x branch as soon as the pull request of @driesvints is merged.

Can we leverage PostgreSQL GIN index for this or it will be useless ?

Can we leverage PostgreSQL GIN index for this or it will be useless ?
If you set a fulltext() index it will be used 😉

Converting to draft for now until my own PR is merged. Thanks!

Actually, @tpetry can you send this to my own branch instead? Thanks!

Nvm, got it. Thanks @tpetry!