Liquidity Risk Management, Liquidity Risk Framework #Root

Just some resources:

What does liquidity risk mean for pension funds?
http://www.benefitscanada.com/pensions/db/what-does-liquidity-risk-mean-for-pension-funds-59726

Principles for Sound Liquidity Risk Management and Supervision
http://www.bis.org/publ/bcbs144.pdf

2014 Top 40 Money Managers Report: Fear factor
http://www.benefitscanada.com/investments/other-investments/2014-top-40-money-managers-report-fear-factor-58890

What is liquidity risk management?
http://www.regulatory-risk.com/2012/03/what-is-liquidity-risk-management/

Pension plans revisit risk management
http://www.benefitscanada.com/pensions/db/pension-plans-revisit-risk-management-6956

From: http://sitestree.com/?p=3815
Categories:Root
Tags:
Post Data:2016-08-05 09:53:35

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Attributes of a Web Method (.Net, XML Programming) #Root

Brought from: http://salearningschool.com/displayArticle.php?table=Articles&articleID=1118&title=Advanced%20XML%20Web%20Services%20Programming

Attributes of a web method. Using attributes, you can define the behavior of the methods exposed.

Syntax

VB.net

Public Function ….

C#
[WebMethod (BufferResponse=false)]
public int HelloWorld(){
……

}

We just used BufferResponse attribute in the method declaration above. Some other attributes:

Attributes:

  • BufferResponse: Should the response be buffered?
  • CacheDuration: Number of seconds the response is cached in memory
  • Description: Describe a web method
  • EnableSession: Should session state be enabled or not?
  • MessageName: Alias to a web method
  • TransactionOption: Transaction support for a web-method

Creating Asynchronous methods: later ……
From: http://sitestree.com/?p=3770
Categories:Root
Tags:
Post Data:2016-07-17 14:55:33

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

C#: Handling Multiple Keyboards and Multiple Microphones in the Same Software #Root

Brought from our old-site: http://salearningschool.com/displayArticle.php?table=Articles&articleID=1048&title=C#:%20Handling%20Multiple%20Keyboards%20and%20Multiple%20Microphones%20in%20the%20Same%20Software

I was working for software that needed multiple keyboards support along with multiple microphones support; sure in C#, Visual Studio, and MS Access Database.

Multiple keyboards Support:

Detecting multiple keyboards/devices:
GetRawInputDeviceList( IntPtr.Zero, ref deviceCount, (uint)dwSize ) returns the number of devices detected

You can get a project that detects multiple keyboards and stores the devices in a HashTable at: http://www.codeproject.com/KB/system/rawinput.aspx#_Toc156395978

Multiple Microphones


Also, I had to provide support for multiple microphones. You can use the following function to collect speech from a microphone. The first parameter can be 0, 1, 2 for multiple microphones [device identification number]. If you put -1, it will take the default microphone.

m_Recorder = new WaveLib.WaveInRecorder(-1, fmt, 16384, 3, new WaveLib.BufferDoneEventHandler(DataArrived));

Just check the following article for the details:
http://www.codeproject.com/KB/audio-video/cswavrec.aspx

From: http://sitestree.com/?p=3759
Categories:Root
Tags:
Post Data:2016-07-17 13:08:08

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Web Analytics Software and Platforms #Root

https://www.webtrends.com/products-solutions/analytics/

https://www-01.ibm.com/software/info/coremetrics-software/

https://my.omniture.com/login/

http://www.google.com/analytics/#?modal_active=none

 

 

  From: http://sitestree.com/?p=3614
Categories:Root
Tags:
Post Data:2016-07-05 18:18:24

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Some random information regarding commenting your code #Root

Some random information regarding commenting your code

Is commenting required? or suggested?
Simply yes. Always comment your code.

Note: Commenting is always useful only when it is done right. 
Bad commenting is worse than not commenting.

What should you write in the comment?
--------------------------------------
Write why the section of the code is required.
write-What does the code section do.
Write it in plain english. Don't use any language syntax.
If you do not find what to write...then better check did you understand the 
requirements of the assignment/section? 
Also check, are you sure your design/logic will work? 
Also, why your design/code will work -- did you really understand. 
Do not write how the code works in comments but write why and what it does.

