text:
Internal error: ReferenceError: window is not defined

I encountered this error in Next 14.1.0

Here is my code:
page.tsx
'use client'

import { useState } from 'react'
import { Scheduler } from '@bitnoi.se/react-scheduler'

import { calendarSchedule } from '@/data/calendar'

import '@bitnoi.se/react-scheduler/dist/style.css'

const Calendar = () => {
  const [filterButtonState, setFilterButtonState] = useState(-1)

  return (
    <div className='relative h-full w-full'>
      <Scheduler
        data={calendarSchedule}
        onRangeChange={(newRange) => console.log(newRange)}
        onTileClick={(clickedResource) => console.log(clickedResource)}
        onItemClick={(item) => console.log(item)}
        onFilterData={() => {
          // Some filtering logic...
          setFilterButtonState(1)
        }}
        onClearFilterData={() => {
          // Some clearing filters logic...
          setFilterButtonState(0)
        }}
        config={{
          zoom: 1,
          filterButtonState
        }}
      />
    </div>
  )
}

export default Calendar

calendar.ts
import { SchedulerData } from '@bitnoi.se/react-scheduler'

export const calendarSchedule: SchedulerData = [
  {
    id: '070ac5b5-8369-4cd2-8ba2-0a209130cc60',
    label: {
      icon: 'https://picsum.photos/24',
      title: 'Room 101',
      subtitle: 'Deluxe Room'
    },
    data: [
      {
        id: '8b71a8a5-33dd-4fc8-9caa-b4a584ba3762',
        startDate: new Date('2024-03-01T14:00:00Z'),
        endDate: new Date('2024-03-02T12:00:00Z'),
        occupancy: 39600,
        title: 'John Doe',
        bgColor: 'rgb(254,165,177)'
      },
      {
        id: '8b71a8a5-33dd-4fc8-9caa-b4a584ba3763',
        startDate: new Date('2024-03-02T14:00:00Z'),
        endDate: new Date('2024-03-03T12:00:00Z'),
        occupancy: 39600,
        title: 'John Doe',
        bgColor: 'rgb(254,165,177)'
      },
      {
        id: '8b71a8a5-33dd-4fc8-9caa-b4a584ba3764',
        startDate: new Date('2024-03-03T14:00:00Z'),
        endDate: new Date('2024-03-04T12:00:00Z'),
        occupancy: 39600,
        title: 'John Doe',
        bgColor: 'rgb(254,165,177)'
      }
    ]
  }
]

@jeromebravo Have you tried this : https://nextjs.org/docs/pages/building-your-application/optimizing/lazy-loading#with-no-ssr
Replace : import { Scheduler } from '@bitnoi.se/react-scheduler'
With :
`import dynamic from 'next/dynamic'
const Scheduler = dynamic(() => import('@bitnoi.se/react-scheduler').then(module => module.Scheduler), {
ssr: false,
})
`

@jeromebravo Have you tried this : https://nextjs.org/docs/pages/building-your-application/optimizing/lazy-loading#with-no-ssr
Replace :
import { Scheduler } from '@bitnoi.se/react-scheduler'

With :
import dynamic from 'next/dynamic'

const Scheduler = dynamic(() => import('@bitnoi.se/react-scheduler').then(module => module.Scheduler), {
  ssr: false,
})

It worked. Thanks!

authors: jeromebravo lau-sam

repo: Bitnoise/react-scheduler


text:
Simple idea (and question)

I was thinking about memory safety recently but I'm still learning C++ and I'm not an advanced user but based on all the lectures I've watched I had this simple idea but I'm not sure how useful it could be.
The programming languages provide memory safety usually by not allowing memory errors to occur(like GC or Borrow checker) but C++ currently works with a mix of strategies, like smart pointer and static analyzers etc.
It seems to me that avoiding memory errors is not really necessary if the language could just spot and notify the user of all memory errors and and related problems. Completely avoiding memory error have the cost either making programming harder or in runtime performance.
One strategy that could help is to have double versions of memory unsafe libraries and features. One version would be just to debug the code, where more verifications related to memory safety could be performed and other version would be the production one, to be used after all related memory issues were fixed.
This way we could put much more code to check for memory safety inside librarys like bounds checking in all index operations, std::shared_pointer could perform more checks like cyclic reference, etc. In debug mode even the c++ runtime could perform some checks. That would impact the program performance but just in the debug mode.
After all issues were fix it would be just a matter of use some -DNDEBUG flag and recompile the code and we would have a correct and performant version running.
Adding just bounds checking to everything would not be a complicated process because the duplicated library would not be so much different from the current ones in the standard and thus not hard to maintain.
If the code could detect all memory errors it could be just a matter to use some fuzzing to the program inputs and all errors could be found.
I wrote this simple Array example in two versions just to illustrate the idea. Do you think this approach could be useful?
#include <iostream>
#include <source_location> // From C++23 - to capture the file line number where function is called.

#define DEBUG

#ifdef DEBUG
    // **Debug version - bounds checking**
    template<typename T, size_t size = 0>
    class Array
    {
    public:
        constexpr auto operator[] (int index, std::source_location const& location = std::source_location::current()) -> T&
        {
            if(0 <= index && index < static_cast<int>(m_size)) {
                return arr[index];
            }
            else {
                std::cout << "Error: Array overflow at line " << location.line() << '.' << std::endl;
                exit(1);
            }
        }
    private:
        T arr[size];
        size_t m_size = size;
    };

#else
    // **production version - no bounds checking for performance.**
    template<typename T, size_t size = 0>
    class Array
    {
    public:
        constexpr auto operator[] (size_t index) -> T&
        {
            return arr[index];
        }
    private:
        T arr[size];
        size_t m_size = size;
    };

#endif

auto main() -> int
{
   // There would be no change in syntax
    Array<int, 3> myArray;
    myArray[0] = 11;
    myArray[1] = 12;
    myArray[2] = 13;
    myArray[3] = 14; // error: overflow

    std::cout << "myArray[0]: " << myArray[0] << std::endl;
    std::cout << "myArray[1]: " << myArray[1] << std::endl;
    std::cout << "myArray[2]: " << myArray[2] << std::endl;

    return 0;
}

C assert macro does what you have in your code:

Debug build would call abort if the asserted condition is false. For this reason the debug builds are much slower.
Release builds usually define NDEBUG which omits the assertion code completely.

Note that STL containers provide two ways for subscripting (independent from C assertions):

operator[] without bound checks ("I did my bound checks").
at includes bound checks which may throw std::out_of_range exception and thus you may add some recovery code.

Also C++ provides compile time assertions via static_assert.
So we really have a lot of options, we just need to stick to good ones.

Ok. I actually know that, mikucionisaau.
The main point is to have two versions of every library that can cause memory issues. Also, the problem is not only bounds checking, but to have a lot more memory checks(ideally all of them) and it wouldn't change the syntax for the end user neither slow the production code performance. Also the checks would be kind of automatically performed because only in the production version  the programmer would compile it with -DNDEBUG flag.
Thanks for the attention.

Yes, the answer is yes :-) but what specifically would you like to see?
There are many options for sanitizers, see Undefined Behavior Sanitizer, Address Sanitizer, Leak Sanitizer, Thread Sanitizer:
https://github.com/google/sanitizers/wiki
Also Stack Smashing Protector: https://wiki.osdev.org/Stack_Smashing_Protector
Very useful. Most are available as built-in options in GCC, Clang and some are in MSVC.

Recently I've watch a cppnow video about Attachable Leak Sanitizer from Bojun Seo that seems cool too because it doesn't make the code slow like Valgrind does.
I'm just suggesting that checks in the language are easier to use than external tools, but everything that helps is welcome.
Today there is pressure for memory safety on the market and I don't know if C++ can perfectly provide that yet, so anything that helps is good to take in consideration.

source: gharchive/issue

authors: Shadoware mikucionisaau

repo: BjarneStroustrup/profiles

license_type: permissive

license_source: github-api


text:
New Repo

To add your profile edit contributors.html and profileYOURNUMBER.html

great work

source: gharchive/pull-request

license: MIT


text:
How to use this code in Angular 6?

Can anyone explain how to use this in angular 6 project?

This is just a static HTML template, so how users decided to implement it into various frameworks is up to them.

license: mit

license_source: bigquery


text:
Calidad del código escrito en #79

Es necesario que el código que se está implementando para #79 sea eficiente y mantenible a largo plazo. Esto se conseguirá adaptándolo a las capacidades y estilos del lenguaje que se está usando Julia.
Para ello será necesario:

Usar un Linter al código: https://www.julia-vscode.org/docs/stable/userguide/linter/
Añadir características del lenguaje como las macros:
a) https://docs.julialang.org/en/v1/manual/metaprogramming/#man-macros
b) https://jkrumbiegel.com/pages/2021-06-07-macros-for-beginners/
Se haya añadido un fichero de configuración en vez de hardcodear las cosas.

Se dará por cerrado el issue cuando:

Exista un Linter con el que se compruebe de manera sistemática la calidad del código.
Se haya modificado el código de acorde a una forma más propia de Julia, esto es:
2.1. Añadir macros
2.2 Ver cómo se utilizan los módulos en Julia
2.3 Justificar que esas son las formas de menor coste computacional.
Se haya añadido un fichero de configuración en vez de hardcodear las cosas.

Cometarios sobre problemas con el Linter.
Me he tirado casi dos horas para intentar configurarlo y no he podido, la situación es la siguiente:

Estoy utilizando vs code con la extensión de Julia oficial.
He revisado que variable de configuración estén correctamente inicializada (path de ejecución, Lint enable...)
He abierto la carpeta de trabajo de diferentes formas:  primero como suelo hacerlo desde la raíz, segundo dentro de la carpeta Experimentos.

Fallos a descartar:
No creo que sea porque no encuentre el intérprete, porque puedo ejecutar ficheros .jl desde el editor dándole a la flechita....
¿Alguna idea @JJ ?


text:
运行的时候报错Duplicate class com.blankj.utilcode.BuildConfig

Duplicate class com.blankj.utilcode.BuildConfig found in modules classes.jar (com.blankj:bus:1.0) and classes.jar (com.blankj:utilcode:1.21.0)

升级到最新版本吧

好的

authors: Blankj Skqing

repo: Blankj/AndroidUtilCode


text:
CMakeLists typo

This looks like a typo. I think it should be BUILD_API_TESTS.

Thank you for finding this.

authors: AnthonyBrunasso nturley


