text:
Add intial plaform support for Native Client (NaCl)

The initial port to NaCl was done in the webports
repository:
https://chromium.googlesource.com/webports.git/+/master/ports/grpc/
In order to be buildable under NaCl outside the
webports repo there are several further changes
that will be needed:

Make AF_UNIX sockets optional
Make IP_PKTINFO optional
Make vector I/O (readv/writev) optional

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

This is ok to test.

@sbc100   can you please rebase onto the latest head (we've merged lot of fixes during the last week and would use a fresh test run)

@sbc100 is on leave. I've already pulled this change into my fork, so I can attempt to take over this PR.

@ahedberg  thanks! For now, I will close this PR and wait for you to recreate it from your fork.

authors: ahedberg grpc-jenkins jtattermusch nicolasnoble sbc100


text:
How to get the 'backup_retention_period' from a rds instance

Hi, I am new to terratest and terraform.
I can see from the example that I can create an RDS instance, which I have modified to add backup_retention_period = 7
I would like to be able to test that this has been done, but i cant work out how to get that field. (It doesn't help that I am also quiet new to AWS and have no idea what that field would be classed as!)
Any help is greatly appreciated, thanks

Hi Dan, were you able to resolve this?

Yes I was able to resolve it
I used aws.GetRdsInstanceDetails and it contains an element *dbInstance.BackupRetentionPeriod

source: gharchive/issue

authors: danrhjones infraredgirl

repo: gruntwork-io/terratest

license_type: permissive

license_source: github-api


text:
🛑 h4.bretterhofer.at is down

In bcfd968, h4.bretterhofer.at (https://h4.bretterhofer.at/toggle.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: h4.bretterhofer.at is back up in 127b398.

license: MIT


text:
🛑 kinderundjugendtanz.at is down

In fb3347c, kinderundjugendtanz.at (https://kinderundjugendtanz.at) was down:

HTTP code: 0
Response time: 0 ms

Resolved: kinderundjugendtanz.at is back up in cd68f61.


text:
🛑 andritz.me is down

In fa99def, andritz.me (https://andritz.me) was down:

HTTP code: 0
Response time: 0 ms

Resolved: andritz.me is back up in 2bb63d1.


text:
🛑 bretterhofer.at is down

In 5172f96, bretterhofer.at (https://bretterhofer.at) was down:

HTTP code: 0
Response time: 0 ms

Resolved: bretterhofer.at is back up in 4fb36c1.


text:
🛑 volkstanzwannwo.at is down

In 8ca639e, volkstanzwannwo.at (https://volkstanzwannwo.at) was down:

HTTP code: 0
Response time: 0 ms

Resolved: volkstanzwannwo.at is back up in c46c5f1.


text:
🛑 h4.bretterhofer.at is down

In b34ebc2, h4.bretterhofer.at (https://h4.bretterhofer.at/toggle.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: h4.bretterhofer.at is back up in 11efea1.


text:
🛑 volkstanzwannwo.at is down

In 79eb216, volkstanzwannwo.at (https://volkstanzwannwo.at) was down:

HTTP code: 0
Response time: 0 ms

Resolved: volkstanzwannwo.at is back up in 2fe56f6.


text:
style

style broken when using in iframe

Hi can you give please some code how do you put it in inframe? And how the styles got broken? I'd like to reproduce this


text:
怎么重新设置当前currentPageDotImage的frame，有个需求是当前的currentPageDotImage大一点，其他的小一点。。。

怎么重新设置当前currentPageDotImage的frame，有个需求是当前的currentPageDotImage大一点，其他的小一点。。。找了很久没找到。蛋疼，希望哥们帮忙瞧瞧改下哪里哦，谢啦。

可以用自定义图片的pagecontrol

恩 ，已经弄好了该了下 源代码。在TAPageControl.m中替换 如下方法即可做到  当前页的currentPageDotImage  大一点，其他页小一点的效果
/**
 *  Change activity state of a dot view. Current/not currrent.
 *
 *  @param active Active state to apply
 *  @param index  Index of dot for state update
 */
- (void)changeActivity:(BOOL)active atIndex:(NSInteger)index
{
    if (self.dotViewClass) {
        TAAbstractDotView *abstractDotView = (TAAbstractDotView *)[self.dots objectAtIndex:index];
        if ([abstractDotView respondsToSelector:@selector(changeActivityState:)]) {
            [abstractDotView changeActivityState:active];
        } else {
            NSLog(@"Custom view : %@ must implement an 'changeActivityState' method or you can subclass %@ to help you.", self.dotViewClass, [TAAbstractDotView class]);
        }
    } else if (self.dotImage && self.currentDotImage) {
        UIImageView *dotView = (UIImageView *)[self.dots objectAtIndex:index];

        dotView.image = (active) ? self.currentDotImage : self.dotImage;
        //dotView.backgroundColor = [UIColor redColor];
        if (dotView.image == self.currentDotImage) {
            //大小自己看着效果调吧，我这是美工给的图片
            dotView.frame = CGRectMake(dotView.frame.origin.x-7/2, dotView.frame.origin.y, 15, 8);
        }else{
            dotView.frame = CGRectMake(dotView.frame.origin.x+7/2, dotView.frame.origin.y, 8, 8);
        }
    }
}

谢谢，解决了我的问题

authors: AllLuckly gsdios huangrun

repo: gsdios/SDCycleScrollView

license: mit

license_source: bigquery


text:
Security contact

Is there a preferred security contact address for this project?

I've now enabled private vulnerability reporting for this repository, so you are welcome to report any vulnerabilities here: https://github.com/gsemac/Gsemac.Common/security

authors: gsemac lumisota


text:
「地理院地図」とは

「地理院地図」とは何ですか？

地理院地図とは、平成15年に開始し、平成24年7月から平成25年10月30日まで「電子国土Web.NEXT（試験公開）」として提供しておりました国土地理院のウェブ地図の最新版です。平成25年10月30日に「地理院地図」としての公開を開始し、平成27年1月8日にリニューアルを行いました。

repo: gsi-cyberjapan/gsimaps


text:
Add the project to conda-forge

Add the project to conda-forge to make it possible to install PyGSP2 with
$ conda install -c conda-forge pygsp2

Package submitted to Conda-Forge, revision pending

Package submitted to Conda-Forge, revision pending

Conda-forge revision passed

authors: aweinstein lcortesg


text:
Guess who's back?

For the ones who have missed the cause of my last absence from OS/etc, please follow this link:
https://twitter.com/gsscoder/status/821821285701451777
Here everything is explained.
Bye :)

Welcome back @gsscoder!

Thanks! I think that having given full commit access to CommandLine main contributors allows the project to grow also with my coordination. Now you know the codebase better than me! ;)
Ciao

Does that mean there'll be an official 2.x release on nuget soon? That would be cool!

Yes, time allowing, but it will be in (advanced) beta status... :)

authors: dirkrombauts gsscoder nemec

repo: gsscoder/commandline


text:
Automatically identify Arduino/Hokuyo usb ports

Maybe there's a way we can pass in /dev/serial/by-id/usb-Arduino* and /dev/serial/by-id/usb-Hokuyo* instead of /dev/ttyACM*?

Alternatively, do as #124 suggested and make it a rosparam.

repo: gtagency/buzzmobile


text:
Make deployment similar on all platforms

Following some discussion in #61, it might be better if we factored out parts of the travis ci build script into a install.sh, so that
git clone
./install.sh

would install system dependencies, run setup.py, install rosdeps, etc. and allow deployment to be done the same way across all systems.

I've started on this, basic workflow will be

run install.sh

runs python3 -m venv buzzmobile, creating a virtualenv
install tensorflow from wheel
install opencv from source
install the ros dependencies
run setup.py

install all the python dependencies

run rosdep
run tests?

Current biggest issue is getting OpenCV to work (efficiently), because it doesn't play well with Ros or python3 or virtualenvs on their own, and we're using all three.

Hm. travis is currently doing most of those, including opencv. For a fuller list of things install.sh should do, maybe you can look at .travis.yml?

authors: iRapha joshuamorton


text:
from airtable import Airtable not found

What happened @nullsaint ?
Was your file named airtable.py?

authors: gtalarico nullsaint

repo: gtalarico/airtable-python-wrapper


text:
some typos (?) in the documentation

issues from http://airtable-python-wrapper.readthedocs.io/en/master/api.html#module-airtable.airtable

Search:

airtable.search('ColumnA', 'SeachValue')   # should say 'SearchValue'

batch_delete(record_ids)
Calls delete repetitively, following set API Rate Limit (5/sec) To change the rate limit set value of airtable.API_LIMIT to the time in seconds it should sleep before calling the funciton again.   # 'function' is misspelled

record_ids = ['recwPQIfs4wKPyc9D', 'recwDxIfs3wDPyc3F']
airtable.batch_delete(records)   # shouldn't "record_ids" be passed instead of just "records" ?

Hi and thanks for pointing those out.
These all appear to be correct revisions.
Any chance you Could you send a PR?
These can also be edited directly on github site 😊

Thanks for the response!
I am super new to using github (and computer programming in general, for
that matter) and I'm still figuring it all out, so I could not actually
find this part of the code in your git repository, which is why i
copy/pasted it in my post. If you could send me a link to that part of the
code, I could do a pull request (if that is what you are asking). Thanks!
On Mon, Mar 26, 2018 at 5:10 PM, Gui Talarico notifications@github.com
wrote:

Hi and thanks for pointing those out.
These all appear to be correct revisions.
Any chance you Could you send a PR?
These can also be edited directly on github site 😊
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gtalarico/airtable-python-wrapper/issues/19#issuecomment-376352468,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AiswAJFIZgFTiecV5fdhMaHs_aqXBJ-dks5tiYNugaJpZM4S8DvO
.

--
A sound mind in a sound body is a short but full description of a happy
state in this world.  -John Locke, philosopher (1632-1704)

Wait I found it and I think I figured it out. Did my PR show up on your end
now?
On Mon, Mar 26, 2018 at 5:19 PM, Ezra Citron citron.ezra@gmail.com wrote:

Thanks for the response!
I am super new to using github (and computer programming in general, for
that matter) and I'm still figuring it all out, so I could not actually
find this part of the code in your git repository, which is why i
copy/pasted it in my post. If you could send me a link to that part of the
code, I could do a pull request (if that is what you are asking). Thanks!
On Mon, Mar 26, 2018 at 5:10 PM, Gui Talarico notifications@github.com
wrote:

Hi and thanks for pointing those out.
These all appear to be correct revisions.
Any chance you Could you send a PR?
These can also be edited directly on github site 😊
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gtalarico/airtable-python-wrapper/issues/19#issuecomment-376352468,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AiswAJFIZgFTiecV5fdhMaHs_aqXBJ-dks5tiYNugaJpZM4S8DvO
.

--
A sound mind in a sound body is a short but full description of a happy
state in this world.  -John Locke, philosopher (1632-1704)

--
A sound mind in a sound body is a short but full description of a happy
state in this world.  -John Locke, philosopher (1632-1704)

Yes, thanks! Your commit is already merged with the master branch.
https://github.com/gtalarico/airtable-python-wrapper/commits/master
Docs should already be rebuilt as well
http://airtable-python-wrapper.readthedocs.io/en/master/api.html#airtable.Airtable.batch_delete

Thanks!
Docs not yet rebuilt though, at least on my end:
On Mon, Mar 26, 2018 at 5:48 PM, Gui Talarico notifications@github.com
wrote:

Yes, thanks! Your commit is already merged with the master branch.
https://github.com/gtalarico/airtable-python-wrapper/commits/master
Docs should already be rebuilt as well
http://airtable-python-wrapper.readthedocs.io/en/master/api.html#airtable.
Airtable.batch_delete
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gtalarico/airtable-python-wrapper/issues/19#issuecomment-376358709,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AiswAJpZLwSt4YgurG0f6syz7dcKLCvTks5tiYxqgaJpZM4S8DvO
.

--
A sound mind in a sound body is a short but full description of a happy
state in this world.  -John Locke, philosopher (1632-1704)

I am getting latest on desktop and phone.
Try refreshing browser/clear cache

Ah, I had to clear cache. As I said, I'm just getting into this :) Thanks
for the tips!
Cheers,
Ezra
On Mon, Mar 26, 2018 at 6:32 PM, Gui Talarico notifications@github.com
wrote:

I am getting latest on desktop and phone.
Try refreshing browser/clear cache
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gtalarico/airtable-python-wrapper/issues/19#issuecomment-376366067,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AiswADsqffnHPeITzN_ped3Fh-vKz1ctks5tiZa4gaJpZM4S8DvO
.

--
A sound mind in a sound body is a short but full description of a happy
state in this world.  -John Locke, philosopher (1632-1704)

No problem, and thanks again for the PR!

authors: ezcitron gtalarico


text:
Login screen doesn't check if user is logged in

Expected Behavior
The GIS button doesn't show when logged in
Actual Behavior
The GIS button shows every time
Need to check if logged in before rendering the GIS button.

This will be closed for now, as the updated solution doesn't use GIS.


text:
Fix tests for 32bit windows

Closes https://github.com/gtk-rs/gtk/issues/783

@sdroege, @GuillaumeGomez seems we will have green build in gtk too

Thanks so much! :sob:

@EPashkin Hero of the day! :) Thanks!

source: gharchive/pull-request

authors: EPashkin GuillaumeGomez sdroege

repo: gtk-rs/gtk


text:
[BUG] TextView is not visible if default dimensions are set

Bug description
Please provide a code sample as small as possible which reproduces the bug.
use gtk::prelude::*;
use gtk::{Application, ApplicationWindow, Orientation, TextBuffer, TextView};
const APP_ID: &str = "org.gtk_rs.test";

fn main() {
    let app = Application::builder().application_id(APP_ID).build();
    app.connect_activate(build_ui);
    app.run();
}

fn build_ui(app: &Application) {
    let buffer = TextBuffer::builder()
        .text("Buffer")
        .build();
    let text_view = TextView::builder()
        .buffer(&buffer)
        .build();

    let gtk_box = gtk::Box::builder()
        .orientation(Orientation::Vertical)
        .build();

    gtk_box.append(&text_view);

    let window = ApplicationWindow::builder()
        .application(app)
        .default_width(400)
        .default_height(500)
        .title("Test")
        .child(&gtk_box)
        .build();

    window.present();
}

Expected result: text_view is visible
Actual result: the window is completely blank

Not setting default dimensions or resizing the window manually fixes the issue. Not using a container also helps. I'm new to GTK so take this code with a grain of salt, maybe I'm not using some of those widgets properly
Environment:
gtk = { version = "0.4.8", package = "gtk4" }

pkg-config --modversion gtk4
4.6.6

that looks correct to me, but the result seems to be problematic. You might want to report that upstream instead as it is not a bindings problem

You're right, looks like it's an old and unattended upstream issue:
https://gitlab.gnome.org/GNOME/gtk/-/issues/3635
Closing

authors: bilelmoussaoui bubelov


text:
add new re-designed overview diagram for GUAC

Description of the PR
add new re-designed overview diagram for GUAC
PR Checklist

[ ] All commits have a Developer Certificate of Origin (DCO) -- they are generated using -s flag to git commit.
[ ] All new changes are covered by tests
[ ] If GraphQL schema is changed, make generate has been run
[ ] If OpenAPI spec is changed, make generate has been run
[ ] If collectsub protobuf has been changed, make proto has been run
[ ] All CI checks are passing (tests and formatting)
[ ] All dependent PRs have already been merged

@pxp928 In the new image, there is a red underline on "OpenSSF Scorecard" because of a supposed spelling issue. Should we fix this? I assume that we don't want that in the design diagram for GUAC.

@pxp928 In the new image, there is a red underline on "OpenSSF Scorecard" because of a supposed spelling issue. Should we fix this? I assume that we don't want that in the design diagram for GUAC.

oh let me fix that

repo: guacsec/guac


text:
Modifying parameters not present in config file (yaml, json, maybe more)

let's assume that agent has parameters like:
param_a
param_b

if the configuration looks like
//config.json
{
 "param_a": 777
}

and we want to modify param_b which is not present in this  config.json (or .yaml) by calling CB API:
PUT http://server/instance/agent/myagent@myexecenv

{
  "id": "myagent@myexecenv",
  "operations": [
    {
      "parameters": [
        {
          "id": "param_b",
          "value": 2
        }
      ]
    }
  ]
}

this line:
https://github.com/guard-project/lcp/blob/71fd9b9d785cc1ca4d7cae8dcfc5f7349e978c30/lib/parser.py#L65
will throw an KeyError which is not caught. If parameter is not found in path than it should be added to the path.

Also, something came to my mind. If a configuration is nested, like so:
{
  "param_a":  {
    "param_b": {
      "param_c" 1
    }
  }
}

then in the absence of param_a when setting param_c you'll have to construct the whole path: param_a.param_b.param_c

yeah, I wrote this elaborate example, but didn't send you the Exception, stupid me.
I assume this parameter is declared in catalog.
This is an Exception:

Exception while serving /config

Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]: Traceback (most recent call last):
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:   File "/opt/guard-lcp/guard/git/lcp/resource/config.py", line 89, in __parameters
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:     output.update(self.parsers.get(schema)(schema, source, path, value))
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:   File "/opt/guard-lcp/guard/git/lcp/lib/parser.py", line 65, in yaml_parser
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:     old_value = d[path[-1]]
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]: KeyError: 'poll_interval'
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]: During handling of the above exception, another exception occurred:
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]: Traceback (most recent call last):
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:   File "/opt/guard-lcp/lib/python3.9/site-packages/waitress/channel.py", line 349, in service
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:     task.service()
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:   File "/opt/guard-lcp/lib/python3.9/site-packages/waitress/task.py", line 169, in service
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:     self.execute()
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:   File "/opt/guard-lcp/lib/python3.9/site-packages/waitress/task.py", line 439, in execute
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:     app_iter = self.channel.server.application(environ, start_response)
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:   File "/opt/guard-lcp/lib/python3.9/site-packages/falcon/api.py", line 269, in __call__
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:     responder(req, resp, **params)
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:   File "/opt/guard-lcp/guard/git/lcp/resource/config.py", line 41, in on_post
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:     output = self.__parameters(data)
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:   File "/opt/guard-lcp/guard/git/lcp/resource/config.py", line 98, in __parameters
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:     return Bad_Request_Response(e, message=msg, type='parameter', data=data)
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:   File "/opt/guard-lcp/guard/git/lcp/lib/response.py", line 73, in __init__
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]:     super().__init__(exception.title if exception is not None else 'Request not valid',
Jun 29 14:51:24 guard-uc2-router guard-lcp.sh[777]: AttributeError: 'KeyError' object has no attribute 'title'

I have to check if the insertion of new parameters in the config file works.

I fixed the error, but I think it should better to update the version after the review.
@pszynk  Do you need this feature available for the review?

@pszynk Do you need this feature available for the review?
@alexcarrega No I can work around that by preparing a starting config file with all parameters declared.

Either way, when modifying two parameters rules and poll_interval, the file was partially updated, new rules appeared. Because the rules field was present in original config file before modification. The poll_interval parameter was ignored and CB return error code 4xx (426 or 422) i think.
So this is not crucial for the presentation, at least from my point. If anybody would encounter this error they also can bypass it by preparing a full config file with all params declared.

Ok, I will update LCP after the review.
For the review, please check that the parameters are present in the configuration files.

Hi, I made some local changes to LCP (but without a push).
Now it can add new parameter in the file even if this one is total empty.
The only open problem regards the management of array. If you want to update an array in a specific position it is necessary to define the path in the agent catalog as list of hybrid string / int elements that is not allowed at this moment. I will work about this specifically to avoid some problem with Elasticsearch and its mapping definition.

Nice.
As for updating an array at specific index. For myself I don't think I'b be using such functionality.
I can see that the implementation would be problematic, many more edge scenarios.
Also binding a parameter to specific index in the array seems like a bad design for configuration.
The requirement for an array or rather a list in case of yaml/json to keep its order is asking for trouble.
I would suggest not supporting such an operation for API and require the update of the whole list value.
It is more verbose, true, but it could be made more manageable by using GUI.
E.g. GUI loads whole list, allows to modify selected indexes, but sends the request with a whole list.

Ok, so I assume only a path of key strings.

I uploaded a new version of LCP with the accorded changes.

authors: alexcarrega pszynk

repo: guard-project/lcp


text:
No RSpec output when using growl notifications

I have no RSpec output on the terminal when using guard + guard-rspec + growl
I have installed the growlnotify utility, and the growl gem.
This is my output:
Guard uses Growl to send notifications.
Guard is now watching at '/Users/david/Sites/rails_tutorials/rails_tutorial'
Starting Spork for RSpec
NOTE: Gem.latest_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.latest_load_paths called from /Users/david/.rvm/gems/ruby-1.9.3-p0/gems/spork-0.8.5/lib/spork.rb:112.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /Users/david/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:603.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /Users/david/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:603.
Using RSpec
Loading Spork.prefork block...
Spork is ready and listening on 8989!
Spork server for RSpec successfully started
Guard::RSpec is running, with RSpec 2!
Running all specs
Running: spec/controllers/pages_controller_spec.rb

I don't mind not having RSpec output when tests pass, but when they fail I need to see what happened.
If I disable notifications via :notification => false then yes, I get RSpec output in the terminal window.
If this issue is guard related, please tell me to move it.

That's weird, it's working great for me with ruby_gntp. Can you give your Guardfile please?
It's maybe a bug in the Guard growl notifier. What do you think @netzpirat ?
PS: set notification :off in your Guardfile to disable notifications.

My Guardfile:
guard :spork,
	:cucumber => false,
	:test_unit => false,
	:rspec => true,
	:rspec_env => { 'RAILS_ENV' => 'test' } do
  watch('config/application.rb')
  watch('config/environment.rb')
  watch(%r{^config/environments/.+\.rb$})
  watch(%r{^config/initializers/.+\.rb$})
  watch('Gemfile')
  watch('Gemfile.lock')
  watch('spec/spec_helper.rb') { :rspec }
  watch('test/test_helper.rb') { :test_unit }
  watch(%r{features/support/}) { :cucumber }
end

guard :rspec,
	:version => 2,
	:keep_failed => false,
	:cli => "--color --drb" do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { "spec" }

  # Rails example
  watch(%r{^app/(.+)\.rb$})                           { |m| "spec/#{m[1]}_spec.rb" }
  watch(%r{^app/(.*)(\.erb|\.haml)$})                 { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
  watch(%r{^app/controllers/(.+)_(controller)\.rb$})  { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
  watch(%r{^spec/support/(.+)\.rb$})                  { "spec" }
  watch('config/routes.rb')                           { "spec/routing" }
  watch('app/controllers/application_controller.rb')  { "spec/controllers" }
  # Capybara request specs
  watch(%r{^app/views/(.+)/.*\.(erb|haml)$})          { |m| "spec/requests/#{m[1]}_spec.rb" }
end

And this is my Gemfile:
source 'http://rubygems.org'

gem 'rails', '3.1.3'
gem 'sqlite3'

group :assets do
  gem 'sass-rails',   '~> 3.1.5'
  gem 'coffee-rails', '~> 3.1.1'
  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

group :production do
  gem 'pg'
end

group :development do
  gem 'guard'
  gem 'guard-rspec'
  gem 'guard-spork'
end

group :test, :development do
  gem 'rspec-rails'
  gem 'spork'
  gem 'growl'
end

group :test do
  gem 'rb-fsevent'
  gem 'webrat'
end

platforms :ruby do
  gem 'rb-readline'
end

You can move gem 'growl' to :development group only and completely remove gem 'rb-fsevent' as it's now embed in Guard.

Done. But there is still no output :(

I can't imagine that the Growl notifier has an influence on the RSpec output, because it doesn't fiddle with stdout at all, but I can't verify it since I got a very slow Internet connection here up in the mountains and it's a real pain to download something or even surf GitHub to look at the RSpec/Growl sources. Spending 5 bucks for Growl 1.3 would be cheapest solution, but as alternative you could also start the debugger and tell us what's happening over there...

Which version of guard & guard-rspec are you using?

david$ gem search guard

*** LOCAL GEMS ***

guard (0.10.0)
guard-rspec (0.6.0)
guard-spork (0.5.0)

and you use bundle exec guard ?

Yes, always. In fact I have configured the environment to always execute bundle exec, as described in guard's README :)
But I think I have discovered where was the problem. I suspect it was because of spork, because I have updated it to the latest RC:
gem search spork

*** LOCAL GEMS ***

guard-spork (0.5.0)
spork (0.9.0.rc9)

And now it seems to work with growl notifications enabled:
david$ guard
Guard uses Growl to send notifications.
Guard is now watching at '/Users/david/Sites/rails_tutorials/rails_tutorial'
Starting Spork for RSpec
Using RSpec
Preloading Rails environment
Loading Spork.prefork block...
Spork is ready and listening on 8989!
Spork server for RSpec successfully started
Guard::RSpec is running, with RSpec 2!
Running all specs
Running tests with args ["--color", "--format", "progress", "--format", "Guard::RSpec::Formatter::NotificationRSpec", "--out", "/dev/null", "--require", "/Users/david/.rvm/gems/ruby-1.9.3-p0/gems/guard-rspec-0.6.0/lib/guard/rspec/formatters/notification_rspec.rb", "spec"]...
................

Finished in 2.85 seconds
16 examples, 0 failures
Done.

>

I'm closing the issue as it seems not to be related to guard-rspec.

Great, I'm glad you found how to fix it.

authors: netzpirat pirukire thibaudgg

repo: guard/guard-rspec


text:
Add setIsPlaying callback to YoutubeAtom

What does this change?
This PR adds a setIsPlaying prop to the YoutubeAtomPlayer so we can provide a callback to set an isPlaying state any the parent component using the YoutubeAtom.
Previously we had been using the eventEmitters so send play events to the parent component via a callback, this new prop separates the concerns of tracking and play state.
In DCR we are then able to call this like so:
	const isPlayingCallback = useCallback(
		(x: boolean) => setIsPlaying(x),
		[],
	);

	[...]
	return (
	    	<YoutubeAtom
	    	    setIsPlaying={isPlayingCallback}
	    	    [...]
	    	 />
	  );

How to test
Run storybook and check the console for play events.

Looking through this I'm wondering if this change is needed, could we just use the eventEmitters array here?
As I understand it you need to know when the video is playing or not and you're using the YT state change events to capture this. But we're already firing callbacks when the play, resume, stop events happen so I think you don't need a new callback to be passed in, I think you can either repurpose an existing eventEmitter or pass in a new one?
This would mean you would need to have the logic to decide when a video is playing or not in the parent component but I think this is going to be the case anyway

I think tbh I'm in agreement with you here. This came from some debugging i did with @arelra this morning, and the idea that it would be good to separate responsibility for tracking and these play events. While implementing it I came around to the idea the using the event emitters was both more intuitive and ready made for the job.
Ravi - unless you've any major objections I think we just go with the event emitters? I've tested and it doesn't cause any more re-renders than this setup.

Ravi - unless you've any major objections I think we just go with the event emitters? I've tested and it doesn't cause any more re-renders than this setup.

I have no major objections! Sorry @joecowton1 I didn't see that videoState its own emitter.
My worry was piggy-backing the existing emitters but we're not doing that.
Please go ahead :)

Great stuff, thanks both. Onward with the event emitters :)

Great stuff, thanks both. Onward with the event emitters :)

My brain woke up and remembered one niggle! Now we are setting isPlaying state this will cause YoutubeBlockComponent to re-render and hence the emitter functions to be recreated, which means unstable functions going to useEffects.
This probably works okay as the player won't re-initialise with new emitters but it feels a bit foot-gunny.
Not for now but we should revisit and use useCallback or move the emitters outside of the component to make the functions stable.

repo: guardian/atoms-rendering


text:
Cant run on mac

Hello has anyone tried running it on mac? I'm new to c# and wanted to contribute to this project but im running macOS Sequoia.
When running the development environment: docker compose up -d --build --force-recreate
I get this docker error.
Error response from daemon: Mounts denied:
The path /Microsoft/UserSecretsis not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/desktop/settings/mac/#file-sharing for more info.

I check the docker volume and its not being created. Just wondering if this is an OS issue.
I also run the production environment: docker compose -f docker-compose.production.yml up -d --build --force-recreate
I'm getting this error:
Error response from daemon: Ports are not available: exposing port TCP 172.17.0.1:18443 -> 0.0.0.0:0: listen tcp 172.17.0.1:18443: bind: can't assign requested address
Not sure about this error but I checked my ports there's no open port that uses 18443.

Btw I dont have nginx installed. Should? It's already on docker so I didn't install.

Hello again. Manage to run the dev environment by changing the docker-compose.override.yml volumes from this.
volumes:
      - ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
      - ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro

to this:
volumes:
      - $HOME/Library/Application Support/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
      - $HOME/Library/Application Support/ASP.NET/Https:/home/app/.aspnet/https:ro

@artoodeeto hmm, I don't have mac so I can't test this. Did you manage to fix both dev and prod environment with this change? If so, so a PR please. (You don't have to have nginx installed.)

@gudarzi  Hello, I havent fixed the prod environment yet. im looking for a issue that I could fix and maybe after I could create an issue for the prod environment to be fixed?

authors: artoodeeto gudarzi

repo: gudarzi/SaveHere


text:
few changes

Tested on a esp8266 (nodemcu) with sunezy2800 inverter.

Merging, thank you. 2-bytes layout codes were in the original python library but they never really made sense to me either.

repo: guglicap/arduino-pv


text:
🛑 Sefaz - Rio Grande do Sul is down

In 5d49aa2, Sefaz - Rio Grande do Sul (https://onboardapi.guichepass.com.br/sefaz?code=2) was down:

HTTP code: 500
Response time: 158 ms

Resolved: Sefaz - Rio Grande do Sul is back up in e46e4a6.

repo: guichevirtual/statuspage


text:
guidance==0.1.1 and OpenAI models. Can't run any examples from the tutorial.

The bug
Have openai related errors during execution examples from the tutorial:
guidance==0.1.1
openai==1.3.0
Exception in thread Thread-32 (_start_generator_stream):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.10/dist-packages/guidance/models/_remote.py", line 99, in _start_generator_stream
    for chunk in generator:
  File "/usr/local/lib/python3.10/dist-packages/guidance/models/_openai.py", line 207, in _generator
    raise e
  File "/usr/local/lib/python3.10/dist-packages/guidance/models/_openai.py", line 197, in _generator
    generator = self.client.chat.completions.create(
  File "/usr/local/lib/python3.10/dist-packages/openai/_utils/_utils.py", line 299, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/openai/resources/chat/completions.py", line 598, in create
    return self._post(
  File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 1055, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
  File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 834, in request
    return self._request(
  File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 877, in _request
    raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': "[] is too short - 'messages'", 'type': 'invalid_request_error', 'param': None, 'code': None}}

Here is one of the example to reproduce
gpt = models.OpenAI("gpt-3.5-turbo")

@guidance
def character_maker(lm, id, description, valid_weapons):
    lm += f"""\
    The following is a character profile for an RPG game in JSON format.
    ```json
    {{
        "id": "{id}",
        "description": "{description}",
        "name": "{gen('name', stop='"')}",
        "age": {gen('age', regex='[0-9]+', stop=',')},
        "armor": "{select(options=['leather', 'chainmail', 'plate'], name='armor')}",
        "weapon": "{select(options=valid_weapons, name='weapon')}",
        "class": "{gen('class', stop='"')}",
        "mantra": "{gen('mantra', stop='"')}",
        "strength": {gen('strength', regex='[0-9]+', stop=',')},
        "items": ["{gen('item', list_append=True, stop='"')}", "{gen('item', list_append=True, stop='"')}", "{gen('item', list_append=True, stop='"')}"]
    }}```"""
    return lm

lm = gpt + character_maker(1, 'A nimble fighter', ['axe', 'sword', 'bow'])

gpt-3.5-turbo is a chat model, and thus you need to use the chat api, like this example from the readme:
gpt = models.OpenAI("gpt-3.5-turbo")
with system():
    lm = gpt + "You are a cat expert."

with user():
    lm += "What are the smallest cats?"

with assistant():
    lm += gen("answer", stop=".")

Also, due to the limitations in the API, we cannot really constrain generation on OpenAI models, as this says in the readme:

Remote endpoints that don't have explicit guidance integration are run "optimistically". This means that all the text that can be forced is given to the model as a prompt (or chat context) and then the model is run in streaming mode without hard constrants (since the remote API doesn't support them). If the model ever violates the contraints then the model stream is stopped and we optionally try it again at that point. This means that all the API-supported control work as expected, and more complex controls/parsing that is not supported by the API work if the model stays consistent with the program.

Thus, since we can only validate rather than constrain, you end up having to give more information to the model in the prompt.

authors: burmaxwell marcotcr

repo: guidance-ai/guidance


text:
Unknown publication error

Hello!
I am trying out the publish a simple message to a queue named 'q.images', but Rascal can't seem to find the publication.
Can someone help my figure out what I'm doing wrong?
It's also worth noting that my queue is never created.
ERROR
Unknown publication: pub_media
Broker
const broker = await Broker.create(config);

Publishing:
const rascal = require('rascal'),
    Broker = rascal.BrokerAsPromised,
    log = require('../logUtil'),
    config = require('../../config/rmq/config')

  broker.publish("pub_media", {tag: "test", date: new Date().toISOString()}, "q.images")
                   .then((result)=>{
                       console.log(result);
                   }).catch((err)=>{
                       console.log(err);
                   });

Config
module.exports = {
    "rascal": {
        "vhosts": {

            // Define the name of the vhost
            "v1": {

                "assert": true,
                "connections": [
                    {
                        "url": "amqp://localhost:5672/v1"
                    },
                    {
                        "user": "guest",
                        "password": "guest",
                        "port": 5672,
                        "options": {
                            "heartbeat": 1
                        },
                        socketOptions: {
                            timeout: 1000
                        }
                    }
                ],

                "exchanges": [
                    "v1_ex",
                    "dead_letters" // When retrying fails, messages end up here
                ],
                "queues": {
                    "q.images": {
                        "assert": true,
                        "check": true,
                        "options": {
                            "durable": true,
                            "arguments": {
                                "x-dead-letter-exchange": "dead_letters",
                                "x-dead-letter-routing-key": "error"
                            }
                        }
                    },
                    "q.error": {},
                    "dead_letters:registration_service": {},
                    "q.error": {}
                },
                "bindings": {
                    "v1_ex[q.images] -> q.images":{},
                    "dead_letters[q.error] -> q.error": {}

                },

                // Setup subscriptions
                "subscriptions": {
                    "demo_sub": {
                      "queue": "q.media"
                    },
                },

                // Setup publications
                "publications": {
                    "pub_media":{
                       "vhost": "v1",
                        "exchange": "v1_ex",
                        "routingKey": "q.images",
                        "queue": "q.images",
                        "autoCreated": true,
                        "confirm": true
                    }
                },
                "publicationChannelPools": {
                    "confirmPool": {
                        max: 10,
                        min: 5,
                        autostart: true
                    }
                }
            }
        },
        "recovery": {
            "deferred_retry": [{
                "strategy": "forward",
                "attempts": 10,
                "publication": "retry_in_1m",
                "xDeathFix": true // See https://github.com/rabbitmq/rabbitmq-server/issues/161
            }, {
                "strategy": "nack"
            }],
            "dead_letter": [{
                "strategy": "republish",
                "immediateNack": true
            }]
        },
        "redeliveries": {
            "counters": {
                "shared": {
                    "size": 10,
                    "type": "inMemoryCluster"
                }
            }
        },
    }
}`

Hi @pepie,
Thanks for reporting. There are a few things odd about your code sample.

I'm unclear where you create the broker. Your publish code looks like it requires rascal etc, which would be unnecessary if you've already set it up elsewhere in your app.

You have a connection array with two connections, the first with a url, the second with individual properties

You have a queue with both assert and check. It only makes sense to have one of these

Your publication config specifies a routing key, but so does your call to publish. The routing key is the name of the queue which would be unusual (you can just publish directly to a queue if this is what you want).

Your publication config specifies an exchange and a queue. It only makes sense to have one of these

I suspect the cause of your problem is that you aren't instantiating the broker with the correct config - if the queue isn't correctly created, and rascal doesn't know about the publication, and if the initialisation hasn't errored because the publication has both a queue and an exchange this is the mostly likely cause.
There's a lot of config in the above for things you don't need for the minimal working example, so my recommendation is to start with a simpler test program and go from there. The simple example is a reasonable place to start.
Hope that helps.

@cressie176 thanks for the reply.
Sorry about the confusion, some of the conflicting settings are the results of multiple attempts. I will clean it up and try again.

Hi @pepie,
DId you have any luck?

repo: guidesmiths/rascal

license: isc


text:
prefetch: set global flag in config.js

I'd like to know if it is possible to set global flag in prefetch setting from amqplib[1] and if so, how ?
[1] http://www.squaremobius.net/amqp.node/channel_api.html#channel_prefetch

That would be awesome, thanks!

Hi @mced. I was looking into this more closely. Making the configure support global is no problem, but I was wondering how it would help you. Rascal creates a new channel per subscription, so there will always be exactly 1 consumer per channel.
If I understand the purpose of global it was to set the prefetch count per channel, rather than per consumer, but since this is a one-to-one mapping I don't see it would make any difference.

If I understand correctly, prefetch global flag set to true will apply the prefetch count to channel while set to false will apply prefetch count to consumer.
Indeed you're right if Rascal creates a new channel per susbscription, that won't change anything...


text:
Update nimbus-class-v-wing.json

Add images from FFG articles

Thanks for adding all these images @J1mBob !


text:
PermissionError on Windows when deleting empty log file

On Windows 10 64 bit Python 3.9, running tryceratops displays the violations that tryceratops finds, but then a permission error is thrown when the program tries to delete the .tryceratops-errors.log empty file.
The full traceback follows:
Traceback (most recent call last):
  File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\rodri\AppData\Roaming\Python\Python39\site-packages\tryceratops\__main__.py", line 56, in <module>
    main()
  File "C:\Users\rodri\AppData\Roaming\Python\Python39\site-packages\tryceratops\__main__.py", line 52, in main
    entrypoint()
  File "C:\Users\rodri\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\rodri\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "C:\Users\rodri\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\rodri\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "C:\Users\rodri\AppData\Roaming\Python\Python39\site-packages\tryceratops\__main__.py", line 47, in entrypoint
    interface.present_and_exit()
  File "C:\Users\rodri\AppData\Roaming\Python\Python39\site-packages\tryceratops\interfaces.py", line 75, in present_and_exit
    self._delete_empty_logs()
  File "C:\Users\rodri\AppData\Roaming\Python\Python39\site-packages\tryceratops\interfaces.py", line 70, in _delete_empty_logs
    os.remove(log_file_path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\xxx/.tryceratops-errors.log'

tryceratops was invoked with the command python -m tryceratops my_code_file.py.

Nice! Thank you for reporting.
It's curious that Windows allows to create, but not delete ha

authors: RojerGS guilatrova

repo: guilatrova/tryceratops


text:
test/release

Fix: sync
Feat: changelog

:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


text:
The download link on the website points to a google drive file that google is blocking by policy

Describe the bug
Clicking on the download link results in a Google error message
To Reproduce
Steps to reproduce the behavior:

Go to the bottom of the https://webside.app page
Click on 'Download button
Google drive throws an error
See error: We're sorry. You can't access this item because it is in violation of our Terms of Service.

Desktop (please complete the following information):

OS: MacOS 15.1.1
Browser Safari
Version 18.1.1

Fixed. It points to the latest release now.

authors: andyburnett guillermoamaral

repo: guillermoamaral/Webside


text:
npm install fails

Not sure why you closed my original issue. Seems like a 'works for me' situation, but obviously, a lot of people are having the same issue:
https://github.com/gulp-sourcemaps/gulp-sourcemaps/issues/306
I followed all your recommendations from other people's tickets but still unable to install.

Your environment is messed up. This isn't the place to track that sort of issue. Scoped modules have been out for 2 years. Continued issues will result in a ban.

Sure, let's just ignore everyone. Maybe they'll go away.

authors: dmitrybelyakov phated

repo: gulp-sourcemaps/gulp-sourcemaps


text:
Get error: TypeError: isPlainObject is not a function

Before you open this issue, please complete the following tasks:

[x] use the search bar at the top of the page to search this repository for similar issues or discussions that have already been opened.
[x] if you are looking for help from the gulp team or community, open a discussion.
[x] if you think there is a problem with the plugin you're using, open a discussion.
[x] if you think there is a bug in our code, open this issue.

What were you expecting to happen?
When I use the gulp command I expect it to work.
What actually happened?
When I use the gulp command, the program reports an error and exits abnormally.
Please give us a sample of your gulpfile

////////////////////////////////
// Setup
////////////////////////////////

// Gulp and package
const {src, dest, parallel, series, watch} = require('gulp');
const pjson = require('./package.json');

// Plugins
const autoprefixer = require('autoprefixer');
const browserSync = require('browser-sync').create();

const concat = require('gulp-concat');

const cssnano = require('cssnano');
const imagemin = require('gulp-imagemin');
const pixrem = require('pixrem');
const plumber = require('gulp-plumber');
const postcss = require('gulp-postcss');
const reload = browserSync.reload;
const rename = require('gulp-rename');
const sass = require('gulp-sass');
const spawn = require('child_process').spawn;
const uglify = require('gulp-uglify-es').default;

const compilerPackage = require('google-closure-compiler');
const closureCompiler = compilerPackage.gulp();
CLOSURE_COMPILER_CONTRIB_PATH = './node_modules/google-closure-compiler/contrib'; // a bug made it has to be that
const sourcemaps = require('gulp-sourcemaps');
const closureDeps = require('gulp-google-closure-deps');
const gulpDebug = require('gulp-debug');

// Relative paths function
function pathsConfig(appName) {
    this.app = `./${pjson.name}`;
    const vendorsRoot = 'node_modules';

    return {

        bootstrapSass: `${vendorsRoot}/bootstrap/scss`,
        vendorsJs: [
            `${vendorsRoot}/jquery/dist/jquery.slim.js`,
            `${vendorsRoot}/popper.js/dist/umd/popper.js`,
            `${vendorsRoot}/bootstrap/dist/js/bootstrap.js`,
        ],

        app: this.app,
        templates: `${this.app}/templates`,
        css: `${this.app}/static/css`,
        sass: `${this.app}/static/sass`,
        fonts: `${this.app}/static/fonts`,
        images: `${this.app}/static/images`,
        js: `${this.app}/static/js`,
    }
}

var paths = pathsConfig();

////////////////////////////////
// Tasks
////////////////////////////////

// Styles autoprefixing and minification
function styles() {
    var processCss = [
        autoprefixer(), // adds vendor prefixes
        pixrem(),       // add fallbacks for rem units
    ];

    var minifyCss = [
        cssnano({preset: 'default'})   // minify result
    ];

    return src(`${paths.sass}/project.scss`)
        .pipe(sass({
            includePaths: [

                paths.bootstrapSass,

                paths.sass
            ]
        }).on('error', sass.logError))
        .pipe(plumber()) // Checks for errors
        .pipe(postcss(processCss))
        .pipe(dest(paths.css))
        .pipe(rename({suffix: '.min'}))
        .pipe(postcss(minifyCss)) // Minifies the result
        .pipe(dest(paths.css))
}

// Closure Library dependency file generation
function scriptsDeps() {
    return src([
        `${paths.js}/**/*.js`,
        `!${paths.js}/*.min.js`,
        `!${paths.js}/deps.js`,
        `!${paths.js}/vendors.js`,
        // `!${paths.js}/echarts.min.js`,
        `!${paths.js}/ext/*.js`,
    ], {base: paths.js})
        .pipe(gulpDebug({title: 'selected files: '}))
        .pipe(closureDeps({'closurePath': './node_modules/google-closure-library/closure/goog'}))
        .pipe(rename('deps.js'))
        .pipe(dest(paths.js))
}

// Javascript minification with Closure Compiler
function scriptsCompile() {
    return src([
        `${paths.js}/**/*.js`,
        './node_modules/google-closure-library/closure/goog/**/*.js',
        '!./node_modules/google-closure-library/closure/goog/**/*_test.js',
        `!${paths.js}/*.min.js`,
        `!${paths.js}/vendors.js`,
        // `!${paths.js}/echarts.min.js`,
        `!${paths.js}/ext/*.js`,
    ], {base: paths.js})
        //.pipe(gulpDebug({title: 'selected files: '}))
        .pipe(sourcemaps.init())
        .pipe(closureCompiler({
            externs: [CLOSURE_COMPILER_CONTRIB_PATH + '/externs/jquery-3.3.js',
                `${paths.js}/ext/quill.ext.js`,
                `${paths.js}/ext/local_externs.js`,
            ],
            dependency_mode: 'STRICT',
            entry_point: 'goog:tpub.main',
            compilation_level: 'ADVANCED',
            warning_level: 'VERBOSE',
            language_in: 'ECMASCRIPT_2019',
            language_out: 'ECMASCRIPT5_STRICT',
            output_wrapper: '(function(){%output%}).call(this)',
            js_output_file: 'project.min.js'
        }, {
            platform: ['native', 'java', 'javascript']
        }))
        .pipe(sourcemaps.write('/')) // gulp-sourcemaps automatically adds the sourcemap url comment
        .pipe(dest(paths.js))
}

const scripts = series(scriptsDeps, scriptsCompile);

// Vendor Javascript minification
function vendorScripts() {
    return src(paths.vendorsJs)
        .pipe(sourcemaps.init())
        .pipe(concat('vendors.js'))
        .pipe(dest(paths.js))
        .pipe(plumber()) // Checks for errors
        .pipe(uglify()) // Minifies the js
        .pipe(rename({suffix: '.min'}))
        .pipe(sourcemaps.write('/')) // gulp-sourcemaps automatically adds the sourcemap url comment
        .pipe(dest(paths.js))
}

// Generate all assets
const generateAssets = parallel(
    styles,
    scripts,
    vendorScripts
);

exports["generate-assets"] = generateAssets;

Terminal output / screenshots

$ gulp generate-assets
/app/node_modules/copy-props/index.js:16
  if (isPlainObject(fromto)) {
      ^
TypeError: isPlainObject is not a function
    at module.exports (/app/node_modules/copy-props/index.js:16:7)
    at mergeConfigToCliFlags (/app/node_modules/gulp/node_modules/gulp-cli/lib/shared/config/cli-flags.js:16:10)
    at Liftoff.<anonymous> (/app/node_modules/gulp/node_modules/gulp-cli/index.js:100:12)
    at Liftoff.prepare (/app/node_modules/liftoff/index.js:173:6)
    at run (/app/node_modules/gulp/node_modules/gulp-cli/index.js:92:7)
    at Object.<anonymous> (/app/node_modules/gulp/bin/gulp.js:3:20)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! branchly@0.1.0 build: `gulp generate-assets`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the branchly@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-07-31T16_46_45_842Z-debug.log

Please provide the following information:

OS & version [e.g. MacOS Catalina 10.15.4]: node:10-stretch-slim docker image
node version (run node -v): node:10-stretch-slim docker image
npm version (run npm -v): node:10-stretch-slim docker image
gulp version (run gulp -v): 4.0.2

Additional information

It looks like gulp depends on gulp-cli, and gulp-cli depends on copy-props, when I downgraded copy-props to 2.0.4 everything works as usual, is it related to the 2.0.5 update is-plain-object version?

@howiezhao Yes, copy-props@>=2.0.5 uses is-plain-object@^5.0.0. (copy-props@<=2.0.4 uses is-plain-object@^2.0.1)

@howiezhao I tried your gulpfile.js, and gulp is work normally.
If you use package-lock.json, please npm install again after removing it.
devDependencies of package.json is as follows:
{
   ...
  "devDependencies": {↲
    "autoprefixer": "^10.4.8",↲
    "browser-sync": "^2.27.10",↲
    "cssnano": "^5.1.12",↲
    "google-closure-compiler": "^20220719.0.0",↲
    "gulp": "^4.0.2",↲
    "gulp-concat": "^2.6.1",↲
    "gulp-debug": "^4.0.0",↲
    "gulp-google-closure-deps": "0.0.5",↲
    "gulp-imagemin": "^7.1.0",↲
    "gulp-plumber": "^1.2.1",↲
    "gulp-postcss": "^9.0.1",↲
    "gulp-rename": "^2.0.0",↲
    "gulp-sass": "^5.1.0",↲
    "gulp-sourcemaps": "^3.0.0",↲
    "gulp-uglify-es": "^3.0.0",↲
    "pixrem": "^5.0.0",↲
    "postcss": "^8.4.14"↲
  }↲
}

And the result is as follows: (gulp-sass causes an error)
$ node -v
v10.23.0
$ npm -v
6.14.8
$ npx gulp generate-assets
[22:25:33] Using gulpfile ~/home/play/daily/20220801/gulpjs/trial/gulpfile.js
[22:25:33] Starting 'generate-assets'...
[22:25:33] Starting 'styles'...
[22:25:33] Starting 'vendorScripts'...
Error in plugin "gulp-sass"
Message:

gulp-sass no longer has a default Sass compiler; please set one yourself.
...

Going to close this as, like @sttk stated, it's a dependency lockfile issue.

authors: howiezhao phated sttk

repo: gulpjs/copy-props


text:
Fix calculation of projection direction in project()

This fixes the fix in 1d3de5ca693a345adef5affa320b8c877e79b5f9, which contained the following diff.
The diff changed >0 to <0, which is indeed fixing a problem with the code.
However, it also changed to_local_coords to from_local_coords, which is wrong and breaks the code, e.g. when projecting against the XY plane. In this case, some objects are extended away from the projection target, leading to an empty intersection and thus, a crash.
diff --git a/src/build123d/operations_generic.py b/src/build123d/operations_generic.py
index 4589742..6600153 100644
--- a/src/build123d/operations_generic.py
+++ b/src/build123d/operations_generic.py
@@ -766,15 +766,13 @@ def project(
     projected_shapes = []
     obj: Shape
     for obj in face_list + line_list:
-        # obj_to_screen = (workplane.origin - obj.center()).normalized()
         obj_to_screen = (target.center() - obj.center()).normalized()
-        if workplane.to_local_coords(obj_to_screen).Z > 0:
+        if workplane.from_local_coords(obj_to_screen).Z < 0:
             projection_direction = -workplane.z_dir * projection_flip
         else:
             projection_direction = workplane.z_dir * projection_flip
@@ -792,7 +790,7 @@ def project(
     projected_points = []
     for pnt in point_list:
         pnt_to_target = (workplane.origin - pnt).normalized()
-        if workplane.to_local_coords(pnt_to_target).Z > 0:
+        if workplane.from_local_coords(pnt_to_target).Z < 0:
             projection_axis = -Axis(pnt, workplane.z_dir * projection_flip)
         else:
             projection_axis = Axis(pnt, workplane.z_dir * projection_flip)

Minimal example where this fixes something that was previously broken:
from build123d import *
box = Location((0,25,0)) * Rot((10,10,10)) * Box(10,25,30)
box2d = project(box.faces(), Plane.XZ)

however, i've seen that this change here breaks another test which uses the builder api, oh boi...
@gumyr any ideas about that one? It strongly seems to me that to_local_coords is the right one, not from_ but hm

99 bugs in the code, track 1 down, patch one around, 182 little bugs in the code :/...
So I found and fixed another issue, which fixed that failing test, but now another test is broken...
this time it's
    def test_project_to_sketch2(self):
        with BuildPart() as test2:
            Box(4, 4, 1)
            with BuildSketch(Plane.XY.offset(0.1)) as c:
                Rectangle(1, 1)
            project()
            extrude(amount=1)
            self.assertAlmostEqual(test2.part.volume, 4 * 4 * 1 + 1 * 1 * 1, 5)

and at this point, I'm not sure if the test expectation is correct. Frankly, I don't get it what's supposed to happen here:

project() correctly projects the Rect within the Box onto its outside:
since mode == ADD, when project() returns, the pink projection gets added (with a union-operation / +) to the yellow base part. This is a no-op, because the yellow base part is already a proper superset of the pink projection (by definition.)
I am not sure what the extrude() operation is suppose to do. All there is on the stack is a box that has been applied a no-op to.

@gumyr pls halp :D


text:
ValueError: Extra data:

When i try to run the bot i get the below output.
Train based on the english corpus
... chatbot.train("chatterbot.corpus.english")
Traceback (most recent call last):
File "", line 2, in
File "chatterbot/trainers.py", line 117, in train
trainer.train(pair)
File "chatterbot/trainers.py", line 82, in train
statement = self.get_or_create(text)
File "chatterbot/trainers.py", line 25, in get_or_create
statement = self.storage.find(statement_text)
File "chatterbot/storage/jsonfile.py", line 42, in find
values = self.database.data(key=statement_text)
File "/Users/yuvikakoul/anaconda/lib/python2.7/site-packages/jsondb/db.py", line 98, in data
return self._get_content(key)
File "/Users/yuvikakoul/anaconda/lib/python2.7/site-packages/jsondb/db.py", line 52, in _get_content
obj = self.read_data(self.path)
File "/Users/yuvikakoul/anaconda/lib/python2.7/site-packages/jsondb/file_writer.py", line 15, in read_data
obj = decode(content)
File "/Users/yuvikakoul/anaconda/lib/python2.7/site-packages/jsondb/compat.py", line 32, in decode
return json_decode(value, encoding='utf-8', object_hook=json_util.object_hook)
File "/Users/yuvikakoul/anaconda/lib/python2.7/json/init.py", line 352, in loads
return cls(encoding=encoding, **kw).decode(s)
File "/Users/yuvikakoul/anaconda/lib/python2.7/json/decoder.py", line 367, in decode
raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 1 column 1026 - line 1 column 158860 (char 1025 - 158859)

i cant figure out what the problem is. I tried to reinstall the bot but the problem still remained.
Please help me out here.

Currently chatterbot doesn't tested on anaconda, please try with Python2 or Python3 variants,  If it reproduces please feel to reopen this issue.

367             raise ValueError(errmsg("Extra data", s, end, len(s)))
368         return obj
369
ValueError: Extra data: line 1 column 3 - line 1 column 223466 (char 2 - 223465)

I can't seem to recreate this error on my system. If anyone can create a training test case that fails when it should pass for this data it would help to resolve the error. Until then there isn't much I can do because I don't have a way to test or recreate this.

I encountered same issue running on python 2.7.
What is the location of the  english corpa JSON file ?
-PL

Found 20 JSON files in <>python\v2.7\Lib\site-packages\chatterbot_corpus\data\english .
Which file @BlogBlocks ?

I was on python2.7 while I had that error, later using virtualenv tried testing on python3.6 and it worked fine without making any change to any JSON file. I am on a 64 bit machine/os.

@lashkarpalash What version of ChatterBot did you encounter this issue with?

been away, its v 0.6.3
On Thu, Jun 29, 2017 at 6:14 PM, Gunther Cox notifications@github.com
wrote:

@lashkarpalash https://github.com/lashkarpalash What version of
ChatterBot did you encounter this issue with?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gunthercox/ChatterBot/issues/760#issuecomment-312123280,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC7V6rsrFp6IQtFn3m_D3Am_gmUJIA7uks5sJCHFgaJpZM4NlAC_
.

current chatterbot version is 0.7.0, could you try to upgrade to latest version and let me know
pip install --upgrade chatterbot

authors: BlogBlocks gunthercox lashkarpalash sanyam8182 vkosuri

repo: gunthercox/ChatterBot


text:
exception on & when used in password command

When using ampersand there is a problem and the programme breaks. Anything after the ampersand being specified are there in a username or password will break.  may affect everything.  also on mac with a newly created kijiji accnt will not post folder or post anything.   repost is working though!  could be related to & character in password or username.
suggestion:  better string tokenization?

oh nm its a bash problem

repo: guoarthur/Kijiji-Repost-Headless


text:
Browserify error

As soon as i try to require it, i get this:
Browserify Failed!: Unexpected token

/public/node_modules/vue-smart-table/src/components/SmartTable.vue:1
<template>
^
ParseError: Unexpected token

I'm not convinced this is on your side though. I'm using Vueify and Laravel Elixir. It could be something about requiring a third-party Vueify component.

I'm not familiar with this particular toolchain but I suspect vueify is not loaded correctly because the error appears to be the <template> tag.
If I understand correctly Vueify should be in charge of parsing the .vue files. Do you have other .vue files that parse correctly?

I do, but they're not npm dependencies. They're all local.
Snippet:
// Vueify Objects (these work)
import Modal from './components/Modal.vue'
import FlashMessage from './components/FlashMessage.vue'
...
// Yours (doesn't work)
import SmartTable from 'vue-smart-table'

import SmartTable from 'vue-smart-table' points to scr/components/SmartTable.vue. It maybe something wrong with the Vueify configuration. Can you check with other components? Like vue-strap?

I will close this issue, for now, feel free to share what you discovered even if it was not related to my component.

authors: gurghet jackmcdade

repo: gurghet/vue-smart-table


text:
onde está os slides da aula 4???

Procurei os slides da aula 04 e não encontrei...

testando , fazendo o curso de Git ### ### Github****

authors: NandoBrtt biancavoigt

repo: gustavoguanabara/git-github


text:
Quanto tempo leva para atualizar o site ja hospedado?

Fiz o site com o VSC e mudei uma linha, mas não esta mudando no site.

Você realizou os commits e push the origin ?

Olá Jaqueline você pode usar Github page em questão de segundos já está atualizado, fechar como concluído está isso Hello, dear! managed to solve? comment there close as resolved if yes 🎉✨

repo: gustavoguanabara/projeto-site


text:
请求优化一下网页端。

大佬，可以优化一下让网页端的直播间在新标签页打开吗？而不是只能在本标签页跳转。感谢大佬的聚合网站，很方便，期待能加入更多网站，比如YY直播。

我有空再整

已添加


text:
PHP Fatal Error when retrieving certain pages.

Guzzle version(s) affected: 7.8.0
PHP version: 8.1.17
cURL version: 7.68.0
Description
When trying to retrieve an Instagram profile page, it returns a "429 Too Many Requests" response that causes a PHP Fatal error, as shown below.  I realize scraping Instagram is not recommended, but using here to demonstrate the issue I found.
mod_fcgid: stderr: PHP Fatal error:  Uncaught GuzzleHttp\Exception\ClientException: Client error: GET https://www.instagram.com/facebook/ resulted in a 429 Too Many Requests response in /home/user/.php/composer/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
How to reproduce
Attempt to get an Instagram Profile, such as https://www.instagram.com/facebook/.
Full PHP code on the page that calls Guzzle:
$url1 = 'https://www.instagram.com/facebook/';
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', $url1);
echo $response->getStatusCode(); // 200
echo $response->getHeaderLine('content-type'); // 'application/json; charset=utf8'
Full Stack Trace
mod_fcgid: stderr: PHP Fatal error:  Uncaught GuzzleHttp\Exception\ClientException: Client error: GET https://www.instagram.com/facebook/ resulted in a 429 Too Many Requests response in /home/user/.php/composer/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
mod_fcgid: stderr: Stack trace:
mod_fcgid: stderr: #0 /home/user/.php/composer/vendor/guzzlehttp/guzzle/src/Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
mod_fcgid: stderr: #1 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
mod_fcgid: stderr: #2 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
mod_fcgid: stderr: #3 /home/user/.php/composer/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
mod_fcgid: stderr: #4 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true)
mod_fcgid: stderr: #5 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn()
mod_fcgid: stderr: #6 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending()
mod_fcgid: stderr: #7 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList()
mod_fcgid: stderr: #8 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending()
mod_fcgid: stderr: #9 /home/user/.php/composer/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Promise\Promise->wait()
mod_fcgid: stderr: #10 /home/user/mysitename.com/guzzletest.php(8): GuzzleHttp\Client->request('GET', 'https://www.ins...')
mod_fcgid: stderr: #11 {main}
mod_fcgid: stderr:   thrown in /home/user/.php/composer/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113

Guzzle is behaving correctly here. I don't know what the purpose of the issue was?

Ah, ok, thanks.  I'll check the documentation to see what all responses will cause Guzzle to throw a fatal PHP error and see how to work around them.  Thanks!

The fatal error is occurring simply because there is an uncaught exception, as per usual PHP behaviour.

Thank you Graham... I did indeed find what I was looking for in the documentation (http_errors => false).  I know I know... RTFM.

authors: GrahamCampbell triggerx

repo: guzzle/guzzle


text:
The path in base_url is not used to build the final URL

$client = new Client([
    'base_url' => 'http://server.net/services',
]);
$client->post(
    '/files', [
    // ...
    ]
);

=> request is not issued to http://service.net/services/files but to http://service.net/services/files
I can reproduce that behavior against the 5.2.0 and the dev-master.

Something is wrong here....
http://service.net/services/files but to http://service.net/services/files
links looks equal to me.

I think that was a typo. The result I get from that is http://service.net/files. The issue for me stems from line 564 in src/Url.php... it looks like the combine function is not using the object base path + the incoming url path. I don't know if this is a solution but I changed that line to:
    $this->path . $path,

While this worked in my limited example, it hasn't been tested overall.

Ok, i think you both got the point, sorry for the typo!

Guzzle follows RFC 3986 when resolving a base URI and a relative URI. It does exactly what a browser would do.
If you add a trailing slash to your base URL and remove the trailing slash from your relative URL, then it will do what you want.
<?php
require 'vendor/autoload.php';

use GuzzleHttp\Url;

$base = Url::fromString('http://server.net/services/');
echo "Leading slash: " . $base->combine('/files') . "\n";
echo "No slash: " . $base->combine('files') . "\n";

Outputs:
Leading slash: http://server.net/files
No slash: http://server.net/services/files

My wrong, I though it was just a prepend string. It actually make sense to me as the config parameter is named base_url, and it should have gave me the right clue. It does what it says it does.
Don't know if it worth a bit more documentation for people like me that don't get it immediatly when referring the RFC.
And ... thank you for the project and support!

authors: Warxcell chocopoche mtdowling rhys-mcguckin


text:
Can't send file from stream_type MEMORY

PHP version: 7.3.27 (hint: php --version)
Description
Undefined index: uri in /app/vendor/guzzlehttp/psr7/src/Utils.php:320

\stream_get_meta_data($resource) return
array (
  'timed_out' => false,
  'blocked' => true,
  'eof' => false,
  'stream_type' => 'MEMORY',
  'mode' => 'rb',
  'unread_bytes' => 0,
  'seekable' => true,
)

How to reproduce

read 0 bytes from bytea field of table with ActiveRecord yii2
(as resource from \PDOStatement::execute(); \PDOStatement::fetch(); see https://www.php.net/manual/en/class.pdostatement.php )
send as multipart file this resource

Possible Solution

                $metaData = \stream_get_meta_data($resource);
                if (array_key_exists('uri', $metaData) && $metaData['uri'] === 'php://input') {

or
                if (\stream_get_meta_data($resource)['uri'] ?? '' === 'php://input') {

Additional context

Fixed in 1.8.2 and 2.0.0.

authors: GrahamCampbell bscheshirwork


text:
stream_for docblock: $resource accepts Iterator

As per function's code - stream_for accepts Iterator, which is not mentioned in acceptable types for $resource

Cool, thank you!

authors: sagikazarmark sserbin


text:
建议加投票代理的功能

很多普通用户平常是不怎么看的，把投票代理给详细的人，可以更好的利用起来。
还有松散社区的，用投票代理更方便。
Albert：或者某个项目有多个帐户想投票，也可以设置投票代理，由一个帐户发起就可以了。

已经发布到测试网络, 欢迎体验和反馈 testnet.wallet.gxchain.org

authors: LiuXuFei lanhaoxiang

repo: gxchain/gxchain-light


text:
🛑 Undertale社区档案馆 - UTCARC is down

In 9593e99, Undertale社区档案馆 - UTCARC (https://arc.utcwiki.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Undertale社区档案馆 - UTCARC is back up in 10566a6 after 16 minutes.

repo: gzombiejun/upptime


text:
Make "make testperf" benchmarks visible online/live from jenkins output

https://pv.github.io/numpy-bench/
Need jenkins to do make testperf.  I know it was doing this as part of some separate branch, but should be part of normal branch and like h2oai has benchmarks doable but doesn't cause build to fail.

But not always done.  Should be able to trigger with #benchmark or similar.


text:
CUDA out of memory error when querying All documents

I am getting a cuda out of memory error when querying against All data in a collection, the collection is large and has more data than what can fit in the context, I'd expect h2ogpt to take enough data to fill the context when querying against the entire collection, is there an option for that?
querying a selection from a collection

the selected files are smaller than the model context of 16k

querying against the entire collection

the entire collection size comes to larger than 16k tokens

full run command

docker run \
   --gpus all \
   --runtime=nvidia \
   --shm-size=2g \
   -p 7860:7860 \
   -v /etc/passwd:/etc/passwd:ro \
   -v /etc/group:/etc/group:ro \
   -u $(id -u):$(id -g) \
   -v "${HOME}"/h2ogpt_mistral/.cache:/workspace/.cache \
   -v "${HOME}"/h2ogpt_mistral/save:/workspace/save \
   -v "${HOME}"/h2ogpt_mistral/user_path:/workspace/user_path \
   -v "${HOME}"/h2ogpt_mistral/db_dir_UserData:/workspace/db_dir_UserData \
   -v "${HOME}"/h2ogpt_mistral/users:/workspace/users \
   -v "${HOME}"/h2ogpt_mistral/db_nonusers:/workspace/db_nonusers \
   -v "${HOME}"/h2ogpt_mistral/auth:/workspace/auth \
   -v "${HOME}"/h2ogpt_mistral/assets:/workspace/assets \
   gcr.io/vorvan/h2oai/h2ogpt-runtime:$IMAGE_TAG /workspace/generate.py \
   --openai_server=False \
   --h2ogpt_api_keys="/workspace/auth/api_keys.json" \
   --use_gpu_id=False \
   --score_model=None \
   --prompt_type=open_chat \
   --base_model=TheBloke/openchat_3.5-16k-AWQ \
   --compile_model=True \
   --use_cache=True \
   --use_flash_attention_2=True \
   --attention_sinks=True \
   --sink_dict="{'num_sink_tokens': 4, 'window_length': $CONTEXT_LENGTH }" \
   --save_dir='/workspace/save/' \
   --user_path='/workspace/user_path/' \
   --langchain_mode="UserData" \
   --langchain_modes="['UserData', 'LLM']" \
   --visible_langchain_actions="['Query']" \
   --visible_langchain_agents="[]" \
   --use_llm_if_no_docs=True \
   --max_seq_len=$CONTEXT_LENGTH \
   --enable_ocr=True \
   --enable_tts=False \
   --enable_stt=False

FYI the issue doesn't have directly to do with largeness of the collection.  That doesn't cause GPU OOM.
It's probably caused by too large context that your GPU can't handle.  You can try reducing several related things:
top_k_docs (smaller than default of 10)
max_input_tokens (set to some amount, e.g. 2048 instead of default that is based upon top_k_docs or model limit)
max_total_input_tokens (matters for summarization, while max_input_tokens is per-context use)

Will close for now, feel free to ask more.

the error still occurs after setting top_k_docs=1 and max_input_tokens=10024, max_total_input_tokens=10024 despite being on query mode, for reference the context size is 16384. here is a full log

Traceback (most recent call last):
  File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/queueing.py", line 495, in call_prediction
    output = await route_utils.call_process_api(
  File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/route_utils.py", line 230, in call_process_api
    output = await app.get_blocks().process_api(
  File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/blocks.py", line 1590, in process_api
    result = await self.call_function(
  File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/blocks.py", line 1188, in call_function
    prediction = await utils.async_iteration(iterator)
  File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/utils.py", line 502, in async_iteration
    return await iterator.__anext__()
  File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/utils.py", line 495, in __anext__
    return await anyio.to_thread.run_sync(
  File "/h2ogpt_conda/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/h2ogpt_conda/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "/h2ogpt_conda/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/utils.py", line 478, in run_sync_iterator_async
    return next(iterator)
  File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/utils.py", line 661, in gen_wrapper
    response = next(iterator)
  File "/workspace/src/gradio_runner.py", line 4454, in bot
    for res in get_response(fun1, history, chatbot_role1, speaker1, tts_language1, roles_state1,
  File "/workspace/src/gradio_runner.py", line 4349, in get_response
    for output_fun in fun1():
  File "/workspace/src/gen.py", line 3781, in evaluate
    for r in run_qa_db(
  File "/workspace/src/gpt_langchain.py", line 5489, in _run_qa_db
    answer = yield from run_target_func(query=query,
  File "/workspace/src/gpt_langchain.py", line 5646, in run_target
    raise thread.exc
  File "/workspace/src/utils.py", line 472, in run
    self._return = self._target(*self._args, **self._kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/base.py", line 316, in __call__
    raise e
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/base.py", line 310, in __call__
    self._call(inputs, run_manager=run_manager)
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/combine_documents/base.py", line 136, in _call
    output, extra_return_dict = self.combine_docs(
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/combine_documents/stuff.py", line 244, in combine_docs
    return self.llm_chain.predict(callbacks=callbacks, **inputs), {}
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 293, in predict
    return self(kwargs, callbacks=callbacks)[self.output_key]
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/base.py", line 316, in __call__
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/base.py", line 310, in __call__
    self._call(inputs, run_manager=run_manager)
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 103, in _call
    response = self.generate([inputs], run_manager=run_manager)
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 115, in generate
    return self.llm.generate_prompt(
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 521, in generate_prompt
    return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 671, in generate
    output = self._generate_helper(
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 558, in _generate_helper
    raise e
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 545, in _generate_helper
    self._generate(
  File "/workspace/src/gpt_langchain.py", line 1719, in _generate
    rets = super()._generate(prompts, stop=stop, run_manager=run_manager, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/langchain_community/llms/huggingface_pipeline.py", line 203, in _generate
    responses = self.pipeline(batch_prompts)
  File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/pipelines/text_generation.py", line 219, in __call__
    return super().__call__(text_inputs, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1143, in __call__
    outputs = list(final_iterator)
  File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/pipelines/pt_utils.py", line 124, in __next__
    item = next(self.iterator)
  File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/pipelines/pt_utils.py", line 125, in __next__
    processed = self.infer(item, **self.params)
  File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1068, in forward
    model_outputs = self._forward(model_inputs, **forward_params)
  File "/workspace/src/h2oai_pipeline.py", line 260, in _forward
    return self.__forward(model_inputs, **generate_kwargs)
  File "/workspace/src/h2oai_pipeline.py", line 296, in __forward
    generated_sequence = self.model.generate(input_ids=input_ids, attention_mask=attention_mask, **generate_kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/generation/utils.py", line 1479, in generate
    return self.greedy_search(
  File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/generation/utils.py", line 2340, in greedy_search
    outputs = self(
  File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/models/mistral/modeling_mistral.py", line 1154, in forward
    outputs = self.model(
  File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/awq/modules/fused/model.py", line 101, in forward
    h, _, past_key_value = layer(
  File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/h2ogpt_conda/lib/python3.10/site-packages/awq/modules/fused/block.py", line 65, in forward
    attn_output, _, past_key_value = self.attn.forward(
  File "/h2ogpt_conda/lib/python3.10/site-packages/awq/modules/fused/attn.py", line 200, in forward
    scores = torch.matmul(xq, keys.transpose(2, 3)) / math.sqrt(self.head_dim)

Keep decreasing max_input_tokens until it works.  But top_k_docs of 1 should also have worked.
You can set --verbose=True and see what is being passed as the real prompt.  See what is going on.


text:
Service Change Indication

Hello,
I have troubles with Android phones and bonded ESP32 when adding/removing characteristics between 2 firmware releases (incorrect data reads, no answer on some characteristics ...)
It seems a common issue, and I found a lot of users with the same troubles.
I tried everything on the "client side" (Android cache refresh hack ... since it's not a public API), but it still doesn't work.
I found that BLE seems to already include "a flag" to indicate the client it needs to refresh his cache... the "Service Change Indication".
It doesn't seems NimBLEServer::serviceChanged() does the same thing (and it's not in the public API).
https://github.com/h2zero/NimBLE-Arduino/blob/release/1.4/src/NimBLEServer.cpp#L168
Espressif seems to offer the API :
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/bluetooth/esp_gatts.html#_CPPv444esp_ble_gatts_send_service_change_indication13esp_gatt_if_t13esp_bd_addr_t
Could it be possible to offer an API for this in NimBLE please ?
More info here :
https://stackoverflow.com/questions/62155016/bluez-and-service-characteristics-cache-issue-with-android

it seems related to the 0x2A05 characteristic

To reproduce :

ESP32 app with 20 characterics
launch a android client and bond the device
update the ESP32 app and insert a new characteristic before all others
launch a android client => the application is lost and can't read the characterics correctly

For this you could try using the lower level call ble_svc_gatt_changed(uint16_t start_handle, uint16_t end_handle) with the handle params being 0x0000 and 0xFFFF.

thanks for your answer.
I finally managed to get it working by forcing android to prune his cache (some hidden API ... ).


text:
Documentation

Auto generate documentation

Codecov Report

Merging #18 (d8adf4e) into develop (e992f01) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           develop       #18   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           14        14
  Lines          199       199
  Branches        27        27
=========================================
  Hits           199       199

Impacted Files
Coverage Δ

nornir_netconf/plugins/connections/netconf.py
100.00% <ø> (ø)

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 e992f01...d8adf4e. Read the comment docs.


text:
FS.com GPON-ONU-34-20BI incorrect tagging

Hi
Further to discussion yesterday re password authentication, I'm noticing the following weird symptom:

It appears that the SFP is staying in State 5 (implying authentication NOT an issue(?))

If I capture a trace to file on my Mikrotik RB4011 I see the following:
a) My outbound traffic for PPPoE (PADO) is tagged with VLAN 6 (same configuration as when using 02 external ONT, which works). However, the returning PADI is tagged with 1421!
b) The video VLAN is tagged (correctly for O2/ Movistar Spain) with VLAN 3)

My questions: Does stable state 5 mean I'm past authentication, assume OMCI programming is being processed incorrectly,  and  I need to try with different (eg Huawei) firmware?
Thanks for any suggestions.

This is a classic issue. The return mapping rule is not correctly being applied by the ONU. It happens.
Try using the native GPON VLAN (1421) instead of (2) and see if that helps.
Otherwise I'd try a different firmware

Humm, not sure 1st options going to work - surely I'm only seeing PAD Offfers as a result of the server seeing my PADIs - so it would appear it's receiving ok, just the return path that's getting mangled/ incorrectly tagged.
I'll definitely have a go at re-flashing today.

Tried mA5671a_root_mtd5.img today and same deal: State 5, PADIs going out tagged with VLAN 6 and PADO coming back on VLAN 1421.
Do I just keep trying different firmwares?

I've fixed with the last email from FS:
(Extract)
This situation of downlink frame VLAN=1421 but Pbit is not equal to 1 can be avoided by enabling the OLT IOP interoperability compatibility option of the GPON MAC SGP ONU module. After logging in to the GPON MAC SFP ONU module via SSH, execute the following command:
fw_setenv omci_iop_mask 8
Note: This command will not take effect immediately and will only take effect after the GPON MAC SFP ONU module is unplugged and restarted;

authors: benbgg nanomad


text:
Alien Poop

Your checklist for this pull request
Author name
Author: Luis Guerrero
 Lalo
About your game
What is your game about?
This game uses a alien from another world to push a poop inside of a toilet to clear the world from waste
How do you play your game?
In this game you will use W A S D to move the character all 4 directions. You will push the box into the goal to further move past levels.
Code
Check off the items that are true.

[x] The game was made using the Sprig editor.
[x] The game is placed in the in the /games directory.
[x] The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
[x] The game runs without errors.
[x] The name of the file/game contains only alphanumeric characters, -s, or _s.
[x] The game name is not the same as the others from gallery

Image (If an image is used)

[ ] The image is in the /games/img directory.
[ ] The name of the image matches the name of your file.

Thanks for your PR!

I updated the metadata for you. Congrats on earning your Sprig. You can order it here: https://sprig-order.hackclub.dev/

authors: Spxceee leomcelroy

repo: hackclub/sprig


text:
Unable to resolve reference CompilerServices.Unsafe

Hi
when I install the nuget packages, I get this error
Unity 2022.3.18
Assembly 'Assets/Packages/VitalRouter.1.2.0/lib/netstandard2.1/VitalRouter.dll' will not be loaded due to errors: Unable to resolve reference 'System.Runtime.CompilerServices.Unsafe'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.
after disabling validation error goes, but I wonder does it spouse to be this way?
then I add unity package with git url and got 19 errors
Plugin 'Assets/Packages/VitalRouter.1.2.0/lib/netstandard2.1/VitalRouter.dll' has the same filename as Assembly Definition File 'Packages/jp.hadashikick.vitalrouter/Runtime/VitalRouter.asmdef'. Rename the assemblies to avoid hard to diagnose issues and crashes.
Library\PackageCache\jp.hadashikick.vitalrouter@7111aa8fa6\Runtime\Internal\FreeList.cs(177,28): error CS0122: 'Unsafe' is inaccessible due to its protection level
Library\PackageCache\jp.hadashikick.vitalrouter@7111aa8fa6\Runtime\Internal\FreeList.cs(178,26): error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type ('TTo')

@peyman1959 Hi, thanks for the report.
This is my mistake.
I've released a fix in 1.2.1 for you to try.
https://github.com/hadashiA/VitalRouter/releases/tag/1.2.1

thanks but it didnt fixed.
with nuget packages issue still remaining
but with unity package errors are down to 6
Library\PackageCache\jp.hadashikick.vitalrouter@e24ee5317b\Runtime\AnonymousSubscriber.cs(80,33): error CS0122: 'Unsafe' is inaccessible due to its protection level
Library\PackageCache\jp.hadashikick.vitalrouter@e24ee5317b\Runtime\AnonymousSubscriber.cs(81,22): error CS1503: Argument 1: cannot convert from 'TTo' to 'T'
Library\PackageCache\jp.hadashikick.vitalrouter@e24ee5317b\Runtime\AnonymousSubscriber.cs(57,25): error CS0122: 'Unsafe' is inaccessible due to its protection level
Library\PackageCache\jp.hadashikick.vitalrouter@e24ee5317b\Runtime\AnonymousSubscriber.cs(58,70): error CS1503: Argument 3: cannot convert from 'T' to 'VitalRouter.PublishContinuation<TReceive>'
Library\PackageCache\jp.hadashikick.vitalrouter@e24ee5317b\Runtime\AnonymousSubscriber.cs(60,33): error CS0122: 'Unsafe' is inaccessible due to its protection level
Library\PackageCache\jp.hadashikick.vitalrouter@e24ee5317b\Runtime\AnonymousSubscriber.cs(61,29): error CS1503: Argument 1: cannot convert from 'TTo' to 'T'

That. Sorry.
More fixes, try v1.2.2.
Thanks again for the repeated reports ><

Thank you .
It fixed

repo: hadashiA/VitalRouter