XCOM: Enemy Unknown

I got bored playing on my phone so I put HIT and Marvel Future Fight on hold for a while and started playing XCOM again.

XCOM: Enemy Unknown - Intro Screen

So I fired up DosBox and revived XCOM from my backup and started playing every chance I can get.

Now, what is XCOM? XCOM is a game developed by Microprose launched in 1994 for MS-DOS (oh, the good times in gaming).

According to Wikipedia

The player takes the role of commander of X-COM – a clandestine, international paramilitary organization defending Earth from an alien invasion. Through the game, the player is tasked with issuing orders to individual X-COM troops in a series of turn-based tactical missions. At strategic scale, the player directs the research and development of new technologies, builds and expands X-COM’s bases, manages the organization’s finances and personnel, and monitors and responds to UFO activity.

I would say you take control of an alien hunting elite special forces group with awesome hair, nice big guns and alien tech.

As you setup bases, kiss the asses of countries the give you big funding ( I always set bases on US, Europe, and Asia) and race to get the cool looking personal armor but still prefer using the Flying suit for overall protection and usage, once you get the Avenger you can kick some serious alien space craft butts (lol) and directly start the mission once you take down a big one.

So after 23 years this game still kicks ass, still has the best Intro and is still one of my favorite games.

Doing a bit of googling and digging. I tried searching for mods and/or graphic update for XCOM and this is what I was able to find. I will download these and try playing it for a while.

UFO:Extraterrestrials – a Microsoft Windows game aimed to be a spiritual sequel to the highly acclaimed UFO: Enemy Unknown. Developed by Chaos Concept.

Pic Credit : http://www.ufo-extraterrestrials.com/


Open Xcom – which is a full revamp of the XCOM: Enemy Unknown but still has the look and feel of the original game from Microprose.

Pic Credit: http://openxcom.org


Continue Reading

Gen.Cudilla.Net – Setting up my wife’s photo blog

Recently, I set up a blog for my wife where she can write about her hobbies and passion as a form of stress reliever and entertainment.

I created Gen.Cudilla.net and installed WordPress. Since my wife uploads most of her pictures on Instagram and Facebook. I decided to make the blog be more social media friendly. Though incorporating those may take some time and I have yet to teach her how

Performance :

Security :

Social Media

  • Facebook Comments Plugin – I have yet to activate this, since activating it gives me an Internal Server Error 500.
  • Intagrate Lite – Awesome plugin pulls Instagram posts and automatically posts them to your WordPress blog.

Ads :

  • AdSense Integration WP QUADS – I may have to activate this last, since ads may not be needed at the moment but it’s a good thing to be always prepared.

I need to also fix the .htaccess file for this blog for more peace of mind/blogging. Hopefully this gets my wife blogging.

You can check out her site at gen.cudilla.net.

Continue Reading

My Github page

Finally got my sh** sorted out, I can now focus on this blog and some of the projects I want to do.

  • back to coding possibly relearn stuff (C Language, Java/Javascript) and learn new stuff (frameworks, new languages)
  • continue studying ruby and ruby on rails, python and maybe some HTML/CSS advanced stuff.

I’ve set my Github page and plan to use Jekyll on it. On next couple of weeks I may be able to put some content, develop the page a little more.


Continue Reading

Fun with CSS – Color Changing Webpage on mouse hover

I happen to stumble on a post while I was refreshing and trying to relearn creating websites.  I’m learning through codeschool and theodinproject which I haven’t touched in a while.

The fun part is when I’m experimenting on stuff that would be implemented on future projects.

Like how to Create a Color Changing Website Using CSS3 from DesignShack, followed their easy to follow instruction and even picked up a knowledge on my #relearncode adventure.


You can click on this link to see it in action.   Color Changing Webpage on mouse hover

I’ll be playing with these in a little bit.

I’ll be back with my progress.

Continue Reading

Github, Twitter, and other sites Down

I thought it was my connection but it seems that was having an issue.

It seems that a couple of hours ago, a DDOS attack happened.
You can check more from this site : https://www.hackread.com/ddos-attack-dns-sites-suffer-outage/

Twitter has been up and down for the last hour that I’ve checked. Github seems to be down I haven’t checked most of the sites yet.

Continue Reading

Email Generator Project

I’m creating a simple email generator and I’m stuck with generating possible email combinations that I have provided.

I already got to the part where I could generate possible combinations with the given fname, lname and domain.

