make sure req.host and req.hostname return strict string

It will more convenient to use this.host as a strict string, like this.host.split('.').
Otherwise we need to detect this.host is string or undefined first.
if (typeof this.host === 'string') {
  // dosomething ...
} else {

}

LGTM

I like it. LGTM

+1

:+1:

you can still do !this.host since "" == false so +1 from me

:+1:

although, hm this is a breaking change. if someone did this.host === null or something this will break. so, i'm for waiting for the next major release or dismissing this change.

@juliangruber we can release 0.19.0 before 1.0.0 publish.

sounds fine to me, although in that case you have you'll just get ['']which is probably less desirable

should i release a 0.19?

please!
Sent from my iPhone

On Apr 4, 2015, at 3:00 PM, jongleberry<EMAIL_ADDRESS>wrote:
should i release a 0.19?
—
Reply to this email directly or view it on GitHub.

released, then added you and @dead-horse to npm so you guys can make releases too!


Sugestion Alternative Madogear

Hello.
I would like to suggest that the alternative outfit also include the Madogear.
I have tried to apply this one without success.

{
    "gender": 0,
    "job": [
        "4279"
    ],
    "head": 21,
    "headPalette": 1,
    "headdir": 0,
    "action": 1,
    "canvas": "200x200+100+150",
    "outfit": 1
}

Thanks for your great support.

