text:
latest jhipster-uml does not work on mac

I'm getting the following error
env: node\r: No such file or directory

seems to be related to windows style line endings.
The following solved my issue:
http://stackoverflow.com/questions/30344858/node-script-executable-not-working-on-mac-env-node-r-no-such-file-or-directo#answer-30349952

I'll fix it in a few minutes... but who are the people that still use Macs nowadays?!

The awesome ones! :smiley:

I don't know what I can do about it. Even though I did the same command as the best answer suggested, git wouldn't detect a change. I will add it as a link in the docs.

Please let me know if I forgot something! This kind of issue should not be encountered at all and I still don't understand why you had it.

It looks like git manages this by itself. However you can configure git to always use LF line endings according to https://help.github.com/articles/dealing-with-line-endings/#per-repository-settings

I'll do it as soon as I can, thanks again!

I'm having the same issue.  andidev, can you explain how you made it work more in detail? thanks!

I did as told in this StackOverflow answer:
http://stackoverflow.com/questions/30344858/node-script-executable-not-working-on-mac-env-node-r-no-such-file-or-directo#answer-30349952

ok, I got it. sudo dos2unix /usr/local/lib/node_modules/jhipster-uml/jhipster-uml.js fixed the problem, thanks.

authors: MathieuAA andidev delkant

repo: jhipster/jhipster-uml


text:
Use files from local file/folder instead of uploading files

I set up this project in the server's Docker, and media files are stored locally on the server. I hope to directly read files or all media files in a folder from the local path instead of uploading them to a temporary path. I don't really understand code, but it seems like the FileExplorer component of gradio can achieve this.

Hi. It seems the same with #38, I'll work on it.

"Input Folder Path" component added.

It will read all media files in the folder and transcribe if it's not empty.
Note that this tab only appears if you use --colab args when starting the WebUI.
For example, if you are using the Docker, the command would be :
docker run --gpus all -d `
-v /path/to/models:/Whisper-WebUI/models `
-v /path/to/outputs:/Whisper-WebUI/outputs `
-p 7860:7860 `
-it `
whisper-webui:latest --server_name 0.0.0.0 --server_port 7860 --colab

You need to add --colab arg.
Would this work for you?

"Input Folder Path" component added.  It will read all media files in the folder and transcribe if it's not empty.
Note that this tab only appears if you use --colab args when starting the WebUI. For example, if you are using the Docker, the command would be :
docker run --gpus all -d `
-v /path/to/models:/Whisper-WebUI/models `
-v /path/to/outputs:/Whisper-WebUI/outputs `
-p 7860:7860 `
-it `
whisper-webui:latest --server_name 0.0.0.0 --server_port 7860 --colab

You need to add --colab arg.
Would this work for you?

IT works well,thanks

@jhj0517 it seems that this feature (probably all conversions?) will not retain the original filename.
I've got some digitized series that have long filenames, and the identifying information between these episodes will be stripped. While the webui doesnt seem to load these files in any particular order, at least not in alphabetical nor last changed date order.
Is there something simple that you can do about that?

why do you truncate the filename here?

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
case sensitivity

issue is explained in the #commented section, but i provided a bit of extra context for how i encountered it.
i made a fork trying to repurpose this for music notes rather than english, so far im running into an issue with two characters having one coordinate in the case of flats, ie Cb, Db, Eb, Gb, and Ab crash the program because of "b"
decided to tinker some more and try repurposing it for hex strings, ran into an issue, with capital letters,
the issue
went back to the original version (ive kept yours in its own folder completely unedited), tried the word Test
it threw an issue with the capital T
the input field needs to auto lowercase the text input before graphing it.
/the issue
#what terminal says: input was the word "Test"
Traceback (most recent call last):
File "C:\Users\User\Desktop\word-shapes-main\word_explorer.py", line 109, in update_display_mode
self.display_many_words([self.input_field.text().strip()])
File "C:\Users\User\Desktop\word-shapes-main\word_explorer.py", line 187, in display_many_words
polygon_shape = self.word_shape.get_polygon_shape(word)
File "C:\Users\User\Desktop\word-shapes-main\word_shape.py", line 20, in get_polygon_shape
return [self.letter_wheel.get_coordinates(letter, True) for letter in unique_letters]
File "C:\Users\User\Desktop\word-shapes-main\word_shape.py", line 20, in
return [self.letter_wheel.get_coordinates(letter, True) for letter in unique_letters]
File "C:\Users\User\Desktop\word-shapes-main\letter_wheel.py", line 22, in get_coordinates
return self.high_precision_letter_mapping[letter]
KeyError: 'T'
im working on some changes you might find interesting to expand this thing, and when ive got them up and running ill post them to a fork for you to check out

im deleting my fork, swapping the music notes idea to just be base12 0,1,2,3,4,5,6,7,8,9,A,B instead, and going to attempt to port to tkinter/ttk instead because qt has some quite restrictive policies on use.

repo: jhntrnr/word-shapes

license: MIT


text:
Update README.md - added in example of using require in a tag file

This transform is really nice and does exactly what I was looking for, but I was not able to tell that this is the case from the README, since I was interested in whether require calls would work from inside a tag file. They do, so I thought I'd add it to the README.

was also thinking of adding a note about how to do nested tags - just make sure to require all nested tag files - you only need to mount the top level.

I don't think the example is very good. I think it also should have a comment about what it does.
In addition I would write the callback code a different way: 1) I would pass the changed  data into the callback instead of getting it 2) I would use bind() instead of $self 3) I would also have an "unmount" event which removes the "change" callback so you don't get a memory leak.

@jhthorsen I can just do a console.log(require('../foo/bar')), I just wanted to illustrate the ability to use require in tag files

Agree with including comments... Regarding the other things:

Listening to an external store and fetching data from it when it changes aligns with the Flux pattern as far as I'm aware.
I used self, since I was trying to follow the convention of using self that appear in the riot guide - e.g. the code snippet here - https://muut.com/riotjs/api/#tag-update
Adding the unmount is a good idea.

Here is an example comment:
// a tag file can contain any JavaScript, even require()

No need to comment what the code does - it's much more important to add a comment about its intent. (not sure if my example comment above is any good)

@jhthorsen yes, I'll rebase the pull request to incorporate a comment like that, since that is exactly what I was looking for in the docs.

+1
Struggled with bundling my business logic and tags until I found this issue.

Oh sorry, I was assigned. Looks nice :) Can I merge it? @jhthorsen

@cognitom: Yeah! :+1:

source: gharchive/pull-request

authors: cognitom jhthorsen pajtai shrunyan

repo: jhthorsen/riotify

license: mit

license_source: bigquery


text:
This repo is complete garbage, please delete it

Not only do you expect the developer to know the dimensions of the webcam, but you're also scaling with transform after setting the video width and height. This results in completely ridiculous outcomes, and I've wasted hours on yet another useless plugin.

If you're so good, you shouldn't need a plugin.
Submit PRs and quit complaining.

@neaumusic You've been reported to GitHub for abuse, and I am blocking you.  I'm sorry this project didn't help you out.  There are many webcam libraries out there.  I hope you find what you are looking for.

authors: jhuckaby neaumusic positlabs

repo: jhuckaby/webcamjs


text:
Bug in apidoc

Hi, please follow the link:
https://jsoup.org/apidocs/org/jsoup/select/Elements.html#not-java.lang.String-

not
public Elements not(String query)
Remove elements from this list that match the Selector query.
E.g. HTML:
One

Two

//In the next string bug, look at the expression ".not("#logo");" it is not true, right version is ".not(".logo");"

Elements divs = doc.select("div").not("#logo");
Result: divs: [
Two
]

Check it, please.
Thanks.

Thanks!

authors: IgorTatarko jhy

repo: jhy/jsoup


text:
How to make an insecure request?

I want to use -k (or --insecure) option, e.g. curl -k 'https://test.com/user/?delay=0sec'.
How can I set --insecure option with the node-curl?
Otherwise I'm getting Error: Peer certificate cannot be authenticated with given CA certificates

SSL_VERIFYPEER parameter fixed the problem for me.

repo: jiangmiao/node-curl


text:
How can i recover my gal.json from Backup folder?

Hello, how can i recovery gal.json from my backup folder?
In Customization -> Android auto -> exist just "Install Android auto custom applications patch" and nothing for recovery my original file.
Thanks!

Good question. Currently there's no way to recover it. I used to have one, but removed it.
I put it back in the latest commit: 3718b3b

I used it to patch AA, so at the moment i don't know what to do once i copied your new script (is the line 35 right?). Where and how i can import/use in the toolbox? Thx

authors: aleksgeko jilleb stifftara


text:
Image Uploader

[ ]  Image Upload Form
[ ]  Image Auto-sizing/Thumbnail Creation
[ ]  Images Component for images associated with another object
[ ]  Delete Link

Rather than write our own thing, we should just export all the existing images to imgur and modify our codebase to just link to imgur.

authors: caiges jimbobhickville


text:
🛑 R Universe is down

