Example code for C# checked/unchecked article

As usual the example code is a bit too bloated and complex for my taste.
to make it shorter and clearer: why not have one "add" method and then call it twice, once from a "checked" block and once from an "unchecked" block?
Btw, why not use int.MaxValue (just to illustrate that this exists)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: dbbcec4d-d8ff-d906-57ec-378689eb99a5
Version Independent ID: 88e4ead1-3745-2be6-9cfb-0f02eeacf9c1
Content: checked (C# Reference)
Content Source: docs/csharp/language-reference/keywords/checked.md
Service: dotnet-csharp
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks for your feedback @LambertWM. We're adding this to our backlog since this is not wrong but a suggestion to improve it.

why not have one "add" method and then call it twice, once from a "checked" block and once from an "unchecked" block

Because that doesn't work. It's kind of a gotcha - if you call a method from inside a checked block, and an arithmetic overflow happens in that method, unless there's a checked block inside it, there is no exception. The following code does not throw an exception and returns a negative integer.
public class Program
{
	public static int DoSomething()
	{
		int a = 10;
		int b = int.MaxValue;

		return a + b;
	}

	public static void Main()
	{
		Console.WriteLine(checked(DoSomething()));
	}
}

It makes sense, because the method could be called from both checked and unchecked contexts. Therefore there's no universal way how to decide if to throw an exception in that case. This means the checked block has to be directly in the place where you're doing the math. The following code does throw an exception:
public class Program
{
	public static int DoSomething()
	{
		int a = 10;
		int b = int.MaxValue;

		return checked(a + b);
	}

	public static void Main()
	{
		Console.WriteLine(DoSomething());
	}
}

That being said, it would definitely be nice to have the docs reflect this.


Website enhancements

[ ] Name AlphaTac AI as home page

[ ] Name Dota 2 Analytics as product

[ ] Add an about page

brunch.pdf

main page

about page

team page

product page1

product page2(optinal)


Updated revert-to-ubam script

Running tests via wdl_runner and in FireCloud
Do not merge until tests are confirmed passing.

All pass provided they're given enough disk space


starter application crashing.

Description
I am new to React Native. I tried to create a new app in macOS High Sierra 10.13.4
I have encountered warnings about deprecated packages (and skipping optional dependencies).
Since I am new to React Native and want to learn on which warnings are serious and which are skippable which are not availlable in tutorials, I would like to helped on the regard.
Expected Behavior
Expected to create the starter application without any errors and warnings.
Observed Behavior
npm deprication warnings are observed
skipping optional dependencies are observed due to optional and notsupported packages (I am using macOS so packages for windows, Linux and others are not supported as expected)
Nishanths-MacBook-Pro:unversioned_apps VemulaNishanth$ create-react-native-app AwesomeProject
Creating a new React Native app in /Users/VemulaNishanth/Projects/Local/unversioned_apps/AwesomeProject.

Using package manager as npm with npm interface.
Installing packages. This might take a couple minutes.
Installing react-native-scripts...

npm WARN deprecated<EMAIL_ADDRESS>If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm notice created a lockfile as package-lock.json.  You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^4.0.0 but none is installed.  Created AwesomeProject at /Users/VemulaNishanth/Projects/Local/unversioned_apps/AwesomeProject
Inside that directory, you can run several commands:

  npm start
    Starts the development server so you can open your app in the Expo
    app on your phone.

  npm run ios
    (Mac only, requires Xcode)
    Starts the development server and loads your app in an iOS simulator.

  npm run android
    (Requires Android build tools)
    Starts the development server and loads your app on a connected Android
    device or emulator.

  npm test
    Starts the test runner.

  npm run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd AwesomeProject
  npm start

Happy hacking!
[Nishanths-MacBook-Pro:unversioned_apps VemulaNishanth$ cd AwesomeProject
Nishanths-MacBook-Pro:AwesomeProject VemulaNishanth$ npm start

><EMAIL_ADDRESS>start /Users/VemulaNishanth/Projects/Local/unversioned_apps/AwesomeProject
> react-native-scripts start

13:31:35: Unable to start server
See https://git.io/v5vcn for more information, either install watchman or run the following snippet:
  sudo sysctl -w kern.maxfiles=5242880
  sudo sysctl -w kern.maxfilesperproc=524288

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: `react-native-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/VemulaNishanth/.npm/_logs/2018-05-01T08_01_35_574Z-debug.log
Nishanths-MacBook-Pro:AwesomeProject VemulaNishanth$

make sure you install the latest version of npm


Roads filter

Change roads filter in report to CARTOCODE in ( '1', '2', '3', '4', '5')

Dropping cartocode 8 was supposed to drop off minor roads, especially in the Salt Lake valley (2700 W, 100 N, etc), but it doesn't seem to have worked in the latest push. Thoughts? Also, I totally forgot to add pull the name from "HWYNAME". Sorry about that.

Try it now. I think that I screwed up copying the config file for the gp task to the server.


Need more detailed info about error stack trace

OS?
Windows 10
Versions.
angular-cli: 1.0.0-beta.24
node: 6.3.1
os: win32 x64
@angular/common: 2.4.1
@angular/compiler: 2.4.1
@angular/core: 2.4.1
@angular/forms: 2.4.1
@angular/http: 2.4.1
@angular/material: 2.0.0-beta.1
@angular/platform-browser: 2.4.1
@angular/platform-browser-dynamic: 2.4.1
@angular/platform-server: 2.4.1
@angular/router: 3.4.1
@angular/compiler-cli: 2.4.1

Repro steps.
App was developed usin Webpack. Recently switched to Angular-CLI. It's working ok while using ng serve but error occurred when trying to build AOT version (ng build --aot). Error message ('ERROR in Cannot read...") isn't very helpful because I have no idea which file / part of code caused problem.
The log given by the failure.
chunk    {0} scripts.bundle.js, scripts.bundle.map (scripts) 121 kB {3} [initial] [rendered]
chunk    {1} main.bundle.js, main.bundle.map (main) 1.06 kB {2} [initial] [rendered]
chunk    {2} vendor.bundle.js, vendor.bundle.map (vendor) 1.18 MB [initial] [rendered]
chunk    {3} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry] [rendered]

ERROR in Cannot read property 'length' of undefined

ERROR in ./app/main.ts
Module not found: Error: Can't resolve './$$_gendir/app.module.ngfactory' in 'C:\frontend-angular-cli\app'
 @ ./app/main.ts 8:0-70
 @ multi main

ERROR in<EMAIL_ADDRESS>Module not found: Error: Can't resolve 'C:\frontend-angular-cli\app\$$_gendir' in 'C:\frontend-angular-cli\node_modules\@angular\core\src\linker'
<EMAIL_ADDRESS>69:15-36 85:15-102
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>@ ./app/main.ts
@ multi main

Mention any other details that might be useful.
tsconfig.json
{
  "compilerOptions": {
    "baseUrl": "",
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": ["es6", "dom"],
    "mapRoot": "./",
    "module": "es6",
    "moduleResolution": "node",
    "outDir": "dist",
    "sourceMap": true,
    "target": "es5",
    "typeRoots": [
      "../node_modules/@types"
    ]
  }
}

angular-cli.json

{
  "project": {
    "version": "1.0.0-beta.24",
    "name": "frontent-angular-clo"
  },
  "apps": [
    {
      "root": "app",
      "outDir": "dist",
      "assets": [
        "assets",
        "favicon.ico"
      ],
      "index": "index.html",
      "main": "main.ts",
      "test": "test.ts",
      "tsconfig": "tsconfig.json",
      "prefix": "app",
      "mobile": false,
      "styles": [
      ],
      "scripts": [
        "./assets/bower_components/webcomponentsjs/webcomponents.min.js"
      ],
      "environments": {
        "source": "environments/environment.ts",
        "dev": "environments/environment.ts",
        "prod": "environments/environment.prod.ts"
      }
    }
  ],
  "addons": [
  ],
  "packages": [
  ],
  "e2e": {
    "protractor": {
      "config": "./protractor.conf.js"
    }
  },
  "test": {
    "karma": {
      "config": "./karma.conf.js"
    }
  },
  "defaults": {
    "styleExt": "scss",
    "prefixInterfaces": false,
    "inline": {
      "style": false,
      "template": false
    },
    "spec": {
      "class": false,
      "component": true,
      "directive": true,
      "module": false,
      "pipe": true,
      "service": true
    }
  }
}

package.json

{
  "name": "adar-frontend",
  "version": "1.0.0",
  "angular-cli": {},
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "lint": "tslint \"app/**/*.ts\"",
    "test": "ng test",
    "pree2e": "webdriver-manager update --standalone false --gecko false",
    "e2e": "protractor",
    "typings": "typings install --global",
    "postinstall": "typings install"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "2.4.1",
    "@angular/compiler": "2.4.1",
    "@angular/core": "2.4.1",
    "@angular/forms": "2.4.1",
    "@angular/http": "2.4.1",
    "@angular/material": "2.0.0-beta.1",
    "@angular/platform-browser": "2.4.1",
    "@angular/platform-browser-dynamic": "2.4.1",
    "@angular/platform-server": "2.4.1",
    "@angular/router": "3.4.1",
    "@types/lodash": "^4.14.45",
<EMAIL_ADDRESS>"1.4.29",
    "@vaadin/angular2-polymer": "1.0.0-rc3",
    "angular2-infinite-scroll": "0.2.8",
    "angular2-moment": "1.0.0",
    "core-js": "^2.4.1",
    "hammerjs": "2.0.8",
    "lodash": "4.17.4",
    "ng2-charts": "1.4.4",
    "ng2-dnd": "2.1.1",
    "ng2-pdf-viewer": "0.1.5",
    "rxjs": "5.0.2",
    "ts-helpers": "^1.1.2",
    "zone.js": "0.7.4"
  },
  "devDependencies": {
    "@angular/compiler-cli": "^2.4.1",
    "@types/jasmine": "2.5.40",
    "@types/node": "^6.0.57",
    "angular-cli": "1.0.0-beta.24",
    "codelyzer": "~2.0.0-beta.4",
    "jasmine-core": "2.5.2",
    "jasmine-spec-reporter": "3.0.0",
    "karma": "1.3.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.1.0",
    "karma-remap-istanbul": "^0.4.0",
    "protractor": "~4.0.14",
    "ts-node": "2.0.0",
    "tslint": "^4.2.0",
    "typescript": "2.0.10"
  }
}

Seems like a dup of #3674
I'd recommend you take a look on that issue as a couple of members have posted possible fixes for this issue.

I've read it earlier because actually at first I've got the error mentioned there ('ERROR in Error encountered resolving symbol values statically...'). I've handled it using tips from that issue but now I have new kind of error. Also, the error I'm getting now is quite different and not mentioned in any of issues here.

Would you mind posting your ngModule.

Here it is. It's not divided into sub-modules so it's quite long.
@NgModule({
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    RouterModule,
    CommonModule,
    routing,
    MaterialModule.forRoot(),
    ChartsModule,
    DndModule,
    InfiniteScrollModule,
    MomentModule
  ],
  declarations: [
    SingleFreightMapComponent,
    ClientAllFreightsListComponent,
    ClientLastFreightsListComponent,
    LastFreightsListComponent,
    BoardClientComponent,
    ClientsListComponent,
    SetCardComponent,
    FleetSetCardComponent,
    ClientRatingComponent,
    AppComponent,
    AuthLoginComponent,
    AuthLogoutComponent,
    LayoutComponent,
    HomeComponent,
    HomeTrendChartComponent,
    HeaderBreadcrumbsComponent,
    HeaderSubmenuComponent,
    SettingsDatabaseComponent,
    SettingsPermissionsComponent,
    DataGridComponent,
    RcpComponent,
    CoordinatorsSetsComponent,
    CoordinatorsTasksComponent,
    SetDriverComponent,
    CurrentSetFreightComponent,
    FreightHistoryDialogComponent,
    SmsCategoryComponent,
    TaskMasterComponent,
    TaskFillingMainComponent,
    SmsCardComponent,
    SmsChangeLocationComponent,
    SmsDailyReportComponent,
    SmsGpsDialogComponent,
    SmsGpsSendComponent,
    SmsGpsTableComponent,
    SmsMilestoneComponent,
    SmsProblemComponent,
    TaskFillingPrimaryComponent,
    TaskFillingVerifyMapComponent,
    TaskFreightStepComponent,
    TaskInformMailComponent,
    TaskInformPhoneComponent,
    TaskInitialDirectionComponent,
    TaskRateDriverComponent,
    TaskSendOrderComponent,
    TaskFillingStampComponent,
    EditFreightMilestonesComponent,
    FreightStepComponent,
    LocationChooseComponent,
    MapsComponent,
    RadioMilestoneComponent,
    RateTheDriverComponent,
    SmsSendComponent,
    StarRateComponent,
    UserNamePipe,
    CurrencyValuePipe,
    SearchPipe,
    DistanceKmPipe,
    // DateFormatPipe,
    SearchInArrayPipe,
    MapToIterablePipe,
    SetsFormatPipe,
    Resizable,
    SmsViewComponent,
    CompanyEmployeesComponent,
    RecruitmentBoardComponent,
    RecruitmentNewComponent,
    RecruitmentPositionsComponent,
    RecruitmentPositionsNewComponent,
    RecruitmentDetailsComponent,
    StagesComponent,
    StagesNewComponent,
    CandidateComponent,
    CandidateApplicationComponent,
    CandidateGroupComponent,
    CandidateTalkComponent,
    CandidateTaskComponent,
    TalentBankComponent,
    EmailEditorComponent,
    EditDialogComponent,
    MeetingScheduleComponent,
    DecisionButtonsComponent,
    ListDialogComponent,
    VoipNumberSanitizePipe,
    InitialsPipe,
    // CalendarPipe,
    SearchPipe,
    NumberToArrayPipe,
    ChangeTypePipe,
    StatusToColorPipe,
    NullToStringPipe,
    // PolymerElement('vaadin-date-picker'),
    // PdfViewerComponent,
    ChipComponent,
    DatePicker,
    StepCircle,
    StageDialog,
    UserAvatarComponent,
    LoadingIndicatorComponent,
    FleetComponent,
    ArchivedApplicationsComponent,
    ForLaterComponent,
    ErrorDialog,
    LoadingIndicatorComponent,
    AutoCompleteComponent,
    AmsComponent,
    FreightValuationComponent,
    ValuationItemComponent,
    SpeditorMapComponent,
    CooperationItemComponent,
    SetInformationComponent,
    SetDetailsComponent,
    FreightStepChooseComponent,
    CurrentFreightComponent,
    SetListComponent,
    EmailFishingComponent,
    MarkAsStornoDialogComponent,
    AddFilesDialogComponent,
    SellLoadDialogComponent,
    SetSignListComponent,
    EmailSendAmsComponent,
    LoadInformationComponent,
    StatisticInformationComponent,
    FileViewDialogComponent,
    UserProfileComponent,
    CandidateDeleteConfirmationDialogComponent,
    RejectCandidateDialogComponent,
    CustomCandidateComponent,
    OtherComponent,
    OtherEnvelopesPrintComponent,
    OtherEnvelopesArchiveComponent,
    AddCompanyDialogComponent,
    DeleteApplicationDialogComponent,
    FreightComponent,
    HaulierComponent,
    HauliersComponent,
    LastFreightsListComponent,
    SetCardComponent,
    HrFilesDialogComponent,
    RecruitmentEmailsComponent
  ],
  providers: [
    MdIconRegistry,
    OVERLAY_PROVIDERS,
    MdUniqueSelectionDispatcher,
    appRoutingProviders,
    HttpService,
    ProtectComponentService,
    AuthService,
    Configuration,
    BoardResolver,
    BoardService,
    RecruitmentEndService,
    RecruitmentPositionDataService,
    StorageService,
    ErrorHandlerService,
    LOGGING_ERROR_HANDLER_PROVIDERS,
    AmsService,
    AmsStorageService
  ],
  entryComponents: [
    AppComponent,
    AuthLoginComponent,
    ErrorDialog,
    CandidateDeleteConfirmationDialogComponent,
    RejectCandidateDialogComponent,
    FreightHistoryDialogComponent,
    AddCompanyDialogComponent,
    DeleteApplicationDialogComponent,
    MarkAsStornoDialogComponent,
    AddFilesDialogComponent,
    FileViewDialogComponent,
    SellLoadDialogComponent,
    HrFilesDialogComponent
  ],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  bootstrap: [AppComponent]
})

export class AppModule {
}

@hansl any idea what caused this?

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.


revise isfc

use p_from_null_mem_saving function to save memory
add a parameter to let the user decide whether to cast all data into float32 (or even float16)

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Jenkins, OK to test.


Malta settings correct?

In the very last screenshot (Malta Data Source config), you show that it should be configured to connect using the MBAM Read Only account.  I've been through setup several times, checking my entries very carefully (because things aren't working) and each time I end up with my Read/Write account showing up here.  The "Test Connection" succeeds also.  (I've not tested with the Read only account entered here because our man that has the ReadOnly account password is not available.)
While I'm at it...  the error I'm receiving is that shown below and if you could point to a resource for troubleshooting that, I would be forever in your debt.
Error in the SelfService website tracelog:
QueryRecoveryKeyIdsForUser: an error occurred while logging an audit event to the compliance database. Message: Procedure or function AddRecoveryAuditEvent has too many arguments specified..

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5c6c4323-445a-3ff1-5ff0-76513e66bc92
Version Independent ID: 9df4765e-206e-2c24-8b4b-1bfb762a18ea
Content: Troubleshooting MBAM 2.5 installation problems
Content Source: mdop/mbam-v25/troubleshooting-mbam-installation.md
Product: w10
Technology: windows
GitHub Login: @Delhan
Microsoft Alias: delhan

...if it matters, I'm setting this up with SCCM integration...

@bahnjee   - Thank you for submitting feedback.
I think the best way forward is if you can contact support and open a service ticket for Windows 10 products  so this can get resolved ASAP. Based on outcome, let me know if it is something that can be called out in the docs.
If you don't mind please keep us posted here on the resolution and I really want to get this information you are discovering back into the docs.

I finally got it working (and the screenshot I referenced in my initial post is correct as published).  Turned out that my colleague who started the upgrade to MBAM 2.5 SP1 didn't uninstall MBAM from the DB server before he installed the update (and then foisted the project off on me).  As soon as I did the uninstall/reinstall and re-added the roles, the "too many arguments" error went away and all is well in my MBAM world now.
I recognize that MBAM is a complex system with a lot of moving parts, but I don't think I'm alone in thinking the documentation could be clearer.  In my searching to find answers to my  troubleshooting, I saw a great many posts wherein others were equally lost considering the correct setup.  An example is the differences between choosing a user or a group for the various roles.  Some notes on pros and cons of users vs. groups would have been useful.  Similarly, details on how to choose the number of servers and which server should host which roles should be provided.
It's not my intent to bash anyone, and some of this long missive is no doubt a result of my frustration towards the aforementioned colleague.  I realize documenting complex systems can be difficult.  But those tasked with documenting should step back and look at the docs they're writing and view them from the point of view of their audience.  If I'm reading the docs, then I have much less knowledge than the writers and would benefit from clear explanations and examples of configurations.  A "Best Practices" guide would be beneficial, too.


How to build static libtensorflowlite.a for Android ?

bazel build -c opt --config=andrdoi_arm --cxxopt='--std=c++11' --cpu=arm64-v8a
tensorflow/lite:libtensorflowlite.so
I can build libtensorflowlite.so using above command .
Is there any way to build static libtensorflowlite.a for Android ?

bazel does not natively support generating static .a libraries.
Is there a specific reason you need a .a for Android? Since Android code gets bundled as an Apk, you typically want to bundle the libtensorflowlite.so in the Apk which can then get linked to the binary when the app starts.


Fix #12: (re-)implement latticize(..., basis)

Does this cover your use-cases @jaemolihm? This implements latticize(::T, basis) for T = Union{Cell, KPath, KPathInterpolant} (and does a bit of fly-by clean-up in the process; bit noisier commit than necessary as a result).
As you also noted in #13, it is not possible to do this in-place since the basis field of Cell, KPath, etc. is immutable - so it seems this has to be in the form of latticize rather than latticize!.
Fixes #12.

Codecov Report

Merging #14 (7f4e279) into master (f5aa606) will decrease coverage by 0.19%.
The diff coverage is 96.00%.

@@            Coverage Diff             @@
##           master      #14      +/-   ##
==========================================
- Coverage   92.18%   91.99%   -0.20%
==========================================
  Files          10       10
  Lines         832      787      -45
==========================================
- Hits          767      724      -43
+ Misses         65       63       -2

Impacted Files
Coverage Δ

src/Brillouin.jl
91.66% <0.00%> (ø)

src/KPaths.jl
97.00% <100.00%> (+0.03%)
:arrow_up:

src/WignerSeitz.jl
99.43% <100.00%> (-0.03%)
:arrow_down:

src/interpolate-paths.jl
77.61% <100.00%> (+0.68%)
:arrow_up:

src/bravais-branches.jl
95.90% <0.00%> (-2.48%)
:arrow_down:

src/requires/plotlyjs_dispersion.jl
91.78% <0.00%> (-0.72%)
:arrow_down:

src/requires/plotlyjs_wignerseitz.jl
99.09% <0.00%> (-0.11%)
:arrow_down:

... and 3 more

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 f5aa606...7f4e279. Read the comment docs.

Thanks a lot for the fix! Yes, it does cover my use case.


Updated SuperInventory Constructor

Added toggleable click sound
Added fillInventory and clickSound to SuperInventory constructor
Backwards compatibility

Please add a second overloaded SuperInventory constructor to avoid legacy issues


Check if db schema changes in CircleCI tests

Closes #80.
Labeling this as a WIP so I can see what's going on in CircleCI.

Build 365 is an example where git status is working, and since there are untracked files, the test fails.
The reason it was failing was because we cache our gems to vendor/bundle here:
- &save_bundle_cache
      name: Save Bundle cache
      key: gem-cache-v1-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
      paths:
        - vendor/bundle

Solved it by just using git status db/schema.rb to check the schema alone.


[3.0] Add support for custom parameter description

Like this image, I need to add some parameter description, but I can't find the way except modify the index.md file.
I use the Form request validation rules.
I think maybe we can add a custom validation to show the custom description.
thx.

We're open to adding this. PRs are welcome!

No longer valid because of #343


external-dns nodePort Service set internal IP instead of external IP

First of all i tried without define externalIPs then tried with externalIPs but same result,
and only are setting the internalIP of a single node.
should be setting the IP of all the nodes as far as I understand
apiVersion: v1
kind: Service
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: iperf3.xxxxx
    external-dns.alpha.kubernetes.io/ttl: "120"
  name: iperf
  namespace: default
spec:
  externalIPs:
  - <IP_ADDRESS>
  - <IP_ADDRESS>
  externalTrafficPolicy: Cluster
  ports:
  - nodePort: 31000
    port: 5001
    protocol: TCP
    targetPort: 5001
  publishNotReadyAddresses: true
  selector:
    workloadID_iperf: "true"
  type: NodePort

I am also having the same issue. I am ready to work on a pull request for it. It'll be great if someone could guide me on this.

/remove-lifecycle stale

/remove-lifecycle rotten

/remove-lifecycle stale


Component gets re-rendering when adding/removing new lines in template

Version
3.0.0-alpha.8
This is a reopening of #738 since it was closed but still reproducible.
Reproduction link
https://github.com/cristijora/vue-cli-state-refresh
Steps to reproduce

Init repo
Type something in the input
Add a new line/tag anywhere in the template. See gif below
Save the file

What is expected?
Input state is preserved as in the old webpack template.
What is actually happening?
The edited component gets a full re-render and the previous state is lost. Input is empty after changing something modifying the component. See gif below

Did you use any state management (Vuex) before?

No vuex here. It's bare bones Vue.

I think this is related to the virtual dom patching behavior when newlines/whitespaces are inserted. This can only be fixed in core, but since this is such an edge case it will be a pretty low priority item.


[WIP] fix: add user_id to cache key when needed

SUMMARY

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Closing in lieu of https://github.com/apache/superset/pull/20114.


'mess' build failure

Issue description
unpacking channels...
building Nix...
building the system configuration...
these derivations will be built:
  /nix/store/4m40jvi19qwshyb5j7prwniw9hbpw7mi-mess0139s.zip.drv
  /nix/store/7l1lmqifvvbff9znlm795hr0jd8a5723-mame0139s.zip.drv
  /nix/store/6mf5d6v4zn620y5pz4nvzqn7hf1sazpn-mess-0.139.drv
  /nix/store/99bim6bvjlcxdbf3qb7cfcyp0m68p6m7-user-environment.drv
  /nix/store/82b01j263idl6cr80784vwg2fzcsk6ap-etc.drv
  /nix/store/xdxhcjc8xx49vzbnm01nbc23l9afqy3n-nixos-system-nixos-workstation-19.09pre178260.190727db4ea.drv
these paths will be fetched (0.01 MiB download, 0.07 MiB unpacked):
  /nix/store/3k6hy33b1dkdfldii7s5f4vy9lll74x5-mirrors-list
  /nix/store/7i3k0b1pxvva4x91pmv0p4ggirvqqjl3-gconf-3.2.6-dev
copying path '/nix/store/7i3k0b1pxvva4x91pmv0p4ggirvqqjl3-gconf-3.2.6-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/3k6hy33b1dkdfldii7s5f4vy9lll74x5-mirrors-list' from 'https://cache.nixos.org'...
building '/nix/store/7l1lmqifvvbff9znlm795hr0jd8a5723-mame0139s.zip.drv'...
building '/nix/store/4m40jvi19qwshyb5j7prwniw9hbpw7mi-mess0139s.zip.drv'...

trying http://www.progettosnaps.net/MESS/src/mess0139s.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

trying https://github.com/mamedev/mame/releases/download/mame0139/mame0139s.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   603    0   603    0     0   1926      0 --:--:-- --:--:-- --:--:--  1926
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
error: cannot download mess0139s.zip from any mirror
builder for '/nix/store/4m40jvi19qwshyb5j7prwniw9hbpw7mi-mess0139s.zip.drv' failed with exit code 1
cannot build derivation '/nix/store/6mf5d6v4zn620y5pz4nvzqn7hf1sazpn-mess-0.139.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/99bim6bvjlcxdbf3qb7cfcyp0m68p6m7-user-environment.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/82b01j263idl6cr80784vwg2fzcsk6ap-etc.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xdxhcjc8xx49vzbnm01nbc23l9afqy3n-nixos-system-nixos-workstation-19.09pre178260.190727db4ea.drv': 1 dependencies couldn't be built
error: build of '/nix/store/xdxhcjc8xx49vzbnm01nbc23l9afqy3n-nixos-system-nixos-workstation-19.09pre178260.190727db4ea.drv' failed

Steps to reproduce
Add mess package and rebuild.
Technical details
$ nix-shell -p nix-info --run "nix-info -m"

system: "x86_64-linux"
host os: Linux 5.0.10, NixOS, 19.09pre178260.190727db4ea (Loris)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2.2
channels(root): "nixos-19.09pre178260.190727db4ea"
channels(nix): ""
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Package source is at https://github.com/NixOS/nixpkgs/blob/435c76208b7322696fdebdfa8cededb60d67261c/pkgs/misc/emulators/mess/default.nix
It looks the URL might have changed, it would be helpful if you could find if there is a new one, or otherwise elaborate on what could be wrong with the package. You could try overrideAttrs the src attribute of the mkDerivation - which is to say the package.

I'm not familiar with the MESS project, but the archives seem to have moved to this location:
http://www.progettosnaps.net/mess/

Seems that MESS was merged into the emulator known as MAME. Perhaps instead of fixing MESS we should just package MAME. (Unless there's some reason to keep MESS around that I'm unaware of.)

#72319


General: Further improve responsive layout

Checklist
General

[x] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] I chose a title conforming to the naming conventions for pull requests.

Client

[x] I followed the coding and design guidelines.
[x] I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
[x] I documented the TypeScript code using JSDoc style.
[x] I added multiple screenshots/screencasts of my UI changes.

Motivation and Context

There were some more issues with the responsive layout collected in issue #5106.
Description

Follow-up to #5053, this PR fixes some more issues with the client layout on mobile devices.
Steps for Testing

Prerequisites:

1 Instructor or Student

Log in to Artemis
Enable mobile emulation in your browser's development tools
Navigate to changed client components (Course Management, Discussions, Assessment Dashboard)
Test the description's Show more and Show less on the Course Management page
Review the added section in client documentation

Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Class/File
Branch
Line

course-overview.component.ts
80.2%
92.2%

course-detail.component.ts
83.3%
96.1%

Screenshots

Assessment Dashboard
Before & After

Course Overview
Before & After

Discussions
Before & After

Tested on TS1. The "Show more / Show less" works when showing more, but not when showing less (first screenshot, in which I already clicked Showed more, then Show less). Except in a very narrow screen, resizing works fine. The rest works as expected.
Attached screenshots

"Show more / Show less" bug fixed

Tested on ts2, the responsive layout works fine, but I detected the following issue on the full screen (see screenshot).
We can probably ignore this, as #5115 will remove the full-screen button.

It can still be seen and used, but the graph is shown on the left side of the screen. In full screen everything looks good!

Out of the scope of this PR, please see https://github.com/ls1intum/Artemis/pull/5115.

Seems like the Course-Management page ist now broken after this merge. Thanks to @mallgaier for pointing this out.
@ge65cer could you please check this. Thank you!

Thanks for pointing that out. The issue is at this line and a byproduct from the removal of the CSS hack/workaround for Angular 12.


How do I know which page the error came from with runZoned?

I want to know which page the errors caught by runZoned are coming from, but can't find out for now

I don't want to know in which file, but in which page;
For example, if a child widget gets an error, I can use the error to get information about the child widget and its parent widget

@yxl1994
Your question is better suited for support channels like StackOverflow, as this doesn't describe a bug or feature request, but is more of a question.
Closing from here. Please see https://flutter.dev/community for resources.


Update using-powershell-to-manage-teams.md

Included information about installing the Teams module from the PowerShell Gallery and changed the manual download link to not point to a specific (outdated) version.

@millh0use - thank you very much for the catch. Pretty embarrassing that the link from the product managers name was right in the article. Appreciate you fixing it. :)


Added SlipCover 1.1.1

Vendor no longer has a page for this software, but the download is still hosted on aws.

Thank you, but if the homepage is down and the software has been discontinued (even though the company is still active), there isn’I much value in adding this. The link will most likely stop working soon.


Is it possible to rewire deps with the same unscoped module name as module under test?

Given two modules:

App.Connector.Hubspot (used by app to interact with external resource)
App.Client.Hubspot (used by connector to make external calls)

It is not possible to (easily?) inject a mock for the client in the connector tests, since:

elixir does not support the syntax: rewire App.Connector.Hubspot, App.Client.Hubspot: HubspotMock
aliasing App.Client.Hubspot is ambiguous since the connector has the same module name

It seems plausible it could work with some alias tweaking, but this could be more easily solved by accepting a list of tuples instead of a keyword list, perhaps? Hopefully I can look more into this later.

I got it to work now, just had to namespace the mock like App.Client.HubspotMock then alias it. I guess the namespace of the mock has to match the namespace of the dependency. Maybe this just needs some documentation? I can make a PR if you agree.

Please disregard everything above. I just had some misunderstandings. I see now.

:) I'd still be interested to hear whether you think I can make something clearer in the docs/README!

my misconception, which makes little sense in retrospect, was that I thought this lib removed the need to define behaviors for every module I wanted to mock when using Mox. now I understand that I still need behaviors and mock module definitions, and that this lib removes the need to have extra config everywhere to inject modules. after discussing the issue, I realized that having these behaviors is a good thing anyways, and that I could simply nest the behavior definition inside the modules to prevent having a ton of behavior files laying around.
anyways, the ability to remove all of the dep injection config and lookup function calls is still a huge win and I am a happy customer. :) thanks for making this.

awesome, glad to hear that! Yeah, I saw it from the unix philosophy of "make each program do one thing well" :)

@parkerjm could you expand on what you saw back then? I don't understand how it is supposed to work :)

Nvm my problem wasn't related, I had to include this in my test helper:

Application.ensure_all_started(:rewire)

Else I get:

(UndefinedFunctionError) function :cover.compile_beams/1 is undefined or private.


analyze no longer streams output as results are generated

When scanning a large directory, such as /usr, malcontent no longer outputs the results for files as they complete: it appears to wait until the end. This makes for poor UX as malcontent may go minutes with no output.
I suspect this regression came from the multi-threading changes.
The scan command seems to have the same limitation.

Worked on this over the weekend and I'm close to a solution using priority queues.


Review notes

Hello @shazaaly
I hope you're well, I saw your post on LinkedIn about this project and though to check it out.
You're doing an amazing work wish you all the best, I just have a few observations.

Separate the app from the server, The express app logic should be separated from the server (network) logic for easier testing and maintainability. why express app and server files kept separately
Do not validate user input inside your controllers, use middlewares with something like express-validator instead. express-validator-in-express-js
In your server.js file handle clean-up after the server closes: you can use something like close-with-grace

const mongoose = require('mongoose');
const closeWithGrace = require('close-with-grace');
const { logger } = require('./config/logger');
const app = require('./app');

const port = process.env.PORT;
async function start() {
  try {
    await mongoose.connect(process.env.DB_URI);

    mongoose.connection.on('error', (error) => {
      logger.error(error);
      process.exit(1);
    });

    app
      .listen(port, () => {
        logger.info(`Listing on port ${port}`);
      })
      .on('error', (e) => {
        process.exit(1);
      });
  } catch (error) {
    // close db connection
    logger.error(error);
    mongoose.connection.close();
    process.exit(1);
  }
}

start();

// gracefully shutdown the server and close opened db connections
// grace period is the wait time before closing the server
const gracePeriod = 2 * 1000; // 2s
closeWithGrace(
  { delay: gracePeriod },
  async function ({ signal, err, manual }) {
    if (err) {
      logger.error(err);
    }
    await mongoose.connection.close();
  },
);

Don't return sensitive information: such as user passwords/secrets in your api response
Keep your config in one place and reuse it across the application

things like email service config
Auth tokens related functionality etc...

 Maybe try the document model and see if it works for you, with NoSQL database your schema should always nest unless you have a reason not to mongodb-relationships-embed-or-reference, mongodb-applied-design

Hope this helps, and please feel free to correct any point that you think is invalid or wrong

Hello @mohammedbalila
I really appreciate your observations and going to investigate and work on every one, and I will appreciate your feedback for my future updates regarding them.
Thank you.

Great, good luck!
Don't hesitate to reach out to me anytime, here or on linkedin


isnt it possible for the backlink checker to find the backlinks without txt file?

isnt it possible for the backlink checker to find the backlinks without txt file?
that is how ahref, semrush and other tools work

I think you didn't understand the function of this one.
It checks if your linktrading partner / purchased backlinks still exists.
Please check the video. It is not a copy or ahrefs or any of this SEO tools.
https://www.youtube.com/watch?v=7BUP7Rtei4g


New Features: Speaker Embedding & GST

@Rayhane-mamah  in another issue you mentioned speaker embedding - are you working on this, or could you need help? I talked to Daisy Stanton from Google at SLT 2018, and she mentioned if training multi-speaker datasets, one needs a speaker embedding, including an unknown speaker.
Also, I would be interested in GST - Global Style Tokens (see https://arxiv.org/abs/1803.09017). Have you thought of implementing this, or is help needed .-))
Thanks for creating this!!!!!!

Thank you very much for your very fast feedback and the confirmation that these items work!
I will try to implement them.
When I discussed Tacotron issues with Daisy Stanton from Google, she mentioned that GMM attention is best and definitely necessary for GST to work. Can you comment on that? Is the attention used in T2 sufficient?
Thank you so much for open sourcing the T2!!!

Hi again,
I didn't really try out GMM so I can't for sure give my opinion on that.
However, I did try both vanilla Bahdanau (content) attention and T2 location sensitive. I definitely found that T2 attention worked better in my experiments.
Overall, one can mix features from multiple similar Encoder-Decoder architectures to Tacotron, it can show good results. GMM attention may be one of these improvements.
Thanks for your support.

Thanks  a lot for your opinion, that is very valuable to me!!! So I do not need to implement GMM Attention. That would have been quite hard :-))
Kind regards
Ernst

@sandipjedhe @ErnstTmp hi, I combine Tacotron2 & gst based on Rayhane Tacotron: https://github.com/cnlinxi/style-token_tacotron2. I successfully get different style on Chinese. You can try it on other language:)

@cnlinxi What kind of dataset did you train? With single speaker or multi-speakers?

I train it on THCHS-30. I don't have a better dataset.

@cnlinxi I have tried biaobei open Chinese corpus with single speaker but it failed to transfer within different styles. It shows that we have to train with multi-speakers corpus https://github.com/KinglittleQ/GST-Tacotron/issues/6

@begeekmyfriend yes, biaobei open Chinese corpus is single speaker and too bland. We look forward to better corpus:(

@Rayhane-mamah could you tell if the speaker-embedding you did was only concatenated to the encoder output, or did you also need to add the speaker-embedding to the encoder input? For now, after a few thousand steps, it seems that the model does not generate multiple speakers when I train it on LibriTTS (I did a simple embedding and concatenated it to the encoder output at each timestep)

@maelp nice to see you ;)
The implementation here works quite well
https://github.com/CorentinJ/Real-Time-Voice-Cloning/tree/master/synthesizer

Hi @m-toman :) I saw that implementation, and I used a code which is equivalent, but I'm learning the speaker-embedding while training Tacotron and not on another task, and I'm wondering if this is sufficient to get multi-speaker outputs. Right now it seems that all the data generated during python synthesize has the "same speaker" sound, but perhaps it is because it should train for a few more steps


Error: no implicit conversion of nil into String

==> Downloading http://live.yworks.com/yed-downloads/yEd-3.14_with-JRE8.dmg
Already downloaded: /Library/Caches/Homebrew/yed-3.14.dmg
Error: no implicit conversion of nil into String
Please report this bug:
    https://github.com/caskroom/homebrew-cask/issues
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/digest.rb:44:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/digest.rb:44:in `open'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/digest.rb:44:in `file'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/digest.rb:29:in `file'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/download.rb:41:in `block in _check_sums'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/download.rb:39:in `each'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/download.rb:39:in `_check_sums'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/download.rb:32:in `perform'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/installer.rb:72:in `download'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/installer.rb:49:in `install'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:20:in `block in install_casks'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:17:in `each'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:17:in `install_casks'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:6:in `run'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/cli.rb:81:in `run_command'
/Users/buck/prefices/brew/Cellar/brew-cask/0.46.0/rubylib/cask/cli.rb:121:in `process'
/Users/buck/prefices/brew/bin/brew-cask.rb:42:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/buck/prefices/brew/Library/brew.rb:58:in `require?'
/Users/buck/prefices/brew/Library/brew.rb:142:in `<main>'

You’re using an old version of homebrew-cask. Please brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup and try again.


Fixes an issue where a transaction never rolls back as expected.

This PR fixes an issue where a connection may have a transaction that was never rolled back.
Steps to reproduce:

Acquire connection.
Create transaction (BEGIN).
Execute container(transactor).
Instead of returning a promise, container(transactor) throws an exception.

Result: Transaction will not be rolled back.  Next time someone uses the same connection, their changes will be done as part of the transaction.  This may result with the changes that are not saved to the DB.

@wubzz - this one can be closed as the underlying problem has been resolved by pull request #1257.


onPoiClick always returns 'undefined', or nothing at all

Is this a bug report?
Yes
Have you read the Installation Instructions?
Yes indeed.
Environment
react-native: ~0.55.2
react: 16.3.
react-native-maps: 0.21.0

Steps to Reproduce
These steps assume you have:
1.  Followed installation instructions
2. Attained the proper Keys from Google.

From that point, it's pretty simple. Create a MapView instance, and scroll around on it to make sure it's working well. As the install instructions state, if you don't have a key, or are using an unauthorized key, the maps will simply not load.
Here is my MapView:
<MapView
                    region={this.state.region}
                    onRegionChange={() => this.onRegionChange}
                    style={styles.map}
                    scrollEnabled={true}
                    zoomEnabled={true}
                    showsCompass={false}
                    showsUserLocation={true}
                    showsTraffic={true}
                    showsMyLocationButton={true}
                    showsBuildings={true}
                    loadingEnabled={true}
                    provider={PROVIDER_GOOGLE}
                    loadingBackgroundColor={'#40798C'}
                    loadingIndicatorColor={'white'}
                    customMapStyle={mapStyle}
                    showsPointsOfInterest={true}
                    onPoiClick={(e) => console.log(e.position)}
                     />

const styles = StyleSheet.create({
    map: {
      position: 'absolute',
      top: 0,
      left: 0,
      right: 0,
      bottom: 61,
      display: 'flex',
      flexDirection: 'column',
      justifyContent: 'space-between'
    },

After trying
(e) => console.log(e)  //this simply printed nothing
(e) => console.log(e.position)  //this printed 'undefined' for all PoI
(e) => console.log(e.placeId)  // this printed 'undefined' for all PoI
You will (I assume) see that the console does not return the desired result.
"But Dillon, what was the desired result?"
Expected Behavior
I'm glad you asked - self!
Simply, I imagined that tapping on the PoI would print the PlaceId/position/etc. to the console.
Actual Behavior
As above, so below.
After trying
(e) => console.log(e)  //this simply printed nothing
(e) => console.log(e.position)  //this printed 'undefined' for all PoI
(e) => console.log(e.placeId)  // this printed 'undefined' for all PoI
You will (I assume) see that the console does not return the desired result.
Reproducible Demo
I've tried to reproduce in Snack - though I'm unsure whether this uses the current version of React-Native-Maps.
If this doesn't work, simply copy/paste my code from above and see if you get a similar result!
Snack

Custom map style can be found here: https://pastebin.com/TZvt2JFQ

Working example: onPoiClick={e => console.loc(e.nativeEvent.placeId)}

hi all I have a question
when I get placeId how can I get details of that?
is it possible to help me?


503 SERVICE_UNAVAILABLE and body upstream connect error or disconnect/reset before headers. reset reason: connection termination

Bug Description
We are facing the below issue intermittently when we call an external service outside our cluster
status code 503 SERVICE_UNAVAILABLE and body upstream connect error or disconnect/reset before headers. reset reason: connection termination
We have investigated a lot and we found that we are getting above error in our caller Microservice logs , and the request is not reaching the external service we are trying to call. We tried disabling the side car from our internal Microservice ,after that the service started working successfully and the issue did not happen again.
Is there any configuration we need to do with ISTIO instead of disabling the sidecar as actually this is a workaround not an actual fix.
NOTE: This issue happens only in case we are calling an external service.
Version
$ istioctl version
client version: 1.12.0
control plane version: 1.12.0
data plane version: 1.12.0 (271 proxies)

$ kubectl version --short
Client Version: v1.21.2
Server Version: v1.21.14-eks-6d3986b

Additional Information
No response
Affected product area

[ ] Ambient
[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Control Plane Revisions

Is this the right place to submit this?

[X] This is not a security vulnerability
[X] This is not a question about how to use Istio

Is the phenomenon you are talking about similar to the description below?
I also confused that.
http://gateway.echo-2-93760.svc.cluster.local:80 (using http): response[0]: exp
ected response code 200, got "503". Response: RawContent:       [0] Url=http://gateway.echo-2-93760.svc.cluster.local:80
[0] Latency=1.00497493s
[0] ActiveRequests=1
[0] StatusCode=503
[0] ResponseHeader=Content-Length:145
[0] ResponseHeader=Content-Type:text/plain
[0] ResponseHeader=Date:Sun, 09 Oct 2022 01:19:57 GMT
[0] ResponseHeader=Server:envoy
[0 body] upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: delayed connect error: 111
    ID:
    Method:
    Protocol:
    Alpn:
    URL:
    Version:
    Port:
    Code:             503
    Host:
    Hostname:
    Cluster:
    IstioVersion:
    IP:
    Request Headers:  map[]
    Response Headers: map[Content-Length:[145] Content-Type:[text/plain] Date:[Sun, 09 Oct 2022 01:19:57 GMT] Server:[envoy]]

I'm having the same problem with one of my services. Did you figure out how to solve this problem?

It seems that the cluster has a bad  network.

Such as the workload can not visit the istiod , ingress or egress's service .And custom CNI may cause this.
Maybe some service does not effect.

Of course, we meet the same problem under the different status.

I see. Did you resolve the issue by configuring istio-proxy or make change within your services?

No. I only change and check the CNI.

Can you elaborate?

Try this! Please provide feedback. I'm trying to find a solution for istio/envoy and nodejs apps (with 5sec default keepAlive)
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: fix-for-nodejs
  namespace: "${kubernetes_namespace_v1.istio_namespace.metadata[0].name}"
spec:
  configPatches:
  - applyTo: CLUSTER
    match:
      cluster:
      context: SIDECAR_OUTBOUND
    patch:
      operation: MERGE
      value:
        typed_extension_protocol_options:
          envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
            '@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
            common_http_protocol_options:
              idle_timeout: 4s
            use_downstream_protocol_config:
              http2_protocol_options: {}
              http_protocol_options: {}
  - applyTo: CLUSTER
    match:
      cluster:
      context: SIDECAR_INBOUND
    patch:
      operation: MERGE
      value:
        typed_extension_protocol_options:
          envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
            '@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
            common_http_protocol_options:
              idle_timeout: 4s
            use_downstream_protocol_config:
              http2_protocol_options: {}
              http_protocol_options: {}


Fail To Load Key

Fail To Load Key: ['backbone.backbone.stem.conv.conv.weight', 'backbone.backbone.stem.conv.bn.weight', 'backbone.backbone.stem.conv.bn.bias', 'backbone.backbone.stem.conv.bn.running_mean', 'backbone.backbone.stem.conv.bn.running_var', 'backbone.backbone.stem.conv.bn.num_batches_tracked', 'backbone.backbone.dark2.0.conv.weight', 'backbone.backbone.dark2.0.bn.weight', 'backbone.backbone.dark2.0.bn.bias', 'backbone.backbone.dark2.0.bn.running_mean', 'backbone.backbone.dark2.0.bn.running_var', 'backbone.backbone.dark ……
Fail To Load Key num: 216

You should download my latest .pth file and use it in the netural networks.


Draw toolbox text overflow

Hi, I have setup ngx-leaflet-draw on my local, on Angular 6, and when trying the drawing function the toolbox come out looking like this. Is there any pointers that you can give on why this is happening?

It looks like the styles might be missing for leaflet draw. Did you follow the instructions for loading the styles (https://github.com/Asymmetrik/ngx-leaflet-draw#import-the-leaflet-stylesheet)?

Closing this as answered


DecimalConvert still not working for ES computer

I've  been testing for a while, and I've found a solution for the issue.
The .Replace(',', '.') didn't fix it properly.
The following code works fine in my computer (I assume should work properly in all computers due to the CultureInfo).
    public override decimal Convert(string value)
    {
        decimal decimalValue = 0;
        if (value != null)
            decimal.TryParse(value.Replace(',', '.'), NumberStyles.AllowDecimalPoint, new CultureInfo("en-US"), out decimalValue);

        return decimalValue;
    }

I'm not sure if it's necessary change it in other places (I haven't found a DoubleConvert, FloatConverter or other type of decimal)

Probably it's taking the Threads culture when parsing. Going to force en-US for this.

Related to #26

Resolved on version 3.3.0


Add example of image segmentation task

There should be an example (notebook) that shows how to deal with this kind of problem. Additionally, it could show how to load images and segmentation masks on the fly.

Hello Benjamin, after all your help and some experiments I am able to provide you more materials and experiments that will not restrict other people to only training.

Solution to perform only training
With two separated dataset extractors inherited from PyTorch Dataset

n_classes = 12

network = SegNet(in_channels=3, n_classes=n_classes)
network.init_encoder()

network.cuda()

net = skorch.NeuralNet(
    module=network,
    criterion=torch.nn.CrossEntropyLoss,
    train_split=None,
    use_cuda=True,
    batch_size=5,
    callbacks__train_loss__target_extractor=lambda x: x,
    callbacks__valid_loss__target_extractor=lambda x: x
)

net.fit(X=X, y=Y)

In this case, the training perform correctly.

Solution to perform grid search
This solution also work with the fit (only training), or also even with the grid search.
n_classes = 12

network = SegNet(in_channels=3, n_classes=n_classes)
network.init_encoder()

network.cuda()

net = skorch.NeuralNet(
    module=network,
    criterion=torch.nn.CrossEntropyLoss,
    train_split=None,
    use_cuda=True,
    batch_size=5,
)

params = {
    'lr': [0.01, 0.02],
    'max_epochs': [5, 10]
}

# if only training
# net.fit(X=X, y=y)

image_indicators = np.hstack([np.repeat(i, len(x)) for i, x in
                                      enumerate(X)])
labels = image_indicators % n_classes
X, y = np.vstack(X), np.hstack(Y)

cv = LeavePLabelOut(labels=labels, p=1)
gs = GridSearchCV(net, params, scoring='f1', verbose=10, cv=cv, n_jobs=-1)

gs.fit(X=X, y=y)
print(gs.best_score_, gs.best_params_)

Will allow a grid search after some GPU parallel processing tweaks and initializations (spawn start method).

Hope this will help you and other guys that want to perform grid search on segmentation processes.

I am in the process of creating an image segmentation tutorial with data from https://www.kaggle.com/c/data-science-bowl-2018. The training dataset is less than 100MB compressed, which makes it ideal for a tutorial.

Just out of curiosity, what architecture will you choose? Do you use some other library for this or start from scratch?

Given the problem is a binary segmentation problem, I am building a UNet with a VGG11 as a feature encoder. The VGG11 weights are frozen while the decoder weights are updated.
torchvision is the only other explicit dependency. Since installing torchvision also installs Pillow, Pillow is used for any image augmentation.

Nice, I'm eager to see your work. There are a couple of unet implementations in pytorch out there, though they often differ from one another and the paper(s). Do you plan on testing dilated convolutions?


Move UUID out of the path and into a query paramater

Currently the UUID is stored in the path e.g. https://screener.myfriendben.org/c59c3442-23e9-4294-abc8-1848151f69b2. This complicates things in google analytics & looker studio as those platforms expect that type of value to be in a url param. We should move the UUID to a param like https://screener.myfriendben.org?uuid=c59c3442-23e9-4294-abc8-1848151f69b2 but we need to insure the old format url redirects to the new one for backwards compatibility for users who have bookmarked the current format.

Sprint 1/2 - can we send UUID to google tag manager?
@CalebPena to check with Rodney


[modify] update gems to use latest faraday

Coverage remained the same at 84.51% when pulling 5c3e4a5fb9e35b427c71e018a1d95f59dd21b88d on pr-update-gems into c48ab0ecca176a4615f27795f8e6873080815c2a on master.


Wireguard internet access

https://github.com/hwdsl2/wireguard-install/issues/1
Understood, at what moment there is an error described above. Everything works fine until the first reboot of the server. After a reboot, the problem recurs. That is, the handshake goes well, but there is no Internet access.
Please tell me what information to provide you so that you can possibly help me.

@anartikov Hello! This could be an IPTables issue. Can you post the IPTables rules from your server?
sudo iptables -nvL; sudo iptables -nvL -t nat

Also post the contents of /etc/sysconfig/iptables if the file exists.

[root@nartserv2 ~]# sudo iptables -nvL; sudo iptables -nvL -t nat
Chain INPUT (policy ACCEPT 641 packets, 37212 bytes)
pkts bytes target     prot opt in     out     source               destination
0     0 DROP       udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0                                                                                udp dpt:1701 policy match dir in pol none
10   431 DROP       all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0                                                                                ctstate INVALID
36956   33M ACCEPT     all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0                                                                                ctstate RELATED,ESTABLISHED
11  3792 ACCEPT     udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0                                                                                multiport dports 500,4500
2   214 ACCEPT     udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0                                                                                udp dpt:1701 policy match dir in pol ipsec
0     0 DROP       udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0                                                                                udp dpt:1701
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
7   835 DROP       all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0                                                                                ctstate INVALID
230  257K ACCEPT     all  --  eth0   ppp+    <IP_ADDRESS>/0            <IP_ADDRESS>/0                                                                                ctstate RELATED,ESTABLISHED
114 24033 ACCEPT     all  --  ppp+   eth0    <IP_ADDRESS>/0            <IP_ADDRESS>/0
0     0 ACCEPT     all  --  ppp+   ppp+    <IP_ADDRESS>/24      <IP_ADDRESS>                                                                                /24
0     0 ACCEPT     all  --  eth0   *       <IP_ADDRESS>/0            <IP_ADDRESS>                                                                                /24      ctstate RELATED,ESTABLISHED
0     0 ACCEPT     all  --  *      eth0    <IP_ADDRESS>/24      <IP_ADDRESS>/0
392 85125 DROP       all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0
Chain OUTPUT (policy ACCEPT 37598 packets, 33M bytes)
pkts bytes target     prot opt in     out     source               destination
Chain PREROUTING (policy ACCEPT 1064 packets, 130K bytes)
pkts bytes target     prot opt in     out     source               destination
Chain INPUT (policy ACCEPT 648 packets, 39668 bytes)
pkts bytes target     prot opt in     out     source               destination
Chain OUTPUT (policy ACCEPT 700 packets, 45940 bytes)
pkts bytes target     prot opt in     out     source               destination
Chain POSTROUTING (policy ACCEPT 701 packets, 47220 bytes)
pkts bytes target     prot opt in     out     source               destination
21  3634 MASQUERADE  all  --  *      eth0    <IP_ADDRESS>/24      <IP_ADDRESS>/0
0     0 MASQUERADE  all  --  *      eth0    <IP_ADDRESS>/24      <IP_ADDRESS>/0                                                                                policy match dir out pol none

/etc/sysconfig/iptables
Modified by hwdsl2 VPN script
Generated by iptables-save v1.4.21 on Thu Oct 18 18:52:13 2018
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s <IP_ADDRESS>/24 -o eth0 -j MASQUERADE
-A POSTROUTING -s <IP_ADDRESS>/24 -o eth0 -m policy --dir out --pol none -j MASQUERADE
COMMIT
Completed on Thu Oct 18 18:52:13 2018
Generated by iptables-save v1.4.21 on Thu Oct 18 18:52:13 2018
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p udp -m udp --dport 1701 -m policy --dir in --pol none -j DROP
-A INPUT -m conntrack --ctstate INVALID -j DROP
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p udp -m multiport --dports 500,4500 -j ACCEPT
-A INPUT -p udp -m udp --dport 1701 -m policy --dir in --pol ipsec -j ACCEPT
-A INPUT -p udp -m udp --dport 1701 -j DROP
-A FORWARD -m conntrack --ctstate INVALID -j DROP
-A FORWARD -i eth0 -o ppp+ -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i ppp+ -o eth0 -j ACCEPT
-A FORWARD -s <IP_ADDRESS>/24 -d <IP_ADDRESS>/24 -i ppp+ -o ppp+ -j ACCEPT
-A FORWARD -d <IP_ADDRESS>/24 -i eth0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -s <IP_ADDRESS>/24 -o eth0 -j ACCEPT
-A FORWARD -j DROP
COMMIT
Completed on Thu Oct 18 18:52:13 2018

@anartikov Your IPTables rules does not contain any rules for WireGuard, only IPsec. Try:
systemctl enable --now wg-iptables.service
systemctl enable --now<EMAIL_ADDRESS>
If this doesn't work, remove and re-install WireGuard from this repo.

Hello,
I had the same issue as @anartikov.
I have done your workarround, but it still does not work... even after a new fresh install.
This is what the IPTables rules look like from my server when the problem occurs (after a reboot)
sudo iptables -nvL; sudo iptables -nvL -t nat

Chain INPUT (policy ACCEPT 9099 packets, 718K bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 DROP       udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            udp dpt:1701 policy match dir in pol none
    3   120 DROP       all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            ctstate INVALID
75871 9509K ACCEPT     all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            ctstate RELATED,ESTABLISHED
    3  2746 ACCEPT     udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            multiport dports 500,4500
    0     0 ACCEPT     udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            udp dpt:1701 policy match dir in pol ipsec
    0     0 DROP       udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            udp dpt:1701

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 DROP       all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            ctstate INVALID
    0     0 ACCEPT     all  --  ens5   ppp+    <IP_ADDRESS>/0            <IP_ADDRESS>/0            ctstate RELATED,ESTABLISHED
    0     0 ACCEPT     all  --  ppp+   ens5    <IP_ADDRESS>/0            <IP_ADDRESS>/0
    0     0 ACCEPT     all  --  ppp+   ppp+    <IP_ADDRESS>/0            <IP_ADDRESS>/0
   84 29578 ACCEPT     all  --  ens5   *       <IP_ADDRESS>/0            <IP_ADDRESS>/24      ctstate RELATED,ESTABLISHED
   74 21286 ACCEPT     all  --  *      ens5    <IP_ADDRESS>/24      <IP_ADDRESS>/0
    0     0 ACCEPT     all  --  *      ppp+    <IP_ADDRESS>/24      <IP_ADDRESS>/0
  148  9361 DROP       all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0

Chain OUTPUT (policy ACCEPT 66559 packets, 32M bytes)
 pkts bytes target     prot opt in     out     source               destination
Chain PREROUTING (policy ACCEPT 8571 packets, 565K bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain INPUT (policy ACCEPT 8408 packets, 548K bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 145 packets, 10564 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain POSTROUTING (policy ACCEPT 145 packets, 10564 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 MASQUERADE  all  --  *      ens5    <IP_ADDRESS>/24      <IP_ADDRESS>/0
   10  7041 MASQUERADE  all  --  *      ens5    <IP_ADDRESS>/24      <IP_ADDRESS>/0            policy match dir out pol none

After a fresh install, this is what it looks like:
sudo iptables -nvL; sudo iptables -nvL -t nat

Chain INPUT (policy ACCEPT 18619 packets, 1530K bytes)
 pkts bytes target     prot opt in     out     source               destination
    1   176 ACCEPT     udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            udp dpt:51820
    0     0 DROP       udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            udp dpt:1701 policy match dir in pol none
    3   120 DROP       all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            ctstate INVALID
 154K   19M ACCEPT     all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            ctstate RELATED,ESTABLISHED
    3  2746 ACCEPT     udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            multiport dports 500,4500
    0     0 ACCEPT     udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            udp dpt:1701 policy match dir in pol ipsec
    0     0 DROP       udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            udp dpt:1701

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            state RELATED,ESTABLISHED
    0     0 ACCEPT     all  --  *      *       <IP_ADDRESS>/24          <IP_ADDRESS>/0
    0     0 DROP       all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            ctstate INVALID
    0     0 ACCEPT     all  --  ens5   ppp+    <IP_ADDRESS>/0            <IP_ADDRESS>/0            ctstate RELATED,ESTABLISHED
    0     0 ACCEPT     all  --  ppp+   ens5    <IP_ADDRESS>/0            <IP_ADDRESS>/0
    0     0 ACCEPT     all  --  ppp+   ppp+    <IP_ADDRESS>/0            <IP_ADDRESS>/0
  222 83218 ACCEPT     all  --  ens5   *       <IP_ADDRESS>/0            <IP_ADDRESS>/24      ctstate RELATED,ESTABLISHED
  184 51985 ACCEPT     all  --  *      ens5    <IP_ADDRESS>/24      <IP_ADDRESS>/0
    0     0 ACCEPT     all  --  *      ppp+    <IP_ADDRESS>/24      <IP_ADDRESS>/0
  248 15585 DROP       all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0

Chain OUTPUT (policy ACCEPT 135K packets, 65M bytes)
 pkts bytes target     prot opt in     out     source               destination
Chain PREROUTING (policy ACCEPT 17392 packets, 1152K bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain INPUT (policy ACCEPT 17106 packets, 1115K bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 171 packets, 12363 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain POSTROUTING (policy ACCEPT 171 packets, 12363 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 MASQUERADE  all  --  *      ens5    <IP_ADDRESS>/24      <IP_ADDRESS>/0
   29 19960 MASQUERADE  all  --  *      ens5    <IP_ADDRESS>/24      <IP_ADDRESS>/0            policy match dir out pol none
    0     0 SNAT       all  --  *      *       <IP_ADDRESS>/24         !<IP_ADDRESS>/24          to:<IP_ADDRESS>

After a quick visual analysis, I notice that the last line has disappeared:
    0     0 SNAT       all  --  *      *       <IP_ADDRESS>/24         !<IP_ADDRESS>/24          to:<IP_ADDRESS>

I think that the problem comes from the, as if this rule was "temporary", and as soon as we restart, this one is not effective anymore...
Do you have an idea ?
best regards,

@archidote Hello! Please try:
systemctl restart wg-iptables.service

Then check the IPTables rules again. The missing rules should be back after that. Let us know if this works for you. If so, add the command above to your /etc/rc.local.

@hwdsl2
I did it. After adding the command everything works well after a reboot. Thanks

@archidote Hello! Please try:
systemctl restart wg-iptables.service

Then check the IPTables rules again. The missing rules should be back after that. Let us know if this works for you. If so, add the command above to your /etc/rc.local.

Hello @hwdsl2 ,
First of all thank your for your answer.
I have done what you said previously and it works !
But in my point of view, the behaviour of iptables is very strange because,
If i do
systemctl restart wg-iptables.service

it works
but, if I do as following (because I'm a little bit curious ^^)
systemctl start wg-iptables.service

It does not work anymore ^^ iptables is still a mystery to me...
I run a Debian 11 fully updated server...
Maybe you can modify the wireguard-install.sh to auto add
systemctl restart wg-iptables.service

in /etc/rc.local ?
I think that It will help a lot of people in the futur. I saw on many forum/topics that some peoples had the same issue than us.
Best regards,
I look foward to hearing from you

@archidote Thank you for the update. The reason that systemctl start wg-iptables.service doesn't work is because the service is already started, and it only adds the necessary IPTables rules when starting. On the other hand, systemctl restart works.
Make sure that your /etc/rc.local is executable by running:
chmod +x /etc/rc.local

Then reboot the server and check again. It should work. I plan to add a fix for this in the script.

@hwdsl2
So according to my investigations:
What you told me about /etc/rc.local works fine. BUT (IN MY CASE),
I had already installed a VPN from one of your scripts
(https://github.com/hwdsl2/setup-ipsec-vpn)
after re-reading my rc.local file, I noticed that some instructions were already present in this file (from your script :)
In my case, the problem was obviously the "exit 0".
I commented it, and since then everything is working again. rc.local is running fine.
Here is my /etc/rc.local configuration:
#!/bin/sh

# Added by hwdsl2 VPN script (L2TP/ipsec/ikev2)
(sleep 15
service ipsec restart
service xl2tpd restart
echo 1 > /proc/sys/net/ipv4/ip_forward)&
#exit 0

# manually edit hwdsl2 wireguard vpn script
systemctl restart wg-iptables.service
# echo "hello" >> /tmp/test.txt

and the rights of the file :
-rwxr-xr-x 1 root root 259 Nov 17 16:47 rc.local

For all, here is a reconfiguration from scratch that I just did and that worked well even after reboots :
root@debian:~# wget -O wireguard.sh https://get.vpnsetup.net/wg
Saving to: ‘wireguard.sh’
2022-11-17 16:53:03 (14.0 MB/s) - ‘wireguard.sh’ saved [31498/31498]

root@debian:~# sudo bash wireguard.sh --auto

WireGuard Script
https://github.com/hwdsl2/wireguard-install

Starting WireGuard setup using default options.

Server IP: x.x.x.x
Port: UDP/51820
Client name: client
Client DNS: Google Public DNS

Installing WireGuard, please wait...
+ apt-get -yqq update
+ apt-get -yqq install wireguard qrencode
+ systemctl enable --now wg-iptables.service
+ systemctl enable --now<EMAIL_ADDRESS>

████ ▄▄▄▄▄ █▀▄▀█▀▀▄ ▀▀▄█ ▄▀█ ▀▀▀▄▄ ▄▄▀▄▀█▄█▄▄█▄▀▀ ▄▀█▄█▀▄██▄▀█ ▄▄▄▄▄ ████
↑ That is a QR code containing the client configuration.

Finished!

The client configuration is available in: /root/client.conf
New clients can be added by running this script again.
root@debian:~# nano /etc/rc.local
root@debian:~# nano /etc/rc.local
root@debian:~# echo "systemctl restart wg-iptables.service" >> /etc/rc.local
root@debian:~# cat /etc/rc.local | tail -1
systemctl restart wg-iptables.service
root@debian:~# sudo iptables -nvL; sudo iptables -nvL -t nat
Chain INPUT (policy ACCEPT 805 packets, 220K bytes)
 pkts bytes target     prot opt in     out     source               destination
    2   352 ACCEPT     udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            udp dpt:51820
[...]

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            state RELATED,ESTABLISHED
    0     0 ACCEPT     all  --  *      *       <IP_ADDRESS>/24          <IP_ADDRESS>/0
[...]
Chain POSTROUTING (policy ACCEPT 146 packets, 10708 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 MASQUERADE  all  --  *      ens5    <IP_ADDRESS>/24      <IP_ADDRESS>/0
    0     0 MASQUERADE  all  --  *      ens5    <IP_ADDRESS>/24      <IP_ADDRESS>/0            policy match dir out pol none
    0     0 SNAT       all  --  *      *       <IP_ADDRESS>/24         !<IP_ADDRESS>/24          to:<IP_ADDRESS>

root@debian:~# reboot # test if after a reboot, the rule is correctly charged
Connection to <IP_ADDRESS> closed by remote host.
Connection to <IP_ADDRESS> closed.

┌──(kali㉿kali)-[~]
└─$ ssh<EMAIL_ADDRESS>-p 2019
root@debian:~# sudo iptables -nvL; sudo iptables -nvL -t nat
Chain INPUT (policy ACCEPT 3849 packets, 1177K bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     udp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            udp dpt:51820
[...]
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            state RELATED,ESTABLISHED
    0     0 ACCEPT     all  --  *      *       <IP_ADDRESS>/24          <IP_ADDRESS>/0
[...]
Chain POSTROUTING (policy ACCEPT 188 packets, 13001 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 MASQUERADE  all  --  *      ens5    <IP_ADDRESS>/24      <IP_ADDRESS>/0
    0     0 MASQUERADE  all  --  *      ens5    <IP_ADDRESS>/24      <IP_ADDRESS>/0            policy match dir out pol none
    5   306 SNAT       all  --  *      *       <IP_ADDRESS>/24         !<IP_ADDRESS>/24          to:<IP_ADDRESS>
root@debian:~#

++

@archidote Thanks for the update. A fix has been applied in f50b376 for this issue.


Can't initialize integration after 2024.4

Integration will not load.

Same, please let me know if I can provide any logs etc that could help. Thanks!

Sorry, I don't have time to look into this right now. Could not fix it easily, there is some issue introduced to the modbus wrapper on HA after making it async.
I would hold on updating/roll back for now.

2024.4.0 Integration not working:(

@AdamGrumlik - see viesta's comment above.
He's the author of the integration, is aware of the issue with 2024.4 but doesn't have time to look at this at the moment.
Best advise at this point is to roll back for now if you've already updated and the Nilan integration is required. 👍🏻

I think I've found the issue,
HA ModbusHub is now fully async:
https://github.com/home-assistant/core/commit/7cba34b2e6b53621e6188ff2b473a3553e72bdcd
and thus the success = await self._modbus.async_setup()(device.py) call does no longer wait for the connection to be established.
in my local workaround i've added a await asyncio.sleep(10) right after to get it running again for now.
Though this is far from a beautiful solution it works for now.
(+ I've added the await before await self._modbus.async_close() to avoid another error)

Great! Can you make a pull request?

https://github.com/veista/nilan/pull/124


File Formats

Component to Improve
Core Engine / Documentation / Other
Describe Your Suggestion
every single definition file being .json makes pinning down the type of definition/chira file impossible without depending on folders/parsing every single json file for chira info. Meaning that every time we'd need to make sure you're not trying to load a model definition as a texture definition we'd have to parse the file for every type of chira data, and then only load the file if it has what we need.
We shouldn't be doing that. We shouldn't have to guess the type of definition.
we should pin down a naming scheme for the special formats and maybe also how these formats will work.
for naming I was thinking C + 3/2 letter shorthand for the type
Ex. CMDL, CTEX, CMAT, CSCN, CPK
for CMDL's functionality I was thinking about using JSON format GLTF files with modifications made for Chira specific definitions so we don't have to worry about OBJ or whatever not containing something we might need.
Though we could also look into the DAE format. other formats are welcome to be suggested but if meshes are to be made separate they MUST not be named CMDL as that would leave zero room for a good name for model definitions.
Model being a full textured/lit group of meshes/singular mesh complete with any armature/bones/animations
Mesh being a group of polys that make up a model.

Agreed, I like the name scheme too


EmptyAlias not exported

https://github.com/nemtech/nem2-sdk-typescript-javascript/blob/819fcfe4dd5600ca5b30d22291a19b17436ae2f0/src/model/model.ts#L71
can you please add EmptyAlias in there?

Already export * from PlainMessage . No need to export plainMessage separately


Updated README: Made freeCodeCamp.org mentions clickable

Signed-off-by: Stefan Wessels Beljaars<EMAIL_ADDRESS>
[X] I have read freeCodeCamp's contribution guidelines.
[X] My pull request has a descriptive title (not a vague title like Update index.md)
[X] My pull request targets the master branch of freeCodeCamp.
[X] None of my changes are plagiarized from another source without proper attribution.
[X] My article does not contain shortened URLs or affiliate links.

@stefanscript This looks solid. Thanks!
I can't resolve the merge conflicts though because you didn't used the master branch. Could you create a separate branch, make your changes on that branch, then open a pull request to merge that branch into freeCodeCamp's master branch?
Happy to answer questions about this if you have any :)


Collect a set of standard test studies

From @jfphilbin on July 22, 2016 18:34
Copied from original issue: OpenDICOMweb/core#7

Sent Box location to Sharath.
Sharath will upload test studies.
Assigned to Sharath until studies are uploaded.
Sharath to reassign to Jim when all studies uploaded.


Insufficient error reporting for shader editor when doing implicit conversions (feature discussion).

Godot version:
3.1 master
OS/device including version:
Fedora 28 64 bit.
Issue description:
Implicit conversions in the shader language usually results in an indicated error (with the red line and the error message at the bottom of the editor). Example
int i = 1.0;
"error(lineno): Invalid assignment of float to int"

However, if using implicit conversion in an if-statement the gles shader will fail to compile, showing the error only in the output error log.
if (1.0) { }

The logs show error C7011: implicit cast from "float" to "bool".
What is a problem though is that if you're using clear color environment shader that will break too and turn completely white. When first running into this problem, it is confusing that you break the environment somehow even though the editor is showing no errors.
Don't know what the policy here is, but if you break the compilation of the gles shader I think it would be appropriate to not compile it and indicate an error directly in the editor, if nothing else to be consistent with how other implicit conversion errors are reported.
Steps to reproduce:
In vertex or fragment:
if (1.0) { }

This is the result in 3.2.2 rc3

Seems resolved.


Blsct arith classes with tests

For issue #42

Reviewed the original implementation of Scalar and G1Point and made necessary changes
Added tests for each exposed methods of Scalar and G1Point
Added Elements class that represents a vector of Scalar and G1Point classes
Added operator overloads to Scalar, G1Point and Elements classes to improve readability of code
Confirmed that Scalar, G1Point and Elements provide enough functionalities to implement a range proof by adding a test that implemented a range proof

Getting an error when building locally:
blsct/arith/elements.cpp:115:17: error: 'm_vec' is a private member of 'Elements<G1Point>'
            ret.m_vec.push_back(m_vec[i] * other[i]);
                ^
blsct/arith/elements.cpp:123:45: note: in instantiation of member function 'Elements<Scalar>::operator*' requested here
template Elements<Scalar> Elements<Scalar>::operator*(const Elements<Scalar>& other) const;
                                            ^
./blsct/arith/elements.h:84:20: note: declared private here
    std::vector<T> m_vec;
                   ^
blsct/arith/elements.cpp:108:17: error: 'm_vec' is a private member of 'Elements<Scalar>'
            ret.m_vec.push_back(m_vec[i] * other[i]);
                ^
blsct/arith/elements.cpp:124:47: note: in instantiation of member function 'Elements<G1Point>::operator*' requested here
template Elements<G1Point> Elements<G1Point>::operator*(const Elements<Scalar>& other) const;
                                              ^
./blsct/arith/elements.h:84:20: note: declared private here
    std::vector<T> m_vec;
                   ^
blsct/arith/elements.cpp:139:17: error: 'm_vec' is a private member of 'Elements<G1Point>'
            ret.m_vec.push_back(m_vec[i] * s);
                ^
blsct/arith/elements.cpp:147:45: note: in instantiation of member function 'Elements<Scalar>::operator*' requested here
template Elements<Scalar> Elements<Scalar>::operator*(const Scalar&) const;
                                            ^
./blsct/arith/elements.h:84:20: note: declared private here
    std::vector<T> m_vec;
                   ^
blsct/arith/elements.cpp:132:17: error: 'm_vec' is a private member of 'Elements<Scalar>'
            ret.m_vec.push_back(m_vec[i] * s);
                ^
blsct/arith/elements.cpp:148:47: note: in instantiation of member function 'Elements<G1Point>::operator*' requested here
template Elements<G1Point> Elements<G1Point>::operator*(const Scalar& s) const;
                                              ^
./blsct/arith/elements.h:84:20: note: declared private here
    std::vector<T> m_vec;
                   ^
21 warnings and 4 errors generated.
make[2]: *** [blsct/arith/libbitcoin_node_a-elements.o] Error 1

Environment:
Apple clang version 13.1.6 (clang-13<IP_ADDRESS>)
Target: arm64-apple-darwin21.2.0

it seems that gcc allows accessing private member of the same template class regardless of its instantiation type is, but clang is more strict. i made the member vetor variable public since G1Point ans Scalar do so as well. i confirmed that now the code builds on clang environment

it seems that gcc allows accessing private member of the same template class regardless of its instantiation type is, but clang is more strict. i made the member vetor variable public since G1Point ans Scalar do so as well. i confirmed that now the code builds on clang environment

confirmed it now builds locally on my MacBook Pro 👍

One of the tests fails for me:
% ./src/test/test_navcoin
Running 587 test cases...
test/blsct/arith/integration_tests.cpp:30: error: in "test_integration_invert_zero": check x.Pow(zero) == x.Pow(zero.Invert()) has failed

*** 1 failure is detected in the test module "Navcoin Core Test Suite"

@aguycalled The test was originally created to test FirstNPow for a case where y is 0:
    // (64)
    auto hhp = hh * Scalars::FirstNPow(n, y.Invert());

but now i think the test is not necessary since y is in Z^*_p and non-zero.
Also since multiplying any element by its invese results in unit element 1 and multiplying any element by 0 results in 0, I think the inverse of 0 in Z_p is undefined. It probably just happes to return 0 on x86_64 implementation.
So I removed the test and added another test case for Scalars::FirstNPow to test if it always return alist that starts with 1 regardless of the value of base value instead.
Can you try again?

@aguycalled The test was originally created to test FirstNPow for a case where y is 0:
    // (64)
    auto hhp = hh * Scalars::FirstNPow(n, y.Invert());

but now i think the test is not necessary since y is in Z^*_p and non-zero.
Also since multiplying any element by its invese results in unit element 1 and multiplying any element by 0 results in 0, I think the inverse of 0 in Z_p is undefined. It probably just happes to return 0 on x86_64 implementation.
So I removed the test and added another test case for Scalars::FirstNPow to test if it always return alist that starts with 1 regardless of the value of base value instead.
Can you try again?

All the tests pass for me now 👍
% ./src/test/test_navcoin
Running 586 test cases...

*** No errors detected

Maybe, Scalar::Invert() should throw an exception if the value is zero.

I think this would be a good idea, since we are not supposed to use a zero value in Scalar right?

sure. i will make the input 0 throw an exception


Implement Notification API

See https://w3c.github.io/wot-discovery/#exploration-directory-api-notification

Event storage data e.g.:
[
   {
      "id": "auto increment",
      "event": "event type",
      "data" : "full td",
      "jsonpath" : "$[?(@.type=='temperature')]",
      "xpath"      : ""
   }
]

storing jsonpath and xpath would not be helpful considering since

an event might match multiple jsonpath/xpath expressions
Server stores it unnecessarily if a client unsubscribes and never comes back
a client can subscribe with a new set of jsonpath/xpath filters by passing an old Last-Event-ID  (in case of m2m communication, this would not happen)

So I propose to store the events this way
[
   {
      "id": "auto increment",
      "event": "event type",
      "data" : "id of the TD"
   }
]

In case of create event type, the server can lookup the created TD and pass it on as part of the data
in case of delete event type , as per the spec, server does not have to send the full td
in case of update event type, the past history will be lost and only the latest td will be given. I hope this is fine as the spec also does not specify the exact behavior and usage of this information still needs to be investigated from client's perspective.  In future, in case the server needs to provide the exact change history, it can add a new field called "updatedFields" in the events history where it only stores the updates of the TD.
Filtering: Filtering can still be applied to the TDD registry and matching TDD IDs can be looked up from the history of events.

We need to maintain the data history to deliver events to disconnected clients as they originally happened.
Updated model to also consider equivalent query expressions:
[
   {
      "id": "auto increment",
      "event": "event type",
      "data" : { full or partial td },
      "query" : [
          {"jsonpath"<EMAIL_ADDRESS>Temperature Sensor')]"},
          {"xpath": "*[title='Terrace Temperature Sensor'"}
      ]
   }
]

To calculate the patch document for update events:
https://pkg.go.dev/github.com/evanphx/json-patch#CreateMergePatch

Reference implementations:

https://gist.github.com/ismasan/3fb75381cd2deb6bfa9c
https://github.com/SubChord/go-sse
https://github.com/r3labs/sse


e2e: sbom test case automation

Fixes

https://issues.redhat.com/browse/HAC-3990
Description

e2e automation : SBOM

Validate SBOM link is displayed on components Tab.
Validate SBOM is displayed on Pipeline Run details.
Copy cosign Download sbom CMD and execute in terminal and verify.
Validate SBOM logs on Pipeline Run details by clicking on View SBOM link.

Type of change

[ ] Feature
[ ] Bugfix
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[x] Other (please describe): Test

Screen shots / Gifs for design review

How to test or reproduce?

Browser conformance:

[x] Chrome
[ ] Firefox
[ ] Safari
[ ] Edge

[test]

[test]

[test]


Autoplay option may have Garbage Collection problems

This is a (multiple allowed):

[x] bug
[ ] enhancement
[ ] feature-discussion (RFC)

What you did
Just using chrome dev tools Performance Panel, then recording 30s this page below:
280-autoplay.html
Expected Behavior
JS Heap and Listeners GC works good
Actual Behavior
JS Heap and Listeners GC looks have problems, not clean all

More detailed explanation will be good, what means works good or have problems?

when switching autoplay to true, GC collection not clean all each times, and memory cost increasing
you can see the memory curve below picture,
http://program.vipjr.com/ this website is an online demo, you can using Chrome Dev tool to measure the memory cost,
http://idangero.us/swiper/demos/280-autoplay.html this demo also have the same problem

I wonder anyone also have this problem? the number of listener keep increasing in autoplay mode.
I use version 4.2.0


Make Vertical Scroll the default settings

Hello! When an epub is opened, it automatically opens with the "Spread Page" setting. Is there a way to make every epub file automatically open with the vertical Scroll setting. Thanks for reading!!

@E-TechDev
The default view mode is defined with "reader-view-mode" option in the preset file bibi/presets/default.js.
If you change the value of it from "paged" to "vertical", the default view mode of your Bibi is changed to the vertical scrolling view.
Please try it. Thanks.