text:
conditionally derive Ord

Otherwise in fuzzing configuration there is a double impl
Noticed the error in rust-elements CI

If you git grep fuzzing the only things that appear are not(fuzzing). I'm confused as to where the double-impl would be coming from.

the cfg(fuzzing) is coming from the impl_array_newtype! macro in secp256k1-sys
the error is in rust-elements fuzzing job
https://github.com/ElementsProject/rust-elements/actions/runs/5554974806/jobs/10145494889

Heh, ok, good to know. That's a bit fragile but I guess it's fine for now. Thanks for noticing!

Later versions of rust-secp rename fuzzing to rust_secp_fuzzing or something. We'll have to decide here whether to use the same name or to add a new rust_secp_zkp_fuzzing.

authors: RCasatta apoelstra


text:
Can't use GregTech fluids in recipes

Well, I'm making a GregTech-based skyblock pack and want End Stone to use something a bit more later in the game than Lava. I wanted it to use Nitration Mixture, but when I set the fluid name to "liquid.nitration_mixture" the recipe doesn't exist.

That really sounds like you are using the unlocalized name, it should be
something like 'gregtech:nitration_mixture'
EmosewaPixel notifications@github.com schrieb am Fr., 15. Juni 2018,
15:11:

Well, I'm making a GregTech-based skyblock pack and want End Stone to use
something a bit more later in the game than Lava. I wanted it to use
Nitration Mixture, but when I set the fluid name to
"liquid.nitration_mixture" the recipe doesn't exist.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/BloodWorkXGaming/ExNihiloCreatio/issues/92, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHwpZmXzuZH6wQeEs64G-OgdT-GpOTXTks5t87JlgaJpZM4Upick
.

Then you still might need the 'gregtech:liquid.whatever' as otherwise it
has no idea which mod the fluid is from
EmosewaPixel notifications@github.com schrieb am Fr., 15. Juni 2018,
17:26:

Nope, that's simply how GregTech generates its fluid names. I was thinking
that perhaps it doesn't work because it starts with "liquid.".
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/BloodWorkXGaming/ExNihiloCreatio/issues/92#issuecomment-397657175,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHwpZrylZTOP1IT_1fjp0vuopX0w2bw4ks5t89I8gaJpZM4Upick
.

In 1.12.2 mod names aren't used in fluid ids.

Mhhh, that's wierd then...
Will check it out in dev then when I find the time.
Greg isn't open source right?
Could've checked whether they are doing something wierd with their fluids.
EmosewaPixel notifications@github.com schrieb am Fr., 15. Juni 2018,
17:44:

In 1.12.2 mod names aren't used in fluid ids.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/BloodWorkXGaming/ExNihiloCreatio/issues/92#issuecomment-397661964,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHwpZtWPq2vRXw0mAVrJ6-sloeZKK-WPks5t89ZAgaJpZM4Upick
.

This is GregTech Community Edition: https://github.com/GregTechCE/GregTech

Side-issue: it's fluids show up white in Ex Nihilo Barrels. Might be related

Ye could possibly be connected, but I have no idea what might be the cause of either, if I find time this weekend I'll check it out more deeply

And regarding your colorless issue, can't really replicate, atleast helium has a color in the barrel for me

Welp, tested the recipes and that seems to work just fine as well:
https://gyazo.com/abda45cc791bf3f59cc4137836e04be2

Huh, ok then. I'm away for a week so I can't really retest everything.

Closing this for now, if the problem is still there when test it again, just open it again or make a new issue and describe your steps closely so I can reproduce it

authors: BloodWorkXGaming EmosewaPixel

repo: BloodWorkXGaming/ExNihiloCreatio


text:
Zen polishing

I added proper logging, allowed it to raise exceptions when needed, simplified a couple of things. I removed checking if the method is allowed: better ask forgiveness, not permission (and, since getAllowedMethods were called before setting shoot mode, actTakePicture was not available and it refused to instruct the camera to take pictures!).

thanks so much. good job.

authors: Bloodevil willywongi


text:
SpawnSmokeParticlesPacket signature change in latest bewitchment

https://github.com/BloomhouseMC/Besmirchment/blob/0160a86e8981736daaa8647ea501d2404d41fadf/src/main/java/dev/mrsterner/besmirchment/common/entity/WerepyreEntity.java#L54
https://mclo.gs/fLU60Mc
edit: my mistake, it was just modified https://github.com/MoriyaShiine/bewitchment/blob/master/src/main/java/moriyashiine/bewitchment/client/packet/SpawnSmokeParticlesPacket.java
Takes a ServerPlayerEntity now

fixed in 1.20.1-4

authors: Linguardium mrsterner

repo: BloomhouseMC/Besmirchment


text:
Support multiple versions in the website documentation

The documentation is currently updated prior to a minor release with the supported functionality, thus losing the information of what is supported on each version. The immediate impact is that documentation cannot be written unless the functionality is completed because it needs to be deployed only after the release.
The support of multiple versions within the documentation would allow a smoother evolution of the documentation during development where a "in development" meta version can be updated for each individual functionality added to the system.
General requirements:

the documentation must remain at https://bluebrainnexus.io/docs without affecting the product website
it must support markdown with html customisations
it must be searchable
it must allow checking references
it must support multiple versions (with navigation between version)
it must be controlled through CI (deployment from the master branch)
optionally: it must notify users that are browsing an older version of the documentation to navigate to the latest released version

To keep older versions of the documentation, there is a PR in sbt-ghpages that has been opened for ages:
https://github.com/sbt/sbt-ghpages/pull/39
But from what I saw, the best approach is the one adopted by typelevel for cats-effect.
There is a special branch for docs: https://github.com/typelevel/cats-effect/tree/docs

This branch contains git submodules pointing to the branches of the versions 2.x and 3.x
Dependabot updates the references of the submodules
A github action is launched to build the docs and deploy to github pages: https://github.com/typelevel/cats-effect/blob/docs/.github/workflows/microsite.yml

For the message about the old version, akka just includes a simple js asset in paradox that parses the url: https://github.com/akka/akka/blob/master/akka-docs/src/main/paradox/assets/js/warnOldDocs.js

An alternative that still uses sbt-ghpages is described here:
https://github.com/sbt/sbt-ghpages/issues/10#issuecomment-385053640
That seems the approach taken by sbt:
https://github.com/sbt/website/blob/0.13/project/Docs.scala#L162

Paradox seems to have a feature to show a warning when the user is not looking at the current version:
https://developer.lightbend.com/docs/paradox/current/configuration.html#version-warning
Which seems to have a minor bug: https://github.com/lightbend/paradox/issues/417

An example of what I can achieve while relying on Paradox:

https://github.com/imsdu/nexus/commit/f6ac2fc8525240e198b3b5178ae0aa144ff57e9a
Main aspects:

The solution relies on git submodules, the branch is created with no history
Current docs and contexts are published on /
Snapshot docs and contexts are meant to be published on /snapshot
v1.4.x docs are meant to be published under /v1.4.x
The version page is the same for all version and has a copy for each of them (its content is just an example).

We are quite limited by Paradox and the theme we used:

In the navigation menu (on the left), we can't have pages that are not included in the project (so no way to have a external version page or to point directly from this menu to the different docs)
For some reason, customizing templates work while calling the paradox command but not the makeSite command
When using a variable (ex: the doc version) inside a #h1, the h1 value is correctly displayed in the page content but not in the header

What an older version can look like:

Completed when merging #2555

authors: bogdanromanx imsdu

repo: BlueBrain/nexus


text:
🛑 hosted-PalmettoGBA is down

