text:
Namespace: lyrics_bow

Implements #81

I think this one's ready for CR; @ejhumphrey?

:dash: anyone?  @justinsalamon ?

sorry no cycles right now, maybe in a month (seriously)

sorry no cycles right now, maybe in a month (seriously)

I did say "maybe" :P
Seriously though, no cycles right now, sorry.

This is how open source dies. :cry:

Thanks @stefan-balke!

authors: bmcfee justinsalamon


text:
contextual information on searches: command nvda + f3 does not work

Hi,
This issue may caused by NVDA 2021.1 addon API compatibility breaking.

NVDA what's new: Note: this is an Add-on API compatibility breaking release. Add-ons will need to be re-tested and have their manifest updated.

Steps to reproduce:

Press NVDA+control+f to find string.
Press enter to search.
press NVDA+f3 to find next

Actual behavior:
NVDA no response.
Expected behavior:
Find next works as expected.
System configuration
NVDA installed/portable/running from source:
portable
NVDA version:
2021.1rc2
Windows version:
Windows 10 20H2 (10.0.19042)
add-on version:
Enhanced Find Dialog 1.1.0 addon
Other questions
Does the issue still occur after restarting your computer?
Yes.
If add-ons are disabled, is your problem still occurring?
No.
log message:
Input: kb(laptop):NVDA+f3
ERROR - scriptHandler.executeScript (02:27:47.491) - MainThread (5488):
error executing script: <bound method script_enhancedFindNext of <virtualBuffers.gecko_ia2.Gecko_ia2 object at 0x044E60F0>> with gesture 'NVDA+f3'
Traceback (most recent call last):
  File "scriptHandler.pyc", line 208, in executeScript
  File "C:\Users\surfer0627\Downloads\NVDA 2021.1\userConfig\addons\EnhancedFindDialog\globalPlugins\EnhancedFindDialog\cursorManagerHelper.py", line 72, in script_enhancedFindNext
    self.doFindText(self._searchEntries[SEARCH_HISTORY_MOST_RECENT_INDEX], caseSensitive = self._lastCaseSensitivity, searchWrap = self._searchWrap)
  File "C:\Users\surfer0627\Downloads\NVDA 2021.1\userConfig\addons\EnhancedFindDialog\globalPlugins\EnhancedFindDialog\cursorManagerHelper.py", line 92, in doFindText
    speech.speakTextInfo(info,reason=controlTypes.REASON_CARET)
AttributeError: module 'controlTypes' has no attribute 'REASON_CARET'
IO - inputCore.executeGesture (02:27:48.968) - winInputHook (11780):

Thank you for your help and investergating this issue.

Hello, this has now been fixed.
You can find the download at the repository main page.
Thanks,
Marlon

@marlon-sousa: Thank you for your work.

source: gharchive/issue

repo: marlon-sousa/EnhancedFindDialog

license: MIT

license_type: permissive

license_source: github-api


text:
options={{ fullWidth: true}} not working in 'next'

This is not working:
             options={{
               fullWidth: true,
             }}

What you were expecting:
Full Width
What happened instead:
Not Full Width:

Steps to reproduce:
Related code:
  <TextInput label="EMAIL" source="email" type="email"
             options={{
               fullWidth: true,
             }}
             validate={email}
  />

Environment

Admin-on-rest version:  'next'
Last version that did not exhibit the issue (if applicable):   'master'

Reason:

It appears this was a change in next.
We need to add fullWidth as boolean prop:
  <TextInput label="EMAIL" source="email" type="email"
             fullWidth
             validate={email}
  />

Closing, not a bug.

repo: marmelab/admin-on-rest

license: mit

license_source: bigquery


text:
[BUG] Incorrect display of the percentage of translation in the Ukrainian language

Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have tested that this issue has not been fixed in the latest (beta or stable) release.
[X] I have checked the FAQ section for solutions
[X] This issue is about a bug (if it is not, please use the correct template)

Describe your issue
Again, incorrect display of the percentage of translation in the Ukrainian language.
Steps to reproduce the issue
No response
WingetUI Log
-

Package Managers Logs
-

Relevant information
No response
Screenshots and videos

did this happen before?

did this happen before? I was not aware of it

Yes, there was a very similar situation before, #1101, and you fixed it. In the English and Ukrainian translations, the completion percentage was different. Now it's essentially the same, just with a different percentage. The actual translation into Ukrainian according to the GitHub page and the English version of the program is 96%. If you look at the Ukrainian version of the application, when the Ukrainian translation is directly engaged, as you could see in the screenshot, it's for some reason 4% displayed. From what I can to guess, the 4% might have come from the difference between 100%, which is the full translation, and the actual Ukrainian translation at 96%. I don't know any other reason why the 4% figure might be appearing.

I see the issue now. It reports properly unless the UI is in Ukranian

I see the issue now. It reports properly unless the UI itself shows in Ukranian

Yes, the issue only occurs when the Ukrainian language is directly used for the interface. This is not critical at all, but similar issues might be present in other translations, which I haven't checked, so I decided to report it to keep you informed.

repo: marticliment/WingetUI


text:
Sensus rapporten ser inte bra ut i alla webläsare

Sensus listorna funkar bäst i chrome. Men med Firefox så går den sönder vid utskrift. I Internet Explorer 11 är den helt trasig. Jag har inte provat safari på mac, eller iphone.
@benganellison; är det något du kan titta på?

Jag ligger utslagen i hög feber, men det är klart jag kan titta på detta när jag frisknat till. Borde inte vara en så svår grej

Kan jag få en skärmdump så jag kan börja tänka på det utan dator?

Fungerar bra i Safari på iPhone. Fungerar inte bra i vaeken Edge elelr INternet Explorer på dator, Win10.

Sensus_i_IE.pdf

Sensus_i_Edge.pdf

Så här ser det ut i Edge. Det är flex-layouten som krånglar. Jag kan lägga lite tid på att se om man kan lägga till något i stylingen som gör att det fungerar i Edge.

Vore toppen om du kunde kolla på det. Här är mallfilen:
https://github.com/martin-green/skojjt/blob/master/templates/sensusnarvaro.html