In 6b72143, R Universe (https://jimbrig.r-universe.dev/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: R Universe is back up in b5869e7 after 4 minutes.

repo: jimbrig/upptime


text:
Accents fucked up

Like on https://www.discogs.com/Pierre-Henry-Futuristie/release/256595
Most likely due to show. Avoid this in favor of System.Posix.Escape.Unicode (escape)

Package posix-escape


text:
Add user & room ID to info command

So, these were something I was hunting around for, and thought could be
useful as basic information to pass along, especially when getting
started with a new chat system.
I'm not in love with that blank room ID in the test specs, I'll see if I
can add something to fill that in.

Useful information, but it probably doesn't belong in the "info" command. Maybe a "roster" command or something? Maybe it could actually be an external plugin that just uses the adapter's roster method + user objects + room objects.

Closing because I think this functionality should be in a plugin.

authors: esigler jimmycuadra

repo: jimmycuadra/lita


text:
Simplify join syntax

The .ofType(...).join(...) syntax for specifications can be much simpler. The way it works right now, it requires the developer to "invert" the join, rather than being able to directly select successor facts from a given fact. Here's an example straight from the docs:
const postsInSite = model.given(Site).match((site, facts) =>
  facts.ofType(Post)
    .join(post => post.site, site)
    .select(post => ({
      hash: j.hash(post),
      titles: facts.ofType(PostTitle)
        .join(title => title.post, post)
        .select(title => title.value)
    }))
);

I think this could be both clearer and simpler by allowing someone to directly select successors:
const postsInSite = model.given(Site).match((site, facts) =>
  site
    .successors<Post>(post => post.site)
    .select(post => ({
      hash: j.hash(post),
      titles: post
        .successors<PostTitle>(title => title.post)
        .select(title => title.value)
    }))
);

This assumes that the functions within .match(...) wrap a type like this around each fact type (implemented via proxy):
type SpecificationFact<T> = T & {
  /*
   * Gets successors of type U where fact(s) returned by predecessorSelector match this fact
   */
  successors<U>(predecessorSelector: (fact: U) => T): Specification<U>;
}

Nice. The syntax as implemented allows for a chain of predecessors on both the left and the right-hand sides. But if you are only going down to successors (as you most often are), then this syntax would be simpler. Let's give it a try.

authors: floyd-may michaellperry


text:
是否已经支持存ipv6的安装了（Trojan 或 Trojan-go 和 V2ray 或 xray 一键安装脚本）

选择

安装 trojan/trojan-go 和 nginx, 支持CDN 开启websocket, trojan-go 运行在443端口

的时候，下载ran的压缩包，连不上，因为github不支持ipv6的
=================
请选择http申请证书方式? 默认为 3. webroot 并使用ran作为临时的Web服务器, 请输入纯数字:3
开始下载 ran 作为临时的web服务器
===== 下载并解压zip文件:  ran_linux_amd64
--2024-06-15 09:41:24--  https://github.com/m3ng9i/ran/releases/download/v0.1.6/ran_linux_amd64.zip
Resolving github.com (github.com)... 20.27.177.113
Connecting to github.com (github.com)|20.27.177.113|:443... failed: Connection timed out.
Retrying.
有什么解决办法

不要在国内的VPS安装使用, 因为访问不了github

是国外的vps，也是提示连接不上。设置了dns64也还是连接不上

把服务器DNS 改成 google 8.8.8.8 的或cloudflare 的DNS 1.1.1.1
在服务器上 用wget https://github.com/m3ng9i/ran/releases/download/v0.1.6/ran_linux_amd64.zip  测试是否能访问

也是不行，很神奇。本身就已经设置了nameserver的，也重启过了。
wget https://github.com/m3ng9i/ran/releases/download/v0.1.6/ran_linux_amd64.zip
--2024-06-16 14:00:47--  https://github.com/m3ng9i/ran/releases/download/v0.1.6/ran_linux_amd64.zip
Resolving github.com (github.com)... 20.27.177.113
Connecting to github.com (github.com)|20.27.177.113|:443... ^C

重装其他linux 版本系统，
或直接换VPS运营商
你这个是哪个VPS运营商

authors: jinwyp sunshowerstack


text:
db.Model(&user).Updates(User{Actived: false})

What version of Go are you using (go version)?
go 1.8.1 linux/amd64
Which database and its version are you using?
PostgreSQL 9.6
What did you do?
Hi,
I understand perfectly where it comes from
// WARNING when update with struct, GORM will only update those fields that with non blank value
// For below Update, nothing will be updated as "", 0, false are blank values of their types
db.Model(&user).Updates(User{Name: "", Age: 0, Actived: false})

However, I think that after adding the .Select() update should occur.
eg:
db.Model(&user).Select("Actived").Updates(User{Name: "", Age: 0, Actived: false})

IMHO should do
UPDATE "users" SET Actived = $1 WHERE "users"."id" = $2
Currently to save in database Actived = false, I need to convert an object to map[string]interface{}. Especially if it updates more than one field. Or db.Save(user) it all.
eg:
user = &User{}
db.Find(user, id)
user.Name = "test"
user.Actived = false
changed := []string{"Name", "Actived"}
db.Model(user).Select(changed).Updates(user)

It makes more sense when a function change_in_model is added.
eg:
func change_in_model(a, b interface{}) (res []string){
	av := reflect.ValueOf(a).Elem()
	bv := reflect.ValueOf(b).Elem()
	at := av.Type()
	for i := 0; i < av.NumField(); i++ {
		af := av.Field(i).Interface()
		bf := bv.Field(i).Interface()
		if !reflect.DeepEqual(af, bf) {
			res = append(res, at.Field(i).Name)
		}
	}
	return
}

user = &User{}
db.Find(user, id)
before := *user
// I change any fields in user, eg after receiving data from POST request.
changed := change_in_model(user, &before)
if len(changed) > 0 {
  db.Model(user).Select(changed).Updates(user)
}

In this example I know exactly what was changed in the user object and only those changes I send to the database.

Select has nothing to do with Update, making that connection just confuses things. Using a map instead of a struct is a very small change, and requires no effort. Your suggestion honestly seems like a lot more mental work than to just use a map.
The documentation could probably make this clearer though.

@jbfm - I was also surprised, but you are wrong.
db.Model(user).Select(changed) - Such a thing exists in the documentation and it works ;)
http://jinzhu.me/gorm/crud.html#update  see "Update Selected Fields".
and https://godoc.org/github.com/jinzhu/gorm#DB.Select
func (*DB) Select
func (s *DB) Select(query interface{}, args ...interface{}) *DB
Select specify fields that you want to retrieve from database when querying, by default, will select all fields; When creating/updating, specify fields that you want to save to database

I close the ticket because I have already solved my issue and am satisfied with the solution.
DB.Select(fields).Save(user)
It works like a charm ;)

Look at that, good to know!

authors: jbfm nri-pl

repo: jinzhu/gorm


text:
About total count

I have some code like this:
 c.Tx.Debug().Model(&models.Creative{}).Order("updated_at desc").Find(&creatives, "name LIKE ?", "%" + q + "%").Count(&totalCount)

I just want to know the totalCount with name Like q, but the generated sql is:
SELECT  count(*) FROM "creatives"  WHERE ("creatives".deleted_at IS NULL OR "creatives".deleted_at <= '0001-01-02') ORDER BY updated_at desc

This is not I wanted, how can I fix my code?

c.Tx.Debug().Model(&models.Creative{}).Order("updated_at desc").Where("name LIKE ?", "%" + q + "%").Find(&creatives).Count(&totalCount)

authors: chrislearn jinzhu


text:
Adding keybinds for moving the cursor without selecting

Hello,
I really like this plugin. That being said, I would still like to be able to move my cursor using keybinds when I am not pressing shift. I would like to use CMD + Left to go to the beggining of the line, CMD+  Right to go to the end, and Option+Right/Left to jump between words. How can I modify the plugin to use these? Would it be possible to integrate these into the plugin?
Thanks

Check out this forum post for help: https://stackoverflow.com/questions/12382499/looking-for-altleftarrowkey-solution-in-zsh. This project seems to be unmaintained, so you may have to do this on your own.

Hello,
I really like this plugin. That being said, I would still like to be able to move my cursor using keybinds when I am not pressing shift. I would like to use CMD + Left to go to the beggining of the line, CMD+ Right to go to the end, and Option+Right/Left to jump between words. How can I modify the plugin to use these? Would it be possible to integrate these into the plugin?
Thanks

This project seems to be unmaintained, so you may have to do this on your own.

It’s not unmaintained, but either the question is unrelated to this plugin, or maybe I misunderstood.

This project seems to be unmaintained, so you may have to do this on your own.

It’s not unmaintained, but either the question is unrelated to this plugin, or maybe I misunderstood.

Gotcha: saw last commit from two years ago so I assumed, my bad.

authors: jirutka quatquatt sarpuser

repo: jirutka/zsh-shift-select


text:
Add smart NERDTree open.

Option added - when opening single file do not open NERDTree. Do so only if directory is intended to be opened.

This sounds like a good idea! 👍

authors: jondkinney klausweiss

repo: jistr/vim-nerdtree-tabs


text:
Missed transfer before epoch ends causes improper snapshots #18

we take a snapshot on the last slot of an epoch and if the next validator didn’t transfer out before the epoch is over then our snapshot balance will be wrong

fixed

authors: buffalu whistlinwilly

repo: jito-foundation/jito-solana


text:
Java project can't import classes from 3.0-26-gf176d02

On pom.xml I've added the following:
       <dependency>
            <groupId>org.jitsi</groupId>
            <artifactId>ice4j</artifactId>
            <version>3.0-24-g34c2ce5</version>
        </dependency>

The IDE is able to download the dependencies, I can check the existence of the JAR file at ~/.m2/repository/org/jitsi/ice4j I even extracted the content of the JAR file and can see that contains some .class files under org/jitsi but somehow the maven and java cant import or compile with this version.
Is this happening for anyone else?

Out of nowhere started to working. I will close.

Please use the community forum before opening new issues, thank you.

@damencho Sure, I was thinking could be build/release problem. Apologies.

authors: damencho poliveira-fuze


text:
Random perm samples during training

https://github.com/jiweiqi/CellBox.jl/blob/d2cd6d9cf615978925aeb2cf9ec22f8ee4d7ad4b/cellbox/train.jl#L9
Better to use randperm(n_exp_train) instead

Fixed now.


text:
Fix per spw imaging and weblog reporting of per-spw quantities now that spws are tracked per-EB

When we made the change to track spw properties on a per-EB basis, this led to the per-SPW stats table in the weblog to no longer be rendered properly, as the information it was requesting was now under a vis layer. In fixing this, I also realized that per-spw imaging would no longer work, or really was never working correctly for cases where spws differed between EBs. This PR is to fix both issues, so now the weblog will render correctly and per-spw images will be done with the correct sets of spws.
As a note, as the PR currently stands, the code now creates a "spw_map" that maps the real spws in each EB to a virtual spw id that is 0-based. I.e. the virtual spw numbers have nothing to do with the original spw IDs. I did this because it was much simpler to do it this way. Nominally if there's a 1-to-1 mapping between the spws in all EBs, it is ok to just use a reference EB to set the virtual spws. But when there isn't that 1-to-1 mapping, it gets a little harder to determine how to do this properly, so I thought it was most straightforward to just start with 0 and count up.
That said, we did discuss that this could be confusing, so it may be worth reviewing a weblog to see if there's any additional information we could put in before we merge this.
Another note: I have tested that this works with check_all_spws=True and check_all_spws=False for ALMA data. We have hard-coded that check_all_spws=False for VLA data, and it works in that case. For good measure I'm overriding that check_all_spws=False to force it to make the per-spw images. That may take a while to run through, and given that the release will have that hard-coded False, we may not need to wait on that to actually merge.

Ok, caught an error where the vislist/spw list wasn't getting passed to tclean properly when some EBs were missing spws and have now fixed this. I also added some additional details to the per-spw information table to make it easier to parse.
Not necessarily related to this PR, but I noticed that SPW matching for getting the SPWs to fit for uvcontsub didn't get the SPW matching updates that are on my main, so I merged those in here.
All my checks are done and this looks good to go now.


text:
fix: split set-cookie header by attributes

There are some web servers that send set-cookie header with more than one space after semicolon or even without it. So with ;\s*|; regex set-cookie header can be parsed correctly.

Thank you too! This is my first commit and it's nice to know that I helped.

repo: jkhsjdhjs/node-fetch-cookies


text:
Data Preparation

hi, thanks for your repo. This is very helpful. However, I still don't understand about the purpose of Kmeans on your data preparation. Does it affect the quality of the dataset?

hi, thanks for your repo. This is very helpful. However, I still don't understand about the purpose of Kmeans on your data preparation. Does it affect the quality of the dataset?

The K-means is just an experiment by myself.  I would suggest you to follow the instruction of the original yolov4 repo (AlexeyAB/darknet):
To calculate anchors: ./darknet detector calc_anchors data/obj.data -num_of_clusters 9 -width 416 -height 416

