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
esc
cancel

Recent Updates RSS Hide threads | Keyboard Shortcuts

  • iPhone market size

    steven 10:47 pm on May 28, 2009 | 0 Permalink | Reply
    Tags: iphone appstore

    I’m not sure who’s pulling numbers out of their hind quarters, but someone is terribly off, these estimates seem radically different.

    http://lsvp.wordpress.com/2009/05/13/apple-has-made-no-more-than-20-45m-in-revenue-from-the-app-store/

    http://seekingalpha.com/article/131730-how-much-profit-is-apple-making-from-the-app-store

     
  • Expendable

    steven 12:00 pm on May 5, 2009 | 0 Permalink | Reply
    Tags:

    The company I work for, SourceForge sent me this today. I think they are trying to tell me something.

    IMG_0131

    Apparently a reference to: http://en.wikipedia.org/wiki/Redshirt_(character)

     
  • UPDATE: There is something wrong with t…

    steven 9:13 pm on April 25, 2009 | 14 Permalink | Reply
    Tags:

    UPDATE:

    There is something wrong with the code that I merged, I haven’t taken the time to figure out exactly what happened, but I’m going to try to get it fixed and post an update in the next few days. I wasn’t expecting this kind of response and I’m sorry to keep everyone waiting so long for such a simple change.

    ——–

    I’ve had a lot of requests regarding the new theme an how to add titles to your p2 theme so here it is. It’s not the most elegant thing in the world, but it gets the job done for me.

    The code diff for those interested:
    http://steven.bitsetters.com/files/p2diff.txt

    The diff applied to the current SVN version of p2.
    http://steven.bitsetters.com/files/p2+title.tar.gz

     
    • Monsieur de Feu 7:21 pm on April 28, 2009 Permalink

      Hello,

      I don’t know if I screwed up something but it seems that when you edit a post, the new content is also applied to the title. You got the same problem?

    • steven 12:21 pm on April 29, 2009 Permalink

      Hmm, seems I may have missed something when I merged with the latest version. I’ll give it a look.

    • Monsieur de Feu 5:23 pm on April 29, 2009 Permalink

      Thanks! Let us know if you get to figure what’s wrong!

    • tom 8:38 pm on May 1, 2009 Permalink

      this is a great hack. could you please publish the updated version as Monsieur de Feu requested? thanks in advance

    • tom 2:51 am on May 7, 2009 Permalink

      d

    • Jere 4:18 pm on May 11, 2009 Permalink

      Can I post code tags in your comments?
      Applying your patch – problem is with entry.php

      patching file style.css
      Hunk #6 succeeded at 855 (offset 14 lines).
      patching file entry.php
      Hunk #1 FAILED at 5.
      1 out of 1 hunk FAILED -- saving rejects to file entry.php.rej
      patching file post-form.php

      Here’s the contents of entry.php.reg:

      ***************
      *** 5,11 ****

      - ID, 'display_title') == true ) the_title("",""); ?>

      --- 5,12 ----

      + ID, 'display_title') == true ) the_title("",""); ?>
      + <a href=""><?php the_title("",""); ?>

    • Jere 4:48 pm on May 11, 2009 Permalink

      Nevermind – it seems they have implemented your changes with along with an option in the official release as off 1.0.4 – so no wonder the patch failed after I updated – and all but the entry.php code looks just like yours – so congrats, I guess!

    • Jere 4:54 pm on May 11, 2009 Permalink

      Take that back – your patch was actually a lot nicer IMHO, they didn’t include the title field on the frontpage form and put the titles in instead of tags – but that’s easier to fix – anyway, thanks for posting your work!

    • asocinfo 11:12 am on May 15, 2009 Permalink

      I am using your version of the P2 theme and I also have the problem described by Monsieur de Feu. When you fix the problem, PLEASE let us know. Thanks in advance.

    • jon 10:53 pm on May 17, 2009 Permalink

      Hey guys, this is awesome, but I can’t seem to get this patched with 1.0.4 – could someone post the appropriate changes? (I think Jere’s — from 4:18 on May 11 — are for the previous version?)

      Thanks in advance!

    • Dubber 3:39 am on May 19, 2009 Permalink

      Brilliant. That’s much appreciated. Exactly what I was looking for.

    • Paraksaber 3:53 pm on May 21, 2009 Permalink

      but….what if you dont want to show the titles….

      what about beckend?

    • Rishi 8:13 am on May 23, 2009 Permalink

      Hey Steven and other P2 modifiers.

      I tried implementing the version of P2 above (the diff applied to the SVN version) on my site: http://rickikumar.com

      I’ve noticed two things:
      1.) Whenever I type a title, from the front end and check the post through the administration panel, the title ends up being the content (just like the regular P2).
      2.) Whenever I hit submit, the title doesn’t get carried down to the “Recent Updates” section with the tags/content through AJAX.

      Are these known problems? I’ve not modified any of the code myself and am strictly using the files from the link above. I’ve tried my luck with the “Display titles” feature (under Prologue Options) both on and off, and neither have worked.

    • Nemo 8:05 am on June 16, 2009 Permalink

      Any luck with this? It seems like you’re not working on it anymore, are you?

  • Nice Quote

    steven 3:27 pm on March 18, 2009 | 0 Permalink | Reply
    Tags: framework, quote

    “You need a framework? What is this, a framework? You don’t need a framework. They told you you need this. You don’t need this. You need a painting, not a frame.” — Klaus Kinski

     
  • Hacking on the new P2 WP theme

    steven 1:59 pm on March 18, 2009 | 12 Permalink | Reply
    Tags:

    I really like the new Prologue theme for Wordpress. It looks really clean, supports keyboard shortcuts and it buzzword compliant with the new micro-blogging UI. Unfortunately I’m a bit hard to please. I’m annoyed by the auto-generated titles in RSS feeds and I think displaying useful titles on your blog helps people skim. Lets be realistic no one wants to read all of the crap I spew about.

    So I’ve customized the theme a bit to my tastes so you can read the title of this post and decide to skip over it.

    picture-61

    And I get this nice little box at the top when I’m logged in so that I can type that title without even visiting the admin interface.

    picture-71

     
    • Maurice 7:45 pm on March 29, 2009 Permalink

      I think this addition is awesome and definitely useful when scanning through alot of information. Do you mind providing the code you added to add/display the titles?

    • Ben 2:04 pm on March 30, 2009 Permalink

      Thank god you removed auto titles. It is very clean though!

    • imran 10:27 pm on April 3, 2009 Permalink

      can you share the trick my email is sifarat at gmail.com thanks in advance

    • Anh dep 1:44 am on April 9, 2009 Permalink

      Great hack, can U share it?

    • Ben Greenberg 4:11 pm on April 22, 2009 Permalink

      I would also like to make these hacks to P2 for an internal work site I’m putting together.

    • Atomboy 2:44 pm on April 23, 2009 Permalink

      I would also be very grateful for the code to add a title, please. It just finishes the job off neatly, I think. Thank you very much.

    • Alessandro 4:33 am on April 25, 2009 Permalink

      hi!
      great!
      i was looking for this modify! Can you share this? Can you send me the code? Please!
      Amazing work.
      Ty

      ale

    • Jere 8:29 pm on April 25, 2009 Permalink

      and code?

    • Scot 6:59 am on April 28, 2009 Permalink

      Nice

      I’m looking for a solution that effectively allows you to cross-post to Twitter right from the P2 post-form (enter Twitter credentials, save, go away via ajax). There’s plenty of plugins to allow this, but putting out front would be awesome. Any ideas?

    • Maclord 10:05 am on May 5, 2009 Permalink

      Any way to automatically notify members by e-mail of every upcoming post?

    • steven 12:02 pm on May 5, 2009 Permalink

      Check out FeedBurner. They offer such a thing.

    • ronald redding 12:33 pm on May 11, 2009 Permalink

      excellent idea.

  • Expandable Textareas in Django

    steven 11:14 pm on March 17, 2009 | 0 Permalink | Reply
    Tags: , jquery,

    I’m probably not the first one to think of this, but when your writing long posts (like this one) it’s nice to have an expandable text area. This little hack makes use of the jQuery Textarea Resizer plugin. You’ll need to download it along with jQuery and put them somewhere in your media directory.

    Make a copy of the base_site.html template in django/contrib/admin/templates/admin/base_site.html and put it in your apps local template path.

    Add the following template block to /admin/base_site.html

    {% block extrahead %}
    <style type="text/css">
        div.grippie {
            background:#EEEEEE url({{ MEDIA_URL }}js/textarea_resize/grippie.png) no-repeat scroll center 2px; 
            border-color:#DDDDDD;
            border-style:solid;
            border-width:0pt 1px 1px;
            cursor:s-resize;
            height:9px;
            overflow:hidden;
            margin-left: 106px;
        }
        textarea {
            display:block;
            margin-bottom:0pt;
            width:95%;
            height: 20%;
        }
    </style>
    <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.js"></script>
    <script type="text/javascript" src="{{ MEDIA_URL }}js/textarea_resize/jquery.textarearesizer.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
             $('textarea:not(.processed)').TextAreaResizer();
    	});
    </script>
    {% endblock %}

    And now you should have nice expandable text-areas that look like this one:

    Expandable Textarea

    Expandable Textarea

     
  • New iPhone 3.0 Icons Check out the stri …

    steven 5:02 pm on March 17, 2009 | 2 Permalink | Reply
    Tags:

    New iPhone 3.0 Icons

    Check out the stripy-ness.

    iPhone 3.0 Icons

    Older 2.0 Icons

    20_icons

     
    • CxxC 10:34 am on June 20, 2009 Permalink

      I never noticed the new icons until I stumbled upon a website listing all the new 3.0 firmware changes. Now that I know these icons have changed, though, I can’t remember what the old ones looked like! Could you please post a pic of the older ones to show the comparison? Thanks!

    • steven 1:16 pm on June 26, 2009 Permalink

      Updated with older icons for reference.

  • Spent some time last night playing with …

    steven 8:15 am on March 17, 2009 | 1 Permalink | Reply
    Tags: , , star-rating

    Spent some time last night playing with star ratings in Django, thanks to Ryan Kanno and Leah Culver’s hard work, because it made my job incredibly easy.

     
  • Theme seems a little broken in Safari, w …

    steven 2:54 pm on March 16, 2009 | 0 Permalink | Reply
    Tags: p2, safari, theme, wordpres

    Theme seems a little broken in Safari, will have to look at it later.

     
  • Touching up the new Wordpress theme. It …

    steven 12:05 pm on March 16, 2009 | 0 Permalink | Reply

    Touching up the new Wordpress theme. It really much cleaner than the old one and it has keyboard shortcuts!