Blog

  • Update on the WordPress Dev2Live Hackday

    I know the bare minimum of what has to change in a WordPress install. Code that gets me the tables, and shows me the serializeable data in WordPress’ option settings is done.

  • A WordPress Hackday

    Today, I’m going to explore looking for a solution for staging WordPress from a development environment to a production one. I’ll be posting throughout the day as “hacks” become available.

    The main issue is changing serialized dev data into production data.

    I’ll be in irc.freenode.net #wpdev2live .

  • Looking For a New Web 2.0 Job? Try Shifting Your Perspective.

    I spoke to a friend on Tuesday who recently received a promotion with a company he’d been employed with for just about a year out in Ohio. And the day before, on Monday, I learned that two friends had been laid off from the jobs they loved here in the Bay Area. When the Tuesday friend said he didn’t know how to feel about his promotion, I advised him to be grateful.

    The Tuesday evening news informed me that if trends don’t change, California is going to run out of money for people on unemployment within a year, and will then have to borrow money from the federal government, as my home state Michigan and its neighbor Indiana are already doing. California’s unemployment rate now sits at an average of 8.2%. Layoffs are occurring left and right, and those in the tech industry can be tracked at both the TechCrunch Layoff Tracker and at CNET’s Tech layoffs: The scorecard. As was noted in October at sCommerce, “[w]hen it rains, it pours in the Tech World,” and already December has certainly seen its own fair share of downpour.

    One recent victim I talked to kept shaking his head and insisting that it just didn’t make sense. But unfortunately, much as I sympathize and wish circumstances were otherwise, it does make sense. Businesses are doing the same thing the rest of us are doing, tightening their belts and hoping to survive the winter. Most people I spoke with didn’t seem to know where to begin once they’d lost their jobs.

    However, while many industries are (however temporarily) very decidedly on the decline, others are thriving, growing even, and it isn’t impossible for the tech savvy to migrate over. Education, for instance. With so many people out of work, many are looking to further their educations. The Labor Department reported 9,800 jobs were created in the education industry. Additionally, the director of the Center for Economic and Policy Research in Washington, DC, Dean Baker, is quoted on CNNMoney.com as saying, “Education will be an area that governments will try to protect because there’s a lot of political support.”

    But you don’t have to be a teacher at an established institution to teach. (Though that certainly isn’t a bad way to go if you can manage it. I suggest checking your local city or community college’s website, or trolling through the local paper’s want ads. That’s how I found an opening for an English teacher at my former local community college.) Freelance tutoring is a perfect opportunity for some quick money and a new addition to your resume. Lots of people are turning to private tutors when they don’t have the time or discipline for a structured class schedule.

    Another industry that will always remain strong is the health industry. CNNMoney.com reports that “[e]ven in the midst of the economic fallout, healthcare employment grew by 34,000 jobs in November,” and later went on to add that “[o]ptions…abound at pharmaceutical companies, biotech firms and medical-equipment companies.” The moderator of Your Health and Tech, William Welense, urges people “to look into healthcare information systems! Seriously, HCIT [Health Care Information Technology] really really really needs some web 2.0 people, especially on the visual design part of development.” And with innovations like Google Health (blogged about here at Your Health and Tech) coming out, this could be a really exciting field to get into!

    If you are already in the Bay Area, and don’t know what health care management software companies are around, I suggest you first stop by the Yahoo! Directory for San Francisco Bay Area > Health Care Management Software for a handy list of companies with links to their websites. Don’t overlook the classified ads on Craigslist either. After typing “healthcare information systems” into the search field, nineteen results popped up for me on Tuesday, December 16.

    And speaking of people wanting to further their education in these times of low employment, a master of science degree in Human Computer Interaction might be a handy thing to pick up, especially when looking at the field of healthcare information systems, and can be earned entirely online at certain universities, such as Chicago-based DePaul University.

    If you’re looking online for jobs, why not stop by Stephan Miller’s quick list of 11 Places to Find Tech Jobs? If you are looking for freelance work, definitely check out Elance. They have everything from “web & programming” to “writing & translation.” Other sites in this vein are Project4Hire and GoFreelance.

    Most importantly when looking for a new job, don’t forget to network. Ask your friends. If they don’t know somebody, maybe they know somebody who knows somebody. I myself have connections at both Google and LucasArts that will likely never do me a damn bit of good, but could come in handy for other friends who are in those fields. I’ve found that a lot of companies offer recruitment bonuses to their employees, so don’t feel bad asking. And as pointed out in my previous post, don’t overlook even little things like the local happy hour.

    The only way to get through this economic downtime and get things moving again is to persevere. Don’t lose hope, and don’t give up. If you can’t find a new job in your usual field, branch out. There really are jobs out there, we just have to know where to look. Hopefully this has offered a few launching points. Best of luck! I’m rootin’ for ya.

  • Installing fcgi on IIS 6.0 with PHP 5.2.8

    Choose fcgi iis
    Choose IIS FastCGI
    Be sure to install extensions needed for WordPress
    Be sure to install extensions needed for WordPress

    Select these extensions:
    GD2
    Gettext
    Multi-Byte String
    Mimetypec
    MySQL
    MySQLi
    PDO/MySQL
    SQLite (in case MySQL fails)
    XML-RPC (WordPress needs this)

    Be sure to install Pear and the PHP Manual, too.

    Next step: Install FastCGI with the installer.

    For more info check out this page

    Also check out info how to install FastCGI on IIS 6.0.

    Install eAccelerator.

    My php.ini is below:

    [PHP]
    cgi.force_redirect=0
    extension_dir=”C:\Program Files\PHP\ext”
    [PHP_GD2]
    extension=php_gd2.dll
    [PHP_GETTEXT]
    extension=php_gettext.dll
    [PHP_MBSTRING]
    extension=php_mbstring.dll
    [PHP_MIME_MAGIC]
    extension=php_mime_magic.dll
    [PHP_MYSQL]
    extension=php_mysql.dll
    [PHP_MYSQLI]
    extension=php_mysqli.dll
    [PHP_PDO]
    extension=php_pdo.dll
    [PHP_PDO_MYSQL]
    extension=php_pdo_mysql.dll
    [PHP_SQLITE]
    extension=php_sqlite.dll
    [PHP_XMLRPC]
    extension=php_xmlrpc.dll

    ;eAccelerator
    extension=”eAccelerator.dll”
    eaccelerator.shm_size=”150″
    eaccelerator.cache_dir=”C:\cache”
    eaccelerator.enable=”1″
    eaccelerator.optimizer=”1″
    eaccelerator.check_mtime=”1″
    eaccelerator.debug=”0″
    eaccelerator.filter=””
    eaccelerator.shm_max=”0″
    eaccelerator.shm_ttl=”3600″
    eaccelerator.shm_prune_period=”1800″
    eaccelerator.shm_only=”1″
    eaccelerator.compress=”0″
    eaccelerator.compress_level=”9″
    eaccelerator.keys = “shm_only”
    eaccelerator.sessions = “shm_only”
    eaccelerator.content = “shm_only”

    My fcgiext.ini in %WINDOWS%/system32/inetsrv is below:

    [Types]
    php=C:\PROGRA~1\PHP\php-cgi.exe

    [C:\PROGRA~1\PHP\php-cgi.exe]
    QueueLength=999
    MaxInstances=20
    InstanceMaxRequests=500
    IdleTimeout=200
    RequestTimeout=60

    The performance you get on a 2GhZ processor with 1GiB of RAM is decent:

    Transactions:                     662 hits
    Availability:                 100.00 %
    Elapsed time:                 123.15 secs
    Data transferred:              21.96 MB
    Response time:                  8.29 secs
    Transaction rate:               5.38 trans/sec
    Throughput:                     0.18 MB/sec
    Concurrency:                   44.55
    Successful transactions:         662
    Failed transactions:               0
    Longest transaction:           13.25
    Shortest transaction:           4.23
    

    5.38 transactions per second is 464832 hits per day.

  • Apps That Seem to Crash WoW on OS X 10.5.5

    I wrote this quick script to take care of apps that seem to Crash OS X 10.5.5 on my Macbook Pro. I have just 1GiB of RAM instead of the recommended 2GiB, but ever since killing the processes in the script below, I haven’t had a crash.

    The bad guys are:

    • Google Updater
    • Cross Over
    • HPEventHandler
    • HP IO Classic Proxy
    • HP IO Classic Proxy 2

    I killed privoxy in my script below just to get more memory to run Warcraft.

    #!/bin/bash

    C1=`ps ax | grep Cross | grep -v grep | cut -c3-6`
    echo “C1: $C1”
    kill -9 $C1
    C1=`ps ax | grep “Google Updater” | grep -v grep | cut -c3-6`
    echo “C1: $C1”
    kill -9 $C1
    C1=`ps ax | grep “HPEventHandler” | grep -v grep | cut -c3-6`
    echo “C1: $C1”
    kill -9 $C1
    C1=`ps ax | grep “HP IO Classic Proxy 2” | grep -v grep | cut -c3-6`
    echo “C1: $C1”
    kill -9 $C1
    C1=`ps ax | grep “HP IO Classic Proxy \-” | grep -v grep | cut -c3-6`
    echo “C1: $C1”
    kill -9 $C1
    C1=`ps ax | grep “privoxy” | grep -v grep | cut -c3-6`
    echo “C1: $C1”
    kill -9 $C1

  • What I Whitelist in my Spam Filter

    This is a list of domains that I have to whitelist because my spam filter either at the ISP end or on my laptop thinks you are a spammer.

    My Whitelist

    Notable on this list are:

    • facebookmail.com
    • Mavericks — the surfer email list. wtf?
    • match.com — no, it’s not okay to look. 😉

    I really think pbwiki.com doesn’t belong on this list. I also don’t think levi.com belongs on this list, so it’s really interesting what gets filtered as spam and what doesn’t.

    What strategies do you use so that your emails don’t end up in the spam box?

    What do you whitelist but think you shouldn’t have to?

  • Intego Security Barrier: The lightest protection for OS X

    You can imagine the amount of glee I had when I found out that Intego Security Barrier for OS X has a small memory footprint of 18MB which is about a 10th of the footprint of other anti-virus software, I was totally elated!

    With Intego Security Barrier, you can:

    • define custom rules for a firewall
    • quickly switch between a “Fort Knox” setting for your computer to a client only setting.
    • define custom anti-spam rules
    • be notified by the IT support St. Louis experts the moment someone attempts to connect to your computer
    • be notified the moment software tries to send data outside of your computer

    I learned a few interesting things thanks to Intego Security Barrier.

    1. Microsft products send data back to Microsoft.
    2. The Google Updater sends some info back to Google.
    3. Colloquy, which is an IRC client for OS X, sends data back to Colloquy over HTTP. WTF?

    This piece of security software is so light that I can play World of Warcraft without a problem on my laptop which has 1GiB of RAM.

    At $89.95, I am glad I made the purchase and feel pretty secure.

  • The Funny Video of You Malware linked on Facebook

    If you don’t already know, there’s malware going around through Facebook.

    It starts off with the subject of:

    i found a video with you in my camera.

    You click on the link and you are led to a bunch of domains. One controlled by some ISP in Colorado, and then very-funny-webs.com . Do an nslookup on that one. Then you’re led to a server in Beijing and then finally to some poor computer that’s been hacked on port 7777.

    Whatever you do, do not click that link!

    Where was I? That computer automatically downloads a payload called: flash_update.exe

    This is where things get interesting.

    0000040: 0e1f ba0e 00b4 09cd 21b8 014c cd21 5468 ……..!..L.!Th
    0000050: 6973 2070 726f 6772 616d 2063 616e 6e6f is program canno
    0000060: 7420 6265 2072 756e 2069 6e20 444f 5320 t be run in DOS
    0000070: 6d6f 6465 2e0d 0d0a 2400 0000 0000 0000 mode….$…….

    Also, the dirty work of ruining your day is done here:

    0003470: 0000 0000 08f1 0000 0000 0000 4b45 524e …………KERN
    0003480: 454c 3332 2e44 4c4c 0041 4456 4150 4933 EL32.DLL.ADVAPI3
    0003490: 322e 646c 6c00 5553 4552 3332 2e64 6c6c 2.dll.USER32.dll
    00034a0: 0000 4c6f 6164 4c69 6272 6172 7941 0000 ..LoadLibraryA..
    00034b0: 4765 7450 726f 6341 6464 7265 7373 0000 GetProcAddress..
    00034c0: 5669 7274 7561 6c50 726f 7465 6374 0000 VirtualProtect..
    00034d0: 5669 7274 7561 6c41 6c6c 6f63 0000 5669 VirtualAlloc..Vi
    00034e0: 7274 7561 6c46 7265 6500 0000 4578 6974 rtualFree…Exit
    00034f0: 5072 6f63 6573 7300 0000 5265 674f 7065 Process…RegOpe
    0003500: 6e4b 6579 4578 4100 0000 4973 5769 6e64 nKeyExA…IsWind
    0003510: 6f77 0000 0000 0000 0000 0000 0000 0000 ow…………..

    The code seems to be messing around with your DLL’s in Windows which is bad. I’m on OS X, so I lucked out.

    Anyway, I hope this piece of Malware didn’t get you and I hope those assholes burn in hell.

    If anybody can add more details about how this malware works, please let me know.

  • File Upload Configuration with PHP and IIS

    In php.ini it’s important that these two variables are set right:
    upload_max_filesize = 2M
    post_max_size = 8M

    Very often people will up the upload_max_filesize to something like 20M without updating the post_max_size.

    Then if you’re on IIS, there is one more gotcha.

    There’s an upload setting in C:\WINNT\system32\inetsrv\MetaBase.xml — the default is 200KB. Up that to what you think is necessary for your web app.

  • Business and Pleasure: networking the happy hour

    This is now my fourth blog post on Codebelay, and I’ve already given you the tools to open yourself up to social networking online, via your cell phone, and through the old fashioned (but not yet extinct) newspaper and magazine, so you may now be asking yourself how to obtain the monies to fund the new social you. Social networking is a great start to getting out there, meeting new people, and making new connections, but when it’s a new job you want, simple social networking isn’t always enough. You need a more focused kind of networking, but you needn’t sacrifice your social life. Why not mix a little business with pleasure?

    The key to any kind of networking is to be constantly aware, always looking. People can (and do) get job tips going to the dentist office or while shopping at the grocery store, they just need to keep an ear out and keep themselves open. So why not put yourself where the right people are clustered together in order to raise your chances?

    So where do we find these places? I did say we are mixing business with pleasure, so here’s my suggestion: the local happy hour. You can easily do a search with Yelp or Citysearch for bars located in the same area as the place you would like to be working. Across the street and around the corner are good bets for places people like to head to after a hard day’s work.

    In San Francisco, one bar that was given four out of five stars on Yelp and scored number ten on Unthirsty’s Top Ten Happy Hours in San Francisco is the Irish Bank Bar & Restaurant, located near the city’s Financial District in the Nob Hill neighborhood. With moderate prices and a boastfully authentic Irish atmosphere, the Irish Bank is sure to offer an enjoyable evening.

    Mars Bar & Restaurant, which made number four on Unthirsty’s Top Ten list, is located in the South of Market district and touts itself as “the perfect place to end your workday.” A lot of reviewers on Yelp, where it averages another four out of five stars, would seem to agree. Their happy hours runs from three in the afternoon to seven in the evening, Monday through Friday. Happy hour dining is offered from five in the evening until eight Monday through Thursday, and four to nine PM on Fridays.

    Another San Francisco bar that scored highly on Yelp and Citysearch is Jade Bar. Citysearch awarded Jade Bar best happy hour in both 2007 and 2008, and lists its specialty as an after-work bar. And as more than one reviewer pointed out, it is difficult to beat a two dollar drink special here in the city. Happy hour is Tuesday through Thursday, five in the evening to seven-thirty, and runs all night on Sunday. (What a way to start the week!)

    The tech types might want to head down to South Bay and Pedro’s Restaurant and Cantina located in Santa Clara not far off US 101. One happy customer described it as having “free food, cheap drinks, and is an after-work place for the tech types.” Go on, make friends. Pedro’s scored four and a half stars out of five over at Citysearch. Pedro’s happy hour runs from four in the afternoon to seven at night, and features one dollar off margaritas (they won best margarita in Silicon Valley in 2005 on Citysearch) among other drink specials.

    Also found not too far from US 101 in Sunnyvale is another bar that has been described as being full of “tech-professional types,” the Faultline Brewing Company Restaurant. Moderately priced, Faultline offers something I have yet to see in other bars out here in California: a duck pond. (And if you know of any, please comment and tell me how to find them. Many thanks!) In 2006 and 2007, Faultline was voted as having the Best Beer Selection in Silicon Valley on Citysearch. The wine list also seems more than adequate, which you can look over for yourself on their website. You may also check out their full food menu and a listing of their ales and lagers, as well as “meet” the brewmaster.

    Now, I’m not saying that it is a good idea to go pester people in their downtime for a job, but it certainly can’t hurt to make yourself a familiar face while enjoying a nice, relaxing, inexpensive drink, can it? Make some conversation, meet some new friends, listen in one the latest gossip, and who knows? You just might find that one diamond in the rough tidbit of information that could lead you to the next job of your dreams. Good luck! And happy drinking.