Are you over 18 and want to see adult content?
More Annotations

A complete backup of https://unitedsiteservices.com
Are you over 18 and want to see adult content?

A complete backup of https://canplas.com
Are you over 18 and want to see adult content?

A complete backup of https://janjislot.com
Are you over 18 and want to see adult content?

A complete backup of https://cm-sintra.pt
Are you over 18 and want to see adult content?

A complete backup of https://workingamerica.org
Are you over 18 and want to see adult content?

A complete backup of https://simonandschuster.com.au
Are you over 18 and want to see adult content?

A complete backup of https://bestgamefaqs.com
Are you over 18 and want to see adult content?

A complete backup of https://singapore-tattoo.com
Are you over 18 and want to see adult content?

A complete backup of https://tanglewood.org
Are you over 18 and want to see adult content?

A complete backup of https://sonko-rb.ru
Are you over 18 and want to see adult content?

A complete backup of https://epson.com.ph
Are you over 18 and want to see adult content?

A complete backup of https://carshare.org
Are you over 18 and want to see adult content?
Favourite Annotations

A complete backup of apteka-melissa.pl
Are you over 18 and want to see adult content?

A complete backup of 14thstreetpizza.com
Are you over 18 and want to see adult content?

A complete backup of basuniahumanist.blogspot.com
Are you over 18 and want to see adult content?
Text
.NET DIARIES
The tilde matches the most recent patch version in the specified minor version. ~1.2.3 will match all 1.2.x versions but will miss 1.3.0. The caret, on the other hand, is more relaxed.It will update you to the most recent minor version in the specified major version. ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold off on 2.0.0. SHARE WIFI INTERNET WITH ETHERNET PORT ON RASPBERRY PI Share Wifi Internet with ethernet port on Raspberry Pi (bridge) If you want to share your wifi internet connection to a PC that doens’t have a wifi adapter, you can use a raspberry pi and follow these steps: sudo apt update. sudo apt full-upgrade. sudo apt dist-upgrade. sudo apt install network-manager network-manager-gnome. TFS: SCORCH / RECONCILE TO ENSURE SOURCE CONTROL AND THE Today looking at my tfs workspace I've found that its dimension was really huge than the real space that would taken from a clean download of the sources. This of course is because of all the binaries build for debug, release and all the other build configurations, but also from old the files, branches, projects, WINDOWS 10 REMOTE DESKTOP (RPD) USING MICROSOFT ACCOUNT Windows 10 Remote Desktop (RPD) using Microsoft Account (aka Live account) Log on as admin user with RDP. Create a local (not Microsoft account) account with the name that would be before the @ (i.e. qwerty if the MS email were qwerty@outlook.com) Give to the created local user the “Remote Desktop Users” rights. Now log off as admin. RABBITMQ: COMPLETELY HARD RESET A RABBITMQ SERVER Probably the most exciting thing of this post is the funny image of RabbitMQ's cleaner :) Yes, you can also reset the RabbitMQ instance, by running these commands: but sometimes could be necessary to clean up stuff, especially when you have played around cluster, multiple node on the same machine, ad so on. It took me a VISUAL STUDIO: CREATE SELF-SIGNED CERTIFICATE FOR When you want to create a ClickOnce deployment you should sign the automatically generated manifest using an Authenticode certificate, providing a certificate took from the local computer cert store or passing a .pfx file. To create an homemade self-signed .pfx file (for testing purpose only!!!), open the "Visual Studio Command Promt (2010)" or the "Developer INSTALLING MICROSOFT® WINDOWS POWERSHELL EXTENSIONS FOR Installing Microsoft® Windows PowerShell Extensions for Microsoft SQL Server 2016 (AKA sqlps) PORTING FROM SQLIO TO DISKSPD: HOW TO TEST DISK DISKSPD TESTS Original post related to SQLIO took from brentozar blog. The latest update to DiskSpd can be downloaded from https://aka.ms/diskspd. What Do the DISKSPD Parameters Mean? While we’re looking at that set of commands, here’s a quick breakdown: -w100 and -w0: means we’re testing writes (100% writes) or reads (0% writes). -t8 and -o32: means START ALL SERVICES FILTERING BY NAME AND STARTMODE Sometimes I need to start or restart a lot of services belonging to my application, all having the product / company name as prefix, and I would like to start it all, but not the ones that are flagged as Manual. To simple start all the services that match a prefix you woulddo something
HOW TO EXTEND/MIGRATE TRAITATTRIBUTE TO XUNIT V2 AND WHY In these days I was testing xUnit for the first time, and as a greedy developer, I started with the pre-release v2. Everything was great, except that I was trying to categories my tests in unit, integration, manual, and so on, to let me separate the CI tests from the ones, and I found misleading documentation out there, actually it was simply because there’s some breaking changes passing.NET DIARIES
The tilde matches the most recent patch version in the specified minor version. ~1.2.3 will match all 1.2.x versions but will miss 1.3.0. The caret, on the other hand, is more relaxed.It will update you to the most recent minor version in the specified major version. ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold off on 2.0.0. SHARE WIFI INTERNET WITH ETHERNET PORT ON RASPBERRY PI Share Wifi Internet with ethernet port on Raspberry Pi (bridge) If you want to share your wifi internet connection to a PC that doens’t have a wifi adapter, you can use a raspberry pi and follow these steps: sudo apt update. sudo apt full-upgrade. sudo apt dist-upgrade. sudo apt install network-manager network-manager-gnome. TFS: SCORCH / RECONCILE TO ENSURE SOURCE CONTROL AND THE Today looking at my tfs workspace I've found that its dimension was really huge than the real space that would taken from a clean download of the sources. This of course is because of all the binaries build for debug, release and all the other build configurations, but also from old the files, branches, projects, WINDOWS 10 REMOTE DESKTOP (RPD) USING MICROSOFT ACCOUNT Windows 10 Remote Desktop (RPD) using Microsoft Account (aka Live account) Log on as admin user with RDP. Create a local (not Microsoft account) account with the name that would be before the @ (i.e. qwerty if the MS email were qwerty@outlook.com) Give to the created local user the “Remote Desktop Users” rights. Now log off as admin. RABBITMQ: COMPLETELY HARD RESET A RABBITMQ SERVER Probably the most exciting thing of this post is the funny image of RabbitMQ's cleaner :) Yes, you can also reset the RabbitMQ instance, by running these commands: but sometimes could be necessary to clean up stuff, especially when you have played around cluster, multiple node on the same machine, ad so on. It took me a VISUAL STUDIO: CREATE SELF-SIGNED CERTIFICATE FOR When you want to create a ClickOnce deployment you should sign the automatically generated manifest using an Authenticode certificate, providing a certificate took from the local computer cert store or passing a .pfx file. To create an homemade self-signed .pfx file (for testing purpose only!!!), open the "Visual Studio Command Promt (2010)" or the "Developer INSTALLING MICROSOFT® WINDOWS POWERSHELL EXTENSIONS FOR Installing Microsoft® Windows PowerShell Extensions for Microsoft SQL Server 2016 (AKA sqlps) PORTING FROM SQLIO TO DISKSPD: HOW TO TEST DISK DISKSPD TESTS Original post related to SQLIO took from brentozar blog. The latest update to DiskSpd can be downloaded from https://aka.ms/diskspd. What Do the DISKSPD Parameters Mean? While we’re looking at that set of commands, here’s a quick breakdown: -w100 and -w0: means we’re testing writes (100% writes) or reads (0% writes). -t8 and -o32: means START ALL SERVICES FILTERING BY NAME AND STARTMODE Sometimes I need to start or restart a lot of services belonging to my application, all having the product / company name as prefix, and I would like to start it all, but not the ones that are flagged as Manual. To simple start all the services that match a prefix you woulddo something
HOW TO EXTEND/MIGRATE TRAITATTRIBUTE TO XUNIT V2 AND WHY In these days I was testing xUnit for the first time, and as a greedy developer, I started with the pre-release v2. Everything was great, except that I was trying to categories my tests in unit, integration, manual, and so on, to let me separate the CI tests from the ones, and I found misleading documentation out there, actually it was simply because there’s some breaking changes passing.NET DIARIES
The tilde matches the most recent patch version in the specified minor version. ~1.2.3 will match all 1.2.x versions but will miss 1.3.0. The caret, on the other hand, is more relaxed.It will update you to the most recent minor version in the specified major version. ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold off on 2.0.0. GETTING STARTED WITH AZURE POWERSHELL (CLASSIC) The simplest way to access your Azure subscription from PowerShell is to use the Add-AzureAccount cmdlet. 1. Add-AzureAccount. After executing the cmdlet a dialog will appear to prompt you to login with your Microsoft or Organization account. After you login, you will have access for 12 hours before you have to login again. POWERSHELL: SET THE LOCATION THE EXECUTING SCRIPT PATH I already knew about the proper way to get the executing path: but today I've saw another way to set the scope of the current location to a desired path (open-source code is the most powerful resource): NAME Push-Location SYNOPSIS Adds the current location to the top of a location stack. SYNTAX Push-Location PORTING FROM SQLIO TO DISKSPD: HOW TO TEST DISK DISKSPD TESTS Original post related to SQLIO took from brentozar blog. The latest update to DiskSpd can be downloaded from https://aka.ms/diskspd. What Do the DISKSPD Parameters Mean? While we’re looking at that set of commands, here’s a quick breakdown: -w100 and -w0: means we’re testing writes (100% writes) or reads (0% writes). -t8 and -o32: means HOW TO DEBUG THE DESIGN TIME ERRORS IN WPF XAML FILE It will launch the XDesProc.exe in Task Manager. Switch to app1 again, and go to Debug -> Attach to Processes context menu item in Menu bar of Visual Studio. Search the XDesProc.exe and click on attach button. Switch to app2 and close and reopen the same XAML document ( MainWindow.xaml ). Once you do it, break point will get hit! C#: ENABLE COOKIE CONTAINER ON SYSTEM.NET.WEBCLIENT (FOR C#: Enable Cookie Container on System.Net.WebClient (for Authentication) As I told on the previous post the WebClient can be easily extended to add more functionality such in this case the Cookie Container, and let use it to authenticate versus the web pages that are protected using an authenticated cookie: 1. 2. 3. HOW TO CREATE STRIPED DISK ON AZURE (AKA RAID 0) Disk Striping use multiple disks and stripe them together to get a combined higher IOPS and Throughput limit. Note that the combined limit per VM should be higher than the combined limits of attached premium disks. You can check the maximum number of disks you can add to a virtual machine from here: Sizes for Windows virtual HOW TO EXTEND/MIGRATE TRAITATTRIBUTE TO XUNIT V2 AND WHY In these days I was testing xUnit for the first time, and as a greedy developer, I started with the pre-release v2. Everything was great, except that I was trying to categories my tests in unit, integration, manual, and so on, to let me separate the CI tests from the ones, and I found misleading documentation out there, actually it was simply because there’s some breaking changes passing WPF: CONTENTCONTROL VS CONTENTPRESENTER A small post to explain the little but important difference between ContentControl and ContentPresenter. The most significant difference is that ContentPresenter has the ContentSource property while ContentControl hasn't. The ContentPresenter.ContentSource property specify which dependency property of the parent template instnace should be used to fill the WPF: ATTACHED PROPERTY IN XAML MARKUP (THE OBJECT Let's say you need an attached property to set an arbitrary header content to any DependencyObject, to let you use that value and populate the Header property of any HeaderedContentControl, creating the class directly in your WPF test application: Then you want to attach that property to an UserControl that when injected in a TabItemcan
.NET DIARIES
The tilde matches the most recent patch version in the specified minor version. ~1.2.3 will match all 1.2.x versions but will miss 1.3.0. The caret, on the other hand, is more relaxed.It will update you to the most recent minor version in the specified major version. ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold off on 2.0.0. SHARE WIFI INTERNET WITH ETHERNET PORT ON RASPBERRY PI Share Wifi Internet with ethernet port on Raspberry Pi (bridge) If you want to share your wifi internet connection to a PC that doens’t have a wifi adapter, you can use a raspberry pi and follow these steps: sudo apt update. sudo apt full-upgrade. sudo apt dist-upgrade. sudo apt install network-manager network-manager-gnome. TFS: SCORCH / RECONCILE TO ENSURE SOURCE CONTROL AND THE Today looking at my tfs workspace I've found that its dimension was really huge than the real space that would taken from a clean download of the sources. This of course is because of all the binaries build for debug, release and all the other build configurations, but also from old the files, branches, projects, WINDOWS 10 REMOTE DESKTOP (RPD) USING MICROSOFT ACCOUNT Windows 10 Remote Desktop (RPD) using Microsoft Account (aka Live account) Log on as admin user with RDP. Create a local (not Microsoft account) account with the name that would be before the @ (i.e. qwerty if the MS email were qwerty@outlook.com) Give to the created local user the “Remote Desktop Users” rights. Now log off as admin. RABBITMQ: COMPLETELY HARD RESET A RABBITMQ SERVER Probably the most exciting thing of this post is the funny image of RabbitMQ's cleaner :) Yes, you can also reset the RabbitMQ instance, by running these commands: but sometimes could be necessary to clean up stuff, especially when you have played around cluster, multiple node on the same machine, ad so on. It took me a VISUAL STUDIO: CREATE SELF-SIGNED CERTIFICATE FOR When you want to create a ClickOnce deployment you should sign the automatically generated manifest using an Authenticode certificate, providing a certificate took from the local computer cert store or passing a .pfx file. To create an homemade self-signed .pfx file (for testing purpose only!!!), open the "Visual Studio Command Promt (2010)" or the "Developer INSTALLING MICROSOFT® WINDOWS POWERSHELL EXTENSIONS FOR Installing Microsoft® Windows PowerShell Extensions for Microsoft SQL Server 2016 (AKA sqlps) PORTING FROM SQLIO TO DISKSPD: HOW TO TEST DISK DISKSPD TESTS Original post related to SQLIO took from brentozar blog. The latest update to DiskSpd can be downloaded from https://aka.ms/diskspd. What Do the DISKSPD Parameters Mean? While we’re looking at that set of commands, here’s a quick breakdown: -w100 and -w0: means we’re testing writes (100% writes) or reads (0% writes). -t8 and -o32: means START ALL SERVICES FILTERING BY NAME AND STARTMODE Sometimes I need to start or restart a lot of services belonging to my application, all having the product / company name as prefix, and I would like to start it all, but not the ones that are flagged as Manual. To simple start all the services that match a prefix you woulddo something
HOW TO EXTEND/MIGRATE TRAITATTRIBUTE TO XUNIT V2 AND WHY In these days I was testing xUnit for the first time, and as a greedy developer, I started with the pre-release v2. Everything was great, except that I was trying to categories my tests in unit, integration, manual, and so on, to let me separate the CI tests from the ones, and I found misleading documentation out there, actually it was simply because there’s some breaking changes passing.NET DIARIES
The tilde matches the most recent patch version in the specified minor version. ~1.2.3 will match all 1.2.x versions but will miss 1.3.0. The caret, on the other hand, is more relaxed.It will update you to the most recent minor version in the specified major version. ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold off on 2.0.0. SHARE WIFI INTERNET WITH ETHERNET PORT ON RASPBERRY PI Share Wifi Internet with ethernet port on Raspberry Pi (bridge) If you want to share your wifi internet connection to a PC that doens’t have a wifi adapter, you can use a raspberry pi and follow these steps: sudo apt update. sudo apt full-upgrade. sudo apt dist-upgrade. sudo apt install network-manager network-manager-gnome. TFS: SCORCH / RECONCILE TO ENSURE SOURCE CONTROL AND THE Today looking at my tfs workspace I've found that its dimension was really huge than the real space that would taken from a clean download of the sources. This of course is because of all the binaries build for debug, release and all the other build configurations, but also from old the files, branches, projects, WINDOWS 10 REMOTE DESKTOP (RPD) USING MICROSOFT ACCOUNT Windows 10 Remote Desktop (RPD) using Microsoft Account (aka Live account) Log on as admin user with RDP. Create a local (not Microsoft account) account with the name that would be before the @ (i.e. qwerty if the MS email were qwerty@outlook.com) Give to the created local user the “Remote Desktop Users” rights. Now log off as admin. RABBITMQ: COMPLETELY HARD RESET A RABBITMQ SERVER Probably the most exciting thing of this post is the funny image of RabbitMQ's cleaner :) Yes, you can also reset the RabbitMQ instance, by running these commands: but sometimes could be necessary to clean up stuff, especially when you have played around cluster, multiple node on the same machine, ad so on. It took me a VISUAL STUDIO: CREATE SELF-SIGNED CERTIFICATE FOR When you want to create a ClickOnce deployment you should sign the automatically generated manifest using an Authenticode certificate, providing a certificate took from the local computer cert store or passing a .pfx file. To create an homemade self-signed .pfx file (for testing purpose only!!!), open the "Visual Studio Command Promt (2010)" or the "Developer INSTALLING MICROSOFT® WINDOWS POWERSHELL EXTENSIONS FOR Installing Microsoft® Windows PowerShell Extensions for Microsoft SQL Server 2016 (AKA sqlps) PORTING FROM SQLIO TO DISKSPD: HOW TO TEST DISK DISKSPD TESTS Original post related to SQLIO took from brentozar blog. The latest update to DiskSpd can be downloaded from https://aka.ms/diskspd. What Do the DISKSPD Parameters Mean? While we’re looking at that set of commands, here’s a quick breakdown: -w100 and -w0: means we’re testing writes (100% writes) or reads (0% writes). -t8 and -o32: means START ALL SERVICES FILTERING BY NAME AND STARTMODE Sometimes I need to start or restart a lot of services belonging to my application, all having the product / company name as prefix, and I would like to start it all, but not the ones that are flagged as Manual. To simple start all the services that match a prefix you woulddo something
HOW TO EXTEND/MIGRATE TRAITATTRIBUTE TO XUNIT V2 AND WHY In these days I was testing xUnit for the first time, and as a greedy developer, I started with the pre-release v2. Everything was great, except that I was trying to categories my tests in unit, integration, manual, and so on, to let me separate the CI tests from the ones, and I found misleading documentation out there, actually it was simply because there’s some breaking changes passing.NET DIARIES
The tilde matches the most recent patch version in the specified minor version. ~1.2.3 will match all 1.2.x versions but will miss 1.3.0. The caret, on the other hand, is more relaxed.It will update you to the most recent minor version in the specified major version. ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold off on 2.0.0. GETTING STARTED WITH AZURE POWERSHELL (CLASSIC) The simplest way to access your Azure subscription from PowerShell is to use the Add-AzureAccount cmdlet. 1. Add-AzureAccount. After executing the cmdlet a dialog will appear to prompt you to login with your Microsoft or Organization account. After you login, you will have access for 12 hours before you have to login again. POWERSHELL: SET THE LOCATION THE EXECUTING SCRIPT PATH I already knew about the proper way to get the executing path: but today I've saw another way to set the scope of the current location to a desired path (open-source code is the most powerful resource): NAME Push-Location SYNOPSIS Adds the current location to the top of a location stack. SYNTAX Push-Location PORTING FROM SQLIO TO DISKSPD: HOW TO TEST DISK DISKSPD TESTS Original post related to SQLIO took from brentozar blog. The latest update to DiskSpd can be downloaded from https://aka.ms/diskspd. What Do the DISKSPD Parameters Mean? While we’re looking at that set of commands, here’s a quick breakdown: -w100 and -w0: means we’re testing writes (100% writes) or reads (0% writes). -t8 and -o32: means HOW TO DEBUG THE DESIGN TIME ERRORS IN WPF XAML FILE It will launch the XDesProc.exe in Task Manager. Switch to app1 again, and go to Debug -> Attach to Processes context menu item in Menu bar of Visual Studio. Search the XDesProc.exe and click on attach button. Switch to app2 and close and reopen the same XAML document ( MainWindow.xaml ). Once you do it, break point will get hit! C#: ENABLE COOKIE CONTAINER ON SYSTEM.NET.WEBCLIENT (FOR C#: Enable Cookie Container on System.Net.WebClient (for Authentication) As I told on the previous post the WebClient can be easily extended to add more functionality such in this case the Cookie Container, and let use it to authenticate versus the web pages that are protected using an authenticated cookie: 1. 2. 3. HOW TO CREATE STRIPED DISK ON AZURE (AKA RAID 0) Disk Striping use multiple disks and stripe them together to get a combined higher IOPS and Throughput limit. Note that the combined limit per VM should be higher than the combined limits of attached premium disks. You can check the maximum number of disks you can add to a virtual machine from here: Sizes for Windows virtual HOW TO EXTEND/MIGRATE TRAITATTRIBUTE TO XUNIT V2 AND WHY In these days I was testing xUnit for the first time, and as a greedy developer, I started with the pre-release v2. Everything was great, except that I was trying to categories my tests in unit, integration, manual, and so on, to let me separate the CI tests from the ones, and I found misleading documentation out there, actually it was simply because there’s some breaking changes passing WPF: CONTENTCONTROL VS CONTENTPRESENTER A small post to explain the little but important difference between ContentControl and ContentPresenter. The most significant difference is that ContentPresenter has the ContentSource property while ContentControl hasn't. The ContentPresenter.ContentSource property specify which dependency property of the parent template instnace should be used to fill the WPF: ATTACHED PROPERTY IN XAML MARKUP (THE OBJECT Let's say you need an attached property to set an arbitrary header content to any DependencyObject, to let you use that value and populate the Header property of any HeaderedContentControl, creating the class directly in your WPF test application: Then you want to attach that property to an UserControl that when injected in a TabItemcan
Skip to content
.NET DIARIES
Michael Denny's blog about .NET, Azure and Software ArchitectureMenu
* Home
* About
* RSS Feed
SHARE WIFI INTERNET WITH ETHERNET PORT ON RASPBERRY PI (BRIDGE) If you want to share your wifi internet connection to a PC that doens’t have a wifi adapter, you can use a raspberry pi and followthese steps:
* sudo apt update
* sudo apt full-upgrade * sudo apt dist-upgrade * sudo apt install network-manager network-manager-gnome * sudo systemctl stop dhcpcd * sudo systemctl disable dhcpcd * sudo systemctl enable NetworkManager * sudo systemctl start NetworkManager* sudo reboot now
* now connect to a wifi network using the new network manager you will find the task bar * edit the ethernet configuration and from the ipv4 settings tab change the method to “Share to other computers” * connect a pc over ethernet port of the raspberry and enjoy the internet connection took from a wifi hotspot Thanks to arer studios . Author Michael Denny Posted on October 22, 2019October 22, 2019Categories
linux , raspberry
Tags bridge
, eth
, internet
, linux
, raspberry
, wifi
Leave a comment on Share Wifi Internet with ethernet port on Raspberry Pi (bridge) TURN OFF MONITOR WHEN USING CHROME REMOTE DESKTOP Reference: Control use of Chrome Remote Desktop ENABLE CURTAIN MODE FOR CHROME REMOTE DESKTOP > NOTE FOR WINDOWS USERS: This feature only works on Windows devices > running Windows Professional, Ultimate, Enterprise, or Server. To enable Chrome Remote Desktop to prevent someone physically present at a host machine from seeing what a user is doing while a remote connection is in progress, check the steps below. STEPS FOR ALL WINDOWS INSTALLATIONS: > NOTE: The parent keys may not exist (even with Chrome installed) and > will need to be created. The “1” is of type DWORD-32.* Using Regedit,
set _HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\RemoteAccessHostRequireCurtain_ to 1. * Enable RDP connections to the machine by unchecking CONTROL PANEL\SYSTEM AND SECURITY\SYSTEM > REMOTE SETTINGS > “ALLOW CONNECTIONS ONLY FROM COMPUTERS RUNNING REMOTE DESKTOP WITH NETWORK LEVEL AUTHENTICATION (RECOMMENDED)”. ADDITIONAL STEP FOR WINDOWS 10 INSTALLATIONS: Follow the steps above for all Windows installations, and then do the following after step 2: Set _HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\SecurityLayer_ to 1. For additional information on this key and value, please see Configure Server Authentication and Encryption Levelson the
Microsoft Windows Server website. Author Michael Denny Posted on September 10, 2019September 10, 2019Categories
Windows Tags chrome
, remote
, remote desktop
, remoting
Leave a comment on Turn Off Monitor when using Chrome Remote Desktop CREATE AN ANGULAR COMPONENT LIBRARY FOR NPM * ng new xxx-app that will be our testing application for our newlibrary
* cd xxx-app
* ng g library xxx-lib --prefix=awesome * Mind that the components/services/modules that you would like to public expose must be specified in the file public-api.ts * Rename the folder xxx-app to xxx-lib* ng build xxx-lib
* cd dist\xxx-lib
* npm init to create the project.json file, that will contains the specs about your library* Before publish:
* You can create the file .npmrc if you need to push to a custom/private gallery. If you omit this, npm will try to push to the community gallery npmjs.com * The npm gallery authentication token must be saved in the user folder $HOME in the global file .npmrc * You can use the command npm login to automatically generate and save the token for npmjs.com (service likeazure devops
creates this token from the web interface and you save it to the global .npmrc there are also tools to do this, but I prefer to simply copy and paste the token myself)* npm publish
* You can test the component directly from the application and the run ng serve as usual, this will execute the default application as if you had executed ng serve xxx-app. Now from the application you can use the component of your library without needing to install it from the gallery, and of course you can also debug it. From the app.module.ts imports the module XxxLibModule like this import { XxxLibModule } from 'projects/xxx-lib/src/public-api';APP.MODULE.TS
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { XxxLibModule } from 'projects/xxx-lib/src/public-api';@NgModule({
declarations: ,
imports: ,
providers: ,
bootstrap:
})
export class AppModule {}APP.COMPONENT.HTML
amazing!!
Author Michael DennyPosted on April 5,
2019April 5, 2019
Categories
Angular , Node.js
Tags Angular
, component
, library
, ng
, npm
, npmjs
, npmjs.com
Leave a comment on Create an Angular component library for npm NPM TILDE(~) AND CARET(^) IN PACKAGE.JSON VERSION The TILDE matches the most recent PATCH version in the specified minorversion.
> ~1.2.3 will match all 1.2.x versions but will miss 1.3.0. The CARET, on the other hand, is more relaxed. It will update you to the most recent MINOR version in the specified major version. > ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold> off on 2.0.0.
Resources:
* https://stackoverflow.com/a/22345808*
http://fredkschott.com/post/2014/02/npm-no-longer-defaults-to-tildes/ * https://github.com/npm/node-semver * https://bytearcher.com/goodies/semantic-versioning-cheatsheet/ Author Michael Denny Posted on March 29, 2019Categories
Angular , Node.js
Tags caret
, node
, npm
, tilde
, update
, upgrade
, versioning
Leave a comment on Npm tilde(~) and caret(^) in package.json version RABBITMQ: USE THE NEW RABBITMQ.CONF FILE ON WINDOWS To use the new rabbitmq.conf fileon
windows you must re-install the service to let it use the conf file, and the file must exists on disk before you re-install the service. Here’s the steps to enable the new rabbitmq.conf file: * Go to the rabbitmq folder, usually “%appdata%\RabbitMQ” * Create a file named “rabbitmq.conf” (if you want you can takethe example file
from github)
* Open the command prompt from start menu using the link “RabbitMQ Command Prompt (sbin dir)”* Stop the service
rabbitmq-service stop * Remove the service rabbitmq-service remove * Install the service rabbitmq-service install* Start the service
rabbitmq-service start Author Michael Denny Posted on March 18, 2019Categories
RabbitMQ Tags RabbitMQ Leave a comment on RabbitMQ: Use the new rabbitmq.conf file on Windows RABBITMQ: MOVE BASE/DATA/DB DIRECTORY TO ANOTHER DRIVE/LOCATIONON WINDOWS
Here’s the steps to move all the base RabbitMQ directory (with also data and log directory) to another location on Windows: * open the command prompt from start menu using the link “RabbitMQ Command Prompt (sbin dir)”* stop the service
rabbitmq-service stop * kill the process “epmd.exe” from the task manager using thedetails tab
* move the folder from “%appdata%\RabbitMQ” to a different location for instance “D:\” * install the service rabbitmq-service install* start the service
rabbitmq-service startEnjoy!
Author Michael Denny Posted on March 18, 2019Categories
RabbitMQ Tags RabbitMQ Leave a comment on RabbitMQ: Move base/data/db directory to another drive/location on Windows BUILD ANGULAR DESKTOP APPS WITH ELECTRON Based on Jeff Delaney post.
You can also check the video lesson on youtube and the original source codeon github.
You can also find my source codeon github.
GENERATE THE ANGULAR APP You can follow the Angular – QuickStart or just do these steps: npm install -g @angular/cli ng new angular-electron cd angular-electron UPDATE BASE TAG ON INDEX.HTML The generated root page in Angular points the base href to / – this will cause problems with Electron later on, so let’s update it now.INSTALL ELECTRON
npm install electron --save-devCONFIGURE ELECTRON
Create a new file named _MAIN.JS_ in the root of your project – this is the Electron NodeJS backend. This is the entry point for Electron and defines how our desktop app will react to various events performed via the desktop operating system. const { app, BrowserWindow } = require('electron')let win;
function createWindow () { // Create the browser window. win = new BrowserWindow({width: 600,
height: 600,
backgroundColor: '#ffffff', icon: `file://${__dirname}/dist/assets/logo.png`})
win.loadURL(`file://${__dirname}/dist/index.html`) //// uncomment below to open the DevTools. // win.webContents.openDevTools() // Event when the window is closed. win.on('closed', function () {win = null
})
}
// Create window on electron intialization app.on('ready', createWindow) // Quit when all windows are closed. app.on('window-all-closed', function () { // On macOS specific close process if (process.platform !== 'darwin') {app.quit()
}
})
app.on('activate', function () { // macOS specific close process if (win === null) {createWindow()
}
})
The _createWindow_ function defines the properties of the program window that the user will see. Notice we are loading the window by pointing it to the _index.html_ file in the _dist/_ folder. Do NOT confuse this with the index file in the _src/_ folder. At this point, this file does not exist, but it will be created automatically in the next step by running _ng build–prod_
CUSTOM BUILD COMMAND The deployed desktop app will be an Angular AOT build – this happens by default when you run _ng build –prod_. It’s useful to have a command that will run an AOT production build and start Electron at the same time. This can be easily configured in the _package.json_ file.{
"name": "angular-electron", "version": "0.0.0","license": "MIT",
"main": "main.js", // <-- add this"scripts": {
"ng": "ng",
"start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint","e2e": "ng e2e",
"electron": "electron .", // <-- add this to run electron "electron-build": "ng build --prod && electron ." // <-- add this to build app in prod with AOT and then run electron},
// ...omitted
}
RUN THE ELECTRON APP You can run your angular app as an native desktop app with thefollowing command.
npm run electron-build At this point, you can run the command (it will take a few seconds) and it will create the dist/ folder and will automatically bring up a window on your operating system with default Angular app. > This setup does not support hot code reloads. Whenever you change > some Angular code, you need to rerun the electron-build command. It > is possible to setup hot reloads by pointing the window to a remote > URL (such as https://localhost:4200 ) and > running _npm start_ in a separate terminal and then running _npm> run electron_.
BUILD YOU ANGULAR APP This section is up to you, if you want something ready, check theJeff’s post
.
PACKAGING FOR DESKTOP OPERATING SYSTEMS > This section is slightly different from the original post, because I > had to add _–no-prune_ and a series of _–ignore_ to let > electron-packager works as expected. The electron packagertool will
allow to package our code into an executable for desktop platforms – including Windows (win32), MacOS (darwin), and Linux. Keep in mind, there are several other electron packaging tools that might better fit your needs. npm install electron-packager -g npm install electron-packager --save-dev Build an executable for Windows: electron-packager . --platform=win32 --no-prune --ignore=/node_modules --ignore=/e2e --ignore=/src Build an executable for MaxOS: electron-packager . --platform=darwin --no-prune --ignore=/node_modules --ignore=/e2e --ignore=/src The you can add an npm script _electron-package-win_ to easy packagefor Windows:
{
"name": "angular-electron", "version": "0.0.0","license": "MIT",
"main": "main.js",
"scripts": {
"ng": "ng",
"start": "ng serve", "build": "ng build --prod", "test": "ng test", "lint": "ng lint","e2e": "ng e2e",
"electron": "electron .", "electron-build": "ng build --prod && electron .", "electron-package-win": "ng build --prod && electron-packager . --no-prune --ignore=/node_modules --ignore=/e2e --ignore=/src --overwrite" // <-- add this script}
// ...omitted
}
Then call it like this: npm run electron-package-win Author Michael DennyPosted on April 5,
2018April 5, 2018
Categories
Angular , Electron
Tags Angular
, app
, css
, desktop
, Electron
, html
, quickstart
Leave a comment on Build Angular Desktop Apps With ElectronPOSTS NAVIGATION
Page 1 Page 2 … Page 10Next page
Search for: Search
CATEGORIES
* Angular (3)
* CSharp (12)
* Deployment (4)
* Electron (1)
* Entity Framework
(3)
* Funny (1)
* Git (1)
* linux (1)
* raspberry (1)
* Microsoft MVP
(1)
* Node.js (2)
* Office (1)
* Performance (1)
* PowerShell (8)
* RabbitMQ (4)
* Sql Server (5)
* Team Foundation Server(5)
* Testing (2)
* Uncategorized
(10)
* Visual Studio
(14)
* Windows (3)
* Windows Azure Cloud(15)
* Windows Azure Tips(9)
SOCIAL
* View 0v3rCl0ck’s profile on Facebook * View dennymic’s profile on Twitter * View micdenny1’s profile on Instagram * View dennymic’s profile on LinkedIn * View micdenny’s profile on GitHub * View UCVoaOHx4xFy3oAe7K_fYjsw’s profile on YouTube FOLLOW BLOG VIA EMAIL Enter your email address to follow this blog and receive notifications of new posts by email. Join 235 other followersFollow
RECENT COMMENTS
Michael Denny on RabbitMQ:Change the Host…
John Doe on RabbitMQ: Change the Host… mathieuauclair12 on Convert XML and JSON to C#… Haas franck on Convert XML and JSON to C#… Michael Denny on Web Browser Control – Specifyi…ARCHIVES
* October 2019 (1) * September 2019 (1)* April 2019 (1)
* March 2019 (3)
* April 2018 (1)
* October 2017 (1) * September 2017 (1) * February 2017 (6)* July 2016 (2)
* February 2016 (2) * January 2016 (1)* July 2015 (1)
* June 2015 (3)
* May 2015 (1)
* April 2015 (2)
* March 2015 (2)
* February 2015 (1) * January 2015 (3) * November 2014 (2) * October 2014 (2)* August 2014 (1)
* July 2014 (1)
* June 2014 (7)
* May 2014 (3)
* April 2014 (2)
* March 2014 (5)
* August 2013 (3)
* July 2013 (6)
* June 2013 (2)
* May 2013 (1)
* March 2013 (2)
META
* Register
* Log in
* Entries feed
* Comments feed
* WordPress.com
* Home
* About
* RSS Feed
.Net Diaries Blog at WordPress.com..Net Diaries
Blog at WordPress.com.Post to
Cancel
* Follow
*
* .Net Diaries
* Customize
* Follow
* Sign up
* Log in
* Report this content * Manage subscriptions* Collapse this bar
Details
Copyright © 2023 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0