Do you know how the alternative sprite works in-game? (I don't play Ragnarok anymore) I had a hard time looking up information about it. I found a YouTube video in korean that shows how he buys and uses the item "Emergency Mado Gear(Reinforcement Suit)" https://ratemyserver.net/index.php?page=re_item_db&item_id=100158.
The item applies some sort of effect on the player, but does not in fact changes the job (as is done for example the Tuxedo/Wedding Dress).
There also seems to be multiple madogear jobs and supposedly alternative sprites.
For example there is:

JobId
Name

4086
마도기어

4087
마도기어

4112
마도기어

4297
MEISTER_MADOGEAR1

And there are the following alternative sprites:
마도아머, MEISTER_MADOGEAR2.
For now I would guess that if your job is 마도기어 then the alternative sprite would be 마도아머 and respectively if your job is MEISTER_MADOGEAR1 then your alternative sprite would be MEISTER_MADOGEAR2. Again, I do not know how it actually works in the official client.

Do you know how the alternative sprite works in-game? (I don't play Ragnarok anymore) I had a hard time looking up information about it. I found a YouTube video in korean that shows how he buys and uses the item "Emergency Mado Gear(Reinforcement Suit)" https://ratemyserver.net/index.php?page=re_item_db&item_id=100158.
The item applies some sort of effect on the player, but does not in fact changes the job (as is done for example the Tuxedo/Wedding Dress).
This is correct, it is using this item to apply the new Madogear. Internally in the files I can't say how the script for this item will work, but as far as I know it is only using this item.

Actually, the way other jobs traditionally are, it won't work for this one. I had also checked the files that resolver.d uses before opening this issue and I believe that this will have to be a new implementation as Companion (e.g. Falcon).
I've found inconsistencies in the game files, certain costumes and items don't follow the old standard.

Please checkout version 1.4.0.
You can now specify a new argument: --madogearType={robot,suit}. API usage is respectively: "madogearType": {0,2}.
{
    "gender": 0,
    "job": [
        "4279"
    ],
    "head": 21,
    "headPalette": 1,
    "headdir": 0,
    "action": 1,
    "canvas": "200x200+100+150",
    "madogearType": 2
}

Results in:

Awesome dude!
I'll try it out, thank you very much.


Split output on -lv, to stdout and stderr

Output of bpftrace -lv is split up to stdout and stderr.
This is bad, because bpftrace -lv kfunc:vmlinux:*mount | less will show a list of kfunc and a list of parameters, without any association being possible.
What reproduces the bug?
$ sudo strace bpftrace -vl 'kfunc:vmlinux:kern_unmount' | less
kfunc:vmlinux:__detach_mounts
kfunc:vmlinux:__fsnotify_vfsmount_delete
kfunc:vmlinux:__ia32_sys_fsmount
kfunc:vmlinux:__ia32_sys_listmount
...
    struct vfsmount * mnt
    void * arg
    int retval
    struct tomoyo_request_info * r

strace confirms that:
write(1, "kfunc:vmlinux:kern_unmount\n", 27kfunc:vmlinux:kern_unmount
) = 27
write(2, "    struct vfsmount * mnt", 25    struct vfsmount * mnt) = 25
write(2, "\n", 1
)

A possible workaround is
$ sudo bpftrace -vl 'kfunc:vmlinux:*mount*' 2>&1 | less

but that's not really nice, all that output should go to stdout by default.
bpftrace --info output
$ bpftrace --info
ERROR: bpftrace currently only supports running as the root user.
$ sudo bpftrace --info
System
  OS: Linux 6.8.12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.8.12-1 (2024-05-31)
  Arch: x86_64

Build
  version: v0.21.2
  LLVM: 17.0.6
  unsafe probe: no
  bfd: no
  liblldb (DWARF support): no
  libsystemd (systemd notify support): no
...

It looks this simple PR(#3383) can fix this problem. But I'm not quite understand why choose LOG(V1) << "    " << param;  when implementing list_probes.

Probably b/c the output was gated on -v (verbose flag). So verbose log level was chosen. Probably didn't think too hard about it - the motivation for this fix makes a lot of sense.


feat: real fragments

This pull request implements real fragments
To ensure transparent type-safety, fragments behave the same as the source tuple type. This can be misledeaing if users attempt to access individual fields of fragments or otherwise treat them as arrays, but it preserves all the type properties that are typically expected of fragments
Fragment names are automatically generated based on their content using fnvhash
My main motivation for doing this was gradual migration of components that use fragments (This still can't be properly done as fragments don't have a name property exposing the autogenerated name)
However, since I'm not a user of fragments, this PR is essentially an RFC: Is this sort of fragment functionality useful in the context of a query builder? Do "real fragments" come with any benefits?

Tagging @ivasilov for thoughts :grinning:


Fix in 2.7

@trentmwillis @chriskrycho I've tacking your PR and fixed the tests.
However I'm not sure if what I did is the proper fix. Should the tests (https://github.com/trentmwillis/ember-exam/pull/50/commits/984f77b1c2739a5742e7bac05ca4c90a0ee79f9e#diff-9a7b910d76a4ba883dc7d784e022c326R5) also load conditionally one package or the other?

I'm investigating the failure in node-land. I suspect that it's a core-object issue, but I think I'll need help for this.

I looked into this a bit. The Node failures are because we can no longer spy/stub super method calls.
I'm going to look into following a pattern similar to what Ember-CLI does for the actual test command.

Merged via #51. Thanks for your work @cibernox!


fix join and add test

Codecov Report

Merging #71 (29091d5) into master (1ea62a7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #71   +/-   ##
=======================================
  Coverage   71.12%   71.12%
=======================================
  Files          38       38
  Lines        2213     2213
=======================================
  Hits         1574     1574
  Misses        639      639

Flag
Coverage Δ

clients-tests
?

config-tests
?

data-tests
?

logging-tests
?

models-tests
?

plots-tests
?

unit-tests
71.12% <ø> (ø)

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

Files
Coverage Δ

mango/table/pytups_tools.py
94.73% <ø> (ø)

:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!


UIImage.Asset symbol not found for Release build

I'm getting the following error when making a Release build using Xcode 7.3, Swift compiler generation setting is Fast [-O]. Is this the same issue as #57?
Undefined symbols for architecture x86_64:
  "type metadata for (extension in EECOffline):__ObjC.UIImage.Asset", referenced from:
      l_get_field_types_DisplayedVisit in ListVisitsModels.o
      l_get_field_types_DisplayedVisitItem in ListVisitItemsModels.o
ld: symbol(s) not found for architecture x86_64

It's probably the issue from Xcode 7.3 that appears when you have internal structs / enums in ObjC classes.
I had to move internal structs / enums out of ObjC classes.

Yes, that's related to the same Swift bug we talk about in #56 and #57 and that has been confirmed by an engineer of the Swift compiler team on Twitter.
Only workaround until the Swift compiler is fixed is indeed to extract the internal structs or enums out of the ObjC class, like I had to do for the Storyboard (we had an internal UIStoryboard.Scene type that is now an external StoryboardScene in the current templates to work around this).
I should update all the templates to be sure to avoid this bug not only in UIStoryboards like I did, but also in UIColor and UIImage too as it seem to affect every template.
Note: I'm quite busy with many other projects right now so sorry for not having replied earlier. A Pull Request modifying the templates to extract the inner types as top-level types would be welcome (and should be quite easy) if you want this to be resolved quickly, as I'm afraid I still won't have much time to do it myself until a week or two.

@AliSoftware Would you like something like the following?
enum Asset: String {
    case GreenApple = "Green-Apple"
    case RedApple = "Red-Apple"

    var image: UIImage {
        return UIImage(named: self.rawValue)!
    }
}

let greenAppleAsset = Asset.GreenApple
let greenAppleAssetImage = Asset.GreenApple.image

@kgrigsby59 seems about right. Just extracting the Asset to be at top level like you did should be enough indeed.
Just to be clear: I'd still keep the init(asset: Asset) constructor in extension UIImage; just the enum needs to be moved out I think.

Hi,
We got the same issue last week. Moving enum out from the class did resolve the issue. But we finally solved the issue by setting Optimization level (for Swift Compiler) to None [-Onone] as each time we used swiftgen, the enum was generated inside class

@AbsolutRenal As a workaround I'm currently using the new stencil from my pull request and referencing it with the --templatePath option of swiftgen.

@AbsolutRenal I don't have an optimization level None [-Onone], my none is shown as None [-O0], and it doesn't resolve the error. Any suggestions on fixing this?


[Bug Report]  Prompt information style problem when clicking slider bar

Element UI version
2.7.2
OS/Browsers version
windows7 / Chrome 72.0.3626.81 (64)
Vue version
2.6.10
Reproduction Link
https://codepen.io/moshang/pen/LoEgKj
Steps to reproduce

Click on the slider bar
View prompts
Triangle ectopic

What is Expected?
The triangle is in the middle of the message
What is actually happening?
The triangle is in the right of the message

demo 有问题，请提供一个可复现的 demo

https://codepen.io/moshang/pen/LoEgKj


On air feature

I need a feature to use on-air API to fetch and compare with local arb.
I use https://phrase.com/ app, and I know I should implement calling phrase app API my self but
how can I connect the fetched ARB to your package in run time?
I need a way in the your package to give my Fetched ARB from API to your package to compare it
with local one and use it.

[@https://github.com/Tienisto/slang/issues/52](https://github.com/Tienisto/slang/issues/52)


Not updating dynamic weight when attribute is changed

I have the following setup:
class SalesAd
  has_one :district, through: :wine
  counter_culture :district, column_name: :active_sales_ads_count, delta_magnitude: proc { |model| model.state == "active" ? 1 : 0 }
end

I am then speccing it like this:
sales_ad
expect(district.reload.active_sales_ads_count).to eq 0
sales_ad.update!(state: "active")
expect(district.reload.active_sales_ads_count).to eq 1

Which fails with expected: 1 got: 0.
I would expect counter culture to notice the change and change the weight from 0 to 1 and add the change in weight to the active_sales_ads_count column on the district.

Did you tried to check it out in rails console?
In tests it might be because transaction fixtures are used. Try to disable transaction fixtures:
class DistrictTest < ActiveSupport::TestCase
  self.use_transactional_fixtures = false
  ...
end

Looking at the code, it looks like you're right: This doesn't currently work. There's no way for counter_culture to know which column to watch for changes as you're just passing in a proc. We'd have to add another option to specify the columns to watch, I think. I don't use this feature, so I don't think I'll have the time to work on fixing this. I'd love to see a PR though!
That being said, what you're trying to achieve does work with conditional counter caches, as documented here: https://github.com/magnusvk/counter_culture#conditional-counter-cache

@magnusvk Do you think the following could work?

Hook into before_save on: :update and calculate the delta_magnitude
Hook into after_save on: :update and calculate the delta_magnitude again.
If there is a difference in the two, then add the difference to the column.

Then we could avoid forcing the user to have to define the columns. On the other hand it would require a bit more work if the delta_magnitude-proc did something heavy...

The value would already be changed on before_save, but you're right, counter_culture already has a way of giving you the model in its previous state, so we could calculate the delta_magnitude before and after and see if it changed.
See this for something similar.

@magnusvk, please use canonical links when you pasting links to the source code :)


Make visualization images larger

The visualization of weights and activations that are displayed when inferring a single image can a bit small (at least for nets with small input images like LeNet)
Below is an example from using a LeNet-network trained on detecting green and red dots in an image:

In this view its hard to get any useful information out of the visualization. But if you open them up in an external viewer they actually start to make sense:

It would be nice if the images were larger or could be enlarged somehow, e.g. by clicking on or by hovering above the small image.

See #188.


Migration 48 failed in prod-preview

Logs of the error in prod-preview: https://gist.githubusercontent.com/alexeykazakov/9d3810487f4f2177a56bd4ec7010c16b/raw/73e747c9a37ffbb26d3c0ccafc68dc13caf49ec8/gistfile1.txt
The errors in prod-preview about the migration are:
{"current_version":47,"level":"info","msg":"Attempt to update DB to version 48","next_version":48,"pkg":"migration","time":"2017-04-05 21:42:53"}
Failed to obtain reader, Failed to marshal fields to JSON, json: unsupported type: migration.fn
{"err":"Failed to execute migration of step 0 of version 48: pq: could not create unique index \"iterations_name_space_id_path_unique\"\n","level":"panic","msg":"failed migration","pid":1,"time":"2017-04-05 21:42:53"}
panic: (*logrus.Entry) (0xccc320,0xc42028de00)

I am getting an error locally while using a db with some data loaded by my PR https://github.com/almighty/almighty-core/pull/1134
- FAIL: TestMigrations (0.48s)
    migration_blackbox_test.go:133: Failed to execute the migration: Failed to execute migration of step 0 of version 48: pq: syntax error

The error seems to be related to GetUpdatedIterationPath function
t=# UPDATE iterations set path=GetUpdatedIterationPath(id,space_id,path);
ERROR:  syntax error
DETAIL:  Unexpected end of line.
CONTEXT:  PL/pgSQL function texttoltreenode(text) line 2 at SQL statement
SQL statement "select TextToLtreeNode(concat(rootiteration::text,'.',path::text))"
PL/pgSQL function getupdatediterationpath(uuid,uuid,ltree) line 15 at SQL statement```

Locally for me, the error seems to be in `TextToLtreeNode(concat(rootiteration::text,'.','path::text'))` because `path` CAN Be NULL.

The problem seems to be in the line 59
select TextToLtreeNode(concat(rootiteration::text,'.',path::text)) into updated_path;
path is NULL

If I check if PATH is null then it works for me. However I am not sure the path '' is the right one maybe we just keep rootiteration value without the ..
That is my function:
CREATE OR REPLACE FUNCTION GetUpdatedIterationPath(iteration_id uuid,space_id uuid, path ltree, OUT updated_path ltree) AS $rootiteration$
-- Migrate all existing iterations into the new tree where the parent is always the root iteration

     DECLARE
          rootiteration uuid;
     BEGIN

     select GetRootIteration(space_id) into rootiteration;
     IF rootiteration != iteration_id
         THEN
         IF path=''
            THEN
             select UUIDToLtreeNode(rootiteration) into updated_path ;
         ELSE
            IF path is not null THEN
              select TextToLtreeNode(concat(rootiteration::text,'.',path::text)) into updated_path;
            ELSE
              select TextToLtreeNode(concat(rootiteration::text,'.',''::text)) into updated_path;
            END IF;
         END IF;
     ELSE
         updated_path:='';
     END IF;
END;
$rootiteration$  LANGUAGE plpgsql ;

@pranavgore09 should be around in 2h roughly

An update on the debugging session with @pranavgore09  and @baijum :
The production error was because:
As part of this migration, we were enforcing a constraint on a dataset which was already 'dirty' and violated the constraint. There were iterations in production of the same name (in the space, path..etc), whereas the migration was attempting to enforce the opposite.
Steps to reproduce:

Create multiple iterations with the same name "a"
Attempt migration. Fails at the constraint creation step! ( the constrain to be created is that [ name+path+space_id] of an iteration needs to be unique )

@hectorj2f
Your test brought up the null-not-checked issue because the iteration "path" in your data was null, whereas in prod it has been coded to be "" ( I tried it out by creating iterations in my local planner ). So in prod that should not fail, but nevertheless I take your word of caution  Thanks for pointing out!  :)
Will add the check in the sql code.


Issue #439: Install libvirt driver in ~/.crc/bin

It's currently installed in /usr/local/bin, but since the changes for
the hyperkit driver, we can install the machine drivers in a private
location (~/.crc/bin). This commit changes the libvirt driver to go
there as well, as this means less priviledged operation to do at crc
setup time.
This fixes https://github.com/code-ready/crc/issues/439

retest this please

This however also needs a possible removal of the previous driver? Or at least test for it somehow?
We do take the driver from the crc/bin directory as priority, right? but we created litter on someone's computer with previous setup runs that stored in /usr/local

This however also needs a possible removal of the previous driver? Or at least test for it somehow?
We do take the driver from the crc/bin directory as priority, right? but we created litter on someone's computer with previous setup runs that stored in /usr/local

Yes, ~/.crc/bin takes priority (I forgot if $PATH will even be considered when we explicitly set the binary path). There will indeed be some leftovers, but we currently have nothing in place for "unsetup" :( I can look at adding a "sudo rm /usr/local/bin/crc-driver-libvirt" somewhere for now.

Another issue with this change is on upgrades. If you run crc start right after an upgrade, it will fail to locate crc-driver-libvirt, and will tell you to run crc setup. But crc setup can make unwanted changes (in particular with networking), so the preexisting VM may no longer be functional after that. I'm not exactly sure how to avoid this specific problem (I'd prefer to avoid adding changes to look for the driver either in the path we specified, or in $PATH). Maybe for now (pre-beta, no public bundle releases), we can have "non-perfect" upgrades?


can't drag item after scrolling to the end of dialog

Hi,
I got an issue with react-dnd library when I did a drag & drop from a dialog
When I drag the item without scrolling to the end of the dialog every thing works fine ,
But when I scroll to the end of dialog the item can't be dragged
Also another thing strange that the problem doesn't exist in Firefox browser , only in chrome
Note :
I did put a console.log in beginDrag and endDrag I found that endDrag is called directly after begin
ScreenShot
https://drive.google.com/file/d/1YX2Uxn66luARilVfJXucJgjBzhoaMAkU/view?usp=sharing

I found the solution :
Sometimes the manipulation of dom for custom drag layer doesn't work ( in chrome ) after the drag start
like this one :
<div ref={this.badItemRef} className="badItem" style={{
                opacity: isDragging ? "0" : "1",
                 height: isDragging ? 0 : '',
            }}>
</div>

I fixed that by manipulating the css of item in beginDrag function and wrapped the manipulation by a setTimeOut function
like this :
// hide after a timeout
		setTimeout(() => {
			currentItemRef.style.display = "none";
		}, 0)

And now every thing looks good !

Also having this issue, when I scroll to bottom of a column with draggable items in it, only the last item in the list can be dragged. It actually starts to happen when the scroll is almost at the end, it doesn't need to go all the way to the bottom. If I just scroll back up slightly it all starts working again.
I've tried debugging the process and it appears as though my drag layer and drag preview are gettiong rendered, but as the OP mentioned, appears that endDrag is being called immediately after.
@ProNoob702 any chance you could elaborate on your solution a bit please? Then I can try and see if it can solve the problem. How does the 2nd code section relate to the first code section in your example above?


Publish radix-system changes

Could you please publish the latest radix-system changes? I need fontWeight 🤐

Ohh sure! Sorry about that :)

It's now published under v0.0.1-alpha.7 🚀


Refile::App: Error -> ImageMagick/GraphicsMagick is not installed

I have Refile working in development and I upload images to s3 bucket just fine. But when I deploy it to production, the images still upload but they do not get retrieved. I looked at the logs and I have the error:
App 494 stdout: Refile::App: Error -> ImageMagick/GraphicsMagick is not installed
I have both imagemagick and graphicsmagick installed on my server (Ubuntu 16), and I am using Capistrano and Nginx. Images upload with no issues and I can see them in the bucket, but I cannot retrieve them. Anyone facing this recently?

I haven't faced this error.
But I think that you don't put imagemagick and graphicsmagick to your server's PATH.
Did you check it?

As commented, the ImageMagick isn't in your PATH.
Feel free to reopen or create a new issue if you still have this issue, thanks! <3


⚠ Quirk Club Argentina (API endpoint) has degraded performance

In 6218727, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 8410 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in 5a59347.


Support recv_msg for UDP

I have a sensor here that send data via UDP. I am building an experimental reader with MIO/rust for it and so far I really like what I see. Good job on a clean API!!
However I ran into the issue that I cannot ask for one UDP packet, I always have to know how many bytes I want to read beforhand. This is problematic, since I do not know how large the packets are the sensor sends, but they are guaranteed to fit in one UDP packet.
The c code i use in my production client looks a bit like this - this is paraphrased, but contains all the important points.
// recvmsg() is guaranteed to read exactly one full UDP packet, so it is used
// here instead of recv().
struct iovec iov;
iov.iov_base = nullptr;
iov.iov_len = 0;
struct msghdr message = {0};
message.msg_iov = &iov;
message.msg_iovlen = 1;
auto message_size = recvmsg(socket_fd, &message, MSG_PEEK | MSG_TRUNC);
if (message_size < 0 && (errno == EWOULDBLOCK || errno == EAGAIN)) return;

// Now we know the exact message size in the next UDP block. Allocate a buffer
// that fits and use that.
vector<char> message_bytes(message_size);
iov.iov_base = message_bytes.data();
iov.iov_len = message_bytes.size();
auto bytes_read = recvmsg(socket_fd, &message, 0);
assert(bytes_read == message_size);

Can I get something along these lines in mio, pretty please?

Having the same problem.

Sure, I would be ok w/ adding something like this. Is someone up for a PR? I personally don't write udp related code much. Maybe @rrichardson would have an opinion regarding the API.

I'll take a look at this one, should be trivial to add to nix and mio/sys

would you mind creating a simple echo server example? I am working on it but I am unable to create one.

Thanks for submitting the issue.
I'm going to close this due to inactivity. The state / direction of Mio has changed significantly. This issue may or may not be resolved.
For context, Mio has a goal of providing Tcp / Udp APIs equivalent to Rust's STD. Mio also has made it possible to implement custom Evented types, so it should be possible to implement extra features in third party libraries.


How can I use this with Babel / es6?

Electron can be convinced to use Babel by using:
bootwithbabel.js:
require('babel-polyfill')
require('babel-register')
electron bootwithbabel.js ./node_modules/scram-engine/main.js app/server/index.html
This does not seem to reach the html page though.
Can this be done?
Thanx.

I think the problem is that the require('babel-register') is only being applied to the main.js script, which is run on the main Electron process. You need all requires in the renderer process to be affected by the babel-register, which means you need to run require('babel-register') in the context of the HTML and all of its JS. You can try editing require-config.js in the root directory of the project. Put require('babel-polyfill') and require('babel-register') at the very top of the file. That might work.
Otherwise, you can of course use babel to transpile your JS files beforehand, and then anything imported from the render process through the HTML should work.
Also, I use es6 and TypeScript with scram-engine with this tool: https://github.com/lastmjs/es-no-build
It will transpile TypeScript, es6, async/await, and es6 modules down to ES5, which is pretty much everything I need and probably most people need. You don't have to write in TypeScript, but you can if you want.

Hmmm...look at this: https://nodejs.org/api/globals.html#globals_require_extensions
Looking through the babel-register source code, it looks like it uses require_extensions under the hood to attach the transpilation functionality. From the link above, you can see that that functionality is deprecated. I would suggest moving away from using babel-register. I will likely never support its use officially in scram-engine. So either transpile your files beforehand, use https://github.com/lastmjs/es-no-build, or figure out another way to transpile on the fly. I really think es-no-build is a good solution though, like I said I've been using it, and on multiple projects.

I'll just go with transpiling my JS files beforehand like you suggested.
Thanx.


Link to templates does not exists

This link https://adme2epublic.blob.core.windows.net/publicfiles/AMA/VMInsights-AMADA-ArmTemplates-PublicPreview.zip is used for templates but it does not exists. You cannot download them.
actual link is https://aka.ms/vminsights/downloadAMADaVmiArmTemplates which is redirected to the above.

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

ID: 832fdc0f-9b12-ac34-a7fa-16509f757935
Version Independent ID: eb3293e7-91db-2edf-d737-4e8ecc3f0696
Content: Enable VM insights using Resource Manager templates - Azure Monitor
Content Source: articles/azure-monitor/vm/vminsights-enable-resource-manager.md
Service: azure-monitor
Sub-service: virtual-machines
GitHub Login: @bwren
Microsoft Alias: bwren

@slavizh
Thanks for your feedback! We will investigate and update as appropriate.

#reassign: @guywi-ms

Thanks for your dedication to our documentation @slavizh !
The link seems to be working now.
#please-close


The validation error for testing score of rouge .

The model can be trained successful in first epoch. However, it will use validation set to test model performance , which  caused a bug.  the log is as followed.
total number of parameters: 83289940
epoch:   1, loss: 51426.711, time: 2488.591, updates:    10000, accuracy: 27.78
Traceback (most recent call last):
File "/data/mmyin/tools/rouge_test.py", line 33, in
main()
File "/data/mmyin/tools/rouge_test.py", line 27, in main
output = r.convert_and_evaluate()
File "/home/mmyin/anaconda3/lib/python3.6/site-packages/pyrouge-0.1.3-py3.6.egg/pyrouge/Rouge155.py", line 367, in convert_and_evaluate
rouge_output = self.evaluate(system_id, rouge_args)
File "/home/mmyin/anaconda3/lib/python3.6/site-packages/pyrouge-0.1.3-py3.6.egg/pyrouge/Rouge155.py", line 342, in evaluate
rouge_output = check_output(command, env=env).decode("UTF-8")
File "/home/mmyin/anaconda3/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/home/mmyin/anaconda3/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/data/mmyin/ROUGE/RELEASE-1.5.5/ROUGE-1.5.5.pl', '-e', '/data/mmyin/ROUGE/RELEASE-1.5.5/data', '-c', '95', '-2', '-1', '-U', '-r', '1000', '-n', '4', '-w', '1.2', '-a', '-m', '/tmp/tmpyecbrlsm/rouge_conf.xml']' returned non-zero exit status 255.

Does anybody know how to solve ?


Switch groupid to com.oath.cyclops

Rebranding cyclops-react as just cyclops from Oath.
cyclops repo to become cyclops-integration
cyclops-react to become cyclops

Released in M1


Persistent In-Memory Data Storage

Interpreted environments like R and Python's Jupyter notebooks have the advantage of storing large datasets in memory and allowing for code to be modified and re-run without having to re-load the data.
Being compiled and not interpreted, analysis with C++ requires that data be re-loaded from the disk every time a change in the rest of the code occurs, impeding development.
With something like Boost's interprocess library it could be possible to avoid re-loading data from disk in C++.
This could be accomplished by running two scripts: one for data loading, and another for analysis. The data loading script can stay running in the background, and the analysis script can just access a pointer to the shared memory of the data loading script every time it is re compiled instead of re-loading from disk.

PS C:\DEV\vcpkg> .\vcpkg.exe install boost-interprocess boost-interprocess:x64-windows

https://github.com/ianfr/adsl-cpp/commit/74dcf93528935101288fa8004f42c49e4e399711

Using a ramdisk for now https://github.com/ianfr/adsl-cpp/commit/33bda14c9ec9ea24f0496d408f0a33f4d126cea5


Change Underscore

Is an underscore the best convention to use for components? One reason I dislike ERB is because it doesn't play nicely with HTML design. I like to use tags that function like HTML elements when viewed in the browser without going through a server engine.
The problem with Theo's current syntax is this doesn't work very well and you can see the tag written as text on the web page.
Basically this:
<_footer />

Becomes this:

Whereas this:
<theo:footer />

Is rendered gracefully (it is part of the HTMl of the image above).
Just my thoughts, it's your library so feel free to ignore :-)

Hi @matthewblott,
Thanks for your tickets, I will do my best to look into them over the weekend.
The syntax is still getting developed and changed (see https://github.com/loomchild/theo-rails/issues/2), so your insight is valuable.
Could you please share where do you see this strange rendering? I quickly tried to open a simple file containing only <_footer /> and it displayed normally in FF and Chrome. Feel free to also send the entire file that doesn't render correctly.
I don't really like the prefix because it's longer to read when reviewing the code, but if underscore is causing issues, then perhaps it could be optional (e.g. anything that isn't a standard HTML tag will be treated as partial) or a suffix as original.

This is a vanilla HTML file:
<!DOCTYPE html>
<html>
  <head>
    <title>Home</title>
  </head>
  <body>
    <a href%="root_path">Home</a>
    <_footer />
    <theo:footer />
  </body>
</html>

This is how it appears in Chrome based browsers:

Ah, I see what you mean, you don't want the tag to be visible. Thanks for clarification.
Agree it makes sense, since if the tag contains some content e.g. <theo:footer>FOOTER</theo:footer>, the unknown tag will be ignored and content will still be shown.

Since it's a fundamental question, I opened a new ticket describing potential soltions: #5. Let's continue the discussion there.


pkg/trace: remove allocations for stats.Input in process

What does this PR do?
Use an array of objects instead of an array of pointers to avoid allocations for each stats.Input in the Process function.
It's not our largest allocation source but it shows on profiles:

Motivation
Improve performance
Additional Notes
Anything else we should know when reviewing?
Describe your test plan
Write there any instructions and details you may have to test your PR.

This change is super small, it's hard to produce a benchmark that it will affect significantly, but I don't see how it could negatively affect performance. It's replacing several small allocs by a single one and it removes some pointers which will help with the GC scan phase.


Opener always returns "error while opening the inbound connection" after context cancellation

Given the following client:
func cloudeventsClient(idleConnTimeout time.Duration) (cloudevents.Client, error) {
        t := http.DefaultTransport.(*http.Transport)
        t.IdleConnTimeout = idleConnTimeout

        p, err := cehttp.New(cehttp.WithRoundTripper(t))
        if err != nil {
                return nil, fmt.Errorf("creating cehttp.Protocol: %w", err)
        }

        return cloudevents.NewClient(p)
}

And the following code to run a receiver using that client:
err := cli.StartReceiver(ctx, receiveFn)

When ctx get cancelled (upon a normal and expected termination), StartReceiver seems to consistently return the error:
error while opening the inbound connection: context deadline exceeded

https://github.com/cloudevents/sdk-go/blob/f0303ff82cc2951c2dc089f1f87bc4ea9dd6eac9/v2/client/client.go#L242-L248
The default shutdown timeout is 1 min. By looking at my logs, I can confirm the duration between the context cancellation and the error is exactly 1 min:
2020/12/08 11:33:49 Stopped event recorder
2020/12/08 11:34:49 Failure during runtime of CloudEvents handler: error while opening the inbound connection: context deadline exceeded

I need to investigate why the server can not shut down gracefully.

It seems like setting IdleConnTimeout to 5s was causing some harm. Things seem fine after increasing it to something less aggressive (30s).
Closing as a non-issue.


IDASkins change Hex-Rays Decompiler font to Fixedsys in IDA 7.0

In IDA 7.0 its default font is changed to Consolas.
However, while decompiling the binary, the font of the pseudo code is always changed to Fixedsys.
Restarting or re-installing IDA ( #27 ) doesn't resolve the issue.
I think the problem is caused by this line of code
Would you guys fix it ? Thanks

Oh, cool, so HR finally realised that nobody liked Fixedsys. Could you quickly Hex-Edit the string to Consolas and check whether it actually fixes the issue? I don't have decompilers.

Changing Fixedsys to Consolas fixes the issue :)  ( at least it works on my machine )

Wondering why we need to return a constant value under Windows.
Is there any problem if we return another font according to the config file?

What config file are you referring to? The skin manifest? This function obtains the font values set in the IDA settings. If the font wasn't manually changed by the user, the config keys aren't set and we have to fall back to the IDA defaults — which, unless they changed that, happen to be the system default on Unix and Fixedsys/Consolas on Windows. Thus the constant.

Oh I know.....
Now I understand why it is a const value.
Thanks.

Also the size of font is fixed at 10 after restarting, although I have changed the settings before restarting :(


Misleading error message if Xcode Path is wrong.

I spent some time puzzled about this error:
$ bluepill -c config.json
[  INFO  ] This is Bluepill v0.1.0-21-g95fcfd8
[  INFO  ] Running with 4 simulators.
[  INFO  ] Packed tests into 6 bundles
[  INFO  ] Started Simulator 1 (PID 53404).
bp: invalid configuration
	iPhone 6 is not a valid device type.
Use `xcrun simctl list devicetypes` for a list of valid devices.

It turns out that I had the wrong path in my config.json file. Bluepill should at least check that the Xcode path give is valid and not fall through to a misleading error.

Fixed by #64


SocketException when receiving large packets?

Hi,
I just did some stress tests and I found it seems to break down when there are large packets (>10,000 bytes)?
I used the following test code to try to insert 100,000 records to the database:
	    List<string> nums = new List<string>();
	    for (int i = 0; i < 1000; i++)
            {
                  nums.Add($"('{i:D10}')");
            }

            var insert = new SqlCommand($@"INSERT INTO TestTable (Str) VALUES {string.Join(",", nums)};", conn) { CommandTimeout = 0 };

            for (int i = 0; i < 100; i++)
            {
                  insert.ExecuteNonQuery();
            }

It will throw a System.Data.SqlClient.SqlException(inner exception: SocketException ID 10054 "An existing connection was forcibly closed by the remote host") on insert.ExecuteNonQuery();. Could you tell me what's the problem? That code works if I don't use TDSBridge.
Here is the log of TDSBridge:
12:01:20.282551|TDSBridge.Common.Packet.TDSPacket[Header=TDSBridge.Common.Header.TDSHeader[Type=SQLBatch;StatusBitMask=4;LengthIncludingHeader=8000;PayloadSize=7992]]
12:01:20.283552|TDSBridge.Common.Packet.TDSPacket[Header=TDSBridge.Common.Header.TDSHeader[Type=48;StatusBitMask=0;LengthIncludingHeader=12544;PayloadSize=12536]]
12:01:20.285551|TDSBridge.Common.Packet.TDSPacket[Header=TDSBridge.Common.Header.TDSHeader[Type=48;StatusBitMask=0;LengthIncludingHeader=12288;PayloadSize=12280]]
12:01:20.753550|Connection BridgeSQL closed (TDSBridge.Common.SocketCouple[ClientBridgeSocket.RemoteEndPoint=<IP_ADDRESS>:59996, BridgeSQLSocket.RemoteEndPoint=[fe80::6102:841:e0ce:274%10]:1433])
12:01:20.767549|Connection ClientBridge closed (TDSBridge.Common.SocketCouple[ClientBridgeSocket.RemoteEndPoint=<IP_ADDRESS>:59996, BridgeSQLSocket.RemoteEndPoint=[fe80::6102:841:e0ce:274%10]:1433])

It seems to be a classic TCP handling issue and I think I have fixed that by applying a better pattern to ClientBridgeThread().


Can't slide next or previous by clicking on either of inactive slides in center mode - Example from Slider Sync

In previous version of slider - https://github.com/kenwheeler/slick/  We can slide to next or previous simply by clicking the inactive but current slides on either sides of the active and current slide card.
But in the new accessible 360 version, that feature seems not working or removed without any mention anywhere.
See the example of previous - working one here - https://kenwheeler.github.io/slick/ - scroll to "Slider Syncing" example and click on slide card no. 5 and 2 - The slider will slide left or right.
Now check the sample of new accessible 360 slider - https://accessible360.github.io/accessible-slick/  - Scroll to "Slider Syncing" example section and try to click on same slide card no 5 and 2. The slider wont slide anywhere. This seems like an omitted feature without any mention anywhere. Can anyone please comment here or help how to get it back.
Please write back to<EMAIL_ADDRESS>

I have resolved this using added custom logic in JS. But that's completely separate and injected thru a separate script file.


Some errors on master And volumes add suffix to idx/dat data files

Hi,
1.
I was testing weed for 1 hour , I decided to check the status of my master server but it has following error:(still it is working)

Apr  5 13:48:26 weed-master-1 seaweedfs-master[6999]: I0405 13:48:26  6999 masterclient.go:120] master masterClient failed to receive from weed-master-1.s02.test.local:9333: rpc error: code = Unavailable desc = transport is closing
Apr  5 18:46:30 weed-master-1 seaweedfs-master[20745]: W0405 18:46:30 20745 master_grpc_server.go:165] SendHeartbeat.Send response to to weed-volume-003.s02.test.local:8080 rpc error: code = Unavailable desc = transport is closing
Apr  5 18:46:30 weed-master-1 seaweedfs-master[20745]: W0405 18:46:30 20745 master_grpc_server.go:165] SendHeartbeat.Send response to to weed-volume-004.s02.test.local:8080 rpc error: code = Unavailable desc = transport is closing
Apr  5 18:46:34 weed-master-1 seaweedfs-master[20745]: W0405 18:46:34 20745 master_grpc_server.go:165] SendHeartbeat.Send response to to weed-volume-002.s02.test.local:8080 rpc error: code = Unavailable desc = transport is closing
Apr  5 18:46:34 weed-master-1 seaweedfs-master[20745]: W0405 18:46:34 20745 master_grpc_server.go:57] SendHeartbeat.Recv server weed-volume-005.s02.test.local:8080 : rpc error: code = Canceled desc = context canceled
Apr  5 18:46:34 weed-master-1 seaweedfs-master[20745]: W0405 18:46:34 20745 master_grpc_server.go:165] SendHeartbeat.Send response to to weed-volume-001.s02.test.local:8080 rpc error: code = Unavailable desc = transport is closing

and

Apr  5 18:46:34 weed-master-1 seaweedfs-master[20745]: I0405 18:46:34 20745 master_grpc_server.go:29] unregister disconnected volume server weed-volume-001.s02.test.local:8080

Should I be concern about this errors?

I was checking the volume servers , in the directory that I define for data I found some thing weird :
I'm creating collection named: Channel_10 or User_10 and ... but in some collection weed added an additional underline and numbers e.g:

-rw-r--r-- 1 weedfs weedfs 6.4K Apr  5 19:15 Channel_10_109.idx
-rw-r--r-- 1 weedfs weedfs 1.4G Apr  5 19:15 Channel_10_109.dat
-rw-r--r-- 1 weedfs weedfs 125K Apr  5 19:15 MegaGroup_60.idx
-rw-r--r-- 1 weedfs weedfs 148M Apr  5 19:15 MegaGroup_60.dat
-rw-r--r-- 1 weedfs weedfs  14K Apr  5 19:15 User_10_124.idx
-rw-r--r-- 1 weedfs weedfs 2.8G Apr  5 19:15 User_10_124.dat
-rw-r--r-- 1 weedfs weedfs 192K Apr  5 19:15 Channel_33.idx
-rw-r--r-- 1 weedfs weedfs 247M Apr  5 19:15 Channel_33.dat
-rw-r--r-- 1 weedfs weedfs 876K Apr  5 19:15 User_39.idx
-rw-r--r-- 1 weedfs weedfs 2.0G Apr  5 19:15 User_39.dat

Why did weed do this? and if it is a problem , how can I fix it?
weed version:
version 8000GB 2.29 f29ae0d linux amd64

both are fine.

both are fine.
@chrislusf

For some collections, I have "vif" files but for some collections Not,

What is ".vif" files? (I know that .dat is data file and .idx is index and metadata file of our data)

again about previous question, why weed added suffix to some collections, for example  I have "MegaGroup_20_148.vif" that added "_148" to it but for "Channel_32.idx" it doesn't have any suffix,
Why weed added this suffix to some files?

vif means volume information.
In "MegaGroup_20_148.vif", 148 is the volume id. In "Channel_32.idx", 32 is the volume id.


Implement Login screen UI

Fixes #13
Screenshots for the change:

@jogendra is the UI final? Can we try swapping blue and white?

Oh, ok sure.


Updates default configuration to use requests specs

We were trying out suspenders, e.g. suspenders projectname
Then did a scaffold rails g scaffold Book title
Then when running the specs (rspec) we got an error related to the views not rendering.
A good fix is to use requests specs instead of controller specs, they render the views so they test more code
Fixes #1090
Co-Authored-By: Dorian Marié<EMAIL_ADDRESS>

Controller specs are out of fashion with Rails anyway, this change seems like a win to me.

Note that I needed to run bin/webpack-dev-server with a .node-version of 16.15.0.

This pull request is superseded by https://github.com/thoughtbot/suspenders/pull/1094 because I use my fork


Unable to start vimiv with "-f" flag

Incoming terminal output
  File "/usr/lib/python3.6/site-packages/vimiv/app.py", line 183, in activate_vimiv
    self._init_widgets()
  File "/usr/lib/python3.6/site-packages/vimiv/app.py", line 373, in _init_widgets
    self["window"] = Window(self)
  File "/usr/lib/python3.6/site-packages/vimiv/window.py", line 41, in __init__
    self.toggle_fullscreen()
  File "/usr/lib/python3.6/site-packages/vimiv/window.py", line 56, in toggle_fullscreen
    if self.get_window().get_state() & Gdk.WindowState.FULLSCREEN:
AttributeError: 'NoneType' object has no attribute 'get_state'```

Running this from Manjaro 17.1 XFCE

Can reproduce it on arch, thanks for reporting.
Seems to be rather simple to fix but it looks like more things broke. Will have to investigate a bit further and possibly release another follow-up.

Should be fixed with 77d4a1a9eb8ab35af0872d8b953f86295335460f, would you mind testing?

Sorry, I don't know much about compiling from source.

You could simply install the latest vimiv-git package from the AUR.

Works like a charm! Thanks!

Perfect :smile:


This project is not maintained anymore. Switch to https://github.com/knuckleswtf/scribe

I lost some time working with this obsolete project because it's still promoted here and there. Would be helpful to indicate it's no longer maintained.
This is a maintained fork of it: https://github.com/knuckleswtf/scribe

Agree on this, I just integrated this in a project and then found out Scribe should be used now by reading an issue. Maybe explain in the readme.md?

For anyone wondering on where the 'depreciation notice' is, well the closest thing to it:
https://github.com/mpociot/laravel-apidoc-generator/issues/772

Actually, https://github.com/mpociot/laravel-apidoc-generator/issues/750


Optionaly fail when gpu_id is set to invalid value

I need a way to find out how many GPUs are available in the system. The current behaviour is that XGBoost just replaces invalid gpu IDs with a valid one. I would like to add a param that allows me to switch this off.

Codecov Report

Merging #6342 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #6342   +/-   ##
=======================================
  Coverage   81.22%   81.22%
=======================================
  Files          12       12
  Lines        3425     3425
=======================================
  Hits         2782     2782
  Misses        643      643

Continue to review full report at Codecov.

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

That did cross my mind as well, but it seemed reasonable to want xgboost to fail when gpu_id is invalid. You think it is not?

That did cross my mind as well, but it seemed reasonable to want xgboost to fail when gpu_id is invalid.

I think it makes perfect sense, my question is mostly out of curiosity.  I used to throw the error directly, but the Python pickle file generated on GPU machine may be later loaded on a CPU only machine or machine with fewer GPUs.  So we added the wrapping for gpu_id as a workaround for these corners.

@trivialfis please let me know if there is anything I can do to help get this done

test added

@trivialfis Should this be part of 1.3.0 release?

Yes if there's no conflict.


header_only=True adds bzip2 and zlib dependency

Is it indented that header_only=True adds a bzip2 and zlib dependency?
I want to remove the dependency. Adding Boost:without_iostreams=True works but there is no prebuilt package available (because all options are stripped when the header_only package is built) although it should be identical to the header_only-package.

Would be great if you can help with a PR, maintaining myself several packages is too hard.

Will submit a PR!


Concision and paragraph breaks in README.md

"as you can see" -> "as shown"
"when you update your database to next version" -> "when you update your database to the next version"
Changed migration-code dependency lines to their own paragraph, as they seem to be a seperate issue than the rest in the paragraph

👍

Did you create a throw-away account for fixing people's grammar 😄

Kind of lmao. Need to make documentation corrections for an assignment


redshift unload lineage cannot output mcp

Describe the bug
There is an issue with Redshift ingestion; when S3 is used as the downstream (include_unload_lineage), it cannot produce MCP outputs.
Screenshots
There is a bug with self.aggregator._is_temp_table ;

s3://xxx is not in all_tables
Incorrect platform
so we cannot output the unload lineage mcp.

https://github.com/datahub-project/datahub/blob/f147b51fc8113864d3d59268381882dd7ea5d7e4/metadata-ingestion/src/datahub/ingestion/source/redshift/lineage_v2.py#L97-L116
https://github.com/datahub-project/datahub/blob/f147b51fc8113864d3d59268381882dd7ea5d7e4/metadata-ingestion/src/datahub/sql_parsing/sql_parsing_aggregator.py#L514-L524
https://github.com/datahub-project/datahub/blob/f147b51fc8113864d3d59268381882dd7ea5d7e4/metadata-ingestion/src/datahub/sql_parsing/sql_parsing_aggregator.py#L1112-L1117
Desktop (please complete the following information):

Version [0.14.1]

Pending submission of this PR


Including package which is already included by another as dependency

Xmake Version
xmake v2.7.9+dev.c0d12baa5
Operating System Version and Architecture
Windows 11 22H2 64-bit
Describe Bug
When user tries to include package other package already has set as dependency, build may fail on linking step due to mixed symbols in case of custom configuration.
Good example is SDL2 and ImGui with SDL2 config option. Shown in example.
This installs SDL2 for ImGui in static and release mode (believe it is release mode based on library name from log at least), while I already use SDL2 in my program in shared and debug mode.
This causes symbols to clash.
I wanted to try to use backends installed by xmake instead of manually keeping them up-to-date, but I can't because of this issue.
Expected Behavior
I would expect that if user includes package some other package is using as dependency, my package include takes precedence and include inside package is ignored.
Or I would expect dependency to otherwise inherit the properties (if I want to build debug, let dependency be built in debug, etc.)
Maybe this could resolve the clash also.
Project Configuration
Don't think vs_runtime has anything to do with this, believe it is combination of shared and debug causing troubles with dependencies... But this should be equivalent to config causing troubles.
add_requires("libsdl 2.28.1", { configs = { shared = true, debug = true, vs_runtime = "MDd" } })

add_requires("imgui v1.89.7-docking", { configs = { sdl2 = true, shared = false, debug = true, vs_runtime = "MDd" } })

Additional Information and Error Logs
Error log produced by above config
4>EXEC : error : SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_CreateRenderer already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_CreateWindow already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_DestroyRenderer already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_DestroyWindow already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_GetBasePath already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_GetDisplayDPI already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_GetError already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_GetPrefPath already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_GetRendererInfo already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_GetWindowID already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_Init already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_PollEvent already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_Quit already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_RenderClear already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_RenderPresent already defined in SDL2d.lib(SDL2d.dll)
4>SDL2-static.lib(SDL_dynapi.obj) : error LNK2005: SDL_SetRenderDrawColor already defined in SDL2d.lib(SDL2d.dll)

This is because you required "libsdl 2.28.1" as shared and imgui required libsdl as static.
While I agree we should have a better solution for this, you can just not require libsdl (as it's already required by imgui) and configure it using add_requiresconfs:
add_requires("libsdl 2.28.1", { configs = { shared = true, debug = true, vs_runtime = "MDd" } })

add_requires("imgui v1.89.7-docking", { configs = { sdl2 = true, shared = false, debug = true, vs_runtime = "MDd" } })

=>
add_requires("imgui v1.89.7-docking", { configs = { sdl2 = true, shared = false, debug = true, vs_runtime = "MDd" } })
add_requireconfs("imgui.libsdl", { configs = { shared = true, debug = true, vs_runtime = "MDd" }})

(btw you don't have to set vs_runtime for each package, just call set_runtimes("MDd") once and every package will automatically inherit it)

I don't want to statically link to SDL2 though, so I guess I have to stick to manual backends inclusion for now.
They themselves mention it is better to use SDL2 in shared mode. It has various advantages in regards to distributing apps also.
https://github.com/libsdl-org/SDL/blob/main/docs/README-dynapi.md

Don't know if this answer basically means we won't fix it and this can be closed or if this should be kept open now so feel free to close it if you want. I guess I got my answer in regards as to what to do for now 🙇

I don't want to statically link to SDL2 though, so I guess I have to stick to manual backends inclusion for now.

You don't have to, add_requireconfs set imgui to use libsdl in shared

How would that look please? Never tried to set inner dependency config 😁 Didn't even know you can.

Did you read my message? I gave you a code doing that

Oh, I read it but I somehow didnt see it 🤦♂ My bad... Thank you 🙇


Adopt compact normal forms from GHC HEAD?

Preliminary support for compact regions was added to GHC on the 15 July. It is based on the approach presented in "Efficient Communication and Collection with Compact Normal Forms", Edward Z. Yang et.al. from ICFP 2015. The top level API is in Data.Compact: https://github.com/ghc/ghc/blob/cf989ffe490c146be4ed0fd7e0c00d3ff8fe1453/libraries/compact/Data/Compact.hs
Might this store library adopt compact normal forms support at some point?

That would be a really cool enhancement!  Certainly worth consideration once it is in a released GHC version!

This is the currently proposed API for the compact NF library, hopefully to coincide with GHC 8.2:
http://ezyang.com/compact/

Link became http://ezyang.com/compact.html now. The GHC 8.2 API is a bit different, see https://downloads.haskell.org/~ghc/master/libraries/html/compact/index.html.

I've looked into compact normal forms a bit, cool stuff! One issue with it is that they only work for serialization between identical executables, so not really the usecase store is intended for.


carousel switching !

I have a problem with navigator and carousel. I have my initialRoute to be a component which is an carousel with two pages in it. Now whenever I start the app, the initial route loads up and it start to flip on continuously from first page to next and vice versa ? is this the problem of navigator or carousel ?

that's the default behavior, try animate={false}, I know.. not very straightforward.


add new parameter to skip 401 handling

A while ago I changed the chaise $http usage to ERMrest.http. This caused issues related to 401 handling.
To summarize the issue, In http.js if a request throws 401, we're going to set a flag and any request after that won't be fired until chaise tells http.js that the user has logged in and can continue. This caused issues since after 401, chaise will send a request to webauthn in order to get the actual login link.
In this PR, I fixed this by adding a new flag. If this flag is present, we're going to skip the 401 handling. So any chaise authen request should send this flag. But I'm still not sure about the following two:

What's the best name for this flag? I currently used allowUnauthorized to be aligned with the name that we have chosen for the 401 handling callback (setHttpUnauthorizedFn). But maybe skipUnauthorized would be a better name?

While writing the test cases I realized that ERMrest.http is not wrapping the http errors in appropriate ermrestjs error objects. It will return the plain http response that we're getting from the server. It makes sense since the whole purpose of http.js was to be the same as Angularjs's $http. But this means that any where that we're using the ERMrest.http, in the catch-block, we have to call the ERMrest.responseToError function to repaint these http errors. And that's how we've done it in ermerestjs. However since now chaise is going to use the ERMrest.http directly, I don't think it would be appropriate for chaise to always call this function. Maybe by default I should call the responseToError? Although this won't work for all the cases because ERMrest.responseToError  has evolved and we're passing different parameters based on the context. So maybe it's fine that chaise has to call the ERMrest.responseToError?

@jrchudy I created this PR so I can move on to the next task. I didn't add you as a reviewer yet since I think we should discuss this next week with @hongsudt.

We discussed about the flag name and got to the discussion of authorization vs. authentication. And realized even though the 401 http error message is "unauthorized", unauthenticated makes more sense for this 401 error handling. But in the end I didn't want to introduce a new terminology and to avoid deviating from the name that we've given to the error object (UnauthroizedError), I decided to be very speficic about the naming and use the name skipHTTP401Handling. I also renamed the setHttpUnauthorizedFn function to setHTTP401Handler.
And about the second point that I made in the description, we decided to not change the ERMrest.http and any where else that is going to use this http client, should call the ERMrest. responseToError.


Please, add dotfiler into the list

It is a package manager for dotfiles.
https://github.com/svetlyak40wt/dotfiler

Thank you!

Thanks for the suggestion


Merge upstream

Sync-up with upstream to fetch the new version apiextensions.k8s.io/v1

/assign @songleo


[Feature Request] DS-1000

I wanted to reach out to you regarding a potential enhancement that I believe would greatly benefit the users of this project. I was wondering if you have any plans to integrate support for the DS-1000 system in the near future?
The DS-1000 has gained significant popularity in recent times due to its advanced capabilities and seamless integration with various tools and frameworks. By incorporating DS-1000 support into this project, I believe it would open up a whole new range of possibilities for users and expand the project's versatility.

Thank you for your answer, I will close this issue.


Extra logs polluting the operator.

Describe the bug
Extra logs polluting the operator.
2024-05-16T20:57:09.247Z [error] 92c246a1-9f89-42f3-9f47-bd22a233c242 AlertConfigurationWriter.java:279 [application-pekko.actor.default-dispatcher-113] com.yugabyte.yw.common.alerts.AlertConfigurationWriter Error syncing alert definition configs
java.lang.RuntimeException: Failed to perform reload on prometheus instance http://<IP_ADDRESS>:9090/-/reload

To Reproduce
Deploy the operator
Expected behavior
Alertmanager logs should not be printed when it is not being used.

Fixed with the latest drop of code.


Callback support for notifications when serializing/deserializing

Why? Because fsObjectProcessor does not have access to non-public members of the type.

Implemented in 0a396d9bbfcc34702b673ec720b37c05515391c2


Timing off?

I have this code in my jupyter notebook:
from viztracer import VizTracer
tracer = VizTracer()
tracer.start()

def go():
    for i in range(1000):
        widgets.Layout()
go()
tracer.stop()
tracer.save()

This results in:

Where go gives me:

Start | 13,000 ns-- | --
Wall Duration | 4,297,617,000 ns
Self Time | 3,553,028,000 ns

As if most time is spend in go itself, and only 700msec in the constructor of Button (and the rest), which i find highly unlikely.
However, if I select one of the constructor calls:

It shows it takes 3ms, so 1000 calls should take ~3seconds. It seems like this does not add up.  Is maybe something like systemtime not taken into account? Or am is making a mistake?

If you take a look at the first graph, you will notice that there's a big gap before the dense log. That's because, due to the nature of VizTracer, it can't keep record of everything that ever happened with limited memory and disk space. Unlike the "profilers" like cProfile, which only need to record the count of each function, VizTracer needs to record every single entry and exit of each function.
VizTracer used a circular buffer to record the entries, and it's just wrapped. (I think there should be a notice in the command line console). The default buffer size is 1 million entries(https://viztracer.readthedocs.io/en/latest/basic_usage.html#circular-buffer-size), you can change it to a bigger size. However, even if you have a huge disk space, Chrome is not able to deal with a report with too many entries(~ 10 million on 16G RAM according to my experience). So the incorrect timing data is because of the missing data during the time.
I'm not sure what's your purpose here, I would assume mainly for entertaining(because unlike some other statistical profilers that require multiple runs for a function to be accurate, VizTracer only needs one), but if you do need something like this, to construct an object 100 times and try to check the CPU/Wall time, you should try filters.
You can't have all the details for all the functions with limited resource, so maybe you don't need the details? --max_stack_depth would be my first recommendation, because it's straightforward and is designed for cases like this. You can always do --ignore_c_function to strip off log of builtin calls which are normally the branch detail of the project.
If you have some actual goals to accomplish here, please do not hesitate to comment here :)

Thanks, indeed when I just do 10 or 100 I don't get that warning and it all adds up. The reason I was doing 1000 was to compare it to a normal run.

Yeah you can still do 1000 as long as you use some proper filters to limit each construct record under 1000. You'll get a ballpark, not the every details. And it's probably helpful for the overhead.
Anyway, if you are satisfied with the answer, feel free to close the issue :)

Thanks a lot, excellent tool!


Hang in varTRAM test on UCX builds with oversubscription

varTRAM test sometimes hangs or exceeds the time limit on GitHub CI UCX builds.
This might have been fixed with the recent update to UCX 1.8.1, but should still look into it and decrease varTRAM test's execution time if it takes too long.

UCX 1.8.1 did not fix the issue. The hang still occurs in the UCX CI sometimes.

Error log:
make -C varTRAM test OPTS='-g -optimize -production' TESTOPTS=''
make[2]: Entering directory '/home/runner/work/charm/charm/ucx-linux-x86_64-ompipmix/tests/charm++/varTRAM'
../../../bin/charmc -g -optimize -production  vartest.ci
../../../bin/charmc -g -optimize -production  -c vartest.C
../../../bin/charmc -g -optimize -production  -language charm++ -o vartest vartest.o
../../../bin/testrun  ./vartest +p4 8 100 100

Running on 4 processors:  ./vartest 8 100 100
charmrun>  /usr/bin/setarch x86_64 -R  mpirun -np 4  ./vartest 8 100 100
Charm++> Running in non-SMP mode: 4 processes (PEs)
Converse/Charm++ Commit ID: v6.11.0-devel-327-g3c68eb6fd
Isomalloc> Synchronized global address space.
CharmLB> Load balancer assumes all CPUs are same.
Charm++> Running on 1 hosts (1 sockets x 2 cores x 1 PUs = 2-way SMP)
Charm++> cpu topology info is gathered in 0.034 seconds.
Time : 111575976 us
##[error]The operation was canceled.

I think the hang occurs when the 4 processes are forced to map to 2 cores (as in the GitHub CI virtual machine).
On LLNL Lassen:
choi18@lassen2:varTRAM$ jsrun -n4 -a1 -c1 ./vartest 8 1000 100 +pemap L0,1
Charm++> Running in non-SMP mode: 4 processes (PEs)
Converse/Charm++ Commit ID: v6.11.0-devel-326-gd49980552
Isomalloc> Synchronized global address space.
CharmLB> Load balancer assumes all CPUs are same.
Charm++> cpu affinity enabled.
Charm++> cpuaffinity PE-core map (logical indices): 0,1
Charm++> Running on 1 hosts (2 sockets x 20 cores x 4 PUs = 160-way SMP)
Charm++> cpu topology info is gathered in 0.082 seconds.
Time : 579870845 us
(hangs)

Looks like the only necessary change is to change the test to use +p2 instead of +p4.
Will be AFK for a couple of hours, will submit a patch afterwards (if @evan-charmworks would like to do so you're more than welcome to).

That should be sufficient to resolve the CI hang, but doesn't this indicate a problem that still needs to be fixed? Oversubscription should cause slowdowns but not indefinite hangs.

True, will keep this issue open until the hang with oversubscription is resolved.

Closing as we are now transitioning from TRAM to Hypercomm (https://github.com/jszaday/hypercomm-aggregation).


Unable to tune Pluto CNN Headlines channel

I have been unable to tune the Pluto CNN Headlines channel for some time now. Most or all of my other Pluto channels work. And I am able to tune this channel directly on the Pluto website. Error from Channels log below.

2024/02/21 17:40:40.444343 [ERR] Could not start stream for M3U-PlutoTV ch9563 CNN HEADLINES: M3U: Could not fetch playlist from cfd-v4-service-channel-stitcher-use1-1.prd.pluto.tv: GET: https://cfd-v4-service-channel-stitcher-use1-1.prd.pluto.tv/stitch/hls/channel/5421f71da6af422839419cb3/master.m3u8?advertisingId=&appName=web&appStoreUrl=&appVersion=unknown&architecture=&buildVersion=&clientTime=0&deviceDNT=0&deviceId=3d45a5dd-d10a-11ee-ae63-0011329a6dcf&deviceMake=Chrome&deviceModel=web&deviceType=web&deviceVersion=unknown&includeExtendedEvents=false&serverSideAds=true&sid=56ac3835-5910-4b61-9802-4a9c54357907&userId=: 401 Unauthorized

Looking at the JS code, there isn't anything going on there that could cause that. It appears that PlutoTV is sending through a DRM'd channel in their API.

If I click on that link in a browser, it returns:   Blacklisted Channel Via V1 HLS


styled-components in React Native render error

Version
2.1.2
Reproduction
import React, { Component } from 'react';
import styled from 'styled-components/native'
const logoWrapper = styled.View`
  flex-grow: 1;
  justify-content: center;
  align-items: center;
`;
const logoImage = styled.Image`
  width: 100;
  height: 120;
`;
export default class Logo extends Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <logoWrapper>
        <logoImage source={this.props.source} />
      </logoWrapper>
    );
  }
}

Steps to reproduce
I use the styled-components for React Native,
if i change the logoWrapper to View and change the logoImage to Image, it works
Expected Behavior
no error
Actual Behavior
Expected a component class got [object Object]

is my fault ,sorry

I change component names with a capital letters

@qzm btw try the Stack Overflow or Spectrum before you open an issue first btw :smile:
In general the rule of thumb is: Is the title / problem very vague? Do you think it is not a library bug? Then it might be a question, not an issue. Of course you can open an issue as a last resort, but since you figured it out on your own, Spectrum might be a good choice for smaller questions :wink: Cheers!


Rename stats command to wlanpi-stats

Done
https://github.com/WLAN-Pi/wlanpi-common/commit/62ed272b0cd4705a451de0d05270380a3fe62c4d


Statsd process per client host

We are thinking of running statsd on every client host in the attempt to work past UPD packet loss issues we have faced in both running a single statsd host which all clients use and with using the cluster-proxy (which just seemed to push the packet loss to the proxy).
That said, are there any best practices when moving to a statsd per host model that we need to pay special attention to?  For example it would seem mandatory to prefix metrics with the host name to avoid metric collisions between the multiple hosts of the same application (cluster) emitting the same metric.
Any pointers are appreciated.

afaik making sure you prefix the stats namespaces is the only big thing. We are still running StatsD centrally so I can't really talk more about this.


Technical Questions

Hello, thanks so much for your work.
I have a few questions.

For two person training, are you using the same approach as CTR-GCN where the tensor data for person 2 in a single person action is just the repeated tensor (or zero padding?). Have you tried both the zero padding approach and the duplicate approach (on ntu 120 in particular)?
I notice there are more samples after pre-processing in your download links than in the resulting data from the pre-processing script in CTR-GCN. It seems that in CTR-GCN they discarded more training/testing samples, do you have any thoughts on what the difference is? I have carefully gone over the three pre-processing scripts get_raw_denoised_data, get_raw_skes_data, and seq_transformation. Also, did you center the starting frame according to the position of actor 1?
For distributed training, are you using sync batch normalization?
In your training loop, have you set torch.backends.cudnn.deterministic = False or True? I notice a huge speedup when its set to False in my local experiments, so if there is no performance cost I'd like to keep it as False.
For the Cosine Annealing learning rate scheduler, what does the by_epoch=False argument do? I do not see this argument in the PyTorch docs, maybe an older version of PyTorch had a different set of input arguments?

Again, thanks for your work.

We follow CTR-GCN and use zero-padding. Zero padding is better than duplicate.
I'm not sure. In my pre-processing script I do not discard any training / testing samples (We should not do that). I do center the starting frame according to the center of actor 1, but this is conducted in the data pipeline (with component PreNormalize3D), not in pre-processing.
I do not use sync bn.
By default, it's set to False.
No, it's implemented in mmcv. by_epoch=False provides a smooth lr curve (lr slowly changes iter by iter).

Thanks.
You can close the issue now if you wish.


Fix for issue #507: NLog optional or empty mail recipient

Changes summary:

Ignore empty recipient values by specifying the StringSplitOptions.RemoveEmptyEntries option.
Write to internal logger if email sending failed.
Add RequiredParameterAttribute to the SmtpServer property - it should be required according to the documentation. Breaking change?
Throw NLogRuntimeException if one of the required parameters (From, To, SmtpServer) becomes empty after rendering. Add relevant unit tests to verify the expected behaviour.
Also added some negative unit tests for MailTarget in the first commit.

Looks very good and thorough. I'll merge soon

Meaning as soon as I figured why appveyor doesn't report failing tests to Github


owner, processor(cdc): fix reporting ErrPeerMessageClientClosed to user erroneously

This is a bug fix on unreleased code.

What problem does this PR solve?
Close #3972

This error should not be directly reported to the user since it may not represent an actual failure.

What is changed and how it works?

Do not report ErrPeerMessageClientClosed

Check List
Tests

Unit test

Release note
None

/run-leak-tests

/run-leak-tests

/run-verify

/merge

/run-integration-tests

/run-kafka-integration-test

/run-integration-tests

/run-kafka-integration-test

/run-integration-tests

/run-kafka-integration-test

/run-kafka-integration-test /tidb=pr/30773
/run-integration-tests /tidb=pr/30773
/run-leak-test

/run-integration-tests /tidb=pr/30773

/run-integration-tests


Downloading crates.io-index repository failed: GitError(Error { code: -1, klass: 16, message: "the server did not provide a certificate" })

I get this error when fetching the crates.io index. I didn't change the default configuration at all except disabling Rustup sync (so I could get to this error faster).

Can you try again with the latest version (1.0.7)? I've updated the dependencies and that seems to have fixed it for me.

Seems to work, thanks


Deployment to Heroku - Application Error despite connection with MongoLab

Hi Sahat.
Thanks for making available such an amazing boilerplate for Nodejs Applications.
I have set up the project on my local machine (which works perfectly) and deployed to Heroku as well. However, the heroku deployment fails even though I have MongoLab set up with the MONGOLAB_URI pointing to the db connection string on my MongoLab account.
Still, I get an application error each time I attempt to access the application.
What could I be doing wrong?
Looking forward to your response.
Thanks.

Works fine now.
Here's what I did:

Remove db connection info from secrets.js (As Sahat advised in the code comments)
in app.js, use process.env.MONGOLAB_URI in places where db connection is required e.g. Mongoose.Connect and MongoStore options.
Deploy again to heroku.

Thanks for this contribution to the Node community, @sahat!


Show collection types

Current version of ClassExplorer does not show collection types. For example, having
Property TestProp As list Of %Numeric;

This gives the next result:

It should show at least that the type is list of %Numeric.

All right, 2020 is almost here. Done! Added in v1.21.3.


Update tar 6.1.11 for security vulnerability issue

@pradnya-orchestral The tar dependency wasn't in the original package.json. Do you know why?


Build AoT is not working with Could not resolve ngx-modialog/plugins/bootstrap with latest Angular 4 version

IMPORTANT: Please provide a sample using: http://plnkr.co/edit/lV7zsw7Yqossgs9JOfQU?p=preview

I'm submitting a ...
[X] bug report
[ ] feature request
[ ] question about the decisions made in the repository

What is the current behavior?
When I do run AoT build, the build fails, getting error:

Starting compilation using the angular compiler.
Angular compilation done, starting webpack bundling.
Error: Error encountered resolving symbol values statically. Could not resolve ngx-modialog/plugins/bootstrap

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
https://plnkr.co or similar (you can use one of the templates above as a starting point).

Simply:
Install ngx-modialog to angular project and try to build it with AoT, try use this starter:

https://github.com/AngularClass/angular-starter then run npm install
npm install ngx-modialog --save
try to run npm run build:aot:prod.

What is the expected behavior?
To build!

Please tell us about your environment:

Angular version: 4.4.4
Node 8.6
npm 5.2
Browser: [all ]

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc):

Starting compilation using the angular compiler.
Angular compilation done, starting webpack bundling.
Error: Error encountered resolving symbol values statically. Could not resolve ngx-modialog/plugins/bootstrap relative to D:/Sources/xxxxxxxxxx/providers.ts.,

This is caused by TypeScript 2.5.3. If you go back to 2.5.1, it will work.
I am not sure what the actual  cause is.

@achimha wow thanks, really It is worked, I rolled back to 2.5.2 and worked.

Now find out why please :smile: I have had an half eye on the Typescript issue tracker but not seen anything that would point to a bug there.

go back to Typescript 2.5.1 solved the problem to me, thanks achimba

@achimha If I were now I would be opened this for Typescript 🔨

I've run into this issue again, this time I don't find an easy solution. Going back to TypeScript 2.5.2 or even the officially supported 2.3.4 does not cure it. Difference is that I used yarn to get the dependencies.
Something wrong here...

I'm overloaded with fixes and adaption to the new compiler in angular 5
Lots of my libs will not compile due to the change and how I create libraries.
So if someone can dig deep here it will be great!
Thanks

Hi,
There is a new version, 5, that matches angular 5.
Can you try the new version and update if this persists?
Also, while working on version 5 i've noticed that it is important to use the supported TS version and not a greater one, this is mandatory when compiling libraries but I guess some edge cases will also pop up on app bundling.

Angular 5.1.2 and angular-cli 1.6.2 default to typescript 2.5.x which is 2.5.3 as of today. This means that we run into this error. With typescript 2.5.1 I run into another build error.
With typescript 2.6.2, there are no compilation errors but it is not supported.

@achimha, If I use TypeScript 2.5.3 with Angular CLI 5.1.2, I get the error<EMAIL_ADDRESS>requires<EMAIL_ADDRESS><2.5.0' but 2.5.3 was found instead.
Are you sure that TypeScript 2.5.3 is supported with Angular 5.2.1?

Update
Using Angular 5.1.2 and TypeScript 2.5.3, I'm able to compile with --aot.
However, I get this runtime error on the page that's supposed to have Modal injected into my constructor:
core.js:1427 ERROR Error: Uncaught (in promise): Error: StaticInjectorError[OverlayRenderer]:
  StaticInjectorError[OverlayRenderer]:
    NullInjectorError: No provider for OverlayRenderer!


(Core) Speed up PR validation on windows

We're running up against build timeout on Windows and it's getting in the way of team productivity.
This change does the following on Windows PR validation:

Disable docusaurus build
Disable formatting
Disable linting

All of these will still be checked on Linux, where the build is currently 2X as fast, and none of them are likely to find a real Windows-specific issue in the product.
This change also disables the redundant regen-ref-docs step that is already performed during website build.
Devs can also skip the slow docusaurus build on their machines by setting environment variable TYPESPEC_SKIP_DOCUSAURUS_BUILD=true.

Time is down from 22 minutes to 13 minutes end-to-end.


review / refresh documentation links (and more?)

The examples left a strongly negative impression for at least one person expecting doc that's beyond the speculation stage. See http://www.perlmonks.org/?node_id=1163279 for the unfortunate impact of the first example in the first category. I've fixed that particular example but I'm filing this issue with the intent we review and refresh at least the documentation links in all examples (and perhaps review/refresh more as we go? please comment here if you've thought of something worth doing at the same time).

