Cannot query a value of type ulong greater than 2 ^ 63 in SQLite

Cannot query a value of type ulong greater than 2 ^ 63 in SQLite.
But that's what the official document says.
Query limitations
SQLite doesn't natively support the following data types. EF Core can read and write values of these types, and querying for equality (where e.Property == value) is also supported. Other operations, however, like comparison and ordering will require evaluation on the client.
https://docs.microsoft.com/en-us/ef/core/providers/sqlite/limitations?view=aspnetcore-3.0
Further technical details
EF Core version:3.0.0
Database provider: (Microsoft.EntityFrameworkCore.Sqlite)
Target framework: (NET Core 3.0)
Operating system:Windows 10
IDE: ( Visual Studio 2019 16.3)

It should work, but there may be a bug. @sharpwood Can you share a simple repro project we that can use to investigate?

The queried value will also be truncated to<PHONE_NUMBER>854775807

SqliteUlong.zip

How was your database created? It contains double values, not long as EF Core and Microsoft.Data.Sqlite are expecting.
select vkey, typeof(vkey) from bhobk;

vkey
typeof(vkey)

(null)
null

1188504575042808212
integer

1.13569128068376e+19
real

1.1667368640341e+19
real

This database is created by other software. Is there a way to solve this situation?

Ensure long values are inserted. If it's using C#, here is the logic we use:
long GetValueToInsert(ulong value)
    => unchecked((long)value);

Because the database is designed by other software and cannot be interfered with, can we correctly read the integer and real in it as an unlong?

I think it’s too late. The precision is already lost. But if you check against the persisted value<PHONE_NUMBER>683760000), it should work.

But you might have to use .HasConversion<double>() to get it to generate the correct SQL.

It seems that the accuracy has not been lost. I can't find any data according to<PHONE_NUMBER>683760000. Instead, I can find it with<PHONE_NUMBER>6837568195.

Confusingly, if I use a double query, I can't find the value of long. If I use long query, I can't find the value of double.

We strongly discourage mixing data types within the same column. This breaks some fundamental assumptions of ADO.NET and Entity Framework. As you’ve found, it may not always work.
Dynamic typing is a quirky feature unique to SQLite.

@sharpwood Can you also attach a SQLite database containing the data that is causing issues? Hopefully this will allow us to get to the bottom of what is happening with the different types of values.

https://github.com/aspnet/EntityFrameworkCore/files/3753479/SqliteUlong.zip Here is a test database in database folder

@sharpwood How are you determining that the "precision has not been lost"? I am never able to get the exact value that you are looking for. It certainly appears to me that precision has been lost.

@abpiskunov   I was mistaken before, precision has indeed been lost. However, it is good if we can query the value after losing the precision.


Gitadora support (BT5 draft code attached)

Add Gitadora support to BT5. Here is a code draft that someone sent me some time ago. Unfortunately, I don't have any references on who sent me that or what's the state of that. Assume this is based on a rather older BT5 version. Therefore, the code needs to be updated.
However, the code looks fairly complete so it is a really good reference to get started with a custom hook implementation along with IO modules etc.
Probably a good way to approach this is start from scratch and then copy-paste things bit-by-bit into your feature branch you are working on.

Bumping this, would really appreciate for GFDM to be added to Btools since there's not many good ways to run it other than gitadoratools which only works half of the time (if you're nice to it).

Not promising anything, as I am likely not going to be the person working on this. But, there were some discussions about looking into support of this once another project got wrapped up which also requires support for the ACIO over P3IO uart stuff. That's also the current major blocker regarding "someone needs to provide this". Any other concerns are mostly solved problems in the scope of bemanitools, so providing fundamental gitadora support is mostly putting the pieces together.
We don't have a timeline or anything for this and are also in need of more (external) contributors in general.


As a business owner, I want to save key information about my business in a "digital wallet" for later reference

Users should be able to:
• Input key information about their business, like city license and permit numbers
• Upload documents relevant to their business, like their business license and business plan

We built this as part of the Profile feature (specifically, the Notebook). Closing!


Frameit problems with iPhones in landscape

Question Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Question Subject
 Frameit;
 Yes, probably;
 No
Question Description
New to Frameit. Works as expected for my iPad screenshots but not for iPhone (8 Plus,  X and and Xs Max) All my screenshots are in landscape. I've downloaded the latest templates. Frameit correctly detects my iPad screens in landscape and applies my background and caption text; and generates a framed image as expected. For iPhone, the landscape image is used but the resulting framed image is in portrait.

I've tried using the various ways to rotate the image but the resulting framed image is still in portrait; for example, renaming the image to have force_landscaperight suffix. Th forces the iPhone to a landscape orientation but the resulting framed image is still in portrait and overall incorrect.

I've seen framed images in landscape (including in the frameit documentation) but it's not clear to setup frameit to achieve this.
Looking for some help here!
Happy New Year!

Sorry, forgot this:
✅ fastlane environment ✅
Stack

Key
Value

OS
10.15.2

Ruby
2.6.3

Bundler?
false

Git
git version 2.16.2

Installation Source
/usr/local/bin/fastlane

Host
Mac OS X 10.15.2 (19C57)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib

OpenSSL Version
LibreSSL 2.8.3

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

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

Xcode Version
11.3

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

platform :ios do
  desc "Generate new localized screenshots"
  lane :screenshots do
    capture_screenshots(workspace: "UnitConverter.xcworkspace", scheme: "UI Tests")
    upload_to_app_store(skip_binary_upload: true, skip_metadata: true)
  end
