who needs social life when you have broadband?

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

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

trends

Which programming language should we learn? I wish I could say “the funniest” but the market doesn’t seem to bother about it. While waiting the checkout (from my sloooooooooooow svn repository) of my final project @ college, I went to the biggest job search engine I know and started putting some simple terms in there. Here are the results:

languages:
PHP: 12,266 jobs
Python: 7,299 jobs
C#: 34,538 jobs
C++/Cpp: 52,305 jobs
ruby: 3,493 jobs
Delphi: 1,850 jobs (starting from delphi 7, delphi IS a programming language.)
javascript: 32,330 jobs
java: 77,395 jobs (omg!)

technologies:
ajax: 13,282
hibernate: 6.324
zope: 100
plone: 43
joomla: 151
jquery: 109.
SAP: 71,937 (OMG^3)

these results reflect today’s situation (sep, 24th, 2007).

I know one might start thinking: “ok, its time to learn Java”. I would recommend you to try a less painful programming language before loosing all your love for life. And I guess C++ salaries are higher (and the combo cpp+py seems to be quite funny though… think about it!).

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

It’s all about opensource

I’ve spend the whole afternoon yesterday trying to port my dynamic form generator made with JQuery to Mootools. I’m almost there (but “almost” is not “there” yet and the script is rising some really weird arbitrary errors. odd…). But why would I change from JQuery to Mootols?

That’s a very interesting question (I’m actually asking myself every 5 minutes). The [partial] answers are the following:
- Joomla! 1.5 uses Mootools. As working with Joomla! still pay the bills around here, I must adapt to them :)
- I don’t wanna load two different JS frameworks that do the same thing (or not!) in my components.
- It is always good to learn new stuff, even if, at the end your conclusion is: It was a total waste of time learning this crap. This sux! (as I did with Dojo).
- I need to post new stuff in my blog, what could be better than a comparison between JQuery && Mootools from a regular developer point-of-view? It’s gonna be fun :D

For now, all I have to say is: [IMHO] Mootools’ learning curve is longer than JQuery’s.

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

interesting stuff

hello,

We didn’t mean to create a blog that would be just a news crawler as most of the blogs out there are. But, as time is against us (one more time) I decided to blog about two (three actually) really interesting stuff I’ve read today.

The first is a vulnerability scan for PHP apps (it scans for XSS and SQLI vulnerabilities) it’s called Pixy and you should all give a try for this tool. It can save your job :D

The other article (which was divided in two parts) teaches how to create encrypted partitions to protect your data in linux. I read it at LinuxPlanet, you may click here and here to see how everything works.

No comments

fresh news

Not much going on these days around here. Our Bifrot project (that’s how we named the distributed hash cracking project) is stuck for a couple weeks because of tests period in Brazil (semester is ending… here so I gotta study a bit). I guess I can quickly update you with some good news:

Hash cracking:
- We managed to add the Bifrost as a project for our research group in networking security at university. Everything shall get easier now once we will have our own server 24/7 (well.. in practice is more like a 24/4 hehehe). We also invited few friends to help us out developing the algorithms and the fun part. (no, we are not going to use BOINC).

Joomla!:
- Discussion is finally over. Joomla! sticks to (pure)GPL and all these proprietary devs may start crying. YOU LOSE! check the announcement here
- I don’t have time to fix the .fla, from the flash+joomla integration post, right now but I promise I won’t forget you and will find a way to post a corrected version ASAP.

excuse the english mistakes, i’m in a rush here :) talk to you soon.

No comments

Javascript 1.7 (or Pythonscript ?)

Hello! This topic will explain some of the new features of JavaScript 1.7 which are
embedded in Firefox 2.0 Beta1+ versions and probably in IE (I'm not sure).
The most interesting point in the new features is the "apparently" correlation
with the Python same features, which I will cite.
Well, let's prepare to use our new features. First of all, we need to declare some
special string in the script type attribute like that:

HTML:
  1. <script type="application/javascript;version=1.7"></script>

With this tag, we enable the v.1.7 features on our scripts.
This is needed because some new reserved keywords of 1.7 version may
interfere in the old code, the words are: "yield", "let", etc...
Let's begin.

Generators
Generator are like interactive functions with state variables.

JAVASCRIPT:
  1. /* The function */
  2. function gen()
  3. {
  4.     var i = 0;
  5.     while(true)
  6.     {
  7.         yield i;
  8.         i++;
  9.    }
  10. }
  11.  
  12. /* The "g" var isn't a simple function,
  13. is a instance of an generator */
  14. var g = gen()
  15.  
  16. /* This for loop show 3 alerts with
  17. respective values: 0, 1, 2 */
  18. for (var i=0; i&lt;3; i++)
  19. {
  20.     alert(g.next())
  21. }
  22.  
  23. g.close();

This is a powerful new feature of JavaScript 1.7, and have the same
syntax of Python Generators as you see here.

I will post about other new features in next posts, cause now I'm busy
with the Distributed Rainbow Tables project.

Farewell,
Christian S. Perone

No comments

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

Orkut scrap flooding

Orkut is a plague! I have some "friends" that keep spamming my scrapbook promoting parties and other social events every single day!!! And the worst is that most of them don't even talk to me when we are in the same place. Now it's time for revange :)

I've made this small snip to flood their scrapbooks so they can have a taste of how I feel when I login and see lots of useless messages.

Open your orkut account (preferable a fake one, so when they feel ofended they won't report your original user ;) ), visit your "friend"'s orkut, go to the scrapbook page. Now, insert this in the address bar:

JavaScript:
  1. javascript:var i=0;function lambaFlood(){if(i>= 20) return; var a='uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu'; for(z=1;z<=i;z++) a = a+"u"; i=i+1;document.getElementById('scrapText').value="Fuck "+""+a+"";submitForm(document.forms[1], 'submit', '');}; void(setInterval(lambaFlood,500));

Of course this is just a use case. Use your imagination and create your own version.

I guess now we'll finally have more visitors :-)

good luck,
-bigo

1 comment

« Previous PageNext Page »