That example shouldn't point at the design/spec pages  but rather at
http://docs.perl6.org/language/operators#Cross_Operators.
Other refs should also be fixed in
categories/best-of-rosettacode/24-game.pl
categories/best-of-rosettacode/ackermann-function.pl
categories/best-of-rosettacode/arbitrary-precision-integers.pl
categories/best-of-rosettacode/balanced-brackets.pl
categories/best-of-rosettacode/last-fridays-of-year.pl
categories/other/combinations.pl
I can fix this in a few hours times if it still needs doing...
S
On 22 May 2016 at 22:06, raiph<EMAIL_ADDRESS>wrote:

The examples left a strongly negative impression for at least one person
expecting doc that's beyond the speculation stage. See
http://www.perlmonks.org/?node_id=1163279 for the unfortunate impact of
the first example in the first category. I've fixed that particular example
but I'm filing this issue with the intent we review and refresh at least
the documentation links in all examples (and perhaps review/refresh more as
we go? please comment here if you've thought of something worth doing at
the same time).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/perl6/perl6-examples/issues/44

--
4096R/EA75174B Steve Mynott<EMAIL_ADDRESS>

I've updated 100-doors, 24-game and ackermann-function. I didn't see anything to update for a couple of the files you listed so I've decided to pause; maybe I'm missing some other stuff that needs to change?

