• About Me
  • Resources
  • Projects
    • SkyblockPlugin
    • GitHub
    • Varnish Dashboard
    • NodeFTPD
    • Util.php
    • WordPress Access Control
  • Contact Info
  • Resume/CV
Brandon Wamboldt
Software Development & DevOps

Tips & Tricks

  • Tips & Tricks

Using token_get_all() and better source highlighting

Posted on June 13, 2012June 6, 2015by Brandon Wamboldt

I recently discovered a very useful PHP function called token_get_all(), which allows you to tap into the Zend Engine that parses PHP (Written in C, so very fast). The function accepts a string, containing PHP code and will return the tokenized output as an array. The array will contain many elements, each of which may […]

Read More
3 Comments
  • Development
  • ...
    • Tips & Tricks

WordPress Walker Classes

Posted on August 1, 2010June 6, 2015by Brandon Wamboldt

Walkers are used in WordPress to recursively handle data such as menus. As defined in the WordPress codex The walker class encapsulates the basic functionality necessary to output HTML representing WordPress objects with a tree structure. For instance pages and categories are the two types of objects that the WordPress 2.2 code uses the walker […]

Read More
3 Comments
  • Development
  • ...
    • Tips & Tricks

Python Global Vars are Persistent

Posted on May 23, 2010June 6, 2015by Brandon Wamboldt

I was working on my new Python project, a wiki, and was having problems where my code wasn’t being interpreted more than once, or so I thought. I had a menu that changes depending on if the user is authenticated or not, except it never changed. I was on FreeNode IRC’s Django support channel (#django) […]

Read More
No comments yet
  • Development
  • ...
    • Tips & Tricks

Page Not Refreshing Properly

Posted on May 7, 2010June 6, 2015by Brandon Wamboldt

I am in the process of building a custom CMS in PHP, using TinyMCE as my Rich Text Editor. I had a odd problem where after saving my changes and being redirected back to my editor, my changes weren’t being refreshed. I had to shift + reload the page to see the new content. I […]

Read More
No comments yet
  • Tips & Tricks

Cannot execute /bin/bash: Permission Denied

Posted on April 27, 2010June 6, 2015by Brandon Wamboldt

If you are running Linux and a service or program returns the error: cannot execute /bin/bash: Permission Denied Or if your users are being logged off as soon as they log in, it’s not a big deal. For me, the fix was setting the suid bit on /bin/login using this command: chmod 4755 /bin/login I’ve […]

Read More
1 Comment

Posts navigation

Newer posts
I'm a team lead, software developer, and devops engineer (depending on the day). I love programming, and having a blog allows me to share things I've learned with others, and hopefully save somebody a bit of time!

Disclaimer: Any opinions expressed are solely my own and do not express the views or opinions of my employer.

Recent Posts

  • Debugging an Internet issue
  • Everything I googled in a week as a senior developer
  • Creating an Effective Resume
  • Interview Tips for Software Developers
  • Tmux & Cygwin
Activello Theme by Colorlib Powered by WordPress