As you may have noticed (or not), this blog has been moved from Wordpress to Jekyll. Why? Short answer is that It’s cheaper.
I have just started learning Symfony Framework for PHP and the first thing that I did is to create a simple vagrant box with just PHP and mysql.
Laravel 5 is now officially released! You can check out the new features here https://laravel-news.com/2015/01/laravel-5/
A lot can go wrong just by naively storing passwords. Imagine if someone got in your system and stole your database including your email address and passwords. You have to admit, a lot of people are using the same passwords for their accounts so if passwords are stored as plain text, they could then hack your email potentially gaining control of sensitive and even financial information.
You may have noticed that
phpinfo(); does not work in HHVM. Try the code below.
After updating OS X to Yosemite, Xcode 6 immediately became available. After updating, my perfectly working apps are now crashing. Let’s try fixing Xcode 6 property.
Laravel is very good framework in creating PHP apps. It’s fast and has a lot of cool features such as queuing, DB migrations, DB seeding, artisan command line. Also, Laravel’s dependency is managed by Composer, so you’ll need to worry less about compatibility.
In computing, a shell is a way for the user to access an operating system’s service. Generally, the either use a graphical or command-line user interface (GUI/CLI). Since web servers are basically just computers, there are ways to move your website using the command line. Server’s CLI is accessed using Secure Shell (SSH), it’s a network protocol used for secure data communication, remote login and remote command execution. Basically, you can remote control the server from your house.
WordPress is a popular CMS. It has grown from a simple blogging engine into a very versatile platform.
It’s almost new year and I thought why not make a quick post about countdown timers just in-case you want to have one for your blog.
There are a lot of instances where in a mobile device connects to the internet. And for developers, it’s a must to be able to see these requests of debugging and optimization purposes.
AngularJS is an awesome framework that allows data bindings to your HTML. Whenever the a variable changes, all the corresponding values in the HTML are automatically changed without further coding. You can make dynamic tables with ease. But as awesome as it is, there are stuff that jQuery does best. Angular may lack in parts of events. For example, what if you want to trigger an angular method whenever the user reaches the bottom of the page he is scrolling?
Creating login and registration functionality in your CI project is repetitive work. Almost all projects have those functionalists. So I made a simple template to start with, so you can start coding the important stuff. This is made using FlexiAuth Library.
Editing directly through FTP can be risky. Files can get corrupted and you are doomed when it happens. Your editor can crash while you are working with a file, or someone else broke the file you are working on. Either way, you need some sort of back-up. There is a neat trick that you can do with your Notepad++ where in it does the backup for you. You can even go to the next level and apply extra layer of git.
Adsense is the best for monetizing blogs. Because it’s popular and has a lot of advertisers, there are also a lot of ads to display and more money for the publishers.
**An invalid hidden character. You get if from copy pasting from a document file like MS Office.
This post is a log during my site’s optimization. The page speeds in the tests are not very consistent, so I’ll focus on complying the optimization checklist.
is a web-based hosting service for software development projects that use the Git revision control system. GitHub offers both paid plans for private repositories, and free accounts for open source projects. As of May 2011, GitHub was the most popular open source code repository site.
As web developers, there are instances that we need to see he insides of a website without having an access to it’s back-end. Yeah, you can manually check the source code or the HTTP headers for clues, but there’s a simpler and much faster way. Use http://wappalyzer.com/.
If manual SQL import is your last resort to migrate a database from one WordPress site to another, then, this method is for you. The advantage of this method is that widget information will be preserved, unlike the Find-All-And-Replace-All method which basically breaks the widgets.
By default, pressing Ctrl+P will print the current webpage you are visiting. But without special attention from the developer, you could waste your ink by printing all the stuff that you don’t want to print.
As developers, we always seek ways to finish the work before the deadline. So it’s a good idea to use tools to speed things up a bit.
CSS Level 3 has awesome new features that makes web development easier for us. It allows rounded corners, gradient colors, box and text shadow, transitions, etc. But in the other end, there is the dreaded IE where and it’s lower versions that does not support CSS3. We are itching to use CSS 3 to its full potential but since we have to create website for everyone, including IE 8 and below, we can’t use CSS 3 to it’s full potential.
As I have mentioned in the [previous post]. Long polling is an AJAX request that behaves as if it is attached to a server event. For instance, in this example we will try to use long polling to pop out a notification as soon as it is inserted in the database.
I’m not really an expert in Software Engineering, but I have my own share of educational experience to understand more about Object Oriented Programming. It is not just another way of programming, but it’s another way of thinking itself. you have to drift away from the classic procedural aproach in order to appreciate the beauty of OOP.
Tired of implementing login functionality all over again? try this.
[Lukasz Kujawa] did some [benchmark on famous PHP frameworks]. I’m glad that my all time favorite [Codeigniter] is in the upper half. It may not be the fastest, but the point of a framework is for faster and more comfortable development, so it’s ok.
One of the things I learned in the world of software/website development is to not make it perfect in the first version. This doesn’t mean that don’t put your heart in to it, what I am trying to say is don’t put too much features in the first version.
The “Fragment Numpad” is a simple keypad app that has buttons from 0 to 9 and clear, when a number is pressed it is then appended to the display board. When the clear button is pressed all numbers in the board will be removed.
Best way to make your data persist even when your app is destroyed is by saving your object’s instance into a file and loading them back when you need them. But in the course of using these technique, I stumbled upon some things to consider to make it work.
When you want to make changes to a live website, you ideally copy the website to your computer, modify it there and re upload it when you’re done. The problem with this is that most sites are configured to work in a specific domain. Transferring to “localhost” will need further fixing.
Being a web programmer is an awesome and rewarding profession, especially when people appreciate your creations.
The internet is undoubtedly one of the most popular sources of knowledge. But not all people are able to acquire knowledge comfortable, specially those with impaired eyesight.
Backup Buddy is an essential tool for developers and webmasters alike. It’s a WordPress plugin that automatically back’s up everything in your WordPress site including images, comments, posts, and even non WP files.
This Datatype cheat sheet is mainly for PHP/mySQL combo. I cannot possibly cover all the “field types” in this initial post but I’ll be listening to your comments for the things to add.
Today’s websites compared to it’s ancestors 10 years ago are far far more sophisticated. Not only in design but also in its underlying technology. One of these technology that is common in modern sites is having real-time data. You can easily observe this when using the ever popular Facebook. It has top right bar called the ticker, it automatically shows you your friend’s activity exactly when they happen.
WordPress itself already offers some degree of protection against hackers. But since its code is free to for everyone to tinker with, it can’t be helped that its security holes are easily discovered.
Codeigniter Add/Edit/Delete Maker is a Codeigniter library that automatically creates a simple add/edit/delete module.
WordPress plugins are a neat way to extend WordPress without tampering with the core files. This allows the system to be extendable while maintaining its ability to be upgraded.
PHP is has a strong community, and by that I mean there are a lot of good programmers out there developing opensource classes for PHP.
Facebook apps for pages – they are Facebook apps that can be used in Facebook pages in order to customize user experience. They can range from contact forms, galleries, e-shops, slideshows, embedded flash or anything you can think of.
Some Side Story
Magento is a truly powerful e-commerce platform. It works well out of the box complete with e-commerce and security features. But its a little bit not perfect. It seems that Magento’s RSS is not totally valid. It’s not a big problem but it doesn’t hurt to fix either. So, how to defeat Magento feed validation error?
Sometimes you want to do a cross-domain ajax or an ajax request to other domains. Specially when calling web APIs. But as a security feature, some browsers does not allow ajax request to other domains. But as far as I know there are 2 handy and quite simple tricks to overcome this. Using JSONP (json with padding) and using PHP Proxy
In case you don’t know this already, WordPress already includes jQuery in its package. But the problem with it is you have to use “jQuery” instead of the very simple “$”. I have a very simple but often not known trick to use $ without a lot of work.
There are times when you want to schedule a task in WordPress. It could be that you want to automatically retrieve data in a certain time or automatically or you’re running a promo that declares 1 random winner per hour. The possibilities are limitless.
Why is their a need to Increase the PHP Memory Limit in WordPress? Some hosting company limits your php memory to 32mb by default – WordPress is a CMS built in PHP. It requires and demands a lot of memory to process heavy PHP scripts.
When it comes to creating pagination, it’s quite puzzling at first when you’re using mssql since it only has TOP 1, unlike mysql that has LIMIT 1,2 where you can specify an offset. What I have here is a handy function that makes your mssql code paging friendly.
Having problems importing a large MySQL Database file? You can’t access the server shell and you can’t import the dump using phpMyAdmin or any other scripts due to hard memory resp. runtime limit of the web server?
Orphan entries are table rows who’s foreign keys does not relate to another table.For example, look at the sample database below of a blog. A blog can have zero or more posts, but what happens if the blog is deleted and the posts are not? The posts will not have a blog where they belong and they become orphan entries.