Thanks! I altered a few more links and removed a broken link.
I think this can probably be closed.

Thanks. :)


Unable to set hotkeys to space bar

I’m encountering an issue while trying to assign the spacebar as the “select” hotkey in the settings of the Various Complements plugin. Despite trying multiple keycode combinations for the spacebar on a Mac, the plugin doesn’t recognize the input. The spacebar is not being accepted as a valid input for the “select” hotkey, despite trying different keycodes.
•	Is assigning the spacebar as a hotkey supported by the plugin?
•	If yes, what is the correct keycode for the spacebar on a Mac?

@TarjinderSingh
I do not have a Mac environment, so I cannot check the spacebar. However, the value that should be input is the string displayed in 'event.key' when the spacebar is pressed on the website https://www.toptal.com/developers/keycode. If nothing is displayed or there is no response, it is likely that it is not supported.

@tadashi-aikawa Thank you for your prompt reply! For the space bar, I see this (blank space) code. I tried putting it into the Settings, but it doesn't work. I also tried event.code and the other things in event.dump, and it didn't seem to work. I guess it's currently not supported then?

Is there a way to put in keycodes instead?

When pressing the space key on Windows, it also displays as {blank space}. Since the space key cannot be assigned to any key, assigning the spacebar is not supported.


Beginner-friendly syntax in decodeJsonTuple