end

desc "Create ipa; see fastlane/gymfile for details"
  lane :build do
    increment_build_number
    clear_derived_data
    gym
  end

desc "Upload to App Store"
  lane :upload_ipa do
    deliver(skip_screenshots: true, skip_metadata: true, automatic_release: true)
  end

desc "Build and Upload ipa"
  lane :build_upload_ipa do
    build
    upload_ipa
  end

desc "Build and Upload ipa with new version"
  lane :build_upload_ipa_version do
    version = UI.input("What's the new version?")
    clear_derived_data
    build
    deliver(skip_screenshots: true, skip_metadata: true, automatic_release: true, app_version:version)
  end

desc "Submit ipa previously uploaded for review"
  lane :submit_ipa do
    deliver(automatic_release: true, submit_for_review: true, skip_screenshots: true, skip_metadata: true, skip_binary_upload: true)
  end

desc "Upload metadata only"
  lane :upload_metadata do
    deliver(submit_for_review: false, skip_screenshots: true, skip_metadata: false, skip_binary_upload: true)
  end

desc "Upload metadata and screenshots"
  lane :upload_metadata_screens do
    deliver(submit_for_review: false, skip_screenshots: false, skip_metadata: false, skip_binary_upload: true)
  end

desc "Frame screenshots"
  lane :frame_screens do
    frameit(path: "./fastlane/screenshots", silver: true)
  end

desc "Upload screenshots"
  lane :upload_screens do
    deliver(submit_for_review: false, skip_screenshots: false, skip_metadata: true, skip_binary_upload: true)
  end

`./fastlane/Appfile`
app_identifier("AppaSoftware.UnitConverter") # The bundle identifier of your app
<EMAIL_ADDRESS># Your Apple email address

itc_team_id "1175894" # iTunes Connect Team ID
team_id "3XFMY67LE6" # Developer Portal Team ID

# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

fastlane gems

Gem
Version
Update-Status

fastlane
2.139.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.3.0

slack-notifier
2.3.2

rouge
2.0.7

xcpretty
0.3.0

terminal-notifier
2.0.0

unicode-display_width
1.6.0

terminal-table
1.8.0

plist
3.5.0

public_suffix
2.0.5

addressable
2.7.0

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.7.0

babosa
1.0.3

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

excon
0.71.1

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20190701

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday_middleware
0.13.1

fastimage
2.1.7

gh_inspector
1.1.3

mini_magick
4.9.5

multi_xml
0.6.0

rubyzip
1.3.0

security
0.1.3

xcpretty-travis-formatter
1.0.0

dotenv
2.7.5

bundler
1.17.2

jwt
2.1.0

uber
0.1.0

declarative
0.0.10

declarative-option
0.1.0

representable
3.0.4

retriable
3.1.2

mini_mime
1.0.2

multi_json
1.14.1

signet
0.12.0

os
1.0.1

googleauth
0.9.0

httpclient
2.8.3

google-api-client
0.36.3

google-cloud-env
1.3.0

google-cloud-core
1.4.1

digest-crc
0.4.1

google-cloud-storage
1.16.0

emoji_regex
1.0.1

nanaimo
0.2.6

colored2
3.1.2

claide
1.0.3

CFPropertyList
3.0.2

atomos
0.1.3

xcodeproj
1.14.0

tty-cursor
0.7.0

tty-spinner
0.9.2

faraday
0.17.1

json
2.3.0

naturally
2.2.0

simctl
1.6.7

memoist
0.16.2

forwardable
1.2.0

logger
1.3.0

stringio
0.0.2

ipaddr
1.2.2

openssl
2.1.2

ostruct
0.1.0

strscan
1.0.0

date
2.0.0

fileutils
1.1.0

etc
1.0.1

io-console
0.4.7

zlib
1.0.0

libxml-ruby
3.1.0

rexml
3.1.9

psych
3.1.0

mutex_m
0.1.0

generated on: 2020-01-01


Upload deploy key

It now uploads the deployment key to the provider

This was done to fix a security issue

To verify I went to the repo settings in github.com and looked the deployment key under Deploy keys tab

LGTM but I'd prefer we didn't have a bunch of blank lines in the imports (other than separating the go builtins from the github packages)

Goland IDE does that automaticaly, I need to fix the configuration.


Long posts mess with other posts

Description
When a post has so much written into it and if the layout is multi-column then, it mess the UI of other posts by stretching them.
Steps to reproduce
Find a long post
Switch to multi column layout
click on read more
The shorter post will stretch to fill the space
Screenshots

Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional information
No response

Description
When a post has so much written into it and if the layout is multi-column then, it mess the UI of other posts by stretching them.
Steps to reproduce
Find a long post Switch to multi column layout click on read more The shorter post will stretch to fill the space
Screenshots

Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional information
No response

What do you think for solving this?? I think on clicking readmore, the post should be open like view all comments modal we have or you can say, comments modal.There we get the full post on demand. Any other solution in mind?

Yes, we can do this or I think we can redirect the user to the postview of that post. I also think that user must not be allowed to write such long captions. There must be some limit. What do you think?

Yes, we can do this or I think we can redirect the user to the postview of that post. I also think that user must not be allowed to write such long captions. There must be some limit. What do you think?

Yes, any option shall do, but redirecting user in this case would affect UX right? He would've to click back this way and thus he'd refrain from clicking readmore unless there's something interesting enough to read. Also,you're right, the captions and other text fields must have their own text limits.

