Upgrading from 6.0.12 to 6.10.19 error

I just tried to upgrade from 6.0.12 to 6.10.19 and im getting greeted with the following error:
DOMException: Failed to execute 'postMessage' on 'ServiceWorker': Storage object could not be cloned.

Is there something i should consider when upgrading? I can see the OidcServiceWorker.js file changed completely

@kelvin-homann , thank you for you issue.
This is a really strange error, i never seen it before.
Do you still have the error after a page refresh ?

Unfortunately yes, this is the config we are using:
const port = window.location.port ? `:${window.location.port}` : ''
const baseUrl = `${window.location.protocol}//${window.location.hostname}${port}`

export const configurationKeycloak: OidcConfiguration = {
  client_id: window._marketrace_.CLIENT_ID ?? 'mr-frontend',
  redirect_uri: `${baseUrl}/authentication/callback`,
  silent_redirect_uri: `${baseUrl}/authentication/silent`,
  scope: 'openid profile email',
  authority: authority,
  service_worker_relative_url: '/OidcServiceWorker.js',
  service_worker_only: true,
  storage: sessionStorage
}

I managed to reproduce the error in the packages/react project with the following config:

export const configurationKeycloak = {
  client_id: 'mr-frontend',
  redirect_uri: 'http://localhost:4200/authentication/callback',
  scope: 'openid profile email',
  authority: 'http://localhost:8080/auth/realms/market-race',
  service_worker_relative_url: '/OidcServiceWorker.js',
  service_worker_only: true,
  storage: sessionStorage,
};

It worked with 6.0.12.
With the new version I am not getting redirected to the login screen, I see the error instantly when i click the login Button.
There shouldn't be any tokens to match in the first place.

Thank you very much Kevin,
I have to manage version update between service worker and client side js. It is my priority.

Oh i understood, you also set storage: sessionStorage,
I make a try

I removed sessionStorage and it works now.
Additionally i had to add the baseurl and /revoke url of our keycloak server to the trustedDomains:

Thank you very much Kevin for the feedback, I have some fix to do :/

hi @kelvin-homann , I have done an emergency fix to update service worker : https://github.com/AxaGuilDEv/react-oidc/commit/4d561d61b7190357de1a67a18862bbaf63c1be5a
It is not clean but it will avoid big problem in production.
I will add event to be able to override the default behavior next week.

I hate to say it, but im still getting the error from above with v6.10.20

Ans also thank you @kelvin-homann for your feedback/help :)

The error seems to be resolved now! Thanks 🚀


Embedded video player not working

Descriptive summary
When a video file is attached to a work, the file show page embeds an HTML5 video player.  However, the player never loads the video.
Expected behavior
The file show page for videos should allow the user to play the video right on the page.
Actual behavior
The video player remains empty.
Steps to reproduce the behavior

Create a work and attach a video
Save the work and go to the file's show page
The video never loads in the player

Related work
University of Cincinnati has fixed this locally here:
https://github.com/uclibs/scholar_uc/pull/1353/files
The PR addresses two problems:

loads the file properly into the player
restricts the size of the player so it doesn't automatically expand to a much larger size when the source video is large.

Note: it can take a bit a time for the video to eventually show up in the player.  Be patient.

@hortongn I'm guessing this affects both 1.x and 2.x.

It looks like the fix UC is using is streaming the original file and not the pregenerated derivatives

Hmm, should Hyrax/Sufia be automatically generating video derivatives for us?  The embedded audio player works fine for us out of the box, but the video player didn't work when trying to use derivatives.

@hortongn there are config options to enable ffmpeg transcoding. (I haven't personally tested those in Hyrax yet, admittedly.)

@hortongn Yes, it should be making derivatives, but I think there is a bug in the view. I think this code never got updated when the derivatives moved from being persisted in Fedora to being on the file system.

This is working fine for me.  Perhaps your ffmpeg isn't enabled or configured correctly? FWIW, for a FileSet with id 6682x392q I'm seeing these files:
tmp/derivatives/66/82/x3/92/q-mp4.mp4
tmp/derivatives/66/82/x3/92/q-thumbnail.jpeg
tmp/derivatives/66/82/x3/92/q-webm.webm

and this generated html:
<video controls="controls" class="video-js vjs-default-skin" data-setup="{}" preload="auto">
    <source src="/downloads/6682x392q?file=webm&locale=en" type="video/webm">
    <source src="/downloads/6682x392q?file=mp4&locale=en" type="video/mp4">
    Your browser does not support the video tag.
  </video>

@jcoyne Thanks  I'm thinking https://github.com/projecthydra-labs/hyrax/pull/940 you just opened helps clear this up.  I assumed ffmpeg would be creating derivatives by default.  If the default for config.enable_ffmpeg is false then we need to enable it.
We definitely have ffmpeg installed correctly.  Since embedded audio is working, we assumed ffmpeg was doing what it needed for videos as well.
I'll enable the config option and will report back here on what I'm seeing.

Enabling ffmpeg derivatives does fix the embedded player for us without any tweaks needed in the view.  So I'm closing this issue.  No fix is needed.  Thanks @jcoyne


Improve the dump and load feature

The dump and load feature needs to be extended to handle HTTP endpoint calls like create_block, flush, send_message_to_l2, consume_message_from_l2

Since the restart feature was added consider adding test: dump, restart, load.


Search Box

Added a search box that suggests all the countries through the API.
It is a basic API called through the JS Functions & fetches the data.
Adjusted the height of the search-box for the CSS working.

@HridoyHazard Sent you the PR...can you look into it

@HridoyHazard can you have a look at the PR?

@HridoyHazard thoughts on the PR?

@HridoyHazard, whenever free do verify the PR

@HridoyHazard , whenever free do verify the PR

@HridoyHazard , whenever free do verify the PR


Cant get it working

What link do you want to watch: https://www.ebay.ca/itm/283116687683
Traceback (most recent call last):
File "ebay-watcher.py", line 237, in
in_link = input("What link do you want to watch: ").strip()
File "", line 1
https://www.ebay.ca/itm/283116687683
^
SyntaxError: invalid syntax
Anyone knows a solution?

What was the solution that you found @Christian1998? I'm stuck at the same point?


Go to page based on answer not working

Go to page based on answer not working ..its working for continue for next page only.
Few observations on the survey

if i edit the default survey the Go to page based on answer is  working for the existing pages
If the create a new page to the existing survey it is not navigating to the newly created page
3)If i reset the survey and add the new survey with  new pages , Go to page based on answer is not at all  working
Is it an known issue?
I tested in the below url for bootstrap version
http://wasiluk.io/angular-surveys/

Is it possible to control whether a user can go to next page (or specific page)? For example, say I have two pages. On the first page, if the user answers "no" to a question, I'd like the survey to end. If they were to answer "yes", then they should be able to go to the next page.


High-Level Feedback

@brenocq I had a chance to play around with your excellent library this morning and wanted to share some intiial thoughts. Overall the quality of this library is very good and I am quite impressed by it. In particular, I think you nailed interactions, and the API will be super easy for existing ImPlot/ImGui useres. Here's some more detailed thoughts:
API / Header

Being virtually identical to ImPlot, I don't have much feedback other than to say great job!
Document PlotX functions
Consider putting the MIT license in your headers

Interactions /  Widget Behavior

For dragging/selecting/scrolling axes, I naturally want to hover the labels instead of the edge of the plot next to them. Consider making the label quad the widget, similar to ImPlot.
Right clicking a plane currently shows context menu actions for the axis normal to that plane. This is a bit weird, I think it should show menus for the two axes in that plane instead.
ImPlot weights zooming depending on where the cursor is in location horizontally/vertically in the plot; I don't think that is happening in ImPlot3D
Consider adding the clipping flag to the context menu
Consider allowing the user to define the shape of the 3D plot (i.e. it is currently a cube; what if I want a prism or to enlongate one axis?)
I don't find the (x,y,z) display particularly useful or intuitive in 3D mode; either consider only displaying it when rotated to a plane (2D mode); or consider displaying it as e.g (x: 123, y: 456) if the z plane is hovered etc. I think text labels (e.g. "x:") will be a nice addition no matter what you decide to do.

Appearance / Styling

Consider adding shading/gradients to plot planes (e.g. darker toward the corners) to add a depth effect

Building

I encounted several conversion of double to float build warnings

ImPlot Sharing Potential
These are things I think we could converge toward shared implementation between ImPlot and ImPlot3D, if we wanted:

Legend drawing/behavior
Context menus
Colormaps and associated API
Styling vars/colors (ImPlot may need to add a few)
Presumably a lot more as I dive into the library...