This is just different syntax that's functionally equivalent. It is covered by, and passes, existing quickCheck tests.
Motivation for this change is that I'm planning on pointing readers of Ch10 (rewrite targeting argonaut in-progress) to decodeJsonTuple for guidance on writing their own DecodeJson instances in one of the exercises, and I'd like this library example to be as easy as possible for beginners to grok.
This is an extension of #75.

Thanks!

I actually think lift2 is way weirder (in an idiomatic sense at least) than the f <$> x <*> y pattern. I've never used lift2, and very rarely see it used.

I'm not opposed to reverting that component of this change.
The lift# functions get some decent coverage in the book.
If we don't consider that an idiomatic way to write PS, then I think we should eliminate that section.
I'm wondering if the same should be said of ado notation, which was another option in place of lift2.

I'm happy with whatever for the implementation -- I just found it odd that tuples encode via arrays and decode via lists, and would prefer it to encode / decode to the same type.


Update Hidden Properties documentation example

These examples on the documentation where not clear and also didn't have valid syntax.

Thank you!


[firebase_dynamic_links] Allow FDL plugin to be registered without an activity

Some apps do not have an activity available when they register plugins. We should still register the plugin and leave it up to the intent listener to grab the latest intent.

@bparrishMines Ping for a quick review. This change is already made internally since it was breaking a team. We need to submit it upstream asap. Thanks!


