Blog

Top Coding Trends You Should Know in 2025

The coding landscape in 2025 is evolving fast, and one of the most exciting trends is the rise of serverless, AI-enhanced applications powered by WebAssembly (Wasm) and Edge Computing. 💡 Why it matters: WebAssembly (Wasm) allows high-performance code (like Rust, C++, or Go) to run right in the browser — making web apps faster and […]

Change AWS EC2 Instance Key Pair

Create a new Key Pair in Network & Security > Key Pairs, let’s name it “new_key_pair”: https://prnt.sc/YF3IKFzFZYtD Use PuTTYgen to convert the PEM file to PPK file. The PPK file will be used in PuTTY to connect in your instance. Click “Load” and open the new PEM file created from AWS. Then click “Save private […]

Changing Alt Attribute of images

I tumbled an issue recently that the elements don’t have an alt attribute, so I added a code that will set all empty alt with a random value. function set_empty_img_alt_attribute( $filtered_image, $context, $attachment_id ) { $string = $filtered_image; $dom = new DOMDocument(); @$dom->loadHTML($string); $image = $dom->getElementsByTagName(‘img’)->item(0); if($image->hasAttribute(‘alt’)) { if( $image->getAttribute(‘alt’) == “” ) { $image->setAttribute(‘alt’, […]

Changing Decimal places in Event Tickets plugin

This solution is for the WordPress plugin called Event Tickets. Simply add these codes in your functions.php add_filter( ‘tribe_format_amount_decimals’, ‘change_decimal_places’ ); function change_decimal_places() { return 0; // all amounts will return as a whole number }

CS10 PHP Quiz March 10

Create a variable named ‘items’ with a value of 100.9 Create an associative array with indexs “name”, “age”, “height” and values of “jose”, 28, “128cm” respectively, then assign it to a variable named ‘person’. Using the variable in #2, print the value of index ‘name’. Write an If statement that checks if the variable in […]

Happy Holiday!

Just a quick post saying Merry Christmas to all!!