Update Emscripten to 2.0.9 upstream

For quite some time Themis has been pinning Emscripten to an outdated version of the fastcomp flavor because recent versions have been broken, and the new upstream flavor has been broken as well.
However, Emscripten 2.0+ does not support the fastcomp flavor anymore so there is no hope for an fix. Eventually we'd have to migrate to the upstream flavor.
I have tried out the latest Emscripten 2.0.9 upstream and it seems to be working—after some further tweaks. There are no signs of the issues that were observed before and prevented Themis Core from being compiled. With the latest version is can be compiled and run.
Update the Emscripten version we use on CI to 2.0.9. This is also the version that we'd be building packages with for the next release. Note that the version is pinned and will need to be updated later, we won't be tracking the latest tag for a while, until we're sure that WasmThemis works fine with Emscripten 2.0.
There are no changes to WasmThemis API, it's behind the scenes.
What needs to be changed for Emscripten 2.0
Disable stack protector for Emscript builds
As noted in emscripten-core/emscripten#9780, the upstream flavor of Emscripten does not yet support LLVM's stack protector so have it disabled. Otherwise linker will produce errors about missing symbols, because they're not there. Some day it may be implemented though so I leave a FIXME in the code.
Use new allocate() API of Emscripten
Themis Core uses the allocate() function provided by Emscripten runtime for quick on-stack allocations. This is a semi-private function which has unstable API. With the new Emscripten version its API has changed, now it accepts a "slab" parameter which indicates the size of the stack that needs to be allocated—for the entire function. That is, if we allocate memory on stack, allocate() may be called only once.
Stop using deprecated RESERVED_FUNCTION_POINTERS
RESERVED_FUNCTION_POINTERS does not have much effect on the upstream flavor but it was important for the fastcomp flavor. Now that since Emscripten 2.0.1 the fastcomp flavor is not supported anymore, this option has been a synonym for ALLOW_TABLE_GROWTH. Use the new option instead directly then.
Work around issues with dead code elimination
For some reason wasm-ld likes to strip all (each and every) function of Themis Core from the resulting *.wasm file. While they are there in the object files and archives, linker's dead code elimination thinks they are not needed in the WebAssembly code.
Normally this is prevented by EMSCRIPTEN_KEEPALIVE attribute—which we still have and it's still defined—but for some reason it does not work.
As a temporary workaround, pass the LINKABLE option to the linker which disables dead code elimination and other link-time optimizations. This leads to somewhat bigger WebAssembly file which may be a bit slower, but at least this prevents issues.
It might be some transient issue with a toolchain so there is a FIXME in the code. We'd need to keep an eye on it for some future releases. However, I have not found any similar issues in Emscripten tracker.
Checklist

[X] Change is covered by automated tests
[X] The coding guidelines are followed
[X] Public API has proper documentation
[X] Changelog is updated

@vixentael, there are some issues in internal tracker related to this upgrade. I guess then could be closed once this lands into master.
@shadinua, please make sure that Build Bot uses the updated Emscripten toolchain for the next release. The new code does not work with the old Emscripten version, unfortunately.

@ilammy shall we try to hotfix WASM package with these new changes?
It gives no direct value to users, but will allow us to test release flow with the new Emscripten, while our brains are here.

@ilammy shall we try to hotfix WASM package with these new changes?

Nah... I don't think it warrants an immediate release. I mean, it's been like that for over a half a year so it can wait a bit more. This is not a security update so there is no rush to push it out. And if anything, I'd like a major update of a dependency to be included in a major update of the library, not some random patch release.
I all we want to test is Build Bot automation to ensure that it can build proper binaries, I believe there would be a way to test the build only, without publishing anything. At worst, just try with the same package version and get rejected by npm at publishing stage.


[BUG] first time data loading trouble

Describe the bug
blank page often happened on home-page feed/event-page when you first time visit it.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Some actions on '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
If applicable, add screenshots or logs to help explain your problem.

Additional context
Add any other context about the problem here.

before we refactor the data flow to solve this from bottom up, can we do minor steps on release to reduce the effect of such problem


Roadmap v3