Improving test suite

Some tests were sorting the lists when the original order was important. Sorts were removed for these.

Codecov Report

Merging #8 (b203a43) into main (047eca6) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main        #8   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           14        14
  Lines          527       526    -1
=========================================
- Hits           527       526    -1

Impacted Files
Coverage Δ

meilisearch_python_async/index.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


Just a queston about source addresses

Hi, I'm unable to find what ip addr will be used to fetch the urls, is there a way to setup a switch between ip addresses using this server to avoid Payment required issues ? Thanks.

It will use whatever IP the server is configured to use (currently it runs on Google App Engine). If you need to use an specific IP you'll need to run the server yourself.


Fields that only resemble dates are replaced with the current date and time

What happened?
Dataview is a bit too eager to convert field values that only look like dates into dates, and if the conversion fails then it replaces those values with a date and time close to current (seems to be equivalent to date(now)). The expected behaviour is that, if attempted conversion to a date fails, the field is left as a string.
DQL
test:: 4237-14-73
=this.test
JS
No response
Dataview Version
0.4.20
Obsidian Version
0.12.19
OS
Windows

That's pretty weird behavior; I guess that's what Luxon does if it is given a nonsensical day/year/etc.


Weekly digest includes published drafts

The current weekly digest includes all the modules that were draft at some point.
This means there's a slight query that needs to be updated to make sure it's only those that are not yet published are included.

