text:
Enhancing Security with Regex for Name, Email, and Password Validation in Signup Process

In order to improve security measures within our signup process, we need to implement robust regular expressions (regex) for validating user inputs such as name, email, and password. This enhancement will help mitigate potential security risks by ensuring that users adhere to stricter guidelines when creating their accounts.

Implement Regex for Name Validation:

Define regex pattern for validating names, ensuring it allows only alphabetic characters and possibly special characters like hyphens or apostrophes for certain cases (e.g., O'Brien).
Update signup form to enforce this regex pattern for the name field.
Provide appropriate error messages for users if their input doesn't match the regex pattern.

Implement Regex for Email Validation:

Develop a regex pattern for validating email addresses, adhering to standard email format rules (e.g., username@domain.com).
Integrate this regex pattern into the signup form for validating email inputs.
Display clear error messages for incorrect email formats.

Implement Regex for Password Validation:

Create a regex pattern for enforcing strong password requirements, including a mix of uppercase and lowercase letters, numbers, and special characters.
Update the password field in the signup form to enforce this regex pattern.
Provide informative messages about the password criteria to users attempting to sign up.

Update Signup Flow:

Modify the signup process to incorporate the new regex validations for name, email, and password.
Ensure that users are informed about the specific requirements for each input field during the signup process.
Test the updated signup flow thoroughly to verify that regex validations are working as intended.

Integration with Existing Security Measures:

Ensure that the regex validations complement existing security measures within the application.
Coordinate with the security team to align regex patterns with overall security protocols.

Assign this to me @sayan404

Okay, I am assigning this issue to you under JWoC . @devanshrajput07

#26


text:
Print date instead of message

Closes: https://github.com/sayanarijit/pomo/issues/1

@sayan3296 ^

➜  ~ pomo 30 Take a break
22:24

works for me. Anyway, It's all about getting the notification. So the base functionality is still awesome.

source: gharchive/pull-request

repo: sayanarijit/pomo

license: MIT

license_type: permissive

license_source: github-api


text:
Tab position, usability improvment.

It is more of a feature request rather than an issue.
Case a:
If user uses keyboard shortcut (ctrl + t), the new tab opens next to currently selected tab. As it is now.
Case b:
If user click to open new tab button on Firefox(Right end of the tab bar). The tab opens at the end of the list.
I believe it is more appropriate in terms if UX, since new tab button is more related to the right end rather than, right of the selected tab. As a user, I simply am focused on the new tab button, therefore I believe it is more likely that I would expect the tab to appear at the end of tab list. At least that is the case for me and some people that I know.
I have previously implemented this feature by Forking this repository, but it broke with E10's and I do not have any time to maintain that repository. Below is the link to the repository if you think that feature is worth implementing.
https://github.com/Nidre/firefox-open-tabs-next-to-current
Thank You

I have fixed the bug and it currently works with my version of this add-on.

I am working on this and only the hotkey functionality is missing(which should be simple though as I moved everything over to the SDK): https://github.com/sblask/firefox-open-tabs-next-to-current/pull/4

@sblask I have already done those change son my Branch. Hotkey + the mentioned feature. You can take a look if it helps in anyway.

source: gharchive/issue

authors: Nidre sblask

license: mit

license_source: bigquery


text:
withDefaultResolvers was replaced by combineDefaultResolvers

Fix https://github.com/sbt/sbt/issues/3903

Thanks for the contribution @jiminhsieh

repo: sbt/website


text:
Preparatory GitHub Actions

This runs existing actions and then echoes hello

To validate this pull request against other sbt modules, please visit this link.

repo: sbt/zinc


text:
Challenge 0 simple nft

¡Bienvenidos al desafío de speedrun Ethereum nivel 0!
A nivel personal a sido un recorrido entretenido y también un desafío, donde te adentrarás en el emocionante mundo de Ethereum desde cero. Aprenderás los fundamentos de la blockchain, los contratos inteligentes y cómo interactuar con ellos usando Solidity.
Durante este speedrun, explorarás cómo crear tu primera billetera Ethereum, realizar transacciones básicas, y escribir tu primer contrato inteligente. Este repositorio será tu guía para fortalecer tus habilidades.
¡No necesitas experiencia previa en blockchain para participar! ¡Solo curiosidad y ganas de aprender!
¿Estás listo para enfrentar el desafío? ¡Únete a nosotros y comienza tu viaje en Ethereum hoy mismo!

Hello!


text:
Update postgresql to 42.2.23

Updates org.postgresql:postgresql from 42.2.20 to 42.2.23.
Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.postgresql", artifactId = "postgresql" } ]

labels: library-update, semver-patch

Superseded by #50.

repo: scala-bones/scatonic-ideal


text:
JP - Remote Evaluator Integration

This PR integrates the new remote Scala evaluator within the scala-exercises project. As a part of this work, different tasks have been done:

[x] Exercise Compiler Plugin updated in order to generate automatically, the build meta information in the different libraries (like resolvers and libraryDependencies, among others).
[x] New Compiler Updates. Now, the compiler is able to to fetch meta data information and generate the associated code.
[x] Evaluator Client Algebra integrated in the Scala Exercises Service
[x] Added new Algebra and Interpreter associated to the Evaluator
[x] The old Evaluator has been removed
[x] There are some timeout issues between both services: scalaexercises - evaluator
[x] Include doobie and  fpinscala libraries
[x] Unwrap responses properly
[x] Formatting Error Message properly
[x] Report new issues to add unit tests that might increase the code coverage
[x] Test everything in stage env
[x] Stress Testing at https://scala-exercises-pr-571.herokuapp.com

Please, @raulraja @dialelo could you review? Thanks!

Other than my comment regarding transitive dependencies at compile time this LGTM.
@juanpedromoreno @jdesiloniz @dialelo Can we thoroughly test this to ensure appropriate errors and evaluation is shown to the end user before we merge it all?

authors: juanpedromoreno raulraja

repo: scala-exercises/scala-exercises


text:
Refactor UserProgressController

fixed #633

Codecov Report

Merging #640 into master will not change coverage.
The diff coverage is 0%.

@@          Coverage Diff           @@
##           master    #640   +/-   ##
======================================
  Coverage    35.3%   35.3%
======================================
  Files          40      40
  Lines         946     946
  Branches       18      18
======================================
  Hits          334     334
  Misses        612     612

Impacted Files
Coverage Δ

...scalaexercises/exercises/controllers/package.scala
0% <ø> (ø)
:arrow_up:

...exercises/services/interpreters/interpreters.scala
0% <0%> (ø)
:arrow_up:

...exercises/controllers/UserProgressController.scala
0% <0%> (ø)
:arrow_up:

...ercises/exercises/controllers/UserController.scala
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ead144d...83da37d. Read the comment docs.

authors: AntonioMateoGomez codecov-io


text:
AlignParameters: Missing space between colon and type when special characters are used

From @daniel-trinh on June 8, 2014 17:30
When alignParameters is enabled, the colon between the name and type sometimes does not preserve the extra space after the type.
Failing test case:
  """def a(
    |  underscore_ : Int = 1,
    |  underscore2__ : String = "1"
    |)""" ==>
  """def a(
    |  underscore_ :   Int    = 1,
    |  underscore2__ : String = "1"
    |)"""

Currently, the above example gets reformatted as this:
def a(
  underscore_ :  Int    = 1,
  underscore2__ :String = "1"
)

Note the lack of space between the type and colon.
Copied from original issue: daniel-trinh/scalariform#21

As of latest scalariform with SpaceBeforeColon -> true the sample code formats as expected:
def a(
  underscore_ : Int = 1,
  underscore2__ : String = "1"
)

authors: godenji sschaef

repo: scala-ide/scalariform


text:
track master for both Scala.js and Slick

FYI @sjrd, FYI @szeiger

green build at https://scala-ci.typesafe.com/view/scala-2.12.x/job/scala-2.12.x-integrate-community-build/171/console

repo: scala/community-builds


text:
Add async open and save methods to FileChooser

With this PR we can open a file in a more intuitive way:
(new FileChooser).showOpenDialogAsync(top).foreach {
  file => println(file.getAbsolutePath)
}

AFAIK, this has two problems: First of all, it violates the threading contract of Swing, because you are spawing a Future anywhere depending on the execution context, thus running showOpenDialog not on the event-dispatch-thread. Likewise, you cannot do much with the result, e.g. map and foreach will execute again on a thread that is not necessarily the EDT.
The second problem is that the actual issue, showing the dialog asynchronously, is not addressed: You are still creating a modal dialog. I think the purpose here would be to make a non-modal dialog that allows the windowing system to fully function while the dialog is open.
I think mixing scala.concurrent.Future into Scala-Swing is beyond the scope of this module. It would in any case need a safe deferral to the EDT, and thus probably a custom ExecutionContext.

A better solution would be to add the file chooser to your own dialog, and make that non-modal. What is missing is the ActionListener interface of JFileChooser. A good addition would thus to relay those events via publish.

Here is an example of listening to a file chooser inside a non-modal dialog - https://www.informit.com/articles/article.aspx?p=32060 - this would quite naturally translate from Java to Scala if we forwarded the action events.

Ah, I see. I had not thought about the first issue, as in the case I am using this, I am not updating something in the UI based on the selected file directly, and then all works fine.
Regarding the second issue, the main thing I wanted to address was this:
val fc = new FileChooser
val res = fc.showOpenDialog()
someSlowFunction() // this only executes after the user has finished choosing a file

But I see that it is a little more complicated than I had expedted. I will close the PR for now. Thanks for your quick reply!

authors: Sciss vincentdehaan

repo: scala/scala-swing


text:
Update day08.md

Sorry for f* up the initial PR

Hey, thanks again for writing this up, but please could you observe the format for the entry points as described in the schedule, also we should be getting a solution from @iusildra shortly

A, sorry. Wasn't aware off that

Hey, thanks again for writing this up, but please could you observe the format for the entry points as described in the schedule, also we should be getting a solution from @iusildra shortly

A, sorry. Wasn't aware off that

its fine! I should probably change the text in the website template

@prinsniels I have just applied a few small refactorings to enhance readability with the narrow width of the code blocks

authors: bishabosha prinsniels

repo: scalacenter/scala-advent-of-code


text:
Fix #193: Replace all uses of accessibleThisType by thisType.

It turns out that all the places where we used accessibleThisType were supposed to use the (internal) thisType instead. We replace them all, and remove the now-dead-code accessibleThisType.

Ping @bishabosha ?

repo: scalacenter/tasty-query


text:
docs: remove “With …”

All headings start with “With…”. I don’t think that’s needed. 😅

good call ✨🥳

authors: hanspagel marclave

repo: scalar/scalar


text:
Feature request:  add animations to shapes

Request: add animation effects to existing PowerPoint shapes.

Would also love to have this for my use case!
Any idea @scanny if this is still something you're looking to implement in the near future? Or is it somewhere below in the backlog?
Many thanks for the awesome package btw, great work!

repo: scanny/python-pptx


text:
Fix font for splash screen

<3 is broken on both linux and macos

Screenshot of part of the splash screen, notice that the ❤ is missing.
SOMEONE PLEASE GET SCIVIEW'S HEART BACK!!!

repo: scenerygraphics/sciview


text:
Selecting a volume in the inspector is very slow, triggers Running extension SwingVolumeProperties

When selecting any object that that is not a volume, it gets selected almost immediately. When clicking on a volume object, Running extension SwingVolumeProperties is logged and it takes 4-5 seconds before the volume settings are shown; while waiting, the UI is frozen.
Maybe this is caused by the histogram being recalculated internally, even if it is not shown?

At least looking at this https://github.com/scenerygraphics/sciview/blob/e9ace2b470832b0bcaad381f3a69f04a5d80156e/src/main/kotlin/sc/iview/commands/edit/SwingVolumeProperties.kt#L17 it seems the histogram generation should not be triggerd by accident.

authors: moreApi smlpt


text:
🛑 Rust Server is down

In 95aa256, Rust Server (https://api.trackyserver.com/widget/index.php?id=1488111) was down:

HTTP code: 200
Response time: 156 ms

Resolved: Rust Server is back up in 86b6d9c.

repo: schalkburger/server-status


text:
Document C# runner

In the wiki page called https://github.com/schambers/fluentmigrator/wiki/Migration-Runners, you do not talk about a pure C# runner.
I think that it will look like FluentMigrator.Console/MigratorConsole.cs but simpler :)
The use case it to automatically execute the migrations during the start of a IIS application

There is a way to do it... I've done it in a few projects.  The downfall is, and what i don't like with doing it in the C# application, what do you do on a failed migration?
I've come to the realization that I prefer to have the console runner (MSBuild Runner, etc.) do the migration as a first step in deployment.  (Once I get coordinated enough) I can then have a backup routine happen pre-migration, and if the migration fails, I can have the db restored as a recovery before I push the application itself onto the IIS server live.
Now, in the realm of C#/WPF/Winforms apps, what you're asking is 100% logical, and works.  If you can excuse some of the code, this is what I do in those scenarios:
using System;
using System.IO;
using System.Linq;
using FluentMigrator.Runner.Initialization;

namespace {ProductNamespace}.Infrastructure.Migrations {
    public class MigrationManager : IMigrationManager {
        NLog.Logger Log = NLog.LogManager.GetCurrentClassLogger();

        public bool Migrate() {
            string backupFile = "";

            // backup the old file.
            string currentDbFilename = {whatever you need to resolve the sqlite file name/directory};
            FileInfo currentDb = new FileInfo(currentDbFilename);
            if (currentDb.Exists) {
                Log.Debug("Making a backup of the database before running migration.");
                var filePath = Path.GetDirectoryName(currentDbFilename);
                backupFile = Path.Combine(filePath, string.Format("store.{0:yyy-MM-dd}--{0:HH-mm-ss}.bak", DateTime.UtcNow));
                currentDb.CopyTo(backupFile);

                /// keep a maximum of 10 backup files + the current version.
                Log.Debug("Purging old database backups, so we don't eat too much disk space.");
                DirectoryInfo di = new DirectoryInfo(filePath);
                FileSystemInfo[] files = di.GetFileSystemInfos();
                files.Where(f => f.Name.EndsWith(".bak"))
                    .OrderByDescending(x => x.CreationTime)
                    .Skip(Constants.MAX_BACKUP_FILES)
                    .ToList()
                    .ForEach(x => x.Delete());
            }

            // build the runner context.
            Log.Debug("Setting up migration environment.");
            var ctx = new FluentMigrator.Runner.Initialization.RunnerContext(new FluentMigrator.Runner.Announcers.ConsoleAnnouncer()) {
                ApplicationContext = string.Empty,
                Database = "sqlite",
                Connection = settings.ConnectionString(),
                Target = "{The assembly that has your migrations}" // newer versions of FluentMigrator take an IEnumerable<string> here.
            };
            // execute the migration.
            try {
                var executor = new TaskExecutor(ctx);
                Log.Debug("Performing migration.");
                executor.Execute();
            } catch (Exception ex) {
                File.Delete(currentDbFilename);
                if (backupFile != string.Empty) {
                    File.Copy(backupFile, currentDbFilename);
                    File.Delete(backupFile);
                }
                Log.Fatal(ex);
                return false;
            }

            return true;
        }
    }
}

That's a perfect answer to my question, thanks !

authors: christopheblin dealproc

repo: schambers/fluentmigrator


text:
Stuck if called in a thread

I don't know why but i think the problem is in the method get_title(handle) in GetWindowTextW library, when it's called 29 times it gets stuck.
Windows 7 (32 Bits)
Edit: I know that calling it 29 times is not the cause of the problem.

I'm on Windows 10 64-bit and I'm not able to reproduce this.
Can you create a small script to reproduce the behavior you're seeing?
The following snippet runs and terminates as expected:
require 'win32/window'

include Win32

Thread.new do
  100.times do
    Window.find.each do |w|
      puts w.title
    end
  end
end.join

I examined the problem and found that the fault is because of another gem, Gosu, when I load an image with Gosu into a class in a Thread the error occurs.
Example:
require 'win32/window'
require 'gosu'

class A
	Gosu::Image.new("image.bmp") # Comment this line to work correctly.
	def initialize
		puts Win32::Window.find(title: //i).size
	end
end

Thread.new { A.new }.join

I'm going to ask jnlr (creator of Gosu) about this mistake, long ago, he told me that Gosu doesn't work with threads.

The lack of thread safety in Gosu itself is mostly because I couldn't use the standard <mutex> header for a long time (it's now available on all platforms). As for GetWindowTextW, this forum thread explains how the function works, and why it can freeze in a multithreaded setup. Interesting, I'll probably run into the same issue if I ever try to make Gosu more thread-safe.

This really helped me, I restructured all my code(i'm tired) based on this, thanks a lot :)

authors: Andrek25 jlnr schmich


text:
Treat kramdown as an optional dependency?

I use maildown with the redcarpet renderer, but because maildown depends on kramdown bundler insists on installing both gems. As far as I am aware this is ultimately a shortcoming of bundler itself: It does not support optional dependencies or allows me to override dependencies.
As far as I know the "normal" way of handling this is to not specify these "sort of optional" dependencies at the gem level. Rails for example does not specify all sorts of database drivers, although at least one of them will have to be used. Would you consider to do the same for maildown?

I opened this issue some years ago https://github.com/rubygems/rubygems/issues/1811

Would you consider to do the same for maildown?

The usual pattern is to include the default gem so that it works out of the box. If you removed the kramdown requirement then people who's apps had been working would break as most of them likely are not specifying to include kramdown as well.
Even worse, it likely wouldn't be caught until production time, since many people do not render or view emails in development. Lots don't actually test rendering of emails either.
I would not accept removing kramdown as a dependency, however if there's a patch to perhaps defer requiring kramdown so it doesn't get loaded in memory somehow, I might be open to it.

authors: MarcusRiemer schneems

repo: schneems/maildown


text:
Codeblocks for code

Use codeblocks and inline code markers for code

Hä ich kann mich nicht erinnern den geschlossen zu haben....
kann ich des ändern?

I don't shink so, but you could cherry-pick from my develop branch.
https://github.com/nobodypb/dhbw-heidenheim-latex-template/commit/a6b6594443d8b011263fe911aeca66eee347fca3


text:
🛑 findabooktoread.com is down

In d89d7f8, findabooktoread.com (https://findabooktoread.com/) was down:

HTTP code: 502
Response time: 335 ms

Resolved: findabooktoread.com is back up in 8a33e81.

repo: schollz/upptime


text:
How to paging with Query and ProjectTo

Hi,
I see there is a Limit method in order to get a particular page on IQueryProvider but it has no page result. There is also a ToPage method that you can call on IQueryResultProvider. I was looking if there is a way to combine ToPage and ProjectTo.
Something like:
database.Query<MyClass>()
        .Include(p => p.RelatedObject)
        .ProjectTo(p => new MyNewClass
        {
            Field1 = p.Field1,
            Field2 = p.RelatedObject.Field2
        })
        .ToPage(2, 10);

I met the same problem, and so i make a tittle modification on interface Page<T> ToPage(int page, int pageSize, Func<IQueryProvider<T>, List<T>> itemsFunc = null)
and the implement below
public Page<T> ToPage(int page, int pageSize, Func<IQueryProvider<T>, List<T>> itemFunc = null)
{
    return ToPage(page, pageSize, (paged, action) =>
    {
        var list = itemFunc == null ? ToList() : itemFunc(this);
        action(paged, list);
        return paged;
    });
}

and use below
database.Query<MyClass>()
    .Include(p => p.RelatedObject)
    .ToPage(2, 10, query => query.ProjectTo(p => new MyNewClass
    {
        Field1 = p.Field1,
        Field2 = p.RelatedObject.Field2
    });

btw, i don't think my implement is good, i just expose the page items getting func, i also hope @schotime will improve it :)

+1

authors: enrico-padovani hin-longkid jcspader

repo: schotime/NPoco


text:
delete the old template script

It is not used in this repo anymore. @miguelaferreira please check if your systems do not use it either.

shouldn't this and 22 be one pr? what if this get's merged before 22 ;) kidding!

authors: DaanHoogland remibergsma

repo: schubergphilis/MCT-shared


text:
Migrar o índice para o novo Solr.

Atualmente estamos utilizando um índice temporário.
Devemos passar a utilizar o novo Solr criado pela infraestrutura com um índice definitivo.

Esse tíquete já foi contemplado faz um bom tempo e portanto estou fechando....

authors: gitnnolabs jamilatta

repo: scieloorg/search-journals


text:
What to do with the scientific-python / nightly-wheels Public

Should we close this https://github.com/scientific-python/upload-nightly-action/issues/6 and then delete the old repo?

Ah I had missed that @Carreau had made this and finished what I hadn't. Great! @jarrodmillman maybe archive things but don't delete right away so that if there is information in those issues that should get checked against here we can still have them?

Let me rephrase. This action was implemented on the first day of the summit and has been applied to several repos. At this point, I don't think there is any point of pulling in something different that none of us is familiar with.
Removing the other repo would make sense IMO, otherwise it would introduce some confusion into the system.

This action was implemented on the first day of the summit and has been applied to several repos. At this point, I don't think there is any point of pulling in something different that none of us is familiar with.

I'm at work now, and I wasn't invited to the summit, so I'll have to check back later but I believe that there are things that were discussed in the now deleted repo that aren't implemented here that came up as use issues. I'll check my emails and the related Discourse topic and see.

were discussed in the now deleted repo

In my recollection that repo was empty with the exception of a licence file.

were discussed in the now deleted repo

In my recollection that repo was empty with the exception of a licence file.

It was not. You didn't look at the other branches.

Sorry for the confusion and deletion if there was any. I agree that we should not delete but use the GitHub archiving feature when possible.

GitHub archiving feature

there has been an empty repo with a licence file in it. If unfinished development happened in branches, rather than on works, without even a draft PR opened, that is unfortunate, but still doesn't necessitate the archiving and introduction of possible confusion into the system.

authors: Carreau bsipocz jarrodmillman matthewfeickert

repo: scientific-python/upload-nightly-action


text:
install dependencies of probfit numpy, cython, pyqt

Hey I just installed probfit (#24e19f0) in a virtualenv without system-site-packages.
Numpy is needed pre installation
To install probfit at all, one needs to preinstall numpy manually with:
pip install numpy
Cython needed even for not developer build
Import probfit with import probfit I get:
ImportError                               Traceback (most recent call last)
<ipython-input-1-05ae4a7acf03> in <module>()
----> 1 import probfit

/home/malte/.virtualenvs/probfittest/lib/python3.5/site-packages/probfit/__init__.py
in <module>()
      6 """
      7
----> 8 from .costfunc import UnbinnedLH, BinnedLH, Chi2Regression,
BinnedChi2, SimultaneousFit
      9 from .pdf import doublegaussian, ugaussian, gaussian, crystalball, \
     10     argus, cruijff, linear, poly2, poly3, novosibirsk, \

ImportError: No module named 'probfit.costfunc'

After manually installing cython with:
pip install cython
and reinstallation of probfit with:
pip uninstall probfit
pip install .
pyqt needed
Now it shows
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-05ae4a7acf03> in <module>()
----> 1 import probfit

/home/malte/.virtualenvs/probfittest/lib/python3.5/site-packages/probfit/__init__.py
in <module>()
      6 """
      7
----> 8 from .costfunc import UnbinnedLH, BinnedLH, Chi2Regression,
BinnedChi2, SimultaneousFit
      9 from .pdf import doublegaussian, ugaussian, gaussian, crystalball, \
     10     argus, cruijff, linear, poly2, poly3, novosibirsk, \

/home/malte/Projects/probfit/probfit/costfunc.pyx in init
probfit.costfunc (probfit/costfunc.c:16756)()
      4 cimport numpy as np
      5 from libc.math cimport exp, pow, fabs, log, tgamma, lgamma, sqrt
----> 6 from matplotlib import pyplot as plt
      7 from . import plotting
      8 from ._libstat cimport compute_nll, compute_chi2_f,
compute_bin_chi2_f, \

/home/malte/.virtualenvs/probfittest/lib/python3.5/site-packages/matplotlib/pyplot.py
in <module>()
    112
    113 from matplotlib.backends import pylab_setup
--> 114 _backend_mod, new_figure_manager, draw_if_interactive, _show =
pylab_setup()
    115
    116 _IP_REGISTERED = None

/home/malte/.virtualenvs/probfittest/lib/python3.5/site-packages/matplotlib/backends/__init__.py
in pylab_setup()
     30     # imports. 0 means only perform absolute imports.
     31     backend_mod = __import__(backend_name,
---> 32                              globals(),locals(),[backend_name],0)
     33
     34     # Things we pull in from all backends

/home/malte/.virtualenvs/probfittest/lib/python3.5/site-packages/matplotlib/backends/backend_qt4agg.py
in <module>()
     16
     17
---> 18 from .backend_qt5agg import FigureCanvasQTAggBase as
_FigureCanvasQTAggBase
     19
     20 from .backend_agg import FigureCanvasAgg

/home/malte/.virtualenvs/probfittest/lib/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py
in <module>()
     14
     15 from .backend_agg import FigureCanvasAgg
---> 16 from .backend_qt5 import QtCore
     17 from .backend_qt5 import QtGui
     18 from .backend_qt5 import FigureManagerQT

/home/malte/.virtualenvs/probfittest/lib/python3.5/site-packages/matplotlib/backends/backend_qt5.py
in <module>()
     29     figureoptions = None
     30
---> 31 from .qt_compat import QtCore, QtGui, QtWidgets,
_getSaveFileName, __version__
     32 from matplotlib.backends.qt_editor.formsubplottool import
UiSubplotTool
     33

/home/malte/.virtualenvs/probfittest/lib/python3.5/site-packages/matplotlib/backends/qt_compat.py
in <module>()
    135     # have been changed in the above if block
    136     if QT_API in [QT_API_PYQT, QT_API_PYQTv2]:  # PyQt4 API
--> 137         from PyQt4 import QtCore, QtGui
    138
    139         try:

ImportError: No module named 'PyQt4'

So it also needs pyqt, PyQt4 from pip doesnt install for me and I installed it for the system with:
pacman -S python-pyqt4
(I wonder why this works, because it should but it does)
And finally probfit works :)

I'm sorry for the trouble. probfit has been in a period of flux recently, particularly with regards to packaging.
If you want to install the package from the repository, you need Cython in order to compile the Cython source files to C files (the latter of which used to be included in the repo). You also need numpy for this step, as well as to compile the C files. If you install from the git repo, probfit considers that you are performing a "developer build". In the tagged releases, you won't need Cython as the C files will be included.
The PyQt dependency problem is confusing. Perhaps your matplotlibrc specifies the Qt backend as the default?

This was fixed in #105

authors: alexpearce deisi henryiii

repo: scikit-hep/probfit


text:
ValueError: Domain error in arguments, when tuning SVM

I am trying to tune the hyperparameters of an SVM using skopt. Following the example on the docs I implemented the below. However, I am getting a ValueError: Domain error in arguments. error. Is it something about the way I have set it up?
import numpy as np
from sklearn.model_selection import cross_val_score
from sklearn import datasets, svm
from skopt import gp_minimize

iris = datasets.load_iris()
X, y = iris.data, iris.target
X = X[y != 0, :2]
y = y[y != 0]

clf = svm.SVC(kernel='rbf', gamma=10, C=100)

def objective(params):
    kernel_gamma, penalty_C = params

    clf.set_params(gamma=kernel_gamma,
                   C=penalty_C)

    return -np.mean(cross_val_score(clf, X, y, cv=5, n_jobs=-1))

space = [(0.01, 0.001),  # gamma
         (10, 20, 200)]  # C

res_gp = gp_minimize(objective, space, n_calls=100, random_state=0)

print("Best score=%.4f" % res_gp.fun)

Full stack trace below:
Traceback (most recent call last):
  File "C:\Program Files\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2881, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-11-ce3d26def919>", line 30, in <module>
    res_gp = gp_minimize(objective, space, n_calls=100, random_state=0)
  File "C:\Program Files\Anaconda3\lib\site-packages\skopt\optimizer\gp.py", line 247, in gp_minimize
    callback=callback, n_jobs=n_jobs)
  File "C:\Program Files\Anaconda3\lib\site-packages\skopt\optimizer\base.py", line 234, in base_minimize
    next_x = optimizer.ask()
  File "C:\Program Files\Anaconda3\lib\site-packages\skopt\optimizer\optimizer.py", line 181, in ask
    return self.space.rvs(random_state=self.rng)[0]
  File "C:\Program Files\Anaconda3\lib\site-packages\skopt\space\space.py", line 456, in rvs
    columns.append(dim.rvs(n_samples=n_samples, random_state=rng))
  File "C:\Program Files\Anaconda3\lib\site-packages\skopt\space\space.py", line 102, in rvs
    samples = self._rvs.rvs(size=n_samples, random_state=rng)
  File "C:\Program Files\Anaconda3\lib\site-packages\scipy\stats\_distn_infrastructure.py", line 466, in rvs
    return self.dist.rvs(*self.args, **kwds)
  File "C:\Program Files\Anaconda3\lib\site-packages\scipy\stats\_distn_infrastructure.py", line 936, in rvs
    raise ValueError("Domain error in arguments.")
ValueError: Domain error in arguments.

The parameters in the space list should be the bounds and not the values themselves. The error is because space[0][0] is greater than space[0][1].
In this particular example, since there are just 6 hyperparameters you can just do an exhaustive search.

We should still raise a better error message though, as noted in https://github.com/scikit-optimize/scikit-optimize/issues/301

I see now. This makes sense!

A followup q on the space parameter. If we have a hyperparameter space that is a set of discrete and continuous values. For instance, for the SVM:

the kernels can be one of the three options of rbf, poly or linear
C and gamma can be expressed as a range.

Is the best way to run a gp_optimize for each of the discrete set and  pick the one that gives the best objective score?

You can providing categorical parameters as a list. (https://github.com/scikit-optimize/scikit-optimize/blob/master/skopt/space/space.py#L456)
What is not supported is providing numerical parameters as a list. If you do provide them as a list, then it should still work but each numerical parameter is treated as a category, that is ordering is not respected

repo: scikit-optimize/scikit-optimize


text:
Corrected scim filter to support parenthesis/precedence filters

This fixes issue #18 from scim2/filter-parser

As an alternative, a tree serializer that emits required parentheses could also work. For example if a filter.LogicalExpression is an "or" and is a child node, then the string version should emit parentheses.


text:
optimize tests crashing Python in pre_release_deps_source_dist Azure job

In all recent PRs, the pre_release_deps_source_dist Azure job is failing because of multiple Python crashes that occur when the optimize tests are run.  This is the job that uses the "nightly" numpy wheel and Python 3.7.  Is the cause of these crashes known?  I created a similar build locally, and I can recreate the crashes, but the crashes occur as far back as v1.6.3, so this is apparently not the result of a recent change in SciPy.

NumPy didn't merge any substantive changes after branching recently?
I think I pinged Matt about these failures, but it probably wasn't clear from a quick glance.

In case anyone else tries to reproduce the issue: the crash appears to be triggered in the L-BFGS-B code.  Either of these produces the crash for me:
res = minimize(lambda x: (x - 2)**2, 1, method='L-BFGS-B')

res = fmin_l_bfgs_b(lambda x: (x - 2)**2, 1, approx_grad=True)

I didn't see the ping if this is not gh-14014.

This problem isn't gh-14014.  The tests in the pre_release_deps_source_dist job are causing a hard crash of the Python interpreter, e.g. locally I get
double free or corruption (out)
Aborted (core dumped)

or
munmap_chunk(): invalid pointer
Aborted (core dumped)

A git bisect with numpy shows that the commit where the crashes start occurring is https://github.com/numpy/numpy/commit/8992459df6f8558c85d5036951799b757d74b3d5.

authors: WarrenWeckesser mdhaber tylerjereddy

repo: scipy/scipy


text:
BUG: signal.ShortTimeFFT: inverse tranform error with multichannel input

Description
I'm not sure if the Short-Time Fourier Transform (STFT) is supposed to work with multichannel input signals. But the legacy scipy.signal.stft did so I tried.
The inverse transform from ShortTimeFFT.istft gives an error with multichannel data, that occurs if the window and FFT size are different.
Reproducing Code Example
import numpy as np
from scipy.signal import ShortTimeFFT
from scipy.signal.windows import hann

# Window of size 100, and FFT of size 128
my_stf = ShortTimeFFT(win=hann(100), hop=50, fs=1, mfft=128)

# Original multichannel (two channels) input data
original_signal = np.random.random((2, 1000))

# Compute the STFT
short_time_fourier_transform = my_stf.stft(original_signal)

# Compute the inverse STFT
reconstructed_signal = reconstructed_signal = my_stf.istft(short_time_fourier_transform)

Error Message
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Utils\mambaforge\envs\test\Lib\site-packages\scipy\signal\_short_time_fft.py", line 1070, in istft
    xs = self._ifft_func(S[..., :, q_ - self.p_min]) * self.dual_win
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
ValueError: operands could not be broadcast together with shapes (2,128) (100,)

Bug Identification
The error seems to come from the following line of the ShortTimeFFT._iff_func method:
https://github.com/scipy/scipy/blob/c43875e23dd09bb512a0defefb4cb94568a70459/scipy/signal/_short_time_fft.py#L1628
The slicing is necessary when the window size and the FFT size are different, but it doesn't take the other dimensions into account.
A simple fix would be:
return np.roll(x, p_s, axis=-1)[..., :self.m_num]

But it requires to check if everything works after it.
Thanks so much to the team for this project !

cc @DietBru

Wow thank you so much for the quick fix! 👏

The excellent bug report helped a lot.

authors: DietBru j-bowhay tjoubaud


text:
Building error

I have windows 10, python 3.5.2 and also numpy installed, but scipy doesn't want to do it. I ran "pip install scipy".
error in cmd
Command "c:\users\max\appdata\local\programs\python\python35-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Max\AppData\Local\Temp\pip-build-pwxp9oon\scipy\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Max\AppData\Local\Temp\pip-wry9olcr-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Max\AppData\Local\Temp\pip-build-pwxp9oon\scipy\
Thanks

Can't install SciPy on Windows using pip. See https://github.com/scipy/scipy/issues/5461. See also the installation instructions: https://www.scipy.org/install.html.

For windows I think the only painless way is to use C. Gohlke's builds.

The recommended way on Windows is to install a distribution (like Anaconda). That's by far the easiest. See http://scipy.org/install.html


text:
BUG: sparse: fix setdiag for matrices with missing diagonal entries

Fixes #21791.
In case setdiag is called on a CSR matrix which has some diagonal entries missing from its sparsity pattern (but less than 0.001 * self.nnz), the current code path first adds the missing diagonal entries and then updates the already existing entries. However, the index array (offsets) used to update the existing entries is computed before _insert_many is called, which modifies the sparsity pattern. Hence, the computed indices are no longer valid.
This PR fixes the issue by first setting the existing diagonal entries and then adding the missing entries.

Thanks very much for the issue reporting this!!!   And for the fix!!
It makes a lot of sense that the order must be done that way.
We'll need tests, so I pushed a commit to this branch. I believe all the same issues (and your fix) apply to CSC as well as CSR. I've taken the liberty to push up a simple test for those two formats based on your example from the issue (setting value to 5 instead of 0 to avoid mixups with structure).  Let me know if that looks good; or change it as you like.  You will need to pull down the changes to local before adding more changes.

Thanks for the fix, @sdrave, and for the additional testing, @dschult!
One takeaway for the future is that whenever we add branching logic like this, we need to make sure we add sufficient extra testing to cover all the branches.

authors: dschult perimosocordiae sdrave


text:
Decimate reading observations

Dear Michael,
I started working with georinex, big thanks for this packege.
I have a request: is it possible to decimate the observables?
I mean by this that is the observation interval is 1 sec that I want to only read the observables every 5, 10, ... seconds.
Kind regards
Alain

Yes it is, I think it is straightforward for me to add this.

added in https://github.com/scivision/georinex/releases/tag/v1.9.0

authors: alainmuls scivision

repo: scivision/georinex


text:
Avoid the Dockerfile.rhel7 file, and use just Dockerfile if distgen is used

There are ugly hacks in the distgen logic related to *.rhel7 lsuffix (e.g. #75 fights with that), but there's no easy way to drop the old layout because it is required by:

non distgen-enabled images
common script scripts
rebuild helper
CI (probably)

So we would have to either (a) move all containers towards the new layout, or (b) support two layouts.  IMO, (b) is less intrusive (using generators in source repo should stay opt-in)  and I would prefer that.  But anyways, take this issue as a tracker and place to discuss issues.
Additional note to #75, it would be much more natural if we generated (distgen layout) just:
postgresql-container/
└── output/
    ├── Dockerfile
    └── root/

Or, on demand (e.g. to file the generated branch):
postgresql-container/
├── 10
│   ├── centos-7-x86_64
│   │   ├── Dockerfile
│   │   └── root
│   └── rhel-7-x86_64
│       ├── Dockerfile
│       └── root/
...

RHEL7 and CentOS 7 reached EOL in June 2024. Closing this issue. This issue is not valid anymore.

authors: phracek praiskup

repo: sclorg/container-common-scripts


text:
Seems to connect but providing no data

MQTT found in this Home Assistance instance.
Starting glow2mqtt.py...
Configuring Home Assistant...
MQTT connected...
Connected to Glow MQTT broker...
https://dean.so/wp-content/uploads/2022/04/Screenshot-from-2022-04-17-18-03-18.png
This is what was supplied by Hildebrand:
mosquitto_sub --cafile /usr/local/etc/openssl/cert.pem -h  glowmqtt.energyhive.com -u brightuser -P brightpass -t SMART/HILD/XXXXXXXXXXXX -p 8883

Hi @j1mco,
Have you tried connecting with an mqtt client to check data is flowing for your device? If you use port 1883 instead of 8883 you don't need the certificate.
Make sure to use the device ID of your glow display/stick and not your meter. You can confirm this in the Bright app under 'Devices'.

Just checked with MQTT explorer, it's logging in fine with both 1883 and 8883, but not seeing any data published.  I've checked it's the device ID of the glow display - cheers!

Thanks for checking @j1mco . It might take a day or so for data to start flowing but the next step would be to get Hildebrand to double-check everything has been enabled correctly on their end for MQTT access. I assume the Bright app is showing data every 10 seconds as it should?

It's been a few days and everything is working in Bright as it should so I've emailed them thanks

Fixed - was indeed an issue on the server side.  The MQTT hadn't been enabled correctly.


text:
Not Working With all Images

Hi all please fix this issue, i have been use this API for long time and its working with almost every images,
but our client complaint they are not be able to upload some image, when i inspected  then  i found  the issue is may be images size
too small or may be images is corrupted so please at least check because i'm not be able to fix
i'm beginner
for references  i attached image sample.

The problem is that it don't works with small images. Does anyone have a solution?

authors: DHANESH-KUMAR varitono

repo: scottcheng/cropit


text:
Numpy not installed

Issue submitted via PipeBot
Reporting user: Scott

Numpy is not available by default in Maya. Needs to be added to the libs folder

Closed by #143

repo: scottdmilner/dungeon-pipeline


text:
Won't start: 'ConfigEntries' object has no attribute 'async_setup_platforms'

This integration is no longer starting for me in 2023.5.4.
This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/echonetlite/__init__.py:134
Integration: ECHONETLite (documentation, issues)
First occurred: 12:13:51 AM (2 occurrences)
Last logged: 12:20:23 AM

Error setting up entry Mitsubishi Heatpump for echonetlite
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/echonetlite/__init__.py", line 134, in async_setup_entry
    hass.config_entries.async_setup_platforms(entry, PLATFORMS)
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

I just noticed that this integration wasn't listed on my HACS page. Weird. So I guess I was running an old version.
Anyway, I installed from HACS and all is working well now. Apologies, and thanks for such a handy bit of software!


text:
Issue with Splash returning multiple html snapshots

Hi,
I'm trying to return multiple html pages using splash scripts (in a single response, as in the documentation) and extracting the links from them. But I found that in the response.text and response.body, the html content is morphed whenever there's more than one page returned.  This is not the case with response.data which works fine. Why is this happening?
I tried this on the same code (and website) as in the documentation- http://splash.readthedocs.io/en/stable/scripting-ref.html#splash-html (from the later part, from the example for multiple html snapshots)
This is my splash request-->
 yield Request(url= url, callback= self.parse, dont_filter=True, meta={
     'splash': {
          'args': {'lua_source': self.lua_source, 'timeout': 200},
          'endpoint': 'execute',
       },
 })

The lua script looks like this -->
  function page_info(splash, url)
      splash:go(url)
      local res = {
        html=splash:html(),
       }
      return res
  end

  function main(splash, args)
      local base = "https://news.ycombinator.com/news?p="
      local result = treat.as_array({})
      for i=1,3 do
        local url =  base .. i
        result[i] = page_info(splash, url)
      end
      return result
  end

The resulting response:
response.data -->
{u'html': u'<html op="news"><head><meta name="referrer" content="origin"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="stylesheet" type="text/css" href="news.css?i7azI8MkFRPfcPhHQ7HD">\n            <link rel="shortcut icon" href="favicon.ico">\n          <link rel="alternate" type="application/rss+xml" title="RSS" href="rss">\n        <title>Hacker News</title>
response.text and response.body -->
u'[{"html": "<html op=\\"news\\"><head><meta name=\\"referrer\\" content=\\"origin\\"><meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\"><link rel=\\"stylesheet\\" type=\\"text/css\\" href=\\"news.css?i7azI8MkFRPfcPhHQ7HD\\">\\n            <link rel=\\"shortcut icon\\" href=\\"favicon.ico\\">\\n          <link rel=\\"alternate\\" type=\\"application/rss+xml\\" title=\\"RSS\\" href=\\"rss\\">\\n        <title>Hacker News</title></head>
Notice the extra \ \ in the second case. These might be escape characters or something, but they're messing with the LinkExtractor which uses the response.text and is resulting in broken links. Again, this happens only when I'm returning an array of html responses.
What am I missing here?

@rohitkoganti I have the same issue. I see you closed the ticket. Were you able to figure it out?

authors: rohitkoganti zbassil

repo: scrapinghub/splash


text:
Splash crash by enable HTML media and plugin enable

Hi all i am crawling Angular website and running spalsh by enable splash.plugins_enabled = true, splash.html5_media_enabled = true and splash crash with below error.
Current thread 0x00007f0a77ea5740 (most recent call first):
File "/usr/local/lib/python3.6/dist-packages/qt5reactor.py", line 304 in run
File "/app/splash/server.py", line 441 in main
File "/app/bin/splash", line 4 in
what should i do. without enable all this splash not loading videos of website and i need those video links so without rendering them i am unable to get video links because links are JavaScript render event.

same here
Fatal Python error: Segmentation fault

Current thread 0x00007f534e283740 (most recent call first):
  File "/usr/local/lib/python3.6/dist-packages/qt5reactor.py", line 304 in run
  File "/app/splash/server.py", line 441 in main
  File "/app/bin/splash", line 4 in <module>
root@ubuntu-s-1vcpu-1gb-ams3-01:~#

authors: Techyuvi bboyadao


text:
Added golang build flag for massive speedup

Until now, writing to any golang file would run a go guild
command that would take up to 10 seconds during which the
editor would be essentially frozen. By using the -i flag,
any subsequent writes to that file will be almost instantaneous.

This is not needed.  It can be achieved without code chabges, by setting g:syntastic_go_go_build_args.  Patches that change defaults are not accepted; sorry, but no.

repo: scrooloose/syntastic

license: WTFPL


text:
Managing 'Add to my Drive' Shortcut Functionality.

Is your feature request related to a problem? Please describe.
My user base needs drive files 'added to their drive' rather than shared, because they can't be bothered to click 'shared with me' and then browse through files.
Describe the solution you'd like
A cmdlet or flag on the existing cmdlets that emulates the function of right clicking a shared directory (folder) in Drive, and clicking the 'Add to my Drive' button.  This adds a shortcut to the user's Drive but the files permissions, ownership, etc remain unchanged - it is not a copy of the file, but simply a shortcut.
Describe alternatives you've considered
Training.  But ultimately if I could automate this process it would be ideal.  The functionality may already exist in PSGSuite, but I would like some details on how to use it.  I can currently access the target directory just fine via Get-GSDriveFile and can make copies, change permissions, etc.  But what I need is the ability to perform an 'Add to My Drive' on the directory for a target list of users.
Additional context
Add any other context or screenshots about the feature request here.

Hey @Mschram72 - Thanks for opening this up! I like the idea and am trying to think of how that could happen. I'm anticipating that it can be done by changing the Parents value on the Drive File to include the folder ID for your target Drive location.
Since it seems like you're able to get the file info when it's first shared using Get-GSDriveFileInfo based on the description, my first test once I have time for this would be...

Share a file, but do not Add to My Drive.
$before = Get-GSDriveFileInfo $fileId
In the Drive UI, go through the normal process of right-clicking and selecting Add to My Drive.
$after = Get-GSDriveFileInfo $fileId

Once done, compare $before with $after and scope what's changed.

The above worked perfectly - I was able to grab the root ID of a user's drive, and then add that string the parent field on the desired share via Update-GSDriveFile -AddParents
You're an absolute legend, and thanks as always for the help!

repo: scrthq/PSGSuite


text:
Unable to import sr25519 in the node metadata example

Hi, with the minimal setup that you have defined in the tutorial:
use substrate_api_client::{node_metadata, Api};

fn main() {
    // instantiate an Api that connects to the given address
    let url = "127.0.0.1:9944";
    // if no signer is set in the whole program, we need to give to Api a specific type instead of an associated type
    // as during compilation the type needs to be defined.
    let api = Api::<sr25519::Pair>::new(format!("ws://{}", url));

    let meta = api.get_metadata();
    println!(
        "Metadata:\n {}",
        node_metadata::pretty_format(&meta).unwrap()
    );
}

and
[package]
name = "api-client-tutorial"
version = "0.1.0"
authors = ["Supercomputing Systems AG <info@scs.ch>"]
edition = "2018"

[dependencies]
substrate-api-client = { git = "https://github.com/scs/substrate-api-client.git" }

I am getting many errors:
➜  api-client-tutorial git:(master) ✗ cargo run
   Compiling api-client-tutorial v0.1.0 (/Users/aviralsrivastava/dev/api-client-tutorial)
error[E0433]: failed to resolve: use of undeclared type or module `sr25519`
 --> src/main.rs:8:21
  |
8 |     let api = Api::<sr25519::Pair>::new(format!("ws://{}", url));
  |                     ^^^^^^^ use of undeclared type or module `sr25519`

error[E0425]: cannot find function `pretty_format` in module `node_metadata`
  --> src/main.rs:13:24
   |
13 |         node_metadata::pretty_format(&meta).unwrap()
   |                        ^^^^^^^^^^^^^ not found in `node_metadata`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0425, E0433.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `api-client-tutorial`.

To learn more, run the command again with --verbose.

It looks like our tutorial is outdated. Please look at this example

@brenzi
I am sorry but this hasn't been helpful. You should have provided the corresponding dependencies' source as well.

For instance, I literally copied the Cargo.toml file and still, I am getting following error from the link that you referenced:
➜  api-client-tutorial git:(master) ✗ cargo run
   Compiling substrate-api-client v2.0.0 (/Users/aviralsrivastava/dev/api-client-tutorial)
error[E0433]: failed to resolve: use of undeclared type or module `substrate_api_client`
 --> src/main.rs:9:5
  |
9 | use substrate_api_client::node_metadata::Metadata;
  |     ^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `substrate_api_client`

error[E0432]: unresolved import `clap`
 --> src/main.rs:6:5
  |
6 | use clap::App;
  |     ^^^^ use of undeclared type or module `clap`

error[E0432]: unresolved import `substrate_api_client`
  --> src/main.rs:10:5
   |
10 | use substrate_api_client::Api;
   |     ^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `substrate_api_client`

error[E0433]: failed to resolve: use of undeclared type or module `Metadata`
  --> src/main.rs:20:16
   |
20 |     let meta = Metadata::try_from(api.get_metadata()).unwrap();
   |                ^^^^^^^^ use of undeclared type or module `Metadata`

error[E0433]: failed to resolve: use of undeclared type or module `Metadata`
  --> src/main.rs:28:9
   |
28 |         Metadata::pretty_format(&api.get_metadata()).unwrap_or("pretty format failed".to_string())
   |         ^^^^^^^^ use of undeclared type or module `Metadata`

warning: unused import: `std::convert::TryFrom`
 --> src/main.rs:4:5
  |
4 | use std::convert::TryFrom;
  |     ^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `substrate-api-client`.

To learn more, run the command again with --verbose.

can you point me to your code repo so I can have a look?

Hey, thanks for reverting.
I am using the master code only. https://github.com/kebab-mai-haddi/substrate-api-client

Sorry I cannot reproduce. When I check out your repo (which is up-to-date with our master), I can do:

cd tutorials/api-client-tutorial
cargo run

and it works.
or I can go to the root directory and do:

cargo build --example example_print_metada

and it works too, what steps do you perform for it to fail?

I was at the root directory: /Users/aviralsrivastava/dev/substrate-api-client. I ran the command: cargo run --example example_get_storage. And got the following error:
     Running `target/debug/examples/example_get_storage`
Interacting with node on 127.0.0.1:9944

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("Error decoding field RuntimeMetadataPrefixed.1")', /Users/aviralsrivastava/dev/substrate-api-client/src/lib.rs:143:9
stack backtrace:
   0:        0x103e0860f - backtrace::backtrace::libunwind::trace::h46cd1629179eb2bb
                               at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/libunwind.rs:86
   1:        0x103e0860f - backtrace::backtrace::trace_unsynchronized::he6a2c6978474c69f
                               at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/mod.rs:66
   2:        0x103e0860f - std::sys_common::backtrace::_print_fmt::h7e4f94659b124684
                               at src/libstd/sys_common/backtrace.rs:78
   3:        0x103e0860f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h87f791d1934b5da0
                               at src/libstd/sys_common/backtrace.rs:59
   4:        0x103e279ce - core::fmt::write::h23c8f27116676cdf
                               at src/libcore/fmt/mod.rs:1063
   5:        0x103e02367 - std::io::Write::write_fmt::h1f00d7a43839acf0
                               at src/libstd/io/mod.rs:1426
   6:        0x103e0a64a - std::sys_common::backtrace::_print::hdb601a5265ba7f34
                               at src/libstd/sys_common/backtrace.rs:62
   7:        0x103e0a64a - std::sys_common::backtrace::print::h5b8116376026eccf
                               at src/libstd/sys_common/backtrace.rs:49
   8:        0x103e0a64a - std::panicking::default_hook::{{closure}}::hf26168ecfd2fc8c1
                               at src/libstd/panicking.rs:204
   9:        0x103e0a38c - std::panicking::default_hook::hf7eb684688e3f257
                               at src/libstd/panicking.rs:224
  10:        0x103e0ad28 - std::panicking::rust_panic_with_hook::hba1377a258e49bd5
                               at src/libstd/panicking.rs:470
  11:        0x103e0a8c2 - rust_begin_unwind
                               at src/libstd/panicking.rs:378
  12:        0x103e2607f - core::panicking::panic_fmt::h0d0a3efb6be37d9e
                               at src/libcore/panicking.rs:111
  13:        0x103e25ec5 - core::option::expect_none_failed::h60a7fb6522066a05
                               at src/libcore/option.rs:1211
  14:        0x10379cd8f - core::result::Result<T,E>::unwrap::hdd8502f143ffb0a4
                               at /rustc/c20d7eecbc0928b57da8fe30b2ef8528e2bdd5be/src/libcore/result.rs:1003
  15:        0x1037b4b41 - substrate_api_client::Api<P>::_get_metadata::ha78d45a48b715fcc
                               at /Users/aviralsrivastava/dev/substrate-api-client/src/lib.rs:143
  16:        0x1037b52df - substrate_api_client::Api<P>::new::h191709ce62e4fbff
                               at /Users/aviralsrivastava/dev/substrate-api-client/src/lib.rs:102
  17:        0x1037b6ad4 - example_get_storage::main::hbbbe92adf2e40cca
                               at src/examples/example_get_storage.rs:28
  18:        0x1037b407e - std::rt::lang_start::{{closure}}::hb893d0bed7d75aad
                               at /rustc/c20d7eecbc0928b57da8fe30b2ef8528e2bdd5be/src/libstd/rt.rs:67
  19:        0x103e0a788 - std::rt::lang_start_internal::{{closure}}::h97c2f4abbac12fe2
                               at src/libstd/rt.rs:52
  20:        0x103e0a788 - std::panicking::try::do_call::hd39a46c6642b6b7f
                               at src/libstd/panicking.rs:303
  21:        0x103e0d6bb - __rust_maybe_catch_panic
                               at src/libpanic_unwind/lib.rs:86
  22:        0x103e0b12a - std::panicking::try::hd7941e20369365bb
                               at src/libstd/panicking.rs:281
  23:        0x103e0b12a - std::panic::catch_unwind::hb0089eff0d0a17f8
                               at src/libstd/panic.rs:394
  24:        0x103e0b12a - std::rt::lang_start_internal::h74a2f48667b795db
                               at src/libstd/rt.rs:51
  25:        0x1037b4061 - std::rt::lang_start::h9de3795ff5e19923
                               at /rustc/c20d7eecbc0928b57da8fe30b2ef8528e2bdd5be/src/libstd/rt.rs:67
  26:        0x1037b7622 - example_get_storage::get_node_url_from_cli::h28ef078e74cb1bea

@brenzi
And I ran the exact commands that you posted, again got the same error:
thread 'main' panicked at 'called Result::unwrap()on anErr value: Error("Error decoding field RuntimeMetadataPrefixed.1")', /Users/aviralsrivastava/dev/substrate-api-client/src/lib.rs:143:9 stack backtrace:
Btw, I am running the substrate node from the official documentation.

this is most likely due to an incompatible node.
Check that the node you are using has the same substrate revision as the substrate-api-client's

How can I do that?

got to your local substrate repo and do:
git checkout 00a400f82539e2f78e8ddbcd98aea512c87c5f3c
this is already the correct commit

In fact, when running the test node from this repo(as suggested in this repo), it shows error.
Steps:
git clone https://github.com/scs/substrate-test-nodes
cd substrate-test-nodes/
git checkout api-M1.1
cargo build --release

Error:
error[E0432]: unresolved import `hashbrown`
  --> /Users/aviralsrivastava/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmi-validation-0.1.0/src/lib.rs:31:5
   |
31 | use hashbrown::HashSet;
   |     ^^^^^^^^^ use of undeclared type or module `hashbrown`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: could not compile `wasmi-validation`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

warning: build failed, waiting for other jobs to finish...
error: build failed

ups, thanks for pointing this out. The readme is old ckeckout master.

Also, going into the local substrate repo:
git clone github.com/substrate-developer-hub/substrate-package
cd substrate-package
git checkout 00a400f82539e2f78e8ddbcd98aea512c87c5f3c

I got the error:
fatal: reference is not a tree: 00a400f82539e2f78e8ddbcd98aea512c87c5f3c

ups, thanks for pointing this out. The readme is old ckeckout master.

Welcome, but I didn't get this: "The readme is old ckeckout master."

Ah sorry. I did not know that you were using that repository. The substrate version they are using is too old. you would need to use https://github.com/paritytech/substrate
and regarding our test-node you need to do:
git clone https://github.com/scs/substrate-test-nodes
cd substrate-test-nodes/
cargo build --release
do not do: git checkout api-M1.1
if you already did, do: git checkout master
and then build it.
I won't be answering further questions today, I am going home. :)

@brenzi @clangenb
It worked.
Thanks guys!

authors: brenzi clangenb kebab-mai-haddi

repo: scs/substrate-api-client


text:
chore(scully): fix commit script

Fix #155
Remove git add .  from  commit script
PR Checklist

[x] The commit message follows our guidelines: https://github.com/scullyio/scully/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
Remove git add . from commit script.

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #155
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

@Villanuevand i create another PR for this, i dont like remote the git add . I really prefer use this by default... so, i create another script just for run the commit with the files add manually

Duplicated!
#158

authors: Villanuevand jorgeucano

repo: scullyio/scully


text:
benign typo in kwarg

typo in this line for a kwarg: https://github.com/scverse/scvi-tools/blob/95f2e1d2fa921c6433a04e257d844280ba0c25e5/scvi/train/_callbacks.py#L112
note this doesn't manifest as a bug. the default behaviour for save has save_anndata set to False already.

Thanks for pointing that out! Not sure how that made past our tests...

repo: scverse/scvi-tools


text:
move cloud related code from scylla repository to scylla-machine-image

Currently, cloud related code have cross-dependencies between
scylla and scylla-machine-image.
It is not good way to implement, and single change can break both
package.
To resolve the issue, we need to move all cloud related code to
scylla-machine-image, and remove them from scylla repository.
Here's change list:

move cloud part of scylla_util.py to lib/scylla_cloud.py
move cloud part of scylla_io_setup to common/scylla_cloud_io_setup
move scylla_ec2_check to common/
merge scylla_bootparam_setup to packer/scylla_install_image

This is scylla-machine-image part of the PR, please merge this part first.

Scylla part is at https://github.com/scylladb/scylla/pull/9957

Unlike scylla_ec2_check, I did not copied scylla_bootparam_setup to common/, I merged it into packer/scylla_install_image.
Because it is only required on image building time, and scylla_install_image already trying to modify boot parameter.
Also, I found that current code is failing to change boot parameter on Ubuntu 20.04.
Because we need to edit /etc/default/grub.d/50-cloudimg-settings.cfg instead of /etc/default/grub on this distro.
So fixed the issue in this PR.

@yaronkaikov @avikivity I confused with the license in scylla-machine-setup scripts.
It seems all scripts has Apache-2.0 license, not AGPL3.
I added new scripts in this PR, such as scylla_cloud_io_setup. The code in this script is moved from scylla_io_setup which is in scylla repo, and it is licensed with AGPL.
Which license should we apply to this, AGPL or Apache-2.0?

Code moved to scylla-machine-image should be relicensed to Apache License 2.0.

Code moved to scylla-machine-image should be relicensed to Apache License 2.0.

Okay, two script licenses were not changed from AGPL, just changed them to Apache-2.0.

@syuu1228 You can verify your changes (for both Scylla and machine-image) by re-building https://jenkins.scylladb.com/view/master/job/scylla-master/job/byo/job/byo_build_tests_dtest/1364/ , it also create an AMI image

@yaronkaikov Can we merge this now?

@syuu1228 I created an AMI based on both branches you have (scylla and machine-image). https://jenkins.scylladb.com/view/master/job/scylla-master/job/byo/job/byo_build_tests_dtest/1373/consoleFull
And created an instance based on the AMI i have created. Instance ID:i-0ad1282d2d9836949
Scylla is running without any issues. so i assume it's all good. Do you want to have a look to verify we are not missing anything? The instance is currently off. so you can just turn it on.
Let me know, from my POV we can merge it

@yaronkaikov I think we can merge it now.

authors: avikivity syuu1228 yaronkaikov

repo: scylladb/scylla-machine-image


text:
[AMI/GCP/Azure] - Align images name - follow up

Following https://github.com/scylladb/scylla-machine-image/pull/383. renaming version parameter to scylla_version parameter

LGTM what about the image-name var?

i commented on the other PR. opened an issue https://github.com/scylladb/scylla-machine-image/issues/385 since it didn't work for me

Verification:
https://jenkins.scylladb.com/job/scylla-master/job/releng-testing/job/azure-image/243/
https://jenkins.scylladb.com/job/scylla-master/job/releng-testing/job/gce-image/631/
https://jenkins.scylladb.com/job/scylla-master/job/releng-testing/job/ami/1492/


text:
Decrease excessive visibility from pub throughout the crate

Our codebase suffers from the prevalent light-hearted use of the pub qualifier. In order to reduce chances of having to incur backward-incompatible changes in the future, we should tackle with this problem once and (hopefully) forever.
This should definitely be done before we release 1.0.
Some suggestions have already been issued (e.g. #497).

Most work regarding this issue has already been done. Keeping this open, however, to remember us about revisiting the whole API before we release 1.0.

repo: scylladb/scylla-rust-driver


text:
[BUG] A few issues on Mac.

Hi! I downloaded the Neural amp modeller 2 days ago. The first time I ran it, it appeared to work fine, but it sounded very muddy, noisy and scratchy (regardless of the amp model or IR i loaded into it). I tried it again Today and when I opened the app a prompt popped up requesting to use my Macbook's microphone which I allowed. It then just made a very loud feedback noise which I couldn't get to stop unless I closed the app. Tried again, same result. Tried again but this time did not allow the app to make use of my microphone. The noise was now gone but I had no signal either. I then re-downloaded and installed the app, but the results were the same. I double checked all my settings to see if the error was on my side, but everything seems to be in order. I even tried to open it in both GarageBand and Reaper, but couldn't find it in either DAW. I did notice the app's picture changed and reads "iPlug2" but the app name remains the same. I use a MacBook Air M1.

Be sure to select the right Input Source. On a mac, while having the PlugIn open in standalone mode, press command and "," for opening the settings, and select the right input.
The noise you were hearing could be the macs internal mic (used for video conferencing etc.). If this signal gets into an amp it is for sure only a big noise.

Be sure to select the right Input Source. On a Mac, while having the PlugIn open in standalone mode, press command and "," for opening the settings, and select the right input.
The noise you were hearing could be the macs internal mic (used for video conferencing etc.). If this signal gets into an amp it is for sure only a big noise.

Would be nice to be "muted" when the plugin opens, I guess having a microphone feedback loop bang when you open the plugin isn't good for the speakers...
Also having a button to open the settings instead of only the "command" + "," keyboard shortcut

authors: Ventrilokill gabrielucido page6de

repo: sdatkinson/NeuralAmpModelerPlugin


text:
Add Contributing Guidlines

Add contributing guidelines to the repository. It would likely be best to modify these from another source, such as from torvalds/linux, etc.

lgtm!


text:
Improved  test coverage

Current tests only cover a small portion of the functionalities.
More tests need to be added and also should set it up such that  tests with uninstalled dependency are skipped.
A list of tests to be added will be update here once #82 is completed.

From the issues faced in #82, I think these utils are good candidates for some unit tests.
@sea-bass  , what are some other areas that you think should have test coverage ?

@sea-bass , what are some other areas that you think should have test coverage ?

All of them. If you'd like, pick one and make tests for it :)

authors: ibrahiminfinite sea-bass

repo: sea-bass/pyrobosim


text:
[v0.4.0-rc3]Resource Label value not shown.

Describe the bug

When edit a resource have label `walrus.seal.io/stoppable` : `false`,  the label value is missing.
Steps to reproduce

Create a service and add a label walrus.seal.io/stoppable : false.
Deploy the service.
Edit when the service finished deployment.

Result

false value of label  walrus.seal.io/stoppable  is missing.
Expected behavior

Show the value false
Environment

Walrus version: v0.4.0-rc3

Additional context
Add any other context about the problem here.

Verified in main

authors: alexcodelf gitlawr

repo: seal-io/walrus


text:
feat: set default image pull policy as always

Signed-off-by: HIHIA 283304489@qq.com

Describe what this PR does / why we need it
set default image pull policy as always, and add ifnewer in usage
Does this pull request fix one issue?

Fixes #1453
Describe how you did it
Describe how to verify it
Special notes for reviews

Codecov Report
Base: 18.39% // Head: 18.39% // No change to project coverage :thumbsup:

Coverage data is based on head (062e252) compared to base (4d88a6f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1729   +/-   ##
=======================================
  Coverage   18.39%   18.39%
=======================================
  Files          66       66
  Lines        5359     5359
=======================================
  Hits          986      986
  Misses       4247     4247
  Partials      126      126

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

authors: YTGhost codecov-commenter

repo: sealerio/sealer


text:
Update build configuration

The build configuration of this project is outdated and may no longer work.
This pull request will be merged automatically if there are no conflicts.

:tada: This PR is included in version 2.4.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: sealsystems/node-tlscert


text:
fix: Support Content-Type: application/json and Resolve CORS Issues in Form Submission Endpoint

Description
We are experiencing issues with submitting forms when the Content-Type is set to application/json. Despite setting the appropriate CORS headers in next.config.mjs, requests from the client are blocked due to CORS policy.
Expected Behavior

When submitting data to /submit/:formId with Content-Type: application/json, the server should accept the data without any CORS errors.
The server should correctly parse JSON formatted data and respond appropriately.

Current Behavior

Fetch requests with Content-Type: application/json are failing with a CORS policy error.
The browser console logs the error: Access to fetch at 'https://formail.dev/submit/j571gwa7mjbv1d4yj1amqw8mxs6rfrvm' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Steps to Reproduce

Set up a form submission using fetch with headers set to Content-Type: application/json.
Attempt to submit the form to the endpoint.
Observe the CORS policy error in the browser's developer console.

Also need to add new example page to the docs

repo: seangray-dev/formail-app


text:
added my name to guestbook.md

Can I add my name? thank you

Thank you!

repo: seankross/the-unix-workbench


text:
Requests_backend

Refactored and modularised authentication code. Now handled by functions in authentication.py .
**Added email as well as username signup options, yet to implement the email functionality but works with test data and test files.
Added more security checks for the forms client and server side e.g updated the regex checks and added some custom validators.
Fixed the .db files on repository, removed and added .db to gitignore.
**Added a posts db, yet to implement features for it.
Added an MIT LICENSE.
Added a requirements.txt file for flask packages and dependencies in the virtual environment.
**Need to return responses as jsonify objs not use flash.

Will need to go through login.py to see if already implemented in new authentication model.

Just realised I'm not hashing passwd in test data, will do that and incorporate login before reopening pr.


text:
[Bug - Vertical] Timeline brackets show over dates

Having multiple nested time ranges cause the timeline brackets to write over the dates.

think it has something to do with sorting the "timeline-tail" 4 is at the end when it should be at the beginning

solved in release 2.2.7 via #84

repo: seanlowe/obsidian-timelines


text:
客户端的配置文件优化

客户端的registry.conf配置文件 能否实现动态配置？
  type = "nacos"
  nacos {
    serverAddr = "192.168.0.251"
    namespace = "public"
    cluster = "default"
  }
}
config {
  type = "nacos"
  nacos {
    serverAddr = "192.168.0.251"
    namespace = ""
    cluster = "default"
  }
}```
我这个文件在不同环境，只有serverAddr不同

Q：我目前使用nacos注册中心，通过nacos客户端已经没有file.config了。registry能否做成autoconfig那样 通过properties或yaml文件进行配置，而不是一个registry配置。个人认为这样配置一点也不灵活。
我有调试过加载这个文件的代码，我发现可以配置环境变量来控制。我个人任务springboot的配置文件更好。 有可能我没有看见关键代码，实际上目前是可以的。希望相关人员能够解答一下我的问题。谢谢

1.http://seata.io/en-us/docs/ops/multi-configuration-isolation.html
2.1.0.0 supported yml, not require .conf

authors: mintonzhang zjinlei

repo: seata/seata


text:
optimize: delay to delete the expired undo log

Ⅰ. Describe what this PR did
optimize delay to delete the expired undo log
Ⅱ. Does this pull request fix one issue?

fixes #1464
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #1559 into develop will decrease coverage by 0.04%.
The diff coverage is 0%.

@@              Coverage Diff              @@
##             develop    #1559      +/-   ##
=============================================
- Coverage       46.4%   46.35%   -0.05%
+ Complexity      1692     1690       -2
=============================================
  Files            348      348
  Lines          12723    12723
  Branches        1588     1588
=============================================
- Hits            5904     5898       -6
- Misses          6179     6186       +7
+ Partials         640      639       -1

Impacted Files
Coverage Δ
Complexity Δ

...o/seata/server/coordinator/DefaultCoordinator.java
50.45% <0%> (-2.76%)
26 <0> (-2)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5d2d2d...0a46112. Read the comment docs.

authors: codecov-io jsbxyyx


text:
Syncing messages/messages.en-US files

Fixing the button.nextScreen text to be "Save and next" which is what the messages.en-US file was changed to a while back
Diffing the messages and messages.en-US files and updating messages.en-US where out of sync

Related to #2275 and #2712

Sorry, the second commit is ugly. I ended up reordering messages.en-US to be in the same order as messages because it was becoming a challenge to match everything.

repo: seattle-uat/civiform


text:
Fixed a typo on line 160

Fixed a typo on line 160

woops, thanks!

authors: sebakerckhof verrochio


text:
Checkbox update

Small but sweet adjustments to the Checkbox

[ ] Border radius 2px
[ ] Hover border Base 600
[ ] Selected background Base 800
[ ] Margin checkbox & label 12px

This design has been implemented.

authors: hemmahosjessi vsjolander

repo: sebgroup/green


text:
Cannot read property 'trim' of undefined & ifconfig: command not found

Describe the bug
I got an error with the CPU function I tried different methods and functions of the Npm package but nothing seems to work. its a issue with the CPU Speed method I think. Oh my terminal said that 'ifconfig' isn't found but this is default on MacOS. How can I fix this issue, is it a bug, or something with my system?
To Reproduce
si.getStaticData((data) => { console.log(data); });

Current Output
/bin/sh: ifconfig: command not found
/Users/bastiaan/Documents/nodejs/npm-rpi-status/node_modules/systeminformation/lib/cpu.js:310
          result.speed = modelline.split('@')[1].trim();
                                                ^

TypeError: Cannot read property 'trim' of undefined
    at /Users/bastiaan/Documents/nodejs/npm-rpi-status/node_modules/systeminformation/lib/cpu.js:310:49
    at ChildProcess.exithandler (child_process.js:301:5)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Socket.stream.socket.on (internal/child_process.js:389:11)
    at Socket.emit (events.js:198:13)
    at Pipe._handle.close (net.js:606:12)

Environment (please complete the following information):

systeminformation package version: 4.16.0
OS: MacOS 10.15.2
Hardware: MacBook Pro (Retina, 13-inch, Early 2015)

If I remove the follow lines (308 - 312) in "lib/cpu.js" the code is working
const modelline = util.getValue(lines, 'machdep.cpu.brand_string');
result.brand = modelline.split('@')[0].trim();
result.speed = modelline.split('@')[1].trim();
result.speed = parseFloat(result.speed.replace(/GHz+/g, '')).toFixed(2);
_cpu_speed = result.speed;

#313 Fixed the issue with ifconfig for me

@Bastiaantjuhh will make a more detailed investigation.

@Bastiaantjuhh can you provide the output of
sysctl machdep.cpu.brand_string hw.cpufrequency_max hw.cpufrequency_min

Thank you in advance.

@Bastiaantjuhh ... maybe I also have to add the absolute path here on line 305. Can you modify it on your side and test it once again? ... so this line then would be:
exec('/usr/sbin/sysctl machdep.cpu hw.cpufrequency_max hw.cpufrequency_min hw.packages hw.physicalcpu_max hw.ncpu', function (error, stdout) {

I do not know what has changed between version 4.16 and version 4.16.1 (not something special according to the commits) but all data is now perfectly loaded.
Thank you in advance. ;-)

@Bastiaantjuhh can you provide the output of
sysctl machdep.cpu.brand_string hw.cpufrequency_max hw.cpufrequency_min

Thank you in advance.

machdep.cpu.brand_string: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
hw.cpufrequency_max: 2700000000
hw.cpufrequency_min: 2700000000

@Bastiaantjuhh ... maybe I also have to add the absolute path here on line 305. Can you modify it on your side and test it once again? ... so this line then would be:
exec('/usr/sbin/sysctl machdep.cpu hw.cpufrequency_max hw.cpufrequency_min hw.packages hw.physicalcpu_max hw.ncpu', function (error, stdout) {

cpu: {
    manufacturer: 'Intel®',
    brand: 'Core™ i5-5257U',
    vendor: 'GenuineIntel',
    family: '6',
    model: '61',
    stepping: '4',
    revision: '',
    voltage: '',
    speed: '2.70',
    speedmin: '2.70',
    speedmax: '2.70',
    governor: '',
    cores: 4,
    physicalCores: 2,
    processors: 1,
    socket: '',
    cache: { l1d: 32768, l1i: 32768, l2: 262144, l3: 3145728 },
    flags: 'fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clfsh ds acpi mmx fxsr sse sse2 ss htt tm pbe sse3 pclmulqdq dtes64 mon dscpl vmx est tm2 ssse3 fma cx16 tpr pdcm sse4.1 sse4.2 x2apic movbe popcnt aes pcid xsave osxsave seglim64 tsctmr avx1.0 rdrand f16c'
}

Ok. Closing it for now.

authors: Bastiaantjuhh sebhildebrandt

repo: sebhildebrandt/systeminformation


text:
Socket Closed without sending response

Hi, I’m getting an error when booting up Homebridge. Both are Eufy white/color bulbs. As Homebridge starts, I see the plugin “Add Accessory” and identify each bulb. However, it then generates and error “connecting to accessory: Error: Socket closed without sending response.” It then removes the accessory (bulb). Any thoughts? Tried reinstalling the plugin.

I believe it was a change to the Eufy API. See issues 2, 4, 5 & 6 at https://github.com/sebmos/node-eufy-api
I ended up dumping my bulbs and went with a bunch of Tuya stuff

Is this module dead for now? If so I think noting this on the readme page should be mentioned.

@dancocos I wouldn't call it dead, as it still works for some lights. I still hold out hope that Eufy will fix the bug in their firmware. But it's true that this API doesn't support their server-side API, which Eufy uses for remote control (and as a fallback for the same bug, which they're also affected by.)

Dear @sebmos
May I ask if there is indication of Eufy has made a mentioned fix or not?
Thank you.

@jgadzhiev - My response is a bit slow, as I had to start using the Eufy plugs again. It appears the bug isn't fixed, sadly. My bulbs worked for a bit, and then they stopped.

authors: dancocos decavent digitalec jgadzhiev sebmos

repo: sebmos/homebridge-eufy


text:
Recent peewe version makes it fail on group zone assignement

Hi, sebo-b:
First of all, I would like to thank you for this project. Great job!
Second, I have found that last time I built the whole project, the resulting deployment failed when assigning groups to zones. After a little research, I found that something was wrong in :
_cab_warp-warp-demo-wsgi-1   |   File "/usr/local/lib/python3.10/site-packages/warp/xhr/zones.py", line 209, in assign
cab_warp-warp-demo-wsgi-1   |     raise ApplyError(f"Wrong number of affected rows {rowCount} != "+ str(len(jsonData['change'])), 223)_
Something seems to have changed on last version of peewe. The easy solution is to force peewe version en requirements.txt as peewee==3.14.10, doing so everything works fine.
I hope this pice of advise is usefull for new users.
cheers!

Thanks for contributing

authors: n-rodrig sebo-b

repo: sebo-b/warp


text:
Unable to clear the context object knowledge

Hello I wish to clear the models knowledge for every loop iteration without tracking previous inputs or outputs. Since the context object is a way to pass information between different parts of the model, and it is used to store the history of the conversation. This allows the model to keep track of what has been said previously and generate responses that are consistent with the conversation.
I don't want the model to keep a track of the previous conversation and hence wish to clear it. @hydai  is there a way to do this?
Following is the loop that I am running:
loop {

        println!("Question:-");
        let input = read_input();
        let model_input: String = format!("[INST] {} [/INST]", input.trim());
        // Set prompt to the input tensor.
        let tensor_data = model_input.as_bytes().to_vec();
        context
            .set_input(0, wasi_nn::TensorType::U8, &[1], &tensor_data)
            .unwrap();

        // Execute the inference.
        println!("Answer:");
        context.compute().unwrap();

        // Retrieve the output.
        let max_output_size = 4096 * 6;
        let mut output_buffer = vec![0u8; max_output_size];
        let mut output_size = context.get_output(0, &mut output_buffer).unwrap();
        output_size = std::cmp::min(max_output_size, output_size);
        let output = String::from_utf8_lossy(&output_buffer[..output_size]).to_string();
        if !stream_stdout {
            print!("{}", output.trim());
        }
        println!("");

    }

At the end of each loop I wish to clear the model knowledge of the conversation.

Try something like this?
https://github.com/second-state/llama-utils/tree/main/simple

@hydai  FYI, I have tried to re-instantiate as follows but still the model is able to store information.
loop {
        let mut context = graph.init_execution_context().unwrap();

        context
        .set_input(
            1,
            wasi_nn::TensorType::U8,
            &[1],
            &options.to_string().as_bytes().to_vec(),
        )
        .unwrap();

        println!("Question:-");
        let input = read_input();
        let model_input: String = format!("[INST] {} [/INST]", input.trim());
        // Set prompt to the input tensor.
        let tensor_data = model_input.as_bytes().to_vec();
        context
            .set_input(0, wasi_nn::TensorType::U8, &[1], &tensor_data)
            .unwrap();

        // Execute the inference.
        println!("Answer:");
        context.compute().unwrap();

        // Retrieve the output.
        let max_output_size = 4096 * 6;
        let mut output_buffer = vec![0u8; max_output_size];
        let mut output_size = context.get_output(0, &mut output_buffer).unwrap();
        output_size = std::cmp::min(max_output_size, output_size);
        let output = String::from_utf8_lossy(&output_buffer[..output_size]).to_string();
        if !stream_stdout {
            print!("{}", output.trim());
        }
        println!("");

    }

@juntao Thank you for the quick response. Yes, I have tried this but this is just a one time inference. I wish to perform this in a loop. I did try re-instantiation but still the model is able to remember the previous conversation.

@hydai @juntao Is this possible any other way?

@hydai I have tried looking through the source code but there isn't a method for clearing/reseting the model state. Is there any other way?
Thank you for your dedicated support.

We can reproduce this according to the context design of the llama.cpp, it does store some information in the context. Unfortunately, we currently don't have any way to reset the context. We are going to have a new option to reset the context in our next release.

Okay thank's a lot @hydai. Appreciate the active feedback. Also any tentative timeline for the next release?

Hi @niranjanakella
We've updated the plugin; the current and further versions will no longer keep any previous context states.
Please use the installer to re-install the WASI-NN ggml plugin. It should be updated to the latest one.
Feel free to re-open this issue if you get any related problems. Thanks.

@hydai I have trained a model (for summarization) and inferenced it after updating WASI-NN. But I still see the context being saved. Can you please take a look at the following code and let me know what is wrong.
loop {
        let graph =
    wasi_nn::GraphBuilder::new(wasi_nn::GraphEncoding::Ggml, wasi_nn::ExecutionTarget::AUTO)
        .build_from_cache(model_name)
        .unwrap();

    let mut context = graph.init_execution_context().unwrap();

    context
    .set_input(
        1,
        wasi_nn::TensorType::U8,
        &[1],
        &options.to_string().as_bytes().to_vec(),
    )
    .unwrap();

    let mut saved_prompt = String::new();

    println!("\nDialogue:");
    let input = read_input();
    saved_prompt = format!("### Dialogue:{} ### Summary:", input.trim()); //TinyLLaMA

    // Set prompt to the input tensor.
    let tensor_data = saved_prompt.as_bytes().to_vec();

    let start_time = Instant::now();
    context
        .set_input(0, wasi_nn::TensorType::U8, &[1], &tensor_data)
        .unwrap();

    context.compute().unwrap();

    // Retrieve the output.
    let max_output_size = 4096;
    let mut output_buffer = vec![0u8; max_output_size];
    let mut output_size = context.get_output(0, &mut output_buffer).unwrap();
    output_size = std::cmp::min(max_output_size, output_size);
    let output = String::from_utf8_lossy(&output_buffer[..output_size]).to_string();

    let out = format!("\nSummary: {}\n\nResponse Time: {}", output.trim(), format_duration(start_time.elapsed()));
    println!("{}", out);

        }
    }

Which version of the plugin do you use?

authors: hydai juntao niranjanakella

repo: second-state/WasmEdge-WASINN-examples


text:
Understanding IPV4 and IPV6 protocols

We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner. Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
Understanding IPV4 and IPV6 protocols
Your title should be descriptive of the article/tutorial. Be Specific. Use keyword research to gain your article higher ranking.
Introduction paragraph (2-3 paragraphs):
Internet protocol versions are basically protocols responsible for data-gram relay across am interconnections of computers.  There exists two versions of internet protocol versions, namely internet protocol version 4 and internet protocol version 6.
In this article I will be explaining the two internet protocol versions, explain their functionalities and the reasons why one version might take preference to another.
Key takeaways:

The reader will be in a position to understand what internet protocols  are and its importance in  communication over the internet.
The reader will be able to understand what internet protocol versions are , the different  types of internet protocol versions available today and their functionalities.
The reader will be able to learn the differences between the two versions of internet protocol and which version is preferred to the other and why.

References:
N/A
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

@awinomackrine  to help avoid a backlog queue we are only accepting one article topic/pr approved at a time 👍
Once the 1st one is published we can re-open this one 🚀

👍
Fixed - thank you. My apologies for the confusion - to help avoid this with future PR - lets be sure to link our topic forms with our PRs so when merged they close the topic form as well 🚀

seems like a helpful topic - please be sure to go over past EngEd articles to see how they can be referenced if applicable
https://www.section.io/engineering-education/search/?q=lan
@awinomackrine  approved

authors: awinomackrine hectorkambow


text:
Core Concepts Of Redux Store Management

Article checklist
Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x]  Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes
This closes #3486.

Yeah, I am done with the article.

I just hope this article has not been left out @hectorkambow @ahmadmardeni1 @WanjaMIKE

Your article has been entered into our queue and should be reviewed (and published pending any changes) as soon as a peer reviewer is finished with the ones in the queue before it. 🚀

Thanks, @M0nicah

Yeah, I have done the plagiarism test. The updated article has been re-uploaded.

plagiarism check done ✅

@M0nicah
I believe this PR have pass the plagiarism check and can go through prelim review.

Yes sir. It has passed plagiarism test. With my best of knowledge, it only requires the reviewer to move it to the next stage.

I have corrected the article and perfeced the hero issues. @M0nicah ma

great article @Horlawhumy-dev , please review the changes I made in the commits to help improve the flow and format for your future articles.

Wow! I have gone through the changes. Thanks @M0nicah