martes, diciembre 19, 2023

miércoles, diciembre 13, 2023

How I got the certification, AWS Certified Solutions Architect - Associate

Course

  • I did the course of learn.cantrill.io its longer than others, but you learn a lot about AWS. 
  • I took a lot of notes, and use them latter to study.

Practice Exams

I did the practice exams from TD(tutorialsdojo.com) mainly in review mode, and got these results
1° attempt timed Mode Set 1    71
2° attempt timed Mode Set 1    93
1° attempt  review Mode Set 2    88
1° attempt  review Mode Set 3    69
1° attempt  review Mode Set 4    74
1° attempt  review Mode Set 5    69
1° attempt  review Mode Set 6    72
1° attempt  review Mode Set 7    71

I didn't see improvements in my scores in the first attempts. I only saw an improvement when I did the final test and got a 91. After that, I started my second attempts, and got these results
2° attempt timed Mode Set 2    88
2° attempt timed Mode Set 3    89

After getting those scores, I decided I was ready for the exam. I scheduled it and fortunately approve it with a score of 836/1000. I found the certification exam very similar to the practice exams, but the first attempt on the practice exams is more challenging.

Review mode is perfect for the first attempt on the practice exams because it gives you immediate feedback that allows you to learn faster from your mistakes and fill your knowledge gaps. If you're worried about the timing, use an external stopwatch while doing the review mode. I used the android app Easy Stopwatch.

A 30-minute exam extension is available upon request to non-native English speakers when taking an exam in English https://aws.amazon.com/certification/policies/before-testing/

Recommendations

  • Do all the questions in all the practice exams in review mode. Don't obsesses about the scores. 
  • The final test score is the closest to what you will get in the certification exam.

lunes, diciembre 04, 2023

Regexps for goodreads

Average rating above 4, and millions of ratings.

4\.[0-9]{2} [a-z ]*— [0-9,]{9}


Average rating above 4, and hundred of thousands of ratings

4\.[0-9]{2} [a-z ]*— [1-9][0-9,]{6}


I do regexp searches in chrome using the extension find+ | Regex Find-in-Page Tool

miércoles, septiembre 27, 2023

Delete an AWS CloudFormation stack that has a DELETE_FAILED resource.

Click again the delete button, this time you will be able to skip the DELETE_FAILED resource.

Important: To avoid unnecessary charges, you must manually delete the resources that are retained when the stack is deleted.

https://repost.aws/knowledge-center/cloudformation-stack-delete-failed

lunes, septiembre 11, 2023

Active Presenter my favorite Screen Recorder

  • No time limit, ad-free.
  • Record full screen, window, region, webcam, microphone, computer sound.
  • Basic video editing features: trim, cut, split, change speed/volume, add closed captions, zoom-n-pan, annotations, multimedia, transitions, animations, and more.
  • Advanced video editing features: blur effect, green-screen effect, audio fade in/out, noise reduction, audio normalization.

Goodfellas and a criminal life with no regrets

Goodfellas starts with


And ends with Henry Hill sadness for no longer being a ganster

And Sid Vicious singing My Way

Regrets, I've had a few
But then again, too few to mention
I did, what I had to do
And saw it through with out exemption
I planned each chartered course
Each careful step along the highway
And more, much more than this
I did it my way

For what is a prat, what has he got
When he wears hats and he cannot
Say the things he truly feels
But only the words, of one who kneels
The record shows I took the blows
And did it my way

sábado, septiembre 09, 2023

"Australia no es tan color de rosa como pintan las agencias": La realidad de muchos estudiantes internacionales

"Australia no es tan color de rosa como pintan las agencias": La realidad de muchos estudiantes internacionales

How-to check AWS current month costs

You're seeing the charges until yesterday. There is a delay of 24 hours between the usage of a resource and AWS showing its cost to you.


Current month costs

Go to the main page and check the Cost and Usage widget


Charges per day

Click the link Go to AWS Cost Management, and you will see your charges per day.


Click on View in Cost Explorer and then on Dimension select Service, and you will see the charges per day and per Service. Other useful options are usage type and API Operation.


Current month costs detailed per service and account

Go to AWS Billing > Bills and check the tabs Charges by service and Charges by account


martes, septiembre 05, 2023

NOT in the AWS free tier

It's very hard to understand what is and what is not in the AWS free tier. This is a list of the things I was charged using AWS free tier, and so after that I learned that are not part of it

VPC

  • NAT gateway
  • VPC Endpoint

EC2

  •  Elastic IP

  • Backup Storage

Data transfer

  • EBS snapshot copy between AWS Regions


See also

Please fix the AWS Free Tier before somebody gets hurt

lunes, agosto 28, 2023

How to avoid unexpected charges when using AWS

Create a budget

Go to AWS Billing > Budgets and create a budget to receive notifications if your spending reaches it.


Change the Billing preferences

Go to AWS Billing > Billing preferences and active 

  • PDF invoices delivery by email
  • AWS Free Tier alerts
  • CloudWatch billing alerts


Check the current month costs

On a constant basis go to the main page, and on the Cost and Usage widget check your current month costs and forecasted month-end costs. Also think about deleting all the widgets, but this one.


Usage and charge information is shown after 24 hours

"The Billing and Cost Management console takes about 24 hours to update usage and charge information for active resources." https://repost.aws/knowledge-center/resources-unexpected-charges


See also

NOT in the AWS free tier

martes, agosto 22, 2023

Daily sugar intake: 25 grams

"A WHO guideline recommends adults and children reduce their daily intake of free sugars to less than 10% of their total energy intake. A further reduction to below 5% or roughly 25 grams (6 teaspoons) per day would provide additional health benefits." https://www.who.int/news/item/04-03-2015-who-calls-on-countries-to-reduce-sugars-intake-among-adults-and-children

lunes, agosto 21, 2023

Line box the reason why text-align and vertical-align are very different

text-align, useful if you have a block element and need to horizontally align the inline elements inside of it.

vertical-align, useful if you have an inline element(e.g. an image) and need to vertically align it inside its line box.

Example

See the Pen text-align and vertical-align are very different by Wilson Camilo Uribe Neira (@kmilo0) on CodePen.


If you're confused with the vertical-align example an explanation about line box could be what you need.

Line box

The code

<p>
    Good design will be better.
    <span class="a">Ba</span>
    <span class="b">Ba</span>
    <span class="c">Ba</span>
    We get to make a consequence.
</p>
    

Will generate 3 line-boxes:

  • the first and last one each contain a single anonymous inline element (text content)
  • the second one contains two anonymous inline elements, and the 3 <span>
A <p> (black border) is made of line-boxes (white borders) that contain inline elements (solid borders) and anonymous inline elements (dashed borders)

See also

miércoles, agosto 16, 2023

How-to center a div and how-to center the content inside of it

You could center a div with

margin: auto


And you could center its content using

text-align: center;


Example

See the Pen Untitled by Wilson Camilo Uribe Neira (@kmilo0) on CodePen.

martes, agosto 08, 2023

Political violence in the late roman republic

"Tiberius’s supporters packed the area near the Temple of Jupiter on the Capitoline Hill to ensure they controlled the voting space. Accompanied by bodyguards, Tiberius himself arrived and was greeted by cheers and applause from the crowd. When opponents of Tiberius arrived, they found themselves unable to push through the pro-Gracchan mob. Prevented from accessing the voting stalls, when the anti-Gracchan voters heard the call for the tribes to begin voting, scuffles erupted on the edge of the crowd as opponents tried to push their way in. The fighting halted the voting.

Meanwhile, the Senate convened for a session in the Temple of Fides, located just around the corner on the Capitoline. Rumors swirled that Tiberius had deposed all the other tribunes and was preparing to assume regal powers. The consul presiding over the Senate that morning was none other than Mucius Scaevola—one of the authors of the Lex Agraria. Nasica and the hard-liners in the Senate demanded Scaevola do something, but the consul replied that “he would resort to no violence and would put no citizen to death without a trial; if, however, the people, under persuasion or compulsion from Tiberius, should vote anything that was unlawful, he would not regard this vote as binding.”

This was not good enough for the incensed Nasica, who rose in response and said, “Let those who would save our country follow me.” Nasica then donned the formal attire of the pontifex maximus and put himself at the head of a mob of like-minded senators and clients. Together they marched to the Temple of Jupiter. As weapons were not permitted to be carried inside the Pomerium—the sacred city limits—Nasica and his followers armed themselves mostly with table legs and other bludgeons. Though the coming attack was not premeditated, it was clear they were willing to use force to beat back the mob trying to make Tiberius Gracchus king of Rome.

Meanwhile, up on the rostra, Tiberius was warned about the approaching mob. Tiberius’s men turned and readied for battle, but hesitated when they saw the mob included senators and was led by the pontifex maximus himself. Though the Gracchans started to give way, Nasica’s men aggressively pushed and beat the crowd anyway. Once the shoving and hitting began, Tiberius’s supporters naturally fought back, leading to a line of clashes throughout the Assembly. The casualties in the resulting mêlée were entirely one-sided—Tiberius’s people were unarmed and made easy targets for Nasica’s gang. Trapped in the confined space in front of the Temple of Jupiter, many people were trampled underfoot or fell to their deaths off the steep cliffs of the Capitoline. When the dust cleared three hundred people lay dead.

The principal target of the attack was, of course, Tiberius himself, and it didn’t take long for the reactionary senators to locate their prey. Near the entrance of the Temple of Jupiter, Tiberius tripped over the body of a man who had already fallen and before he could get up, he was set upon by a fellow tribune and a senator. Though he was a tribune and allegedly sacrosanct, these two men proceeded to beat Tiberius Gracchus to death with the legs of a bench. As the historian Appian records: “So perished on the Capitol, and while still tribune, Gracchus, the son of that Gracchus who was twice consul, and of Cornelia, daughter of that Scipio who robbed Carthage of her supremacy. He lost his life in consequence of a most excellent design too violently pursued; and this abominable crime, the first that was perpetrated in the public assembly, was seldom without parallels thereafter from time to time.”" The Storm Before the Storm: The Beginning of the End of the Roman Republic


jueves, julio 27, 2023

Debugging CSS: find undefined classes in your HTML

Problem

You write

btn-secundary

but the class name is

btn-secondary

now your HTML doesn't have the right style and there are no warnings or errors to help you.

Solutions

miércoles, julio 26, 2023

Actualidad politica Colombiana en youtube y sus seguidores

Grandes medios

  • 5.81M seguidores Noticias Caracol
  • 2.49M seguidores Revista Semana
  • 2.12M seguidores El Tiempo
  • 1.34M seguidores La Pulla
  • 1.23M seguidores Noticias Uno
  • 1.03M seguidores Noticias RCN
  • 900K seguidores El Espectador

Independientes

  • 840K seguidores F*cksNews
  • 567K seguidores Notiparaco
  • 442K seguidores Wally Opina
  • 2.1K seguidores Presunto podcast

Es impresionante como F*cksNews con sus 840K seguidores ya casi alcanza al Espectador un periodico de 136 años y propiedad de una de las familias mas ricas de Colombia, los Santo Domingo.

jueves, julio 20, 2023

CSS was designed to style documents

Leftovers can be kept in the refrigerator for 3 to 4 days or frozen for 3 to 4 months

Bacteria grow rapidly between the temperatures of 4° C and 60° C(the danger zone). To ensure that leftovers are safe to eat, immediately after cooking refrigerate or freeze the leftovers for rapid cooling. Throw away all perishable foods that have been left in room temperature for more than 2 hours (1 hour if the temperature is over 32° C).

Cover leftovers, wrap them in airtight packaging, or seal them in storage containers. These practices help keep bacteria out, retain moisture, and prevent leftovers from picking up odors from other food in the refrigerator.

To prevent bacterial growth, it's important to cool food rapidly so it reaches as fast as possible the safe refrigerator-storage temperature of 4° C or below. To do this, divide large amounts of food into shallow containers.

Leftovers can be kept in the refrigerator for 3 to 4 days or frozen for 3 to 4 months.


Reheat

Safe ways to thaw leftovers include the refrigerator, cold water and the microwave oven. Refrigerator thawing takes the longest but the leftovers stay safe the entire time. After thawing, the food should be used within 3 to 4 days or can be refrozen.

If a large container of leftovers was frozen and only a portion of it is needed, it is safe to thaw the leftovers in the refrigerator, remove the needed portion and refreeze the remainder of the thawed leftovers without reheating it.

It is safe to reheat frozen leftovers without thawing, either in a saucepan or microwave (in the case of a soup or stew) or in the oven or microwave (for example, casseroles and combination meals). If using a microwave, be sure the covering is microwave safe, and vent the lid or wrap to let the steam escape. Reheating will take longer than if the food is thawed first, but it is safe to do when time is short.

When reheating leftovers, be sure they reach 74° C as measured with a food thermometer. Reheat sauces, soups and gravies by bringing them to a rolling boil. Cover leftovers to reheat. This retains moisture and ensures that food will heat all the way through.

