Blogs

Posted by: {authorName}

Developer tools are now rising allowing programmers to now choose software they are comfortable with to assist them during the development and testing process. I highlight some for you below.

 

Recently, I used a tool called PhoneGap, which combines a focus on pure JavaScript and HTML for phones.

 

If your business is building large-scale applications in which plenty of data will be processed, the Hadoop framework is equipped to process this together with Hive, which is file system that executes the SQL-like queries.

 

Eclipse is a fine IDE for building and debugging java applications, and can be used while building a website.

 

The NetBeans IDE, which works fast and well with multiple languages, expands its C/C++ capabilities with some new features and enables unit testing in PHP.

 

OpenStreetMap is open source version of popular mapping services.

 

With these developer tools, programmers can do more to achieve top software or websites with minimal effort.

September 1, 2009

The REAL Iron Man

Posted by: {authorName}

Every self-respecting geek would tell you that what he would like in a friend are one, that he's very rich, two, he's able to keep up with the intellectual barter that happens whenever technology or any intelligent conversations would come up. Lastly, he should really be good with the ladies, considering that majority of us geeks are female free (since birth).

 

If you feel the same way as millions of other geeks in the world, there's only one person in the entire universe that has to be your friend; Tony Stark, also known as Iron Man.

 

As the head of Stark Industries, he commands a fleet of engineers and scientists to develop the ultra-cool defence and ammunition systems that can literally "blow" enemies away. As a side project, he developed this ultra cool "hot rod red and yellow" inspired armour that wreaks havoc anywhere and to anyone he wishes. In short, the perfect war armour.

 

As the literature says (meaning comic books), Iron Man is nothing more than a pigment of one artist's imagination, or is he?

 

Somewhere across Utah, Steve Jacobsen is already building the first (and hopefully not the last because I really want a cool armor) of many armour that's going to be used by the U.S. Military in the coming future.

 

Enter the XOS Skeleton.

 

The XOS Skeleton, like it's counterpart in the comic books, gives the wearer that oh so good light feeling and "enhanced" human strength. As Rex Jameson, pilot of the first ever "wearable" enhancement is demonstrating on the XOS Skeleton, he can lift quite heavy objects seamlessly as the armour gives its wearers the extra boost of strength that you need.

 

The original creator of the XOS Skeleton is Sacros, which has been purchased by a bigger defence company Raytheon. Being funded by the Pentagon's Defence Advanced Research Projects (DARPA), they're turning the military's 40-year old fantasy of "mechanically enhanced" humans for war into reality.

 

Personally, I think that the way it works is that there are pneumatic actuators or pistons built into the armour that's helping with the load of doing heavy stuff (imagine a car jack that can be commanded and can react fast to commands to go up and down), not to mention if you got hit by a punch coming from a guy wearing the armour, you'd likely be missing a couple of ribs if ever you'll be alive to even be interviewed. As far as tests go, the pilot can throw jabs seamlessly wearing the 150 pound skeleton, lift 200 pounds (not sure, maybe a rumour).

 