No, I don't think so. If we redirect user than he/she has to just do one click to go back and it's the same for showing a modal. There also user has to do a click to close the modal. For example if we click on a long twitter post it also redirect us to that post. And if the user click read more than it means they are interested in that post and might love to see other people's engagement through comments which would be easy through redirecting.

No, I don't think so. If we redirect user than he/she has to just do one click to go back and it's the same for showing a modal. There also user has to do a click to close the modal. For example if we click on a long twitter post it also redirect us to that post. And if the user click read more than it means they are interested in that post and might love to see other people's engagement through comments which would be easy through redirecting.

agreed on this! :) Thanks for explaining


Fix place reward

Motivation and Context
Fix a bug in place reward
Also fix a bug in should_end
How Has This Been Tested
Locally
Bug fix (non-breaking change which fixes an issue)

LGTM.


scans.py error

Hello,
I am running macOS 10.12.3 with python 2.7. I downloaded cms via instructions listed on http://broad-cms.readthedocs.io/en/latest/install.html. Installation did not prompt any errors, and I was able to establish my environment.
when running scans.py selscan_file_conversion:
(cms-env2) MacBook:cms taylorreiter$ python scans.py selscan_file_conversion -h
I receive the following error:
Traceback (most recent call last):   File "scans.py", line 15, in <module>     import tools.selscan   File "/Users/taylorreiter/Desktop/1000 genomes correlates/vcf_files/cms/cms/tools/__init__.py", line 15, in <module>     import util.file   File "/Users/taylorreiter/Desktop/1000 genomes correlates/vcf_files/cms/cms/util/file.py", line 10, in <module>     import util.cmd   File "/Users/taylorreiter/Desktop/1000 genomes correlates/vcf_files/cms/cms/util/cmd.py", line 10, in <module>     __version__ = util.version.get_version()   File "/Users/taylorreiter/Desktop/1000 genomes correlates/vcf_files/cms/cms/util/version.py", line 117, in get_version     write_release_version(from_git)   File "/Users/taylorreiter/Desktop/1000 genomes correlates/vcf_files/cms/cms/util/version.py", line 60, in write_release_version     with open(release_file(), 'wt') as outf: IOError: [Errno 13] Permission denied: '/Users/taylorreiter/Desktop/1000 genomes correlates/vcf_files/cms/cms/VERSION'
$ ls -lh
returns
total 320 -rw-r--r--   1 root  staff   141B Feb  3 10:53 FileConverter.py -rwxr-xr-x   1 root  staff   257B Feb  3 10:53 cms_exceptions.py -rw-r--r--   1 root  staff    20K Feb  3 10:53 cms_modeller.py drwxr-xr-x  15 root  staff   510B Feb  3 10:53 combine -rw-r--r--   1 root  staff    16K Feb  3 10:53 composite.py drwxr-xr-x   6 root  staff   204B Feb  3 10:53 dists -rw-r--r--   1 root  staff    22K Feb  3 10:53 likes_from_model.py -rwxr-xr-x   1 root  staff   171B Feb  3 10:53 main.py drwxr-xr-x  16 root  staff   544B Feb  3 10:53 model drwxr-xr-x   6 root  staff   204B Feb  3 10:53 power -rw-r--r--   1 root  staff    51K Feb  3 10:53 power.py -rw-r--r--   1 root  staff   712B Feb  3 10:53 run_traj.py -rwxr-xr-x   1 root  staff    26K Feb  3 10:53 scans.py -rwxr-xr-x   1 root  staff   101B Feb  3 10:53 selection.py drwxr-xr-x   5 root  staff   170B Feb  3 10:53 test drwxr-xr-x   4 root  staff   136B Feb  3 10:53 tools drwxr-xr-x  15 root  staff   510B Feb  3 10:53 util
I'm not sure where to begin to resolve this issue. Any help would be greatly appreciated.