Example :

var ec1 = firstname + “@” + domain;
var ec2 = firstname + lastname + “@” + domain;
var ec3 = firstname + “.” + lastname + “@” + domain;
var ec4 = firstname.charAt(0) + lastname + “@” + domain;
var ec5 = firstname.charAt(0) + “.” + lastname + “@” + domain;
var ec6 = lastname + “@” + domain;
var ec7 = firstname + lastname.charAt(0) + “@” + domain;
var ec8 = firstname + “.” + lastname.charAt(0) + “@” + domain;
var ec9 = firstname.charAt(0) + lastname.charAt(0) + “@” + domain;
var ec10 = firstname + “_” + lastname + “@” + domain;
var ec11 = firstname.charAt(0) + “_” + lastname + “@” + domain;
var ec12 = lastname + “_” + firstname + “@” + domain;

var combinations= ec1 + ec2 + ec3 + ec4 + ec5 + ec6 + ec7 + ec8 + ec9 + ec10 + ec11 + ec12;

document.getElementById(“theresult”).innerHTML= combinations

The question is, how can I do it with the options I have below

Emails [“gmail.com”, “yahoo.com”, “hotmail.com” ,”aol.com”, …]

It would be something like

var a1 = firstname + “@” + emails;
var a2 = firstname + lastname + “@” + emails;
var a3 = firstname + “.” + lastname + “@” + emails;

and the result would be

firstname@gmail.com, firstname@yahoo.com, firstname@hotmail.com, …

Update 10/18 5:40am.

Using the following code :

var domain=[“gmail.com”,”yahoo.com”,”hotmail.com”,”outlook.com”,”me.com”,”mac.com”,”aol.com”,”live.com”];

for(var i=0; i<domain.length; i++) {

var p1 = firstname + “@” + domain[i] + “, “;
var p2 = firstname + lastname + “@” + domain[i] + “, “;

This only displays the last one which is always “live.com”.. back to the drawing board, and time for more coffee.

1/29/2017 : Stopped this project for a while , tried it earlier, still stumped.

Went to ask a question on stackoverflow for some guidance.


HA!!! solved with this ” arr.push(addresses)”. Thank you StackOverflow User LaughU for the solution.

Continue Reading

New Theme, New Adventure

Now that I changed my theme.. opted for a responsive minimalist theme.

I may have to focus more on what I need to accomplish. Since this blog has not been updated for quite sometime. Last year, I posted that I’m back but have not gotten to it. I got buried at work, got tired of all the crap I had to put up with at work. Mostly asshole co-workers, less pay, ever increasing workloads, politics in the office but enough is enough.

Time for a change of pace, change of scenery, and a change of profession. I’m going back to coding probably go back to studying Ruby, Ruby on Rails, Java, Javascript, and Python. Add in some HTML5 and CSS3.

Continue Reading

My WordPress .htaccess file

Here is what my .htaccess file looks like, Also with a brief rundown on what it does. Since this is a WordPress multisite installed in a subdomain, most of which I got from the WordPress Codex.

The default WordPress Multisite .htaccess for Subdomains

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

This protects your .htaccess/htpasswds, wp-config.php, error_log, php.ini

<FilesMatch “^.*(error_log|wp-config\.php|php.ini|\.[hH][tT][aApP].*)$”>
Order deny,allow
Deny from all

This prevents directory browsing. Typing jaren.cudilla.net/wp-includes would lead you to a 404 page.

#Disable directory browsing
Options All -Indexes

Expires headers to reduce server load and Increase page load time, it tells the browser to load a cached version of the page

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault “access plus 1 month”
# My favicon
ExpiresByType image/x-icon “access plus 1 year”
# Images
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
ExpiresByType text/css “access plus 1 month”
# Javascript
ExpiresByType application/javascript “access plus 1 year”

This is for leverage browser caching, according to GTmetrix, “browser caching is important because it reduces the load on your web server, which ultimately reducing the load time for your users.”

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access plus 1 year”
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/gif “access plus 1 year”
ExpiresByType image/png “access plus 1 year”
ExpiresByType text/css “access plus 1 month”
ExpiresByType application/pdf “access plus 1 month”
ExpiresByType text/x-javascript “access plus 1 month”
ExpiresByType application/x-shockwave-flash “access plus 1 month”
ExpiresByType image/x-icon “access plus 1 year”
ExpiresDefault “access plus 2 days”

To Enable Gzip Compression, plus compressing static data.

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml# Remove browser bugs + Reduce pages weight by compressing static data
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent

This tells the browser to actually serve a cached version or the actual page. “Cache-Control directives control who can cache the response, under which conditions, and for how long” snippet from the tldr version on Google Developers.

# BEGIN Cache-Control Headers
Header set Cache-Control “public”
Header set Cache-Control “private”
Header set Cache-Control “private, must-revalidate”
# END Cache-Control Headers

To save more bandwidth

# BEGIN Turn ETags Off
Header unset ETag
FileETag None
# END Turn ETags Off

I could still add this. According to Smashing Magazine‘s 10 Useful WordPress Security Tweaks will protect from script injections. In the light of my recent post Cleaning a defaced WordPress site. This maybe useful, extremely useful.

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]

