Using Azure WebJob to Schedule Application on Cloud

Using Azure WebJob to Schedule Application on Cloud

Below are the steps after you have Azure Account, to make host a visual studio application on azure using the WebJob to schedule the Azure applications Create Application Hosting on Azure Login on to Azure – https://portal.azure.com/ Click the App Services Click on the + sign Enter App Name Enter Subscription Create Resource Group Create App […]

Read More

Angular UI-Grid

In this post, I use a angular ui grid to render data from a json file. The sample code is in here. The json file has data format as below:- This is renders to a angular grid as below:- The add player button show a popup modal to add a new player into the grid […]

Read More

Security Access using Authorize/Annoymous or Web.Config

Say for example you need to allow anyone to access the Account/Register Page for registration and only certain people to access Account/Login. Below are two methods:- Using the Authorize and Annoymous – Method:1 In MVC 4 and above you can secure login access using Authorize and Annoymous So in the global app Filter there is authorization […]

Read More

Sending Email in C# using Google Account

Below is code snipped to send email via gmail.com MailMessage mailMessage = new MailMessage(); mailMessage.To.Add(“someone@somewhere.com”); mailMessage.Subject = “Test”; mailMessage.Body = “<html><body>This is a test</body></html>”; mailMessage.IsBodyHtml = true; // Create the credentials to login to the gmail account associated with my custom domain string sendEmailsFrom = “emailAddress@mydomain.com”; string sendEmailsFromPassword = “password”; NetworkCredential cred = new NetworkCredential(sendEmailsFrom, […]

Read More

Custom Google Search Engine in C#

Create Custom Google Search Engine Firstly you need a Google account Get Google Api Goto https://console.developers.google.com create a project enable custom search api in Project, goto credentials and create a new key and select this a browser key note down the key to be used later Create Google Search Goto https://www.google.com/cse/all Click on add to […]

Read More

Automating Google Search with Email Results using C#

Google custom search allow you to add a search engine where you can limit this to specific sites or criteria. This allow you to search for specific metadata or something that is relevant to you. Take for example in a university setting, search engine should can be limited to only specific educational sites. In this blog […]

Read More

Storing Images, Sound Files in Azure using Asp.Net

Azure has 4 main types of storage: Blob, FIles, Table and Queue. Blob – allow  storing unstructured data likes images, sound files. FIles is for smb-based cloud file shares, Table storage for NoSQL data, Queue storage to reliably store messages, and Premium Storage for high-performance, low-latency block storage for I/O-intensive workloads running in Azure Virtual Machines. Without […]

Read More

Using EWAY (Credit Card Gateway) REST/JSON API in C#

Eway is payment gateway that can be used to facility credit card payment in number of languages such as PHP, ASPNET, JAVA, RUBY, NODE.JS In this blog we will look at how we can use a EWAY REST/JSON API URL and convert this in ASP.NET C# Object to use this within our Visual Studio Project. […]

Read More

Using Selenium in C# to automate Web Browser

Below is snippet of code using Selenium in C# to automate the following tasks To Login to codeschool using firefox browser Sign with email address using selector Name  The selector Name of element is found by using inspect Sign with password using selector ID. The selector Id of element is found using inspect  Click the submit button […]

Read More

Angular Advanced Directives

Lately I have been trying to learn deep dive into angular directives, but it definitely got a steep learning curve. One good video tutorial I found on angular directive was by David Mosher. His screen cast explain how from a html tag you can write a angular directive with some excellent debugging tips. * So the scenario […]

Read More

Debugging your Visual Project on Andriod or Iphone

At times you may need to bind your Visual Studio Project to a Ip address. One good reasons why you may need to this is, say for example you need to view your responsive web sites on a Andriod or Iphone. Having your visual project on a Ip address you can easily access your project in Andriod using […]

Read More

Style CSS Position Absolute and Relative

With the use of Style Position on a html element, you can position that element anywhere on html. There are two main type of mode that can used with style position that is absolute and relative positioning. Relative position on a element, simply means that the element can be resize in portion to the screen size […]

