text:
Setting row background color with rowClass

I am using rowClass to set the background color of a row.
rowClass: function (item, itemIndex) {
                    return item.statusName;

                }

The only problem is that the cells have background color that overlays the row background color so I don't see the change.  Any suggestions?

I achieved it like this:
tr.Abandoned {
    background-color: lightpink
}
tr.Abandoned > .jsgrid-cell {
    background-color: transparent !important;
}


text:
Worbook Names coming up as book1 rather than actual names.

When I look at the logshark workbook for the plugin - vizqlserverperformance.  I try to filter down to the workbook, however i see that almost all of the workbooks are named book1.  It is really weird and I have nothing in the logs that says there is a book1 on my server.
My process was i pointed to tabjolt to my server to run some testing.  I then took a ziplogs, i then ran logshark and I now only see book1 in the workbook.  I have attached that output as an extract so I can share here.
I have also provided the ziplogs for your review.

testlogs.zip
Here they are

testlogs.zip

Book1IssueVizqlServerPerformance.zip

Hi,
"Book1" is a default that Tableau Server often substitutes in for workbook name.  If you search the vizqlserver (directory .\vizqlserver\Logs) logs in the logset you posted, you can actually see Book1 being logged in many places.  For example:
{"ts":"2018-03-22T09:51:48.424","pid":3504,"tid":"25c4","sev":"info","req":"WrPfJArUJgYAABFIPJ0AAAIj","sess":"-","site":"Default","user":"sehrlich","k":"create-session","a":{"depth":1,"elapsed":0.002,"end":"2018-03-22T16:51:48.379Z","id":"P/////DxkeJP////+BJev3","name":"create-session","res":{"alloc":{"e":"1.05e+05","i":"1.05e+05","ne":1106,"ni":1106},"free":{"e":"3.13e+04","i":"3.13e+04","ne":383,"ni":383}},"rk":"success","rv":"","sponsor":"P////+TdUBKJ9xLfxnWT6v","type":"end","view":"","workbook":"Book1"},"v":{"sess":"1B337E1CDF0D4A68A8E0CA3F2B82CEFC-0:0","site":"Default","user":"sehrlich",**"workbook":"Book1"**}}
If you feel that Book1 is not what should be logged, you could look into opening a bug against the Tableau Server product.  But I don't think there is anything actionable here from Logshark's perspective, as it is simply persisting the "workbook" field as-is.
I hope that helps.  If you disagree or see a specific log entry where Logshark is persisting the wrong data, please feel free to reopen this.

source: gharchive/issue

repo: tableau/Logshark

license: mit

license_type: permissive

license_source: bigquery


text:
Attempting to add a new user to site w/ SAML authentication

Describe the bug
I have written a script that creates a batch of users based on json input. It works great with the exception of one caveat. My list of users only contains two users, and all users are created with SAML as their authentication method. When creating them, one of the users works fine, however one of them fails with the following error message. The user is still created, but is not created with "SAML" authentication. If I change the SAML authentication to ServerDefault, then everything works perfectly, and no exception is thrown. The only thing notable about the failing user is that every other site has the a username just like this one. This is essentially our global sso admin user.
403034: Forbidden
   	Only system administrators can add users to sites, query sites for user membership, or remove users from sites.

Versions
Details of your environment, including:

Tableau Server version - 20204.21.0114.0916
Python version - Python 3.9.2
TSC library version - 0.14.0

To Reproduce
Below is my code that is handling the user creation. I only listed the portion of code that is failing and the snippet for configuring the server connection. I am calling this with an email address for the username, a basic name, and a role of 'explorer'. The server connection is configured with the new site that I am provisioning users for.
# configuration for tableau
server = TSC.Server( server_url, use_server_version=True )
tableau_auth = TSC.TableauAuth( username, password, site_name )
....
# function for creating users
def create_user( server, tableau_auth, username, full_name, user_role ):
  with server.auth.sign_in( tableau_auth ):
    try:
      # Attempt to create New User
      new_user = TSC.UserItem( username, user_role, auth_setting='SAML' )
      user_item = server.users.add( new_user )
      print( f'New User was Created: {username}'"\n" )
   ....

Results
403034: Forbidden
   	Only system administrators can add users to sites, query sites for user membership, or remove users from sites.

NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.

I did some more digging into this issue and I guess Tableau refrains from letting us add a user as a "SAML" authenticated user on more than one site. Not sure why that is, but maybe this issue should just be focused on different error handling? It may be out of the grounds for this repository. Let me know where the best place is to post something on this and I will. 🙃

This is a good place - I'll get that into our internal system for someone to fix the error message and maybe explain the limitation too.

@cody2094 if you had two users with the same name, on different sites, marked as SAML then those would be effectively different people, each one of them would log in using a different SAML identity provider.
User disambiguation would become tricky in this case when starting the login flow on Tableau. Basically, you need extra information to figure out which IdP corresponds to a username. Tableau Online currently handles this by asking the user to provide username + site name, but OnPrem took the approach of only allowing one user to belong to one site.

authors: cody2094 fpagliar jacalata

repo: tableau/server-client-python

license: MIT

license_source: github-api


text:
PR: Add new metadata methods for labelValues to collection

PULL REQUEST - WIP: API 3.20 - 2023.2 Add new Metadata methods
dzucker-tableau](https://go.postman.co/users/26785374)
These issues need to be addressed for

There will be changes for the friendly method names coming for the new labelValue and existing label methods. If possible, please make those changes in this PR. Once we get the friendly method names changed, we should alphabetize where they appear in the request list.

2 . Formatting of environment variables should use double curly brackets.
2a. Variables in URIs, request bodies, and headers should align with the variables in the Tableau REST API variables file. For instance, {site-luid} should be {{site-id}}.
2b. Any new variables introduced to the collection by new or changed methods should be added to the environment variables file. For instance, {{label-value-name}}. This might take a separate PR.
(edited)
dzucker-tableau
14 minutes ago
3 . A link to the API reference documentation for each method should be put into the documentation description field of the method in Postman.

All corrected. Order in the method list needs a little attention.
Merge this PR when the feature becomes available for Tableau Cloud in the 2023.2 release, June 2023.

repo: tableau/tableau-postman


text:
运行QuickStart的代码是不是也有点问题？

TypeError                                 Traceback (most recent call last)
Cell In[2], line 8
5 from tablegpt.agent import create_tablegpt_graph
7 llm = ChatOpenAI(openai_api_base="http://localhost:8000/v1", openai_api_key="123456", model_name="TableGPT2-7B")
----> 8 pybox_manager = LocalPyBoxManager(profile_dir=DEFAULT_TABLEGPT_IPYKERNEL_PROFILE_DIR)
9 checkpointer = MemorySaver()
11 agent = create_tablegpt_graph(
12     llm=llm,
13     pybox_manager=pybox_manager,
14     checkpointer=checkpointer,
15     session_id="some-session-id", # This is required when using file-reading
16 )
TypeError: LocalPyBoxManager.init() got an unexpected keyword argument 'profile_dir'

'profile_dir' 是 pybox 0.0.14 版本引入的，请确认你安装了最新的 pybox:
pip install -U pppybox[local]

多谢！

'profile_dir' 是 pybox 0.0.14 版本引入的，请确认你安装了最新的 pybox:
pip install -U pppybox[local]

authors: edwardzjl rxmao

repo: tablegpt/tablegpt-agent


text:
data extraction pdf table

I'd like to extract data from a pdf-table where data are presented like 23,3 ± 6,7. The extraction procedure recognises this as one cell instead of 3 cells. I would like to see the extraction procedure to recognise this as 3 different cells because I want to be able to do calculations with the individual figures.

I may be wrong, but according to me, this will be very difficult to handle directly with Tabula.
I face this kind of problems everyday with bank statements and use OpenRefine to easily facet my data, after having "tabulized" my pdf.
In your example, it's very easy to split you cell with a "partition" transformation.

Thanks for the suggestion. I wasn't aware of OpenRefine. I am going to try this.

You can easily do this with "text to columns" in Excel or LibreOffice as well.

Thanks for the tip. I certainly will look at these possibilities.

authors: Nutritionsolutions hpiedcoq mattbk

repo: tabulapdf/tabula


text:
Parsing XML with namespaces

Currently, there is no way to set the XMLParser shouldProcessNamespaces to true. So when accessing an element, the complete tagname with namespace needs to be passed. e.g xml["f:animal"] instead of just xml["animal"]

Unfortunately, this is currently not supported by AEXML as it is "not robust full featured XML parser (at the moment)". :)
This kind of addition would probably require a bit more work then just adding shouldProcessNamespaces property somewhere, like adding namespace property to AEXMLElement, covering that with unit tests, docs and maybe even some more logic (I don't have much experience with namespaces in XML so not sure what else is there important).
If somebody would like to contribute in that direction, be my guest.

I did a pull request that will allow for excluded namespaces.

Support for this is added in latest (2.1.0) version.

authors: ajsait tadija vincentfaller

repo: tadija/AEXML


text:
"rakudobrew build panda" fails if PERL5LIB env var is set

On a completely fresh install of of rakudobrew, I get this:
$ rakudobrew build panda
<snip>
==> Bootstrapping Panda
==> Installing panda from a local directory '/Users/curtispoe/.rakudobrew/moar-nom/panda'
==> panda depends on File::Find, Shell::Command, JSON::Fast
==> Shell::Command depends on File::Find
==> Fetching File::Find
==> Building File::Find
==> Testing File::Find
Perl v6.0.0 required--this is only v5.18.4, stopped at lib/File/Find.pm line 1.
BEGIN failed--compilation aborted at lib/File/Find.pm line 1.
Compilation failed in require at /Users/curtispoe/perl5/perlbrew/perls/perl-5.18.4/lib/site_perl/5.18.4/App/Prove/State.pm line 6.
BEGIN failed--compilation aborted at /Users/curtispoe/perl5/perlbrew/perls/perl-5.18.4/lib/site_perl/5.18.4/App/Prove/State.pm line 6.
Compilation failed in require at /Users/curtispoe/perl5/perlbrew/perls/perl-5.18.4/lib/site_perl/5.18.4/App/Prove.pm line 10.
BEGIN failed--compilation aborted at /Users/curtispoe/perl5/perlbrew/perls/perl-5.18.4/lib/site_perl/5.18.4/App/Prove.pm line 10.
Compilation failed in require at /Users/curtispoe/perl5/perlbrew/perls/perl-5.18.4/bin/prove line 8.
BEGIN failed--compilation aborted at /Users/curtispoe/perl5/perlbrew/perls/perl-5.18.4/bin/prove line 8.
test stage failed for File::Find: Tests failed
  in method install at /Users/curtispoe/.rakudobrew/moar-nom/panda/lib/Panda.pm line 156
  in block  at /Users/curtispoe/.rakudobrew/moar-nom/panda/lib/Panda.pm line 228
  in method resolve at /Users/curtispoe/.rakudobrew/moar-nom/panda/lib/Panda.pm line 222
  in sub MAIN at bin/panda line 18
  in block <unit> at bin/panda line 150

However, it works just fine when I clear my PERL5LIB environment variable:
$$ PERL5LIB= rakudobrew build panda
Already on 'master'
Your branch is up-to-date with 'origin/master'.
==> Bootstrapping Panda
==> Installing panda from a local directory '/Users/curtispoe/.rakudobrew/moar-nom/panda'
==> panda depends on File::Find, Shell::Command, JSON::Fast
==> Shell::Command depends on File::Find
==> Fetching File::Find
==> Building File::Find
==> Testing File::Find
t/01-file-find.t .. ok
<snip>
Updating shims
Done, built panda for moar-nom

Hmm, I just attempted that on 2016.03 and it worked without fail. Is it some particular rakudo version/PERL5LIB value that may cause this for you?

Panda is long dead. There is a slight chance this still happens on build-zef, but looking for a bug that's most probably not present is a waste of time. So I close. Please reopen if you happend to hit this again.

authors: Ovid patzim tadzik

repo: tadzik/rakudobrew


text:
Allow #[async_stream] on async blocks

a part of #41

bors r+

source: gharchive/pull-request

repo: taiki-e/futures-async-stream


text:
Update Ethereum org website with Taiko under ZK-Rollup page

Let's add our project here https://ethereum.org/en/developers/docs/scaling/zk-rollups/#zkevm-projects

https://github.com/ethereum/ethereum-org-website/pull/8607

@d1onys1us it seems your preview PR got closed without merging, could you please try again?

@d1onys1us it seems your preview PR got closed without merging, could you please try again?

yeah, i will add it to this iteration to try again.

@d1onys1us  can I take this one up?

@d1onys1us  can I take this one up? I am also a contributor on eth website

That would be AWESOME. Actually, I tried before, but got rejected. If you want to make a draft PR there and send me the branch, I'll help give it a peer review before we open it for review by the eth-org maintainers.
I was thinking we can do a little community service to help entice the PR approval. By community service I mean, also cleanup some of the page's ZK-Rollup terms in terms of consistency (capitalization, etc.) and perhaps a few more small things, to make the page more educational.
But yes, all yours! Just ping me for the peer review. This one will help a lot for visibility.

I think from what I have seen so far from the maintainers (They really don't want your to touch other people's work except if there is a clear error)
So I will push the PR and have them Review (when merged, then we can do the community service after)

I think from what I have seen so far from the maintainers (They really don't want your to touch other people's work except if there is a clear error)
So I will push the PR and have them Review (when merged, then we can do the community service after)

Okay, thank you. But still send along the draft PR, if you don't mind, so I can give the document a review. Because we did try to open a PR twice there already.

merged into ethereum-org zk rollups page 🚀

authors: d1onys1us dantaik seunbayo

repo: taikoxyz/taiko-mono


text:
fix(jit): raise validation error for required fields

Summary:
Fix validation of required fields to cover edge cases for the JIT module
Remember to test it with cargo test --features force_jit
Build & Testing:

[X] I ran cargo test successfully.
[X] I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

[X] I have added relevant unit & integration tests.
[X] I have updated the documentation accordingly.
[X] I have performed a self-review of my code.
[X] PR follows the naming convention of <type>(<optional scope>): <title>

Test case test-required-fields.md_5.snap needs discussion. I believe it should not fail, but the current implementation fails. This issue is open for discussion.

Test case test-required-fields.md_5.snap needs discussion. I believe it should not fail, but the current implementation fails. This issue is open for discussion.

Why do you think it should not fail? You have non-null list of non-null values and one of the values is null - according to spec the parent value should be resolved to null in that case and that is against the schema

My bad, @meskill; I messed up the numbering, I believe. Maybe I fixed the issue while I was working on it yesterday.

authors: karatakis meskill

repo: tailcallhq/tailcall


text:
fix(modify): bug in modify for graphql

Summary:
Resolved an issue where the @modify directive was not functioning correctly with the field's @graphql directive. The query sent by Tailcall to the original GraphQL server was incorrect.
Build & Testing:

[x] I ran cargo test successfully.
[x] I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

[x] I have performed a self-review of my code.
[x] PR follows the naming convention of <type>(<optional scope>): <title>

@MedHeikelBouzayene  You need to push the generated snapshots also.
steps

cargo insta test
cargo insta review
verify the snapshots and commit them to github

I did add the snapshots, could you approve workflows please.


text:
How to create sidebar with fixed width?

I'm trying to make 2-column layout, where main column always takes available space, and sidebar is fixed sized: 300px on xl, lg and md screens. On sm screens should be 100%, in a row below main column.
Probably need to use additional css classes, but still not sure how to do that in tailwindcss way :) Can you give me some hints?