Never mind I'm backlogged and it's a duplicate of #780! :sweat_smile:

No worries! 😄


marshal

Does this package have an support for encoding? Or only decoding

hi, @89z
I'm sorry for the late response.
The protobuf_decoder only decodes.
protobuf encodes with a proto file, and typically decoded based on a proto files
When you don't have proto files, and need to parse protobuf binary data.
protobuf_decoder will be usefull
The protobuf_decoder is a library where you can analyze content without a proto file.


Docker: Keystore resets on restart

Hi,
I am trying to use s3 backups in opensearch (Docker compose, plain compose, no swarm), for that I need to store properties in the keystore. That all works, but whenever you restart the container the opensearch.keystore is reset, which means the snapshot credentials are gone.
I could mount /usr/share/opensearch/config, although this would mean you have to put all necessary files ready in that mount, eg. jvm.options.
These are my compose volumes
    volumes:
      - /var/opensearch/data:/usr/share/opensearch/data
      - ./certs/root-ca.pem:/usr/share/opensearch/config/root-ca.pem
      - ./certs/node.pem:/usr/share/opensearch/config/node.pem
      - ./certs/node-key.pem:/usr/share/opensearch/config/node-key.pem
      - ./certs/admin.pem:/usr/share/opensearch/config/admin.pem
      - ./certs/admin-key.pem:/usr/share/opensearch/config/admin-key.pem
      - ./config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml:rw
      - ./security:/usr/share/opensearch/plugins/opensearch-security/securityconfig

