Monday, December 11, 2023

Notes on Letsencrypt SSL

 (base) LionsEye:~ loalhost$ curl --verbose --header 'https://x.x.x.x' (base) LionsEye:~ localhost$ curl --verbose --header 'https://x.x.x.x' https://x.x.x.x.:443

*   Trying x.x.x.x:443...

* TCP_NODELAY set

* Connected to x.x.x. (ip.address.) port 443 (#0)

* ALPN, offering http/1.1

* successfully set certificate verify locations:

*   CAfile: /opt/anaconda3/ssl/cacert.pem

  CApath: none

* TLSv1.3 (OUT), TLS handshake, Client hello (1):

* TLSv1.3 (IN), TLS handshake, Server hello (2):

* TLSv1.2 (IN), TLS handshake, Certificate (11):

* TLSv1.2 (IN), TLS handshake, Server key exchange (12):

* TLSv1.2 (IN), TLS handshake, Server finished (14):

* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):

* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):

* TLSv1.2 (OUT), TLS handshake, Finished (20):

* TLSv1.2 (IN), TLS handshake, Finished (20):

* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384

* ALPN, server did not agree to a protocol

* Server certificate:

*  subject: CN=x.x.x.x

*  start date: Aug 14 03:31:07 2020 GMT

*  expire date: Nov 12 03:31:07 2020 GMT

*  subjectAltName: host "x.x.x.x" matched cert's "x.x.x.x"

*  issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3

*  SSL certificate verify ok.

> GET / HTTP/1.1

> Host: x.x.x.x

> User-Agent: curl/7.68.0