Read More

Setting up Phpstorm v9 / Homestead for debugging

Ok so since the documentation is all over the place I have decided just to put some notes on how get debugging working using phpstorm To setup php xdebugg the following xdebug variable need to be setup logon vagrant box -> vagrant up vagrant ssh php -i | grep xdebug to filter the php information […]

Read More

Php lavavel v5 to create database and tables

In Laravel, php is used to tables classes and attributes in mysql so there almost zero interaction with mysql Ok so the first steps is to make sure in your lavavel project  under config/database.php your user credentials ‘default’ => env(‘DB_CONNECTION’, ‘mysql’), ‘mysql’ => [ ‘driver’ => ‘mysql’, ‘host’ => env(‘DB_HOST’, ‘127.0.0.1’), ‘port’ => env(‘DB_PORT’, ‘3306’), […]

Read More

Setting up Homestead on WIndows 10

Following this link https://laravel.com/docs/5.2/homestead The above link is missing couple of step which I will note in this blog Install git, virtualbox, vagrant Run the gitbash run, this run inside your current user profile folder c:\users\jake –> if your username is jake “vagrant box add laravel/homestead –unsecure”   —> download laravel/homestead and install virtualbox on your […]

Read More

Log4Net

Use Log4net with ASP.NET MVC 5 for Logging http://ravi-kumar-singh.blogspot.co.nz/2014/10/how-to-use-log4net-with-aspnet-mvc-5.html   Understanding Log4Net https://dillieodigital.wordpress.com/2012/11/29/log4net-a-quick-start-tutorial-and-guide-with-mvc-and-sqlite/   Log4Net setups http://www.codeproject.com/Articles/140911/log-net-Tutorial   Log4Net with Azure diagnostics http://blog.kloud.com.au/2014/10/22/logging-with-log4net-and-azure-diagnostics-on-web-and-worker-roles/   Log4Net table storage http://www.kongsli.net/2011/08/15/log4net-writing-log-entries-to-azure-table-storage/   github sample project https://github.com/vidarkongsli/azuretablestorageappender

Read More

Azure Coding ..

Azure Table Query Query example https://www.simple-talk.com/cloud/cloud-data/an-introduction-to-windows-azure-table-storage/   TableQuery used for query data, use this instead of normal linq method https://msdn.microsoft.com/en-US/library/azure/microsoft.windowsazure.storage.table.tablequery.generatefilterconditionfordate.aspx Table query condition https://msdn.microsoft.com/en-us/library/microsoft.windowsazure.storage.table.querycomparisons.aspx Azure table design Designing a scalable partitioning for azure table storage https://msdn.microsoft.com/en-nz/library/azure/hh508997.aspx   Design for better data modification https://azure.microsoft.com/en-us/documentation/articles/storage-table-design-guide/#design-for-data-modification   storage pricing https://azure.microsoft.com/en-us/pricing/details/storage/   Integration Making custom log4net appender http://www.codeproject.com/Articles/406634/Creating-a-custom-log-net-appender http://www.kongsli.net/2011/08/15/log4net-writing-log-entries-to-azure-table-storage/   […]

Read More

Displaying and Manipulating the date function

Displaying and manipulating a date function variable can something be a bit of pain especially when you need to change the date format from dd/MM/yyyy to yyyy-MM-d or worst still change this to different time-zone. Fortunately for us there a function called Date.parse in C# which can convert a string to date time format An […]

Read More

Kendo UI – Graphs, Chart …

Kendo UI – front-end framework that uses html5, css jquey to display high performance data  like charts, graphs … has both opensource and commerical version Some good introduction videos and links on Kendo Ui Getting Started with Kendo UI for ASP.NET MVC – Introduction videos on install and setting up Kendo with Visual Studio as new […]

Read More

Using Github via Desktop or Commandline

GitHub Desktop On Windows install Github Desktop  Create a github account by following this link Create a new repository from github Click on the + sign on left hand side to add your project To update click on sync sign on right hand side to update this on Github account GitHub Commandline Create a new […]

Read More