HOME | Blog | YouTube | LinkedIn | About Me         || Calculators    | SoftEng/Tech Posts    | Code/Scripts

Tuesday, March 24, 2015

Text Editor for ChromeOS / Chromebook - No internet connection needed

If you a Chromebook user and you have a need to take notes locally (no internet connection needed) in a text editor or you want to be able to edit code when you lose internet connection, then here is a very simple Chrome app:

After a busy day at work using Microsoft .NET (C#), I go home and use my Chromebook for all the personal stuff. That includes some side HTML/Javascript/PHP/Python programming that I typically do in a cloud IDE. However, sometimes I need to take notes and do some code changes where internet connection is not stable. That's where this Text editor helps.

Here are some screenshots using different themes within the editor:

- almirsCorner.com -

#programming #programmer #code #coding #softwareengineering #softwaredevelopment #html #html5 #javascript #php #python #texteditor 

Monday, March 23, 2015

Simple tips for your Windows hosts file

Here are two simple tips for your Windows hosts file that you typically need to edit when you are doing some testing and you want to point your website to a specific server or a VIP.

Put the following line at the top of your  C:\Windows\System32\drivers\etc\hosts file:
#Do Not Replace

This will keep your file untouched in case your helpdesk team runs some machine updates and tries to update your host file and you end up losing all the information.

In your choice of editor, view the hosts file as a Python file. This will apply proper color scheme so that the active entries stand out with all other comments or commented out entries.

- almirsCorner.com -

#hosts #hostsfile #hostfile #tech #programming #programmer #code #coding #softwareengineering #softwaredevelopment 

Saturday, March 14, 2015

My Orange County - Some pictures in February and March 2015

Here are some pictures of Orange County that I took in February and March of this year.

Link to the full album: Orange County Feb, March 2015

Here is a preview with a few pictures:

- almirsCorner.com -

#OrangeCounty #SoCal #California #sunset #ocean 

Saturday, March 7, 2015

Heart Beat system in your applications - Why do you need this?

What is a Heart Beat system and why do you need it?

Heart Beat system track the health of some external/internal components/services that your application talks to.

If your application talks to some external service A and that service A happens to be down for X number of minutes/hours, then your application will be building up a backlog of connection because each connection now stay open longer because the timeout value is typically set to a value higher than an average response from this service. Over time your application could create a huge backlog to the point where the clients connecting to your application would experience slowness or failures. For a website with high traffic this could mean loss of thousands of dollars in minutes.

This is a where a Heart Beat system helps. Your Heart Beat system would track the health of this service A. Your application would check with the Heart Beat system if it's worth spending resources and even making a call to this service A. If the service A is down, your application with the help of Heart Beat system would not make unnecessary calls and consequently it would NOT build up a backlog of connections; that means there is not impact on your end customers which is what the business is all about.

There are two types of Heart Beat systems in my book:

  1. Heart Beat systems that works independently of your application and pings external/internal services that your application talks to. It periodically checks the health of these services and informs the application.
  2. Heart Beat systems that require your applications to feed it information/failures and then the Heart Beat system feeds back the decisions to your application when your application needs it. I like to compare this system to hybrid systems in hybrid cars which use the braking energy to feed the battery. It might be a perfect comparison but I like it :)

To demonstrate the concept of the 2nd type of Heart Beat system, I prepared a little web page with all the logic built into the Javascript of the page. The Javascript modules are separated into a module that emulates a client, a module that emulates a controller on web-server side, and a module that emulates an external service that your application on web server talks to. 

Here is the link to this demo:

- almirsCorner.com -

#software #softwareEngineering #programming #programmer #developer #code #coding #heartbeat #robustness #softwaredevelopment