Hi Taylor, so it looks like it's getting hung up when python tries to import modules at the beginning of the scans.py script you're running. I think if you rm and then touch the init.py file, or use chmod to give yourself execute permission (I think chmod u+X off the top of my head but I'm not sure) it may solve the problem. Could you give either of those a try and let me know? This may be something I can build into the install process.

Hi Joseph,
I used
$ chmod scans.py
and received the same error message as above.
The directory I am in does not contain and init.py file, however every subdirectory does. I wasn't sure which to rm ...

Hi Taylor, sorry for being unclear -- I meant for you to do chmod u+X the __init__.py files. I think you may need to do this for each of them to allow python to correctly import from code within each directory.
When you give the command ls -la /Users/taylorreiter/Desktop/1000 genomes correlates/vcf_files/cms/cms/tools/__init__.py, what is the output?

It looks like the error is happening when CMS attempts to write its VERSION file (we don't hard-code the version in the source, so CMS tries to infer and store it for later). Can you try to create it manually to see if you have write permissions for the containing directory?
echo "2.0.0-beta" > /Users/taylorreiter/Desktop/1000 genomes correlates/vcf_files/cms/cms/VERSION
In the output of your ls -lh command, it also looks like the CMS files are owned by root, which they need not be. I'm guessing this is the result of the install process being run via sudo or by the root user. You may need to:
chown -R $(whoami) "/Users/taylorreiter/Desktop/1000 genomes correlates/vcf_files/cms"
(call with sudo as appropriate).
It may also help to avoid spaces in the path:
[...]/1000 genomes correlates
could become:
[...]/1000_genomes_correlates

I took the spaces out of the directory name and ran ls -la:
(cms-env2) MacBook:cms taylorreiter$ ls -la /Users/taylorreiter/Desktop/1000_genomes_correlates/vcf_files/cms/cms/tools/__init__.py
-rw-r--r--  1 root  staff  28776 Feb  3 10:53 /Users/taylorreiter/Desktop/1000_genomes_correlates/vcf_files/cms/cms/tools/__init__.py
Checking permission, that may be my issue...
(cms-env2) MacBook:cms taylorreiter$ echo "2.0.0-beta" > /Users/taylorreiter/Desktop/1000_genomes_correlates/vcf_files/cms/cms/VERSION
-bash: /Users/taylorreiter/Desktop/1000_genomes_correlates/vcf_files/cms/cms/VERSION: Permission denied
I gave myself permission and the scans.py selscan_file_conversion -h output was as expected.
Thank you so much for your help! I'll think to check permissions sooner in the future...


Knowledgetree working example to demo all functionality, edge cases and error cases

freeflowuniverse/crystallib/examples/knowledgetree/directory_scan/scan.v
One example to demonstrate

includes
link fixing
image resizing
error reporting

Commits:

23d0bc1f4cbd233e434c51186aaae7551dc8468b
1d7dda64d7dc4bc046fb0700b786c1756968d9c4
ceebe5a4faa1706b3f206b737d5b4ca8eee7d667
6e035e92a4d65f6b5f95381d0f75a8ab8e620aec
fix issues with core.pathlib that caused errors.

commits:

ab96a9cd5339fd7d74ae5fbe665fbb23d3529c02
cca7b1d9c9944ca59fe7001ec9bd28806beb5985
2a028352eb473bd3b7c8abc05439621c03242aa5
fix issues with page processing

commits:

83c49cfd4682d9bd5c2dc8311d77decc47d4ded5
ec5e029c907fd5fc610f26042cb2fcbba2f58147
93a4173517e183307068a78889116c8422a7a6b0
improve example to demonstrate requirements

kristof needs to check


Query with same id is already running

Describe the bug
We are sometimes seeing this error when loading charts on metabase via clickhouse.
The error message is this
{"database_id":6,"started_at":"2023-10-04T14:28:57.262258Z","via":[{"status":"failed","class":"class clojure.lang.ExceptionInfo","error":"Error executing query: Code: 216. DB::Exception: Query with id = d0afc45c-1970-488b-b935-a2fb48e271d4 is already running. (QUERY_WITH_SAME_ID_IS_ALREADY_RUNNING) (version <IP_ADDRESS> (official build))\n, server ClickHouseNode [uri=https://<MASKED_HOST>:8443/default, options={connect_timeout=900000,socket_timeout=900000,dataTransferTimeout=900000,use_server_time_zone_for_dates=true,use_no_proxy=false,product_name=metabase/1.1.2}]@1823720274","stacktrace":["--> driver.sql_jdbc.execute$execute_reducible_query$fn__71852.invoke(execute.clj:505)","driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:502)","driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:489)","driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:497)","driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:489)","driver.sql_jdbc$fn__105186.invokeStatic(sql_jdbc.clj:63)","driver.sql_jdbc$fn__105186.invoke(sql_jdbc.clj:61)","query_processor.context$executef.invokeStatic(context.clj:60)","query_processor.context$executef.invoke(context.clj:49)"

Steps to reproduce

Have a metabase dashboard with a lot of charts connected to clickhouse.
Query these metabase charts via API / via UI. Sometimes in succession.

Expected behaviour
Query should succeed.
Environment

metabase-clickhouse-driver version:
metabase-clickhouse-driver configuration:
Metabase version:
OS:

ClickHouse server

ClickHouse Server version:  <IP_ADDRESS>
ClickHouse Server non-default settings, if any: None
CREATE TABLE statements for tables involved:
Sample data for all these tables, use clickhouse-obfuscator if necessary

Have a metabase dashboard with a lot of charts connected to clickhouse.
Query these metabase charts via API / via UI. Sometimes in succession.

Can you please provide a more concrete scenario here?

@slvrtrn So, the queries are long running queries. Some of them take more than 60 seconds to run.

i also have this problem.
when i running a long time sql question,it's come out error every time at 10min.
where can i change my config?

Good day,
there is a similar issue for java client https://github.com/ClickHouse/clickhouse-java/issues/1529
I believe root cause is in multithreaded access. I have a tests that reproduces the problem. However fix would require some refactoring that will take time.


App crashes on .save( )

Hi, I followed the getting started to a T. I'm using API min 19.
I have a simple sugar record. When I create a new Measurement and call save the app crashes.
What else should I provide?
public class Measurement extends SugarRecord {

    private String title;
    private double lat, lng;
    private double strike, dip;

Sorry but I solved it.
I needed to SugarContext.init()
You should provide this on your website FYI


 We can't really start using doctest until at least the red (error and warning) Cppcheck warnings have been fixed.
[doctest.h:1913]: (warning) Member variable 'ContextBuilder::stackChunks' is not initialized in the constructor.
[doctest.h:691]: (style) Class 'String' has a constructor with 1 argument that is not explicit.
[doctest.h:807]: (style) Struct 'any_t' has a constructor with 1 argument that is not explicit.
[doctest.h:1508]: (style) Struct 'ExpressionDecomposer' has a constructor with 1 argument that is not explicit.
[doctest.h:2013]: (style) Struct 'test_suite' has a constructor with 1 argument that is not explicit.
[doctest.h:2022]: (style) Struct 'description' has a constructor with 1 argument that is not explicit.
[doctest.h:2031]: (style) Struct 'skip' has a constructor with 1 argument that is not explicit.
[doctest.h:2040]: (style) Struct 'timeout' has a constructor with 1 argument that is not explicit.
[doctest.h:2049]: (style) Struct 'may_fail' has a constructor with 1 argument that is not explicit.
[doctest.h:2058]: (style) Struct 'should_fail' has a constructor with 1 argument that is not explicit.
[doctest.h:2067]: (style) Struct 'expected_failures' has a constructor with 1 argument that is not explicit.
[doctest.h:1757]: (style) Exception should be caught by reference.
[doctest.h:1123]: (performance) Function parameter 'value' should be passed by reference.
[doctest.h:5241]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
[doctest.h:3487]: (warning) Member variable 'ContextState::rand_seed' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::first' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::last' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::abort_after' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::subcase_filter_levels' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::case_sensitive' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::exit' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::duration' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::no_exitcode' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::no_run' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::no_version' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::no_colors' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::force_colors' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::no_breaks' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::no_skip' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::no_path_in_filenames' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::no_line_numbers' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::no_skipped_summary' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::help' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::version' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::count' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::list_test_cases' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::list_test_suites' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::currentTest' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::hasLoggedCurrentTestStart' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::numAssertionsForCurrentTestcase' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::hasCurrentTestFailed' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::subcasesCurrentLevel' is not initialized in the constructor.
[doctest.h:3487]: (warning) Member variable 'ContextState::subcasesHasSkipped' is not initialized in the constructor.
[doctest.h:2095]: (style) class 'Context' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory.
[doctest.h:1296]: (warning) The struct 'Subcase' has 'copy constructor' but lack of 'operator='.

Extra information

doctest version: 1.2.6

Hi there!
So doctest is clean from compiler warnings, but for static code analysis tools - thats much trickier...
here are the suppression flags I use on the CI for cppcheck - but different versions of the tool produce different output (and sometimes complains about an unknown suppression flag). Also there are bugs in some versions - like a suppression flag/comment not working... It would be a huge task to make doctest clean for most versions of most static code analysis tools - I've integrated 4-5 tools just to catch bugs in doctest. Also sometimes inline suppressions in the code like // cppcheck-suppress unusedStructMember don't work - no matter on which line I put them (so I suppress them globally from the command line...)
My advice would be to try to silence all cppcheck warnings for the header - it should be possible to exclude headers/folders (with any tool).

This one is definitely a bug:
[doctest.h:5241]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

true - fixed it in the dev branch. Anyway I'll be moving to streams (away from format specifiers) in a future internal refactoring

Our code base cannot have any red Cppcheck warnings, so that is no-go. Luckily, I was able to easily fix the warnings. By the way, Catch2 does not give any Cppcheck warnings.

I'll be pushing the fix for the format specifier to master soon so I'm closing this. I will look into suppressions again for static code analysis in the future...


bump iin checker version

What are the links to relevant tickets?
https://hxshortbreaks.atlassian.net/browse/WEB-8030
What does this PR do?
Bumps the iinchecker version
What functional/unit tests does this PR have?
None
Is there anything a developer should be aware of when reviewing this?
None
Screenshots (if appropriate)

Quality checklist (for PR author to complete BEFORE code review):

[x] I've checked there is appropriate unit test coverage.
[x] I've updated documentation with any changes to procedures.
[x] I've checked this work against the requirements of the Jira.
[x] This change passes all necessary tests (cross browser, automated or otherwise).
[x] I am ready for this to be code reviewed, merged and tested.

Reviewer 1

[x] I agree with the assumptions made in the quality checklist.
[ ] I’ve witnessed the work behaving as expected.
[x] I’ve checked for appropriate test coverage.
[x] I’ve checked for coding anti-patterns.
[ ] I've checked this work against the requirements of the Jira.
[x] I don’t believe this work introduces unnecessary technical debt.
[x] +1 from me!

Reviewer 2

[ ] I agree with the assumptions made in the quality checklist.
[ ] I’ve witnessed the work behaving as expected.
[ ] I’ve checked for appropriate test coverage.
[ ] I’ve checked for coding anti-patterns.
[ ] I've checked this work against the requirements of the Jira.
[ ] I don’t believe this work introduces unnecessary technical debt.
[ ] +1 from me!

👍


getDerivedStateFromProps

I am getting warning with getDerivedStateFromProps in the component like:

Connect(TransactionForm) uses getDerivedStateFromProps() but also contains the following legacy lifecycles:
componentWillReceiveProps
componentWillUpdate

The above issue has been reported on react-hot-reloader but I am using create-react-app with react 16.3 and have the same one:(
Can you advise?

Thanks @gaearon for your prompt response. I am using react-redux ^5.0.7

@gaearon sure, thanks.
Here it is:
https://codesandbox.io/s/github/bodrovphone/money-watcher
Unfortunately in sandbox the issue(warning) isn't reproducible. Here is what I got when running locally:
https://i.imgur.com/2g3EAqM.png
https://i.imgur.com/BAZiAwq.png
Any advice would be very appreciated 😀

It appears that you are using the new lifecycle method, but also keeping OTHER legacy ones in there. If you update the others as well then you should stop getting the error.

It helped! Thanks a lot @gaearon


fasta_with_adaptor_etc parameter warning

In rna calling, the fasta_with_adaptor_etc parameter was not needed unless for the trimamtical substep. Should throw a warning

Done.


Fix ListProperty

This PR improves the cleaning logic of ListProperty, and focuses element type support on two things: Property instances/subclasses and _STIXBase subclasses.  It adds some more ListProperty unit tests.
Notes:

In actual usage, the element type of ListProperty is only ever two things: other property instances/classes or _STIXBase subclasses.  The original comment said any "function" (should have been "callable") of one arg, returning a suitable cleaned value, could be used.  But that never seemed to actually be the case.  (E.g. lists of strings were defined as ListProperty(StringProperty), never ListProperty(str).)  So instead, the new implementation insists on one of those two things and will error out on construction if the element type is wrong.  Strong enforcement on construction also allows simpler implementation in the clean() method (it can make safer assumptions).
The old implementation checked the type of contained value (e.g. property vs stix object class) in every loop iteration.  But that will never change after the property is instantiated, so I decided to pull that outside the loop.  That gives the clean() implementation structure you see: check self.contained first, then act accordingly.
In the old implementation, if the element type was a property, it would call that property's clean(), and then had some special-case post-processing (e.g. unnecessarily recreating dicts).  It should not have done anything with cleaned values: clean()'s job is to produce suitable values; if there's something wrong with those, then the clean() method which produced them is buggy.  ListProperty needs to use cleaned values as-is.
Similarly, if the element type is a _STIXBase subclass and an already-created instance of that type is given, the instance should be used as-is.  An older implementation was recreating the object again which is inefficient and error-prone because it did not correctly propagate allow_custom from the original object to the new one.  This was the cause of at least one bug, which was fixed and there was already a patch in place, but it was the wrong fix.  This directly addresses the underlying problem: if a stix object of the correct type is given, don't recreate it.

Codecov Report

Merging #417 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #417   +/-   ##
=======================================
  Coverage   98.45%   98.45%
=======================================
  Files         129      129
  Lines       14862    14896   +34
=======================================
+ Hits        14632    14666   +34
  Misses        230      230

Impacted Files
Coverage Δ

stix2/properties.py
98.40% <100.00%> (-0.03%)
:arrow_down:

stix2/test/v20/test_properties.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Hidden and cell state in attentional sentence decoder

I found the "embed_h" and "embed_c" are the same in "Atten_Sen_Decoder" class in utils/models.py
self.embed_h = nn.Linear(num_global_features + num_conv1d_out * sen_enco_num_layers,
hidden_size * decoder_num_layers)
self.embed_c = nn.Linear(num_global_features + num_conv1d_out * sen_enco_num_layers,
hidden_size * decoder_num_layers)
Could you please explain it? I think they should be different. Thank you very much.

Hi,
I had a look. They both take the "con_features" (global feature and sentence vector), so they have the same dimensions.
Feel free to correct me if I am wrong. I wrote these codes a year ago, and I might forget some details.


How i can test The CRC-16/X-25 algorithm?

I have the next String of hex:
40402300043130303131313235323939383700000000000000C00701000000
And im trying to get the CRC-16/X-25 value what i know that is 0xA745 (i was tested it here: https://crccalc.com).
But i dont know how to recreate the case with this java code. Can you give me an example?

You can use the "Show processed data (HEX)" checkbox on the site to be sure which data has been processed by the algorithm on the site.
For your string, this is:
0x40 0x40 0x23 0x00 0x04 0x31 0x30 0x30  0x31 0x31 0x31 0x32 0x35 0x32 0x39 0x39
0x38 0x37 0x00 0x00 0x00 0x00 0x00 0x00  0x00 0xc0 0x07 0x01 0x00 0x00 0x00
Test code in java:
                byte[] test = new byte[]{
                        0x40, 0x40, 0x23, 0x00, 0x04, 0x31, 0x30, 0x30,
                        0x31, 0x31, 0x31, 0x32, 0x35, 0x32, 0x39, 0x39,
                        0x38, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                        0x00, (byte)0xC0, 0x07, 0x01, 0x00, 0x00, 0x00};
                CrcCalculator calculator = new CrcCalculator(Crc16.Crc16X25);
                long result = calculator.Calc(test, 0, test.length);
                out.println(Long.toHexString(result).toUpperCase());

@meetanthony , bro, very thanks. You are the first russian who help me, They others only ignores me, it works excellent. Very, very thanks.


Endpoint list shows Status OK even if bpf program can't be build

When listing cilium endpoint list to see the endpoint status. The status presented can be deceiving because of the Policy regenerated messages.
Endpoint status:
2016-12-01T15:42:40Z - OK - Policy regenerated
2016-12-01T15:42:05Z - OK - Policy regenerated
2016-12-01T15:41:38Z - OK - Policy regenerated
2016-12-01T15:40:39Z - Failure - error: "exit status 1" command output: "Join EP id=29898_update ifname=lxcefaff

We should add priority to the status messages, for example on this case, bpf recompilation is more important than Policy regenerated and therefore we should show Status Failure on endpoint list.
Or stop the policy regenerated for the endpoint until the bpf program is properly recompiled.

Agreed.
I think we should also perform test compilation of the program at cilium daemon startup time and have it fail right away to catch the most obvious dependency errors. Compilation errors are rarely specific to the container but most often a missing dependency in the kernel that applies to all programs that are compiled.


Top-level Create Group button does not consistenly create room at top level

Describe the bug
When attempting to create a new group at the top level, the Create Group button adds the new group to an arbitrary existing group, or sometimes to the top level
To Reproduce
Steps to reproduce the behavior:
In a workspace with existing favorites groups, click the Create Group button on the heading and provide a group name (e.g., "80 TESTS")
Expected behavior
A group to be created at the top level.,  Sometimes this happens, but often the new group is created in an existing group, even when no group is selected.
Workaround: after creating the group edit the .favorites.json file and set parent_id to null for the group
System info (please complete the following information):

OS version: Win10
Favorites extension version 2.4.5
vscode version 1.74.3

Additional info
Add any other info about the problem here.

same behaviour here


CAD-2907 tracing:  improve usability of the ChainSync server traces

Instead of going through the Tip/Point serialisations
this allows a more direct access to things that matter:

block hash
slot number
block number

We only convert immediately necessary traces, but the portal has been opened and the call is out.
Release-relevant information (cc @LaurenceIO): this PR changes structure of some of the traces configured by TraceChainSyncHeaderServer and TraceChainSyncClient config options.

bors r+

Leave


[BUG] replace notes popup is too huge

Describe the bug
The size of the release notes popup is too huge after a new version is installed.
Expected behavior
A popup with a reasonable size, for example 80% of the size of the settings display

Hi @pcause, thanks for reporting this!
Is it too wide or too tall?
Or does it just fill the entire screen?
And are you on mobile or desktop?

sorry, too wide.  on W11.  the width hit he and didn't notice of too tall as well.


MtbEffector causes issues when interacting with dynManager.setState

Describe the bug
High level: Importing MtbEffector causes calls to dynManager.setState to fail, likely due to a missing %include "swig_eigen.i" line in MtbEffector.i. This occurs whenever MtbEffector is imported, regardless of whether the module itself is called (perhaps another bug).
Low level: Importing MtbEffector seems to override other BSK modules that implement the dynamics engine (dynManager, stateObject, etc). In addition, MtbEffector.i lacks the call to SWIG that results in Eigen functions/datatypes being properly wrapped, leading to errors when MtbEffector is imported into code.
To reproduce
Steps to reproduce the behavior:

Add import MtbEffector to scenarioHohmann.py
Run the scenario normally
See error; described in additional detail in this discussion

Expected behavior

Manually setting states through the dynManager should work in sims that include MtbEffectors
Importing a module that isn't used shouldn't break other modules.

Desktop (please complete the following information):

OS: Ubuntu 22.04
BSK Version: Develop on 11/8, commit a413b11cd8419757eb556846e0a4666f60837e58
Python version: 3.10.12

Additional context

Adding %include "swig_eigen.i" to MtbEffector.i` resolves this issue.
Someone should look into why the dynamics engine is re-swigged for every individual effector/dynamics related class, and whether this is necessary (lower priority).

Mm, interesting.  Wasn't aware of this behavior.  Thanks for sharing.


AssertionError: Default process group is not initialized

File"~/anaconda3/envs/pytorch1.1/lib/python3.6/sitepackages/torch/distributed/distributed_c10d.py", line 191, in _check_default_pg  "Default process group is not initialized"
AssertionError: Default process group is not initialized
My env is:
Ubuntu 18.04
Cuda 10.0
Pytorch 1.1
GPU: 1 1080Ti and 1 1080
And I have tried run it on both 1 GPU and 2 GPUs but got the same problem.
Could u give me some help? Thx!

@LGYoung what is the exact command you are using to launch the training?

Hello, I have the same issue, my command is
BatchNorm2d = functools.partial(InPlaceABNSync, activation='identity')
self.bn1 = BatchNorm2d(64)
then forward:
self.bn1(self.conv1(x))
the issue is:
File "/home/ubuntu/anaconda3/envs/py3.6/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 588, in get_world_size
return _get_group_size(group)
File "/home/ubuntu/anaconda3/envs/py3.6/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 201, in _get_group_size
_check_default_pg()
File "/home/ubuntu/anaconda3/envs/py3.6/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 192, in _check_default_pg
"Default process group is not initialized"

@scarftdd Maybe there's been a misunderstanding, I didn't mean to ask what is the Python code being used. I'm interested to know how the code is run: directly from the Python interpreter vs. ipython vs. a script launched with python script.py etc.
This is relevant because of the way Pytorch distributed execution, which InPlaceABNSync uses, works. For an in-depth explanation refer to: https://pytorch.org/docs/stable/distributed.html

I use python3.6 version, a script launch

@scarftdd scripts using InPlaceABNSync, same as any other Pytorch script involving distributed functionality, must include multiprocessing initialization logic as described here, and possibly be launched using the pytorch distributed launch utility (i.e. python -m torch.distributed.launch [torch.distributed.launch params] your_script.py [your_script params]). The errors you and @LGYoung are seeing are due to the fact that you are not doing this.
Please refer to Pytorch's documentation and tutorials (e.g. this one) for an in-depth explanation.

@scarftdd scripts using InPlaceABNSync, same as any other Pytorch script involving distributed functionality, must include multiprocessing initialization logic as described here, and possibly be launched using the pytorch distributed launch utility (i.e. python -m torch.distributed.launch [torch.distributed.launch params] your_script.py [your_script params]). The errors you and @LGYoung are seeing are due to the fact that you are not doing this.
Please refer to Pytorch's documentation and tutorials (e.g. this one) for an in-depth explanation.

Hi, can you tell me how to evaluate the model with InPlaceABNSync  trained with distributed  data parallel on single gpu?


consequent-action-list to be complemented with displayInNewBrowserWindow attribute

In

/v1/start-application-in-generic-representation :: responses :: consequent-action-list

displayInNewBrowserWindow attribute to be added.

done in 0.0.2b


Error: access denied. code: 'Generic Failure' when calling updateItem() with previewPath and contentPath.

Steps to reproduce:
client.workshop
      .updateItem(item.itemId, {
        title: "Red Dot",
        description: "A red dot sight",
        visibility: 0,
        previewPath: "C:/Users/flomu/Downloads/Reticles/Dropoff.png",
        contentPath: "C:/Users/flomu/Downloads/Reticles/Dropoff.png",
      })

It seems to fail to update the workshop item, and returns the error:
[Error: access denied] { code: 'GenericFailure' }
I'm able to update an item fine when not setting the previewPath and contentPath, so it must be related to that.

I have also tried with double backslashes in the paths.

This "GenericFailure" can be a lot of things from steam side. This is probably not related to steamworks.js.
A suggestion: Try using node to fix your path, like with "path.join"

Do you have any suggestions on debugging this issue? path.join or path.resolve just return the string I was already using.

Wow this took me so long to figure out- in the partner.steamgames.com Steamworks settings page for your app you must go to Application -> Steam Cloud and enable files and byte quota for your game before you can use the API to create items. This is very confusing because the API will actually let you make items, but you can't edit them and upload content without this setting turned on:


prependData(newData)/insertData(index, newData) into series

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
A prependData(newData)/insertData(index, newData) method just like what appendData(newData) does
Describe alternatives you've considered
For prependData(newData), it will allow us to prepend data at the front of specific series dataset.
For insertData(index, newData), it will allow us to insert data into certain point of specific series dataset.
Additional context
We are developing a web application using apexcharts candlestick chart. There are over 100k records inside our DB and we want to fetch it on demand. i.e. fetch corresponding data when user scrolled into certain time window. The existing appendData(newData) may not satisfying enough in this case as the new data may not only append onto the data series.
Thank you for following up or if there's a way to achieve this requirement please kindly give me advice.

Technically, appendData is nothing but just pushing new data into the existing series and then calling the update method.
So, you can do the same with your series and call updateSeries method.
let newSeries = existingSeries.slice()
newSeries[0].data.unshift(NEWDATA)

chart.updateSeries(newSeries)

@junedchhipa Thank you for your assistance. I wonder will the x axis shifts incorrectly if I call updateSeries()? I fear the view will flash/jump after I call updateSeries()

The x-axis will shift accordingly with the new data, but it will not animate.

@junedchhipa Thank you for your assistance. I wonder will the x axis shifts incorrectly if I call updateSeries()? I fear the view will flash/jump after I call updateSeries()

@junedchhipa What if I want to add data into series without affecting the chart?   e.g. add in front of the series but keep the chart window focus on the sub set of data of what user is viewing.


Invalid type parameter 'Microsoft.AspNetCore.Mvc.NoContentResult' specified for 'ActionResult'.

Describe the bug
ASP.NET Core 2.2 is throwing an exception if the type param of ActionResult is NoContentResult.
To Reproduce
public ActionResult<NoContentResult> Repro()
{
    return NoContent();
}

Expected behavior
No exception? :D
Screenshots

Additional context
Add any other context about the problem here.
Include the output of dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   2.2.101
 Commit:    236713b0b7

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17763
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.2.101\

Host (useful for support):
  Version: 2.2.0
  Commit:  1249f08fed

.NET Core SDKs installed:
  2.2.101 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

This is by design. The T in ActionResult can’t be an IActionResult. The entire goal of that type is to describe your model type directly not the ActionResult type. It means you can have an ActionResult and return NoContent without changing the return type

I see. Thanks for the info!


Define frontend requirements for course/course instance information

Frontend requirements
Course

Course code
Course name
Organizer/Department
Responsible teacher(s)

Course instance

Course code
Course name
Teaching period
Starting date
Ending date
Type (lecture/exam)
Grading scale (pass/fail or 0-5)
Organizer
Educational institution
Responsible teacher(s)
Credits (min and max)
Partial assignments

Type
Description
Total points
Weight (can be a function)
Expiry date

PO approved


[Common] Moved framework agnostic THD kernels to common.

Description
Moves several kernels that are used for context parallelism + THD fused attention to shared location so they can be called by Jax and other frameworks.
Type of change

[ ] Documentation change (change only to the documentation, either a fix or a new content)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Infra/Build change
[X] Code refractor

Changes
Moves common code out of pytorch filder.
Checklist:

[X] I have read and followed the contributing guidelines
[X] The functionality is complete
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes

/te-ci pytorch

/te-ci pytorch

/te-ci pytorch L1

FYI, it seems like pipeline 20535774 failed, not sure why it shows it completed successfully.

Probably needs to add thd_utils.cu to the CMakeLists.txt here.

/te-ci pytorch L1

/te-ci pytorch L1

/te-ci pytorch L1


Update names.coffee

Added more names for issue #53

Hi @Khoffee, thanks for adding those names! Can I get you to sign the CLA so I can merge this in? (It's easy.)

Done!


Fix player color in custom pins

Fixes #154
I think the reason this appear is that the pins start out as a default map pin icon and is then changed when the icon is selected. At this point the color is already applied. This can be seen as the icons are as they should after a reload.
This fix is inspired by @Auda35 solution in the issue thread.

Just tested, thanks for fixing one of the longest-standing bugs in CQUI!


Setup inicial: pasta admin com app básico React

Resolvido no commit: https://github.com/techmastery-io/project-everest/commit/7d93d464aca44718cb8c7ed95d6eeda74ba7c697