Archive for the ‘Web Dev’ Category
- Posted by Mon
- October 27th, 2011
I had the pleasure to experience that last night… again! Last time it was a plugin… this time is not. After doing hours of searching… people said that some files maybe infected or the blog could be hacked. Well… that might not be the case. For mine, I recently did an upgrade to the latest version of wodpress, then come back days later the admin section is all blank – no matter which url I typed. Here are the symptoms:
- The blog’s front-end is still working fine, nothing seems out of place or broken
- I got to the login screen, but as soon as I logged in, it was completely blank
- I could not access any of page in the admin such as by typing: /wp-admin/plugins.php – all blank
Before going into crazy mode on trying to figure out what’s going on with what I went through below… If you have similar symptoms like mine, just go to worpress, download a new copy, download the bad /wp-admin/ copy, and upload the entire /wp-admin/. Fixed it for me instantly. But if you want to know what I had to went through before figuring that easy solution…
Oh and before doing this, like I mentioned above… instead of keeping your admin down and messing with it live, I suggest download the bad copy of the /wp-admin/ locally, upload the brand new copy downloaded from wordpress and continue the diagnosis locally. If the new upload didn’t fix your wordpress admin, then it probably isn’t the same problem. The rest of this won’t help you.
- I checked blog’s front-end and was still running fine – checked if any page is broken or funky stuff showing up on the pages. A broken plugin might have be the culprit or you simply got hacked
- So far so good, nothing seems broken or out of place. Login, page goes blank. I run the plugin Login Lockdown, so I FTP in and deleted the folder to see if that’s the culprit – nope. Put it back in.
- Checked the error log and see what threw error(s) recently – did the same thing above. No go.
- Found some people said that empty returns on functions.php or wp-config.php in your theme can cause that – make sure no blank space on top or bottom…
- Some said check files for weird stuff got append on top of some php files – checked all files inside wp-admin folder – nope
- Fast forward 3 hours later – finally re-uploaded a new copy of the /wp-admin/ – fixed! Son of a…
Final note: if it got fixed, but you should at least try to find out which files and what caused it by going through Step 4 or 5 – you never know, you might have been infected. I wasn’t, just a bad upgrade.
Hope that helps.
- Posted by Mon
- April 16th, 2011
As I spent more time playing with VIM, I ran into this very simple issue but took a while to find a solution.
Description
If you want to customize your VIM a bit more, you just have to create a .vimrc in the root. Even if you create/edit the .vimrc in VIM, better than Notepad right? NOT! Apparently, by default, VIM doesn’t set the file format for you. So it leaves a “trailing ^M” and VIM doesn’t like that…
Symptoms
- Windows: it shows a blank screen and has “Hit enter to type command” or something like that before VIM starts. It doesn’t show any errors.
- Ubuntu (see screenshot): it actually displays the following errors: “Invalid argument on^M” OR “Trailing characters ^M” OR “Not an editor command: ^M”

To fix this, it’s actually pretty easy.
While in VIM and in command mode type:
:set fileformat=unix
Of course the setting depends on your system, if you’re on Mac, set it to fileformat=mac. I set mine to unix because I use Git Bash and set it to use unix style, so if you are on Windows and set it to dos commands… set it to dos. Now you’re safe to edit .vimrc, when you :wq and vim again, the blank black screen (on Windows), and “Invalid editor commands” should go away.
- Posted by Mon
- April 14th, 2011
- Posted by Mon
- March 28th, 2011
Haven’t blogged for a long time, finally something I feel proud of and feel like I’m at least +5 on un-deprived.
If you are in Minnesota, or probably heard about the annual Overnight Web Challenge hosted by a group of local generous web agency: The Nerdery. Which was an event to redesign websites for local non-profits. I have to say at first I was very nervous about it, but I had a blast and learned a lot of things. So here are the details.
The goal
The goal of the challenge is each team can have up to 10 people (strangers or friends), and each team will pair up with a non-profit chosen by The Nerdery. In 24 hours time we are to redesign and build a new website for our designated local non-profit client.
Outcome