Is there a way to mount the keystore to make it permanent? Or a good template to mount (with all files needed to boot up).
Or am I missing some best practice or some elaborate way to store these credentials in docker?
Thanks in advance.

You are likely setting the keystore on a running container, which causes it to lose those settings when stopped.
Try mounting the host's keystore (with specific settings you need) to the container in docker-compose.yml and using that.


typescript problem

hi i want use this package but i have error in my react typescript project.i solved problem for my self by converting your code to typescript if you want i will send a merge request to reveiw code

Hi, feel free to send a merge request. I'll see this :)


Support Compose-Key

Compose key does work on at least X11 (I'd think on any platform).

Here's the .XCompose I use, if it helps.
(Github won't allow me to attach the file with that name, so I renamed it to XCompose.log)

This is already half implemented via Qt native API's. Half, because the visual feedback is missing. I hope I can get that in for the next release.

This is already half implemented via Qt native API's. Half, because the visual feedback is missing. I hope I can get that in for the next release.

was comparing now against KDE konsole with my standard composed keys I used for testing. I didn't get any visual feedback. I'd like to have that though as I remember i have seen that somewhere. /closing for now as IME itself is implemented.


PoC: realtime recording for online TV

Required Info

Host Operating System & Version
{Ubuntu 20.04.2 }

Kernel Version (Linux Only)
(5.x)

Branch
{ kantv }

Android Studio Version
4.2.1

NDK Version
NDK-r14b

Xcode Version
12.5

Language
{C/C++/Java }

Section
{  playback  }

PoC Description
realtime recording for online TV

close the PoC at the moment. It will be reopened if any user of apk submit a similar suggestion

implemented since kantv v1.1.16.


[Bug]: opensearch_node container does not restart on error

Describe the bug
I am running an opensearch docker container, that sometimes exits with code 0 even if I see errors on logs
To reproduce
I have created the container with this java options inside Env:
"OPENSEARCH_JAVA_OPTS=-Xms8m -Xmx8m"
so that the java.lang.OutOfMemoryError: Java heap space is triggered almost immediately after the container starts.
Expected behavior
I have set the container's restart policy to on-failure, so I expect that container restarts automatically in those situations.
Screenshots
No response
Host / Environment
OS: Ubuntu
Version 18.04.4 LTS

Additional context
output of docker ps -a --no-trunc:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5460ce72093cadb1c49331f54c7cc7c0d041174f668aeda157efc199e6938fef opensearchproject/opensearch:1.3.3 "./opensearch-docker-entrypoint.sh opensearch" 7 minutes ago Exited (0) 6 minutes ago

Referring to issue 2143 (which is closed, but not solved), problem is still present in version 1.3.3.
Relevant log output
[2022-07-26T13:31:22,818][ERROR][o.o.b.OpenSearchUncaughtExceptionHandler] [lb-logs-test] fatal error in thread [main],
exiting java.lang.OutOfMemoryError: Java heap space at java.util.jar.JarFile.lambda$entries$0(JarFile.java:531)
~[?:?] at java.util.jar.JarFile$$Lambda$218/0x00000001001bb840.apply(Unknown Source)
~[?:?] at java.util.zip.ZipFile.getZipEntry(ZipFile.java:676) ~[?:?] at java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:531)
~[?:?] at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:519)
~[?:?] at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:495)
~[?:?] at org.opensearch.bootstrap.JarHell.checkJarHell(JarHell.java:208)
~[opensearch-core-1.3.3.jar:1.3.3] at org.opensearch.plugins.PluginsService.checkBundleJarHell(PluginsService.java:676)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.plugins.PluginsService.loadBundles(PluginsService.java:528)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.plugins.PluginsService.<init>(PluginsService.java:193)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.node.Node.<init>(Node.java:396)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.node.Node.<init>(Node.java:319)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:242)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.bootstrap.Bootstrap.setup(Bootstrap.java:242)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:412)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:178)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:169)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:100)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
~[opensearch-cli-1.3.3.jar:1.3.3] at org.opensearch.cli.Command.main(Command.java:101)
~[opensearch-cli-1.3.3.jar:1.3.3] at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:135)
~[opensearch-1.3.3.jar:1.3.3] at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:101)
~[opensearch-1.3.3.jar:1.3.3] Killing performance analyzer process 11 OpenSearch exited with code 127 Performance analyzer exited with code 143

Hey @tuotempo can you please share the full docker run command you used?
also can you try with this sample compose file https://opensearch.org/samples/docker-compose.yml?

I also tried your sample with docker compose up -d: containers starts, but opensearch-node1 and opensearch-node2 exits after about one minute, while opensearch-dashboards keeps running. Here is the log I get:
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: OpenSearch did not exit normally - check the logs at /usr/share/opensearch/logs/opensearch-cluster.log
[2022-09-29T13:28:46,639][INFO ][o.o.s.a.r.AuditMessageRouter] [opensearch-node1] Closing AuditMessageRouter
[2022-09-29T13:28:46,640][INFO ][o.o.s.a.s.SinkProvider   ] [opensearch-node1] Closing InternalOpenSearchSink
[2022-09-29T13:28:46,641][INFO ][o.o.s.a.s.SinkProvider   ] [opensearch-node1] Closing DebugSink
[2022-09-29T13:28:46,647][INFO ][o.o.n.Node               ] [opensearch-node1] stopping ...
[2022-09-29T13:28:46,666][INFO ][o.o.n.Node               ] [opensearch-node1] stopped
[2022-09-29T13:28:46,667][INFO ][o.o.n.Node               ] [opensearch-node1] closing ...
[2022-09-29T13:28:46,682][INFO ][o.o.s.a.i.AuditLogImpl   ] [opensearch-node1] Closing AuditLogImpl
[2022-09-29T13:28:46,687][INFO ][o.o.n.Node               ] [opensearch-node1] closed
Killing performance analyzer process 103
OpenSearch exited with code 78
Performance analyzer exited with code 143

Regards.

[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

@tuotempo that means you need to increase the max map count value:
sudo sysctl -w vm.max_map_count=262144
ulimit -n 65535

You can follow this readme on more information of the docker settings:
https://github.com/opensearch-project/opensearch-build/blob/main/scripts/README.md#run-deployment-script

Hi @peterzhuamazon,
thanks for the hint, I can confirm that with it containers opensearch-node1 and opensearch-node2 now do not exit.
But, as stated in my first post, issue is that my opensearch-node container sometimes stops, and on-failure restart policy is not effective because exit code is 0. As stated in issue 2143, maybe the issue is in the terminateProcesses function.
Thank you very much for your support.

Hello @prudhvigodithi
are there any news about this issue?
Thanks again.

Hey @tuotempo if would be great if you can help you find the exact cause of termination?
Also check this for a retry implementation https://github.com/opensearch-project/opensearch-js/pull/304, might be helpful here.
Thank you
@bbarani @dblock

The teminateProcess is by design in the sense of if there is failure just kill both process and stop the container.
So that another process can be brought up by Kube or Docker swarm.

Hello,
sorry for the delay, I have created a fork to test some modification, you can see it here. I have basically set different traps for different signals, and added the cleanup function that simply prints what is the signal involved: do you think this approach makes sense?
@prudhvigodithi the cause of termination was an OutOfMemoryError, as stated before, and it happens randomly on my production systems.
@peterzhuamazon As about teminateProcess by design, I am not using Kube or Docker swarm, but a simple container, so it will be useful to have the restart policy working.
Thanks again for your support.

Hello, sorry for the delay, I have created a fork to test some modification, you can see it here. I have basically set different traps for different signals, and added the cleanup function that simply prints what is the signal involved: do you think this approach makes sense?
@prudhvigodithi the cause of termination was an OutOfMemoryError, as stated before, and it happens randomly on my production systems.
@peterzhuamazon As about teminateProcess by design, I am not using Kube or Docker swarm, but a simple container, so it will be useful to have the restart policy working.
Thanks again for your support.

https://github.com/opensearch-project/opensearch-build/pull/2913
Hi, we are in the process to remove this dependency now.
Thanks.

hello, @tuotempo ,just want to update you that the activity mentioned above, https://github.com/opensearch-project/opensearch-build/pull/2876, had been completed, and we would like to get your feedback if it did resolve the issue ( by disabling the PA in your case/env ). Thanks!!

Hi @jordarlu i can confirm that disabling PA the exit code of opensearch process  is correctly propagated into docker and the policy works as expected

Thanks a lot for prompt reply @tuotempo , I really appreciate it!! I will close this issue now, and pls keep letting us know if you find any other issues. Thank You.