@webbie This is sort of what I requested here. Attaching purely for reference.

Here's a quick example:
https://jsfiddle.net/jqpkbe4u/
The real key here is just getting good at Flexbox and learning how Flexbox features are exposed in Tailwind 👍

You're right, I need to dive into flexbox to better understand tailwind.
Thanks for example!

authors: adamwathan mstnorris webbie

repo: tailwindcss/discuss


text:
Remove garbage file created by macOS

You let a .DS_Store slip into src/outline. This is fine, that just means you opened the folder in Finder. But those garbage files are disgusting and should not be preserved in a git repository. I'm annoyed they exist in the first place, but I added a line to the .gitignore that should prevent this in the future.

@sschoger

What did happen with this PR? I can't see any issue, it looks good. @LoganDark

Hey looks like this got handled in some other way at some point so closing — thanks though!

authors: LoganDark adamwathan vicmars5

repo: tailwindlabs/heroicons


text:
Good Job.

Nice component. Can I add the status of whether to display or not, and the status of semi-hiding at the edge of the screen?

Thank you! I appreciate your feedback. I plan to add this feature in the future, but I'm quite busy these days. Pull requests are welcome!

OK

authors: taingoo xclidongbo

repo: taingoo/react-native-animated-fab


text:
如何终止 PSYNC 命令？

当执行PSYNC命令后，如下面代码：
// send psync
argv = []string{"PSYNC", "?", "-1"}
if r.elastiCachePSync != "" {
argv = []string{r.elastiCachePSync, "?", "-1"}
}
r.client.Send(argv...)
log.Infof("send %v", argv)
// format: \n\n\n$\r\n
for true {
......
这个时候redis服务端会生成一个.rdb临时文件，后续如果程序出错了或者直接退出函数，那个临时rdb文件不会被删除，还会一直保留在redis服务器 端。有没有命令来终止此次PSYNC以便redis服务器能够自动删除刚才产生的临时rdb文件，如果不能终止的话，次数多了，就会产生很多垃圾文件占满磁盘空间。

Redis 的问题，和 RedisShake 无关。

repo: tair-opensource/RedisShake


text:
Video source reorder

This means that video transcodes are used before the original video source

Looks good to me

authors: seb-b timheap

repo: takeflight/wagtailvideos


text:
api文件中 time.Time解析不了

goctl 升级至 goctl version 1.1.4 windows/amd64
使用goctl api go 生成工程报错
goctl api go  -api home.api -dir ./
error: home.api line 69:18  unsupport time.Time
在1.1.2版本可以正常生成

time.Time无法生成客户端代码，推荐使用int64

time.Time无法生成客户端代码，推荐使用int64

authors: edieruby kevwan

repo: tal-tech/go-zero


text:
gprc 版本错误.

创建一个rpc服务后报rpc版本错.
# go.etcd.io/etcd/clientv3/balancer/picker
C:\Users\admin\go\pkg\mod\go.etcd.io\etcd@v0.0.0-20200402134248-51bdeb39e698\clientv3\balancer\picker\err.go:25:9: cannot use &errPicker literal (type *errPicker) as type Picker in return argument:
	*errPicker does not implement Picker (wrong type for Pick method)
		have Pick(context.Context, balancer.PickInfo) (balancer.SubConn, func(balancer.DoneInfo), error)
		want Pick(balancer.PickInfo) (balancer.PickResult, error)
C:\Users\admin\go\pkg\mod\go.etcd.io\etcd@v0.0.0-20200402134248-51bdeb39e698\clientv3\balancer\picker\roundrobin_balanced.go:33:9: cannot use &rrBalanced literal (type *rrBalanced) as type Picker in return argument:
	*rrBalanced does not implement Picker (wrong type for Pick method)
		have Pick(context.Context, balancer.PickInfo) (balancer.SubConn, func(balancer.DoneInfo), error)
		want Pick(balancer.PickInfo) (balancer.PickResult, error)
# github.com/tal-tech/go-zero/zrpc/internal/balancer/p2c
C:\Users\admin\go\pkg\mod\github.com\tal-tech\go-zero@v1.1.6\zrpc\internal\balancer\p2c\p2c.go:43:32: not enough arguments in call to base.NewBalancerBuilder
	have (string, *p2cPickerBuilder)
	want (string, base.PickerBuilder, base.Config)
C:\Users\admin\go\pkg\mod\github.com\tal-tech\go-zero@v1.1.6\zrpc\internal\balancer\p2c\p2c.go:60:9: cannot use &p2cPicker literal (type *p2cPicker) as type balancer.Picker in return argument:
	*p2cPicker does not implement balancer.Picker (wrong type for Pick method)
		have Pick(context.Context, balancer.PickInfo) (balancer.SubConn, func(balancer.DoneInfo), error)
		want Pick(balancer.PickInfo) (balancer.PickResult, error)

要加 1.29.1才可以正常运行.
replace google.golang.org/grpc => google.golang.org/grpc v1.29.1

问题已解决


text:
Set negative margin in third lvl child item.

Set a negative margin in third-level child item i.e XML, as childDividerheight doesn't exist, and adding a negative margin on root layout of the third list item doesn't work. Any solutions?

I will check if I find any solution.


text:
simple_dqn code test problems

Hi, I wanted to try simple_dqn so I followed all the installation instructions, but when I try to run
./play.sh snapshots/breakout_77.pkl
I get the following output to the terminal:
A.L.E: Arcade Learning Environment (version 0.5.1)
[Powered by Stella]
Use -help for help screen.
Warning: couldn't load settings file: ./ale.cfg
Game console created:
  ROM file:  roms/breakout.bin
  Cart Name: Breakout - Breakaway IV (1978) (Atari)
  Cart MD5:  f34f08e5eb96e500e851a80be3277a56
  Display Format:  AUTO-DETECT ==> NTSC
  ROM Size:        2048
  Bankswitch Type: AUTO-DETECT ==> 2K

Screen Display Active. [Manual Control Mode] 'm' [Slowdown] 'a' [Speedup] 's' [VolumeDown] '[' [VolumeUp] ']'.
Running ROM file...
Random seed is 0
2016-12-08 12:35:53,166 Using minimal action set with size 4
2016-12-08 12:35:53,167 Using ALE Environment
2016-12-08 12:35:53,167 Replay memory size: 1000000
Traceback (most recent call last):
  File "src/main.py", line 104, in <module>
    net = DeepQNetwork(env.numActions(), args)
  File "/home/carlos/Workspace/simple_dqn/src/deepqnetwork.py", line 34, in __init__
    stochastic_round = args.stochastic_round)
  File "/home/carlos/Workspace/neon/neon/backends/__init__.py", line 108, in gen_backend
    deterministic=deterministic)
  File "/home/carlos/Workspace/neon/neon/backends/backend.py", line 471, in allocate_backend
    raise ValueError("backend must be one of (%s)" % (names,))
ValueError: backend must be one of ('cpu')

I suppose that means it's not finding my GPU, because it does work with the --backend cpu option. I must add that I installed the CUDA 8.0 library after simple_dqn, neon and arcade learning environment. More specifically I followed the instructions in the neon website. I also followed the CUDA installation instructions  to make sure I didn't miss anything. Finally I found this issue where it's suggested to run the check_gpu.py util from the neon install. At first the output was "0", but then I ran pip install pycuda and after it was done the result was "5.2" (it found my GPU). Nevertheless my problem with simple_dqn not being able to run with GPU still exists.
I'm currently running Ubuntu 16.04 on an i7-4790k, GTX970 graphics card and 16GB RAM machine.
Any thoughts on what I could be missing?

I have done a clean install on Ubuntu 14.04 and then installing first the CUDA 8.0 library and then neon, arcade learning environment and simple_dqn and the example is working properly.

The error stops occurring when commenting out the following line in the agent.py file:
assert not terminal, "terminal state occurred during random initialization"

I'm not sure if this would be the best place to ask, but running the train.sh script saves the net weights after each epoc in files with .prm extension under the snapshots folder. Why isn't it in the same format as the example snapshots, which are in .pkl?

You might be missing pycuda, see https://github.com/NervanaSystems/neon/issues/304.
Example snapshots were made with old version of Neon. If I remember correctly, .prm files are still pickled files, just the default extension has changed.

Exactly, I am having this in neon when running mnist_nlp example

(.venv2) gamer@gamer:~/neon$ python examples/mnist_mlp.py
Traceback (most recent call last):
  File "examples/mnist_mlp.py", line 59, in <module>
    args = parser.parse_args()
  File "/home/gamer/neon/neon/util/argparser.py", line 366, in parse_args
    compat_mode=args.compat_mode)
  File "/home/gamer/neon/neon/backends/__init__.py", line 113, in gen_backend
    deterministic=deterministic)
  File "/home/gamer/neon/neon/backends/backend.py", line 471, in allocate_backend
    raise ValueError("backend must be one of (%s)" % (names,))
ValueError: backend must be one of ('cpu')

Did you check NervanaSystems/neon#304 and it didn't solve your problem?

It's been a while since I used this. I don't remember if this was exactly
the fix for that particular issue, but I do remember that in order to
properly make it work I had to start with a clean install of ubuntu, then
install the cuda toolkit https://developer.nvidia.com/cuda-downloads
(installation
guide here
http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html),
Neon, ALE and Simple DQN in that order.
If you want the step-by-step (most of this is in the Simple DQN README.md):
Install Cuda
a) Check hardware and SO compatibility
b) Download the cuda toolkit (Particularly for ubuntu 14.04:
https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda-repo-ubuntu1404-8-0-local_8.0.44-1_amd64-deb
)
c) Execute the following commands to install the downloaded .deb file
sudo dpkg -i cuda-repo-.deb
sudo apt-get update
sudo apt-get install cuda
d) Update environmental variables:
export PATH="/usr/local/cuda/bin:"$PATH
export
LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/cuda/lib:/usr/local/lib:"$LD_LIBRARY_PATH
Install Neon
a) Install prerequisites:
sudo apt-get install libhdf5-dev libyaml-dev libopencv-dev pkg-config
sudo apt-get install python python-dev python-pip python-virtualenv
b) Clone repository:
git clone https://github.com/NervanaSystems/neon.git
cd neon
make
c) Activate the virtual environment. From the Neon directory do:
source .venv/bin/activate
Install ALE
a) Prerequisites:
sudo apt-get install cmake libsdl1.2-dev
b) Clone in desired directory and compile:
git clone https://github.com/mgbellemare/Arcade-Learning-Environment.git
cd Arcade-Learning-Environment
cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=ON .
make -j 4
c) Install python library (make sure to have the virtual environment
activated)
pip install .
Install Simple DQN
a) Prerequisites:
pip install numpy argparse logging
b) Install OpenCV and link library in virtual environment (NEON_HOME is the
directory where you cloned Neon)
sudo apt-get install python-opencv
ln -s /usr/lib/python2.7/dist-packages/cv2.so
NEON_HOME/.venv/lib/python2.7/site-packages/
c) Clone Simple DQN in desired directory
git clone https://github.com/tambetm/simple_dqn
cd simple_dqn
2017-10-25 12:12 GMT-03:00 Tambet Matiisen notifications@github.com:

Did you check NervanaSystems/neon#304
https://github.com/NervanaSystems/neon/issues/304 and it didn't solve
your problem?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tambetm/simple_dqn/issues/40#issuecomment-339363645,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXU1qSFiFPW16m3nHcayrFwhgFCpPDo6ks5sv0_agaJpZM4LIAJ_
.

authors: ctampier riccitensor tambetm


text:
WARNING : Traccar may have failed to start (Inapproiate ioctl for device)

Hi Tananaev,
while i running on terminal with console:
root@Track ~] # sudo   /opt/traccar/bin/traccar console
wrapper   | 4631 pid file, /opt/traccar/bin/./traccar.pid, already exist
wrapper   | ERROR: Could not write pid file /opt/traccar/bin/./traccar.pid: Inapproiate ioctl for device
Can you help me? thanks

I have fixed this issue before by removing the PID file by hand and then restarting the service.
However the last wrapper error could suggest IO issues which you may check in OS logs.

Hi,
I had to restart the OS and update the OS, but no significant results. We would be able to provide solutions that fit. Thanks

It seems like you are using old version of Traccar. I would recommend updating.

authors: FanerK hackerunet tananaev

repo: tananaev/traccar


text:
Add support to generic resources and others

Add base servlet for working with rest resources with generic type.
Refactor in core classes for support parameter Class<?> for base servlet.
Duplicate api urls to support plural to REST "Pattern"
Add support to url template for REST. Example: DELETE http:///api/device/3
Change order of authentication for priority session
Implement Command Pattern to customize execution in flow of methods add, update, delete.

I've thought about this and it doesn't make sense to support two versions of the API. I guess REST API makes more sense, so we should go with it.
What do you think about using javax.ws.rs to implement the API?
Instead of long polling (/async) interface, I think it makes sense to use web sockets.
Any thoughts?

Web sockets are great but must consider Jetty capabilities. Whether it supports NIO and if each WS session will require separate Java Thread (This was a case in older Tomcat versions)

Good point. I need to investigate it. What about implementing proper REST API using JAX-RS?

That would be great
I can help implementing REST API

Have a meeting with my friend tomorrow and will review source code.
On Saturday we have whole day free so cad do actual work

We will test Jetty against WebSockets and tell you results

Great! I will refactor to use JAX-RS.

Hi @tananaev, @guterresrafael
@zgnachvi has tested Jetty against WebSockets
here you can see results
And conclusion: Jetty WebSocket does not propagate threads per connection.
so you can start using WebSockets and it would be great
Also question. How will do REST API migration. Author or @guterresrafael or me and @zgnachvi
We have free time on Saturday and can help a lot i think
Thanks

Want to thank @zgnachvi one more time

I want to keep old API for the next release to give users some time to switch, so we need to implement REST alongside the old version. But at the same time it should be as independent as possible and allow for easy removal of the old API.

I think it's OK
So on Saturday we will implement REST
Would be great to ask @guterresrafael for help because he has already done most of the work

Hi,
I tested the jboss RESTEasy but could not support HATEOAS.
What JAX-RS implementation will be used? any preference?

I was thinking about Jersey.

The same for us :smile:
We also consider Jersey

Hi @tananaev
Here is the first REST method by @zgnachvi
https://github.com/sosoxuc/traccar/commit/f612e1c094e3e32d8d5b2dfa5abd8caf716b7c70
Please review code if style is good and code is valid
Thanks

P.S. We want to translate UI on Georgian
I have added i10n file manually but want to do this on https://www.transifex.com
Need your approval

I reviewed the commit and here are the comments:

Please use "rest" instead of "jaxrs" everywhere. It would make code more clear for people who don't know what JAX-RS is.
Please remove "jersey.version" from maven file. Only use variable if you need several dependencies with the same version (like Jetty).
RESP API should be a replacement of the old API and it should work with web interface as well. I think we need a config parameter to switch between old API and REST (not via "web.type").
I don't think login is a good example of REST. Also, I would rename it to "session" as REST should operate with resources.

First two things are very minor.
P.S. I added you on Transifex

Hi @tananaev , thx for review :)
i replaced jaxrs with rest and added config parameter for api -api.provider
I agree you about item 4, but this time, i think, it's not critical. We can change REST URL any time :)
Here is commit ttps://github.com/sosoxuc/traccar/commit/2b34fd60dfd9697d9e52b4587b0b6f8d248a8145

As I guess @zgnachvi did not changed methods at all, He just migrated on JAX RS, so if one changes config parameter, web must work with JAX RS as it did

@tananaev, in my last commit I removed http methods support, rollback all servlets and move all classes of api to package org.traccar.api.
I will finish implement support for roles (@RolesAllow) and refactor servlets to resources. What do you thing of creating a table to user roles? Please review the code and see if that was.
@zgnachvi @sosoxuc
restfull api not use sessions.
we need to organize ourselves to not do the same things.

@guterresrafael, I believe we should allow both cookie sessions (because it makes web client code easier) and regular HTTP authentication. But if it's too hard to implement sessions we can drop support for it.
I don't think we need a separate table for roles, but again I don't know much about implementation.
I will review code as soon as I find some free time.

In general I like the implementation. I'll try to make it less "generic" because I think it makes the code more complicated than it should be. As soon as I find time I'll proceed with the merge.

I did a lot of refactoring before committing the changes. More changes are coming soon, but I think the base for REST API is there.

authors: guterresrafael sosoxuc tananaev zgnachvi


text:
Not able to be Consistent

How can i become more consistent? I struggle at it, at time im very motivated and sometimes i struggle.

Everyone has a problem with that... the best you can do is try to prioritize your work and work at one thing at a time.

repo: tanaypratap/ama


text:
No city labels (townspot, name) on ES

Below is a screenshot of the capital region of NH, which should have labels for Concord, Manchester, and Salem. Zooming in & out I couldn't find them:

config
Manufacturer: samsung
Model: SAMSUNG-SM-G925A
Release: 5.1.1
Code name: REL
SDK: 22
Build number: master-598

Related: https://github.com/tangrams/eraser-map/issues/118

I had restored these at some point by adjusting the label offsets, but it looks like these commits https://github.com/tangrams/eraser-map/commit/6ac67aac6bdf68cee2b788dd89d7c50840de89b0 and https://github.com/tangrams/eraser-map/commit/c89238172c4c027749d9d12bf6fec997606605fe again caused the text and icons to overlap (thus to collide, and the icons have higher priority so the text is hidden). (Note comment about spacing being set to "half icon size" in previous commit, which is no longer true... that's what kept them from overlapping.) This can be verified by setting collide: false on the text at the root of the places layer.
Looks like we can address by tightening the sprites re: #118, then adjusting these offsets back to ensure the text clears below the icon.