In 8300ddd, hosted-PalmettoGBA (https://palmettogba.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: hosted-PalmettoGBA is back up in 206c911.


text:
🛑 hosted-PalmettoGBA is down

In 3a585d3, hosted-PalmettoGBA (https://palmettogba.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: hosted-PalmettoGBA is back up in 9345a48.


text:
🛑 DRMedRemote is down

In 478bb00, DRMedRemote (https://drmedremote.bcbssc.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DRMedRemote is back up in 8091c9d.


text:
🛑 hosted-PalmettoGBA is down

In 062eb10, hosted-PalmettoGBA (https://palmettogba.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: hosted-PalmettoGBA is back up in c742764 after 9 minutes.


text:
🛑 hosted-PalmettoGBA is down

In 9f217a2, hosted-PalmettoGBA (https://palmettogba.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: hosted-PalmettoGBA is back up in 4e537e8 after 12 minutes.


text:
Could not retrieve video

When trying to download any new video, I always get the error of could not retrieve video.
url I Used: https://youtu.be/AzaTyxMduH4
Vividl version: 0.6.0.0
Youtube dl version: 2021.12.27

The latest release, v.0.7.0, should resolve this issue. If this is not the case, please re-open this issue and provide further details.

authors: JensDeLeersnyderPXL alxnull

repo: Bluegrams/Vividl


text:
Bug: Quick desync on reload

Bug:
If you /reload shortly before the "Seconds" timer would increment, the first rough time update skips a second, so when the next second starts and the thorough time update happens, the same second gets repeated and it's in sync again.
Potential cause:
The scheduled "increment" functions probably don't get cleared, as the same phenomenon can be observed when minutes are supposed to increment as well. There, it subtracts 60 from the seconds timer, indicating that it's not a problem with reading the command block's values.
https://github.com/BluesCrew/TimeLib/assets/77808092/30cc0ea4-9b87-456e-9994-b808241969a2

Fixed:
It was indeed a problem that was caused by not clearing the scheduled timer functions when updating the time.

repo: BluesCrew/TimeLib


text:
Standardizing Variables Redux

continuing where we left off

oops still need to rebase, dont mind me

repo: BobaBoard/boba-backend


text:
change 'that' to 'self', rename some 'foobar' examples

That refers to anything but this. Self is a closer synonym to this.
Also, I'm not sure what you're looking for as far as tone goes - so I can keep it to blander objects instead of things like "Pirate".

Looks good to me, I like the clear, descriptive variables. I think robots and pirates are fine, maybe we can put a zombie in there at some point.
@timruffles happy with this?

Love it, thanks @chrisranderson !

authors: chrisranderson peterjwest timruffles

repo: BonsaiDen/JavaScript-Garden


text:
Adding Book Name to the Title - SEO

Hi, Is there any way to add Book title name to the title meta tag ?
Expecting something like  -  |
base.blade.php
<!DOCTYPE html>
<html lang="{{ config('app.lang') }}" class="@yield('body-class')">
<head>
    <title>{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}</title>
    <!-- Meta -->

{{ $book->name }} -> adding this works on books page but shelves page is giving 500 error.

Have you tried something like {{ isset($book) ? $book->name : '' }}

Hi @venkat0304,
This is not possible without altering the core BookStack files.
If you do want to make changes to the core files, using the code @LouWii has advised should work to get the book name if it exists. Alternatively you could shorten this to `{{ $book->name ?? '' }}``.
As another option, This is where the title for a page is set:
https://github.com/BookStackApp/BookStack/blob/79a949836b93c89b5efd9d9cf94e0f2b93dda48f/app/Http/Controllers/PageController.php#L148
Since this request is already open under #1604, With #1682 being very much related, I'm going to close this off as a duplicate.

authors: LouWii ssddanbrown venkat0304

repo: BookStackApp/BookStack


text:
Not always showing up in IB

I have 4 checkboxes and for some reason inside of IB, onlyl 2 are showing when all 4 have the same attributes.  Latest XCode 9.3

Anyone?

repo: Boris-Em/BEMCheckBox


text:
🛑 bkool is down

In 84ac2e5, bkool (https://bkool.botslovers.com) was down:

HTTP code: 404
Response time: 484 ms

Resolved: bkool is back up in fc36010 after 10 minutes.

repo: Botslovers-SL/uptime


text:
🛑 espublico is down

In 8fd9abb, espublico (https://espublico.botslovers.com) was down:

HTTP code: 404
Response time: 396 ms

Resolved: espublico is back up in 598a091 after 17 minutes.


text:
🛑 lasrozas is down

In 4f65640, lasrozas (https://lasrozas.botslovers.com) was down:

HTTP code: 404
Response time: 400 ms

Resolved: lasrozas is back up in f022c33 after 8 minutes.


text:
🛑 fresnos is down

In e62cdd3, fresnos (https://fresnos.botslovers.com) was down:

HTTP code: 503
Response time: 259 ms

Resolved: fresnos is back up in 6778b48 after 14 minutes.


text:
🛑 arajet is down

In f0e2483, arajet (https://arajet.botslovers.com) was down:

HTTP code: 503
Response time: 434 ms

Resolved: arajet is back up in 0244978 after 12 minutes.


text:
🛑 spell is down

In 37053e8, spell (https://spell.botslovers.com/spell/spells) was down:

HTTP code: 502
Response time: 514 ms

Resolved: spell is back up in 043768a.


text:
OS X - horizontallyMirrorFrontFacingCamera is not working

Hello All,
I am trying to use GPUImageAVCamera in OS X application for live view and it's working all fine except frames are mirrored horizontally. I tried setting horizontallyMirrorFrontFacingCamera to 'No' but no luck (default is already NO). Tried 'Yes' as well thought it will reverse the effect but still nothing. Below is my code. Is there anything I am missing:
videoCamera = [[GPUImageAVCamera alloc] initWithSessionPreset:AVCaptureSessionPreset640x480 cameraDevice:nil];
    videoCamera.horizontallyMirrorFrontFacingCamera = NO;
    videoCamera.horizontallyMirrorRearFacingCamera = NO;
}

I have also tried sample example app provided with framework "FilterShowcase" and it is behaving in same way. I just want frames to be returned normally without having any mirrored effect but not working. Have already looking into #324 but not helping.
Thanks.
MP.

I am taking it back, I think I misunderstood.

repo: BradLarson/GPUImage


text:
GPUImageView and FFmpeg

Hy everybody,
does anybody tried to use GPUImageView with FFmpeg to display the decoded frames and for conversion from yuv to rgb formats?

Did you find out how to convert yuv to rgb? I too am getting CPU usage of +100% using swscale and would like to decrease that.

@garayronald are you found solution? (such as use gpu).
i using sws_scale got x2 cpu than scrcpy, and it source code only send raw frame to sdl


text:
Fix typo

Fixing a grammatical typo.
Before submitting the PR:

[ ] Does your PR reference an issue? If not, please chat to the team on Discord or GitHub before submission.
[ ] Did you you update and run tests before submission using npm run test?
[ ] Does your branch follow our naming convention? If not, please amend the branch name using branch -m new-branch-name
[ ] Did you update documentation related to your new feature or changes?

What does your PR address?
Please briefly describe your changes here.
Tips

Tap "convert to draft" to indicate this is work in progress.
Link to an issue using the verbiage Fixes #XX
Linked issues will auto-close when the PR is merged.

Thanks @ml4den

repo: Brain-Bones/skeleton


text:
🛑 Drank jowile is down

In 74de380, Drank jowile (https://drank.jowile.be) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Drank jowile is back up in 640bee2.


text:
feat: add loadability calculations and standard conductor parameters

Pull Request doc
Purpose

Add standard conductor parameters
Add calculation of line thermal power ratings using conductor parameters
Add calculation of loadability based on line length using the St. Clair curve approximation from @YifanLi86's paper
Miscellaneous usability fixes

What the code is doing

Two new helper functions are added:

approximate_loadability adds an interface to use line length to estimate loadability. The design is flexible enough to be able to incorporate additional methods, in case we want to enable direct calculation of the St. Clair curve for a given set of per-length impedances.
get_standard_conductors is a small helper function which reads the standard conductor parameters from the new CSV and returns a dataframe.

Within the geometry module:

get_standard_conductors is used within the instantiation of a Conductor: we can now specify conductors by code name, rather than physical parameter values, and all relevant physical parameters will be populated. This is also used to simplify the tests a bit.
Per-conductor current ratings are aggregated by conductor bundle and by number of circuits to reflect a per-phase current limit, and this per-phase current limit is used to calculate a thermal power rating for a Line.
The power_rating parameter for a Line is set based on the smaller of the thermal power rating and the loadability calculated using the approximated St. Clair curve.

Testing
One new unit test is added, and existing unit tests are enhanced.
Usage Example/Visuals
Besides being able to instantiate a Conductor by name (e.g. c = Conductor("Ostrich")), there are no other changes to how the objects are used. The only difference is that additional attributes are available.
Time estimate
30 minutes? There calculations that the code is doing aren't very complex, but probably only make sense to the folks with a power systems background.

Here's a usage example, showing how we can leverage the new functionality to automatically generate the parameters needed for Grid-building:
Assume we have a CSV data table of representative line designs:

kV
bundle_count
conductor
spacing
a_x
a_y
b_x
b_y
c_x
c_y

69
1
Osprey
N/A
-2
16.5
2
15
-2
13.5

115
1
Drake
N/A
-2
19
2
17
-2
15

138
1
Ortolan
N/A
-3
22.5
3
20
-3
17.5

230
1
Falcon
N/A
-7
20
0
20
7
20

230
2
Drake
0.5
-7
20
0
20
7
20

230
3
Drake
0.5
-7
20
0
20
7
20

345
1
Kiwi
N/A
-8
25
0
25
8
25

345
2
Falcon
0.5
-8
25
0
25
8
25

500
3
Rail
0.5
-10
30
0
30
10
30

765
4
Martin
0.5
15
40
0
40
15
40

The first three represent single-pole designs (phases oriented primarily vertically, two on one side and one on the other), while the other represent H-frame or lattice designs (phases oriented horizontally). All distances are measured in meters, with the center of the tower at ground level representing the origin.
We can build a function that interprets each row of this table into a Tower object:
def build_tower(series):
    """Build a Tower object using the transmission line design"""
    conductor = Conductor(series["conductor"])
    if series["bundle_count"] != 1:
        bundle = ConductorBundle(
            conductor=conductor,
            n=series["bundle_count"],
            spacing=series["spacing"],
        )
    else:
        bundle = ConductorBundle(conductor=conductor)  # n=1 by default
    locations = PhaseLocations(
        a=tuple(series[["a_x", "a_y"]]),
        b=tuple(series[["b_x", "b_y"]]),
        c=tuple(series[["c_x", "c_y"]]),
    )
    tower = Tower(bundle=bundle, locations=locations)
    return tower

Then, we can define a function which calculates per-mile parameter values:
def calculate_per_mile_parameters(series):
    z_base = series["voltage"]**2 / 100  # 100 MVA base

    tower = build_tower(series)
    line = Line(tower=tower, voltage=series["voltage"], length=1.609)  # km in 1 mile
    output = pd.Series(
        {
            "reactance_per_mile": line.series_impedance.imag / z_base,
            "thermal_rating": line.thermal_rating,
            "surge_impedance_loading": line.surge_impedance_loading,
        }
    )
    return output

and one that calculates the rating for a 100-mile long line:
def calculate_100_mile_rating(series):
    tower = build_tower(series)
    line = Line(tower=tower, voltage=series["voltage"], length=160.9)  # km in 100 mile
    return line.power_rating

Putting these into action:
>>> import pandas as pd
>>> from prereise.gather.griddata.transmission.geometry import (
...     Conductor,
...     ConductorBundle,
...     Line,
...     PhaseLocations,
...     Tower,
... )
>>> data = pd.read_csv("prereise\gather\griddata\hifld\data\line_designs_simple.csv")
>>> one_mile_parameters = data.apply(calculate_per_mile_parameters, axis=1)
>>> # Add a meaningful index to the new calculations, using some of the original columns
>>> index_for_display = data.set_index(["voltage", "bundle_count"]).index
>>> one_mile_parameters.index = index_for_display
>>> one_mile_parameters
                      reactance_per_mile  thermal_rating  surge_impedance_loading
voltage bundle_count
69      1                       0.015501       85.450727                13.113853
115     1                       0.005447      183.250975                37.534569
138     1                       0.003941      250.974162                52.098497
230     1                       0.001448      551.744785               142.092507
        2                       0.001092      733.003902               187.338069
        3                       0.000947     1099.505853               215.762241
345     1                       0.000649      960.274948               318.173207
        2                       0.000482     1655.234354               425.428999
500     3                       0.000217     2585.085830               941.144695
765     4                       0.000092     6651.594716              2225.035726
>>> rating_100_mile = data.apply(calculate_100_mile_rating, axis=1)
>>> rating_100_mile.index = index_for_display
>>> rating_100_mile
voltage  bundle_count
69       1                 26.199249
115      1                 74.987693
138      1                104.083946
230      1                283.876688
         2                374.269634
         3                431.056300
345      1                635.656013
         2                849.934862
500      3               1880.247205
765      4               4445.243361
dtype: float64

As would be expected, the rating for a line of about 100 miles is less than the thermal rating, and about 2x the surge impedance loading, matching the St. Clair curve.
To build a full Grid, we just need to associate each branch with a representative tower design, and then we can use that line's specific length to calculate the allowable power transfer, which will always be the lower of the thermal limit or the stability limit. Extending the tower-building function to multiple circuits on a tower is fairly trivial: we can follow the same procedure as with single vs. multiple conductors, where one column tells us which other columns we should be looking at to build the appropriate Tower object.

Reading the code , it looks like a conductor bundle is made of the same type of conductor. Is that what happens in reality or a this is use to simplify the model?

Reading the code, it looks like a conductor bundle is made of the same type of conductor. Is that what happens in reality or a this is use to simplify the model?

I believe this is true to real life: I've never seen reference to a heterogeneous conductor bundle.
There are a few other implicit assumptions that I think are more often violated in real life, to varying degrees:

Phases are always transposed so that there's an exactly equal length of line in each position
Lines are made up of exactly one tower design
All circuits on a tower are of the same voltage (i.e. you would never see a 230 kV circuit and a 69 kV circuit strung together onto a double-circuit tower)

I think these assumptions are all reasonable though, since to account for them would require more complicated logic and/or data that is unavailable or very difficult to collect, and would probably not make a large impact on the overall calculation results.

In the geometry module, you import cmath and constants/functions from math. Can we just use cmath for everything, it seems to handle complex numbers along with float/integers. It brings me to my second question, where do we encounter complex numbers? Are we dealing with complex impedance?

In the geometry module, you import cmath and constants/functions from math. Can we just use cmath for everything, it seems to handle complex numbers along with float/integers. It brings me to my second question, where do we encounter complex numbers? Are we dealing with complex impedance?

We are indeed working with complex impedance. Properly calculating the impedance of long-distance transmission lines requires doing calculations which combine series resistance (real), series reactance (imaginary), and shunt admittance (imaginary).
cmath functions will always return a complex result, which is why I've stuck with math.sqrt over cmath.sqrt when the arguments are purely real.

In the geometry module, you import cmath and constants/functions from math. Can we just use cmath for everything, it seems to handle complex numbers along with float/integers. It brings me to my second question, where do we encounter complex numbers? Are we dealing with complex impedance?

We are indeed working with complex impedance. Properly calculating the impedance of long-distance transmission lines requires doing calculations which combine series resistance (real), series reactance (imaginary), and shunt admittance (imaginary).
cmath functions will always return a complex result, which is why I've stuck with math.sqrt over cmath.sqrt when the arguments are purely real.

Thanks for the explanation. The other option is to take the real part of the output:
>>> import cmath
>>> cmath.sqrt(1)
(1+0j)
>>> cmath.sqrt(1).real
1.0

Not very important

authors: danielolsen rouille

repo: Breakthrough-Energy/PreREISE


text:
My Quiz Game is Skipping Questions

My Quiz Game appears to have another bug.
When I run my program, the first question works when I type in the correct answer. Although, after I typed in the correct answer, the second question appears to have been skipped; displays "Wrong Answer!" despite not having typed anything in yet, and the 3rd question displays instead.
Below is the outcome of my program:

Which country has the longest coastline in the world?

A. Russia
B. Canada
C. Indonesia
D. Australia
Your answer: b

What is the world's most populated country?

A. China
B. India
C. USA
D. Brazil
Your answer: Wrong answer!

What is the capital of the Philippines?

A. Dili
B. Marawi
C. Manila
D. Jakarta
Your answer:

I found out the fox for this issue.
Apparently there was a \n within my input buffer, and I wasn't able to clear it properly.
I also found out that the printf("&c"); doesn't work for me in clearing the new line character within my input buffer.
So, I preceded my format specifier in the scanf function with a space within the inner for loop where I made the user input for the user's guess answer.
BEFORE:
scanf("%c", &cGuess);
AFTER:
scanf(" %c", &cGuess);
The space fixed the issue of skipping to every other question.


text:
JPA support

At http://breeze.github.io/doc-java-hib/ there's a reference to the incoming JPA support. Is there a issue, branch or any other source to keep track on it (and eventually test)?

No, not yet.  We will update this issue to let you know.
BTW, what JPA implementation do you use?

Thank you! I use EclipseLink.

+1

+1

+1 Spring Data (better if persistence layer agnostic, I'd like to able to switch from Hibernate to Ebean in the near future)

What if I want to use polyglot persistance JPA implementation like Apache Kundera?

authors: cime heruan jhulick nexbit steveschmitt vokinpirks


text:
Ability to test responsiveness in the demo

Feature request: it'd be super cool to be able to resize the demo panels to test responsiveness. That could be kind of difficult though based on how media queries work, and might require that stuff get iframed, which could be gross. So maybe not feasible, but worth investigating. Maybe we can use seamless iframes?

Using Storybook and its viewport addon makes this easy, and allows for the creation of explicitly-responsive demo pages (stories), which we've found useful.

Cool yeah... probably time to have another look at Storybook for demos & visual diff testing purposes.

authors: apalaniuk dlockhart

repo: BrightspaceUI/core


text:
iOS issue

Hey Dan,
I love your videos, very educative, cool and straight to the point, they're great for someone like me just getting into shaders and effects.
I've been playing around with this shader, simplifying it a bit and trying to get it working on iOS. The effect looks great in the editor, however on iOS it has a really jagged outer edge. I don't know if it could be caused by the data type precision being lower on iOS. Do you have any insight into what could be causing this and maybe even ways to fix the problem?

Hey Artmos,
It definitely looks like a precision issue. You can try reducing the far clip plane. Unfortunately I haven't got access to an OSX device for testing and profiling at the moment.
An absolutely hacky way you could do this would be to render the scene again to a rendertexture, using a replacement shader that generates high precision depth values using EncodeFloatRG or EncodeFloatRGBA. That would be pretty taxing though so I'm not sure how an iPad would handle it.
In any case, please share your findings here, it would be very helpful :)

So I finally got some time to experiment some more with this and I think I've found a solution.
It seems to be a problem with the precision of the depth texture on newer iOS devices, this is easily fixed by changing:
sampler2D _CameraDepthTexture;
to
sampler2D_float _CameraDepthTexture;
This is also described in this post: http://forum.unity3d.com/threads/ios-depth-texture-precision-solved.394684/
In my project I also removed the dependency on the GlobalFog image effect by adding the following to the Start method of our script:
_camera.depthTextureMode = DepthTextureMode.Depth;

Awesome work, I didn't realize the sampler2D would default to half or low precision on iOS. Strange behaviour. I wonder if that affects the precision of other image effects as well.
I'll commit a new version with the camera depth mode set in the scanner script, didn't catch that I left it out as it was on the fog script.
Thanks for your work debugging this. I'm sure many will appreciate this!

authors: Artmos Broxxar

repo: Broxxar/NoMansScanner

license: Unlicense


text:
需要一个获取全部配置的功能

而不仅仅是通过key获取值, 多谢

获取全部配置的目的是什么？使用Apollo就是为了获取对应的配置。拿到全部的配置，如果要使用，还是得去单独解析，个人感觉没有意义
另外如果非要所有配置的话，模块运行目录下会有所有配置的本地备份数据

获取全部配置的目的是什么？使用Apollo就是为了获取对应的配置。拿到全部的配置，如果要使用，还是得去单独解析，个人感觉没有意义
另外如果非要所有配置的话，模块运行目录下会有所有配置的本地备份数据

对的，自己去解析，key只是有个统一的前缀

对的，自己去解析，key只是有个统一的前缀

sdk已经提供了解析的功能，现在是有什么场景不满足需求吗？如果可以，麻烦具体描述一下

sdk已经提供了解析的功能，现在是有什么场景不满足需求吗？如果可以，麻烦具体描述一下

authors: BruceWW badnotes

repo: BruceWW/pyapollo


text:
Dataset for running example

We provide a sample from the KITTI Odometry test set and a script to run MonoRec on it in example/. To download the pretrained model  ...

As mentioned in the  README, is there a link to the sample from the KITTI odometry dataset?

Thank you for raising this issue!
The sample data was meant to be in the repository itself, but was not pushed with the code by mistake.
I just added it. Could you please let me know if it works for you now?

It works! Thank you for the quick response

authors: Brummi vikramkalabi

repo: Brummi/MonoRec


text:
add a CSS variable controlling thumbs header link hover color

[ ] fix CSS cascade 💄 to $var-thumbs-header-link-color
[ ] add $var-thumbs-header-link-hover-color

The cascade to $var-thumbs-header-link-color needs to be updated for the [[Bulma]] layout:

The new [[Bulma]] layout breaks &.header > a and &.header > span:

The magic of text-overflow [📖 docs ] enters the studio:

we need to colorize the overlay link as well:

okay, one more for the thumbs command:


text:
logback configuration

There should be a system to configure logback so that when executing the jar we can override properties for the path to the log files, the log level, etc.

Now running using PROD profile (it was running in local instead and therefore ignoring logback-spring.xml, since there was a typo in startup script - spring.profile.active instead of spring.profiles.active).
Currently, logs file are located in execution directory under /log/myhymir-iiif-server.log.
log levels are unchanged

great! can we move the log level to warn?

Done as of commit 102afa5
You can check loggers details at http://localhost:13581/monitoring/loggers

great! can you please create an update.sh script in buda-base and update the server on AWS?

authors: MarcAgate eroux


text:
[ADD FRONTEND] : Login Page

Frontend Summary 📝
login page
Development Approach 🚀
/login
Deployment Status
None
Select the open source program you are contributing to
Other
Code of Conduct

[X] I adhere to the CONTRIBUTING GUIDELINES of this project.

Hey @shuvadeepmondal👋! Thanks for raising this issue and demonstrating your interest in contributing to our project!🚀
We value your engagement and eagerly anticipate your contributions. Should you wish to get involved, please use the /assignme command to self-assign the issue.
This issue provides an excellent opportunity for us to enhance our project, and we're excited to have you join us! Please take a moment to review our CONTRIBUTING GUIDELINES before getting started.
If you have any questions or need assistance, feel free to reach out to us on LinkedIn.❤

/assignme

Hello @shuvadeepmondal! We'd like to inform you that the issue has been resolved and is now closed. We appreciate your understanding and look forward to your continued involvement with our repository!🤗
If you encounter any further issues, please don't hesitate to reach out to us on LinkedIn. Thank you for your support!❣
Happy coding!✨ We hope to see you again soon!❣

authors: Puskar-Roy shuvadeepmondal


text:
[🐞] Debugging Qwik code from VSCode does not seem to respect source files

Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
Clicking on the line in VSCode to attach the breakpoint results in different file showing up when the. breakpoint hits.

the fact that breakpoint worked means some sourcemaps are working
the fatt that VSCode is confused means something is still missing.

https://www.loom.com/share/0aec8aea483e493083ecb4e64f3be036
Reproduction
https://www.loom.com/share/0aec8aea483e493083ecb4e64f3be036
Steps to reproduce
No response
System Info
VSCode

Additional Information
No response

As the loom is a bit fuzzy, below are my config files.
In my scenario, I want to set breakpoints depending upon results I get from the proxied backend api sever (in real-time / on-the-fly) without having to re-execute an entire clean run, which sometimes means cleaning up a partial DB transaction. Without original file source-level debugging, the DX becomes a bit painful.
// vite.config.ts

import { defineConfig, Plugin } from "vite";
import { qwikVite } from "@builder.io/qwik/optimizer";
import { qwikCity } from "@builder.io/qwik-city/vite";
import tsconfigPaths from "vite-tsconfig-paths";
import { createProxyMiddleware } from "http-proxy-middleware";
import { vanillaExtractPlugin } from "styled-vanilla-extract/vite";
import { qwikReact } from "@builder.io/qwik-react/vite";

/* Backend Proxy (technique variant 1 of 3) */

function viteServerMiddlewares(): Plugin {
  const configureServer: Plugin["configureServer"] = async (server) => {
    server.middlewares.use(
      "/api",
      createProxyMiddleware({
        target: "http://localhost:4000/api",
        pathRewrite: { "^/api": "/" },
        changeOrigin: true,
        ws: true,
        xfwd: true,
      } as any) as any
    );
  };
  return {
    name: "dev-server-middleware",
    enforce: "pre",
    apply: "serve",
    configureServer,
    configurePreviewServer: configureServer as any,
  };
}
process.env.VITE_RSC_BUILD = "true";

export default defineConfig(() => {
  return {

    server: {
      host: true, // enable local IP, see: https://github.com/vitejs/vite/discussions/3396

      /* Backend Proxy (technique variant 2 of 3) */

      proxy: {
        "/apix": {
          target: "http://localhost:4000/api",
          changeOrigin: true,
          secure: false,
          rewrite: (path) => path.replace(/^\/apix/, ""), // only needed if changing route
        },
      },

    },

    build: { sourcemap: true },   // <---- ATTEMPT TO GET SOURCE LEVEL DEBUGGING WORKING

    plugins: [
      viteServerMiddlewares(),
      qwikCity(),
      qwikVite(),
      tsconfigPaths(),
      qwikReact(),
      vanillaExtractPlugin(),
    ],
    preview: {
      headers: {
        "Cache-Control": "public, max-age=600",
      },
    },
  };
});

// tsconfig.json

{
  "compilerOptions": {
    "allowJs": true,
    "target": "ES2017",
    "module": "ES2020",
    "lib": [
      "es2020",
      "DOM",
      "WebWorker",
      "DOM.Iterable"
    ],
    "jsx": "react-jsx",
    "jsxImportSource": "@builder.io/qwik",
    "strict": true,
    "resolveJsonModule": true,
    "moduleResolution": "node",
    "esModuleInterop": true,
    "skipLibCheck": true,
    "sourceMap": true,
    "incremental": true,
    "isolatedModules": true,
    "outDir": "tmp",
    "noEmit": true,
    "types": [
      "node",
      "vite/client"
    ],
    "paths": {
      "~/*": [
        "./src/*"
      ]
    }
  },
  "files": [
    "./.eslintrc.cjs",
  ],
  "include": [
    "src"
  ]
}

This is a problem with Vite. Currently it doesn't support breakpoints or sourcemaps on the server code.
Here's my solution to this problem: https://github.com/cyco130/vavite/pull/17. It uses Node's experimental ESM loader feature, enabling sourcemaps and breakpoints on the server. The downside is, it almost certainly leaks memory. I find it an acceptable compromise since restarting the server once in a while is enough the clean up resources but your mileage may vary.

This should be greatly improved in the latest release Vite 4.2!

repo: BuilderIO/qwik


text:
docs: routeLoader adjustment

Overview

What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests / types / typos

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Use cases and why

One use case

Another use case

Checklist:

[ ] My code follows the developer guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

thx Yoav 🙏

authors: hamatoyogi zanettin


text:
Saved Projects Screen Improvements

In my opinion if there are no saved projects, a message should be displayed indicating the user does not have any saved projects yet, and if need be directed to creating a new project option.

@chhavip you can proceed. :+1:

Hey! I have made a PR regarding this issue. Please have a look at it. :)

Closed via #170

authors: chhavip octacode opticod

repo: BuildmLearn/BuildmLearn-Toolkit-Android


text:
format: Apply Black formatter to the codebase

Applied Black formatter to the codebase.
All logic is completely untouched, but some small juggling was made in some places to reduce the number of lines.
Also added text to the error messages (for logger.error(err)).
I hope this number of changes does not mess up anything you are working on at the moment, though it should be modular enough to make merging easier.

Is there a script we could add to format the code add before any commits?

Yes it is possible with a pre-commit, I can add a commit for it now

Now to use this pre-commit the developer needs to install it using pre-commit install. Then if a changed file is not formatted correctly, pre-commit will add the formatted files as unstaged changes, which will need to be staged and recommitted.

sick!!

repo: Bunsly/JobSpy


text:
Modify our production Docker image to be multiarch with 32-bit OpenJDK 8

Here is a 32-bit JVM docker file we can base ours on
https://github.com/ofayau/docker-busybox-lib32/blob/master/busybox-jvm/Dockerfile
For a debian-based image, there's a multiarch command some apt-get commands we can run.

Here's a compact3 profile based on OpenJDK 8. I need to double check the license.
https://github.com/ofayau/docker-openjdk/blob/master/openjdk-compact3/Dockerfile

Notes on modifying our sbt-docker setup to run commands (for configuring multiarch)
https://velvia.github.io/Docker-Scala-Sbt/

The compact3 openjdk 8 binaries are under a dual license.
https://jdk8.java.net/java-se-8-ri/
They make a big stink about how it's for reference only and not for production use. We should ponder that.

(here's the commit where we removed docker publishing from io.buoyant, it contains how to build the multiarch docker image)
https://github.com/BuoyantIO/io.buoyant/commit/818d2da2bcaf24fbc0e656bc0679cf4b7d9f2a20

Here is the commit where I added support: https://github.com/BuoyantIO/io.buoyant/pull/395/files

Fixed in https://github.com/BuoyantIO/linkerd/pull/554/

repo: BuoyantIO/linkerd


text:
could not get roster for team...

It seems to have trouble for STL and JAX (Could not get roster for team) every time I attempt to run nfldb-update. I have set --player-interval 5, and ran that command a few times.

should have posted this in nflgame. The fix is just changing the the team abbreviations in the nflgame module init.py teams list
from JAC to JAX and from STL to LA

I question whether the fix of changing from STL to LA is best course of action.  Seems to me that years worth of historical data is lost without a team to map all of the old Rams games to.

authors: ochawkeye rjbks

repo: BurntSushi/nfldb


text:
[Suggestion/question] Resourcefull furnace

Industrial Foregoing Version: 1.8.11
With the resourcefull furnace is it possible that it will autosort between the 3 input slots so it will use them evenly if there are only 30 items in instead of just the first top slot.

You can use the Item Splitter for that

in JEI it says the item splitter is for the output of a machine and i was talking about the input slot inside the machine... (when ur looking inside the actual machine)

so it will split the lead evenly in those 3 slots

No, the Item Splitter will push items into inventories leaving only the specified item item amount on that inventory.

aah ok i get it thanks for ur time


text:
Update pwgen.py

Fixed White Spaces and made esc() instead of blank print()

I see no improvement. All this does is replace a simple print call with a function wrapping it? Why?

repo: ByteCommander/PasswordGenerator


text:
Icon compute capability

Apparently -ta=nvidia:cc80 as a Fortran flag is deprecated. -gpu=cc80 replaces it.
This makes +ecrad work.

launch jenkins icon

tsa
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec

timed out after 5 seconds:red_circle: system testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle:daint_cpu_gcc :green_circle:daint_cpu_nvhpc :red_circle:daint_gpu_nvhpc
WARNING: Serial tests did not run for system tests

launch jenkins icon

tsa
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec

daint
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle: system testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle:daint_cpu_gcc :green_circle:daint_cpu_nvhpc :green_circle:daint_gpu_nvhpc

timed out after 5 seconds:red_circle: system testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :lock:Icon-install_nwp_cpu spack locking problem:red_circle:Icon-install_nwp_gpu
WARNING: Serial tests did not run for system tests

timed out after 5 seconds:red_circle: system testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :red_circle:Icon-install_nwp_cpu :red_circle:Icon-install_nwp_gpu
WARNING: Serial tests did not run for system tests

launch jenkins icon

balfrin
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle: system testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle:Icon-install_nwp_cpu :green_circle:Icon-install_nwp_gpu

daint
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle: system testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle:daint_cpu_gcc :green_circle:daint_cpu_nvhpc :green_circle:daint_gpu_nvhpc

launch jenkins icon

tsa
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec

daint
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle: system testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle:daint_cpu_gcc :green_circle:daint_cpu_nvhpc :green_circle:daint_gpu_nvhpc

launch jenkins icon balfrin

tsa
:green_circle: unit testTest:green_circle:summary

daint
:green_circle: unit testTest:green_circle:summary

balfrin
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle: system testTest:green_circle:summary :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle:Icon-install_nwp_cpu :green_circle:Icon-install_nwp_gpu

authors: PanicSheep jenkins-apn


text:
finalize the webpage

using 8 hrs,
improve dataBase and create contact page data base and blog with markdown format.

the blog page using database data to render front end

repo: CAFECA-IO/KnowledgeManagement


text:
Example files appear to use uninitialized pointer

Hello,
I am using your CANOpennode software on a SAMA5D2 processor for a project of ours.
I got everything to make and was using the provided example main to just test that things were working before moving to implementing the driver interface when I encounted a problem.
At the beginning of main.c  there are these lines:
        /* disable CAN and CAN interrupts */ 		printf("Disable CAN and interrupts\n\r"); 		CO->CANmodule[0]->CANnormal = false;
seems straight forward, but on my eval board the program hangs and won't continue after this statement. I get the output from the printf, and then nothing after that.
From what I can tell CO has been created, but it is set to NULL.
It only gets initialised after this call:
       /* initialize CANopen */ 		printf("Calling CO_init\n\r");         err = CO_init(0/* CAN module address */, 10/* NodeID */, 250 /* bit rate */);
I  have looked at the PIC example and it is the same, yet I would assume it runs.
I feel like using the pointer before it's initialized is incorrect, and it doesn't work on my board, but I don't see anyone else complaining.
What am I missing here.
Thank you.

It seems, there is a mistake in mainline for PIC and SAM. You should erase that line.
That line is already included inside CO_init().
In main_PIC32.c, which is included in CANopenStack, that line is not present.
Examples for other PICs run, however, I will repair them.

I think it is also in the main.c generic as well.
Thanks, I wasn't sure it was a mistake, but taking it out fixed my implementation, and I then later noticed it in CO_init() as well, so I figured it was an oversight.

authors: CANopenNode RenardGraham

repo: CANopenNode/CANopenNode


text:
chassis rotating randomly during manual stage movements

the robot's chassis is always rotating randomly during manual stage movements, especially those with higher speed

maybe we can add encoder correction to the manual stage program, their are two ways to do this:
1. the joystick controls the targeted rotation of the robot, during every period, the program updates the targeted rotation according to the time elasped, the preseted sensitivity and the value of the stick. Then the robot stick to the targeted rotation using the algorizm from auto-stage program
2. store the robot's rotation during the previous period using a variable, if the robot isn't asked to move, it sticks to the previous rotation using that same algorism and leave the variable unchanged; however, if the robot is asked to move, it rotates as before and updates that variable

TODO: write the code for the above, for both solutions (one week of time)


text:
Patristic Distance Computation

i.e. Let's reverse-engineer the genetic distance matrix from the phylogenetic tree. From there, we can begin accepting Newick files as inputs and jump straight to the equivalent network.

Can't find a javascript implementation, but there's a neat version using Perl. Without recoding it, I can verify it works using perl.js.

Resolved by writing patristic library and integrating it (6fb5634).

repo: CDCgov/MicrobeTrace


text:
Cndit 640 GitHub workflow action

Upgraded github action hook to work with latest CI pipeline.
build.gradle -- plugin added for printversion task, which is being used in the common template file.
sonar.yaml -- To invoke it from Build-data-ingestion-service.yaml
Build-data-ingestion-service.yaml --Updated as Infra team suggested.
Release-gradle-container.yaml --New pipeline that is specific to releases.

Refactored the code to pull RSA keys from the environment.

I removed the deployment code from the pipeline since deployment will be manual.

repo: CDCgov/NEDSS-DataIngestion


text:
Identify the first round of React components we will build

We should create a running list of React components we will build for the transition. We can do this as a meeting like a bug bash, or we can just create an issue in ZenHub and start listing out what we think, and do that discussion asynchronously to start. @drew-usds this is your area of expertise, so you should definitely guide this.

This is OBE
We will create the same components as in the older eleventy site

authors: Bisonburger MauriceReeves-usds

repo: CDCgov/prime-reportstream


text:
Extend "Manage Facility" device management dropdown component

Related Issue

Closes #5823

Changes Proposed

The device management combobox on the Manage Facility page includes additional data in the body of the dropdown

Additional Information

The appearance and set of data returned is lifted from the device code lookup page

The difference is that the device management form requires a multiselect component, while the device code lookup selects a single device at a time

At this time, device queries only search the device name field

This is different from the device code lookup
The ticket was unclear on this point - would we like to search the manufacturer and model as well?

Testing

This branch is deployed to dev3

Screenshots / Demos
Unopened

Opened, no filter applied

Opened, filter applied

Opened, filter applied, no results

Sticky headers
https://github.com/CDCgov/prime-simplereport/assets/27730981/2138d9f4-8a14-426c-bb9a-87b512b8eb46

Can you pull in @changecourse (Ryan Gaddis) and @lauraykerr to review the visual design and content?

Clicking on the search box does nothing, then type something (pulls up the results box, then backspace what you type, reveals a list of all devices. is this the intended behavior

This behavior wasn't defined in the ticket one way or another. Originally the dropdown would open on-click, but when I pushed this out to a dev environment with the full LIVD table loaded in, my browser started choking up - the result set seems to be pretty big. I'm going to re-enable the "dropdown opens when the search box is clicked" behavior, push it out, and experiment with it a little more.

Noting a visual bug: for larger result sets, we seem to end up with two scrollbars in the dropdown

Will look into this and push a fix 👍

One note on content: Recommend Search for a device to add it for the search box placeholder/empty state
A couple notes on functionality:

I tried searching for manufacturer and it doesn’t seem to bring anything up. Is this how it’s meant to be? The "no results" message mentions manufacturer, so we'll want to change that if so.
Looks like many devices are missing test type altogether, or for multiplex, might be missing COVID-19. Is this because of the variations of COVID-19 vendor analyte descriptions on the LIVD table?

I defer to @changecourse for visual design notes

Re: @zdeveloper's comment:

once you select all options, currently it just keeps the no device found error message, wondering if we can handle that case more gracefully.

@lauraykerr @changecourse how would we like this to look? For reference, this is the current behavior for this branch:

This brings up a good point that added devices won't show up in list. We also don't need to push contacting support because of the message at the bottom of the page. With that, I think we should adjust the no results found message:

No device found matching [search term].
Please check the list of added devices or try a different search term from the device's name or manufacturer.

If we can add a custom message when all results are added, I'd opt for:

No other devices found matching [search term].
Please check the list of added devices.

Noting a visual bug: for larger result sets, we seem to end up with two scrollbars in the dropdown

Will look into this and push a fix +1

Yeah I am seeing the two scrollbars too

@lauraykerr

Recommend Search for a device to add it for the search box placeholder/empty state

Done (137b85a).

I tried searching for manufacturer and it doesn’t seem to bring anything up. Is this how it’s meant to be? The "no results" message mentions manufacturer, so we'll want to change that if so.

This is a great point. The ticket was ambiguous on this point but we can have this search on manufacturer and model as well, instead of just the device name (@lg-king, @zdeveloper)

Looks like many devices are missing test type altogether, or for multiplex, might be missing COVID-19. Is this because of the variations of COVID-19 vendor analyte descriptions on the LIVD table?

I'm assuming you're seeing this in dev3? That environment (and many/all of our other dev environments) has some very old devices that predate the SimpleReport notion of a "supported disease". I don't believe this is the case for any prod devices, since we have been able to sync those from the LIVD table regularly.

Partial review, I noticed on dev3 that the dropdown will shrink horizontally, presumably when the row's data doesn't need as much space. Is this intentional? (Btw this was with the browser docked to half the screen)

@mpbrown want to check this out now? I've re-deployed to dev3. There may still be an issue where the width of the columns inside the dropdown can vary, but I believe the dropdown itself should remain a consistent size now.

I tried searching for manufacturer and it doesn’t seem to bring anything up. Is this how it’s meant to be? The "no results" message mentions manufacturer, so we'll want to change that if so.

Following up on @lauraykerr's comment earlier - the device management form now searches model and manufacturer as additional search fields (b4350e7).

Thanks for fixing the input focus bug, tested in dev3 and it looks mostly great, one final weird thing is the inconsistency between what the dropdown shows and what the selected pills show

the dropdown shows manufacture/equipment model name
and the selected device pill shows device name (custom field)

this can lead to confusion given that the device name was not displayed on the dropdown list and it may differ from the manufacture/equipment model name
can we show the equipment model name on the pill
any thoughts @lg-king ?

can we show the equipment model name on the pill

@zdeveloper good idea, added in 00e232a and pushed out to dev3 👍

authors: lauraykerr lg-king nathancrtr zdeveloper

repo: CDCgov/prime-simplereport


text:
'get-config' operation got default nodes (expected not)

Hi,
'get-config' operation will get some empty container nodes (they should be default nodes) even if user does not configure any data explicitly. Following steps can reproduce this issue.
1, intall following module to sysrepo:
module ModuleA {
	namespace "urn:a";
	prefix a;
	container MO1 {
		container MO2 {
			leaf f1{type string; default "abc";}
		}
	}
}

2, executing get-config --source running --defaults explicit in netopeer2-cli will create following output(expect empty):
<MO1 xmlns="urn:a">
</MO1>

Hi,
it should work now in the devel-server branch, you need to update libyang as well.
Regards,
Michal

Hi,
I have got the latest version of libyang and netopeer2, and it works now, thanks.

authors: fanchanghu michalvasko


text:
Running sysrepoctl --install but nothing in log

Hi,
I run the following command:
/usr/bin/sysrepoctl --install /home/netconf/tailf-xsd-types.yang
I start netopeer2 using:
/usr/bin/netopeer2-server -d  -v3
Is there any way to see if install was ok
br,
//mike

Run sysrepoctl -l, it will print all the installed modules.

authors: michalvasko mpet


text:
What is the difference between the different PointGPT-S models?

Here are the different PointGPT-S models:
PointGPT-S Models

Task
Dataset
Config
Acc.
Download

Pre-training
ShapeNet
pretrain.yaml
N.A.
here

Classification
ScanObjectNN
finetune_scan_hardest.yaml
86.9%
here

Classification
ScanObjectNN
finetune_scan_objbg.yaml
91.6%
here

Classification
ScanObjectNN
finetune_scan_objonly.yaml
90.0%
here

Classification
ModelNet40(1k)
finetune_modelnet.yaml
94.0%
here

Classification
ModelNet40(8k)
finetune_modelnet_8k.yaml
94.2%
here

Part segmentation
ShapeNetPart
segmentation
86.2% mIoU
here

I thought all the classification models were trasfered to the ScanObjectNN dataset then evaluated against {OBJ_BG, OBJ_ONLY, PB_T50_RS, ModelNet40-1k, ModelNet40-8k}. So why is there five different links for classification models? Shouldn't there be only one link because they were all transfer learned on ScanObjectNN?
Please let me know where I have misunderstood. Thanks.

We start by pretraining on ShapeNet to obtain pre-trained models, and then fine-tune them on various scenarios within different datasets to obtain network parameters for different tasks. Take ScanObjectNN, for instance; it comprises three distinct scenarios, with each scenario corresponding to a specific set of network parameters.

Thank you.

repo: CGuangyan-BIT/PointGPT


text:
ESPRESSO ISSUE

I downloaded cello because I wanted to run it as a java Application in order to understand the underlying code for my project.
It gives error saying that "ERROR :: expresso.exe file not found. Please check the netSynthResources Folder" @ org.cellocad.BU.netsynth.Utilities getFileContentAsStringList
I changed the "espresso" (which I believe that it's the right time) to "expresso" and I got another error that it can't find "expresso" methods.
I decided to have both "espresso" and "expresso" in the folder and I got another error "java.lang.NoSuchFieldError: Name" which I think it was because of having both names.
Please how do I fix this?

There was a typo in netsynth, it was looking for expresso.exe rather than espresso.exe. Please sync your local copy or re-clone and try again.

I just tried and I am still getting the same error

Can you check the netsynth again. I'm still getting the same error.
Thanks.

I assume you're using maven? However you installed NetSynth.jar from resources/library/, you'll have to do that again with the new jar that I put up a few days ago.

I re-cloned and tried but I am still getting the expresso.exe not found error.

authors: kenextra tim-tx

repo: CIDARLAB/cello


text:
Update the example image in the documentation

What
Improve the example image with a newer version!
Why
The old demo gif was very old, it's looking way more appealing now.

Looking good, I, accept your offer mortal!

authors: RickvdStaaij eXistenZNL

repo: CIMonitor/CIMonitor


text:
Intermediate/Senior Front End Engineer - Xero - Wellington

Job title: Front End Engineer
Job level: intermediate or Senior (no junior, sorry)
Company name: Xero
Job description:

What you'll do:

Use your expert front-end skills to work in a cross disciplinary delivery pod to collectively ship quality UI features and UX improvements to customers
Work with other Front-end Engineers to plan and develop sustainable UI practices using Salesforce front-end frameworks, which includes phasing in Xero’s Design System
Collaborate with Product Designers to implement consistent responsive designs with users in mind
Promote the value of front-end non functional requirements within the team including site speed performance, usability and accessibility etc.
Coordinate with Salesforce Engineers to strategise and implement scalable Salesforce flavoured UI components based on the Web Components spec
Collaborate with other product teams to develop React based solutions which utilises Salesforce’s preferred partners and integrations
Develop robust, secure, high-quality software, meeting requirements of the agreed specifications, and complying with Xero’s formal and informal development team standards and procedures
Maintain knowledge of current and emerging development technologies and methodologies

What you'll bring with you:

A love for the web, UX engineering, modern JavaScript, CSS, and semantic HTML, with an eye for design patterns and UI component split out
Proven experience with CMSs, CSS pre-processors, Git workflows, responsive & scalable design patterns, modern JavaScript and HTML5
Experience working with JavaScript frameworks or libraries like React, Angular or Vue
Working knowledge of modern web development patterns, JavaScript, CSS methodologies, and digital accessibility.
A passion for developing user-focused web-based applications for all major viewport sizes and modern browsers
A self-starting and pragmatic problem-solving mindset, while working around third-party tooling issues and limitations
The ability to communicate well and work as part of a cross disciplinary team in an Agile environment with continuous improvement in mind for you and the team
A passion for continuously shipping value to users, while pragmatically balancing technical debt and quality with speed, and the maturity to communicate this balance to stakeholders.

About Xero, the company
Xero is a beautiful, easy-to-use platform that helps small businesses and their accounting and bookkeeping advisors grow and thrive.
At Xero, our purpose is to make life better for people in small business, their advisors, and communities around the world. This purpose sits at the centre of everything we do. We support our people to do the best work of their lives so that they can help small businesses succeed through better tools, information and connections. Because when they succeed they make a difference, and when millions of small businesses are making a difference, the world is a more beautiful place.
We need your help to build beautiful new user interfaces, and improve the existing ones, on our Salesforce platform that serves both Xero customers and partners! This role is based in Wellington.
We are looking for a Front-end Engineer to join our Customer Success Systems team to work closely with the Service team and BAU teams. You will get the opportunity to work on a diverse, extensive and evolving set of challenges as we help Xero scale.
Why you should become a Xero
It’s a diverse and inclusive environment, with people who will respect, challenge, support and mentor you to do the best work of your life. We’re a place where innovation and change are not only encouraged but also celebrated. We value our people and want them to enjoy and take pride in their work.
We’re very supportive of flexible working arrangements and offer a competitive remuneration package including shares and life insurance, in addition to your base salary. We have a culture we’re proud of. Whether you're after a workplace with a social vibe, or a workplace which understands your family is priority - Xero is all of that and more.
Xero is an NZ Immigration Accredited Employer and Rainbow Tick certified too.

Contact info: Bruce大龙

Thank you Bruce for sharing this job. Your contribution to CITA is much appreciated. Cheers.

repo: CITANZ/jobs


text:
not sure how to retrieve data appropriately from grlc query API

Hi, I've setup my grlc api [1] for this query [2]. Running the results 'manually' (by clicking 'execute' and so on) all seems to work fine. But when I try to retrieve the results via Python, it appears as the output is not properly formatted, as it start with b':
b'"id","title","geom_source","ccodes","min","max","citation"\n"https://iisg.amsterdam/resource/country/Afghanistan/1946","Afghanistan","http://nils.weidmann.ws/projects/cshapes.html","AF",1946-01-01,2016-06-30,"https://druid.datalegend.net/nlgis/cshapes/"\n

I use this [3] python script. Could you please give me an example of how I'm supposed to retrieve the query via Python (pandas)? Is there a way to omit the ^^xsd: from the result set?
Sorry noob power...
Richard
[1] http://grlc.io/api/rlzijdeman/lp-sparql-tsv-queries#/country level/get_lp_cshapes_query
[2] https://druid.datalegend.net/rlzijdeman/whgazetteer/queries/retieveCountriesforMountainTypes/6
[3] https://github.com/rlzijdeman/lp-sparql-tsv-queries/blob/master/retrieve-query-example.py

Try decode? resp.content.decode("utf-8")

cheers, that worked. for future reference:
#import libraries
import pandas as pd
import requests
import io

# set info for retrieval
url = "http://grlc.io/api/rlzijdeman/lp-sparql-tsv-queries/lp-cshapes-query?endpoint=https%3A%2F%2Fapi.druid.datalegend.net%2Fdatasets%2Fnlgis%2Fcshapes%2Fservices%2Fcshapes%2Fsparql"
headers={'accept': 'text/csv'}

# retrieve and format data
resp = requests.get(url, headers = headers)
respClean = io.StringIO(resp.content.decode("utf-8"))
df = pd.read_csv(respClean, sep = ",")

# write to tsv file
df.to_csv("./cshapes-whgz.tsv", sep="\t", index = False)

# EOF

authors: rijpma rlzijdeman

repo: CLARIAH/grlc


text:
Anybody with a newer version of this project?

Hello, I'm leaving from ventura and backing to Monterey but I lost the EFI 9.x versios.
Anybody have?

https://github.com/CLAY-BIOS/Lenovo-ThinkPad-T450s-Hackintosh-OpenCore/issues/124#issuecomment-1685245019

T450s EFI 0.95 - OS Monteray 12.7 : https://drive.google.com/file/d/11iKZ-F94kwDVavUPESGn-prZPnWuwo09/view?usp=sharing

So will there be an EFI for Ventura?

Could you upload your EFI for Ventura, please?

Could you upload your EFI for Ventura, please?

Grab from this link : https://github.com/CLAY-BIOS/Lenovo-ThinkPad-T450s-Hackintosh-OpenCore/issues/131#issuecomment-1732465208

@gonav8 Thank for your EFI, and could you list your bios settings

https://github.com/CLAY-BIOS/Lenovo-ThinkPad-T450s-Hackintosh-OpenCore/issues/124#issuecomment-1742129607

Does the brightness work in ventura?
Or do i Need to install that app like in sonoma


text:
Add Matrix connector

My interest in the project spawned from this post in slurm-users.
Here's a first attempt at implementing a connector to Matrix. It can send messages to any channel the provided username is a member of, and (currently) uses a markdown template which works well with most clients.
I'd really appreciate any comments from the authors regarding the general implementation, and we could then perhaps post in the slurm-users thread inviting people to test.

@timeu @pja237 Hello again. I'd very much appreciate your comments on this attempt.

Hey @tdido, nice to have you back in the game.
I'll try to explain how we did this with telegram in hope that it sets you in the right direction with matrix, since i'm supershort on time nowdays, i ask you for a bit of patience, might take some hours before i reply.
Telegram:

every chat between two or more entities has a unique chatID associated to that particular stream of messages

two users - chatID
user and a bot - chatID
n users in a groupchat with a bot inside - chatID

with telegram client api we can send messages only to this chatID (not users or groups or anything else, we need this chatID)
with --mail-user=telegram:XYZ user can pass us any string, ideally this chatID which we could use in the connector to send the message to, but....
how does our slurm user know this XZY chatID?

So, we built this tgslurmbot binary, which is a simple telegram bot, any telegram user can search for him and initiate a chat with him, also groupchats of users can add this bot to their chat.
When that happens, the bot awakens on this event, looks up the chatID of this event and sends the following message back to that same chat:
welcome to slurmbot, use this switch in your sbatch --mail-user=telegram:thisParticularChatID.
That's how we give the information to the user on which sbatch submission switch to add, simply copy-paste this switch and voila. This chatID then comes back from users job to the telegram connector, and we direct the messages there.
Problem solved.
This is how you could attack this in matrix, with a similar approach:

build a matrix bot, which when users/groups invite to chat awakens and sends the message back to that chat with the roomID, i've quickly ripped off some code from other people and put together a poc you can evolve and test (and make less bad) https://gist.github.com/pja237/04acc9e0131c134f0bf48ad704b82ae5 (try it out)
then in the connector use the roomID coming from --mail-user switch (no need for lookups), example send:
https://gist.github.com/pja237/6d97895bc606e5d4e2d0ad1fb2e58840

You can run and test it out stand-alone, register the bot users, fill out the consts, spin up bot, send him an invite and then observe. Try the bot to see if this concept will work, perhaps with a group chat too, add more users if you have, then invite bot to the chat. Then if this is a good path fwd. it'll need a lot of polishing.
Hope this helps you somehow on how to get the things you're missing?
I'm happy to work on this to go forward, but sadly can't contribute much more these days (until the storm passes).
Just drop any question, one of us will try to reply asap.

Hey @tdido, nice to have you back in the game.
I'll try to explain how we did this with telegram in hope that it sets you in the right direction with matrix, since i'm supershort on time nowdays, i ask you for a bit of patience, might take some hours before i reply.
Telegram:

every chat between two or more entities has a unique chatID associated to that particular stream of messages

two users - chatID
user and a bot - chatID
n users in a groupchat with a bot inside - chatID

with telegram client api we can send messages only to this chatID (not users or groups or anything else, we need this chatID)
with --mail-user=telegram:XYZ user can pass us any string, ideally this chatID which we could use in the connector to send the message to, but....
how does our slurm user know this XZY chatID?

So, we built this tgslurmbot binary, which is a simple telegram bot, any telegram user can search for him and initiate a chat with him, also groupchats of users can add this bot to their chat.
When that happens, the bot awakens on this event, looks up the chatID of this event and sends the following message back to that same chat:
welcome to slurmbot, use this switch in your sbatch --mail-user=telegram:thisParticularChatID.
That's how we give the information to the user on which sbatch submission switch to add, simply copy-paste this switch and voila. This chatID then comes back from users job to the telegram connector, and we direct the messages there.
Problem solved.
This is how you could attack this in matrix, with a similar approach:

build a matrix bot, which when users/groups invite to chat awakens and sends the message back to that chat with the roomID, i've quickly ripped off some code from other people and put together a poc you can evolve and test (and make less bad) https://gist.github.com/pja237/04acc9e0131c134f0bf48ad704b82ae5 (try it out)
then in the connector use the roomID coming from --mail-user switch (no need for lookups), example send:
https://gist.github.com/pja237/6d97895bc606e5d4e2d0ad1fb2e58840

You can run and test it out stand-alone, register the bot users, fill out the consts, spin up bot, send him an invite and then observe. Try the bot to see if this concept will work, perhaps with a group chat too, add more users if you have, then invite bot to the chat. Then if this is a good path fwd. it'll need a lot of polishing.
Hope this helps you somehow on how to get the things you're missing?
I'm happy to work on this to go forward, but sadly can't contribute much more these days (until the storm passes).
Just drop any question, one of us will try to reply asap.

So i'm guessing you tried this concept out and it's good?

single user room with the bot reporting job status works?
multi-user rooms with the bot also work?

Does this workflow with the bot have any limitations or it covers all required use cases?
I'll keep an eye out if you need any more assistance, that thing with cannibalized code and double messages you'll have to figure out why if you haven't already, so just ping us here and tnx for patience :+1:

So i'm guessing you tried this concept out and it's good?

Yes, Matrix doesn't really make a difference so any channel ID works.

Does this workflow with the bot have any limitations or it covers all required use cases?

No limitations that I can think of, and if you don't want to use the bot you can just set a normal user in the config and it will be able to send messages to any channel such user is already a member of. So I'd say it's pretty flexible.

I'll keep an eye out if you need any more assistance, that thing with cannibalized code and double messages you'll have to figure out why if you haven't already, so just ping us here and tnx for patience

I appreciate your help. I'll keep at it and report any blockers here.

OK, this is in pretty good shape I think. There's three key things missing:

[ ] Resolve duplicate messages when bot joins the channel (see conversation above)
[ ] Add e2e tests
[ ] Add docs

I've been looking at the e2e tests and I'm not very confident I understand how to go about adding one, so I'd appreciate any guidance regarding that whenever you guys have some time to spare.
Thanks!

Looks simple and reasonable enough, i'll add some thoughts inline on the matrix bot code to consider while wrapping that up.
Re. the three points you have, i can try to assist with some e2e thoughts.

[ ]  Add e2e tests

To be honest, in this case i'm not sure how i'd do the test at this point in time (@timeu ideas?).
The idea of e2e is that we simulate the whole environment around gosl/gobl invocation and then observe the output.
I'll take test_05 as an example, where we simulate slurm version <21.8 which doesn't have env vars (you know the story).
So to simulate one run of the goslmailer we need:

configuration files here
slurm environment  variables we do via a simple source of a shell script which sets them, or not here
the output of slurm sacct and sstat we simulate again with simple shell scripts that dump the same output as real commands would here
the test written in endly workflow system

The test.yaml describes where to copy those 1-3 things we need from above list and how to execute the goslmailer command using with the env. vars set/not.
https://github.com/CLIP-HPC/goslmailer/blob/85fe394e4c0170de8a66f3c699207bbe20f7a133/test_e2e/cases/test_05/test.yaml#L30-L41
Then depending on the test case we assert various things. In the test_05 we check for two things:

that the rendered output file from goslmailer is equal to our golden image here
https://github.com/CLIP-HPC/goslmailer/blob/85fe394e4c0170de8a66f3c699207bbe20f7a133/test_e2e/cases/test_05/test.yaml#L52

and:

goslmailer threw this out in the run log:
https://github.com/CLIP-HPC/goslmailer/blob/85fe394e4c0170de8a66f3c699207bbe20f7a133/test_e2e/cases/test_05/test.yaml#L57

So in this case, where the connector doesn't do debug rendering to file or supports spooling, it's really hard to simulate the other side, which would be the matrix server.
Perhaps for now skip the e2e test unless you came to some idea now after this, or @timeu? We can always do it later.

[ ]  Add docs

Yes please. Screenshots are welcome as well.

repo: CLIP-HPC/goslmailer


text:
Save github activity as posts

Create a api endpoint author/<uuid:author_id>/github to add any new github events to the database as posts
Change the templates to filter out non-github posts and github posts
Create a button to pull the latest events from github for thr user

The date/time between general posts and github post is not sorted.  the github event is always before the general posts.
Since it is a post, we can view and comment on the github post.

The date/time between general posts and github post is not sorted.  the github event is always before the general posts. (It works sometimes, it does not work sometime)
Since it is a post, we can view and comment on the github post.

It works well on my local, I can successfully make a comment on the github post and the date is displaying correctly as well. I doubt that the above issues are caused by the cache of your browser, please try it again with incognito window.

authors: JohnDoeMask XiaoleZ


text:
More security vendors are now tagging lasim as (password stealing) Trojan

OS: Windows 11 Pro
File: Lasim.exe
Lasim version: v0.1.2
VirusTotal analysis: https://www.virustotal.com/gui/file/9cbddd9276b5ff0fb3bcf982f766f533053c6852162b314a6536faab6bce0da5/detection
Lasim version: v0.1.1
VirusTotal analysis: https://www.virustotal.com/gui/file/3da7727225c201328391fa44eca060f6e060978dbbd7b0a163d5a083e5d81bc5/detection
FYI.  Not sure if you can do anything with it.  Not sure if it is an issue.

Yeah that's really odd. I don't know what would be tripping it up about 0.1.2, other than that it's newer.
I can definitely find references to false positives on virustotal:

https://www.reddit.com/r/rust/comments/qa7tqk/rust_executable_flagged_as_malware_by_virustotal/
https://www.reddit.com/r/golang/comments/k5ac91/tcp_chat_application_being_detected_as_virus/

So in short, 3/70 deciding it's a virus is not unheard of. Especially for a program that actively prompts users for credentials I guess.
I always use the versions compiled by GitHub, so even if my personal machine was infected somehow, what gets uploaded should be safe.
Obviously for anyone concerned, you can always examine the code and then build it from source:

https://www.rust-lang.org/tools/install
https://doc.rust-lang.org/cargo/commands/cargo-build.html

Or download the results from Github itself: https://github.com/CMahaff/lasim/actions
(i.e. the latest 0.1.2 is here: https://github.com/CMahaff/lasim/actions/runs/5549283894)
As for fixing this, not sure what else to do except look into signing the windows version, which from the above threads, might make them shut up.

Hah, just hit "re-analyze" on the same file and a completely different set of matches are now shown, 4/70.
(sorry, I think it removed your original scan results - I thought it would generate new ones).
I'm prepared to close this since the results seem kind of random, unless there is an action you'd like me to take.

OK.  I can't think of any suggestions anyway.  Thx for responding.

repo: CMahaff/lasim


text:
Test cleanup

This is just some minor testing clean up for consistency and clarity.
The first update is that we use warnings infrastructure instead of pytest.warns everywhere to test warnings. This way we can check the string output of the warning (can't do that with pytest.warns). Some test files used warnings and others used pytest so now they are all consistent.
The second change is that we only check the string message in the warning if a warning was actually issued. In the case that there was no warning (but we expect one) then the length of the warning info is 0 and trying to do str(w[-1].message) gives an index error and makes the test stop. So now it's only checked if we know at least one warning was issued.
Third update is that all files now use the structure r = np.full(X, False) for the assertions rather than individual variables r0, r1, etc. This change is for consistency and cleanliness.
Lastly, I deleted the not_vol.py file. I forgot this was still in the repo. It contained all the old tests from before the refactor that I was saving for easy update of tests in the refactor. It's no longer needed.

I forgot about this, but I added a method for testing warnings. Should be ready to go now.

Thanks @kkiesling

authors: gonuke kkiesling

repo: CNERG/IsogeomGenerator


text:
Create BaseSpanArray class as common subclass to CharSpanArray and TokenSpanArray

Currently, TokenSpanArray is derived from CharSpanArray, but is not a proper instance of a CharSpanArray and is missing certain attributes. For example the test for TokenSpanArray in TestPandasMethods.test_equals fails because it uses the CharSpanArray.equals method and does not have attributes like _equivalent_arrays.
It would make the class structure clearer if common functionality was moved to an abstract BaseSpanArray class and specific functionality implemented in the concrete classes.

@frreiss what do you think about this?

The short answer is that originally TokenSpanArray and CharSpanArray were completely separate classes, and that design caused a lot of problems. Many operations that could take either type as input ended up with special-case code to handle both array types. There was also quite a bit of redundant functionality between the two classes. On several occasions, subtle differences in this redundant code led to nasty bugs.
Making CharSpanArray the superclass simplified the code a lot. Several complex methods, such contains(), equals() and overlaps(), only need to be implemented in CharSpanArray. Operations under text_extensions_for_pandas.spanner that only require begin and end offsets can be implemented for CharSpanArray and will just work if passed a TokenSpanArray.
That said, I'd be open to an alternative class structure if you can figure out how to retain the code-simplification benefits of the current arrangement. Maybe a superclass with opaque versions of most of the functionality of CharSpanArray but none of the data fields?

Ok, I'll try out some things and open a PR for discussion if it seems to be better.

authors: BryanCutler frreiss

repo: CODAIT/text-extensions-for-pandas