Why commenting is useful?
-------------------------
Commenting will make your code more readable to others.
Commenting will help others to find out the right section of code to edit/modify. 
Also, understand the purpose of the program as well as sequence of the logic.
It will also help you to review/(work on) your own code later
In many or most companies, you will hardly write codes from scratch, you have to 
work on others' code. Hence, commenting is important


Random:
--------
Use a clear commenting style - easy to edit
Comment as you go/code - do not leave commenting until the end of writing code
If you are worried that commenting will reduce performance...rather comment and 
use tools to create release codes without comments
comment above the code -- not at the right
variable declaration may have comment at the right
if you use any special trick that is not obvious from the code -- write it in 
comments [a trick:we can do a right shift for divide by 2]

Comments and Pseudocode Programming Practice (PPP)
----------------------------------------------------
Comments and Pseudocode Programming Practice (PPP) go hand in hand.
what is Pseudocode Programming Practice (PPP)?
1. Write your logic in plain english may be as a paragraph
2. Decompose it step by step into as fine grained that it can not be decomposed 
further. (The paragraph will be converted to lines of steps)
3. comment each line/step (use comment sign like //)
4. After each line/comment write the corresponding code.

From: http://sitestree.com/?p=3537
Categories:Root
Tags:
Post Data:2016-07-08 16:05:38

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Good Coding Style in PHP + Other languages #Root

Style 1.1: Use proper indenting

while ($x < $z) 
{
	if ($a == 1) 
	{
		echo 'A was equal to 1';
	} 
	else 
	{
		if ($b == 2) 
		{
			//do something
		} 
		else 
		{
			//do something else
		}
	}
}

 

1.2
while ($x < $z) {
	if ($a == 1) {
		echo 'A was equal to 1';
	} else {
		if ($b == 2) {
			//do something
		} else {
			//do something else
		}
	}
}

Style 2.1: Properly indent conditional statements. Always use braces, it will make later additions of more statements easier.

while ($x < $z) 
{
	if ($a == 1) 
	{
		echo 'A was equal to 1';
	} 
	else 
	{
		if ($b == 2) 
		{
			//do something
		} 
		else 
		{
			//do something else
		}
	}
}

Style 2.2

while ($x < $z) {
	if ($a == 1) {
		echo 'A was equal to 1';
	} else {
		if ($b == 2) {
			//do something
		} else {
			//do something else
		}
	}
}

3.1 Function Calls
No space between function names and parenthesis.

	$var = myFunction($x, $y);

3.2 Function declarations

Use braces properly, give meaningful names to the parameters, always return values from functions. Avoid printing/echoing inside functions.

function myFunction($province, $city = '')
{
	//indent all code inside here
	return $result;
}   

4. Use comments before a function. Also, use comments before a block [especially if it uses some difficult to understand logic] use PHPDoc style comments that may work like Javadoc to create documentation from your source files

/**
 *	short description of function
 *
 *	Optional more detailed description.
 *
 *	@param $paramName - type - brief purpose
 *	@param ...
 *	...
 *	@return type and description
 */

5. Use include_once or require_once instead of include or require to include a file that contains common variables, functions, classes.
6. PHP tags: always use

  <?php

  ?>

instead of

  <?

  ?>

7. to enclose strings use single quote ‘ ‘ rather than double quotes ” “. Try to use . to concate string variables. You can use double quote and put variables inside.

	$associative_array['name'];
	$var='My String';
	$var2='Very... long... string... ' . $var . ' ...more string... ';
	$sql="INSERT INTO mytable (field) VALUES ('$var')";

8. Follow some conventions for variable and function names

  • Class name start with uppercase letter. Each word should start with uppercase letter
  • Variable and function name may start with lower case letters. Then each word will start with a capital letter
  • give meaningful names to variables and functions
  • Do not make them too lengthy. I prefer less than 12-15 character names
  • Do not abbreviate words in variable or function names. Use $url or $articleUrl as variable names, not $URL or $articleURL as

From: http://sitestree.com/?p=3535
Categories:Root
Tags:
Post Data:2016-07-08 16:04:58

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

How to be/pass : CX-310-081: Sun Certified Web Component Developer #Root

Check the syllabus and the related tutorials at:

Course Section Tutorial Chapters
Section 1: The Servlet Technology Model Chapter 4, Java Servlet Technology
Section 2: The Structure and Deployment of Web Applications Chapter 3, Getting Started with Web Applications
Section 3: The Web Container Model Chapter 3, Getting Started with Web Applications

Chapter 4, Java Servlet Technology

Section 4: Session Management Chapter 3, Getting Started with Web Applications

Chapter 4, Java Servlet Technology

Chapter 5, JavaServer Pages Technology

Section 5: Web Application Security Chapter 30, Securing Web Applications
Section 6: The JavaServer Pages (JSP) Technology Model Chapter 5, JavaServer Pages Technology
Section 8: Building JSP Pages Using Standard Actions Chapter 5, JavaServer Pages Technology
Section 9: Building JSP Pages Using Tag Libraries Chapter 7, JavaServer Pages Standard Tag Library
Section 10: Building a Custom Tag Library Chapter 8, Custom Tags in JSP Pages

  From: http://sitestree.com/?p=3533
Categories:Root
Tags:
Post Data:2016-07-07 15:59:14

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Academic and Professional Advice for Bangladeshi Students #Root

Academic advice

Programming

Technical articles

Success stories

Professional advice

  From: http://sitestree.com/?p=3493
Categories:Root
Tags:
Post Data:2016-07-07 12:56:14

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

GWT: Google Web Toolkit #Root

From: http://sitestree.com/?p=3483
Categories:Root
Tags:
Post Data:2016-07-09 20:28:32

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Ajax: An Overview #Root

  • Ajax: dynamically changes a portion of the current web-page without refreshing t he total web-page. Resembles the way IFrame works. So far I know, google uses IFrame to display/refresh maps in web-pages
  • XMLHttpRequest is the object that serves the purpose of Ajax
  • The way it works: create an instance of the XMLHttpRequest object, send request to the back-end web-page that will do some processing and perhaps return some data, receive the response data, dynamically change the content of the target area, you may need to get a reference to the target area using DOM, after sending request – you have to wait for the response to come back
  • create an instance of the XMLHttpRequest object: It varies for the different browsers. IE provides ActiveX Control for the purpose. A sample code can be as follows:
  •   function getAjaxObject(){
    
        var ajaxObject = false;
    
        if (window.XMLHttpRequest){
    
             ajaxObject = new XMLHttpRequest();
    
        }else if (window.ActiveXObject) {
          try{
            ajaxObject = new ActiveXObject("Msxml2.XMLHTTP");
    
          }catch(e){
             try{
              ajaxObject = new ActiveXObject("Microsoft.XMLHTTP");
    
             }catch(e){
               ajaxObject = false;
    
             }
    
          }
        }
        return ajaxObject; 
    
      }
    
    
  • XMLHttpRequest has three core components. onreadystatechange – event to notify response has come or identify server activity, open – method , send method
  • use of onreadystatechange
    if (ajaxObject){
    //takeAction - reference to a function
       ajaxObject.onreadystatechange = takeAction; 
    }
    
  • Open method specifies the server side script to handle the request, data to send to the server, method of sending (GET, POST) : Required: type of request (first argument), location of the file in the server (2nd argument)
  • Open method: third argument: true = processing will be done asynchronously, false = synchronous processing – browser will stop processing until response comes [true is usually better]
  • send : send method initiates the request : also passes data to the server
  • For GET method the argument can be set to null, for POSt method the argument can be a query string such as “id=500&name=keith&age=18”
  • use setRequestHeader() – to provide metadata
  • Sample code:
     var ajaxObject = getAjaxObject();
    
     if (ajaxObject ){
        ajaxObject.onreadystatechange = takeAction; 
    
        ajaxObject.open("POST","file.jsp", true);
    
        ajaxObject.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    
        ajaxObject.send("id=500&name=keith&age=18");
    
     }
    
  • How to receive and process the response:
  • The readyState property indicates the current status of the request. 0 – Uninitialized, 1 – Loading, 2 – Loaded, 3 – interactive, 4 – complete
  • each time the value of readyState changes onreadystatechange – event is triggered. At value 4, we can collect the response and change the web-page dynamically
  • Sample:
     function takeAction(ajaxObject){
      if (ajaxObject.readyState == 4) {
    
         //do something with the response
      }
     }
    
  • status is another property to consider – it indicates the status of sending request like 404 – not found, 200 = success, 304 = not modified
  • The prev function
     function takeAction(ajaxObject){
    
      if (ajaxObject.readyState == 4) {
    
         if (ajaxObject.status == 200 || 
    ajaxObject.status == 304){ //response was sent succesfully 
    
              //do something with the response
         }
      }
     }
    
  • responseText is the response from the server
  •  function takeAction(ajaxObject){
      if (ajaxObject.readyState == 4) {
    
         if (ajaxObject.status == 200 || 
    ajaxObject.status == 304){ 
    //response was sent succesfully 
    
              //do something with the response
              alert(ajaxObject.responseText);
    
         }
      }
     }
    
  • responseXML can be used when the response was sent as xml and the response header is “text/xml”
  • All together
      function getAjaxObject(){
        var ajaxObject = false;
        if (window.XMLHttpRequest){
    
             ajaxObject = new XMLHttpRequest();
        }else if (window.ActiveXObject) {
    
          try{
            ajaxObject = new ActiveXObject("Msxml2.XMLHTTP");
    
          }catch(e){
             try{
              ajaxObject = new ActiveXObject("Microsoft.XMLHTTP");
    
             }catch(e){
               ajaxObject = false;
             }
    
          }
        }
        return ajaxObject; 
      }
    
      function entryPoint(){
    
        var ajaxObject = getAjaxObject();
    
         if (ajaxObject ){
        ajaxObject.onreadystatechange = function(){
    
          takeAction(ajaxObject); 
        };
        ajaxObject.open("POST","file.jsp", true);
    
        ajaxObject.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    
        ajaxObject.send("id=500&name=keith&age=18");
    
     }
     }
     function takeAction(ajaxObject){
      if (ajaxObject.readyState == 4) {
    
         if (ajaxObject.status == 200 || ajaxObject.status == 304){
     //response was sent succesfully 
    
              //do something with the response
              alert(ajaxObject.responseText);
    
              var testDiv = document.getElementById("test");
    
              testDiv.innerText = ajaxObject.responseText; 
    
         }
      }
     }
    
  • Processing Response Data
  • The usual practice: response data can be in one of three formats: XML, JSON, HTML. And may be plain text.
  • XML is the most common. example receive: var data = ajaxObject.responseXML; Here we can use the DOM functions to parse the XML data
  • Example:
    var data = ajaxObject.responseXML;
    
    data.getElementsByTagName("name")
    
    data.getElementsByTagName("name")[0]
    
    data.getElementsByTagName("name")[0].firstChild
    
    data.getElementsByTagName("name")[0].firstChild.nodeValue
    
    Similarly, you can use other DOM functions
    
    
  • To change the contents of the web-page dynamically, you can use the DOM methods like — create, set, innerText, innerHtml (use carefully) methods. Check the JavaScript DOM article [846] in this web-site. adding and removing childs/elements may be required in some situations – DOM also supports that
  • You can also send data as JSON from the server side like: JSON format:
    {“person”:{ “name”:”Keith Tang”, “school”:”uofm” } }
  • Receiving and extracting information from JSON: [content type will be text]
     var data = eval('('+ ajaxObject.responseText +')');
    
     var name = data.person.name;
    
     var school = data.person.school; 
    
    
  • Response data as HTML
  • The response can come as HTML. This may be useful, if only one area of the web-page is affected and we want to put the HTML response in that area. Otherwise it may not be great. Also, we need to use innerHTML method that was introduced by IE and later adopted by others. Still, it’s not a standard (W3C)
  • Example: The content type of response data should be text/html
           if (ajaxObject.status == 200 || ajaxObject.status == 304){ 
    //response was sent succesfully 
              //do something with the response
    
              alert(ajaxObject.responseText);
              var testDiv = document.getElementById("test");
    
              testDiv.innerHTML = ajaxObject.responseText; 
    
         }
    

From: http://sitestree.com/?p=3465
Categories:Root
Tags:
Post Data:2016-07-09 20:29:56

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada