It's been a month i move back to Ubuntu as my primary OS. And i would like to write one of the most use command in Linux: "find". This command is like a magic to search anything i want on my hard drive. I can find a text inside a file, or filter it for certain extension. I can search the files with latest modified time and also the file size.List to use Linux command "find" that mostly used by me:Find all PHP Files in a directory:Find a file with a name:Find file with wrong permission … Read more...
Add Your Custom Logo To Your WordPress Dashboard
WordPress dashboard is WordPress backend to manage your blog. As WordPress can easily customize, you can add your custom logo and favicon in your WordPress Dashboard page. This can be done by adding a small code in your themes function.To add your custom logo into your Wordpress dashboard, add this code into your functions.php in your themes folder:You can do the same to add favicon to your Worpress Dashboard:So now you can customozie your WordPress website. For more tips please … Read more...
Beginners Guide: Overwrite All Files With ‘cp’ Command In Linux
"cp" is one of the most frequent use command to copy files or directory in Linux environment. “cp” is short from “copy”. This linux simple command is to copy files or directories in one server environment. To copy files or directories to another remote host you can use “rsync” or “scp” instead.But when you want to copy and overwrite a whole directories with many files in it, it will keep asking you if you want to overwrite it or not. Can you imagine when you copying 1000 … Read more...
Customize the Panel and Theme of Linux-Ubuntu
If you need to have a free operating system to be installed into your PC or laptop, perhaps you can go for Ubuntu. Yes, this operating system is free and it is designed by famous company called Linux. Since being spread to public, it has become very popular and many readers voted it as the most popular Linux distro.If this is your first time using this Linux OS, you shouldn’t afraid of giving it a try although there are some features that are not familiar. There are some important points … Read more...
What To Do When Your WordPress Blog Got Hacked
It's been two years i've been blogging with Wordpress. And all the knowledges and articles i wrote in this blog comes from many sources and experiences. And in 2 years blogging, i got 2 hacked attack and survive. And now if pay attention to my access log, there are still some attempt to inject the malicious code to my site. You can read my article: Someone Trying To Inject IvanKristianto.com.I'm not saying that my blog is secure and bullet proof. But i have done everything i could do, trying … Read more...
[TIPS] Improve Your Mozilla Firefox Performance
Mozilla Firefox is one of the mostly use web browser. 80% of my visitors using Mozilla Firefox. And many web browser also derived from Mozilla Firefox and still use Mozilla engine. For example Flock, sea monkey, Camino and so on. Beside it is free and open source, Mozilla project also powerful, it's no doubt that many if users (usually developer or sys admin) using Mozilla Firefox instead of IE or Safari.You can improve the Mozilla Firefox performance by editing the configuration.Here … Read more...
[TIPS] Convert Your Numbers To Human Readable Format
Sometimes your code produce a large numbers which is hard for user to read it. For example 17753392783 bytes or 18293753038 unit. For human eyes, it is easier to get 17MB or 1 million rather than lot of numbers.I write this as quick tips for you, in case you want to convert your data to human readable format. I do this in PHP, for other programming language you can get the algorithm and convert it to your own language:Usage:Thank you for read this article. Good luck and have a … Read more...
[TIPS] Write print_r() Output To File
When debugging a php application, print_r() or var_dump() often use to display the data inside the variable, usually an array that store many data inside. print_r() is core php function to displays information about a variable in a way that's readable by humans. Not just a variable or an array, we can trace or display protected and private properties of objects in PHP 5.But when the php application is called by the curl or other remote connection (not using a web browser), print_r() won't … Read more...
Beginners Guide: Monitoring Linux System Command
Linux come with many built in commands to monitoring the system. You can check your system performance with these tools from cpu load, memory usage, network traffic, and etc. From this monitoring tools you can check what is the cause the server not on its normal performance.Below are the tools to check your Linux system health: 1. top top (table of process) command will show you a dynamic real-time view of a running system i.e. actual process activity. It update every 5 seconds.top hot … Read more...