Updates from February, 2010 Toggle Comment Threads | Keyboard Shortcuts

  • Nuno Morgadinho 3:16 pm on February 16, 2010 Permalink | Reply  

    Internationalizing Your WordPress Plugin 

    We call “internationalization” to the process of setting up software so that it can be used in different languages. In my case I had a plugin with text strings in English and I wanted to add a Portuguese translation. In wp-config.php I set up the WPLANG variable to pt_PT:

    define ('WPLANG', 'pt_PT');

    I then used poEdit, a localization tool that works with Mac OS X and that can be downloaded from the poEdit download page. In poEdit, from the File menu select ‘New Catalog’. Fill in the information there and in the ‘Paths’ tab put the plugin directory. In the ‘Keywords’ tab add the missing entries so it looks like this:

    At this point it should recognize all the text strings in your code and present a screen where you can add the translations. After that be sure to save the file as pluginname-pt_PT.po, preferably in a directory called ‘translations’ or ‘locales’ (but anything will do). After that you’re all set. In your code you should load the translation like this:

    load_plugin_textdomain ( 'your-plugin-name' , FALSE , '/your-plugin-name/translations' );

    And strings should have the form:

    _e('Choose a Category','your-plugin-name');

    That’s it. Let me know if you run into troubles :)

    Resources & Further Reading for the Geeks:

     
  • Nuno Morgadinho 7:01 am on August 27, 2009 Permalink  

    Marathon Training Applied to Startups 

    Today I’m going on a Fun Run so I’ve been reading on how to prepare myself. I found this nice website with guidelines and tips on preparing for the Marathon and what I realized was that the mental strategies they discuss can be applied for anything you want to obtain. I thought it might be a refreshing read if you’re stuck with a boring project or something you’re having trouble finishing off. Or even if you’re starting a new project it might help. We know that with the right mood and the right mind-set everything is easier. The question now is how to trigger your mind into that state. Like they say on the article:arriving at the starting line in less than the ideal state of mind can have a devastating effect on your performance”.

    • Mental Rehearsal/Visualization – The process of creating pictures or images in your mind.
    • Imagery – Playing out/imagining in your mind the way you wish for an event to occur.
    • Self-Talk – The “voice” in your head that can be trained to provide positive affirmations during adversity and tough times.

    from http://www.marathontraining.com/marathon/m_psycho.html

    Do you use any of these techniques already?

     
  • Nuno Morgadinho 7:13 am on June 5, 2009 Permalink  

    Bullet Points about REST 

    REST stands for Representational State Transfer.

    What is the problem?

    • Software architecture research investigates methods for determining how best to partition a system, how components identify and communicate with each other, how they evolve, etc.
    • Do we know any large software architecture that has scaled immensely? Can we learn/take something from it? Yes, the Web and the Internet in general.

    What can we learn from it?

    • Client-server (separation of concerns)
    • Stateless (requests can be processed by different servers for scalability)
    • Caching (performance and fault tolerance)
    • Uniform interface (URI represents object and state)
    • Layered System (components build on top of other components)

    Example

    • Client-server => browser-httpd
    • Stateless, Uniform interface => /car/parts/12337 => URI represents the object and asks for a specific resource.
    • Can be processed by any server because there is no context
    • Output in html, XML or JSON

    Example 2

    • Imagine you could just re-use the component by redirecting requests to it
    • Example: user auth
    • Instead of having the user auth encapsulated in the application we can have the userauth to be a webservice that can be re-used by any application – this is RESTful
     
  • Nuno Morgadinho 5:15 am on June 2, 2009 Permalink  

    Mentorship on programming is overated 

    **You should just mentor yourself**. When you’re doing computer science in the university there’s a point where teachers can’t teach you anymore, no better than you can teach yourself anyway.

    The thing is, in order to learn, you need basically experience and to get experience you need to **do things that are useful**. This is not math therefore theory can only work for you to a certain extent.

    First: **have interest, try to learn everything you can** by reading other opinions, for example add some of this blogs to your usual reading, they won’t teach specific things but will give you useful advices that you will remember when you need them, you won’t remember the exact thing but you will think “I know I read something about this and there was a really cool method for doing this”.

    Second: **Program on your spare time**. Find a project you like (an obtainable project not some unreachable objective like programming the new Quake 4) and do it until you finish it. Practice, practice and practice, a lot of problems arise when you make even the simplest programs. Experience let you recognice patterns and adapt them to new situations. If you’ve done something similar in the past then you’ll do the new thing twice faster.

    Third: **Share, comment and try to explain things**. One of the best things you can do is start your own programming blog. Try to explain others how to do things, you’ll find it’s a lot harder than you think. You may think you know how to do something but when you try to explain how it’s done and why, you end up doing a lot of research and actually learning how and why is done on the process.

    Finally: **You will start developing your own thoughts an opinions that diverge the usual thinking or the opinions of the rest of the people. Share them.** Create a blog or whatever and express your new opinions. You’ll get feedback and will continue learning for it. For example, I read both Joel and Jeff blogs, sometimes I agree and sometimes I don’t. When I don’t, I either post to say why not or blog about it and in the process I always learn something, maybe through comments I end up changing my mind and that too is a good thing.

    from http://stackoverflow.com/questions/94579/how-to-find-a-mentor/596714

     
  • Nuno Morgadinho 6:21 am on June 1, 2009 Permalink  

    Do Web Entrepreneurs Still Need Venture Capitalists? 

    “Yes, according to Robert Hendershott, a professor of private equity and entrepreneurship at the Leavey School of Business at Santa Clara University.”

    “Take the Apple App Store, for instance. In a few weeks, developers can easily build an application, submit it to the store and immediately find out whether it has any traction. “They can vet the idea in the marketplace”

    from http://bits.blogs.nytimes.com/2009/05/14/do-web-entrepreneurs-still-need-venture-capitalists/

     
  • Pages: Prev 1 2 3 4 5 6 7 8 9 10 Next
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
esc
cancel