new Ajax.Request({ajax-url}, { method:’get’, requestHeaders: { “Accept”: ‘application/json’ , “User-Agent”: {custom-user-agent} }, onCreate: function(){}, onComplete: function(){}, onSuccess: function(data){}, onFailure: function(){} }); Point: “User-Agent”: {custom-user-agent} ex) Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (FM Scene 4.6.1)
Month: April 2011
Running Samsung TV Apps SDK on Boot Camp
I have windows running bootcamp and tried to launch Samsung TV Apps SDK(IDE); however, it crashes windows every launch. Tested so far; but crashed all the time: – Windows 7 32bit on Boot Camp 3 (iMac, Macbook Air, Macbook Pro) – Windows Vista 32bit on Boot Camp 3 (iMac) Cannot run Samsung TV IDE due…
Upgrade to Codeigniter 2.0
$this->input->xss_clean(); In codeigniter 2.0, you will need to modify $this->input->xss_clean() to $this->secuirty->xss_clean(). Otherwise, it won’t work. Of course, don’t forget to load ‘security’ library before you use the function. extends Controller or extends Model You will need to change class Test extends Controller to class Test extends CI_Controller And class Test extends Model to class…
Cross Site Request Forgery (CSRF)
http://en.wikipedia.org/wiki/Cross-site_request_forgery Click to access Using_XSS_to_bypass_CSRF_protection.pdf
Facebook Profile? or Fan Page?
Profile vs Fan Page Profile: Need to accept friend request Fan Page: Anyone can be fan of product or company In reality, people can like something without permission. To advertise products or company, it makes more sense to make fan page rather than profile. The 8 Success Criteria For Facebook Page Marketing According to “The…
Does wordpress run ‘crontab’ for scheduled cron jobs?
Does wordpress run ‘crontab’ for scheduled cron jobs? Answer is no. According to Codex document, scheduled tasks are executed by visitors. It means that if visitors are not accessing your blog, it won’t be executed. However, it won’t be matter for public blogs or websites due to search engine robots, which are working hearty to…
[jQuery] defaultChecked VS checked
jQuery defaultchecked VS checked Situation: I have checkbox elements on div(‘#dialog-a’) for a dialog. When an user clicks a button, then jQuery will bring the dialog with html code of div(‘#dialog-a’). Once, the user set checkbox and click “Close” button in the dialog, “Close” function supposes to set checkbox as “checked” in div(‘#dialog-a’). I use…