ok thanks for the response...for now, I'm using your code and adapting some instructions. So I totally depend on the yolov7 algorithm to do the autoanchor... but overall, my code is based on your repo pipeline

authors: jkjung-avt mnnurilmi


text:
Value of type 'PP' has no member 'setBadgeLabel' !

what happened to this function?
buttonItem?.pp.setBadgeLabel(attributes: { (badgeLabel) in
      badgeLabel.font = UIFont.systemFont(ofSize: 13)
      badgeLabel.textColor = UIColor.blue
})

in the last version and Swift 5
it gives me an error

Value of type 'PP' has no member 'setBadgeLabel'

From what I gathered, it has been removed in favor of BadgeControl!
See 1a7724d6a79a09c268985d788feef7477b4c0e7a for more information.

@X901 Any solution found?

Not a solution, but a workaround:

Set the property textLabel public instead of private in PPBadgeControl

Convert the code, from:

buttonItem?.pp.setBadgeLabel(attributes: { (badgeLabel) in
      badgeLabel.font = UIFont.systemFont(ofSize: 13)
      badgeLabel.textColor = UIColor.blue
})

to
buttonItem?.pp.badgeView.textLabel.font = UIFont.systemFont(ofSize: 13)
buttonItem?.pp.badgeView.textLabel.textColor = UIColor.blue

my 2c,

@jkpang could you help ?

authors: SebasDesimone X901 gloryluu hardikamal mohpor

repo: jkpang/PPBadgeView


text:
Problem with intial docker run command

Executing the following:
sudo docker run -d --rm
--name=crashplan-pro
-p 5800:5800
-p 5900:5900
-v /docker/appdata/crashplan-pro:/config:rw
-v $HOME:/storage:ro
jlesage/crashplan-pro
Produces the following output:
docker: Error response from daemon: stat /docker/appdata/crashplan-pro: no such file or directory.
I previously had crashplan home working with the jcrs docker. Did the upgrade to crashplan pro successfully. DSM upgrade seems to have corrupted the jcrs container.  How should I update the    -v /docker/appdata/crashplan-pro:/config:rw \ command?

The -v /docker/appdata/crashplan-pro:/config:rw  parameter is a volume mapping.
I don't have/use a Synology device, but I think you can change a volume under advanced settings (this ia what I saw at https://www.synology.com/en-global/knowledgebase/DSM/help/Docker/docker_container).

The Docker version on my QNAP TS-453A does not like the combination of -d and --rm. I had to remove --rm to get it to go.

Thanks, I will remove the --rm parameter from the documentation ;)

authors: FizzGiGG jlesage vt2001cpe

repo: jlesage/docker-crashplan-pro


text:
Internal Permission Errors.

I've been trying different methods. Giving folders 777, re-deploying and trying to mount as automatically created volumes but I always get these errors.
(ghb:951): Gtk-WARNING **: 07:31:53.875: Attempting to read the recently used resources file at '/config/xdg/data/recently-used.xbel', but the parser failed: Failed to open file “/config/xdg/data/recently-used.xbel”: Permission denied.

(ghb:951): Gtk-WARNING **: 07:31:53.893: Unable to open server bookmarks: Failed to open file “/config/xdg/config/gtk-3.0/servers”: Permission denied

(ghb:951): Gtk-WARNING **: 07:31:53.896: Unable to open server bookmarks: Failed to open file “/config/xdg/config/gtk-3.0/servers”: Permission denied

GLib-GIO-Message: 07:31:53.901: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

(ghb:951): Gtk-WARNING **: 07:31:53.904: Unable to open server bookmarks: Failed to open file “/config/xdg/config/gtk-3.0/servers”: Permission denied

(ghb:951): Gtk-WARNING **: 07:31:53.942: Unable to open server bookmarks: Failed to open file “/config/xdg/config/gtk-3.0/servers”: Permission denied

(ghb:951): Gtk-WARNING **: 07:31:53.945: Unable to open server bookmarks: Failed to open file “/config/xdg/config/gtk-3.0/servers”: Permission denied

(ghb:951): Gtk-WARNING **: 07:31:53.951: Unable to open server bookmarks: Failed to open file “/config/xdg/config/gtk-3.0/servers”: Permission denied

(ghb:951): Gtk-WARNING **: 07:31:53.972: Unable to open server bookmarks: Failed to open file “/config/xdg/config/gtk-3.0/servers”: Permission denied

(ghb:951): Gtk-WARNING **: 07:31:53.974: Unable to open server bookmarks: Failed to open file “/config/xdg/config/gtk-3.0/servers”: Permission denied

(ghb:951): Gtk-WARNING **: 07:31:53.982: Unable to open server bookmarks: Failed to open file “/config/xdg/config/gtk-3.0/servers”: Permission denied

mkdir: cannot create directory ‘/tmp/tmp.O6DzNf0YHv’: Permission denied

/run/s6/services/autovideoconverter/autovideoconverter: line 85: /tmp/tmp.O6DzNf0YHv//watch/hash: Permission denied

[autovideoconverter] Processing watch folder '/watch'...

/run/s6/services/autovideoconverter/autovideoconverter: line 337: /tmp/tmp.uS24oyLOUM: Permission denied

/run/s6/services/autovideoconverter/autovideoconverter: line 314: /tmp/tmp.uS24oyLOUM: Permission denied

[autovideoconverter] Watch folder '/watch' processing terminated.

mkdir: cannot create directory ‘/tmp/tmp.O6DzNf0YHv’: Permission denied

And the messages repeat over and over again.
Now, with these errors I can access GUI but nothing shows up on storage despite I put some files.... obviously it can't even initiate watch and tmp folders in the first place. I have no clue at this point after I see same errors with different configurations of the volumes.

Welp, I found the issue. It was umask got wrong number. I fixed the umask value and the issue is fixed.

I know this is an old issue but it's the closest to my problem, so I thought I'd try my luck here first:
Here is my error which seems related to the watch folder. I don't use the watch function, so I don't really care but it would be better for me to quiet down or solve this problem so tis not flooding my logs.
handbrake   | [autovideoconverter] mkdir: cannot create directory ‘/tmp/tmp.rtWpm8hoR6’: Permission denied
handbrake   | [autovideoconverter] Processing watch folder '/watch'...
handbrake   | [autovideoconverter] Watch folder '/watch' processing terminated.
handbrake   | [autovideoconverter] /etc/services.d/autovideoconverter/run: line 89: /tmp/tmp.rtWpm8hoR6//watch/hash: Permission denied

since you mentioned umask, mine is set to 117
I did a docker exec -ti handbrake bash followed by ls -al / and found that the /tmp folder is owned by root which explains why the user app cannot write to it.
ls -al /
...
drwxrwxrwt    6 root root    9 Nov  7 12:02 tmp
...

ls -al /tmp/
total 25
drwxrwxrwt  6 root root   9 Nov  7 12:02 .
drwxr-xr-x 25 root root  28 Nov  7 11:46 ..
-r--r--r--  1 app  app   11 Nov  7 11:46 .X0-lock
drwxrwxrwt  2 root root   3 Nov  7 11:46 .X11-unix
-r--r--r--  1 root root 236 Nov  7 11:46 .webdata.js
drw-r-----  2 app  app    2 Nov  7 11:46 hb.810
drwxr-xr-x  3 root root   3 Nov  7 11:46 run
drw-------  2 app  app    2 Nov  7 11:46 tmp.rtWpm8hoR6
srw-rw----  1 app  app    0 Nov  7 11:46 vnc.sock

Any ideas?

This is strange, you should not have these errors.  More details about your container config (how it has been created) would be needed.
You could also try to set AUTOMATED_CONVERSION=0, which prevents the service from starting.

AUTOMATED_CONVERSION=0,

Thanks, your workaround worked and fixed my problem. Just in case, here is my docker-compose.yml
version: '2.4'
# https://github.com/jlesage/docker-handbrake
    handbrake:
        image: jlesage/handbrake:latest
        container_name: handbrake
        hostname: handbrake
        restart: "no"

        ports:
          - 5801:5800

        environment:
          - USER_ID=1000
          - GROUP_ID=1000
          - UMASK=117
          - DISPLAY_WIDTH=1920
          - DISPLAY_HEIGHT=1080
          - AUTOMATED_CONVERSION_KEEP_SOURCE=1
          - AUTOMATED_CONVERSION=0

        volumes:
          - /etc/timezone:/etc/timezone:ro
          - ./handbrake:/config
          - /sixer/tmp/handbrake:/storage
          - /sixer/tmp/handbrake/output:/output
          - /sixer/tmp/handbrake/watch:/watch
          - /sixer/tmp/downloads:/storage/downloads
          - /sixer/Movies:/storage/movies
          - /sixer/Series:/storage/series
        cpus: 4
        mem_limit: 4G

        networks:
            - multimedia

networks:
    multimedia:
        external: true
        name: multimedia

Ok, the problem is your UMASK value: it doesn't allow execute permission on directories, meaning that created directories cannot be traversed/accessed.  Try to set a UMASK value of 007 instead.