Cool Links



Continue Reading

Cleaning a Defaced WordPress Site

If you have recently experienced your WordPress site defaced or hacked. You may have found the urge to call your webhost and give their customer service hell. But fixing/cleaning this is fairly simple, you can lessen your stress and lower your heart rate by fixing the website first. Then if all else fails, GO BUG YOUR WEBHOST!

Depends on the level of defacing, other hacks would just overwrite the index.php on your root folder, others would be theme-based hacks/defacing, it could be the theme’s header files or other files or a plugin with a  known exploit like revslider there would also be new files uploaded to your webserver (i.e. malicious scripts, upload scripts etc.), while the page is defaced, it also affects your .htaccess file with a redirect to let’s say a pharmacy site, a russian dating site, a michael kors online shop.

Couple of things needed

  • SSH/Shell access – PuTTy  If your webhost allows shell access, For cloud hosted websites,that’s 2 less tools needed for the repair. For cPanel hosted sites, I always stick to either cPanel’s file manager and editor or I use the following tools below.
  • FTP client – I use Filezilla, free download easy to use, fast, stable. What more can you ask for?
  • Notepad / text editor – I suggest Notepad++, better than the normal notepad as it displays scripts color coded and display line numbers for easy debugging.
  • backups (website files / database) this can be either done manually, dumping your mysql db and copying your public_html/www folder to your local computer or through cPanel’s backup wizard or if your webhost has set backups automatically through WHM. For cloud hosted websites, depends on your host if they have automatic backups.

Sites you can check :

You can check phpxref for cross referencing default wordpress files to your modified index.php file. For the default wordpress .htaccess you can check the wordpress codex. This site has saved me a couple of times, Sucuri.net’s Sitecheck gives you information regarding what type of infection your site has.

Important things to check :

  • File and directory permissions – CHMOD 755 for directories and CHMOD 644 for Files
  • Timestamps – If you have not recently modified your WordPress site, any change in the file’s timestamp “last modified date” is cause for suspicion.

If your index.php file is different from what is typed here chances are your index.php file has already been modified. All you have to do is to copy this code delete everything on your current index.php file and paste the code below.

* Front to the WordPress application. This file doesn’t do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
* @package WordPress