I would be open to a having a conversation regarding this. Feel free to reach out over email (you'll find it on my website) and we can setup a Zoom meeting, if you'd like.
Visual Bugs
Some strange sorth behavior:

Lines being drawn behind surfaes:

@epezent thank you A LOT for taking the time to test the library and listing all the problems that you found until now! I created a discussion/issue for each of your bullet points to make it easier to track their progress and (hopefully) distribute the workload with other contributors.

Overall the quality of this library is very good and I am quite impressed by it. In particular, I think you nailed interactions, and the API will be super easy for existing ImPlot/ImGui users.

❤

Being virtually identical to ImPlot, I don't have much feedback other than to say great job!

🕺🏻

Document PlotX functions
Consider putting the MIT license in your headers

#27 - Yes! The code is very poorly documented as of now, I'll make sure to have proper documentation in the next few days. I'll also add the license to all files, this sounds great.

For dragging/selecting/scrolling axes, I naturally want to hover the labels instead of the edge of the plot next to them. Consider making the label quad the widget, similar to ImPlot.

#28 - I highly agree the interaction with an axis should be done with a quad that covers both tick labels and axis labels, instead of edges. I initially wanted to implement it like this, but ended up implementing it with edges because it was easier 😛

Right clicking a plane currently shows context menu actions for the axis normal to that plane. This is a bit weird, I think it should show menus for the two axes in that plane instead.

#29 - I also find it very weird. I tried to move fast and left this one broken behind kkkkk the plane context menu needs to be implemented.

ImPlot weights zooming depending on where the cursor is in location horizontally/vertically in the plot; I don't think that is happening in ImPlot3D

#30 - It is not happening! I will take a look into the ImPlot implementation to also have it with the ImPlot3D.

Consider adding the clipping flag to the context menu

#31 - Ooops!

Consider allowing the user to define the shape of the 3D plot (i.e. it is currently a cube; what if I want a prism or to enlongate one axis?)

#15 - This is actually a feature I was already planning to implement! I do agree it is needed for many applications. There is also this world mode #17 that is a bit of a wild card and I'm not 100% about it.

I don't find the (x,y,z) display particularly useful or intuitive in 3D mode; either consider only displaying it when rotated to a plane (2D mode); or consider displaying it as e.g (x: 123, y: 456) if the z plane is hovered etc. I think text labels (e.g. "x:") will be a nice addition no matter what you decide to do.

#32 - I do agree they don't look great today, I think a bit more research is needed to see how other libraries display this information. I agree text labels (e.g. "x:") are a great addition!

Consider adding shading/gradients to plot planes (e.g. darker toward the corners) to add a depth effect

#33 - I agree that overall we lack a bit of depth information from the plots. It sounds great to play with gradient colors to bring back some of the depth information. Additionally, we could try to improve depth perception by adding shadows, or some kind of lighting. Even though we can't do per-pixel shading with the ImGuiDrawList, we could potentially do per-vertex shading.

I encounted several conversion of double to float build warnings

I believe this should be now fixed! @Lumengine's PR #11 fixed many std::-related problems and double/float conversion problems. Let me know if you still have these problems in the latest main branch.

These are things I think we could converge toward shared implementation between ImPlot and ImPlot3D, if we wanted:

Legend drawing/behavior
Context menus
Colormaps and associated API
Styling vars/colors (ImPlot may need to add a few)
Presumably a lot more as I dive into the library...

#34 - This sounds just amazing, I would love to keep the duplicated code to a minimum to improve maintainability ❤

I would be open to a having a conversation regarding this. Feel free to reach out over email (you'll find it on my website) and we can setup a Zoom meeting, if you'd like.

Yes sir! I would love to, I'll send you the email soon. Looking forward to talking with you @epezent!

#35 - Very nasty-looking cube right there, I opened the issue.

#36 - Currently, lines are correctly clipped to the plot box area (only the segment that lies inside the box is rendered). The triangle clipping still needs to be implemented, and it is also the cause of some weird triangles when meshes are moved outside the plot box area.

Thank you a lot again for the amazing review! I will probably take some days to finish implementing all of them because I'm on vacation right now. Can't wait to have all of them fixed, if anyone else wants to contribute you are more than welcome!


Incorrectly submitted issue, please delete.

I am recording a basic tutorial on the use of GitHub. Unfortunately, I accidentally submitted this issue during the demonstration, and I am truly sorry. However, it seems that I am unable to delete this issue. If you can, please help me delete it.


extensions bug

BEFORE MAKING A BUG REPORT, PLEASE READ THE
CONTRIBUTING GUIDE.
BUG REPORTS ARE NOT FOR SUPPORT REQUESTS. IF YOU JUST NEED HELP,
ASK IN THE DISCORD SERVER.
BUG REPORTS THAT DO NOT PROPERLY FILL
IN THE TEMPLATE MAY BE IGNORED OR REJECTED.

What is happening?
I'm following the every step of installment. Then I tap "ctrl+alt+e" open the menu, and tick some extentions. Then reloaded, noting has changed.
Versions: notion-enhancer v0.11.0
Is there any method to solve this problem? Thanks for your attention!
What should be happening?
Screenshots (if applicable):
Operating system/browser name & version:
notion-enhancer and/or notion-repackaged version:
notion-enhancer configuration (enabled/disabled mods and their settings):

i can't help you if just say "some extensions." every extension does a different thing and some extensions work at the moment and some don't.
have a look through the issues here to see if any match the problems you're having first: https://github.com/notion-enhancer/repo/issues
then if there are any extensions broken that haven't been reported yet, create a bug report for each of those separate extensions (with as much information as possible) in https://github.com/notion-enhancer/repo/issues


Make permalink indicators not user-selectable

Bug description from https://github.com/ansible/ansible-documentation/issues/245:

When I double-click on section header to copy it to my code I don't want to finish with permalink-emoji within my YAML. :-)

Making the permalink indicator (.headerlink) not user-selectable fixes this.

Tested this fix locally on the Ansible docs and seems to work, thanks @felixfontein !


[Addition]: Location spoofing in Hampshire UK

Hotspot b58 Addresses
112bsJAVMEmhNcZtbfGGMZ1AcCJHxpcCvsNKq7bbnLnziuMtwptd
Discord Handle
No response
Reason(s)
This hotspot is clearly spoofing it's location. The hotspot owner has 2 hotspots in their wallet, the other one is quite correctly located at a 60 metres high tower located in a flat area of Hampshire UK. The level of rewards and witnessing could only be achieved from this height, and the tower where the legitimate hotspot is located is the only place in the entire area that would give this degree of coverage. It is obvious the owner has installed a second hotspot at the same location and asserted the location 2 hexes away and even set the height at 60 metres. This is an impossible location as the tower is the tallest building for many miles around in an otherwise rural and level location in Hampshire UK. Despite only being active for 20 days (at the time of reporting) the hotspot is already ranked as 2,300 globally. The attached image of the 60m tower illustrates this point.

Wallet: 13vNKKhHxZyzjP8rJXAiudKvgp8tbeXMoRxvqMdyZn9P5QC3c36

There is no way there are 2 separate 60m towers anywhere in this area.

The owner of this hotspot has now set up another hotspot on the same tower with what appears to be a directional antenna pointed west. There are now three hotspots on the same tower, with only one asserted in the correct location.
The third hotspot address:
11DPQ5rLCZmEu8aQemCTB8WmUxgV7qJSkcRhwGJbsrCEAvStngQ
All three hotspots are in the same wallet.

Another hotspot has been installed on the same tower and asserted at another location a few hexes away. All four are in the same wallet.

Another 2 hotspots have now been installed in the same building and incorrectly asserted in separate hexes.

Here are the asserted locations of the reported hotspots. One is in the middle of a woods, one in a river and two others in the middle of fields.

https://discord.com/channels/404106811252408320/730245124004773948/1026843176218140714
Admitted to the crime


Support package.json engines properties

Utilize the engines property in the bundle's root package.json
Update nvm
Installs LTS of node argon
Install latest version of npm
Add package.json to help track releases

TODO

[ ] Build image --> onmodulus/build-meteor:1.5.0
[x] Test on dev
[x] Test to ensure it's reverse compatible

Closes #31

I tested to make sure it's reverse compatible. All looks good! 👍 💯


feat: added --data and --method

data allows the user to input data to pass to the body of the requests method allows the user to change the http method to bruteforce with

Also i put alot of information behind the -v verbose because of how cluttered the user interface was getting at times with all the errors

closes #15 and #16


ANC Logic - Danger Signs Addition [1h]

Issue
In order to diagnose some issues in ANC @ Health Centers, we need to add some symptoms to the Danger Signs activity.
Here is the complete list of danger signs with the new additions highlighted in blue:

The design already exists, we are just adding more options. Here is the design with the new options for reference:

To Do:

Add new options
Style per design

QA Analysis
##W Works as designed

New options added:


Minima coins stuck in mempool

My tokens are stuck in the mempool after creating a token, and also sending some tokens out to random addresses.
Here's a screenshot:

Minima @ 16/02/2021 15:22:37 [3.1 MB] : Service : onCreate Minima @ 16/02/2021 15:22:37 [3.3 MB] : ********************************************** Minima @ 16/02/2021 15:22:37 [3.3 MB] : *  __  __  ____  _  _  ____  __  __    __    * Minima @ 16/02/2021 15:22:37 [3.3 MB] : * (  \/  )(_  _)( \( )(_  _)(  \/  )  /__\   * Minima @ 16/02/2021 15:22:37 [3.3 MB] : *  )    (  _)(_  )  (  _)(_  )    (  /(__)\  * Minima @ 16/02/2021 15:22:37 [3.3 MB] : * (_/\/\_)(____)(_)\_)(____)(_/\/\_)(__)(__) * Minima @ 16/02/2021 15:22:37 [3.3 MB] : *                                            * Minima @ 16/02/2021 15:22:37 [3.3 MB] : ********************************************** Minima @ 16/02/2021 15:22:37 [3.3 MB] : Welcome to Minima. For assistance type help. Then press enter. Minima @ 16/02/2021 15:22:37 [3.3 MB] : Minima files : /data/user/0/global.org.minima/files Minima @ 16/02/2021 15:22:37 [3.3 MB] : Minima version 0.97.12 Minima @ 16/02/2021 15:22:37 [3.3 MB] : Daemon Started.. Minima @ 16/02/2021 15:22:37 [3.4 MB] : Service : Initialise begin.. Minima @ 16/02/2021 15:22:38 [4.2 MB] : CONNECTED TO SERVICE Minima @ 16/02/2021 15:22:38 [4.3 MB] : ACTIVITY : LISTENING FOR SYNC COMPLETE.. Minima @ 16/02/2021 15:22:49 [2.4 MB] : Loading DB.. please wait.. Minima @ 16/02/2021 15:22:55 [56.2 MB] : Checking DB.. 100% Minima @ 16/02/2021 15:22:56 [61.0 MB] : Network Startup.. Minima @ 16/02/2021 15:22:56 [61.1 MB] : Minima server started on 9001 Minima @ 16/02/2021 15:22:56 [61.6 MB] : RPC Server started on port : 9002 Minima @ 16/02/2021 15:22:56 [61.7 MB] : WebSocket Server started on port 9003 Minima @ 16/02/2021 15:22:56 [61.7 MB] : Attempting to connect to <IP_ADDRESS>:9001 Minima @ 16/02/2021 15:22:56 [61.8 MB] : Service : Initial Sync listen for complete.. Minima @ 16/02/2021 15:22:56 [61.8 MB] : Service : Initialise end.. Minima @ 16/02/2021 15:22:57 [73.0 MB] : Greeting Message : 339.1 KB Minima @ 16/02/2021 15:22:57 [75.4 MB] : DIFFERENT VERSION ON GREETING 0.97.10 Minima @ 16/02/2021 15:22:57 [75.4 MB] : ACTIVITY SYNC COMPLETE : [ CONSENSUS_NOTIFY_INITIALSYNC,  ] Minima @ 16/02/2021 15:22:57 [75.4 MB] : Service : Install all DAPPS.. Minima @ 16/02/2021 15:22:57 [82.1 MB] : GREETING mytip:118461 mycascade:114141 greetingtip:118474 greetingcascade:114080 Minima @ 16/02/2021 15:22:57 [82.1 MB] : ACTIVITY : GET STARTED Minima @ 16/02/2021 15:22:57 [82.5 MB] : Greeting Crossover block found : 118461 Minima @ 16/02/2021 15:22:58 [84.9 MB] : TxPoW List Message : 15.3 KB Minima @ 16/02/2021 15:22:58 [48.9 MB] : INVALID BLOCK DIFFICULTY 118462 Minima @ 16/02/2021 15:22:58 [63.9 MB] : Recalculate MiniDAPPS @ <IP_ADDRESS> Minima @ 16/02/2021 15:22:58 [63.9 MB] : All database connections closed Minima @ 16/02/2021 15:22:58 [64.6 MB] : ACTIVITY SYNC COMPLETE : [ CONSENSUS_NOTIFY_INITIALSYNC,  ] Minima @ 16/02/2021 15:22:58 [64.6 MB] : Service : Install DAPPS - not first run.. Minima @ 16/02/2021 15:22:58 [64.7 MB] : ACTIVITY : GET STARTED Minima @ 16/02/2021 15:22:58 [64.8 MB] : MiniDAPP server started on port 9004 Minima @ 16/02/2021 15:23:04 [57.0 MB] : Maxima Server started on port : 9005 Minima @ 16/02/2021 15:23:11 [114.0 MB] : NEW BALANCE : [{"tokenid":"0x00","token":"Minima","total":"1000000000","confirmed":"50","unconfirmed":"0","mempool":"0","sendable":"50"}] Minima @ 16/02/2021 15:23:28 [118.7 MB] : Create SQL Connection to /data/user/0/global.org.minima/files/webroot/minidapps/0x8668421E432F6B5E66683BAF4C0C51AA9937B71B/_sqldb Minima @ 16/02/2021 15:23:42 [37.4 MB] : START TXPOW MINING {"inputs":[{"coinid":"0xFEED50FEED50FEED50FEED50","address":"0x1F5215419EE7D3A2D2EAF4235E68F5072B0242E5","mxaddress":"MxD5JBKQM647J2FUXK6QRV42HVA4VQEQXF","amount":"50","tokenid":"0x00","floating":false}],"outputs":[{"coinid":"0x00","address":"0x39940875EE2FCF6974D85AC1044BD2CEC70E89D5","mxaddress":"MxHGKAQ5POF7HWS5GYLLAQIS6SZ3DQ5COV","amount":"25","tokenid":"0x00","floating":false},{"coinid":"0x00","address":"0xA04E4071E5C0BA60B13AD9D97902E77A89AAD012","mxaddress":"MxUBHEA4PFYC5GBMJ23HMXSAXHPKE2VUAS","amount":"25","tokenid":"0x00","floating":false}],"state":[],"linkhash":"0x00"} Minima @ 16/02/2021 15:23:43 [59.8 MB] : TXPOW MINED! Minima @ 16/02/2021 15:23:43 [60.2 MB] : NEW BALANCE : [{"tokenid":"0x00","token":"Minima","total":"1000000000","confirmed":"50","unconfirmed":"0","mempool":"50","sendable":"50"}] Minima @ 16/02/2021 15:26:25 [37.7 MB] : START TXPOW MINING {"inputs":[{"coinid":"0xE23E0D0504897F386068A5901BAB45969D47FFB9C1F9876C2524535EFDAF743376317D4DB1FC816B759AE10358A42AB747338D0326CD35332A0E04F801E4DF71","address":"0x6FA6C3078B6F8CC59D88B8D47C661CD34E891707","mxaddress":"MxN6TMGB4LN6GMLHMIXDKHYZQ42NHISFYH","amount":"25","tokenid":"0x00","floating":false}],"outputs":[{"coinid":"0x00","address":"0x482F51D3E6E86822884E54B3DB7DC675698373E5","mxaddress":"MxJAXVDU7G5BUCFCCOKSZ5W7OGOVUYG47F","amount":"0.003658","tokenid":"0xFF","floating":false},{"coinid":"0x00","address":"0x4A75A29FAE3F5C0EED30B82070F9B49CB7B127D2","mxaddress":"MxJJ22FH5OH5OA53JQXAQHB6NUTS33CJ6S","amount":"24.996342","tokenid":"0x00","floating":false}],"state":[],"tokengen":{"tokenid":"0x76CE7F4DFB12763DE366C42C65A5DBDBD76B2D14AB6D1B0D34AD2E43606B3DAFA6F2ABE7CA02B64270BB6E6E2DF09E4FDF6766B765AF6DAD539C976B35F61D98","token":"M1","description":"","icon":"","proof":"","total":"3658","script":"ASSERT FLOOR ( @AMOUNT ) EQ @AMOUNT LET checkout = 0 WHILE ( checkout LT @TOTOUT ) DO IF GETOUTTOK ( checkout ) EQ @TOKENID THEN LET outamt = GETOUTAMT ( checkout ) ASSERT FLOOR ( outamt ) EQ outamt ENDIF LET checkout = INC ( checkout ) ENDWHILE RETURN TRUE","coinid":"0x00","totalamount":"0.003658","scale":"6","scalefactor":"1000000"},"linkhash":"0x00"} Minima @ 16/02/2021 15:26:27 [60.2 MB] : NOTFINISHED 26593 Minima @ 16/02/2021 15:26:27 [65.4 MB] : START TXPOW MINING {"inputs":[{"coinid":"0xE23E0D0504897F386068A5901BAB45969D47FFB9C1F9876C2524535EFDAF743376317D4DB1FC816B759AE10358A42AB747338D0326CD35332A0E04F801E4DF71","address":"0x6FA6C3078B6F8CC59D88B8D47C661CD34E891707","mxaddress":"MxN6TMGB4LN6GMLHMIXDKHYZQ42NHISFYH","amount":"25","tokenid":"0x00","floating":false}],"outputs":[{"coinid":"0x00","address":"0x482F51D3E6E86822884E54B3DB7DC675698373E5","mxaddress":"MxJAXVDU7G5BUCFCCOKSZ5W7OGOVUYG47F","amount":"0.003658","tokenid":"0xFF","floating":false},{"coinid":"0x00","address":"0x4A75A29FAE3F5C0EED30B82070F9B49CB7B127D2","mxaddress":"MxJJ22FH5OH5OA53JQXAQHB6NUTS33CJ6S","amount":"24.996342","tokenid":"0x00","floating":false}],"state":[],"tokengen":{"tokenid":"0x76CE7F4DFB12763DE366C42C65A5DBDBD76B2D14AB6D1B0D34AD2E43606B3DAFA6F2ABE7CA02B64270BB6E6E2DF09E4FDF6766B765AF6DAD539C976B35F61D98","token":"M1","description":"","icon":"","proof":"","total":"3658","script":"ASSERT FLOOR ( @AMOUNT ) EQ @AMOUNT LET checkout = 0 WHILE ( checkout LT @TOTOUT ) DO IF GETOUTTOK ( checkout ) EQ @TOKENID THEN LET outamt = GETOUTAMT ( checkout ) ASSERT FLOOR ( outamt ) EQ outamt ENDIF LET checkout = INC ( checkout ) ENDWHILE RETURN TRUE","coinid":"0x00","totalamount":"0.003658","scale":"6","scalefactor":"1000000"},"linkhash":"0x00"} Minima @ 16/02/2021 15:26:28 [62.9 MB] : TXPOW MINED!   Minima @ 16/02/2021 15:33:53 [69.2 MB] : NEW BALANCE : [{"tokenid":"0x00","token":"Minima","total":"1000000000","confirmed":"50","unconfirmed":"0","mempool":"98.996342","sendable":"0"}]

fixed in 97.13


Support RN 0.43.x

After installing RN 0.43.x, I got those warning using yarn install:
warning "<EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning "<EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>- 0.42.x".

RN 0.43.x depends on react 16.0.0-alpha.6. Is it possible to make react-native-storybook support RN 0.43x and react 16.0.0-alpha.6?

Curious to know what is the effort here. How can we help?

Please open an issue over at the new repo if you're still experiencing this issue, thanks!


BED vs. JSON lines

JSON lines is an interesting alternative to CSV because it unambiguously maps values to Python equivalents.
Making use of the JSON lines format would simplify reading in data from flat files. On the other hand it would mean a departure from the BED format. But Chanjo was already pushing the limits of what BED was intended for anyways.
There would of course be a transition period where both formats would be supported.
Would be interesting to discuss the merits of a switch!

There's an interesting Python package called Boltons that provides support for reading .jsonl files!


Update process to 0.10.0

Includes a much faster implementation of process.nextTick - https://github.com/defunctzombie/node-process/pull/29

Bumping this one. Any chance of getting it merged soon? Thanks!

Thanks for the PR! Released as 8.1.0.

@feross @devongovett this PR makes Q unusable.
See https://github.com/substack/node-browserify/issues/1179


Pub/Sub: IAM Permissions Required to Subscribe Unclear

If I create an IAM service account with the View and Subscribe roles, I am unable to subscribe to an existing topic in pub/sub. It seems I must use an admin role. Some clarification on the roles required to do various things would be nice. I'm not sure if the issue is being cause by the node client or if I am actually missing roles that are needed.
Environment details

OS: Mac OSX
Node.js version: v6.3.0
npm version: 3.10.3
@google-cloud/pubsub version: 0.1.1

Steps to reproduce
const pubsub = require('@google-cloud/pubsub');

const JOB_QUEUE = 'new_job';

const pubsubClient = pubsub({
    projectId: 'myproject-goes-here',
    keyFilename: '/Users/Mark/creds.json'
});

const newJobTopic = pubsubClient.topic(JOB_QUEUE);

newJobTopic.subscribe(JOB_QUEUE, {
    reuseExisting: true
}, function(err, subscription) {
    console.error(err); // Error: User not authorized to perform this action.
});

If I create a service account that has an admin pub/sub role, I can connect to the service as expected.

@tmatsuo any insight?

Hi @stephenplusplus @tmatsuo
Sorry to bother you guys again, but I would really like to know the answer to this. If I need to have admin privileges to publish to a topic then I need to reconsider my application design or find a new pub/sub provider. Thanks!

If I need to have admin privileges to publish to a topic then I need to reconsider my application design

Did you mean subscribe to a topic?

If I need to have admin privileges to subscribe to a topic then I need to reconsider my application design

You shouldn't need admin rights to publish to a topic... If you do, that's just broken. Can you confirm if that's happening? You should be required to have write privileges on the topic in order to publish, but I don't think that's the issue you're seeing.
I suspect that the issue here is that "subscribing" here (with auto-create) is actually "creating a subscription", which the "Pub/Sub Subscriber" role should allow you to do, but doesn't appear to do... (https://cloud.google.com/pubsub/access_control#tbl_roles)
Can you test adding the pubsub.subscriptions.create permission on the project for your service account? If that works, then we know the fix, and I can go to the Pub/Sub team and we can figure out what the right way to solve this is...
If that does work, I'd guess that the right fix is to allow "subscribers" to create subscriptions, as well as update and delete subscriptions they've created.

@jgeewax My apologies for the typo. I did mean to say subscribe, as that is what is in my code sample. I can try your suggestions and get back to you later today. Thanks!

@MarkHerhold how did it go?

Sorry for the delay. I chose to pursue a solution that didn't involve the use of GCP's Pub/Sub. I will still try to answer to your question though.

Can you test adding the pubsub.subscriptions.create permission on the project for your service account?

Where can I do this? I don't see anything in the console that corresponds to what you are asking me to do. Is there a gcloud command that you have in mind?
Here are the current set of permissions that I have on the service account:

According to this table, pubsub.subscriptions.create is a permission under the Editor role. So from the drop down, there should be a Pub/Sub Editor role which would include that permission. Hopefully that helps, thanks for trying this stuff out!

I have the same issue. I have two service accounts: one for publishing and other for subscribing. The 1st is OK and I can publish to a topic. The second always returns me { [Error: User not authorized to perform this action.] code: 403, metadata: Metadata { _internal_repr: {} } }.
The same happens with the editor role.
I really don't know what's happening, since I did it equal to the 1st one.
publisher: https://github.com/embatbr/livermore-collectors
subscriber: https://github.com/embatbr/livermore-ingestors

@stephenplusplus

I tried with PubSub Admin role. There was some errors due to node version (4 instead of 6). I updated and it was running. However, the PubSub Subscriber role still has authentication problems.

This isn't immediately clear from most examples, but the topic.subscribe() call attempts to create a new subscription each time it runs (see discussion here: https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1257).
Here's a pattern that worked for me based on this comment after adding "Pub/Sub Viewer" and "Pub/Sub Subscriber" IAM permissions directly on the subscription (no project-wide permissions necessary):
const pubsub = require('@google-cloud/pubsub')({ projectId: PROJECT_ID })
const topic = pubsub.topic(TOPIC_NAME)
const subscription = topic.subscription(SUBSCRIPTION_NAME)

subscription.get({ autoAck: true }, (err, subscription) => {
   // topic.subscribe() handlers go here
})

Confirming that if I create an IAM service account with the subscriber role I am unable to subscribe to a topic in Pub/Sub - need to use the admin role.

This issue doesn't seem to be specific to Node, I've got the problem as well with Go...

I am having the same issue. It seems that editor role does not work to create topics or subscription in golang. Also one the error was telling that another service account that's the one I am using did not have permission, which confused the hell out of me.

You need to distinguish between using an existing subscription (pubsub.subscriber role is enough) and creating a new subscription for an existing topic (pubsub.subscriber is NOT enough).
For the latter case, the problematic permission (not role) is pubsub.subscriptions.create. Unfortunately, only the pubsub.editor role has that permission, and it needs to be granted on project level. This means the user has then permission to modify all topics and subscriptions in the project!
To work around this issue, just create a custom role. Put the pubsub.subscriptions.create permission in that role. Then assign the role to the user (project level) and give the user the subscriber role on the specific topic.

I am facing the same issue. But as @thedmi has mentioned I am not trying to create a new subscriber but to use an existing subscriber. Please find the node sdk error below:
Error: User not authorized to perform this action.
at Immediate.onConnectionStatus (/Users/vizsatiz/Documents/hub/messaiapi/node_modules/@google-cloud/pubsub/src/connection-pool.js:289:21)
at runCallback (timers.js:764:11)
at tryOnImmediate (timers.js:734:5)
at processImmediate (timers.js:716:5)
at process.topLevelDomainCallback (domain.js:102:23)
Emitted 'error' event at:
at ConnectionPool. (/Users/vizsatiz/Documents/hub/messaiapi/node_modules/@google-cloud/pubsub/src/subscription.js:1024:10)
at ConnectionPool.emit (events.js:180:13)
at ConnectionPool.emit (domain.js:422:20)
at Immediate.onConnectionStatus (/Users/vizsatiz/Documents/hub/messaiapi/node_modules/@google-cloud/pubsub/src/connection-pool.js:291:14)
at runCallback (timers.js:764:11)
[... lines matching original stack trace ...]
at process.topLevelDomainCallback (domain.js:102:23)

I am facing the same issue. I am not creating a new subscriber rather listening to an existing subscriber that I created on the GCP console. Only a service account with Pub/Sub is able to subscribe, all others are getting a "User not authorized to perform this action."
SDK used: NodeJs
Permissions Tried: Pub/Sub subscriber, Pub/Sub editor
It only worked with Pub/Sub Admin. @thedmi Are you sure it worked for you?

Why is this issue closed?
I am hitting the same exact problem. I am trying to attach to an existing subscription and getting PermissionDenied error using roles/pubsub.editor.
I use GO sdk, but that seems to not matter, as this seems to be a problem in Google's Pub/Sub IAM.

For me it turned out I had to assign ALL pubsub roles to the ServiceAccount to have it publish/subscribe messages. Literally just assing all the 6 or 7 roles/pubsub.* to the user and it will work, but that's a pity...

I realize that this is closed but leaving this here anyway for anyone else who finds it.
Bug Report
NOTE: Not really sure if this is a "bug" as it seems to be working the way it was designed but it's very unclear on how to use the standard roles provided to subscribe and consume messages from a topic.
NOTE: All roles were granted to the service account from the subscription not from the project
When creating service accounts to use our Pub/Sub topics I gave the accounts that only need to read from topics the Pub/Sub Subscriber role. The name of the role implies that any account that has that role should be able to read from a topic. This however wasn't the case, I encountered PermissionDenied errors. So I began experimenting with different combinations of standard roles trying to find the least permissive set of roles that would allow this.
The least permissive standard role that works is Pub/Sub Editor. Just looking at the name, this role would not be my  first choice for a read only action. This role also contains pubsub.subscriptions.delete which is a dangerous permission to have for a service account meant to be "read" only (it does actually need to update the topic to ack the message which is actually an update to the topic but it's expected for a consumer in this context).
The least permissive set of permissions to achieve the goal of reading form a topic, processing and acking can be accomplished with the following custom role:
$ gcloud iam roles describe --project my-project my_custom_role
description: 'Created on: 2018-08-09'
etag: ...
includedPermissions:
- pubsub.subscriptions.consume
- pubsub.subscriptions.get
- pubsub.subscriptions.update
name: projects/my-project/roles/my_custom_role
stage: ALPHA
title: my_custom_role

Repro Steps

Create a topic, my-topic
Create a subscription for my-topic named my-topic-subscription
Create a service account my-svc-acct
Grant the Pub/Sub Editor role to my-svc-acct via the subscription, not via the project.
Attempt to do a receive

Expected
A message is received
Actual
An error is received:
rpc error: code = PermissionDenied desc = User not authorized to perform this action.

Minimum Perms Needed to Subscribe
After some testing, I determined this is the minimum set of permissions needed to subscribe and process messages. Code used for testing provided below.
$ gcloud iam roles describe --project my-project my-custom-role
description: 'Created on: 2018-08-09'
etag: ...
includedPermissions:
- pubsub.subscriptions.consume
- pubsub.subscriptions.get
- pubsub.subscriptions.update
name: projects/my-project/roles/my-custom-role
stage: ALPHA
title: SRE Service Subscriber

$ GOOGLE_APPLICATION_CREDENTIALS=./creds.json go run tester.go my-topic-subscription my-topic

Testing topic perms projects/my-project/topics/my-topic
	NO PERMS!
================================================================================

Testing subscription perms projects/my-project/subscriptions/my-topic-subscription
	Allowed: pubsub.subscriptions.consume
	Allowed: pubsub.subscriptions.get
	Allowed: pubsub.subscriptions.update
================================================================================

Starting Receive...
hello

Test Code
Pushing data via CLI:
gcloud pubsub topics publish my-topic --message "hello"

package main

import (
	"context"
	"fmt"
	"os"
	"errors"
	"strings"
	"cloud.google.com/go/pubsub"
)

const (
	project = "my-project"
)

var (
	topicPerms = []string{
		"pubsub.topics.publish",
		"pubsub.topics.delete",
		"pubsub.topics.update",
		"pubsub.topics.getIamPolicy",
		"pubsub.topics.setIamPolicy",
	}

	subPerms = []string{
		"pubsub.subscriptions.consume",
		"pubsub.subscriptions.get",
		"pubsub.subscriptions.delete",
		"pubsub.subscriptions.update",
		"pubsub.subscriptions.getIamPolicy",
		"pubsub.subscriptions.setIamPolicy",
	}
)

func hr() {
	fmt.Println("")
	fmt.Println(strings.Repeat("=", 80))
	fmt.Println("")
}

func printPerms(perms []string) {
	if len(perms) > 0 {
		for _, perm := range perms {
			fmt.Printf("\tAllowed: %v\n", perm)
		}
	} else {
		fmt.Println("\tNO PERMS!")
	}
}

func main() {
	subName := os.Args[1]
	topicName := os.Args[2]

	client, err := pubsub.NewClient(context.Background(), project)
	if err != nil {
		fmt.Println(err.Error())
		return
	}

	topic := client.TopicInProject(topicName, project)
	sub := client.SubscriptionInProject(subName, project)

	hr()
	fmt.Println("Testing topic perms " + topic.String())
	tperms, err := topic.IAM().TestPermissions(context.Background(), topicPerms)
	printPerms(tperms)

	hr()
	fmt.Println("Testing subscription perms " + sub.String())
	perms, _ := sub.IAM().TestPermissions(context.Background(), subPerms)
	printPerms(perms)

	hr()
	fmt.Println("Starting Receive...")
	err = sub.Receive(context.Background(), func(ctx context.Context, msg *pubsub.Message) {
		fmt.Println(string(msg.Data))
		msg.Ack()
		return
	})
	if err != nil {
		err = errors.New(fmt.Sprintf("error receiving from %s: %s", subName, err.Error()))
		fmt.Println(err)
		return
	}
}

I was faced the same problem when subscribing to an existed subscription. I received PermissionDenied with Pub/Sub subscriber, but OK with Pub/Sub Editor. Have no idea why :|

@Conky5 sorry, Is it fixed? Same problem here with Node @google-cloud/pubsub 0.22.2

@bgbraga if you're referring to my pull request fixing the underlying google pubsub iam subscription issue, no, that change was for a different purpose...

@Conky5  : Is this fixed in the latest version?

@Conky5  : Is this fixed in the latest version?

applying the pubsub.editor role for the workload on the specific topic yields: 7 PERMISSION_DENIED: User not authorized to perform this action
only by making the workload a project wide pubsub editor does that message go away


CPLAT-4765 Implement getDerivedStateFromProps lifecycle method

Description:
Deprecated componentWillReceiveProps for the new getDerivedStateFromProps introduced in react 16
Testing:

[ ] CI Passes
[ ] Try using getDerivedStateFromProps

IMPORTANT
For a clean diff check, use this:
https://github.com/cleandart/react-dart/pull/174/commits/4c1c62bf3b6277b9c70c86e740132fde9a5639cb this will have all changes that I did

last commit should be merge in 5.0.0-wip

+10

+1 a040c83ffe9b73c6a0859f16b76f9d07d3e1996f


Implement DCAT feed

Please merge pull request, sanitise it, and push.

I can't spot any regressions when I compare http://ipt.gbif-uat.org/dcat with the example feed http://ontwikkeldata.inbo.be/ipt-dcat/dcat
Closing issue.


Right clicking on custom device root item throws error 1162

We're using the 2020 build of this custom device in VS 2020 R2.  When we click on any Instrument Addon custom device instance in the system explorer in any VS 2020 project, we get error 1162, so we're unable to add any messages.  This does not happen with any other custom device.  We haven't tested in other versions or on other PCs.  Is this reproducible on others' PCs?  Below is an image of the error in a brand new project:

@droohy Thank you for reporting this issue, we are currently looking at it.
I understood that you built your own Instrument Addon, is that correct? Which branch did you use? I'm asking because we're actively developing in the main branch, which means that code from that branch can be less stable than code from release/20.3 branch, which was already released. And if you don't require any code modifications in Instrument Addon, then I suggest you grab the latest release package from here: https://github.com/ni/niveristand-instrument-addon-custom-device/releases/tag/v20.3.0, which is compatible with VS 2020 R2 and does not exhibit the behavior you noticed:

@bogdanp-ni Sorry I wasn't clear in my original post.  The "2020 build of this custom device" I referred to in my original post is the 20.3 release from the github page you linked.  We downloaded and unzipped "Instrument_Addon_2020.zip" and installed the package.  I have already tried uninstalling and reinstalling the package with a fresh download of the .zip file, but that did not resolve the problem.  At first I thought it was maybe an upgrade issue related to our specific sys def since we had used a previous version of VS and this custom device built for us by Wineman, but the issue still happens in brand new sys defs made in VS 2020 R2 as in my screenshot above.
When you tried to reproduce, did you use VS 2020 R2, and did you install the package downloaded from the releases page?
Is there a particular file responsible for right-click plugin functionality I could upload or provide the checksum for or something to confirm that it is in the right state?  Since this issue is CD-specific (other CDs' right click menus work fine), I have to think that it's not a broader VS installation problem, but I don't know enough about the process to be sure.

@droohy This is rather weird. Yes, for reproducing it, I used a clean machine with VS 2020 R2, downloaded the "Instrument_Addon_2020.zip" from GitHub (from releases page, 20.3.0) and installed the nipkg. And it worked for me, I tested a few hours ago.
Was this a clean machine that you are using? Did you have a previously-installed Instrument Addon on this machine?
The right-click behavior is defined in "C:\Users\Public\Documents\National Instruments\NI VeriStand 2020\Custom Devices\Instrument Addon\Custom Device Instrument Addon.xml". If possible, I would like to take a look at it.

@bogdanp-ni
Was this a clean machine that you are using? Did you have a previously-installed Instrument Addon on this machine?
I'm helping support another team on this (I worked at NI for 5 years, so they generally escalate issues through me), so I don't know the full history of the PC.  I know the PC was acquired from our IT department with a fresh Windows install for the purposes of evaluating a 2020 stack of NI software, but I don't know if the team tried to install previous versions of the Instrument Addon.  If that could be an issue, I would definitely assume that it could have happened.
The right-click behavior is defined in "C:\Users\Public\Documents\National Instruments\NI VeriStand 2020\Custom Devices\Instrument Addon\Custom Device Instrument Addon.xml". If possible, I would like to take a look at it.
I've gone ahead and zipped up the whole Instrument Addon folder in case you want to check any other contents.
Instrument Addon.zip
Thanks!
David

@droohy
I replaced my Instrument Addon installation with the one you sent me, but I'm still unable to reproduce the issue. Comparing the Custom Device Instrument Addon.xml you sent with the one I had showed that the two files are identical.
Is this issue showing up consistently for you? Would you be able to test it on another machine?
In the meantime, I am continuing the investigation and will keep you up-to-date with my findings.

@bogdanp-ni
Is this issue showing up consistently for you?
Yes.  It does not work in any system definition on the test PC.  According to the test engineers using it, it has never worked in VeriStand 2020 R2.  (It worked in earlier VeriStand versions.)  It still does not work.
Would you be able to test it on another machine?
Yes, I just downloaded VeriStand 2020 R2 and the 20.3 release of the Instrument Addon custom device on my machine, and the issue did not replicate.
Would you recommend reinstallation of a particular component (other than the CD itself, which I've already tried) on the test machine that exhibits the problem?  Given that the issue only appears with this custom device and no other, I'm reluctant to point to a VeriStand installation issue, but, again, I don't know enough about where this error is being thrown and why to claim that it could be a VeriStand problem.

Would you be able to test it on another machine?
Yes, I just downloaded VeriStand 2020 R2 and the 20.3 release of the Instrument Addon custom device on my machine, and the issue did not replicate.

We've been trying to replicate the problem, as well, but to no avail. We've also tried with various other versions of both VS 2020 and Instrument Addon builds, but it seemed to be just fine.
Considering that this issue is visible only on that one test machine, I cannot recommend a particular component be reinstalled/uninstalled. If possible, I would go the route of clean Windows install on that machine, then adding VS 2020 and Instrument Addon.

@droohy
Please let me know if you're ok with me closing this issue.

@bogdanp-ni Yes, you can close it.  As a datapoint, I did a repair install of VeriStand 2020 R2 and included repairing all suggested dependencies that NI Package Manager recommended, and after restarting, the same issue occurred.
Either way, the issue seems isolated to a single PC.  Neither of us can reproduce it on other machines, so I don't what else there'd be to explore.
The sys def we're using for test is stable with the hand-mods I made to the XML to add the channels we needed, and the operators have other PCs they can use to modify the sys def if necessary.
Thanks!
David


Editor in AdminUI not available in spite of the cut (scissors) symbol

Describe the bug
No editor controls are available when opening an event for editing by clicking on the scissors in the AdminUI events table.
Additionally there is the following error logged to the JS console:
TypeError: can't assign to property "waitToPlay" on 4: not an object
    play playerAdapterFactoryDefault.js:161
    play playerDirective.js:181
    fn bower.c0eaa6c3.js line 1 > Function:4
    Angular 4
    jQuery 2
angular.js:15635:40
    Angular 4
    jQuery 2

To Reproduce
Steps to reproduce the behavior:

Go to https://develop.opencast.org/admin-ng/index.html#!/events/events
Click on
The editor opens but there are no editor controls:

Environment Information

Browser Firefox
Opencast version with minor release Opencast 10.0.0.SNAPSHOT (develop)

Does the same thing happen on stable.opencast.org?

Does the same thing happen on stable.opencast.org?

No, but it says it's still Opencast 8.0.0.SNAPSHOT - e39d54e. There is a layout glitch with the end time but that's going into a new issue.

It's a 9.x issue


Problem with instalation

After instalation via install.sh i got:
pi@atemrpi:~ $ sudo companion-update
Warning: Downgrading to an older version can cause issues with the database not being compatible
You are currently on "Unknown"
? What version do you want?  (Use arrow keys)
  latest stable
❯ latest beta
  specific stable
  specific beta
  custom-url
  cancel

But all options ends same.
Warning: Downgrading to an older version can cause issues with the database not being compatible
You are currently on "Unknown"
? What version do you want?  latest stable
No matching stable build was found!
Skipping update
Update is complete
pi@atemrpi:~ $

And companion not working.
What i m doing wrong?

What does the command dpkg --print-architecture output?
My first suspicion is that the script doesn't recognise the cpu architecture, so is failing to find matching builds. We don't support arm here, only arm64 for SBCs, as well x64/amd64 (intel/amd cpu)

"armhf"
it is RPI4
I open https://api.bitfocus.io/v1/product/companion/packages
found the ARM64 gz file and use "custom url option"
Now i got You are currently on "3.1.1+6229-stable-4593dd7f"

support arm here, only arm64 for SBCs,

So you are telling me that companion v3 cannot run on RPI4?

Hmm interesting.. This block of code should have realised you are on armhf and refused to run.. https://github.com/bitfocus/companion-pi/blob/main/install.sh#L4-L9

So you are telling me that companion v3 cannot run on RPI4?

No we do, but you need to use an arm64 image. This is because some of the native libraries we use dont (or didnt at the time) include support for armhf.
And when using armhf, a single process is not able to address more than 4gb of memory, so using an armhf image of a 8gb pi4 means that we may not be able to utilise all the available memory.
Every pi released since the 3B (including the 3B) supports arm64, but its not the default pi image (yet) because it doesnt support the older boards.

Sorry but i m lost a bit right now.
I have older instalation of RPI4 8G using oficialn raspbery image.
I was on 2.4.1 installed manually from git.
I try to update from 2.4.1 to 3+ but auto-update fails.
So i decide to run manual instalation like before. And get to the some point (i cant tell if i force something to run.. :P) but still i m not able run companion 3+ on my RPI4 now.
I can start over, but it is worthy?
Or you recommend to download Companion PI img file from website and start from scratch?
On my RPI runs few more services what i need for my church, like atem-node services and so on....
What you recommend to do?

when i do install on "old unclear" instalation i got this:
root@atemrpi:~# curl https://raw.githubusercontent.com/bitfocus/companion-pi/main/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2802  100  2802    0     0   8648      0 --:--:-- --:--:-- --:--:--  8621
sh: 5: [[: not found
This will attempt to install Companion as a system service on this device.
It is designed to be run on headless servers, but can be used on desktop machines if you are happy to not have the tray icon.
A user called 'companion' will be created to run the service, and various scripts will be installed to manage the service
adduser: The user `companion' already exists.

So i did: userdel companion
After that i run agian the instalation:

root@atemrpi:~# curl https://raw.githubusercontent.com/bitfocus/companion-pi/main/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2802  100  2802    0     0   8648      0 --:--:-- --:--:-- --:--:--  8621
sh: 5: [[: not found
This will attempt to install Companion as a system service on this device.
It is designed to be run on headless servers, but can be used on desktop machines if you are happy to not have the tray icon.
A user called 'companion' will be created to run the service, and various scripts will be installed to manage the service
adduser: The user `companion' already exists.
root@atemrpi:~# userdel companion
root@atemrpi:~# curl https://raw.githubusercontent.com/bitfocus/companion-pi/main/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2802  100  2802    0     0  25944      0 --:--:-- --:--:-- --:--:-- 25944
sh: 5: [[: not found
This will attempt to install Companion as a system service on this device.
It is designed to be run on headless servers, but can be used on desktop machines if you are happy to not have the tray icon.
A user called 'companion' will be created to run the service, and various scripts will be installed to manage the service
Adding user `companion' ...
Adding new group `companion' (1001) ...
Adding new user `companion' (1001) with group `companion' ...
The home directory `/home/companion' already exists.  Not copying from `/etc/skel'.
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Get:2 http://pkg.sonobus.net/apt stable InRelease [5,866 B]
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Err:2 http://pkg.sonobus.net/apt stable InRelease
  The following signatures were invalid: EXPKEYSIG 9879B7CF31743BCF Matthew Evans<EMAIL_ADDRESS>Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://pkg.sonobus.net/apt stable InRelease: The following signatures were invalid: EXPKEYSIG 9879B7CF31743BCF Matthew Evans<EMAIL_ADDRESS>W: Failed to fetch http://pkg.sonobus.net/apt/dists/stable/InRelease  The following signatures were invalid: EXPKEYSIG 9879B7CF31743BCF Matthew Evans<EMAIL_ADDRESS>W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.74.0-1.3+deb11u9).
git is already the newest version (1:2.30.2-1+deb11u2).
libudev-dev is already the newest version (247.3-7+rpi1+deb11u2).
libusb-1.0-0-dev is already the newest version (2:1.0.24-3).
unzip is already the newest version (6.0-26+deb11u1).
zip is already the newest version (3.0-12).
The following packages were automatically installed and are no longer required:
  libfuse2 libpulsedsp pulseaudio-utils rtkit squashfs-tools
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 202 not upgraded.
Checking dependencies for the installation script...
Checking availability of curl... OK!
Checking availability of unzip... OK!
Downloading https://github.com/Schniz/fnm/releases/latest/download/fnm-arm32.zip...
######################################################################## 100.0%
Installing for Bash. Appending the following to /root/.bashrc:

  # fnm
  export PATH="/opt/fnm:$PATH"
  eval "`fnm env`"

In order to apply the changes, open a new terminal or run the following command:

  source /root/.bashrc
Cloning into '/usr/local/src/companionpi'...
remote: Enumerating objects: 313, done.
remote: Counting objects: 100% (151/151), done.
remote: Compressing objects: 100% (90/90), done.
remote: Total 313 (delta 105), reused 72 (delta 58), pack-reused 162
Receiving objects: 100% (313/313), 100.69 KiB | 1.97 MiB/s, done.
Resolving deltas: 100% (166/166), done.
sh: 50: [: beta: unexpected operator
sh: 50: [: beta: unexpected operator
No matching stable build was found!
Skipping update
Adding user companion to group gpio
Adding user companion to group dialout
yarn install v1.22.19
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.44s.
Companion is installed!
You can start it with "sudo systemctl start companion" or "sudo companion-update"

when i do install on "old unclear" instalation i got this:

oh, you ran the script with sh rather than bash. Reading through the full output, it is complaining at syntax errors at various points. That explains why it got further than I expected

According to this page:
https://github.com/bitfocus/companion/wiki/Manual-Install-on-Raspberry-Pi
i do curl https://raw.githubusercontent.com/bitfocus/companion-pi/main/install.sh | sh

According to this page:

Oops, fixed there now.

I try to update from 2.4.1 to 3+ but auto-update fails.

Yeah, the deployment process for 3 changed so that you dont it doesnt use git (except for the companion-pi updater), instead downloading builds from the website, which makes updating take seconds rather than minutes.
This is at the cost of not working for anyone who previously manually did the git clone flow

I would recommend either flashing a new official image from slightly further down the page https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit or a companion pi image.
The companion pi images are literally just the official arm64 image, with that install script and a couple of other niceties (enablign ssh and changing the hostname)
Unfortunately that would mean redoing those other services.
The only other option I see is to go back to the clone from git flow and hope that the dependencies do exist, but I have no clue if that will work or if it will fail after spending 10+ minutes trying to install everything.
The simple problem is that we arent producing the builds that the updater is trying to find for armhf, and as a consequence I have no idea if it will run at all

So, i download the install.sh skip the architecture checking and run it

root@atemrpi:~# bash install.sh
This will attempt to install Companion as a system service on this device.
It is designed to be run on headless servers, but can be used on desktop machines if you are happy to not have the tray icon.
A user called 'companion' will be created to run the service, and various scripts will be installed to manage the service
Adding user `companion' ...
Adding new group `companion' (1001) ...
Adding new user `companion' (1001) with group `companion' ...
The home directory `/home/companion' already exists.  Not copying from `/etc/skel'.
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Get:3 http://pkg.sonobus.net/apt stable InRelease [5,866 B]
Err:3 http://pkg.sonobus.net/apt stable InRelease
  The following signatures were invalid: EXPKEYSIG 9879B7CF31743BCF Matthew Evans<EMAIL_ADDRESS>Fetched 5,866 B in 1s (5,404 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://pkg.sonobus.net/apt stable InRelease: The following signatures were invalid: EXPKEYSIG 9879B7CF31743BCF Matthew Evans<EMAIL_ADDRESS>W: Failed to fetch http://pkg.sonobus.net/apt/dists/stable/InRelease  The following signatures were invalid: EXPKEYSIG 9879B7CF31743BCF Matthew Evans<EMAIL_ADDRESS>W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.74.0-1.3+deb11u9).
git is already the newest version (1:2.30.2-1+deb11u2).
libudev-dev is already the newest version (247.3-7+rpi1+deb11u2).
libusb-1.0-0-dev is already the newest version (2:1.0.24-3).
unzip is already the newest version (6.0-26+deb11u1).
zip is already the newest version (3.0-12).
The following packages were automatically installed and are no longer required:
  libfuse2 libpulsedsp pulseaudio-utils rtkit squashfs-tools
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 202 not upgraded.
Checking dependencies for the installation script...
Checking availability of curl... OK!
Checking availability of unzip... OK!
Downloading https://github.com/Schniz/fnm/releases/latest/download/fnm-arm32.zip...
######################################################################## 100.0%
Installing for Bash. Appending the following to /root/.bashrc:

  # fnm
  export PATH="/opt/fnm:$PATH"
  eval "`fnm env`"

In order to apply the changes, open a new terminal or run the following command:

  source /root/.bashrc
fatal: destination path '/usr/local/src/companionpi' already exists and is not an empty directory.
root@atemrpi:~# rm -rf /usr/local/src/companionpi
root@atemrpi:~# userdel companion
root@atemrpi:~# rm -rf /opt/companion
root@atemrpi:~# bash install.sh
This will attempt to install Companion as a system service on this device.
It is designed to be run on headless servers, but can be used on desktop machines if you are happy to not have the tray icon.
A user called 'companion' will be created to run the service, and various scripts will be installed to manage the service
Adding user `companion' ...
Adding new group `companion' (1001) ...
Adding new user `companion' (1001) with group `companion' ...
The home directory `/home/companion' already exists.  Not copying from `/etc/skel'.
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Get:3 http://pkg.sonobus.net/apt stable InRelease [5,866 B]
Err:3 http://pkg.sonobus.net/apt stable InRelease
  The following signatures were invalid: EXPKEYSIG 9879B7CF31743BCF Matthew Evans<EMAIL_ADDRESS>Fetched 5,866 B in 1s (5,553 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://pkg.sonobus.net/apt stable InRelease: The following signatures were invalid: EXPKEYSIG 9879B7CF31743BCF Matthew Evans<EMAIL_ADDRESS>W: Failed to fetch http://pkg.sonobus.net/apt/dists/stable/InRelease  The following signatures were invalid: EXPKEYSIG 9879B7CF31743BCF Matthew Evans<EMAIL_ADDRESS>W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.74.0-1.3+deb11u9).
git is already the newest version (1:2.30.2-1+deb11u2).
libudev-dev is already the newest version (247.3-7+rpi1+deb11u2).
libusb-1.0-0-dev is already the newest version (2:1.0.24-3).
unzip is already the newest version (6.0-26+deb11u1).
zip is already the newest version (3.0-12).
The following packages were automatically installed and are no longer required:
  libfuse2 libpulsedsp pulseaudio-utils rtkit squashfs-tools
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 202 not upgraded.
Checking dependencies for the installation script...
Checking availability of curl... OK!
Checking availability of unzip... OK!
Downloading https://github.com/Schniz/fnm/releases/latest/download/fnm-arm32.zip...
######################################################################## 100.0%
Installing for Bash. Appending the following to /root/.bashrc:

  # fnm
  export PATH="/opt/fnm:$PATH"
  eval "`fnm env`"

In order to apply the changes, open a new terminal or run the following command:

  source /root/.bashrc
Cloning into '/usr/local/src/companionpi'...
remote: Enumerating objects: 313, done.
remote: Counting objects: 100% (151/151), done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 313 (delta 105), reused 73 (delta 59), pack-reused 162
Receiving objects: 100% (313/313), 100.70 KiB | 1.80 MiB/s, done.
Resolving deltas: 100% (166/166), done.
No matching beta build was found!
Skipping update
Adding user companion to group gpio
Adding user companion to group dialout
yarn install v1.22.19
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.42s.
No Companion build was installed!\nIt should be possible to recover from this with "sudo companion-update"

And like you can see. No companion was installed (again because the no architecture is corectly setted)
root@atemrpi:~# companion-update
Warning: Downgrading to an older version can cause issues with the database not being compatible
You are currently on "Unknown"
? What version do you want?  (Use arrow keys)
  latest stable
❯ latest beta
  specific stable
  specific beta
  custom-url
  cancel

so i choose custom url and use https://s3.bitfocus.io/builds/companion/companion-linux-arm64-3.1.0+6223-stable-1b6dfc49.tar.gz
And have to be good but is not.

And have to be good but is not.

Yeah that is expected. We will be depending on some arm64 system libraries, which as you are running an armhf image they wont be available. It could also be because the kernel is armhf, or a combination of the two.
An arm64 cpu can run an armhf os, but you cant run arm64 software on armhf userspace even if the cpu is arm64

Oh, i see. Make sense now. Thank you so much for your effort!
So start over with fresh arm64 image from RPI website.
I close the issue when i will be done.

On RaspberyOS arm64 all works like a charm! Thank you again.


Question about data.db

I am trying to create a program in C# and LiteDB (both of which i know nothing) where I query the data.db database you created. any idea why this fails?

In the case for this table (RoundDetails) the Id field is not an int32. It is a LiteDB specific object called ObjectID. So if you change int to LiteDB.ObjectID it should work.

You da best.


images animation

these images that enlarge when hovered  look too big that is not appealing,
instead i would like to add animation to the image so that they will slide when user clicks on or scrolls to that section .
@tushargupta1504  i believe i can do this task efficiently as i have a strong hold over css styling. could you please assign me this task under GSSoC24 ext and hactoberfest.

@tushargupta1504 , ould you please assign me this task


google-cloud-aiplatform version errors

google-cloud-aiplatform==1.26 is needed to run langchain.llms.VertexAI but it gives error in chat.send_message as
is_blocked=safety_attributes.get("blocked", False),
AttributeError: 'list' object has no attribute 'get'
https://github.com/googleapis/python-aiplatform/issues/2337 suggests soution to be downgrade to google-cloud-aiplatform==1.25 but then the LangChain does not work
Need version that resolves both.

Release 1.27 should resolve this issue.

Confirmed that 1.27 resolves both the issues. Thanks for letting me know @sasha-gitg

For clarity: Only version 1.26.1 is affected. Both 1.26.0 and 1.27.0 are working.


Linux command line on usb stick usage

I would like to download linux binaries to usb, and use electrum from CLI on external storage.
Please share some hints if that is possible. tia

there is no linux binary. on linux you run from source. download the tar.gz    , unzip , and then python3 electron-cash


Expected a JSON object

Hi there,
anyone else getting an error at JSON.parse(reportParameters).reportUrl in the HTML file?
If I look at the PBIReport.json file in VSCode is looks to be malformed:

This is the sample in the screenshot but my file has all values filled.
Thanks in advance!
Daire

That file is actually a JavaScript file. The file extension is a misnomer.
I’d you can’t figure out how to make your file parse then feel free to share here for sanity check.

That file is actually a JavaScript file. The file extension is a misnomer.
I’d you can’t figure out how to make your file parse then feel free to share here for sanity check.

Yes, I noticed this actually. It seems to be an issue to do with specifying the filter parameters. I'm seeing issues if they are strings, have spaces or I want to omit altogether. But I can work around these thanks


Adds support for passing raw commands to amplifier and Spotify Connect

I know the project is kind of stale now - but I needed to add some tings to experiment with multi-room commands. Maybe my additions can be of use to someone else.

Do you want to take ownership of the app, so you can publish it yourself?


404 instead of 500 for malformed monthly stats year/month string

 Fail gracefully on attempting to access a monthly report with a date that can't be parsed


Issue on getting albums

When I try to load all the albums:
`
22151 ERROR: Exception on /getall/albums [GET]
Traceback (most recent call last):
File "flask/app.py", line 1484, in full_dispatch_request
File "flask/app.py", line 1469, in dispatch_request
File "flask_restful/init.py", line 489, in wrapper
File "flask/views.py", line 109, in view
File "flask_restful/init.py", line 604, in dispatch_request
File "app/api/getall/resources.py", line 70, in get
File "app/utils/dates.py", line 26, in date_string_to_time_passed
File "pendulum/init.py", line 211, in now
File "pendulum/tz/init.py", line 60, in local_timezone
File "pendulum/tz/local_timezone.py", line 35, in get_local_timezone
File "pendulum/tz/local_timezone.py", line 63, in _get_system_timezone
File "pendulum/tz/local_timezone.py", line 242, in _get_unix_timezone
RuntimeError: Unable to find any timezone configuration
`
The fix is:
docker exec -it [container_id] apt update && apt install -y tzdata
Including this in the original image should be sufficient

@tcsenpai
Thank you for the suggestion. I've added the install command in the Dockerfile in https://github.com/swing-opensource/swingmusic/commit/9bf005668b21a1600997153e85745959c2b2eaed like this:
RUN apt update && apt install -y tzdata

Is that what you were suggesting? Will that work?

@cwilvx exactly, in my experience it worked
I'd suggest to execute that command as a "post install" thing , to avoid updating and upgrading packages you may need in a different version

@tcsenpai
I'm not familiar with Docker. Can you elaborate or provide an example of what you mean by post install?
You can take a look at the Dockerfile here:
https://github.com/swing-opensource/swingmusic/blob/master/Dockerfile

@tcsenpai
I'm not familiar with Docker. Can you elaborate or provide an example of what you mean by post install?
You can take a look at the Dockerfile here:
https://github.com/swing-opensource/swingmusic/blob/master/Dockerfile

With the modifications you did, it works . Thanks, closed as solved


wiki->DDOS->Disable UDP

As you can see, memcached is listening using only UDP.
should be
As you can see, memcached is listening using only TCP.

fixed, thanks!


Create a welcome page for guests

This is  a ** feature request**.

Prerequisites

[x] Are you running the latest version?
[x] Are you reporting to the correct repository?
(enso is made of many specialized packages: https://github.com/laravel-enso)
[x] Did you check the documentation?
[x] Did you perform a cursory search?

Description
Creation of a Welcome page not possible, in any case too hard
Steps to Reproduce
Expected behavior
Showing: just a text
Actual behavior
too much fuss

It appeared to work out well after all. I made a mistake with file auth.js

After all it did not work out at all.
I adopted the Laravel-enso package because of its nice CRUD functionality, and when you only follow the track it is OK.
But if you want to add things you have to be too much a Laravel and Vue expert to get things done.
Just addng a simple welcom-page was the straw that broke the camels back.
I think I go back to Drupal 8 to get my things done.

Sorry to hear that you didn't got it working.
Just wanting to say that apparently the problems were not (at least not only) related to understanding how Enso works, but to (also to) core concepts of Laravel and Vue (routing / router). To be efficient with Enso you have to be comfortable with those, first.

That's just the problem.
There is an avalanche of solutions, but all still require deep knowledge if you want somthing extra.
Problems are also that the packages sometimes follow their own principles, so that additions are hard to implement.
The advantage of frameworks and CMSes are that you can start wirking and building up immedeatly.


refactor: simplifies columns component

refactor: simplifies columns component
Simplifies the CSS columns component to not require setting --columns anymore.
chore: removes unused variable-columns component
Signed-off-by: Philipp Rudloff<EMAIL_ADDRESS>

I'm seeing this?

Oh, my bad, I didn’t commit the replacement of the last use somehow. https://github.com/kumahq/kuma-gui/pull/1630/commits/103ab836761f8396f4f8a864f0caf80893ef6574


fc-toml: remove proxy section in config

proxy will never be use with the Firecracker VMM. Keeping this header
will result in runtime failures, since the configuration will be parsed
on the path searched for.
Since vsock will always be used, remove the proxy section.
Fixes: #1761
Signed-off-by: Eric Ernst<EMAIL_ADDRESS>

/test

@egernst @ganeshmaharaj Seeing a bunch of go lint errors here.

@amshinde yeah.. and does not match with what the changes are. @egernst might be a side-effect of us fixing the branch yesterday?

did the test repository change?


[WFLY-9657] NullPointerException when trying to get all job executions

JIRA: https://issues.jboss.org/browse/WFLY-9657

@jamezp if this looks ok to you merge it, as I just tested it on master-ignore with a few others


Remove ServiceConfiguration.ConfigError() arg

Hi,
Method ServiceConfiguration.ConfigError() takes one arg serviceName for string "Service serviceName not configured" or nothing if we want pure string "Service not configured"
link to method

You are really fast, thanks

@newsiberian I had long been engaged in meteor.js, thanks for the correction, new release publish ;)


Fix issue with Jira conversion of mixed lists, including test case

Fixes: https://github.com/vsch/flexmark-java/issues/452

Thank you.


Can't find header

Since installing 1.1.1 my build fails on: 'KFData.h file not found'.
I tried variations:
#import "KFData.h"
#import <KFData/KFData.h>
I noticed that it was removed on the basis that Cocoapods automatically generates the header? Is there something special I need to do to make it see the lib?
Thanks,
Aodh
n.b. we're not using use_frameworks (for various legacy reasons).

Hey, I'm currently working on a really old app that uses this library. It seems development on this has stopped, but I solved this issue by manually importing the separate headers that the #import <KFData/KFData.h> should have:
#import <KFData/KFAttribute.h>
#import <KFData/KFObjectManager.h>
#import <KFData/NSManagedObject+KFDataManager.h>
#import <KFData/NSManagedObjectContext+KFData.h>

I think that it should work with either use_frameworks! or a modern version of CocoaPods. If you're having difficulties you can use version 1.1.0 of KFData, the only different between 1.1.0 and 1.1.1 is the KFData framework header.

It seems development on this has stopped

Yes that is right, but happy to review/merge/release any fixes that make sense via PR. NSPersistentStoreContainer in later versions of iOS replace KFDataStore, and QueryKit can replace KFAttribute/KFObjectManager.

Thank you for the response @kylef, I actually tried with use_frameworks! and I'm using cocoapods 1.3.1 also, I think its the latest version.
My project is Obj-C only, so I think cocoapods doesn't generate the header file. I think that only happens for Swift projects trying to use Obj-C libraries, cocoapods helps you out by creating the necessary headers and configuration to import the project.

@Orgmir Using 1.1.0 of KFData solved the problem?

Yes! You can close this issue I think :)

I've updated the README in 99b63b038e0e3d0cac21b95b7717668b7b2cf610 which adds a note on installation and also explains that NSPersistentContainer has replaced the need KFData in iOS 10 and macOS 10.12.

Additional Note: If anyone knows how to make the library work as a framework and a static library for CocoaPods with the framework header feel free to make a pull request and I will make a release.


error with mdo.StreamM

Hi,
with this code
   import promhx.mdo.StreamM;
   var s1 = new Stream<Int>();
   var s2 = new Stream<Int>();
   var s3 = StreamM.dO({
         val1 <= s1;
         val2 <= s2;
         ret({val1: val1, val2: val2});
   });
   s3.then(function(x){
      trace(x.val1);
      trace(x.val2);
   });

i get this error
Unknown identifier : ret

Thanks for this, I've fixed it on git and haxelib.

Thanks. works now. :-)

I have see that the monad stream is updated only when all the streams are resolved.
In bacon.js exists combineTemplate that work also only one stream is updated.
This is an example
https://github.com/baconjs/bacon.js#bacon-combinetemplate
var password, username, firstname, lastname; // <- properties or streams
var loginInfo = Bacon.combineTemplate({
    magicNumber: 3,
    userid: username,
    passwd: password,
    name: { first: firstname, last: lastname }})

can be possible implement this with Stream Monads?

You can get close with promhx mdo, I think it should be a nice way of achieving this.
 import promhx.mdo.StreamM;
   var userid = new Stream<Int>();
   var password = new Stream<Int>();
   var firstname = new Stream<String>();
  //[....]
   var s3 = StreamM.dO({
         useridv <= userid;
         passwordv <= password;
         //[...]
         ret({ userid:useridv, passwd:passwordv, name : {first:firstname, [...]})
   });

Note that you'll have to explicitly bind the streams into variables that you can reference in ret.  I don't have an autobinding feature right now.  It's tricky to know that it's always ok to bind a stream when it is used within the template.  I would probably have to use special syntax + parsing.  I wouldn't want to do this the way bacon.js does it (runtime variable inspection).  That can make things pretty slow, and makes it difficult to extend nicely with other asynchronous approaches.
Another simpler macro method would be to use Stream.whenever:
Stream.whenever(username, password, ...).then(function(user,pass,...){
   return {  user:user, pass:pass, name : {first:fname, last:lname...});
});

That's the technique that I use most often.

Thanks @jdonaldson i have try stream.mdo but is triggered when all the streams are executed. I nerd that the trigger is executed also only one of the streams are executed. Whenever can cover this particular use case?

@jdonaldson i have some tests with whenever and resolve my problem. Thanks for the support.

Ah, I see what you mean.  Does the bacon template approach work like that?  I would be surprised.
In the case you give, you want to wait on a number of streams, and trigger when the first stream resolves.  I odn't have a great way of dealing with this at present, mainly because of the question of the unresolved streams.  Are they null in that case?  What happens if you want to resolve a null value?  How would you tell the difference?
One alternative would be to do a wait on a large number of streams, and then when any of them resolve trigger a special method that returns the promise instance, as well as the promised value.  That way you could check which one actually was resolved.  If that sounds useful to you, I'll look into it.

bacon template wait until all the streams are resolved the first time. But after that also if only one of the streams is resolved, the stream template trigger a new event.
you can see an example here.
http://jsbin.com/nuyazu/1/edit?js,console,output
I have convert stream in property beacuse with property is possible to give an initial value.

It looks like the example treats unresolved instances as empty strings.  I think this is problematic for a low level implementation.
There may be an opportunity to extend the notion of a stream with a default value... a value that is defined even before the actual value returns.  It would be nice to distinguish between the two in that case though.  I'll have to think about it.


automatic renaming of attachment folder on filename change

your plugin is working flawlessly. Thanks a ton for making this, it's really useful.
I imagine this would take a bit of work, but just wanted to suggest that it'd be a great feature if there was a way to keep the attachment folder name synchronized with the note's filename. I often rename notes and it'd be fantastic if there was a way to automatically rename the attachment folder and associated links.

@daeh That's a great suggestion and I also have troubles when renaming md files. If it is possible, I will add it to the next release(Maybe this week).

in the off-chance it's useful, the https://github.com/dy-sh/obsidian-consistent-attachments-and-links plugin could be a useful reference

@daeh I have uploaded a new release. Have a try.

It is working incredibly well, and it seems robust to a bunch of weird things I tried. I'm thrilled. This feature could be a stand-alone plugin and would be awesome even by itself. Thank you, this was the biggest convenience I was missing in obsidian.


Swag init no longer works after updating to 1.5.1

Describe the bug
Previously used Swaggo/Swag 1.5.0. No longer works after updating to 1.5.1. Getting the following output:
2019/07/01 10:31:18 Generate swagger docs....
2019/07/01 10:31:18 Generate general API Info
2019/07/01 10:31:18 execute go list command, exit status 1

To Reproduce
Not entirely sure. Using a standard layout with cmd, pkg and internal folders. Running swag init from project root folder.
Steps to reproduce the behavior:

Use swag 1.5.1
Run swag init.

Expected behavior
Swag generates swagger docs in docs-folder.

In your case , throwing this error message no Go files in /go/src/project/backend caused by your proejct has imported package/dir in go/src/project/backend and it doesn't a go package.

@lsattem please go get -u github.com/swaggo/swag/cmd/swag to get against the latest swag that will show detail error messages on console.

2019/07/02 08:16:56 Generate swagger docs....
2019/07/02 08:16:56 Generate general API Info, search dir:./
2019/07/02 08:16:56 execute go list command, exit status 1, stdout:, stderr:can't load package: package bitbucket.org/USER/REPO: no Go files in /home/USER/go/src/bitbucket.org/USER/REPO*

*Where USER/REPO are user and repo details.
It seems the use of go list doesn't support the a project structure with pkg, internal and cmd folders, and expects all go files to be on root level. Adding a "test.go" file to project root makes Swag output the following error instead:
2019/07/02 08:24:40 Generate swagger docs....
2019/07/02 08:24:40 Generate general API Info, search dir:./
error:  cannot parse source files: open main.go: no such file or directory
2019/07/02 08:24:40 cannot parse source files: open main.go: no such file or directory

Adding a "main.go" file to project root makes it work just fine. We could add all swagger doc to this file, but this isn't a very good solution.

@lsattem The issue have fixes after merged https://github.com/swaggo/swag/pull/425. And now you update version to v1.6.0 and execute the following to specify paring outside dependencies, disabled by default.
swag init --parseDependency=true

we have almost the same project structure as @lsattem
Today I updated swag to v1.6.0, and it works fine as
swag init -d api -g main.go

without any changes in the project structure
I had some errors on v1.5.1 yesterday, but today I cannot reproduce them

@JackDrakkar Please update version to v1.6.0 and you can add --parseDependency=true flag if u want to outside dependencies.

@easonlin404 I used v1.6.0 when writing the previous message. Adding --parseDependency=true does not make any difference. This is not an outside dependency, as I understand it. The swagger doc is in a file in this specific project, and Swag no longer seems able to detect any go files in my project.
Running the following:
swag --version
echo "running 'swag init -g \"$SWAGGER_INFO\"' --parseDependency=true"
swag init -g "$SWAGGER_INFO" --parseDependency=true

Yields this output:
swag version v1.6.0
running 'swag init -g "./pkg/swagger/info.go"' --parseDependency=true
2019/07/02 11:06:06 Generate swagger docs....
2019/07/02 11:06:06 Generate general API Info, search dir:./
2019/07/02 11:06:06 execute go list command, exit status 1, stdout:, stderr:can't load package: package bitbucket.org/USER/REPO: no Go files in /home/USER/go/src/bitbucket.org/USER/REPO

Relevant project structure
root:
  cmd:
    main:
      - main.go # run program
  pkg:
    swagger:
      - info.go #contains general swagger info
  internal:
    api:
      - api.go #contains http end points with swagger comments

I tried playing around with the "-d" and "-g", parameters (e.g. full path), but to no avail. It still is unable to detect any go files.

Please ignore passing parseDependency flag, in your project structure you can executes the following:
swag init -g cmd/main.go

or cd to cmd/main folder and try swag init.

That works, but it does not really solve the problem for me.  If i write swag init -g ../../pkg/swagger/info.go  from cmd/main I get an output containing general swagger info, but my api paths are not included since they're located in ../../internal/api/api.go.

Because swag only parse go files in main.go folder recursively.

This fixed the problem. Thank you very much!
This setup works, with a swagger info file on root level, and calling swag init -g swaggerinfo.go from root. Current project structure:
root:
  swaggerinfo.go #contains general swagger info
  cmd:
    main:
      - main.go # run program
  internal:
    api:
      - api.go #contains http end points with swagger comments

Swaggo/Swag should perhaps be versioned 2.0.0, instead of 1.6.0, since this requirement is a breaking change. Our setup used to work, and no longer does after upgrading from 1.5.0 to 1.5.1 and then 1.6.0.
As of 1.6.0 the documentation is misleading. Following the documentation and running something similar to swag init -g http/api.go does not work. E.g. for us writing swag init -g pkg/swagger/info.go. You now have to run the command from the api.go directory, or write swag init -g api.go -d http. In our case the latter snippet would be swag init -g info.go -d pkg/swagger.
This solution also works, and is probably best for us to maintain package conventions:
root:
  main.go #empty dummy go file with package declaration *
  cmd:
    main:
      - main.go # run program
  internal:
    api:
      - api.go #contains http end points with swagger comments
  pkg:
    swagger:
      info.go #contains swagger information

Where root level main.go looks like this

package dummy

However, this feels very hacky. Some suggestions:

Could you perhaps add a new parameter that specifies the folder from which a recursive search from endpoints is made? This is what I expected the --dir parameter to do as of today by reading the swag init --help
Or allow multiple paths for the --dir parameter, so you could for example say: swag init -g info.go --dir pkg/swagger/ --dir internal/api --dir ....
Or maybe just the file general info not to be a .go file? I.e. calling it 'swagger.myfile' instead of 'swagger.go' and running swag init -g swagger.myfile? (simply to avoid having a dummy package)

I have the same problem with swag v1.6.0
I use the go module for my project and when I execute swag i app/main/main.go I get the below message
2019/07/06 16:57:36 Generate swagger docs....
2019/07/06 16:57:36 Generate general API Info, search dir:./
2019/07/06 16:57:36 execute go list command, exit status 1, stdout:, stderr:can't load package: package <my-project-name>: unknown import path "<my-project-name>": cannot find module providing package <my-project-name>

@blxzfb307 could you help execute go list at the folder that executes swag? Because swag would recognize dependencies via go list.

I actually get the same message when I execute go list like below
can't load package: package <my-project-name>: unknown import path "<my-project-name>": cannot find module providing package <my-project-name>

However, executing swag i app/main/main.go can work in previous version (v1.4.0)

sorry for responses I misled you. I would want you that executing the following:
go list <absolute-path-your-project>/app/main/main.go

I got the message below
command-line-arguments

How about go list <absolute-path-your-project>/app/main?

I got <my-project-name>/app/main

It's hard to reproduce. Could you please create a reproduced repo that I can help ?

I'm sorry to keep you waiting. This is the reproduced repo.
I run  swag init -g app/main/mian.go and get below message
2019/07/06 17:56:24 Generate swagger docs....
2019/07/06 17:56:24 Generate general API Info, search dir:./
2019/07/06 17:56:24 execute go list command, exit status 1, stdout:, stderr:can't load package: package swag-test: unknown import path "swag-test": cannot find module providing package swag-test

@blxzfb307 Thank you, I will take a look.

Please use v1.6.1 version. Please raise a new issue if have any problems.

I'm having this exact same issue on swag v1.6.7. What was the best recommended fix? Tried everything in this thread and it doesn't work. Following project structure as recommended here:
https://github.com/golang-standards/project-layout
cmd/app/main.go <- the application entrypoint and where initial swagger attributes are above main()
pkg/api/server.go <- where the HTTP API starts up with Echo
pkg/api//.go <- multiple folders that follow this path. Each entity contains a set of API docs for their respective API routes.

I'm having this exact same issue on swag v1.6.7. What was the best recommended fix? Tried everything in this thread and it doesn't work. Following project structure as recommended here:
https://github.com/golang-standards/project-layout
cmd/app/main.go <- the application entrypoint and where initial swagger attributes are above main()
pkg/api/server.go <- where the HTTP API starts up with Echo
pkg/api/[entity]/[entity].go <- multiple folders that follow this path. Each entity contains a set of API docs for their respective API routes.

I am having the same issue, can we reopen this or get pointed to the correct solution?


[travis] update to trusty

I understand you had problems with the sudo: false builds but trusty may have improvements.

Unfortunately, the random failures still occur.


Prettier!

Prettier is now scoped to all *.js and *.md files - and is used in lint, ci:lint and behaves the same for the end user if they run npm run format.
I'm not sure I agree with the single-quote markdown style, so this is an opportunity to decide otherwise and place the single-quote configuration directive as part of a *.js override - I'm open to either.

I'm not sure I agree with the single-quote markdown style, so this is an opportunity to decide
You did the work, you get to make the call.


fail to run /demos/classifier_webcam.py

I recently tried the classifier.py demo and it's working very well, now i wanted to test the classifier with the webcam feed and maybe later on i'am planning to test with an RTSP feed coming from a video surveillance camera, but the problem is that when i run the command and give the path to the .pkl classifier i trained it gives me the following error :
Traceback (most recent call last):
  File "./demos/classifier_webcam.py", line 191, in <module>
    persons, confidences = infer(frame, args)
  File "./demos/classifier_webcam.py", line 108, in infer
    (le, clf) = pickle.load(f)  # le - label and clf - classifer
  File "/usr/lib/python2.7/pickle.py", line 1384, in load
    return Unpickler(file).load()
  File "/usr/lib/python2.7/pickle.py", line 864, in load
    dispatch[key](self)
KeyError: '#'

i run this command :
/demos/classifier_webcam.py /home/ghassen/openface/openface-master/openface/align_dlib.py
where i give the path to the classifier and the dlib face predictor .

@deepmore1 look at comentary on  line 170 ~ 173 of "classifier_webcam,py"

parser.add_argument(
'classifierModel',
type=str,
help='The Python pickle representing the classifier. This is NOT the Torch network model, which can be set with --networkModel.')

Look, i never used the classifier_webcam.py, only the classifier.py, but i know where u can get Python Pickle. You have to take the instructions to create a classifier.pkl, so you can read this demo.

hey @BarbaL  thax mate for your quick reply , i already managed to do that tutorial and got a classifier.pkl trained with a dataset i got from the internet to manage the unknown detection problem , so basically u mean i should include the path to that classifier in the command line arguments ?

i fixed the problem , the command to type in order to run the webcam demo is as following
./demos/classifier_webcam.py
it's working perfectly and giving output as follows :
P: ['unknown'] C: [0.76265470536492086]
P: ['ghassen'] C: [0.51449047915875412]
P: ['unknown'] C: [0.5322239569707623]
P: ['ghassen'] C: [0.46277030219658255]
P: ['unknown'] C: [0.47470871402301479]
P: ['ghassen'] C: [0.61751386691297017]
P: ['unknown'] C: [0.7547305639797719]
P: ['unknown'] C: [0.72421109538335238]
P: ['ghassen'] C: [0.53364084226979525]
P: ['unknown'] C: [0.80024436171133884]
P: ['unknown'] C: [0.67699783515868306]
P: ['unknown'] C: [0.75440366027540307]
P: ['unknown'] C: [0.62089120928139441]
P: ['unknown'] C: [0.69419184759473451]
P: ['unknown'] C: [0.62242086391374396]
P: ['unknown'] C: [0.51011845839511472]
P: ['unknown'] C: [0.65243824056912014]
P: ['unknown'] C: [0.56949149874677207]
P: ['ghassen'] C: [0.45642805648465584]
P: ['unknown'] C: [0.68044394123864282]
P: ['ghassen'] C: [0.54406959452160475]
P: ['ghassen'] C: [0.88052890744178769]
P: ['ghassen'] C: [0.80630021894912496]
the recognized person "ghassen" and the confidence level .

Feel free to close this issue if it has been fixed. Hoped to have helped and good luck.

Hi
after installing i tried to test it but i got follwing error:
elia@elia:~/openface$ ./demos/classifier.py infer models/openface/celeb-classifier.nn4.small2.v1.pkl ./images/examples/carell.jpg Traceback (most recent call last):   File "./demos/classifier.py", line 293, in <module>     infer(args, args.multi)   File "./demos/classifier.py", line 177, in infer     (le, clf) = pickle.load(f)   File "/usr/lib/python2.7/pickle.py", line 1378, in load     return Unpickler(file).load()   File "/usr/lib/python2.7/pickle.py", line 858, in load     dispatch[key](self)   File "/usr/lib/python2.7/pickle.py", line 1090, in load_global     klass = self.find_class(module, name)   File "/usr/lib/python2.7/pickle.py", line 1126, in find_class     klass = getattr(mod, name) AttributeError: 'module' object has no attribute '_passthrough_scorer'
then i tried for demo3 but still, the error exists! can anyone please help me?
Regards


Dev

3 among 5 Cloned and merged their init project into dev so I merged dev into main to make milestone at this point.

ok


Add nominee: GNU Health

Automatic addition of a new nominee submitted through the online form available at https://digitalpublicgoods.net/submission

GNU Health needs to address the following indicator gap below:

[ ] Open licensing. Please provide a public link that explicitly indicates the open-source software license (GPL-3.0) you are using. (Hint: the current license URL is invalid as it does not belong to GNU Health; a good idea would be to include the license file in the existing repo such as in the case of DHIS2)

Hi, looks like we have a misunderstanding here. The link you are referring to is probably the SPDX page?
GNU Health ships an explicit license file in each source, see e.g.
https://hg.savannah.gnu.org/hgweb/health/file/a6636ea6cbb0/COPYING
Let me know if this answers your question

Hi, looks like we have a misunderstanding here. The link you are referring to is probably the SPDX page? That was meant to point that GPL-V3 is a valid license :-)
GNU Health ships an explicit license file in each source, see e.g. https://hg.savannah.gnu.org/hgweb/health/file/a6636ea6cbb0/COPYING Let me know if this answers your question

Thanks @coogor for the prompt reply, looks good!

@coogor would you also be in position to provide public links that explicitly indicate the licensing for open data and open standard for this project?

I will try my very best, but need information on what exactly you are looking for. Open Standards like support of HL7/FHIR? Open Data in terms of data model, or in terms of information that can be made available?

@nathanbaleeta re. open data, we provide our documentation on wikibooks: https://en.wikibooks.org/wiki/GNU_Health , which is
CC BY-SA 3.0
Does that answer the question re. opendata?


Adds sobolevn.me to the list

I write about python, js, and elixir.
I also like to rant about management and give personal opinions about tools and processes.

Hi @sobolevn, thanks for enriching this list.