• Feed RSS
Recently I have got an email from freelancer.com support acknowledging me about the upcoming new prepaid debit master card from them and payoneer with enhanced features.

The most interesting feature is enhanced spend/purchase/atm withdraw limit. You can withdraw up to $2500 using this card from any atm around the world that supports mastercard. Also, you can purchase up to $2500 per day. SO, your total spending limit is now $5000 a day!!!!!

This is really amazing. Also, they have reduced in the fee structure that I am happy of. Like as, you had to pay 3% fee for atm withdrawal, for big amount withdrawal which results a extremely high fee. Now they have reduced it to $2.13 per transaction, that means its a fixed rate and you can withdraw any amount with this fee. Also, their monthly maintenance fee was $3 for 0-5 transaction and $1 for more than 5 transaction. Now it has reduced to $3 for 0-2 transaction. So, there is more probability to get the minimum fee($1) if you can have your transaction least 3 times a month.

If you don't know anything about this freelancer.com debit master card(powered by payoneer), then please visit my previous post on prepaid debit mastercard for a better demonstration.
A form is a most general and important requirements of all websites. Several kinds of forms are used on websites like registration form, contact form , subscription form, survey form, price calculator form etc. To get this requirements done more easily/flexibly, to give the visitors most optimized performance experience without refreshing the page you can use Jquery and its plugins. To get this full process done successfully, you will need to have two plugin:

* First one is Jquery form validation plugin. This will help you to validate the form fields to their suitable form of data. You will get many complex validation like email validation, phone number validation etc already integrated in it, so you won't have to think much.

* Second one is Jquery form submission plugin. This will help you to submit the form in ajax mode, without worrying anything about the form fields.

Here is a short code snippet to use these both two:

var validator;
$(document).ready(function(){
validator = $("#contactForm").validate({ rules:{
captcha:{remote: "captcha/captcha.php"}
},
messages:{
captcha: "Invalid captcha"
},
submitHandler: function(form){
$(form).ajaxSubmit({success:ShowResponse}); $("#loading").css('visibility','visible'); return false; } });});

function ShowResponse(data){
alert(data);
validator.resetForm();
}

Here you will see that, you can even validate captcha in ajax mode preventing automated robot submission. To set custom error message, you will have to use the name of the form fields. to make a field required, just simply put the class name 'required' in the input field. It will validate that automatically.

And, yes, sure, You don't need to bind yourself only these 2 plugin, if you find a better one,simply go ahead with that.
Sometimes we may require operating system detection on client computer to take few several actions like redirect them to different landing page, save operating system to database along with other data for future references, allow visitors to download the suitable form of a software etc. However, there is no direct attribute where this is saved. But you will get the idea of the operating system from "navigator.appVersion". To identify correctly, you can use the following small code snippet easily:

function getOperatingSystemName(){
var OSName="Unknown OS";
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";

return OSName;
}

this function will check the browsers navigator object to detect the correct operating system and will return the full name for easy reference. If it doesn't found the appropriate version from the four versions, then will return as 'Unknown OS'.
If you are a twitter user, then, you may wonder if there is any certain ways to catch the most while using twitter, what are the rules, tips/tricks? Actually, there is no rules of thumbs about this. But still you can follow these that i have came to know while studying about twitter:

* You should never follow more than around 300 people as you won't be keep up with others twit easily in real time if you do that.

* You should follow 1 person for every 10 who follow you. This apply for general anonymous twitter users, not for your friends though :)

* Don't follow people you’ve never met. Here 'met' means, you don't know anything about him/her. But, sure if you know that his/her expertise is related to your area and you can get useful info, its always wise to follow him/her.

* Never tweet more than five times a day. People may get disappointed to see all your twits only rather than others.

* Migrate your real-world conversation to Twitter. This is what most of all actually do.

* You shouldn't try to share your political, religious, or business views in 140 characters.

* Don't gunk up your stream with machine-readable crapola like "#" or "L:".

* Remember that the Twitter question is, "What are you doing?" and try to be with up with this.
Do you know that google has an extensive featured tool for you to gather knowledge of people's interest around the world. If you are trying to make your site popular, then you must have to first focus on the keywords related your site contents that people search about everyday. So, if you want to know about this details, then this tool will help you a lot.

The address of the keyword tool is :

https://adwords.google.co.uk/select/KeywordToolExternal

Google is currently improving this tool and also have a beta version running, that you can test from here:

https://adwords.google.co.uk/o/Targeting/Explorer?__u=1000000000&__c=1000000000&stylePrefOverride=2#search.none!ideaType=KEYWORD&requestType=IDEAS

This tool is primarily developed for advertisers those wish to advertise on google's adwords program. There people can search for which keywords suites perfectly for their site content, which cost how much to advertise etc.

But, this tool can be a very helpful tool for site owner/content publishers also. Here is how:

There is a statistics given about the monthly search volume(global and local both), from which you can know how popular a keyword is. The more a keyword is popular, the more advertisers tends to advertise on it, resulting a high competing among those keywords. You should also know that, when an advertiser advertise on a certain keywords, that means they are also trying all other SEO techniques also to get more focused on that/those keywords. So, if you are in beginning level, you are going to be in a big competition, you won't be able to get much success with that keywords quickly.

So, now what you will do? You will see, what keywords are in less competition but monthly average search volume is higher comparatively(may be not so much higher as popular one, but will be enough for a start). So, you can be assure that very few people are trying to be focused with these keywords, so you can try it for your site.

-Find few slightly different keywords but similar and use them as a part of the title tag of your site pages and also use them in visible page title(you should use h1,h2 tag as page title).

-Also use them in meta keywords/descriptions.

-Use them on the contents here and there(may be a word or a phrase depend on the keyword you choose).

-Update you site with new contents frequently.

-Submit site map to google, yahoo,bing and other search engines.

-Ping you site max once a day after updating/adding contents to site/blog.

-Also get google analytics account from google and put analytics code on your sites pages(may be only one page if you are using templates).

Try with this technique and hope you will get results via your analytics account. Good luck for your online success :)
sometimes, we want to add more than one items(no limit, can be as more dynamically) but not in a text box, usually we use list box for that. User type one, click a button, it goes to the list, then we save.

However, for a better user experience we can use dynamic text box where a new dynamic text box will be created as soon as someone is typing on the current one. When, user finishes putting data, they can also delete as many as they want also. Here is a simple jquery implementation of this task:

we first, need a div as container ,a text box for putting data and an anchor for close button.

<div class="any_classname">
<input type="text" name="txtAuthor" class="author" size="23">
<a href="#">X</a>
</div>

to make our code a reusable plugin, write like follows:

(function($){
jQuery.fn.auto_input = function(){
$(this).children("input").keypress(InsertInput);
$(this).children("a:first").hide();
}
function InsertInput(){
var target = $(this).parent("div");
var input = target.clone();
if($(target).next().html()=='' ||$(target).next().html()===null){
input.insertAfter(target); input.find("input").keypress(InsertInput).val(""); input.find("a").show().click(function(){ input.remove();
});
}
}
})(jQuery);
make this as seperate js file and import.
now you have to write it on your main html/js file where all other works are done like as follows:

$(document).ready(function(){
$(".any_classname").auto_input();
})

now, we are done. start trying it. write something on the existing textbox, a new one will be created which can also be closed by clicking the x. you can also change the template by replacing 'x' with your own image, nothing will differ.
Sometimes, while debugging code, you may see, most of the queries using "#__" before the name of the database table excluding the table prefix. You might be wonder, why is this and will this really works as there is no database table starting with this

when you install joomla, among the several steps, you get option on one step to define the table prefix, by default it stays as 'jos_'. people can change it as their own wish. So, now think, you are developing a component for sale. while developing it, you may want to make your table prefix to be same like as existing tables. Then, you can't simply hard code the queries with a prefix. This is the situation, where you can get release by using "#__", so while executing these types of query, joomla automatically converts this part by the defined table prefix by administrators.

Another situation, where it helps. You may think that, you can hard code the tables to avoid this situation and don't want to follow best practice conventions etc.Now, if you have multiple joomla installation using same joomla database, so hard coding won't be able to offer this multiple installation compatibility.

So, its always better to use the facilitate this. Also, remember that, if you use this "#__" prefix and try to use mysql_query($query), it won't work as here you are directly communicating with database. You must have to use joomla api's database function to do that perfectly.
authentication with asp.net mvc is much more simpler then ever as i experienced. Before, you had to check with condition like

If(User.Role=='Admin'){
//Do something
}
else{
//Do other things
}
or using web.config in the administrative content's folders.

Asp.net 3.5 with mvc have been enhanced a this with a much more simpler way. Write a controller function in the following way to achieve authentication automatically:

[Authorize(Roles = 'Admin')]
public ActionResult Authenticated_Content(int id, ...)
{
// logic that edits content
return View();
}

Now only user with admin will be able to call to this controller function(in other words, will be able to access this page), public visitors or users with other role won't be able to view this.

Same way, implementation of caching is also similar and simpler as well. Use a function like as follows:

[OutputCache(Duration = 60)]
public ActionResult SomeControllerMethod()
{
// some Logic
}

this will make the out keep in cache for 60 seconds. Any request within this time will get the same result instead of retrieving data from database every time.

Its cool, isn't it?
0
I bought a windows hosting and at the primary stage planned to place a simple joomla made cms for portfolio. After made it, to make it search engine friendly, i enabled joomla's built in search engine friendly url. However there are other 2 options also, one of them to enable mod_rewrite(Apache only). But as my windows hosting was on iis, it was not possible, so i tried to find a way to use mod_rewrite's functionality. After google it, found a software that does this, but i had to buy that for around $25(starting price), bur i didn't wanted to do that. So, finally i made a partial solution that take the use of server's 404 redirect feature. Here is how:

* Got your server settings and find the settings for 404 custom behavior. Set this to a file named index3.php(or whatever you want). Inside that script, please write the following codes:

<?php
$url = $_SERVER['REQUEST_URI'];
$url = str_replace("/", "/index.php/", $url);
$_SERVER['REQUEST_URI'] = $url;
include "index.php";
?>


when a url will not be found, then this will make it to execute index.ph with a custom made valid url.

now, from you joomla admin, enable the mod_rewrite option on(ignore the warning 'Apache only') along with 'search engine friendly url' option turned on.

now test your site. The urls will be like 'http://yoursite.com/about' instead of 'http://yoursite.com/index.php/about' and thus you have ahead one step to seo on windows hosting while you are using php and have no option to use mod_rewrite.Enjoy using this tricks on your site too :)
Asp.net MVC is comparatively new than others. Many people still aren't aware of it that much and beginners become confused about its concept, specially those who didn't studied design pattern yet. I was reading a book about asp.ent mvc and decided to share some words from that to let all know about the basic concepts of asp.net MVC.

ASP.NET was often overlooked as a viable platform for modern, highly interactive websites that required a very granular control over the output of the HTML because of the lack of control over the rendered HTML. This granularity of control was sacrificed in Web Forms to make it more like Windows Forms development — in other words, easier for the drag-and-drop developers. The drag-and-drop nature of Web Forms had upsides for new developers, but had major downsides for advanced developers.

The most notable downside is the lack of control over the HTML rendering. This forced these advanced developers to move to other platforms such as PHP and Ruby on Rails, which offered a higher level of control that they required and the MVC programming model that provided a necessary separation of concerns for their highly complex web applications.

This led Microsoft to announce in the fall of 2007 that it was going to create a platform based on the core of ASP.NET that would compete against these other popular MVC web-centric platforms. Microsoft implemented ASP.NET MVC to be a modern web development platform that gives a "closer to the metal" experience to the developers that program with it, by providing full control and testability over
the output that is returned to the browser. This is the main and most important difference between Web Forms and MVC, in our opinion. MVC has many strengths and weaknesses:

Strengths
* Provides fine control over rendered HTML
* Cleaner generation of HTML (well, as clean as you keep it)
* Clear separation of concerns
* Provides application-layer unit testing
* Can support multiple view engines, such as Brail, NHaml, NVelocity, XSLT, and so on
* Easy integration with JavaScript frameworks like jQuery or Yahoo UI frameworks
* Ability to map URLs logically and dynamically, depending on your use
* RESTful interfaces are used by default (this helps out with SEO)
* No ViewState and PostBack model
* Supports all the core ASP.NET features, such as authentication, caching, membership, and so on
* Size of the pages generated typically much smaller because of the lack of the View State

Weaknesses
* Not event driven by the framework, so it may be more difficult for ASP.NET Web Form developers
to understand
* Requires the need to understand, at least at the basic level, HTTP, HTML, CSS, and JavaScript
* Third-party library support is not as strong
* No direct upgrade path from Web Forms
* No ViewState and PostBack model (makes it more difficult to preserve state)
As you can see, the pros and cons of MVC have to be weighed just as much as those of Web Forms, and MVC is not always the logical choice.