text:
NS 3.0: ngOnInit() .android is undefined.

From @Abdumama on April 17, 2017 9:27
### Tell us about the problem
I'm trying to access at the native API of the TextField component in the ngOnInit method but .android returns undefined.
### Which platform(s) does your issue occur on?
Android
### Please provide the following version numbers that your issue occurs with:

CLI: 3.0.0-rc.1
Cross-platform modules: 3.0.0-rc.2

### Please tell us how to recreate the issue in as much detail as possible.
test.component.html
<TextField #username id="username"></TextField>
test.component.ts
@ViewChild("username") usernameTextField: TextField;

ngOnInit() {
	console.log(this.usernameTextField.android); // undefined
	console.log(this.page.getViewById("username").android); // underfined
}

Copied from original issue: NativeScript/NativeScript#4006

Hi @Abdumama,
In this case, you should use TextField loaded event. The native instance of the component for android will still not be initialized when the ngOnInit is fired.
For further help and sample code, you could review the comment in this issue.

Hi @tsonevn,
In the version 2.5 I can access at the native API values of the component in the ngOgInit  method.

Hi @Abdumama,
I have tested the same scenario with the latest official CLI 2.5.4 and the native API seems to be unavailable on ngOnInit method.
For your convenience, I am attaching the sample project. You could review the project and to tested on your side.
Archive.zip

Hi @tsonevn,
after several tests I realized why in my project I was able to access at the native API in the ngOgInit.
The difference is how the component is declared by the @ViewChild annotation.
If I use the ElementRef type everything works correctly in the ngOgInit method.
Resume and change the example I did above.
With ElementRef type: Work DONE!
test.component.html
<TextField #username id="username"></TextField>
test.component.ts
@ViewChild("username") usernameTextField: ElementRef;

ngOnInit() {
	console.log(this.usernameTextField.nativeElement.android); // android.widget.EditText{faaf47d VFED..CL. ......I. 0,0-0,0}
}

With TextField type: Doesn't work!
test.component.html
<TextField #username id="username"></TextField>
test.component.ts
@ViewChild("username") usernameTextField: TextField;

ngOnInit() {
	console.log(this.usernameTextField.android); // undefined
}

Hi @Abdumama,
If I understand you correctly, you are able to access the native instance on ngOnInit, while using ElementRef and modules 2.5.2.
I tested again this scenario while following the description in the comment, however, I am still unable to access the native property.
For your convenience I am attaching sample project, could you review it and make the needed changes if it necessary.
It would also help if you could provide some info about the Android device or emulator, which you are using for testing and its API level.
Archive.zip
In my opinion, the best time to access the android property is on component loaded event.
Regards,
@tsonevn

I have tried your project and the problem persist, but in my project the ElementRef works well.
The only difference I have found between the two projects is the version of AngularJS.
In my project I use the 2.4.3, you use the 4.0 version.
Anyway I'm using the event loaded and all work without problem.
Thanks for the help.

authors: Abdumama tsonevn

repo: NativeScript/nativescript-angular


text:
Android: How to get file extension of images selected using @nativescript/imagepicker

Hello, I am using @nativescript/imagepicker to select multiple images on android.
I would like to only keep the images which have .jpg, .jpeg, and .png extensions.
I am checking the URI using selection[0].android, but the result is:
content://com.android.providers.media.documents/document/image%3A52
It contains the image name, but not the file extension.
How can I get the file extension using imagepicker?
This is my implementaiton:
var context = imagePicker.create({
    mode: 'multiple',
    showsNumberOfSelectedAssets: true,
    mediaType: ImagePickerMediaType.Image
})

