Error when running Crystal on Ubuntu

I've installed Crystal in Ubuntu and when I try to run a file it gives me this error:
--: 1: --: cc: not found
Error: execution of command failed with code: 127: `cc -o "/root/.cache/crystal/opt-crystal-src-ecr-process.cr/macro_run" "${@}"  -rdynamic  -lpcre -lgc -lpthread /opt/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`

I installed following the docs installation guide.
Any code gives this error. I tried with a HTTP server and later with a simple puts. Both files lead to  this error.
On my Macbook everything works perfectly.

Crystal version:
Crystal 0.22.0 [3c71228] (2017-04-20) LLVM 3.5.0
OS version:
Ubuntu 16.04.2 LTS x86_64 ($5 Digital Ocean Droplet)
512MB RAM

What happens if you run sudo apt-get install build-essential first?

It worked! 🎉
Perhaps this step could be added to the documentation in order to help users facing the same issue in the future?
Thanks!

We need to tidy up a bit our release process... I guess it should be declared as a dependency of the Debian package. It's in the radar, don't worry! :)

@kazzkiq we have crystal-lang/omnibus-crystal#14 for making the packages state their dependencies.
Also, there's a list of every package you need for compiling Crystal itself on the wiki - we should probably list the subset of them that's needed just for running Crystal on the installation page.
Would you mind editing the language reference to add this info that's missing?

I had a similar issue installing on a relatively fresh Ubuntu 16.04 (OS X was just fine)
/usr/bin/ld: cannot find -lxml2
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o '/home/mlobl/.cache/crystal/crystal-run-spec.tmp'  -rdynamic  -lxml2 -lpcre -lm -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`

The dependency I needed to install was libxml2-dev even though I had libxml2 already installed. Hopefully this helps others in the future


Example with separated data split

I am attempting to use the separated data split method to evaluate the CMF_implicit model from cmfrec and am having trouble verifying the results. For a user with hit@10 = 1 I would expect at least one of the top 10 model predictions to be present in that user's test data, but I am not finding that.
import pandas as pd
import numpy as np
from cmfrec import CMF_implicit
from scipy import sparse
import recometrics
np.random.seed(123)

num_users = 2000
num_items = 100
# Make user side info df
test_user_side_info = pd.DataFrame()
test_user_side_info['UserId'] = range(num_users)
test_user_side_info['high_income'] = np.random.choice([1,0],len(test_user_side_info))
test_user_side_info['is_red'] = np.random.choice([1,0],len(test_user_side_info))
test_user_side_info['owns_car'] = np.random.choice([1,0],len(test_user_side_info))
coo_user_side = test_user_side_info.drop(columns="UserId").astype(pd.SparseDtype("float", 0)).sparse.to_coo()

# Make item side info df
test_item_side_info = pd.DataFrame()
test_item_side_info['ItemId'] = range(num_items)
test_item_side_info['is_greater_than_6'] = np.random.choice([1,0],len(test_item_side_info))
test_item_side_info['has_small_battery'] = np.random.choice([1,0],len(test_item_side_info))
test_item_side_info['is_renewed'] = np.random.choice([1,0],len(test_item_side_info))
coo_item_side = test_item_side_info.drop(columns="ItemId").astype(pd.SparseDtype("float", 0)).sparse.to_coo()

# Make interaction df
test_interactions_df = pd.DataFrame(np.random.choice([1,0],size=(num_users, num_items),p=[0.05,0.95]))
test_interactions_df.columns = ['item_'+str(product_id) for product_id in range(num_items)]
test_interactions_df['UserId'] = range(num_users)
# Melt into UserId, ItemId, and Value columns
test_interactions_df=test_interactions_df.melt("UserId",var_name='ItemId',value_name="Value")
# Change ItemId to categoricals
test_interactions_df['ItemId']=test_interactions_df.ItemId.astype('category').cat.codes

test_interactions_df = test_interactions_df[test_interactions_df.Value>0]
# Generate sparse matrices
X = sparse.coo_matrix((test_interactions_df.Value, (test_interactions_df.UserId,test_interactions_df.ItemId)))

# Split data into train and test
X_rem, X_train,X_test, users_test = \
        recometrics.split_reco_train_test(
            X=X, split_type='separated', min_items_pool=3, users_test_fraction=0.2, seed=123
        )

# User attributes for users in X_rem
users_remaining = test_interactions_df[~test_interactions_df.UserId.isin(users_test)].sort_values(by='UserId').UserId.unique().tolist()
remaining_users_csr = coo_user_side.tocsr()[users_remaining,:]

# Get the user attributes for the test users
test_users_csr = coo_user_side.tocsr()[users_test,:]

# Train model
model = CMF_implicit(k=40, verbose=False, use_cg=False, NA_as_zero_item=True, NA_as_zero_user=True).fit(
                X=X_rem,
                U=remaining_users_csr,
                I=coo_item_side)

# Get user factors data for test users
test_user_factors = model.factors_multiple(X=X_train, U=test_users_csr)

# Get evaluation metrics
metrics = recometrics.calc_reco_metrics(X_train=X_train, X_test=X_test, A=test_user_factors, B=model.B_, k=10, all_metrics=True)

I want to check the results for a user with hit rate >0:
<EMAIL_ADDRESS>
This returns the results for user with index "6" which has a hit@10 of 1.0. My understand is that this would be X_train index = 6 and refers to the 7th user in users_test from the data split, which is user 56 (using index of all users). I run the following:
test_user = users_test[6]

model_predictions_for_test_user = model.topN_warm(X_col = list(range(X_train.shape[1])),
                X_val = X_train.getrow(6).todense(),
                U=coo_user_side.getrow(test_user).todense(), output_score=True, n=10) # the user side info matrix is indexed by all users, so we need the UserId for the test user
print(f"Products in train for user {test_user}:  {np.nonzero(X_train.getrow(6))[1]}")
print(f"Products in test for user {test_user}: {np.nonzero(X_test.getrow(6))[1]}")

None of the predicted values from topN_warm show up in the test user's data, which is unexpected given the hit rate for this user.
np.in1d(model_predictions_for_test_user, np.nonzero(X_test.getrow(6))[1]).sum()

Thanks for the assistance.

Several things there:

If I run your example, the first user with a non-zero hit rate is index=3 (4th row).
When you are calling topN_warm later, you are passing the zero-valued entries as non-missing - i.e. you are passing data that signals that the user consumed every single item.
In the call to topN_warm, you are not excluding the train items in the top-N.

Here I've modified the last part of your script:
test_user = users_test[3]

model_predictions_for_test_user = model.topN_warm(
    X_col = X_train[3].indices,
    X_val = X_train[3].data,
    U_col=coo_user_side.getrow(test_user).indices,
    U_val=coo_user_side.getrow(test_user).data,
    output_score=False,
    exclude=X_train[3].indices,
    n=10
)

It gives:
array([97, 51, 33, 82, 96,  2, 13, 91, 44,  3], dtype=int32)

The test items are the following:
X_test[3].indices

array([ 2, 36, 90], dtype=int32)

Item 2 is in the top-10 so that's a hit.

Thanks, I appreciate the response and correction!
That's strange that we get different results for the first user with non zero hit rate - I figured any random element was covered by setting the seed initially and within the data splitting function.


hey I'm trying to make a fnf mod if the psych eginge and it had a error everytime I treid open the songs please help

Describe your bug here.
it won't load and says error
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
I made sure I did not edit any of the code

You are supposed to show the error

does it have a .json file? (Is the chart saved?)

yes I remade the songs and the whole broke the only thing that did not break was the tutorial but the 3 songs I was working broken I still have the assets and icon's and dialogue saved but the frist week songs broken basic I was trying to make a mod

you still haven't provided any information, this issue is useless

you still haven't provided any information, this issue is useless

proof

you still haven't provided any information, this issue is useless

proof

you still haven't provided any information, this issue is useless

 proof

your missing a chart

amazing how easy it is for your problem to be identified when you provide the error message

and to fix that you need to enter in the chart editor pressing 7 on the main menu

and to fix that you need to enter in the chart editor pressing 7 on the main menu

press SEVEN on your keyboard while on the story mode button in the main menu and select chart editor put your song name in the textbox in the "song" tab and reload the audio or since I'm assuming you already have a normal chart since the image shows you're trying to play hard mode just play a song on normal then do the steps in the start of this comment and just reload the chart and edit that one then, once you're done just save it as the difficulty

if youre entering by pressing 7 in a song then load the song on normal and youre problem will be fixed...
or make a copy of your chart called knownentity-hard.json and put it with the original chart...


GLES2: Check for GPU capabilities to display an error

The engine will still segfault, but the error message should be displayed by the
OS in a blocking manner, so that it will only crash once users have acknowledged
the error dialog.
Please test, especially if you have hardware that does not support GL 2.1 / GLES 2.0. I only tested on Linux X11, and by tweaking the if to make it fail when GL 2.1 was actually supported. @SuperUserNameMan's test in https://github.com/godotengine/godot/issues/1162#issuecomment-235047879 seems to indicate that it would be working on Windows for his hardware.
Closes #1162.

I pushed a test build of this commit on our CI-based deployment system: https://github.com/GodotBuilder/godot-builds/releases/tag/test_20160725
There should be binaries to test for all platforms in a couple of hours.

to test under linux without changing the code and recompiling, i think you can set the environment variable MESA_GL_VERSION_OVERRIDE to 2.0 : http://www.mesa3d.org/envvars.html
IIRC, that's also how to proceeded to force MESA to allow black listed GPU to work with Godot.

to test under linux without changing the code and recompiling, i think you can set the environment variable MESA_GL_VERSION_OVERRIDE to 2.0

Nice trick, that works for me :)

Note that only desktop platforms use GLEW, so this error should not show on Android and iOS devices.

So I tested on my Acer eMachine Netbook with Intel Atom N450 and integrated Intel GMA 3150 :
under LinuxMint18, MATE, 32bits (MESA Opengl 1.4) :

the warning dialog box is displayed correctly.
through the console, it complains that it could not load libXrandr.so.
If I override opengl version to 2.1 or 3.0 using the env var, Godot runs despite the missing libXrandr, But the 3D viewport is all messed up.
also, as side note, 1024x768 is too small to display Godot interface correctly. The project manager interface is not displayed correctly unless you expand the window, and into the editor I can't even access the "Quit" menu item.

same netbook, under Windows 10, 32bits ( Opengl 1.4) :

it crashed without displaying the dialog box.
if i run it through the console, the ERROR: RasterizerGLES2::init: message is written.

I also tested on my regular laptop with radeon R4 and Windows 8.1 and it worked correctly.

Okay, i've found why the dialog box was not displayed into Windows 10 before crashing.
Into godot/platform/windows/os_windows.cpp, at line 1346, into OS_Windows::alert(), MessageBoxW() requires MB_TASKMODAL as extra flag :
		MessageBoxW(NULL,p_alert.c_str(),p_title.c_str(),MB_OK|MB_ICONEXCLAMATION|MB_TASKMODAL);

Nice catch @SuperUserNameMan. Here's the corresponding API reference: https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx
Does the message box then appear in the foreground, or in the background? I see that there is a MB_SETFOREGROUND flag we could use too.

It appears on foreground.
The Godot ongoing process is paused till OKAY is pressed. Then it crashes and display system dialog box "Godot Engine Editor (rc1) has stopped to work" .
I don't think more MB_ flags are required.

Pushed a new commit adding this flag, thanks again :)


Add gulp-uglify to build pipeline process

Do we still need sourcemaps?

Wait, we don't need uglify for client/server side... derp.


Add install instructions in readme

title basically, cant find this information at a glance.
looks nice!

Fair point - I recently moved all the documentation over to gitbook and the installation instructions went with it.
I'll update the readme with some basic instructions 👍

I couldn't find that when I clicked on the links but yea top three or five most popular ways to install it would be cool

For reference the install directions are here: https://daseldocs.tomwright.me/installation

I've added a quickstart section to the readme now: https://github.com/TomWright/dasel#quickstart
I think that's sufficient - would you agree?

I would. Cheers!


conf: Update kernel version to v4.19.222-cip64

Update kernel version from v4.19.220-cip63 to v4.19.222-cip64
Signed-off-by: Alice Ferrazzi<EMAIL_ADDRESS>

build and run core-image-weston was succeeded.

Thanks!


I love robots and changes

test comment

Pat myself on the back

[ ] amazing job
[ ] flawless
[ ] magnifficent!

✨ sparkling PR

Briljant 🛩


add deploy to azure

https://github.com/Azure/github-actions
something like?
#' @describeIn actions [azure_cli](https://github.com/Azure/github-actions/tree/cc666a5f6a93fba7d52e7b264e3d494af7a95a76)
azure_cli <- function(needs = "Azure Login",
                      env = c("AZURE_SCRIPT_PATH = '<Relative path in your repository>'", "AZURE_SCRIPT = '<Azure CLI script>'")) {
  list(
    uses = "Azure/github-actions/cli@cc666a5f6a93fba7d52e7b264e3d494af7a95a76",
    needs = needs,
    env = env
  )
}

yes!
Ah, interesting ... so if Azure CLI always needs to run some Azure Login action first, then that'd be two actions.
Anyway, sorry about just leaving this in here, this was more aspirational, just wanted to get this off the website and keep a record somewhere.
I'm guessing netlify (#26) would be a much higher priority and also easier, because netlify is just static page hosting, just like ghpages.


Cannot Undeploy with Domains

Are you sure you want to undeploy? [y/n] y
Deleting API Gateway..
Oh no! An error occured! :(

==============

Traceback (most recent call last):
  File "zappa/cli.py", line 1078, in handle
    sys.exit(cli.handle())
  File "zappa/cli.py", line 205, in handle
    self.undeploy(noconfirm=vargs['yes'], remove_logs=vargs['remove_logs'])
  File "zappa/cli.py", line 420, in undeploy
    gateway_id = self.zappa.undeploy_api_gateway(self.lambda_name, self.api_key_required)
  File "/Users/rjones/Projects/Zappa/lib/Zappa/zappa/zappa.py", line 882, in undeploy_api_gateway
    restApiId=api['id']
  File "/Users/rjones/Projects/Zappa/baby_flask/env/lib/python2.7/site-packages/botocore/client.py", line 159, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/Users/rjones/Projects/Zappa/baby_flask/env/lib/python2.7/site-packages/botocore/client.py", line 494, in _make_api_call
    raise ClientError(parsed_response, operation_name)
ClientError: An error occurred (BadRequestException) when calling the DeleteRestApi operation: Deleting RestApi qmz887avi5 failed. Please remove all base path mappings related to the RestApi in your domains: testooo.zappa.io, testoooo.zappa.io, testor.zappa.io, zappa.io

==============

I think fixed with
        if domain_name:
            self.apigateway_client.get_base_path_mapping(
                domainName=domain_name,
                basePath=''
            )
            self.apigateway_client.delete_base_path_mapping(
                domainName=domain_name,
                basePath='(none)'
            )


locust support testing against HTTP/2 servers ?

Any plans for Locust to support testing against HTTP/2 servers like h2o https://github.com/h2o/h2o and OpenLiteSpeed http://open.litespeedtech.com/mediawiki/ ?
cheers
George

We found that the Hyper could support the HTTP/2.
https://github.com/Lukasa/hyper
http://hyper.readthedocs.org/en/development/quickstart.html#requests-integration
Now we are trying to integrate the HTTP/2 into Locust, we were wondering that any kinds of suggestions about how to integrate the Hyper into Locust?
Look forward to you reply.
Thank you,
Ken

read this to get started:
http://docs.locust.io/en/latest/testing-other-systems.html

Locust support http2?

yes, if you use an http2 client within your locust scripts

is there any example to implement hyper for http/2 client on locust ?
Thanks

Hi!
I managed to make it work with httpx (which use hyper under the hood). It's mostly compatible with requests https://www.python-httpx.org/compatibility/
Check my gist. You just have to use the HttpxUser in your locustfile https://gist.github.com/gawel/f48e577425f872e1a81028f3f53353cf#file-clientx-py-L216
Let me know if you're interested in a PR to add this in contrib/httpx (of course I'll add some tests). If not I'll probably create a dedicated package

I've also found a way using @Kenith sugestion:
from locust import TaskSet, between, HttpUser
from hyper.contrib import HTTP20Adapter

class Http2User(HttpUser):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.client.mount(self.host, HTTP20Adapter())

Don't know which one is the more efficient but this second option is easy to use

@gawel note that httpx relies on hyper-h2 (the HTTP/2 protocol stack) rather than hyper, the client (which I myself got confused about, see: https://github.com/encode/httpx/issues/1476). The later is deprecated in favor of httpx.  That means the HTTP20Adapter (which came with the client) shouldn't be used in new code, but FWIU, httpx aims to be very compatible with requests, so that might not be a problem.


GH-43759: [C++] Acero: Minor code enhancement for Join

Rationale for this change

Minor style enhancement for join
What changes are included in this PR?

Minor style enhancement for join
Are these changes tested?
Covered by existing

Are there any user-facing changes?
no

GitHub Issue: #43759

I like the idea for that, but just mention that this hateful ValueOrDie is called widely in row-api, sigh


Add local_end_stream_ to crash dump for H1

Signed-off-by: Pradeep Rao<EMAIL_ADDRESS>
Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

Thanks so much Alyssa, hope it passes on rerun.


webgl 2 support

webclgl support webgl2 or not?

Hi acterhd. I updated to allow WebGL2 context.
Regards ;)

have you multiple render target support?

At this moment any WebGL2 advantage is included in WebCLGL but these will be incorporated progressively.

I just made some improvements and I think I will try to integrate multi-render-target. Thank you very much for your advice, I had not known that this capacity is available now as extension in WebGL ;)

Hi acterhd, now it´s possible to save in multiple variables in the kernel result ;)


Update: team-aie.aie version 0.9.0

Removing old versions to reduce clutter
Microsoft Reviewers: Open in CodeFlow

/azp run


mkfs.fat: unrecognized option

when running scons I get
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `build/i686_debug/kernel/kernel-stripped.elf' is up to date.
Assembling [src/bootloader/stage2/x86.asm]
Assembling [src/bootloader/stage2/crtn.asm]
Linking    [build/i686_debug/stage2/stage2.bin]
Creating disk image...
> creating partition table...
Kernel not configured for semaphores (System V IPC). Not using udev synchronisation code.
> formatting file using fat32...
scons: *** [build/i686_debug/image.img] ErrorReturnCode_1 :

  RAN: /usr/sbin/mkfs.fat build/i686_debug/image.img -F 32 -n NBOS -R 2 --offset=2048

  STDOUT:
