who needs social life when you have broadband?

Inventas vitam iuvat excoluisse per artes / Let us improve life through science and art.

Archive for the 'PHP' Category

To: my future Canadian boss :-)

Hello!

I’m not sure if this post is going to help me or not but I’m blogging anyway :)

Fact is I wanna move to Canada. I had enough of hot summer and would like to experience living abroad (again). So, if you are a Canadian please check my résumé clicking here and hire me hehehe. If you want, you may contact me directly by e-mail: bigodines ||at|| joomla.com.br

If you’re not sure if it will be worth to read my resume, I’m the main developer of two of the most famous Joomla! sites around the globe: Porsche and UNRIC (please note: developer != designer). Ok, that sound like I’m trying to impress :/. I don’t like these self-promotion lines but sometimes we need it :-)

Now, the bad news:
I’ve been reading about visas and it seems that a permanent work-permit for skilled professionals (According to those HSMP calculators I found on the web I am a skilled professional :-P) can take up to 14 months. A friend told me that if I manage to find a company interested in my services, this waiting time may be shorter (I’m still checking this information).

There is also another alternative: I can go to Canada as a student and work legally 20hrs/week while waiting for my permanent visa… but first I need some networking contacts in Canada.

drop me a line if you need a responsible, dynamic, nerd web developer :P

No comments

Bigo Captcha 1.0 relased :-D

today I’ve created my first Joomla! 1.5 extension. It’s a Captcha plugin. My friends were complaining that it was impossible to comment on my portuguese blog so I created this quick-and-funny captcha plugin which can be used with yvComment (or any component you want, because it is really generic).

I’m using the same structure as OSTCaptcha by CoolAcid, so the replacement should be transparent.

Download is available here

You may see a demo visiting my portuguese blog (see the comment plugin..)

1 comment

too soon…

Rember when I said I’ve found the best image generator class? It turned out that this class isn’t everything I said previously. Actually it promises a lot of stuff, but still have too many bugs (for example, you cannot create a simple png with transparent background and I’ve also had trouble centralizing my text).

At least this class was well written and has been easy to customize.

No comments

the best title generator class ever

I was looking for a dynamic title generator class and found this project. It is bloody easy to use/understand/modify and very flexible… I’m about to test the “bgimage” feature but I’m pretty impressed so far.

If you want to see what this library can do for you, check this website.

No comments

New job!

Hello!

This week I started in a new company as a web developer (still working with PHP and mainly with Joomla!, which is not bad but not that challenging…). Christian has also switched jobs and now he is a Java developer (at least he has left Delphi behind, which is good news). I would like to tell you that our distributed hash cracking system (aka Bifröst) is in “sleep” mode until we find some time to re-activate it.

I’ve presented a technical session at the Joomla!Day Brazil which occurred in São Paulo on the 11th. My plane got a 22 hours delay which were not funny at all. The event was great but unfortunately I had missed half of it :/ It is always nice to speak about new geeky features to an excited audience…

My new job is allowing me to create some really cool stuff with JQuery, Ajax and Flash. And I have plenty of time to keep this blog up to date.

I don’t remember if i’ve mentioned this before, but I’m also trying to add Bluetooth capability to the great JGroups. DIdn’t have much success so far. As many of you are new visitors, I was wondering if anyone knows how to do multicast with Bluetooth :D (someone told me I’ll need a PAN Profile enabled device, but for now I just would like to test it on simulators). I’ve been trying to find answers and help in the Java community but didn’t get many insights. I don’t care to implement it on my on I just would like to know if it hasn’t been implement by someone before.

anyway.. if you have any suggestion/sample/idea to share, please get in touch.

-bigo

1 comment

Flash and Joomla! integration (part II )

Hello,

due to popular demand :D, I'm posting a different example to ilustrate how easy is to export Joomla! content to a XML format and then use it inside your flash movies (as you learned in the first part of this "article"). Today I'm gonna show a quick-and-dirty way to export your frontpage items.

Before we start:
- Make sure you've read the first part (link is above) of the article otherwise you won't understand nothing that is posted here.
- You don't need to change anything in the XmlGenerator class. This script will just USE it.
- I'm sorry I'm not posting the .fla, I've gotta write my final project for college and didn't have enough time to code the actionscripts (any volunteer?)