Nepp, jag kan flex-layout för dåligt. :-(
Det verkar som att flex i en tabell funkar dåligt i Edge. flex-support i IE 10 och 11 är tydligen väldigt buggig.
Varför har man display: flex i varje rad i tabellen?
Det enda jag hittat var att du varit lite inkonsekvent med klasserna i de första tre kolumnerna i de första tre raderna i tabellen. PersonalId och sex saknades i några. Men det gör inte någon skillnad.

flex var det enda som jag lyckades använda för att få till lika breda kolumner

@martin-green  ser att du ändrat alla ID till classer så det tar lite längre tid för mig att merga mina ändringar men håller på

Tack @benganellison, nu det ser bra ut i Edge!
Men IE11 är bara lite bättre. Den verkar inte hantera flex så bra. Kanske inte värt besväret att försöka fixa det.

Kan du se hur stor andel som använder IE?

Jag kan inte köra igång lokal debugging, men har pillat med stylingen i en lokal fil.
Har förenklat layouten i tabellen och får det att aligna riktigt snyggt.
Men, de rundade hörnen försvann i Chrome.
Sensus Närvarolista_kort_new.zip

Nu kallar familjen igen...

Japp, där kom det en PR.
Jag har testat styling med den attachade filen.
Templaten är ändrad enligt samma mönster, men ej testad med data.
Sensus Närvarolista_kort_new.zip

Behövdes inte de övriga tre fälten som finns i pdfen? De var en av orsakerna som jag gjorde layouten så som jag gjorde

@benganellison Jag såg inte Kvinna/ej godkänd/återanmälan i chrome, så jag antog att det var fält som inte användes. @martin-green Var det fält som skulle användas? De populerades inte i python-koden.
Underskrift av ansvarig på finns kvar, det var bara det att det inte var med i min minimala html som jag använde för att fixa css:en.

authors: MagnusCalen benganellison martin-green stefer

repo: martin-green/skojjt


text:
Configuration for enabling summaries and/or histograms

Is your feature request related to a problem? Please describe.
I was wondering about the metrics for response time and upstream time. There is for each both a summary and a histogram. The information collected in the summary is also contained in the histogram (sum and count). So there are two redundant time series for each combination of labels - at least that is my conclusion - let me know if I'm missing something.
Describe the solution you'd like
To keep backwards compatibility I guess the best solution would be to make it configurable, if summaries and/or histograms are collected. Then it would be up to the user to choose whether they want a summary or a histogram or even both (which would be the default behavior for backwards compatibility).
Describe alternatives you've considered

To just get rid of the redundancy, the summaries could also just be removed. This would however not be backwards compatible (but probably what I would do on a fork if the first option is not implemented, given my lack of Go expertise).
A backwards compatible way would be to add a configuration option to just disable the summary

Yes, both histograms and summaries expose a sum and count metric that are indeed redundant. However, they do each export different metrics on top of those (a summary exports a set of streaming quantiles, whereas a histogram exports bucketed counts; see the documentation for more information on the distinction).
So I definitely see a use case for providing both metrics. Calculating both of them in the exporter does not make much of a difference in terms of resource consumption (unverified assumption, but I'm fairly confident), and if you really don't want them, you can always drop metrics at scrape time:
   metric_relabel_configs:
   - source_labels: [ __name__ ]
     regex: 'undesired_metric_name'
     action: drop

For the time being, I'd prefer leaving this as-is. Feel free to let me know your thoughts on this, though.

I can see your point, I just wondered why both are there right now.
For the summary to produce the quantiles they need to be configured, which is not the case yet. Even if that was done I don't think that it would be a common use case to have a summary and a histogram at the same time, but as you say metrics can be skipped when scraped. Though as the documentation states "Observations are expensive due to the streaming quantile calculation.", so having the quantile calculation optional would make sense if that would ever be introduced.
Generally I think for the metrics on HTTP requests that are produced here, the histogram is clearly the favorite, as it allows you to aggregate time series and use a flexible sliding time-window for calculating quantiles (even if those may be less accurate than the ones the summary can produce) - but maybe that's also just the use cases I have in mind.

authors: martin-helmich stempler


text:
Add Gemfile.lock to .gitignore.

I want to add Gemfile.lock to gitignore, because I want to avoid "modified file" depends on contributer's local environment.
Also rack is doing this.
https://github.com/rack/rack/blob/2.0.1/.gitignore#L8

I passed the test by myself.

source: gharchive/pull-request


text:
no GetProcessId from mingw

MinGW's Win32 doesn't support GetProcessId.

According to this, it depends on the Windows version:
http://lists-archives.com/mingw-users/05842-undefined-reference-to-getprocessid.html
Maybe we should just set the appropriate defines?

-D_WIN32_WINNT=0x0502 -DWINVER=0x0502 would be the appropriate values I think (XP w/ recent service pack). Maybe you could try updating the build to include that on mingw, syntheticpp?

I did a patch 6be76e56b74 in past November regarding this issue. The work around was to use GetCurrentProcessId() which is more supported (I mean before WinXP). According to "git grep GetProcessId" we use it in only on place. Maybe we could work around this issue by using GetCurrentProcessId() again if possible.

Seems I found different google entries, but yes, defining -D_WIN32_WINNT=0x0501  is better and solves the problem.
Updated the branch:
Also configure.py now supports mingw on Windows, but bootstrapping is missing.
Need to pass a argument to bootstrap, or checking a env var in the script.

0x501 means Windows Server 2003, Windows XP or higher:
http://msdn.microsoft.com/en-us/library/aa383745

Sure it works. I was just hoping to be able to keep ninja working on version of Windows before XP like 2000. But that's not a big deal.

authors: martine polrop sgraham syntheticpp

repo: martine/ninja


text:
Compiling error - "does not name a type"

Hey there,
trying to use the examples provided by the homie-esp8266 lib. This is what i get when im trying to upload the sketch. What am I doing wrong?
Arduino: 1.6.9 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

In file included from /Users/Tom/Documents/Arduino/libraries/homie-esp8266-master/src/Homie.hpp:11:0,
                 from /Users/Tom/Documents/Arduino/libraries/homie-esp8266-master/src/Homie.h:4,
                 from /Users/Tom/Documents/Arduino/libraries/homie-esp8266-master/examples/LightOnOff/LightOnOff.ino:1:
/Users/Tom/Documents/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootNormal.hpp:33:7: error: 'WiFiEventHandler' does not name a type
       WiFiEventHandler _wifiGotIpHandler;
       ^
/Users/Tom/Documents/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootNormal.hpp:34:7: error: 'WiFiEventHandler' does not name a type
       WiFiEventHandler _wifiDisconnectedHandler;
       ^
/Users/Tom/Documents/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootNormal.hpp:49:31: error: 'WiFiEventStationModeGotIP' does not name a type
       void _onWifiGotIp(const WiFiEventStationModeGotIP& event);
                               ^
/Users/Tom/Documents/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootNormal.hpp:49:58: error: ISO C++ forbids declaration of 'event' with no type [-fpermissive]
       void _onWifiGotIp(const WiFiEventStationModeGotIP& event);
                                                          ^
/Users/Tom/Documents/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootNormal.hpp:50:38: error: 'WiFiEventStationModeDisconnected' does not name a type
       void _onWifiDisconnected(const WiFiEventStationModeDisconnected& event);
                                      ^
/Users/Tom/Documents/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootNormal.hpp:50:72: error: ISO C++ forbids declaration of 'event' with no type [-fpermissive]
       void _onWifiDisconnected(const WiFiEventStationModeDisconnected& event);
                                                                        ^
exit status 1
Fehler beim Kompilieren für das Board NodeMCU 1.0 (ESP-12E Module).

Download the releases, not the git development version. Also, use the documentation contained inside the docs/ folder of the release you downloaded.

Just in case someone is interested in hacking on the latest git version and faces similar problems, here's what I did with my platformio project:

update platformio
 sudo pip install -U platformio
 platformio update

install the dependencies
 platformio lib install 64    # Json
 platformio lib install 1106  # Bounce2
 platformio lib install 346   # AsyncMqttClient

get the latest Homie git version
 git clone https://github.com/marvinroger/homie-esp8266.git lib/homie-esp8266

clean up the project and compile it
 platformio run -t clean
 platformio run

Thanks @MaxChinni :)

authors: MaxChinni atschuni marvinroger


text:
interact dependency -- wrong path

When I do a fresh install of the fork, I'm seeing an error when starting my Ember app. The error states that it cannot find interact/dist/interact.js in bower_components. It looks to be because bower.json is referencing unstable as the version.
I'll submit a PR.

@marzubov you pointed out that the unstable branch is needed -- just need to figure out a way to make it work for install.

repo: marzubov/ember-calendar


text:
Change the syntax of traits from 'is foo(val)' to '@Foo(val)', and let them precede the thing they annotate

Following Python and Java's lead. Even TypeScript and ES.next, and (modulo a slight difference in syntax) C#.
Not sure I can fully motivate why I want to make this change, but (a) it feels a little bit more robust in some way, and (b) it's becoming clear that we can have use for traits on a number of things besides subs/macros:

Classes
Class properties

An example of the former: @Abstract; instead of making it a keyword. An example of the latter: @Readonly. Maybe @Lazy too.

It just struck me that one issue with this change is that it delays how soon we can know which type of statement (or class member, etc) we're parsing. Basically, it goes against the grain of Perl 6's idea of having a "declarative prefix" in each rule after which you know what rule you're parsing.

On second thought, it's not quite that hopeless. If we parse traits alongside statements in the statementlist rule, it works out fine. Have to mark up some Qtypes as "traitable" (maybe with... a trait?) and check for that, though.

I can't find it right now, but somewhere I had quite a complicated is parsed that actually used the parameters of the macro for something. (I think it was to do with declarations and scopes.) I'll link it here if I find it.
Anyway, that'd be problematic if we reverse the order of traits and parameters. At least, we'd have to find some other way to achieve the same effect.
I'd like to find that is parsed example again so I can mull over how to solve that with traits sitting on top.

Another small argument in favor of this syntax change: I find it somewhat easier to read this syntax:
foo(@Defined param) {}

Than this syntax:
foo(param is defined) {}

Working on this in a branch. Realizing we'll probably need an issue where we also nail down the semantics of decorators.
They're interesting beasts. The ones for precedence and associativity will be driving in this, and they are mostly "metadata decorators" in the sense that they want to end up being attached to the declaration somehow, so that the parser can query them when it needs the information. There are more "business rules" connected to them than I remembered, for example (but not exhaustive):

Can't have multiple prec decorators, or multiple assoc decorators.
Can't have an assoc decorator if the prec decorator used is equiv.

It's an interesting question how much of that needs to be code, and how much can be captured declaratively somehow in the declaration of the decorators themselves.

Simple question: how should the Qtree look for statements with decorators? (Hint: I don't know.)

It's an interesting question how much of that needs to be code, and how much can be captured declaratively somehow in the declaration of the decorators themselves.

I think the former can be easily captured using a @unique decorator, or some such. (And it makes sense to me to do so.) Yay, decorators on decorators — that means we're just as cool as Java, does it not?
The latter sounds like a "business rule" to me, and should most likely be handled by whatever thing consumes those parser-targeting decorators. (That is, they should be handled by the parser.)
By the way, the solution I've struck upon with the 007 parser in Perl 6 is to carry that information from where the decorators are parsed to where the statement they're decorating is parsed, by using a dynamic variable. This, in some sense, feels like a sane solution. I could also imagine it being handled by using some sort of "parser state" — as long as the stack-like aspect of it all is still captured. (A previous comment hints at decorators occurring inside decorators via declarations. The dynamic variable handles this well, by storing its data essentially "in the call stack". A "parser state" solution would need to handle it as well.)
In passing, I note that I'm suddenly writing decorators with lowerCamelCase, like in Python, not with UpperCamelCase, like in Java. I have no idea why.

Decorators can be

Functions, in which case they act on the runtime value as it's created at runtime.
Macros, in which case they act on the code structure as it's parsed at compile time.
Enum values, in which case they act as "marker decorators", and can be queried (in some unspecified way) by asking for all instances of a particular decorator on a declaration site.


text:
Reach Hacker News completeness

The ROADMAP is pretty good at laying out 007's short- and long-term goals. But I just realized there's an in-between goal post that we might call "Hacker News completeness".
When we showed 007 to HN back in 2015, the reaction of one commenter was "no unquote?!". Frankly I understand that reaction — 007 is sort of "the unquote language", in that unquotes set it apart from most other languages, and if they're not in place, 007 is all the worse for it.
So let's define "Hacker News completeness" as the small handful of pre-v1.0 things that would allow us to show 007 on Hacker News without getting a disappointed reaction akin to "no unquote?!". 😄
Here's my list:

macro infix:<ff> merged into master. (#207). Currently waiting on displacing macro arguments. (Update: Concrete plan here.)
Unquotes. (#30). I mean, we have unquotes, but the reason that issue hasn't closed yet is that unquotes dug up some deep parser difficulties (described here) that I believe #293 will fix. I expect #293 to be a big undertaking, but it could also be angled so that we get promising feedback on it early.
The Quasis Are Lambdas paradigm. I realized we didn't have a dedicated issue for it, so I just created #334 with links and explanation. This is related to #30, but could in principle be done before and independently.
Good documentation/tutorial, specifically #67 and #295. I've started writing the text in this gist. (Update: Now launched.) It's a promising start, but there's ways to go yet. This goal is "soft" in the sense that it's "only" documentation; but I think it will make a big difference in practice for people seeing the language for the first time. And it's needed for v1.0 anyway.

I'd like to make this a goal for this summer. I think that's achievable.
"c'mon!" 😉

a goal for this summer

Heh. Reminds me of the Douglas Adams quote about deadlines. 😛
Anyway. Since I've created this issue we've actually progressed on all four identified fronts, in small modest ways. So that's something, I guess.


text:
Configuration details，After submitting the textbox data, the page switches to a table

Properties格式的配置对象，在文本tab下编辑完成后，自动变为表格，应停留在文本框；

自动跳转至表格tab


text:
🛑 POH events bot from render hosting is down

In 56ba748, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in 3578cb6 after 11 minutes.

repo: masch/poh-events-uptime


text:
🛑 POH events bot from render hosting is down

In f19e5a2, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in e251286 after 11 minutes.


text:
🛑 POH events bot from render hosting is down

In 61989e1, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in 5907f61.


text:
feat: 방 카테고리 CRUD 기능 구현

이슈
for #28
변경 사항

api 추가

스크린샷

부연 설명

해커톤 중

체크리스트

[x] Lint 적용 여부
[x] 빌드 성공 여부
[x] PR 제목은 포맷과 내용 둘 다 알맞게 작성되었는가
[x] PR에 대해 구체적으로 설명이 되어있는가

출격준비


text:
Error "Xamarin.Forms targets have been imported multiple times.  Please check your project file and remove the duplicate import(s)."

Adding Nuget at solution level results in "Xamarin.Forms targets have been imported multiple times.  Please check your project file and remove the duplicate import(s)." error, cannot build.

Can you please upload a sample repo so i can test on?

Can you please upload a sample repo so i can test on?

Can't do that.  I am trying it on my work project which consists of Droid, iOS, UWP head projects and then few .NET Standard 2.0 projects.  Cant add the Nuget to any .NET Standard 2.0 projects at all.  If I try I see
Detected package downgrade: Xamarin.Forms 3.2.0.871581 to 3.1.0.583944 ...
then evenually
All packages and projects are compatible with .NETStandard, Version-v2.0.
Package restore failed.  Rolling back package changes for "My Project"

Can you please upload a sample repo so i can test on?

Can't do that. I am trying it on my work project which consists of Droid, iOS, UWP head projects and then few .NET Standard 2.0 projects. Cant add the Nuget to any .NET Standard 2.0 projects at all. If I try I see
Detected package downgrade: Xamarin.Forms 3.2.0.871581 to 3.1.0.583944 ...
then evenually
All packages and projects are compatible with .NETStandard, Version-v2.0.
Package restore failed.  Rolling back package changes for "My Project"

The package was built under Xamarin.Forms version 3.2.0.871581, It's not compatible to any version below that. If you are not able to upgrade your xamarin.forms version, you are welcome to grab the code and put it in your project manually

@masonyc  can you lower the Xamarin.Forms to 3.0

@tmt242001 I have downgrade it to xamarin forms 3.0, @dinobu it should work for you now if you using the v1.0.2 package

@tmt242001 I have downgrade it to xamarin forms 3.0, @dinobu it should work for you now if you using the v1.0.2 package

I was able now to add v1.02 but as soon as I do that, my Android project throws the error I described above in this issue

@dinobu did you deleted bin and obj folders before adding the reference.

No, I have not.  bin and obj folders in Android platform proj?

@dinobu delete all the bin and obj in all projects.

Deleted all bin and obj folders in all projects, closed solution, restarted VS4Mac, reloaded solution, right-click on solution > Build, same error in my Droid project

Can you try build our nuget sample project? 2. Can you build your droid project without this package?

I can build my project without any issues without your package.  As soon as I add your package, I started getting this error.
I tried first adding it to just my Android, iOS, and my Core project which contains all the views and I got the error.
Then I added it to all my projects, still have the error
I checked all my proj files and found in one of the droid projects that I have Xamarin.Forms targets and Xamarin.forms props pairs for both 3.0.0446417 and 3.1.0.583944
I tried removing each pair to try both versions.  As all of other of my projects are using 3.1.0.583944, removing that resulted in XF002 error (different types of XF framework found).  So I removed 3.0.0446417 pair to have all project reference the 3.1.0.583944 version and I am back to XF001 error again.  I tried restarting IDE, reloading project, cleaning it, rebuilding it on project and solution level, always same issue, it complains about XF001 error

@dinobu https://dvlup.com/2018/10/01/error-xf001-xamarin-forms-targets-have-been-imported-multiple-times/ can you please have a try on the above link?

@dinobu https://dvlup.com/2018/10/01/error-xf001-xamarin-forms-targets-have-been-imported-multiple-times/ can you please have a try on the above link?

My project has no  project_name.nuget.props and project_name.nuget.targets files.
What I see are
project_name.nuget.g.props
project_name.nuget.g.targets
project_name.nuget.cache
project_name.nuget.stamp

, so not sure how reliable is that article

@dinobu Is there possibility, for you to send us your solution, so we can try to fix it for you ?

@dinobu Is there possibility, for you to send us your solution, so we can try to fix it for you ?

Cannot do that.  I also tried same on Windows, and still having issue with Android project, same XF001

@dinobu  this does not seems to be a error related to this package.

@dinobu try https://lastexitcode.com/blog/2018/03/10/NuGetSupportInVisualStudioMac7-4/

@dinobu Is there possibility, for you to send us your solution, so we can try to fix it for you ?

Would you be open to share screen on hangouts to show you?
I think what is happening is that projects have dependencies.  So we have a Droid head project, then another Droid project that is used by this head project, let's call it 2Droid.
So, the structure is like this
Droid
2Droid
Netstadard1
Netstandard2
....
That is how projects look like.   On a fresh clone, my 2Droid project has XF 3.1.0.583944 props and targets.  However, after adding lib, my 2Droid proj gets also imported XF 3.0.0.446417 which is your minimal required version.  As a reslult, I end up with 2 XF imports in 2Droid proj file.
This results in XF001 error.
I tried removing one or the other XF inport, but his would then result in XF002 error

It's Saturday here. We'll do this next Monday

It's Saturday here. We'll do this next Monday

OK, sounds good.  Here is what I found, below is the screenshot of how my DroidProj and 2DroidProj look like BEFORE and AFTER adding EnableKeyboardEffect package.  I think this shows what happens, notice how AFTER it got added, how it modified 2nd Droid proj file

@dinobu you droid project is not converted to PackageReference(s). please convert all you platform projects to PackageReference(s). It should fix your issue.
https://docs.microsoft.com/en-us/nuget/reference/migrate-packages-config-to-package-reference
https://blog.nuget.org/20180409/migrate-packages-config-to-package-reference.html
https://marketplace.visualstudio.com/items?itemName=CloudNimble.NuGetPackageReferenceUpgrader

authors: dinobu masonyc tmt242001


text:
https connection with thyra doesn't work

We have a certificate issue when we try to connect to thyra.
Error displayed:
Thyra nodes retrieval error Axios Error: Error: unable to verify the first certificate
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Axios Error: Error: unable to verify the first certificate".] {
code: 'ERR_UNHANDLED_REJECTION'
}

doesn't appear to be true anymore

repo: massalabs/wallet-provider


text:
Additional property false can block deploys of downstream bundles

We set additionalProperties to false in our bundle params to make sure we are catching typos from API callers in field names.
For artifact definitions, its a bit more complicated. We definitely want to catch typos in schema fields when an artifact is uploaded, but when provisioning a downstream bundle, it doesn't matter. A bundles artifact definitions are 'burned in' during publishing. If additional information is present, it will be fine as the bundle isn't doing anything with the field anyway.
Where the problem arises is when a new field is added to an artifact definition and the upstream bundle has been published, but the downstream has not. This will cause the downstream bundle to reject deploying as it will have an additional field (which we know it won't use).
Not sure what the best fix is for this, I don't think we want to remove additionalProperty false checks when making an artifact, but it being present when using an artifact is problematic.
A path forward may be:

~remove setting additionalProperties false when publishing an artifact definition~ this needs to stay false when applicable (almost always) so that adhoc data can’t be uploaded when importing artifacts
when publishing a bundle, pull the artifact schema to burn it in (we do this already) and walk/set additionalProperties false in the bundles params and artifacts field (we may be doing this 99% positive we are)
when publishing a bundle, ensure that we aren't setting additionalProperties false in the connections schema for each of the connections, but set it at the top level so additional connections cant be added.

This would:

✅ enforce no add'l fields when creating an artifact
✅ not allow arbitrary inbound connections
✅ connections would allow additional fields to be present (that the bundle wouldn't be expecting)

We should put some care into this one since it will impact all published bundles.

@jaketf this needs to be addressed in the CLI (not in the artifact definitions themselves) step one above was invalid.

Updated the notes above to make it more clear. Let’s sync tomorrow if it’s not!

The net result should be:
params: everything that isn’t explicitly false should be made explicitly false (again, pretty certain this is the case)
artifacts: everything that isn’t explicitly false should be made explicitly false (again, pretty certain this is the case)
connections:

top level should be addProp false so random connections can’t be made, the subobjects should all be turned to addProp true (unless set to a literal object)

currently json schema if/else conditionals that conditionally add properties to an object that has additionalProperties: false do not seem to be working.
@mclacore has been working around this by just removing ALL additionalProperties from schema-params.json when testing.
related: the $id field also seems to break if/else conditionals in json schema (no idea why) @xpositivityx might know.

authors: coryodaniel jaketf

repo: massdriver-cloud/massdriver-cli


text:
🛑 Iran 1 - VIP 1 is down

In 5657a13, Iran 1 - VIP 1 ($VIP1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 1 - VIP 1 is back up in 65f4cfa after 7 minutes.


text:
🛑 RESTREAM-IR-11-ZirSakht-2 is down

In eba30b1, RESTREAM-IR-11-ZirSakht-2 ($IR_11) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-11-ZirSakht-2 is back up in 0232a12.


text:
🛑 RESTREAM-IR-13-Afranet-3 is down

In e0cc358, RESTREAM-IR-13-Afranet-3 ($IR_13) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-13-Afranet-3 is back up in 31c8ce6.


text:
🛑 RESTREAM-IR-12-ZirSakht-3 is down

In 7187fd1, RESTREAM-IR-12-ZirSakht-3 ($IR_12) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-12-ZirSakht-3 is back up in d03e981.


text:
🛑 RESTREAM-IR-14-Afranet-4 is down

In 7544fa2, RESTREAM-IR-14-Afranet-4 ($IR_14) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-14-Afranet-4 is back up in 812a5b6.


text:
🛑 RESTREAM-IR-14-Afranet-4 is down

In e264a85, RESTREAM-IR-14-Afranet-4 ($IR_14) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-14-Afranet-4 is back up in e06bfa9.


text:
🛑 RESTREAM-IR-11-ZirSakht-2 is down

In 3dacac4, RESTREAM-IR-11-ZirSakht-2 ($IR_11) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-11-ZirSakht-2 is back up in c044850.


text:
🛑 Iran 11 - ParsOnline 4 is down

In f23c800, Iran 11 - ParsOnline 4 ($IR_11) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 11 - ParsOnline 4 is back up in 7af30c0.


text:
🛑 Iran 12 - ParsOnline 5 is down

In a7f1cd9, Iran 12 - ParsOnline 5 ($IR_12) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 12 - ParsOnline 5 is back up in d3a8e00.


text:
🛑 Iran 5 - Afranet 3 is down

In a58f56a, Iran 5 - Afranet 3 ($IR_5) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 5 - Afranet 3 is back up in efbfc59.


text:
Request: Tap on buttons in the background in 'active mode'

When I open the action button and then click other buttons (for example tab bar button) in my page, the first click on the tab bar button would close the action button, and then I need to click  tab bar button again to navigate. Is there a good way to modify this? I don't want to click twice.

that's not possible in the current version @yelynn2015 :/

OK, looking forward to your update @mastermoo

what is the expected behaviour? the action button is in active state, you click once, and the tabbar button is clicked PLUS the action button goes from active to closed state?

because i have no idea how to implement this. i could allow the background to be tappable, but the action button would keep its active state

I try the new one, i stll need to click twice. Do I need to add some code to adjust?

I try the new one, i still need to click twice. Do I need to add some code to adjust? @mastermoo

Yes, there is a new prop you need to add to ActionButton: backgroundTappable={true}
On Mon, Oct 17, 2016 at 5:28 AM +0200, "yelynn2015" notifications@github.com wrote:
I try the new one, i still need to click twice. Do I need to add some code to adjust? @mastermoo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Thank you @mastermoo Could I add some code to make the button auto close, I try the props.active, it can not work.

repo: mastermoo/react-native-action-button


text:
Jean Pierre, Daniel y Javier

Datos del proyecto

Complete la siguiente información

Nombre: Gestión de rutas para taxistas
Repositorio: https://github.com/aka-cs/ia-sim-cmp.git
Reporte: https://github.com/aka-cs/ia-sim-cmp/wiki
Breve resumen

Este resumen (o uno ligeramente más amplio) debe aparecer también en el reporte linkeado arriba.

Dado un conductor de taxi, este necesita dada la información del tráfico y de las personas que piden viajes ser capaz de decidir con rapidez a que pasajeros atender y que rutas tomar. Por esto buscamos crear un programa que mediante el uso de inteligencia artificial sea capaz de resolver este problema para el taxista, buscando en cada momento la mejor decisión posible y que tome en cuenta factores como la cantidad de combustible y los lugares para reponer, además del costo de esta operación. Para probar el desempeño del programa, haremos uso de simulaciones, en las que se analizaran cosas como el tráfico y el surgimiento de pedidos de viaje, así como la distancia recorrida hasta el momento y el consumo de combustible en función de esto, por lo que tendremos un sistema dinámico que cambia en función del tiempo. La creación de simulaciones y del programa en si se facilitará mediante la creación de un lenguaje de programación especializado.
Miembros del equipo

Jean Pierre Gómez Matos (@h0ll0wX)
Daniel Rivero Gómez-Wangüemert (@driverog)
Javier Rodríguez Rodríguez (@JavierRdguez)

Aprobación

Estos elementos serán chequeados por los profesores de la asignatura para aprobar el proyecto.

[x] El repositorio indicado existe
[x] El documento de reporte existe, y tiene la estructura inicial (nombre del proyecto, autores, breve descripción)
[x] Los miembros del equipo tienen usuarios en Github debidamente identificados (avatar, nombre completo, y página de perfil)
[ ] El resumen describe una idea factible y de complejidad adecuada

En caso de que algunas de las condiciones anteriores no se cumplan, en este issue les dejaremos todos los comentarios y discusiones necesarias para lograr la aprobación del proyecto.
Este issue será cerrado una vez se considere definitivamente aprobado o rechazado el proyecto, y se le pondrá la etiqueta correspondiente.

Me gusta la idea, lo único que quisiera un tilín de explicación es hasta donde pretenden (a muy alto nivel ahora) que sea configurable mediante el lenguaje de programación. O sea, que voy a poder programar, la estrategia del taxista, las características del tráfico, el mapa, etc...

Me gusta la idea, lo único que quisiera un tilín de explicación es hasta donde pretenden (a muy alto nivel ahora) que sea configurable mediante el lenguaje de programación. O sea, que voy a poder programar, la estrategia del taxista, las características del tráfico, el mapa, etc...

Nuestra idea es generar el software en si en base al lenguaje que definamos, que debe permitir facilidades como la definición de mapas y los puntos claves del mismo (dígase intersecciones, semáforos, etc.) y el trabajo sobre el mismo (cambios de luces, tráfico, etc.) . El aspecto del trafico es de particular interés porque trataremos de predecir el comportamiento del mismo, en dependencia de las luces de los semáforos, y la duración de las mismas. La estrategia del taxista se construirá en el mismo lenguaje teniendo en cuenta todos los elementos anteriores, incluyendo factores como nuevos pedidos y distancia a recorrer. Ya con estos elementos definidos, esperamos poder construir simulaciones usando el lenguaje construido, para probar el rendimiento de dichas estrategias y modificarlas de ser necesario.

Hola yo seré su mentor. Me gusta el proyecto aunque hay algunas cosas que me gustaría que me las explicaran.

authors: JavierRdguez apiad sestevez


text:
Support for bootstrap 4

Add support for bootstrap 4 (alpha)

Using gem rafaelmotta/bootstrap-kaminari-views instead of this

It looks like @rafaelmotta deleted his repo for this.

@danielwestendorf yes, he did.
I've just uploaded a copy of repo https://github.com/kalashnikovisme/bootstrap-kaminari-views
you're welcome

repo: matenia/bootstrap-kaminari-views


text:
fix(all): add chip-set to all.js file

This PR will add chip-set element to the list in all.js.

Thank you! Quick nit: internally lint is failing because those imports need to be in alphabetical order.
So chip-set needs to be moved down one line between assist-chip and filter-chip.

Thank you! Quick nit: internally lint is failing because those imports need to be in alphabetical order.
So chip-set needs to be moved down one line between assist-chip and filter-chip.

I knew there were something with these lint comments 😹
I've updated.

authors: AndrewJakubowicz vdegenne

repo: material-components/material-web


text:
How to set or get Neutral-Variant color

I am learning how the new material 3 color system works, but I can't find the way to create the neutral-variant color, I see that this color changes when changing the primary color, but I also notice that it has some relation with the secondary color. I would like to know how or with what combination I can get this color to create other colors like surfaceVariant and outline without the constructor, since in the constructor I can't set this color so I guess this color is created based on the other colors of the theme.
Thank you very much.

Hi, we recently added the Neutral Variant key color into the Figma plugin and will be adding into the website version as well.


text:
Action: Mark sidenav touchmove event listeners as passive

Chrome throws 3 violation messages, directly connected to the touchmove event listener attached to sidenav:
materialize.min.js?ver=1.0.0:6 [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
You can see the issue on any materialize site - even the docs - by reducing screen size so that the sidenav is off the screen, then check console > messages:
https://materializecss.com/
The fix, it seems, is to amend lines 132, 134 & 136 of sidenav.js. I honestly don't know what the broader implications of this are but the warnings disappear.
Changed from:
this.dragTarget.addEventListener('touchmove', this._handleDragTargetDragBound);
this._overlay.addEventListener('touchmove', this._handleCloseDragBound);
this.el.addEventListener('touchmove', this._handleCloseDragBound);
to:
this.dragTarget.addEventListener('touchmove', this._handleDragTargetDragBound, { passive: true});
this._overlay.addEventListener('touchmove', this._handleCloseDragBound, { passive: true});
this.el.addEventListener('touchmove', this._handleCloseDragBound, { passive: true});
Maybe someone could confirm this, and then talk me through how to make this into a change?!!?

A bit related:
https://github.com/materializecss/materialize/pull/11/commits/0b6b70c3544581fc467c509f173b937f5d036ec8 (see also the discussion in there)
https://github.com/materializecss/materialize/pull/11/commits/3afddefe2cadef09cb0221d9cdbbc61095f27b06

A bit related:
0b6b70c (see also the discussion in there)
3afddef

Cool. Ok, I will try to make my first PR...!

What's useful: you can append something like  - closes #20 or  - fixes #20 to a commit in a PR so GitHub links it to the relevant issue which is then automatically closed when the PR is merged, and there is some information like shown that it fixes / closes the mentioned issue.

Hello @doughballs, thanks for your solution. It would be cool to further improve materializecss with you contribution.
Whats the current status of the PR? best regards

Hi @doughballs,
did you find some time to start the work on a PR or would you suggest that someone else picks this up and you can support them with a PR review?

@DanielRuf so time is not an issue, but I’m not sure where it’s up to. I thought I had created a PR? Forgive me, first time contributing so not 100% sure what the hell I’m doing 🙃

Great. This is no problem.
I would like to invite @materializecss/members to help here so we can foster a great community. Who wants to describe the needed steps and guide @doughballs?

@DanielRuf so time is not an issue, but I’m not sure where it’s up to. I thought I had created a PR? Forgive me, first time contributing so not 100% sure what the hell I’m doing 🙃
happy for someone else to pick up, or I can finish off...but may need a little guidance.

Any updates about the PR ? If you've found which line to change, your first PR will require some time to understand how to properly contribute in such projects, but you'll get habits after one or two supplementary contributions.
I might consider helping there if there is no activity.

oh wait, we seems forgot to close this? Is this still an issue?

Probably still open since the original PR did not lmention / link this issue here.
And see https://github.com/materializecss/materialize/issues/20#issuecomment-695849458
Closing as fixed.

authors: DanielRuf LoganTann Smankusors doughballs wuda-io

repo: materializecss/materialize


text:
upgrade to RN 0.71

Feature request
Upgrade to RN 0.71, upgrade example apps, upgrade deps

@hadnet you can modify the kotlin version in your project and the library will pick chosen version - https://mateusz1913.github.io/react-native-avoid-softinput/docs/guides#troubleshooting


text:
save images during test to .test_dir/

I noticed the png files in my root directory since they're now saved to the current directory by default, so I made them leverage the existing pytest fixture.

needs rebase from head of #68 post-merge to dev in order to pass the type-checking test.

repo: mathematicalmichael/mud


text:
Server Not Loading on Newest Version

The server page isn't loading for me on Anki 23.10.1 with the newest version of AnkiDojo. It does redirect from http://localhost:5008/ to http://localhost:5008/apps.html, so I think it's running, but it returns a 404. I'm seeing the problem on both Windows 10 and Ubuntu 22.
Let me know if there's any diagnostic info I can collect for you.

Sorry, there was a build issue. I've updated the patch and it should work now.


text:
SSH agent mounting is failing on Mac OS Sonoma

Python Version: 3.10.13
Package Version: 0.4.1
OS: Mac OS Sonoma 14.2.1
Reproducible: Always
Steps to reproduce:

Create a pipeline step that needs to fetch data using SSH (e.g.: a private Git repo).
Add keys using ssh-agent --apple-add-keychain.
Use pipeline-runner to run that step.

Expected result:
SSH agent is mounted in the container, ready for use.
Current result:
An exception is thrown during the mount. Stack trace:
2024-04-22 13:31:16.400 pipeline_runner.runner: Error during pipeline execution
Traceback (most recent call last):
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/docker/api/client.py", line 265, in _raise_for_status
    response.raise_for_status()
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+docker://localhost/v1.44/containers/db8deb7ffc0e9c102d7e85e449afd2a365329b9dcd89cd4d9de033949b84da01/start

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/pipeline_runner/runner.py", line 192, in run
    container_runner.start()
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/pipeline_runner/container.py", line 58, in start
    self.start_container()
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/pipeline_runner/container.py", line 155, in start_container
    container = self._client.containers.run(
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/docker/models/containers.py", line 880, in run
    container.start()
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/docker/models/containers.py", line 417, in start
    return self.client.api.start(self.id, **kwargs)
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/docker/api/container.py", line 1135, in start
    self._raise_for_status(res)
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/docker/api/client.py", line 267, in _raise_for_status
    raise create_api_error_from_http_exception(e) from e
  File "/Users/francisco/Library/Caches/pypoetry/virtualenvs/project-12345678-py3.10/lib/python3.10/site-packages/docker/errors.py", line 39, in create_api_error_from_http_exception
    raise cls(e, response=response, explanation=explanation) from e
docker.errors.APIError: 500 Server Error for http+docker://localhost/v1.44/containers/db8deb7ffc0e9c102d7e85e449afd2a365329b9dcd89cd4d9de033949b84da01/start: Internal Server Error ("error while creating mount source path '/host_mnt/private/tmp/com.apple.launchd.12345678/Listeners': mkdir /host_mnt/private/tmp/com.apple.launchd.12345678/Listeners: operation not supported")

I've tested on Monterey and I can't reproduce the issue. It looks like something changed in a later version. I'll figure out a way to run a Ventura or Sonoma VM so see if I can repro and fix.

@mathieu-lemay Understood. Just in case this is needed during the VM setup: the Docker Desktop version I'm using is 4.28.0.

I've finally manage to reproduce the issue! After some investigation, it seems that it's actually a problem with docker for mac: https://github.com/docker/for-mac/issues/6375
I've tried a few of the solutions in that thread and none of them worked for me though. I'll try to see if I can find a solution for that. If you think of anything, I'm interested!
You should be able to reproduce the issue directly with docker if you are curious to try something:
docker run --rm -it -v $SSH_AUTH_SOCK:/ssh-sock:ro -e SSH_AUTH_SOCK=/ssh-sock --entrypoint ssh-add linuxserver/openssh-server -l

I found a solution but I'll need some more time to add proper tests and do some validation on different setups.
@frodri If you want to test it on your own, you can check this branch: https://github.com/mathieu-lemay/pipeline-runner/tree/fix-ssh-agent-forwarding-with-docker-desktop

@frodri Just to make sure, did you add the --ssh parameter when you ran that pipeline? I get that same error message if I forget that param, otherwise it works just fine. If you did add the --ssh param, can you provide the whole log please?
You should see this message in the logs. If you don't, something is indeed wrong:
2024-04-30 14:33:17.706 pipeline_runner.container: Using docker desktop's host service ssh agent

To test, I'm running the following pipeline.
pipelines:
  default:
      - step:
          name: Clone
          image: alpine/git
          script:
            - echo 'Host *' >> ~/.ssh/config
            - echo '   StrictHostKeyChecking no' >> ~/.ssh/config
            - ssh-agent
            - ssh-add -L
            - git clone git@github.com:mathieu-lemay/pipeline-runner.git

Two small notes

You don't need to run ssh-agent in the pipeline, but I guess you only added it for testing
I'm cloning my own repo with ssh to ensure everything works. Replace with a repo of your own of course.

@mathieu-lemay I did. I'm running the following command thru a nodejs build script:
poetry run pipeline-runner run custom.build-to-multidev --env-file "./.env.local" --ssh
Strangely enough, I tested the git clone instead of the key testing commands this morning, and I was able to get the fetch to work - so I suppose the test commands might caused the issue in this case.
I'll keep testing the new branch over the next few days to see if I can find any more issues.

I've merged the fix and closed the issue. I have done a few tests in different scenarios and I'm satisfied with the fix. I'll publish a new version as soon as the tests have passed.
Feel free to re-open if you encounter any issues.

Will do. Thank you for the assistance.

It's my pleasure! Thank you for the feedback. I'm very happy to see my software being used by others!

👍
(Oh, and before I forget: I can confirm that the SSH agent worked as expected during my testing earlier in the week. So I think we're good there.)

authors: frodri mathieu-lemay

repo: mathieu-lemay/pipeline-runner


text:
Add checkbox for tagging the GH issue

Update script wasn't really working for me so if you could generate the necessary files :)

I'll merge it and push the new version directly into master

authors: bittersweet mathijsblokland

repo: mathijsblokland/github-pull-template


text:
The line break(\) is not work

The latex:
x = a + b \\ y = b + c
The line-break isn't effect and it renders as single line.
However, it works fine and renders as two lines at verision 2.

@dpvc Thanks for your reply. In the meantime, I figured out that the third backslash is only required if the "Using Markdown" toggle on our specific WordPress blog is set to "on". So, at least in my case, this was a problem between different plugins interfering with each other. Seems like the backslash get's handled as an escape character in Markdown mode on our blog.

@T-Kuhn, yes, Markdown uses the backslash as an escape character.  You may also need to be concerned about underscores, as these are used to indicate italics.  So you may need to do things like x\_1 rather than x_1 in some situations.

Any update or schedule about it?

@woody-li, there is a 3.1 update that is nearly ready to release (hope to have it out by the end of the month). The next release should be at the end of the summer, and will mainly be the long-awaited additional font support for v3 (including STIX2 support and tools for building the data needed for supporting other web fonts).  So line breaking and other features will most likely have to wait until next year.

Would it be bad of an idea to add referrence to this task "Not Yet Ported to Version 3" section in the documenation, for those who go there and want to know status those items, and possibly for other items on the list? (I assume this ticket is representative for the "Currently, automatic line breaking support is missing from version 3. This is a key feature to be included in a future release." bullet).

So line breaking and other features will most likely have to wait until next year.

That's the reason why nearly nobody is using MathJax 3. I would put it as highest priority if you want to distribute MathJax 3 and see it being successful. I nearly swapped to Katex because of this missing feature, and maybe will do so. However, Mathjax is still my favorite (bolder font, line break of Jax 2 and other features).

For what it's worth, I think linebreaking is the last thing we are waiting for to move from mathjax 2 to mathjax 3 as the default math rendering in JupyterLab: https://github.com/jupyterlab/jupyterlab/issues/7218

@jasondavies just a thought from a bystander: a group as well funded as the jupyter projects might consider actually supporting MathJax's development.

@pkra, first, the tone of your comment indicates that I came across as entitled in some way to Davide's time. Both of us have been involved with open source and funding long enough to know that there is no entitlement here - I'm sorry if I came across that way. I only meant to flag another potential userbase's interest when and if the work happened.
On the deeper issue you raise: we've both know how difficult it is to find funding for open source. A few of us in Jupyter had a great conversation just this morning on how to help fellow open-source projects connect with funding sources in a successful, sustainable way. In fact, @fperez's Scipy keynote next week will focus on the topic of funding open source (Friday morning next week: https://www.scipy2021.scipy.org/schedule).
@dpvc (and @pkra if you're interested too) - if you want to follow up, email me and let's set up a time to brainstorm some ideas about resources for funding (while most of Jupyter's funding is tied to specific initiatives or is controlled by specific PIs for specific projects, we have cultivated a network of contacts and have other ideas about funding). For example (which you may already be aware of), for things like a specific feature, NumFOCUS small development grants may help.

The document says "Currently, automatic line breaking support is missing from version 3. This is a key feature to be included in a future release.", so "\" means automatic line breaking ?

@jasongrout, thanks for your information about line breaking.  I know that it is important, and haven't forgotten about it.  Things have taken somewhat longer than I had hoped, and I am still working on the font update.  I have the toolchain for SVG in pretty good shape, but there is still some work needed for CommonHTML versions.  There will be a release at the end of August that will at least include the SVG versions.  Line breaking is then the next feature that I will work on.  Because I go back to teaching in the fall, that will have to wait until next year.  I wish I were able to work faster, but it is what it is.
We have received two small development grants from NumFOCUS already.  Doing one for line breaking may be a good fit as well.  I will consider it for next year.  Thank you for the offer to discuss funding ideas.  I would be happy to chat with you about that.  We should make arrangements to do that before I go back to teaching.

@abnerlee:

The document says "Currently, automatic line breaking support is missing from version 3. This is a key feature to be included in a future release.", so "\" means automatic line breaking

Yes, it should really say line breaking of any kind, as they both use the same mechanism.

Is this going to be implemented any time soon?

@ShadiestGoat, not until next year.

So line breaking and other features will most likely have to wait until next year.

That's the reason why nearly nobody is using MathJax 3. I would put it as highest priority if you want to distribute MathJax 3 and see it being successful. I nearly swapped to Katex because of this missing feature, and maybe will do so. However, Mathjax is still my favorite (bolder font, line break of Jax 2 and other features).

Am I the only person who doesn't see this as such a big deal? When working with LaTeX I always use the amsmath environments like gather and multline if my formula or equation is too long to fit in one line. In fact, LaTeX (like MathJax v3) doesn't even support line breaks in a regular equation environment. The same amsmath environments have been ported to MathJax so there should be no problem writing math just like you would in LaTeX.

Wow, thanks for the comment @averms. From the issue description I incorrectly thought that \\ line breaks aren't supported anywhere. However it seems that on the contrary only the cases not supported by latex itself don't work. All the relevant amsmath environments actually work quite well.

Am I the only person who doesn't see this as such a big deal?

A super common LaTeX paradigm, in my experience, is $stuff$\\$stuff$, which this would be the closest to. Though I'll admit that $stuff$<br>$stuff$ can work in some/most contexts (e.g. Jupyter) for something sort of equivalent.
In any case, I don't think the problem is really humans writing MathJax -- it's packages that generate MathJax code. From that perspective this is a major API break from previous MathJax versions, regardless of what is supposed be doable in LaTeX or not. I'm getting a bit of visceral horror after running across this issue at the thought of trying to figure out where my package is using \\ and what would come out equivalent to those cases.

A super common LaTeX paradigm, in my experience, is $stuff$\\$stuff$, which this would be the closest to.

I don't quite follow. Under which conditions would mathjax see this input? Assuming that v2 MathJax hub is configured to respond to $ delimiters, \\ wouldn't be seen and rendered by MathJax in this example. Can you please elaborate?

A super common LaTeX paradigm, in my experience, is $stuff$\\$stuff$, which this would be the closest to.

I don't quite follow.

The theory seemed to be that this change would ok because humans writing LaTeX don't (or shouldn't) use \\ in math mode. I was providing something they very commonly do instead, which has no direct analogue in MathJax, and using \\ directly is the closest to.

Additionally, already in MathJax2 a\a results in a processing error in Jupyterlab. 🤔

$a\\a$ works fine in currentish jupyter lab (up to date condaforge versions at least), so 🤔 indeed...

bump, I think this should be relatively simple to fix?

@ShadiestGoat, not until next year.

Happy new years :)

@octo-kumo

I think this should be relatively simple to fix?

It's not.  It is part of the larger automatic line-breaking process, and that is quite complicated.  It is planned for later this year, after the major font update that is currently in process.

It works when using four slashes \\\\ instead of two \\ in markdown. see

Just an FYI for anybody else running across this for markdown documents: I found that using four slashes (\\\\) was necessary to get the correct output on my Hugo site, but caused Typora editor to produce duplicate newlines.
Switching to \newline instead of \\\\ produces the correct results in both places:
\begin{align}
a_{11}& =b_{11}\newline
a_{22}& =b_{22}+c_{22}
\end{align}

@woody-li, line breaking support is under development and should be part of the major feature release at the end of the summer.

For some reason, I had to add a third / on my environment (Japanese WordPress blog.) This didn't work (everything was rendered on the same line):
\displaylines{x = a + b \\ y = b + c}

This worked (2 lines):
\displaylines{x = a + b \\\ y = b + c}

This worked in GitHub too. Thanks!

@dpvc I'm also interested in the auto line break feature and was trying to find some info regarding when "the major feature release at the end of the summer" is scheduled but haven't been able to find any date for is. Can you by any chance share info on when this release is expected? Thanks!

I had hoped to have it out several weeks ago, but ran into some issues putting it all together.  I am preparing an alpha release as we speak, and am planning to make it available this week.
The linebreaking code is in the linebreak branch of the MathJax-src repository, so theoretically, you could build a version yourself now if you wanted to see how it works.

The v4.0.0-alpha.1 release was just made, and it includes the line-breaking implementation.  See the release notes for extensive details.  I encourage you to try it out.  Please report problems by opening a new issue, not adding them here.  Thanks.

So, still not working...

@Humam-Hamdan, line breaking support is in v4.0-alpha released last year, and in the 4.0-beta released last week.  The official v4.0 is planned for the end of August.

@dpvc ok, thx

@dpvc Hi again, currently on ver 4.1. but still not working.
$$f(x)=c;c \in \mathbb{R} \newline \mathbb{L} = \{y|y=c; c \in \mathbb{R}}$$

@Humam-Hamdan, there is no version 4.1, so I'm not sure which version you are using (4.0.0-alpha.1 maybe?).  @nhpf's file works for me as expected, as it does when I change to 4.0.0-alpha.1 (and add the es5 directory), in case that's what you were using.  It also works at 4.0.0-beta.4, which is the current beta release.  This is an even smaller test file:
<!DOCTYPE html>
<html>
  <head>
    <script
      id="MathJax-script" async
      src="https://cdn.jsdelivr.net/npm/mathjax@4.0.0-beta.4/tex-chtml.js"
    ></script>
  </head>
  <body>
    $$f(x)=c;c \in \mathbb{R} \newline \mathbb{L} = \{y|y=c; c \in \mathbb{R}\}$$
  </body>
</html>

i'm on version 0.4.1 (stable)

This is not a MathJax version.  What is it really that this is the version of?  Some MathJax plugin for your content-management system?
Also, the output you show is not the output from the file that either @nhpf or I sent you, as the blackboard bold characters are different in the v4.0 beta versions.
When you say you copied and pasted, did you create a new blank file, say test.html on your local computer disk and past the examples into that, save it, and open the local file in a browser?  Or did you past it into some content-management system that you are using?  You should do the former, not the latter.

Oh Ok, Thanks.

2024 and still no fix?

still no fix?

@CaneMandarinesco, line breaking is supported in v4, which is currently in beta release.  There will be at least one more beta version before an official release.  The current beta is pretty close to the final version, but as this is a major update, all the ducks need to be in a row, and things have been pushed back, from our earlier planned release date.

This affects the latest version of Jupyter lab. The \ backslashes are ignored in array cells. It used to work.

Did "\" stop working? I can't break lines in the desktop version.

MathJax is pretty nice and useful, hope it works, in Anki we can do a workaround by inserting multiple inlines, but this takes-out the meaning of MathJax block

Any update on releasing? It been some months

To work around this, I'm trying to wrap any math that contains the \\ pattern in \displaylines{ math }.
In v2, I could manipulate the math using AuthorInit, but v3 does not support that any more. Could anyone help me with how to get this done in v3, so manipulate the math before it gets rendered?
For reference, this is what works in v2 (but the for wrapping displaystyle{}):
    AuthorInit: function () {
        MathJax.Hub.Register.StartupHook('TeX Jax Ready', function () {
            var TEX = MathJax.InputJax.TeX;
            var PREFILTER = TEX.prefilterMath;
            TEX.Augment({
                prefilterMath: function (math, displaymode, script) {
                    math = '\\displaystyle ' + math;
                    return PREFILTER.call(TEX, math, displaymode, script);
                }
            });
        });
    }

Any update on releasing? It been some months

I know it is frustrating to have to wait for this; I'm frustrated by it as well.  We have made several beta releases this year, but the final release is still not ready.  We are dealing with some issues with the changes made in the assistive technology support that still need to be worked out, and it is taking longer than anticipated.  there will need to be one more beta release before the official v4.  The betas are in use in production sites, so if the need is urgent, you could consider that.  The current beta.7 is pretty close to the final version, and the beta.4 release predates the problems that we are working on, if you want to try those out.

To work around this, I'm trying to wrap any math that contains the \\ pattern in \displaylines{ math }.

Of course, there are uses of \\ that should not be put into \displaylines, such as \begin{align}...\end{align} blocks, but you might be able to filter those out.
In any case, the v3 approach for your situation is to use the startup.ready function in your MathJax configuration.  For example:
MathJax = {
  startup: {
    ready() {
      MathJax.startup.defaultReady();
      MathJax.startup.document.inputJax[0].preFilters.add(({math}) => {
        if (math.math.match(/\\\\/)) {
          math.math = `\\displaylines{${math.math}}`;
        }
      });
    }
  }
}

is a simple version that does what you ask, but could be made more sophisticated to avoid the environments that use \\ already for line breaking.

authors: BlueOrigin CaneMandarinesco GoldenGoldy Humam-Hamdan JWock82 Nambers ShadiestGoat T-Kuhn TheSil abnerlee akhmerov averms cdwilson dpvc jasongrout joaolcguerreiro octo-kumo pkra q2apro rawlins sowiso ulissesjdeo woody-li

repo: mathjax/MathJax


text:
Adding Resource Property to MeterProvider

This PR adds the Resource property to MeterProvider. It also creates the test class tmetrics_sdk with one method to test the resource property.

Implemented issue #33

authors: dnarula-mw duncanpo

repo: mathworks/OpenTelemetry-Matlab


text:
Dependabot changelog

WIP, gonna test this on sydent

Got this working,but it was a PITA. We'll change the changelog check to not run if the PR's author is dependabot.

repo: matrix-org/backend-meta


text:
add new client Koma to the projects page

this project has been worked on for several months, while it still lacks many features, it's probably a good idea to share it and get feedback
please give any feedback and expect continuous active development and handy new features in the following months

ListViews just got some improvements!
width of items are managed in a cleaner way, no more manual calculation of widths, which means higher accuracy, better performance and more reliable. Chat messages wrap just before meeting the right scrollbar
wide items in the rooms list and users list are handled: when a name is too long, it's shown with ellipses, because horizontal scrolling isn't a good idea here
the users list also has a semi-transparent scrollbar now
the appearance of chat messages is updated, also more types of messages are shown to the user. (spacing between some ui elements still needs some adjustments)
here's a screenshot, hope you like it!

btw, in the next few days, chat history syncing should be ready

Thanks!

authors: komatr richvdh u1haru

repo: matrix-org/matrix-doc


text:
Ime composing

Closes https://github.com/vector-im/element-web/issues/23649
Closes https://github.com/vector-im/element-web/issues/25247
...or at least aims to. Will probably need manual testing.
Adds the ability for the composer to handle IME type composition, for letters with accents/CJK etc.
New behaviour:
https://github.com/matrix-org/matrix-rich-text-editor/assets/56027671/7c7d07fc-cf88-459d-89b1-d926142b9bfc

Codecov Report
Patch coverage has no change and project coverage change: -0.27 :warning:

Comparison is base (227e6d9) 90.20% compared to head (d987099) 89.94%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #723      +/-   ##
==========================================
- Coverage   90.20%   89.94%   -0.27%
==========================================
  Files         113       83      -30
  Lines       16029    14587    -1442
  Branches      565        0     -565
==========================================
- Hits        14459    13120    -1339
+ Misses       1550     1467      -83
+ Partials       20        0      -20

Flag
Coverage Δ

uitests
?

uitests-ios
?

unittests
89.94% <ø> (+1.00%)
:arrow_up:

unittests-ios
?

unittests-rust
89.94% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 30 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: alunturner codecov-commenter

repo: matrix-org/matrix-rich-text-editor


text:
Rename Repository

Can we please rename this repository? It isn't obvious that it is a web application and could be confused with the "matrixprofile" repository. Does "matrixprofile-ui" work?

it works for me

authors: franzbischoff tylerwmarrs


text:
feat: add failover for logset

Signed-off-by: Aylei rayingecho@gmail.com
What type of PR is this?

[ ] API-change
[ ] BUG
[ ] Improvement
[ ] Documentation
[x] Feature
[ ] Test and CI
[ ] Code Refactoring

Which issue(s) this PR fixes:
close #151
What this PR does / why we need it:

Make reconcile more efficient with increased reconcile interval
Add failover logic
Requeue logset when there is any change to the underlying statefulset, so that failover can be responsive

Special notes for your reviewer:
Not Available
Additional documentation (e.g. design docs, usage docs, etc.):
Not Available

@wanglei4687 PTAL

repo: matrixorigin/matrixone-operator


text:
terminal=false does not work?

#!/bin/bash

echo "🤖";
echo "---";
echo "🗯 nudge | bash=\"adb shell input keyevent 82\" terminal=false"

am I doing something wrong ?

For terminal=false you need to break up your bash command.  I only found this out by checking the source code, it's not documented from what I saw.
echo "🗯 nudge | bash=adb param1=shell param2=input param3=keyevent param4=82 terminal=false"

You can do up-to param5.  If you need more then that...  PR's welcome I'm sure ;-)

Personally I find that pattern pretty limiting - I wonder if there's a better way to handle this?

I'd expect @gorangajic's code to work just fine - so perhaps the parser inside BitBar needs a bit of love.

The problem is that NSTask expects the setLaunchPath to only be the executable to launch, so you have to separate that.  This could still be possible just by tokenizing the bash= argument on the first space.  Otherwise you end up with an error:
1/6/16 3:16:26.071 PM BitBar[49665]: An uncaught exception was raised
1/6/16 3:16:26.071 PM BitBar[49665]: launch path not accessible
1/6/16 3:16:26.074 PM BitBar[49665]: (
	0   CoreFoundation                      0x00007fff87d4e03c __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x00007fff8991476e objc_exception_throw + 43
	2   CoreFoundation                      0x00007fff87d4deed +[NSException raise:format:] + 205
	3   Foundation                          0x00007fff8483a21c -[NSConcreteTask launchWithDictionary:] + 444
	4   BitBar                              0x00000001000106cb -[Plugin performMenuItemOpenTerminalAction:] + 1282
	5   libsystem_trace.dylib               0x00007fff84d9ccd7 _os_activity_initiate + 75
	6   AppKit                              0x00007fff8bb08eb1 -[NSApplication sendAction:to:from:] + 452
	7   AppKit                              0x00007fff8bb08c4e -[NSMenuItem _corePerformAction] + 382
	8   AppKit                              0x00007fff8bb0897c -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
	9   libsystem_trace.dylib               0x00007fff84d9ccd7 _os_activity_initiate + 75
	10  AppKit                              0x00007fff8bbcfb00 -[NSMenu performActionForItemAtIndex:] + 131
	11  AppKit                              0x00007fff8bbcfa66 -[NSMenu _internalPerformActionForItemAtIndex:] + 35
	12  AppKit                              0x00007fff8bbcf8b2 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 107
	13  AppKit                              0x00007fff8baf0d6b NSSLMMenuEventHandler + 724
	14  HIToolbox                           0x00007fff834a7b6c _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1260
	15  HIToolbox                           0x00007fff834a6fae _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 386
	16  HIToolbox                           0x00007fff834bccb6 SendEventToEventTarget + 40
	17  HIToolbox                           0x00007fff834f6f45 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 428
	18  HIToolbox                           0x00007fff83534b8d SendMenuCommandWithContextAndModifiers + 59
	19  HIToolbox                           0x00007fff83534b30 SendMenuItemSelectedEvent + 188
	20  HIToolbox                           0x00007fff83534a09 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 96
	21  HIToolbox                           0x00007fff83510cc1 _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK14__CFDictionaryPK10__CFStringPP13OpaqueMenuRefPt + 1877
	22  HIToolbox                           0x00007fff8350fd74 _ZL26_HandlePopUpMenuSelection8P13OpaqueMenuRefP14OpaqueEventRefj5PointtjPK4RecttS6_S6_PK14__CFDictionaryPK10__CFStringPS0_Pt + 633
	23  HIToolbox                           0x00007fff8350f93b _HandlePopUpMenuSelectionWithDictionary + 287
	24  AppKit                              0x00007fff8bbc571d _NSSLMPopUpCarbonMenu3 + 5810
	25  AppKit                              0x00007fff8bbc4059 _NSPopUpCarbonMenu3 + 153
	26  AppKit                              0x00007fff8bbc3fb1 -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 350
	27  AppKit                              0x00007fff8bf9d448 +[NSStatusBarButtonCell popupStatusBarMenu:inRect:ofView:withEvent:] + 682
	28  AppKit                              0x00007fff8bf9c87d -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 159
	29  AppKit                              0x00007fff8bb1b366 -[NSControl mouseDown:] + 714
	30  AppKit                              0x00007fff8c0852dc -[NSWindow _reallySendEvent:isDelayedEvent:] + 14125
	31  AppKit                              0x00007fff8ba14c86 -[NSWindow sendEvent:] + 470
	32  AppKit                              0x00007fff8bf9fdee -[NSStatusBarWindow sendEvent:] + 242
	33  AppKit                              0x00007fff8ba11212 -[NSApplication sendEvent:] + 2504
	34  AppKit                              0x00007fff8b93ab68 -[NSApplication run] + 711
	35  AppKit                              0x00007fff8b8b7244 NSApplicationMain + 1832
	36  BitBar                              0x0000000100001f2c start + 52
)

The second problem is that setArguments needs an array.  If you pass it a string, that is passed as a single argument.  So the params# arguments solve this as they get parsed into an array.  Again, could possibly be solved by tokenizing the string based on space but that's prone to issues around properly parsing with quotes.  If you hijack another character, then we need to have a potential escape for that character in case it's needed :)  So, yeah, it's not pretty, but it does work :)

I have found what is the problem PATH was not set for adb, so I have used source ~/.zshrc where adb PATH is already defined
#!/bin/bash

if [[ "$1" = "nudge" ]]; then
  source ~/.zshrc
  adb shell input keyevent 82
  exit
fi

echo "🤖";
echo "---";
echo "🗯nudge | bash=$0 param1=nudge terminal=false"

it was difficult to debug this because error was silent, maybe it would be good to write output somewhere for example ~/.bitbar-debug when exit code is different than 0 and show osx notification that something went wrong

You can specify the path in the bash= option if you don't want to callback to your script:
echo "nudge | bash=/path/to/adb param1=..."

Hey ! A few days ago, #50 was merged in. This means that you can just enclose your command in single or double quotes to avoir the whole param thing.
do stuff | bash='say Hello world'

I'm having a similar issue with terminal=false, when terminal=true its working as expected but I want it to do it silently without opening a new terminal.
Mine is a python script, which goes like this
print "Start | bash='/usr/local/bin/aws' param1='ec2' param2='start-instances' param3='--instance-ids' param4='%s' param5='>>/tmp/bitbar_ec2' terminal=false" % (item['instance_id'])

I tried without param1 and etc, giving the whole path of aws, and etc solutions that were mentioned here. But still its not working with terminal=false.
I even tried dumping the output to some file, with terminal=true I can see logs in that tmp file but nothing with terminal=false
Please help me. I almost have a perfect plugin that does all the things I do with ec2, except for this little annoyance. I can make it work with terminal=true but I dont want a terminal popping up.

@syllogismos >>/tmp/bitbar_ec2 is going to be passed as an argument to aws, like aws ">>/tmp/bitbar_ec2" which is not what you want. Instead you need to use bash -c '...' Take a look at this issue for more details. https://github.com/matryer/bitbar/issues/415

Hey thanks for the quick response.
I actually don't need the >>/tmp/bitbar_ec2 part, that I added only for debugging. Even without /tmp/bitbar_ec2 its not working with terminal=false.
But I do use the bash -c method somewhere else.. and I tried these two things below. Still its not working with terminal=false
print "Stop | bash='/bin/bash' param1='-c' param2='aws' param3='ec2' param4='stop-instances' param5='--instance-ids' param6='%s' terminal=false" % (item['instance_id'])

With this I had to use 6 params, which bitbar is not able to parse.. and gives this output with terminal=true
$ /bin/bash -c aws ec2 stop-instances --instance-ids
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help
aws: error: too few arguments

Instead of this, I combined the param5 and param6 into one and did
print "Stop | bash='/bin/bash' param1='-c' param2='aws' param3='ec2' param4='stop-instances' param5='--instance-ids %s' terminal=false" % (item['instance_id'])

The thing when terminal=True, prints out this output
$ /bin/bash -c aws ec2 stop-instances --instance-ids i-0e6cd1ea15b3e8477
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help
aws: error: too few arguments

And finally I did it without using params at all
and used this
print "Start | bash='/bin/bash -c aws ec2 start-instances --instance-ids %s' terminal=false" % (item['instance_id'])

This also with terminal=true returned this
$ /bin/bash -c aws ec2 start-instances --instance-ids i-0e6cd1ea15b3e8477
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help
aws: error: too few arguments

In earlier case, I did get things working with terminal=true, here with -c even that is not working.
I tried executing the above command that was in the terminal and changed it slightly for it to work.
I have to surround the aws command in double quotes like this
$ /bin/bash -c "aws ec2 start-instances --instance-ids i-0e6cd1ea15b3e8477"
{
    "StartingInstances": [
        {
            "InstanceId": "i-0e6cd1ea15b3e8477",
            "CurrentState": {
                "Code": 0,
                "Name": "pending"
            },
            "PreviousState": {
                "Code": 80,
                "Name": "stopped"
            }
        }
    ]
}

But how can I print the double quotes from bitbar. These are all the things I tried.

@syllogismos I'm off to a meeting so don't have time to look at the your code right now. Keep in mind that bash -c only takes one argument (it takes more, but I don't have time to explain it now). You need to pass bash="/path/to/bash" param1="-c", param2="aws arg1 arg2 arg2".
I'm not sure how keen @matryer is me promoting my version/pull request being developed here, but you can give it a try. I explicitly solve this problem already.

BitBar v3.0.1 - Github Release

Thanks for responding quickly.
I tried that as well. Will just make sure one more time.

print "Stop | bash='/bin/bash' param1='-c' param2='aws ec2 stop-instances --instance-ids %s'" % (item['instance_id'])

This is trying to execute below command
/bin/bash -c aws ec2 stop-instances --instance-ids i-0e6cd1ea15b3e8477

But I need double quotes for this to work as expected like this
/bin/bash -c "aws ec2 stop-instances --instance-ids i-0e6cd1ea15b3e8477"

Maybe aws command line works a little bit different than other utilities.

@syllogismos The quotes are only needed when using terminal=true, not terminal=false. (yes, this is confusing, I know :))

@syllogismos I explain the problem briefly here if you're interested in why this doesn't work as you expect. https://github.com/oleander/bitbar/commit/9792c95805d1abc97d4afc2cdbbc460fc7a66539#commitcomment-22144737 This is also where the problem was fixed.

Thanks that comment explains why some of the things I did earlier are working, like pbcopy. And also the nice python errors that are shown in the bitbar menu. They are all very helpful.
But in this case, even with terminal = false, and params as you described is not working in this case.
I tried so many variations of how to fix this, I'm afraid I missed something so simple and am wasting my time on this. But I double checked what you asked me to do and it still seems to be not working.
Also there is no way for me to debug terminal=false
print "Start | bash='/bin/bash' param1='-c' param2='aws ec2 start-instances --instance_ids i-0e6cd1ea15b3e8477' terminal=false"

@syllogismos Did you try the BitBar version I linked to? How do you install aws? I can give it a try on my machine.

I'll update my bitbar and see.. hopefully my old scripts wont fail..
pip install aws
and then
aws configure and give your aws keys for it to work

I updated it to the latest 1.9.2 and still it doesn't seem to work.
I will try to give you basic instrictions of this basic script for you to test..
pip install aws
create a new user from aws console that can access Ec2, and get both the access and secrey keys. use them to configure by doing this
aws configure
create a new instance from aws console, note the instance id from the browser, it will be of the form i-sd134af123
and then create a new bitbar plugin with the following contents
and hardcode the instance id as shown below.
#! /usr/bin/env python
print 'EC2'
print '---'
print "Start | bash='/bin/bash' param1='-c' param2='aws ec2 start-instances --instance_ids i-0e6cd1ea15b3e8477' terminal=false"
print "Stop | bash='/bin/bash' param1='-c' param2='aws ec2 stop-instances --instance_ids i-0e6cd1ea15b3e8477' terminal=false"

@syllogismos You need to download it manually; https://github.com/oleander/bitbar/releases/download/untagged-296d5d289628e56e2a8e/BitBar.dmg It's a build from my pull request.

Its asking me to set the plugin folder again.. and mine is a hidden folder, and apparently I have to restart computer to make a hidden folder as plugin folder, https://github.com/matryer/bitbar/issues/395
I will test it later today and update you.

authors: gorangajic jcaille matryer oleander syllogismos tresni

repo: matryer/bitbar


text:
Automated testing failing when issuing a new pull request

I issued a pull request off of my fork, and the build  #2960 failed: The command "brew outdated python@2 || brew upgrade python@2" failed and exited with 1 during .

My script is not using brew or python, just the built in diskutil, df, and awk


text:
Not Work "streamRandomSampleTweets"

Streaming API does not work.

The Streaming API was actually deprecated by Twitter and no longer works. When I get the time, I'll try to clean up Swifter and remove all deprecated APIs.

repo: mattdonnelly/Swifter