mkfs.fat 4.1 (2017-01-24)
Unknown option: ?

  STDERR:
/usr/sbin/mkfs.fat: unrecognized option '--offset=2048'
Usage: mkfs.fat [-a][-A][-c][-C][-v][-I][-l bad-block-file][-b backup-boot-sector]
       [-m boot-msg-file][-n volume-name][-i volume-id]
       [-s sectors-per-cluster][-S logical-sector-size][-f number-of-FATs]
       [-h hidden-sectors][-F fat-size][-r root-dir-entries][-R reserved-sectors]
       [-M FAT-media-byte][-D drive_number]
       [--invariant]
       [--help]
       /dev/name [blocks]

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Action.py", line 1209, in execute
    result = self.execfunction(target=target, source=rsources, env=env)
  File "/mnt/c/Users/Ben/Downloads/nanobyte_os-master/nanobyte_os-master/image/SConscript", line 235, in build_image
    build_disk(image, stage1, stage2, kernel, files, env)
  File "/mnt/c/Users/Ben/Downloads/nanobyte_os-master/nanobyte_os-master/image/SConscript", line 176, in build_disk
    create_filesystem(image, file_system, offset=partition_offset)
  File "/mnt/c/Users/Ben/Downloads/nanobyte_os-master/nanobyte_os-master/image/SConscript", line 39, in create_filesystem
    mkfs_fat(target,
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 1524, in __call__
    return RunningCommand(cmd, call_args, stdin, stdout, stderr)
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 788, in __init__
    self.wait()
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 845, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 869, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /usr/sbin/mkfs.fat build/i686_debug/image.img -F 32 -n NBOS -R 2 --offset=2048

  STDOUT:
mkfs.fat 4.1 (2017-01-24)
Unknown option: ?

  STDERR:
/usr/sbin/mkfs.fat: unrecognized option '--offset=2048'
Usage: mkfs.fat [-a][-A][-c][-C][-v][-I][-l bad-block-file][-b backup-boot-sector]
       [-m boot-msg-file][-n volume-name][-i volume-id]
       [-s sectors-per-cluster][-S logical-sector-size][-f number-of-FATs]
       [-h hidden-sectors][-F fat-size][-r root-dir-entries][-R reserved-sectors]
       [-M FAT-media-byte][-D drive_number]
       [--invariant]
       [--help]
       /dev/name [blocks]

scons: building terminated because of errors.

progress, now I get
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `build/i686_debug/kernel/kernel-stripped.elf' is up to date.
Creating disk image...
> creating partition table...
Kernel not configured for semaphores (System V IPC). Not using udev synchronisation code.
> formatting file using fat32...
> installing stage1...
> installing stage2...
> mounting image to build/i686_debug/tmp_mount_1692484414...
> cleaning up...
scons: *** [build/i686_debug/image.img] ErrorReturnCode_1 :

  RAN: /usr/bin/guestmount build/i686_debug/tmp_mount_1692484414 --add=build/i686_debug/image.img --mount=/dev/sda1

  STDOUT:

  STDERR:
libguestfs: error: /usr/bin/supermin exited with error status 1.
To see full error messages you may need to enable debugging.
Do:
  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again.  For further information, read:
  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Action.py", line 1209, in execute
    result = self.execfunction(target=target, source=rsources, env=env)
  File "/mnt/c/Users/Ben/Downloads/basic_os-keyboard_driver/basic_os-keyboard_driver/image/SConscript", line 235, in build_image
    build_disk(image, stage1, stage2, kernel, files, env)
  File "/mnt/c/Users/Ben/Downloads/basic_os-keyboard_driver/basic_os-keyboard_driver/image/SConscript", line 193, in build_disk
    mount_fs(image, tempdir)
  File "/mnt/c/Users/Ben/Downloads/basic_os-keyboard_driver/basic_os-keyboard_driver/image/SConscript", line 152, in mount_fs
    sh.guestmount(mount_dir, add=image, mount='/dev/sda1')
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 1524, in __call__
    return RunningCommand(cmd, call_args, stdin, stdout, stderr)
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 788, in __init__
    self.wait()
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 845, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 869, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /usr/bin/guestmount build/i686_debug/tmp_mount_1692484414 --add=build/i686_debug/image.img --mount=/dev/sda1

  STDOUT:

  STDERR:
libguestfs: error: /usr/bin/supermin exited with error status 1.
To see full error messages you may need to enable debugging.
Do:
  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again.  For further information, read:
  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.

scons: building terminated because of errors.

by adding
deb http://archive.ubuntu.com/ubuntu lunar main

to /etc/apt/sources.list
then running
sudo apt reinstall dosfstools

by folowing @chibicitiberiu's advice in #27 I now get
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `build/i686_debug/kernel/kernel-stripped.elf' is up to date.
Creating disk image...
> creating partition table...
Kernel not configured for semaphores (System V IPC). Not using udev synchronisation code.
> formatting file using fat32...
> installing stage1...
> installing stage2...
> mounting image to build/i686_debug/tmp_mount_1692485194...
Please type your username password for running mount:
> cleaning up...
warning: unmount failed
Traceback (most recent call last):
  File "/mnt/c/Users/Ben/Downloads/nanobyte_os-master/nanobyte_os-master/image/SConscript", line 260, in build_disk
    mount_token = mount_fs(image, tempdir, mount_method)
  File "/mnt/c/Users/Ben/Downloads/nanobyte_os-master/nanobyte_os-master/image/SConscript", line 203, in mount_fs
    out = sh.losetup(image, partscan=True, find=True, show=True, _tty_in=True, _unify_ttys=True)
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 1524, in __call__
    return RunningCommand(cmd, call_args, stdin, stdout, stderr)
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 788, in __init__
    self.wait()
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 845, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 869, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /usr/bin/sudo -S -k /usr/sbin/losetup build/i686_debug/image.img --partscan --find --show

  STDOUT:
[sudo] password for badgeminer2:
losetup: cannot find an unused loop device

  STDERR:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/c/Users/Ben/Downloads/nanobyte_os-master/nanobyte_os-master/image/SConscript", line 286, in build_disk
    unmount_fs(tempdir, mount_method, mount_token)
UnboundLocalError: local variable 'mount_token' referenced before assignment
Traceback (most recent call last):
  File "/mnt/c/Users/Ben/Downloads/nanobyte_os-master/nanobyte_os-master/image/SConscript", line 305, in build_image
    build_disk(image, stage1, stage2, kernel, files, env)
  File "/mnt/c/Users/Ben/Downloads/nanobyte_os-master/nanobyte_os-master/image/SConscript", line 260, in build_disk
    mount_token = mount_fs(image, tempdir, mount_method)
  File "/mnt/c/Users/Ben/Downloads/nanobyte_os-master/nanobyte_os-master/image/SConscript", line 203, in mount_fs
    out = sh.losetup(image, partscan=True, find=True, show=True, _tty_in=True, _unify_ttys=True)
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 1524, in __call__
    return RunningCommand(cmd, call_args, stdin, stdout, stderr)
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 788, in __init__
    self.wait()
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 845, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/badgeminer2/.local/lib/python3.8/site-packages/sh.py", line 869, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /usr/bin/sudo -S -k /usr/sbin/losetup build/i686_debug/image.img --partscan --find --show

  STDOUT:
[sudo] password for badgeminer2:
losetup: cannot find an unused loop device

  STDERR:

scons: done building targets.

I am on ubuntu wsl

What is the output of ls /dev/ | grep loop?
Also, what is the output of modprobe loop? (this might require sudo)

ls /dev/ | grep loop returns nothing, but  ls /dev/ returns
block   stdin    ttyS102  ttyS111  ttyS120  ttyS13   ttyS139  ttyS148  ttyS157  ttyS166  ttyS175  ttyS184  ttyS20  ttyS3   ttyS39  ttyS48  ttyS57  ttyS66  ttyS75  ttyS84  ttyS93
fd      stdout   ttyS103  ttyS112  ttyS121  ttyS130  ttyS14   ttyS149  ttyS158  ttyS167  ttyS176  ttyS185  ttyS21  ttyS30  ttyS4   ttyS49  ttyS58  ttyS67  ttyS76  ttyS85  ttyS94
kmsg    tty      ttyS104  ttyS113  ttyS122  ttyS131  ttyS140  ttyS15   ttyS159  ttyS168  ttyS177  ttyS186  ttyS22  ttyS31  ttyS40  ttyS5   ttyS59  ttyS68  ttyS77  ttyS86  ttyS95
lxss    tty0     ttyS105  ttyS114  ttyS123  ttyS132  ttyS141  ttyS150  ttyS16   ttyS169  ttyS178  ttyS187  ttyS23  ttyS32  ttyS41  ttyS50  ttyS6   ttyS69  ttyS78  ttyS87  ttyS96
null    tty1     ttyS106  ttyS115  ttyS124  ttyS133  ttyS142  ttyS151  ttyS160  ttyS17   ttyS179  ttyS188  ttyS24  ttyS33  ttyS42  ttyS51  ttyS60  ttyS7   ttyS79  ttyS88  ttyS97
ptmx    ttyS0    ttyS107  ttyS116  ttyS125  ttyS134  ttyS143  ttyS152  ttyS161  ttyS170  ttyS18   ttyS189  ttyS25  ttyS34  ttyS43  ttyS52  ttyS61  ttyS70  ttyS8   ttyS89  ttyS98
pts     ttyS1    ttyS108  ttyS117  ttyS126  ttyS135  ttyS144  ttyS153  ttyS162  ttyS171  ttyS180  ttyS19   ttyS26  ttyS35  ttyS44  ttyS53  ttyS62  ttyS71  ttyS80  ttyS9   ttyS99
random  ttyS10   ttyS109  ttyS118  ttyS127  ttyS136  ttyS145  ttyS154  ttyS163  ttyS172  ttyS181  ttyS190  ttyS27  ttyS36  ttyS45  ttyS54  ttyS63  ttyS72  ttyS81  ttyS90  urandom
shm     ttyS100  ttyS11   ttyS119  ttyS128  ttyS137  ttyS146  ttyS155  ttyS164  ttyS173  ttyS182  ttyS191  ttyS28  ttyS37  ttyS46  ttyS55  ttyS64  ttyS73  ttyS82  ttyS91  zero
stderr  ttyS101  ttyS110  ttyS12   ttyS129  ttyS138  ttyS147  ttyS156  ttyS165  ttyS174  ttyS183  ttyS2    ttyS29  ttyS38  ttyS47  ttyS56  ttyS65  ttyS74  ttyS83  ttyS92

modprobe loop and sudo modprobe loop return modprobe: FATAL: Module loop not found in directory /lib/modules/4.4.0-22621-Microsoft

What is the output of ls /dev/ | grep loop? Also, what is the output of modprobe loop? (this might require sudo)

For me ls /dev/ | grep loop returns
loop-control
loop0
loop1
loop2
loop3
loop4
loop5
loop6
loop7

and modprobe loop and sudo modprobe loop returns modprobe: FATAL: Module loop not found in directory /lib/modules/4.4.0-22621-Microsoft

Are you on WSL 1? I think you need to update your container to WSL 2.  Loop devices have been added to WSL 2.

@chibicitiberiu
I'm on WSL2 I'm not sure if badgeminer is. Doing a sudo apt update and sudo apt install dosfstools fixed this issue for me.
Also should QEMU output

when ran?

Yes, looks good. The FAT driver is currently broken in the C++ refactoring branch.

I just updated to wsl 2,
libguestfs still errors
and with mount I get
badgeminer2@Bm2Pc:/mnt/c/Users/badgeminer2/Downloads/nanobyte_os-master/nanobyte_os-master$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `build/i686_debug/kernel/kernel-stripped.elf' is up to date.
Creating disk image...
> creating partition table...
> formatting file using fat32...
> installing stage1...
> installing stage2...
> mounting image to build/i686_debug/tmp_mount_1693093186...
Please type your username password for running mount:
> copying kernel...
> copying files...
    ... copying test.txt
    ... creating directory folder
    ... copying folder/demo.txt
> cleaning up...
scons: done building targets.

and then from VirtualBox I get:

Failed to open the disk image file C:\Users\badgeminer2\Downloads\nanobyte_os-master\nanobyte_os-master\build\i686_debug\image.img.Could not get the storage format of the medium 'C:\Users\badgeminer2\Downloads\nanobyte_os-master\nanobyte_os-master\build\i686_debug\image.img' (VERR_NOT_SUPPORTED).

Result Code:
VBOX_E_IPRT_ERROR (0X80BB0005)

Component:
MediumWrap

Interface:
IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}

Callee:
IVirtualBox {7682d5eb-f00e-44f1-8ca2-99d08b1cd607}

Callee RC:
VBOX_E_OBJECT_NOT_FOUND (0X80BB0001)

trying QEMU

@badgeminer Couldn't you use scons run to run the OS with QEMU.  QEMU can be installed with sudo apt install qemu-system-x86 (in WSL).
Also VirtualBox does not support .img files (hence the VERR_NOT_SUPPORTED) as seen below ...

Instead you could follow https://superuser.com/questions/554862/how-to-convert-img-to-usable-virtualbox-format to convert the image into a .vdi. I haven't tried this yet.

@badgeminer Couldn't you use scons run to run the OS with QEMU. QEMU can be installed with sudo apt install qemu-system-x86 (in WSL).
Also VirtualBox does not support .img files (hence the VERR_NOT_SUPPORTED) as seen below ...
Instead you could follow https://superuser.com/questions/554862/how-to-convert-img-to-usable-virtualbox-format to convert the image into a .vdi. I haven't tried this yet.

VirtualBox does support .img disk images, but you were using an optical drive attached to the VM, hence why img files were not supported.
Instead, you can add a floppy controller to the VM under the "Storage" options.   QEMU can be installed with sudo apt install qemu-system-x86 (in WSL).
Also VirtualBox does not support .img files (hence the VERR_NOT_SUPPORTED) as seen below ...
Instead you could follow https://superuser.com/questions/554862/how-to-convert-img-to-usable-virtualbox-format to convert the image into a .vdi. I haven't tried this yet.

VirtualBox does support .img disk images, but you were using an optical drive attached to the VM, hence why img files were not supported. Instead, you can add a floppy controller to the VM under the "Storage" options. Then, you can attach a virtual floppy drive to the floppy controller, and can point to your .img disk image for that virtual floppy drive :)

@buellja
For me Virtual Box does not recognise the .img (even with a Floppy Controller). Anyway I prefer QEMU.

qemu fixed it


[BEAM-22] Add PushbackDoFnRunner

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[x] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[x] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[x] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

This DoFnRunner wraps an existing DoFnRunner and provides a method,
processElementInReadyWindows, which returns a list of WindowedValues
that could not be processed due to requiring a SideInput that is not
ready.

R: @peihe
R: @kennknowles  for committer
For an example of use, see here.
These PRs split for easier reviewability, plus the linked change requires #249 and a follow-up

Please rebase and place new files into runners/direct-java if appropriate, or util for now if they seem like they are runner-independent and will end up in runners/core.

Rebased on top of module change; moved ReadyCheckingSideInputReader and PushbackSideInputDoFnRunner to util.

I wanted to be sure to ping @aljoscha on this PR. Not sure if I did before. I think it may be relevant to developments.

LGTM. Will merge.

Thanks @kennknowles, I'll keep it in mind.


Automatically set build number/version code

This updates the build processes for both Android and iOS so that the
build number (iOS) and version code (Android) are automatically set at
build time based on the number of commits on master. This keeps the
numbers incrementing consistently without any explicit action needing to
be taken by the developer.

Clever!

Leaving this open, because there might be questions about if we should do this over explicitly bumping the build number/version code as a part of the release process

My only concern with this would be that it could be a bit noisy to keep committing new build numbers with each commit. Looks like that won't affect the gradle one since it's totally dynamic, does the way the iOS Script work change the file that stores the build number or just in memory?

This PR doesn't create commits for build numbers, it dynamically sets them via the build.gradle and by modifying the product's info.plist at build time.

I'm actually having second thoughts on this and have set up my current project to use explicit build number/version code bumps via fastlane. I'm going to leave this open for now as a reference in case people want to do this, but will wait to see how this feels on my current project before merging.

 Automatically set build number/version code


Not documented need to update ycm-cmake-modules in iCubOS 8.0 relased on 2021/06/04?

In the last days, both @Uboldi80 (https://github.com/robotology/ycm/issues/392) and @HosameldinMohamed reported this error when compiling the robotology-superbuild on a brand new iCubOS:
CMake Error at CMakeLists.txt:33 (find_package):
  Could not find a configuration file for package "YCM" that is compatible
  with requested version "0.13.0".

  The following configuration files were considered but not accepted:

    /usr/share/cmake/YCM/YCMConfig.cmake, version: 0.12.2

The problem is that YARP finds an old YCM installed in the system, and so it does not proceed as it requires YCM 0.13 (that would be downloaded by the superbuild if a YCM was not found in the system).
The solution is to just sudo apt update and sudo apt upgrade that updates YCM to 0.13 .
However, as this problem already affected two users in a few days, probably we should specify that sudo apt update and sudo apt upgrade is necessary, either after the iCubOS from image installation, or before the software installation?

cc @mbrunettini

I think it's faster here if someone provides a PR that we can discuss/comment anyhow.

We will insert a first step in the documentation with:
sudo apt update
sudo apt upgrade
This will install the last version (0.13) of YCM.
Usually this the first step with a new Linux system, but I can modify the documentation and specify that.

Good 👍🏻


Remove sw version deviation for cisco

Removes software version deviation for cisco in gNMI-1.10 and gNOI-4.1.

Pull Request Functional Test Report for #1816 / 64772618ffe2070f2dfddb21c6138e10bcc58b83
Virtual Devices

Device
Test
Test Documentation
Job

Arista cEOS

gNMI-1.10: Telemetry: Basic CheckgNOI-4.1: Software Upgrade

Cisco 8000E

gNMI-1.10: Telemetry: Basic CheckgNOI-4.1: Software Upgrade

Cisco XRd

gNMI-1.10: Telemetry: Basic CheckgNOI-4.1: Software Upgrade

Juniper cPTX

gNMI-1.10: Telemetry: Basic CheckgNOI-4.1: Software Upgrade

Nokia SR Linux

gNMI-1.10: Telemetry: Basic CheckgNOI-4.1: Software Upgrade

Openconfig Lemming

gNMI-1.10: Telemetry: Basic CheckgNOI-4.1: Software Upgrade

Help

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 47.655%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1341

Relevant Lines:
2814

💛  - Coveralls


Stop using PnP/Zero installs

Description
Yarn PnP/Zero installs is in many ways great - you wont have to run yarn install when switching branches just in case the branch has different dependencies. The dependencies are part of the git history.
However, this causes lots of other issues;

The repo grows vastly in size, so cloning the repo takes a long time (you could argue thats not really important, since you dont typically clone a repo often enough for it to become annoying)
npm link/yarn link doesnt work properly
Rollup terser plugin doesnt work (although @nemzes made a fix for this repo 🥇)
The language server in VS Code crashes when trying to navigate to 3rd party components
Cannot navigate to other 3rd party resources (f.ex css files) in VS Code
PR's are littered with irrelevant files when bumping versions for dependencies in package.json (see example here: https://github.com/Altinn/altinn-design-system/pull/34/files)

The benefits just dont outweigh the drawbacks, so we should switch to plain old node_modules approach.
Additional Information
No response
Tasks

[ ] Use nodeLinker: 'node-modules' in .yarnrc.yml
[ ] Update .gitignore with the correct files to ignore
[ ] Check if there is a way to remove the binary files already added to git history to reduce the size of the repository. If this turns out to be impossible without rewriting git history on main branch, we probably should not do it.

Acceptance Criterias
No response

I concur. The main advantage I see with PnP is security, but there are too many issues for now.


chore: proper 404/403 handling

[ ] I wrote tests for the feature
[ ] I documented the feature if needed

If the feature is a refactor, please explain why your way is better

@MatthieuJnon @znat I put the NotFound page back since you guys liked it so much. :)


Post to Reddit

Hi,
We found you on google :)
You did great job! we've also been developing a colorize-bot but for reddit
here is a writeup of what we've done :
http://whatimade.today/our-frst-reddit-bot-coloring-b-2/
Keep up the good work :)!

Awesome :) Checked out your video as well.


example(pug): not working in Nuxt 2.4.5

Version
v2.4.5
Reproduction link
https://github.com/nuxt/nuxt.js/tree/dev/examples/pug
Steps to reproduce
git clone git@github.com:nuxt/nuxt.js.git
cd examples/pug
yarn install
yarn run dev

What is expected ?
Build with no error.
What is actually happening?
ERROR Failed to compile with 1 errors
This relative module was not found:
./about.vue?vue&type=template&id=0a606064&lang=pug& in ./pages/about.vue
Additional comments?
https://github.com/nuxt/nuxt.js/issues/4822

This bug report is available on Nuxt community (#c8814)

I looked at the pull #4824 which should solve the problem and saw the pug-loader instead of pug-plain-loader wich is required if using vue-loader v15.
So the solution here is to use pug-plain-loader.

@paulgeisler Whoops! Sorry. Would you mind submitting a PR? :relaxed:

Sure thing! 😁👍


ssbdiagnose tool is documented but the tool is missing

The page documenting ssbdiagnose is fine. The problem is that the tool used to be installed when SQL Server was installed. It's also not in the feature pack. Anyone know where the tool can now be downloaded/installed from? If it's from another location, that needs to be documented.

@greglow
thanks for bringing this to our attention! The author has been notified to take a look. Thanks!

@stevestein please review.

@greglow - Thanks for raising this issue. I'll hoping to have some info in the next few days as to what the details are for getting ssbdiagnose. I'll reply again shortly as well as update the ssbdiagnose article.
Thanks again, and appreciate your patience.

@greglow - The team is currently working on this but to help users who need the utility we added a note to the top of the ssbdiagnose  page saying to install ssbdiagnose by installing SSMS 17.9.1.
I'm going to go ahead and close this issue. We'll update the article/note when the download details change.
Thanks again for raising this one.


RecyclerViewDragDropManager:onItemClickListener cannot get touch event while draging

In my adapter ,i set a View.OnClickListener on child view.It's availability while RecyclerViewDragDropManager.setInitiateOnLongPress(false).
But after RecyclerViewDragDropManager.setInitiateOnLongPress(true),above View.OnClickListener is invalid.
Any method except Override RecyclerViewDragDropManager#onInterceptTouchEvent to resolve this problem?
thank you very much

I want to Override RecyclerViewDragDropManager#onInterceptTouchEvent to resolve this problem,but method onInterceptTouchEvent cannot be Override.I have no any idea now.

RecyclerViewDragDropManager.setLongPressTimeout(time);
change a bigger time resolve this problem


Uncaught Exception: Attempting to call a function in a renderer window that has been closed or released. Function provid

An uncaught exception was reported.
Info:
OS: win32
Arch: ia32
GPMDP Version: 3.0.1
Time: Sat Mar 12 2016 16:24:07 GMT-0600 (Central Standard Time)
Error:
Attempting to call a function in a renderer window that has been closed or released. Function provid
Error: Attempting to call a function in a renderer window that has been closed or released. Function provided here: Object.<anonymous> (C:\Users\Samuel Pester\AppData\Local\GPMDP_3\app-3.0.1\resources\app\build\inject\GPMInject\interface\mouseButtonNavigation.js:8:8.
    at BrowserWindow.callIntoRenderer (C:\Users\Samuel Pester\AppData\Local\GPMDP_3\app-3.0.1\resources\atom.asar\browser\lib\rpc-server.js:201:19)
    at emitTwo (events.js:92:20)
    at BrowserWindow.emit (events.js:172:7)

This issue was created automatically inside the uncaughtException handler

Closing this automatically reported issue as a duplicate of #470


Enhancement request: Set Width

I am not a CSS guru, so maybe there was an easier way to solve this, but I had a hard time defining the width of the control when there were multiple instances on the page.  I ended up using this function to solve the problem, but I feel like is is still only half solved since it lacks grace.
function narrowSelect(colId, reduction) {
var el1 = $(colId + "_multiSelect");
el1.css("width", el1.width() - reduction);
        var el2 = $(colId + "_input");
        el2.css("width", el2.width() - reduction);
    }

If you could provide an easier way to specific width for the outer control (and that methodology took care of all the inner control widths), it would be a nice to have.
Again, thanks!

Quite an old issue (and I am really sorry for that), but eventually I managed to work on it.
Fixed the css to set the width for multiselect as you want, refer to demo for sample.
Shortly, you should set the style for the select as following:
#(initial_select_id_or_name)_multiSelect {
  width: 450px;
}


[BUG] - %counter overwriting

Description
ComfyUI: When using %counter in the filename, it will overwrite existing images. Basically %counter will reset to 0 everytime you queue up a render.
Result : When you queue X iterations with Batch_Size = Y, you will have Y images at the end, with %counter values from 0 to Y
Suggestion : have it work like the basic SaveImage node, where you supply the path&filename, and the counter is automatically added and incremented based on existing images with that filename at target path.
Reproduction steps
No response
Image file
No response
Version
1.3.4
OS
Windows
Tool
A1111's webUI

Fixed in v1.0.1, please update the node to the latest version.

Fix confirm, thanks for your effort !


Update New-CsTenantNetworkSite.md

-OnlineVoiceRoutingPolicy is the wrong parameter to assign a EmergencyCallRoutingPolicy for a Networksite. Edit Example 1 to EmergncyCallRoutingPolicy

Example 1 -OnlineVoiceRoutingPolicy has to be changed to EmergencyCallRoutingPolicy.

Docs Build status updates of commit 9594e2a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

skype/skype-ps/skype/New-CsTenantNetworkSite.md
:white_check_mark:Succeeded
View (skype-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@get-itips @dariomws @tseward

You need to configure through New-CSTenantNetworksite the assignement of the EmergencyCallRoutingPolicy in Teams. OnlineVoiceRoutingPolicy is no longer a parameter on this PS command. Also the Syntax should be correct and OnlineVoiceRoutingPolicy should be removed. Its no longer abailable in Teams module ver. 4.7.0

@hbunkradt Gentle reminder.

Closing as there is no response. Please feel free to create a new PR for revised update. Thanks


Tidy up

Tidy up code to reduce warnings mentioned in #12 .
Obsolete warnings still exists. Need changing OpenTK or using higher version of OpenGL ES.

👍 👍


Added .idea in .gitignore

Please remove the unrelated files in this PR.
If we are ignoring .idea, we should ignore *.iml too.

All the necessary files which should be ignored from git have been added to the .gitignore file.

The *.iml files are still missing. Please add them.


Gridcoin Chinese Translation-Bug Fixed

I fixed some type errors. Try this version.

This doesn't seem to be from the dev branch. Can you checkout development locally and open the file in Qt Linguist?


Package on PyPI

It'd be great if we had django-sorting on PyPI. From what I see setup.py is ready to have a python setup.py sdist bdist_egg register upload.

The package is on PyPi : http://pypi.python.org/pypi/django-sorting
i think you can close the issue :)


Only apply CRD API conversions for converting between singleton list and embedded objects APIs

Description of your changes
Only apply the CRD API conversions for converting between singleton list & embedded object APIs for the already existing resources with the generated singleton list CRD APIs.
When we try to add a new Terraform resource with a singleton list in its schema, currently, we need to do a manual configuration such as the following:
p.AddResourceConfigurator("azurerm_pim_active_role_assignment", func(r *config.Resource) {
		r.PreviousVersions = nil
		r.Version = "v1beta1"
		r.Conversions = nil
		r.TerraformConversions = []config.TerraformConversion{
			config.NewTFSingletonConversion(),
		}
	})

, so that the API converters registered are removed and versioning starts with v1beta1 instead of v1beta2 (for such new resources, the v1beta1 version does not already exist).
This PR records the names of resources with previous CRD APIs containing (now converted) singleton lists so that the API converters are only registered for them.
This makes adding new resources with singleton lists in their Terraform schemas easier by removing the need to do a manual configuration like shown above.
The newly introduced list should mostly be immutable (it records a set of existing resources with a specific condition at a point in time). Bugs may result in exceptions where we may need to update this list. In other words, new resources should normally be never added to this list, doing so will result in an invalid configuration.
Counterpart PR: https://github.com/crossplane-contrib/provider-upjet-azure/pull/767
I have:

[x] Read and followed Crossplane's contribution process.
[x] Run make reviewable to ensure this PR is ready for review.
[ ] ~Added backport release-x.y labels to auto-backport this PR if necessary.~

How has this code been tested
Uptest

/test-examples="examples/applications/v1beta2/application.yaml"


Allow for mixed-case data in ds9 strings

WIP: This is a fix for #236.  Wherever we're handling global metadata (keywords) or region shape names, we force them lowercase.  For the metadata, e.g., text={blah}, we lowercase the key but not the value.

This PR is made from a branch in the main repo. TODO: remove branch after merging.


docs: update spark33 installation instruction readme

Related Issues/PRs

#xxx
What changes are proposed in this pull request?
Briefly describe the changes included in this Pull Request.
How is this patch tested?

[ ] I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

[ ] No. You can skip this section.
[ ] Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

[ ] No. You can skip this section.
[ ] Yes. Make sure you have added samples following below steps.

Find the corresponding markdown file for your new feature in website/docs/documentation folder.
Make sure you choose the correct class estimators/transformers and namespace.
Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
Make sure the DocTable points to correct API link.
Navigate to website folder, and run yarn run start to make sure the website renders correctly.
Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
Make sure the WebsiteSamplesTests job pass in the pipeline.

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/getting_started/installation.md
94
100
100
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

/azp run

Codecov Report

Merging #1961 (2b36f73) into master (14213e2) will decrease coverage by 22.95%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master    #1961       +/-   ##
===========================================
- Coverage   87.01%   64.06%   -22.95%
===========================================
  Files         305      305
  Lines       15993    15993
  Branches      839      839
===========================================
- Hits        13916    10246     -3670
- Misses       2077     5747     +3670

see 122 files with indirect coverage changes

Can you please clarify what python version is needed? Your README.md says 3.6+ but the main documentation says 3.8+

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/getting_started/installation.md
88
100
100
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

@vishalovercome thank you for pointing out the python version mistake. It should be 3.8.

/azp run

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/getting_started/installation.md
88
100
100
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/getting_started/installation.md
88
100
100
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

/azp run

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/getting_started/installation.md
88
100
100
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

/azp run

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/getting_started/installation.md
88
100
100
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx


Improve nullable

Why
Use nullable() when this is possible, this is solving half of the case from #54 and this is a bit more semantic.

Codecov Report

Merging #57 (9f549f6) into main (e5e4961) will decrease coverage by 1.30%.
The diff coverage is 95.20%.

@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
- Coverage   98.49%   97.19%   -1.31%
==========================================
  Files           8       11       +3
  Lines         332      463     +131
  Branches      102      144      +42
==========================================
+ Hits          327      450     +123
- Misses          5       10       +5
- Partials        0        3       +3

Impacted Files
Coverage Δ

src/core/generateZodSchema.ts
95.45% <91.07%> (-1.75%)
:arrow_down:

src/utils/resolveDefaultProperties.ts
95.23% <95.23%> (ø)

src/utils/resolveModules.ts
97.61% <97.61%> (ø)

src/core/generate.ts
100.00% <100.00%> (ø)

src/core/jsDocTags.ts
98.50% <100.00%> (-1.50%)
:arrow_down:

src/core/validateGeneratedTypes.ts
97.43% <100.00%> (+0.06%)
:arrow_up:

src/utils/isNotNull.ts
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 506e54c...9f549f6. Read the comment docs.


Checkbox question with no answer blank on summary

Expected behaviour

Not checking any checkboxes for a checkbox question shows as "No answer provided" on the summary screen.

Actual behaviour

The answer is blank on the summary screen.

Steps to reproduce the behaviour

Start 0_checkbox_other.json
Don't select any answers to the checkbox question
Navigate to the summary screen and observe that the answer is blank.

Technical information
Browser
Chrome
Operating System
macOS Sierra
Screenshot

Defect Passed QA on branch


tangle without compiler directives?

I tried using lmt for documenting some shell scripts, but the generated files are splatted with what I assume are some sort of go compiler directives, like this:
%!(EXTRA int=87, main.File=2019-12-19-ovn-and-dhcp.lmt.md)#!/bin/sh

set -e

%!(EXTRA int=75, main.File=2019-12-19-ovn-and-dhcp.lmt.md)systemctl enable --now openvswitch ovn-controller
%!(EXTRA int=83, main.File=2019-12-19-ovn-and-dhcp.lmt.md)ovs-vsctl add-br br-int

What what I wanted was:
#!/bin/sh

set -e

systemctl enable --now openvswitch ovn-controller
ovs-vsctl add-br br-int

Is there any way to turn this off?

There was a bug with unknown languages when it tried adding the source line number, it should be fixed now if you update.

Looks good, thanks.


Wrapper: Make codeResources and useDiffEditor optional in EditorAppConfig

With latest changes it is now also possible to remove any codeResources or useDiffEditor from the editor app configuration.
Dependencies were updated as well

@CGNonofr eslint produces errors I don't see on Windows, but only on Linux. I can reproduce this locally.
I added volta-cli/action@v4 to enforce volta usage in the pipeline.

@CGNonofr I got it. Code from the dependent packages in the repo are not available. Type resolution is therefore not correct. The code needs to be built first.

@CGNonofr problems are resolved. This is ready now.


comments not showing in ionic2

Hi, how you tried to implement this into an ionic 2 app? I've imported the module, but all I get is the 'comments powered by Disqus' link, and nothing else. There are no errors to debug missing comments. Could you please provide some help with this?
EDIT:  Just to clarify what are the page-identifiers and page-url? I've used disqus on my website, and I've had to pass two variables - disqus shortname and disqus identifier, aka slug. Are those the same thing?
Thank you

I've not tried it with ionic 2 yet. The page properties are the unique identifiers for the page so that Disqus knows which comments to load see here for more info.


[Minor] Issue with searching using "-" (hyphen)

Came across an odd issue while trying to search for "non-Curse Auras". Searching for "non-" highlights almost all nodes, while "non-c" highlights a few seemingly random ones including Chaos Inoculation.

However, searching for "-", "non--curse", and "non\--curse" all yield proper results, which made me thing it was a parsing\escaping issue, but "non\-curse" does not.
(Search strings above are all visually correct and take GitHub Markdown into consideration.)

This is technically working as intended. The passive tree search field supports Lua patterns, which are a limited form of regex, in which "-" has a special meaning (match the shortest sequence of 0 or more of the preceding letter, in this case "n").
To be fair, that support isn't documented anywhere in the program or elsewhere, and you'd have a devil of a time figuring it out on your own. I do someday intend to add some kind of note in the program, and maybe offer a toggle and some basic instructions on using the patterns, but I don't really have time for that at the moment.

Thanks for the info!
The workaround for the issue posted here would be to search for "non%-curse", as % is the escape character in Lua.


x/net/http2: The starting streamid for client should be 3 instead of 1 when AllowHTTP is set.

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
1.10
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
W64
transport.go line 537:
nextStreamID:          1,
as http2-spec stated in https://http2.github.io/http2-spec/#discover-http

Stream 1 is implicitly "half-closed" from the client toward the server (see Section 5.1), since the request is completed as an HTTP/1.1 request. After commencing the HTTP/2 connection, stream 1 is used for the response.

and https://http2.github.io/http2-spec/#StreamIdentifiers

HTTP/1.1 requests that are upgraded to HTTP/2 (see Section 3.2) are responded to with a stream identifier of one (0x1). After the upgrade completes, stream 0x1 is "half-closed (local)" to the client. Therefore, stream 0x1 cannot be selected as a new stream identifier by a client that upgrades from HTTP/1.1.

The next stream ID for h2c should therefore starts from 3

I can do this.

Returning here, because this change inadvertently broke requests with a Connection: close header sent over a Transport with AllowHTTP set.
The cited parts of the HTTP/2 specification are referring to HTTP/1.1 requests which are upgraded to HTTP/2. We don't support request protocol upgrading; configuring a Transport with AllowHTTP permits sending unencrypted HTTP/2, but the connection is HTTP/2 from the start. As such, there is no HTTP/1.1 request to consume stream ID 1 and no reason not to use it.


ReferenceError: self is not defined - prism-keep-markup

Information:

Prism version: "prismjs": "^1.19.0"
Plugins: .babelrc { ... ["line-numbers", "show-language", "keep-markup"]
Environment: [Next.js]

Does the latest version of Prism from the download page also have this issue?
Yes
Description
After adding "keep-markup" to the plugins list, the app fails:

Example
Reproduction available below
PS you can stop the app from crashing by disabling "keep-markup" in .babelrc
https://codesandbox.io/s/nextjs-prismjs-slate-u5rmz

What browser is this in? When I pull this up in Chrome, self definitely exists. It also exists in FF. Maybe this is server-side...?

Why do we pass self as a parameter and then check inside the function whether it will cause a reference error?

@mAAdhaTTah I use Chrome, also tested on Safari and Brave. I did, however, try adding the following:
const isBrowser = typeof window !== 'undefined';
if (isBrowser) {
   Prisma.highlightAll();
}

yields same result. That said, it looks like the error occurs not on the call, but on the Prism instance import itself
@RunDevelopment - I'm guessing this question is not for me(?)

No, it wasn't. Sorry for not clarifying.

@RunDevelopment Yeah, we're pretty inconsistent on how we check what the global variable is, looking at our plugins.

That said, it looks like the error occurs not on the call, but on the Prism instance import itself

That makes sense, because that's when self is first referenced. That said, it looks like the error is on the server-side, rather than in the browser. Or maybe it's both? Pretty odd...

Ok. So removing the passing-in of self & document seems to resolve the issue locally for me. That's the only plugin that passes in those variables, oddly enough. Will PR shortly.
That said, there are some other underlying issues uncovered by this. line-numbers does not look good, and I'm getting Uncaught Error: Cannot resolve a Slate node from DOM node: [object HTMLDivElement] errors trying to type into the Slate editor. If Slate is wrapping each line in its own DOM node, I don't think we can guarantee that Prism will behave correctly.


PP-864 We should not serialize email field if null

WHAT
A brief description of the pull request:

We should not serialize email field from the payment response if it is null

HOW
Steps to test or reproduce:
cd $WORKSPACE
msl reset && msl -a up && ./run-endtoend.sh

@rauligs  Please verity you are happy with these changes. Thank you :)

👍


Question about Z3 solver used.

Hello, thanks for your fancy research and your code. There is one question bother me: I mention that you only deal with GCC Flags i n the source code of BinTuner, but in the paper, you use both GCC and Clang.

Both LLVM and GCC explicitly specify a set of constraints between optimization ?ags, including adverse interactions and dependency relationships.

I check their website and find that it's clear in GCC, but nobody mentioned this kind of interaction in LLVM.
So does that mean there's no such interaction? Or it's just so hard for us to figure it out?
I would appreciate it if you could help me with this.

Hi guys  : ）
Thank you very much for your interest and feedback!
This question has been answered, let me close it for now and if you have other questions, feel free to open a new one.
All the best,


test: make models tests their own package

This reduces the diff with #183 a bit, and is good practice

I'll update PR #424 after this one is merged.


[BUG] - Missing module "lib/stringify" in frontend when running on Ubuntu server.

UE Version:
E.g. UE 5.4
Frontend Version:
E.g. UE5.4
Problem component
Signalling Server, Frontend
Description
An error in the player or frontend that prevents the user from playing. There is nothing but a blank page presented. The error and stack trace is as follows:
Uncaught Error: Module build failed (from ./node_modules/ts-loader/index.js):
Error: Cannot find module './lib/stringify'
Require stack:
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/braces/index.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/micromatch/index.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/ts-loader/dist/utils.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/ts-loader/dist/after-compile.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/ts-loader/dist/instances.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/ts-loader/dist/index.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/ts-loader/index.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/loader-runner/lib/loadLoader.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/loader-runner/lib/LoaderRunner.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/webpack/lib/NormalModuleFactory.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/webpack/lib/Compiler.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/webpack/lib/webpack.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/webpack/lib/index.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/webpack-cli/lib/webpack-cli.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/webpack-cli/lib/bootstrap.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/webpack-cli/bin/cli.js
- /home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/webpack/bin/webpack.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/home/ubuntu/PixelStreamingInfrastructure/Frontend/ui-library/node_modules/braces/index.js:3:19)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at ./src/pixelstreamingfrontend-ui.ts (http://myipaddress/player.js:10086:7)
    at ../../ui-library/dist/lib-pixelstreamingfrontend-ui.esm.js (http://myipaddress/player.js:10097:67)
    at __webpack_require__ (http://myipaddress/player.js:10124:41)
    at http://myipaddress/player.js:10181:107
    at http://myipaddress/player.js:10204:3
    at http://myipaddress/player.js:10207:12
    at webpackUniversalModuleDefinition (http://myipaddress/player.js:9:32)
    at http://myipaddress/player.js:10:3

Steps to Reproduce:

Clone this project and setup the Signalling Server as per documentation, on Ubuntu server.
Run the signalling server.
Open the frontend page in browser.

Expected behavior

The frontend works normally

Screenshots
N/A
Platform (please complete the following information):

OS: Ubuntu on server, Windows on client.
Browser: Chrome

Additional context
I was using AWS EC2 instance with Amazon Linux, it should behave similarly to normal Ubuntu for the most part.
The problem does not appear on Windows when I test locally.
This issue happens regardless of whether the streamer instance is connected or not.

I tested this on a fresh AWS instance running Ubuntu Server 24.04 and cloned the infrastructure repo, switched to UE5.4 branch and ran the run_local.sh script. I pointed a streamer at it and then opened the frontend on a Windows machine on both Chrome and Firefox and was unable to reproduce this issue. Both browsers streamed without issues.
Is there something different with your setup? Have you tried using a fresh AWS instance?


Document JINJA2_LOADER

You've accepted a pull request for a new setting - JINJA2_LOADER in this pull request.
However it has not be documented. Was quite a surprised when I came across it in the code!

Yes, you are right.
Thank you very much for report it ;)

I have documented it for django < 1.7 setups.


Is this still relevant to windows 10 1809 x64 and newer?

Is this still relevant to windows 10 1809 x64 and newer?

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

ID: 3aeb487d-b749-4f6e-9ff5-71be68bf7a09
Version Independent ID: 44418645-8c6e-7387-ba3e-02f478816961
Content: Installing an Unsigned Driver during Development and Test - Windows drivers
Content Source: windows-driver-docs-pr/install/installing-an-unsigned-driver-during-development-and-test.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @tedhudek
Microsoft Alias: tedhudek

Hi @studleylee, apologies for the delay.  Is there a specific aspect of this page that you are wondering about?

The answer is yes, everything on the page is still relevant.

Lame Answer and not true. Why don't you guys update your stuff?


Kubedock does not work with recent testcontainers-java kafka (1.16.+)

Hi,
First of all: thanks for making and maintaining this repo. Really useful! I have played around with this repo and especially with Kafka testcontainers on OpenShift with Tekton. I found out that your example works nice on OpenShift but mine project failed.
Mainly because your examples use version 1.15.3 while mine project was using 1.16.3. There have been some changes around the dynamic updating of the Kafka config.
With version 1.16.3 the args of the deployed containers look like:
args:
        - sh
        - '-c'
        - |
          #!/bin/bash
          echo 'clientPort=2181' > zookeeper.properties
          echo 'dataDir=/var/lib/zookeeper/data' >> zookeeper.properties
          echo 'dataLogDir=/var/lib/zookeeper/log' >> zookeeper.properties
          zookeeper-server-start zookeeper.properties &
          echo '' > /etc/confluent/docker/ensure
          /etc/confluent/docker/run

while 1.15.3 creates:
args:
        - sh
        - '-c'
        - >-
          while [ ! -f /testcontainers_start.sh ]; do sleep 0.1; done;
          /testcontainers_start.sh

It seems to replace and create files that need root permissions, I think this is the reason why it fails in OpenShift (where containers typically are enforced to not run as root).

It seems to replace and create files that need root permissions, I think this is the reason why it fails in OpenShift (where containers typically are enforced to not run as root).
Related: #7

In am not sure how this affects my observation between 1.1.5.x and 1.1.6.x of testcontainers-java. Just to make it clear if I didn't in my previous post: 1.15.3 works well in OpenShift and 1.16.x fails in OpenShift.

By default, OpenShift does not run containers with the root uid/gid, but takes an arbitrary uid instead. This also applies on tekton tasks; they are run as an arbitrary user.
The relation with this issue, and this restricted security context constraint, is that the change on the kafka container implementation in the testcontainers framework wants to write and update files that are owned by uid/gid 0 (root).
Since this is done at runtime, the user that is running the container should have permissions to write to the container should also have permissions to do that. In the (default) OpenShift configuration, this is not the case.
The previous implementation did not rely on copying files at runtime, hence the problem doesn't occur there.

When running vanilla tekton (not openshift-pipelines) on openshift it is nessecary to allow the serviceaccount to run as anyuid.
This could be done via oc cli:
oc adm policy add-scc-to-user -n <yournamespace> -z <serviceaccount> anyuid
Or via Role and RoleBindings (requires openshift version 4.3.8 or higher):
kind: Role
metadata:
  name: scc-anyuid
  namespace: <yournamespace>
rules:
- apiGroups:
  - security.openshift.io
  resourceNames:
  - anyuid
  resources:
  - securitycontextconstraints
  verbs:
  - use
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: sa-to-scc-anyuid
  namespace: <yournamespace>
subjects:
  - kind: ServiceAccount
    name: <serviceaccount>
roleRef:
  kind: Role
  name: scc-anyuid
  apiGroup: rbac.authorization.k8s.io

Closing in favour of #43.


microsoft azure

The intranet IP should be used by default, otherwise you will not be able to connect properly.
Like 10.*. *. *

and nat

Hi. Don't really understand what you talking about


sql: implement EXPLODE and generators

This pull request implements the EXPLODE expressions and generators,
which are used together to provide generation of rows based on a
column or expression that can yield multiple values.
For this, there have been some quite core changes:

SQL method of sql.Type now returns the sqltypes.Value and an error.
This avoids panics in this method. Since generators can yield errors
it's better to just return an error and not just kill the server.
Array type can now internally handle either arrays or generators,
making it transparent for the user. If it's used in an EXPLODE
expression, the generator will be used. Otherwise, it will be
converted automatically to an array and used without the user even
knowing what happened behind the scenes. That way, we don't need
yet another type to represent generators.

Aside from that, there are some new additions:

New EXPLODE function, which is just a placeholder. EXPLODE type is the
underlying type of its argument for resolution purposes. During analysis
Explode nodes will be replaced by Generate functions and a Generate node.
New Generate function, which is the non-placeholder version of EXPLODE
and the one that goes into the final execution tree. This one returns
the same type as its argument and let's the Generate plan node be the
one that returns the underlying type once the values are generated.
Generate node, which wraps a Project in which there is one and only one
explode expression.
resolve_generators analysis rule, which will turn projects with an
Explode expression into a Generate node with the project as a children,
replacing the Explode expressions with Generate expressions.
validate_explode_usage validation rule, which will ensure explode is
not used outside a Project node.

Needs rebase, can then be merged? (I can use this on the BLAME PR for the integration tests).

LGTM after rebase.

Rebased

@erizocosmico could you check tests?

I rebased, but didn't remember to change the imports to the new paths 😅
Fixed


SCPlayer - Progress indicator

Hi,
I'm trying to make the player provide a  playback progress but, it's not clear from the API how it's possible, if at all. any advice on the matter will be welcome.

@rFlex would be able to give the exact solution but here's how I do it;
Set the player delegate ( player.delegate = self ) and then  [player beginSendingPlayMessages]
Then you will have this this delegate called

(void)player:(SCPlayer*)player didPlay:(CMTime)currentTime loopsCount:(NSInteger)loopsCount{
Float64 seconds = CMTimeGetSeconds(currentTime);
}

@xcoder89 is correct ;)
On Wednesday, May 13, 2015, Xcoder89<EMAIL_ADDRESS>wrote:

@rFlex https://github.com/rFlex would be able to give the exact
solution but here's how I do it;
Set the player delegate ( player.delegate = self ) and then [player
beginSendingPlayMessages]
Then you will have this this delegate called

(void)player:(SCPlayer*)player didPlay:(CMTime)currentTime
loopsCount:(NSInteger)loopsCount{ Float64 seconds =
CMTimeGetSeconds(currentTime); }

—
Reply to this email directly or view it on GitHub
https://github.com/rFlex/SCRecorder/issues/159#issuecomment-101724919.

Hi,
@Xcoder89 thanks for the tip. it worked for me.
@rFlex its really unclear from the API and the documentation, please add it somewhere I'm guessing that there are more people with the same problem

And again thank you both for the help


Allow to override default env variables with .env file

The godotenv.Load method does not overload the ENV variable if it is already present. This is a problem if you want to use --env-file to provide any settings with default values in Dockerfile. This means, that it's not possible to set DRONE_DATABASE_SECRET within .env file (trying to achieve the technique described here).
In the case of deploying the Drone, I'm sure that using godotenv.Overload is preferable, because this allows to keep the database password private with docker secrets.

My current workaround is using entrypoint to unset env variables:
entrypoint:
  - /bin/sh
  - -c
  - |
    set -e
    unset DRONE_DATABASE_DATASOURCE
    set -- /bin/drone-server "$$@"
    exec "$$@"
command:
  - /bin/drone-server
  - --env-file=/drone.secret.env

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

This PR has been automatically closed due to inactivity.

What kind of activity is expected by the bot?


Allow to run tests seperately

Need an option to run mocha tests without compiling

Try using the --disable-build flag when running your tests, e.g.:
npx locklift test --network testnet --disable-build

Thank you. Could this be included in the --help command? It's not visible as an option.

It is already included:
❯ locklift test --help
Usage: locklift test [options]

Run mocha tests

Options:
  --disable-build              Disable automatic contracts build (default: false)
  -t, --test <test>            Path to Mocha test folder (default: "test")
  -c, --contracts <contracts>  Path to the contracts folder (default: "contracts")
  -b, --build <build>          Path to the build folder (default: "build")
  --disable-include-path       Disables including node_modules. Use this with old compiler versions (default: false)
  -n, --network <network>      Network to use, choose from configuration
  --config <config>            Path to the config file (default: undefined)
  --tests [tests...]           Set of tests to run, separated by comma
  -h, --help                   display help for command

But we'll update the readme just in case, it's really not mentioned anywhere about this

I see, my bad, thank you.


Document new CSV capabilities

these new enhancements will most likely need docs updates. https://github.com/influxdata/influxdb/pull/18779

The following pages need updating:
https://docs.influxdata.com/influxdb/v2.0/reference/syntax/annotated-csv/extended/
https://docs.influxdata.com/influxdb/v2.0/reference/cli/influx/write/
https://docs.influxdata.com/influxdb/v2.0/write-data/developer-tools/csv/

#1520 has merged. Closing.


"CustomerConfig.xml'  does not exist

"CustomerConfig.xml'  does not exist
"C: \ CloudDeployment \ CustomerConfig.xml" file does not exist.
Correct file is  "C: \ CloudDeployment \ Config.xml"
Error Message
Can not find path 'C: \ CloudDeployment \ CustomerConfig.xml' because it does not exist.
     + CategoryInfo: ObjectNotFound: (C: \ CloudDeployment \ CustomerConfig.xml: String)

Hi @Pyromaniaxxx, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;


Ch eslint pre-commit hook #48

Description
This PR sets up ESLint and a pre-commit hook to ensure that the codebase adheres to our coding style and passes all tests before every commit.
ESLint is now the required linter for the project, and it will check for style violations and flag them. The pre-commit hook has been configured to run two commands before every commit:
Changes Made
Configured ESLint and Git pre-commit hook to run tests and ESLint format before commits. This ensures that style violations are flagged and that code is not committed with test breaking changes.
Implementation Details

Configured ESLint and Prettier to enforce code style guidelines
Added pre-commit hook to format the code base before every commit
Added test command to ensure no code is committed with test breaking changes

How to Test

Clone this Repo
install dependancies npm i
Make changes to the code by violating the linting style ex: put extra lines beteen statements
Attempt to commit the changes without fixing any style violations or test breaking changes
Observe that the pre-commit hook prevents the commit and displays error messages

Screenshots

Related Issues
None

 Configure ESLint and Git Pre commit hook to run tests and ESlint format before commits


Getting Started section images skewed.

Description
Getting Started section images skewed.
Enviroment:

OS: Mac
Browser: Safari
Version: 15.0

Screenshots

Contributor Resources
The meshery.io website uses Jekyll and GitHub Pages. Site content is found under the master branch.

See the Contributing to Meshery.io Website section of the readme.md and other contributing instructions, too.
See Meshery site designs in this Figma designfile. Fill-in the Layer5 Community Member Form and join the Layer5 Community Slack for access.

Thank you for taking this, @warunicorn19

This issue can be closed as @warunicorn19  's PR #600  has been merged for fixing this issue.

Sorry my bad, I forgot to link.

No worries. It was urgent fix I can understand 😄


Include CodeCov

Description
This PR incorporates the running of golang unit tests and code coverage analysis.
Notes for Reviewers

CodeCov repo secret has been added to this repo.
CodeCov GitHub app has been enabled for this repo.

Signed commits

[x] Yes, I signed my commits.

Thanks for your guy's contributions.


Image generation using GD

Hello,
It's my first participation on Faker so excuse me in advance if I did some mistake.
I added a new formatter that creates images directly from PHP using the GD methods (usually by default on most setup).
I felt it could be a good addition as the image formatter currently uses the great LoremPixel, but has a drawback that it is quite slow on generating multiples pictures and need an internet connection.
This formatter doesn't require network and is way much faster, but... not as pretty indeed.
I added it on the Image Provider as it seemed obvious to me.
It takes about the same arguments as the image formatter (dir, width, height...) and I added possibility to add a text and change colors.
For the text I included the open source font Roboto (https://www.google.com/fonts/specimen/Roboto under Apache licence), I hope it's ok for you but I can understand it could be the main problem of my new feature.
I hope you'll like it and I'm ready to make any good changes suggested.
Best regards.

Hi, interesting generator!
However, I think generating random colors and text in a bitmap is far from generating a random image. the needs for random images can be to have random products, random profile pictures, etc.
Including a new generator in Faker Core would only be possible if it covered such uses cases, but IMO it's an entirely different job (it means building up a library of tagged-open-source images and a resizer).
Anyway, I suggest you make it a standalone provider (such as https://github.com/fzaninotto/CompanyNameGenerator) and send me a PR to include a link to it in Faker's README.
Thanks anyway for the PR.

Hello,
I'm a bit disapointed but I understand your point that makes sense.
I will convert this into a standalone provider, but if in any case I can change your mind, you say that the goal of faker is to generate "as much as possible" real content, that's perfectly true, but there are some cases where there isn't this need:

on a développement point of view, having real images might not be needed and it would greatly help when Faker is used on fixtures generation (as I told before, much faster than online fetching of data)
for automated tests, the same apply. An integration server doesn't care about the picture content.

Anyway, the new PR should be here soon.
Best regards.

How about passing a template image and only slightly modifying it?

@nineinchnick I thought about that but it's a bit more complicated, and I'm not sure it would fit the "realistic" vision of Faker @fzaninotto told about.
But I'll think about something if I have time.

To keep it simple I'd suggest overlaying an Identicon with partial opacity over the template. There could be an optional string provided to seed the Identicon.
This way, you could generate product images using the category image as template and product name/id as hash.
Actually, the Identicon generator is a good idea itself.

@nineinchnick could be an idea!


Provide platform-specific extension Packages

With VSCode marketplace supporting platform-specific VSIX packages (e.g. ms-vscode.cpptools, it would be very helpful to have this for vscode-lldb as well. The plugin would then not need to download the extra, platform-specific binary lldb package any more on installation -- which fails in an offline setup.

This extension is also distributed via open-vsx, which does not support platfom-specific packages natively.   If you need a platform package, you can download one from the GitHub releases page.

I know how to download the extra, platform-specific package. It's just that installing it in an offline environment is a bad experience: Installing the main package produces XHR errors because it tries to download the platform-specific one. Manually installing the extra package afterwards works. So I guess this is low prio, but there is a mechanism for making this easier to handle (at least in the MS marketplace).

Installing the main package produces XHR errors because it tries to download the platform-specific one.

The platform package is a superset of the generic one.  You can install it directly and it won't try to download anything.


Suggest to allow specific the file type manually

Most of the plugin only trigger under specific file type.
It would be best if I can define what is the current file type, so that I don't need to change the file type to fulfill the condition of those plugin/syntax highlight.
Especially, I would like to have a syntax highlight feature in a temporary 'new file'(ctrl+N) without save it into real file.

@zealitude Do you mean this?

Oh, yes...it is exactly what I want except it is a command.
please close this issue, thank you.

Great!


chore: remove default values from app cfn templates

This PR contains two important changes:

The default values in the generated application cfn template are gone. The Template() method only gives you the template string without any values filled in. Instead, callers should also call the Parameters() method to get the parameter values for the template.
The stack package is significantly simpler.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

e2e tests pass:
Ginkgo ran 5 suites in 1h38m43.2761075s
Test Suite Passed


npm shrinkwrap causes peer invalid error

Hi,
Im using react-json-pretty 1.4.0 with React 15. Nodejs is 4.6.2. I have tried a few versions of npm (3.8, 3.10, 4.x). When executing npm shrinkwrap --dev, I get an error: peer invalid<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>Any chances of updating the package to use react 15?
Appreciate any help.

Hi,
The<EMAIL_ADDRESS>has been published, and the peerDependencies version has been changed to adapt to a very large version of react&react-dom，which will satisfy your demonds.
In the example project, testing shows that everything is ok, including the npm shrink command.
If there are any other questions, welcome to create an issue to show them.
Thanks

Close the issue.


Warning - You need to have Ruby and Sass installed and in your PATH for this task to work

I recognize that there's a similar issue that appears to have been resolved. But that was issue 880 on Ubuntu. This time it's on CentOS 7 and happens when I run grunt or sudo grunt from a project.
I have Ruby and Sass installed, and in my path, because echo $PATH gives:
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/finid/.local/bin:/home/finid/bin

And which ruby says:
/usr/bin/ruby

While which sass gives:
/usr/local/bin/sass

What else do I need to do?

What's the error message?

Here's the full output:
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
 Used --force, continuing.

Are you able to run ruby and sass from the command line?

Unfortunately, no, which is strange, because which ruby returns the expected result. Same for Sass. For both, I only get a blinking cursor.
Any clues why?

Try adding --help after to just get output and not input.

Ok, I got it now. I got the usage output, so I know I can run both ruby and sass from the command line.
But the original issue still remains.

What's the error itself?

Well, adding --help just prints the usage instructions. Where you expecting an error?

Sorry, I meant the actual issue that you're posting about. It seems like this was just a dependency issue.

Ok, the issue has been fixed. With Ruby and Sass installed, I edited /etc/sudoers and modified the line that reads:
Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin

To include /usr/local/bin, which is the directory path to the Ruby and Sass commands, so that it reads:
Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin


Can't dynamically render toggles

So I'm trying to create controls dynamically. PhyControls is a list of controls. Here's my code
$.get("phy.json", function(data, status) {
for(var control in data) {
            var output = ""
            // create our toggles
            output += "

" + control + "
";
            output += "<input id=\"" + "toggle-one" + "\" checked type=\"checkbox\"";
            output += "data-onstyle=\"success\" data-offstyle=\"info\" class=\"dynamicPhy\">";
            output += "
"
            // add the controls
            $("#PhyControls").append(output);
        }
    });
    $('.dynamicPhy').bootstrapToggle();

I've looked around and every resolution of this issues points to initializing the toggle with the bootstrapToggle method. I've tried a variety of methods trying to use bootstrapToggle on the id as well and different places in terms of flow control, but no luck.
In all of the examples on the website it looks like the toggle already exists in the DOM. None of the toggles are added in dynamically. Any help would be great as this is really hindering my ability to expand my application right now.

Issue was with jquery. Can't have spaces in the Id....


compiler/protogen: switch warnings to hard errors

Is your feature request related to a problem? Please describe.
github.com/grpc-ecosystem/grpc-gateway started using protogen to compile protobuf files to Go. It contains a lot of tests and examples and some of them do not have, for example, go_package defined. This results in a flood of warnings when running tests and makes it harder to debug the actual problem.
Describe the solution you'd like
The solution already exists:
func init() {
	warnings = false // avoid spam in tests
}

Which suggests that protobuf-go has the same problem. However, this is private and it's not possible to change warnings value from outside of the protogen package.
Making it public or introducing a function to change it does not sound good because it will pollute the public interface with functionality which is useful only for tests.
My proposal is to disable warning using an environment variable. It can look like this:
func init() {
	warnings = false // avoid spam in tests

	if os.Getenv("PROTOGEN_WARNINGS") == "off" {
		warnings = false
	}
}

Describe alternatives you've considered
Providing a function to set warnings value, as I said above, would pollute the public interface.
A real alternative could be using a build tag to set warnings to false, however, this requires to change the code orchestrating tests execution which might introduce additional problems. Defining an environmental variable is more neutral.
Additional context
I can work on the implementation if this feature request will be accepted.

I believe all cases of warnings emitted by protogen are ones which we intend to convert to a hard error in the future. I don't think we want to make it easier to ignore these warnings, which would make it likely that users will be unexpectedly broken in the future.

The proposal above would only work in test code. func init() { ... } is taken from a protogen_test.go. We can change the env name to PROTOGEN_TEST_WARNINGS to further indicate it. It would be never available or documented for end users. It would be available only for developers and when warnings are converted to hard errors, the tests would fail even if the env is set.

The protobuf module has the ability to suppress these warnings, because we need to test the deprecated-but-still-supported cases that we warn on. No other module should be exercising these code paths. Any that are will suddenly break when we promote the warnings to errors, which is exactly the case the warnings are trying to avoid.

I generally agree with this approach, however, the context of grpc-gateway is a bit different. It extends the protobuf module (more precisely the protogen package). The expectation is that it will support the same features as protogen so it also contains tests that check deprecated cases.
Again, the proposed warnings suppression will only work when executing the protobuf source files with go test.

This means that when we convert those warnings to errors, the grpc-gateway module's tests will break. That's unfortunate. I don't think we want to make it easier to ignore that fact.

It's been about 6 months since the initial release of the google.golang.org/protobuf module. It's probably about time we turn these warnings into hard errors anyways.

@neild that will be fine, I think (I am not a maintainer) that the goal of grpc-gateway module is to follow whatever and however protobuf-go supports these common features because it ultimates depends on protobuf-go capabilities. I believe that it's also good from the end user perspective. Furthermore, in my opinion, anything using protogen to generate Go files should align the support of common features.
If we can turn the warnings into hard errors soon that would be great!

v1.26, which will be released either this week or next week will make warnings a hard errors.
See https://golang.org/cl/301953