* Tells WordPress to load the WordPress theme and output it.
* @var bool
define(‘WP_USE_THEMES’, true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

Save the file, and reload your website. If it shows your WordPress main page, then you’re done. Otherwise you have to check you current theme’s files or better yet get a new theme.

If you are using shell access you can setdomain or setuser (if allowed by your webhost). To find hacked websites/malwares – malwares, script injections has similarities which we can easily find by searching every php file on the server

On PuTTy
You can setdomain [domain] my setdomain command does not work that is why I use setuser [domain ftp username]
copy/paste on putty or type it if your feeling lucky.
find . -type f -name ‘*.php’ | xargs egrep -i “(eval|base64_decode) *\(” > hackdwscheck.txt
This will find and check every .php file with the words “eval base64_decode” and writes it on hackdwscheck.txt (this will show a couple of php files with the searched criteria “eval base64_decode”) but you will notice that a hacked file will display something like “<?php eval(base64_decode(“ZDERagfsfdg455aRSgt565GERH656htgpOwpp…” that would be around 5000 to around 50000 characters long.
You can view and specifically modify or remove that entry on the file listed.
A more detailed article will be written next using SSH, troubleshooting cPanel hosted websites, etc.
Another tip, you may want to keep WordPress and it’s plugins updated to patch those security loopholes.
Got Other TIPS, share it on the comment area below.
You may also want to read this …
Continue Reading

Fix PS3 YLOD with a Heat Gun and Toothpaste+Vaseline

My beloved PS3 (CECHG01) died a couple months ago and I had no time, no cash to have it fixed. Browsing through the internet, I watched a couple of videos about quick fixes (towel+hair dryer trick) but I’m not sure about that fix as I’ve also read horror stories about it. Mine’s a 40gb ,heck I still have Assassin’s Creed 3 that I was unable to remove when it YLOD’ed on me. I managed to remove the disk first by turning off the main power then holding the eject button and turning the main power back to start the fan test then ejected the disk. Yey!

And I came across these videos from Youtube

  These videos are very easy to follow. Watch them first If you are doing this for the first time. I’m ready to bury my PS3 so if does work or not it’s ok.

 What got me convinced to open my PS3 and resurrect it is this video with explanations that are very practical and believable.

  PS3 how to open your Playstation 3 and get it ready for repair

 After opening up my PS3 cleaned it, removed the dried out thermal paste with rubbing alcohol. I went to look for my thermal paste which I later realized that I haven’t got any, now I don’t have the time to go to the store and buy one. So I opted for the alternative Toothpaste+Vaseline (check out the post on how to do it : Toothpaste+vaseline Adventures!!!), I’ll try the diaper rash cream (As seen on this post : Homemade Thermal Grease) next until I can buy a thermal paste if I have time. Although this fix is temporary, it’s fun to macgyver something and make it work. If my PS3 dies on me again. I’ll just buy a PS4!!!

But in the meantime, it’s time to play Sleeping Dogs and Watchdog again, baby!

Continue Reading

Troubleshooting Checklist (Downed Websites)

Troubleshooting a downed website? Here’s a simple checklist to get you started.

Try another site. Check sites such as google.com, yahoo.com or any other site? If you can’t view/access any  of those sites, then it is likely a problem internet connection. If other sites work and yours doesn’t, go to ISUP.me and see if it’s “just you” or if the site is “really down.” By knowing if the site is not showing just for you, you can isolate the cause of the issue (internet connection, browser issue)

Clear the Cache and Temporary internet files – Clearing cookies and history files can really help your browser work at optimum level.

Restart your browser – Depending on your settings) this will auto-clear your cache, history, and cookies.

    • Try a different device – Use another computer, a laptop and tablet, and even your phone.

Do a Reboot – If you’re at your home computer,  Rebooting your computer as well as your modem and router can work wonders. Sometimes stubborn OS’es tend to keep a faulty driver/software running. A quick reboot can force those malfunctioning software/drivers to close.


Helpful Online Tools.

    • Pingdom, a website downtime monitoring service, that can point out possible issues that may cause errors in the long run.


    • GTmetrix, a website speed and performance optimization service, more details on how to speed up and check for possible issues that may lead to a slow loading website and even to a downed website.



If the site displays an error message, take a screenshot, or copy the error message so you can search for the cause and fix, maybe you’re not the only one experiencing this.

Check the DNS and Zone records – you can do a quick DIG for A records, Name servers etc via this online tool Web-based Dig from ringofsaturn.com. If you are maybe pointing it to the correct host, if all seem to check out correct that it may possibly be a problem with your host.

Do a quick WHOIS – As it maybe a possible account related issue go to Who.is . Upon doing a WHOIS, if the result is anything but active then it may possibly be a reason why the site is down. (expired domain name registration, domain locked, etc)

It may possibly be a CMS issue. – Popular CMS like WordPress, Joomla, Drupal have their strengths and weaknesses and also their vulnerabilities. To detect what CMS your domain has go to WhatCMS.org. Once you know what CMS you have you can better troubleshoot your issue as there are CMS specific hacks and exploits.

  • Database Issue –  either it’s a wrong database username or password, or your database host is down.
  • Coding Issue – faulty plugins, irresponsible coding can lead to many problems make sure to update to the newset version of plugins and CMS.
    • Malware, SQL injection, defacing – are but examples of why a website can be down, this all boils down to unsecure web files, make sure that permissions are set CHMOD 644 for files and CHMOD 755 for directories. Also securing your .htaccess is a must . Check out my post regarding Cracking down on SPAM it’s regarding WordPress but it points out nifty details about securing your .htaccess file.


What’s your troubleshooting checklist? Care to share? comment below.


Continue Reading
1 2 3 6