Note: I upgraded this repo to use Tangram 0.5, which means that these place labels are also now missing from the web map (due to addition of sprite collision in tangram 0.5.0). However this matches the ES behavior so I believe it's best to keep things current and reflecting cross-platform behavior.

Sounds good, thanks. Consistency is (almost) always better!

Should be fixed in https://github.com/tangrams/eraser-map/commit/48acded90ccd1761f5a00c892434117b09d6af2e and https://github.com/tangrams/eraser-map/commit/8c5b1eaf0049d4cad05a60f47de9784e617511e5. Waiting to verify with a new Eraser Map build (soft verified in Tangram JS, though).

:city_sunrise:

Verified on device.

:iphone: :mag_right: :city_sunset:

authors: bcamper nvkelso

repo: tangrams/eraser-map


text:
3d object such as stairs

Hi,
Is there any way to show 3d objects such as stairs?sth like gltf files and etc..

Hi Majid,
tangram-es doesn't support 3D model files as a data source right now. To create 3D geometry you can encode your model in one of the currently supported data formats like GeoJSON. Models in these formats are currently limited to sets of polygons with "height" and "min_height" properties used for extrusion, but this covers a surprising amount of cases!

@blair1618  thanks for your help,
Is there any examples or tools to examine how for example manage to create an stairs in geojson format?

A very simple tool for making GeoJSON is http://geojson.io but there are probably others. The basic idea is to create "polygon" features for each portion of your geometry that needs to be extruded to a different height. The "min_height" and  "height" members of the feature's "properties" should specify the minimum and maximum height in meters for that polygon.

@blair1618 thanks for your good explanation

repo: tangrams/tangram-es


text:
Filter by minimum api version

I think it would be a neat feature while looking for a package for slightly older devices :)

Nice idea 💯

Although I have added a filter for minAndroidVersion, but still the process would have to be manual because not many apk variants have multiple supported android versions nowadays. For example YT Music only has 8.0+ for all variants.

A solution for this might be converting that 8.0+ tag to the actual API version and comparing that number to version selected by user. At least I think so 😅. Thank you for such rapid response btw.

Do you mean mapping the android version to the sdk version ? Like Android 15 -> API 35 etc etc. For now i guess the simple logic is best for making the scrapping easier.

Yeah something exactly like that. Simpler logic surely is better especially for scraping, but maybe as the project is entirely in typescript you can add interfaces to make sure the data is scraped correctly and then apply the filters. Just a suggestion to make the project easier to maintain for future features 😉.

Sure, will definitely look into this.

authors: TheUnityGuy tanishqmanuja

repo: tanishqmanuja/apkmirror-downloader


text:
Xcode project missing files that have been added to .gitignore

Forked the repo to hopefully help contribute but not sure how you would like this to occur.  The Xcode project seems pretty broken right now due to many missing files that are added in the .gitignore.  I am not able to run the current tests and not sure how you would like newly added tests to be added to the project.

The files included in the .gitignore are for development purposes only. Files like main.swift can't be included in the repo, or they will make the module compile as an executable instead of a library which will make it incompatible with the Swift Package Manager.
You can copy the main.swift file from the Example repo.
That should be the only file you need to make the Xcode project compile. All others are optional.

authors: kdawgwilk tannernelson

repo: tannernelson/vapor


text:
Feature req: add a context object for tests

https://twitter.com/izs/status/1101143670290472961
Ava supplies a context object to subtests. This aids with reducing shared state amongst subtests. See https://github.com/avajs/ava/blob/master/docs/01-writing-tests.md#test-context for a description of their feature.
It would be great if Tap 13 also supported this feature.

So, matching the behavior exactly is a little bit tricky, since beforeEach and afterEach don't get a Test object, they get a callback (or can return a Promise).  beforeEach and afterEach functions are called in the this-context of the t object that they're coming before or after, but that's considered a bit uncool to rely on these days, since it means you have to use non-arrow functions.
That being said, it wouldn't be hard to put a context object on Test objects, and then clone it for all the child tests.  I'll do that.  Then if you look at this.context in a child test, it'll be there.

How would you feel about just copying ava's beforeEach/afterEach API surface?
The one that tap has today is inspired more by Mocha (ie, it takes a cb and can return a promise).  That sort of made sense at the time, but I rather like Ava's approach of just passing in a t object.
What's unclear is whether you'd do t.end() on it?  Since a beforeEach isn't really a "test", this is a bit weird.
Also, it's a pretty significant breaking API change.  Even though v13 is a major, I've tried to make the changes required to actual test files as minimal as possible.  (Ie, you should be able to just re-generate any snapshots, and use pretty much the same exact test files.)
Another way to thread the needle and make it backwards compatible would be to do an API like this:
t.beforeEach((done, t) => {
  // call done() when done (or return a promise)
  // t is the test that we are "before"
  t.context.foo = t.name
  done()
})

t.test('bar', t => {
  t.equal(t.context.foo, 'bar')
  t.end()
})

t.test('baz', t => {
  t.equal(t.context.foo, 'baz')
  t.end()
})

I really don't know enough about the feature to make a judgement on that proposal. Hopefully my colleague @Greg-GB will chime in to give his opinion.
I did not envision it being a required change to test files but an optional one. If you do not have a need for a context in your tests then your test files should not have to change when the feature is available. But if you do need a context then you would be able to refactor your tests to use it.

The done()/return a promise approach sounds like a good option to me. I assume its required for one of those to be present in the beforeEach/afterEach if this change was to get in? If one of those two return types are not present, could the beforeEach/afterEach implicitly return a promise so this feature is sort of optional? Might be a little hacky.

Basically, I'd call the beforeEach/afterEach function as fn.call(testObject, callback, testObject).  So, if you were previously relying on this being the test, then it'll still work.  And if you were expecting a single done() argument, then it'll still work.  And if you return a promise (or, if it's an async function), it'll keep doing the same thing.  But the t object is there as a second argument so you can assign t.context if you like.  (this.context would also work, but it means you have to use "real" functions, not =>.)

I am not opposed to real functions.

@jsumners that makes 1 of us ;P

Done in v13.

🎉

authors: Greg-GB isaacs jsumners

repo: tapjs/node-tap

license: isc


text:
Migration with invalid schema can be applied.

The invalid migration leaves cluster in inconsistent state when using
'migrations' module in cartridge application.
Steps to reproduce:

Create cartridge application with migrations module and with 2 or more storages and bootstrap it.
Create a migration file in application dir 'migrations/01_test.lua' with the following contents:

    return {
        up = function()
            local utils = require('migrator.utils')
            local f = box.schema.create_space('test', {
                format = {
                    { name = 'bucket_id', type = 'integer', is_nullable = false },
                    { name = 'ID', type = 'string', is_nullable = false },
                },
                if_not_exists = true,
            })
            f:create_index('test_reference_pk', {
                parts = { 'ID'},
                if_not_exists = true,
            })
            f:create_index('bucket_id', {
                parts = { 'bucket_id' },
                if_not_exists = true,
                unique = false
            })
            utils.register_sharding_key('test', {'bucket_id'})
            return true
        end
    }

Apply migrations with command

    curl -X POST http://localhost:8081/migrations/up

POST request returns error so cluster configuration should not be commited. Error text:

 CheckSchemaError: spaces["test"].format["bucket_id"].type: bad value (unsigned expected, got integer)

Connect to storage instance and observer the 'test' space that should not be created.