In my case, my team was Team Venture – we were a mixed of former and current co-workers. Not everyone knows everyone, but we bonded quickly. Our client was Someplace Safe. Even though we couldn’t finish 100%, so we are still continuously working on it and provide support in the next 6 months.
Before
After
Rules
Anything goes… PHP, WordPress, Ruby, whatever. We could even prepare codes ahead (in which I hope we can prepare better next year).
What we did and lessons learned
We chose WordPress as our platform, the lessons I learned from it were:
- Don’t build anything from scratch if not necessary, frameworks, frameworks, and frameworks.
- Pre-installed plugins – take them out if not needed. It’s easier to remove than add
- List of jQuery components, snippets to generate WordPress page contents (sidebars etc…)
I am totally going to do the challenge again next year and because the winning team: TST Media pulled off some very amazing stuff in one night, they’ve inspired me to push a lot harder than just using a WordPress platform. So hopefully I’ll start posting more updates on what this “pushing harder” in the next few months.
Other than that, I encourage all web nerds in MN to try this challenge at least once. It’s thrilling, learn to work faster, and put our web nerdiness skills to use in a very meaningful way. Besides that, you get to meet maybe a Senator such as Al Franken, and the Tronguy. Foods in every 3 hours, massage, Yoga, live action Angry Birds and a whole lot more nerdy fun stuff.
- Posted by Mon
- July 17th, 2010
- Posted by Mon
- March 2nd, 2010
I love Zimplit‘s simple idea, and relatively easy to setup (depending on server’s configurations). But of course it comes with a head-scratcher. Here are what I learned:
1. Localhost Timeout Error
As many sane developer would do, you want to test almost everything on a Local server if you’re using Xampp Lite. I have been experiencing timeout error. Maybe it’s due to the firewall at work, but I am going to investigate more using a full verison of the Xampp server
2. “public_html” vs “www” Folders
This may sounds crazy, but I think it might have something to do with the configurations of the server. I tried uploading to my own server, everything works fine. But I couldn’t get it working on my client’s server, it couldn’t CHMOD properly. Crazy enough, I deleted everything and re-uploaded everything to the public_html folder, CHMOD the proper files, then it worked… I know both folders are basically the same thing, but why it happened the way it did, CRAZY! I tell you. So I’m going to try to reproduce this “bug” if it is even a bug or just me…
3. jQuery + zimplit = Site Explosion!
Unfortunately, today I found out zimplit will blow up your some parts of your layout if you have some sorts of scripting going on in the background, such as slideshow, hidden divs. As soon as you insert an editable area, it automatically inserts its own div and classes inside ALL OF YOUR DIVs! Drove me insane for over an hour why my simple page stopped working with a simple slideshow. I mean it’s not the end of the world, you just have to rework your CSS to fit it in. But it would be nice IF SOMEONE TOLD ME BEFOREHAND!!
Overall, zimplit is still an awesome idea, but it’s quite intrusive. It works well if you have a very simple website or planned ahead to use it at the beginning. If you decide to implement afterward, it is much more difficult because you’ll probably have to rework lots of CSS. But I think I will try my hands on it again next time when I build a site from scratch. Just my 2 cents.
- Posted by Mon
- February 19th, 2010
- Posted by Mon
- October 29th, 2009
I finally gathered my braincells and launched my new portfolio: Designloper.com today:

I was trying to “brand” myself in a way, what’s better than a made-up word that describes perfectly of what I do, right? I love the lime green colors, but I thought it was getting too boring with the light gray and white.

So I spiced things up this time with dark brown and hot pink. I was loving the fun colors as I was designing, it looked almost “hippy” which fits my personalities – I never did drugs in my life, but I seem so… (more…)
- Posted by Mon
- October 21st, 2009
Version in this article: jQuery 1.3.2 / CSV2Table 0.03-b-2.9
Lately I started to like CSV (Common Separated Values) more and more comparing to XML.XML is a pain to setup even as entering data, then grabbing the data requires Einstein’s brain plus 3 sleepless and hair-pulling days of coding… okay, I maybe exaggerated a bit, but that’s how I feel about XML. My first encounter with CSV was InDesign, in there, you can import a bunch of data and generates PDF like Word’s Mail Merge feature. Then one day, someone asked me if I can find a better and easier way to help the non web people to maintain a site. I started out with search terms like “jQuery read text files” or something like that, one of the results returned as using CSV and there is a plugin called CSV2Table in the jQuery Plugins website by Toshiro Takahashi written earlier this year. Testing… (more…)
- Posted by Mon
- September 26th, 2009
This is going to be a short post. Magic Tags are very awesome, but on the Pods CMS documentation failed to mention something very simple yet useful. Before anything, here’s a quick run down of what Magic Tags are…
(more…)