context
    .authorize()
    .then(function () {

        return context.present()
    })
    .then(function (selection) {

        fileURI = selection[0].android;
        console.log(fileURI);

...

I am using:
@nativescript/core: v8.0.2
@nativescript/imagepicker: v1.0.6

How to get the file extension?

In @nativescript/imagepicker 2.0, it now returns more information about your selection. You can get extension by doing
selection[0].filename.split('.').pop() for example.

source: gharchive/issue

authors: SaadmanGTM davecoffin

repo: NativeScript/nativescript-imagepicker

license_type: permissive

license_source: github-api


text:
Date pipe with 'medium' format adds/truncates zero from single-digit hours and seconds

From @otaran on May 22, 2017 19:39
Steps to reproduce

Create date with hours < 10 and seconds < 10.
Display this date with date pipe and medium format:

@Component({
    template: `
})
export class DateComponent {
    now = Date.parse('2017-05-22T07:05:09Z');
}

Expected result
The date doesn't have leading zero in hours, has leading zero in seconds and has a comma after year: May 22, 2017, 7:05:09 AM (in UTC timezone).
Actual result
The date has leading zero in hours, doesn't have leading zero in seconds and doesn't have a comma after year: May 22, 2017 07:05:9 AM (in UTC timezone).
Notes
Plunker to demonstrate expected Angular behavior: https://embed.plnkr.co/eF8VFN/
Nativescript app to demonstrate actual behavior: tns-date-pipe.zip
Copied from original issue: NativeScript/nativescript-angular#815

@otaran thank you for reporting this one! After creating this test application I can confirm that indeed using Date pipe with format medium or mediumTime is not rendering the expected result.
example:

where now is the same as in the above example
now = Date.parse('2017-05-22T07:05:09Z');

From @otaran on May 23, 2017 14:16
@NickIliev thanks for verifying this! Should I report this issue to nativescript-intl project?

@otaran indeed this appears to be a limitation coming from nativescript-intl plugin. Currently, you can use all other Date pipes apart from medium and mediumTime where the issue with the seconds appears.

@NickIliev just FYI this issue is reproducible on both Android and iOS.

authors: NickIliev otaran

repo: NativeScript/nativescript-intl


text:
Recommended way to debug in VSCode during plugin development?

Hi can you give a quick explanation how you are debugging your demo apps/plugins in the workspace?
I can add new NativeScript launch configurations for npm start like this.
        {
            "command": "npm start",
            "name": "Run npm start",
            "request": "launch",
            "type": "node-terminal",
        },
        {
            "command": "npm start apps.demo-angular.android",
            "name": "Demo Angular Android",
            "request": "launch",
            "type": "node-terminal",
        },
        {
            "command": "npm start apps.demo-angular.ios",
            "name": "Demo Angular iOS",
            "request": "launch",
            "type": "node-terminal",
        }

But then all breakpoints I set are unbound and grayed out.
If I start the application via the interactive 'npm start' and try to attach a debugger (via "Attach on iOS") I get this result:
The application undefined is not installed on device with identifier 7ED7FC41-801D-46D3-A72B-915CC66884E5.
Am I missing something here?
Thanks

It turned out, I added the launch configuration at the wrong place.
The auto generated launch.json was placed inside the plugin workspace.
pluginworkspace
  .vscode
    launch.json

In order to use it with the demo app I had to move it. In the correct demo directory.
pluginworkspace
  apps
    demo-angular
      .vscode
        launch.json

Lesson learned, now it works as expected.

repo: NativeScript/plugin-seed


text:
Game state change isn't intuitive when time is manually zeroed

Four different cases:

Clock running, time zeroed via dialog
Clock stopped, time zeroed via dialog
Clock running, dialog opened but clock runs out naturally
Clock running, clock runs out naturally

I'll fix all this up. Case 3 there is really busted. If time runs out naturally while the dialog is open, and the user submits the change anyway, the time in the following half will change. If the user had set the time to zero, the half will be skipped entirely.

Fixed in #33. Now option 4 is the only case that changes the game state.

authors: garious jroelofs

repo: Navisjon/uwh-refbox

license_source: bigquery


text:
reopen: "Duplicate rows added on window resize"

(reopening, since it's not clear whether you noticed additional commentary on #98 after it was closed)
I'm afraid the commit doesn't quite address the issue effectively -- the very next call to update(), either before or after switching back from another tab, causes the same issue to occur.
http://codepen.io/anon/pen/PpwBGV
... added an update() timer at the bottom to emulate the behavior

@yarf Hi, did you have a chance to test this? Does it works as expected?

yup, that did it!
Do we now get a free commercial-license for being part of your QA team? ;-)
cough

I'm glad it helped!
Uplabs is responsible for licenses, not me :P

authors: NeXTs yarf

license: MIT


text:
Failure to create XFS filesystem

As of version v0.0.7+ workflows that allocate an xfs filesystem get hung up retrying lvm commands.  Attached is the nnf-node-manager log for a workflow which is attempting to allocate a single xfs filesystem.
nnf-node-manager.log
A couple observations.

vgcreate is running much to early before any of the PVs are created when it has no chance of success.  It does retry.
wipefs is failing because the device doesn't exist in  /dev/mapper/ directory.  If I manually run  vgchange --lock-start and lvchange --activate y then /dev/mapper/ is correctly populated.  But it does take a moment, you may just need to wait on udev.

vgcreate is running much to early before any of the PVs are created when it has no change of success. It does retry.

This is unrelated to the xfs failure, but I see similar behavior with Lustre filesystems.  Specifically zpool create is invoked incorrectly a few times, presumably because the kernel hasn't created the devices for the NVMe namespaces yet, then once they exist it's run correctly.  One potential concern here is zpool create will still succeed even if only some of the devices are passed resulting in a reduced capacity.  Although, I don't know if that's possible in practice.  For example:
> zpool create -O canmount=off -o cachefile=none zf500d3d-mdt-0
stderr: missing vdev specification
> zpool create -O canmount=off -o cachefile=none zf500d3d-mdt-0 /dev/nvme3n8 <only a few additional vdevs>
success

I believe the question here is whether the /dev/mapper name still uses the hyphen '-' as a separator which would mean we are generating the wrong name, or as Brian suggested above, we are not waiting long enough for the device to appear.

We've confirmed that the hyphen is the separator. The issue is that we need to wait long for the /dev/mapper device to appear.

Re-opening issue. Every vgactivate command requires a wait for the device to appear in /dev/mapper.

authors: ajfloeder behlendorf


text:
Move the used google api tokens to nearsoft account

Move the used google api tokens from the personal account app to the nearsoft account app

Application migrated to nearsoft account with the release v0.0.13.a

repo: Nearsoft/nearbooks-android

license: mit


text:
Dyeing a couch causes it to duplicate, creating an invisible entity that can destroy other blocks

I decided to try dyeing my couches blue, and to my surprise I found them duplicating. Apparently someone else in chat had the same issue and it deleted some bells they had. Attached is 2 screenshots

:

This needs to be forwarded to https://pixelmonmod.com/tracker.php?p=2, since this is a Pixelmon bug.

Has been forwarded, closing.

authors: DaikonXD Rasgnarok

repo: NebulaMC-GG/Support


text:
/wallet/unlock direct REST call documentation

The need to specify the "dictionary" parameter in the /wallet/unlock call is undocumented in https://github.com/NebulousLabs/Sia/blob/master/doc/API.md

Actually, this is an optional parameter.
My apologies for "rubber ducking" my problems with a github issue request.

Do you mean /wallet/init? /wallet/unlock does not take a dictionary.

That's not what I am observing via wireshark.
cat wallet-secret | siac wallet unlock

produces the following REST request as grabbed via wireshark.
Notice that the 'encryptionpassword' is also not correctly url-encoded (the 0x20 characters should be 0x2b).
POST /wallet/unlock HTTP/1.1
Host: localhost:9980
User-Agent: Sia-Agent
Content-Length: 243
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

encryptionpassword=jobs kiwi guide balding dads vehicle behind ripped language biweekly topic reunion kangaroo ruined pipeline liar toaster gown dinner biggest absorb roles idiom prying ceiling pipeline cunning scuba abnormal&dictonary=english

Gotcha. This is simply an error in siac. Note that the parameter isn't even spelled correctly. It should be removed.
I figured that Go would handle the URL-encoding internally, but I guess not. At any rate, it doesn't seem to be causing problems.

authors: easye lukechampine

repo: NebulousLabs/Sia


text:
OSX has a limit of 256 open files

This has caused crashing issues for Mac users

Is this a problem with siad or just the UI?

It has implications for our API design. If the design encourages opening many calls open concurrently (e.g. when downloading many files), then it's a failing of our API design, not of the UI.

Ok. I will probably not leave this issue open for very long, because there's no action item associated with it. However we should definitely support non-blocking download calls in the api.

Agreed. That feature should dovetail nicely with our merged upload/download loop.

Same issue in Linux, siad rises more than 1024 file handlers

@daniel-lucio how long were you running Sia? Did you perform a specific action to hit 1024?
Trying to figure out the best way to keep this from happening in the future.
@lukechampine would the gateway have one open per peer?

Yes, I believe the current file handler sources are:

1 for the API listener
1 for each peer connection
1 for each database
1 for each host/renter connection
1 for each file being uploaded/downloaded (renter side)
1 (?) for each file being uploaded/downloaded (host side)

However, we don't need to worry about the limit when it comes to peer connections or host operations. In the rare case that you want a huge number of peers, you can manually raise the limit. And for hosts, it's expected that they will be more advanced users, so it's sufficient to document that hosting a large amount of data may require raising the limit. (Of course, minimizing the number of open file handles is still a good idea!)

I'm struggling to see how that would add up to 1024, though I could see it getting pretty close to 256 if you have the max number of peers. Perhaps we should drop the default maximum to 40.

@DavidVorick you need to know your SO. In Linux, I use the ulimit command to raise this limit. I ignore if OSX has that as well.

I could see it adding up to 1024 if you include all the other file descriptors in use on the system, not just Sia.

I had the impression that it was 256 files per process, not per machine?

Same problem on Fedora 24 with a soft limit of 1024 and hard limit of 4096 open files.
siad continues to work though.

Just investigated this a little closer, and it seems like siad is opening a ton of new sockets.
Reproduce

Start unlocking of wallet
find process id of siad (ps aux | grep siad or otherwise)
run ls -l /proc/<siad id>/fd | grep socket | wc -l

The count is about 150 to start with and then increases steadily by about 100 every few minutes. At block height 40k there are about 600 open sockets.

That is very interesting. I don't think the wallet itself is opening sockets, but once the wallet is unlocked, the renter can start trying to form/renew contracts, and each of those attempts requires a socket. Perhaps we are leaking those somehow.

Seems more likely to me that bolt is not cleaning up the file handles very well, I'm guessing it opens a separate socket for each call to db.Read and then eventually cleans them all up.

AFAIK bolt doesn't use sockets, just mmap. We could (sort of) confirm this by examining socket use after deleting something like hostdb.json and restarting. If bolt is responsible, then resyncing any module should cause a bunch of sockets to be opened.
@RNabel, any chance you can use a tool like ss to find out more about the socket connections? Ideally we'd be able to capture some of the data sent. That would tell us what code is responsible for opening the sockets.

@lukechampine Sure thing. I'll play around with this over the weekend and report back.

Alright, I ran through the above steps again (this time with said v1.1.2) and could not replicate this behavior anymore - could it be fixed by the latest update?

Were you using v1.1.0 before? It's possible that most of those sockets were created by the HostDB, which got a pretty big upgrade in v1.1.1.
I'm going to leave this open because I'm not convinced that the problem has been resolved, but if nobody can replicate it as of the most recent master branch, I guess we did something to fix it accidentally.
We have been in general working on improving our resource management.

I'm pretty sure that I was using v1.1.1. In any case, tried again and can't reproduce the error.

Closing for now, feel free to reopen if this issue presents itself again.

authors: DavidVorick RNabel daniel-lucio johnathanhowell lukechampine


text:
siac wallet init-seed fails on Win10

BUG REPORT
How to reproduce it (as minimally and precisely as possible)

Open Windows Command Prompt
Type siac wallet init-seed

Expected Behavior
siac prompts user for wallet seed passphrase
Actual Behavior
siac fails with The handle is invalid. before the user can type a seed in:
c:\Sia-v1.3.1-windows-amd64>siac wallet init-seed
Seed:
Reading seed failed: The handle is invalid.

Workaround
Creating a wallet via Sia-UI works.
Environment

Sia version: 1.3.1
OS: Win10

I think this is a duplicate of #2587.  Have you tried this with a version newer than 1.3.1?

Yep looks like a dupe. I haven't tried with any of the 1.3.2 release candidates.


text:
🛑 Becpl Angular UI is down

In 99ccfb1, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in e3ef7aa after 6 minutes.

repo: NehalDamania/becpl-uptime


text:
🛑 Becpl Angular UI is down

In 93fadf9, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in e6bdbeb after 5 minutes.


text:
🛑 Becpl Angular UI is down

In a382c2e, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in f98d595 after 23 minutes.


text:
🛑 Becpl Angular UI is down

In 64efd3b, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in d031e17 after 20 minutes.


text:
Customisation of CommitView highlighting doesn't work properly

Description
I am using NvChad with custom config. It is using base46 for theming. I did setup it for highlighting Neogit in colors of theme, so via :lua =vim.api.nvim_get_hl_by_name(hl_name, true) I checked that base46 works fine. But when I use Neogit I noticed that highlighting in NeogitStatus buffer differs from NeogitCommitView:

First is from NeogitStatus, second is from NeogitCommitView.
Then I tried to play with :hi command for debug and noticed that changing of his described in README.md doesn't affect NeogitCommitView buffer.
Neovim version
NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled  _nixbld5
Features: +acl +iconv +tui
Operating system and version
macOS 12.4
Steps to reproduce

:hi NeogitDiffContextHighlight guibg=#000000 guifb=#ffffff
:hi NeogitDiffAddHighlight guibg=#000000 guifb=#ffffff
:hi NeogitDiffDeleteHighlight guibg=#000000 guifb=#ffffff

Expected behavior
NeogitCommitView buffer is affected by :hi command.
Actual behavior
NeogitCommitView stay as it was.
Minimal config
vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/site]])
local package_root = "/tmp/nvim/site/pack"
local install_path = package_root .. "/packer/start/packer.nvim"
local function load_plugins()
  require("packer").startup({
    {
      "wbthomason/packer.nvim",
      {
        "TimUntersberger/neogit",
        requires = {
          { "nvim-lua/plenary.nvim" },
          { "sindrets/diffview.nvim" },
        },
        config = function()
          print("loaded neogit")
          require("neogit").setup()
        end,
      },
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. "/plugin/packer_compiled.lua",
      display = { non_interactive = true },
    },
  })
end
if vim.fn.isdirectory(install_path) == 0 then
  print("Installing neogit and dependencies.")
  vim.fn.system({ "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path })
end
load_plugins()
require("packer").sync()

Feel free to reopen this if this is still an issue.

authors: CKolkey Nexmean

repo: NeogitOrg/neogit


text:
Refactor repeating code on server

Move some repeating code in mockAPI.js to util.js
In particular from the createUser and addEntry functions.
util.js has 2 functions.
// This function transforms a date object to a string format.
// date is a Date object.
// To format today's date, input (new Date()) as the first parameter
// seperator specifies the character to seperate the dates.
// format can either be 3 formats and will specify in which format the date string will be returned
// "YYYY-MM-DD"
// "DD-MM-YYYY"
// "MM-DD-YYYY"
formatDateToStr
// Returns a random number in string format containing the digits 0-9, where the 1st digit is never 0.
// The amount of difits is deterimined by the numLength. (Default = 32)
// With numLength=32 the chance of generating an identical ID for 2 different function calls is extremely unlikely.
// The lower numLength the more likely 2 identical ID's will be generated.
generateID

I tried to resolve merge conflicts, since I think the conflicts only hailed from CSS changes that were done in another feature.

source: gharchive/pull-request

authors: steph-koopmanschap xintamosaik

repo: Nerds-Who-Code/Mental-Health-Tracker


text:
C51 breakout default preset seems bad.

Hi All,
I test C51 breakout. Finally, it can only get reward 1.0 which is bad enough. I wonder whether its hyper parameter has been fine tuned?

For how long did you run the training?
I also happen to have a partial run (only 1.5 million frames) from yesterday where it achieved higher scores than you are reporting  (around 40 after 1.5 million frames).
This preset was verified to achieve similar results to the paper before, and should get to rewards of around 400-600 after 10 million frames.

Do you  use one worker or more?

after a second check I found out I had uncommitted fixes to this preset.
I fixed the presets in the following commit 8d9ee4e.
Thanks for pointing this out! Please let me know if it's working better now.

    self.exploration.initial_epsilon = 1.0 I think this matters!

Yes I agree, that was probably the problem. Thanks again 👍

Welcome!

authors: cxxgtxy itaicaspi-intel

repo: NervanaSystems/coach


text:
AMC and quantization will work for cnn+rnn?

hi, I want to know if AMC is useful for neural networks like CNN + LSTM like CRNN or what should i do to apply AMC to CRNN?
one more that, i tried run quantization for quantizing CRNN, but i'm failed, the parameters of LSTM seem to be lost. so I want to know if the quantization method in distiller work for cnn + rnn networks.
and if i change code to control layers that will be quantized and compressed in CRNN (such as only execute AMC and quantization for CNN part and ignored RNN part), will it cause accuracy heaily loss heavily?
thank!

Hi,
Closing this issue as it seems resolved.

repo: NervanaSystems/distiller


text:
Enable gpu error

I install cuda and environment set,
nvidia-smi
Wed Dec  6 13:53:24 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.81                 Driver Version: 384.81                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla P100-PCIE...  Off  | 00000000:2F:00.0 Off |                    0 |
| N/A   33C    P0    31W / 250W |  15553MiB / 16276MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  Tesla P100-PCIE...  Off  | 00000000:86:00.0 Off |                    0 |
| N/A   36C    P0    31W / 250W |  15479MiB / 16276MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

pip install nervananeon

env | grep PATH
LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib:/usr/lib/python2.7/site-packages/mklml_lnx_2018.0.1.20171007/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/.singularity.d/libs
PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

python  mnist.py -b gpu
python : error: argument -b/--backend: invalid choice: 'gpu' (choose from 'cpu', 'mkl')

I don't understand why CPU and GPU install the same package,It should be used when the GPU package is installed by TensorFlow.
pip install tensorflow-gpu

@yangyang-zhang Thanks for the feedback. We will look into this.

@yangyang-zhang   You may install the gpu requirements if you want to run on gpu backend.
https://github.com/NervanaSystems/neon/blob/master/gpu_requirements.txt
pip install pycuda, scikit-cuda, pytools

@baojun-nervana I am getting the same error even after installing all pre-req:
: error: argument -b/--backend: invalid choice: 'gpu' (choose from 'cpu', 'mkl')

@armando-fandango Can you try to install the gpu dependencies?
pip install pycuda, scikit-cuda, pytool

@baojun-nervana yes all the gpu dependencies are installed and I think my message above said that "even after installing all pre-req"

I see that in makefile you are doing this : nvcc neon/backends/util/check_gpu.c > /dev/null 2>&1 && ./a.out && rm a.out && echo true
This is always returning an empty HAS_GPU string no matter what. I compiled the check_gpu.c outside of the makefile and it compiles.
Is something fishy in above code ?

It seems you don't have nvcc compiler installed or it is not set in the PATH.
make sure "which nvcc" return right path first.

this command works and produces the a.out : nvcc neon/backends/util/check_gpu.c

It sounds it should work. Is the PATH set up right too?
export PATH="/usr/local/cuda/bin:"$PATH
export LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/cuda/lib:/usr/local/lib:"$LD_LIBRARY_PATH

After reinstalling CUDA and Neon, now I am getting this error:
python3 examples/mnist_mlp.py -b gpu
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pycuda/tools.py", line 426, in context_dependent_memoize
return ctx_dict[cur_ctx][args]
KeyError: <pycuda._driver.Context object at 0x7f7aa4360500>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "examples/mnist_mlp.py", line 88, in
num_epochs=args.epochs, cost=cost, callbacks=callbacks)
File "/usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/models/model.py", line 183, in fit
self._epoch_fit(dataset, callbacks)
File "/usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/models/model.py", line 205, in epoch_fit
x = self.fprop(x)
File "/usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/models/model.py", line 236, in fprop
res = self.layers.fprop(x, inference)
File "/usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/layers/container.py", line 395, in fprop
x = l.fprop(x, inference=inference)
File "/usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/layers/layer.py", line 1288, in fprop
bsum=self.batch_sum)
File "/usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/backends/nervanagpu.py", line 1585, in compound_dot
kernel = kernel_specs.get_kernel("".join((clss, op, size)), vec_opt)
File "", line 2, in get_kernel
File "/usr/local/lib/python3.5/dist-packages/pycuda/tools.py", line 430, in context_dependent_memoize
result = func(*args)
File "/usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/backends/kernel_specs.py", line 849, in get_kernel
run_command(maxas_i + [sass_file, cubin_file])
File "/usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/backends/kernel_specs.py", line 785, in run_command
raise RuntimeError("Error(%d):\n%s\n%s" % (proc.returncode, cmd, err))
RuntimeError: Error(13):
PERL5LIB=/usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/backends/kernels/maxas /usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/backends/kernels/maxas/maxas.pl -i -w -k sgemm_nn_32x128_vec -Dvec 1 /usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/backends/kernels/sass/sgemm_nn_32x128.sass /home/armando/.cache/neon/kernels/cubin/sgemm_nn_32x128_vec.cubin
b'Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/ { <-- HERE (?5)?,?(?4)?,?(?3)?,?(?2)?,?(?1)?,?(?0)?}/ at /usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/backends/kernels/maxas/MaxAs/MaxAsGrammar.pm line 239.\nUnescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^(?^:\@(?\!)?P(?[0-6]) )?DEPBAR(?^: { <-- HERE (?5)?,?(?4)?,?(?3)?,?(?2)?,?(?1)?,?(?0)?});/ at /usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/backends/kernels/maxas/MaxAs/MaxAsGrammar.pm line 275.\nError: could not open /home/armando/.cache/neon/kernels/cubin/sgemm_nn_32x128_vec.cubin for writing: Permission denied at /usr/local/lib/python3.5/dist-packages/nervananeon-2.4.0-py3.5.egg/neon/backends/kernels/maxas/MaxAs/Cubin.pm line 640.\n'

Thank you, I've already solved it.

repo: NervanaSystems/neon


text:
Credentials script returns both username and password

Is your feature request related to a problem? Please describe.
Currently, credentials_script cannot return username which will be used instead of the one described in harvest-conf.
This is a problem when we are using more than 1 username to authenticate with NetApp and we want to switch between accounts without any downtime.
Describe the solution you'd like
Input to script will remain same username, addr but in script output it can return username and password where this returned username will be used rather than the one defined in harvest config?
Describe alternatives you've considered
Additional context

Tested in 24.05 release branch at commit 74dcf38a872d2c38e633664314e0acc5b9f8d76b,
Poller definition:
    sar:
        datacenter: rest
        addr: x.x.x.x
        collectors:
            - Rest
            - RestPerf
        credentials_script:
            path: ./get_credentials

script file
#!/bin/bash
echo 'username: username'
echo 'password: password'

case1: script with right username and wrong password
harvest % ./bin/poller -p sar -c Zapi --promPort 13001
2024-05-15T16:05:44+05:30 INF poller/poller.go:221 > Init Poller=sar asup=false confPath=conf config=harvest.yml configPath=harvest.yml cwd=/Users/hardikl/Documents/Harvest/harvest daemon=false debug=false homePath= hostname=hardikl-mac-0 logLevel=info logPath=/var/log/harvest/ profiling=0 promPort=13001 version="harvest version 24.05.15-1 (commit 4b797d0f) (build date 2024-05-15T15:37:00+0530) darwin/amd64"
2024-05-15T16:05:44+05:30 INF poller/poller.go:245 > started in foreground Poller=sar pid=34828
2024-05-15T16:06:04+05:30 ERR poller/poller.go:1165 > Failed to negotiateAPI error="auth failed => 401 Unauthorized errNum=\"\" statusCode=\"401\"" Poller=sar collector=Zapi
^C2024-05-15T16:06:06+05:30 INF poller/poller.go:542 > caught signal [interrupt] Poller=sar
2024-05-15T16:06:06+05:30 INF poller/poller.go:535 > cleaning up and stopping [pid=34828] Poller=sar

case2: script with right username and right password
harvest % ./bin/poller -p sar -c Zapi --promPort 13001
2024-05-15T16:09:35+05:30 INF poller/poller.go:221 > Init Poller=sar asup=false confPath=conf config=harvest.yml configPath=harvest.yml cwd=/Users/hardikl/Documents/Harvest/harvest daemon=false debug=false homePath= hostname=hardikl-mac-0 logLevel=info logPath=/var/log/harvest/ profiling=0 promPort=13001 version="harvest version 24.05.15-1 (commit 4b797d0f) (build date 2024-05-15T15:37:00+0530) darwin/amd64"
2024-05-15T16:09:35+05:30 INF poller/poller.go:245 > started in foreground Poller=sar pid=35050
2024-05-15T16:09:37+05:30 INF collector/helpers.go:88 > best-fit template Poller=sar collector=Zapi:Qtree path=conf/zapi/cdot/9.8.0/qtree.yaml v=9.13.1
2024-05-15T16:09:38+05:30 INF collector/helpers.go:88 > best-fit template Poller=sar collector=Zapi:SecurityCert path=conf/zapi/cdot/9.8.0/security_certificate.yaml v=9.13.1

case3: username(wrong) is given in poller section, but script gives right username and password --> Same applied to default username
    sar:
        datacenter: rest
        addr: x.x.x.x
        collectors:
            - Rest
            - RestPerf
        username: admin2 #wrong
        credentials_script:
            path: ./get_credentials

harvest % ./bin/poller -p sar -c Zapi --promPort 13001
2024-05-15T16:12:52+05:30 INF poller/poller.go:221 > Init Poller=sar asup=false confPath=conf config=harvest.yml configPath=harvest.yml cwd=/Users/hardikl/Documents/Harvest/harvest daemon=false debug=false homePath= hostname=hardikl-mac-0 logLevel=info logPath=/var/log/harvest/ profiling=0 promPort=13001 version="harvest version 24.05.15-1 (commit 4b797d0f) (build date 2024-05-15T15:37:00+0530) darwin/amd64"
2024-05-15T16:12:52+05:30 INF poller/poller.go:245 > started in foreground Poller=sar pid=35228
2024-05-15T16:12:54+05:30 INF collector/helpers.go:88 > best-fit template Poller=sar collector=Zapi:ClusterPeer path=conf/zapi/cdot/9.8.0/clusterpeer.yaml v=9.13.1
2024-05-15T16:12:55+05:30 INF collector/helpers.go:88 > best-fit template Poller=sar collector=Zapi:FlexCache path=conf/zapi/cdot/9.8.0/flexcache.yaml v=9.13.1
2024-05-15T16:12:56+05:30 INF collector/helpers.go:88 > best-fit template Poller=sar collector=Zapi:Lun path=conf/zapi/cdot/9.8.0/lun.yaml v=9.13.1
2024-05-15T16:12:57+05:30 INF collector/helpers.go:88 > best-fit template Poller=sar collector=Zapi:SecurityCert path=conf/zapi/cdot/9.8.0/security_certificate.yaml v=9.13.1
2024-05-15T16:12:59+05:30 INF collector/helpers.go:88 > best-fit template Poller=sar collector=Zapi:Sensor path=conf/zapi/cdot/9.8.0/sensor.yaml v=9.13.1

case4: no username given in default, poller and script file
harvest % ./bin/poller -p sar -c Zapi --promPort 13001
2024-05-15T16:16:24+05:30 INF poller/poller.go:221 > Init Poller=sar asup=false confPath=conf config=harvest.yml configPath=harvest.yml cwd=/Users/hardikl/Documents/Harvest/harvest daemon=false debug=false homePath= hostname=hardikl-mac-0 logLevel=info logPath=/var/log/harvest/ profiling=0 promPort=13001 version="harvest version 24.05.15-1 (commit 4b797d0f) (build date 2024-05-15T15:37:00+0530) darwin/amd64"
2024-05-15T16:16:24+05:30 INF poller/poller.go:245 > started in foreground Poller=sar pid=35412
2024-05-15T16:16:24+05:30 ERR poller/poller.go:1165 > Failed to negotiateAPI error="missing parameter => username" Poller=sar collector=Zapi

case5: wrong username given to default or poller section
    sar:
        datacenter: rest
        addr: x.x.x.x
        collectors:
            - Rest
            - RestPerf
        username: admin2
        credentials_script:
            path: ./get_credentials

harvest % ./bin/poller -p sar -c Zapi --promPort 13001
2024-05-15T16:16:42+05:30 INF poller/poller.go:221 > Init Poller=sar asup=false confPath=conf config=harvest.yml configPath=harvest.yml cwd=/Users/hardikl/Documents/Harvest/harvest daemon=false debug=false homePath= hostname=hardikl-mac-0 logLevel=info logPath=/var/log/harvest/ profiling=0 promPort=13001 version="harvest version 24.05.15-1 (commit 4b797d0f) (build date 2024-05-15T15:37:00+0530) darwin/amd64"
2024-05-15T16:16:42+05:30 INF poller/poller.go:245 > started in foreground Poller=sar pid=35447
2024-05-15T16:17:01+05:30 ERR poller/poller.go:1165 > Failed to negotiateAPI error="auth failed => 401 Unauthorized errNum=\"\" statusCode=\"401\"" Poller=sar collector=Zapi

case6: right username given to default or poller section
    sar:
        datacenter: rest
        addr: x.x.x.x
        collectors:
            - Rest
            - RestPerf
        username: admin
        credentials_script:
            path: ./get_credentials

harvest % ./bin/poller -p sar -c Zapi --promPort 13001
2024-05-15T16:19:35+05:30 INF poller/poller.go:221 > Init Poller=sar asup=false confPath=conf config=harvest.yml configPath=harvest.yml cwd=/Users/hardikl/Documents/Harvest/harvest daemon=false debug=false homePath= hostname=hardikl-mac-0 logLevel=info logPath=/var/log/harvest/ profiling=0 promPort=13001 version="harvest version 24.05.15-1 (commit 4b797d0f) (build date 2024-05-15T15:37:00+0530) darwin/amd64"
2024-05-15T16:19:35+05:30 INF poller/poller.go:245 > started in foreground Poller=sar pid=35693
2024-05-15T16:19:36+05:30 INF collector/helpers.go:88 > best-fit template Poller=sar collector=Zapi:SecurityAuditDestination path=conf/zapi/cdot/9.8.0/security_audit_dest.yaml v=9.13.1
2024-05-15T16:19:37+05:30 INF collector/helpers.go:88 > best-fit template Poller=sar collector=Zapi:Shelf path=conf/zapi/cdot/9.8.0/shelf.yaml v=9.13.1

authors: Hardikl kbhalaki

repo: NetApp/harvest


text:
Feature Request - Populate profiles from ~.aws\credentials

Just something to consider: instead of having a checkbox to use default creds, why not populate all the profiles from the creds file right when the extension loads? Then users can just select whatever profile they want from their creds file, or add a new one like normal.

Should be pretty easy to implement with the new createAndPopulateProfile method

authors: AndreyRainchik wstrei

repo: NetSPI/AWSSigner


text:
Is there a graphical workflow editor?

We are considering using Conductor for our project and wondered if there is a graphical editor to produce workflows in Conductor json format?  If not, is the best option to roll our own or are there any plans for a future editor?

From my research, I did not find any graphical editor for workflow edits. You might have already came across the python and java client libraries that are used to handle those operations.

@rbeers current there is no workflow editor, there is a plan to create one but not in the near term.

authors: cyzhao rbeers saidatta

repo: Netflix/conductor


text:
metric tags, to be able to track which domains where failing during t…

…he LetsEncrypt domain validation

Coverage remained the same at 60.046% when pulling adabe18c905cb4a9fe4a44f3a9e710e07cdf63d4 on hosseinsh:better-error-handling-dyn into 5c1bc72af895297c9fb30b44002903dd90b0e16a on Netflix:master.

authors: coveralls hosseinsh

repo: Netflix/lemur


text:
fix(web): send JSON for all errors

Configure werkzeug to output JSON error messages for the benefit of
downstream clients. This also allows for metrics collection in all cases
where werkzeug is outputting an exception.

@kevgliss The CI failures don't seem to be a result of my changes.

Thanks!

authors: kevgliss terinjokes


text:
Code coverage

Closes #41
Changes:

Add rule test to makefile with coverage options
Integrate Codecov to test workflow

Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] Other (please describe):

Testing
Requires testing

[ ] Yes
[x] No

In case you checked yes, did you write tests??

[ ] Yes
[ ] No

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@85fb9e3). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             main       #68   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?         1
  Lines           ?         3
  Branches        ?         0
========================================
  Hits            ?         3
  Misses          ?         0
  Partials        ?         0

Flag
Coverage Δ

unittests
100.00% <0.00%> (?)

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

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 85fb9e3...1de68a9. Read the comment docs.

repo: NethermindEth/juno


text:
Fix outcome check in indexer

Receipts are an incorrect point of filtering "submit"s to da contract. Same submission could be filtered in chunk on sender shard, and then in chunk on receiver shard. This is avoided checking initial tx itself

Had to re-do status fething since GetExuctionOutcome doesn't reflact status of transactions triggered by indexed one

repo: NethermindEth/near-sffl


text:
PA在封装报文时，实际报文之间相差100ms，但是封装过后，报文相差不足1ms

Note: In order to provide a more accurate response to your issue, please present your issue using the template.
Environment
Note：Include the following detailes, among others:

CP version  0.7.4、0.8.0
Operation System(OS) Centos 7.9
platform（e.g., vm, pod, etc）* 微探针

Issue description
测试环境复现了这个结果，经过vxlan封装后的req和resp的时间相差就会变得很短，实际报文之间相差100ms，封装后相差1ms.

需要进一步调研该问题，请联系Eva走流程排期。

repo: Netis/cloud-probe


text:
Request: Higher quality images on deckbuilder

A year or so ago the cards were very clear quality on the deckbuilder area. I could sit on my phone or tablet and do deck draws, and clearly read what the cards said.
Then at some point that stopped being the case, and now on pc tablet or phone the images are useless. Can't work out the wording, and I'm not enough of a master to have them all memorised by image alone.
Please can whatever change happened be undone? I spent a while hoping it would, then forgot about the game. I want to get back into it, but this is the roadblock.

Hello!  Sorry you are having trouble on NRDB.
As a workaround, you can click on the cards in the decklist and see their art and full text to help you recognize them a bit more.
These are the "small" size images and as such, the text is not super readable, as you have seen.
We made  use-appropriate image sizes a while back to keep the site performing better.
Since these cards are cards in the deck you are building, we haven't previously had reports of this as a problem.  Clicking the cards in the draw simulator just greys them out for now.  Having those also do a pop-up probably changes too much about the draw simulator and poses problems for mobile devices that don't have a hover event like a desktop does.
Let me know if using the decklist above helps on your mobile devices.

Heya,
Yeah making them click to enhance won't be ideal. So nothing that can be done to return the images to the quality they were then? It was super handy clicking through draw tests on the website.

Or perhaps the deck images could be downloaded locally to allow for higher quality?

Heya, any thoughts on the above? :)

Heya - Just bumping this. Anything that could be done to allow us to download images locally for higher quality?

hi.  I'm actually working on moving all of our images to a CDN and off the server itself which will unblock this for us.  Stay tuned.

Ooh that's magnificent! One of the biggest blockers for me playing at the mo is the loss of a good draw tester, so this will get me back into it!

Ahoy hoy - Any on this?

Afternoon,
Just doing my "i want to get back into netrunner" check to see if there's any movement on this? Keen to get back into it, but without the higher image quality on the 5 card draw it's a no go unfortunately.
Kind regards,
Gazzy_g

@plural In discussions, it was mentioned that nobody had advocated for this issue. This is me registering interest for higher quality images to be served - ideally substantially higher quality such as 1200dpi.

authors: Gazzy-g plural qwitwa

repo: NetrunnerDB/netrunnerdb


text:
dwiqc

dwiqc includes qsiprep and prequal (#243 )

dwiqc currenlty install 4 singularity containers: prequal, qsiprep, FSL, chromium - maybe possible to run containers within the main container?

repo: NeuroDesk/neurocontainers


text:
Add like functionality to groups

Acceptance Criteria

[ ] It should allow liking groups
[x] It should read whether a group is liked from graphql
[x] It should write group likes through toggleLike

If you can just do this part:

It should read whether a group is liked from graphql

by adding an isLiked prop to groups on Heighliner, and then make sure groups are returned in the userLikes query, I can do the frontend changes.

Server PR is here

@conrad-vanl I made a few modifications to apollo just to get things ready here. I'll finish patching the optimisticResponse on Monday morning but you should be able to work in the UI part already ^_^

authors: Lepozepo conrad-vanl

repo: NewSpring/Apollos


text:
upfirdn2d_op = load(     "upfirdn2d",     sources=[         os.path.join(module_path, "upfirdn2d.cpp"),         os.path.join(module_path, "upfirdn2d_kernel.cu"),     ], )

Hi, when I run "python3 main.py --config ./configs/poisson/cifar10_ddpmpp.py --mode train --workdir poisson_ddpmpp", the program keeps running, but there is no feedback from the terminal. I debugged the program and found that the program has been running in this line of code:
upfirdn2d_op = load(
"upfirdn2d",
sources=[
os.path.join(module_path, "upfirdn2d.cpp"),
os.path.join(module_path, "upfirdn2d_kernel.cu"),
],
)
Could you please tell me what I should do?

I checked the memory, nothing changed, but this line of code kept running without any feedback, I had to manually interrupt the run

Hi,
I didn't encounter this issue before. I can do some research on it and get back to you. What's the gpu utilization when the program gets stuck?
Could you wait the program for a longer time, to see whether it will finish loading the files?

I waited for more than 20 minutes in this step, and kept checking the changes of GPU memory and memory, and there was no obvious change (18MiB/11264Mib), (this code is in "import run_lib", I think the training has not really started to execute yet?

I solved this problem, I found that there is a lock file in .cache/torch_extensions/; when i do rm -rf torch_extensions/* it solved the problem, thanks!

authors: Newbeeer reflectionie


text:
Scope of this package

Hi,
Thanks for this package, I have a couple of questions:
Do we need to be a manager of the restaurant in order to fetch the restaurant general info (phone number, location, name, menu, etc), reviews and rating?
How can we get the ratings of the restaurant with the current API?

Hello @aytunch . Thanks for your interest in the package.
The API provides a way to select an account to view all localities in it. The account itself has to be a manager or delegated manager of the locality (restaurant in your case).
Regarding ratings / reviews - yes the API does support reviews retrieval. You can find the source code of it here: https://github.com/Newgarden-Solutions/google_my_business/blob/master/lib/src/managers/reviews_manager.dart . It would be helpful if someone can add documentation of the usage for those here: https://github.com/Newgarden-Solutions/google_my_business/blob/master/README.md

authors: OlegNovosad aytunch


text:
build error

npm run build

> skillset@0.1.0 build C:\Users\user\Documents\git\SkillSet
> webpack

C:\Users\user\Documents\git\SkillSet\node_modules\webpack-cli\bin\config-yargs.js:89
                                describe: optionsSchema.definitions.output.properties.path.description,
                                                                           ^

TypeError: Cannot read property 'properties' of undefined
    at module.exports (C:\Users\user\Documents\git\SkillSet\node_modules\webpack-cli\bin\config-yargs.js:89:48)
    at C:\Users\user\Documents\git\SkillSet\node_modules\webpack-cli\bin\webpack.js:60:27
    at Object.<anonymous> (C:\Users\user\Documents\git\SkillSet\node_modules\webpack-cli\bin\webpack.js:515:3)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Module.require (internal/modules/cjs/loader.js:723:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (C:\Users\user\Documents\git\SkillSet\node_modules\webpack\bin\webpack.js:156:2)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! skillset@0.1.0 build: `webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the skillset@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2019-10-18T11_06_13_592Z-debug.log

Node.js version I used back then has been quite old, I'll update the dependencies.

Resolution here:
https://github.com/NexZhu/SkillSet/pull/6

authors: NexZhu jonatask kemenyadi

repo: NexZhu/SkillSet


text:
Push Pull Force Action magnitude multiplier for push pull Integration Tests

MCS
I changed the default DebugDiscreteAgentController push pull force to match what it would be from the python API. Since the input force from the API is between 0 and 1, the force needs to be multiplied to match the general range of the original push pull force value of 150 in DebugDiscreteAgentController.

@jaudick This is no longer the case. I think you missed my recent PR to fix this bug: https://github.com/NextCenturyCorporation/MCS/pull/479
Closing this PR since it will not be needed.

authors: ThomasSchellenbergNextCentury jaudick


text:
validator/twitter: Switch to guest OAuth + official API method

Too much pain implementing this:

[x] Acquire OAuth token
[x] (lambda): Reuse existed OAuth token, rotation mechanism
[ ] Use Official API to query tweets

Posponed.
Seems like Twitter / X is blacklisting common VPS' IP range to prevent us from getting a valid guest token.
Further discussion: zedeus/nitter issues/983 (just don't want to mention and bother them)


text:
Problem with preview

I am getting an error when trying to preview
Uncaught TypeError: Cannot read property 'className' of null
    at Object.A [as action] (simplemde.min.js:formatted:12232)
    at HTMLAnchorElement.e.action.function.e.action.t.onclick (simplemde.min.js:formatted:12847)

I have mapped the code back to this line:
https://github.com/NextStepWebs/simplemde-markdown-editor/blob/master/src/js/simplemde.js#L780
Has anyone hit this?

I've found my issue, I was wrapping .CodeMirror-wrap in a <div /> to add a suggestor which was throwing off
var wrapper = cm.getWrapperElement();
var toolbar_div = wrapper.previousSibling;

https://github.com/NextStepWebs/simplemde-markdown-editor/blob/master/src/js/simplemde.js#L754-L755

repo: NextStepWebs/simplemde-markdown-editor


text:
ubah icon posko

ubah icon posko
referensi:
prap @lantip mengajukan diri di grup telegram
tags: view, landing page

solved pada https://github.com/NgeSEC/relawan/pull/50

repo: NgeSEC/relawan


text:
🛑 Hacker News is down

In 199d393, Hacker News (https://news.ycombinator.com) was down:

HTTP code: 502
Response time: 87 ms

Resolved: Hacker News is back up in 47653e6.

repo: NicolasLRD/upptime


text:
ExportedImage return 404 status

Hi, I have an issue that the ExportedImage cannot optimze image size as well as return 404 status (see the image).
import bannerImg2 from '@assets/images/Home/banner-2.jpg' // store at the path "public/assets/images/Home"

<ExportedImage src={bannerImg2} alt='text' layout='responsive' useWebp={true} />

Please help me how to fix this issue. Thanks for your help.

Hi @NguyenChiTrung1310,
Just to be sure: are you encountering this 404s just in the dev environment or also in production?
It is expected that in the dev environment, the optimized images are not created yet.
Please run the export script as shown in the documentation and test it again with the files in the output folder.

I can confirm this!
The line below could be the reason why:
Could not find a next.config.js file. Use of default values

Hi @dankore,
Thanks for the hint. I tried to reproduce the error but couldn't. Can you please share two pieces of information:

How are you calling the next-image-export-optimizer package?
Are you using a regular next.config.js file in the main folder, or is it somehow "special"?

Thanks!

Hi @dankore,
Thanks for the hint. I tried to reproduce the error but couldn't. Can you please share two pieces of information:

How are you calling the next-image-export-optimizer package?
Are you using a regular next.config.js file in the main folder, or is it somehow "special"?

Thanks!

Answers:

"build": "next build && next export && next-image-export-optimizer"

Regular next.config.js file but it exports a PWA. See below:

/** @type {import('next').NextConfig} */

const withPWA = require('next-pwa')({
  dest: 'public',
  fallbacks: {
    image: '/icons/ms-icon-310x310',
    // document: '/other-offline',  // if you want to fallback to a custom page other than /_offline
    // font: '/static/font/fallback.woff2',
    // audio: ...,
    // video: ...,
  },
});

module.exports = withPWA({
  reactStrictMode: true,
  output: 'standalone',
  images: {
    loader: 'custom',
    imageSizes: [10, 16, 32, 48, 64, 96, 128, 256, 384],
    deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
  },
  env: {
    nextImageExportOptimizer_imageFolderPath: 'public/images',
    nextImageExportOptimizer_exportFolderPath: 'out',
    nextImageExportOptimizer_quality: 75,
    nextImageExportOptimizer_storePicturesInWEBP: true,

    // If you do not want to use blurry placeholder images, then you can set
    // nextImageExportOptimizer_generateAndUseBlurImages to false and pass
    // `placeholder="none"` to all <ExportedImage> components.
    //
    // If nextImageExportOptimizer_generateAndUseBlurImages is false and you
    // forget to set `placeholder="none"`, you'll see 404 errors for the missing
    // placeholder images in the console.
    nextImageExportOptimizer_generateAndUseBlurImages: true,
  },
});

Hi @dankore,
I tried replicating the error with next-pwa in the config but have had no success. Even when I use the config you shared in this issue; it successfully reads the content of the environment variables in the next.config.js. Not sure what the issue for you was then.

authors: NguyenChiTrung1310 Niels-IO dankore

repo: Niels-IO/next-image-export-optimizer


text:
Please add Polaris browser to other browsers tab

Hi.
I want to add the score of Polaris browser to other browsers tab.
thank you.

Polaris Browser does not seem to be used enough to qualify. Is this browser still being developed. Could not seem to find any info about it on the Polaris site.


text:
Bug: A keyword in the wrong .ini section should cause the application to fail, it doesn't

If you put in a keyword which is not valid in ANY of the .ini sections then NiftyNet will fail with an Error message saying "Unknown keywords in config file". However, when a known keyword is used in the incorrect section it should fail and say something like "Keyword in wrong section" but it doesn't.

@tomvars Want to take this one? 😄

authors: mmodat tomvars

repo: NifTK/NiftyNet


text:
Does the project support train batch norm in multiple gpus?

I have 4 gpus and I want to train my network that includes batch norm layer on the machine. As we know, the segmention performance will increase if we consider a larger batch size and train the batch norm
However, the tensorflow did not support to syn. batch norm on multiple gpus. Does this project support it? Thanks

Hi @John1231983 currently the moving average of statistics from one of the GPUs will be used at inference time, and each GPU computes statistics independently during training.


text:
Facet selection and ValueOperationAnd

I'm using some old version of bobo browse (I cannot tell what is the version since this is included in my solution for a long time),
I setting ValueOperationAnd on some facet and also there is ExpandSelection set to true. When selection are made counts on facets are not chaning.
So for example I've got facet Color. There is AND between selection first when I'm selecting Green I thought that number on other values will decrease depending on selection but this is not happening. Is this is a known issue with AND operator between selection?
If this is working as expected is there a workaround to have got propper numbers next to facet values ?
Thanks for helping

Hello Pawel. Sorry for writing here, I will remove this message later. Just don't know how to contact you.
I have trained a model for the predictionio complimentary purchase template you have been contributing to. The problem is, I miss the Evaluation part (implementation of cross-validation) to show how the algorithm performs. And my skills in pio and scala are very limited right now, I need help. And Im very short of time. I would appreciate if you could help me with Evaluation.scala for this: https://github.com/PredictionIO/template-scala-parallel-complementarypurchase/tree/develop/src/main/scala
It shouldnt be that much, just kfold implementation, like they did in pio recommender template. This  part is crucial to me. Could we talk please? My email is marsium77@yahoo.de Thank you in advance..
Im quiet desperate to be honest.
Alexey.

authors: marsium pawel-madurski


text:
about self-training log

Could you provide the log file for GDMAE self-supervised training?  What is the Chamfer Distance loss approximately when it reaches convergence?

Here is the self-supervised training loss, where the loss seems to converge to 0.3 (30 epochs).

authors: Nightmare-n ShuojieMo

repo: Nightmare-n/GD-MAE


text:
Fido2 v1.0.0 pre-upgrade - pin ctap-keyring-device

This commit pins ctap-keyring-device to 1.0.6, before I'm release a new tag
that upgrade to fido2 v1.0.0, which contains breaking changes.

Description
ctap-keyring-device v2.0.0 would require fido2 v1.0.0, which has numerous breaking changes
that would affect gimme-aws-creds.
As this project is the biggest user of said library, I'd like to take this precaution to prevent breaking it for new installations.
Once pinned, I'll create a new tag from:
https://github.com/dany74q/ctap-keyring-device/pull/9
Then I'll create a separate PR here which bumps the pinned versions
of fido2 and ctap-keyring-device, along w/ fixing all breaking changes.

Related Issue

https://github.com/Nike-Inc/gimme-aws-creds/issues/355
Motivation and Context

The new fido2 v1.0.0 release has several breaking changes that needs to be addressed;
Also, currently ctap-keyring-device uses the forsaken winrt module - in the new tag I'll migrate to
the community based winsdk, which support Python >= 3.10.
How Has This Been Tested?

$> pip install --editable .
Screenshots (if appropriate):
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

/cc @gcbeltramini - would love your review (:

Thanks @gcbeltramini !
Can anyone w/ write access merge the PR ? I'll prepare the v2 of ctap-keyring-device right after

Ping about merging this PR @gcbeltramini, thanks !

Hey @zelch ! Your PR looks great - I think it's a good direction to take regardless of the current changes.
I'm the author of ctap-keyring-device - I think it would be beneficial for this small PR to get merged first, for me to then release a proper version - and later to go ahead and have your PR approved, using an official version of the lib.
Waiting for someone w/ write access to merge this (:

Hey @dany74q,
Any thoughts on paths forward if we can't get any response on #367 ?
Absent activity from Nike, any release that you roll under the current name would break all users newly installing gimme-aws-creds, but without that, even if we were to fork the project we couldn't pull in ctap-keyring-device in that fork by a released version number.
Giving v2 of ctap-keyring-device a new name seems like a crazy answer as well.
I suppose we could fork gimme-aws-creds (would need a name for it to put in pypi, and, well, I wouldn't be willing to go down that road without at least one additional person, not with my current company, willing to be a maintainer.  Replicating the maintenance problem somewhere else isn't a fix.), open an issue pointing people at the fork, ask for the release of ctap-keyring-device to happen, and...  Let gimme-aws-creds break.
But that also doesn't seem like a great option.
And I'm somewhat short of ideas beyond that.
Thanks,
Zeph / Liz.

Hey @epierce - Any chance we can create a new release of gimme that includes this change and pins ctap-keyring-device to 1.0.6 ?
Once that's done, I'll continue w/ the plan and will upgrade it to 2.0

Sorry, but I'm not a maintainer of this repo, so I can't help you with that.

Ping @epierce on the request for a release, so we can get the next steps done? :)

authors: dany74q gcbeltramini zelch

repo: Nike-Inc/gimme-aws-creds


text:
cleanup cmake

relates to https://www.notion.so/nilfoundation/9a899d0028114e4f8ad8a54cf82faac5?v=90dbfd45b9df42898f57dafbe439f185&p=0aca2d5e953648ada1a96d60c345b3b4&pm=s

This is done in monorepo crpyto3

authors: AndreyMlashkin martun


text:
Default Country Code Not Automatically Set According to User's IP Address in Enatega Multivendor Customer App.

Issue: Default Country Code Not Automatically Set According to User's IP Address
Description:
Application currently sets the default country code as +92 for users during the login process. However, it does not automatically adjust the default country code based on the user's IP address or location.
Impact:
User Inconvenience: Users may find it inconvenient to manually change the default country code during login, especially when using the app while traveling or in different countries.
Reduced User Experience: The app's user experience could be improved by automatically detecting and setting the default country code based on the user's IP address.

Steps to Reproduce:

Open the app.
Start the login process.
Observe that the default country code is set as +92, regardless of the user's current location.

Expected Resolution:
The application should be updated to automatically detect the user's location or IP address and set the default country code accordingly during the login process. This enhancement will improve the user experience by reducing the need for manual adjustments and ensuring that the default country code is relevant to the user's location.

Issue Resolved!


text:
multi-class

Hi @NirAharon ,
I noticed that you implemented support for multi-class, which is great. I also saw that it looks like class is resolved with a vote, which is an interesting way to handle things. Another implementation I've seen has isolated classes from each other such that a given track can only have one class identity. I was curious if you'd thought of this other way. I'm honestly not sure whether it'd make a huge amount of difference but it does seem like isolating classes from each other might be a good idea.

Hi，did you refer the implementation of CaptainEven/MCMOT ?, I have seen this  repo for a long time.

Indeed, I also believe that isolating the classes would be more reasonable. Recently, I worked on a project that involved detecting both heads and full-body people, and the current approach led to tracking confusion.

authors: ajtao liuyiche wsw321

repo: NirAharon/BoT-SORT


text:
virt-manager: Missing toolbar icons

Describe the bug
The toolbar buttons for running, stopping, etc. VMs don't have their normal icons, just some default replacements.
To Reproduce
Steps to reproduce the behavior:

Start virt-manager.
Look at its toolbar.

Expected behavior
All the virt-manager toolbar buttons have their usual icons.
Screenshots
toolbar screenshot
Notify maintainers
@qknight @offline @fpletz @globin
Metadata

system: "x86_64-linux"
host os: Linux 5.10.48, NixOS, 21.05.1408.9376bf7b342 (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3.12
channels(root): "nixos-21.05.1408.9376bf7b342, nixos-unstable-21.11pre301414.45fc7d4a35c"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Do you have some icon theme installed? We leave the icon set choice up to user.

Yes, I have hicolor-icon-theme-0.17 and adwaita-icon-theme-40.1.1. I tried to set xdg.icons.enable = true and it didn't help. virt-manager is the only application so far missing (some) toolbar icons.

Works for me:

Now the question is what's different in your environment. I have KDE:
  services.xserver.displayManager.sddm.enable = true;
  services.xserver.desktopManager.plasma5.enable = true;

Does it work for anybody with KDE?

I have KDE and cinnamon. I tried it with KDE this time:

virtualisation.libvirtd.enable = true;
users.mutableUsers = true;
sound.enable = true;
networking.networkmanager.enable = true;
      services.flatpak.enable = true;
programs.fish.enable = true;
programs.firejail = {
enable = true;
wrappedBinaries = {
firefox = {
    executable = "${lib.getBin pkgs.firefox}/bin/firefox";
    profile = "${pkgs.firejail}/etc/firejail/firefox.profile";
  };
  mpv = {
    executable = "${lib.getBin pkgs.mpv}/bin/mpv";
    profile = "${pkgs.firejail}/etc/firejail/mpv.profile";
  };
};
};

  # networking.hostName = "nixos"; # Define your hostname.
  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.

  # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  # Per-interface useDHCP will be mandatory in the future, so this generated config
  # replicates the default behaviour.
  networking.useDHCP = false;
  networking.interfaces.enp3s0.useDHCP = true;

  # Configure network proxy if necessary
  # networking.proxy.default = "http://user:password@proxy:port/";
  # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";

  # Select internationalisation properties.
  # i18n.defaultLocale = "en_US.UTF-8";
  # console = {
  #   font = "Lat2-Terminus16";
  #   keyMap = "us";
  # };

  # Enable the X11 windowing system.
  services.xserver.enable = true;
services.cinnamon.apps.enable = true;
services.xserver.desktopManager.cinnamon.enable = true;

  # Enable the Plasma 5 Desktop Environment.
  services.xserver.displayManager.sddm.enable = true;
  services.xserver.desktopManager.plasma5.enable = true;

  # Configure keymap in X11
  services.xserver.layout =

Thank you. After adding
services.cinnamon.apps.enable = true;
services.xserver.desktopManager.cinnamon.enable = true;

to my configuration, virt-manager got its icons. I could see that the options above installed some additional icon themes. It seems humanity-icon-theme is the right one that contains all the icons needed by virt-manager.
So is some dependency missing in virt-manager?

authors: John-Rodriguez-Git jtojnar mz-pdm

repo: NixOS/nixpkgs


text:
Mangohud not worked

Describe the bug
Mangohud does not work in Intel + NVIDIA configuration.
Steps To Reproduce
Steps to reproduce the behavior:

environment.systemPackages = with pkgs; [ mangohud ];
mangohud {glxgears,vkcube}

Expected behavior
MANGOHUD: Failed to open 64bit libXNVCtrl.so.0: libXNVCtrl.so.0: cannot open shared object file: No such file or directory
MANGOHUD: XNVCtrl loader failed to load
Screenshots

Additional context
I think this is due to my iron laptop Intel + Nvidia
Notify maintainers
@ZerataX
Metadata
λ ~ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.13.10-xanmod1-cacule, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210802_47e96bb`
 - nixpkgs: `/nix/store/1inzjq0zh5qrl0196qxicl0j83fia916-source`

Maintainer information:
attribute: mangohud

My notebook

xsever.videoDrivers = [ "nvidia" ];
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
Subsystem: ASUSTeK Computer Inc. Device 10d0
Kernel driver in use: i915
Kernel modules: i915
04:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 105e
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

Hmm, that's strange. I added addOpenGLRunpath.driverLink to LD_LIBRARY_PATH in #127469 to support Nvidia cards. The way this library is loaded is impure though, and depends on how your system is set up.
Do you see libXNVCtrl.so.0 under /run/opengl-driver/lib?
@ZerataX Is MangoHud still working on your computer with the Nvidia card?

Oh, I also noticed, you might be using a channel that doesn't have the latest version. This was fixed in v0.6.3. Maybe this fix should be backported.

libXNVCtrl.so.0

ls: cannot access '/run/opengl-driver-32/lib/libXNVCtrl.so.0': No such file or directory
λ ~ ls /run/opengl-driver/lib/libXNVCtrl.so.0
ls: cannot access '/run/opengl-driver/lib/libXNVCtrl.so.0': No such file or directory
λ ~

@kira-bruneau What does it mean?

Well, then now I understand this error. But I do not understand why there is no biblet

@kira-bruneau

 mhmm on nixos 21.05 with mangohud from unstable i get:

system: "x86_64-linux"
host os: Linux 5.10.57, NixOS, 21.05.2521.7bbca9877ca (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3.15
channels(root): "nixos-21.05.2521.7bbca9877ca, nixos-hardware, nixos-unstable-21.11pre309670.253aecf69ed"
channels(kaine): "home-manager-21.05"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

vkcube: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/ag4r80ffsdmq08ngvsbw4kz18kzxbvr4-mangohud-0.6.5/lib/mangohud/libMangoHud.so)
vkcube: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/lg104nh0szci8slz5z6494m457jm5y3p-gcc-10.3.0-lib/lib/libstdc++.so.6)

and I can't get a display manager to run on nixos-unstable :/
also libXNVCtrl.so.0 is for me also not on /run/opengl-driver/lib
@dan4ik605743 what does your mangohud config look like? i am a little bit surprised to see the mangohud window anyways, even if it is empty

@ZerataX Is MangoHud still working on your computer with the Nvidia card?
It works for me, on a nvidia-intel prime setup, although the library is also not in /run/opengl-drivers/lib 🤔

@ZerataX Is MangoHud still working on your computer with the Nvidia card?

It works for me, on a nvidia-intel prime setup, although the library is also not in /run/opengl-drivers/lib

################### File Generated by GOverlay ###################
#fps_limit=
toggle_fps_limit=F1
vsync=1
gl_vsync=0
legacy_layout=false
gpu_stats
gpu_temp
gpu_load_change
gpu_load_value=50,90
gpu_load_color=FFFFFF,FF7800,CC0000
gpu_text=GPU
cpu_stats
cpu_temp
cpu_load_change
core_load_change
cpu_load_value=50,90
cpu_load_color=FFFFFF,FF7800,CC0000
cpu_color=2e97cb
cpu_text=CPU
io_color=a491d3
swap
vram
vram_color=ad64c1
ram
ram_color=c26693
fps
engine_color=eb5b5b
gpu_color=2e9762
wine_color=eb5b5b
frame_timing=1
frametime_color=00ff00
media_player_color=ffffff
background_alpha=0.4
font_size=24
background_color=020202
position=top-left
text_color=ffffff
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
output_folder=/home/uncouteau
media_player_name=spotify

@ZerataX Is MangoHud still working on your computer with the Nvidia card?

It works for me, on a nvidia-intel prime setup, although the library is also not in /run/opengl-drivers/lib

And how can I be ... okay now I will try to lower the package version.

@ZerataX You can throw off your configuration.nix?

I don't even know what to think and what to five.

I don't even know what to think and what to five.

Apparently Mangohud is not where it does not work with my laptop characteristic

authors: ZerataX dan4ik605743 kira-bruneau legendofmiracles


text:
vimPlugins.fzf-vim is broken

Describe the bug
Fzf.vim's commands are not working.
Steps To Reproduce
Steps to reproduce the behavior:

Use the latest nixpkgs vimPlugins.fzf-vim plugin
Open neovim and use the command :Files or any other fzf Ex commands

Expected behavior
Fzf commands should work
Additional context
Error message inside neovim
Error detected while processing function fzf#vim#files[15]..<SNR>55_fzf[21]..fzf#run[63]..<SNR>27_execute_term[93]..<SNR>27_d
opopd:
line   20:
E716: Key not present in Dictionary: "dir && (!&autochdir || w:fzf_pushd.bufname ==# bufname(''))"
E15: Invalid expression: s:fzf_getcwd() ==# w:fzf_pushd.dir && (!&autochdir || w:fzf_pushd.bufname ==# bufname(''))

Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
~ at 10:53:47
❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.62, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210908_3c56f62`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

I've seen that one and it disappeared after updating the vim plugins, could you try ?

I've tried updating them 4-5 hours ago, and the issue was still here, right now I'm using telescope, gonna try updating them again tomorrow.

Also, by updating the plugins you mean running the vim plugins update script on an alternative nixpkgs repo or just syncing with upstream nixpkgs?

was thinking of running the update.py script but updating to latest nixos-unstable is worth a try too. I am on my fork of 364b5555ee04bf61ee0075a3adab4c9351a8d38c for instance.

Yes, updating nixpkgs worked. I was updating the flake nixpkgs but home-manager was using a different nixpkgs, now it works atleast with upstream nixpkgs. Shall I close?

you could submit a PR to update the plugins. As long as the fix is not merged in nixpkgs, this should stay open IMO

there was an update of plugins here so it should be fine now https://github.com/NixOS/nixpkgs/pull/138265

authors: arcticlimer teto


text:
Atom no longer works after upgrading to 22.05

Describe the bug
Atom editor fails to run in Gnome 42 on NixOS 22.05, with Nvidia drivers and X11.
When run from console I get the following output:
/nix/store/4vbf2kvqx2ll0qfkp4h8b31fbz98w4ag-atom-1.58.0/bin/.atom-wrapped: line 190:  2753 Illegal instruction     (core dumped) nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
[2753:0705/162616.049798:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.
Cannot upload crash dump: cannot exec /usr/bin/wget

Unexpected crash report id length
Failed to get crash dump id.
Report Id:
Cannot upload crash dump: cannot exec /usr/bin/wget

Unexpected crash report id length
Failed to get crash dump id.
Report Id:

Running with atom --disable-gpu-sandbox resolves the issue and Atom finally starts up.
This seems to be an issue in electron / atom's version of electron.
Potentially related discussion:
https://github.com/atom/atom/issues/23167
https://github.com/iotaledger/firefly/issues/1628
https://github.com/atom/atom/issues/23608
Steps To Reproduce
Steps to reproduce the behavior:

run Atom

Additional context
NixOS 22.05
Gnome 42
Nvidia 1080
Notify maintainers
@offlinehacker @ysndr
Metadata
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.49, NixOS, 22.05 (Quokka), 22.05.1377.09c32b0bda4`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.1`
 - channels(root): `"nixos-22.05.1377.09c32b0bda4, home-manager-21.11"`
 - channels(adam): `"home-manager-22.05.tar.gz"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

I can't reproduce the issue on NixOS 22.11.3408.a575c243c23 with AMD GPU and X11.
Do you still have the issue? Maybe it's Nvidia specific?
Maybe one of the 2 community forks fixes it.

Issue still persists with the almost the same error.
$ /nix/store/lzzslgkqg31pfj38alq186xk4zsqrxm6-atom-1.60.0/bin/.atom-wrapped: line 195:  3802 Illegal instruction     (core dumped) nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
[3802:0411/181315.429182:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.

I suspect this is a low-value issue as Atom has been end-of-life'ed by Microsoft.

Atom was removed in #258440.

authors: FliegendeWurst adamlwgriffiths davidak


text:
DaVinci Resolve crashes

Describe the bug
Whenever I try to launch DaVinci Resolve, it crashes. Console logs are attached below.
Steps To Reproduce
Steps to reproduce the behavior:

Install davinci-resolve
Run davinci-resolve

Expected behavior
DaVinci Resolve runs
Screenshots

Additional context
Console logs in text form:
❯ davinci-resolve
ActCCMessage Already in Table: Code= c005, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c006, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c007, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= 2282, Mode=  0, Level=  0, CmdKey= 8, Option= 0
PnlMsgActionStringAdapter Already in Table: Code= 615e, Mode=  0, Level=  0, CmdKey= -1, Option= 0
17.4.3.0010 Linux/Clang x86_64
Main thread starts: 16033680
log4cxx: setFile(./logs/rollinglog.txt,true) call failed.
log4cxx: IO Exception : status code = 30
0x7fd616033680 | Undefined            | INFO  | 2022-08-11 18:40:14,436 | --------------------------------------------------------------------------------
log4cxx: No output stream or file set for the appender named [RollLogAppender].
0x7fd616033680 | Undefined            | INFO  | 2022-08-11 18:40:14,436 | Loaded log config from /home/flexagoon/.local/share/DaVinciResolve/configs/log-conf.xml
0x7fd616033680 | Undefined            | INFO  | 2022-08-11 18:40:14,436 | --------------------------------------------------------------------------------

Notify maintainers
@jshcmpbll
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.18.15, NixOS, 22.11 (Raccoon), 22.11.20220731.5857574`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.10.3`
 - channels(root): `""`
 - channels(flexagoon): `""`
 - nixpkgs: `/etc/nix/inputs/nixpkgs`

Could you include your ~/.local/share/DaVinciResolve/logs/ResolveDebug.txt file? I had the similar problem and it was fixed by correcting the QT_PLUGIN_PATH in davinci-resolve package. Perhaps your problem is related.

@brcha I can't, because I am no longer using NixOS. Should I close this issue?

@flexagoon I have no idea, probably better not to. I've made a pull request that fixed the issue for me, and the issue looked exactly like yours. When somebody reviews my PR, I'll ask them about closing this issue.

this issue persist

authors: brcha flexagoon kunihir0


text:
buildFHSUserEnv doesn't work for non-root users in grsecurity

Issue description
Trying to set up an AOSP build environment to nix-shell into. nix-shelling into it with a non-root user errors out. It succeeds with root and sudo.
Steps to reproduce
shell.nix:
{ pkgs ? import <nixpkgs> {} }:

let
  jdk = pkgs.jdk8;
  fhs = pkgs.buildFHSUserEnv {
    name = "android-env";
    targetPkgs = pkgs: with pkgs;
      [ git
        gitRepo
        gnupg1
        python2
        curl
        procps
        openssl
        gnumake
        nettools
        androidenv.platformTools
        ccache
        ncurses
        jdk
        schedtool
        utillinux
        m4
        gperf
        perl
        libxml2
        zip
        unzip
        bison
        flex
        lzop
        bc
        which
        gcc
      ];
    multiPkgs = pkgs: with pkgs;
      [ zlib
      ];
    extraOutputsToInstall = [ "dev" ];
    runScript = "bash";
    profile = ''
      export USE_CCACHE=1
      export ANDROID_JAVA_HOME=${jdk.home}
    '';
  };
in fhs.env

[spacekitteh@spaceserv:~/code/copperhead]$ nix-shell
/nix/store/qxdag2fs1qh4alr19ax3s9lqh5dw2m24-chroot-user:44:in `block in make_fcall': Operation not permitted (Errno::EPERM)
        from /nix/store/qxdag2fs1qh4alr19ax3s9lqh5dw2m24-chroot-user:114:in `<main>'

Technical details

System: 17.03pre96925.1c50bdd (Gorilla)
uname -a: Linux spaceserv 4.8.14-grsec #1-NixOS SMP Sat Dec 10 18:09:59 UTC 2016 x86_64 GNU/Linux
Nix version: nix-env (Nix) 1.11.4
Nixpkgs version:"17.03pre96925.1c50bdd"

That's expected, I think. Grsec disables unprivileged user namespaces because it doesn't trust them. This also caused some pain with chromium/chrome sandboxing. Not sure what they did to fix it there.

I seem to remember grsecurity having a privileged_chroot_group or something? I know it has other special groups.

Here's the context from last time we encountered this: https://github.com/NixOS/nixpkgs/issues/17460#issuecomment-237601115

So, how can this be fixed?

You probably need to go via a suid wrapper

Howso?

The general idea is to have an initially privileged stub that sets up the sandbox, marked suid (called via wrapper most likely, in our case) to allow ordinary logins to use it. You'd need to read the buildFHSEnv sandbox code to see exactly what its sandbox init involves. The privileged stub would do pretty much the same thing (possibly sans user namespace, depending on whether it's just used to allow non-privileged users to perform the sandbox init).

It would be basically mount namespaces + setuid back to the unprivileged user.

I don't speak Ruby.
<snip>
    $unshare.call CLONE_NEWNS
<snip>
    $mount.call nil, '/', nil, MS_REC | MS_SLAVE, nil
<snip>
    $unshare.call CLONE_NEWNS | CLONE_NEWUSER
<snip>
      write_file '/proc/self/setgroups', 'deny'
<snip>
    write_file '/proc/self/uid_map', "#{uid} #{uid} 1"
    write_file '/proc/self/gid_map', "#{gid} #{gid} 1"
<snip>
  # Do rbind mounts.
  mounts.each do |from, rto|
    to = "#{root}/#{rto}"
    FileUtils.mkdir_p to
    $mount.call from, to, nil, MS_BIND | MS_REC, nil
  end

  # Don't make root private so privilege drops inside chroot are possible
  File.chmod(0755, root)

These things seem to be the issue - IIRC, grsec allows reading from /proc/self/, but does it allow writing to it?

The issue is that grsec doesn't allow that unshare call with CLONE_NEWUSER unless you're root or have equivalent capabilities.

On Dec 23, 2016, at 20:20, Sophie Taylor notifications@github.com wrote:
I don't speak Ruby.

    $unshare.call CLONE_NEWNS

    $mount.call nil, '/', nil, MS_REC | MS_SLAVE, nil

    $unshare.call CLONE_NEWNS | CLONE_NEWUSER

      write_file '/proc/self/setgroups', 'deny'

    write_file '/proc/self/uid_map', "#{uid} #{uid} 1"
    write_file '/proc/self/gid_map', "#{gid} #{gid} 1"

  # Do rbind mounts.
  mounts.each do |from, rto|
    to = "#{root}/#{rto}"
    FileUtils.mkdir_p to
    $mount.call from, to, nil, MS_BIND | MS_REC, nil
  end
Don't make root private so privilege drops inside chroot are possible
File.chmod(0755, root)
These things seem to be the issue - IIRC, grsec allows reading from /proc/self/, but does it allow writing to it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Ah, okay. So does that mean the env.rb file has to be rewritten in C or something, or?

Would fakeroot work, do you think?

@spacekitteh I can't talk about Grsecurity because I haven't used it much, but if I understood https://github.com/NixOS/nixpkgs/issues/17460#issuecomment-237601115 correctly you won't be able to use CLONE_NEWUSER and, therefore, CLONE_NEWNS as a regular user at all with current NixOS Grsecurity configuration. What this means is that you either need some sort of setuid wrapper, yes, or to disable this particular Grsecurity limitation.
See also https://github.com/NixOS/nixpkgs/issues/19047 as setuid interpreted scripts are forbidden (so Ruby is out of question).
Fakeroot won't likely help, but something like proot may (but you need to rewrite chroot-user.rb's logic as proot call). Proot has its limitations (as it's implemented as a "debugger" which overrides several syscalls).

The main issue here is that spender doesn't trust the user namespace code enough to grant unprivileged access to it. You might disagree, in which case I'd just turn off the kernel patch rather than try to circumvent it with a setuid wrapper that will basically have the same effect in a more roundabout way.

@copumpkin Exactly, see #21387 (that's why I closed it). However I left this one open because I don't know if we have any mechanism to change this grsecurity setting (e.g. with a build flag) currently.

AFAIK, there's no way to disable this restriction. So if a setuid wrapper is not desired, this issue has to be closed as a wontfix.

Closing, this is a feature and not a bug :) See https://github.com/NixOS/nixpkgs/issues/21387#issuecomment-269756654 for a solution that doesn't require modifying buildFHSUserEnv, if you really, really need this.

But https://github.com/NixOS/nixpkgs/issues/21387#issuecomment-269756654 would disable it for EVERYTHING, whereas a stub would disable it only when setting up a FHS env, right?

But https://github.com/NixOS/nixpkgs/issues/21387#issuecomment-269756654 would disable it for EVERYTHING, whereas a stub would disable it only when setting up a FHS env, right?

authors: Mic92 abbradar copumpkin joachifm spacekitteh


text:
/dev/serial/by-id missing

Describe the bug
The symlinks in /dev/serial/by-id are missing, which makes using USB devices sensitive to the order that they were inserted.
Steps To Reproduce
Steps to reproduce the behavior:

Insert USB serial device

Expected behavior
A symlink to /dev/serial/by-id, which allows for stable access to the same device regardless of insertion order.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I'm using a USB Zigbee coordinator, which is currently only mounted at /dev/ttyUSB0.
Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[root@r420:/home/ashton]# nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.85, NixOS, 22.05 (Quokka), 22.05.4690.08741686397`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.1`
 - channels(root): `"nixos-22.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Can't reproduce it with mine.

A symlink to /dev/serial/by-id, which allows for stable access to the same device regardless of insertion order.

I might have misunderstood you here, but the expected behavior is /dev/serial/by-id/<id> pointing to ../../ttyUSB0 or whatever.
Essentially ln -s /dev/serial/by-id/<id> ../../ttyUSB0
Not the other way around.
Also, consider updating to 22.11, as 22.05 is EOL.

You're correct, I was slightly sloppy in my description. I expect a symlink from '/dev/serial/by-id/' to '/dev/ttyUSBX', but no such links exist.
I will attempt updating and see if that resolves the issue.

Seems fixed in 22.11. So I guess this was a bug, but is now fixed.
Thank you for the suggestion.

authors: AshtonKem IndeedNotJames


text:
we need a pkgsCross smoke test

Until recently, nixpkgs' cross-compilation infrastructure was considered a sort of exotic/best-effort thing, without much CI or testing until things got to Hydra.  That's no longer the case, and we are starting to depend on pkgsCross for increasingly important stuff.
We need a package-sized (i.e. not needing hydra-eval-jobs) build that people can run when refactoring our cross-compilation infrastructure.
When I wrote https://github.com/NixOS/nixpkgs/pull/238154 I tested it thouroughly on all the targetPlatforms I encounter on a regular basis, but since I don't use LLVM much or Windows at all I neglected to try pkgsLLVM and pkgsCross.<various-windows-flavors>.  That's not cool.

Can we cross-compile from x86_64-linux to Darwin without Apple-proprietary tooling?  If so, this should include some basic test of that.


text:
nvim-treesitter update.py fails if ran directly

Describe the bug
i was unable to run the update.py script inside of pkgs/applications/editors/vim/plugins/nvim-treesitter
Steps To Reproduce
Steps to reproduce the behavior:

./pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py

Expected behavior
the script should run without errors
Screenshots
Additional context
i wanted to update the nvim-treesitter grammars as some grammars like for instance norg-meta are packaged but aren't included in nvim-treesitter.withAllGrammars
Notify maintainers
@figsoda @jonringer @softinio @yu-re-ka

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.22, NixOS, 24.05 (Uakari), 24.05.20240327.2726f12`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/y45vqv6pa8bhgag1dw86rvi6rk55xhxn-source`

Add a :+1: reaction to issues you find important.

since you haven't shared your error, I'll assume you hit:
stripping (with command strip and flags -S -p) in  /nix/store/3c9zhxvgl3gfzjja7q5wq57y9c6pmj9r-neovim-0.9.5/lib /nix/store/3c9zhxvgl3gfzjja7q5wq57y9c6pmj9r-neovim-0.9.5/bin
Traceback (most recent call last):
  File "/home/teto/nixpkgs/./pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py", line 97, in <module>
    generated = update_grammars(sys.argv[1])
                                ~~~~~~~~^^^
IndexError: list index out of range

replace args with argv and maybe run pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py $(nix-build -A vimPlugins.nvim-treesitter) ? feel free to add a parser to make it more obvious how to use it. We import this script in the vim updater if you want to see how it's called.

the annoying things is that this still doesn't fix my issue - the update script just takes the jsons from the nvim-treesitter repo, but doesn't include the ones that are not mentioned there. :/
Is my only possibility of using that grammar to upstream it into nvim-treesitter or is there an easier way?

authors: MangoIV eldritch-cookie teto