- Follow the instructions here to enable WER. Make sure the
DumpTypeis set to 2 (Full Dumps). - Make a new Module (static Class in C#) called
ProgramEntryPoint. - Copy the code written below and don't forget to change
YOUR_STARTUP_FORM_NAME_HERE. - Change project configuration to Debug
- Go to Project Properties. In the Application tab, uncheck "Enable application framework".
- Change Startup Object to
Sub Main. - Go to Debug -> Windows -> Exception Settings and make sure Common Language Runtime Exceptions is checked (full checked and not partially checked).
- Now whenever an unhandled exception occurs, your application will quit and a
.dmpfile will be created in the folder specified in theDumpFolderregistry key.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable } from '@angular/core'; | |
| import { Observable } from 'rxjs'; | |
| import { HttpClient } from '@angular/common/http'; | |
| // Injectable indicates a dependency injectable service | |
| // providedIn indicates the level at which components can access it | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class SimpleRequestService { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| This script is used to remove / reset outputs, execution numbers and metadata from .ipynb files for better version control. | |
| I created my own script to do this as I could not find any solution that performs all 3 operations properly. | |
| Usage: | |
| Put this script in the same directory as the jupyter notebook (.ipynb) files and run it. | |
| Note: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // GET request with params | |
| GET_with_params(): Observable<any> { | |
| const URL = 'YOUR_URL_HERE'; | |
| const params = new HttpParams() | |
| .set('param_key', 'param_value') | |
| .set('param_key2', 'param_value2'); | |
| return this.httpClient.get(URL, { params: params }); // returns an Observable | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // GET request with headers | |
| GET_with_headers(): Observable<any> { | |
| const URL = 'YOUR_URL_HERE'; | |
| const headers: new HttpHeaders({ | |
| 'Content-Type': 'application/json', | |
| 'Authorization': 'my-auth-token' | |
| }) | |
| return this.httpClient.get(URL, { headers: headers }); // returns an Observable | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| POST_with_FormData(fileblob): Observable<any> { | |
| const URL = 'YOUR_URL_HERE'; | |
| const data = new FormData(); | |
| data.append('product_Id', '123'); | |
| data.append('file', fileblob); | |
| return this.httpClient.post<any>(URL, data); // returns an Observable | |
| } |
Open regedit.exe,
go to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize and set both AppsUseLightTheme & SystemUsesLightTheme DWORDs to 0.
Alternatively, download and save the windows-dark-mode.reg file below as a .reg file and run it.
Source: https://old.reddit.com/r/Windows11/comments/o1l55u/how_do_i_enable_dark_mode_on_windows_11/h21f69b/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [tool.poetry] | |
| name = "local-demo" | |
| version = "0.1.0" | |
| description = "" | |
| authors = ["Your Name <[email protected]>"] | |
| readme = "README.md" | |
| [tool.poetry.dependencies] | |
| python = "~3.10" | |
| pyautogen = {path = "autogen", develop = true} |