Cluster logs:
    test.router | 2020-11-16 15:45:41.447 [25742] main/188/http/127.0.0.1:57362 I> Migrations to be applied: ["01_test.lua"]
    test.router | 2020-11-16 15:45:41.448 [25742] main/188/http/127.0.0.1:57362 I> Preparing to run migrations on localhost:3301
    test.router | 2020-11-16 15:45:41.448 [25742] main/188/http/127.0.0.1:57362 I> Preparing to run migrations on localhost:3302
    test.router | 2020-11-16 15:45:41.453 [25742] main/188/http/127.0.0.1:57362 twophase.lua:199 W> Updating config clusterwide...
    test.router | 2020-11-16 15:45:41.454 [25742] main/188/http/127.0.0.1:57362 twophase.lua:300 W> (2PC) Preparation stage...
    test.s1-master | 2020-11-16 15:45:41.454 [25751] main/118/main twophase.lua:54 W> CheckSchemaError: spaces["test"].format["bucket_id"].type: bad value (unsigned expected, got integer)
    test.s1-master | stack traceback:
    test.s1-master |        ...st/test/.rocks/share/tarantool/cartridge/ddl-manager.lua:114: in function 'validate_config'
    test.s1-master |        ...st/test/.rocks/share/tarantool/cartridge/confapplier.lua:205: in function 'validate_config'
    test.s1-master |        ...ltest/test/.rocks/share/tarantool/cartridge/twophase.lua:52: in function <...ltest/test/.rocks/share/tarantool/cartridge/twophase.lua:49>
    test.s1-master |        [C]: in function 'xpcall'
    test.s1-master |        .../work/git/ddltest/test/.rocks/share/tarantool/errors.lua:145: in function <.../work/git/ddltest/test/.rocks/share/tarantool/errors.lua:139>
    test.s1-master |        [C]: at 0x00608f60
    test.router | 2020-11-16 15:45:41.454 [25742] main/191/main twophase.lua:54 W> CheckSchemaError: spaces["test"].format["bucket_id"].type: bad value (unsigned expected, got integer)
    test.router | stack traceback:
    test.router |   ...st/test/.rocks/share/tarantool/cartridge/ddl-manager.lua:114: in function 'validate_config'
    test.router |   ...st/test/.rocks/share/tarantool/cartridge/confapplier.lua:205: in function 'validate_config'
    test.router |   ...ltest/test/.rocks/share/tarantool/cartridge/twophase.lua:52: in function <...ltest/test/.rocks/share/tarantool/cartridge/twophase.lua:49>
    test.router |   [C]: in function 'xpcall'
    test.router |   .../work/git/ddltest/test/.rocks/share/tarantool/errors.lua:145: in function <.../work/git/ddltest/test/.rocks/share/tarantool/errors.lua:139>
    test.router |   [C]: at 0x00608f60
    test.router | 2020-11-16 15:45:41.455 [25742] main/188/http/127.0.0.1:57362 twophase.lua:319 E> Error preparing for config update at localhost:3301:
    test.router | CheckSchemaError: spaces["test"].format["bucket_id"].type: bad value (unsigned expected, got integer)
    test.router | stack traceback:
    test.router |   ...st/test/.rocks/share/tarantool/cartridge/ddl-manager.lua:114: in function 'validate_config'
    test.router |   ...st/test/.rocks/share/tarantool/cartridge/confapplier.lua:205: in function 'validate_config'
    test.router |   ...ltest/test/.rocks/share/tarantool/cartridge/twophase.lua:52: in function <...ltest/test/.rocks/share/tarantool/cartridge/twophase.lua:49>
    test.router |   [C]: in function 'xpcall'
    test.router |   .../work/git/ddltest/test/.rocks/share/tarantool/errors.lua:145: in function <.../work/git/ddltest/test/.rocks/share/tarantool/errors.lua:139>
    test.router |   [C]: at 0x00608f60
    test.router | during net.box call to localhost:3301, function "_G.__cartridge_clusterwide_config_prepare_2pc"
    test.router | stack traceback:
    test.router |   ...t/ddltest/test/.rocks/share/tarantool/cartridge/pool.lua:151: in function <...t/ddltest/test/.rocks/share/tarantool/cartridge/pool.lua:141>
    test.router | 2020-11-16 15:45:41.455 [25742] main/188/http/127.0.0.1:57362 twophase.lua:319 E> Error preparing for config update at localhost:3302:
    test.router | CheckSchemaError: spaces["test"].format["bucket_id"].type: bad value (unsigned expected, got integer)
    test.router | stack traceback:
    test.router |   ...st/test/.rocks/share/tarantool/cartridge/ddl-manager.lua:114: in function 'validate_config'
    test.router |   ...st/test/.rocks/share/tarantool/cartridge/confapplier.lua:205: in function 'validate_config'
    test.router |   ...ltest/test/.rocks/share/tarantool/cartridge/twophase.lua:52: in function <...ltest/test/.rocks/share/tarantool/cartridge/twophase.lua:49>
    test.router |   [C]: in function 'xpcall'
    test.router |   .../work/git/ddltest/test/.rocks/share/tarantool/errors.lua:145: in function <.../work/git/ddltest/test/.rocks/share/tarantool/errors.lua:139>
    test.router |   [C]: at 0x00608f60
    test.router | during net.box call to localhost:3302, function "_G.__cartridge_clusterwide_config_prepare_2pc"
    test.router | stack traceback:
    test.router |   ...t/ddltest/test/.rocks/share/tarantool/cartridge/pool.lua:151: in function <...t/ddltest/test/.rocks/share/tarantool/cartridge/pool.lua:141>
    test.router | 2020-11-16 15:45:41.455 [25742] main/188/http/127.0.0.1:57362 twophase.lua:359 W> (2PC) Abort stage...
    test.router | 2020-11-16 15:45:41.455 [25742] main/188/http/127.0.0.1:57362 twophase.lua:383 E> Clusterwide config update failed
    test.router | 2020-11-16 15:45:41.455 [25742] main/188/http/127.0.0.1:57362 server.lua:745 E> unhandled error: CheckSchemaError: spaces["test"].format["bucket_id"].type: bad value (unsigned expected, got integer)
    test.router | stack traceback:
    test.router |   ...st/test/.rocks/share/tarantool/cartridge/ddl-manager.lua:114: in function 'validate_config'
    test.router |   ...st/test/.rocks/share/tarantool/cartridge/confapplier.lua:205: in function 'validate_config'
    test.router |   ...ltest/test/.rocks/share/tarantool/cartridge/twophase.lua:52: in function <...ltest/test/.rocks/share/tarantool/cartridge/twophase.lua:49>
    test.router |   [C]: in function 'xpcall'
    test.router |   .../work/git/ddltest/test/.rocks/share/tarantool/errors.lua:145: in function <.../work/git/ddltest/test/.rocks/share/tarantool/errors.lua:139>
    test.router |   [C]: at 0x00608f60
    test.router | during net.box call to localhost:3302, function "_G.__cartridge_clusterwide_config_prepare_2pc"
    test.router | stack traceback:
    test.router |   ...t/ddltest/test/.rocks/share/tarantool/cartridge/pool.lua:151: in function <...t/ddltest/test/.rocks/share/tarantool/cartridge/pool.lua:141>
    test.router | stack traceback:
    test.router |   .../git/ddltest/test/.rocks/share/tarantool/http/server.lua:743: in function 'process_client'
    test.router |   .../git/ddltest/test/.rocks/share/tarantool/http/server.lua:1199: in function <.../git/ddltest/test/.rocks/share/tarantool/http/server.lua:1198>
    test.router |   [C]: in function 'pcall'
    test.router |   builtin/socket.lua:1081: in function <builtin/socket.lua:1079>
    test.router | request:
    test.router | POST /migrations/up? HTTP/1.1
    test.router | Host: localhost:8081
    test.router | Accept: */*
    test.router | User-agent: curl/7.68.0
    test.router |
``

There's nothing to fix in the DDL module. There's nothing to check before the migration is applied. And past that it's too late.

repo: tarantool/ddl


text:
Wrong odoc binary

ocaml-platform is installing a broken odoc binary in my switch:
❯ dune build @doc
File "lib/.cmdliner_stdlib.objs/byte/_unknown_", line 1, characters 0-0:
ERROR: File "cmdliner_stdlib.cmti":
not an interface

The version of odoc is  2.2.0-ocaml5.0.0+platform
❯ ocaml-platform --version
0.8.0

It works if I install odoc.2.2.0 from sources with opam.

Thanks for the report, that is strange. What is the output of odoc --version on a switch where odoc.2.2.0-ocaml5.0.0+platform is installed?

Actually, the "not an interface" message is suggesting that the compiler that compiled the platform package is different from the compiler in your switch, which is not supposed to be the case...
Are you in a switch with a custom compiler?

The version of odoc was 2.2.0 and it's just a normal 5.0.0 switch :-)

authors: panglesd samoht

repo: tarides/ocaml-platform-installer

license: ISC


text:
macOS: installer cannot find sha512sum

On macOS the experience is not super smooth yet it seems :p
First try: I was confused because nothing was happened - but actually the output is mangled (notice where Password is displayed):
❯ sudo bash < <(curl -L https://github.com/tarides/ocaml-platform-installer/releases/latest/download/installer.sh)

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Password:
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  4488  100  4488    0     0   2347      0  0:00:01  0:00:01 --:--:--  5212

Second try: it goes a bit further but then fail because of a missing sha512sum:
❯ sudo bash < <(curl -L https://github.com/tarides/ocaml-platform-installer/releases/latest/download/installer.sh)
[...]
=> Download ocaml-platform-0.1.0-macos-x86_64.tar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2820k  100 2820k    0     0  1236k      0  0:00:02  0:00:02 --:--:-- 1674k
bash: line 87: sha512sum: command not found

Ideally, we wouldn't have to depend on external tools like sha512sum. I don't think the opam installer depends on it, right? How do they do checksums?

I have a fix for the mangled prompt and for the sha512sum command: https://github.com/tarides/ocaml-platform-installer/pull/77
The Opam installer simply don't check if the command it needs isn't available (and it uses an even more uncommon commands, openssl).
Checking the consistency of downloaded archives is a good practice but not required when using https. Skipping the check is fine but I'd be curious to know first if a distro don't have shasum (distributed with perl) installed by default.

authors: Julow samoht tmattio


text:
Harmony: SelectPanel based on DropdownPanel

PR includes

[x] Refactor
[x] Feature

Related issues
Resolve #959
Related issues:

https://github.com/taskany-inc/issues/pull/2419

QA Instructions, Screenshots, Recordings
Please replace this line with instructions on how to test your changes, a note on the devices and browsers this has been tested on, as well as any relevant images for UI changes.

/canary

/canary

repo: taskany-inc/bricks


text:
Multiple categories for the same item "sort" related problems

Expected behavior:
If I assign 2 categories to the same item I expect to be able to choose in which one they should be grouped in the menu.
Actual behavior:
This situation causes several problems; items see as the first category to which they belong (i.e. the one in which they will appear in the menu) the category that was created first in time. If you want to reverse this priority, you need to delete the "older" category and recreate it (this cause problems as all objects assigned to the category will lose it, and all child categories will be deleted too).
Reproduce steps:
Assign an object to two categories, see in which of the two categories it appears in the menu. Try to change the order without deleting categories?
Version:
v.3.0.4-beta.23.2
Additional Information:

My understanding is that it currently appears in both categories, is that incorrect?

@ryanmitchell
If I have products assigned to more than one category (for Internal kitchen purpose i.e. printers, kitchen display & co) products appear on the menu in only one of these categories (AS IT SHOULD BE). The problem is that what decides in which category they should appear in the menu is the creation date of that category; if I assign the "chicken" product to both the "starters" category (created November 7) and the "main courses" category (created November 10), it will appear in the "appetizers" category as it is older. This is problematic because if I want the opposite instead (for example let the product appears in the "main courses" category), the only way to do this is to delete both categories, create the "main courses" category first, then create the category "starters" and reassign categories to the product. This is a problem because deleting a category not only deletes all subcategories, but all products in that category must be reassigned (in the case of hundreds of different products, this takes a long time and renders the site unusable).
Possible fix would be let the user decide, for each product, in which of the multiple assigned categories it should appear...

I would expect that the item be listed in all categories it’s added under. That’s what I thought currently happened.

Think about category_A and category_B and item_C, that is assigned to both.
B is an older category than A (created before) so item_C appear only in B
There is no way to decide, for me, in which category C should appear. It is decided automatically by the system based on which category is older.

@ryanmitchell did you get my point?

As I said - to me the item should appear in all categories it’s assigned to.

I see in the 'grouped' view on the front end this isn't the case. What do you think @sampoyigi ?

Yep as Ryan stated item should appear in all categories it is assigned to. And changing the priority can be done using the Priority field.

This issue looks fixed. Closing, but please reopen if it still occurs.

authors: BreakSecurity ryanmitchell sampoyigi

repo: tastyigniter/TastyIgniter


text:
[feat] Haptic feedback and vibration API for mobile

Describe the problem
Right now, it doesn’t seem like there is any way to trigger haptic feedback or vibrations programatically on mobile, at least for Android.
Describe the solution you'd like
I would like a vibration plugin which offers different modes of vibration, e.g.:

Light/medium/hard haptic feedback
Light/medium/hard vibration
Vibration duration control

Alternatives considered
I’ve tried using the navigator.vibrate() web API, but it doesn’t seem to do anything.
Additional context
No response

For what it's worth, we've recently created a plugin for a client (in public) here, it's not quite ready to upstream it into this repo, but it's close enough that it'd be a waste of time for others to create a new plugin for this, hence me writing this message :)

Is this feature ready for upstream? It seems like is in stable release as in here
but it isn't in plugins list

oops, always forget to update the readme. thanks for the headsup

authors: FabianLars ardasugur httpjamesm

repo: tauri-apps/plugins-workspace


text:
[docs] Can't get custom CLI working as per example in documentation

Hello. I'm new to Tauri and Rust, so apologies if this is the wrong place to post this.
The documentation on at this page for the rust code for creating a custom CLI using Tauri does not appear to work.
I tried to place this code in my main.rs file to test, but I keep getting errors that "tauri::cli::get_matches" does not exist.
use tauri::cli::get_matches;

fn main() {
  match get_matches() {
    Some(matches) => {
      println!(matches)
    }
  }
...
}

Also in my cargo.toml file, I've got the cli feature enabled:
tauri = { version = "1.0.0-beta.5", features = ["api-all", "cli"] }
If the documentation is correct, but I'm doing something wrong, can I please ask for some guidance? Thanks!

Looks like there is a re-export missing (or it's intentional and the docs are outdated lol).
In the meantime you can access it via tauri::api::cli instead of tauri::cli.

Looks like there is a re-export missing (or it's intentional and the docs are outdated lol).
In the meantime you can access it via tauri::api::cli instead of tauri::cli.

Hello @FabianLars thanks for the advice. I've tried giving that a shot, but still run in to issues (mostly die to my lack of knowledge of Rust).

Any advice or maybe an example code snippet of how to use tauri::api::cli::get_matches()? Sorry, I'm just a bit lost.

try this
fn main() {
  let context = tauri::generate_context!();
  let cli_config = context.config().tauri.cli.clone().unwrap();
  match get_matches(&cli_config) {
    Ok(matches) => {}
    Err(_) => {}
  };

  tauri::Builder::default()
  	.run(context);
}

try this
fn main() {
  let context = tauri::generate_context!();
  let cli_config = context.config().tauri.cli.clone().unwrap();
  match get_matches(&cli_config) {
    Ok(matches) => {}
    Err(_) => {}
  };

  tauri::Builder::default()
  	.run(context);
}

@amrbashir , Thank you very much. This works perfectly!

Good to know, Idk why I closed this, the docs still are not up to date.

Good to know, Idk why I closed this, the docs still are not up to date.

Just as a heads up, I created a PR with the example code that you provided to update that specific portion of the docs. Thanks again!

authors: FabianLars amrbashir wtfacoconut

repo: tauri-apps/tauri


text:
[bug] non-exhaustive patterns: &PatternKind::Isolation { .. } not covered

Describe the bug
Error while compiling using "npm run tauri dev" with "sveltekit-ts" after "npm create tauri-app" script.
Reproduction

Install Rust and Cargo
npm create tauri-app
select npm > sveltekit-ts
Execute printed commands cd tauri-app npm install npm run tauri dev

Expected behavior
To be able to compile and see application.
Platform and versions
npm run tauri info

configuration-generator@0.0.0 tauri
tauri

Environment
› OS: Windows 10.0.19042 X64
› Webview2: 107.0.1418.35
› MSVC:
› Node.js: 18.7.0
› npm: 8.15.0
› pnpm: Not installed!
› yarn: 1.22.10
› rustup: 1.25.1
› rustc: 1.65.0
› cargo: 1.65.0
› Rust toolchain: stable-x86_64-pc-windows-msvc
Packages
› @tauri-apps/cli [NPM]: 1.1.1
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.1.1,
› tauri-build [RUST]: 1.1.1,
› tao [RUST]: 0.14.0,
› wry [RUST]: 0.21.1,
App
› build-type: bundle
› CSP: unset
› distDir: ../build
› devPath: http://localhost:1420/
› framework: Svelte
App directory structure
├─ .svelte-kit
├─ .vscode
├─ build
├─ node_modules
├─ src
├─ src-tauri
└─ static
Stack trace
error[E0004]: non-exhaustive patterns: `&PatternKind::Isolation { .. }` not covered
    --> C:\Users\U176884\.cargo\registry\src\github.com-1ecc6299db9ec823\tauri-codegen-1.1.1\src\context.rs:361:23
     |
361  |   let pattern = match &options.pattern {
     |                       ^^^^^^^^^^^^^^^^ pattern `&PatternKind::Isolation { .. }` not covered
     |
note: `PatternKind` defined here
    --> C:\Users\U176884\.cargo\registry\src\github.com-1ecc6299db9ec823\tauri-utils-1.2.0\src\config.rs:2164:3
     |
2160 | pub enum PatternKind {
     | --------------------
...
2164 |   Isolation {
     |   ^^^^^^^^^ not covered
     = note: the matched value is of type `&PatternKind`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
     |
362  ~     PatternKind::Brownfield => quote!(#root::Pattern::Brownfield(std::marker::PhantomData)),
363  ~     &PatternKind::Isolation { .. } => todo!(),
     |

For more information about this error, try `rustc --explain E0004`.
error: could not compile `tauri-codegen` due to previous error

Additional context
No response

Please run cargo update and try again. I think your tauri-utils has been updated to 1.2.0.

My bad. I recreated an app with "npm create tauri-app" and it works now.

authors: Nuli-byte lucasfernog


text:
feat(core): add option to use vendored openssl, closes #4470

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Docs
[ ] New Binding issue #___
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change?

[ ] Yes, and the changes were approved in issue #___
[ ] No

Checklist

[x] When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
[x] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
[ ] I have added a convincing reason for adding this feature, if necessary

Other information

Something doesn't feel right. By disabling the default features you're basically disabling TLS altogether, right? (at least if the vendored flag is disabled? i don't know, reqwest's feature flags are so weird i can't get my head around that)

You're right @FabianLars thanks for catching that. I was going to make the features exclusive but that doesn't work without some 1.60 features, and I forgot to remove that.

authors: FabianLars lucasfernog


text:
fix(core): fix require_literal_leading_dot flipped behavior

Regression introduced in: https://github.com/tauri-apps/tauri/pull/6969 see https://github.com/tauri-apps/tauri/pull/6969#discussion_r1232018347

What kind of change does this PR introduce?

[X] Bugfix
[ ] Feature
[ ] Docs
[ ] New Binding issue #___
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change?

[ ] Yes, and the changes were approved in issue #___
[X] No

Checklist

[X] When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
[X] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
[X] I have added a convincing reason for adding this feature, if necessary

Other information

Shouldn't we just PR against 1.x and just cherry pick to dev or merge 1.x to dev later?

yeah I will just open another PR

authors: amrbashir lucasfernog


text:
feat(bundler/nsis): allow including additional NSIS plugins

This PR aims to add an additionalPlugins configuration option for the NSIS bundler, which allowing developers to use various functionalities provided by NSIS Plugins in the NSIS template. I apologize for not being very familiar with the tauri project structure, if there are any omissions, please kindly point them out.
The result I expect is to configure something like the following in tauri.conf.json, and then tauri can copy the dll file written in additionalPlugins to the nsis plugin directory before packaging nsis.
{
  "tauri": {
    "bundle": {
      "windows": {
        "nsis": {
          "template": "./template/installer.nsi",
          "additionalPlugins": ["plugins/SimpleSC.dll"]
        }
      }
    }
  }
}

@amrbashir @FabianLars @lucasfernog Would you take a look at this?

if you're using a custom NSIS template, you can just include additional plugins in your template, without having to add this option

Oh, I'm sorry, I don't know enough about NSIS, You are right.

authors: Pylogmon amrbashir


text:
Exceptions thrown in Future callbacks are not handled

They are neither logged nor does the caller gets feedback if e.g an INVOCATION message was sent. This leads to situations where caller simply hang up if they haven't any timeout specified without any feedback to why this occurs. See https://github.com/tavendo/AutobahnPython/issues/484 for an example of such a situation.

sure. attach a errback handler to the future ..

Shouldn't it be the responsibility of the library to make sure that no exception is unhandled but atleast logged and any stateful operations with a peer are closed accordingly? I'm not talking about exceptions  raised in user code but in autobahns handlers/callbacks itself. While I think that we can all agree on the fact that such exceptions shouldn't be raised in the first place, #484 shows that it can happen anyways.
Besides that, a user can't just attach an errback handler because 1) if @inlineCallbacks or any similiar decorator is used, the user has no access to the returned future 2) the user can only attach an errback handler BEFORE autobahn attaches his, making it completely pointless to attach one in the first place.

Exceptions raised in user code (e.g. from a registered user procedure or from a session lifecycle callback) now go through http://autobahn.ws/python/reference/autobahn.wamp.html#autobahn.wamp.protocol.ApplicationSession.onUserError, and the default implementation we provide for this will log it https://github.com/tavendo/AutobahnPython/blob/master/autobahn/twisted/wamp.py#L67
That means, you can override and handle yourself, or, if you don't do that, it'll get logged.
Exceptions raised inside the library, which are not handled in any way (neither acted upon, or logged) are bugs in the library.
consider this:
from __future__ import print_function
from twisted.internet.defer import Deferred, inlineCallbacks, returnValue
from twisted.internet import reactor

# this doesn't help: it'll just print more detail
# _if_ and _when_ an error is handled
#from twisted.internet.defer import setDebugging
#setDebugging(True)

@inlineCallbacks
def foo():
    returnValue(1/0)

@inlineCallbacks
def bar():
    res = yield foo()
    returnValue(res*2)

d = bar()

# this doesn't handle the error. it'll be swallowed, and
# twisted will only print the issue when the reactor stops
d.addCallback(print)

# this _is_ handling the error
#d.addCallbacks(print, print)

reactor.callLater(3, reactor.stop)
reactor.run()

if @inlineCallbacks or any similiar decorator is used, the user has no access to the returned future

sure. use a try/except block.
I am nevertheless reopening this issue: what's your opinion @hawkowl and @meejah ?

the Twisted docs have this to say:

The reason Deferred can't automatically show your errors is because a Deferred can still have callbacks and errbacks added to it even after a result is available -- so we have no reasonable place to put a logging call that wouldn't result in spurious tracebacks that are handled later on. When a deferred is garbage collected with a Failure, a traceback is automatically printed. However, if you keep a reference to your Deferred and it is never garbage collected, it's possible no traceback will be printed.

Just a meta-point about @inlineCallbacks: the function it decorates does just return a Deferred, that you can add errbacks to as normal.

As to "internal"-type errors, I think they should be logged (e.g. log.failure, with traceback) and bubbled up -- if they "shouldn't happen" then the caller of the method must receive an error.
There may still be some places where errors are only logged at "debug" level -- which should be changed to critical/failure IMO. In general, this sort of logging has been improved a lot recently... If this issue is one of those, though, we should make a test-case and fix it.
So: if an INVOCATION fails because the invoked method itself threw an error, we should just throw an error back into the caller (without logging ourselves). If INVOCATION fails because of some internal library error, there should be a stack-trace logged (and the error should get thrown back to the caller).

@meejah I agree. What you describe is how we ideally should handle the 2 cases (invoked procedure raises, vs. internal library error).

If INVOCATION fails because of some internal library error, there should be a stack-trace logged (and the error should get thrown back to the caller).

"some internal library error" .. happening anywhere? If the error is e.g. in the code path that sends the WAMP error message back to the router, the message isn't sent. We can't escape that. Some internal errors will be fatal - no message goes out.

Currently, when a registered procedure throws an error, we both log (via the default implementation of onUserError) and return a WAMP ERROR message to the router https://github.com/tavendo/AutobahnPython/blob/master/autobahn/wamp/protocol.py#L803
The problem in #484 is this line: errmsg = "{0}".format(err.value.args[0])
It assumes err.value would always have an args being a tuple/list of non-zero length. And that fails badly, because as it turns out, this isn't always the case.
This is what I ment with the first paragraph above: it's a library bug in the code path that creates/sends the WAMP error message.
And it isn't logged, because the bug is happening already in an errback.

Just to clarify this again because you put considerable effort into that aspect: I am not concerned about how error handling of exceptions in user code is currently done.

Exceptions raised inside the library, which are not handled in any way (neither acted upon, or logged) are bugs in the library.

This is exactly my particular concern. Yeah those bugs shouldn't happen in the first place but they happen anyways. The least thing to do is to log these currently uncaught and unlogged exceptions.
I wasn't aware of the fact that twisted logs uncaught/unhandled exception if the reactor stops. Although I still believe that logging is neccessary as that behaviour of twisted can easily be overlooked.
Twisted supports chaining of errbacks (im not exactly sure how asyncio handles this though). One just needs a simple utility function that adds a second errback handler which performs the desired logging to a future after the actual callbacks have already beend added.

twisted logs uncaught/unhandled exception if the reactor stops

To be super precise: Twisted logs unhandled errors that accumulated inside a Deferred when the Deferred is garbage collected. And that happens at the latest when the the reactor stops.

Twisted supports chaining of errbacks (im not exactly sure how asyncio handles this though).

asyncio Futures don't have chaining http://autobahn.ws/python/asynchronous-programming.html#asyncio-futures-and-coroutines

Well in that case we could write a simple decorator which just wraps the original errback in a try-block.
We could apply that decorator manually each time or maybe write a utility function:
_add_callbacks(future, cb, errback):
     txaio.add_callbacks(future, cb, log_exceptions(errback))

There is already a helper called _swallow_error in some place; this logs the error and cancels it (by returning None). Usually this is added to any Deferreds/Futures from "user" callbacks (e.g. when we're calling onJoin etc) but there may be other cases where it's appropriate. As @oberstet says, sometimes this also fails :( or there may still be cases where we've ignored a Deferred instead of adding a logging error-handler.
BTW, I think just txaio.add_callbacks(future, None, logger.failure) should be enough with a (new) Twisted logger...

As far as this particular bug is concerned, we were getting an exception while trying to log an error. Outside of pernicious issues like this, I think we're properly logging internal failures as well as possible. So, I believe this bug can be closed.
@Paranaix is this correct?

@meejah No this is not correct. That error happens in (internal/autobahn) code responsible for sending back an ERROR message (application logic, not logging). To state it differently: At some places (namely callbacks added by autobahn) exceptions caused by erroneous internal/autobahn code are logged.

Ah, okay, so very-probably code like this: https://github.com/tavendo/AutobahnPython/blob/master/autobahn/wamp/websocket.py#L106 needs to log an "internal error" instead (as in: we tried to handle an incoming message, but "something" unexpected went wrong so it should be logged so a proper bug can be filed).
I'll make a test-case that simulates your particular problem to make sure this stays-fixed.

authors: Paranaix meejah oberstet

repo: tavendo/AutobahnPython


text:
The 10 required coefficients g(n) in the training data?

I read your article carefully, but I really don’t know how to obtain the 10 required coefficients g(n) in the training data? If it is convenient and not troublesome for you, can you tell me how these 10 coefficients are converted？

The components g^(n) are the neural network outputs. The network has 10 nodes in the output layer.

repo: tbnn/tbnn


text:
UI Components Question

Hey guys,
Love Boilerplate, thanks for creating it! Quick-question, where would someone put common/reusable UI components? Might be a cool thing to build into the boilerplate, going forward.
Thanks again!

NPM would be the ideal place for this!

authors: danstanhope tbranyen

repo: tbranyen/backbone-boilerplate


text:
Problem with Heroku setup

Well I described issue here: http://stackoverflow.com/questions/8399123/heroku-paypal-adaptive-gem-setup
Thanks in advance !

Update: I creted payment request but when i send it to PayPal:
NoMethodError: undefined method strip' for 1322438087:Fixnum         /usr/ruby1.9.2/lib/ruby/1.9.1/net/http.rb:1304:in block in initialize_http_header'
/usr/ruby1.9.2/lib/ruby/1.9.1/net/http.rb:1302:in each'         /usr/ruby1.9.2/lib/ruby/1.9.1/net/http.rb:1302:in initialize_http_header'
/usr/ruby1.9.2/lib/ruby/1.9.1/net/http.rb:1670:in `initialize'

Sorry guys, I din't update gem to last ver. There was fix for this 3 days ago.. :(


text:
Implement a new data table widget

The built-in widget is ok, but its data structures are super inefficient, which limits us to about 10k rows. It shouldn't be too bad(?) to fork the current widget and represent each row as a tuple of its data.

Arrow would be the perfect backend for this -- should be able to just slice() the arrow table to the rows in the scroll region

repo: tconbeer/harlequin


text:
🛑 Why Are You Awake is down

In c019e2f, Why Are You Awake (https://whyareyouawake.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Why Are You Awake is back up in 05f4c6b.


text:
Why does getSupergroupFullInfo take an int32 ID but my group has an int64 ID?

I'm trying to run getSupergroupFullInfo for a group but the id of this group is an int64 so whenever I compile I get the usual warning for possible loos of data and then when executing I always get that the group does not exist.
Am I misunderstanding what the correct id for the group is? Is it local or is it something on Telegrams server?
I've had the same issue with all the other functions related to supergroups.

Because you are using chat_id not supergroup_id.
Every supergroup has supergroup_id that you can get it by calling getChat then chat.type.supergroup_id.

That was it, thanks!

repo: tdlib/td


text:
🛑 send.codespace.cz is down

In 838275b, send.codespace.cz (https://send.codespace.cz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: send.codespace.cz is back up in 0594f96 after 35 minutes.

repo: tdulcet/send-instances-status


text:
Its not an issue. Its query

We have around 300 user and we have to compute percentile of traffic usage of each user using spark streaming(getting from kafka).
Is there any example which shows how to do it using TDigest

I don't have an example in spark.
I could help you create one if you would like to work together on this.

I don't have an example in spark.
I could help you create one if you would like to work together on this.

Do you have an answer to my question about working together?
If not, I will close this issue in a few days.

Do you have an answer to my question about working together?
If not, I will close this issue in a few days.

Hi, We chose other options. I will close this issue.

Hi, We chose other options. I will close this issue.

Ashok,
Can you say what you chose?
On Sun, Jan 24, 2021 at 9:53 PM ashokblend notifications@github.com wrote:

Hi, We chose other options. I will close this issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tdunning/t-digest/issues/140#issuecomment-766561411,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB5E6UQ62YXGXVEPPHJKETS3UBMHANCNFSM4MC32YUQ
.

Ashok,
Can you say what you chose?
On Sun, Jan 24, 2021 at 9:53 PM ashokblend notifications@github.com wrote:

Hi, We chose other options. I will close this issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tdunning/t-digest/issues/140#issuecomment-766561411,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB5E6UQ62YXGXVEPPHJKETS3UBMHANCNFSM4MC32YUQ
.

authors: ashokblend tdunning

repo: tdunning/t-digest


text:
Add support for optionals for arguments and more explicitly specify capture groups

Additions

Support for optional in argument names
Support for variable annotations <const>, <close> and <total>

Changes

More explicit capture groups for blocks (function, record, enum, while, if, repeat, for)

It seems as if Sublime Text (and maybe others?) requires more explicit capture groups to actually highlight the words correctly

Slight change to function-type to usage to reuse function-arg-name and function-arg-type.

I wasn't exactly sure why it wasn't reusing them before, so I hope it doesn't cause a regression. Can change back if needed.

Pictures
Before:

After:

Before:

After:

I'll maybe check VSCode to see if it has broken anything.

I can confirm it doesn't break vscode or fleet (a Jetbrains editor).
Screenshots from VSCode (note the ? is now being highlighted):

Added variable annotations! Went back today and decided to add these in as well.

Interfaces and extensions:

Hello, thanks for the PR! I'm merging this!
I made some changes to the grammar in vscode-teal a few months ago (including adding interfaces), but I completely forgot to sync the plist afterwards...
Currently, I use teal.tmLanguage.json as the main "source" for the grammar, instead of writing plist directly. If I remember correctly, I used this tool to convert the tmLanguage.json into plist: https://github.com/wareset/plist2. Instead, I suppose it would make sense to use plist as the main grammar... (Although, I think tmLanguage.json is a bit more pleasant to work with, since plist is quite verbose!)

Yeah, interfacing with the plist directly would not be the strat.
I was actually converting the plist to yaml with yaplon and editing it and then re-generating the plist and the json (when i tested on VSCode).
From some of the blog posts I was reading, a lot of folks use yaml and then convert to everything else. I'll make an issue and maybe we can spitball some ideas on strats for support/maintenance.

authors: FourierTransformer pdesaulniers


text:
SIFT not installing

I have tried to install sift with the latest release 1.8.5 through the curl command on a fresh Ubuntu 18.04 VM.
So I run :
sudo sift install --mode=desktop
I got
`

Running: sift-config-tools
Running: sift-config
Update returned exit code not zero
Error: Update returned exit code not zero
at ChildProcess. (/snapshot/sift-cli/sift-cli.js:529:23)
at ChildProcess.emit (events.js:196:13)
at maybeClose (internal/child_process.js:1011:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:5)
`

Then I have run faulty with the server mode and got similar error.
This is the log :
saltstack.log
Thank you in advance

Looks like requests to get certain files are getting blocked and resulting in failure
    comment: "Problem encountered installing package(s). Additional info follows:\n\nerrors:\n
      \   - Running scope as unit: run-re40283004bf2461089b5510c8257873f.scope\n      E:
      Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/e/ettercap/ettercap-common_0.8.2-10build4_amd64.deb
      \ 499  Request has been forbidden by antivirus [IP: 91.189.91.38 80]\n      E:
      Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"

Thank you, so it's really my antivirus ? I'll try to run without it

Hit by the most common error. Next, my first will be [Ctrl F] + "antivirus" in the log file.
Thank you very much for troubleshooting !

authors: Kojuda ekristen

repo: teamdfir/sift


text:
SIFT CLI - KDE Wallet Service

Hi,
I installed SIFT on the SIFT OVA (sift was missing).  I'm doing a sift upgrade and I'm getting the following pop-up box.

What package is doing this and what option should I pick?
Thanks,
Salty

I found reference to a similar issue and this seemed to resolve pip prompting for the KDE Wallet.
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install setuptools_rust
sudo -H pip3 uninstall keyring
sudo pip3 install --upgrade keyrings.alt
Salty

Hey @salty4n6 -- what SIFT OVA are you using where SIFT is not installed, that doesn't seem correct?
The current community OVA on SANS website does not have the SIFT CLI installed but it is still 100% SIFT.
I've never seen KDE Wallet installed before, to my knowledge both 18.04 and 20.04 SIFT builds are gnome based not KDE, so not sure where KDE stuff is coming from unless you aren't actually using a SIFT OVA and instead using some other flavor of linux?

Regardless, the KDE wallet is nothing being installed directly by SIFT, could be a dependency of something I suppose or installed by default? Could be wrong about KDE vs GNOME too.

Hi, The KDE wallet issue was happening on the latest OVA that doesn't have SIFT installed but I followed the instructions for installing SIFT so I can have an up to date system.  I have also done clean Ubuntu 18.04 and 20.04 installs and installed SIFT and both installs give the same KDE Wallet prompts.  The only packages I've installed before installing SIFT are build-essential, dkms, vim, and the virtualbox guest additions.  I also noticed that there seems to be an issue with the account creation?  I now have a user called {{ user }} on my systems.
I'm going to do another clean install of Ubuntu 18.04, apply all the latest OS updates, and install the couple of packages I listed earlier and will post back.  I'll include the salt log file, too.
Salty

Hi,
I did a clean Ubuntu 18.04.5 install, updated everything, installed a couple of packages (vim, dkms, and build-essential),
and VirtualBox guest additions.  I installed SIFT and the KDE Wallet prompt happened again.
I also have a new home directory called {{ user }}.
The install failed with the following:

Running: /usr/local/etc/foremost.conf
Running: sift-config-tools
Update returned exit code not zero
Error: Update returned exit code not zero
at ChildProcess. (/snapshot/sift-cli/sift-cli.js:542:23)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1051:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

----- PLEASE READ ----------------------
A lot of failures are caused by the apt system being locked
or unhealthy.
Before opening an issue in GitHub, please check to see if
your apt system is healthy.
Try running 'apt-get update' then remove any packages that
aren't used by running 'apt-get autoremove'

Thanks,
Salty
saltstack.log

I will take a look, we have primarily started to move on to 20.04, might be worth a try too
Sent from my iPhone

On Apr 17, 2021, at 14:19, salty4n6 @.***> wrote:

Hi,
I did a clean Ubuntu 18.04.5 install, updated everything, installed a couple of packages (vim, dkms, and build-essential),
and VirtualBox guest additions. I installed SIFT and the KDE Wallet prompt happened again.
I also have a new home directory called {{ user }}.
The install failed with the following:
Running: /usr/local/etc/foremost.conf
Running: sift-config-tools
Update returned exit code not zero
Error: Update returned exit code not zero
at ChildProcess. (/snapshot/sift-cli/sift-cli.js:542:23)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1051:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
----- PLEASE READ ----------------------
A lot of failures are caused by the apt system being locked
or unhealthy.
Before opening an issue in GitHub, please check to see if
your apt system is healthy.
Try running 'apt-get update' then remove any packages that
aren't used by running 'apt-get autoremove'
Thanks,
Salty
saltstack.log
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

I'll give 20.04 a rip and let you know.

20.04 has the same KDE Wallet pop-up and the {{ user }} issue.  From looking at the salt.log, it looks like the errors are related to the changes to the sansforensics user account.  The KDE prompt is still strange but I'll run the SIFT install again to see if it comes back and if it does then I'll run the other commands I found earlier then run SIFT install again to see if the prompt comes back.
Salty
saltstack.log

Good news is the system knows that SIFT is installed

running sudo sift update now

sudo sift update prompts for the KDE Wallet then I ran
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install setuptools_rust
sudo -H pip3 uninstall keyring
sudo pip3 install --upgrade keyrings.alt
I ran sudo sift update and the KDE Wallet prompts are gone.  Not sure what all is going on.
Salty
I attached the salt log for the last run with the upgrade to keyrings.alt
sift-keyrings-upgrade.log

I haven't seen this happen through normal use, but since you are upgrading pip, perhaps it's related to that. I'll check with a few others as well.

I saw the same popup when I installed on a fresh 18.04 box yesterday. The install error'd out from lack of space, so I had to add more space to root and tried again, and the popup didn't come back but it still gave an error and left a {{user}} folder in /home.  I thought something broke due to the space issue and since there's no way to uninstall sift, I've rebuilt the box with 20.04 and and trying the install again now.
One other thing I noticed is that the verification of the asc file doesn't work using gpg, as the file is created in openpgp instead.

I'll take ac closer look tonight/tomorrow, some recent changes were made with the user, but I think we fixed one bug but might not have pushed the change.
Regard PGP, it shouldn't matter PGP is PGP, but I'll verify and see what's causing a problem.

~/Downloads$ gpg --verify sift-cli-linux.sha256.asc
gpg: verify signatures failed: Unexpected error

~/Downloads$ gpg -v -d sift-cli-linux.sha256.asc
gpg: armor header: Version: OpenPGP.js v4.10.1
gpg: armor header: Comment: https://openpgpjs.org
gpg: public key is A2156B0CEAE26425
gpg: using subkey A2156B0CEAE26425 instead of primary key 15B9AD7122598A94
gpg: encrypted with 4096-bit ELG key, ID A2156B0CEAE26425, created 2013-12-07
      "SANS Investigative Forensic Toolkit <sift@computer-forensics.sans.org>"
gpg: decryption failed: No secret key

Tried older release of sift-cli (1.9.2) and it still errors out.
>> Running: /usr/local/etc/foremost.conf
>> Running: sift-config-tools
Update returned exit code not zero
Error: Update returned exit code not zero
    at ChildProcess.<anonymous> (/snapshot/sift-cli/sift-cli.js:547:23)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:443:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:674:12)

----- PLEASE READ ----------------------

A lot of failures are caused by the apt system being locked
or unhealthy.

Before opening an issue in GitHub, please check to see if
your apt system is healthy.

Try running 'apt-get update' then remove any packages that
aren't used by running 'apt-get autoremove'

**~/Downloads$ ls /home
 sentner  '{{ user }}'**

/var$ tail /var/cache/sift/cli/v2021.4.2/saltstack.log
  user_|-sift-user-sentner_|-sentner_|-present:
    __id__: sift-user-sentner
    __run_num__: 561
    __sls__: sift.config.user.user
    changes: {}
    comment: 'These values could not be changed: {''home'': ''/home/{{ user }}''}'
    duration: 14.622
    name: sentner
    result: false
    start_time: '03:48:14.323389'

I believe this was an accidental bug introduced in 2021.4.2, but not seeing it in 2021.4.3. Please run an upgrade or fresh install and let me know. I'm doing a full run through as we speak.

Hi Erik,
I did a clean install of Ubuntu 20.04 and installed with the latest version 2021.4.3 and I had the same results ( KDE Wallet and {{ user }}). I ran a sift update afterwards and I'm still getting errors.  I'm attaching the log for the update.  I forgot to grab the log for the clean install.
Thanks,
Salty
saltstack.log

Hi Erik,
I did a clean install of Ubuntu 20.04 and installed with the latest version 2021.4.3 and I had the same results ( KDE Wallet and {{ user }}). I ran a sift update afterwards and I'm still getting errors.  I'm attaching the log for the update.  I forgot to grab the log for the clean install.
Thanks,
Salty
saltstack.log

I’m running another build now, so far haven’t reproduced it.
Sent from my iPhone

On Apr 20, 2021, at 19:49, salty4n6 @.***> wrote:

Hi Erik,
I did a clean install of Ubuntu 20.04 and installed with the latest version 2021.4.3 and I had the same results ( KDE Wallet and {{ user }}). I ran a sift update afterwards and I'm still getting errors. I'm attaching the log for the update. I forgot to grab the log for the clean install.
Thanks,
Salty
saltstack.log
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Ok I duplicated this as well. Looks like they are entirely unrelated.

Good timing.  I was just about to post my update from another machine going from 2021.4.2 to 2021.4.3.
Thank you for looking into these issues.

I have a fix for {{ user }} -- we'll see if they are actually linked together. I spun up an older OVA that doesn't have any of these issues. Looking at the differences.

It's the latest version of pip that is doing the KDE wallet stuff. Pip wants to create a wallet for some reason :/

Apparently this is a known issue that is being worked on in a number of different ways.

Just upgraded via 2021.4.4 - all good with the {{ user }}.  Thanks Erik.

authors: ekristen esentner salty4n6


text:
🛑 PMS Application - https://app.staging.greyfinch.com/ is down

In a9d49c0, PMS Application - https://app.staging.greyfinch.com/ (https://app.staging.greyfinch.com/) was down:

HTTP code: 503
Response time: 210 ms

Resolved: PMS Application - https://app.staging.greyfinch.com/ is back up in 9950cdd.

repo: teamgreyfinch/staging-status


text:
v4 $message->reply no longer working?

Hi. i was using v3, later changed to v4-new because it was a lot more stable, but now i tried the new v4 branch and it seems that $message->reply('pong!'); is no longer working. I never get any message in discord now.
Since that is also not in the example, is it known that it is not working? Has anything changed there or am i just too stupid?
The method at least doesn't seem to have changed.

It's of a promise now.. should be
php $message->reply($str)->then([$deferred, 'resolve'], [$deferred, 'reject']);

thanks.
i tried this code now, but i am probably doing the promise stuff wrong.
This is my shorted code:
$discord = new Discord(['token' => $this->settings['token']]);

$discord->on('ready', function ($discord) {
    $discord->on('message', function ($message, $discord) {
        echo "message received from: ".$message->author->username.' msg:'.$message->content, PHP_EOL;
        $message->reply('pong!')->then(
            function ($value) {
                echo $value.PHP_EOL;
            },
            function ($reason) {
                echo $reason.PHP_EOL;
            }
        );
    });
});
$discord->run();

i get the "message received from.." message, but never any reply.

thanks. works with the latest version. ;)

authors: Lytearro lsascha

repo: teamreflex/DiscordPHP


text:
always show 2 elements in array???

i write some code to add 1 element to array when received a new message. but, i dont know reason my array seem not to add new element?.
check my images...

Move the $cacheArr definition to below the echo statement. You are redefining it every time you receive a message.

Hi,
Moved the $cacheArr definition to below the echo statement, but dont work @@.
here my script:
http://pastebin.com/p2iBuf32

On line 15 change the statement to:
$discord->on('message', function ($message, $discord) use (&$cacheArr) {

thanks, it works.


text:
Feature flag TorSecretKey and OnionAddress.

Building without v2/v3 feature flag failed because the enum variants needed certain structs which were already feature-flagged.

Indeed, it was not compiling when either v2 or v3 feature was enabled but not none or both of them.
Thanks for PR. It was merged and it should work by now.

authors: bonomat teawithsand

repo: teawithsand/torut


text:
Optional Arguments

Hey together,
I tried using the historicaldata function, but with some additional arguments (e.g. Currncy). Unfortunately I always get an error. Can anybody help me?
Thanks in Advanced!

Precisely, I have seen the optional argument for currency is CCY ISO-3, but I do not know what exactly I have to plug in for USD e.g. I tried „CCY USD“, „CCY 840“, „USD“ but it all does not work.

Re-wrote the code extensively, and this time I provided more extensive examples some which include the use of overrides.
Also note that from now the code is heavily commented and that you can find details on how to use functions

repo: tebbb/VBA-Bloomberg-API-Wrapper


text:
Maintainership question

Hello,
I've improved your vcard tool as a fork at https://github.com/netinvent/csv2vcard
It now can map almost any CSV file through custom nested mapping, has a GUI, windows pre-built executables etc.
I'd like to take over the maintainership if you'd be okay with that.
If so, would you mind allowing "netinvent" organization push new packages to the csv2vcard namespace on PyPI ?
Also, would you mind pointing your README file to the new repo perhaps ?
If you want to keep the vcard tool maintainance, I can make a PR to your repo.
Best regards.

@tech4242 Any chances for this to happen ? If not, I'll have to rename the tool to get a new namespace on PyPI.
Thanks.


text:
inverse of forceClone

I usually have clone: true on on my collections, but there's one instance where I want to do a findOne (doing it separately via chain().find().data() is fine with me) where I want to not clone the results for performance reasons. Would it be OK to add an inverse of forceClone (sth like noClone: true) which skips cloning even if it is set on the collection?

Or alternately, if forceCloneMethod could be a function, I could make it a no-op

repo: techfort/LokiJS


text:
Custom filter in Profit and loss account

Issue Closed

repo: techgebra/polosys-books

license: Unlicense


text:
Customers and Vendors

[x] Advanced search not properly working

issue closed