Tagged: idea RSS

  • Nathan Haskins 6:23 pm on October 4, 2010 Permalink | Reply
    Tags: , idea,   

    creating wordpress posts with a speadsheet 

    it could be entered in spread sheet view, or generated as a file by php w/ mysql data

     
  • Nathan Haskins 2:07 pm on October 4, 2010 Permalink | Reply
    Tags: cakeid, idea   

    i like how something so abstract looking becomes a presentation

     
  • Nathan Haskins 6:44 pm on June 14, 2010 Permalink | Reply
    Tags: afloat, idea, software   

    float it, pin it, alpha fade it, windows fun with Afloat

    http://infinite-labs.net/afloat/

     
  • Nathan Haskins 10:47 am on June 11, 2010 Permalink | Reply
    Tags: idea, table   

    CSS on td and table elements is weird, it should be fixed in new versions

     
  • Nathan Haskins 8:14 am on May 19, 2010 Permalink | Reply
    Tags: idea,   

    I just got owned by losing my global varible scope when working with include files in php. Had to take a chunk of code out of includes, and put it into a higher level file to get the scope back. I need to learn a work around for this because i hate dealing with messy code.

     
  • Nathan Haskins 1:47 pm on May 11, 2010 Permalink | Reply
    Tags: idea   

    wish i could flush the router’s dns table… tedious waiting..btw good time to mention that

    dscacheutil -flushcache

    Will flush the DNS records of your mac (os x). However, if your still stuck getting DNs information from the server or router… your kinda out of luck unless you can refresh that as well. Im without access to such things.

    *you know i could also be dealing with a ISPs proxy DNS. Maybe that has cached the entry and has not updated yet.

     
  • Nathan Haskins 5:33 am on May 11, 2010 Permalink | Reply
    Tags: idea, include(), open_dir(), , scandir()   

    D.R.Y. out those useful PHP scripts 

    D.R.Y. – ‘Don’t repeat yourself’

    I have a few PHP scripts that come in handy on a lot of different sites. The issue I ran into was that if i needed to make an update to one of these useful scripts, I’d have to go find all instances of that script, and update them across many domains.

    There’s ways of doing this with ninja SED/grep styles. But a better way may to be make a folder just below the domains directory, and include files from that directory as needed.

    In the example below im stepping backwards from the public html directory into my scripts directory.

    include('../../../phpIncludes/test.php');

    Thats about the extent of it, and im sure this can be cleaned up a bit.  I was using the scandir() function to find my way to the proper path by echoing out the files of the current directory.

    I was also reading open_dir() can cause issues with this technique, and if open_dir() is active it can php scripts from editing lower than the domains’s root. open_dir() is a good safety net, but is also prevents some tricks and techniques that just need to happen. A good example is in WordPress sites (as of 2.9) the Media library will throw errors with open_dir() enabled.

     
  • Nathan Haskins 1:53 pm on May 8, 2010 Permalink | Reply
    Tags: idea   

    http://fluidapp.com/ this app looks useful but I don’t know for what quite yet…it create a native os x app from a web page that can be further customized.

     
  • Nathan Haskins 5:36 pm on May 6, 2010 Permalink | Reply
    Tags: idea   

    speed vs finesse 

    Finesse is the diamond you get from compressing a workflow down as tight as possible, and polishing its execution to perfection.

     
  • Nathan Haskins 5:52 am on May 6, 2010 Permalink | Reply
    Tags: idea, ,   

    wordpress name alias generator 

    I have a bunch of variations on my name out there on the web… neight, nate, nathan, nathan haskins, neight401… etc. My blog posts google seems to love indexing but they only catch ‘nathan haskins’ as a name.

    Im conducting an experiment, I’m going to have it randomly pick one of my aliases at runtime and insert it as the author name, lets see if the search engines show me some love.

    using the p2 theme..

    entry.php (~ line 16)

    printf(
      '<a href="%1$s" title="%2$s">'.randomName().'</a>',
       get_author_posts_url( p2_get_author_id() ),
       sprintf( __( 'Posts by %s', 'p2' ), p2_get_author_name() ),
      get_the_author()
      );
    

    function.php

    function randomName(){
    
        $myName = array('Nathan Haskins', 'Neight Haskins', 'Nathan A Haskins', 'Nate Haskins', 'nhaskins', 'neight401');
        $randValue = rand(0, count($myName)-1);
        $output = $myName[$randValue];
        return $output;
    }
    
    

    *sidenote if I use markup=”none” in the code tags, it will prevent the anchor tags from turing into links… nice

    Update: 5/9/10
    -The experiment is working, and I’m quicking ranking as #1 most of my aliases now hah! The variation of ‘nate haskins’ is going to be difficult to get…

    Update 5/10/10
    google search results

    ‘neight401′ – #1 result
    ‘nathan haskins ‘ – #1 result
    ‘nhaskins’ – #2 result… getting beat out by some dude commenting on a mac forum.
    ‘nate haskins ‘ – still not found on the first page
    ‘neight’ – still not found on the first page