Restful Service Help

Here are some websites with tips on how to make Restful Services.

https://closebrace.com/tutorials/2017-03-02/the-dead-simple-step-by-step-guide-for-front-end-developers-to-getting-up-and-running-with-nodejs-express-and-mongodb

Share Button

Creating a Service in C# with visual Studio

So you want to create a service in C#? well look no further. This article is amazing and will take you through each step clearly and let you know how to make the service. Highly recommend for creating services in the future.

http://www.c-sharpcorner.com/UploadFile/naresh.avari/develop-and-install-a-windows-service-in-C-Sharp/

Share Button

James’ Error codes

The following are Error codes used by James’ programs across platforms:

/// Error Code SE-JEHG-0001 = Programer needs to implement XLVBAInitializer method before running code.
/// Error Code SE-JEHG-0002 = User did not provide a destination for StackEm.
/// Error Code SE-JEHG-0003 = VBA constructed name for destination of stackem is invalid

This list is in progress.

Share Button

Daily Dose of Fiber to Keep your Internet Regular

So you want really fast internet in the calgary area? Well let me do the leg work for you! These websites offer down and up of at least 150mbs and fiber cables.

http://business.telus.com/en/business/internet/office-internet/?INTCMP=Fibre_Reimagined_BusinessPlans

https://www.shaw.ca/store/internet/internetPackageDetails.jsp?prodId=prod1480004

http://business.shaw.ca/Advanced-Solutions/Internet/Fiber-Gateway

https://shop.shaw.ca/internetplans?SegmentationLinkClicked=true

https://www.axia.com/plans

https://www.broadconnect.ca/internet-solutions/t1/

Share Button

How log out as Basic Auth

When you create a website with basic auth there is an unfortunate consequence in that there is no built-in method for logging out the user. Since basic auth username and password are stored on the client side, the server actually has no power to remove what is stored in the user browser’s cache. The solution? Create a log out screen where the user is prompted to put in the wrong password. This is usually counter-intuitive to most log out systems but is unfortunately the only way to get the client’s own browser to replace what is in the basic auth cache. A good example for how to set up the code in order to make this happen can be found at the following website: http://php.net/manual/en/features.http-auth.php.

Share Button

Setting up WebDAV for IIS 10

In order to set this up for customers to use automatic file transfer via webDAV I found a really good website that seems to provide the perfect method except you skip the last step where you link it to the particular website. Here is the link.  This allows the user to automatically update files on the server.

Then I had to enable some sort of authentication (I used Basic Auth as it was one user). This website filled this in (this guy at Microsoft is stellar – he is a teaching kind of guy) Continue reading

Share Button

project folder name manipulate, VS

Sometimes when you are writing a program in visual studios you suddenly come to the realization that one of the folders you are using in your program really doesnt make sense anymore. Maybe you changed what it does or it has evolved in purpose or maybe the original creator simply gave it a bad name. Well there is a way to change the project folder name at any time. How this is done is one finds the location of the project in explorer. Simply change the specific project folder name with the rename tool and then launch microsoft visual studio. Visual studio, upon launching, will inform you that the particular project you are loading can not be loaded properly. This is because the file path that it was using now leads nowhere. The solution is to click on the particular project, not the solution, and click properties. find the path. Since this VS detects that there is an issue with the path it will now allow you to manipulate it. Change the part of the path that has the old name and replace it with the new one. Now the project folder name is fixed and all you have to do is reload the particular project and it will be ready to use!

Share Button

What I learned about SMTP for Filemaker and AWS

What I have learned about SMTP. I have created a SMTP credentials on aws and I have assigned the main company email to that source. It however only has three locations, west US, east US, and EU. Since we live in Canada I figured US west would be the best one. This means that the host is email-smtp.us-west-2.amazonaws.com. The aws system requires a few things to run properly. Firstly it needs to use port 587 as Amazon cuts off all communication through email on port 25. Second, it requires the use of Transport Layer Security. Now there is also the filemaker side. in filemaker server admin one can go to general settings and under email notifications one can find the SMTP information. Here One can fill in all of the information that Amazon requires. I used the Amazon host as the SMTP server address, filled in 587 in the port, tried both forms of SMTP Authentication, checked the use transport layer security and filled in both the credentials for reaching the host, or endpoint then I hit the test SMTP settings… button. This unfortunately always said the same thing: SMTP test failed, check your settings or email. IN the activity log this recorded as email notification to administrators failed:1506. When I looked this up on the internet the best answer i could find indicated that this meant that something was going wrong externally from file maker and this represented a generic error that the email did not go through. So far the emails do not work despite seemingly having all the proper information.

Share Button

Install SSL Certificate cPanel

The following website is a step by step method of putting the SSL server certificate files in your website and then setting up the domain:

https://www.geocerts.com/install/cpanel_11

From the looks and current state of our website, we need to add the option so that we can use the “Setup a SSL certificate to work with your site” option within SSL/TLS Manager. It also appears as though one requires a Certificate that we must either make ourselves our obtain.

 

 

Share Button

Getting an IIS website ready

James’ updated instructions for dealing with a new website with IIS

 

******Possible troubleshooting

  • it is possible that IIS manager may create the pool application for you; if it does it is possible that it may create this in version 2.0 of .NetFramework. Instead make this version 4

– Websiite
– install IIS
– make a dir c:\inetpub/wwwroot/fabchoice/showSsImages
– the website root is c:\inetpub/wwwroot/fabchoice and the app is showSsImages now slide this into root.
– change default website to port 81 to make room for our new service
– enable directory browsing in iis manager. This can allow you to test, but this has to be disabled later.
– if you suspect someone is already using port 80 – you can make OUR items appear on port 81 then
– make new website Fabchoice
– add an app of the showSsImages
– make an app pool ‘fabchoice’ and have run as appoolidentity
– set and recurse permissions for IIS_IUSRS and NETWORK SERVICE for the files including and beneath
i) c:\inetpub/wwwroot/fabchoice
ii) your SsData directory (often this is c:\SsData – but it could be anywhere depending on your client)
iii) full permissions for this user on the webroot\showSsImages\SSImageCache

– ensure that the SS large data store has IIS_IUSRS and NETWORK SERVICE as full write permissions – most likely on need read

– install IIS – might need to reinstall it and re-register ASPX 4.0 it… as per
http://serverfault.com/questions/1649/why-does-iis-refuse-to-serve-asp-net-content
– JUST REBOOT – NO QUESTIONS ASKED…
– install viewer
– SS password for sa is Sunrise1 normally or Slabsmith1 is an alternative
– at Blasius – I had thFabchoiceis error “
Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list
” and this fixed it http://stackoverflow.com/questions/6846544/how-to-fix-handler-pagehandlerfactory-integrated-has-a-bad-module-managedpip
At Blasius – there were no locations. So – until this is addressed – we need to add one time and click ‘apply’. Call it test

 

Share Button