Ok, here's a small script I've wrote to export frontpage items and then generate the xml.

PHP:
  1. <?php
  2. /**
  3. * Joomla! FrontPage - XML-Generator
  4. * @author Matheus Mendes aka bigodines - http://www.joomla.com.br
  5. * @date May, 2007
  6. * @license GNU GPL v2.0
  7. *
  8. */
  9.  
  10. define('_VALID_MOS', 1);
  11. // joomla stuff :P
  12. include_once("../configuration.php");
  13. include_once("../includes/database.php");
  14. // XmlGenerator
  15. include_once("clsXmlGen.php");
  16.  
  17. $source = array();
  18. /* database object */
  19. $database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix );
  20.  
  21. $database->setQuery("SELECT content_id id FROM #__content_frontpage");
  22. $front_items = $database->loadObjectList();
  23.  
  24. foreach($front_items as $item) {
  25.     $database->setQuery("SELECT id, title, introtext, created FROM #__content WHERE id = {$item->id}");
  26.     $content = null;
  27.     $database->loadObject($content);
  28.     // filling the array
  29.     $source[$content->id]['title'] = $content->title;
  30.     $source[$content->id]['introtext'] = $content->introtext;
  31.     $source[$content->id]['created'] = strftime("%d/%m/%Y",strtotime($content->created));
  32.     $source[$content->id]['link'] = $mosConfig_live_site . 'index.php?option=com_content&amp;task=view&amp;id='.$content->id.'&amp;Itemid=2';
  33. }
  34. // array is ready. Next step: call the XmlGenerator to do its thing
  35. $xml = new XmlGenerator("latestNews", $source );
  36. echo $xml->createXml();
  37.  
  38. ?>

I hope it works :)

cheers,
bigo

13 comments

Flash and Joomla integration

One of the most requested things in the content management world is to make dynamic content to be displayed inside a flash movie. Flash has a feature that allows it to display content from a xml file, in this article I'm gonna explain how to display Joomla! content in your flash pages. With a little imagination you can change this "how-to" and make it work with other CMSes like Drupal, Xoops, or even your own CMS :-)

You can check a integration example accessing: http://www.mmoraes.com

Before we start:
- This is a script I wrote a while ago, it is probably not the best (or even the right) way to do this integration, but it works.
- You can use, change, set fire... do whatever you want with these classes but please keep my name and URL in the credits.
- Suggestions are always welcome :)

ok, let's roll
Read more

15 comments

distributed rainbow tables project

Hello! It has been a long time without blogging anything new here so this is a quick update on what's going on.

- We are planning a revolutionary distributed rainbow table generator. I know there are a few projects regarding this but none will be like ours (I still cannot provide much more info about how we are going to do this but it's gonna rock. Trust me hehe). It's going to be coded in Java because I plan to use it at college.... sorry python fans. BTW: We are still looking for a nice name for this project so if you have any suggestions, feel free to submit :-)

- My analytics account has been upgraded to the new beta. It became pretty cool to watch the statistics now and it looks much nicer (although it has small css errors in firefox2 and linux).
- Please guys, don't change Joomla's license! What happened to the "because open source matters"? It looks like it doesn't matter that much anymore :(

Cheers for all Gremio supporters!

3 comments

Party time!

Joomla! 1.5 Beta 2 - Red Barchetta Joomla! 1.5 beta 2 is out!! after almost 6 months of waiting we can finally test the new litle baby!

Don't forget to report bugs and learn the new stuff. I'll see you in RC1 my friend.

BTW: I got owned in my test :-) simply forgot to answer two questions. o_O DAMN!

No comments

dear diary (1)

This is a quick update. I just would like to make sure everyone is fallowing the discussions over the Joomla! Forums, especially this one regarding non-GPL extensions and Joomla!. There are some interesting points of view and most of the posts are very polite, so it tends to be a really good thread to fallow.

Another thing: Me and Christian were chatting earlier and we decided to create some funny things using DistrIT. I cannot provide much information about it right now but stay tunned and you'll see.

Ok. that's all folks. Gotta study for my test later today.

bye
-bigo

No comments

« Previous PageNext Page »