> Accept: */*

> https://x.x.x.x

* Mark bundle as not supporting multiuse

< HTTP/1.1 301 Moved Permanently

< Date: Fri, 14 Aug 2020 04:33:26 GMT

< Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.5

< Strict-Transport-Security: max-age=63072000; includeSubdomains

< X-Frame-Options: DENY

< X-Content-Type-Options: nosniff

< Location: https://x.x.x.x

< Content-Length: 238

< Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>301 Moved Permanently</title>

</head><body>

<h1>Moved Permanently</h1>

<p>The document has moved <a href="https://x.x.x.x/">here</a>.</p>

</body></html>

* Connection #0 to host x.x.x.x left intact


###HTTP/1.1 301 Moved Permanently

Date: Fri, 14 Aug 2020 04:38:17 GMT

Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.5

Strict-Transport-Security: max-age=63072000; includeSubdomains

X-Frame-Options: DENY

X-Content-Type-Options: nosniff

Location: https://x.x.x.x/

Content-Type: text/html; charset=iso-8859-1


(base) LionsEye:~ localhost$  curl -Iki https://x.x.x.x:443

HTTP/1.1 301 Moved Permanently

Date: Fri, 14 Aug 2020 04:38:20 GMT

Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.5

Strict-Transport-Security: max-age=63072000; includeSubdomains

X-Frame-Options: DENY

X-Content-Type-Options: nosniff

Location: https://x.x.x.x/

Content-Type: text/html; charset=iso-8859-1

Changing innodb_flush_log_at_trx_commit in MySQL/MariaDB innodb performance

 Default value is 1, possible values are 0-2.


0 – Logs are written and flushed to disk once per second. Transactions that have not been flushed out can be lost as a result of a crash.

1 – Logs are written and flushed to disk every time a transaction is committed.

2 – Logs are written after each commit of a transaction and flushed to disk once per second. Transactions that have not been flushed out can be lost in the event of a failure.


Saturday, May 21, 2022

Deadlock is one of the nightmare of every developer: MariaDB

------------------------
LATEST DETECTED DEADLOCK
------------------------

Database must always be consistent and ensure integrity to increase the level of confidence in the data holdings. The main database is critical because several processes and programs depends on this database. 

The database is one of the organization core data and business processes are dependent on this databases 
Many days and nights were spent reviewing logs, events, procedures, and queries. Studying Transactions, Storage Engines and the Binary Logs, Query Performance. 
The occurence of deadlock on insert is bugging us , yes deadlock on insert can occur is called gap deadlock.
  
It is possible to cause deadlocks in mysql (Innodb) on concurrent insert statements, without there being any transactions in progress. Deadlocks are possible even when the inserts don't collide on any key.
The deadlocks occur due to gap locking done by mysql. There are several reasons for gap locking, and in this particular case, it has to do with preserving a unique key constraint on an index. The situation presents itself to us this way: There is a unique key constraint on a column and we are doing an insert. Mysql has to make sure that the lock it takes is sufficient to prevent another concurrent insert from adding a record with the same key, thus breaking the unique key constraint.
To address the problem of Gap Deadlock we have to adjust the isolation level to Read Committed .
  
The SQL standard defines four isolation levels, as follows:
1. Read Uncommitted
At this isolation level, all transactions can see the execution results of other uncommitted transactions. This isolation level is seldom used in practical applications, because its performance is not much better than other levels. Reading uncommitted data is also called Dirty Read.
 
2. Read Committed
This is the default isolation level for most database systems (but not MySQL). It satisfies the simple definition of isolation: a transaction can only see changes made by a committed transaction. This isolation level also supports the so-called Nonrepeatable Read, because other instances of the same transaction may have new commit during the processing of the instance, so the same select may return different results.
 
3. Repeatable Read
This is MySQL's default transaction isolation level, which ensures that multiple instances of the same transaction will see the same data row when reading data concurrently. In theory, however, this leads to another thorny problem: Phantom Read. Simply put, hallucination refers to when a user reads a range of data rows, another transaction inserts new rows in the range, and when the user reads the range of data rows, new "hallucination" rows will be found. InnoDB and Falcon storage engines solve this problem through MVCC (Multiversion Concurrency Control) mechanism.
 
4. Serializable
This is the highest isolation level, which solves the hallucination problem by forcing transaction sorting to make it impossible to conflict with each other. In short, it adds a shared lock to each read data row. At this level, it may lead to a large number of timeouts and lock competition.
Here is how we do the Mariadb Setting for the isolation level
SET [GLOBAL | SESSION] TRANSACTION
    transaction_property [, transaction_property] ...
transaction_property:
    ISOLATION LEVEL level
  | READ WRITE
  | READ ONLY
level:
     REPEATABLE READ
   | READ COMMITTED
   | READ UNCOMMITTED
   | SERIALIZABLE
   
Isolation Level

To set the global default isolation level at server startup, use the --transaction-isolation=level option on the command line or in an option file. Values of level for this option use dashes rather than spaces, so the allowable values are READ-UNCOMMITTED, READ-COMMITTED, REPEATABLE-READ, or SERIALIZABLE. For example, to set the default isolation level to REPEATABLE READ, use these lines in the [mysqld] section of an option file:
[mysqld]
transaction-isolation = READ-COMMITTED

To determine the global and session transaction isolation levels at runtime, check the value of the tx_isolation system variable:
SELECT @@GLOBAL.tx_isolation, @@tx_isolation;
#Default isolation level
#set @@session.tx_isolation='read-uncommitted';
set @@session.tx_isolation='read-committed';
SET GLOBAL TRANSACTION ISOLATION LEVEL  READ-COMMITTED


select @@session.tx_isolation;
transaction-isolation = READ-COMMITTED

References:
https://mariadb.com/kb/en/set-transaction/

Sunday, August 2, 2020

What we need is discipline and cooperation


We don’t need the government to impose quarantine for us. We can do our  part stay home and self quarantine. 

We always blame the government for the rising cases of covid19 but have  we been disciplined and followed basic health protocols like social distancing, wearing mask and stay at home?

When ever I need to buy our food supply it seems everything is normal lots of people are on the road, sometimes you can see minors outside of their residence playing on the street, you can see a lots of teens roaming around without mask. 

I can feel the hardship of our health workers, they are already over work, over burden, and needed a break, but people need to eat, they need to work in order to survive.
Some people really need to work and go out so that they can provide food for their family. 

Yes health and survival is really important and some of us food is already a survival and they are willing to risk their life in order to eat and survive.

Our government cannot afford to feed the people so please help.

I don’t believe in another lock down or ECQ I believe  in peoples cooperation and discipline.

We can beat Covid19  if we do our part.

Saturday, April 11, 2020

I am a tax payer I never complain we were trained to survive on our own.

Life in the rural areas is harsh all my sibling will attest to that,
we use to see our mother crying because we barely survive day to day life.

We came from extreme poverty, there are times that we eat only twice(2)  a day.
My sister (https://www.facebook.com/raquel.mogs / https://www.facebook.com/LessTraveledWorld/ ) used to drink rice coffee instead of baby milk because we cannot afford anything. My other sibling(https://www.facebook.com/mylene.mogado) wanted to attend academic quiz bee and other school-related contests on the district, division, and regional level but she can't because we don't have enough money for her transport & allowance but she consistently graduated valedictorian from elementary, high school and college.  My other sister (https://www.facebook.com/alice.mogado.5) never finish college or employed but she's so creative and learn to earn a living in various ways, farming, business, small eatery and other ways to earn. Our youngest sister is also managing a coffee shop and we teach her to not depend on someone that she has to earn on her own.

At an early age, we learn the ways in the farm from land preparation up to harvesting, every member of the family is on the farm doing manual labor. In farming we learn to live,  if we don't plant we don't eat.

I remember one time,  my Uncle told me if you don't have a job go home (province) and plant camote(sweet potato) you will never get hungry.

In spite of the hardship we learn to strive, we learn to study hard, work hard, we learn to save something for the rainy season.

With all the hardship in life, we manage not to depend on someone, we learn to stand on our own. We never asked the government for support or blame the government for being so poor. We follow rules, policies and regulations  because we believe is not the government or anyone else will uplift our living condition.

We believe we can improve our life by dreaming and working hard to attain anything our imagination is the limit.

In times of crisis like the COVID19 we are already prepared because we have been trained since we were kids.

And not only for ourselves but my sisters have shared some of their blessings to our ka barangay who are in need during the COVID19 Pandemic.


Saturday, December 21, 2019

My personal cure to lean purse


1. Instead of eating out from resto, i can buy my favorite food from the market.
2. Instead of Starbucks and  other coffee shop, source out the best coffee bean from the local farm and farmer and brew my own.
3. Instead of grab rides, i choose other mode of transportation.
4. Online sale, mall sale and shopping is not saving, its spending.
5. Unnecessary bills and plans.
6. Clothing, buy what is necessary and important avoid buying one time use like fancy party dress for party.
7. Teach your kids to save! Learning to save is harder than spending. 
8. Investing returns multifold. (Safe investing)

December is the best time to save and invest.

Wednesday, September 18, 2019

MySQL Cluster Management

Managing Mysql Cluster


Monitor the Cluster

ndb_mgm
Cluster Status

ndb_mgm> show

Data Node status
ndb_mgm> all status

Cluster Memory Usage
ndb_mgm> all report memory


How to Restart a MySQL Cluster without downtime

Start Management Cluster to reload configuration

ndb_mgmd --reload -f /var/lib/mysql-cluster/config.ini


Restart the management cluster
shell> kill $(pidof ndb_mgmd)


Starting the management cluster
shell> ndb_mgmd --config-file=var/lib/mysql-cluster/config.ini


#To restart ndb_mgmd overwritting cache files, the following options can be used on commandline (./ndb_mgmd)
--initial
--skip-config-cache

#or removing cache files with:
shell>rm -rf /var/lib/mysql-cluster/


#Data/Storage Node
The data or storage node, which is implements as ndbd or ndbmtf, handles data storage ans retrieval for specific subset of the cluster's data.

#Purpose of datanodes
to process and retrienve information, being the storage for the whole cluster



#Managing Data Node
Stop data node
ndb_mgm> STOP
ndb_mgm> 3  STOP

#Starting Data Node
ndb_mgm> 3  START


Managing SQL Nodes
#Stop SQL Node
shell>service mysql stop

#Start SQL Node
shell>service mysql start

Wednesday, May 1, 2019

Essay on my experience in Hokkaido Japan

My experiences in northern Japan, Hokkaido the breadbasket of Japan.

The qualities of Japanese people that I really admire are the following: They are very creative and innovative, they made use of technology and mechanization to make farmers and farming efficient. I really admire their discipline and their commitment to work.  I also observe how they care for the environment and the observance of cleanliness. All the people are very polite and very formal, punctuality must always observe.

In terms of ICT, University research are really focused on the improvement and solving the current problems of the Industry, In the case of Tokachi which is the breadbasket of Japan research and studies are targeted for the farmers and farms.

The sense of cooperation among farmers is very admirable which I would like to emulate and hopefully, i will be able to set up one in our local place in Northern Luzon, Philippines.

The foods are very rich in taste and they are always fresh. Most of the people really value their health because you can see on the food that they consume, they always have fresh vegetable, fresh ingredients, and healthy diets.

I would like to thank JICA, JICA staff and the Japan Government for giving me this opportunity to experience life in Japan, learn their best practice and see their technology first hand.

Wednesday, February 27, 2019

Excel tips

Some excel tricks on date computation.

Start Date 2004/01/04
End Date 2019/02/28

Compute: Day(s)    = datedif(startdate, enddate, "D")
        Month(s)  = datedif(startdate, enddate, "M")
        Year(s)   = datedif(startdate, enddate, "Y")


Excel Input:
Date now = ctrl + ;
Time now = ctrl + :


Monday, September 3, 2018

Simple SAN Switch Brocade How to


0. Show switch status
>switchshow
1. Show version
>version

2. Show current configuration
>cfgshow

Defined configuration:
 cfg: VMWARE51b
ESX_Hosts_EMC; ESX_Hosts_HDS; ESX_Hosts_01; ESX_Hosts_02;
ESX_Hosts_03; ESX_Hosts_04; ESX_Hosts_05; ESX_Hosts_01_EMC;
ESX_Hosts_02_EMC; ESX_Hosts_03_EMC; ESX_Hosts_04_EMC;
ESX_Hosts_05_EMC; ESX_Hosts_UCS
 zone: ESX_Hosts_01
ESX_01; HDS_NIN_Port_1D; Hitachi_0B; Hitachi_1B
 zone: ESX_Hosts_01_EMC
ESX_01; EMC_A1; EMC_B1
 zone: ESX_Hosts_EMC
xx:xx:xx:xx:xx:xx:xx:xx
.
.

zone: ESX_Hosts_UCS
xx:xx:xx:xx:xx:xx:xx:xx
.

3. Show configured zone
>zoneshow

4. Create alias
>alicreate “ESX_Hosts_04”, “xx:xx:xx:xx:xx:xx:xx:xx″

To verify run command, alishow “ESX_Hosts_04” and so on.

5. Create Zone
>zonecreate “zone1”, “HostPort1; StoragePort1”

To verify run command, zoneshow “zone1” and so on.


6. Create configuration

> cfgcreate "VMWARE51b", "zone1;zone2"

7.Save configuration
>cfgsave

8.Enable configuration
> cfgenable "VMWARE51b"

Wednesday, August 22, 2018

Convert .ISO to File/USB Drive on Mac using dd

Using dd

NAME
     dd -- convert and copy a file

SYNOPSIS
     dd [operands ...]

DESCRIPTION
     The dd utility copies the standard input to the standard output.  Input
     data is read and written in 512-byte blocks.  If input reads are short,
     input from multiple reads are aggregated to form the output block.  When
     finished, dd displays the number of complete and partial input and output

     blocks and truncated input records to the standard error output.


Plug-in your USB stick and find what "/dev/diskN" it is mapped to by opening Terminal (where "N" stands for "disk0", "disk1", "disk2" etc). To do so, please execute:

# diskutil list
or
#df

Unmount USB Stick
Unmount the USB stick

# diskutil unmountDisk /dev/diskN
Where /dev/diskN is the one you have found in previous step as per our example it would be "/dev/disk2".

Write ISO to USB or
Write the content of the ISO file:

# sudo dd if=/path/to/downloaded.iso of=/dev/rdiskN bs=1m
/dev/rdiskN is the same disk you have found previously, with an r in front. r is for raw disk, as writing to /dev/rdisk2 is much faster than writing to /dev/disk2. You will be prompted for the administrator's password.

Wednesday, August 15, 2018

Change Windows Server Product Key on command line

1.  Clear the current key

Open Powershell with admin rights then enter:

slmgr -upk (this removes the current Product Key)


2.  Add the new(Correct Key)

Add The New (or Correct Key)
Now that the key is cleared you can either stay in Powershell and enter the new key with the following:

slmgr -ipk XXXX-XXXX-XXXX-XXXX (with the X's of course being the Key )

or

Go the the activation GUI and you will now be able to enter a Key

Tuesday, May 15, 2018

Planting our own food and be relaxed

Vegetable fruits are now ready to pick from the backyard. Home grown foods are the best and healthiest because we are sure that there are no insecticide and pesticide.

As I arrive home from the office, first thing in my todos are to check the plants/vegetables, watering, weeding, putting some nutrients.  By just watching this vegetable grow day by day help me relax and be calm. The experience it provides make us in connection with nature, as if magic always happen.

In gardening its not always green, sometime they become white or pale which indicate there is a problem with the plant. Presence of insect like white flies/aphids is the most and common problem with my vegetable, they suck the nutrient of the plant. This challenges can be prevented using nature and some insect like  the lady bug that can  prevent the spread of pest. Another challenge is the weather, during the summer the plants turns yellow and if you miss to water the plants they dries easily. The hotness of the temperature can also stress the plants and wither them. We need to improvise by  putting a shade or cover to lessen the impact of the sun.


With all the challenges seeing them bearing fruits is most enjoying part and it culminates when you prepare them for food to be serve in the table. Thus, it helps us economically and  have safe, healthy food to consume. And some time sharing the produce with neighbour gives us joy.


Happy Gardening
 

 

Sunday, April 1, 2018

Strong and courageus boy


On my way home travelling from cagayan valley to manila i sit beside this littel boy, he is just 9 years old travelling alone with his backpack and two boxes of chicken.

I saw his relative sending him off from the bus terminal at jct luna abulug cagayan and then leave him alone.  So i offered him to sit next to me.  I bought rice cake(bibingka local term) from ballesteros and give him some slice but he politely decline he said he wanted to buy tupig at gattaran unfotunately all tupigs are sold out. 

At the  bus stop at Tumawini Isabela i wake him to have a dinner and i offered him to buy his food but he wanted to do it alone, so he proceeded at the counter to  buy his own food then we share the table.  During our meal we are conversing and ask him if he has traveled alone before and he said Yes he did traveld alone. After our meal,  I asked him if he wanted to make pee then he gladly said yes so i told him not to bother with comfort room payment.

Along  the way i noticed hes feeling cold and i pull out my  blanket and shares with him, i can see in his face the comfort of having to feel little warm till he falls asleep.  Near the mountanous area of nueva vizcaya he woke up and whispered me he wanted to make pee. Then I asked the conductor and driver if they can stop for a while and they gladly stop on some safe area. 

As we are approaching metro manila at north luzon express way he woke up and  I can see in his face that hes already excited to reach his destination.  At our destination in sampaloc manila i asked him if his relatives is already at the terminal or does he have the phone number but he just said i dont have,  he told me he will just wait here at the bus terminal. I assisted him to retrieve his baggage carry some and instruct him to just stay at the waiting area till his relative will arrive. I can see in his face that hes just cool and he can manage on his own so i get back at the bus and headed to fairview. 



What a strong courageous boy, hope he is safe. 

Tuesday, September 19, 2017

Mr frugal boy

I am thrifty in terms of luho like fancy dress, savvy gadgets, technological accessories and other small accessories that I don't really need.  You may see me wearing clothes that are give away as long as i am  comfortable and look decent.
I am thrifty in going to high end restaurant and  fine dining.  But i make it sure we have food on our table and food to prepare from our freezer,  I like going to  the  market every weekend to replenish our supply for the week. We cook the food that we like and enjoy to eat, also i love to drink a couple of beer at the end of the day.
I am thrifty in going to movie houses, i rather download  movies on the internet and watch with the family.
I am thrifty spending postpaid plans on  my phone, data, cable tv and other subscription like Spotify  because it hurts me financially, I use prepaid instead.  I barely keep my bill to a minimum and only  necessary utilities like electricity, water and gas.
I am thrifty in a gym membership or buying sport equipment like treadmill, i rather run on a community oval or community sport complex its free and  had the opportunity to  see other people and catch a fresh and cool air.

These are my reasons to be thrift:
To save enough for the education or our children.
To put aside a fund for  our health care in case emergency happens.
To save money to increase my investment portfolio and achieve financial confidence.
To retire from financial burden and enjoy the good things in life.
To live comfortably based to my earning capacity.
To travel more on different places.


Thursday, January 12, 2017

Learning Notes on: "Rationality and Self-Interest in Peer to Peer Networks"

Rationality and Self-Interest in Peer to Peer Networks
By: Jeffrey Shneidman and David C. Parkes

Paper Abstract:

Much of the existing work in peer to peer networking assumes that users will follow prescribed protocols without deviation. This assumption ignores the user’s ability to modify the behavior of an algorithm for self-interested reasons.
We advocate a different model in which peer to peer users are expected to be rational and self- interested. This model is found in the emergent fields of Algorithmic Mechanism Design (AMD) and Distributed Algorithmic Mechanism Design (DAMD), both of which introduce game-theoretic ideas into a computational system. We, as designers, must create systems (peer to peer search, routing, distributed auctions, resource allocation, etc.) that allow nodes to behave rationally while still achieving good overall system outcomes.
This paper has three goals. The first is to convince the reader that rationality is a real issue in peer to peer networks. The second is to introduce mechanism design as a tool that can be used when designing networks with rational nodes. The third is to describe three open problems that are relevant in the peer to peer setting but are unsolved in existing AMD/DAMD work. In particular, we consider problems that arise when a networking infrastructure contains rational agents.


Learners Notes and Synthesis:
In our social environment every human being tends to protect its own self interest and survival at all cause. In order for a society to grow we should learn to be govern by protocols and rules. So with peer-to-peer network we cannot assume that every nodes will follow desired  protocols establish by the central authority or the developer of the application.

Some peer to peer application are govern by rules  and protocols:

* Routing to reach other peer
* Resource management
* Decision making based on facts and environment behavior
* Distribute load among other peer

Rationality vs  Self interest

Based on the example on this paper, running the auction on a large peer-to-peer network, initially you will. Be announcing the bidding for the auction and you are waiting for a lot of bids. But unfortunately there are only three bidders only to find out that they are your direct neighbors, for their self interest  of this neighbor they did not forward the advertisement for the auction.  This example illustrates basic problem  of peer-to-peer network  for rationality vs self interest.

Rationality in peer-to-peer network

Free rider problem:
“A free rider receives the benefit of everyone else's cooperation without having to cooperate himself. Think of a single person in the community who doesn't pay his taxes; he gets all the benefits of the public institutions those taxes pay for—police and fire departments, road construction and maintenance, regulations to keep his food and workplace safe, a military—without having to actually pay for them.” [1]

Tragedy of the commons  problems:
“A Tragedy of the Commons occurs whenever a group shares a limited resource: not just fisheries, but grazing lands, water rights, time on a piece of shared exercise equipment at a gym, an unguarded plate of cookies in the kitchen. In a forest, you can cut everything down for maximum short-term profit, or selectively harvest for sustainability. Someone who owns the forest can make the trade-off for himself, but when an unorganized group together owns the forest there's no one to limit the harvest, and a Tragedy of the Commons can result” [1]

In peer-to-peer system nodes that do not produce the same level of their consumption are considered leechers, while peers that  share the their resources to provide a better performance.
Another example peer to peer clients that deflect from protocols for their own interest are the user that develop their own client program that will deflect on the protocols and will circumvent the network for their own self interest.

Wednesday, December 21, 2016

I wish to be a farmer producer of healthy food

Human basic needs: food, shelter and  clothing.
Next needs are fuel, electricity, internet and the rest are just material that are less important.

Our planet does not need more lawyers, doctors, engineers the planet is now full of tools and other material things that are readily available for our day to day needs.  Our people need food  and the producer of food.  Here in the Philippines the average age of a farmer is 57 years old and we are running out of young farmers. I wish i had the opportunity to go back to these basic activity of producing healthy food and take care of our nature. Nature farming where we can use the tricks of nature to produce food  and totally eradicating the use of synthetic and chemical farming.  Natural farming a combination of diversification and smart ways to produce a healthy food  by taking care of our environment the soil, water and its ecology.

I wish i had a farm that i can cultivate and enrich, raise some chicken that will eventually lays eggs, pigs for the bacon and ham, some goats for the daily milk and cheese  for a very good breakfast meal.  A healthy breakfast that will nourish and support a nice life style.  More livestock, poultry, cultured fish and other fruit bearing plants for the rest of the day.

I wish i had a farm that produces and had surplus for me to sustain my family daily needs like (health, schooling and other needs) and other necessities.  

I wish my main source of living is producing food, where my income does not rely solely on the wages as a regular daily earner. That we are earning just enough  from payday to payday where the big pie of that salary goes to the monthly duties like electricity bill, water bill, housing mortgage  and other items.   A life where we are not oblige to report  on a daily (8am-5pm) basis as long as you are productive in any time of the day. A work place where we can avoid unnecessary and too much politicking.  A work place where we enjoy the view of the crops as they grow, flourish and bear fruit till the harvest season. 

Retirement at the age of 60, i dream of retiring earlier where my body is still capable of doing more work and attending to things that i wish i can do now.  Things like roaming around a farm(wish i had now), observing everything as it happens on the field from planting up to harvesting. Helping the ecology to balance itself and watching the nature mystery as they happen.

Friday, October 14, 2016

Guys of the 90's do you still remember Agfa, Fujifilm and Kodak?

Those were the precious company during the 90s, can you still remember the local photographer like the name of Mang Temy, who usually ride his bike all the way from the other town, just to attend the  event and take you snapshot that will cost  30 pesos to 50 pesos per shot. In todays money what is 30-50 pesos, thats a lot of money during the 90s it  is a one day  wages for transplanting rice in the field  where you are literally planting  rice under the rain or under the sun.  You plant rice all day and get your wages at sun down then spend a little for a bottle of coca cola and save the rest for school and some coins for the bamboo bank.  This bamboo bank will later be opened during special occasion like foundation day, intramural  or christmas party celebration.  During this event the school will organized some activity and have the opportunity to celebrate with classmates, crush-mate, friends and barkadas and sometimes we can take some photographs like one or two shots with the help of the photographer which eventually will pay for the photo when it is printed. Well, those were the experience during the 90s where selfies and duckling smile are not yet conceptualize. Every smile were so precious  which we always cherish those experiences.













What happened to Agfa, Fujifilm, Kodak   and  other photo film company? Today they were overtaken by smart device which will take a photo of you and enhance your look to make you even better.  When you look at the photos of today everything is perfect but sometimes they are very far from reality to the point where you will not be able to realized the same person from the photograph.

Just remembering the days of yesterday.

Tuesday, October 11, 2016

Advanced Persistent Threat: Personal perspective the right to be informed and equipped

Background:
In todays  information security landscape there are dramatic change in the way and the motivation of cybercriminals.  From the use of worms, virus, spyware, bots to advanced persistent threats (APT), zero day targeted attacks, dynamic trojans, stealth bots and zombie devices from the proliferation of IoT(Internet of Things).  Organisation or individual are facing a threat which is coordinated, organised, targeted and motivated. These new threat are no longer  intended to  disrupt, annoy, destroy and commit cybercrime. They are targeting organisation/individual to steal information for financial gain (financial information), intellectual property or cyber espionage(national security) .

What is APT? (definition by Symantec)

An APT is a type of targeted attack. Targeted attacks use a wide variety of techniques, including drive-by downloads, Microsoft SQL® injection, malware, spyware, phishing, and spam, to name just a few. APTs can and often do use many of these same techniques. An APT is always a targeted attack, but a targeted attack is not necessarily an APT.

How Advance Persistent Threat(APT) Works:
Cybercriminals are taking advantage of the zero-day attack,  polymorphic malware and blended threat to launched a sophisticated and determined attack to a specific target.  Some anti-virus company  tag these attacks as malware where in fact these type of attack are intelligent malware that targets organisation or individual for a specific purpose or gain.

Thursday, October 6, 2016

Learning notes on "Self-Organization in Peer-to-Peer Systems"

Self-Organization in Peer-to-Peer Systems
By:  Jonathan Ledlie, Jacob M. Taylor, Laura Serban, Margo Seltzer Harvard University

Paper Abstract:

This paper addresses the problem of forming groups in peer-to-peer (P2P) systems and examines what dependabil- ity means in decentralized distributed systems. Much of the literature in this field assumes that the participants form a local picture of global state, yet little research has been done discussing how this state remains stable as nodes enter and leave the system. We assume that nodes remain in the sys- tem long enough to benefit from retaining state, but not suf- ficiently long that the dynamic nature of the problem can be ignored. We look at the components that describe a system’s dependability and argue that next-generation decentralized systems must explicitly delineate the information dispersal mechanisms (e.g., probe, event-driven, broadcast), the ca- pabilities assumed about constituent nodes (bandwidth, up- time, re-entry distributions), and distribution of informa- tion demands (needles in a haystack vs. hay in a haystack [13]). We evaluate two systems based on these criteria: Chord [22] and a heterogeneous-node hierarchical group- ing scheme [11]. The former gives a failed request rate under normal P2P conditions and a prototype of the latter a similar rate under more strenuous conditions with an order of magnitude more organizational messages. This analysis suggests several methods to greatly improve the prototype.


Notes and synthesis:

In human cooperation we can build a super organization example in a dragon boat, a single member of a team can only row at a low speed but when the team is composed of more members and they are organized they can achieved greater speed. Peer-to-peer system and current algorithm used by this technology  is increasingly advantageous in a variety of situation.

Peer-to-peer system can be used in variety of services e.g. voice communication like Skype.  Delivering information in a greater scale and millions of users imagine a single video server that distributes content to a thousand or million of users will lead to performance degradation and greater possibility of failure. The reason for a distributed system is to attain redundancy and to have speed of light in the delivery of service.

This paper has contributed in the following:
1. implicit goals and assumptions about a particular decentralized system affects measures reliability
2. Introduced a self-organizing hierarchically-based P2P system
3. Take assumptions implicit in current P2P filesharing systems and evaluate the reliability of Chord and the hierarchical grouping system.