Sometimes there are leftover "leftovers." It is safe to refreeze any food remaining after reheating previously frozen leftovers to the safe temperature of 74° C as measured with a food thermometer.

More info at https://www.fsis.usda.gov/food-safety/safe-food-handling-and-preparation/food-safety-basics/leftovers-and-food-safety

domingo, julio 09, 2023

The 80 years of the French transition from monarchy to democracy

King Louis XVI

House of Bourbon (1589–1792)
  • Louis XVI (1774-1792) - King of France from 1774 until he was deposed during the French Revolution in 1792. He was later executed in 1793.


French First Republic 1792–1804
  1. National Convention (1792-1795) - During the French Revolution, the National Convention served as the governing body of France. It had various leaders, including Maximilien Robespierre, Georges Danton, and Jean-Paul Marat.
  2. Directory (1795-1799) - The Directory was a five-member executive committee that governed France during the later years of the French Revolution. It was led by different individuals, including Paul Barras and Jean-François Reubell.
  3. Napoleon Bonaparte (1799-1804) - After a coup d'état, Napoleon Bonaparte became First Consul in 1799 and later declared himself Emperor of the French in 1804, establishing the First French Empire.

House of Bonaparte, First Empire (1804–1814)

  • First French Empire (1804-1814/1815) - Under Napoleon Bonaparte's rule, France became an empire. He was the Emperor of the French until his first abdication in 1814, followed by a brief return in 1815 known as the Hundred Days.

House of Bourbon (1815–1830)
  1. Louis XVIII (1814-1824) - After Napoleon's final defeat, Louis XVIII, a member of the House of Bourbon, was restored to the throne as King of France.
  2. Charles X (1824-1830) - Louis XVIII's younger brother, Charles X, succeeded him as King of France but was overthrown during the July Revolution of 1830.


House of Orléans, July Monarchy (1830–1848)

  • July Monarchy (1830-1848) - Following the July Revolution, a constitutional monarchy known as the July Monarchy was established. Its monarchs were Louis-Philippe I, known as the "Citizen King," and his son Louis-Philippe II.


French Second Republic (1848–1852)

  • Second French Republic (1848-1852) - The Second French Republic was proclaimed after the overthrow of the July Monarchy. Its presidents included Louis-Napoléon Bonaparte, who later became Emperor Napoleon III.


House of Bonaparte, Second Empire (1852–1870)

  • Second French Empire (1852-1870) - Louis-Napoléon Bonaparte, now Napoleon III, declared himself Emperor of the French, establishing the Second French Empire.


Adolphe Thiers, first President of the French Third Republic.


French Third Republic (1870–1940)

  1. Government of National Defense (1870-1871) - The Government of National Defense was established during the Franco-Prussian War and played a key role in the defense of France. Its leaders included Louis Jules Trochu and Léon Gambetta.
  2. Third French Republic (1870-1940) - After the fall of the Second French Empire, the Third French Republic was proclaimed. It had a series of presidents, including Adolphe Thiers, Jules Grevy, and Raymond Poincaré.

Every fraction of a degree the world warms, the worse the extreme weather will be


jueves, junio 15, 2023

Local DTOs are harmful

"The DTO pattern is often incorrectly used, DTO is meant to group remote calls.

DTOs are called Data Transfer Objects because their whole purpose is to shift data in expensive remote calls. They are part of implementing a coarse grained interface which a remote interface needs for performance. Not just do you NOT need them in a local context, they are actually harmful both because a coarse-grained API is more difficult to use and because you have to do all the work moving data from your domain or data source layer into the DTOs.

Some people argue for them as part of a Service Layer API because they ensure that service layer clients aren't dependent upon an underlying Domain Model. While that may be handy, I don't think it's worth the cost of all of that data mapping. As my contributor Randy Stafford says in P of EAA "Don't underestimate the cost of [using DTOs].... It's significant, and it's painful - perhaps second only to the cost and pain of object-relational mapping".

https://martinfowler.com/bliki/LocalDTO.html

viernes, junio 02, 2023

MVC (Model-View-Controller)

The three parts of the MVC software-design pattern are:

  • Model: Manages data and business logic.
  • View: Handles the display
  • Controller: Receives input from the user and converts it to commands for the model or view. It's a bridge between model and view (which don’t know about one another)




Note: in some versions of the pattern the model calls the view directly.