Skip to main content

Posts

Introduction to CodeIgniter

Introduction I've been playing around with CodeIgniter as my PHP web framework for a while now and I would like to share my simple steps in getting started with the tool. I think it's maybe too late to post this one up on the internet as there are lots of articles describing the said tool. But anyway, I'll just post this one so that I have some reference in the future how I did things to work with CodeIgniter. CodeIgniter is a simple, light and fast web framework. And web frameworks are encapsulation of the repetitive tasks we do when developing a website. One of the many important issue solved by this framework is maintenance. We get to have our code separated so that we have proper maintenance of our site. When I say separation of code, it's a conceptual thing. Web framework, most if not all, are implementation of the MVC pattern where we separate logic from presentation. It's model and view respectively. And CodeIgniter does that with ease. Let me demon...

Beyond Colors in Designs

Just found this useful color links for designing and templating. I found this really helpful when you don't know that color match or color themes of your design or website development. Hope you all find this useful. Enjoy! http://colormind.io/bootstrap/ http://chir.ag/projects/name-that-color/ https://www.sessions.edu/color-calculator/

Add Brave Browser to Netbeans

We'll I'm liking Brave now, great isn't it. With the token and all and privacy and stuff. And all the good stuff, right? So what other good thing we can do about it other than adding it to our favorite editor. So here it is, adding it is through Tools->Options->General Edit Web Browser Manager and add this setting below. Find the brave.exe usually it can be found in C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe and voila we're good. See you next posts everyone!

Goodbye CoinHive, hello CoinImp

Hi again, we'll just got a few simple mining pages for monero before with CoinHive, it was fun. Never got much from it but I'll try again. Sadly, CoinHive is no more. Gladly though, found CoinImp and it's very similar. And they have referral program. :) So I encourage you guys to try it and try it using my referral link http://www.coinimp.com/invite/303994ca-b78a-4d0f-8cf8-a405419017ea Good luck everyone and happy mining. If you need help setting it up, maybe I'll try to do another post about it soon. All the best.

Multiple configuration files for CodeIgniter

I recently came across a problem which is very common when deploying a web application. This time, I'm trying it with CodeIgniter. I purchased a domain and a small shared hosting to which I deploy a simple app. Along with it, I purchased the SSL so it should be accessed with https rather than http. Even all http request should be redirected to https, that's two problems. A way to solve it is via .htaccess in the root app directory. For multi environments, we can set a CI_ENV variable via     SetEnv CI_ENV development So in our application/config directory we can add production directory which consist of config.php and database.php. These settings are then for production. So when we deploy the application, we need to updated those settings for production. As for me, I also have test and stage settings so I also have those directories in my config directory with config.php and database.php corresponding to that environments. This is preferred since we need to test it and...

Windows 10 HP Netbook Sucks, Lubuntufies it, Great!

I purchased a small netbook from HP few years back and it was installed with Windows 10 Home Edition. I tried it at the shop and works fine until I arrived at home and installed office suites, and some basic programming  tools like Chrome, Python, Visual Studio Code that it became useless. Now it lags and my daughter can't even work with office suites. It was for her, it was a gift, it's suppose to work and not bother her. And now it becomes a pain for her doing research and Google Chrome always says "Not Responding". I just remembered it was 2 years ago. The netbook was just kept at the closet, intended never to see the light again. I was cleaning my small office at home and I found it, I remembered the pain. I remembered it all like yesterday. It was horrible, I cried and asked God, why did I remember all those miseries. Seriously, I just found it, that's it, and just thought, well I think I can have a use for it for a small server at home. Then it hits me, it...

Create Your Own Onion Website

Well, if you're into cooking, this is not it. It's a hidden service within Tor, or the onion router. Ever heard of facebookcorewwwi.onion ? This blog post is about this kind of onion. If you're also familiar with the silk road then you are on the right spot. Onion sites are well hidden inside Tor and it's difficult for anyone to track. A bit of an Intro Hosting your own domain can be a bit tricky. First off, you need money. Well, of course, you do. You need to sign up for a hosting company. GoDaddy is one good example. There are lots though and I don't need to put it here. It seems I'm advertising GoDaddy. I only got 2 accounts, GoDaddy and ASmallOrange , SmallOrange is crap, although a bit cheaper than GoDaddy. I have Vultur but I don't know how to get my custom domain so that doesn't count. Had PesoHosting but, will get your high blood pressure rolling just mentioning it here. After you get an account, and that's after you pay for like a few ...