:-( sorry, that one was obvious, I had initially thought 117 would be better since I only thought I'd be applying this to the mounted media folders.

authors: jlesage kwm1800 ovizii

repo: jlesage/docker-handbrake


text:
how to add namespace description?

Namespaces occupy a prominent place in the docs now, and they have a nice list of Interfaces and Classes.  But they always say "No description available" underneath the namespace name at top.
I've tried adding variants of the @namespace tag as shown at http://usejsdoc.org/tags-namespace.html but nothing has worked so far.
It's unclear where that tag would be added, however when I click on the "show source" button it takes me to the goog.provide statement of one of the classes of the namespace and I've tried adding the @namespace tag there.  For the myphysicslab.lab.app namespace:
/** Helper classes for applications
@namespace
*/
goog.provide('myphysicslab.lab.app.EventHandler');

I've also tried
/** Helper classes for applications
@namespace myphysicslab.lab.app
*/
goog.provide('myphysicslab.lab.app.EventHandler');

You can't add a namespace description. I should probably change that to not output anything when a description is missing.
If you use goog.module (or an ES6 module), it will use the block comment with a @fileoverview tag as the module description. We can't do that for namespaces since you could have multiple goog.provide statements in a file.
With respect to the @namespace tag - is that recognized by the compiler? I want the code you run through dossier to be valid input for the closure compiler without extra tag declarations.

With respect to the @namespace tag - is that recognized by the compiler? I want the code you run through dossier to be valid input for the closure compiler without extra tag declarations.

You can use the compiler option --extra_annotation_name which specifies "a whitelist of tag names in JSDoc."

A set of extra annotation names which are accepted and silently ignored when encountered in a source file.

So do you just ignore @fileoverview tags in files using goog.provide?
Many of the closure-library files have useful @fileoverview's, that seem to disappear in the docs. For example:
https://github.com/google/closure-library/blob/master/closure/goog/dom/animationframe/animationframe.js#L99
Maybe you could attach them to the first provided namespace? Or even all of them?

authors: jleyba myphysicslab ribrdb

repo: jleyba/js-dossier


text:
about dataset

Sorry to bother you, but could you please clarify whether you used a subset of the dataset or the entire dataset for your experiments? I noticed that the nq_open dataset alone has 88,000 entries in the test set, which might be very time-consuming to process.

We use a subset:

For each dataset, we use 400 train examples and 400 test examples randomly sampled from the original larger dataset. [...]

This will also be enabled in the code by default. Please see the methods section of the paper for more details!

thanks for your reply

No worries at all and thanks for your interest in our project!


text:
3 INVALID_ARGUMENT: Page size must be nonnegative.

For the last few months, I have been exporting a full collection named "quotes" from Firestore using this command.
npx -p node-firestore-import-export firestore-export -n quotes -a credentials-pr.json -b all_quotes.json --prettyPrint
And today it started failing with this error:
Starting Export 🏋
Retrieving documents from quotes
3 INVALID_ARGUMENT: Page size must be nonnegative.
I tried exporting a single quote and it works fine, so I'm guessing that the amount of data saved in my quotes collection is now too big for some memory allocation that happens somewhere in this tool's code.
If anyone has a workaround or a way to fix it, please let me know

Strange. The error stopped occuring today, so it was probably not an issue with the collection size or this tool. Closing the issue.

repo: jloosli/node-firestore-import-export


text:
How to select the image programatically

Hi,
Anyone can help me to select the image programmatically.

yeah, same question :|

authors: MySelfMukund giapnhgc

repo: jlouage/flutter-carousel-pro


text:
Add stylesheets

Added changes

Added changes to CSS file


text:
LFOs

Thinking about best way to implement these.
From MD manual:
"SPEED sets the update speed relative to the tempo in 1/128 note steps."
Range of LFO is [0-127]
128 bytes array/wavtable then playback speed controlled by tempo ?
At sequencer resolution we have 12 * 4 = 48 possible values per beat.

Done


text:
feat: wrapErrors to report field names and slice indexes

This PR introduces the wrapErrors feature to wrap conversion methods with extra troubleshooting information, such as struct field names or slice indexes. The new flag can be set either via command line for the whole generated codebase (this is what we are going to use) or locally via goverter:wrapErrors tag per method.
Reason: we are copying relatively large structs with many fields, and when something fails, it is hard to debug an error that says 'UUID conversion failed' when there are 10 fields that carry UUID. This feature will help us pin point the field that carried the faulty data speeding up the investigation.
@jmattheis Jannis, PTAL.

Codecov Report

Merging #29 (c075fbe) into main (12cc647) will decrease coverage by 0.40%.
The diff coverage is 86.53%.

@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
- Coverage   93.74%   93.34%   -0.41%
==========================================
  Files          22       23       +1
  Lines        1167     1202      +35
==========================================
+ Hits         1094     1122      +28
- Misses         55       60       +5
- Partials       18       20       +2

Impacted Files
Coverage Δ

cmd/goverter/main.go
0.00% <0.00%> (ø)

comments/parse_docs.go
94.66% <60.00%> (-2.48%)
:arrow_down:

builder/basic.go
100.00% <100.00%> (ø)

builder/error_wrapper.go
100.00% <100.00%> (ø)

builder/list.go
100.00% <100.00%> (ø)

builder/map.go
100.00% <100.00%> (ø)

builder/pointer.go
92.85% <100.00%> (+0.17%)
:arrow_up:

builder/struct.go
100.00% <100.00%> (ø)

generator/generate.go
93.75% <100.00%> (+0.20%)
:arrow_up:

generator/generator.go
97.74% <100.00%> (+0.10%)
:arrow_up:

... and 1 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 12cc647...c075fbe. Read the comment docs.

repo: jmattheis/goverter


text:
Fix last_active to not count verification markers

When an account gets verified or blocked, that action is logged in the activity. But last healthy shouldn't count this because then every time you verify or block an account, it will be considered active even if the account hasn't been active for a long time.

Fixed with latest commit.

repo: jmccand/UpDown


text:
Account for empty pages

At least for recent reMarkable versions (2.1.x), there is no .rm file when there is no annotation on a given page. The consequence is a misaligned set of annotations for subsequent pages.
This PR implements a simple solution, by generating an empty svg in that case.
Note that it includes changes from the other PR I made to move to qpdf.

Appreciate the fix, thanks!

authors: delaere jmptable

repo: jmptable/rm-dl-annotated


text:
compile on aarch64,and get error like below:

[exec] /data/jffi-1.0.11/jni/libffi/src/arm/sysv.S: Assembler messages:
[exec] /data/jffi-1.0.11/jni/libffi/src/arm/sysv.S:53: error： junk at end of line, first unrecognized character is @'      [exec] /data/jffi-1.0.11/jni/libffi/src/arm/sysv.S:144: error： junk at end of line, first unrecognized character is @'
[exec] /data/jffi-1.0.11/jni/libffi/src/arm/sysv.S:145: error： junk at end of line, first unrecognized character is @'      [exec] /data/jffi-1.0.11/jni/libffi/src/arm/sysv.S:146: error： junk at end of line, first unrecognized character is @'
[exec] /data/jffi-1.0.11/jni/libffi/src/arm/sysv.S:147: error： junk at end of line, first unrecognized character is @'      [exec] /data/jffi-1.0.11/jni/libffi/src/arm/sysv.S:148: error： junk at end of line, first unrecognized character is @'
[exec] /data/jffi-1.0.11/jni/libffi/src/arm/sysv.S:149: error： junk at end of line, first unrecognized character is @'      [exec] /data/jffi-1.0.11/jni/libffi/src/arm/sysv.S:151: error： junk at end of line, first unrecognized character is @'
[exec] /data/jffi-1.0.11/jni/libffi/src/arm/sysv.S:152: error： unknown pseudo-op: `.arm'
waht's the matter with this?

Hmm, I know I have built jffi on aarch64 before. I notice your build appears to be building jffi 1.0.11, which is many releases old now... possibly even before full aarch64 support was merged in. Can you confirm this on either jffi master or the current release version 1.2.23?

FWIW, 1.0.11 is nearly nine years old. I'm pretty sure we did not support aarch64 properly back then.

appreciate for your reply.
after using the newest-version's share library ,it works well now.
might you comfirm it is downward compatible?

@ericsoul1987 We have not made any significant changes to the jffi API in many years, so it's "probably" downward compatible with whatever you are using. You are probably consuming it through something like jnr-ffi, though, which has evolved a bit. I can't really guarantee downward compatibility in the rest of jnr-*, but they should be ok.
Thank you for confirming this, I'll mark it closed.

It appears we first merged aarch64 support in 1.2.13.

repo: jnr/jffi


text:
Add the ability to link back to the original application.

Very similar to Sidekiq #1875.

Neat. Seems useful. Could you drop a screenshot of it in action?
This does make me wonder if we should start with a config object of some sort. Without that we could end up with a lot of these options and they would all be separate. With a config object, we can localize the config stuff. I guess we can always deprecate someday and have it write through to the config object if/when we need it.
It also makes me wonder if there is any way we can infer it by default perhaps based on the rack env. Any thoughts on that?

@jnunemaker Sure here's a screenshot:

I will look at the rack env--there might be something that gets set. Or yeah, maybe we can just remove the path prefix for the mounted app and use that as a sensible default?
I agree that it's probably a good idea to create a config object. My goal was to create an MVP of this. I'd be happy to wrap it in a formal config object if you'd like, just let me know.

Or yeah, maybe we can just remove the path prefix for the mounted app and use that as a sensible default?

Yeah, something like that is what I was thinking.

My goal was to create an MVP of this. I'd be happy to wrap it in a formal config object if you'd like, just let me know.

Totally understood. Don't go that far yet. Let's see if we can do something smart from rack. If not, we can roll with what you have.
Seeing the pic I wonder if it would be better to make it a part of the breadcrumb. App > Flipper Home > Features or something. What do you think?

I actually thought about doing that originally as well (and think it's probably a more appropriate spot). When I started implementing it though, it required quite a bit to change with how breadcrumbs are recorded and rendered, so I again went with the least invasive change.
What if I create a different branch that has the changes necessary for the breadcrumb solution? We can then evaluate which one we like more?

What if I create a different branch that has the changes necessary for the breadcrumb solution? We can then evaluate which one we like more?

That sounds awesome.

Could we just add a breadcrumb to where we initialize to an empty array?
https://github.com/jnunemaker/flipper/blob/9ea8a7df5aad222bd3332f09c082071a1898c835/lib/flipper/ui/action.rb#L59

Yeah, that's part one for sure. The issue I ran into was actually related to the rendering. Breadcrumbs currently always have the script_name prepended to the path: https://github.com/jnunemaker/flipper/blob/9ea8a7df5aad222bd3332f09c082071a1898c835/lib/flipper/ui/views/layout.erb#L28

Oh, right. So maybe we remove the script name there and move it in to where we append the breadcrumb in the helper? That would allow first to not include script name but the rest would.

Yeah, that should work. I will try to find some today to make this happen!

Closing thanks to #93

authors: delynn jnunemaker

repo: jnunemaker/flipper


text:
🛑 MegaConstruct is down

In f9121ef, MegaConstruct (https://www.megaconstruct.ro) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MegaConstruct is back up in 3776e50.


text:
Globally defined validation messages

Hi,
Is it possible to globally define validation messages? For example, I would like to set default validation messages instead of generic "required" or "minLength" to sentence in the language in which I am building an app.
Sometimes I don't need custom validation message for every field, generic message will suffice.
Thank you.

Really like the idea!

you can change default error messages,
see  this thread  #164
you can show by default  generic messages
ex.  Validators.minLength(6)
Charactors should be more
only issue is you can not pas value to messages.  so you cant show it should be greater than 6.
Value must have a length greater than or equal to 6

Hi,
So, as far as I understand you would like to globally configure the default messages for validations, instead of 'required', etc.
But you would also like to define a method/function that receives the error (or the control) and then customize the error message based on the error information. Is that right?
Thanks to all of you for the issue

Hi,

Yes, since we are doing app in our domestic language, it seems a little bit tedious to repeat ourselves at every field for simple validations as required, email, etc.
Yes, it makes sense to have method/function to have the ability to handle validations with parameters as minLength, maxLength, etc.

Thank you.

Any update on this? Would like to have this feature too.

Hi @jans-y @jasonlaw @kuhnroyal @vasilich6107 @dhsont
I have release version 14.1.0 of Reactive Forms, in which we can define validation messages Globally. You can find documentation here.
Please give it a look and don´t hesitate to create a new issue if you have new suggestions or issues.
Thanks once again for your support.
Please let me know if the new version covers all your needs.

authors: dhsont jans-y jasonlaw joanpablo kuhnroyal


text:
Offer by default a search result when we Merge mangas

Describe your suggested feature
Whenever we tap the "Merge" button (or choose "Merge" in the overflow menu) on a manga page and choose a source, the app performs a search in the choosen source.
If we're lucky, it will find the right result. If not, the app will try to force a merge with a random manga with no options to change the result
It would be great for the "Merge" feature that the app presents us with a search result by default instead of trying to force a manga on us.
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extensions repository.
[X] I have updated the app to version 1.8.5.
[X] I will fill out all of the requested information in this form.

Duplicate of https://github.com/jobobby04/TachiyomiSY/issues/446


text:
Brudash tests

Completed base goals and 2 stretch goals.

✅ LGTM!

authors: jocelynsaysrawr lorecrafting

repo: jocelynsaysrawr/bruhdash


text:
panic: runtime error: slice bounds out of range [:4] with capacity 0

The following error happens, it seems to occur when subsequent server read requests happen to close to one another.
panic: runtime error: slice bounds out of range [:4] with capacity 0

goroutine 39 [running]:
github.com/joe-at-startupmedia/golang-ipc.(*Server).read(0xc000208d90)
	/root/go/pkg/mod/github.com/joe-at-startupmedia/golang-ipc@v1.2.5/server_all.go:132 +0x33c
created by github.com/joe-at-startupmedia/golang-ipc.(*Server).acceptLoop in goroutine 11
	/root/go/pkg/mod/github.com/joe-at-startupmedia/golang-ipc@v1.2.5/server_all.go:81 +0x14c

At the very least the server should gracefully exit and allow a restart

unable to replicate this in the latest iterations of development.

repo: joe-at-startupmedia/golang-ipc


text:
cannot authenticate

I am getting error:
AttributeError: 'module' object has no attribute 'client'
I have been using this code for months and suddenly I cannot authenticate.

nevermind. microsoft/ xbox live was having issues. the code still works!

awesome!

authors: cdangerdouglas joealcorn

repo: joealcorn/xbox


text:
AbstractOptionalAssert#get() is not correctly proxied with SoftAssertions

Summary
AbstractOptionalAssert#get() is not listed under METHODS_CHANGING_THE_OBJECT_UNDER_TEST of SoftProxies.
Example
SoftAssertions softly = new SoftAssertions();
Optional<String> optional = Optional.of("Yoda");

softly.assertThat(optional)
      .get()
      .isEqualTo("Luke"); // fails here

assertThat(softly.errorsCollected()).hasSize(1);

Good catch!

authors: joel-costigliola scordio

repo: joel-costigliola/assertj-core


text:
Questions bitbucket - multistage

Hi 2 questions.
Strano support othere git like bitbucket?
Is there a support for multistage enviroments?

Only Github si supported at this time, but happy to look at any pull requests that add support for other providers.
Multistage is supported using Capistrano's built-in multistage plugin. Just configure it in your repo, and Strano will pick it up and give you the option to choose which stage you want to deploy to.
--
Joel Moss
Develop with Style at http://DevelopWithStyle.com
Call me +44 7791 503309
http://twitter.com/joelmoss
AIM: joelkmoss
Skype: joelmoss.info
On Thursday, 1 March 2012 at 09:57, francesco agati wrote:

Hi 2 questions.
Strano support othere git like bitbucket?
Is there a support for multistage enviroments?

Reply to this email directly or view it on GitHub:
https://github.com/joelmoss/strano/issues/7

authors: francescoagati joelmoss

repo: joelmoss/strano


text:
Logseq GitHub plug-ins

https://github.com/sawhney17/logseq-github-plugin

https://github.com/logseq/marketplace
https://github.com/logseq/awesome-logseq

this might be more trouble then it's worth... I will reopen when I have the time.

repo: joelouthan/Theologicus


text:
fix Tray Transparency

yet another request:
I know i can make the tray transparent with opacity tag.
is there a way to make the tray contents opaque i mean show tasklist contents, clock and icons without being transparent.
Can that be implemented?

I found an example that uses xrender
http://achurch.org/tclock2.c
We only need compositing for the windows and menus since they may have stuff going on under them.

I suppose then, if a pixmap id is used then a semitransparent tray would be achievable too.

I like the idea of allowing the tray to be transparent/semitransparent by setting the background pixmap of the tray to match the root window.  This shouldn't be too hard to implement.
I think it would make sense to remove support for _NET_WM_WINDOW_OPACITY from the tray and re-use the TrayStyle/Opacity configuration option to determine the opacity of the tray background using this approach.

authors: 01micko joewing technosaurus vmnlopes

repo: joewing/jwm


text:
Regression: passes watch dir to py.test

With ptw dir -- path/to/test_file.py ptw will include the dir in the py.test run:
Running: py.test dir path/to/test_file.py

This however will cause py.test to run the whole directory, and not only the specified test file.
This was not the case with 3.10.0, which does:
Running: py.test path/to/test_file.py

btw: I found the best method is to specify testpaths = path/to/tests with the pytest options in setup.cfg, which gets used when running just py.test.
If this was done intentionally, I think it should only get done when there are no py.test args provided, but that feels a bit too magic.

Yeah, this was intended (see ede80ffa64f52570658aa82dd20162e2c9a6439c, also motivated by forwarding --ignore to pytest from #48).
Thinking more about it though. Here's the parameter-passing use cases I was thinking of:

Run from subdirectory, watching and collecting tests from all subdirectories:

Formerly ptw myproject -- myproject
Currently ptw myproject

Ignore unrelated dirs from watch and test collection (due to large trees slowing things down):

Formerly ptw --ignore tmp -- --ignore tmp
Currently ptw --ignore tmp

Or from a subdirectory:

Formerly ptw myproject --ignore myproject/tmp -- myproject --ignore myproject/tmp
Currently ptw myproject --ignore myproject/tmp

(This actually was never implemented, which I forgot about! Just opened #56 to address this.)

Include watched directories without collecting tests from them

Formerly ptw myproject mytests -- mytests
Currently not possible (ptw myproject mytests -- --ignore myproject doesn't work)

Include test collection from a directory without watching them

Formerly ptw myproject -- myproject mytests
Currently ptw myproject -- mytests

(1)-(3) re-runs the tests when changing either source code or test files.
(4) only re-runs when changing source code, which doesn't seem that useful.
So the issue is that (3) isn't possible now. Is it really a problem though? It almost seems like a pre-optimization to try to exclude test collection from a watched directory. Remember, watchdog also has to crawl through a huge directory, so you'll have delay for huge project directories regardless. A better fix might be to exclude the things that aren't testable from both (static and template files for websites,vendor directories, etc.)
Or is there another case I'm leaving out?

I am using testpaths = path/to/tests, so there is no need to pass path/to/tests to py.test.
So with ptw path, path would be watched, but only path/to/tests used to collect tests.
If you want to keep the current behavior, then the testpaths option should be looked at and only if it's not used the watch directory should be passed explicitly to py.test?

So with ptw path, path would be watched, but only path/to/tests used to collect tests.

If you pass arguments to py.test, does that overwrite testpaths?

Btw, I'm also considering having pytest-watch be usable as a standard pytest plugin. Making the command line arguments more consistent with pytest was a first step. (Just opened #57 to dedicate to that discussion.)

If you pass arguments to py.test, does that overwrite testpaths?

Yes.

Ah, that's a shame.
The idea is that ptw dir is to tell both watchdog and pytest to start their search from there. Some more questions for you:

Are you able to run ptw from your project root instead of specifying where to watch and where to collect tests? If not, is it because:

Your tests are located outside of the project?
It's taking too long to boot?

Are you able to run cd dir && ptw instead?

Ah, that's a shame.

Only in this context, right?  Because otherwise it's quite nice, isn't it?
While I could workaround this behaviour change, I'd rather not do so.. :)

Are you able to run ptw from your project root instead of specifying where to watch and where to collect tests?

Yes, but I'd like to avoid scanning everything (build dir, venv etc).  Even the project's source can be skipped.  That's why I like testpaths.

Are you able to run cd dir && ptw instead?

Yes.
What speaks against using the same behaviour regarding testpaths as py.test though?

Only in this context, right? Because otherwise it's quite nice, isn't it?

Yeah. More like it's a shame that I overlooked that option / missed your use case. Was mostly asking these questions to make sure I didn't miss something else.
Thinking more about it, I suppose (3) is important after all to keep test runs lightning fast. Perhaps a new named argument could be used for watching without collecting tests. This would continue to make sense if pytest-watch was used as a pytest plugin.
As for the case you've pointed out, what do you think of having an equivalent config option pytest-watch? Say, watchpaths under the [pytest-watch] category. Like testpaths, it wouldn't have any effect when passing in <dir> arguments. Then you could run ptw with no arguments and fully customize what paths to watch and what paths to collect tests from.

@joeyespo

As for the case you've pointed out, what do you think of having an equivalent config option pytest-watch?

Sounds good to me!

Just opened #61 to address this. Closing as per this comment. Feel free to re-open if you don't think that'll be enough.

authors: blueyed joeyespo

repo: joeyespo/pytest-watch


text:
Temperature change error

Hi,
I have the latest version of the plugin uploaded from scratch.
After this procedure, my air conditioner started working.
However, when I turn it off and on, from 24C temperature, it starts up anyway at 26C....
[7/10/2024, 8:42:17 PM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 26 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[7/10/2024, 8:42:25 PM] [homebridge-alexa-smarthome] Launched child bridge with PID 19973
[7/10/2024, 8:42:26 PM] [homebridge-alexa-smarthome] Loaded homebridge-alexa-smarthome v2.2.0-alpha.5 child bridge successfully
[7/10/2024, 8:42:26 PM] Registering platform 'homebridge-appletv-enhanced.AppleTVEnhanced'
[7/10/2024, 8:42:27 PM] [homebridge-alexa-smarthome] Added accessory: Klimatyzator
[7/10/2024, 8:42:43 PM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 26 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[7/10/2024, 8:42:44 PM] [homebridge-alexa-smarthome] Klimatyzator - Get power - InvalidResponse(State not available)
[7/10/2024, 8:42:49 PM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 26 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[7/10/2024, 8:42:56 PM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 26 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[7/10/2024, 8:43:10 PM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 26 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[7/10/2024, 8:43:19 PM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 26 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[7/10/2024, 8:44:10 PM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 26 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.

Another problem, when the air conditioner is off and so it appears after time in the application as on (by itself). Despite this, the device is off and so it should be.

Hi @grzech1991, thanks for the issue report. ACs are not officially supported by this plugin. I do not have access to a smart AC so I am unable to support it. If you would like to contribute to the project, I am happy to review any code.

yes but in older version working fine... it's a problem with farenthait / celcius, AC is seen as a thermostat

repo: joeyhage/homebridge-alexa-smarthome


text:
Remove annotation

the annotation does not disappear when the mouse leaves the figure or axis  so quickly

By default, this is the expected behavior.  Annotations appear when you click and do not move or disappear until you dismiss them (right click to dismiss).
Do you mean with hover=True?  If so, yes, if you move the mouse quickly enough, it will remain.  It will disappear again as soon as you move your mouse back over the figure.  There's not much that can be done to avoid this.  mpldatacursor deliberately rate-limits its callbacks to avoid CPU usage issues.  That means that if you manage to move the mouse out of the figure in less than the callback rate-limit interval, the popup will remain.  If you'd like, that interval can be made configurable to lessen the frequency that this occurs at, but decreasing the callback interval will increase CPU usage.

authors: baderAmmoun joferkington

repo: joferkington/mpldatacursor


text:
DynamoDB support

Hello all,
I was wondering if there roadmap has any plans to support AWS DynamoDB as an event store?
Also, my team is using the Quarkus framework extensively to build our solutions. Am I right in assuming that Occurent  should fit nicely into the world of Quarkus?

@einarjohnson Hi! It would be great to support it. I think @jankronquist made an attempt here, hopefully, he can find time to continue working on it.

When it comes to Quarkus, I haven't used it, but I can't see anything that would prevent using Occurrent with Quarkus.

thanks for such quick answers. @jankronquist, any ETA on when your attempt might be released?

authors: einarjohnson johanhaleby

repo: johanhaleby/occurrent


text:
CLI option for localization

Hello. How can I change global language for features?
In cucumber-js I can use cli options --language  but in selenium-cucumber-js I use # language: ru at first line of feature for every feature

Yup. And how we can throw cucumber-js parameters across selenium-cucumber-js in general?
For example I want use babel-core library. In cucumber-js I use --require-module babel-core/register parameter. How I can do it in selenium-cucumber-js?

authors: DMShamonov Djcvhw

repo: john-doherty/selenium-cucumber-js

license: isc


text:
Running on different browsers/devices over Browserstack

Hi @john-doherty . Would appreciate your help if you can please give some insights on how to run the framework on BS on different browsers/devices.

Seems like someone took most of the code from this repo and made some configs for running on browserstack. It is a bit of a mess though but good for inspiration: https://github.com/larryg01/klassi-js


text:
fix: do not clean directory if webpack errors are present during initial build

Please hold off on merging this.
Although this is a fix for #133, is it also a breaking change? I think it could be if someone is using a webpack plugin that manually creates files inside webpack's output.path after the compile hook, although this is not supported by webpack and probably can/should be ignored. Thoughts?

Codecov Report

Merging #134 into master will increase coverage by 0.09%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #134      +/-   ##
==========================================
+ Coverage    98.7%   98.79%   +0.09%
==========================================
  Files           1        1
  Lines          77       83       +6
  Branches       26       27       +1
==========================================
+ Hits           76       82       +6
  Misses          1        1

Impacted Files
Coverage Δ

src/clean-webpack-plugin.ts
98.79% <100%> (+0.09%)
:arrow_up:

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 9f8a3bb...9a14d8b. Read the comment docs.

Hi @chrisblossom @johnagan this PR broke our build :(, would appreciate feedback on how to upgrade to the new version.
We currently have two Webpack configs which emit different files into our shared dist/ folder. Since Webpack runs the configs in parallel, there can be a problem where one config cleans the other's emitted files.
With this change, whichever config finishes compiling second will clean up the other config's emitted files. Previously, since we cleaned before compiling, this didn't happen because both the cleans happened immediately, before any files were compiled. (technically, it was a race condition back then, but our compiles are long enough that it never surfaced)
Is there a way to only clean the files that would be emitted by webpack? Or any other thoughts?
Versions:
Webpack 4.44

authors: chrisblossom codecov-io thomastay

repo: johnagan/clean-webpack-plugin


text:
Databag item 'ca_file' misnamed

The documentation indicates that a databag item with the key 'ca_file' will become the contents of /etc/consul.d/ca.pem, however the key actually needs to be 'ca_cert'.

This is also true of the ['consul']['ca_file'] attribute. Using ['consul']['ca_cert'] does populate the expected file, as in your case.

I am closing this out because of impeding #126 landing on master.

authors: jhmartin johnbellone logankoester

repo: johnbellone/consul-cookbook


text:
Docs

initial structure of docs. ~~ from master/2.1.1 branch/tag~~ merged develop branch into this.

hm.  wrong account for PR.

Now from correct account.
initial structure for docs, has topics and ref.  readme from 2.1.1 is basis of tutorial.
Looking at what the commit log above is.  something tells me the merge history is a bit more complicated than I thought.

Coverage remained the same at 99.867% when pulling b26f31ed8e16712136233aa2b24a5164d8919a2f on yarbelk:docs into ccedbffb664eb219a532c4d80573a1d21602fbb7 on johnbywater:develop.

Coverage remained the same at 99.867% when pulling b26f31ed8e16712136233aa2b24a5164d8919a2f on yarbelk:docs into ccedbffb664eb219a532c4d80573a1d21602fbb7 on johnbywater:develop.

authors: coveralls yarbelk yarbelkgazia

repo: johnbywater/eventsourcing


text:
Support for Parcelables in Parcels.wrap

I currently have a bunch of generic methods just calling Parcels.wrap when they want to make something parcelable.
However, if the object that I pass in is already a parcelable on its own Parceler fails to find an implementation for that object.
I understand it might be out of scope for the project but I would love it if there was a ParcelableParcelable or something that would make Parcels.wrap work with parcelable objects.

Right now the Parcels.wrap keys on the specific class name, not the inheritance hierarchy.  If you could provide a PR with some performance metrics (show that searching the inheritance tree for Parcelable has little effect on the runtime) then I'm more than happy to merge in this change.

I'm going to close, feel free to reopen if you have a solution or a related issue.


text:
Extra configuration for GPU?

Hi there,
When I run F@H in a docker container with the --gpu=true flag, I get the following error on start:
05:29:49:******************************* System ********************************
05:29:49:        CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
05:29:49:     CPU ID: GenuineIntel Family 6 Model 158 Stepping 10
05:29:49:       CPUs: 12
05:29:49:     Memory: 15.38GiB
05:29:49:Free Memory: 10.22GiB
05:29:49:    Threads: POSIX_THREADS
29:49: OS Version: 4.12
05:29:49:Has Battery: false
05:29:49: On Battery: false
05:29:49: UTC Offset: 0
05:29:49:        PID: 1
05:29:49:        CWD: /
05:29:49:         OS: Linux 4.12.14-lp151.28.40-default x86_64
05:29:49:    OS Arch: AMD64
05:29:49:       GPUs: 0
05:29:49:       CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
05:29:49:             libcuda.so: cannot open shared object file: No such file or
05:29:49:             directory
05:29:49:     OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
05:29:49:             libOpenCL.so: cannot open shared object file: No such file or
05:29:49:             directory
05:29:49:***********************************************************************
05:29:49:<config>
05:29:49:  <!-- Folding Slots -->
05:29:49:</config>
05:29:49:Connecting to assign1.foldingathome.org:8080
05:29:49:Updated GPUs.txt
05:29:49:Read GPUs.txt
05:29:49:Trying to access database...
05:29:49:Successfully acquired database lock
05:29:49:FS00:Set client configured
05:29:49:Enabled folding slot 00: READY cpu:11
05:29:49:Enabled folding slot 01: READY gpu:0:GP104 [GeForce GTX 1070 Ti] 8186
05:29:49:ERROR:No compute devices matched GPU #0 NVIDIA:7 GP104 [GeForce GTX 1070 Ti] 8186.  You may need to update your graphics drivers.

Then while its running, I get a few such errors repeated:
05:47:01:ERROR:WU02:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually

Is there a way to install the opencl and cuda libraries in the image if the gpu flag is passed? I'm more than happy to help add that feature, I just need some information on how I can debug the image. Thanks

@ChristopherRabotin I believe those need to be installed and available on the host

@ChristopherRabotin I don't have a gpu to test this with, but you should be able to use docker run --gpus=all ..... Let me know if that works so we can update the docs, or feel free to open a PR.

After following the steps of nvidia-docker (and updating my drivers to the latest version), the Nvidia docker image works well (1). However, the FAH image still shows the same errors, so I'll look into that, and will probably have to install cuda in that image.
$ docker run --gpus all nvidia/cuda:10.0-base nvidia-smi
Thu Mar 19 00:36:50 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01    Driver Version: 440.33.01    CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 107...  Off  | 00000000:01:00.0  On |                  N/A |
| 30%   48C    P2    28W / 180W |    219MiB /  8111MiB |      1%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

I know this would bloat your container, but if you're going through the exercise, you may want to include a couple older versions (<10.0) of CUDA. I am still using Tesla C2070 + Quadro 4000 GPUs (Fermi microarchitecture), support was deprecated after CUDA 8. If you had several versions of the toolkit you could pass a flag to change the symlinks on start.

That would probably require different versions of the container, but I
suspect that should be possible.
On Thu, Mar 19, 2020 at 6:30 AM mcknly notifications@github.com wrote:

I know this would bloat your container, but if you're going through the
exercise, you may want to include a couple older versions (<10.0) of CUDA.
I am still using Tesla C2070 + Quadro 4000 GPUs (Fermi microarchitecture),
support was deprecated after CUDA 8. If you had several versions of the
toolkit you could pass a flag to change the symlinks on start.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/johnktims/folding-at-home/issues/9#issuecomment-601151670,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABEZV2AQRL3IHVZO2Y7L2VTRIIF75ANCNFSM4LOHTT2A
.

I'm working on this in #11

I've published a container with gpu support. If you want to try it out, run sudo docker run --gpus=all --rm -it johnktims/folding-at-home:test-gpu .... It's been folding fine for me on a g3.8xlarge EC2 instance with 2 Tesla M60s. If anyone has time to test it before I release it later this week, I'd appreciate it!

I'm getting this odd error (which I don't get on the nvidia docker image):
At the start of the image:
20:10:36:Connecting to assign1.foldingathome.org:8080
20:10:36:Updated GPUs.txt
20:10:36:Read GPUs.txt
20:10:36:Trying to access database...
20:10:36:Successfully acquired database lock
20:10:36:FS00:Set client configured
20:10:36:Enabled folding slot 00: READY cpu:11
20:10:36:Enabled folding slot 01: READY gpu:0:GP104 [GeForce GTX 1070 Ti] 8186
20:10:36:ERROR:No compute devices matched GPU #0 NVIDIA:7 GP104 [GeForce GTX 1070 Ti] 8186.  You may need to update your graphics drivers.
(...)

And later when a new assignment is given:
20:13:16:ERROR:WU00:FS00:Exception: Could not get an assignment
20:14:21:WU01:FS01:Downloading 79.12MiB
20:14:27:WU01:FS01:Download 34.99%
20:14:33:WU01:FS01:Download 78.44%
20:14:37:WU01:FS01:Download complete
20:14:37:WU01:FS01:Received Unit: id:01 state:DOWNLOAD error:NO_ERROR project:14533 run:0 clone:14179 gen:5 core:0x22 unit:0x0000000a80fccb025e72f303d5ee07a4
20:14:37:WU01:FS01:Downloading core from http://cores.foldingathome.org/v7/lin/64bit/Core_22.fah
20:14:37:WU01:FS01:Connecting to cores.foldingathome.org:80
20:14:37:WU01:FS01:FahCore 22: Downloading 3.58MiB
20:14:37:WU01:FS01:FahCore 22: Download complete
20:14:37:WU01:FS01:Valid core signature
20:14:37:WU01:FS01:Unpacked 9.30MiB to cores/cores.foldingathome.org/v7/lin/64bit/Core_22.fah/FahCore_22
20:14:37:WU01:FS01:Starting
20:14:37:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually
20:14:38:WU01:FS01:Starting
20:14:38:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually
20:15:38:WU01:FS01:Starting
20:15:38:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually
20:15:53:WU00:FS00:Connecting to 65.254.110.245:8080

Any idea what could be the issue?

Do you have nvidia-container-toolkit installed? What OS are you running? You'll need to restart the docker daemon after installing the toolkit. Check out this install guide I started for ubuntu: https://github.com/johnktims/folding-at-home/tree/gpu-integration#ubuntu-setup-guide

Yes, I have nvidia-container-toolkit version 1.0.5-1 and nvidia-container-runtime version 3.1.4-1.
I'm running Opensuse 15.1. I've got a GeForce GTX 1070 Ti. I'm running the G04 drivers. Let me try to install the G05 drivers and try again.

@ChristopherRabotin I pushed another container using nvidia/cuda:10.2 as the base image:  johnktims/folding-at-home:gpu-test-cuda-10.2. Does this one work for you? I haven't worked with GPUs very much so I don't completely understand how closely the versions on the host need to match what's in the containers. My EC2 seems to be fine with either version of the container.

Strange. I no longer get the "opencl" error as above, but I still get an error saying that my graphics card is not compatible. I tried upgrading my nvidia drivers, but that job broke everything strangely.
I'm probably going to do a fresh opensuse install in the coming days, so I'll test out both images again then.

FWIW, I created a new instance with ubuntu 18.04.1, pasted in the two sets of commands from https://github.com/johnktims/folding-at-home/tree/gpu-integration#ubuntu-setup-guide and had a working setup. I did notice that when I installed older drivers and upgraded them, I got errors about version mismatches in cuda. I made sure I uninstalled the old drivers but couldn't get the container to work after the upgrade. I started from scratch and it all worked.
I've successfully tested the container with GRID K520, K80, Tesla m60, and Tesla V100 GPUs.

Hey there! Thank you for implementing GPUs! You have a small typo in the readme though
--gpus=all
should be
--gpu=all
:)

@RemizZ according to https://docs.docker.com/engine/reference/commandline/run/#access-an-nvidia-gpu, —gpus is correct. Which version of docker are you using?
Which version of nvidia-docker-toolkit is installed?

... forget what I said. I had it after the image name, so it gave me an unknown attribute error. Sorry, new to docker. Now everything is working! Thanks!

I'm going to close this because I've had a few people report that the latest container is working for them. Let me know if you're still having issues and I'll reopen the ticket.

Other than that it is bringing my PC to its knees even on medium (which is weird, because it doesn't do it on native Windows 10) and the work units keep dying at 99,99% everythings fine :D Thanks!

By default, the work unit will be erased when you kill the container, but you can add -v"${PWD}/work:/home/folder" and the work units will be persisted to a folder on the host.

Oh ok! That should be the default though, shouldn't it? From my understanding when you get a work unit it's you job to finish it, so if you stop in the middle you will get a new one next time and the work unit will be blocked for 9 days. Right?

Good point. The example in the readme should be updated. I’ll try to update it soon, but feel free to open a PR if you want.

Hi John. I'm having the same issue, running a GTX 980 graphics card. I followed the Ubuntu setup guide for both installing Docker and the Nvidia drivers and toolkit. Terminal output below:
docker run --rm -it --gpus=all -p7396:7396 johnktims/folding-at-home:latest --user=Daniel_Giesbrecht --team=44851 --power=full
06:26:00:************************* Folding@home Client *************************
06:26:00:    Website: https://foldingathome.org/
06:26:00:  Copyright: (c) 2009-2018 foldingathome.org
06:26:00:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
06:26:00:       Args: --web-allow=0/0:7396 --allow=0/0:7396 --user=Daniel_Giesbrecht
06:26:00:             --team=44851 --power=full
06:26:00:     Config: <none>
06:26:00:******************************** Build ********************************
06:26:00:    Version: 7.5.1
06:26:00:       Date: May 11 2018
06:26:00:       Time: 19:59:04
06:26:00: Repository: Git
06:26:00:   Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
06:26:00:     Branch: master
06:26:00:   Compiler: GNU 6.3.0 20170516
06:26:00:    Options: -std=gnu++98 -O3 -funroll-loops
06:26:00:   Platform: linux2 4.14.0-3-amd64
06:26:00:       Bits: 64
06:26:00:       Mode: Release
06:26:00:******************************* System ********************************
06:26:00:        CPU: Intel(R) Pentium(R) CPU G4400 @ 3.30GHz
06:26:00:     CPU ID: GenuineIntel Family 6 Model 94 Stepping 3
06:26:00:       CPUs: 2
06:26:00:     Memory: 3.74GiB
06:26:00:Free Memory: 227.91MiB
06:26:00:    Threads: POSIX_THREADS
06:26:00: OS Version: 4.15
06:26:00:Has Battery: false
06:26:00: On Battery: false
06:26:00: UTC Offset: 0
06:26:00:        PID: 1
06:26:00:        CWD: /home/folder
06:26:00:         OS: Linux 4.15.0-91-generic x86_64
06:26:00:    OS Arch: AMD64
06:26:00:       GPUs: 0
06:26:00:       CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
06:26:00:             libcuda.so: cannot open shared object file: No such file or
06:26:00:             directory
06:26:00:     OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
06:26:00:             libOpenCL.so: cannot open shared object file: No such file or
06:26:00:             directory
06:26:00:***********************************************************************
06:26:00:<config>
06:26:00:  <!-- Folding Slots -->
06:26:00:</config>
06:26:00:Connecting to assign1.foldingathome.org:8080
06:26:00:Updated GPUs.txt
06:26:00:Read GPUs.txt
06:26:00:Trying to access database...
06:26:01:Successfully acquired database lock
06:26:01:FS00:Set client configured
06:26:01:Enabled folding slot 00: READY cpu:1
06:26:01:Enabled folding slot 01: READY gpu:0:GM204 [GeForce GTX 980] 4612
06:26:01:ERROR:No compute devices matched GPU #0 NVIDIA:5 GM204 [GeForce GTX 980] 4612.  You may need to update your graphics drivers.

06:26:00:     OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
06:26:00:             libOpenCL.so: cannot open shared object file: No such file or
06:26:00:             directory

@DanSGiesbrecht Can you try running docker pull johnktims/folding-at-home:latest to make sure you have the latest version of the latest tag? The lines I quoted above should not exist with the latest container.
For instance, when I run it on a mac mini that doesn't have an Nvidia gpu, I see
12:03:38:       CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
12:03:38:             libcuda.so: cannot open shared object file: No such file or
12:03:38:             directory
12:03:38:     OpenCL: Not detected: clGetPlatformIDs() returned -1001

@johnktims thank you so much - this fixed my issue... My bad.
Thank you again for the very quick and accurate response.

authors: ChristopherRabotin DanSGiesbrecht RemizZ dermidgen johnktims mcknly nibalizer

repo: johnktims/folding-at-home


text:
Could you support navigationdestination(item:destination:) ?

Hi.
I want to use your library but my app support iPhone and iPad.
I depend on navigationDestination(item:destination:) for screen transitions.
Could you support it ?
@State private var colorShown: Color?

NavigationSplitView {
    List {
        Button("Mint") { colorShown = .mint }
        Button("Pink") { colorShown = .pink }
        Button("Teal") { colorShown = .teal }
    }
    .nbNavigationDestination(item: $colorShown) { color in
        ColorDetail(color: color)
    }
} detail: {
    Text("Select a color")
}

I can achieve what I want to do by using the following approach.
extension View {
    func nbNavigationDestination<D: Hashable, C: View>(item: Binding<D?>, @ViewBuilder destination: @escaping (D) -> C) -> some View {
        nbNavigationDestination(
            isPresented: Binding(
                get: { item.wrappedValue != nil },
                set: { isActive, transaction in
                    if !isActive {
                        item.transaction(transaction).wrappedValue = nil
                    }
                }
            ),
            destination: { item.wrappedValue.map(destination) }
        )
    }
}

@Yoichi-Yamanoi san that seems like a great approach! I think you should open a PR with that addition 👍🏻

Thanks @simba909 !  I created PR so I would be happy if you could review it.

Your PR looks great! I can't approve it though as I'm not a collaborator of this repository. I'll leave approval / merging to @johnpatrickmorgan

Thanks @Yoichi-Yamanoi! The PR is now merged and this was shipped in v0.9.3.

repo: johnpatrickmorgan/NavigationBackport


text:
Documentation: Prefer Scope over ifCaseLet when all logic is mutually exclusive

While ifCaseLet, ifLet, and forEach modifiers are required when enhancing a reducer that can change a given case, optional, or collection, for mutually exclusive "switches," it's perfectly fine to use Scope with a case path and avoid the EmptyReducer clunkiness.

Ah I see, that's much better, thanks @stephencelis! I'll update the example code too.

authors: johnpatrickmorgan stephencelis

repo: johnpatrickmorgan/TCACoordinators


text:
can not recognize Built-in component  'Component ' in class-component vue file

change private to public

Duplicate of #997

authors: johnsoncodehk wxwzl xiaoxiangmoe

repo: johnsoncodehk/volar


text:
Issue connecting to Wunder Underground

this is my error message i receive
ERROR Exception type: <class 'list'>
2022-01-28 12:00:00 ERROR Error: <class 'AttributeError'>
Traceback (most recent call last):
File "/home/pi/pi_weather_station/./weather_station.py", line 239, in processing_loop
urllib.request.urlopen('http://weatherstation.wunderground.com/weatherstation/StationData.php?ID=StationID')
AttributeError: module 'urllib' has no attribute 'request'
not sure how to fix this.

A quick Google search gave me this:
https://stackoverflow.com/questions/37042152/python-3-5-1-urllib-has-no-attribute-request
My code is pretty old, perhaps things changed a bit in the library since I wrote it.

@thorpup did that help you? Please respond at least to let me know I can close the issue.

HI
I know this is old but im getting this  error and im useless at these things
Traceback (most recent call last):
File "/home/pi/pi_weather_station/weather_station.py", line 19, in
from urllib import urlencode
ImportError: cannot import name 'urlencode' from 'urllib' (/usr/lib/python3.9/urllib/init.py)

ok so not sure if im getting there but this is the last error im getting
STATION_ID = IINHAM16
NameError: name 'IINHAM16' is not defined

@JumboSwart69 the first error is due to the fact that the urlencode method or object (I'm not sure) export is not in the current version of urllib. Often library authors change things around, sometimes moving big chunks of code into a new library.
The second one means that you connected to the service, but the service couldn't find the Station you created. Double check the spelling of the STATION_ID constant in the config.py file.
If you still need help, start a new issue, don't add on to an existing issue.

authors: JumboSwart69 johnwargo thorpup

repo: johnwargo/pi-weather-station


text:
function name fixing

Fixes #1
Fixing function name and package structure.

Looking at the tests, I see you have this testing against Julia 1.0. I'd recommend making 1.6 (the LTS) the oldest-supported release, as 1.0 is just painful to support. Change the following:

in Project.toml, change [compat] julia = "1" to julia = "1.6".
in .github/workflows/CI.yml, change version:    - '1.0' to '1.6'.

After checking the usage of imsz. I decide to restructure InitialParam and function inputs arguments.

Ah, from the CI failure it looks like Julia 1.6 doesn't support the (; x, y, z) = somestruct syntax. I think that's a minimum of Julia 1.7. Do whatever you like, but I'd say requiring 1.7 would be fine. (Julia 1.10 is out now and will likely become the next LTS, so alternatively you could just require 1.10.)

You could also delete nightly from CI.yml, in general I don't see a good reason to test against nightly.


text:
Neues Template: Rettungshund

Suchen und orten mit Rettungshunden

Danke für das Feedback! Werde ich so versuchen umzusetzen.
Waren meine ersten Gehversuche mit Inkscape und Vektorgrafiken ;)
Die Beschreibung stammt aus dem offiziellen Guide vom BBK

Am einfachsten geht es ohne Inkscape ;) einfach mit einem Texteditor die
SVG Datei bearbeiten.
Christoph notifications@github.com schrieb am Fr., 15. Dez. 2017, 21:28:

Danke für das Feedback! Werde ich so versuchen umzusetzen.
Waren meine ersten Gehversuche mit Inkscape und Vektorgrafiken ;)
Die Beschreibung stammt aus dem offiziellen Guide vom BBK
https://www.bbk.bund.de/SharedDocs/Downloads/BBK/DE/Publikationen/Broschueren_Flyer/Empfehlungen_Takt_Zeichen_im_BevSch.pdf?__blob=publicationFile
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jonas-koeritz/Taktische-Zeichen/pull/31#issuecomment-352103956,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGL1i1gx378W7QNaKk1hJR6l9RkLxus1ks5tAtZggaJpZM4RDxCH
.

So, habe die SVG jetzt optimiert und auch noch einmal das "Hinterbein" vom Hund auf die gleiche Höhe angepasst wie das "Vorderbein"

Ich habe das ganze nochmal überarbeit und die Abmessungen gerade gezogen.
Sonst kannst du gerne nochmal versuchen das besser zu machen, für meine Zwecke passt es so.

authors: Siedlerchr jonas-koeritz

repo: jonas-koeritz/Taktische-Zeichen


text:
🛑 Alpine-mirror is down

In 1b436a5, Alpine-mirror (https://alpine.jonasled.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Alpine-mirror is back up in b5d9d00.

repo: jonasled/status


text:
🛑 APT-Mirror is down

In 58dd2cd, APT-Mirror (https://apt.jonasled.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: APT-Mirror is back up in afba939.


text:
🎇 Particle effects trigger client-side warnings in admin panel

This might not be avoidable... touching base with Shavick about it to see what he thinks.

Shavick explained that perhaps the only way to avoid this would be to apply particle effects to each part of the body... this could add overhead simply to avoid a warning that seems benign, but perhaps this would avoid problems we're unaware of that might be happening behind the scenes.

I've reduced the particle effects trigger down to this (confirmed all else is unnecessary):
<triggered_effect trigger="onSelfBuffStart" action="AttachParticleEffectToEntity" particle="RadiatedParticlesOnMesh" shape_mesh="true" />

Seems to be no way around this. Targeting a body part that the player does have results in even more warnings and the effect changing.

repo: jonathan-robertson/quantum-elevators


text:
Fixing bug with default message in get_input()

Following code stopped working after last commit introducing get_prompt_tokens in create_default_layout:
from prompt_toolkit.shortcuts import get_input

if __name__ == '__main__':
    answer = get_input()
    print('You said: %s' % answer)

Because when message is empty ('') then code assumes that there is get_prompt_tokens function, which is not always true.
This is a very simple fix for this issue.

Thank you @anula!
This was my fault, thanks for fixing it!
It merged your pull request: https://github.com/jonathanslenders/python-prompt-toolkit/commit/4dfa286194a503339709e5e33d557bf82f410e9c
Cheers,
Jonathan

authors: anula jonathanslenders

repo: jonathanslenders/python-prompt-toolkit


text:
Gettin parent name of menu/menu_item

I am trying to to create a menu where the renderer will also display the parent item name on the current item. For example, think of this structure:
Main Menu
- Item 1
-- Item A
-- Item B
- Item 2
- Item 3

So, when browsing the menu, you will get something like this:
Line 1: Main Menu
Line 2: Item1

Or this:
Line 1: Item 1
Line 2: Item A

This is my current (and early) implementation of a renderer:
class Renderer : public MenuComponentRenderer {
public:
    void render(Menu const& menu) const {
        oled.clearDisplay();
        menu.get_current_component()->render(*this);
    }

    void render_menu_item(MenuItem const& menu_item) const {
        oled.setTextSize(1);
        oled.setTextColor(WHITE);
        oled.setCursor(0,0);
        oled.println("Menu Item");
        oled.setTextSize(2);
        oled.setTextColor(WHITE);
        oled.setCursor(0,17);
        oled.println(menu_item.get_name());
        oled.display();
    }

    void render_back_menu_item(BackMenuItem const& menu_item) const {}

    void render_numeric_menu_item(NumericMenuItem const& menu_item) const {}

    void render_menu(Menu const& menu) const {
        oled.setTextSize(1);
        oled.setTextColor(WHITE);
        oled.setCursor(0,0);
        oled.println("Render menu");
        oled.setTextSize(2);
        oled.setTextColor(WHITE);
        oled.setCursor(0,17);
        oled.print(menu.get_name());
        oled.display();
    }
};
Renderer menu_render;

I can see there are methods like get_parent(), but I am not sure of how to implement them. Can you please point me to the right direction? I am quite new to arduino programming...

Given your menu structure above, when the current menu is the root "Main Menu", the first line displays "Main Menu" and the second line allows you to scroll through the components in that menu. Is that what you mean?
When you call MenuSystem::display it will call Renderer::render with the current menu (in this case "Main Menu"). If you first display the menu's name in that render method before rendering it's current component, that should do the trick:
class Renderer : public MenuComponentRenderer {
public:
    void render(Menu const& menu) const {
        oled.clearDisplay();
        // code to output menu.get_name() to line 1 here
        menu.get_current_component()->render(*this); // <-- this will trigger rendering for the current item
    }

    // Code omitted. Each menu component render function should output to line 2
};

I hope that makes sense. If you have any questions (or it doesn't work) please let me know.

You are right... the answer was in front of me... but what happens with the root menu? I am using a declaration like below for the menu, and the menu.get_name() comes up empty when I navigate the level 0 (Item 1,2, etc)
Here is a sample of my menu definitions:
MenuSystem ms(menu_render);
Menu mm("Main Menu");
MenuItem mi_i1("Item 1", &on_menu_item1);
MenuItem mi_i2("Item 2", &on_menu_item2);
Menu mi_i3("Item 3");
MenuItem mi_i3_a("Item A", &on_menu_i3a);
MenuItem mi_i3_b("Item B", &on_menu_i3b);

The MenuSystem class creates the top-level root menu for you, and it's name is an empty string, so internally your menu structure above looks like the following:
* "" // this is created automatically
  * main menu
    * Item 1
    * Item 2
    * Item 3
      * Item A
      * Item B

This assumes you're using MenuSystem::get_root_menu().add_xxx to connect your MenuComponent instances to MenuSystem.
In previous version of this library the client would create the root manually and pass it in the MenuSystem constructor. I changed it to create it automatically because it was never displayed (or so I thought) and therefore felt awkward to create.
So that's the why. The next thing is how do we solve your problem. Great question! :smile:
I still think it's a good idea for MenuSystem to create the root Menu. The problem is that it assumes it won't be displayed and sets its name to an empty string. I think the best solution is to add an optional char* root_name parameter to the MenuSystem constructor for setting the name of the root Menu.
I'm open to other suggestions if you have them.

Well, one way could be to see add back the ability to set the root menu, along with a name, like v2.1. If the user has defined one, use it. Otherwise, create the root menu automatically, like in v3.0.
For now, I just modified the render method to check if the menu name is empty and display a pre-defined string if it is. Not too hacky, and is the simplest solution I could find, without modifying the library...

I prefer the current implementation where the root is created for you. I'll add an extra, optional parameter for setting the name.

Hi, I am facing the same issue, was an update posted with the option to setting the root name?
Thank you!

authors: gnikolopoulos jonblack pserotta

repo: jonblack/arduino-menusystem


text:
Department Parsing

Currently the position model is not accurately determining what the correct department abbreviation is. An entry of computer science information returns iSchool. Should this be happening? Or should everything be included in the abbreviation (e.g. CS iSchool)

Can you provide more information about this? Maybe some screenshots?
Also, I see that @ShivenBhatt added a pull request tag, what's the pull request number?

The pull request number is #397. While doing unit tests on the website, we found this bug, and the video title generation bug (#392). Both are fixed in #397.

Thanks. Just reviewed and asked for changes.
Also, that PR description is inadequate. It should say exactly what is
being fixed in the PR.
On Fri, Jul 20, 2018 at 6:00 AM, ShivenBhatt notifications@github.com
wrote:

The pull request number is #397
https://github.com/jonfroehlich/makeabilitylabwebsite/pull/397. While
doing unit tests on the website, we found this bug, and the video title
generation bug (#392
https://github.com/jonfroehlich/makeabilitylabwebsite/issues/392). Both
are fixed in #397
https://github.com/jonfroehlich/makeabilitylabwebsite/pull/397.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jonfroehlich/makeabilitylabwebsite/issues/394#issuecomment-406593685,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABi-9W4AwFjLGn-8XVT4mLYOfuWDx_aQks5uIdR3gaJpZM4U8JGz
.

--
Jon Froehlich
Associate Professor
Paul G. Allen School of Computer Science & Engineering
University of Washington
http://www.cs.umd.edu/~jonf/
http://makeabilitylab.io
@jonfroehlich https://twitter.com/jonfroehlich - Twitter

Duh oh. Sorry about that PR. It really was terrible.
Another problem: I wrote that PR a really long time ago, and now there are a ton of merge conflicts. I think it might be better if I make a new PR and branch off of master with these changes (since they're not that big).

Ok. Why don’t you create Issues for the problems you found (and tried to fix) so there’s a record and then close the PR. We’ll loop back around later.
I’d rather you work on your other assigned Issues for now.
Sent from my iPhone

On Jul 20, 2018, at 6:39 AM, ShivenBhatt notifications@github.com wrote:
Duh oh. Sorry about that PR. It really was terrible.
Another problem: I wrote that PR a really long time ago, and now there are a ton of merge conflicts. I think it might be better if I make a new PR and branch off of master with these changes (since they're not that big).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

The issues are already here: #392, #394. I'll close the PR.

@jonfroehlich, this is fixed in #511

authors: ShivenBhatt johnsonkuang jonfroehlich

repo: jonfroehlich/makeabilitylabwebsite