Recent Updates RSS Toggle Comment Threads | Keyboard Shortcuts

  • nijiko 12:45 am on July 18, 2009 Permalink | Reply
    Tags: arrays, php,   

    This angered me. I couldn’t find a way to turn multidimensional arrays into a single array with only keys that are not empty. Should support infinite dimensions. Haven’t hard tested it but it works for what I needed it for.

    // DE MULTIDIMENSIONAL
    function single($ar, $new = array())
    {
    $new = $new;

    foreach($ar as $key => $data)
    {
    if(is_array($data))
    {
    $new = single($data, $new);
    }
    else if(!empty($data))
    {
    $new[$key] = $data;
    }
    }

    return $new;
    }

     
  • nijiko 2:03 am on July 13, 2009 Permalink | Reply
    Tags:   

    I want to try and see what hacks I could do to this.

     
  • nijiko 2:02 am on July 13, 2009 Permalink | Reply
    Tags: forms, ,   

    I hate coding forms. Validation process = scrutinizing. Holy shit I spelled that word correctly… anyway.

     
  • nijiko 3:58 am on July 10, 2009 Permalink | Reply
    Tags: coding, sleep   

    I code in my sleep… how nerdy is that?

     
  • nijiko 2:28 am on July 10, 2009 Permalink | Reply
    Tags: decisions, , stuff   

    Thinking about creating a manga viewer.

    However the question is.. for what purposes!?

     
  • nijiko 2:13 am on July 10, 2009 Permalink | Reply
    Tags: kenichi, nijima,   

    Watching Kenichi Episode 38.

    I’d like to say that, this is by far one of the most accurate martial art anime’s I have watched. I thoroughly enjoy it. However, I just wish that the main character wasn’t so inclined to listening to his annoying friend who has a name similar to mine, Nijima. It makes me feel as if I have a name type connection with him however his character type is annoying and makes you want to turn the show off.

    But, alas the other characters find it amusing to hit Nijima and knock him out at times so he cannot protrude with annoying comments.

    Until next episode or… programming.. whatever its random. okay?

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel
Follow

Get every new post delivered to your Inbox.