[ ] Drop support Node v6
[ ] Use Rollup for bundling
[ ] ~Remove global offsets in favor of individual offsets.~
[x] Support custom output logic.
[ ] Support browser environment and browser build served via unpkg (fixes #1 and #3).
[ ] Provide mode option so that user can choose either of merging strategies merge, concat, grid, custom (no default offsets according to image size, fixes #4).
[ ] Revise README.md

[ ] Provide image map for slicing

I've forked this though it's brutal - only useful for horizontal merge.

@elipeters Isn't it enough with direction option?

All websites were once built this way... slice up a large image and place inside tables then http request the heck out of it.
...though now in reverse...
output something like...
imgDimensions:{
    width: [img1.width(), img2.width(),...],
    height: [img1.height(), img2.height(),...]
}

or
map:[
    img1: {x,y,width,height},
    img2: {x,y,width,height},...
]

I apologise if I am not being clear. :)

Okay, based on what you said, I believe this is basically a serialized output for metadata of composed images.
Please correct me again if it's wrong.
In fact, there are couple of api in v3 (but not in v2) that expose the calculation of image chunks to allow a custom plugin for a image composition.
Maybe someone or me can write some plugin for this module to extract json-like object for the output via this api.

I would like to help this one
 Provide mode option so that user can choose either of merging strategies merge, concat, grid, custom (no default offsets according to image size, fixes #4).

But I am not sure what is the specific definition about these strategies


Apply Settings - 502 error

Hello!
I run several instances of Webmin behind an Nginx reverse proxy and everything has worked great for the past year or so until recently. I've noticed this "bug" or "issue" for maybe the last month or two. Webmin runs on a couple servers as well as within a couple VM's. I experience this issue on all instances
My url is this format for each of my instances: https://webmin.DOMAIN.com/Server-1/
Here's the most specific example I can give that produces the error:
On my server that runs Nginx, I have the Nginx module that allows me to make changes to my various Virtual Hosts. When I click the "Apply Changes", the main screen shows a 502 error. The URL that displays before clicking apply changes is: https://webmin.DOMAIN.com/Server-1/nginx/?xnavigation=1. Looking at the webconsole, the error seems to be on the page reload. I think it's trying to reload the page as https://webmin.DOMAIN.com/nginx/....It's dropping the "/Server-1/"
Here's an image of the error.

Noting has changed with any of my configuration. This error just seemed to appear out of the blue a while back.
I also have Apache running on another server and I experience the exact same issue on that server as well.
I also notice sometimes that webmin just drops the "/Server-1/" completely resulting me in having to re-navigate to the correct URL.
Any suggestions?
Thanks,
Mike

Hi, Mike.
Do you get the same error if you try, let's say, to upload a file?

The error, where the prefix is removed upon reload is fixed.
You can apply it here.
https://github.com/webmin/webmin/commit/34c6acdeb201d5bd0b1534c4bb782ac342ba813c
Also, you are welcome to install latest theme version to make sure that any "issues" are still issues for you.
Speaking about Bad Gateway error. Does it also happen when you use Gray Theme, right?

For other sources of the issue I would look at:

ModSecurity
client_max_body_size option
SELinux policies.

Read more here:
https://sourceforge.net/p/webadmin/bugs/5166/#0304

Hi @rostovtsev,
I do not get the same error when uploading a file.
I applied the fix by uploading the new file and that didn't help. I restarted Webmin, cleared cookies and cache and still no luck.
I looked at the sourceforge post and that doesn't seem to apply as my reverse proxy runs through Nginx.
Thanks,

What about changing the theme, does it produce the same error in older themes?

I changed to the Gray Theme and the problem no longer exists.

Does it only happen with this, if I understand correctly, third-party module?

Yes, it is a third-party module.

We don't support outdated, third party modules. It should be done by module's developer.
There is better supported Nginx module by Virtualmin Nginx.
Check it out:
wget http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/main/binary-amd64/webmin-virtualmin-nginx_2.5_all.deb
dpkg -i webmin-virtualmin-nginx_2.5_all.deb

You are welcome to try Virtualmin Pro as well.

However, I found an issue with redirects. Working on it..

I have made a patch. Please install latest development version of the theme to give it a try. Ignore mentioned 34c6acd fix, as it's rolled back now.

It looks like that did the trick! Problem resolved!
Thank you!

Thank you very much for reporting.

Hi, Mike.
Can you please pull latest changes (update the theme) to give it another check, if it works for you correctly?
I had to make more changes due to possible various configurations.

Hi @rostovtsev,
I manually forced latest development (19.32-RC3) and all still seems to still be working well!

Thank you, Mike!

Hi @rostovtsev ,
I'm running into this error again in a little different manner. I will try to explain...
Here's a specific example (this also happens at other times when I execute other things as well):
I right click a file in File Manager to change permissions. I get the "pop up" box that allows me to change permissions. When I click "Change" to apply the new permissions, a blue box appears at the bottom that says: "Setting Permissions to 0775 on selected file(s). Please wait....".
Then, a red "pop up" box appears right above and says "Error: 502 - error".
I am not redirected anywhere and then have to navigate away from the page to clear all the pop up boxes.
I opened Chrome console and it looks like the redirect is dropping my "/WEBPREFIX" as mentioned in my 1st post on this issue above.
This also happens in Gray Theme.
Do you think this is an error with with my Nginx config, webmin.conf, miniserv.conf, theme issue, or Webmin issue?
I came to you first since this is similar to my previous reported issue in this thread and you worked it out super quick!
Thanks!

502 error - Bad Gateway (meaning that one server received an invalid response from another) sound like Nginx error to me, because, if there was bad redirect, you would simply get 404 error - Not Found.
Simply post your configs here, I will take a look, or use the post-form from my website to send it privately.

Hi @rostovtsev ,
As I mentioned in my very first post a couple months back, I run a couple metal servers along with multiple VM's and they all have Webmin installed. I am running into this issue on all of them.
My webmin.conf and miniserv.conf are basically identical on all servers with the exception of webprefix and cookiepath.
Here are my configs:
NGINX Reverse Proxy Config:
include /etc/nginx/includes/webmin.conf;

map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
}

server {
listen 80;
server_name webmin.DOMAIN.com;
return 301 https://$server_name$request_uri;
}

server {
# SSL configuration
listen 443 ssl http2;
server_name webmin.DOMAIN.com;
include /etc/nginx/snippets/strong-ssl.conf;
ssl_certificate /etc/letsencrypt/live/DOMAIN/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/DOMAIN/privkey.pem;

# Add index.php to the list if you are using PHP
index index.html index.htm index.php index.nginx-debian.html;

# Change the client side error pages (4xx) to prevent some information disclosure
error_page 401 403 404 /404.html;

# Deny access to .htaccess files, if Apache's document
# root concurs with nginx's one

location ~ /\.ht {
deny all;
}

#Webmin
location ~ /(?<behost>.*)/(?<ndpath>.*) {
  auth_basic off;
  #proxy_buffering off;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-Host $host;
  #proxy_set_header X-Forwarded-Server $host;
  proxy_set_header Host $host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  #proxy_set_header X-Forwarded-For $http_x_forwarded_for;
  proxy_redirect http://$host:10000/ https://$host/$behost/;
  proxy_pass http://webmin-$behost/$ndpath$is_args$args;
  #add_header X-Frame-Options "ALLOW FROM myopenflixr.com";
  #add_header X-Frame-Options "ALLOW FROM webmin.DOMAIN.com";
 }
# make sure there is a trailing slash at the browser or the URLs will be wrong
location ~ /(?<behost>.*) {
  return 301 /$behost/;
 }
}

And here's my /etc/nginx/includes/webmin.conf:
upstream webmin-Main-Server {
    server <IP_ADDRESS>:10000;
    keepalive 64;
}
upstream webmin-Application-Server {
   server <IP_ADDRESS>:10000;
   keepalive 64;
}
upstream webmin-Production-Server {
   server <IP_ADDRESS>:10000;
   keepalive 64;
}
upstream webmin-Applications {
   server <IP_ADDRESS>:10000;
   keepalive 64;
}
upstream webmin-VPN-Server {
   server <IP_ADDRESS>:10000;
   keepalive 64;
}
upstream webmin-Admin-Server {
   server <IP_ADDRESS>:10000;
   keepalive 64;
}
upstream webmin-Pi-Hole {
   server <IP_ADDRESS>:10000;
   keepalive 64;
}
upstream webmin-Plex-Server {
   server <IP_ADDRESS>:10000;
   keepalive 64;
}
upstream webmin-App-Server {
   server <IP_ADDRESS>:10000;
   keepalive 64;
}

Here's my webmin.conf:
s_version=9.0
nohostname=0
gotoone=0
referer=1
lang=en.UTF-8
no_frame_options=1
help_width=
passwd_file=/etc/shadow
feedback_to=
tempdelete_days=7
relative_redir=1
gotomodule=
nowebminup=
hostnamemode=0
passwd_pindex=1
showlogin=0
referers=webmin.DOMAIN.com
webprefixnoredir=1
by_view=0
md5pass=1
error_stack=0
passwd_uindex=0
path=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
help_height=
webprefix=/App-Server
passwd_cindex=2
dateformat=dd/mon/yyyy
sysinfo=0
os_type=debian-linux
passwd_mindex=4
deftab=webmin
real_os_version=18.04.2
nomoduleup=
showhost=0
theme=authentic-theme
referers_none=1
real_os_type=Ubuntu Linux
log=1
product=webmin
notabs=0
hostnamedisplay=DOMAIN
find_pid_command=ps auwwwx | grep NAME | grep -v grep | awk '{ print $2 }'
nofeedbackcc=0
ld_env=LD_LIBRARY_PATH
os_version=9.0

And finally, here's my miniserv.conf:
port=10000
addtype_cgi=internal/cgi
realm=Webmin Server
logfile=/var/webmin/miniserv.log
errorlog=/var/webmin/miniserv.error
pidfile=/var/webmin/miniserv.pid
logtime=168
ssl=0
trust_real_ip=1
no_ssl2=1
no_ssl3=1
no_tls1=1
no_tls1_1=1
ssl_honorcipherorder=1
no_sslcompression=1
env_WEBMIN_CONFIG=/etc/webmin
env_WEBMIN_VAR=/var/webmin
atboot=1
logout=/etc/webmin/logout-flag
listen=10000
denyfile=\.pl$
log=1
blockhost_failures=5
blockhost_time=60
syslog=1
ipv6=1
session=1
premodules=WebminCore
userfile=/etc/webmin/miniserv.users
keyfile=/etc/webmin/miniserv.pem
passwd_file=/etc/shadow
passwd_uindex=0
passwd_pindex=1
passwd_cindex=2
passwd_mindex=4
passwd_mode=0
preroot=authentic-theme
passdelay=1
logout_script=/etc/webmin/logout.pl
cipher_list_def=1
failed_script=/etc/webmin/failed.pl
login_script=/etc/webmin/login.pl
sudo=1
nolog=.*xhr.*
cookiepath=/App-Server
error_handler_404=404.cgi
error_handler_403=403.cgi
error_handler_401=401.cgi
noshowstderr=
nolistdir=
expires_paths=
gzip=1
logouttimes=
root=/usr/share/webmin
mimetypes=/usr/share/webmin/mime.types
server=MiniServ/1.910

Thanks in advance for taking a look!
Mike

Did you try to disable all proxy_set_header options in your Nginx?

Aside from it, try different proxy configuration for your Nginx.
Confirmed to work with many users:
https://github.com/webmin/webmin/issues/420#issuecomment-308290754

Then, a red "pop up" box appears right above and says "Error: 502 - error".
Does this only happen when changing Permissions? What about other operations?

Hi @rostovtsev,
Sorry for the delayed response, it's been busy at work!
It seems that I am only experiencing that error with trying to change permissions or ownership.
Looking at things, it seems that both of those operations drop the webprefix when redirecting after applying the settings.
Everything else seems to be working fine.

I just made a patch, I don't know if it helps in your case.
Please give it a try.

Besides, did you try to set relative_redir = 0?

I see the problem. Fixing...

Okay, this issue should be fixed now, no matter what config do you use.
Please install latest dev version using theme configuration to give it a try.

Everything seems to be working great now!
However, I have 1 other "possible non-related" issue that just started occurring on just 1 of my servers....When I tried to test change permissions or ownership, it throws a 404 error. Looking at the web console, it is adding my webprefix twice and causing a Session Expired pop-up.
I reverted back to the Stable release of the theme and then upgraded once again to the Development Version. I also compared this server's config file & miniserv.conf file and they are identical to all other server's config & miniserv.conf.
Any idea what is causing this?

It looks like Webmin versions are different. It shouldn't be happening. At least, after making a change, I have tested it on literally, 6 different machines with different configurations and it works for me?
At first try restarting Webmin.
That machine that doesn't work, if you don't mind, can you update it using update-from-repo.sh script? Or at least check Webmin versions installed and how are they different?
Both machines are setup to use proxy, with webprefix (as subdomain), correct?

Disregard that last message. I copied>pasted both config files from another server and it is working perfectly. I swear that I compared config & miniserv.conf files with the other servers and they were identical. Maybe I had a misspelling somewhere. Oh well. All works great!
Thanks again!

Thank you very much for reporting and patience. :smiley_cat:  I've had very crazy days recently.

:laughing: I could reproduce your spontaneous issue. It's due to combination of webprefixnoredir=0 and relative_redir=0.

I have fixed re-authenticate banner from popping up on error. It was a bug.
Unfortunately, webprefixnoredir=1 has to be used (as recommended by docs), as it's hardcoded in WebminCore redirect sub but File Manager's extensions, intentionally skipping using theme core to increase performance.

Actually, there is better solution. We don't need to use anything but relative redirects anyway, so I fixed my code once again, to make sure that it works disregard of webprefixnoredir and relative_redir options.
Please give it another try.

I updated to the the latest development theme and all seems to continue working great!


[Feature Request] Add the possibility to get the default device in function of it's type and more

Hello, it would be good to be able to get the default device in function of it's type (console, multimedia, communication) and be able to get the volume from it

I've added audioRole parameter on functions that had eMultimedia as default
enum AudioRole {
  console,
  multimedia,
  communications,
}

I've also published to pub.dev

thanks 🙂


code issue

error : Type 'MMLandscapeWindow' has no member 'shared' please help

my code:
fileprivate func landscapeAction() {
if UIDevice.current.orientation.isLandscape {
     let full = UIStoryboard.init(name: "LoggedInTabbar", bundle: nil).instantiateViewController(withIdentifier: "FullScreenVC") as! FullScreenVC
    MMLandscapeWindow.shared.makeKey(root: full, playLayer: self.mmPlayerLayer, completed: {
        print("landscape completed")
    })
}

}

New version is duplicated this function, I change function in my example

is pod update?

5.1.3 try again


Download link in gen.py not working

Hello, I am having trouble creating my own data set. The link to example data seems to be no longer working...
DATA_URL = 'http://www.robots.ox.ac.uk/~ankush/data.tar.gz'

Question related to the textspotter demo http://zeus.robots.ox.ac.uk/textspot/
Is this demo using your "FCRNall + multi-filt" model ? Is the code for this model available ?

Thank you

I'm able to download the file locally. It could be that the server is blocking your requests.
I've uploaded it to Google Drive here:
https://drive.google.com/open?id=0B6vslVxoQlvIZXZqYWFSc0htMVU

This is just the synthetic scene-text image rendering engine.

OK The link you posted in your reply works - I got the data...
Nice work by the way and thank you for open-sourcing !
( another off-topic question: Have you compared your approach to (Text Flow: A Unified Text Detection System in Natural Scene Images : Shangxuan Tian, Yifeng Pan, Chang Huang, Shijian Lu, Kai Yu, Chew Lim Tan
https://arxiv.org/abs/1604.06877 - I'm trying to choose which one to reproduce... )

Great. Thank you!

@ankush-me Hello,I download data from Google Drive.But when i run gen.py,it have TypeError：
2017-03-07 15:37:11.706 Python[71212:46633970] 15:37:11.706 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
0 of 4
Traceback (most recent call last):
  File "/Users/liba/Downloads/SynthText-master/synthgen.py", line 616, in render_text
    regions = self.filter_for_placement(xyz,seg,regions)
  File "/Users/liba/Downloads/SynthText-master/synthgen.py", line 392, in filter_for_placement
    res = get_text_placement_mask(xyz,seg==l,regions['coeff'][idx],pad=2)
  File "/Users/liba/Downloads/SynthText-master/synthgen.py", line 259, in get_text_placement_mask
    place_mask = 255*np.ones((np.ceil(COL)+pad,np.ceil(ROW)+pad),'uint8')
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/numeric.py", line 192, in ones
    a = empty(shape, dtype, order)
TypeError: 'numpy.float64' object cannot be interpreted as an index

I don't know how to fix it.Can you help me ?
Thanke you

It seems that the update to NumPy breaks indexing by floats.
You just need to cast the floats (change line 259 in synthgen.py to the following):
place_mask = 255*np.ones((int(np.ceil(COL))+pad,int(np.ceil(ROW))+pad),'uint8')

@ankush-me Thanks，it can work now.And if want to create my own data set,I must do that:

Use  depth-from-single image ConvNets to create depth image
Use Holistic Edge Detection to create segmentation image
Use h5py to save to dset.h5

is it?

Yes, correct.


Suggestion/question

Hi there!
I found your plugin when I was searching for something that would allow me to give and mine spawners for a server, and this one works exactly as intended and advertised.
My reason for making this post was to ask if I'm missing something and/or, if I am missing something, to add a feature to the plugin.
I was looking to see if it might be possible to allow players to only mine spawners that are given using your plugin and disallow players the ability to mine naturally generated spawners via permission.
If this isn't currently possible then fair enough, I can understand that it might be difficult to differentiate between both vanilla and spawned, however it would be nice to see something like this possibly added.
Another small suggestion I might make while I'm here is to ask if it might be possible to customize the names of the spawners when they are given, as some spawners come out with odd names compared to their mob coutnerpart (e.g. Mooshroom Spawners come through as mushroom_cow)
Thank you for your work on this plugin and keeping it up to date!
Cheers!

I made spawner names more configurable in the new update however I don't see myself adding a system that tracks which spawners are natural or not, maybe in the future who knows.


Notification when the car or window is open for an extended period of time

I don't know why the tesla-app doesn't do this in the first place. I guess they don't want to be liable when people get their car or items from it stolen when the app by accident doesn't notify them.
The idea is to have teslamate send an email or some other notification when it notices that one of the following states happens for "an extended period of time":

the car is unlocked
one or more doors is open
one or more windows is open
the frunk and/or the trunk is open

The extended period of time in minutes would be an option in the settings.
Is this doable?

There is an app on iOS named stats that does this exact thing that you mention. Unfortunately there is no android equivalent

Configuring mail service can be tricky.  Most people would configure their ISP or VM provider's mail server and that often requires a username/password.  The SMPT service might be on port 25 and if it's using encryption that's another port.
I'd too like TM to be able to send me notification or automate some tasks.  I believe there are a few online services that can probably notify you via a smartapp, seems I recall seeing something in the past but can't remember the name.  This requires also to install and configure some software in a docker instance.  It's definitely possible to do.  Hopefully some people will comment below ideas how to do this "easily" for everyone.

The window state is exported by MQTT, so any system which can consume MQTT topics could likely do this. In homeassistant for example, you could set an automation which triggers a script with a delay every time the window state is down. If the window state is set back to up, it would cancel the script. Once the delay has passed, you can use the notification components such as Amazon SNS (for email), Telegram, even Facebook Messenger to send a message.
If OP is using HASS outside of TeslaMate, I would be happy to put together an example automation for this, as I think it would be handy to have myself. We already have some HASS integration examples as part of the doco so if I get a chance to do this, I'll contribute it.

Didn't know it could be that simple with mosquitto_sub. I hashed a simple bash-script to do this which could be further improved upon. I run it each 10 minutes with crontab so it is bound to catch some false positives but it works.
checkscript.zip

You could also use something like Wirepusher to send a notification via curl
 curl "https://wirepusher.com/send?id=your_id&title=Alert&message=cat /tmp/doorswindowstate|tr '\n' ' '&type=default"

As of SW version 2020.32 this is build into Tesla, notification with Mobile App

Indeed, but for the moment it turns out to be not so reliable.

Hi there all,
sorry if I insert my request in this post... but I'm near to the subject.
First of all thanks so much for this wonderful software that in my opinion is the best.
A already make a lot of automation using the MQTT topics from TeslaMate.
Now I just work In Node-Red to a flow that already send me a sample email when
Tesla arrive Home (using "geofence" topic).
What I want to ask is:

how do I know that the Tesla finish a drive ?
can I extract a pic of the drive in order to put it in the email ?

What I want is to receive an email like TeslaFI with pic and statistics if possible.
Thanks a lot all
Denis


NoMethodError: undefined method `Publish' for Apiary::Command:Module

I want to use this gem for validation api from RSpec
class Test
  def self.test
    publish = Apiary::Command::Publish(
        {
            "api_key"=>"24596aa4c2e6513e4ff51f2bee6e440d",
            "api_name"=>"test9905",
            "path"=>"make_events_client_v2.apib",
        }
    )
    publish.execute
  end
end

And when I run command in rails console:  Test.test
Give error: NoMethodError: undefined method `Publish' for Apiary::Command:Module
How to solve this problem?

@mifkamaz Publish is class not a method
https://github.com/apiaryio/apiary-client/blob/master/lib/apiary/command/publish.rb#L12
you want to call execute on Publish instance
https://github.com/apiaryio/apiary-client/blob/master/lib/apiary/command/publish.rb#L39
Apiary::Command::Publish.new(options).execute()


Query parameters is lost when screen refreshed and popped.

Describe the bug
When a screen is refreshed, all its previous routes query parameters gets lost when popped to those previous screen.
Beamer version: v1.3.0
To Reproduce
Steps to reproduce the behavior:

Clone the following repository https://github.com/sivaperumal644/beamer_navigation and run the app.
Navigate till the last screen/route which is

/books/books_details/recommendation?bookId=1

Once you have reached the recommendation screen, refresh the screen.
Then press Go Back button or back button in the app bar(Generally calling Navigator.pop(context)).
You will see the query_parameters of that screen would be lost.

Expected behavior
After going to previous screen, all its query parameters should be present.
Desktop (please complete the following information):

OS: Windows
Browser: Chrome
Version: 98

Additional context
This works fine when browser back button is pressed after refresh but not when Navigator.pop(context) is called.

Hi @sivaperumal644 :wave:
Thanks for creating an issue.
This seems expected to me, although not ideal.
When we initiate a refresh from browser, the Flutter app is reloaded and acts as being deep-linked to /books/books_details/recommendation?bookId=1. This is why it is not aware what were the query parameters for /books/books_details because it never visited there. The pop goes to /books/books_details correctly only because Beamer makes that decision - knowing the page can be popped and if not directed otherwise, Beamer will remove one path segment from URI.
The browser keeps its internal history and goes through it when we press its back button. So the browser knows we were on /books/recommendation?bookId=1 before. When the URL changes to that, the Flutter app is again being built from scratch as if being deep-linked to that URI.


Feature request: fall back to vim.ui.select if code action list is too long

Thanks for making this awesome plugin! I've ran into some cases (specifically with rust-analyzer) where the list of available code-actions is too long to actually display them all. Would it be possible to implement a fallback strategy where, if the list supersedes a certain amount (say 30) fastaction simply calls vim.ui.select instead, allowing me to search through the list with telescope (using dressing.nvim)?

Thanks for raising this feature request @mawkler. I have thought about this. I have recently added support for >26 options in fastaction. However, now I realize that the size of the window can be a problem in which case it is important to either support scroll or support falling back on either telescope, fzf or vim.ui.select. I'm leaning towards falling back on these external tools as you suggested. I suggest a configuration option in fastaction which will set the threshold after which fastaction will delegate the selection to these plugins or vim.ui.select. What do you think of this approach?

That sounds perfect! Perhaps the simplest and most dogmatic implementation is to only fall back to vim.ui.select, and let the user configure vim.ui.select to use the picker of their choice, i.e. telescope, fzf, noice, etc. I would say that this is how most other plugins do it.

fixed with 0a908a5

Awesome! Thank you!


feat: add pathsep option

This is the first part of the implementation of #468. This PR implements the pathsep option, which is intended to allow users to specify the path separator used in the glob pattern.

Tests are passing on the fork.

No longer relevant, landed on windowsPathsNoEscape option.


Master Display

hello the Master display on Nvidia h265 is always missing

Like I said previous, Mediainfo no longer displays the coordinates. Which makes it impossible to autoload the correct master-Display data.
Data Only Shows the following Now:
Master-Display: BT.2020
Only option that would work now is if I use a static Master-Display Number for BT.2020. However each monitor has a different Master-Display loadout. It would be loading a incorrect data.

ok, how to extract data. what tools to use?

perhaps use old version of media info

Older version is not 100% compliant with HDR10 & HDR10+.
You can't extract the data for Master-Display, not unless the encoding setting are left untouched(Studios remove that data). That only applies to HDR formats that are single formats.
You can try to use mkvinfo and see if it will give you any additional data and go from there.

ok thank.
i use old version of media info on your version and all work good

Old versions reports the wrong color in some of the fields.


Add an utility function in order to create a decorated form for tests

Changes Unknown when pulling a65f5fe6c6669542d724d6a2d8c5ec1aed37821a on zenika-manu-dev-decorated-form-component into ** on zenika-dev**.

Changes Unknown when pulling a65f5fe6c6669542d724d6a2d8c5ec1aed37821a on zenika-manu-dev-decorated-form-component into ** on zenika-dev**.


Add documentation of compile-time width function alternative.

While the PrimInt trait itself doesn't have compile time width functions, there are other ways to find the width of the underlying type. It is useful to present the alternative.

Yeah, I can qualify counting bytes vs bits in the text. Typically the size
of integers is specified by bytes, not bits, however. Do you think all
instances of the pattern T::zero().count_zeros() should be rewritten in
terms of core::mem::size_of::<T>() instead? I could modify the text to
that effect if you like.
On Sat, Jan 4, 2020 at 9:51 PM Josh Stone<EMAIL_ADDRESS>wrote:

@cuviper commented on this pull request.
In src/int.rs
https://github.com/rust-num/num-traits/pull/147#discussion_r363071190:

@@ -22,7 +22,7 @@ use {Num, NumCast};
///
/// All PrimInt types are expected to be fixed-width binary integers. The width can be queried
/// via T::zero().count_zeros(). The trait currently lacks a way to query the width at
-/// compile-time.
+/// compile-time, but core::mem::size_of::<T>() can be used in the meantime.

Should we say 8 * size_of() so it counts bits?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rust-num/num-traits/pull/147?email_source=notifications&email_token=AAIIKIFWDUD6NOK6B3HXQZDQ4FYNRA5CNFSM4KB5PIX2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCQVUZOY#pullrequestreview-338382011,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIIKIBZLXCYL44UOP5YLMDQ4FYNRANCNFSM4KB5PIXQ
.

Typically the size of integers is specified by bytes, not bits, however.

You think so? The bit width is right in the name: i32, u8, etc., and C's stdint.h is similar.

Do you think all instances of the pattern T::zero().count_zeros() should be rewritten in terms of core::mem::size_of::<T>() instead?

AFAICS "all" is just this one instance, but sure, I'd be OK with preferring size_of since it's const.

I just remembered that in the case of dyn T we can't use
core::mem::size_of<T>, so there is definitely a use case for both runtime
and compile-time width calculation. I'll do it in terms of bits too.
On Tue, Jan 7, 2020 at 12:02 PM Josh Stone<EMAIL_ADDRESS>wrote:

Typically the size of integers is specified by bytes, not bits, however.
You think so? The bit width is right in the name: i32, u8, etc., and C's
stdint.h is similar.
Do you think all instances of the pattern T::zero().count_zeros() should
be rewritten in terms of core::mem::size_of::() instead?
AFAICS "all" is just this one instance, but sure, I'd be OK with
preferring size_of since it's const.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rust-num/num-traits/pull/147?email_source=notifications&email_token=AAIIKIGSIKUGNGXG2F5GNV3Q4TNVFA5CNFSM4KB5PIX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIKC5EQ#issuecomment-571747986,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIIKIE4ZMMSJQS2A4GOCHDQ4TNVFANCNFSM4KB5PIXQ
.

How does dyn T apply in this context though? We already require PrimInt: Sized.

I mean when dealing with a PrimInt trait object, we can't know the size
of the type at compile time. For instance, in code dealing with a Box<dyn PrimInt>, there isn't a way to use the const fn
core::mem::size_of<T>() to get the concrete type's width at compile time.
We need to dynamic dispatch on the trait object to calculate it.
On Tue, Jan 7, 2020 at 12:19 PM Josh Stone<EMAIL_ADDRESS>wrote:

How does dyn T apply in this context though? We already require PrimInt:
Sized.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rust-num/num-traits/pull/147?email_source=notifications&email_token=AAIIKIDT6L5UK4DUHAEHJVDQ4TPVNA5CNFSM4KB5PIX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIKEMEQ#issuecomment-571754002,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIIKIGXTOPD7J6UUMZJL53Q4TPVNANCNFSM4KB5PIXQ
.

PrimInt is not trait object safe -- you can't form any sort of dyn PrimInt at all.


Difference between the collection and paginator method in ResponseFactory

Hi,
Is there a difference between the collection and paginator method in the ResponseFactory class.
I looked into the codes, and I could see that they are doing the same thing.
Cheers,

Hm it probably is the same. At one point it may have been different.
On Fri, 2 Jan 2015 19:44 Ikq Prapat<EMAIL_ADDRESS>wrote:

Hi,
Is there a difference between the collection and paginator method in the
ResponseFactory class.
I looked into the codes, and I could see that they are doing the same
thing.
Cheers,
—
Reply to this email directly or view it on GitHub
https://github.com/dingo/api/issues/317.

Got it. Thank you mate.


[5.0] Made process column listing function more readable

Not only is this way easier to read, but it'll make moving to psr2 in 5.1 safer in the respect that less has to change now, so the diff to migrate will be easier to read, so if anything goes wrong, it'll be easier to identify.

Maybe better to extract your code to a Trait to avoid duplicate and keep code DRY?

@RomainLanz No. All these methods are not the same.

Tests fail.

Travis is green now. :)


Null Dereference

Summary
The function check_crl() in x509_vfy.c can crash the program by dereferencing a null-pointer on line 1552.The program can potentially dereference a null-pointer, thereby causing a segmentation fault.
What version of gRPC and what language are you using?
0.0.3
IOS - Swift/Objective C
What operating system (Linux, Windows,...) and version?
MAC - Os - 10.15.3
What did you do?
Explanation
Null-pointer exceptions usually occur when one or more of the programmer's assumptions is violated. There are at least three flavors of this problem: check-after-dereference, dereference-after-check, and dereference-after-store. A check-after-dereference error occurs when a program dereferences a pointer that can be null before checking if the pointer is null. Dereference-after-check errors occur when a program makes an explicit check for null, but proceeds to dereference the pointer when it is known to be null. Errors of this type are often the result of a typo or programmer oversight. A dereference-after-store error occurs when a program explicitly sets a pointer to null and dereferences it later. This error is often the result of a programmer initializing a variable to null when it is declared.
In this case, the variable can be null when it is dereferenced at line 1552, thereby causing a segmentation fault.
Most null-pointer issues result in general software reliability problems, but if an attacker can intentionally trigger a null-pointer dereference, the attacker may be able to use the resulting exception to bypass security logic in order to mount a denial of service attack, or to cause the application to reveal debugging information that will be valuable in planning subsequent attacks.
Anything else we should know about your project / environment?
XCode - 11.3.1

The file x509_vfy.c is under third_party/boringssl-with-bazel.


Raise API server errors as Java exceptions

Without this, the application error field on remote api responses are ignored.

https://ocd.appscale.com:8080/job/Daily Build/5914/

https://ocd.appscale.com:8080/job/Daily Build/6008/
https://ocd.appscale.com:8080/job/Autoscale-test-manual-triggers/2317/
https://ocd.appscale.com:8080/job/Taskqueue-e2e-Test/392/


Replace length check before calling List.nth in mem_device_read with nth_error to check if a read or write port index is valid.

27fd37d


add pop up for cube expression values

On mouse over the top tile of the cube a pop up shows stage and tissue name and expression value


changed tolerances

Solves #67

Travis was just being silly about GSL2 with the python2.7 tests, but python3 ran well, so I'm just gonna merge this.


Unregistered metrics

Been debugging some performance issues, and noticed a few key metrics are incremented, but weren't previously registered, so they don't show up.  Two that I noticed, might be a few more.

dropped_from_stress
trace_aggregate_sample_rate
trace_kept_sample_rate

Just curious, was this by design?

Thanks for opening an issue for this.
It looks like these metrics were not registered properly, which explains why they aren’t showing up. This wasn’t intentional. We will include the fix into the upcoming release

fixed in PR #1354

Closing this issue as a fix has now been merged and will go out with the next release.


Move and enhance Blazor security section

Fixes #26014
Internal Review Topic (links to section)
The PR ...

Moves the section to the Security and Identity overview.
Because the overview is meant to primarily address common guidance, I felt it best to integrate the content into the topic's existing section on Blazor Server authentication.
Seeks to extend and clarify prior remarks in the section. This is purely first-cup ☕ language ideas to get us started. I expect it to change, perhaps quite a bit.👂

I defer on pinging any of the others from the discussion.

Ok, but what about keeping the first piece and placing it over in the Blazor Server overview? .... because that seemed to be what the thrust of the offline discussion was addressing. Just this bit ...

When ASP.NET Core stores and manages user accounts, Blazor Server uses [ASP.NET Core Identity](xref:security/authentication/identity). When user accounts are stored and managed externally, Blazor Server uses:
* [Microsoft identity platform](/azure/active-directory/develop/) for Azure Active Directory (AAD) or AAD B2C, which use the OAuth and [OpenID Connect (OIDC)](https://openid.net/connect/) protocols.
* Typically, [OAuth](https://oauth.net)/[OpenID Connect (OIDC)](https://openid.net/connect/) directly for non-Microsoft identity providers, often via a third-party API/package that simplifies implementation.

I don't think we need that extra text. I think it was only a point of confusion because the previous text sounded like Blazor Server only supported ASP.NET Core Identity. We're removing the problematic text, so I think we should be good to go.

Ok ... it's almost ready. Commit on the way! 🏃

Ok ... I think that lick'd IT 🐄👅.


Aquire token from Adal library

waiting on https://github.com/alenny/angular2-adal/issues/7
or have a shot at it!

not used adal library, get query string with javascript and parse token value


Empty profile information.

Describe the bug
A clear and concise description of what the bug is.
The public profile of users has lots of missing data because while creating a profile, all information is not mandatory. So, either don't show fields that have no value or else make it compulsory to enter complete user information.
To Reproduce
Steps to reproduce the behavior:

Go to 'https://circuitverse.org/users/13353/profile'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Ask the user to complete his profile details after or while creating the profile. Do not show member since zero-days, either make it say since how many hours, or say since today. If the user opts for google or facebook login, then too, he must be prompted to enter the country and institution of the user.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Windows
Browser: Chrome
Version: 78.0.3904.108

Are you working on this issue? (Yes/No)
No, For GCI students.

@PragatiVerma18 Is the issue solved or can I work on it?

You may work on this issue. Happy contributing!!😀

@snpd25 are you working on this issue ?

Not needed


ux.table maxWidth column option

Is your feature request related to a problem? Please describe.
I would like to display long web urls in a table, which is difficult to fit in any terminal width alongside other columns. I came up with a nice solution to embed the links using terminal escape characters, for example so that only the text "link" is displayed, but a user can click on it to go to the embedded URL. However ux.table still interprets the width according to how many characters are in the raw string, including all the escape sequence characters and the hidden URL href value.
Describe the solution you'd like
Implement a maxWidth option for columns.
Describe alternatives you've considered
Respect shell escape sequences in strings when calculating width.
Additional context
Add any other context or screenshots about the feature request here.

@nickjm Would you be up for submitting a PR with your solution?

I'm going to close this since we've decided to remove the ux module in the next major version. There are much better dedicated libraries for generating tables in the CLI that I recommend you use instead.

@mdonnalley sorry, I'm new to the node ecosystem. Can you suggest some of these CLI table libraries you are talking about? I found this by following the deprecated oclif ux codebase to here which made me think tables should be supported in oclif but I haven't seen anything about it in the docs.
As you are recommending to use others, can you please suggest at least one to look at? Would this be one? https://www.npmjs.com/package/cli-table3
Ideally I wanted to keep my 3rd party dependence graph as small as possible, but maybe that's just not a thing in modern frontend :(

Turns out I just didn't look hard enough. it's already documented. Thanks for this tool! https://oclif.io/docs/user_experience/


[stable/prometheus-operator] Fix storageSpec parameter name in README.

What this PR does / why we need it:
The existing documentation makes reference to a value named prometheus.prometheusSpec.storage, but no value by that name exists. The value is actually called prometheus.prometheusSpec.storageSpec,  so the documentation should be updated so as to avoid users silently winding up with default (emptyDir) storage instead of PVCs.
Which issue this PR fixes
N/A
Special notes for your reviewer:
N/A
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/ok-to-test
/lgtm


IP checksum error on intel 82599

https://github.com/baidu/dperf/commit/e9f08551c958a81985cd2011a432aacb2c72fb72


move everything in project/*.scala to .sbt where possible

This is probably kind of pointless to leave open; the build is fine for now. Closing my own issue.


Searching long link in db before shortening

When the long link is gotten from the browser, there should be a check for whether the link already exist in the DB. If its found in the DB, then the application should just returned its corresponding short link else it should then do the hashing and return the short link in the browser.

The pull request you made works perfectly. It has been merged, thanks. :+1:


GH-2171 group pattern as direct child of where clause is not a scope change

GitHub issue resolved: #2171
Briefly describe the changes proposed in this PR:
This covers the case where the group graph pattern has the where clause as its direct parent - in this case we shouldn't count it as a scope change.
There are still several failing tests in QueryPlanRetrievalTest but I'm not immediately sure if these are problems in the new approach or simply a consequence of slight brittleness.

PR Author Checklist:

[ ] my pull request is self-contained
[ ] I've added tests for the changes I made
[ ] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change
[ ] every commit has been signed off

Note: we merge all feature pull requests using squash and merge. See RDF4J git merge strategy for more details.

Part of the problem seems to be that the same optional pattern appears twice in the test query, once as part of a scope change, once not.

From a closer look I think most of the other ones are failing because the engine now (correctly) sees that one of the optionals (the first one, in braces) involves a scope change and therefore applies a HashJoinIteration. I'll adapt the tests accorrdingly.

This looks much better :)
I did a quick search and there are still two usages of setGraphPatternGroup in the code that you should take a look at to see if they should be migrated to the new method.

Btw. I noticed that you are using the "parent" node to determine if we are in a new scope. I hit on a few cases where parent was not actually the parent. The main problem was that we were reusing nodes instead of cloning them, and then updating the parent.

Btw. I noticed that you are using the "parent" node to determine if we are in a new scope. I hit on a few cases where parent was not actually the parent. The main problem was that we were reusing nodes instead of cloning them, and then updating the parent ref.

I think that this is not an issue here. If I read your PR #2180  correctly, the problem you encountered is in the algebra tree, where indeed nodes are sometimes cloned and shared. Worth investigating if we can improve on that, but note that I only look at parent relations in the AST, not the algebra.

Given that develop branch is currently unstable and this PR is intended to fix that, I'll merge this as soon as verification completes.


[Design] Fixable rules

Robocop rules should have option to fix them.
To enable automatic fixing we can use fix option:
robocop check --fix

By default error message should mention if rule is fixable (if fix option is not provided).
Some rules should be safe to fix and some may cause issues in the code (for example renaming arguments or ordering import). Such rules can be fixed only if additional --unsafe-fixes id provided.
From implementation point of view, fixable rules should have fix argument provided with either robotidy formatter (essentialy running part of the formatter to fix particular rule) or class that only fix particular issue.
Rules summary should contain count of the potentially fixable rules.

Example how fixer could be defined for the rule:
Rule(
...
fix=NormalizeTags
)

Rule(
unsafe_fix=MyRuleFixer

)

If fixer needs configuration it could be provided using 'fix_args'. For performance reason we should prefer lazy instantation - thats why we cant create fixer instance in the Rule but only after reading config and assuring there is fix flag. That's why we can only pass arguments indirectly:
Rule(
...
fix=FixerWithArgs,
fix_args={'param': 2}
)

Testing should follow similiar format to robotidy testing, with files before / after formatting (fixing in our case). Additionaly, we should rerun linting on the output file to ensure that all occurences of the issue is fixed.

Fixers should be lazy and first only collect places and fixes. We can't fix them when we find them because it would be tricky for other checks/fixes.
After checks are done, we will evaluate list of potential fixes. If there are several fixes affecting the same nodes, they should be ordered (if the order of the fix matter) or excluded (if the fix is potentially breaking for other).
There could be additionaly 'only display' type of fixes - too dangerous too apply but safe enough to print how to fix to the user

Most difficult part is combining both linting (and printing issues) and formatting. Upon consideration I think we can use Robotidy approach with 'rerun' option but in a smart way. I will illustrate it on the example:
We run robocop on 50 files. 13 files contains linting issues from which 3 files have fixable issues. We dont push issues to reports yet (so it will not be printed). We apply fixes on 3 files:

sort and group fixes. If fixes touch different lines, we can apply them safely. Some fixes like reordering sections will always be last as its potentially conflicting
rerun linting but only on 3 modified files. Keep refixing until there is no more fixable rules or number of files does not go down in at least x runs.

After we are done, we can now send issues to reports, print them etc.


feat(generics): type SliceCheckerProvider with generics

Description

Changes

Screenshots

Linked issue

Codecov Report

Merging #83 (d46a5d5) into go1.18-generics-experimentation (469485e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@                       Coverage Diff                        @@
##           go1.18-generics-experimentation      #83   +/-   ##
================================================================
  Coverage                            94.75%   94.76%
================================================================
  Files                                   31       31
  Lines                                 1144     1146    +2
================================================================
+ Hits                                  1084     1086    +2
  Misses                                  44       44
  Partials                                16       16

Impacted Files
Coverage Δ

check/providers.go
100.00% <100.00%> (ø)

check/providers_map.go
93.57% <100.00%> (ø)

check/providers_slice.go
100.00% <100.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 469485e...d46a5d5. Read the comment docs.


Button disabled when binding null command

A normal Button (with Command set to null by default) is clickable. However, when I bind Command to it and the resolved command is null or the binding fails to resolve, the Button is deactivated (IsEffectivelyEnabled is set tot false). This is different from what UWP and WPF are doing. In both frameworks a button (even with a bound null command) remains clickable and is only deactivated IFF  ICommand.CanExecute() returns false.
Not sure if this behavior is intentional, but I would prefer going with the UWP/WPF approach. Especially since a button without a (valid) command can still host a flyout, which become unusable as well.
EDIT: This can be very easily fixed by removing the override for Button.UpdateDataValidation(). Apparently this was (in slightly different form) added in 2017 by https://github.com/AvaloniaUI/Avalonia/pull/894.
CC: @maxkatz6

Yeah this was done to help with the MVVM pattern because a common technique there is to have e.g. a menu that binds to a command on the open document
<MenuItem Header="Do Something" Command="{Binding Document.DoSomething}"/>

When Document is null you want to disable this menu item. I always found it annoying that WPF doesn't do this automatically so I added that feature.
Of course this was early in the project; we probably wouldn't deviate so much from WPF/UWP if we were writing this now, but this was done very early in the project...
I guess we can add a property which controls this behavior, though I'm interested in why you'd want to use a button whose command failed to bind?

I guess we can add a property which controls this behavior, though I'm interested in why you'd want to use a button whose command failed to bind?

Well, this also doesn't work when the command binding produces null (when binding to ICommand Foo => null for example), which seems to be a valid use case. When the button is clickable without a command bound (after constructing it) it should be possible to revert to that state via bindings IMO.
As for failed bindings: Not sure. Intuitively, a failed binding should just log somewhere and not touch the value at all (i.e. the command would stay null).
What if we keep the behavior for MenuItem but remove it from Button? A MenuItem with a null command is pretty much useless, so it makes sense to disable it. A Button can still have a flyout (or manual Click handlers)

I guess we can just change the default behavior of this for 11.0 to match WPF/UWP, and maybe add a property to re-enable this behavior?


CARTO VL appears twice in Docs

Go to https://carto.com/developers/carto-vl/ and check the Docs dropdown.

The first one points to https://carto.com/developers/carto-vl/v0.9.1 and the second one to https://carto.com/developers/carto-vl/.

That's clearly a feature :joy:

Fixed in prod 🚀


Move to async

It would be nice to rewrite the validation logic to become async. Deno can do this with their native Web Crypto APIs. For Node they can be shimmed.

I can try to do this :)


Can not use ACS ACR1252 1S CL Reader

I am trying to run the example with npm run example. We are using ACR1252U USB NFC Reader, but when I do plug and tap in a card, the reader can't read with the following errors :
><EMAIL_ADDRESS>example .../belajar-electron/nfc-reader
> node -r babel-register examples/index.js

2:41:21 PM info ACS ACR1252 1S CL Reader(1)  device attached
2:41:21 PM info ACS ACR1252 1S CL Reader(2)  device attached
2:41:22 PM error ACS ACR1252 1S CL Reader(2)  an error occurred
err:
2:43:51 PM info ACS ACR1252 1S CL Reader(1)  device removed
[ <1 empty item>,
  Reader {
    _events: { card: [Function], error: [Function], end: [Function] },
    _eventsCount: 3,
    _maxListeners: undefined,
    reader:
     CardReader {
       name: 'ACS ACR1252 1S CL Reader(2)',
       connected: true,
       _events: [Object],
       _eventsCount: 4,
       state: 6 },
    logger:
     { log: [Function: log],
       debug: [Function: debug],
       info: [Function: info],
       warn: [Function: warn],
       error: [Function: error] },
    connection: { type: 2, protocol: 2 },
    card:
     { atr:
        <Buffer 3b df 18 ff 81 f1 fe 43 00 3f 03 83 4d 49 46 41 52 45 20 50 6c 75 73 20 53 41 4d 3b>,
       standard: 'TAG_ISO_14443_4',
       type: 'TAG_ISO_14443_4' },
    autoProcessing: true,
    _aid: 'F222222222',
    _parsedAid: [ 242, 34, 34, 34, 34 ],
    keyStorage: { '0': null, '1': null },
    pendingLoadAuthenticationKey: {} } ]
2:43:51 PM info ACS ACR1252 1S CL Reader(2)  device removed
[ <2 empty items> ]
2:49:20 PM info ACS ACR1252 1S CL Reader(2)  device attached
2:49:21 PM error ACS ACR1252 1S CL Reader(2)  an error occurred
err:
2:49:26 PM error ACS ACR1252 1S CL Reader(1)  an error occurred
err:
  name:     GetUIDError
  code:     null
  previous:
    name:     TransmitError
    code:     failure
    previous:

Here is some logs when I attached the ARC12U NFC Reader :
2:52:47 PM info ACS ACR122U  device attached
2:52:58 PM error ACS ACR122U  an error occurred
err:

I use node v10.14.0 and npm 6.4.1. Any clue or advice is appreciated. Thank you.

@prabowomurti did you ever find a solution?  We are looking at using this reader also, and am curious if it's working now.  Thanks.

@Codelica Hi James. Unfortunately we left the mistery unsolved and continue our life with other web application. Thank you.

This library works fine with the ACR122U reader but fails to authenticate the blocks using the same code on the ACR1252U card reader. Rest of the functionality works ok, but authentication does not work.


RawIO improvements of annotations

From #896 @samuelgarcia  (https://github.com/NeuralEnsemble/python-neo/pull/896/files#r530612518)

rawio have a bad choice about annotation for AnalogSignal because it is done only at channel level (which is good for array_annotation) I need to add another dict for this. And also I want to make more explicit channel_indexes.
They are now global indexes and I would to introduce local (to stream) indexes in the APi to make dev more simple.

This strongly link to #895


[misc] use out argument for flash attention

rework of https://github.com/vllm-project/vllm/pull/5138
cc @Yard1 @njhill  if you have any comments about why it is reverted in https://github.com/vllm-project/vllm/pull/5478

close as it has been reworked in https://github.com/vllm-project/vllm/pull/10822


Celo Foundation Grants

https://share.hsforms.com/1WWFukIl9TGa19lf5ocAaQQ53n4j
About Ecosystem:
Celo is a platform acting as a global payment infrastructure for cryptocurrencies that aims to target mobile users. To this end, Celo's goal is for financial activity to be accessible to anyone globally thanks to its ability for payments to be sent to and from any phone number in the world.
About Program
The Celo Foundation (“Foundation”) Grants Program is an open program that supports projects that are committed to Celo’s mission of building a financial system that creates the conditions for prosperity for all. The Foundation believes that by working together we can collectively help the world prosper.
Do you have an interesting, viable product or offering for the Celo community? Are you seeking mentorship and capital? The Celo Foundation Grant program was made to help individuals building on Celo launch their product or service. The Foundation understands that not all projects are ready to launch on Celo.
The Celo Foundation is a non-profit organization based in the US that supports the growth and development of the open-source Celo Platform. Guided by the Celo community tenets, the Foundation contributes to education, technical research, environmental health, community engagement, and ecosystem outreach—activities that support and encourage an inclusive financial system that creates the conditions for prosperity for everyone.

https://celo.org/experience/grants

Celo Note from BAO

DAOhaus A'la Carte

Celo Foundation Grant Checklist

[ ] Are you eligible for a grant?  The Celo foundation cannot currently support grants in sanctioned jurisdictions.

[ ] Check out the call for proposals!  You can still submit an application for other categories, but please know that higher priority will be given to those applications that address communities' greatest needs.

[ ] Details, Details, Details - The more detailed the application, the better. The Grant Committee is looking for information supporting evidence of a project's viability.  The more detail, the better!

[ ] Focus on results - what is the benefit & overall impact of this proposal on the Celo community?  Clarity on how you plan to measure success with focus on impact are important parts of a successful project.

[ ] What about the money? - Get a higher score by mapping out how your funds will be allocated. Having a clear idea of what you will spend Grants funds on is an important part of the assessment process.

[ ] Ask for help!  If you have questions about the application or process, attend office hours, or submit a question on discord.  In addition, ask folks not directly involved in your project to look over your application and provide input.

[ ] Contribute to the community! We love projects that are contributors to the Celo community!  Have you attended a Celo event? Are you a contributor to the Celo discord --- let us know!

[ ] Celo Foundation Grants is NOT a VC program - We are a grassroots-based Grants program, not a VC.  If you’re fundraising, please consider other sources of funding.

[ ] Apply here!

Focus of this grant has become to not only search for a grant to deploy to Celo but to provide a training cohort for DAO developers, both on the technical end and non technical.
Celo DAOhaus Core Offerings
DAOhaus Community Track


Icon on Revoke transaction proposal misaligned

Describe the bug
The icon on the Revoke transaction proposal screen is misaligned as the center red circle is not in the middle
To Reproduce
Create a Multisig txn proposal but revoke the txn before last confirmation
Expected behavior
Icon visible correctly
Screenshots

Desktop (please complete the following information):

dev branch
Brave

Additional context
Add any other context about the problem here.

close as fixed


Missing symbol '__gnu_h2f_ieee' for float16 computations

Repro:
Run the following Python script:
from iree import runtime as ireert
from iree.compiler import compile_str
import iree.compiler.api.driver

CODE = """
module  {
  func @main(%arg0: tensor<3xf16>) -> tensor<3xf16> {
    %0 = "mhlo.exponential"(%arg0) : (tensor<3xf16>) -> tensor<3xf16>
    return %0 : tensor<3xf16>
  }
}
"""

iree_config = ireert.system_api.Config("dylib")
compiled_flatbuffer = compile_str(CODE, target_backends=["dylib"], input_type="mhlo")
vm_module = ireert.VmModule.from_flatbuffer(compiled_flatbuffer)
module_object = ireert.load_vm_module(vm_module, iree_config)

Get:
$ python t.py
Traceback (most recent call last):
  File "t.py", line 19, in <module>
    module_object = ireert.load_vm_module(vm_module, iree_config)
  File "/usr/local/google/home/phawkins/.pyenv/versions/py373a/lib/python3.7/site-packages/iree/runtime/system_api.py", line 322, in load_vm_module
    return load_vm_modules(vm_module, config=config)[0]
  File "/usr/local/google/home/phawkins/.pyenv/versions/py373a/lib/python3.7/site-packages/iree/runtime/system_api.py", line 315, in load_vm_modules
    context = SystemContext(vm_modules=vm_modules, config=config)
  File "/usr/local/google/home/phawkins/.pyenv/versions/py373a/lib/python3.7/site-packages/iree/runtime/system_api.py", line 258, in __init__
    modules=init_vm_modules)
RuntimeError: Error creating vm context with modules: /project/main_checkout/iree/hal/local/elf/elf_module.c:478: UNAVAILABLE; ELF imports one or more symbols (trying '__gnu_h2f_ieee'); imports are not supported in the platform-agnostic loader; while invoking native function hal.executable.create; while calling import;
[ 1]   native hal.executable.create:0 -
[ 0] bytecode module.__init:260 <stdin>:4:10
      at <stdin>:3:3

Either IREE shouldn't generate code referring to this symbol, or it should provide it to the compiled code.

This can also be repro-ed with
func @main(%arg0 : tensor<3xf16>) -> tensor<3xf16> {
  %0 = "mhlo.exponential"(%arg0) : (tensor<3xf16>) -> tensor<3xf16>
  return %0 : tensor<3xf16>
}

The f16 expf function gets lowered to these calls in the LLVM backend
   1485:       e8 46 00 00 00          call   14d0 <__gnu_h2f_ieee@plt>
    148a:       e8 51 00 00 00          call   14e0 <expf@plt>
    148f:       e8 5c 00 00 00          call   14f0 <__gnu_f2h_ieee@plt>

For the f32, the math.exp  is not lowered to LLVM as exp. Isntead it is approximated away https://github.com/llvm/llvm-project/blob/94a901a50ad0d927a7c32e638053958891754955/mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp#L690 . Something similar is probably needed for the fp16 path.
If we need to support a whole host of half precision math, in C++ projects, I have seen the use of https://sourceforge.net/projects/half/ . We could use the approach similar to librt in IREE and create a library of half-precision math functions.

here's some licensing friendly implementations of those two funcs we could use: https://reviews.llvm.org/D4927

Nice find! Now I have no more excuses to go and add these.


[CI] Fix :integ-test:sqlBwcCluster#fullRestartClusterTask on 2.x

For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
3 actionable tasks: 3 up-to-date
Could not determine the dependencies of task ':integ-test:sqlBwcCluster#fullRestartClusterTask'.
> Can't get https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/1.1.0/latest/linux/x64/tar/builds/opensearch/plugins/opensearch-job-scheduler-<IP_ADDRESS>.zip to /__w/sql/sql/integ-test/src/test/resources/bwc/job-scheduler/<IP_ADDRESS>/opensearch-job-scheduler-<IP_ADDRESS>.zip

[Catch All Triage - 1, 2, 3, 4, 5]


Add feature: basic enumerable

I created an example for each of the methods listed in the issue, except for the following:
For #reduce, I created three examples because this is the hardest one for people to wrap their heads around. Please let me know if this is too much, but I wish I would have had practice using it in these different ways.
For bang versions, I did not create any examples for the following reasons. The lesson states "It’s best practice to avoid using these methods". Also, much like I stated in the method exercises, it does not look any different as the return value of a method. This would make more sense later in the curriculum using an instance variable.
For each exercise, I listed the intended enumerable to use, to eliminate any chance for confusion. In addition, I provided a hint for a few of the exercises to help clarify the logic needed inside the enumerable.
Resolves #13

These look great @rlmoser99 💯


can't change grace period

Update to explain grace period for MFA registration is no longer configurable.

@richagi : Thanks for your contribution! The author, @MarkusVi, has been notified to review your proposed change.

#sign-off @richagi is the PM for Azure MFA

@MicrosoftGuyJFlo: I'm sorry - only the author of this article, @MarkusVi, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#sign-off

@richagi : Thanks for your contribution! The author, @MarkusVi, has been notified to review your proposed change.


handling events

Hi,
Could some provide a simple example code how to handle events from svg eg
<rect
       style="fill:#0fff00;fill-opacity:1;stroke:#001fff;stroke-width:3;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:3, 3;stroke-dashoffset:0"
       id="rect3005"
       width="179.41844"
       height="63.248226"
       x="42.595745"
       y="35.97163"
       onmouseover="onMouseOver" />

C# handling events is sort of magic for me ;)

this is not trivial, the svg render side has to call the events in c#. so you need to implement the ISvgCaller interface and register it. The project Posh is using it, you can have a look into the sources:
https://github.com/vvvv/Posh/blob/master/Source/PoshServer.cs#L315

Thanks Tebjan. I was trying to do so, but without luck. Now I can see where the problem is.

hope it works now. closing this for now.


[i2c, rtl] Fix to a case when Stop is issued after Write

Added a fork after PopFmtFifo state: go to Idle (when FIFO is empty) or Continue.
In PopFmtFifo, SCL is released only if Stop was issued.
Signed-off-by: Igor Kouznetsov<EMAIL_ADDRESS>

LGTM.

@igk8 it looks like this conflicts with another fix that we just merged in. could you rebase and repush this one?


Any milestone for FormattableString?

Type (choose one):

Feature request

NLog version: 5.0.0-beta11
Platform:  .NET Core
Hey,
there's a new type in .Net called FormattableString. With the Interpolated Strings, string.Format is now almost obsolete. The only relevant usage of string.Format was for me in NLog because of performance reasons when the message is not needed (yeah, technically I don't really use string.Format bymyself but I mean overloads like Log(string message, params object[] args)). With the new data type, it's now possible to don't immediately apply the format on the interpolated string but just give the format with the arguments to the method (like your overload with params does). IMO, it is far more comfortable to use Interpolated Strings and it would be nice if you would also support it in NLog.
Just a small code sample in case that you didn't get what FormattableString does:
        public void Warn(FormattableString message)
        {
            if (IsWarnEnabled)
            {
                WriteToTargets(LogLevel.Warn, message.Format, message.GetArguments());
            }
        }

//and now, just call
Warn($"Hello NLog, you are {ComplimentGenerator.Generate()}.");

We really like to support this,but we can't. The overload with the string argument takes precedence. :(
See #825

Wow, I'm sorry for the duplicate, seems like i made a typo when searching for already existing issues...
I read the other issue and I get your problem, I think the best for me would be to write different-named extension methods (maybe something like FInfo(), etc...). Thank you.


Default Type SAS is not available

Select the Authentication type. The default is SAS. Above option is not available for me when I am trying to upload file to conainer.

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

ID: 78a47a94-ae99-17e7-44da-12c930e079e2
Version Independent ID: 3e2e7514-e1da-22ac-1352-79af0d5e573c
Content: Quickstart - Create a blob with the Azure portal - Azure Storage
Content Source: articles/storage/blobs/storage-quickstart-blobs-portal.md
Service: storage
GitHub Login: @tamram
Microsoft Alias: tamram

@vn50a0h Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@vn50a0h - The available options for authorization when uploading a blob are to use your Azure AD account or to use the account access key (Shared Key). Using a SAS from the portal is not currently an option.
For more information, please see Use the Azure portal to access blob or queue data.
Let us know if you have further questions.
#please-close


feat(postgres): add support for weighted tsvectors and a custom regconfig

Adds support for a custom regconfig and weighted tsvectors as requested by https://github.com/mikro-orm/mikro-orm/pull/3317#issuecomment-1330035868.
For more context, see https://github.com/mikro-orm/mikro-orm/pull/3317#issuecomment-1330555809.
Docs: also (hopefully) fixed the tabs which caused the confusion as seen here: https://github.com/mikro-orm/mikro-orm/pull/3317#issuecomment-1279882693.

Codecov Report
Base: 99.94% // Head: 99.94% // Increases project coverage by +0.00% :tada:

Coverage data is based on head (fe5e786) compared to base (c85c8bc).
Patch coverage: 100.00% of modified lines in pull request are covered.

:exclamation: Current head fe5e786 differs from pull request most recent head 006417a. Consider uploading reports for the commit 006417a to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3805   +/-   ##
=======================================
  Coverage   99.94%   99.94%
=======================================
  Files         214      214
  Lines       13458    13489   +31
  Branches     3128     3137    +9
=======================================
+ Hits        13451    13482   +31
  Misses          7        7

Impacted Files
Coverage Δ

packages/core/src/utils/Utils.ts
100.00% <100.00%> (ø)

packages/postgresql/src/PostgreSqlPlatform.ts
99.21% <100.00%> (+0.03%)
:arrow_up:

packages/postgresql/src/types/FullTextType.ts
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

What's the state in here, I kinda lost track.

What's the state in here, I kinda lost track.

Excuse me, I missed your comment. The state is: you found the modifications a bit hacky, mainly due to the limited ability to inject SQL from a custom type. This comment describes the situation pretty well: https://github.com/mikro-orm/mikro-orm/pull/3805#discussion_r1035942764.

So apart from me not liking the implementation much, do you think it's ready/complete?
Since it's a postgres specific thing, I guess we don't have to be so strict. I'd also maybe target the v6 branch with this instead. I'd rather merge this than make it fade away :]

Yeah, that's is basically it. I could rewrite it once there is a possibility of returning a full sql string from a custom type.
Should I target it to the v6 branch?

Yeah, let's move it there please.

I could rewrite it once there is a possibility of returning a full sql string from a custom type.

I'll think about how to do this in v6, we should have some native way for raw queries too so we don't have to be so tightly coupled to knex.

Alright 👍 . Any ETA for v6 (as my time is limited this week)?
I would also like to make a PR for a fulltext query builder. Something like mentioned here: https://github.com/mikro-orm/mikro-orm/pull/3317#issuecomment-1190170191.
{ title: { $fulltext: { $include: ['keyword1', 'keyword2'], $exclude: ['keyword3'] } } } or even { title: { $fulltext: { $or: [{ $include: ['keyword1', 'keyword2'], $exclude: ['keyword3'] }, { $include: ['keyword4'], $exclude: ['keyword1'] ] } } }

No ETA, it will take a few more months for sure, hopefully somewhere during spring. But the builds are already published to NPM on each commit.

Oh, perfect 👍 . Will have a look at rebasing this PR in a few weeks.

I could rewrite it once there is a possibility of returning a full sql string from a custom type.

FYI this will be added via #4094, it just needs some internal improvements.

I could rewrite it once there is a possibility of returning a full sql string from a custom type.

FYI this will be added via #4094, it just needs some internal improvements.

Good-looking feature! I see it already supports value-bindings (?). Does it also support identifier-bindings (??) like knex#raw (https://knexjs.org/guide/raw.html#raw-parameter-binding)?

I think it should, as all it does is using the platform.formatQuery() which does so:
https://github.com/mikro-orm/mikro-orm/blob/master/packages/knex/src/AbstractSqlPlatform.ts#L88-L91

I don't know what happened here, but i fixed it. I have rewritten this pull request by using the raw function from #4094 and updated the tests.


[Feature request] Add new agent capability that allows repositories to be checked out below work directory level on self hosted agents

This is a feature request for a new agent capability that would allow self hosted agents to check out repositories below the work directory level (so for example below "/_work", instead of just below the build pipeline directory level for example "/_work/1"), so large repositories can be shared between build pipelines without taking up space for each and every pipeline.
This feature should be disabled by default as pipelines could otherwise interfere with each other on public agents or users on public agents could change configuration files below the work directory, which would pose a security risk.
It could for example be activated by passing a flag to the configuration command in the command line when configuring the agent.
I would have already implemented this feature as described and have already created a pull request to the master branch of this repository: https://github.com/microsoft/azure-pipelines-agent/pull/3475
The pull request needs to be reviewed and accepted.
A more thorough description of how the feature was implemented can be found in the pull request.
PS: I'm reopening/readding this issue since https://github.com/microsoft/azure-pipelines-agent/issues/3483 was wrongfully closed by a stale-bot, it's not really stale, it just hasn't been processed yet

Hi @echalone!
Thank you for your request and for the PR, we will test & review it, once we will have capacity.

ah damn, I was too late, this is not stale, this is actually still open :/


Add Silent Aim

Added silent aim feature; new settings for silent aim toggle and radius in pixels, if silent aim is toggled override is_on_screen_aim check with is_within_silent_aim, draws a circle around the crosshair of the same radius as silent aim. Some things could probably be tweaked where I just chose values that seemed good enough like the aim circle's segment resolution and thickness as well as the max radius which probably doesn't need to go as high as 1000.

<3


Nuscenes validate set

Thanks for sharing your data and code, your work has been very helpful to me!
I noticed that you updated the point cloud data for the nuscenes validation set. The new point clouds contain approximately 300,000 points each, whereas the original lidar point cloud only contained about 30,000 points. Were these additional 300,000 points obtained by concatenating neighboring frames of the nuscenes data? If I want to retrain the model, do I also need to update the lidar point cloud in the training set?

Yes, you are right. Quoting what we wrote in Appendix A:

For nuScenes, we input all Lidar points within the half-second segments, and only train with point features at the last time stamp.

Before we released the wrong Lidar point clouds which are only the points on the last timestamp, so the input and output points are the same. Now, the new ones are all points of half-second segments as the input points (~300K points), which gives more information, and train only with the point features on the points of last timestamp (~30K points). We observed better performance in this way.
Best
Songyou


Creating a Kernel fails if csdf has ppm as unit or one line of the simulation "amp" contains only zeros.

When i was altering the input file for the MAF example, the line
K = sidebands.kernel(supersampling=1)
returned an array of NaN values.
When investigating, I found the
https://github.com/DeepanshS/mrinversion/blob/785002052b064d5d50235ab6b6f46a40240ad7f2/mrinversion/kernel/csa_aniso.py#L107 to return zeros, if the .csdf data file contains ppm instead of frequency units.
After fixing that issue by presenting my data in the .csdf data file as Hz, i still got the return values of nan and inf in K, which stems from one vector inside the amp values that only contains zeros,
https://github.com/DeepanshS/mrinversion/blob/785002052b064d5d50235ab6b6f46a40240ad7f2/mrinversion/kernel/base.py#L72 divides then by those zeros.

Hello @N1gh7h4wk,
You are correct that when the csdm dimension of the input dataset contains ppm units, the returned Kernel is incorrect. I'll work on fixing this bug.
For your second point, a csdm dimension in units of Hz should generate a correct kernel. In the examples, I use the variable anisotroic_dimension to hold the csdm dimension along the anisotropic dimension. Can you share the output of print(anisotropic_dimension)? It will help with the debugging.

@N1gh7h4wk  The issue with the incorrect kernel resulting from the csdm dimension object with ppm units should be fixed in #4. Instead of raising error or user warning, I convert the ppm units to frequency units by multiplying the dimension with the Larmor frequency. The Larmor frequency is the product of the negative gyromagnetic ratio of the nucleus and the macroscopic external magnetic field, both of which are the input arguments of the ShieldingPALineshape class.
For your second point, I am not able to reproduce the error. Could you share a minimal reproducible code?

Okay I reproduced this issue:
print(anisotropic_dimension) yields:
https://pastebin.com/SCCGyAJf
otherwise I am using the same setup as in the Example files:
`# %%
x-y dimensions:
The two inverse dimensions corresponding to the x and y-axis of the x-y grid.
inverse_dimensions = [
cp.LinearDimension(count=20, increment="5000 Hz", label="x"),  # the x-dimension.
cp.LinearDimension(count=20, increment="5000 Hz", label="y"),  # the y-dimension.
]`
`# %%
Generating the kernel
'''''''''''''''''''''

For MAF/PASS datasets, the kernel corresponds to the pure nuclear shielding anisotropy
sideband spectra.
While i believe this to be a poor choice of parameters, it can happen. I found this occur because of the "normalization" by K that searches row wise, while one (the first) row of amp is returned as zeros only.
mrinversion/mrinversion/kernel/base.py:72: RuntimeWarning: invalid value encountered in true_divide   K /= K[tuple(section)].sum()
I did not test it with your most recent PR, but I assume that one is about Datasets with ppm values only. For testing this i converted my data to Hz values and then using the Hz to ppm conversion as in the examples.
print(amp) in the _averaged_kernel method where the above error occurs afterwards returns:
https://pastebin.com/PFi859p7
with print(amp)[0] being only zeros.
I have been able to cicumvent this by either catching a line of zeros before the normalization step, or simply altering the input parameters (like inverse_dimension and the size of anisotropic_dimension) a bit.

@N1gh7h4wk Thanks for the code. In your comment, the output for the anisotropic_dimension is a link for the issue page. Could you paste the text in the comment? I believe the problem might be originating from how the anisotropic dimension is defined in the csdf dataset. The rest of your code, inverse_dimensions, and sidebands kernel are set up correctly.
In the following snippet of code, I assume the anisotropic dimension as a sideband dimension with 32 sidebands and 10 kHz increment (same as the rotor_frequency) and generate the kernel with no error.
anisotropic_dimension = cp.LinearDimension(count=32, increment='10000 Hz', complex_fft=True)

inverse_dimensions = [
    cp.LinearDimension(count=20, increment="5000 Hz", label="x"), # thex-dimension.
    cp.LinearDimension(count=20, increment="5000 Hz", label="y"), # the y-dimension.
]

sidebands = ShieldingPALineshape(
    anisotropic_dimension=anisotropic_dimension, inverse_dimension=inverse_dimensions,
    channel="125Te", magnetic_flux_density="11.7 T", rotor_angle="54.735°",
    rotor_frequency="10000 Hz", number_of_sidebands=anisotropic_dimension.count
)

K = sidebands.kernel(supersampling=1)

Note, if I define the anisotropic dimension as
anisotropic_dimension_1 = cp.LinearDimension(count=32, increment='10000 Hz')

that is, without the complex_fft=True, I get a RuntimeWarning: invalid value encountered in true_divide   K /= K[tuple(section)].sum()
The difference is that a dimension with complex_fft=True have coordinates
print(anisotropic_dimension.coordinates)
[-160000. -150000. -140000. -130000. -120000. -110000. -100000.  -90000.
  -80000.  -70000.  -60000.  -50000.  -40000.  -30000.  -20000.  -10000.
       0.   10000.   20000.   30000.   40000.   50000.   60000.   70000.
   80000.   90000.  100000.  110000.  120000.  130000.  140000.  150000.] Hz

which is likely the coordinates for a sideband dimension, while the dimension without complex_fft=True have coordinates
print(anisotropic_dimension_1.coordinates)
[     0.  10000.  20000.  30000.  40000.  50000.  60000.  70000.  80000.
  90000. 100000. 110000. 120000. 130000. 140000. 150000. 160000. 170000.
 180000. 190000. 200000. 210000. 220000. 230000. 240000. 250000. 260000.
 270000. 280000. 290000. 300000. 310000.] Hz

The complex_fft flag is a quick way to tell that the dimension coordinates are a result of a complex FFT, which put the zero at the center of the dimension.

So i updated the links, I mistakenly put the url into the text field and vice versa. So my anisotropic dimension was not centered at 0, so i will try using the  complex_fft=True option or right away re-reference my data to zero in the middle of the spectrum. This is then not a bug.
Closing this, thank you for the reply

Hello @N1gh7h4wk. I wanted to check in if you were able to use the library and invert the PASS spectrum. Let me know if I can assist in any way or if there is something I can do to improve the documentation. I appreciate your input.
Thanks.


Not sure if there are forums, so I was posting here.

The desktop interface looks cool, but what about window borders? Are those modified so that the windows match the style of the desktop??? That's a key feature i think.

Cairo is alive and well; please download the latest version from cairodesktop.com. Window borders are not modified and there are no plans to do this as it is outside of the planned scope of Cairo. Thanks!


Ctrl+click multiple cursor not working.

Hello dears. Today my Atom gave me a nice "surprise". After opening Atom multiple cursor not working. How can i fix that?

Same here, on OSX cmd+click isn't working for multiple selections. Seems to be changed to cmd-alt-click now (maybe ctrl-alt-click on Windows?).
Is this change deliberate? Can't find anything in the changelog or settings to change it back.

Thanks for reaching out!  Filling out the issue template is super helpful for us - e.g. what version of Atom are you running (atom -v)?  Is the error reproducible in safe mode (atom --safe)?   What operating system and version are you running?
I couldn't reproduce with Atom 1.19.0-beta1 on macOS 10.12.5 or with Atom 1.18.0 on Windows 10, I can create multiple cursors with the cmd-click and ctrl-click respectively.
Unless I missed something, there were no specific changes around changing how to create multiple cursors recently.
If either of you can create a new issue with the template filled out we can definitely take a look though.

We require the template to be filled out on all new issues and pull requests so if you can open a new issue with the template filled out, that would be helpful for us. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests.
Thanks for understanding and meeting us half way :grinning:

Thanks for looking into this @rsese! I've checked using safe mode and it does work as expected then. Seems to be an issue with the Hyperclick package, so I will report it there.

@sergeygrigoryan I've filed an issue on the Hyperclick package: https://github.com/facebooknuclide/hyperclick/issues/20.

@sergeygrigoryan  thanks.
For future readers, update atom-ide-ui and/or hyperclick and see following:
@hansonw commented on Jul 4

By default Hyperclick overrides cmd+click, but this is easily configurable in Settings (Atom > Preferences > Packages > Hyperclick > Settings); just change it to something else.

@joedf I have the latest version of atom-ide-ui and I don't use hyperclick, but I am having this problem since the latest update (1.21.0)

I've been having the same issue so i went into teh settings for hyperclick and changed the windows command to shift+ctrl+click and now it works using just ctrl+click....... Go Figure

After installing hyperclick it now works with ctrl+alt+click

The settings for this are in the atom-ide-ui package (get there via Settings -> Packages) under the Hyperclick heading.


Save scraped date

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

We do not save the date at which the call for papers first appeared on the website.
Issue Number: #12
What is the new behavior?

Save the date at which a call is first scraped
Check whether date already exists at subsequent scrapes and retain it
Add published date to card view
Add sorting option based on published date

Does this introduce a breaking change?

[ ] Yes
[x] No

Other information

Closes #12


Unable to load on Windows MM2 install

recieved this error when cloning the repo:
$ git clone --depth=1 https://github.com/MMM-CalendarExt2/MMM-CalendarExt2
Cloning into 'MMM-CalendarExt2'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 53 (delta 2), reused 33 (delta 1), pack-reused 0
Receiving objects: 100% (53/53), 2.12 MiB | 8.15 MiB/s, done.
Resolving deltas: 100% (2/2), done.
error: invalid path 'docs/Tip:-Sync-with-MMM-Pages..md'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
MMM-CalendarExt2 directory is empty except for the .git which has all the files I believe it's supposed to have, but npm install fails to install this module.

There is already a PR for this issue: #130
Till it's fixed here, you could try to use my fork: https://github.com/KristjanESPERANTO/MMM-CalendarExt2

@ejdprops Can you please check if your issue is solved with the new version?

I guess not hearing anything indicates no further issue ;)


dolphin-emu: 4.0.2 -> 5.0

Motivation for this change
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Hey there! Sorry for the late response. Been meaning to get more active again
There was a period where gcc 4.8 or 4.9 was the default and dolphin-emu needed gcc5, so gcc5 can safely be removed.
As for git, it was put in for the nightly development builds because dolphin calls the git executable during configuration. I'm sure it can safely be removed from this. I'll update my NixOS install tonight and give this a test!

Merged as of 7129ebbd5e107be149d4af09f3da90094ec50b14, thank you for contributing!