The exoskeleton definitely needs a good battery pack though, as you can see on the picture, the pilot is still wired (since it's just the initial stages), and I think the battery pack wouldn't last long for the missions intended to those who will use it.

 

Adi Granov, one of the illustrators of Iron Man and a consultant on the Iron Man films, saw the XOS at work and he can't believe that Sacros is almost close to the comic book counter part. "I knew that's where we were heading, but I didn't realise we were this close," Granov told Popular Science. Aside from the lack of flight and weapons, he adds, "that's Iron Man".

 

I can't wait till I see the first of those armours go into battle. It would really be moment to remember seeing a fleet of "Iron Men" rolling out and doing skirmishes on a desert somewhere. Just give it a good battery pack, and a tricked out shell, it could possibly pass for Iron Man armour.

Posted by: KAYWEB Staff

When searching content using keywords, I have noticed some programmers still use the "LIKE %keyphrase%" technique.

 

This is not the best way to go about it since the user will achieve optimal results by limiting the words in his/her keyphrase to one. Additionally, if multiple words are submitted, the results returned are relevant only to the keyphrase as a whole rather than to the words within the phrase itself, thus the user is returned less results, if any at all... not to say the results would not be ordered by relevance.

 

The solution for this is to employ Boolean Full-Text Searches.

MySQL can perform boolean full-text searches using the IN BOOLEAN MODE modifier:

 

SELECT * FROM articles WHERE MATCH (title,body) 
AGAINST ('+MySQL -YourSQL' IN BOOLEAN MODE);

+----+-----------------------+-------------------------------------+
| id | title                 | body                                |
+----+-----------------------+-------------------------------------+
|  1 | MySQL Tutorial        | DBMS stands for DataBase ...        |
|  2 | How To Use MySQL Well | After you went through a ...        |
|  3 | Optimizing MySQL      | In this tutorial we will show ...   |
|  4 | 1001 MySQL Tricks     | 1. Never run mysqld as root. 2. ... |
|  6 | MySQL Security        | When configured properly, MySQL ... |
+----+-----------------------+-------------------------------------+

 

The + and - operators indicate that a word is required to be present or absent, respectively, for a match to occur. Thus, this query retrieves all the rows that contain the word “MySQL” but that do not contain the word “YourSQL”.


Note

 

In implementing this feature, MySQL uses what is sometimes referred to as implied Boolean logic, in which

·         + stands for AND

·         - stands for NOT

·         [no operator] implies OR

 

Boolean full-text searches have these characteristics:

·         They do not use the 50% threshold.

·         They do not automatically sort rows in order of decreasing relevance. You can see this from the preceding query result: The row with the highest relevance is the one that contains “MySQL” twice, but it is listed last, not first.

·         They can work even without a FULLTEXT index, although a search executed in this fashion would be quite slow.

·         The minimum and maximum word length full-text parameters apply.

·         The stopword list applies.

 

The boolean full-text search capability supports the following operators:

·         +

A leading plus sign indicates that this word must be present in each row that is returned.

·         -

A leading minus sign indicates that this word must not be present in any of the rows that are returned.

Note: The - operator acts only to exclude rows that are otherwise matched by other search terms. Thus, a boolean-mode search that contains only terms preceded by - returns an empty result. It does not return “all rows except those containing any of the excluded terms.

·         (no operator)

By default (when neither + nor - is specified) the word is optional, but the rows that contain it are rated higher. This mimics the behavior of MATCH() ... AGAINST() without the IN BOOLEAN MODE modifier.

·         > <

These two operators are used to change a word's contribution to the relevance value that is assigned to a row. The > operator increases the contribution and the < operator decreases it. See the example following this list.

·         ( )

Parentheses group words into subexpressions. Parenthesized groups can be nested.

·         ~

A leading tilde acts as a negation operator, causing the word's contribution to the row's relevance to be negative. This is useful for marking “noise” words. A row containing such a word is rated lower than others, but is not excluded altogether, as it would be with the - operator.

·         *

The asterisk serves as the truncation (or wildcard) operator. Unlike the other operators, it should be appended to the word to be affected. Words match if they begin with the word preceding the * operator.

If a stopword or too-short word is specified with the truncation operator, it will not be stripped from a boolean query. For example, a search for '+word +stopword*' will likely return fewer rows than a search for '+word +stopword' because the former query remains as is and requires stopword* to be present in a document. The latter query is transformed to +word.

·         "

A phrase that is enclosed within double quote (“"”) characters matches only rows that contain the phrase literally, as it was typed. The full-text engine splits the phrase into words, performs a search in the FULLTEXT index for the words. Prior to MySQL 5.0.3, the engine then performed a substring search for the phrase in the records that were found, so the match must include non-word characters in the phrase. As of MySQL 5.0.3, non-word characters need not be matched exactly: Phrase searching requires only that matches contain exactly the same words as the phrase and in the same order. For example, "test phrase" matches "test, phrase" in MySQL 5.0.3, but not before.

If the phrase contains no words that are in the index, the result is empty. For example, if all words are either stopwords or shorter than the minimum length of indexed words, the result is empty.

 

The following examples demonstrate some search strings that use boolean full-text operators:

·         'apple banana'

Find rows that contain at least one of the two words.

·         '+apple +juice'

Find rows that contain both words.

·         '+apple macintosh'

Find rows that contain the word “apple”, but rank rows higher if they also contain “macintosh”.

·         '+apple -macintosh'

Find rows that contain the word “apple” but not “macintosh”.

·         '+apple ~macintosh'

Find rows that contain the word “apple”, but if the row also contains the word “macintosh”, rate it lower than if row does not. This is “softer” than a search for '+apple -macintosh', for which the presence of “macintosh” causes the row not to be returned at all.

·         '+apple +(>turnover'

Find rows that contain the words “apple” and “turnover”, or “apple” and “strudel” (in any order), but rank “apple turnover” higher than “apple strudel”.

·         'apple*'

Find rows that contain words such as “apple”, “apples”, “applesauce”, or “applet”.

·         '"some words"'

Find rows that contain the exact phrase “some words” (for example, rows that contain “some words of wisdom” but not “some noise words”). Note that the “"” characters that enclose the phrase are operator characters that delimit the phrase. They are not the quotes that enclose the search string itself.

 

For more information, feel free to visit these links:

http://dev.mysql.com/doc/refman/5.0/en/fulltext-boolean.html

http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html